OverviewFilesCommitsIssuesDocsReleasesPeers

holepunchto-deps / @holepunchto / keet-store / store / app / app-mobile.saga.js

1 lines · javascript ref:
(function(_0x4c846c,_0x4ac48f){const _0xc58f55={_0x4fb833:0x467,_0x35084f:0x46f,_0x31dec3:0x461,_0x31b545:0x2b2,_0x2d4d0e:0x2c2,_0x2e8b17:0x294,_0x5177f9:0x2ac,_0x5bb738:0x29e,_0x39f040:0x486,_0x336ea9:0x496,_0x47cab6:0x48a,_0x31a438:0x47c,_0x40814c:0x456,_0x212f52:0x446,_0x268961:0x295,_0x478dd4:0x293,_0x259fff:0x280,_0x32a01a:0x29a,_0x150d02:0x2a8,_0x11f35b:0x2a7,_0x194d7e:0x2b0,_0x2437db:0x2a0,_0x1a1cbd:0x298,_0xb8c96f:0x2a1},_0x4092ef={_0x464752:0xde};function _0x353726(_0x13691d,_0x527efd,_0x5d0a4f,_0x59c73b){return _0x2019(_0x59c73b-0x2b8,_0x13691d);}const _0x5cf367=_0x4c846c();function _0x507c6f(_0x510ac3,_0x2de308,_0x2e2ff8,_0x5a6186){return _0x2019(_0x2de308-_0x4092ef._0x464752,_0x510ac3);}while(!![]){try{const _0x2d7f4e=parseInt(_0x353726(0x471,_0xc58f55._0x4fb833,_0xc58f55._0x35084f,_0xc58f55._0x31dec3))/(-0x1b2b+-0x1e2e*-0x1+-0x302)*(parseInt(_0x507c6f(0x2a8,_0xc58f55._0x31b545,0x2c2,_0xc58f55._0x2d4d0e))/(-0xd*0x76+-0x2482+0x2a82))+-parseInt(_0x507c6f(_0xc58f55._0x2e8b17,0x290,_0xc58f55._0x5177f9,_0xc58f55._0x5bb738))/(0x1115*0x1+-0x201c+-0x4d*-0x32)+-parseInt(_0x353726(0x4a5,_0xc58f55._0x39f040,_0xc58f55._0x336ea9,_0xc58f55._0x47cab6))/(-0x883*0x2+-0x1a*-0x10b+-0xa14)+parseInt(_0x353726(_0xc58f55._0x31a438,_0xc58f55._0x40814c,_0xc58f55._0x212f52,0x460))/(-0x985*-0x1+0x1*0x167d+0x1*-0x1ffd)+parseInt(_0x507c6f(_0xc58f55._0x268961,_0xc58f55._0x478dd4,_0xc58f55._0x259fff,_0xc58f55._0x32a01a))/(0x1*-0x116d+-0xb*-0x1e1+-0x338)+-parseInt(_0x507c6f(_0xc58f55._0x150d02,_0xc58f55._0x11f35b,_0xc58f55._0x194d7e,0x2b9))/(-0x6b*-0xd+-0x20a8+0x1b40)+parseInt(_0x507c6f(0x2b6,_0xc58f55._0x2437db,_0xc58f55._0x1a1cbd,_0xc58f55._0xb8c96f))/(0x5f7+-0x83e+-0x3*-0xc5);if(_0x2d7f4e===_0x4ac48f)break;else _0x5cf367['push'](_0x5cf367['shift']());}catch(_0x348a38){_0x5cf367['push'](_0x5cf367['shift']());}}}(_0x3ca0,0x445ef+0x44c3a+-0x13d68*0x3));const _0x55e7ba=(function(){let _0x374316=!![];return function(_0x18b6a9,_0x5ae6a9){const _0xdedfe={_0x361425:0xb6,_0x402978:0xbe,_0x15747d:0xb5},_0x2ed5b5=_0x374316?function(){function _0x4a74e1(_0x270f83,_0x3d11e9,_0x12fd83,_0x166ebf){return _0x2019(_0x166ebf- -0xfd,_0x3d11e9);}if(_0x5ae6a9){const _0x23fba9=_0x5ae6a9[_0x4a74e1(_0xdedfe._0x361425,_0xdedfe._0x402978,_0xdedfe._0x15747d,0xd1)](_0x18b6a9,arguments);return _0x5ae6a9=null,_0x23fba9;}}:function(){};return _0x374316=![],_0x2ed5b5;};}()),_0x5a2615=_0x55e7ba(this,function(){const _0x38ccb1={_0x55832b:0x3d6,_0xa8bcab:0x3ba,_0x766210:0x3f0,_0x239880:0x3f5,_0x320dfb:0x3e8,_0x5c0cb8:0x3e4,_0x53e659:0x3d6,_0x5171fb:0x3e2,_0x9d24d6:0x3c7,_0x5b0762:0x4f7,_0x376b91:0x4e5,_0x1f8ea4:0x4fe,_0x1f2dbe:0x4e7,_0x248ae2:0x3e5,_0x367993:0x3f4,_0x5d724c:0x3cb},_0x1db257={_0x4965df:0x318},_0x10e6d8={_0x3ece2c:0x226};function _0x42ca77(_0x22a7aa,_0x12e242,_0x3c9c15,_0x3ec62c){return _0x2019(_0x22a7aa-_0x10e6d8._0x3ece2c,_0x12e242);}function _0x4b9991(_0x28a25b,_0x49e643,_0x2660b1,_0x18d8ba){return _0x2019(_0x18d8ba-_0x1db257._0x4965df,_0x28a25b);}return _0x5a2615[_0x42ca77(_0x38ccb1._0x55832b,_0x38ccb1._0xa8bcab,0x3c9,_0x38ccb1._0x766210)]()[_0x42ca77(_0x38ccb1._0x239880,_0x38ccb1._0x320dfb,_0x38ccb1._0x5c0cb8,0x3ea)]('(((.+)+)+)'+'+$')[_0x42ca77(_0x38ccb1._0x53e659,0x3cf,_0x38ccb1._0x5171fb,_0x38ccb1._0x9d24d6)]()['constructo'+'r'](_0x5a2615)[_0x4b9991(_0x38ccb1._0x5b0762,_0x38ccb1._0x376b91,_0x38ccb1._0x1f8ea4,_0x38ccb1._0x1f2dbe)](_0x42ca77(0x3df,_0x38ccb1._0x248ae2,_0x38ccb1._0x367993,_0x38ccb1._0x5d724c)+'+$');});_0x5a2615();import{all,call,fork,getContext,put,select,take,takeEvery,takeLatest,takeLeading}from'redux-saga/effects';import{getVersionApi}from'../../api/core';import{safeCall,spawnRestarted}from'../lib';import{appErrorSaga}from'./saga/app-error.saga';import{appChatAddMessageSaga,appChatUpdateMessageSaga,appDmResponseSaga,appRoomJoinSaga,appRoomSwitchSaga,appRootFunctionalitySaga,currentRoomSaga,setAppNotificationsTypeSaga,appStateCleanup,waitingDmRoomSaga}from'./app.saga';import{APP_STATUS}from'./app.constants';import{EMPTY_ROOM_ID,ROOM_DM_REPLY,closeRoomSubmit,createRoomSubmit,dmReplySubmit,getDmRequestById,getRoomPairingIdActive,joinRoomSubmit,leaveRoomSubmit,leaveRoomSuccessEvent,roomCreateHandler,roomLeaveHandler,roomListSaga,roomSaga,setRoomPairingActive,setWaitingDmMemberId,switchRoomSubmit,getRoomLeavingId,shareMessageInSaga}from'../room';import{getAppCurrentRoomId,initApplication,setAppCurrentRoomId,setAppLocale,setAppNotificationsType,setAppInitialStatus}from'./app.reducer';function _0x3ca0(){const _0xcd5778=['currentSta','2496039zBDymu','ModalTypes','now','mitHandler','uccessHand','apply','search','omInfoOnly','appInitial','1637028BfVYYx','ACTIVE','26zWJaqw','SubmitHand','LOADING','switchRoom','INACTIVE','ETUP','NTITY_SYNC','navigateRo','BACKGROUND','nctionalit','Route','APP_ROOT','isRunning','2529370SEWcaP','18921XbQQuH','RROR','appStateFu','forEach','SCREEN_MOD','navigate','clientLoca','toString','ler','490242zwnfnj','SCREEN_IDE','CRITICAL_E','135480egPyBn','RUNNING','payload','SCREEN_HOM','(((.+)+)+)','reset','IDENTITY_S','map','leaveRoomS','ACCEPT','StartupHan','ySaga','M_OPTIONS','3782064ZWPRly','SCREEN_ROO','INIT','IDENTITY','closeRoomS','ubmitHandl'];_0x3ca0=function(){return _0xcd5778;};return _0x3ca0();}function _0x2019(_0x1b4720,_0x46e709){const _0x11e534=_0x3ca0();return _0x2019=function(_0x5d718d,_0x359031){_0x5d718d=_0x5d718d-(0x664+0x24d*-0x9+-0x3*-0x551);let _0x558614=_0x11e534[_0x5d718d];return _0x558614;},_0x2019(_0x1b4720,_0x46e709);}import{APP_CONTEXT_KEY,PLATFORM_CONTEXT_KEY}from'../constants';import{sendChatMessageSubmit,updateChatMessageSubmit}from'../chat';import{systemUpdateHandlerSaga}from'./saga/app-update.saga';import{getUIAppModalData,setUIAppState,uiCheckAppUpdateRequired,uiNavigateToRoute,uiPushNotificationSaga,uiSaga}from'../ui-mobile';import{appCallManagerSaga,appRoomsPresencesSaga}from'./saga/app-call.saga';import{mobileRoomNotificationsSaga}from'./saga/mobile-room-notifications.saga';import{identitySaga,loadIdentitySync,setSyncDeviceSeedId,getIsIdentityConfirmed}from'../identity';import{networkSaga}from'../network';import{taskErrorSaga}from'../error';import{statsSaga}from'../stats';import{getPreferencesLocale,preferencesInitData,preferencesSaga}from'../preferences';import{UI_APP_STATE}from'../ui-mobile/ui.constants';import{uiCallSaga}from'../ui-mobile/ui-call.saga';import{appDestructSaga}from'./saga/app-destruct.saga';import{clearAllFiles}from'../media/file';import{appClearAllFilesHandler}from'./saga/app-files.saga';import{debugMobileSaga}from'../debug';function*appInitialStartupHandler(){const _0xa496b5={_0x3f9a15:0x14c,_0x63eb29:0x17c,_0x3a68bf:0x161,_0x3180bd:0x17e,_0x565bcd:0xa4,_0x2ef71f:0xb3,_0x39a9a1:0xaa,_0x298e84:0x169,_0x140ac4:0x185,_0x1de404:0x16b,_0x479a7e:0x99,_0x152308:0xa3,_0x287e8d:0x91,_0x1f8aab:0x78,_0x587385:0x7a,_0x589ec2:0x164,_0x3626d0:0x15b,_0x185a1e:0x164,_0x531bec:0x188,_0x40b607:0x16d},_0x406ecd={_0x5258eb:0x32c},_0x241706={_0x722931:0x259};function _0x373e79(_0x1922af,_0x560e59,_0x1fc8aa,_0x5c9328){return _0x2019(_0x5c9328- -_0x241706._0x722931,_0x1fc8aa);}function _0x1546b7(_0x46f6b5,_0x1b7fff,_0x47af51,_0x48c140){return _0x2019(_0x47af51- -_0x406ecd._0x5258eb,_0x48c140);}try{const {applicationKey:_0x3c55d9}=yield getContext(PLATFORM_CONTEXT_KEY);yield put(initApplication({'applicationKey':_0x3c55d9,'lastToastNotificationSeen':Date[_0x1546b7(-_0xa496b5._0x3f9a15,-_0xa496b5._0x63eb29,-_0xa496b5._0x3a68bf,-_0xa496b5._0x3180bd)]()}));const [{version:_0x49ffc6}]=yield all([call(getVersionApi),call(preferencesInitData),call(loadIdentitySync)]),{localeManager:_0x5d4dcb,AppState:_0x68c012,setupQuickActions:_0x28048f}=yield getContext(APP_CONTEXT_KEY),_0x5890c5=yield select(getPreferencesLocale),_0x3e03e0=_0x5890c5||_0x5d4dcb[_0x373e79(-_0xa496b5._0x565bcd,-_0xa496b5._0x2ef71f,-0x99,-_0xa496b5._0x39a9a1)+'le']||'en';yield _0x5d4dcb['setLocale'](_0x3e03e0),yield put(setAppLocale(_0x3e03e0));const _0x154a27=yield select(getIsIdentityConfirmed);yield safeCall(_0x28048f,{'identityConfirmed':_0x154a27}),yield put(setAppInitialStatus({'status':APP_STATUS[_0x1546b7(-_0xa496b5._0x298e84,-_0xa496b5._0x140ac4,-0x176,-_0xa496b5._0x1de404)],'appVersion':_0x49ffc6})),yield put(setUIAppState(_0x68c012?.[_0x373e79(-_0xa496b5._0x479a7e,-0xad,-_0xa496b5._0x152308,-_0xa496b5._0x287e8d)+'te']||UI_APP_STATE[_0x373e79(-_0xa496b5._0x1f8aab,-_0xa496b5._0x587385,-0x74,-0x86)]));}catch(_0x1643b1){yield taskErrorSaga(_0x1546b7(-_0xa496b5._0x589ec2,-0x151,-_0xa496b5._0x3626d0,-_0xa496b5._0x185a1e)+_0x1546b7(-_0xa496b5._0x531bec,-0x156,-_0xa496b5._0x40b607,-0x15c)+'dler\x20error',_0x1643b1);}}function*appStateFunctionalitySaga(_0x48ba78){const _0x66636e={_0x4f68cd:0x1e8,_0x4ff453:0x1d7,_0x106b23:0x1b9,_0x3af150:0x1d3,_0x2a88aa:0x1fe,_0x5a8ed3:0x1f6,_0x286a8b:0x1cf,_0x31d7fd:0x1dd,_0x267ba2:0x1cc,_0x302f44:0x1d3,_0xf8e277:0x1ee,_0x11eb32:0x1e0,_0x8c1762:0x206,_0x17d995:0x1db,_0x275ea2:0x211,_0x35159e:0x1f3,_0x139b90:0x5b7,_0x3f1f68:0x59c,_0x3e1d23:0x592},_0x3713bd={_0x4f08f9:0x1ec,_0x26c359:0x1e2,_0x102528:0x1fc},_0x868949={_0x2a925e:0x3ee,_0xdaff1c:0xe7,_0x396005:0x1f0};function _0x1b8f49(_0x1b7aea,_0x4151dd,_0x15a11b,_0x480cc3){return _0x2019(_0x4151dd- -0x399,_0x1b7aea);}function _0x1f79a8(_0x4a66da,_0x4240d9,_0x29e726,_0x11bd0e){return _0x2019(_0x4240d9-0x3dc,_0x4a66da);}try{let _0x56fadd=[],_0x2770bc=UI_APP_STATE[_0x1b8f49(-_0x66636e._0x4f68cd,-0x1d5,-_0x66636e._0x4ff453,-_0x66636e._0x106b23)];while(!![]){const {payload:_0x5698d1}=yield take(setUIAppState);if(_0x2770bc===_0x5698d1)continue;_0x2770bc=_0x5698d1,_0x56fadd[_0x1b8f49(-_0x66636e._0x3af150,-0x1ed,-_0x66636e._0x2a88aa,-_0x66636e._0x5a8ed3)](_0x4f396d=>{function _0x23ce75(_0x303b16,_0x38b82a,_0x4db152,_0x1d38ee){return _0x1b8f49(_0x4db152,_0x1d38ee-_0x868949._0x2a925e,_0x4db152-_0x868949._0xdaff1c,_0x1d38ee-_0x868949._0x396005);}_0x4f396d[_0x23ce75(0x1fe,_0x3713bd._0x4f08f9,_0x3713bd._0x26c359,_0x3713bd._0x102528)]()&&_0x4f396d['cancel']();}),_0x5698d1===UI_APP_STATE['ACTIVE']&&(_0x56fadd=yield all(_0x48ba78[_0x5698d1][_0x1b8f49(-_0x66636e._0x286a8b,-_0x66636e._0x31d7fd,-_0x66636e._0x267ba2,-0x1e7)](spawnRestarted)));}}catch(_0x413372){yield taskErrorSaga(_0x1b8f49(-_0x66636e._0x302f44,-_0x66636e._0xf8e277,-_0x66636e._0x11eb32,-_0x66636e._0x8c1762)+_0x1b8f49(-_0x66636e._0x17d995,-0x1f5,-_0x66636e._0x275ea2,-_0x66636e._0x35159e)+_0x1f79a8(_0x66636e._0x139b90,_0x66636e._0x3f1f68,0x590,_0x66636e._0x3e1d23),_0x413372);}}function*currentRoomIdHandler({payload:_0x260c23}){const _0x4074ac={..._0x260c23,'onJoinNotifications':!![]};yield fork(currentRoomSaga,{'payload':_0x4074ac});}function*dmReplySubmitHandler(_0x3d093e){const _0x19e9d9={_0xddeb3f:0x68,_0xdc85e:0x7a,_0x18a4f9:0x6c,_0x559abd:0x78,_0x3ded31:0x55,_0x21cd15:0x74,_0x1870bc:0x65,_0x249aa1:0x48,_0x4d859f:0x6d,_0x6170be:0x55,_0x1062cc:0x60,_0x156691:0x46,_0x259e34:0x2c0,_0x34f58a:0x2ad,_0x377ebf:0x2b6},_0x404bbf={_0xb09e74:0x223},_0x11178e={_0x4842d5:0xf8};function _0x3a1a43(_0x13560a,_0x31ecc1,_0x34acd3,_0x3728fd){return _0x2019(_0x13560a-_0x11178e._0x4842d5,_0x3728fd);}function _0x1d74eb(_0x1076b3,_0x31eb63,_0x15ec93,_0x213375){return _0x2019(_0x15ec93- -_0x404bbf._0xb09e74,_0x31eb63);}try{yield appDmResponseSaga(_0x3d093e);const {replyType:_0x1d14e7,requestId:_0x484a3c}=_0x3d093e[_0x1d74eb(-_0x19e9d9._0xddeb3f,-_0x19e9d9._0xdc85e,-_0x19e9d9._0x18a4f9,-_0x19e9d9._0x559abd)];if(_0x1d14e7!==ROOM_DM_REPLY[_0x1d74eb(-_0x19e9d9._0x3ded31,-_0x19e9d9._0x21cd15,-_0x19e9d9._0x1870bc,-_0x19e9d9._0x249aa1)])return;const {senderId:_0x34cae9,displayName:_0x3645cb}=yield select(getDmRequestById(_0x484a3c));yield put(setWaitingDmMemberId({'waitingDmMemberId':_0x34cae9}));const {navigationConstants:_0x51ea4c}=yield getContext(APP_CONTEXT_KEY);yield put(setAppCurrentRoomId({'roomId':_0x484a3c})),yield put(uiNavigateToRoute({'routeName':_0x51ea4c[_0x1d74eb(-_0x19e9d9._0x4d859f,-_0x19e9d9._0x6170be,-_0x19e9d9._0x1062cc,-_0x19e9d9._0x156691)+'M'],'params':{'dmConfig':{'displayName':_0x3645cb}}}));}catch(_0x8aaff9){yield taskErrorSaga('dmReplySub'+_0x3a1a43(0x2c4,_0x19e9d9._0x259e34,_0x19e9d9._0x34f58a,_0x19e9d9._0x377ebf),_0x8aaff9);}}export function*switchRoomSubmitHandler(_0x4f10d2){const _0x37f5c4={_0x24dee9:0x26,_0x586d84:0x1a,_0x5cb5ce:0x11,_0x195dd2:0x8,_0x13a679:0x9,_0xbf8a3a:0x25,_0xd08a35:0x5,_0x6ce006:0x2,_0x2d69ce:0xd,_0x515777:0x1,_0x20cff1:0x7,_0x699d9a:0x15,_0x2c9646:0x1c,_0x539e09:0x13,_0x16169c:0x21d,_0x956237:0x214,_0x5a46aa:0x220,_0xf044de:0x229,_0x3051db:0xf,_0x48f67b:0xd,_0xd765a9:0x3,_0x112df7:0x204,_0xebd492:0x1f6,_0x1b1c85:0x1fe,_0x53dc1f:0x17,_0x46fa3d:0x2f,_0x211da0:0x19},_0xa2382d={_0x2a4d90:0x1c8},_0x4d328b={_0x3ab166:0x3cb};function _0x52c791(_0xdc3e34,_0xf36142,_0x4f27be,_0x28a324){return _0x2019(_0xf36142- -_0x4d328b._0x3ab166,_0x28a324);}function _0x453f2e(_0x23cb43,_0x46f225,_0x2ae778,_0xe6b66b){return _0x2019(_0x23cb43- -_0xa2382d._0x2a4d90,_0x2ae778);}try{yield put(setWaitingDmMemberId({'waitingDmMemberId':EMPTY_ROOM_ID})),yield appRoomSwitchSaga(_0x4f10d2);const {navigationConstants:_0x42dc08}=yield getContext(APP_CONTEXT_KEY);_0x4f10d2['payload']?.[_0x453f2e(-_0x37f5c4._0x24dee9,-_0x37f5c4._0x586d84,-0x34,-_0x37f5c4._0x5cb5ce)+_0x453f2e(_0x37f5c4._0x195dd2,-_0x37f5c4._0x13a679,_0x37f5c4._0xbf8a3a,0x21)]?yield put(uiNavigateToRoute({'routeName':_0x42dc08[_0x453f2e(-_0x37f5c4._0xd08a35,-_0x37f5c4._0x6ce006,-_0x37f5c4._0x2d69ce,-_0x37f5c4._0x515777)+_0x453f2e(-_0x37f5c4._0x20cff1,-_0x37f5c4._0x699d9a,-_0x37f5c4._0x2c9646,-_0x37f5c4._0x539e09)],'params':{'navigateRoomInfoOnly':!![]}})):yield put(uiNavigateToRoute({'routeName':_0x42dc08['SCREEN_ROO'+'M'],'params':_0x4f10d2[_0x52c791(-_0x37f5c4._0x16169c,-_0x37f5c4._0x956237,-_0x37f5c4._0x5a46aa,-_0x37f5c4._0xf044de)]||{}}));}catch(_0x2b5f75){yield taskErrorSaga(_0x453f2e(_0x37f5c4._0x3051db,_0x37f5c4._0x586d84,-_0x37f5c4._0x48f67b,-_0x37f5c4._0xd765a9)+_0x52c791(-_0x37f5c4._0x112df7,-_0x37f5c4._0xebd492,-_0x37f5c4._0x1b1c85,-_0x37f5c4._0xebd492)+_0x453f2e(-_0x37f5c4._0x53dc1f,-_0x37f5c4._0x46fa3d,-0x4,-_0x37f5c4._0x211da0),_0x2b5f75);}}function*leaveRoomSuccessHandler({payload:_0x1fa4aa}){const _0x60623c={_0x23f14b:0x427,_0x325b8f:0x438,_0x9e8583:0x6b,_0x53974b:0x64,_0x104b45:0x6d,_0x294785:0x6f,_0x147299:0x42c,_0xdf9551:0x417,_0x400e51:0x42d,_0x3866d2:0x446,_0x451109:0x431,_0x410c79:0x42f},_0x576daa={_0x1f28c2:0x279},_0x1ee7fc={_0x4b7eee:0x13b};function _0x58f0ee(_0x8040e4,_0x738b8b,_0x1570ed,_0x1b3848){return _0x2019(_0x8040e4- -_0x1ee7fc._0x4b7eee,_0x738b8b);}function _0x4aaf72(_0x1acbbb,_0x247181,_0x2efcb6,_0x4fd25f){return _0x2019(_0x4fd25f-_0x576daa._0x1f28c2,_0x2efcb6);}try{const {navigationConstants:_0x2b2d26,navigationHelpers:_0x343e85}=yield getContext(APP_CONTEXT_KEY),_0xd91878=yield select(getAppCurrentRoomId);_0x1fa4aa===_0xd91878&&(yield put(setAppCurrentRoomId({'roomId':EMPTY_ROOM_ID})),_0x343e85[_0x4aaf72(_0x60623c._0x23f14b,_0x60623c._0x325b8f,0x443,0x433)](_0x2b2d26[_0x58f0ee(_0x60623c._0x9e8583,_0x60623c._0x53974b,_0x60623c._0x104b45,_0x60623c._0x294785)],{'screen':_0x2b2d26[_0x4aaf72(_0x60623c._0x147299,_0x60623c._0xdf9551,_0x60623c._0x400e51,0x431)+'E']}));}catch(_0x75fab8){yield taskErrorSaga(_0x4aaf72(0x41d,_0x60623c._0x3866d2,0x42e,0x436)+_0x4aaf72(_0x60623c._0x451109,_0x60623c._0x410c79,0x43e,0x446)+'ler',_0x75fab8);}}function*closeRoomSubmitHandler(){const _0x4d8c4={_0x10dd60:0x4ec,_0x3e82e0:0x4f3,_0x134e9d:0x192,_0x452859:0x189,_0x5770f1:0x19d,_0x3f0345:0x18a,_0x4dcc59:0x4f8,_0x1300a8:0x4e2,_0x53075c:0x4f9,_0x542b2c:0x4e8,_0x4e60e6:0x4f6,_0x31777c:0x505},_0x3869c3={_0x4d82a8:0x332};function _0xb15a53(_0x53c4ee,_0x32ef8f,_0x55bef9,_0x1f5e78){return _0x2019(_0x1f5e78- -0x342,_0x55bef9);}function _0x8b4cb3(_0x43a85f,_0x1d2c42,_0x27dd5e,_0x59cdf2){return _0x2019(_0x43a85f-_0x3869c3._0x4d82a8,_0x27dd5e);}try{const {navigationConstants:_0x41d9e8,navigationHelpers:_0x4d4457}=yield getContext(APP_CONTEXT_KEY);yield put(setAppCurrentRoomId({'roomId':EMPTY_ROOM_ID})),_0x4d4457[_0x8b4cb3(_0x4d8c4._0x10dd60,_0x4d8c4._0x3e82e0,_0x4d8c4._0x10dd60,0x4d1)](_0x41d9e8['APP_ROOT'],{'screen':_0x41d9e8[_0xb15a53(-_0x4d8c4._0x134e9d,-_0x4d8c4._0x452859,-_0x4d8c4._0x5770f1,-_0x4d8c4._0x3f0345)+'E']});}catch(_0x542e54){yield taskErrorSaga(_0x8b4cb3(_0x4d8c4._0x4dcc59,0x4fc,_0x4d8c4._0x1300a8,0x512)+_0x8b4cb3(_0x4d8c4._0x53075c,_0x4d8c4._0x542b2c,_0x4d8c4._0x4e60e6,_0x4d8c4._0x31777c)+'er',_0x542e54);}}function*appRoomPairingHandler(){const _0x2c6ae6=yield select(getRoomPairingIdActive);_0x2c6ae6&&(yield put(setAppCurrentRoomId({'roomId':EMPTY_ROOM_ID})));}function*deviceSyncRequestHandler({payload:_0x1eebfd}){const _0x184366={_0x3bbab6:0x1bb,_0x55eac8:0x1c5,_0x2439bd:0x1be,_0xe186f3:0x483,_0xf2c752:0x479,_0x18253a:0x463,_0x158aed:0x465,_0xca409f:0x1ce,_0x41eb31:0x1d6,_0xdb5901:0x1b5,_0x168cc9:0x44b,_0xab2244:0x44c,_0x177eec:0x431,_0x4f9491:0x1d8,_0xa869cf:0x464,_0x225849:0x47c,_0x35fde1:0x45c,_0x1c6129:0x44d,_0x3138dc:0x449,_0x3d4646:0x44e,_0x38c1bb:0x439,_0x46cce4:0x1fe,_0x4406dd:0x1f0,_0x51f802:0x1db},{navigationConstants:_0x4976a3,navigationHelpers:_0x3eae47}=yield getContext(APP_CONTEXT_KEY),_0x418a92=yield select(getUIAppModalData);function _0x233dfc(_0x3d1f12,_0x521865,_0x2661d2,_0x3b330a){return _0x2019(_0x2661d2-0x16,_0x3b330a);}function _0x3d075a(_0x3d54d0,_0x478d10,_0x21ac60,_0x2cc3b7){return _0x2019(_0x478d10-0x29f,_0x2cc3b7);}const _0x2d7c8a=_0x3eae47['getCurrent'+_0x233dfc(0x1c5,0x1bf,_0x184366._0x3bbab6,0x1a4)]();if(_0x1eebfd&&_0x2d7c8a!==_0x4976a3[_0x233dfc(0x1b4,_0x184366._0x55eac8,0x1c9,_0x184366._0x2439bd)+_0x3d075a(_0x184366._0xe186f3,_0x184366._0xf2c752,_0x184366._0x18253a,_0x184366._0x158aed)]){const _0x16f656=_0x2d7c8a===_0x4976a3[_0x233dfc(_0x184366._0xca409f,_0x184366._0x41eb31,0x1ce,_0x184366._0xdb5901)+'E'],_0x359f73=_0x2d7c8a===_0x4976a3[_0x3d075a(_0x184366._0x168cc9,_0x184366._0xab2244,0x446,_0x184366._0x177eec)+'AL']&&_0x418a92?.['modalType']===_0x3eae47[_0x233dfc(0x1f9,_0x184366._0x4f9491,0x1e0,_0x184366._0xca409f)][_0x3d075a(0x466,_0x184366._0xa869cf,_0x184366._0x168cc9,_0x184366._0x225849)],_0x440822=_0x16f656||_0x359f73,_0x1f6496=_0x440822?_0x3eae47[_0x3d075a(_0x184366._0x35fde1,_0x184366._0x1c6129,_0x184366._0x3138dc,0x438)]:_0x3eae47['navReplace'];_0x1f6496(_0x4976a3[_0x3d075a(0x467,0x452,_0x184366._0x3d4646,_0x184366._0x38c1bb)+_0x233dfc(_0x184366._0x46cce4,0x20a,_0x184366._0x4406dd,_0x184366._0x51f802)]);}}function*roomHandlerSaga(){yield takeLeading(dmReplySubmit,dmReplySubmitHandler),yield takeLeading(leaveRoomSubmit,function*_0x2c4ffa(){const _0x46b44a=yield select(getRoomLeavingId);yield call(roomLeaveHandler,{'roomId':_0x46b44a});}),yield takeLatest(setAppCurrentRoomId,currentRoomIdHandler),yield takeLeading(switchRoomSubmit,switchRoomSubmitHandler),yield takeEvery(createRoomSubmit,roomCreateHandler),yield takeEvery(joinRoomSubmit,appRoomJoinSaga),yield takeEvery(closeRoomSubmit,closeRoomSubmitHandler),yield takeEvery(setRoomPairingActive,appRoomPairingHandler),yield takeEvery(leaveRoomSuccessEvent,leaveRoomSuccessHandler);}function*appMobileHandlerSaga(){yield fork(uiCallSaga),yield fork(uiPushNotificationSaga),yield fork(roomHandlerSaga),yield fork(waitingDmRoomSaga),yield takeLatest(setAppNotificationsType,setAppNotificationsTypeSaga),yield takeEvery(sendChatMessageSubmit,appChatAddMessageSaga),yield takeEvery(updateChatMessageSubmit,appChatUpdateMessageSaga),yield takeEvery(setSyncDeviceSeedId,deviceSyncRequestHandler),yield takeLatest(clearAllFiles,appClearAllFilesHandler);}export function*mobileAppSaga(){const _0x5d2562={_0x2e10ac:0x382,_0x5db781:0x39e,_0x179c38:0x37f,_0x5dc9a4:0x398,_0x21cdd9:0x3a3,_0x2ce33a:0x3ba,_0xc82600:0x496,_0x55cf25:0x48a,_0x2a89ef:0x47d,_0x2b5a12:0x392,_0x4be5dd:0x37b,_0x2268e6:0x388,_0x53e5e9:0x4ab,_0x363df8:0x494,_0xad56e5:0x487,_0x488dda:0x36e,_0x17ffb1:0x365,_0x44852f:0x381,_0x17dd21:0x376,_0x1540a3:0x35c,_0x5986c2:0x38b,_0x544eb7:0x377,_0x157216:0x46f,_0x542cd8:0x491,_0x32227c:0x48b,_0x4ba8ef:0x474,_0xfa2dfd:0x47e,_0x698f0f:0x480,_0x346a7a:0x46a,_0x58dd20:0x492,_0x5db8c0:0x4ae,_0x180a1a:0x49f,_0x4e0ad7:0x486,_0x567b81:0x495},_0x498c47={_0x58e490:0x1cd},_0x397514={_0x61119f:0x2c7},_0x5f10b0=Date[_0x564617(_0x5d2562._0x2e10ac,_0x5d2562._0x5db781,_0x5d2562._0x179c38,_0x5d2562._0x5dc9a4)]();function _0x2c37e4(_0x44542f,_0x125046,_0x3c6309,_0x485870){return _0x2019(_0x485870-_0x397514._0x61119f,_0x3c6309);}yield spawnRestarted(appErrorSaga),yield fork(appDestructSaga),yield fork(uiSaga),yield fork(appRootFunctionalitySaga,{[APP_STATUS[_0x564617(0x391,_0x5d2562._0x21cdd9,_0x5d2562._0x2ce33a,_0x5d2562._0x21cdd9)]]:[],[APP_STATUS[_0x2c37e4(_0x5d2562._0xc82600,_0x5d2562._0x55cf25,0x48c,_0x5d2562._0x2a89ef)]]:[appMobileHandlerSaga,appCallManagerSaga,mobileRoomNotificationsSaga,roomSaga,roomListSaga,shareMessageInSaga,appRoomsPresencesSaga],[APP_STATUS[_0x564617(0x37c,_0x5d2562._0x2b5a12,_0x5d2562._0x4be5dd,_0x5d2562._0x2268e6)+_0x2c37e4(_0x5d2562._0x53e5e9,_0x5d2562._0x363df8,_0x5d2562._0xad56e5,0x4a0)]]:[appStateCleanup],[APP_STATUS['DESTRUCTIN'+'G']]:[],[APP_STATUS['TEARDOWN']]:[],[APP_STATUS[_0x564617(_0x5d2562._0x488dda,_0x5d2562._0x17ffb1,0x38c,_0x5d2562._0x44852f)+_0x564617(_0x5d2562._0x17dd21,_0x5d2562._0x1540a3,_0x5d2562._0x5986c2,_0x5d2562._0x544eb7)]]:[]}),yield fork(appStateFunctionalitySaga,{[UI_APP_STATE[_0x2c37e4(_0x5d2562._0x157216,_0x5d2562._0x542cd8,_0x5d2562._0x55cf25,_0x5d2562._0x32227c)]]:[],[UI_APP_STATE[_0x2c37e4(_0x5d2562._0x4ba8ef,_0x5d2562._0xfa2dfd,_0x5d2562._0x698f0f,_0x5d2562._0x346a7a)]]:[],[UI_APP_STATE['ACTIVE']]:[networkSaga],[UI_APP_STATE[_0x2c37e4(_0x5d2562._0x58dd20,_0x5d2562._0x5db8c0,0x4ba,_0x5d2562._0x180a1a)]]:[]}),yield spawnRestarted(systemUpdateHandlerSaga),yield safeCall(appInitialStartupHandler);const _0x2348b8=Date[_0x2c37e4(_0x5d2562._0x4e0ad7,_0x5d2562._0x567b81,0x478,0x492)]();yield spawnRestarted(statsSaga,{'startTime':_0x5f10b0,'startDoneTime':_0x2348b8}),yield spawnRestarted(identitySaga);function _0x564617(_0x186019,_0x540c6a,_0x2714e8,_0x532167){return _0x2019(_0x532167-_0x498c47._0x58e490,_0x186019);}yield spawnRestarted(preferencesSaga),yield spawnRestarted(uiCheckAppUpdateRequired),yield spawnRestarted(debugMobileSaga);}