(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
BRINQ KIT PESCARIA TUBO
Código: 47607
 
R$ 16,35
Ganhe 16 pontos
BANHO FELIZ AMIGUINHOS 3 PCS
BANHO FELIZ AMIGUINHOS 3 PCS
Código: 61196
Brinquedo Espada Real
Código: 39182
 
R$ 15,90
Ganhe 15 pontos
 
R$ 35,10
Ganhe 35 pontos
Jogo de Bilhar
Código: 54082
 
R$ 17,45
Ganhe 17 pontos
 
R$ 29,39
Ganhe 29 pontos
Acqua Splash Pica Pau
Código: 39195
 
R$ 25,80
Ganhe 25 pontos
 
R$ 16,45
Ganhe 16 pontos
 
R$ 9,99
Ganhe 9 pontos
 
R$ 11,70
Ganhe 11 pontos
 
R$ 53,39
Ganhe 53 pontos
 
R$ 24,79
Ganhe 24 pontos
 
R$ 103,55
Ganhe 103 pontos
Boneca Butterfly
Código: 54051
 
R$ 45,95
Ganhe 45 pontos
 
R$ 29,49
Ganhe 29 pontos
 
R$ 25,70
Ganhe 25 pontos
 
R$ 15,20
Ganhe 15 pontos
 
R$ 59,35
Ganhe 59 pontos
 
R$ 109,05
Ganhe 109 pontos
 
R$ 66,59
Ganhe 66 pontos
 
R$ 53,69
Ganhe 53 pontos
 
R$ 30,39
Ganhe 30 pontos
 
R$ 94,25
Ganhe 94 pontos
 
R$ 101,19
Ganhe 101 pontos
Carregando produtos...
Cadastre-se para receber nossas ofertas!