create-rubrica 2.1.2 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +809 -119
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ var __export = (target, all) => {
|
|
|
13
13
|
var define_CORE_MODULES_default;
|
|
14
14
|
var init_define_CORE_MODULES = __esm({
|
|
15
15
|
"<define:__CORE_MODULES__>"() {
|
|
16
|
-
define_CORE_MODULES_default = { users: ["isSetupRequired", "me", "list", "create", "setRole", "remove", "suspend", "reactivate", "resetPassword", "changePassword", "actor", "assignRoleInternal", "clearMustChangePassword", "setupRoot", "findPasswordAccount", "afterPasswordReset", "passwordAccountOf", "afterAdminReset", "resetPasswordInternal"], audit: ["recent", "logFromAction", "hitRateLimit", "cleanup"], site: ["snapshot"], settings: ["get", "plugins", "update", "setPlugin", "init"], texts: ["list", "set", "reset"], media: ["generateUploadUrl", "save", "list", "folders", "get", "update", "normalizeFolders", "remove"], pages: ["blockCatalog", "list", "get", "getByPath", "create", "update", "reorderBlocks", "setBlockVisible", "upsertBlock", "removeBlock", "publish", "unpublish", "remove", "restore", "removePermanently"], posts: ["list", "get", "create", "update", "publish", "unpublish", "reorder", "remove", "restore", "removePermanently"], projects: ["list", "get", "create", "update", "publish", "unpublish", "reorder", "remove", "restore", "removePermanently"], services: ["list", "get", "create", "update", "publish", "unpublish", "reorder", "remove", "restore", "removePermanently"], testimonials: ["list", "get", "create", "update", "publish", "unpublish", "reorder", "remove", "restore", "removePermanently"], faq: ["list", "get", "create", "update", "publish", "unpublish", "reorder", "remove", "restore", "removePermanently"], resume: ["list", "get", "create", "update", "publish", "unpublish", "reorder", "remove", "restore", "removePermanently"], routine: ["list", "get", "create", "update", "publish", "unpublish", "reorder", "remove", "restore", "removePermanently"], plans: ["list", "get", "create", "update", "publish", "unpublish", "reorder", "remove", "restore", "removePermanently"], team: ["list", "get", "create", "update", "publish", "unpublish", "reorder", "remove", "restore", "removePermanently"], contacts: ["list", "get", "unreadCount", "markRead", "markUnread", "archive", "unarchive", "remove", "destinations", "setDestinations", "failedDeliveries", "retryDelivery", "publicConfig", "submit", "deliveryContext", "deliver", "recordAttempt", "cleanup"], testimonialIntake: ["list", "approve", "reject", "submit"], privacy: ["exportData", "erase", "policyStatus", "policyDraft", "generatePolicy"], publish: ["status", "trigger", "begin", "finish", "markPublished"], translation: ["translate", "translateDocument", "applyDocument", "prepare", "apply"], commerce: ["notifyAdmin", "siteOrigins", "access", "recordInvalidWebhook", "exportPersonalData", "erasePersonalData"], proposals: ["list", "get", "versions", "getAcceptance", "create", "update", "resetPassword", "remove", "restore", "removePermanently", "getPublic", "checkSession", "generateSignatureUploadUrl", "getAcceptanceByToken", "createSession", "accept", "invalidateSessions", "cleanupExpiredSessions"], contractTemplates: ["list", "get", "getDefault", "create", "update", "remove", "setDefault", "seedDefault"], checkouts: ["status", "list", "get", "create", "remove", "restore", "removePermanently", "linkPlan", "unlinkPlan", "listLinks", "getByLink", "initiatePayment", "startFromLink", "getById", "claimPayment", "releasePayment", "setCustomerId", "clearCharge", "patchGatewayData", "markPaidByLink", "markRefundedByLink", "expireOldCheckouts", "cleanupPaymentEvents"], asaas: ["createCustomer", "createCharge", "deleteCharge", "listCustomers", "adminCreateCustomer", "adminDeleteCustomer", "listCharges", "getCharge", "adminCreateCharge", "cancelCharge", "listInvoices"], aiResumes: ["list", "get", "generate", "remove", "restore", "removePermanently", "cvSource", "save"], panel: ["validatePage", "mediaUsage", "replaceMedia"], seed: ["status", "apply", "patchSettings"] };
|
|
16
|
+
define_CORE_MODULES_default = { users: ["isSetupRequired", "me", "list", "create", "setRole", "remove", "suspend", "reactivate", "resetPassword", "changePassword", "actor", "assignRoleInternal", "clearMustChangePassword", "setupRoot", "findPasswordAccount", "afterPasswordReset", "passwordAccountOf", "afterAdminReset", "resetPasswordInternal"], audit: ["recent", "logFromAction", "hitRateLimit", "cleanup"], site: ["snapshot"], settings: ["get", "plugins", "update", "setPlugin", "init"], texts: ["list", "set", "reset"], media: ["generateUploadUrl", "save", "list", "folders", "get", "update", "normalizeFolders", "remove"], pages: ["blockCatalog", "list", "get", "getByPath", "create", "update", "reorderBlocks", "setBlockVisible", "upsertBlock", "removeBlock", "publish", "unpublish", "remove", "restore", "removePermanently"], posts: ["list", "get", "create", "update", "publish", "unpublish", "reorder", "remove", "restore", "removePermanently"], projects: ["list", "get", "create", "update", "publish", "unpublish", "reorder", "remove", "restore", "removePermanently"], collections: ["upsertProjectBlock", "reorderProjectBlocks", "setProjectBlockVisible", "removeProjectBlock", "migrateSectionsToBlocks"], services: ["list", "get", "create", "update", "publish", "unpublish", "reorder", "remove", "restore", "removePermanently"], testimonials: ["list", "get", "create", "update", "publish", "unpublish", "reorder", "remove", "restore", "removePermanently"], faq: ["list", "get", "create", "update", "publish", "unpublish", "reorder", "remove", "restore", "removePermanently"], resume: ["list", "get", "create", "update", "publish", "unpublish", "reorder", "remove", "restore", "removePermanently"], routine: ["list", "get", "create", "update", "publish", "unpublish", "reorder", "remove", "restore", "removePermanently"], plans: ["list", "get", "create", "update", "publish", "unpublish", "reorder", "remove", "restore", "removePermanently"], team: ["list", "get", "create", "update", "publish", "unpublish", "reorder", "remove", "restore", "removePermanently"], contacts: ["list", "get", "unreadCount", "markRead", "markUnread", "archive", "unarchive", "remove", "destinations", "setDestinations", "failedDeliveries", "retryDelivery", "publicConfig", "submit", "deliveryContext", "deliver", "recordAttempt", "cleanup"], testimonialIntake: ["list", "approve", "reject", "submit"], privacy: ["exportData", "erase", "policyStatus", "policyDraft", "generatePolicy"], publish: ["status", "trigger", "begin", "finish", "markPublished"], translation: ["translate", "translateDocument", "applyDocument", "prepare", "apply"], commerce: ["notifyAdmin", "siteOrigins", "access", "recordInvalidWebhook", "exportPersonalData", "erasePersonalData"], proposals: ["list", "get", "versions", "getAcceptance", "create", "update", "resetPassword", "remove", "restore", "removePermanently", "getPublic", "checkSession", "generateSignatureUploadUrl", "getAcceptanceByToken", "createSession", "accept", "invalidateSessions", "cleanupExpiredSessions"], contractTemplates: ["list", "get", "getDefault", "create", "update", "remove", "setDefault", "seedDefault"], checkouts: ["status", "list", "get", "create", "remove", "restore", "removePermanently", "linkPlan", "unlinkPlan", "listLinks", "getByLink", "initiatePayment", "startFromLink", "getById", "claimPayment", "releasePayment", "setCustomerId", "clearCharge", "patchGatewayData", "markPaidByLink", "markRefundedByLink", "expireOldCheckouts", "cleanupPaymentEvents"], asaas: ["createCustomer", "createCharge", "deleteCharge", "listCustomers", "adminCreateCustomer", "adminDeleteCustomer", "listCharges", "getCharge", "adminCreateCharge", "cancelCharge", "listInvoices"], aiResumes: ["list", "get", "generate", "remove", "restore", "removePermanently", "cvSource", "save"], panel: ["validateProjectBlocks", "validatePage", "mediaUsage", "replaceMedia"], seed: ["status", "apply", "patchSettings"] };
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
|
|
@@ -496,7 +496,7 @@ var init_telemetry = __esm({
|
|
|
496
496
|
TELEMETRY_DOCS = "https://userubrica.vercel.app/docs/guia/telemetria";
|
|
497
497
|
TELEMETRY_TIMEOUT_MS = 2e3;
|
|
498
498
|
FORMAT_VERSION = 1;
|
|
499
|
-
CLI_VERSION = true ? "2.
|
|
499
|
+
CLI_VERSION = true ? "2.2.0" : "0.0.0";
|
|
500
500
|
OFF_VALUES = ["0", "false", "nao", "n\xE3o", "off", "desligada", "desligado"];
|
|
501
501
|
isOn = (value) => value !== void 0 && value !== "" && !["0", "false"].includes(value.toLowerCase());
|
|
502
502
|
NOTICE = `O Rubrica manda, sem dados pessoais, as escolhas feitas no CLI (tipo, tema, cores, plugins) para saber o que as pessoas mais usam.
|
|
@@ -934,7 +934,7 @@ var init_package = __esm({
|
|
|
934
934
|
"../core/package.json"() {
|
|
935
935
|
package_default = {
|
|
936
936
|
name: "@rubrica/core",
|
|
937
|
-
version: "2.
|
|
937
|
+
version: "2.3.0",
|
|
938
938
|
description: "N\xFAcleo do Rubrica: contrato de blocos e temas, idiomas, integra\xE7\xE3o Astro, backend Convex, painel e MCP.",
|
|
939
939
|
type: "module",
|
|
940
940
|
license: "GPL-3.0-only",
|
|
@@ -998,7 +998,7 @@ var init_package = __esm({
|
|
|
998
998
|
"@types/react": "^19.2.0",
|
|
999
999
|
"@types/react-dom": "^19.2.0",
|
|
1000
1000
|
astro: "^7.4.11",
|
|
1001
|
-
convex: "^1.
|
|
1001
|
+
convex: "^1.50.0",
|
|
1002
1002
|
"convex-test": "^0.0.67",
|
|
1003
1003
|
"happy-dom": "^21.0.4",
|
|
1004
1004
|
react: "^19.2.1",
|
|
@@ -1033,7 +1033,7 @@ var init_package2 = __esm({
|
|
|
1033
1033
|
"../mcp/package.json"() {
|
|
1034
1034
|
package_default2 = {
|
|
1035
1035
|
name: "@rubrica/mcp",
|
|
1036
|
-
version: "2.0
|
|
1036
|
+
version: "2.1.0",
|
|
1037
1037
|
description: "Servidor MCP local do Rubrica: o agente edita p\xE1ginas, blocos e cole\xE7\xF5es do site pelo Convex do projeto, com o login de um usu\xE1rio do painel.",
|
|
1038
1038
|
type: "module",
|
|
1039
1039
|
license: "GPL-3.0-only",
|
|
@@ -1070,7 +1070,7 @@ var init_package2 = __esm({
|
|
|
1070
1070
|
dependencies: {
|
|
1071
1071
|
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
1072
1072
|
ajv: "^8.17.1",
|
|
1073
|
-
convex: "^1.
|
|
1073
|
+
convex: "^1.50.0"
|
|
1074
1074
|
},
|
|
1075
1075
|
devDependencies: {
|
|
1076
1076
|
"@auth/core": "^0.41.3",
|
|
@@ -1104,6 +1104,232 @@ var init_i18n = __esm({
|
|
|
1104
1104
|
}
|
|
1105
1105
|
});
|
|
1106
1106
|
|
|
1107
|
+
// ../core/src/i18n/rescission-default.ts
|
|
1108
|
+
var pt, en, es, RESCISSION_DEFAULT;
|
|
1109
|
+
var init_rescission_default = __esm({
|
|
1110
|
+
"../core/src/i18n/rescission-default.ts"() {
|
|
1111
|
+
"use strict";
|
|
1112
|
+
init_define_CORE_MODULES();
|
|
1113
|
+
pt = `## 1. Objetivo
|
|
1114
|
+
|
|
1115
|
+
Esta Pol\xEDtica de Rescis\xE3o estabelece as condi\xE7\xF5es, prazos e consequ\xEAncias aplic\xE1veis \xE0 rescis\xE3o de contratos firmados eletronicamente entre as partes, garantindo previsibilidade, equil\xEDbrio contratual e seguran\xE7a jur\xEDdica.
|
|
1116
|
+
|
|
1117
|
+
## 2. Defini\xE7\xF5es
|
|
1118
|
+
|
|
1119
|
+
Para fins deste documento:
|
|
1120
|
+
|
|
1121
|
+
- **Contratada**: parte respons\xE1vel pela execu\xE7\xE3o dos servi\xE7os descritos na proposta.
|
|
1122
|
+
- **Contratante**: cliente que aceita eletronicamente a proposta.
|
|
1123
|
+
- **Contrato**: proposta comercial aceita eletronicamente.
|
|
1124
|
+
- **Servi\xE7os**: atividades descritas no escopo do contrato.
|
|
1125
|
+
|
|
1126
|
+
## 3. Rescis\xE3o por iniciativa do Contratante
|
|
1127
|
+
|
|
1128
|
+
### 3.1 Rescis\xE3o imotivada
|
|
1129
|
+
|
|
1130
|
+
O Contratante poder\xE1 solicitar a rescis\xE3o do contrato a qualquer momento, mediante comunica\xE7\xE3o formal por escrito. Nessa hip\xF3tese:
|
|
1131
|
+
|
|
1132
|
+
- Os servi\xE7os j\xE1 executados ser\xE3o cobrados proporcionalmente.
|
|
1133
|
+
- Caso o projeto ainda n\xE3o tenha sido iniciado, poder\xE1 ser aplicada multa rescis\xF3ria de at\xE9 **10% do valor total do contrato**, destinada \xE0 cobertura de custos administrativos e de aloca\xE7\xE3o de recursos.
|
|
1134
|
+
- Valores pagos antecipadamente poder\xE3o ser retidos total ou parcialmente, conforme o est\xE1gio de execu\xE7\xE3o do projeto.
|
|
1135
|
+
|
|
1136
|
+
### 3.2 Rescis\xE3o ap\xF3s o in\xEDcio da execu\xE7\xE3o
|
|
1137
|
+
|
|
1138
|
+
Ap\xF3s o in\xEDcio dos servi\xE7os:
|
|
1139
|
+
|
|
1140
|
+
- Ser\xE1 devido o pagamento proporcional \xE0s etapas conclu\xEDdas ou em andamento.
|
|
1141
|
+
- Poder\xE1 ser aplicada multa adicional de at\xE9 **20% sobre o valor restante do contrato**, a t\xEDtulo de compensa\xE7\xE3o por interrup\xE7\xE3o do cronograma e reserva de agenda.
|
|
1142
|
+
|
|
1143
|
+
## 4. Rescis\xE3o por iniciativa da Contratada
|
|
1144
|
+
|
|
1145
|
+
A Contratada poder\xE1 rescindir o contrato nas seguintes hip\xF3teses:
|
|
1146
|
+
|
|
1147
|
+
- Inadimpl\xEAncia do Contratante por per\xEDodo superior a **30 dias** ap\xF3s notifica\xE7\xE3o.
|
|
1148
|
+
- Descumprimento de obriga\xE7\xF5es contratuais que inviabilizem a continuidade dos servi\xE7os.
|
|
1149
|
+
- Solicita\xE7\xF5es reiteradas fora do escopo contratado, mesmo ap\xF3s advert\xEAncia formal.
|
|
1150
|
+
|
|
1151
|
+
Nessas hip\xF3teses, os servi\xE7os j\xE1 executados ser\xE3o cobrados proporcionalmente, e a Contratada entregar\xE1 ao Contratante os materiais produzidos at\xE9 a data da rescis\xE3o, desde que os valores devidos estejam quitados.
|
|
1152
|
+
|
|
1153
|
+
## 5. Rescis\xE3o por justa causa
|
|
1154
|
+
|
|
1155
|
+
Qualquer das partes poder\xE1 rescindir o contrato imediatamente, sem aplica\xE7\xE3o de multa, nos casos de:
|
|
1156
|
+
|
|
1157
|
+
- Viola\xE7\xE3o grave das cl\xE1usulas contratuais.
|
|
1158
|
+
- Pr\xE1tica de ato il\xEDcito relacionado \xE0 execu\xE7\xE3o do contrato.
|
|
1159
|
+
- Caso fortuito ou for\xE7a maior que torne imposs\xEDvel a continuidade do contrato.
|
|
1160
|
+
|
|
1161
|
+
## 6. Consequ\xEAncias da rescis\xE3o
|
|
1162
|
+
|
|
1163
|
+
Em qualquer hip\xF3tese de rescis\xE3o:
|
|
1164
|
+
|
|
1165
|
+
- O acesso a entreg\xE1veis finais, c\xF3digos-fonte, materiais edit\xE1veis ou ativos digitais poder\xE1 ser condicionado \xE0 quita\xE7\xE3o integral dos valores devidos.
|
|
1166
|
+
- Prazos de garantia, suporte ou manuten\xE7\xE3o cessam automaticamente com a rescis\xE3o, salvo disposi\xE7\xE3o expressa em contr\xE1rio.
|
|
1167
|
+
- Nenhuma das partes poder\xE1 utilizar materiais ou informa\xE7\xF5es confidenciais da outra fora dos limites previstos no contrato.
|
|
1168
|
+
|
|
1169
|
+
## 7. Reembolso e pagamentos
|
|
1170
|
+
|
|
1171
|
+
- Reembolsos, quando aplic\xE1veis, ser\xE3o processados em at\xE9 **30 dias \xFAteis** ap\xF3s a formaliza\xE7\xE3o da rescis\xE3o.
|
|
1172
|
+
- Taxas administrativas, custos operacionais e valores referentes a servi\xE7os j\xE1 prestados n\xE3o s\xE3o reembols\xE1veis.
|
|
1173
|
+
|
|
1174
|
+
## 8. Comunica\xE7\xE3o da rescis\xE3o
|
|
1175
|
+
|
|
1176
|
+
A rescis\xE3o dever\xE1 ser comunicada pelo e-mail cadastrado no contrato ou pela plataforma onde a proposta foi aceita. A data de recebimento da comunica\xE7\xE3o ser\xE1 considerada o marco inicial para os efeitos da rescis\xE3o.
|
|
1177
|
+
|
|
1178
|
+
## 9. Foro
|
|
1179
|
+
|
|
1180
|
+
Fica eleito o foro {jurisdiction} para dirimir quaisquer controv\xE9rsias oriundas desta Pol\xEDtica de Rescis\xE3o e do contrato ao qual ela se vincula, com ren\xFAncia expressa a qualquer outro, por mais privilegiado que seja.
|
|
1181
|
+
|
|
1182
|
+
## 10. Disposi\xE7\xF5es finais
|
|
1183
|
+
|
|
1184
|
+
Esta Pol\xEDtica de Rescis\xE3o integra o contrato eletr\xF4nico firmado entre as partes e passa a produzir efeitos a partir do aceite eletr\xF4nico da proposta. Qualquer toler\xE2ncia quanto ao descumprimento de obriga\xE7\xF5es n\xE3o constitui nova\xE7\xE3o ou ren\xFAncia de direitos.`;
|
|
1185
|
+
en = `## 1. Purpose
|
|
1186
|
+
|
|
1187
|
+
This Cancellation Policy sets out the conditions, deadlines and consequences that apply when a contract signed electronically between the parties is terminated, ensuring predictability, contractual balance and legal certainty.
|
|
1188
|
+
|
|
1189
|
+
## 2. Definitions
|
|
1190
|
+
|
|
1191
|
+
For the purposes of this document:
|
|
1192
|
+
|
|
1193
|
+
- **Provider**: the party responsible for delivering the services described in the proposal.
|
|
1194
|
+
- **Client**: the customer who accepts the proposal electronically.
|
|
1195
|
+
- **Contract**: the business proposal accepted electronically.
|
|
1196
|
+
- **Services**: the activities described in the scope of the contract.
|
|
1197
|
+
|
|
1198
|
+
## 3. Termination by the Client
|
|
1199
|
+
|
|
1200
|
+
### 3.1 Termination without cause
|
|
1201
|
+
|
|
1202
|
+
The Client may request termination of the contract at any time by formal written notice. In that case:
|
|
1203
|
+
|
|
1204
|
+
- Services already performed will be charged proportionally.
|
|
1205
|
+
- If the project has not started yet, a termination fee of up to **10% of the total contract value** may apply, covering administrative and resource allocation costs.
|
|
1206
|
+
- Amounts paid in advance may be retained in whole or in part, depending on how far the project has progressed.
|
|
1207
|
+
|
|
1208
|
+
### 3.2 Termination after work has started
|
|
1209
|
+
|
|
1210
|
+
Once the services have started:
|
|
1211
|
+
|
|
1212
|
+
- Payment is due in proportion to the stages completed or in progress.
|
|
1213
|
+
- An additional fee of up to **20% of the remaining contract value** may apply, as compensation for the interrupted schedule and reserved time.
|
|
1214
|
+
|
|
1215
|
+
## 4. Termination by the Provider
|
|
1216
|
+
|
|
1217
|
+
The Provider may terminate the contract if:
|
|
1218
|
+
|
|
1219
|
+
- The Client fails to pay for more than **30 days** after being notified.
|
|
1220
|
+
- The Client breaches contractual obligations in a way that prevents the services from continuing.
|
|
1221
|
+
- The Client repeatedly requests work outside the agreed scope, even after a formal warning.
|
|
1222
|
+
|
|
1223
|
+
In these cases, services already performed will be charged proportionally, and the Provider will hand over the materials produced up to the termination date, provided the amounts due have been paid.
|
|
1224
|
+
|
|
1225
|
+
## 5. Termination for cause
|
|
1226
|
+
|
|
1227
|
+
Either party may terminate the contract immediately, without any fee, in the event of:
|
|
1228
|
+
|
|
1229
|
+
- A serious breach of the contract terms.
|
|
1230
|
+
- An unlawful act related to the performance of the contract.
|
|
1231
|
+
- An act of God or force majeure that makes it impossible to continue the contract.
|
|
1232
|
+
|
|
1233
|
+
## 6. Consequences of termination
|
|
1234
|
+
|
|
1235
|
+
In any case of termination:
|
|
1236
|
+
|
|
1237
|
+
- Access to final deliverables, source code, editable files or digital assets may depend on full payment of the amounts due.
|
|
1238
|
+
- Warranty, support or maintenance periods end automatically on termination, unless expressly agreed otherwise.
|
|
1239
|
+
- Neither party may use the other's materials or confidential information beyond the limits set in the contract.
|
|
1240
|
+
|
|
1241
|
+
## 7. Refunds and payments
|
|
1242
|
+
|
|
1243
|
+
- Refunds, where applicable, will be processed within **30 business days** after the termination is formalized.
|
|
1244
|
+
- Administrative fees, operating costs and amounts for services already performed are non-refundable.
|
|
1245
|
+
|
|
1246
|
+
## 8. Notice of termination
|
|
1247
|
+
|
|
1248
|
+
Termination must be communicated by the email address registered in the contract or through the platform where the proposal was accepted. The date the notice is received marks the start of the termination's effects.
|
|
1249
|
+
|
|
1250
|
+
## 9. Jurisdiction
|
|
1251
|
+
|
|
1252
|
+
The courts {jurisdiction} shall have jurisdiction over any dispute arising from this Cancellation Policy and the contract it belongs to, expressly waiving any other, however privileged.
|
|
1253
|
+
|
|
1254
|
+
## 10. Final provisions
|
|
1255
|
+
|
|
1256
|
+
This Cancellation Policy is part of the electronic contract between the parties and takes effect upon electronic acceptance of the proposal. Any tolerance of a breach of obligations does not constitute novation or waiver of rights.`;
|
|
1257
|
+
es = `## 1. Objetivo
|
|
1258
|
+
|
|
1259
|
+
Esta Pol\xEDtica de Rescisi\xF3n establece las condiciones, plazos y consecuencias aplicables a la rescisi\xF3n de contratos firmados electr\xF3nicamente entre las partes, garantizando previsibilidad, equilibrio contractual y seguridad jur\xEDdica.
|
|
1260
|
+
|
|
1261
|
+
## 2. Definiciones
|
|
1262
|
+
|
|
1263
|
+
Para los fines de este documento:
|
|
1264
|
+
|
|
1265
|
+
- **Contratada**: parte responsable de ejecutar los servicios descritos en la propuesta.
|
|
1266
|
+
- **Contratante**: cliente que acepta electr\xF3nicamente la propuesta.
|
|
1267
|
+
- **Contrato**: propuesta comercial aceptada electr\xF3nicamente.
|
|
1268
|
+
- **Servicios**: actividades descritas en el alcance del contrato.
|
|
1269
|
+
|
|
1270
|
+
## 3. Rescisi\xF3n por iniciativa del Contratante
|
|
1271
|
+
|
|
1272
|
+
### 3.1 Rescisi\xF3n sin causa
|
|
1273
|
+
|
|
1274
|
+
El Contratante podr\xE1 solicitar la rescisi\xF3n del contrato en cualquier momento, mediante comunicaci\xF3n formal por escrito. En ese caso:
|
|
1275
|
+
|
|
1276
|
+
- Los servicios ya ejecutados se cobrar\xE1n proporcionalmente.
|
|
1277
|
+
- Si el proyecto a\xFAn no ha comenzado, podr\xE1 aplicarse una penalidad de hasta el **10% del valor total del contrato**, destinada a cubrir costos administrativos y de asignaci\xF3n de recursos.
|
|
1278
|
+
- Los valores pagados por adelantado podr\xE1n retenerse total o parcialmente, seg\xFAn la etapa de ejecuci\xF3n del proyecto.
|
|
1279
|
+
|
|
1280
|
+
### 3.2 Rescisi\xF3n despu\xE9s del inicio de la ejecuci\xF3n
|
|
1281
|
+
|
|
1282
|
+
Una vez iniciados los servicios:
|
|
1283
|
+
|
|
1284
|
+
- Se deber\xE1 el pago proporcional a las etapas concluidas o en curso.
|
|
1285
|
+
- Podr\xE1 aplicarse una penalidad adicional de hasta el **20% sobre el valor restante del contrato**, como compensaci\xF3n por la interrupci\xF3n del cronograma y la reserva de agenda.
|
|
1286
|
+
|
|
1287
|
+
## 4. Rescisi\xF3n por iniciativa de la Contratada
|
|
1288
|
+
|
|
1289
|
+
La Contratada podr\xE1 rescindir el contrato en los siguientes casos:
|
|
1290
|
+
|
|
1291
|
+
- Falta de pago del Contratante por m\xE1s de **30 d\xEDas** despu\xE9s de la notificaci\xF3n.
|
|
1292
|
+
- Incumplimiento de obligaciones contractuales que impida la continuidad de los servicios.
|
|
1293
|
+
- Solicitudes reiteradas fuera del alcance contratado, aun despu\xE9s de una advertencia formal.
|
|
1294
|
+
|
|
1295
|
+
En esos casos, los servicios ya ejecutados se cobrar\xE1n proporcionalmente, y la Contratada entregar\xE1 al Contratante los materiales producidos hasta la fecha de la rescisi\xF3n, siempre que los valores debidos est\xE9n pagados.
|
|
1296
|
+
|
|
1297
|
+
## 5. Rescisi\xF3n por causa justificada
|
|
1298
|
+
|
|
1299
|
+
Cualquiera de las partes podr\xE1 rescindir el contrato de inmediato, sin penalidad, en caso de:
|
|
1300
|
+
|
|
1301
|
+
- Violaci\xF3n grave de las cl\xE1usulas contractuales.
|
|
1302
|
+
- Acto il\xEDcito relacionado con la ejecuci\xF3n del contrato.
|
|
1303
|
+
- Caso fortuito o fuerza mayor que haga imposible la continuidad del contrato.
|
|
1304
|
+
|
|
1305
|
+
## 6. Consecuencias de la rescisi\xF3n
|
|
1306
|
+
|
|
1307
|
+
En cualquier caso de rescisi\xF3n:
|
|
1308
|
+
|
|
1309
|
+
- El acceso a entregables finales, c\xF3digos fuente, materiales editables o activos digitales podr\xE1 condicionarse al pago total de los valores debidos.
|
|
1310
|
+
- Los plazos de garant\xEDa, soporte o mantenimiento terminan autom\xE1ticamente con la rescisi\xF3n, salvo disposici\xF3n expresa en contrario.
|
|
1311
|
+
- Ninguna de las partes podr\xE1 usar materiales o informaci\xF3n confidencial de la otra fuera de los l\xEDmites previstos en el contrato.
|
|
1312
|
+
|
|
1313
|
+
## 7. Reembolsos y pagos
|
|
1314
|
+
|
|
1315
|
+
- Los reembolsos, cuando correspondan, se procesar\xE1n en hasta **30 d\xEDas h\xE1biles** despu\xE9s de formalizada la rescisi\xF3n.
|
|
1316
|
+
- Las tasas administrativas, los costos operativos y los valores de servicios ya prestados no son reembolsables.
|
|
1317
|
+
|
|
1318
|
+
## 8. Comunicaci\xF3n de la rescisi\xF3n
|
|
1319
|
+
|
|
1320
|
+
La rescisi\xF3n deber\xE1 comunicarse por el correo registrado en el contrato o por la plataforma donde se acept\xF3 la propuesta. La fecha de recepci\xF3n de la comunicaci\xF3n marca el inicio de los efectos de la rescisi\xF3n.
|
|
1321
|
+
|
|
1322
|
+
## 9. Jurisdicci\xF3n
|
|
1323
|
+
|
|
1324
|
+
Se elige la jurisdicci\xF3n {jurisdiction} para resolver cualquier controversia derivada de esta Pol\xEDtica de Rescisi\xF3n y del contrato al que se vincula, con renuncia expresa a cualquier otra, por privilegiada que sea.
|
|
1325
|
+
|
|
1326
|
+
## 10. Disposiciones finales
|
|
1327
|
+
|
|
1328
|
+
Esta Pol\xEDtica de Rescisi\xF3n forma parte del contrato electr\xF3nico firmado entre las partes y produce efectos desde la aceptaci\xF3n electr\xF3nica de la propuesta. Cualquier tolerancia ante el incumplimiento de obligaciones no constituye novaci\xF3n ni renuncia de derechos.`;
|
|
1329
|
+
RESCISSION_DEFAULT = { pt, en, es };
|
|
1330
|
+
}
|
|
1331
|
+
});
|
|
1332
|
+
|
|
1107
1333
|
// ../core/src/i18n/ui-texts.ts
|
|
1108
1334
|
function defaultUiText(key, locale, kind) {
|
|
1109
1335
|
const entry = kind === "empresa" && EMPRESA_UI_TEXTS[key] || DEFAULT_UI_TEXTS[key];
|
|
@@ -1116,6 +1342,7 @@ var init_ui_texts = __esm({
|
|
|
1116
1342
|
"../core/src/i18n/ui-texts.ts"() {
|
|
1117
1343
|
"use strict";
|
|
1118
1344
|
init_define_CORE_MODULES();
|
|
1345
|
+
init_rescission_default();
|
|
1119
1346
|
APP_UI_TEXTS = {
|
|
1120
1347
|
"app.loading": { pt: "Carregando\u2026", en: "Loading\u2026", es: "Cargando\u2026" },
|
|
1121
1348
|
"app.notFound.title": { pt: "Link n\xE3o encontrado", en: "Link not found", es: "Enlace no encontrado" },
|
|
@@ -1176,6 +1403,28 @@ var init_ui_texts = __esm({
|
|
|
1176
1403
|
"proposal.accept": { pt: "Aceitar a proposta", en: "Accept the proposal", es: "Aceptar la propuesta" },
|
|
1177
1404
|
"proposal.downloadContract": { pt: "Baixar o contrato (PDF)", en: "Download the contract (PDF)", es: "Descargar el contrato (PDF)" },
|
|
1178
1405
|
"proposal.confidential": { pt: "Proposta confidencial, destinada apenas a quem a recebeu.", en: "Confidential proposal, intended only for its recipient.", es: "Propuesta confidencial, destinada solo a quien la recibi\xF3." },
|
|
1406
|
+
"proposal.copyright": { pt: "\xA9 {year} {name}. Todos os direitos reservados.", en: "\xA9 {year} {name}. All rights reserved.", es: "\xA9 {year} {name}. Todos los derechos reservados." },
|
|
1407
|
+
"proposal.introTitle": { pt: "Apresenta\xE7\xE3o", en: "Introduction", es: "Presentaci\xF3n" },
|
|
1408
|
+
"proposal.intro": {
|
|
1409
|
+
pt: "Ol\xE1, tudo bem?\n\nAntes de tudo, agrade\xE7o o interesse! Sou {name}.\n\nMeu objetivo \xE9 simples: transformar sua vis\xE3o em uma solu\xE7\xE3o que seja ao mesmo tempo elegante, escal\xE1vel e inteligente. Abaixo est\xE1 tudo o que preparei para o seu projeto.",
|
|
1410
|
+
en: "Hi, how are you?\n\nFirst of all, thank you for your interest! I'm {name}.\n\nMy goal is simple: turn your vision into a solution that is elegant, scalable and smart at the same time. Below is everything I've prepared for your project.",
|
|
1411
|
+
es: "Hola, \xBFc\xF3mo est\xE1s?\n\nAntes que nada, \xA1gracias por tu inter\xE9s! Soy {name}.\n\nMi objetivo es simple: transformar tu visi\xF3n en una soluci\xF3n que sea elegante, escalable e inteligente a la vez. Abajo est\xE1 todo lo que prepar\xE9 para tu proyecto."
|
|
1412
|
+
},
|
|
1413
|
+
"proposal.investmentTotal": { pt: "Investimento total", en: "Total investment", es: "Inversi\xF3n total" },
|
|
1414
|
+
"proposal.investmentLead": {
|
|
1415
|
+
pt: "Um investimento estrat\xE9gico para elevar o n\xEDvel do seu neg\xF3cio e alcan\xE7ar novos resultados.",
|
|
1416
|
+
en: "A strategic investment to take your business to the next level and reach new results.",
|
|
1417
|
+
es: "Una inversi\xF3n estrat\xE9gica para llevar tu negocio a otro nivel y alcanzar nuevos resultados."
|
|
1418
|
+
},
|
|
1419
|
+
"proposal.easyPayment": { pt: "Pagamento facilitado", en: "Flexible payment", es: "Pago facilitado" },
|
|
1420
|
+
"proposal.pay.pix": { pt: "PIX: {value} ({percent}% de desconto)", en: "PIX: {value} ({percent}% off)", es: "PIX: {value} ({percent}% de descuento)" },
|
|
1421
|
+
"proposal.pay.split": { pt: "50/50: 50% no in\xEDcio e 50% na entrega", en: "50/50: 50% upfront and 50% on delivery", es: "50/50: 50% al inicio y 50% en la entrega" },
|
|
1422
|
+
"proposal.pay.installments": { pt: "Cart\xE3o de cr\xE9dito em at\xE9 {count}x sem juros ({value}/m\xEAs)", en: "Credit card in up to {count} interest-free installments ({value}/month)", es: "Tarjeta de cr\xE9dito en hasta {count} cuotas sin inter\xE9s ({value}/mes)" },
|
|
1423
|
+
"proposal.pay.installmentsInterest": { pt: "Cart\xE3o de cr\xE9dito em at\xE9 {count}x com juros", en: "Credit card in up to {count} installments with interest", es: "Tarjeta de cr\xE9dito en hasta {count} cuotas con inter\xE9s" },
|
|
1424
|
+
"proposal.rescissionDefault": RESCISSION_DEFAULT,
|
|
1425
|
+
"proposal.jurisdictionCity": { pt: "da comarca de {city}", en: "of {city}", es: "de {city}" },
|
|
1426
|
+
"proposal.jurisdictionDefault": { pt: "do domic\xEDlio da Contratada", en: "of the Provider's domicile", es: "del domicilio de la Contratada" },
|
|
1427
|
+
"proposal.goToAccept": { pt: "Pronto para come\xE7ar? O aceite \xE9 eletr\xF4nico e leva um minuto.", en: "Ready to start? Acceptance is electronic and takes a minute.", es: "\xBFListo para empezar? La aceptaci\xF3n es electr\xF3nica y lleva un minuto." },
|
|
1179
1428
|
"accept.title": { pt: "Aceite da proposta", en: "Accept the proposal", es: "Aceptaci\xF3n de la propuesta" },
|
|
1180
1429
|
"accept.intro": {
|
|
1181
1430
|
pt: "Preencha seus dados, leia o contrato e confirme. O aceite fica registrado com data, hora, endere\xE7o IP e um c\xF3digo (hash) do conte\xFAdo aceito.",
|
|
@@ -1187,6 +1436,29 @@ var init_ui_texts = __esm({
|
|
|
1187
1436
|
en: "Once accepted electronically, this proposal is a binding contract between the parties under the Brazilian Civil Code.",
|
|
1188
1437
|
es: "Esta propuesta, una vez aceptada electr\xF3nicamente, constituye un contrato v\xE1lido entre las partes seg\xFAn el C\xF3digo Civil brasile\xF1o."
|
|
1189
1438
|
},
|
|
1439
|
+
"accept.clauseTitle": { pt: "Cl\xE1usula de aceite eletr\xF4nico", en: "Electronic acceptance clause", es: "Cl\xE1usula de aceptaci\xF3n electr\xF3nica" },
|
|
1440
|
+
"accept.readWarning": {
|
|
1441
|
+
pt: "Leia o contrato com aten\xE7\xE3o antes de assinar. Ele traz o escopo, os valores, os prazos e as regras de rescis\xE3o. Em caso de d\xFAvida, fale comigo antes de aceitar.",
|
|
1442
|
+
en: "Read the contract carefully before signing. It sets out the scope, prices, deadlines and cancellation rules. If anything is unclear, get in touch before accepting.",
|
|
1443
|
+
es: "Lee el contrato con atenci\xF3n antes de firmar. Contiene el alcance, los valores, los plazos y las reglas de rescisi\xF3n. Si tienes dudas, escr\xEDbeme antes de aceptar."
|
|
1444
|
+
},
|
|
1445
|
+
"accept.confirmTitle": { pt: "Ao aceitar, voc\xEA confirma que:", en: "By accepting, you confirm that:", es: "Al aceptar, confirmas que:" },
|
|
1446
|
+
"accept.confirmRead": { pt: "leu e compreendeu todo o contrato;", en: "you have read and understood the whole contract;", es: "le\xEDste y comprendiste todo el contrato;" },
|
|
1447
|
+
"accept.confirmAgree": { pt: "concorda com todas as cl\xE1usulas e condi\xE7\xF5es;", en: "you agree to all its clauses and conditions;", es: "aceptas todas las cl\xE1usulas y condiciones;" },
|
|
1448
|
+
"accept.confirmAuthority": { pt: "est\xE1 autorizado(a) a celebrar este contrato;", en: "you are authorized to enter into this contract;", es: "est\xE1s autorizado(a) a celebrar este contrato;" },
|
|
1449
|
+
"accept.confirmValidity": {
|
|
1450
|
+
pt: "sua assinatura eletr\xF4nica tem a mesma validade jur\xEDdica de uma assinatura f\xEDsica.",
|
|
1451
|
+
en: "your electronic signature has the same legal validity as a handwritten one.",
|
|
1452
|
+
es: "tu firma electr\xF3nica tiene la misma validez jur\xEDdica que una firma f\xEDsica."
|
|
1453
|
+
},
|
|
1454
|
+
"accept.signatureTyped": { pt: "Usar meu nome digitado como assinatura", en: "Use my typed name as my signature", es: "Usar mi nombre escrito como firma" },
|
|
1455
|
+
"accept.signHere": { pt: "Assine aqui", en: "Sign here", es: "Firma aqu\xED" },
|
|
1456
|
+
"accept.signatureRequired": { pt: "Desenhe sua assinatura para continuar.", en: "Draw your signature to continue.", es: "Dibuja tu firma para continuar." },
|
|
1457
|
+
"accept.signatureError": {
|
|
1458
|
+
pt: "N\xE3o foi poss\xEDvel enviar a assinatura. Confira a conex\xE3o e tente de novo.",
|
|
1459
|
+
en: "Couldn't upload your signature. Check your connection and try again.",
|
|
1460
|
+
es: "No se pudo enviar la firma. Revisa la conexi\xF3n e int\xE9ntalo de nuevo."
|
|
1461
|
+
},
|
|
1190
1462
|
"accept.data": { pt: "Seus dados", en: "Your details", es: "Tus datos" },
|
|
1191
1463
|
"accept.name": { pt: "Nome completo", en: "Full name", es: "Nombre completo" },
|
|
1192
1464
|
"accept.document": { pt: "CPF ou CNPJ", en: "Tax ID (CPF or CNPJ)", es: "CPF o CNPJ" },
|
|
@@ -1210,9 +1482,9 @@ var init_ui_texts = __esm({
|
|
|
1210
1482
|
"accept.consentRequired": { pt: "Para aceitar, confirme que leu e concorda com os termos.", en: "To accept, confirm that you have read and agree to the terms.", es: "Para aceptar, confirma que le\xEDste y aceptas los t\xE9rminos." },
|
|
1211
1483
|
"accept.signature": { pt: "Assinatura", en: "Signature", es: "Firma" },
|
|
1212
1484
|
"accept.signatureHint": {
|
|
1213
|
-
pt: "
|
|
1214
|
-
en: "
|
|
1215
|
-
es: "
|
|
1485
|
+
pt: "Assine com o mouse, a caneta ou o dedo, ou use o nome digitado acima. A assinatura entra no PDF do contrato.",
|
|
1486
|
+
en: "Sign with your mouse, pen or finger, or use the name typed above. Your signature goes into the contract PDF.",
|
|
1487
|
+
es: "Firma con el mouse, el l\xE1piz o el dedo, o usa el nombre escrito arriba. La firma se incluye en el PDF del contrato."
|
|
1216
1488
|
},
|
|
1217
1489
|
"accept.signatureArea": { pt: "\xC1rea para desenhar a assinatura", en: "Area to draw your signature", es: "\xC1rea para dibujar la firma" },
|
|
1218
1490
|
"accept.signatureClear": { pt: "Limpar assinatura", en: "Clear signature", es: "Borrar firma" },
|
|
@@ -1231,6 +1503,20 @@ var init_ui_texts = __esm({
|
|
|
1231
1503
|
"contract.version": { pt: "Vers\xE3o da proposta", en: "Proposal version", es: "Versi\xF3n de la propuesta" },
|
|
1232
1504
|
"contract.ip": { pt: "Endere\xE7o IP", en: "IP address", es: "Direcci\xF3n IP" },
|
|
1233
1505
|
"contract.hash": { pt: "C\xF3digo do conte\xFAdo aceito (SHA-256)", en: "Code of the accepted content (SHA-256)", es: "C\xF3digo del contenido aceptado (SHA-256)" },
|
|
1506
|
+
"contract.kicker": { pt: "Contrato de presta\xE7\xE3o de servi\xE7os", en: "Services agreement", es: "Contrato de prestaci\xF3n de servicios" },
|
|
1507
|
+
"contract.subtitle": { pt: "{client} \xB7 Vers\xE3o {version} \xB7 {date}", en: "{client} \xB7 Version {version} \xB7 {date}", es: "{client} \xB7 Versi\xF3n {version} \xB7 {date}" },
|
|
1508
|
+
"contract.signatureTitle": { pt: "Assinatura eletr\xF4nica", en: "Electronic signature", es: "Firma electr\xF3nica" },
|
|
1509
|
+
"contract.signedBy": { pt: "Assinatura eletr\xF4nica de {name}", en: "Electronic signature of {name}", es: "Firma electr\xF3nica de {name}" },
|
|
1510
|
+
"contract.evidence": { pt: "Evid\xEAncias t\xE9cnicas", en: "Technical evidence", es: "Evidencias t\xE9cnicas" },
|
|
1511
|
+
"contract.userAgent": { pt: "Navegador (User-Agent)", en: "Browser (User-Agent)", es: "Navegador (User-Agent)" },
|
|
1512
|
+
"contract.reference": { pt: "Refer\xEAncia", en: "Reference", es: "Referencia" },
|
|
1513
|
+
"contract.utc": { pt: "Data e hora (UTC)", en: "Date and time (UTC)", es: "Fecha y hora (UTC)" },
|
|
1514
|
+
"contract.notInformed": { pt: "N\xE3o informado", en: "Not provided", es: "No informado" },
|
|
1515
|
+
"contract.legal": {
|
|
1516
|
+
pt: "Contrato eletr\xF4nico com validade jur\xEDdica, celebrado nos termos do C\xF3digo Civil (art. 107) e da MP 2.200-2/2001. O c\xF3digo SHA-256 garante a integridade do conte\xFAdo aceito: qualquer altera\xE7\xE3o gera outro c\xF3digo.",
|
|
1517
|
+
en: "Legally binding electronic contract under the Brazilian Civil Code (art. 107) and Provisional Measure 2.200-2/2001. The SHA-256 code guarantees the integrity of the accepted content: any change produces a different code.",
|
|
1518
|
+
es: "Contrato electr\xF3nico con validez jur\xEDdica, celebrado seg\xFAn el C\xF3digo Civil brasile\xF1o (art. 107) y la MP 2.200-2/2001. El c\xF3digo SHA-256 garantiza la integridad del contenido aceptado: cualquier cambio genera otro c\xF3digo."
|
|
1519
|
+
},
|
|
1234
1520
|
"contract.popup": { pt: "N\xE3o foi poss\xEDvel abrir o contrato. Permita pop-ups e tente de novo.", en: "Couldn't open the contract. Allow pop-ups and try again.", es: "No se pudo abrir el contrato. Permite las ventanas emergentes e int\xE9ntalo de nuevo." },
|
|
1235
1521
|
"checkout.title": { pt: "Pagamento", en: "Payment", es: "Pago" },
|
|
1236
1522
|
"checkout.subtitle": { pt: "Confira os dados e escolha como pagar.", en: "Check the details and choose how to pay.", es: "Revisa los datos y elige c\xF3mo pagar." },
|
|
@@ -1401,6 +1687,28 @@ var init_ui_texts = __esm({
|
|
|
1401
1687
|
"video.play": { pt: "Reproduzir o v\xEDdeo", en: "Play the video", es: "Reproducir el video" },
|
|
1402
1688
|
"video.watchOn": { pt: "Assistir no {provider}", en: "Watch on {provider}", es: "Ver en {provider}" },
|
|
1403
1689
|
"video.player": { pt: "V\xEDdeo: {title}", en: "Video: {title}", es: "Video: {title}" },
|
|
1690
|
+
"video.chapters": { pt: "Cap\xEDtulos", en: "Chapters", es: "Cap\xEDtulos" },
|
|
1691
|
+
"video.chapterAt": { pt: "Ir para {time}: {label}", en: "Jump to {time}: {label}", es: "Ir a {time}: {label}" },
|
|
1692
|
+
"video.chaptersOf": { pt: "Cap\xEDtulos: {name}", en: "Chapters: {name}", es: "Cap\xEDtulos: {name}" },
|
|
1693
|
+
"video.chapterChosen": { pt: "{label} (\xFAltimo cap\xEDtulo escolhido)", en: "{label} (last chapter chosen)", es: "{label} (\xFAltimo cap\xEDtulo elegido)" },
|
|
1694
|
+
"beforeAfter.before": { pt: "Antes", en: "Before", es: "Antes" },
|
|
1695
|
+
"beforeAfter.after": { pt: "Depois", en: "After", es: "Despu\xE9s" },
|
|
1696
|
+
"beforeAfter.slider": { pt: "Arraste para comparar o antes e o depois", en: "Drag to compare before and after", es: "Arrastra para comparar el antes y el despu\xE9s" },
|
|
1697
|
+
"palette.contrastWhite": { pt: "Contraste com branco", en: "Contrast with white", es: "Contraste con blanco" },
|
|
1698
|
+
"palette.contrastBlack": { pt: "Contraste com preto", en: "Contrast with black", es: "Contraste con negro" },
|
|
1699
|
+
"type.weights": { pt: "Pesos", en: "Weights", es: "Pesos" },
|
|
1700
|
+
"type.alphabet": { pt: "Aa Bb Cc Dd Ee Ff Gg 0123456789", en: "Aa Bb Cc Dd Ee Ff Gg 0123456789", es: "Aa Bb Cc Dd Ee Ff Gg 0123456789" },
|
|
1701
|
+
"beforeAfter.position": {
|
|
1702
|
+
pt: "{beforeLabel} {before}%, {afterLabel} {after}%",
|
|
1703
|
+
en: "{beforeLabel} {before}%, {afterLabel} {after}%",
|
|
1704
|
+
es: "{beforeLabel} {before}%, {afterLabel} {after}%"
|
|
1705
|
+
},
|
|
1706
|
+
"palette.hex": { pt: "HEX", en: "HEX", es: "HEX" },
|
|
1707
|
+
"palette.rgb": { pt: "RGB", en: "RGB", es: "RGB" },
|
|
1708
|
+
"palette.sample": { pt: "Aa", en: "Aa", es: "Aa" },
|
|
1709
|
+
"palette.large": { pt: "AA s\xF3 texto grande", en: "AA large text only", es: "AA solo texto grande" },
|
|
1710
|
+
"palette.fail": { pt: "N\xE3o passa", en: "Fails", es: "No pasa" },
|
|
1711
|
+
"type.glyph": { pt: "Aa", en: "Aa", es: "Aa" },
|
|
1404
1712
|
"embed.open": { pt: "Abrir no {provider}", en: "Open in {provider}", es: "Abrir en {provider}" },
|
|
1405
1713
|
"compare.caption": { pt: "Comparativo de planos", en: "Plan comparison", es: "Comparativa de planes" },
|
|
1406
1714
|
"compare.feature": { pt: "Recurso", en: "Feature", es: "Caracter\xEDstica" },
|
|
@@ -1490,7 +1798,17 @@ var init_ui_texts = __esm({
|
|
|
1490
1798
|
en: "Thanks for reaching out. We'll reply as soon as we can.",
|
|
1491
1799
|
es: "Gracias por escribir. Responderemos lo antes posible."
|
|
1492
1800
|
},
|
|
1801
|
+
"accept.readWarning": {
|
|
1802
|
+
pt: "Leia o contrato com aten\xE7\xE3o antes de assinar. Ele traz o escopo, os valores, os prazos e as regras de rescis\xE3o. Em caso de d\xFAvida, fale conosco antes de aceitar.",
|
|
1803
|
+
en: "Read the contract carefully before signing. It sets out the scope, prices, deadlines and cancellation rules. If anything is unclear, get in touch with us before accepting.",
|
|
1804
|
+
es: "Lee el contrato con atenci\xF3n antes de firmar. Contiene el alcance, los valores, los plazos y las reglas de rescisi\xF3n. Si tienes dudas, escr\xEDbenos antes de aceptar."
|
|
1805
|
+
},
|
|
1493
1806
|
"proposal.expiredHint": { pt: "Fale conosco para receber uma vers\xE3o atualizada.", en: "Get in touch with us for an updated version.", es: "Escr\xEDbenos para recibir una versi\xF3n actualizada." },
|
|
1807
|
+
"proposal.intro": {
|
|
1808
|
+
pt: "Ol\xE1, tudo bem?\n\nAntes de tudo, agradecemos o interesse! Somos a {name}.\n\nNosso objetivo \xE9 simples: transformar sua vis\xE3o em uma solu\xE7\xE3o que seja ao mesmo tempo elegante, escal\xE1vel e inteligente. Abaixo est\xE1 tudo o que preparamos para o seu projeto.",
|
|
1809
|
+
en: "Hi, how are you?\n\nFirst of all, thank you for your interest! We're {name}.\n\nOur goal is simple: turn your vision into a solution that is elegant, scalable and smart at the same time. Below is everything we've prepared for your project.",
|
|
1810
|
+
es: "Hola, \xBFc\xF3mo est\xE1s?\n\nAntes que nada, \xA1gracias por tu inter\xE9s! Somos {name}.\n\nNuestro objetivo es simple: transformar tu visi\xF3n en una soluci\xF3n que sea elegante, escalable e inteligente a la vez. Abajo est\xE1 todo lo que preparamos para tu proyecto."
|
|
1811
|
+
},
|
|
1494
1812
|
"checkout.error.NOT_CONFIGURED": {
|
|
1495
1813
|
pt: "Os pagamentos ainda n\xE3o est\xE3o configurados neste site. Fale conosco para combinar outra forma de pagamento.",
|
|
1496
1814
|
en: "Payments aren't set up on this site yet. Get in touch with us to arrange another way to pay.",
|
|
@@ -1556,6 +1874,9 @@ function validateField(def, value, path5, errors) {
|
|
|
1556
1874
|
if (!isObject(value) || typeof value.href !== "string" || !value.href) return fail("link sem endere\xE7o");
|
|
1557
1875
|
if (!isLocalizedString(value.label)) fail("r\xF3tulo do link deve ser um texto por idioma");
|
|
1558
1876
|
return;
|
|
1877
|
+
case "color":
|
|
1878
|
+
if (typeof value !== "string" || !HEX_COLOR.test(value)) fail("cor em hexadecimal, como #7a1f2b");
|
|
1879
|
+
return;
|
|
1559
1880
|
case "list": {
|
|
1560
1881
|
if (!Array.isArray(value)) return fail("deve ser uma lista");
|
|
1561
1882
|
if (def.min !== void 0 && value.length < def.min) fail(`pelo menos ${def.min} itens`);
|
|
@@ -1585,11 +1906,12 @@ function validateFields(fields, values) {
|
|
|
1585
1906
|
validateFieldMap(fields, values, "", errors);
|
|
1586
1907
|
return errors;
|
|
1587
1908
|
}
|
|
1588
|
-
var field;
|
|
1909
|
+
var HEX_COLOR, field;
|
|
1589
1910
|
var init_fields = __esm({
|
|
1590
1911
|
"../core/src/blocks/fields.ts"() {
|
|
1591
1912
|
"use strict";
|
|
1592
1913
|
init_define_CORE_MODULES();
|
|
1914
|
+
HEX_COLOR = /^#[0-9a-fA-F]{6}$/;
|
|
1593
1915
|
field = {
|
|
1594
1916
|
text: (o) => ({ kind: "text", ...o }),
|
|
1595
1917
|
richText: (o) => ({ kind: "richText", ...o }),
|
|
@@ -1598,6 +1920,7 @@ var init_fields = __esm({
|
|
|
1598
1920
|
select: (o) => ({ kind: "select", ...o }),
|
|
1599
1921
|
image: (o) => ({ kind: "image", ...o }),
|
|
1600
1922
|
link: (o) => ({ kind: "link", ...o }),
|
|
1923
|
+
color: (o) => ({ kind: "color", ...o }),
|
|
1601
1924
|
list: (o) => ({ kind: "list", ...o })
|
|
1602
1925
|
};
|
|
1603
1926
|
}
|
|
@@ -1698,6 +2021,15 @@ function parseEmbedUrl(raw) {
|
|
|
1698
2021
|
url.hash = "";
|
|
1699
2022
|
return { provider, src: url.href };
|
|
1700
2023
|
}
|
|
2024
|
+
function chapterSeconds(start) {
|
|
2025
|
+
if (typeof start !== "string") return void 0;
|
|
2026
|
+
const m = /^(?:(\d{1,2}):)?(\d{1,2}):([0-5]\d)$/.exec(start.trim());
|
|
2027
|
+
if (!m) return void 0;
|
|
2028
|
+
const h = m[1] ? Number(m[1]) : 0;
|
|
2029
|
+
const min = Number(m[2]);
|
|
2030
|
+
if (m[1] && min > 59) return void 0;
|
|
2031
|
+
return h * 3600 + min * 60 + Number(m[3]);
|
|
2032
|
+
}
|
|
1701
2033
|
var YT_ID, VIMEO_ID, VIMEO_HASH, YT_HOSTS, VIMEO_HOSTS, VIDEO_FRAME_SOURCES, FORM_SANDBOX, EMBED_PROVIDERS, hostMatches, EMBED_FRAME_SOURCES, BLOCK_FRAME_SOURCES;
|
|
1702
2034
|
var init_media = __esm({
|
|
1703
2035
|
"../core/src/blocks/media.ts"() {
|
|
@@ -1854,7 +2186,7 @@ var init_recipes = __esm({
|
|
|
1854
2186
|
"../core/src/theme/recipes.ts"() {
|
|
1855
2187
|
"use strict";
|
|
1856
2188
|
init_define_CORE_MODULES();
|
|
1857
|
-
tr = (ptBR,
|
|
2189
|
+
tr = (ptBR, en2, es2) => ({ "pt-BR": ptBR, en: en2, es: es2 });
|
|
1858
2190
|
link = (label, href) => ({ label, href });
|
|
1859
2191
|
privacidade = {
|
|
1860
2192
|
path: "/privacidade",
|
|
@@ -2294,6 +2626,94 @@ var init_fonts = __esm({
|
|
|
2294
2626
|
}
|
|
2295
2627
|
});
|
|
2296
2628
|
|
|
2629
|
+
// ../core/src/render/resolve.ts
|
|
2630
|
+
var init_resolve = __esm({
|
|
2631
|
+
"../core/src/render/resolve.ts"() {
|
|
2632
|
+
"use strict";
|
|
2633
|
+
init_define_CORE_MODULES();
|
|
2634
|
+
init_i18n();
|
|
2635
|
+
init_fields();
|
|
2636
|
+
init_sitewide();
|
|
2637
|
+
}
|
|
2638
|
+
});
|
|
2639
|
+
|
|
2640
|
+
// ../core/src/render/text.ts
|
|
2641
|
+
var init_text = __esm({
|
|
2642
|
+
"../core/src/render/text.ts"() {
|
|
2643
|
+
"use strict";
|
|
2644
|
+
init_define_CORE_MODULES();
|
|
2645
|
+
}
|
|
2646
|
+
});
|
|
2647
|
+
|
|
2648
|
+
// ../core/src/render/collections.ts
|
|
2649
|
+
var init_collections = __esm({
|
|
2650
|
+
"../core/src/render/collections.ts"() {
|
|
2651
|
+
"use strict";
|
|
2652
|
+
init_define_CORE_MODULES();
|
|
2653
|
+
init_i18n();
|
|
2654
|
+
init_resolve();
|
|
2655
|
+
init_text();
|
|
2656
|
+
}
|
|
2657
|
+
});
|
|
2658
|
+
|
|
2659
|
+
// ../core/src/render/blocks.ts
|
|
2660
|
+
var init_blocks = __esm({
|
|
2661
|
+
"../core/src/render/blocks.ts"() {
|
|
2662
|
+
"use strict";
|
|
2663
|
+
init_define_CORE_MODULES();
|
|
2664
|
+
init_define();
|
|
2665
|
+
init_contract2();
|
|
2666
|
+
init_collections();
|
|
2667
|
+
init_resolve();
|
|
2668
|
+
}
|
|
2669
|
+
});
|
|
2670
|
+
|
|
2671
|
+
// ../core/src/theme/brand.ts
|
|
2672
|
+
var init_brand = __esm({
|
|
2673
|
+
"../core/src/theme/brand.ts"() {
|
|
2674
|
+
"use strict";
|
|
2675
|
+
init_define_CORE_MODULES();
|
|
2676
|
+
init_fields();
|
|
2677
|
+
init_schemes();
|
|
2678
|
+
init_fonts();
|
|
2679
|
+
}
|
|
2680
|
+
});
|
|
2681
|
+
|
|
2682
|
+
// ../core/src/content/legacy.ts
|
|
2683
|
+
function legacyId(index) {
|
|
2684
|
+
return `secao-${index + 1}`;
|
|
2685
|
+
}
|
|
2686
|
+
function escapeHtml(s) {
|
|
2687
|
+
return s.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
|
2688
|
+
}
|
|
2689
|
+
function sectionToBlock(section, index) {
|
|
2690
|
+
const title = section.title ?? {};
|
|
2691
|
+
const long = Object.values(title).some((t) => typeof t === "string" && t.length > TITLE_MAX);
|
|
2692
|
+
const fields = {};
|
|
2693
|
+
if (long) {
|
|
2694
|
+
const body = {};
|
|
2695
|
+
for (const locale of /* @__PURE__ */ new Set([...Object.keys(title), ...Object.keys(section.body ?? {})])) {
|
|
2696
|
+
const t = title[locale]?.trim();
|
|
2697
|
+
const b = section.body?.[locale] ?? "";
|
|
2698
|
+
body[locale] = `${t ? `<h2>${escapeHtml(t)}</h2>` : ""}${b}`;
|
|
2699
|
+
}
|
|
2700
|
+
fields.body = body;
|
|
2701
|
+
} else {
|
|
2702
|
+
fields.title = title;
|
|
2703
|
+
fields.body = section.body;
|
|
2704
|
+
}
|
|
2705
|
+
if (section.image) fields.image = section.image;
|
|
2706
|
+
return { id: legacyId(index), type: "texto", visible: true, fields };
|
|
2707
|
+
}
|
|
2708
|
+
var TITLE_MAX;
|
|
2709
|
+
var init_legacy = __esm({
|
|
2710
|
+
"../core/src/content/legacy.ts"() {
|
|
2711
|
+
"use strict";
|
|
2712
|
+
init_define_CORE_MODULES();
|
|
2713
|
+
TITLE_MAX = 140;
|
|
2714
|
+
}
|
|
2715
|
+
});
|
|
2716
|
+
|
|
2297
2717
|
// ../core/src/index.ts
|
|
2298
2718
|
var init_src = __esm({
|
|
2299
2719
|
"../core/src/index.ts"() {
|
|
@@ -2311,6 +2731,10 @@ var init_src = __esm({
|
|
|
2311
2731
|
init_sitewide();
|
|
2312
2732
|
init_schemes();
|
|
2313
2733
|
init_fonts();
|
|
2734
|
+
init_fonts();
|
|
2735
|
+
init_blocks();
|
|
2736
|
+
init_brand();
|
|
2737
|
+
init_legacy();
|
|
2314
2738
|
}
|
|
2315
2739
|
});
|
|
2316
2740
|
|
|
@@ -2639,8 +3063,253 @@ var init_app_routes = __esm({
|
|
|
2639
3063
|
}
|
|
2640
3064
|
});
|
|
2641
3065
|
|
|
3066
|
+
// ../core/src/blocks/catalog/marca.ts
|
|
3067
|
+
var M, img, L, LOGO_ITEMS, heading, intro3, anchor, antesDepois, paleta, tipografia, variacoesMarca, imagens;
|
|
3068
|
+
var init_marca = __esm({
|
|
3069
|
+
"../core/src/blocks/catalog/marca.ts"() {
|
|
3070
|
+
"use strict";
|
|
3071
|
+
init_define_CORE_MODULES();
|
|
3072
|
+
init_define();
|
|
3073
|
+
init_fields();
|
|
3074
|
+
M = "/img/marca";
|
|
3075
|
+
img = (file, width, height, alt) => ({ url: `${M}/${file}`, width, height, alt: { "*": alt } });
|
|
3076
|
+
L = (text2) => ({ "*": text2 });
|
|
3077
|
+
LOGO_ITEMS = [
|
|
3078
|
+
{ image: img("principal-crosta.svg", 480, 220, "Selo redondo da Padaria Fermento Lento, cor de crosta, com uma espiga de trigo e o nome ao lado"), label: L("Principal sobre farinha"), background: "#f7efe1", note: L("Uso preferencial: embalagem, papelaria e site.") },
|
|
3079
|
+
{ image: img("principal-farinha.svg", 480, 220, "Selo da Padaria Fermento Lento em tons de farinha, para fundos escuros"), label: L("Principal sobre forno"), background: "#1f1712", note: L("Para fundos escuros e fotos noturnas.") },
|
|
3080
|
+
{ image: img("reduzida.svg", 300, 200, "Vers\xE3o reduzida: selo escuro com a espiga e a sigla PFL"), label: L("Reduzida"), background: "#e9a15a", note: L("Abaixo de 120 px de largura.") },
|
|
3081
|
+
{ image: img("simbolo.svg", 220, 160, "S\xEDmbolo: o selo com a espiga de trigo"), label: L("S\xEDmbolo"), background: "#a4471a", note: L("Avatar, favicon e carimbo.") },
|
|
3082
|
+
{ image: img("mono-preto.svg", 480, 220, "Selo e nome em preto"), label: L("Monocrom\xE1tica"), background: "#ffffff", note: L("Impress\xE3o a uma cor e carimbo.") },
|
|
3083
|
+
{ image: img("mono-branco.svg", 480, 220, "Selo e nome em branco"), label: L("Monocrom\xE1tica negativa"), background: "#000000" }
|
|
3084
|
+
];
|
|
3085
|
+
heading = field.text({ label: "T\xEDtulo", maxLength: 140 });
|
|
3086
|
+
intro3 = field.text({ label: "Texto de apoio", multiline: true, maxLength: 400 });
|
|
3087
|
+
anchor = field.text({
|
|
3088
|
+
label: "\xC2ncora",
|
|
3089
|
+
localized: false,
|
|
3090
|
+
help: "Identificador para links na p\xE1gina (#marca). Opcional.",
|
|
3091
|
+
maxLength: 40
|
|
3092
|
+
});
|
|
3093
|
+
antesDepois = defineBlock({
|
|
3094
|
+
type: "antes-depois",
|
|
3095
|
+
label: "Antes e depois",
|
|
3096
|
+
description: "Duas imagens comparadas: como era e como ficou. Lado a lado ou num comparador deslizante.",
|
|
3097
|
+
guidance: {
|
|
3098
|
+
use: "Mostrar a transforma\xE7\xE3o de um trabalho: o logo antigo e a marca nova, a tela antiga e a nova, a fachada antes da reforma.",
|
|
3099
|
+
avoid: "Para v\xE1rias imagens sem compara\xE7\xE3o, use imagens; para as vers\xF5es de um logo, variacoes-marca.",
|
|
3100
|
+
pairsWith: ["texto", "variacoes-marca", "paleta"]
|
|
3101
|
+
},
|
|
3102
|
+
category: "comum",
|
|
3103
|
+
interactive: true,
|
|
3104
|
+
enhances: true,
|
|
3105
|
+
islandWhen: (f) => f.presentation === "comparador",
|
|
3106
|
+
fields: {
|
|
3107
|
+
anchor,
|
|
3108
|
+
title: heading,
|
|
3109
|
+
intro: intro3,
|
|
3110
|
+
before: field.image({ label: "Imagem de antes", required: true }),
|
|
3111
|
+
beforeLabel: field.text({ label: "R\xF3tulo de antes", maxLength: 40, help: 'Sem ele, "Antes".' }),
|
|
3112
|
+
after: field.image({ label: "Imagem de depois", required: true }),
|
|
3113
|
+
afterLabel: field.text({ label: "R\xF3tulo de depois", maxLength: 40, help: 'Sem ele, "Depois".' }),
|
|
3114
|
+
caption: field.text({ label: "Legenda", multiline: true, maxLength: 300 }),
|
|
3115
|
+
presentation: field.select({
|
|
3116
|
+
label: "Apresenta\xE7\xE3o",
|
|
3117
|
+
options: [
|
|
3118
|
+
{ value: "comparador", label: "Comparador deslizante (sem JavaScript, lado a lado)" },
|
|
3119
|
+
{ value: "lado-a-lado", label: "Lado a lado" }
|
|
3120
|
+
],
|
|
3121
|
+
default: "comparador",
|
|
3122
|
+
help: "O comparador sobrep\xF5e as duas imagens; use imagens com a mesma propor\xE7\xE3o."
|
|
3123
|
+
})
|
|
3124
|
+
},
|
|
3125
|
+
// Cheio: o comparador com rótulos e legenda; curto: lado a lado, rótulos padrão.
|
|
3126
|
+
sample: (mode2) => ({
|
|
3127
|
+
before: img("antes.svg", 800, 600, "Logo antigo: um c\xEDrculo azul com um tri\xE2ngulo e o nome em letra comum"),
|
|
3128
|
+
after: img("depois.svg", 800, 600, "Marca nova: o selo cor de crosta da Padaria Fermento Lento sobre farinha"),
|
|
3129
|
+
beforeLabel: mode2 === "cheio" ? L("Logo de 2009") : void 0,
|
|
3130
|
+
afterLabel: mode2 === "cheio" ? L("Marca de 2026") : void 0
|
|
3131
|
+
})
|
|
3132
|
+
});
|
|
3133
|
+
paleta = defineBlock({
|
|
3134
|
+
type: "paleta",
|
|
3135
|
+
label: "Paleta de cores",
|
|
3136
|
+
description: "As cores de uma marca: nome, c\xF3digo, papel e o contraste de cada uma.",
|
|
3137
|
+
guidance: {
|
|
3138
|
+
use: "Apresentar as cores de uma identidade visual ou de um sistema de design, com o papel de cada cor.",
|
|
3139
|
+
avoid: "Para mudar as cores do pr\xF3prio site ou do case, use a apar\xEAncia ou as cores do cliente no projeto.",
|
|
3140
|
+
pairsWith: ["tipografia", "variacoes-marca", "antes-depois"]
|
|
3141
|
+
},
|
|
3142
|
+
category: "comum",
|
|
3143
|
+
fields: {
|
|
3144
|
+
anchor,
|
|
3145
|
+
title: heading,
|
|
3146
|
+
intro: intro3,
|
|
3147
|
+
colors: field.list({
|
|
3148
|
+
label: "Cores",
|
|
3149
|
+
required: true,
|
|
3150
|
+
itemLabel: "Cor",
|
|
3151
|
+
min: 1,
|
|
3152
|
+
max: 12,
|
|
3153
|
+
of: {
|
|
3154
|
+
name: field.text({ label: "Nome", required: true, maxLength: 40 }),
|
|
3155
|
+
hex: field.color({ label: "Cor", required: true }),
|
|
3156
|
+
role: field.text({ label: "Papel", maxLength: 60, help: "Ex.: principal, apoio, fundo." }),
|
|
3157
|
+
usage: field.text({ label: "Uso", multiline: true, maxLength: 200 })
|
|
3158
|
+
}
|
|
3159
|
+
}),
|
|
3160
|
+
showContrast: field.boolean({ label: "Mostrar o contraste com branco e preto", default: true })
|
|
3161
|
+
},
|
|
3162
|
+
sample: (mode2) => ({
|
|
3163
|
+
colors: mode2 === "cheio" ? [
|
|
3164
|
+
{ name: L("Crosta"), hex: "#a4471a", role: L("Principal"), usage: L("Selo, t\xEDtulos e chamadas. A cor que todo mundo lembra.") },
|
|
3165
|
+
{ name: L("Farinha"), hex: "#f7efe1", role: L("Fundo"), usage: L("Fundo do site, embalagem e o texto sobre a crosta.") },
|
|
3166
|
+
{ name: L("Mel"), hex: "#e9a15a", role: L("Destaque"), usage: L("Frisos, \xEDcones e detalhes. Nunca em texto pequeno.") },
|
|
3167
|
+
{ name: L("Caf\xE9"), hex: "#2a1e16", role: L("Texto"), usage: L("Texto corrido e fundos escuros.") },
|
|
3168
|
+
{ name: L("Massa"), hex: "#f5ead9", role: L("Apoio"), usage: L("Cart\xF5es, faixas e \xE1reas de destaque suave.") }
|
|
3169
|
+
] : [{ name: L("Crosta"), hex: "#a4471a" }]
|
|
3170
|
+
})
|
|
3171
|
+
});
|
|
3172
|
+
tipografia = defineBlock({
|
|
3173
|
+
type: "tipografia",
|
|
3174
|
+
label: "Tipografia",
|
|
3175
|
+
description: "As fontes de uma marca, com papel, pesos e uma amostra escrita na pr\xF3pria fonte.",
|
|
3176
|
+
guidance: {
|
|
3177
|
+
use: "Apresentar as fam\xEDlias tipogr\xE1ficas de uma identidade visual: a de t\xEDtulos, a de texto, a de apoio.",
|
|
3178
|
+
avoid: "Para trocar a fonte do site, use a apar\xEAncia. Fonte fora do Google Fonts: mande a amostra como imagem.",
|
|
3179
|
+
pairsWith: ["paleta", "variacoes-marca"]
|
|
3180
|
+
},
|
|
3181
|
+
category: "comum",
|
|
3182
|
+
fields: {
|
|
3183
|
+
anchor,
|
|
3184
|
+
title: heading,
|
|
3185
|
+
intro: intro3,
|
|
3186
|
+
fonts: field.list({
|
|
3187
|
+
label: "Fontes",
|
|
3188
|
+
required: true,
|
|
3189
|
+
itemLabel: "Fonte",
|
|
3190
|
+
min: 1,
|
|
3191
|
+
max: 4,
|
|
3192
|
+
of: {
|
|
3193
|
+
family: field.text({
|
|
3194
|
+
label: "Fam\xEDlia",
|
|
3195
|
+
localized: false,
|
|
3196
|
+
required: true,
|
|
3197
|
+
maxLength: 60,
|
|
3198
|
+
help: "Nome no Google Fonts (ex.: Oswald). O site baixa a fonte no build."
|
|
3199
|
+
}),
|
|
3200
|
+
role: field.text({ label: "Papel", maxLength: 60, help: "Ex.: t\xEDtulos, texto corrido." }),
|
|
3201
|
+
weights: field.text({ label: "Pesos", localized: false, maxLength: 40, help: "Ex.: 400, 700. Sem eles, 400 e 700." }),
|
|
3202
|
+
sample: field.text({ label: "Amostra", multiline: true, maxLength: 120, help: "Frase escrita na fonte. Sem ela, o alfabeto." }),
|
|
3203
|
+
specimen: field.image({ label: "Amostra em imagem", help: "Para fontes fora do Google Fonts, ou se a fonte n\xE3o carregar." })
|
|
3204
|
+
}
|
|
3205
|
+
})
|
|
3206
|
+
},
|
|
3207
|
+
sample: (mode2) => ({
|
|
3208
|
+
fonts: mode2 === "cheio" ? [
|
|
3209
|
+
{ family: "Bricolage Grotesque", role: L("T\xEDtulos e selo"), weights: "400, 800", sample: L("P\xE3o de fermenta\xE7\xE3o lenta, desde 1987") },
|
|
3210
|
+
{ family: "Space Grotesk", role: L("Texto corrido"), weights: "400, 500, 700", sample: L("A massa n\xE3o tem pressa: cada fornada descansa a noite toda antes de ir ao forno.") },
|
|
3211
|
+
{ family: "JetBrains Mono", role: L("Etiquetas e pre\xE7os"), weights: "400, 700", sample: L("LOTE 1987 \xB7 R$ 18,00") },
|
|
3212
|
+
{ family: "Fermento Serif", role: L("Apoio (fonte pr\xF3pria, em imagem)"), weights: "400", specimen: img("especime.svg", 800, 300, "Amostra da fonte Fermento Serif: Ag, o nome e o alfabeto") }
|
|
3213
|
+
] : [{ family: "Fraunces" }]
|
|
3214
|
+
})
|
|
3215
|
+
});
|
|
3216
|
+
variacoesMarca = defineBlock({
|
|
3217
|
+
type: "variacoes-marca",
|
|
3218
|
+
label: "Varia\xE7\xF5es de marca",
|
|
3219
|
+
description: "As vers\xF5es de um logo, cada uma sobre a sua cor de fundo: principal, reduzida, \xEDcone, positivo e negativo.",
|
|
3220
|
+
guidance: {
|
|
3221
|
+
use: "Mostrar o sistema de um logo: vers\xF5es (principal, reduzida, s\xEDmbolo) e as cores em que cada uma pode aparecer.",
|
|
3222
|
+
avoid: "Para logos de clientes atendidos, use logos-clientes; para fotos e telas, imagens.",
|
|
3223
|
+
pairsWith: ["paleta", "antes-depois", "tipografia"]
|
|
3224
|
+
},
|
|
3225
|
+
category: "comum",
|
|
3226
|
+
fields: {
|
|
3227
|
+
anchor,
|
|
3228
|
+
title: heading,
|
|
3229
|
+
intro: intro3,
|
|
3230
|
+
items: field.list({
|
|
3231
|
+
label: "Varia\xE7\xF5es",
|
|
3232
|
+
required: true,
|
|
3233
|
+
itemLabel: "Varia\xE7\xE3o",
|
|
3234
|
+
min: 1,
|
|
3235
|
+
max: 24,
|
|
3236
|
+
of: {
|
|
3237
|
+
image: field.image({ label: "Imagem (SVG ou PNG transparente)", required: true }),
|
|
3238
|
+
label: field.text({ label: "Nome", maxLength: 60, help: "Ex.: principal sobre farinha." }),
|
|
3239
|
+
background: field.color({ label: "Cor de fundo", help: "Sem ela, o fundo do site." }),
|
|
3240
|
+
note: field.text({ label: "Observa\xE7\xE3o", multiline: true, maxLength: 160 })
|
|
3241
|
+
}
|
|
3242
|
+
}),
|
|
3243
|
+
columns: field.select({
|
|
3244
|
+
label: "Colunas",
|
|
3245
|
+
options: [
|
|
3246
|
+
{ value: "2", label: "2" },
|
|
3247
|
+
{ value: "3", label: "3" },
|
|
3248
|
+
{ value: "4", label: "4" }
|
|
3249
|
+
],
|
|
3250
|
+
default: "3"
|
|
3251
|
+
})
|
|
3252
|
+
},
|
|
3253
|
+
// Instâncias: 2 colunas (4 itens), curta (1 item sem fundo nem rótulo) e 4 colunas (6 itens).
|
|
3254
|
+
sample: (mode2, i) => ({
|
|
3255
|
+
items: mode2 === "curto" ? [{ image: LOGO_ITEMS[0].image }] : i === 0 ? LOGO_ITEMS.slice(0, 4) : LOGO_ITEMS
|
|
3256
|
+
})
|
|
3257
|
+
});
|
|
3258
|
+
imagens = defineBlock({
|
|
3259
|
+
type: "imagens",
|
|
3260
|
+
label: "Imagens",
|
|
3261
|
+
description: "Um conjunto de imagens com legenda: telas, mockups, grafismos, anima\xE7\xF5es em GIF.",
|
|
3262
|
+
guidance: {
|
|
3263
|
+
use: "Mostrar v\xE1rias imagens de um trabalho dentro da narrativa: telas, mockups, aplica\xE7\xF5es da marca, anima\xE7\xF5es curtas (GIF).",
|
|
3264
|
+
avoid: "Para fotos do dia a dia da empresa (cole\xE7\xE3o de rotina), use galeria; para comparar duas imagens, antes-depois; para v\xEDdeo, video.",
|
|
3265
|
+
pairsWith: ["texto", "antes-depois", "video"]
|
|
3266
|
+
},
|
|
3267
|
+
category: "comum",
|
|
3268
|
+
interactive: true,
|
|
3269
|
+
enhances: true,
|
|
3270
|
+
islandWhen: (f) => f.layout === "carrossel",
|
|
3271
|
+
fields: {
|
|
3272
|
+
anchor,
|
|
3273
|
+
title: heading,
|
|
3274
|
+
intro: intro3,
|
|
3275
|
+
items: field.list({
|
|
3276
|
+
label: "Imagens",
|
|
3277
|
+
required: true,
|
|
3278
|
+
itemLabel: "Imagem",
|
|
3279
|
+
min: 1,
|
|
3280
|
+
max: 30,
|
|
3281
|
+
of: {
|
|
3282
|
+
image: field.image({ label: "Imagem", required: true }),
|
|
3283
|
+
caption: field.text({ label: "Legenda", maxLength: 200 })
|
|
3284
|
+
}
|
|
3285
|
+
}),
|
|
3286
|
+
layout: field.select({
|
|
3287
|
+
label: "Disposi\xE7\xE3o",
|
|
3288
|
+
options: [
|
|
3289
|
+
{ value: "grade", label: "Grade" },
|
|
3290
|
+
{ value: "mosaico", label: "Mosaico (a primeira maior)" },
|
|
3291
|
+
{ value: "carrossel", label: "Carrossel (sem JavaScript, faixa com rolagem)" }
|
|
3292
|
+
],
|
|
3293
|
+
default: "grade"
|
|
3294
|
+
})
|
|
3295
|
+
},
|
|
3296
|
+
// Inclui um GIF animado: a imagem vai como está, sem conversão.
|
|
3297
|
+
sample: (mode2) => {
|
|
3298
|
+
const all = [
|
|
3299
|
+
{ image: img("selo-animado.gif", 480, 300, "Anima\xE7\xE3o do selo: os pontos de mel giram em volta e a espiga de trigo cresce"), caption: L("Anima\xE7\xE3o de abertura (GIF)") },
|
|
3300
|
+
{ image: img("mockup.svg", 800, 600, "Tela do site novo com o cabe\xE7alho cor de crosta"), caption: L("Site: p\xE1gina inicial") },
|
|
3301
|
+
{ image: img("grafismo.svg", 800, 600, "Grafismo de espigas de trigo cor de mel e farinha sobre crosta"), caption: L("Grafismo: espigas") },
|
|
3302
|
+
{ image: img("depois.svg", 800, 600, "O selo aplicado sobre farinha, com o nome embaixo"), caption: L("Aplica\xE7\xE3o na embalagem") },
|
|
3303
|
+
{ image: img("antes.svg", 800, 600, "O logo antigo, para refer\xEAncia") }
|
|
3304
|
+
];
|
|
3305
|
+
return { items: mode2 === "cheio" ? all : all.slice(0, 4).map(({ image }) => ({ image })) };
|
|
3306
|
+
}
|
|
3307
|
+
});
|
|
3308
|
+
}
|
|
3309
|
+
});
|
|
3310
|
+
|
|
2642
3311
|
// ../core/src/blocks/catalog/index.ts
|
|
2643
|
-
var
|
|
3312
|
+
var heading2, intro4, anchor2, hero, texto, numeros, listaItens, cases, servicos, depoimentos, faq, postsRecentes, cta, contato, galeria, curriculo, precos, equipe, localizacao, logosClientes, embedLabels, chapterLabel, VIDEO_CHAPTERS_SAMPLE, video, incorporacao, linhaDoTempo, comparativoPlanos, ROWS_SAMPLE, CORE_BLOCKS;
|
|
2644
3313
|
var init_catalog = __esm({
|
|
2645
3314
|
"../core/src/blocks/catalog/index.ts"() {
|
|
2646
3315
|
"use strict";
|
|
@@ -2648,10 +3317,12 @@ var init_catalog = __esm({
|
|
|
2648
3317
|
init_define();
|
|
2649
3318
|
init_fields();
|
|
2650
3319
|
init_media();
|
|
3320
|
+
init_marca();
|
|
3321
|
+
init_marca();
|
|
2651
3322
|
init_media();
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
3323
|
+
heading2 = field.text({ label: "T\xEDtulo", maxLength: 140 });
|
|
3324
|
+
intro4 = field.text({ label: "Texto de apoio", multiline: true, maxLength: 400 });
|
|
3325
|
+
anchor2 = field.text({
|
|
2655
3326
|
label: "\xC2ncora",
|
|
2656
3327
|
localized: false,
|
|
2657
3328
|
help: "Identificador para links na p\xE1gina (#contato). Opcional.",
|
|
@@ -2667,6 +3338,7 @@ var init_catalog = __esm({
|
|
|
2667
3338
|
pairsWith: ["numeros", "logos-clientes", "cases", "servicos"]
|
|
2668
3339
|
},
|
|
2669
3340
|
category: "comum",
|
|
3341
|
+
contexts: ["page"],
|
|
2670
3342
|
fields: {
|
|
2671
3343
|
eyebrow: field.text({ label: "Sobret\xEDtulo", maxLength: 80 }),
|
|
2672
3344
|
title: field.text({ label: "T\xEDtulo", required: true, maxLength: 160 }),
|
|
@@ -2689,8 +3361,8 @@ var init_catalog = __esm({
|
|
|
2689
3361
|
},
|
|
2690
3362
|
category: "comum",
|
|
2691
3363
|
fields: {
|
|
2692
|
-
anchor,
|
|
2693
|
-
title:
|
|
3364
|
+
anchor: anchor2,
|
|
3365
|
+
title: heading2,
|
|
2694
3366
|
body: field.richText({ label: "Texto", required: true }),
|
|
2695
3367
|
image: field.image({ label: "Imagem" }),
|
|
2696
3368
|
imagePosition: field.select({
|
|
@@ -2714,9 +3386,9 @@ var init_catalog = __esm({
|
|
|
2714
3386
|
},
|
|
2715
3387
|
category: "comum",
|
|
2716
3388
|
fields: {
|
|
2717
|
-
anchor,
|
|
2718
|
-
title:
|
|
2719
|
-
intro:
|
|
3389
|
+
anchor: anchor2,
|
|
3390
|
+
title: heading2,
|
|
3391
|
+
intro: intro4,
|
|
2720
3392
|
items: field.list({
|
|
2721
3393
|
label: "N\xFAmeros",
|
|
2722
3394
|
itemLabel: "N\xFAmero",
|
|
@@ -2742,9 +3414,9 @@ var init_catalog = __esm({
|
|
|
2742
3414
|
},
|
|
2743
3415
|
category: "comum",
|
|
2744
3416
|
fields: {
|
|
2745
|
-
anchor,
|
|
2746
|
-
title:
|
|
2747
|
-
intro:
|
|
3417
|
+
anchor: anchor2,
|
|
3418
|
+
title: heading2,
|
|
3419
|
+
intro: intro4,
|
|
2748
3420
|
numbered: field.boolean({ label: "Numerar itens", default: false }),
|
|
2749
3421
|
items: field.list({
|
|
2750
3422
|
label: "Itens",
|
|
@@ -2770,12 +3442,13 @@ var init_catalog = __esm({
|
|
|
2770
3442
|
pairsWith: ["depoimentos", "logos-clientes", "cta"]
|
|
2771
3443
|
},
|
|
2772
3444
|
category: "comum",
|
|
3445
|
+
contexts: ["page"],
|
|
2773
3446
|
plugin: "portfolio",
|
|
2774
3447
|
source: { collections: ["projects"], default: { collection: "projects", featured: true, limit: 3, sort: "order" } },
|
|
2775
3448
|
fields: {
|
|
2776
|
-
anchor,
|
|
2777
|
-
title:
|
|
2778
|
-
intro:
|
|
3449
|
+
anchor: anchor2,
|
|
3450
|
+
title: heading2,
|
|
3451
|
+
intro: intro4,
|
|
2779
3452
|
cta: field.link({ label: "Link para ver todos" })
|
|
2780
3453
|
}
|
|
2781
3454
|
});
|
|
@@ -2791,9 +3464,9 @@ var init_catalog = __esm({
|
|
|
2791
3464
|
category: "comum",
|
|
2792
3465
|
source: { collections: ["services"], default: { collection: "services", sort: "order" } },
|
|
2793
3466
|
fields: {
|
|
2794
|
-
anchor,
|
|
2795
|
-
title:
|
|
2796
|
-
intro:
|
|
3467
|
+
anchor: anchor2,
|
|
3468
|
+
title: heading2,
|
|
3469
|
+
intro: intro4,
|
|
2797
3470
|
cta: field.link({ label: "Bot\xE3o" })
|
|
2798
3471
|
}
|
|
2799
3472
|
});
|
|
@@ -2812,9 +3485,9 @@ var init_catalog = __esm({
|
|
|
2812
3485
|
islandWhen: (f, plugins) => f.allowSubmission === true && plugins.has("testimonials-intake"),
|
|
2813
3486
|
source: { collections: ["testimonials"], default: { collection: "testimonials", featured: true, limit: 6, sort: "order" } },
|
|
2814
3487
|
fields: {
|
|
2815
|
-
anchor,
|
|
2816
|
-
title:
|
|
2817
|
-
intro:
|
|
3488
|
+
anchor: anchor2,
|
|
3489
|
+
title: heading2,
|
|
3490
|
+
intro: intro4,
|
|
2818
3491
|
allowSubmission: field.boolean({
|
|
2819
3492
|
label: "Convidar a enviar depoimento",
|
|
2820
3493
|
default: false,
|
|
@@ -2835,9 +3508,9 @@ var init_catalog = __esm({
|
|
|
2835
3508
|
category: "comum",
|
|
2836
3509
|
source: { collections: ["faq"], default: { collection: "faq", sort: "order" } },
|
|
2837
3510
|
fields: {
|
|
2838
|
-
anchor,
|
|
2839
|
-
title:
|
|
2840
|
-
intro:
|
|
3511
|
+
anchor: anchor2,
|
|
3512
|
+
title: heading2,
|
|
3513
|
+
intro: intro4
|
|
2841
3514
|
}
|
|
2842
3515
|
});
|
|
2843
3516
|
postsRecentes = defineBlock({
|
|
@@ -2858,9 +3531,9 @@ var init_catalog = __esm({
|
|
|
2858
3531
|
islandWhen: (f) => f.showSearch === true,
|
|
2859
3532
|
source: { collections: ["posts"], default: { collection: "posts", limit: 3, sort: "recent" } },
|
|
2860
3533
|
fields: {
|
|
2861
|
-
anchor,
|
|
2862
|
-
title:
|
|
2863
|
-
intro:
|
|
3534
|
+
anchor: anchor2,
|
|
3535
|
+
title: heading2,
|
|
3536
|
+
intro: intro4,
|
|
2864
3537
|
cta: field.link({ label: "Link para o blog" }),
|
|
2865
3538
|
showTagFilter: field.boolean({ label: "Filtro por etiqueta", default: false }),
|
|
2866
3539
|
showSearch: field.boolean({ label: "Busca por texto", default: false, help: "Campo que filtra os posts pelo t\xEDtulo, resumo e etiquetas (p\xE1gina do blog)." }),
|
|
@@ -2882,9 +3555,9 @@ var init_catalog = __esm({
|
|
|
2882
3555
|
},
|
|
2883
3556
|
category: "comum",
|
|
2884
3557
|
fields: {
|
|
2885
|
-
anchor,
|
|
3558
|
+
anchor: anchor2,
|
|
2886
3559
|
title: field.text({ label: "T\xEDtulo", required: true, maxLength: 140 }),
|
|
2887
|
-
body:
|
|
3560
|
+
body: intro4,
|
|
2888
3561
|
primary: field.link({ label: "Bot\xE3o principal", required: true }),
|
|
2889
3562
|
secondary: field.link({ label: "Bot\xE3o secund\xE1rio" })
|
|
2890
3563
|
}
|
|
@@ -2899,12 +3572,13 @@ var init_catalog = __esm({
|
|
|
2899
3572
|
pairsWith: ["localizacao", "faq", "cta"]
|
|
2900
3573
|
},
|
|
2901
3574
|
category: "comum",
|
|
3575
|
+
contexts: ["page"],
|
|
2902
3576
|
interactive: true,
|
|
2903
3577
|
islandWhen: (f, plugins) => f.mode !== "channels" && plugins.has("contact-wizard"),
|
|
2904
3578
|
fields: {
|
|
2905
|
-
anchor,
|
|
2906
|
-
title:
|
|
2907
|
-
intro:
|
|
3579
|
+
anchor: anchor2,
|
|
3580
|
+
title: heading2,
|
|
3581
|
+
intro: intro4,
|
|
2908
3582
|
mode: field.select({
|
|
2909
3583
|
label: "Formato",
|
|
2910
3584
|
options: [
|
|
@@ -2981,9 +3655,9 @@ var init_catalog = __esm({
|
|
|
2981
3655
|
category: "comum",
|
|
2982
3656
|
source: { collections: ["routine"], default: { collection: "routine", sort: "order" } },
|
|
2983
3657
|
fields: {
|
|
2984
|
-
anchor,
|
|
2985
|
-
title:
|
|
2986
|
-
intro:
|
|
3658
|
+
anchor: anchor2,
|
|
3659
|
+
title: heading2,
|
|
3660
|
+
intro: intro4
|
|
2987
3661
|
}
|
|
2988
3662
|
});
|
|
2989
3663
|
curriculo = defineBlock({
|
|
@@ -3001,9 +3675,9 @@ var init_catalog = __esm({
|
|
|
3001
3675
|
islandWhen: (f) => f.showDownload !== false,
|
|
3002
3676
|
source: { collections: ["resume"], default: { collection: "resume", sort: "order" } },
|
|
3003
3677
|
fields: {
|
|
3004
|
-
anchor,
|
|
3005
|
-
title:
|
|
3006
|
-
intro:
|
|
3678
|
+
anchor: anchor2,
|
|
3679
|
+
title: heading2,
|
|
3680
|
+
intro: intro4,
|
|
3007
3681
|
showDownload: field.boolean({ label: "Bot\xE3o de baixar PDF", default: true })
|
|
3008
3682
|
}
|
|
3009
3683
|
});
|
|
@@ -3019,9 +3693,9 @@ var init_catalog = __esm({
|
|
|
3019
3693
|
category: "empresa",
|
|
3020
3694
|
source: { collections: ["plans"], default: { collection: "plans", sort: "order" } },
|
|
3021
3695
|
fields: {
|
|
3022
|
-
anchor,
|
|
3023
|
-
title:
|
|
3024
|
-
intro:
|
|
3696
|
+
anchor: anchor2,
|
|
3697
|
+
title: heading2,
|
|
3698
|
+
intro: intro4,
|
|
3025
3699
|
note: field.text({ label: "Observa\xE7\xE3o", multiline: true, maxLength: 300, help: "Ex.: valores sem impostos." })
|
|
3026
3700
|
}
|
|
3027
3701
|
});
|
|
@@ -3037,9 +3711,9 @@ var init_catalog = __esm({
|
|
|
3037
3711
|
category: "empresa",
|
|
3038
3712
|
source: { collections: ["team"], default: { collection: "team", sort: "order" } },
|
|
3039
3713
|
fields: {
|
|
3040
|
-
anchor,
|
|
3041
|
-
title:
|
|
3042
|
-
intro:
|
|
3714
|
+
anchor: anchor2,
|
|
3715
|
+
title: heading2,
|
|
3716
|
+
intro: intro4
|
|
3043
3717
|
}
|
|
3044
3718
|
});
|
|
3045
3719
|
localizacao = defineBlock({
|
|
@@ -3053,9 +3727,9 @@ var init_catalog = __esm({
|
|
|
3053
3727
|
},
|
|
3054
3728
|
category: "empresa",
|
|
3055
3729
|
fields: {
|
|
3056
|
-
anchor,
|
|
3057
|
-
title:
|
|
3058
|
-
intro:
|
|
3730
|
+
anchor: anchor2,
|
|
3731
|
+
title: heading2,
|
|
3732
|
+
intro: intro4,
|
|
3059
3733
|
showMap: field.boolean({ label: "Mostrar mapa", default: true }),
|
|
3060
3734
|
showHours: field.boolean({ label: "Mostrar hor\xE1rio", default: true })
|
|
3061
3735
|
}
|
|
@@ -3071,8 +3745,8 @@ var init_catalog = __esm({
|
|
|
3071
3745
|
},
|
|
3072
3746
|
category: "empresa",
|
|
3073
3747
|
fields: {
|
|
3074
|
-
anchor,
|
|
3075
|
-
title:
|
|
3748
|
+
anchor: anchor2,
|
|
3749
|
+
title: heading2,
|
|
3076
3750
|
logos: field.list({
|
|
3077
3751
|
label: "Logos",
|
|
3078
3752
|
itemLabel: "Logo",
|
|
@@ -3088,6 +3762,12 @@ var init_catalog = __esm({
|
|
|
3088
3762
|
}
|
|
3089
3763
|
});
|
|
3090
3764
|
embedLabels = EMBED_PROVIDERS.map((p) => p.label).join(", ");
|
|
3765
|
+
chapterLabel = (pt2, en2) => ({ "pt-BR": pt2, en: en2, "en-US": en2, es: pt2 });
|
|
3766
|
+
VIDEO_CHAPTERS_SAMPLE = [
|
|
3767
|
+
{ start: "0:00", label: chapterLabel("Abertura", "Opening") },
|
|
3768
|
+
{ start: "0:42", label: chapterLabel("Como funciona", "How it works") },
|
|
3769
|
+
{ start: "2:15", label: chapterLabel("Resultados", "Results") }
|
|
3770
|
+
];
|
|
3091
3771
|
video = defineBlock({
|
|
3092
3772
|
type: "video",
|
|
3093
3773
|
label: "V\xEDdeo",
|
|
@@ -3102,9 +3782,9 @@ var init_catalog = __esm({
|
|
|
3102
3782
|
enhances: true,
|
|
3103
3783
|
islandWhen: (f) => parseVideoUrl(f.url) !== void 0,
|
|
3104
3784
|
fields: {
|
|
3105
|
-
anchor,
|
|
3106
|
-
title:
|
|
3107
|
-
intro:
|
|
3785
|
+
anchor: anchor2,
|
|
3786
|
+
title: heading2,
|
|
3787
|
+
intro: intro4,
|
|
3108
3788
|
url: field.text({
|
|
3109
3789
|
label: "Endere\xE7o do v\xEDdeo",
|
|
3110
3790
|
localized: false,
|
|
@@ -3130,11 +3810,29 @@ var init_catalog = __esm({
|
|
|
3130
3810
|
{ value: "9:16", label: "9:16 (vertical, Shorts e Reels)" }
|
|
3131
3811
|
],
|
|
3132
3812
|
default: "16:9"
|
|
3813
|
+
}),
|
|
3814
|
+
chapters: field.list({
|
|
3815
|
+
label: "Cap\xEDtulos",
|
|
3816
|
+
itemLabel: "Cap\xEDtulo",
|
|
3817
|
+
max: 20,
|
|
3818
|
+
help: "Pontos do v\xEDdeo com nome: cada um abre o v\xEDdeo no tempo certo.",
|
|
3819
|
+
of: {
|
|
3820
|
+
start: field.text({ label: "In\xEDcio (m:ss)", localized: false, required: true, maxLength: 8, help: "Ex.: 1:05 ou 1:02:30." }),
|
|
3821
|
+
label: field.text({ label: "Nome", required: true, maxLength: 80 })
|
|
3822
|
+
}
|
|
3133
3823
|
})
|
|
3134
3824
|
},
|
|
3135
|
-
validate: (f) =>
|
|
3825
|
+
validate: (f) => [
|
|
3826
|
+
...parseVideoUrl(f.url) ? [] : [{ path: "url", message: "Endere\xE7o do v\xEDdeo: use um link do YouTube ou do Vimeo" }],
|
|
3827
|
+
...(Array.isArray(f.chapters) ? f.chapters : []).flatMap(
|
|
3828
|
+
(c, i) => chapterSeconds(c.start) === void 0 ? [{ path: `chapters.${i}.start`, message: "In\xEDcio do cap\xEDtulo: use m:ss ou h:mm:ss (ex.: 1:05)" }] : []
|
|
3829
|
+
)
|
|
3830
|
+
],
|
|
3136
3831
|
// Cheia com miniatura própria, curta com a do YouTube, Vimeo com e sem imagem.
|
|
3137
|
-
sample: (
|
|
3832
|
+
sample: (mode2, i) => ({
|
|
3833
|
+
...i < 2 ? { url: "https://www.youtube.com/watch?v=M7lc1UVf-VE" } : { url: "https://vimeo.com/76979871", ...i === 3 ? { poster: void 0 } : {} },
|
|
3834
|
+
chapters: mode2 === "cheio" ? VIDEO_CHAPTERS_SAMPLE : void 0
|
|
3835
|
+
})
|
|
3138
3836
|
});
|
|
3139
3837
|
incorporacao = defineBlock({
|
|
3140
3838
|
type: "incorporacao",
|
|
@@ -3147,9 +3845,9 @@ var init_catalog = __esm({
|
|
|
3147
3845
|
},
|
|
3148
3846
|
category: "comum",
|
|
3149
3847
|
fields: {
|
|
3150
|
-
anchor,
|
|
3151
|
-
title:
|
|
3152
|
-
intro:
|
|
3848
|
+
anchor: anchor2,
|
|
3849
|
+
title: heading2,
|
|
3850
|
+
intro: intro4,
|
|
3153
3851
|
url: field.text({
|
|
3154
3852
|
label: "Endere\xE7o da incorpora\xE7\xE3o",
|
|
3155
3853
|
localized: false,
|
|
@@ -3183,9 +3881,9 @@ var init_catalog = __esm({
|
|
|
3183
3881
|
},
|
|
3184
3882
|
category: "comum",
|
|
3185
3883
|
fields: {
|
|
3186
|
-
anchor,
|
|
3187
|
-
title:
|
|
3188
|
-
intro:
|
|
3884
|
+
anchor: anchor2,
|
|
3885
|
+
title: heading2,
|
|
3886
|
+
intro: intro4,
|
|
3189
3887
|
items: field.list({
|
|
3190
3888
|
label: "Marcos",
|
|
3191
3889
|
itemLabel: "Marco",
|
|
@@ -3214,9 +3912,9 @@ var init_catalog = __esm({
|
|
|
3214
3912
|
plugin: "pricing",
|
|
3215
3913
|
source: { collections: ["plans"], default: { collection: "plans", sort: "order" } },
|
|
3216
3914
|
fields: {
|
|
3217
|
-
anchor,
|
|
3218
|
-
title:
|
|
3219
|
-
intro:
|
|
3915
|
+
anchor: anchor2,
|
|
3916
|
+
title: heading2,
|
|
3917
|
+
intro: intro4,
|
|
3220
3918
|
caption: field.text({
|
|
3221
3919
|
label: "Legenda da tabela",
|
|
3222
3920
|
maxLength: 160,
|
|
@@ -3300,7 +3998,12 @@ var init_catalog = __esm({
|
|
|
3300
3998
|
video,
|
|
3301
3999
|
incorporacao,
|
|
3302
4000
|
linhaDoTempo,
|
|
3303
|
-
comparativoPlanos
|
|
4001
|
+
comparativoPlanos,
|
|
4002
|
+
antesDepois,
|
|
4003
|
+
paleta,
|
|
4004
|
+
tipografia,
|
|
4005
|
+
variacoesMarca,
|
|
4006
|
+
imagens
|
|
3304
4007
|
];
|
|
3305
4008
|
}
|
|
3306
4009
|
});
|
|
@@ -3589,7 +4292,7 @@ var init_files = __esm({
|
|
|
3589
4292
|
PEERS = package_default.peerDependencies;
|
|
3590
4293
|
MCP_VERSION = package_default2.version;
|
|
3591
4294
|
defaultDependencySpecs = () => ({ core: `^${CORE_VERSION}`, theme: `^${CORE_VERSION}`, cli: `^${CLI_PACKAGE_VERSION}`, mcp: `^${MCP_VERSION}` });
|
|
3592
|
-
CLI_PACKAGE_VERSION = true ? "2.
|
|
4295
|
+
CLI_PACKAGE_VERSION = true ? "2.2.0" : CORE_VERSION;
|
|
3593
4296
|
MARK = {
|
|
3594
4297
|
themeStart: "// rubrica:tema:inicio",
|
|
3595
4298
|
themeEnd: "// rubrica:tema:fim",
|
|
@@ -4223,24 +4926,6 @@ var init_setup = __esm({
|
|
|
4223
4926
|
}
|
|
4224
4927
|
});
|
|
4225
4928
|
|
|
4226
|
-
// ../core/src/render/text.ts
|
|
4227
|
-
var init_text = __esm({
|
|
4228
|
-
"../core/src/render/text.ts"() {
|
|
4229
|
-
"use strict";
|
|
4230
|
-
init_define_CORE_MODULES();
|
|
4231
|
-
}
|
|
4232
|
-
});
|
|
4233
|
-
|
|
4234
|
-
// ../core/src/render/resolve.ts
|
|
4235
|
-
var init_resolve = __esm({
|
|
4236
|
-
"../core/src/render/resolve.ts"() {
|
|
4237
|
-
"use strict";
|
|
4238
|
-
init_define_CORE_MODULES();
|
|
4239
|
-
init_i18n();
|
|
4240
|
-
init_sitewide();
|
|
4241
|
-
}
|
|
4242
|
-
});
|
|
4243
|
-
|
|
4244
4929
|
// ../core/src/seo/analytics.ts
|
|
4245
4930
|
function analyticsScriptUrl(src) {
|
|
4246
4931
|
const value = src?.trim();
|
|
@@ -7301,8 +7986,8 @@ function defined(doc) {
|
|
|
7301
7986
|
}
|
|
7302
7987
|
function locList(base3, translations) {
|
|
7303
7988
|
const list2 = Array.isArray(base3) ? base3 : [];
|
|
7304
|
-
const
|
|
7305
|
-
return list2.map((item2, i) => loc(item2, { enUS: Array.isArray(
|
|
7989
|
+
const en2 = translations?.enUS;
|
|
7990
|
+
return list2.map((item2, i) => loc(item2, { enUS: Array.isArray(en2) ? en2[i] : void 0 }));
|
|
7306
7991
|
}
|
|
7307
7992
|
function shortValue(value) {
|
|
7308
7993
|
if (value === null || value === void 0) return void 0;
|
|
@@ -7528,10 +8213,10 @@ var init_business = __esm({
|
|
|
7528
8213
|
function loc(base3, translations) {
|
|
7529
8214
|
const tr2 = translations && typeof translations === "object" ? translations : {};
|
|
7530
8215
|
const out = {};
|
|
7531
|
-
const
|
|
7532
|
-
const
|
|
7533
|
-
if (
|
|
7534
|
-
if (
|
|
8216
|
+
const pt2 = str2(base3) ?? str2(tr2.ptBR);
|
|
8217
|
+
const en2 = str2(tr2.enUS);
|
|
8218
|
+
if (pt2) out[PT] = pt2;
|
|
8219
|
+
if (en2) out[EN] = en2;
|
|
7535
8220
|
return out;
|
|
7536
8221
|
}
|
|
7537
8222
|
function v1FullTitle(title, siteTitle) {
|
|
@@ -7648,7 +8333,7 @@ function convertProjects(ctx, docs) {
|
|
|
7648
8333
|
title: loc(d.title, d.titleTranslations),
|
|
7649
8334
|
summary: loc(d.description, d.descriptionTranslations),
|
|
7650
8335
|
content: mapLoc(loc(d.longDescription, d.longDescriptionTranslations), toHtml),
|
|
7651
|
-
|
|
8336
|
+
blocks: sections.length ? sections.map((sec, i) => sectionToBlock(sec, i)) : void 0,
|
|
7652
8337
|
metrics: metrics.length ? metrics : void 0,
|
|
7653
8338
|
cover,
|
|
7654
8339
|
gallery: gallery.length ? gallery : void 0,
|
|
@@ -7664,10 +8349,10 @@ function convertProjects(ctx, docs) {
|
|
|
7664
8349
|
});
|
|
7665
8350
|
});
|
|
7666
8351
|
}
|
|
7667
|
-
function caseMetrics(
|
|
7668
|
-
return (
|
|
8352
|
+
function caseMetrics(pt2, en2) {
|
|
8353
|
+
return (pt2 ?? []).flatMap((m, i) => {
|
|
7669
8354
|
const value = str2(m.value === void 0 ? void 0 : String(m.value));
|
|
7670
|
-
const label = loc(m.label, { enUS:
|
|
8355
|
+
const label = loc(m.label, { enUS: en2?.[i]?.label });
|
|
7671
8356
|
if (!value || !hasText(label)) return [];
|
|
7672
8357
|
return [compact({ value, label, icon: str2(m.icon) })];
|
|
7673
8358
|
});
|
|
@@ -7676,7 +8361,7 @@ function convertResume(ctx, docs) {
|
|
|
7676
8361
|
return docs.map((d) => {
|
|
7677
8362
|
const c = d.content ?? {};
|
|
7678
8363
|
const tr2 = d.contentTranslations ?? {};
|
|
7679
|
-
const
|
|
8364
|
+
const en2 = tr2.enUS ?? {};
|
|
7680
8365
|
const base3 = { ...meta2(d), order: d.orderIndex, ...lifecycle(d) };
|
|
7681
8366
|
const period = (p) => {
|
|
7682
8367
|
if (!str2(p)) return {};
|
|
@@ -7686,11 +8371,11 @@ function convertResume(ctx, docs) {
|
|
|
7686
8371
|
};
|
|
7687
8372
|
switch (d.type) {
|
|
7688
8373
|
case "experience":
|
|
7689
|
-
return compact({ ...base3, kind: "experience", title: loc(c.role, { enUS:
|
|
8374
|
+
return compact({ ...base3, kind: "experience", title: loc(c.role, { enUS: en2.role }), organization: str2(c.company), description: mapLoc(loc(c.description, { enUS: en2.description }), (s) => s), ...period(c.period) });
|
|
7690
8375
|
case "education":
|
|
7691
|
-
return compact({ ...base3, kind: "education", title: loc(c.degree, { enUS:
|
|
8376
|
+
return compact({ ...base3, kind: "education", title: loc(c.degree, { enUS: en2.degree }), organization: str2(c.institution), description: loc(c.description, { enUS: en2.description }), ...period(c.period) });
|
|
7692
8377
|
case "skill":
|
|
7693
|
-
return compact({ ...base3, kind: "skill", title: loc(c.name, { enUS:
|
|
8378
|
+
return compact({ ...base3, kind: "skill", title: loc(c.name, { enUS: en2.name }), description: loc(c.level, { enUS: en2.level }), group: str2(c.group) ? loc(c.group, { enUS: en2.group }) : void 0, tags: str2(c.group) ? [c.group] : void 0 });
|
|
7694
8379
|
case "soft_skill":
|
|
7695
8380
|
return compact({ ...base3, kind: "soft-skill", title: loc(c.text, tr2) });
|
|
7696
8381
|
case "course":
|
|
@@ -7699,7 +8384,7 @@ function convertResume(ctx, docs) {
|
|
|
7699
8384
|
return compact({ ...base3, kind: "language", title: loc(c.name, tr2.enUS ? { enUS: typeof tr2.enUS === "string" ? tr2.enUS : tr2.enUS.name } : void 0), description: str2(c.level) ? loc(c.level) : void 0 });
|
|
7700
8385
|
case "volunteer":
|
|
7701
8386
|
if (str2(c.text)) return compact({ ...base3, kind: "volunteer", title: loc(c.text, tr2) });
|
|
7702
|
-
return compact({ ...base3, kind: "volunteer", title: loc(c.role, { enUS:
|
|
8387
|
+
return compact({ ...base3, kind: "volunteer", title: loc(c.role, { enUS: en2.role }), organization: str2(c.company), description: loc(c.description, { enUS: en2.description }), ...period(c.period) });
|
|
7703
8388
|
default:
|
|
7704
8389
|
ctx.warnings.push(`Curr\xEDculo: item do tipo desconhecido "${d.type}" ficou de fora.`);
|
|
7705
8390
|
return null;
|
|
@@ -7965,6 +8650,11 @@ function buildUiTexts(ctx, report, now, plugins = {}) {
|
|
|
7965
8650
|
out.push({ key: "hero.available", value: fromHome, updatedAt: now });
|
|
7966
8651
|
report.texts.ui.push({ v1: "homeContent.availability_status", v2: "hero.available" });
|
|
7967
8652
|
}
|
|
8653
|
+
const intro5 = typeof ctx.contact?.proposalIntro === "string" ? ctx.contact.proposalIntro.trim() : "";
|
|
8654
|
+
if (intro5) {
|
|
8655
|
+
out.push({ key: "proposal.intro", value: { [PT]: intro5 }, updatedAt: now });
|
|
8656
|
+
report.texts.ui.push({ v1: "contactInfo.proposalIntro", v2: "proposal.intro" });
|
|
8657
|
+
}
|
|
7968
8658
|
for (const key of ctx.textKeys()) {
|
|
7969
8659
|
if (!ctx.customized(key)) continue;
|
|
7970
8660
|
if (SECTION_KEYS.has(key)) continue;
|
|
@@ -8214,9 +8904,9 @@ var init_convert = __esm({
|
|
|
8214
8904
|
const row = this.siteTexts.get(key);
|
|
8215
8905
|
const file = this.projectTexts[key];
|
|
8216
8906
|
const def = V1_TEXTS[key];
|
|
8217
|
-
const
|
|
8218
|
-
const
|
|
8219
|
-
return mapLoc(compact({ [PT]:
|
|
8907
|
+
const pt2 = str2(row?.ptBR) ?? str2(file?.pt) ?? def?.pt;
|
|
8908
|
+
const en2 = str2(row?.enUS) ?? str2(file?.en) ?? def?.en;
|
|
8909
|
+
return mapLoc(compact({ [PT]: pt2, [EN]: en2 }), (s) => s.trim());
|
|
8220
8910
|
}
|
|
8221
8911
|
/** O arquivo de tradução do projeto mudou o texto do template? (Só chaves que o template tem.) */
|
|
8222
8912
|
fileCustomized(key) {
|
|
@@ -8584,10 +9274,10 @@ function parseV1Translations(source) {
|
|
|
8584
9274
|
flatten(reader.value(), "", out);
|
|
8585
9275
|
return out;
|
|
8586
9276
|
}
|
|
8587
|
-
function mergeTranslations(
|
|
9277
|
+
function mergeTranslations(pt2, en2) {
|
|
8588
9278
|
const out = {};
|
|
8589
|
-
for (const [k, v] of Object.entries(
|
|
8590
|
-
for (const [k, v] of Object.entries(
|
|
9279
|
+
for (const [k, v] of Object.entries(pt2 ?? {})) out[k] = { pt: v };
|
|
9280
|
+
for (const [k, v] of Object.entries(en2 ?? {})) out[k] = { ...out[k], en: v };
|
|
8591
9281
|
return out;
|
|
8592
9282
|
}
|
|
8593
9283
|
function readV1ProjectTexts(projectDir, workDir) {
|
|
@@ -8605,9 +9295,9 @@ function readV1ProjectTexts(projectDir, workDir) {
|
|
|
8605
9295
|
return void 0;
|
|
8606
9296
|
}
|
|
8607
9297
|
};
|
|
8608
|
-
const
|
|
8609
|
-
const
|
|
8610
|
-
if (
|
|
9298
|
+
const pt2 = read(V1_TRANSLATION_FILES.pt);
|
|
9299
|
+
const en2 = read(V1_TRANSLATION_FILES.en);
|
|
9300
|
+
if (pt2 || en2) return { texts: mergeTranslations(pt2, en2), files, warnings };
|
|
8611
9301
|
const saved = workDir ? join20(workDir, SAVED_TEXTS_FILE) : void 0;
|
|
8612
9302
|
if (saved && existsSync13(saved)) {
|
|
8613
9303
|
try {
|
|
@@ -8888,7 +9578,7 @@ var init_customizations = __esm({
|
|
|
8888
9578
|
return `Na v2 a p\xE1gina \xE9 uma lista de blocos (${PAGE_BLOCKS[page]}), editada no painel. Se\xE7\xE3o que n\xE3o existe no cat\xE1logo: bloco pr\xF3prio em src/blocks/. Marca\xE7\xE3o diferente de um bloco que existe: npx create-rubrica ejetar <bloco>.`;
|
|
8889
9579
|
}
|
|
8890
9580
|
},
|
|
8891
|
-
{ test: (p) => /^src\/pages\/(BlogPost|ProjectCaseStudy|NotFound)\.tsx$/.test(p), area: "template do tema", suggestion: () => "Post, case e 404 s\xE3o templates do tema na v2 (ainda n\xE3o se ejetam): leve o ajuste para o tema ou abra uma issue." },
|
|
9581
|
+
{ test: (p) => /^src\/pages\/(BlogPost|ProjectCaseStudy|NotFound)\.tsx$/.test(p), area: "template do tema", suggestion: () => "Post, case e 404 s\xE3o templates do tema na v2 (ainda n\xE3o se ejetam): leve o ajuste para o tema ou abra uma issue. O corpo do case \xE9 uma lista de blocos (os campos do case da v1 viram blocos de texto), editada no painel." },
|
|
8892
9582
|
{ test: (p) => /^src\/pages\/admin\//.test(p), area: "painel", suggestion: () => "O painel vem do @rubrica/core na v2. Tela pr\xF3pria: abra uma issue ou um plugin; ajuste de texto: Textos." },
|
|
8893
9583
|
{ test: (p, k) => /^src\/components\/[^/]+\.tsx$/.test(p) && k === "novo", area: "componente pr\xF3prio", suggestion: () => "Vira bloco pr\xF3prio em src/blocks/ (defini\xE7\xE3o com defineBlock + componente React puro, s\xF3 props)." },
|
|
8894
9584
|
{ test: (p) => /^src\/components\/(ui|admin)\//.test(p), area: "componentes base", suggestion: () => "Componentes base da v1 (shadcn, painel) n\xE3o v\xE3o para a v2. Se um bloco pr\xF3prio usa, copie o necess\xE1rio para src/blocks/." },
|