OverviewFilesCommitsIssuesDocsReleasesPeers

holepunchto-deps / @holepunchto / keet-store / store / chat / reaction / chat-reaction.selector.js

1 lines · javascript ref:
(function(_0x4aadcb,_0x2f5cfc){const _0x1b8942={_0x4ff0d0:0x267,_0x400a90:0x261,_0x482de6:0x262,_0x5b01e9:0x25a,_0x2fe79c:0x2bb,_0x454625:0x26d,_0x4d6314:0x272,_0x3b014a:0x264,_0x4689db:0x26b,_0x4bc38b:0x26c,_0x3cb77f:0x270,_0x56ac75:0x2ac,_0x5b995f:0x2a9,_0x5179c2:0x2ab,_0x3af2d5:0x2b0,_0x450577:0x2a1,_0x50c899:0x2a2,_0x53bfa9:0x2a0,_0x4d314b:0x2ad,_0x4261c8:0x2ab,_0x59469d:0x2b1,_0x3dbe44:0x2b2,_0x50e286:0x269,_0x17bd3b:0x267,_0x114854:0x265,_0xd125fd:0x261,_0x3e82c3:0x259,_0x2d26b3:0x2af,_0x5314a8:0x2ba,_0x23e850:0x2b3,_0x4ec59b:0x2a3,_0x42b042:0x2a8},_0x1af75d={_0x12adb3:0x3a2};function _0x38edcc(_0x3f1c15,_0x496d7a,_0x5b9d57,_0x4cc602){return _0x5782(_0x5b9d57- -0x3e5,_0x3f1c15);}const _0x5530de=_0x4aadcb();function _0x507da2(_0x34f48f,_0x366bf0,_0x471b23,_0x2e6595){return _0x5782(_0x471b23- -_0x1af75d._0x12adb3,_0x34f48f);}while(!![]){try{const _0x1f0755=parseInt(_0x507da2(-_0x1b8942._0x4ff0d0,-_0x1b8942._0x400a90,-_0x1b8942._0x482de6,-_0x1b8942._0x5b01e9))/(0x11*0xf5+0xb*-0x161+0x1*-0x119)+-parseInt(_0x38edcc(-0x2ba,-_0x1b8942._0x2fe79c,-0x2b4,-0x2b7))/(0x23db*0x1+0x63*0x2+-0x249f)*(-parseInt(_0x507da2(-0x276,-0x275,-_0x1b8942._0x454625,-_0x1b8942._0x4d6314))/(-0x22b4*-0x1+0xd3a+-0x105*0x2f))+-parseInt(_0x507da2(-_0x1b8942._0x3b014a,-_0x1b8942._0x4689db,-_0x1b8942._0x4bc38b,-_0x1b8942._0x3cb77f))/(0x8f+0x618*-0x3+0x11bd)+parseInt(_0x38edcc(-_0x1b8942._0x56ac75,-_0x1b8942._0x5b995f,-_0x1b8942._0x5179c2,-_0x1b8942._0x3af2d5))/(0x6ac*-0x5+-0x837+0x14cc*0x2)*(parseInt(_0x38edcc(-_0x1b8942._0x450577,-_0x1b8942._0x50c899,-_0x1b8942._0x5b995f,-_0x1b8942._0x53bfa9))/(-0x8b*0xe+0x199b+-0x11fb))+-parseInt(_0x38edcc(-_0x1b8942._0x4d314b,-_0x1b8942._0x4261c8,-_0x1b8942._0x59469d,-_0x1b8942._0x3dbe44))/(0x63+0x1081+-0x10dd)*(-parseInt(_0x507da2(-_0x1b8942._0x4ff0d0,-_0x1b8942._0x50e286,-_0x1b8942._0x17bd3b,-_0x1b8942._0x4bc38b))/(-0x21*-0x61+0x93a*-0x1+0x115*-0x3))+parseInt(_0x507da2(-_0x1b8942._0x114854,-_0x1b8942._0x114854,-_0x1b8942._0xd125fd,-_0x1b8942._0x3e82c3))/(0x245d+0xfd4+-0x3428)*(-parseInt(_0x38edcc(-0x2a3,-_0x1b8942._0x50c899,-_0x1b8942._0x56ac75,-_0x1b8942._0x2d26b3))/(0x2568+0x404*0x5+-0x3972))+-parseInt(_0x38edcc(-_0x1b8942._0x5314a8,-_0x1b8942._0x59469d,-_0x1b8942._0x23e850,-0x2b2))/(0x2b*-0xb+-0x357*-0x3+-0x1*0x821)*(parseInt(_0x38edcc(-0x2af,-_0x1b8942._0x4ec59b,-_0x1b8942._0x42b042,-0x2af))/(0x1*-0x19d2+0x10b8+0x926));if(_0x1f0755===_0x2f5cfc)break;else _0x5530de['push'](_0x5530de['shift']());}catch(_0x41ebc8){_0x5530de['push'](_0x5530de['shift']());}}}(_0x2785,0x5c7f8+-0x2c749+0x158fe));const _0x15aadc=(function(){const _0x2546e2={_0x1e70f3:0x25a,_0x10e535:0x259,_0x2d76f8:0x260};let _0x1cb66c=!![];return function(_0x291620,_0x5cca5a){const _0x3faa9f={_0x33060f:0x130},_0x485de0=_0x1cb66c?function(){function _0x2c5983(_0x395aa2,_0x309f39,_0x544484,_0x37ffdf){return _0x5782(_0x37ffdf-_0x3faa9f._0x33060f,_0x544484);}if(_0x5cca5a){const _0x35b9ab=_0x5cca5a[_0x2c5983(0x25a,_0x2546e2._0x1e70f3,_0x2546e2._0x10e535,_0x2546e2._0x2d76f8)](_0x291620,arguments);return _0x5cca5a=null,_0x35b9ab;}}:function(){};return _0x1cb66c=![],_0x485de0;};}()),_0x4c51b0=_0x15aadc(this,function(){const _0x190f6b={_0x397f47:0x1d6,_0x21fba6:0x1e0,_0x40098c:0x1df,_0x391297:0x1d3,_0x358eac:0x1d5,_0x2cafa3:0x1d9,_0x1ed186:0x1db,_0x229946:0x1cf,_0x59eb9f:0x1d4,_0x22e16d:0x1d0,_0x362c89:0x1dd,_0x56aaab:0x1de,_0x3c5176:0x1dc,_0x2855ef:0x1e6},_0x373333={_0x2fd76f:0x9e},_0x17aaa3={_0x270539:0x1bf};function _0x4650bb(_0x6cd819,_0x127372,_0x140710,_0x346a8e){return _0x5782(_0x127372-_0x17aaa3._0x270539,_0x346a8e);}function _0x1489e8(_0x19cd9f,_0x178b7d,_0x19f56b,_0x24f7c2){return _0x5782(_0x19cd9f-_0x373333._0x2fd76f,_0x24f7c2);}return _0x4c51b0['toString']()[_0x1489e8(_0x190f6b._0x397f47,_0x190f6b._0x21fba6,_0x190f6b._0x40098c,_0x190f6b._0x391297)]('(((.+)+)+)'+'+$')[_0x1489e8(_0x190f6b._0x358eac,_0x190f6b._0x2cafa3,_0x190f6b._0x1ed186,_0x190f6b._0x358eac)]()[_0x1489e8(0x1cd,_0x190f6b._0x229946,0x1c6,0x1cf)+'r'](_0x4c51b0)[_0x1489e8(_0x190f6b._0x397f47,_0x190f6b._0x59eb9f,_0x190f6b._0x40098c,_0x190f6b._0x22e16d)](_0x1489e8(_0x190f6b._0x362c89,_0x190f6b._0x56aaab,_0x190f6b._0x3c5176,_0x190f6b._0x2855ef)+'+$');});_0x4c51b0();import{createSelector}from'@reduxjs/toolkit';import{CHAT_STATE_KEY}from'../chat.constant';import{CHAT_REACTION_STATE_KEY,DEFAULT_REACTIONS}from'./chat-reaction.constant';import{getChatReactionCountById}from'../list-view';function _0x5782(_0x578229,_0x255790){const _0x1894b2=_0x2785();return _0x5782=function(_0x20daa0,_0x2b04e8){_0x20daa0=_0x20daa0-(0x8e*-0x1b+0x897+0x792);let _0x3aa4d0=_0x1894b2[_0x20daa0];return _0x3aa4d0;},_0x5782(_0x578229,_0x255790);}function _0x286703(_0x1f7860,_0x2b3ec3,_0x6954a3,_0x46c4e9){const _0x43810f={_0x2c76a3:0x5e};return _0x5782(_0x2b3ec3-_0x43810f._0x2c76a3,_0x46c4e9);}export const getChatReactionState=_0x4ba0a7=>_0x4ba0a7[CHAT_STATE_KEY][CHAT_REACTION_STATE_KEY];function _0x12e19f(_0x3e3125,_0x23e222,_0x2cfe49,_0x44ec5c){const _0x31cff4={_0x533802:0x380};return _0x5782(_0x44ec5c-_0x31cff4._0x533802,_0x2cfe49);}export const getChatReactionsById=_0x40c885=>_0x21fa5f=>getChatReactionState(_0x21fa5f)['byId'][_0x40c885]||DEFAULT_REACTIONS;function _0x2785(){const _0x2664bc=['962620eSwsEp','toString','search','290VISJwt','99315waLJrY','150856EXSquC','48icIpFC','4531164FZXtAk','length','(((.+)+)+)','363768pFCfPS','102663miBjzS','constructo','apply','2KRxSuu','11GDJBJo','reactions','63QMTzfl','1625313pzUUOv'];_0x2785=function(){return _0x2664bc;};return _0x2785();}export const getHasReactionsForChatMessage=_0x311d1f=>createSelector([_0x4e0a5b=>getChatReactionsById(_0x311d1f)(_0x4e0a5b),_0x5b4105=>getChatReactionCountById(_0x311d1f)(_0x5b4105)],(_0x4d38c1,_0x3cad01)=>!!(_0x4d38c1[_0x286703(0x197,0x191,0x192,0x193)]?.[_0x12e19f(0x4c3,0x4c7,0x4bd,0x4be)]>0xdfd*-0x1+-0x1183*-0x2+0x703*-0x3||_0x3cad01));