{"version":3,"sources":["jsdelivr-header.js","/npm/react-native-responsive-table-view@1.4.0/lib/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OCNO,UAAW,eACT,WAAY,WAAY,SAAY,sBACpC,iBAAoB,qBACtB,SAAU,sBACV,QAAS,cAChB,MAAM,MAAQ,EAAG,QAAQ,CAAC,EAAG,WAAU,gBAAe,EAAO,aACzD,MAAM,EAAe,CAAC,EACP,OAAX,QAA8B,IAAX,IACnB,EAAa,OAAS,GAC1B,MAAM,EAAkB,IACjB,OAAO,SACP,KACA,GAED,EAAgB,MAAM,SAAS,QAAQ,GAC7C,IAAI,EAAY,KAGhB,OAFI,IACA,EAAY,YACR,MAAM,cAAc,EAAW,CAAE,MAAO,GAAmB,EAAc,KAAI,CAAC,EAAO,KACzF,MAAM,EAAS,IAAU,EAAc,OAAS,EAC1C,EAAoB,IAAV,EAChB,OAAO,MAAM,aAAa,EAAO,IAC1B,EAAM,MACT,SACA,WACF,IACF,EAER,MAAM,IAAM,IACZ,MAAM,KAAO,KACb,MAAM,OAAS,WAAW,OAAO,CAC7B,MAAO,CACH,MAAO,OACP,aAAc,EACd,YAAa,QACb,YAAa,EACb,QAAS,OACT,cAAe,SACf,YAAa,aACb,gBAAiB,4BAGV","file":"/npm/react-native-responsive-table-view@1.4.0/lib/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/react-native-responsive-table-view@1.4.0/lib/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","import React from 'react';\nimport { ScrollView, StyleSheet, View } from 'react-native';\nimport { BORDER_COLOR } from './constants';\nimport Cell from './table-cell';\nimport Row from './table-row';\nconst Table = ({ style = {}, children, isScrollable = false, height, }) => {\n    const customStyles = {};\n    if (height !== null || height !== undefined)\n        customStyles.height = height;\n    const finalTableStyle = {\n        ...styles.table,\n        ...customStyles,\n        ...style,\n    };\n    const childrenArray = React.Children.toArray(children);\n    let Container = View;\n    if (isScrollable)\n        Container = ScrollView;\n    return (React.createElement(Container, { style: finalTableStyle }, childrenArray.map((child, index) => {\n        const isLast = index === childrenArray.length - 1;\n        const isFirst = index === 0;\n        return React.cloneElement(child, {\n            ...child.props,\n            isLast,\n            isFirst,\n        });\n    })));\n};\nTable.Row = Row;\nTable.Cell = Cell;\nconst styles = StyleSheet.create({\n    table: {\n        width: '100%',\n        borderRadius: 4,\n        borderStyle: 'solid',\n        borderWidth: 1,\n        display: 'flex',\n        flexDirection: 'column',\n        borderColor: BORDER_COLOR,\n        backgroundColor: '#FFFFFF',\n    },\n});\nexport default Table;\n"]}