Files
red-valley/resources/[framework]/[addons]/qs-smartphone-pro/html/js/apps/health.js

1 line
6.1 KiB
JavaScript
Raw Normal View History

2026-03-29 21:41:17 +03:00
const _0x23f837=_0x5bdd;function _0x5bdd(t,e){const n=_0x1d2c();return(_0x5bdd=function(t,e){return t-=157,n[t]})(t,e)}function _0x1d2c(){const t=["e-value-co","text","notice","2269248pyGvrG","type","#health-he","forEach","1060409ztAqzg","xLvXR","ata","IvJOA","checked","uvKxU","html","4116HnRsBW","hDYIR","#health-hu","health","active","pxHxd","HEALTH_SAV","preventDef","mWxLe","ozixB","PHONE_NUI_","value","1664586CZDPfh","hide","YVXpE","oHlxg","hungry","-text","#health-st","split","qwSEl","thirsty","AlkWl","142492GTszZO","VKZyL","OwxHu","find","etngO","PHONE_NOTI","FICATION_H","1|2|0|3|4","dabXP","#health-fo","NmXZq","FdZEN","wkAnA","QDaHd","hdmUt","HTzoz","lJZYs","EALTH_SAVE","ZNDXl","get","yJYmI","getHealthD","EALTH_TITL","kAZGy","RdEDF","XGWJS","XPCQt","ault","FfeMT","1315485iqHILa","maOEh","ntainer","Fuuaw","IuSAY","ngry-notic","iHHed","gXFCx","submit","E_VALUES","otice","mHlwp","ontainer","OudJP","irsty","ySwrs","steps","#health-se","tetAH","LHXAK","alth-notic","eps","408ZWccGR","alth","LBpnp","dcfTU","UBCwr","LXrsV","irsty-noti","setHealthN","284455CTBkle","wtaXl","wlkZj","tjrCU","show","dFRzp","sbKYf","qmeio","#health-th","removeClas","val","YXmMD","ce-value-c","ce-value","HSwuG","yRXNM","ttings","MHEvk","addClass","onMxL","e-value","xYmQD","getHealthN","prop","Ihdyb","ngry"];return(_0x1d2c=function(){return t})()}!function(){for(var t=_0x5bdd,e=_0x1d2c();;)try{if(191100==+parseInt(t(267))+-parseInt(t(208))/2+parseInt(t(185))/3*(-parseInt(t(259))/4)+parseInt(t(237))/5+-parseInt(t(197))/6+-parseInt(t(178))/7+parseInt(t(174))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();let healthData={hungry:20,thirsty:20,health:70,steps:80},healthNotice=[{type:_0x23f837(201),value:55,notice:!0},{type:_0x23f837(206),value:20,notice:!0}],healthInterval;const getHealthData=async()=>{var t=_0x23f837,e={NmXZq:function(t,e){return t(e)},YVXpE:t(229)+t(180)};DevMode||(healthData=await e[t(218)](Post,e[t(199)]))},updateHealthData=async()=>{var t=_0x23f837,e={etngO:t(215),hdmUt:function(t,e){return t(e)},VKZyL:t(187)+t(170),dabXP:function(t){return t()},wtaXl:function(t,e){return t(e)},OwxHu:t(203)+t(258),sbKYf:t(275)+t(251),MHEvk:t(176)+t(260)},n=e[t(212)][t(204)]("|");let a=0;for(;;){switch(n[a++]){case"0":e[t(222)]($,e[t(209)])[t(172)](healthData[t(201)]);continue;case"1":await e[t(216)](getHealthData);continue;case"2":e[t(268)]($,e[t(210)])[t(172)](healthData[t(253)]);continue;case"3":e[t(268)]($,e[t(273)])[t(172)](healthData[t(206)]);continue;case"4":e[t(222)]($,e[t(162)])[t(172)](healthData[t(188)]);continue}break}},loopOfHealth=async()=>{var t=_0x23f837,e={kAZGy:function(t){return t()},tetAH:function(t,e,n){return t(e,n)}};e[t(231)](updateHealthData),healthInterval=e[t(255)](setInterval,updateHealthData,1e3)},stopLoopOfHealth=()=>{({iHHed:function(t,e){return t(e)}})[_0x23f837(243)](clearInterval,healthInterval)},noticeContainers=new Map([[_0x23f837(201),$(_0x23f837(187)+_0x23f837(242)+_0x23f837(171)+_0x23f837(239))],[_0x23f837(206),$(_0x23f837(275)+_0x23f837(265)+_0x23f837(157)+_0x23f837(249))],[_0x23f837(188),$(_0x23f837(176)+_0x23f837(257)+_0x23f837(171)+_0x23f837(239))]]),noticeValues=new Map([[_0x23f837(201),_0x23f837(187)+_0x23f837(242)+_0x23f837(165)],[_0x23f837(206),_0x23f837(275)+_0x23f837(265)+_0x23f837(158)],[_0x23f837(188),_0x23f837(176)+_0x23f837(257)+_0x23f837(165)]]),noticeCheckboxes=new Map([[_0x23f837(201),_0x23f837(187)+_0x23f837(242)+"e"],[_0x23f837(206),_0x23f837(275)+_0x23f837(265)+"ce"],[_0x23f837(188),_0x23f837(176)+_0x23f837(257)+"e"]]),onChangeNoticeValue=t=>{var e=_0x23f837,n={IuSAY:function(t,e){return t(e)},XGWJS:function(t,e){return t(e)},uvKxU:function(t,e){return t+e},ySwrs:e(202)},t=noticeValues[e(227)](t),a=+n[e(241)]($,t)[e(277)]();n[e(233)]($,n[e(183)](t,n[e(252)]))[e(184)](n[e(183)](a,"%"))},toggleNotice=(t,e)=>{var n=_0x23f837,a={QDaHd:function(t,e){return t(e)},xYmQD:n(182)},t=a[n(221)]($,t)[n(168)](a[n(166)]),a=noticeContainers[n(227)](e);t?a[n(271)]():a[n(198)]()},initNotice=async()=>{const u=_0x23f837,c={hDYIR:function(t,e){return t(e)},xLvXR:u(182),Ihdyb:function(t,e){return t(e)