@swype-org/react-sdk 0.1.281 → 0.1.287

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -2091,21 +2091,24 @@ function resolvePhase(state) {
2091
2091
  const branchCompleted = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && transferCompleted && !state.verificationTarget && !needsPasskeyBootstrap;
2092
2092
  const branchFailed = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && state.transfer?.status === "FAILED";
2093
2093
  const branchProcessing = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && (state.creatingTransfer || isTransferAwaitingCompletion(state.transfer));
2094
- const branchKeepFundingSubflow = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && isFundingSourceSubflow;
2095
- const branchMobileWalletSetup = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && state.mobileFlow && state.deeplinkUri != null;
2096
- const branchKeepGuestWalletSetup = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && currentPhase.step === "wallet-setup" && currentPhase.mobile == null && state.guestPreauthorizing;
2097
- const branchGuestTokenPicker = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchKeepGuestWalletSetup && guestTokenPickerEligible;
2098
- const branchKeepWalletPickerSwitch = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && walletPickerSwitchEligible;
2099
- const branchInitializingPrivy = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !state.privyReady;
2100
- const branchInitializingPasskeyConfig = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && state.privyAuthenticated && !state.activeCredentialId && !state.passkeyConfigLoaded;
2101
- const branchOtpVerify = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && state.verificationTarget != null && !state.privyAuthenticated;
2102
- const branchLoginRequested = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && !branchOtpVerify && state.loginRequested;
2103
- const branchPasskeyVerify = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && !branchOtpVerify && !branchLoginRequested && shouldPromptPasskeyVerification;
2104
- const branchPasskeyCreate = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && !branchOtpVerify && !branchLoginRequested && !branchPasskeyVerify && missingActivePasskeyCredential;
2105
- const branchDataLoading = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && !branchOtpVerify && !branchLoginRequested && !branchPasskeyVerify && !branchPasskeyCreate && state.loadingData && state.activeCredentialId != null && hasActiveWallet(state.accounts);
2106
- const branchWalletPickerLink = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && !branchOtpVerify && !branchLoginRequested && !branchPasskeyVerify && !branchPasskeyCreate && !branchDataLoading && state.activeCredentialId != null && !hasActiveWallet(state.accounts) && !state.mobileFlow;
2107
- const branchDeposit = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && !branchOtpVerify && !branchLoginRequested && !branchPasskeyVerify && !branchPasskeyCreate && !branchDataLoading && !branchWalletPickerLink && state.activeCredentialId != null && hasActiveWallet(state.accounts) && !state.loadingData;
2108
- const branchWalletPickerGuestEntry = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && !branchOtpVerify && !branchLoginRequested && !branchPasskeyVerify && !branchPasskeyCreate && !branchDataLoading && !branchWalletPickerLink && !branchDeposit && state.isGuestFlow;
2094
+ const branchStandardDesktopInlineOpenWallet = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && state.standardDesktopInlineOpenWallet && state.privyAuthenticated && state.activeCredentialId != null && state.selectedAccountId != null && !state.loginRequested && !state.guestPreauthorizing;
2095
+ const branchKeepFundingSubflow = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchStandardDesktopInlineOpenWallet && isFundingSourceSubflow;
2096
+ const branchMobileWalletSetup = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchStandardDesktopInlineOpenWallet && state.mobileFlow && state.deeplinkUri != null;
2097
+ const branchKeepGuestPreauthDesktopOpenWallet = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchStandardDesktopInlineOpenWallet && !branchMobileWalletSetup && currentPhase.step === "wallet-setup" && currentPhase.mobile == null && currentPhase.guestDesktopExtension === true && state.guestPreauthorizing && !state.privyAuthenticated && !state.loginRequested;
2098
+ const branchKeepGuestWalletSetup = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchStandardDesktopInlineOpenWallet && !branchKeepGuestPreauthDesktopOpenWallet && currentPhase.step === "wallet-setup" && currentPhase.mobile == null && state.guestPreauthorizing && state.privyAuthenticated && state.activeCredentialId != null;
2099
+ const branchGuestTokenPicker = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchStandardDesktopInlineOpenWallet && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && guestTokenPickerEligible;
2100
+ const branchKeepWalletPickerSwitch = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchStandardDesktopInlineOpenWallet && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && walletPickerSwitchEligible;
2101
+ const branchInitializingPrivy = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchStandardDesktopInlineOpenWallet && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !state.privyReady;
2102
+ const branchInitializingPasskeyConfig = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchStandardDesktopInlineOpenWallet && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && state.privyAuthenticated && !state.activeCredentialId && !state.passkeyConfigLoaded;
2103
+ const branchOtpVerify = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchStandardDesktopInlineOpenWallet && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && state.verificationTarget != null && !state.privyAuthenticated;
2104
+ const branchLoginRequested = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchStandardDesktopInlineOpenWallet && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && !branchOtpVerify && state.loginRequested;
2105
+ const branchPasskeyVerify = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchStandardDesktopInlineOpenWallet && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && !branchOtpVerify && !branchLoginRequested && shouldPromptPasskeyVerification;
2106
+ const branchPasskeyCreate = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchStandardDesktopInlineOpenWallet && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && !branchOtpVerify && !branchLoginRequested && !branchPasskeyVerify && missingActivePasskeyCredential;
2107
+ const branchGuestPreauthClaiming = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchStandardDesktopInlineOpenWallet && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && !branchOtpVerify && !branchLoginRequested && !branchPasskeyVerify && !branchPasskeyCreate && state.guestPreauthAccountId != null && state.guestSessionToken != null && state.privyAuthenticated && state.activeCredentialId != null && !state.guestPreauthSetupCompletePending && !state.error;
2108
+ const branchDataLoading = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchStandardDesktopInlineOpenWallet && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && !branchOtpVerify && !branchLoginRequested && !branchPasskeyVerify && !branchPasskeyCreate && !branchGuestPreauthClaiming && state.loadingData && state.activeCredentialId != null && hasActiveWallet(state.accounts);
2109
+ const branchWalletPickerLink = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchStandardDesktopInlineOpenWallet && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && !branchOtpVerify && !branchLoginRequested && !branchPasskeyVerify && !branchPasskeyCreate && !branchGuestPreauthClaiming && !branchDataLoading && state.activeCredentialId != null && !hasActiveWallet(state.accounts) && !state.mobileFlow;
2110
+ const branchDeposit = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchStandardDesktopInlineOpenWallet && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && !branchOtpVerify && !branchLoginRequested && !branchPasskeyVerify && !branchPasskeyCreate && !branchGuestPreauthClaiming && !branchDataLoading && !branchWalletPickerLink && state.activeCredentialId != null && hasActiveWallet(state.accounts) && !state.loadingData;
2111
+ const branchWalletPickerGuestEntry = !branchGuestSetupComplete && !branchKeepGuestPreauthPin && !branchGuestPostPayLogin && !branchCompleted && !branchFailed && !branchProcessing && !branchKeepFundingSubflow && !branchMobileWalletSetup && !branchStandardDesktopInlineOpenWallet && !branchKeepGuestPreauthDesktopOpenWallet && !branchKeepGuestWalletSetup && !branchGuestTokenPicker && !branchKeepWalletPickerSwitch && !branchInitializingPrivy && !branchInitializingPasskeyConfig && !branchOtpVerify && !branchLoginRequested && !branchPasskeyVerify && !branchPasskeyCreate && !branchGuestPreauthClaiming && !branchDataLoading && !branchWalletPickerLink && !branchDeposit && state.isGuestFlow;
2109
2112
  const exclusiveBranchFlags = [
2110
2113
  branchGuestSetupComplete,
2111
2114
  branchKeepGuestPreauthPin,
@@ -2113,8 +2116,10 @@ function resolvePhase(state) {
2113
2116
  branchCompleted,
2114
2117
  branchFailed,
2115
2118
  branchProcessing,
2119
+ branchStandardDesktopInlineOpenWallet,
2116
2120
  branchKeepFundingSubflow,
2117
2121
  branchMobileWalletSetup,
2122
+ branchKeepGuestPreauthDesktopOpenWallet,
2118
2123
  branchKeepGuestWalletSetup,
2119
2124
  branchGuestTokenPicker,
2120
2125
  branchKeepWalletPickerSwitch,
@@ -2124,6 +2129,7 @@ function resolvePhase(state) {
2124
2129
  branchLoginRequested,
2125
2130
  branchPasskeyVerify,
2126
2131
  branchPasskeyCreate,
2132
+ branchGuestPreauthClaiming,
2127
2133
  branchDataLoading,
2128
2134
  branchWalletPickerLink,
2129
2135
  branchDeposit,
@@ -2139,8 +2145,10 @@ function resolvePhase(state) {
2139
2145
  branchCompleted,
2140
2146
  branchFailed,
2141
2147
  branchProcessing,
2148
+ branchStandardDesktopInlineOpenWallet,
2142
2149
  branchKeepFundingSubflow,
2143
2150
  branchMobileWalletSetup,
2151
+ branchKeepGuestPreauthDesktopOpenWallet,
2144
2152
  branchKeepGuestWalletSetup,
2145
2153
  branchGuestTokenPicker,
2146
2154
  branchKeepWalletPickerSwitch,
@@ -2150,6 +2158,7 @@ function resolvePhase(state) {
2150
2158
  branchLoginRequested,
2151
2159
  branchPasskeyVerify,
2152
2160
  branchPasskeyCreate,
2161
+ branchGuestPreauthClaiming,
2153
2162
  branchDataLoading,
2154
2163
  branchWalletPickerLink,
2155
2164
  branchDeposit,
@@ -2174,6 +2183,13 @@ function resolvePhase(state) {
2174
2183
  };
2175
2184
  } else if (branchProcessing) {
2176
2185
  nextPhase = { step: "processing", transfer: state.transfer };
2186
+ } else if (branchStandardDesktopInlineOpenWallet) {
2187
+ nextPhase = {
2188
+ step: "wallet-setup",
2189
+ mobile: null,
2190
+ accountId: state.selectedAccountId,
2191
+ guestDesktopExtension: true
2192
+ };
2177
2193
  } else if (branchKeepFundingSubflow) {
2178
2194
  nextPhase = currentPhase;
2179
2195
  } else if (branchMobileWalletSetup) {
@@ -2182,6 +2198,8 @@ function resolvePhase(state) {
2182
2198
  mobile: { deeplinkUri: state.deeplinkUri, providerId: state.selectedProviderId },
2183
2199
  accountId: null
2184
2200
  };
2201
+ } else if (branchKeepGuestPreauthDesktopOpenWallet) {
2202
+ nextPhase = currentPhase;
2185
2203
  } else if (branchKeepGuestWalletSetup) {
2186
2204
  nextPhase = currentPhase;
2187
2205
  } else if (branchGuestTokenPicker) {
@@ -2200,6 +2218,8 @@ function resolvePhase(state) {
2200
2218
  nextPhase = { step: "passkey-verify" };
2201
2219
  } else if (branchPasskeyCreate) {
2202
2220
  nextPhase = { step: "passkey-create", popupFallback: state.passkeyPopupNeeded };
2221
+ } else if (branchGuestPreauthClaiming) {
2222
+ nextPhase = { step: "guest-preauth-linking" };
2203
2223
  } else if (branchDataLoading) {
2204
2224
  nextPhase = { step: "data-loading" };
2205
2225
  } else if (branchWalletPickerLink) {
@@ -2278,6 +2298,7 @@ function createInitialState(config) {
2278
2298
  activePublicKey: null,
2279
2299
  loginRequested: false,
2280
2300
  guestPreauthorizing: false,
2301
+ standardDesktopInlineOpenWallet: false,
2281
2302
  guestPreauthSetupCompletePending: false,
2282
2303
  privyReady: false,
2283
2304
  privyAuthenticated: false
@@ -2647,6 +2668,12 @@ function applyAction(state, action) {
2647
2668
  // ── User intent & error ──────────────────────────────────────
2648
2669
  case "SET_USER_INTENT":
2649
2670
  return { ...state, phase: action.intent };
2671
+ case "GUEST_PREAUTH_CLEAR_TRANSFER":
2672
+ return {
2673
+ ...state,
2674
+ transfer: null,
2675
+ creatingTransfer: false
2676
+ };
2650
2677
  case "REQUEST_LOGIN":
2651
2678
  return {
2652
2679
  ...state,
@@ -2658,6 +2685,8 @@ function applyAction(state, action) {
2658
2685
  return { ...state, error: action.error };
2659
2686
  case "SET_ONE_TAP_LIMIT_SAVED_DURING_SETUP":
2660
2687
  return { ...state, oneTapLimitSavedDuringSetup: action.saved };
2688
+ case "SET_STANDARD_DESKTOP_INLINE_OPEN_WALLET":
2689
+ return { ...state, standardDesktopInlineOpenWallet: action.value };
2661
2690
  // ── Lifecycle ────────────────────────────────────────────────
2662
2691
  case "NEW_PAYMENT":
2663
2692
  return {
@@ -2679,7 +2708,8 @@ function applyAction(state, action) {
2679
2708
  loginRequested: false,
2680
2709
  oneTapLimitSavedDuringSetup: false,
2681
2710
  guestPreauthorizing: false,
2682
- guestPreauthSetupCompletePending: false
2711
+ guestPreauthSetupCompletePending: false,
2712
+ standardDesktopInlineOpenWallet: false
2683
2713
  };
2684
2714
  case "LOGOUT":
2685
2715
  return {
@@ -2787,6 +2817,8 @@ function screenForPhase(phase) {
2787
2817
  return "success";
2788
2818
  case "guest-setup-complete":
2789
2819
  return "guest-setup-complete";
2820
+ case "guest-preauth-linking":
2821
+ return "guest-preauth-linking";
2790
2822
  }
2791
2823
  }
2792
2824
  var MUTED = "#7fa4b0";
@@ -4972,14 +5004,10 @@ function SuccessScreen({
4972
5004
  ScreenLayout,
4973
5005
  {
4974
5006
  footer: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
4975
- /* @__PURE__ */ jsxRuntime.jsx(PrimaryButton, { onClick: onDone, children: succeeded ? "Done" : "Try again" }),
4976
- succeeded && onPreauthorize && /* @__PURE__ */ jsxRuntime.jsx(
4977
- PrimaryButton,
4978
- {
4979
- onClick: onPreauthorize,
4980
- children: "Preauthorize future transfers"
4981
- }
4982
- ),
5007
+ succeeded && onPreauthorize ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
5008
+ /* @__PURE__ */ jsxRuntime.jsx(PrimaryButton, { onClick: onPreauthorize, children: "Preauthorize future transfers" }),
5009
+ /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", onClick: onDone, style: skipButtonStyle(tokens.textMuted), children: "Skip this time" })
5010
+ ] }) : /* @__PURE__ */ jsxRuntime.jsx(PrimaryButton, { onClick: onDone, children: succeeded ? "Done" : "Try again" }),
4983
5011
  onManageAccount && /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", onClick: onManageAccount, style: manageStyle(tokens.textMuted), children: "Manage Blink account \u2192" }),
4984
5012
  /* @__PURE__ */ jsxRuntime.jsx(PoweredByFooter, {})
4985
5013
  ] }),
@@ -5117,6 +5145,17 @@ var manageStyle = (color) => ({
5117
5145
  textAlign: "center",
5118
5146
  padding: "12px 0 0"
5119
5147
  });
5148
+ var skipButtonStyle = (color) => ({
5149
+ background: "none",
5150
+ border: "none",
5151
+ color,
5152
+ fontSize: "0.85rem",
5153
+ cursor: "pointer",
5154
+ padding: "8px 16px",
5155
+ textDecoration: "underline",
5156
+ fontFamily: "inherit",
5157
+ width: "100%"
5158
+ });
5120
5159
  function SelectSourceScreen({
5121
5160
  choices,
5122
5161
  selectedChainName,
@@ -5125,6 +5164,7 @@ function SelectSourceScreen({
5125
5164
  onChainChange,
5126
5165
  onTokenChange,
5127
5166
  onConfirm,
5167
+ confirmLabel = "Confirm source",
5128
5168
  onBack,
5129
5169
  onLogout
5130
5170
  }) {
@@ -5136,7 +5176,7 @@ function SelectSourceScreen({
5136
5176
  ScreenLayout,
5137
5177
  {
5138
5178
  footer: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
5139
- /* @__PURE__ */ jsxRuntime.jsx(PrimaryButton, { onClick: onConfirm, disabled: !canConfirm, children: "Confirm source" }),
5179
+ /* @__PURE__ */ jsxRuntime.jsx(PrimaryButton, { onClick: onConfirm, disabled: !canConfirm, children: confirmLabel }),
5140
5180
  /* @__PURE__ */ jsxRuntime.jsx(PoweredByFooter, {})
5141
5181
  ] }),
5142
5182
  children: [
@@ -6295,6 +6335,46 @@ function subtitleStyle10(color) {
6295
6335
  maxWidth: 320
6296
6336
  };
6297
6337
  }
6338
+ function GuestPreauthLinkingScreen({ onLogout }) {
6339
+ const { tokens } = useBlinkConfig();
6340
+ return /* @__PURE__ */ jsxRuntime.jsxs(ScreenLayout, { children: [
6341
+ /* @__PURE__ */ jsxRuntime.jsx(ScreenHeader, { onLogout }),
6342
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { style: contentStyle10, children: [
6343
+ /* @__PURE__ */ jsxRuntime.jsx(Spinner, { size: 48 }),
6344
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { style: headingStyle13(tokens.text), children: "Setting up your account..." }),
6345
+ /* @__PURE__ */ jsxRuntime.jsx("p", { style: subtitleStyle11(tokens.textSecondary), children: "Linking your wallet to your Blink account. This usually takes a few seconds." })
6346
+ ] })
6347
+ ] });
6348
+ }
6349
+ var contentStyle10 = {
6350
+ flex: 1,
6351
+ display: "flex",
6352
+ flexDirection: "column",
6353
+ alignItems: "center",
6354
+ justifyContent: "center",
6355
+ textAlign: "center",
6356
+ padding: "0 24px 32px"
6357
+ };
6358
+ function headingStyle13(color) {
6359
+ return {
6360
+ margin: "20px 0 8px",
6361
+ fontSize: "1.45rem",
6362
+ fontWeight: 700,
6363
+ letterSpacing: "-0.02em",
6364
+ color
6365
+ };
6366
+ }
6367
+ function subtitleStyle11(color) {
6368
+ return {
6369
+ margin: 0,
6370
+ fontSize: "0.9rem",
6371
+ lineHeight: 1.5,
6372
+ color,
6373
+ maxWidth: 280
6374
+ };
6375
+ }
6376
+
6377
+ // src/stepHeaderFlowPhase.ts
6298
6378
  var LINK_SCREENS = /* @__PURE__ */ new Set([
6299
6379
  "create-passkey",
6300
6380
  "verify-passkey",
@@ -6309,7 +6389,6 @@ var DEPOSIT_SCREENS = /* @__PURE__ */ new Set([
6309
6389
  "processing",
6310
6390
  "success"
6311
6391
  ]);
6312
- var DEFAULT_MIN_DEPOSIT_USD = 0.25;
6313
6392
  function getFlowPhase(screen, phase) {
6314
6393
  if (LINK_SCREENS.has(screen)) return "link";
6315
6394
  if (DEPOSIT_SCREENS.has(screen)) return "deposit";
@@ -6318,9 +6397,19 @@ function getFlowPhase(screen, phase) {
6318
6397
  }
6319
6398
  return null;
6320
6399
  }
6400
+ function resolveHeaderFlowPhase(screen, phase, authenticated) {
6401
+ const raw = getFlowPhase(screen, phase);
6402
+ if (raw === "link" && !authenticated) return null;
6403
+ return raw;
6404
+ }
6405
+ var DEFAULT_MIN_DEPOSIT_USD = 0.25;
6321
6406
  function StepRenderer(props) {
6322
6407
  const screen = screenForPhase(props.flow.state.phase);
6323
- const flowPhase = getFlowPhase(screen, props.flow.state.phase);
6408
+ const flowPhase = resolveHeaderFlowPhase(
6409
+ screen,
6410
+ props.flow.state.phase,
6411
+ props.flow.authenticated
6412
+ );
6324
6413
  return /* @__PURE__ */ jsxRuntime.jsx(FlowPhaseProvider, { phase: flowPhase, children: /* @__PURE__ */ jsxRuntime.jsx(StepRendererContent, { ...props, screen }) });
6325
6414
  }
6326
6415
  function StepRendererContent({
@@ -6346,6 +6435,7 @@ function StepRendererContent({
6346
6435
  pollingError,
6347
6436
  guestAccountPollingError,
6348
6437
  authExecutorError,
6438
+ authExecutorExecuting,
6349
6439
  transferSigningSigning,
6350
6440
  transferSigningError,
6351
6441
  pendingSelectSource
@@ -6377,6 +6467,8 @@ function StepRendererContent({
6377
6467
  switch (screen) {
6378
6468
  case "loading":
6379
6469
  return /* @__PURE__ */ jsxRuntime.jsx(BlinkLoadingScreen, {});
6470
+ case "guest-preauth-linking":
6471
+ return /* @__PURE__ */ jsxRuntime.jsx(GuestPreauthLinkingScreen, { onLogout: handlers.onLogout });
6380
6472
  case "login":
6381
6473
  return /* @__PURE__ */ jsxRuntime.jsx(
6382
6474
  LoginScreen,
@@ -6458,7 +6550,7 @@ function StepRendererContent({
6458
6550
  {
6459
6551
  walletName: providerName,
6460
6552
  deeplinkUri: state.deeplinkUri ?? "",
6461
- loading: !isDesktop ? state.creatingTransfer || !state.deeplinkUri : state.creatingTransfer,
6553
+ loading: !isDesktop ? state.creatingTransfer || !state.deeplinkUri : state.creatingTransfer || authExecutorExecuting,
6462
6554
  useDeeplink: !isDesktop,
6463
6555
  error: state.error || guestAccountPollingError || (!isDesktop ? pollingError : authExecutorError),
6464
6556
  onRetryStatus: !isDesktop ? handlers.onRetryMobileStatus : void 0,
@@ -6560,7 +6652,12 @@ function StepRendererContent({
6560
6652
  recommended: selectSourceRecommended,
6561
6653
  onChainChange: handlers.onSelectSourceChainChange,
6562
6654
  onTokenChange: handlers.onSetSelectSourceTokenSymbol,
6563
- onConfirm: handlers.onConfirmSelectSource,
6655
+ onConfirm: isDesktop ? () => handlers.onSetPhase({
6656
+ step: "select-source",
6657
+ action: pendingSelectSource,
6658
+ isDesktop
6659
+ }) : handlers.onConfirmSelectSource,
6660
+ confirmLabel: isDesktop ? "Done" : void 0,
6564
6661
  onBack: () => handlers.onSetPhase({
6565
6662
  step: "select-source",
6566
6663
  action: pendingSelectSource,
@@ -6653,7 +6750,7 @@ function StepRendererContent({
6653
6750
  return limit > displayAmount ? limit - displayAmount : 0;
6654
6751
  })() : void 0,
6655
6752
  onDone: onDismiss ?? handlers.onNewPayment,
6656
- onLogout: handlers.onLogout,
6753
+ onLogout: authenticated ? handlers.onLogout : void 0,
6657
6754
  onPreauthorize: state.isGuestFlow ? handlers.onPreauthorize : void 0
6658
6755
  }
6659
6756
  );
@@ -6701,7 +6798,7 @@ var PaymentErrorBoundary = class extends react.Component {
6701
6798
  /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M12 8v5", stroke: "#ef4444", strokeWidth: "1.5", strokeLinecap: "round" }),
6702
6799
  /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "12", cy: "16", r: "0.75", fill: "#ef4444" })
6703
6800
  ] }) }),
6704
- /* @__PURE__ */ jsxRuntime.jsx("h2", { style: headingStyle13, children: "Something went wrong" }),
6801
+ /* @__PURE__ */ jsxRuntime.jsx("h2", { style: headingStyle14, children: "Something went wrong" }),
6705
6802
  /* @__PURE__ */ jsxRuntime.jsx("p", { style: messageStyle, children: "An unexpected error occurred. Please try again." }),
6706
6803
  /* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", onClick: this.handleReset, style: buttonStyle3, children: "Try again" })
6707
6804
  ] });
@@ -6721,7 +6818,7 @@ var containerStyle9 = {
6721
6818
  var iconStyle3 = {
6722
6819
  marginBottom: 20
6723
6820
  };
6724
- var headingStyle13 = {
6821
+ var headingStyle14 = {
6725
6822
  fontSize: "1.25rem",
6726
6823
  fontWeight: 700,
6727
6824
  color: "#1a1a1a",
@@ -7224,15 +7321,10 @@ function useSourceSelectionHandlers(dispatch, authExecutor, options) {
7224
7321
  const handleConfirmSelectSource = react.useCallback(() => {
7225
7322
  const guestPostPayPreauth = !!options?.guestPreauthSessionId && !!options?.isGuestFlow || !!options?.guestPreauthorizing && !!options?.isDesktop;
7226
7323
  if (guestPostPayPreauth) {
7227
- dispatch({ type: "REQUEST_LOGIN" });
7228
- if (options?.guestPreauthAccountId != null) {
7229
- const intent = {
7230
- step: "wallet-setup",
7231
- mobile: null,
7232
- accountId: options.guestPreauthAccountId,
7233
- guestDesktopExtension: true
7234
- };
7235
- dispatch({ type: "SET_USER_INTENT", intent });
7324
+ if (options?.guestPreauthorizing && options?.isDesktop) {
7325
+ dispatch({ type: "GUEST_PREAUTH_CLEAR_TRANSFER" });
7326
+ } else {
7327
+ dispatch({ type: "REQUEST_LOGIN" });
7236
7328
  }
7237
7329
  }
7238
7330
  authExecutor.resolveSelectSource({
@@ -7243,7 +7335,6 @@ function useSourceSelectionHandlers(dispatch, authExecutor, options) {
7243
7335
  authExecutor,
7244
7336
  dispatch,
7245
7337
  options?.guestPreauthSessionId,
7246
- options?.guestPreauthAccountId,
7247
7338
  options?.guestPreauthorizing,
7248
7339
  options?.isDesktop,
7249
7340
  options?.isGuestFlow,
@@ -8126,7 +8217,7 @@ function useOneTapSetupHandlers(deps) {
8126
8217
  selectSourceTokenSymbol,
8127
8218
  authorizationSessionIdForGuest,
8128
8219
  guestPostPayPreauth,
8129
- guestPreauthAccountId
8220
+ deferGuestPreauthLogin = false
8130
8221
  } = deps;
8131
8222
  const [savingOneTapLimit, setSavingOneTapLimit] = react.useState(false);
8132
8223
  const handleSetupOneTap = react.useCallback(async (limit) => {
@@ -8145,15 +8236,10 @@ function useOneTapSetupHandlers(deps) {
8145
8236
  }
8146
8237
  const willResolveSession = authExecutor.pendingSelectSource != null || authExecutor.pendingOneTapSetup != null;
8147
8238
  if (guestPostPayPreauth && willResolveSession) {
8148
- dispatch({ type: "REQUEST_LOGIN" });
8149
- if (guestPreauthAccountId != null) {
8150
- const intent = {
8151
- step: "wallet-setup",
8152
- mobile: null,
8153
- accountId: guestPreauthAccountId,
8154
- guestDesktopExtension: true
8155
- };
8156
- dispatch({ type: "SET_USER_INTENT", intent });
8239
+ if (deferGuestPreauthLogin) {
8240
+ dispatch({ type: "GUEST_PREAUTH_CLEAR_TRANSFER" });
8241
+ } else {
8242
+ dispatch({ type: "REQUEST_LOGIN" });
8157
8243
  }
8158
8244
  }
8159
8245
  if (authExecutor.pendingSelectSource) {
@@ -8175,7 +8261,7 @@ function useOneTapSetupHandlers(deps) {
8175
8261
  } else if (authExecutor.pendingOneTapSetup) {
8176
8262
  authExecutor.resolveOneTapSetup();
8177
8263
  }
8178
- if (!guestPostPayPreauth || !willResolveSession) {
8264
+ if (!willResolveSession) {
8179
8265
  dispatch({ type: "SET_USER_INTENT", intent: { step: "deposit" } });
8180
8266
  }
8181
8267
  } catch (err) {
@@ -8196,7 +8282,7 @@ function useOneTapSetupHandlers(deps) {
8196
8282
  selectSourceTokenSymbol,
8197
8283
  authorizationSessionIdForGuest,
8198
8284
  guestPostPayPreauth,
8199
- guestPreauthAccountId
8285
+ deferGuestPreauthLogin
8200
8286
  ]);
8201
8287
  return {
8202
8288
  handleSetupOneTap,
@@ -9171,7 +9257,7 @@ function useGuestPreauthEffect(deps) {
9171
9257
  ]);
9172
9258
  }
9173
9259
  function useGuestDesktopPreauthSessionEffect(deps) {
9174
- const { state, authExecutor, reloadAccounts, dispatch, desktopGuestPreauth } = deps;
9260
+ const { state, authExecutor, reloadAccounts, dispatch, desktopGuestPreauth, privyAuthenticatedRef } = deps;
9175
9261
  const preauthExecutingRef = react.useRef(false);
9176
9262
  react.useEffect(() => {
9177
9263
  if (!desktopGuestPreauth) return;
@@ -9186,6 +9272,9 @@ function useGuestDesktopPreauthSessionEffect(deps) {
9186
9272
  } finally {
9187
9273
  preauthExecutingRef.current = false;
9188
9274
  dispatch({ type: "GUEST_PREAUTH_END" });
9275
+ if (!privyAuthenticatedRef.current) {
9276
+ dispatch({ type: "REQUEST_LOGIN" });
9277
+ }
9189
9278
  }
9190
9279
  };
9191
9280
  void runPreauthSession();
@@ -9195,11 +9284,12 @@ function useGuestDesktopPreauthSessionEffect(deps) {
9195
9284
  state.guestPreauthSessionId,
9196
9285
  authExecutor,
9197
9286
  reloadAccounts,
9198
- dispatch
9287
+ dispatch,
9288
+ privyAuthenticatedRef
9199
9289
  ]);
9200
9290
  }
9201
9291
  function useGuestPreauthPhaseSyncEffect(deps) {
9202
- const { state, dispatch, authExecutor, isDesktop } = deps;
9292
+ const { state, dispatch, authExecutor, isDesktop, privyAuthenticated } = deps;
9203
9293
  react.useEffect(() => {
9204
9294
  if (!state.guestPreauthorizing || !isDesktop) return;
9205
9295
  const pending = authExecutor.pendingSelectSource;
@@ -9218,6 +9308,30 @@ function useGuestPreauthPhaseSyncEffect(deps) {
9218
9308
  dispatch({ type: "SET_USER_INTENT", intent });
9219
9309
  return;
9220
9310
  }
9311
+ if (authExecutor.pendingOneTapSetup) {
9312
+ if (state.phase.step === "one-tap-setup") {
9313
+ return;
9314
+ }
9315
+ dispatch({ type: "SET_USER_INTENT", intent: { step: "one-tap-setup", action: null } });
9316
+ return;
9317
+ }
9318
+ if (!privyAuthenticated && authExecutor.executing && state.guestPreauthAccountId) {
9319
+ const accountId = state.guestPreauthAccountId;
9320
+ const p = state.phase;
9321
+ if (p.step === "wallet-setup" && p.mobile == null && p.guestDesktopExtension && p.accountId === accountId) {
9322
+ return;
9323
+ }
9324
+ dispatch({
9325
+ type: "SET_USER_INTENT",
9326
+ intent: {
9327
+ step: "wallet-setup",
9328
+ mobile: null,
9329
+ accountId,
9330
+ guestDesktopExtension: true
9331
+ }
9332
+ });
9333
+ return;
9334
+ }
9221
9335
  if (state.phase.step === "select-source") {
9222
9336
  dispatch({ type: "SET_USER_INTENT", intent: { step: "one-tap-setup", action: null } });
9223
9337
  return;
@@ -9228,8 +9342,12 @@ function useGuestPreauthPhaseSyncEffect(deps) {
9228
9342
  }, [
9229
9343
  state.guestPreauthorizing,
9230
9344
  state.phase,
9345
+ state.guestPreauthAccountId,
9231
9346
  isDesktop,
9347
+ privyAuthenticated,
9232
9348
  authExecutor.pendingSelectSource,
9349
+ authExecutor.pendingOneTapSetup,
9350
+ authExecutor.executing,
9233
9351
  dispatch
9234
9352
  ]);
9235
9353
  }
@@ -9238,6 +9356,7 @@ function useGuestPreauthWalletSetupEffect(deps) {
9238
9356
  react.useEffect(() => {
9239
9357
  if (!isDesktop || !state.guestPreauthorizing || !state.guestPreauthSessionId) return;
9240
9358
  if (!state.guestPreauthAccountId) return;
9359
+ if (!state.privyAuthenticated || state.activeCredentialId == null) return;
9241
9360
  if (!authExecutor.executing || authExecutor.pendingSelectSource) return;
9242
9361
  if (state.verificationTarget) return;
9243
9362
  const p = state.phase;
@@ -9258,6 +9377,8 @@ function useGuestPreauthWalletSetupEffect(deps) {
9258
9377
  state.guestPreauthorizing,
9259
9378
  state.guestPreauthSessionId,
9260
9379
  state.guestPreauthAccountId,
9380
+ state.privyAuthenticated,
9381
+ state.activeCredentialId,
9261
9382
  state.verificationTarget,
9262
9383
  state.phase,
9263
9384
  authExecutor.executing,
@@ -9265,6 +9386,32 @@ function useGuestPreauthWalletSetupEffect(deps) {
9265
9386
  dispatch
9266
9387
  ]);
9267
9388
  }
9389
+ function useStandardDesktopInlineOpenWalletEffect(deps) {
9390
+ const { isDesktop, state, dispatch, authExecutor } = deps;
9391
+ react.useEffect(() => {
9392
+ if (!isDesktop || state.guestPreauthorizing) return;
9393
+ if (!state.privyAuthenticated || !state.activeCredentialId || !state.selectedAccountId) return;
9394
+ const shouldPin = authExecutor.executing && !authExecutor.pendingSelectSource && !authExecutor.pendingOneTapSetup;
9395
+ if (shouldPin && !state.standardDesktopInlineOpenWallet) {
9396
+ dispatch({ type: "SET_STANDARD_DESKTOP_INLINE_OPEN_WALLET", value: true });
9397
+ return;
9398
+ }
9399
+ if (!shouldPin && state.standardDesktopInlineOpenWallet) {
9400
+ dispatch({ type: "SET_STANDARD_DESKTOP_INLINE_OPEN_WALLET", value: false });
9401
+ }
9402
+ }, [
9403
+ isDesktop,
9404
+ state.guestPreauthorizing,
9405
+ state.privyAuthenticated,
9406
+ state.activeCredentialId,
9407
+ state.selectedAccountId,
9408
+ state.standardDesktopInlineOpenWallet,
9409
+ authExecutor.executing,
9410
+ authExecutor.pendingSelectSource,
9411
+ authExecutor.pendingOneTapSetup,
9412
+ dispatch
9413
+ ]);
9414
+ }
9268
9415
  function useGuestAccountAutoPollingEffect(deps) {
9269
9416
  const {
9270
9417
  mobileFlow,
@@ -9430,6 +9577,8 @@ function BlinkPaymentInner({
9430
9577
  const { apiBaseUrl, depositAmount } = useBlinkConfig();
9431
9578
  const { ready, authenticated, logout, getAccessToken } = reactAuth.usePrivy();
9432
9579
  reactAuth.useLoginWithOAuth();
9580
+ const privyAuthenticatedRef = react.useRef(false);
9581
+ privyAuthenticatedRef.current = authenticated;
9433
9582
  const isDesktop = shouldUseWalletConnector({
9434
9583
  useWalletConnector: useWalletConnectorProp,
9435
9584
  userAgent: typeof navigator === "undefined" ? void 0 : navigator.userAgent
@@ -9500,7 +9649,6 @@ function BlinkPaymentInner({
9500
9649
  );
9501
9650
  const sourceSelection = useSourceSelectionHandlers(dispatch, authExecutor, {
9502
9651
  guestPreauthSessionId: state.guestPreauthSessionId,
9503
- guestPreauthAccountId: state.guestPreauthAccountId,
9504
9652
  isGuestFlow: state.isGuestFlow,
9505
9653
  guestPreauthorizing: state.guestPreauthorizing,
9506
9654
  isDesktop
@@ -9543,6 +9691,7 @@ function BlinkPaymentInner({
9543
9691
  isDesktop
9544
9692
  ]
9545
9693
  );
9694
+ const deferGuestPreauthLogin = state.guestPreauthorizing && isDesktop;
9546
9695
  const oneTapSetup = useOneTapSetupHandlers({
9547
9696
  dispatch,
9548
9697
  getAccessToken,
@@ -9552,7 +9701,7 @@ function BlinkPaymentInner({
9552
9701
  selectSourceTokenSymbol: sourceSelection.selectSourceTokenSymbol,
9553
9702
  authorizationSessionIdForGuest: state.guestPreauthSessionId,
9554
9703
  guestPostPayPreauth,
9555
- guestPreauthAccountId: state.guestPreauthAccountId
9704
+ deferGuestPreauthLogin
9556
9705
  });
9557
9706
  const guestTransfer = useGuestTransferHandlers({
9558
9707
  dispatch,
@@ -9745,14 +9894,16 @@ function BlinkPaymentInner({
9745
9894
  state,
9746
9895
  dispatch,
9747
9896
  authExecutor,
9748
- isDesktop
9897
+ isDesktop,
9898
+ privyAuthenticated: authenticated
9749
9899
  });
9750
9900
  useGuestDesktopPreauthSessionEffect({
9751
9901
  state,
9752
9902
  authExecutor,
9753
9903
  reloadAccounts: transfer.reloadAccounts,
9754
9904
  dispatch,
9755
- desktopGuestPreauth: isDesktop
9905
+ desktopGuestPreauth: isDesktop,
9906
+ privyAuthenticatedRef
9756
9907
  });
9757
9908
  useGuestPreauthWalletSetupEffect({
9758
9909
  state,
@@ -9760,6 +9911,12 @@ function BlinkPaymentInner({
9760
9911
  authExecutor,
9761
9912
  isDesktop
9762
9913
  });
9914
+ useStandardDesktopInlineOpenWalletEffect({
9915
+ isDesktop,
9916
+ state,
9917
+ dispatch,
9918
+ authExecutor
9919
+ });
9763
9920
  const handlers = react.useMemo(() => ({
9764
9921
  onSendLoginCode: auth.handleSendLoginCode,
9765
9922
  onVerifyLoginCode: auth.handleVerifyLoginCode,
@@ -9835,6 +9992,7 @@ function BlinkPaymentInner({
9835
9992
  pollingError: polling.error,
9836
9993
  guestAccountPollingError: guestAccountPolling.error,
9837
9994
  authExecutorError: authExecutor.error,
9995
+ authExecutorExecuting: authExecutor.executing,
9838
9996
  transferSigningSigning: transferSigning.signing,
9839
9997
  transferSigningError: transferSigning.error,
9840
9998
  pendingSelectSource: authExecutor.pendingSelectSource,