{"version":3,"file":"TransactionAttachments.mjs","names":["React","AmbientCard","EmptyStateDisplay","useTranslation","TransactionAttachment","LinearProgress","TransactionAttachments","props","$","_c","transactionAttachments","isLoading","t","t0","pageList","length","map","attachment","index","defaultValue"],"sources":["../../../../../../src/udp/pages/UdpTransactionsPage/components/transactionAttachment/TransactionAttachments.jsx"],"sourcesContent":["import React from 'react';\nimport { AmbientCard } from '../../../../../UI/surfaces/cards/AmbientCard';\nimport { EmptyStateDisplay } from '../../../../../UI';\nimport { useTranslation } from 'react-i18next';\nimport { TransactionAttachment } from './TransactionAttachment';\nimport { LinearProgress } from '@material-ui/core';\n\nexport const TransactionAttachments = (props) => {\n  const { transactionAttachments, isLoading } = props;\n  const { t } = useTranslation();\n\n  return (\n    <div>\n      {isLoading ? (\n        <LinearProgress />\n      ) : transactionAttachments?.pageList?.length > 0 ? (\n        <AmbientCard fullWidth>\n          {transactionAttachments.pageList.map((attachment, index) => (\n            <TransactionAttachment\n              key={index}\n              attachment={attachment}\n              isLastItem={index === transactionAttachments.pageList.length - 1}\n            />\n          ))}\n        </AmbientCard>\n      ) : (\n        <div>\n          <EmptyStateDisplay\n            primaryText={t('transactions.attachments.noAttachments', {\n              defaultValue: 'No Attachments'\n            })}\n          />\n        </div>\n      )}\n    </div>\n  );\n};\n"],"mappings":";;;;;;;;AAOA,MAAaM,0BAAyBC,UAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CACpC,MAAA,EAAAC,wBAAAC,cAA8CJ;CAC9C,MAAA,EAAAK,MAAcT,gBAAgB;CAAC,IAAAU;AAAA,KAAAL,EAAA,OAAAG,aAAAH,EAAA,OAAAI,KAAAJ,EAAA,OAAAE,wBAAA;AAG7BG,OAAA,sBAAA,cAAA,OAAA,MACGF,YACC,sBAAA,cAAC,gBAAA,KAmBF,GAlBGD,wBAAsBI,UAAkBC,SAAG,IAC7C,sBAAA,cAAC,aAAD,EAAa,WAAA,MAiBd,EAhBIL,uBAAsBI,SAASE,KAAKC,YAAAC,UACnC,sBAAA,cAAC,uBAAD;GACOA,KAAAA;GACOD;GACA,YAAAC,UAAUR,uBAAsBI,SAASC,SAAU;GAElE,CAAA,CAAA,CAUJ,GAPC,sBAAA,cAAA,OAAA,MACE,sBAAA,cAAC,mBAAD,EACe,aAAAH,EAAE,0CAA0C,EAAAO,cACzC,kBACf,CAAA,EAEL,CAAA,CACF,CACI;AAAAX,IAAA,KAAAG;AAAAH,IAAA,KAAAI;AAAAJ,IAAA,KAAAE;AAAAF,IAAA,KAAAK;OAAAA,MAAAL,EAAA;AAAA,QAtBNK"}