(function(_0x36eeb0,_0x48241b){const _0x1eee58={_0xc1c252:0x13f,_0x112fd7:0x140,_0x20d2cd:0x147,_0x11fc36:0x174,_0x25c3ce:0x172,_0x33809a:0x16d,_0x2ee0ec:0x165,_0x3ede88:0x163,_0x1dd3c4:0x16a,_0x3f05f3:0x144,_0x24b2df:0x173,_0x174a46:0x169,_0x404e20:0x144,_0x5869f6:0x135,_0x3a96d7:0x148,_0x219a25:0x14c},_0xe94996={_0x54de5a:0x41};function _0x1773dc(_0x5f5670,_0x380af8,_0x34955d,_0x58eab2){return _0x4e48(_0x34955d- -_0xe94996._0x54de5a,_0x58eab2);}function _0x30e3b9(_0x5d5ae5,_0x38fae0,_0x1982bc,_0x48357a){return _0x4e48(_0x48357a- -0x18,_0x5d5ae5);}const _0x55841b=_0x36eeb0();while(!![]){try{const _0x1f4f61=-parseInt(_0x1773dc(0x137,_0x1eee58._0xc1c252,_0x1eee58._0x112fd7,_0x1eee58._0x20d2cd))/(0x1971+-0x7*-0x2bd+0x2c9b*-0x1)+parseInt(_0x30e3b9(_0x1eee58._0x11fc36,0x168,_0x1eee58._0x25c3ce,_0x1eee58._0x33809a))/(0xf79+0x1807+-0x695*0x6)+-parseInt(_0x30e3b9(_0x1eee58._0x2ee0ec,0x171,_0x1eee58._0x3ede88,_0x1eee58._0x1dd3c4))/(-0x1*0x919+0x8f*0x10+0x16*0x2)+-parseInt(_0x1773dc(_0x1eee58._0x3f05f3,0x14c,0x148,_0x1eee58._0xc1c252))/(-0x43+-0x28*-0xe0+0x3*-0xb93)+-parseInt(_0x30e3b9(_0x1eee58._0x24b2df,0x16c,_0x1eee58._0x174a46,0x16c))/(-0x2474+0x10b0+0x13c9)+parseInt(_0x1773dc(_0x1eee58._0x404e20,_0x1eee58._0x5869f6,0x13b,0x138))/(0x6*-0x272+-0x1993+-0x1*-0x2845)+parseInt(_0x1773dc(_0x1eee58._0x3a96d7,_0x1eee58._0x20d2cd,_0x1eee58._0x219a25,_0x1eee58._0x219a25))/(-0x1875+0x1bf*0x12+-0x6f2);if(_0x1f4f61===_0x48241b)break;else _0x55841b['push'](_0x55841b['shift']());}catch(_0x2b35f4){_0x55841b['push'](_0x55841b['shift']());}}}(_0xbde9,-0x73c58+-0x94bea+0x169160));const _0x40de6=(function(){let _0x4901f7=!![];return function(_0x525c54,_0x427a68){const _0xa540b={_0x36cfd5:0x9f,_0xf9fb74:0x97},_0x13ee1e={_0x53dbc6:0xf0},_0x49799c=_0x4901f7?function(){function _0xdb0357(_0x449b8a,_0x467956,_0x5a14c7,_0x5e5ffc){return _0x4e48(_0x5e5ffc- -_0x13ee1e._0x53dbc6,_0x449b8a);}if(_0x427a68){const _0x5a27da=_0x427a68[_0xdb0357(_0xa540b._0x36cfd5,0x9a,0x9a,_0xa540b._0xf9fb74)](_0x525c54,arguments);return _0x427a68=null,_0x5a27da;}}:function(){};return _0x4901f7=![],_0x49799c;};}()),_0x388f90=_0x40de6(this,function(){const _0x1029fc={_0x51cb69:0x9e,_0x5d54c3:0x9a,_0xe9a0d4:0x9e,_0x3b5dcc:0x91,_0x35e173:0x92,_0x2bd2cf:0x98,_0x5ca1cc:0x229,_0x1fc759:0x226,_0x3bc8b6:0x22c},_0x3148e5={_0x2aebc7:0xa4},_0x45d678={_0x21e3dc:0x218};function _0x5ea9b5(_0x4040c0,_0x5165b4,_0x588e43,_0x2f11ba){return _0x4e48(_0x5165b4- -_0x45d678._0x21e3dc,_0x588e43);}function _0x53604e(_0x3f68d7,_0x3c5187,_0x1911a2,_0x17e330){return _0x4e48(_0x17e330-_0x3148e5._0x2aebc7,_0x3c5187);}return _0x388f90['toString']()['search']('(((.+)+)+)'+'+$')['toString']()[_0x5ea9b5(-_0x1029fc._0x51cb69,-0x9b,-_0x1029fc._0x5d54c3,-_0x1029fc._0xe9a0d4)+'r'](_0x388f90)[_0x5ea9b5(-_0x1029fc._0x3b5dcc,-_0x1029fc._0x35e173,-_0x1029fc._0x2bd2cf,-0x90)](_0x53604e(0x226,_0x1029fc._0x5ca1cc,_0x1029fc._0x1fc759,_0x1029fc._0x3bc8b6)+'+$');});_0x388f90();import{select,put,take,race}from'redux-saga/effects';import{getCoreBackend}from'../../../backend';function _0xbde9(){const _0x30e7a7=['ors','memberId','leaveRoom','8004451mWwnKt','3070392rJhkaD','constructo','length','roomLeavin','match','499319Bijung','761811oPSVoO','filter','2329375rFSpBM','296172qmlJJo','search','apply','(((.+)+)+)','754520rhaBro'];_0xbde9=function(){return _0x30e7a7;};return _0xbde9();}import{apiCall}from'../../../api/core';import{callLeave,getCallStatus,isCallJoinedMode}from'../../call';import{taskErrorSaga}from'../../error';import{switchRoomSubmit,closeRoomSubmit,isRoomRemovedFromRecents}from'../room.action';import{leaveRoomConfirmationRequired,leaveRoomConfirmForce,leaveRoomRejectForce,leaveRoomCleanup,leaveRoomSuccessEvent}from'./room-joint.reducer';import{EMPTY_ROOM_ID}from'../room.constant';function _0x4e48(_0x4e487d,_0x3a935a){const _0x591daa=_0xbde9();return _0x4e48=function(_0x17f9f3,_0x532b34){_0x17f9f3=_0x17f9f3-(0x1*0x215b+0x21fe+-0x41dd);let _0xb0191d=_0x591daa[_0x17f9f3];return _0xb0191d;},_0x4e48(_0x4e487d,_0x3a935a);}import{getRoomIsDm}from'../room.selector';import{canIndex,getMyMember}from'../../member';import{getRoomListAllIds}from'../list';import{getDmMemberByRoomId,resetDmContact}from'../dm/room-dm.reducer';export function*roomLeaveHandler({roomId:_0x47540a,currentCallRoomId:currentCallRoomId=EMPTY_ROOM_ID}){const _0x1fed56={_0x5eb63e:0xcf,_0x4557ef:0xcd,_0x14f2b4:0xd8,_0x5158a4:0xd6,_0x3e8444:0xdb,_0x4e0886:0xce,_0xd2af30:0x323,_0x3ebc58:0x31c,_0x491520:0x320,_0x6f6609:0xd0,_0x40bb4a:0xd1,_0xe99287:0xd9,_0x1cbf75:0xd3,_0x19223b:0xcd,_0xec8fe5:0xda,_0x1c7dc7:0xde,_0x2c411b:0xe0,_0x366f74:0xdc},_0x3b53c3={_0x4dacb6:0x259};function _0x5efad6(_0x235a10,_0xda5bc7,_0x4daacf,_0x202365){return _0x4e48(_0x235a10- -_0x3b53c3._0x4dacb6,_0x202365);}if(!_0x47540a)return;function _0x598370(_0x1abca1,_0x372976,_0x347a07,_0x15643d){return _0x4e48(_0x347a07-0x19e,_0x1abca1);}try{const _0x27ba04=getCoreBackend(),_0x50b555=yield select(getRoomIsDm(_0x47540a)),_0x2705f8=yield select(getCallStatus);currentCallRoomId&&_0x47540a===currentCallRoomId&&isCallJoinedMode(_0x2705f8)&&(yield put(callLeave()));const _0x350e5d=yield select(getMyMember(_0x47540a)),_0x233cda=yield apiCall(_0x27ba04['getModerat'+_0x5efad6(-_0x1fed56._0x5eb63e,-_0x1fed56._0x4557ef,-0xc6,-_0x1fed56._0x14f2b4)],_0x47540a),_0x3c79ee=_0x233cda[_0x5efad6(-_0x1fed56._0x5158a4,-0xd3,-_0x1fed56._0x3e8444,-_0x1fed56._0x4e0886)](_0x193ddf=>canIndex(_0x193ddf['capabiliti'+'es']))['map'](_0x21260f=>_0x21260f[_0x5efad6(-0xce,-0xd2,-0xd7,-0xc8)]),_0x48e291=_0x3c79ee[_0x598370(0x31a,_0x1fed56._0xd2af30,_0x1fed56._0x3ebc58,_0x1fed56._0x491520)]===0x206f+-0xce7+-0x1387&&_0x3c79ee[-0xe43+0x1299+0x172*-0x3]===_0x350e5d?.[_0x5efad6(-0xce,-0xc7,-_0x1fed56._0x6f6609,-_0x1fed56._0x40bb4a)]&&!_0x50b555;if(_0x48e291){yield put(leaveRoomConfirmationRequired());const _0x27ce8b=yield take([leaveRoomConfirmForce,leaveRoomRejectForce]);if(leaveRoomRejectForce[_0x5efad6(-_0x1fed56._0xe99287,-_0x1fed56._0x1cbf75,-0xdf,-_0x1fed56._0x14f2b4)](_0x27ce8b))return;}yield race([apiCall(_0x27ba04[_0x5efad6(-_0x1fed56._0x4557ef,-0xc4,-0xd6,-_0x1fed56._0x19223b)],_0x47540a),take(isRoomRemovedFromRecents(_0x47540a))]);if(_0x50b555){const _0x2888e1=yield select(getDmMemberByRoomId(_0x47540a));yield put(resetDmContact({'memberId':_0x2888e1,'roomId':_0x47540a}));}yield put(leaveRoomSuccessEvent(_0x47540a));}catch(_0x1fd03d){yield taskErrorSaga(_0x5efad6(-_0x1fed56._0xec8fe5,-_0x1fed56._0x1c7dc7,-_0x1fed56._0x2c411b,-_0x1fed56._0x366f74)+'g',_0x1fd03d);}finally{yield put(leaveRoomCleanup());}}export function*roomLeaveSuccessSaga({roomId:_0x15f1e6,currentRoomId:_0x38dc95}){if(!_0x15f1e6)return;if(_0x15f1e6===_0x38dc95){const _0x370d51=yield select(getRoomListAllIds),_0x149e6f=_0x370d51['find'](_0x286e03=>_0x286e03!==_0x15f1e6),_0x5a9408=_0x149e6f||EMPTY_ROOM_ID;_0x5a9408?yield put(switchRoomSubmit({'roomId':_0x5a9408})):yield put(closeRoomSubmit());}}