(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='view/public/',b(b.s=555)})({555:function(a,b,c){'use strict';c.r(b);var d=c(69);document.addEventListener('DOMContentLoaded',function(){function a(){l.value&&m.value?c.removeAttribute('disabled',!0):c.setAttribute('disabled',!0)}function b(a){var b=this;a.preventDefault();k||(this.classList.add('btn-loading'),this.disabled=!0,k=!0,window.axiosApi({method:'get',url:f,params:{rede_token:l.value,rede_pv:m.value}}).then(function(a){var b=a.data;notificationMsg(b.message,b.type)}).catch(function(a){console.log(a)}).finally(function(){b.classList.remove('btn-loading'),b.disabled=!1,k=!1}))}var c=document.querySelector('.js-validate-credentials'),f=c.dataset.url,e=document.getElementsByClassName('js-rede_token'),g=document.getElementsByClassName('js-password-view'),h=document.querySelector('#btn_copy_tokenization'),i=document.getElementsByClassName('js-rede_pv'),j=document.getElementsByClassName('js-pv-view'),k=!1,l=document.querySelector('input[name="rede_token"]'),m=document.querySelector('input[name="rede_pv"]');a(),l.addEventListener('change',a),m.addEventListener('change',a),h.addEventListener('click',function(){var a=document.querySelector('#url_tokenization').textContent;Object(d.a)(a),document.querySelector('#btn_copy_tokenization span').textContent='Copiado',setTimeout(function(){document.querySelector('#btn_copy_tokenization span').textContent='Copiar'},2e3)}),c.addEventListener('click',b),g.item(0).addEventListener('click',function(){var a='text'==e.item(0).getAttribute('type')?'password':'text';g.item(0).classList.remove('text'==a?'fa-eye':'fa-eye-slash'),g.item(0).classList.add('password'==a?'fa-eye':'fa-eye-slash'),e.item(0).setAttribute('type',a)}),j.item(0).addEventListener('click',function(){var a='text'==i.item(0).getAttribute('type')?'password':'text';j.item(0).classList.remove('text'==a?'fa-eye':'fa-eye-slash'),j.item(0).classList.add('password'==a?'fa-eye':'fa-eye-slash'),i.item(0).setAttribute('type',a)})})},69:function(a,b){'use strict';b.a=function(a){var b=document.createElement('input');b.value=a,document.body.appendChild(b),b.select(),document.execCommand('copy'),document.body.removeChild(b)}}});