{"version":3,"file":"ArticleWideFigure.BePyEFQk.mjs","names":[],"sources":["https:/framerusercontent.com/modules/THlptT4bmojIbqoABW9s/Ed8YxR6itXCrbovxbq3Y/ArticleWideFigure.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";function normalizeImage(image,fallback){if(!image)return fallback;return typeof image===\"string\"?{src:image}:image;}/**\n * Wide article figure\n *\n * @framerIntrinsicWidth 920\n * @framerIntrinsicHeight 560\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function ArticleWideFigure(props){const{image,alt=\"OpenLake MLPerf Storage result\",caption=\"Figure: OpenLake MLPerf Storage result.\",layout=\"single\",secondImage,secondAlt=\"OpenLake MLPerf Storage comparison\",secondCaption=\"Figure: OpenLake MLPerf Storage comparison.\",maxWidth=920,widthPercent=100,borderColor=\"#E7EAF0\",radius=10,captionColor=\"#5E6470\",show=true}=props;const isVisible=show!==false&&show!==\"false\";if(!isVisible)return null;const first=normalizeImage(image,{src:\"https://framerusercontent.com/images/abORDIK5H4M0DnFrCgIwWN3qsXI.png\",alt:\"OpenLake MLPerf Storage result\"});const second=normalizeImage(secondImage,{src:\"https://framerusercontent.com/images/UVCxDu5ApKYwrgCPLE7PBPjdmo.png\",alt:\"OpenLake MLPerf Storage comparison\"});const isPair=layout===\"pair\";const hasExplicitWidthPercent=props.widthPercent!==undefined&&props.widthPercent!==null&&props.widthPercent!==\"\";const parsedWidthPercent=Number(widthPercent);const isFigureOneSize=!isPair&&Number(maxWidth)===570;const resolvedWidthPercent=isFigureOneSize?75:hasExplicitWidthPercent&&Number.isFinite(parsedWidthPercent)?Math.min(100,Math.max(25,parsedWidthPercent)):100;const renderFigure=(source,imageAlt,imageCaption)=>/*#__PURE__*/_jsxs(\"div\",{style:{minWidth:0},children:[/*#__PURE__*/_jsx(\"img\",{src:source.src,srcSet:source.srcSet,alt:imageAlt||source.alt||\"\",style:{display:\"block\",width:\"100%\",height:\"auto\",border:\"1px solid \"+borderColor,borderRadius:radius}}),/*#__PURE__*/_jsx(\"div\",{style:{marginTop:8,fontFamily:\"Inter, sans-serif\",fontSize:13,fontStyle:\"italic\",lineHeight:1.45,color:captionColor,textAlign:\"left\"},children:imageCaption})]});return /*#__PURE__*/_jsxs(\"figure\",{style:{...props.style,position:\"relative\",left:isPair?\"50%\":0,transform:isPair?\"translateX(-50%)\":\"none\",width:isPair?\"min(\"+maxWidth+\"px, calc(100vw - 48px))\":\"100%\",maxWidth:isPair?\"calc(100vw - 48px)\":\"100%\",height:\"auto\",margin:\"10px 0 30px\"},children:[/*#__PURE__*/_jsx(\"style\",{children:\"@media (max-width: 720px) { .openlake-figure-pair { grid-template-columns: 1fr !important; } }\"}),/*#__PURE__*/_jsxs(\"div\",{className:isPair?\"openlake-figure-pair\":undefined,style:{display:\"grid\",width:isPair?\"100%\":resolvedWidthPercent+\"%\",marginLeft:\"auto\",marginRight:\"auto\",gridTemplateColumns:isPair?\"repeat(2, minmax(0, 1fr))\":\"1fr\",gap:isPair?20:0,alignItems:\"start\"},children:[renderFigure(first,alt,caption),isPair?renderFigure(second,secondAlt,secondCaption):null]})]});}addPropertyControls(ArticleWideFigure,{image:{type:ControlType.ResponsiveImage,title:\"Image\"},alt:{type:ControlType.String,title:\"Alt text\",defaultValue:\"OpenLake MLPerf Storage result\"},caption:{type:ControlType.String,title:\"Caption\",defaultValue:\"Figure: OpenLake MLPerf Storage result.\",displayTextArea:true},layout:{type:ControlType.Enum,title:\"Layout\",options:[\"single\",\"pair\"],optionTitles:[\"Single\",\"Pair\"],defaultValue:\"single\",displaySegmentedControl:true},secondImage:{type:ControlType.ResponsiveImage,title:\"Second image\",hidden:props=>props.layout!==\"pair\"},secondAlt:{type:ControlType.String,title:\"Second alt text\",defaultValue:\"OpenLake MLPerf Storage comparison\",hidden:props=>props.layout!==\"pair\"},secondCaption:{type:ControlType.String,title:\"Second caption\",defaultValue:\"Figure: OpenLake MLPerf Storage comparison.\",displayTextArea:true,hidden:props=>props.layout!==\"pair\"},maxWidth:{type:ControlType.Number,title:\"Max width\",defaultValue:920,min:320,max:1200,unit:\"px\"},widthPercent:{type:ControlType.Number,title:\"Width\",defaultValue:100,min:25,max:100,unit:\"%\"},borderColor:{type:ControlType.Color,title:\"Border\",defaultValue:\"#E7EAF0\"},radius:{type:ControlType.Number,title:\"Radius\",defaultValue:10,min:0,max:32,unit:\"px\"},captionColor:{type:ControlType.Color,title:\"Caption color\",defaultValue:\"#5E6470\"},show:{type:ControlType.Boolean,title:\"Show\",defaultValue:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ArticleWideFigure\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"920\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicHeight\":\"560\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ArticleWideFigure.map"],"mappings":"mKAA6G,SAAS,EAAe,EAAM,EAAS,CAA2B,OAAtB,EAA6B,OAAO,GAAQ,SAAS,CAAC,IAAI,CAAK,EAAE,EAApD,CAA0D,CAQ7N,SAAwB,EAAkB,EAAM,CAAC,GAAK,CAAC,QAAM,MAAI,iCAAiC,UAAQ,0CAA0C,SAAO,SAAS,cAAY,YAAU,qCAAqC,gBAAc,8CAA8C,WAAS,IAAI,eAAa,IAAI,cAAY,UAAU,SAAO,GAAG,eAAa,UAAU,OAAK,IAAM,EAAmD,GAAG,EAAhC,IAAO,IAAO,IAAO,SAAsB,OAAO,KAAK,IAAM,EAAM,EAAe,EAAM,CAAC,IAAI,uEAAuE,IAAI,gCAAgC,CAAC,EAAQ,EAAO,EAAe,EAAY,CAAC,IAAI,sEAAsE,IAAI,oCAAoC,CAAC,EAAQ,EAAO,IAAS,OAAa,EAAwB,EAAM,eAAe,IAAA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