{"version":3,"file":"ComparisonTable.CSksOizm.mjs","names":["c","__esmMin","init_jsx_runtime","c","p","init_framer_DDfsYcI0","addPropertyControls","Icon","mark","d","MARK_LABEL","Cell","text","ComparisonTable","props","rows","DEFAULT_ROWS","labels","css","caption","aTitle","bTitle","r","i","c$1","v","INK","MUTED","HAIR","DARK","ON_DARK","DARK_HAIR","LABEL","SANS","__FramerMetadata__","init_ComparisonTable","ControlType","\"exports\"","\"default\"","\"type\"","\"name\"","\"slots\"","\"annotations\"","\"framerIntrinsicHeight\"","\"framerContractVersion\"","\"framerSupportedLayoutWidth\"","\"framerIntrinsicWidth\"","\"framerSupportedLayoutHeight\"","\"__FramerMetadata__\""],"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\",\"fram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