{"version":3,"file":"DetailPanel.cjs","names":["_react","require","DetailPanel","row","renderDetailPanel","MemoizedDetailPanel","exports","memo","displayName"],"sources":["../../../../src/labs/DataView/DetailPanel.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2024-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { MRT_RowData } from \"material-react-table\";\nimport { memo } from \"react\";\n\nimport { CardLayoutProps } from \"./componentTypes.js\";\n\nconst DetailPanel = <TData extends MRT_RowData>({\n  row,\n  renderDetailPanel,\n}: {\n  renderDetailPanel: CardLayoutProps<TData>[\"renderDetailPanel\"];\n  row: TData;\n}) => {\n  if (!renderDetailPanel) return null;\n  return renderDetailPanel({ row });\n};\n\nconst MemoizedDetailPanel = memo(DetailPanel);\nMemoizedDetailPanel.displayName = \"DetailPanel\";\n\nexport { MemoizedDetailPanel as DetailPanel };\n"],"mappings":";;;;;;AAaA,IAAAA,MAAA,GAAAC,OAAA;AAbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAOA,MAAMC,WAAW,GAAGA,CAA4B;EAC9CC,GAAG;EACHC;AAIF,CAAC,KAAK;EACJ,IAAI,CAACA,iBAAiB,EAAE,OAAO,IAAI;EACnC,OAAOA,iBAAiB,CAAC;IAAED;EAAI,CAAC,CAAC;AACnC,CAAC;AAED,MAAME,mBAAmB,GAAAC,OAAA,CAAAJ,WAAA,GAAG,IAAAK,WAAI,EAACL,WAAW,CAAC;AAC7CG,mBAAmB,CAACG,WAAW,6CAAgB","ignoreList":[]}