(function() { const REGRA_AZUL = 'ENTREGA AZUL'; const TEXTO_AZUL = 'Informe o horário preferencial para entrega do seu pedido'; const TEXTO_PADRAO = 'Faça suas solicitações para a entrega'; function executarTroca() { const itens = document.querySelectorAll('.freight-methods__item'); const campo = document.getElementById('observacoes_entrega'); if (!campo) return; const container = campo.closest('.form-group'); const label = container?.querySelector('label b'); if (!label) return; let isAzul = false; itens.forEach(item => { const radio = item.querySelector('input[type="radio"]'); const titulo = item.querySelector('.freight-methods__item-title b')?.innerText || ""; if (radio && radio.checked && titulo.toUpperCase().includes(REGRA_AZUL)) { isAzul = true; } }); // 🔵 CASO ENTREGA AZUL if (isAzul) { // Atualiza label if (label.innerText !== TEXTO_AZUL) { label.innerText = TEXTO_AZUL; } // Se ainda for textarea, troca para input time if (campo.tagName.toLowerCase() === 'textarea') { const novoInput = document.createElement('input'); novoInput.type = 'time'; novoInput.className = campo.className; novoInput.name = campo.name; novoInput.id = campo.id; novoInput.value = campo.value; campo.parentNode.replaceChild(novoInput, campo); } } else { // ⚪ CASO PADRÃO if (label.innerText !== TEXTO_PADRAO) { label.innerText = TEXTO_PADRAO; } // Se virou input, volta pra textarea if (campo.tagName.toLowerCase() === 'input') { const novoTextarea = document.createElement('textarea'); novoTextarea.className = campo.className; novoTextarea.name = campo.name; novoTextarea.id = campo.id; novoTextarea.maxLength = 500; novoTextarea.rows = 2; novoTextarea.value = campo.value; campo.parentNode.replaceChild(novoTextarea, campo); } } } const interval = setInterval(executarTroca, 500); setTimeout(() => clearInterval(interval), 30000); document.addEventListener('change', executarTroca); document.addEventListener('click', executarTroca); const observer = new MutationObserver(executarTroca); observer.observe(document.body, { childList: true, subtree: true }); executarTroca(); })();
MENU
Filtros

Não foram encontrados produtos com os filtros aplicados

Remova ou ajuste os filtros para continuar
 
R$ 86,50
Ganhe 86 pontos
% PROMOÇÃO
Kit 3 Peças Livros Listrados REF 20155
De: R$ 70,39
Por: R$ 39,90
Ganhe 39 pontos
 
R$ 24,05
Ganhe 24 pontos
 
R$ 6,65
Ganhe 6 pontos
 
R$ 6,95
Ganhe 6 pontos
 
R$ 58,99
Ganhe 58 pontos
 
R$ 23,15
Ganhe 23 pontos
 
R$ 17,55
Ganhe 17 pontos
 
R$ 24,85
Ganhe 24 pontos
 
R$ 77,49
Ganhe 77 pontos
 
R$ 18,05
Ganhe 18 pontos
 
R$ 14,00
Ganhe 14 pontos
 
R$ 13,85
Ganhe 13 pontos
 
R$ 42,30
Ganhe 42 pontos
 
R$ 37,65
Ganhe 37 pontos
 
R$ 589,49
Ganhe 589 pontos
 
R$ 8,15
Ganhe 8 pontos
 
R$ 15,05
Ganhe 15 pontos
 
R$ 148,19
Ganhe 148 pontos
De: R$ 207,55
Por: R$ 119,90
Ganhe 119 pontos
De: R$ 191,65
Por: R$ 119,90
Ganhe 119 pontos
 
R$ 81,45
Ganhe 81 pontos
 
R$ 101,39
Ganhe 101 pontos
% PROMOÇÃO
Bandeja Sextavada Grande REF 42095 Menta
De: R$ 55,25
Por: R$ 39,90
Ganhe 39 pontos
Carregando produtos...
Cadastre-se para receber nossas ofertas!