OverviewFilesCommitsIssuesDocsReleasesPeers

holepunchto-deps / @holepunchto / keet-store / store / room / joint / room-pairing.saga.js

1 lines · javascript ref:
(function(_0x2a27a9,_0x1c9fcc){const _0x4ca717={_0x25dc47:0x8b,_0x5c8338:0x88,_0x19cf5c:0x8d,_0x330ecc:0x9d,_0x29969c:0x26,_0x55c5c4:0x1e,_0x5cfbf7:0x32,_0x35de09:0x22,_0xda77d2:0x32,_0x5d9c89:0x3a,_0x11882f:0x24,_0x3c24d7:0x72,_0x3c6429:0x64,_0x4460e4:0x64,_0x4dc01d:0x68,_0x451d9b:0x8a,_0x3f68d4:0x84,_0x31b8e0:0x7b,_0x38ac4c:0x36,_0x5dc88f:0x51,_0x3d92c8:0x38,_0xcc612:0x44,_0x1eb1d6:0x3d,_0x5175d8:0x21,_0x59926b:0x2f,_0x1c3eda:0x31,_0x4ca16f:0x2a,_0x47acb1:0x7d,_0x23035f:0x90,_0x4080a9:0x90},_0x31ccb9={_0x5ebf3a:0x182},_0x46eb33=_0x2a27a9();function _0x24f44b(_0x79d6f1,_0x5d2b0b,_0x34e5d3,_0x52ca6b){return _0x3c74(_0x79d6f1- -_0x31ccb9._0x5ebf3a,_0x34e5d3);}function _0xbb9e2(_0x53e90c,_0x3176f1,_0x5db6e1,_0x59408b){return _0x3c74(_0x5db6e1- -0x1cd,_0x3176f1);}while(!![]){try{const _0x3a3638=parseInt(_0x24f44b(_0x4ca717._0x25dc47,_0x4ca717._0x5c8338,_0x4ca717._0x19cf5c,_0x4ca717._0x330ecc))/(-0x79*-0x35+0x1*-0x667+0x3*-0x637)*(parseInt(_0xbb9e2(0x33,_0x4ca717._0x29969c,_0x4ca717._0x55c5c4,0x1d))/(0x643*-0x1+-0x1*-0x1043+-0x9fe))+parseInt(_0xbb9e2(_0x4ca717._0x5cfbf7,0x12,_0x4ca717._0x35de09,0x25))/(-0x2208+0x17b6+0xa55)*(-parseInt(_0xbb9e2(0x2f,_0x4ca717._0xda77d2,_0x4ca717._0x5d9c89,_0x4ca717._0x11882f))/(0xb*-0x2+0x1b*0x5f+-0x1*0x9eb))+parseInt(_0x24f44b(_0x4ca717._0x3c24d7,_0x4ca717._0x3c6429,_0x4ca717._0x4460e4,_0x4ca717._0x4dc01d))/(-0x666+-0xd5a*-0x1+-0x6ef)+parseInt(_0x24f44b(_0x4ca717._0x451d9b,0x77,_0x4ca717._0x3f68d4,_0x4ca717._0x31b8e0))/(-0x232d*0x1+0x1907+0xa2c)+parseInt(_0xbb9e2(_0x4ca717._0x38ac4c,0x39,0x41,_0x4ca717._0x5dc88f))/(0x26aa*-0x1+-0x1c8e+0x139*0x37)*(-parseInt(_0xbb9e2(_0x4ca717._0x3d92c8,_0x4ca717._0xcc612,0x2e,_0x4ca717._0x1eb1d6))/(-0x61*-0x53+0x1a11+-0x397c))+parseInt(_0xbb9e2(_0x4ca717._0x5175d8,_0x4ca717._0x3d92c8,_0x4ca717._0x59926b,0x17))/(-0x73*-0x56+0xd7*0x29+0x1*-0x4908)*(parseInt(_0xbb9e2(0x1d,_0x4ca717._0x1c3eda,_0x4ca717._0x4ca16f,0x39))/(0x2b*-0xd5+0x707+0x1cca))+-parseInt(_0x24f44b(0x84,_0x4ca717._0x47acb1,0x8d,_0x4ca717._0x23035f))/(0x53*-0xb+0x1158+0x2*-0x6de)*(parseInt(_0x24f44b(_0x4ca717._0x4080a9,0x9a,_0x4ca717._0x3f68d4,_0x4ca717._0x25dc47))/(-0x1*0x16db+-0x1cdb+0xa*0x52d));if(_0x3a3638===_0x1c9fcc)break;else _0x46eb33['push'](_0x46eb33['shift']());}catch(_0x2fdee6){_0x46eb33['push'](_0x46eb33['shift']());}}}(_0x4997,-0xe02*-0x38+-0x1*-0xcfb5+-0x191ba));const _0x21eb54=(function(){let _0x386465=!![];return function(_0x528ce4,_0xc9c004){const _0x54665a=_0x386465?function(){if(_0xc9c004){const _0x16a4c4=_0xc9c004['apply'](_0x528ce4,arguments);return _0xc9c004=null,_0x16a4c4;}}:function(){};return _0x386465=![],_0x54665a;};}()),_0x5d1ece=_0x21eb54(this,function(){const _0x354ae3={_0x59131d:0x1ae,_0x12dfb8:0x1b1,_0x2d0b89:0x1ba,_0x1c20ca:0x1a5,_0x19a2b1:0x1a2,_0x11ffd8:0x1ab,_0x286417:0x19f,_0x333a2f:0x19b,_0x100c33:0x1a5,_0xec283c:0x19c,_0x511486:0x18c,_0x503d54:0xeb,_0x41b58b:0xff,_0x598142:0xea},_0x5968a3={_0x43b43c:0x6c},_0x8e3853={_0x118cf9:0x2f1};function _0x251297(_0x485762,_0x12baa6,_0x2f0398,_0x1be3f6){return _0x3c74(_0x12baa6- -_0x8e3853._0x118cf9,_0x2f0398);}function _0x2d693e(_0xd48135,_0x2f2064,_0x9deb5f,_0x595e61){return _0x3c74(_0x595e61- -_0x5968a3._0x43b43c,_0x2f2064);}return _0x5d1ece[_0x2d693e(_0x354ae3._0x59131d,_0x354ae3._0x12dfb8,_0x354ae3._0x2d0b89,_0x354ae3._0x1c20ca)]()['search'](_0x2d693e(_0x354ae3._0x19a2b1,_0x354ae3._0x11ffd8,_0x354ae3._0x286417,0x1a9)+'+$')[_0x2d693e(0x1b2,_0x354ae3._0x1c20ca,_0x354ae3._0x333a2f,_0x354ae3._0x100c33)]()[_0x2d693e(_0x354ae3._0xec283c,_0x354ae3._0x511486,0x197,0x197)+'r'](_0x5d1ece)[_0x251297(-_0x354ae3._0x503d54,-_0x354ae3._0x41b58b,-0x10e,-0x113)](_0x251297(-_0x354ae3._0x598142,-0xdc,-0xd0,-0xf1)+'+$');});_0x5d1ece();import{select,put,take,getContext}from'redux-saga/effects';import{ERRORS}from'@holepunchto/keet-core-api';import{apiSubscribeSaga}from'../../lib';import{getCoreBackend}from'../../../backend';import{apiCall}from'../../../api/core';import{PLATFORM_CONTEXT_KEY}from'../../constants';import{taskErrorSaga,pairInvalidInviteError,GENERIC_PAIRING_ERROR}from'../../error';import{parseInvitation,removeInvitationQueryParams,createInvitationLink}from'../../identity';import{NOTIFICATION_CODE,userCustomNotification}from'../../notification';import{getRoomListDiscoveryIds}from'../list/room-list.reducer';import{createInvitationMessageId,getInvitationMessageId}from'./invitation';import{switchRoomSubmit}from'../room.action';import{getRoomIsFirstRoom}from'../room.selector';import{clearPairingRoom,getRoomPairingIdActive,setRoomInvitation,setPairingRoom,setRoomPairError,setRoomPairingActive,getRoomPairingMessageId,getRoomAllPairing}from'./room-joint.reducer';function _0x4997(){const _0x12c624=['gRoom','values','toString','1644SzBEre','code','AUTOBASE_I','(((.+)+)+)','endingRoom','roomId','room\x20pairi','flat','INVALID_IN','2fnWPaq','NEW','gSaga','ng\x20failed:','24ZChayD','createInvi','WRITABLE_E','search','roomInvita','1369650neibNp','tionHandle','stopPairin','1410aQpjDa','RROR','seedId','message','24HWeXSR','1935XmLLde','YPE','subscribeP','status','ngRoom','EABLE','COMPLETED','constructo','INVITATION','put','23144FuWoBM','131516TPhICw','roomPairin','CANCELLED','_AUTOBASE_','close','1127934CRxZbl','251491RncRTc','96362CKRVCM'];_0x4997=function(){return _0x12c624;};return _0x4997();}import{PAIRING_STATUS,createAskedPairing,getRoomPairingItems,parsePendingRoomResponse}from'./room-joint.model';import{ROOM_INVITE_CONFIG_DEFAULT}from'../room.constant';export function*createInvitationSaga({applicationKey:_0x371c89,pearProtocol:_0x38ad22},{payload:{roomId:_0xaa726,invitationPreview:_0x39f1b8,messageId:_0x360854,isPublic:isPublic=![],opts:opts=ROOM_INVITE_CONFIG_DEFAULT}}){const _0x4fdaf6={_0x98687d:0x1cb,_0x3a6a07:0x1b6,_0x527b84:0x1c4,_0x40d2c5:0x1c6,_0x449618:0x1a8,_0x580eb2:0x191,_0x3bd7eb:0x1a7,_0x32587a:0x3d5,_0x273793:0x3d4,_0x4ec918:0x3b7,_0x2e371e:0x3c4,_0x3489ac:0x1ba,_0x8ce3a0:0x1b0,_0x182d9b:0x1b5,_0x583a42:0x1b3,_0xeae2a0:0x1b2,_0x1748cb:0x1b7,_0x29d6c2:0x1b1,_0x155009:0x1c5,_0x151821:0x1ca,_0x22967e:0x1d7,_0x7b0887:0x1e2,_0x26f20a:0x3b3,_0x7e6c83:0x3af,_0x11b2e3:0x3a8,_0x2fbfb0:0x3ae,_0x41f1a5:0x3a3,_0xebf1eb:0x3a0},_0x113fe0={_0x1ceec4:0x1b0},_0x1192c2={_0x26905d:0x3bb};function _0x57d7b8(_0x91f3f7,_0x596052,_0x3d67b4,_0x486b69){return _0x3c74(_0x91f3f7- -_0x1192c2._0x26905d,_0x3d67b4);}function _0x2844bb(_0x4411df,_0x3f1916,_0x5aa2d5,_0x527f2b){return _0x3c74(_0x527f2b-_0x113fe0._0x1ceec4,_0x5aa2d5);}try{const _0x277547=getCoreBackend(),_0x3a9f90=yield apiCall(_0x277547[_0x57d7b8(-_0x4fdaf6._0x98687d,-_0x4fdaf6._0x3a6a07,-_0x4fdaf6._0x527b84,-_0x4fdaf6._0x40d2c5)+'tation'],_0xaa726,opts);let _0x3f21de;_0x3f21de=createInvitationLink({'applicationKey':_0x371c89,'invitation':_0x3a9f90,'isPublic':isPublic,'pearProtocol':_0x38ad22}),_0x360854&&(_0x3f21de=createInvitationMessageId({'invitationLink':_0x3f21de,'messageId':_0x360854})),yield put(setRoomInvitation({'invitationLink':_0x3f21de,'invitationPreview':_0x39f1b8}));}catch(_0x299623){_0x299623[_0x57d7b8(-_0x4fdaf6._0x449618,-_0x4fdaf6._0x580eb2,-0x1b5,-_0x4fdaf6._0x3bd7eb)]===ERRORS[_0x2844bb(_0x4fdaf6._0x32587a,_0x4fdaf6._0x273793,_0x4fdaf6._0x4ec918,_0x4fdaf6._0x2e371e)+'S_NOT_WRIT'+_0x57d7b8(-_0x4fdaf6._0x3489ac,-0x1ce,-_0x4fdaf6._0x8ce3a0,-_0x4fdaf6._0x182d9b)]?yield put(userCustomNotification({'code':NOTIFICATION_CODE[_0x57d7b8(-0x1b7,-_0x4fdaf6._0x583a42,-_0x4fdaf6._0xeae2a0,-_0x4fdaf6._0x1748cb)+_0x57d7b8(-_0x4fdaf6._0x29d6c2,-0x1a8,-0x1bd,-_0x4fdaf6._0x155009)+_0x57d7b8(-_0x4fdaf6._0x151821,-_0x4fdaf6._0x22967e,-_0x4fdaf6._0x7b0887,-0x1b3)+_0x2844bb(0x3b8,_0x4fdaf6._0x26f20a,_0x4fdaf6._0x7e6c83,_0x4fdaf6._0x11b2e3)]})):yield taskErrorSaga(_0x2844bb(_0x4fdaf6._0x2fbfb0,_0x4fdaf6._0x41f1a5,0x3b2,_0x4fdaf6._0xebf1eb)+'tationSaga',_0x299623);}}export function*roomInvitationHandler({link:_0x51db76,skipParse:skipParse=![],setActive:setActive=![]}){const _0x212373={_0x54802b:0x286,_0x4e1b27:0x29e,_0x25b239:0x2b0,_0x558989:0x293,_0x137fa1:0x298,_0x25d40f:0x295,_0x3444d7:0x27b,_0x8d8872:0x28c,_0x48d084:0x327,_0x56cf24:0x329,_0x1512db:0x31f,_0x3b698c:0x333,_0x203a2b:0x340,_0x413fc2:0x336,_0x43443d:0x335,_0x3b87ed:0x288,_0x24eb6e:0x27a,_0xa8a7b:0x341,_0x40ac96:0x326,_0x1f4cac:0x33a,_0x3f71f1:0x33d,_0x481e87:0x369,_0x5519c7:0x349,_0x15d8bb:0x362,_0x55c0ee:0x353,_0x13c013:0x29b,_0x312998:0x29e,_0x423e91:0x335,_0x30bf07:0x352,_0xdd67ac:0x338},_0xa59379={_0x11ec89:0x140},_0x1ad5c4=getCoreBackend();let _0x33b0fd=![];try{const {config:{pearProtocol:_0x366d52}}=yield getContext(PLATFORM_CONTEXT_KEY);let _0x824012=skipParse?_0x51db76:parseInvitation(_0x51db76,_0x366d52);if(!_0x824012)return _0x33b0fd;_0x33b0fd=!![];const _0x8bc163=getInvitationMessageId(_0x51db76);skipParse&&_0x8bc163&&(_0x824012=removeInvitationQueryParams(_0x824012));const {seedId:_0x157e36,key:_0x3f171e}=yield apiCall(_0x1ad5c4['startPairi'+_0x2a26b9(_0x212373._0x54802b,0x2a0,_0x212373._0x4e1b27,_0x212373._0x25b239)],_0x824012);if(_0x3f171e)yield put(switchRoomSubmit({'roomId':_0x3f171e,'messageId':_0x8bc163}));else{if(_0x157e36)yield put(setPairingRoom(createAskedPairing({'seedId':_0x157e36,'messageId':_0x8bc163}))),setActive&&(yield put(setRoomPairingActive({'seedId':_0x157e36})));else throw new Error(_0x2a26b9(_0x212373._0x558989,_0x212373._0x137fa1,0x286,_0x212373._0x25d40f)+_0x2a26b9(_0x212373._0x3444d7,0x290,_0x212373._0x8d8872,0x29e)+'\x20no\x20seedId');}}catch(_0x230ac8){yield taskErrorSaga(_0x32a83b(_0x212373._0x48d084,_0x212373._0x56cf24,_0x212373._0x1512db,_0x212373._0x3b698c)+_0x32a83b(0x33b,_0x212373._0x203a2b,_0x212373._0x413fc2,_0x212373._0x43443d)+'r',_0x230ac8,{'logWarn':!![]}),_0x230ac8['code']===ERRORS[_0x2a26b9(0x28f,0x273,_0x212373._0x3b87ed,_0x212373._0x24eb6e)+'VITATION_T'+_0x32a83b(_0x212373._0xa8a7b,_0x212373._0x40ac96,_0x212373._0x1f4cac,_0x212373._0x3f71f1)]?yield put(pairInvalidInviteError()):yield put(setRoomPairError(_0x230ac8[_0x32a83b(_0x212373._0x481e87,_0x212373._0x5519c7,_0x212373._0x15d8bb,_0x212373._0x55c0ee)]&&_0x230ac8[_0x2a26b9(_0x212373._0x13c013,0x2a9,_0x212373._0x137fa1,_0x212373._0x312998)]?_0x230ac8[_0x32a83b(_0x212373._0x423e91,_0x212373._0x30bf07,_0x212373._0xdd67ac,0x33a)]:GENERIC_PAIRING_ERROR));}function _0x2a26b9(_0x948a0d,_0x1a486c,_0x325aa4,_0x30b01d){return _0x3c74(_0x325aa4-0x9e,_0x30b01d);}function _0x32a83b(_0x48e6b7,_0x305512,_0x255e81,_0x1b417e){return _0x3c74(_0x1b417e-_0xa59379._0x11ec89,_0x255e81);}return _0x33b0fd;}export function*roomPairingCancelSaga({payload:_0x4ea436}){const _0xc2188f={_0x4e5a95:0x3e2,_0x2b0c1f:0x3de,_0x5a6949:0x3cd,_0x527802:0x40d,_0x500980:0x3f0,_0x524445:0x3f7,_0x4b22eb:0x2c1,_0x3b2e2a:0x2ad,_0x2d889b:0x2a2},_0x421ca6={_0x558888:0xa5},_0xb92512={_0x329361:0x1e8},_0x153c25=getCoreBackend();function _0x31ebb9(_0x1a1dc9,_0x365d0b,_0x322767,_0xfab667){return _0x3c74(_0x322767-_0xb92512._0x329361,_0x365d0b);}function _0x48c0b0(_0x519851,_0x373078,_0x2474a5,_0x121fa7){return _0x3c74(_0x2474a5-_0x421ca6._0x558888,_0x519851);}try{yield apiCall(_0x153c25[_0x31ebb9(_0xc2188f._0x4e5a95,0x3e4,_0xc2188f._0x2b0c1f,_0xc2188f._0x5a6949)+_0x31ebb9(_0xc2188f._0x527802,_0xc2188f._0x500980,_0xc2188f._0x524445,0x3f6)],_0x4ea436),yield put(setPairingRoom({'seedId':_0x4ea436,'status':PAIRING_STATUS['CANCELLED']}));}catch(_0x3f497e){yield taskErrorSaga(_0x48c0b0(_0xc2188f._0x4b22eb,0x2ab,_0xc2188f._0x3b2e2a,_0xc2188f._0x2d889b)+'gCancelSag'+'a',_0x3f497e);}}export function*roomsPairingDataSaga({pendingRoomChannel:_0x3ba9c0}){const _0x33ea67={_0x4d9fe3:0x546,_0x32f449:0x537,_0x1db8e2:0x54f,_0x4f6c73:0x555,_0x39d6b0:0x54f},_0x445e8e={_0x342654:0x3c1,_0x3902b3:0xfb,_0x92288f:0xe9,_0x5590e1:0xf9,_0x323d13:0xdf,_0xd2ea20:0xd6,_0x1dd834:0xde},_0x1cd135={_0x24a9fe:0xb9},_0x2fa00d={_0x66daac:0x339};function _0x3f1627(_0x2dae2a,_0x46facc,_0x2b311d,_0xe0e436){return _0x3c74(_0xe0e436-_0x2fa00d._0x66daac,_0x2b311d);}function _0x55b863(_0x5e1c79,_0x2f61cd,_0x43ed90,_0x4ecce3){return _0x3c74(_0x43ed90-_0x1cd135._0x24a9fe,_0x5e1c79);}yield apiSubscribeSaga([getCoreBackend()[_0x3f1627(0x549,_0x33ea67._0x4d9fe3,0x524,_0x33ea67._0x32f449)+_0x3f1627(_0x33ea67._0x1db8e2,0x557,_0x33ea67._0x4f6c73,_0x33ea67._0x39d6b0)+'s']],function*_0x4f2f8e(_0x2da9db){const _0x576e82={_0x468e35:0x1e8,_0x1259a7:0x180,_0x4719e2:0x61d},_0x10b66a={_0x31e9ea:0x8d,_0x46b97d:0xf7,_0x1c0c6e:0x72},_0x5be17f=yield select(getRoomListDiscoveryIds);function _0x7ffa65(_0x1f617a,_0x1ed6ef,_0xd76f4a,_0x137125){return _0x55b863(_0xd76f4a,_0x1ed6ef-_0x10b66a._0x31e9ea,_0x1ed6ef-_0x10b66a._0x46b97d,_0x137125-_0x10b66a._0x1c0c6e);}const _0x384e9f=yield select(getRoomAllPairing),_0x428296=getRoomPairingItems(_0x384e9f,_0x2da9db,_0x5be17f);function _0x294694(_0x4f97e2,_0x477d83,_0xb55ed2,_0x5a97f0){return _0x3f1627(_0x4f97e2-_0x576e82._0x468e35,_0x477d83-_0x576e82._0x1259a7,_0x477d83,_0x4f97e2- -_0x576e82._0x4719e2);}const _0x10b3b7=Object[_0x7ffa65(_0x445e8e._0x342654,0x3c0,0x3a8,0x3d0)](_0x428296)[_0x294694(-_0x445e8e._0x3902b3,-0x108,-_0x445e8e._0x92288f,-_0x445e8e._0x5590e1)]();for(const _0x153d2d of _0x10b3b7){_0x3ba9c0[_0x294694(-_0x445e8e._0x323d13,-_0x445e8e._0xd2ea20,-_0x445e8e._0x1dd834,-0xd7)](_0x153d2d);}},{'onError':_0x3f2236=>taskErrorSaga(_0x3f1627(0x528,0x52e,0x54a,0x537)+_0x3f1627(0x553,0x549,0x548,0x54f)+'s',_0x3f2236)});}function _0x3c74(_0x5c016d,_0x4e35eb){const _0x288e06=_0x4997();return _0x3c74=function(_0x587e81,_0x59305b){_0x587e81=_0x587e81-(0x561+-0x2*-0xb7b+0x10*-0x1a7);let _0x256c20=_0x288e06[_0x587e81];return _0x256c20;},_0x3c74(_0x5c016d,_0x4e35eb);}export function*roomPairingSaga({pendingRoomChannel:_0x2ce4ca}){const _0x4f3a52={_0x34af6f:0xf9,_0x5e3613:0xf8,_0x442606:0x10e,_0x35665e:0x107,_0x231702:0x105,_0x5d34e0:0x11a,_0x47fb33:0xf1,_0x14590f:0xfc,_0x4c91bd:0x106,_0x3862cb:0xe5,_0x2e33d3:0x4e4,_0x3df891:0x4fd,_0x31fc92:0x50e,_0x2bb69d:0xf8,_0x132ed6:0xfd,_0xafc1c4:0x102,_0x472daa:0x4ec,_0x39c153:0x4dc,_0x8f9aae:0x4e6,_0x37f059:0x101,_0x23e688:0xf5,_0x47718e:0x114,_0x2f06e6:0x4cf,_0x4d6da1:0x4e2,_0x2d242a:0x4d1,_0x62478e:0x4e5,_0x42cc0d:0x4eb,_0x2e7e19:0x4d4,_0x9dd21d:0x4f7,_0x58d1bf:0x50a,_0x35c85c:0x4f0,_0x3f743c:0xf2,_0x230f69:0xfb,_0x3551b1:0xed,_0x2b8853:0xe7,_0x471616:0x4e9,_0xe8e0fd:0x509,_0x13330d:0x51e,_0x20719d:0x51a},_0x211d04={_0x579f9e:0x2fa},_0x5c7ba5={_0x5c96e9:0x2fe};function _0x1cce8a(_0x2eb8f5,_0x1168f1,_0x45cf2c,_0x515fac){return _0x3c74(_0x2eb8f5-_0x5c7ba5._0x5c96e9,_0x1168f1);}function _0x5a5e0a(_0x4ac39a,_0x342599,_0x5f46f6,_0x43aa5d){return _0x3c74(_0x4ac39a- -_0x211d04._0x579f9e,_0x5f46f6);}try{while(!![]){const _0x1ddd63=yield take(_0x2ce4ca),_0x235836=parsePendingRoomResponse(_0x1ddd63);switch(_0x1ddd63[_0x5a5e0a(-0xfb,-_0x4f3a52._0x34af6f,-_0x4f3a52._0x5e3613,-0xe5)]){case PAIRING_STATUS[_0x5a5e0a(-_0x4f3a52._0x442606,-_0x4f3a52._0x35665e,-_0x4f3a52._0x231702,-_0x4f3a52._0x5d34e0)]:{yield put(setPairingRoom(_0x235836));break;}case PAIRING_STATUS[_0x5a5e0a(-_0x4f3a52._0x47fb33,-_0x4f3a52._0x14590f,-_0x4f3a52._0x4c91bd,-_0x4f3a52._0x3862cb)]:{yield put(clearPairingRoom({'seedId':_0x235836[_0x1cce8a(0x4f7,0x4f9,0x500,_0x4f3a52._0x2e33d3)],'status':_0x235836[_0x1cce8a(_0x4f3a52._0x3df891,0x4ed,0x513,_0x4f3a52._0x31fc92)],'setNextActive':!![]}));break;}case PAIRING_STATUS[_0x5a5e0a(-_0x4f3a52._0x2bb69d,-_0x4f3a52._0x132ed6,-_0x4f3a52._0xafc1c4,-_0x4f3a52._0x231702)]:{const _0x2f161a=yield select(getRoomPairingIdActive),_0x2a628e=_0x2f161a&&_0x235836[_0x1cce8a(0x4e5,_0x4f3a52._0x472daa,_0x4f3a52._0x39c153,_0x4f3a52._0x8f9aae)]&&_0x2f161a===_0x235836[_0x5a5e0a(-_0x4f3a52._0x37f059,-_0x4f3a52._0x23e688,-_0x4f3a52._0x47718e,-0xf8)],_0xcfd777=yield select(getRoomPairingMessageId(_0x235836[_0x1cce8a(0x4e5,_0x4f3a52._0x2f06e6,_0x4f3a52._0x4d6da1,_0x4f3a52._0x2d242a)])),_0x188539=yield select(getRoomIsFirstRoom,_0x235836['roomId']);(_0x2a628e||_0x188539&&!_0x2f161a||_0xcfd777)&&(yield put(switchRoomSubmit({'roomId':_0x235836[_0x1cce8a(_0x4f3a52._0x62478e,0x4d9,_0x4f3a52._0x42cc0d,_0x4f3a52._0x2e7e19)],'messageId':_0xcfd777})));yield put(clearPairingRoom({'seedId':_0x235836[_0x1cce8a(_0x4f3a52._0x9dd21d,_0x4f3a52._0x58d1bf,_0x4f3a52._0x35c85c,_0x4f3a52._0x9dd21d)],'status':_0x235836['status'],'setNextActive':!_0x2a628e}));break;}default:break;}}}catch(_0x17dd63){yield taskErrorSaga(_0x5a5e0a(-_0x4f3a52._0x3f743c,-_0x4f3a52._0x230f69,-_0x4f3a52._0x3551b1,-_0x4f3a52._0x2b8853)+_0x1cce8a(0x4eb,_0x4f3a52._0x471616,0x4e3,0x4ed),_0x17dd63);}finally{_0x2ce4ca?.[_0x1cce8a(_0x4f3a52._0xe8e0fd,0x4f5,_0x4f3a52._0x13330d,_0x4f3a52._0x20719d)]();}}