(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
Filtrar por:

Não foram encontrados produtos com os filtros aplicados

Remova ou ajuste os filtros para continuar
 
R$ 9,99
Ganhe 9 pontos
 
R$ 53,09
Ganhe 53 pontos
 
R$ 97,65
Ganhe 97 pontos
 
R$ 24,79
Ganhe 24 pontos
Eu Vi! Divertidamente 2
Eu Vi! Divertidamente 2
Código: 65061
 
R$ 25,70
Ganhe 25 pontos
 
R$ 64,25
Ganhe 64 pontos
Didático Em MDF Números
Código: 27976
 
R$ 59,29
Ganhe 59 pontos
 
R$ 84,99
Ganhe 84 pontos
 
R$ 32,05
Ganhe 32 pontos
 
R$ 75,89
Ganhe 75 pontos
 
R$ 137,99
Ganhe 137 pontos
 
R$ 80,05
Ganhe 80 pontos
 
R$ 34,49
Ganhe 34 pontos
 
R$ 70,99
Ganhe 70 pontos
 
R$ 106,25
Ganhe 106 pontos
 
R$ 9,89
Ganhe 9 pontos
 
R$ 260,25
Ganhe 260 pontos
Patinete Frog Preto
Código: 27962
 
R$ 502,59
Ganhe 502 pontos
Patinete Frog Rosa
Código: 27963
 
R$ 452,25
Ganhe 452 pontos
 
R$ 108,65
Ganhe 108 pontos
PATINS
Código: 27965
 
R$ 263,55
Ganhe 263 pontos
 
R$ 116,90
Ganhe 116 pontos
Teclado com Microfone
Código: 27974
 
R$ 167,90
Ganhe 167 pontos
Carregando produtos...
Cadastre-se para receber nossas ofertas!