{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/DPJQYqn2WlogRt4vBFtf/WTSRmg9wl0HN6ZPKAkki/ChangelogOverrides.js"],
  "sourcesContent": ["import { jsx as _jsx } from \"react/jsx-runtime\";\nexport function withFormatDateForHomepage(Component) {\n  return props => {\n    // expected date format is MMM DD, YYYY OR MM D, YYYY\n    // eg. JAN 31, 2023 or JAN 1, 2023\n    // we'd like all version to have the same length string such that we'd change to JAN 01, 2023\n    const date = new Date(props.text); // comes back as Mmm DD, YYYY - eg. Jan 02, 2023\n    const formattedDate = date.toLocaleString(\"en-US\", {\n      month: \"short\",\n      year: \"numeric\",\n      day: \"2-digit\"\n    }); // get MMM DD, YYYY - eg. JAN 02, 2023\n    const uppercasedChars = formattedDate[1].toUpperCase() + formattedDate[2].toUpperCase();\n    const finalizedDate = formattedDate.substring(0, 1) + formattedDate[1].toUpperCase() + formattedDate[2].toUpperCase() + formattedDate.substring(3);\n    props.text = finalizedDate;\n    return /*#__PURE__*/_jsx(Component, {\n      ...props\n    });\n  };\n}\nexport function withStyleInlineImages(Component) {\n  return props => {\n    try {\n      const mediaChildren = props.children.props.children.filter(child => child.type === \"img\" || child.type === \"video\");\n      mediaChildren.forEach((child, index) => {\n        const styles = {\n          \"border-radius\": \"10px\",\n          width: \"100%\",\n          height: \"auto\"\n        };\n        if (index === 0) {\n          child.props[\"style\"] = styles;\n        } else {\n          child.props[\"style\"] = {\n            \"margin-top\": \"24px\",\n            ...styles\n          };\n        }\n      });\n    } catch (err) {\n      console.warn(\"Couldn't style images\", err);\n    }\n    return /*#__PURE__*/_jsx(Component, {\n      ...props\n    });\n  };\n}\nexport const __FramerMetadata__ = {\n  \"exports\": {\n    \"withStyleInlineImages\": {\n      \"type\": \"reactHoc\",\n      \"name\": \"withStyleInlineImages\",\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"withFormatDateForHomepage\": {\n      \"type\": \"reactHoc\",\n      \"name\": \"withFormatDateForHomepage\",\n      \"annotations\": {\n        \"framerContractVersion\": \"1\"\n      }\n    },\n    \"__FramerMetadata__\": {\n      \"type\": \"variable\"\n    }\n  }\n};\n//# sourceMappingURL=./ChangelogOverrides.map"],
  "mappings": "yCACO,SAASA,EAA0BC,EAAW,CACnD,OAAOC,GAAS,CAKd,IAAMC,EADO,IAAI,KAAKD,EAAM,IAAI,EACL,eAAe,QAAS,CACjD,MAAO,QACP,KAAM,UACN,IAAK,SACP,CAAC,EACKE,EAAkBD,EAAc,CAAC,EAAE,YAAY,EAAIA,EAAc,CAAC,EAAE,YAAY,EAChFE,EAAgBF,EAAc,UAAU,EAAG,CAAC,EAAIA,EAAc,CAAC,EAAE,YAAY,EAAIA,EAAc,CAAC,EAAE,YAAY,EAAIA,EAAc,UAAU,CAAC,EACjJ,OAAAD,EAAM,KAAOG,EACOC,EAAKL,EAAW,CAClC,GAAGC,CACL,CAAC,CACH,CACF,CACO,SAASK,EAAsBN,EAAW,CAC/C,OAAOC,GAAS,CACd,GAAI,CACoBA,EAAM,SAAS,MAAM,SAAS,OAAOM,GAASA,EAAM,OAAS,OAASA,EAAM,OAAS,OAAO,EACpG,QAAQ,CAACA,EAAOC,IAAU,CACtC,IAAMC,EAAS,CACb,gBAAiB,OACjB,MAAO,OACP,OAAQ,MACV,EACID,IAAU,EACZD,EAAM,MAAM,MAAWE,EAEvBF,EAAM,MAAM,MAAW,CACrB,aAAc,OACd,GAAGE,CACL,CAEJ,CAAC,CACH,OAASC,EAAP,CACA,QAAQ,KAAK,wBAAyBA,CAAG,CAC3C,CACA,OAAoBL,EAAKL,EAAW,CAClC,GAAGC,CACL,CAAC,CACH,CACF",
  "names": ["withFormatDateForHomepage", "Component", "props", "formattedDate", "uppercasedChars", "finalizedDate", "p", "withStyleInlineImages", "child", "index", "styles", "err"]
}
