jQuery.noConflict(),function(f,p,t){f(t).ready(function(){"use strict";var t="cryptoniq-paybox",c={a:t+"-",b:"#"+t+"-",c:"."+t+"-",d:"#"+t,e:"."+t,f:t,g:t.replace(/-/g,"_")};function e(){var t,e=f(c.c+"layer"),o=e.width(),a=c.a+"resize-",n=[780,750,660,480],i=-1;for(t in n)e.hasClass(a+n[t])&&e.removeClass(a+n[t]),o<=n[t]&&i++;-1<i&&i<n.length&&e.addClass(a+n[i])}e(),f(p).resize(e);var n,i,o=f(c.b+"address").text(),r=f(c.b+"tx-bar"),s=f(c.b+"loader"),d=f(c.b+"alert"),a=(r.data("coin"),cryptoniq_paybox_ajax_data.url),l=cryptoniq_paybox_ajax_data.nonce,u=r.data("id"),t=r.data("time");function x(t){return(t<10?"0":"")+t}f(c.b+"qrcode").text("").qrcode({width:120,height:120,text:o}),new ClipboardJS(c.b+"address-copy"),f(c.b+"tooltip-button").click(function(){f(c.c+"instructions").addClass(c.a+"instructions-open")}),f(c.b+"instructions-close").click(function(){f(c.c+"instructions").removeClass(c.a+"instructions-open")}),0<f(c.d).length&&(function e(){f.ajax({type:"POST",dataType:"json",url:a,cache:!1,data:{action:c.g+"_checker",nonce:l,id:u},success:function(t){!0===t.failed&&(r.addClass(c.a+"tx-failed"),s.hide(),d.hide(),f(c.c+"tx-counter-text").text(cryptoniq_paybox_notes.fail),f(c.b+"tx-counter").hide()),!0===t.paid?(r.addClass(c.a+"tx-processing"),s.hide(),d.hide(),f(c.c+"tx-counter-text").text(cryptoniq_paybox_notes.process),f(c.b+"tx-counter").hide(),setTimeout(function(){p.location.href=t.redirect},500)):setTimeout(e,1e3)},error:function(){r.addClass(c.a+"tx-checking-error").find(d).text(cryptoniq_paybox_notes.error)},complete:function(){}})}(),n=t,i=setInterval(function(){var t=Math.floor(Date.now()/1e3),e=n+3600-t,o=Math.floor(e%86400/3600),a=Math.floor(e%3600/60),t=Math.floor(e%60);f(c.b+"tx-counter").text(x(o)+"-"+x(a)+"-"+x(t)),e<0&&(clearInterval(i),r.addClass(c.a+"tx-failed"),s.hide(),d.hide(),f(c.c+"tx-counter-text").text(cryptoniq_paybox_notes.fail),f(c.b+"tx-counter").hide())},1e3))})}(jQuery,window,document);