{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/uU1mtMKXsrVAg8N5hW7w/PCK1x1QLNluYNoEoapwx/cachedIndex.js"],
  "sourcesContent": ["import{checkForCachedData,setCachedData}from\"https://framer.com/m/cache-YMiL.js@b9aplVZjN51x28yfNK16\";const VERSION=1;const defaultLocaleId=\"default\";export function isDefaultLocaleId(localeId){return!localeId||localeId===\"default\";}const INDEX_KEY=\"searchIndexCache\";function getIndexKey(localeId){if(isDefaultLocaleId(localeId))return INDEX_KEY;return`${INDEX_KEY}-${localeId}`;}const METADATA_KEY=\"searchCacheMetadata\";function getMetadataKey(localeId){if(isDefaultLocaleId(localeId))return METADATA_KEY;return`${METADATA_KEY}-${localeId}`;}export async function getCachedIndex(localeId){// A check here for metadata can be added later if we need to\n// migrate or expire the index. Though most likely, any version change\n// should result in deleting the cache and starting again.\nconst indexKey=getIndexKey(localeId);const cachedIndex=await checkForCachedData(indexKey);if(cachedIndex){return cachedIndex;}}export function setCachedIndex(localeId,index){const indexKey=getIndexKey(localeId);setCachedData(indexKey,index);const metadata={version:VERSION,timestamp:Date.now()};const metadataKey=getMetadataKey(localeId);setCachedData(metadataKey,metadata);}\nexport const __FramerMetadata__ = {\"exports\":{\"getCachedIndex\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"setCachedIndex\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"isDefaultLocaleId\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./cachedIndex.map"],
  "mappings": "gDAAsG,IAAMA,EAAQ,EAAyC,SAASC,EAAkBC,EAAS,CAAC,MAAM,CAACA,GAAUA,IAAW,SAAU,CAAC,IAAMC,EAAU,mBAAmB,SAASC,EAAYF,EAAS,CAAC,OAAGD,EAAkBC,CAAQ,EAASC,EAAgB,GAAGA,CAAS,IAAID,CAAQ,EAAG,CAAC,IAAMG,EAAa,sBAAsB,SAASC,EAAeJ,EAAS,CAAC,OAAGD,EAAkBC,CAAQ,EAASG,EAAmB,GAAGA,CAAY,IAAIH,CAAQ,EAAG,CAAC,eAAsBK,EAAeL,EAAS,CAG9kB,IAAMM,EAASJ,EAAYF,CAAQ,EAAQO,EAAY,MAAMC,EAAmBF,CAAQ,EAAE,GAAGC,EAAa,OAAOA,CAAa,CAAQ,SAASE,EAAeT,EAASU,EAAM,CAAC,IAAMJ,EAASJ,EAAYF,CAAQ,EAAEW,EAAcL,EAASI,CAAK,EAAE,IAAME,EAAS,CAAC,QAAQC,EAAQ,UAAU,KAAK,IAAI,CAAC,EAAQC,EAAYV,EAAeJ,CAAQ,EAAEW,EAAcG,EAAYF,CAAQ,CAAE",
  "names": ["VERSION", "isDefaultLocaleId", "localeId", "INDEX_KEY", "getIndexKey", "METADATA_KEY", "getMetadataKey", "getCachedIndex", "indexKey", "cachedIndex", "checkForCachedData", "setCachedIndex", "index", "setCachedData", "metadata", "VERSION", "metadataKey"]
}
