{"version":3,"file":"TextTwoColumns.BTYtgf4c.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/GwQri1jADvbtEcmZw4hY/AT8ODYD7vQr7J7gxce5P/Hyphens.js","https:/framerusercontent.com/modules/Sq4g59xJUn1OsODZX0OB/2firUqhOdsgA42Me8DPm/TextTwoColumns.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useLocale}from\"framer\";export function withResponsiveHyphens(Component){return props=>{const currentLocale=useLocale();const langCode=currentLocale?currentLocale.toLowerCase().slice(0,2):\"es\";// Si estamos en español, devolvemos el componente original tal cual, sin alterar nada\nif(langCode===\"es\"){return /*#__PURE__*/_jsx(Component,{...props,lang:langCode,className:`${props.className||\"\"} custom-justified-text`,children:props.children});}// 1. Palabras globales base para todo el sitio (solo actúan en inglés)\nconst globalProtected=[\"REIMS\",\"memoria\",\"ROSADOCE\",\"arquitectura\",\"architecture\"];// 2. Diccionario automático por ruta exacta (normalizada a minúsculas)\nlet path=\"\";if(typeof window!==\"undefined\"){path=window.location.pathname.toLowerCase();}let projectProtected=[];if(path===\"/proyectos\"||path.includes(\"/proyectos\")){projectProtected=[\"beneath\",\"seeing\",\"passionate\"];}else if(path.includes(\"pukkun\")){projectProtected=[\"microclimate\",\"interior\",\"intimate\",\"experience\",\"visual\",\"reasonable\"];}else if(path.includes(\"peten\")){projectProtected=[\"facades\",\"featured\",\"simultaneously\",\"human\",\"windows\",\"towards\",\"spaces\"];}else if(path.includes(\"villamerced\")){projectProtected=[\"boundaries\",\"garden\",\"structure\"];}else if(path.includes(\"hadas\")){projectProtected=[\"building\",\"manage\",\"visual\"];}else if(path.includes(\"banal\")){projectProtected=[\"structures\",\"sequence\",\"smokers\",\"simple\"];}else if(path.includes(\"hundida\")){projectProtected=[\"terrain\"];}else if(path.includes(\"robles\")){projectProtected=[];}else if(path.includes(\"basaltica\")){projectProtected=[\"areas\",\"privacy\",\"option\",\"towards\"];}else if(path.includes(\"casagammo\")){projectProtected=[\"private\",\"windows\",\"restrictions\"];}else if(path.includes(\"casadelunna\")){projectProtected=[\"inhabitants\",\"promotes\",\"creation\",\"interior\",\"upper\",\"protects\",\"building\",\"facilities\",\"sequence\"];}// Unimos las globales con las específicas de la ruta actual\nconst protectedWordsList=[...globalProtected,...projectProtected];const protectWords=children=>{if(typeof children===\"string\"){let text=children;if(!protectedWordsList.length||!new RegExp(protectedWordsList.join(\"|\"),\"i\").test(text))return text;const parts=text.split(new RegExp(`(\\\\b(?:${protectedWordsList.join(\"|\")})[,.;:!?]*)`,\"gi\"));return parts.map((part,i)=>{if(!part)return null;const cleanWordMatch=protectedWordsList.some(w=>new RegExp(`^${w}[,.;:!?]*$`,\"i\").test(part));if(cleanWordMatch){return /*#__PURE__*/_jsx(\"span\",{style:{display:\"inline-block\",whiteSpace:\"nowrap\",hyphens:\"none\",WebkitHyphens:\"none\",msHyphens:\"none\"},children:part},`protected-${i}`);}return part;});}if(Array.isArray(children)){return children.map(protectWords);}if(children&&children.props&&children.props.children){return{...children,props:{...children.props,children:protectWords(children.props.children)}};}return children;};return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                    .custom-justified-text {\n                        text-align: justify !important;\n                        text-align-last: left !important;\n                        text-justify: inter-word !important;\n                        word-break: normal !important;\n                        overflow-wrap: break-word !important;\n\n                        hyphens: auto !important;\n                        -webkit-hyphens: auto !important;\n                        -ms-hyphens: auto !important;\n                    }\n                `}),/*#__PURE__*/_jsx(Component,{...props,lang:langCode,className:`${props.className||\"\"} custom-justified-text`,children:protectWords(props.children)})]});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withResponsiveHyphens\":{\"type\":\"reactHoc\",\"name\":\"withResponsiveHyphens\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Hyphens.map","import{jsx as _jsx}from\"react/jsx-runtime\";export function TextTwoColumns(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,display:\"block\",columnCount:2,columnGap:\"20px\",width:\"100%\",hyphens:\"none\",WebkitHyphens:\"none\",columnFill:\"balance\"/* Fuerza a que ambas columnas midan exactamente lo mismo */}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"TextTwoColumns\":{\"type\":\"reactHoc\",\"name\":\"TextTwoColumns\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TextTwoColumns.map"],"mappings":"kLAA6G,SAAgB,EAAsB,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAc,EAAU,EAAQ,EAAS,EAAc,EAAc,YAAY,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,KACjR,GAAG,IAAW,KAAM,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,KAAK,EAAS,UAAU,GAAG,EAAM,WAAW,GAAG,wBAAwB,SAAS,EAAM,QAAQ,CAAC,EAChK,IAAM,EAAgB,CAAC,QAAQ,UAAU,WAAW,eAAe,cAAc,EAC7E,EAAK,GAAa,IAAS,SAAa,EAAK,EAAO,SAAS,SAAS,YAAY,GAAG,IAAI,EAAiB,CAAC,EAAK,IAAO,cAAc,EAAK,SAAS,YAAY,EAAG,EAAiB,CAAC,UAAU,SAAS,YAAY,EAAW,EAAK,SAAS,QAAQ,EAAG,EAAiB,CAAC,eAAe,WAAW,WAAW,aAAa,SAAS,YAAY,EAAW,EAAK,SAAS,OAAO,EAAG,EAAiB,CAAC,UAAU,WAAW,iBAAiB,QAAQ,UAAU,UAAU,QAAQ,EAAW,EAAK,SAAS,aAAa,EAAG,EAAiB,CAAC,aAAa,SAAS,WAAW,EAAW,EAAK,SAAS,OAAO,EAAG,EAAiB,CAAC,WAAW,SAAS,QAAQ,EAAW,EAAK,SAAS,OAAO,EAAG,EAAiB,CAAC,aAAa,WAAW,UAAU,QAAQ,EAAW,EAAK,SAAS,SA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