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AUrE,OAGMwF,EAAAA,EAAAA,MAAMxC,GAAkBW,EAAAA,EAAAA,GAAS,CACnDW,WAAWmB,EAAAA,EAAAA,GAAKV,EAAQvB,KAAMc,GAC9BhB,WAAYA,EACZa,IAAKA,GACJS,EAAO,CACRP,SAAU,CAAC1E,EAASK,KAExB,IAuDA,K","sources":["pages/Explorer/TransactionAddressDetails.tsx","pages/Transactions/Transactions.tsx","../node_modules/@mui/icons-material/ArrowDownward.js","../node_modules/@mui/icons-material/ArrowUpward.js","../node_modules/@mui/material/esm/ListItemText/ListItemText.js"],"sourcesContent":["import { Box, Typography } from \"@mui/material\";\nimport React, { useEffect, useState } from \"react\";\nimport { useParams } from \"react-router\";\nimport { FullPageSpinner } from \"../../components/FullPageSpinner\";\nimport { getTransactions } from \"../../http\";\nimport { ExplorerRespose, ITransaction } from \"../Profile/types\";\nimport { Transactions } from \"../Transactions/Transactions\";\n\ninterface ITransactionAddressDetailsProps {}\n\nconst TransactionAddressDetails: React.FC<ITransactionAddressDetailsProps> = (\n props\n) => {\n const [transactions, setTransactions] = useState<\n ExplorerRespose<ITransaction[]>\n >({ items: [], total: 0, offset: 0, limit: 0 });\n const [loading, setLoading] = useState(false);\n\n const params = useParams<{ address: string }>();\n const getDetails = async () => {\n setLoading(true);\n try {\n const { data } = await getTransactions(params.address);\n setTransactions(data);\n } catch (error) {\n console.log(error);\n }\n setLoading(false);\n };\n\n useEffect(() => {\n if (params?.address) {\n getDetails();\n }\n }, [params]);\n return (\n <>\n {loading ? (\n <FullPageSpinner />\n ) : (\n <Box>\n <Typography variant=\"h4\" sx={{ padding: \"10px\", fontSize: \"25px\" }}>\n Transactions from/to {params.address}\n </Typography>\n <Transactions transactions={transactions.items} />\n </Box>\n )}\n </>\n );\n};\nexport default TransactionAddressDetails;\n","import {\n Avatar,\n Box,\n Collapse,\n List,\n ListItem,\n ListItemAvatar,\n ListItemButton,\n ListItemText,\n useTheme,\n} from \"@mui/material\";\nimport React, { useState } from \"react\";\nimport { ITransaction } from \"../Profile/types\";\n\nimport coin from \"../../assets/images/coin.png\";\nimport ArrowDownwardIcon from \"@mui/icons-material/ArrowDownward\";\nimport ArrowUpwardIcon from \"@mui/icons-material/ArrowUpward\";\nimport { format } from \"date-fns\";\nimport { useStoreState } from \"../../store\";\nimport { useHistory } from \"react-router\";\n\nexport interface ITransactions {\n transactions: ITransaction[];\n}\n\nconst TransactionItems: React.FC<{ item: ITransaction }> = ({ item }) => {\n const theme = useTheme();\n const walletAddress = useStoreState((state) => state.user.walletAddress);\n const isSender = item.from === walletAddress;\n const [expanded, setExpanded] = useState(false);\n const history = useHistory();\n\n if (!item.fromFirstName) {\n return null;\n }\n\n return (\n <>\n <ListItem key={item.transactionHash}>\n <ListItemButton onClick={() => setExpanded((prev) => !prev)}>\n <ListItemAvatar>\n <Avatar style={{ backgroundColor: theme.palette.primary.main }}>\n <p>{item.fromFirstName.slice(0, 2).toUpperCase()}</p>\n </Avatar>\n </ListItemAvatar>\n <ListItemText\n primary={item.fromFirstName + \" \" + item.fromLastName}\n secondary={format(new Date(item.timestamp), \"pp PP\")}\n />\n <Box\n sx={{\n display: \"flex\",\n justifyContent: \"center\",\n alignItems: \"center\",\n }}\n >\n {isSender ? (\n <ArrowUpwardIcon fontSize={\"small\"} color={\"error\"} />\n ) : (\n <ArrowDownwardIcon color={\"success\"} fontSize={\"small\"} />\n )}\n <span>{item.value}</span>\n <img src={coin} style={{ width: 20, height: 20 }} alt={\"coin\"} />\n </Box>\n </ListItemButton>\n </ListItem>\n\n <Collapse in={expanded} timeout=\"auto\" unmountOnExit>\n <List dense>\n <ListItem disablePadding disableGutters style={{ paddingLeft: 25 }}>\n <span style={{ fontWeight: \"bold\" }}>Block Number:</span>{\" \"}\n {item.blockNumber}\n </ListItem>\n <ListItem disablePadding disableGutters style={{ paddingLeft: 25 }}>\n <span style={{ fontWeight: \"bold\" }}>From:</span>{\" \"}\n <span>\n <span\n onClick={() => history.push(\"/explorer/address/\" + item.from)}\n style={{ textDecoration: \"underline\", cursor: \"pointer\" }}\n >\n {item.from}\n </span>\n </span>\n </ListItem>{\" \"}\n <ListItem disablePadding disableGutters style={{ paddingLeft: 25 }}>\n <span style={{ fontWeight: \"bold\" }}>To:</span>\n <span\n onClick={() => history.push(\"/explorer/address/\" + item.to)}\n style={{ textDecoration: \"underline\", cursor: \"pointer\" }}\n >\n {item.to}\n </span>\n </ListItem>\n <ListItem disablePadding disableGutters style={{ paddingLeft: 25 }}>\n <span style={{ fontWeight: \"bold\" }}>Sender First Name:</span>\n {item.fromFirstName}\n </ListItem>\n <ListItem disablePadding disableGutters style={{ paddingLeft: 25 }}>\n <span style={{ fontWeight: \"bold\" }}>Sender Last Name:</span>\n {item.fromLastName}\n </ListItem>\n <ListItem disablePadding disableGutters style={{ paddingLeft: 25 }}>\n <span style={{ fontWeight: \"bold\" }}>Timestamp:</span>{\" \"}\n {format(new Date(item.timestamp), \"pp PP\")}\n </ListItem>\n <ListItem disablePadding disableGutters style={{ paddingLeft: 25 }}>\n <span style={{ fontWeight: \"bold\" }}>Receiver First Name:</span>\n {item.toFirstName}\n </ListItem>\n <ListItem disablePadding disableGutters style={{ paddingLeft: 25 }}>\n <span style={{ fontWeight: \"bold\" }}>Receiver Last Name:</span>\n {item.toLastName}\n </ListItem>\n <ListItem disablePadding disableGutters style={{ paddingLeft: 25 }}>\n <span style={{ fontWeight: \"bold\" }}>Token Name:</span>\n {item.tokenName}\n </ListItem>\n <ListItem disablePadding disableGutters style={{ paddingLeft: 25 }}>\n <span style={{ fontWeight: \"bold\" }}>Transaction Index:</span>\n {item.transactionIndex}\n </ListItem>\n <ListItem disablePadding disableGutters style={{ paddingLeft: 25 }}>\n <span style={{ fontWeight: \"bold\" }}>Type:</span>\n {item.type}\n </ListItem>\n <ListItem disablePadding disableGutters style={{ paddingLeft: 25 }}>\n <span style={{ fontWeight: \"bold\" }}>Value:</span>\n {item.value}\n </ListItem>\n <ListItem disablePadding disableGutters style={{ paddingLeft: 25 }}>\n <span style={{ fontWeight: \"bold\" }}>Transaction Hash:</span>\n <span\n onClick={() =>\n history.push(\"/explorer/transactions/\" + item.transactionHash)\n }\n style={{ textDecoration: \"underline\", cursor: \"pointer\" }}\n >\n {item.transactionHash}\n </span>\n </ListItem>\n <ListItem disablePadding disableGutters style={{ paddingLeft: 25 }}>\n <span style={{ fontWeight: \"bold\" }}>Token Id:</span>\n {item.tokenId}\n </ListItem>\n <ListItem disablePadding disableGutters style={{ paddingLeft: 25 }}>\n <span style={{ fontWeight: \"bold\" }}>_id:</span>\n {item._id}\n </ListItem>\n </List>\n </Collapse>\n </>\n );\n};\n\nexport const Transactions: React.FC<ITransactions> = ({ transactions }) => {\n const theme = useTheme();\n const walletAddress = useStoreState((state) => state.user.walletAddress);\n console.log({ transactions });\n return (\n <List sx={{ width: \"100%\", bgcolor: \"background.paper\" }}>\n {transactions.map((item) => {\n return <TransactionItems item={item} key={item._id} />;\n })}\n </List>\n );\n};\n","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z\"\n}), 'ArrowDownward');\n\nexports.default = _default;","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _jsxRuntime = require(\"react/jsx-runtime\");\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z\"\n}), 'ArrowUpward');\n\nexports.default = _default;","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"children\", \"className\", \"disableTypography\", \"inset\", \"primary\", \"primaryTypographyProps\", \"secondary\", \"secondaryTypographyProps\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { unstable_composeClasses as composeClasses } from '@mui/base';\nimport Typography from '../Typography';\nimport ListContext from '../List/ListContext';\nimport useThemeProps from '../styles/useThemeProps';\nimport styled from '../styles/styled';\nimport listItemTextClasses, { getListItemTextUtilityClass } from './listItemTextClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n inset,\n primary,\n secondary,\n dense\n } = ownerState;\n const slots = {\n root: ['root', inset && 'inset', dense && 'dense', primary && secondary && 'multiline'],\n primary: ['primary'],\n secondary: ['secondary']\n };\n return composeClasses(slots, getListItemTextUtilityClass, classes);\n};\nconst ListItemTextRoot = styled('div', {\n name: 'MuiListItemText',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [{\n [`& .${listItemTextClasses.primary}`]: styles.primary\n }, {\n [`& .${listItemTextClasses.secondary}`]: styles.secondary\n }, styles.root, ownerState.inset && styles.inset, ownerState.primary && ownerState.secondary && styles.multiline, ownerState.dense && styles.dense];\n }\n})(({\n ownerState\n}) => _extends({\n flex: '1 1 auto',\n minWidth: 0,\n marginTop: 4,\n marginBottom: 4\n}, ownerState.primary && ownerState.secondary && {\n marginTop: 6,\n marginBottom: 6\n}, ownerState.inset && {\n paddingLeft: 56\n}));\nconst ListItemText = /*#__PURE__*/React.forwardRef(function ListItemText(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiListItemText'\n });\n const {\n children,\n className,\n disableTypography = false,\n inset = false,\n primary: primaryProp,\n primaryTypographyProps,\n secondary: secondaryProp,\n secondaryTypographyProps\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const {\n dense\n } = React.useContext(ListContext);\n let primary = primaryProp != null ? primaryProp : children;\n let secondary = secondaryProp;\n const ownerState = _extends({}, props, {\n disableTypography,\n inset,\n primary: !!primary,\n secondary: !!secondary,\n dense\n });\n const classes = useUtilityClasses(ownerState);\n if (primary != null && primary.type !== Typography && !disableTypography) {\n primary = /*#__PURE__*/_jsx(Typography, _extends({\n variant: dense ? 'body2' : 'body1',\n className: classes.primary,\n component: primaryTypographyProps != null && primaryTypographyProps.variant ? undefined : 'span',\n display: \"block\"\n }, primaryTypographyProps, {\n children: primary\n }));\n }\n if (secondary != null && secondary.type !== Typography && !disableTypography) {\n secondary = /*#__PURE__*/_jsx(Typography, _extends({\n variant: \"body2\",\n className: classes.secondary,\n color: \"text.secondary\",\n display: \"block\"\n }, secondaryTypographyProps, {\n children: secondary\n }));\n }\n return /*#__PURE__*/_jsxs(ListItemTextRoot, _extends({\n className: clsx(classes.root, className),\n ownerState: ownerState,\n ref: ref\n }, other, {\n children: [primary, secondary]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? ListItemText.propTypes /* remove-proptypes */ = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * Alias for the `primary` prop.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * If `true`, the children won't be wrapped by a Typography component.\n * This can be useful to render an alternative Typography variant by wrapping\n * the `children` (or `primary`) text, and optional `secondary` text\n * with the Typography component.\n * @default false\n */\n disableTypography: PropTypes.bool,\n /**\n * If `true`, the children are indented.\n * This should be used if there is no left avatar or left icon.\n * @default false\n */\n inset: PropTypes.bool,\n /**\n * The main content element.\n */\n primary: PropTypes.node,\n /**\n * These props will be forwarded to the primary typography component\n * (as long as disableTypography is not `true`).\n */\n primaryTypographyProps: PropTypes.object,\n /**\n * The secondary content element.\n */\n secondary: PropTypes.node,\n /**\n * These props will be forwarded to the secondary typography component\n * (as long as disableTypography is not `true`).\n */\n secondaryTypographyProps: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default ListItemText;"],"names":["props","useState","items","total","offset","limit","transactions","setTransactions","loading","setLoading","params","useParams","getDetails","getTransactions","address","data","console","log","useEffect","variant","sx","padding","fontSize","TransactionItems","item","theme","useTheme","walletAddress","useStoreState","state","user","isSender","from","expanded","setExpanded","history","useHistory","fromFirstName","onClick","prev","style","backgroundColor","palette","primary","main","slice","toUpperCase","fromLastName","secondary","format","Date","timestamp","display","justifyContent","alignItems","color","value","src","coin","width","height","alt","transactionHash","in","timeout","unmountOnExit","dense","disablePadding","disableGutters","paddingLeft","fontWeight","blockNumber","push","textDecoration","cursor","to","toFirstName","toLastName","tokenName","transactionIndex","type","tokenId","_id","Transactions","bgcolor","map","_interopRequireDefault","require","exports","_createSvgIcon","_jsxRuntime","_default","default","jsx","d","_excluded","ListItemTextRoot","styled","name","slot","overridesResolver","styles","ownerState","listItemTextClasses","root","inset","multiline","_extends","flex","minWidth","marginTop","marginBottom","ListItemText","React","inProps","ref","useThemeProps","children","className","disableTypography","primaryProp","primaryTypographyProps","secondaryProp","secondaryTypographyProps","other","_objectWithoutPropertiesLoose","ListContext","classes","slots","composeClasses","getListItemTextUtilityClass","useUtilityClasses","Typography","_jsx","component","undefined","_jsxs","clsx"],"sourceRoot":""}