{"version":3,"file":"ArticleCompactTable.B0iyLLBz.mjs","names":["_jsxs","_jsx","__esmMin","p","c","init_jsx_runtime","init_framer_ChujFWHC","addPropertyControls","ControlType","parseHeaders","value","parsed","cell","parseRows","row","ArticleCompactTable","props","headers","rows","caption","maxWidth","topMargin","highlightFirstRow","headerCells","bodyRows","highlight","index","rowIndex","cellIndex","__FramerMetadata__","init_ArticleCompactTable","\"exports\"","\"default\"","\"type\"","\"name\"","\"slots\"","\"annotations\"","\"framerContractVersion\"","\"framerIntrinsicWidth\"","\"framerIntrinsicHeight\"","\"framerSupportedLayoutWidth\"","\"framerSupportedLayoutHeight\"","\"__FramerMetadata__\""],"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":"A,mKAA6G,SAASS,EAAaC,EAAM,CAAC,GAAG,CAAC,IAAMC,EAAO,KAAK,MAAMD,CAAK,EAAE,GAAG,MAAM,QAAQC,CAAM,EAAE,OAAOA,EAAO,IAAIC,GAAM,OAAOA,CAAI,CAAC,CAAE,MAAM,CAAC,CAAC,OAAOF,EAAM,MAAM,GAAG,CAAC,CAAC,IAAIE,GAAMA,EAAK,KAAK,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