{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/R1t1mxFDiJvMPRZAZNWI/6CgX954Y1cnBr0TAjdPS/Reading_time.js"],
  "sourcesContent": ["import{jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export function ReadingTime({wordsPerMinute,fontSize,textColor,fontWeight}){const[readingTime,setReadingTime]=useState(\"\");useEffect(()=>{if(typeof window!==\"undefined\"){// Scrape all visible text on the page\nconst content=document.body.innerText||\"\";const wordCount=content.trim().split(/\\s+/).length;const time=Math.ceil(wordCount/wordsPerMinute);setReadingTime(`${time} min${time>1?\"s\":\"\"}`);}},[wordsPerMinute]);return /*#__PURE__*/_jsxs(\"div\",{style:{fontSize:`${fontSize}px`,color:textColor,fontWeight:fontWeight},children:[readingTime,\" read\"]});}// \uD83C\uDF9B Framer UI Property Controls\naddPropertyControls(ReadingTime,{wordsPerMinute:{type:ControlType.Number,title:\"Words Per Min\",defaultValue:200,min:100,max:300},fontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:16,min:10,max:40},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000\"},fontWeight:{type:ControlType.Enum,title:\"Font Weight\",options:[\"normal\",\"medium\",\"bold\",\"lighter\"],optionTitles:[\"Normal\",\"Medium\",\"Bold\",\"Light\"],defaultValue:\"normal\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"ReadingTime\":{\"type\":\"reactComponent\",\"name\":\"ReadingTime\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Reading_time.map"],
  "mappings": "4JAAAA,IAA8I,SAASC,EAAY,CAAC,eAAAC,EAAe,SAAAC,EAAS,UAAAC,EAAU,WAAAC,CAAU,EAAE,CAAC,GAAK,CAACC,EAAYC,CAAc,EAAEC,EAAS,EAAE,EAAE,OAAAC,EAAU,IAAI,CAAC,GAAG,OAAO,OAAS,IAAY,CACtQ,IAAMC,GAAlC,SAAS,KAAK,WAAW,IAA2B,KAAK,EAAE,MAAM,KAAK,EAAE,OAAaC,EAAK,KAAK,KAAKD,EAAUR,CAAc,EAAEK,EAAe,GAAGI,CAAI,OAAOA,EAAK,EAAE,IAAI,EAAE,EAAE,CAAE,CAAC,EAAE,CAACT,CAAc,CAAC,EAAsBU,EAAM,MAAM,CAAC,MAAM,CAAC,SAAS,GAAGT,CAAQ,KAAK,MAAMC,EAAU,WAAWC,CAAU,EAAE,SAAS,CAACC,EAAY,OAAO,CAAC,CAAC,CAAE,CACxVO,EAAoBZ,EAAY,CAAC,eAAe,CAAC,KAAKa,EAAY,OAAO,MAAM,gBAAgB,aAAa,IAAI,IAAI,IAAI,IAAI,GAAG,EAAE,SAAS,CAAC,KAAKA,EAAY,OAAO,MAAM,YAAY,aAAa,GAAG,IAAI,GAAG,IAAI,EAAE,EAAE,UAAU,CAAC,KAAKA,EAAY,MAAM,MAAM,aAAa,aAAa,MAAM,EAAE,WAAW,CAAC,KAAKA,EAAY,KAAK,MAAM,cAAc,QAAQ,CAAC,SAAS,SAAS,OAAO,SAAS,EAAE,aAAa,CAAC,SAAS,SAAS,OAAO,OAAO,EAAE,aAAa,QAAQ,CAAC,CAAC",
  "names": ["init_ssg_sandbox_shims", "ReadingTime", "wordsPerMinute", "fontSize", "textColor", "fontWeight", "readingTime", "setReadingTime", "ye", "ue", "wordCount", "time", "u", "addPropertyControls", "ControlType"]
}
