💍

Portal Noivas Iluminatta

Preencha seus dados e a senha recebida

Data do seu casamento
Verifique os dados e tente novamente.
Iluminatta
Portal Exclusivo para Noivas

Bem-vinda ao seu
mundo de noiva

Tudo que você precisa, em um só lugar

Visualize sua Experiência
👑

Espelho Digital da Noiva

Experimente tiaras, coroas, pentes e brincos no seu cabelo

✨ Abrir Espelho Digital
Suas Consultoras Virtuais
Especialistas disponíveis 24h para você
💒

Cerimonialista Virtual

Roteiro, fornecedores, checklist e tudo sobre o grande dia

Planejamento ›
💰

Gestora de Orçamento

Distribua seu investimento de forma inteligente entre todos os itens

Financeiro ›
📍

Guia Local da Noiva

Salões, ateliês e lojas na sua cidade, me diga onde você está

Localização ›
🎁

Lista de Presentes

O que não pode faltar na sua nova casa, com sugestões de lojas

Casa Nova ›
👥

Lista de Convidados

Organize, equilibre e gerencie sua lista com inteligência e sem drama

Convidados ›
✈️

Consultora de Lua de Mel

Roteiros, destinos dos sonhos e dicas exclusivas de viagem

Viagens ›
💝

Melhor Amiga Virtual

Conselhos de relacionamento, vida a dois e maternidade com amor

