(function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={i:d,l:!1,exports:{}};return a[d].call(e.exports,e,e.exports,b),e.l=!0,e.exports}var c={};return b.m=a,b.c=c,b.d=function(a,c,d){b.o(a,c)||Object.defineProperty(a,c,{enumerable:!0,get:d})},b.r=function(a){'undefined'!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:'Module'}),Object.defineProperty(a,'__esModule',{value:!0})},b.t=function(a,c){if(1&c&&(a=b(a)),8&c)return a;if(4&c&&'object'==typeof a&&a&&a.__esModule)return a;var d=Object.create(null);if(b.r(d),Object.defineProperty(d,'default',{enumerable:!0,value:a}),2&c&&'string'!=typeof a)for(var e in a)b.d(d,e,function(b){return a[b]}.bind(null,e));return d},b.n=function(a){var c=a&&a.__esModule?function(){return a['default']}:function(){return a};return b.d(c,'a',c),c},b.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},b.p='public',b(b.s=386)})({386:function(a,b,c){'use strict';c.r(b),window.toggleClass=function(a,b,c){a&&a.addEventListener('change',function(){a.checked?b.classList.remove(c):b.classList.add(c)})};var d=document.querySelector('.js-reloadPayment');d&&d.addEventListener('click',function(){$.ajax({url:'index.php?route=payment/getnet/reloadPix',type:'get',dataType:'json',timeout:3e3,contentType:'application/json; charset=utf-8',error:function(a,b,c){console.log(c+'\r\n'+a.statusText+'\r\n'+a.responseText)},success:function(a){if(a){var b=document.querySelector('.js-imgQr'),c=document.querySelector('.js-copy-content');b.setAttribute('src','https://chart.googleapis.com/chart?chs=400x400&cht=qr&chl='+a.additional_data.qr_code),c.textContent=a.additional_data.qr_code}}})}),setInterval(function(){var a=document.querySelector('.js-imgQr');a&&'image/qrcode_pago.png'!=a.getAttribute('src')&&$.ajax({url:'index.php?route=checkout/success/verifyPaymentPix',type:'get',dataType:'json',timeout:3e3,contentType:'application/json; charset=utf-8',error:function(a,b,c){console.log(c+'\r\n'+a.statusText+'\r\n'+a.responseText)},success:function(b){b&&a.setAttribute('src','image/qrcode_pago.png')}})},5e3)}});