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Ad,CAAEA,MAAAA,CAAAA,CAAO,CAAAC,SAAKD,EAAMW,MAAM,CAACC,MAAM,CAACC,IAAI,CAACC,EAAE,GAGxCC,EAAoBjB,EAAAA,EAAAA,CAAAA,GAAAA,CAAAA,UAAU,qCAGrB,GAAeE,IAAd,CAAEA,MAAAA,CAAAA,CAAO,CAAAC,SAAKD,EAAMW,MAAM,CAACC,MAAM,CAACI,IAAI,CAACC,KAAK,GAIpCnB,EAAAA,EAAAA,CAAAA,GAAAA,CAAAA,UAAU,qCAQjB,GAAeE,IAAd,CAAEA,MAAAA,CAAAA,CAAO,CAAAC,SAAKD,EAAMW,MAAM,CAACC,MAAM,CAACI,IAAI,CAACC,KAAK,GAI9D,IAAM4P,EAAW/Q,CAAAA,EAAAA,EAAAA,EAAAA,EAAOmJ,EAAAA,GAAYA,EAAAA,UAAAA,CAAAA,oCAEhC,GAAejJ,IAAd,CAAEA,MAAAA,CAAAA,CAAO,CAAAC,SAAKD,EAAMW,MAAM,CAACC,MAAM,CAACC,IAAI,CAACoP,EAAE,GAIxCa,EAAUhR,EAAAA,EAAAA,CAAAA,GAAAA,CAAAA,UAAU,qCACrB,GAAgBmM,IAAf,CAAEA,OAAAA,CAAAA,CAAQ,CAAAhM,SAAKgM,CAAK,EACtB,GAAesC,IAAd,CAAEA,MAAAA,CAAAA,CAAO,CAAAtO,SAAKsO,CAAI,EAIrB,GAAevO,IAAd,CAAEA,MAAAA,CAAAA,CAAO,CAAAC,SAAKD,EAAME,OAAO,CAAC0I,EAAE,GAG3BmI,EAASjR,CAAAA,EAAAA,EAAAA,EAAAA,EAAOkR,EAAAA,EAAAA,CAAAA,eAA6B,EAAAC,UAAA","sources":["webpack://_N_E/?a28d","webpack://_N_E/./components/Button/AOStatusBtn.tsx","webpack://_N_E/./hooks/useResponsiveDiv.ts","webpack://_N_E/./hooks/trigger/useStrategiesWithPosition.ts","webpack://_N_E/./views/Strategy/Detail/styles.ts","webpack://_N_E/./views/Strategy/Detail/Details.tsx","webpack://_N_E/./views/Strategy/Detail/Edit.tsx","webpack://_N_E/./views/Strategy/Detail/index.tsx","webpack://_N_E/./views/Strategy/List/index.tsx","webpack://_N_E/./pages/recurring-rebalance/index.tsx","webpack://_N_E/./views/style.ts","webpack://_N_E/<anon>"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/recurring-rebalance\",\n function () {\n return require(\"private-next-pages/recurring-rebalance/index.tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/recurring-rebalance\"])\n });\n }\n ","import { AOStatusTab } from \"@aperture/uikit\";\nimport { useCallback, useEffect, useState } from \"react\";\nimport { useAOStore } from \"../GlobalStore\";\n\nconst AOStatusBtn: React.FC = () => {\n const { ifAuthorized, toggleAOStatusAsync, isAOStatusLoading } = useAOStore();\n const [isSwitchOn, setIsSwitchOn] = useState(ifAuthorized);\n\n const handleSwitchChange = useCallback(\n (value: boolean) => {\n setIsSwitchOn(value);\n toggleAOStatusAsync().catch(() => {\n setIsSwitchOn((prev) => !prev);\n });\n },\n [toggleAOStatusAsync]\n );\n\n useEffect(() => {\n setIsSwitchOn(ifAuthorized);\n }, [ifAuthorized]);\n\n return (\n <AOStatusTab\n onStatus={isSwitchOn}\n isLoading={isAOStatusLoading}\n onChange={handleSwitchChange}\n disabled={isAOStatusLoading || ifAuthorized === undefined}\n />\n );\n};\n\nexport default AOStatusBtn;\n","import { useDrawer, useIsomorphicEffect } from \"@aperture/uikit\";\nimport { useRef, useState } from \"react\";\n\nexport function useResponsiveDiv(width: number) {\n const { drawerOpen, intentDrawerOpen } = useDrawer();\n const ref = useRef<HTMLDivElement>(null);\n const [sm, setSm] = useState<boolean>(false);\n\n useIsomorphicEffect(() => {\n function updateSize() {\n if (ref.current) {\n setSm(ref.current.offsetWidth < width);\n }\n }\n window.addEventListener(\"resize\", updateSize);\n updateSize();\n return () => window.removeEventListener(\"resize\", updateSize);\n }, [drawerOpen, intentDrawerOpen]);\n\n return { ref, sm };\n}\n","import { useNetwork } from \"@/components/NetworkContext/NetworkContext\";\nimport { IPositionDetails } from \"@/config/position/positionConfig\";\nimport { filterTriggers } from \"@/helper/triggerHelper\";\nimport { GetStrategyDetailResponse } from \"@aperture_finance/uniswap-v3-automation-sdk\";\nimport _ from \"lodash\";\nimport { useMemo } from \"react\";\nimport { useAccount } from \"wagmi\";\nimport { useCurrentChainPositions } from \"../useCurrentChainPositions\";\nimport { useFetchUserStrategies } from \"../useFetch/useFetchUserStrategies\";\nimport { useFetchAllChainUserTriggers } from \"../useFetchAllChainUserTriggers\";\n\nexport interface IStrategyWithPosition {\n strategy: GetStrategyDetailResponse;\n position: IPositionDetails;\n}\n\nexport const useStrategiesWithPosition = () => {\n const { networkId } = useNetwork();\n const { address: walletAddress } = useAccount();\n const {\n data: strategies,\n isLoading: isLoading1,\n ...res\n } = useFetchUserStrategies();\n\n const { positionList } = useCurrentChainPositions(walletAddress);\n\n const { data: allChainsTriggerObj, isLoading: isLoading3 } =\n useFetchAllChainUserTriggers(false);\n\n const openPositions = useMemo(() => {\n return (\n positionList &&\n allChainsTriggerObj &&\n _.keyBy(\n positionList\n .filter((position) => !position.closed)\n .map((position) => ({\n ...position,\n autoCompound:\n filterTriggers(\n allChainsTriggerObj[networkId],\n \"Reinvest\",\n position.positionId\n ).length > 0,\n })),\n \"positionId\"\n )\n );\n }, [allChainsTriggerObj, networkId, positionList]);\n\n const data = useMemo(() => {\n return (\n strategies &&\n openPositions &&\n strategies\n .map((strategy) => ({\n strategy: strategy,\n position: openPositions[strategy.current[0]?.nftId],\n }))\n .filter((item) => item.position)\n );\n }, [openPositions, strategies]);\n\n return {\n data,\n isLoading: isLoading1 || isLoading3 || !positionList,\n ...res,\n };\n};\n","import {\n DRAWER_CONTENT_WIDTH,\n Flex,\n FlexColumn,\n Headline1,\n} from \"@aperture/uikit\";\nimport styled from \"styled-components\";\n\nexport const Container = styled(FlexColumn)`\n gap: ${({ theme }) => theme.spacing[\"2xl\"]};\n height: 100%;\n`;\n\nexport const Wrapper = styled(FlexColumn)`\n overflow-x: hidden;\n height: calc(100vh - 136px);\n overflow-y: auto;\n scrollbar-width: none;\n`;\n\nexport const Content = styled(FlexColumn)`\n width: ${DRAWER_CONTENT_WIDTH};\n gap: ${({ theme }) => theme.spacing.xl};\n`;\n\nexport const StyledFlex = styled(Flex)`\n gap: ${({ theme }) => theme.spacing.lg};\n justify-content: flex-start;\n align-items: flex-start;\n margin-bottom: ${({ theme }) => theme.spacing[\"3xl\"]};\n`;\n\nexport const Title = styled(Headline1)`\n font-weight: 500;\n font-family: \"Dunbar Tall\";\n color: ${({ theme }) => theme.colors.global.text.T1};\n`;\n\nexport const DividerHorizontal = styled.div`\n width: 100%;\n border: 0.5px solid ${({ theme }) => theme.colors.global.line.Line2};\n`;\n","import { DeleteStrategyModal } from \"@/components/Modal/DeleteStrategyModal\";\nimport { useNetwork } from \"@/components/NetworkContext/NetworkContext\";\nimport { StrategyNotification } from \"@/components/Notification/Strategy\";\nimport { getStrategyInfoCardProps } from \"@/helper/strategyHelper\";\nimport { useCurrentChainToken } from \"@/hooks/globalState/useCurrentChainToken\";\nimport {\n usePositionAutoCompound,\n usePositionStrategy,\n} from \"@/hooks/trigger/usePositionTrigger\";\nimport { useCurrentChainPositions } from \"@/hooks/useCurrentChainPositions\";\nimport { useFetchStrategy } from \"@/hooks/useFetch/useFetchStrategy\";\nimport { convertFloatToString } from \"@/utils/numberFormat\";\nimport { ITokenTickerIconPair } from \"@aperture/types\";\nimport {\n DrawerTitle,\n Headline5,\n IPastPositionCardProps,\n IPastPositionListProps,\n PastPositionList,\n StrategyInfoCard,\n getDuration,\n timestampFormat,\n} from \"@aperture/uikit\";\nimport { E_ModalKey, Modal, useModal } from \"@aperture/uikitv2\";\nimport { RecurringAction } from \"@aperture_finance/uniswap-v3-automation-sdk\";\nimport { useCallback, useMemo } from \"react\";\nimport { useAccount } from \"wagmi\";\nimport { getFormattedPriceRange } from \"../../ActivePositions/getPositionCardProps\";\nimport { AutoCompoundWrapper } from \"../../PositionDetails/AutoCompoundWrapper\";\nimport { PositionInfoCard, useEditStrategyContext } from \"../Edit\";\nimport {\n Container,\n Content,\n DividerHorizontal,\n Title,\n Wrapper,\n} from \"./styles\";\nimport { GotoType } from \"./types\";\n\nexport const Details: React.FC<{\n navBack: () => void;\n refresh: () => void;\n goto: GotoType;\n}> = ({ navBack, goto, refresh }) => {\n const { networkId } = useNetwork();\n const { address: walletAddress } = useAccount();\n const { positionMap } = useCurrentChainPositions(walletAddress);\n const { position } = useEditStrategyContext();\n const { state, setModalState } = useModal();\n const { isOpen } = state[E_ModalKey.DELETE_STRATEGY_MODAL];\n const { currentTokenPrice: tokenPriceList } = useCurrentChainToken(networkId);\n const autoCompound = usePositionAutoCompound(\n position.positionId,\n position.chainId\n );\n const trigger = usePositionStrategy(position.positionId, position.chainId);\n const triggerAction = trigger?.action as RecurringAction;\n const { data: strategyDetail } = useFetchStrategy(triggerAction?.strategyId);\n const strategyInfo = useMemo(\n () =>\n getStrategyInfoCardProps(position, trigger, strategyDetail, [\n tokenPriceList?.[position.tokenA.address]?.price || \"0\",\n tokenPriceList?.[position.tokenB.address]?.price || \"0\",\n ]),\n [position, strategyDetail, trigger]\n );\n const { rebalancesExecuted, ...data } = strategyInfo;\n\n const history = useMemo(\n () => strategyDetail?.history ?? [],\n [strategyDetail?.history]\n );\n\n const formattedPastPositions = useMemo<\n IPastPositionListProps[\"positions\"]\n >(() => {\n if (!positionMap) return undefined;\n if (history.length < 1) return [];\n\n const pastPositionHistory = history.map((item) => ({\n ...item,\n position: positionMap[item.nftId],\n }));\n\n return pastPositionHistory\n .filter((item) => item.position)\n .sort((a, b) => b.creation - a.creation)\n .map((item) => {\n const _position = item.position;\n const tokens: ITokenTickerIconPair = [\n _position.tokenA,\n _position.tokenB,\n ];\n const formattedStatus =\n item.status.charAt(0).toUpperCase() +\n item.status.slice(1).toLowerCase();\n const lifetimeRevenueEarned =\n item.feeCollectedToken0UsdValue + item.feeCollectedToken1UsdValue;\n const lifetimeGasFees = item.gas_fee_value;\n return {\n time: item.completion ? timestampFormat(item.completion).time : \"-\",\n date: item.completion ? timestampFormat(item.completion).date : \"-\",\n status: formattedStatus,\n position: {\n tokens: tokens,\n feeTier: _position.feeTier,\n priceRange: getFormattedPriceRange(\n _position.minPrice,\n _position.maxPrice\n ),\n id: _position.positionId,\n earned: {\n total: convertFloatToString(lifetimeRevenueEarned),\n token0: {\n amount: _position.tokenA.amount,\n usdAmount: item.feeCollectedToken0UsdValue.toString(),\n },\n token1: {\n amount: _position.tokenB.amount,\n usdAmount: item.feeCollectedToken1UsdValue.toString(),\n },\n },\n liquidity: convertFloatToString(item.positionUsdValueWhenCompleted),\n fees: convertFloatToString(lifetimeGasFees),\n duration:\n item.creation && item.completion\n ? getDuration(item.creation, item.completion)\n : \"-\",\n } as IPastPositionCardProps,\n };\n });\n }, [history, positionMap]);\n\n const toggleModal = (open: boolean) => {\n setModalState(E_ModalKey.DELETE_STRATEGY_MODAL, open);\n };\n\n const renderNotification = useCallback(() => {\n return (\n <StrategyNotification\n positionId={position.positionId}\n chainId={position.chainId}\n />\n );\n }, [position.positionId]);\n\n return (\n <>\n <Container>\n <DrawerTitle onClick={navBack} isDrawer>\n <Headline5 fontWeight={500} textAlign={\"end\"}>\n Back to Dashboard\n </Headline5>\n </DrawerTitle>\n <Wrapper>\n <Content>\n <Title>Strategy Detail</Title>\n <StrategyInfoCard\n onEdit={() => goto.edit()}\n onDelete={() => toggleModal(true)}\n autoCompoundBtn={\n <AutoCompoundWrapper\n details={position}\n autoCompound={autoCompound}\n />\n }\n {...strategyInfo}\n renderNotification={renderNotification}\n />\n <DividerHorizontal />\n <PositionInfoCard />\n <DividerHorizontal />\n {formattedPastPositions && formattedPastPositions.length > 0 && (\n <PastPositionList positions={formattedPastPositions} />\n )}\n </Content>\n </Wrapper>\n </Container>\n <Modal isModalOpen={isOpen} onClose={() => toggleModal(false)}>\n <DeleteStrategyModal\n taskId={trigger?.taskId}\n strategyInfo={data}\n onClose={() => toggleModal(false)}\n onDelete={() => {\n navBack();\n refresh();\n }}\n />\n </Modal>\n </>\n );\n};\n","import {\n DrawerTitle,\n DualTriggerContent,\n E_StrategyModalType,\n Headline5,\n} from \"@aperture/uikit\";\nimport { E_ModalKey, Modal, useModal } from \"@aperture/uikitv2\";\nimport { EditStrategy } from \"../Edit\";\nimport { Container, Title } from \"./styles\";\nimport { GotoType } from \"./types\";\n\nexport const Edit: React.FC<{\n goto: GotoType;\n navBack: () => void;\n}> = ({ goto, navBack }) => {\n const { state, setModalState } = useModal();\n const { isOpen } = state.CANCEL_STRATGEY_EDIT_MODAL;\n\n const toggleModal = (open: boolean) => {\n setModalState(E_ModalKey.CANCEL_STRATGEY_EDIT_MODAL, open);\n };\n\n return (\n <Container>\n <DrawerTitle onClick={() => goto.details()} isDrawer>\n <Headline5 fontWeight={500} textAlign={\"end\"}>\n Back to Dashboard\n </Headline5>\n </DrawerTitle>\n <Title>Edit Strategy</Title>\n <EditStrategy\n isCreate={false}\n onSave={() => goto.details()}\n onCancel={() => toggleModal(true)}\n navBack={navBack}\n />\n <Modal\n padding={16}\n isModalOpen={isOpen}\n onClose={() => toggleModal(false)}\n >\n <DualTriggerContent\n {...{\n type: E_StrategyModalType.Cancel_Strategy_Edit,\n onCancel: () => toggleModal(false),\n onConfirm: () => {\n toggleModal(false);\n goto.details();\n navBack();\n },\n }}\n />\n </Modal>\n </Container>\n );\n};\n","import { UnstakePositionProvider } from \"@/components/Context/UnstakePositionContext\";\nimport { IPositionDetails } from \"@/config/position/positionConfig\";\nimport { useOnNetworkAccountChange } from \"@/hooks/globalState/useOnNetworkAccountChange\";\nimport { useEffect, useState } from \"react\";\nimport { Address } from \"viem\";\nimport { StrategyProvider } from \"../Edit\";\nimport { Details } from \"./Details\";\nimport { Edit } from \"./Edit\";\nimport { GotoType, StrategyPage } from \"./types\";\n\nexport const StrategyDetail: React.FC<{\n navBack: () => void;\n refresh: () => void;\n position: IPositionDetails;\n navToPage?: StrategyPage;\n}> = ({ navBack, navToPage, position, refresh }) => {\n const [page, setPage] = useState<StrategyPage>(navToPage ?? \"details\");\n\n const goto: GotoType = {\n details: () => setPage(\"details\"),\n edit: () => setPage(\"edit\"),\n };\n\n useEffect(() => {\n setPage(navToPage ?? \"details\");\n }, [position.positionId]);\n\n const props = {\n navBack,\n goto,\n };\n\n useOnNetworkAccountChange(() => {\n navBack();\n });\n\n return (\n <StrategyProvider position={position}>\n <UnstakePositionProvider\n {...{\n positionId: position.positionIdBN,\n token0Address: position.tokenA.address as Address,\n token1Address: position.tokenB.address as Address,\n feeTier: position.feeTier,\n }}\n >\n {page === \"details\" && (\n <Details\n {...{\n refresh,\n ...props,\n }}\n />\n )}\n {page === \"edit\" && <Edit {...props} />}\n </UnstakePositionProvider>\n </StrategyProvider>\n );\n};\n","import { usePage } from \"@/components/PageContext/PageContext\";\nimport { IPositionDetails } from \"@/config/position/positionConfig\";\nimport { useIsChainAndWalletReady } from \"@/hooks/globalState/useIsChainAccountReady\";\nimport {\n IStrategyWithPosition,\n useStrategiesWithPosition,\n} from \"@/hooks/trigger/useStrategiesWithPosition\";\nimport { useSelected } from \"@/hooks/urls/useSelected\";\nimport { useFetchSlipstreamPools } from \"@/hooks/useFetchSlipstreamPools\";\nimport { useIfAuthorized } from \"@/hooks/useFetchUserAuthentication\";\nimport { useOnFirstLoad } from \"@/hooks/useOnFirstLoad\";\nimport { CommonQueryKey } from \"@/utils/browserHistory\";\nimport { getFormattedPriceRange } from \"@/views/ActivePositions/getPositionCardProps\";\nimport { AccessoryIcons } from \"@aperture/assetkit\";\nimport { ITokenTickerIconPair } from \"@aperture/types\";\nimport {\n CommonLgText,\n FeeTierPercentage,\n LinearLoaderGroup,\n Status,\n StrategyDetailCard,\n StrategyDetailCardProps,\n useDrawer,\n} from \"@aperture/uikit\";\nimport {\n RecurringAction,\n TriggerItem,\n} from \"@aperture_finance/uniswap-v3-automation-sdk\";\nimport bigDecimal from \"js-big-decimal\";\nimport { useEffect, useMemo, useState } from \"react\";\nimport styled from \"styled-components\";\nimport { EmptyBox } from \"../../style\";\nimport { StrategyDetail } from \"../Detail\";\nimport { StrategyPage } from \"../Detail/types\";\n\nconst StrategiesList = styled.div<{ drawerOpen: boolean }>`\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n gap: ${({ theme }) => theme.spacing.md};\n width: 100%;\n min-height: 435px;\n overflow-x: auto;\n overflow-y: auto;\n scrollbar-width: none;\n`;\n\nconst StyledEmptyWrapper = styled.div`\n margin-top: 132px;\n margin-bottom: 16px;\n`;\n\nconst StyledEmptyBox = styled(EmptyBox)`\n border: none;\n`;\n\nconst StyledCommonLgText = styled(CommonLgText)`\n color: ${({ theme }) => theme.colors.global.text.T1};\n text-align: center;\n font-family: \"Roboto Flex\";\n font-size: 16px;\n font-style: normal;\n font-weight: 400;\n line-height: 20px;\n`;\n\nexport const ActiveStrategies: React.FC<{\n searchKeyword: string;\n}> = ({ searchKeyword }) => {\n const {\n data: strategies,\n mutate: mutateStrategies,\n isLoading,\n } = useStrategiesWithPosition();\n const { isLoading: isSlipStreamPoolsLoading } = useFetchSlipstreamPools();\n const { isReady } = useIsChainAndWalletReady();\n const { Drawer, drawerOpen, showDrawer, hideDrawer } = useDrawer();\n const { selected, setSelected } = useSelected(CommonQueryKey.STRATEGY_ID);\n const { strategyPage } = usePage();\n const { ifAuthorized } = useIfAuthorized();\n const [navToPage, setNavToPage] = useState<StrategyPage>(\n strategyPage ?? \"details\"\n );\n\n const convertedStrategies = useMemo(\n () =>\n strategies\n ? strategies.map((strategy) =>\n convertStrategyToCardProps(strategy, ifAuthorized)\n )\n : [],\n [ifAuthorized, strategies]\n );\n\n const filteredResults = useMemo(() => {\n const newKey = searchKeyword.toLowerCase();\n return !newKey\n ? convertedStrategies\n : convertedStrategies.filter(\n (strategy) =>\n strategy.index.includes(newKey) ||\n strategy.position.positionId.includes(newKey) ||\n (\"auto-compound auto compound\".includes(newKey) &&\n strategy.autoCompound) ||\n strategy.tokens[0].ticker?.toLowerCase().includes(newKey) ||\n strategy.tokens[1].ticker?.toLowerCase().includes(newKey) ||\n (strategy.feeTier / FeeTierPercentage + \"%\").startsWith(newKey) ||\n strategy.statusTags?.some((tag) =>\n tag.toLowerCase().includes(newKey.split(\" \").join(\"\"))\n )\n );\n }, [convertedStrategies, searchKeyword]);\n\n const selectedStrategy = useMemo(() => {\n return (\n selected &&\n filteredResults?.find((strategy) => strategy.index === selected)\n );\n }, [filteredResults, selected]);\n\n useEffect(() => {\n if (selectedStrategy) {\n showDrawer();\n } else {\n hideDrawer();\n }\n }, [hideDrawer, selectedStrategy, showDrawer]);\n\n useOnFirstLoad(strategies, () => {\n if (!selected) return;\n\n if (!selectedStrategy) {\n setSelected(undefined);\n return;\n }\n\n setTimeout(() => {\n document.getElementById(`Strategy-${selected}`)?.scrollIntoView({\n behavior: \"smooth\",\n block: \"nearest\",\n inline: \"nearest\",\n });\n setNavToPage(\"details\");\n }, 300);\n });\n\n const renderStrategyList = () => {\n if (!isReady) {\n return (\n <StyledEmptyBox>\n <StyledEmptyWrapper>\n <AccessoryIcons.HandEmptyIcon />\n </StyledEmptyWrapper>\n <StyledCommonLgText>\n Connect wallet and select correct network.\n </StyledCommonLgText>\n </StyledEmptyBox>\n );\n }\n if (isLoading || isSlipStreamPoolsLoading) {\n return <LinearLoaderGroup size=\"100%\" height=\"137px\" />;\n }\n\n if (!filteredResults.length) {\n return <EmptyBox>Your active strategies will appear here.</EmptyBox>;\n }\n\n return (\n <StrategiesList drawerOpen={drawerOpen}>\n {filteredResults.map(({ position, ...strategy }) => (\n <StrategyDetailCard\n {...strategy}\n onClick={() => {\n setSelected(strategy.index);\n }}\n selected={strategy.index === selected}\n key={strategy.index}\n />\n ))}\n </StrategiesList>\n );\n };\n\n return (\n <>\n {renderStrategyList()}\n <Drawer>\n {selectedStrategy && (\n <StrategyDetail\n navBack={() => {\n setSelected(undefined);\n }}\n refresh={() => mutateStrategies()}\n position={selectedStrategy.position}\n navToPage={navToPage}\n />\n )}\n </Drawer>\n </>\n );\n};\n\nexport const convertStrategyToCardProps = (\n richStrategy: IStrategyWithPosition,\n ifAuthorized: boolean\n): StrategyDetailCardProps & {\n position: IPositionDetails;\n} => {\n const { position, strategy } = richStrategy;\n const originalTrigger = strategy?.history[0] || strategy?.current[0];\n const latestTrigger =\n strategy?.current[0] ||\n (strategy?.executed > 0 && strategy?.history[strategy.executed - 1]);\n\n const triggerAction = latestTrigger?.action as RecurringAction;\n const tokens: ITokenTickerIconPair = [position.tokenA, position.tokenB];\n const {\n feeCollectedToken0UsdValue: token0Usd = 0,\n feeCollectedToken1UsdValue: token1Usd = 0,\n } = strategy?.feeCollected || {};\n const feeCollectedUsd = token0Usd + token1Usd;\n const revenueEarned = bigDecimal.add(\n position.feeAmount === \"-\" ? \"0\" : position.feeAmount,\n feeCollectedUsd\n );\n\n const priceRange = getFormattedPriceRange(\n position.minPrice,\n position.maxPrice\n );\n\n return {\n index: triggerAction?.strategyId,\n tokens,\n feeTier: position.feeTier,\n rebalancesExecuted: strategy?.executed,\n revenueEarned,\n createdTime: originalTrigger.creation,\n priceRange,\n liquidity: position.liquidity,\n fees: position.feeAmount,\n autoCompound: position.autoCompound,\n statusTags: getTriggerTags(latestTrigger, ifAuthorized),\n position: position,\n };\n};\n\nfunction getTriggerTags(trigger: TriggerItem, ifAuthorized: boolean): Status[] {\n if (!ifAuthorized || trigger.lastFailedMessage) {\n return [\"rebalanceFailed\"];\n }\n\n return [];\n}\n","import AOStatusBtn from \"@/components/Button/AOStatusBtn\";\nimport { useNetwork } from \"@/components/NetworkContext/NetworkContext\";\nimport { usePage } from \"@/components/PageContext/PageContext\";\nimport { useIsChainAndWalletReady } from \"@/hooks/globalState/useIsChainAccountReady\";\nimport { useResponsiveDiv } from \"@/hooks/useResponsiveDiv\";\nimport { ActiveStrategies } from \"@/views/Strategy/List\";\nimport { Headline, PageContainer } from \"@/views/style\";\nimport { AccessoryIcons } from \"@aperture/assetkit\";\nimport {\n BaseButton,\n ChainAMMLabel,\n DrawerOpenCardWidth,\n FlexColumn,\n Headline1,\n Headline5,\n SearchInput,\n useDrawer,\n} from \"@aperture/uikit\";\nimport { useRouter } from \"next/router\";\nimport { useState } from \"react\";\nimport styled, { useTheme } from \"styled-components\";\n\nconst StyledPageContainer = styled(PageContainer)<{\n drawerOpen?: boolean;\n}>`\n max-width: 1080px;\n margin-top: 20px;\n align-items: ${({ drawerOpen }) => (drawerOpen ? \"flex-end\" : \"center\")};\n`;\nconst StyledCard = styled(FlexColumn)<{\n drawerOpen?: boolean;\n}>`\n width: 100%;\n gap: ${({ theme }) => theme.spacing.xl};\n max-width: ${({ drawerOpen }) => (drawerOpen ? DrawerOpenCardWidth : \"100%\")};\n`;\nconst H2 = styled(Headline1)`\n font-family: \"Dunbar Tall\";\n display: flex;\n align-items: center;\n font-weight: 500;\n margin-bottom: 0;\n color: ${({ theme }) => theme.colors.global.text.T1};\n`;\nconst Container = styled.div<{ sm: boolean; drawerOpen?: boolean }>`\n display: flex;\n flex-direction: ${({ drawerOpen }) => (drawerOpen ? \"column\" : \"row\")};\n gap: ${({ theme, drawerOpen }) => (drawerOpen ? theme.spacing.xl : 0)};\n justify-content: space-between;\n`;\nconst Wrapper = styled.div<{ drawerOpen?: boolean }>`\n display: flex;\n width: ${({ drawerOpen }) => (drawerOpen ? \"100%\" : \"auto\")};\n margin: auto 0;\n gap: ${({ theme }) => theme.spacing.lg};\n`;\nconst StrategyWrapper = styled.div`\n display: flex;\n flex-direction: column;\n gap: ${({ theme }) => theme.spacing.md};\n`;\nconst SearchButton = styled(BaseButton)`\n min-width: 158px;\n height: 42px;\n gap: ${({ theme }) => theme.spacing.md};\n color: ${({ theme }) => theme.colors.global.textAlt.T1};\n`;\n\n// TODO: move to recurring-rebalance/index.tsx\nconst ApertureStrategy = () => {\n const theme = useTheme();\n const { setPosition } = usePage();\n const { drawerOpen } = useDrawer();\n const { amm, network } = useNetwork();\n const { isReady } = useIsChainAndWalletReady();\n const router = useRouter();\n const [searchKeyword, setSearchKeyword] = useState<string>(\"\");\n const { ref, sm } = useResponsiveDiv(775);\n\n return (\n <StyledPageContainer drawerOpen={drawerOpen}>\n <StyledCard drawerOpen={drawerOpen}>\n <Container ref={ref} sm={sm} drawerOpen={drawerOpen}>\n <Wrapper drawerOpen={drawerOpen}>\n <H2>\n Recurring Rebalance <br />\n Strategies\n </H2>\n </Wrapper>\n <Wrapper drawerOpen={drawerOpen}>\n <SearchInput\n width={192}\n placeholder=\"Search Strategy\"\n onChange={(value: string) => setSearchKeyword(value.trim())}\n />\n <SearchButton\n color=\"primary\"\n onClick={() => {\n setPosition(null);\n router.push(\"/recurring-rebalance/create\");\n }}\n disabled={!isReady}\n >\n <AccessoryIcons.AddIcon\n width={16}\n height={16}\n fill={theme.colors.global.textAlt.T1}\n />\n <Headline5 fontSize={\"14px\"}>New Strategy</Headline5>\n </SearchButton>\n </Wrapper>\n </Container>\n <StrategyWrapper>\n {isReady ? (\n <Headline>\n <ChainAMMLabel amm={amm} chainId={network} />\n <AOStatusBtn />\n </Headline>\n ) : null}\n <ActiveStrategies searchKeyword={searchKeyword} />\n </StrategyWrapper>\n </StyledCard>\n </StyledPageContainer>\n );\n};\n\nexport default ApertureStrategy;\n","import { ApertureLogos } from \"@aperture/assetkit\";\nimport {\n CommonLgText,\n FlexColumn,\n Headline1,\n Headline5,\n T1Regular,\n} from \"@aperture/uikit\";\nimport styled from \"styled-components\";\nimport { LayoutProps, SpaceProps, compose, layout, space } from \"styled-system\";\n\nexport const Headline = styled(T1Regular)`\n display: flex;\n justify-content: space-between;\n align-items: center;\n font-family: \"Roboto Flex\";\n`;\n\nexport const Title = styled.div`\n display: flex;\n align-items: center;\n flex-direction: row;\n`;\n\nexport const TitleText = styled(Headline1)`\n width: 100%;\n font-weight: 500;\n font-family: \"Dunbar Tall\";\n text-align: start;\n color: ${({ theme }) => theme.colors.global.text.T1};\n`;\n\nexport const Container = styled.div`\n box-sizing: border-box;\n width: 100%;\n display: flex;\n flex-direction: column;\n gap: ${({ theme }) => theme.spacing.xl};\n`;\n\nexport const Row = styled.div`\n display: flex;\n justify-content: space-between;\n align-items: center;\n`;\n\nexport const RowWithGap = styled.div<{ gap: string }>`\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: ${({ gap }) => gap};\n`;\n\nexport const PageContainer = styled(FlexColumn)`\n margin-top: 20px;\n align-items: center;\n gap: ${({ theme }) => theme.spacing[\"3xl\"]};\n width: 100%;\n max-width: calc(100vw * 0.75);\n padding-bottom: 30px;\n`;\n\nexport const EmptyBox = styled.div<LayoutProps & SpaceProps>`\n width: 100%;\n height: 276px;\n font-weight: 500;\n border-radius: ${({ theme }) => theme.radii.md};\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: ${({ theme }) => theme.spacing.lg};\n border: 1px solid ${({ theme }) => theme.colors.global.line.Line1};\n color: ${({ theme }) => theme.colors.global.text.T3};\n > svg,\n path {\n fill: ${({ theme }) => theme.colors.global.text.T1};\n }\n ${compose(layout, space)}\n`;\n\nexport const CommonContainer = styled.div<LayoutProps & { padding?: string }>`\n padding: ${({ padding }) => padding || \"0\"};\n background: ${({ theme }) => theme.colors.global.background.BG2};\n color: ${({ theme }) => theme.colors.global.text.T1};\n border: ${({ padding }) =>\n !padding\n ? \"none\"\n : `1px solid ${({ theme }) => theme.colors.global.line.Line2};`};\n border-radius: ${({ theme }) => theme.radii.md};\n box-sizing: border-box;\n ${layout}\n`;\n\nexport const PositionContainer = styled(CommonContainer)`\n width: 100%;\n`;\n\nexport const OtherInfo = styled(CommonContainer)<{ gap?: string }>`\n display: flex;\n flex-direction: column;\n gap: ${({ theme, gap }) => gap ?? theme.spacing.md};\n color: ${({ theme }) => theme.colors.global.text.T1};\n`;\n\nexport const RowTitle = styled(Headline5)`\n color: ${({ theme }) => theme.colors.global.text.T1};\n`;\nexport const Text1 = styled(Headline5)`\n font-size: 16px;\n line-height: 20px;\n font-weight: 500;\n color: ${({ theme }) => theme.colors.global.text.T1};\n`;\nexport const Text2 = styled(Text1)`\n font-weight: 400;\n font-size: 14px;\n line-height: 16px;\n`;\n\nexport const Expires = styled(FlexColumn)`\n width: 160px;\n align-items: flex-end;\n justify-content: center;\n gap: ${({ theme }) => theme.spacing.xl};\n color: ${({ theme }) => theme.colors.global.text.T1};\n`;\n\nexport const DividerHorizontal = styled.div`\n height: 1px;\n width: 100%;\n background-color: ${({ theme }) => theme.colors.global.line.Line2};\n align-self: stretch;\n`;\n\nexport const DividerVertical = styled.div`\n ::after {\n position: absolute;\n top: 0;\n bottom: 0;\n content: \"\";\n width: 1px;\n height: 100%;\n background-color: ${({ theme }) => theme.colors.global.line.Line2};\n }\n`;\n\nexport const TimeZone = styled(CommonLgText)`\n text-align: right;\n color: ${({ theme }) => theme.colors.global.text.T3};\n margin-top: -8px;\n`;\n\nexport const IconDiv = styled.div<{ width: number; height: number }>`\n height: ${({ height }) => height}px;\n width: ${({ width }) => width}px;\n flex: 1 1 0%;\n display: flex;\n align-items: center;\n gap: ${({ theme }) => theme.spacing.md};\n`;\n\nexport const Loader = styled(ApertureLogos.TransparentLogo)`\n height: 80px;\n width: 80px;\n animation: rotation infinite 3s linear;\n\n @keyframes rotation {\n from {\n transform: rotate(0deg);\n }\n\n to {\n transform: rotate(360deg);\n }\n }\n`;\n"],"names":["window","__NEXT_P","push","__webpack_require__","AOStatusBtn","ifAuthorized","toggleAOStatusAsync","isAOStatusLoading","useAOStore","isSwitchOn","setIsSwitchOn","useState","handleSwitchChange","useCallback","value","catch","prev","useEffect","jsx_runtime","jsx","AOStatusTab","onStatus","isLoading","onChange","disabled","undefined","useStrategiesWithPosition","networkId","useNetwork","address","walletAddress","useAccount","data","strategies","isLoading1","res","useFetchUserStrategies","positionList","useCurrentChainPositions","allChainsTriggerObj","isLoading3","useFetchAllChainUserTriggers","openPositions","useMemo","_","filter","position","closed","map","autoCompound","filterTriggers","positionId","length","strategy","current","nftId","item","Container","styled","FlexColumn","theme","param","spacing","Wrapper","Content","DRAWER_CONTENT_WIDTH","xl","Flex","lg","Title","Headline1","colors","global","text","T1","DividerHorizontal","line","Line2","Details","strategyDetail","navBack","goto","refresh","positionMap","useEditStrategyContext","state","setModalState","useModal","isOpen","E_ModalKey","currentTokenPrice","tokenPriceList","useCurrentChainToken","usePositionAutoCompound","chainId","trigger","usePositionStrategy","triggerAction","action","useFetchStrategy","strategyId","strategyInfo","getStrategyInfoCardProps","tokenA","price","tokenB","rebalancesExecuted","history","formattedPastPositions","pastPositionHistory","sort","a","b","creation","_position","tokens","formattedStatus","status","charAt","toUpperCase","slice","toLowerCase","lifetimeRevenueEarned","feeCollectedToken0UsdValue","feeCollectedToken1UsdValue","lifetimeGasFees","gas_fee_value","time","completion","timestampFormat","date","feeTier","priceRange","getFormattedPriceRange","minPrice","maxPrice","id","earned","total","convertFloatToString","token0","amount","usdAmount","toString","token1","liquidity","positionUsdValueWhenCompleted","fees","duration","getDuration","toggleModal","open","renderNotification","StrategyNotification","jsxs","Fragment","DrawerTitle","onClick","isDrawer","Headline5","fontWeight","textAlign","StrategyInfoCard","onEdit","edit","onDelete","autoCompoundBtn","AutoCompoundWrapper","details","PositionInfoCard","PastPositionList","positions","Modal","isModalOpen","onClose","DeleteStrategyModal","taskId","Edit","CANCEL_STRATGEY_EDIT_MODAL","EditStrategy","isCreate","onSave","onCancel","padding","DualTriggerContent","type","E_StrategyModalType","onConfirm","StrategyDetail","navToPage","page","setPage","props","useOnNetworkAccountChange","StrategyProvider","UnstakePositionProvider","positionIdBN","token0Address","token1Address","StrategiesList","md","StyledEmptyWrapper","StyledEmptyBox","EmptyBox","StyledCommonLgText","CommonLgText","ActiveStrategies","searchKeyword","mutate","mutateStrategies","isSlipStreamPoolsLoading","useFetchSlipstreamPools","isReady","useIsChainAndWalletReady","Drawer","drawerOpen","showDrawer","hideDrawer","useDrawer","selected","setSelected","useSelected","CommonQueryKey","strategyPage","usePage","useIfAuthorized","setNavToPage","convertedStrategies","convertStrategyToCardProps","filteredResults","newKey","index","includes","ticker","FeeTierPercentage","startsWith","statusTags","some","tag","split","join","selectedStrategy","find","useOnFirstLoad","document","getElementById","concat","scrollIntoView","behavior","block","inline","LinearLoaderGroup","size","height","react","createElement","StrategyDetailCard","key","AccessoryIcons","richStrategy","originalTrigger","latestTrigger","executed","token0Usd","token1Usd","feeCollected","revenueEarned","bigDecimal","feeAmount","createdTime","lastFailedMessage","StyledPageContainer","PageContainer","StyledCard","DrawerOpenCardWidth","H2","StrategyWrapper","SearchButton","BaseButton","textAlt","ApertureStrategy","useTheme","setPosition","amm","network","router","useRouter","setSearchKeyword","ref","sm","useResponsiveDiv","width","intentDrawerOpen","useRef","setSm","useIsomorphicEffect","updateSize","offsetWidth","addEventListener","removeEventListener","br","SearchInput","placeholder","trim","color","fill","fontSize","Headline","ChainAMMLabel","recurring_rebalance","T1Regular","TitleText","Row","RowWithGap","gap","radii","Line1","T3","compose","layout","space","CommonContainer","background","BG2","OtherInfo","RowTitle","Text1","Text2","Expires","TimeZone","IconDiv","Loader","ApertureLogos","withConfig"],"sourceRoot":""}