(to) => __async(null, null, function* () { const localePath = useLocalePath(); const getRouteBaseName = useRouteBaseName(); const appStore = useAppStore(); const baseRouteName = getRouteBaseName(to); if (baseRouteName == null ? void 0 : baseRouteName.startsWith("customer-deposit")) { if (to.query.type) { switch (to.query.type) { case OperationType.Recharge: return navigateTo({ path: localePath(Pages.CustomerDepositCrypto), query: to.query }); case OperationType.Withdrawal: return navigateTo({ path: localePath(Pages.CustomerDepositFiat), query: to.query }); } return; } if (appStore.isMobile) { return; } if (!["customer-deposit-crypto", "customer-deposit-fiat"].includes(baseRouteName)) { return navigateTo({ path: localePath(Pages.CustomerDepositCrypto), query: to.query }); } } else if (baseRouteName == null ? void 0 : baseRouteName.startsWith("customer-withdrawal")) { if (appStore.isMobile) { return; } if (!["customer-withdrawal-crypto", "customer-withdrawal-fiat"].includes(baseRouteName)) { return navigateTo({ path: localePath(Pages.CustomerWithdrawalCrypto), query: to.query }); } } })