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react';\n\nimport { criteriaStore } from 'stores/CriteriaStore';\nimport _ from 'lodash';\nimport standardsConfig from 'js/standards.config';\n\nexport default class Table extends React.Component {\n constructor(props) {\n super(props);\n criteriaStore.listen(this.storeUpdated.bind(this));\n this.state = criteriaStore.getState();\n }\n\n storeUpdated() {\n this.setState(criteriaStore.getState());\n }\n\n render() {\n const header1Cells = _.map(this.props.headerRow, (item, idx) => {item});\n const { aeValues } = standardsConfig['7-22'].tornadoServices;\n const measurement = this.state.measurement === 'si' ? 'm' : 'ft';\n const rows = _.map(aeValues, (ae, index) => {\n return (\n \n {_.map(this.props.rows[ae], (value, i) => {\n if (value === 'No Data' || value === 'N/A') {\n return {value};\n } else {\n let splitString = value.split(' = ');\n return (\n \n {splitString[0].includes('Ae') ? (\n \n Ae =
{splitString[1]}\n
\n ) : (\n \n VT =
{splitString[1]}\n
\n )}\n \n );\n }\n })}\n \n );\n });\n return (\n \n \n {header1Cells}\n \n \n \n \n \n \n \n \n \n {rows}\n \n \n \n \n \n
\n \n Effective Plan Area ({measurement}\n 2)\n \n \n Tornado Speed\n
({this.state.measurement === 'si' ? 'm/s' : 'mph'})\n
\n Tornado Speed\n
({this.state.measurement === 'si' ? 'm/s' : 'mph'})\n
\n Tornado Speed\n
({this.state.measurement === 'si' ? 'm/s' : 'mph'})\n
\n Tornado Speed\n
({this.state.measurement === 'si' ? 'm/s' : 'mph'})\n
\n Tornado Speed\n
({this.state.measurement === 'si' ? 'm/s' : 'mph'})\n
\n To select the appropriate tornado hazard map, the effective plan area, Ae, of the building, other\n structure, or facility, shall be determined in accordance with Section 32.5.4 and shall be rounded up to\n the next available mapped Ae. Alternatively, linear interpolation of tornado speed between maps using the\n logarithm of the effective plan area size is permitted, per Section 32.5.1.\n
\n );\n }\n}\n"]}