{"version":3,"file":"ReadTimeCalculator.DMyEdiw2.mjs","names":["React.useContext","React.useMemo","React.Fragment","useRef","React.useId","RichText"],"sources":["https:/framerusercontent.com/modules/CmIbZUg4gRDYwAb6nRmH/dqLVJOjvJM9xqsynC98d/BXA7ebe0w.js","https:/framerusercontent.com/modules/9xqdrpbVPUOOaakYIq60/mAVxA1wG6ymwDtsreAOx/ReadTimeCalculator.js"],"sourcesContent":["// Generated by Framer (62e4d63)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,RichText,useActiveVariantCallback,useComponentViewport,useLocaleInfo,useVariantState,withCSS,withFX}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const MotionDivWithFX=withFX(motion.div);const enabledGestures={wGG4OBbm3:{hover:true}};const cycleOrder=[\"wGG4OBbm3\",\"MNhVaGowJ\",\"AO8CisS0w\",\"e30pARBE2\",\"R9XuCBagR\",\"IDbJb5BZi\",\"Ku6YZH6vI\"];const serializationHash=\"framer-Y7UyS\";const variantClassNames={AO8CisS0w:\"framer-v-gvkzl1\",e30pARBE2:\"framer-v-63kr34\",IDbJb5BZi:\"framer-v-i6o5jk\",Ku6YZH6vI:\"framer-v-1yn1u02\",MNhVaGowJ:\"framer-v-qxg1fe\",R9XuCBagR:\"framer-v-1aj7yl7\",wGG4OBbm3:\"framer-v-xbr9c1\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={delay:0,duration:.15,ease:[.44,0,.56,1],type:\"tween\"};const transition2={delay:0,duration:1,ease:[0,0,1,1],type:\"tween\"};const animation={opacity:1,rotate:360,rotateX:0,rotateY:0,scale:1,skewX:0,skewY:0,x:0,y:0};const transformTemplate1=(_,t)=>`translateX(-50%) ${t}`;const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const Variants=motion.create(React.Fragment);const humanReadableVariantMap={Default:\"wGG4OBbm3\",Disabled:\"AO8CisS0w\",Error:\"R9XuCBagR\",Loading:\"MNhVaGowJ\",Secondary:\"IDbJb5BZi\",SecondaryLoading:\"Ku6YZH6vI\",Success:\"e30pARBE2\"};const getProps=({click,height,id,label,width,...props})=>{return{...props,Qz8xRdgo5:click??props.Qz8xRdgo5,variant:humanReadableVariantMap[props.variant]??props.variant??\"wGG4OBbm3\",XiEoY9X7Z:label??props.XiEoY9X7Z??\"Submit\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,XiEoY9X7Z,Qz8xRdgo5,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"wGG4OBbm3\",enabledGestures,ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const{activeVariantCallback,delay}=useActiveVariantCallback(baseVariant);const onTap1dg4dnb=activeVariantCallback(async(...args)=>{setGestureState({isPressed:false});if(Qz8xRdgo5){const res=await Qz8xRdgo5(...args);if(res===false)return false;}});const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);const isDisplayed=()=>{if(baseVariant===\"MNhVaGowJ\")return true;return false;};const isDisplayed1=()=>{if(baseVariant===\"Ku6YZH6vI\")return true;return false;};return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsxs(motion.button,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-xbr9c1\",className,classNames),\"data-framer-name\":\"Default\",\"data-highlight\":true,\"data-reset\":\"button\",layoutDependency:layoutDependency,layoutId:\"wGG4OBbm3\",onTap:onTap1dg4dnb,ref:refBinding,style:{background:\"linear-gradient(180deg, rgb(0, 179, 179) 0%, rgb(0, 128, 128) 100%)\",borderBottomLeftRadius:100,borderBottomRightRadius:100,borderTopLeftRadius:100,borderTopRightRadius:100,opacity:1,...style},variants:{\"wGG4OBbm3-hover\":{opacity:1},AO8CisS0w:{opacity:.5},e30pARBE2:{opacity:1},IDbJb5BZi:{background:\"linear-gradient(180deg, var(--token-caa1a512-a891-4c9e-94e6-5cbfe5637f54, rgb(250, 248, 245)) 0%, var(--token-4176412e-e1d2-42ae-bbf0-080e3555ca79, rgb(231, 229, 224)) 100%)\",opacity:1},Ku6YZH6vI:{background:\"linear-gradient(180deg, var(--token-caa1a512-a891-4c9e-94e6-5cbfe5637f54, rgb(250, 248, 245)) 0%, var(--token-4176412e-e1d2-42ae-bbf0-080e3555ca79, rgb(231, 229, 224)) 100%)\",opacity:1},R9XuCBagR:{opacity:1}},...addPropertyOverrides({\"wGG4OBbm3-hover\":{\"data-framer-name\":undefined},AO8CisS0w:{\"data-framer-name\":\"Disabled\"},e30pARBE2:{\"data-framer-name\":\"Success\"},IDbJb5BZi:{\"data-framer-name\":\"Secondary\"},Ku6YZH6vI:{\"data-framer-name\":\"SecondaryLoading\"},MNhVaGowJ:{\"data-framer-name\":\"Loading\"},R9XuCBagR:{\"data-framer-name\":\"Error\"}},baseVariant,gestureVariant),children:[/*#__PURE__*/_jsx(motion.div,{className:\"framer-avzevg\",\"data-framer-name\":\"Overlay\",layoutDependency:layoutDependency,layoutId:\"pgXaXOpL9\",style:{backgroundColor:\"rgba(0, 0, 0, 0.2)\",opacity:0},variants:{\"wGG4OBbm3-hover\":{opacity:1}}}),/*#__PURE__*/_jsx(motion.div,{className:\"framer-xlp3ls\",layoutDependency:layoutDependency,layoutId:\"ZrETLtF7Z\",children:/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"R0Y7T25lc3QtNzAw\",\"--framer-font-family\":'\"Onest\", \"Onest Placeholder\", sans-serif',\"--framer-font-weight\":\"700\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-c60d7a6a-2352-4937-bfc5-263444f0a126, rgb(255, 255, 255)))\"},children:\"Submit\"})}),className:\"framer-3o3zim\",fonts:[\"GF;Onest-700\"],layoutDependency:layoutDependency,layoutId:\"pPEsECLtv\",style:{\"--extracted-r6o4lv\":\"var(--token-c60d7a6a-2352-4937-bfc5-263444f0a126, rgb(255, 255, 255))\",\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\",opacity:1},text:XiEoY9X7Z,variants:{\"wGG4OBbm3-hover\":{opacity:1},AO8CisS0w:{opacity:1},e30pARBE2:{\"--extracted-r6o4lv\":\"rgb(255, 255, 255)\",opacity:1},IDbJb5BZi:{\"--extracted-r6o4lv\":\"var(--token-65c2d492-73fc-4ff0-9955-24d1f231e060, rgb(25, 25, 24))\",opacity:1},Ku6YZH6vI:{\"--extracted-r6o4lv\":\"var(--token-65c2d492-73fc-4ff0-9955-24d1f231e060, rgb(25, 25, 24))\",opacity:0},MNhVaGowJ:{opacity:0},R9XuCBagR:{\"--extracted-r6o4lv\":\"rgb(255, 34, 68)\",opacity:1}},verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({e30pARBE2:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"SW50ZXItU2VtaUJvbGQ=\",\"--framer-font-family\":'\"Inter\", \"Inter Placeholder\", sans-serif',\"--framer-font-size\":\"14px\",\"--framer-font-weight\":\"600\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 255, 255))\"},children:\"Thank you\"})}),fonts:[\"Inter-SemiBold\"],text:undefined},IDbJb5BZi:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"R0Y7T25lc3QtNzAw\",\"--framer-font-family\":'\"Onest\", \"Onest Placeholder\", sans-serif',\"--framer-font-weight\":\"700\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-65c2d492-73fc-4ff0-9955-24d1f231e060, rgb(25, 25, 24)))\"},children:\"Submit\"})})},Ku6YZH6vI:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"R0Y7T25lc3QtNzAw\",\"--framer-font-family\":'\"Onest\", \"Onest Placeholder\", sans-serif',\"--framer-font-weight\":\"700\",\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-65c2d492-73fc-4ff0-9955-24d1f231e060, rgb(25, 25, 24)))\"},children:\"Submit\"})})},R9XuCBagR:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"SW50ZXItU2VtaUJvbGQ=\",\"--framer-font-family\":'\"Inter\", \"Inter Placeholder\", sans-serif',\"--framer-font-size\":\"14px\",\"--framer-font-weight\":\"600\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(255, 34, 68))\"},children:\"Something went wrong\"})}),fonts:[\"Inter-SemiBold\"],text:undefined}},baseVariant,gestureVariant)})}),isDisplayed()&&/*#__PURE__*/_jsx(motion.div,{className:\"framer-a53mk8\",\"data-framer-name\":\"Spinner\",layoutDependency:layoutDependency,layoutId:\"AGGI_8gcS\",style:{mask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\",WebkitMask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\"},children:/*#__PURE__*/_jsx(MotionDivWithFX,{__framer__loop:animation,__framer__loopEffectEnabled:true,__framer__loopRepeatDelay:0,__framer__loopRepeatType:\"loop\",__framer__loopTransition:transition2,__perspectiveFX:false,__smartComponentFX:true,__targetOpacity:1,className:\"framer-1nruo2f\",\"data-framer-name\":\"Conic\",layoutDependency:layoutDependency,layoutId:\"o60i3_Mu2\",style:{background:\"conic-gradient(from 180deg at 50% 50%, rgb(68, 204, 255) 0deg, rgb(68, 204, 255) 360deg)\",backgroundColor:\"rgb(68, 204, 255)\",mask:\"none\",WebkitMask:\"none\"},variants:{MNhVaGowJ:{background:\"conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, 0) 7.208614864864882deg, rgb(255, 255, 255) 342deg)\",backgroundColor:\"rgba(0, 0, 0, 0)\",mask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\",WebkitMask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\"}},children:/*#__PURE__*/_jsx(motion.div,{className:\"framer-19g0n45\",\"data-framer-name\":\"Rounding\",layoutDependency:layoutDependency,layoutId:\"quMuZqDcG\",style:{backgroundColor:\"rgb(255, 255, 255)\",borderBottomLeftRadius:1,borderBottomRightRadius:1,borderTopLeftRadius:1,borderTopRightRadius:1},transformTemplate:transformTemplate1})})}),isDisplayed1()&&/*#__PURE__*/_jsx(motion.div,{className:\"framer-jr4pgj\",\"data-framer-name\":\"Spinner\",layoutDependency:layoutDependency,layoutId:\"XxjTj5ljV\",style:{background:\"conic-gradient(from 0deg at 50% 50%, var(--token-65c2d492-73fc-4ff0-9955-24d1f231e060, rgb(25, 25, 24)) 7.208614864864882deg, rgb(255, 255, 255) 342deg)\",mask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\",WebkitMask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\"},children:/*#__PURE__*/_jsx(MotionDivWithFX,{__framer__loop:animation,__framer__loopEffectEnabled:true,__framer__loopRepeatDelay:0,__framer__loopRepeatType:\"loop\",__framer__loopTransition:transition2,__perspectiveFX:false,__smartComponentFX:true,__targetOpacity:1,className:\"framer-93u7tn\",\"data-framer-name\":\"Conic\",layoutDependency:layoutDependency,layoutId:\"jppUsAjgs\",style:{background:\"conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, 0) 7.208614864864882deg, rgb(255, 255, 255) 342deg)\",mask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\",WebkitMask:\"url('https://framerusercontent.com/images/pGiXYozQ3mE4cilNOItfe2L2fUA.svg?width=20&height=20') alpha no-repeat center / cover add\"},children:/*#__PURE__*/_jsx(motion.div,{className:\"framer-aco4bh\",\"data-framer-name\":\"Rounding\",layoutDependency:layoutDependency,layoutId:\"qaxmQaPsB\",style:{backgroundColor:\"rgb(255, 255, 255)\",borderBottomLeftRadius:1,borderBottomRightRadius:1,borderTopLeftRadius:1,borderTopRightRadius:1},transformTemplate:transformTemplate1})})})]})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-Y7UyS.framer-9cd3nn, .framer-Y7UyS .framer-9cd3nn { display: block; }\",\".framer-Y7UyS.framer-xbr9c1 { align-content: center; align-items: center; cursor: pointer; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 0px; height: min-content; justify-content: center; overflow: hidden; padding: 8px 12px 8px 12px; position: relative; width: min-content; will-change: var(--framer-will-change-override, transform); }\",\".framer-Y7UyS .framer-avzevg { flex: none; height: 100%; left: calc(50.32258064516131% - 100% / 2); overflow: var(--overflow-clip-fallback, clip); position: absolute; top: calc(48.57142857142859% - 100% / 2); width: 100%; z-index: 1; }\",\".framer-Y7UyS .framer-xlp3ls { align-content: center; align-items: center; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 10px; height: min-content; justify-content: center; overflow: visible; padding: 0px; position: relative; width: min-content; z-index: 1; }\",\".framer-Y7UyS .framer-3o3zim { flex: none; height: auto; position: relative; white-space: pre; width: auto; }\",\".framer-Y7UyS .framer-a53mk8, .framer-Y7UyS .framer-jr4pgj { flex: none; gap: 10px; height: 20px; left: calc(50.32258064516131% - 20px / 2); overflow: hidden; position: absolute; top: calc(51.428571428571445% - 20px / 2); width: 20px; z-index: 1; }\",\".framer-Y7UyS .framer-1nruo2f { bottom: 0px; flex: none; left: 0px; overflow: visible; position: absolute; right: 0px; top: 0px; }\",\".framer-Y7UyS .framer-19g0n45, .framer-Y7UyS .framer-aco4bh { aspect-ratio: 1 / 1; flex: none; height: var(--framer-aspect-ratio-supported, 2px); left: 50%; overflow: visible; position: absolute; top: 0px; width: 2px; }\",\".framer-Y7UyS .framer-93u7tn { bottom: 0px; flex: none; left: 0px; overflow: hidden; position: absolute; right: 0px; top: 0px; }\",\".framer-Y7UyS.framer-v-qxg1fe .framer-1nruo2f { overflow: hidden; }\",\".framer-Y7UyS.framer-v-xbr9c1.hover .framer-avzevg { order: 0; }\",\".framer-Y7UyS.framer-v-xbr9c1.hover .framer-xlp3ls { order: 3; }\"];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 35\n * @framerIntrinsicWidth 77.5\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"auto\",\"auto\"]},\"MNhVaGowJ\":{\"layout\":[\"auto\",\"auto\"]},\"AO8CisS0w\":{\"layout\":[\"auto\",\"auto\"]},\"e30pARBE2\":{\"layout\":[\"auto\",\"auto\"]},\"R9XuCBagR\":{\"layout\":[\"auto\",\"auto\"]},\"IDbJb5BZi\":{\"layout\":[\"auto\",\"auto\"]},\"Ku6YZH6vI\":{\"layout\":[\"auto\",\"auto\"]},\"aJHcQyesG\":{\"layout\":[\"auto\",\"auto\"]}}}\n * @framerVariables {\"XiEoY9X7Z\":\"label\",\"Qz8xRdgo5\":\"click\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerBXA7ebe0w=withCSS(Component,css,\"framer-Y7UyS\");export default FramerBXA7ebe0w;FramerBXA7ebe0w.displayName=\"Button\";FramerBXA7ebe0w.defaultProps={height:35,width:77.5};addPropertyControls(FramerBXA7ebe0w,{variant:{options:[\"wGG4OBbm3\",\"MNhVaGowJ\",\"AO8CisS0w\",\"e30pARBE2\",\"R9XuCBagR\",\"IDbJb5BZi\",\"Ku6YZH6vI\"],optionTitles:[\"Default\",\"Loading\",\"Disabled\",\"Success\",\"Error\",\"Secondary\",\"SecondaryLoading\"],title:\"Variant\",type:ControlType.Enum},XiEoY9X7Z:{defaultValue:\"Submit\",displayTextArea:false,title:\"Label\",type:ControlType.String},Qz8xRdgo5:{title:\"Click\",type:ControlType.EventHandler}});addFonts(FramerBXA7ebe0w,[{explicitInter:true,fonts:[{cssFamilyName:\"Onest\",source:\"google\",style:\"normal\",uiFamilyName:\"Onest\",url:\"https://fonts.gstatic.com/s/onest/v9/gNMZW3F-SZuj7zOT0IfSjTS16cPhEhiZtxFMQWXgSQ.woff2\",weight:\"700\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://framerusercontent.com/assets/hyOgCu0Xnghbimh0pE8QTvtt2AU.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/NeGmSOXrPBfEFIy5YZeHq17LEDA.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/oYaAX5himiTPYuN8vLWnqBbfD2s.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/lEJLP4R0yuCaMCjSXYHtJw72M.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF\",url:\"https://framerusercontent.com/assets/cRJyLNuTJR5jbyKzGi33wU9cqIQ.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/yDtI2UI8XcEg1W2je9XPN3Noo.woff2\",weight:\"600\"},{cssFamilyName:\"Inter\",source:\"framer\",style:\"normal\",uiFamilyName:\"Inter\",unicodeRange:\"U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB\",url:\"https://framerusercontent.com/assets/A0Wcc7NgXMjUuFdquHDrIZpzZw0.woff2\",weight:\"600\"}]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerBXA7ebe0w\",\"slots\":[],\"annotations\":{\"framerVariables\":\"{\\\"XiEoY9X7Z\\\":\\\"label\\\",\\\"Qz8xRdgo5\\\":\\\"click\\\"}\",\"framerDisplayContentsDiv\":\"false\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"MNhVaGowJ\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"AO8CisS0w\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"e30pARBE2\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"R9XuCBagR\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"IDbJb5BZi\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"Ku6YZH6vI\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]},\\\"aJHcQyesG\\\":{\\\"layout\\\":[\\\"auto\\\",\\\"auto\\\"]}}}\",\"framerImmutableVariables\":\"true\",\"framerComponentViewportWidth\":\"true\",\"framerIntrinsicWidth\":\"77.5\",\"framerColorSyntax\":\"true\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"35\",\"framerAutoSizeImages\":\"true\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BXA7ebe0w.map","// Calculates read time for an article's content from a rich text prop\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Read Time\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function ReadTimeCalculator(props){const{content,wordsPerMinute,font,color,/* fontSize, */style}=props;// Parse rich text and extract plain text\nlet plainText=\"\";// Convert content to string and use regex to remove HTML\nif(content){// First convert to string (handles objects, arrays, etc.)\nplainText=typeof content===\"string\"?content:JSON.stringify(content);// Remove HTML tags with regex\nplainText=plainText.replace(/<[^>]+>/g,\" \").replace(/&nbsp;/g,\" \").replace(/&[a-z]+;/gi,\" \").replace(/\\s+/g,\" \").trim();}// Count words properly - split by whitespace and filter empty strings\nconst wordCount=plainText.split(/\\s+/).filter(word=>word.length>0).length;const minutes=Math.max(1,Math.round(wordCount/wordsPerMinute));const label=`${minutes} min read`;return /*#__PURE__*/_jsx(\"span\",{style:{...font,color,// fontSize: fontSize ? fontSize : font?.fontSize,\n...style,width:\"max-content\",minWidth:\"max-content\",display:\"inline-block\"},\"aria-label\":label,children:label});}addPropertyControls(ReadTimeCalculator,{content:{//@ts-ignore\ntype:ControlType.RichText,title:\"Content\",displayTextArea:true,defaultValue:\"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque euismod, urna eu tincidunt consectetur, nisi nisl aliquam enim, eget aliquam nisl nisi euismod enim.\"},wordsPerMinute:{type:ControlType.Number,title:\"Words/Min\",defaultValue:200,min:100,max:400,step:10,displayStepper:true},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"}},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#000000\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ReadTimeCalculator\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ReadTimeCalculator.map"],"mappings":"wVAC2xB,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,mDAA14B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