{"version":3,"file":"index-o9Zeiojf.js","sources":["../../../app/javascript/entrypoints/pages/DisclosuresPage/FinancialInformationTableSP/index.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport {\n FinancialInformationDisclosure,\n FinancialInformationDisclosureTypeEnum,\n} from '../../../output/models/FinancialInformationDisclosure';\n\nimport { StockTable } from './StockTable';\nimport { SummaryTableLower } from './SummaryTableLower';\nimport { SummaryTableUpper } from './SummaryTableUpper';\nimport { ResultsForecastTableLower } from './ResultsForecastTableLower';\nimport { ResultsForecastTableUpper } from './ResultsForecastTableUpper';\n\ninterface Props {\n data: FinancialInformationDisclosure[];\n}\n\nexport const FinancialInformationTableSP: React.FC = ({ data }) => {\n return (\n <>\n {data.map((financial, index) => (\n
\n \n {renderTable(financial)}\n
\n ))}\n \n );\n};\n\nconst renderTable = (financial: FinancialInformationDisclosure): JSX.Element | undefined => {\n if (financial.type === FinancialInformationDisclosureTypeEnum.Summary) {\n return (\n <>\n \n \n \n );\n } else if (financial.type === FinancialInformationDisclosureTypeEnum.ResultsForecast) {\n return (\n <>\n \n \n \n );\n } else {\n <>;\n }\n};\n"],"names":["FinancialInformationTableSP","data","jsx","Fragment","financial","index","jsxs","StockTable","renderTable","FinancialInformationDisclosureTypeEnum","SummaryTableUpper","SummaryTableLower","ResultsForecastTableUpper","ResultsForecastTableLower"],"mappings":"+oCAiBO,MAAMA,EAA+C,CAAC,CAAE,KAAAC,KAE3DC,EAAA,IAAAC,EAAA,SAAA,CACG,WAAK,IAAI,CAACC,EAAWC,IACpBC,EAAA,KAAC,MAAI,CAAA,UAAU,OACb,SAAA,CAAAJ,MAACK,GAAW,UAAAH,EAAsB,EACjCI,EAAYJ,CAAS,CAAA,GAFGC,CAG3B,CACD,CACH,CAAA,EAIEG,EAAeJ,GAAuE,CACtF,GAAAA,EAAU,OAASK,EAAuC,QAC5D,OAEIH,EAAA,KAAAH,WAAA,CAAA,SAAA,CAACD,EAAAA,IAAAQ,EAAA,CAAkB,QAASN,EAAU,OAAU,CAAA,EAC/CF,EAAAA,IAAAS,EAAA,CAAkB,QAASP,EAAU,OAAU,CAAA,CAClD,CAAA,CAAA,EAEO,GAAAA,EAAU,OAASK,EAAuC,gBACnE,OAEIH,EAAA,KAAAH,WAAA,CAAA,SAAA,CAACD,EAAAA,IAAAU,EAAA,CAA0B,gBAAiBR,EAAU,gBAAmB,CAAA,EACxEF,EAAAA,IAAAW,EAAA,CAA0B,gBAAiBT,EAAU,gBAAmB,CAAA,CAC3E,CAAA,CAAA,CAKN"}