{"version":3,"file":"BilingualTextEntradas.CLOFREwu.mjs","names":["useState","useRef"],"sources":["https:/framerusercontent.com/modules/OFwR7iKSBI0CNezhIafm/9hA6cFdlrrS4nydk0SA9/BilingualTextEntradas.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";import{useLanguage}from\"https://framerusercontent.com/modules/QriWEv2o0RvZgtp6i8Ql/ZlTzxQLTWIGCe9C5pzDO/LanguageContext.js\";// ========================================\n// DICCIONARIO — PÁGINA DE ENTRADAS\n// ========================================\nconst translations={// ========================================\n// HERO\n// ========================================\nBLOG:\"BLOG\",\"Una selecci\\xf3n de ideas, proyectos y reflexiones que dan forma a nuestra visi\\xf3n.\":\"A selection of ideas, projects, and reflections that shape our vision.\",// ========================================\n// ENCABEZADO\n// ========================================\n\"(01)\":\"(01)\",ARTICULOS:\"ARTICLES\",ARTÍCULOS:\"ARTICLES\",MX:\"MX\",// ========================================\n// TÍTULO DEL ARTÍCULO\n// ========================================\n\"Arquitectura que transforma la manera de habitar\":\"Architecture That Transforms the Way We Live\",\"ARQUITECTURA QUE TRANSFORMA LA MANERA DE HABITAR\":\"ARCHITECTURE THAT TRANSFORMS THE WAY WE LIVE\",// ========================================\n// INFORMACIÓN DEL ARTÍCULO\n// ========================================\nFECHA:\"DATE\",\"08 de julio de 2026\":\"July 8, 2026\",\"8 de julio de 2026\":\"July 8, 2026\",AUTOR:\"AUTHOR\",\"Arquitectura, Dise\\xf1o y Espacios\":\"Architecture, Design, and Spaces\",CATEGORÍA:\"CATEGORY\",CATEGORIA:\"CATEGORY\",\"Arquitectura y Dise\\xf1o\":\"Architecture and Design\",// ========================================\n// SECCIÓN 01\n// ========================================\n\"El equilibrio entre dise\\xf1o y contexto\":\"The Balance Between Design and Context\",// Párrafo 1 separado\n\"La arquitectura debe dialogar con el lugar donde se encuentra. Entender el clima, la cultura, la historia y las caracter\\xedsticas del entorno permite desarrollar proyectos que se integran de manera arm\\xf3nica y respetuosa.\":\"Architecture must engage in a dialogue with its surroundings. Understanding the climate, culture, history, and characteristics of the environment allows us to develop projects that integrate harmoniously and respectfully.\",// Párrafo 2 separado\n\"En Metric buscamos que cada propuesta encuentre su propia identidad a trav\\xe9s de una arquitectura consciente, donde la relaci\\xf3n entre espacio y contexto sea parte fundamental del dise\\xf1o.\":\"At Metric, we seek to give each proposal its own identity through conscious architecture, where the relationship between space and context becomes a fundamental part of the design.\",// Ambos párrafos unidos por Framer\n\"La arquitectura debe dialogar con el lugar donde se encuentra. Entender el clima, la cultura, la historia y las caracter\\xedsticas del entorno permite desarrollar proyectos que se integran de manera arm\\xf3nica y respetuosa.En Metric buscamos que cada propuesta encuentre su propia identidad a trav\\xe9s de una arquitectura consciente, donde la relaci\\xf3n entre espacio y contexto sea parte fundamental del dise\\xf1o.\":\"Architecture must engage in a dialogue with its surroundings. Understanding the climate, culture, history, and characteristics of the environment allows us to develop projects that integrate harmoniously and respectfully. At Metric, we seek to give each proposal its own identity through conscious architecture, where the relationship between space and context becomes a fundamental part of the design.\",// Ambos párrafos unidos con espacio\n\"La arquitectura debe dialogar con el lugar donde se encuentra. Entender el clima, la cultura, la historia y las caracter\\xedsticas del entorno permite desarrollar proyectos que se integran de manera arm\\xf3nica y respetuosa. En Metric buscamos que cada propuesta encuentre su propia identidad a trav\\xe9s de una arquitectura consciente, donde la relaci\\xf3n entre espacio y contexto sea parte fundamental del dise\\xf1o.\":\"Architecture must engage in a dialogue with its surroundings. Understanding the climate, culture, history, and characteristics of the environment allows us to develop projects that integrate harmoniously and respectfully. At Metric, we seek to give each proposal its own identity through conscious architecture, where the relationship between space and context becomes a fundamental part of the design.\",// ========================================\n// SECCIÓN 02\n// ========================================\n\"Dise\\xf1ar espacios con prop\\xf3sito\":\"Designing Spaces with Purpose\",// Párrafo 1 separado\n\"Todo proyecto comienza con una idea: comprender el lugar, su esencia y las posibilidades que ofrece. La arquitectura nace del an\\xe1lisis del entorno, de la integraci\\xf3n con el contexto y de la b\\xfasqueda de soluciones que respondan a una visi\\xf3n clara.\":\"Every project begins with an idea: understanding the place, its essence, and the possibilities it offers. Architecture emerges from analyzing the surroundings, integrating with the context, and seeking solutions that respond to a clear vision.\",// Párrafo 2 separado\n\"Dise\\xf1ar con prop\\xf3sito significa crear espacios que no solo sean visualmente atractivos, sino que tambi\\xe9n mejoren la experiencia cotidiana de quienes los utilizan. Cada elemento tiene una raz\\xf3n de existir: la distribuci\\xf3n, la iluminaci\\xf3n, los materiales y las proporciones trabajan en conjunto para construir ambientes coherentes y atemporales.\":\"Designing with purpose means creating spaces that are not only visually appealing but also improve the everyday experience of those who use them. Every element has a reason to exist: layout, lighting, materials, and proportions work together to create coherent and timeless environments.\",// Ambos párrafos unidos por Framer\n\"Todo proyecto comienza con una idea: comprender el lugar, su esencia y las posibilidades que ofrece. La arquitectura nace del an\\xe1lisis del entorno, de la integraci\\xf3n con el contexto y de la b\\xfasqueda de soluciones que respondan a una visi\\xf3n clara.Dise\\xf1ar con prop\\xf3sito significa crear espacios que no solo sean visualmente atractivos, sino que tambi\\xe9n mejoren la experiencia cotidiana de quienes los utilizan. Cada elemento tiene una raz\\xf3n de existir: la distribuci\\xf3n, la iluminaci\\xf3n, los materiales y las proporciones trabajan en conjunto para construir ambientes coherentes y atemporales.\":\"Every project begins with an idea: understanding the place, its essence, and the possibilities it offers. Architecture emerges from analyzing the surroundings, integrating with the context, and seeking solutions that respond to a clear vision. Designing with purpose means creating spaces that are not only visually appealing but also improve the everyday experience of those who use them. Every element has a reason to exist: layout, lighting, materials, and proportions work together to create coherent and timeless environments.\",// Ambos párrafos unidos con espacio\n\"Todo proyecto comienza con una idea: comprender el lugar, su esencia y las posibilidades que ofrece. La arquitectura nace del an\\xe1lisis del entorno, de la integraci\\xf3n con el contexto y de la b\\xfasqueda de soluciones que respondan a una visi\\xf3n clara. Dise\\xf1ar con prop\\xf3sito significa crear espacios que no solo sean visualmente atractivos, sino que tambi\\xe9n mejoren la experiencia cotidiana de quienes los utilizan. Cada elemento tiene una raz\\xf3n de existir: la distribuci\\xf3n, la iluminaci\\xf3n, los materiales y las proporciones trabajan en conjunto para construir ambientes coherentes y atemporales.\":\"Every project begins with an idea: understanding the place, its essence, and the possibilities it offers. Architecture emerges from analyzing the surroundings, integrating with the context, and seeking solutions that respond to a clear vision. Designing with purpose means creating spaces that are not only visually appealing but also improve the everyday experience of those who use them. Every element has a reason to exist: layout, lighting, materials, and proportions work together to create coherent and timeless environments.\",// ========================================\n// SECCIÓN 03\n// ========================================\n\"La importancia de crear experiencias\":\"The Importance of Creating Experiences\",// Párrafo 1 separado\n\"Un espacio tiene la capacidad de despertar emociones y construir recuerdos. La arquitectura influye en c\\xf3mo percibimos nuestro entorno, desde la manera en que la luz transforma una habitaci\\xf3n hasta la forma en que un recorrido nos invita a descubrir nuevos momentos.\":\"A space has the power to evoke emotions and create memories. Architecture influences how we perceive our surroundings, from the way light transforms a room to how a journey through a space invites us to discover new moments.\",// Párrafo 2 separado\n\"Por ello, cada decisi\\xf3n de dise\\xf1o busca generar una experiencia integral. No se trata \\xfanicamente de crear edificios, sino de imaginar escenarios donde la vida pueda desarrollarse de manera natural, c\\xf3moda y significativa.\":\"For this reason, every design decision seeks to create a complete experience. It is not only about creating buildings, but about imagining settings where life can unfold naturally, comfortably, and meaningfully.\",// Ambos párrafos unidos por Framer\n\"Un espacio tiene la capacidad de despertar emociones y construir recuerdos. La arquitectura influye en c\\xf3mo percibimos nuestro entorno, desde la manera en que la luz transforma una habitaci\\xf3n hasta la forma en que un recorrido nos invita a descubrir nuevos momentos.Por ello, cada decisi\\xf3n de dise\\xf1o busca generar una experiencia integral. No se trata \\xfanicamente de crear edificios, sino de imaginar escenarios donde la vida pueda desarrollarse de manera natural, c\\xf3moda y significativa.\":\"A space has the power to evoke emotions and create memories. Architecture influences how we perceive our surroundings, from the way light transforms a room to how a journey through a space invites us to discover new moments. For this reason, every design decision seeks to create a complete experience. It is not only about creating buildings, but about imagining settings where life can unfold naturally, comfortably, and meaningfully.\",// Ambos párrafos unidos con espacio\n\"Un espacio tiene la capacidad de despertar emociones y construir recuerdos. La arquitectura influye en c\\xf3mo percibimos nuestro entorno, desde la manera en que la luz transforma una habitaci\\xf3n hasta la forma en que un recorrido nos invita a descubrir nuevos momentos. Por ello, cada decisi\\xf3n de dise\\xf1o busca generar una experiencia integral. No se trata \\xfanicamente de crear edificios, sino de imaginar escenarios donde la vida pueda desarrollarse de manera natural, c\\xf3moda y significativa.\":\"A space has the power to evoke emotions and create memories. Architecture influences how we perceive our surroundings, from the way light transforms a room to how a journey through a space invites us to discover new moments. For this reason, every design decision seeks to create a complete experience. It is not only about creating buildings, but about imagining settings where life can unfold naturally, comfortably, and meaningfully.\",// ========================================\n// MÁS ARTÍCULOS\n// ========================================\n\"MAS ARTICULOS\":\"MORE ARTICLES\",\"M\\xc1S ART\\xcdCULOS\":\"MORE ARTICLES\",\"M\\xe1s art\\xedculos\":\"More Articles\",\"Mas articulos\":\"More Articles\",// ========================================\n// FECHAS DE TARJETAS\n// ========================================\n\"Inversi\\xf3n | junio 2, 2026\":\"Investment | June 2, 2026\",\"Inversi\\xf3n | 2 de junio de 2026\":\"Investment | June 2, 2026\",// ========================================\n// TARJETA 01\n// ========================================\n\"LOS CABOS: DONDE SE ENCUENTRAN EL PAISAJE, LA ARQUITECTURA Y LA INVERSI\\xd3N\":\"LOS CABOS: WHERE LANDSCAPE, ARCHITECTURE, AND INVESTMENT MEET\",// ========================================\n// TARJETAS 02 Y 03\n// ========================================\n\"MEXICO: ARCHITECTURAL IDENTITY.WHERE HERITAGE MEETS CONTEMPORARY\":\"MEXICO: ARCHITECTURAL IDENTITY. WHERE HERITAGE MEETS CONTEMPORARY\",\"MEXICO: ARCHITECTURAL IDENTITY. WHERE HERITAGE MEETS CONTEMPORARY\":\"MEXICO: ARCHITECTURAL IDENTITY. WHERE HERITAGE MEETS CONTEMPORARY\",// ========================================\n// BOTONES\n// ========================================\n\"Ver entradas\":\"View entries\",\"ver entradas\":\"view entries\",\"VER ENTRADAS\":\"VIEW ENTRIES\",\"Ver entrada\":\"View entry\",\"ver entrada\":\"view entry\",\"VER ENTRADA\":\"VIEW ENTRY\",Entradas:\"Entries\",ENTRADAS:\"ENTRIES\",entradas:\"entries\"};// ========================================\n// OBTENER NODOS DE TEXTO\n// ========================================\nfunction getTextNodes(element){const walker=document.createTreeWalker(element,NodeFilter.SHOW_TEXT);const nodes=[];let currentNode;while(currentNode=walker.nextNode()){nodes.push(currentNode);}return nodes;}// ========================================\n// NORMALIZAR TEXTO\n// ========================================\nfunction normalizeText(text){return text.replace(/\\u00A0/g,\" \").replace(/\\u2028/g,\" \").replace(/\\u2029/g,\" \").replace(/\\uFEFF/g,\"\").replace(/[‘’]/g,\"'\").replace(/\\s+/g,\" \").trim();}// ========================================\n// BUSCAR TRADUCCIÓN\n// ========================================\nfunction findTranslation(originalNodes){// Framer puede mantener o eliminar el espacio\n// que existe entre distintos nodos de texto.\nconst joinedNormally=normalizeText(originalNodes.join(\"\"));const joinedWithSpaces=normalizeText(originalNodes.join(\" \"));const translationEntry=Object.entries(translations).find(([spanishText])=>{const normalizedSpanish=normalizeText(spanishText);return normalizedSpanish===joinedNormally||normalizedSpanish===joinedWithSpaces;});return translationEntry?.[1];}// ========================================\n// OVERRIDE BILINGÜE — ENTRADAS\n// ========================================\nexport function withBilingualTextEntradas(Component){return props=>{const[node,setNode]=useState(null);const originalNodesRef=useRef(null);const{lang}=useLanguage();useEffect(()=>{if(!node)return;const textNodes=getTextNodes(node);// Guarda el español original una sola vez.\nif(originalNodesRef.current===null){originalNodesRef.current=textNodes.map(textNode=>textNode.nodeValue||\"\");}const originalNodes=originalNodesRef.current;const translated=findTranslation(originalNodes);if(lang===\"en\"&&translated){// La traducción completa se coloca en el\n// primer nodo interno del Text Layer.\ntextNodes.forEach((textNode,index)=>{textNode.nodeValue=index===0?translated:\"\";});}else{// Restaura todos los nodos originales\n// cuando el idioma vuelve al español.\ntextNodes.forEach((textNode,index)=>{textNode.nodeValue=originalNodes[index]??\"\";});}},[lang,node]);return /*#__PURE__*/_jsx(Component,{...props,ref:setNode});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withBilingualTextEntradas\":{\"type\":\"reactHoc\",\"name\":\"withBilingualTextEntradas\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BilingualTextEntradas.map"],"mappings":"qLAsDA,SAAS,EAAa,EAAQ,CAAC,IAAM,EAAO,SAAS,iBAAiB,EAAQ,WAAW,SAAS,EAAQ,EAAM,CAAC,EAAM,EAAY,KAAM,EAAY,EAAO,SAAS,GAAG,EAAM,KAAK,CAAW,EAAG,OAAO,CAAM,CAG9M,SAAS,EAAc,EAAK,CAAC,OAAO,EAAK,QAAQ,UAAU,GAAG,CAAC,CAAC,QAAQ,UAAU,GAAG,CAAC,CAAC,QAAQ,UAAU,GAAG,CAAC,CAAC,QAAQ,UAAU,EAAE,CAAC,CAAC,QAAQ,QAAQ,GAAG,CAAC,CAAC,QAAQ,OAAO,GAAG,CAAC,CAAC,KAAK,CAAE,CAGpL,SAAS,EAAgB,EAAc,CAEvC,IAAM,EAAe,EAAc,EAAc,KAAK,EAAE,CAAC,EAAQ,EAAiB,EAAc,EAAc,KAAK,GAAG,CAAC,EAAmN,OAA1L,OAAO,QAAQ,CAAY,CAAC,CAAC,MAAM,CAAC,KAAe,CAAC,IAAM,EAAkB,EAAc,CAAW,EAAE,OAAO,IAAoB,GAAgB,IAAoB,CAAiB,CAAyB,CAAC,GAAG,EAAG,CAGvW,SAAgB,EAA0B,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAK,GAASA,EAAS,IAAI,EAAQ,EAAiBC,EAAO,IAAI,EAAO,CAAC,QAAM,EAAY,EAK/D,OALiE,MAAc,CAAC,GAAG,CAAC,EAAK,OAAO,IAAM,EAAU,EAAa,CAAI,EAClO,EAAiB,UAAU,OAAM,EAAiB,QAAQ,EAAU,IAAI,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