{"version":3,"file":"shared-lib.DRqF9CXK.mjs","names":[],"sources":["https:/framerusercontent.com/modules/v99gqx4064kYkyQO3pjW/aFeg7e5Qa3TQIMbjS0xr/manualLocale.js","https:/framerusercontent.com/modules/rU8tSpbr9MavQzcBWd18/Xw3VpQ7lRi6SFap3f0VO/localeRoutes.js"],"sourcesContent":["// Goyen Legal · manual i18n · COMPATIBILITY BOUNDARY\n// ------------------------------------------------------------------------------------------------\n// Everything under i18n/ exists only because Framer's native Localization is not enabled on this\n// project. It is an adapter layer, deliberately small, that owns four things:\n//   · locale detection from the URL (Spanish at the root, English under /en),\n//   · the ES ↔ EN route map and the section anchors (localeRoutes.ts),\n//   · the shared user-facing strings of the code components (localizedCopy.ts),\n//   · the manual SEO alternates: hreflang, og:locale and <html lang> (LocaleSeo.tsx).\n// Nothing outside this folder may hardcode \"/en\" or detect the language on its own: components only\n// receive a `locale` property control and ask this layer for routes and strings.\n// When native Localization is adopted, delete the folder and the `locale` controls it feeds.\n// Procedure: .audit/english-v2-1/MIGRATION_TO_FRAMER_NATIVE_LOCALIZATION.md\n// ------------------------------------------------------------------------------------------------\nexport const LOCALES=[\"es\",\"en\"];export const DEFAULT_LOCALE=\"es\";/** Public prefix of the English site. Spanish, the default language, lives at the root. */export const EN_PREFIX=\"/en\";/** Canonical origin, identical to the one used by GoyenSchema. */export const SITE_ORIGIN=\"https://www.goyenlegal.com\";/** `<html lang>` per language. Spanish keeps the value Framer already publishes site-wide. */export const HTML_LANG={es:\"es-CO\",en:\"en\"};/** Open Graph locale per language. */export const OG_LOCALE={es:\"es_CO\",en:\"en_US\"};export function isLocale(value){return value===\"es\"||value===\"en\";}/** Path only: no origin, query or hash; no trailing slash except for the root. */export function normalizePath(input){let p=(input||\"/\").trim();if(/^https?:\\/\\//i.test(p)){try{p=new URL(p).pathname;}catch{/* keep the raw value */}}p=p.split(\"?\")[0].split(\"#\")[0];if(!p.startsWith(\"/\"))p=\"/\"+p;if(p.length>1)p=p.replace(/\\/+$/,\"\");return p||\"/\";}/** \"/en\" and everything under \"/en/\" is English; anything else is Spanish. */export function localeFromPath(path){const p=normalizePath(path);return p===EN_PREFIX||p.startsWith(EN_PREFIX+\"/\")?\"en\":\"es\";}export function homePath(locale){return locale===\"en\"?EN_PREFIX:\"/\";}export function otherLocale(locale){return locale===\"en\"?\"es\":\"en\";}export function absoluteUrl(path){if(/^https?:\\/\\//i.test(path))return path;return SITE_ORIGIN+(path.startsWith(\"/\")?path:\"/\"+path);}\nexport const __FramerMetadata__ = {\"exports\":{\"absoluteUrl\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"localeFromPath\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"EN_PREFIX\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"DEFAULT_LOCALE\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"HTML_LANG\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"LOCALES\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"otherLocale\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"isLocale\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"normalizePath\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"OG_LOCALE\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SITE_ORIGIN\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Locale\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"homePath\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./manualLocale.map","// Goyen Legal · manual i18n · route map (compatibility layer — see manualLocale.ts)\n// ------------------------------------------------------------------------------------------------\n// THE single source of truth for ES ↔ EN route pairing. Semantic ids, never string substitution.\n// Consumers: GoyenHeader (language switcher fallback), LocaleSeo (hreflang), GoyenSchema (crumbs),\n// QueHacemos and the footer links (through localizedCopy). The same table is exported as JSON in\n// .audit/english-v2-1/translation-manifest.json for the future migration to native Localization.\n// ------------------------------------------------------------------------------------------------\nimport{EN_PREFIX,homePath,localeFromPath,normalizePath}from\"https://framerusercontent.com/modules/v99gqx4064kYkyQO3pjW/aFeg7e5Qa3TQIMbjS0xr/manualLocale.js\";export const localeRoutes={home:{es:\"/\",en:\"/en\",indexable:true},firm:{es:\"/firma\",en:\"/en/firm\",indexable:true},people:{es:\"/personas\",en:\"/en/people\",indexable:true},\"person-juan-jose-goyeneche\":{es:\"/personas/juan-jose-goyeneche\",en:\"/en/people/juan-jose-goyeneche\",indexable:true,section:\"people\"},\"person-kevin-hoyos\":{es:\"/personas/kevin-hoyos\",en:\"/en/people/kevin-hoyos\",indexable:true,section:\"people\"},\"person-juan-ramon\":{es:\"/personas/juan-ramon\",en:\"/en/people/juan-ramon\",indexable:true,section:\"people\"},\"person-juan-moreno\":{es:\"/personas/juan-moreno\",en:\"/en/people/juan-moreno\",indexable:true,section:\"people\"},practiceAreas:{es:\"/areas-de-practica\",en:\"/en/practice-areas\",indexable:true},insights:{es:\"/recursos\",en:\"/en/insights\",indexable:true},contact:{es:\"/contacto\",en:\"/en/contact\",indexable:true},contactThanks:{es:\"/contacto/gracias\",en:\"/en/contact/thank-you\",indexable:false,section:\"contact\"},privacy:{es:\"/politica-de-privacidad\",en:\"/en/privacy-policy\",indexable:true},legalNotice:{es:\"/aviso-legal\",en:\"/en/legal-notice\",indexable:true},careers:{es:\"/trabaja-con-nosotros\",en:\"/en/careers\",indexable:true}};/**\n * CMS-backed editorial routes. Spanish articles live in the \"Recursos\" collection, English adaptations\n * in \"Insights\"; items are paired through the CMS fields \"English Version\" / \"Spanish Version\".\n * An article without a counterpart falls back to the section landing, never to a fake translation.\n */export const cmsRoutes={insight:{es:\"/recursos/\",en:\"/en/insights/\",section:\"insights\"}};/** Home section anchors (elementId): the same section, one id per language. */export const homeAnchors={hero:{es:\"hero\",en:\"hero\"},pointOfView:{es:\"punto-de-vista\",en:\"point-of-view\"},featured:{es:\"featured-perspective\",en:\"featured-insight\"},whatWeDo:{es:\"expertise\",en:\"what-we-do\"},allPracticeAreas:{es:\"todas-las-areas-de-practica\",en:\"all-practice-areas\"},experience:{es:\"experiencia\",en:\"experience\"},people:{es:\"personas\",en:\"people\"},legacy:{es:\"legado\",en:\"legacy\"},conversation:{es:\"conversemos\",en:\"conversation\"}};/** Practice-area anchors on the hub page (/areas-de-practica ↔ /en/practice-areas). */export const practiceAnchors={corp:{es:\"corporativo\",en:\"corporate-ma\"},trib:{es:\"tributario\",en:\"tax\"},camb:{es:\"cambiario\",en:\"foreign-exchange-foreign-investment\"},inmo:{es:\"inmobiliario\",en:\"real-estate\"},lab:{es:\"laboral\",en:\"employment\"},pi:{es:\"propiedad-intelectual\",en:\"intellectual-property\"},lit:{es:\"litigios\",en:\"litigation\"}};export function routePath(id,locale){return localeRoutes[id][locale];}export function anchorPath(anchor,locale){return homePath(locale)+\"#\"+homeAnchors[anchor][locale];}export function practicePath(key,locale){return routePath(\"practiceAreas\",locale)+\"#\"+practiceAnchors[key][locale];}/** Semantic id of a static route, in either language; null for CMS or unknown paths. */export function routeIdFor(path){const p=normalizePath(path);for(const id of Object.keys(localeRoutes)){const pair=localeRoutes[id];if(pair.es===p||pair.en===p)return id;}return null;}/** Absolute alternates for a static route: es, en and x-default (Spanish, the default language). */export function alternatesFor(id){const pair=localeRoutes[id];return[{hreflang:\"es\",path:pair.es},{hreflang:\"en\",path:pair.en},{hreflang:\"x-default\",path:pair.es}];}function mapHash(hash,from,to,table){if(!hash)return\"\";const id=hash.replace(/^#/,\"\");for(const key of Object.keys(table)){if(table[key][from]===id)return\"#\"+table[key][to];}return\"#\"+id;}/**\n * Where the language switcher sends a visitor standing on `path` when the document itself does not\n * declare a paired page (LocaleSeo emits one as <link rel=\"alternate\">). Static routes map to their\n * pair, keeping section anchors; CMS articles fall back to the section landing; anything else goes to\n * the home of the requested language. Never a 404.\n */export function switchTarget(path,target){const raw=path||\"/\";const hashIndex=raw.indexOf(\"#\");const hash=hashIndex>=0?raw.slice(hashIndex):\"\";const p=normalizePath(raw);const from=localeFromPath(p);// The URL is already in the target language: this only happens on the shared 404 page (Spanish chrome\n// under /en/…), so the switch goes to that language's home instead of pointing at a missing page.\nif(from===target)return homePath(target);const id=routeIdFor(p);if(id){const dest=localeRoutes[id][target];if(id===\"home\")return dest+mapHash(hash,from,target,homeAnchors);if(id===\"practiceAreas\")return dest+mapHash(hash,from,target,practiceAnchors);return dest;}for(const route of Object.values(cmsRoutes)){if(p.startsWith(route.es)||p.startsWith(route.en))return routePath(route.section,target);}return homePath(target);}/** True when the path belongs to the English site. Exposed for the manifest and QA only. */export function isEnglishPath(path){const p=normalizePath(path);return p===EN_PREFIX||p.startsWith(EN_PREFIX+\"/\");}\nexport const __FramerMetadata__ = {\"exports\":{\"routeIdFor\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"cmsRoutes\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"RouteId\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"switchTarget\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"anchorPath\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"routePath\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"localeRoutes\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"PracticeKey\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"homeAnchors\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"practiceAnchors\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"alternatesFor\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"practicePath\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"isEnglishPath\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"RoutePair\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"HomeAnchor\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./localeRoutes.map"],"mappings":"oDAasqB,SAAgB,EAAc,EAAM,CAAC,IAAI,GAAG,GAAO,IAAA,CAAK,KAAK,EAAE,GAAG,gBAAgB,KAAK,CAAC,EAAG,GAAG,CAAC,EAAE,IAAI,IAAI,CAAC,CAAC,CAAC,QAAS,MAAM,CAAyB,CAAqG,MAAnG,GAAE,EAAE,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,GAAO,EAAE,WAAW,GAAG,IAAE,EAAE,IAAI,GAAK,EAAE,OAAO,IAAE,EAAE,EAAE,QAAQ,OAAO,EAAE,GAAS,GAAG,GAAI,CAA+E,SAAgB,EAAe,EAAK,CAAC,IAAM,EAAE,EAAc,CAAI,EAAE,OAAO,IAAA,OAAe,EAAE,WAAW,MAAa,EAAE,KAAK,IAAK,CAAC,SAAgB,EAAS,EAAO,CAAC,OAAO,IAAS,KAAA,MAAe,GAAI,CAAC,SAAgB,EAAY,EAAO,CAAC,OAAO,IAAS,KAAK,KAAK,IAAK,CAAC,SAAgB,EAAY,EAAK,CAA2C,MAAvC,gBAAgB,KAAK,CAAI,EAAS,EAAY,GAAa,EAAK,WAAW,GAAG,EAAE,EAAK,IAAI,EAAM,qBAA9nC,EAAY,6BAAwI,EAAU,CAAC,GAAG,QAAQ,GAAG,IAAI,EAAqD,EAAU,CAAC,GAAG,QAAQ,GAAG,OAAO,KCFugB,SAAgB,EAAU,EAAG,EAAO,CAAC,OAAO,EAAa,EAAG,CAAC,EAAQ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