{"version":3,"file":"ReputationCalculator.CgAXuQyp.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/WdisnOFJP0RwimpEK0FL/XzeoDf47EnBEv4XQjkLB/ReputationCalculator.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * REPUTATION AUDIT TOOL v4.1 - Mobile Responsive\n * Optimized for: High-Impact Sliders & Lead Conversion\n * Refactored: Removed Email Gate for frictionless value.\n */export default function ReputationAuditTool(props){const{accentColor,btnText}=props;// Input States\nconst[rating,setRating]=React.useState(4.2);const[volume,setVolume]=React.useState(25);const[responseRate,setResponseRate]=React.useState(40);const[recency,setRecency]=React.useState(15);const[unlocked,setUnlocked]=React.useState(true)// Set to true by default to remove gate\n;// --- CALCULATION LOGIC ---\nconst ratingPoints=Math.round(rating/5*30);const responsePoints=Math.round(responseRate/100*35);const volumePoints=Math.round(Math.min(volume/100*15,15));const recencyPoints=recency;const totalScore=ratingPoints+volumePoints+recencyPoints+responsePoints;const grade=totalScore>=94?\"A\":totalScore>=85?\"B\":totalScore>=70?\"C\":\"F\";const getStatusMessage=()=>{if(responseRate<50)return\"Low response rate is killing your ranking.\";if(rating<4)return\"Low star rating is causing customer churn.\";if(recency<15)return\"Lack of recent reviews makes you look closed.\";return\"You're doing well, but there's room to dominate.\";};const handleCtaClick=()=>{if(window.posthog){window.posthog.capture(\"reputation_audit_cta_clicked\",{totalScore,grade,response_rate:responseRate,rating:rating});}};return /*#__PURE__*/_jsxs(\"div\",{style:containerStyle,children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                .rep-layout-card {\n                    display: flex;\n                    flex-direction: row;\n                }\n                .rep-input-pane {\n                    border-right: 1px solid #f0f0f0;\n                }\n                .rep-huge-text {\n                    font-size: 84px;\n                }\n                @media (max-width: 768px) {\n                    .rep-layout-card {\n                        flex-direction: column;\n                    }\n                    .rep-input-pane {\n                        border-right: none;\n                        border-bottom: 1px solid #f0f0f0;\n                        padding: 24px !important;\n                    }\n                    .rep-result-pane {\n                        padding: 24px !important;\n                    }\n                    .rep-huge-text {\n                        font-size: 64px !important;\n                    }\n                }\n            `}),/*#__PURE__*/_jsxs(\"div\",{className:\"rep-layout-card\",style:layoutCard,children:[/*#__PURE__*/_jsxs(\"div\",{className:\"rep-input-pane\",style:inputPane,children:[/*#__PURE__*/_jsx(\"h3\",{style:sectionTitle,children:\"Reputation Metrics\"}),/*#__PURE__*/_jsxs(\"div\",{style:field,children:[/*#__PURE__*/_jsxs(\"div\",{style:labelRow,children:[/*#__PURE__*/_jsxs(Label,{children:[\"Google Rating: \",rating,\"★\"]}),/*#__PURE__*/_jsxs(PointTag,{children:[ratingPoints,\"/30\"]})]}),/*#__PURE__*/_jsx(\"input\",{type:\"range\",min:\"1\",max:\"5\",step:\"0.1\",value:rating,onChange:e=>setRating(parseFloat(e.target.value)),style:slider(accentColor)})]}),/*#__PURE__*/_jsxs(\"div\",{style:field,children:[/*#__PURE__*/_jsxs(\"div\",{style:labelRow,children:[/*#__PURE__*/_jsxs(Label,{children:[\"Response Rate: \",responseRate,\"%\"]}),/*#__PURE__*/_jsxs(PointTag,{color:accentColor,highlight:true,children:[responsePoints,\"/35\"]})]}),/*#__PURE__*/_jsx(\"input\",{type:\"range\",min:\"0\",max:\"100\",step:\"1\",value:responseRate,onChange:e=>setResponseRate(parseInt(e.target.value)),style:slider(accentColor)}),/*#__PURE__*/_jsx(StatusLine,{color:responseRate<70?\"#FF4B4B\":\"#222\",children:getStatusMessage()})]}),/*#__PURE__*/_jsxs(\"div\",{style:field,children:[/*#__PURE__*/_jsxs(\"div\",{style:labelRow,children:[/*#__PURE__*/_jsxs(Label,{children:[\"Review Volume: \",volume]}),/*#__PURE__*/_jsxs(PointTag,{children:[volumePoints,\"/15\"]})]}),/*#__PURE__*/_jsx(\"input\",{type:\"range\",min:\"0\",max:\"250\",step:\"5\",value:volume,onChange:e=>setVolume(parseInt(e.target.value)),style:slider(accentColor)})]})]}),/*#__PURE__*/_jsx(\"div\",{className:\"rep-result-pane\",style:resultPane,children:/*#__PURE__*/_jsxs(\"div\",{style:finalResult,children:[/*#__PURE__*/_jsx(\"span\",{style:metaLabel,children:\"TOTAL REPUTATION SCORE\"}),/*#__PURE__*/_jsxs(\"h1\",{className:\"rep-huge-text\",style:{...hugeText,color:accentColor},children:[totalScore,/*#__PURE__*/_jsx(\"span\",{style:{fontSize:\"24px\",opacity:.3},children:\"/100\"})]}),/*#__PURE__*/_jsxs(\"div\",{style:gradeBadge,children:[\"Grade: \",grade]}),/*#__PURE__*/_jsxs(\"div\",{style:fixList,children:[/*#__PURE__*/_jsxs(\"p\",{style:fixItem,children:[\"⭐ Trust (Stars): \",ratingPoints,\"/30\"]}),/*#__PURE__*/_jsxs(\"p\",{style:fixItem,children:[\"💬 Engagement: \",responsePoints,\"/35\"]}),/*#__PURE__*/_jsxs(\"p\",{style:fixItem,children:[\"📊 Authority: \",volumePoints,\"/15\"]}),/*#__PURE__*/_jsxs(\"p\",{style:fixItem,children:[\"⚡ Velocity: \",recencyPoints,\"/20\"]})]}),/*#__PURE__*/_jsx(\"a\",{href:\"https://app.feedbackrobot.com/auth/sign-up\",target:\"_blank\",rel:\"noreferrer\",onClick:handleCtaClick,style:{...mainCta,backgroundColor:accentColor},children:\"Fix My Reputation with AI →\"})]})})]})]});}// --- STYLES ---\nconst Label=({children})=>/*#__PURE__*/_jsx(\"label\",{style:{fontSize:\"10px\",fontWeight:800,textTransform:\"uppercase\",letterSpacing:\"1px\",opacity:.4},children:children});const PointTag=({children,color,highlight})=>/*#__PURE__*/_jsx(\"span\",{style:{fontSize:\"10px\",fontWeight:900,color:highlight?color:\"#111\",background:highlight?`${color}15`:\"#eee\",padding:\"2px 8px\",borderRadius:\"4px\"},children:children});const StatusLine=({children,color})=>/*#__PURE__*/_jsx(\"span\",{style:{fontSize:\"10px\",fontWeight:700,color:color,marginTop:\"8px\",display:\"block\"},children:children});const labelRow={display:\"flex\",justifyContent:\"space-between\",marginBottom:\"8px\",alignItems:\"center\"};const containerStyle={width:\"100%\",padding:\"10px\",fontFamily:\"Inter, system-ui, sans-serif\"};const layoutCard={background:\"#fff\",borderRadius:\"24px\",border:\"1px solid #eee\",overflow:\"hidden\",boxShadow:\"0 20px 50px rgba(0,0,0,0.08)\"};const inputPane={flex:1.2,padding:\"32px\"};const resultPane={flex:1,padding:\"32px\",background:\"#fafafa\",display:\"flex\",flexDirection:\"column\",justifyContent:\"center\"};const sectionTitle={fontSize:\"18px\",fontWeight:800,marginBottom:\"32px\"};const field={marginBottom:\"28px\"};const metaLabel={fontSize:\"10px\",fontWeight:900,letterSpacing:\"1.5px\",opacity:.3};const hugeText={fontWeight:900,margin:\"10px 0\",lineHeight:1};const finalResult={textAlign:\"center\"};const gradeBadge={display:\"inline-block\",padding:\"6px 16px\",background:\"#000\",color:\"#fff\",borderRadius:\"100px\",fontSize:\"12px\",fontWeight:800,marginBottom:\"20px\"};const fixList={textAlign:\"left\",background:\"#f0f2f5\",padding:\"16px\",borderRadius:\"12px\",marginBottom:\"20px\"};const fixItem={fontSize:\"12px\",fontWeight:600,margin:\"6px 0\"};const mainCta={display:\"block\",padding:\"16px\",borderRadius:\"12px\",color:\"#fff\",fontWeight:800,textDecoration:\"none\",fontSize:\"14px\"};const slider=color=>({width:\"100%\",accentColor:color,cursor:\"pointer\"});addPropertyControls(ReputationAuditTool,{accentColor:{type:ControlType.Color,defaultValue:\"#007AFF\"},btnText:{type:ControlType.String,defaultValue:\"See My Final Grade\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ReputationAuditTool\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ReputationCalculator.map"],"mappings":"+LAIG,SAAwB,EAAoB,EAAM,CAAC,GAAK,CAAC,cAAY,WAAS,EAC5E,CAAC,EAAO,GAAWA,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