@@ -0,0 +1,39 @@
|
||||
# COUNTRY02 com HTTPS — candidata para autorização
|
||||
|
||||
Entrega **`13644ed74a48b69767ae3f0759a1adb430b7ba982169d2aaf409363429276709`**, código **`162daff6ce08117582dd7d796639d02b156d1b940cd85ef3587ff88a65747edd`**, compilação **`d172b5c4f1a1cb2df504b4acd50c687825b8cda970225a02a56e6286b3a13dd5`**. Fontes e produção recompiladas na cópia isolada. O manifesto de produção mantém os mesmos bytes porque a alteração adicional é PHP: resposta de logout. O hash dos inputs e o código mudaram, e a entrega inclui agora as propostas HTTPS e o certificado público correspondente. Versões anteriores preservadas.
|
||||
|
||||
## O que ficou demonstrado em QA
|
||||
|
||||
Chromium em **https://country02-qa.test:18443**, certificado reconhecido pelo Windows após confirmação manual do responsável, sem `ignoreHTTPSErrors`, sem SPKI bypass nem origem insegura marcada como segura. SAN apenas country02-qa.test. TLS1.3, `isSecureContext=true`, `crypto.subtle` disponível. A resolução do hostname usa apenas a regra DNS do Chromium de teste; não se alterou hosts ou DNS ativo.
|
||||
|
||||
Percurso: HTTP308 para HTTPS preservando caminho → login → MFA normal → prévia correspondente → confirmação → POST 050000 → resultado instalado → perfil privado → país PT guardado → F5 recupera → atualização MZ/versão3 → voltar/avançar com histórico cifrado → logout/API401 → voltar apresenta formulário de login sem dados privados → nova sessão/MFA recupera MZ e referência. Ao voltar depois de logout, o Inertia pode conservar `/investidor/profile` como destino enquanto apresenta login; não é uma sessão autenticada nem um ciclo. Foram conferidos **47 recursos** (46 de produção e favicon original), sem conteúdo misto nem erros JavaScript. A resposta401 é a recusa deliberada do teste de acesso após logout. Cookies: nome próprio QA, domínio só country02-qa.test, caminho /, Secure, SameSite=Lax e HttpOnly na sessão. SHA256 do ID real de sessão comprova regeneração no MFA e logout; valores de cookies e códigos não estão nos recibos.
|
||||
|
||||
**C110:** chave emitida pelo servidor, vinculada a gestor/alvo/migração/revisão, estável nos erros/repetições. Provas HTTP anteriores de erro409 e replay preservadas, sem necessidade de reexecutar A/B ou C37. **C111:** transporte HTTPS resolve a indisponibilidade de WebCrypto e mantém `Inertia::encryptHistory()`/`private,no-store`. **C112 encontrado neste ensaio:** antes da correção a API recusava acesso após logout, mas o histórico ainda recuperava o perfil. A resposta Fortify limpa o histórico depois de invalidar a sessão, conforme [Inertia](https://inertiajs.com/docs/v2/security/history-encryption). A correção está demonstrada pela interface e API. Nenhum middleware de cifragem foi desabilitado.
|
||||
|
||||
SQL READ ONLY no clone confirma uma instalação/auditoria, duas colunas opcionais, zero tabelas e duas alterações do país com snapshots cifrados recuperáveis null→PT→MZ. A organização, representação e conta utilizadas foram criadas explicitamente como fixtures QA depois da instalação, nunca por 050000 nem no ativo. Nenhum 030000/040000/190000. Valores originais preservados. Desabilitar/reabilitar COUNTRY02 na QA esconde o consumidor e recupera exatamente país, versão e proveniência, sem DDL ou perda.
|
||||
|
||||
Os ensaios incompletos ficam preservados privadamente. Uma falha do próprio ensaio (`APIRequestContext` sem a resolução DNS do Chromium) foi corrigida para usar o pedido do navegador. O diagnóstico que incluiu cabeçalhos foi sanitizado e a sessão QA invalidada. Um404 de favicon provinha da cópia QA sem esse ficheiro público; foi copiado o original sem alteração. Estes casos não foram ocultados como testes funcionais aprovados. Os critérios funcionais já demonstrados foram reutilizados na mesma base/revisão e somente as verificações afetadas foram repetidas.
|
||||
|
||||
## Backup/restauro correspondente
|
||||
|
||||
**2026-10-11T07:44:43+00:00**. Origem investemoz:5432 em READ ONLY, restauro country_candidate_20261011_074430_test:55441.288 tabelas/31 sequências/282 ficheiros, zero ausentes, comparados antes de fixtures, dois envelopes MFA originais recuperados com a chave estável. Fonte efetivamente ativa 36f7722ce5a5 e código preparado162daff6ce08 estão distinguidos.282 itens incluem ativos imutáveis conservados na reversão anterior;295tabelas era outro QA com sete tabelas de 030/040. Dumps e ficheiros privados permanecem privados. A validade operacional é **máximo 24h**, com revalidação imediatamente antes da instalação. [Prova sanitizada](backup-restauro.json).
|
||||
|
||||
## HTTPS equivalente para o ativo, preparado mas não instalado
|
||||
|
||||
URL **https://portal-investidor.test**. Preparados certificado e chave privados separados da QA: SAN portal-investidor.test, folha válida até **2027-01-09T07:49:24+00:00**, root `7D30D7FB226481B6243051309818CF426AF6B6B7`. A chave corresponde ao certificado, está fora do ZIP e limitada ao utilizador atual/SYSTEM/Administradores. A CA de assinatura não foi persistida. A confiança dessa CA ativa ainda NÃO foi instalada. A distribuição de confiança aplica-se às máquinas que usam este hostname local; não se presume uma certificação pública ou acesso externo. Se for escolhido outro hostname/emissor, selar uma nova proposta antes de aplicar.
|
||||
|
||||
[Vhost proposto](portal-investidor.test-https.proposta.conf), [valores públicos propostos](ambiente-https.proposta.txt), [certificado público](certificado-ativo-proposto.json), [plano estruturado](plano-https-ativo.json). `httpd -t` aprovou a proposta usando uma cópia privada da configuração atual e os caminhos privados preparados. Nenhum ficheiro do Apache, .env, cache, bundle ou dado ativo foi alterado. A prova de sintaxe não substitui a prova TLS do endereço ativo depois da autorização.
|
||||
|
||||
## Âmbito exato para autorização e sequência
|
||||
|
||||
1. Autorizar esta entrega/código e HTTPS com o certificado/configuração identificados. Revalidar hashes ativos, validade do backup, cadeia/SAN/validade/permissões da chave e parâmetros do alvo. Discrepância interrompe antes da aplicação.
|
||||
2. Disponibilizar três fontes corrigidas e 157 ativos de produção com COUNTRY02=false: controlador/chave, formulário sem UUID do navegador e resposta Fortify de limpeza do histórico. Preservar fontes/manifesto/ativos anteriores.
|
||||
3. Copiar somente o certificado e chave preparados para o diretório de TLS previsto. Confirmar manualmente a confiança no Windows das máquinas autorizadas, configurar o vhost SSL e os valores APP_URL/cookieSecure/host-only/path/SameSite. Preservar APP_KEY, base, guard e demais flags. Validar Apache e recarregar. HTTP GET/HEAD 308 conserva caminho/consulta; HTTP POST não aceita credenciais. HSTS diferido para manter reversão possível.
|
||||
4. HTTPS válido/contexto seguro/sem conteúdo misto na origem ativa antes do login. Gestor real já autorizado, email verificado e MFA normal. GET **https://portal-investidor.test/management/opportunity-resources-install/organization-country**. Conferir investemoz5432, código162daff6ce08, hash da prévia, dependências e efeito de somente 050000. Não instalar 030/040/190.
|
||||
5. POST na mesma URL com confirmação, motivo e chave emitida pelo servidor; manter corpo/chave nas repetições. Conferir uma migration/recibo e apenas duas colunas nullable, zero tabelas/contas/org/representações. Habilitar somente COUNTRY02 e verificar perfil, gravação autorizada, recuperação, histórico e logout. Ativo sem organização/vínculo mostra vazio controlado; a gravação real depende de cadastro/representação legítimos pelo fluxo autorizado. Não inventar entidades ou titulares para o ensaio.
|
||||
|
||||
Reversão: desabilitar COUNTRY02 primeiro; manter colunas/valores/proveniência/ledger/auditoria. Restaurar fontes e manifesto anterior por troca atómica, preservando ativos. Preferir contenção com HTTPS mantido e flag=false. Reversão completa de HTTPS repõe os ficheiros Apache/.env/cache específicos guardados, valida/recarrega e muda o namespace do cookie; essa reversão também retira a entrega HTTPS e reabre C111 para páginas privadas, não pode ser declarada funcional em HTTP. Restauro de dados só pelo backup correspondente e ação autorizada própria. Não fazer down/drop, key:generate ou desativar MFA.
|
||||
|
||||
## Exclusões e estado
|
||||
|
||||
Código preparado eQA demonstrada. **Nada ativado.** C110/C111/C112 fechados neste âmbito QA; a autorização anterior c68/36 não foi transferida silenciosamente. A/B e C37 continuam encerrados nos seus âmbitos. Não inclui perfis, cartografia, percurso 190000, ofertas, SLA, outros cadastros ou as 25 chamadas UUID do [backlog por consumidor](uuid-backlog.md). Estas permanecem abertas, com prioridade para simulador público/autoguardar/calcular e 040000 ao confirmar; os restantes ramos dependem de módulos/flags ainda indisponíveis no ativo.
|
||||
@@ -0,0 +1,9 @@
|
||||
# Apenas estes valores públicos propostos. Preservar DB, APP_KEY e restantes flags.
|
||||
APP_URL=https://portal-investidor.test
|
||||
SESSION_COOKIE=portal_investidor_https
|
||||
SESSION_SECURE_COOKIE=true
|
||||
SESSION_DOMAIN=null
|
||||
SESSION_PATH=/
|
||||
SESSION_SAME_SITE=lax
|
||||
# Só habilitar depois de 050000, auditoria e prova funcional correspondentes:
|
||||
PORTAL_ORGANIZATION_COUNTRY_ENABLED=false
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"result": "passed",
|
||||
"tool": "Apache httpd -t",
|
||||
"proposed_vhost_sha256": "ae8345cae15d202f2b390f786658de6ad60779bebdb71cdf269cd9331f27450c",
|
||||
"actual_apache_config_unchanged": true,
|
||||
"test": "current module/include configuration copied privately with proposed vhosts; private prepared certificate paths substituted; syntax only, no server reload or active trust change",
|
||||
"diagnostic": "Syntax OK",
|
||||
"active_changes": 0
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"verified_at": "2026-10-11T07:44:43+00:00",
|
||||
"source_code_hash": "36f7722ce5a51abc6a246116afcab22ebc8167fa3d06e493920ad18c7afbfca8",
|
||||
"code_hash": "162daff6ce08117582dd7d796639d02b156d1b940cd85ef3587ff88a65747edd",
|
||||
"target": {
|
||||
"database": "investemoz",
|
||||
"port": 5432,
|
||||
"read_only": "on"
|
||||
},
|
||||
"restored_target": {
|
||||
"database": "country_candidate_20261011_074430_test",
|
||||
"port": 55441
|
||||
},
|
||||
"dump_sha256": "143106c07568b90982fff9de82c402bb58e336ceef11321143ccceed1e1d0593",
|
||||
"files_sha256": "a887769633c9c0ea5c6a1b58ef3f37b124acefa0067e5287b5b44a5dabbb84e1",
|
||||
"restore_verified": true,
|
||||
"files_verified": true,
|
||||
"sequences_verified": true,
|
||||
"compatibility_verified": true,
|
||||
"reversal_verified": true,
|
||||
"original_mfa_envelopes_recovered": 2,
|
||||
"file_count": 282,
|
||||
"production_manifest_sha256": "d172b5c4f1a1cb2df504b4acd50c687825b8cda970225a02a56e6286b3a13dd5",
|
||||
"tables": 288,
|
||||
"sequences": 31,
|
||||
"missing_files": 0,
|
||||
"all_row_sequence_file_comparisons_before_fixtures": true,
|
||||
"original_business_rows_preserved": true,
|
||||
"active_writes": 0
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"prepared_not_installed": true,
|
||||
"prepared_not_trusted": true,
|
||||
"SAN": [
|
||||
"portal-investidor.test"
|
||||
],
|
||||
"issuer": "CN=InvestMoz portal-investidor.test local 20261011",
|
||||
"root_thumbprint": "7D30D7FB226481B6243051309818CF426AF6B6B7",
|
||||
"root_sha256": "e32863af4a400dc21b513a24598b31425f74d31119116aaf913de95c0ddc9ef3",
|
||||
"leaf_sha256": "df368329204106b6a182c79e7e5c98a8e73890479cb7bca7c3d0928076a60ed5",
|
||||
"leaf_valid_until": "2027-01-09T07:49:24+00:00",
|
||||
"root_valid_until": "2027-10-11T07:49:24+00:00",
|
||||
"private_key_public_key_matches": true,
|
||||
"private_key_kept_out_of_bundle": true,
|
||||
"signing_key_not_persisted": true,
|
||||
"deployment_private_directory": "C:/Users/macbook/.config/investmoz/tls",
|
||||
"active_trust_store_changed": false,
|
||||
"qa_ca_not_reused": true,
|
||||
"renewal": "Before leaf expiry prepare new certificate and trust chain, review/retest before replacement. If using an organization CA instead, seal another configuration hash before applying."
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"base": "https://country02-qa.test:18443",
|
||||
"ca_thumbprint": "0C98A85ADB50CE86BC2CA19FE1ED3085920EAA0F",
|
||||
"ca_sha256": "0c660e4c656df40772ad81b419973805d6b841698b7b8cc45512c35a3a2a3c19",
|
||||
"leaf_sha256": "87a25050ad3c5cd8b03b59aec6ce649d3758ea3d91d80ead8eda96d73407c6ed",
|
||||
"san": [
|
||||
"country02-qa.test"
|
||||
],
|
||||
"valid_until": "2026-10-12T07:32:10+00:00",
|
||||
"ca_valid_until": "2026-10-13T07:32:10+00:00",
|
||||
"trust_store": "CurrentUser/Root only",
|
||||
"user_confirmed_windows_trust": true,
|
||||
"chromium_accepted_without_bypass": true,
|
||||
"tls": "TLS 1.3",
|
||||
"temporary_server_stopped_after_tests": true,
|
||||
"ca_signing_key_not_persisted": true,
|
||||
"active_certificate_trust_changed": false
|
||||
}
|
||||
BIN
Binary file not shown.
+40
@@ -0,0 +1,40 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIDQTCCAimgAwIBAgIUDhir4HpHXSgLMfHtgcRXFqhU9SYwDQYJKoZIhvcNAQEL
|
||||
BQAwOjE4MDYGA1UEAwwvSW52ZXN0TW96IHBvcnRhbC1pbnZlc3RpZG9yLnRlc3Qg
|
||||
bG9jYWwgMjAyNjEwMTEwHhcNMjYxMDExMDc0NDI0WhcNMjcwMTA5MDc0OTI0WjAh
|
||||
MR8wHQYDVQQDDBZwb3J0YWwtaW52ZXN0aWRvci50ZXN0MIIBIjANBgkqhkiG9w0B
|
||||
AQEFAAOCAQ8AMIIBCgKCAQEAlegfZ1Gw3wzkC7u7MXwW7zSYXxSb0m2673Uewa3r
|
||||
O9T90RIFxHbjbBohjmYJJLUKcGsvS0fCFI4IqzPkk80rF7NM20JQwoRybb4RAh4t
|
||||
OjSIQ87g2nJTFMN55SOee4ygp59qK6fxMeo50TIazXTLNRKcnad5sFrdKh0m7BrZ
|
||||
0h530RlXqlmCITXRaspzGIqDf/QZeEZGJECfX371rBMgKS3qKyBbWaqdM6FRJlJn
|
||||
NK8lJFp3+Pu+ONHdifFN020PZPASwIWvn8/ZMNkWmu721xPmmyQsgHsmJx+5PAsZ
|
||||
O8swoJDuOXIvZmWPOIP4bOZhjCGQgvWdJ1ZKgOSnTSzAlQIDAQABo1gwVjAMBgNV
|
||||
HRMBAf8EAjAAMCEGA1UdEQQaMBiCFnBvcnRhbC1pbnZlc3RpZG9yLnRlc3QwEwYD
|
||||
VR0lBAwwCgYIKwYBBQUHAwEwDgYDVR0PAQH/BAQDAgWgMA0GCSqGSIb3DQEBCwUA
|
||||
A4IBAQAS5+IM8TGHVQUp/43UfYx26W7s+QZ9cC3KKfLK+Ve6XVY/k8rusmVmycBI
|
||||
dzMHaWlch6RIqHpvf9ft920A9TBFjo68ZCM1Ys7BxXPWxt7ninPgwimiheEtyRBm
|
||||
lQvG8omDQxRlgxj1yrr1uGaEiJmsndHo6MfJPQX5L0TCWW1faNk1GYNSZMm569LQ
|
||||
4K48YR5zF59a4pn+5ruG+fTfukHIkfgst6s4M5TdCj2RGztbtDDrAMcGXhJxRZ37
|
||||
zxwX6acsypxZ/mNhFDuvNUQw8q1NFf2Ymp9tRy8CpBjwQJEP7FKR9aYKxuztTzkp
|
||||
B4Q58m4+Kr9gqdaJi2iOFjooJEER
|
||||
-----END CERTIFICATE-----
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIDUjCCAjqgAwIBAgIUQrKshZMdeE8TrTTZ94RrranuEVkwDQYJKoZIhvcNAQEL
|
||||
BQAwOjE4MDYGA1UEAwwvSW52ZXN0TW96IHBvcnRhbC1pbnZlc3RpZG9yLnRlc3Qg
|
||||
bG9jYWwgMjAyNjEwMTEwHhcNMjYxMDExMDc0NDI0WhcNMjcxMDExMDc0OTI0WjA6
|
||||
MTgwNgYDVQQDDC9JbnZlc3RNb3ogcG9ydGFsLWludmVzdGlkb3IudGVzdCBsb2Nh
|
||||
bCAyMDI2MTAxMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALIVbUOf
|
||||
QXjawCp+9tsur06OQkaFxfChdHWESdXOzE9z4L2JUjntn28UQ46M+JmNqsKF+8ov
|
||||
xXJGCQg4T4tb5WKk5vD9XnmwSPRq+FrIzolZ02NrCpCTEp/tNrGAry0m7Xx72HpS
|
||||
lU0OhxqMok0MhNMhM5hPyf6JQzPlUKFhk2J2TgCMdLyatMYsvsgTKRC29qdKbkct
|
||||
4K2+X+xZUbaxpAD54/R91u6QJpeOh091VGbvwJYH5dQ80uMsy7nZaIxLb7qNr0A6
|
||||
YJ7FJebmS95+JDU1IwGHTcPOky5uQ8j+0kPrw+GiStCyofotpS6pTrFar1W1UvFT
|
||||
DdxK5YxQ2mpM/N0CAwEAAaNQME4wEgYDVR0TAQH/BAgwBgEB/wIBADAOBgNVHQ8B
|
||||
Af8EBAMCAQYwKAYDVR0eAQH/BB4wHKAaMBiCFnBvcnRhbC1pbnZlc3RpZG9yLnRl
|
||||
c3QwDQYJKoZIhvcNAQELBQADggEBAKNi4mGb47LnMsma3jf7ZjOsASO7IXjryl+b
|
||||
yi1RPTwt+BOcpsKS8ohhRu6SWGqpnS8E3N6yNKb7vCL8QYIkVU0URzxsh+TGFDXE
|
||||
o4edVbWF6WhbZr0eJcS+mwOdynwSzTMhaopnJaASBWtIM5KHggjJ8zAQG1sFN7Eh
|
||||
wQ4BUKhVSgw4z00Ez+FtctMMeXbu4PoY04oT2enprI5Jk5FX9bmJIYIoBGeq+CU3
|
||||
wLY8IUqPps0MRi/SY8Ad8vma30UXc5QldKYWqU0iLKwevpcUJ2QQPB104B2EUtjj
|
||||
BZ1bVL41fVJqqzsgKyzFFo/3D/jOqsJsmGp83XlUbaKDo/9XiCU=
|
||||
-----END CERTIFICATE-----
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,112 @@
|
||||
--- a/app/Providers/AppServiceProvider.php
|
||||
+++ b/app/Providers/AppServiceProvider.php
|
||||
@@ -42,6 +42,20 @@
|
||||
public function boot(): void
|
||||
{
|
||||
$this->configureDefaults();
|
||||
+
|
||||
+ // Fortify calls this response AFTER invalidating/regenerating the server session.
|
||||
+ // Clear the client's encryption key too, so Back must reauthorize private pages.
|
||||
+ $this->app->bind(\Laravel\Fortify\Contracts\LogoutResponse::class, function () {
|
||||
+ return new class extends \Laravel\Fortify\Http\Responses\LogoutResponse
|
||||
+ {
|
||||
+ public function toResponse($request)
|
||||
+ {
|
||||
+ \Inertia\Inertia::clearHistory();
|
||||
+
|
||||
+ return parent::toResponse($request);
|
||||
+ }
|
||||
+ };
|
||||
+ });
|
||||
|
||||
Event::listen(ValidTwoFactorAuthenticationCodeProvided::class, function ($event): void {
|
||||
// The authenticated installers also operate before the optional profile schema exists.
|
||||
--- a/app/Http/Controllers/OpportunityResourceController.php
|
||||
+++ b/app/Http/Controllers/OpportunityResourceController.php
|
||||
@@ -17,6 +17,7 @@
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\URL;
|
||||
+use Illuminate\Support\Str;
|
||||
use Inertia\Inertia;
|
||||
use Inertia\Response;
|
||||
use Symfony\Component\HttpFoundation\BinaryFileResponse;
|
||||
@@ -41,16 +42,35 @@
|
||||
|
||||
public function organizationCountryPreview(Request $request, OrganizationCountryInstallation $service): JsonResponse|Response
|
||||
{
|
||||
- $plan = [...$service->preview($request->user()), 'actionUrl' => '/management/opportunity-resources-install/organization-country', 'extension' => true];
|
||||
+ $plan = $service->preview($request->user());
|
||||
+ $scope = $this->countryOperationScope($request, $plan);
|
||||
+ $operation = $request->session()->get('portal.country_installation_operation');
|
||||
+ if (! is_array($operation) || ($operation['scope'] ?? null) !== $scope) {
|
||||
+ $operation = ['scope' => $scope, 'key' => (string) Str::uuid()];
|
||||
+ $request->session()->put('portal.country_installation_operation', $operation);
|
||||
+ }
|
||||
+ $plan = [...$plan, 'operationKey' => $operation['key'], 'actionUrl' => '/management/opportunity-resources-install/organization-country', 'extension' => true];
|
||||
|
||||
return $request->expectsJson() ? response()->json($plan) : Inertia::render('management/opportunity-install', $plan);
|
||||
}
|
||||
|
||||
public function organizationCountryApply(Request $request, OrganizationCountryInstallation $service): JsonResponse|RedirectResponse
|
||||
{
|
||||
+ // Preview authorizes the actor; the UUID remains stable until this scope changes or logout.
|
||||
+ $plan = $service->preview($request->user());
|
||||
+ $operation = $request->session()->get('portal.country_installation_operation');
|
||||
+ $data = $request->validate(['idempotency_key' => 'required|uuid']);
|
||||
+ abort_unless(is_array($operation) && ($operation['scope'] ?? null) === $this->countryOperationScope($request, $plan)
|
||||
+ && hash_equals($operation['key'], $data['idempotency_key']), 409, 'A operação não corresponde a esta prévia. Atualize a página antes de tentar novamente.');
|
||||
$result = $service->apply($request->user(), $request->all());
|
||||
|
||||
return $request->expectsJson() ? response()->json($result) : back()->with('success', 'País mestre instalado; nenhuma submissão anterior alterada.');
|
||||
+ }
|
||||
+
|
||||
+ /** @param array<string, mixed> $plan */
|
||||
+ private function countryOperationScope(Request $request, array $plan): string
|
||||
+ {
|
||||
+ return hash('sha256', json_encode([$request->user()->getAuthIdentifier(), $plan['target'], $plan['migration'], $plan['code_hash']], JSON_THROW_ON_ERROR));
|
||||
}
|
||||
|
||||
public function index(int $id, OpportunityResources $service): Response
|
||||
--- a/resources/js/pages/management/opportunity-install.tsx
|
||||
+++ b/resources/js/pages/management/opportunity-install.tsx
|
||||
@@ -12,6 +12,7 @@
|
||||
actionUrl = '/management/opportunity-management-install',
|
||||
imageProcessingAvailable,
|
||||
extension = false,
|
||||
+ operationKey,
|
||||
}: {
|
||||
installed: boolean;
|
||||
ready: boolean;
|
||||
@@ -24,11 +25,12 @@
|
||||
actionUrl?: string;
|
||||
imageProcessingAvailable?: boolean;
|
||||
extension?: boolean;
|
||||
+ operationKey?: string;
|
||||
}) {
|
||||
const form = useForm({
|
||||
hash,
|
||||
confirm: false,
|
||||
- idempotency_key: crypto.randomUUID(),
|
||||
+ idempotency_key: operationKey ?? '',
|
||||
reason: '',
|
||||
});
|
||||
return (
|
||||
@@ -113,6 +115,7 @@
|
||||
installed ||
|
||||
!ready ||
|
||||
!form.data.confirm ||
|
||||
+ (extension && !operationKey) ||
|
||||
form.processing
|
||||
}
|
||||
>
|
||||
@@ -120,6 +123,9 @@
|
||||
? 'Aplicar extensão do país'
|
||||
: 'Aplicar plano de gestão'}
|
||||
</button>
|
||||
+ {extension && !operationKey && (
|
||||
+ <p role="alert">Atualize a prévia para obter a chave desta operação.</p>
|
||||
+ )}
|
||||
{!ready && (
|
||||
<p>
|
||||
Aplicação indisponível até comprovar QA,
|
||||
+251
@@ -0,0 +1,251 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\Opportunity;
|
||||
use App\Services\CountryCatalogue;
|
||||
use App\Services\InvestmentGeography;
|
||||
use App\Services\OpportunityImageProcessor;
|
||||
use App\Services\OpportunityManagement;
|
||||
use App\Services\OpportunityResourceInstallation;
|
||||
use App\Services\OpportunityResources;
|
||||
use App\Services\OrganizationCountryInstallation;
|
||||
use App\Services\PortalProfileAccess;
|
||||
use App\Services\VerifiedDocumentBinary;
|
||||
use Illuminate\Http\JsonResponse;
|
||||
use Illuminate\Http\RedirectResponse;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\URL;
|
||||
use Illuminate\Support\Str;
|
||||
use Inertia\Inertia;
|
||||
use Inertia\Response;
|
||||
use Symfony\Component\HttpFoundation\BinaryFileResponse;
|
||||
|
||||
class OpportunityResourceController extends Controller
|
||||
{
|
||||
public function installation(Request $request, OpportunityResourceInstallation $service): JsonResponse|Response
|
||||
{
|
||||
$preview = [...$service->preview(), 'imageProcessingAvailable' => app(OpportunityImageProcessor::class)->available(), 'actionUrl' => '/management/opportunity-resources-install'];
|
||||
$preview['changes'] = [...$preview['changes'], 'Código reconciliado: catálogo ISO comum; residência e constituição distintas; origem declarada guardada no payload existente e estatísticas internas autorizadas. Não converte países históricos nem usa IP.', 'Seletores territoriais reutilizados com pesquisa; filtros contextuais do catálogo e fichas territoriais consultáveis no percurso do mapa. Zero geometrias não permite desenhar estruturas sem dados.', 'Não reinstala a gestão básica nem acrescenta associações territoriais. Revisão transversal, cadastro completo em todos os campos e percursos educativos continuam parciais; consultar a matriz por módulo.'];
|
||||
|
||||
return $request->expectsJson() ? response()->json($preview) : Inertia::render('management/opportunity-install', $preview);
|
||||
}
|
||||
|
||||
public function applyInstallation(Request $request, OpportunityResourceInstallation $service): RedirectResponse
|
||||
{
|
||||
$data = $request->validate(['hash' => 'required|string|size:64', 'confirm' => 'required|accepted']);
|
||||
$service->apply($request->user(), $data['hash']);
|
||||
|
||||
return back()->with('success', 'Recursos instalados; nenhum ficheiro publicado ou oportunidade submetida.');
|
||||
}
|
||||
|
||||
public function organizationCountryPreview(Request $request, OrganizationCountryInstallation $service): JsonResponse|Response
|
||||
{
|
||||
$plan = $service->preview($request->user());
|
||||
$scope = $this->countryOperationScope($request, $plan);
|
||||
$operation = $request->session()->get('portal.country_installation_operation');
|
||||
if (! is_array($operation) || ($operation['scope'] ?? null) !== $scope) {
|
||||
$operation = ['scope' => $scope, 'key' => (string) Str::uuid()];
|
||||
$request->session()->put('portal.country_installation_operation', $operation);
|
||||
}
|
||||
$plan = [...$plan, 'operationKey' => $operation['key'], 'actionUrl' => '/management/opportunity-resources-install/organization-country', 'extension' => true];
|
||||
|
||||
return $request->expectsJson() ? response()->json($plan) : Inertia::render('management/opportunity-install', $plan);
|
||||
}
|
||||
|
||||
public function organizationCountryApply(Request $request, OrganizationCountryInstallation $service): JsonResponse|RedirectResponse
|
||||
{
|
||||
// Preview authorizes the actor; the UUID remains stable until this scope changes or logout.
|
||||
$plan = $service->preview($request->user());
|
||||
$operation = $request->session()->get('portal.country_installation_operation');
|
||||
$data = $request->validate(['idempotency_key' => 'required|uuid']);
|
||||
abort_unless(is_array($operation) && ($operation['scope'] ?? null) === $this->countryOperationScope($request, $plan)
|
||||
&& hash_equals($operation['key'], $data['idempotency_key']), 409, 'A operação não corresponde a esta prévia. Atualize a página antes de tentar novamente.');
|
||||
$result = $service->apply($request->user(), $request->all());
|
||||
|
||||
return $request->expectsJson() ? response()->json($result) : back()->with('success', 'País mestre instalado; nenhuma submissão anterior alterada.');
|
||||
}
|
||||
|
||||
/** @param array<string, mixed> $plan */
|
||||
private function countryOperationScope(Request $request, array $plan): string
|
||||
{
|
||||
return hash('sha256', json_encode([$request->user()->getAuthIdentifier(), $plan['target'], $plan['migration'], $plan['code_hash']], JSON_THROW_ON_ERROR));
|
||||
}
|
||||
|
||||
public function index(int $id, OpportunityResources $service): Response
|
||||
{
|
||||
$opportunity = Opportunity::withTrashed()->findOrFail($id);
|
||||
app(PortalProfileAccess::class)->authorize(request()->user(), 'view', $opportunity);
|
||||
Inertia::share(['basePath' => str_starts_with(request()->path(), 'minhas-oportunidades') ? '/minhas-oportunidades' : '/management/opportunities', 'readOnly' => ! app(PortalProfileAccess::class)->canEdit(request()->user(), $opportunity)]);
|
||||
abort_unless($service->installed(), 503, 'Recursos ainda não instalados; consulte o plano autenticado.');
|
||||
$resources = [];
|
||||
Inertia::share('imageProcessingAvailable', app(OpportunityImageProcessor::class)->available());
|
||||
Inertia::share('countries', app(CountryCatalogue::class)->all());
|
||||
foreach (OpportunityResources::KINDS as $kind) {
|
||||
$resources[$kind] = $service->listing($id, $kind);
|
||||
}
|
||||
foreach ($resources['locations'] as $location) {
|
||||
$p = $location->payload;
|
||||
$location->territoryPath = app(InvestmentGeography::class)->path($p['locality_id'] ?? $p['admin_post_id'] ?? $p['district_id'] ?? $p['province_id'] ?? null, true);
|
||||
}
|
||||
foreach ($resources['images'] as $image) {
|
||||
$image->derivativePreviews = [];
|
||||
foreach ($image->payload['derivatives'] ?? [] as $derived) {
|
||||
if (DB::table('documents')->where('id', $derived['document_id'])->where('status', 'active')->where('malware_scan_status', 'clean')->whereColumn('sha256', 'malware_scanned_sha256')->exists()) {
|
||||
$image->derivativePreviews[] = [...$derived, 'url' => URL::temporarySignedRoute(str_starts_with(request()->path(), 'minhas-oportunidades') ? 'promoter.opportunity-image-preview' : 'management.opportunity-image-preview', now()->addMinutes(10), ['id' => $id, 'resourceId' => $image->id, 'documentId' => $derived['document_id']])];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return Inertia::render('management/opportunity-resources', ['opportunity' => $opportunity, 'etag' => app(OpportunityManagement::class)->etag($opportunity), 'resources' => $resources, 'existingLocations' => DB::table('opportunity_locations as l')->join('geo_locations as g', 'g.id', '=', 'l.geo_location_id')->where('opportunity_id', $id)->get(['g.id', 'g.name', 'g.location_type']), 'assessment' => $this->assessment($resources)]);
|
||||
}
|
||||
|
||||
public function save(Request $request, int $id, string $kind, OpportunityResources $service, ?string $resourceId = null): JsonResponse
|
||||
{
|
||||
$input = $request->all();
|
||||
if (is_string($input['payload'] ?? null)) {
|
||||
$input['payload'] = json_decode($input['payload'], true);
|
||||
}
|
||||
$record = $service->save($request->user(), $id, $kind, $input, $request->file('file'), $resourceId);
|
||||
|
||||
return response()->json(['id' => $record->id, 'message' => 'Recurso guardado no servidor. Não publicado; validação final e scan são independentes.', 'etag' => app(OpportunityManagement::class)->etag(Opportunity::findOrFail($id))], $resourceId ? 200 : 201);
|
||||
}
|
||||
|
||||
public function lifecycle(Request $request, int $id, string $kind, string $resourceId, OpportunityResources $service): JsonResponse
|
||||
{
|
||||
$service->lifecycle($request->user(), $id, $kind, $resourceId, $request->all());
|
||||
|
||||
return response()->json(['message' => 'Exclusão lógica/restauração registada; original e versões preservados.']);
|
||||
}
|
||||
|
||||
public function prepareImage(Request $request, int $id, string $resourceId, OpportunityImageProcessor $service): JsonResponse
|
||||
{
|
||||
$service->prepare($request->user(), $id, $resourceId, $request->all());
|
||||
|
||||
return response()->json(['message' => 'Derivadas WebP geradas sem EXIF original; scan independente e revisão de divulgação pendentes.']);
|
||||
}
|
||||
|
||||
public function previewImage(int $id, string $resourceId, string $documentId): \Illuminate\Http\Response|BinaryFileResponse
|
||||
{
|
||||
$o = Opportunity::findOrFail($id);
|
||||
abort_if($o->status === 'archived', 404);
|
||||
$image = DB::table('opportunity_images')->where('opportunity_id', $id)->where('id', $resourceId)->whereNull('deleted_at')->first();
|
||||
abort_unless($image !== null, 404);
|
||||
$metadata = json_decode($image->payload, true);
|
||||
abort_unless(in_array($documentId, array_column($metadata['derivatives'] ?? [], 'document_id'), true), 404);
|
||||
$doc = DB::table('documents')->where('id', $documentId)->whereNull('deleted_at')->first();
|
||||
abort_unless($doc && $doc->status === 'active' && $doc->malware_scan_status === 'clean' && hash_equals(trim($doc->sha256), (string) $doc->malware_scanned_sha256), 423, 'Scan da derivada pendente.');
|
||||
|
||||
return app(VerifiedDocumentBinary::class)->respond($doc, true);
|
||||
}
|
||||
|
||||
public function download(int $id, string $kind, string $resourceId, OpportunityResources $service): \Illuminate\Http\Response|BinaryFileResponse
|
||||
{
|
||||
abort_unless(in_array($kind, ['documents', 'images'], true), 404);
|
||||
$opportunity = Opportunity::findOrFail($id);
|
||||
abort_if($opportunity->status === 'archived', 404);
|
||||
$record = DB::table($service->table($kind).' as r')->join('documents as d', 'd.id', '=', 'r.document_id')->where('r.id', $resourceId)->where('r.opportunity_id', $id)->whereNull('r.deleted_at')->whereNull('d.deleted_at')->first(['d.*']);
|
||||
abort_unless($record !== null, 404, 'Recurso indisponível ou excluído logicamente.');
|
||||
abort_unless($record->status === 'active' && $record->malware_scan_status === 'clean' && hash_equals(trim($record->sha256), (string) $record->malware_scanned_sha256), 423, 'Scan pendente, inconclusivo ou inseguro. O ficheiro permanece em quarentena.');
|
||||
|
||||
return app(VerifiedDocumentBinary::class)->respond($record);
|
||||
}
|
||||
|
||||
/** @param array<string,list<\stdClass>> $resources
|
||||
* @return list<string>
|
||||
*/
|
||||
private function assessment(array $resources): array
|
||||
{
|
||||
$issues = [];
|
||||
$locations = array_values(array_filter($resources['locations'], fn ($r) => ! $r->deleted_at));
|
||||
if (count($locations) < 1) {
|
||||
$issues[] = 'Localização operacional ainda não preparada; ligações históricas não são convertidas automaticamente.';
|
||||
}
|
||||
if (count(array_filter($locations, fn ($r) => $r->payload['is_primary'] ?? false)) !== 1) {
|
||||
$issues[] = 'Escolha exatamente uma localização principal.';
|
||||
}
|
||||
$allocated = array_filter($locations, fn ($r) => isset($r->payload['allocation_percentage']));
|
||||
if ($allocated && (count($allocated) !== count($locations) || abs(array_sum(array_map(fn ($r) => (float) $r->payload['allocation_percentage'], $allocated)) - 100) > 0.01)) {
|
||||
$issues[] = 'A distribuição deve abranger todas as localizações e somar 100% (tolerância 0,01).';
|
||||
}
|
||||
$provinces = [];
|
||||
$districts = [];
|
||||
foreach ($locations as $location) {
|
||||
$p = $location->payload;
|
||||
$mozambican = empty($p['country_code']) || $p['country_code'] === 'MZ';
|
||||
if ($mozambican && (empty($p['province_id']) || empty($p['district_id']))) {
|
||||
$issues[] = 'Uma localização em Moçambique tem província ou distrito pendente.';
|
||||
}
|
||||
if (! $mozambican && array_filter(array_intersect_key($p, array_flip(['province_id', 'district_id', 'admin_post_id', 'locality_id'])))) {
|
||||
$issues[] = 'Uma localização noutro país conserva uma seleção territorial de Moçambique incompatível; corrigir explicitamente sem converter o histórico.';
|
||||
}
|
||||
if (empty($p['role'])) {
|
||||
$issues[] = 'Uma localização tem papel pendente.';
|
||||
}
|
||||
if ($mozambican && ! empty($p['district_id'])) {
|
||||
$districts[$p['district_id']] = true;
|
||||
}
|
||||
if ($mozambican && ! empty($p['province_id'])) {
|
||||
$provinces[$p['province_id']] = true;
|
||||
}
|
||||
if (($p['role'] ?? null) === 'other' && empty($p['role_description'])) {
|
||||
$issues[] = 'Papel outro exige descrição.';
|
||||
}
|
||||
if (empty($p['source_reference'])) {
|
||||
$issues[] = 'Localização com rastreabilidade por recuperar; aceitação oficial anterior preservada.';
|
||||
}
|
||||
if (! empty($p['geometry'])) {
|
||||
$issues[] = 'Compatibilidade espacial depende de limite oficial correspondente; geometria não confirma disponibilidade.';
|
||||
}
|
||||
if (isset($p['area_value']) !== isset($p['area_unit'])) {
|
||||
$issues[] = 'Área exige valor e unidade juntos.';
|
||||
}
|
||||
}
|
||||
if (count($districts) > 1 && ! array_filter($locations, fn ($r) => mb_strlen($r->payload['multi_district_rationale'] ?? '') >= 50)) {
|
||||
$issues[] = 'Multidistrito/interprovincial exige fundamento operacional de 50–1000 caracteres.';
|
||||
}
|
||||
if ($locations) {
|
||||
$issues[] = 'Modo preparado: '.(count($locations) > 1 ? 'multiple' : 'single').'; âmbito administrativo moçambicano derivado: '.(count($provinces) > 1 ? 'interprovincial' : (count($districts) > 1 ? 'multi_district' : ($districts ? 'district' : 'sem seleção moçambicana'))).'. Sem conversão de contexto em implantação.';
|
||||
}
|
||||
foreach (['images', 'documents'] as $kind) {
|
||||
foreach ($resources[$kind] as $r) {
|
||||
if ($r->deleted_at) {
|
||||
continue;
|
||||
}
|
||||
if ($r->file->malware_scan_status !== 'clean') {
|
||||
$issues[] = 'Anexo '.$r->file->file_name.': scan '.$r->file->malware_scan_status.'; não é evidência de segurança.';
|
||||
}
|
||||
$required = $kind === 'images' ? ['title', 'caption', 'alt_text', 'author_source', 'rights_status'] : ['category', 'issuer', 'edition', 'classification'];
|
||||
foreach ($required as $field) {
|
||||
if (empty($r->payload[$field])) {
|
||||
$issues[] = 'Anexo '.$r->file->file_name.': '.$field.' pendente.';
|
||||
}
|
||||
}
|
||||
if ($kind === 'images') {
|
||||
if (empty($r->payload['derivatives'])) {
|
||||
$issues[] = 'Imagem '.$r->file->file_name.': derivadas sem EXIF ainda por preparar (GD/WebP e scan necessários).';
|
||||
}
|
||||
$issues[] = 'Imagem '.$r->file->file_name.': revisão de dados pessoais/direitos e aprovação de divulgação ainda pendentes.';
|
||||
foreach (['title' => 5, 'caption' => 10, 'alt_text' => 10, 'author_source' => 2] as $field => $minimum) {
|
||||
if (mb_strlen($r->payload[$field] ?? '') < $minimum) {
|
||||
$issues[] = 'Imagem '.$r->file->file_name.': '.$field.' abaixo do mínimo para validação final.';
|
||||
}
|
||||
}
|
||||
if (($r->payload['role'] ?? null) === 'location' && empty($r->payload['location_id'])) {
|
||||
$issues[] = 'Imagem de localização exige ligação a um local ativo da mesma oportunidade.';
|
||||
}
|
||||
if (in_array($r->payload['role'] ?? null, ['asset', 'product', 'evidence'], true)) {
|
||||
$issues[] = 'Imagem de ativo/produto/evidência: módulo e associação específica ainda pendentes.';
|
||||
}
|
||||
if (in_array($r->payload['rights_status'] ?? null, ['licensed', 'authorized'], true) && empty($r->payload['rights_document_id'])) {
|
||||
$issues[] = 'Imagem licenciada/autorizada exige comprovativo.';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
$issues[] = 'Esta conferência não submete nem publica; workflow final, revisão humana e derivados seguros permanecem separados.';
|
||||
|
||||
return array_values(array_unique($issues));
|
||||
}
|
||||
}
|
||||
+147
@@ -0,0 +1,147 @@
|
||||
<?php
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Models\Opportunity;
|
||||
use App\Models\Sector;
|
||||
use App\Models\User;
|
||||
use App\Services\Malware\ClamDScanner;
|
||||
use App\Services\Malware\MalwareScanner;
|
||||
use App\Services\Mne\BusinessRepository;
|
||||
use App\Services\Mne\CompatibleBusinessRepository;
|
||||
use App\Services\PortalProfileAccess;
|
||||
use Carbon\CarbonImmutable;
|
||||
use Illuminate\Auth\Events\Login;
|
||||
use Illuminate\Cache\RateLimiting\Limit;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use Illuminate\Support\Facades\Date;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Event;
|
||||
use Illuminate\Support\Facades\Gate;
|
||||
use Illuminate\Support\Facades\RateLimiter;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Illuminate\Validation\Rules\Password;
|
||||
use Laravel\Fortify\Events\ValidTwoFactorAuthenticationCodeProvided;
|
||||
|
||||
class AppServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* Register any application services.
|
||||
*/
|
||||
public function register(): void
|
||||
{
|
||||
$this->app->bind(MalwareScanner::class, ClamDScanner::class);
|
||||
|
||||
$this->app->bind(BusinessRepository::class, CompatibleBusinessRepository::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Bootstrap any application services.
|
||||
*/
|
||||
public function boot(): void
|
||||
{
|
||||
$this->configureDefaults();
|
||||
|
||||
// Fortify calls this response AFTER invalidating/regenerating the server session.
|
||||
// Clear the client's encryption key too, so Back must reauthorize private pages.
|
||||
$this->app->bind(\Laravel\Fortify\Contracts\LogoutResponse::class, function () {
|
||||
return new class extends \Laravel\Fortify\Http\Responses\LogoutResponse
|
||||
{
|
||||
public function toResponse($request)
|
||||
{
|
||||
\Inertia\Inertia::clearHistory();
|
||||
|
||||
return parent::toResponse($request);
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
Event::listen(ValidTwoFactorAuthenticationCodeProvided::class, function ($event): void {
|
||||
// The authenticated installers also operate before the optional profile schema exists.
|
||||
// Record a completed Fortify challenge, never enrollment or a password-only login.
|
||||
session()->put(['portal.mfa_actor' => $event->user->id, 'portal.mfa_at' => time()]);
|
||||
});
|
||||
Event::listen(Login::class, function ($event): void {
|
||||
if (app(PortalProfileAccess::class)->available()) {
|
||||
session()->put('portal.access_revision', (int) DB::table('users')->where('id', $event->user->id)->value('portal_access_revision'));
|
||||
}
|
||||
});
|
||||
|
||||
Gate::define('manage-portal', fn (User $user) => $user->hasVerifiedEmail()
|
||||
&& in_array(strtolower($user->email), config('portal.managers', []), true));
|
||||
|
||||
foreach ([Sector::class, Opportunity::class] as $model) {
|
||||
$invalidate = function () {
|
||||
Cache::forget('portal_home_pt');
|
||||
Cache::forget('portal_home_en');
|
||||
Cache::forget('portal_home_v2_pt');
|
||||
Cache::forget('portal_home_v2_en');
|
||||
};
|
||||
$model::saved($invalidate);
|
||||
$model::deleted($invalidate);
|
||||
}
|
||||
|
||||
$requestLimitKey = static function (Request $request): string {
|
||||
if ($user = $request->user()) {
|
||||
return 'user:'.$user->getAuthIdentifier();
|
||||
}
|
||||
|
||||
$token = $request->header('X-Simulation-Token');
|
||||
|
||||
return is_string($token) && $token !== ''
|
||||
? 'anonymous:'.hash('sha256', $token)
|
||||
: 'ip:'.$request->ip();
|
||||
};
|
||||
|
||||
RateLimiter::for('api', function (Request $request) use ($requestLimitKey) {
|
||||
return Limit::perMinute(60)->by($requestLimitKey($request))
|
||||
->response(fn (Request $request, array $headers) => response()->json([
|
||||
'message' => 'Demasiadas solicitações. Aguarde um pouco e tente novamente.',
|
||||
], 429, $headers));
|
||||
});
|
||||
|
||||
RateLimiter::for('simulation-draft-writes', function (Request $request) use ($requestLimitKey) {
|
||||
return Limit::perMinute(30)->by('simulation-draft:'.$requestLimitKey($request))
|
||||
->response(fn (Request $request, array $headers) => response()->json([
|
||||
'message' => 'Foram guardadas demasiadas alterações em pouco tempo. Aguarde um minuto e tente novamente.',
|
||||
], 429, $headers));
|
||||
});
|
||||
|
||||
RateLimiter::for('simulation-calculations', function (Request $request) use ($requestLimitKey) {
|
||||
return Limit::perMinute(10)->by('simulation-calculation:'.$requestLimitKey($request))
|
||||
->response(fn (Request $request, array $headers) => response()->json([
|
||||
'message' => 'Foram solicitados demasiados cálculos em pouco tempo. Aguarde antes de tentar novamente.',
|
||||
], 429, $headers));
|
||||
});
|
||||
|
||||
RateLimiter::for('simulation-scenario-updates', function (Request $request) use ($requestLimitKey) {
|
||||
return Limit::perMinute(10)->by('simulation-scenario-update:'.$requestLimitKey($request))
|
||||
->response(fn (Request $request, array $headers) => response()->json([
|
||||
'message' => 'Foram solicitadas demasiadas alterações de cenário em pouco tempo. Aguarde antes de tentar novamente.',
|
||||
], 429, $headers));
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Configure default behaviors for production-ready applications.
|
||||
*/
|
||||
protected function configureDefaults(): void
|
||||
{
|
||||
Date::use(CarbonImmutable::class);
|
||||
|
||||
DB::prohibitDestructiveCommands(
|
||||
app()->isProduction(),
|
||||
);
|
||||
|
||||
Password::defaults(fn (): ?Password => app()->isProduction()
|
||||
? Password::min(12)
|
||||
->mixedCase()
|
||||
->letters()
|
||||
->numbers()
|
||||
->symbols()
|
||||
->uncompromised()
|
||||
: null,
|
||||
);
|
||||
}
|
||||
}
|
||||
+144
@@ -0,0 +1,144 @@
|
||||
import { useForm } from '@inertiajs/react';
|
||||
import { Management, button } from './shared';
|
||||
export default function Install({
|
||||
installed,
|
||||
ready,
|
||||
target,
|
||||
hash,
|
||||
changes,
|
||||
migration,
|
||||
backupDate,
|
||||
rollback,
|
||||
actionUrl = '/management/opportunity-management-install',
|
||||
imageProcessingAvailable,
|
||||
extension = false,
|
||||
operationKey,
|
||||
}: {
|
||||
installed: boolean;
|
||||
ready: boolean;
|
||||
target: { database: string; port: number };
|
||||
hash: string;
|
||||
changes: string[];
|
||||
migration: string;
|
||||
backupDate: string | null;
|
||||
rollback: string;
|
||||
actionUrl?: string;
|
||||
imageProcessingAvailable?: boolean;
|
||||
extension?: boolean;
|
||||
operationKey?: string;
|
||||
}) {
|
||||
const form = useForm({
|
||||
hash,
|
||||
confirm: false,
|
||||
idempotency_key: operationKey ?? '',
|
||||
reason: '',
|
||||
});
|
||||
return (
|
||||
<Management
|
||||
title={
|
||||
migration.endsWith('extend_organization_country')
|
||||
? 'Instalação do país de constituição'
|
||||
: 'Ativação da Gestão de Oportunidades'
|
||||
}
|
||||
>
|
||||
<p>
|
||||
Base: {target.database}:{target.port} ·{' '}
|
||||
{installed ? 'Instalado' : 'Ainda não aplicado'}
|
||||
</p>
|
||||
<ul>
|
||||
{changes.map((c) => (
|
||||
<li key={c}>{c}</li>
|
||||
))}
|
||||
</ul>
|
||||
<p>Migração: {migration}</p>
|
||||
{imageProcessingAvailable !== undefined && (
|
||||
<section
|
||||
className="rounded border border-amber-500 p-3"
|
||||
aria-label="Limitações dos anexos"
|
||||
>
|
||||
<p>
|
||||
{imageProcessingAvailable
|
||||
? 'GD/WebP disponível neste servidor; o processamento continua a exigir scan concluído do original.'
|
||||
: 'GD/WebP indisponível neste servidor: guardar imagens é possível; gerar miniaturas permanece pendente.'}
|
||||
</p>
|
||||
<p>
|
||||
Instalar recursos não confirma scans. Documentos e
|
||||
imagens com scan pendente ficam sem download ou
|
||||
pré-visualização; preparação de rascunhos e localizações
|
||||
continua disponível. ClamD real mantém uma pendência
|
||||
separada.
|
||||
</p>
|
||||
</section>
|
||||
)}
|
||||
<p>Backup/restauro: {backupDate ?? 'Prova ainda por preparar'}</p>
|
||||
<p>{rollback}</p>
|
||||
<p>
|
||||
Este plano ativa apenas as alterações acima; workflow completo e
|
||||
lacunas restantes permanecem no backlog.
|
||||
</p>
|
||||
<form
|
||||
onSubmit={(e) => {
|
||||
e.preventDefault();
|
||||
form.post(actionUrl);
|
||||
}}
|
||||
>
|
||||
<label>
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={form.data.confirm}
|
||||
onChange={(e) =>
|
||||
form.setData('confirm', e.target.checked)
|
||||
}
|
||||
/>{' '}
|
||||
Confirmo a aplicação deste plano
|
||||
</label>
|
||||
{extension && (
|
||||
<div>
|
||||
<label htmlFor="installation-reason" className="block">
|
||||
Fundamentação da instalação
|
||||
</label>
|
||||
<textarea
|
||||
id="installation-reason"
|
||||
value={form.data.reason}
|
||||
minLength={20}
|
||||
maxLength={1000}
|
||||
required
|
||||
onChange={(event) =>
|
||||
form.setData('reason', event.target.value)
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
<button
|
||||
className={button}
|
||||
disabled={
|
||||
installed ||
|
||||
!ready ||
|
||||
!form.data.confirm ||
|
||||
(extension && !operationKey) ||
|
||||
form.processing
|
||||
}
|
||||
>
|
||||
{migration.endsWith('extend_organization_country')
|
||||
? 'Aplicar extensão do país'
|
||||
: 'Aplicar plano de gestão'}
|
||||
</button>
|
||||
{extension && !operationKey && (
|
||||
<p role="alert">Atualize a prévia para obter a chave desta operação.</p>
|
||||
)}
|
||||
{!ready && (
|
||||
<p>
|
||||
Aplicação indisponível até comprovar QA,
|
||||
backup/restauro, compatibilidade e reversão da versão
|
||||
atual.
|
||||
</p>
|
||||
)}
|
||||
{Object.values(form.errors).map((e) => (
|
||||
<p role="alert" key={e}>
|
||||
{e}
|
||||
</p>
|
||||
))}
|
||||
</form>
|
||||
</Management>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"active_vhost": {
|
||||
"path": "C:\\laragon\\etc\\apache2\\sites-enabled\\auto.portal-investidor.test.conf",
|
||||
"sha256": "21e0635f8153e68c4abc623ef934ed5959870db99160515f9ef926c4ab9f7361"
|
||||
},
|
||||
"apache_config": {
|
||||
"path": "C:\\laragon\\bin\\apache\\httpd-2.4.54-win64-VS16\\conf\\httpd.conf",
|
||||
"sha256": "985954a801d6e49e56f81a6d81a8894716d1221c1b311d42e67eb8840f8bf68d"
|
||||
},
|
||||
"ssl_include": {
|
||||
"path": "C:\\laragon\\etc\\apache2\\httpd-ssl.conf",
|
||||
"sha256": "0b282b4c1b3842542e8e8f0aad533b7dc6985973c1be5a44706c2ba73e1bd233"
|
||||
},
|
||||
"active_manifest_sha256": "75352185c2a85c34ab726613db864a598e301a5b342ebbc80ac8e678eed17a94"
|
||||
}
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,209 @@
|
||||
{
|
||||
"archive": "country02-https-13644ed74a48-revisao.zip",
|
||||
"archive_sha256": "5107e54e34fcb2d2f22dcbcf23b69b97691e7aa8c5a94451369962a0611e26f0",
|
||||
"archive_entries": 200,
|
||||
"manifesto_candidata_sha256": "bef44972b3a1212de34d17ea14cb261cccbff4d7ba55627a83f2629f2cf736f9",
|
||||
"verified_members_sha256": {
|
||||
"codigo/app/Services/OrganizationCountry.php": "cdced1699c1fb33db8d3001b801134c3e9ad954b71b045b04426370f90e14ad3",
|
||||
"codigo/app/Services/OrganizationCountryInstallation.php": "fe7ab6843cb16c89e794ee23439bd322b55dede71c8ba15adc0e56f51ca8afe5",
|
||||
"codigo/app/Providers/AppServiceProvider.php": "e66f6d88d2da9e039b783f0a03603c22e140de2c09379b380277f5e2ee0e0f01",
|
||||
"codigo/app/Services/CountryCatalogue.php": "625aa4bf2d93cfc471fb547de19a4bd08b9e5e01bf165a18b1076507ff2946d9",
|
||||
"codigo/app/Services/PortalProfileAccess.php": "0c3a1fa59ee4f5b0b36fe1709678c2742129d45250cec0760a64938bebd0e4b2",
|
||||
"codigo/app/Services/PortalProfileInstallation.php": "45dd037998402e21ea3e0be0361e79d3daca40b8413d9a952cbe49e7b6937a8b",
|
||||
"codigo/app/Http/Controllers/InvestmentWorkspaceController.php": "6f7ec5bb0af3eb4ba72c4f3442f20ca6310ff4cf997264c365c65fa0db16eefc",
|
||||
"codigo/app/Http/Controllers/InvestmentSubmissionController.php": "c4b309a8ff79f870a519379e41d6ec23387da0b903510d5ce99cfd48a00e921e",
|
||||
"codigo/app/Http/Controllers/OpportunityResourceController.php": "dec2b5ef5c34760d8c09224ec1c9029d4c07c241f56d36199c2bde4418673b0e",
|
||||
"codigo/app/Models/User.php": "63f950a46c8dae576f1f8ddb236d3b7176f4f7c9b18b7736de9b26d4ba0aeb76",
|
||||
"codigo/config/portal.php": "5bb04324ca9003b51fc736bdb06551ac0c62076302eb5b4ec5623be979525776",
|
||||
"codigo/routes/web.php": "57a71bf72aae10edf6d69f5802c29bf28312165748497b791db4259ea5ae95eb",
|
||||
"codigo/routes/investment.php": "e5f3717da92548c2138792643e58c09281613742fad669cd8f095b231e31d049",
|
||||
"codigo/database/migrations/2026_10_10_050000_extend_organization_country.php": "1f4556f9c38c4b3aa85e34281ba3fc4113a61eab0f1d64193711a67e7ab18d30",
|
||||
"codigo/resources/js/components/country-select.tsx": "6392f1054c36f87c10503201b04f93ed88f9c19fbf8d1b4155c761be0f8e3e3d",
|
||||
"codigo/resources/js/pages/investment/profile.tsx": "d73f99da40a2d43cf24009dd12e11849ccbea8f9703ba97a89518fafb64e19e1",
|
||||
"codigo/resources/js/pages/investment/submission.tsx": "563c48a71f80d6bda040ac0ac2a6a1610f8519cf15cd57d83b901618818c91a8",
|
||||
"codigo/resources/js/pages/management/opportunity-install.tsx": "fdbf0b9ff2015c3ba67e5a6ad9b7204fcc8b694640faa3fbeb93b88e078a5275",
|
||||
"codigo/resources/data/iso3166.tab": "837c80785080c8433fd9d4ea87e78f161ac7a40389301c5153d4f90198baeb2a",
|
||||
"codigo/config/portal_profiles.php": "93758b42db760c966fade64a78c0d69d5168e371a2d6d88a8806f911e8b80c2a",
|
||||
"codigo/composer.json": "e4ce398e6299fe562a5e8467900e630dcd9e82f5be56d79246b02b8fddfd027c",
|
||||
"codigo/composer.lock": "af90565c70188372ea1744c65bceb1d71c0400c6a028cda610fea0730b81b296",
|
||||
"tests/Feature/CountryHistoryLogoutTest.php": "c504955b02ce88e39ecfc80fd58f5ee24c1ce955f71ddcaed0cf378c13f3a875",
|
||||
"tests/Feature/OrganizationCountryInstallationTest.php": "71f8c413658e4ea5ff78cb3bdf0e103c3b6841c6a4e175d2a6de55654563e6e3",
|
||||
"public/build/fonts-manifest.json": "66edf17c93351fe01158be7414a441a762f106417c74351881876b405b8b10ca",
|
||||
"public/build/manifest.json": "d172b5c4f1a1cb2df504b4acd50c687825b8cda970225a02a56e6286b3a13dd5",
|
||||
"public/build/assets/administration-CrinBzST.js": "a6b8e8dc4350fc34eed7557f2c6f94242ae9ec74eed59bddcda7c5d4138b71b9",
|
||||
"public/build/assets/ai-DbTWu8x-.js": "97a5d750e83f5ec14eafad901ca70433caa0c848d4890c8be91a1cc0a876f642",
|
||||
"public/build/assets/analysis-CGtvlVPv.js": "33fc5c76f155ba76e407b7d57a06dea1ebc813a19888f820bf4f4e02204d62eb",
|
||||
"public/build/assets/app-CwvCF_VN.css": "823e4af60ee2f6f5f2fec18410e0a3bdca43ea2061dc9389c6c62431251e0d6c",
|
||||
"public/build/assets/app-Dy6Qob7g.js": "4dd9c87a483445c77c769fb0ef0d2e717fd758da6ad3b13f8c93fb37fc44fb2e",
|
||||
"public/build/assets/appearance-CRQtc9Rn.js": "f7b15653740dbf1f29bfa56eb5e45bf75390b436325b10b716c50ab670822fcb",
|
||||
"public/build/assets/audit-CXBNpXQr.js": "6db0d7bdffb8524c97e0f444723e9ee449339bd7e8c4eedf6d9b3f78d8e7b952",
|
||||
"public/build/assets/blank-2jFZEe2q.js": "9e53a0a455027f070e3041db1f445e8b63702f83e264442d8df87e20048ccbe9",
|
||||
"public/build/assets/business-DJCjMjUZ.js": "fdd375c4e7da370f71812bd7b465944e74496d54530eed85a22a7f700af351fb",
|
||||
"public/build/assets/business-interest-BoPUehs7.js": "5c2bd71077abb7995028dafc0d5497e9c18ee87e22919c3aa2f5f2e059872b79",
|
||||
"public/build/assets/business-marketplace-BeSbvZDh.js": "ee3718fecb61c79624f5459b6dca156da1b50700e84e43fa745e45427102bf8a",
|
||||
"public/build/assets/business-objects-qqL4qY3O.js": "f2686c243901eb9b7f37a6a2724de34ea3828e94c5d34433affc12429974d65c",
|
||||
"public/build/assets/business-opportunity-B0kFY3tB.js": "f48d4797259227f53f955198060a89175fb3587650deba77c0b9c09e4bd41f32",
|
||||
"public/build/assets/business-types-SGCXhH6X.js": "c792ab88a79f57c74d865c47e89e7f2b9aea190acb5c8c676071d4b0a802d58c",
|
||||
"public/build/assets/business-verifications-KTbZw2WP.js": "e43f95228f8b8b6a3d9c530dc1aaf92f8a8db46318db30c622f91aba97e13e99",
|
||||
"public/build/assets/business-wizard-BYl07zB8.js": "ddc5064c7625a08e9c594e03dded81570c24c54b2a944dd9434eac2baf6f8e24",
|
||||
"public/build/assets/businesses-C_WSFmlw.js": "0598e343548b63ac31151cfbdd781d2c66bcad0a934e5c3c57bf4514952c4310",
|
||||
"public/build/assets/button-DAU4R6e9.js": "79b615d0b88db74491fb4b312ae70515d43332e8730f8baed64c81eec510171d",
|
||||
"public/build/assets/case-CIScUI-F.js": "a9b9ab1265e334198e1f577e043510a1f9f8bc31c97fd0405041fbb23ca2e185",
|
||||
"public/build/assets/case-C_6EtMSR.js": "f188b84e0bbed5aa9e832ac88cb69bdce77223a23e435baa77248dd4f83bee97",
|
||||
"public/build/assets/catalog-7rOyJVK7.js": "3bf0efe3aeec03d75adbbcbd9104a8c60d1b081217900f50064a9bdab0a422d0",
|
||||
"public/build/assets/catalogue-BNNMnhfZ.js": "fa3f0b6ab47220c2209f48c13f222c86f8041f4333140e163240ee1765a66651",
|
||||
"public/build/assets/catalogue-DRXpd3Dj.js": "be63e7ca18fbbca3a20b7209cf676c1b8a06a21639cd86a1d482098d14f9ca8a",
|
||||
"public/build/assets/catalogue-K2vc4QuQ.js": "3dfbf7386db38c9b1b65efa7756da8416adc3f533f5b0d6238a7da9d3a21d98a",
|
||||
"public/build/assets/check-PcBNn_NG.js": "402150a0f6387f9f098fea689a3282723ee063c84e57651f25d35729cdd85063",
|
||||
"public/build/assets/compiler-runtime-sKsOXjDo.js": "cc5f3db4bfb3bc5ae09b4594e5e137ad20037e8dfc3f0791781665706b860b6d",
|
||||
"public/build/assets/confirm-Culw9Q-x.js": "263fd058f1562c5729a4091d5d60f5365cc3957ad2cfcb5ffdec04a28f1858c4",
|
||||
"public/build/assets/confirm-password-BtrdI_oo.js": "2a5f55cfe4aeeaa9c0a201222d20a30d230457252f1ea18006df476ae640cf9e",
|
||||
"public/build/assets/context-D8li9PVn.js": "0e39e933e64f7852bccc60e838d7ffed16d985ed86237481ac2e3b287deca897",
|
||||
"public/build/assets/conversation-Di5cUOfl.js": "e33592e2d634947903d8665c36a5cbff2b63d47d05524c500d730a64a957b47b",
|
||||
"public/build/assets/convert-D-F7VK7q.js": "4cf3ce35ed551ebe5274fe81ee511d4cd2a4726babb2e4b56a6158ed2b67f993",
|
||||
"public/build/assets/country-select-C3BLoPPG.js": "87822f75957659509b95011d1489f6bed2ff824c215fce862a7fd29186f5189f",
|
||||
"public/build/assets/createLucideIcon-oMeAlXbs.js": "9398e5f9d8be91b886b9f6283574d6eb89b8fa02a4c21866ab9e376c95b74b56",
|
||||
"public/build/assets/dashboard-apnWhGex.js": "53c4367927027cac028977d55d7d799644fd9183a1c13c7b3d6061ec4b31ecc0",
|
||||
"public/build/assets/dashboard-YzbH4Gy9.js": "6f3741527178e4351b0d867231cc4778de7b3c4d345a77dc3faab1665ba3601c",
|
||||
"public/build/assets/desk-internal-operations-XCBJl-bp.js": "09cb2228f94d3f4e174cd811c02484d60dbf7eae6bf358bebb7c48b9418bb41c",
|
||||
"public/build/assets/detail-C5059AnB.js": "2dfa39db19d5b4cfd85cf6def6ee84b3b2c2c43ec7a0b3be79e5b31a772fda34",
|
||||
"public/build/assets/detail-CVnsVFCI.js": "bae7a557656b8a9f84c3c673bd0373ceff9476ecd6d496de6df3a72ff35571c1",
|
||||
"public/build/assets/dialog-Chp4h9as.js": "93722b39d562b998a5da2d221bcdf33b0c66b5b09b1bd0c6893b734c8043d9ca",
|
||||
"public/build/assets/display-value-DRR1EAAK.js": "202c77561454ec7c1ef9cb39faa4f1833ea066dbb83e17f0eb4440b314b189f6",
|
||||
"public/build/assets/dist-BRfsww6z.js": "1b5218b53553fd01fd50cb0ce2102864c5359d450d4d71f00806f812f1e1870a",
|
||||
"public/build/assets/dist-Ddn_hEUd.js": "ee0c56af5abd78d01704f2fb0f764ea0746908244078a8014393a672994235d6",
|
||||
"public/build/assets/dist-DDq_DSJX.js": "0ea9c4863c02cabf343ba678aa470b682ef3ae1588380bee5b0781d356e9ba46",
|
||||
"public/build/assets/document-O3c2jVZc.js": "6355a5f8d9958484af0c0c1dd00c9fb82b9c0903bf3d6c69be10ec14e383a640",
|
||||
"public/build/assets/editor-CMBretSB.js": "2a48debfbdc8621a73b0857e717d68f8261cee75bd49300c591d680fa4e387ab",
|
||||
"public/build/assets/editor-DatExn5p.js": "0a722b7616870b0287e11a854d7f1846ea515f53543dc3e94c46e73cc4585930",
|
||||
"public/build/assets/editor-Va_8cD_k.js": "79e52dcccf6dac334d851d3f131d1c1e2047044e9651c7c547fba42f7e6b0555",
|
||||
"public/build/assets/education-BhDAUnDr.js": "857294c58fc8f8d5c01ffc6aeacbc31dc5f093d33bf994ee4376d8acfe89a655",
|
||||
"public/build/assets/financial-calculators-CsDOUJxx.js": "e76679a1914b5c4dc6c3e74b1b2de8d3d792fcc891dcc61d0fa27042232e2b9a",
|
||||
"public/build/assets/fonts-C9MNnjVw.css": "3846a9bb60bfad92960eadcccaf0b4e129d74b11d48791506c8d1a827a385cc8",
|
||||
"public/build/assets/forgot-password-BAqv8994.js": "2df6b78651cadc159d61fb7acdcd5faa3a52ee4f6fe81e312badf3fb1bbdd566",
|
||||
"public/build/assets/form-CLHE2jh1.js": "a42f062b5ae4b9fbc432c62bb79a22c4d87bc6019b692d22837ecee6ea3ed3b8",
|
||||
"public/build/assets/guide-mndEuKFT.js": "fe519ab69363e83bb705b7dee5ab3fe17249eeb53687846b539668c435ccbd2b",
|
||||
"public/build/assets/history-25qLyT2P.js": "842b4eaedf971000138eb47f030624cc3cba1a23e6fe300384b74aa9f6ed18a3",
|
||||
"public/build/assets/input-error-U1QKS0ED.js": "4acac92fa624552b14ac1a390e961f9e387d6eefeac384ad4e95bc73fdffa86e",
|
||||
"public/build/assets/install-AKyUJXr6.js": "6180b6c686fd09e95e7746e85611bfb17373207e87e3253d6ac45090ecf6c6cd",
|
||||
"public/build/assets/installation-BFiSJPeI.js": "fba72efb8afcd9c09f34f5d68544e2b7cef58c62f11a4173c5e2349a2012b1e8",
|
||||
"public/build/assets/installation-g7aX5nyr.js": "fb2c637406f711f444afefc7796dae9cdf0132932de1fdaa062776cea41f6e8f",
|
||||
"public/build/assets/instrument-sans-400-normal-D1W7dsQl.woff": "797bd3eaa70edbd4757650ab44dad75fbfbfdf18bacedb4b71022c04621d30ad",
|
||||
"public/build/assets/instrument-sans-400-normal-DRC__1Mx.woff2": "9a91efaa3599a6ef01b2f49e9ec670e3a2f39baeef09c73198f1052cf3bb0850",
|
||||
"public/build/assets/instrument-sans-500-normal-Dk9ku72i.woff2": "9d3547da16d950d12a677c772a3ff9b69846e60e7dcd1b5efd540993f7286532",
|
||||
"public/build/assets/instrument-sans-500-normal-Z6ESRlEs.woff": "bd6a8dc8b0dc0cced0c32d3eda93f0e0e82c58ddefea8b53b3307b0c48da3089",
|
||||
"public/build/assets/instrument-sans-600-normal-B7fBEWYG.woff2": "efb770916eda95a0e31d80cccde9651d4e8617010b21220e9f227c4820d675da",
|
||||
"public/build/assets/instrument-sans-600-normal-B9e8oLYv.woff": "9b4ce1f2b26be7cb087fd87d6f99a202136292ec820af75bd38ab9e53895cf28",
|
||||
"public/build/assets/interactive-investment-map-1DTFk8zz.css": "13748a8189dc8c690fc902a1682d30ba289721688f32df4f2459a36de8e383de",
|
||||
"public/build/assets/interactive-investment-map-Djtmo_8_.js": "5cc9d8b8a7f5106a1d6e22e17e5f85bb2544e7f191070b14d8cd3e3e7139f1a8",
|
||||
"public/build/assets/interest-sdfEsqyj.js": "db88aa88b1bfa950d61202a61b1394949681f2124bd958774b770a65d89bb687",
|
||||
"public/build/assets/interests-N23cqTbY.js": "41983bb45b2c404f7a15dc6584a60c9bce82cf362331b23dd72ab3c6d4c909c8",
|
||||
"public/build/assets/investment-map-panel-6I-VuTMF.js": "393d7ec86557580bc2a27daa437638e577d7fbfa66766875a5a5599097eabd77",
|
||||
"public/build/assets/investment-maturity-CydhhEfV.js": "c2cc75070cb664ab0b53466dde584dd5473f1b5fd992bf6a59ca8a01b7e19623",
|
||||
"public/build/assets/investment-territory-DI3rfWDv.js": "8aaf639eab192019adbf83eb49960081d8f7070bed70fdf787c378a8d49ef93f",
|
||||
"public/build/assets/investor-CstGa9ay.js": "d732f0d923d2e50898fce66180067f0156a393489eff1a092158cdb0ef7f80f4",
|
||||
"public/build/assets/investor-path-Dj8Xbbmk.js": "d9176f24adf6a20a6e90765d3d044d3118513be807d51c98af9fc9f307b026ca",
|
||||
"public/build/assets/investors-DH00nYc_.js": "ef343c6e79982adc0b30cf11f7cfb3353e75e5daef39ea02550a0f7add4d5894",
|
||||
"public/build/assets/jsx-runtime-BpzPEenQ.js": "60a64ced602d5e913f2a0328d2ec4a7b670c893614a26c47794317523d276398",
|
||||
"public/build/assets/label-D-C_NQs4.js": "6b4996b6f05276fd6edc8dd935f37f83a6c673cad5cf2f9dfa7cf4bdc92816ef",
|
||||
"public/build/assets/labels-DxqjesIG.js": "deace12e77e3f2e0515b1090cbc376cfeff29b59f57b1a2561b1145459c531b8",
|
||||
"public/build/assets/layers-2x-Bpkbi35X.png": "066daca850d8ffbef007af00b06eac0015728dee279c51f3cb6c716df7c42edf",
|
||||
"public/build/assets/layers-BWBAp2CZ.png": "1dbbe9d028e292f36fcba8f8b3a28d5e8932754fc2215b9ac69e4cdecf5107c6",
|
||||
"public/build/assets/lead-BaofHQoW.js": "64351c5acbed1f635f05e427a810e1f799023844e7957c34f060fada957895e5",
|
||||
"public/build/assets/leads-CmVoJ-Mf.js": "d194c111e75f5688afb194e6d9bbf474ed6102878dea0d142ed44e53b870e7de",
|
||||
"public/build/assets/leaflet-src-CUWrUTR2.js": "a26eda55b9706e8778766e4d32038202d20411081d7da16faaa39b977af36245",
|
||||
"public/build/assets/legacy-CX8Pcqkj.js": "977cb3622e6ab01bf0a83421e8ce7e998b98755e18cef18e83db6238b3e29f33",
|
||||
"public/build/assets/loader-circle-DS8Tf4er.js": "cd9fb22e9d7d12342d5e0941aac953ebb5184550cc8008b5c0f8f5ea6acd8ed2",
|
||||
"public/build/assets/login-DnVl_e_J.js": "e2b8cc27bed22779f46c41096a113e8d721670d1fbadd73b2701e0c64e15843a",
|
||||
"public/build/assets/manage-DUxrSf7P.js": "2c98f15330a0bbeb727c7f8f554c535aedf040a538e5db8c41d3adec7f02110c",
|
||||
"public/build/assets/management-access-Dl70YCx1.js": "1d50024d467e7f6fa4be11cca48534b0b697520cf894282b33ba33cc95db026d",
|
||||
"public/build/assets/management-CvdeRZYq.js": "0c193b26e40abae535aa6b51d1734bd930e4d2570dd0033cf0b41efc47aa16cd",
|
||||
"public/build/assets/marker-icon-hN30_KVU.png": "574c3a5cca85f4114085b6841596d62f00d7c892c7b03f28cbfa301deb1dc437",
|
||||
"public/build/assets/notifications-9pBuC_RG.js": "7f6dce29268451d0ab9317093e7d9585a383f3cb0c5d39a8a9394384369de565",
|
||||
"public/build/assets/opportunities-CXnzOwLc.js": "5131163f8c1e39ac8071f0e2fe7771f6eac8b01cffdadad29f29b9842d3b29ca",
|
||||
"public/build/assets/opportunity-draft-XqJr6101.js": "de24a48db425f688849d2f90e8f41eb3ea1ad8b6b13dcefb6de1c5b27e885ca0",
|
||||
"public/build/assets/opportunity-install-CTUPpOwN.js": "bd3bcb860a7e4fe30921d2043134c56cb24b408e6e36e903d7fee38fae88b66a",
|
||||
"public/build/assets/opportunity-origin-DY1RlTSA.js": "db1f533913c5c4e88be1694f83125a966a59275df92d32de9fbf2897306ebfb5",
|
||||
"public/build/assets/opportunity-resources-D4m4F8r6.js": "084a54b9bbddba329e90ba65b327a1487bbe347387e76739eaa84acb7d210876",
|
||||
"public/build/assets/panel-BqOpaRBu.js": "c203d54f2d38bfc1f1d5dfb288de486ef5c4da08b1ef0d09b9366357e2028f5f",
|
||||
"public/build/assets/partnership-source-links-VfrXk2FZ.js": "a4d6c8500f2417983312ae667b96f035df9654f37aa4a7bc86f0cc01fda0ddd8",
|
||||
"public/build/assets/passkey-verify-JMdWFhk_.js": "679d93cc98bb03e1ba8b33d32ffad95083a8bcbe0233f60a37701bbafbb1642b",
|
||||
"public/build/assets/password-CB_NxgQN.js": "4415e495723009fc084111bafd2b7714221a3712e5f1d2a4dfa0e698f6308c7a",
|
||||
"public/build/assets/password-input-bq-jEkNf.js": "bcbabb21460c514f8993789f3c8423e011a34f24fd918d23c14a31d69539d923",
|
||||
"public/build/assets/portal-api-tEuwFTsU.js": "190505d0a96d610ef2893cf06c63edab30f427593452bbc0dafc9d8f8a826c70",
|
||||
"public/build/assets/PortalInvestidor-BnsfVxRD.js": "17e91fee84008604bf7011ce7d053101fc44439ab4ffd328984555ac82a65b84",
|
||||
"public/build/assets/portfolio-BWEPzPS-.js": "c916ae15550870b1f0ef32748fe9dacfb1bea26fdb4982c3293df8d7fc3293ed",
|
||||
"public/build/assets/print-EIzSB6Ku.js": "bad87486159deb855589aa92fc7032ea28de222693c2816f2ff54b1583ef6513",
|
||||
"public/build/assets/profile-BtYUsh69.js": "8da1db6df781428d8cea7bddeeb7463156ef33819612c0146010638936c89879",
|
||||
"public/build/assets/profile-CkEKQmtR.js": "ab1065d418a748871bcbb40da5d698ee69fecafca8cd7dc92f515b6c75557899",
|
||||
"public/build/assets/profile-json-Bb5H6-rZ.js": "0c4720d8d5baabfcc199d66bc171b014152f3cf2ff40b542d38e86cc1e04a77a",
|
||||
"public/build/assets/project-dossier-BRpAqBvm.js": "9906a87fcb5b99bea2eca25e68dc49c149c7b250056a8ac0977d2c8b6cf4e732",
|
||||
"public/build/assets/react-CjVep8xp.js": "3378f8538b0d8c51e3051e5005dfaebb8fec48c35789a3ba63945fd724f48e6f",
|
||||
"public/build/assets/references-zvmNJBen.js": "f786b4f84595750cc19796187ef8d01d233f32a1290d98c8e8ab812c1cffba08",
|
||||
"public/build/assets/register-CtrYbuj7.js": "8fb7f03c3ee4b687879312ff9f3c158189c4a6472271fadca42c9f40cb054e6d",
|
||||
"public/build/assets/relationship-repair-CSZL2Dqe.js": "1795a9fbbabc4bd4286e30e1593843bd18fab117634e8f019fb9e40334d29e21",
|
||||
"public/build/assets/request-D8qm9ILw.js": "6e6f91655e32e4f3f2b047a181a3a07fa114492082450a101bfa08b89bd0f6e9",
|
||||
"public/build/assets/request-DxHF0YqZ.js": "503e81b829e2b7787a555fd7926b56a66fc03e9fd0df565b0fa000d2124cf5ba",
|
||||
"public/build/assets/reset-password-BET8dy6y.js": "70ece3deaace6476024f4b021403faee620020718455cb2e817691ad3a9a841a",
|
||||
"public/build/assets/result-DG5IPkiy.js": "5d09ea5f0f34eceacf3e0a8b05712b9eee7f934dee4bc6eb275b8750cc46311d",
|
||||
"public/build/assets/rolldown-runtime-Dd_uD5pT.js": "c5f0356f5d0918a3137e4e811fd18950efe8ac8f6bf84d1d4da7811c477a24d8",
|
||||
"public/build/assets/room-DiyAAWo5.js": "7496624da353ade78790a5cfa897e88b4ac574394757a403b3e08d8f908fabb7",
|
||||
"public/build/assets/security-Bf1-D3Pj.js": "7a0cd474282bde0340b60f8f4a8537a5ffc0486566617aedca6ba17b1df1218e",
|
||||
"public/build/assets/services-DqerWiCX.js": "b343c6c07fa59889afa3420f8149cbc890cb7c27c213f29b380bf0074d05a46b",
|
||||
"public/build/assets/shared-B56M-NjF.js": "58d3a78d2ae1bce9ea21606aff65bd621a0b1ac791adee9326ea26d6f767fed1",
|
||||
"public/build/assets/shared-BA57l8Js.js": "c9eae2fc84a0019bc345defb59dc66cc26f78b049aa49a2a60aeba71bd2edaa7",
|
||||
"public/build/assets/shared-CmVpbARN.js": "58c279a2e14552278d9a29c494ffdecf4514d1b0aa7aa2cc66ef5ab944c8ac2c",
|
||||
"public/build/assets/shared-DujgZ7j9.js": "78b127bbe27e46dd4675a19934937d198d27b0515c7b9eee0dc3c255905a560a",
|
||||
"public/build/assets/show-BI-jHtsp.js": "2fc6f3886508dec8d540db6b1e75d65e63f3cc2c9b55fe1e0e3f7f60e78fb37f",
|
||||
"public/build/assets/show-CBiRWEdI.js": "4f95eebc3a8ae4b08be1008b58fd097f703f154348bbfca2e0450f12b2ee34c3",
|
||||
"public/build/assets/sources-C7WHs42K.js": "3db9ac8229742395f0cdce0f5bf4f680d5c081d893210a0f879feaa980982cf8",
|
||||
"public/build/assets/spinner-hD8hHC_m.js": "0091bbe0e4125cbe30ecd10ec9ff65cff9b7bd270125913d85b4449144aa91fd",
|
||||
"public/build/assets/structure-geography-D0fyhwWc.js": "504b00f74319eeaba5f3f97316fb8a9d664791f57d6c4a6dfc292a037f9576b4",
|
||||
"public/build/assets/structures-BlvreTDW.js": "7b3bc9ccb396020fe68d975efff34052643167f46d338cac94bf33fd28466623",
|
||||
"public/build/assets/submission-C7FVkYKS.js": "f2c923eff33ffec5f6d5fece929acfa0b34374581c88417129cb7fff2604d601",
|
||||
"public/build/assets/territorial-source-evidence-eKB4ZB36.js": "14048631c51933a0389cea37ae1909a02ea86d564a5a05452a48b40f055cd605",
|
||||
"public/build/assets/territory-associations-DiGJcdPe.js": "8d9ae9b2582e4076bf9f5a3d30ef5e9f058a704fdf1954c1c5a7e229c2468ebe",
|
||||
"public/build/assets/territory-geometry-import-LIDdmiT0.js": "79a5f2adf87618f1d562ede80f5d951a4cfd53f1618322ad5343e4ad38ee8a77",
|
||||
"public/build/assets/territory-geometry-preview-CByDJVgK.js": "50961c2290eaee46cd2eb9fbe97687043dea0a8d6dc38e5e0faf4b7785b4c61d",
|
||||
"public/build/assets/text-link-BBvcP60s.js": "0e7b5234d766855dbcbd5a78fe3e8c54fa6ffa1ad6163009d7b312eafd19f307",
|
||||
"public/build/assets/two-factor-challenge-D7K6ypf-.js": "42d009484b40e379b152e664401fcb106082806bb5d1fe5ba8b39e1fafa0f05d",
|
||||
"public/build/assets/types-BoD_IJFv.js": "75c4a127c1aa0b90fe0b4f956c7e3ae9c67bc0f862c89cd0a594709027b983da",
|
||||
"public/build/assets/types-Cxp_Nskt.js": "cf4ae8cb539c697ca751dcf96e1db3af9eb1ff00807c088268dd859e7c4a5dab",
|
||||
"public/build/assets/use-two-factor-auth-kpel6Zcb.js": "771c519273e76ec8a5bea59c35605f01e5a55b353443c742c8f22d7bd9691504",
|
||||
"public/build/assets/utils-CCDJ05Ll.js": "ef54f43266d404b8ffe4e5487b346060eaf81d819317f523c966aa3e7490deb8",
|
||||
"public/build/assets/value-network-B4RSxmdU.js": "c43a4e360d26205d0323148311970c2ae55373f013c7708a2ba9cff1f6d7ab97",
|
||||
"public/build/assets/value-text-BztaYdGl.js": "873576810a6ba4eb8c9c116f53cdc649b21ab2995aa2adadd4c85130b04bacd2",
|
||||
"public/build/assets/verification-BOcn3HIw.js": "10addac3d8f1865e855943e0685e88a268ffd8013ff7a7d51fb89d755b12074e",
|
||||
"public/build/assets/verify-email-7dYssu-h.js": "2b8f9bc035f7edd7dc5d614ba50bff2b4dd3da2fbabae0786e170456eb132ca3",
|
||||
"public/build/assets/wayfinder-Dp7PqxvV.js": "3d4c90228fda731e37f541f3087fdf5387d9d59433e35b267b64a97196f70781",
|
||||
"public/build/assets/welcome-JbhDV2dI.js": "b3797d1643d430d4a9d3a7e2b795a2592081bed99eceb2dc43de90628775b54d",
|
||||
"public/build/assets/workspace-0u0LVjQN.js": "d19d916c191d7998fd2fe27b0d87c1c2f4855eafb782a249c6d19e7adc4461a0",
|
||||
"public/build/assets/workspace-4_R1CLYI.js": "5d4c742569d9ad33ac7bac01c6433c646f79f939d2f57b7878860c0d25dcee22",
|
||||
"public/build/assets/workspace-BKNl0Yhx.js": "ea9964b9a455ef1f8a30e6a0860718cd2f5d7d3c118eca67eaeb8bc935a9aa80",
|
||||
"public/build/assets/zone-attachments-B0WJG0cW.js": "5871d1d2c513e07caa7bf73ff25ce0e3412f588dba285f84b14705bd17b66f07",
|
||||
"public/build/assets/zone-dh3k2KzA.js": "8df822ae1c5efba8e35a33daad47a291f1a15e11352a80f6bafe784d5671a059",
|
||||
"public/build/assets/zone-map-BsBBx5S1.js": "c71b0fab780fcbc50c84dba246d8f1c4033c087b6cfbcbceb87fab7d32b4f740",
|
||||
"public/build/assets/zone-relations-eAAWsHUz.js": "92d2a8a841eb0339f41199f054a9f9d5dfdc296612d0db46f805dd70dc6a70d0",
|
||||
"public/build/assets/zones-hul54Ap2.js": "fc262c86d42eb3c4344cf172e325e38982cd5a832e82a39f6ed5ad8b151673de",
|
||||
"chromium-https.json": "0c8e02a317fe23a0b3dcf307e7830f4ff1108c72732852eb3373fce19419ca07",
|
||||
"persistencia-qa.json": "533bccf5ddfdbb71ff0c62948ad24d47725830ee595cbce4b485bbbf203b87ac",
|
||||
"perfil-https.png": "ae68f3d2ba98fea331643911b2e31816c7e89346dc1eab706e0cf40f08810d6c",
|
||||
"validacao-qa.json": "5424a1a9d6d1aee3c3b4ae609bc9d5780d955780e20bd455c02e12b3ac6e00dd",
|
||||
"portal-investidor.test-https.proposta.conf": "ae8345cae15d202f2b390f786658de6ad60779bebdb71cdf269cd9331f27450c",
|
||||
"ambiente-https.proposta.txt": "718a8fd7aba621d75edb7effbcd8902a12aa0eec189ecaea260d257d56a220af",
|
||||
"plano-https-ativo.json": "7540fad008794c9fde45abbd501bc6ee9ca8c8464f1659ba900b22f89b56091b",
|
||||
"certificado-ativo-proposto.json": "d1a88c35b5bc10948c7c217b5278f5c12096f9e58d969af4fab29462c4a15235",
|
||||
"certificados-publicos/portal-investidor.test-ca.cer": "e32863af4a400dc21b513a24598b31425f74d31119116aaf913de95c0ddc9ef3",
|
||||
"certificados-publicos/portal-investidor.test-fullchain.pem": "7948c5e421d7047c15037ed60b0315ab26a38daa9db95a4fbdd283e5d964f4c0",
|
||||
"manifesto-candidata.json": "bef44972b3a1212de34d17ea14cb261cccbff4d7ba55627a83f2629f2cf736f9",
|
||||
"REVER-CANDIDATA.md": "9551146aa0ecf625f98ecbaec50e16d49ca6e8eeed8d2d455d036cc63aae9e13",
|
||||
"codigo-corrigido.patch": "cb24e6d62b1b95e06bd7ca07b89885346473999693d119faf36fd2845b09ab10",
|
||||
"backup-restauro.json": "08af2eb19d61124a10dbb4f04d19f72e2dd4833a5cd7a1dfeca00a1b38eb80f5",
|
||||
"certificado-qa.json": "51ca64fa7e7b9911ea8cde0f064ece7ce54423599e70d3a30ec182c545675e5a",
|
||||
"apache-syntax.json": "b680d8104857b3757e448ccd2f08446f967205892417bb9fef475cd969e697cf",
|
||||
"uuid-backlog.json": "c373554a5d53256c72ddc171a89fdd06d2a46264a6d78408e290c972dbf5ab7e",
|
||||
"uuid-backlog.md": "49dd9e23ab0dbfe5713a140bf4769652d1d4f3816ad591db7e210684fc8419ba",
|
||||
"configuracao-ativa-leitura.json": "39d29570f0a2cf02d16fb6e4e9d445bfbff02d76fd306c9eb3c6313d92c35136"
|
||||
},
|
||||
"private_keys_excluded": true
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 194 KiB |
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"result": "passed",
|
||||
"at": "2026-10-11T07:51:33+00:00",
|
||||
"target": {
|
||||
"database": "country_candidate_20261011_074430_test",
|
||||
"port": 55441,
|
||||
"read_only": "on"
|
||||
},
|
||||
"code_hash": "162daff6ce08117582dd7d796639d02b156d1b940cd85ef3587ff88a65747edd",
|
||||
"tables": 288,
|
||||
"new_tables": 0,
|
||||
"columns": [
|
||||
{
|
||||
"column_name": "incorporation_country_code",
|
||||
"is_nullable": "YES",
|
||||
"data_type": "character varying"
|
||||
},
|
||||
{
|
||||
"column_name": "incorporation_country_provenance",
|
||||
"is_nullable": "YES",
|
||||
"data_type": "jsonb"
|
||||
}
|
||||
],
|
||||
"installation_audits": 1,
|
||||
"organization_edit_audits": 2,
|
||||
"encrypted_audit_recovery": [
|
||||
{
|
||||
"before_country": null,
|
||||
"after_country": "PT",
|
||||
"version": 2
|
||||
},
|
||||
{
|
||||
"before_country": "PT",
|
||||
"after_country": "MZ",
|
||||
"version": 3
|
||||
}
|
||||
],
|
||||
"master_version": 3,
|
||||
"master_country": "MZ",
|
||||
"original_business_rows_preserved": true,
|
||||
"synthetic_QA_only_org_membership": true,
|
||||
"other_packages_installed": false,
|
||||
"original_mfa_envelopes_recovered": 2,
|
||||
"active_writes": 0
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
{
|
||||
"active_origin": "https://portal-investidor.test",
|
||||
"existing_http_origin": "http://portal-investidor.test",
|
||||
"qa_origin": "https://country02-qa.test:18443",
|
||||
"code_hash": "162daff6ce08117582dd7d796639d02b156d1b940cd85ef3587ff88a65747edd",
|
||||
"production_manifest_sha256": "d172b5c4f1a1cb2df504b4acd50c687825b8cda970225a02a56e6286b3a13dd5",
|
||||
"baseline": {
|
||||
"active_vhost": {
|
||||
"path": "C:\\laragon\\etc\\apache2\\sites-enabled\\auto.portal-investidor.test.conf",
|
||||
"sha256": "21e0635f8153e68c4abc623ef934ed5959870db99160515f9ef926c4ab9f7361"
|
||||
},
|
||||
"apache_config": {
|
||||
"path": "C:\\laragon\\bin\\apache\\httpd-2.4.54-win64-VS16\\conf\\httpd.conf",
|
||||
"sha256": "985954a801d6e49e56f81a6d81a8894716d1221c1b311d42e67eb8840f8bf68d"
|
||||
},
|
||||
"ssl_include": {
|
||||
"path": "C:\\laragon\\etc\\apache2\\httpd-ssl.conf",
|
||||
"sha256": "0b282b4c1b3842542e8e8f0aad533b7dc6985973c1be5a44706c2ba73e1bd233"
|
||||
},
|
||||
"active_manifest_sha256": "75352185c2a85c34ab726613db864a598e301a5b342ebbc80ac8e678eed17a94"
|
||||
},
|
||||
"certificate_required": {
|
||||
"SAN": [
|
||||
"portal-investidor.test"
|
||||
],
|
||||
"EKU": "serverAuth",
|
||||
"trusted_chain": "CA local/organizacional aceite nos browsers que usam este hostname local; NÃO reutilizar a CA QA nem o seu certificado",
|
||||
"private_key_location": "C:/Users/macbook/.config/investmoz/tls/portal-investidor.test-key.pem",
|
||||
"fullchain_location": "C:/Users/macbook/.config/investmoz/tls/portal-investidor.test-fullchain.pem",
|
||||
"prepared_not_installed": true,
|
||||
"prepared_not_trusted": true,
|
||||
"issuer": "CN=InvestMoz portal-investidor.test local 20261011",
|
||||
"root_thumbprint": "7D30D7FB226481B6243051309818CF426AF6B6B7",
|
||||
"root_sha256": "e32863af4a400dc21b513a24598b31425f74d31119116aaf913de95c0ddc9ef3",
|
||||
"leaf_sha256": "df368329204106b6a182c79e7e5c98a8e73890479cb7bca7c3d0928076a60ed5",
|
||||
"leaf_valid_until": "2027-01-09T07:49:24+00:00",
|
||||
"root_valid_until": "2027-10-11T07:49:24+00:00",
|
||||
"private_key_public_key_matches": true,
|
||||
"private_key_kept_out_of_bundle": true,
|
||||
"signing_key_not_persisted": true,
|
||||
"deployment_private_directory": "C:/Users/macbook/.config/investmoz/tls",
|
||||
"active_trust_store_changed": false,
|
||||
"qa_ca_not_reused": true,
|
||||
"renewal": "Before leaf expiry prepare new certificate and trust chain, review/retest before replacement. If using an organization CA instead, seal another configuration hash before applying."
|
||||
},
|
||||
"application_values": {
|
||||
"APP_URL": "https://portal-investidor.test",
|
||||
"SESSION_COOKIE": "portal_investidor_https",
|
||||
"SESSION_SECURE_COOKIE": true,
|
||||
"SESSION_DOMAIN": null,
|
||||
"SESSION_PATH": "/",
|
||||
"SESSION_SAME_SITE": "lax"
|
||||
},
|
||||
"urls": {
|
||||
"preview": "https://portal-investidor.test/management/opportunity-resources-install/organization-country",
|
||||
"profile": "https://portal-investidor.test/investidor/profile",
|
||||
"logout": "POST https://portal-investidor.test/logout"
|
||||
},
|
||||
"steps": [
|
||||
"Verify exact final package, certificate SAN/chain/validity/private key permissions, all active baseline hashes and backup/restored clone <=24h",
|
||||
"Stage C110 application sources and reviewed production build with COUNTRY02 flag false; preserve previous sources and all immutable assets",
|
||||
"Only after explicit HTTPS authorization: validate Apache TLS proposal httpd -t, configure exact host and selected active certificate, effective .env/cache values, graceful reload; redirect GET/HEAD HTTP to HTTPS and reject HTTP credentials",
|
||||
"Use actual manager, verified email, normal MFA on HTTPS; check effective target5432 investemoz, code54 and preview hash, ONLY050000/two nullable columns/0tables/users/representations",
|
||||
"POST same server key/hash/body for retries; check one audit and one migration; no030/040/190",
|
||||
"Enable only COUNTRY02 and test legitimate organization/membership permissions, save/update/recover, encrypted Back/Forward and logout/new session"
|
||||
],
|
||||
"stop_conditions": [
|
||||
"certificate trust/SAN/expiry/baseline/package/backup mismatch",
|
||||
"actual preview differs",
|
||||
"private history/session/authorization/asset/mixed-content failure",
|
||||
"missing explicit authorization for HTTPS and replacement delivery"
|
||||
],
|
||||
"reversal": [
|
||||
"Disable COUNTRY02 first; keep050000, country values/provenance, ledger/audit and backups; never drop columns",
|
||||
"Restore preserved previous source/build manifest atomically without deleting immutable assets",
|
||||
"Revert only the specific Apache/env/cache changes from snapshots and validate/reload; change session cookie namespace to avoid reuse",
|
||||
"Preferred safe containment keeps HTTPS and flag disabled; a full HTTP reversion removes the HTTPS deliverable and reopens C111 for private pages; do not claim working private COUNTRY02 over HTTP",
|
||||
"No key:generate, MFA disable, table/account/representation changes, HSTS during initial rollout or other packages"
|
||||
],
|
||||
"active_configuration_changed": false,
|
||||
"authorization_required": [
|
||||
"replacement final delivery",
|
||||
"HTTPS certificate/trust distribution + exact Apache/env change",
|
||||
"050000 authenticated action + COUNTRY02 flag only"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
# PROPOSTA PARA REVISÃO. NÃO INSTALADA. Substitui o vhost HTTP correspondente.
|
||||
# Conferir Listen 443 único e módulos ssl/rewrite/headers antes de incluir.
|
||||
<VirtualHost *:80>
|
||||
ServerName portal-investidor.test
|
||||
RewriteEngine On
|
||||
RewriteCond %{REQUEST_METHOD} !^(GET|HEAD)$
|
||||
RewriteRule ^ - [R=405,L]
|
||||
RewriteRule ^ https://portal-investidor.test%{REQUEST_URI} [R=308,L,NE]
|
||||
</VirtualHost>
|
||||
<VirtualHost *:443>
|
||||
ServerName portal-investidor.test
|
||||
DocumentRoot "C:/laragon/www/portal-investidor/public"
|
||||
SSLEngine On
|
||||
SSLProtocol -all +TLSv1.2 +TLSv1.3
|
||||
SSLCertificateFile "C:/Users/macbook/.config/investmoz/tls/portal-investidor.test-fullchain.pem"
|
||||
SSLCertificateKeyFile "C:/Users/macbook/.config/investmoz/tls/portal-investidor.test-key.pem"
|
||||
<Directory "C:/laragon/www/portal-investidor/public">
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
</Directory>
|
||||
Header always set X-Content-Type-Options "nosniff"
|
||||
# HSTS diferido para não impedir a reversão do ensaio inicial.
|
||||
</VirtualHost>
|
||||
+13
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+2
File diff suppressed because one or more lines are too long
+42
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
import{n as e}from"./dist-BRfsww6z.js";import{t}from"./jsx-runtime-BpzPEenQ.js";import{t as n}from"./compiler-runtime-sKsOXjDo.js";import{t as r}from"./utils-CCDJ05Ll.js";import{t as i}from"./createLucideIcon-oMeAlXbs.js";import{C as a,n as o,r as s}from"./app-Dy6Qob7g.js";var c=i(`Monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),l=i(`Moon`,[[`path`,{d:`M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z`,key:`a7tn18`}]]),u=i(`Sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),d=n(),f=t();function p({className:e=``,...t}){let{appearance:n,updateAppearance:i}=a(),o=[{value:`light`,icon:u,label:`Light`},{value:`dark`,icon:l,label:`Dark`},{value:`system`,icon:c,label:`System`}];return(0,f.jsx)(`div`,{className:r(`inline-flex gap-1 rounded-lg bg-neutral-100 p-1 dark:bg-neutral-800`,e),...t,children:o.map(({value:e,icon:t,label:a})=>(0,f.jsxs)(`button`,{onClick:()=>i(e),className:r(`flex items-center rounded-md px-3.5 py-1.5 transition-colors`,n===e?`bg-white shadow-xs dark:bg-neutral-700 dark:text-neutral-100`:`text-neutral-500 hover:bg-neutral-200/60 hover:text-black dark:text-neutral-400 dark:hover:bg-neutral-700/60`),children:[(0,f.jsx)(t,{className:`-ml-1 h-4 w-4`}),(0,f.jsx)(`span`,{className:`ml-1.5 text-sm`,children:a})]},e))})}function m(){let t=(0,d.c)(3),n,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,f.jsx)(e,{title:`Appearance settings`}),r=(0,f.jsx)(`h1`,{className:`sr-only`,children:`Appearance settings`}),t[0]=n,t[1]=r):(n=t[0],r=t[1]);let i;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,f.jsxs)(f.Fragment,{children:[n,r,(0,f.jsxs)(`div`,{className:`space-y-6`,children:[(0,f.jsx)(s,{variant:`small`,title:`Appearance settings`,description:`Update the appearance settings for your account`}),(0,f.jsx)(p,{})]})]}),t[2]=i):i=t[2],i}m.layout={breadcrumbs:[{title:`Appearance settings`,href:o()}]};export{m as default};
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{n as e,o as t}from"./dist-BRfsww6z.js";import{t as n}from"./jsx-runtime-BpzPEenQ.js";import{t as r}from"./compiler-runtime-sKsOXjDo.js";import{u as i}from"./app-Dy6Qob7g.js";import{a,i as o,r as s}from"./shared-B56M-NjF.js";var c=r(),l=n();function u(n){let r=(0,c.c)(41),{records:u,filters:m}=n,h=m.actor_id??``,g=m.action??``,_=m.record_id??``,v=m.from??``,y=m.until??``,b;r[0]!==h||r[1]!==g||r[2]!==_||r[3]!==v||r[4]!==y?(b={actor_id:h,action:g,record_id:_,from:v,until:y},r[0]=h,r[1]=g,r[2]=_,r[3]=v,r[4]=y,r[5]=b):b=r[5];let x=t(b),S;r[6]===x.data?S=r[7]:(S=new URLSearchParams(Object.entries(x.data).filter(p)),S.set(`format`,`json`),r[6]=x.data,r[7]=S);let C,w,T,E;r[8]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,l.jsx)(e,{title:`Auditoria de acessos`}),T=(0,l.jsx)(i,{}),E=(0,l.jsx)(`h1`,{className:`text-2xl font-semibold`,children:`Auditoria de acessos e decisões`}),C=(0,l.jsx)(`p`,{children:`Consulta somente de leitura. A exportação contém metadados; não inclui credenciais, documentos nem snapshots privados decifrados. Cada exportação apresenta o limite aplicado.`}),r[8]=C,r[9]=w,r[10]=T,r[11]=E):(C=r[8],w=r[9],T=r[10],E=r[11]);let D;r[12]===x?D=r[13]:(D=e=>{e.preventDefault(),x.get(`/perfis/auditoria`)},r[12]=x,r[13]=D);let O;r[14]===Symbol.for(`react.memo_cache_sentinel`)?(O=[`actor_id`,`action`,`record_id`,`from`,`until`],r[14]=O):O=r[14];let k;r[15]===x?k=r[16]:(k=O.map(e=>(0,l.jsxs)(`label`,{children:[e,(0,l.jsx)(`input`,{className:a,type:e===`from`||e===`until`?`datetime-local`:`text`,value:x.data[e],onChange:t=>x.setData(e,t.target.value)})]},e)),r[15]=x,r[16]=k);let A;r[17]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,l.jsx)(`button`,{className:o,children:`Filtrar`}),r[17]=A):A=r[17];let j;r[18]!==D||r[19]!==k?(j=(0,l.jsxs)(`form`,{className:`grid gap-3 sm:grid-cols-3`,onSubmit:D,children:[k,A]}),r[18]=D,r[19]=k,r[20]=j):j=r[20];let M;r[21]===x.errors?M=r[22]:(M=Object.values(x.errors).map(f),r[21]=x.errors,r[22]=M);let N=`/perfis/auditoria?${S}`,P;r[23]===N?P=r[24]:(P=(0,l.jsx)(`a`,{className:`underline`,href:N,children:`Exportar metadados JSON, até 1.000 eventos`}),r[23]=N,r[24]=P);let F;r[25]===Symbol.for(`react.memo_cache_sentinel`)?(F=(0,l.jsx)(`thead`,{children:(0,l.jsxs)(`tr`,{children:[(0,l.jsx)(`th`,{children:`Data UTC`}),(0,l.jsx)(`th`,{children:`Conta`}),(0,l.jsx)(`th`,{children:`Ação`}),(0,l.jsx)(`th`,{children:`Recurso`}),(0,l.jsx)(`th`,{children:`Origem`})]})}),r[25]=F):F=r[25];let I;r[26]===u.data?I=r[27]:(I=u.data.map(d),r[26]=u.data,r[27]=I);let L;r[28]===I?L=r[29]:(L=(0,l.jsx)(`div`,{className:`overflow-auto`,children:(0,l.jsxs)(`table`,{className:`w-full`,children:[F,(0,l.jsx)(`tbody`,{children:I})]})}),r[28]=I,r[29]=L);let R;r[30]===u.data.length?R=r[31]:(R=!u.data.length&&(0,l.jsx)(`p`,{children:`Nenhum evento corresponde aos filtros.`}),r[30]=u.data.length,r[31]=R);let z;r[32]===u?z=r[33]:(z=(0,l.jsx)(s,{page:u}),r[32]=u,r[33]=z);let B;return r[34]!==j||r[35]!==M||r[36]!==P||r[37]!==L||r[38]!==R||r[39]!==z?(B=(0,l.jsxs)(`main`,{className:`space-y-6 p-6`,children:[w,T,E,C,j,M,P,L,R,z]}),r[34]=j,r[35]=M,r[36]=P,r[37]=L,r[38]=R,r[39]=z,r[40]=B):B=r[40],B}function d(e){return(0,l.jsxs)(`tr`,{children:[(0,l.jsx)(`td`,{children:e.occurred_at}),(0,l.jsx)(`td`,{children:e.actor_user_id}),(0,l.jsx)(`td`,{children:e.action}),(0,l.jsx)(`td`,{children:e.entity_type}),(0,l.jsx)(`td`,{children:e.source_system})]},e.id)}function f(e){return(0,l.jsx)(`p`,{role:`alert`,children:e},e)}function p(e){let[,t]=e;return t!==``}export{u as default};
|
||||
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t,u as n}from"./dist-BRfsww6z.js";import{n as r,t as i}from"./jsx-runtime-BpzPEenQ.js";import{a,i as o,n as s,s as c}from"./shared-DujgZ7j9.js";import{r as l}from"./investment-territory-DI3rfWDv.js";import{t as u}from"./business-types-SGCXhH6X.js";var d=e(r(),1),f=i();function p({results:e,filters:r,territorySelection:i=[]}){let[p,m]=(0,d.useState)(r.q??``),[h,g]=(0,d.useState)(r.modality??``),[_,v]=(0,d.useState)({province_id:r.province_id??``,district_id:r.district_id??``,admin_post_id:r.admin_post_id??``,locality_id:r.locality_id??``}),y=new URLSearchParams({...p?{q:p}:{},...h?{modality:h}:{},..._}).toString(),b=e.meta?.links??(Array.isArray(e.links)?e.links:[]);return(0,f.jsxs)(s,{title:`Oportunidades de negócio`,children:[(0,f.jsx)(`p`,{children:`Explore oportunidades aprovadas para publicação. A informação está sujeita a diligência independente.`}),(0,f.jsxs)(`form`,{className:`flex flex-wrap gap-3`,onSubmit:e=>{e.preventDefault(),n.get(`/negocios`,{q:p||void 0,modality:h||void 0,..._},{preserveState:!0,preserveScroll:!0})},children:[(0,f.jsx)(`label`,{className:`sr-only`,htmlFor:`business-search`,children:`Pesquisar negócios`}),(0,f.jsx)(`input`,{id:`business-search`,className:c,value:p,maxLength:120,onChange:e=>m(e.target.value)}),(0,f.jsxs)(`label`,{className:`grid gap-1`,children:[(0,f.jsx)(`span`,{children:`Tipo de oportunidade`}),(0,f.jsxs)(`select`,{className:c,value:h,onChange:e=>g(e.target.value),children:[(0,f.jsx)(`option`,{value:``,children:`Todos os tipos`}),Object.entries(u).map(([e,t])=>(0,f.jsx)(`option`,{value:e,children:t},e))]})]}),(0,f.jsx)(l,{initial:i,onChange:e=>v({province_id:e[0]?.id??``,district_id:e[1]?.id??``,admin_post_id:e[2]?.id??``,locality_id:e[3]?.id??``})}),(0,f.jsx)(`button`,{className:o,children:`Pesquisar`})]}),(0,f.jsxs)(`p`,{role:`status`,children:[e.meta?.total??e.data.length,` anúncios de negócios publicados`]}),!e.data.length&&(0,f.jsx)(`p`,{role:`status`,children:`Não existem oportunidades publicadas com estes critérios.`}),(0,f.jsx)(`ul`,{className:`grid gap-4 md:grid-cols-2`,children:e.data.map(e=>(0,f.jsxs)(`li`,{className:a,children:[(0,f.jsx)(`p`,{children:u[e.modality]??e.modality}),(0,f.jsx)(`h2`,{className:`text-xl font-bold`,children:(0,f.jsx)(t,{className:`underline`,href:`/negocios/${e.slug}${y?`?${y}`:``}`,children:e.title})}),(0,f.jsx)(`p`,{children:[e.sector?.name,e.province,e.stage].filter(Boolean).join(` · `)}),(e.amount_min||e.amount_max)&&(0,f.jsxs)(`p`,{children:[e.amount_min??`—`,` –`,` `,e.amount_max??`—`,` `,e.currency]}),e.objective&&(0,f.jsx)(`p`,{className:`mt-3 line-clamp-3`,children:e.objective})]},e.id))}),(0,f.jsx)(`nav`,{"aria-label":`Paginação das oportunidades`,className:`flex flex-wrap gap-3`,children:b.map(e=>e.url?(0,f.jsx)(t,{href:e.url,className:e.active?`font-bold underline`:`underline`,dangerouslySetInnerHTML:{__html:e.label}},e.label):null)})]})}export{p as default};
|
||||
+1
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
import{r as e}from"./dist-BRfsww6z.js";import{t}from"./jsx-runtime-BpzPEenQ.js";import{a as n,i as r,n as i}from"./shared-DujgZ7j9.js";import{t as a}from"./business-types-SGCXhH6X.js";import{t as o}from"./partnership-source-links-VfrXk2FZ.js";var s=t();function c({record:t,returnUrl:c=`/negocios`,interestUrl:l=`/negocios/${t.slug}/manifestar-interesse`}){return(0,s.jsxs)(i,{title:t.title,children:[(0,s.jsx)(o,{type:`business`,id:t.id}),(0,s.jsx)(e,{href:c,className:`underline`,children:`Voltar às oportunidades`}),(0,s.jsxs)(`section`,{className:`${n} space-y-4`,children:[(0,s.jsx)(`p`,{children:a[t.modality]??t.modality}),(0,s.jsx)(`p`,{children:[t.sector?.name,t.stage,t.activity_code].filter(Boolean).join(` · `)}),(t.province||t.district||t.locality)&&(0,s.jsx)(`p`,{children:[t.locality,t.district,t.province].filter(Boolean).join(`, `)}),(t.amount_min||t.amount_max)&&(0,s.jsxs)(`p`,{children:[`Montante indicativo: `,t.amount_min??`—`,` –`,` `,t.amount_max??`—`,` `,t.currency]}),t.available_percentage&&(0,s.jsxs)(`p`,{children:[`Participação indicada: `,t.available_percentage,`%`]}),t.objective&&(0,s.jsxs)(`div`,{children:[(0,s.jsx)(`h2`,{className:`font-bold`,children:`Objectivo`}),(0,s.jsx)(`p`,{className:`whitespace-pre-wrap`,children:t.objective})]}),(0,s.jsx)(`p`,{className:`text-sm`,children:`A publicação não constitui garantia de titularidade, avaliação, transmissibilidade ou retorno.`}),(0,s.jsx)(e,{className:r,href:l,children:`Manifestar interesse`})]})]})}export{c as default};
|
||||
+1
@@ -0,0 +1 @@
|
||||
var e={draft:`Rascunho`,submitted:`Submetido`,in_review:`Em revisão`,needs_information:`Pendente de informação`,withdrawn:`Retirado`,triage:`Triagem`,information_pending:`Informação pendente`,review:`Em revisão`,approval_l1:`Aprovação nível 1`,approval_l2:`Aprovação nível 2`,approved:`Aprovado`,published:`Publicado`,suspended:`Suspenso`,rejected:`Rejeitado`,cancelled:`Cancelado`,archived:`Arquivado`},t={company_sale:`Venda da empresa`,company_purchase:`Compra ou aquisição de empresa`,participation_sale:`Venda de participação`,capital_increase:`Aumento de capital`,financial_investor:`Investidor financeiro`,strategic_partner:`Sócio estratégico`,buyer_search:`Procura de comprador`,position_assignment:`Cessão de posição`,franchise:`Franchising`,asset_sale:`Venda de activos`,asset_lease:`Arrendamento de activos`,business_unit_transfer:`Transferência de unidade de negócio`,joint_venture:`Joint venture`,succession:`Sucessão empresarial`,recovery:`Recuperação`,expansion:`Expansão`,internationalization:`Internacionalização`,real_estate:`Imobiliário`,agricultural_investment:`Investimento agrícola`,land_right:`Direito fundiário`,mining_license:`Licença mineira`,forestry_license:`Licença florestal`,investment_project:`Projecto de investimento`,business_partnership:`Parceria empresarial`,financing_request:`Procura de financiamento`,concession_opportunity:`Concessão`,supply_opportunity:`Oportunidade de fornecimento`};export{e as n,t};
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{u as t}from"./dist-BRfsww6z.js";import{n,t as r}from"./jsx-runtime-BpzPEenQ.js";import{a as i,r as a,t as o}from"./shared-DujgZ7j9.js";var s=e(n(),1),c=r(),l={identity:`Identidade`,representation:`Representação`,declared_ownership:`Titularidade declarada`,documentary_ownership:`Titularidade documental`,document_received:`Documento recebido`,document_validated:`Documento validado`,independent_valuation:`Avaliação independente`,land_right_documented:`Direito fundiário documentado`,license_confirmed:`Licença confirmada`,validity:`Validade`,legal_transfer:`Transmissibilidade jurídica`,prior_authorization:`Autorização prévia`,confirmed:`Confirmado pelo revisor`,rejected:`Não confirmado`,inconclusive:`Inconclusivo`,revoked:`Revogado`,stale:`Rever após alteração dos dados`,expired:`Expirado`};function u({id:e,version:n,editable:r,checks:u,findings:d,objects:f}){let[p,m]=(0,s.useState)(!1),[h,g]=(0,s.useState)(``),[_,v]=(0,s.useState)(`inconclusive`);return(0,c.jsxs)(`section`,{className:`${i} space-y-4`,children:[(0,c.jsx)(`h2`,{className:`text-xl font-bold`,children:`Verificações e evidências`}),(0,c.jsx)(`p`,{children:`Cada conclusão corresponde apenas ao aspecto e à versão analisados. Não constitui certificação global, autorização de publicação ou garantia de transmissão. Alterações aos dados exigem nova revisão.`}),d.length===0&&(0,c.jsx)(`p`,{children:`Ainda não existem verificações registadas.`}),(0,c.jsx)(`ul`,{className:`space-y-4`,children:d.map(e=>(0,c.jsxs)(`li`,{className:`break-words`,children:[(0,c.jsxs)(`strong`,{children:[l[e.check],` ·`,` `,l[e.effective_outcome]]}),(0,c.jsxs)(`p`,{children:[f.find(t=>t.id===e.object_id)?.payload.label??`Negócio`,` `,`· versão `,e.version_no]}),(0,c.jsxs)(`p`,{children:[`Evidência: `,e.evidence_reference]}),(0,c.jsx)(`p`,{children:e.note}),e.valid_until&&(0,c.jsxs)(`p`,{children:[`Válido até `,e.valid_until]})]},e.version_no))}),r&&(0,c.jsxs)(`form`,{className:`space-y-4`,onSubmit:async r=>{r.preventDefault();let i=Object.fromEntries(new FormData(r.currentTarget));m(!0),g(``);try{await a(`/api/v1/existing-business/listings/${e}/verifications`,{...i,version_no:n}),t.reload()}catch(e){g(e instanceof Error?e.message:`Não foi possível registar a verificação.`)}finally{m(!1)}},children:[(0,c.jsxs)(`fieldset`,{disabled:p,className:`space-y-4`,children:[(0,c.jsx)(o,{label:`Elemento analisado`,children:(0,c.jsxs)(`select`,{className:`w-full rounded-lg border border-slate-300 bg-white px-3 py-2 text-slate-900 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-emerald-700`,name:`object_id`,children:[(0,c.jsx)(`option`,{value:``,children:`Negócio`}),f.map(e=>(0,c.jsx)(`option`,{value:e.id,children:e.payload.label},e.id))]})}),(0,c.jsx)(o,{label:`Aspecto verificado`,children:(0,c.jsx)(`select`,{className:`w-full rounded-lg border border-slate-300 bg-white px-3 py-2 text-slate-900 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-emerald-700`,name:`check`,children:u.map(e=>(0,c.jsx)(`option`,{value:e,children:l[e]},e))})}),(0,c.jsx)(o,{label:`Conclusão`,children:(0,c.jsx)(`select`,{className:`w-full rounded-lg border border-slate-300 bg-white px-3 py-2 text-slate-900 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-emerald-700`,name:`outcome`,value:_,onChange:e=>v(e.target.value),children:[`inconclusive`,`confirmed`,`rejected`,`revoked`].map(e=>(0,c.jsx)(`option`,{value:e,children:l[e]},e))})}),(0,c.jsx)(o,{label:`Referência da evidência consultada`,children:(0,c.jsx)(`textarea`,{className:`w-full rounded-lg border border-slate-300 bg-white px-3 py-2 text-slate-900 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-emerald-700`,name:`evidence_reference`,required:!0,minLength:10,maxLength:2e3})}),(0,c.jsx)(o,{label:`Fundamentação e limites da conclusão`,children:(0,c.jsx)(`textarea`,{className:`w-full rounded-lg border border-slate-300 bg-white px-3 py-2 text-slate-900 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-emerald-700`,name:`note`,required:!0,minLength:10,maxLength:2e3})}),(0,c.jsx)(o,{label:`Validade da conclusão`,children:(0,c.jsx)(`input`,{className:`w-full rounded-lg border border-slate-300 bg-white px-3 py-2 text-slate-900 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-emerald-700`,type:`date`,name:`valid_until`,required:_===`confirmed`})}),(0,c.jsx)(`button`,{className:`inline-flex items-center justify-center rounded-lg bg-emerald-800 px-4 py-2 font-semibold text-white disabled:opacity-50 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-emerald-700`,disabled:p,children:`Registar verificação`})]}),h&&(0,c.jsx)(`p`,{role:`alert`,children:h})]})]})}export{u as default};
|
||||
+1
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{r as t,u as n}from"./dist-BRfsww6z.js";import{n as r,t as i}from"./jsx-runtime-BpzPEenQ.js";import{a,i as o,n as s,r as c,s as l,t as u}from"./shared-DujgZ7j9.js";import{t as d}from"./country-select-C3BLoPPG.js";import{n as f,t as p}from"./business-types-SGCXhH6X.js";var m=e(r(),1),h=i();function g({records:e,management:r,modalities:i,filters:g,countries:_}){let[v,y]=(0,m.useState)(``),[b,x]=(0,m.useState)(i[0]),[S,C]=(0,m.useState)(``),[w,T]=(0,m.useState)(!1),[E,D]=(0,m.useState)(g.country??``),[O,k]=(0,m.useState)(g.origin??``);return(0,h.jsxs)(s,{title:r?`Revisão de negócios`:`Os meus negócios`,children:[(0,h.jsx)(`p`,{children:`Área privada de preparação e revisão. A submissão não confirma titularidade, validade ou transmissibilidade do negócio, activo ou direito.`}),(0,h.jsxs)(`form`,{className:`${a} flex flex-wrap gap-3`,onSubmit:e=>{e.preventDefault(),n.get(r?`/management/negocios`:`/investidor/negocios`,{country:E,origin:O})},children:[(0,h.jsx)(d,{countries:_,value:E,onChange:D,label:`Filtrar país do proponente`}),(0,h.jsxs)(`label`,{children:[`Origem declarada`,(0,h.jsxs)(`select`,{"aria-label":`Filtrar origem declarada`,className:l,value:O,onChange:e=>k(e.target.value),children:[(0,h.jsx)(`option`,{value:``,children:`Todas`}),(0,h.jsx)(`option`,{value:`unknown`,children:`Não informada`}),_.map(e=>(0,h.jsxs)(`option`,{value:e.code,children:[e.name,` (`,e.code,`)`]},e.code))]})]}),(0,h.jsx)(`button`,{className:o,children:`Filtrar negócios`})]}),!r&&(0,h.jsxs)(`form`,{className:`rounded-xl border border-slate-200 bg-white p-5 shadow-sm space-y-4`,onSubmit:async e=>{e.preventDefault(),T(!0),C(``);try{let e=await c(`/api/v1/existing-business/listings`,{modality:b,classification:`confidential`,reason:`Criação de rascunho pelo proprietário`,payload:{title:v,wizard_version:`1`,wizard_step:`1`}});n.visit(`/investidor/negocios/${e.id}`)}catch(e){C(e instanceof Error?e.message:`Não foi possível criar o rascunho.`)}finally{T(!1)}},children:[(0,h.jsx)(`h2`,{className:`text-xl font-bold`,children:`Preparar negócio`}),(0,h.jsx)(u,{label:`Título privado`,children:(0,h.jsx)(`input`,{className:`w-full rounded-lg border border-slate-300 bg-white px-3 py-2 text-slate-900 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-emerald-700`,value:v,onChange:e=>y(e.target.value),required:!0,maxLength:200})}),(0,h.jsx)(u,{label:`Modalidade`,children:(0,h.jsx)(`select`,{className:`w-full rounded-lg border border-slate-300 bg-white px-3 py-2 text-slate-900 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-emerald-700`,value:b,onChange:e=>x(e.target.value),children:i.map(e=>(0,h.jsx)(`option`,{value:e,children:p[e]??e},e))})}),S&&(0,h.jsx)(`p`,{role:`alert`,children:S}),(0,h.jsx)(`button`,{className:`inline-flex items-center justify-center rounded-lg bg-emerald-800 px-4 py-2 font-semibold text-white disabled:opacity-50 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-emerald-700`,disabled:w,children:w?`A criar…`:`Criar rascunho privado`})]}),!e.data.length&&(0,h.jsx)(`p`,{role:`status`,children:`Não existem negócios nesta lista.`}),e.data.map(e=>(0,h.jsxs)(`article`,{className:a,children:[(0,h.jsx)(t,{className:`font-bold underline`,href:`/investidor/negocios/${e.id}`,children:e.payload.title}),(0,h.jsxs)(`p`,{children:[p[e.modality],` ·`,` `,f[e.status],` · versão `,e.version_no]})]},e.id)),(0,h.jsxs)(`nav`,{"aria-label":`Paginação dos negócios`,className:`flex gap-4`,children:[e.prev_page_url&&(0,h.jsx)(t,{href:e.prev_page_url,children:`Anterior`}),e.next_page_url&&(0,h.jsx)(t,{href:e.next_page_url,children:`Seguinte`})]})]})}export{g as default};
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{n as t,t as n}from"./jsx-runtime-BpzPEenQ.js";import{r,t as i}from"./utils-CCDJ05Ll.js";var a=e(t(),1),o=Object.defineProperty,s=(e,t)=>o(e,`name`,{value:t,configurable:!0});function c(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}s(c,`setRef`);function l(...e){return t=>{let n=!1,r=e.map(e=>{let r=c(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():c(e[t],null)}}}}s(l,`composeRefs`);function u(...e){return a.useCallback(l(...e),e)}s(u,`useComposedRefs`);var d=Object.defineProperty,f=(e,t)=>d(e,`name`,{value:t,configurable:!0});function p(e){let t=a.forwardRef((t,n)=>{let{children:r,...i}=t,o=null,s=!1,c=[];S(r)&&typeof E==`function`&&(r=E(r._payload)),a.Children.forEach(r,e=>{if(b(e)){s=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;S(n)&&typeof E==`function`&&(n=E(n._payload)),o=_(t,n),c.push(o?.props?.children)}else c.push(e)}),o?o=a.cloneElement(o,void 0,c):!s&&a.Children.count(r)===1&&a.isValidElement(r)&&(o=r);let l=o?y(o):void 0,d=u(n,l);if(!o){if(r||r===0)throw Error(s?T(e):w(e));return r}let f=v(i,o.props??{});return o.type!==a.Fragment&&(f.ref=n?d:l),a.cloneElement(o,f)});return t.displayName=`${e}.Slot`,t}f(p,`createSlot`);var m=p(`Slot`),h=Symbol.for(`radix.slottable`);function g(e){let t=f(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=h,t}f(g,`createSlottable`);var _=f((e,t)=>{if(`child`in e.props){let t=e.props.child;return a.isValidElement(t)?a.cloneElement(t,void 0,e.props.children(t.props.children)):null}return a.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function v(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}f(v,`mergeProps`);function y(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}f(y,`getElementRef`);function b(e){return a.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===h}f(b,`isSlottable`);var x=Symbol.for(`react.lazy`);function S(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===x&&`_payload`in e&&C(e._payload)}f(S,`isLazyComponent`);function C(e){return typeof e==`object`&&!!e&&`then`in e}f(C,`isPromiseLike`);var w=f(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),T=f(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),E=a.use,D=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,O=r,k=(e,t)=>n=>{if(t?.variants==null)return O(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=D(t)||D(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return O(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},A=n(),j=k(`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-[color,box-shadow] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow-xs hover:bg-primary/90`,destructive:`bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40`,outline:`border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground`,secondary:`bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2 has-[>svg]:px-3`,sm:`h-8 rounded-md px-3 has-[>svg]:px-2.5`,lg:`h-10 rounded-md px-6 has-[>svg]:px-4`,icon:`size-9`}},defaultVariants:{variant:`default`,size:`default`}});function M({className:e,variant:t,size:n,asChild:r=!1,...a}){return(0,A.jsx)(r?m:`button`,{"data-slot":`button`,className:i(j({variant:t,size:n,className:e})),...a})}export{g as a,p as i,k as n,u as o,m as r,M as t};
|
||||
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
import{o as e,r as t}from"./dist-BRfsww6z.js";import{t as n}from"./jsx-runtime-BpzPEenQ.js";import{a as r,i,n as a,r as o,s}from"./shared-B56M-NjF.js";var c=n();function l({resource:n,records:l,filters:u,sectors:d,geographyReviewCount:f=0}){let p=e({q:u.q??``,status:u.status??``,sector_id:String(u.sector_id??``),geography_scope:u.geography_scope??``});return(0,c.jsxs)(a,{title:n===`sectors`?`Sectores`:`Oportunidades`,children:[(0,c.jsxs)(t,{className:i,href:`/management/${n}/create`,children:[`Criar `,n===`sectors`?`sector`:`oportunidade`]}),n===`opportunities`&&(0,c.jsxs)(`p`,{role:`status`,className:`my-3`,children:[f,` oportunidade(s) aguardam confirmação do âmbito geográfico. A lista não altera localizações; confirme apenas com fontes existentes.`]}),(0,c.jsxs)(`form`,{className:`flex flex-wrap gap-3`,onSubmit:e=>{e.preventDefault(),p.get(`/management/${n}`,{preserveState:!1})},children:[(0,c.jsx)(`input`,{"aria-label":`Pesquisar catálogo`,placeholder:`Nome, título, referência ou slug`,className:`${r} max-w-sm`,value:p.data.q,onChange:e=>p.setData(`q`,e.target.value),maxLength:150}),(0,c.jsxs)(`select`,{"aria-label":`Estado`,className:`${r} max-w-xs`,value:p.data.status,onChange:e=>p.setData(`status`,e.target.value),children:[(0,c.jsx)(`option`,{value:``,children:`Todos os estados`}),(n===`sectors`?[`active`,`inactive`]:[`draft`,`published`,`archived`]).map(e=>(0,c.jsx)(`option`,{value:e,children:e===`active`?`Activo`:e===`inactive`?`Inactivo`:s[e]},e))]}),n===`opportunities`&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(`select`,{"aria-label":`Sector`,className:`w-full rounded-md border border-input bg-background p-2 text-foreground max-w-xs`,value:p.data.sector_id,onChange:e=>p.setData(`sector_id`,e.target.value),children:[(0,c.jsx)(`option`,{value:``,children:`Todos os sectores`}),d.map(e=>(0,c.jsx)(`option`,{value:e.id,children:e.name},e.id))]}),(0,c.jsxs)(`select`,{"aria-label":`Âmbito geográfico`,className:`w-full rounded-md border border-input bg-background p-2 text-foreground max-w-xs`,value:p.data.geography_scope,onChange:e=>p.setData(`geography_scope`,e.target.value),children:[(0,c.jsx)(`option`,{value:``,children:`Todos os âmbitos`}),(0,c.jsx)(`option`,{value:`unspecified`,children:`Pendente de confirmação`}),(0,c.jsx)(`option`,{value:`specific`,children:`Localização específica`}),(0,c.jsx)(`option`,{value:`multiple`,children:`Várias localizações`}),(0,c.jsx)(`option`,{value:`national`,children:`Âmbito nacional`}),(0,c.jsx)(`option`,{value:`digital`,children:`Digital/sem instalação definida`})]})]}),(0,c.jsx)(`button`,{className:i,disabled:p.processing,children:`Pesquisar`}),(0,c.jsx)(t,{className:`p-2 underline`,href:`/management/${n}`,children:`Limpar filtros`}),Object.values(p.errors).map(e=>(0,c.jsx)(`p`,{role:`alert`,className:`w-full text-red-600`,children:e},e))]}),(0,c.jsx)(`div`,{className:`space-y-3`,children:l.data.map(e=>(0,c.jsxs)(`article`,{className:`flex flex-wrap items-center justify-between gap-3 rounded border p-4`,children:[(0,c.jsxs)(`div`,{children:[(0,c.jsx)(`h2`,{className:`font-semibold`,children:e.name??e.title}),(0,c.jsxs)(`p`,{className:`text-muted-foreground text-sm`,children:[e.reference??e.slug,` ·`,` `,n===`sectors`?e.is_active?`Activo`:`Inactivo`:s[e.status??`draft`]]}),n===`opportunities`&&e.geography_scope===`unspecified`&&(0,c.jsxs)(`p`,{className:`mt-1 text-sm`,children:[`Pendente de confirmação; território já registado:`,` `,e.primary_territory?.name??`nenhum`,`. Fonte do território:`,` `,e.primary_territory?.source_system??`não indicada`,e.primary_territory?.source_code?`, código ${e.primary_territory.source_code}`:``,`. A classificação não é alterada automaticamente.`]})]}),(0,c.jsx)(t,{className:`underline`,href:`/management/${n}/${e.id}/edit`,children:`Editar`})]},e.id))}),!l.data.length&&(0,c.jsx)(`p`,{children:`Nenhum registo encontrado.`}),(0,c.jsx)(o,{page:l})]})}export{l as default};
|
||||
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
import{r as e}from"./dist-BRfsww6z.js";import{t}from"./jsx-runtime-BpzPEenQ.js";import{t as n}from"./compiler-runtime-sKsOXjDo.js";import{a as r,n as i}from"./shared-DujgZ7j9.js";var a=n(),o=t();function s(t){let n=(0,a.c)(14),{installed:r,services:s,prepared:d}=t,f;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,o.jsx)(`p`,{children:`Preparação e acompanhamento internos; a decisão oficial pertence à entidade competente.`}),n[0]=f):f=n[0];let p=r?`/balcao-virtual/painel`:`/balcao-virtual`,m=r?`Abrir o painel e preparar um pedido`:`Consultar pedidos existentes`,h;n[1]!==p||n[2]!==m?(h=(0,o.jsx)(e,{href:p,className:`underline`,children:m}),n[1]=p,n[2]=m,n[3]=h):h=n[3];let g;n[4]===r?g=n[5]:(g=!r&&(0,o.jsx)(`p`,{children:`Melhorias preparadas; a instalação autenticada e a publicação explícita dos serviços continuam pendentes.`}),n[4]=r,n[5]=g);let _;n[6]!==r||n[7]!==d||n[8]!==s?(_=(r?s.map(u):Object.values(d).map(l)).map(c),n[6]=r,n[7]=d,n[8]=s,n[9]=_):_=n[9];let v;return n[10]!==h||n[11]!==g||n[12]!==_?(v=(0,o.jsxs)(i,{title:`Serviços do Balcão Virtual`,children:[f,h,g,_]}),n[10]=h,n[11]=g,n[12]=_,n[13]=v):v=n[13],v}function c(e){return(0,o.jsxs)(`article`,{className:r,children:[(0,o.jsx)(`h2`,{className:`text-xl font-bold`,children:e.title}),(0,o.jsx)(`p`,{children:e.result}),(0,o.jsx)(`p`,{children:e.version?`Versão ${e.version}`:`Preparado, ainda indisponível para novos pedidos`})]},e.title)}function l(e){return{...e,version:null}}function u(e){return{...e.definition,version:e.version}}export{s as default};
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{t as e}from"./createLucideIcon-oMeAlXbs.js";var t=e(`Check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]);export{t};
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{t as e}from"./rolldown-runtime-Dd_uD5pT.js";import{n as t}from"./jsx-runtime-BpzPEenQ.js";var n=e((e=>{var n=t().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;e.c=function(e){return n.H.useMemoCache(e)}})),r=e(((e,t)=>{t.exports=n()}));export{r as t};
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{n as e}from"./wayfinder-Dp7PqxvV.js";var t=e=>({url:t.url(e),method:`post`});t.definition={methods:[`post`],url:`/user/confirm-password`},t.url=n=>t.definition.url+e(n),t.post=e=>({url:t.url(e),method:`post`});var n=e=>({action:t.url(e),method:`post`});n.post=e=>({action:t.url(e),method:`post`}),t.form=n;var r={store:Object.assign(t,t)};export{t as n,r as t};
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{n as e,t}from"./dist-BRfsww6z.js";import{t as n}from"./jsx-runtime-BpzPEenQ.js";import{t as r}from"./compiler-runtime-sKsOXjDo.js";import{t as i}from"./button-DAU4R6e9.js";import{t as a}from"./password-input-bq-jEkNf.js";import{n as o}from"./wayfinder-Dp7PqxvV.js";import{t as s}from"./input-error-U1QKS0ED.js";import{t as c}from"./label-D-C_NQs4.js";import{t as l}from"./spinner-hD8hHC_m.js";import{n as u}from"./confirm-Culw9Q-x.js";import{t as d}from"./passkey-verify-JMdWFhk_.js";var f=r(),p=e=>({url:p.url(e),method:`get`});p.definition={methods:[`get`,`head`],url:`/passkeys/confirm/options`},p.url=e=>p.definition.url+o(e),p.get=e=>({url:p.url(e),method:`get`}),p.head=e=>({url:p.url(e),method:`head`});var m=e=>({action:p.url(e),method:`get`});m.get=e=>({action:p.url(e),method:`get`}),m.head=e=>({action:p.url({[e?.mergeQuery?`mergeQuery`:`query`]:{_method:`HEAD`,...e?.query??e?.mergeQuery??{}}}),method:`get`}),p.form=m;var h=e=>({url:h.url(e),method:`post`});h.definition={methods:[`post`],url:`/passkeys/confirm`},h.url=e=>h.definition.url+o(e),h.post=e=>({url:h.url(e),method:`post`});var g=e=>({action:h.url(e),method:`post`});g.post=e=>({action:h.url(e),method:`post`}),h.form=g;var _=n();function v(){let n=(0,f.c)(3),r;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,_.jsx)(e,{title:`Confirm password`}),n[0]=r):r=n[0];let i;n[1]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,_.jsx)(d,{routes:{options:p(),submit:h()},label:`Confirm with passkey`,loadingLabel:`Confirming...`,separator:`Or confirm with password`}),n[1]=i):i=n[1];let a;return n[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,_.jsxs)(_.Fragment,{children:[r,i,(0,_.jsx)(t,{...u.form(),resetOnSuccess:[`password`],children:y})]}),n[2]=a):a=n[2],a}function y(e){let{processing:t,errors:n}=e;return(0,_.jsxs)(`div`,{className:`space-y-6`,children:[(0,_.jsxs)(`div`,{className:`grid gap-2`,children:[(0,_.jsx)(c,{htmlFor:`password`,children:`Password`}),(0,_.jsx)(a,{id:`password`,name:`password`,placeholder:`Password`,autoComplete:`current-password`,autoFocus:!0}),(0,_.jsx)(s,{message:n.password})]}),(0,_.jsx)(`div`,{className:`flex items-center`,children:(0,_.jsxs)(i,{className:`w-full`,disabled:t,"data-test":`confirm-password-button`,children:[t&&(0,_.jsx)(l,{}),`Confirm password`]})})]})}v.layout={title:`Confirm password`,description:`This is a secure area of the application. Please confirm your password before continuing.`};export{v as default};
|
||||
+1
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{o as t}from"./dist-BRfsww6z.js";import{n,t as r}from"./jsx-runtime-BpzPEenQ.js";import{t as i}from"./compiler-runtime-sKsOXjDo.js";import{a,r as o,s,t as c}from"./shared-DujgZ7j9.js";import{a as l}from"./portal-api-tEuwFTsU.js";var u=i(),d=e(n(),1),f=r();function p(e){let n=(0,u.c)(26),{id:r,messages:i,submitted:p,revisions:v}=e,y;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(y={client_key:l(),body:``},n[0]=y):y=n[0];let b=t(y),[x,S]=(0,d.useState)(null),[C,w]=(0,d.useState)(``),T;n[1]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,f.jsx)(`h2`,{className:`text-xl font-bold`,children:`Versões guardadas`}),n[1]=T):T=n[1];let E;n[2]===r?E=n[3]:(E=e=>{if(w(``),!e.target.value){S(null);return}o(`/api/v1/investment/submissions/${r}/revisions/${e.target.value}`).then(S).catch(()=>w(`Não foi possível consultar esta versão.`))},n[2]=r,n[3]=E);let D;n[4]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,f.jsx)(`option`,{value:``,children:`Seleccionar versão`}),n[4]=D):D=n[4];let O;n[5]===v?O=n[6]:(O=v.map(_),n[5]=v,n[6]=O);let k;n[7]!==E||n[8]!==O?(k=(0,f.jsx)(c,{label:`Consultar versão`,children:(0,f.jsxs)(`select`,{className:s,defaultValue:``,onChange:E,children:[D,O]})}),n[7]=E,n[8]=O,n[9]=k):k=n[9];let A;n[10]===C?A=n[11]:(A=C&&(0,f.jsx)(`p`,{role:`alert`,children:C}),n[10]=C,n[11]=A);let j;n[12]===x?j=n[13]:(j=x&&(0,f.jsxs)(`div`,{className:`space-y-2`,children:[(0,f.jsxs)(`h3`,{className:`font-bold`,children:[`Versão `,x.version]}),(0,f.jsxs)(`p`,{children:[`Investidor: `,x.snapshot.payload.full_name]}),(0,f.jsxs)(`p`,{children:[`Empresa:`,` `,x.snapshot.payload.organisation||`Não indicada`]}),(0,f.jsxs)(`p`,{className:`whitespace-pre-line`,children:[`Objectivo:`,` `,x.snapshot.payload.objective||`Não indicado`]}),(0,f.jsxs)(`p`,{children:[`Prazo:`,` `,x.snapshot.payload.horizon||`Não indicado`]}),(0,f.jsx)(`ul`,{children:x.snapshot.needs.map(g)}),(0,f.jsxs)(`p`,{children:[x.snapshot.attachment_ids.length,` anexos associados nessa versão.`]})]}),n[12]=x,n[13]=j);let M;n[14]!==k||n[15]!==A||n[16]!==j?(M=(0,f.jsxs)(`section`,{className:a+` space-y-4`,children:[T,k,A,j]}),n[14]=k,n[15]=A,n[16]=j,n[17]=M):M=n[17];let N;n[18]!==b||n[19]!==r||n[20]!==i||n[21]!==p?(N=p&&(0,f.jsxs)(`section`,{className:`rounded-xl border border-slate-200 bg-white p-5 shadow-sm space-y-4`,children:[(0,f.jsx)(`h2`,{className:`text-xl font-bold`,children:`Conversa com o apoio`}),(0,f.jsx)(`p`,{children:`As mensagens ficam registadas neste pedido e são visíveis ao investidor e à equipa autorizada.`}),i.map(h),!i.length&&(0,f.jsx)(`p`,{children:`Ainda não existem mensagens neste pedido.`}),(0,f.jsxs)(`form`,{className:`space-y-3`,onSubmit:e=>{e.preventDefault(),b.post(`/investidor/manifestacoes/${r}/messages`,{preserveScroll:!0,onSuccess:()=>b.setData({client_key:l(),body:``})})},children:[(0,f.jsx)(c,{label:`Mensagem para acompanhamento`,children:(0,f.jsx)(`textarea`,{className:`w-full rounded-lg border border-slate-300 bg-white px-3 py-2 text-slate-900 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-emerald-700`,rows:4,required:!0,minLength:3,maxLength:5e3,value:b.data.body,onChange:e=>b.setData(`body`,e.target.value)})}),Object.entries(b.errors).map(m),(0,f.jsx)(`button`,{className:`inline-flex items-center justify-center rounded-lg bg-emerald-800 px-4 py-2 font-semibold text-white disabled:opacity-50 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-emerald-700`,disabled:b.processing,children:`Enviar mensagem`})]})]}),n[18]=b,n[19]=r,n[20]=i,n[21]=p,n[22]=N):N=n[22];let P;return n[23]!==N||n[24]!==M?(P=(0,f.jsxs)(f.Fragment,{children:[M,N]}),n[23]=N,n[24]=M,n[25]=P):P=n[25],P}function m(e){let[t,n]=e;return(0,f.jsx)(`p`,{role:`alert`,children:n},t)}function h(e){return(0,f.jsxs)(`article`,{className:`rounded-lg border p-4`,children:[(0,f.jsxs)(`p`,{className:`font-semibold`,children:[e.sender_role===`support`?`Apoio ao Investidor`:`Investidor`,` `,`·`,` `,new Date(e.created_at).toLocaleString(`pt-MZ`)]}),(0,f.jsx)(`p`,{className:`mt-2 whitespace-pre-line`,children:e.body})]},e.id)}function g(e,t){return(0,f.jsx)(`li`,{children:e.details.description},t)}function _(e){return(0,f.jsxs)(`option`,{value:e.version,children:[`Versão `,e.version,` —`,` `,new Date(e.created_at).toLocaleString(`pt-MZ`)]},e.version)}export{p as Conversation};
|
||||
+1
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{n as t,t as n}from"./jsx-runtime-BpzPEenQ.js";var r=e(t(),1),i=n();function a({countries:e,value:t,onChange:n,id:a,disabled:o=!1,label:s=`País`,required:c=!1,allowLegacyValue:l=!1,error:u}){let d=(0,r.useId)(),[f,p]=(0,r.useState)(``),m=e.filter(e=>e.code===t||`${e.name} ${e.name_en} ${e.code}`.normalize(`NFD`).replace(/\p{Diacritic}/gu,``).toLowerCase().includes(f.normalize(`NFD`).replace(/\p{Diacritic}/gu,``).toLowerCase()));return(0,i.jsxs)(`div`,{className:`space-y-2`,children:[(0,i.jsx)(`input`,{disabled:o,className:`w-full rounded border p-2`,"aria-label":`Pesquisar ${s.toLowerCase()}`,maxLength:100,value:f,onChange:e=>p(e.target.value),placeholder:`Pesquisar nome ou código do país`}),(0,i.jsxs)(`select`,{disabled:o,id:a??d,"aria-label":s,"aria-invalid":!!u,"aria-describedby":u?(a??d)+`-error`:void 0,required:c,className:`w-full rounded border p-2`,value:t,onChange:e=>n(e.target.value),children:[(0,i.jsx)(`option`,{value:``,children:`Não informado`}),l&&t&&!e.some(e=>e.code===t)&&(0,i.jsxs)(`option`,{value:t,children:[t,` (valor anterior conservado)`]}),m.map(e=>(0,i.jsxs)(`option`,{value:e.code,children:[e.name,` (`,e.code,`)`]},e.code))]}),u&&(0,i.jsx)(`p`,{id:(a??d)+`-error`,role:`alert`,className:`text-red-700`,children:u}),m.length===0&&(0,i.jsx)(`p`,{role:`status`,children:`Nenhum país corresponde à pesquisa.`})]})}export{a as t};
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{n as t}from"./jsx-runtime-BpzPEenQ.js";var n=e(t(),1),r=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),i=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),a={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},o=(0,n.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:r=2,absoluteStrokeWidth:o,className:s=``,children:c,iconNode:l,...u},d)=>(0,n.createElement)(`svg`,{ref:d,...a,width:t,height:t,stroke:e,strokeWidth:o?Number(r)*24/Number(t):r,className:i(`lucide`,s),...u},[...l.map(([e,t])=>(0,n.createElement)(e,t)),...Array.isArray(c)?c:[c]])),s=(e,t)=>{let a=(0,n.forwardRef)(({className:a,...s},c)=>(0,n.createElement)(o,{ref:c,iconNode:t,className:i(`lucide-${r(e)}`,a),...s}));return a.displayName=`${e}`,a};export{s as t};
|
||||
+1
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
import{r as e,u as t}from"./dist-BRfsww6z.js";import{t as n}from"./jsx-runtime-BpzPEenQ.js";import{t as r}from"./compiler-runtime-sKsOXjDo.js";import{Frame as i,button as a,labels as o}from"./shared-CmVpbARN.js";var s=r(),c=n();function l(t){let n=(0,s.c)(23),r,o;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,c.jsx)(`h2`,{className:`mb-4 text-xl font-bold`,children:`Ideias e propostas`}),o=(0,c.jsx)(e,{className:a,href:`/parcerias/criar`,children:`Preparar uma parceria`}),n[0]=r,n[1]=o):(r=n[0],o=n[1]);let l;n[2]===t.mine?l=n[3]:(l=t.mine.map(p),n[2]=t.mine,n[3]=l);let m;n[4]===l?m=n[5]:(m=(0,c.jsxs)(`section`,{children:[r,o,l]}),n[4]=l,n[5]=m);let h;n[6]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,c.jsx)(`h2`,{className:`text-xl font-bold`,children:`As minhas candidaturas`}),n[6]=h):h=n[6];let g;n[7]===t.interests?g=n[8]:(g=t.interests.map(f),n[7]=t.interests,n[8]=g);let _;n[9]===g?_=n[10]:(_=(0,c.jsxs)(`section`,{children:[h,g]}),n[9]=g,n[10]=_);let v;n[11]===t.moderation?v=n[12]:(v=t.moderation.length>0&&(0,c.jsxs)(`section`,{children:[(0,c.jsx)(`h2`,{className:`text-xl font-bold`,children:`Fila de moderação`}),t.moderation.map(d)]}),n[11]=t.moderation,n[12]=v);let y;n[13]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,c.jsx)(`h2`,{className:`text-xl font-bold`,children:`Notificações no portal`}),n[13]=y):y=n[13];let b;n[14]===t.notifications?b=n[15]:(b=t.notifications.map(u),n[14]=t.notifications,n[15]=b);let x;n[16]===b?x=n[17]:(x=(0,c.jsxs)(`section`,{children:[y,b]}),n[16]=b,n[17]=x);let S;return n[18]!==x||n[19]!==m||n[20]!==_||n[21]!==v?(S=(0,c.jsx)(i,{title:`O meu painel de parcerias`,children:(0,c.jsxs)(`div`,{className:`space-y-8`,children:[m,_,v,x]})}),n[18]=x,n[19]=m,n[20]=_,n[21]=v,n[22]=S):S=n[22],S}function u(n){return(0,c.jsxs)(`article`,{className:`my-3 rounded border p-3`,children:[(0,c.jsx)(e,{href:n.href,className:`underline`,children:n.title}),!n.read_at&&(0,c.jsx)(`button`,{className:`ml-4 underline`,onClick:()=>t.post(`/parcerias/notificacoes/`+n.id+`/ler`),children:`Marcar como lida`})]},n.id)}function d(t){return(0,c.jsx)(`p`,{children:(0,c.jsxs)(e,{className:`underline`,href:`/parcerias/`+t.id,children:[t.title,` · `,o[t.status]]})},t.id)}function f(t){return(0,c.jsxs)(`article`,{className:`my-4 rounded border p-4`,children:[(0,c.jsx)(e,{className:`underline`,href:`/parcerias/`+t.partnership_id,children:t.title}),(0,c.jsxs)(`p`,{children:[o[t.status],` · `,t.decision_reason]}),t.room_id&&(0,c.jsx)(e,{className:`inline-flex rounded bg-emerald-800 px-4 py-2 text-white disabled:opacity-50`,href:`/parcerias/salas/`+t.room_id,children:`Abrir conexão privada`})]},t.id)}function p(t){return(0,c.jsxs)(`article`,{className:`mt-4 rounded border p-4`,children:[(0,c.jsx)(e,{className:`font-semibold underline`,href:`/parcerias/`+t.id,children:t.title||`Ideia sem título`}),(0,c.jsx)(`p`,{children:o[t.status]??t.status}),(0,c.jsxs)(`p`,{children:[`Próxima ação:`,` `,[`draft`,`returned`,`rejected`].includes(t.status)?`Completar e pré-visualizar para submissão`:t.status===`published`?`Consultar candidatos e esclarecer pendências`:`Acompanhar a decisão`]})]},t.id)}export{l as default};
|
||||
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
import"./rolldown-runtime-Dd_uD5pT.js";import{n as e,t}from"./jsx-runtime-BpzPEenQ.js";import{t as n}from"./compiler-runtime-sKsOXjDo.js";import{t as r}from"./utils-CCDJ05Ll.js";import{_ as i,d as a,f as o,g as s,h as c,m as l,p as u,v as d,x as f}from"./app-Dy6Qob7g.js";var p=n();e();var m=t();function h(e){let t=(0,p.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,m.jsx)(a,{"data-slot":`dialog`,...n}),t[2]=n,t[3]=r),r}function g(e){let t=(0,p.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,m.jsx)(d,{"data-slot":`dialog-trigger`,...n}),t[2]=n,t[3]=r),r}function _(e){let t=(0,p.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,m.jsx)(s,{"data-slot":`dialog-portal`,...n}),t[2]=n,t[3]=r),r}function v(e){let t=(0,p.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,m.jsx)(o,{"data-slot":`dialog-close`,...n}),t[2]=n,t[3]=r),r}function y(e){let t=(0,p.c)(8),n,i;t[0]===e?(n=t[1],i=t[2]):({className:n,...i}=e,t[0]=e,t[1]=n,t[2]=i);let a;t[3]===n?a=t[4]:(a=r(`data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80`,n),t[3]=n,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,m.jsx)(c,{"data-slot":`dialog-overlay`,className:a,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function b(e){let t=(0,p.c)(12),n,i,a;t[0]===e?(n=t[1],i=t[2],a=t[3]):({className:i,children:n,...a}=e,t[0]=e,t[1]=n,t[2]=i,t[3]=a);let s;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,m.jsx)(y,{}),t[4]=s):s=t[4];let c;t[5]===i?c=t[6]:(c=r(`bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg`,i),t[5]=i,t[6]=c);let l;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,m.jsxs)(o,{className:`ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,children:[(0,m.jsx)(f,{}),(0,m.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),t[7]=l):l=t[7];let d;return t[8]!==n||t[9]!==a||t[10]!==c?(d=(0,m.jsxs)(_,{"data-slot":`dialog-portal`,children:[s,(0,m.jsxs)(u,{"data-slot":`dialog-content`,className:c,...a,children:[n,l]})]}),t[8]=n,t[9]=a,t[10]=c,t[11]=d):d=t[11],d}function x(e){let t=(0,p.c)(8),n,i;t[0]===e?(n=t[1],i=t[2]):({className:n,...i}=e,t[0]=e,t[1]=n,t[2]=i);let a;t[3]===n?a=t[4]:(a=r(`flex flex-col gap-2 text-center sm:text-left`,n),t[3]=n,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,m.jsx)(`div`,{"data-slot":`dialog-header`,className:a,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function S(e){let t=(0,p.c)(8),n,i;t[0]===e?(n=t[1],i=t[2]):({className:n,...i}=e,t[0]=e,t[1]=n,t[2]=i);let a;t[3]===n?a=t[4]:(a=r(`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,n),t[3]=n,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,m.jsx)(`div`,{"data-slot":`dialog-footer`,className:a,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}function C(e){let t=(0,p.c)(8),n,a;t[0]===e?(n=t[1],a=t[2]):({className:n,...a}=e,t[0]=e,t[1]=n,t[2]=a);let o;t[3]===n?o=t[4]:(o=r(`text-lg leading-none font-semibold`,n),t[3]=n,t[4]=o);let s;return t[5]!==a||t[6]!==o?(s=(0,m.jsx)(i,{"data-slot":`dialog-title`,className:o,...a}),t[5]=a,t[6]=o,t[7]=s):s=t[7],s}function w(e){let t=(0,p.c)(8),n,i;t[0]===e?(n=t[1],i=t[2]):({className:n,...i}=e,t[0]=e,t[1]=n,t[2]=i);let a;t[3]===n?a=t[4]:(a=r(`text-muted-foreground text-sm`,n),t[3]=n,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,m.jsx)(l,{"data-slot":`dialog-description`,className:a,...i}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}export{S as a,g as c,w as i,v as n,x as o,b as r,C as s,h as t};
|
||||
+1
@@ -0,0 +1 @@
|
||||
function e(e,t=``){return typeof e==`string`?e:typeof e==`number`&&Number.isFinite(e)||typeof e==`boolean`?String(e):t}export{e as t};
|
||||
+97
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{l as t}from"./dist-BRfsww6z.js";import{n,t as r}from"./jsx-runtime-BpzPEenQ.js";import{i}from"./button-DAU4R6e9.js";var a=e(n(),1),o=e(t(),1),s=r(),c=Object.defineProperty,l=(e,t)=>c(e,`name`,{value:t,configurable:!0}),u=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=i(`Primitive.${t}`),r=a.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,s.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function d(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}l(d,`dispatchDiscreteCustomEvent`);export{d as n,u as t};
|
||||
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+2
File diff suppressed because one or more lines are too long
+61
@@ -0,0 +1,61 @@
|
||||
@font-face {
|
||||
font-family: "Instrument Sans";
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: url("/build/assets/instrument-sans-400-normal-DRC__1Mx.woff2") format("woff2");
|
||||
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Instrument Sans";
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: url("/build/assets/instrument-sans-400-normal-D1W7dsQl.woff") format("woff");
|
||||
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Instrument Sans";
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-display: swap;
|
||||
src: url("/build/assets/instrument-sans-500-normal-Dk9ku72i.woff2") format("woff2");
|
||||
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Instrument Sans";
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-display: swap;
|
||||
src: url("/build/assets/instrument-sans-500-normal-Z6ESRlEs.woff") format("woff");
|
||||
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Instrument Sans";
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-display: swap;
|
||||
src: url("/build/assets/instrument-sans-600-normal-B7fBEWYG.woff2") format("woff2");
|
||||
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: "Instrument Sans";
|
||||
font-style: normal;
|
||||
font-weight: 600;
|
||||
font-display: swap;
|
||||
src: url("/build/assets/instrument-sans-600-normal-B9e8oLYv.woff") format("woff");
|
||||
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
|
||||
}
|
||||
|
||||
:root {
|
||||
--font-instrument-sans: "Instrument Sans";
|
||||
}
|
||||
|
||||
.font-instrument-sans {
|
||||
font-family: var(--font-instrument-sans);
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{n as e,t}from"./dist-BRfsww6z.js";import{t as n}from"./jsx-runtime-BpzPEenQ.js";import{t as r}from"./compiler-runtime-sKsOXjDo.js";import{t as i}from"./button-DAU4R6e9.js";import{t as a}from"./loader-circle-DS8Tf4er.js";import{b as o,s}from"./app-Dy6Qob7g.js";import{t as c}from"./input-error-U1QKS0ED.js";import{t as l}from"./label-D-C_NQs4.js";import{t as u}from"./text-link-BBvcP60s.js";import{t as d}from"./password-CB_NxgQN.js";var f=r(),p=n();function m(n){let r=(0,f.c)(8),{status:i}=n,a;r[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,p.jsx)(e,{title:`Forgot password`}),r[0]=a):a=r[0];let o;r[1]===i?o=r[2]:(o=i&&(0,p.jsx)(`div`,{className:`mb-4 text-center text-sm font-medium text-green-600`,children:i}),r[1]=i,r[2]=o);let c;r[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,p.jsx)(t,{...d.form(),children:h}),r[3]=c):c=r[3];let l;r[4]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,p.jsx)(`span`,{children:`Or, return to`}),r[4]=l):l=r[4];let m;r[5]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,p.jsxs)(`div`,{className:`space-y-6`,children:[c,(0,p.jsxs)(`div`,{className:`text-muted-foreground space-x-1 text-center text-sm`,children:[l,(0,p.jsx)(u,{href:s(),children:`log in`})]})]}),r[5]=m):m=r[5];let g;return r[6]===o?g=r[7]:(g=(0,p.jsxs)(p.Fragment,{children:[a,o,m]}),r[6]=o,r[7]=g),g}function h(e){let{processing:t,errors:n}=e;return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(`div`,{className:`grid gap-2`,children:[(0,p.jsx)(l,{htmlFor:`email`,children:`Email address`}),(0,p.jsx)(o,{id:`email`,type:`email`,name:`email`,autoComplete:`off`,autoFocus:!0,placeholder:`email@example.com`}),(0,p.jsx)(c,{message:n.email})]}),(0,p.jsx)(`div`,{className:`my-6 flex items-center justify-start`,children:(0,p.jsxs)(i,{className:`w-full`,disabled:t,"data-test":`email-password-reset-link-button`,children:[t&&(0,p.jsx)(a,{className:`h-4 w-4 animate-spin`}),`Email password reset link`]})})]})}m.layout={title:`Forgot password`,description:`Enter your email to receive a password reset link`};export{m as default};
|
||||
+1
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
import{r as e}from"./dist-BRfsww6z.js";import{t}from"./jsx-runtime-BpzPEenQ.js";import{t as n}from"./compiler-runtime-sKsOXjDo.js";var r=n(),i=t();function a(t){let n=(0,r.c)(13),{disclaimer:a}=t,o,s,c;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,i.jsx)(`p`,{className:`text-sm font-semibold tracking-wide uppercase`,children:`InvestMoz · orientação informativa`}),s=(0,i.jsx)(`h1`,{className:`text-3xl font-bold`,children:`Terra e DUAT`}),c=(0,i.jsx)(`p`,{children:`Prepare informação sobre uma área, um pedido ou um processo que já acompanha. Pode indicar dúvidas e dados por confirmar.`}),n[0]=o,n[1]=s,n[2]=c):(o=n[0],s=n[1],c=n[2]);let l;n[3]===a?l=n[4]:(l=(0,i.jsxs)(`header`,{className:`space-y-3`,children:[o,s,c,(0,i.jsx)(`p`,{className:`rounded border border-amber-400 bg-amber-50 p-4 text-sm`,children:a})]}),n[3]=a,n[4]=l);let u;n[5]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,i.jsxs)(`article`,{className:`rounded border p-4`,children:[(0,i.jsx)(`h2`,{className:`font-semibold`,children:`Preparar informação`}),(0,i.jsx)(`p`,{children:`Identifique a finalidade, o requerente, a localização conhecida e os antecedentes que tiver.`})]}),n[5]=u):u=n[5];let d;n[6]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,i.jsxs)(`article`,{className:`rounded border p-4`,children:[(0,i.jsx)(`h2`,{className:`font-semibold`,children:`Organizar documentos`}),(0,i.jsx)(`p`,{children:`Anexos são opcionais nesta fase. A lista não substitui os requisitos confirmados pela entidade competente.`})]}),n[6]=d):d=n[6];let f,p;n[7]===Symbol.for(`react.memo_cache_sentinel`)?(f=(0,i.jsxs)(`section`,{className:`grid gap-4 md:grid-cols-3`,children:[u,d,(0,i.jsxs)(`article`,{className:`rounded border p-4`,children:[(0,i.jsx)(`h2`,{className:`font-semibold`,children:`Acompanhar`}),(0,i.jsx)(`p`,{children:`Guarde uma referência interna e registe separadamente informações comunicadas por si e diligências internas.`})]})]}),p=(0,i.jsx)(`p`,{className:`rounded bg-slate-50 p-4`,children:`Não inferimos que uma área está livre, que não existem direitos ou conflitos, nem que um registo ou mapa confirma titularidade. O InvestMoz não atribui DUAT nem substitui a autoridade pública.`}),n[7]=f,n[8]=p):(f=n[7],p=n[8]);let m;n[9]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,i.jsxs)(`nav`,{className:`flex flex-wrap gap-4`,children:[(0,i.jsx)(e,{className:`rounded bg-emerald-800 px-4 py-3 text-white`,href:`/investidor/terra-duat/novo`,children:`Preencher no portal`}),(0,i.jsx)(e,{className:`rounded border px-4 py-3`,href:`/terra-duat/formulario-em-branco`,children:`Descarregar formulário em branco (imprimir/guardar como PDF)`}),(0,i.jsx)(e,{className:`rounded border px-4 py-3`,href:`/apoio`,children:`Solicitar apoio geral`})]}),n[9]=m):m=n[9];let h;n[10]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,i.jsxs)(`details`,{className:`rounded border p-4`,children:[(0,i.jsx)(`summary`,{className:`cursor-pointer font-semibold`,children:`Estado das fontes e requisitos`}),(0,i.jsx)(`p`,{className:`mt-3`,children:`Os modelos digitalizados estão inventariados como referências reservadas. Conteúdo, actualidade e requisitos legais aguardam OCR, conferência oficial e revisão. Não use esta orientação como checklist oficial.`})]}),n[10]=h):h=n[10];let g;return n[11]===l?g=n[12]:(g=(0,i.jsxs)(`main`,{className:`mx-auto max-w-5xl space-y-8 p-6 print:p-0`,children:[l,f,p,m,h]}),n[11]=l,n[12]=g),g}export{a as default};
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{t as e}from"./jsx-runtime-BpzPEenQ.js";import{t}from"./compiler-runtime-sKsOXjDo.js";import{n,r}from"./shared-B56M-NjF.js";var i=t(),a=e(),o={investment_accounts:`Perfil de investimento`,investment_company_declarations:`Declaração de empresa`,investment_submissions:`Manifestação de interesse`,investment_messages:`Mensagem de acompanhamento`,investment_reference_options:`Opção de formulário`,opportunity_context:`Contexto da oportunidade`,sectors:`Sector`,opportunities:`Oportunidade`,interest_requests:`Pedido`,investors:`Investidor`,contacts:`Contacto`,leads:`Lead`,tasks:`Tarefa`,projects:`Projecto`,economic_clusters:`Cluster`,cluster_projects:`Associação projecto–cluster`,value_chains:`Etapa da cadeia de valor`,value_chain_links:`Ligação entre etapas`,investment_gaps:`Lacuna de investimento`},s={version:`Versão`,active:`Activo`,name:`Nome`,slug:`Endereço`,description:`Descrição`,short_description:`Descrição curta`,status:`Estado`,is_active:`Activo`,is_featured:`Destaque`,sort_order:`Ordem`,sector_id:`Sector`,maturity_level:`Maturidade`,maturity_label:`Descrição da maturidade`,estimated_investment_amount:`Investimento`,estimated_investment_currency:`Moeda`,reference:`Referência`,title:`Título`,summary:`Resumo`,province:`Província`,district:`Distrito`,promoter_name:`Promotor`,promoter_type:`Tipo de promotor`,financing_modality:`Financiamento`,expected_impact:`Impacto`,published_at:`Publicação`,reviewed_at:`Data de revisão`,reviewed_by:`Responsável pela revisão`};function c(e){return e==null?`—`:typeof e==`boolean`?e?`Sim`:`Não`:typeof e==`object`?JSON.stringify(e):typeof e==`string`?e:typeof e==`number`?e.toString():`—`}function l(e){let t=(0,i.c)(13),{events:o}=e,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,a.jsx)(`p`,{className:`text-muted-foreground`,children:`Alterações efectuadas na gestão do portal. Os textos e contactos pessoais não são copiados para o histórico.`}),t[0]=s):s=t[0];let c;t[1]===o.data?c=t[2]:(c=o.data.map(u),t[1]=o.data,t[2]=c);let l;t[3]===c?l=t[4]:(l=(0,a.jsx)(`div`,{className:`space-y-4`,children:c}),t[3]=c,t[4]=l);let d;t[5]===o.data.length?d=t[6]:(d=!o.data.length&&(0,a.jsx)(`p`,{children:`Ainda não existem alterações registadas.`}),t[5]=o.data.length,t[6]=d);let f;t[7]===o?f=t[8]:(f=(0,a.jsx)(r,{page:o}),t[7]=o,t[8]=f);let p;return t[9]!==l||t[10]!==d||t[11]!==f?(p=(0,a.jsxs)(n,{title:`Histórico de alterações`,children:[s,l,d,f]}),t[9]=l,t[10]=d,t[11]=f,t[12]=p):p=t[12],p}function u(e){return(0,a.jsxs)(`article`,{className:`space-y-2 rounded border p-4`,children:[(0,a.jsxs)(`h2`,{className:`font-semibold break-words`,children:[o[e.entity_type]??e.entity_type,` #`,e.after_data.record_id,` ·`,` `,e.action===`created`?`Criado`:`Actualizado`]}),(0,a.jsxs)(`p`,{children:[e.actor??`Utilizador indisponível`,` ·`,` `,new Intl.DateTimeFormat(`pt-MZ`,{dateStyle:`medium`,timeStyle:`short`,timeZone:`Africa/Maputo`}).format(new Date(e.occurred_at)),` `,`(Maputo)`]}),(0,a.jsxs)(`p`,{className:`text-sm break-words`,children:[`Campos:`,` `,e.after_data.changed_fields.map(d).join(`, `)]}),Object.entries(e.after_data.values).filter(t=>{let[n,r]=t;return JSON.stringify(e.before_data.values[n])!==JSON.stringify(r)}).map(t=>{let[n,r]=t;return(0,a.jsxs)(`p`,{className:`text-sm break-words`,children:[s[n]??n,`:`,` `,c(e.before_data.values[n]??`—`),` `,`→ `,c(r)]},n)})]},e.id)}function d(e){return s[e]??e}export{l as default};
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{t as e}from"./jsx-runtime-BpzPEenQ.js";import{t}from"./utils-CCDJ05Ll.js";var n=e();function r({message:e,className:r=``,...i}){return e?(0,n.jsx)(`p`,{...i,className:t(`text-sm text-red-600 dark:text-red-400`,r),children:e}):null}export{r as t};
|
||||
+1
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{n as t,t as n}from"./jsx-runtime-BpzPEenQ.js";import{a as r,i,n as a}from"./shared-B56M-NjF.js";import{n as o}from"./profile-json-Bb5H6-rZ.js";var s=e(t(),1),c=n();function l(e){let[t,n]=(0,s.useState)(e),[l,u]=(0,s.useState)(``),[d,f]=(0,s.useState)(!1),[p,m]=(0,s.useState)(``),[h,g]=(0,s.useState)(``),[_,v]=(0,s.useState)(!1),[y,b]=(0,s.useState)(``);async function x(e=!1){v(!0),b(``);try{let r=await o(`/management/profile-install`+(e?`/bootstrap`:``),{hash:t.hash,confirm:d,reason:l,idempotency_key:crypto.randomUUID(),...e?{first_user_id:Number(p),second_user_id:Number(h)}:{}});b(e?`Dupla inicializada. Inicie uma nova sessão como um dos titulares designados; MFA permanece obrigatório.`:r.changed?`Schema instalado. Perfis ainda não disponibilizados; nenhuma conta ou atribuição criada.`:`Schema já instalado. Nenhuma reinstalação ou duplicação.`),e||n(await o(`/management/profile-install`,{},`GET`)),f(!1)}catch(e){b(e instanceof Error?e.message:`Resposta indisponível; consulte o estado antes de repetir.`)}finally{v(!1)}}return(0,c.jsxs)(a,{title:`Instalação dos perfis — 040000`,children:[(0,c.jsxs)(`p`,{children:[`Base `,t.target.database,`:`,t.target.port,` ·`,` `,t.installed?`Schema instalado`:`Schema por instalar`]}),(0,c.jsxs)(`p`,{children:[`Preparação:`,` `,t.ready?`Provas atuais verificadas`:`Dependências ou provas por completar`,`. Preparação não significa instalação ou disponibilização dos perfis.`]}),!t.consistent&&(0,c.jsx)(`p`,{role:`alert`,children:`Ledger e schema divergem. Recuperar a consistência antes de instalar.`}),(0,c.jsx)(`ul`,{children:Object.entries(t.dependencies).map(([e,t])=>(0,c.jsxs)(`li`,{children:[e,`: `,t?`presente`:`pendente`]},e))}),(0,c.jsx)(`ul`,{children:t.changes.map(e=>(0,c.jsx)(`li`,{children:e},e))}),(0,c.jsxs)(`p`,{children:[`Backup/restauro: `,t.backupDate??`Prova atual pendente`]}),(0,c.jsx)(`p`,{children:t.rollback}),(0,c.jsxs)(`label`,{className:`block`,children:[`Fundamento`,(0,c.jsx)(`textarea`,{className:r,value:l,minLength:20,maxLength:1e3,onChange:e=>u(e.target.value)})]}),(0,c.jsxs)(`label`,{className:`block`,children:[(0,c.jsx)(`input`,{type:`checkbox`,checked:d,onChange:e=>f(e.target.checked)}),` `,`Confirmo exclusivamente a ação indicada nesta base`]}),(0,c.jsx)(`button`,{className:i,disabled:_||!d||!t.ready||t.installed||!t.consistent||l.length<20,onClick:()=>void x(),children:`Instalar schema 040000`}),(0,c.jsxs)(`section`,{className:`space-y-3 rounded border p-4`,children:[(0,c.jsx)(`h2`,{children:`Inicialização separada dos dois superutilizadores`}),(0,c.jsx)(`p`,{children:t.bootstrap.rule}),t.bootstrap.initialized?(0,c.jsxs)(`p`,{children:[`Dupla já inicializada:`,` `,t.bootstrap.holders.join(` e `),`; versão`,` `,t.bootstrap.version,`. Use a substituição atómica autorizada; não reinicialize.`]}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(`label`,{className:`block`,children:[`ID da primeira conta explicitamente designada`,(0,c.jsx)(`input`,{className:r,type:`number`,min:1,value:p,onChange:e=>m(e.target.value)})]}),(0,c.jsxs)(`label`,{className:`block`,children:[`ID da segunda conta explicitamente designada`,(0,c.jsx)(`input`,{className:r,type:`number`,min:1,value:h,onChange:e=>g(e.target.value)})]}),(0,c.jsx)(`button`,{className:i,disabled:_||!d||!t.installed||!p||!h||p===h||l.length<20,onClick:()=>void x(!0),children:`Inicializar apenas estas duas contas`})]})]}),(0,c.jsx)(`p`,{role:`status`,children:y})]})}export{l as default};
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{o as e,r as t}from"./dist-BRfsww6z.js";import{t as n}from"./jsx-runtime-BpzPEenQ.js";import{t as r}from"./compiler-runtime-sKsOXjDo.js";import{n as i}from"./shared-B56M-NjF.js";import{Errors as a,labels as o}from"./shared-CmVpbARN.js";var s=r(),c=n();function l(n){let r=(0,s.c)(33),o;r[0]===n.hash?o=r[1]:(o={hash:n.hash},r[0]=n.hash,r[1]=o);let l=e(o),f=n.installed?`Instalada`:`Preparada para aplicação autenticada`,p;r[2]!==n.target.database||r[3]!==n.target.port||r[4]!==f?(p=(0,c.jsxs)(`p`,{children:[`Destino: `,n.target.database,`:`,n.target.port,`. Estado:`,` `,f,`.`]}),r[2]=n.target.database,r[3]=n.target.port,r[4]=f,r[5]=p):p=r[5];let m=n.backupVerified?`Comprovados`:`Pendentes`,h=n.qaVerified?`Comprovada`:`Pendente`,g;r[6]!==n.backupDate||r[7]!==m||r[8]!==h?(g=(0,c.jsxs)(`p`,{children:[`Backup e restauro:`,` `,m,` ·`,` `,n.backupDate,`. QA desta versão:`,` `,h,`.`]}),r[6]=n.backupDate,r[7]=m,r[8]=h,r[9]=g):g=r[9];let _;r[10]===n.changes?_=r[11]:(_=n.changes.map(d),r[10]=n.changes,r[11]=_);let v;r[12]===_?v=r[13]:(v=(0,c.jsx)(`ul`,{className:`list-disc pl-5`,children:_}),r[12]=_,r[13]=v);let y;r[14]===n.records.length?y=r[15]:(y=(0,c.jsxs)(`h2`,{className:`text-xl font-bold`,children:[`Propostas antigas a preservar: `,n.records.length]}),r[14]=n.records.length,r[15]=y);let b;r[16]===n.records?b=r[17]:(b=n.records.map(u),r[16]=n.records,r[17]=b);let x;r[18]!==l||r[19]!==n.backupVerified||r[20]!==n.installed||r[21]!==n.qaVerified?(x=!n.installed&&(0,c.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),l.post(`/management/partnerships-install`)},children:[(0,c.jsx)(a,{errors:l.errors}),(0,c.jsx)(`button`,{className:`inline-flex rounded bg-emerald-800 px-4 py-2 text-white disabled:opacity-50`,disabled:l.processing||!n.backupVerified||!n.qaVerified,children:`Aplicar módulo preservando propostas`})]}),r[18]=l,r[19]=n.backupVerified,r[20]=n.installed,r[21]=n.qaVerified,r[22]=x):x=r[22];let S;r[23]===n.installed?S=r[24]:(S=n.installed&&(0,c.jsx)(t,{href:`/parcerias/painel`,className:`underline`,children:`Abrir painel da Bolsa`}),r[23]=n.installed,r[24]=S);let C;return r[25]!==x||r[26]!==S||r[27]!==p||r[28]!==g||r[29]!==v||r[30]!==y||r[31]!==b?(C=(0,c.jsx)(i,{title:`Aplicação da Bolsa de Parcerias`,children:(0,c.jsxs)(`div`,{className:`space-y-5`,children:[p,g,v,y,b,x,S]})}),r[25]=x,r[26]=S,r[27]=p,r[28]=g,r[29]=v,r[30]=y,r[31]=b,r[32]=C):C=r[32],C}function u(e){return(0,c.jsxs)(`p`,{children:[e.id,` · `,e.title,` · Autor `,e.user_id,` ·`,` `,o[e.status]??e.status]},e.id)}function d(e){return(0,c.jsx)(`li`,{children:e},e)}export{l as default};
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
+1
File diff suppressed because one or more lines are too long
+2
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{n as t,t as n}from"./jsx-runtime-BpzPEenQ.js";import{t as r}from"./compiler-runtime-sKsOXjDo.js";import{t as i}from"./interactive-investment-map-Djtmo_8_.js";import{t as a}from"./territory-geometry-preview-CByDJVgK.js";var o=r(),s=e(t(),1),c=n();function l(e){let t=(0,o.c)(21),{filters:n,territoryId:r}=e,l;t[0]===n?l=t[1]:(l=JSON.stringify(n),t[0]=n,t[1]=l);let f=l,[p,m]=(0,s.useState)(null),h;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(h=[],t[2]=h):h=t[2];let[g,_]=(0,s.useState)(h),[v,y]=(0,s.useState)(``),b;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(b=[],t[3]=b):b=t[3];let[x,S]=(0,s.useState)(b),C,w;t[4]===f?(C=t[5],w=t[6]):(C=()=>{let e=new AbortController,t=new URLSearchParams(JSON.parse(f));return m(null),S([]),fetch(`/api/v1/investment/map?${t}`,{signal:e.signal,headers:{Accept:`application/json`}}).then(d).then(t=>{e.signal.aborted||(m(t.features),S(t.areas??[]),_(t.unlocated??[]),y(t.truncated?`Cobertura limitada: refine os filtros.`:``))}).catch(t=>{e.signal.aborted||y(t.message)}),()=>e.abort()},w=[f],t[4]=f,t[5]=C,t[6]=w),(0,s.useEffect)(C,w);let T;t[7]===v?T=t[8]:(T=v&&(0,c.jsx)(`p`,{role:`alert`,children:v}),t[7]=v,t[8]=T);let E;t[9]!==x||t[10]!==p?(E=(0,c.jsx)(i,{points:p,areas:x}),t[9]=x,t[10]=p,t[11]=E):E=t[11];let D=r||String(n.locality_id||n.admin_post_id||n.district_id||n.province_id||n.geo_location_id||``),O;t[12]===D?O=t[13]:(O=(0,c.jsx)(a,{territoryId:D}),t[12]=D,t[13]=O);let k;t[14]===g?k=t[15]:(k=g.length>0&&(0,c.jsxs)(`div`,{children:[(0,c.jsxs)(`p`,{children:[g.length,` investimentos sem ponto público utilizável. Consulte as fichas para localizações documentadas sem coordenadas:`]}),(0,c.jsx)(`ul`,{children:g.map(u)})]}),t[14]=g,t[15]=k);let A;return t[16]!==k||t[17]!==T||t[18]!==E||t[19]!==O?(A=(0,c.jsxs)(`section`,{className:`space-y-3`,children:[T,E,O,k]}),t[16]=k,t[17]=T,t[18]=E,t[19]=O,t[20]=A):A=t[20],A}function u(e){return(0,c.jsx)(`li`,{children:(0,c.jsx)(`a`,{href:e.url,className:`underline`,children:e.title})},e.id)}async function d(e){if(!e.ok)throw Error(`Mapa indisponível.`);return e.json()}export{l as t};
|
||||
+1
@@ -0,0 +1 @@
|
||||
var e=[`Ideia identificada`,`Pré-estudo disponível`,`Estudo de viabilidade em curso`,`Projecto estruturado`,`Pronto para investimento`,`Em negociação ou implementação`];export{e as t};
|
||||
+1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{n as t,o as n,r,u as i}from"./dist-BRfsww6z.js";import{n as a,t as o}from"./jsx-runtime-BpzPEenQ.js";import{t as s}from"./compiler-runtime-sKsOXjDo.js";var c=s(),l=e(a(),1),u=o();function d(e){let a=(0,c.c)(46),{contexts:o,contentSource:s}=e,[d]=(0,l.useState)(p),m=s?.id,h;a[0]!==d||a[1]!==m?(h={title:``,client_key:d,reuse_consent:!1,content_resource_id:m},a[0]=d,a[1]=m,a[2]=h):h=a[2];let g=n(h),_,v;a[3]===Symbol.for(`react.memo_cache_sentinel`)?(_=(0,u.jsx)(t,{title:`Os meus investimentos`}),v=(0,u.jsx)(`h1`,{className:`text-2xl font-semibold`,children:`Os meus investimentos`}),a[3]=_,a[4]=v):(_=a[3],v=a[4]);let y;a[5]===s?y=a[6]:(y=s&&(0,u.jsxs)(`p`,{children:[`Preparar a partir de`,` `,(0,u.jsx)(r,{className:`underline`,href:s.href,children:s.title}),`. A fonte e a versão serão guardadas no dossier escolhido.`]}),a[5]=s,a[6]=y);let b;a[7]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,u.jsx)(`p`,{children:`Prepare cada investimento no seu dossier. Pode trabalhar em várias etapas em paralelo.`}),a[7]=b):b=a[7];let x;if(a[8]!==s||a[9]!==o){let e;a[11]===s?e=a[12]:(e=e=>(0,u.jsxs)(`li`,{className:`rounded-xl border p-4`,children:[(0,u.jsx)(r,{className:`font-semibold underline`,href:`/investimentos/${e.id}`,children:e.title}),(0,u.jsxs)(`p`,{className:`text-sm`,children:[`Guardado em`,` `,new Date(e.updated_at).toLocaleString(`pt-MZ`)]}),s&&(0,u.jsx)(`button`,{type:`button`,className:`mt-3 rounded border p-2`,onClick:()=>i.post(`/investimentos/${e.id}/conteudos`,{version:e.version,resource_id:s.id}),children:`Continuar neste dossier com o artigo`})]},e.id),a[11]=s,a[12]=e),x=o.map(e),a[8]=s,a[9]=o,a[10]=x}else x=a[10];let S;a[13]===x?S=a[14]:(S=(0,u.jsx)(`ul`,{className:`grid gap-4 md:grid-cols-2`,children:x}),a[13]=x,a[14]=S);let C;a[15]===o.length?C=a[16]:(C=!o.length&&(0,u.jsx)(`p`,{children:`Ainda não criou um investimento neste percurso.`}),a[15]=o.length,a[16]=C);let w;a[17]===g?w=a[18]:(w=e=>{e.preventDefault(),g.post(`/investimentos`)},a[17]=g,a[18]=w);let T;a[19]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,u.jsx)(`h2`,{className:`text-lg font-semibold`,children:`Preparar um investimento`}),a[19]=T):T=a[19];let E;a[20]===g?E=a[21]:(E=e=>g.setData(`title`,e.target.value),a[20]=g,a[21]=E);let D;a[22]!==g.data.title||a[23]!==E?(D=(0,u.jsxs)(`label`,{className:`grid gap-1`,children:[`Título`,(0,u.jsx)(`input`,{required:!0,maxLength:200,className:`rounded border p-2`,value:g.data.title,onChange:E})]}),a[22]=g.data.title,a[23]=E,a[24]=D):D=a[24];let O;a[25]===g?O=a[26]:(O=e=>g.setData(`reuse_consent`,e.target.checked),a[25]=g,a[26]=O);let k;a[27]!==g.data.reuse_consent||a[28]!==O?(k=(0,u.jsxs)(`label`,{className:`flex gap-2`,children:[(0,u.jsx)(`input`,{type:`checkbox`,checked:g.data.reuse_consent,onChange:O}),`Autorizo reutilizar o meu perfil neste dossier privado.`]}),a[27]=g.data.reuse_consent,a[28]=O,a[29]=k):k=a[29];let A;a[30]===g.errors?A=a[31]:(A=Object.values(g.errors).map(f),a[30]=g.errors,a[31]=A);let j;a[32]===g.processing?j=a[33]:(j=(0,u.jsx)(`button`,{disabled:g.processing,className:`bg-primary text-primary-foreground rounded px-4 py-2`,children:`Criar e guardar dossier`}),a[32]=g.processing,a[33]=j);let M;a[34]!==w||a[35]!==D||a[36]!==k||a[37]!==A||a[38]!==j?(M=(0,u.jsxs)(`form`,{className:`max-w-xl space-y-4 rounded-xl border p-5`,onSubmit:w,children:[T,D,k,A,j]}),a[34]=w,a[35]=D,a[36]=k,a[37]=A,a[38]=j,a[39]=M):M=a[39];let N;a[40]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,u.jsxs)(`nav`,{className:`flex flex-wrap gap-4`,"aria-label":`Ferramentas`,children:[(0,u.jsx)(r,{className:`underline`,href:`/simulador-fiscal`,children:`Simulador`}),(0,u.jsx)(r,{className:`underline`,href:`/balcao-virtual/painel`,children:`Balcão`}),(0,u.jsx)(r,{className:`underline`,href:`/investidor`,children:`Oportunidades guardadas`}),(0,u.jsx)(r,{className:`underline`,href:`/dashboard`,children:`Painel`})]}),a[40]=N):N=a[40];let P;return a[41]!==M||a[42]!==y||a[43]!==S||a[44]!==C?(P=(0,u.jsxs)(`main`,{className:`mx-auto max-w-5xl space-y-6 p-4 md:p-8`,children:[_,v,y,b,S,C,M,N]}),a[41]=M,a[42]=y,a[43]=S,a[44]=C,a[45]=P):P=a[45],P}function f(e,t){return(0,u.jsx)(`p`,{role:`alert`,children:e},t)}function p(){return globalThis.crypto.randomUUID()}export{d as default};
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{o as e,r as t}from"./dist-BRfsww6z.js";import{t as n}from"./jsx-runtime-BpzPEenQ.js";import{t as r}from"./compiler-runtime-sKsOXjDo.js";import{a as i,i as a,n as o,r as s}from"./shared-B56M-NjF.js";var c=r(),l=n();function u(t){let n=(0,c.c)(29),{investors:r,filters:u}=t,f=u.q??``,p;n[0]===f?p=n[1]:(p={q:f},n[0]=f,n[1]=p);let m=e(p),h;n[2]===m?h=n[3]:(h=e=>{e.preventDefault(),m.get(`/management/crm/investors`,{preserveState:!1})},n[2]=m,n[3]=h);let g;n[4]===m?g=n[5]:(g=e=>m.setData(`q`,e.target.value),n[4]=m,n[5]=g);let _;n[6]!==m.data.q||n[7]!==g?(_=(0,l.jsx)(`input`,{"aria-label":`Pesquisar investidores`,className:i,value:m.data.q,onChange:g}),n[6]=m.data.q,n[7]=g,n[8]=_):_=n[8];let v;n[9]===m.processing?v=n[10]:(v=(0,l.jsx)(`button`,{className:a,disabled:m.processing,children:`Pesquisar`}),n[9]=m.processing,n[10]=v);let y;n[11]!==h||n[12]!==_||n[13]!==v?(y=(0,l.jsxs)(`form`,{className:`flex gap-3`,onSubmit:h,children:[_,v]}),n[11]=h,n[12]=_,n[13]=v,n[14]=y):y=n[14];let b;n[15]===Symbol.for(`react.memo_cache_sentinel`)?(b=(0,l.jsx)(`p`,{children:`Os novos investidores são registados ao converter um pedido em lead, com revisão do contacto e da identidade.`}),n[15]=b):b=n[15];let x;n[16]===r.data?x=n[17]:(x=r.data.map(d),n[16]=r.data,n[17]=x);let S;n[18]===x?S=n[19]:(S=(0,l.jsx)(`div`,{className:`space-y-3`,children:x}),n[18]=x,n[19]=S);let C;n[20]===r.data.length?C=n[21]:(C=!r.data.length&&(0,l.jsx)(`p`,{children:`Nenhum investidor encontrado.`}),n[20]=r.data.length,n[21]=C);let w;n[22]===r?w=n[23]:(w=(0,l.jsx)(s,{page:r}),n[22]=r,n[23]=w);let T;return n[24]!==S||n[25]!==C||n[26]!==w||n[27]!==y?(T=(0,l.jsxs)(o,{title:`CRM — Investidores`,children:[y,b,S,C,w]}),n[24]=S,n[25]=C,n[26]=w,n[27]=y,n[28]=T):T=n[28],T}function d(e){return(0,l.jsxs)(`article`,{className:`rounded border p-4`,children:[(0,l.jsx)(t,{className:`font-semibold underline`,href:`/management/crm/investors/${e.id}`,children:e.legal_name}),(0,l.jsx)(`p`,{children:{prospect:`Potencial investidor`,active:`Activo`,inactive:`Inactivo`}[e.status]??e.status})]},e.id)}export{u as default};
|
||||
+1
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{n as t,t as n}from"./jsx-runtime-BpzPEenQ.js";import{t as r}from"./compiler-runtime-sKsOXjDo.js";import{t as i}from"./dist-DDq_DSJX.js";import{t as a}from"./utils-CCDJ05Ll.js";var o=r(),s=e(t(),1),c=n(),l=Object.defineProperty,u=s.forwardRef(((e,t)=>l(e,`name`,{value:t,configurable:!0}))(function(e,t){return(0,c.jsx)(i.label,{...e,ref:t,onMouseDown:t=>{t.target.closest(`button, input, select, textarea`)||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})},`Label`));function d(e){let t=(0,o.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=a(`text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50`,n),t[3]=n,t[4]=i);let s;return t[5]!==r||t[6]!==i?(s=(0,c.jsx)(u,{"data-slot":`label`,className:i,...r}),t[5]=r,t[6]=i,t[7]=s):s=t[7],s}export{d as t};
|
||||
+1
@@ -0,0 +1 @@
|
||||
var e={assistant:[`Assistente com fontes`,`Evidence assistant`],search:[`Pesquisa documental`,`Document search`],recommend:[`Correspondência de oportunidades`,`Opportunity matching`],classify:[`Triagem de pedidos`,`Interest triage`],quality:[`Qualidade dos dados`,`Data quality`],sla:[`Prazos e tarefas`,`Deadlines and tasks`],summary:[`Excertos de documentos`,`Document excerpts`]},t={classify:`interest_triage`,quality:`data_quality`,sla:`execution_monitoring`},n={pending:`Pendente`,approved:`Autorizada para consulta interna`,revoked:`Revogada`,accepted:`Aceite na revisão interna`,rejected:`Rejeitado`,official:`Oficial — natureza declarada da fonte`,historical:`Histórica`,illustrative:`Ilustrativa`};export{t as n,n as r,e as t};
|
||||
BIN
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user