OverviewFilesCommitsIssuesDocsReleasesPeers

holepunchto-deps / @holepunchto / keet-store / store / chat / list-view / list-view.action.js

1 lines · javascript ref:
function _0x186f(){const _0x4e0a53=['ge-jump-to','87UTdLBV','chat/set-l','atMessages','5450949AaNnrF','-seq-cmd','9155804xTaMwq','ist-view-m','1526450EtDvdQ','InView','ist-view-a','toString','e-list-vie','tatus','5AAnoFI','210004scFKAU','chat/messa','2703678NhGyfc','chat/setCh','chat/updat','ist-view-p','ode','apply','y-inc','atListView','search','-cmd','861848Pnungp','chat/list-','type','eer-seen-s','(((.+)+)+)','2043522fEmmEC','nchor','some','constructo'];_0x186f=function(){return _0x4e0a53;};return _0x186f();}(function(_0x470993,_0x7580eb){const _0x1a816b={_0x5d95e1:0x19b,_0xc7e283:0x1a1,_0x823360:0x18c,_0x3092c8:0x18b,_0x56e88c:0x18f,_0x4e1cf7:0x189,_0x1e80f3:0x3ea,_0x34b293:0x3ec,_0x59924b:0x3df,_0x2e1740:0x3dc,_0x23b226:0x1a2,_0x494b63:0x1ae,_0x3a57cc:0x3e8,_0x2eade6:0x3e7,_0x502239:0x192,_0x327a24:0x180,_0x101613:0x17a,_0x1275e8:0x195,_0x4f310e:0x199,_0x401356:0x18a,_0x45b37a:0x192,_0x1e5e4b:0x3d3,_0x4af25b:0x3db},_0x1b097c={_0x3448ba:0x266};function _0x48d30a(_0x5d02f1,_0x38d2e2,_0x2f15ec,_0x156f6e){return _0x1e3e(_0x156f6e-_0x1b097c._0x3448ba,_0x38d2e2);}function _0x2d194f(_0x57e0c2,_0x43bfa0,_0x19d5b8,_0x4861bc){return _0x1e3e(_0x43bfa0-0x1e,_0x4861bc);}const _0x5a634d=_0x470993();while(!![]){try{const _0x34e18e=parseInt(_0x2d194f(0x190,_0x1a816b._0x5d95e1,_0x1a816b._0xc7e283,_0x1a816b._0x823360))/(0x420+-0x19*0x16a+0x1f3b)+-parseInt(_0x2d194f(_0x1a816b._0x3092c8,_0x1a816b._0x56e88c,0x19d,_0x1a816b._0x4e1cf7))/(0x9c4+-0x7*-0x133+-0x1227)+parseInt(_0x48d30a(_0x1a816b._0x1e80f3,_0x1a816b._0x34b293,_0x1a816b._0x59924b,_0x1a816b._0x2e1740))/(-0x78d+0x863*0x3+-0x1199)*(parseInt(_0x2d194f(_0x1a816b._0x23b226,_0x1a816b._0x23b226,_0x1a816b._0x5d95e1,_0x1a816b._0x494b63))/(0xfae+-0x106*-0x11+0x422*-0x8))+-parseInt(_0x48d30a(0x3f7,_0x1a816b._0x3a57cc,_0x1a816b._0x2eade6,0x3e9))/(-0xaa7+-0xa6a+0x1516)*(parseInt(_0x2d194f(_0x1a816b._0x502239,_0x1a816b._0x327a24,_0x1a816b._0x101613,0x188))/(0x19eb+0x3*-0xc1a+0xa69))+-parseInt(_0x2d194f(_0x1a816b._0x1275e8,_0x1a816b._0x4f310e,_0x1a816b._0x401356,_0x1a816b._0x45b37a))/(0x1b49*0x1+0x2c0*0x2+-0x20c2*0x1)+-parseInt(_0x48d30a(_0x1a816b._0x1e5e4b,_0x1a816b._0x4af25b,0x3c2,0x3d2))/(0x1e32+0x1234+0x1*-0x305e)+parseInt(_0x2d194f(0x19d,0x197,0x196,0x1a1))/(-0x1*-0x515+0x25bc+-0x2ac8);if(_0x34e18e===_0x7580eb)break;else _0x5a634d['push'](_0x5a634d['shift']());}catch(_0x49a57c){_0x5a634d['push'](_0x5a634d['shift']());}}}(_0x186f,-0x9*-0x2382e+0x1915b*0x3+-0x359a*0x3e));const _0x391fc4=(function(){let _0xa7fc35=!![];return function(_0x1dd4fe,_0x250b5b){const _0x92d470={_0x975aef:0xc5,_0x271b95:0xb8,_0x2ae48f:0xbb},_0x5e7bb4=_0xa7fc35?function(){const _0x24a021={_0x4f95fc:0x231};function _0x5e25b1(_0x461642,_0x35e24c,_0x5ad283,_0x2178d0){return _0x1e3e(_0x461642- -_0x24a021._0x4f95fc,_0x5ad283);}if(_0x250b5b){const _0x5ace34=_0x250b5b[_0x5e25b1(-0xca,-_0x92d470._0x975aef,-_0x92d470._0x271b95,-_0x92d470._0x2ae48f)](_0x1dd4fe,arguments);return _0x250b5b=null,_0x5ace34;}}:function(){};return _0xa7fc35=![],_0x5e7bb4;};}()),_0x214977=_0x391fc4(this,function(){const _0x93bdf4={_0x1254e2:0x408,_0x264baf:0x3e9,_0x24d6b3:0x3f7,_0x1f0549:0x3ed,_0x49bf8a:0x3db,_0x4012b7:0x3e1,_0x5eadf3:0x3f1,_0x30cebd:0x3e5,_0x386810:0x3ec,_0xf2128a:0x3d7,_0x339119:0x3e3,_0x91d47f:0x3d6},_0x3a2196={_0xf60f6c:0x28b},_0x4bdd2d={_0x488c50:0x26d};function _0x1ac9fc(_0x3018a0,_0x47f22a,_0x26065f,_0x4e35eb){return _0x1e3e(_0x3018a0-_0x4bdd2d._0x488c50,_0x47f22a);}function _0x57b39b(_0xe11249,_0x339f77,_0x3bb18f,_0x227ba5){return _0x1e3e(_0xe11249-_0x3a2196._0xf60f6c,_0x339f77);}return _0x214977['toString']()['search'](_0x57b39b(0x3fb,_0x93bdf4._0x1254e2,_0x93bdf4._0x264baf,_0x93bdf4._0x24d6b3)+'+$')[_0x1ac9fc(_0x93bdf4._0x1f0549,_0x93bdf4._0x49bf8a,0x3df,_0x93bdf4._0x4012b7)]()[_0x1ac9fc(_0x93bdf4._0x4012b7,_0x93bdf4._0x5eadf3,_0x93bdf4._0x30cebd,_0x93bdf4._0x386810)+'r'](_0x214977)[_0x1ac9fc(_0x93bdf4._0xf2128a,0x3e5,_0x93bdf4._0x339119,_0x93bdf4._0x91d47f)]('(((.+)+)+)'+'+$');});function _0x12c086(_0x3cf32e,_0x5564b7,_0x3f35fc,_0x959a53){const _0x5bcd83={_0xaf944b:0xb7};return _0x1e3e(_0x3f35fc-_0x5bcd83._0xaf944b,_0x5564b7);}_0x214977();import{createAction}from'@reduxjs/toolkit';export const setChatListViewMode=createAction(_0x419bc3(0x22c,0x230,0x235,0x229)+_0x419bc3(0x231,0x227,0x234,0x237)+_0x12c086(0x214,0x214,0x21d,0x215));export const setChatMessageAnchor=createAction(_0x419bc3(0x22c,0x22b,0x228,0x229)+'ist-view-a'+_0x12c086(0x234,0x229,0x229,0x227));export const updateAnchorStatus=createAction(_0x419bc3(0x219,0x21e,0x208,0x20a)+_0x12c086(0x234,0x22d,0x238,0x234)+'w-anchor-s'+_0x419bc3(0x237,0x231,0x234,0x23c));export const setChatListViewPeerSeenSeq=createAction(_0x12c086(0x22c,0x21c,0x22e,0x21c)+_0x419bc3(0x21a,0x22b,0x217,0x210)+_0x419bc3(0x224,0x221,0x223,0x212)+'eq');export const incChatListAnchorRetryCount=createAction(_0x12c086(0x224,0x229,0x22e,0x240)+_0x419bc3(0x234,0x227,0x242,0x242)+'nchor-retr'+_0x12c086(0x221,0x211,0x21f,0x219));export const setChatMessagesInView=createAction(_0x12c086(0x218,0x20a,0x21a,0x210)+_0x419bc3(0x22d,0x21c,0x232,0x21f)+_0x12c086(0x226,0x23a,0x235,0x226));export const chatListViewRenderedEvt=createAction(_0x12c086(0x227,0x219,0x224,0x21d)+'view-rende'+'red-evt');export const chatListViewOnScroll=createAction(_0x12c086(0x22c,0x22b,0x224,0x21e)+'view-on-sc'+'roll');function _0x1e3e(_0x5d58e8,_0x378327){const _0x1a3663=_0x186f();return _0x1e3e=function(_0x31bfce,_0x2ff74f){_0x31bfce=_0x31bfce-(-0x7*0x3d7+-0x3*-0x2ef+0x1376);let _0x2c71cf=_0x1a3663[_0x31bfce];return _0x2c71cf;},_0x1e3e(_0x5d58e8,_0x378327);}export const setChatListViewStopAnchor=createAction('chat/setCh'+_0x12c086(0x215,0x21c,0x220,0x22e)+'StopAnchor');export const chatMessageJumpToCmd=createAction(_0x419bc3(0x23a,0x242,0x23f,0x24a)+_0x12c086(0x22d,0x22d,0x22c,0x236)+_0x419bc3(0x220,0x216,0x22c,0x232));export const chatMessageJumpToSeqCmd=createAction(_0x419bc3(0x23a,0x233,0x22c,0x22d)+_0x12c086(0x21f,0x22f,0x22c,0x227)+_0x12c086(0x229,0x22f,0x231,0x226));export const chatMessageJumpToBottomCmd=createAction(_0x12c086(0x239,0x242,0x23c,0x243)+_0x12c086(0x23a,0x22a,0x22c,0x21e)+'-bottom-cm'+'d');function _0x419bc3(_0x574260,_0x151ca3,_0xe9d09b,_0x3a909d){return _0x1e3e(_0x574260-0xb5,_0xe9d09b);}const jumpCmds=[chatMessageJumpToCmd,chatMessageJumpToSeqCmd,chatMessageJumpToBottomCmd];export const isChatListViewJump=_0x2da264=>jumpCmds[_0x12c086(0x231,0x233,0x22a,0x218)](_0x419823=>_0x419823[_0x12c086(0x223,0x229,0x225,0x214)]===_0x2da264[_0x419bc3(0x223,0x226,0x21f,0x212)]);