(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$ 104,65
Ganhe 104 pontos
 
R$ 171,65
Ganhe 171 pontos
CACHEPOT DECORATIVO MBK
Código: 37399
 
R$ 67,35
Ganhe 67 pontos
CASAL DECORATIVO MBK
Código: 37414
 
R$ 248,39
Ganhe 248 pontos
MAE E FILHA NA BIKE MBK
Código: 37416
 
R$ 210,05
Ganhe 210 pontos
% PROMOÇÃO
VASO DECORATIVO MBK
Código: 37384
De: R$ 125,05
Por: R$ 89,90
Ganhe 89 pontos
 
R$ 134,19
Ganhe 134 pontos
% PROMOÇÃO
VASO DECORATIVO RUSTICO MBK
De: R$ 178,25
Por: R$ 126,90
Ganhe 126 pontos
% PROMOÇÃO
VASO DECORATIVO RUSTICO MBK
De: R$ 108,25
Por: R$ 77,90
Ganhe 77 pontos
 
R$ 64,15
Ganhe 64 pontos
% PROMOÇÃO
CACHEPOT DECORATIVO RUSTICO MBK
De: R$ 96,19
Por: R$ 74,90
Ganhe 74 pontos
CONFEITO TCHUCO TCHUCO
Código: 37912
 
R$ 18,15
Ganhe 18 pontos
CONFEITO RALLY MANIA
Código: 37913
 
R$ 11,19
Ganhe 11 pontos
BRINQUEDO SOCOTIRO
Código: 37914
 
R$ 13,59
Ganhe 13 pontos
BRINQUEDO FORTAO MANIA
Código: 37915
 
R$ 14,05
Ganhe 14 pontos
 
R$ 11,85
Ganhe 11 pontos
CONFEITO BIG BOCA
Código: 37917
 
R$ 21,25
Ganhe 21 pontos
Carregando produtos...
Cadastre-se para receber nossas ofertas!