{"version":3,"file":"FeatureComparisonTable.COrGeE_d.mjs","names":["__esmMin","init_jsx_runtime","c","p","addPropertyControls","ControlType","init_framer_J2N2IBQG","parseRows","rowsData","entry","feature","mxp","competitor","row","StatusIcon","color","included","COLORS","FeatureComparisonTable","props","rows","style","GARNETT_REGULAR","srOnly","competitorName","GARNETT_MEDIUM","tableTitle","competitorLogo","i","init_FeatureComparisonTable"],"sources":["https:/framerusercontent.com/modules/9eDssGibF4EiNoGXwKZm/qmPprvdmVkuexuFpFNq6/FeatureComparisonTable.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";function parseRows(rowsData){return rowsData.split(\";\").map(entry=>entry.trim()).filter(Boolean).map(entry=>{const[feature,mxp,competitor]=entry.split(\"~\");return{feature:(feature??\"\").trim(),mixpanelIncluded:mxp?.trim()===\"1\",competitorIncluded:competitor?.trim()===\"1\"};}).filter(row=>row.feature.length>0);}const COLORS={ink:\"rgb(27,11,59)\",mutedGray:\"rgb(155,155,155)\",purple:\"rgb(119,86,255)\",rowAlt:\"rgba(0,0,0,0.02)\",border:\"rgba(0,0,0,0.06)\",bodyText:\"rgba(27,11,59,0.85)\"};const GARNETT_REGULAR='\"Garnett Regular\", \"Garnett Regular Placeholder\", sans-serif';const GARNETT_MEDIUM='\"Garnett Medium\", \"Garnett Medium Placeholder\", sans-serif';const srOnly={position:\"absolute\",width:1,height:1,padding:0,margin:-1,overflow:\"hidden\",clip:\"rect(0,0,0,0)\",whiteSpace:\"nowrap\",border:0};function StatusIcon({included}){const color=included?COLORS.ink:COLORS.mutedGray;return /*#__PURE__*/_jsxs(\"svg\",{width:\"27\",height:\"26\",viewBox:\"0 0 27 26\",fill:\"none\",\"aria-hidden\":\"true\",focusable:\"false\",children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"13.5\",cy:\"13\",r:\"11.5\",stroke:color,strokeWidth:\"1.5\"}),included?/*#__PURE__*/_jsx(\"path\",{d:\"M8.5 13.3l3.2 3.2 6.8-6.9\",stroke:color,strokeWidth:\"1.6\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}):/*#__PURE__*/_jsx(\"path\",{d:\"M9.8 9.8l7.4 7.4M17.2 9.8l-7.4 7.4\",stroke:color,strokeWidth:\"1.4\",strokeLinecap:\"round\"})]});}/**\n * Feature Comparison Table\n *\n * Semantic HTML table (real <table>/<th>/<td>) for Mixpanel vs. competitor\n * feature comparisons, built so crawlers and LLMs that don't execute\n * JavaScript can reliably parse which feature belongs to which column.\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function FeatureComparisonTable(props){const{tableTitle=\"Mixpanel vs. Competitor\",competitorName=\"Competitor\",competitorLogo,rowsData=\"Example Feature~1~0\",style}=props;const rows=parseRows(rowsData);return /*#__PURE__*/_jsxs(\"div\",{className:\"fct-wrapper\",style:{...style,position:\"relative\",width:\"100%\",maxWidth:1112,margin:\"0 auto\",fontFamily:GARNETT_REGULAR,backgroundColor:\"rgb(250,250,250)\",borderRadius:24,overflow:\"hidden\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                @media (max-width: 680px) {\n                    .fct-wrapper { overflow: visible !important; }\n                    .fct-table, .fct-table tbody { display: block; width: 100%; }\n                    .fct-table thead {\n                        display: block;\n                        width: 100%;\n                        position: sticky;\n                        top: 64px;\n                        z-index: 2;\n                        background: rgb(250,250,250);\n                    }\n                    .fct-table tr { display: flex; flex-wrap: wrap; width: 100%; }\n                    .fct-title-cell { display: none; }\n                    .fct-header-cell { flex: 1 1 50%; width: 50% !important; }\n                    .fct-feature-cell { flex: 1 1 100%; width: 100% !important; text-align: left; }\n                    .fct-icon-cell { flex: 1 1 50%; width: 50% !important; }\n                    .fct-icon-cell-mxp {\n                        border-left: none !important;\n                        border-top-left-radius: 0 !important;\n                        border-bottom-left-radius: 0 !important;\n                    }\n                    .fct-header-cell.fct-icon-cell-mxp {\n                        border-top: none !important;\n                        border-top-right-radius: 0 !important;\n                    }\n                }\n            `}),/*#__PURE__*/_jsxs(\"table\",{className:\"fct-table\",style:{width:\"100%\",borderCollapse:\"separate\",borderSpacing:0,tableLayout:\"fixed\"},children:[/*#__PURE__*/_jsxs(\"colgroup\",{children:[/*#__PURE__*/_jsx(\"col\",{style:{width:\"64%\"}}),/*#__PURE__*/_jsx(\"col\",{style:{width:\"18%\"}}),/*#__PURE__*/_jsx(\"col\",{style:{width:\"18%\"}})]}),/*#__PURE__*/_jsxs(\"caption\",{style:srOnly,children:[\"Feature comparison: Mixpanel versus \",competitorName,\". Each row lists a feature and whether Mixpanel and\",\" \",competitorName,\" include it.\"]}),/*#__PURE__*/_jsx(\"thead\",{children:/*#__PURE__*/_jsxs(\"tr\",{children:[/*#__PURE__*/_jsx(\"th\",{scope:\"col\",className:\"fct-title-cell\",style:{textAlign:\"left\",padding:\"20px 64px 20px 24px\",fontSize:18,fontFamily:GARNETT_MEDIUM,fontWeight:500,color:COLORS.ink},children:tableTitle}),/*#__PURE__*/_jsx(\"th\",{scope:\"col\",className:\"fct-header-cell fct-icon-cell-mxp\",style:{textAlign:\"center\",padding:\"20px 16px\",fontSize:16,fontFamily:GARNETT_MEDIUM,fontWeight:500,color:COLORS.ink,borderLeft:`1.5px solid ${COLORS.purple}`,borderRight:`1.5px solid ${COLORS.purple}`,borderTop:`1.5px solid ${COLORS.purple}`,borderTopLeftRadius:12,borderTopRightRadius:12},children:\"Mixpanel\"}),/*#__PURE__*/_jsxs(\"th\",{scope:\"col\",className:\"fct-header-cell\",style:{textAlign:\"center\",padding:\"20px 16px\",fontSize:16,fontFamily:GARNETT_MEDIUM,fontWeight:500,color:COLORS.ink},children:[competitorLogo?.src&&/*#__PURE__*/_jsx(\"img\",{src:competitorLogo.src,alt:\"\",\"aria-hidden\":\"true\",style:{height:18,verticalAlign:\"middle\",marginRight:8}}),competitorName]})]})}),/*#__PURE__*/_jsx(\"tbody\",{children:rows.map((row,i)=>/*#__PURE__*/_jsxs(\"tr\",{style:{backgroundColor:i%2===1?COLORS.rowAlt:\"transparent\"},children:[/*#__PURE__*/_jsx(\"th\",{scope:\"row\",className:\"fct-feature-cell\",style:{textAlign:\"left\",fontWeight:400,padding:\"18px 64px 18px 24px\",fontSize:15,color:COLORS.bodyText,borderTop:`1px solid ${COLORS.border}`},children:row.feature}),/*#__PURE__*/_jsxs(\"td\",{className:\"fct-icon-cell fct-icon-cell-mxp\",style:{textAlign:\"center\",padding:\"18px 16px\",borderLeft:`1.5px solid ${COLORS.purple}`,borderRight:`1.5px solid ${COLORS.purple}`,borderTop:`1px solid ${COLORS.border}`,...i===rows.length-1?{borderBottom:`1.5px solid ${COLORS.purple}`,borderBottomLeftRadius:12,borderBottomRightRadius:12}:{}},children:[/*#__PURE__*/_jsx(StatusIcon,{included:row.mixpanelIncluded}),/*#__PURE__*/_jsxs(\"span\",{style:srOnly,children:[\"Mixpanel:\",\" \",row.mixpanelIncluded?\"Included\":\"Not included\"]})]}),/*#__PURE__*/_jsxs(\"td\",{className:\"fct-icon-cell\",style:{textAlign:\"center\",padding:\"18px 16px\",borderTop:`1px solid ${COLORS.border}`},children:[/*#__PURE__*/_jsx(StatusIcon,{included:row.competitorIncluded}),/*#__PURE__*/_jsxs(\"span\",{style:srOnly,children:[competitorName,\":\",\" \",row.competitorIncluded?\"Included\":\"Not included\"]})]})]},i))})]})]});}addPropertyControls(FeatureComparisonTable,{tableTitle:{type:ControlType.String,title:\"Table Title\",defaultValue:\"Mixpanel vs. Competitor\"},competitorName:{type:ControlType.String,title:\"Competitor Name\",defaultValue:\"Competitor\"},competitorLogo:{type:ControlType.ResponsiveImage,title:\"Competitor Logo\"},rowsData:{type:ControlType.String,title:\"Rows\",description:\"One row per `feature~mxp~competitor` triple, separated by `;`. mxp/competitor are 1 (included) or 0 (not).\",displayTextArea:true,defaultValue:\"Example Feature~1~0\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FeatureComparisonTable\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FeatureComparisonTable.map"],"mappings":"A,oKAA6G,SAASO,EAAU,EAAS,CAAC,OAAOC,EAAS,MAAM,GAAG,CAAC,CAAC,IAAI,GAAOC,EAAM,KAAK,CAAC,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,IAAI,GAAO,CAAC,GAAK,CAACC,EAAQC,EAAIC,GAAYH,EAAM,MAAM,GAAG,EAAE,MAAM,CAAC,SAASC,GAAS,GAAA,CAAI,KAAK,EAAE,iBAAiBC,GAAK,KAAK,IAAI,IAAI,mBAAmBC,GAAY,KAAK,IAAI,GAAG,CAAE,CAAC,CAAC,CAAC,OAAO,GAAKC,EAAI,QAAQ,OAAO,CAAC,CAAE,CAAge,SAASC,EAAW,CAAC,YAAU,CAAC,IAAMC,EAAMC,EAASC,EAAO,IAAIA,EAAO,UAAU,MAAoB,gBAAM,MAAM,CAAC,MAAM,KAAK,OAAO,KAAK,QAAQ,YAAY,KAAK,OAAO,cAAc,OAAO,UAAU,QAAQ,SAAS,CAAc,gBAAK,SAAS,CAAC,GAAG,OAAO,GAAG,KAAK,EAAE,OAAO,OAAOF,EAAM,YAAY,KAAK,CAAC,EAAEC,EAAsB,gBAAK,OAAO,CAAC,EAAE,4BAA4B,OAAOD,EAAM,YAAY,MAAM,cAAc,QAAQ,eAAe,OAAO,CAAC,EAAe,gBAAK,OAAO,CAAC,EAAE,qCAAqC,OAAOA,EAAM,YAAY,MAAM,cAAc,OAAO,CAAC,CAAC,CAAC,CAAC,CAAE,CAS37C,SAAwBG,EAAuB,EAAM,CAAC,GAAK,CAAC,aAAW,0BAA0B,iBAAe,aAAa,iBAAe,WAAS,sBAAsB,SAAOC,EAAYC,EAAKb,EAAUC,CAAQ,EAAE,MAAoB,gBAAM,MAAM,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