@swype-org/react-sdk 0.1.192 → 0.1.204

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
@@ -2122,51 +2122,59 @@ function isMobileUserAgent(userAgent) {
2122
2122
  function shouldUseWalletConnector(options) {
2123
2123
  return options.useWalletConnector ?? !isMobileUserAgent(options.userAgent);
2124
2124
  }
2125
- var ACCENT = "#28b67a";
2126
- var BG_RING = "#d2e4ea";
2125
+ var MUTED = "#7fa4b0";
2126
+ var LOGO_SIZE = 48;
2127
2127
  function SwypeLoadingScreen() {
2128
2128
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: containerStyle, children: [
2129
- /* @__PURE__ */ jsxRuntime.jsxs("div", { style: contentStyle, children: [
2130
- /* @__PURE__ */ jsxRuntime.jsx("p", { style: wordmarkStyle, children: "BLINK" }),
2131
- /* @__PURE__ */ jsxRuntime.jsx("div", { style: spinnerStyle })
2132
- ] }),
2129
+ /* @__PURE__ */ jsxRuntime.jsxs(
2130
+ "svg",
2131
+ {
2132
+ width: LOGO_SIZE,
2133
+ height: LOGO_SIZE,
2134
+ viewBox: "0 0 100 100",
2135
+ fill: "none",
2136
+ xmlns: "http://www.w3.org/2000/svg",
2137
+ style: { borderRadius: 10 },
2138
+ children: [
2139
+ /* @__PURE__ */ jsxRuntime.jsxs("g", { clipPath: "url(#swype-loading-clip)", children: [
2140
+ /* @__PURE__ */ jsxRuntime.jsx("rect", { width: "100", height: "100", rx: "18.5874", fill: "white" }),
2141
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M64.0138 36.6191C68.3952 36.7025 70.2512 42.3038 65.1932 44.0399C61.4251 44.2617 60.8419 41.8557 61.3059 38.6113C62.3258 37.4916 62.6562 37.2326 64.0138 36.6191Z", fill: "white" }),
2142
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M34.7441 36.6714C36.6646 36.3309 38.4839 37.6898 38.813 39.71C39.1407 41.7302 37.8542 43.6499 35.9352 43.9994C34.7427 44.2169 33.5274 43.7774 32.7154 42.8325C31.8492 41.8262 31.5728 40.4029 31.9959 39.1191C32.419 37.8367 33.4719 36.8979 34.7441 36.6714Z", fill: "white" }),
2143
+ /* @__PURE__ */ jsxRuntime.jsx("g", { style: { transformOrigin: "50px 62px", animation: "swype-legs-walk 0.8s ease-in-out infinite" }, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M37.719 72.0299C39.0372 70.605 40.611 68.9843 41.7888 67.4312L50.1528 61.6651L57.6601 61.4468C57.4965 63.5289 61.7342 75.3729 61.6981 77.5158C62.154 77.0628 63.0658 76.3318 63.567 75.9876C65.9954 74.3365 68.8384 73.8223 71.4833 74.5554C72.8167 74.9328 73.9331 75.9251 74.58 77.3075C75.2967 78.8451 75.3771 80.3207 74.9127 82.0281C73.8912 85.7844 71.5792 88.6365 68.624 90.5357C66.125 92.1415 61.7077 93.9276 58.9822 93.0828C58.078 92.7956 56.4567 92.015 55.9204 91.1399C55.1385 89.8648 54.5613 88.8907 54.1469 87.3736C53.3686 84.4709 53.3459 86.0793 52.7439 77.9085C52.8102 75.0919 52.9961 69.1199 52.9088 66.782C52.1044 67.8121 48.6686 72.1053 47.7896 73.7937L43.7186 79.5555C45.2316 79.4947 47.0626 79.5314 48.354 80.4535C49.2813 81.1277 49.9192 82.2144 50.1273 83.4755C50.2332 83.8294 50.3132 84.6855 50.3258 85.0634C50.4307 88.2051 49.4337 91.7462 46.8974 93.4764C45.8189 94.2126 44.2654 94.598 43.01 94.7341C37.9909 95.3115 33.0817 93.5835 29.3502 89.9257C28.3222 88.8994 27.4875 87.705 27.4333 86.0333C27.4046 85.1165 27.6099 84.1963 28.0241 83.3859C28.6301 82.2147 30.2471 80.3005 31.0794 79.3156C33.2057 76.7997 35.4975 74.4306 37.719 72.0299Z", fill: "black" }) }),
2144
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M25.2815 30.5666C25.6441 30.6182 25.869 30.0928 25.5864 29.8598C23.1701 27.868 21.5484 25.4469 21.0444 22.6545C20.3641 19.1251 21.516 15.5212 24.2422 12.6488C26.8514 9.91783 30.7518 8.12575 35.0552 7.68041C40.5681 7.11357 44.9544 9.44386 49.0355 11.908C49.1016 11.9479 49.1793 11.964 49.2559 11.9535L49.6641 11.8975C49.7772 11.882 49.8729 11.8099 49.9313 11.7118C50.7042 10.4132 53.3609 9.13558 54.9428 8.55183C63.274 5.47733 72.1015 8.67608 75.6217 15.0543C77.4169 18.3043 77.4637 21.9922 75.7515 25.2845C74.8719 26.99 73.8277 28.1868 72.3742 29.4156C72.1074 29.6412 72.3057 30.099 72.652 30.0534C78.3434 29.3036 83.6958 29.6535 88.1602 33.0995C88.1743 33.1104 88.1896 33.1204 88.2051 33.1289C94.9326 36.8336 95.4063 45.4019 90.8735 50.5016C88.6438 53.0434 85.3883 54.9193 81.641 55.8268C81.4786 55.8662 81.3675 56.017 81.3778 56.1837C81.627 60.2197 80.6407 63.7049 77.0957 66.8558C74.3594 69.31 72.2572 70.905 68.1242 71.1594C66.1317 71.2671 64.5824 71.0823 61.0405 69.4728C57.7759 67.9894 53.6996 61.9918 52.509 57.7058C52.4204 57.3871 51.9326 57.3204 51.7644 57.6052C49.4075 61.5961 43.2088 67.6787 38.7227 69.4728C35.1404 70.8919 32.2895 71.8779 28.5005 70.8789C24.3706 69.7951 20.9698 67.4623 19.0499 64.3964C18.0021 62.7282 16.7577 59.3144 17.4723 57.5087C17.4921 57.4587 17.5023 57.4056 17.4951 57.3522C17.4647 57.1259 17.359 56.7067 17.1377 56.6504C8.17592 54.367 2.58735 48.0815 5.03045 40.4013C6.14562 36.9784 8.95444 34.0395 12.8321 32.2381C16.7957 30.3763 20.9323 29.9475 25.2815 30.5666Z", fill: "black" }),
2145
+ /* @__PURE__ */ jsxRuntime.jsx("rect", { x: "44.3433", y: "56.4863", width: "10.1195", height: "9.10751", fill: "black" }),
2146
+ /* @__PURE__ */ jsxRuntime.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M45.6929 25.6221C49.2323 25.6223 52.1021 31.512 52.1021 38.7773C52.102 46.0426 49.2323 51.9323 45.6929 51.9326C42.2373 51.9326 39.4213 46.3188 39.2896 39.292C41.4308 38.8166 43.9097 38.7264 46.1079 39.1299C47.0121 39.2956 47.8949 38.5389 47.4956 37.7109C46.0273 34.6668 42.4111 34.0327 39.686 34.1816C40.5942 29.1824 42.9408 25.6221 45.6929 25.6221Z", fill: "white" }),
2147
+ /* @__PURE__ */ jsxRuntime.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M63.2471 25.6216C66.7865 25.6219 69.6562 31.5116 69.6562 38.7769C69.6562 46.0422 66.7865 51.9319 63.2471 51.9321C59.7916 51.9321 56.9756 46.319 56.8438 39.2925C58.985 38.8171 61.4639 38.7259 63.6621 39.1294C64.5663 39.2952 65.4491 38.5394 65.0498 37.7114C63.5816 34.6669 59.9654 34.0322 57.2402 34.1812C58.1484 29.1821 60.4951 25.6216 63.2471 25.6216Z", fill: "white" })
2148
+ ] }),
2149
+ /* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsx("clipPath", { id: "swype-loading-clip", children: /* @__PURE__ */ jsxRuntime.jsx("rect", { width: "100", height: "100", rx: "18.5874", fill: "white" }) }) })
2150
+ ]
2151
+ }
2152
+ ),
2153
+ /* @__PURE__ */ jsxRuntime.jsx("span", { style: labelStyle, children: "Loading..." }),
2133
2154
  /* @__PURE__ */ jsxRuntime.jsx("style", { children: `
2134
- @keyframes swype-loading-spin {
2135
- to { transform: rotate(360deg); }
2155
+ @keyframes swype-legs-walk {
2156
+ 0%, 100% { transform: rotate(0deg); }
2157
+ 25% { transform: rotate(5deg); }
2158
+ 75% { transform: rotate(-5deg); }
2136
2159
  }
2137
2160
  ` })
2138
2161
  ] });
2139
2162
  }
