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_E/./node_modules/@mui/icons-material/CheckCircle.js","webpack://_N_E/?2c1f","webpack://_N_E/./src/components/common/EnhancedTable/index.tsx","webpack://_N_E/./src/components/common/NavTabs/index.tsx","webpack://_N_E/./src/components/common/PageHeader/index.tsx","webpack://_N_E/./src/components/settings/SettingsHeader/index.tsx","webpack://_N_E/./src/components/settings/ContractVersion/index.tsx","webpack://_N_E/./src/components/settings/owner/EditOwnerDialog/index.tsx","webpack://_N_E/./public/images/settings/setup/replace-owner.svg","webpack://_N_E/./src/components/settings/owner/OwnerList/index.tsx","webpack://_N_E/./src/components/settings/RequiredConfirmations/index.tsx","webpack://_N_E/./src/pages/settings/setup.tsx","webpack://_N_E/./src/components/common/EnhancedTable/styles.module.css","webpack://_N_E/./src/components/common/NavTabs/styles.module.css","webpack://_N_E/./src/components/common/PageHeader/styles.module.css","webpack://_N_E/"],"sourcesContent":["\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z\"\n}), 'CheckCircle');\nexports.default = _default;","\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/settings/setup\",\n function () {\n return require(\"private-next-pages/settings/setup.tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/settings/setup\"])\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 React, { forwardRef } from 'react'\nimport NextLink, { type LinkProps as NextLinkProps } from 'next/link'\nimport { Tab, Tabs, Typography, type TabProps } from '@mui/material'\nimport { useRouter } from 'next/router'\nimport type { NavItem } from '@/components/sidebar/SidebarNavigation/config'\nimport css from './styles.module.css'\n\ntype Props = TabProps & NextLinkProps\n\n// This is needed in order for the tabs to work properly with Next Link e.g. tabbing with the keyboard\n// Based on https://github.com/mui/material-ui/blob/master/examples/nextjs-with-typescript/src/Link.tsx\nconst NextLinkComposed = forwardRef(function NextComposedLink(props: Props, ref) {\n const { href, as, replace, scroll, shallow, prefetch, legacyBehavior = true, locale, ...other } = props\n\n return (\n \n {/* @ts-ignore */}\n \n \n )\n})\n\nconst NavTabs = ({ tabs }: { tabs: NavItem[] }) => {\n const router = useRouter()\n const activeTab = Math.max(0, tabs.map((tab) => tab.href).indexOf(router.pathname))\n const query = router.query.safe ? { safe: router.query.safe } : undefined\n\n return (\n \n {tabs.map((tab, idx) => (\n \n {tab.label}\n \n }\n />\n ))}\n \n )\n}\n\nexport default NavTabs\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 } from 'react'\n\nimport NavTabs from '@/components/common/NavTabs'\nimport PageHeader from '@/components/common/PageHeader'\nimport { generalSettingsNavItems, settingsNavItems } from '@/components/sidebar/SidebarNavigation/config'\nimport css from '@/components/common/PageHeader/styles.module.css'\nimport useSafeAddress from '@/hooks/useSafeAddress'\n\nconst SettingsHeader = (): ReactElement => {\n const safeAddress = useSafeAddress()\n\n const navItems = safeAddress ? settingsNavItems : generalSettingsNavItems\n\n return (\n \n \n \n }\n />\n )\n}\n\nexport default SettingsHeader\n","import { Box, SvgIcon, Typography, Alert, AlertTitle, Skeleton, Link } from '@mui/material'\nimport { ImplementationVersionState } from '@safe-global/safe-gateway-typescript-sdk'\nimport { LATEST_SAFE_VERSION, REPO_LATEST_RELEASE_URL } from '@/config/constants'\nimport useSafeInfo from '@/hooks/useSafeInfo'\nimport CheckCircleIcon from '@mui/icons-material/CheckCircle'\nimport InfoIcon from '@/public/images/notifications/info.svg'\nimport { isValidSafeVersion } from '@/hooks/coreSDK/safeCoreSDK'\n\nexport const ContractVersion = () => {\n const { safe, safeLoaded } = useSafeInfo()\n\n const needsUpdate = safe.implementationVersionState === ImplementationVersionState.OUTDATED\n const unsupportedVersion = safe.version ? !isValidSafeVersion(safe.version) : true\n\n return (\n <>\n \n Contract version\n \n\n \n {safeLoaded ? (\n unsupportedVersion ? (\n `Unsupported contract ${safe.version ? `(${safe.version})` : ''}`\n ) : (\n safe.version\n )\n ) : (\n \n )}\n \n \n {safeLoaded ? (\n needsUpdate ? (\n }\n >\n \n This version of Eternal Safe works best with Safe version {LATEST_SAFE_VERSION}.\n \n\n \n Please use the official Safe{'{Wallet}'} app to update your Safe to {LATEST_SAFE_VERSION}.\n \n \n ) : unsupportedVersion ? (\n }\n >\n \n This version of Eternal Safe works best with {LATEST_SAFE_VERSION}.\n \n\n \n You appear to be using an unsupported version of Safe, which may cause issues using Eternal Safe. You\n can continue to use it at your own risk or{' '}\n \n check if there is a newer version of Eternal Safe\n \n .\n \n \n ) : (\n \n Latest version\n \n )\n ) : null}\n \n \n )\n}\n","import EthHashInfo from '@/components/common/EthHashInfo'\nimport ModalDialog from '@/components/common/ModalDialog'\nimport NameInput from '@/components/common/NameInput'\nimport { useAppDispatch } from '@/store'\nimport { upsertAddressBookEntry } from '@/store/addressBookSlice'\nimport EditIcon from '@/public/images/common/edit.svg'\nimport { Box, Button, DialogActions, DialogContent, IconButton, Tooltip, SvgIcon } from '@mui/material'\nimport { useState } from 'react'\nimport { FormProvider, useForm } from 'react-hook-form'\n\ntype EditOwnerValues = {\n name: string\n}\n\nexport const EditOwnerDialog = ({ chainId, address, name }: { chainId: string; address: string; name?: string }) => {\n const [open, setOpen] = useState(false)\n\n const dispatch = useAppDispatch()\n\n const handleClose = () => setOpen(false)\n\n const onSubmit = (data: EditOwnerValues) => {\n if (data.name !== name) {\n dispatch(\n upsertAddressBookEntry({\n chainId: chainId,\n address: address,\n name: data.name,\n }),\n )\n handleClose()\n }\n }\n\n const formMethods = useForm({\n defaultValues: {\n name: name || '',\n },\n mode: 'onChange',\n })\n\n const { handleSubmit, formState, watch } = formMethods\n\n const nameValue = watch('name')\n\n const buttonDisabled = !formState.isValid || nameValue === name || nameValue === ''\n\n return (\n <>\n \n \n setOpen(true)} size=\"small\">\n \n \n \n \n\n \n \n
\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n
\n
\n
\n \n )\n}\n","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 SvgReplaceOwner = function SvgReplaceOwner(_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: \"M16.3615 16.7891L13.0765 15.4921C12.5635 15.2881 11.9805 15.5411 11.7795 16.0551C11.5765 16.5681 11.8285 17.1491 12.3415 17.3511L13.5075 17.8121C12.8325 18.0471 12.1215 18.1821 11.3975 18.1821H11.3825C9.1135 18.1771 6.9925 16.9541 5.8455 14.9911C5.5685 14.5151 4.9555 14.3531 4.4785 14.6321C4.0015 14.9101 3.8405 15.5221 4.1195 15.9991C5.6215 18.5721 8.4025 20.1751 11.3795 20.1821H11.3975C12.3535 20.1821 13.2945 20.0031 14.1875 19.6891L13.8275 20.6501C13.6335 21.1671 13.8955 21.7431 14.4135 21.9371C14.5285 21.9801 14.6465 22.0011 14.7635 22.0011C15.1685 22.0011 15.5495 21.7541 15.7005 21.3511L16.9305 18.0691C17.1225 17.5591 16.8695 16.9891 16.3615 16.7891Z\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M15.7932 5.6817C16.4722 5.6817 17.0232 6.2337 17.0232 6.9117C17.0232 7.5897 16.4722 8.1417 15.7932 8.1417C15.1152 8.1417 14.5642 7.5897 14.5642 6.9117C14.5642 6.2337 15.1152 5.6817 15.7932 5.6817ZM8.2052 3.9997C8.8832 3.9997 9.4352 4.5517 9.4352 5.2297C9.4352 5.9087 8.8832 6.4597 8.2052 6.4597C7.5262 6.4597 6.9752 5.9087 6.9752 5.2297C6.9752 4.5517 7.5262 3.9997 8.2052 3.9997ZM20.9352 13.0067C20.3092 11.3387 19.1242 10.1007 17.7072 9.4987C18.5012 8.9107 19.0232 7.9737 19.0232 6.9117C19.0232 5.1307 17.5742 3.6817 15.7932 3.6817C14.0132 3.6817 12.5642 5.1307 12.5642 6.9117C12.5642 7.9737 13.0862 8.9107 13.8802 9.4987C13.4832 9.6667 13.1022 9.8727 12.7502 10.1377C12.0892 9.0677 11.1722 8.2637 10.1182 7.8177C10.9122 7.2287 11.4352 6.2917 11.4352 5.2297C11.4352 3.4497 9.9852 1.9997 8.2052 1.9997C6.4242 1.9997 4.9752 3.4497 4.9752 5.2297C4.9752 6.2917 5.4972 7.2287 6.2912 7.8177C4.8742 8.4177 3.6892 9.6577 3.0642 11.3257C2.8702 11.8427 3.1322 12.4187 3.6482 12.6137C4.1652 12.8037 4.7422 12.5457 4.9372 12.0287C5.5332 10.4377 6.8162 9.4097 8.2052 9.4097C9.4932 9.4097 10.6842 10.3007 11.3262 11.6987C11.0642 12.1007 10.8312 12.5327 10.6522 13.0077C10.4592 13.5247 10.7212 14.1007 11.2382 14.2947C11.3542 14.3377 11.4722 14.3587 11.5892 14.3587C11.9932 14.3587 12.3752 14.1117 12.5252 13.7087C13.1222 12.1187 14.4042 11.0907 15.7932 11.0907C17.1822 11.0907 18.4652 12.1187 19.0622 13.7097C19.2562 14.2277 19.8322 14.4867 20.3502 14.2947C20.8662 14.1007 21.1282 13.5247 20.9352 13.0067Z\"\n })));\n};\nexport default SvgReplaceOwner;","import { jsonToCSV } from 'react-papaparse'\nimport type { SafeInfo } from '@safe-global/safe-gateway-typescript-sdk'\nimport EthHashInfo from '@/components/common/EthHashInfo'\nimport { AddOwnerFlow, ReplaceOwnerFlow, RemoveOwnerFlow } from '@/components/tx-flow/flows'\nimport useAddressBook from '@/hooks/useAddressBook'\nimport useSafeInfo from '@/hooks/useSafeInfo'\nimport { Box, Grid, Typography, Button, SvgIcon, Tooltip, IconButton } from '@mui/material'\nimport { useContext, useMemo } from 'react'\nimport { EditOwnerDialog } from '../EditOwnerDialog'\nimport EnhancedTable from '@/components/common/EnhancedTable'\nimport AddIcon from '@/public/images/common/add.svg'\nimport CheckWallet from '@/components/common/CheckWallet'\nimport { TxModalContext } from '@/components/tx-flow'\nimport ReplaceOwnerIcon from '@/public/images/settings/setup/replace-owner.svg'\nimport DeleteIcon from '@/public/images/common/delete.svg'\nimport type { AddressBook } from '@/store/addressBookSlice'\n\nimport tableCss from '@/components/common/EnhancedTable/styles.module.css'\n\nconst headCells = [\n { id: 'owner', label: 'Name' },\n { id: 'actions', label: '', sticky: true },\n]\n\nexport const OwnerList = () => {\n const addressBook = useAddressBook()\n const { safe } = useSafeInfo()\n const { setTxFlow } = useContext(TxModalContext)\n\n const rows = useMemo(() => {\n const showRemoveOwnerButton = safe.owners.length > 1\n\n return safe.owners.map((owner) => {\n const address = owner.value\n const name = addressBook[address]\n\n return {\n cells: {\n owner: {\n rawValue: address,\n content: ,\n },\n actions: {\n rawValue: '',\n sticky: true,\n content: (\n
\n \n {(isOk) => (\n \n \n setTxFlow()}\n size=\"small\"\n disabled={!isOk}\n >\n \n \n \n \n )}\n \n\n \n\n {showRemoveOwnerButton && (\n \n {(isOk) => (\n \n \n setTxFlow()}\n size=\"small\"\n disabled={!isOk}\n >\n \n \n \n \n )}\n \n )}\n
\n ),\n },\n },\n }\n })\n }, [safe.owners, safe.chainId, addressBook, setTxFlow])\n\n return (\n \n \n \n \n Manage Safe Account owners\n \n \n\n \n \n Add, remove and replace or rename existing owners. Owner names are only stored locally and will never be\n shared with us or any third parties.\n \n\n \n\n \n \n {(isOk) => (\n setTxFlow()}\n variant=\"text\"\n startIcon={}\n disabled={!isOk}\n >\n Add new owner\n \n )}\n \n\n \n \n \n \n \n )\n}\n\nfunction exportOwners({ chainId, address, owners }: SafeInfo, addressBook: AddressBook) {\n const json = owners.map((owner) => {\n const address = owner.value\n const name = addressBook[address] || owner.name\n return [address, name]\n })\n\n const csv = jsonToCSV(json)\n const blob = new Blob([csv], { type: 'text/csv;charset=utf-8;' })\n const link = document.createElement('a')\n\n Object.assign(link, {\n download: `${chainId}-${address.value}-owners.csv`,\n href: window.URL.createObjectURL(blob),\n })\n\n link.click()\n}\n","import { Box, Button, Grid, Typography } from '@mui/material'\nimport { ChangeThresholdFlow } from '@/components/tx-flow/flows'\nimport CheckWallet from '@/components/common/CheckWallet'\nimport { useContext } from 'react'\nimport { TxModalContext } from '@/components/tx-flow'\n\nexport const RequiredConfirmation = ({ threshold, owners }: { threshold: number; owners: number }) => {\n const { setTxFlow } = useContext(TxModalContext)\n\n return (\n \n \n \n \n Required confirmations\n \n \n\n \n Any transaction requires the confirmation of:\n \n {threshold} out of {owners} owners.\n \n\n {owners > 1 && (\n \n \n {(isOk) => (\n \n )}\n \n \n )}\n \n \n \n )\n}\n","import type { NextPage } from 'next'\nimport Head from 'next/head'\nimport { Grid, Paper, Skeleton, SvgIcon, Tooltip, Typography } from '@mui/material'\nimport InfoIcon from '@/public/images/notifications/info.svg'\nimport { ContractVersion } from '@/components/settings/ContractVersion'\nimport { OwnerList } from '@/components/settings/owner/OwnerList'\nimport { RequiredConfirmation } from '@/components/settings/RequiredConfirmations'\nimport useSafeInfo from '@/hooks/useSafeInfo'\nimport SettingsHeader from '@/components/settings/SettingsHeader'\n\nconst Setup: NextPage = () => {\n const { safe, safeLoaded } = useSafeInfo()\n const nonce = safe.nonce\n const ownerLength = safe.owners.length\n const threshold = safe.threshold\n\n return (\n <>\n \n {'Eternal Safe – Settings – Setup'}\n \n\n \n\n
\n \n \n \n \n \n \n Safe Account nonce\n \n \n \n \n\n \n Current nonce:{' '}\n {safeLoaded ? {nonce} : }\n \n \n\n \n \n \n \n \n\n \n \n\n \n \n
\n \n )\n}\n\nexport default Setup\n","// 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 = {\"tabs\":\"styles_tabs__8AoqD\",\"tab\":\"styles_tab__WjqMe\",\"label\":\"styles_label__D53iN\"};","// 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\"};"],"names":["_interopRequireDefault","__webpack_require__","exports","Z","_createSvgIcon","_jsxRuntime","_default","default","jsx","d","window","__NEXT_P","push","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","__webpack_exports__","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","NextLinkComposed","forwardRef","ref","href","as","replace","scroll","shallow","prefetch","legacyBehavior","locale","other","NextLink","passHref","tabs","router","useRouter","activeTab","Math","max","tab","indexOf","pathname","query","safe","Tabs","variant","allowScrollButtonsMobile","idx","Tab","Typography","fontWeight","color","title","action","noBorder","safeAddress","useSafeAddress","navItems","settingsNavItems","generalSettingsNavItems","PageHeader","div","NavTabs","_path","_path2","ContractVersion","safeLoaded","useSafeInfo","needsUpdate","implementationVersionState","ImplementationVersionState","OUTDATED","unsupportedVersion","version","isValidSafeVersion","jsx_runtime","marginBottom","concat","Skeleton","mt","Alert","borderRadius","borderColor","icon","SvgIcon","InfoIcon","inheritViewBox","AlertTitle","LATEST_SAFE_VERSION","Link","REPO_LATEST_RELEASE_URL","rel","display","alignItems","CheckCircleIcon","mr","EditOwnerDialog","chainId","address","name","open","setOpen","dispatch","useAppDispatch","handleClose","formMethods","useForm","defaultValues","mode","handleSubmit","formState","watch","nameValue","buttonDisabled","isValid","Tooltip","span","IconButton","size","EditIcon","fontSize","ModalDialog","onClose","dialogTitle","FormProvider","form","onSubmit","data","upsertAddressBookEntry","DialogContent","py","NameInput","required","EthHashInfo","showCopyButton","shortAddress","DialogActions","Button","type","disabled","_excluded","_extends","assign","bind","i","arguments","source","prototype","hasOwnProperty","call","apply","replace_owner","_ref","titleId","_objectWithoutProperties","excluded","_objectWithoutPropertiesLoose","sourceKeys","keys","getOwnPropertySymbols","sourceSymbolKeys","propertyIsEnumerable","react","createElement","height","viewBox","fill","xmlns","fillRule","clipRule","OwnerList","addressBook","useAddressBook","setTxFlow","useContext","TxModalContext","useMemo","showRemoveOwnerButton","owners","owner","showName","hasExplorer","actions","tableCss","CheckWallet","isOk","ReplaceOwnerFlow","ReplaceOwnerIcon","RemoveOwnerFlow","DeleteIcon","flexDirection","gap","Grid","container","spacing","item","lg","xs","EnhancedTable","pt","justifyContent","data-testid","AddOwnerFlow","startIcon","AddIcon","exportOwners","json","csv","jsonToCSV","blob","Blob","link","document","download","URL","createObjectURL","click","RequiredConfirmation","threshold","marginTop","paddingTop","ChangeThresholdFlow","setup","nonce","ownerLength","Head","SettingsHeader","main","p","placement","verticalAlign","ml","module"],"sourceRoot":""}