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AAC0Y,0BAAYA,CAACnP,YAAaA,YAAaL,QAASgN,CAAAA,MAAAA,EAAAA,KAAAA,EAAAA,EAAehN,OAAO,GAAI,OAG5G,EAI0C,CACxC4M,MAAO6C,GAAAA,EAAeA,CACtB5C,UAJmB,IAAM6C,CAAAA,EAAAA,EAAAA,UAAAA,EAAWC,GAAAA,CAAcA,EAAE9C,SAAS,GCzJ/D+C,aAZ8B,IAE1B,GAAA9O,EAAA3H,IAAA,EAAA2H,EAAA5H,QAAA,YACE,GAAA4H,EAAAhK,GAAA,EAAC+Y,IAAIA,UACH,GAAA/O,EAAAhK,GAAA,EAAC8F,QAAAA,UAAO,kCAGV,GAAAkE,EAAAhK,GAAA,EAACgZ,GAAgBA,CAAAA,yBCVvBC,EAAAC,OAAA,EAAkB,wECAlBD,EAAAC,OAAA,EAAkB,wNCAlBD,EAAAC,OAAA,EAAkB,4OCAlBD,EAAAC,OAAA,EAAkB","sources":["webpack://_N_E/./node_modules/@mui/material/internal/svg-icons/KeyboardArrowLeft.js","webpack://_N_E/./node_modules/@mui/material/internal/svg-icons/KeyboardArrowRight.js","webpack://_N_E/?bf69","webpack://_N_E/./src/components/common/EnhancedTable/index.tsx","webpack://_N_E/./src/components/common/PageHeader/index.tsx","webpack://_N_E/./src/components/tx/ErrorMessage/index.tsx","webpack://_N_E/./src/components/address-book/ExportDialog/index.tsx","webpack://_N_E/./src/components/address-book/ImportDialog/validation.ts","webpack://_N_E/./src/components/address-book/ImportDialog/index.tsx","webpack://_N_E/./src/components/address-book/RemoveDialog/index.tsx","webpack://_N_E/./public/images/common/search.svg","webpack://_N_E/./public/images/common/add-outlined.svg","webpack://_N_E/./src/components/address-book/AddressBookHeader/index.tsx","webpack://_N_E/./public/images/address-book/no-entries.svg","webpack://_N_E/./src/components/address-book/AddressBookTable/index.tsx","webpack://_N_E/./src/pages/address-book.tsx","webpack://_N_E/./src/components/address-book/ImportDialog/styles.module.css","webpack://_N_E/./src/components/common/EnhancedTable/styles.module.css","webpack://_N_E/./src/components/common/PageHeader/styles.module.css","webpack://_N_E/./src/components/tx/ErrorMessage/styles.module.css","webpack://_N_E/"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport createSvgIcon from '../../utils/createSvgIcon';\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n d: \"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z\"\n}), 'KeyboardArrowLeft');","'use client';\n\nimport * as React from 'react';\nimport createSvgIcon from '../../utils/createSvgIcon';\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n d: \"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z\"\n}), 'KeyboardArrowRight');","\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/address-book\",\n function () {\n return require(\"private-next-pages/address-book.tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/address-book\"])\n });\n }\n ","import type { ChangeEvent, ReactNode } from 'react'\nimport React, { useState } from 'react'\nimport Box from '@mui/material/Box'\nimport Table from '@mui/material/Table'\nimport TableBody from '@mui/material/TableBody'\nimport type { SortDirection } from '@mui/material/TableCell'\nimport TableCell from '@mui/material/TableCell'\nimport TableContainer from '@mui/material/TableContainer'\nimport TableHead from '@mui/material/TableHead'\nimport TablePagination from '@mui/material/TablePagination'\nimport TableRow from '@mui/material/TableRow'\nimport TableSortLabel from '@mui/material/TableSortLabel'\nimport Paper from '@mui/material/Paper'\nimport { visuallyHidden } from '@mui/utils'\nimport classNames from 'classnames'\n\nimport css from './styles.module.css'\nimport { Collapse } from '@mui/material'\n\ntype EnhancedCell = {\n content: ReactNode\n rawValue: string | number\n sticky?: boolean\n}\n\ntype EnhancedRow = {\n selected?: boolean\n collapsed?: boolean\n key?: string\n cells: Record\n}\n\ntype EnhancedHeadCell = {\n id: string\n label: ReactNode\n width?: string\n sticky?: boolean\n}\n\nfunction descendingComparator(a: EnhancedRow, b: EnhancedRow, orderBy: string) {\n if (b.cells[orderBy].rawValue < a.cells[orderBy].rawValue) {\n return -1\n }\n if (b.cells[orderBy].rawValue > a.cells[orderBy].rawValue) {\n return 1\n }\n return 0\n}\n\nfunction getComparator(order: SortDirection, orderBy: string) {\n return order === 'desc'\n ? (a: any, b: any) => descendingComparator(a, b, orderBy)\n : (a: any, b: any) => -descendingComparator(a, b, orderBy)\n}\n\ntype EnhancedTableHeadProps = {\n headCells: EnhancedHeadCell[]\n onRequestSort: (property: string) => void\n order: 'asc' | 'desc'\n orderBy: string\n}\n\nfunction EnhancedTableHead(props: EnhancedTableHeadProps) {\n const { headCells, order, orderBy, onRequestSort } = props\n const createSortHandler = (property: string) => () => {\n onRequestSort(property)\n }\n\n return (\n \n \n {headCells.map((headCell) => (\n \n {headCell.label && (\n <>\n \n {headCell.label}\n {orderBy === headCell.id ? (\n \n {order === 'desc' ? 'sorted descending' : 'sorted ascending'}\n \n ) : null}\n \n \n )}\n \n ))}\n \n \n )\n}\n\nexport type EnhancedTableProps = {\n rows: EnhancedRow[]\n headCells: EnhancedHeadCell[]\n mobileVariant?: boolean\n children?: ReactNode\n}\n\nconst pageSizes = [10, 25, 100]\n\nfunction EnhancedTable({ rows, headCells, mobileVariant, children }: EnhancedTableProps) {\n const [order, setOrder] = useState<'asc' | 'desc'>('asc')\n const [orderBy, setOrderBy] = useState('')\n const [page, setPage] = useState(0)\n const [rowsPerPage, setRowsPerPage] = useState(pageSizes[1])\n\n const handleRequestSort = (property: string) => {\n const isAsc = orderBy === property && order === 'asc'\n setOrder(isAsc ? 'desc' : 'asc')\n setOrderBy(property)\n }\n\n const handleChangePage = (_: any, newPage: number) => {\n setPage(newPage)\n }\n\n const handleChangeRowsPerPage = (event: ChangeEvent) => {\n setRowsPerPage(parseInt(event.target.value, 10))\n setPage(0)\n }\n\n const orderedRows = orderBy ? rows.slice().sort(getComparator(order, orderBy)) : rows\n const pagedRows = orderedRows.slice(page * rowsPerPage, page * rowsPerPage + rowsPerPage)\n\n return (\n \n \n \n \n \n {pagedRows.length > 0\n ? pagedRows.map((row, index) => (\n \n {Object.entries(row.cells).map(([key, cell]) => (\n \n \n {cell.content}\n \n \n ))}\n \n ))\n : !children && (\n // Prevent no `tbody` rows hydration error\n \n \n \n )}\n {children}\n \n
\n
\n\n {rows.length > pagedRows.length && (\n \n )}\n
\n )\n}\n\nexport default EnhancedTable\n","import { Box, Typography } from '@mui/material'\nimport classNames from 'classnames'\n\nimport type { ReactElement } from 'react'\n\nimport css from './styles.module.css'\n\nconst PageHeader = ({\n title,\n action,\n noBorder,\n}: {\n title: string\n action?: ReactElement\n noBorder?: boolean\n}): ReactElement => {\n return (\n \n \n {title}\n \n {action}\n \n )\n}\n\nexport default PageHeader\n","import { type ReactElement, type ReactNode, type SyntheticEvent, useState } from 'react'\nimport { Link, Typography, SvgIcon } from '@mui/material'\nimport classNames from 'classnames'\nimport WarningIcon from '@/public/images/notifications/warning.svg'\nimport InfoIcon from '@/public/images/notifications/info.svg'\nimport css from './styles.module.css'\n\nconst ErrorMessage = ({\n children,\n error,\n className,\n level = 'error',\n}: {\n children: ReactNode\n error?: Error & { reason?: string }\n className?: string\n level?: 'error' | 'warning' | 'info'\n}): ReactElement => {\n const [showDetails, setShowDetails] = useState(false)\n\n const onDetailsToggle = (e: SyntheticEvent) => {\n e.preventDefault()\n setShowDetails((prev) => !prev)\n }\n\n return (\n
\n
\n `${palette[level].main} !important` }}\n />\n\n
\n \n {children}\n\n {error && (\n \n Details\n \n )}\n \n\n {error && showDetails && (\n \n {error.reason || error.message.slice(0, 300)}\n \n )}\n
\n
\n
\n )\n}\n\nexport default ErrorMessage\n","import DialogContent from '@mui/material/DialogContent'\nimport DialogActions from '@mui/material/DialogActions'\nimport Button from '@mui/material/Button'\nimport Typography from '@mui/material/Typography'\nimport { useCSVDownloader } from 'react-papaparse'\nimport type { SyntheticEvent } from 'react'\nimport { useMemo, type ReactElement } from 'react'\n\nimport ModalDialog from '@/components/common/ModalDialog'\nimport { type AddressBookState, selectAllAddressBooks } from '@/store/addressBookSlice'\nimport { useAppSelector } from '@/store'\nimport ExternalLink from '@/components/common/ExternalLink'\nimport { HelpCenterArticle } from '@/config/constants'\nimport madProps from '@/utils/mad-props'\n\nconst COL_1 = 'address'\nconst COL_2 = 'name'\nconst COL_3 = 'chainId'\n\ntype CsvData = { [COL_1]: string; [COL_2]: string; [COL_3]: string }[]\n\nexport const _getCsvData = (addressBooks: AddressBookState): CsvData => {\n const csvData = Object.entries(addressBooks).reduce((acc, [chainId, entries]) => {\n Object.entries(entries).forEach(([address, name]) => {\n acc.push({\n [COL_1]: address,\n [COL_2]: name,\n [COL_3]: chainId,\n })\n })\n\n return acc\n }, [])\n\n return csvData\n}\n\nfunction ExportDialog({\n allAddressBooks,\n handleClose,\n}: {\n allAddressBooks: AddressBookState\n handleClose: () => void\n}): ReactElement {\n const length = Object.values(allAddressBooks).reduce((acc, entries) => acc + Object.keys(entries).length, 0)\n const { CSVDownloader } = useCSVDownloader()\n // safe-address-book-1970-01-01\n const filename = `safe-address-book-${new Date().toISOString().slice(0, 10)}`\n\n const csvData = useMemo(() => _getCsvData(allAddressBooks), [allAddressBooks])\n\n const onSubmit = (e: SyntheticEvent) => {\n e.preventDefault()\n\n setTimeout(() => {\n handleClose()\n }, 300)\n }\n\n return (\n \n \n \n You're about to export a CSV file with{' '}\n \n {length} address book {length === 1 ? 'entry' : 'entries'}\n \n .\n \n\n \n \n Learn about the address book import and export\n \n \n \n\n \n \n \n \n \n \n \n )\n}\n\nconst useAllAddressBooks = () => useAppSelector(selectAllAddressBooks)\n\nexport default madProps(ExportDialog, {\n allAddressBooks: useAllAddressBooks,\n})\n","import type { ParseResult } from 'papaparse'\n\nimport { validateAddress } from '@/utils/validation'\n\nexport const abCsvReaderValidator = ({ size }: File): string[] | undefined => {\n if (size > 1_000_000) {\n return ['Address book cannot be larger than 1MB']\n }\n}\n\nexport const hasValidAbHeader = (header: string[]) => {\n return header.length === 3 && header[0] === 'address' && header[1] === 'name' && header[2] === 'chainId'\n}\n\nexport const hasValidAbEntryAddresses = (entries: string[][]) => {\n return entries.every((entry) => entry.length >= 1 && !validateAddress(entry[0]))\n}\n\nexport const hasValidAbNames = (entries: string[][]) => {\n return entries.every((entry) => entry.length >= 2 && !!entry[1])\n}\n\nexport const abOnUploadValidator = ({ data, errors }: ParseResult): string | undefined => {\n const [header, ...entries] = data\n\n // papaparse error\n if (errors.length > 0) {\n return errors[0].message\n }\n\n // Empty CSV\n if (data.length === 0) {\n return 'CSV file is empty'\n }\n\n // Wrong header\n if (!hasValidAbHeader(header)) {\n return 'Invalid or corrupt address book header'\n }\n\n // No entries\n if (entries.length === 0) {\n return 'No entries found in address book'\n }\n\n // We + 2 to each row to make up for header and index\n\n // An entry has invalid address\n if (!hasValidAbEntryAddresses(entries)) {\n const i = entries.findIndex((entry) => (entry.length >= 1 ? validateAddress(entry[0]) : true))\n return `Address book contains an invalid address on row ${i + 2}`\n }\n\n // An entry has invalid name\n if (!hasValidAbNames(entries)) {\n const i = entries.findIndex((entry) => (entry.length >= 2 ? !entry[1] : true))\n return `Address book contains an invalid name on row ${i + 2}`\n }\n}\n","import DialogContent from '@mui/material/DialogContent'\nimport DialogActions from '@mui/material/DialogActions'\nimport Button from '@mui/material/Button'\nimport Typography from '@mui/material/Typography'\nimport { useCSVReader, formatFileSize } from 'react-papaparse'\nimport type { ParseResult } from 'papaparse'\nimport { type ReactElement, useState, type MouseEvent, useMemo } from 'react'\n\nimport ModalDialog from '@/components/common/ModalDialog'\nimport { upsertAddressBookEntry } from '@/store/addressBookSlice'\nimport { useAppDispatch } from '@/store'\n\nimport css from './styles.module.css'\nimport { abCsvReaderValidator, abOnUploadValidator } from './validation'\nimport ErrorMessage from '@/components/tx/ErrorMessage'\nimport { Errors, logError } from '@/services/exceptions'\nimport FileUpload, { FileTypes, type FileInfo } from '@/components/common/FileUpload'\nimport ExternalLink from '@/components/common/ExternalLink'\nimport { HelpCenterArticle } from '@/config/constants'\n\ntype AddressBookCSVRow = ['address', 'name', 'chainId']\n\n// https://react-papaparse.js.org/docs#errors\ntype PapaparseErrorType = {\n type: 'Quotes' | 'Delimiter' | 'FieldMismatch'\n code: 'MissingQuotes' | 'UndetectableDelimiter' | 'TooFewFields' | 'TooManyFields'\n message: string\n row?: number\n index?: number\n}\n\nconst hasEntry = (entry: string[]) => {\n return entry.length === 3 && entry[0] && entry[1] && entry[2]\n}\n\nconst ImportDialog = ({ handleClose }: { handleClose: () => void }): ReactElement => {\n const [zoneHover, setZoneHover] = useState(false)\n const [csvData, setCsvData] = useState>()\n const [error, setError] = useState()\n\n // Count how many entries are in the CSV file\n const [entryCount, chainCount] = useMemo(() => {\n if (!csvData) return [0, 0]\n const entries = csvData.data.slice(1).filter(hasEntry)\n const entryLen = entries.length\n const chainLen = new Set(entries.map((entry) => entry[2].trim())).size\n return [entryLen, chainLen]\n }, [csvData])\n\n const dispatch = useAppDispatch()\n const { CSVReader } = useCSVReader()\n\n const handleImport = () => {\n if (!csvData) {\n return\n }\n\n const [, ...entries] = csvData.data\n\n for (const entry of entries) {\n const [address, name, chainId] = entry\n dispatch(upsertAddressBookEntry({ address, name, chainId: chainId.trim() }))\n }\n\n handleClose()\n }\n\n return (\n \n \n {\n setZoneHover(true)\n }}\n onDragLeave={() => {\n setZoneHover(false)\n }}\n validator={abCsvReaderValidator}\n onUploadRejected={(result: { file: File; errors?: Array }[]) => {\n setZoneHover(false)\n setError(undefined)\n\n // csvReaderValidator error\n const error = result?.[0].errors?.pop()\n\n if (error) {\n const errorDescription = typeof error === 'string' ? error.toString() : error.message\n setError(errorDescription)\n logError(Errors._703, errorDescription)\n }\n }}\n onUploadAccepted={(result: ParseResult<['address', 'name', 'chainId']>) => {\n setZoneHover(false)\n setError(undefined)\n\n // Remove empty rows\n const cleanResult = {\n ...result,\n data: result.data.filter(hasEntry),\n }\n\n const message = abOnUploadValidator(cleanResult)\n\n if (message) {\n setError(message)\n } else {\n setCsvData(cleanResult)\n }\n }}\n >\n {/* https://github.com/Bunlong/react-papaparse/blob/master/src/useCSVReader.tsx */}\n {({ getRootProps, acceptedFile, ProgressBar, getRemoveFileProps, Remove }: any) => {\n const { onClick } = getRemoveFileProps()\n\n const onRemove = (e: MouseEvent) => {\n setCsvData(undefined)\n setError(undefined)\n onClick(e)\n }\n\n const fileInfo: FileInfo | undefined = acceptedFile\n ? {\n name: acceptedFile.name,\n additionalInfo: formatFileSize(acceptedFile.size),\n summary: [\n \n {`Found ${entryCount} entries on ${chainCount} ${chainCount > 1 ? 'chains' : 'chain'}`}\n ,\n ],\n }\n : undefined\n\n return (\n \n )\n }}\n \n\n
\n\n {error && {error}}\n\n \n Only CSV files exported from Eternal Safe can be imported.\n
\n \n Learn about the address book import and export\n \n
\n \n \n \n \n \n \n )\n}\n\nexport default ImportDialog\n","import DialogContent from '@mui/material/DialogContent'\nimport DialogActions from '@mui/material/DialogActions'\nimport Typography from '@mui/material/Typography'\nimport Button from '@mui/material/Button'\nimport type { ReactElement } from 'react'\n\nimport ModalDialog from '@/components/common/ModalDialog'\nimport { useAppDispatch } from '@/store'\nimport { removeAddressBookEntry } from '@/store/addressBookSlice'\nimport useChainId from '@/hooks/useChainId'\nimport useAddressBook from '@/hooks/useAddressBook'\n\nconst RemoveDialog = ({ handleClose, address }: { handleClose: () => void; address: string }): ReactElement => {\n const dispatch = useAppDispatch()\n const chainId = useChainId()\n const addressBook = useAddressBook()\n\n const name = addressBook?.[address]\n\n const handleConfirm = () => {\n dispatch(removeAddressBookEntry({ chainId, address }))\n handleClose()\n }\n\n return (\n \n \n \n Are you sure you want to permanently delete {name} from your address book?\n \n \n\n \n \n \n \n \n )\n}\n\nexport default RemoveDialog\n","var _path;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nvar SvgSearch = function SvgSearch(_ref) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M4.0004 9.9999C4.0004 6.6909 6.6914 3.9999 10.0004 3.9999C13.3084 3.9999 16.0004 6.6909 16.0004 9.9999C16.0004 13.3089 13.3084 15.9999 10.0004 15.9999C6.6914 15.9999 4.0004 13.3089 4.0004 9.9999M21.7054 20.2929L16.3134 14.9009C17.3664 13.5469 18.0004 11.8489 18.0004 9.9999C18.0004 5.5819 14.4184 1.9999 10.0004 1.9999C5.5814 1.9999 2.0004 5.5819 2.0004 9.9999C2.0004 14.4179 5.5814 17.9999 10.0004 17.9999C11.8484 17.9999 13.5454 17.3669 14.8984 16.3149L20.2914 21.7069C20.6804 22.0959 21.3164 22.0959 21.7054 21.7069C22.0944 21.3179 22.0944 20.6819 21.7054 20.2929\"\n })));\n};\nexport default SvgSearch;","var _path, _path2;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nvar SvgAddOutlined = function SvgAddOutlined(_ref) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 24,\n height: 24,\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM4 12C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12Z\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M13 11H16C16.5523 11 17 11.4477 17 12C17 12.5523 16.5523 13 16 13H13V16C13 16.5523 12.5523 17 12 17C11.4477 17 11 16.5523 11 16V13H8C7.44772 13 7 12.5523 7 12C7 11.4477 7.44772 11 8 11H11V8C11 7.44772 11.4477 7 12 7C12.5523 7 13 7.44772 13 8V11Z\"\n })));\n};\nexport default SvgAddOutlined;","import { Button, SvgIcon, Grid } from '@mui/material'\nimport type { ReactElement, ElementType } from 'react'\nimport InputAdornment from '@mui/material/InputAdornment'\nimport SearchIcon from '@/public/images/common/search.svg'\nimport TextField from '@mui/material/TextField'\n\nimport PageHeader from '@/components/common/PageHeader'\nimport { ModalType } from '../AddressBookTable'\nimport { useAppSelector } from '@/store'\nimport { type AddressBookState, selectAllAddressBooks } from '@/store/addressBookSlice'\nimport ImportIcon from '@/public/images/common/import.svg'\nimport ExportIcon from '@/public/images/common/export.svg'\nimport AddCircleIcon from '@/public/images/common/add-outlined.svg'\nimport mapProps from '@/utils/mad-props'\n\nconst HeaderButton = ({\n icon,\n onClick,\n disabled,\n children,\n}: {\n icon: ElementType\n onClick: () => void\n disabled?: boolean\n children: string\n}): ReactElement => {\n const svg = \n\n return (\n \n )\n}\n\ntype Props = {\n allAddressBooks: AddressBookState\n handleOpenModal: (type: ModalType) => () => void\n searchQuery: string\n onSearchQueryChange: (searchQuery: string) => void\n}\n\nfunction AddressBookHeader({\n allAddressBooks,\n handleOpenModal,\n searchQuery,\n onSearchQueryChange,\n}: Props): ReactElement {\n const canExport = Object.values(allAddressBooks).some((addressBook) => Object.keys(addressBook || {}).length > 0)\n\n return (\n \n \n {\n onSearchQueryChange(e.target.value)\n }}\n InputProps={{\n startAdornment: (\n \n \n \n ),\n disableUnderline: true,\n }}\n fullWidth\n size=\"small\"\n />\n \n \n \n Import\n \n\n \n Export\n \n\n \n Create entry\n \n \n \n }\n />\n )\n}\n\nconst useAllAddressBooks = () => useAppSelector(selectAllAddressBooks)\n\nexport default mapProps(AddressBookHeader, {\n allAddressBooks: useAllAddressBooks,\n})\n","var _path, _path2, _path3, _path4, _path5, _path6, _path7, _path8, _circle, _g, _path9, _path10, _circle2, _line, _defs;\nvar _excluded = [\"title\", \"titleId\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\nimport * as React from \"react\";\nvar SvgNoEntries = function SvgNoEntries(_ref) {\n var title = _ref.title,\n titleId = _ref.titleId,\n props = _objectWithoutProperties(_ref, _excluded);\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 136,\n height: 110,\n viewBox: \"0 0 136 110\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n \"aria-labelledby\": titleId\n }, props), title ? /*#__PURE__*/React.createElement(\"title\", {\n id: titleId\n }, title) : null, /*#__PURE__*/React.createElement(\"g\", {\n clipPath: \"url(#clip0_876_38488)\"\n }, _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n className: \"illustration-background-fill\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M68 5C95.6141 5 118 27.3859 118 55C118 82.613 95.6141 105 68 105C40.387 105 18 82.613 18 55C18 27.3859 40.387 5 68 5Z\",\n fill: \"#303033\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n className: \"illustration-light-fill\",\n d: \"M30.2815 80.743V51.1812C40.8615 50.3099 46.9294 54.9672 48.6409 57.4047V88.0556C44.4089 80.8363 34.638 80.1725 30.2815 80.743Z\",\n fill: \"#636669\"\n })), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n className: \"illustration-light-fill\",\n d: \"M68.2449 80.743V51.1812C57.6649 50.3099 51.597 54.9672 49.8855 57.4047V88.0556C54.1175 80.8363 63.8884 80.1725 68.2449 80.743Z\",\n fill: \"#636669\"\n })), _path4 || (_path4 = /*#__PURE__*/React.createElement(\"path\", {\n className: \"illustration-light-fill\",\n d: \"M26.9536 85.289C36.7245 83.7331 44.1461 85.9373 46.6355 87.2339C41.9679 82.0683 32.9697 81.6068 29.0541 82.0217V54.4048H26.9536V85.289Z\",\n fill: \"#636669\"\n })), _path5 || (_path5 = /*#__PURE__*/React.createElement(\"path\", {\n className: \"illustration-light-fill\",\n d: \"M23.6731 89.4213C29.3987 87.1808 42.6155 88.9026 47.6721 89.4213C45.0583 86.5584 31.7729 86.1128 25.8087 86.6055V57.1993H23.6731L23.6731 89.4213Z\",\n fill: \"#636669\"\n })), _path6 || (_path6 = /*#__PURE__*/React.createElement(\"path\", {\n className: \"illustration-light-fill\",\n d: \"M71.8828 85.289C62.1119 83.7331 54.6903 85.9373 52.2009 87.2339C56.8686 82.0683 65.8667 81.6068 69.7824 82.0217V54.4048H71.8828V85.289Z\",\n fill: \"#636669\"\n })), _path7 || (_path7 = /*#__PURE__*/React.createElement(\"path\", {\n className: \"illustration-light-fill\",\n d: \"M75.1633 89.4213C69.4377 87.1808 56.2209 88.9026 51.1643 89.4213C53.7782 86.5584 67.0635 86.1128 73.0277 86.6055V57.1993H75.1633L75.1633 89.4213Z\",\n fill: \"#636669\"\n })), _path8 || (_path8 = /*#__PURE__*/React.createElement(\"path\", {\n className: \"illustration-light-fill\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M110.783 38.7429L107.813 34.1143L112.345 31.5843L115.218 36.0633C115.225 36.074 115.175 36.206 115.184 36.2171L110.783 38.7429ZM90.5244 50.2634L86.6445 49.3201L87.5475 45.606L105.192 35.5812L108.178 40.2348L90.5244 50.2634ZM118.241 36.8267C118.422 36.0363 118.268 35.2274 117.83 34.5853L114.978 30.1398C114.561 29.447 113.852 28.931 113.031 28.7207L112.99 28.7109C112.165 28.5102 111.288 28.6303 110.582 29.0364L85.381 43.3908C85.0349 43.5873 84.7864 43.9111 84.6948 44.288L83.3039 50.0087C83.1134 50.7923 83.629 51.5885 84.4574 51.7899L90.454 53.2479C90.851 53.3445 91.2658 53.2892 91.6104 53.0923L116.822 38.733C117.542 38.3167 118.06 37.6217 118.241 36.8267Z\",\n fill: \"#636669\"\n })), /*#__PURE__*/React.createElement(\"mask\", {\n id: \"mask0_876_38488\",\n style: {\n maskType: \"alpha\"\n },\n maskUnits: \"userSpaceOnUse\",\n x: 32,\n y: 19,\n width: 25,\n height: 25\n }, _circle || (_circle = /*#__PURE__*/React.createElement(\"circle\", {\n cx: 44.5229,\n cy: 31.5222,\n r: 12,\n fill: \"white\"\n }))), _g || (_g = /*#__PURE__*/React.createElement(\"g\", {\n mask: \"url(#mask0_876_38488)\"\n }, /*#__PURE__*/React.createElement(\"circle\", {\n className: \"illustration-main-fill\",\n cx: 44.5229,\n cy: 31.5222,\n r: 12,\n fill: \"#12FF80\"\n }), /*#__PURE__*/React.createElement(\"rect\", {\n x: 50.4651,\n y: 34.5569,\n width: 3.06224,\n height: 2.86144,\n fill: \"#636669\"\n }), /*#__PURE__*/React.createElement(\"rect\", {\n x: 47.6907,\n y: 34.5569,\n width: 5.83637,\n height: 2.86144,\n fill: \"#636669\"\n }), /*#__PURE__*/React.createElement(\"rect\", {\n x: 47.6907,\n y: 34.5569,\n width: 5.83637,\n height: 2.86144,\n fill: \"#636669\"\n }), /*#__PURE__*/React.createElement(\"rect\", {\n x: 25.7788,\n y: 22.5658,\n width: 15.6816,\n height: 2.86144,\n fill: \"#636669\"\n }), /*#__PURE__*/React.createElement(\"rect\", {\n x: 47.4028,\n y: 22.5658,\n width: 11.5978,\n height: 2.86144,\n fill: \"#636669\"\n }), /*#__PURE__*/React.createElement(\"rect\", {\n x: 29.4863,\n y: 25.4272,\n width: 6.08595,\n height: 3.2335,\n fill: \"#636669\"\n }), /*#__PURE__*/React.createElement(\"rect\", {\n x: 35.572,\n y: 37.4183,\n width: 2.7736,\n height: 4.93624,\n fill: \"#636669\"\n }), /*#__PURE__*/React.createElement(\"rect\", {\n x: 50.4373,\n y: 37.4183,\n width: 3.05155,\n height: 3.2335,\n fill: \"#636669\"\n }), /*#__PURE__*/React.createElement(\"rect\", {\n x: 38.3457,\n y: 40.3223,\n width: 17.3977,\n height: 3.2335,\n fill: \"#636669\"\n }), /*#__PURE__*/React.createElement(\"rect\", {\n x: 53.5273,\n y: 25.4272,\n width: 6.08595,\n height: 3.2335,\n fill: \"#636669\"\n }), /*#__PURE__*/React.createElement(\"rect\", {\n x: 32.5288,\n y: 28.6606,\n width: 6.08595,\n height: 2.86144,\n fill: \"#636669\"\n }), /*#__PURE__*/React.createElement(\"rect\", {\n x: 50.6086,\n y: 28.6606,\n width: 6.08595,\n height: 2.86144,\n fill: \"#636669\"\n }), /*#__PURE__*/React.createElement(\"rect\", {\n x: 41.605,\n y: 28.6606,\n width: 5.83637,\n height: 2.86144,\n fill: \"#636669\"\n }), /*#__PURE__*/React.createElement(\"rect\", {\n x: 41.4607,\n y: 37.4183,\n width: 5.94189,\n height: 2.90381,\n fill: \"#636669\"\n }), /*#__PURE__*/React.createElement(\"rect\", {\n x: 35.572,\n y: 34.5569,\n width: 5.8886,\n height: 2.86144,\n fill: \"#636669\"\n }))), _path9 || (_path9 = /*#__PURE__*/React.createElement(\"path\", {\n className: \"illustration-light-fill\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M86.8302 23.7201C86.8302 30.3935 81.6068 35.8034 75.1635 35.8034C68.7202 35.8034 63.4968 30.3935 63.4968 23.7201C63.4968 17.0466 68.7202 11.6367 75.1635 11.6367C81.6068 11.6367 86.8302 17.0466 86.8302 23.7201ZM65.8302 23.7201C65.8302 29.0588 70.0088 33.3867 75.1635 33.3867C80.3182 33.3867 84.4968 29.0588 84.4968 23.7201C84.4968 18.3813 80.3182 14.0534 75.1635 14.0534C70.0088 14.0534 65.8302 18.3813 65.8302 23.7201Z\",\n fill: \"#636669\"\n })), _path10 || (_path10 = /*#__PURE__*/React.createElement(\"path\", {\n className: \"illustration-light-fill\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M76.3303 22.5118H79.8303C80.4747 22.5118 80.997 23.0528 80.997 23.7201C80.997 24.3875 80.4747 24.9285 79.8303 24.9285H76.3303V28.5535C76.3303 29.2208 75.808 29.7618 75.1637 29.7618C74.5193 29.7618 73.997 29.2208 73.997 28.5535V24.9285H70.497C69.8527 24.9285 69.3303 24.3875 69.3303 23.7201C69.3303 23.0528 69.8527 22.5118 70.497 22.5118H73.997V18.8868C73.997 18.2195 74.5193 17.6785 75.1637 17.6785C75.808 17.6785 76.3303 18.2195 76.3303 18.8868V22.5118Z\",\n fill: \"#636669\"\n })), _circle2 || (_circle2 = /*#__PURE__*/React.createElement(\"circle\", {\n className: \"illustration-background-fill illustration-light-stroke\",\n cx: 94.6408,\n cy: 75.1496,\n r: 9.17835,\n transform: \"rotate(-19.5258 94.6408 75.1496)\",\n stroke: \"#636669\",\n strokeWidth: 4\n })), _line || (_line = /*#__PURE__*/React.createElement(\"line\", {\n className: \"illustration-light-stroke\",\n x1: 106.212,\n y1: 78.9738,\n x2: 117.022,\n y2: 83.4472,\n stroke: \"#636669\",\n strokeWidth: 4,\n strokeLinecap: \"round\"\n }))), _defs || (_defs = /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"clipPath\", {\n id: \"clip0_876_38488\"\n }, /*#__PURE__*/React.createElement(\"rect\", {\n width: 136,\n height: 110,\n fill: \"white\"\n })))));\n};\nexport default SvgNoEntries;","import { useContext, useMemo, useState } from 'react'\nimport { Box } from '@mui/material'\nimport type { ChainInfo } from '@safe-global/safe-gateway-typescript-sdk'\n\nimport EnhancedTable from '@/components/common/EnhancedTable'\nimport type { AddressEntry } from '@/components/address-book/EntryDialog'\nimport EntryDialog from '@/components/address-book/EntryDialog'\nimport ExportDialog from '@/components/address-book/ExportDialog'\nimport ImportDialog from '@/components/address-book/ImportDialog'\nimport EditIcon from '@/public/images/common/edit.svg'\nimport DeleteIcon from '@/public/images/common/delete.svg'\nimport Button from '@mui/material/Button'\nimport IconButton from '@mui/material/IconButton'\nimport Tooltip from '@mui/material/Tooltip'\nimport RemoveDialog from '@/components/address-book/RemoveDialog'\nimport EthHashInfo from '@/components/common/EthHashInfo'\nimport AddressBookHeader from '../AddressBookHeader'\nimport useAddressBook from '@/hooks/useAddressBook'\nimport SvgIcon from '@mui/material/SvgIcon'\nimport PagePlaceholder from '@/components/common/PagePlaceholder'\nimport NoEntriesIcon from '@/public/images/address-book/no-entries.svg'\nimport { useCurrentChain } from '@/hooks/useChains'\nimport tableCss from '@/components/common/EnhancedTable/styles.module.css'\nimport { TxModalContext, type TxModalContextType } from '@/components/tx-flow'\nimport { TokenTransferFlow } from '@/components/tx-flow/flows'\nimport CheckWallet from '@/components/common/CheckWallet'\nimport madProps from '@/utils/mad-props'\n\nconst headCells = [\n { id: 'name', label: 'Name' },\n { id: 'address', label: 'Address' },\n { id: 'actions', label: '' },\n]\n\nexport enum ModalType {\n EXPORT = 'export',\n IMPORT = 'import',\n ENTRY = 'entry',\n REMOVE = 'remove',\n}\n\nconst defaultOpen = {\n [ModalType.EXPORT]: false,\n [ModalType.IMPORT]: false,\n [ModalType.ENTRY]: false,\n [ModalType.REMOVE]: false,\n}\n\ntype AddressBookTableProps = {\n chain?: ChainInfo\n setTxFlow: TxModalContextType['setTxFlow']\n}\n\nfunction AddressBookTable({ chain, setTxFlow }: AddressBookTableProps) {\n const [open, setOpen] = useState(defaultOpen)\n const [searchQuery, setSearchQuery] = useState('')\n const [defaultValues, setDefaultValues] = useState(undefined)\n\n const handleOpenModal = (type: keyof typeof open) => () => {\n setOpen((prev) => ({ ...prev, [type]: true }))\n }\n\n const handleOpenModalWithValues = (modal: ModalType, address: string, name: string) => {\n setDefaultValues({ address, name })\n handleOpenModal(modal)()\n }\n\n const handleClose = () => {\n setOpen(defaultOpen)\n setDefaultValues(undefined)\n }\n\n const addressBook = useAddressBook()\n const addressBookEntries = Object.entries(addressBook)\n const filteredEntries = useMemo(() => {\n if (!searchQuery) {\n return addressBookEntries\n }\n\n const query = searchQuery.toLowerCase()\n return addressBookEntries.filter(([address, name]) => {\n return address.toLowerCase().includes(query) || name.toLowerCase().includes(query)\n })\n }, [addressBookEntries, searchQuery])\n\n const rows = filteredEntries.map(([address, name]) => ({\n cells: {\n name: {\n rawValue: name,\n content: name,\n },\n address: {\n rawValue: address,\n content: ,\n },\n actions: {\n rawValue: '',\n sticky: true,\n content: (\n
\n \n handleOpenModalWithValues(ModalType.ENTRY, address, name)} size=\"small\">\n \n \n \n\n \n handleOpenModalWithValues(ModalType.REMOVE, address, name)} size=\"small\">\n \n \n \n\n \n {(isOk) => (\n setTxFlow()}\n disabled={!isOk}\n >\n Send\n \n )}\n \n
\n ),\n },\n },\n }))\n\n return (\n <>\n \n\n
\n {filteredEntries.length > 0 ? (\n \n ) : (\n \n }\n text={`No entries found${chain ? ` on ${chain.chainName}` : ''}`}\n />\n \n )}\n
\n\n {open[ModalType.EXPORT] && }\n\n {open[ModalType.IMPORT] && }\n\n {open[ModalType.ENTRY] && (\n \n )}\n\n {open[ModalType.REMOVE] && }\n \n )\n}\n\nconst useSetTxFlow = () => useContext(TxModalContext).setTxFlow\n\nexport default madProps(AddressBookTable, {\n chain: useCurrentChain,\n setTxFlow: useSetTxFlow,\n})\n","import type { NextPage } from 'next'\nimport Head from 'next/head'\nimport AddressBookTable from '@/components/address-book/AddressBookTable'\n\nconst AddressBook: NextPage = () => {\n return (\n <>\n \n {'Eternal Safe – Address book'}\n \n\n \n \n )\n}\n\nexport default AddressBook\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"horizontalDivider\":\"styles_horizontalDivider__CpGcY\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"tableCell\":\"styles_tableCell___4sMa\",\"collapsedCell\":\"styles_collapsedCell__M_3f8\",\"collapsedRow\":\"styles_collapsedRow__Zwb1R\",\"actions\":\"styles_actions__ZIRNt\",\"mobileColumn\":\"styles_mobileColumn__ubx77\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__sGid8\",\"title\":\"styles_title___s0jt\",\"border\":\"styles_border__BkX1U\",\"pageHeader\":\"styles_pageHeader__fRL7d\",\"actionsWrapper\":\"styles_actionsWrapper__g_Tq2\",\"navWrapper\":\"styles_navWrapper__XNqgs\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"styles_container__dNnqe\",\"error\":\"styles_error__s_zwE\",\"warning\":\"styles_warning__YdPx6\",\"info\":\"styles_info__tDwUU\",\"message\":\"styles_message__jVdC3\",\"details\":\"styles_details__CenK1\"};"],"names":["__webpack_exports__","Z","_utils_createSvgIcon__WEBPACK_IMPORTED_MODULE_2__","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__","jsx","d","window","__NEXT_P","push","__webpack_require__","descendingComparator","a","b","orderBy","cells","rawValue","EnhancedTableHead","props","headCells","order","onRequestSort","createSortHandler","property","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","TableHead","TableRow","map","TableCell","align","padding","sortDirection","headCell","id","sx","width","undefined","className","classNames","sticky","label","Fragment","jsxs","TableSortLabel","active","direction","onClick","Box","component","visuallyHidden","pageSizes","param","rows","mobileVariant","children","setOrder","useState","setOrderBy","page","setPage","rowsPerPage","setRowsPerPage","orderedRows","slice","sort","pagedRows","TableContainer","Paper","mb","Table","aria-labelledby","css","isAsc","TableBody","length","row","index","tabIndex","selected","collapsed","Object","entries","key","cell","Collapse","in","enter","content","TablePagination","rowsPerPageOptions","count","onPageChange","_","newPage","onRowsPerPageChange","parseInt","event","target","value","title","action","noBorder","Typography","variant","error","level","showDetails","setShowDetails","div","SvgIcon","InfoIcon","WarningIcon","inheritViewBox","fontSize","color","palette","concat","main","Link","e","preventDefault","prev","display","reason","message","ModalType","_path","add_outlined_path","_path2","no_entries_path","no_entries_path2","_path3","_path4","_path5","_path6","_path7","_path8","_circle","_g","_path9","_path10","_circle2","_line","_defs","_getCsvData","csvData","addressBooks","reduce","acc","chainId","forEach","address","name","address_book_ExportDialog","madProps","allAddressBooks","handleClose","values","keys","CSVDownloader","useCSVDownloader","filename","Date","toISOString","useMemo","jsx_runtime","ModalDialog","open","onClose","dialogTitle","hideChainIndicator","DialogContent","p","mt","ExternalLink","href","HelpCenterArticle","ADDRESS_BOOK_DATA","DialogActions","Button","bom","config","delimiter","data","style","disableElevation","setTimeout","useAppSelector","selectAllAddressBooks","abCsvReaderValidator","size","hasValidAbHeader","header","hasValidAbEntryAddresses","every","entry","validateAddress","hasValidAbNames","abOnUploadValidator","errors","i","findIndex","hasEntry","address_book_ImportDialog","zoneHover","setZoneHover","setCsvData","setError","entryCount","chainCount","filter","entryLen","chainLen","Set","trim","dispatch","useAppDispatch","CSVReader","useCSVReader","accept","multiple","onDragOver","onDragLeave","validator","onUploadRejected","result","pop","errorDescription","toString","logError","Errors","_703","onUploadAccepted","cleanResult","getRootProps","acceptedFile","ProgressBar","getRemoveFileProps","Remove","fileInfo","additionalInfo","formatFileSize","summary","FileUpload","fileType","FileTypes","CSV","isDragActive","onRemove","ErrorMessage","br","upsertAddressBookEntry","disabled","address_book_RemoveDialog","useChainId","addressBook","useAddressBook","removeAddressBookEntry","_excluded","_extends","assign","bind","arguments","source","prototype","hasOwnProperty","call","apply","search","_ref","titleId","_objectWithoutProperties","excluded","_objectWithoutPropertiesLoose","sourceKeys","indexOf","getOwnPropertySymbols","sourceSymbolKeys","propertyIsEnumerable","react","createElement","height","viewBox","fill","xmlns","fillRule","clipRule","add_outlined_excluded","add_outlined_extends","add_outlined","add_outlined_objectWithoutProperties","add_outlined_objectWithoutPropertiesLoose","HeaderButton","icon","svg","startIcon","address_book_AddressBookHeader","mapProps","handleOpenModal","searchQuery","onSearchQueryChange","canExport","some","PageHeader","Grid","container","pb","spacing","item","xs","md","xl","TextField","placeholder","hiddenLabel","onChange","InputProps","startAdornment","InputAdornment","position","SearchIcon","disableUnderline","fullWidth","justifyContent","alignItems","IMPORT","ImportIcon","EXPORT","ExportIcon","ENTRY","AddCircleIcon","no_entries_excluded","no_entries_extends","no_entries","no_entries_objectWithoutProperties","no_entries_objectWithoutPropertiesLoose","clipPath","maskType","maskUnits","x","y","cx","cy","r","mask","transform","stroke","strokeWidth","x1","y1","x2","y2","strokeLinecap","defaultOpen","address_book_AddressBookTable","chain","setTxFlow","setOpen","setSearchQuery","defaultValues","setDefaultValues","type","handleOpenModalWithValues","modal","addressBookEntries","filteredEntries","query","toLowerCase","includes","EthHashInfo","showName","shortAddress","hasExplorer","showCopyButton","actions","tableCss","Tooltip","placement","IconButton","EditIcon","DeleteIcon","CheckWallet","TokenTransferFlow","recipient","isOk","AddressBookHeader","EnhancedTable","bgcolor","borderRadius","PagePlaceholder","img","NoEntriesIcon","text","chainName","ExportDialog","ImportDialog","EntryDialog","disableAddressInput","Boolean","RemoveDialog","useCurrentChain","useContext","TxModalContext","address_book","Head","AddressBookTable","module","exports"],"sourceRoot":""}