1 line
6.1 KiB
JavaScript
1 line
6.1 KiB
JavaScript
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)},LBpnp:function(t,e,n){return t(e,n)},IvJOA:function(t,e){return t(e)},gXFCx:u(167)+u(247)};DevMode||(healthNotice=await c[u(181)](Post,c[u(244)])),noticeCheckboxes[u(177)]((t,e)=>{const n=u,a=healthNotice[n(211)](t=>t[n(175)]===e)?.[n(173)]??!1;c[n(186)]($,t)[n(168)](c[n(179)],a);var r=noticeValues[n(227)](e),r=c[n(186)]($,r),o=healthNotice[n(211)](t=>t[n(175)]===e)?.[n(196)]??0,r=(r[n(277)](o),c[n(169)](onChangeNoticeValue,e),t);c[n(261)](toggleNotice,r,e)})},openHealthSettings=async()=>{var t=_0x23f837,e={RdEDF:function(t){return t()},ZNDXl:function(t,e){return t(e)},HTzoz:t(254)+t(161),AlkWl:t(189)};await e[t(232)](initNotice),e[t(226)]($,e[t(223)])[t(163)](e[t(207)])},closeHealthSettings=()=>{var t=_0x23f837,e={wlkZj:function(t,e){return t(e)},maOEh:t(254)+t(161),yJYmI:t(189)};e[t(269)]($,e[t(238)])[t(276)+"s"](e[t(228)])};$(document).on(_0x23f837(245),_0x23f837(217)+"rm",async t=>{var e,n,a,r,o,u=_0x23f837,c={XPCQt:function(t,e){return t(e)},qmeio:u(195)+u(191)+u(246),OudJP:function(t,e){return t(e)},YXmMD:u(187)+u(242)+u(165),LXrsV:function(t,e){return t(e)},ozixB:u(275)+u(265)+u(158),mWxLe:function(t,e){return t(e)},qwSEl:u(176)+u(257)+u(165),FfeMT:function(t,e){return t(e)},oHlxg:u(187)+u(242)+"e",pxHxd:u(182),tjrCU:function(t,e){return t(e)},dFRzp:u(275)+u(265)+"ce",yRXNM:u(176)+u(257)+"e",lJZYs:u(201),mHlwp:u(206),Fuuaw:u(188),HSwuG:function(t,e,n){return t(e,n)},UBCwr:u(266)+u(247),LHXAK:function(t,e,n,a){return t(e,n,a)},onMxL:function(t,e){return t(e)},wkAnA:u(213)+u(214)+u(230)+"E",FdZEN:u(213)+u(214)+u(225)+"D",dcfTU:function(t){return t()}},t=(t[u(192)+u(235)](),await c[u(234)](AreYouSureModal,c[u(234)](Lang,c[u(274)])));t&&(t=c[u(250)]($,c[u(278)])[u(277)](),e=c[u(264)]($,c[u(194)])[u(277)](),n=c[u(193)]($,c[u(205)])[u(277)](),a=c[u(236)]($,c[u(200)])[u(168)](c[u(190)]),r=c[u(270)]($,c[u(272)])[u(168)](c[u(190)]),o=c[u(234)]($,c[u(160)])[u(168)](c[u(190)]),t=[{type:c[u(224)],value:+t,notice:a},{type:c[u(248)],value:+e,notice:r},{type:c[u(240)],value:+n,notice:o}],c[u(159)](Post,c[u(263)],t),c[u(256)](SendPhoneNotificationOld,c[u(240)],c[u(164)](Lang,c[u(220)]),c[u(270)](Lang,c[u(219)])),c[u(262)](closeHealthSettings))}); |