{"version":3,"file":"ComparisonTable.CaPmVDyw.mjs","names":["c"],"sources":["https:/framerusercontent.com/modules/rrBQlazOC0hArcbi5iWY/bOn0YEAVNihgnz7YHaYg/ComparisonTable.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";// Site theme colour styles (light/dark), with light fallbacks.\nconst INK=\"var(--token-af0881ac-1316-4f1a-a849-4c938b5da4d1, #0A0A0A)\";const MUTED=\"var(--token-60723f9b-37c7-4ce9-b5ec-09f11a5e90e0, #686868)\";const HAIR=\"var(--token-2dc112f7-7426-4cc2-b21f-bdc72fa605be, rgba(10, 10, 10, 0.1))\";// Highlight column uses the button colours: near-black with white text in light mode, inverted in dark mode.\nconst DARK=\"var(--token-efa1d602-5dda-4aa3-b29c-ed8be6d8c7d3, #0A0A0A)\";const ON_DARK=\"var(--token-40f3e94f-f3bc-4c51-9e42-0b2877891cba, #FFFFFF)\";const DARK_HAIR=\"color-mix(in srgb, currentColor 16%, transparent)\";// Site text styles: Label (Barlow Semi Condensed) and Body (Inter).\nconst LABEL=`\"Barlow Semi Condensed\", \"Barlow Semi Condensed Placeholder\", \"Inter\", system-ui, sans-serif`;const SANS=`\"Inter\", \"Inter Placeholder\", system-ui, sans-serif`;const DEFAULT_ROWS=[{label:\"What it is\",aMark:\"none\",aText:\"Physical film over the paint\",bMark:\"none\",bText:\"Chemical coating on the surface\"},{label:\"Rock chips\",aMark:\"check\",aText:\"Takes the impact\",bMark:\"cross\",bText:\"\"},{label:\"Scratches\",aMark:\"check\",aText:\"Self-healing film\",bMark:\"cross\",bText:\"\"},{label:\"Sap, droppings, UV\",aMark:\"partial\",aText:\"Some protection\",bMark:\"check\",bText:\"What it’s built for\"},{label:\"Easy washing\",aMark:\"partial\",aText:\"Some\",bMark:\"check\",bText:\"Water beads and sheets off\"},{label:\"Where it goes\",aMark:\"none\",aText:\"High-impact areas or whole car\",bMark:\"none\",bText:\"Paint, wheels, trim, glass, interior\"}];const MARK_LABEL={none:\"\",check:\"Yes\",partial:\"Partly\",cross:\"No\"};function Icon({mark}){if(mark===\"none\")return null;const d=mark===\"check\"?\"M4.5 12.5l5 5 10-11\":mark===\"partial\"?\"M6 12h12\":\"M6.5 6.5l11 11M17.5 6.5l-11 11\";return /*#__PURE__*/_jsx(\"svg\",{className:\"ct-icon\",width:\"18\",height:\"18\",viewBox:\"0 0 24 24\",fill:\"none\",role:\"img\",\"aria-label\":MARK_LABEL[mark],children:/*#__PURE__*/_jsx(\"path\",{d:d,stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});}function Cell({mark,text}){return /*#__PURE__*/_jsxs(\"span\",{className:\"ct-cell\",children:[/*#__PURE__*/_jsx(Icon,{mark:mark}),text?/*#__PURE__*/_jsx(\"span\",{children:text}):null]});}/**\n * Comparison Table — a real HTML table (two options side by side) with a dark\n * first column. Under 600px wide it switches to two stacked cards.\n *\n * @framerIntrinsicWidth 680\n * @framerIntrinsicHeight 520\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight auto\n */export default function ComparisonTable(props){const{caption=\"PPF vs ceramic coating\",aTitle=\"PPF\",bTitle=\"Ceramic coating\"}=props;const rows=props.rows&&props.rows.length?props.rows:DEFAULT_ROWS;// Without a label column the table is two plain columns (e.g. \"protects\" vs \"doesn't protect\").\nconst labels=props.showLabels!==false;return /*#__PURE__*/_jsxs(\"div\",{className:\"ct-root\",style:{...props.style,position:\"relative\",width:\"100%\"},children:[/*#__PURE__*/_jsx(\"style\",{children:css}),/*#__PURE__*/_jsxs(\"table\",{className:\"ct-table\",children:[/*#__PURE__*/_jsx(\"caption\",{className:\"ct-caption\",children:caption}),/*#__PURE__*/_jsxs(\"colgroup\",{children:[labels&&/*#__PURE__*/_jsx(\"col\",{style:{width:\"25%\"}}),/*#__PURE__*/_jsx(\"col\",{style:{width:labels?\"37.5%\":\"50%\"}}),/*#__PURE__*/_jsx(\"col\",{style:{width:labels?\"37.5%\":\"50%\"}})]}),/*#__PURE__*/_jsx(\"thead\",{children:/*#__PURE__*/_jsxs(\"tr\",{children:[labels&&/*#__PURE__*/_jsx(\"td\",{className:\"ct-corner\"}),/*#__PURE__*/_jsx(\"th\",{scope:\"col\",className:\"ct-a\",children:aTitle}),/*#__PURE__*/_jsx(\"th\",{scope:\"col\",className:\"ct-b\",children:bTitle})]})}),/*#__PURE__*/_jsx(\"tbody\",{children:rows.map((r,i)=>/*#__PURE__*/_jsxs(\"tr\",{children:[labels&&/*#__PURE__*/_jsx(\"th\",{scope:\"row\",className:\"ct-label\",children:r.label}),/*#__PURE__*/_jsx(\"td\",{className:\"ct-a\",children:/*#__PURE__*/_jsx(Cell,{mark:r.aMark,text:r.aText})}),/*#__PURE__*/_jsx(\"td\",{className:\"ct-b\",children:/*#__PURE__*/_jsx(Cell,{mark:r.bMark,text:r.bText})})]},i))})]}),/*#__PURE__*/_jsx(\"div\",{className:\"ct-cards\",children:[{title:aTitle,cls:\"ct-card ct-card-a\",pick:r=>({m:r.aMark,t:r.aText})},{title:bTitle,cls:\"ct-card ct-card-b\",pick:r=>({m:r.bMark,t:r.bText})}].map(c=>/*#__PURE__*/_jsxs(\"section\",{className:c.cls,\"aria-label\":c.title,children:[/*#__PURE__*/_jsx(\"h3\",{className:\"ct-card-title\",children:c.title}),/*#__PURE__*/_jsx(\"dl\",{className:\"ct-list\",children:rows.map((r,i)=>{const v=c.pick(r);return /*#__PURE__*/_jsxs(\"div\",{className:\"ct-item\",children:[labels&&/*#__PURE__*/_jsx(\"dt\",{className:\"ct-label\",children:r.label}),/*#__PURE__*/_jsx(\"dd\",{children:/*#__PURE__*/_jsx(Cell,{mark:v.m,text:v.t})})]},i);})})]},c.title))})]});}const css=`\n.ct-root { container-type: inline-size; padding: 40px 0 40px; color: ${INK}; -webkit-font-smoothing: antialiased; }\n.ct-table { width: 100%; border-collapse: collapse; border: 0; table-layout: fixed; font-family: ${SANS}; }\n.ct-caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }\n.ct-table th, .ct-table td { padding: 24px 20px; text-align: left; vertical-align: top; border: 0; }\n.ct-table thead th { padding-top: 22px; padding-bottom: 18px; font-family: ${LABEL}; font-weight: 500; font-size: 15px; line-height: 1.2; letter-spacing: 0.06em; text-transform: uppercase; }\n.ct-table tbody tr + tr th, .ct-table tbody tr + tr td { border-top: 1px solid ${HAIR}; }\n.ct-table tbody tr:first-child th, .ct-table tbody tr:first-child td { border-top: 1px solid ${HAIR}; }\n.ct-table .ct-a { background: ${DARK}; color: ${ON_DARK}; }\n.ct-table tbody td.ct-a { border-top-color: ${DARK_HAIR}; }\n.ct-table .ct-corner, .ct-table .ct-label { padding-left: 0; }\n.ct-label { font-family: ${LABEL}; font-weight: 400; font-size: 13px; line-height: 1.3; letter-spacing: 0.06em; text-transform: uppercase; color: ${MUTED}; }\n.ct-cell { display: flex; align-items: flex-start; gap: 10px; font-family: ${SANS}; font-weight: 400; font-size: 16px; line-height: 1.4; }\n.ct-icon { flex: none; margin-top: 1px; color: currentColor; }\n.ct-cards { display: none; }\n@container (max-width: 599px) {\n  .ct-root { padding: 28px 0 28px; }\n  .ct-table { display: none; }\n  .ct-cards { display: flex; flex-direction: column; gap: 12px; }\n  .ct-card { border-radius: 16px; padding: 22px 20px 6px; }\n  .ct-card-a { background: ${DARK}; color: ${ON_DARK}; }\n  .ct-card-a .ct-label { color: color-mix(in srgb, currentColor 60%, transparent); }\n  .ct-card-a .ct-item + .ct-item { border-top-color: ${DARK_HAIR}; }\n  .ct-card-b { border: 1px solid ${HAIR}; color: ${INK}; }\n  .ct-card-title { margin: 0 0 6px; font-family: ${LABEL}; font-weight: 500; font-size: 15px; line-height: 1.2; letter-spacing: 0.06em; text-transform: uppercase; }\n  .ct-list { margin: 0; }\n  .ct-item { display: flex; flex-direction: column; gap: 8px; padding: 16px 0; }\n  .ct-item + .ct-item { border-top: 1px solid ${HAIR}; }\n  .ct-item dd { margin: 0; }\n}\n`;addPropertyControls(ComparisonTable,{caption:{type:ControlType.String,title:\"Caption\",defaultValue:\"PPF vs ceramic coating\",description:\"Read by screen readers and search engines; not shown.\"},aTitle:{type:ControlType.String,title:\"Dark column\",defaultValue:\"PPF\"},bTitle:{type:ControlType.String,title:\"Light column\",defaultValue:\"Ceramic coating\"},showLabels:{type:ControlType.Boolean,title:\"Row labels\",defaultValue:true,description:\"Off: two plain columns, no label column.\"},rows:{type:ControlType.Array,title:\"Rows\",control:{type:ControlType.Object,controls:{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Row\"},aMark:{type:ControlType.Enum,title:\"Dark icon\",options:[\"none\",\"check\",\"partial\",\"cross\"],optionTitles:[\"None\",\"✓\",\"–\",\"✕\"],defaultValue:\"none\"},aText:{type:ControlType.String,title:\"Dark text\",defaultValue:\"\"},bMark:{type:ControlType.Enum,title:\"Light icon\",options:[\"none\",\"check\",\"partial\",\"cross\"],optionTitles:[\"None\",\"✓\",\"–\",\"✕\"],defaultValue:\"none\"},bText:{type:ControlType.String,title:\"Light text\",defaultValue:\"\"}}},defaultValue:DEFAULT_ROWS}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ComparisonTable\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"520\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicWidth\":\"680\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ComparisonTable.map"],"mappings":"8JAGg4B,SAAS,EAAK,CAAC,QAAM,CAAC,GAAG,IAAO,OAAO,OAAO,KAAK,IAAM,EAAE,IAAO,QAAQ,sBAAsB,IAAO,UAAU,WAAW,iCAAiC,OAAoB,EAAK,MAAM,CAAC,UAAU,UAAU,MAAM,KAAK,OAAO,KAAK,QAAQ,YAAY,KAAK,OAAO,KAAK,MAAM,aA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