@fluent.xyz/connect 0.7.2 → 0.8.0

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.js CHANGED
@@ -1,10 +1,11 @@
1
+ "use client";
1
2
  import './polyfills/buffer.js';
2
3
  import * as React from 'react';
3
4
  import { createContext, forwardRef, useContext, useState, useEffect, useMemo, useRef, useCallback, useLayoutEffect, Fragment as Fragment$1 } from 'react';
4
- import { QueryClient, QueryClientContext, QueryClientProvider, useQuery, useInfiniteQuery } from '@tanstack/react-query';
5
+ import { QueryClient, QueryClientContext, QueryClientProvider, useQuery, useInfiniteQuery, useQueries } from '@tanstack/react-query';
5
6
  import * as web from '@privy-io/react-auth';
6
7
  import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
7
- import { parseAbi, getAddress, parseEther, toEventSelector, parseAbiItem, defineChain, BaseError, createPublicClient, fallback, http, toHex, isHex, decodeErrorResult, isAddress, formatUnits, zeroAddress, parseUnits, erc20Abi, encodeFunctionData, bytesToHex, numberToHex, encodePacked, padHex, hexToBigInt, stringToHex, decodeEventLog, HttpRequestError } from 'viem';
8
+ import { parseAbi, getAddress, parseEther, toEventSelector, parseAbiItem, defineChain, BaseError, createPublicClient, fallback, http, toHex, isHex, decodeErrorResult, isAddress, formatUnits, zeroAddress, parseUnits, erc20Abi, encodeFunctionData, bytesToHex, numberToHex, encodePacked, padHex, hexToBigInt, stringToHex, decodeFunctionData, decodeEventLog, HttpRequestError } from 'viem';
8
9
  import { Toast as Toast$1 } from '@base-ui/react/toast';
9
10
  import { clsx } from 'clsx';
10
11
  import { twMerge } from 'tailwind-merge';
@@ -12,8 +13,8 @@ import { Button as Button$1 } from '@base-ui/react/button';
12
13
  import { cva } from 'class-variance-authority';
13
14
  import { X, ChevronLeft, ExternalLink, Copy, Settings, LogOut, Layers, Trash2, RefreshCw, ChevronDownIcon, CheckIcon, AlertTriangle, Plus, Loader2Icon, Loader2, LogIn, Send, RotateCw, KeyRound, Mail, Wallet, XIcon, Check, ChevronUpIcon, Search, ChevronDown, Info, CircleCheckIcon, InfoIcon, TriangleAlertIcon, OctagonXIcon } from 'lucide-react';
14
15
  import { WagmiAdapter } from '@reown/appkit-adapter-wagmi';
15
- import { createAppKit, useAppKit } from '@reown/appkit/react';
16
- import { WagmiContext, WagmiProvider, useAccount, useDisconnect, useWalletClient, useSwitchChain, useConnect, useConfig, usePublicClient, useBalance, useReadContract, useWriteContract, useWaitForTransactionReceipt } from 'wagmi';
16
+ import { createAppKit } from '@reown/appkit/react';
17
+ import { WagmiContext, WagmiProvider, useAccount, useDisconnect, useWalletClient, useSwitchChain, useConnect, useConfig, usePublicClient, useBalance, useReadContract, useWriteContract, useSendTransaction, useWaitForTransactionReceipt } from 'wagmi';
17
18
  import { hydrate } from '@wagmi/core';
18
19
  import { reconnect } from 'wagmi/actions';
19
20
  import { coinbaseWallet, baseAccount } from 'wagmi/connectors';
@@ -42,6 +43,7 @@ var __export = (target, all) => {
42
43
  for (var name in all)
43
44
  __defProp(target, name, { get: all[name], enumerable: true });
44
45
  };
46
+ var useIsomorphicLayoutEffect = typeof window === "undefined" ? useEffect : useLayoutEffect;
45
47
  var AdapterContext = createContext(null);
