{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/JV3V3q6NKTxrdD5F8NDt/FT5NDPrt49M21tAeSefa/ZVu6mkrcE.js"],
  "sourcesContent": ["// Generated by Framer (f73129a)\nexport default function metadata(params,activeLocale){return{breakpoints:[{hash:\"duc9v6\",mediaQuery:\"(min-width: 1200px)\"},{hash:\"hjcq31\",mediaQuery:\"(min-width: 700px) and (max-width: 1199px)\"},{hash:\"1fupsvp\",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>',customHTMLHeadStart:'<!-- Canonical Attribute (SEO) -->\\n<link rel=\"canonical\" href=\"https://fintual.cl/money-market/\">\\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/money-market/\">\\n<!-- OpenGraph and Twitter Attributes -->',description:\"Un Money Market se puede entender un fondo de muy bajo riesgo. Invierte en nuestra alternativa de fondo Money Market: Very Conservative Streep\",elements:{},framerSearch:{index:false},robots:\"max-image-preview:large\",serializationId:\"framer-cr5Tq\",title:\"Money Market | Invierte en nuestra alternativa: Fondo Very Conservative Streep - Fintual\",viewport:\"width=device-width\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],
  "mappings": "AACe,SAARA,EAA0BC,EAAOC,EAAa,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,KAAK,SAAS,WAAW,qBAAqB,EAAE,CAAC,KAAK,SAAS,WAAW,4CAA4C,EAAE,CAAC,KAAK,UAAU,WAAW,oBAAoB,CAAC,EAAE,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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