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AA,IAAyC,GAAzCA,CAAAA,EAAAA,CAAuB,CAAClG,EAAS/E,OAAO,CAAC,GAAzCiL,KAAAA,IAAAA,EAAAA,KAAAA,EAAAA,CAA2C,CAAClG,EAAShF,UAAU,CAAC,CAElEgI,QAAS,GAAiB,CAACD,GAAc0D,EAAYgB,GACrDC,WAAYlB,IAAa,GAAuBxG,MAAAA,CAApBA,EAAS/E,OAAO,CAAC,KAAuBa,MAAA,CAApBkE,EAAShF,UAAU,EACnE2M,QAAS,IAA2C,GAA1C5B,CAAAA,EAAAA,IAAoC,GAApCA,CAAAA,EAAAA,MAAAA,EAAAA,KAAAA,EAAAA,CAAkB,CAAC/F,EAAS/E,OAAO,CAAC,GAApC8K,KAAAA,IAAAA,EAAAA,EAAwC,EAAE,GAA1CA,KAAAA,IAAAA,EAAD,OAAAhK,EAA8CwL,QAAAA,CACrDvH,EAAS4H,YAAY,GAvBlB,YAAmC5H,MAAAA,CAAvBA,EAAShF,UAAU,CAAC,KAAoBc,MAAA,CAAjBkE,EAAS/E,OAAO,MA6BlE","sources":["webpack://_N_E/./hooks/useFetch/useFetchPositionRebalanceHistory.ts","webpack://_N_E/./hooks/useFetchAllChainAnalytics.ts","webpack://_N_E/./hooks/useFetchAllChainsClosedPositions.ts","webpack://_N_E/./hooks/useFetchTokenURL.ts","webpack://_N_E/./views/ActivePositions/PositionCardWrapper.tsx","webpack://_N_E/./views/ActivePositions/PositionList.tsx","webpack://_N_E/<anon>"],"sourcesContent":["import { useNetwork } from \"@/components/NetworkContext/NetworkContext\";\nimport { getAnalyticsEndpoint } from \"@/config/chain\";\nimport { getNetworkName } from \"@/utils/networkHelper\";\nimport { getChainInfo } from \"@aperture/uikitv2\";\nimport {\n ApertureSupportedChainId,\n viem,\n} from \"@aperture_finance/uniswap-v3-automation-sdk\";\nimport { getAmmEnum } from \"@ui/utils\";\nimport useSWR from \"swr/immutable\";\n\nexport const useFetchPositionRebalanceHistory = (\n positionId: string,\n chainId?: ApertureSupportedChainId,\n disabled = false\n) => {\n const { networkId, ammEnum: amm } = useNetwork();\n\n const _chainId = chainId ?? networkId;\n const _amm = chainId\n ? getAmmEnum(getChainInfo(getNetworkName(chainId)).amm[0])\n : amm;\n\n const showFetch = !disabled && _amm === \"UNISWAP_V3\" && _chainId;\n\n return useSWR(\n showFetch\n ? `position-rebalance-history-${_amm}-${_chainId}-${positionId}`\n : null,\n async () => {\n if (!getAnalyticsEndpoint(_chainId)) {\n return [];\n }\n return (\n (await viem.getPositionRebalanceHistory(\n _amm,\n _chainId,\n positionId,\n getAnalyticsEndpoint(_chainId)\n )) ?? []\n );\n }\n );\n};\n","import { useNetwork } from \"@/components/NetworkContext/NetworkContext\";\n\nimport { useAllChainStateStore } from \"@/components/GlobalStore\";\nimport { getAnalyticsEndpoint } from \"@/config/chain\";\nimport { fetchInfoForAllChains } from \"@/helper/fetchHelper/getAllChainInfo\";\nimport {\n AnalyticPosition,\n parseAnalyticPositionData,\n} from \"@/utils/analytics/helper\";\nimport { getNetworkId } from \"@/utils/networkHelper\";\nimport {\n ApertureSupportedChainId,\n viem,\n} from \"@aperture_finance/uniswap-v3-automation-sdk\";\nimport { AmmEnum, getAmmEnum, getSupportedChainsByAmm } from \"@ui/utils\";\nimport { Token } from \"@uniswap/sdk-core\";\nimport { keyBy } from \"lodash\";\nimport { useMemo } from \"react\";\nimport useSWR from \"swr/immutable\";\nimport { Address } from \"viem\";\nimport { useFetchAllChainsPositions } from \"./useFetchAllChainsPositions\";\nexport type TMutateWarningTokens = (\n chainId: number,\n warningTokens: Token[]\n) => Promise<void>;\n\nexport function useFetchAllChainsAnalytics(walletAddress: Address) {\n const { amm, isChainSupported } = useNetwork();\n const { data: allChainPositions } = useFetchAllChainsPositions(walletAddress);\n const {\n state: { rawAllTokenPriceMap: tokenPriceMap },\n } = useAllChainStateStore();\n\n const showFetch = amm && walletAddress && isChainSupported;\n\n const chainIdsList = useMemo(\n () => getSupportedChainsByAmm(amm).map((chain) => getNetworkId(chain)),\n [amm]\n );\n\n const res = useSWR(\n showFetch ? `user-all-chains-analytics-${amm.name}-${walletAddress}` : null,\n () =>\n fetchInfoForAllChains(chainIdsList, (chainId) =>\n fetchAnalysicsByChainId(getAmmEnum(amm), chainId, walletAddress)\n )\n );\n\n // TODO: check performance\n const data = useMemo<{\n [chainId: number]: { [positionId: string]: AnalyticPosition };\n }>(() => {\n if (!allChainPositions || !res.data || !tokenPriceMap) return {};\n const ret = {};\n chainIdsList.map((chainId) => {\n const positionMap = allChainPositions[chainId];\n if (!positionMap) return;\n\n const tokenPrices = tokenPriceMap[chainId];\n const native = viem.getNativeCurrency(chainId);\n ret[chainId] = keyBy(\n res.data[chainId]\n .map((analyticData) => {\n const positionDetails = positionMap[analyticData.id];\n return (\n positionDetails &&\n parseAnalyticPositionData(\n analyticData,\n positionDetails,\n native.decimals,\n tokenPrices?.[native.wrapped.address]?.price,\n tokenPrices?.[positionDetails.tokenA.address]?.price,\n tokenPrices?.[positionDetails.tokenB.address]?.price\n )\n );\n })\n .filter(Boolean),\n \"positionId\"\n );\n });\n return ret;\n }, [allChainPositions, chainIdsList, res.data, tokenPriceMap]);\n\n return {\n ...res,\n data,\n };\n}\n\nconst fetchAnalysicsByChainId = async (\n amm: AmmEnum,\n chainId: ApertureSupportedChainId,\n walletAddress: Address\n) => {\n if (!getAnalyticsEndpoint(chainId)) {\n return [];\n }\n try {\n let analyticsData: viem.AnalyticPositionSubgraphData[] = [];\n const numIntervalDataPerQuery = 1000;\n for (let skip = 0; ; skip += numIntervalDataPerQuery) {\n const response: viem.AnalyticPositionSubgraphData[] =\n (await viem.getPositionAnalytics(\n amm,\n chainId,\n walletAddress,\n skip,\n getAnalyticsEndpoint(chainId)\n )) ?? [];\n\n const numItems = response.length;\n if (numItems > 0) {\n analyticsData = analyticsData.concat(response);\n }\n if (numItems < numIntervalDataPerQuery) {\n break;\n }\n }\n\n if (analyticsData.length === 0)\n // TODO Analytics: Add proper data dog logs\n console.log(`No analytics data for wallet address ${walletAddress}`);\n\n return analyticsData;\n } catch (e) {\n console.error(\"fetchAnalysicsByChainId\", e);\n return [];\n }\n};\n","import { IActivePositionMap } from \"@/components/GlobalStore/allChain/types\";\nimport { useNetwork } from \"@/components/NetworkContext/NetworkContext\";\nimport { ExitPosition } from \"@/config/position/positionConfig\";\nimport { getQueryPlatform } from \"@/utils/networkHelper\";\nimport { ApertureSupportedChainId } from \"@aperture_finance/uniswap-v3-automation-sdk\";\nimport axios from \"axios\";\nimport bigDecimal from \"js-big-decimal\";\nimport useSWR from \"swr/immutable\";\nimport { Address } from \"viem\";\nimport { useChainsWithNonEmptyPositions } from \"./useFetch/useChainsWithNonEmptyPositions\";\nimport { useFetchAllChainsPositions } from \"./useFetchAllChainsPositions\";\n\nexport function useFetchAllChainsClosedPositions(\n showAll: boolean,\n walletAddress: Address\n) {\n const { ammEnum, isChainSupported } = useNetwork();\n const { data: positions } = useFetchAllChainsPositions(walletAddress);\n const { data: chainsWithPositions } =\n useChainsWithNonEmptyPositions(walletAddress);\n const showFetch =\n showAll &&\n walletAddress &&\n isChainSupported &&\n ammEnum === \"UNISWAP_V3\" &&\n chainsWithPositions?.length > 0 &&\n !!positions;\n\n return useSWR(\n showFetch ? `user-all-chains-closed-lps-${walletAddress}` : null,\n () =>\n getAllChainsClosedPositions(walletAddress, chainsWithPositions, positions)\n );\n}\n\nconst getAllChainsClosedPositions = async (\n walletAddress: Address,\n chainIds: ApertureSupportedChainId[],\n allPositions: IActivePositionMap\n) => {\n const allClosedPositions: {\n [chainId: number]: Record<string, ExitPosition>;\n } = {};\n await Promise.all(\n chainIds.map(async (chainId) => {\n const platformId = getQueryPlatform(chainId);\n if (platformId) {\n const closedPositions = Object.values(allPositions[chainId]).filter(\n (position) => position.closed\n );\n if (closedPositions.length) {\n const batchSize = 500;\n for (let i = 0; i < closedPositions.length; i += batchSize) {\n const currentBatch = closedPositions.slice(i, i + batchSize);\n const promises = currentBatch.map((position) => {\n return getExitData(\n platformId,\n walletAddress,\n position.positionId\n );\n });\n\n await Promise.all(promises)\n .then((responses) => {\n const exitDataResults: Record<string, ExitPosition> =\n Object.assign({}, ...responses);\n if (!allClosedPositions[chainId]) {\n allClosedPositions[chainId] = exitDataResults;\n } else {\n allClosedPositions[chainId] = {\n ...allClosedPositions[chainId],\n ...exitDataResults,\n };\n }\n })\n .catch((error) => {\n console.error(\"Error in batch\", error);\n });\n\n if (i + batchSize < closedPositions.length) {\n await new Promise((resolve) => setTimeout(resolve, 2_000));\n }\n }\n }\n }\n })\n );\n\n return allClosedPositions;\n};\n\nasync function getExitData(\n platform_id: string,\n walletAddress: Address,\n positionId: string\n): Promise<Record<string, ExitPosition>> {\n let exitData: ExitPosition[] = [];\n const numIntervalDataPerQuery = 1000;\n for (let skip = 0; ; skip += numIntervalDataPerQuery) {\n const response: ExitPosition[] = (\n await axios.post(\n \"https://beta.archiveprotocol.com/graphql\",\n // \"https://qa.beta.archiveprotocol.com/graphql\",\n {\n operationName: \"partialAndFullExits\",\n variables: {},\n query: `\n query partialAndFullExits {\n snapshotIntervalData( \n blueprintId: \"${platform_id}\"\n userIdentifier: \"${walletAddress}\"\n positionIdentifier: \"${positionId}\"\n first: 1000\n skip: ${skip}\n exitRatioGte: 0.0001\n orderDirection: DESC \n ) \n {\n requestId\n indexingStatus {\n headBlock\n lastSyncedBlock\n }\n items { \n date \n timestamp \n blockNumber \n positionIdentifier \n exitRatio \n exitedValueUsd \n exitedCollectedIncomeUsd\n } \n }\n }\n `,\n },\n {\n headers: {\n \"api-key\": \"f818f4d5-d80d-4d6f-bf13-9806c6d8bf2f\",\n },\n }\n )\n ).data.data.snapshotIntervalData.items;\n\n const numItems = response.length;\n if (numItems > 0) {\n exitData = exitData.concat(response);\n }\n\n if (numItems < numIntervalDataPerQuery) {\n break;\n }\n }\n\n if (exitData.length === 0)\n console.log(\n `No valid exit data from APY.vision for position = ${positionId} on ${platform_id}`\n );\n const positionExitData = {};\n positionExitData[positionId] = { ...exitData[0] };\n\n if (exitData.length > 1) {\n // Calculate the sum of exitedCollectedIncomeUsd\n const sumExitedCollectedIncomeUsd = exitData.reduce((sum, current) => {\n return bigDecimal.add(sum, current.exitedCollectedIncomeUsd);\n }, \"0\");\n\n positionExitData[positionId] = {\n ...positionExitData[positionId],\n exitedCollectedIncomeUsd: sumExitedCollectedIncomeUsd,\n };\n }\n\n return positionExitData;\n}\n","import { useNetwork } from \"@/components/NetworkContext/NetworkContext\";\nimport {\n ApertureSupportedChainId,\n ICommonNonfungiblePositionManager__factory,\n getChainInfo,\n} from \"@aperture_finance/uniswap-v3-automation-sdk\";\nimport { AmmEnum } from \"@ui/utils\";\nimport useSWR from \"swr/immutable\";\nimport { PublicClient } from \"viem\";\n\nexport function useFetchTokenURL(positionId: string, disabled = false) {\n const { ammEnum, networkId, publicClient, isChainSupported } = useNetwork();\n const shouldFetch =\n !disabled &&\n ammEnum === \"UNISWAP_V3\" &&\n isChainSupported &&\n networkId === publicClient.chain?.id;\n\n return useSWR(shouldFetch ? `nft-url-${networkId}-${positionId}` : null, () =>\n getPositionURL(ammEnum, networkId, positionId, publicClient)\n );\n}\n\nasync function getPositionURL(\n ammEnum: AmmEnum,\n chainId: ApertureSupportedChainId,\n positionId: string,\n client: PublicClient\n) {\n return client.readContract({\n address: getChainInfo(chainId).amms[ammEnum].nonfungiblePositionManager,\n abi: ICommonNonfungiblePositionManager__factory.abi,\n functionName: \"tokenURI\",\n args: [BigInt(positionId)],\n });\n}\n","import {\n ExitPosition,\n IPositionDetails,\n} from \"@/config/position/positionConfig\";\nimport {\n getClosedPositions,\n getPositionAnalytics,\n getPositionOverview,\n} from \"@/helper/positionHelper\";\nimport { useCurrentChainToken } from \"@/hooks/globalState/useCurrentChainToken\";\nimport { useCurrentChainPositions } from \"@/hooks/useCurrentChainPositions\";\nimport { useFetchPositionRebalanceHistory } from \"@/hooks/useFetch/useFetchPositionRebalanceHistory\";\nimport { useFetchAllChainsAnalytics } from \"@/hooks/useFetchAllChainAnalytics\";\nimport { useFetchMarketPrice } from \"@/hooks/useFetchMarketPrice\";\nimport { useFetchTokenURL } from \"@/hooks/useFetchTokenURL\";\nimport { getNetworkName } from \"@/utils/networkHelper\";\nimport { getAmmEnum, PositionCard } from \"@aperture/uikit\";\nimport {\n ExplorerPositionCard,\n getChainInfo,\n IExplorerPositionCard,\n PositionCardProps,\n PositionCardProps as PositionCardPropsV2,\n PositionCard as PositionCardV2,\n} from \"@aperture/uikitv2\";\nimport {\n ApertureSupportedChainId,\n ListTriggerResponse,\n} from \"@aperture_finance/uniswap-v3-automation-sdk\";\nimport { memo, useMemo, useState } from \"react\";\nimport { Address } from \"viem\";\nimport { getPositionCardProps } from \"./getPositionCardProps\";\n\ninterface PositionCardWrapperProps {\n walletAddress: Address;\n position: IPositionDetails;\n currentChain: ApertureSupportedChainId;\n isSelected: boolean;\n atStake: boolean;\n onClick?: (pid: string) => void;\n triggerObj?: ListTriggerResponse;\n closedPositionResult?: ExitPosition;\n showRadio?: boolean;\n sm?: boolean;\n limitOrder?: boolean;\n isExplorer?: boolean;\n}\n\nconst Component: React.FC<PositionCardWrapperProps> = ({\n sm,\n walletAddress,\n currentChain,\n isExplorer,\n onClick,\n ...props\n}) => {\n const { positionId, chainId, tokenA, tokenB, tickSpacing, feeTier } =\n props.position;\n const ammEnum = getAmmEnum(getChainInfo(getNetworkName(chainId)).amm[0]);\n const [isCardActive, setIsCardActive] = useState(false);\n const { isLoading: isAnalyticsLoading, data: analyticsData } =\n useFetchAllChainsAnalytics(walletAddress);\n\n const { data: nftURL, isLoading: isNFTLoading } = useFetchTokenURL(\n positionId,\n !isCardActive\n );\n const { currentTokenPrice: tokenPriceList } =\n useCurrentChainToken(currentChain);\n const { positionMap } = useCurrentChainPositions(walletAddress);\n const { data: positionRebalanceHistory, isLoading } =\n useFetchPositionRebalanceHistory(\n positionId,\n chainId,\n !isExplorer || !isCardActive\n );\n const poolKey = ammEnum === \"SLIPSTREAM\" ? tickSpacing : feeTier;\n const { data: marketPrice } = useFetchMarketPrice(\n ammEnum,\n chainId,\n tokenA.address,\n tokenB.address,\n [poolKey],\n isExplorer && isCardActive\n );\n\n const latestPositionInHistory = useMemo(() => {\n if (!tokenPriceList) return;\n if (positionRebalanceHistory?.length > 0) {\n const activePositionId =\n positionRebalanceHistory[positionRebalanceHistory.length - 1];\n return positionMap[activePositionId.tokenId];\n }\n }, [tokenPriceList, chainId, positionRebalanceHistory]);\n\n const currentPositionAnalytics = analyticsData?.[chainId]?.[positionId];\n\n const data = getPositionCardProps(\n props,\n currentChain,\n currentPositionAnalytics\n );\n\n const explorerData: IExplorerPositionCard = isExplorer\n ? {\n ...(data as PositionCardPropsV2),\n onClick: (isActive) => setIsCardActive(isActive),\n overview: {\n ...getPositionOverview(props.position, tokenPriceList),\n nftURL: ammEnum === \"UNISWAP_V3\" ? nftURL : undefined,\n isNFTLoading: ammEnum === \"UNISWAP_V3\" ? isNFTLoading : false,\n },\n analytics: currentPositionAnalytics\n ? {\n ...getPositionAnalytics(props.position, currentPositionAnalytics),\n }\n : undefined,\n rebalanceHistoryLoading: isLoading,\n rebalanceHistory: currentPositionAnalytics\n ? {\n ...getClosedPositions(\n props.position,\n latestPositionInHistory,\n positionRebalanceHistory ?? [],\n tokenPriceList,\n props.position.chainId\n ),\n }\n : undefined,\n marketPrice: marketPrice?.[poolKey]?.tokenA ?? \"0\",\n }\n : undefined;\n\n if (isExplorer) {\n return <ExplorerPositionCard {...explorerData} />;\n }\n if (currentPositionAnalytics && !isAnalyticsLoading) {\n return (\n <PositionCardV2\n {...(data as PositionCardProps)}\n sm={sm}\n onClick={onClick}\n />\n );\n }\n\n return <PositionCard {...data} sm={sm} onClick={onClick} />;\n};\n\nexport const PositionCardWrapper = memo(Component);\n","import { useNetwork } from \"@/components/NetworkContext/NetworkContext\";\nimport {\n ExitPosition,\n IPositionDetails,\n} from \"@/config/position/positionConfig\";\nimport { useSelected } from \"@/hooks/urls/useSelected\";\nimport { CommonQueryKey } from \"@/utils/browserHistory\";\nimport { useDrawer, useIsomorphicEffect } from \"@aperture/uikit\";\nimport { ListTriggerResponse } from \"@aperture_finance/uniswap-v3-automation-sdk\";\nimport { useRef, useState } from \"react\";\nimport styled from \"styled-components\";\nimport { Address } from \"viem\";\nimport { PositionCardWrapper } from \"./PositionCardWrapper\";\n\nconst PositionListBox = styled.div<{ drawerOpen: Boolean }>`\n width: 100%;\n min-height: 276px;\n overflow-x: auto;\n overflow-y: auto;\n scrollbar-width: none;\n gap: ${({ theme }) => theme.spacing.md};\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n margin-top: 8px;\n\n > div {\n width: 100%;\n min-width: 395px;\n }\n`;\n\nexport const PositionList: React.FC<{\n walletAddress: Address;\n positions: IPositionDetails[];\n stakePositionIds?: { [chainId: number]: bigint[] };\n triggerObj?: {\n [chainId: number]: ListTriggerResponse;\n };\n limitOrders?: { [chainId: number]: string[] };\n closedPositionResults: {\n [chainId: number]: Record<string, ExitPosition>;\n };\n isExplorer?: boolean;\n}> = ({\n walletAddress,\n positions,\n stakePositionIds,\n triggerObj,\n limitOrders,\n closedPositionResults,\n isExplorer,\n}) => {\n const { networkId } = useNetwork();\n const { drawerOpen, intentDrawerOpen } = useDrawer();\n const isDrawerOpen = intentDrawerOpen || drawerOpen;\n const [sm, setSm] = useState<boolean>(false);\n const { selected, setSelected } = useSelected(CommonQueryKey.PID);\n const timeout = positions.length > 30 ? 400 : 0;\n const ref = useRef<HTMLDivElement>(null);\n useIsomorphicEffect(() => {\n function updateSize() {\n setTimeout(() => {\n if (ref.current) {\n setSm(ref.current.offsetWidth < 605);\n }\n }, timeout); // update sm after animation end if it's a long list\n }\n window.addEventListener(\"resize\", updateSize);\n updateSize();\n return () => window.removeEventListener(\"resize\", updateSize);\n }, [isDrawerOpen]);\n\n return (\n <PositionListBox ref={ref} drawerOpen={isDrawerOpen}>\n {positions.map((position) => (\n <PositionCardWrapper\n key={`Position-${position.positionId}-${position.chainId}`}\n isExplorer={isExplorer}\n walletAddress={walletAddress}\n sm={sm}\n position={position}\n currentChain={networkId}\n triggerObj={\n isExplorer || position.closed\n ? undefined\n : triggerObj?.[position.chainId]\n }\n limitOrder={\n !isExplorer &&\n limitOrders?.[position.chainId]?.includes(position.positionId)\n ? true\n : undefined\n }\n closedPositionResult={\n closedPositionResults?.[position.chainId]?.[position.positionId]\n }\n onClick={(pid: string) => !isExplorer && setSelected(pid)}\n isSelected={selected === `${position.chainId}-${position.positionId}`}\n atStake={(stakePositionIds?.[position.chainId] ?? [])?.includes(\n position.positionIdBN\n )}\n />\n ))}\n </PositionListBox>\n );\n};\n"],"names":["useFetchPositionRebalanceHistory","positionId","chainId","disabled","networkId","ammEnum","amm","useNetwork","_chainId","_amm","getAmmEnum","getChainInfo","getNetworkName","useSWR","showFetch","concat","_ref","getAnalyticsEndpoint","viem","useFetchAllChainsAnalytics","walletAddress","isChainSupported","data","allChainPositions","useFetchAllChainsPositions","state","rawAllTokenPriceMap","tokenPriceMap","useAllChainStateStore","chainIdsList","useMemo","getSupportedChainsByAmm","map","getNetworkId","chain","res","name","fetchInfoForAllChains","fetchAnalysicsByChainId","ret","positionMap","tokenPrices","native","keyBy","positionDetails","analyticData","id","parseAnalyticPositionData","decimals","wrapped","address","price","tokenA","tokenB","filter","Boolean","analyticsData","skip","response","numItems","length","console","log","e","error","useFetchAllChainsClosedPositions","showAll","positions","chainsWithPositions","useChainsWithNonEmptyPositions","getAllChainsClosedPositions","chainIds","allPositions","allClosedPositions","Promise","all","platformId","getQueryPlatform","closedPositions","Object","values","position","closed","i","currentBatch","slice","promises","getExitData","then","exitDataResults","assign","responses","catch","setTimeout","resolve","platform_id","exitData","axios","operationName","variables","query","headers","snapshotIntervalData","items","positionExitData","sumExitedCollectedIncomeUsd","reduce","sum","current","bigDecimal","exitedCollectedIncomeUsd","useFetchTokenURL","publicClient","shouldFetch","getPositionURL","client","readContract","amms","nonfungiblePositionManager","abi","ICommonNonfungiblePositionManager__factory","functionName","args","BigInt","Component","marketPrice","sm","currentChain","isExplorer","onClick","props","param","tickSpacing","feeTier","isCardActive","setIsCardActive","useState","isLoading","isAnalyticsLoading","nftURL","isNFTLoading","currentTokenPrice","tokenPriceList","useCurrentChainToken","useCurrentChainPositions","positionRebalanceHistory","poolKey","useFetchMarketPrice","latestPositionInHistory","activePositionId","tokenId","currentPositionAnalytics","getPositionCardProps","explorerData","isActive","overview","getPositionOverview","undefined","analytics","getPositionAnalytics","rebalanceHistoryLoading","rebalanceHistory","getClosedPositions","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","ExplorerPositionCard","PositionCardV2","PositionCard","PositionCardWrapper","memo","PositionListBox","styled","theme","spacing","md","PositionList","stakePositionIds","triggerObj","limitOrders","closedPositionResults","drawerOpen","intentDrawerOpen","useDrawer","isDrawerOpen","setSm","selected","setSelected","useSelected","CommonQueryKey","timeout","ref","useRef","useIsomorphicEffect","updateSize","offsetWidth","window","addEventListener","removeEventListener","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__","limitOrder","includes","closedPositionResult","pid","isSelected","atStake","positionIdBN"],"sourceRoot":""}