{"version":3,"file":"EarningCalculation.D2Ex7oKX.mjs","names":["React.useContext","React.useMemo","React.Fragment","React.useRef","React.useId","sharedStyle.className","sharedStyle1.className","sharedStyle2.className","sharedStyle3.className","className","Image","sharedStyle.css","sharedStyle1.css","sharedStyle2.css","sharedStyle3.css","sharedStyle.fonts","sharedStyle1.fonts","sharedStyle2.fonts","sharedStyle3.fonts"],"sources":["https:/framerusercontent.com/modules/vWSN62u9FwSUKaWxK0MF/92knrE9GGwZYI3ck1Z0T/naOJTiDrj.js","https:/framerusercontent.com/modules/tRTd5qwOYjiWi9znBusu/02KdTwxlLqTYZsn6yeY2/EarningCalculation.js"],"sourcesContent":["// Generated by Framer (f318921)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,getFontsFromSharedStyle,getLoadingLazyAtYPosition,Image,RichText,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import*as sharedStyle3 from\"https://framerusercontent.com/modules/4UpspsdwoNcK4fse0MTK/MsQ0Eb9SgyrdftjyYk2u/bQ6ZyciqD.js\";import*as sharedStyle from\"https://framerusercontent.com/modules/EQPevhcCFwnhQDdWklG8/y8rTm13paFSVHObXYk4y/c6aYYsHJh.js\";import*as sharedStyle1 from\"https://framerusercontent.com/modules/6yTfIPUOouA2IjWmcxiY/aozGtw7A8hBmBMBRHkfY/ekvQ01CpZ.js\";import*as sharedStyle2 from\"https://framerusercontent.com/modules/ylnBYJHLAiY0GlqK4lOH/uHqk1xKakxOnPdgQnmUN/OaIJZ07Ga.js\";const enabledGestures={Fo7TyPsXY:{hover:true},hOOgc7_Qp:{hover:true}};const cycleOrder=[\"Fo7TyPsXY\",\"hOOgc7_Qp\",\"XLeL88Gek\"];const serializationHash=\"framer-go1XZ\";const variantClassNames={Fo7TyPsXY:\"framer-v-687f7z\",hOOgc7_Qp:\"framer-v-8j15lv\",XLeL88Gek:\"framer-v-1grmxc7\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={delay:0,duration:.6,ease:[.44,0,.56,1],type:\"tween\"};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={Dark:\"hOOgc7_Qp\",Light:\"Fo7TyPsXY\",Small:\"XLeL88Gek\"};const getProps=({height,id,title,width,...props})=>{return{...props,tZMF388WS:title??props.tZMF388WS??\"Earnings Forecast\",variant:humanReadableVariantMap[props.variant]??props.variant??\"Fo7TyPsXY\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{activeLocale,setLocale}=useLocaleInfo();const{style,className,layoutId,variant,tZMF388WS,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"Fo7TyPsXY\",enabledGestures,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const ref1=React.useRef(null);const isDisplayed=()=>{if(baseVariant===\"XLeL88Gek\")return false;return true;};const defaultLayoutId=React.useId();const sharedStyleClassNames=[sharedStyle.className,sharedStyle1.className,sharedStyle2.className,sharedStyle3.className];const componentViewport=useComponentViewport();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.div,{...restProps,...gestureHandlers,className:cx(serializationHash,...sharedStyleClassNames,\"framer-687f7z\",className,classNames),\"data-border\":true,\"data-framer-name\":\"Light\",layoutDependency:layoutDependency,layoutId:\"Fo7TyPsXY\",ref:ref??ref1,style:{\"--border-bottom-width\":\"1px\",\"--border-color\":\"rgba(235, 229, 230, 0.56)\",\"--border-left-width\":\"1px\",\"--border-right-width\":\"1px\",\"--border-style\":\"solid\",\"--border-top-width\":\"1px\",backgroundColor:\"rgba(255, 255, 255, 0.54)\",borderBottomLeftRadius:12,borderBottomRightRadius:12,borderTopLeftRadius:12,borderTopRightRadius:12,boxShadow:\"0.12043746035487857px -0.6021873017743928px 0.6141129605170832px -1.25px rgba(0, 0, 0, 0.05759), 0.4577066606486914px -2.288533303243457px 2.333855194149068px -2.5px rgba(0, 0, 0, 0.05085), 2px -10px 10.198039027185569px -3.75px rgba(0, 0, 0, 0.02)\",...style},variants:{\"Fo7TyPsXY-hover\":{\"--border-color\":\"rgba(139, 133, 133, 0.16)\",backgroundColor:\"rgba(255, 255, 255, 0.86)\",boxShadow:\"0.3010936508871964px -0.6021873017743928px 2.8277166581049165px -1px rgba(0, 0, 0, 0.07055), 1.1442666516217286px -2.288533303243457px 10.746363673131471px -2px rgba(0, 0, 0, 0.06651), 5px -10px 46.95742752749558px -3px rgba(0, 0, 0, 0.048)\"},\"hOOgc7_Qp-hover\":{boxShadow:\"0.3010936508871964px -0.6021873017743928px 2.8277166581049165px -1px rgba(139, 133, 133, 0.11759), 1.1442666516217286px -2.288533303243457px 10.746363673131471px -2px rgba(139, 133, 133, 0.11085), 5px -10px 46.95742752749558px -3px rgba(139, 133, 133, 0.08)\"},hOOgc7_Qp:{\"--border-color\":\"rgba(139, 133, 133, 0.2)\",backgroundColor:\"rgba(139, 133, 133, 0.1)\",boxShadow:\"0.12043746035487857px -0.6021873017743928px 0.6141129605170832px -1.25px rgba(139, 133, 133, 0.14398), 0.4577066606486914px -2.288533303243457px 2.333855194149068px -2.5px rgba(139, 133, 133, 0.12711), 2px -10px 10.198039027185569px -3.75px rgba(139, 133, 133, 0.05)\"},XLeL88Gek:{\"--border-bottom-width\":\"0px\",\"--border-left-width\":\"0px\",\"--border-right-width\":\"0px\",\"--border-top-width\":\"0px\",backgroundColor:\"rgba(0, 0, 0, 0)\",borderBottomLeftRadius:0,borderBottomRightRadius:0,borderTopLeftRadius:0,borderTopRightRadius:0,boxShadow:\"none\"}},...addPropertyOverrides({\"Fo7TyPsXY-hover\":{\"data-framer-name\":undefined},\"hOOgc7_Qp-hover\":{\"data-framer-name\":undefined},hOOgc7_Qp:{\"data-framer-name\":\"Dark\"},XLeL88Gek:{\"data-framer-name\":\"Small\"}},baseVariant,gestureVariant),children:[/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-jh2tpo\",\"data-styles-preset\":\"c6aYYsHJh\",style:{\"--framer-text-alignment\":\"left\"},children:\"Yearly Earnings Forecast\"})}),className:\"framer-1ircdud\",fonts:[\"Inter\"],layoutDependency:layoutDependency,layoutId:\"a0ec8Kodz\",text:tZMF388WS,variants:{XLeL88Gek:{\"--extracted-r6o4lv\":\"var(--token-28bb073f-b1fa-4d82-9780-767504b7d851, rgb(30, 30, 30))\"}},verticalAlignment:\"top\",withExternalLayout:true,...addPropertyOverrides({XLeL88Gek:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-13ikpej\",\"data-styles-preset\":\"ekvQ01CpZ\",style:{\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-28bb073f-b1fa-4d82-9780-767504b7d851, rgb(30, 30, 30)))\"},children:\"Earnings Forecast\"})})}},baseVariant,gestureVariant)}),/*#__PURE__*/_jsxs(motion.div,{className:\"framer-smx9rj\",\"data-framer-name\":\"Earnings Total\",layoutDependency:layoutDependency,layoutId:\"dhW0WJ6IJ\",children:[/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.h3,{className:\"framer-styles-preset-1amofyk\",\"data-styles-preset\":\"OaIJZ07Ga\",style:{\"--framer-text-color\":\"var(--extracted-a0htzi, var(--token-28bb073f-b1fa-4d82-9780-767504b7d851, rgb(30, 30, 30)))\"},children:\"$\"})}),className:\"framer-en9p4m\",fonts:[\"Inter\"],layoutDependency:layoutDependency,layoutId:\"GKuRieifv\",style:{\"--extracted-a0htzi\":\"var(--token-28bb073f-b1fa-4d82-9780-767504b7d851, rgb(30, 30, 30))\"},variants:{XLeL88Gek:{\"--extracted-r6o4lv\":\"var(--token-28bb073f-b1fa-4d82-9780-767504b7d851, rgb(30, 30, 30))\"}},verticalAlignment:\"bottom\",withExternalLayout:true,...addPropertyOverrides({XLeL88Gek:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{className:\"framer-styles-preset-13ikpej\",\"data-styles-preset\":\"ekvQ01CpZ\",style:{\"--framer-text-color\":\"var(--extracted-r6o4lv, var(--token-28bb073f-b1fa-4d82-9780-767504b7d851, rgb(30, 30, 30)))\"},children:\"$\"})})}},baseVariant,gestureVariant)}),/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.h1,{style:{\"--font-selector\":\"R0Y7RmlyYSBTYW5zIEV4dHJhIENvbmRlbnNlZC05MDA=\",\"--framer-font-family\":'\"Fira Sans Extra Condensed\", sans-serif',\"--framer-font-size\":\"64px\",\"--framer-font-weight\":\"900\",\"--framer-text-alignment\":\"right\",\"--framer-text-color\":\"var(--extracted-gdpscs, var(--token-28bb073f-b1fa-4d82-9780-767504b7d851, rgb(30, 30, 30)))\"},children:\"1,000,000\"})}),className:\"framer-11ruluu\",fonts:[\"GF;Fira Sans Extra Condensed-900\"],layoutDependency:layoutDependency,layoutId:\"sqc06GOXc\",style:{\"--extracted-gdpscs\":\"var(--token-28bb073f-b1fa-4d82-9780-767504b7d851, rgb(30, 30, 30))\",\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\"},verticalAlignment:\"bottom\",withExternalLayout:true,...addPropertyOverrides({XLeL88Gek:{children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.h2,{className:\"framer-styles-preset-e1pkv9\",\"data-styles-preset\":\"bQ6ZyciqD\",children:\"1,000,000\"})}),fonts:[\"Inter\"]}},baseVariant,gestureVariant)})]}),isDisplayed()&&/*#__PURE__*/_jsx(motion.div,{className:\"framer-1jsduc9\",\"data-framer-name\":\"Patter\",layoutDependency:layoutDependency,layoutId:\"QCcFK3s2S\",style:{borderBottomLeftRadius:40,borderBottomRightRadius:40,borderTopLeftRadius:40,borderTopRightRadius:40,scale:1,skewX:0},variants:{\"Fo7TyPsXY-hover\":{scale:1.1,skewX:12},\"hOOgc7_Qp-hover\":{scale:1.1,skewX:12}},children:/*#__PURE__*/_jsx(Image,{background:{alt:\"Wave patter\",backgroundSize:.5,fit:\"tile\",intrinsicHeight:126,intrinsicWidth:126,loading:getLoadingLazyAtYPosition((componentViewport?.y||0)+0+(((componentViewport?.height||320)-0)*.49655172413793125-((componentViewport?.height||320)-0-0)*1/2)),pixelHeight:120,pixelWidth:200,positionX:\"left\",positionY:\"top\",src:\"https://framerusercontent.com/images/L9gN6bRCSKWIBJkYc7iGxMOn07w.svg\"},className:\"framer-aafn02\",layoutDependency:layoutDependency,layoutId:\"tmtG5haLa\",style:{mask:\"radial-gradient(50% 50% at 82% 32%, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%) add\",opacity:.06,WebkitMask:\"radial-gradient(50% 50% at 82% 32%, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%) add\"},variants:{\"Fo7TyPsXY-hover\":{opacity:.12}}})})]})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-go1XZ.framer-1ddrbxg, .framer-go1XZ .framer-1ddrbxg { display: block; }\",\".framer-go1XZ.framer-687f7z { align-content: center; align-items: center; cursor: default; display: flex; flex-direction: column; flex-wrap: nowrap; height: 320px; justify-content: space-between; overflow: hidden; padding: 40px; position: relative; width: 468px; will-change: var(--framer-will-change-override, transform); }\",\".framer-go1XZ .framer-1ircdud { flex: none; height: auto; position: relative; white-space: pre-wrap; width: 100%; word-break: break-word; word-wrap: break-word; z-index: 2; }\",\".framer-go1XZ .framer-smx9rj { align-content: center; align-items: center; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 4px; height: min-content; justify-content: flex-end; overflow: visible; padding: 0px; position: relative; width: 100%; z-index: 2; }\",\".framer-go1XZ .framer-en9p4m { flex: none; height: 53px; position: relative; white-space: pre; width: auto; }\",\".framer-go1XZ .framer-11ruluu { flex: none; height: auto; position: relative; white-space: pre; width: auto; }\",\".framer-go1XZ .framer-1jsduc9 { bottom: 0px; flex: none; overflow: visible; position: absolute; right: 0px; top: 0px; width: 340px; z-index: 0; }\",\".framer-go1XZ .framer-aafn02 { flex: none; height: 100%; left: calc(50.00000000000002% - 100.29411764705883% / 2); position: absolute; top: calc(49.655172413793125% - 100% / 2); width: 100%; z-index: 1; }\",\"@supports (background: -webkit-named-image(i)) and (not (font-palette:dark)) { .framer-go1XZ .framer-smx9rj { gap: 0px; } .framer-go1XZ .framer-smx9rj > * { margin: 0px; margin-left: calc(4px / 2); margin-right: calc(4px / 2); } .framer-go1XZ .framer-smx9rj > :first-child { margin-left: 0px; } .framer-go1XZ .framer-smx9rj > :last-child { margin-right: 0px; } }\",\".framer-go1XZ.framer-v-1grmxc7.framer-687f7z { flex-direction: row; height: min-content; padding: 0px; }\",\".framer-go1XZ.framer-v-1grmxc7 .framer-1ircdud { flex: 1 0 0px; height: 8px; width: 1px; }\",\".framer-go1XZ.framer-v-1grmxc7 .framer-smx9rj { width: min-content; }\",\".framer-go1XZ.framer-v-1grmxc7 .framer-en9p4m { height: 26px; }\",\"@supports (background: -webkit-named-image(i)) and (not (font-palette:dark)) { .framer-go1XZ.framer-v-1grmxc7.framer-687f7z { gap: 0px; } .framer-go1XZ.framer-v-1grmxc7.framer-687f7z > *, .framer-go1XZ.framer-v-1grmxc7.framer-687f7z > :first-child, .framer-go1XZ.framer-v-1grmxc7.framer-687f7z > :last-child { margin: 0px; } }\",...sharedStyle.css,...sharedStyle1.css,...sharedStyle2.css,...sharedStyle3.css,'.framer-go1XZ[data-border=\"true\"]::after, .framer-go1XZ [data-border=\"true\"]::after { content: \"\"; border-width: var(--border-top-width, 0) var(--border-right-width, 0) var(--border-bottom-width, 0) var(--border-left-width, 0); border-color: var(--border-color, none); border-style: var(--border-style, none); width: 100%; height: 100%; position: absolute; box-sizing: border-box; left: 0; top: 0; border-radius: inherit; pointer-events: none; }'];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 320\n * @framerIntrinsicWidth 468\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"fixed\"]},\"hOOgc7_Qp\":{\"layout\":[\"fixed\",\"fixed\"]},\"XLeL88Gek\":{\"layout\":[\"fixed\",\"auto\"]},\"niGvRCiAP\":{\"layout\":[\"fixed\",\"fixed\"]},\"vIep7C01I\":{\"layout\":[\"fixed\",\"fixed\"]}}}\n * @framerVariables {\"tZMF388WS\":\"title\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerComponentViewportWidth true\n */const FramernaOJTiDrj=withCSS(Component,css,\"framer-go1XZ\");export default FramernaOJTiDrj;FramernaOJTiDrj.displayName=\"Earnins Banner\";FramernaOJTiDrj.defaultProps={height:320,width:468};addPropertyControls(FramernaOJTiDrj,{variant:{options:[\"Fo7TyPsXY\",\"hOOgc7_Qp\",\"XLeL88Gek\"],optionTitles:[\"Light\",\"Dark\",\"Small\"],title:\"Variant\",type:ControlType.Enum},tZMF388WS:{defaultValue:\"Earnings Forecast\",displayTextArea:false,title:\"Title\",type:ControlType.String}});addFonts(FramernaOJTiDrj,[{explicitInter:true,fonts:[{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F\",url:\"https://framerusercontent.com/assets/5vvr9Vy74if2I6bQbJvbw7SY1pQ.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116\",url:\"https://framerusercontent.com/assets/EOr0mi4hNtlgWNn9if640EZzXCo.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+1F00-1FFF\",url:\"https://framerusercontent.com/assets/Y9k9QrlZAqio88Klkmbd8VoMQc.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0370-03FF\",url:\"https://framerusercontent.com/assets/OYrD2tBIBPvoJXiIHnLoOXnY9M.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",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/JeYwfuaPfZHQhEG8U5gtPDZ7WQ.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",unicodeRange:\"U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD\",url:\"https://framerusercontent.com/assets/vQyevYAyHtARFwPqUzQGpnDs.woff2\",weight:\"400\"},{family:\"Inter\",source:\"framer\",style:\"normal\",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/b6Y37FthZeALduNqHicBT6FutY.woff2\",weight:\"400\"},{family:\"Fira Sans Extra Condensed\",source:\"google\",style:\"normal\",url:\"https://fonts.gstatic.com/s/firasansextracondensed/v10/NaPPcYDaAO5dirw6IaFn7lPJFqXmS-M9Atn3wgda3XyJn3q0oEZ-a2Q.woff2\",weight:\"900\"}]},...getFontsFromSharedStyle(sharedStyle.fonts),...getFontsFromSharedStyle(sharedStyle1.fonts),...getFontsFromSharedStyle(sharedStyle2.fonts),...getFontsFromSharedStyle(sharedStyle3.fonts)],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramernaOJTiDrj\",\"slots\":[],\"annotations\":{\"framerVariables\":\"{\\\"tZMF388WS\\\":\\\"title\\\"}\",\"framerDisplayContentsDiv\":\"false\",\"framerComponentViewportWidth\":\"true\",\"framerContractVersion\":\"1\",\"framerImmutableVariables\":\"true\",\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"hOOgc7_Qp\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"XLeL88Gek\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"]},\\\"niGvRCiAP\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]},\\\"vIep7C01I\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"fixed\\\"]}}}\",\"framerIntrinsicHeight\":\"320\",\"framerIntrinsicWidth\":\"468\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";export function withEarningsForecast(Component){return props=>{useEffect(()=>{const inputElement=document.querySelector('input[name=\"Cost\"]');const earningsElement=document.getElementById(\"earnings-forecast\");const savingsElement=document.getElementById(\"savings-forecast\");const totalValueElement=document.getElementById(\"total-value-forecast\");if(!inputElement||!earningsElement)return;const handleInput=()=>{let earningsResult=0;let savingsResult=0;let totalValueResult=0;const value=parseFloat(inputElement.value);if(value>105e3){earningsResult=value*0;savingsResult=450*0;}else if(value>1e5){earningsResult=value*2;savingsResult=450*2;}else if(value>=5e4){earningsResult=value*4;savingsResult=450*4;}else if(value>=25e3){earningsResult=value*8;savingsResult=450*8;}else if(value>=1e4){earningsResult=value*18;savingsResult=450*18;}else if(value>=7500){earningsResult=value*24;savingsResult=450*24;}else if(value>=5e3){earningsResult=value*36;savingsResult=450*36;}else if(value>=2500){earningsResult=value*60;savingsResult=450*60;}else if(value>=1e3){earningsResult=value*84;savingsResult=450*84;}else if(value>=500){earningsResult=value*120;savingsResult=450*120;}else if(value>=250){earningsResult=value*144;savingsResult=450*144;}else if(value>=0){earningsResult=value*72;savingsResult=450*72;}earningsElement.querySelector(\"h2\").textContent=earningsResult.toLocaleString(undefined,{minimumFractionDigits:2,maximumFractionDigits:2});savingsElement.querySelector(\"h2\").textContent=savingsResult.toLocaleString(undefined,{minimumFractionDigits:2,maximumFractionDigits:2});totalValueResult=earningsResult+savingsResult;totalValueElement.querySelector(\"h1\").textContent=totalValueResult.toLocaleString(undefined,{minimumFractionDigits:2,maximumFractionDigits:2});};inputElement.addEventListener(\"input\",handleInput);// Initial calculation if there's already a value in the input\nhandleInput();// Cleanup event listener on component unmount\nreturn()=>{inputElement.removeEventListener(\"input\",handleInput);};},[]);return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withEarningsForecast\":{\"type\":\"reactHoc\",\"name\":\"withEarningsForecast\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./EarningCalculation.map"],"mappings":"skBAC6kC,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,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