(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$ 8,15
Ganhe 8 pontos
 
R$ 35,29
Ganhe 35 pontos
 
R$ 8,25
Ganhe 8 pontos
BOLA CORDA PET 20CM 11327
Código: 37960
 
R$ 15,65
Ganhe 15 pontos
 
R$ 8,55
Ganhe 8 pontos
PROTETOR P PORTA 80CM 2028
PROTETOR P PORTA 80CM 2028
Código: 60344
BOLA COLORIDA 9X9CM PET TOY 25989
BOLA COLORIDA 9X9CM PET TOY 25989
Código: 58172
 
R$ 5,29
Ganhe 5 pontos
 
R$ 12,69
Ganhe 12 pontos
 
R$ 16,30
Ganhe 16 pontos
PORTA RETRATO PLASTICO 5125 10X15 2FACES
PORTA RETRATO PLASTICO 5125 10X15 2FACES
Código: 60339
 
R$ 65,65
Ganhe 65 pontos
 
R$ 34,09
Ganhe 34 pontos
PIAO C LUZ 13CM MT1445
Código: 31278
 
R$ 7,15
Ganhe 7 pontos
 
R$ 57,09
Ganhe 57 pontos
 
R$ 2,05
Ganhe 2 pontos
 
R$ 8,39
Ganhe 8 pontos
BRINQ LOUSA MAGICA DIGITAL 14X22CM MT220
BRINQ LOUSA MAGICA DIGITAL 14X22CM MT220
Código: 60343
 
R$ 9,95
Ganhe 9 pontos
 
R$ 9,95
Ganhe 9 pontos
 
R$ 6,99
Ganhe 6 pontos
 
R$ 6,99
Ganhe 6 pontos
 
R$ 54,85
Ganhe 54 pontos
 
R$ 69,75
Ganhe 69 pontos
 
R$ 27,45
Ganhe 27 pontos
 
R$ 36,05
Ganhe 36 pontos
Carregando produtos...
Cadastre-se para receber nossas ofertas!