OverviewFilesCommitsIssuesDocsReleasesPeers

holepunchto-deps / @holepunchto / keet-store / store / ui-mobile / ui-navigation.saga.js

1 lines · javascript ref:
(function(_0x3afa79,_0x51eb48){const _0x30fb3f={_0x11706a:0xc9,_0xf5d9da:0xd7,_0x5ebf01:0xcb,_0x379590:0xda,_0x29dc37:0xcd,_0x183240:0x302,_0x558c01:0x30f,_0x320d57:0x311,_0x39e8df:0xe0,_0x56f9f7:0xe2,_0x3a7579:0x30c,_0x346a42:0x31a,_0xfe650e:0x300,_0x93304c:0x309,_0x38eb68:0x2fd,_0x371d5c:0x317,_0x396097:0x313,_0x57813f:0x30d,_0x5d36c6:0x300,_0x3f0efc:0xd6,_0x50f4c1:0xc9},_0x2691ef={_0x25824a:0x1e9},_0x33c202=_0x3afa79();function _0x4874f5(_0x22a13c,_0x8c80c4,_0x5da56f,_0x5836fa){return _0x2161(_0x22a13c- -_0x2691ef._0x25824a,_0x5836fa);}function _0x258ee6(_0x11e86a,_0x3fbf65,_0x16075a,_0xd13cb6){return _0x2161(_0x11e86a-0x1f3,_0x16075a);}while(!![]){try{const _0x23695f=parseInt(_0x4874f5(-0xcc,-_0x30fb3f._0x11706a,-_0x30fb3f._0xf5d9da,-0xd9))/(-0x1849*0x1+-0x1b41+0x338b)+parseInt(_0x4874f5(-_0x30fb3f._0x5ebf01,-0xd5,-_0x30fb3f._0x379590,-_0x30fb3f._0x29dc37))/(-0x2*0x699+0x2456+-0x7b6*0x3)+-parseInt(_0x258ee6(_0x30fb3f._0x183240,_0x30fb3f._0x558c01,_0x30fb3f._0x320d57,0x308))/(0x1*0xe11+-0x971*-0x1+-0x177f)*(parseInt(_0x4874f5(-_0x30fb3f._0x39e8df,-0xd3,-0xd1,-_0x30fb3f._0x56f9f7))/(0x96b*-0x1+-0x26b3+-0x7a*-0x65))+parseInt(_0x258ee6(_0x30fb3f._0x3a7579,0x2fe,_0x30fb3f._0x346a42,_0x30fb3f._0xfe650e))/(0x1*0x716+0x1*-0x1837+0x36e*0x5)+-parseInt(_0x258ee6(_0x30fb3f._0x93304c,_0x30fb3f._0x38eb68,_0x30fb3f._0x371d5c,_0x30fb3f._0x396097))/(0x2535+-0x6*0x3b8+0x51*-0x2f)+-parseInt(_0x258ee6(0x30a,_0x30fb3f._0x57813f,_0x30fb3f._0x5d36c6,0x2fc))/(-0x1*-0xd5b+-0x133c+0x5e8)+parseInt(_0x4874f5(-_0x30fb3f._0x3f0efc,-_0x30fb3f._0x56f9f7,-_0x30fb3f._0x50f4c1,-_0x30fb3f._0x3f0efc))/(-0x147+-0x12cb+-0x1*-0x141a);if(_0x23695f===_0x51eb48)break;else _0x33c202['push'](_0x33c202['shift']());}catch(_0x3fb50c){_0x33c202['push'](_0x33c202['shift']());}}}(_0x1a79,-0x1a816d+-0x883*-0x133+0x1f4f7e));function _0x2161(_0x35d21a,_0x33ca61){const _0xc587e2=_0x1a79();return _0x2161=function(_0x134c65,_0x352b41){_0x134c65=_0x134c65-(-0x2*0x85d+-0x5*-0x3d7+-0x173);let _0x1a5a16=_0xc587e2[_0x134c65];return _0x1a5a16;},_0x2161(_0x35d21a,_0x33ca61);}const _0x5a0818=(function(){let _0x2da266=!![];return function(_0x336fa9,_0x554582){const _0x5f062b={_0x310de2:0x451,_0x4d8556:0x468},_0xb8302e=_0x2da266?function(){function _0x16cfc7(_0x448f2a,_0x4f8fb1,_0x30bb02,_0x450da1){return _0x2161(_0x450da1-0x342,_0x4f8fb1);}if(_0x554582){const _0xb7e765=_0x554582[_0x16cfc7(_0x5f062b._0x310de2,0x45e,_0x5f062b._0x4d8556,0x45a)](_0x336fa9,arguments);return _0x554582=null,_0xb7e765;}}:function(){};return _0x2da266=![],_0xb8302e;};}()),_0x1b77ab=_0x5a0818(this,function(){const _0x5e1303={_0x55ed00:0x210,_0x203b10:0x202,_0x3a2b4f:0x1fe,_0x24d859:0x16f,_0x3adfb2:0x170,_0x59628c:0x177,_0x1b41a4:0x16a,_0x1dffec:0x177,_0x359995:0x173,_0x22406c:0x17e,_0x496804:0x166,_0x113a91:0x170,_0x3dbcf6:0x1ff,_0x1c5e5f:0x207,_0x222aa5:0x1fa},_0x34ce95={_0x17d242:0x291};function _0x178008(_0x45b212,_0x3b55e2,_0x222ce8,_0x37e77a){return _0x2161(_0x3b55e2- -0x313,_0x45b212);}function _0x54fe84(_0x1a6f73,_0x40f83e,_0x3559c8,_0x981f33){return _0x2161(_0x981f33- -_0x34ce95._0x17d242,_0x3559c8);}return _0x1b77ab[_0x178008(-_0x5e1303._0x55ed00,-_0x5e1303._0x203b10,-_0x5e1303._0x3a2b4f,-0x204)]()[_0x54fe84(-_0x5e1303._0x24d859,-0x171,-_0x5e1303._0x3adfb2,-0x176)](_0x54fe84(-0x173,-_0x5e1303._0x59628c,-_0x5e1303._0x1b41a4,-_0x5e1303._0x1dffec)+'+$')['toString']()[_0x54fe84(-_0x5e1303._0x359995,-_0x5e1303._0x22406c,-_0x5e1303._0x496804,-_0x5e1303._0x113a91)+'r'](_0x1b77ab)[_0x178008(-_0x5e1303._0x3dbcf6,-0x1f8,-_0x5e1303._0x1c5e5f,-_0x5e1303._0x222aa5)]('(((.+)+)+)'+'+$');});function _0x1a79(){const _0x19dc34=['getCurrent','6510648HVEQPl','12895330NIEZqh','apply','1843415mhygam','(((.+)+)+)','search','SCREEN_ROO','1959898fKLznK','2246972VdILKZ','navigate','name','constructo','payload','resetStack','Route','push','1092PNifwz','M_DM_REQUE','navReplace','Ref','getState','findIndex','21408kocFjV','WithHistor','toString','APP_ROOT','19257672PmpCpT','navigation'];_0x1a79=function(){return _0x19dc34;};return _0x1a79();}_0x1b77ab();import{getContext,takeEvery}from'redux-saga/effects';import{APP_CONTEXT_KEY}from'../constants';import{extractRouteNames,trimAfterIndex}from'./navigation.model';import{uiNavigateToRoute}from'./ui.action';export function*shouldReplaceNavigation(_0x4c83c0,_0x74b334){const {navigationConstants:_0x1b0e5b}=yield getContext(APP_CONTEXT_KEY),{SCREEN_ROOM:_0x3dc8eb,SCREEN_GROUP_CHAT:_0x181dac,SCREEN_SCAN_USER_PROFILE:_0x3ce5d8,SCREEN_DM_REQUESTS:_0x154f7f,SCREEN_ROOM_CALL:_0x2c02cf,SCREEN_ROOM_CALL_PREVIEW:_0x29812d,SCREEN_USER_PROFILE_FROM_SEARCH:_0x6b7212}=_0x1b0e5b,_0x4aa195={[_0x181dac+'->'+_0x3dc8eb]:!![],[_0x3ce5d8+'->'+_0x3dc8eb]:!![],[_0x154f7f+'->'+_0x3dc8eb]:!![],[_0x6b7212+'->'+_0x3dc8eb]:!![],[_0x29812d+'->'+_0x2c02cf]:!![]};return _0x4aa195[_0x4c83c0+'->'+_0x74b334]||![];}export function*shouldResetNavigation(_0x6c3042,_0x201502){const _0x124c01={_0x246698:0x52,_0x50d997:0x59,_0x4cfb24:0x62,_0x46ecdc:0x5c,_0x31dce8:0x2b4,_0x14e563:0x2ac,_0xe77970:0x2a7,_0xf920aa:0x2b2,_0xcc06be:0x2c5,_0x3bfaca:0x2cd,_0x41d828:0x2c1,_0x58bf45:0x2bd,_0x5f19a5:0x2b5,_0x597c5e:0x2bd,_0x37d779:0x2b1,_0x530205:0x2be,_0x54c80b:0x5b,_0x553088:0x4d,_0x23c338:0x52,_0x517258:0x55,_0x469a4a:0x2aa,_0x344851:0x2b3,_0x564154:0x6b,_0x300ff4:0x64,_0x59edce:0x2ae,_0x2e50d3:0x2a9,_0x3e98e8:0x2ab,_0x5d2f39:0x6a,_0x5e1bea:0x57,_0x332e45:0x61,_0x17c2b0:0x2b8,_0xb3e0e0:0x2ad,_0x2a3c48:0x2b0,_0x59cbf1:0x71,_0x38a487:0x70},_0x5a828a={_0x2cfb41:0xb8},{navigationConstants:_0x14921b,navigationHelpers:_0x210c2f}=yield getContext(APP_CONTEXT_KEY);function _0x2dece6(_0x3c5c97,_0x1acccf,_0x388e49,_0xd505ac){return _0x2161(_0xd505ac- -_0x5a828a._0x2cfb41,_0x1acccf);}const _0x3644de=_0x210c2f[_0x2dece6(_0x124c01._0x246698,_0x124c01._0x50d997,_0x124c01._0x4cfb24,_0x124c01._0x46ecdc)+'Ref']['getCurrent'+_0x3ee5b2(_0x124c01._0x31dce8,_0x124c01._0x14e563,_0x124c01._0xe77970,_0x124c01._0xf920aa)]()?.[_0x3ee5b2(0x2c8,_0x124c01._0xcc06be,_0x124c01._0x3bfaca,0x2c3)];function _0x3ee5b2(_0x65f1b0,_0x5e54b9,_0x538171,_0x339514){return _0x2161(_0x5e54b9-0x1a5,_0x65f1b0);}if(_0x6c3042===_0x14921b[_0x3ee5b2(0x2c8,_0x124c01._0x41d828,_0x124c01._0x58bf45,_0x124c01._0x5f19a5)+'M']){const _0xc55f7a=_0x210c2f['navigation'+_0x3ee5b2(_0x124c01._0x597c5e,_0x124c01._0x37d779,_0x124c01._0x5f19a5,_0x124c01._0x530205)][_0x2dece6(_0x124c01._0x54c80b,_0x124c01._0x553088,_0x124c01._0x23c338,_0x124c01._0x517258)](),_0x3a4ddc=extractRouteNames(_0xc55f7a),_0x394d1e=_0x3a4ddc[_0x3ee5b2(_0x124c01._0xe77970,0x2b3,_0x124c01._0x469a4a,_0x124c01._0x344851)](_0x4e2670=>_0x4e2670[_0x2dece6(0x60,0x6e,0x68,0x68)]['includes'](_0x14921b[_0x2dece6(0x5a,0x6a,0x57,0x64)+'M']));if(_0x3644de===_0x14921b[_0x2dece6(_0x124c01._0x4cfb24,0x5a,_0x124c01._0x564154,_0x124c01._0x300ff4)+_0x3ee5b2(_0x124c01._0x59edce,0x2af,_0x124c01._0x2e50d3,_0x124c01._0x3e98e8)+'ST']){const _0x2017a7=_0x3a4ddc['find'](_0x18dc6f=>_0x18dc6f[_0x3ee5b2(0x2c0,0x2c5,0x2b8,0x2b8)]===_0x14921b[_0x2dece6(0x61,0x4c,0x4f,0x5a)]);return[_0x2017a7??{'name':_0x14921b['APP_ROOT']},{'name':_0x14921b[_0x2dece6(_0x124c01._0x5d2f39,_0x124c01._0x5e1bea,_0x124c01._0x332e45,0x64)+'M'],'params':_0x201502}];}if(_0x394d1e!==-(-0xd85+-0x6*-0xf4+0x7ce)){const _0x116064=trimAfterIndex(_0x3a4ddc,_0x394d1e-(-0x1*0x11c9+-0x470+0x163a));return _0x116064[_0x3ee5b2(_0x124c01._0x17c2b0,_0x124c01._0xb3e0e0,0x2b2,_0x124c01._0x2a3c48)]({'name':_0x14921b[_0x2dece6(0x5a,_0x124c01._0x59cbf1,_0x124c01._0x38a487,0x64)+'M'],'params':_0x201502}),_0x116064;}}return null;}export function*navigateSaga(_0x778595){const _0x2d99be={_0x54cf7f:0x238,_0x351fe1:0x23f,_0x2a50bd:0x25c,_0x515e6c:0x24f,_0x3f7ea8:0x256,_0x4051c9:0x253,_0x3f94b2:0x260,_0x15906e:0x259,_0x5ba38d:0xbf,_0x36a7c3:0xa3,_0x30e210:0xa4,_0x3980d9:0xb6,_0x25c0d2:0xb0,_0x30a4e5:0xc8,_0xe332c:0xc6,_0x4c7ef4:0xc9,_0x3f8c40:0xbe,_0x493033:0xb2,_0x59860f:0xb4,_0x34f764:0x254,_0x11a402:0x249,_0x43ac92:0x250},_0x21af92={_0x3d7ae0:0x1c4},_0x35aff9={_0x42a6e1:0x368};function _0x3269d9(_0x11da5c,_0x1be44e,_0x39ef9c,_0x70d1d1){return _0x2161(_0x1be44e- -_0x35aff9._0x42a6e1,_0x11da5c);}const {navigationHelpers:_0x975c8f}=yield getContext(APP_CONTEXT_KEY);function _0x3025a6(_0x2513f9,_0x46dea3,_0x2472c5,_0x3fb1df){return _0x2161(_0x3fb1df- -_0x21af92._0x3d7ae0,_0x2472c5);}const {routeName:_0x58cfa8,params:_0x1b24c6}=_0x778595[_0x3269d9(-_0x2d99be._0x54cf7f,-0x246,-0x254,-_0x2d99be._0x351fe1)],_0x1fd30b=_0x975c8f['navigation'+_0x3269d9(-_0x2d99be._0x2a50bd,-_0x2d99be._0x2a50bd,-_0x2d99be._0x515e6c,-_0x2d99be._0x3f7ea8)][_0x3269d9(-0x256,-_0x2d99be._0x4051c9,-_0x2d99be._0x3f94b2,-_0x2d99be._0x15906e)+_0x3025a6(-0xc4,-_0x2d99be._0x5ba38d,-0xb8,-0xbd)]()?.[_0x3025a6(-0xad,-0x9e,-_0x2d99be._0x36a7c3,-_0x2d99be._0x30e210)],_0x105178=yield*shouldReplaceNavigation(_0x1fd30b,_0x58cfa8);if(_0x105178){_0x975c8f[_0x3025a6(-_0x2d99be._0x3980d9,-_0x2d99be._0x25c0d2,-0xb0,-0xb9)](_0x58cfa8,_0x1b24c6);return;}const _0x208014=yield*shouldResetNavigation(_0x58cfa8,_0x1b24c6);if(_0x208014){_0x975c8f[_0x3025a6(-_0x2d99be._0x30a4e5,-_0x2d99be._0xe332c,-_0x2d99be._0x4c7ef4,-_0x2d99be._0x3f8c40)+_0x3025a6(-0xb2,-_0x2d99be._0x493033,-0xa7,-_0x2d99be._0x59860f)+'y'](_0x208014);return;}_0x975c8f[_0x3269d9(-_0x2d99be._0x34f764,-_0x2d99be._0x11a402,-_0x2d99be._0x43ac92,-0x253)](_0x58cfa8,_0x1b24c6);}export function*watchNavigation(){yield takeEvery(uiNavigateToRoute,navigateSaga);}