Vida a Dois ›
Checklist da Noiva
Marque o que já foi resolvido
Progresso do Planejamento 0%
0 de 0 tarefas concluidas
: Este arquivo troca os botoes de planilha por arquivos Excel de verdade, com os valores em reais e os totais calculados pelo proprio arquivo. */ (function () { var baixarCSVOriginal = window.baixarResumoCSV; var downloadCSVOriginal = window.downloadCSV; var URL_XLSX = 'https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.18.5/xlsx.full.min.js'; // Garante a biblioteca de Excel: usa a que ja existe ou carrega na hora, e so depois baixa function comXLSX(fazer, plano_b) { if (typeof XLSX !== 'undefined') { fazer(); return; } var s = document.createElement('script'); s.src = URL_XLSX; s.onload = function () { if (typeof XLSX !== 'undefined') { fazer(); } else { plano_b(); } }; s.onerror = function () { plano_b(); }; document.head.appendChild(s); } try { console.log('Planilhas Excel ativas (v2)'); } catch (e) {} function numeroBR(s) { s = String(s).replace(/[^\d.,]/g, ''); if (s.indexOf(',') > -1) { s = s.replace(/\./g, '').replace(',', '.'); } else if (/^\d{1,3}(\.\d{3})+$/.test(s)) { s = s.replace(/\./g, ''); } var n = parseFloat(s); return isNaN(n) ? null : n; } function largura(ws, cols) { ws['!cols'] = cols.map(function (w) { return { wch: w }; }); } function salvar(wb, nome) { XLSX.writeFile(wb, nome); } // Linhas "Categoria: 35% (R$ 35.000)" da resposta da gestora function lerOrcamento(texto) { var itens = [], totais = []; String(texto).split('\n').forEach(function (linha) { var m = linha.match(/^[\s\-•*\d.)]*([^:\n]{3,60}?)\s*(?::|\s[-–]\s)\s*(\d+(?:[.,]\d+)?)\s*%/); if (!m) { return; } var nome = m[1].replace(/[*#]/g, '').trim(); if (/^total/i.test(nome)) { return; } var pct = numeroBR(m[2]); if (pct === null) { return; } itens.push([nome, pct]); var v = linha.match(/R\$\s*([\d.,]+)/); if (v) { var val = numeroBR(v[1]); if (val && pct > 0) { totais.push(val / pct * 100); } } }); var total = null; if (totais.length) { totais.sort(function (a, b) { return a - b; }); total = Math.round(totais[Math.floor(totais.length / 2)]); } return { itens: itens, total: total }; } window.downloadCSV = function (texto) { comXLSX(function () { gerarOrcamento(texto); }, function () { downloadCSVOriginal(texto); }); }; function gerarOrcamento(texto) { var d = lerOrcamento(texto); if (d.itens.length < 3) { return downloadCSVOriginal(texto); } var n = d.itens.length, ultimo = n + 1, linhaTotal = n + 2; var hasTotal = d.total !== null; var ws = {}; var fmtPct = '0.0%', fmtRS = '"R$" #,##0.00'; ws['A1'] = { t: 's', v: 'Categoria' }; ws['B1'] = { t: 's', v: 'Percentual' }; ws['C1'] = { t: 's', v: 'Valor (R$)' }; ws['E1'] = { t: 's', v: 'Orçamento total (R$)' }; ws['F1'] = hasTotal ? { t: 'n', v: d.total, z: fmtRS } : { t: 's', v: '' }; ws['E2'] = { t: 's', v: 'Altere o valor ao lado e a coluna Valor se atualiza sozinha.' }; var somaPct = 0, somaVal = 0; d.itens.forEach(function (it, i) { var r = i + 2, p = it[1] / 100; somaPct += p; ws['A' + r] = { t: 's', v: it[0] }; ws['B' + r] = { t: 'n', v: p, z: fmtPct }; var val = hasTotal ? p * d.total : ''; if (hasTotal) { somaVal += val; } ws['C' + r] = { t: hasTotal ? 'n' : 's', v: val, f: 'IF($F$1="","",B' + r + '*$F$1)', z: fmtRS }; }); ws['A' + linhaTotal] = { t: 's', v: 'TOTAL' }; ws['B' + linhaTotal] = { t: 'n', v: somaPct, f: 'SUM(B2:B' + ultimo + ')', z: fmtPct }; ws['C' + linhaTotal] = { t: hasTotal ? 'n' : 's', v: hasTotal ? somaVal : '', f: 'SUM(C2:C' + ultimo + ')', z: fmtRS }; ws['!ref'] = 'A1:F' + linhaTotal; largura(ws, [34, 12, 18, 3, 22, 18]); var wb = XLSX.utils.book_new(); XLSX.utils.book_append_sheet(wb, ws, 'Orcamento'); salvar(wb, 'orcamento-casamento.xlsx'); } // Resumos da Cerimonialista, Presentes e Convidados (linhas "a;b;c") window.baixarResumoCSV = function (nomeArquivo, cabecalho, textoIA) { comXLSX(function () { gerarLista(nomeArquivo, cabecalho, textoIA); }, function () { baixarCSVOriginal(nomeArquivo, cabecalho, textoIA); }); }; function gerarLista(nomeArquivo, cabecalho, textoIA) { var linhas = String(textoIA).split('\n') .map(function (l) { return l.replace(/[*#]/g, '').trim(); }) .filter(function (l) { return l.length > 0 && l.indexOf(';') > -1; }); if (!linhas.length) { alert('Ainda nao ha itens suficientes na conversa para montar essa lista.'); return; } var rows = [cabecalho]; linhas.forEach(function (l) { var p = l.split(';').map(function (x) { return x.trim().replace(/^"|"$/g, ''); }); while (p.length < cabecalho.length) { p.push(''); } if (p.length > cabecalho.length) { p = p.slice(0, cabecalho.length - 1).concat([p.slice(cabecalho.length - 1).join('; ')]); } if (p[0].toLowerCase() === cabecalho[0].toLowerCase()) { return; } rows.push(p); }); var ws = XLSX.utils.aoa_to_sheet(rows); var larg = cabecalho.map(function (c, i) { var m = c.length; rows.forEach(function (r) { if (String(r[i]).length > m) { m = String(r[i]).length; } }); return Math.min(m + 2, 60); }); largura(ws, larg); var wb = XLSX.utils.book_new(); XLSX.utils.book_append_sheet(wb, ws, 'Lista'); salvar(wb, String(nomeArquivo).replace(/\.csv$/i, '') + '.xlsx'); } })();