{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/DsPI16e9rCb18BUjb55z/s7X89gusFOYUEob4J8Wc/bhNGCDfaF.js"],
  "sourcesContent": ["// Generated by Framer (f73129a)\nexport default function metadata(params,activeLocale){return{breakpoints:[{hash:\"12e82z7\",mediaQuery:\"(min-width: 1200px)\"},{hash:\"1vfgss\",mediaQuery:\"(min-width: 700px) and (max-width: 1199px)\"},{hash:\"2dj8d8\",mediaQuery:\"(max-width: 699px)\"}],customHTMLHeadEnd:'<script>\\n  var example = [\\'alcanc\\xeda\\', \\'colch\\xf3n\\', \\'chauchera\\', \\'chanchito\\'];\\n\\n  textSequence2(0);\\n  function textSequence2(i) {\\n\\n    if (example.length > i) {\\n      setTimeout(function() {\\n        document.getElementById(\"inbox-2\").innerHTML = example[i];\\n        textSequence2(++i);\\n      }, 2500); // 1 second (in milliseconds)\\n\\n    } else if (example.length == i) { // Loop\\n      textSequence2(0);\\n    }\\n\\n  }\\n  \\n  const BASE_URL = \"https://fintual.cl/api/real_assets/15077/days?from_date=\"\\n\\n  function formatDate(date) {\\n    return date.toJSON().split(\\'T\\')[0];\\n  }\\n  \\n  function setPreviousDateByCount(date, daysCount) {\\n    const newDate = new Date(date);\\n\\n    newDate.setDate(date.getDate() - daysCount);\\n\\n    return newDate;\\n  }\\n\\n  async function getPrice(date) {\\n    const formattedDate = formatDate(date);\\n\\n    const url = BASE_URL + formattedDate + \"&to_date=\" + formattedDate;\\n\\n    const response = await fetch(url, { method: \\'GET\\' })\\n    const body = await response.json();\\n    const data = body.data;\\n\\n    if (data.length > 0) {\\n      return { date: date, price: data[0].attributes.price };\\n    }\\n\\n    return null;\\n  }\\n  \\n  function subtractMonths(date, months) {\\n    date.setMonth(date.getMonth() - months);\\n    return date;\\n  }\\n\\n  async function getLastPriceForDate(date) {\\n    let price = await getPrice(date);\\n\\n    while (!price) {\\n      date = setPreviousDateByCount(date, 1);\\n\\n      price = await getPrice(date);\\n    }\\n\\n    return price;\\n  }\\n\\n  async function periodReturn(period) {\\n    const today = new Date();\\n\\n    const { date: endDate, price: endPrice } = await getLastPriceForDate(today);\\n\\n    const periodBefore = subtractMonths(endDate, period);\\n\\n    const { date: startDate, price: startPrice } = await getLastPriceForDate(periodBefore);\\n\\n    const periodReturn = (endPrice / startPrice) - 1;\\n\\n    return `${Math.round(periodReturn * 10000) / 100}%`;\\n  }\\n\\n  async function returnEndDate() {\\n    const today = new Date();\\n\\n    const { date: endDate } = await getLastPriceForDate(today);\\n\\n    return formatDate(endDate);\\n  }\\n  \\n  let monthlyReturn = periodReturn(1);\\n    \\n  let quarterlyReturn = periodReturn(3);\\n  \\n  let yearlyReturn = periodReturn(12);\\n</script>\\n\\n<script>\\n  monthlyReturn.then(result => {\\n      document.getElementById(\"monthly-return-web\").innerHTML = result;\\n  });\\n\\n</script>\\n<script> \\n  yearlyReturn.then(result => {\\n      document.getElementById(\"yearly-return-web\").innerHTML = result;\\n  });\\n\\n</script>\\n<script>\\n  const today = new Date();\\n  getLastPriceForDate(today).then((result) => {\\n    document.getElementById(\"today-web\").innerHTML = result.date.toLocaleDateString(\\'es-CL\\');\\n  });\\n  \\n  yearlyReturn.then(result => {\\n      document.getElementById(\"yearly-return-web-disclaimer\").innerHTML = result;\\n  });\\n  \\n  quarterlyReturn.then(result => {\\n      document.getElementById(\"quarterly-return-web-disclaimer\").innerHTML = result;\\n  });\\n  \\n  monthlyReturn.then(result => {\\n      document.getElementById(\"monthly-return-web-disclaimer\").innerHTML = result;\\n  });\\n</script>\\n\\n<!-- Anti-flickering script -->\\n<script>\\n  var  timeout = 3000; // Timeout value to remove the flicker (in milliseconds)\\n  !function(h,i,d,e){var  t,n=h.createElement(\"style\");n.id=e,n.innerHTML=\"body{opacity:0}\",h.head.appendChild(n),t=d,i.rmfk=function(){var  t=h.getElementById(e);t&&t.parentNode.removeChild(t)},setTimeout(i.rmfk,t)}(document,window,timeout,\"abhide\");\\n</script>\\n\\n<!-- Mida A/B Testing Script -->\\n<script type=\"text/javascript\" async=\"\" src=\"https://cdn.mida.so/js/optimize.js?key=LZo291PlY3QLwBqgvV5wO6\"></script>\\n<!-- Mida A/B Testing Script -->',customHTMLHeadStart:'<!-- Canonical Attribute (SEO) -->\\n<link rel=\"canonical\" href=\"https://fintual.cl/reserva/\">\\n<!-- Canonical Attribute (SEO) -->\\n\\n<!-- OpenGraph and Twitter Attributes -->\\n<meta name=\"twitter:site\" content=\"@fintual\">\\n<meta property=\"og:url\" content=\"https://fintual.cl/reserva/\">\\n<!-- OpenGraph and Twitter Attributes -->\\n\\n<!-- Hreflang Tags (SEO) -->\\n<link rel=\"alternate\" href=\"https://fintual.cl/reserva/\" hreflang=\"x-default\">\\n<link rel=\"alternate\" href=\"https://fintual.cl/reserva/\" hreflang=\"es-cl\">\\n<link rel=\"alternate\" href=\"https://fintual.mx/cash-up/\" hreflang=\"es-mx\">\\n<!-- Hreflang Tags (SEO) -->',description:\"Ahorra con rentabilidad diaria. En Reserva (antes Inbox) de Fintual tus ahorros estar\\xe1n en un lugar seguro y regulado.\",elements:{},framerSearch:{index:false},robots:\"max-image-preview:large\",serializationId:\"framer-ctqDq\",title:\"Reserva (antes Inbox): Ahorra con rentabilidad diaria - Fintual\",viewport:\"width=device-width\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],
  "mappings": "AACe,SAARA,EAA0BC,EAAOC,EAAa,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,KAAK,UAAU,WAAW,qBAAqB,EAAE,CAAC,KAAK,SAAS,WAAW,4CAA4C,EAAE,CAAC,KAAK,SAAS,WAAW,oBAAoB,CAAC,EAAE,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA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