1 line
14 KiB
JavaScript
1 line
14 KiB
JavaScript
function _0x360c(_0x4ea427,_0x322b25){const _0xa905f7=_0xa905();return _0x360c=function(_0x360ce5,_0xe228e1){_0x360ce5=_0x360ce5-0xa4;let _0x5ce893=_0xa905f7[_0x360ce5];return _0x5ce893;},_0x360c(_0x4ea427,_0x322b25);}(function(_0x1c7ae5,_0x5525dc){const _0x4463d4=_0x360c,_0xda335=_0x1c7ae5();while(!![]){try{const _0x20b105=-parseInt(_0x4463d4(0x109))/0x1*(-parseInt(_0x4463d4(0xdf))/0x2)+parseInt(_0x4463d4(0xbd))/0x3*(parseInt(_0x4463d4(0xf0))/0x4)+-parseInt(_0x4463d4(0xa4))/0x5*(-parseInt(_0x4463d4(0x116))/0x6)+parseInt(_0x4463d4(0x104))/0x7+-parseInt(_0x4463d4(0x113))/0x8*(-parseInt(_0x4463d4(0xc2))/0x9)+parseInt(_0x4463d4(0xc1))/0xa*(-parseInt(_0x4463d4(0xb4))/0xb)+-parseInt(_0x4463d4(0xf5))/0xc;if(_0x20b105===_0x5525dc)break;else _0xda335['push'](_0xda335['shift']());}catch(_0x241115){_0xda335['push'](_0xda335['shift']());}}}(_0xa905,0xb24cd),$(document)['ready'](function(){const _0x4ae3bc=_0x360c;function _0x58b0bb(){const _0x4022fd=_0x360c;$(document)['on']('click','.dropdown-selected',function(_0xddf881){const _0x135c33=_0x360c;_0xddf881[_0x135c33(0xf9)]();const _0x18168e=$(this)[_0x135c33(0x102)]('.custom-dropdown'),_0x5d9a5d=_0x18168e[_0x135c33(0xbe)](_0x135c33(0xd7)),_0x253f8f=$(this);$(_0x135c33(0x114))[_0x135c33(0xa6)](_0x18168e)[_0x135c33(0xbe)]('.dropdown-options')['removeClass'](_0x135c33(0x100)),$('.custom-dropdown')[_0x135c33(0xa6)](_0x18168e)[_0x135c33(0xbe)](_0x135c33(0xcf))[_0x135c33(0xb5)](_0x135c33(0xd4)),_0x5d9a5d[_0x135c33(0xc0)](_0x135c33(0x100)),_0x253f8f[_0x135c33(0xc0)](_0x135c33(0xd4));}),$(document)['on'](_0x4022fd(0x10d),'.dropdown-option',function(_0x432038){const _0x312d02=_0x4022fd;_0x432038['stopPropagation']();const _0x3c67f7=$(this),_0x908e0d=_0x3c67f7[_0x312d02(0x102)]('.custom-dropdown'),_0x4bb47f=_0x908e0d[_0x312d02(0xbe)]('.dropdown-selected'),_0x2f36c3=_0x908e0d[_0x312d02(0xbe)]('.dropdown-options'),_0x1da3e4=_0x4bb47f[_0x312d02(0xbe)]('.selected-text'),_0x30c967=_0x3c67f7[_0x312d02(0xe1)](_0x312d02(0xd5)),_0x51a4c0=_0x3c67f7[_0x312d02(0xe1)](_0x312d02(0xde)),_0x3bfec2=_0x3c67f7[_0x312d02(0xe1)]('price'),_0x2efa4c=_0x3c67f7[_0x312d02(0xbe)](_0x312d02(0xa9))[_0x312d02(0xcd)]()[_0x312d02(0x119)]();_0x1da3e4[_0x312d02(0x119)](_0x2efa4c),_0x908e0d['closest'](_0x312d02(0x118))[_0x312d02(0xbe)](_0x312d02(0xb8))[_0x312d02(0xae)](_0x51a4c0),_0x908e0d[_0x312d02(0x102)](_0x312d02(0x118))[_0x312d02(0xbe)](_0x312d02(0x111))[_0x312d02(0xae)](_0x3bfec2),_0x2f36c3['find']('.dropdown-option')['removeClass'](_0x312d02(0x106)),_0x3c67f7['addClass'](_0x312d02(0x106)),_0x2f36c3[_0x312d02(0xb5)](_0x312d02(0x100)),_0x4bb47f[_0x312d02(0xb5)](_0x312d02(0xd4)),_0x908e0d[_0x312d02(0xe6)](_0x312d02(0xdb),{'value':_0x30c967,'months':_0x51a4c0,'price':_0x3bfec2,'text':_0x2efa4c});const _0x9ea005=_0x908e0d[_0x312d02(0x102)]('[data-product-id]'),_0x13d7f7=parseFloat(_0x9ea005['data'](_0x312d02(0x11d))),_0x55671d=parseInt(_0x51a4c0),_0x193648=_0x13d7f7*_0x55671d,_0x2d0cf1=_0x55671d>=0xc?Math['round'](_0x193648*0.1):0x0,_0x47d27c=_0x193648-_0x2d0cf1;_0x9ea005[_0x312d02(0xbe)]('.total-price-display')['text']('₫'+_0x47d27c[_0x312d02(0xc5)]()),_0x9ea005['find'](_0x312d02(0x11f))[_0x312d02(0x119)](_0x55671d+_0x312d02(0x110)),_0x9ea005[_0x312d02(0xbe)]('.price-per-month')['text']('₫'+_0x13d7f7[_0x312d02(0xc5)]()+_0x312d02(0x105)),_0x9ea005['find'](_0x312d02(0xad))[_0x312d02(0x119)]('₫'+_0x193648[_0x312d02(0xc5)]()),_0x9ea005['find'](_0x312d02(0xba))[_0x312d02(0x119)]('₫'+_0x2d0cf1[_0x312d02(0xc5)]()),_0x2d0cf1>0x0?_0x9ea005['find']('.savings-info')[_0x312d02(0x100)]():_0x9ea005['find'](_0x312d02(0xd0))[_0x312d02(0xf3)]();}),$(document)['on'](_0x4022fd(0x10d),function(_0xb81fc5){const _0x5c7ca5=_0x4022fd;!$(_0xb81fc5[_0x5c7ca5(0xef)])['closest'](_0x5c7ca5(0x114))[_0x5c7ca5(0x117)]&&($(_0x5c7ca5(0xd7))[_0x5c7ca5(0xb5)](_0x5c7ca5(0x100)),$(_0x5c7ca5(0xcf))[_0x5c7ca5(0xb5)](_0x5c7ca5(0xd4)));}),$(document)['on'](_0x4022fd(0xfb),function(_0x1b9010){const _0x4c3df7=_0x4022fd;_0x1b9010['key']===_0x4c3df7(0xd2)&&($(_0x4c3df7(0xd7))['removeClass'](_0x4c3df7(0x100)),$(_0x4c3df7(0xcf))[_0x4c3df7(0xb5)](_0x4c3df7(0xd4)));});}_0x58b0bb(),$(document)['on'](_0x4ae3bc(0xd9),_0x4ae3bc(0xe8),function(_0x591a46){const _0x300ceb=_0x4ae3bc,_0xd560f7=$(this),_0x532d8e=_0xd560f7[_0x300ceb(0xbe)](_0x300ceb(0xaf));_0x532d8e[_0x300ceb(0x107)](_0x300ceb(0xab),!![])[_0x300ceb(0x119)](_0x300ceb(0xd6)),_0xd560f7[_0x300ceb(0xe2)](_0x300ceb(0xfa)),setTimeout(()=>{const _0x1975c4=_0x300ceb;_0x532d8e['prop'](_0x1975c4(0xab),![])[_0x1975c4(0x119)]('Đăng\x20ký\x20ngay'),_0xd560f7['removeClass']('submitting');},0x1388);});const _0x41b86a=_0x4ae3bc(0xc6);function _0xb140b8(_0x4dc014,_0x1e0f7b,_0x1b4427=0x1e*0x3c*0x3e8){const _0x22af96=_0x4ae3bc;try{const _0x215a84=new Date()['getTime']();let _0x5ae3cb=_0x21a6e6();!_0x5ae3cb&&(_0x5ae3cb={'lastUpdated':_0x215a84,'data':{}}),_0x5ae3cb['data'][_0x4dc014]={'value':_0x1e0f7b,'expiry':_0x215a84+_0x1b4427},_0x5ae3cb[_0x22af96(0xf2)]=_0x215a84,localStorage[_0x22af96(0xe5)](_0x41b86a,JSON[_0x22af96(0xea)](_0x5ae3cb));}catch(_0x4fcf59){console['warn'](_0x22af96(0xbf),_0x4fcf59);}}function _0x539e9a(_0x1f86ee){const _0x3adec7=_0x4ae3bc;try{const _0x323c6f=_0x21a6e6();if(!_0x323c6f||!_0x323c6f[_0x3adec7(0xe1)][_0x1f86ee])return null;const _0x318c28=_0x323c6f['data'][_0x1f86ee],_0x4f997b=new Date()[_0x3adec7(0xc7)]();if(_0x4f997b>_0x318c28[_0x3adec7(0xfc)])return _0x4570a3(_0x1f86ee),null;return _0x318c28[_0x3adec7(0xd5)];}catch(_0x365c8d){return console[_0x3adec7(0xb7)](_0x3adec7(0xfd),_0x365c8d),null;}}function _0x21a6e6(){const _0x636ba5=_0x4ae3bc;try{const _0x470b00=localStorage[_0x636ba5(0xce)](_0x41b86a);return _0x470b00?JSON[_0x636ba5(0xdd)](_0x470b00):null;}catch(_0x4c5327){return console[_0x636ba5(0xb7)]('VM\x20Info\x20cache\x20parse\x20failed:',_0x4c5327),null;}}function _0x4570a3(_0x4f1e2f){const _0x11dd88=_0x4ae3bc;try{const _0x3e2d10=_0x21a6e6();_0x3e2d10&&_0x3e2d10[_0x11dd88(0xe1)][_0x4f1e2f]&&(delete _0x3e2d10[_0x11dd88(0xe1)][_0x4f1e2f],_0x3e2d10['lastUpdated']=new Date()[_0x11dd88(0xc7)](),localStorage[_0x11dd88(0xe5)](_0x41b86a,JSON[_0x11dd88(0xea)](_0x3e2d10)));}catch(_0x4de0dc){console['warn'](_0x11dd88(0x10e),_0x4de0dc);}}function _0x50a8cb(){const _0x5ad706=_0x4ae3bc;try{const _0x30f090=_0x21a6e6();if(!_0x30f090)return;const _0x58b4fb=new Date()[_0x5ad706(0xc7)]();let _0x346dc0=![];Object[_0x5ad706(0xff)](_0x30f090[_0x5ad706(0xe1)])[_0x5ad706(0x103)](_0x26a3cd=>{const _0x51e184=_0x5ad706,_0x28b9f1=_0x30f090[_0x51e184(0xe1)][_0x26a3cd];_0x58b4fb>_0x28b9f1['expiry']&&(delete _0x30f090[_0x51e184(0xe1)][_0x26a3cd],_0x346dc0=!![]);}),_0x346dc0&&(_0x30f090[_0x5ad706(0xf2)]=_0x58b4fb,localStorage[_0x5ad706(0xe5)](_0x41b86a,JSON[_0x5ad706(0xea)](_0x30f090)));}catch(_0x2b8661){console[_0x5ad706(0xb7)](_0x5ad706(0xb3),_0x2b8661);}}$(document)['on'](_0x4ae3bc(0xee),_0x58b0bb);function _0xd942c2(){const _0xe68a51=_0x4ae3bc,_0x194644=[];$(_0xe68a51(0xd1))[_0xe68a51(0x101)](function(){const _0x2493b6=_0xe68a51,_0x4e117f=$(this)['data'](_0x2493b6(0xec));_0x4e117f&&!_0x194644[_0x2493b6(0xb1)](_0x4e117f)&&_0x194644[_0x2493b6(0xf8)](_0x4e117f);}),_0x194644[_0xe68a51(0x103)](_0x37f227=>{const _0x2e24a2=_0xe68a51,_0x178353=_0x539e9a(_0x37f227);if(_0x178353){_0xf9fad9(_0x37f227,_0x178353);return;}_0x25486e(_0x37f227),$[_0x2e24a2(0xb9)]({'url':_0x2e24a2(0xcc)+_0x37f227+_0x2e24a2(0xc9),'method':'GET','timeout':0x1388,'headers':{'X-CSRF-TOKEN':$(_0x2e24a2(0xa8))[_0x2e24a2(0x11e)]('content'),'Accept':'application/json'},'success':function(_0x5bd77d){const _0x1a4396=_0x2e24a2;if(_0x5bd77d[_0x1a4396(0xca)]===![]&&_0x5bd77d[_0x1a4396(0xe1)]){const _0x58ffb2=_0x5bd77d[_0x1a4396(0xe1)],_0x596253=_0x2dca90(_0x58ffb2);_0xb140b8(_0x37f227,_0x596253),_0xf9fad9(_0x37f227,_0x596253);}else _0x4c2615(_0x37f227);},'error':function(_0x3c2907,_0x18174e,_0x18a4c3){const _0x197f68=_0x2e24a2;console[_0x197f68(0xb7)](_0x197f68(0x120),_0x37f227,_0x18a4c3),_0x4c2615(_0x37f227);}});});}setTimeout(_0xd942c2,0x3e8);function _0x2dca90(_0x3967bb){const _0x4a37bf=_0x4ae3bc,_0x2cff70=_0x3967bb[_0x4a37bf(0xd8)]||_0x4a37bf(0xe9),_0x46ae11=_0x3967bb[_0x4a37bf(0xfe)]||0x0,_0x4d6af2=_0x3967bb['memory_size']||0x0,_0x3d4573=_0x3967bb[_0x4a37bf(0xbc)]||0x0;return{'guestOS':_0x2cff70,'formattedOS':_0x2478dd(_0x2cff70),'cpu':_0x46ae11,'formattedCPU':_0x46ae11+_0x4a37bf(0xaa)+(_0x46ae11>0x1?'s':''),'ram':Math[_0x4a37bf(0x11a)](_0x4d6af2/0x400*0x64)/0x64,'formattedRAM':Math[_0x4a37bf(0x11a)](_0x4d6af2/0x400*0x64)/0x64+_0x4a37bf(0xb6),'disk':Math['round'](_0x3d4573/(0x400*0x400*0x400)*0x64)/0x64,'formattedDisk':Math[_0x4a37bf(0x11a)](_0x3d4573/(0x400*0x400*0x400)*0x64)/0x64+_0x4a37bf(0xb6)};}function _0x25486e(_0x7115dc){const _0x1ef39a=_0x4ae3bc,_0x297c28='<i\x20class=\x22fas\x20fa-spinner\x20fa-spin\x20text-orange-500\x20mr-1\x22></i>Đang\x20tải...';$('.guest-os[data-template-id=\x22'+_0x7115dc+'\x22]')[_0x1ef39a(0x108)](_0x297c28),$('.vm-cpu[data-template-id=\x22'+_0x7115dc+'\x22]')['html'](_0x297c28),$(_0x1ef39a(0x10a)+_0x7115dc+'\x22]')[_0x1ef39a(0x108)](_0x297c28),$(_0x1ef39a(0xc8)+_0x7115dc+'\x22]')[_0x1ef39a(0x108)](_0x297c28);}function _0xf9fad9(_0x551380,_0x445ad7){const _0x290992=_0x4ae3bc;$('.guest-os[data-template-id=\x22'+_0x551380+'\x22]')[_0x290992(0x108)](_0x445ad7[_0x290992(0xf1)]),_0x306c47(_0x551380,_0x445ad7[_0x290992(0xe7)]),$(_0x290992(0xdc)+_0x551380+'\x22]')[_0x290992(0x108)](_0x445ad7['formattedCPU']),$(_0x290992(0x10a)+_0x551380+'\x22]')[_0x290992(0x108)](_0x445ad7[_0x290992(0xa7)]),$(_0x290992(0xc8)+_0x551380+'\x22]')[_0x290992(0x108)](_0x445ad7[_0x290992(0xb0)]);}function _0x4c2615(_0x1bda11){const _0x468856=_0x4ae3bc;$(_0x468856(0xda)+_0x1bda11+'\x22]')[_0x468856(0x108)](_0x468856(0xf4)),$('.vm-cpu[data-template-id=\x22'+_0x1bda11+'\x22]')[_0x468856(0x108)](_0x468856(0xbb)),$('.vm-ram[data-template-id=\x22'+_0x1bda11+'\x22]')[_0x468856(0x108)]('N/A'),$(_0x468856(0xc8)+_0x1bda11+'\x22]')[_0x468856(0x108)](_0x468856(0xbb));}function _0x306c47(_0x1c7e0b,_0x35269e){const _0x262ae7=_0x4ae3bc,_0x1c0cba=$(_0x262ae7(0xcb)+_0x1c7e0b+'\x22]');if(_0x35269e&&_0x35269e[_0x262ae7(0xc3)]()[_0x262ae7(0xb1)]('windows'))_0x1c0cba[_0x262ae7(0xb5)]('fab\x20fa-linux')[_0x262ae7(0xe2)](_0x262ae7(0x10c));else{if(_0x35269e&&_0x35269e[_0x262ae7(0xc3)]()[_0x262ae7(0xb1)](_0x262ae7(0x10f)))_0x1c0cba['removeClass'](_0x262ae7(0xed))[_0x262ae7(0xe2)](_0x262ae7(0xf7));else{if(_0x35269e&&_0x35269e[_0x262ae7(0xc3)]()['includes'](_0x262ae7(0xac)))_0x1c0cba[_0x262ae7(0xb5)](_0x262ae7(0xed))[_0x262ae7(0xe2)]('fab\x20fa-centos');else _0x35269e&&_0x35269e[_0x262ae7(0xc3)]()['includes']('debian')?_0x1c0cba[_0x262ae7(0xb5)](_0x262ae7(0xed))[_0x262ae7(0xe2)](_0x262ae7(0xa5)):_0x1c0cba[_0x262ae7(0xb5)]()[_0x262ae7(0xe2)](_0x262ae7(0xb2));}}}function _0x2478dd(_0x292c8d){const _0x411ba5=_0x4ae3bc,_0x4a7eac={'UBUNTU_64':_0x411ba5(0xe4),'CENTOS_64':_0x411ba5(0x115),'CENTOS_7_64':'CentOS\x207\x2064-bit','CENTOS_8_64':_0x411ba5(0x10b),'ROCKY_LINUX_64':_0x411ba5(0x112),'WINDOWS_10_64':_0x411ba5(0x11b),'WINDOWS_9_SERVER_64':_0x411ba5(0xc4),'WINDOWS_SERVER_2019':_0x411ba5(0xc4),'WINDOWS_SERVER_2022':'Windows\x20Server\x202022','WINDOWS_2019':'Windows\x20Server\x202019','WINDOWS_2022':_0x411ba5(0xf6),'DEBIAN_10_64':'Debian\x2010\x2064-bit','DEBIAN_11_64':_0x411ba5(0xe3),'OTHER_LINUX_64':'Linux\x2064-bit','OTHER_64':_0x411ba5(0xd3)};return _0x4a7eac[_0x292c8d]||_0x292c8d||_0x411ba5(0xf4);}_0x50a8cb(),_0xd942c2(),window[_0x4ae3bc(0xe0)]={'clear':function(){const _0x3ad738=_0x4ae3bc;localStorage[_0x3ad738(0xeb)](_0x41b86a);},'refresh':function(){const _0x5ed296=_0x4ae3bc;this[_0x5ed296(0x11c)](),_0xd942c2();},'info':function(){const _0x4d596f=_0x4ae3bc,_0x57ae9e=_0x21a6e6();if(!_0x57ae9e)return;const _0x41ec45=Object[_0x4d596f(0xff)](_0x57ae9e['data']);_0x41ec45[_0x4d596f(0x103)](_0x321fc3=>{const _0x904b3e=_0x539e9a(_0x321fc3);});},'get':function(_0x30e130){return _0x539e9a(_0x30e130);},'remove':function(_0xb6d156){_0x4570a3(_0xb6d156);},'raw':function(){return _0x21a6e6();}};}));function _0xa905(){const _0x614fac=['2067992MXAElu','.custom-dropdown','CentOS\x2064-bit','518382Nktqlr','length','form','text','round','Windows\x2010\x2064-bit','clear','base-price','attr','.months-display','Failed\x20to\x20load\x20VM\x20info\x20for\x20template:','30WCWjyw','fab\x20fa-debian','not','formattedRAM','meta[name=\x22csrf-token\x22]','span','\x20vCore','disabled','centos','.original-price','val','button[type=\x22submit\x22]','formattedDisk','includes','fab\x20fa-linux\x20text-orange-600','VM\x20Info\x20cache\x20cleanup\x20failed:','44jHZoRC','removeClass','\x20GB','warn','.hiddenMonths','ajax','.savings-amount','N/A','disk_capacity','3pZImtt','find','VM\x20Info\x20cache\x20save\x20failed:','toggleClass','1193960MRPkMp','27ckderA','toLowerCase','Windows\x20Server\x202019','toLocaleString','vm_info_cache','getTime','.vm-disk[data-template-id=\x22','/guest_os,cpu_count,memory_size,disk_capacity','error','.os-icon[data-template-id=\x22','/api/v1/get-vm-info/','first','getItem','.dropdown-selected','.savings-info','.guest-os','Escape','Other\x2064-bit','active','value','Đang\x20xử\x20lý...','.dropdown-options','guest_os','submit','.guest-os[data-template-id=\x22','dropdown:changed','.vm-cpu[data-template-id=\x22','parse','months','1672xDDLCX','vmInfoCache','data','addClass','Debian\x2011\x2064-bit','Ubuntu\x2064-bit','setItem','trigger','guestOS','form[action*=\x22them-gio-hang\x22]','UNKNOWN','stringify','removeItem','template-id','fab\x20fa-linux','DOMContentLoaded','target','3386932wGqEiO','formattedOS','lastUpdated','hide','Linux','30429180mwKftT','Windows\x20Server\x202022','fab\x20fa-ubuntu','push','stopPropagation','submitting','keydown','expiry','VM\x20Info\x20cache\x20get\x20failed:','cpu_count','keys','show','each','closest','forEach','9770082BNnZaG','/tháng','selected','prop','html','248tJOuMd','.vm-ram[data-template-id=\x22','CentOS\x208\x2064-bit','fab\x20fa-windows','click','VM\x20Info\x20cache\x20remove\x20failed:','ubuntu','\x20tháng','.hiddenTotalPrice','Rocky\x20Linux\x2064-bit'];_0xa905=function(){return _0x614fac;};return _0xa905();} |