{"version":3,"file":"ComparisonTable.Cqi1ENEW.mjs","names":[],"sources":["https:/framerusercontent.com/modules/rzphkjLjNJumy5vXl0qC/lBGFBenCBHq6jWEh0J6z/ComparisonTable.js"],"sourcesContent":["// Responsive comparison table component with JSON data support\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Responsive Comparison Table\n * \n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function ComparisonTable(props){const{data=`{\n  \"title\": \"Phone-Audio Accuracy for Contact Centers\",\n  \"note\": \"WildASR + internal benchmarks, June 2026. Lower WER = better.\",\n  \"columns\": [\"Audio Condition\", \"Pulse STT\", \"Deepgram Nova 3\", \"AssemblyAI Uni 3 Pro\"],\n  \"rows\": [\n    {\n      \"condition\": \"Phone Codec\",\n      \"pulse\": \"7.19%\",\n      \"deepgram\": \"9.13%\",\n      \"assemblyai\": \"3.45%\",\n      \"winner\": \"assemblyai\"\n    },\n    {\n      \"condition\": \"Far-field (speakerphone)\",\n      \"pulse\": \"13.38%\",\n      \"deepgram\": \"62.99%\",\n      \"assemblyai\": \"26.07%\",\n      \"winner\": \"pulse\"\n    }\n  ]\n}`,accentColor=\"#1D9E75\",borderColor=\"#E5E7EB\",headerBg=\"#F9FAFB\",headerText=\"#9CA3AF\",bodyText=\"#111827\",tableFont,noteFont}=props;let parsedData;try{parsedData=JSON.parse(data);}catch(e){return /*#__PURE__*/_jsxs(\"div\",{style:{padding:20,color:\"red\",fontFamily:\"monospace\",whiteSpace:\"pre-wrap\"},children:[/*#__PURE__*/_jsx(\"strong\",{children:\"Invalid JSON data. Please check your JSON format.\"}),/*#__PURE__*/_jsx(\"br\",{}),/*#__PURE__*/_jsx(\"br\",{}),\"Error: \",e.message]});}const{title,note,columns=[],rows=[]}=parsedData;return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",fontFamily:tableFont.fontFamily||\"inherit\",backgroundColor:\"#ffffff\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",overflowX:\"auto\",border:`1px solid ${borderColor}`,borderRadius:12,backgroundColor:\"#ffffff\"},children:/*#__PURE__*/_jsxs(\"table\",{style:{width:\"100%\",borderCollapse:\"collapse\"},children:[/*#__PURE__*/_jsx(\"thead\",{style:{backgroundColor:headerBg},children:/*#__PURE__*/_jsx(\"tr\",{children:columns.map((col,i)=>/*#__PURE__*/_jsx(\"th\",{style:{...tableFont,padding:\"13px 20px\",textAlign:\"left\",fontSize:\"11px\",color:headerText,textTransform:\"uppercase\",letterSpacing:\"0.07em\",borderBottom:`1px solid ${borderColor}`,whiteSpace:\"nowrap\",width:i===0?\"35%\":\"auto\"},children:col},i))})}),/*#__PURE__*/_jsx(\"tbody\",{children:rows.map((row,i)=>{const isLast=i===rows.length-1;const border=isLast?\"none\":`1px solid #F3F4F6`;// Support both \"condition\" and \"feature\" keys\nconst firstColumnValue=row.condition||row.feature||\"\";// Get all value keys (excluding condition, feature, winner, and highlightPulse)\nconst valueKeys=Object.keys(row).filter(k=>k!==\"condition\"&&k!==\"feature\"&&k!==\"winner\"&&k!==\"highlightPulse\");return /*#__PURE__*/_jsxs(\"tr\",{children:[/*#__PURE__*/_jsx(\"td\",{style:{...tableFont,padding:\"16px 20px\",color:bodyText,borderBottom:border},children:firstColumnValue}),valueKeys.map((key,idx)=>{// Check if this cell should be highlighted\n// Support both \"winner\" format and \"highlightPulse\" format\nconst isWinner=row.winner===key;const isHighlighted=row.highlightPulse&&idx===0// highlightPulse highlights first value column\n;const shouldHighlight=isWinner||isHighlighted;return /*#__PURE__*/_jsx(\"td\",{style:{...tableFont,padding:\"16px 20px\",textAlign:\"left\",color:shouldHighlight?accentColor:\"#6B7280\",borderBottom:border},children:row[key]},idx);})]},i);})})]})}),note&&/*#__PURE__*/_jsx(\"p\",{style:{...noteFont,marginTop:12,fontSize:\"12px\",color:headerText,lineHeight:1.6},children:note})]});}addPropertyControls(ComparisonTable,{data:{type:ControlType.String,title:\"JSON Data\",displayTextArea:true,defaultValue:`{\n  \"title\": \"Phone-Audio Accuracy for Contact Centers\",\n  \"note\": \"WildASR + internal benchmarks, June 2026. Lower WER = better.\",\n  \"columns\": [\"Audio Condition\", \"Pulse STT\", \"Deepgram Nova 3\", \"AssemblyAI Uni 3 Pro\"],\n  \"rows\": [\n    {\n      \"condition\": \"Phone Codec\",\n      \"pulse\": \"7.19%\",\n      \"deepgram\": \"9.13%\",\n      \"assemblyai\": \"3.45%\",\n      \"winner\": \"assemblyai\"\n    },\n    {\n      \"condition\": \"Far-field (speakerphone)\",\n      \"pulse\": \"13.38%\",\n      \"deepgram\": \"62.99%\",\n      \"assemblyai\": \"26.07%\",\n      \"winner\": \"pulse\"\n    }\n  ]\n}`},accentColor:{type:ControlType.Color,title:\"Accent Color\",defaultValue:\"#1D9E75\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#E5E7EB\"},headerBg:{type:ControlType.Color,title:\"Header Background\",defaultValue:\"#F9FAFB\"},headerText:{type:ControlType.Color,title:\"Header Text\",defaultValue:\"#9CA3AF\"},bodyText:{type:ControlType.Color,title:\"Body Text\",defaultValue:\"#111827\"},tableFont:{type:ControlType.Font,title:\"Table Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Regular\",letterSpacing:\"-0.01em\",lineHeight:\"1.4em\"}},noteFont:{type:ControlType.Font,title:\"Note Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"12px\",variant:\"Regular\",letterSpacing:\"-0.01em\",lineHeight:\"1.4em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ComparisonTable\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=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