{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/L21oPRpPlLtefnrR8aCf/dkfPufkNon3914ILtVEQ/ReadingTime.js", "ssg:https://framerusercontent.com/modules/N0ZfTUWDa9ps7aFRCpZX/zwPofHR93TgcpRtLkomP/zzKvWDGNi.js"],
  "sourcesContent": ["/**\n * Reading Time V1\n * By Matias Fernandez\n *\n * at mattimelgarejo\n *\n *\n *\n */import{jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerDisableUnlink\n */export default function ReadingTime(props){const{text,readingType,language,style,textColor}=props;const calculateReadingTime=(text,readingType)=>{let wordsPerMinute;if(readingType===\"Talk Time\"){wordsPerMinute=200// Palabras por minuto durante el discurso\n;}else{wordsPerMinute=300// Palabras por minuto durante la lectura en silencio\n;}if(!text)return 0// Si no hay texto, retornar 0 minutos\n;const words=text.trim().split(/\\s+/).length;const readingTime=Math.ceil(words/wordsPerMinute);return readingTime;};const readingTime=calculateReadingTime(text,readingType);const minutesText=language===\"English\"?readingTime===1?\"minute\":\"minutes\":readingTime===1?\"minuto\":\"minutos\";return /*#__PURE__*/_jsxs(\"p\",{style:{...props.style,color:props.textColor,margin:0},children:[readingTime,\" \",minutesText]});}ReadingTime.defaultProps={text:\"\",readingType:\"Talk Time\",language:\"English\"};addPropertyControls(ReadingTime,{text:{type:ControlType.String,title:\"Text\",defaultValue:\"\",placeholder:\"Write or paste your text here...\",displayTextArea:true,hidden(props){return props.displayTextArea===false;}},readingType:{type:ControlType.Enum,title:\"Reading type\",options:[\"Talk Time\",\"Silent Reading Time\"],defaultValue:\"Talk Time\",description:\"Talk Time: 200 wpm / Silent Reading Time: 300 wpm\"},language:{type:ControlType.Enum,title:\"Language\",options:[\"English\",\"Spanish\"],defaultValue:\"English\",displaySegmentedControl:true},style:{type:ControlType.Font,title:\"Style\",controls:\"extended\",displayTextAlignment:false},textColor:{title:\"Color\",type:ControlType.Color,defaultValue:\"#000\",description:\"More components and templates [here](https://easywebtoday.lemonsqueezy.com/).\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ReadingTime\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ReadingTime.map", "// Generated by Framer (51f36d1)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"GF;Cabinet Grotesk-700\"]);export const fonts=[{explicitInter:true,fonts:[]}];export const css=['.framer-Un0SE .framer-styles-preset-1hy8m7l:not(.rich-text-wrapper), .framer-Un0SE .framer-styles-preset-1hy8m7l.rich-text-wrapper h5 { --framer-font-family: \"Cabinet Grotesk\", \"Cabinet Grotesk Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 28px; --framer-font-style: normal; --framer-font-variation-axes: normal; --framer-font-weight: 700; --framer-letter-spacing: 0em; --framer-line-height: 1.2em; --framer-paragraph-spacing: 40px; --framer-text-alignment: center; --framer-text-color: #c6c6c6; --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: lowercase; }','@media (max-width: 1919px) and (min-width: 1440px) { .framer-Un0SE .framer-styles-preset-1hy8m7l:not(.rich-text-wrapper), .framer-Un0SE .framer-styles-preset-1hy8m7l.rich-text-wrapper h5 { --framer-font-family: \"Cabinet Grotesk\", \"Cabinet Grotesk Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 22px; --framer-font-style: normal; --framer-font-variation-axes: normal; --framer-font-weight: 700; --framer-letter-spacing: 0em; --framer-line-height: 1.2em; --framer-paragraph-spacing: 40px; --framer-text-alignment: center; --framer-text-color: #c6c6c6; --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: lowercase; } }','@media (max-width: 1439px) and (min-width: 1200px) { .framer-Un0SE .framer-styles-preset-1hy8m7l:not(.rich-text-wrapper), .framer-Un0SE .framer-styles-preset-1hy8m7l.rich-text-wrapper h5 { --framer-font-family: \"Cabinet Grotesk\", \"Cabinet Grotesk Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 22px; --framer-font-style: normal; --framer-font-variation-axes: normal; --framer-font-weight: 700; --framer-letter-spacing: 0em; --framer-line-height: 1.2em; --framer-paragraph-spacing: 40px; --framer-text-alignment: center; --framer-text-color: #c6c6c6; --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: lowercase; } }','@media (max-width: 1199px) and (min-width: 0px) { .framer-Un0SE .framer-styles-preset-1hy8m7l:not(.rich-text-wrapper), .framer-Un0SE .framer-styles-preset-1hy8m7l.rich-text-wrapper h5 { --framer-font-family: \"Cabinet Grotesk\", \"Cabinet Grotesk Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 20px; --framer-font-style: normal; --framer-font-variation-axes: normal; --framer-font-weight: 700; --framer-letter-spacing: 0em; --framer-line-height: 1.2em; --framer-paragraph-spacing: 40px; --framer-text-alignment: center; --framer-text-color: #c6c6c6; --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: lowercase; } }'];export const className=\"framer-Un0SE\";\nexport const __FramerMetadata__ = {\"exports\":{\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],
  "mappings": "iGAUkB,SAARA,EAA6BC,EAAM,CAAC,GAAK,CAAC,KAAAC,EAAK,YAAAC,EAAY,SAAAC,EAAS,MAAAC,EAAM,UAAAC,CAAS,EAAEL,EAG2BM,GAHM,CAACL,EAAKC,IAAc,CAAC,IAAIK,EAEvJ,GAFyKL,IAAc,YAAaK,EAAe,IAC9MA,EAAe,IACjB,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", "u", "addPropertyControls", "ControlType", "fontStore", "fonts", "css", "className"]
}
