{"version":3,"file":"InteractiveTableLazy.cjs","sources":["../../../../src/components/InteractiveTable/InteractiveTableLazy.tsx"],"sourcesContent":["import { lazy, Suspense } from 'react';\n\nimport { t } from '@grafana/i18n';\n\nimport { LoadingPlaceholder } from '../LoadingPlaceholder/LoadingPlaceholder';\n\nimport { type InteractiveTable as InteractiveTableImpl } from './InteractiveTable';\n\n// React.lazy erases the relationship between the generic row type and the column/callback props.\n// eslint-disable-next-line @typescript-eslint/consistent-type-assertions\nconst LazyInteractiveTable = lazy(() =>\n  import('./InteractiveTable').then((module) => ({ default: module.InteractiveTable }))\n) as typeof InteractiveTableImpl;\n\nexport function InteractiveTable<TableData extends object>(\n  props: Parameters<typeof InteractiveTableImpl<TableData>>[0]\n) {\n  return (\n    <Suspense fallback={<LoadingPlaceholder text={t('grafana-ui.interactive-table.loading', 'Loading table')} />}>\n      <LazyInteractiveTable {...props} />\n    </Suspense>\n  );\n}\n"],"names":["lazy","jsx","Suspense","LoadingPlaceholder","t"],"mappings":";;;;;;;;;;AAUA,MAAM,oBAAA,GAAuBA,UAAA;AAAA,EAAK,MAChC,oDAAO,wBAAoB,KAAA,CAAE,IAAA,CAAK,CAAC,MAAA,MAAY,EAAE,OAAA,EAAS,MAAA,CAAO,gBAAA,EAAiB,CAAE;AACtF,CAAA;AAEO,SAAS,iBACd,KAAA,EACA;AACA,EAAA,uBACEC,cAAA,CAACC,cAAA,EAAA,EAAS,QAAA,kBAAUD,cAAA,CAACE,yCAAmB,IAAA,EAAMC,MAAA,CAAE,sCAAA,EAAwC,eAAe,GAAG,CAAA,EACxG,QAAA,kBAAAH,cAAA,CAAC,oBAAA,EAAA,EAAsB,GAAG,OAAO,CAAA,EACnC,CAAA;AAEJ;;;;"}