(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
H PICK FOLHA DOURADO 46CM
Código: 62079
 
R$ 2,99
Ganhe 2 pontos
 
R$ 22,55
Ganhe 22 pontos
Pisca 200 Leds Verde 15m Branco 220V
PISCA 200 LED VD MACH FEM 15M BR 220V
Código: 47435
 
R$ 59,90
Ganhe 59 pontos
 
R$ 41,20
Ganhe 41 pontos
 
R$ 279,90
Ganhe 279 pontos
 
R$ 64,90
Ganhe 64 pontos
 
R$ 5,65
Ganhe 5 pontos
Folha X12 Marrom 38cm
Código: 25084
 
R$ 9,59
Ganhe 9 pontos
 
R$ 6,89
Ganhe 6 pontos
 
R$ 11,49
Ganhe 11 pontos
 
R$ 13,89
Ganhe 13 pontos
 
R$ 43,55
Ganhe 43 pontos
 
R$ 46,59
Ganhe 46 pontos
 
R$ 13,65
Ganhe 13 pontos
 
R$ 19,35
Ganhe 19 pontos
 
R$ 376,35
Ganhe 376 pontos
 
R$ 35,19
Ganhe 35 pontos
 
R$ 45,89
Ganhe 45 pontos
 
R$ 46,99
Ganhe 46 pontos
 
R$ 47,29
Ganhe 47 pontos
 
R$ 53,29
Ganhe 53 pontos
 
R$ 53,29
Ganhe 53 pontos
 
R$ 48,99
Ganhe 48 pontos
 
R$ 39,49
Ganhe 39 pontos
Carregando produtos...
Cadastre-se para receber nossas ofertas!