{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/Vg3EHPLnbwFZsBRHtk1O/eXZvFm2iYio5EmdBpTvh/pjIi2Y5Wh.js"],
  "sourcesContent": ["// Generated by Framer (f73129a)\nexport default function metadata(params,activeLocale){return{breakpoints:[{hash:\"1aaq6l7\",mediaQuery:\"(min-width: 1200px)\"},{hash:\"1rlfqiv\",mediaQuery:\"(min-width: 700px) and (max-width: 1199px)\"},{hash:\"1xwtmhd\",mediaQuery:\"(max-width: 699px)\"}],customHTMLBodyEnd:'<!-- Datos Estructurados FAQ (SEO) -->\\n<script type=\"application/ld+json\">\\n{\\n  \"@context\": \"https://schema.org\",\\n  \"@type\": \"FAQPage\",\\n  \"mainEntity\": [{\\n    \"@type\": \"Question\",\\n    \"name\": \"\\xbfQu\\xe9 es la inflaci\\xf3n?\",\\n    \"acceptedAnswer\": {\\n      \"@type\": \"Answer\",\\n      \"text\": \"Es el aumento generalizado en el nivel de precios de los bienes y servicios de un pa\\xeds. Todo se va haciendo m\\xe1s caro y la plata va perdiendo valor d\\xeda a d\\xeda. La buena noticia es que puedes hacer algo al respecto.\"\\n    }\\n  },{\\n    \"@type\": \"Question\",\\n    \"name\": \"\\xbfC\\xf3mo me afecta la inflaci\\xf3n?\",\\n    \"acceptedAnswer\": {\\n      \"@type\": \"Answer\",\\n      \"text\": \"El 2022 la inflaci\\xf3n en Chile durante los 12 meses fue de un 12.8%. Esto significa que si en enero ten\\xedas 1 mill\\xf3n de pesos, el \\xfaltimo d\\xeda del a\\xf1o esa plata ahora s\\xf3lo vale $872.000. Por eso, lo mejor es invertirla y que no pierda valor.\"\\n    }\\n  },{\\n    \"@type\": \"Question\",\\n    \"name\": \"\\xbfComo puedo capear la inflaci\\xf3n?\",\\n    \"acceptedAnswer\": {\\n      \"@type\": \"Answer\",\\n      \"text\": \"Busca este \\xedcono \uD83D\uDCE5 en tu aplicaci\\xf3n y podr\\xe1s invertir en el fondo m\\xe1s conservador de Fintual. El a\\xf1o 2022 rent\\xf3 un 9.09%.  Si prefieres creas un objetivo, f\\xedjate que diga \\\\\"100% Very Conservative Streep\\\\\".\"\\n    }\\n  }]\\n}\\n</script>\\n<!-- Datos Estructurados FAQ (SEO) -->',customHTMLHeadEnd:\"<script>\\n  const BASE_URL = \\\"https://fintual.cl/api/real_assets/15077/days?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;\\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  \tdate.setMonth(date.getMonth() - months);\\n  \treturn 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 yearlyReturn = periodReturn(12);\\n  let quarterlyReturn = periodReturn(3);\\n  let monthlyReturn = periodReturn(1);\\n  \\n</script>\\n<script>\\n  yearlyReturn.then(result => {\\n      document.getElementById(\\\"yearly-return-web\\\").innerHTML = result;\\n  });\\n\\n</script>\",customHTMLHeadStart:'<!-- Canonical Attribute (SEO) -->\\n<link rel=\"canonical\" href=\"https://fintual.cl/inflacion/\">\\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/inflacion/\">\\n<!-- OpenGraph and Twitter Attributes -->',description:\"La inflaci\\xf3n corresponde al aumento generalizado de los precios de los bienes y servicios de un pa\\xeds. En Fintual puedes invertir contra la inflaci\\xf3n.\",elements:{},framerSearch:{index:false},robots:\"max-image-preview:large\",serializationId:\"framer-wf9kP\",title:\"Inflaci\\xf3n: \\xbfqu\\xe9 es? - 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,UAAU,WAAW,qBAAqB,EAAE,CAAC,KAAK,UAAU,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,wCAAi4C,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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