(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=379)})({379:function(){function a(a,b){switch(b.removeClass('mask-celular, mask-phone'),parseInt(a)){case d.Tp_Celular:b.addClass('mask-celular');break;case d.Tp_Telefone:case d.Tp_Fax:b.addClass('mask-phone');break;default:b.addClass('mask-celular');}window.ftrMask()}function b(a){var b=document.querySelector('.js-label-fisica-juridica');a==e.Tp_Fisico?($('.js-content-fisica').removeClass('ftr-hidden'),$('.js-content-juridica').addClass('ftr-hidden'),b&&(b.textContent=language.getText('payment_address','text_date'))):($('.js-content-juridica').removeClass('ftr-hidden'),$('.js-content-fisica').addClass('ftr-hidden'),b&&(b.textContent=language.getText('payment_address','text_date_company')))}var c=$('#type_payment_phone').data('type-payment-phones'),d=new window.Type(c),e=new Type($('[data-tipo-pessoa]').data('tipo-pessoa'));$('.js-checkbox-holder').on('click',function(){$(this).is(':checked')?$('.js-holder-content').addClass('ftr-hidden'):$('.js-holder-content').removeClass('ftr-hidden')}),$('.ftr-js-select-telefone').on('click',function(){a($(this).data('value'),$('input[name="numero_telefone"]'))}),$('.ftr-js-tipo-telefone-customer').on('click',function(){a($(this).data('value'),$('input[name="customer_tipo_telefone"]'))}),a($('.ftr-js-telefone').val(),$('input[name="numero_telefone"]')),a($('.ftr-js-tipo-telefone-customer').val(),$('input[name="customer_tipo_telefone"]'));var f=$('.js-holder-content input[name="pessoa"]');f.on('click',function(){b($(this).val())}),b(f.filter(':checked').val()),$('#form-yapay, #form-wirecard').validate({onfocusout:function(a,b){$(b.currentTarget).next('.form-error').remove(),$(b.currentTarget).valid()},onsubmit:!0,errorElement:'span',errorClass:'form-error',validClass:'form-success',rules:{celular:{celular:!0},cpf:{cpfBR:!0},cnpj:{cnpj:!0},postcode:{postalcodeBR:!0},email:{email:!0}},messages:{confirm:{equalTo:'As senhas n\xE3o conferem'}}})}});