(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=516)})({516:function(a,b,c){'use strict';c.r(b);var d=c(73);$(document).ready(function(){$('.clearsale_tipo_integracao').val()==Type_ClearSaleIntegracao.Tp_Start?$('.clear_sale_total_config').hide():$('.clear_sale_start_config').hide(),$('.clearsale_tipo_integracao').change(function(){$(this).val()==Type_ClearSaleIntegracao.Tp_Start?($('.clear_sale_total_config').hide(),$('.clear_sale_start_config').show()):($('.clear_sale_total_config').show(),$('.clear_sale_start_config').hide())}),document.getElementById('btnCallback').onclick=function(){Object(d.a)($('#urlCallback')[0].innerText)},document.getElementById('btn-validate').onclick=function(a){a.preventDefault();var b=$('#btn-validate').data('url'),c={clearsale_login:$('[name="clearsale_login"]').val(),clearsale_senha:$('[name="clearsale_senha"]').val()};$.ajax({url:b,type:'GET',data:c,beforeSend:function(){$('#btn-validate').addClass('btn-loading'),$('#btn-validate').attr('disabled',!0)},complete:function(){$('#btn-validate').removeClass('btn-loading'),$('#btn-validate').attr('disabled',!1)},success:function(a){var b=a.type,c=a.message;$('.warning, .success').remove(),b&&('error'==b?document.querySelector('.notification-container').innerHTML='<div class="warning full-width">'+c+'</div>':'success'==b&&(document.querySelector('.notification-container').innerHTML='<div class="success full-width">'+c+'</div>'),$('html, body').animate({scrollTop:'0px'},300))},error:function(a){console.log(a)}})}})},73: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)}}});