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KAAKvX,EAAAA,GAAUwY,sBACX,OAAOvc,EAAAA,EAAAA,KAACsc,GAA2B,IACvC,KAAKvY,EAAAA,GAAUwb,oBACX,OAAOvf,EAAAA,EAAAA,KAACwf,EAAAA,GAAyB,IACrC,QACI,OAAO,KAEnB,C","sources":["webpack:///./src/app/components/auth/dialog/ConnectDialog.tsx","webpack:///./src/app/components/auth/index.ts","webpack:///./src/app/components/market-detail/dialog/common.tsx","webpack:///./src/app/components/market-detail/dialog/SelectTokenDialog.tsx","webpack:///./src/app/components/market-detail/dialog/MultiSelectCollateralDialog.tsx","webpack:///./src/app/components/market-detail/dialog/BorrowSelectCollateralDialog.tsx","webpack:///../../node_modules/@mui/icons-material/esm/PeopleAltOutlined.js","webpack:///../../node_modules/@mui/icons-material/esm/AutorenewOutlined.js","webpack:///../../node_modules/@mui/icons-material/esm/SyncLockOutlined.js","webpack:///../../node_modules/@mui/icons-material/esm/SettingsSuggestOutlined.js","webpack:///../../node_modules/@mui/icons-material/esm/FavoriteBorderOutlined.js","webpack:///../../node_modules/@mui/icons-material/esm/LegendToggleOutlined.js","webpack:///../../node_modules/@mui/icons-material/esm/EventAvailableOutlined.js","webpack:///./src/app/components/market-detail/guide/constants.tsx","webpack:///./src/app/components/market-detail/guide/common.tsx","webpack:///./src/app/components/market-detail/guide/RoleGuide.tsx","webpack:///./src/app/components/market-detail/guide/MultiRoleGuide.tsx","webpack:///../../node_modules/@mui/icons-material/esm/AutoModeOutlined.js","webpack:///./src/app/components/market-detail/guide/util.tsx","webpack:///./src/app/components/market-detail/guide/MarketGuideDialog.tsx","webpack:///./src/app/components/market-detail/dialog/LendApyDialog.tsx","webpack:///./src/app/components/market-detail/dialog/MarketDialogWrapper.tsx","webpack:///./src/app/components/market-detail/LendDialog.tsx","webpack:///./src/app/components/market-detail/BorrowDialog.tsx","webpack:///./src/app/components/market-detail/UpdateApyAndCollateralDialog.tsx","webpack:///./src/app/components/market-detail/index.ts","webpack:///./src/app/components/assets/FungibleAssets.tsx","webpack:///../../node_modules/@mui/icons-material/esm/LinkOffOutlined.js","webpack:///./src/app/components/assets/WalletInfo.tsx","webpack:///./src/app/components/assets/WalletDialog.tsx","webpack:///./src/app/components/vault/dialog/VaultManageEscrowDialog.tsx","webpack:///./src/app/components/vault/withdraw/VaultWithdrawSlippageDialog.tsx","webpack:///./src/app/components/dialogs.tsx"],"sourcesContent":["import { useEffect, useState } from \"react\";\n\nimport { Column, DialogWrapper, TagTextAlert, Text, WalletButtons } from \"@bridgesplit/ui\";\nimport { useAuthStorage, useUser } from \"@bridgesplit/abf-react\";\nimport { parseErrorFromOptions, Result } from \"@bridgesplit/utils\";\nimport { useAppDialog } from \"app/utils\";\nimport { COPY } from \"app/constants\";\n\nexport default function ConnectDialog() {\n return (\n \n \n \n );\n}\n\nconst LOGIN_ERRORS = {\n \"Prime users must log in with email\": \"This wallet is associated with a Prime account. Please login with email\"\n};\n\nfunction Verified() {\n const { close } = useAppDialog();\n\n const { resetCookies } = useAuthStorage();\n\n const [connected, setConnected] = useState<\"wallet\">();\n const userMe = useUser({ skip: !connected });\n const [errorMessage, setErrorMessage] = useState();\n\n useEffect(() => {\n if (userMe.error && !errorMessage) {\n const message =\n parseErrorFromOptions(Result.err(userMe.error).unwrapErrMessage(), LOGIN_ERRORS) ?? \"Unable to login\";\n setErrorMessage(message);\n }\n }, [errorMessage, userMe.error]);\n\n useEffect(() => {\n if (userMe.data) {\n close();\n }\n }, [close, userMe.data]);\n\n return (\n <>\n \n {COPY.CONNECT_PROMPT} \n \n {COPY.CONNECT_DESCRIPTION}\n \n \n\n {\n resetCookies();\n setConnected(\"wallet\");\n }}\n loading={connected === \"wallet\" && userMe.isFetching}\n />\n\n {!!errorMessage && (\n \n {errorMessage}\n \n )}\n \n );\n}\n","import { lazy } from \"@bridgesplit/ui\";\n\nconst DefaultRoute = lazy(() => import(\"./DefaultRoute\"));\n\nexport { DefaultRoute };\n\nexport * from \"./dialog\";\n","import { DIALOG_PADDING } from \"@bridgesplit/ui\";\n\nimport { DialogHeaderWithBack, HeaderWithClose } from \"../../common\";\nimport { useMarketDialog } from \"../util\";\nimport { useMarketContextOptional } from \"../common\";\n\nexport default function MarketDialogHeader({ header, padding }: { header: string; padding?: boolean }) {\n const marketContext = useMarketContextOptional();\n const { close } = useMarketDialog();\n\n if (marketContext?.isDialog) {\n return ;\n }\n\n return ;\n}\n","import { useState } from \"react\";\n\nimport {\n Column,\n DIALOG_PADDING,\n DialogWrapper,\n MAX_DIALOG_HEIGHT,\n Row,\n SearchInput,\n Text,\n VerticalScroll,\n useAppPalette\n} from \"@bridgesplit/ui\";\nimport { BsMetaUtil } from \"@bridgesplit/abf-react\";\nimport { textContains } from \"@bridgesplit/utils\";\nimport { AppDialog } from \"app/utils\";\n\nimport { TokenImage } from \"../../common\";\nimport { useMarketDialog } from \"../util\";\nimport MarketDialogHeader from \"./common\";\n\nexport function SelectTokenDialogInternal() {\n const { getData, close } = useMarketDialog();\n\n const data = getData(AppDialog.SelectToken);\n const { hoverBackground } = useAppPalette();\n const [search, setSearch] = useState(\"\");\n\n const tokens = data?.tokens?.filter((token) =>\n search\n ? token.mint === search || textContains([BsMetaUtil.getName(token), BsMetaUtil.getSymbol(token)], search)\n : true\n );\n\n const header = data?.header ?? \"Select token\";\n\n return (\n \n \n\n setSearch(e.target.value)}\n value={search}\n />\n\n \n {tokens?.map((t) => (\n {\n data?.setToken?.(t);\n close();\n }}\n spaceBetween\n >\n \n \n\n {BsMetaUtil.getSymbol(t)}\n \n \n ))}\n \n \n );\n}\n\nexport default function SelectTokenDialog() {\n return (\n \n \n \n );\n}\n","import { useEffect, useState } from \"react\";\n\nimport {\n Checkbox,\n Column,\n DialogWrapper,\n MAX_DIALOG_HEIGHT,\n OutlinedOption,\n Row,\n SearchInput,\n SkeletonRounded,\n StaticGrid,\n Text,\n TextButton,\n ToggleSpacedButtons,\n VerticalScroll,\n repeatElement,\n useAppPalette\n} from \"@bridgesplit/ui\";\nimport { BsMetaUtil, getSearchFromMetadata, useCollateralWithTerms } from \"@bridgesplit/abf-react\";\nimport { MISSING_PARAM_ERROR, Result, deepCompareSets, formatPercentArray, textContains } from \"@bridgesplit/utils\";\nimport { Divider } from \"@mui/material\";\nimport { DispatchType } from \"@bridgesplit/react\";\nimport { AppDialog } from \"app/utils\";\n\nimport MarketDialogHeader from \"./common\";\nimport { useCollateralTokensByTag, useMarketDialog } from \"../util\";\nimport { AppButton, OverlappingMetadataImages, TokenImage } from \"../../common\";\nimport { RewardsCollateralLabel } from \"../../points\";\n\nexport default function MultiSelectCollateralDialog() {\n return (\n \n \n \n );\n}\n\nenum Mode {\n Auto = \"Categories\",\n Advanced = \"Custom\"\n}\n\nexport function MultiSelectCollateralInternal() {\n const { close, getData } = useMarketDialog();\n\n const data = getData(AppDialog.MultiSelectCollateral);\n\n const [selected, setSelected] = useState>();\n const [modeState, setMode] = useState();\n const defaultMode = data?.isAdvanced ? Mode.Advanced : Mode.Auto;\n const mode = modeState === undefined ? defaultMode : modeState;\n\n const { data: collateral } = useCollateralWithTerms({\n principalMint: data?.principalMint,\n collateral: data?.tokens,\n marketInformationAddresses: data?.customMarketInformation ? [data.customMarketInformation] : undefined,\n existingStrategy: data?.existingStrategy\n });\n const collateralByTag = useCollateralTokensByTag(collateral);\n\n const marketInfoCollateralMints = collateral?.map((c) => c.metadata.mint);\n\n const supportedCollateral = data?.collateral?.filter((c) => marketInfoCollateralMints?.includes(c));\n\n useEffect(() => {\n if (!selected && supportedCollateral) {\n setSelected(new Set(supportedCollateral));\n }\n }, [supportedCollateral, selected]);\n\n const { tokensByTags } = collateralByTag;\n\n const props = { collateralByTag, selected, setSelected };\n\n function submit() {\n if (!collateral || !data?.setCollateral) return;\n\n data?.setCollateral?.(collateral.filter((t) => selected?.has(t.metadata.mint)));\n close();\n }\n\n async function onClickWithResult() {\n if (!collateral || !data?.setCollateralAsync) return Result.errFromMessage(MISSING_PARAM_ERROR);\n\n return data.setCollateralAsync(collateral.filter((t) => selected?.has(t.metadata.mint)));\n }\n\n const changesMade = !deepCompareSets(selected ?? new Set(), new Set(data?.collateral));\n\n return (\n <>\n \n\n ({ value }))}\n />\n\n {mode === Mode.Advanced ? : }\n \n \n {selected?.size ?? 0} tokens selected\n \n setSelected(new Set())}>\n Clear\n \n setSelected(new Set(collateral?.map((c) => c.metadata.mint)))}\n >\n All\n \n \n \n {!tokensByTags && {repeatElement(, 3)}}\n\n \n {(() => {\n if (!changesMade) return \"No changes made\";\n if (!selected?.size) return \"Select collateral\";\n return \"Confirm selection\";\n })()}\n \n \n \n );\n}\n\ntype CollateralByTagResponse = ReturnType;\n\ntype TokenSelectProps = {\n collateralByTag: CollateralByTagResponse;\n selected: Set | undefined;\n setSelected: DispatchType | undefined>;\n};\n\nfunction CustomSelection({ collateralByTag: { tokensByTags }, selected, setSelected }: TokenSelectProps) {\n const { hoverBackground } = useAppPalette();\n const [search, setSearch] = useState(\"\");\n\n const filtered = tokensByTags\n ?.map(({ tag, tokens }) => {\n const filteredTokens = tokens.filter(({ metadata }) => {\n if (metadata.mint === search) return true;\n return textContains(getSearchFromMetadata(metadata), search);\n });\n\n return { tag, tokens: filteredTokens };\n })\n .filter(({ tokens }) => tokens.length);\n\n return (\n <>\n setSearch(e.target.value)}\n value={search}\n />\n \n {filtered?.map(({ tokens, tag }, i) => {\n const selectedTokens = tokens.filter((t) => selected?.has(t.metadata.mint));\n const allSelected = selectedTokens.length === tokens.length;\n return (\n \n \n {tag.label}\n {\n setSelected((prev) => {\n const dupe = new Set(prev);\n for (const token of tokens) {\n const key = token.metadata.mint;\n if (selectedTokens.length) {\n dupe.delete(key);\n } else {\n dupe.add(key);\n }\n }\n\n return dupe;\n });\n }}\n />\n \n\n \n \n {tokens.map(({ metadata, ...terms }, i) => {\n const ltvFlat =\n \"ltvInfo\" in terms ? [terms.ltvInfo.ltv] : terms.allLtvInfos.map((t) => t.ltv);\n const isSelected = selected?.has(metadata.mint) || false;\n\n return (\n \n setSelected((prev) => {\n const dupe = new Set(prev);\n if (dupe.has(metadata.mint)) {\n dupe.delete(metadata.mint);\n } else {\n dupe.add(metadata.mint);\n }\n\n return dupe;\n })\n }\n spaceBetween\n sx={{\n px: 2,\n py: 0.5,\n cursor: \"pointer\",\n \":hover\": { background: hoverBackground }\n }}\n >\n \n \n\n \n \n {BsMetaUtil.getSymbolUnique(metadata)} \n \n \n \n {formatPercentArray(ltvFlat)} LTV\n \n \n \n \n \n );\n })}\n \n \n );\n })}\n \n \n );\n}\n\nfunction AutoSelection({ collateralByTag: { tokensByTags }, selected, setSelected }: TokenSelectProps) {\n return (\n \n {tokensByTags?.map(({ tag: { tag, shortLabel }, tokens }) => {\n const isSelected = tokens.every((t) => selected?.has(t.metadata.mint));\n\n function onClick() {\n setSelected((prev) => {\n const copy = new Set(prev);\n\n for (const token of tokens) {\n if (copy.has(token.metadata.mint)) {\n copy.delete(token.metadata.mint);\n } else {\n copy.add(token.metadata.mint);\n }\n }\n\n return copy;\n });\n }\n\n return (\n \n \n {tag && {shortLabel}}\n\n t.metadata)}\n />\n \n \n );\n })}\n \n );\n}\n","import { useState } from \"react\";\n\nimport {\n Column,\n DIALOG_PADDING,\n DialogWrapper,\n Row,\n SearchInput,\n SkeletonRounded,\n Text,\n VerticalScroll,\n repeatElement,\n useAppPalette,\n useTabbableList\n} from \"@bridgesplit/ui\";\nimport {\n BsMetaUtil,\n CollateralWithMaxQuote,\n isWhirlpoolMetadata,\n PriceFetchType,\n useMaxQuotesForCollateral\n} from \"@bridgesplit/abf-react\";\nimport { formatPercent, formatTokenAmount, textContains } from \"@bridgesplit/utils\";\nimport { AppDialog } from \"app/utils\";\nimport { RewardsCollateralLabel } from \"app/components/points/app/RewardsCollateralLabel\";\n\nimport { useUserCollateralForMarket } from \"../borrow\";\nimport MarketDialogHeader from \"./common\";\nimport { TokenImage } from \"../../common\";\nimport { useMarketDialog } from \"../util\";\nimport { MarketProps } from \"../types\";\n\nconst ROW_HEIGHT = 50;\nconst MAX_HEIGHT = 500;\n\nexport default function BorrowSelectCollateralDialog() {\n return (\n \n \n \n );\n}\n\nexport function BorrowSelectCollateralInternal() {\n const { close, getData } = useMarketDialog();\n\n const data = getData(AppDialog.BorrowSelectCollateral);\n const { hoverBackground } = useAppPalette();\n const [search, setSearch] = useState(\"\");\n\n const { data: collateral } = useUserCollateralForMarket(data?.marketProps as MarketProps, {\n includeLpPositions: true,\n supportedOnly: false,\n priceFetchType: PriceFetchType.Twap\n });\n\n const { data: collateralWithMaxQuotes, isFetching } = useMaxQuotesForCollateral({\n collateral: collateral,\n strategyDuration: data?.strategyDuration,\n principalMint: data?.marketProps?.principalMint,\n priceFetchType: PriceFetchType.Twap\n });\n\n const tokens = collateralWithMaxQuotes?.filter(({ metadata }) =>\n search\n ? metadata.mint === search ||\n textContains([BsMetaUtil.getName(metadata), BsMetaUtil.getSymbol(metadata)], search)\n : true\n );\n\n const { activeIndex, itemRefs, containerRef, setActiveIndex } = useTabbableList(() => {\n const token = tokens?.[activeIndex];\n if (!token) return;\n data?.setToken?.(token);\n close();\n }, tokens?.length ?? 0);\n\n //There is a typing error with the way we fetch max quotes for whirlpools, instead of showing a wrong price for max quotes, we show a message that the max quote is unavailable.\n\n // If token is a whirlpool and has more than 1 amount (user has more than 1 whirlpool position for that whirpool mint), we show a message that the max quote is unavailable.\n const maxQuoteUnavailable = (token: CollateralWithMaxQuote) => {\n return isWhirlpoolMetadata(token.metadata) && token.amount > 1;\n };\n\n return (\n \n \n\n {\n setSearch(e.target.value);\n setActiveIndex(0);\n }}\n value={search}\n />\n\n \n {isFetching || !tokens\n ? repeatElement(, 5)\n : tokens?.map((token, i) => {\n const { metadata, maxQuote } = token;\n\n return (\n (el ? (itemRefs.current[i] = el) : null)}\n key={token.metadata.mint}\n sx={{\n px: DIALOG_PADDING,\n py: 1,\n cursor: \"pointer\",\n background: i === activeIndex ? hoverBackground : undefined,\n \"&:hover\": { background: hoverBackground }\n }}\n onClick={() => {\n data?.setToken?.(token);\n close();\n }}\n spaceBetween\n >\n \n \n \n \n {BsMetaUtil.getSymbolUnique(metadata)}\n \n \n\n {maxQuote ? (\n \n {formatPercent(maxQuote?.ltv)} LTV\n \n ) : null}\n \n \n {(() => {\n if (!token.usdValue) {\n return null;\n }\n return (\n \n {token.amount}\n {maxQuote && !maxQuoteUnavailable(token) ? (\n \n Max{\" \"}\n {formatTokenAmount(maxQuote?.maxBorrow ?? 0, {\n symbol: BsMetaUtil.getSymbol(data?.marketProps.token),\n decimals: 0\n })}\n \n ) : maxQuoteUnavailable(token) ? (\n \n Max varies by position\n \n ) : (\n \n No offers\n \n )}\n \n );\n })()}\n \n );\n })}\n \n \n );\n}\n","\"use client\";\n\nimport createSvgIcon from './utils/createSvgIcon';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n d: \"M16.67 13.13C18.04 14.06 19 15.32 19 17v3h4v-3c0-2.18-3.57-3.47-6.33-3.87M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4c-.47 0-.91.1-1.33.24C14.5 5.27 15 6.58 15 8s-.5 2.73-1.33 3.76c.42.14.86.24 1.33.24m-6 0c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 7c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4m6 5H3v-.99C3.2 16.29 6.3 15 9 15s5.8 1.29 6 2z\"\n}), 'PeopleAltOutlined');","\"use client\";\n\nimport createSvgIcon from './utils/createSvgIcon';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n d: \"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26\"\n}), 'AutorenewOutlined');","\"use client\";\n\nimport createSvgIcon from './utils/createSvgIcon';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n d: \"M10 4.26v2.09C7.67 7.18 6 9.39 6 12c0 1.77.78 3.34 2 4.44V14h2v6H4v-2h2.73C5.06 16.54 4 14.4 4 12c0-3.73 2.55-6.85 6-7.74M20 4h-6v6h2V7.56c1.22 1.1 2 2.67 2 4.44h2c0-2.4-1.06-4.54-2.73-6H20zm0 13v-1c0-1.1-.9-2-2-2s-2 .9-2 2v1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1m-1 0h-2v-1c0-.55.45-1 1-1s1 .45 1 1z\"\n}), 'SyncLockOutlined');","\"use client\";\n\nimport createSvgIcon from './utils/createSvgIcon';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n d: \"M10 13c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m0-2c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3m8.5-2 1.09-2.41L22 5.5l-2.41-1.09L18.5 2l-1.09 2.41L15 5.5l2.41 1.09zm2.78 3.72L20.5 11l-.78 1.72-1.72.78 1.72.78.78 1.72.78-1.72L23 13.5zM16.25 14c0-.12 0-.25-.01-.37l1.94-1.47-2.5-4.33-2.24.94c-.2-.13-.42-.26-.64-.37L12.5 6h-5l-.3 2.41c-.22.11-.43.24-.64.37l-2.24-.95-2.5 4.33 1.94 1.47c-.01.12-.01.25-.01.37s0 .25.01.37l-1.94 1.47 2.5 4.33 2.24-.94c.2.13.42.26.64.37l.3 2.4h5l.3-2.41c.22-.11.43-.23.64-.37l2.24.94 2.5-4.33-1.94-1.47c.01-.11.01-.24.01-.36m-1.42 3.64-1.73-.73c-.56.6-1.3 1.04-2.13 1.23L10.73 20H9.27l-.23-1.86c-.83-.19-1.57-.63-2.13-1.23l-1.73.73-.73-1.27 1.49-1.13c-.12-.39-.18-.8-.18-1.23 0-.43.06-.84.18-1.23l-1.49-1.13.73-1.27 1.73.73c.56-.6 1.3-1.04 2.13-1.23L9.27 8h1.47l.23 1.86c.83.19 1.57.63 2.13 1.23l1.73-.73.73 1.27-1.49 1.13c.12.39.18.8.18 1.23 0 .43-.06.84-.18 1.23l1.49 1.13z\"\n}), 'SettingsSuggestOutlined');","\"use client\";\n\nimport createSvgIcon from './utils/createSvgIcon';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n d: \"M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3m-4.4 15.55-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05\"\n}), 'FavoriteBorderOutlined');","\"use client\";\n\nimport createSvgIcon from './utils/createSvgIcon';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n d: \"M20 15H4v-2h16zm0 2H4v2h16zm-5-6 5-3.55V5l-5 3.55L10 5 4 8.66V11l5.92-3.61z\"\n}), 'LegendToggleOutlined');","\"use client\";\n\nimport createSvgIcon from './utils/createSvgIcon';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n d: \"M19 3h-1V1h-2v2H8V1H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V9h14zM5 7V5h14v2zm5.56 10.46 5.93-5.93-1.06-1.06-4.87 4.87-2.11-2.11-1.06 1.06z\"\n}), 'EventAvailableOutlined');","import {\n PeopleAltOutlined,\n AutorenewOutlined,\n SyncLockOutlined,\n SettingsSuggestOutlined,\n FavoriteBorderOutlined,\n LoopOutlined,\n LegendToggleOutlined,\n EventAvailableOutlined,\n AccountBalanceOutlined,\n CurrencyExchangeOutlined\n} from \"@mui/icons-material\";\nimport { COPY } from \"app/constants\";\n\nexport interface OnboardingBullet {\n Icon: React.ElementType;\n header: string;\n text: string;\n}\n\nexport const LEND_BULLETS: OnboardingBullet[] = [\n {\n Icon: SettingsSuggestOutlined,\n header: \"Open positions with custom risk profiles\",\n text: `Choose ${COPY.ALLOWED_COLLATERAL_TERM}, ${COPY.STRATEGY_APY_TERM}, and max loan duration for prospective borrowers.`\n },\n {\n Icon: PeopleAltOutlined,\n header: \"Match to peer-to-peer loans\",\n text: \"Earn interest from fixed-duration loans. Positions with low rates and flexible terms will match to more loans.\"\n },\n {\n Icon: AutorenewOutlined,\n header: \"Auto-reinvest repayments\",\n text: \"Receive repayments back to your position. If a borrower defaults, the collateral is liquidated to repay the loan.\"\n },\n {\n Icon: SyncLockOutlined,\n header: \"Withdraw early\",\n text: \"Collect partial interest by selling the loan back to the market before the due date.\"\n }\n];\n\nexport const BORROW_BULLETS: OnboardingBullet[] = [\n {\n Icon: LoopOutlined,\n header: \"Borrow peer-to-peer\",\n text: \"Supply collateral and maintain health for each separate borrow. No need to manage a global position.\"\n },\n {\n Icon: LegendToggleOutlined,\n header: \"Enjoy fixed rates\",\n text: \"Pay the same APY for your entire loan. Repay only accrued interest when ending a loan early.\"\n },\n {\n Icon: FavoriteBorderOutlined,\n header: \"Monitor loan health\",\n text: \"If your collateral value drops, avoid liquidation by topping up or partially repaying.\"\n },\n {\n Icon: EventAvailableOutlined,\n header: \"Repay on time\",\n text: \"Repay by the due date or your loan will auto-extend. If a new offer isn't available, collateral will be liquidated.\"\n }\n];\n\nexport const LEND_VAULT_BULLETS: OnboardingBullet[] = [\n {\n Icon: AccountBalanceOutlined,\n header: \"Deposit in a Loopscale Vault\",\n text: \"Each vault has a unique risk profile and strategy curated by a third-party risk expert.\"\n },\n {\n Icon: LegendToggleOutlined,\n header: \"Assets are supplied to Loopscale Markets\",\n text: \"Vaults allocate deposits to curator-approved markets. Major strategy updates take effect after a time delay.\"\n },\n {\n Icon: CurrencyExchangeOutlined,\n header: \"Earn yield from borrowers\",\n text: \"Vaults generate returns from interest paid by borrowers borrowing from underlying markets.\"\n },\n {\n Icon: EventAvailableOutlined,\n header: \"Withdraw your earnings at any time\",\n text: \"If the vault has low liquidity, choose between an instant withdrawal with a small fee or join a withdrawal queue.\"\n }\n];\n","import { Column, Icon, Row, Text, TextButton, TextExternalLink } from \"@bridgesplit/ui\";\n\nimport { OnboardingBullet } from \"./constants\";\n\nexport function GuideHeader({\n title,\n description,\n close\n}: {\n title: string;\n description?: string;\n close?: () => void;\n}) {\n return (\n \n \n \n \n \n {close && (\n \n \n \n )}\n \n \n {title}\n {description && (\n \n {description}\n \n )}\n \n \n );\n}\n\nexport function GuideBullets({ bullets, iconSize = \"30px\" }: { bullets: OnboardingBullet[]; iconSize?: string }) {\n return (\n \n {bullets.map(({ Icon, header, text }, i) => (\n \n \n \n \n \n {header}\n \n \n {text}\n \n \n ))}\n \n );\n}\n\nexport function GuideFooter({ docs }: { docs: string }) {\n return (\n \n Still have questions?\n Read our docs\n \n );\n}\n","import { OnboardingStep } from \"@bridgesplit/abf-react\";\nimport { Column, Button } from \"@bridgesplit/ui\";\nimport { useAppDialog } from \"app/utils\";\nimport { AppTracking, TrackEvent } from \"app/types\";\n\nimport { GuideBullets, GuideFooter } from \"./common\";\nimport { OnboardingBullet } from \"./constants\";\nimport { DialogHeaderWithBack, HeaderWithClose } from \"../../common\";\n\nexport default function RoleGuide({\n step,\n forcedTitle,\n unforcedTitle,\n bullets,\n docs,\n next,\n isForced,\n isNested,\n trackingEvent\n}: {\n step: OnboardingStep;\n forcedTitle: string;\n unforcedTitle: string;\n bullets: OnboardingBullet[];\n docs: string;\n next: (step: OnboardingStep) => void;\n isForced: boolean;\n isNested?: boolean;\n trackingEvent: TrackEvent;\n}) {\n const { close } = useAppDialog();\n\n const handleClose = async () => {\n next(step);\n };\n const title = isForced ? forcedTitle : unforcedTitle;\n\n return (\n <>\n {isNested ? (\n \n ) : (\n \n )}\n\n \n \n {isForced && (\n \n Continue\n \n )}\n \n \n \n );\n}\n","import { useState } from \"react\";\n\nimport { ToggleSpacedButtons } from \"@bridgesplit/ui\";\n\nimport { GuideBullets, GuideFooter } from \"./common\";\nimport { OnboardingBullet } from \"./constants\";\nimport { DialogHeaderWithBack, HeaderWithClose } from \"../../common\";\n\nexport default function MultiRoleGuide({\n title,\n sections,\n close,\n isNested\n}: {\n close: () => void;\n title: string;\n isNested?: boolean;\n sections: { label: string; bullets: OnboardingBullet[]; docs: string }[];\n}) {\n const [selectedIndex, setSelectedIndex] = useState(0);\n const activeSection = sections[selectedIndex];\n return (\n <>\n {isNested ? (\n \n ) : (\n \n )}\n\n ({\n label,\n value: i\n }))}\n value={selectedIndex}\n setValue={(index) => {\n setSelectedIndex(index);\n }}\n />\n\n \n \n \n );\n}\n","\"use client\";\n\nimport createSvgIcon from './utils/createSvgIcon';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon([/*#__PURE__*/_jsx(\"path\", {\n d: \"M19.03 3.56c-1.67-1.39-3.74-2.3-6.03-2.51v2.01c1.73.19 3.31.88 4.61 1.92zM11 3.06V1.05c-2.29.2-4.36 1.12-6.03 2.51l1.42 1.42C7.69 3.94 9.27 3.25 11 3.06M4.98 6.39 3.56 4.97C2.17 6.64 1.26 8.71 1.05 11h2.01c.19-1.73.88-3.31 1.92-4.61M20.94 11h2.01c-.21-2.29-1.12-4.36-2.51-6.03l-1.42 1.42c1.04 1.3 1.73 2.88 1.92 4.61M7 12l3.44 1.56L12 17l1.56-3.44L17 12l-3.44-1.56L12 7l-1.56 3.44z\"\n}, \"0\"), /*#__PURE__*/_jsx(\"path\", {\n d: \"M12 21c-3.11 0-5.85-1.59-7.46-4H7v-2H1v6h2v-2.7c1.99 2.84 5.27 4.7 9 4.7 4.87 0 9-3.17 10.44-7.56l-1.96-.45C19.25 18.48 15.92 21 12 21\"\n}, \"1\")], 'AutoModeOutlined');","import { BsMetaUtil, formatLeverage, isExponentLoop, isRatexLoop, LoopExpanded } from \"@bridgesplit/abf-react\";\nimport { EventAvailableOutlined, TuneOutlined, AutoGraphOutlined, AutoModeOutlined } from \"@mui/icons-material\";\n\nimport { OnboardingBullet } from \"./constants\";\nimport { LoopRouteType } from \"@bridgesplit/abf-sdk\";\n\nexport function generateMarketGuideBullets(loopExpanded: LoopExpanded | undefined): OnboardingBullet[] {\n if (!loopExpanded) return [];\n const collateralSymbol = BsMetaUtil.getSymbol(loopExpanded.collateralToken);\n const principalSymbol = BsMetaUtil.getSymbol(loopExpanded.principalToken);\n const multiplier = loopExpanded?.loopVault.maxLeverage;\n\n const leverageFormatted = formatLeverage(multiplier ?? 0);\n const protocol = (() => {\n switch (loopExpanded.loopVault.routeType) {\n case LoopRouteType.Exponent:\n return \"Exponent\";\n case LoopRouteType.Ratex:\n return \"RateX\";\n default:\n return \"\";\n }\n })();\n\n if (isExponentLoop(loopExpanded) || isRatexLoop(loopExpanded)) {\n return [\n {\n Icon: TuneOutlined,\n header: \"Select leverage and deposit\",\n text: `Choose up to ${leverageFormatted} leverage and deposit ${collateralSymbol}`\n },\n {\n Icon: AutoModeOutlined,\n header: `Increase your ${collateralSymbol} exposure`,\n text: `Borrow ${principalSymbol} to increase your ${collateralSymbol} exposure, swapping for ${collateralSymbol} at the ${protocol} market price`\n },\n {\n Icon: AutoGraphOutlined,\n header: `${collateralSymbol} appreciates as it reaches expiry`,\n text: `Buy ${principalSymbol} at a discount in the form of ${collateralSymbol}. The APY earned is inclusive of the fee if held to maturity`\n },\n {\n Icon: EventAvailableOutlined,\n header: \"Close position at any time\",\n text: `At the end of the term, 1 ${collateralSymbol} is redeemable for 1 ${principalSymbol}. In the interim, you may withdraw but the exchange rate + fees will vary`\n }\n ];\n }\n return [\n {\n Icon: TuneOutlined,\n header: \"Select leverage and deposit\",\n text: `Choose up to ${leverageFormatted} leverage and deposit ${collateralSymbol}`\n },\n {\n Icon: AutoModeOutlined,\n header: `Increase your ${collateralSymbol} exposure`,\n text: `Borrow ${principalSymbol} against your ${collateralSymbol} and swap it for more ${collateralSymbol}`\n },\n {\n Icon: AutoGraphOutlined,\n header: `Earn yield when ${collateralSymbol} outperforms ${principalSymbol}`,\n text: `Your position earns leveraged ${collateralSymbol} fees while borrowing ${principalSymbol} at fixed rates`\n },\n {\n Icon: EventAvailableOutlined,\n header: \"Close position at any time\",\n text: `To close, you'll swap your ${collateralSymbol} back to ${principalSymbol}, repay the loan, and keep any remaining ${collateralSymbol} as profit`\n }\n ];\n}\n","import { useCallback } from \"react\";\n\nimport { DialogWrapper } from \"@bridgesplit/ui\";\nimport { MarketGuideMode, OnboardingStep, useMarkOnboardingStepComplete } from \"@bridgesplit/abf-react\";\nimport { AppDialog } from \"app/utils\";\nimport { COPY, DOCS } from \"app/constants\";\nimport { TrackEvent } from \"app/types\";\n\nimport { LEND_BULLETS, BORROW_BULLETS, LEND_VAULT_BULLETS } from \"./constants\";\nimport RoleGuide from \"./RoleGuide\";\nimport { useMarketDialog } from \"../util\";\nimport MultiRoleGuide from \"./MultiRoleGuide\";\nimport { generateMarketGuideBullets } from \"./util\";\n\nexport default function MarketOnboardingDialog() {\n const { getData } = useMarketDialog();\n const data = getData(AppDialog.MarketGuide);\n\n return (\n \n \n \n );\n}\n\nexport function MarketOnboardingDialogInternal() {\n const { getData, close } = useMarketDialog();\n const data = getData(AppDialog.MarketGuide);\n\n const { markAsComplete } = useMarkOnboardingStepComplete();\n\n const mode = data?.mode;\n\n const next = useCallback(\n (step: OnboardingStep) => {\n close();\n\n // always update the onboarding step\n if (data?.isForced) {\n markAsComplete([step]);\n }\n },\n [close, data?.isForced, markAsComplete]\n );\n\n switch (mode) {\n case MarketGuideMode.Borrow:\n return (\n \n );\n case MarketGuideMode.Lend:\n return (\n \n );\n case MarketGuideMode.BorrowAndLend:\n return (\n \n );\n case MarketGuideMode.Earn:\n return (\n \n );\n case MarketGuideMode.LendVault:\n return (\n \n );\n default:\n return null;\n }\n}\n","import { useState } from \"react\";\n\nimport { Button, DialogWrapper, LabelWrapper, PercentInput, StatColumn } from \"@bridgesplit/ui\";\nimport { formatPercent, PERCENT_DECIMALS } from \"@bridgesplit/utils\";\nimport { COPY } from \"app/constants\";\nimport { AppDialog } from \"app/utils\";\n\nimport { useMarketDialog } from \"../util\";\nimport MarketDialogHeader from \"./common\";\n\nexport default function LendApyDialog() {\n return (\n \n \n \n );\n}\n\nexport function LendApyDialogInternal() {\n const { getData, close } = useMarketDialog();\n const data = getData(AppDialog.LendApy);\n\n const [apy, setApy] = useState(data?.currentApy);\n\n return (\n <>\n \n \n \n \n\n \n {\n data?.setApy(apy);\n close();\n }}\n >\n Save APY\n \n \n );\n}\n","import { ReactNode } from \"react\";\n\nimport { AppDialog } from \"app/utils\";\n\nimport { useMarketContext } from \"../common\";\nimport { SelectTokenDialogInternal } from \"./SelectTokenDialog\";\nimport { MultiSelectCollateralInternal } from \"./MultiSelectCollateralDialog\";\nimport { BorrowSelectCollateralInternal } from \"./BorrowSelectCollateralDialog\";\nimport { MarketOnboardingDialogInternal } from \"../guide/MarketGuideDialog\";\nimport { LendApyDialogInternal } from \"./LendApyDialog\";\n\nexport default function MarketDialogWrapper({ children }: { children: ReactNode }) {\n const { internalOpenDialog } = useMarketContext();\n switch (internalOpenDialog?.type) {\n case AppDialog.SelectToken:\n return ;\n case AppDialog.MultiSelectCollateral:\n return ;\n case AppDialog.BorrowSelectCollateral:\n return ;\n case AppDialog.MarketGuide:\n return ;\n case AppDialog.LendApy:\n return ;\n default:\n return <>{children};\n }\n}\n","import { useState } from \"react\";\n\nimport { BsMetaUtil, MarketGuideMode, RoleView } from \"@bridgesplit/abf-react\";\nimport { DialogWrapper } from \"@bridgesplit/ui\";\nimport { TokenListMetadata } from \"@bridgesplit/abf-sdk\";\nimport { AppDialog, useAppDialog } from \"app/utils\";\n\nimport { MarketDialogHeader, MarketProvider, QuotesProvider } from \"./common\";\nimport { LendCard, MarketLendProvider } from \"./lend\";\nimport { MarketDialogWrapper } from \"./dialog\";\n\nexport default function LendDialog() {\n const { getData } = useAppDialog();\n const data = getData(AppDialog.Lend);\n\n const [tokenOverride, setToken] = useState();\n\n const token = tokenOverride ?? data?.token;\n const principalMint = token?.mint;\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n );\n}\n","import { useState } from \"react\";\n\nimport { BsMetaUtil, RoleView } from \"@bridgesplit/abf-react\";\nimport { DialogWrapper } from \"@bridgesplit/ui\";\nimport { TokenListMetadata } from \"@bridgesplit/abf-sdk\";\nimport { AppDialog, useAppDialog } from \"app/utils\";\n\nimport { MarketProvider, QuotesProvider } from \"./common\";\nimport { MarketDialogWrapper } from \"./dialog\";\nimport { BorrowStep, BorrowStepper, MarketBorrowProvider } from \"./borrow\";\n\nexport default function BorrowDialog() {\n const { getData } = useAppDialog();\n const data = getData(AppDialog.Borrow);\n\n const [tokenOverride, setToken] = useState();\n const [step, setStep] = useState(BorrowStep.Collateral);\n const token = tokenOverride ?? data?.token;\n const principalMint = token?.mint;\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n );\n}\n","import { useState } from \"react\";\n\nimport { BsMetaUtil, RoleView } from \"@bridgesplit/abf-react\";\nimport { DialogWrapper } from \"@bridgesplit/ui\";\nimport { TokenListMetadata } from \"@bridgesplit/abf-sdk\";\nimport { AppDialog, useAppDialog } from \"app/utils\";\n\nimport { MarketProvider, QuotesProvider } from \"./common\";\nimport { UpdateApyAndCollateralCard, MarketLendProvider } from \"./lend\";\nimport { MarketDialogWrapper } from \"./dialog\";\nimport { DialogHeader } from \"../common\";\n\nexport default function UpdateApyAndCollateralDialog() {\n const { getData } = useAppDialog();\n const data = getData(AppDialog.UpdateStrategyApyAndCollateral);\n const [, setToken] = useState();\n\n if (!data?.token || !data?.strategy) return null;\n const principalMint = data?.token?.mint;\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n );\n}\n","import { lazy } from \"@bridgesplit/ui\";\n\nimport LendDialog from \"./LendDialog\";\nimport BorrowDialog from \"./BorrowDialog\";\nimport MarketGuideDialog from \"./guide/MarketGuideDialog\";\nimport UpdateApyAndCollateralDialog from \"./UpdateApyAndCollateralDialog\";\n\nconst MarketDetail = lazy(() => import(\"./MarketDetail\"));\n\nexport { MarketDetail, LendDialog, MarketGuideDialog, BorrowDialog, UpdateApyAndCollateralDialog };\n\nexport * from \"./dialog\";\nexport * from \"./borrow\";\n","import { BsMetaUtil, TokenBalanceExpandedWithPrice } from \"@bridgesplit/abf-react\";\nimport { Column, Row, Text, repeatElement } from \"@bridgesplit/ui\";\nimport { formatUsd } from \"@bridgesplit/utils\";\n\nimport { TokenImage } from \"../common\";\n\nexport default function FungibleAssets({ deposits }: { deposits: TokenBalanceExpandedWithPrice[] | undefined }) {\n const fungibleAssets = deposits?.filter((d) => BsMetaUtil.isFungible(d.metadata));\n\n return (\n <>\n {!deposits && repeatElement()}\n {fungibleAssets?.map((deposit) => (\n \n ))}\n \n );\n}\n\nfunction TokenDisplay({ deposit }: { deposit: TokenBalanceExpandedWithPrice | undefined }) {\n return (\n \n \n \n \n {BsMetaUtil.getSymbolUnique(deposit?.metadata)}\n {deposit?.usdPrice && (\n \n {formatUsd(deposit.usdPrice)}\n \n )}\n \n \n\n \n \n {BsMetaUtil.formatAmount(deposit?.metadata, deposit?.amount, { hideSymbol: true })}\n \n {deposit?.usdAmount && (\n \n {formatUsd(deposit.usdAmount)}\n \n )}\n \n \n );\n}\n","\"use client\";\n\nimport createSvgIcon from './utils/createSvgIcon';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon( /*#__PURE__*/_jsx(\"path\", {\n d: \"M14.39 11 16 12.61V11zM17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.27-.77 2.37-1.87 2.84l1.4 1.4C21.05 15.36 22 13.79 22 12c0-2.76-2.24-5-5-5M2 4.27l3.11 3.11C3.29 8.12 2 9.91 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4.01 1.41-1.41L3.41 2.86z\"\n}), 'LinkOffOutlined');","import {\n FONT_SIZES,\n Icon,\n Image,\n Row,\n Text,\n TextButton,\n TextColor,\n TextVariant,\n Tooltip,\n TooltipText,\n useCopyAddress\n} from \"@bridgesplit/ui\";\nimport { LinkOffOutlined, LinkOutlined } from \"@mui/icons-material\";\nimport { useActiveWallet } from \"@bridgesplit/abf-react\";\nimport { formatAddress } from \"@bridgesplit/utils\";\nimport { useWallet } from \"@solana/wallet-adapter-react\";\nimport { AppDialog, useAppDialog } from \"app/utils\";\n\nexport default function WalletInfo({\n variant = \"body1\",\n color = \"body\"\n}: {\n variant?: TextVariant;\n color?: TextColor;\n}) {\n const { activeWallet: registeredWallet } = useActiveWallet();\n const { wallet: connectedWallet, disconnect } = useWallet();\n const { open } = useAppDialog();\n const copy = useCopyAddress();\n\n if (!registeredWallet) return null;\n\n const addressToCopy = registeredWallet;\n if (addressToCopy) {\n return (\n copy(addressToCopy)} spacing={1}>\n \n {formatAddress(addressToCopy)}\n \n \n \n \n \n );\n }\n\n if (!connectedWallet?.adapter.publicKey) {\n return (\n \n copy(registeredWallet)}\n variant={variant}\n color={color}\n loadingWidth=\"120px\"\n >\n {formatAddress(registeredWallet)}\n \n \n open(AppDialog.WalletConnect, undefined)}\n color={color}\n >\n \n \n \n \n );\n }\n const { icon, publicKey } = connectedWallet.adapter;\n const isNonRegisteredWallet = publicKey.toString() !== registeredWallet;\n\n return (\n \n \n\n copy(registeredWallet)}\n variant={variant}\n helpText={undefined}\n icon={false}\n color={isNonRegisteredWallet ? \"error\" : color}\n loading={!publicKey}\n loadingWidth=\"120px\"\n >\n {formatAddress(publicKey?.toString())}\n \n \n \n \n \n \n \n );\n}\n","import { useMemo } from \"react\";\n\nimport { Column, DialogWrapper, Text } from \"@bridgesplit/ui\";\nimport {\n TokenBalanceExpandedWithPrice,\n useActiveWallet,\n useOraclePrices,\n useWalletAvailableAssets\n} from \"@bridgesplit/abf-react\";\nimport { formatUsd } from \"@bridgesplit/utils\";\n\nimport FungibleAssets from \"./FungibleAssets\";\nimport WalletInfo from \"./WalletInfo\";\nimport { TransferButtons } from \"../common\";\n\nexport default function WalletDialog() {\n return (\n \n \n \n );\n}\n\nfunction Content() {\n const { activeWallet } = useActiveWallet();\n\n const wallet = useWalletAvailableAssets(activeWallet, {\n skip: !activeWallet,\n fullSolBalance: true,\n includeLpPositions: true\n });\n\n const tokens = wallet;\n\n const { getOracle } = useOraclePrices(tokens?.map((t) => t.metadata.mint));\n const tokensWithPrices = useMemo(\n () =>\n tokens\n ?.map((t): TokenBalanceExpandedWithPrice => {\n const oracle = getOracle(t.metadata.mint);\n return { ...t, usdAmount: oracle?.getUsdAmount(t.amount), usdPrice: oracle?.usdPrice };\n })\n .sort((a, b) => (b.usdAmount || 0) - (a.usdAmount || 0)),\n [getOracle, tokens]\n );\n\n const totalValue = tokensWithPrices?.reduce((prev, curr) => prev + (curr.usdAmount ?? 0), 0);\n\n return (\n <>\n \n \n {formatUsd(totalValue)}\n \n \n \n\n \n\n \n \n );\n}\n\nfunction WalletAssets({ assets }: { assets: TokenBalanceExpandedWithPrice[] | undefined }) {\n return (\n \n {assets?.length === 0 && You don't own any supported assets}\n \n \n );\n}\n","import { useState } from \"react\";\n\nimport { Column, DialogWrapper, TabsSelect } from \"@bridgesplit/ui\";\nimport { AppDialog, useAppDialog } from \"app/utils\";\n\nimport { VaultWithdraw } from \"../withdraw\";\nimport { VaultDeposit } from \"../deposit\";\nimport { VaultProvider } from \"../VaultContext\";\n\nexport default function VaultManageEscrowDialog() {\n const { getData } = useAppDialog();\n const data = getData(AppDialog.VaultManageEscrow);\n const [sideState, setSide] = useState<\"deposit\" | \"withdraw\" | undefined>(undefined);\n const side = sideState ?? data?.side ?? \"deposit\";\n\n return (\n \n setSide(s as \"deposit\" | \"withdraw\")}\n options={[\n { value: \"deposit\", label: \"Deposit\" },\n { value: \"withdraw\", label: \"Withdraw\" }\n ]}\n />\n \n \n {side === \"deposit\" && }\n {side === \"withdraw\" && }\n \n \n \n );\n}\n","import { useState } from \"react\";\n\nimport { percentUiToDecimals, percentDecimalsToUi } from \"@bridgesplit/utils\";\nimport { DialogWrapper, LabelWrapper, Button } from \"@bridgesplit/ui\";\nimport { AppDialog, useAppDialog } from \"app/utils\";\nimport { HeaderWithClose, Slippage } from \"app/components/common\";\nimport { COPY } from \"app/constants\";\n\nexport function VaultWithdrawSlippageDialog() {\n const { getData, close } = useAppDialog();\n\n const data = getData(AppDialog.VaultWithdrawSlippage);\n const [slippageUi, setSlippageUi] = useState(percentDecimalsToUi(data?.slippageSetting));\n\n return (\n \n \n \n {\n if (val === undefined) return;\n setSlippageUi(val);\n }}\n />\n \n {\n if (slippageUi === undefined) return;\n data?.setSlippageSetting(percentUiToDecimals(slippageUi));\n close();\n }}\n >\n Save setting\n \n \n );\n}\n","import { AppDialog, useAppDialog } from \"app/utils\";\n\nimport { AirtableInterestDialog } from \"./portfolio\";\nimport { TransactionsDialog, TransactionSettingsDialog, WalletConnectDialog } from \"./transactions\";\nimport { ConnectDialog } from \"./auth\";\nimport {\n StrategyDeleteDialog,\n StrategyManageEscrowDialog,\n StrategySettingsDialog,\n StrategyTermsDialog\n} from \"./strategy\";\nimport {\n BorrowDialog,\n BorrowSelectCollateralDialog,\n LendApyDialog,\n LendDialog,\n MarketGuideDialog,\n MultiSelectCollateralDialog,\n SelectTokenDialog,\n UpdateApyAndCollateralDialog\n} from \"./market-detail\";\nimport { ReferralEnterCodeDialog } from \"./points\";\nimport { LoanActionDialog, RefinanceSettingsDialog } from \"./loan\";\nimport { WalletDialog } from \"./assets\";\nimport { LoopExternalTransfersDialog, WindSettingsDialog } from \"./loop\";\nimport { AccessWaitlistDialog } from \"./access\";\nimport { DialectNotificationDialog } from \"./dialect\";\nimport VaultManageEscrowDialog from \"./vault/dialog/VaultManageEscrowDialog\";\nimport { VaultWithdrawSlippageDialog } from \"./vault/withdraw/VaultWithdrawSlippageDialog\";\n\nexport default function AppDialogs() {\n const { openIdentifiers } = useAppDialog();\n if (!openIdentifiers.length) return null;\n\n return (\n <>\n {openIdentifiers.map((identifier) => (\n \n ))}\n \n );\n}\n\nfunction OpenDialog({ identifier }: { identifier: AppDialog }) {\n switch (identifier) {\n case AppDialog.Connect:\n return ;\n case AppDialog.TransactionSender:\n return ;\n case AppDialog.AirtableInterestForm:\n return ;\n case AppDialog.Wallet:\n return ;\n case AppDialog.StrategyDelete:\n return ;\n case AppDialog.StrategyManageEscrow:\n return ;\n\n case AppDialog.StrategyTerms:\n return ;\n case AppDialog.StrategySettings:\n return ;\n case AppDialog.MultiSelectCollateral:\n return ;\n case AppDialog.SelectToken:\n return ;\n case AppDialog.BorrowSelectCollateral:\n return ;\n case AppDialog.WalletConnect:\n return ;\n\n case AppDialog.ReferralEnterCode:\n return ;\n case AppDialog.LoanActions:\n return ;\n case AppDialog.RefinanceSettings:\n return ;\n case AppDialog.Lend:\n return ;\n case AppDialog.UpdateStrategyApyAndCollateral:\n return ;\n case AppDialog.Borrow:\n return ;\n\n case AppDialog.MarketGuide:\n return ;\n\n case AppDialog.LendApy:\n return ;\n case AppDialog.WindSettings:\n return ;\n case AppDialog.LoopExternalTransfers:\n return ;\n case AppDialog.AccessLevelNotConnected:\n return ;\n case AppDialog.AccessLevelWaitlist:\n return ;\n case AppDialog.Notifications:\n return ;\n\n case AppDialog.VaultManageEscrow:\n return ;\n case AppDialog.VaultWithdrawSlippage:\n return ;\n case AppDialog.TransactionSettings:\n return ;\n default:\n return null;\n }\n}\n"],"names":["ConnectDialog","_jsx","DialogWrapper","children","Verified","LOGIN_ERRORS","close","useAppDialog","resetCookies","useAuthStorage","connected","setConnected","useState","userMe","useUser","skip","errorMessage","setErrorMessage","useEffect","error","_parseErrorFromOption","message","parseErrorFromOptions","Result","err","unwrapErrMessage","data","_jsxs","_Fragment","Column","spacing","alignItems","textAlign","Text","variant","COPY","CONNECT_PROMPT","color","CONNECT_DESCRIPTION","WalletButtons","onSelect","loading","isFetching","TagTextAlert","icon","lazy","MarketDialogHeader","header","padding","marketContext","useMarketContextOptional","useMarketDialog","isDialog","DialogHeaderWithBack","sx","px","DIALOG_PADDING","undefined","back","HeaderWithClose","SelectTokenDialogInternal","_data$tokens","_data$header","getData","AppDialog","SelectToken","hoverBackground","useAppPalette","search","setSearch","tokens","filter","token","mint","textContains","BsMetaUtil","getName","getSymbol","mx","SearchInput","placeholder","onChange","e","target","value","VerticalScroll","maxHeight","MAX_DIALOG_HEIGHT","map","t","Row","py","cursor","background","onClick","setToken","spaceBetween","TokenImage","metadata","size","SelectTokenDialog","MultiSelectCollateralDialog","MultiSelectCollateralInternal","Mode","_data$collateral","_selected$size","MultiSelectCollateral","selected","setSelected","modeState","setMode","defaultMode","isAdvanced","Advanced","Auto","mode","collateral","useCollateralWithTerms","principalMint","marketInformationAddresses","customMarketInformation","existingStrategy","collateralByTag","useCollateralTokensByTag","marketInfoCollateralMints","c","supportedCollateral","includes","Set","tokensByTags","props","changesMade","deepCompareSets","ToggleSpacedButtons","setValue","options","Object","values","CustomSelection","assign","AutoSelection","TextButton","repeatElement","SkeletonRounded","height","AppButton","isTransaction","asyncCta","setCollateralAsync","onClickWithResult","async","has","errFromMessage","MISSING_PARAM_ERROR","disabled","setCollateral","filtered","tag","getSearchFromMetadata","length","i","selectedTokens","allSelected","label","Checkbox","indeterminate","checked","prev","dupe","key","delete","add","Divider","_ref","terms","_objectWithoutPropertiesLoose","_excluded","ltvFlat","ltvInfo","ltv","allLtvInfos","isSelected","getSymbolUnique","RewardsCollateralLabel","formatPercentArray","StaticGrid","gridGap","mobileColumns","columns","shortLabel","every","OutlinedOption","copy","p","OverlappingMetadataImages","maxLength","plusVariant","ROW_HEIGHT","MAX_HEIGHT","BorrowSelectCollateralDialog","BorrowSelectCollateralInternal","_data$marketProps","_tokens$length","BorrowSelectCollateral","useUserCollateralForMarket","marketProps","includeLpPositions","supportedOnly","priceFetchType","PriceFetchType","Twap","collateralWithMaxQuotes","useMaxQuotesForCollateral","strategyDuration","activeIndex","itemRefs","containerRef","setActiveIndex","useTabbableList","maxQuoteUnavailable","isWhirlpoolMetadata","amount","forceFocus","ref","my","maxQuote","el","current","formatPercent","usdValue","formatTokenAmount","_maxQuote$maxBorrow","maxBorrow","symbol","decimals","createSvgIcon","d","LEND_BULLETS","Icon","SettingsSuggestOutlined","text","ALLOWED_COLLATERAL_TERM","STRATEGY_APY_TERM","PeopleAltOutlined","AutorenewOutlined","SyncLockOutlined","BORROW_BULLETS","LoopOutlined","LegendToggleOutlined","FavoriteBorderOutlined","EventAvailableOutlined","LEND_VAULT_BULLETS","AccountBalanceOutlined","CurrencyExchangeOutlined","GuideBullets","bullets","iconSize","width","ml","GuideFooter","docs","display","gap","TextExternalLink","href","RoleGuide","step","forcedTitle","unforcedTitle","next","isForced","isNested","trackingEvent","handleClose","title","Button","fullWidth","tracking","AppTracking","from","MultiRoleGuide","sections","selectedIndex","setSelectedIndex","activeSection","index","generateMarketGuideBullets","loopExpanded","collateralSymbol","collateralToken","principalSymbol","principalToken","multiplier","loopVault","maxLeverage","leverageFormatted","formatLeverage","protocol","routeType","LoopRouteType","Exponent","Ratex","isExponentLoop","isRatexLoop","TuneOutlined","AutoModeOutlined","AutoGraphOutlined","MarketOnboardingDialog","MarketGuide","preventClose","MarketOnboardingDialogInternal","markAsComplete","useMarkOnboardingStepComplete","useCallback","MarketGuideMode","Borrow","isNestedDialog","OnboardingStep","DOCS","borrowTutorial","TrackEvent","SubmitMarketGuideBorrow","Lend","lendTutorial","SubmitMarketGuideLend","BorrowAndLend","Earn","LOOP_TERM_PLURAL","toLocaleLowerCase","SubmitMarketGuideLoops","LendVault","LEND_VAULTS_TERM","lendVaultTutorial","SubmitMarketGuideLendVault","LendApyDialog","LendApyDialogInternal","LendApy","apy","setApy","currentApy","LabelWrapper","tooltip","STRATEGY_APY_TOOLTIP","PercentInput","StatColumn","stats","caption","defaultRate","customDecimals","PERCENT_DECIMALS","marketMinApy","MarketDialogWrapper","internalOpenDialog","useMarketContext","type","LendDialog","tokenOverride","MarketProvider","selectToken","view","RoleView","QuotesProvider","MarketLendProvider","LendCard","BorrowDialog","setStep","BorrowStep","Collateral","MarketBorrowProvider","BorrowStepper","UpdateApyAndCollateralDialog","_data$token","UpdateStrategyApyAndCollateral","strategy","DialogHeader","description","centerAlign","UpdateApyAndCollateralCard","FungibleAssets","deposits","fungibleAssets","isFungible","TokenDisplay","deposit","usdPrice","loadingWidth","formatUsd","formatAmount","hideSymbol","usdAmount","WalletInfo","activeWallet","registeredWallet","useActiveWallet","wallet","connectedWallet","disconnect","useWallet","open","useCopyAddress","addressToCopy","isLink","underlineLink","formatAddress","adapter","publicKey","Tooltip","WalletConnect","LinkOutlined","isNonRegisteredWallet","toString","Image","src","FONT_SIZES","body2","TooltipText","helpText","LinkOffOutlined","WalletDialog","Content","useWalletAvailableAssets","fullSolBalance","getOracle","useOraclePrices","tokensWithPrices","useMemo","oracle","getUsdAmount","sort","a","b","totalValue","reduce","curr","_curr$usdAmount","TransferButtons","includeStakedSol","WalletAssets","assets","VaultManageEscrowDialog","VaultManageEscrow","sideState","setSide","side","TabsSelect","wrapperSx","pt","s","VaultProvider","vaultAddress","vaultExpanded","vault","address","VaultDeposit","VaultWithdraw","VaultWithdrawSlippageDialog","VaultWithdrawSlippage","slippageUi","setSlippageUi","percentDecimalsToUi","slippageSetting","VAULT_WITHDRAW_SETTINGS","SLIPPAGE_TOOLTIP","Slippage","Input","presets","val","setSlippageSetting","percentUiToDecimals","AppDialogs","openIdentifiers","identifier","OpenDialog","Connect","TransactionSender","TransactionsDialog","AirtableInterestForm","AirtableInterestDialog","Wallet","StrategyDelete","StrategyDeleteDialog","StrategyManageEscrow","StrategyManageEscrowDialog","StrategyTerms","StrategyTermsDialog","StrategySettings","StrategySettingsDialog","WalletConnectDialog","ReferralEnterCode","ReferralEnterCodeDialog","LoanActions","LoanActionDialog","RefinanceSettings","RefinanceSettingsDialog","MarketGuideDialog","WindSettings","WindSettingsDialog","LoopExternalTransfers","LoopExternalTransfersDialog","AccessLevelNotConnected","AccessLevelWaitlist","AccessWaitlistDialog","Notifications","DialectNotificationDialog","TransactionSettings","TransactionSettingsDialog"],"sourceRoot":""}