(function(_0x173e84,_0x14ac7c){const _0x532c5b={_0x5236b6:0x32,_0x5e06ab:0x22,_0x57d2a5:0x2e,_0x3d5bf4:0x546,_0x3604ea:0x547,_0x3ee1cc:0x53d,_0x2920fb:0x550,_0x49ae4a:0x548,_0xe36651:0x541,_0x3f9e35:0x551,_0x41fb44:0x545,_0x2ac563:0x53d,_0x281c72:0x549,_0x33dbf7:0x54b,_0x264607:0x553,_0xb81400:0x55d,_0xff453b:0x55e,_0x5d655e:0x29,_0x547354:0x35,_0x161a89:0x33,_0x167760:0x27,_0x1b73fe:0x27,_0x20f865:0x54a,_0x1e37c5:0x54a,_0x35e28d:0x36,_0x3d2e79:0x3a,_0x2af4f1:0x31,_0x59f945:0x3e},_0x51c8bf={_0x454d7c:0x1b4},_0x11e5b2={_0x53b913:0x36c},_0x3a8da0=_0x173e84();function _0x365e90(_0x2db541,_0x15d9fc,_0x2f5447,_0xa1463e){return _0x4c11(_0x15d9fc-_0x11e5b2._0x53b913,_0x2f5447);}function _0x570aad(_0x128d1b,_0x400640,_0x14c8d7,_0x191da5){return _0x4c11(_0x128d1b- -_0x51c8bf._0x454d7c,_0x14c8d7);}while(!![]){try{const _0x24ad18=parseInt(_0x570aad(0x27,_0x532c5b._0x5236b6,_0x532c5b._0x5e06ab,_0x532c5b._0x57d2a5))/(0x1219+0x3c1+0x31f*-0x7)+-parseInt(_0x365e90(0x53a,_0x532c5b._0x3d5bf4,_0x532c5b._0x3604ea,_0x532c5b._0x3ee1cc))/(0x107b*0x1+-0x26b6+-0x1*-0x163d)+-parseInt(_0x365e90(_0x532c5b._0x2920fb,_0x532c5b._0x49ae4a,_0x532c5b._0xe36651,0x544))/(0x192*0x7+-0xe8+-0xa13)*(parseInt(_0x365e90(_0x532c5b._0x3f9e35,_0x532c5b._0x41fb44,_0x532c5b._0x2ac563,_0x532c5b._0x281c72))/(0x189+0x1*0x874+0x1*-0x9f9))+-parseInt(_0x365e90(_0x532c5b._0x33dbf7,_0x532c5b._0x264607,_0x532c5b._0xb81400,_0x532c5b._0xff453b))/(-0x1945+-0x1*-0x1ba7+-0x1*0x25d)+parseInt(_0x570aad(_0x532c5b._0x5d655e,0x2d,_0x532c5b._0x547354,_0x532c5b._0x547354))/(-0x129c+0x249f+0x3*-0x5ff)*(-parseInt(_0x570aad(_0x532c5b._0x57d2a5,_0x532c5b._0x161a89,_0x532c5b._0x167760,_0x532c5b._0x1b73fe))/(-0x1e7*0xc+0x246b*-0x1+0x3b46*0x1))+-parseInt(_0x365e90(_0x532c5b._0x20f865,_0x532c5b._0x1e37c5,0x549,_0x532c5b._0x3d5bf4))/(-0x204*-0xb+-0x200f+0x9eb*0x1)+-parseInt(_0x570aad(_0x532c5b._0x35e28d,0x3b,_0x532c5b._0x3d2e79,_0x532c5b._0x2af4f1))/(-0x2*0x3c+0x8bd*0x2+-0x18b*0xb)*(-parseInt(_0x570aad(0x38,_0x532c5b._0x59f945,0x2c,0x40))/(0x29*0x3+-0x200b+0x1f9a));if(_0x24ad18===_0x14ac7c)break;else _0x3a8da0['push'](_0x3a8da0['shift']());}catch(_0x2e99b8){_0x3a8da0['push'](_0x3a8da0['shift']());}}}(_0x369e,0x88708*-0x2+-0x2ea4+0x1dcfe7*0x1));const _0x2ded40=(function(){let _0xf73214=!![];return function(_0x4c8bb2,_0x5de94a){const _0x1d017d=_0xf73214?function(){if(_0x5de94a){const _0x73d92b=_0x5de94a['apply'](_0x4c8bb2,arguments);return _0x5de94a=null,_0x73d92b;}}:function(){};return _0xf73214=![],_0x1d017d;};}()),_0x270e31=_0x2ded40(this,function(){const _0x44e6be={_0xe423ca:0x4ef,_0x2629b1:0x4ef,_0x54a225:0x4fe,_0x264a3b:0x506,_0x3cd2e:0x1b4,_0x185d59:0x1b9,_0x25cf4e:0x1b3,_0x599989:0x1c4,_0x25b85c:0x1b8,_0x2e6033:0x1ba,_0x54a8d5:0x1b1,_0xd381e5:0x1c0,_0x47cd59:0x1ad},_0x5e114a={_0x3ff563:0x30f},_0x5c7920={_0x449d97:0x39d};function _0x5e1a97(_0x9964fd,_0x1a2a4e,_0x130b01,_0x465e34){return _0x4c11(_0x1a2a4e- -_0x5c7920._0x449d97,_0x130b01);}function _0xca638e(_0x1dec55,_0x370ed9,_0x24c756,_0x189c4c){return _0x4c11(_0x1dec55-_0x5e114a._0x3ff563,_0x189c4c);}return _0x270e31[_0xca638e(_0x44e6be._0xe423ca,_0x44e6be._0xe423ca,_0x44e6be._0x2629b1,0x4e8)]()[_0xca638e(_0x44e6be._0x54a225,_0x44e6be._0x264a3b,0x508,0x4f4)](_0x5e1a97(-_0x44e6be._0x3cd2e,-_0x44e6be._0x185d59,-0x1b7,-_0x44e6be._0x25cf4e)+'+$')['toString']()[_0x5e1a97(-_0x44e6be._0x599989,-_0x44e6be._0x25b85c,-_0x44e6be._0x2e6033,-_0x44e6be._0x54a8d5)+'r'](_0x270e31)['search'](_0x5e1a97(-0x1c4,-0x1b9,-_0x44e6be._0xd381e5,-_0x44e6be._0x47cd59)+'+$');});function _0x369e(){const _0x388acc=['(((.+)+)+)','constructo','progressBy','4803890PKkGIE','reduce','keys','1037898ZvBEcn','TempId','370AjbPPB','pId','errorByTem','search','progress','1812TsRKvr','876108lWZjyU','983106mYoIMK','3678CavQxW','42SJbfIC','8378512jOuCVD','gFileParsi','toString','length','1424381mVsGHA','values'];_0x369e=function(){return _0x388acc;};return _0x369e();}_0x270e31();import{createSelector}from'@reduxjs/toolkit';import{CHAT_STATE_KEY}from'../chat.constant';import{CHAT_FILE_UPLOAD_STATE_KEY}from'./chat-file.constant';export const getChatFileUploadState=_0x1a5962=>_0x1a5962[CHAT_STATE_KEY][CHAT_FILE_UPLOAD_STATE_KEY];export const getChatPendingFileTempIds=_0x5e02e1=>getChatFileUploadState(_0x5e02e1)['tempIds'];function _0x580446(_0x244756,_0x543d76,_0x4578b6,_0x495606){return _0x4c11(_0x495606- -0x347,_0x543d76);}function _0x3b4197(_0x33c0fb,_0xd3638a,_0x536356,_0x4b9ee6){const _0x1927ac={_0x492396:0x1c8};return _0x4c11(_0x33c0fb- -_0x1927ac._0x492396,_0xd3638a);}export const getChatPendingFile=(_0x135ee7,_0x160600)=>getChatFileUploadState(_0x135ee7)['byTempId'][_0x160600];export const getChatPendingFileProgressByTempId=_0x340925=>getChatFileUploadState(_0x340925)[_0x580446(-0x15c,-0x15f,-0x15b,-0x161)+_0x580446(-0x168,-0x162,-0x160,-0x15c)];export const getChatPendingFileProgress=(_0x3d7d9c,_0x573044)=>getChatPendingFileProgressByTempId(_0x3d7d9c)[_0x573044]?.[_0x3b4197(0x28,0x27,0x1d,0x20)]||-0xd1c+-0x1542+0x225e;export const getChatPendingFileProgressTotal=createSelector(getChatPendingFileProgressByTempId,_0x2f891d=>{const _0x36fcbc={_0x310f4f:0x1ff,_0x1ad10b:0x1fa,_0x32a426:0x202,_0x41b330:0x1fd,_0x42efab:0x208,_0x50c07a:0x205,_0x3ee6f8:0x204,_0x2188ca:0x209,_0x40f550:0x20c,_0xa98860:0x207,_0x35c068:0x4e1,_0x5c2482:0x4d6,_0xf0defb:0x4e2},_0x119a49={_0x3503f0:0xf2,_0xc42747:0x648};function _0x387329(_0x5c6ba2,_0x2ca2f6,_0x206f68,_0x532dff){return _0x3b4197(_0x5c6ba2-0x1e4,_0x206f68,_0x206f68-0x43,_0x532dff-0x1e9);}function _0x3bb002(_0x2a4bc2,_0x5efb14,_0x5bad8f,_0x40912c){return _0x580446(_0x2a4bc2-0x48,_0x5bad8f,_0x5bad8f-_0x119a49._0x3503f0,_0x40912c-_0x119a49._0xc42747);}const _0x370ec7=Object[_0x387329(_0x36fcbc._0x310f4f,_0x36fcbc._0x1ad10b,_0x36fcbc._0x32a426,_0x36fcbc._0x1ad10b)](_0x2f891d);if(!_0x370ec7[_0x387329(_0x36fcbc._0x41b330,0x209,_0x36fcbc._0x42efab,_0x36fcbc._0x50c07a)])return-0x3bd*0x1+0x1e30+0x8d1*-0x3;return _0x370ec7[_0x387329(_0x36fcbc._0x3ee6f8,_0x36fcbc._0x2188ca,_0x36fcbc._0x40f550,_0x36fcbc._0xa98860)]((_0x4eff55,{progress:_0x4a3ec1})=>_0x4eff55+_0x4a3ec1,0x1*-0x644+-0x2468+-0x1*-0x2aac)/_0x370ec7[_0x3bb002(_0x36fcbc._0x35c068,_0x36fcbc._0x5c2482,0x4e1,_0x36fcbc._0xf0defb)];});export const getChatPendingFileErrorByTempId=_0x244546=>getChatFileUploadState(_0x244546)[_0x3b4197(0x26,0x1d,0x2a,0x21)+_0x580446(-0x152,-0x15a,-0x153,-0x15a)];export const getChatPendingFileErrorsCount=createSelector(getChatPendingFileErrorByTempId,_0x4299b0=>Object[_0x3b4197(0x21,0x20,0x1b,0x1b)](_0x4299b0)[_0x3b4197(0x19,0x24,0x17,0x23)]);export const getChatPendingFileRemaining=createSelector(getChatPendingFileProgressByTempId,_0x4183c4=>Object[_0x3b4197(0x21,0x21,0x1d,0x16)](_0x4183c4)[_0x3b4197(0x20,0x26,0x18,0x2a)]((_0x42bf28,_0xafab3c)=>{const {completed:_0x505f03}=_0x4183c4[_0xafab3c];return _0x505f03?_0x42bf28:_0x42bf28+(-0x1*0x1f7b+0x21e0+-0x9*0x44);},-0x2*-0x52e+-0x36f*0x7+0xdad));export const getChatPendingFileIsParsing=_0x51f043=>getChatFileUploadState(_0x51f043)['isUploadin'+_0x580446(-0x15d,-0x172,-0x173,-0x168)+'ng'];export const getChatPendingFileError=(_0x356e1f,_0x57f6c0)=>getChatFileUploadState(_0x356e1f)[_0x3b4197(0x26,0x30,0x1b,0x29)+_0x580446(-0x153,-0x160,-0x15e,-0x15a)][_0x57f6c0]||![];function _0x4c11(_0x369e12,_0x4c1163){const _0x2d1fb1=_0x369e();return _0x4c11=function(_0x15082e,_0x206f7f){_0x15082e=_0x15082e-(0x1df4+-0x1b80+-0x9b);let _0x150472=_0x2d1fb1[_0x15082e];return _0x150472;},_0x4c11(_0x369e12,_0x4c1163);}export const getChatPendingFileResultByTempId=_0x267b3e=>getChatFileUploadState(_0x267b3e)['resultByTe'+'mpId'];