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ElB,SAAU,CAAEvD,EAAc,GACtDY,EAAQ,GAIZ,EAAG,CAAEZ,EAAc,EAEnBtK,EAAAA,SAAe,CAAC,KACdQ,OAAOuN,UAAU,CAAC,KAChB9B,EAAU9L,OAAO,CAAG,EACtB,EAAG,EACL,EAAG,EAAE,EAEE,CAAE,GAAGqM,CAAW,CAAEqC,WAAAA,EAAYZ,eAAAA,EAAgBS,gBAAAA,CAAgB,CACvE","sources":["webpack://_N_E/./lib/hooks/useIsSticky.tsx","webpack://_N_E/./stubs/addressParams.ts","webpack://_N_E/./ui/shared/ActionBar.tsx","webpack://_N_E/./ui/shared/DataFetchAlert.tsx","webpack://_N_E/./ui/shared/Page/PageTitle.tsx","webpack://_N_E/./ui/shared/TheadSticky.tsx","webpack://_N_E/./ui/shared/pagination/Pagination.tsx","webpack://_N_E/./ui/shared/pagination/useQueryWithPages.ts"],"sourcesContent":["import throttle from 'lodash/throttle';\nimport React from 'react';\n\nexport default function useIsSticky(ref: React.RefObject, offset = 0, isEnabled = true) {\n const [ isSticky, setIsSticky ] = React.useState(false);\n\n const handleScroll = React.useCallback(() => {\n if (\n Number(ref.current?.getBoundingClientRect().y) < offset\n ) {\n setIsSticky(true);\n } else {\n setIsSticky(false);\n }\n }, [ ref, offset ]);\n\n React.useEffect(() => {\n if (!isEnabled) {\n return;\n }\n\n const throttledHandleScroll = throttle(handleScroll, 300);\n\n window.addEventListener('scroll', throttledHandleScroll);\n\n return () => {\n window.removeEventListener('scroll', throttledHandleScroll);\n };\n // replicate componentDidMount\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [ isEnabled ]);\n\n return isSticky;\n}\n","import type { AddressParam } from 'types/api/addressParams';\n\nexport const ADDRESS_HASH = '0x2B51Ae4412F79c3c1cB12AA40Ea4ECEb4e80511a';\n\nexport const ADDRESS_PARAMS: AddressParam = {\n hash: ADDRESS_HASH,\n implementations: null,\n is_contract: false,\n is_verified: null,\n name: null,\n private_tags: [],\n public_tags: [],\n watchlist_names: [],\n ens_domain_name: null,\n};\n","import { Flex, useColorModeValue, chakra } from '@chakra-ui/react';\nimport React from 'react';\n\nimport { useScrollDirection } from 'lib/contexts/scrollDirection';\nimport useIsSticky from 'lib/hooks/useIsSticky';\n\ntype Props = {\n children: React.ReactNode;\n className?: string;\n showShadow?: boolean;\n}\n\nconst TOP_UP = 106;\nconst TOP_DOWN = 0;\nexport const ACTION_BAR_HEIGHT_DESKTOP = 24 + 32 + 12;\nexport const ACTION_BAR_HEIGHT_MOBILE = 24 + 32 + 24;\n\nconst ActionBar = ({ children, className, showShadow }: Props) => {\n const ref = React.useRef(null);\n const scrollDirection = useScrollDirection();\n const isSticky = useIsSticky(ref, TOP_UP + 5);\n const bgColor = useColorModeValue('white', 'black');\n\n if (!React.Children.toArray(children).filter(Boolean).length) {\n return null;\n }\n\n return (\n \n { children }\n \n );\n};\n\nexport default chakra(ActionBar);\n","import { Alert, AlertDescription, chakra } from '@chakra-ui/react';\nimport React from 'react';\n\nconst DataFetchAlert = ({ className }: { className?: string }) => {\n return (\n \n \n Something went wrong. Try refreshing the page or come back later.\n \n \n );\n};\n\nexport default chakra(DataFetchAlert);\n","import { Heading, Flex, Tooltip, Link, chakra, Skeleton, useDisclosure } from '@chakra-ui/react';\nimport _debounce from 'lodash/debounce';\nimport React from 'react';\n\nimport useIsMobile from 'lib/hooks/useIsMobile';\nimport TextAd from 'ui/shared/ad/TextAd';\nimport IconSvg from 'ui/shared/IconSvg';\nimport LinkInternal from 'ui/shared/links/LinkInternal';\n\ntype BackLinkProp = { label: string; url: string } | { label: string; onClick: () => void };\n\ntype Props = {\n title: string;\n className?: string;\n backLink?: BackLinkProp;\n beforeTitle?: React.ReactNode;\n afterTitle?: React.ReactNode;\n contentAfter?: React.ReactNode;\n secondRow?: React.ReactNode;\n isLoading?: boolean;\n withTextAd?: boolean;\n}\n\nconst TEXT_MAX_LINES = 1;\n\nconst BackLink = (props: BackLinkProp & { isLoading?: boolean }) => {\n if (!props) {\n return null;\n }\n\n if (props.isLoading) {\n return (\n \n );\n }\n\n const icon = ;\n\n if ('url' in props) {\n return (\n \n \n { icon }\n \n \n );\n }\n\n return (\n \n \n { icon }\n \n \n );\n};\n\nconst PageTitle = ({ title, contentAfter, withTextAd, backLink, className, isLoading, afterTitle, beforeTitle, secondRow }: Props) => {\n const tooltip = useDisclosure();\n const isMobile = useIsMobile();\n const [ isTextTruncated, setIsTextTruncated ] = React.useState(false);\n\n const headingRef = React.useRef(null);\n const textRef = React.useRef(null);\n\n const updatedTruncateState = React.useCallback(() => {\n if (!headingRef.current || !textRef.current) {\n return;\n }\n\n const headingRect = headingRef.current.getBoundingClientRect();\n const textRect = textRef.current.getBoundingClientRect();\n if ((TEXT_MAX_LINES + 1) * headingRect.height <= textRect.height) {\n setIsTextTruncated(true);\n } else {\n setIsTextTruncated(false);\n }\n }, []);\n\n React.useEffect(() => {\n if (!isLoading) {\n updatedTruncateState();\n }\n }, [ isLoading, updatedTruncateState ]);\n\n React.useEffect(() => {\n const handleResize = _debounce(updatedTruncateState, 1000);\n window.addEventListener('resize', handleResize);\n\n return function cleanup() {\n window.removeEventListener('resize', handleResize);\n };\n }, [ updatedTruncateState ]);\n\n return (\n \n \n \n { backLink && }\n { beforeTitle }\n \n \n \n \n { title }\n \n \n \n \n { afterTitle }\n \n { contentAfter }\n { withTextAd && }\n \n { secondRow && (\n \n { secondRow }\n \n ) }\n \n );\n};\n\nexport default chakra(PageTitle);\n","import { Thead, useColorModeValue } from '@chakra-ui/react';\nimport type { TableHeadProps, PositionProps } from '@chakra-ui/react';\nimport throttle from 'lodash/throttle';\nimport React from 'react';\n\ninterface Props extends TableHeadProps {\n top?: number;\n children?: React.ReactNode;\n}\n\nconst TheadSticky = ({ top, children, ...restProps }: Props) => {\n const ref = React.useRef(null);\n const [ isSticky, setIsSticky ] = React.useState(false);\n\n const handleScroll = React.useCallback(() => {\n if (Number(ref.current?.getBoundingClientRect().y) <= (top || 0)) {\n setIsSticky(true);\n } else {\n setIsSticky(false);\n }\n }, [ top ]);\n\n React.useEffect(() => {\n const throttledHandleScroll = throttle(handleScroll, 300);\n\n window.addEventListener('scroll', throttledHandleScroll);\n\n return () => {\n window.removeEventListener('scroll', throttledHandleScroll);\n };\n }, [ handleScroll ]);\n\n const props = {\n ...restProps,\n position: 'sticky' as PositionProps['position'],\n top: `${ top }px` || 0,\n backgroundColor: useColorModeValue('white', 'black'),\n boxShadow: isSticky ? 'md' : 'none',\n zIndex: '1',\n };\n\n return (\n \n { children }\n \n );\n};\n\nexport default TheadSticky;\n","import { Button, Skeleton, Flex, IconButton, chakra } from '@chakra-ui/react';\nimport React from 'react';\n\nimport type { PaginationParams } from './types';\n\nimport IconSvg from 'ui/shared/IconSvg';\n\ninterface Props extends PaginationParams {\n className?: string;\n}\n\nconst Pagination = ({ page, onNextPageClick, onPrevPageClick, resetPage, hasPages, hasNextPage, className, canGoBackwards, isLoading, isVisible }: Props) => {\n\n if (!isVisible) {\n return null;\n }\n\n const showSkeleton = page === 1 && !hasPages && isLoading;\n\n return (\n \n \n \n First\n \n \n \n }\n isDisabled={ !canGoBackwards || isLoading }\n />\n \n \n \n { page }\n \n \n \n }\n isDisabled={ !hasNextPage || isLoading }\n />\n \n { /* not implemented yet */ }\n { /* \n Go to \n */ }\n \n\n );\n};\n\nexport default chakra(Pagination);\n","import type { UseQueryResult } from '@tanstack/react-query';\nimport { useQueryClient } from '@tanstack/react-query';\nimport omit from 'lodash/omit';\nimport { useRouter } from 'next/router';\nimport React, { useCallback } from 'react';\nimport { animateScroll } from 'react-scroll';\n\nimport type { PaginationParams } from './types';\n\nimport type { PaginatedResources, PaginationFilters, PaginationSorting, ResourceError, ResourcePayload } from 'lib/api/resources';\nimport { RESOURCES, SORTING_FIELDS } from 'lib/api/resources';\nimport type { Params as UseApiQueryParams } from 'lib/api/useApiQuery';\nimport useApiQuery from 'lib/api/useApiQuery';\nimport getQueryParamString from 'lib/router/getQueryParamString';\n\nexport interface Params {\n resourceName: Resource;\n options?: UseApiQueryParams['queryOptions'];\n pathParams?: UseApiQueryParams['pathParams'];\n filters?: PaginationFilters;\n sorting?: PaginationSorting;\n scrollRef?: React.RefObject;\n}\n\ntype NextPageParams = Record;\n\nconst INITIAL_PAGE_PARAMS = { '1': {} };\n\nfunction getPaginationParamsFromQuery(queryString: string | Array | undefined) {\n if (queryString) {\n try {\n return JSON.parse(decodeURIComponent(getQueryParamString(queryString))) as NextPageParams;\n } catch (error) {}\n }\n\n return {};\n}\n\nfunction getNextPageParams(data: ResourcePayload | undefined) {\n if (!data || typeof data !== 'object' || !('next_page_params' in data)) {\n return;\n }\n\n return data.next_page_params;\n}\n\nexport type QueryWithPagesResult =\nUseQueryResult, ResourceError> &\n{\n onFilterChange: (filters: PaginationFilters) => void;\n onSortingChange: (sorting?: PaginationSorting) => void;\n pagination: PaginationParams;\n}\n\nexport default function useQueryWithPages({\n resourceName,\n filters,\n sorting,\n options,\n pathParams,\n scrollRef,\n}: Params): QueryWithPagesResult {\n const resource = RESOURCES[resourceName];\n const queryClient = useQueryClient();\n const router = useRouter();\n\n const [ page, setPage ] = React.useState(router.query.page && !Array.isArray(router.query.page) ? Number(router.query.page) : 1);\n const [ pageParams, setPageParams ] = React.useState>({\n [page]: getPaginationParamsFromQuery(router.query.next_page_params),\n });\n const [ hasPages, setHasPages ] = React.useState(page > 1);\n\n const isMounted = React.useRef(false);\n const queryParams = { ...pageParams[page], ...filters, ...sorting };\n\n const scrollToTop = useCallback(() => {\n scrollRef?.current ? scrollRef.current.scrollIntoView(true) : animateScroll.scrollToTop({ duration: 0 });\n }, [ scrollRef ]);\n\n const queryResult = useApiQuery(resourceName, {\n pathParams,\n queryParams: Object.keys(queryParams).length ? queryParams : undefined,\n queryOptions: {\n staleTime: page === 1 ? 0 : Infinity,\n ...options,\n },\n });\n const { data } = queryResult;\n const nextPageParams = getNextPageParams(data);\n\n const onNextPageClick = useCallback(() => {\n if (!nextPageParams) {\n // we hide next page button if no next_page_params\n return;\n }\n\n setPageParams((prev) => ({\n ...prev,\n [page + 1]: nextPageParams as NextPageParams,\n }));\n setPage(prev => prev + 1);\n\n const nextPageQuery = {\n ...router.query,\n page: String(page + 1),\n next_page_params: encodeURIComponent(JSON.stringify(nextPageParams)),\n };\n\n setHasPages(true);\n scrollToTop();\n router.push({ pathname: router.pathname, query: nextPageQuery }, undefined, { shallow: true });\n }, [ nextPageParams, page, router, scrollToTop ]);\n\n const onPrevPageClick = useCallback(() => {\n // returning to the first page\n // we dont have pagination params for the first page\n let nextPageQuery: typeof router.query = { ...router.query };\n if (page === 2) {\n nextPageQuery = omit(router.query, [ 'next_page_params', 'page' ]);\n } else {\n nextPageQuery.next_page_params = encodeURIComponent(JSON.stringify(pageParams[page - 1]));\n nextPageQuery.page = String(page - 1);\n }\n\n scrollToTop();\n router.push({ pathname: router.pathname, query: nextPageQuery }, undefined, { shallow: true })\n .then(() => {\n setPage(prev => prev - 1);\n page === 2 && queryClient.removeQueries({ queryKey: [ resourceName ] });\n });\n }, [ router, page, pageParams, scrollToTop, queryClient, resourceName ]);\n\n const resetPage = useCallback(() => {\n queryClient.removeQueries({ queryKey: [ resourceName ] });\n\n scrollToTop();\n const nextRouterQuery = omit(router.query, [ 'next_page_params', 'page' ]);\n router.push({ pathname: router.pathname, query: nextRouterQuery }, undefined, { shallow: true }).then(() => {\n queryClient.removeQueries({ queryKey: [ resourceName ] });\n setPage(1);\n setPageParams(INITIAL_PAGE_PARAMS);\n window.setTimeout(() => {\n // FIXME after router is updated we still have inactive queries for previously visited page (e.g third), where we came from\n // so have to remove it but with some delay :)\n queryClient.removeQueries({ queryKey: [ resourceName ], type: 'inactive' });\n }, 100);\n });\n }, [ queryClient, resourceName, router, scrollToTop ]);\n\n const onFilterChange = useCallback((newFilters: PaginationFilters | undefined) => {\n const newQuery = omit(router.query, 'next_page_params', 'page', 'filterFields' in resource ? resource.filterFields : []);\n if (newFilters) {\n Object.entries(newFilters).forEach(([ key, value ]) => {\n const isValidValue = typeof value === 'boolean' || (value && value.length);\n if (isValidValue) {\n newQuery[key] = Array.isArray(value) ? value.join(',') : (String(value) || '');\n }\n });\n }\n scrollToTop();\n router.push(\n {\n pathname: router.pathname,\n query: newQuery,\n },\n undefined,\n { shallow: true },\n ).then(() => {\n setHasPages(false);\n setPage(1);\n setPageParams(INITIAL_PAGE_PARAMS);\n });\n }, [ router, resource, scrollToTop ]);\n\n const onSortingChange = useCallback((newSorting: PaginationSorting | undefined) => {\n const newQuery = {\n ...omit(router.query, 'next_page_params', 'page', SORTING_FIELDS),\n ...newSorting,\n };\n scrollToTop();\n router.push(\n {\n pathname: router.pathname,\n query: newQuery,\n },\n undefined,\n { shallow: true },\n ).then(() => {\n setHasPages(false);\n setPage(1);\n setPageParams(INITIAL_PAGE_PARAMS);\n });\n }, [ router, scrollToTop ]);\n\n const hasNextPage = nextPageParams ? Object.keys(nextPageParams).length > 0 : false;\n\n const pagination = {\n page,\n onNextPageClick,\n onPrevPageClick,\n resetPage,\n hasPages,\n hasNextPage,\n canGoBackwards: Boolean(pageParams[page - 1]),\n isLoading: queryResult.isPlaceholderData,\n isVisible: hasPages || hasNextPage,\n };\n\n React.useEffect(() => {\n if (page !== 1 && isMounted.current) {\n queryClient.cancelQueries({ queryKey: [ resourceName ] });\n setPage(1);\n }\n // hook should run only when queryName has changed\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [ resourceName ]);\n\n React.useEffect(() => {\n window.setTimeout(() => {\n isMounted.current = true;\n }, 0);\n }, []);\n\n return { ...queryResult, pagination, onFilterChange, onSortingChange };\n}\n"],"names":["useIsSticky","ref","offset","isEnabled","isSticky","setIsSticky","React","handleScroll","Number","current","getBoundingClientRect","y","throttledHandleScroll","throttle","window","addEventListener","removeEventListener","ADDRESS_HASH","ADDRESS_PARAMS","hash","implementations","is_contract","is_verified","name","private_tags","public_tags","watchlist_names","ens_domain_name","ACTION_BAR_HEIGHT_DESKTOP","__webpack_exports__","ZP","chakra","children","className","showShadow","param","scrollDirection","useScrollDirection","TOP_UP","bgColor","useColorModeValue","toArray","filter","Boolean","length","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","Flex","backgroundColor","pt","pb","base","lg","mx","px","justifyContent","width","position","top","concat","transitionProperty","transitionDuration","zIndex","boxShadow","Z","Alert","status","AlertDescription","BackLink","props","isLoading","Skeleton","boxSize","display","flexShrink","borderRadius","mr","my","verticalAlign","isLoaded","icon","IconSvg","transform","margin","color","Tooltip","label","LinkInternal","href","url","h","Link","onClick","title","contentAfter","withTextAd","backLink","afterTitle","beforeTitle","secondRow","tooltip","useDisclosure","isMobile","useIsMobile","isTextTruncated","setIsTextTruncated","headingRef","textRef","updatedTruncateState","headingRect","textRect","TEXT_MAX_LINES","height","handleResize","_debounce","jsxs","flexDir","rowGap","mb","flexWrap","columnGap","alignItems","maxW","overflow","isOpen","onClose","closeOnScroll","isDisabled","Heading","as","size","whiteSpace","wordBreak","style","WebkitLineClamp","WebkitBoxOrient","textOverflow","onMouseEnter","onOpen","onMouseLeave","onToggle","undefined","span","TextAd","order","ml","w","minH","_empty","restProps","Thead","page","onNextPageClick","onPrevPageClick","resetPage","hasPages","hasNextPage","canGoBackwards","isVisible","showSkeleton","fontSize","Button","variant","IconButton","aria-label","data-selected","borderWidth","fontWeight","minW","cursor","INITIAL_PAGE_PARAMS","useQueryWithPages","resourceName","filters","sorting","options","pathParams","scrollRef","resource","RESOURCES","queryClient","useQueryClient","router","useRouter","setPage","query","Array","isArray","pageParams","setPageParams","getPaginationParamsFromQuery","queryString","JSON","parse","decodeURIComponent","getQueryParamString","error","next_page_params","setHasPages","isMounted","queryParams","scrollToTop","useCallback","scrollIntoView","animateScroll","duration","queryResult","useApiQuery","Object","keys","queryOptions","staleTime","Infinity","data","nextPageParams","getNextPageParams","prev","nextPageQuery","String","encodeURIComponent","stringify","push","pathname","shallow","omit","then","removeQueries","queryKey","nextRouterQuery","setTimeout","type","onFilterChange","newQuery","filterFields","newFilters","entries","forEach","key","value","join","onSortingChange","SORTING_FIELDS","newSorting","pagination","isPlaceholderData","cancelQueries"],"sourceRoot":""}