(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

Não foram encontrados produtos com os filtros aplicados

Remova ou ajuste os filtros para continuar
 
R$ 4,35
Ganhe 4 pontos
COLAR HAVAIANO COLORS 1UN
COLAR HAVAIANO COLORS 1UN
Código: 58232
 
R$ 3,55
Ganhe 3 pontos
 
R$ 3,55
Ganhe 3 pontos
 
R$ 3,55
Ganhe 3 pontos
PRENDEDOR DE MADEIRA 30X4MM C 30UN MD
PRENDEDOR DE MADEIRA 30X4MM C 30UN MD
Código: 58180
COROA PRINCESA ENCANTADA SORT UN
COROA PRINCESA ENCANTADA SORT UN
Código: 58214
MARABU TECIDO VERDE
Código: 40674
 
R$ 4,09
Ganhe 4 pontos
MARABU TECIDO AMARELO
Código: 40667
 
R$ 4,09
Ganhe 4 pontos
MARABU TECIDO LARANJA
Código: 40672
 
R$ 4,59
Ganhe 4 pontos
MARABU TECIDO LILAS
Código: 40673
 
R$ 4,09
Ganhe 4 pontos
 
R$ 18,50
Ganhe 18 pontos
 
R$ 18,49
Ganhe 18 pontos
 
R$ 21,49
Ganhe 21 pontos
 
R$ 21,49
Ganhe 21 pontos
POM POM 32CM COLORIDO 1UN
POM POM 32CM COLORIDO 1UN
Código: 58236
 
R$ 5,85
Ganhe 5 pontos
 
R$ 10,95
Ganhe 10 pontos
% PROMOÇÃO
BANDEJA CUP CAKE 20,5X25,4X3,3CM BRANCO
De: R$ 15,60
Por: R$ 5,99
Ganhe 5 pontos
% PROMOÇÃO
BANDEJA CUP CAKE 20,5X25,4X3,3CM VERDE
De: R$ 19,65
Por: R$ 5,99
Ganhe 5 pontos
 
R$ 5,39
Ganhe 5 pontos
% PROMOÇÃO
Bandeja núvem De Plástico Rosa 1 Unidade
De: R$ 15,60
Por: R$ 5,99
Ganhe 5 pontos
% PROMOÇÃO
BANDEJA BANANA 26,5X20X3,5CM BRANCO
De: R$ 16,59
Por: R$ 5,99
Ganhe 5 pontos
De: R$ 15,60
Por: R$ 5,99
Ganhe 5 pontos
Carregando produtos...
Cadastre-se para receber nossas ofertas!