{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/Rv0wDIuA7eIbiYdDMaeC/p2rDmwBvz93dMFImvvNJ/EarningsCalculator_1.js"],
  "sourcesContent": ["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";export function EarningsCalculator(){// Local state for inputs\nconst[subscriptionPrice,setSubscriptionPrice]=React.useState(9.99);const[followers,setFollowers]=React.useState(5e4);// Determine conversion rate based on follower count with linear decrease\nconst getConversionRate=followers=>{const minFollowers=0;const maxFollowers=1e6;const minRate=.001// 0.1%\n;const maxRate=.003// 0.75%\n;if(followers>=maxFollowers)return minRate;if(followers<=minFollowers)return maxRate;return maxRate-followers/maxFollowers*(maxRate-minRate);};const conversionRate=getConversionRate(followers);// Calculate estimated earnings\nconst estimatedEarnings=(subscriptionPrice*followers*conversionRate*12).toFixed(2);// Format earnings with commas\nconst formattedEarnings=parseFloat(estimatedEarnings).toLocaleString();return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",alignItems:\"flex-start\",justifyContent:\"center\",width:\"100%\",height:\"100%\",backgroundColor:\"transparent\",color:\"#000000\",fontFamily:\"Inter, sans-serif\",padding:\"20px\",gap:\"24px\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\"},children:[/*#__PURE__*/_jsx(\"h3\",{style:{fontSize:\"16px\",fontWeight:\"600\",marginBottom:\"8px\"},children:\"Enter Your Monthly Subscription Price In $\"}),/*#__PURE__*/_jsx(\"input\",{type:\"number\",value:subscriptionPrice,onChange:e=>setSubscriptionPrice(parseFloat(e.target.value)||0),style:{backgroundColor:\"#FFFFFF\",color:\"#000000\",border:\"1px solid #E5E5E5\",borderRadius:\"8px\",padding:\"12px 16px\",width:\"100%\",maxWidth:\"400px\",fontSize:\"16px\",fontWeight:\"500\",outline:\"none\",transition:\"all 0.2s ease\",boxShadow:\"0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06)\"}})]}),/*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\"},children:[/*#__PURE__*/_jsx(\"h3\",{style:{fontSize:\"16px\",fontWeight:\"600\",marginBottom:\"8px\"},children:\"Enter Your Number Of Followers\"}),/*#__PURE__*/_jsx(\"input\",{type:\"number\",value:followers,onChange:e=>setFollowers(parseInt(e.target.value)||0),style:{backgroundColor:\"#FFFFFF\",color:\"#000000\",border:\"1px solid #E5E5E5\",borderRadius:\"8px\",padding:\"12px 16px\",width:\"100%\",maxWidth:\"400px\",fontSize:\"16px\",fontWeight:\"500\",outline:\"none\",transition:\"all 0.2s ease\",boxShadow:\"0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06)\"}})]}),/*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\"},children:[/*#__PURE__*/_jsx(\"h3\",{style:{fontSize:\"16px\",fontWeight:\"600\",marginBottom:\"8px\"},children:\"Estimated Earnings\"}),/*#__PURE__*/_jsxs(\"div\",{style:{backgroundColor:\"#FFFFFF\",color:\"#000000\",border:\"1px solid #E5E5E5\",borderRadius:\"8px\",padding:\"12px 16px\",fontSize:\"16px\",fontWeight:\"600\",width:\"100%\",maxWidth:\"400px\",boxShadow:\"0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06)\"},children:[\"$\",formattedEarnings,\" / year\"]}),/*#__PURE__*/_jsx(\"p\",{style:{fontSize:\"14px\",marginTop:\"8px\",color:\"#000000\",opacity:.7,fontWeight:\"500\"},children:\"**This does not include our fee\"})]})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"EarningsCalculator\":{\"type\":\"reactComponent\",\"name\":\"EarningsCalculator\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./EarningsCalculator_1.map"],
  "mappings": "uDAA4F,SAASA,GAAoB,CACzH,GAAK,CAACC,EAAkBC,CAAoB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