{"version":3,"file":"Revenew_Calculator.1gpuEAEZ.mjs","names":["React","e"],"sources":["https:/framerusercontent.com/modules/lEJnrJJQtKXDDFPJHO63/uo1K9TELzu0Qcp3fcdn7/Revenew_Calculator.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import React from\"react\";export default function EarningsCalculator(){const[subscriberCount,setSubscriberCount]=React.useState(1650);const[price,setPrice]=React.useState(50);const[isPaid,setIsPaid]=React.useState(true);const revenue=isPaid?subscriberCount*price*10:subscriberCount*10;return /*#__PURE__*/_jsxs(\"div\",{style:{backgroundColor:\"transparent\",color:\"#fff\",width:\"100%\",display:\"flex\",flexDirection:\"column\",alignItems:\"flex-start\",padding:\"24px\",boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsx(\"link\",{href:\"https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Rubik:wght@700&display=swap\",rel:\"stylesheet\"}),/*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",maxWidth:\"600px\",marginBottom:\"24px\"},children:[/*#__PURE__*/_jsxs(\"label\",{style:{display:\"block\",fontFamily:\"Poppins\",fontSize:\"20px\",marginBottom:\"8px\"},children:[\"Subscriber Count: \",subscriberCount]}),/*#__PURE__*/_jsx(\"input\",{type:\"range\",min:\"0\",max:\"20000\",value:subscriberCount,onChange:e=>setSubscriberCount(Number(e.target.value)),style:{width:\"100%\",accentColor:\"#3A4DFF\"}})]}),/*#__PURE__*/_jsx(\"div\",{style:{width:\"245px\",marginBottom:\"24px\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",backgroundColor:\"#ddd\",borderRadius:\"9999px\",overflow:\"hidden\"},children:[/*#__PURE__*/_jsx(\"button\",{onClick:()=>setIsPaid(true),style:{flex:1,padding:\"8px 0\",fontFamily:\"Poppins\",fontSize:\"16px\",backgroundColor:isPaid?\"#3A4DFF\":\"#ddd\",color:isPaid?\"#fff\":\"#000\",border:\"none\",cursor:\"pointer\"},children:\"Paid\"}),/*#__PURE__*/_jsx(\"button\",{onClick:()=>setIsPaid(false),style:{flex:1,padding:\"8px 0\",fontFamily:\"Poppins\",fontSize:\"16px\",backgroundColor:!isPaid?\"#3A4DFF\":\"#ddd\",color:!isPaid?\"#fff\":\"#000\",border:\"none\",cursor:\"pointer\"},children:\"Free\"})]})}),/*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",maxWidth:\"600px\",marginBottom:\"24px\"},children:[/*#__PURE__*/_jsxs(\"label\",{style:{display:\"block\",fontFamily:\"Poppins\",fontSize:\"20px\",marginBottom:\"8px\"},children:[\"Subscription Price: $\",price]}),/*#__PURE__*/_jsx(\"input\",{type:\"range\",min:\"0\",max:\"50\",value:price,onChange:e=>setPrice(Number(e.target.value)),disabled:!isPaid,style:{width:\"100%\",accentColor:\"#3A4DFF\"}})]}),/*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",maxWidth:\"600px\",display:\"flex\",flexWrap:\"wrap\",justifyContent:\"space-between\",marginTop:\"32px\",gap:\"16px\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{fontFamily:\"Poppins\",fontSize:\"36px\",fontWeight:\"600\",color:\"#3A4DFF\"},children:[\"10.0x\",/*#__PURE__*/_jsx(\"div\",{style:{fontSize:\"14px\",color:\"#fff\",fontWeight:\"400\"},children:\"Subscriber to Messages Ratio\"})]}),/*#__PURE__*/_jsxs(\"div\",{style:{fontFamily:\"Poppins\",fontSize:\"36px\",fontWeight:\"600\",color:\"#3A4DFF\"},children:[\"$\",revenue.toLocaleString(),/*#__PURE__*/_jsx(\"div\",{style:{fontSize:\"14px\",color:\"#fff\",fontWeight:\"400\"},children:\"Estimated PPV / Tips Revenue\"})]})]})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"EarningsCalculator\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Revenew_Cal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