{"version":3,"file":"ArticleCompactTable.B3AInf9D.mjs","names":[],"sources":["https:/framerusercontent.com/modules/R9EoQhyILMbpQzQFLgQl/Jy01ECm8mF3ZVhkX8xBA/ArticleCompactTable.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";function parseHeaders(value){try{const parsed=JSON.parse(value);if(Array.isArray(parsed))return parsed.map(cell=>String(cell));}catch{}return value.split(\"|\").map(cell=>cell.trim()).filter(Boolean);}function parseRows(value){try{const parsed=JSON.parse(value);if(Array.isArray(parsed)){return parsed.filter(Array.isArray).map(row=>row.map(cell=>String(cell)));}}catch{}return value.split(\"~\").map(row=>row.split(\"|\").map(cell=>cell.trim())).filter(row=>row.some(Boolean));}/**\n * Compact article table\n *\n * @framerIntrinsicWidth 680\n * @framerIntrinsicHeight 280\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function ArticleCompactTable(props){const{headers='[\"Metric\",\"OpenLake result\"]',rows='[[\"Write bandwidth\",\"6.72 GiB/s\"],[\"Write duration\",\"29.42 seconds\"],[\"Read bandwidth\",\"11.55 GiB/s\"],[\"Read duration\",\"9.37 seconds\"]]',caption=\"Table 1: OpenLake MLPerf Storage v3.0 checkpointing result.\",maxWidth=520,topMargin=16,highlightFirstRow=false}=props;const headerCells=parseHeaders(headers);const bodyRows=parseRows(rows);const highlight=highlightFirstRow===true||highlightFirstRow===\"true\";return /*#__PURE__*/_jsxs(\"figure\",{style:{...props.style,position:\"relative\",left:\"50%\",transform:\"translateX(-50%)\",width:\"min(\"+maxWidth+\"px, calc(100vw - 48px))\",maxWidth:\"calc(100vw - 48px)\",height:\"auto\",margin:topMargin+\"px 0 28px\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",overflowX:\"auto\"},children:/*#__PURE__*/_jsxs(\"table\",{style:{width:\"100%\",borderCollapse:\"separate\",borderSpacing:0,fontFamily:\"Inter, sans-serif\",fontSize:12.5,lineHeight:1.3,color:\"#24262E\"},children:[/*#__PURE__*/_jsx(\"thead\",{children:/*#__PURE__*/_jsx(\"tr\",{children:headerCells.map((cell,index)=>/*#__PURE__*/_jsx(\"th\",{scope:\"col\",style:{padding:\"7px 9px\",textAlign:\"left\",fontWeight:650,background:\"#F2F4F7\",borderTop:\"1px solid #DDE1E8\",borderBottom:\"1px solid #DDE1E8\",borderLeft:index===0?\"1px solid #DDE1E8\":undefined,borderRight:\"1px solid #DDE1E8\",borderTopLeftRadius:index===0?8:0,borderTopRightRadius:index===headerCells.length-1?8:0,whiteSpace:\"nowrap\"},children:cell},index))})}),/*#__PURE__*/_jsx(\"tbody\",{children:bodyRows.map((row,rowIndex)=>/*#__PURE__*/_jsx(\"tr\",{children:row.map((cell,cellIndex)=>/*#__PURE__*/_jsx(\"td\",{style:{padding:\"7px 9px\",textAlign:\"left\",fontWeight:highlight&&rowIndex===0?700:cellIndex>0&&headerCells.length===2?600:400,background:highlight&&rowIndex===0?\"#F8FAFC\":\"#FFFFFF\",borderBottom:\"1px solid #DDE1E8\",borderLeft:cellIndex===0?\"1px solid #DDE1E8\":undefined,borderRight:\"1px solid #DDE1E8\",borderBottomLeftRadius:rowIndex===bodyRows.length-1&&cellIndex===0?8:0,borderBottomRightRadius:rowIndex===bodyRows.length-1&&cellIndex===row.length-1?8:0,whiteSpace:cellIndex===0?\"normal\":\"nowrap\"},children:cell},cellIndex))},rowIndex))})]})}),/*#__PURE__*/_jsx(\"figcaption\",{style:{marginTop:9,fontFamily:\"Inter, sans-serif\",fontSize:13.5,fontStyle:\"italic\",lineHeight:1.45,color:\"#5E6470\"},children:caption})]});}addPropertyControls(ArticleCompactTable,{headers:{type:ControlType.String,title:\"Headers\",defaultValue:'[\"Metric\",\"OpenLake result\"]',displayTextArea:true},rows:{type:ControlType.String,title:\"Rows\",defaultValue:'[[\"Write bandwidth\",\"6.72 GiB/s\"],[\"Write duration\",\"29.42 seconds\"],[\"Read bandwidth\",\"11.55 GiB/s\"],[\"Read duration\",\"9.37 seconds\"]]',displayTextArea:true},caption:{type:ControlType.String,title:\"Caption\",defaultValue:\"Table 1: OpenLake MLPerf Storage v3.0 checkpointing result.\"},maxWidth:{type:ControlType.Number,title:\"Max width\",defaultValue:520,min:420,max:1100,unit:\"px\"},topMargin:{type:ControlType.Number,title:\"Top margin\",defaultValue:16,min:0,max:40,unit:\"px\"},highlightFirstRow:{type:ControlType.Boolean,title:\"Highlight first row\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ArticleCompactTable\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"680\",\"framerIntrinsicHeight\":\"280\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ArticleCompactTable.map"],"mappings":"mKAA6G,SAAS,EAAa,EAAM,CAAC,GAAG,CAAC,IAAM,EAAO,KAAK,MAAM,CAAK,EAAE,GAAG,MAAM,QAAQ,CAAM,EAAE,OAAO,EAAO,IAAI,GAAM,OAAO,CAAI,CAAC,CAAE,MAAM,CAAC,CAAC,OAAO,EAAM,MAAM,GAAG,CAAC,CAAC,IAAI,GAAM,EAAK,KAAK,CAAC,CAAC,CAAC,OAAO,OAAO,CAAE,CAAC,SAAS,EAAU,EAAM,CAAC,GAAG,CAAC,IAAM,EAAO,KAAK,MAAM,CAAK,EAAE,GAAG,MAAM,QAAQ,CAAM,EAAG,OAAO,EAAO,OAAO,MAAM,OAAO,CAAC,CAAC,IAAI,GAAK,EAAI,IAAI,GAAM,OAAO,CAAI,CAAC,CAAC,CAAG,MAAM,CAAC,CAAC,OAAO,EAAM,MAAM,GAAG,CAAC,CAAC,IAAI,GAAK,EAAI,MAAM,GAAG,CAAC,CAAC,IAAI,GAAM,EAAK,KAAK,CAAC,CAAC,C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