2140
2163
  var containerStyle = {
2141
2164
  display: "flex",
2165
+ flexDirection: "column",
2142
2166
  alignItems: "center",
2143
2167
  justifyContent: "center",
2168
+ gap: 12,
2144
2169
  height: "100%",
2145
2170
  flex: 1,
2146
2171
  background: "transparent"
2147
2172
  };
2148
- var contentStyle = {
2149
- display: "flex",
2150
- flexDirection: "column",
2151
- alignItems: "center",
2152
- gap: 16
2153
- };
2154
- var wordmarkStyle = {
2155
- fontSize: 28,
2156
- fontWeight: 700,
2157
- letterSpacing: "-0.04em",
2158
- color: ACCENT,
2159
- margin: 0,
2160
- fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'
2161
- };
2162
- var spinnerStyle = {
2163
- width: 44,
2164
- height: 44,
2165
- border: `4px solid ${BG_RING}`,
2166
- borderTopColor: ACCENT,
2167
- borderRightColor: `${ACCENT}66`,
2168
- borderRadius: "50%",
2169
- animation: "swype-loading-spin 0.9s linear infinite"
2173
+ var labelStyle = {
2174
+ color: MUTED,
2175
+ fontSize: 13,
2176
+ fontFamily: "system-ui, -apple-system, sans-serif",
2177
+ letterSpacing: "0.02em"
2170
2178
  };
2171
2179
 
2172
2180
  // src/assets/logos.ts
@@ -2216,25 +2224,32 @@ var SWYPE_SVG = `<svg width="100" height="100" viewBox="0 0 100 100" fill="none"
2216
2224
  </clipPath>
2217
2225
  </defs>
2218
2226
  </svg>`;
2219
- var SWYPE_LOGO = svgToDataUri(SWYPE_SVG);
2220
- var SWYPE_MASCOT_SVG = `<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">
2221
- <path d="M64.0138 36.6191C68.3952 36.7025 70.2512 42.3038 65.1932 44.0399C61.4251 44.2617 60.8419 41.8557 61.3059 38.6113C62.3258 37.4916 62.6562 37.2326 64.0138 36.6191Z" fill="#1a5c2a"/>
2222
- <path d="M34.7441 36.6714C36.6646 36.3309 38.4839 37.6898 38.813 39.71C39.1407 41.7302 37.8542 43.6499 35.9352 43.9994C34.7427 44.2169 33.5274 43.7774 32.7154 42.8325C31.8492 41.8262 31.5728 40.4029 31.9959 39.1191C32.419 37.8367 33.4719 36.8979 34.7441 36.6714Z" fill="#1a5c2a"/>
2223
- <path d="M37.719 72.0299C39.0372 70.605 40.611 68.9843 41.7888 67.4312L50.1528 61.6651L57.6601 61.4468C57.4965 63.5289 61.7342 75.3729 61.6981 77.5158C62.154 77.0628 63.0658 76.3318 63.567 75.9876C65.9954 74.3365 68.8384 73.8223 71.4833 74.5554C72.8167 74.9328 73.9331 75.9251 74.58 77.3075C75.2967 78.8451 75.3771 80.3207 74.9127 82.0281C73.8912 85.7844 71.5792 88.6365 68.624 90.5357C66.125 92.1415 61.7077 93.9276 58.9822 93.0828C58.078 92.7956 56.4567 92.015 55.9204 91.1399C55.1385 89.8648 54.5613 88.8907 54.1469 87.3736C53.3686 84.4709 53.3459 86.0793 52.7439 77.9085C52.8102 75.0919 52.9961 69.1199 52.9088 66.782C52.1044 67.8121 48.6686 72.1053 47.7896 73.7937L43.7186 79.5555C45.2316 79.4947 47.0626 79.5314 48.354 80.4535C49.2813 81.1277 49.9192 82.2144 50.1273 83.4755C50.2332 83.8294 50.3132 84.6855 50.3258 85.0634C50.4307 88.2051 49.4337 91.7462 46.8974 93.4764C45.8189 94.2126 44.2654 94.598 43.01 94.7341C37.9909 95.3115 33.0817 93.5835 29.3502 89.9257C28.3222 88.8994 27.4875 87.705 27.4333 86.0333C27.4046 85.1165 27.6099 84.1963 28.0241 83.3859C28.6301 82.2147 30.2471 80.3005 31.0794 79.3156C33.2057 76.7997 35.4975 74.4306 37.719 72.0299Z" fill="#4ABA5A"/>
2224
- <path d="M25.2815 30.5666C25.6441 30.6182 25.869 30.0928 25.5864 29.8598C23.1701 27.868 21.5484 25.4469 21.0444 22.6545C20.3641 19.1251 21.516 15.5212 24.2422 12.6488C26.8514 9.91783 30.7518 8.12575 35.0552 7.68041C40.5681 7.11357 44.9544 9.44386 49.0355 11.908C49.1016 11.9479 49.1793 11.964 49.2559 11.9535L49.6641 11.8975C49.7772 11.882 49.8729 11.8099 49.9313 11.7118C50.7042 10.4132 53.3609 9.13558 54.9428 8.55183C63.274 5.47733 72.1015 8.67608 75.6217 15.0543C77.4169 18.3043 77.4637 21.9922 75.7515 25.2845C74.8719 26.99 73.8277 28.1868 72.3742 29.4156C72.1074 29.6412 72.3057 30.099 72.652 30.0534C78.3434 29.3036 83.6958 29.6535 88.1602 33.0995C88.1743 33.1104 88.1896 33.1204 88.2051 33.1289C94.9326 36.8336 95.4063 45.4019 90.8735 50.5016C88.6438 53.0434 85.3883 54.9193 81.641 55.8268C81.4786 55.8662 81.3675 56.017 81.3778 56.1837C81.627 60.2197 80.6407 63.7049 77.0957 66.8558C74.3594 69.31 72.2572 70.905 68.1242 71.1594C66.1317 71.2671 64.5824 71.0823 61.0405 69.4728C57.7759 67.9894 53.6996 61.9918 52.509 57.7058C52.4204 57.3871 51.9326 57.3204 51.7644 57.6052C49.4075 61.5961 43.2088 67.6787 38.7227 69.4728C35.1404 70.8919 32.2895 71.8779 28.5005 70.8789C24.3706 69.7951 20.9698 67.4623 19.0499 64.3964C18.0021 62.7282 16.7577 59.3144 17.4723 57.5087C17.4921 57.4587 17.5023 57.4056 17.4951 57.3522C17.4647 57.1259 17.359 56.7067 17.1377 56.6504C8.17592 54.367 2.58735 48.0815 5.03045 40.4013C6.14562 36.9784 8.95444 34.0395 12.8321 32.2381C16.7957 30.3763 20.9323 29.9475 25.2815 30.5666Z" fill="#4ABA5A"/>
2225
- <rect x="44.3433" y="56.4863" width="10.1195" height="9.10751" fill="#4ABA5A"/>
2226
- <path fill-rule="evenodd" clip-rule="evenodd" d="M45.6929 25.6221C49.2323 25.6223 52.1021 31.512 52.1021 38.7773C52.102 46.0426 49.2323 51.9323 45.6929 51.9326C42.2373 51.9326 39.4213 46.3188 39.2896 39.292C41.4308 38.8166 43.9097 38.7264 46.1079 39.1299C47.0121 39.2956 47.8949 38.5389 47.4956 37.7109C46.0273 34.6668 42.4111 34.0327 39.686 34.1816C40.5942 29.1824 42.9408 25.6221 45.6929 25.6221Z" fill="#1a5c2a"/>
2227
- <path fill-rule="evenodd" clip-rule="evenodd" d="M63.2471 25.6216C66.7865 25.6219 69.6562 31.5116 69.6562 38.7769C69.6562 46.0422 66.7865 51.9319 63.2471 51.9321C59.7916 51.9321 56.9756 46.319 56.8438 39.2925C58.985 38.8171 61.4639 38.7259 63.6621 39.1294C64.5663 39.2952 65.4491 38.5394 65.0498 37.7114C63.5816 34.6669 59.9654 34.0322 57.2402 34.1812C58.1484 29.1821 60.4951 25.6216 63.2471 25.6216Z" fill="#1a5c2a"/>
2227
+ var USDC_SVG = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2000 2000">
2228
+ <path d="M1000 2000c554.17 0 1000-445.83 1000-1000S1554.17 0 1000 0 0 445.83 0 1000s445.83 1000 1000 1000z" fill="#2775ca"/>
2229
+ <path d="M1275 1158.33c0-145.83-87.5-195.83-262.5-216.66-125-16.67-150-50-150-108.34s41.67-95.83 125-95.83c75 0 116.67 25 137.5 87.5 4.17 12.5 16.67 20.83 29.17 20.83h66.66c16.67 0 29.17-12.5 29.17-29.16v-4.17c-16.67-91.67-91.67-162.5-187.5-170.83v-100c0-16.67-12.5-29.17-33.33-33.34h-62.5c-16.67 0-29.17 12.5-33.34 33.34v95.83c-125 16.67-204.16 100-204.16 204.17 0 137.5 83.33 191.66 258.33 212.5 116.67 20.83 154.17 45.83 154.17 112.5s-58.34 112.5-137.5 112.5c-108.34 0-145.84-45.84-158.34-108.34-4.16-16.66-16.66-25-29.16-25h-70.84c-16.66 0-29.16 12.5-29.16 29.17v4.17c16.66 104.16 83.33 179.16 220.83 200v100c0 16.66 12.5 29.16 33.33 33.33h62.5c16.67 0 29.17-12.5 33.34-33.33v-100c125-20.84 208.33-108.34 208.33-220.84z" fill="#fff"/>
2230
+ <path d="M787.5 1595.83c-325-116.66-491.67-479.16-370.83-800 62.5-175 200-308.33 370.83-370.83 16.67-8.33 25-20.83 25-41.67V325c0-16.67-8.33-29.17-25-33.33-4.17 0-12.5 0-16.67 4.16-395.83 125-612.5 545.84-487.5 941.67 75 233.33 254.17 412.5 487.5 487.5 16.67 8.33 33.34 0 37.5-16.67 4.17-4.16 4.17-8.33 4.17-16.66v-58.34c0-12.5-12.5-29.16-25-37.5zM1229.17 295.83c-16.67-8.33-33.34 0-37.5 16.67-4.17 4.17-4.17 8.33-4.17 16.67v58.33c0 16.67 12.5 33.33 25 41.67 325 116.66 491.67 479.16 370.83 800-62.5 175-200 308.33-370.83 370.83-16.67 8.33-25 20.83-25 41.67V1700c0 16.67 8.33 29.17 25 33.33 4.17 0 12.5 0 16.67-4.16 395.83-125 612.5-545.84 487.5-941.67-75-237.5-258.34-416.67-487.5-491.67z" fill="#fff"/>
2228
2231
  </svg>`;
2229
- var SWYPE_MASCOT = svgToDataUri(SWYPE_MASCOT_SVG);
2232
+ var TETHER_SVG = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 800">
2233
+ <circle fill="#009393" cx="400" cy="400" r="400"/>
2234
+ <path fill="#fff" fill-rule="evenodd" d="M400.49,428.59c68.79,0,126.28-11.63,140.33-27.17-11.93-13.18-55.08-23.56-109.88-26.4v32.83c-9.81.51-20.01.76-30.46.76s-20.65-.25-30.48-.76v-32.83c-54.78,2.84-97.95,13.22-109.88,26.4,14.07,15.54,71.57,27.17,140.36,27.17ZM522.71,274.06v45.21h-91.77v31.35c64.46,3.35,112.83,17.13,113.19,33.62v34.38c-.36,16.49-48.73,30.24-113.19,33.6v76.94h-60.93v-76.94c-64.46-3.35-112.81-17.11-113.17-33.6v-34.38c.36-16.49,48.71-30.27,113.17-33.62v-31.35h-91.77v-45.21h244.48ZM242.15,202.11h322.16c7.7,0,14.79,4.05,18.63,10.63l93.85,161.16c4.86,8.36,3.42,18.91-3.52,25.68l-258.34,252.18c-8.38,8.17-21.84,8.17-30.2,0L126.71,399.92c-7.09-6.94-8.43-17.79-3.2-26.19l100.33-161.49c3.91-6.28,10.85-10.12,18.32-10.12Z"/>
2235
+ </svg>`;
2236
+ var SWYPE_LOGO = svgToDataUri(SWYPE_SVG);
2237
+ var SWYPE_MASCOT = SWYPE_LOGO;
2230
2238
  var BASE_LOGO = svgToDataUri(BASE_SVG);
2231
2239
  var METAMASK_LOGO = svgToDataUri(METAMASK_SVG);
2232
2240
  var TRUST_WALLET_LOGO = svgToDataUri(TRUST_WALLET_SVG);
2241
+ var USDC_LOGO = svgToDataUri(USDC_SVG);
2242
+ var TETHER_LOGO = svgToDataUri(TETHER_SVG);
2233
2243
  var KNOWN_LOGOS = {
2234
2244
  metamask: METAMASK_LOGO,
2235
2245
  base: BASE_LOGO,
2236
2246
  "trust wallet": TRUST_WALLET_LOGO
2237
2247
  };
2248
+ var TOKEN_LOGOS = {
2249
+ USDC: USDC_LOGO,
2250
+ "USDC.e": USDC_LOGO,
2251
+ USDT: TETHER_LOGO
2252
+ };
2238
2253
  var FOOTER_CSS = `
2239
2254
  .swype-screen-footer {
2240
2255
  padding-bottom: max(32px, env(safe-area-inset-bottom, 32px));
@@ -2285,17 +2300,17 @@ function useFlowPhase() {
2285
2300
  function StepProgress({ phase }) {
2286
2301
  const { tokens } = useSwypeConfig();
2287
2302
  if (phase === "deposit") {
2288
- return /* @__PURE__ */ jsxRuntime.jsx("img", { src: SWYPE_MASCOT, alt: "Swype", style: mascotStyle });
2303
+ return /* @__PURE__ */ jsxRuntime.jsx("img", { src: SWYPE_LOGO, alt: "Swype", style: mascotStyle });
2289
2304
  }
2290
2305
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: containerStyle3, children: [
2291
2306
  /* @__PURE__ */ jsxRuntime.jsxs("div", { style: sectionStyle("flex-end"), children: [
2292
- /* @__PURE__ */ jsxRuntime.jsx("span", { style: labelStyle(tokens.text), children: "Link" }),
2307
+ /* @__PURE__ */ jsxRuntime.jsx("span", { style: labelStyle2(tokens.text), children: "Link" }),
2293
2308
  /* @__PURE__ */ jsxRuntime.jsx("span", { style: dotStyle(tokens.accent) })
2294
2309
  ] }),
2295
2310
  /* @__PURE__ */ jsxRuntime.jsx("span", { style: lineStyle(tokens.textMuted) }),
2296
2311
  /* @__PURE__ */ jsxRuntime.jsxs("div", { style: sectionStyle("flex-start"), children: [
2297
2312
  /* @__PURE__ */ jsxRuntime.jsx("span", { style: dotStyle(tokens.textMuted) }),
2298
- /* @__PURE__ */ jsxRuntime.jsx("span", { style: labelStyle(tokens.textMuted), children: "Deposit" })
2313
+ /* @__PURE__ */ jsxRuntime.jsx("span", { style: labelStyle2(tokens.textMuted), children: "Deposit" })
2299
2314
  ] })
2300
2315
  ] });
2301
2316
  }
@@ -2326,7 +2341,7 @@ var lineStyle = (color) => ({
2326
2341
  opacity: 0.4,
2327
2342
  flexShrink: 0
2328
2343
  });
2329
- var labelStyle = (color) => ({
2344
+ var labelStyle2 = (color) => ({
2330
2345
  fontSize: "0.82rem",
2331
2346
  fontWeight: 600,
2332
2347
  color,
@@ -2741,7 +2756,7 @@ function StepList({ steps }) {
2741
2756
  }
2742
2757
  ),
2743
2758
  /* @__PURE__ */ jsxRuntime.jsxs("div", { style: labelContainerStyle, children: [
2744
- /* @__PURE__ */ jsxRuntime.jsx("span", { style: labelStyle2(isComplete || isActive ? tokens.text : tokens.textMuted), children: step.label }),
2759
+ /* @__PURE__ */ jsxRuntime.jsx("span", { style: labelStyle3(isComplete || isActive ? tokens.text : tokens.textMuted), children: step.label }),
2745
2760
  step.detail && /* @__PURE__ */ jsxRuntime.jsx("span", { style: detailStyle(tokens.textMuted), children: step.detail })
2746
2761
  ] })
2747
2762
  ] }, i);
@@ -2782,7 +2797,7 @@ var labelContainerStyle = {
2782
2797
  display: "flex",
2783
2798
  flexDirection: "column"
2784
2799
  };
2785
- var labelStyle2 = (color) => ({
2800
+ var labelStyle3 = (color) => ({
2786
2801
  fontSize: "0.9rem",
2787
2802
  fontWeight: 500,
2788
2803
  color
@@ -2835,7 +2850,7 @@ function LoginScreen({
2835
2850
  right: merchantInitials ? /* @__PURE__ */ jsxRuntime.jsx("div", { style: avatarStyle(tokens), children: merchantInitials }) : void 0
2836
2851
  }
2837
2852
  ),
2838
- /* @__PURE__ */ jsxRuntime.jsxs("div", { style: contentStyle2, children: [
2853
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { style: contentStyle, children: [
2839
2854
  /* @__PURE__ */ jsxRuntime.jsx("img", { src: SWYPE_LOGO, alt: "Swype", style: logoStyle }),
2840
2855
  /* @__PURE__ */ jsxRuntime.jsx("h2", { style: headingStyle(tokens.text), children: "Your Money. Any App.\nOne Tap." }),
2841
2856
  error && /* @__PURE__ */ jsxRuntime.jsx("div", { style: errorStyle(tokens), children: error }),
@@ -2870,7 +2885,7 @@ function socialLabel(provider) {
2870
2885
  return "X";
2871
2886
  }
2872
2887
  }
2873
- var contentStyle2 = {
2888
+ var contentStyle = {
2874
2889
  textAlign: "center",
2875
2890
  flex: 1,
2876
2891
  display: "flex",
@@ -3011,7 +3026,7 @@ function OtpVerifyScreen({
3011
3026
  ] }),
3012
3027
  children: [
3013
3028
  /* @__PURE__ */ jsxRuntime.jsx(ScreenHeader, { onBack }),
3014
- /* @__PURE__ */ jsxRuntime.jsxs("div", { style: contentStyle3, children: [
3029
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { style: contentStyle2, children: [
3015
3030
  /* @__PURE__ */ jsxRuntime.jsx("h2", { style: headingStyle2(tokens.text), children: "Confirm it is you" }),
3016
3031
  /* @__PURE__ */ jsxRuntime.jsxs("p", { style: subtitleStyle(tokens.textSecondary), children: [
3017
3032
  "We sent a 6-digit code to",
@@ -3035,7 +3050,7 @@ function OtpVerifyScreen({
3035
3050
  }
3036
3051
  );
3037
3052
  }
3038
- var contentStyle3 = {
3053
+ var contentStyle2 = {
3039
3054
  textAlign: "center",
3040
3055
  display: "flex",
3041
3056
  flexDirection: "column",
@@ -3100,7 +3115,7 @@ function PasskeyScreen({
3100
3115
  ] }),
3101
3116
  children: [
3102
3117
  /* @__PURE__ */ jsxRuntime.jsx(ScreenHeader, { onBack, onLogout }),
3103
- /* @__PURE__ */ jsxRuntime.jsxs("div", { style: contentStyle4, children: [
3118
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { style: contentStyle3, children: [
3104
3119
  /* @__PURE__ */ jsxRuntime.jsx("h2", { style: headingStyle3(tokens.text), children: "Secure your account with a passkey" }),
3105
3120
  /* @__PURE__ */ jsxRuntime.jsx("p", { style: subtitleStyle2(tokens.textSecondary), children: "This enables secure one-tap deposits on this device" }),
3106
3121
  error && /* @__PURE__ */ jsxRuntime.jsx("div", { style: errorBannerStyle2(tokens), children: error })
@@ -3109,7 +3124,7 @@ function PasskeyScreen({
3109
3124
  }
3110
3125
  );
3111
3126
  }
3112
- var contentStyle4 = {
3127
+ var contentStyle3 = {
3113
3128
  textAlign: "center",
3114
3129
  flex: 1,
3115
3130
  display: "flex",
@@ -3535,7 +3550,8 @@ function SetupScreen({
3535
3550
  onLogout,
3536
3551
  onAdvanced,
3537
3552
  loading,
3538
- error
3553
+ error,
3554
+ selectedTokenSymbol
3539
3555
  }) {
3540
3556
  const { tokens } = useSwypeConfig();
3541
3557
  const effectiveMax = DEFAULT_MAX;
@@ -3623,16 +3639,10 @@ function SetupScreen({
3623
3639
  onClick: onAdvanced,
3624
3640
  style: tokenIconButtonStyle(!!onAdvanced),
3625
3641
  children: [
3626
- /* @__PURE__ */ jsxRuntime.jsxs("div", { style: tokenIconWrapStyle, children: [
3627
- /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "36", height: "36", viewBox: "0 0 36 36", fill: "none", children: [
3628
- /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "18", cy: "18", r: "18", fill: "#2DB84B" }),
3629
- /* @__PURE__ */ jsxRuntime.jsx("text", { x: "18", y: "23", textAnchor: "middle", fontSize: "18", fill: "#fff", fontWeight: "700", children: "$" })
3630
- ] }),
3631
- /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", style: checkBadgeStyle, children: [
3632
- /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "8", cy: "8", r: "8", fill: "#2775CA" }),
3633
- /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M5 8l2 2 4-4", stroke: "#fff", strokeWidth: "1.6", strokeLinecap: "round", strokeLinejoin: "round" })
3634
- ] })
3635
- ] }),
3642
+ /* @__PURE__ */ jsxRuntime.jsx("div", { style: tokenIconWrapStyle, children: selectedTokenSymbol && TOKEN_LOGOS[selectedTokenSymbol] ? /* @__PURE__ */ jsxRuntime.jsx("img", { src: TOKEN_LOGOS[selectedTokenSymbol], alt: selectedTokenSymbol, width: 36, height: 36, style: { borderRadius: "50%" } }) : /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "36", height: "36", viewBox: "0 0 36 36", fill: "none", children: [
3643
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "18", cy: "18", r: "18", fill: "#2DB84B" }),
3644
+ /* @__PURE__ */ jsxRuntime.jsx("text", { x: "18", y: "23", textAnchor: "middle", fontSize: "18", fill: "#fff", fontWeight: "700", children: "$" })
3645
+ ] }) }),
3636
3646
  /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", style: { opacity: 0.5 }, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M6 9l6 6 6-6", stroke: tokens.textMuted, strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round" }) })
3637
3647
  ]
3638
3648
  }
@@ -3731,11 +3741,6 @@ var tokenIconWrapStyle = {
3731
3741
  width: 36,
3732
3742
  height: 36
3733
3743
  };
3734
- var checkBadgeStyle = {
3735
- position: "absolute",
3736
- bottom: -1,
3737
- right: -3
3738
- };
3739
3744
  var presetsRowStyle = {
3740
3745
  display: "flex",
3741
3746
  gap: 10,
@@ -3770,8 +3775,8 @@ function SetupStatusScreen({
3770
3775
  if (complete) {
3771
3776
  return /* @__PURE__ */ jsxRuntime.jsxs(ScreenLayout, { footer: /* @__PURE__ */ jsxRuntime.jsx(PoweredByFooter, {}), children: [
3772
3777
  /* @__PURE__ */ jsxRuntime.jsx(ScreenHeader, { onBack: onContinue }),
3773
- /* @__PURE__ */ jsxRuntime.jsxs("div", { style: contentStyle5, children: [
3774
- /* @__PURE__ */ jsxRuntime.jsx("img", { src: SWYPE_MASCOT, alt: "Swype", style: mascotStyle2 }),
3778
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { style: contentStyle4, children: [
3779
+ /* @__PURE__ */ jsxRuntime.jsx("img", { src: SWYPE_LOGO, alt: "Swype", style: mascotStyle2 }),
3775
3780
  /* @__PURE__ */ jsxRuntime.jsx("h2", { style: headingStyle6(tokens.text), children: "Done!" }),
3776
3781
  /* @__PURE__ */ jsxRuntime.jsx("p", { style: subtitleStyle4(tokens.textSecondary), children: "Return to the app to try one-tap deposits." })
3777
3782
  ] })
@@ -3783,7 +3788,7 @@ function SetupStatusScreen({
3783
3788
  ];
3784
3789
  return /* @__PURE__ */ jsxRuntime.jsxs(ScreenLayout, { children: [
3785
3790
  /* @__PURE__ */ jsxRuntime.jsx(ScreenHeader, { onLogout }),
3786
- /* @__PURE__ */ jsxRuntime.jsxs("div", { style: contentStyle5, children: [
3791
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { style: contentStyle4, children: [
3787
3792
  /* @__PURE__ */ jsxRuntime.jsx(Spinner, { size: 48 }),
3788
3793
  /* @__PURE__ */ jsxRuntime.jsx("h2", { style: headingStyle6(tokens.text), children: "Setting up One-Tap..." }),
3789
3794
  error && /* @__PURE__ */ jsxRuntime.jsx("div", { style: errorBannerStyle4(tokens), children: error }),
@@ -3792,7 +3797,7 @@ function SetupStatusScreen({
3792
3797
  ] })
3793
3798
  ] });
3794
3799
  }
3795
- var contentStyle5 = {
3800
+ var contentStyle4 = {
3796
3801
  flex: 1,
3797
3802
  display: "flex",
3798
3803
  flexDirection: "column",
@@ -3863,7 +3868,8 @@ function DepositScreen({
3863
3868
  onAuthorizeAccount,
3864
3869
  onAddProvider,
3865
3870
  onSelectToken,
3866
- selectedSourceLabel
3871
+ selectedSourceLabel,
3872
+ selectedTokenSymbol
3867
3873
  }) {
3868
3874
  const { tokens } = useSwypeConfig();
3869
3875
  const amount = initialAmount;
@@ -3882,7 +3888,6 @@ function DepositScreen({
3882
3888
  const selectedAccount = accounts?.find((a) => a.id === selectedAccountId);
3883
3889
  const selectedProviderName = selectedAccount?.name ?? "Wallet";
3884
3890
  const selectedProviderLogo = KNOWN_LOGOS[selectedProviderName.toLowerCase()];
3885
- const hasMultipleAccounts = accounts != null && accounts.length > 1;
3886
3891
  const isLowBalance = availableBalance < MIN_DEPOSIT;
3887
3892
  const exceedsLimit = remainingLimit != null && amount > remainingLimit && !isLowBalance;
3888
3893
  const canDeposit = amount >= MIN_DEPOSIT && !exceedsLimit && !isLowBalance && !processing;
@@ -3934,27 +3939,18 @@ function DepositScreen({
3934
3939
  ScreenLayout,
3935
3940
  {
3936
3941
  footer: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
3937
- exceedsLimit && onIncreaseLimit ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
3938
- /* @__PURE__ */ jsxRuntime.jsx(PrimaryButton, { onClick: onIncreaseLimit, loading: increasingLimit, children: "Increase limit" }),
3939
- /* @__PURE__ */ jsxRuntime.jsxs("p", { style: limitExceededHintStyle(tokens.warning), children: [
3940
- "Your deposit of $",
3941
- amount.toFixed(2),
3942
- " exceeds your One-Tap limit of $",
3943
- remainingLimit?.toFixed(2) ?? "0.00",
3944
- ". Increase your limit to continue."
3945
- ] })
3946
- ] }) : /* @__PURE__ */ jsxRuntime.jsx(PrimaryButton, { onClick: () => onDeposit(amount), disabled: !canDeposit, loading: processing, children: "Confirm" }),
3942
+ !accountPickerOpen && (exceedsLimit && onIncreaseLimit ? /* @__PURE__ */ jsxRuntime.jsx(PrimaryButton, { onClick: onIncreaseLimit, loading: increasingLimit, children: "Increase limit" }) : /* @__PURE__ */ jsxRuntime.jsx(PrimaryButton, { onClick: () => onDeposit(amount), disabled: !canDeposit, loading: processing, children: "Confirm" })),
3947
3943
  /* @__PURE__ */ jsxRuntime.jsx(PoweredByFooter, {})
3948
3944
  ] }),
3949
3945
  children: [
3950
- /* @__PURE__ */ jsxRuntime.jsx(ScreenHeader, { onBack }),
3946
+ /* @__PURE__ */ jsxRuntime.jsx(ScreenHeader, { onBack, onLogout }),
3951
3947
  /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: pickerRef, style: depositCardWrapStyle, children: [
3952
- /* @__PURE__ */ jsxRuntime.jsxs("div", { style: depositCardStyle(tokens), children: [
3948
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
3953
3949
  /* @__PURE__ */ jsxRuntime.jsx("div", { style: depositLabelStyle(tokens.textMuted), children: "Depositing" }),
3954
3950
  /* @__PURE__ */ jsxRuntime.jsxs("div", { style: amountRowStyle2, children: [
3955
3951
  /* @__PURE__ */ jsxRuntime.jsxs("div", { style: amountValueStyle(tokens.text), children: [
3956
3952
  "$",
3957
- amount.toLocaleString("en-US", { minimumFractionDigits: 0, maximumFractionDigits: 2 })
3953
+ amount.toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 })
3958
3954
  ] }),
3959
3955
  /* @__PURE__ */ jsxRuntime.jsxs(
3960
3956
  "button",
@@ -3963,34 +3959,28 @@ function DepositScreen({
3963
3959
  onClick: onSelectToken,
3964
3960
  style: tokenIconButtonStyle2(!!onSelectToken),
3965
3961
  children: [
3966
- /* @__PURE__ */ jsxRuntime.jsxs("div", { style: tokenIconWrapStyle2, children: [
3967
- /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "36", height: "36", viewBox: "0 0 36 36", fill: "none", children: [
3968
- /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "18", cy: "18", r: "18", fill: "#2DB84B" }),
3969
- /* @__PURE__ */ jsxRuntime.jsx("text", { x: "18", y: "23", textAnchor: "middle", fontSize: "18", fill: "#fff", fontWeight: "700", children: "$" })
3970
- ] }),
3971
- /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", style: checkBadgeStyle2, children: [
3972
- /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "8", cy: "8", r: "8", fill: "#2775CA" }),
3973
- /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M5 8l2 2 4-4", stroke: "#fff", strokeWidth: "1.6", strokeLinecap: "round", strokeLinejoin: "round" })
3974
- ] })
3975
- ] }),
3962
+ /* @__PURE__ */ jsxRuntime.jsx("div", { style: tokenIconWrapStyle2, children: selectedTokenSymbol && TOKEN_LOGOS[selectedTokenSymbol] ? /* @__PURE__ */ jsxRuntime.jsx("img", { src: TOKEN_LOGOS[selectedTokenSymbol], alt: selectedTokenSymbol, width: 36, height: 36, style: { borderRadius: "50%" } }) : /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "36", height: "36", viewBox: "0 0 36 36", fill: "none", children: [
3963
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "18", cy: "18", r: "18", fill: "#2DB84B" }),
3964
+ /* @__PURE__ */ jsxRuntime.jsx("text", { x: "18", y: "23", textAnchor: "middle", fontSize: "18", fill: "#fff", fontWeight: "700", children: "$" })
3965
+ ] }) }),
3976
3966
  /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", style: { opacity: 0.5 }, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M6 9l6 6 6-6", stroke: tokens.textMuted, strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round" }) })
3977
3967
  ]
3978
3968
  }
3979
3969
  )
3980
3970
  ] }),
3981
- /* @__PURE__ */ jsxRuntime.jsxs(
3971
+ !accountPickerOpen && /* @__PURE__ */ jsxRuntime.jsxs(
3982
3972
  "button",
3983
3973
  {
3984
3974
  type: "button",
3985
- onClick: hasMultipleAccounts ? () => setAccountPickerOpen(!accountPickerOpen) : void 0,
3986
- style: walletBalanceRowStyle(hasMultipleAccounts),
3975
+ onClick: () => setAccountPickerOpen(!accountPickerOpen),
3976
+ style: walletBalanceRowStyle,
3987
3977
  children: [
3988
3978
  selectedProviderLogo ? /* @__PURE__ */ jsxRuntime.jsx("img", { src: selectedProviderLogo, alt: selectedProviderName, style: providerLogoStyle }) : /* @__PURE__ */ jsxRuntime.jsx("div", { style: providerFallbackStyle(tokens.textMuted), children: selectedProviderName.charAt(0) }),
3989
3979
  /* @__PURE__ */ jsxRuntime.jsxs("span", { style: walletBalanceStyle(tokens.text), children: [
3990
3980
  "$",
3991
3981
  availableBalance.toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 })
3992
3982
  ] }),
3993
- hasMultipleAccounts && /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", style: { opacity: 0.4 }, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M7 10l5-5 5 5M7 14l5 5 5-5", stroke: tokens.textMuted, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) })
3983
+ /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", style: { opacity: 0.4 }, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M7 10l5-5 5 5M7 14l5 5 5-5", stroke: tokens.textMuted, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) })
3994
3984
  ]
3995
3985
  }
3996
3986
  )
@@ -4060,12 +4050,19 @@ function DepositScreen({
4060
4050
  ] })
4061
4051
  ] })
4062
4052
  ] }),
4063
- remainingLimit != null && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: spendingLimitStyle(tokens.textMuted), children: [
4053
+ !accountPickerOpen && remainingLimit != null && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: spendingLimitStyle(tokens.textMuted), children: [
4064
4054
  "Spending Limit",
4065
4055
  " ",
4066
4056
  /* @__PURE__ */ jsxRuntime.jsxs("strong", { style: { color: tokens.text }, children: [
4067
4057
  "$",
4068
- remainingLimit.toLocaleString("en-US", { minimumFractionDigits: 0, maximumFractionDigits: 0 })
4058
+ remainingLimit.toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 })
4059
+ ] }),
4060
+ exceedsLimit && /* @__PURE__ */ jsxRuntime.jsxs("p", { style: limitExceededHintStyle(tokens.warning), children: [
4061
+ "Your deposit of $",
4062
+ amount.toFixed(2),
4063
+ " exceeds your One-Tap limit of $",
4064
+ remainingLimit?.toFixed(2) ?? "0.00",
4065
+ ". Increase your limit to continue."
4069
4066
  ] })
4070
4067
  ] }),
4071
4068
  error && /* @__PURE__ */ jsxRuntime.jsx("div", { style: errorBannerStyle5(tokens), children: error })
@@ -4077,12 +4074,6 @@ var depositCardWrapStyle = {
4077
4074
  position: "relative",
4078
4075
  marginBottom: 20
4079
4076
  };
4080
- var depositCardStyle = (tokens) => ({
4081
- background: tokens.bgInput,
4082
- border: `1px solid ${tokens.border}`,
4083
- borderRadius: tokens.radiusLg,
4084
- padding: "16px 20px"
4085
- });
4086
4077
  var depositLabelStyle = (color) => ({
4087
4078
  fontSize: "0.75rem",
4088
4079
  fontWeight: 500,
@@ -4116,22 +4107,19 @@ var tokenIconWrapStyle2 = {
4116
4107
  width: 36,
4117
4108
  height: 36
4118
4109
  };
4119
- var checkBadgeStyle2 = {
4120
- position: "absolute",
4121
- bottom: -1,
4122
- right: -3
4123
- };
4124
- var walletBalanceRowStyle = (clickable) => ({
4110
+ var walletBalanceRowStyle = {
4125
4111
  display: "flex",
4126
4112
  alignItems: "center",
4113
+ justifyContent: "center",
4127
4114
  gap: 8,
4128
4115
  background: "transparent",
4129
4116
  border: "none",
4130
4117
  padding: 0,
4131
- cursor: clickable ? "pointer" : "default",
4118
+ width: "100%",
4119
+ cursor: "pointer",
4132
4120
  fontFamily: "inherit",
4133
4121
  outline: "none"
4134
- });
4122
+ };
4135
4123
  var providerLogoStyle = {
4136
4124
  width: 18,
4137
4125
  height: 18,
@@ -4156,16 +4144,11 @@ var walletBalanceStyle = (color) => ({
4156
4144
  color
4157
4145
  });
4158
4146
  var accountDropdownOuterStyle = (tokens) => ({
4159
- position: "absolute",
4160
- top: "100%",
4161
- left: 0,
4162
- right: 0,
4163
4147
  marginTop: 4,
4164
4148
  background: tokens.bgCard,
4165
4149
  border: `1px solid ${tokens.border}`,
4166
4150
  borderRadius: tokens.radiusLg,
4167
4151
  boxShadow: tokens.shadowLg,
4168
- zIndex: 50,
4169
4152
  padding: "12px 14px 14px"
4170
4153
  });
4171
4154
  var accountDropdownLabelStyle = (color) => ({
@@ -4254,7 +4237,7 @@ var addAccountBtnStyle = (tokens) => ({
4254
4237
  padding: "12px 16px",
4255
4238
  background: "transparent",
4256
4239
  border: "none",
4257
- color: tokens.accent,
4240
+ color: tokens.textMuted,
4258
4241
  fontWeight: 600,
4259
4242
  fontSize: "0.85rem",
4260
4243
  cursor: "pointer",
@@ -4381,7 +4364,7 @@ function SuccessScreen({
4381
4364
  ] }),
4382
4365
  children: [
4383
4366
  /* @__PURE__ */ jsxRuntime.jsx(ScreenHeader, { onLogout }),
4384
- /* @__PURE__ */ jsxRuntime.jsxs("div", { style: contentStyle6, children: [
4367
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { style: contentStyle5, children: [
4385
4368
  succeeded ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
4386
4369
  /* @__PURE__ */ jsxRuntime.jsx(IconCircle, { variant: "success", size: 64, children: /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "32", height: "32", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z", fill: tokens.success }) }) }),
4387
4370
  /* @__PURE__ */ jsxRuntime.jsxs("h2", { style: headingStyle7(tokens.text), children: [
@@ -4428,7 +4411,7 @@ function SuccessScreen({
4428
4411
  }
4429
4412
  );
4430
4413
  }
4431
- var contentStyle6 = {
4414
+ var contentStyle5 = {
4432
4415
  flex: 1,
4433
4416
  display: "flex",
4434
4417
  flexDirection: "column",
@@ -4551,7 +4534,7 @@ function SelectSourceScreen({
4551
4534
  }
4552
4535
  ),
4553
4536
  /* @__PURE__ */ jsxRuntime.jsx("p", { style: subtitleStyle6(tokens.textMuted), children: "Choose which chain and token to pay from." }),
4554
- /* @__PURE__ */ jsxRuntime.jsx("label", { style: labelStyle3(tokens.textSecondary), children: "Chain" }),
4537
+ /* @__PURE__ */ jsxRuntime.jsx("label", { style: labelStyle4(tokens.textSecondary), children: "Chain" }),
4555
4538
  /* @__PURE__ */ jsxRuntime.jsx("div", { style: optionListStyle, children: choices.map((chain) => {
4556
4539
  const isSelected = chain.chainName === selectedChainName;
4557
4540
  const isRecommended = chain.chainName === recommended?.chainName;
@@ -4565,7 +4548,7 @@ function SelectSourceScreen({
4565
4548
  /* @__PURE__ */ jsxRuntime.jsxs("div", { style: optionContentStyle, children: [
4566
4549
  /* @__PURE__ */ jsxRuntime.jsxs("span", { style: optionNameStyle(tokens.text), children: [
4567
4550
  chain.chainName,
4568
- isRecommended && /* @__PURE__ */ jsxRuntime.jsx("span", { style: recommendedBadgeStyle(tokens.accent), children: " recommended" })
4551
+ isRecommended && /* @__PURE__ */ jsxRuntime.jsx("span", { style: recommendedBadgeStyle(tokens.textMuted), children: " recommended" })
4569
4552
  ] }),
4570
4553
  /* @__PURE__ */ jsxRuntime.jsxs("span", { style: optionBalanceStyle(tokens.textMuted), children: [
4571
4554
  "$",
@@ -4579,9 +4562,10 @@ function SelectSourceScreen({
4579
4562
  );
4580
4563
  }) }),
4581
4564
  tokenChoices.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
4582
- /* @__PURE__ */ jsxRuntime.jsx("label", { style: labelStyle3(tokens.textSecondary), children: "Token" }),
4565
+ /* @__PURE__ */ jsxRuntime.jsx("label", { style: labelStyle4(tokens.textSecondary), children: "Token" }),
4583
4566
  /* @__PURE__ */ jsxRuntime.jsx("div", { style: optionListStyle, children: tokenChoices.map((token) => {
4584
4567
  const isSelected = token.tokenSymbol === selectedTokenSymbol;
4568
+ const tokenLogo = TOKEN_LOGOS[token.tokenSymbol];
4585
4569
  return /* @__PURE__ */ jsxRuntime.jsxs(
4586
4570
  "button",
4587
4571
  {
@@ -4589,11 +4573,14 @@ function SelectSourceScreen({
4589
4573
  onClick: () => onTokenChange(token.tokenSymbol),
4590
4574
  style: optionButtonStyle(tokens, isSelected),
4591
4575
  children: [
4592
- /* @__PURE__ */ jsxRuntime.jsxs("div", { style: optionContentStyle, children: [
4593
- /* @__PURE__ */ jsxRuntime.jsx("span", { style: optionNameStyle(tokens.text), children: token.tokenSymbol }),
4594
- /* @__PURE__ */ jsxRuntime.jsxs("span", { style: optionBalanceStyle(tokens.textMuted), children: [
4595
- "$",
4596
- token.balance.toFixed(2)
4576
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { style: optionMainStyle, children: [
4577
+ /* @__PURE__ */ jsxRuntime.jsx("div", { style: tokenIconCircleStyle(tokens, !!tokenLogo), children: tokenLogo ? /* @__PURE__ */ jsxRuntime.jsx("img", { src: tokenLogo, alt: token.tokenSymbol, style: tokenLogoImgStyle }) : /* @__PURE__ */ jsxRuntime.jsx("span", { style: tokenIconTextStyle(tokens.textMuted), children: "$" }) }),
4578
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { style: optionContentStyle, children: [
4579
+ /* @__PURE__ */ jsxRuntime.jsx("span", { style: optionNameStyle(tokens.text), children: token.tokenSymbol }),
4580
+ /* @__PURE__ */ jsxRuntime.jsxs("span", { style: optionBalanceStyle(tokens.textMuted), children: [
4581
+ "$",
4582
+ token.balance.toFixed(2)
4583
+ ] })
4597
4584
  ] })
4598
4585
  ] }),
4599
4586
  /* @__PURE__ */ jsxRuntime.jsx("div", { style: radioStyle(tokens, isSelected), children: isSelected && /* @__PURE__ */ jsxRuntime.jsx("div", { style: radioDotStyle(tokens.accent) }) })
@@ -4613,7 +4600,7 @@ var subtitleStyle6 = (color) => ({
4613
4600
  margin: "0 0 20px",
4614
4601
  lineHeight: 1.5
4615
4602
  });
4616
- var labelStyle3 = (color) => ({
4603
+ var labelStyle4 = (color) => ({
4617
4604
  display: "block",
4618
4605
  fontSize: "0.75rem",
4619
4606
  fontWeight: 600,
@@ -4646,6 +4633,11 @@ var optionContentStyle = {
4646
4633
  flexDirection: "column",
4647
4634
  gap: 2
4648
4635
  };
4636
+ var optionMainStyle = {
4637
+ display: "flex",
4638
+ alignItems: "center",
4639
+ gap: 12
4640
+ };
4649
4641
  var optionNameStyle = (color) => ({
4650
4642
  fontSize: "0.9rem",
4651
4643
  fontWeight: 600,
@@ -4661,6 +4653,28 @@ var optionBalanceStyle = (color) => ({
4661
4653
  fontSize: "0.78rem",
4662
4654
  color
4663
4655
  });
4656
+ var tokenIconCircleStyle = (tokens, hasLogo) => ({
4657
+ width: 36,
4658
+ height: 36,
4659
+ borderRadius: "50%",
4660
+ border: hasLogo ? "none" : `1.5px solid ${tokens.border}`,
4661
+ display: "flex",
4662
+ alignItems: "center",
4663
+ justifyContent: "center",
4664
+ flexShrink: 0,
4665
+ overflow: "hidden"
4666
+ });
4667
+ var tokenLogoImgStyle = {
4668
+ width: 36,
4669
+ height: 36,
4670
+ borderRadius: "50%",
4671
+ objectFit: "cover"
4672
+ };
4673
+ var tokenIconTextStyle = (color) => ({
4674
+ fontSize: "1rem",
4675
+ fontWeight: 700,
4676
+ color
4677
+ });
4664
4678
  var radioStyle = (tokens, selected) => ({
4665
4679
  width: 20,
4666
4680
  height: 20,
@@ -4724,7 +4738,7 @@ function AdvancedSourceScreen({
4724
4738
  ),
4725
4739
  /* @__PURE__ */ jsxRuntime.jsx("h2", { style: headingStyle8(tokens.text), children: "Set up One-Tap deposits" }),
4726
4740
  /* @__PURE__ */ jsxRuntime.jsx("p", { style: subtitleStyle7(tokens.textSecondary), children: "Select a token source for your One-Tap deposits." }),
4727
- /* @__PURE__ */ jsxRuntime.jsx("label", { style: labelStyle4(tokens.textSecondary), children: "Select tokens to approve" }),
4741
+ /* @__PURE__ */ jsxRuntime.jsx("label", { style: labelStyle5(tokens.textSecondary), children: "Select tokens to approve" }),
4728
4742
  /* @__PURE__ */ jsxRuntime.jsx("div", { style: chainListStyle, children: choices.map((chain) => {
4729
4743
  const isExpanded = expandedChain === chain.chainName;
4730
4744
  const chainHasSelection = localChain === chain.chainName;
@@ -4799,7 +4813,7 @@ var subtitleStyle7 = (color) => ({
4799
4813
  margin: "0 0 20px",
4800
4814
  lineHeight: 1.5
4801
4815
  });
4802
- var labelStyle4 = (color) => ({
4816
+ var labelStyle5 = (color) => ({
4803
4817
  display: "block",
4804
4818
  fontSize: "0.75rem",
4805
4819
  fontWeight: 600,
@@ -4921,7 +4935,7 @@ function TransferStatusScreen({
4921
4935
  const steps = buildSteps(phase);
4922
4936
  return /* @__PURE__ */ jsxRuntime.jsxs(ScreenLayout, { footer: /* @__PURE__ */ jsxRuntime.jsx(PoweredByFooter, {}), children: [
4923
4937
  /* @__PURE__ */ jsxRuntime.jsx(ScreenHeader, { onLogout }),
4924
- /* @__PURE__ */ jsxRuntime.jsxs("div", { style: contentStyle7, children: [
4938
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { style: contentStyle6, children: [
4925
4939
  /* @__PURE__ */ jsxRuntime.jsx(Spinner, { size: 64 }),
4926
4940
  /* @__PURE__ */ jsxRuntime.jsx("h2", { style: headingStyle9(tokens.text), children: "Depositing your money..." }),
4927
4941
  error && /* @__PURE__ */ jsxRuntime.jsx("div", { style: errorBannerStyle6(tokens), children: error }),
@@ -4929,7 +4943,7 @@ function TransferStatusScreen({
4929
4943
  ] })
4930
4944
  ] });
4931
4945
  }
4932
- var contentStyle7 = {
4946
+ var contentStyle6 = {
4933
4947
  flex: 1,
4934
4948
  display: "flex",
4935
4949
  flexDirection: "column",
@@ -5020,7 +5034,7 @@ function OpenWalletScreen({
5020
5034
  ] }),
5021
5035
  children: [
5022
5036
  /* @__PURE__ */ jsxRuntime.jsx(ScreenHeader, { onLogout }),
5023
- /* @__PURE__ */ jsxRuntime.jsxs("div", { style: contentStyle8, children: [
5037
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { style: contentStyle7, children: [
5024
5038
  /* @__PURE__ */ jsxRuntime.jsx("div", { style: logoCircleStyle(tokens.bgInput), children: logoSrc ? /* @__PURE__ */ jsxRuntime.jsx("img", { src: logoSrc, alt: displayName, style: logoStyle2 }) : /* @__PURE__ */ jsxRuntime.jsx(Spinner, { size: 32 }) }),
5025
5039
  /* @__PURE__ */ jsxRuntime.jsxs("h2", { style: headingStyle10(tokens.text), children: [
5026
5040
  "Setting up ",
@@ -5053,7 +5067,7 @@ function OpenWalletScreen({
5053
5067
  ] }),
5054
5068
  children: [
5055
5069
  /* @__PURE__ */ jsxRuntime.jsx(ScreenHeader, { onBack, onLogout }),
5056
- /* @__PURE__ */ jsxRuntime.jsxs("div", { style: contentStyle8, children: [
5070
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { style: contentStyle7, children: [
5057
5071
  /* @__PURE__ */ jsxRuntime.jsx("div", { style: logoCircleStyle(tokens.bgInput), children: logoSrc ? /* @__PURE__ */ jsxRuntime.jsx("img", { src: logoSrc, alt: displayName, style: logoStyle2 }) : /* @__PURE__ */ jsxRuntime.jsx(Spinner, { size: 32 }) }),
5058
5072
  /* @__PURE__ */ jsxRuntime.jsx("h2", { style: headingStyle10(tokens.text), children: loading ? "Connecting..." : `Open ${displayName}` }),
5059
5073
  /* @__PURE__ */ jsxRuntime.jsx("p", { style: subtitleStyle8(tokens.textSecondary), children: loading ? "Creating transfer and preparing your wallet link..." : `Continue in ${displayName} to authorize this connection.` }),
@@ -5066,7 +5080,7 @@ function OpenWalletScreen({
5066
5080
  }
5067
5081
  );
5068
5082
  }
5069
- var contentStyle8 = {
5083
+ var contentStyle7 = {
5070
5084
  flex: 1,
5071
5085
  display: "flex",
5072
5086
  flexDirection: "column",
@@ -5152,7 +5166,7 @@ function ConfirmSignScreen({
5152
5166
  ] }),
5153
5167
  children: [
5154
5168
  /* @__PURE__ */ jsxRuntime.jsx(ScreenHeader, { onLogout }),
5155
- /* @__PURE__ */ jsxRuntime.jsxs("div", { style: contentStyle9, children: [
5169
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { style: contentStyle8, children: [
5156
5170
  logoSrc ? /* @__PURE__ */ jsxRuntime.jsx("img", { src: logoSrc, alt: displayName, style: logoStyle3 }) : /* @__PURE__ */ jsxRuntime.jsx(Spinner, { size: 48 }),
5157
5171
  /* @__PURE__ */ jsxRuntime.jsx("h2", { style: headingStyle11(tokens.text), children: "Wallet authorized" }),
5158
5172
  /* @__PURE__ */ jsxRuntime.jsxs("p", { style: subtitleStyle9(tokens.textSecondary), children: [
@@ -5168,7 +5182,7 @@ function ConfirmSignScreen({
5168
5182
  }
5169
5183
  );
5170
5184
  }
5171
- var contentStyle9 = {
5185
+ var contentStyle8 = {
5172
5186
  flex: 1,
5173
5187
  display: "flex",
5174
5188
  flexDirection: "column",
@@ -5231,7 +5245,8 @@ function TokenPickerScreen({
5231
5245
  onAuthorizeToken,
5232
5246
  onBack,
5233
5247
  onLogout,
5234
- depositAmount
5248
+ depositAmount,
5249
+ selectedTokenSymbol
5235
5250
  }) {
5236
5251
  const { tokens: t } = useSwypeConfig();
5237
5252
  const entries = [];
@@ -5260,24 +5275,28 @@ function TokenPickerScreen({
5260
5275
  };
5261
5276
  return /* @__PURE__ */ jsxRuntime.jsxs(ScreenLayout, { footer: /* @__PURE__ */ jsxRuntime.jsx(PoweredByFooter, {}), children: [
5262
5277
  /* @__PURE__ */ jsxRuntime.jsx(ScreenHeader, { onBack, onLogout }),
5263
- /* @__PURE__ */ jsxRuntime.jsx("div", { style: mascotWrapStyle, children: /* @__PURE__ */ jsxRuntime.jsx("img", { src: SWYPE_MASCOT, alt: "Swype", style: mascotImgStyle }) }),
5264
- depositAmount != null && /* @__PURE__ */ jsxRuntime.jsxs("div", { style: depositCardStyle2(t), children: [
5278
+ depositAmount != null && /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
5265
5279
  /* @__PURE__ */ jsxRuntime.jsx("div", { style: depositLabelStyle2(t.textMuted), children: "Depositing" }),
5266
5280
  /* @__PURE__ */ jsxRuntime.jsxs("div", { style: depositAmountRowStyle, children: [
5267
5281
  /* @__PURE__ */ jsxRuntime.jsxs("div", { style: depositAmountStyle(t.text), children: [
5268
5282
  "$",
5269
- depositAmount.toLocaleString("en-US", { minimumFractionDigits: 0, maximumFractionDigits: 2 })
5283
+ depositAmount.toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 })
5270
5284
  ] }),
5271
- /* @__PURE__ */ jsxRuntime.jsxs("div", { style: tokenIconWrapStyle3, children: [
5272
- /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "32", height: "32", viewBox: "0 0 36 36", fill: "none", children: [
5273
- /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "18", cy: "18", r: "18", fill: "#2DB84B" }),
5274
- /* @__PURE__ */ jsxRuntime.jsx("text", { x: "18", y: "23", textAnchor: "middle", fontSize: "18", fill: "#fff", fontWeight: "700", children: "$" })
5275
- ] }),
5276
- /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "14", height: "14", viewBox: "0 0 16 16", fill: "none", style: checkBadgeStyle3, children: [
5277
- /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "8", cy: "8", r: "8", fill: "#2775CA" }),
5278
- /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M5 8l2 2 4-4", stroke: "#fff", strokeWidth: "1.6", strokeLinecap: "round", strokeLinejoin: "round" })
5279
- ] })
5280
- ] })
5285
+ /* @__PURE__ */ jsxRuntime.jsxs(
5286
+ "button",
5287
+ {
5288
+ type: "button",
5289
+ onClick: onBack,
5290
+ style: tokenIconButtonStyle3,
5291
+ children: [
5292
+ /* @__PURE__ */ jsxRuntime.jsx("div", { style: tokenIconWrapStyle3, children: selectedTokenSymbol && TOKEN_LOGOS[selectedTokenSymbol] ? /* @__PURE__ */ jsxRuntime.jsx("img", { src: TOKEN_LOGOS[selectedTokenSymbol], alt: selectedTokenSymbol, width: 36, height: 36, style: { borderRadius: "50%" } }) : /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: "36", height: "36", viewBox: "0 0 36 36", fill: "none", children: [
5293
+ /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "18", cy: "18", r: "18", fill: "#2DB84B" }),
5294
+ /* @__PURE__ */ jsxRuntime.jsx("text", { x: "18", y: "23", textAnchor: "middle", fontSize: "18", fill: "#fff", fontWeight: "700", children: "$" })
5295
+ ] }) }),
5296
+ /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "12", height: "12", viewBox: "0 0 24 24", fill: "none", style: { opacity: 0.5 }, children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M6 9l6 6 6-6", stroke: t.textMuted, strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round" }) })
5297
+ ]
5298
+ }
5299
+ )
5281
5300
  ] })
5282
5301
  ] }),
5283
5302
  /* @__PURE__ */ jsxRuntime.jsx("div", { style: sectionLabelStyle(t.textMuted), children: "Choose token" }),
@@ -5290,7 +5309,7 @@ function TokenPickerScreen({
5290
5309
  onClick: () => handleSelect(entry),
5291
5310
  style: tokenRowStyle2(t),
5292
5311
  children: [
5293
- /* @__PURE__ */ jsxRuntime.jsx("div", { style: tokenIconCircleStyle(t), children: /* @__PURE__ */ jsxRuntime.jsx("span", { style: tokenIconTextStyle(t.textMuted), children: "$" }) }),
5312
+ /* @__PURE__ */ jsxRuntime.jsx("div", { style: tokenIconCircleStyle2(t, !!TOKEN_LOGOS[entry.tokenSymbol]), children: TOKEN_LOGOS[entry.tokenSymbol] ? /* @__PURE__ */ jsxRuntime.jsx("img", { src: TOKEN_LOGOS[entry.tokenSymbol], alt: entry.tokenSymbol, style: tokenLogoImgStyle2 }) : /* @__PURE__ */ jsxRuntime.jsx("span", { style: tokenIconTextStyle2(t.textMuted), children: "$" }) }),
5294
5313
  /* @__PURE__ */ jsxRuntime.jsxs("div", { style: tokenInfoStyle2, children: [
5295
5314
  /* @__PURE__ */ jsxRuntime.jsxs("div", { style: tokenNameRowStyle, children: [
5296
5315
  /* @__PURE__ */ jsxRuntime.jsx("span", { style: tokenSymbolTextStyle(t.text), children: entry.tokenSymbol }),
@@ -5313,22 +5332,6 @@ function TokenPickerScreen({
5313
5332
  }) })
5314
5333
  ] });
5315
5334
  }
5316
- var mascotWrapStyle = {
5317
- display: "flex",
5318
- justifyContent: "center",
5319
- marginBottom: 16
5320
- };
5321
- var mascotImgStyle = {
5322
- width: 36,
5323
- height: 36
5324
- };
5325
- var depositCardStyle2 = (tokens) => ({
5326
- background: tokens.bgInput,
5327
- border: `1px solid ${tokens.border}`,
5328
- borderRadius: tokens.radiusLg,
5329
- padding: "16px 20px",
5330
- marginBottom: 24
5331
- });
5332
5335
  var depositLabelStyle2 = (color) => ({
5333
5336
  fontSize: "0.75rem",
5334
5337
  fontWeight: 500,
@@ -5341,22 +5344,27 @@ var depositAmountRowStyle = {
5341
5344
  justifyContent: "space-between"
5342
5345
  };
5343
5346
  var depositAmountStyle = (color) => ({
5344
- fontSize: "2.2rem",
5347
+ fontSize: "2.4rem",
5345
5348
  fontWeight: 700,
5346
5349
  letterSpacing: "-0.02em",
5347
5350
  color
5348
5351
  });
5352
+ var tokenIconButtonStyle3 = {
5353
+ display: "flex",
5354
+ alignItems: "center",
5355
+ gap: 4,
5356
+ background: "transparent",
5357
+ border: "none",
5358
+ cursor: "pointer",
5359
+ padding: 0,
5360
+ flexShrink: 0
5361
+ };
5349
5362
  var tokenIconWrapStyle3 = {
5350
5363
  position: "relative",
5351
- width: 32,
5352
- height: 32,
5364
+ width: 36,
5365
+ height: 36,
5353
5366
  flexShrink: 0
5354
5367
  };
5355
- var checkBadgeStyle3 = {
5356
- position: "absolute",
5357
- bottom: -1,
5358
- right: -3
5359
- };
5360
5368
  var sectionLabelStyle = (color) => ({
5361
5369
  fontSize: "0.84rem",
5362
5370
  fontWeight: 500,
@@ -5381,17 +5389,24 @@ var tokenRowStyle2 = (tokens) => ({
5381
5389
  textAlign: "left",
5382
5390
  width: "100%"
5383
5391
  });
5384
- var tokenIconCircleStyle = (tokens) => ({
5392
+ var tokenIconCircleStyle2 = (tokens, hasLogo) => ({
5385
5393
  width: 36,
5386
5394
  height: 36,
5387
5395
  borderRadius: "50%",
5388
- border: `1.5px solid ${tokens.border}`,
5396
+ border: hasLogo ? "none" : `1.5px solid ${tokens.border}`,
5389
5397
  display: "flex",
5390
5398
  alignItems: "center",
5391
5399
  justifyContent: "center",
5392
- flexShrink: 0
5400
+ flexShrink: 0,
5401
+ overflow: "hidden"
5393
5402
  });
5394
- var tokenIconTextStyle = (color) => ({
5403
+ var tokenLogoImgStyle2 = {
5404
+ width: 36,
5405
+ height: 36,
5406
+ borderRadius: "50%",
5407
+ objectFit: "cover"
5408
+ };
5409
+ var tokenIconTextStyle2 = (color) => ({
5395
5410
  fontSize: "1rem",
5396
5411
  fontWeight: 700,
5397
5412
  color
@@ -5654,7 +5669,8 @@ function StepRendererContent({
5654
5669
  onAdvanced: handlers.onSelectToken,
5655
5670
  selectedSourceLabel: effectiveSourceLabel,
5656
5671
  loading: savingOneTapLimit,
5657
- error: state.error
5672
+ error: state.error,
5673
+ selectedTokenSymbol: selectedSource?.token.symbol ?? selectSourceTokenSymbol
5658
5674
  }
5659
5675
  );
5660
5676
  }
@@ -5698,7 +5714,8 @@ function StepRendererContent({
5698
5714
  onAuthorizeAccount: handlers.onContinueConnection,
5699
5715
  onAddProvider: () => handlers.onNavigate("wallet-picker"),
5700
5716
  onSelectToken: handlers.onSelectToken,
5701
- selectedSourceLabel
5717
+ selectedSourceLabel,
5718
+ selectedTokenSymbol: selectedSource?.token.symbol
5702
5719
  }
5703
5720
  );
5704
5721
  }
@@ -5715,7 +5732,8 @@ function StepRendererContent({
5715
5732
  onAuthorizeToken: handlers.onAuthorizeToken,
5716
5733
  onBack: () => handlers.onNavigate(state.previousStep === "setup" ? "setup" : "deposit"),
5717
5734
  onLogout: handlers.onLogout,
5718
- depositAmount: depositAmount ?? void 0
5735
+ depositAmount: depositAmount ?? void 0,
5736
+ selectedTokenSymbol: selectedSource?.token.symbol
5719
5737
  }
5720
5738
  );
5721
5739
  }
@@ -5792,7 +5810,8 @@ function StepRendererContent({
5792
5810
  onSelectAccount: handlers.onSelectAccount,
5793
5811
  onAuthorizeAccount: handlers.onContinueConnection,
5794
5812
  onAddProvider: () => handlers.onNavigate("wallet-picker"),
5795
- selectedSourceLabel
5813
+ selectedSourceLabel,
5814
+ selectedTokenSymbol: selectedSource?.token.symbol
5796
5815
  }
5797
5816
  );
5798
5817
  }
@@ -7284,7 +7303,7 @@ function usePaymentEffects(deps) {
7284
7303
  accounts: accts,
7285
7304
  chains: chn,
7286
7305
  defaults,
7287
- resolvedStep: correctableSteps.includes(state.step) ? resolved.step : void 0,
7306
+ resolvedStep: correctableSteps.includes(state.step) && !state.creatingTransfer ? resolved.step : void 0,
7288
7307
  clearMobileState: resolved.clearPersistedFlow
7289
7308
  });
7290
7309
  if (resolved.clearPersistedFlow) clearMobileFlowState();