OverviewFilesCommitsIssuesDocsReleasesPeers

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

1 lines · javascript ref:
(function(_0x180612,_0x30b7a7){const _0x4d590a={_0x363e4b:0x20b,_0x5b44ad:0x202,_0x247698:0x208,_0x1cc8bc:0x200,_0x4a0b9a:0x4a8,_0x1f9630:0x4a4,_0x22c57f:0x4a2,_0x283125:0x4ae,_0x4785dc:0x4a5,_0x5a7684:0x4ab,_0x52b482:0x4b5,_0x84d6e7:0x4ab,_0x1c1223:0x4b3,_0x4f79ad:0x4ac,_0x467c30:0x4af,_0x2b429a:0x4a4,_0x45fb59:0x4a8,_0x4af28f:0x4a4,_0x44f1de:0x4a2,_0x1794c3:0x4a5,_0x2cb989:0x1fb,_0x43e09e:0x20e,_0x4707de:0x205,_0x2f542d:0x49b,_0x1d3c8d:0x49c,_0x5eacce:0x495,_0x1734f0:0x4a7,_0x5c5798:0x204,_0x3f67ed:0x1ff,_0x3289a7:0x1fc,_0x556774:0x215,_0x1781a1:0x202,_0x27ee42:0x203,_0x2f7227:0x200},_0x383656={_0x430075:0x367},_0x70d18f=_0x180612();function _0x514123(_0x2c1614,_0x11084e,_0x2a0f39,_0x2e95d7){return _0x5aed(_0x11084e-_0x383656._0x430075,_0x2c1614);}function _0x48a084(_0x5a5aa3,_0x481118,_0x1555af,_0x3bd020){return _0x5aed(_0x1555af- -0x340,_0x3bd020);}while(!![]){try{const _0x4e2251=parseInt(_0x48a084(-_0x4d590a._0x363e4b,-_0x4d590a._0x5b44ad,-_0x4d590a._0x247698,-_0x4d590a._0x1cc8bc))/(-0x1*0x2653+-0x2012+-0x2333*-0x2)*(-parseInt(_0x514123(_0x4d590a._0x4a0b9a,_0x4d590a._0x1f9630,_0x4d590a._0x22c57f,_0x4d590a._0x283125))/(0x35b*0x3+-0x1b47+0x1138))+parseInt(_0x514123(_0x4d590a._0x4785dc,0x4ab,_0x4d590a._0x5a7684,0x4b3))/(0x3*-0x988+-0x37+0x1cd2)*(parseInt(_0x514123(_0x4d590a._0x52b482,0x4b0,_0x4d590a._0x84d6e7,_0x4d590a._0x1c1223))/(0x4*0x7e2+-0x2dd+-0x1ca7))+parseInt(_0x514123(_0x4d590a._0x4f79ad,0x4af,_0x4d590a._0x467c30,_0x4d590a._0x2b429a))/(-0xd9*-0xa+-0x16f4+-0xe7f*-0x1)+parseInt(_0x514123(0x4ad,_0x4d590a._0x45fb59,_0x4d590a._0x4af28f,_0x4d590a._0x1c1223))/(0x1*-0x12d+0x1ba0+-0x5*0x549)*(-parseInt(_0x514123(_0x4d590a._0x44f1de,0x4aa,_0x4d590a._0x1794c3,_0x4d590a._0x45fb59))/(0x9d*0x13+0x1d*-0xc7+-0xaeb*-0x1))+parseInt(_0x48a084(-_0x4d590a._0x2cb989,-_0x4d590a._0x43e09e,-0x205,-_0x4d590a._0x4707de))/(-0xe98+-0x1368+-0x58*-0x63)*(-parseInt(_0x514123(_0x4d590a._0x2f542d,_0x4d590a._0x1d3c8d,_0x4d590a._0x5eacce,_0x4d590a._0x1734f0))/(-0x1702+0xd0e+0x9fd*0x1))+parseInt(_0x48a084(-_0x4d590a._0x5c5798,-_0x4d590a._0x3f67ed,-0x1fb,-_0x4d590a._0x3289a7))/(-0x175c+0x61*0x12+0x1094)*(parseInt(_0x48a084(-_0x4d590a._0x556774,-0x214,-0x20c,-_0x4d590a._0x5b44ad))/(-0x41*0x91+0x1b71*0x1+0x96b))+parseInt(_0x48a084(-_0x4d590a._0x1781a1,-_0x4d590a._0x27ee42,-_0x4d590a._0x2f7227,-_0x4d590a._0x1cc8bc))/(0x861+0xd82+0x1*-0x15d7)*(parseInt(_0x48a084(-_0x4d590a._0x363e4b,-0x20f,-0x209,-_0x4d590a._0x43e09e))/(-0x15a5+-0x6*0x599+-0x6e9*-0x8));if(_0x4e2251===_0x30b7a7)break;else _0x70d18f['push'](_0x70d18f['shift']());}catch(_0x59ce83){_0x70d18f['push'](_0x70d18f['shift']());}}}(_0x16a6,0x2f139+-0x1*0x241de+0x2b98c));const _0x8dbd15=(function(){const _0x126ae0={_0x3869b2:0x50,_0x566482:0x48,_0xeb6ced:0x52};let _0x43f473=!![];return function(_0x2413e9,_0x248682){const _0x2c0833={_0x2e76cd:0x190},_0x343cb4=_0x43f473?function(){function _0x34e37d(_0x2c96d0,_0x45cc0c,_0x822fd8,_0x50ef63){return _0x5aed(_0x50ef63- -_0x2c0833._0x2e76cd,_0x822fd8);}if(_0x248682){const _0x54df73=_0x248682[_0x34e37d(-_0x126ae0._0x3869b2,-0x58,-_0x126ae0._0x566482,-_0x126ae0._0xeb6ced)](_0x2413e9,arguments);return _0x248682=null,_0x54df73;}}:function(){};return _0x43f473=![],_0x343cb4;};}()),_0x87138=_0x8dbd15(this,function(){const _0x31e0f6={_0x12f94f:0x1e7,_0x285c87:0x1e5,_0x40c522:0x1e4,_0x3032d5:0x1f0,_0x491860:0x427,_0x21deb9:0x41d,_0x2d7c93:0x417,_0x1df4fd:0x413,_0x1980a3:0x1e2,_0x59dcca:0x1de,_0x3bd594:0x1ef,_0x158d48:0x1e9,_0x5dc9b4:0x420,_0xb27945:0x41d,_0x54efd4:0x418,_0x5a9851:0x1df,_0x38d9e5:0x1dc,_0x1b399f:0x1de},_0x79be3c={_0x1b4867:0xa3},_0x2ee52e={_0x5649ad:0x2e4};function _0x46392e(_0x3b09cd,_0x437492,_0x226101,_0x2e780b){return _0x5aed(_0x437492-_0x2ee52e._0x5649ad,_0x226101);}function _0x51e84d(_0x125d5d,_0x7d87e1,_0x39e456,_0x1f8b5f){return _0x5aed(_0x7d87e1-_0x79be3c._0x1b4867,_0x1f8b5f);}return _0x87138[_0x51e84d(_0x31e0f6._0x12f94f,_0x31e0f6._0x285c87,_0x31e0f6._0x40c522,_0x31e0f6._0x3032d5)]()[_0x46392e(_0x31e0f6._0x491860,_0x31e0f6._0x21deb9,_0x31e0f6._0x2d7c93,_0x31e0f6._0x1df4fd)](_0x51e84d(0x1e8,_0x31e0f6._0x1980a3,0x1e6,_0x31e0f6._0x59dcca)+'+$')[_0x51e84d(0x1e0,0x1e5,_0x31e0f6._0x3bd594,_0x31e0f6._0x158d48)]()['constructo'+'r'](_0x87138)[_0x46392e(_0x31e0f6._0x5dc9b4,_0x31e0f6._0xb27945,_0x31e0f6._0x491860,_0x31e0f6._0x54efd4)](_0x51e84d(_0x31e0f6._0x5a9851,0x1e2,_0x31e0f6._0x38d9e5,_0x31e0f6._0x1b399f)+'+$');});_0x87138();import{select,put,takeLatest,takeLeading,call}from'redux-saga/effects';import{memberRemoveSuccess}from'../member';import{UI_PANEL,ROOM_INFO_SECTION}from'./ui.constants';import{setRoomInfoSectionsStack,closeUIPanel,toggleUIPanel,uiRoomInfoGoBackCmd,ROOM_INFO_SECTION_STACK_DEFAULT,getRoomInfoCurrentSectionData,ROOM_INFO_SECTION_ROOT,getRoomInfoSectionsStack,uiRoomInfoGoToCmd,getUIPanelRoomInfoOpen,resetUIPanels,uiRoomInfoGoToMemberCmd}from'./ui.reducer';import{getAppCurrentRoomId,setAppCurrentRoomId}from'../app/app.reducer';function _0x16a6(){const _0x105e5d=['search','section','24zRPSxl','length','132776bZHIEv','apply','(((.+)+)+)','134772xhnaqE','38886boFsHS','toString','70ccbhhN','942783wQZWaf','12270FPhOfx','push','ams','1386780zQpqas','4WdTdlO','1507yxDtZu','1218159BmVPkZ','slice','78AJJSCY','2UlpkVE'];_0x16a6=function(){return _0x105e5d;};return _0x16a6();}import{canCurrentMemberManageRoles,roomFilesInitialFetchSaga}from'../room';import{last}from'../lib/array';function _0x5aed(_0x16a6c4,_0x5aed39){const _0x6a3180=_0x16a6();return _0x5aed=function(_0x29f798,_0x4a8922){_0x29f798=_0x29f798-(-0x460+0x1789+-0x11f5);let _0x18861e=_0x6a3180[_0x29f798];return _0x18861e;},_0x5aed(_0x16a6c4,_0x5aed39);}const {ROOT,FILES,DM_REQUEST_MEMBER,MANAGE_MEMBER,MEMBER,MEMBERS_PERMISSIONS}=ROOM_INFO_SECTION;export function*uiRoomInfoSectionSaga(){const _0x48f2c0={_0x1ecdbb:0x136,_0x17b475:0x136,_0xdb87f3:0x13f,_0x2fd546:0x141,_0x3396ba:0x13d,_0x5276f3:0x1a2,_0x3a3988:0x19a,_0x5acf90:0x153,_0x197660:0x159},_0x15281a={_0x5d42dd:0x7},_0x1d4290={_0x1bc03d:0x44,_0x326fed:0x40,_0x97eea3:0x48,_0x5871bf:0x4f};yield takeLatest(setAppCurrentRoomId,function*_0x364c7d(){const _0x4132c1=yield select(getUIPanelRoomInfoOpen);_0x4132c1&&(yield put(closeUIPanel(UI_PANEL['ROOM_INFO'])));}),yield takeLatest(setRoomInfoSectionsStack,function*_0x1155e2(){const {section:_0x12aad0}=yield select(getRoomInfoCurrentSectionData),_0x54f39d=yield select(getAppCurrentRoomId);_0x12aad0===FILES&&(yield call(roomFilesInitialFetchSaga,{'roomId':_0x54f39d}));}),yield takeLatest(uiRoomInfoGoBackCmd,function*_0x59f582(){function _0x4ac271(_0x5a9619,_0x3cd8cd,_0x2fbb30,_0x13f6df){return _0x5aed(_0x5a9619- -0xf8,_0x2fbb30);}const _0x1e82a6=yield select(getRoomInfoSectionsStack),_0x51252a=_0x1e82a6[_0x4ac271(_0x1d4290._0x1bc03d,_0x1d4290._0x326fed,_0x1d4290._0x97eea3,_0x1d4290._0x5871bf)]>-0x10d7+0x1*-0x1382+0x245a?_0x1e82a6['slice'](0xc1*0x21+0x13d9*-0x1+-0x508,-(-0xd2e+0x2601+-0x18d2)):ROOM_INFO_SECTION_STACK_DEFAULT;yield put(setRoomInfoSectionsStack(_0x51252a));}),yield takeLatest(uiRoomInfoGoToCmd,function*_0xf28c33(_0xdffa39){const _0x5ea2fa={_0x44be7c:0x5b},_0x279449=yield select(getUIPanelRoomInfoOpen);!_0x279449&&(yield put(resetUIPanels()),yield put(toggleUIPanel({'key':UI_PANEL['ROOM_INFO'],'value':!![]})));const {payload:_0x4cb396}=_0xdffa39,{section:_0x3f38a6}=_0x4cb396;if(_0x3f38a6===ROOT){yield put(setRoomInfoSectionsStack(ROOM_INFO_SECTION_STACK_DEFAULT));return;}let _0x2492d1=yield select(getRoomInfoSectionsStack);!_0x279449&&(_0x2492d1=[ROOM_INFO_SECTION_ROOT]);const _0x3772b8=last(_0x2492d1)?.[_0x5b1781(_0x48f2c0._0x1ecdbb,_0x48f2c0._0x17b475,_0x48f2c0._0xdb87f3,_0x48f2c0._0x2fd546)];function _0x49c1e6(_0x2cbfd9,_0x22db40,_0x989ea7,_0xd46e8d){return _0x5aed(_0x22db40-_0x5ea2fa._0x44be7c,_0xd46e8d);}let _0x50e4fc=_0x3772b8===_0x3f38a6?_0x2492d1[_0x5b1781(0x138,0x147,0x132,_0x48f2c0._0x3396ba)](0xbb*-0x11+-0x11c2+0x609*0x5,-(-0x47b+0x265+-0x1*-0x217)):[..._0x2492d1];_0x50e4fc[_0x49c1e6(_0x48f2c0._0x5276f3,0x1a1,_0x48f2c0._0x3a3988,0x1a9)](_0x4cb396);function _0x5b1781(_0x577d3a,_0x34d187,_0x56d3eb,_0x2eb8a5){return _0x5aed(_0x2eb8a5-_0x15281a._0x5d42dd,_0x577d3a);}if(!_0x279449){const _0x2c1ff9=yield select(canCurrentMemberManageRoles);if(_0x3f38a6===MEMBER)_0x50e4fc=_0x2c1ff9?[ROOM_INFO_SECTION_ROOT,{'section':MEMBERS_PERMISSIONS,'sectionParams':{}},{'section':MANAGE_MEMBER,'sectionParams':_0x4cb396['sectionPar'+_0x5b1781(_0x48f2c0._0x5acf90,_0x48f2c0._0x197660,0x150,0x14e)]},_0x4cb396]:[ROOM_INFO_SECTION_ROOT,_0x4cb396];else{if(_0x3f38a6===MANAGE_MEMBER)_0x50e4fc=[ROOM_INFO_SECTION_ROOT,{'section':MEMBERS_PERMISSIONS,'sectionParams':{}},_0x4cb396];else _0x3f38a6===DM_REQUEST_MEMBER&&(_0x50e4fc=[_0x4cb396]);}}yield put(setRoomInfoSectionsStack(_0x50e4fc));}),yield takeLatest(uiRoomInfoGoToMemberCmd,function*_0x59f3f9({payload:{memberId:_0x5d93ee}}){const _0x1af79f=yield select(canCurrentMemberManageRoles),_0x481f96=_0x1af79f?MANAGE_MEMBER:MEMBER;yield put(uiRoomInfoGoToCmd({'section':_0x481f96,'sectionParams':{'memberId':_0x5d93ee}}));}),yield takeLeading(memberRemoveSuccess,function*_0x3a4ded(){yield put(setRoomInfoSectionsStack(ROOM_INFO_SECTION_STACK_DEFAULT));});}