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M,EAAAI,IAAA,EAACC,EAAAA,CAAKA,CAAAA,CAACC,IAAK,YACTZ,EAAE,mBAAoB,CAAEmM,IAAAA,CAAI,GAC7B,GAAA7L,EAAAC,GAAA,EAACyM,EAAAA,CAAOA,CAAAA,CACNvF,MAAOzH,EAAE,8BAA+B,CACtC4G,MAAOgD,EACPqD,MAAOpD,CACT,GACAqD,UAAS,YAET,GAAA5M,EAAAC,GAAA,EAAC4M,EAAAA,CAAGA,CAAAA,UACF,GAAA7M,EAAAC,GAAA,EAAC6M,EAAAA,GAA0BA,CAAAA,CAACtM,KAAM,cAK1C,GAAAR,EAAAC,GAAA,EAACY,EAAAA,CAAIA,CAAAA,CAAC6E,GAAI,cACMhG,EAAE,IAAf6I,EAAe,eAAoB,mBAEtC,GAAAvI,EAAAC,GAAA,EAACoH,EAAMA,CAACC,QAASA,EAASC,QAASA,IACnC,GAAAvH,EAAAI,IAAA,EAAC2M,EAAAA,CAAKA,CAAAA,CAAC3H,EAAG,KAAM+C,GAAI,KAAMN,WAAU,aAClC,GAAA7H,EAAAC,GAAA,EAAC8H,EAAOA,CAACC,OAAQO,IAzCvB,IAAIA,GAAenC,EAMZ,GAAApG,EAAAC,GAAA,EAAC+M,EAAAA,EAAOA,CAAAA,CAAqB1F,QAASA,EAASlB,KAAMA,GAAvC5B,EAAUjD,GAAG,EAJ9B,GAAAvB,EAAAC,GAAA,EAACgN,EAAAA,EAAOA,CAAAA,CAAqB3F,QAASA,EAASC,QAASA,GAA1C/C,EAAUjD,GAAG,UA6CnC,qBCjHA2L,EAAAC,OAAA,EAAkB,sDCAlBD,EAAAC,OAAA,EAAkB","sources":["webpack://_N_E/?b8bc","webpack://_N_E/./components/TutorialLink/TutorialLink.tsx","webpack://_N_E/./components/TutorialLink/index.ts","webpack://_N_E/./lib/hooks/useTutorials.ts","webpack://_N_E/./node_modules/@mantine/hooks/esm/use-scroll-into-view/utils/ease-in-out-quad.mjs","webpack://_N_E/./node_modules/@mantine/hooks/esm/use-scroll-into-view/utils/get-relative-position.mjs","webpack://_N_E/./node_modules/@mantine/hooks/esm/use-scroll-into-view/utils/get-scroll-start.mjs","webpack://_N_E/./node_modules/@mantine/hooks/esm/use-scroll-into-view/utils/set-scroll-param.mjs","webpack://_N_E/./node_modules/@mantine/hooks/esm/use-scroll-into-view/use-scroll-into-view.mjs","webpack://_N_E/./components/HistoryIcon/HistoryIcon.tsx","webpack://_N_E/./components/HistoryIcon/index.ts","webpack://_N_E/./components/pages/xcm/StepOne/Header/XcmHistory.tsx","webpack://_N_E/./components/pages/xcm/StepOne/Header/Header.tsx","webpack://_N_E/./components/pages/xcm/Stepper.tsx","webpack://_N_E/./pages/[moonChainKey]/xcm.tsx","webpack://_N_E/./components/pages/xcm/StepOne/Header/XcmHistory.module.css","webpack://_N_E/./components/pages/xcm/Stepper.module.css"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/[moonChainKey]/xcm\",\n function () {\n return require(\"private-next-pages/[moonChainKey]/xcm.tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/[moonChainKey]/xcm\"])\n });\n }\n ","import { Group, Text, useMantineTheme } from '@mantine/core';\nimport { OffsiteLink } from 'components/OffsiteLink';\nimport { useThemeColors } from 'hooks/useThemeColors';\nimport { useTranslation } from 'next-i18next';\nimport { IoPlayCircle } from 'react-icons/io5';\n\ninterface Props {\n link: string;\n}\n\nexport const TutorialLink = ({ link }: Props) => {\n const { t } = useTranslation();\n const theme = useMantineTheme();\n const { themeColors } = useThemeColors();\n\n return (\n \n \n \n {t('watchVideoGuide')}\n \n \n );\n};\n","export * from './TutorialLink';\n","import { moonriver } from '@moonbeam-network/xcm-config';\nimport { useMoonChainKeyParam } from 'hooks/useMoonChainParam';\n\ninterface Tutorials {\n xcm: string;\n staking: string;\n claimRewards: string;\n}\n\nexport function useTutorials(): Tutorials {\n const moonChainKey = useMoonChainKeyParam();\n const baseUrl = 'https://www.youtube.com/watch?v=';\n\n return {\n xcm: `${baseUrl}${\n moonChainKey === moonriver.key ? '8RwCyhvpgIU' : 'ueZ1-SOcGi8'\n }`,\n staking: `${baseUrl}${\n moonChainKey === moonriver.key ? '6z7KMK6V168' : 'vHbKJrGd-qs'\n }`,\n claimRewards: `${baseUrl}TEC9ZuTKFZo`,\n };\n}\n","'use client';\nconst easeInOutQuad = (t) => t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t;\n\nexport { easeInOutQuad };\n//# sourceMappingURL=ease-in-out-quad.mjs.map\n","'use client';\nconst getRelativePosition = ({\n axis,\n target,\n parent,\n alignment,\n offset,\n isList\n}) => {\n if (!target || !parent && typeof document === \"undefined\") {\n return 0;\n }\n const isCustomParent = !!parent;\n const parentElement = parent || document.body;\n const parentPosition = parentElement.getBoundingClientRect();\n const targetPosition = target.getBoundingClientRect();\n const getDiff = (property) => targetPosition[property] - parentPosition[property];\n if (axis === \"y\") {\n const diff = getDiff(\"top\");\n if (diff === 0) {\n return 0;\n }\n if (alignment === \"start\") {\n const distance = diff - offset;\n const shouldScroll = distance <= targetPosition.height * (isList ? 0 : 1) || !isList;\n return shouldScroll ? distance : 0;\n }\n const parentHeight = isCustomParent ? parentPosition.height : window.innerHeight;\n if (alignment === \"end\") {\n const distance = diff + offset - parentHeight + targetPosition.height;\n const shouldScroll = distance >= -targetPosition.height * (isList ? 0 : 1) || !isList;\n return shouldScroll ? distance : 0;\n }\n if (alignment === \"center\") {\n return diff - parentHeight / 2 + targetPosition.height / 2;\n }\n return 0;\n }\n if (axis === \"x\") {\n const diff = getDiff(\"left\");\n if (diff === 0) {\n return 0;\n }\n if (alignment === \"start\") {\n const distance = diff - offset;\n const shouldScroll = distance <= targetPosition.width || !isList;\n return shouldScroll ? distance : 0;\n }\n const parentWidth = isCustomParent ? parentPosition.width : window.innerWidth;\n if (alignment === \"end\") {\n const distance = diff + offset - parentWidth + targetPosition.width;\n const shouldScroll = distance >= -targetPosition.width || !isList;\n return shouldScroll ? distance : 0;\n }\n if (alignment === \"center\") {\n return diff - parentWidth / 2 + targetPosition.width / 2;\n }\n return 0;\n }\n return 0;\n};\n\nexport { getRelativePosition };\n//# sourceMappingURL=get-relative-position.mjs.map\n","'use client';\nconst getScrollStart = ({ axis, parent }) => {\n if (!parent && typeof document === \"undefined\") {\n return 0;\n }\n const method = axis === \"y\" ? \"scrollTop\" : \"scrollLeft\";\n if (parent) {\n return parent[method];\n }\n const { body, documentElement } = document;\n return body[method] + documentElement[method];\n};\n\nexport { getScrollStart };\n//# sourceMappingURL=get-scroll-start.mjs.map\n","'use client';\nconst setScrollParam = ({ axis, parent, distance }) => {\n if (!parent && typeof document === \"undefined\") {\n return;\n }\n const method = axis === \"y\" ? \"scrollTop\" : \"scrollLeft\";\n if (parent) {\n parent[method] = distance;\n } else {\n const { body, documentElement } = document;\n body[method] = distance;\n documentElement[method] = distance;\n }\n};\n\nexport { setScrollParam };\n//# sourceMappingURL=set-scroll-param.mjs.map\n","'use client';\nimport { useRef, useCallback, useEffect } from 'react';\nimport { useReducedMotion } from '../use-reduced-motion/use-reduced-motion.mjs';\nimport { useWindowEvent } from '../use-window-event/use-window-event.mjs';\nimport { easeInOutQuad } from './utils/ease-in-out-quad.mjs';\nimport { getRelativePosition } from './utils/get-relative-position.mjs';\nimport { getScrollStart } from './utils/get-scroll-start.mjs';\nimport { setScrollParam } from './utils/set-scroll-param.mjs';\n\nfunction useScrollIntoView({\n duration = 1250,\n axis = \"y\",\n onScrollFinish,\n easing = easeInOutQuad,\n offset = 0,\n cancelable = true,\n isList = false\n} = {}) {\n const frameID = useRef(0);\n const startTime = useRef(0);\n const shouldStop = useRef(false);\n const scrollableRef = useRef(null);\n const targetRef = useRef(null);\n const reducedMotion = useReducedMotion();\n const cancel = () => {\n if (frameID.current) {\n cancelAnimationFrame(frameID.current);\n }\n };\n const scrollIntoView = useCallback(\n ({ alignment = \"start\" } = {}) => {\n shouldStop.current = false;\n if (frameID.current) {\n cancel();\n }\n const start = getScrollStart({ parent: scrollableRef.current, axis }) ?? 0;\n const change = getRelativePosition({\n parent: scrollableRef.current,\n target: targetRef.current,\n axis,\n alignment,\n offset,\n isList\n }) - (scrollableRef.current ? 0 : start);\n function animateScroll() {\n if (startTime.current === 0) {\n startTime.current = performance.now();\n }\n const now = performance.now();\n const elapsed = now - startTime.current;\n const t = reducedMotion || duration === 0 ? 1 : elapsed / duration;\n const distance = start + change * easing(t);\n setScrollParam({\n parent: scrollableRef.current,\n axis,\n distance\n });\n if (!shouldStop.current && t < 1) {\n frameID.current = requestAnimationFrame(animateScroll);\n } else {\n typeof onScrollFinish === \"function\" && onScrollFinish();\n startTime.current = 0;\n frameID.current = 0;\n cancel();\n }\n }\n animateScroll();\n },\n [axis, duration, easing, isList, offset, onScrollFinish, reducedMotion]\n );\n const handleStop = () => {\n if (cancelable) {\n shouldStop.current = true;\n }\n };\n useWindowEvent(\"wheel\", handleStop, {\n passive: true\n });\n useWindowEvent(\"touchmove\", handleStop, {\n passive: true\n });\n useEffect(() => cancel, []);\n return {\n scrollableRef,\n targetRef,\n scrollIntoView,\n cancel\n };\n}\n\nexport { useScrollIntoView };\n//# sourceMappingURL=use-scroll-into-view.mjs.map\n","import { useThemeColors } from 'hooks/useThemeColors';\n\ninterface Props {\n size?: number;\n}\n\nexport const HistoryIcon = ({ size = 24 }: Props) => {\n const { themeColors } = useThemeColors();\n\n return (\n \n \n \n );\n};\n","export * from './HistoryIcon';\n","import {\n Center,\n Divider,\n Group,\n Popover,\n ScrollArea,\n Stack,\n Text,\n UnstyledButton,\n useMantineTheme,\n} from '@mantine/core';\nimport { useDisclosure } from '@mantine/hooks';\nimport { ChainLogo } from 'components/ChainLogo';\nimport { HistoryIcon } from 'components/HistoryIcon';\nimport { OffsiteLink } from 'components/OffsiteLink';\nimport { TokenAmount } from 'components/TokenAmount';\nimport { StepTwoData } from 'components/pages/xcm/StepTwo';\nimport { getSubscanUrlByChainKey } from 'configs/subscan';\nimport { useMoonChain } from 'hooks/useMoonChainConfig';\nimport { useThemeColors } from 'hooks/useThemeColors';\nimport { useTranslation } from 'next-i18next';\nimport { IoArrowForward } from 'react-icons/io5';\nimport classes from './XcmHistory.module.css';\n\ninterface Props {\n address: string;\n history: StepTwoData[];\n onSelect: (data: StepTwoData) => void;\n}\n\nexport const XcmHistory = ({ address, history, onSelect }: Props) => {\n const { t } = useTranslation('xcm');\n const theme = useMantineTheme();\n const [isOpen, { close, open }] = useDisclosure(false);\n const { themeColors } = useThemeColors();\n const { key: moonChain } = useMoonChain();\n\n return (\n \n \n \n
\n \n \n {t('history')}\n \n
\n
\n
\n \n {history.length ? (\n \n \n {[...history].reverse().map((data) => (\n onSelect(data)}\n >\n \n \n \n \n \n \n \n ))}\n \n \n ) : (\n
\n \n {t('noTransactions')}\n \n
\n )}\n \n
\n \n
\n
\n
\n );\n};\n","import { Card, Group } from '@mantine/core';\nimport { TutorialLink } from 'components/TutorialLink';\nimport { XcmHistory } from 'components/pages/xcm/StepOne/Header/XcmHistory';\nimport { StepTwoData } from 'components/pages/xcm/StepTwo';\nimport { useAddress } from 'hooks/useAddress';\nimport { useIsMounted } from 'hooks/useIsMounted';\nimport { useTutorials } from 'hooks/useTutorials';\nimport { Dispatch, SetStateAction } from 'react';\nimport { useXcmHistory } from 'recoil/xcmHistory';\n\ninterface Props {\n setStep: Dispatch>;\n setData: (details: StepTwoData) => void;\n}\n\nexport const Header = ({ setStep, setData }: Props) => {\n const address = useAddress();\n const isMounted = useIsMounted();\n const { history } = useXcmHistory();\n const { xcm } = useTutorials();\n\n return (\n \n \n \n {isMounted && address && (\n {\n setData(data);\n setStep(3);\n }}\n />\n )}\n \n \n );\n};\n","import { Stepper as MantineStepper } from '@mantine/core';\nimport { useTranslation } from 'next-i18next';\nimport classes from './Stepper.module.css';\n\ninterface Props {\n active: number;\n}\n\nexport const Stepper = ({ active }: Props) => {\n const { t } = useTranslation('xcm');\n const minHeight = 130;\n\n return (\n
\n \n }\n mih={minHeight}\n label={`${t('step')} 01`}\n description={t('steps.one')}\n />\n }\n mih={minHeight}\n label={`${t('step')} 02`}\n description={t('steps.two')}\n />\n }\n mih={minHeight}\n label={`${t('step')} 03`}\n description={t('steps.three')}\n />\n \n
\n );\n};\n","import {\n Box,\n Container,\n Group,\n Paper,\n Text,\n Title,\n Tooltip,\n} from '@mantine/core';\nimport { useDidUpdate, useScrollIntoView } from '@mantine/hooks';\nimport { StepOne, StepTwo, StepTwoData } from 'components/pages/xcm';\nimport { Header } from 'components/pages/xcm/StepOne/Header/Header';\nimport { Stepper } from 'components/pages/xcm/Stepper';\nimport { useIsMobile } from 'hooks/useMedia';\nimport { useMoonChain, useMoonChainEcosystem } from 'hooks/useMoonChainConfig';\nimport { GetServerSideProps, NextPage } from 'next';\nimport { useTranslation } from 'next-i18next';\nimport Head from 'next/head';\nimport { useRouter } from 'next/router';\nimport { useEffect, useState } from 'react';\nimport { IoInformationCircleOutline } from 'react-icons/io5';\nimport { generateServerProps } from 'utils/server';\nimport {\n geValidMoonChainKey,\n isQueryParamValid,\n xcmQueryParamSchema,\n} from 'utils/validation/queryParamValidation';\n\nconst XcmPage: NextPage = () => {\n const { t } = useTranslation('');\n const router = useRouter();\n const { name, ecosystem } = useMoonChain();\n const [step, setStep] = useState(0);\n const [data, setData] = useState();\n const isMobile = useIsMobile();\n const { scrollIntoView, targetRef } = useScrollIntoView({\n offset: isMobile ? 140 : 60,\n });\n const moonChain = useMoonChain();\n\n const titleForGA = t('gaTitles.xcm', { ns: 'common' });\n\n const env = useMoonChainEcosystem();\n\n // biome-ignore lint/correctness/useExhaustiveDependencies: \n useEffect(() => scrollIntoView(), [scrollIntoView, step]);\n\n useDidUpdate(() => {\n if (step === 0) {\n setData(undefined);\n }\n }, [step]);\n\n /**\n * When Moon* chain changes we need to clean up the state\n */\n // biome-ignore lint/correctness/useExhaustiveDependencies: \n useEffect(() => {\n function clean() {\n setData(undefined);\n setStep(0);\n }\n\n router.events.on('routeChangeStart', clean);\n }, []);\n\n function renderStep() {\n if (step === 0 || !data) {\n return (\n \n );\n }\n\n return ;\n }\n\n return (\n <>\n \n \n {titleForGA}\n \n \n \n <Group gap={2}>\n {t('parachainBridges', { env })}\n <Tooltip\n label={t('xcm:parachainBridgesTooltip', {\n chain: name,\n relay: ecosystem,\n })}\n withArrow\n >\n <Box>\n <IoInformationCircleOutline size={16} />\n </Box>\n </Tooltip>\n </Group>\n \n \n {step === 0 ? t('xcm:subtitle') : t('xcm:subtitle2')}\n \n
\n \n \n {renderStep()}\n \n \n \n );\n};\n\nexport const getServerSideProps: GetServerSideProps = async ({\n locale,\n params,\n query,\n}) => {\n if (!isQueryParamValid(query, xcmQueryParamSchema)) {\n const moonChainKey = geValidMoonChainKey(params?.moonChainKey as string);\n\n return {\n redirect: {\n destination: `/${moonChainKey}/xcm`,\n permanent: true,\n },\n };\n }\n\n return await generateServerProps(params?.moonChainKey, locale as string, [\n 'common',\n 'xcm',\n ]);\n};\n\nexport default XcmPage;\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"button\":\"XcmHistory_button__RZlmx\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"stepIcon\":\"Stepper_stepIcon__yhrsy\",\"stepperRoot\":\"Stepper_stepperRoot__PKad9\",\"step\":\"Stepper_step__zJ8dF\",\"stepBody\":\"Stepper_stepBody__uAn8D\",\"stepLabel\":\"Stepper_stepLabel__cdbhV\",\"description\":\"Stepper_description__OqZ8J\",\"separator\":\"Stepper_separator__SfheU\"};"],"names":["window","__NEXT_P","push","__webpack_require__","TutorialLink","link","param","t","useTranslation","theme","useMantineTheme","themeColors","useThemeColors","jsx_runtime","jsx","OffsiteLink","withIcon","jsxs","Group","gap","IoPlayCircle","size","color","other","colors","action","Text","c","texts","useTutorials","moonChainKey","useMoonChainKeyParam","baseUrl","xcm","concat","moonriver","key","staking","claimRewards","easeInOutQuad","getRelativePosition","axis","target","parent","alignment","offset","isList","document","isCustomParent","parentPosition","parentElement","body","getBoundingClientRect","targetPosition","getDiff","property","diff","distance","shouldScroll","height","parentHeight","innerHeight","width","parentWidth","innerWidth","getScrollStart","method","documentElement","setScrollParam","HistoryIcon","svg","viewBox","fill","xmlns","style","path","d","XcmHistory","address","history","onSelect","isOpen","close","open","useDisclosure","moonChain","useMoonChain","Popover","position","opened","Target","UnstyledButton","onFocusCapture","onBlurCapture","Center","ml","Dropdown","p","miw","length","ScrollArea","Autosize","mah","py","spacing","xs","type","Stack","reverse","map","className","classes","onClick","data","ChainLogo","chain","source","IoArrowForward","destination","TokenAmount","amount","decimals","symbol","originSymbol","maxDecimals","txHash","fs","Divider","label","getSubscanUrlByChainKey","Header","setStep","setData","useAddress","isMounted","useIsMounted","useXcmHistory","Card","withBorder","justify","Stepper","active","div","MantineStepper","mt","classNames","root","content","step","stepIcon","stepBody","stepLabel","stepWrapper","stepDescription","separator","Step","icon","Fragment","mih","description","_moonChainKey_xcm","router","useRouter","name","ecosystem","useState","scrollIntoView","targetRef","useScrollIntoView","duration","onScrollFinish","easing","cancelable","frameID","react","useRef","startTime","shouldStop","scrollableRef","reducedMotion","use_reduced_motion","J","cancel","current","cancelAnimationFrame","useCallback","start","change","animateScroll","performance","now","elapsed","requestAnimationFrame","handleStop","use_window_event","s","passive","useEffect","isMobile","useIsMobile","titleForGA","ns","env","useMoonChainEcosystem","useDidUpdate","undefined","events","on","Head","meta","title","Container","Title","ref","tt","Tooltip","relay","withArrow","Box","IoInformationCircleOutline","Paper","StepTwo","StepOne","module","exports"],"sourceRoot":""}