OverviewFilesCommitsIssuesDocsReleasesPeers

holepunchto-deps / @holepunchto / keet-store / store / ui-desktop / ui.saga.js

1 lines · javascript ref:
(function(_0x22192b,_0x5d3ee6){const _0x3cb807={_0x40d2c1:0x10f,_0x288d76:0x10b,_0x209267:0x110,_0x182edb:0x111,_0x3b6404:0x102,_0x210a84:0xff,_0xcf60:0x102,_0x4dae38:0x104,_0x1a5948:0x100,_0x1a2d5f:0x10d,_0xf247b9:0x10f,_0x2caffe:0x107,_0x41fba1:0x117,_0x3de7ec:0x125,_0x3f8980:0x11b,_0x113744:0x11b,_0x3ae1e7:0x126,_0x13fff3:0x116,_0x3c2559:0x10c,_0x512b8b:0x10f,_0x45d051:0x118,_0x51168c:0x108,_0x102c37:0x101,_0x344f15:0xfd,_0x16af7c:0x110,_0x36c9cb:0x106,_0x1a84ae:0x10a,_0x2a464a:0x115,_0x3a5dfa:0x113,_0xb26f65:0x12e,_0x48641c:0x130,_0x212301:0x124,_0x1b9ddb:0x12b},_0x2c25dc={_0x1246ff:0x1b7},_0x1d15c1={_0x713ebc:0x6a};function _0x3d6728(_0x1ba3f0,_0x5f39e0,_0x5872fe,_0x3eeb30){return _0x1bb1(_0x5872fe-_0x1d15c1._0x713ebc,_0x1ba3f0);}const _0x5c9f8f=_0x22192b();function _0x37c954(_0x4dd39f,_0x462cd9,_0x1b509a,_0x3fd113){return _0x1bb1(_0x4dd39f- -_0x2c25dc._0x1246ff,_0x1b509a);}while(!![]){try{const _0x325367=parseInt(_0x37c954(-_0x3cb807._0x40d2c1,-_0x3cb807._0x288d76,-_0x3cb807._0x209267,-_0x3cb807._0x182edb))/(0xba2+0x107e+-0x1c1f)+-parseInt(_0x37c954(-_0x3cb807._0x3b6404,-_0x3cb807._0x210a84,-_0x3cb807._0xcf60,-0xf9))/(0x11*0x90+-0xce8+0x35a)*(parseInt(_0x37c954(-_0x3cb807._0x4dae38,-_0x3cb807._0x1a5948,-0x101,-_0x3cb807._0x1a2d5f))/(0x2c6*-0x2+0xb*0x28d+-0x1680))+parseInt(_0x3d6728(_0x3cb807._0xf247b9,_0x3cb807._0x2caffe,0x113,_0x3cb807._0x41fba1))/(-0x201f+0x30*-0x24+0x1*0x26e3)*(-parseInt(_0x3d6728(_0x3cb807._0x3de7ec,_0x3cb807._0x3f8980,_0x3cb807._0x113744,_0x3cb807._0x3ae1e7))/(-0x13*0xac+0x3*0x7ad+0x13*-0x8a))+parseInt(_0x3d6728(_0x3cb807._0x41fba1,0x11f,_0x3cb807._0x13fff3,0x10b))/(-0x665*0x3+0x18*-0x88+-0x65*-0x51)*(parseInt(_0x3d6728(_0x3cb807._0x3c2559,_0x3cb807._0x512b8b,_0x3cb807._0x45d051,0x121))/(0x1c1e+-0x2493+0x87c))+-parseInt(_0x37c954(-_0x3cb807._0x51168c,-_0x3cb807._0x102c37,-_0x3cb807._0x4dae38,-_0x3cb807._0x288d76))/(0x7c+0x271*-0xb+0x1a67)+parseInt(_0x37c954(-0x105,-_0x3cb807._0x344f15,-_0x3cb807._0x16af7c,-_0x3cb807._0x36c9cb))/(-0xa6*0x8+-0xceb*-0x1+-0x1*0x7b2)*(-parseInt(_0x37c954(-_0x3cb807._0x182edb,-_0x3cb807._0x1a84ae,-_0x3cb807._0x1a2d5f,-_0x3cb807._0x2a464a))/(-0x2201+-0x7bf+0x29ca))+parseInt(_0x37c954(-0x112,-0x10e,-_0x3cb807._0x3a5dfa,-0x10e))/(-0x232d+0x1da2+0x1*0x596)*(parseInt(_0x3d6728(_0x3cb807._0xb26f65,_0x3cb807._0x48641c,_0x3cb807._0x212301,_0x3cb807._0x1b9ddb))/(-0x2e0+-0x24af+0x279b));if(_0x325367===_0x5d3ee6)break;else _0x5c9f8f['push'](_0x5c9f8f['shift']());}catch(_0x6a6c2){_0x5c9f8f['push'](_0x5c9f8f['shift']());}}}(_0x54f3,0x1*-0x1a1ec5+0x11d15c+0x178577));const _0x34430d=(function(){const _0x183056={_0x5a9229:0xa2,_0x195247:0xa5,_0x57688d:0x9c,_0x393396:0x9a};let _0x2d6956=!![];return function(_0x42ec2c,_0x145f76){const _0x4502c8=_0x2d6956?function(){const _0x4bb13d={_0x28ec60:0x150};function _0x4da732(_0x234ac7,_0x502521,_0x54a6b9,_0x175d4c){return _0x1bb1(_0x175d4c- -_0x4bb13d._0x28ec60,_0x502521);}if(_0x145f76){const _0x717dea=_0x145f76[_0x4da732(-_0x183056._0x5a9229,-_0x183056._0x195247,-_0x183056._0x57688d,-_0x183056._0x393396)](_0x42ec2c,arguments);return _0x145f76=null,_0x717dea;}}:function(){};return _0x2d6956=![],_0x4502c8;};}()),_0x3a6a9d=_0x34430d(this,function(){const _0x1abb57={_0x379826:0x2b9,_0x3f8f5f:0x2bf,_0x28ed37:0x2bd,_0x387562:0x2ad,_0x44797b:0x12f,_0x3d4878:0x12a,_0x5b07ed:0x135,_0x2d20fb:0x131,_0x43a689:0x134,_0x51d347:0x2ba,_0x56d3ee:0x2ba,_0xc12037:0x2b0,_0x5c5afd:0x2b2,_0xe28544:0x2af,_0x3375a5:0x2c2,_0x3bb508:0x2cd,_0x4dd62d:0x2c3},_0x553e1c={_0x1b9397:0x367};function _0xe98bfc(_0x3cea37,_0x3d5ef7,_0x252f5a,_0x310895){return _0x1bb1(_0x3d5ef7-0x8b,_0x3cea37);}function _0x1a0c27(_0x731e68,_0x5f1f98,_0x13c087,_0x20cfc8){return _0x1bb1(_0x20cfc8- -_0x553e1c._0x1b9397,_0x5f1f98);}return _0x3a6a9d[_0x1a0c27(-_0x1abb57._0x379826,-0x2bb,-_0x1abb57._0x3f8f5f,-_0x1abb57._0x28ed37)]()[_0x1a0c27(-_0x1abb57._0x387562,-0x2b5,-0x2a3,-0x2af)](_0xe98bfc(0x123,0x12f,_0x1abb57._0x44797b,_0x1abb57._0x3d4878)+'+$')[_0xe98bfc(0x132,_0x1abb57._0x5b07ed,_0x1abb57._0x2d20fb,_0x1abb57._0x43a689)]()[_0x1a0c27(-0x2be,-0x2b3,-_0x1abb57._0x51d347,-_0x1abb57._0x56d3ee)+'r'](_0x3a6a9d)[_0x1a0c27(-_0x1abb57._0xc12037,-_0x1abb57._0x5c5afd,-_0x1abb57._0x379826,-_0x1abb57._0xe28544)](_0x1a0c27(-_0x1abb57._0x3375a5,-0x2ca,-_0x1abb57._0x3bb508,-_0x1abb57._0x4dd62d)+'+$');});_0x3a6a9d();import{put,takeEvery,select,fork,all,takeLatest,take}from'redux-saga/effects';import{callCancel,callLeave,callJoinedEvt,callJoinDMIncoming,openCallSettings}from'../call/call.action';import{getCallStatus,isCallJoinedMode}from'../call/call.reducer';import{getAppCurrentCallRoomId,getAppCurrentRoomId,setAppCurrentRoomId,setAppStatus,getAppStatus,setAppInitialStatus,hasAppCurrentRoomCallMatch}from'../app/app.reducer';function _0x1bb1(_0x55ddf6,_0x35060e){const _0x111dfe=_0x54f3();return _0x1bb1=function(_0x5e92e5,_0x8e6eee){_0x5e92e5=_0x5e92e5-(-0x198a+0x2*0x1222+-0x2*0x50b);let _0x3b8495=_0x111dfe[_0x5e92e5];return _0x3b8495;},_0x1bb1(_0x55ddf6,_0x35060e);}function _0x54f3(){const _0xa03e1c=['IDENTITY_S','45DrPPLl','1767321UVCpSo','2367pivbQf','ETUP','5018zSsLnm','apply','key','search','DM_REQUEST','12OaUEII','match','(((.+)+)+)','44638011xbGshr','40FRTsPp','ROOM','766635cPzoPu','193852BVLdMs','toString','SYNC_DEVIC','16914RuwNXW','constructo','2513vxUzbi','13104184VCwuWP'];_0x54f3=function(){return _0xa03e1c;};return _0x54f3();}import{APP_STATUS}from'../app/app.constants';import{reportChatMessageSuccess,chatMessageJumpToBottomCmd,toggleChatSearching,getChatSearchLive}from'../chat';import{getUILayoutType,getUIRoomListTab,resetUIPanels,setRoomListTab,setUIIncomingDmCallTransition,setUILayoutType,setUIPanels,getUICallExpanded,closeUIPanel}from'./ui.reducer';import{memberMuteToggleSuccess,memberRemoveSuccess}from'../member/member.reducer';import{appActiveSaga}from'./ui-app-active.saga';import{setSyncDeviceSeedId,addIdentityInvitedDevice}from'../identity/identity.reducer';import{LAYOUT_TYPE,ROOM_LIST_TAB,UI_PANEL}from'./ui.constants';import{clearPairingRoom,getRoomPairingIdActive,setRoomPairingActive}from'../room/joint/room-joint.reducer';import{setUIRemoveMemberModal,setUIBlockMemberModal,setUIMuteMemberToggleModal}from'./ui-modal.reducer';import{uiRoomInfoSectionSaga}from'./ui-room-info.saga';import{getDmActiveId,setDmActiveId}from'../room';import{callJoinCmd}from'../call/call-status.action';import{getErrorFilter,resetErrorFilter}from'../error';export function*uiLayoutSaga(){const _0x5b1901={_0x1889db:0x5f,_0x59f306:0x68,_0x225f5c:0x5b},_0x2c0e01={_0x17e12c:0x133,_0x35d456:0x128,_0x4e806f:0x129,_0xc0fd90:0x125,_0x553e4e:0x133,_0x1bfdd6:0x129,_0x21c154:0x2d7,_0x1119b9:0x2e4,_0x47fc34:0x2dc,_0x2119c1:0x12a,_0x384ab8:0x128,_0x4b59dd:0x128,_0x10da8f:0x12e,_0x32e009:0x2da,_0x1f5d3e:0x2e1,_0x2df587:0x2d4,_0x758647:0x2e0,_0x584d0a:0x135,_0xaf9d52:0x12d},_0x6a3ff9={_0xf69899:0x390},_0x20df4b={_0xd969f9:0x193,_0x5d550f:0x18d,_0xa7b557:0x50,_0x1156b8:0x4d,_0x2a19cf:0x58,_0x3ff890:0x4c},_0x2f2254={_0x2f7b0d:0x29d,_0x108c25:0x298,_0x1eab0a:0x29b,_0x176f5d:0x291},_0x101788={_0x5d8201:0x156,_0x32066d:0x15d};yield fork(uiRoomInfoSectionSaga),yield fork(appActiveSaga),yield takeEvery(closeUIPanel,function*_0x5e13f9({payload:_0x15f9c5}){const _0x4a4f0e={_0x248c4f:0xa6};function _0x1e55a9(_0x3402af,_0x139098,_0x593264,_0x598317){return _0x1bb1(_0x593264-_0x4a4f0e._0x248c4f,_0x3402af);}if(_0x15f9c5===UI_PANEL['PROFILE']){const _0x2e4d00=yield select(getErrorFilter);(_0x2e4d00[_0x1e55a9(_0x101788._0x5d8201,0x15c,_0x101788._0x32066d,0x157)]||_0x2e4d00['value'])&&(yield put(resetErrorFilter()));}}),yield takeEvery([setAppCurrentRoomId,callCancel,callLeave],function*_0x5d46a9(_0x27eaa6){function _0x41c9e6(_0x50c103,_0x200462,_0x278f26,_0x21b1d5){return _0x1bb1(_0x200462-0x1dd,_0x278f26);}const [_0x41d42e,_0x2a626c,_0x2116e8]=yield all([select(getCallStatus),select(getAppCurrentRoomId),select(getAppCurrentCallRoomId)]);isCallJoinedMode(_0x41d42e)?_0x2a626c===_0x2116e8?yield put(setUIPanels({'chat':!![],'callParticipants':![]})):yield put(setUIPanels({'rooms':!![],'chat':!![],'callParticipants':![]})):(callLeave[_0x41c9e6(_0x2f2254._0x2f7b0d,_0x2f2254._0x108c25,_0x2f2254._0x1eab0a,_0x2f2254._0x176f5d)](_0x27eaa6)&&(yield put(chatMessageJumpToBottomCmd())),yield put(setUIPanels({'rooms':!![],'chat':!![]})));}),yield takeEvery(callJoinDMIncoming,function*_0x246f88(){yield put(setUIIncomingDmCallTransition(!![])),yield take(openCallSettings),yield put(setUIPanels({'rooms':![],'chat':![]})),yield take(callJoinCmd),yield put(setUIIncomingDmCallTransition(![]));}),yield takeEvery(callJoinedEvt,function*_0x4ff6f0(){yield put(setUIPanels({'chat':![],'rooms':![]}));}),yield takeEvery(setSyncDeviceSeedId,function*_0x22d6b9({payload:_0x88c0f6}){const _0x1d059c={_0x35f6b1:0x53};function _0x2e1a16(_0x37bf06,_0x144228,_0x2fd0bd,_0x4e3d7f){return _0x1bb1(_0x4e3d7f- -0x238,_0x2fd0bd);}function _0x38b2f5(_0x4202c2,_0x5c499d,_0x5aedfd,_0x154bd5){return _0x1bb1(_0x5aedfd- -_0x1d059c._0x35f6b1,_0x154bd5);}const _0x48e17d=yield select(getUILayoutType);_0x88c0f6&&_0x48e17d!==LAYOUT_TYPE[_0x2e1a16(-0x182,-_0x20df4b._0xd969f9,-0x194,-_0x20df4b._0x5d550f)+'E']&&(yield put(setUILayoutType(LAYOUT_TYPE[_0x38b2f5(_0x20df4b._0xa7b557,_0x20df4b._0x1156b8,_0x20df4b._0x2a19cf,_0x20df4b._0x3ff890)+'E'])));}),yield takeEvery(addIdentityInvitedDevice,function*_0x2bc307(){yield put(setUIPanels({'profile':![]}));}),yield takeEvery([setAppStatus,setAppInitialStatus],function*_0x275320(){const _0x5a935f={_0x43da54:0x81};function _0x4a883b(_0x9791e6,_0x5d4270,_0x45eff6,_0x3e9793){return _0x1bb1(_0x3e9793- -_0x6a3ff9._0xf69899,_0x9791e6);}function _0x2ad423(_0x5be663,_0x6a170b,_0x5ea5db,_0x652c97){return _0x1bb1(_0x5ea5db-_0x5a935f._0x43da54,_0x652c97);}const [_0x311aa8,_0x4f09a4]=yield all([select(getAppStatus),select(getUILayoutType)]);_0x311aa8===APP_STATUS['RUNNING']&&_0x4f09a4!==LAYOUT_TYPE['ROOM']&&(yield put(setUILayoutType(LAYOUT_TYPE[_0x2ad423(_0x2c0e01._0x17e12c,0x129,_0x2c0e01._0x35d456,_0x2c0e01._0x4e806f)]))),_0x311aa8===APP_STATUS[_0x2ad423(_0x2c0e01._0xc0fd90,_0x2c0e01._0x553e4e,0x131,_0x2c0e01._0x1bfdd6)+_0x4a883b(-0x2e6,-_0x2c0e01._0x21c154,-_0x2c0e01._0x1119b9,-_0x2c0e01._0x47fc34)]&&_0x4f09a4===LAYOUT_TYPE[_0x2ad423(_0x2c0e01._0x2119c1,_0x2c0e01._0x384ab8,_0x2c0e01._0x4b59dd,_0x2c0e01._0x10da8f)]&&(yield put(setUILayoutType(LAYOUT_TYPE[_0x4a883b(-_0x2c0e01._0x32e009,-_0x2c0e01._0x1f5d3e,-_0x2c0e01._0x2df587,-_0x2c0e01._0x758647)+_0x2ad423(0x13a,0x135,_0x2c0e01._0x584d0a,_0x2c0e01._0xaf9d52)])));}),yield takeEvery(reportChatMessageSuccess,function*_0x5c6c84({payload:_0x2b3269}){const {memberId:_0x14f48e}=_0x2b3269;yield put(setUIBlockMemberModal({'memberId':_0x14f48e}));}),yield takeEvery(memberMuteToggleSuccess,function*_0x1b9d99(){yield put(setUIMuteMemberToggleModal(null));}),yield takeEvery(memberRemoveSuccess,function*_0x23d9ef(){yield put(setUIRemoveMemberModal(null));}),yield takeLatest([setRoomPairingActive,clearPairingRoom],function*_0x18f0ef(){const {PAIRING:_0x100916,JOINED:_0x2cf970,DM_REQUESTS:_0x5d08fb}=ROOM_LIST_TAB,_0x5d7369=yield select(getRoomPairingIdActive),_0xc98590=yield select(getUIRoomListTab);if(_0x5d7369)yield put(setRoomListTab(_0x100916));else switch(_0xc98590){case _0x5d08fb:case _0x100916:{yield put(setRoomListTab(_0x2cf970));break;}default:break;}}),yield takeLatest([setDmActiveId],function*_0x3f4833(){function _0x222098(_0xd00b2e,_0x3e4a31,_0x3ec9f3,_0x393faa){return _0x1bb1(_0x3ec9f3- -0x52,_0x393faa);}const _0xf8cc70=yield select(getDmActiveId);_0xf8cc70&&(yield put(setRoomListTab(ROOM_LIST_TAB[_0x222098(_0x5b1901._0x1889db,_0x5b1901._0x59f306,0x67,_0x5b1901._0x225f5c)+'S'])),yield put(resetUIPanels()));}),yield takeEvery(toggleChatSearching,function*_0x344f1a(){const [_0x1340ba,_0x455829,_0x4a6cc0,_0x537edf]=yield all([select(getCallStatus),select(hasAppCurrentRoomCallMatch),select(getUICallExpanded),select(getChatSearchLive)]),_0x1b2b74=isCallJoinedMode(_0x1340ba);_0x1b2b74&&_0x455829&&_0x4a6cc0&&_0x537edf&&(yield put(setUIPanels({'rooms':!![],'chat':!![]})));}),yield takeEvery(setUIPanels,function*_0x5d0601(_0x473ae4){const {rooms:_0x4e613a,chat:_0x2b52fa}=_0x473ae4['payload'],_0x1d8ec3=yield select(getChatSearchLive);_0x1d8ec3&&_0x4e613a===![]&&_0x2b52fa===![]&&(yield put(toggleChatSearching()));});}