!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("openstack-uicore-foundation",[],t):"object"==typeof exports?exports["openstack-uicore-foundation"]=t():e["openstack-uicore-foundation"]=t()}(this,(()=>(()=>{"use strict";var e={8619:e=>{e.exports=require("@mui/material")},2015:e=>{e.exports=require("react")}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var l=t[n]={exports:{}};return e[n](l,l.exports,r),l.exports}(()=>{r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t}})(),(()=>{r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),(()=>{r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})();var n={};r.r(n),r.d(n,{default:()=>c});var a=r(2015),l=r.n(a),o=r(8619);const i=({children:e})=>l().createElement(o.Typography,{variant:"subtitle2",component:"div",sx:{minWidth:120,alignSelf:"self-start"}},e),m=({children:e})=>l().createElement(o.Typography,{variant:"body2",component:"div",sx:{textAlign:"left",minWidth:120,alignSelf:"self-start"}},e),c=({title:e,rows:t,columns:r})=>l().createElement(o.Card,{sx:{minWidth:275,borderRadius:"10px",height:"100%"},variant:"outlined"},l().createElement(o.CardContent,null,l().createElement(o.Typography,{gutterBottom:!0,variant:"h6"},e),l().createElement(o.List,{sx:{marginTop:"20px"}},!r&&(()=>t.map(((e,r)=>l().createElement(l().Fragment,{key:`row-${e.label}-${r}`},l().createElement(o.ListItem,{sx:{display:"flex",height:50}},l().createElement(i,null,e.label),l().createElement(m,null,e.value)),r<t.length-1&&l().createElement(o.Divider,null)))))(),r&&(()=>[l().createElement(l().Fragment,{key:"header-row"},l().createElement(o.ListItem,{sx:{display:"flex",height:50}},r.map(((e,t)=>l().createElement(i,{key:`col-${e.key}-${t}`},e.label)))),l().createElement(o.Divider,null)),...t.map(((e,n)=>l().createElement(l().Fragment,{key:`row-${n}`},l().createElement(o.ListItem,{sx:{display:"flex",minHeight:60}},r.map(((t,r)=>l().createElement(m,{key:`col-val-${t.key}-${r}`},e[t.key])))),n<t.length-1&&l().createElement(o.Divider,null))))])())));return n})()));
//# sourceMappingURL=dashboard-card.js.map