@fayz-ai/core 0.44.0 → 0.48.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/access/engine.d.ts +4 -3
- package/dist/access/engine.d.ts.map +1 -1
- package/dist/access/index.d.ts +2 -0
- package/dist/access/index.d.ts.map +1 -1
- package/dist/access/index.js +27 -3
- package/dist/access/index.js.map +1 -1
- package/dist/access/module-access.d.ts +31 -0
- package/dist/access/module-access.d.ts.map +1 -0
- package/dist/app/app-config.d.ts +15 -0
- package/dist/app/app-config.d.ts.map +1 -1
- package/dist/{chunk-5AN766JZ.js → chunk-5NVZ2NOO.js} +30 -7
- package/dist/chunk-5NVZ2NOO.js.map +1 -0
- package/dist/{chunk-QTEN5EL7.js → chunk-6ODXG6AJ.js} +13 -3
- package/dist/chunk-6ODXG6AJ.js.map +1 -0
- package/dist/{chunk-ZNXUGLL3.js → chunk-JHKAZA4T.js} +3 -3
- package/dist/{chunk-ZNXUGLL3.js.map → chunk-JHKAZA4T.js.map} +1 -1
- package/dist/{chunk-TDZO4LUS.js → chunk-KALDZT7C.js} +3 -3
- package/dist/{chunk-TDZO4LUS.js.map → chunk-KALDZT7C.js.map} +1 -1
- package/dist/{chunk-NI7VLCFI.js → chunk-R7LJOOJI.js} +4 -4
- package/dist/{chunk-NI7VLCFI.js.map → chunk-R7LJOOJI.js.map} +1 -1
- package/dist/{chunk-45BR57HO.js → chunk-UHLFFV6S.js} +4 -4
- package/dist/{chunk-45BR57HO.js.map → chunk-UHLFFV6S.js.map} +1 -1
- package/dist/{chunk-GCGFDVEZ.js → chunk-Y5QS5KBU.js} +4 -4
- package/dist/{chunk-GCGFDVEZ.js.map → chunk-Y5QS5KBU.js.map} +1 -1
- package/dist/connector-runtime/index.d.ts +2 -1
- package/dist/connector-runtime/index.d.ts.map +1 -1
- package/dist/data/index.js +4 -4
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/shell-translations.en.d.ts.map +1 -1
- package/dist/i18n/shell-translations.pt-br.d.ts.map +1 -1
- package/dist/index.d.ts +17 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +321 -44
- package/dist/index.js.map +1 -1
- package/dist/integrations/index.js +4 -4
- package/dist/lib/address.d.ts +14 -9
- package/dist/lib/address.d.ts.map +1 -1
- package/dist/lib/countries.d.ts +74 -0
- package/dist/lib/countries.d.ts.map +1 -0
- package/dist/plugin/index.js +3 -3
- package/dist/plugin/runtime.d.ts +8 -0
- package/dist/plugin/runtime.d.ts.map +1 -1
- package/dist/{shell-translations.pt-br-CPAZDDTQ.js → shell-translations.pt-br-DA5IHWK5.js} +12 -2
- package/dist/shell-translations.pt-br-DA5IHWK5.js.map +1 -0
- package/dist/testing/index.js +5 -5
- package/dist/types/billing.d.ts +13 -0
- package/dist/types/billing.d.ts.map +1 -1
- package/dist/types/crud.d.ts +20 -0
- package/dist/types/crud.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/plugins.d.ts +58 -0
- package/dist/types/plugins.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-5AN766JZ.js.map +0 -1
- package/dist/chunk-QTEN5EL7.js.map +0 -1
- package/dist/messaging/index.d.ts +0 -6
- package/dist/messaging/index.d.ts.map +0 -1
- package/dist/search/index.d.ts +0 -5
- package/dist/search/index.d.ts.map +0 -1
- package/dist/shell-translations.pt-br-CPAZDDTQ.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export { PluginContractError, assertConnectorContract, assertPluginManifestContract, bespokeConnectorTables } from './chunk-
|
|
2
|
-
export { CONNECTIONS_TABLE, CONNECTOR_CATEGORIES, ConnectionSettingsError, ConnectorRuntimeTokenUnavailableError, RequestBlockedError, RequestPlaneError, SYNC_RUNS_TABLE, assertSettingsAllowed, buyerIdempotencyKey, connectionKey, connectionRuns, connectionSettings, connectionStatus, connectorDirection, connectorEntities, connectorGrantScopes, connectorPermissions, connectorPlanes, connectorRuntimeToken, connectorSettings, connectorSubscribes, connectorSubscribesTo, createConnectionStore, createRpcEffectLedger, eventKeyMatches, getConnectorRuntimeTokenSource, grants, groupedPermissions, hasRequestPlane, hasSensitivePermission, invocationPlane, isConnectorCategory, isDataPermission, isEventPermission, isSettingSet, listConnections, missingRequiredSettings, permissionActions, permissionsWrite, preferredPlane, requestPlaneSpec, runEffect, runRequest, setConnectorRuntimeTokenSource, settingsStatus, setupStatusDetail, sortedPermissions, withAfterHooks } from './chunk-
|
|
1
|
+
export { PluginContractError, assertConnectorContract, assertPluginManifestContract, bespokeConnectorTables } from './chunk-UHLFFV6S.js';
|
|
2
|
+
export { CONNECTIONS_TABLE, CONNECTOR_CATEGORIES, ConnectionSettingsError, ConnectorRuntimeTokenUnavailableError, RequestBlockedError, RequestPlaneError, SYNC_RUNS_TABLE, assertSettingsAllowed, buyerIdempotencyKey, connectionKey, connectionRuns, connectionSettings, connectionStatus, connectorDirection, connectorEntities, connectorGrantScopes, connectorPermissions, connectorPlanes, connectorRuntimeToken, connectorSettings, connectorSubscribes, connectorSubscribesTo, createConnectionStore, createRpcEffectLedger, eventKeyMatches, getConnectorRuntimeTokenSource, grants, groupedPermissions, hasRequestPlane, hasSensitivePermission, invocationPlane, isConnectorCategory, isDataPermission, isEventPermission, isSettingSet, listConnections, missingRequiredSettings, permissionActions, permissionsWrite, preferredPlane, requestPlaneSpec, runEffect, runRequest, setConnectorRuntimeTokenSource, settingsStatus, setupStatusDetail, sortedPermissions, withAfterHooks } from './chunk-R7LJOOJI.js';
|
|
3
3
|
export { CONNECTOR_RUNTIME_TOKEN_HEADER, ConnectorHttpError, RateLimitExceededError, advanceWindow, backoffDelay, classify, createRateLimiter, cursorCompleteness, fetchWithRetry, isExpiring, paginate, parseRetryAfter, reconcileMirror, serializeCursor, sliceWindow, statusNeedsBody } from './chunk-3TRR2YLM.js';
|
|
4
4
|
export { comboOf, createKeymap, directionOf, haptic, moveFocus, setHapticsEnabled } from './chunk-RBPDK2WB.js';
|
|
5
|
-
import { eventBus, DATA_CHANGED_EVENT, resolveDataProvider } from './chunk-
|
|
6
|
-
export { CustomFieldsError, DATA_CHANGED_EVENT, FIELDS_TABLE, attachPersistentCache, bulkCreate, bulkRemove, cacheKeyFor, cachePrefixFor, clearCustomFieldsCache, countByTenant, createArchetypeProvider, createEventBus, createFayzApiProvider, createMockProvider, dataCall, dataQuery, emitDataChanged, eventBus, getActiveUnitId, getPersistentCache, invalidateCount, isKnownMissing, isUnitMode, localList, matchesDataChange, mergeCustomFields, onDataChanged, registerDataTelemetry, rememberIfMissing, replicaKeyFor, resetActiveUnit, resetMissingObjects, resolveCustomFields, resolveDataProvider, setActiveUnitId, setUnitMode, subscribeActiveUnit, syncReplica, useActiveUnitId, useDataChanged, useUnitMode, validateCustomFields, withCache, withOffline } from './chunk-
|
|
7
|
-
import { getActiveTenantId, getSupabaseClientOptional } from './chunk-
|
|
8
|
-
export { DEFAULT_CACHE_TTL, WRITE_REFUSED_MESSAGE, WriteRefusedError, applyRangeToQuery, applyUnitScope, assertWrote, clearGlobalCache, createCacheStore, createSupabaseProvider, getActiveTenantId, getScopedResource, getSupabaseClientOptional, globalCache, isFilterObject, matchesRange, parseRangeFilter, resolveUnitScope, setActiveTenantId, setGlobalSupabaseClient, setScopedResources, stableKey, subscribeActiveTenant, useActiveTenantId } from './chunk-
|
|
9
|
-
import { getBlock, checkNodePlacement, getScaffold } from './chunk-
|
|
10
|
-
export { BLOCK_SETTING_TYPES, PLUGIN_API_VERSION, PluginRuntimeProvider, auditBlocks, blockRegistry, buildEntityDomainEvents, checkAgainstSchema, checkBlockConstraints, checkBlockContext, checkNodePlacement, clearExtensionPoints, clearHandles, clearLoaders, componentRegistry, dataNeedKey, defaultPropsFromSettings, defineBlock, defineExtensionPoint, defineLoader, definePlugin, describeBlock, describeBlocks, describeExtensionPoints, describeLoaders, entityEventKey, extensionAfterHooks, extensionPointRegistry, formatSchemaIssues, getAnalyticsCards, getBlock, getBlockMeta, getComponent, getDashboardWidgets, getHandle, getMetric, getPage, getPlugin, getPluginFactory, getScaffold, getWidgetsForZone, handleNameFor, handleRegistry, hasExtensionPoint, hasHandle, hasLoader, isBlockEnabledOn, isLoaderParamRef, isLoaderPropRef, listBlocks, listExtensionHandlers, listExtensionPoints, listHandles, listLoaders, listMetrics, listPluginFactories, listPlugins, loaderRegistry, metricRegistry, pageRegistry, pluginFactoryRegistry, pluginRegistry, registerBlock, registerComponent, registerExtensionHandler, registerHandle, registerMetric, registerPage, registerPlugin, registerPluginFactory, registerScaffold, repairBlockTree, resolveHandle, resolveLoader, resolvePluginComponent, resolvePluginRuntime, runEscapeValve, runExtensionPoint, scaffoldRegistry, settingsToJsonSchema, summarizeBlockAudit, unregisterExtensionHandler, useConnectorsForPlugin, usePluginRuntime, usePluginRuntimeOptional } from './chunk-
|
|
5
|
+
import { eventBus, DATA_CHANGED_EVENT, resolveDataProvider } from './chunk-Y5QS5KBU.js';
|
|
6
|
+
export { CustomFieldsError, DATA_CHANGED_EVENT, FIELDS_TABLE, attachPersistentCache, bulkCreate, bulkRemove, cacheKeyFor, cachePrefixFor, clearCustomFieldsCache, countByTenant, createArchetypeProvider, createEventBus, createFayzApiProvider, createMockProvider, dataCall, dataQuery, emitDataChanged, eventBus, getActiveUnitId, getPersistentCache, invalidateCount, isKnownMissing, isUnitMode, localList, matchesDataChange, mergeCustomFields, onDataChanged, registerDataTelemetry, rememberIfMissing, replicaKeyFor, resetActiveUnit, resetMissingObjects, resolveCustomFields, resolveDataProvider, setActiveUnitId, setUnitMode, subscribeActiveUnit, syncReplica, useActiveUnitId, useDataChanged, useUnitMode, validateCustomFields, withCache, withOffline } from './chunk-Y5QS5KBU.js';
|
|
7
|
+
import { getActiveTenantId, getSupabaseClientOptional } from './chunk-KALDZT7C.js';
|
|
8
|
+
export { DEFAULT_CACHE_TTL, WRITE_REFUSED_MESSAGE, WriteRefusedError, applyRangeToQuery, applyUnitScope, assertWrote, clearGlobalCache, createCacheStore, createSupabaseProvider, getActiveTenantId, getScopedResource, getSupabaseClientOptional, globalCache, isFilterObject, matchesRange, parseRangeFilter, resolveUnitScope, setActiveTenantId, setGlobalSupabaseClient, setScopedResources, stableKey, subscribeActiveTenant, useActiveTenantId } from './chunk-KALDZT7C.js';
|
|
9
|
+
import { getBlock, checkNodePlacement, getScaffold } from './chunk-5NVZ2NOO.js';
|
|
10
|
+
export { BLOCK_SETTING_TYPES, PLUGIN_API_VERSION, PluginRuntimeProvider, auditBlocks, blockRegistry, buildEntityDomainEvents, checkAgainstSchema, checkBlockConstraints, checkBlockContext, checkNodePlacement, clearExtensionPoints, clearHandles, clearLoaders, componentRegistry, dataNeedKey, defaultPropsFromSettings, defineBlock, defineExtensionPoint, defineLoader, definePlugin, describeBlock, describeBlocks, describeExtensionPoints, describeLoaders, entityEventKey, extensionAfterHooks, extensionPointRegistry, formatSchemaIssues, getAnalyticsCards, getBlock, getBlockMeta, getComponent, getDashboardWidgets, getHandle, getMetric, getPage, getPlugin, getPluginFactory, getScaffold, getWidgetsForZone, handleNameFor, handleRegistry, hasExtensionPoint, hasHandle, hasLoader, isBlockEnabledOn, isLoaderParamRef, isLoaderPropRef, isModuleOnInRuntime, listBlocks, listExtensionHandlers, listExtensionPoints, listHandles, listLoaders, listMetrics, listPluginFactories, listPlugins, loaderRegistry, metricRegistry, pageRegistry, pluginFactoryRegistry, pluginRegistry, registerBlock, registerComponent, registerExtensionHandler, registerHandle, registerMetric, registerPage, registerPlugin, registerPluginFactory, registerScaffold, repairBlockTree, requiredModulesOn, resolveHandle, resolveLoader, resolvePluginComponent, resolvePluginRuntime, runEscapeValve, runExtensionPoint, scaffoldRegistry, settingsToJsonSchema, summarizeBlockAudit, unregisterExtensionHandler, useConnectorsForPlugin, usePluginRuntime, usePluginRuntimeOptional } from './chunk-5NVZ2NOO.js';
|
|
11
11
|
export { ENTITY_FIELD_TYPES, GENERIC_ENTITY_TABLE, RESERVED_ENTITY_FIELDS, Registry, clearCustomFieldsDeclarations, clearEntityDeclarations, customFieldsRegistry, declaredCustomFields, defineCustomFields, defineEntity, describeEntities, entityAdminForm, entityDeclarationRegistry, entityRecordSchema, hasCustomFieldsDeclaration, hasEntityDeclaration, isCustomId, listEntityDeclarations, resolveEntityDeclaration, validateEntityRecordData } from './chunk-EWKX4VUM.js';
|
|
12
|
-
import { toDataError } from './chunk-
|
|
13
|
-
export { DataError, describeError, errorMessage, offlineMessage, toDataError } from './chunk-
|
|
12
|
+
import { toDataError } from './chunk-JHKAZA4T.js';
|
|
13
|
+
export { DataError, describeError, errorMessage, offlineMessage, toDataError } from './chunk-JHKAZA4T.js';
|
|
14
14
|
export { clearEntityRegistry, deriveEntityKey, getAllEntities, getEntityByKey, registerEntity } from './chunk-CU64QI4A.js';
|
|
15
|
-
import { getCurrentLocale } from './chunk-
|
|
16
|
-
export { I18nProvider, coreTranslations, getCurrentLocale, mergeTranslations, preloadLocale, registerTranslations, resolveLocale, setCurrentLocale, setLocaleStore, tl, useI18nConfig, useTranslation } from './chunk-
|
|
15
|
+
import { getCurrentLocale } from './chunk-6ODXG6AJ.js';
|
|
16
|
+
export { I18nProvider, coreTranslations, getCurrentLocale, mergeTranslations, preloadLocale, registerTranslations, resolveLocale, setCurrentLocale, setLocaleStore, tl, useI18nConfig, useTranslation } from './chunk-6ODXG6AJ.js';
|
|
17
17
|
export { defaultRouterAdapter, hashRouterAdapter, historyRouterAdapter, hostRouterAdapter, staticRouterAdapter, windowRouterAdapter } from './chunk-OXQGRJZT.js';
|
|
18
18
|
export { FayzRuntimeError, createFayzRuntimeClient } from './chunk-7RTUHSKY.js';
|
|
19
19
|
export { AGENT_ROLES } from './chunk-2UPIZTL3.js';
|
|
@@ -333,13 +333,13 @@ function unmaskPhone(value) {
|
|
|
333
333
|
return (value || "").replace(/\D/g, "");
|
|
334
334
|
}
|
|
335
335
|
function maskPhone(value, mask) {
|
|
336
|
-
const
|
|
336
|
+
const digits2 = unmaskPhone(value);
|
|
337
337
|
let out = "";
|
|
338
338
|
let di = 0;
|
|
339
339
|
for (const ch of mask) {
|
|
340
|
-
if (di >=
|
|
340
|
+
if (di >= digits2.length) break;
|
|
341
341
|
if (ch === "#") {
|
|
342
|
-
out +=
|
|
342
|
+
out += digits2[di++];
|
|
343
343
|
} else {
|
|
344
344
|
out += ch;
|
|
345
345
|
}
|
|
@@ -352,16 +352,266 @@ function maskDigitCount(mask) {
|
|
|
352
352
|
return n;
|
|
353
353
|
}
|
|
354
354
|
|
|
355
|
+
// src/lib/countries.ts
|
|
356
|
+
var digits = (v) => (v || "").replace(/\D/g, "");
|
|
357
|
+
var BR_UFS = [
|
|
358
|
+
["AC", "Acre"],
|
|
359
|
+
["AL", "Alagoas"],
|
|
360
|
+
["AP", "Amap\xE1"],
|
|
361
|
+
["AM", "Amazonas"],
|
|
362
|
+
["BA", "Bahia"],
|
|
363
|
+
["CE", "Cear\xE1"],
|
|
364
|
+
["DF", "Distrito Federal"],
|
|
365
|
+
["ES", "Esp\xEDrito Santo"],
|
|
366
|
+
["GO", "Goi\xE1s"],
|
|
367
|
+
["MA", "Maranh\xE3o"],
|
|
368
|
+
["MT", "Mato Grosso"],
|
|
369
|
+
["MS", "Mato Grosso do Sul"],
|
|
370
|
+
["MG", "Minas Gerais"],
|
|
371
|
+
["PA", "Par\xE1"],
|
|
372
|
+
["PB", "Para\xEDba"],
|
|
373
|
+
["PR", "Paran\xE1"],
|
|
374
|
+
["PE", "Pernambuco"],
|
|
375
|
+
["PI", "Piau\xED"],
|
|
376
|
+
["RJ", "Rio de Janeiro"],
|
|
377
|
+
["RN", "Rio Grande do Norte"],
|
|
378
|
+
["RS", "Rio Grande do Sul"],
|
|
379
|
+
["RO", "Rond\xF4nia"],
|
|
380
|
+
["RR", "Roraima"],
|
|
381
|
+
["SC", "Santa Catarina"],
|
|
382
|
+
["SP", "S\xE3o Paulo"],
|
|
383
|
+
["SE", "Sergipe"],
|
|
384
|
+
["TO", "Tocantins"]
|
|
385
|
+
].map(([code, name]) => ({ code, name }));
|
|
386
|
+
var BR = {
|
|
387
|
+
iso2: "BR",
|
|
388
|
+
names: { "pt-BR": "Brasil", en: "Brazil", es: "Brasil" },
|
|
389
|
+
postal: {
|
|
390
|
+
pattern: /^\d{8}$/,
|
|
391
|
+
normalize: digits,
|
|
392
|
+
format(value) {
|
|
393
|
+
const d = digits(value).slice(0, 8);
|
|
394
|
+
return d.length > 5 ? `${d.slice(0, 5)}-${d.slice(5)}` : d;
|
|
395
|
+
},
|
|
396
|
+
inputMode: "numeric",
|
|
397
|
+
example: "01310-100",
|
|
398
|
+
lookup: "viacep"
|
|
399
|
+
},
|
|
400
|
+
// Only the CEP carries autoComplete: the form has always rendered it that way,
|
|
401
|
+
// and Brazil's markup is held identical to what every store shipped.
|
|
402
|
+
fields: [
|
|
403
|
+
{ key: "postalCode", required: true, label: { "pt-BR": "CEP", en: "CEP (postal code)", es: "CEP (c\xF3digo postal)" }, placeholder: { "pt-BR": "CEP", en: "CEP", es: "CEP" }, autoComplete: "postal-code" },
|
|
404
|
+
{ key: "street", required: true, label: { "pt-BR": "Endere\xE7o", en: "Street", es: "Calle" }, placeholder: { "pt-BR": "Rua, avenida\u2026", en: "Street, avenue\u2026", es: "Calle, avenida\u2026" } },
|
|
405
|
+
{ key: "number", required: true, label: { "pt-BR": "N\xFAmero", en: "Number", es: "N\xFAmero" }, placeholder: { "pt-BR": "N\xFAmero", en: "Number", es: "N\xFAmero" } },
|
|
406
|
+
{ key: "complement", required: false, label: { "pt-BR": "Complemento", en: "Apartment, unit", es: "Complemento" }, placeholder: { "pt-BR": "Apto, bloco", en: "Apt, block", es: "Piso, bloque" } },
|
|
407
|
+
{ key: "district", required: true, label: { "pt-BR": "Bairro", en: "Neighbourhood", es: "Barrio" }, placeholder: { "pt-BR": "Bairro", en: "Neighbourhood", es: "Barrio" } },
|
|
408
|
+
{ key: "region", required: true, label: { "pt-BR": "UF", en: "State", es: "Estado" }, placeholder: { "pt-BR": "UF", en: "State", es: "Estado" } },
|
|
409
|
+
{ key: "city", required: true, label: { "pt-BR": "Cidade", en: "City", es: "Ciudad" }, placeholder: { "pt-BR": "Cidade", en: "City", es: "Ciudad" } }
|
|
410
|
+
],
|
|
411
|
+
rows: [["postalCode"], ["street"], ["number", "complement"], ["district", "region"], ["city"]],
|
|
412
|
+
regions: BR_UFS,
|
|
413
|
+
// The checkout has always taken the UF as two typed letters; a select would
|
|
414
|
+
// change every Brazilian store's form, so Brazil keeps the text input.
|
|
415
|
+
region: { input: "text", stores: "code" },
|
|
416
|
+
taxId: {
|
|
417
|
+
kind: "cpf_cnpj",
|
|
418
|
+
label: { "pt-BR": "CPF ou CNPJ", en: "CPF or CNPJ", es: "CPF o CNPJ" },
|
|
419
|
+
required: "gateway",
|
|
420
|
+
validate: (v) => {
|
|
421
|
+
const d = digits(v);
|
|
422
|
+
return d.length === 11 ? isValidCPF(d) : d.length === 14 ? isValidCNPJ(d) : false;
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
};
|
|
426
|
+
var ES_PROVINCES = [
|
|
427
|
+
["01", "Araba/\xC1lava"],
|
|
428
|
+
["02", "Albacete"],
|
|
429
|
+
["03", "Alicante/Alacant"],
|
|
430
|
+
["04", "Almer\xEDa"],
|
|
431
|
+
["05", "\xC1vila"],
|
|
432
|
+
["06", "Badajoz"],
|
|
433
|
+
["07", "Illes Balears"],
|
|
434
|
+
["08", "Barcelona"],
|
|
435
|
+
["09", "Burgos"],
|
|
436
|
+
["10", "C\xE1ceres"],
|
|
437
|
+
["11", "C\xE1diz"],
|
|
438
|
+
["12", "Castell\xF3n/Castell\xF3"],
|
|
439
|
+
["13", "Ciudad Real"],
|
|
440
|
+
["14", "C\xF3rdoba"],
|
|
441
|
+
["15", "A Coru\xF1a"],
|
|
442
|
+
["16", "Cuenca"],
|
|
443
|
+
["17", "Girona"],
|
|
444
|
+
["18", "Granada"],
|
|
445
|
+
["19", "Guadalajara"],
|
|
446
|
+
["20", "Gipuzkoa"],
|
|
447
|
+
["21", "Huelva"],
|
|
448
|
+
["22", "Huesca"],
|
|
449
|
+
["23", "Ja\xE9n"],
|
|
450
|
+
["24", "Le\xF3n"],
|
|
451
|
+
["25", "Lleida"],
|
|
452
|
+
["26", "La Rioja"],
|
|
453
|
+
["27", "Lugo"],
|
|
454
|
+
["28", "Madrid"],
|
|
455
|
+
["29", "M\xE1laga"],
|
|
456
|
+
["30", "Murcia"],
|
|
457
|
+
["31", "Navarra"],
|
|
458
|
+
["32", "Ourense"],
|
|
459
|
+
["33", "Asturias"],
|
|
460
|
+
["34", "Palencia"],
|
|
461
|
+
["35", "Las Palmas"],
|
|
462
|
+
["36", "Pontevedra"],
|
|
463
|
+
["37", "Salamanca"],
|
|
464
|
+
["38", "Santa Cruz de Tenerife"],
|
|
465
|
+
["39", "Cantabria"],
|
|
466
|
+
["40", "Segovia"],
|
|
467
|
+
["41", "Sevilla"],
|
|
468
|
+
["42", "Soria"],
|
|
469
|
+
["43", "Tarragona"],
|
|
470
|
+
["44", "Teruel"],
|
|
471
|
+
["45", "Toledo"],
|
|
472
|
+
["46", "Valencia/Val\xE8ncia"],
|
|
473
|
+
["47", "Valladolid"],
|
|
474
|
+
["48", "Bizkaia"],
|
|
475
|
+
["49", "Zamora"],
|
|
476
|
+
["50", "Zaragoza"],
|
|
477
|
+
["51", "Ceuta"],
|
|
478
|
+
["52", "Melilla"]
|
|
479
|
+
].map(([code, name]) => ({ code, name }));
|
|
480
|
+
var ES_BY_CODE = new Map(ES_PROVINCES.map((p) => [p.code, p]));
|
|
481
|
+
var NIF_LETTERS = "TRWAGMYFPDXBNJZSQVHLCKE";
|
|
482
|
+
function isValidSpanishTaxId(value) {
|
|
483
|
+
const v = (value || "").toUpperCase().replace(/[\s.-]/g, "");
|
|
484
|
+
const dni = v.match(/^(\d{8})([A-Z])$/);
|
|
485
|
+
if (dni) return NIF_LETTERS[Number(dni[1]) % 23] === dni[2];
|
|
486
|
+
const nie = v.match(/^([XYZ])(\d{7})([A-Z])$/);
|
|
487
|
+
if (nie) return NIF_LETTERS[Number(`${"XYZ".indexOf(nie[1])}${nie[2]}`) % 23] === nie[3];
|
|
488
|
+
const cif = v.match(/^([ABCDEFGHJNPQRSUVW])(\d{7})([0-9A-J])$/);
|
|
489
|
+
if (cif) {
|
|
490
|
+
const body = cif[2];
|
|
491
|
+
let sum = 0;
|
|
492
|
+
for (let i = 0; i < 7; i++) {
|
|
493
|
+
const n = Number(body[i]);
|
|
494
|
+
if (i % 2 === 0) {
|
|
495
|
+
const doubled = n * 2;
|
|
496
|
+
sum += Math.floor(doubled / 10) + doubled % 10;
|
|
497
|
+
} else sum += n;
|
|
498
|
+
}
|
|
499
|
+
const control = (10 - sum % 10) % 10;
|
|
500
|
+
return cif[3] === String(control) || cif[3] === "JABCDEFGHI"[control];
|
|
501
|
+
}
|
|
502
|
+
return false;
|
|
503
|
+
}
|
|
504
|
+
var ES = {
|
|
505
|
+
iso2: "ES",
|
|
506
|
+
names: { "pt-BR": "Espanha", en: "Spain", es: "Espa\xF1a" },
|
|
507
|
+
postal: {
|
|
508
|
+
pattern: /^(0[1-9]|[1-4]\d|5[0-2])\d{3}$/,
|
|
509
|
+
normalize: (v) => digits(v).slice(0, 5),
|
|
510
|
+
format: (v) => digits(v).slice(0, 5),
|
|
511
|
+
inputMode: "numeric",
|
|
512
|
+
example: "08001",
|
|
513
|
+
lookup: "prefix"
|
|
514
|
+
},
|
|
515
|
+
fields: [
|
|
516
|
+
{ key: "postalCode", required: true, label: { "pt-BR": "C\xF3digo postal", en: "Postcode", es: "C\xF3digo postal" }, placeholder: { "pt-BR": "08001", en: "08001", es: "08001" }, autoComplete: "postal-code" },
|
|
517
|
+
{ key: "street", required: true, label: { "pt-BR": "Endere\xE7o e n\xFAmero", en: "Street and number", es: "Calle y n\xFAmero" }, placeholder: { "pt-BR": "Carrer de Mallorca, 401", en: "Carrer de Mallorca, 401", es: "Carrer de Mallorca, 401" }, autoComplete: "address-line1" },
|
|
518
|
+
{ key: "complement", required: false, label: { "pt-BR": "Andar, porta", en: "Floor, door", es: "Piso, puerta" }, placeholder: { "pt-BR": "3\xBA 2\xAA", en: "3rd floor, 2", es: "3\xBA 2\xAA" }, autoComplete: "address-line2" },
|
|
519
|
+
{ key: "city", required: true, label: { "pt-BR": "Cidade", en: "Town / city", es: "Poblaci\xF3n" }, placeholder: { "pt-BR": "Barcelona", en: "Barcelona", es: "Barcelona" }, autoComplete: "address-level2" },
|
|
520
|
+
{ key: "region", required: true, label: { "pt-BR": "Prov\xEDncia", en: "Province", es: "Provincia" }, autoComplete: "address-level1" }
|
|
521
|
+
],
|
|
522
|
+
rows: [["postalCode"], ["street"], ["complement"], ["city", "region"]],
|
|
523
|
+
regions: ES_PROVINCES,
|
|
524
|
+
region: { input: "select", stores: "name" },
|
|
525
|
+
regionFromPostal: (postal) => ES_BY_CODE.get(digits(postal).slice(0, 2)),
|
|
526
|
+
taxId: {
|
|
527
|
+
kind: "nif_nie",
|
|
528
|
+
label: { "pt-BR": "NIF/NIE (opcional)", en: "NIF/NIE (optional)", es: "NIF/NIE (opcional)" },
|
|
529
|
+
required: "never",
|
|
530
|
+
validate: isValidSpanishTaxId
|
|
531
|
+
}
|
|
532
|
+
};
|
|
533
|
+
function genericFor(iso2, names) {
|
|
534
|
+
return {
|
|
535
|
+
iso2,
|
|
536
|
+
names: names ?? { "pt-BR": iso2, en: iso2, es: iso2 },
|
|
537
|
+
postal: {
|
|
538
|
+
pattern: /^[A-Z0-9][A-Z0-9 -]{1,9}$/,
|
|
539
|
+
normalize: (v) => (v || "").trim().toUpperCase().replace(/\s+/g, " "),
|
|
540
|
+
format: (v) => (v || "").toUpperCase().slice(0, 10),
|
|
541
|
+
inputMode: "text",
|
|
542
|
+
example: "",
|
|
543
|
+
lookup: null
|
|
544
|
+
},
|
|
545
|
+
fields: [
|
|
546
|
+
{ key: "street", required: true, label: { "pt-BR": "Endere\xE7o", en: "Address", es: "Direcci\xF3n" }, autoComplete: "address-line1" },
|
|
547
|
+
{ key: "complement", required: false, label: { "pt-BR": "Complemento", en: "Address line 2", es: "Direcci\xF3n (l\xEDnea 2)" }, autoComplete: "address-line2" },
|
|
548
|
+
{ key: "city", required: true, label: { "pt-BR": "Cidade", en: "City", es: "Ciudad" }, autoComplete: "address-level2" },
|
|
549
|
+
{ key: "region", required: false, label: { "pt-BR": "Estado / regi\xE3o", en: "State / region", es: "Estado / regi\xF3n" }, autoComplete: "address-level1" },
|
|
550
|
+
{ key: "postalCode", required: false, label: { "pt-BR": "C\xF3digo postal", en: "Postal code", es: "C\xF3digo postal" }, autoComplete: "postal-code" }
|
|
551
|
+
],
|
|
552
|
+
rows: [["street"], ["complement"], ["city", "region"], ["postalCode"]],
|
|
553
|
+
region: { input: "text", stores: "name" }
|
|
554
|
+
};
|
|
555
|
+
}
|
|
556
|
+
var NAMES = {
|
|
557
|
+
US: { "pt-BR": "Estados Unidos", en: "United States", es: "Estados Unidos" },
|
|
558
|
+
PT: { "pt-BR": "Portugal", en: "Portugal", es: "Portugal" },
|
|
559
|
+
AR: { "pt-BR": "Argentina", en: "Argentina", es: "Argentina" },
|
|
560
|
+
MX: { "pt-BR": "M\xE9xico", en: "Mexico", es: "M\xE9xico" },
|
|
561
|
+
GB: { "pt-BR": "Reino Unido", en: "United Kingdom", es: "Reino Unido" },
|
|
562
|
+
FR: { "pt-BR": "Fran\xE7a", en: "France", es: "Francia" },
|
|
563
|
+
DE: { "pt-BR": "Alemanha", en: "Germany", es: "Alemania" },
|
|
564
|
+
IT: { "pt-BR": "It\xE1lia", en: "Italy", es: "Italia" }
|
|
565
|
+
};
|
|
566
|
+
var SCHEMAS = /* @__PURE__ */ new Map([
|
|
567
|
+
["BR", BR],
|
|
568
|
+
["ES", ES]
|
|
569
|
+
]);
|
|
570
|
+
function getCountrySchema(iso2) {
|
|
571
|
+
const code = (iso2 || "BR").toUpperCase();
|
|
572
|
+
return SCHEMAS.get(code) ?? genericFor(code, NAMES[code]);
|
|
573
|
+
}
|
|
574
|
+
function supportedCountrySchemas() {
|
|
575
|
+
return [...SCHEMAS.keys()];
|
|
576
|
+
}
|
|
577
|
+
function countryName(iso2, language = "pt-BR") {
|
|
578
|
+
return getCountrySchema(iso2).names[language];
|
|
579
|
+
}
|
|
580
|
+
function validateAddress(values, iso2, requiredOverride = {}) {
|
|
581
|
+
const schema = getCountrySchema(iso2);
|
|
582
|
+
const errors = {};
|
|
583
|
+
const raw = (key) => (key === "region" ? values.state : values[key])?.trim() ?? "";
|
|
584
|
+
for (const spec of schema.fields) {
|
|
585
|
+
const value = raw(spec.key);
|
|
586
|
+
const required = spec.required || requiredOverride[spec.key] === true;
|
|
587
|
+
if (!value) {
|
|
588
|
+
if (required) errors[spec.key] = "required";
|
|
589
|
+
continue;
|
|
590
|
+
}
|
|
591
|
+
if (spec.key === "postalCode" && !schema.postal.pattern.test(schema.postal.normalize(value))) errors.postalCode = "invalid";
|
|
592
|
+
if (spec.key === "region" && schema.region.stores === "code" && schema.iso2 === "BR" && !/^[A-Za-z]{2}$/.test(value)) errors.region = "invalid";
|
|
593
|
+
if (spec.key === "region" && schema.region.input === "select" && schema.regions && !schema.regions.some((r) => r.name === value || r.code === value)) errors.region = "invalid";
|
|
594
|
+
}
|
|
595
|
+
return errors;
|
|
596
|
+
}
|
|
597
|
+
|
|
355
598
|
// src/lib/address.ts
|
|
356
|
-
|
|
357
|
-
|
|
599
|
+
var isBrazil = (country) => !country || country.toUpperCase() === "BR";
|
|
600
|
+
function normalizePostalCode(value, country) {
|
|
601
|
+
if (isBrazil(country)) return (value || "").replace(/\D/g, "");
|
|
602
|
+
return getCountrySchema(country).postal.normalize(value);
|
|
358
603
|
}
|
|
359
|
-
function formatPostalCode(value) {
|
|
360
|
-
|
|
361
|
-
|
|
604
|
+
function formatPostalCode(value, country) {
|
|
605
|
+
if (isBrazil(country)) {
|
|
606
|
+
const digits2 = normalizePostalCode(value).slice(0, 8);
|
|
607
|
+
return digits2.length > 5 ? `${digits2.slice(0, 5)}-${digits2.slice(5)}` : digits2;
|
|
608
|
+
}
|
|
609
|
+
return getCountrySchema(country).postal.format(value);
|
|
362
610
|
}
|
|
363
|
-
function isValidPostalCode(value) {
|
|
364
|
-
return normalizePostalCode(value).length === 8;
|
|
611
|
+
function isValidPostalCode(value, country) {
|
|
612
|
+
if (isBrazil(country)) return normalizePostalCode(value).length === 8;
|
|
613
|
+
const schema = getCountrySchema(country);
|
|
614
|
+
return schema.postal.pattern.test(schema.postal.normalize(value));
|
|
365
615
|
}
|
|
366
616
|
var CACHE_KEY = "fayz.postal.cache.v1";
|
|
367
617
|
var memoryCache = /* @__PURE__ */ new Map();
|
|
@@ -401,7 +651,8 @@ function clearPostalCache() {
|
|
|
401
651
|
function createViaCepProvider(options) {
|
|
402
652
|
const fetcher = options?.fetcher ?? globalThis.fetch;
|
|
403
653
|
return {
|
|
404
|
-
async lookup(postalCode) {
|
|
654
|
+
async lookup(postalCode, country) {
|
|
655
|
+
if (!isBrazil(country)) return null;
|
|
405
656
|
const code = normalizePostalCode(postalCode);
|
|
406
657
|
if (code.length !== 8) return null;
|
|
407
658
|
const response = await fetcher(`https://viacep.com.br/ws/${code}/json/`);
|
|
@@ -425,7 +676,8 @@ function createEdgePostalProvider(options) {
|
|
|
425
676
|
const fallback = options.fallback ?? createViaCepProvider({ fetcher });
|
|
426
677
|
const endpoint = `${options.supabaseUrl.replace(/\/+$/, "")}/functions/v1/postal-lookup`;
|
|
427
678
|
return {
|
|
428
|
-
async lookup(postalCode) {
|
|
679
|
+
async lookup(postalCode, country) {
|
|
680
|
+
if (!isBrazil(country)) return null;
|
|
429
681
|
const code = normalizePostalCode(postalCode);
|
|
430
682
|
if (code.length !== 8) return null;
|
|
431
683
|
try {
|
|
@@ -466,13 +718,22 @@ function getPostalLookupProvider() {
|
|
|
466
718
|
if (!_provider) _provider = createViaCepProvider();
|
|
467
719
|
return _provider;
|
|
468
720
|
}
|
|
469
|
-
async function lookupPostalCode(postalCode) {
|
|
470
|
-
const
|
|
471
|
-
|
|
472
|
-
const
|
|
721
|
+
async function lookupPostalCode(postalCode, country) {
|
|
722
|
+
const iso2 = (country || "BR").toUpperCase();
|
|
723
|
+
const schema = getCountrySchema(iso2);
|
|
724
|
+
const code = normalizePostalCode(postalCode, iso2);
|
|
725
|
+
if (!schema.postal.pattern.test(code)) return null;
|
|
726
|
+
if (schema.postal.lookup === "prefix") {
|
|
727
|
+
const region = schema.regionFromPostal?.(code);
|
|
728
|
+
if (!region) return null;
|
|
729
|
+
return { postalCode: code, street: "", district: "", city: "", state: schema.region.stores === "code" ? region.code : region.name, country: iso2 };
|
|
730
|
+
}
|
|
731
|
+
if (schema.postal.lookup !== "viacep") return null;
|
|
732
|
+
const key = iso2 === "BR" ? code : `${iso2}:${code}`;
|
|
733
|
+
const cached = readCache(key);
|
|
473
734
|
if (cached) return cached;
|
|
474
|
-
const address = await getPostalLookupProvider().lookup(code);
|
|
475
|
-
if (address) writeCache(
|
|
735
|
+
const address = await getPostalLookupProvider().lookup(code, iso2);
|
|
736
|
+
if (address) writeCache(key, address);
|
|
476
737
|
return address;
|
|
477
738
|
}
|
|
478
739
|
var MANAGED = "data-fayz-seo";
|
|
@@ -1020,14 +1281,14 @@ var MIN_DIGIT_QUERY = 4;
|
|
|
1020
1281
|
function normalizeQuery(raw) {
|
|
1021
1282
|
const folded = foldText(raw);
|
|
1022
1283
|
const tokens = folded ? folded.split(" ").filter(Boolean) : [];
|
|
1023
|
-
const
|
|
1284
|
+
const digits2 = raw.replace(/\D+/g, "");
|
|
1024
1285
|
let anchor = "";
|
|
1025
1286
|
for (const token of tokens) if (token.length > anchor.length) anchor = token;
|
|
1026
1287
|
return {
|
|
1027
1288
|
raw,
|
|
1028
1289
|
folded,
|
|
1029
1290
|
tokens,
|
|
1030
|
-
digits:
|
|
1291
|
+
digits: digits2.length >= MIN_DIGIT_QUERY ? digits2 : "",
|
|
1031
1292
|
anchor
|
|
1032
1293
|
};
|
|
1033
1294
|
}
|
|
@@ -1227,15 +1488,15 @@ function hitFromRow(target, row, query) {
|
|
|
1227
1488
|
const value = asText(readField(row, key));
|
|
1228
1489
|
if (value) parts.push(value);
|
|
1229
1490
|
}
|
|
1230
|
-
let
|
|
1491
|
+
let digits2 = "";
|
|
1231
1492
|
for (const key of digitKeys(entity)) {
|
|
1232
1493
|
const value = readField(row, key);
|
|
1233
|
-
if (typeof value === "string" || typeof value === "number")
|
|
1494
|
+
if (typeof value === "string" || typeof value === "number") digits2 += digitsOf(String(value));
|
|
1234
1495
|
}
|
|
1235
1496
|
const score = scoreCandidate(query, {
|
|
1236
1497
|
title: foldText(title),
|
|
1237
1498
|
haystack: foldText(parts.join(" ")),
|
|
1238
|
-
digits
|
|
1499
|
+
digits: digits2
|
|
1239
1500
|
});
|
|
1240
1501
|
if (score === 0) return null;
|
|
1241
1502
|
return {
|
|
@@ -2874,6 +3135,7 @@ function normalizeAppConfig(raw) {
|
|
|
2874
3135
|
apps: Array.isArray(raw.apps) ? raw.apps : [],
|
|
2875
3136
|
nav: Array.isArray(raw.nav) ? raw.nav : [],
|
|
2876
3137
|
permissions: Array.isArray(raw.permissions) ? raw.permissions : [],
|
|
3138
|
+
unit_plugins: Array.isArray(raw.unit_plugins) ? raw.unit_plugins : [],
|
|
2877
3139
|
generated_at: raw.generated_at
|
|
2878
3140
|
};
|
|
2879
3141
|
}
|
|
@@ -2900,6 +3162,15 @@ function toTenantPluginBindings(config) {
|
|
|
2900
3162
|
}
|
|
2901
3163
|
return [...byPlugin.values()];
|
|
2902
3164
|
}
|
|
3165
|
+
function unitDisabledModules(config, unitId) {
|
|
3166
|
+
const out = /* @__PURE__ */ new Set();
|
|
3167
|
+
if (!unitId) return out;
|
|
3168
|
+
for (const row of config.unit_plugins ?? []) {
|
|
3169
|
+
if (row.unit_id !== unitId || row.status !== "disabled") continue;
|
|
3170
|
+
out.add(row.facet ? `${row.plugin}.${row.facet}` : row.plugin);
|
|
3171
|
+
}
|
|
3172
|
+
return out;
|
|
3173
|
+
}
|
|
2903
3174
|
function applyNavComposition(entries, nav) {
|
|
2904
3175
|
const overrides = new Map(nav.map((n) => [n.key, n]));
|
|
2905
3176
|
const composed = entries.filter((entry) => !overrides.get(entry.key)?.hidden).map((entry) => {
|
|
@@ -2913,7 +3184,13 @@ function applyNavComposition(entries, nav) {
|
|
|
2913
3184
|
};
|
|
2914
3185
|
});
|
|
2915
3186
|
if (!nav.some((n) => n.position != null)) return composed;
|
|
2916
|
-
|
|
3187
|
+
let last = Number.NEGATIVE_INFINITY;
|
|
3188
|
+
const ranked = composed.map((entry, i) => {
|
|
3189
|
+
const placed = overrides.get(entry.key)?.position;
|
|
3190
|
+
if (placed != null) last = placed;
|
|
3191
|
+
return { entry, rank: placed ?? (Number.isFinite(last) ? last + 1e-3 * (i + 1) / composed.length : -1 + i / composed.length) };
|
|
3192
|
+
});
|
|
3193
|
+
return ranked.sort((a, b) => a.rank - b.rank).map((r) => r.entry);
|
|
2917
3194
|
}
|
|
2918
3195
|
var TENANT_OWNED_MANIFEST_KEYS = ["theme", "branding", "locale"];
|
|
2919
3196
|
function applyAppConfigToManifest(manifest, config) {
|
|
@@ -3312,12 +3589,12 @@ function normalizeBrPhoneToE164(input) {
|
|
|
3312
3589
|
const raw = String(input ?? "").trim();
|
|
3313
3590
|
if (!raw) return null;
|
|
3314
3591
|
const hadPlus = raw.startsWith("+");
|
|
3315
|
-
const
|
|
3316
|
-
if (!
|
|
3317
|
-
if (hadPlus && !
|
|
3318
|
-
return
|
|
3592
|
+
const digits2 = raw.replace(/\D/g, "");
|
|
3593
|
+
if (!digits2) return null;
|
|
3594
|
+
if (hadPlus && !digits2.startsWith(BR_COUNTRY_CALLING_CODE)) {
|
|
3595
|
+
return digits2.length >= 8 && digits2.length <= 15 ? `+${digits2}` : null;
|
|
3319
3596
|
}
|
|
3320
|
-
let national =
|
|
3597
|
+
let national = digits2;
|
|
3321
3598
|
if (national.startsWith(BR_COUNTRY_CALLING_CODE) && national.length > 11) {
|
|
3322
3599
|
national = national.slice(2);
|
|
3323
3600
|
}
|
|
@@ -3338,8 +3615,8 @@ function brNationalNumber(e164) {
|
|
|
3338
3615
|
return /^\d{10,11}$/.test(national) ? national : null;
|
|
3339
3616
|
}
|
|
3340
3617
|
function brPhoneSuffixKey(input) {
|
|
3341
|
-
const
|
|
3342
|
-
return
|
|
3618
|
+
const digits2 = String(input ?? "").replace(/\D/g, "");
|
|
3619
|
+
return digits2.length >= BR_MATCH_SUFFIX_LENGTH ? digits2.slice(-BR_MATCH_SUFFIX_LENGTH) : null;
|
|
3343
3620
|
}
|
|
3344
3621
|
|
|
3345
3622
|
// src/telemetry/errors.ts
|
|
@@ -3599,6 +3876,6 @@ function cancelReplayResults(rows, operationKey) {
|
|
|
3599
3876
|
});
|
|
3600
3877
|
}
|
|
3601
3878
|
|
|
3602
|
-
export { ADDRESS_REQUIRED_KEYS, APP_ERROR_EVENT, BLOCK_PATH_ATTRIBUTE, BLOCK_TYPE_ATTRIBUTE, BR_COUNTRY_CALLING_CODE, BR_MATCH_SUFFIX_LENGTH, BlockChildren, BlockErrorBoundary, BlockRenderer, COUNTRIES, CURRENT_MANIFEST_VERSION, DEFAULT_COUNTRY, DEFAULT_LEAD_PADDING, DEFAULT_TRAIL_PADDING, EMPTY_APP_CONFIG, EVENT_LOG_TABLE, IMPERSONATION_KEY, MAX_QUICK_REPLY_BUTTONS, MAX_TEMPLATE_VARIABLES, MESSAGE_TEMPLATES_TABLE, MIN_QUERY_LENGTH, PROVIDER_TEMPLATE_LANGUAGE, RECONNECTED_EVENT, RECORD_GROUP, TENANT_OWNED_MANIFEST_KEYS, WidgetZone, absoluteUrl, activeFacet, app_manifest_schema_default as appManifestSchema, applyAppConfigToManifest, applyNavComposition, applySeo, blockEditorMode, brNationalNumber, brPhoneSuffixKey, breadcrumbJsonLd, buildCSV, buildSeoTags, callService, callServiceForTenant, cancelReplayResults, channelOfOrder, clearErrorReporters, clearEventSinks, clearMessageDefaults, clearPostalCache, clearSearchCache, compileProviderTemplate, computeContractHash, createDebug, createEdgePostalProvider, createPendingCommand, createSafeDataProvider, createVendorReporter, createViaCepProvider, currencyConfig, defineApp, digitsOf, docKind, documentRefusal, downloadCSV, emitDomainEvent, exportCSV, fetchAppConfig, fixedDiscountShares, foldText, foldWithMap, formatCNPJ, formatCPF, formatCurrency, formatDate, formatDateTime, formatPostalCode, getActiveLocale, getBlockErrorVisibility, getConnectivity, getCountry, getDefaultCurrency, getEventsWithoutMessages, getHouseCurrency, getMessageDefaults, getPostalLookupProvider, highlightRanges, installConnectivityListeners, installGlobalErrorHandlers, invalidateAppConfig, isAddressEmpty, isAddressIncomplete, isBankEmpty, isBankIncomplete, isImpersonating, isSearchIndexAvailable, isValidCNPJ, isValidCPF, isValidCpfOrCnpj, isValidPostalCode, legacyKindOfChannel, loadCritical, loadEventRuns, loadMessageOverrides, localDateKey, lookupPostalCode, markOffline, markOnline, maskCpfCnpj, maskDigitCount, maskPhone, migrateManifest, navHistoryBack, normalizeAppConfig, normalizeBrPhoneToE164, normalizeMessageActions, normalizePostalCode, normalizeQuery, onDomainEvent, onDomainEvents, onlyDigits, openingServiceCharge, organizationJsonLd, payeeAccountFields, payeeMethodOf, placementRuleApplies, positionalVariables, providerTemplateName, readImpersonation, recordEventRun, recordNavigation, recordRailFields, registerErrorReporter, registerEventSink, registerManifestMigration, registerMessageDefaults, renderApp, renderBlocks, renderMessageTemplate, reportAppError, reportDataError, resetErrorDedupe, resolveBackendEnv, resolveCurrency, resolveIntegrationSurface, resolveMessage, resolveMessages, routeModule, sampleEventPayload, scoreCandidate, searchEverything, seoOrigin, serializeManifest, serializeManifestWithHash, setBlockEditorMode, setBlockErrorVisibility, setDefaultCurrency, setHouseCurrency, setPostalLookupProvider, setSearchIndexAvailable, shortHash, similarity, startEventLog, subscribeConnectivity, subscribeHouseCurrency, surfaceAllowsWrites, toTenantPluginBindings, todayLocal, unmaskPhone, useBlockPath, useConnectivity, useDataVersion, useManifest, useNavHistoryStore, useNavReferrer, useOnDataChange, useOnEvent, useSeo, validateManifest, writeImpersonation };
|
|
3879
|
+
export { ADDRESS_REQUIRED_KEYS, APP_ERROR_EVENT, BLOCK_PATH_ATTRIBUTE, BLOCK_TYPE_ATTRIBUTE, BR_COUNTRY_CALLING_CODE, BR_MATCH_SUFFIX_LENGTH, BlockChildren, BlockErrorBoundary, BlockRenderer, COUNTRIES, CURRENT_MANIFEST_VERSION, DEFAULT_COUNTRY, DEFAULT_LEAD_PADDING, DEFAULT_TRAIL_PADDING, EMPTY_APP_CONFIG, EVENT_LOG_TABLE, IMPERSONATION_KEY, MAX_QUICK_REPLY_BUTTONS, MAX_TEMPLATE_VARIABLES, MESSAGE_TEMPLATES_TABLE, MIN_QUERY_LENGTH, PROVIDER_TEMPLATE_LANGUAGE, RECONNECTED_EVENT, RECORD_GROUP, TENANT_OWNED_MANIFEST_KEYS, WidgetZone, absoluteUrl, activeFacet, app_manifest_schema_default as appManifestSchema, applyAppConfigToManifest, applyNavComposition, applySeo, blockEditorMode, brNationalNumber, brPhoneSuffixKey, breadcrumbJsonLd, buildCSV, buildSeoTags, callService, callServiceForTenant, cancelReplayResults, channelOfOrder, clearErrorReporters, clearEventSinks, clearMessageDefaults, clearPostalCache, clearSearchCache, compileProviderTemplate, computeContractHash, countryName, createDebug, createEdgePostalProvider, createPendingCommand, createSafeDataProvider, createVendorReporter, createViaCepProvider, currencyConfig, defineApp, digitsOf, docKind, documentRefusal, downloadCSV, emitDomainEvent, exportCSV, fetchAppConfig, fixedDiscountShares, foldText, foldWithMap, formatCNPJ, formatCPF, formatCurrency, formatDate, formatDateTime, formatPostalCode, getActiveLocale, getBlockErrorVisibility, getConnectivity, getCountry, getCountrySchema, getDefaultCurrency, getEventsWithoutMessages, getHouseCurrency, getMessageDefaults, getPostalLookupProvider, highlightRanges, installConnectivityListeners, installGlobalErrorHandlers, invalidateAppConfig, isAddressEmpty, isAddressIncomplete, isBankEmpty, isBankIncomplete, isImpersonating, isSearchIndexAvailable, isValidCNPJ, isValidCPF, isValidCpfOrCnpj, isValidPostalCode, isValidSpanishTaxId, legacyKindOfChannel, loadCritical, loadEventRuns, loadMessageOverrides, localDateKey, lookupPostalCode, markOffline, markOnline, maskCpfCnpj, maskDigitCount, maskPhone, migrateManifest, navHistoryBack, normalizeAppConfig, normalizeBrPhoneToE164, normalizeMessageActions, normalizePostalCode, normalizeQuery, onDomainEvent, onDomainEvents, onlyDigits, openingServiceCharge, organizationJsonLd, payeeAccountFields, payeeMethodOf, placementRuleApplies, positionalVariables, providerTemplateName, readImpersonation, recordEventRun, recordNavigation, recordRailFields, registerErrorReporter, registerEventSink, registerManifestMigration, registerMessageDefaults, renderApp, renderBlocks, renderMessageTemplate, reportAppError, reportDataError, resetErrorDedupe, resolveBackendEnv, resolveCurrency, resolveIntegrationSurface, resolveMessage, resolveMessages, routeModule, sampleEventPayload, scoreCandidate, searchEverything, seoOrigin, serializeManifest, serializeManifestWithHash, setBlockEditorMode, setBlockErrorVisibility, setDefaultCurrency, setHouseCurrency, setPostalLookupProvider, setSearchIndexAvailable, shortHash, similarity, startEventLog, subscribeConnectivity, subscribeHouseCurrency, supportedCountrySchemas, surfaceAllowsWrites, toTenantPluginBindings, todayLocal, unitDisabledModules, unmaskPhone, useBlockPath, useConnectivity, useDataVersion, useManifest, useNavHistoryStore, useNavReferrer, useOnDataChange, useOnEvent, useSeo, validateAddress, validateManifest, writeImpersonation };
|
|
3603
3880
|
//# sourceMappingURL=index.js.map
|
|
3604
3881
|
//# sourceMappingURL=index.js.map
|