{"version":3,"file":"Table.QRvKsmVO.mjs","names":["React.useId"],"sources":["https:/framerusercontent.com/modules/j5PmzytXyZQF34pQpb7E/CBxfhkb5LtUyVfVMW8Bc/Table.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Comparison Table\n *\n * A dark, bordered table with adjustable columns and rows.\n * - \"Columns\" controls the header labels (add/remove to change column count).\n * - \"Rows\" controls each row (add/remove rows). Each row has up to 6 cell\n *   fields — only as many as you have columns will actually be shown.\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */// The Font controls resolve to the generic sans-serif on the published site,\n// so the table pins the site's own body face. Size still comes from the controls.\nconst HEADER_FONT={fontFamily:'\"Altform Bold\", \"Altform Regular\", \"Altform\", sans-serif',fontWeight:700,lineHeight:1.3};const CELL_FONT={fontFamily:'\"Altform Regular\", \"Altform\", sans-serif',fontWeight:400,lineHeight:1.4};export default function ComparisonTable(props){const{headers,rows,backgroundColor,headerBackgroundColor,headerTextColor,cellTextColor,dividerColor,borderColor,borderRadius,cellPaddingX,cellPaddingY,headerFont,cellFont,columnMinWidth,stackOnMobile,stackBreakpoint}=props;// Optional phone layout: under stackBreakpoint the same grid collapses to\n// one column, so every row reads as a card with the column labels above\n// each value. Same markup, so no text is duplicated in the HTML.\nconst uid=\"ct\"+React.useId().replace(/[^a-zA-Z0-9]/g,\"\");const stackCss=stackOnMobile?`@media (max-width: ${stackBreakpoint-.02}px) {\n.${uid} { overflow-x: visible !important; }\n.${uid} > .ct-grid { grid-template-columns: 1fr !important; min-width: 0 !important; }\n.${uid} .ct-head { display: none !important; }\n.${uid} .ct-cell { position: static !important; border-right: none !important; border-bottom: none !important; padding-top: 4px !important; padding-bottom: 4px !important; }\n.${uid} .ct-cell[data-last=\"1\"] { padding-bottom: ${cellPaddingY}px !important; }\n.${uid} .ct-cell[data-first=\"1\"] { padding-top: ${cellPaddingY}px !important; color: ${headerTextColor} !important; font-family: \"Altform Bold\", \"Altform Regular\", \"Altform\", sans-serif !important; font-weight: 700 !important; }\n.${uid} .ct-cell[data-first=\"1\"][data-row-first=\"0\"] { border-top: 1px solid ${dividerColor} !important; }\n.${uid} .ct-cell[data-label]:not([data-label=\"\"])::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.6; }\n}`:\"\";const columnCount=Math.max(headers.length,1);const cellKeys=[\"cell1\",\"cell2\",\"cell3\",\"cell4\",\"cell5\",\"cell6\"];const rowCount=rows.length;// A SINGLE grid spans the whole table (header + every body row) so\n// every column shares one width, no matter how wide any individual\n// cell's content is. This is what keeps columns aligned top to bottom.\n//\n// Each column gets a guaranteed minimum width (columnMinWidth). Once\n// columnCount * columnMinWidth is wider than the component itself, the\n// outer wrapper scrolls horizontally instead of squishing the columns —\n// this is what makes it behave like the mobile view you shared.\n// The first column stays put while the rest scrolls sideways, so the row\n// labels never leave the screen on narrow layouts.\nconst stickyCell={position:\"sticky\",left:0,zIndex:1};return /*#__PURE__*/_jsxs(\"div\",{className:uid,style:{width:\"100%\",height:\"100%\",backgroundColor,borderRadius,overflowX:\"auto\",overflowY:\"hidden\",border:`1px solid ${borderColor}`,boxSizing:\"border-box\",WebkitOverflowScrolling:\"touch\"},children:[stackCss?/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:stackCss}}):null,/*#__PURE__*/_jsxs(\"div\",{className:\"ct-grid\",style:{display:\"grid\",gridTemplateColumns:`repeat(${columnCount}, minmax(${columnMinWidth}px, 1fr))`,minWidth:`${columnCount*columnMinWidth}px`,width:\"100%\"},children:[headers.map((h,i)=>/*#__PURE__*/_jsx(\"div\",{className:\"ct-head\",style:{padding:`${cellPaddingY}px ${cellPaddingX}px`,color:headerTextColor,backgroundColor:headerBackgroundColor,boxSizing:\"border-box\",...headerFont,...HEADER_FONT,...i===0?stickyCell:null,borderBottom:`1px solid ${dividerColor}`,borderRight:i<columnCount-1?`1px solid ${dividerColor}`:\"none\"},children:h},`h-${i}`)),rows.map((row,rIdx)=>cellKeys.slice(0,columnCount).map((key,cIdx)=>/*#__PURE__*/_jsx(\"div\",{className:\"ct-cell\",\"data-first\":cIdx===0?\"1\":\"0\",\"data-row-first\":rIdx===0?\"1\":\"0\",\"data-last\":cIdx===columnCount-1?\"1\":\"0\",\"data-label\":cIdx===0?\"\":headers[cIdx]??\"\",style:{padding:`${cellPaddingY}px ${cellPaddingX}px`,color:cellTextColor,boxSizing:\"border-box\",...cellFont,...CELL_FONT,...cIdx===0?{...stickyCell,backgroundColor}:null,borderBottom:rIdx<rowCount-1?`1px solid ${dividerColor}`:\"none\",borderRight:cIdx<columnCount-1?`1px solid ${dividerColor}`:\"none\"},children:row?.[key]??\"\"},`c-${rIdx}-${cIdx}`)))]})]});}ComparisonTable.defaultProps={headers:[\"Best Suited For\",\"May Struggle\"],rows:[{cell1:\"Disciplined risk managers\",cell2:\"High-frequency scalpers\"},{cell1:\"Consistent profit targets\",cell2:\"Swing traders with large drawdowns\"},{cell1:\"Rule-following traders\",cell2:\"Intuitive, flexible strategies\"},{cell1:\"Quick decision makers\",cell2:\"Long-term position holders\"}],backgroundColor:\"#141414\",headerBackgroundColor:\"#141414\",headerTextColor:\"#FFFFFF\",cellTextColor:\"#B3B3B3\",dividerColor:\"#2A2A2A\",borderColor:\"#2A2A2A\",borderRadius:14,cellPaddingX:20,cellPaddingY:16,headerFont:{fontFamily:\"Altform Bold\",fontWeight:700,fontSize:14,fontStyle:\"normal\"},cellFont:{fontFamily:\"Altform Regular\",fontWeight:400,fontSize:14,fontStyle:\"normal\"},columnMinWidth:140,stackOnMobile:false,stackBreakpoint:700};addPropertyControls(ComparisonTable,{headers:{type:ControlType.Array,title:\"Columns\",control:{type:ControlType.String,defaultValue:\"Header\"},maxCount:6},rows:{type:ControlType.Array,title:\"Rows\",control:{type:ControlType.Object,controls:{cell1:{type:ControlType.String,title:\"Col 1\",defaultValue:\"\"},cell2:{type:ControlType.String,title:\"Col 2\",defaultValue:\"\"},cell3:{type:ControlType.String,title:\"Col 3\",defaultValue:\"\"},cell4:{type:ControlType.String,title:\"Col 4\",defaultValue:\"\"},cell5:{type:ControlType.String,title:\"Col 5\",defaultValue:\"\"},cell6:{type:ControlType.String,title:\"Col 6\",defaultValue:\"\"}}},maxCount:30},backgroundColor:{type:ControlType.Color,title:\"Background\"},headerBackgroundColor:{type:ControlType.Color,title:\"Header Background\"},borderColor:{type:ControlType.Color,title:\"Border\"},dividerColor:{type:ControlType.Color,title:\"Divider\"},headerTextColor:{type:ControlType.Color,title:\"Header Text\"},cellTextColor:{type:ControlType.Color,title:\"Cell Text\"},borderRadius:{type:ControlType.Number,title:\"Radius\",min:0,max:60},cellPaddingX:{type:ControlType.Number,title:\"Padding X\",min:0,max:60},cellPaddingY:{type:ControlType.Number,title:\"Padding Y\",min:0,max:60},headerFont:{type:ControlType.Font,title:\"Header Font\",controls:\"extended\"},cellFont:{type:ControlType.Font,title:\"Cell Font\",controls:\"extended\"},columnMinWidth:{type:ControlType.Number,title:\"Min Column Width\",min:60,max:400,step:10},stackOnMobile:{type:ControlType.Boolean,title:\"Stack on Mobile\",defaultValue:false},stackBreakpoint:{type:ControlType.Number,title:\"Stack Below\",min:320,max:1200,step:10,hidden:p=>!p.stackOnMobile}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ComparisonTable\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Table.map"],"mappings":"iLAY8N,SAAwB,EAAgB,EAAM,CAAC,GAAK,CAAC,UAAQ,OAAK,kBAAgB,wBAAsB,kBAAgB,gBAAc,eAAa,cAAY,eAAa,eAAa,eAAa,aAAW,WAAS,iBAAe,gBAAc,mBAAiB,EAGhe,EAAI,KAAKA,EAAY,CAAC,CAAC,QAAQ,gBAAgB,EA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