{"version":3,"file":"shared-lib.BQKuiApL.mjs","names":["useStore","useState"],"sources":["https:/framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js","https:/framer.com/m/framer/store.js@^1.0.0","https:/framerusercontent.com/modules/m2Fwl4w69jkqRBQLKkpu/v6FFRcg2fAsHhz7XDPi0/Store.js","https:/framerusercontent.com/modules/I40WfeC3dPAp1O4yVM16/f5hel759HJc2g53oG2dx/TranslatedText.js","https:/framerusercontent.com/modules/pg9QcZG6mVsVXQ1F33VQ/D7fsBIfKDszC7qwBUGEk/siteMetadata.js"],"sourcesContent":["import{useState,useEffect}from\"react\";import{Data,useObserveData}from\"framer\";export function createStore(state1){// Use Data so that a Preview reload resets the state\nconst dataStore=Data({state:Object.freeze({...state1})});// Create a set function that updates the state\nconst setDataStore=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(dataStore.state);}dataStore.state=Object.freeze({...dataStore.state,...newState});};// Store the initial state, copy the object if it's an object\nlet storeState=typeof state1===\"object\"?Object.freeze({...state1}):state1;// Keep a list of all the listeners, in the form of React hook setters\nconst storeSetters=new Set();// Create a set function that updates all the listeners / setters\nconst setStoreState=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(storeState);}storeState=typeof newState===\"object\"?Object.freeze({...storeState,...newState}):newState;// Update all the listeners / setters with the new value\nstoreSetters.forEach(setter=>setter(storeState));};// Create the actual hook based on everything above\nfunction useStore(){// Create the hook we are going to use as a listener\nconst[state,setState]=useState(storeState);// If we unmount the component using this hook, we need to remove the listener\n// @ts-ignore\nuseEffect(()=>{// But right now, we need to add the listener\nstoreSetters.add(setState);return()=>storeSetters.delete(setState);},[]);// If Data context exists, use Data, otherwise use vanilla React state\nif(useObserveData()===true){useObserveData();return[dataStore.state,setDataStore];}else{// Return the state and a function to update the central store\nreturn[state,setStoreState];}}return useStore;}\nexport const __FramerMetadata__ = {\"exports\":{\"createStore\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./createStore.map","/*\n * createStore (framer/store@1.0.1)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/vj7bFUjvEQFgEzNBkdoG/vf3CKm378wlVcBk7IhSU/createStore.js\"\n","import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";// Función para obtener el idioma inicial de forma segura\nfunction getInitialLanguage(){// Comprobamos si el código se está ejecutando en el navegador (no en el servidor)\nif(typeof window===\"undefined\"){return\"en\"// Idioma por defecto para el servidor\n;}const savedLanguage=localStorage.getItem(\"user_language\")// 1. Intenta leer la clave 'user_language'\n;// 2. Si existe un idioma guardado y es válido ('es' o 'en'), úsalo.\nif(savedLanguage&&[\"es\",\"en\"].includes(savedLanguage)){return savedLanguage;}// 3. Si no, usa el inglés como idioma por defecto.\nreturn\"en\";}export const useStore=createStore({language:getInitialLanguage(),faqId:0});\nexport const __FramerMetadata__ = {\"exports\":{\"useStore\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Store.map","// Get Started: https://www.framer.com/developers\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";// import * as es from \"./es.json\" // Importamos las traducciones\n// import * as en from \"./en.json\"\nimport{useStore}from\"https://framerusercontent.com/modules/m2Fwl4w69jkqRBQLKkpu/v6FFRcg2fAsHhz7XDPi0/Store.js\";import{es,en}from\"https://framerusercontent.com/modules/HntsDV20swO2c1rKy04p/vEiHg7IDN65MJwKlqOE0/Translations.js\";const translations={es,en};/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function TranslatedText(props){const[store]=useStore();const{esText,enText,customFont,color,wrap,textTransform,balance}=props;let text=store.language===\"es\"?esText:enText;// Debug: ver qué contiene realmente el texto\n// console.log(\"Text:\", text)\n// console.log(\"Text JSON:\", JSON.stringify(text))\ntext=text.replace(/\\\\n/g,\"\\n\");return /*#__PURE__*/_jsx(\"p\",{style:{color:color,whiteSpace:wrap?\"pre-line\":\"nowrap\",textTransform:textTransform,margin:0,textWrap:balance?\"balance\":wrap?\"normal\":\"nowrap\",...customFont},children:text});}TranslatedText.defaultProps={esText:\"Es placeholder\",enText:\"En placeholder\",wrap:true,balance:false};addPropertyControls(TranslatedText,{esText:{type:ControlType.String,title:\"ES Content\"},enText:{type:ControlType.String,title:\"EN Content\"},color:{title:\"Color\",type:ControlType.Color,defaultValue:\"#09F\"},customFont:{type:ControlType.Font,title:\"Custom Font\",defaultValue:{textAlign:\"left\",fontSize:16,letterSpacing:.1,lineHeight:1.5},defaultFontType:\"sans-serif\",defaultFontSize:\"16px\",displayTextAlignment:true,displayFontSize:true,displayFontColor:true,controls:\"extended\"},wrap:{type:ControlType.Boolean,title:\"Wrap text\"},textTransform:{type:ControlType.Enum,title:\"Text transform\",defaultValue:\"none\",displaySegmentedControl:true,segmentedControlDirection:\"vertical\",options:[\"none\",\"capitalize\",\"uppercase\",\"lowercase\"],optionTitles:[\"None\",\"Capitalize\",\"Uppercase\",\"Lowercase\"]},balance:{type:ControlType.Boolean,title:\"Balance\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TranslatedText\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TranslatedText.map","// Generated by Framer (8c094e5)\nexport default function metadata(params,activeLocale){return{description:\"A unique residential development located in Playa Avellanas, Guanacaste, in the heart of the Nicoya Peninsula – one of the five Blue Zones in the world.\",favicon:\"https://framerusercontent.com/assets/Mu7Rsb6jVlWaTwOd0otbAN44yhU.png\",robots:\"max-image-preview:large\",title:\"Foresta by the Beach \"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"gVAA8E,SAAgB,EAAY,EAAO,CACjH,IAAM,EAAU,EAAK,CAAC,MAAM,OAAO,OAAO,CAAC,GAAG,EAAO,CAAC,CAAC,CAAC,CAClD,EAAa,GAAU,CAC1B,OAAO,GAAW,aAAY,EAAS,EAAS,EAAU,MAAM,EAAE,EAAU,MAAM,OAAO,OAAO,CAAC,GAAG,EAAU,MAAM,GAAG,EAAS,CAAC,EAChI,EAAW,OAAO,GAAS,SAAS,OAAO,OAAO,CAAC,GAAG,EAAO,CAAC,CAAC,EAC7D,EAAa,IAAI,IACjB,EAAc,GAAU,CAC3B,OAAO,GAAW,aAAY,EAAS,EAAS,EAAW,EAAE,EAAW,OAAO,GAAW,SAAS,OAAO,OAAO,CAAC,GAAG,EAAW,GAAG,EAAS,CAAC,CAAC,EACjJ,EAAa,QAAQ,GAAQ,EAAO,EAAW,CAAC,EAChD,SAASA,GAAU,CACnB,GAAK,CAAC,EAAM,GAAUC,EAAS,EAAW,CAK1C,OAHA,OACA,EAAa,IAAI,EAAS,KAAW,EAAa,OAAO,EAAS,EAAG,EAAE,CAAC,CACrE,GAAgB,GAAG,IAAM,GAAgB,CAAO,CAAC,EAAU,MAAM,EAAa,EAC3E,CAAC,EAAM,EAAc,CAAG,OAAOD,mBAfC,IAAwC,qBEC9E,SAAS,GAAoB,CAC7B,GAAU,IAAS,OAAa,MAAM,KACpC,IAAM,EAAc,aAAa,QAAQ,gBAAgB,CAG3D,OADG,GAAe,CAAC,KAAK,KAAK,CAAC,SAAS,EAAc,CAAS,EACxD,4BAN+D,CAM5C,EAAS,EAAY,CAAC,SAAS,GAAoB,CAAC,MAAM,EAAE,CA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