');
$container.insertAfter('#innerOpcoes');
},
createForm: function () {
self = this;
// $.getScript(
// 'https://cdnjs.cloudflare.com/ajax/libs/jquery.mask/1.14.15/jquery.mask.js',
// function(){
if (!self.inputs.length) {
console.error('Nenhum input definido');
} else {
for (var i in self.inputs) {
var $group = self.getGroup(self.inputs[i]);
for (var k in self.inputs[i].inputs) {
var input = self.inputs[i].inputs[k];
$field = self.getInput(input);
$group.find('.inputs-container').append($field);
}
$(self.appendForm).append($group);
}
$button = $('');
$button.css({
'position': 'absolute',
'top': 0,
'left': 0,
'right': 0,
'bottom': 0,
'z-index': 1,
'cursor': 'pointer'
}).click(function (event) {
event.preventDefault();
formCartao.save();
});
$(self.buttonHandler).css({
'position': 'relative'
}).parent().css({
'position': 'relative'
}).append($button)
}
// }
// );
},
getGroup: function (group) {
return $('
' + group.name + '
');
},
getInput: function (input, $group) {
$field = $('');
var $input;
if (input.type == 'select') {
$input = $('');
for (var i in input.value) {
$input.append('');
}
} else {
$input = $('');
}
$input.attr({
'name': input.name,
'id': input.id
}).data({
'match': input.match + '#',
'required': input.required,
})
if (!!localStorage.getItem(input.match + '#')) {
$input.val(localStorage.getItem(input.match + '#'));
}
if (input.maxlength) {
$input.attr({
'maxlength': input.maxlength,
}).data({
'maxlength': input.maxlength
})
}
var $label = $('');
$label.attr({
'for': input.id
}).text(input.label);
var $span;
if (input.maxlength) {
$span = $('' + ($input.val().length) + '/' + input.maxlength + '');
$input.on('input', function () {
max = $(this).data('maxlength');
current = $(this).val().length;
$(this).next('span').text(current + '/' + max);
})
}
if (input.meiomask !== false) {
$input.setMask(input.meiomask);
}
if (input.sptelephone) {
$input.mask(SPMaskBehaviorCardapio, spOptionsCardapio);
}
$field.append($label);
$field.append($input);
$field.append($span);
return $field;
},
};
$(document).ready(function(){
formAirliquide.verify();
if(formAirliquide.is2create){
formAirliquide.createContainer();
formAirliquide.createForm();
}
formCartao.verify();
if(formCartao.is2create){
formCartao.createContainer();
formCartao.createForm();
}
if($('#formProposta').length){
// $('#produto-resumo button.confirm b').text('')
}
$('a[href="#minhas-personalizacoes"]').remove();
$('h2:contains("ORDEM DE COMPRA")').hide();
$('#txtRequisicaoCompras').hide();
setTimeout(function(){$('li:contains("Pessoa Jur�dica")').html('Pessoa F�sica')},300);
$('#txtPedidoNota').parent().parent().hide();
// $('.links-list a').not('.links-list a:contains("Contato"),.links-list a:contains("Perguntas"),.links-list a:contains("Termos de Uso"),.links-list a:contains("Como usar a plataforma")').hide();
if (document.URL.indexOf('carrinho-compras-finalizar-endereco') == 44) {
$('#frmCentroCustos > h2').remove();
$('label:contains("Telefone")').closest(".col-1").remove()
$('h2:contains("ORDEM DE COMPRA")').text('?REA CONT?BIL');
$('label:contains("Nome do respons?vel pelo recebimento")').text('Centro de Custo');
$("#txtRequisicaoCompras").attr('maxlength','4');
$("#txtNomeResponsavel").attr('maxlength','9');
$("#txtNomeResponsavel").attr('required', "true");
$("#txtRequisicaoCompras").attr('required', "true");
}
$("label:contains('E-mail (*)')").text("E-mail Air Liquide (*)")
});
const alterasPagamentos = `
Boleto:
Seu pedido somente entrará em produção após a confirmação do pagamento. O método de pagamento via boleto depende do processamento bancário e pode levar até 3 dias úteis para confirmação, o que pode impactar em seu prazo de entrega. Caso tenha urgência no pedido, sugerimos que você escolha outra forma de pagamento.
Pix:
Seu pedido entrará em produção somente após a confirmação do pagamento. O método de pagamento via Pix pode levar até 30 minutos para aprovação e, aos finais de semana e fora do horário comercial, a aprovação pode ocorrer em até 1 hora, o que pode impactar em seu prazo de entrega. Caso tenha urgência no pedido, sugerimos que você escolha outra forma de pagamento.