46
48
  function FluentPrivyProvider({ adapter, ...props }) {
47
49
  const Provider = adapter?.PrivyProvider ?? web.PrivyProvider;
@@ -122,9 +124,7 @@ var fluent_mainnet_default = {
122
124
  },
123
125
  rpcUrls: {
124
126
  default: {
125
- http: [
126
- "https://rpc.fluent.xyz/"
127
- ]
127
+ http: ["https://rpc.fluent.xyz/"]
128
128
  }
129
129
  },
130
130
  blockExplorers: {
@@ -168,12 +168,8 @@ var fluent_testnet_default = {
168
168
  },
169
169
  rpcUrls: {
170
170
  default: {
171
- http: [
172
- "https://rpc.testnet.fluent.xyz/"
173
- ],
174
- webSocket: [
175
- "wss://rpc.testnet.fluent.xyz/ws"
176
- ]
171
+ http: ["https://rpc.testnet.fluent.xyz/"],
172
+ webSocket: ["wss://rpc.testnet.fluent.xyz/ws"]
177
173
  }
178
174
  },
179
175
  blockExplorers: {
@@ -183,9 +179,7 @@ var fluent_testnet_default = {
183
179
  }
184
180
  },
185
181
  infoURL: "https://docs.fluent.xyz/",
186
- faucets: [
187
- "https://testnet.fluent.xyz/dev-portal"
188
- ],
182
+ faucets: ["https://testnet.fluent.xyz/dev-portal"],
189
183
  parent: {
190
184
  type: "L2",
191
185
  chainId: 11155111,
@@ -280,9 +274,7 @@ var sepolia_default = {
280
274
  },
281
275
  rpcUrls: {
282
276
  default: {
283
- http: [
284
- "https://ethereum-sepolia-rpc.publicnode.com"
285
- ]
277
+ http: ["https://ethereum-sepolia-rpc.publicnode.com"]
286
278
  }
287
279
  },
288
280
  blockExplorers: {
@@ -4493,10 +4485,13 @@ var appSchema = external_exports.object({
4493
4485
  category: external_exports.string(),
4494
4486
  description: external_exports.string().optional(),
4495
4487
  docs: external_exports.string().url().optional(),
4496
- deployments: external_exports.record(external_exports.string(), external_exports.object({
4497
- contract: external_exports.string(),
4498
- address: addressSchema
4499
- }))
4488
+ deployments: external_exports.record(
4489
+ external_exports.string(),
4490
+ external_exports.object({
4491
+ contract: external_exports.string(),
4492
+ address: addressSchema
4493
+ })
4494
+ )
4500
4495
  });
4501
4496
  var zerodevIntegrationSchema = external_exports.object({
4502
4497
  id: external_exports.literal("zerodev"),
@@ -4558,17 +4553,13 @@ function fluentDefinitionToViemChain(definition) {
4558
4553
  viemContracts.fluentBridge = toContract(contracts.fluentBridge);
4559
4554
  }
4560
4555
  if (contracts?.universalTokenFactory) {
4561
- viemContracts.universalTokenFactory = toContract(
4562
- contracts.universalTokenFactory
4563
- );
4556
+ viemContracts.universalTokenFactory = toContract(contracts.universalTokenFactory);
4564
4557
  }
4565
4558
  if (contracts?.paymentGateway) {
4566
4559
  viemContracts.paymentGateway = toContract(contracts.paymentGateway);
4567
4560
  }
4568
4561
  if (contracts?.peggedTokenPrecompile) {
4569
- viemContracts.peggedTokenPrecompile = toContract(
4570
- contracts.peggedTokenPrecompile
4571
- );
4562
+ viemContracts.peggedTokenPrecompile = toContract(contracts.peggedTokenPrecompile);
4572
4563
  }
4573
4564
  return defineChain({
4574
4565
  id: definition.chainId,
@@ -4668,10 +4659,9 @@ function getFluentTokenDefaultsForNetwork(network) {
4668
4659
  }
4669
4660
  }
4670
4661
  var fluentDefaultTokenIdentities = new Set(
4671
- [
4672
- ...Object.values(fluentTestnetTokenDefaults),
4673
- ...Object.values(fluentMainnetTokenDefaults)
4674
- ].map(fluentTokenIdentity)
4662
+ [...Object.values(fluentTestnetTokenDefaults), ...Object.values(fluentMainnetTokenDefaults)].map(
4663
+ fluentTokenIdentity
4664
+ )
4675
4665
  );
4676
4666
  function isFluentDefaultToken(token) {
4677
4667
  return fluentDefaultTokenIdentities.has(fluentTokenIdentity(token));
@@ -5139,6 +5129,7 @@ var FLUENT_CONNECT_TESTNET_ANALYTICS_HOST = "https://api.fluent-connect.dev.gble
5139
5129
  var FLUENT_CONNECT_MAINNET_ANALYTICS_HOST = "https://api.fluent.xyz/connect/v1/ingest";
5140
5130
  var FLUENT_CONNECT_TESTNET_SPONSORSHIP_URL = "https://sponsorship.fluent-connect.dev.gblend.xyz";
5141
5131
  var FLUENT_CONNECT_MAINNET_SPONSORSHIP_URL = "https://api.fluent.xyz/connect/v1";
5132
+ var FLUENT_CONNECT_MAINNET_ORDER_DEPOSIT_URL = "https://portal.fluent.xyz/api/m0";
5142
5133
  var FLUENT_CONNECT_TESTNET_REPUTATION_SIGNUP_URL = "https://connect-preview.vercel.app/signin";
5143
5134
  var FLUENT_CONNECT_MAINNET_REPUTATION_SIGNUP_URL = "https://connect.fluent.xyz/signin";
5144
5135
  var FLUENT_CONNECT_TESTNET_FAUCET_ENDPOINT = "https://eco-faucet-api.fluent.xyz/fluent-connect/pre-fund";
@@ -5162,7 +5153,8 @@ var FLUENT_CONNECT_NETWORK_ENDPOINTS = {
5162
5153
  faucetEndpoint: FLUENT_CONNECT_TESTNET_FAUCET_ENDPOINT,
5163
5154
  bridgeUrl: FLUENT_CONNECT_DEFAULT_PORTAL_BRIDGE_URL,
5164
5155
  analyticsHost: FLUENT_CONNECT_TESTNET_ANALYTICS_HOST,
5165
- sponsorshipUrl: FLUENT_CONNECT_TESTNET_SPONSORSHIP_URL
5156
+ sponsorshipUrl: FLUENT_CONNECT_TESTNET_SPONSORSHIP_URL,
5157
+ orderDepositUrl: ""
5166
5158
  },
5167
5159
  mainnet: {
5168
5160
  publicApiUrl: FLUENT_CONNECT_MAINNET_PUBLIC_API_URL,
@@ -5171,7 +5163,8 @@ var FLUENT_CONNECT_NETWORK_ENDPOINTS = {
5171
5163
  faucetEndpoint: "",
5172
5164
  bridgeUrl: FLUENT_CONNECT_DEFAULT_PORTAL_BRIDGE_URL,
5173
5165
  analyticsHost: FLUENT_CONNECT_MAINNET_ANALYTICS_HOST,
5174
- sponsorshipUrl: FLUENT_CONNECT_MAINNET_SPONSORSHIP_URL
5166
+ sponsorshipUrl: FLUENT_CONNECT_MAINNET_SPONSORSHIP_URL,
5167
+ orderDepositUrl: FLUENT_CONNECT_MAINNET_ORDER_DEPOSIT_URL
5175
5168
  }
5176
5169
  };
5177
5170
  function getFluentWidgetNetworkEndpoints(network) {
@@ -5201,7 +5194,6 @@ var FLUENT_WIDGET_IDENTITY_TOKEN_STORAGE_KEY = "fluent:widget:identity-token:v1"
5201
5194
  var FLUENT_CONNECT_PRIVY_CONFIG = {
5202
5195
  defaultChain: fluentTestnet,
5203
5196
  supportedChains: [fluentTestnet],
5204
- // Keep X first, followed by Google; email remains available in the overflow.
5205
5197
  loginMethodsAndOrder: { primary: ["twitter", "google"], overflow: ["email"] },
5206
5198
  appearance: {
5207
5199
  theme: "dark",
@@ -5213,26 +5205,21 @@ var FLUENT_CONNECT_PRIVY_CONFIG = {
5213
5205
  walletList: ["detected_wallets", "metamask", "coinbase_wallet", "rainbow"]
5214
5206
  },
5215
5207
  /**
5216
- * WalletConnect in this widget belongs to Reown/AppKit, which builds it once
5217
- * per page (`appKitByKey` in `widget/reownAppKit.tsx`). Privy builds its own
5218
- * on every `PrivyProvider` mount and never tears it down, so with Quick sign
5219
- * keying that provider the count of `new Core()` calls grew with every
5220
- * toggle. Leaving the one owner that is built once is what bounds it.
5208
+ * WalletConnect in this widget belongs to Reown AppKit, which builds it once per page
5209
+ * (`appKitByKey` in `widget/reownAppKit.tsx`). Privy builds its own on every `PrivyProvider`
5210
+ * mount and never tears it down, and the provider mounts again on each Network change; one
5211
+ * owner built once per page keeps a single WalletConnect core.
5221
5212
  *
5222
- * `appearance.walletList` drops `wallet_connect` for the same reason: Privy
5223
- * filters WalletConnect-backed entries out of its own modal once this is off,
5224
- * so naming it there would promise a route that no longer exists.
5213
+ * `appearance.walletList` names no `wallet_connect` for the same reason: Privy drops
5214
+ * WalletConnect entries from its own modal once this is off, so naming one there would promise
5215
+ * a route that does not exist.
5225
5216
  */
5226
5217
  externalWallets: { walletConnect: { enabled: false } },
5227
5218
  /**
5228
- * Constant on purpose, not derived from Quick sign.
5229
- *
5230
- * Privy resolves this once when `PrivyProvider` mounts and does not pick up a
5231
- * later change to the `config` prop — which is why Quick sign used to key that
5232
- * provider and rebuild everything below it. Neither signer mode shows Privy's
5233
- * confirmation screen: Prompt mode is confirmed in the widget's own review,
5234
- * and its signer still names `uiOptions.showWalletUIs: false` per call, which
5235
- * wins over this.
5219
+ * Constant, not derived from Quick sign: Privy reads it once when `PrivyProvider` mounts and
5220
+ * does not pick up a later change, and Quick sign remounts nothing. Neither Prompt mode nor
5221
+ * Silent mode shows Privy's own confirmation screen: Prompt mode is confirmed in the widget's
5222
+ * Review, and its Signer also passes `showWalletUIs: false` on each call, which wins over this.
5236
5223
  */
5237
5224
  embeddedWallets: {
5238
5225
  createOnLogin: "users-without-wallets",
@@ -5325,11 +5312,15 @@ function toFluentWidgetSession(stored) {
5325
5312
  issuedAt
5326
5313
  };
5327
5314
  }
5328
- var FLUENT_CONNECT_DEFAULT_AUTH_METHODS = [
5315
+ var FLUENT_CONNECT_AUTH_METHODS = [
5329
5316
  "google",
5330
5317
  "email",
5331
5318
  "passkey"
5332
5319
  ];
5320
+ var FLUENT_CONNECT_DEFAULT_AUTH_METHODS = [
5321
+ "google",
5322
+ "email"
5323
+ ];
5333
5324
  function resolveFluentWidgetAuthMethods(enabledAuthMethods) {
5334
5325
  if (!enabledAuthMethods) return [...FLUENT_CONNECT_DEFAULT_AUTH_METHODS];
5335
5326
  if (!isIterable(enabledAuthMethods)) {
@@ -5340,7 +5331,7 @@ function resolveFluentWidgetAuthMethods(enabledAuthMethods) {
5340
5331
  }
5341
5332
  const enabled = /* @__PURE__ */ new Set();
5342
5333
  for (const method of enabledAuthMethods) {
5343
- if (FLUENT_CONNECT_DEFAULT_AUTH_METHODS.includes(method)) enabled.add(method);
5334
+ if (FLUENT_CONNECT_AUTH_METHODS.includes(method)) enabled.add(method);
5344
5335
  }
5345
5336
  return [...enabled];
5346
5337
  }
@@ -5447,6 +5438,25 @@ function readStringOption(value, option, hint) {
5447
5438
  `FluentWidgetConfig.${option} ${describeRejectedValue(value)} is not a string. ${hint}`
5448
5439
  );
5449
5440
  }
5441
+ function resolveOrderDepositUrl(value, networkDefault) {
5442
+ if (value === void 0 || value === null) return networkDefault;
5443
+ const hint = "Pass the absolute http(s) base URL of an Order deposit service, an empty string to turn Order deposits off, or leave it unset for the network default.";
5444
+ const orderDepositUrl = readStringOption(value, "orderDepositUrl", hint);
5445
+ if (!orderDepositUrl) return "";
5446
+ let url;
5447
+ try {
5448
+ url = new URL(orderDepositUrl);
5449
+ } catch {
5450
+ url = void 0;
5451
+ }
5452
+ if (!url || url.protocol !== "https:" && url.protocol !== "http:" || url.search || url.hash) {
5453
+ throw new FluentWidgetConfigError(
5454
+ "invalid_option",
5455
+ `FluentWidgetConfig.orderDepositUrl ${describeRejectedValue(orderDepositUrl)} is not an http(s) URL without a query or a fragment. ${hint}`
5456
+ );
5457
+ }
5458
+ return orderDepositUrl.replace(/\/+$/, "");
5459
+ }
5450
5460
  function resolveGasPaymentDefaultToken(network, value) {
5451
5461
  const token = value === void 0 || typeof value === "string" ? resolveDefaultGasToken(network, value) : void 0;
5452
5462
  if (token) return token;
@@ -5560,6 +5570,7 @@ function resolveFluentWidgetConfig(config) {
5560
5570
  eventsEndpoint: "",
5561
5571
  analyticsHost: endpoints.analyticsHost,
5562
5572
  sponsorshipUrl: config.sponsorshipUrl ?? endpoints.sponsorshipUrl,
5573
+ orderDepositUrl: resolveOrderDepositUrl(config.orderDepositUrl, endpoints.orderDepositUrl),
5563
5574
  authTokenRenewalOffsetSeconds: config.authTokenRenewalOffsetSeconds ?? 30,
5564
5575
  disableAnalytics: config.disableAnalytics ?? false,
5565
5576
  reconnectOnMount: config.reconnectOnMount,
@@ -5582,7 +5593,7 @@ function resolveFluentWidgetConfig(config) {
5582
5593
  whitelistAddresses: resolveQuickSignWhitelist(config.quickSign?.whitelistAddresses)
5583
5594
  },
5584
5595
  reputationEnabled: config.reputationEnabled ?? true,
5585
- // `scopes` left the config in 0.6.0; a JavaScript host that still passes it is ignored.
5596
+ // The scopes follow the Network; a `scopes` key a JavaScript host passes is ignored.
5586
5597
  scopes: getFluentWidgetDefaultScopes(network),
5587
5598
  source: config.source ?? "fluent_connect_widget",
5588
5599
  campaign: config.campaign,
@@ -5613,7 +5624,7 @@ function createFluentConnectForWidget(config) {
5613
5624
  }
5614
5625
 
5615
5626
  // package.json
5616
- var version = "0.7.2";
5627
+ var version = "0.8.0";
5617
5628
 
5618
5629
  // src/core/analytics.ts
5619
5630
  var INSTANCE_NAME = "fluent";
@@ -5640,10 +5651,9 @@ function initFluentAnalytics(config) {
5640
5651
  api_host: config.analyticsHost,
5641
5652
  ui_host: POSTHOG_UI_HOST,
5642
5653
  persistence: "localStorage",
5643
- // The widget is a guest in someone else's page — no automatic collection.
5644
- // Every one of these must be set explicitly: the project's remote config
5645
- // turns performance capture, heatmaps and console recording ON, so leaving
5646
- // an option out is not the same as switching it off.
5654
+ // The widget is a guest in the App's page: no automatic collection. Each option is set
5655
+ // explicitly, because the project's remote config turns performance capture, heatmaps
5656
+ // and console recording on, and leaving one out does not switch it off.
5647
5657
  autocapture: false,
5648
5658
  capture_pageview: false,
5649
5659
  capture_pageleave: false,
@@ -5762,7 +5772,7 @@ function FluentPortalContainerProvider({ children }) {
5762
5772
  const [toastLayer, setToastLayer] = useState(null);
5763
5773
  const [openSurface, setOpenSurface] = useState(null);
5764
5774
  const holdsRef = useRef(0);
5765
- useLayoutEffect(() => {
5775
+ useIsomorphicLayoutEffect(() => {
5766
5776
  const element = document.createElement("div");
5767
5777
  element.setAttribute("data-fluent-portal-root", "");
5768
5778
  element.className = WIDGET_STYLE_SCOPE;
@@ -5890,7 +5900,7 @@ function FluentTopLayerSlot({
5890
5900
  }) {
5891
5901
  const topLayer = useContext(FluentTopLayerContext);
5892
5902
  const active = !disabled && topLayer !== null;
5893
- useLayoutEffect(() => {
5903
+ useIsomorphicLayoutEffect(() => {
5894
5904
  if (!active) return;
5895
5905
  return topLayer.acquire();
5896
5906
  }, [active, topLayer]);
@@ -5942,7 +5952,11 @@ var Button = forwardRef(function Button2({ className, variant = "default", size
5942
5952
  ref,
5943
5953
  "data-slot": "button",
5944
5954
  nativeButton: isLink ? false : void 0,
5945
- className: cn(buttonVariants({ variant, size }), isLink && linkVariants[variant ?? "default"], className),
5955
+ className: cn(
5956
+ buttonVariants({ variant, size }),
5957
+ isLink && linkVariants[variant ?? "default"],
5958
+ className
5959
+ ),
5946
5960
  render: isLink ? /* @__PURE__ */ jsx("a", { href, target, rel }) : render,
5947
5961
  ...props
5948
5962
  }
@@ -6029,10 +6043,7 @@ function ToastTitle({ className, ...props }) {
6029
6043
  }
6030
6044
  );
6031
6045
  }
6032
- function ToastDescription({
6033
- className,
6034
- ...props
6035
- }) {
6046
+ function ToastDescription({ className, ...props }) {
6036
6047
  return /* @__PURE__ */ jsx(
6037
6048
  Toast$1.Description,
6038
6049
  {
@@ -6121,11 +6132,7 @@ function ToastList() {
6121
6132
  /* @__PURE__ */ jsx(ToastClose, {})
6122
6133
  ] }) }, toastItem.id));
6123
6134
  }
6124
- function Toaster({
6125
- children,
6126
- toastManager = toast,
6127
- ...props
6128
- }) {
6135
+ function Toaster({ children, toastManager = toast, ...props }) {
6129
6136
  return /* @__PURE__ */ jsxs(ToastProvider, { toastManager, ...props, children: [
6130
6137
  children,
6131
6138
  /* @__PURE__ */ jsx(ToastPortal, { children: /* @__PURE__ */ jsx(ToastViewport, { children: /* @__PURE__ */ jsx(ToastList, {}) }) })
@@ -6495,7 +6502,7 @@ function useBridgeTxHistoryPages({
6495
6502
  }
6496
6503
 
6497
6504
  // src/bridge/route.ts
6498
- function getFluentBridgeRoute(network) {
6505
+ function getFluentBridgeRoute(network, orderDepositUrl = getFluentWidgetNetworkEndpoints(network).orderDepositUrl) {
6499
6506
  const destination = getFluentChainForNetwork(network);
6500
6507
  const definition = getFluentChain(network === "mainnet" ? "mainnet" : "testnet");
6501
6508
  const l1 = getL1ForFluentChain(definition);
@@ -6513,17 +6520,17 @@ function getFluentBridgeRoute(network) {
6513
6520
  erc20Gateway,
6514
6521
  fastPathPortal,
6515
6522
  swapFacility,
6516
- bridge
6523
+ bridge,
6524
+ orderApiUrl: orderDepositUrl || void 0
6517
6525
  };
6518
6526
  }
6519
6527
  var REOWN_PROJECT_ID = FLUENT_CONNECT_REOWN_PROJECT_ID;
6520
6528
  var queryClient = new QueryClient();
6521
6529
  var appKitByKey = /* @__PURE__ */ new Map();
6530
+ var appKitModal = null;
6522
6531
  var reownConfigured = Boolean(REOWN_PROJECT_ID);
6523
6532
  function getReownNetworks(chain) {
6524
- const bridgeSource = getFluentBridgeRoute(
6525
- chain.testnet ? "testnet" : "mainnet"
6526
- )?.source;
6533
+ const bridgeSource = getFluentBridgeRoute(chain.testnet ? "testnet" : "mainnet")?.source;
6527
6534
  return bridgeSource && bridgeSource.id !== chain.id ? [chain, bridgeSource] : [chain];
6528
6535
  }
6529
6536
  function canReconnectSilently(connector) {
@@ -6579,23 +6586,13 @@ function getReownWagmiAdapter(chain, disableAnalytics, reconnectOnMount) {
6579
6586
  });
6580
6587
  appKitByKey.set(key, adapter);
6581
6588
  if (typeof window !== "undefined") {
6582
- createAppKit({
6589
+ appKitModal = createAppKit({
6583
6590
  // false triggers AppKit initialDisconnect (and ends WalletConnect sessions).
6584
6591
  // Keep it enabled for the default policy; the adapter filters its restore calls.
6585
6592
  enableReconnect: reconnectOnMount !== false,
6586
- // No path through the widget needs an External wallet to already sit on a
6587
- // chain of `networks`: each one moves the wallet itself before it signs.
6588
- // AppKit's gate assumes otherwise — an active network outside `networks`
6589
- // opens its `UnsupportedChain` view, headed "Switch Network", which locks
6590
- // the page scroll and closes for nothing: its close button, Escape and the
6591
- // overlay all reach `ModalUtil.safeClose`, which shakes the modal and
6592
- // returns, so only a reload gets the page back. No wallet has to be
6593
- // connected for that: AppKit reads the active network back from
6594
- // `@appkit/active_caip_network_id`, one localStorage key per origin that
6595
- // every AppKit on it writes — a host app's own wallet connect, or this
6596
- // widget on the other network (FLU-1647). This option turns that gate off
6597
- // and nothing else; `enableNetworkSwitch: false` would instead open the
6598
- // same view from a path it does not gate.
6593
+ // Every widget path moves the External wallet to its chain itself. AppKit's gate on an
6594
+ // active network outside `networks`, read from a localStorage key any AppKit on the origin
6595
+ // writes, opens an `UnsupportedChain` view that nothing but a reload closes.
6599
6596
  allowUnsupportedChain: true,
6600
6597
  adapters: [adapter],
6601
6598
  networks,
@@ -6650,17 +6647,15 @@ function ReownProvider({
6650
6647
  if (wagmiAdapter instanceof SilentReconnectAdapter) {
6651
6648
  return /* @__PURE__ */ jsx(WagmiContext.Provider, { value: wagmiAdapter.wagmiConfig, children: /* @__PURE__ */ jsx(QueryClientProvider, { client: queryClient, children }) });
6652
6649
  }
6653
- return /* @__PURE__ */ jsx(
6654
- WagmiProvider,
6655
- {
6656
- reconnectOnMount,
6657
- config: wagmiAdapter.wagmiConfig,
6658
- children: /* @__PURE__ */ jsx(QueryClientProvider, { client: queryClient, children })
6659
- }
6660
- );
6650
+ return /* @__PURE__ */ jsx(WagmiProvider, { reconnectOnMount, config: wagmiAdapter.wagmiConfig, children: /* @__PURE__ */ jsx(QueryClientProvider, { client: queryClient, children }) });
6661
6651
  }
6662
6652
  function useReownWallet() {
6663
- const { open } = useAppKit();
6653
+ const open = useCallback(
6654
+ async (options) => {
6655
+ await appKitModal?.open(options);
6656
+ },
6657
+ []
6658
+ );
6664
6659
  const { address, chainId, isConnected, status } = useAccount();
6665
6660
  const { disconnect } = useDisconnect();
6666
6661
  const { data: walletClient } = useWalletClient();
@@ -6670,14 +6665,10 @@ function useReownWallet() {
6670
6665
  const choices = useMemo(
6671
6666
  () => connectors.filter(
6672
6667
  (connector) => (
6673
- // The bridge page's picker registers wallets of its own into this
6674
- // config; they share AppKit's `walletConnect` id and belong there.
6675
- // RainbowKit's mark is read here rather than through
6676
- // `isBridgeWalletConnector`: `reownAppKit.test.mjs` runs this
6677
- // hook's source on its own, with no import in reach.
6678
- !connector.rkDetails?.isRainbowKitConnector && connector.id !== "AUTH" && (connector.id !== "injected" || typeof window !== "undefined" && "ethereum" in window && !connectors.some(
6679
- (other) => other.type === "injected" && other.id !== "injected"
6680
- ))
6668
+ // The bridge page's picker registers its own wallets here. RainbowKit's mark is read
6669
+ // inline, not through `isBridgeWalletConnector`: `reownAppKit.test.mjs` runs this
6670
+ // hook's source alone, with no import in reach.
6671
+ !connector.rkDetails?.isRainbowKitConnector && connector.id !== "AUTH" && (connector.id !== "injected" || typeof window !== "undefined" && "ethereum" in window && !connectors.some((other) => other.type === "injected" && other.id !== "injected"))
6681
6672
  )
6682
6673
  ).map((connector) => ({
6683
6674
  id: connector.uid,
@@ -6690,8 +6681,7 @@ function useReownWallet() {
6690
6681
  const connectChoice = useCallback(
6691
6682
  async (id) => {
6692
6683
  const connector = connectors.find((candidate) => candidate.uid === id);
6693
- if (!connector)
6694
- throw new Error("Wallet is no longer available. Try again.");
6684
+ if (!connector) throw new Error("Wallet is no longer available. Try again.");
6695
6685
  if (connector.id === "walletConnect") {
6696
6686
  await open({ view: "ConnectingWalletConnectBasic" });
6697
6687
  return;
@@ -6743,9 +6733,7 @@ function hasPendingInlineOAuth() {
6743
6733
  }
6744
6734
  function getPendingInlineOAuth() {
6745
6735
  try {
6746
- const saved = JSON.parse(
6747
- window.sessionStorage.getItem(inlineOAuthKey) ?? "null"
6748
- );
6736
+ const saved = JSON.parse(window.sessionStorage.getItem(inlineOAuthKey) ?? "null");
6749
6737
  const intent = typeof saved === "number" ? { started: saved, provider: "twitter" } : saved;
6750
6738
  if (!intent || typeof intent !== "object") return null;
6751
6739
  const { started, provider } = intent;
@@ -6777,10 +6765,7 @@ function DialogPortal({ container, children, ...props }) {
6777
6765
  }
6778
6766
  );
6779
6767
  }
6780
- function DialogOverlay({
6781
- className,
6782
- ...props
6783
- }) {
6768
+ function DialogOverlay({ className, ...props }) {
6784
6769
  return /* @__PURE__ */ jsx(
6785
6770
  Dialog$1.Backdrop,
6786
6771
  {
@@ -6836,32 +6821,19 @@ function DialogContent({
6836
6821
  ] });
6837
6822
  }
6838
6823
  function DialogHeader({ className, ...props }) {
6839
- return /* @__PURE__ */ jsx(
6840
- "div",
6841
- {
6842
- "data-slot": "dialog-header",
6843
- className: cn("flex flex-col gap-2", className),
6844
- ...props
6845
- }
6846
- );
6824
+ return /* @__PURE__ */ jsx("div", { "data-slot": "dialog-header", className: cn("flex flex-col gap-2", className), ...props });
6847
6825
  }
6848
6826
  function DialogTitle({ className, ...props }) {
6849
6827
  return /* @__PURE__ */ jsx(
6850
6828
  Dialog$1.Title,
6851
6829
  {
6852
6830
  "data-slot": "dialog-title",
6853
- className: cn(
6854
- "text-base leading-none font-medium",
6855
- className
6856
- ),
6831
+ className: cn("text-base leading-none font-medium", className),
6857
6832
  ...props
6858
6833
  }
6859
6834
  );
6860
6835
  }
6861
- function DialogDescription({
6862
- className,
6863
- ...props
6864
- }) {
6836
+ function DialogDescription({ className, ...props }) {
6865
6837
  return /* @__PURE__ */ jsx(
6866
6838
  Dialog$1.Description,
6867
6839
  {
@@ -6889,10 +6861,28 @@ function Label({ className, ...props }) {
6889
6861
  }
6890
6862
  var icons = {
6891
6863
  google: (props) => /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
6892
- /* @__PURE__ */ jsx("path", { fill: "#4285F4", d: "M21.6 12.23c0-.71-.06-1.39-.18-2.05H12v3.88h5.38a4.6 4.6 0 0 1-2 3.02v2.51h3.24c1.9-1.75 2.98-4.33 2.98-7.36Z" }),
6893
- /* @__PURE__ */ jsx("path", { fill: "#34A853", d: "M12 22c2.7 0 4.96-.9 6.62-2.42l-3.24-2.51c-.9.6-2.04.96-3.38.96-2.6 0-4.8-1.76-5.59-4.12H3.07v2.59A10 10 0 0 0 12 22Z" }),
6864
+ /* @__PURE__ */ jsx(
6865
+ "path",
6866
+ {
6867
+ fill: "#4285F4",
6868
+ d: "M21.6 12.23c0-.71-.06-1.39-.18-2.05H12v3.88h5.38a4.6 4.6 0 0 1-2 3.02v2.51h3.24c1.9-1.75 2.98-4.33 2.98-7.36Z"
6869
+ }
6870
+ ),
6871
+ /* @__PURE__ */ jsx(
6872
+ "path",
6873
+ {
6874
+ fill: "#34A853",
6875
+ d: "M12 22c2.7 0 4.96-.9 6.62-2.42l-3.24-2.51c-.9.6-2.04.96-3.38.96-2.6 0-4.8-1.76-5.59-4.12H3.07v2.59A10 10 0 0 0 12 22Z"
6876
+ }
6877
+ ),
6894
6878
  /* @__PURE__ */ jsx("path", { fill: "#FBBC05", d: "M6.41 13.91a6 6 0 0 1 0-3.82V7.5H3.07a10 10 0 0 0 0 9l3.34-2.59Z" }),
6895
- /* @__PURE__ */ jsx("path", { fill: "#EA4335", d: "M12 5.97c1.47 0 2.79.5 3.83 1.5l2.87-2.88A9.63 9.63 0 0 0 12 2a10 10 0 0 0-8.93 5.5l3.34 2.59C7.2 7.73 9.4 5.97 12 5.97Z" })
6879
+ /* @__PURE__ */ jsx(
6880
+ "path",
6881
+ {
6882
+ fill: "#EA4335",
6883
+ d: "M12 5.97c1.47 0 2.79.5 3.83 1.5l2.87-2.88A9.63 9.63 0 0 0 12 2a10 10 0 0 0-8.93 5.5l3.34 2.59C7.2 7.73 9.4 5.97 12 5.97Z"
6884
+ }
6885
+ )
6896
6886
  ] }),
6897
6887
  x: (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsx("path", { d: "M10.4883 14.651L15.25 21H22.25L14.3917 10.5223L20.9308 3H18.2808L13.1643 8.88578L8.75 3H1.75L9.26086 13.0145L2.31915 21H4.96917L10.4883 14.651ZM16.25 19L5.75 5H7.75L18.25 19H16.25Z" }) }),
6898
6888
  "arrow-right-s-line": (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsx("path", { d: "M13.1717 12.0007L8.22192 7.05093L9.63614 5.63672L16.0001 12.0007L9.63614 18.3646L8.22192 16.9504L13.1717 12.0007Z" }) }),
@@ -6911,70 +6901,218 @@ var icons = {
6911
6901
  ] }),
6912
6902
  // Circle's USDC mark without its blue disc, which the token tile draws; the
6913
6903
  // view box is cropped to the mark so it sizes like the other token glyphs.
6914
- usdc: (props) => /* @__PURE__ */ jsxs("svg", { viewBox: "250 250 1500 1500", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
6915
- /* @__PURE__ */ jsx("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" }),
6916
- /* @__PURE__ */ jsx("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.5zm441.67-1300c-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" })
6917
- ] }),
6918
- usdnr: (props) => /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 75 75", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
6919
- /* @__PURE__ */ jsx("path", { d: "M36.8,58.23c-.18-.12-.36-.24-.53-.36l-.34-.24-1.38,17.22,.23,.03c.34,.04,.68,.08,1.02,.1l.25,.02,.89-16.69-.12-.08Zm2.73,1.55c-.14-.07-.29-.14-.43-.21l-.37-.19,.86,15.63,.25-.02c.31-.03,.62-.06,.93-.1l.23-.03-1.2-14.95-.13-.06-.14-.07Zm-5.17-3.37c-.16-.14-.32-.28-.48-.42l-.31-.28-3.94,17.99,.21,.07c.35,.12,.7,.23,1.05,.33l.25,.07,3.33-17.67-.11-.09Zm8.46,4.67c-.15-.05-.29-.09-.44-.14l-.39-.13,2.57,13.32,.25-.07c.27-.08,.54-.16,.81-.25l.21-.07-2.72-12.56-.14-.04-.15-.05Zm3.68,.85c-.15-.02-.29-.05-.44-.07l-.4-.07,3.56,10.49,.25-.13c.22-.12,.44-.24,.66-.36l.18-.1-3.52-9.71-.14-.02-.15-.02Zm-15.82-9.4c-.13-.16-.25-.33-.37-.5l-.23-.31-9,16.93,.14,.13c.31,.28,.63,.55,.95,.81l.23,.19,8.36-17.13-.09-.12Zm19.96,9.67c-.18,0-.68,0-.87,0h-.41s4.02,7.36,4.02,7.36l.22-.18c.17-.14,.34-.28,.5-.43l.14-.13-3.47-6.62h-.15Zm-21.28-11.59c-.11-.17-.21-.35-.31-.52l-.19-.32-11.05,15.3,.11,.14c.26,.34,.53,.68,.81,1.02l.21,.24,10.5-15.73-.08-.13Zm28.05,14.86l.11-.14-2.55-3.59-.15,.03c-.17,.03-.33,.06-.5,.09l-.37,.06,2.9,4.24,.2-.25c.12-.15,.24-.29,.35-.44Zm-29.11-16.75c-.09-.18-.18-.36-.27-.55l-.15-.32-12.54,13.16,.07,.15c.2,.4,.41,.8,.63,1.19l.17,.3,12.16-13.79-.07-.15Zm31.71,12.66l-.82-.89-.15,.06c-.14,.05-.28,.11-.42,.16l-.48,.19,1.23,1.63c.08-.14,.58-1.01,.65-1.15Zm-32.54-14.53c-.07-.19-.15-.37-.22-.56l-.12-.31-13.39,10.73,.04,.15c.12,.44,.26,.89,.41,1.32l.11,.34,13.23-11.51-.06-.16Zm-.64-1.8c-.06-.19-.11-.38-.17-.57l-.09-.3-13.61,8.15v.15c.06,.47,.11,.93,.18,1.39l.06,.37,13.68-9.02-.05-.17Zm-.46-1.72c-.04-.19-.09-.38-.13-.57l-.06-.29-13.22,5.63v.15c-.05,.47-.07,.93-.08,1.4v.39s13.53-6.51,13.53-6.51l-.04-.19Zm-.33-1.67c-.03-.2-.06-.39-.09-.59l-.04-.27-12.3,3.35-.03,.14c-.11,.45-.21,.91-.29,1.36l-.07,.4,12.86-4.17-.03-.2Zm-.21-1.65c-.02-.21-.04-.41-.05-.62l-.02-.26-10.98,1.43-.05,.13c-.17,.42-.34,.85-.49,1.28l-.14,.39,11.73-2.13-.02-.22Zm-.04-3.95l.02-.22-7.59-1.08-.09,.11c-.27,.34-.52,.68-.76,1.03l-.24,.34,8.62,.75v-.25c.02-.22,.03-.45,.05-.67Zm.18-1.68l.03-.21-5.79-1.65-.1,.1c-.29,.29-.57,.59-.84,.89l-.28,.31,6.87,1.53,.03-.27c.03-.24,.05-.47,.09-.71Zm.3-1.7l.04-.19-4.07-1.78-.11,.09c-.3,.24-.6,.5-.89,.75l-.3,.27,5.13,1.89,.05-.28c.04-.25,.09-.5,.15-.75Zm.44-1.73l.05-.18-2.49-1.53-.13,.08c-.31,.2-.61,.41-.91,.63l-.31,.23,3.5,1.86,.07-.3c.07-.27,.14-.53,.22-.79Zm.6-1.79l.06-.16-1.11-.91-.14,.07c-.31,.17-.62,.34-.93,.52l-.32,.19,2.03,1.46,.1-.31c.1-.29,.2-.57,.3-.86Zm.38-.95c.06-.14,.12-.29,.19-.43l.26-.58-.58,.26c-.15,.07-.29,.13-.44,.2l-.32,.15,.76,.71,.13-.32Zm-1.95,10.17c0-.22,0-.43,0-.65v-.24l-9.36-.06-.07,.12s-.01,.02-.02,.03c0,.01-.02,.03-.05,.09h0c-.2,.35-.39,.69-.57,1.04l-.19,.37,10.28-.48v-.24Zm6.16,15.65c.14,.16,.28,.31,.43,.47l.1,.1-5.89,17.81-.25-.13c-.35-.18-.69-.37-1.03-.57l-.17-.1,6.56-17.88,.27,.3Z" }),
6920
- /* @__PURE__ */ jsx("path", { d: "M58.26,38.26c-.12,.18-.24,.36-.36,.53l-.24,.34,17.19,1.39,.03-.23c.04-.34,.08-.68,.1-1.02l.02-.25-16.67-.89-.08,.12Zm1.54-2.74c-.07,.14-.14,.29-.21,.43l-.19,.37,15.6-.86-.02-.25c-.03-.31-.06-.62-.1-.93l-.03-.23-14.92,1.2-.06,.13-.07,.14Zm-3.36,5.18c-.14,.16-.28,.32-.42,.49l-.28,.31,17.96,3.95,.07-.21c.12-.35,.23-.7,.33-1.06l.07-.25-17.64-3.33-.09,.11Zm4.66-8.48c-.05,.15-.09,.3-.14,.44l-.13,.39,13.3-2.57-.07-.25c-.08-.27-.16-.54-.25-.81l-.07-.21-12.54,2.72-.04,.14-.05,.15Zm.85-3.69c-.02,.15-.05,.29-.07,.44l-.07,.4,10.47-3.56-.13-.25c-.12-.22-.24-.44-.36-.66l-.1-.18-9.7,3.52-.02,.14-.02,.15Zm-9.39,15.85c-.16,.13-.33,.25-.5,.37l-.31,.23,16.91,9.01,.13-.14c.28-.31,.55-.63,.81-.95l.19-.24-17.1-8.37-.12,.09Zm9.65-19.99c0,.18,0,.68,0,.87v.41s7.35-4.03,7.35-4.03l-.18-.22c-.14-.17-.28-.34-.43-.5l-.12-.14-6.61,3.47v.15Zm-11.57,21.32c-.17,.11-.35,.21-.52,.31l-.32,.19,15.28,11.07,.14-.11c.34-.26,.68-.53,1.02-.82l.24-.21-15.7-10.52-.13,.08Zm14.83-28.1l-.14-.11-3.59,2.55,.03,.15c.03,.17,.06,.34,.09,.5l.06,.37,4.23-2.91-.25-.2c-.15-.12-.29-.24-.44-.35Zm-16.73,29.16c-.18,.09-.36,.18-.54,.27l-.32,.15,13.14,12.56,.15-.07c.4-.2,.8-.41,1.19-.63l.3-.17-13.77-12.18-.15,.07Zm12.64-31.76l-.88,.82,.06,.15c.05,.14,.11,.28,.16,.42l.19,.49,1.62-1.24c-.14-.08-1.01-.58-1.15-.65Zm-14.5,32.6c-.19,.07-.37,.15-.56,.22l-.31,.12,10.71,13.42,.15-.04c.44-.12,.88-.26,1.32-.41l.34-.12-11.49-13.25-.16,.06Zm-1.79,.64c-.19,.06-.38,.11-.57,.17l-.3,.09,8.13,13.63h.15c.46-.06,.93-.11,1.39-.18l.37-.06-9.01-13.7-.17,.05Zm-1.72,.47c-.19,.04-.38,.09-.57,.13l-.29,.06,5.62,13.24h.15c.47,.05,.93,.07,1.4,.08h.39s-6.5-13.55-6.5-13.55l-.19,.04Zm-1.67,.33c-.2,.03-.39,.06-.59,.09l-.27,.04,3.34,12.32,.14,.03c.45,.11,.9,.21,1.36,.29l.4,.07-4.17-12.88-.2,.03Zm-1.64,.21c-.21,.02-.41,.04-.61,.05l-.26,.02,1.43,10.99,.13,.05c.42,.17,.85,.34,1.28,.49l.39,.14-2.13-11.75-.22,.02Zm-3.95,.04l-.22-.02-1.08,7.6,.11,.09c.34,.27,.68,.52,1.03,.77l.34,.24,.75-8.63h-.25c-.22-.02-.45-.03-.67-.05Zm-1.68-.18l-.21-.03-1.64,5.8,.1,.1c.29,.29,.59,.57,.89,.85l.31,.28,1.53-6.88-.27-.03c-.24-.03-.47-.05-.71-.09Zm-1.69-.3l-.19-.04-1.78,4.08,.09,.11c.24,.3,.49,.6,.75,.89l.27,.3,1.89-5.14-.28-.05c-.25-.04-.5-.09-.74-.15Zm-1.73-.44l-.18-.05-1.53,2.49,.08,.13c.2,.31,.41,.61,.63,.91l.23,.31,1.86-3.51-.3-.07c-.27-.07-.53-.14-.79-.22Zm-1.79-.6l-.16-.06-.91,1.11,.07,.14c.17,.31,.34,.62,.52,.93l.19,.32,1.45-2.03-.31-.1c-.29-.1-.57-.2-.85-.31Zm-.95-.38c-.14-.06-.29-.12-.43-.19l-.58-.26,.26,.58c.07,.15,.13,.29,.2,.44l.15,.32,.71-.76-.32-.13Zm10.15,1.95c-.22,0-.43,0-.65,0h-.24l-.06,9.37,.12,.07s.02,.01,.03,.02c.01,0,.03,.02,.09,.05h0c.34,.2,.69,.39,1.04,.57l.37,.19-.48-10.29h-.23Zm15.63-6.17c.16-.14,.31-.28,.47-.43l.1-.1,17.78,5.9-.13,.25c-.18,.35-.37,.69-.57,1.04l-.1,.18-17.85-6.57,.3-.27Z" }),
6921
- /* @__PURE__ */ jsx("path", { d: "M38.2,16.77c.18,.12,.36,.24,.53,.36l.34,.24L40.46,.15l-.23-.03c-.34-.04-.68-.08-1.02-.1l-.25-.02-.89,16.69,.12,.08Zm-2.73-1.55c.14,.07,.29,.14,.43,.21l.37,.19L35.41,0l-.25,.02c-.31,.03-.62,.06-.93,.1l-.23,.03,1.2,14.95,.13,.06,.14,.07Zm5.17,3.37c.16,.14,.32,.28,.48,.42l.31,.28L45.37,1.3l-.21-.07c-.35-.12-.7-.23-1.05-.33l-.25-.07-3.33,17.67,.11,.09Zm-8.46-4.67c.15,.05,.29,.09,.44,.14l.39,.13L30.44,.88l-.25,.07c-.27,.08-.54,.16-.81,.25l-.2,.07,2.72,12.56,.14,.04,.15,.05Zm-3.68-.85c.15,.02,.29,.05,.44,.07l.4,.07-3.56-10.49-.25,.13c-.22,.12-.44,.24-.66,.36l-.18,.1,3.52,9.71,.14,.02,.15,.02Zm15.82,9.4c.13,.16,.25,.33,.37,.5l.23,.31L53.91,6.35l-.14-.13c-.31-.28-.63-.55-.95-.81l-.23-.19-8.36,17.13,.09,.12ZM24.35,12.81c.18,0,.68,0,.87,0h.41s-4.02-7.36-4.02-7.36l-.22,.18c-.17,.14-.34,.28-.5,.43l-.14,.13,3.47,6.62h.15Zm21.28,11.59c.11,.17,.21,.35,.31,.52l.19,.32,11.05-15.3-.11-.14c-.26-.34-.53-.68-.81-1.02l-.21-.24-10.5,15.73,.08,.13ZM17.58,9.55l-.11,.14,2.55,3.59,.15-.03c.17-.03,.33-.06,.5-.09l.37-.06-2.9-4.24-.2,.25c-.12,.15-.24,.29-.35,.44Zm29.11,16.75c.09,.18,.18,.36,.27,.55l.15,.32,12.54-13.16-.07-.15c-.2-.4-.41-.8-.63-1.19l-.17-.3-12.16,13.79,.07,.15ZM14.99,13.65l.82,.89,.15-.06c.14-.05,.28-.11,.42-.16l.48-.19-1.23-1.63c-.08,.14-.58,1.01-.65,1.15Zm32.54,14.53c.07,.19,.15,.37,.22,.56l.12,.31,13.39-10.73-.04-.15c-.12-.44-.26-.89-.41-1.32l-.11-.34-13.23,11.51,.06,.16Zm.64,1.8c.06,.19,.11,.38,.17,.57l.09,.3,13.61-8.15v-.15c-.06-.47-.11-.93-.18-1.39l-.06-.37-13.68,9.02,.05,.17Zm.46,1.72c.04,.19,.09,.38,.13,.57l.06,.29,13.22-5.63v-.15c.05-.47,.07-.93,.08-1.4v-.39s-13.53,6.51-13.53,6.51l.04,.19Zm.33,1.67c.03,.2,.06,.39,.09,.59l.04,.27,12.3-3.35,.03-.14c.11-.45,.21-.91,.29-1.36l.07-.4-12.86,4.17,.03,.2Zm.21,1.65c.02,.21,.04,.41,.05,.62l.02,.26,10.98-1.43,.05-.13c.17-.42,.34-.85,.49-1.28l.14-.39-11.73,2.13,.02,.22Zm.04,3.95l-.02,.22,7.59,1.08,.09-.11c.27-.34,.52-.68,.76-1.03l.24-.34-8.62-.75v.25c-.02,.22-.03,.45-.05,.67Zm-.18,1.68l-.03,.21,5.79,1.65,.1-.1c.29-.29,.57-.59,.84-.89l.28-.31-6.87-1.53-.03,.27c-.03,.24-.05,.47-.09,.71Zm-.3,1.7l-.04,.19,4.07,1.78,.11-.09c.3-.24,.6-.5,.89-.75l.3-.27-5.13-1.89-.05,.28c-.04,.25-.09,.5-.15,.75Zm-.44,1.73l-.05,.18,2.49,1.53,.13-.08c.31-.2,.61-.41,.91-.63l.31-.23-3.5-1.86-.07,.3c-.07,.27-.14,.53-.22,.79Zm-.6,1.79l-.06,.16,1.11,.91,.14-.07c.31-.17,.62-.34,.93-.52l.32-.19-2.03-1.46-.1,.31c-.1,.29-.2,.57-.3,.86Zm-.38,.95c-.06,.14-.12,.29-.19,.43l-.26,.58,.58-.26c.15-.07,.29-.13,.44-.2l.32-.15-.76-.71-.13,.32Zm1.95-10.17c0,.22,0,.43,0,.65v.24l9.36,.06,.07-.12s.01-.02,.02-.03c0-.01,.02-.03,.05-.09h0c.2-.35,.39-.69,.57-1.04l.19-.37-10.28,.48v.24Zm-6.16-15.65c-.14-.16-.28-.31-.43-.47l-.1-.1L48.46,2.61l.25,.13c.35,.18,.69,.37,1.03,.57l.17,.1-6.56,17.88-.27-.3Z" }),
6922
- /* @__PURE__ */ jsx("path", { d: "M16.74,36.74c.12-.18,.24-.36,.36-.53l.24-.34L.15,34.48l-.03,.23c-.04,.34-.08,.68-.1,1.02l-.02,.25,16.67,.89,.08-.12Zm-1.54,2.74c.07-.14,.14-.29,.21-.43l.19-.37L0,39.54l.02,.25c.03,.31,.06,.62,.1,.93l.03,.23,14.92-1.2,.06-.13,.07-.14Zm3.36-5.18c.14-.16,.28-.32,.42-.49l.28-.31L1.3,29.56l-.07,.21c-.12,.35-.23,.7-.33,1.06l-.07,.25,17.64,3.33,.09-.11Zm-4.66,8.48c.05-.15,.09-.3,.14-.44l.13-.39L.88,44.52l.07,.25c.08,.27,.16,.54,.25,.81l.07,.21,12.54-2.72,.04-.14,.05-.15Zm-.85,3.69c.02-.15,.05-.29,.07-.44l.07-.4-10.47,3.56,.13,.25c.12,.22,.24,.44,.36,.66l.1,.18,9.7-3.52,.02-.14,.02-.15Zm9.39-15.85c.16-.13,.33-.25,.5-.37l.31-.23L6.34,21.01l-.13,.14c-.28,.31-.55,.63-.81,.95l-.19,.24,17.1,8.37,.12-.09Zm-9.65,19.99c0-.18,0-.68,0-.87v-.41s-7.35,4.03-7.35,4.03l.18,.22c.14,.17,.28,.34,.43,.5l.12,.14,6.61-3.47v-.15Zm11.57-21.32c.17-.11,.35-.21,.52-.31l.32-.19-15.28-11.07-.14,.11c-.34,.26-.68,.53-1.02,.82l-.24,.21,15.7,10.52,.13-.08Zm-14.83,28.1l.14,.11,3.59-2.55-.03-.15c-.03-.17-.06-.34-.09-.5l-.06-.37-4.23,2.91,.25,.2c.15,.12,.29,.24,.44,.35ZM26.26,28.24c.18-.09,.36-.18,.54-.27l.32-.15L13.98,15.26l-.15,.07c-.4,.2-.8,.41-1.19,.63l-.3,.17,13.77,12.18,.15-.07Zm-12.64,31.76l.88-.82-.06-.15c-.05-.14-.11-.28-.16-.42l-.19-.49-1.62,1.24c.14,.08,1.01,.58,1.15,.65ZM28.13,27.4c.19-.07,.37-.15,.56-.22l.31-.12-10.71-13.42-.15,.04c-.44,.12-.88,.26-1.32,.41l-.34,.12,11.49,13.25,.16-.06Zm1.79-.64c.19-.06,.38-.11,.57-.17l.3-.09-8.13-13.63h-.15c-.46,.06-.93,.11-1.39,.18l-.37,.06,9.01,13.7,.17-.05Zm1.72-.47c.19-.04,.38-.09,.57-.13l.29-.06-5.62-13.24h-.15c-.47-.05-.93-.07-1.4-.08h-.39s6.5,13.55,6.5,13.55l.19-.04Zm1.67-.33c.2-.03,.39-.06,.59-.09l.27-.04-3.34-12.32-.14-.03c-.45-.11-.9-.21-1.36-.29l-.4-.07,4.17,12.88,.2-.03Zm1.64-.21c.21-.02,.41-.04,.61-.05l.26-.02-1.43-10.99-.13-.05c-.42-.17-.85-.34-1.28-.49l-.39-.14,2.13,11.75,.22-.02Zm3.95-.04l.22,.02,1.08-7.6-.11-.09c-.34-.27-.68-.52-1.03-.77l-.34-.24-.75,8.63h.25c.22,.02,.45,.03,.67,.05Zm1.68,.18l.21,.03,1.64-5.8-.1-.1c-.29-.29-.59-.57-.89-.84l-.31-.28-1.53,6.88,.27,.03c.24,.03,.47,.05,.71,.09Zm1.69,.3l.19,.04,1.78-4.08-.09-.11c-.24-.3-.49-.6-.75-.89l-.27-.3-1.89,5.14,.28,.05c.25,.04,.5,.09,.74,.15Zm1.73,.44l.18,.05,1.53-2.49-.08-.13c-.2-.31-.41-.61-.63-.91l-.23-.31-1.86,3.51,.3,.07c.27,.07,.53,.14,.79,.22Zm1.79,.6l.16,.06,.91-1.11-.07-.14c-.17-.31-.34-.62-.52-.93l-.19-.32-1.45,2.03,.31,.1c.29,.1,.57,.2,.85,.31Zm.95,.38c.14,.06,.29,.12,.43,.19l.58,.26-.26-.58c-.07-.15-.13-.29-.2-.44l-.15-.32-.71,.76,.32,.13Zm-10.15-1.95c.22,0,.43,0,.65,0h.24l.06-9.37-.12-.07s-.02-.01-.03-.02c-.01,0-.03-.02-.09-.05h0c-.34-.2-.69-.39-1.04-.57l-.37-.19,.48,10.29h.23Zm-15.63,6.17c-.16,.14-.31,.28-.47,.43l-.1,.1L2.6,26.47l.13-.25c.18-.35,.37-.69,.57-1.04l.1-.18,17.85,6.57-.3,.27Z" })
6923
- ] }),
6924
- fluent: (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 26 24", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsx("path", { d: "M25.973 3.5405V0H0.0274556V3.5405H11.5738C9.39481 4.86942 7.44796 6.53554 5.79813 8.4595H0V12H3.2797C1.21554 15.5331 0.0274556 19.6314 0.0274556 24H3.59169C3.59169 19.5198 5.05433 15.3719 7.52284 11.9975H14.257C10.7975 14.8364 8.58862 19.1306 8.58862 23.9256H12.1529C12.1529 17.3479 17.5392 11.9975 24.1609 11.9975H25.9431V8.45702H10.815C14.4167 5.39504 19.0867 3.53802 24.1884 3.53802H25.9705L25.973 3.5405Z" }) }),
6925
- fluentLogomark: (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 18 16", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsx("path", { d: "M17.6591 2.36033V0H0.362054V2.36033H8.05961C6.60696 3.24628 5.30906 4.35702 4.20917 5.63967H0.34375V8H2.53022C1.15411 10.3554 0.362054 13.0876 0.362054 16H2.73821C2.73821 13.0132 3.7133 10.2479 5.35898 7.99835H9.84839C7.54212 9.89091 6.0695 12.7537 6.0695 15.9504H8.44565C8.44565 11.5653 12.0365 7.99835 16.451 7.99835H17.6391V5.63802H7.55376C9.95488 3.59669 13.0682 2.35868 16.4694 2.35868H17.6574L17.6591 2.36033Z" }) }),
6926
- fluentLogotype: (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 63 16", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0.3125 4.63636V6.75207H2.1878V15.8529H4.85017V6.75207H7.89691V4.63636H4.7653V3.95868C4.7653 3.35207 4.90674 2.89752 5.19128 2.59339C5.47582 2.29091 5.89514 2.13884 6.44925 2.13884C6.71881 2.13884 6.98172 2.17851 7.23797 2.2562C7.49423 2.33388 7.72053 2.44959 7.9202 2.60496L8.64404 0.614876C8.3595 0.403306 8.00839 0.247934 7.58907 0.14876C7.16975 0.0495868 6.72713 0 6.25789 0C4.95 0 3.94663 0.357025 3.24276 1.06942C2.5389 1.78182 2.1878 2.73058 2.1878 3.9157V4.63636H0.3125ZM10.1198 0.148438V15.8526H12.7838V0.148438H10.1198ZM20.1296 15.9991C19.1628 15.9991 18.3109 15.8189 17.5721 15.4586C16.8333 15.0982 16.2575 14.5478 15.8465 13.8073C15.4339 13.0668 15.2292 12.1313 15.2292 11.0024V4.54948H17.8932V10.6454C17.8932 11.6619 18.1245 12.4206 18.5854 12.9197C19.0463 13.4206 19.7036 13.6718 20.5556 13.6718C21.1812 13.6718 21.7237 13.5445 22.1863 13.2916C22.6472 13.0371 23.0099 12.6569 23.2729 12.1478C23.5358 11.6404 23.6672 11.0123 23.6672 10.2635V4.54948H26.3312V15.852H23.7953V14.417C23.4615 14.8264 23.049 15.1596 22.559 15.4173C21.8202 15.8057 21.0098 15.9991 20.1296 15.9991ZM31.0708 15.2467C32.0143 15.7475 33.1192 15.9987 34.3838 15.9987H34.3871C35.3805 15.9987 36.2657 15.8401 37.0395 15.5227C37.8132 15.2053 38.4572 14.7491 38.968 14.1574L37.5403 12.5277C37.1427 12.9508 36.6884 13.2615 36.1775 13.4582C35.6667 13.6549 35.091 13.7541 34.452 13.7541C33.7132 13.7541 33.0593 13.6136 32.4918 13.331C31.9228 13.0483 31.4835 12.6467 31.1706 12.1244C30.9733 11.796 30.8383 11.4361 30.7654 11.045H39.6919C39.7052 10.9177 39.7168 10.7839 39.7235 10.6434C39.7301 10.5029 39.7335 10.3756 39.7335 10.2632C39.7335 9.07642 39.4855 8.04667 38.988 7.17229C38.4905 6.29791 37.8099 5.62022 36.943 5.14088C36.076 4.66154 35.1176 4.42188 33.9811 4.42188C32.8446 4.42188 31.8312 4.66816 30.9443 5.16237C30.0558 5.65659 29.3602 6.33758 28.8561 7.20535C28.3502 8.07311 28.0989 9.08634 28.0989 10.2004C28.0989 11.3144 28.3569 12.3095 28.876 13.1839C29.3952 14.0582 30.1257 14.7458 31.0708 15.2467ZM30.743 9.28799C30.8032 8.86257 30.9283 8.47873 31.1174 8.13592C31.3936 7.6351 31.7763 7.24336 32.2672 6.96072C32.7581 6.67807 33.3438 6.53758 33.9828 6.53758C34.6217 6.53758 35.1858 6.67807 35.6767 6.96072C36.1676 7.24336 36.5536 7.63014 36.8381 8.12435C37.0382 8.47383 37.1642 8.86131 37.2161 9.28799H30.743ZM48.0256 4.42188C48.9341 4.42188 49.7478 4.59873 50.465 4.9508C51.1821 5.30287 51.7462 5.84336 52.1589 6.56898C52.5716 7.29626 52.7762 8.23014 52.7762 9.37394V15.85H50.1122V9.71278C50.1122 8.71113 49.8743 7.96402 49.3984 7.46981C48.9225 6.97559 48.2585 6.72931 47.4066 6.72931C46.7809 6.72931 46.2268 6.85659 45.7443 7.10948C45.2617 7.36402 44.889 7.74088 44.6261 8.24171C44.3632 8.74254 44.2317 9.37394 44.2317 10.1359V15.85H41.5677V4.54915H44.1036V6.01502C44.4512 5.60349 44.8811 5.26694 45.3932 5.00535C46.1536 4.61692 47.0305 4.42353 48.0239 4.42353L48.0256 4.42188ZM53.875 4.63555V6.75125H55.7486V12.1893C55.7486 13.4455 56.0914 14.3926 56.772 15.0355C57.4526 15.6785 58.4193 15.9992 59.669 15.9992H59.6706C60.1532 15.9992 60.6224 15.9364 61.0767 15.8091C61.531 15.6818 61.9137 15.4917 62.2265 15.2372L61.481 13.3529C61.0833 13.6636 60.5858 13.819 59.9901 13.819C59.4926 13.819 59.1065 13.6703 58.8287 13.3744C58.5508 13.0785 58.4127 12.6636 58.4127 12.1265V6.75125H61.4594V4.63555H58.4127V2.05208H55.7486V4.63555H53.875Z" }) }),
6904
+ usdc: (props) => /* @__PURE__ */ jsxs(
6905
+ "svg",
6906
+ {
6907
+ viewBox: "250 250 1500 1500",
6908
+ fill: "currentColor",
6909
+ xmlns: "http://www.w3.org/2000/svg",
6910
+ ...props,
6911
+ children: [
6912
+ /* @__PURE__ */ jsx("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" }),
6913
+ /* @__PURE__ */ jsx("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.5zm441.67-1300c-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" })
6914
+ ]
6915
+ }
6916
+ ),
6917
+ usdnr: (props) => /* @__PURE__ */ jsxs(
6918
+ "svg",
6919
+ {
6920
+ viewBox: "0 0 75 75",
6921
+ fill: "currentColor",
6922
+ xmlns: "http://www.w3.org/2000/svg",
6923
+ ...props,
6924
+ children: [
6925
+ /* @__PURE__ */ jsx("path", { d: "M36.8,58.23c-.18-.12-.36-.24-.53-.36l-.34-.24-1.38,17.22,.23,.03c.34,.04,.68,.08,1.02,.1l.25,.02,.89-16.69-.12-.08Zm2.73,1.55c-.14-.07-.29-.14-.43-.21l-.37-.19,.86,15.63,.25-.02c.31-.03,.62-.06,.93-.1l.23-.03-1.2-14.95-.13-.06-.14-.07Zm-5.17-3.37c-.16-.14-.32-.28-.48-.42l-.31-.28-3.94,17.99,.21,.07c.35,.12,.7,.23,1.05,.33l.25,.07,3.33-17.67-.11-.09Zm8.46,4.67c-.15-.05-.29-.09-.44-.14l-.39-.13,2.57,13.32,.25-.07c.27-.08,.54-.16,.81-.25l.21-.07-2.72-12.56-.14-.04-.15-.05Zm3.68,.85c-.15-.02-.29-.05-.44-.07l-.4-.07,3.56,10.49,.25-.13c.22-.12,.44-.24,.66-.36l.18-.1-3.52-9.71-.14-.02-.15-.02Zm-15.82-9.4c-.13-.16-.25-.33-.37-.5l-.23-.31-9,16.93,.14,.13c.31,.28,.63,.55,.95,.81l.23,.19,8.36-17.13-.09-.12Zm19.96,9.67c-.18,0-.68,0-.87,0h-.41s4.02,7.36,4.02,7.36l.22-.18c.17-.14,.34-.28,.5-.43l.14-.13-3.47-6.62h-.15Zm-21.28-11.59c-.11-.17-.21-.35-.31-.52l-.19-.32-11.05,15.3,.11,.14c.26,.34,.53,.68,.81,1.02l.21,.24,10.5-15.73-.08-.13Zm28.05,14.86l.11-.14-2.55-3.59-.15,.03c-.17,.03-.33,.06-.5,.09l-.37,.06,2.9,4.24,.2-.25c.12-.15,.24-.29,.35-.44Zm-29.11-16.75c-.09-.18-.18-.36-.27-.55l-.15-.32-12.54,13.16,.07,.15c.2,.4,.41,.8,.63,1.19l.17,.3,12.16-13.79-.07-.15Zm31.71,12.66l-.82-.89-.15,.06c-.14,.05-.28,.11-.42,.16l-.48,.19,1.23,1.63c.08-.14,.58-1.01,.65-1.15Zm-32.54-14.53c-.07-.19-.15-.37-.22-.56l-.12-.31-13.39,10.73,.04,.15c.12,.44,.26,.89,.41,1.32l.11,.34,13.23-11.51-.06-.16Zm-.64-1.8c-.06-.19-.11-.38-.17-.57l-.09-.3-13.61,8.15v.15c.06,.47,.11,.93,.18,1.39l.06,.37,13.68-9.02-.05-.17Zm-.46-1.72c-.04-.19-.09-.38-.13-.57l-.06-.29-13.22,5.63v.15c-.05,.47-.07,.93-.08,1.4v.39s13.53-6.51,13.53-6.51l-.04-.19Zm-.33-1.67c-.03-.2-.06-.39-.09-.59l-.04-.27-12.3,3.35-.03,.14c-.11,.45-.21,.91-.29,1.36l-.07,.4,12.86-4.17-.03-.2Zm-.21-1.65c-.02-.21-.04-.41-.05-.62l-.02-.26-10.98,1.43-.05,.13c-.17,.42-.34,.85-.49,1.28l-.14,.39,11.73-2.13-.02-.22Zm-.04-3.95l.02-.22-7.59-1.08-.09,.11c-.27,.34-.52,.68-.76,1.03l-.24,.34,8.62,.75v-.25c.02-.22,.03-.45,.05-.67Zm.18-1.68l.03-.21-5.79-1.65-.1,.1c-.29,.29-.57,.59-.84,.89l-.28,.31,6.87,1.53,.03-.27c.03-.24,.05-.47,.09-.71Zm.3-1.7l.04-.19-4.07-1.78-.11,.09c-.3,.24-.6,.5-.89,.75l-.3,.27,5.13,1.89,.05-.28c.04-.25,.09-.5,.15-.75Zm.44-1.73l.05-.18-2.49-1.53-.13,.08c-.31,.2-.61,.41-.91,.63l-.31,.23,3.5,1.86,.07-.3c.07-.27,.14-.53,.22-.79Zm.6-1.79l.06-.16-1.11-.91-.14,.07c-.31,.17-.62,.34-.93,.52l-.32,.19,2.03,1.46,.1-.31c.1-.29,.2-.57,.3-.86Zm.38-.95c.06-.14,.12-.29,.19-.43l.26-.58-.58,.26c-.15,.07-.29,.13-.44,.2l-.32,.15,.76,.71,.13-.32Zm-1.95,10.17c0-.22,0-.43,0-.65v-.24l-9.36-.06-.07,.12s-.01,.02-.02,.03c0,.01-.02,.03-.05,.09h0c-.2,.35-.39,.69-.57,1.04l-.19,.37,10.28-.48v-.24Zm6.16,15.65c.14,.16,.28,.31,.43,.47l.1,.1-5.89,17.81-.25-.13c-.35-.18-.69-.37-1.03-.57l-.17-.1,6.56-17.88,.27,.3Z" }),
6926
+ /* @__PURE__ */ jsx("path", { d: "M58.26,38.26c-.12,.18-.24,.36-.36,.53l-.24,.34,17.19,1.39,.03-.23c.04-.34,.08-.68,.1-1.02l.02-.25-16.67-.89-.08,.12Zm1.54-2.74c-.07,.14-.14,.29-.21,.43l-.19,.37,15.6-.86-.02-.25c-.03-.31-.06-.62-.1-.93l-.03-.23-14.92,1.2-.06,.13-.07,.14Zm-3.36,5.18c-.14,.16-.28,.32-.42,.49l-.28,.31,17.96,3.95,.07-.21c.12-.35,.23-.7,.33-1.06l.07-.25-17.64-3.33-.09,.11Zm4.66-8.48c-.05,.15-.09,.3-.14,.44l-.13,.39,13.3-2.57-.07-.25c-.08-.27-.16-.54-.25-.81l-.07-.21-12.54,2.72-.04,.14-.05,.15Zm.85-3.69c-.02,.15-.05,.29-.07,.44l-.07,.4,10.47-3.56-.13-.25c-.12-.22-.24-.44-.36-.66l-.1-.18-9.7,3.52-.02,.14-.02,.15Zm-9.39,15.85c-.16,.13-.33,.25-.5,.37l-.31,.23,16.91,9.01,.13-.14c.28-.31,.55-.63,.81-.95l.19-.24-17.1-8.37-.12,.09Zm9.65-19.99c0,.18,0,.68,0,.87v.41s7.35-4.03,7.35-4.03l-.18-.22c-.14-.17-.28-.34-.43-.5l-.12-.14-6.61,3.47v.15Zm-11.57,21.32c-.17,.11-.35,.21-.52,.31l-.32,.19,15.28,11.07,.14-.11c.34-.26,.68-.53,1.02-.82l.24-.21-15.7-10.52-.13,.08Zm14.83-28.1l-.14-.11-3.59,2.55,.03,.15c.03,.17,.06,.34,.09,.5l.06,.37,4.23-2.91-.25-.2c-.15-.12-.29-.24-.44-.35Zm-16.73,29.16c-.18,.09-.36,.18-.54,.27l-.32,.15,13.14,12.56,.15-.07c.4-.2,.8-.41,1.19-.63l.3-.17-13.77-12.18-.15,.07Zm12.64-31.76l-.88,.82,.06,.15c.05,.14,.11,.28,.16,.42l.19,.49,1.62-1.24c-.14-.08-1.01-.58-1.15-.65Zm-14.5,32.6c-.19,.07-.37,.15-.56,.22l-.31,.12,10.71,13.42,.15-.04c.44-.12,.88-.26,1.32-.41l.34-.12-11.49-13.25-.16,.06Zm-1.79,.64c-.19,.06-.38,.11-.57,.17l-.3,.09,8.13,13.63h.15c.46-.06,.93-.11,1.39-.18l.37-.06-9.01-13.7-.17,.05Zm-1.72,.47c-.19,.04-.38,.09-.57,.13l-.29,.06,5.62,13.24h.15c.47,.05,.93,.07,1.4,.08h.39s-6.5-13.55-6.5-13.55l-.19,.04Zm-1.67,.33c-.2,.03-.39,.06-.59,.09l-.27,.04,3.34,12.32,.14,.03c.45,.11,.9,.21,1.36,.29l.4,.07-4.17-12.88-.2,.03Zm-1.64,.21c-.21,.02-.41,.04-.61,.05l-.26,.02,1.43,10.99,.13,.05c.42,.17,.85,.34,1.28,.49l.39,.14-2.13-11.75-.22,.02Zm-3.95,.04l-.22-.02-1.08,7.6,.11,.09c.34,.27,.68,.52,1.03,.77l.34,.24,.75-8.63h-.25c-.22-.02-.45-.03-.67-.05Zm-1.68-.18l-.21-.03-1.64,5.8,.1,.1c.29,.29,.59,.57,.89,.85l.31,.28,1.53-6.88-.27-.03c-.24-.03-.47-.05-.71-.09Zm-1.69-.3l-.19-.04-1.78,4.08,.09,.11c.24,.3,.49,.6,.75,.89l.27,.3,1.89-5.14-.28-.05c-.25-.04-.5-.09-.74-.15Zm-1.73-.44l-.18-.05-1.53,2.49,.08,.13c.2,.31,.41,.61,.63,.91l.23,.31,1.86-3.51-.3-.07c-.27-.07-.53-.14-.79-.22Zm-1.79-.6l-.16-.06-.91,1.11,.07,.14c.17,.31,.34,.62,.52,.93l.19,.32,1.45-2.03-.31-.1c-.29-.1-.57-.2-.85-.31Zm-.95-.38c-.14-.06-.29-.12-.43-.19l-.58-.26,.26,.58c.07,.15,.13,.29,.2,.44l.15,.32,.71-.76-.32-.13Zm10.15,1.95c-.22,0-.43,0-.65,0h-.24l-.06,9.37,.12,.07s.02,.01,.03,.02c.01,0,.03,.02,.09,.05h0c.34,.2,.69,.39,1.04,.57l.37,.19-.48-10.29h-.23Zm15.63-6.17c.16-.14,.31-.28,.47-.43l.1-.1,17.78,5.9-.13,.25c-.18,.35-.37,.69-.57,1.04l-.1,.18-17.85-6.57,.3-.27Z" }),
6927
+ /* @__PURE__ */ jsx("path", { d: "M38.2,16.77c.18,.12,.36,.24,.53,.36l.34,.24L40.46,.15l-.23-.03c-.34-.04-.68-.08-1.02-.1l-.25-.02-.89,16.69,.12,.08Zm-2.73-1.55c.14,.07,.29,.14,.43,.21l.37,.19L35.41,0l-.25,.02c-.31,.03-.62,.06-.93,.1l-.23,.03,1.2,14.95,.13,.06,.14,.07Zm5.17,3.37c.16,.14,.32,.28,.48,.42l.31,.28L45.37,1.3l-.21-.07c-.35-.12-.7-.23-1.05-.33l-.25-.07-3.33,17.67,.11,.09Zm-8.46-4.67c.15,.05,.29,.09,.44,.14l.39,.13L30.44,.88l-.25,.07c-.27,.08-.54,.16-.81,.25l-.2,.07,2.72,12.56,.14,.04,.15,.05Zm-3.68-.85c.15,.02,.29,.05,.44,.07l.4,.07-3.56-10.49-.25,.13c-.22,.12-.44,.24-.66,.36l-.18,.1,3.52,9.71,.14,.02,.15,.02Zm15.82,9.4c.13,.16,.25,.33,.37,.5l.23,.31L53.91,6.35l-.14-.13c-.31-.28-.63-.55-.95-.81l-.23-.19-8.36,17.13,.09,.12ZM24.35,12.81c.18,0,.68,0,.87,0h.41s-4.02-7.36-4.02-7.36l-.22,.18c-.17,.14-.34,.28-.5,.43l-.14,.13,3.47,6.62h.15Zm21.28,11.59c.11,.17,.21,.35,.31,.52l.19,.32,11.05-15.3-.11-.14c-.26-.34-.53-.68-.81-1.02l-.21-.24-10.5,15.73,.08,.13ZM17.58,9.55l-.11,.14,2.55,3.59,.15-.03c.17-.03,.33-.06,.5-.09l.37-.06-2.9-4.24-.2,.25c-.12,.15-.24,.29-.35,.44Zm29.11,16.75c.09,.18,.18,.36,.27,.55l.15,.32,12.54-13.16-.07-.15c-.2-.4-.41-.8-.63-1.19l-.17-.3-12.16,13.79,.07,.15ZM14.99,13.65l.82,.89,.15-.06c.14-.05,.28-.11,.42-.16l.48-.19-1.23-1.63c-.08,.14-.58,1.01-.65,1.15Zm32.54,14.53c.07,.19,.15,.37,.22,.56l.12,.31,13.39-10.73-.04-.15c-.12-.44-.26-.89-.41-1.32l-.11-.34-13.23,11.51,.06,.16Zm.64,1.8c.06,.19,.11,.38,.17,.57l.09,.3,13.61-8.15v-.15c-.06-.47-.11-.93-.18-1.39l-.06-.37-13.68,9.02,.05,.17Zm.46,1.72c.04,.19,.09,.38,.13,.57l.06,.29,13.22-5.63v-.15c.05-.47,.07-.93,.08-1.4v-.39s-13.53,6.51-13.53,6.51l.04,.19Zm.33,1.67c.03,.2,.06,.39,.09,.59l.04,.27,12.3-3.35,.03-.14c.11-.45,.21-.91,.29-1.36l.07-.4-12.86,4.17,.03,.2Zm.21,1.65c.02,.21,.04,.41,.05,.62l.02,.26,10.98-1.43,.05-.13c.17-.42,.34-.85,.49-1.28l.14-.39-11.73,2.13,.02,.22Zm.04,3.95l-.02,.22,7.59,1.08,.09-.11c.27-.34,.52-.68,.76-1.03l.24-.34-8.62-.75v.25c-.02,.22-.03,.45-.05,.67Zm-.18,1.68l-.03,.21,5.79,1.65,.1-.1c.29-.29,.57-.59,.84-.89l.28-.31-6.87-1.53-.03,.27c-.03,.24-.05,.47-.09,.71Zm-.3,1.7l-.04,.19,4.07,1.78,.11-.09c.3-.24,.6-.5,.89-.75l.3-.27-5.13-1.89-.05,.28c-.04,.25-.09,.5-.15,.75Zm-.44,1.73l-.05,.18,2.49,1.53,.13-.08c.31-.2,.61-.41,.91-.63l.31-.23-3.5-1.86-.07,.3c-.07,.27-.14,.53-.22,.79Zm-.6,1.79l-.06,.16,1.11,.91,.14-.07c.31-.17,.62-.34,.93-.52l.32-.19-2.03-1.46-.1,.31c-.1,.29-.2,.57-.3,.86Zm-.38,.95c-.06,.14-.12,.29-.19,.43l-.26,.58,.58-.26c.15-.07,.29-.13,.44-.2l.32-.15-.76-.71-.13,.32Zm1.95-10.17c0,.22,0,.43,0,.65v.24l9.36,.06,.07-.12s.01-.02,.02-.03c0-.01,.02-.03,.05-.09h0c.2-.35,.39-.69,.57-1.04l.19-.37-10.28,.48v.24Zm-6.16-15.65c-.14-.16-.28-.31-.43-.47l-.1-.1L48.46,2.61l.25,.13c.35,.18,.69,.37,1.03,.57l.17,.1-6.56,17.88-.27-.3Z" }),
6928
+ /* @__PURE__ */ jsx("path", { d: "M16.74,36.74c.12-.18,.24-.36,.36-.53l.24-.34L.15,34.48l-.03,.23c-.04,.34-.08,.68-.1,1.02l-.02,.25,16.67,.89,.08-.12Zm-1.54,2.74c.07-.14,.14-.29,.21-.43l.19-.37L0,39.54l.02,.25c.03,.31,.06,.62,.1,.93l.03,.23,14.92-1.2,.06-.13,.07-.14Zm3.36-5.18c.14-.16,.28-.32,.42-.49l.28-.31L1.3,29.56l-.07,.21c-.12,.35-.23,.7-.33,1.06l-.07,.25,17.64,3.33,.09-.11Zm-4.66,8.48c.05-.15,.09-.3,.14-.44l.13-.39L.88,44.52l.07,.25c.08,.27,.16,.54,.25,.81l.07,.21,12.54-2.72,.04-.14,.05-.15Zm-.85,3.69c.02-.15,.05-.29,.07-.44l.07-.4-10.47,3.56,.13,.25c.12,.22,.24,.44,.36,.66l.1,.18,9.7-3.52,.02-.14,.02-.15Zm9.39-15.85c.16-.13,.33-.25,.5-.37l.31-.23L6.34,21.01l-.13,.14c-.28,.31-.55,.63-.81,.95l-.19,.24,17.1,8.37,.12-.09Zm-9.65,19.99c0-.18,0-.68,0-.87v-.41s-7.35,4.03-7.35,4.03l.18,.22c.14,.17,.28,.34,.43,.5l.12,.14,6.61-3.47v-.15Zm11.57-21.32c.17-.11,.35-.21,.52-.31l.32-.19-15.28-11.07-.14,.11c-.34,.26-.68,.53-1.02,.82l-.24,.21,15.7,10.52,.13-.08Zm-14.83,28.1l.14,.11,3.59-2.55-.03-.15c-.03-.17-.06-.34-.09-.5l-.06-.37-4.23,2.91,.25,.2c.15,.12,.29,.24,.44,.35ZM26.26,28.24c.18-.09,.36-.18,.54-.27l.32-.15L13.98,15.26l-.15,.07c-.4,.2-.8,.41-1.19,.63l-.3,.17,13.77,12.18,.15-.07Zm-12.64,31.76l.88-.82-.06-.15c-.05-.14-.11-.28-.16-.42l-.19-.49-1.62,1.24c.14,.08,1.01,.58,1.15,.65ZM28.13,27.4c.19-.07,.37-.15,.56-.22l.31-.12-10.71-13.42-.15,.04c-.44,.12-.88,.26-1.32,.41l-.34,.12,11.49,13.25,.16-.06Zm1.79-.64c.19-.06,.38-.11,.57-.17l.3-.09-8.13-13.63h-.15c-.46,.06-.93,.11-1.39,.18l-.37,.06,9.01,13.7,.17-.05Zm1.72-.47c.19-.04,.38-.09,.57-.13l.29-.06-5.62-13.24h-.15c-.47-.05-.93-.07-1.4-.08h-.39s6.5,13.55,6.5,13.55l.19-.04Zm1.67-.33c.2-.03,.39-.06,.59-.09l.27-.04-3.34-12.32-.14-.03c-.45-.11-.9-.21-1.36-.29l-.4-.07,4.17,12.88,.2-.03Zm1.64-.21c.21-.02,.41-.04,.61-.05l.26-.02-1.43-10.99-.13-.05c-.42-.17-.85-.34-1.28-.49l-.39-.14,2.13,11.75,.22-.02Zm3.95-.04l.22,.02,1.08-7.6-.11-.09c-.34-.27-.68-.52-1.03-.77l-.34-.24-.75,8.63h.25c.22,.02,.45,.03,.67,.05Zm1.68,.18l.21,.03,1.64-5.8-.1-.1c-.29-.29-.59-.57-.89-.84l-.31-.28-1.53,6.88,.27,.03c.24,.03,.47,.05,.71,.09Zm1.69,.3l.19,.04,1.78-4.08-.09-.11c-.24-.3-.49-.6-.75-.89l-.27-.3-1.89,5.14,.28,.05c.25,.04,.5,.09,.74,.15Zm1.73,.44l.18,.05,1.53-2.49-.08-.13c-.2-.31-.41-.61-.63-.91l-.23-.31-1.86,3.51,.3,.07c.27,.07,.53,.14,.79,.22Zm1.79,.6l.16,.06,.91-1.11-.07-.14c-.17-.31-.34-.62-.52-.93l-.19-.32-1.45,2.03,.31,.1c.29,.1,.57,.2,.85,.31Zm.95,.38c.14,.06,.29,.12,.43,.19l.58,.26-.26-.58c-.07-.15-.13-.29-.2-.44l-.15-.32-.71,.76,.32,.13Zm-10.15-1.95c.22,0,.43,0,.65,0h.24l.06-9.37-.12-.07s-.02-.01-.03-.02c-.01,0-.03-.02-.09-.05h0c-.34-.2-.69-.39-1.04-.57l-.37-.19,.48,10.29h.23Zm-15.63,6.17c-.16,.14-.31,.28-.47,.43l-.1,.1L2.6,26.47l.13-.25c.18-.35,.37-.69,.57-1.04l.1-.18,17.85,6.57-.3,.27Z" })
6929
+ ]
6930
+ }
6931
+ ),
6932
+ fluent: (props) => /* @__PURE__ */ jsx(
6933
+ "svg",
6934
+ {
6935
+ viewBox: "0 0 26 24",
6936
+ fill: "currentColor",
6937
+ xmlns: "http://www.w3.org/2000/svg",
6938
+ ...props,
6939
+ children: /* @__PURE__ */ jsx("path", { d: "M25.973 3.5405V0H0.0274556V3.5405H11.5738C9.39481 4.86942 7.44796 6.53554 5.79813 8.4595H0V12H3.2797C1.21554 15.5331 0.0274556 19.6314 0.0274556 24H3.59169C3.59169 19.5198 5.05433 15.3719 7.52284 11.9975H14.257C10.7975 14.8364 8.58862 19.1306 8.58862 23.9256H12.1529C12.1529 17.3479 17.5392 11.9975 24.1609 11.9975H25.9431V8.45702H10.815C14.4167 5.39504 19.0867 3.53802 24.1884 3.53802H25.9705L25.973 3.5405Z" })
6940
+ }
6941
+ ),
6927
6942
  metaMask: (props) => /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 142 136.878", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
6928
- /* @__PURE__ */ jsx("path", { fill: "#FF5C16", d: "M132.682,132.192l-30.583-9.106l-23.063,13.787l-16.092-0.007l-23.077-13.78l-30.569,9.106L0,100.801l9.299-34.839L0,36.507L9.299,0l47.766,28.538h27.85L132.682,0l9.299,36.507l-9.299,29.455l9.299,34.839L132.682,132.192L132.682,132.192z" }),
6929
- /* @__PURE__ */ jsx("path", { fill: "#FF5C16", d: "M9.305,0l47.767,28.558l-1.899,19.599L9.305,0z M39.875,100.814l21.017,16.01l-21.017,6.261C39.875,123.085,39.875,100.814,39.875,100.814z M59.212,74.345l-4.039-26.174L29.317,65.97l-0.014-0.007v0.013l0.08,18.321l10.485-9.951L59.212,74.345L59.212,74.345z M132.682,0L84.915,28.558l1.893,19.599L132.682,0z M102.113,100.814l-21.018,16.01l21.018,6.261V100.814z M112.678,65.975h0.007H112.678v-0.013l-0.006,0.007L86.815,48.171l-4.039,26.174h19.336l10.492,9.95C112.604,84.295,112.678,65.975,112.678,65.975z" }),
6930
- /* @__PURE__ */ jsx("path", { fill: "#E34807", d: "M39.868,123.085l-30.569,9.106L0,100.814h39.868C39.868,100.814,39.868,123.085,39.868,123.085z M59.205,74.338l5.839,37.84l-8.093-21.04L29.37,84.295l10.491-9.956h19.344L59.205,74.338z M102.112,123.085l30.57,9.106l9.299-31.378h-39.869C102.112,100.814,102.112,123.085,102.112,123.085z M82.776,74.338l-5.839,37.84l8.092-21.04l27.583-6.843l-10.498-9.956H82.776V74.338z" }),
6931
- /* @__PURE__ */ jsx("path", { fill: "#FF8D5D", d: "M0,100.801l9.299-34.839h19.997l0.073,18.327l27.584,6.843l8.092,21.039l-4.16,4.633l-21.017-16.01H0V100.801z M141.981,100.801l-9.299-34.839h-19.998l-0.073,18.327l-27.582,6.843l-8.093,21.039l4.159,4.633l21.018-16.01h39.868V100.801z M84.915,28.538h-27.85l-1.891,19.599l9.872,64.013h11.891l9.878-64.013L84.915,28.538z" }),
6932
- /* @__PURE__ */ jsx("path", { fill: "#661800", d: "M9.299,0L0,36.507l9.299,29.455h19.997l25.87-17.804L9.299,0z M53.426,81.938h-9.059l-4.932,4.835l17.524,4.344l-3.533-9.186V81.938z M132.682,0l9.299,36.507l-9.299,29.455h-19.998L86.815,48.158L132.682,0z M88.568,81.938h9.072l4.932,4.841l-17.544,4.353l3.54-9.201V81.938z M79.029,124.385l2.067-7.567l-4.16-4.633h-11.9l-4.159,4.633l2.066,7.567" }),
6933
- /* @__PURE__ */ jsx("path", { fill: "#C0C4CD", d: "M79.029,124.384v12.495H62.945v-12.495L79.029,124.384L79.029,124.384z" }),
6934
- /* @__PURE__ */ jsx("path", { fill: "#E7EBF6", d: "M39.875,123.072l23.083,13.8v-12.495l-2.067-7.566C60.891,116.811,39.875,123.072,39.875,123.072z M102.113,123.072l-23.084,13.8v-12.495l2.067-7.566C81.096,116.811,102.113,123.072,102.113,123.072z" })
6943
+ /* @__PURE__ */ jsx(
6944
+ "path",
6945
+ {
6946
+ fill: "#FF5C16",
6947
+ d: "M132.682,132.192l-30.583-9.106l-23.063,13.787l-16.092-0.007l-23.077-13.78l-30.569,9.106L0,100.801l9.299-34.839L0,36.507L9.299,0l47.766,28.538h27.85L132.682,0l9.299,36.507l-9.299,29.455l9.299,34.839L132.682,132.192L132.682,132.192z"
6948
+ }
6949
+ ),
6950
+ /* @__PURE__ */ jsx(
6951
+ "path",
6952
+ {
6953
+ fill: "#FF5C16",
6954
+ d: "M9.305,0l47.767,28.558l-1.899,19.599L9.305,0z M39.875,100.814l21.017,16.01l-21.017,6.261C39.875,123.085,39.875,100.814,39.875,100.814z M59.212,74.345l-4.039-26.174L29.317,65.97l-0.014-0.007v0.013l0.08,18.321l10.485-9.951L59.212,74.345L59.212,74.345z M132.682,0L84.915,28.558l1.893,19.599L132.682,0z M102.113,100.814l-21.018,16.01l21.018,6.261V100.814z M112.678,65.975h0.007H112.678v-0.013l-0.006,0.007L86.815,48.171l-4.039,26.174h19.336l10.492,9.95C112.604,84.295,112.678,65.975,112.678,65.975z"
6955
+ }
6956
+ ),
6957
+ /* @__PURE__ */ jsx(
6958
+ "path",
6959
+ {
6960
+ fill: "#E34807",
6961
+ d: "M39.868,123.085l-30.569,9.106L0,100.814h39.868C39.868,100.814,39.868,123.085,39.868,123.085z M59.205,74.338l5.839,37.84l-8.093-21.04L29.37,84.295l10.491-9.956h19.344L59.205,74.338z M102.112,123.085l30.57,9.106l9.299-31.378h-39.869C102.112,100.814,102.112,123.085,102.112,123.085z M82.776,74.338l-5.839,37.84l8.092-21.04l27.583-6.843l-10.498-9.956H82.776V74.338z"
6962
+ }
6963
+ ),
6964
+ /* @__PURE__ */ jsx(
6965
+ "path",
6966
+ {
6967
+ fill: "#FF8D5D",
6968
+ d: "M0,100.801l9.299-34.839h19.997l0.073,18.327l27.584,6.843l8.092,21.039l-4.16,4.633l-21.017-16.01H0V100.801z M141.981,100.801l-9.299-34.839h-19.998l-0.073,18.327l-27.582,6.843l-8.093,21.039l4.159,4.633l21.018-16.01h39.868V100.801z M84.915,28.538h-27.85l-1.891,19.599l9.872,64.013h11.891l9.878-64.013L84.915,28.538z"
6969
+ }
6970
+ ),
6971
+ /* @__PURE__ */ jsx(
6972
+ "path",
6973
+ {
6974
+ fill: "#661800",
6975
+ d: "M9.299,0L0,36.507l9.299,29.455h19.997l25.87-17.804L9.299,0z M53.426,81.938h-9.059l-4.932,4.835l17.524,4.344l-3.533-9.186V81.938z M132.682,0l9.299,36.507l-9.299,29.455h-19.998L86.815,48.158L132.682,0z M88.568,81.938h9.072l4.932,4.841l-17.544,4.353l3.54-9.201V81.938z M79.029,124.385l2.067-7.567l-4.16-4.633h-11.9l-4.159,4.633l2.066,7.567"
6976
+ }
6977
+ ),
6978
+ /* @__PURE__ */ jsx(
6979
+ "path",
6980
+ {
6981
+ fill: "#C0C4CD",
6982
+ d: "M79.029,124.384v12.495H62.945v-12.495L79.029,124.384L79.029,124.384z"
6983
+ }
6984
+ ),
6985
+ /* @__PURE__ */ jsx(
6986
+ "path",
6987
+ {
6988
+ fill: "#E7EBF6",
6989
+ d: "M39.875,123.072l23.083,13.8v-12.495l-2.067-7.566C60.891,116.811,39.875,123.072,39.875,123.072z M102.113,123.072l-23.084,13.8v-12.495l2.067-7.566C81.096,116.811,102.113,123.072,102.113,123.072z"
6990
+ }
6991
+ )
6935
6992
  ] }),
6936
6993
  coinbase: (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsx("path", { d: "M17.1797 10.0983C16.4594 7.8401 14.5619 6.32185 12.1704 6.32185C8.86954 6.32185 6.59258 8.93088 6.59115 12.4744C6.59115 15.9782 8.90534 18.5872 12.2076 18.5872C14.5992 18.5872 16.4966 17.0292 17.1797 14.771H21.9628C21.0892 19.6382 17.1425 22.9091 12.2091 22.9091C6.36489 22.9091 2 18.4708 2 12.4744C2 6.4781 6.47802 2 12.2091 2C17.2556 2 21.1265 5.27087 22 10.0983H17.1797Z" }) }),
6937
6994
  walletConnect: (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsx("path", { d: "M4.91462 7.9107C8.82902 4.02977 15.1737 4.02977 19.0881 7.9107L19.5585 8.37904C19.7531 8.5735 19.7531 8.88846 19.5585 9.08292L17.9473 10.6797C17.85 10.7755 17.6905 10.7755 17.5932 10.6797L16.9444 10.036C14.214 7.33007 9.78599 7.33007 7.05564 10.036L6.36089 10.7235C6.26357 10.8193 6.10408 10.8193 6.00676 10.7235L4.39558 9.12674C4.20095 8.93228 4.20095 8.61732 4.39558 8.42286L4.91192 7.9107H4.91462ZM22.4213 11.2137L23.854 12.6352C24.0487 12.8297 24.0487 13.1446 23.854 13.3391L17.3877 19.7507C17.1931 19.9452 16.8741 19.9452 16.6794 19.7507L12.0892 15.2015C12.0406 15.1522 11.9622 15.1522 11.9108 15.2015L7.32057 19.7507C7.12593 19.9452 6.80694 19.9452 6.6123 19.7507L0.145979 13.3391C-0.0486596 13.1446 -0.0486596 12.8297 0.145979 12.6352L1.57873 11.2137C1.77337 11.0193 2.09236 11.0193 2.287 11.2137L6.87723 15.763C6.92588 15.8123 7.00428 15.8123 7.05564 15.763L11.6459 11.2137C11.8405 11.0193 12.1595 11.0193 12.3541 11.2137L16.9444 15.7657C16.993 15.815 17.0714 15.815 17.1228 15.7657L21.713 11.2165C21.9076 11.022 22.2266 11.022 22.4213 11.2165V11.2137Z" }) }),
6938
6995
  okx: (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsx("path", { d: "M3 3h6v6H3zm12 6H9v6H3v6h6v-6h6v6h6v-6h-6zm0 0V3h6v6z" }) }),
6939
6996
  keplr: (props) => /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
6940
6997
  /* @__PURE__ */ jsx("path", { d: "M12.48 7.922c.13 1.336.196 2.004.546 2.494.15.21.336.393.547.54.495.343 1.164.4 2.502.512l.566.048v.968l-.566.048c-1.338.112-2.007.169-2.501.512-.212.147-.397.33-.548.54-.35.49-.415 1.158-.546 2.494h-.96c-.13-1.336-.196-2.004-.546-2.494a2.3 2.3 0 0 0-.547-.54c-.495-.343-1.164-.4-2.502-.512l-.566-.048v-.968l.566-.048c1.338-.112 2.007-.169 2.502-.512a2.3 2.3 0 0 0 .547-.54c.35-.49.415-1.158.546-2.494z" }),
6941
- /* @__PURE__ */ jsx("path", { fillRule: "evenodd", d: "M12 3c7.411 0 9 1.588 9 9 0 7.411-1.589 9-9 9s-9-1.589-9-9 1.588-9 9-9m5.882 3.11C15.702 3.93 11.3 4.8 8.05 8.05s-4.12 7.652-1.94 9.832 6.582 1.312 9.833-1.939c3.25-3.25 4.119-7.653 1.94-9.833", clipRule: "evenodd" })
6998
+ /* @__PURE__ */ jsx(
6999
+ "path",
7000
+ {
7001
+ fillRule: "evenodd",
7002
+ d: "M12 3c7.411 0 9 1.588 9 9 0 7.411-1.589 9-9 9s-9-1.589-9-9 1.588-9 9-9m5.882 3.11C15.702 3.93 11.3 4.8 8.05 8.05s-4.12 7.652-1.94 9.832 6.582 1.312 9.833-1.939c3.25-3.25 4.119-7.653 1.94-9.833",
7003
+ clipRule: "evenodd"
7004
+ }
7005
+ )
6942
7006
  ] }),
6943
7007
  rabby: (props) => /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
6944
- /* @__PURE__ */ jsx("path", { fill: "url(#rabby__a)", d: "M20.908 13.17c.707-1.644-2.788-6.235-6.127-8.148-2.105-1.482-4.298-1.279-4.742-.628-.975 1.428 3.228 2.638 6.038 4.05a3.25 3.25 0 0 0-1.508 1.39c-1.048-1.19-3.348-2.216-6.046-1.39-1.819.556-3.33 1.868-3.914 3.85a1.1 1.1 0 0 0-.464-.103c-.632 0-1.145.533-1.145 1.191s.513 1.191 1.145 1.191c.117 0 .483-.081.483-.081l5.855.044c-2.341 3.865-4.192 4.43-4.192 5.1s1.77.488 2.436.238c3.182-1.195 6.6-4.919 7.187-5.99 2.463.32 4.533.357 4.994-.715" }),
6945
- /* @__PURE__ */ jsx("path", { fill: "url(#rabby__b)", fillRule: "evenodd", d: "M16.077 8.444c.13-.053.11-.253.074-.41-.082-.362-1.5-1.82-2.833-2.473-1.815-.89-3.152-.843-3.35-.433.37.788 2.085 1.529 3.875 2.302.764.33 1.541.666 2.234 1.014", clipRule: "evenodd" }),
6946
- /* @__PURE__ */ jsx("path", { fill: "url(#rabby__c)", fillRule: "evenodd", d: "M13.774 16.38c-.368-.145-.782-.28-1.254-.4.503-.937.609-2.322.134-3.199-.666-1.229-1.503-1.883-3.446-1.883-1.07 0-3.947.374-3.998 2.874q-.009.393.018.724l5.255.04a18.7 18.7 0 0 1-1.953 2.696c.698.186 1.273.342 1.802.486.501.136.96.26 1.44.388a22 22 0 0 0 2.002-1.725", clipRule: "evenodd" }),
6947
- /* @__PURE__ */ jsx("path", { fill: "url(#rabby__d)", d: "M4.539 14.24c.215 1.898 1.252 2.643 3.371 2.863 2.12.22 3.335.072 4.954.225 1.352.128 2.559.845 3.006.598.403-.223.178-1.029-.361-1.545-.7-.67-1.667-1.136-3.369-1.301.34-.967.244-2.322-.282-3.06-.762-1.065-2.168-1.547-3.948-1.337-1.86.22-3.64 1.173-3.371 3.556" }),
7008
+ /* @__PURE__ */ jsx(
7009
+ "path",
7010
+ {
7011
+ fill: "url(#rabby__a)",
7012
+ d: "M20.908 13.17c.707-1.644-2.788-6.235-6.127-8.148-2.105-1.482-4.298-1.279-4.742-.628-.975 1.428 3.228 2.638 6.038 4.05a3.25 3.25 0 0 0-1.508 1.39c-1.048-1.19-3.348-2.216-6.046-1.39-1.819.556-3.33 1.868-3.914 3.85a1.1 1.1 0 0 0-.464-.103c-.632 0-1.145.533-1.145 1.191s.513 1.191 1.145 1.191c.117 0 .483-.081.483-.081l5.855.044c-2.341 3.865-4.192 4.43-4.192 5.1s1.77.488 2.436.238c3.182-1.195 6.6-4.919 7.187-5.99 2.463.32 4.533.357 4.994-.715"
7013
+ }
7014
+ ),
7015
+ /* @__PURE__ */ jsx(
7016
+ "path",
7017
+ {
7018
+ fill: "url(#rabby__b)",
7019
+ fillRule: "evenodd",
7020
+ d: "M16.077 8.444c.13-.053.11-.253.074-.41-.082-.362-1.5-1.82-2.833-2.473-1.815-.89-3.152-.843-3.35-.433.37.788 2.085 1.529 3.875 2.302.764.33 1.541.666 2.234 1.014",
7021
+ clipRule: "evenodd"
7022
+ }
7023
+ ),
7024
+ /* @__PURE__ */ jsx(
7025
+ "path",
7026
+ {
7027
+ fill: "url(#rabby__c)",
7028
+ fillRule: "evenodd",
7029
+ d: "M13.774 16.38c-.368-.145-.782-.28-1.254-.4.503-.937.609-2.322.134-3.199-.666-1.229-1.503-1.883-3.446-1.883-1.07 0-3.947.374-3.998 2.874q-.009.393.018.724l5.255.04a18.7 18.7 0 0 1-1.953 2.696c.698.186 1.273.342 1.802.486.501.136.96.26 1.44.388a22 22 0 0 0 2.002-1.725",
7030
+ clipRule: "evenodd"
7031
+ }
7032
+ ),
7033
+ /* @__PURE__ */ jsx(
7034
+ "path",
7035
+ {
7036
+ fill: "url(#rabby__d)",
7037
+ d: "M4.539 14.24c.215 1.898 1.252 2.643 3.371 2.863 2.12.22 3.335.072 4.954.225 1.352.128 2.559.845 3.006.598.403-.223.178-1.029-.361-1.545-.7-.67-1.667-1.136-3.369-1.301.34-.967.244-2.322-.282-3.06-.762-1.065-2.168-1.547-3.948-1.337-1.86.22-3.64 1.173-3.371 3.556"
7038
+ }
7039
+ ),
6948
7040
  /* @__PURE__ */ jsxs("defs", { children: [
6949
- /* @__PURE__ */ jsxs("linearGradient", { id: "rabby__a", x1: "8.311", x2: "20.827", y1: "11.714", y2: "15.125", gradientUnits: "userSpaceOnUse", children: [
6950
- /* @__PURE__ */ jsx("stop", { stopColor: "#fff" }),
6951
- /* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "#fff" })
6952
- ] }),
6953
- /* @__PURE__ */ jsxs("linearGradient", { id: "rabby__b", x1: "18.66", x2: "9.323", y1: "11.468", y2: "2.473", gradientUnits: "userSpaceOnUse", children: [
6954
- /* @__PURE__ */ jsx("stop", { stopColor: "#8697FF" }),
6955
- /* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "#8697FF", stopOpacity: "0" })
6956
- ] }),
6957
- /* @__PURE__ */ jsxs("linearGradient", { id: "rabby__c", x1: "14.023", x2: "5.231", y1: "16.707", y2: "11.849", gradientUnits: "userSpaceOnUse", children: [
6958
- /* @__PURE__ */ jsx("stop", { stopColor: "#8697FF" }),
6959
- /* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "#8697FF", stopOpacity: "0" })
6960
- ] }),
6961
- /* @__PURE__ */ jsxs("linearGradient", { id: "rabby__d", x1: "9.054", x2: "15.173", y1: "11.617", y2: "19.089", gradientUnits: "userSpaceOnUse", children: [
6962
- /* @__PURE__ */ jsx("stop", { stopColor: "#fff" }),
6963
- /* @__PURE__ */ jsx("stop", { offset: ".984", stopColor: "#D1D8FF" })
6964
- ] })
7041
+ /* @__PURE__ */ jsxs(
7042
+ "linearGradient",
7043
+ {
7044
+ id: "rabby__a",
7045
+ x1: "8.311",
7046
+ x2: "20.827",
7047
+ y1: "11.714",
7048
+ y2: "15.125",
7049
+ gradientUnits: "userSpaceOnUse",
7050
+ children: [
7051
+ /* @__PURE__ */ jsx("stop", { stopColor: "#fff" }),
7052
+ /* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "#fff" })
7053
+ ]
7054
+ }
7055
+ ),
7056
+ /* @__PURE__ */ jsxs(
7057
+ "linearGradient",
7058
+ {
7059
+ id: "rabby__b",
7060
+ x1: "18.66",
7061
+ x2: "9.323",
7062
+ y1: "11.468",
7063
+ y2: "2.473",
7064
+ gradientUnits: "userSpaceOnUse",
7065
+ children: [
7066
+ /* @__PURE__ */ jsx("stop", { stopColor: "#8697FF" }),
7067
+ /* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "#8697FF", stopOpacity: "0" })
7068
+ ]
7069
+ }
7070
+ ),
7071
+ /* @__PURE__ */ jsxs(
7072
+ "linearGradient",
7073
+ {
7074
+ id: "rabby__c",
7075
+ x1: "14.023",
7076
+ x2: "5.231",
7077
+ y1: "16.707",
7078
+ y2: "11.849",
7079
+ gradientUnits: "userSpaceOnUse",
7080
+ children: [
7081
+ /* @__PURE__ */ jsx("stop", { stopColor: "#8697FF" }),
7082
+ /* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "#8697FF", stopOpacity: "0" })
7083
+ ]
7084
+ }
7085
+ ),
7086
+ /* @__PURE__ */ jsxs(
7087
+ "linearGradient",
7088
+ {
7089
+ id: "rabby__d",
7090
+ x1: "9.054",
7091
+ x2: "15.173",
7092
+ y1: "11.617",
7093
+ y2: "19.089",
7094
+ gradientUnits: "userSpaceOnUse",
7095
+ children: [
7096
+ /* @__PURE__ */ jsx("stop", { stopColor: "#fff" }),
7097
+ /* @__PURE__ */ jsx("stop", { offset: ".984", stopColor: "#D1D8FF" })
7098
+ ]
7099
+ }
7100
+ )
6965
7101
  ] })
6966
7102
  ] })
6967
7103
  };
6968
- function Icon({
6969
- name,
6970
- className,
6971
- ...props
6972
- }) {
7104
+ function Icon({ name, className, ...props }) {
6973
7105
  const Render = icons[name];
6974
7106
  return /* @__PURE__ */ jsx(Render, { className: cn(className), "aria-hidden": "true", ...props });
6975
7107
  }
7108
+
7109
+ // src/assets/brand/wordmark-connect.png
7110
+ var wordmark_connect_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQ4AAABOCAYAAADRnvh9AAAWfmNhQlgAABZ+anVtYgAAAB5qdW1kYzJwYQARABCAAACqADibcQNjMnBhAAAAFlhqdW1iAAAAR2p1bWRjMm1hABEAEIAAAKoAOJtxA3VybjpjMnBhOjM4YjkwODE1LTUyMjEtNDI5Ny05OGQ2LWYxOTFmZTYwMTllOQAAAAOTanVtYgAAAClqdW1kYzJhcwARABCAAACqADibcQNjMnBhLmFzc2VydGlvbnM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ASUVORK5CYII=";
7111
+
7112
+ // src/assets/brand/wordmark-fluent.png
7113
+ var wordmark_fluent_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQoAAABOCAYAAADYdVgHAAAWfmNhQlgAABZ+anVtYgAAAB5qdW1kYzJwYQARABCAAACqADibcQNjMnBhAAAAFlhqdW1iAAAAR2p1bWRjMm1hABEAEIAAAKoAOJtxA3VybjpjMnBhOjQ4MTY4MGMxLTNlZDMtNGNkNC05OWEwLWRlM2Q4NzIyN2VhZgAAAAOTanVtYgAAAClqdW1kYzJhcwARABCAAACqADibcQNjMnBhLmFzc2VydGlvbnMAAAAAuGp1bWIAAABEanVtZGNib3IAEQAQgAAAqgA4m3ETYzJwYS5pbmdyZWRpZW50LnYzAAAAABhjMnNokhvPwtfWHmr+7Buy6eRORAAAAGxjYm9yo2lkYzpmb3JtYXRpaW1hZ2UvcG5namluc3RhbmNlSUR4LHhtcDppaWQ6NjZmYzRjMzYtYzE5NS00NGNmLWE3NjEtZTk5ZGNiMjBhNGMxbHJlbGF0aW9uc2hpcGhwYXJlbnRPZgAAAeJqdW1iAAAAQWp1bWRjYm9yABEAEIAAAKoAOJtxE2MycGEuYWN0aW9ucy52MgAAAAAYYzJzaItX50ggfG/fnGu+G6EwFPsAAAGZY2JvcqJnYWN0aW9uc4KiZmFjdGlvbmtjMnBhLm9wZW5lZGpwYXJhbWV0ZXJzoWtpbmdyZWRpZW50c4GiY3VybHgtc2VsZiNqdW1iZj1jMnBhLmFzc2VydGlvbnMvYzJwYS5pbmdyZWRpZW50LnYzZGhhc2hYILQmwEqIx8h4tGX3JzT/ybPblgBDBXfIlLE8WT1LdkXVpGZhY3Rpb254HWNvbS5hbnRocm9waWMuY2xhdWRlLnByb3ZpZGVkanBhcmFtZXRlcnOheB9jb20uYW50aHJvcGljLm9yaWdpbi1jb25maWRlbmNlZ3Vua25vd25rZGVzY3JpcHRpb254ZkNsYXVkZSBwcm92aWRlZCB0aGlzIGZpbGUgYXQgdG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qHdliviYT/yFNmFA1i5FHDBacRJzZwYK6nI25stA+mkpJq51BXsreUH7IFNzUsZpxDZ7WuxqiANxUlP580IEI7k+qfY3xeUU7KR0H5QeZk4o1nzhIzCz8Szkp2TxrTxesqtoDto8R0kAH4xMiY/jhdDpxTxm6Uj9PmLORMrtRkZqjjYE0sAWbpnFqK/nYqmbnlL0RLddZaoy3hK5UXDquQWFKfsgP9apS7FccghoiC1xCDHiRD1YXT8tMFJIMuNEohcWg9l8Uo+2VD/hFGY9WQf2iz8m4pD9ryp7aNephMYbIGIbroW/T+tPrse1QJ3Y9rbv0epQf7Arp1Fbyuni+o65V+3VHHeASYsBr6Nt0TMxEMW3k146AI/BcCDhRPNd4e28dgSYEnCiaYFu7kct3BPaFgBPFvsbDrXEEdomAE8Uuh8WNcgT2hYATxb7Gw61xBHaJwBMSxS7HwY1yBHaNgBPFrofHjXME9oGAE8U+xsGtcAR2jYATxa6Hx41zBPaBQGei2Een3ApHwBHoi4ATRV88XZojcEgEnCgOOazeKUegLwJOFH3xdGmOwNYIrKLfiWIVWF2oI3AsBP4PAAD//wwcyI4AAAAGSURBVAMAyeiP94UUqMEAAAAASUVORK5CYII=";
6976
7114
  function connectDescription(appName) {
6977
- return `Sign in or create a Fluent Connect account to use ${appName?.trim() || "this app"}.`;
7115
+ return `Log in or sign up to ${appName?.trim() || "this app"}`;
6978
7116
  }
6979
7117
  var termsOfUseUrl = "https://cdn.fluent.xyz/docs/fluent-connect-sdk-terms-of-use.pdf";
6980
7118
  var privacyPolicyUrl = "https://cdn.fluent.xyz/docs/fluent-connect-sdk-privacy-policy.pdf";
@@ -6998,11 +7136,9 @@ function FluentBranch({
6998
7136
  "div",
6999
7137
  {
7000
7138
  className: cn(
7001
- // The edge is a 1px gradient ring drawn by ::before and cut out of its own padding box,
7002
- // with a gap cut from its top run where the badge sits: the badge's width plus 8px a side.
7003
- // The same cut crosses the bottom run, where the edge has already faded to nothing.
7004
- // Rounded at the top only; surface and edge both fade to nothing by 70% of the height, so the
7005
- // panel has no bottom to speak of and its last 30% dissolves into the dialog.
7139
+ // The edge is a 1px gradient ring drawn by ::before, cut out of its own padding box, with
7140
+ // a gap in its top run for the badge: its width plus 8px a side. Rounded at the top only:
7141
+ // surface and edge fade out by 70% of the height, so the panel has no bottom edge.
7006
7142
  "relative mt-3 flex flex-col gap-2 rounded-t-2xl bg-[linear-gradient(to_bottom,rgba(255,255,255,0.08),transparent_70%)] px-5 pt-5 pb-2",
7007
7143
  "before:pointer-events-none before:absolute before:inset-0 before:rounded-t-2xl before:p-px before:bg-[linear-gradient(to_bottom,rgba(255,255,255,0.2),transparent_70%)]",
7008
7144
  "before:[mask:linear-gradient(to_right,#000_calc(50%-60px),transparent_calc(50%-60px)_calc(50%+60px),#000_calc(50%+60px))_intersect,linear-gradient(#000_0_0)_content-box_exclude,linear-gradient(#000_0_0)]",
@@ -7160,10 +7296,7 @@ function InlineConnectModal(props) {
7160
7296
  }, [open, screen, showWallets]);
7161
7297
  React.useEffect(() => {
7162
7298
  if (resendSeconds <= 0) return;
7163
- const timer = setTimeout(
7164
- () => setResendSeconds((value) => Math.max(0, value - 1)),
7165
- 1e3
7166
- );
7299
+ const timer = setTimeout(() => setResendSeconds((value) => Math.max(0, value - 1)), 1e3);
7167
7300
  return () => clearTimeout(timer);
7168
7301
  }, [resendSeconds]);
7169
7302
  React.useEffect(() => {
@@ -7185,9 +7318,7 @@ function InlineConnectModal(props) {
7185
7318
  if (!ready || !authenticated || !user?.id || walletUserPrivySession) return;
7186
7319
  clearInlineOAuth();
7187
7320
  const embedded = (account) => account.walletClientType === "privy" && (!account.chainType || account.chainType === "ethereum");
7188
- if (wallets.some(embedded) || user.linkedAccounts?.some(
7189
- (account) => account.type === "wallet" && embedded(account)
7190
- ))
7321
+ if (wallets.some(embedded) || user.linkedAccounts?.some((account) => account.type === "wallet" && embedded(account)))
7191
7322
  return;
7192
7323
  if (attemptedWallet.current?.userId === user.id) return;
7193
7324
  const attempt = { userId: user.id, failed: false };
@@ -7220,8 +7351,7 @@ function InlineConnectModal(props) {
7220
7351
  try {
7221
7352
  await action(() => active.current && current === generation.current);
7222
7353
  } catch (failure) {
7223
- if (active.current && current === generation.current)
7224
- setError(message(failure));
7354
+ if (active.current && current === generation.current) setError(message(failure));
7225
7355
  } finally {
7226
7356
  if (operation.current === token) operation.current = null;
7227
7357
  if (active.current && current === generation.current) setBusy(false);
@@ -7400,9 +7530,10 @@ function InlineConnectModal(props) {
7400
7530
  });
7401
7531
  };
7402
7532
  if (screen === "choice") {
7403
- title = /* @__PURE__ */ jsxs("span", { className: "my-3 flex items-center justify-center gap-1.5", children: [
7404
- /* @__PURE__ */ jsx(Icon, { name: "fluentLogomark", className: "h-5 w-auto" }),
7405
- /* @__PURE__ */ jsx(Icon, { name: "fluentLogotype", className: "h-5 w-auto" }),
7533
+ title = /* @__PURE__ */ jsxs("span", { className: "my-3 flex items-start justify-center", children: [
7534
+ /* @__PURE__ */ jsx("img", { src: wordmark_fluent_default, alt: "", className: "h-[26px] w-auto" }),
7535
+ /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "mt-[3px] ml-px w-[7px] text-[9px] leading-none", children: "\xAE" }),
7536
+ /* @__PURE__ */ jsx("img", { src: wordmark_connect_default, alt: "", className: "h-[26px] w-auto" }),
7406
7537
  /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Sign in" })
7407
7538
  ] });
7408
7539
  content = /* @__PURE__ */ jsxs(React.Fragment, { children: [
@@ -7426,10 +7557,7 @@ function InlineConnectModal(props) {
7426
7557
  "button",
7427
7558
  {
7428
7559
  type: "button",
7429
- className: cn(
7430
- buttonVariants({ variant: "secondary" }),
7431
- "w-full"
7432
- ),
7560
+ className: cn(buttonVariants({ variant: "secondary" }), "w-full"),
7433
7561
  disabled: busy,
7434
7562
  onClick: () => connectWallet(choice),
7435
7563
  children: [
@@ -7560,23 +7688,15 @@ function InlineConnectModal(props) {
7560
7688
  ]
7561
7689
  }
7562
7690
  ),
7563
- verifying && button(
7564
- resendSeconds ? `Resend code in ${resendSeconds}s` : "Resend code",
7565
- send2,
7566
- {
7567
- icon: "retry",
7568
- link: true,
7569
- disabled: busy || resendSeconds > 0
7570
- }
7571
- ),
7572
- button(
7573
- verifying ? "Change email" : "Back",
7574
- () => go(verifying ? "email" : "choice"),
7575
- {
7576
- icon: verifying ? "email" : "back",
7577
- link: true
7578
- }
7579
- )
7691
+ verifying && button(resendSeconds ? `Resend code in ${resendSeconds}s` : "Resend code", send2, {
7692
+ icon: "retry",
7693
+ link: true,
7694
+ disabled: busy || resendSeconds > 0
7695
+ }),
7696
+ button(verifying ? "Change email" : "Back", () => go(verifying ? "email" : "choice"), {
7697
+ icon: verifying ? "email" : "back",
7698
+ link: true
7699
+ })
7580
7700
  ] });
7581
7701
  } else {
7582
7702
  title = screen === "oauth" ? `Continue with ${oauthName}` : "Connecting to Fluent";
@@ -7676,9 +7796,7 @@ function InlineConnectModal(props) {
7676
7796
  Captcha2,
7677
7797
  {
7678
7798
  onError: () => setCaptchaError("Verification could not load. Please retry."),
7679
- onUnsupported: () => setCaptchaError(
7680
- "Verification is unavailable in this browser."
7681
- ),
7799
+ onUnsupported: () => setCaptchaError("Verification is unavailable in this browser."),
7682
7800
  onSuccess: () => setCaptchaError("")
7683
7801
  },
7684
7802
  captchaEpoch
@@ -7769,7 +7887,10 @@ function SelectContent({
7769
7887
  {
7770
7888
  "data-slot": "select-content",
7771
7889
  "data-align-trigger": alignItemWithTrigger,
7772
- className: cn("dark relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-xl bg-popover p-1 border border-foreground/15 text-popover-foreground shadow-xl duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className),
7890
+ className: cn(
7891
+ "dark relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-xl bg-popover p-1 border border-foreground/15 text-popover-foreground shadow-xl duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
7892
+ className
7893
+ ),
7773
7894
  ...props,
7774
7895
  children: [
7775
7896
  /* @__PURE__ */ jsx(SelectScrollUpButton, {}),
@@ -7781,11 +7902,7 @@ function SelectContent({
7781
7902
  }
7782
7903
  ) });
7783
7904
  }
7784
- function SelectItem({
7785
- className,
7786
- children,
7787
- ...props
7788
- }) {
7905
+ function SelectItem({ className, children, ...props }) {
7789
7906
  return /* @__PURE__ */ jsxs(
7790
7907
  Select$1.Item,
7791
7908
  {
@@ -7808,10 +7925,7 @@ function SelectItem({
7808
7925
  }
7809
7926
  );
7810
7927
  }
7811
- function SelectSeparator({
7812
- className,
7813
- ...props
7814
- }) {
7928
+ function SelectSeparator({ className, ...props }) {
7815
7929
  return /* @__PURE__ */ jsx(
7816
7930
  Select$1.Separator,
7817
7931
  {
@@ -7834,10 +7948,7 @@ function SelectScrollUpButton({
7834
7948
  className
7835
7949
  ),
7836
7950
  ...props,
7837
- children: /* @__PURE__ */ jsx(
7838
- ChevronUpIcon,
7839
- {}
7840
- )
7951
+ children: /* @__PURE__ */ jsx(ChevronUpIcon, {})
7841
7952
  }
7842
7953
  );
7843
7954
  }
@@ -7854,10 +7965,7 @@ function SelectScrollDownButton({
7854
7965
  className
7855
7966
  ),
7856
7967
  ...props,
7857
- children: /* @__PURE__ */ jsx(
7858
- ChevronDownIcon,
7859
- {}
7860
- )
7968
+ children: /* @__PURE__ */ jsx(ChevronDownIcon, {})
7861
7969
  }
7862
7970
  );
7863
7971
  }
@@ -7975,6 +8083,26 @@ function rowFromHyperlane(transfer, route, token) {
7975
8083
  decimals: token?.decimals
7976
8084
  };
7977
8085
  }
8086
+ var ORDER_STATUS = {
8087
+ filled: "completed",
8088
+ open: "pending",
8089
+ cancelled: "failed"
8090
+ };
8091
+ function rowFromOrder(order, deliveredToken) {
8092
+ if (!order.openTxHash) return void 0;
8093
+ return {
8094
+ id: `order:${order.orderId}`,
8095
+ source: "order",
8096
+ sentAt: new Date(order.createdAt * 1e3).toISOString(),
8097
+ status: ORDER_STATUS[order.status],
8098
+ direction: "l1_to_l2",
8099
+ sentTxHash: order.openTxHash,
8100
+ receivedTxHash: order.fillTxHash,
8101
+ tokenSymbol: deliveredToken?.symbol,
8102
+ amount: order.amountOut,
8103
+ decimals: deliveredToken?.decimals
8104
+ };
8105
+ }
7978
8106
  function rowTargetUrl(row, route) {
7979
8107
  if (!row.receivedTxHash) return void 0;
7980
8108
  const chain = row.direction === "l1_to_l2" ? route.destination : route.source;
@@ -8386,10 +8514,9 @@ function blockscoutApiUrl(explorerBaseUrl, path, params) {
8386
8514
  return url.toString();
8387
8515
  }
8388
8516
  var ENTRY_POINT_ADDRESSES = new Set(
8389
- [
8390
- "0x0000000071727De22E5E9d8BAf0edAc6f37da032",
8391
- "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789"
8392
- ].map((address) => address.toLowerCase())
8517
+ ["0x0000000071727De22E5E9d8BAf0edAc6f37da032", "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789"].map(
8518
+ (address) => address.toLowerCase()
8519
+ )
8393
8520
  );
8394
8521
  var EXHAUSTED_PAGE = { items: [], nextPageParams: null };
8395
8522
  async function fetchBlockscoutPage(url, signal) {
@@ -8555,9 +8682,7 @@ function groupFluentTransactionHistory(params) {
8555
8682
  if (group) group.push(movement);
8556
8683
  else movementsByTransaction.set(key, [movement]);
8557
8684
  }
8558
- const claimed = new Set(
8559
- operations.map((operation) => operation.transactionHash.toLowerCase())
8560
- );
8685
+ const claimed = new Set(operations.map((operation) => operation.transactionHash.toLowerCase()));
8561
8686
  return [
8562
8687
  ...operations.map((operation) => ({
8563
8688
  ...operation,
@@ -8708,58 +8833,341 @@ function useHyperlaneTransfers({
8708
8833
  refetchInterval
8709
8834
  });
8710
8835
  }
8711
-
8712
- // src/bridge/tokens.ts
8713
- var ETH = { symbol: "ETH", name: "Ether", decimals: 18, route: "native" };
8714
- var MAINNET_ONLY = "Ethereum mainnet only";
8715
- var USDNR_MAINNET = "0xD48e565561416dE59DA1050ED70b8d75e8eF28f9";
8716
- var TOKENS_BY_NETWORK = {
8717
- mainnet: [
8718
- ETH,
8719
- {
8720
- symbol: "BLEND",
8721
- name: "Fluent",
8722
- decimals: 18,
8723
- route: "canonical",
8724
- l1Address: "0xd8a271974e8edae9d7b58e3370dc1669427503f4",
8725
- l2Address: "0x1385B8f55A84f2BdA13EeD4099d29Eae03d553b2"
8726
- },
8727
- {
8728
- symbol: "USDnr",
8729
- name: "USDnr",
8730
- decimals: 6,
8731
- route: "fast-path",
8732
- l1Address: USDNR_MAINNET,
8733
- l2Address: USDNR_MAINNET
8734
- },
8735
- {
8736
- symbol: "USDC",
8737
- name: "USD Coin",
8738
- decimals: 6,
8739
- route: "swap",
8740
- l1Address: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
8741
- l2Address: USDNR_MAINNET,
8742
- swapTo: "USDnr"
8743
- }
8744
- ],
8745
- // The Portal lists no Sepolia origin for any of these: the testnet BLEND and
8746
- // USDnr the widget shows are L2-only mocks with nothing to bridge them from.
8747
- testnet: [
8748
- ETH,
8749
- { symbol: "BLEND", name: "Fluent", decimals: 18, route: "canonical", unavailableReason: MAINNET_ONLY },
8750
- { symbol: "USDnr", name: "USDnr", decimals: 18, route: "fast-path", unavailableReason: MAINNET_ONLY },
8751
- { symbol: "USDC", name: "USD Coin", decimals: 6, route: "swap", swapTo: "USDnr", unavailableReason: MAINNET_ONLY }
8752
- ]
8836
+ var ORDER_API_CHAIN_BY_ID = {
8837
+ 1: "Ethereum",
8838
+ 11155111: "Sepolia",
8839
+ 25363: "Fluent"
8753
8840
  };
8754
- function getBridgeTokens(network) {
8755
- return TOKENS_BY_NETWORK[network];
8841
+ var ORDER_API_REQUEST_TIMEOUT_MS = 1e4;
8842
+ var ORDER_API_HISTORY_LIMIT = 25;
8843
+ var QUOTE_MISS_CODES = /* @__PURE__ */ new Set(["NoQuotesAvailable", "ProxyNotConfigured", "BadQuoteRequest"]);
8844
+ function isRecord(value) {
8845
+ return typeof value === "object" && value !== null;
8846
+ }
8847
+ function readInteger(value) {
8848
+ if (typeof value === "number") return Number.isSafeInteger(value) ? value : void 0;
8849
+ if (typeof value === "string" && /^\d{1,15}$/.test(value)) return Number(value);
8850
+ return void 0;
8756
8851
  }
8757
- function getBridgeToken(network, symbol) {
8758
- const token = TOKENS_BY_NETWORK[network].find((t) => t.symbol === symbol);
8759
- if (!token) throw new Error(`Unknown bridge token ${symbol}`);
8760
- return token;
8852
+ function readAmount(value) {
8853
+ if (typeof value === "string" && /^\d+$/.test(value)) return BigInt(value);
8854
+ if (typeof value === "number" && Number.isSafeInteger(value) && value >= 0) return BigInt(value);
8855
+ return void 0;
8761
8856
  }
8762
- function getDeliveredToken(network, token) {
8857
+ function readAddress(value) {
8858
+ if (typeof value !== "string") return void 0;
8859
+ if (isAddress(value, { strict: false })) return getAddress(value);
8860
+ if (/^0x0{24}[0-9a-fA-F]{40}$/.test(value)) return getAddress(`0x${value.slice(26)}`);
8861
+ return void 0;
8862
+ }
8863
+ function readHash(value) {
8864
+ return typeof value === "string" && /^0x[0-9a-fA-F]{64}$/.test(value) ? (
8865
+ // The pattern above is what makes the string a 32-byte hex value.
8866
+ value.toLowerCase()
8867
+ ) : void 0;
8868
+ }
8869
+ function readStatus(value) {
8870
+ if (value === "COMPLETED") return "filled";
8871
+ if (value === "CANCELLED") return "cancelled";
8872
+ return "open";
8873
+ }
8874
+ function readPayload(value) {
8875
+ if (!isRecord(value) || !isRecord(value.data)) return void 0;
8876
+ const { data } = value;
8877
+ if (data.type !== "evm") return void 0;
8878
+ const chainId = readInteger(data.chainId);
8879
+ const to = readAddress(data.to);
8880
+ const amount = data.value === void 0 || data.value === null ? 0n : readAmount(data.value);
8881
+ if (chainId === void 0 || !to || amount === void 0 || !isHex(data.data)) return void 0;
8882
+ return { chainId, to, data: data.data, value: amount };
8883
+ }
8884
+ function readQuote(value) {
8885
+ if (!isRecord(value) || !Array.isArray(value.payloads) || value.payloads.length === 0) {
8886
+ return void 0;
8887
+ }
8888
+ const amountIn = readAmount(value.amountIn);
8889
+ const amountOut = readAmount(value.amountOut);
8890
+ if (amountIn === void 0 || amountOut === void 0) return void 0;
8891
+ const payloads = [];
8892
+ for (const item of value.payloads) {
8893
+ const payload = readPayload(item);
8894
+ if (!payload) return void 0;
8895
+ payloads.push(payload);
8896
+ }
8897
+ return { amountIn, amountOut, fillSeconds: readInteger(value.estFillTime), payloads };
8898
+ }
8899
+ function readOrder(value) {
8900
+ if (!isRecord(value)) return void 0;
8901
+ const orderId = readHash(value.orderId);
8902
+ const createdAt = readInteger(value.createdAt);
8903
+ const originChainId = readInteger(value.originChainId);
8904
+ const destinationChainId = readInteger(value.destChainId);
8905
+ const sender = readAddress(value.sender);
8906
+ const tokenIn = readAddress(value.tokenIn);
8907
+ const tokenOut = readAddress(value.tokenOut);
8908
+ const amountIn = readAmount(value.amountIn);
8909
+ const amountOut = readAmount(value.amountOut);
8910
+ if (!orderId || createdAt === void 0 || originChainId === void 0 || destinationChainId === void 0 || !sender || !tokenIn || !tokenOut || amountIn === void 0 || amountOut === void 0) {
8911
+ return void 0;
8912
+ }
8913
+ const fills = Array.isArray(value.fills) ? value.fills : [];
8914
+ const fillTxHash = fills.map((fill) => isRecord(fill) ? readHash(fill.transactionHash) : void 0).find((hash) => hash !== void 0);
8915
+ return {
8916
+ orderId,
8917
+ createdAt,
8918
+ originChainId,
8919
+ destinationChainId,
8920
+ sender,
8921
+ tokenIn,
8922
+ tokenOut,
8923
+ amountIn,
8924
+ amountOut,
8925
+ amountOutFilled: readAmount(value.amountOutFilled) ?? 0n,
8926
+ status: readStatus(value.status),
8927
+ openTxHash: readHash(value.openTx),
8928
+ fillTxHash
8929
+ };
8930
+ }
8931
+ function describeFailure(what, response) {
8932
+ const { body } = response;
8933
+ const code = isRecord(body) && typeof body.code === "string" ? body.code : response.status;
8934
+ const message2 = isRecord(body) && typeof body.message === "string" ? ` ${body.message}` : "";
8935
+ return new Error(`${what} failed: ${code}${message2}`);
8936
+ }
8937
+ async function requestOrderApi(url, init, signal) {
8938
+ const controller = new AbortController();
8939
+ const abort = () => controller.abort();
8940
+ const timer = setTimeout(abort, ORDER_API_REQUEST_TIMEOUT_MS);
8941
+ if (signal?.aborted) abort();
8942
+ signal?.addEventListener("abort", abort, { once: true });
8943
+ try {
8944
+ const response = await fetch(url, { ...init, signal: controller.signal });
8945
+ const body = await response.json().catch(() => void 0);
8946
+ return { ok: response.ok, status: response.status, body };
8947
+ } finally {
8948
+ clearTimeout(timer);
8949
+ signal?.removeEventListener("abort", abort);
8950
+ }
8951
+ }
8952
+ async function getOrderDepositQuote({
8953
+ baseUrl,
8954
+ sourceChainId,
8955
+ destinationChainId,
8956
+ tokenIn,
8957
+ tokenOut,
8958
+ amountIn,
8959
+ sender,
8960
+ recipient,
8961
+ signal
8962
+ }) {
8963
+ const sourceChain = ORDER_API_CHAIN_BY_ID[sourceChainId];
8964
+ const destinationChain = ORDER_API_CHAIN_BY_ID[destinationChainId];
8965
+ if (!sourceChain || !destinationChain || amountIn <= 0n) return null;
8966
+ const response = await requestOrderApi(
8967
+ `${baseUrl}/quote`,
8968
+ {
8969
+ method: "POST",
8970
+ headers: { "content-type": "application/json" },
8971
+ body: JSON.stringify({
8972
+ route: {
8973
+ source: { chain: sourceChain, address: tokenIn },
8974
+ destination: { chain: destinationChain, address: tokenOut }
8975
+ },
8976
+ amountIn: amountIn.toString(),
8977
+ sender: getAddress(sender),
8978
+ recipient: getAddress(recipient)
8979
+ })
8980
+ },
8981
+ signal
8982
+ );
8983
+ if (!response.ok) {
8984
+ const { body } = response;
8985
+ if (isRecord(body) && typeof body.code === "string" && QUOTE_MISS_CODES.has(body.code)) {
8986
+ return null;
8987
+ }
8988
+ throw describeFailure("The Order deposit quote request", response);
8989
+ }
8990
+ const offered = Array.isArray(response.body) ? response.body : [];
8991
+ for (const item of offered) {
8992
+ const quote = readQuote(item);
8993
+ if (!quote) continue;
8994
+ const destination = isRecord(item) && isRecord(item.route) && isRecord(item.route.destination) ? readAddress(item.route.destination.address) : void 0;
8995
+ const paidTo = isRecord(item) ? readAddress(item.recipient) : void 0;
8996
+ if (quote.amountIn !== amountIn || destination !== getAddress(tokenOut) || paidTo !== getAddress(recipient)) {
8997
+ debugWarn("[FluentBridge] an Order deposit quote does not answer its request", item);
8998
+ continue;
8999
+ }
9000
+ return quote;
9001
+ }
9002
+ return null;
9003
+ }
9004
+ async function getOrderDeposits({
9005
+ baseUrl,
9006
+ sender,
9007
+ originChainId,
9008
+ signal
9009
+ }) {
9010
+ const search = new URLSearchParams({
9011
+ // The API matches the sender by its exact text, checksum included, and answers with
9012
+ // everybody's orders when the filter is empty.
9013
+ sender: getAddress(sender),
9014
+ originChainId: String(originChainId),
9015
+ limit: String(ORDER_API_HISTORY_LIMIT)
9016
+ });
9017
+ const response = await requestOrderApi(`${baseUrl}/orders?${search.toString()}`, {}, signal);
9018
+ if (!response.ok) throw describeFailure("The Order deposit history request", response);
9019
+ const { body } = response;
9020
+ const listed = isRecord(body) && Array.isArray(body.orders) ? body.orders : [];
9021
+ const orders = [];
9022
+ for (const item of listed) {
9023
+ const order = readOrder(item);
9024
+ if (order && order.sender === getAddress(sender)) orders.push(order);
9025
+ else debugWarn("[FluentBridge] skipped an order the history could not read", item);
9026
+ }
9027
+ return orders;
9028
+ }
9029
+ async function getOrderDeposit({
9030
+ baseUrl,
9031
+ originChainId,
9032
+ orderId,
9033
+ signal
9034
+ }) {
9035
+ const originChain = ORDER_API_CHAIN_BY_ID[originChainId];
9036
+ if (!originChain) return null;
9037
+ const response = await requestOrderApi(
9038
+ `${baseUrl}/orders/${originChain}/${encodeURIComponent(orderId)}`,
9039
+ {},
9040
+ signal
9041
+ );
9042
+ if (response.status === 404) return null;
9043
+ if (!response.ok) throw describeFailure("The Order deposit status request", response);
9044
+ return readOrder(response.body) ?? null;
9045
+ }
9046
+
9047
+ // src/bridge/orderDepositHistory.ts
9048
+ var ORDER_DEPOSIT_FILL_LOOKUPS = 10;
9049
+ function useOrderDepositHistory({
9050
+ address,
9051
+ route,
9052
+ refetchInterval = false
9053
+ }) {
9054
+ const baseUrl = route.orderApiUrl;
9055
+ const originChainId = route.source.id;
9056
+ const destinationChainId = route.destination.id;
9057
+ const list = useQuery({
9058
+ queryKey: ["fluent-order-deposits", baseUrl, originChainId, address],
9059
+ queryFn: ({ signal }) => getOrderDeposits({ baseUrl, sender: address, originChainId, signal }),
9060
+ enabled: Boolean(address && baseUrl),
9061
+ staleTime: 15e3,
9062
+ refetchInterval: (query) => query.state.status === "error" ? false : refetchInterval,
9063
+ retry: false
9064
+ });
9065
+ const orders = useMemo(
9066
+ () => (list.data ?? []).filter((order) => order.destinationChainId === destinationChainId),
9067
+ [destinationChainId, list.data]
9068
+ );
9069
+ const filled = useMemo(
9070
+ () => orders.filter((order) => order.status === "filled").slice(0, ORDER_DEPOSIT_FILL_LOOKUPS),
9071
+ [orders]
9072
+ );
9073
+ const fillHashes = useQueries({
9074
+ queries: filled.map((order) => ({
9075
+ queryKey: ["fluent-order-deposit-fill", baseUrl, originChainId, order.orderId],
9076
+ queryFn: async ({ signal }) => {
9077
+ const read = await getOrderDeposit({
9078
+ baseUrl,
9079
+ originChainId,
9080
+ orderId: order.orderId,
9081
+ signal
9082
+ });
9083
+ return read?.fillTxHash ?? null;
9084
+ },
9085
+ // A filled order's transaction does not change.
9086
+ staleTime: Number.POSITIVE_INFINITY,
9087
+ retry: false
9088
+ })),
9089
+ combine: (results) => results.map((result) => result.data ?? void 0)
9090
+ });
9091
+ return useMemo(
9092
+ () => orders.map((order) => {
9093
+ const index = filled.indexOf(order);
9094
+ const fillTxHash = index === -1 ? void 0 : fillHashes[index];
9095
+ return fillTxHash ? { ...order, fillTxHash } : order;
9096
+ }),
9097
+ [fillHashes, filled, orders]
9098
+ );
9099
+ }
9100
+
9101
+ // src/bridge/tokens.ts
9102
+ var ETH = { symbol: "ETH", name: "Ether", decimals: 18, route: "native" };
9103
+ var MAINNET_ONLY = "Ethereum mainnet only";
9104
+ var USDNR_MAINNET = "0xD48e565561416dE59DA1050ED70b8d75e8eF28f9";
9105
+ var TOKENS_BY_NETWORK = {
9106
+ mainnet: [
9107
+ ETH,
9108
+ {
9109
+ symbol: "BLEND",
9110
+ name: "Fluent",
9111
+ decimals: 18,
9112
+ route: "canonical",
9113
+ l1Address: "0xd8a271974e8edae9d7b58e3370dc1669427503f4",
9114
+ l2Address: "0x1385B8f55A84f2BdA13EeD4099d29Eae03d553b2"
9115
+ },
9116
+ {
9117
+ symbol: "USDnr",
9118
+ name: "USDnr",
9119
+ decimals: 6,
9120
+ route: "fast-path",
9121
+ l1Address: USDNR_MAINNET,
9122
+ l2Address: USDNR_MAINNET
9123
+ },
9124
+ {
9125
+ symbol: "USDC",
9126
+ name: "USD Coin",
9127
+ decimals: 6,
9128
+ route: "swap",
9129
+ l1Address: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
9130
+ l2Address: USDNR_MAINNET,
9131
+ swapTo: "USDnr"
9132
+ }
9133
+ ],
9134
+ // The Portal lists no Sepolia origin for any of these: the testnet BLEND and
9135
+ // USDnr the widget shows are L2-only mocks with nothing to bridge them from.
9136
+ testnet: [
9137
+ ETH,
9138
+ {
9139
+ symbol: "BLEND",
9140
+ name: "Fluent",
9141
+ decimals: 18,
9142
+ route: "canonical",
9143
+ unavailableReason: MAINNET_ONLY
9144
+ },
9145
+ {
9146
+ symbol: "USDnr",
9147
+ name: "USDnr",
9148
+ decimals: 18,
9149
+ route: "fast-path",
9150
+ unavailableReason: MAINNET_ONLY
9151
+ },
9152
+ {
9153
+ symbol: "USDC",
9154
+ name: "USD Coin",
9155
+ decimals: 6,
9156
+ route: "swap",
9157
+ swapTo: "USDnr",
9158
+ unavailableReason: MAINNET_ONLY
9159
+ }
9160
+ ]
9161
+ };
9162
+ function getBridgeTokens(network) {
9163
+ return TOKENS_BY_NETWORK[network];
9164
+ }
9165
+ function getBridgeToken(network, symbol) {
9166
+ const token = TOKENS_BY_NETWORK[network].find((t) => t.symbol === symbol);
9167
+ if (!token) throw new Error(`Unknown bridge token ${symbol}`);
9168
+ return token;
9169
+ }
9170
+ function getDeliveredToken(network, token) {
8763
9171
  return token.route === "swap" && token.swapTo ? getBridgeToken(network, token.swapTo) : token;
8764
9172
  }
8765
9173
  function isBridgeTokenAvailable(token) {
@@ -8792,17 +9200,29 @@ function useBridgeHistoryRows({
8792
9200
  token: hyperlaneToken,
8793
9201
  refetchInterval
8794
9202
  });
9203
+ const tokens = getBridgeTokens(network);
9204
+ const orders = useOrderDepositHistory({ address: wallet, route, refetchInterval });
8795
9205
  const rows = useMemo(() => {
8796
- const fromIndexer = (history.data?.pages ?? []).flatMap((page) => page.items.map(rowFromIndexer));
8797
- const fromHyperlane = (hyperlane.data ?? []).map((t) => rowFromHyperlane(t, route, hyperlaneToken));
9206
+ const fromIndexer = (history.data?.pages ?? []).flatMap(
9207
+ (page) => page.items.map(rowFromIndexer)
9208
+ );
9209
+ const fromHyperlane = (hyperlane.data ?? []).map(
9210
+ (t) => rowFromHyperlane(t, route, hyperlaneToken)
9211
+ );
9212
+ const fromOrders = orders.flatMap((order) => {
9213
+ const delivered = tokens.find(
9214
+ (t) => t.route !== "swap" && t.l2Address?.toLowerCase() === order.tokenOut.toLowerCase()
9215
+ );
9216
+ return rowFromOrder(order, delivered) ?? [];
9217
+ });
8798
9218
  const listed = new Set(
8799
- [...fromIndexer, ...fromHyperlane].map((row) => row.sentTxHash.toLowerCase())
9219
+ [...fromIndexer, ...fromHyperlane, ...fromOrders].map((row) => row.sentTxHash.toLowerCase())
8800
9220
  );
8801
9221
  const fromWidget = wallet ? (sent ?? []).filter(
8802
9222
  (deposit) => deposit.sender.toLowerCase() === wallet.toLowerCase() && !listed.has(deposit.sentTxHash.toLowerCase())
8803
9223
  ).map(rowFromSentDeposit) : [];
8804
- return sortRows([...fromIndexer, ...fromHyperlane, ...fromWidget]);
8805
- }, [history.data, hyperlane.data, hyperlaneToken, route, sent, wallet]);
9224
+ return sortRows([...fromIndexer, ...fromHyperlane, ...fromOrders, ...fromWidget]);
9225
+ }, [history.data, hyperlane.data, hyperlaneToken, orders, route, sent, tokens, wallet]);
8806
9226
  const inFlight = rows.some(rowInFlight);
8807
9227
  useEffect(() => setPoll(inFlight), [inFlight]);
8808
9228
  return {
@@ -8966,10 +9386,15 @@ function formatActivityUsd(amount, usdPrice) {
8966
9386
  }
8967
9387
  function formatBridgeRowUsd(row, priceOf) {
8968
9388
  if (row.amount === void 0 || row.decimals === void 0) return void 0;
8969
- return formatActivityUsd(formatUnits(row.amount, row.decimals), priceOf({ symbol: row.tokenSymbol }));
9389
+ return formatActivityUsd(
9390
+ formatUnits(row.amount, row.decimals),
9391
+ priceOf({ symbol: row.tokenSymbol })
9392
+ );
8970
9393
  }
8971
9394
  function formatFluentMovementsUsd(movements, priceOf) {
8972
- const figures = movements.map((movement) => formatActivityUsd(movement.amount, priceOf(movement)));
9395
+ const figures = movements.map(
9396
+ (movement) => formatActivityUsd(movement.amount, priceOf(movement))
9397
+ );
8973
9398
  if (figures.every((figure) => figure === void 0)) return void 0;
8974
9399
  return figures.map((figure) => figure ?? "\u2014").join(", ");
8975
9400
  }
@@ -9071,10 +9496,7 @@ function Notice({ title, description }) {
9071
9496
  /* @__PURE__ */ jsx("span", { className: "text-xs opacity-50", children: description })
9072
9497
  ] });
9073
9498
  }
9074
- function PendingActivityRow({
9075
- transfer,
9076
- usd
9077
- }) {
9499
+ function PendingActivityRow({ transfer, usd }) {
9078
9500
  return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("div", { className: "flex w-full items-center gap-3 rounded-xl p-2.5 text-left", children: [
9079
9501
  /* @__PURE__ */ jsx(ActivityTokenTile, { tokenSymbol: transfer.symbol, badge: "l2_to_l1", surface: "row" }),
9080
9502
  /* @__PURE__ */ jsxs("span", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
@@ -9296,18 +9718,20 @@ function WalletMenuActivityList({
9296
9718
  transfer.id
9297
9719
  )
9298
9720
  }));
9299
- list.push(...entries.map((entry) => ({
9300
- id: `fluent:${entry.id}`,
9301
- at: entry.timestamp,
9302
- node: /* @__PURE__ */ jsx(
9303
- FluentActivityRow,
9304
- {
9305
- entry,
9306
- priceOf,
9307
- onOpen: () => onOpenFluentEntry(entry)
9308
- }
9309
- )
9310
- })));
9721
+ list.push(
9722
+ ...entries.map((entry) => ({
9723
+ id: `fluent:${entry.id}`,
9724
+ at: entry.timestamp,
9725
+ node: /* @__PURE__ */ jsx(
9726
+ FluentActivityRow,
9727
+ {
9728
+ entry,
9729
+ priceOf,
9730
+ onOpen: () => onOpenFluentEntry(entry)
9731
+ }
9732
+ )
9733
+ }))
9734
+ );
9311
9735
  const swapInFlight = depositSwap && depositSwap.phase !== "idle" && !(depositSwap.phase === "settled" && listedHashes.has(depositSwap.hash.toLowerCase())) ? depositSwap : void 0;
9312
9736
  const swapDeposit = swapInFlight ? "deposit" in swapInFlight ? swapInFlight.deposit : swapInFlight.leg.deposit : void 0;
9313
9737
  if (swapInFlight) {
@@ -9346,7 +9770,18 @@ function WalletMenuActivityList({
9346
9770
  }
9347
9771
  }
9348
9772
  return list.sort((a, b) => b.at - a.at);
9349
- }, [bridge?.address, bridge?.rows, depositSwap, entries, fluent3.pending, listedHashes, onOpenBridgeRow, onOpenDepositSwap, onOpenFluentEntry, priceOf]);
9773
+ }, [
9774
+ bridge?.address,
9775
+ bridge?.rows,
9776
+ depositSwap,
9777
+ entries,
9778
+ fluent3.pending,
9779
+ listedHashes,
9780
+ onOpenBridgeRow,
9781
+ onOpenDepositSwap,
9782
+ onOpenFluentEntry,
9783
+ priceOf
9784
+ ]);
9350
9785
  const loading2 = fluent3.busy || Boolean(bridge?.pending);
9351
9786
  const hasMore = fluent3.hasMore || Boolean(bridge?.hasNextPage);
9352
9787
  const shapeKey = (fluent3.address ?? walletAddress)?.toLowerCase();
@@ -9412,9 +9847,13 @@ function ActivityWithBridge({
9412
9847
  }
9413
9848
  function WalletMenuActivity({
9414
9849
  network,
9850
+ orderDepositUrl,
9415
9851
  ...props
9416
9852
  }) {
9417
- const route = useMemo(() => getFluentBridgeRoute(network), [network]);
9853
+ const route = useMemo(
9854
+ () => getFluentBridgeRoute(network, orderDepositUrl),
9855
+ [network, orderDepositUrl]
9856
+ );
9418
9857
  const hasWagmi = useContext(WagmiContext) !== void 0;
9419
9858
  if (route && hasWagmi) return /* @__PURE__ */ jsx(ActivityWithBridge, { route, network, ...props });
9420
9859
  return /* @__PURE__ */ jsx(WalletMenuActivityList, { ...props, bridge: null });
@@ -9712,7 +10151,10 @@ function DepositSwapActivityDetail({
9712
10151
  /* @__PURE__ */ jsxs(
9713
10152
  "dl",
9714
10153
  {
9715
- className: cn("flex flex-col gap-5 text-sm bg-white/5 p-4 rounded-2xl", riseIn("delay-300")),
10154
+ className: cn(
10155
+ "flex flex-col gap-5 text-sm bg-white/5 p-4 rounded-2xl",
10156
+ riseIn("delay-300")
10157
+ ),
9716
10158
  children: [
9717
10159
  /* @__PURE__ */ jsx(DetailRow, { label: "Deposit", children: /* @__PURE__ */ jsx(StepStatusCell, { status: depositStatus(state) }) }),
9718
10160
  /* @__PURE__ */ jsx(DetailRow, { label: "Swap", children: /* @__PURE__ */ jsx(StepStatusCell, { status: swapStatus(state) }) }),
@@ -9794,7 +10236,10 @@ function SentTransferDetail({
9794
10236
  /* @__PURE__ */ jsxs(
9795
10237
  "dl",
9796
10238
  {
9797
- className: cn("flex flex-col gap-5 text-sm bg-white/5 p-4 rounded-2xl", riseIn("delay-300")),
10239
+ className: cn(
10240
+ "flex flex-col gap-5 text-sm bg-white/5 p-4 rounded-2xl",
10241
+ riseIn("delay-300")
10242
+ ),
9798
10243
  children: [
9799
10244
  /* @__PURE__ */ jsx(DetailRow, { label: "Status", children: /* @__PURE__ */ jsx(
9800
10245
  "span",
@@ -9824,7 +10269,10 @@ function SentTransferDetail({
9824
10269
  transfer.hash ? /* @__PURE__ */ jsx(
9825
10270
  "dl",
9826
10271
  {
9827
- className: cn("flex flex-col gap-5 text-sm bg-white/5 p-4 rounded-2xl", riseIn("delay-100")),
10272
+ className: cn(
10273
+ "flex flex-col gap-5 text-sm bg-white/5 p-4 rounded-2xl",
10274
+ riseIn("delay-100")
10275
+ ),
9828
10276
  children: /* @__PURE__ */ jsx(DetailRow, { label: "Transaction ID", children: /* @__PURE__ */ jsx(
9829
10277
  HashMenu,
9830
10278
  {
@@ -9851,7 +10299,7 @@ function createFluentRpcTransport(chain) {
9851
10299
  retryDelay: FLUENT_RPC_RETRY_DELAY_MS
9852
10300
  })
9853
10301
  ),
9854
- // Each http() already retries; let fallback only rank/fail over between URLs.
10302
+ // Each `http()` retries on its own; `fallback` only moves on to the next URL.
9855
10303
  { retryCount: 0 }
9856
10304
  );
9857
10305
  }
@@ -9941,9 +10389,7 @@ function getFluentZeroDevErc20PaymasterTokens(network = "testnet") {
9941
10389
  }
9942
10390
  function createFluentZeroDevRpcUrl(params = {}) {
9943
10391
  const chainId = params.chainId ?? fluentTestnet.id;
9944
- const projectId = params.projectId ?? getFluentZeroDevProjectId(
9945
- getFluentWidgetNetworkForChainId(chainId)
9946
- );
10392
+ const projectId = params.projectId ?? getFluentZeroDevProjectId(getFluentWidgetNetworkForChainId(chainId));
9947
10393
  const baseUrl = `https://rpc.zerodev.app/api/v3/${projectId}/chain/${chainId}`;
9948
10394
  return params.selfFunded ? `${baseUrl}?${FLUENT_ZERODEV_ERC20_PAYMASTER_QUERY}` : baseUrl;
9949
10395
  }
@@ -9992,10 +10438,7 @@ function createFluentZeroDevErc20PaymasterClient(params = {}) {
9992
10438
  }
9993
10439
  function createFluentZeroDevErc20Paymaster(params) {
9994
10440
  const chain = params.chain ?? fluentTestnet;
9995
- const gasToken = resolveFluentZeroDevErc20PaymasterToken(
9996
- params.gasToken,
9997
- params.network
9998
- );
10441
+ const gasToken = resolveFluentZeroDevErc20PaymasterToken(params.gasToken, params.network);
9999
10442
  const paymasterClient = params.paymasterClient ?? createFluentZeroDevErc20PaymasterClient({
10000
10443
  chain,
10001
10444
  paymasterRpcUrl: params.paymasterRpcUrl
@@ -10210,7 +10653,11 @@ function validateBridgeAmount({
10210
10653
  };
10211
10654
  }
10212
10655
  if (wei > spendable) {
10213
- return { wei, error: `Maximum ${formatUnits(spendable, decimals)} ${symbol}`, incomplete: false };
10656
+ return {
10657
+ wei,
10658
+ error: `Maximum ${formatUnits(spendable, decimals)} ${symbol}`,
10659
+ incomplete: false
10660
+ };
10214
10661
  }
10215
10662
  }
10216
10663
  return { wei, incomplete: false };
@@ -10234,7 +10681,7 @@ function TokenChainIcon({
10234
10681
  {
10235
10682
  className: `flex items-center justify-center overflow-hidden rounded-full ${large ? "size-10" : "size-7"} ${visual?.bgClassName ?? "bg-foreground/10"}`,
10236
10683
  children: icon ? /* @__PURE__ */ jsx(Icon, { name: icon, className: onBrandTile ? `${glyph} text-white` : glyph }) : logoURI ? (
10237
- // An <img>, never inlined: the URL is an integrator's or a stranger's.
10684
+ // An <img>, never inlined: the URL is an App's or a stranger's.
10238
10685
  /* @__PURE__ */ jsx("img", { src: logoURI, alt: "", "aria-hidden": "true", className: "size-full object-cover" })
10239
10686
  ) : /* @__PURE__ */ jsx("span", { className: "text-xs font-medium", children: symbol.slice(0, 1) })
10240
10687
  }
@@ -10293,12 +10740,9 @@ function BridgeTokenPicker({
10293
10740
  [options, query]
10294
10741
  );
10295
10742
  return (
10296
- // `fixed` rather than in the form's flow, so the view covers the drawer's own
10297
- // "Swap" header instead of stacking a second way back under it. The drawer
10298
- // panel is transformed, which makes it the containing block: `inset-0` is the
10299
- // panel, not the viewport, wherever the Bridge page is mounted in a drawer.
10300
- // The radius is the panel's less its 1px border, which `inset-0` sits inside,
10301
- // so the corners follow the panel's instead of squaring off over them.
10743
+ // `fixed` so the view covers the drawer's own header: the drawer panel is transformed, which
10744
+ // makes `inset-0` the panel rather than the viewport. The radius is the panel's less the 1px
10745
+ // border `inset-0` sits inside, so the corners follow the panel's.
10302
10746
  /* @__PURE__ */ jsxs(
10303
10747
  "div",
10304
10748
  {
@@ -10385,7 +10829,10 @@ function BridgeTokenPicker({
10385
10829
  )
10386
10830
  );
10387
10831
  }
10388
- function TokenGlyph({ token, className = "size-7" }) {
10832
+ function TokenGlyph({
10833
+ token,
10834
+ className = "size-7"
10835
+ }) {
10389
10836
  const visual = token && isFluentDefaultToken(token) ? VISUAL_BY_DEFAULT_SYMBOL[token.symbol] : void 0;
10390
10837
  return /* @__PURE__ */ jsx(
10391
10838
  "span",
@@ -10398,7 +10845,7 @@ function TokenGlyph({ token, className = "size-7" }) {
10398
10845
  className: visual.iconClassName.includes("text-white") ? "size-4 text-white" : "size-4"
10399
10846
  }
10400
10847
  ) : token?.logoURI ? (
10401
- // An <img>, never inlined: the URL is an integrator's or a stranger's.
10848
+ // An <img>, never inlined: the URL may be an App's or a stranger's.
10402
10849
  /* @__PURE__ */ jsx("img", { src: token.logoURI, alt: "", "aria-hidden": "true", className: "size-full object-cover" })
10403
10850
  ) : /* @__PURE__ */ jsx("span", { className: "text-xs font-medium", children: token?.symbol.slice(0, 1) ?? "?" })
10404
10851
  }
@@ -10676,7 +11123,13 @@ function SendTokenForm({
10676
11123
  size: "sm",
10677
11124
  className: "!h-auto shrink-0 gap-1.5 border-0 bg-transparent p-0 text-sm text-foreground shadow-none dark:bg-transparent dark:hover:bg-transparent",
10678
11125
  children: [
10679
- /* @__PURE__ */ jsx(TokenGlyph, { token: feeToken, className: "size-4 [&>svg]:size-2.5 [&>span]:text-[10px]" }),
11126
+ /* @__PURE__ */ jsx(
11127
+ TokenGlyph,
11128
+ {
11129
+ token: feeToken,
11130
+ className: "size-4 [&>svg]:size-2.5 [&>span]:text-[10px]"
11131
+ }
11132
+ ),
10680
11133
  /* @__PURE__ */ jsx("span", { children: feeToken?.symbol ?? "No fee token" })
10681
11134
  ]
10682
11135
  }
@@ -10813,21 +11266,18 @@ function FieldGroup({ className, ...props }) {
10813
11266
  }
10814
11267
  );
10815
11268
  }
10816
- var fieldVariants = cva(
10817
- "group/field flex w-full gap-2 data-[invalid=true]:text-destructive",
10818
- {
10819
- variants: {
10820
- orientation: {
10821
- vertical: "flex-col *:w-full [&>.sr-only]:w-auto",
10822
- horizontal: "flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",
10823
- responsive: "flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:*:data-[slot=field-label]:flex-auto [&>.sr-only]:w-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
10824
- }
10825
- },
10826
- defaultVariants: {
10827
- orientation: "vertical"
11269
+ var fieldVariants = cva("group/field flex w-full gap-2 data-[invalid=true]:text-destructive", {
11270
+ variants: {
11271
+ orientation: {
11272
+ vertical: "flex-col *:w-full [&>.sr-only]:w-auto",
11273
+ horizontal: "flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",
11274
+ responsive: "flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:*:data-[slot=field-label]:flex-auto [&>.sr-only]:w-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
10828
11275
  }
11276
+ },
11277
+ defaultVariants: {
11278
+ orientation: "vertical"
10829
11279
  }
10830
- );
11280
+ });
10831
11281
  function Field({
10832
11282
  className,
10833
11283
  orientation = "vertical",
@@ -10849,18 +11299,12 @@ function FieldContent({ className, ...props }) {
10849
11299
  "div",
10850
11300
  {
10851
11301
  "data-slot": "field-content",
10852
- className: cn(
10853
- "group/field-content flex flex-1 flex-col gap-0.5 leading-snug",
10854
- className
10855
- ),
11302
+ className: cn("group/field-content flex flex-1 flex-col gap-0.5 leading-snug", className),
10856
11303
  ...props
10857
11304
  }
10858
11305
  );
10859
11306
  }
10860
- function FieldLabel({
10861
- className,
10862
- ...props
10863
- }) {
11307
+ function FieldLabel({ className, ...props }) {
10864
11308
  return /* @__PURE__ */ jsx(
10865
11309
  Label,
10866
11310
  {
@@ -10927,20 +11371,13 @@ function Switch({
10927
11371
  }
10928
11372
  );
10929
11373
  }
10930
- function Tabs({
10931
- className,
10932
- orientation = "horizontal",
10933
- ...props
10934
- }) {
11374
+ function Tabs({ className, orientation = "horizontal", ...props }) {
10935
11375
  return /* @__PURE__ */ jsx(
10936
11376
  Tabs$1.Root,
10937
11377
  {
10938
11378
  "data-slot": "tabs",
10939
11379
  "data-orientation": orientation,
10940
- className: cn(
10941
- "group/tabs flex gap-2 data-horizontal:flex-col",
10942
- className
10943
- ),
11380
+ className: cn("group/tabs flex gap-2 data-horizontal:flex-col", className),
10944
11381
  ...props
10945
11382
  }
10946
11383
  );
@@ -11180,10 +11617,7 @@ function createFluentUserTokenStore(options) {
11180
11617
  function useFluentUserTokens(options) {
11181
11618
  const { chain } = useFluentWidgetNetwork();
11182
11619
  const injectedStore = options?.store;
11183
- const store = useMemo(
11184
- () => injectedStore ?? createFluentUserTokenStore(),
11185
- [injectedStore]
11186
- );
11620
+ const store = useMemo(() => injectedStore ?? createFluentUserTokenStore(), [injectedStore]);
11187
11621
  const [tokens, setTokens] = useState([]);
11188
11622
  const loader = useMemo(
11189
11623
  () => createUserTokenListLoader({
@@ -11213,10 +11647,7 @@ function useFluentUserTokens(options) {
11213
11647
  var FLUENT_BALANCE_POLL_INTERVAL_MS = 1e4;
11214
11648
  function useFluentTokenBalances(params) {
11215
11649
  const { network, chain } = useFluentWidgetNetwork();
11216
- const defaultTokens = useMemo(
11217
- () => getFluentDefaultWidgetDisplayTokens(network),
11218
- [network]
11219
- );
11650
+ const defaultTokens = useMemo(() => getFluentDefaultWidgetDisplayTokens(network), [network]);
11220
11651
  const {
11221
11652
  tokens: userTokens,
11222
11653
  add: addUserToken,
@@ -11281,9 +11712,7 @@ function useFluentTokenBalances(params) {
11281
11712
  );
11282
11713
  useEffect(() => {
11283
11714
  setBalances([]);
11284
- setStatus(
11285
- params.accountAddress ? "Checking token balances" : "Connect a Fluent account"
11286
- );
11715
+ setStatus(params.accountAddress ? "Checking token balances" : "Connect a Fluent account");
11287
11716
  }, [params.accountAddress]);
11288
11717
  useEffect(() => {
11289
11718
  refresh();
@@ -11299,12 +11728,12 @@ function useFluentTokenBalances(params) {
11299
11728
  return () => clearInterval(timer);
11300
11729
  }, [pollIntervalMs, params.accountAddress, refresh]);
11301
11730
  return {
11302
- /** Balances for every display token, in display order. */
11731
+ /** Balances for every Display token, in display order. */
11303
11732
  balances,
11304
11733
  busy,
11305
- /** The resolved display-token list the balances correspond to. */
11734
+ /** The Display tokens the balances correspond to. */
11306
11735
  displayTokens,
11307
- /** The gas-capable subset, in paymaster priority order. */
11736
+ /** The Gas tokens among them, lowest `gasPriority` first. */
11308
11737
  gasTokens,
11309
11738
  refresh,
11310
11739
  status,
@@ -11772,10 +12201,7 @@ function useFluentTransactionHistory(params) {
11772
12201
  transactions.length,
11773
12202
  visibleCount
11774
12203
  ]);
11775
- const visible = useMemo(
11776
- () => transactions.slice(0, visibleCount),
11777
- [transactions, visibleCount]
11778
- );
12204
+ const visible = useMemo(() => transactions.slice(0, visibleCount), [transactions, visibleCount]);
11779
12205
  const hasMore = !error && (visibleCount < transactions.length || accumulated.loaded && !!accumulated.cursor);
11780
12206
  const loadMore = useCallback(() => {
11781
12207
  if (!hasMore) return;
@@ -11892,88 +12318,81 @@ function AddTokenForm({
11892
12318
  setAddError("This token could not be added.");
11893
12319
  }
11894
12320
  };
11895
- return /* @__PURE__ */ jsxs(
11896
- "div",
11897
- {
11898
- className: "flex flex-col gap-3 rounded-xl bg-white/5 p-3",
11899
- "aria-label": "Add a token",
11900
- children: [
12321
+ return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-3 rounded-xl bg-white/5 p-3", "aria-label": "Add a token", children: [
12322
+ /* @__PURE__ */ jsxs("span", { className: "text-xs text-muted-foreground", children: [
12323
+ "Paste the token's contract address on ",
12324
+ chain.name,
12325
+ ". Its name and decimals are read from the contract."
12326
+ ] }),
12327
+ /* @__PURE__ */ jsx(
12328
+ "input",
12329
+ {
12330
+ "aria-label": "Token contract address",
12331
+ className: "w-full rounded-lg bg-black/30 px-2.5 py-2 font-mono text-xs leading-5 ring-1 ring-foreground/10 outline-none placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-foreground/30",
12332
+ placeholder: "0x\u2026",
12333
+ spellCheck: false,
12334
+ autoComplete: "off",
12335
+ autoFocus: true,
12336
+ value: address,
12337
+ onChange: (event) => {
12338
+ setAddError(null);
12339
+ setAddress(event.target.value);
12340
+ }
12341
+ }
12342
+ ),
12343
+ lookup.phase === "loading" ? /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: "Reading the contract\u2026" }) : null,
12344
+ lookup.phase === "rejected" ? /* @__PURE__ */ jsx("p", { className: "text-xs text-destructive", children: lookup.message }) : null,
12345
+ token ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5 rounded-lg bg-black/30 p-2.5", children: [
12346
+ /* @__PURE__ */ jsxs("div", { className: "flex items-baseline justify-between gap-2", children: [
12347
+ /* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: token.symbol }),
11901
12348
  /* @__PURE__ */ jsxs("span", { className: "text-xs text-muted-foreground", children: [
11902
- "Paste the token's contract address on ",
11903
- chain.name,
11904
- ". Its name and decimals are read from the contract."
11905
- ] }),
11906
- /* @__PURE__ */ jsx(
11907
- "input",
11908
- {
11909
- "aria-label": "Token contract address",
11910
- className: "w-full rounded-lg bg-black/30 px-2.5 py-2 font-mono text-xs leading-5 ring-1 ring-foreground/10 outline-none placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-foreground/30",
11911
- placeholder: "0x\u2026",
11912
- spellCheck: false,
11913
- autoComplete: "off",
11914
- autoFocus: true,
11915
- value: address,
11916
- onChange: (event) => {
11917
- setAddError(null);
11918
- setAddress(event.target.value);
11919
- }
11920
- }
11921
- ),
11922
- lookup.phase === "loading" ? /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: "Reading the contract\u2026" }) : null,
11923
- lookup.phase === "rejected" ? /* @__PURE__ */ jsx("p", { className: "text-xs text-destructive", children: lookup.message }) : null,
11924
- token ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5 rounded-lg bg-black/30 p-2.5", children: [
11925
- /* @__PURE__ */ jsxs("div", { className: "flex items-baseline justify-between gap-2", children: [
11926
- /* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: token.symbol }),
11927
- /* @__PURE__ */ jsxs("span", { className: "text-xs text-muted-foreground", children: [
11928
- token.decimals,
11929
- " decimals"
11930
- ] })
11931
- ] }),
11932
- /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: token.name }),
11933
- /* @__PURE__ */ jsx("span", { className: "font-mono text-[11px] leading-4 break-all text-muted-foreground", children: token.address })
11934
- ] }) : null,
11935
- alreadyListed ? /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: "This token is already on your list." }) : null,
11936
- collides && !alreadyListed ? /* @__PURE__ */ jsxs("div", { className: "flex gap-2 rounded-lg bg-destructive/10 p-2.5 text-xs text-destructive", children: [
11937
- /* @__PURE__ */ jsx(AlertTriangle, { className: "mt-0.5 size-4 shrink-0" }),
11938
- /* @__PURE__ */ jsxs("span", { children: [
11939
- "A token called ",
11940
- token?.symbol,
11941
- " is already on your list. Check the address above matches the token you mean \u2014 anyone can deploy a token using someone else's symbol."
11942
- ] })
11943
- ] }) : null,
11944
- addError ? /* @__PURE__ */ jsx("p", { className: "text-xs text-destructive", children: addError }) : null,
11945
- /* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-2", children: [
11946
- /* @__PURE__ */ jsxs(
11947
- Button,
11948
- {
11949
- size: "sm",
11950
- variant: "ghost",
11951
- className: "rounded-full px-3",
11952
- disabled: adding,
11953
- onClick: onClose,
11954
- children: [
11955
- /* @__PURE__ */ jsx(X, { className: "size-4 shrink-0", "aria-hidden": true }),
11956
- "Cancel"
11957
- ]
11958
- }
11959
- ),
11960
- /* @__PURE__ */ jsxs(
11961
- Button,
11962
- {
11963
- size: "sm",
11964
- className: "rounded-full px-3",
11965
- disabled: !token || alreadyListed || adding,
11966
- onClick: () => void handleAdd(),
11967
- children: [
11968
- adding ? /* @__PURE__ */ jsx(Loader2, { className: "size-4 shrink-0 animate-spin", "aria-hidden": true }) : /* @__PURE__ */ jsx(Plus, { className: "size-4 shrink-0", "aria-hidden": true }),
11969
- adding ? "Adding\u2026" : collides && !alreadyListed ? "Add anyway" : "Add token"
11970
- ]
11971
- }
11972
- )
12349
+ token.decimals,
12350
+ " decimals"
11973
12351
  ] })
11974
- ]
11975
- }
11976
- );
12352
+ ] }),
12353
+ /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: token.name }),
12354
+ /* @__PURE__ */ jsx("span", { className: "font-mono text-[11px] leading-4 break-all text-muted-foreground", children: token.address })
12355
+ ] }) : null,
12356
+ alreadyListed ? /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: "This token is already on your list." }) : null,
12357
+ collides && !alreadyListed ? /* @__PURE__ */ jsxs("div", { className: "flex gap-2 rounded-lg bg-destructive/10 p-2.5 text-xs text-destructive", children: [
12358
+ /* @__PURE__ */ jsx(AlertTriangle, { className: "mt-0.5 size-4 shrink-0" }),
12359
+ /* @__PURE__ */ jsxs("span", { children: [
12360
+ "A token called ",
12361
+ token?.symbol,
12362
+ " is already on your list. Check the address above matches the token you mean \u2014 anyone can deploy a token using someone else's symbol."
12363
+ ] })
12364
+ ] }) : null,
12365
+ addError ? /* @__PURE__ */ jsx("p", { className: "text-xs text-destructive", children: addError }) : null,
12366
+ /* @__PURE__ */ jsxs("div", { className: "flex justify-end gap-2", children: [
12367
+ /* @__PURE__ */ jsxs(
12368
+ Button,
12369
+ {
12370
+ size: "sm",
12371
+ variant: "ghost",
12372
+ className: "rounded-full px-3",
12373
+ disabled: adding,
12374
+ onClick: onClose,
12375
+ children: [
12376
+ /* @__PURE__ */ jsx(X, { className: "size-4 shrink-0", "aria-hidden": true }),
12377
+ "Cancel"
12378
+ ]
12379
+ }
12380
+ ),
12381
+ /* @__PURE__ */ jsxs(
12382
+ Button,
12383
+ {
12384
+ size: "sm",
12385
+ className: "rounded-full px-3",
12386
+ disabled: !token || alreadyListed || adding,
12387
+ onClick: () => void handleAdd(),
12388
+ children: [
12389
+ adding ? /* @__PURE__ */ jsx(Loader2, { className: "size-4 shrink-0 animate-spin", "aria-hidden": true }) : /* @__PURE__ */ jsx(Plus, { className: "size-4 shrink-0", "aria-hidden": true }),
12390
+ adding ? "Adding\u2026" : collides && !alreadyListed ? "Add anyway" : "Add token"
12391
+ ]
12392
+ }
12393
+ )
12394
+ ] })
12395
+ ] });
11977
12396
  }
11978
12397
  function WalletMenuTokenList({
11979
12398
  accountAddress,
@@ -12025,153 +12444,146 @@ function WalletMenuTokenList({
12025
12444
  const formatted = balance?.status === "ready" ? formatFluentGasTokenBalance(balance, fractionDigits) ?? (balance.formatted ? formatFluentLocaleAmount(balance.formatted, fractionDigits) : null) : null;
12026
12445
  const usdValueLabel = formatTokenUsdValue(balance, usdPrices[identity]);
12027
12446
  const exactBalance = balance?.status === "ready" && balance.formatted?.includes(".") ? balance.formatted : null;
12028
- return /* @__PURE__ */ jsxs(
12029
- "div",
12030
- {
12031
- className: "flex w-full items-center gap-3 rounded-xl p-2.5",
12032
- children: [
12033
- /* @__PURE__ */ jsxs("span", { className: "relative shrink-0", children: [
12447
+ return /* @__PURE__ */ jsxs("div", { className: "flex w-full items-center gap-3 rounded-xl p-2.5", children: [
12448
+ /* @__PURE__ */ jsxs("span", { className: "relative shrink-0", children: [
12449
+ /* @__PURE__ */ jsx(
12450
+ "span",
12451
+ {
12452
+ className: `flex size-10 shrink-0 items-center justify-center overflow-hidden rounded-full ${visual?.bgClassName ?? "bg-foreground/10"}`,
12453
+ children: visual ? /* @__PURE__ */ jsx(Icon, { name: visual.icon, className: visual.iconClassName }) : token.logoURI ? (
12454
+ // Rendered as an <img>, never inlined: a logo URL is data from an App or
12455
+ // a stranger's contract, and inlining SVG from either would execute their
12456
+ // markup in the widget.
12457
+ /* @__PURE__ */ jsx(
12458
+ "img",
12459
+ {
12460
+ src: token.logoURI,
12461
+ alt: "",
12462
+ "aria-hidden": "true",
12463
+ loading: "lazy",
12464
+ decoding: "async",
12465
+ className: "size-10 object-contain"
12466
+ }
12467
+ )
12468
+ ) : /* @__PURE__ */ jsx("span", { className: "text-xs font-medium", children: symbol.slice(0, 1) })
12469
+ }
12470
+ ),
12471
+ /* @__PURE__ */ jsx(ChainBadge, { chain: "l2_to_l1", surface: "row" })
12472
+ ] }),
12473
+ /* @__PURE__ */ jsxs("span", { className: "flex min-w-0 flex-1 flex-col items-start gap-0.5", children: [
12474
+ /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1 text-sm font-medium leading-4", children: [
12475
+ symbol,
12476
+ active && /* @__PURE__ */ jsx("span", { className: "rounded-md bg-foreground/15 px-1.5 leading-[18px] text-[10px] font-normal text-muted-foreground -my-px", children: "Gas" }),
12477
+ token.source === "user" && /* @__PURE__ */ jsx("span", { className: "rounded-md bg-foreground/15 px-1.5 leading-[18px] text-[10px] font-normal text-muted-foreground -my-px", children: "Added by you" }),
12478
+ collidingSymbols.has(symbol.toLowerCase()) && /* @__PURE__ */ jsxs(Tooltip, { children: [
12034
12479
  /* @__PURE__ */ jsx(
12035
- "span",
12480
+ TooltipTrigger,
12036
12481
  {
12037
- className: `flex size-10 shrink-0 items-center justify-center overflow-hidden rounded-full ${visual?.bgClassName ?? "bg-foreground/10"}`,
12038
- children: visual ? /* @__PURE__ */ jsx(Icon, { name: visual.icon, className: visual.iconClassName }) : token.logoURI ? (
12039
- // Rendered as an <img>, never inlined: a logo URL is data from
12040
- // an integrator or a stranger's contract, and inlining SVG
12041
- // from either would execute their markup in the widget.
12042
- /* @__PURE__ */ jsx(
12043
- "img",
12044
- {
12045
- src: token.logoURI,
12046
- alt: "",
12047
- "aria-hidden": "true",
12048
- loading: "lazy",
12049
- decoding: "async",
12050
- className: "size-10 object-contain"
12051
- }
12052
- )
12053
- ) : /* @__PURE__ */ jsx("span", { className: "text-xs font-medium", children: symbol.slice(0, 1) })
12482
+ tabIndex: 0,
12483
+ "aria-label": `More than one token on this list calls itself ${symbol}`,
12484
+ render: /* @__PURE__ */ jsx("span", { className: "cursor-default rounded-sm" }),
12485
+ children: /* @__PURE__ */ jsx(AlertTriangle, { className: "size-3.5 text-destructive" })
12054
12486
  }
12055
12487
  ),
12056
- /* @__PURE__ */ jsx(ChainBadge, { chain: "l2_to_l1", surface: "row" })
12057
- ] }),
12058
- /* @__PURE__ */ jsxs("span", { className: "flex min-w-0 flex-1 flex-col items-start gap-0.5", children: [
12059
- /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1 text-sm font-medium leading-4", children: [
12488
+ /* @__PURE__ */ jsxs(TooltipContent, { children: [
12489
+ "More than one token here calls itself ",
12060
12490
  symbol,
12061
- active && /* @__PURE__ */ jsx("span", { className: "rounded-md bg-foreground/15 px-1.5 leading-[18px] text-[10px] font-normal text-muted-foreground -my-px", children: "Gas" }),
12062
- token.source === "user" && /* @__PURE__ */ jsx("span", { className: "rounded-md bg-foreground/15 px-1.5 leading-[18px] text-[10px] font-normal text-muted-foreground -my-px", children: "Added by you" }),
12063
- collidingSymbols.has(symbol.toLowerCase()) && /* @__PURE__ */ jsxs(Tooltip, { children: [
12064
- /* @__PURE__ */ jsx(
12065
- TooltipTrigger,
12066
- {
12067
- tabIndex: 0,
12068
- "aria-label": `More than one token on this list calls itself ${symbol}`,
12069
- render: /* @__PURE__ */ jsx("span", { className: "cursor-default rounded-sm" }),
12070
- children: /* @__PURE__ */ jsx(AlertTriangle, { className: "size-3.5 text-destructive" })
12071
- }
12072
- ),
12073
- /* @__PURE__ */ jsxs(TooltipContent, { children: [
12074
- "More than one token here calls itself ",
12075
- symbol,
12076
- ". Check the address."
12077
- ] })
12078
- ] })
12079
- ] }),
12080
- token.address ? /* @__PURE__ */ jsxs(
12081
- Select,
12082
- {
12083
- value: null,
12084
- onValueChange: (value) => {
12085
- if (value === "copy" && token.address) {
12086
- copyAddressToClipboard(token.address);
12087
- }
12088
- if (value === "remove" && token.address) {
12089
- void onRemoveUserToken?.({
12090
- chainId: token.chainId,
12091
- address: token.address
12092
- });
12093
- }
12094
- },
12095
- children: [
12096
- /* @__PURE__ */ jsx(
12097
- SelectTrigger,
12098
- {
12099
- "aria-label": `Token address actions for ${symbol}`,
12100
- className: "!h-auto max-w-full gap-0.5 border-0 bg-transparent p-0 text-sm leading-4 opacity-100 shadow-none hover:opacity-80 dark:bg-transparent dark:hover:bg-transparent [&_svg]:size-3 [&_svg]:opacity-0 hover:[&_svg]:opacity-70 aria-expanded:opacity-80 aria-expanded:[&_svg]:opacity-70",
12101
- children: /* @__PURE__ */ jsx("span", { className: "truncate", children: formatAddress(token.address) })
12102
- }
12103
- ),
12104
- /* @__PURE__ */ jsxs(SelectContent, { align: "start", alignItemWithTrigger: false, children: [
12105
- /* @__PURE__ */ jsxs(SelectItem, { value: "copy", children: [
12106
- /* @__PURE__ */ jsx(Copy, { className: "size-4" }),
12107
- "Copy address"
12108
- ] }),
12109
- token.source === "user" && onRemoveUserToken && !actionsDisabled ? /* @__PURE__ */ jsxs(SelectItem, { value: "remove", children: [
12110
- /* @__PURE__ */ jsx(Trash2, { className: "size-4" }),
12111
- "Remove token"
12112
- ] }) : null
12113
- ] })
12114
- ]
12115
- }
12116
- ) : /* @__PURE__ */ jsx("span", { className: "shrink-0 text-sm leading-4 text-muted-foreground", children: isFluentNativeToken(token) ? "Native" : "No address" })
12117
- ] }),
12118
- refreshing ? (
12119
- // A ghost of both lines while balances load or reload: the old
12120
- // figures would read as current, and a blank would read as zero.
12121
- /* @__PURE__ */ jsxs(
12122
- "span",
12123
- {
12124
- className: "flex flex-col items-end gap-0.5",
12125
- role: "status",
12126
- "aria-label": `Loading ${symbol} balance`,
12127
- children: [
12128
- /* @__PURE__ */ jsx("span", { className: "h-4 w-14 animate-pulse rounded-md bg-foreground/10" }),
12129
- /* @__PURE__ */ jsx("span", { className: "h-4 w-10 animate-pulse rounded-md bg-foreground/[0.06]" })
12130
- ]
12491
+ ". Check the address."
12492
+ ] })
12493
+ ] })
12494
+ ] }),
12495
+ token.address ? /* @__PURE__ */ jsxs(
12496
+ Select,
12497
+ {
12498
+ value: null,
12499
+ onValueChange: (value) => {
12500
+ if (value === "copy" && token.address) {
12501
+ copyAddressToClipboard(token.address);
12131
12502
  }
12132
- )
12133
- ) : /* @__PURE__ */ jsxs("span", { className: "flex flex-col items-end gap-0.5 tabular-nums", children: [
12134
- usdValueLabel ? /* @__PURE__ */ jsx("span", { className: "text-sm font-medium leading-4", children: usdValueLabel }) : null,
12135
- /* @__PURE__ */ jsx(
12136
- "span",
12137
- {
12138
- className: cn(
12139
- "text-sm leading-4",
12140
- usdValueLabel ? "text-muted-foreground" : "font-medium"
12141
- ),
12142
- children: exactBalance ? /* @__PURE__ */ jsxs(Tooltip, { children: [
12143
- /* @__PURE__ */ jsx(
12144
- TooltipTrigger,
12145
- {
12146
- tabIndex: 0,
12147
- "aria-label": `${symbol} balance: ${exactBalance}`,
12148
- render: /* @__PURE__ */ jsx("span", { className: "cursor-default rounded-sm" }),
12149
- children: renderBalanceLabel({
12150
- formatted,
12151
- unavailable,
12152
- failed,
12153
- hasAccount: Boolean(accountAddress)
12154
- })
12155
- }
12156
- ),
12157
- /* @__PURE__ */ jsxs(TooltipContent, { className: "tabular-nums break-all", children: [
12158
- exactBalance,
12159
- " ",
12160
- symbol
12161
- ] })
12162
- ] }) : renderBalanceLabel({
12163
- formatted,
12164
- unavailable,
12165
- failed,
12166
- hasAccount: Boolean(accountAddress)
12167
- })
12503
+ if (value === "remove" && token.address) {
12504
+ void onRemoveUserToken?.({
12505
+ chainId: token.chainId,
12506
+ address: token.address
12507
+ });
12168
12508
  }
12169
- )
12170
- ] })
12171
- ]
12172
- },
12173
- identity
12174
- );
12509
+ },
12510
+ children: [
12511
+ /* @__PURE__ */ jsx(
12512
+ SelectTrigger,
12513
+ {
12514
+ "aria-label": `Token address actions for ${symbol}`,
12515
+ className: "!h-auto max-w-full gap-0.5 border-0 bg-transparent p-0 text-sm leading-4 opacity-100 shadow-none hover:opacity-80 dark:bg-transparent dark:hover:bg-transparent [&_svg]:size-3 [&_svg]:opacity-0 hover:[&_svg]:opacity-70 aria-expanded:opacity-80 aria-expanded:[&_svg]:opacity-70",
12516
+ children: /* @__PURE__ */ jsx("span", { className: "truncate", children: formatAddress(token.address) })
12517
+ }
12518
+ ),
12519
+ /* @__PURE__ */ jsxs(SelectContent, { align: "start", alignItemWithTrigger: false, children: [
12520
+ /* @__PURE__ */ jsxs(SelectItem, { value: "copy", children: [
12521
+ /* @__PURE__ */ jsx(Copy, { className: "size-4" }),
12522
+ "Copy address"
12523
+ ] }),
12524
+ token.source === "user" && onRemoveUserToken && !actionsDisabled ? /* @__PURE__ */ jsxs(SelectItem, { value: "remove", children: [
12525
+ /* @__PURE__ */ jsx(Trash2, { className: "size-4" }),
12526
+ "Remove token"
12527
+ ] }) : null
12528
+ ] })
12529
+ ]
12530
+ }
12531
+ ) : /* @__PURE__ */ jsx("span", { className: "shrink-0 text-sm leading-4 text-muted-foreground", children: isFluentNativeToken(token) ? "Native" : "No address" })
12532
+ ] }),
12533
+ refreshing ? (
12534
+ // A ghost of both lines while balances load or reload: the old
12535
+ // figures would read as current, and a blank would read as zero.
12536
+ /* @__PURE__ */ jsxs(
12537
+ "span",
12538
+ {
12539
+ className: "flex flex-col items-end gap-0.5",
12540
+ role: "status",
12541
+ "aria-label": `Loading ${symbol} balance`,
12542
+ children: [
12543
+ /* @__PURE__ */ jsx("span", { className: "h-4 w-14 animate-pulse rounded-md bg-foreground/10" }),
12544
+ /* @__PURE__ */ jsx("span", { className: "h-4 w-10 animate-pulse rounded-md bg-foreground/[0.06]" })
12545
+ ]
12546
+ }
12547
+ )
12548
+ ) : /* @__PURE__ */ jsxs("span", { className: "flex flex-col items-end gap-0.5 tabular-nums", children: [
12549
+ usdValueLabel ? /* @__PURE__ */ jsx("span", { className: "text-sm font-medium leading-4", children: usdValueLabel }) : null,
12550
+ /* @__PURE__ */ jsx(
12551
+ "span",
12552
+ {
12553
+ className: cn(
12554
+ "text-sm leading-4",
12555
+ usdValueLabel ? "text-muted-foreground" : "font-medium"
12556
+ ),
12557
+ children: exactBalance ? /* @__PURE__ */ jsxs(Tooltip, { children: [
12558
+ /* @__PURE__ */ jsx(
12559
+ TooltipTrigger,
12560
+ {
12561
+ tabIndex: 0,
12562
+ "aria-label": `${symbol} balance: ${exactBalance}`,
12563
+ render: /* @__PURE__ */ jsx("span", { className: "cursor-default rounded-sm" }),
12564
+ children: renderBalanceLabel({
12565
+ formatted,
12566
+ unavailable,
12567
+ failed,
12568
+ hasAccount: Boolean(accountAddress)
12569
+ })
12570
+ }
12571
+ ),
12572
+ /* @__PURE__ */ jsxs(TooltipContent, { className: "tabular-nums break-all", children: [
12573
+ exactBalance,
12574
+ " ",
12575
+ symbol
12576
+ ] })
12577
+ ] }) : renderBalanceLabel({
12578
+ formatted,
12579
+ unavailable,
12580
+ failed,
12581
+ hasAccount: Boolean(accountAddress)
12582
+ })
12583
+ }
12584
+ )
12585
+ ] })
12586
+ ] }, identity);
12175
12587
  }),
12176
12588
  onAddUserToken && !addOpen ? /* @__PURE__ */ jsxs(
12177
12589
  "button",
@@ -12518,10 +12930,9 @@ function WalletMenuActionCard({
12518
12930
  tokens,
12519
12931
  revisionCounter: balanceRevisionCounter,
12520
12932
  userTokenStore,
12521
- // The account drawer unmounts its content when it closes, so this card is
12522
- // mounted exactly while the wallet menu is open: the mount reads once for
12523
- // the opening, and the schedule catches transfers that arrive from outside
12524
- // the widget while it stays open.
12933
+ // The account drawer unmounts its content when it closes, so this card is mounted only
12934
+ // while the wallet menu is open: the mount reads once for the opening, and the schedule
12935
+ // catches transfers that arrive from outside the widget while it stays open.
12525
12936
  pollIntervalMs: FLUENT_BALANCE_POLL_INTERVAL_MS
12526
12937
  });
12527
12938
  const { prices, pricesYesterday, busy: pricesBusy } = useFluentTokenUsdPrices(displayTokens);
@@ -12536,7 +12947,7 @@ function WalletMenuActionCard({
12536
12947
  } = useFluentTransactionHistory({
12537
12948
  accountAddress,
12538
12949
  // The same Display tokens the token list renders, so both screens answer
12539
- // for one set of tokens — including the ones this person added by hand.
12950
+ // for one set of tokens, User tokens included.
12540
12951
  tokens: displayTokens,
12541
12952
  enabled: tab === "home" && homePanel === "activity",
12542
12953
  revisionCounter: (balanceRevisionCounter ?? 0) + historyRevision
@@ -12576,7 +12987,7 @@ function WalletMenuActionCard({
12576
12987
  const portfolioUnavailable = Boolean(accountAddress) && !portfolioLoading && hasReadyBalances && portfolioTotal === null;
12577
12988
  const statusLine = settingsError ?? actionStatus;
12578
12989
  useEffect(() => {
12579
- if (statusLine) console.error("[FluentWidget]", statusLine);
12990
+ if (statusLine) debugError("[FluentWidget]", statusLine);
12580
12991
  }, [statusLine]);
12581
12992
  if (tab === "settings") {
12582
12993
  return /* @__PURE__ */ jsxs("div", { className: "flex w-full flex-col gap-6", children: [
@@ -12873,18 +13284,10 @@ function WalletMenuActionCard({
12873
13284
  ] })
12874
13285
  }
12875
13286
  ),
12876
- /* @__PURE__ */ jsx(
12877
- Button,
12878
- {
12879
- variant: "secondary",
12880
- className: "h-16 w-full",
12881
- onClick: () => onTabChange("bridge"),
12882
- children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-1", children: [
12883
- /* @__PURE__ */ jsx(Icon, { name: "arrow-up-down-line", className: "size-4" }),
12884
- /* @__PURE__ */ jsx("span", { children: "Swap" })
12885
- ] })
12886
- }
12887
- )
13287
+ /* @__PURE__ */ jsx(Button, { variant: "secondary", className: "h-16 w-full", onClick: () => onTabChange("bridge"), children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-1", children: [
13288
+ /* @__PURE__ */ jsx(Icon, { name: "arrow-up-down-line", className: "size-4" }),
13289
+ /* @__PURE__ */ jsx("span", { children: "Swap" })
13290
+ ] }) })
12888
13291
  ] })
12889
13292
  ] }),
12890
13293
  /* @__PURE__ */ jsxs(Tabs, { value: homePanel, onValueChange: setHomePanel, className: "flex w-full flex-col", children: [
@@ -12931,6 +13334,7 @@ function WalletMenuActionCard({
12931
13334
  WalletMenuActivity,
12932
13335
  {
12933
13336
  network: resolvedConfig.network,
13337
+ orderDepositUrl: resolvedConfig.orderDepositUrl,
12934
13338
  fluent: {
12935
13339
  address: accountAddress,
12936
13340
  entries: transactions,
@@ -12995,7 +13399,13 @@ function WalletMenuActionCard({
12995
13399
  }
12996
13400
  }
12997
13401
  ) : null,
12998
- reputation.phase === "error" ? /* @__PURE__ */ jsx(ReputationNotice, { title: "Could not load reputation", description: reputation.message }) : null
13402
+ reputation.phase === "error" ? /* @__PURE__ */ jsx(
13403
+ ReputationNotice,
13404
+ {
13405
+ title: "Could not load reputation",
13406
+ description: reputation.message
13407
+ }
13408
+ ) : null
12999
13409
  ] }) : null
13000
13410
  ] })
13001
13411
  ] });
@@ -13482,6 +13892,205 @@ async function readFastPathFeeWei(client2, portal, destinationChainId) {
13482
13892
  throw error;
13483
13893
  }
13484
13894
  }
13895
+ var ORDER_DEPOSIT_MIN_TOKENS = "2";
13896
+ function getOrderDepositMinimum(decimals) {
13897
+ return parseUnits(ORDER_DEPOSIT_MIN_TOKENS, decimals);
13898
+ }
13899
+ function readOrderDepositApproval(payload) {
13900
+ try {
13901
+ const decoded = decodeFunctionData({ abi: erc20Abi, data: payload.data });
13902
+ if (decoded.functionName !== "approve") return void 0;
13903
+ const [spender, amount] = decoded.args;
13904
+ return { token: payload.to, spender, amount };
13905
+ } catch {
13906
+ return void 0;
13907
+ }
13908
+ }
13909
+ function hasAddressWord(data, address) {
13910
+ const wanted = padHex(address, { size: 32 }).slice(2).toLowerCase();
13911
+ const words = data.slice(10).toLowerCase();
13912
+ for (let offset = 0; offset + 64 <= words.length; offset += 64) {
13913
+ if (words.slice(offset, offset + 64) === wanted) return true;
13914
+ }
13915
+ return false;
13916
+ }
13917
+ function findOrderDepositQuoteFault({
13918
+ quote,
13919
+ sourceChainId,
13920
+ tokenIn,
13921
+ amountIn,
13922
+ recipient
13923
+ }) {
13924
+ if (quote.amountIn !== amountIn) return "it is for another amount";
13925
+ if (quote.amountOut <= 0n) return "it delivers nothing";
13926
+ if (quote.payloads.some((payload) => payload.chainId !== sourceChainId)) {
13927
+ return "it has a transaction on another chain";
13928
+ }
13929
+ if (quote.payloads.some((payload) => payload.value !== 0n)) return "it spends ETH";
13930
+ const order = quote.payloads[quote.payloads.length - 1];
13931
+ const approvals = quote.payloads.slice(0, -1);
13932
+ if (!order || approvals.length > 1) return "it is not an approval and an order";
13933
+ if (readOrderDepositApproval(order) || order.to.toLowerCase() === tokenIn.toLowerCase()) {
13934
+ return "its last transaction is not an order";
13935
+ }
13936
+ if (!hasAddressWord(order.data, recipient)) return "its order does not name the recipient";
13937
+ for (const payload of approvals) {
13938
+ const approval = readOrderDepositApproval(payload);
13939
+ if (!approval) return "its first transaction is not an approval";
13940
+ if (approval.token.toLowerCase() !== tokenIn.toLowerCase()) {
13941
+ return "it approves another token";
13942
+ }
13943
+ if (approval.amount > amountIn) return "it approves more than the amount sent";
13944
+ if (approval.spender.toLowerCase() !== order.to.toLowerCase()) {
13945
+ return "it approves a contract the order does not go to";
13946
+ }
13947
+ }
13948
+ return void 0;
13949
+ }
13950
+ async function sendOrderDeposit({
13951
+ quote,
13952
+ account,
13953
+ signer,
13954
+ onStep
13955
+ }) {
13956
+ const steps = [];
13957
+ for (const payload of quote.payloads) {
13958
+ const approval = readOrderDepositApproval(payload);
13959
+ if (approval) {
13960
+ const allowance = await signer.readAllowance(approval.token, account, approval.spender).catch(() => void 0);
13961
+ if (allowance !== void 0 && allowance >= approval.amount) continue;
13962
+ }
13963
+ steps.push({ payload, approval: Boolean(approval) });
13964
+ }
13965
+ let hash;
13966
+ for (const [index, step] of steps.entries()) {
13967
+ onStep?.(step.approval ? "approval" : "order");
13968
+ hash = await signer.sendTransaction(step.payload);
13969
+ if (index === steps.length - 1) break;
13970
+ if (await signer.waitForReceipt(hash) !== "success") {
13971
+ throw new Error("The approval transaction reverted");
13972
+ }
13973
+ }
13974
+ if (!hash) throw new Error("The quote has no transaction to sign");
13975
+ return hash;
13976
+ }
13977
+ var ORDER_DEPOSIT_PREVIEW_ACCOUNT = "0x000000000000000000000000000000000000dEaD";
13978
+ var ORDER_DEPOSIT_PROBE_TOKENS = "100";
13979
+ var ORDER_DEPOSIT_PROBE_STALE_MS = 5 * 6e4;
13980
+ var ORDER_DEPOSIT_QUOTE_REFRESH_MS = 15e3;
13981
+ var ORDER_DEPOSIT_QUOTE_SETTLE_MS = 350;
13982
+ function readOrderDepositPair(route, token, deliveredToken) {
13983
+ if (token.route !== "swap" || !route.orderApiUrl) return void 0;
13984
+ if (!token.l1Address || !deliveredToken.l2Address) return void 0;
13985
+ return {
13986
+ baseUrl: route.orderApiUrl,
13987
+ sourceChainId: route.source.id,
13988
+ destinationChainId: route.destination.id,
13989
+ tokenIn: token.l1Address,
13990
+ tokenOut: deliveredToken.l2Address
13991
+ };
13992
+ }
13993
+ async function readSignableQuote(pair, request, signal) {
13994
+ const quote = await getOrderDepositQuote({ ...pair, ...request, signal });
13995
+ if (!quote) return null;
13996
+ const fault = findOrderDepositQuoteFault({
13997
+ quote,
13998
+ sourceChainId: pair.sourceChainId,
13999
+ tokenIn: pair.tokenIn,
14000
+ amountIn: request.amountIn,
14001
+ recipient: request.recipient
14002
+ });
14003
+ if (fault) {
14004
+ debugWarn(`[FluentBridge] refused an Order deposit quote: ${fault}`, quote);
14005
+ return null;
14006
+ }
14007
+ return quote;
14008
+ }
14009
+ function useOrderDepositRoute({
14010
+ route,
14011
+ token,
14012
+ deliveredToken
14013
+ }) {
14014
+ const pair = readOrderDepositPair(route, token, deliveredToken);
14015
+ const probe = useQuery({
14016
+ queryKey: [
14017
+ "fluent-order-deposit-route",
14018
+ pair?.baseUrl,
14019
+ pair?.sourceChainId,
14020
+ pair?.destinationChainId,
14021
+ pair?.tokenIn,
14022
+ pair?.tokenOut
14023
+ ],
14024
+ queryFn: async ({ signal }) => {
14025
+ const quote = await readSignableQuote(
14026
+ pair,
14027
+ {
14028
+ amountIn: parseUnits(ORDER_DEPOSIT_PROBE_TOKENS, token.decimals),
14029
+ sender: ORDER_DEPOSIT_PREVIEW_ACCOUNT,
14030
+ recipient: ORDER_DEPOSIT_PREVIEW_ACCOUNT
14031
+ },
14032
+ signal
14033
+ );
14034
+ return quote !== null;
14035
+ },
14036
+ enabled: Boolean(pair),
14037
+ staleTime: ORDER_DEPOSIT_PROBE_STALE_MS,
14038
+ retry: false,
14039
+ refetchOnWindowFocus: false
14040
+ });
14041
+ return {
14042
+ available: Boolean(pair) && probe.data === true,
14043
+ checking: Boolean(pair) && probe.isPending
14044
+ };
14045
+ }
14046
+ function useSettledValue(value, delayMs) {
14047
+ const [settled, setSettled] = useState(value);
14048
+ useEffect(() => {
14049
+ const timer = setTimeout(() => setSettled(value), delayMs);
14050
+ return () => clearTimeout(timer);
14051
+ }, [delayMs, value]);
14052
+ return settled;
14053
+ }
14054
+ function useOrderDepositQuote({
14055
+ route,
14056
+ token,
14057
+ deliveredToken,
14058
+ amountIn,
14059
+ sender,
14060
+ recipient,
14061
+ enabled,
14062
+ paused
14063
+ }) {
14064
+ const pair = readOrderDepositPair(route, token, deliveredToken);
14065
+ const settledAmount = useSettledValue(amountIn, ORDER_DEPOSIT_QUOTE_SETTLE_MS);
14066
+ const wanted = enabled && Boolean(pair) && amountIn !== void 0 && amountIn > 0n;
14067
+ const settled = wanted && settledAmount === amountIn;
14068
+ const from = sender ?? ORDER_DEPOSIT_PREVIEW_ACCOUNT;
14069
+ const to = recipient ?? ORDER_DEPOSIT_PREVIEW_ACCOUNT;
14070
+ const query = useQuery({
14071
+ queryKey: [
14072
+ "fluent-order-deposit-quote",
14073
+ pair?.baseUrl,
14074
+ pair?.sourceChainId,
14075
+ pair?.destinationChainId,
14076
+ pair?.tokenIn,
14077
+ pair?.tokenOut,
14078
+ settledAmount?.toString(),
14079
+ from,
14080
+ to
14081
+ ],
14082
+ queryFn: ({ signal }) => readSignableQuote(pair, { amountIn: settledAmount, sender: from, recipient: to }, signal),
14083
+ enabled: settled,
14084
+ staleTime: ORDER_DEPOSIT_QUOTE_REFRESH_MS,
14085
+ refetchInterval: paused ? false : ORDER_DEPOSIT_QUOTE_REFRESH_MS,
14086
+ retry: false,
14087
+ refetchOnWindowFocus: false
14088
+ });
14089
+ if (!wanted) return { loading: false, missing: false, failed: false };
14090
+ if (!settled || query.isPending) return { loading: true, missing: false, failed: false };
14091
+ if (query.data) return { quote: query.data, loading: false, missing: false, failed: false };
14092
+ return { loading: false, missing: query.data === null, failed: query.isError };
14093
+ }
13485
14094
  var CHAIN_NOT_ADDED = 4902;
13486
14095
  function errorCode(error) {
13487
14096
  if (typeof error !== "object" || error === null) return void 0;
@@ -13565,7 +14174,10 @@ function useBridgeDeposit({
13565
14174
  const isSwap = token.route === "swap";
13566
14175
  const deliveredToken = getDeliveredToken(network, token);
13567
14176
  const bridgeSpender = deliveredToken.route === "canonical" ? route.erc20Gateway : deliveredToken.route === "fast-path" ? route.fastPathPortal : void 0;
13568
- const firstSpender = isSwap ? route.swapFacility : bridgeSpender;
14177
+ const orderRoute = useOrderDepositRoute({ route, token, deliveredToken });
14178
+ const isOrder = isSwap && orderRoute.available;
14179
+ const routeChecking = isSwap && orderRoute.checking;
14180
+ const viaFacility = isSwap && !isOrder && !routeChecking;
13569
14181
  useEffect(() => {
13570
14182
  setAmount("");
13571
14183
  }, [token.symbol]);
@@ -13622,14 +14234,6 @@ function useBridgeDeposit({
13622
14234
  chainId: route.source.id,
13623
14235
  query: { enabled: isErc20 && Boolean(address && token.l1Address) }
13624
14236
  });
13625
- const { data: allowance, refetch: refetchAllowance } = useReadContract({
13626
- address: token.l1Address,
13627
- abi: erc20Abi,
13628
- functionName: "allowance",
13629
- args: address && firstSpender ? [address, firstSpender] : void 0,
13630
- chainId: route.source.id,
13631
- query: { enabled: isErc20 && Boolean(address && firstSpender && token.l1Address) }
13632
- });
13633
14237
  const { data: canSwap } = useReadContract({
13634
14238
  address: route.swapFacility,
13635
14239
  abi: swapFacilityAbi,
@@ -13637,7 +14241,7 @@ function useBridgeDeposit({
13637
14241
  args: address && token.l1Address && deliveredToken.l1Address ? [address, token.l1Address, deliveredToken.l1Address] : void 0,
13638
14242
  chainId: route.source.id,
13639
14243
  query: {
13640
- enabled: isSwap && Boolean(address && route.swapFacility && token.l1Address && deliveredToken.l1Address)
14244
+ enabled: viaFacility && Boolean(address && route.swapFacility && token.l1Address && deliveredToken.l1Address)
13641
14245
  }
13642
14246
  });
13643
14247
  const { data: messageFee, isPending: messageFeeLoading } = useReadContract({
@@ -13650,12 +14254,14 @@ function useBridgeDeposit({
13650
14254
  const fastPathFee = useQuery({
13651
14255
  queryKey: ["fluent-bridge-fast-path-fee", route.fastPathPortal, route.destination.id],
13652
14256
  queryFn: () => readFastPathFeeWei(publicClient, route.fastPathPortal, route.destination.id),
13653
- enabled: deliveredToken.route === "fast-path" && Boolean(publicClient && route.fastPathPortal),
14257
+ enabled: deliveredToken.route === "fast-path" && // Nothing is bridged on an Order deposit, so there is no bridge fee to read.
14258
+ !isOrder && !routeChecking && Boolean(publicClient && route.fastPathPortal),
13654
14259
  staleTime: 3e4
13655
14260
  });
13656
- const fee = deliveredToken.route === "fast-path" ? fastPathFee.data : messageFee;
13657
- const feeLoading = deliveredToken.route === "fast-path" ? fastPathFee.isPending : messageFeeLoading;
14261
+ const fee = isOrder ? 0n : deliveredToken.route === "fast-path" ? fastPathFee.data : messageFee;
14262
+ const feeLoading = isOrder ? false : deliveredToken.route === "fast-path" ? fastPathFee.isPending : messageFeeLoading;
13658
14263
  const { writeContractAsync, isPending: signing } = useWriteContract();
14264
+ const { sendTransactionAsync } = useSendTransaction();
13659
14265
  const { data: receipt, isError: receiptFailed } = useWaitForTransactionReceipt({
13660
14266
  hash: state.hash,
13661
14267
  chainId: route.source.id,
@@ -13685,9 +14291,36 @@ function useBridgeDeposit({
13685
14291
  native: !isErc20
13686
14292
  });
13687
14293
  const ethShortForFee = isErc20 && isConnected && !wrongChain && ethBalance !== void 0 && !feeLoading && ethBalance.value < ethReserve;
13688
- const validationError = validated.error ?? (ethShortForFee && validated.wei !== void 0 ? `Not enough ETH for the bridge fee and gas (about ${formatUnits(ethReserve, 18)} ETH)` : isSwap && canSwap === false ? `${token.symbol} cannot be converted to ${deliveredToken.symbol} on this network right now` : void 0);
14294
+ const orderQuotable = isOrder && validated.wei !== void 0 && validated.wei >= getOrderDepositMinimum(token.decimals);
14295
+ const orderQuote = useOrderDepositQuote({
14296
+ route,
14297
+ token,
14298
+ deliveredToken,
14299
+ amountIn: validated.wei,
14300
+ sender: address,
14301
+ recipient,
14302
+ enabled: orderQuotable,
14303
+ // The form is on screen in these two phases only, and a quote is not refreshed under a
14304
+ // deposit that is being signed or followed.
14305
+ paused: state.phase !== "idle" && state.phase !== "error"
14306
+ });
14307
+ const orderError = !isOrder || validated.wei === void 0 ? void 0 : !orderQuotable ? `Minimum deposit is ${ORDER_DEPOSIT_MIN_TOKENS} ${token.symbol}` : orderQuote.missing ? "No quote for this amount right now. Try another amount, or again in a moment." : orderQuote.failed ? `${token.symbol} deposits cannot be priced right now. Try again in a moment.` : void 0;
14308
+ const validationError = validated.error ?? (ethShortForFee && validated.wei !== void 0 ? isOrder ? `Not enough ETH for gas (about ${formatUnits(ethReserve, 18)} ETH)` : `Not enough ETH for the bridge fee and gas (about ${formatUnits(ethReserve, 18)} ETH)` : orderError ?? (viaFacility && canSwap === false ? `${token.symbol} cannot be converted to ${deliveredToken.symbol} on this network right now` : void 0));
13689
14309
  const amountWei = validationError ? void 0 : validated.wei;
13690
- const needsApproval = isErc20 && amountWei !== void 0 && allowance !== void 0 && allowance < amountWei;
14310
+ const orderApproval = useMemo(() => {
14311
+ const payloads = orderQuote.quote?.payloads ?? [];
14312
+ return payloads.length > 1 && payloads[0] ? readOrderDepositApproval(payloads[0]) : void 0;
14313
+ }, [orderQuote.quote]);
14314
+ const firstSpender = isOrder ? orderApproval?.spender : isSwap ? route.swapFacility : bridgeSpender;
14315
+ const { data: allowance, refetch: refetchAllowance } = useReadContract({
14316
+ address: token.l1Address,
14317
+ abi: erc20Abi,
14318
+ functionName: "allowance",
14319
+ args: address && firstSpender ? [address, firstSpender] : void 0,
14320
+ chainId: route.source.id,
14321
+ query: { enabled: isErc20 && Boolean(address && firstSpender && token.l1Address) }
14322
+ });
14323
+ const needsApproval = isErc20 && amountWei !== void 0 && allowance !== void 0 && (isOrder ? orderApproval !== void 0 && allowance < orderApproval.amount : allowance < amountWei);
13691
14324
  const gasEstimate = useQuery({
13692
14325
  queryKey: [
13693
14326
  "fluent-bridge-gas",
@@ -13743,6 +14376,15 @@ function useBridgeDeposit({
13743
14376
  if (spendable === void 0 || spendable === 0n) return;
13744
14377
  setAmount(formatUnits(spendable, token.decimals));
13745
14378
  }, [spendable, token.decimals]);
14379
+ const readDestinationBalance = useCallback(
14380
+ (account) => deliveredToken.route === "native" || !deliveredToken.l2Address ? destinationClient.getBalance({ address: account }) : destinationClient.readContract({
14381
+ address: deliveredToken.l2Address,
14382
+ abi: erc20Abi,
14383
+ functionName: "balanceOf",
14384
+ args: [account]
14385
+ }),
14386
+ [deliveredToken, destinationClient]
14387
+ );
13746
14388
  const reset = useCallback(() => {
13747
14389
  relayBaseline.current = void 0;
13748
14390
  setState({ phase: "idle", slow: false });
@@ -13809,6 +14451,69 @@ function useBridgeDeposit({
13809
14451
  if (!recipient || !address || amountWei === void 0 || fee === void 0) return;
13810
14452
  if (!publicClient) return;
13811
14453
  relayBaseline.current = void 0;
14454
+ if (isOrder) {
14455
+ const quote = orderQuote.quote;
14456
+ const tokenIn = token.l1Address;
14457
+ if (!quote || !tokenIn) return;
14458
+ setState({
14459
+ phase: "confirming",
14460
+ slow: false,
14461
+ viaOrder: true,
14462
+ stepLabel: "Preparing the deposit"
14463
+ });
14464
+ void (async () => {
14465
+ try {
14466
+ const fault = findOrderDepositQuoteFault({
14467
+ quote,
14468
+ sourceChainId: route.source.id,
14469
+ tokenIn,
14470
+ amountIn: amountWei,
14471
+ recipient
14472
+ });
14473
+ if (fault) {
14474
+ debugError(`[FluentBridge] refused an Order deposit quote: ${fault}`, quote);
14475
+ throw new Error("The quote for this deposit could not be verified. Try again.");
14476
+ }
14477
+ relayBaseline.current = await readDestinationBalance(recipient).catch(() => void 0);
14478
+ const hash = await sendOrderDeposit({
14479
+ quote,
14480
+ account: address,
14481
+ signer: {
14482
+ readAllowance: (erc20, owner, spender) => publicClient.readContract({
14483
+ address: erc20,
14484
+ abi: erc20Abi,
14485
+ functionName: "allowance",
14486
+ args: [owner, spender]
14487
+ }),
14488
+ // Naming the account makes the wallet refuse if another one is connected by now.
14489
+ sendTransaction: (payload) => sendTransactionAsync({
14490
+ account: address,
14491
+ chainId: route.source.id,
14492
+ to: payload.to,
14493
+ data: payload.data,
14494
+ value: payload.value
14495
+ }),
14496
+ waitForReceipt: async (pending2) => (await publicClient.waitForTransactionReceipt({ hash: pending2 })).status
14497
+ },
14498
+ onStep: (step) => setState((s) => ({
14499
+ ...s,
14500
+ phase: step === "approval" ? "approving" : "confirming",
14501
+ stepLabel: step === "approval" ? `Approve ${token.symbol} in your wallet` : "Confirm the deposit in your wallet"
14502
+ }))
14503
+ });
14504
+ if (onSubmittedRef.current?.({ hash, sender: address, delivered: quote.amountOut })) {
14505
+ relayBaseline.current = void 0;
14506
+ setState({ phase: "idle", slow: false });
14507
+ setAmount("");
14508
+ return;
14509
+ }
14510
+ setState((s) => ({ ...s, phase: "submitted", hash, stepLabel: void 0 }));
14511
+ } catch (error) {
14512
+ fail(error, "The deposit could not be sent");
14513
+ }
14514
+ })();
14515
+ return;
14516
+ }
13812
14517
  const ensureAllowance = async (erc20, spender, needed, symbol) => {
13813
14518
  const current = await publicClient.readContract({
13814
14519
  address: erc20,
@@ -13817,7 +14522,11 @@ function useBridgeDeposit({
13817
14522
  args: [address, spender]
13818
14523
  });
13819
14524
  if (current >= needed) return;
13820
- setState((s) => ({ ...s, phase: "approving", stepLabel: `Approve ${symbol} in your wallet` }));
14525
+ setState((s) => ({
14526
+ ...s,
14527
+ phase: "approving",
14528
+ stepLabel: `Approve ${symbol} in your wallet`
14529
+ }));
13821
14530
  const approveHash = await writeContractAsync({
13822
14531
  address: erc20,
13823
14532
  abi: erc20Abi,
@@ -13861,9 +14570,18 @@ function useBridgeDeposit({
13861
14570
  if (!bridgeToken.l1Address || !bridgeSpender) {
13862
14571
  throw new Error(`${bridgeToken.symbol} is not configured on this network`);
13863
14572
  }
13864
- await ensureAllowance(bridgeToken.l1Address, bridgeSpender, bridgeAmount, bridgeToken.symbol);
14573
+ await ensureAllowance(
14574
+ bridgeToken.l1Address,
14575
+ bridgeSpender,
14576
+ bridgeAmount,
14577
+ bridgeToken.symbol
14578
+ );
13865
14579
  }
13866
- setState((s) => ({ ...s, phase: "confirming", stepLabel: "Confirm the deposit in your wallet" }));
14580
+ setState((s) => ({
14581
+ ...s,
14582
+ phase: "confirming",
14583
+ stepLabel: "Confirm the deposit in your wallet"
14584
+ }));
13867
14585
  let hash;
13868
14586
  if (bridgeToken.route === "native") {
13869
14587
  hash = await writeContractAsync({
@@ -13919,10 +14637,14 @@ function useBridgeDeposit({
13919
14637
  deliveredToken,
13920
14638
  fail,
13921
14639
  fee,
14640
+ isOrder,
13922
14641
  isSwap,
14642
+ orderQuote.quote,
13923
14643
  publicClient,
14644
+ readDestinationBalance,
13924
14645
  recipient,
13925
14646
  route,
14647
+ sendTransactionAsync,
13926
14648
  token,
13927
14649
  writeContractAsync
13928
14650
  ]);
@@ -13996,15 +14718,53 @@ function useBridgeDeposit({
13996
14718
  return false;
13997
14719
  }
13998
14720
  };
13999
- const readDestinationBalance = () => deliveredToken.route === "native" || !deliveredToken.l2Address ? destinationClient.getBalance({ address: recipient }) : destinationClient.readContract({
14000
- address: deliveredToken.l2Address,
14001
- abi: erc20Abi,
14002
- functionName: "balanceOf",
14003
- args: [recipient]
14004
- });
14721
+ const pollOrder = async () => {
14722
+ const baseUrl = route.orderApiUrl;
14723
+ const sentHash = state.hash?.toLowerCase();
14724
+ if (!sentHash || !baseUrl) return false;
14725
+ try {
14726
+ const orders = await getOrderDeposits({
14727
+ baseUrl,
14728
+ sender: address,
14729
+ originChainId: route.source.id,
14730
+ signal: controller.signal
14731
+ });
14732
+ const order = orders.find((candidate) => candidate.openTxHash === sentHash);
14733
+ debugLog("[FluentBridge] order API orders", { sentHash, matched: order });
14734
+ if (!order || !active) return false;
14735
+ if (order.status === "cancelled") {
14736
+ setState((current) => ({
14737
+ ...current,
14738
+ phase: "error",
14739
+ message: "The order was cancelled before a solver filled it"
14740
+ }));
14741
+ return true;
14742
+ }
14743
+ if (order.status !== "filled") return false;
14744
+ const filled = await getOrderDeposit({
14745
+ baseUrl,
14746
+ originChainId: route.source.id,
14747
+ orderId: order.orderId,
14748
+ signal: controller.signal
14749
+ }).catch(() => null);
14750
+ const receivedHash = filled?.fillTxHash;
14751
+ if (active && receivedHash) {
14752
+ setState(
14753
+ (current) => current.receivedHash === receivedHash ? current : { ...current, receivedHash }
14754
+ );
14755
+ }
14756
+ return true;
14757
+ } catch (error) {
14758
+ if (!controller.signal.aborted) {
14759
+ debugError("[FluentBridge] order API read failed", error);
14760
+ }
14761
+ return false;
14762
+ }
14763
+ };
14764
+ const pollDelivery = state.viaOrder ? pollOrder : pollIndexer;
14005
14765
  const pollBalance = async () => {
14006
14766
  try {
14007
- const balance = await readDestinationBalance();
14767
+ const balance = await readDestinationBalance(recipient);
14008
14768
  if (relayBaseline.current === void 0) {
14009
14769
  relayBaseline.current = balance;
14010
14770
  return false;
@@ -14020,10 +14780,10 @@ function useBridgeDeposit({
14020
14780
  clearInterval(timer);
14021
14781
  return;
14022
14782
  }
14023
- await pollIndexer();
14783
+ await pollDelivery();
14024
14784
  return;
14025
14785
  }
14026
- const [relayed, credited] = await Promise.all([pollIndexer(), pollBalance()]);
14786
+ const [relayed, credited] = await Promise.all([pollDelivery(), pollBalance()]);
14027
14787
  if (active && (relayed || credited)) {
14028
14788
  setState(
14029
14789
  (current) => current.phase === "relaying" ? { ...current, phase: "settled" } : current
@@ -14040,12 +14800,14 @@ function useBridgeDeposit({
14040
14800
  }, [
14041
14801
  address,
14042
14802
  awaitingReceivedHash,
14043
- deliveredToken,
14044
- destinationClient,
14803
+ readDestinationBalance,
14045
14804
  recipient,
14046
14805
  route.indexerUrl,
14806
+ route.orderApiUrl,
14807
+ route.source.id,
14047
14808
  state.hash,
14048
- state.phase
14809
+ state.phase,
14810
+ state.viaOrder
14049
14811
  ]);
14050
14812
  useEffect(() => {
14051
14813
  if (state.phase !== "relaying") return;
@@ -14064,6 +14826,12 @@ function useBridgeDeposit({
14064
14826
  connecting: signing,
14065
14827
  restoring: reconnecting && !restoreTimedOut,
14066
14828
  feeLoading,
14829
+ routeLoading: routeChecking,
14830
+ order: isOrder ? {
14831
+ quoteLoading: orderQuote.loading,
14832
+ solverFee: orderQuote.quote && token.decimals === deliveredToken.decimals && orderQuote.quote.amountIn >= orderQuote.quote.amountOut ? orderQuote.quote.amountIn - orderQuote.quote.amountOut : void 0,
14833
+ fillSeconds: orderQuote.quote?.fillSeconds
14834
+ } : void 0,
14067
14835
  wrongChain,
14068
14836
  switchToSource: () => {
14069
14837
  setSwitchError(void 0);
@@ -14087,20 +14855,21 @@ function useBridgeDeposit({
14087
14855
  needsApproval,
14088
14856
  approve,
14089
14857
  approving,
14090
- // Mirrors what was typed even when it overshoots the balance: blanking the
14091
- // receive side while the user is being told the maximum reads as a glitch.
14092
- // A swap is at par and both sides are 6-decimal, so the typed amount is the
14093
- // honest estimate until the facility says otherwise.
14094
- receiveAmount: state.swappedAmount ?? validated.wei,
14858
+ // Mirrors what was typed even past the balance: blanking the receive side beside the
14859
+ // maximum reads as a glitch. A swap is at par and both sides have 6 decimals, so the typed
14860
+ // amount is the estimate until the facility reports its own. An Order deposit delivers what
14861
+ // its quote says, and nothing is known to arrive until there is one.
14862
+ receiveAmount: state.swappedAmount ?? (isOrder ? orderQuote.quote?.amountOut : validated.wei),
14095
14863
  form: {
14096
14864
  amount,
14097
14865
  setAmount: (value) => setAmount((current) => sanitizeBridgeAmountInput(value, current, token.decimals)),
14098
14866
  setMax,
14099
14867
  validationError,
14100
- canSubmit: Boolean(recipient) && isConnected && !wrongChain && !busy && // The fee is added to `value`; submitting before it lands would send a
14868
+ canSubmit: Boolean(recipient) && isConnected && !wrongChain && !busy && !routeChecking && // The fee is added to `value`; submitting before it lands would send a
14101
14869
  // deposit short of what the bridge charges.
14102
- !feeLoading && fee !== void 0 && amountWei !== void 0 && !validationError && // For a swap the facility has to have said yes before anything is signed.
14103
- (!isSwap || canSwap === true)
14870
+ !feeLoading && fee !== void 0 && amountWei !== void 0 && !validationError && // For a swap the facility has to have said yes before anything is signed, and an
14871
+ // Order deposit has to have the quote whose transactions are signed.
14872
+ (isOrder ? Boolean(orderQuote.quote) : !isSwap || canSwap === true)
14104
14873
  },
14105
14874
  state,
14106
14875
  submit,
@@ -14179,7 +14948,8 @@ function StatusView({
14179
14948
  const step = state.phase === "settled" ? 3 : state.phase === "relaying" ? 2 : 1;
14180
14949
  const settled = state.phase === "settled";
14181
14950
  const heading = settled ? "Success" : state.phase === "relaying" ? "Funds on the way" : state.phase === "submitted" ? "Confirming on " + route.source.name : state.stepLabel ?? (state.phase === "approving" ? `Approve ${token.symbol} in your wallet` : "Confirm in your wallet");
14182
- const detail = settled ? `Your ${deliveredToken.symbol} has landed on ${route.destination.name}.` : state.phase === "relaying" ? state.slow ? "Your deposit went through, but the funds are taking longer than usual to arrive. They will land as soon as the bridge relays them." : `Your funds are on their way to ${route.destination.name} \u2014 this usually takes a few minutes.` : state.phase === "submitted" ? "Waiting for the transaction to be included in a block." : state.phase === "swapping" ? `Converting on ${route.source.name} at 1:1 through the M^0 swap facility. The bridge deposit follows once it is mined.` : state.phase === "approving" ? "Allow the contract to move your tokens. The next signature does the actual transfer." : `Approve the deposit in your wallet to send it from ${route.source.name}.`;
14951
+ const onTheWay = state.viaOrder ? state.slow ? "Your order is open, but the funds are taking longer than usual to arrive. They will land as soon as a solver fills the order." : `Your funds are on their way to ${route.destination.name} \u2014 this usually takes about a minute.` : state.slow ? "Your deposit went through, but the funds are taking longer than usual to arrive. They will land as soon as the bridge relays them." : `Your funds are on their way to ${route.destination.name} \u2014 this usually takes a few minutes.`;
14952
+ const detail = settled ? `Your ${deliveredToken.symbol} has landed on ${route.destination.name}.` : state.phase === "relaying" ? onTheWay : state.phase === "submitted" ? "Waiting for the transaction to be included in a block." : state.phase === "swapping" ? `Converting on ${route.source.name} at 1:1 through the M^0 swap facility. The bridge deposit follows once it is mined.` : state.phase === "approving" ? "Allow the contract to move your tokens. The next signature does the actual transfer." : `Approve the deposit in your wallet to send it from ${route.source.name}.`;
14183
14953
  const explorerLink = state.phase === "settled" && state.receivedHash ? {
14184
14954
  url: `${route.destination.blockExplorers?.default.url}/tx/${state.receivedHash}`,
14185
14955
  name: route.destination.blockExplorers?.default.name
@@ -14284,10 +15054,9 @@ function DepositSwapStatusView({
14284
15054
  ] }),
14285
15055
  /* @__PURE__ */ jsxs("div", { className: "flex w-full flex-col gap-2", children: [
14286
15056
  state.phase === "bridging" ? (
14287
- // The wait need not be watched: the deposit is held above the drawer, so
14288
- // Home is a way out that loses nothing, and this page shows it again on
14289
- // return. Slow, the Portal can say more, and the swap can be given up on
14290
- // — the deposit still lands, only the swap after it is dropped.
15057
+ // The wait need not be watched: the deposit is held above the drawer, so Home loses
15058
+ // nothing and this page shows it again on return. Slow, the Portal can say more, and
15059
+ // the swap can be skipped: the deposit still lands, only the swap after it is dropped.
14291
15060
  /* @__PURE__ */ jsxs("div", { className: "flex w-full flex-col gap-2", children: [
14292
15061
  onGoHome ? /* @__PURE__ */ jsx(Button, { className: "w-full", onClick: onGoHome, children: "Back to Home" }) : null,
14293
15062
  slow ? /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -14494,8 +15263,8 @@ function BridgeForm({
14494
15263
  const amountUsd = formatAmountUsd(form.amount, priceOf(token.symbol));
14495
15264
  const receiveToken = twoStep && swapTarget ? swapTarget : deliveredToken;
14496
15265
  const receiveAmount = twoStep ? quote?.amountOut : bridge.receiveAmount;
14497
- const approximate = isSwap || twoStep ? "\u2248 " : "";
14498
- const receiveText = receiveAmount === void 0 || receiveAmount === 0n ? twoStep && swapQuote.loading ? "\u2026" : "0" : `${approximate}${formatAmount(receiveAmount, receiveToken.decimals, receiveToken.symbol)}`;
15266
+ const approximate = isSwap && !bridge.order || twoStep ? "\u2248 " : "";
15267
+ const receiveText = receiveAmount === void 0 || receiveAmount === 0n ? twoStep && swapQuote.loading || bridge.order?.quoteLoading ? "\u2026" : "0" : `${approximate}${formatAmount(receiveAmount, receiveToken.decimals, receiveToken.symbol)}`;
14499
15268
  const receiveExact = receiveAmount === void 0 || receiveAmount === 0n ? void 0 : `${formatUnits(receiveAmount, receiveToken.decimals)} ${receiveToken.symbol}`;
14500
15269
  const receiveUsd = formatAmountUsd(
14501
15270
  receiveAmount === void 0 ? "0" : formatUnits(receiveAmount, receiveToken.decimals),
@@ -14507,6 +15276,8 @@ function BridgeForm({
14507
15276
  const approvalStep = Number(form.amount) > 0 && !bridge.needsApproval && !bridge.approving ? 2 : 1;
14508
15277
  const canApprove = !bridge.approving && Number(form.amount) > 0 && !form.validationError && !bridge.feeLoading;
14509
15278
  const totalFee = bridge.fee === void 0 && bridge.gasFee === void 0 ? void 0 : (bridge.fee ?? 0n) + (bridge.gasFee ?? 0n);
15279
+ const fillMinutes = Math.max(1, Math.round((bridge.order?.fillSeconds ?? 60) / 60));
15280
+ const fillTime = fillMinutes === 1 ? "about a minute" : `about ${fillMinutes} minutes`;
14510
15281
  const minimumOut = twoStep && quote ? applyFluentSwapSlippage(quote.amountOut, FLUENT_SWAP_SLIPPAGE_BPS) : void 0;
14511
15282
  return /* @__PURE__ */ jsxs("div", { className: "flex w-full flex-col gap-4 flex-1", children: [
14512
15283
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
@@ -14607,7 +15378,17 @@ function BridgeForm({
14607
15378
  tooltip: isFastPath ? "The settlement fee covers the fast path message delivery and liquidity route." : "The relayer gas fee is used to cover the cost of sending the message to the destination chain."
14608
15379
  }
14609
15380
  ) : null,
14610
- /* @__PURE__ */ jsx(
15381
+ bridge.order ? (
15382
+ // In the token being sent, so it is not summed with the fees paid in ETH.
15383
+ bridge.order.solverFee !== void 0 ? /* @__PURE__ */ jsx(
15384
+ SummaryRow,
15385
+ {
15386
+ label: "Solver fee",
15387
+ value: `${formatAmount(bridge.order.solverFee, token.decimals, token.symbol)} ` + token.symbol,
15388
+ tooltip: "The solver that fills the order keeps this out of the amount you send. What you receive is already net of it."
15389
+ }
15390
+ ) : null
15391
+ ) : /* @__PURE__ */ jsx(
14611
15392
  SummaryRow,
14612
15393
  {
14613
15394
  label: "Total fees",
@@ -14646,7 +15427,7 @@ function BridgeForm({
14646
15427
  ),
14647
15428
  /* @__PURE__ */ jsx(SummaryRow, { label: "Slippage", value: SLIPPAGE_LABEL })
14648
15429
  ] }) : null,
14649
- isSwap ? /* @__PURE__ */ jsx("span", { className: "text-xs text-foreground/60", children: `${token.symbol} is swapped 1:1 to ${deliveredToken.symbol} on ${route.source.name}, then bridged to Fluent. Fees are paid in ${ethSymbol}. Expect up to 4 confirmations.` }) : null
15430
+ bridge.order ? /* @__PURE__ */ jsx("span", { className: "text-xs text-foreground/60", children: `${token.symbol} is sent as a limit order on ${route.source.name}: a solver pays ${deliveredToken.symbol} to your Fluent account, usually in ${fillTime}. Gas is paid in ${ethSymbol}.` }) : isSwap && !bridge.routeLoading ? /* @__PURE__ */ jsx("span", { className: "text-xs text-foreground/60", children: `${token.symbol} is swapped 1:1 to ${deliveredToken.symbol} on ${route.source.name}, then bridged to Fluent. Fees are paid in ${ethSymbol}. Expect up to 4 confirmations.` }) : null
14650
15431
  ] }) }),
14651
15432
  state.phase === "error" ? /* @__PURE__ */ jsx("span", { className: "text-xs text-destructive", children: state.message }) : null,
14652
15433
  bridge.restoring ? /* @__PURE__ */ jsxs(Button, { className: "w-full", disabled: true, children: [
@@ -14700,13 +15481,19 @@ function BridgeForm({
14700
15481
  children: bridge.connecting ? /* @__PURE__ */ jsxs(Fragment, { children: [
14701
15482
  /* @__PURE__ */ jsx(Spinner, { className: "size-4" }),
14702
15483
  "Confirm in your wallet\u2026"
15484
+ ] }) : bridge.routeLoading ? /* @__PURE__ */ jsxs(Fragment, { children: [
15485
+ /* @__PURE__ */ jsx(Spinner, { className: "size-4" }),
15486
+ "Finding the best route\u2026"
14703
15487
  ] }) : bridge.feeLoading ? /* @__PURE__ */ jsxs(Fragment, { children: [
14704
15488
  /* @__PURE__ */ jsx(Spinner, { className: "size-4" }),
14705
15489
  "Loading bridge fee\u2026"
15490
+ ] }) : bridge.order?.quoteLoading ? /* @__PURE__ */ jsxs(Fragment, { children: [
15491
+ /* @__PURE__ */ jsx(Spinner, { className: "size-4" }),
15492
+ "Getting a quote\u2026"
14706
15493
  ] }) : swapUnpriced && form.canSubmit ? swapQuote.loading ? /* @__PURE__ */ jsxs(Fragment, { children: [
14707
15494
  /* @__PURE__ */ jsx(Spinner, { className: "size-4" }),
14708
15495
  unpricedLabel
14709
- ] }) : unpricedLabel : bridge.needsApproval ? `Approve ${token.symbol} and continue` : isSwap ? `Swap to ${deliveredToken.symbol} and continue` : `Deposit to ${route.destination.name.split(" ")[0]}`
15496
+ ] }) : unpricedLabel : bridge.needsApproval ? `Approve ${token.symbol} and continue` : isSwap && !bridge.order ? `Swap to ${deliveredToken.symbol} and continue` : `Deposit to ${route.destination.name.split(" ")[0]}`
14710
15497
  }
14711
15498
  ),
14712
15499
  /* @__PURE__ */ jsx(Button, { variant: "ghost", className: "w-full", onClick: bridge.disconnect, children: "Disconnect" })
@@ -14817,8 +15604,8 @@ function BridgeScreen({
14817
15604
  }) {
14818
15605
  const resolvedConfig = useMemo(() => resolveFluentWidgetConfig(config), [config]);
14819
15606
  const route = useMemo(
14820
- () => getFluentBridgeRoute(resolvedConfig.network),
14821
- [resolvedConfig.network]
15607
+ () => getFluentBridgeRoute(resolvedConfig.network, resolvedConfig.orderDepositUrl),
15608
+ [resolvedConfig.network, resolvedConfig.orderDepositUrl]
14822
15609
  );
14823
15610
  const hasWagmi = useContext(WagmiContext) !== void 0;
14824
15611
  const openPortal = () => {
@@ -15216,7 +16003,10 @@ async function requestLinkX(params) {
15216
16003
  }
15217
16004
  }
15218
16005
  if (params.accountKind !== "smart" || !params.subject) {
15219
- throw new FluentAuthError("not_authenticated", "Connect a Fluent ID or an external wallet first.");
16006
+ throw new FluentAuthError(
16007
+ "not_authenticated",
16008
+ "Connect a Fluent ID or an external wallet first."
16009
+ );
15220
16010
  }
15221
16011
  try {
15222
16012
  return await linkOrRedirect(params, params.subject);
@@ -15330,13 +16120,16 @@ async function linkOrRedirect(params, subject) {
15330
16120
  method: "POST",
15331
16121
  headers: { Authorization: `Bearer ${authToken}` },
15332
16122
  // Exactly these two fields. The App and the subject come from the bearer, and a browser
15333
- // sets `Origin` itself — this route takes neither from the caller.
16123
+ // sets `Origin` itself: this route takes neither from the caller.
15334
16124
  body: { accessToken, identityToken },
15335
16125
  fetch: params.fetch
15336
16126
  });
15337
16127
  const x = readFluentProfile(body)?.x;
15338
16128
  if (!x) {
15339
- throw new FluentAuthError("link_failed", "The service accepted the link but reported no X account.");
16129
+ throw new FluentAuthError(
16130
+ "link_failed",
16131
+ "The service accepted the link but reported no X account."
16132
+ );
15340
16133
  }
15341
16134
  return { status: "linked", x };
15342
16135
  }
@@ -15387,7 +16180,8 @@ function validateUserOperationGas(gas) {
15387
16180
  }
15388
16181
  return;
15389
16182
  }
15390
- if (!gas.callGasBuffer) throw new Error("UserOperation gas requires callGasLimit or callGasBuffer");
16183
+ if (!gas.callGasBuffer)
16184
+ throw new Error("UserOperation gas requires callGasLimit or callGasBuffer");
15391
16185
  const { percentage = 0, fixed = 0n } = gas.callGasBuffer;
15392
16186
  if (!Number.isSafeInteger(percentage) || percentage < 0) {
15393
16187
  throw new Error("callGasBuffer.percentage must be a nonnegative safe integer");
@@ -15413,7 +16207,10 @@ function withUserOperationGas(client2, args, gas) {
15413
16207
  paymaster: {
15414
16208
  async getPaymasterStubData(operation) {
15415
16209
  const getStub = paymaster.getPaymasterStubData ?? paymaster.getPaymasterData;
15416
- return { ...await getStub.call(paymaster, operation), isFinal: false };
16210
+ return {
16211
+ ...await getStub.call(paymaster, operation),
16212
+ isFinal: false
16213
+ };
15417
16214
  },
15418
16215
  getPaymasterData: paymaster.getPaymasterData.bind(paymaster)
15419
16216
  }
@@ -15448,21 +16245,18 @@ function withUserOperationGas(client2, args, gas) {
15448
16245
  const existing = await account.userOperation?.estimateGas?.(operation);
15449
16246
  const supplied = { ...operation, ...existing };
15450
16247
  const complete = supplied.callGasLimit !== void 0 && supplied.preVerificationGas !== void 0 && supplied.verificationGasLimit !== void 0 && (!supplied.paymaster || supplied.paymasterVerificationGasLimit !== void 0 && supplied.paymasterPostOpGasLimit !== void 0);
15451
- const estimate = complete ? supplied : await estimateUserOperationGas(
15452
- { ...client2, account: void 0 },
15453
- {
15454
- callGasLimit: 0n,
15455
- preVerificationGas: 0n,
15456
- verificationGasLimit: 0n,
15457
- ...operation.paymaster ? {
15458
- paymasterVerificationGasLimit: 0n,
15459
- paymasterPostOpGasLimit: 0n
15460
- } : {},
15461
- ...operation,
15462
- ...existing,
15463
- entryPointAddress: account.entryPoint.address
15464
- }
15465
- );
16248
+ const estimate = complete ? supplied : await estimateUserOperationGas({ ...client2, account: void 0 }, {
16249
+ callGasLimit: 0n,
16250
+ preVerificationGas: 0n,
16251
+ verificationGasLimit: 0n,
16252
+ ...operation.paymaster ? {
16253
+ paymasterVerificationGasLimit: 0n,
16254
+ paymasterPostOpGasLimit: 0n
16255
+ } : {},
16256
+ ...operation,
16257
+ ...existing,
16258
+ entryPointAddress: account.entryPoint.address
16259
+ });
15466
16260
  const configured = supplied.callGasLimit ?? 0n;
15467
16261
  const estimated = estimate.callGasLimit ?? 0n;
15468
16262
  const base = configured > estimated ? configured : estimated;
@@ -15513,10 +16307,11 @@ function withoutGasEstimation(client2, args, gas) {
15513
16307
  }
15514
16308
  const acceptGas = (data, isFinal) => {
15515
16309
  if (providerGas) {
15516
- if (isFinal) assertAuthorizedGas(data, {
15517
- callGasLimit: gas.callGasLimit,
15518
- verificationGasLimit: gas.verificationGasLimit
15519
- });
16310
+ if (isFinal)
16311
+ assertAuthorizedGas(data, {
16312
+ callGasLimit: gas.callGasLimit,
16313
+ verificationGasLimit: gas.verificationGasLimit
16314
+ });
15520
16315
  limits = readProviderGas(data, limits, gas.preVerificationGas);
15521
16316
  } else if (isFinal) assertAuthorizedGas(data, limits);
15522
16317
  };
@@ -15627,7 +16422,10 @@ function createFluentBatchOp(input, executor) {
15627
16422
  confirmation: normalizeSigningMode(
15628
16423
  options?.confirmation === void 0 ? activeExecutor.defaultSigningMode : options.confirmation
15629
16424
  ),
15630
- gasPayment: gasPayment ? { ...gasPayment, sponsorship: gasPayment.sponsorship ?? activeExecutor.defaultSponsorship } : void 0
16425
+ gasPayment: gasPayment ? {
16426
+ ...gasPayment,
16427
+ sponsorship: gasPayment.sponsorship ?? activeExecutor.defaultSponsorship
16428
+ } : void 0
15631
16429
  };
15632
16430
  if (executionOptions.confirmation === "silent" && activeExecutor.quickSignWhitelist && !isQuickSignWhitelisted(encodedCalls, activeExecutor.quickSignWhitelist)) {
15633
16431
  executionOptions.confirmation = "prompt";
@@ -15971,9 +16769,7 @@ function readFluentFeeAttempt(account) {
15971
16769
  return typeof attempt === "object" && attempt !== null ? attempt : void 0;
15972
16770
  }
15973
16771
  async function readFluentBundlerFees(bundlerClient) {
15974
- return getUserOperationGasPrice(
15975
- bundlerClient
15976
- );
16772
+ return getUserOperationGasPrice(bundlerClient);
15977
16773
  }
15978
16774
  function createFluentUserOperationFeeHook(params) {
15979
16775
  return async ({ account, bundlerClient }) => {
@@ -16137,7 +16933,6 @@ async function sendUserOperationWithTiming(client2, args, gas, record, feeAttemp
16137
16933
  signingMs: measurement?.signMs,
16138
16934
  broadcastMs: measurement?.broadcastMs,
16139
16935
  // Not `totalMs`: this is one submission, and the send's total runs on to the receipt.
16140
- // Two different numbers under one name is the confusion this Issue exists to end.
16141
16936
  submissionMs: span(measurement?.startedAt, measurement?.finishedAt)
16142
16937
  });
16143
16938
  }
@@ -16421,132 +17216,134 @@ function useFluentZeroDevAccount(hookOptions = {}) {
16421
17216
  const activeKernel = kernels.prompt ?? kernels.silent ?? null;
16422
17217
  const executionRef = useRef(FLUENT_CONNECT_DEFAULT_EXECUTION);
16423
17218
  executionRef.current = hookOptions.execution ?? FLUENT_CONNECT_DEFAULT_EXECUTION;
16424
- const readExecution = useCallback(
16425
- () => executionRef.current,
16426
- []
16427
- );
17219
+ const readExecution = useCallback(() => executionRef.current, []);
16428
17220
  useEffect(() => {
16429
17221
  setKernels({});
16430
17222
  setSmartAccountReady(false);
16431
17223
  setError(null);
16432
17224
  initPromise.current = {};
16433
17225
  }, [chain.id]);
16434
- const initialize2 = useCallback(async (options = {}) => {
16435
- const signerMode = options.signerMode ?? "prompt";
16436
- const cachedKernel = kernels[signerMode];
16437
- debugLog("[fluent zerodev] initialize requested", {
16438
- signerMode,
16439
- ready,
16440
- authenticated,
16441
- walletCount: wallets.length,
16442
- embeddedWalletCount: wallets.filter((wallet) => wallet.walletClientType === "privy").length,
16443
- hasEmbeddedWallet: Boolean(embeddedWallet),
16444
- hasKernel: Boolean(cachedKernel),
16445
- cachedSignerModes: Object.keys(kernels),
16446
- initInFlight: Boolean(initPromise.current[signerMode]),
16447
- throwOnError: Boolean(options.throwOnError),
16448
- hasProjectId: Boolean(zeroDevProjectId)
16449
- });
16450
- if (cachedKernel) {
16451
- debugLog("[fluent zerodev] using cached kernel", {
17226
+ const initialize2 = useCallback(
17227
+ async (options = {}) => {
17228
+ const signerMode = options.signerMode ?? "prompt";
17229
+ const cachedKernel = kernels[signerMode];
17230
+ debugLog("[fluent zerodev] initialize requested", {
16452
17231
  signerMode,
16453
- smartAccountAddress: cachedKernel.smartAccountAddress
16454
- });
16455
- return cachedKernel;
16456
- }
16457
- const canUseLocalSigner = ready && authenticated && Boolean(embeddedWallet);
16458
- const canUseAuthorizationSession = signerMode === "silent" && Boolean(hookOptions.authorizationSession?.serializedPermissionAccount) && (hookOptions.authorizationSession?.expiresAt ?? 0) > Math.floor(Date.now() / 1e3);
16459
- if (!canUseLocalSigner && !canUseAuthorizationSession) {
16460
- const nextError = new Error(getZeroDevReadinessMessage({
16461
- ready,
16462
- authenticated,
16463
- embeddedWalletCount: wallets.filter((wallet) => wallet.walletClientType === "privy").length,
16464
- walletCount: wallets.length
16465
- }));
16466
- debugWarn("[fluent zerodev] initialize blocked", {
16467
- message: nextError.message,
16468
17232
  ready,
16469
17233
  authenticated,
17234
+ walletCount: wallets.length,
16470
17235
  embeddedWalletCount: wallets.filter((wallet) => wallet.walletClientType === "privy").length,
16471
- walletCount: wallets.length
16472
- });
16473
- setError(nextError);
16474
- if (options.throwOnError) throw nextError;
16475
- return null;
16476
- }
16477
- if (initPromise.current[signerMode]) {
16478
- debugLog("[fluent zerodev] joining in-flight initialization");
16479
- return initPromise.current[signerMode];
16480
- }
16481
- if (!zeroDevProjectId) {
16482
- setKernels({});
16483
- setSmartAccountReady(false);
16484
- setError(null);
16485
- debugWarn("[fluent zerodev] initialize blocked: project id missing");
16486
- return null;
16487
- }
16488
- setSmartAccountReady(Boolean(activeKernel));
16489
- setError(null);
16490
- initPromise.current[signerMode] = (async () => {
16491
- debugLog("[fluent zerodev] initializing", {
16492
- signerMode,
16493
17236
  hasEmbeddedWallet: Boolean(embeddedWallet),
16494
- walletClientType: embeddedWallet?.walletClientType
17237
+ hasKernel: Boolean(cachedKernel),
17238
+ cachedSignerModes: Object.keys(kernels),
17239
+ initInFlight: Boolean(initPromise.current[signerMode]),
17240
+ throwOnError: Boolean(options.throwOnError),
17241
+ hasProjectId: Boolean(zeroDevProjectId)
16495
17242
  });
16496
- const nextKernel = canUseAuthorizationSession ? await createFluentZeroDevAuthorizedSessionKernel(
16497
- hookOptions.authorizationSession,
16498
- chain,
16499
- readExecution
16500
- ) : await createFluentZeroDevKernel({
16501
- wallet: embeddedWallet,
16502
- signerMode,
16503
- promptedSigners: {
16504
- signMessage: promptSignMessage,
16505
- signTypedData: promptSignTypedData
16506
- },
16507
- chain,
16508
- readExecution
16509
- });
16510
- if (hookOptions.sessionSmartAccountAddress && nextKernel.smartAccountAddress.toLowerCase() !== hookOptions.sessionSmartAccountAddress.toLowerCase()) {
16511
- throw new Error("Fluent Connect signer does not control the connected smart account");
17243
+ if (cachedKernel) {
17244
+ debugLog("[fluent zerodev] using cached kernel", {
17245
+ signerMode,
17246
+ smartAccountAddress: cachedKernel.smartAccountAddress
17247
+ });
17248
+ return cachedKernel;
16512
17249
  }
16513
- debugLog("[fluent zerodev] ready", {
16514
- signerMode,
16515
- smartAccountAddress: nextKernel.smartAccountAddress
16516
- });
16517
- setKernels((current) => ({ ...current, [signerMode]: nextKernel }));
16518
- setSmartAccountReady(true);
16519
- return nextKernel;
16520
- })();
16521
- try {
16522
- return await initPromise.current[signerMode];
16523
- } catch (err) {
16524
- const nextError = err instanceof Error ? err : new Error("Failed to create ZeroDev account");
16525
- debugError("[fluent zerodev] initialization failed", nextError);
16526
- setKernels((current) => {
16527
- const { [signerMode]: _failed, ...rest } = current;
16528
- setSmartAccountReady(Object.keys(rest).length > 0);
16529
- return rest;
16530
- });
16531
- setError(nextError);
16532
- if (options.throwOnError) throw nextError;
16533
- return null;
16534
- } finally {
16535
- delete initPromise.current[signerMode];
16536
- }
16537
- }, [
16538
- activeKernel,
16539
- authenticated,
16540
- embeddedWallet,
16541
- kernels,
16542
- hookOptions.sessionSmartAccountAddress,
16543
- hookOptions.authorizationSession,
16544
- promptSignMessage,
16545
- promptSignTypedData,
16546
- readExecution,
16547
- ready,
16548
- zeroDevProjectId
16549
- ]);
17250
+ const canUseLocalSigner = ready && authenticated && Boolean(embeddedWallet);
17251
+ const canUseAuthorizationSession = signerMode === "silent" && Boolean(hookOptions.authorizationSession?.serializedPermissionAccount) && (hookOptions.authorizationSession?.expiresAt ?? 0) > Math.floor(Date.now() / 1e3);
17252
+ if (!canUseLocalSigner && !canUseAuthorizationSession) {
17253
+ const nextError = new Error(
17254
+ getZeroDevReadinessMessage({
17255
+ ready,
17256
+ authenticated,
17257
+ embeddedWalletCount: wallets.filter((wallet) => wallet.walletClientType === "privy").length,
17258
+ walletCount: wallets.length
17259
+ })
17260
+ );
17261
+ debugWarn("[fluent zerodev] initialize blocked", {
17262
+ message: nextError.message,
17263
+ ready,
17264
+ authenticated,
17265
+ embeddedWalletCount: wallets.filter((wallet) => wallet.walletClientType === "privy").length,
17266
+ walletCount: wallets.length
17267
+ });
17268
+ setError(nextError);
17269
+ if (options.throwOnError) throw nextError;
17270
+ return null;
17271
+ }
17272
+ if (initPromise.current[signerMode]) {
17273
+ debugLog("[fluent zerodev] joining in-flight initialization");
17274
+ return initPromise.current[signerMode];
17275
+ }
17276
+ if (!zeroDevProjectId) {
17277
+ setKernels({});
17278
+ setSmartAccountReady(false);
17279
+ setError(null);
17280
+ debugWarn("[fluent zerodev] initialize blocked: project id missing");
17281
+ return null;
17282
+ }
17283
+ setSmartAccountReady(Boolean(activeKernel));
17284
+ setError(null);
17285
+ initPromise.current[signerMode] = (async () => {
17286
+ debugLog("[fluent zerodev] initializing", {
17287
+ signerMode,
17288
+ hasEmbeddedWallet: Boolean(embeddedWallet),
17289
+ walletClientType: embeddedWallet?.walletClientType
17290
+ });
17291
+ const nextKernel = canUseAuthorizationSession ? await createFluentZeroDevAuthorizedSessionKernel(
17292
+ hookOptions.authorizationSession,
17293
+ chain,
17294
+ readExecution
17295
+ ) : await createFluentZeroDevKernel({
17296
+ wallet: embeddedWallet,
17297
+ signerMode,
17298
+ promptedSigners: {
17299
+ signMessage: promptSignMessage,
17300
+ signTypedData: promptSignTypedData
17301
+ },
17302
+ chain,
17303
+ readExecution
17304
+ });
17305
+ if (hookOptions.sessionSmartAccountAddress && nextKernel.smartAccountAddress.toLowerCase() !== hookOptions.sessionSmartAccountAddress.toLowerCase()) {
17306
+ throw new Error("Fluent Connect signer does not control the connected smart account");
17307
+ }
17308
+ debugLog("[fluent zerodev] ready", {
17309
+ signerMode,
17310
+ smartAccountAddress: nextKernel.smartAccountAddress
17311
+ });
17312
+ setKernels((current) => ({ ...current, [signerMode]: nextKernel }));
17313
+ setSmartAccountReady(true);
17314
+ return nextKernel;
17315
+ })();
17316
+ try {
17317
+ return await initPromise.current[signerMode];
17318
+ } catch (err) {
17319
+ const nextError = err instanceof Error ? err : new Error("Failed to create ZeroDev account");
17320
+ debugError("[fluent zerodev] initialization failed", nextError);
17321
+ setKernels((current) => {
17322
+ const { [signerMode]: _failed, ...rest } = current;
17323
+ setSmartAccountReady(Object.keys(rest).length > 0);
17324
+ return rest;
17325
+ });
17326
+ setError(nextError);
17327
+ if (options.throwOnError) throw nextError;
17328
+ return null;
17329
+ } finally {
17330
+ delete initPromise.current[signerMode];
17331
+ }
17332
+ },
17333
+ [
17334
+ activeKernel,
17335
+ authenticated,
17336
+ embeddedWallet,
17337
+ kernels,
17338
+ hookOptions.sessionSmartAccountAddress,
17339
+ hookOptions.authorizationSession,
17340
+ promptSignMessage,
17341
+ promptSignTypedData,
17342
+ readExecution,
17343
+ ready,
17344
+ zeroDevProjectId
17345
+ ]
17346
+ );
16550
17347
  useEffect(() => {
16551
17348
  if (!ready) return;
16552
17349
  if (!authenticated) {
@@ -16720,11 +17517,7 @@ async function sendCalls(context, calls, options, readyAccount) {
16720
17517
  }))
16721
17518
  });
16722
17519
  const signerChainCheck = execution.chainCheckBeforeSign ? readFluentSignerChainCheck(executionKernel.account) : void 0;
16723
- const signingAccount = signerChainCheck ? withFluentSignerChainCheck(
16724
- executionKernel.account,
16725
- ["signUserOperation"],
16726
- signerChainCheck
16727
- ) : executionKernel.account;
17520
+ const signingAccount = signerChainCheck ? withFluentSignerChainCheck(executionKernel.account, ["signUserOperation"], signerChainCheck) : executionKernel.account;
16728
17521
  try {
16729
17522
  const submissionStartedAt = monotonicNow();
16730
17523
  const submissions = [];
@@ -16929,7 +17722,8 @@ function readUserOperationPaymaster(receipt) {
16929
17722
  }
16930
17723
  function getZeroDevReadinessMessage(params) {
16931
17724
  if (!params.ready) return "Privy wallet context is still loading";
16932
- if (!params.authenticated) return "Fluent session is connected, but Privy embedded wallet is not authenticated on this page";
17725
+ if (!params.authenticated)
17726
+ return "Fluent session is connected, but Privy embedded wallet is not authenticated on this page";
16933
17727
  if (params.embeddedWalletCount === 0) {
16934
17728
  return `Privy is authenticated, but no embedded wallet is available (${params.walletCount} linked wallets found)`;
16935
17729
  }
@@ -17102,9 +17896,13 @@ function toSilentPrivyLocalAccount(wallet) {
17102
17896
  try {
17103
17897
  const signature = await provider.request({
17104
17898
  method: "personal_sign",
17105
- params: [isHex(formattedMessage) ? formattedMessage : stringToHex(formattedMessage), wallet.address]
17899
+ params: [
17900
+ isHex(formattedMessage) ? formattedMessage : stringToHex(formattedMessage),
17901
+ wallet.address
17902
+ ]
17106
17903
  });
17107
- if (typeof signature !== "string") throw new Error("Privy embedded wallet returned an invalid signature");
17904
+ if (typeof signature !== "string")
17905
+ throw new Error("Privy embedded wallet returned an invalid signature");
17108
17906
  debugLog("[fluent zerodev] embedded provider signature ready", {
17109
17907
  signatureLength: signature.length
17110
17908
  });
@@ -17156,7 +17954,8 @@ function stringifyTypedDataForProvider(value) {
17156
17954
  }
17157
17955
  function formatSignableMessageForPrivy(message2) {
17158
17956
  if (typeof message2 === "string") return message2;
17159
- if ("raw" in message2) return typeof message2.raw === "string" ? message2.raw : bytesToHex(message2.raw);
17957
+ if ("raw" in message2)
17958
+ return typeof message2.raw === "string" ? message2.raw : bytesToHex(message2.raw);
17160
17959
  return String(message2);
17161
17960
  }
17162
17961
  async function ensureWalletOnFluentChain(wallet, chain) {
@@ -17198,7 +17997,9 @@ async function ensureWalletOnFluentChain(wallet, chain) {
17198
17997
  const nextChainId = await getProviderChainId(provider);
17199
17998
  debugLog("[fluent zerodev] provider chain after switch", nextChainId);
17200
17999
  if (nextChainId !== targetChainId) {
17201
- throw new Error(`Unsupported chainId ${Number(BigInt(nextChainId))}; switch to ${chain.name}`);
18000
+ throw new Error(
18001
+ `Unsupported chainId ${Number(BigInt(nextChainId))}; switch to ${chain.name}`
18002
+ );
17202
18003
  }
17203
18004
  return;
17204
18005
  }
@@ -17261,31 +18062,51 @@ function TransactionReviewScreen({
17261
18062
  }
17262
18063
  ) : "Fluent account" }),
17263
18064
  /* @__PURE__ */ jsxs(DetailRow, { label: "Network", children: [
17264
- /* @__PURE__ */ jsx("span", { className: `flex size-5 items-center justify-center rounded-full ${badge.bgClassName}`, children: /* @__PURE__ */ jsx(Icon, { name: badge.icon, className: `size-3 ${badge.iconClassName}` }) }),
18065
+ /* @__PURE__ */ jsx(
18066
+ "span",
18067
+ {
18068
+ className: `flex size-5 items-center justify-center rounded-full ${badge.bgClassName}`,
18069
+ children: /* @__PURE__ */ jsx(Icon, { name: badge.icon, className: `size-3 ${badge.iconClassName}` })
18070
+ }
18071
+ ),
17265
18072
  chainName
17266
18073
  ] })
17267
18074
  ] }),
17268
- /* @__PURE__ */ jsx("dl", { className: "flex flex-col gap-5 rounded-2xl bg-neutral-900 p-4 text-sm", "aria-label": "Transaction calls", children: calls.map((call, index) => {
17269
- const label = call.label ?? operation.calls[index]?.method ?? "Contract call";
17270
- return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
17271
- /* @__PURE__ */ jsx(DetailRow, { label, children: /* @__PURE__ */ jsx(
17272
- HashMenu,
17273
- {
17274
- hash: call.to,
17275
- url: explorerAddress(call.to, network),
17276
- onOpen: openExplorer,
17277
- label: "Contract address"
17278
- }
17279
- ) }),
17280
- call.value > 0n ? /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-3 text-xs text-muted-foreground", children: [
17281
- /* @__PURE__ */ jsx("span", { children: "Value" }),
17282
- /* @__PURE__ */ jsxs("span", { className: "font-medium text-foreground/80", title: `${call.value.toString()} wei`, children: [
17283
- formatAmount(call.value, 18),
17284
- " ETH"
17285
- ] })
17286
- ] }) : null
17287
- ] }, call.id ?? `${call.to}-${index}`);
17288
- }) }),
18075
+ /* @__PURE__ */ jsx(
18076
+ "dl",
18077
+ {
18078
+ className: "flex flex-col gap-5 rounded-2xl bg-neutral-900 p-4 text-sm",
18079
+ "aria-label": "Transaction calls",
18080
+ children: calls.map((call, index) => {
18081
+ const label = call.label ?? operation.calls[index]?.method ?? "Contract call";
18082
+ return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
18083
+ /* @__PURE__ */ jsx(DetailRow, { label, children: /* @__PURE__ */ jsx(
18084
+ HashMenu,
18085
+ {
18086
+ hash: call.to,
18087
+ url: explorerAddress(call.to, network),
18088
+ onOpen: openExplorer,
18089
+ label: "Contract address"
18090
+ }
18091
+ ) }),
18092
+ call.value > 0n ? /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-3 text-xs text-muted-foreground", children: [
18093
+ /* @__PURE__ */ jsx("span", { children: "Value" }),
18094
+ /* @__PURE__ */ jsxs(
18095
+ "span",
18096
+ {
18097
+ className: "font-medium text-foreground/80",
18098
+ title: `${call.value.toString()} wei`,
18099
+ children: [
18100
+ formatAmount(call.value, 18),
18101
+ " ETH"
18102
+ ]
18103
+ }
18104
+ )
18105
+ ] }) : null
18106
+ ] }, call.id ?? `${call.to}-${index}`);
18107
+ })
18108
+ }
18109
+ ),
17289
18110
  /* @__PURE__ */ jsxs("div", { className: "mt-auto flex flex-col gap-2 pt-2", children: [
17290
18111
  /* @__PURE__ */ jsx(Button, { type: "button", onClick: onConfirm, children: "Confirm and sign" }),
17291
18112
  /* @__PURE__ */ jsx(Button, { type: "button", variant: "secondary", onClick: onCancel, children: "Cancel" })
@@ -17325,7 +18146,17 @@ function ReviewDialog({
17325
18146
  /* @__PURE__ */ jsx("span", { className: "text-xs font-black uppercase text-[#49eded]", children: eyebrow }),
17326
18147
  /* @__PURE__ */ jsx("h2", { className: "mt-1 text-2xl leading-[30px] font-medium", children: title })
17327
18148
  ] }),
17328
- /* @__PURE__ */ jsx(Button, { type: "button", variant: "secondary", size: "icon", "aria-label": "Close", onClick: onCancel, children: /* @__PURE__ */ jsx(X, { className: "size-4", "aria-hidden": true }) })
18149
+ /* @__PURE__ */ jsx(
18150
+ Button,
18151
+ {
18152
+ type: "button",
18153
+ variant: "secondary",
18154
+ size: "icon",
18155
+ "aria-label": "Close",
18156
+ onClick: onCancel,
18157
+ children: /* @__PURE__ */ jsx(X, { className: "size-4", "aria-hidden": true })
18158
+ }
18159
+ )
17329
18160
  ] }),
17330
18161
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-3 rounded-xl border border-[#49eded]/20 bg-[#49eded]/10 p-3", children: [
17331
18162
  /* @__PURE__ */ jsx("span", { className: "text-xs text-white/65", children: "Signing account" }),
@@ -17453,9 +18284,7 @@ function movePreservingState(parent, node, before) {
17453
18284
  parent.insertBefore(node, before);
17454
18285
  }
17455
18286
  function isModalDialog(dialog) {
17456
- const native = /\[native code\]/.test(
17457
- String(Object.getPrototypeOf(dialog).showModal ?? "")
17458
- );
18287
+ const native = /\[native code\]/.test(String(Object.getPrototypeOf(dialog).showModal ?? ""));
17459
18288
  if (!native) return true;
17460
18289
  try {
17461
18290
  return dialog.matches(":modal");
@@ -17688,9 +18517,8 @@ function presentWidgetAccount(params) {
17688
18517
  hasConnectedAccount: true,
17689
18518
  connecting: false,
17690
18519
  status: "connected",
17691
- // The rebuilt subtree may already know an address — the session hydrates
17692
- // synchronously — and what it knows wins; the snapshot only fills the gaps,
17693
- // so the button keeps its label instead of falling back to "Connected".
18520
+ // An address the account already knows wins (the session hydrates synchronously); the
18521
+ // snapshot only fills the gaps, so the button keeps its label instead of "Connected".
17694
18522
  fluentAccountAddress: derived.fluentAccountAddress ?? rebuilding.fluentAccountAddress,
17695
18523
  connectedAddress: derived.connectedAddress ?? rebuilding.connectedAddress,
17696
18524
  accountMenuAddress: derived.accountMenuAddress ?? rebuilding.accountMenuAddress,
@@ -17728,9 +18556,7 @@ function useWidgetAccount(input) {
17728
18556
  );
17729
18557
  }
17730
18558
  function resolveGasPaymentSelection(params) {
17731
- const selected = params.availableTokens.find(
17732
- (token) => token.symbol === params.gasPaymentToken
17733
- );
18559
+ const selected = params.availableTokens.find((token) => token.symbol === params.gasPaymentToken);
17734
18560
  return {
17735
18561
  symbol: params.gasPaymentToken,
17736
18562
  token: selected && "address" in selected ? selected.address : void 0,
@@ -17739,10 +18565,7 @@ function resolveGasPaymentSelection(params) {
17739
18565
  }
17740
18566
  function useGasPaymentSelection(params) {
17741
18567
  const { gasPaymentToken, network, silentSigningEnabled } = params;
17742
- const availableTokens = useMemo(
17743
- () => getFluentDefaultWidgetGasTokens(network),
17744
- [network]
17745
- );
18568
+ const availableTokens = useMemo(() => getFluentDefaultWidgetGasTokens(network), [network]);
17746
18569
  const selectedGasPaymentToken = useMemo(
17747
18570
  () => resolveGasPaymentSelection({ gasPaymentToken, availableTokens }),
17748
18571
  [gasPaymentToken, availableTokens]
@@ -18147,7 +18970,9 @@ function useWidgetExecution(params) {
18147
18970
  const signApi = useMemo(
18148
18971
  () => createFluentSignApi({
18149
18972
  account: widgetAccount,
18150
- origin: window.location.origin,
18973
+ // The page asking, for the Review to show. A server render reaches no Review, since
18974
+ // `confirm` is a person's answer to a dialog, and the first client render recomputes this.
18975
+ origin: typeof window === "undefined" ? "" : window.location.origin,
18151
18976
  silentSigning: defaultSigningMode === "silent",
18152
18977
  confirm: confirmSignature,
18153
18978
  ensureReady: async (options) => {
@@ -18433,11 +19258,9 @@ function useFluentDepositSwap({
18433
19258
  reading = true;
18434
19259
  try {
18435
19260
  if (bridging.baseline === void 0) {
18436
- const baseline = await readFluentTokenBalance(
18437
- clients.destination,
18438
- token,
18439
- address
18440
- ).catch(() => void 0);
19261
+ const baseline = await readFluentTokenBalance(clients.destination, token, address).catch(
19262
+ () => void 0
19263
+ );
18441
19264
  if (active && baseline !== void 0) {
18442
19265
  commit(subjectKey, { phase: "bridging", deposit: { ...bridging, baseline } });
18443
19266
  }
@@ -18578,17 +19401,7 @@ function useFluentDepositSwap({
18578
19401
  inFlight.current = false;
18579
19402
  }
18580
19403
  },
18581
- [
18582
- address,
18583
- clients,
18584
- commit,
18585
- contracts,
18586
- gasSymbol,
18587
- refreshBalances,
18588
- subjectKey,
18589
- track,
18590
- widget
18591
- ]
19404
+ [address, clients, commit, contracts, gasSymbol, refreshBalances, subjectKey, track, widget]
18592
19405
  );
18593
19406
  const runRef = useRef(run);
18594
19407
  runRef.current = run;
@@ -18953,7 +19766,10 @@ function toSettingsError(err) {
18953
19766
  const code = err.body?.code ?? "request_failed";
18954
19767
  return new FluentSettingsError(code, err.message, err.status);
18955
19768
  }
18956
- return new FluentSettingsError("request_failed", err instanceof Error ? err.message : String(err));
19769
+ return new FluentSettingsError(
19770
+ "request_failed",
19771
+ err instanceof Error ? err.message : String(err)
19772
+ );
18957
19773
  }
18958
19774
  function toUserSettings(wire) {
18959
19775
  const tokens = [];
@@ -19001,7 +19817,10 @@ function createFluentSettingsClient(params) {
19001
19817
  if (patch.quickSign !== void 0) body.quick_sign = patch.quickSign;
19002
19818
  if (patch.gasTokenSymbol !== void 0) body.gas_token_symbol = patch.gasTokenSymbol;
19003
19819
  if (Object.keys(body).length === 0) {
19004
- throw new FluentSettingsError("invalid_request", "A settings patch needs at least one field.");
19820
+ throw new FluentSettingsError(
19821
+ "invalid_request",
19822
+ "A settings patch needs at least one field."
19823
+ );
19005
19824
  }
19006
19825
  return toUserSettings(await call("/me/settings", { method: "PATCH", body }));
19007
19826
  },
@@ -19652,10 +20471,7 @@ function useAuthToken(params, state) {
19652
20471
  walletClient
19653
20472
  ]
19654
20473
  );
19655
- const getAuthToken = useCallback(
19656
- () => requestSponsorshipToken(),
19657
- [requestSponsorshipToken]
19658
- );
20474
+ const getAuthToken = useCallback(() => requestSponsorshipToken(), [requestSponsorshipToken]);
19659
20475
  const endSession = useCallback(async () => {
19660
20476
  tokenState.current.cache = null;
19661
20477
  tokenState.current.inFlight = null;
@@ -19667,15 +20483,7 @@ function useAuthToken(params, state) {
19667
20483
  walletAddress,
19668
20484
  storage
19669
20485
  });
19670
- }, [
19671
- accountType,
19672
- appId,
19673
- privyUserId,
19674
- publicApiUrl,
19675
- storage,
19676
- tokenState,
19677
- walletAddress
19678
- ]);
20486
+ }, [accountType, appId, privyUserId, publicApiUrl, storage, tokenState, walletAddress]);
19679
20487
  return { getAuthToken, requestSponsorshipToken, endAuthSession: endSession };
19680
20488
  }
19681
20489
  function createUserSettingsRefValue() {
@@ -19754,9 +20562,7 @@ function useUserSettings(params) {
19754
20562
  [privyUserId, walletAddress]
19755
20563
  );
19756
20564
  const knownSubjects = useMemo(
19757
- () => identities.map(
19758
- (identity) => authTokenCacheKey({ publicApiUrl, appId, subject: identity })
19759
- ),
20565
+ () => identities.map((identity) => authTokenCacheKey({ publicApiUrl, appId, subject: identity })),
19760
20566
  [appId, identities, publicApiUrl]
19761
20567
  );
19762
20568
  useEffect(() => {
@@ -19877,10 +20683,7 @@ function DrawerPortal({ container, children, ...props }) {
19877
20683
  }
19878
20684
  );
19879
20685
  }
19880
- function DrawerOverlay({
19881
- className,
19882
- ...props
19883
- }) {
20686
+ function DrawerOverlay({ className, ...props }) {
19884
20687
  return /* @__PURE__ */ jsx(
19885
20688
  Drawer$1.Backdrop,
19886
20689
  {
@@ -19893,10 +20696,7 @@ function DrawerOverlay({
19893
20696
  }
19894
20697
  );
19895
20698
  }
19896
- function DrawerSwipeHandle({
19897
- className,
19898
- ...props
19899
- }) {
20699
+ function DrawerSwipeHandle({ className, ...props }) {
19900
20700
  return /* @__PURE__ */ jsx(
19901
20701
  "div",
19902
20702
  {
@@ -19910,11 +20710,7 @@ function DrawerSwipeHandle({
19910
20710
  }
19911
20711
  );
19912
20712
  }
19913
- function DrawerContent({
19914
- className,
19915
- children,
19916
- ...props
19917
- }) {
20713
+ function DrawerContent({ className, children, ...props }) {
19918
20714
  const { hasSnapPoints, modal, showSwipeHandle, swipeDirection } = useDrawer();
19919
20715
  const swipeAxis = swipeDirection === "down" || swipeDirection === "up" ? "y" : "x";
19920
20716
  return /* @__PURE__ */ jsxs(DrawerPortal, { "data-slot": "drawer-portal", children: [
@@ -19996,10 +20792,7 @@ function DrawerTitle({ className, ...props }) {
19996
20792
  Drawer$1.Title,
19997
20793
  {
19998
20794
  "data-slot": "drawer-title",
19999
- className: cn(
20000
- "text-base font-medium text-foreground",
20001
- className
20002
- ),
20795
+ className: cn("text-base font-medium text-foreground", className),
20003
20796
  ...props
20004
20797
  }
20005
20798
  );
@@ -20318,7 +21111,7 @@ function FluentWidgetContent({
20318
21111
  sponsorshipUrl: resolvedConfig.sponsorshipUrl,
20319
21112
  sponsorshipTokenSource: readSponsorshipTokenSource,
20320
21113
  // Passed on every render, not captured once: the hook reads these settings at the moment a
20321
- // send or a signature needs them, so a host that changes them is obeyed by the next one
21114
+ // send or a signature needs them, so an App that changes them is obeyed by the next one
20322
21115
  // without the kernel being rebuilt.
20323
21116
  execution: resolvedConfig.execution
20324
21117
  });
@@ -20335,7 +21128,13 @@ function FluentWidgetContent({
20335
21128
  const { refreshUser } = useUser2();
20336
21129
  const activeWallet = wallet ?? internalWallet;
20337
21130
  const { chain } = useFluentWidgetNetwork();
20338
- const fluentConnect = useMemo(() => createFluentConnectForWidget(config), [config]);
21131
+ const fluentConnectRef = useRef(null);
21132
+ const getFluentConnect = useCallback(() => {
21133
+ if (fluentConnectRef.current?.config !== config) {
21134
+ fluentConnectRef.current = { config, sdk: createFluentConnectForWidget(config) };
21135
+ }
21136
+ return fluentConnectRef.current.sdk;
21137
+ }, [config]);
20339
21138
  const directAuthRequested = useRef(
20340
21139
  (() => {
20341
21140
  try {
@@ -20473,46 +21272,49 @@ function FluentWidgetContent({
20473
21272
  openConnectFlow();
20474
21273
  }, [hasConnectedAccount, openConnectFlow]);
20475
21274
  const openConnect = useCallback(() => openConnectFlow(), [openConnectFlow]);
20476
- const handleDisconnect = useCallback(async ({ awaitAuthSession }) => {
20477
- disconnectingRef.current = true;
20478
- let authSessionEnded = Promise.resolve();
20479
- try {
20480
- authSessionEnded = endAuthSessionRef.current?.() ?? Promise.resolve();
20481
- setAccountOpen(false);
20482
- setSession(null);
20483
- resetInitialization();
20484
- setDirectAuthRequested(false);
20485
- directAuthInFlight.current = false;
20486
- fluentConnect.disconnect();
20487
- removeStoredValue(resolveLocalStorage(), FLUENT_WIDGET_IDENTITY_TOKEN_STORAGE_KEY);
20488
- setWalletStatus("Disconnected");
20489
- if (authenticated) {
20490
- try {
20491
- await logout();
20492
- } catch (error) {
20493
- debugWarn("[fluent widget] Privy logout failed", error);
21275
+ const handleDisconnect = useCallback(
21276
+ async ({ awaitAuthSession }) => {
21277
+ disconnectingRef.current = true;
21278
+ let authSessionEnded = Promise.resolve();
21279
+ try {
21280
+ authSessionEnded = endAuthSessionRef.current?.() ?? Promise.resolve();
21281
+ setAccountOpen(false);
21282
+ setSession(null);
21283
+ resetInitialization();
21284
+ setDirectAuthRequested(false);
21285
+ directAuthInFlight.current = false;
21286
+ getFluentConnect().disconnect();
21287
+ removeStoredValue(resolveLocalStorage(), FLUENT_WIDGET_IDENTITY_TOKEN_STORAGE_KEY);
21288
+ setWalletStatus("Disconnected");
21289
+ if (authenticated) {
21290
+ try {
21291
+ await logout();
21292
+ } catch (error) {
21293
+ debugWarn("[fluent widget] Privy logout failed", error);
21294
+ }
20494
21295
  }
21296
+ commitSilentSigningEnabled(FLUENT_CONNECT_DEFAULT_SILENT_SIGNING);
21297
+ connectedPresentation.current.connected = null;
21298
+ connectedPresentation.current.rebuilding = null;
21299
+ clearPrivyRecentLoginMethod(getFluentPrivyAppId(resolvedConfig.network));
21300
+ if (activeWallet?.connected) activeWallet.disconnect();
21301
+ } finally {
21302
+ disconnectingRef.current = false;
20495
21303
  }
20496
- commitSilentSigningEnabled(FLUENT_CONNECT_DEFAULT_SILENT_SIGNING);
20497
- connectedPresentation.current.connected = null;
20498
- connectedPresentation.current.rebuilding = null;
20499
- clearPrivyRecentLoginMethod(getFluentPrivyAppId(resolvedConfig.network));
20500
- if (activeWallet?.connected) activeWallet.disconnect();
20501
- } finally {
20502
- disconnectingRef.current = false;
20503
- }
20504
- if (awaitAuthSession) await authSessionEnded;
20505
- }, [
20506
- activeWallet,
20507
- authenticated,
20508
- commitSilentSigningEnabled,
20509
- connectedPresentation,
20510
- fluentConnect,
20511
- logout,
20512
- resolvedConfig.network,
20513
- setDirectAuthRequested,
20514
- setSession
20515
- ]);
21304
+ if (awaitAuthSession) await authSessionEnded;
21305
+ },
21306
+ [
21307
+ activeWallet,
21308
+ authenticated,
21309
+ commitSilentSigningEnabled,
21310
+ connectedPresentation,
21311
+ getFluentConnect,
21312
+ logout,
21313
+ resolvedConfig.network,
21314
+ setDirectAuthRequested,
21315
+ setSession
21316
+ ]
21317
+ );
20516
21318
  const requestDisconnect = useCallback(() => {
20517
21319
  track("wallet_disconnected");
20518
21320
  return handleDisconnect({ awaitAuthSession: true });
@@ -20547,9 +21349,7 @@ function FluentWidgetContent({
20547
21349
  cancelReviewRef.current();
20548
21350
  return;
20549
21351
  }
20550
- setWalletMenuTab(
20551
- WALLET_MENU_SUB_PAGES[walletMenuTab]?.parent ?? lastMenuTabRef.current
20552
- );
21352
+ setWalletMenuTab(WALLET_MENU_SUB_PAGES[walletMenuTab]?.parent ?? lastMenuTabRef.current);
20553
21353
  }, [setWalletMenuTab, walletMenuTab]);
20554
21354
  const { faucetBusy, claimFaucet } = useFaucet({
20555
21355
  session,
@@ -20580,7 +21380,7 @@ function FluentWidgetContent({
20580
21380
  setWalletStatus(smartAccount.error?.message ?? "Waiting for ZeroDev smart account");
20581
21381
  return;
20582
21382
  }
20583
- const app = fluentConnect.status().app;
21383
+ const app = getFluentConnect().status().app;
20584
21384
  const nextSession = createLocalFluentSession({
20585
21385
  app,
20586
21386
  appId: resolvedConfig.appId,
@@ -20596,8 +21396,12 @@ function FluentWidgetContent({
20596
21396
  setSession(nextSession);
20597
21397
  track("connect_login_completed");
20598
21398
  resetInitialization();
20599
- fluentConnect.setSession(nextSession);
20600
- writeStoredValue(resolveLocalStorage(), FLUENT_WIDGET_IDENTITY_TOKEN_STORAGE_KEY, identityToken);
21399
+ getFluentConnect().setSession(nextSession);
21400
+ writeStoredValue(
21401
+ resolveLocalStorage(),
21402
+ FLUENT_WIDGET_IDENTITY_TOKEN_STORAGE_KEY,
21403
+ identityToken
21404
+ );
20601
21405
  setWalletStatus("Wallet connected!");
20602
21406
  setConnectOpen(false);
20603
21407
  setDirectAuthRequested(false);
@@ -20617,7 +21421,7 @@ function FluentWidgetContent({
20617
21421
  authenticated,
20618
21422
  privyReady,
20619
21423
  embeddedWalletCount,
20620
- fluentConnect,
21424
+ getFluentConnect,
20621
21425
  identityToken,
20622
21426
  resolvedConfig.scopes,
20623
21427
  session,
@@ -20746,16 +21550,13 @@ function FluentWidgetContent({
20746
21550
  const [pendingTransfers, setPendingTransfers] = useState([]);
20747
21551
  const pendingTransferCount = useRef(0);
20748
21552
  const [sentTransfer, setSentTransfer] = useState(null);
20749
- const beginTransfer = useCallback(
20750
- (transfer) => {
20751
- const id = `pending-${pendingTransferCount.current += 1}`;
20752
- setPendingTransfers((list) => [...list, { ...transfer, id }]);
20753
- setSentTransfer({ ...transfer, id });
20754
- setWalletMenuPanel("activity");
20755
- return id;
20756
- },
20757
- []
20758
- );
21553
+ const beginTransfer = useCallback((transfer) => {
21554
+ const id = `pending-${pendingTransferCount.current += 1}`;
21555
+ setPendingTransfers((list) => [...list, { ...transfer, id }]);
21556
+ setSentTransfer({ ...transfer, id });
21557
+ setWalletMenuPanel("activity");
21558
+ return id;
21559
+ }, []);
20759
21560
  const endTransfer = useCallback((id) => {
20760
21561
  setPendingTransfers((list) => list.filter((transfer) => transfer.id !== id));
20761
21562
  setSentTransfer((transfer) => transfer?.id === id && !transfer.hash ? null : transfer);
@@ -20964,7 +21765,9 @@ function FluentWidgetContent({
20964
21765
  };
20965
21766
  timer = setTimeout(() => {
20966
21767
  settle(
20967
- () => reject(new FluentAuthError("link_failed", "Privy did not sign the previous session out."))
21768
+ () => reject(
21769
+ new FluentAuthError("link_failed", "Privy did not sign the previous session out.")
21770
+ )
20968
21771
  );
20969
21772
  }, LINK_X_IDENTITY_TOKEN_TIMEOUT_MS);
20970
21773
  linkXInputs.current.logout().then(
@@ -21144,7 +21947,7 @@ function FluentWidgetContent({
21144
21947
  linkXReturnWaiter.current = { subject, settle };
21145
21948
  settleLinkXReturnFor(subject);
21146
21949
  }),
21147
- // Same reason as the effect: the conditions are read from the ref, not captured.
21950
+ // As for the effect: the conditions are read from the ref, not captured.
21148
21951
  // eslint-disable-next-line react-hooks/exhaustive-deps
21149
21952
  []
21150
21953
  );
@@ -21173,21 +21976,16 @@ function FluentWidgetContent({
21173
21976
  session: live.privyUser,
21174
21977
  fluentSessionUserId: live.sessionUserId,
21175
21978
  logout: logoutPrivyForLinkX,
21176
- // Thunks on purpose: Privy's functions of the render that is current when each is
21177
- // called, not of the one this `linkX()` started on. See `linkXSiwe`.
21178
- // Each Privy step bounded (`LINK_X_SIWE_STEP_TIMEOUT_MS`): one that never answers is a
21179
- // `link_failed` naming the likely cause, not a promise the integrator holds forever.
21979
+ // Thunks: Privy's functions of the render current at each call (see `linkXSiwe`), each
21980
+ // bounded by `LINK_X_SIWE_STEP_TIMEOUT_MS` and rejecting with `link_failed` after it.
21180
21981
  generateSiweMessage: (input) => bounded(
21181
21982
  linkXSiweOrRefuse().generateSiweMessage(input),
21182
21983
  LINK_X_SIWE_STEP_TIMEOUT_MS,
21183
21984
  siweStepTimedOut("generate the sign-in message")
21184
21985
  ),
21185
- // Marked in flight before Privy is asked, and the user it signed in remembered, so
21186
- // the renders Privy makes of that user read as a wallet's session, never a Fluent ID's.
21187
- // See `walletUserPrivySession`. Both follow Privy's own answer, not the bound: a login
21188
- // Privy completes after the bound ran out still signs somebody in on this page, and
21189
- // that somebody is a wallet's session here as much as one signed in on time. Until
21190
- // Privy answers, the flag stays up.
21986
+ // Marked in flight before Privy is asked, and the user it signs in remembered, so their
21987
+ // renders read as a wallet's session (`walletUserPrivySession`). Both follow Privy's
21988
+ // answer, not the bound: a login completed after the timeout still signs somebody in.
21191
21989
  loginWithSiwe: (input) => {
21192
21990
  const logins = linkXSiweLogins.current;
21193
21991
  logins.pending = true;
@@ -21207,7 +22005,11 @@ function FluentWidgetContent({
21207
22005
  logins.pending = false;
21208
22006
  }
21209
22007
  );
21210
- return bounded(login2, LINK_X_SIWE_STEP_TIMEOUT_MS, siweStepTimedOut("sign the wallet in"));
22008
+ return bounded(
22009
+ login2,
22010
+ LINK_X_SIWE_STEP_TIMEOUT_MS,
22011
+ siweStepTimedOut("sign the wallet in")
22012
+ );
21211
22013
  }
21212
22014
  },
21213
22015
  publicApiUrl: resolvedConfig.publicApiUrl,
@@ -21218,14 +22020,9 @@ function FluentWidgetContent({
21218
22020
  linkTwitter: linkTwitterForLinkX,
21219
22021
  storage
21220
22022
  });
21221
- }, [
21222
- awaitLinkXReturn,
21223
- linkTwitterForLinkX,
21224
- logoutPrivyForLinkX,
21225
- resolvedConfig.publicApiUrl
21226
- ]);
22023
+ }, [awaitLinkXReturn, linkTwitterForLinkX, logoutPrivyForLinkX, resolvedConfig.publicApiUrl]);
21227
22024
  const sessionPrivyUserId = session?.user?.id;
21228
- const fluentIdRebuilding = Boolean(sessionPrivyUserId) && smartAccount.smartAccountEnabled && !derivedAccount.fluentAccountReady && !smartAccount.error;
22025
+ const fluentIdRebuilding = Boolean(sessionPrivyUserId) && smartAccount.smartAccountEnabled && !derivedAccount.fluentAccountReady;
21229
22026
  const settingsAccountKind = fluentIdRebuilding ? void 0 : widgetAccount.type;
21230
22027
  const {
21231
22028
  userTokenStore,
@@ -21241,18 +22038,14 @@ function FluentWidgetContent({
21241
22038
  network: resolvedConfig.network,
21242
22039
  accountType: settingsAccountKind,
21243
22040
  defaultGasToken: resolvedConfig.gasPayment.defaultToken,
21244
- // The session names the same person through the ticks on which the rebuilt
21245
- // Privy cannot yet, so the held subject stays a known one.
22041
+ // The stored session names the person before Privy has restored them, so the held subject
22042
+ // stays a known one.
21246
22043
  privyUserId: user?.id ?? sessionPrivyUserId,
21247
22044
  identityToken,
21248
22045
  walletAddress: activeWallet?.address,
21249
22046
  hasWalletClient: Boolean(activeWallet?.walletClient),
21250
- // `connecting` and `restoring` are exactly the windows in which the account
21251
- // is on its way in: the rebuild that applying Quick sign causes reports
21252
- // `connecting` until the smart account is ready again. Read from the raw
21253
- // derivation, not from what the widget shows: the presentation is held at
21254
- // `connected` through precisely this window, which is the opposite of what
21255
- // the controller has to be told.
22047
+ // The windows in which the account is on its way in, read from the derivation rather than
22048
+ // from what the widget shows.
21256
22049
  settling: fluentIdRebuilding || derivedAccount.status === "connecting" || derivedAccount.status === "restoring",
21257
22050
  getAuthToken,
21258
22051
  commitQuickSign: commitSilentSigningEnabled,
@@ -21525,10 +22318,7 @@ var SILENT_SIGNING_REMOUNT_MS = 220;
21525
22318
  function FluentWidget(props) {
21526
22319
  setDebugLogging(props.debugLogging ?? false);
21527
22320
  const appQueryClient = useContext(QueryClientContext);
21528
- const resolvedConfig = useMemo(
21529
- () => resolveFluentWidgetConfig(props.config),
21530
- [props.config]
21531
- );
22321
+ const resolvedConfig = useMemo(() => resolveFluentWidgetConfig(props.config), [props.config]);
21532
22322
  const [silentSigningEnabled, setSilentSigningEnabled] = useState(
21533
22323
  FLUENT_CONNECT_DEFAULT_SILENT_SIGNING
21534
22324
  );
@@ -21650,13 +22440,9 @@ function FluentWidget(props) {
21650
22440
  customOAuthRedirectUrl: resolvedConfig.customOAuthRedirectUrl
21651
22441
  })
21652
22442
  }),
21653
- [
21654
- props.config?.assets?.fluentLogo,
21655
- resolvedConfig.customOAuthRedirectUrl,
21656
- resolvedNetwork
21657
- ]
22443
+ [props.config?.assets?.fluentLogo, resolvedConfig.customOAuthRedirectUrl, resolvedNetwork]
21658
22444
  );
21659
- useLayoutEffect(() => {
22445
+ useIsomorphicLayoutEffect(() => {
21660
22446
  clearPrivyRecentLoginMethod(privyAppId);
21661
22447
  }, [privyAppId]);
21662
22448
  const applySilentSigningEnabled = useCallback((enabled) => {
@@ -21968,7 +22754,9 @@ function exactOrigin(candidate) {
21968
22754
  origin = void 0;
21969
22755
  }
21970
22756
  if (!origin || origin === "null") {
21971
- throw new Error(`allowedOrigin must be an origin such as https://market.example, got "${candidate}"`);
22757
+ throw new Error(
22758
+ `allowedOrigin must be an origin such as https://market.example, got "${candidate}"`
22759
+ );
21972
22760
  }
21973
22761
  return origin;
21974
22762
  }