{"version":3,"file":"Compare.CZXn25o7.mjs","names":[],"sources":["https:/framerusercontent.com/modules/XiPBHDjD9LwXfnxnObWd/gcJMnOewtuh0BhL5xYqw/Compare.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export default function ComparisonTable(props){const{mobileBehavior,heading,subheading,columns,rows,footnote,ctaLabel,ctaHref,bgColor,cardColor,borderColor,headingColor,textColor,accentColor,goodBadgeBg,badBadgeBg}=props;const colCount=Math.max(columns.length,1);return /*#__PURE__*/_jsxs(\"section\",{style:{width:\"100%\",height:\"100%\",background:bgColor,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",padding:24,boxSizing:\"border-box\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{width:\"min(1120px, 100%)\",display:\"grid\",gap:20},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"grid\",gap:8},children:[/*#__PURE__*/_jsx(\"h2\",{style:{margin:0,color:headingColor,fontSize:36,lineHeight:1.15,letterSpacing:-.2,fontWeight:800},children:heading}),subheading&&/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:textColor,fontSize:16,lineHeight:1.6,maxWidth:820},children:subheading})]}),/*#__PURE__*/_jsxs(\"div\",{role:\"table\",\"aria-label\":\"Comparison\",style:{background:cardColor,border:`1px solid ${borderColor}`,borderRadius:16,overflow:\"hidden\",boxShadow:\"0 6px 24px rgba(0,0,0,0.06)\"},children:[/*#__PURE__*/_jsxs(\"div\",{role:\"row\",style:{display:\"grid\",gridTemplateColumns:`minmax(180px, 1.2fr) repeat(${colCount}, minmax(120px, 1fr))`,background:`${accentColor}0F`,borderBottom:`1px solid ${borderColor}`},children:[/*#__PURE__*/_jsx(\"div\",{role:\"columnheader\",style:{padding:\"14px 16px\",color:headingColor,fontWeight:700,fontSize:14},children:\"Feature\"}),columns.map((c,i)=>/*#__PURE__*/_jsx(\"div\",{role:\"columnheader\",style:{padding:\"14px 16px\",color:headingColor,fontWeight:700,fontSize:14,borderLeft:`1px solid ${borderColor}`,textAlign:\"center\"},children:c.label},i))]}),/*#__PURE__*/_jsx(\"div\",{role:\"rowgroup\",children:rows.map((r,idx)=>/*#__PURE__*/_jsxs(\"div\",{role:\"row\",style:{display:\"grid\",gridTemplateColumns:`minmax(180px, 1.2fr) repeat(${colCount}, minmax(120px, 1fr))`,borderBottom:`1px solid ${borderColor}`,background:idx%2?`${cardColor}`:`${cardColor}`},children:[/*#__PURE__*/_jsx(\"div\",{role:\"cell\",style:{padding:\"14px 16px\",color:headingColor,fontWeight:600,fontSize:14},children:r.feature}),Array.from({length:colCount}).map((_,i)=>{const value=r.values?.[i]??\"\";const normalized=value.trim().toLowerCase();const isYes=normalized===\"yes\"||normalized===\"✅\"||normalized===\"true\";const isNo=normalized===\"no\"||normalized===\"❌\"||normalized===\"false\";const isBadge=isYes||isNo;return /*#__PURE__*/_jsx(\"div\",{role:\"cell\",\"data-col\":columns[i]?.label||\"\",style:{padding:\"14px 16px\",borderLeft:`1px solid ${borderColor}`,color:textColor,fontSize:14,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",textAlign:\"center\"},children:isBadge?/*#__PURE__*/_jsx(\"span\",{style:{display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",padding:\"4px 10px\",borderRadius:999,fontWeight:700,fontSize:12,background:isYes?goodBadgeBg:badBadgeBg,color:isYes?\"#0B5\":\"#B00\"},children:isYes?\"Yes\":\"No\"}):value},i);})]},idx))})]}),footnote&&/*#__PURE__*/_jsx(\"div\",{style:{color:textColor,fontSize:12,opacity:.9},children:footnote}),ctaLabel&&/*#__PURE__*/_jsxs(\"div\",{style:{marginTop:8,display:\"flex\",justifyContent:\"center\"},children:[/*#__PURE__*/_jsxs(\"a\",{href:ctaHref||\"#\",style:{display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",gap:10,padding:\"14px 20px\",background:accentColor,color:\"#ffffff\",textDecoration:\"none\",borderRadius:10,fontWeight:700,fontSize:16,minWidth:220,boxShadow:\"0 6px 16px rgba(0,0,0,0.12)\",transition:\"transform 120ms ease, box-shadow 120ms ease\"},onMouseEnter:e=>{e.currentTarget.style.boxShadow=\"0 12px 28px rgba(0,0,0,0.18)\";e.currentTarget.style.transform=\"translateY(-1px)\";},onMouseLeave:e=>{e.currentTarget.style.boxShadow=\"0 6px 16px rgba(0,0,0,0.12)\";e.currentTarget.style.transform=\"translateY(0)\";},children:[ctaLabel,\" \",/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":true,children:\"↗\"})]}),/*#__PURE__*/_jsx(\"style\",{children:`\n              @media (max-width: 640px) {\n                a { width: 100% !important; max-width: 340px; }\n              }\n            `})]})]}),/*#__PURE__*/_jsx(\"style\",{children:`\n        /* Base tweak for mid-width screens */\n        @media (max-width: 860px) {\n          [role=\"table\"] > [role=\"row\"],\n          [role=\"table\"] > [role=\"rowgroup\"] > [role=\"row\"] {\n            grid-template-columns: minmax(140px, 1fr) repeat(${colCount}, minmax(100px, 1fr)) !important;\n          }\n        }\n\n        /* ----- Mobile: SCROLL behavior ----- */\n        ${mobileBehavior===\"scroll\"?`\n          @media (max-width: 640px) {\n            [role=\"table\"] {\n              display: block !important;\n              overflow-x: auto;\n              -webkit-overflow-scrolling: touch;\n              white-space: nowrap;\n              border-radius: 12px;\n              position: relative;\n            }\n            [role=\"table\"] > [role=\"row\"],\n            [role=\"table\"] > [role=\"rowgroup\"] > [role=\"row\"] {\n              display: grid;\n              grid-template-columns: minmax(180px, 1.2fr) repeat(${colCount}, minmax(140px, 1fr)) !important;\n              min-width: 600px;\n            }\n            /* Sticky first column */\n            [role=\"row\"] > [role=\"cell\"]:first-child,\n            [role=\"row\"] > [role=\"columnheader\"]:first-child {\n              position: sticky;\n              left: 0;\n              background: ${cardColor};\n              z-index: 2;\n              box-shadow: 6px 0 8px -6px rgba(0,0,0,0.06);\n            }\n          }\n        `:\"\"}\n\n        /* ----- Mobile: HIDE behavior ----- */\n        ${mobileBehavior===\"hide\"?`\n          @media (max-width: 640px) {\n            [role=\"table\"], [role=\"table\"] * { display: none !important; }\n          }\n        `:\"\"}\n\n        /* ----- Mobile: STACK behavior (default) ----- */\n        ${mobileBehavior===\"stack\"?`\n          @media (max-width: 560px) {\n            /* Hide the header row */\n            [role=\"table\"] > [role=\"row\"] { display: none !important; }\n\n            /* Each row becomes a card */\n            [role=\"table\"] > [role=\"rowgroup\"] > [role=\"row\"] {\n              display: grid !important;\n              grid-template-columns: 1fr !important;\n              border: 1px solid ${borderColor};\n              border-radius: 12px;\n              margin: 10px 0;\n              overflow: hidden;\n            }\n\n            /* First cell (feature) becomes the card header */\n            [role=\"table\"] > [role=\"rowgroup\"] > [role=\"row\"] > [role=\"cell\"]:first-child {\n              font-weight: 700;\n              color: ${headingColor};\n              padding: 14px 16px;\n              border-bottom: 1px solid ${borderColor};\n              background: ${accentColor}0F;\n            }\n\n            /* Other cells show their column label above the value */\n            [role=\"table\"] > [role=\"rowgroup\"] > [role=\"row\"] > [role=\"cell\"]:not(:first-child) {\n              justify-content: flex-start !important;\n              text-align: left !important;\n              padding: 12px 16px;\n              border-left: none !important;\n              display: grid;\n              gap: 6px;\n            }\n\n            [role=\"table\"] > [role=\"rowgroup\"] > [role=\"row\"] > [role=\"cell\"]:not(:first-child)::before {\n              content: attr(data-col);\n              font-size: 12px;\n              font-weight: 600;\n              color: ${headingColor};\n              opacity: 0.8;\n            }\n          }\n        `:\"\"}\n      `})]});}/* ---------- Defaults & Controls ---------- */const defaultColumns=[{label:\"My Primary Care\"},{label:\"Traditional Insurance\"},{label:\"Teladoc / MDLIVE\"}];const defaultRows=[{feature:\"Flat-rate pricing\",values:[\"Yes\",\"No\",\"No\"]},{feature:\"No claims process\",values:[\"Yes\",\"No\",\"Yes\"]},{feature:\"Primary & Urgent Care\",values:[\"Yes\",\"Partial\",\"Yes\"]},{feature:\"Mental Health included\",values:[\"Yes\",\"Extra premium\",\"Yes\"]},{feature:\"Pharmacy & Lab discounts\",values:[\"Yes\",\"Varies\",\"Limited\"]},{feature:\"Virtual pet care\",values:[\"Yes\",\"No\",\"No\"]},{feature:\"HR onboarding support\",values:[\"Yes\",\"No\",\"No\"]}];ComparisonTable.defaultProps={mobileBehavior:\"stack\",heading:\"Why choose MPC over insurance or single-point telemedicine?\",subheading:\"We give your team complete, flat-rate care without the premiums, claims, or fragmented vendors.\",columns:defaultColumns,rows:defaultRows,footnote:\"Comparisons are generalized and may vary by carrier/vendor. Contact us for details.\",ctaLabel:\"Download Employer Brochure\",ctaHref:\"#download\",bgColor:\"#FFFFFF\",cardColor:\"#FFFFFF\",borderColor:\"#E5EEF4\",headingColor:\"#00384D\",textColor:\"#3B5563\",accentColor:\"#00A8E8\",goodBadgeBg:\"#E8FFF1\",badBadgeBg:\"#FFF0F0\"};addPropertyControls(ComparisonTable,{mobileBehavior:{type:ControlType.Enum,title:\"Mobile\",options:[\"stack\",\"scroll\",\"hide\"],optionTitles:[\"Stack Cards\",\"Horizontal Scroll\",\"Hide\"]},heading:{type:ControlType.String,title:\"Heading\"},subheading:{type:ControlType.String,title:\"Subheading\",displayTextArea:true},columns:{type:ControlType.Array,title:\"Columns\",propertyControl:{type:ControlType.Object,controls:{label:{type:ControlType.String,title:\"Label\"}}},defaultValue:defaultColumns},rows:{type:ControlType.Array,title:\"Rows\",propertyControl:{type:ControlType.Object,controls:{feature:{type:ControlType.String,title:\"Feature\"},values:{type:ControlType.Array,title:\"Values\",propertyControl:{type:ControlType.String,title:\"Value\"}}}},defaultValue:defaultRows},footnote:{type:ControlType.String,title:\"Footnote\",displayTextArea:true},ctaLabel:{type:ControlType.String,title:\"CTA Label\"},ctaHref:{type:ControlType.String,title:\"CTA Link\"},bgColor:{type:ControlType.Color,title:\"Background\"},cardColor:{type:ControlType.Color,title:\"Card\"},borderColor:{type:ControlType.Color,title:\"Border\"},headingColor:{type:ControlType.Color,title:\"Headings\"},textColor:{type:ControlType.Color,title:\"Body Text\"},accentColor:{type:ControlType.Color,title:\"Accent\"},goodBadgeBg:{type:ControlType.Color,title:\"Yes Badge BG\"},badBadgeBg:{type:ControlType.Color,title:\"No Badge BG\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ComparisonTable\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Compare.map"],"mappings":"wOAA6G,SAAwB,EAAgB,EAAM,CAAC,GAAK,CAAC,iBAAe,UAAQ,aAAW,UAAQ,OAAK,WAAS,WAAS,UAAQ,UAAQ,YAAU,cAAY,eAAa,YAAU,cAAY,cAAY,cAAY,EAAY,EAAS,KAAK,IAAI,EAAQ,OAAO,EAAE,CAAC,OAAoB,EAAM,UAAU,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,WAAW,EAAQ,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,QAAQ,GAAG,UAAU,aAAa,CAAC,SAAS,CAAc,EAAM,MAAM,CAAC,MAAM,CAAC,MAAM,oBAAoB,QAAQ,OAAO,IAAI,GAAG,CAAC,SAAS,CAAc,EAAM,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,IAAI,EAAE,CAAC,SAAS,CAAc,EAAK,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,EAAa,SAAS,GAAG,WAAW,KAAK,cAAc,IAAI,WAAW,IAAI,CAAC,SAAS,EAAQ,CAAC,CAAC,GAAyB,EAAK,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,EAAU,SAAS,GAAG,WAAW,IAAI,SAAS,IAAI,CAAC,SAAS,EAAW,CAAC,CAAC,CAAC,CAAC,CAAc,EAAM,MAAM,CAAC,KAAK,QAAQ,aAAa,aAAa,MAAM,CAAC,WAAW,EAAU,OAAO,aAAa,IAAc,aAAa,GAAG,SAAS,SAAS,UAAU,8BAA8B,CAAC,SAAS,CAAc,EAAM,MAAM,CAAC,KAAK,MAAM,MAAM,CA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