@trustware/sdk-staging 1.1.13-staging.1 → 1.1.13-staging.2

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/widget.cjs CHANGED
@@ -593,7 +593,7 @@ var init_constants = __esm({
593
593
  "src/constants.ts"() {
594
594
  "use strict";
595
595
  SDK_NAME = "@trustware/sdk";
596
- SDK_VERSION = "1.1.13-staging.1";
596
+ SDK_VERSION = "1.1.13-staging.2";
597
597
  API_ROOT = "https://bv-staging-api.trustware.io";
598
598
  GTM_ID = "GTM-TZDGNCXB";
599
599
  API_PREFIX = "/api";
@@ -6136,7 +6136,6 @@ function useGTMTracker() {
6136
6136
  return { trackEvent, trackPageView, setUserProperty, directGtag };
6137
6137
  }
6138
6138
  function useGTM(gtmId) {
6139
- const scriptRef = (0, import_react7.useRef)(null);
6140
6139
  const tracker = useGTMTracker();
6141
6140
  (0, import_react7.useEffect)(() => {
6142
6141
  if (!isGA4Allowed()) {
@@ -6151,14 +6150,24 @@ function useGTM(gtmId) {
6151
6150
  );
6152
6151
  return;
6153
6152
  }
6154
- if (isContainerInitialized) return;
6153
+ containerRefCount += 1;
6154
+ const release = () => {
6155
+ containerRefCount -= 1;
6156
+ if (containerRefCount > 0) return;
6157
+ if (injectedScript) {
6158
+ injectedScript.parentNode?.removeChild(injectedScript);
6159
+ injectedScript = null;
6160
+ }
6161
+ isContainerInitialized = false;
6162
+ };
6163
+ if (isContainerInitialized) return release;
6155
6164
  const alreadyLoaded = document.querySelector(
6156
6165
  `script[src*="googletagmanager.com/gtm.js?id=${gtmId}"]`
6157
6166
  );
6158
6167
  if (alreadyLoaded) {
6159
6168
  window.dataLayer = window.dataLayer || [];
6160
6169
  isContainerInitialized = true;
6161
- return;
6170
+ return release;
6162
6171
  }
6163
6172
  window.dataLayer = window.dataLayer || [];
6164
6173
  window.dataLayer.push({
@@ -6170,15 +6179,9 @@ function useGTM(gtmId) {
6170
6179
  script.async = true;
6171
6180
  script.src = `https://www.googletagmanager.com/gtm.js?id=${gtmId}`;
6172
6181
  firstScript.parentNode?.insertBefore(script, firstScript);
6173
- scriptRef.current = script;
6182
+ injectedScript = script;
6174
6183
  isContainerInitialized = true;
6175
- return () => {
6176
- if (scriptRef.current) {
6177
- scriptRef.current.parentNode?.removeChild(scriptRef.current);
6178
- scriptRef.current = null;
6179
- }
6180
- isContainerInitialized = false;
6181
- };
6184
+ return release;
6182
6185
  }, [gtmId]);
6183
6186
  const addNoscriptIframe = (0, import_react7.useCallback)(() => {
6184
6187
  if (!isGA4Allowed()) return;
@@ -6196,13 +6199,15 @@ function useGTM(gtmId) {
6196
6199
  }, [gtmId]);
6197
6200
  return { ...tracker, addNoscriptIframe };
6198
6201
  }
6199
- var import_react7, isContainerInitialized;
6202
+ var import_react7, isContainerInitialized, containerRefCount, injectedScript;
6200
6203
  var init_useGTM = __esm({
6201
6204
  "src/hooks/useGTM.ts"() {
6202
6205
  "use strict";
6203
6206
  import_react7 = require("react");
6204
6207
  init_core2();
6205
6208
  isContainerInitialized = false;
6209
+ containerRefCount = 0;
6210
+ injectedScript = null;
6206
6211
  }
6207
6212
  });
6208
6213
 
@@ -33702,6 +33707,23 @@ var init_WidgetRouter = __esm({
33702
33707
  }
33703
33708
  });
33704
33709
 
33710
+ // src/widget/app/WidgetAnalytics.tsx
33711
+ function WidgetAnalytics({
33712
+ children
33713
+ }) {
33714
+ useGTM(GTM_ID);
33715
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx_runtime51.Fragment, { children });
33716
+ }
33717
+ var import_jsx_runtime51;
33718
+ var init_WidgetAnalytics = __esm({
33719
+ "src/widget/app/WidgetAnalytics.tsx"() {
33720
+ "use strict";
33721
+ init_hooks();
33722
+ init_constants();
33723
+ import_jsx_runtime51 = require("react/jsx-runtime");
33724
+ }
33725
+ });
33726
+
33705
33727
  // src/modes/swap/hooks/useSwapRoute.ts
33706
33728
  function useSwapRoute() {
33707
33729
  const [state, setState] = (0, import_react44.useState)({
@@ -34262,6 +34284,36 @@ var init_walletBalance = __esm({
34262
34284
  }
34263
34285
  });
34264
34286
 
34287
+ // src/modes/swap/analytics.ts
34288
+ function chainLabel(chain) {
34289
+ return chain?.networkName ?? chain?.axelarChainName ?? chain?.chainId ?? UNKNOWN;
34290
+ }
34291
+ function tokenLabel(token) {
34292
+ return token?.symbol ?? UNKNOWN;
34293
+ }
34294
+ function buildSwapPaymentParams(ctx) {
34295
+ return {
34296
+ from_chain: chainLabel(ctx.fromChain),
34297
+ from_token: tokenLabel(ctx.fromToken),
34298
+ to_chain: chainLabel(ctx.toChain),
34299
+ to_token: tokenLabel(ctx.toToken),
34300
+ domain: ctx.domain
34301
+ };
34302
+ }
34303
+ function claimAttemptOnce(slot, attempt) {
34304
+ if (!attempt) return false;
34305
+ if (slot.current === attempt) return false;
34306
+ slot.current = attempt;
34307
+ return true;
34308
+ }
34309
+ var UNKNOWN;
34310
+ var init_analytics = __esm({
34311
+ "src/modes/swap/analytics.ts"() {
34312
+ "use strict";
34313
+ UNKNOWN = "unknown";
34314
+ }
34315
+ });
34316
+
34265
34317
  // src/core/forex.ts
34266
34318
  async function fetchForexRates(base2 = "USD") {
34267
34319
  let r;
@@ -34457,7 +34509,7 @@ function SwapTokenSelect({
34457
34509
  (t) => `${Number(t.chainId)}:${t.address.toLowerCase()}` !== excludeKey
34458
34510
  );
34459
34511
  }, [filteredWalletTokens, excludeKey]);
34460
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
34512
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
34461
34513
  "div",
34462
34514
  {
34463
34515
  style: {
@@ -34467,7 +34519,7 @@ function SwapTokenSelect({
34467
34519
  maxHeight: "70vh"
34468
34520
  },
34469
34521
  children: [
34470
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
34522
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
34471
34523
  "div",
34472
34524
  {
34473
34525
  style: {
@@ -34477,7 +34529,7 @@ function SwapTokenSelect({
34477
34529
  borderBottom: `1px solid ${colors.border}`
34478
34530
  },
34479
34531
  children: [
34480
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
34532
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
34481
34533
  "button",
34482
34534
  {
34483
34535
  type: "button",
@@ -34491,7 +34543,7 @@ function SwapTokenSelect({
34491
34543
  cursor: "pointer"
34492
34544
  },
34493
34545
  "aria-label": "Go back",
34494
- children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
34546
+ children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
34495
34547
  "svg",
34496
34548
  {
34497
34549
  style: {
@@ -34503,7 +34555,7 @@ function SwapTokenSelect({
34503
34555
  fill: "none",
34504
34556
  stroke: "currentColor",
34505
34557
  strokeWidth: 2,
34506
- children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
34558
+ children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
34507
34559
  "path",
34508
34560
  {
34509
34561
  strokeLinecap: "round",
@@ -34515,7 +34567,7 @@ function SwapTokenSelect({
34515
34567
  )
34516
34568
  }
34517
34569
  ),
34518
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
34570
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
34519
34571
  "h1",
34520
34572
  {
34521
34573
  style: {
@@ -34532,8 +34584,8 @@ function SwapTokenSelect({
34532
34584
  ]
34533
34585
  }
34534
34586
  ),
34535
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { style: { flex: 1, display: "flex", overflow: "hidden" }, children: [
34536
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
34587
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { style: { flex: 1, display: "flex", overflow: "hidden" }, children: [
34588
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
34537
34589
  ChainSelectorPanel,
34538
34590
  {
34539
34591
  error: chainsError,
@@ -34544,7 +34596,7 @@ function SwapTokenSelect({
34544
34596
  popularChains
34545
34597
  }
34546
34598
  ),
34547
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
34599
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
34548
34600
  TokenSelectorPanel,
34549
34601
  {
34550
34602
  filteredTokens: visibleTokens,
@@ -34563,12 +34615,12 @@ function SwapTokenSelect({
34563
34615
  }
34564
34616
  )
34565
34617
  ] }),
34566
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(WidgetSecurityFooter, {})
34618
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(WidgetSecurityFooter, {})
34567
34619
  ]
34568
34620
  }
34569
34621
  );
34570
34622
  }
34571
- var import_react47, import_jsx_runtime51;
34623
+ var import_react47, import_jsx_runtime52;
34572
34624
  var init_SwapTokenSelect = __esm({
34573
34625
  "src/modes/swap/components/SwapTokenSelect.tsx"() {
34574
34626
  "use strict";
@@ -34578,7 +34630,7 @@ var init_SwapTokenSelect = __esm({
34578
34630
  init_hooks2();
34579
34631
  init_token_selection();
34580
34632
  init_components();
34581
- import_jsx_runtime51 = require("react/jsx-runtime");
34633
+ import_jsx_runtime52 = require("react/jsx-runtime");
34582
34634
  }
34583
34635
  });
34584
34636
 
@@ -34778,7 +34830,7 @@ function SwapWalletSelectorMobile({
34778
34830
  { id: "evm", label: "EVM" },
34779
34831
  { id: "solana", label: "Solana" }
34780
34832
  ];
34781
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
34833
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
34782
34834
  "div",
34783
34835
  {
34784
34836
  style: {
@@ -34787,7 +34839,7 @@ function SwapWalletSelectorMobile({
34787
34839
  height: "100%"
34788
34840
  },
34789
34841
  children: [
34790
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
34842
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
34791
34843
  "div",
34792
34844
  {
34793
34845
  style: {
@@ -34797,7 +34849,7 @@ function SwapWalletSelectorMobile({
34797
34849
  borderBottom: `1px solid ${colors.border}`
34798
34850
  },
34799
34851
  children: [
34800
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
34852
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
34801
34853
  "button",
34802
34854
  {
34803
34855
  type: "button",
@@ -34810,7 +34862,7 @@ function SwapWalletSelectorMobile({
34810
34862
  border: 0,
34811
34863
  cursor: "pointer"
34812
34864
  },
34813
- children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
34865
+ children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
34814
34866
  "svg",
34815
34867
  {
34816
34868
  style: {
@@ -34822,7 +34874,7 @@ function SwapWalletSelectorMobile({
34822
34874
  fill: "none",
34823
34875
  stroke: "currentColor",
34824
34876
  strokeWidth: 2,
34825
- children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
34877
+ children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
34826
34878
  "path",
34827
34879
  {
34828
34880
  strokeLinecap: "round",
@@ -34834,7 +34886,7 @@ function SwapWalletSelectorMobile({
34834
34886
  )
34835
34887
  }
34836
34888
  ),
34837
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
34889
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
34838
34890
  "h1",
34839
34891
  {
34840
34892
  style: {
@@ -34847,11 +34899,11 @@ function SwapWalletSelectorMobile({
34847
34899
  children: "Connect Wallet"
34848
34900
  }
34849
34901
  ),
34850
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { style: { width: "1.25rem", marginLeft: spacing[2] }, "aria-hidden": true })
34902
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { style: { width: "1.25rem", marginLeft: spacing[2] }, "aria-hidden": true })
34851
34903
  ]
34852
34904
  }
34853
34905
  ),
34854
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { style: { padding: `${spacing[3]} ${spacing[4]} 0` }, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
34906
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { style: { padding: `${spacing[3]} ${spacing[4]} 0` }, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
34855
34907
  "div",
34856
34908
  {
34857
34909
  style: {
@@ -34862,7 +34914,7 @@ function SwapWalletSelectorMobile({
34862
34914
  padding: "3px",
34863
34915
  gap: "2px"
34864
34916
  },
34865
- children: tabs.map((t) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
34917
+ children: tabs.map((t) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
34866
34918
  "button",
34867
34919
  {
34868
34920
  onClick: () => setSelectedNamespace(t.id),
@@ -34886,7 +34938,7 @@ function SwapWalletSelectorMobile({
34886
34938
  ))
34887
34939
  }
34888
34940
  ) }),
34889
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
34941
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
34890
34942
  "div",
34891
34943
  {
34892
34944
  style: {
@@ -34895,9 +34947,9 @@ function SwapWalletSelectorMobile({
34895
34947
  maxHeight: "31.25rem"
34896
34948
  },
34897
34949
  children: [
34898
- mobileWalletEntries.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { style: { textAlign: "center", padding: `${spacing[8]} 0` }, children: [
34899
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { style: { fontSize: "2.5rem", marginBottom: spacing[4] }, children: "\u{1F45B}" }),
34900
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
34950
+ mobileWalletEntries.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { style: { textAlign: "center", padding: `${spacing[8]} 0` }, children: [
34951
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { style: { fontSize: "2.5rem", marginBottom: spacing[4] }, children: "\u{1F45B}" }),
34952
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
34901
34953
  "h3",
34902
34954
  {
34903
34955
  style: {
@@ -34909,7 +34961,7 @@ function SwapWalletSelectorMobile({
34909
34961
  children: "No Wallets Found"
34910
34962
  }
34911
34963
  ),
34912
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
34964
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
34913
34965
  "p",
34914
34966
  {
34915
34967
  style: {
@@ -34920,7 +34972,7 @@ function SwapWalletSelectorMobile({
34920
34972
  children: "Please install a web3 wallet to continue."
34921
34973
  }
34922
34974
  ),
34923
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
34975
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
34924
34976
  "a",
34925
34977
  {
34926
34978
  href: "https://metamask.io/download/",
@@ -34941,7 +34993,7 @@ function SwapWalletSelectorMobile({
34941
34993
  children: "Install MetaMask"
34942
34994
  }
34943
34995
  )
34944
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
34996
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
34945
34997
  "div",
34946
34998
  {
34947
34999
  style: {
@@ -34954,7 +35006,7 @@ function SwapWalletSelectorMobile({
34954
35006
  const isWalletConnected = managerConnected && walletMetaId === meta.id;
34955
35007
  const isConnecting = connectingId === meta.id && walletStatus === "connecting";
34956
35008
  const isRowDisabled = managerConnected && !isWalletConnected && !entry.detectedWallet;
34957
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
35009
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
34958
35010
  "div",
34959
35011
  {
34960
35012
  style: mergeStyles(
@@ -34975,7 +35027,7 @@ function SwapWalletSelectorMobile({
34975
35027
  isRowDisabled && { opacity: 0.4 }
34976
35028
  ),
34977
35029
  children: [
34978
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
35030
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
34979
35031
  "div",
34980
35032
  {
34981
35033
  style: {
@@ -34989,7 +35041,7 @@ function SwapWalletSelectorMobile({
34989
35041
  overflow: "hidden",
34990
35042
  flexShrink: 0
34991
35043
  },
34992
- children: meta.logo ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
35044
+ children: meta.logo ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
34993
35045
  "img",
34994
35046
  {
34995
35047
  src: meta.logo,
@@ -35000,11 +35052,11 @@ function SwapWalletSelectorMobile({
35000
35052
  objectFit: "contain"
35001
35053
  }
35002
35054
  }
35003
- ) : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { style: { fontSize: "1.5rem" }, children: meta.emoji || "\u{1F45B}" })
35055
+ ) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { style: { fontSize: "1.5rem" }, children: meta.emoji || "\u{1F45B}" })
35004
35056
  }
35005
35057
  ),
35006
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { style: { flex: 1, minWidth: 0 }, children: [
35007
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
35058
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { style: { flex: 1, minWidth: 0 }, children: [
35059
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35008
35060
  "p",
35009
35061
  {
35010
35062
  style: {
@@ -35014,7 +35066,7 @@ function SwapWalletSelectorMobile({
35014
35066
  children: meta.name
35015
35067
  }
35016
35068
  ),
35017
- isWalletConnected && walletAddress && /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
35069
+ isWalletConnected && walletAddress && /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
35018
35070
  "p",
35019
35071
  {
35020
35072
  style: {
@@ -35029,7 +35081,7 @@ function SwapWalletSelectorMobile({
35029
35081
  }
35030
35082
  )
35031
35083
  ] }),
35032
- isConnecting ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
35084
+ isConnecting ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35033
35085
  "div",
35034
35086
  {
35035
35087
  style: {
@@ -35042,7 +35094,7 @@ function SwapWalletSelectorMobile({
35042
35094
  flexShrink: 0
35043
35095
  }
35044
35096
  }
35045
- ) : isWalletConnected ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
35097
+ ) : isWalletConnected ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35046
35098
  "button",
35047
35099
  {
35048
35100
  onClick: handleDisconnect,
@@ -35059,7 +35111,7 @@ function SwapWalletSelectorMobile({
35059
35111
  },
35060
35112
  children: "Disconnect"
35061
35113
  }
35062
- ) : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
35114
+ ) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35063
35115
  "button",
35064
35116
  {
35065
35117
  onClick: () => void handleClick(entry),
@@ -35091,8 +35143,8 @@ function SwapWalletSelectorMobile({
35091
35143
  })
35092
35144
  }
35093
35145
  ),
35094
- selectedNamespace === "evm" && /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_jsx_runtime52.Fragment, { children: [
35095
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
35146
+ selectedNamespace === "evm" && /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
35147
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35096
35148
  "div",
35097
35149
  {
35098
35150
  style: {
@@ -35105,7 +35157,7 @@ function SwapWalletSelectorMobile({
35105
35157
  (() => {
35106
35158
  const wcConnected = managerConnected && connectedVia === "walletconnect";
35107
35159
  const wcRowDisabled = managerConnected && !wcConnected;
35108
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
35160
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
35109
35161
  "div",
35110
35162
  {
35111
35163
  style: mergeStyles(
@@ -35128,7 +35180,7 @@ function SwapWalletSelectorMobile({
35128
35180
  ),
35129
35181
  onClick: !wcConnected && !wcRowDisabled ? () => void handleWalletConnect() : void 0,
35130
35182
  children: [
35131
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
35183
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35132
35184
  "div",
35133
35185
  {
35134
35186
  style: {
@@ -35141,7 +35193,7 @@ function SwapWalletSelectorMobile({
35141
35193
  justifyContent: "center",
35142
35194
  flexShrink: 0
35143
35195
  },
35144
- children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
35196
+ children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35145
35197
  "svg",
35146
35198
  {
35147
35199
  style: {
@@ -35151,13 +35203,13 @@ function SwapWalletSelectorMobile({
35151
35203
  },
35152
35204
  viewBox: "0 0 24 24",
35153
35205
  fill: "currentColor",
35154
- children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("path", { d: "M6.09 10.56c3.26-3.2 8.56-3.2 11.82 0l.39.39a.4.4 0 010 .58l-1.34 1.31a.21.21 0 01-.3 0l-.54-.53c-2.28-2.23-5.97-2.23-8.24 0l-.58.56a.21.21 0 01-.3 0L5.66 11.6a.4.4 0 010-.58l.43-.46zm14.6 2.72l1.2 1.17a.4.4 0 010 .58l-5.38 5.27a.43.43 0 01-.6 0l-3.82-3.74a.11.11 0 00-.15 0l-3.82 3.74a.43.43 0 01-.6 0L2.15 15.03a.4.4 0 010-.58l1.2-1.17a.43.43 0 01.6 0l3.82 3.74c.04.04.1.04.15 0l3.82-3.74a.43.43 0 01.6 0l3.82 3.74c.04.04.1.04.15 0l3.82-3.74a.43.43 0 01.6 0z" })
35206
+ children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("path", { d: "M6.09 10.56c3.26-3.2 8.56-3.2 11.82 0l.39.39a.4.4 0 010 .58l-1.34 1.31a.21.21 0 01-.3 0l-.54-.53c-2.28-2.23-5.97-2.23-8.24 0l-.58.56a.21.21 0 01-.3 0L5.66 11.6a.4.4 0 010-.58l.43-.46zm14.6 2.72l1.2 1.17a.4.4 0 010 .58l-5.38 5.27a.43.43 0 01-.6 0l-3.82-3.74a.11.11 0 00-.15 0l-3.82 3.74a.43.43 0 01-.6 0L2.15 15.03a.4.4 0 010-.58l1.2-1.17a.43.43 0 01.6 0l3.82 3.74c.04.04.1.04.15 0l3.82-3.74a.43.43 0 01.6 0l3.82 3.74c.04.04.1.04.15 0l3.82-3.74a.43.43 0 01.6 0z" })
35155
35207
  }
35156
35208
  )
35157
35209
  }
35158
35210
  ),
35159
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { style: { flex: 1, minWidth: 0 }, children: [
35160
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
35211
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { style: { flex: 1, minWidth: 0 }, children: [
35212
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35161
35213
  "p",
35162
35214
  {
35163
35215
  style: {
@@ -35167,7 +35219,7 @@ function SwapWalletSelectorMobile({
35167
35219
  children: "WalletConnect"
35168
35220
  }
35169
35221
  ),
35170
- wcConnected && walletAddress && /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
35222
+ wcConnected && walletAddress && /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
35171
35223
  "p",
35172
35224
  {
35173
35225
  style: {
@@ -35182,7 +35234,7 @@ function SwapWalletSelectorMobile({
35182
35234
  }
35183
35235
  )
35184
35236
  ] }),
35185
- wcConnecting ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
35237
+ wcConnecting ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35186
35238
  "div",
35187
35239
  {
35188
35240
  style: {
@@ -35195,7 +35247,7 @@ function SwapWalletSelectorMobile({
35195
35247
  flexShrink: 0
35196
35248
  }
35197
35249
  }
35198
- ) : wcConnected ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
35250
+ ) : wcConnected ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35199
35251
  "button",
35200
35252
  {
35201
35253
  onClick: (e2) => {
@@ -35215,7 +35267,7 @@ function SwapWalletSelectorMobile({
35215
35267
  },
35216
35268
  children: "Disconnect"
35217
35269
  }
35218
- ) : /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
35270
+ ) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35219
35271
  "button",
35220
35272
  {
35221
35273
  onClick: (e2) => {
@@ -35255,7 +35307,7 @@ function SwapWalletSelectorMobile({
35255
35307
  }
35256
35308
  );
35257
35309
  }
35258
- var import_react48, import_jsx_runtime52, SwapWalletSelectorMobile_default;
35310
+ var import_react48, import_jsx_runtime53, SwapWalletSelectorMobile_default;
35259
35311
  var init_SwapWalletSelectorMobile = __esm({
35260
35312
  "src/modes/swap/components/SwapWalletSelector/SwapWalletSelectorMobile.tsx"() {
35261
35313
  "use strict";
@@ -35266,7 +35318,7 @@ var init_SwapWalletSelectorMobile = __esm({
35266
35318
  init_wallets();
35267
35319
  init_config2();
35268
35320
  init_Toast();
35269
- import_jsx_runtime52 = require("react/jsx-runtime");
35321
+ import_jsx_runtime53 = require("react/jsx-runtime");
35270
35322
  SwapWalletSelectorMobile_default = SwapWalletSelectorMobile;
35271
35323
  }
35272
35324
  });
@@ -35364,8 +35416,8 @@ function SwapWalletSelectorDesktop({
35364
35416
  { id: "evm", label: "EVM" },
35365
35417
  { id: "solana", label: "Solana" }
35366
35418
  ];
35367
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { style: { display: "flex", flexDirection: "column" }, children: [
35368
- /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
35419
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { style: { display: "flex", flexDirection: "column" }, children: [
35420
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
35369
35421
  "div",
35370
35422
  {
35371
35423
  style: {
@@ -35375,7 +35427,7 @@ function SwapWalletSelectorDesktop({
35375
35427
  borderBottom: `1px solid ${colors.border}`
35376
35428
  },
35377
35429
  children: [
35378
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35430
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
35379
35431
  "button",
35380
35432
  {
35381
35433
  type: "button",
@@ -35388,7 +35440,7 @@ function SwapWalletSelectorDesktop({
35388
35440
  border: 0,
35389
35441
  cursor: "pointer"
35390
35442
  },
35391
- children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35443
+ children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
35392
35444
  "svg",
35393
35445
  {
35394
35446
  style: {
@@ -35400,7 +35452,7 @@ function SwapWalletSelectorDesktop({
35400
35452
  fill: "none",
35401
35453
  stroke: "currentColor",
35402
35454
  strokeWidth: 2,
35403
- children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35455
+ children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
35404
35456
  "path",
35405
35457
  {
35406
35458
  strokeLinecap: "round",
@@ -35412,7 +35464,7 @@ function SwapWalletSelectorDesktop({
35412
35464
  )
35413
35465
  }
35414
35466
  ),
35415
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35467
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
35416
35468
  "h1",
35417
35469
  {
35418
35470
  style: {
@@ -35425,7 +35477,7 @@ function SwapWalletSelectorDesktop({
35425
35477
  children: "Connect Wallet"
35426
35478
  }
35427
35479
  ),
35428
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35480
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
35429
35481
  "div",
35430
35482
  {
35431
35483
  style: {
@@ -35436,7 +35488,7 @@ function SwapWalletSelectorDesktop({
35436
35488
  padding: "3px",
35437
35489
  gap: "2px"
35438
35490
  },
35439
- children: tabs.map((t) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35491
+ children: tabs.map((t) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
35440
35492
  "button",
35441
35493
  {
35442
35494
  onClick: () => setSelectedNamespace(t.id),
@@ -35462,8 +35514,8 @@ function SwapWalletSelectorDesktop({
35462
35514
  ]
35463
35515
  }
35464
35516
  ),
35465
- /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { style: { padding: spacing[4] }, children: [
35466
- isDetecting ? /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
35517
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { style: { padding: spacing[4] }, children: [
35518
+ isDetecting ? /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
35467
35519
  "div",
35468
35520
  {
35469
35521
  style: {
@@ -35472,7 +35524,7 @@ function SwapWalletSelectorDesktop({
35472
35524
  gap: spacing[3]
35473
35525
  },
35474
35526
  children: [
35475
- [1, 2].map((i) => /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
35527
+ [1, 2].map((i) => /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
35476
35528
  "div",
35477
35529
  {
35478
35530
  style: {
@@ -35485,7 +35537,7 @@ function SwapWalletSelectorDesktop({
35485
35537
  animation: "tw-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite"
35486
35538
  },
35487
35539
  children: [
35488
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35540
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
35489
35541
  "div",
35490
35542
  {
35491
35543
  style: {
@@ -35496,7 +35548,7 @@ function SwapWalletSelectorDesktop({
35496
35548
  }
35497
35549
  }
35498
35550
  ),
35499
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35551
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
35500
35552
  "div",
35501
35553
  {
35502
35554
  style: {
@@ -35511,7 +35563,7 @@ function SwapWalletSelectorDesktop({
35511
35563
  },
35512
35564
  i
35513
35565
  )),
35514
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35566
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
35515
35567
  "p",
35516
35568
  {
35517
35569
  style: {
@@ -35525,9 +35577,9 @@ function SwapWalletSelectorDesktop({
35525
35577
  )
35526
35578
  ]
35527
35579
  }
35528
- ) : filteredWallets.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { style: { textAlign: "center", padding: `${spacing[8]} 0` }, children: [
35529
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { style: { fontSize: "2.5rem", marginBottom: spacing[4] }, children: "\u{1F45B}" }),
35530
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35580
+ ) : filteredWallets.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { style: { textAlign: "center", padding: `${spacing[8]} 0` }, children: [
35581
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { style: { fontSize: "2.5rem", marginBottom: spacing[4] }, children: "\u{1F45B}" }),
35582
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
35531
35583
  "h3",
35532
35584
  {
35533
35585
  style: {
@@ -35539,7 +35591,7 @@ function SwapWalletSelectorDesktop({
35539
35591
  children: "No Wallets Found"
35540
35592
  }
35541
35593
  ),
35542
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35594
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
35543
35595
  "p",
35544
35596
  {
35545
35597
  style: {
@@ -35550,7 +35602,7 @@ function SwapWalletSelectorDesktop({
35550
35602
  children: "Please install a web3 wallet to continue."
35551
35603
  }
35552
35604
  ),
35553
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35605
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
35554
35606
  "a",
35555
35607
  {
35556
35608
  href: "https://metamask.io/download/",
@@ -35571,7 +35623,7 @@ function SwapWalletSelectorDesktop({
35571
35623
  children: "Install MetaMask"
35572
35624
  }
35573
35625
  )
35574
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35626
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
35575
35627
  "div",
35576
35628
  {
35577
35629
  style: {
@@ -35582,7 +35634,7 @@ function SwapWalletSelectorDesktop({
35582
35634
  children: filteredWallets.map((wallet) => {
35583
35635
  const isWalletConnected = managerConnected && walletMetaId === wallet.meta.id;
35584
35636
  const isConnecting = connectingId === wallet.meta.id && walletStatus === "connecting";
35585
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
35637
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
35586
35638
  "div",
35587
35639
  {
35588
35640
  style: mergeStyles(
@@ -35602,7 +35654,7 @@ function SwapWalletSelectorDesktop({
35602
35654
  }
35603
35655
  ),
35604
35656
  children: [
35605
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35657
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
35606
35658
  "div",
35607
35659
  {
35608
35660
  style: {
@@ -35616,7 +35668,7 @@ function SwapWalletSelectorDesktop({
35616
35668
  overflow: "hidden",
35617
35669
  flexShrink: 0
35618
35670
  },
35619
- children: wallet.meta.logo ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35671
+ children: wallet.meta.logo ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
35620
35672
  "img",
35621
35673
  {
35622
35674
  src: wallet.meta.logo,
@@ -35627,7 +35679,7 @@ function SwapWalletSelectorDesktop({
35627
35679
  objectFit: "contain"
35628
35680
  }
35629
35681
  }
35630
- ) : wallet.detail?.info?.icon ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35682
+ ) : wallet.detail?.info?.icon ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
35631
35683
  "img",
35632
35684
  {
35633
35685
  src: wallet.detail.info.icon,
@@ -35638,11 +35690,11 @@ function SwapWalletSelectorDesktop({
35638
35690
  objectFit: "contain"
35639
35691
  }
35640
35692
  }
35641
- ) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { style: { fontSize: "1.5rem" }, children: wallet.meta.emoji || "\u{1F45B}" })
35693
+ ) : /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { style: { fontSize: "1.5rem" }, children: wallet.meta.emoji || "\u{1F45B}" })
35642
35694
  }
35643
35695
  ),
35644
- /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { style: { flex: 1, minWidth: 0 }, children: [
35645
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35696
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { style: { flex: 1, minWidth: 0 }, children: [
35697
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
35646
35698
  "p",
35647
35699
  {
35648
35700
  style: {
@@ -35652,7 +35704,7 @@ function SwapWalletSelectorDesktop({
35652
35704
  children: wallet.meta.name
35653
35705
  }
35654
35706
  ),
35655
- isWalletConnected && walletAddress && /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
35707
+ isWalletConnected && walletAddress && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
35656
35708
  "p",
35657
35709
  {
35658
35710
  style: {
@@ -35667,7 +35719,7 @@ function SwapWalletSelectorDesktop({
35667
35719
  }
35668
35720
  )
35669
35721
  ] }),
35670
- isConnecting ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35722
+ isConnecting ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
35671
35723
  "div",
35672
35724
  {
35673
35725
  style: {
@@ -35680,7 +35732,7 @@ function SwapWalletSelectorDesktop({
35680
35732
  flexShrink: 0
35681
35733
  }
35682
35734
  }
35683
- ) : isWalletConnected ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35735
+ ) : isWalletConnected ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
35684
35736
  "button",
35685
35737
  {
35686
35738
  onClick: handleDisconnect,
@@ -35697,7 +35749,7 @@ function SwapWalletSelectorDesktop({
35697
35749
  },
35698
35750
  children: "Disconnect"
35699
35751
  }
35700
- ) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35752
+ ) : /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
35701
35753
  "button",
35702
35754
  {
35703
35755
  onClick: () => void handleClick(wallet),
@@ -35729,8 +35781,8 @@ function SwapWalletSelectorDesktop({
35729
35781
  })
35730
35782
  }
35731
35783
  ),
35732
- selectedNamespace === "evm" && /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
35733
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35784
+ selectedNamespace === "evm" && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_jsx_runtime54.Fragment, { children: [
35785
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
35734
35786
  "div",
35735
35787
  {
35736
35788
  style: {
@@ -35742,7 +35794,7 @@ function SwapWalletSelectorDesktop({
35742
35794
  ),
35743
35795
  (() => {
35744
35796
  const wcConnected = managerConnected && connectedVia === "walletconnect";
35745
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
35797
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
35746
35798
  "div",
35747
35799
  {
35748
35800
  style: mergeStyles(
@@ -35764,7 +35816,7 @@ function SwapWalletSelectorDesktop({
35764
35816
  ),
35765
35817
  onClick: !wcConnected ? () => void handleWalletConnect() : void 0,
35766
35818
  children: [
35767
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35819
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
35768
35820
  "div",
35769
35821
  {
35770
35822
  style: {
@@ -35777,7 +35829,7 @@ function SwapWalletSelectorDesktop({
35777
35829
  justifyContent: "center",
35778
35830
  flexShrink: 0
35779
35831
  },
35780
- children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35832
+ children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
35781
35833
  "svg",
35782
35834
  {
35783
35835
  style: {
@@ -35787,13 +35839,13 @@ function SwapWalletSelectorDesktop({
35787
35839
  },
35788
35840
  viewBox: "0 0 24 24",
35789
35841
  fill: "currentColor",
35790
- children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("path", { d: "M6.09 10.56c3.26-3.2 8.56-3.2 11.82 0l.39.39a.4.4 0 010 .58l-1.34 1.31a.21.21 0 01-.3 0l-.54-.53c-2.28-2.23-5.97-2.23-8.24 0l-.58.56a.21.21 0 01-.3 0L5.66 11.6a.4.4 0 010-.58l.43-.46zm14.6 2.72l1.2 1.17a.4.4 0 010 .58l-5.38 5.27a.43.43 0 01-.6 0l-3.82-3.74a.11.11 0 00-.15 0l-3.82 3.74a.43.43 0 01-.6 0L2.15 15.03a.4.4 0 010-.58l1.2-1.17a.43.43 0 01.6 0l3.82 3.74c.04.04.1.04.15 0l3.82-3.74a.43.43 0 01.6 0l3.82 3.74c.04.04.1.04.15 0l3.82-3.74a.43.43 0 01.6 0z" })
35842
+ children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("path", { d: "M6.09 10.56c3.26-3.2 8.56-3.2 11.82 0l.39.39a.4.4 0 010 .58l-1.34 1.31a.21.21 0 01-.3 0l-.54-.53c-2.28-2.23-5.97-2.23-8.24 0l-.58.56a.21.21 0 01-.3 0L5.66 11.6a.4.4 0 010-.58l.43-.46zm14.6 2.72l1.2 1.17a.4.4 0 010 .58l-5.38 5.27a.43.43 0 01-.6 0l-3.82-3.74a.11.11 0 00-.15 0l-3.82 3.74a.43.43 0 01-.6 0L2.15 15.03a.4.4 0 010-.58l1.2-1.17a.43.43 0 01.6 0l3.82 3.74c.04.04.1.04.15 0l3.82-3.74a.43.43 0 01.6 0l3.82 3.74c.04.04.1.04.15 0l3.82-3.74a.43.43 0 01.6 0z" })
35791
35843
  }
35792
35844
  )
35793
35845
  }
35794
35846
  ),
35795
- /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { style: { flex: 1, minWidth: 0 }, children: [
35796
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35847
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { style: { flex: 1, minWidth: 0 }, children: [
35848
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
35797
35849
  "p",
35798
35850
  {
35799
35851
  style: {
@@ -35803,7 +35855,7 @@ function SwapWalletSelectorDesktop({
35803
35855
  children: "WalletConnect"
35804
35856
  }
35805
35857
  ),
35806
- wcConnected && walletAddress && /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
35858
+ wcConnected && walletAddress && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
35807
35859
  "p",
35808
35860
  {
35809
35861
  style: {
@@ -35818,7 +35870,7 @@ function SwapWalletSelectorDesktop({
35818
35870
  }
35819
35871
  )
35820
35872
  ] }),
35821
- wcConnecting ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35873
+ wcConnecting ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
35822
35874
  "div",
35823
35875
  {
35824
35876
  style: {
@@ -35831,7 +35883,7 @@ function SwapWalletSelectorDesktop({
35831
35883
  flexShrink: 0
35832
35884
  }
35833
35885
  }
35834
- ) : wcConnected ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35886
+ ) : wcConnected ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
35835
35887
  "button",
35836
35888
  {
35837
35889
  onClick: (e2) => {
@@ -35851,7 +35903,7 @@ function SwapWalletSelectorDesktop({
35851
35903
  },
35852
35904
  children: "Disconnect"
35853
35905
  }
35854
- ) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
35906
+ ) : /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
35855
35907
  "button",
35856
35908
  {
35857
35909
  onClick: (e2) => {
@@ -35881,7 +35933,7 @@ function SwapWalletSelectorDesktop({
35881
35933
  ] })
35882
35934
  ] });
35883
35935
  }
35884
- var import_react49, import_jsx_runtime53;
35936
+ var import_react49, import_jsx_runtime54;
35885
35937
  var init_SwapWalletSelectorDesktop = __esm({
35886
35938
  "src/modes/swap/components/SwapWalletSelector/SwapWalletSelectorDesktop.tsx"() {
35887
35939
  "use strict";
@@ -35891,7 +35943,7 @@ var init_SwapWalletSelectorDesktop = __esm({
35891
35943
  init_wallets();
35892
35944
  init_config2();
35893
35945
  init_Toast();
35894
- import_jsx_runtime53 = require("react/jsx-runtime");
35946
+ import_jsx_runtime54 = require("react/jsx-runtime");
35895
35947
  }
35896
35948
  });
35897
35949
 
@@ -35903,8 +35955,8 @@ function SwapWalletSelector({
35903
35955
  onBack
35904
35956
  }) {
35905
35957
  const isMobile = useIsMobile();
35906
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_jsx_runtime54.Fragment, { children: [
35907
- isMobile && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
35958
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx_runtime55.Fragment, { children: [
35959
+ isMobile && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
35908
35960
  SwapWalletSelectorMobile_default,
35909
35961
  {
35910
35962
  walletStatus,
@@ -35913,7 +35965,7 @@ function SwapWalletSelector({
35913
35965
  onBack
35914
35966
  }
35915
35967
  ),
35916
- !isMobile && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
35968
+ !isMobile && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
35917
35969
  SwapWalletSelectorDesktop,
35918
35970
  {
35919
35971
  walletStatus,
@@ -35924,14 +35976,14 @@ function SwapWalletSelector({
35924
35976
  )
35925
35977
  ] });
35926
35978
  }
35927
- var import_jsx_runtime54, SwapWalletSelector_default;
35979
+ var import_jsx_runtime55, SwapWalletSelector_default;
35928
35980
  var init_SwapWalletSelector = __esm({
35929
35981
  "src/modes/swap/components/SwapWalletSelector/index.tsx"() {
35930
35982
  "use strict";
35931
35983
  init_detect();
35932
35984
  init_SwapWalletSelectorMobile();
35933
35985
  init_SwapWalletSelectorDesktop();
35934
- import_jsx_runtime54 = require("react/jsx-runtime");
35986
+ import_jsx_runtime55 = require("react/jsx-runtime");
35935
35987
  SwapWalletSelector_default = SwapWalletSelector;
35936
35988
  }
35937
35989
  });
@@ -36017,7 +36069,7 @@ function getActiveStep(status) {
36017
36069
  }
36018
36070
  }
36019
36071
  function RateRow({ label, value }) {
36020
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
36072
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
36021
36073
  "div",
36022
36074
  {
36023
36075
  style: {
@@ -36026,8 +36078,8 @@ function RateRow({ label, value }) {
36026
36078
  justifyContent: "space-between"
36027
36079
  },
36028
36080
  children: [
36029
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { style: { color: colors.mutedForeground }, children: label }),
36030
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { style: { color: colors.foreground, fontWeight: fontWeight.medium }, children: value })
36081
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { style: { color: colors.mutedForeground }, children: label }),
36082
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { style: { color: colors.foreground, fontWeight: fontWeight.medium }, children: value })
36031
36083
  ]
36032
36084
  }
36033
36085
  );
@@ -36084,6 +36136,9 @@ function SwapMode({
36084
36136
  const settingsRef = (0, import_react50.useRef)(null);
36085
36137
  const currencyDropdownRef = (0, import_react50.useRef)(null);
36086
36138
  const { emitEvent } = useTrustware();
36139
+ const { trackEvent } = useGTMTracker();
36140
+ const initiatedAttemptRef = (0, import_react50.useRef)(null);
36141
+ const completedAttemptRef = (0, import_react50.useRef)(null);
36087
36142
  const { features, theme: configTheme } = useTrustwareConfig();
36088
36143
  const effectiveThemeSetting = themeProp ?? configTheme ?? "system";
36089
36144
  const { resolvedTheme, toggleTheme } = useThemePreference(
@@ -36325,6 +36380,16 @@ function SwapMode({
36325
36380
  }, []);
36326
36381
  const handleExecute = (0, import_react50.useCallback)(async () => {
36327
36382
  if (!route.data) return;
36383
+ const paymentParams = buildSwapPaymentParams({
36384
+ fromChain,
36385
+ fromToken,
36386
+ toChain,
36387
+ toToken,
36388
+ domain: window.origin
36389
+ });
36390
+ if (claimAttemptOnce(initiatedAttemptRef, route.data)) {
36391
+ trackEvent("payment_initiated", paymentParams);
36392
+ }
36328
36393
  setStage("processing");
36329
36394
  const fromTokenAddress = fromToken?.address ?? fromToken?.address;
36330
36395
  const fromTokenDecimals = fromToken?.decimals ?? void 0;
@@ -36340,12 +36405,25 @@ function SwapMode({
36340
36405
  walletAddress ?? void 0,
36341
36406
  maxApproval,
36342
36407
  () => {
36408
+ if (claimAttemptOnce(completedAttemptRef, routeToSend)) {
36409
+ trackEvent("payment_completed", paymentParams);
36410
+ }
36343
36411
  setCompletedAt(/* @__PURE__ */ new Date());
36344
36412
  setStage("success");
36345
36413
  },
36346
36414
  () => setStage("error")
36347
36415
  );
36348
- }, [route, execution, fromToken, walletAddress, maxApproval]);
36416
+ }, [
36417
+ route,
36418
+ execution,
36419
+ fromChain,
36420
+ fromToken,
36421
+ toChain,
36422
+ toToken,
36423
+ walletAddress,
36424
+ maxApproval,
36425
+ trackEvent
36426
+ ]);
36349
36427
  const handleReset = (0, import_react50.useCallback)(() => {
36350
36428
  execution.reset();
36351
36429
  route.clear();
@@ -36692,7 +36770,7 @@ function SwapMode({
36692
36770
  return () => document.removeEventListener("mousedown", handler);
36693
36771
  }, [showCurrencyDropdown]);
36694
36772
  if (stage === "select-from") {
36695
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(WidgetContainer, { theme: resolvedTheme, style, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
36773
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(WidgetContainer, { theme: resolvedTheme, style, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
36696
36774
  SwapTokenSelect,
36697
36775
  {
36698
36776
  side: "from",
@@ -36710,7 +36788,7 @@ function SwapMode({
36710
36788
  ) });
36711
36789
  }
36712
36790
  if (stage === "select-to" && !lockDestToken) {
36713
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(WidgetContainer, { theme: resolvedTheme, style, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
36791
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(WidgetContainer, { theme: resolvedTheme, style, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
36714
36792
  SwapTokenSelect,
36715
36793
  {
36716
36794
  side: "to",
@@ -36729,8 +36807,8 @@ function SwapMode({
36729
36807
  ) });
36730
36808
  }
36731
36809
  if (stage === "connect-wallet") {
36732
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(WidgetContainer, { theme: resolvedTheme, style, children: [
36733
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
36810
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(WidgetContainer, { theme: resolvedTheme, style, children: [
36811
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
36734
36812
  SwapWalletSelector_default,
36735
36813
  {
36736
36814
  walletStatus,
@@ -36739,7 +36817,7 @@ function SwapMode({
36739
36817
  onBack: handleWalletConnected
36740
36818
  }
36741
36819
  ),
36742
- isConnected && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { style: { padding: `0 ${spacing[4]} ${spacing[4]}` }, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
36820
+ isConnected && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { style: { padding: `0 ${spacing[4]} ${spacing[4]}` }, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
36743
36821
  "button",
36744
36822
  {
36745
36823
  onClick: () => setStage("home"),
@@ -36772,8 +36850,8 @@ function SwapMode({
36772
36850
  const offset = circ - progress / 100 * circ;
36773
36851
  const isApproving = txStatus === "approving";
36774
36852
  const title = isApproving ? "Approving..." : "Order Submitted";
36775
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(WidgetContainer, { theme: resolvedTheme, style, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { style: { padding: `${spacing[5]} ${spacing[6]} ${spacing[6]}` }, children: [
36776
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
36853
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(WidgetContainer, { theme: resolvedTheme, style, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { style: { padding: `${spacing[5]} ${spacing[6]} ${spacing[6]}` }, children: [
36854
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
36777
36855
  "div",
36778
36856
  {
36779
36857
  style: {
@@ -36783,7 +36861,7 @@ function SwapMode({
36783
36861
  marginBottom: spacing[5]
36784
36862
  },
36785
36863
  children: [
36786
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
36864
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
36787
36865
  "button",
36788
36866
  {
36789
36867
  onClick: handleReset,
@@ -36798,7 +36876,7 @@ function SwapMode({
36798
36876
  border: 0,
36799
36877
  cursor: "pointer"
36800
36878
  },
36801
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
36879
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
36802
36880
  "svg",
36803
36881
  {
36804
36882
  style: {
@@ -36812,12 +36890,12 @@ function SwapMode({
36812
36890
  strokeWidth: 2,
36813
36891
  strokeLinecap: "round",
36814
36892
  strokeLinejoin: "round",
36815
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { d: "M19 12H5m7-7-7 7 7 7" })
36893
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { d: "M19 12H5m7-7-7 7 7 7" })
36816
36894
  }
36817
36895
  )
36818
36896
  }
36819
36897
  ),
36820
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
36898
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
36821
36899
  "button",
36822
36900
  {
36823
36901
  onClick: handleReset,
@@ -36834,7 +36912,7 @@ function SwapMode({
36834
36912
  ]
36835
36913
  }
36836
36914
  ),
36837
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
36915
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
36838
36916
  "h1",
36839
36917
  {
36840
36918
  style: {
@@ -36846,7 +36924,7 @@ function SwapMode({
36846
36924
  children: title
36847
36925
  }
36848
36926
  ),
36849
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
36927
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
36850
36928
  "div",
36851
36929
  {
36852
36930
  style: {
@@ -36860,7 +36938,7 @@ function SwapMode({
36860
36938
  gap: spacing[5]
36861
36939
  },
36862
36940
  children: [
36863
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
36941
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
36864
36942
  "div",
36865
36943
  {
36866
36944
  style: {
@@ -36872,14 +36950,14 @@ function SwapMode({
36872
36950
  justifyContent: "center"
36873
36951
  },
36874
36952
  children: [
36875
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
36953
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
36876
36954
  "svg",
36877
36955
  {
36878
36956
  width: ringSize,
36879
36957
  height: ringSize,
36880
36958
  style: { position: "absolute", inset: 0 },
36881
36959
  children: [
36882
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
36960
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
36883
36961
  "circle",
36884
36962
  {
36885
36963
  cx: ringSize / 2,
@@ -36890,7 +36968,7 @@ function SwapMode({
36890
36968
  strokeWidth: ringStroke
36891
36969
  }
36892
36970
  ),
36893
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
36971
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
36894
36972
  "circle",
36895
36973
  {
36896
36974
  cx: ringSize / 2,
@@ -36909,7 +36987,7 @@ function SwapMode({
36909
36987
  ]
36910
36988
  }
36911
36989
  ),
36912
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
36990
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
36913
36991
  "div",
36914
36992
  {
36915
36993
  style: {
@@ -36920,7 +36998,7 @@ function SwapMode({
36920
36998
  textAlign: "center"
36921
36999
  },
36922
37000
  children: [
36923
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
37001
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
36924
37002
  "span",
36925
37003
  {
36926
37004
  style: {
@@ -36933,7 +37011,7 @@ function SwapMode({
36933
37011
  children: isApproving ? "Approving" : "Swapping"
36934
37012
  }
36935
37013
  ),
36936
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
37014
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
36937
37015
  "div",
36938
37016
  {
36939
37017
  style: {
@@ -36943,7 +37021,7 @@ function SwapMode({
36943
37021
  gap: spacing[1.5]
36944
37022
  },
36945
37023
  children: [
36946
- fromToken?.iconUrl ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
37024
+ fromToken?.iconUrl ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
36947
37025
  "img",
36948
37026
  {
36949
37027
  src: fromToken.iconUrl,
@@ -36954,7 +37032,7 @@ function SwapMode({
36954
37032
  },
36955
37033
  alt: ""
36956
37034
  }
36957
- ) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
37035
+ ) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
36958
37036
  "div",
36959
37037
  {
36960
37038
  style: {
@@ -36965,7 +37043,7 @@ function SwapMode({
36965
37043
  }
36966
37044
  }
36967
37045
  ),
36968
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
37046
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
36969
37047
  "svg",
36970
37048
  {
36971
37049
  style: {
@@ -36979,10 +37057,10 @@ function SwapMode({
36979
37057
  strokeWidth: 2,
36980
37058
  strokeLinecap: "round",
36981
37059
  strokeLinejoin: "round",
36982
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { d: "M5 12h14m-7-7 7 7-7 7" })
37060
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { d: "M5 12h14m-7-7 7 7-7 7" })
36983
37061
  }
36984
37062
  ),
36985
- toToken?.iconUrl ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
37063
+ toToken?.iconUrl ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
36986
37064
  "img",
36987
37065
  {
36988
37066
  src: toToken.iconUrl,
@@ -36993,7 +37071,7 @@ function SwapMode({
36993
37071
  },
36994
37072
  alt: ""
36995
37073
  }
36996
- ) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
37074
+ ) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
36997
37075
  "div",
36998
37076
  {
36999
37077
  style: {
@@ -37007,7 +37085,7 @@ function SwapMode({
37007
37085
  ]
37008
37086
  }
37009
37087
  ),
37010
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
37088
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
37011
37089
  "span",
37012
37090
  {
37013
37091
  style: {
@@ -37019,7 +37097,7 @@ function SwapMode({
37019
37097
  children: [
37020
37098
  fromToken?.symbol,
37021
37099
  " ",
37022
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
37100
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
37023
37101
  "span",
37024
37102
  {
37025
37103
  style: {
@@ -37034,7 +37112,7 @@ function SwapMode({
37034
37112
  ]
37035
37113
  }
37036
37114
  ),
37037
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
37115
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
37038
37116
  "span",
37039
37117
  {
37040
37118
  style: {
@@ -37054,7 +37132,7 @@ function SwapMode({
37054
37132
  ]
37055
37133
  }
37056
37134
  ),
37057
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
37135
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
37058
37136
  "div",
37059
37137
  {
37060
37138
  style: {
@@ -37064,7 +37142,7 @@ function SwapMode({
37064
37142
  justifyContent: "space-between"
37065
37143
  },
37066
37144
  children: [
37067
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
37145
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
37068
37146
  ProcessingStepNode,
37069
37147
  {
37070
37148
  active: activeStep >= 0,
@@ -37073,8 +37151,8 @@ function SwapMode({
37073
37151
  label: `Sending ${fromToken?.symbol ?? ""}`
37074
37152
  }
37075
37153
  ),
37076
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ProcessingStepLine, { done: activeStep > 0 }),
37077
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
37154
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(ProcessingStepLine, { done: activeStep > 0 }),
37155
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
37078
37156
  ProcessingStepNode,
37079
37157
  {
37080
37158
  active: activeStep >= 1,
@@ -37083,8 +37161,8 @@ function SwapMode({
37083
37161
  label: "Create Order"
37084
37162
  }
37085
37163
  ),
37086
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ProcessingStepLine, { done: activeStep > 1 }),
37087
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
37164
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(ProcessingStepLine, { done: activeStep > 1 }),
37165
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
37088
37166
  ProcessingStepNode,
37089
37167
  {
37090
37168
  active: activeStep >= 2,
@@ -37103,7 +37181,7 @@ function SwapMode({
37103
37181
  fromChainTxUrl
37104
37182
  );
37105
37183
  const isCopied = copiedHash === txHash;
37106
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
37184
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
37107
37185
  "div",
37108
37186
  {
37109
37187
  style: {
@@ -37112,7 +37190,7 @@ function SwapMode({
37112
37190
  gap: spacing[3]
37113
37191
  },
37114
37192
  children: [
37115
- explorerUrl && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
37193
+ explorerUrl && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
37116
37194
  "a",
37117
37195
  {
37118
37196
  href: explorerUrl,
@@ -37131,7 +37209,7 @@ function SwapMode({
37131
37209
  },
37132
37210
  children: [
37133
37211
  "View transaction",
37134
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
37212
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
37135
37213
  "svg",
37136
37214
  {
37137
37215
  style: { width: "0.875rem", height: "0.875rem" },
@@ -37142,16 +37220,16 @@ function SwapMode({
37142
37220
  strokeLinecap: "round",
37143
37221
  strokeLinejoin: "round",
37144
37222
  children: [
37145
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }),
37146
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("polyline", { points: "15 3 21 3 21 9" }),
37147
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("line", { x1: "10", y1: "14", x2: "21", y2: "3" })
37223
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }),
37224
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("polyline", { points: "15 3 21 3 21 9" }),
37225
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("line", { x1: "10", y1: "14", x2: "21", y2: "3" })
37148
37226
  ]
37149
37227
  }
37150
37228
  )
37151
37229
  ]
37152
37230
  }
37153
37231
  ),
37154
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
37232
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
37155
37233
  "button",
37156
37234
  {
37157
37235
  onClick: () => handleCopyHash(txHash),
@@ -37168,11 +37246,11 @@ function SwapMode({
37168
37246
  padding: 0,
37169
37247
  transition: "color 0.15s"
37170
37248
  },
37171
- children: isCopied ? "Copied!" : /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx_runtime55.Fragment, { children: [
37249
+ children: isCopied ? "Copied!" : /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
37172
37250
  txHash.slice(0, 6),
37173
37251
  "\u2026",
37174
37252
  txHash.slice(-4),
37175
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
37253
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
37176
37254
  "svg",
37177
37255
  {
37178
37256
  style: { width: "0.875rem", height: "0.875rem" },
@@ -37183,7 +37261,7 @@ function SwapMode({
37183
37261
  strokeLinecap: "round",
37184
37262
  strokeLinejoin: "round",
37185
37263
  children: [
37186
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
37264
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
37187
37265
  "rect",
37188
37266
  {
37189
37267
  x: "9",
@@ -37194,7 +37272,7 @@ function SwapMode({
37194
37272
  ry: "2"
37195
37273
  }
37196
37274
  ),
37197
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
37275
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
37198
37276
  ]
37199
37277
  }
37200
37278
  )
@@ -37222,10 +37300,10 @@ function SwapMode({
37222
37300
  dateStyle: "medium",
37223
37301
  timeStyle: "short"
37224
37302
  }) ?? null;
37225
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(WidgetContainer, { theme: resolvedTheme, style, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { style: { position: "relative", overflow: "hidden" }, children: [
37226
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_react50.Suspense, { fallback: null, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ConfettiEffect3, { isActive: true, pieceCount: 60, clearDelay: 4e3 }) }),
37227
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { style: { padding: `${spacing[6]} ${spacing[6]} 0` }, children: [
37228
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
37303
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(WidgetContainer, { theme: resolvedTheme, style, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { style: { position: "relative", overflow: "hidden" }, children: [
37304
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react50.Suspense, { fallback: null, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(ConfettiEffect3, { isActive: true, pieceCount: 60, clearDelay: 4e3 }) }),
37305
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { style: { padding: `${spacing[6]} ${spacing[6]} 0` }, children: [
37306
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
37229
37307
  "div",
37230
37308
  {
37231
37309
  style: {
@@ -37235,7 +37313,7 @@ function SwapMode({
37235
37313
  marginBottom: spacing[5]
37236
37314
  },
37237
37315
  children: [
37238
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
37316
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
37239
37317
  "div",
37240
37318
  {
37241
37319
  style: {
@@ -37248,7 +37326,7 @@ function SwapMode({
37248
37326
  justifyContent: "center",
37249
37327
  flexShrink: 0
37250
37328
  },
37251
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
37329
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
37252
37330
  "svg",
37253
37331
  {
37254
37332
  style: {
@@ -37262,12 +37340,12 @@ function SwapMode({
37262
37340
  strokeWidth: 3,
37263
37341
  strokeLinecap: "round",
37264
37342
  strokeLinejoin: "round",
37265
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { d: "M20 6L9 17l-5-5" })
37343
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { d: "M20 6L9 17l-5-5" })
37266
37344
  }
37267
37345
  )
37268
37346
  }
37269
37347
  ),
37270
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
37348
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
37271
37349
  "h2",
37272
37350
  {
37273
37351
  style: {
@@ -37281,7 +37359,7 @@ function SwapMode({
37281
37359
  ]
37282
37360
  }
37283
37361
  ),
37284
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
37362
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
37285
37363
  "div",
37286
37364
  {
37287
37365
  style: {
@@ -37291,7 +37369,7 @@ function SwapMode({
37291
37369
  padding: spacing[5]
37292
37370
  },
37293
37371
  children: [
37294
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
37372
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
37295
37373
  "div",
37296
37374
  {
37297
37375
  style: {
@@ -37301,7 +37379,7 @@ function SwapMode({
37301
37379
  fontSize: fontSize.sm
37302
37380
  },
37303
37381
  children: [
37304
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
37382
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
37305
37383
  "div",
37306
37384
  {
37307
37385
  style: {
@@ -37310,8 +37388,8 @@ function SwapMode({
37310
37388
  gap: spacing[2]
37311
37389
  },
37312
37390
  children: [
37313
- fromToken?.iconUrl && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { style: { position: "relative", flexShrink: 0 }, children: [
37314
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
37391
+ fromToken?.iconUrl && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { style: { position: "relative", flexShrink: 0 }, children: [
37392
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
37315
37393
  "img",
37316
37394
  {
37317
37395
  src: fromToken.iconUrl,
@@ -37323,7 +37401,7 @@ function SwapMode({
37323
37401
  }
37324
37402
  }
37325
37403
  ),
37326
- fromChain?.chainIconURI && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
37404
+ fromChain?.chainIconURI && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
37327
37405
  "img",
37328
37406
  {
37329
37407
  src: fromChain.chainIconURI,
@@ -37341,11 +37419,11 @@ function SwapMode({
37341
37419
  }
37342
37420
  )
37343
37421
  ] }),
37344
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { style: { color: colors.mutedForeground }, children: "You sold" })
37422
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { style: { color: colors.mutedForeground }, children: "You sold" })
37345
37423
  ]
37346
37424
  }
37347
37425
  ),
37348
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
37426
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
37349
37427
  "span",
37350
37428
  {
37351
37429
  style: {
@@ -37362,7 +37440,7 @@ function SwapMode({
37362
37440
  ]
37363
37441
  }
37364
37442
  ),
37365
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
37443
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
37366
37444
  "div",
37367
37445
  {
37368
37446
  style: {
@@ -37373,7 +37451,7 @@ function SwapMode({
37373
37451
  marginTop: spacing[3]
37374
37452
  },
37375
37453
  children: [
37376
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
37454
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
37377
37455
  "div",
37378
37456
  {
37379
37457
  style: {
@@ -37382,8 +37460,8 @@ function SwapMode({
37382
37460
  gap: spacing[2]
37383
37461
  },
37384
37462
  children: [
37385
- toToken?.iconUrl && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { style: { position: "relative", flexShrink: 0 }, children: [
37386
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
37463
+ toToken?.iconUrl && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { style: { position: "relative", flexShrink: 0 }, children: [
37464
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
37387
37465
  "img",
37388
37466
  {
37389
37467
  src: toToken.iconUrl,
@@ -37395,7 +37473,7 @@ function SwapMode({
37395
37473
  }
37396
37474
  }
37397
37475
  ),
37398
- toChain?.chainIconURI && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
37476
+ toChain?.chainIconURI && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
37399
37477
  "img",
37400
37478
  {
37401
37479
  src: toChain.chainIconURI,
@@ -37413,11 +37491,11 @@ function SwapMode({
37413
37491
  }
37414
37492
  )
37415
37493
  ] }),
37416
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { style: { color: colors.mutedForeground }, children: "Received" })
37494
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { style: { color: colors.mutedForeground }, children: "Received" })
37417
37495
  ]
37418
37496
  }
37419
37497
  ),
37420
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
37498
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
37421
37499
  "span",
37422
37500
  {
37423
37501
  style: {
@@ -37434,7 +37512,7 @@ function SwapMode({
37434
37512
  ]
37435
37513
  }
37436
37514
  ),
37437
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
37515
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
37438
37516
  "div",
37439
37517
  {
37440
37518
  style: {
@@ -37444,7 +37522,7 @@ function SwapMode({
37444
37522
  }
37445
37523
  }
37446
37524
  ),
37447
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
37525
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
37448
37526
  "div",
37449
37527
  {
37450
37528
  style: {
@@ -37454,28 +37532,28 @@ function SwapMode({
37454
37532
  fontSize: fontSize.sm
37455
37533
  },
37456
37534
  children: [
37457
- fromUsd > 0 && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
37535
+ fromUsd > 0 && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
37458
37536
  SuccessReceiptRow,
37459
37537
  {
37460
37538
  label: "Value sold",
37461
37539
  value: fmtLocal(fromUsd)
37462
37540
  }
37463
37541
  ),
37464
- toUsd > 0 && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
37542
+ toUsd > 0 && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
37465
37543
  SuccessReceiptRow,
37466
37544
  {
37467
37545
  label: "Value received",
37468
37546
  value: fmtLocal(toUsd)
37469
37547
  }
37470
37548
  ),
37471
- effectiveRate && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
37549
+ effectiveRate && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
37472
37550
  SuccessReceiptRow,
37473
37551
  {
37474
37552
  label: "Effective rate",
37475
37553
  value: effectiveRate
37476
37554
  }
37477
37555
  ),
37478
- completedStr && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SuccessReceiptRow, { label: "Completed", value: completedStr }),
37556
+ completedStr && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SuccessReceiptRow, { label: "Completed", value: completedStr }),
37479
37557
  txHash && (() => {
37480
37558
  const srcUrl = buildExplorerUrl(
37481
37559
  txHash,
@@ -37483,7 +37561,7 @@ function SwapMode({
37483
37561
  fromChainTxUrl
37484
37562
  );
37485
37563
  const isCopied = copiedHash === txHash;
37486
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
37564
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
37487
37565
  "div",
37488
37566
  {
37489
37567
  style: {
@@ -37492,8 +37570,8 @@ function SwapMode({
37492
37570
  justifyContent: "space-between"
37493
37571
  },
37494
37572
  children: [
37495
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { style: { color: colors.mutedForeground }, children: destTxHash ? "Source tx" : "Transaction" }),
37496
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
37573
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { style: { color: colors.mutedForeground }, children: destTxHash ? "Source tx" : "Transaction" }),
37574
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
37497
37575
  "div",
37498
37576
  {
37499
37577
  style: {
@@ -37502,7 +37580,7 @@ function SwapMode({
37502
37580
  gap: spacing[2]
37503
37581
  },
37504
37582
  children: [
37505
- srcUrl && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
37583
+ srcUrl && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
37506
37584
  "a",
37507
37585
  {
37508
37586
  href: srcUrl,
@@ -37522,7 +37600,7 @@ function SwapMode({
37522
37600
  txHash.slice(0, 6),
37523
37601
  "\u2026",
37524
37602
  txHash.slice(-4),
37525
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
37603
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
37526
37604
  "svg",
37527
37605
  {
37528
37606
  style: { width: "0.75rem", height: "0.75rem" },
@@ -37533,16 +37611,16 @@ function SwapMode({
37533
37611
  strokeLinecap: "round",
37534
37612
  strokeLinejoin: "round",
37535
37613
  children: [
37536
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }),
37537
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("polyline", { points: "15 3 21 3 21 9" }),
37538
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("line", { x1: "10", y1: "14", x2: "21", y2: "3" })
37614
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }),
37615
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("polyline", { points: "15 3 21 3 21 9" }),
37616
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("line", { x1: "10", y1: "14", x2: "21", y2: "3" })
37539
37617
  ]
37540
37618
  }
37541
37619
  )
37542
37620
  ]
37543
37621
  }
37544
37622
  ),
37545
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
37623
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
37546
37624
  "button",
37547
37625
  {
37548
37626
  onClick: () => handleCopyHash(txHash),
@@ -37560,7 +37638,7 @@ function SwapMode({
37560
37638
  padding: 0,
37561
37639
  transition: "color 0.15s"
37562
37640
  },
37563
- children: isCopied ? "Copied!" : /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
37641
+ children: isCopied ? "Copied!" : /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
37564
37642
  "svg",
37565
37643
  {
37566
37644
  style: {
@@ -37574,7 +37652,7 @@ function SwapMode({
37574
37652
  strokeLinecap: "round",
37575
37653
  strokeLinejoin: "round",
37576
37654
  children: [
37577
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
37655
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
37578
37656
  "rect",
37579
37657
  {
37580
37658
  x: "9",
@@ -37585,7 +37663,7 @@ function SwapMode({
37585
37663
  ry: "2"
37586
37664
  }
37587
37665
  ),
37588
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
37666
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
37589
37667
  ]
37590
37668
  }
37591
37669
  )
@@ -37605,7 +37683,7 @@ function SwapMode({
37605
37683
  toChainTxUrl
37606
37684
  );
37607
37685
  const isCopied = copiedHash === destTxHash;
37608
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
37686
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
37609
37687
  "div",
37610
37688
  {
37611
37689
  style: {
@@ -37614,8 +37692,8 @@ function SwapMode({
37614
37692
  justifyContent: "space-between"
37615
37693
  },
37616
37694
  children: [
37617
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { style: { color: colors.mutedForeground }, children: "Destination tx" }),
37618
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
37695
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { style: { color: colors.mutedForeground }, children: "Destination tx" }),
37696
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
37619
37697
  "div",
37620
37698
  {
37621
37699
  style: {
@@ -37624,7 +37702,7 @@ function SwapMode({
37624
37702
  gap: spacing[2]
37625
37703
  },
37626
37704
  children: [
37627
- destUrl && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
37705
+ destUrl && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
37628
37706
  "a",
37629
37707
  {
37630
37708
  href: destUrl,
@@ -37644,7 +37722,7 @@ function SwapMode({
37644
37722
  destTxHash.slice(0, 6),
37645
37723
  "\u2026",
37646
37724
  destTxHash.slice(-4),
37647
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
37725
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
37648
37726
  "svg",
37649
37727
  {
37650
37728
  style: { width: "0.75rem", height: "0.75rem" },
@@ -37655,16 +37733,16 @@ function SwapMode({
37655
37733
  strokeLinecap: "round",
37656
37734
  strokeLinejoin: "round",
37657
37735
  children: [
37658
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }),
37659
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("polyline", { points: "15 3 21 3 21 9" }),
37660
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("line", { x1: "10", y1: "14", x2: "21", y2: "3" })
37736
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }),
37737
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("polyline", { points: "15 3 21 3 21 9" }),
37738
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("line", { x1: "10", y1: "14", x2: "21", y2: "3" })
37661
37739
  ]
37662
37740
  }
37663
37741
  )
37664
37742
  ]
37665
37743
  }
37666
37744
  ),
37667
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
37745
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
37668
37746
  "button",
37669
37747
  {
37670
37748
  onClick: () => handleCopyHash(destTxHash),
@@ -37681,7 +37759,7 @@ function SwapMode({
37681
37759
  padding: 0,
37682
37760
  transition: "color 0.15s"
37683
37761
  },
37684
- children: isCopied ? "Copied!" : /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
37762
+ children: isCopied ? "Copied!" : /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
37685
37763
  "svg",
37686
37764
  {
37687
37765
  style: {
@@ -37695,7 +37773,7 @@ function SwapMode({
37695
37773
  strokeLinecap: "round",
37696
37774
  strokeLinejoin: "round",
37697
37775
  children: [
37698
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
37776
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
37699
37777
  "rect",
37700
37778
  {
37701
37779
  x: "9",
@@ -37706,7 +37784,7 @@ function SwapMode({
37706
37784
  ry: "2"
37707
37785
  }
37708
37786
  ),
37709
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
37787
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
37710
37788
  ]
37711
37789
  }
37712
37790
  )
@@ -37726,7 +37804,7 @@ function SwapMode({
37726
37804
  }
37727
37805
  )
37728
37806
  ] }),
37729
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
37807
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
37730
37808
  "div",
37731
37809
  {
37732
37810
  style: {
@@ -37736,7 +37814,7 @@ function SwapMode({
37736
37814
  gap: spacing[2]
37737
37815
  },
37738
37816
  children: [
37739
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
37817
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
37740
37818
  "button",
37741
37819
  {
37742
37820
  onClick: handleReset,
@@ -37754,7 +37832,7 @@ function SwapMode({
37754
37832
  children: "Done"
37755
37833
  }
37756
37834
  ),
37757
- fromToken && toToken && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
37835
+ fromToken && toToken && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
37758
37836
  "button",
37759
37837
  {
37760
37838
  onClick: handleSwapBack,
@@ -37783,7 +37861,7 @@ function SwapMode({
37783
37861
  ] }) });
37784
37862
  }
37785
37863
  if (stage === "error") {
37786
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(WidgetContainer, { theme: resolvedTheme, style, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
37864
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(WidgetContainer, { theme: resolvedTheme, style, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
37787
37865
  ErrorPage,
37788
37866
  {
37789
37867
  error: mapError(execution.errorMessage),
@@ -37795,7 +37873,7 @@ function SwapMode({
37795
37873
  if (stage === "review") {
37796
37874
  const reviewToAmount = toAmount ?? displayToAmount;
37797
37875
  const reviewToUsd = toUsd > 0 ? toUsd : displayToUsd;
37798
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(WidgetContainer, { theme: resolvedTheme, style, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
37876
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(WidgetContainer, { theme: resolvedTheme, style, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
37799
37877
  "div",
37800
37878
  {
37801
37879
  style: {
@@ -37804,7 +37882,7 @@ function SwapMode({
37804
37882
  overflowY: "auto"
37805
37883
  },
37806
37884
  children: [
37807
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
37885
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
37808
37886
  "div",
37809
37887
  {
37810
37888
  style: {
@@ -37814,7 +37892,7 @@ function SwapMode({
37814
37892
  marginBottom: spacing[5]
37815
37893
  },
37816
37894
  children: [
37817
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
37895
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
37818
37896
  "span",
37819
37897
  {
37820
37898
  style: {
@@ -37825,7 +37903,7 @@ function SwapMode({
37825
37903
  children: "You're swapping"
37826
37904
  }
37827
37905
  ),
37828
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
37906
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
37829
37907
  "button",
37830
37908
  {
37831
37909
  onClick: () => setStage("home"),
@@ -37840,7 +37918,7 @@ function SwapMode({
37840
37918
  border: 0,
37841
37919
  cursor: "pointer"
37842
37920
  },
37843
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
37921
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
37844
37922
  "svg",
37845
37923
  {
37846
37924
  style: {
@@ -37854,7 +37932,7 @@ function SwapMode({
37854
37932
  strokeWidth: 2,
37855
37933
  strokeLinecap: "round",
37856
37934
  strokeLinejoin: "round",
37857
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { d: "M18 6L6 18M6 6l12 12" })
37935
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { d: "M18 6L6 18M6 6l12 12" })
37858
37936
  }
37859
37937
  )
37860
37938
  }
@@ -37862,7 +37940,7 @@ function SwapMode({
37862
37940
  ]
37863
37941
  }
37864
37942
  ),
37865
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
37943
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
37866
37944
  "div",
37867
37945
  {
37868
37946
  style: {
@@ -37871,8 +37949,8 @@ function SwapMode({
37871
37949
  justifyContent: "space-between"
37872
37950
  },
37873
37951
  children: [
37874
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { children: [
37875
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
37952
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { children: [
37953
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
37876
37954
  "p",
37877
37955
  {
37878
37956
  style: {
@@ -37888,7 +37966,7 @@ function SwapMode({
37888
37966
  ]
37889
37967
  }
37890
37968
  ),
37891
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
37969
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
37892
37970
  "p",
37893
37971
  {
37894
37972
  style: {
@@ -37900,7 +37978,7 @@ function SwapMode({
37900
37978
  }
37901
37979
  )
37902
37980
  ] }),
37903
- fromToken?.iconUrl && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
37981
+ fromToken?.iconUrl && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
37904
37982
  TokenIcon,
37905
37983
  {
37906
37984
  icon: fromToken.iconUrl,
@@ -37911,7 +37989,7 @@ function SwapMode({
37911
37989
  ]
37912
37990
  }
37913
37991
  ),
37914
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
37992
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
37915
37993
  "div",
37916
37994
  {
37917
37995
  style: {
@@ -37919,7 +37997,7 @@ function SwapMode({
37919
37997
  justifyContent: "center",
37920
37998
  margin: `${spacing[3]} 0`
37921
37999
  },
37922
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38000
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
37923
38001
  "svg",
37924
38002
  {
37925
38003
  style: {
@@ -37933,12 +38011,12 @@ function SwapMode({
37933
38011
  strokeWidth: 2,
37934
38012
  strokeLinecap: "round",
37935
38013
  strokeLinejoin: "round",
37936
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { d: "M12 5v14m-7-7l7 7 7-7" })
38014
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { d: "M12 5v14m-7-7l7 7 7-7" })
37937
38015
  }
37938
38016
  )
37939
38017
  }
37940
38018
  ),
37941
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
38019
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
37942
38020
  "div",
37943
38021
  {
37944
38022
  style: {
@@ -37947,8 +38025,8 @@ function SwapMode({
37947
38025
  justifyContent: "space-between"
37948
38026
  },
37949
38027
  children: [
37950
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { children: [
37951
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
38028
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { children: [
38029
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
37952
38030
  "p",
37953
38031
  {
37954
38032
  style: {
@@ -37964,7 +38042,7 @@ function SwapMode({
37964
38042
  ]
37965
38043
  }
37966
38044
  ),
37967
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38045
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
37968
38046
  "p",
37969
38047
  {
37970
38048
  style: {
@@ -37976,7 +38054,7 @@ function SwapMode({
37976
38054
  }
37977
38055
  )
37978
38056
  ] }),
37979
- toToken?.iconUrl && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38057
+ toToken?.iconUrl && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
37980
38058
  TokenIcon,
37981
38059
  {
37982
38060
  icon: toToken.iconUrl,
@@ -37987,7 +38065,7 @@ function SwapMode({
37987
38065
  ]
37988
38066
  }
37989
38067
  ),
37990
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
38068
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
37991
38069
  "button",
37992
38070
  {
37993
38071
  onClick: () => setShowReviewDetails((v) => !v),
@@ -38006,13 +38084,13 @@ function SwapMode({
38006
38084
  padding: 0
38007
38085
  },
38008
38086
  children: [
38009
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38087
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38010
38088
  "div",
38011
38089
  {
38012
38090
  style: { flex: 1, height: "1px", backgroundColor: colors.border }
38013
38091
  }
38014
38092
  ),
38015
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
38093
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
38016
38094
  "span",
38017
38095
  {
38018
38096
  style: {
@@ -38024,7 +38102,7 @@ function SwapMode({
38024
38102
  },
38025
38103
  children: [
38026
38104
  showReviewDetails ? "Hide details" : "View details",
38027
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38105
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38028
38106
  "svg",
38029
38107
  {
38030
38108
  style: {
@@ -38039,10 +38117,10 @@ function SwapMode({
38039
38117
  strokeWidth: 2,
38040
38118
  strokeLinecap: "round",
38041
38119
  strokeLinejoin: "round",
38042
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { d: "M6 9l6 6 6-6" })
38120
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { d: "M6 9l6 6 6-6" })
38043
38121
  }
38044
38122
  ),
38045
- route.data && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
38123
+ route.data && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
38046
38124
  "svg",
38047
38125
  {
38048
38126
  width: "14",
@@ -38055,7 +38133,7 @@ function SwapMode({
38055
38133
  marginLeft: "0.125rem"
38056
38134
  },
38057
38135
  children: [
38058
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38136
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38059
38137
  "circle",
38060
38138
  {
38061
38139
  cx: "7",
@@ -38066,7 +38144,7 @@ function SwapMode({
38066
38144
  strokeWidth: "1.5"
38067
38145
  }
38068
38146
  ),
38069
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38147
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38070
38148
  "circle",
38071
38149
  {
38072
38150
  cx: "7",
@@ -38087,7 +38165,7 @@ function SwapMode({
38087
38165
  ]
38088
38166
  }
38089
38167
  ),
38090
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38168
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38091
38169
  "div",
38092
38170
  {
38093
38171
  style: { flex: 1, height: "1px", backgroundColor: colors.border }
@@ -38096,7 +38174,7 @@ function SwapMode({
38096
38174
  ]
38097
38175
  }
38098
38176
  ),
38099
- showReviewDetails && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
38177
+ showReviewDetails && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
38100
38178
  "div",
38101
38179
  {
38102
38180
  style: {
@@ -38107,7 +38185,7 @@ function SwapMode({
38107
38185
  marginBottom: spacing[2]
38108
38186
  },
38109
38187
  children: [
38110
- exchangeRate !== null && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38188
+ exchangeRate !== null && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38111
38189
  ReviewDetailRow,
38112
38190
  {
38113
38191
  label: "Rate",
@@ -38115,7 +38193,7 @@ function SwapMode({
38115
38193
  value: `1 ${fromToken?.symbol} = ${fmtAmount(1 / (exchangeRate ?? 1), 4)} ${toToken?.symbol} ($${fmtAmount(fromTokenPriceUSD, 2)})`
38116
38194
  }
38117
38195
  ),
38118
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38196
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38119
38197
  ReviewDetailRow,
38120
38198
  {
38121
38199
  label: "Fee",
@@ -38123,12 +38201,12 @@ function SwapMode({
38123
38201
  value: protocolFeeUsd !== null ? fmtLocal(protocolFeeUsd) : "Free"
38124
38202
  }
38125
38203
  ),
38126
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38204
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38127
38205
  ReviewDetailRow,
38128
38206
  {
38129
38207
  label: "Network cost",
38130
38208
  tooltip: "Estimated gas fee paid to the blockchain network",
38131
- value: isGasSponsored ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SponsoredBadge, {}) : networkCostUsd !== null ? /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
38209
+ value: isGasSponsored ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SponsoredBadge, {}) : networkCostUsd !== null ? /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
38132
38210
  "span",
38133
38211
  {
38134
38212
  style: {
@@ -38137,14 +38215,14 @@ function SwapMode({
38137
38215
  gap: "0.25rem"
38138
38216
  },
38139
38217
  children: [
38140
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(GasIcon, { size: "0.875rem" }),
38218
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(GasIcon, { size: "0.875rem" }),
38141
38219
  fmtLocal(networkCostUsd)
38142
38220
  ]
38143
38221
  }
38144
38222
  ) : "\u2014"
38145
38223
  }
38146
38224
  ),
38147
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38225
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38148
38226
  ReviewDetailRow,
38149
38227
  {
38150
38228
  label: "Max slippage",
@@ -38152,12 +38230,12 @@ function SwapMode({
38152
38230
  value: `${slippage}%`
38153
38231
  }
38154
38232
  ),
38155
- (routePath || route.data?.route?.provider) && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38233
+ (routePath || route.data?.route?.provider) && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38156
38234
  ReviewDetailRow,
38157
38235
  {
38158
38236
  label: "Route",
38159
38237
  tooltip: "Protocol or bridge used to execute your swap",
38160
- value: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38238
+ value: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38161
38239
  "span",
38162
38240
  {
38163
38241
  style: {
@@ -38177,7 +38255,7 @@ function SwapMode({
38177
38255
  ]
38178
38256
  }
38179
38257
  ),
38180
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38258
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38181
38259
  SwapActionArea,
38182
38260
  {
38183
38261
  fromTokenSymbol: fromToken?.symbol ?? "",
@@ -38201,12 +38279,12 @@ function SwapMode({
38201
38279
  const ctaDisabled = !hasTokens || !hasAmount || insufficient || isConnected && needsDestAddress && !isValidDestAddress || route.loading || feesExceedOutput;
38202
38280
  const ctaAction = !isConnected ? handleConnectAndReview : () => void handleReview();
38203
38281
  const showRateRow = hasTokens && exchangeRate !== null;
38204
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(WidgetContainer, { theme: resolvedTheme, style, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
38282
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(WidgetContainer, { theme: resolvedTheme, style, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
38205
38283
  "div",
38206
38284
  {
38207
38285
  style: { display: "flex", flexDirection: "column", minHeight: "500px" },
38208
38286
  children: [
38209
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
38287
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
38210
38288
  "div",
38211
38289
  {
38212
38290
  style: {
@@ -38217,7 +38295,7 @@ function SwapMode({
38217
38295
  marginBottom: spacing[1]
38218
38296
  },
38219
38297
  children: [
38220
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38298
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38221
38299
  "span",
38222
38300
  {
38223
38301
  style: {
@@ -38231,7 +38309,7 @@ function SwapMode({
38231
38309
  children: "Swap"
38232
38310
  }
38233
38311
  ),
38234
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
38312
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
38235
38313
  "div",
38236
38314
  {
38237
38315
  ref: settingsRef,
@@ -38242,7 +38320,7 @@ function SwapMode({
38242
38320
  position: "relative"
38243
38321
  },
38244
38322
  children: [
38245
- walletAddress ? /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
38323
+ walletAddress ? /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
38246
38324
  "button",
38247
38325
  {
38248
38326
  onClick: handleConnectAndReview,
@@ -38259,7 +38337,7 @@ function SwapMode({
38259
38337
  walletAddress.slice(-4)
38260
38338
  ]
38261
38339
  }
38262
- ) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38340
+ ) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38263
38341
  "button",
38264
38342
  {
38265
38343
  onClick: handleConnectAndReview,
@@ -38274,7 +38352,7 @@ function SwapMode({
38274
38352
  children: "Connect wallet"
38275
38353
  }
38276
38354
  ),
38277
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38355
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38278
38356
  "button",
38279
38357
  {
38280
38358
  onClick: () => setShowSettings((v) => !v),
@@ -38292,7 +38370,7 @@ function SwapMode({
38292
38370
  color: colors.mutedForeground,
38293
38371
  padding: 0
38294
38372
  },
38295
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
38373
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
38296
38374
  "svg",
38297
38375
  {
38298
38376
  style: { width: "1rem", height: "1rem" },
@@ -38303,14 +38381,14 @@ function SwapMode({
38303
38381
  strokeLinecap: "round",
38304
38382
  strokeLinejoin: "round",
38305
38383
  children: [
38306
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("circle", { cx: "12", cy: "12", r: "3" }),
38307
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { d: "M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z" })
38384
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("circle", { cx: "12", cy: "12", r: "3" }),
38385
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { d: "M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z" })
38308
38386
  ]
38309
38387
  }
38310
38388
  )
38311
38389
  }
38312
38390
  ),
38313
- showSettings && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
38391
+ showSettings && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
38314
38392
  "div",
38315
38393
  {
38316
38394
  style: {
@@ -38326,7 +38404,7 @@ function SwapMode({
38326
38404
  zIndex: 100
38327
38405
  },
38328
38406
  children: [
38329
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38407
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38330
38408
  "p",
38331
38409
  {
38332
38410
  style: {
@@ -38340,7 +38418,7 @@ function SwapMode({
38340
38418
  children: "Appearance"
38341
38419
  }
38342
38420
  ),
38343
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { style: { marginBottom: spacing[4] }, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
38421
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { style: { marginBottom: spacing[4] }, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
38344
38422
  "div",
38345
38423
  {
38346
38424
  style: {
@@ -38349,8 +38427,8 @@ function SwapMode({
38349
38427
  justifyContent: "space-between"
38350
38428
  },
38351
38429
  children: [
38352
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { children: [
38353
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38430
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { children: [
38431
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38354
38432
  "p",
38355
38433
  {
38356
38434
  style: {
@@ -38361,7 +38439,7 @@ function SwapMode({
38361
38439
  children: "Dark mode"
38362
38440
  }
38363
38441
  ),
38364
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38442
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38365
38443
  "p",
38366
38444
  {
38367
38445
  style: {
@@ -38373,7 +38451,7 @@ function SwapMode({
38373
38451
  }
38374
38452
  )
38375
38453
  ] }),
38376
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38454
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38377
38455
  "button",
38378
38456
  {
38379
38457
  role: "switch",
@@ -38390,7 +38468,7 @@ function SwapMode({
38390
38468
  transition: "background-color 0.2s",
38391
38469
  flexShrink: 0
38392
38470
  },
38393
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38471
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38394
38472
  "span",
38395
38473
  {
38396
38474
  style: {
@@ -38411,7 +38489,7 @@ function SwapMode({
38411
38489
  ]
38412
38490
  }
38413
38491
  ) }),
38414
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38492
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38415
38493
  "p",
38416
38494
  {
38417
38495
  style: {
@@ -38425,8 +38503,8 @@ function SwapMode({
38425
38503
  children: "Transaction Settings"
38426
38504
  }
38427
38505
  ),
38428
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { style: { marginBottom: spacing[4] }, children: [
38429
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38506
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { style: { marginBottom: spacing[4] }, children: [
38507
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38430
38508
  "p",
38431
38509
  {
38432
38510
  style: {
@@ -38438,8 +38516,8 @@ function SwapMode({
38438
38516
  children: "Max slippage"
38439
38517
  }
38440
38518
  ),
38441
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { style: { display: "flex", gap: spacing[1.5] }, children: [
38442
- [0.1, 0.5, 1].map((v) => /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
38519
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { style: { display: "flex", gap: spacing[1.5] }, children: [
38520
+ [0.1, 0.5, 1].map((v) => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
38443
38521
  "button",
38444
38522
  {
38445
38523
  onClick: () => {
@@ -38464,7 +38542,7 @@ function SwapMode({
38464
38542
  },
38465
38543
  v
38466
38544
  )),
38467
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { style: { flex: 1.5, position: "relative" }, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38545
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { style: { flex: 1.5, position: "relative" }, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38468
38546
  "input",
38469
38547
  {
38470
38548
  type: "number",
@@ -38495,7 +38573,7 @@ function SwapMode({
38495
38573
  }
38496
38574
  ) })
38497
38575
  ] }),
38498
- slippage > 5 && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38576
+ slippage > 5 && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38499
38577
  "p",
38500
38578
  {
38501
38579
  style: {
@@ -38507,7 +38585,7 @@ function SwapMode({
38507
38585
  }
38508
38586
  )
38509
38587
  ] }),
38510
- canSetMaxApproval && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { style: { marginBottom: spacing[4] }, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
38588
+ canSetMaxApproval && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { style: { marginBottom: spacing[4] }, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
38511
38589
  "div",
38512
38590
  {
38513
38591
  style: {
@@ -38516,8 +38594,8 @@ function SwapMode({
38516
38594
  justifyContent: "space-between"
38517
38595
  },
38518
38596
  children: [
38519
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { children: [
38520
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38597
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { children: [
38598
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38521
38599
  "p",
38522
38600
  {
38523
38601
  style: {
@@ -38528,7 +38606,7 @@ function SwapMode({
38528
38606
  children: "Max approval"
38529
38607
  }
38530
38608
  ),
38531
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38609
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38532
38610
  "p",
38533
38611
  {
38534
38612
  style: {
@@ -38540,7 +38618,7 @@ function SwapMode({
38540
38618
  }
38541
38619
  )
38542
38620
  ] }),
38543
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38621
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38544
38622
  "button",
38545
38623
  {
38546
38624
  role: "switch",
@@ -38557,7 +38635,7 @@ function SwapMode({
38557
38635
  transition: "background-color 0.2s",
38558
38636
  flexShrink: 0
38559
38637
  },
38560
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38638
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38561
38639
  "span",
38562
38640
  {
38563
38641
  style: {
@@ -38578,7 +38656,7 @@ function SwapMode({
38578
38656
  ]
38579
38657
  }
38580
38658
  ) }),
38581
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
38659
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
38582
38660
  "div",
38583
38661
  {
38584
38662
  style: {
@@ -38588,7 +38666,7 @@ function SwapMode({
38588
38666
  gap: spacing[3]
38589
38667
  },
38590
38668
  children: [
38591
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38669
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38592
38670
  "p",
38593
38671
  {
38594
38672
  style: {
@@ -38600,13 +38678,13 @@ function SwapMode({
38600
38678
  children: "Display currency"
38601
38679
  }
38602
38680
  ),
38603
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
38681
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
38604
38682
  "div",
38605
38683
  {
38606
38684
  ref: currencyDropdownRef,
38607
38685
  style: { position: "relative", flexShrink: 0 },
38608
38686
  children: [
38609
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
38687
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
38610
38688
  "button",
38611
38689
  {
38612
38690
  onClick: () => setShowCurrencyDropdown((v) => !v),
@@ -38626,9 +38704,9 @@ function SwapMode({
38626
38704
  whiteSpace: "nowrap"
38627
38705
  },
38628
38706
  children: [
38629
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { children: currencySymbol }),
38630
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { children: selectedCurrency }),
38631
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38707
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { children: currencySymbol }),
38708
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { children: selectedCurrency }),
38709
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38632
38710
  "svg",
38633
38711
  {
38634
38712
  style: {
@@ -38644,13 +38722,13 @@ function SwapMode({
38644
38722
  strokeWidth: 2.5,
38645
38723
  strokeLinecap: "round",
38646
38724
  strokeLinejoin: "round",
38647
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { d: "M6 9l6 6 6-6" })
38725
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { d: "M6 9l6 6 6-6" })
38648
38726
  }
38649
38727
  )
38650
38728
  ]
38651
38729
  }
38652
38730
  ),
38653
- showCurrencyDropdown && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38731
+ showCurrencyDropdown && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38654
38732
  "div",
38655
38733
  {
38656
38734
  style: {
@@ -38669,7 +38747,7 @@ function SwapMode({
38669
38747
  },
38670
38748
  children: SUPPORTED_CURRENCIES.map((c) => {
38671
38749
  const isSelected = selectedCurrency === c.code;
38672
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
38750
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
38673
38751
  "button",
38674
38752
  {
38675
38753
  onClick: () => {
@@ -38692,7 +38770,7 @@ function SwapMode({
38692
38770
  fontFamily: "inherit"
38693
38771
  },
38694
38772
  children: [
38695
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38773
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38696
38774
  "span",
38697
38775
  {
38698
38776
  style: {
@@ -38703,8 +38781,8 @@ function SwapMode({
38703
38781
  children: c.symbol
38704
38782
  }
38705
38783
  ),
38706
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { style: { flexShrink: 0 }, children: c.code }),
38707
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38784
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { style: { flexShrink: 0 }, children: c.code }),
38785
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38708
38786
  "span",
38709
38787
  {
38710
38788
  style: {
@@ -38739,7 +38817,7 @@ function SwapMode({
38739
38817
  ]
38740
38818
  }
38741
38819
  ),
38742
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { style: { padding: `0 ${spacing[3]}` }, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
38820
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { style: { padding: `0 ${spacing[3]}` }, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
38743
38821
  "div",
38744
38822
  {
38745
38823
  onMouseEnter: () => setHoverSell(true),
@@ -38751,7 +38829,7 @@ function SwapMode({
38751
38829
  padding: `${spacing[4]} ${spacing[5]} ${spacing[5]}`
38752
38830
  },
38753
38831
  children: [
38754
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
38832
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
38755
38833
  "div",
38756
38834
  {
38757
38835
  style: {
@@ -38761,7 +38839,7 @@ function SwapMode({
38761
38839
  marginBottom: spacing[1]
38762
38840
  },
38763
38841
  children: [
38764
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38842
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38765
38843
  "span",
38766
38844
  {
38767
38845
  style: {
@@ -38772,7 +38850,7 @@ function SwapMode({
38772
38850
  children: "Sell"
38773
38851
  }
38774
38852
  ),
38775
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38853
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38776
38854
  "div",
38777
38855
  {
38778
38856
  style: {
@@ -38783,7 +38861,7 @@ function SwapMode({
38783
38861
  transition: "opacity 0.2s",
38784
38862
  pointerEvents: hoverSell && fromBalance !== null ? "auto" : "none"
38785
38863
  },
38786
- children: PERCENT_OPTIONS.map((p) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38864
+ children: PERCENT_OPTIONS.map((p) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38787
38865
  "button",
38788
38866
  {
38789
38867
  onClick: () => {
@@ -38839,12 +38917,12 @@ function SwapMode({
38839
38917
  ]
38840
38918
  }
38841
38919
  ),
38842
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
38920
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
38843
38921
  "div",
38844
38922
  {
38845
38923
  style: { display: "flex", alignItems: "center", gap: spacing[3] },
38846
38924
  children: [
38847
- amountInputMode === "usd" && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38925
+ amountInputMode === "usd" && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38848
38926
  "span",
38849
38927
  {
38850
38928
  style: {
@@ -38859,7 +38937,7 @@ function SwapMode({
38859
38937
  children: currencySymbol
38860
38938
  }
38861
38939
  ),
38862
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38940
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38863
38941
  "input",
38864
38942
  {
38865
38943
  inputMode: "decimal",
@@ -38885,22 +38963,7 @@ function SwapMode({
38885
38963
  }
38886
38964
  }
38887
38965
  ),
38888
- amountInputMode === "token" && fromToken && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38889
- "span",
38890
- {
38891
- style: {
38892
- fontSize: scaleFontSize(amount || "0"),
38893
- fontWeight: fontWeight.medium,
38894
- letterSpacing: "-0.02em",
38895
- color: amount ? colors.foreground : `${colors.mutedForeground}80`,
38896
- transition: "font-size 0.15s ease",
38897
- flexShrink: 0,
38898
- userSelect: "none"
38899
- },
38900
- children: fromToken.symbol
38901
- }
38902
- ),
38903
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
38966
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38904
38967
  TokenPillButton,
38905
38968
  {
38906
38969
  token: fromToken,
@@ -38912,7 +38975,7 @@ function SwapMode({
38912
38975
  ]
38913
38976
  }
38914
38977
  ),
38915
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
38978
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
38916
38979
  "div",
38917
38980
  {
38918
38981
  style: {
@@ -38924,7 +38987,7 @@ function SwapMode({
38924
38987
  color: colors.mutedForeground
38925
38988
  },
38926
38989
  children: [
38927
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
38990
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
38928
38991
  "button",
38929
38992
  {
38930
38993
  type: "button",
@@ -38942,8 +39005,8 @@ function SwapMode({
38942
39005
  fontFamily: "inherit"
38943
39006
  },
38944
39007
  children: [
38945
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { children: amountInputMode === "usd" ? fromToken ? `${fmtAmount(tokenSellNum, 5)} ${fromToken.symbol}` : "0" : hasFromUsdPrice ? fmtLocal(usdSellNum) : "USD pricing unavailable" }),
38946
- hasFromUsdPrice && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39008
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { children: amountInputMode === "usd" ? fromToken ? `${fmtAmount(tokenSellNum, 5)} ${fromToken.symbol}` : "0" : hasFromUsdPrice ? fmtLocal(usdSellNum) : "USD pricing unavailable" }),
39009
+ hasFromUsdPrice && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38947
39010
  "svg",
38948
39011
  {
38949
39012
  style: { width: "0.75rem", height: "0.75rem" },
@@ -38953,17 +39016,17 @@ function SwapMode({
38953
39016
  strokeWidth: 2,
38954
39017
  strokeLinecap: "round",
38955
39018
  strokeLinejoin: "round",
38956
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { d: "M7 16V4m0 0L3 8m4-4l4 4m6 0v12m0 0l4-4m-4 4l-4-4" })
39019
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { d: "M7 16V4m0 0L3 8m4-4l4 4m6 0v12m0 0l4-4m-4 4l-4-4" })
38957
39020
  }
38958
39021
  )
38959
39022
  ]
38960
39023
  }
38961
39024
  ),
38962
- fromBalance !== null && fromToken && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("span", { children: [
39025
+ fromBalance !== null && fromToken && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("span", { children: [
38963
39026
  fmtAmount(fromBalance, 6),
38964
39027
  " ",
38965
39028
  fromToken.symbol,
38966
- balanceUsd !== null && balanceUsd > 0 && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("span", { children: [
39029
+ balanceUsd !== null && balanceUsd > 0 && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("span", { children: [
38967
39030
  " \u2248 ",
38968
39031
  fmtLocal(balanceUsd)
38969
39032
  ] })
@@ -38974,7 +39037,7 @@ function SwapMode({
38974
39037
  ]
38975
39038
  }
38976
39039
  ) }),
38977
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { style: { position: "relative", height: 0, zIndex: 10 }, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39040
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { style: { position: "relative", height: 0, zIndex: 10 }, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38978
39041
  "button",
38979
39042
  {
38980
39043
  onClick: handleFlip,
@@ -38995,7 +39058,7 @@ function SwapMode({
38995
39058
  cursor: lockDestToken ? "default" : "pointer",
38996
39059
  opacity: lockDestToken ? 0.4 : 1
38997
39060
  },
38998
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39061
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
38999
39062
  "svg",
39000
39063
  {
39001
39064
  style: {
@@ -39007,7 +39070,7 @@ function SwapMode({
39007
39070
  fill: "none",
39008
39071
  stroke: "currentColor",
39009
39072
  strokeWidth: 2,
39010
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39073
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39011
39074
  "path",
39012
39075
  {
39013
39076
  strokeLinecap: "round",
@@ -39019,7 +39082,7 @@ function SwapMode({
39019
39082
  )
39020
39083
  }
39021
39084
  ) }),
39022
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { style: { padding: `0 ${spacing[3]}`, marginTop: spacing[3] }, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
39085
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { style: { padding: `0 ${spacing[3]}`, marginTop: spacing[3] }, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
39023
39086
  "div",
39024
39087
  {
39025
39088
  style: {
@@ -39028,7 +39091,7 @@ function SwapMode({
39028
39091
  padding: `${spacing[5]} ${spacing[5]} ${spacing[5]}`
39029
39092
  },
39030
39093
  children: [
39031
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39094
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39032
39095
  "span",
39033
39096
  {
39034
39097
  style: {
@@ -39039,7 +39102,7 @@ function SwapMode({
39039
39102
  children: "Buy"
39040
39103
  }
39041
39104
  ),
39042
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
39105
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
39043
39106
  "div",
39044
39107
  {
39045
39108
  style: {
@@ -39049,7 +39112,7 @@ function SwapMode({
39049
39112
  marginTop: spacing[1]
39050
39113
  },
39051
39114
  children: [
39052
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39115
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39053
39116
  "div",
39054
39117
  {
39055
39118
  style: {
@@ -39062,7 +39125,7 @@ function SwapMode({
39062
39125
  },
39063
39126
  children: displayToAmount !== null ? (() => {
39064
39127
  const s = `${isEstimate ? "~" : ""}${fmtAmount(displayToAmount, 5)}`;
39065
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39128
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39066
39129
  "span",
39067
39130
  {
39068
39131
  style: {
@@ -39073,7 +39136,7 @@ function SwapMode({
39073
39136
  children: s
39074
39137
  }
39075
39138
  );
39076
- })() : route.loading ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39139
+ })() : route.loading ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39077
39140
  "span",
39078
39141
  {
39079
39142
  style: {
@@ -39083,7 +39146,7 @@ function SwapMode({
39083
39146
  },
39084
39147
  children: "\u2026"
39085
39148
  }
39086
- ) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39149
+ ) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39087
39150
  "span",
39088
39151
  {
39089
39152
  style: {
@@ -39096,7 +39159,7 @@ function SwapMode({
39096
39159
  },
39097
39160
  rateUpdated ? "flash" : "stable"
39098
39161
  ),
39099
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39162
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39100
39163
  TokenPillButton,
39101
39164
  {
39102
39165
  token: toToken,
@@ -39110,7 +39173,7 @@ function SwapMode({
39110
39173
  ]
39111
39174
  }
39112
39175
  ),
39113
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
39176
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
39114
39177
  "div",
39115
39178
  {
39116
39179
  style: {
@@ -39122,8 +39185,8 @@ function SwapMode({
39122
39185
  color: colors.mutedForeground
39123
39186
  },
39124
39187
  children: [
39125
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { children: displayToUsd > 0 ? `${isEstimate ? "~" : ""}${fmtLocal(displayToUsd)}` : "" }),
39126
- priceImpact !== null && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
39188
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { children: displayToUsd > 0 ? `${isEstimate ? "~" : ""}${fmtLocal(displayToUsd)}` : "" }),
39189
+ priceImpact !== null && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
39127
39190
  "span",
39128
39191
  {
39129
39192
  style: {
@@ -39144,7 +39207,7 @@ function SwapMode({
39144
39207
  ]
39145
39208
  }
39146
39209
  ),
39147
- needsDestAddress && toChain && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
39210
+ needsDestAddress && toChain && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
39148
39211
  "div",
39149
39212
  {
39150
39213
  style: {
@@ -39153,7 +39216,7 @@ function SwapMode({
39153
39216
  borderTop: "1px solid hsl(var(--tw-border))"
39154
39217
  },
39155
39218
  children: [
39156
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
39219
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
39157
39220
  "p",
39158
39221
  {
39159
39222
  style: {
@@ -39168,8 +39231,8 @@ function SwapMode({
39168
39231
  ]
39169
39232
  }
39170
39233
  ),
39171
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { style: { position: "relative" }, children: [
39172
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39234
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { style: { position: "relative" }, children: [
39235
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39173
39236
  "input",
39174
39237
  {
39175
39238
  type: "text",
@@ -39192,7 +39255,7 @@ function SwapMode({
39192
39255
  }
39193
39256
  }
39194
39257
  ),
39195
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39258
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39196
39259
  "button",
39197
39260
  {
39198
39261
  type: "button",
@@ -39218,7 +39281,7 @@ function SwapMode({
39218
39281
  }
39219
39282
  )
39220
39283
  ] }),
39221
- destAddress && !isValidDestAddress && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
39284
+ destAddress && !isValidDestAddress && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
39222
39285
  "p",
39223
39286
  {
39224
39287
  style: {
@@ -39239,7 +39302,7 @@ function SwapMode({
39239
39302
  ]
39240
39303
  }
39241
39304
  ) }),
39242
- route.error && !route.loading && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39305
+ route.error && !route.loading && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39243
39306
  "p",
39244
39307
  {
39245
39308
  style: {
@@ -39252,7 +39315,7 @@ function SwapMode({
39252
39315
  children: mapError(route.error).message
39253
39316
  }
39254
39317
  ),
39255
- route.loading && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
39318
+ route.loading && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
39256
39319
  "div",
39257
39320
  {
39258
39321
  style: {
@@ -39264,13 +39327,13 @@ function SwapMode({
39264
39327
  padding: `0 ${spacing[3]}`
39265
39328
  },
39266
39329
  children: [
39267
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39330
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39268
39331
  "svg",
39269
39332
  {
39270
39333
  className: "tw-animate-spin",
39271
39334
  style: { width: "0.875rem", height: "0.875rem", flexShrink: 0 },
39272
39335
  viewBox: "0 0 88 88",
39273
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39336
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39274
39337
  "circle",
39275
39338
  {
39276
39339
  cx: "44",
@@ -39285,7 +39348,7 @@ function SwapMode({
39285
39348
  )
39286
39349
  }
39287
39350
  ),
39288
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39351
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39289
39352
  "span",
39290
39353
  {
39291
39354
  style: {
@@ -39300,7 +39363,7 @@ function SwapMode({
39300
39363
  ]
39301
39364
  }
39302
39365
  ),
39303
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { style: { padding: `${spacing[2]} ${spacing[3]} 0` }, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39366
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { style: { padding: `${spacing[2]} ${spacing[3]} 0` }, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39304
39367
  "button",
39305
39368
  {
39306
39369
  disabled: ctaDisabled,
@@ -39329,7 +39392,7 @@ function SwapMode({
39329
39392
  children: ctaLabel
39330
39393
  }
39331
39394
  ) }),
39332
- showRateRow && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
39395
+ showRateRow && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
39333
39396
  "div",
39334
39397
  {
39335
39398
  style: {
@@ -39339,7 +39402,7 @@ function SwapMode({
39339
39402
  color: colors.mutedForeground
39340
39403
  },
39341
39404
  children: [
39342
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
39405
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
39343
39406
  "button",
39344
39407
  {
39345
39408
  onClick: () => setShowRateDetails((v) => !v),
@@ -39357,7 +39420,7 @@ function SwapMode({
39357
39420
  padding: `${spacing[1]} 0`
39358
39421
  },
39359
39422
  children: [
39360
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("span", { style: { flex: 1, textAlign: "left" }, children: [
39423
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("span", { style: { flex: 1, textAlign: "left" }, children: [
39361
39424
  "1 ",
39362
39425
  toToken?.symbol,
39363
39426
  " = ",
@@ -39365,7 +39428,7 @@ function SwapMode({
39365
39428
  " ",
39366
39429
  fromToken?.symbol
39367
39430
  ] }),
39368
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
39431
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
39369
39432
  "span",
39370
39433
  {
39371
39434
  style: {
@@ -39375,15 +39438,15 @@ function SwapMode({
39375
39438
  flexShrink: 0
39376
39439
  },
39377
39440
  children: [
39378
- !isGasSponsored && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(GasIcon, {}),
39379
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39441
+ !isGasSponsored && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(GasIcon, {}),
39442
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39380
39443
  "span",
39381
39444
  {
39382
39445
  style: isGasSponsored ? { color: colors.green[500] } : void 0,
39383
39446
  children: isGasSponsored ? "\u2726 Sponsored" : networkCostUsd !== null ? fmtLocal(networkCostUsd) : "\u2014"
39384
39447
  }
39385
39448
  ),
39386
- route.data && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
39449
+ route.data && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
39387
39450
  "svg",
39388
39451
  {
39389
39452
  width: "14",
@@ -39395,7 +39458,7 @@ function SwapMode({
39395
39458
  opacity: 0.75
39396
39459
  },
39397
39460
  children: [
39398
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39461
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39399
39462
  "circle",
39400
39463
  {
39401
39464
  cx: "7",
@@ -39406,7 +39469,7 @@ function SwapMode({
39406
39469
  strokeWidth: "1.5"
39407
39470
  }
39408
39471
  ),
39409
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39472
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39410
39473
  "circle",
39411
39474
  {
39412
39475
  cx: "7",
@@ -39424,7 +39487,7 @@ function SwapMode({
39424
39487
  ]
39425
39488
  }
39426
39489
  ),
39427
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39490
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39428
39491
  "svg",
39429
39492
  {
39430
39493
  style: {
@@ -39439,7 +39502,7 @@ function SwapMode({
39439
39502
  strokeWidth: 2,
39440
39503
  strokeLinecap: "round",
39441
39504
  strokeLinejoin: "round",
39442
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { d: "M6 9l6 6 6-6" })
39505
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { d: "M6 9l6 6 6-6" })
39443
39506
  }
39444
39507
  )
39445
39508
  ]
@@ -39448,7 +39511,7 @@ function SwapMode({
39448
39511
  ]
39449
39512
  }
39450
39513
  ),
39451
- showRateDetails && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
39514
+ showRateDetails && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
39452
39515
  "div",
39453
39516
  {
39454
39517
  style: {
@@ -39460,18 +39523,18 @@ function SwapMode({
39460
39523
  gap: spacing[2.5]
39461
39524
  },
39462
39525
  children: [
39463
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39526
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39464
39527
  RateRow,
39465
39528
  {
39466
39529
  label: "Fee",
39467
39530
  value: protocolFeeUsd !== null ? fmtLocal(protocolFeeUsd) : "Free"
39468
39531
  }
39469
39532
  ),
39470
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39533
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39471
39534
  RateRow,
39472
39535
  {
39473
39536
  label: "Network cost",
39474
- value: isGasSponsored ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SponsoredBadge, {}) : networkCostUsd !== null ? /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
39537
+ value: isGasSponsored ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SponsoredBadge, {}) : networkCostUsd !== null ? /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
39475
39538
  "span",
39476
39539
  {
39477
39540
  style: {
@@ -39480,19 +39543,19 @@ function SwapMode({
39480
39543
  gap: "0.25rem"
39481
39544
  },
39482
39545
  children: [
39483
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(GasIcon, { size: "0.75rem" }),
39546
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(GasIcon, { size: "0.75rem" }),
39484
39547
  fmtLocal(networkCostUsd)
39485
39548
  ]
39486
39549
  }
39487
- ) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { style: { color: colors.mutedForeground }, children: "Available after quote" })
39550
+ ) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { style: { color: colors.mutedForeground }, children: "Available after quote" })
39488
39551
  }
39489
39552
  ),
39490
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(RateRow, { label: "Max slippage", value: `${slippage}%` }),
39491
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39553
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(RateRow, { label: "Max slippage", value: `${slippage}%` }),
39554
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39492
39555
  RateRow,
39493
39556
  {
39494
39557
  label: "Route",
39495
- value: routePath ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39558
+ value: routePath ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39496
39559
  "span",
39497
39560
  {
39498
39561
  style: {
@@ -39506,7 +39569,7 @@ function SwapMode({
39506
39569
  title: routePath,
39507
39570
  children: routePath
39508
39571
  }
39509
- ) : route.data?.route?.provider ?? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { style: { color: colors.mutedForeground }, children: "Available after quote" })
39572
+ ) : route.data?.route?.provider ?? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { style: { color: colors.mutedForeground }, children: "Available after quote" })
39510
39573
  }
39511
39574
  )
39512
39575
  ]
@@ -39515,7 +39578,7 @@ function SwapMode({
39515
39578
  ]
39516
39579
  }
39517
39580
  ),
39518
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(WidgetSecurityFooter, {})
39581
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(WidgetSecurityFooter, {})
39519
39582
  ]
39520
39583
  }
39521
39584
  ) });
@@ -39550,8 +39613,8 @@ function SwapActionArea({
39550
39613
  label = "Swap";
39551
39614
  }
39552
39615
  const isDisabled = isSubmitting || isChecking || isQuoteRefreshing || !hasQuote;
39553
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { style: { marginTop: spacing[6] }, children: [
39554
- isGasSponsored && !isSubmitting && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
39616
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { style: { marginTop: spacing[6] }, children: [
39617
+ isGasSponsored && !isSubmitting && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
39555
39618
  "div",
39556
39619
  {
39557
39620
  style: {
@@ -39562,7 +39625,7 @@ function SwapActionArea({
39562
39625
  marginBottom: spacing[3]
39563
39626
  },
39564
39627
  children: [
39565
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39628
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39566
39629
  "svg",
39567
39630
  {
39568
39631
  style: {
@@ -39572,10 +39635,10 @@ function SwapActionArea({
39572
39635
  },
39573
39636
  viewBox: "0 0 24 24",
39574
39637
  fill: "currentColor",
39575
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { d: "M12 2l2.09 6.26L20 10l-5.91 1.74L12 18l-2.09-6.26L4 10l5.91-1.74z" })
39638
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { d: "M12 2l2.09 6.26L20 10l-5.91 1.74L12 18l-2.09-6.26L4 10l5.91-1.74z" })
39576
39639
  }
39577
39640
  ),
39578
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39641
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39579
39642
  "span",
39580
39643
  {
39581
39644
  style: {
@@ -39589,8 +39652,8 @@ function SwapActionArea({
39589
39652
  ]
39590
39653
  }
39591
39654
  ),
39592
- quoteUnavailable ? /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_jsx_runtime55.Fragment, { children: [
39593
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39655
+ quoteUnavailable ? /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
39656
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39594
39657
  "p",
39595
39658
  {
39596
39659
  style: {
@@ -39602,7 +39665,7 @@ function SwapActionArea({
39602
39665
  children: quoteError ?? "This quote expired."
39603
39666
  }
39604
39667
  ),
39605
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39668
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39606
39669
  "button",
39607
39670
  {
39608
39671
  onClick: onRetryQuote,
@@ -39620,7 +39683,7 @@ function SwapActionArea({
39620
39683
  children: "Get a new quote"
39621
39684
  }
39622
39685
  )
39623
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39686
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39624
39687
  "button",
39625
39688
  {
39626
39689
  onClick: onExecute,
@@ -39643,7 +39706,7 @@ function SwapActionArea({
39643
39706
  children: label
39644
39707
  }
39645
39708
  ),
39646
- needsApproval && !isSubmitting && /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
39709
+ needsApproval && !isSubmitting && /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
39647
39710
  "p",
39648
39711
  {
39649
39712
  style: {
@@ -39675,7 +39738,7 @@ function TokenPillButton({
39675
39738
  const iconUrl = token?.iconUrl ?? token?.logoURI;
39676
39739
  const chainIcon = chain?.chainIconURI;
39677
39740
  if (!token) {
39678
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
39741
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
39679
39742
  "button",
39680
39743
  {
39681
39744
  onClick: disabled ? void 0 : onClick,
@@ -39698,7 +39761,7 @@ function TokenPillButton({
39698
39761
  },
39699
39762
  children: [
39700
39763
  placeholder,
39701
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39764
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39702
39765
  "svg",
39703
39766
  {
39704
39767
  style: { width: "1rem", height: "1rem" },
@@ -39706,7 +39769,7 @@ function TokenPillButton({
39706
39769
  fill: "none",
39707
39770
  stroke: "currentColor",
39708
39771
  strokeWidth: 2,
39709
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39772
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39710
39773
  "path",
39711
39774
  {
39712
39775
  strokeLinecap: "round",
@@ -39720,7 +39783,7 @@ function TokenPillButton({
39720
39783
  }
39721
39784
  );
39722
39785
  }
39723
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
39786
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
39724
39787
  "button",
39725
39788
  {
39726
39789
  onClick: disabled ? void 0 : onClick,
@@ -39740,8 +39803,8 @@ function TokenPillButton({
39740
39803
  opacity: disabled ? 0.85 : 1
39741
39804
  },
39742
39805
  children: [
39743
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { style: { position: "relative" }, children: [
39744
- iconUrl ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39806
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { style: { position: "relative" }, children: [
39807
+ iconUrl ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39745
39808
  "img",
39746
39809
  {
39747
39810
  src: iconUrl,
@@ -39753,7 +39816,7 @@ function TokenPillButton({
39753
39816
  objectFit: "cover"
39754
39817
  }
39755
39818
  }
39756
- ) : /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39819
+ ) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39757
39820
  "div",
39758
39821
  {
39759
39822
  style: {
@@ -39765,7 +39828,7 @@ function TokenPillButton({
39765
39828
  alignItems: "center",
39766
39829
  justifyContent: "center"
39767
39830
  },
39768
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39831
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39769
39832
  "span",
39770
39833
  {
39771
39834
  style: {
@@ -39778,7 +39841,7 @@ function TokenPillButton({
39778
39841
  )
39779
39842
  }
39780
39843
  ),
39781
- chainIcon && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39844
+ chainIcon && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39782
39845
  "img",
39783
39846
  {
39784
39847
  src: chainIcon,
@@ -39796,7 +39859,7 @@ function TokenPillButton({
39796
39859
  }
39797
39860
  )
39798
39861
  ] }),
39799
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39862
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39800
39863
  "span",
39801
39864
  {
39802
39865
  style: {
@@ -39807,7 +39870,7 @@ function TokenPillButton({
39807
39870
  children: token.symbol
39808
39871
  }
39809
39872
  ),
39810
- !disabled && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39873
+ !disabled && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39811
39874
  "svg",
39812
39875
  {
39813
39876
  style: {
@@ -39819,7 +39882,7 @@ function TokenPillButton({
39819
39882
  fill: "none",
39820
39883
  stroke: "currentColor",
39821
39884
  strokeWidth: 2,
39822
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39885
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39823
39886
  "path",
39824
39887
  {
39825
39888
  strokeLinecap: "round",
@@ -39840,8 +39903,8 @@ function TokenIcon({
39840
39903
  }) {
39841
39904
  const imgSize = size === "lg" ? "2.75rem" : "2.5rem";
39842
39905
  const badgeSize = size === "lg" ? "1.125rem" : "1rem";
39843
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { style: { position: "relative", flexShrink: 0 }, children: [
39844
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39906
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { style: { position: "relative", flexShrink: 0 }, children: [
39907
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39845
39908
  "img",
39846
39909
  {
39847
39910
  src: icon,
@@ -39849,7 +39912,7 @@ function TokenIcon({
39849
39912
  style: { width: imgSize, height: imgSize, borderRadius: "9999px" }
39850
39913
  }
39851
39914
  ),
39852
- chainIcon && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39915
+ chainIcon && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39853
39916
  "img",
39854
39917
  {
39855
39918
  src: chainIcon,
@@ -39881,7 +39944,7 @@ function ReviewDetailRow({
39881
39944
  setTipPos({ x: r.left + r.width / 2, y: r.top - 8 });
39882
39945
  };
39883
39946
  const handleMouseLeave = () => setTipPos(null);
39884
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
39947
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
39885
39948
  "div",
39886
39949
  {
39887
39950
  style: {
@@ -39890,7 +39953,7 @@ function ReviewDetailRow({
39890
39953
  justifyContent: "space-between"
39891
39954
  },
39892
39955
  children: [
39893
- /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
39956
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
39894
39957
  "span",
39895
39958
  {
39896
39959
  style: {
@@ -39901,14 +39964,14 @@ function ReviewDetailRow({
39901
39964
  },
39902
39965
  children: [
39903
39966
  label,
39904
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
39967
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39905
39968
  "span",
39906
39969
  {
39907
39970
  ref: iconRef,
39908
39971
  style: { display: "inline-flex", alignItems: "center" },
39909
39972
  onMouseEnter: handleMouseEnter,
39910
39973
  onMouseLeave: handleMouseLeave,
39911
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
39974
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
39912
39975
  "svg",
39913
39976
  {
39914
39977
  style: {
@@ -39924,8 +39987,8 @@ function ReviewDetailRow({
39924
39987
  strokeLinecap: "round",
39925
39988
  strokeLinejoin: "round",
39926
39989
  children: [
39927
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("circle", { cx: "12", cy: "12", r: "10" }),
39928
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { d: "M12 16v-4M12 8h.01" })
39990
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("circle", { cx: "12", cy: "12", r: "10" }),
39991
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { d: "M12 16v-4M12 8h.01" })
39929
39992
  ]
39930
39993
  }
39931
39994
  )
@@ -39934,9 +39997,9 @@ function ReviewDetailRow({
39934
39997
  ]
39935
39998
  }
39936
39999
  ),
39937
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { style: { color: colors.foreground, fontWeight: fontWeight.medium }, children: value }),
40000
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { style: { color: colors.foreground, fontWeight: fontWeight.medium }, children: value }),
39938
40001
  tooltip && tipPos && typeof document !== "undefined" && import_react_dom.default.createPortal(
39939
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
40002
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
39940
40003
  "span",
39941
40004
  {
39942
40005
  style: {
@@ -39965,7 +40028,7 @@ function ReviewDetailRow({
39965
40028
  );
39966
40029
  }
39967
40030
  function GasIcon({ size = "0.875rem" }) {
39968
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
40031
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
39969
40032
  "svg",
39970
40033
  {
39971
40034
  style: { width: size, height: size, flexShrink: 0 },
@@ -39976,16 +40039,16 @@ function GasIcon({ size = "0.875rem" }) {
39976
40039
  strokeLinecap: "round",
39977
40040
  strokeLinejoin: "round",
39978
40041
  children: [
39979
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { d: "M3 22V7a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v15" }),
39980
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { d: "M3 11h11" }),
39981
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { d: "M17 5h1a2 2 0 0 1 2 2v2.5a1.5 1.5 0 0 0 3 0V7l-3-3" }),
39982
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { d: "M19 22V12" })
40042
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { d: "M3 22V7a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v15" }),
40043
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { d: "M3 11h11" }),
40044
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { d: "M17 5h1a2 2 0 0 1 2 2v2.5a1.5 1.5 0 0 0 3 0V7l-3-3" }),
40045
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { d: "M19 22V12" })
39983
40046
  ]
39984
40047
  }
39985
40048
  );
39986
40049
  }
39987
40050
  function SponsoredBadge() {
39988
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
40051
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
39989
40052
  "span",
39990
40053
  {
39991
40054
  style: {
@@ -39996,13 +40059,13 @@ function SponsoredBadge() {
39996
40059
  fontWeight: fontWeight.medium
39997
40060
  },
39998
40061
  children: [
39999
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
40062
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
40000
40063
  "svg",
40001
40064
  {
40002
40065
  style: { width: "0.75rem", height: "0.75rem" },
40003
40066
  viewBox: "0 0 24 24",
40004
40067
  fill: "currentColor",
40005
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { d: "M12 2l2.09 6.26L20 10l-5.91 1.74L12 18l-2.09-6.26L4 10l5.91-1.74z" })
40068
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { d: "M12 2l2.09 6.26L20 10l-5.91 1.74L12 18l-2.09-6.26L4 10l5.91-1.74z" })
40006
40069
  }
40007
40070
  ),
40008
40071
  "Sponsored"
@@ -40014,7 +40077,7 @@ function SuccessReceiptRow({
40014
40077
  label,
40015
40078
  value
40016
40079
  }) {
40017
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
40080
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
40018
40081
  "div",
40019
40082
  {
40020
40083
  style: {
@@ -40023,8 +40086,8 @@ function SuccessReceiptRow({
40023
40086
  justifyContent: "space-between"
40024
40087
  },
40025
40088
  children: [
40026
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { style: { color: colors.mutedForeground }, children: label }),
40027
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { style: { fontWeight: fontWeight.medium, color: colors.foreground }, children: value })
40089
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { style: { color: colors.mutedForeground }, children: label }),
40090
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { style: { fontWeight: fontWeight.medium, color: colors.foreground }, children: value })
40028
40091
  ]
40029
40092
  }
40030
40093
  );
@@ -40038,7 +40101,7 @@ function ProcessingStepNode({
40038
40101
  const nodeColor = done ? colors.green[500] : active ? `hsl(var(--tw-primary))` : colors.border;
40039
40102
  const iconColor = done ? "#fff" : active ? `hsl(var(--tw-primary))` : colors.mutedForeground;
40040
40103
  const nodeBg = done ? colors.green[500] : "transparent";
40041
- const iconEl = icon === "send" ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
40104
+ const iconEl = icon === "send" ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
40042
40105
  "svg",
40043
40106
  {
40044
40107
  style: { width: "0.875rem", height: "0.875rem", color: iconColor },
@@ -40048,9 +40111,9 @@ function ProcessingStepNode({
40048
40111
  strokeWidth: 2,
40049
40112
  strokeLinecap: "round",
40050
40113
  strokeLinejoin: "round",
40051
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { d: "M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z" })
40114
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { d: "M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z" })
40052
40115
  }
40053
- ) : icon === "plus" ? /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
40116
+ ) : icon === "plus" ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
40054
40117
  "svg",
40055
40118
  {
40056
40119
  style: { width: "0.875rem", height: "0.875rem", color: iconColor },
@@ -40060,9 +40123,9 @@ function ProcessingStepNode({
40060
40123
  strokeWidth: 2,
40061
40124
  strokeLinecap: "round",
40062
40125
  strokeLinejoin: "round",
40063
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { d: "M12 5v14M5 12h14" })
40126
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { d: "M12 5v14M5 12h14" })
40064
40127
  }
40065
- ) : /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
40128
+ ) : /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
40066
40129
  "svg",
40067
40130
  {
40068
40131
  style: { width: "0.875rem", height: "0.875rem", color: iconColor },
@@ -40073,12 +40136,12 @@ function ProcessingStepNode({
40073
40136
  strokeLinecap: "round",
40074
40137
  strokeLinejoin: "round",
40075
40138
  children: [
40076
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { d: "M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z" }),
40077
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("line", { x1: "4", y1: "22", x2: "4", y2: "15" })
40139
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { d: "M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z" }),
40140
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("line", { x1: "4", y1: "22", x2: "4", y2: "15" })
40078
40141
  ]
40079
40142
  }
40080
40143
  );
40081
- const doneIcon = /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
40144
+ const doneIcon = /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
40082
40145
  "svg",
40083
40146
  {
40084
40147
  style: { width: "0.875rem", height: "0.875rem", color: "#fff" },
@@ -40088,10 +40151,10 @@ function ProcessingStepNode({
40088
40151
  strokeWidth: 3,
40089
40152
  strokeLinecap: "round",
40090
40153
  strokeLinejoin: "round",
40091
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("path", { d: "M20 6L9 17l-5-5" })
40154
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("path", { d: "M20 6L9 17l-5-5" })
40092
40155
  }
40093
40156
  );
40094
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
40157
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
40095
40158
  "div",
40096
40159
  {
40097
40160
  style: {
@@ -40102,7 +40165,7 @@ function ProcessingStepNode({
40102
40165
  maxWidth: "5rem"
40103
40166
  },
40104
40167
  children: [
40105
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
40168
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
40106
40169
  "div",
40107
40170
  {
40108
40171
  style: {
@@ -40120,7 +40183,7 @@ function ProcessingStepNode({
40120
40183
  children: done ? doneIcon : iconEl
40121
40184
  }
40122
40185
  ),
40123
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
40186
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
40124
40187
  "span",
40125
40188
  {
40126
40189
  style: {
@@ -40139,7 +40202,7 @@ function ProcessingStepNode({
40139
40202
  );
40140
40203
  }
40141
40204
  function ProcessingStepLine({ done }) {
40142
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
40205
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
40143
40206
  "div",
40144
40207
  {
40145
40208
  style: {
@@ -40153,7 +40216,7 @@ function ProcessingStepLine({ done }) {
40153
40216
  }
40154
40217
  );
40155
40218
  }
40156
- var import_react50, import_react_dom, import_jsx_runtime55, ConfettiEffect3, QUOTE_TTL, QUOTE_LOADING_MESSAGES, PERCENT_OPTIONS;
40219
+ var import_react50, import_react_dom, import_jsx_runtime56, ConfettiEffect3, QUOTE_TTL, QUOTE_LOADING_MESSAGES, PERCENT_OPTIONS;
40157
40220
  var init_SwapMode = __esm({
40158
40221
  "src/modes/swap/SwapMode.tsx"() {
40159
40222
  "use strict";
@@ -40176,11 +40239,12 @@ var init_SwapMode = __esm({
40176
40239
  init_useSwapRoute();
40177
40240
  init_useSwapExecution();
40178
40241
  init_walletBalance();
40242
+ init_analytics();
40179
40243
  init_useForex();
40180
40244
  init_SwapTokenSelect();
40181
40245
  init_currency();
40182
40246
  init_components2();
40183
- import_jsx_runtime55 = require("react/jsx-runtime");
40247
+ import_jsx_runtime56 = require("react/jsx-runtime");
40184
40248
  ConfettiEffect3 = (0, import_react50.lazy)(
40185
40249
  () => Promise.resolve().then(() => (init_ConfettiEffect(), ConfettiEffect_exports))
40186
40250
  );
@@ -40242,9 +40306,9 @@ function WidgetContent({
40242
40306
  transactionStatus,
40243
40307
  onStateChange
40244
40308
  ]);
40245
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { style: mergeStyles(widgetContentContainerStyle, style), children: [
40246
- showThemeToggle && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { style: themeToggleContainerStyle, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(ThemeToggle, { theme: resolvedTheme, onToggle: toggleTheme }) }),
40247
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
40309
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { style: mergeStyles(widgetContentContainerStyle, style), children: [
40310
+ showThemeToggle && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { style: themeToggleContainerStyle, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ThemeToggle, { theme: resolvedTheme, onToggle: toggleTheme }) }),
40311
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
40248
40312
  WidgetRouter,
40249
40313
  {
40250
40314
  currentStep,
@@ -40266,7 +40330,6 @@ function WidgetInner({
40266
40330
  const { resolvedTheme } = useDepositUi();
40267
40331
  const { status, revalidate, errors } = useTrustware();
40268
40332
  const [showConfirmDialog, setShowConfirmDialog] = (0, import_react51.useState)(false);
40269
- useGTM(GTM_ID);
40270
40333
  const handleCloseRequest = (0, import_react51.useCallback)(() => {
40271
40334
  if (ACTIVE_TRANSACTION_STATUSES.includes(transactionStatus)) {
40272
40335
  setShowConfirmDialog(true);
@@ -40294,16 +40357,16 @@ function WidgetInner({
40294
40357
  const handleRefresh = (0, import_react51.useCallback)(() => {
40295
40358
  revalidate?.();
40296
40359
  }, [revalidate]);
40297
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_jsx_runtime56.Fragment, { children: [
40298
- /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(WidgetContainer, { theme: effectiveTheme, style, children: [
40299
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
40360
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
40361
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(WidgetContainer, { theme: effectiveTheme, style, children: [
40362
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
40300
40363
  WidgetContent,
40301
40364
  {
40302
40365
  onStateChange,
40303
40366
  showThemeToggle
40304
40367
  }
40305
40368
  ),
40306
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
40369
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
40307
40370
  InitErrorOverlay,
40308
40371
  {
40309
40372
  open: initBlocked,
@@ -40314,7 +40377,7 @@ function WidgetInner({
40314
40377
  }
40315
40378
  )
40316
40379
  ] }),
40317
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
40380
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
40318
40381
  ConfirmCloseDialog,
40319
40382
  {
40320
40383
  open: showConfirmDialog,
@@ -40325,7 +40388,7 @@ function WidgetInner({
40325
40388
  )
40326
40389
  ] });
40327
40390
  }
40328
- var import_react51, import_jsx_runtime56, widgetContentContainerStyle, themeToggleContainerStyle, TrustwareWidgetV2;
40391
+ var import_react51, import_jsx_runtime57, widgetContentContainerStyle, themeToggleContainerStyle, TrustwareWidgetV2;
40329
40392
  var init_TrustwareWidgetV2 = __esm({
40330
40393
  "src/widget/TrustwareWidgetV2.tsx"() {
40331
40394
  "use strict";
@@ -40341,10 +40404,9 @@ var init_TrustwareWidgetV2 = __esm({
40341
40404
  init_provider();
40342
40405
  init_manager();
40343
40406
  init_useTrustwareConfig();
40344
- init_hooks();
40345
- init_constants();
40407
+ init_WidgetAnalytics();
40346
40408
  init_swap();
40347
- import_jsx_runtime56 = require("react/jsx-runtime");
40409
+ import_jsx_runtime57 = require("react/jsx-runtime");
40348
40410
  widgetContentContainerStyle = {
40349
40411
  position: "relative",
40350
40412
  width: "100%",
@@ -40398,10 +40460,10 @@ var init_TrustwareWidgetV2 = __esm({
40398
40460
  if (!isOpen) {
40399
40461
  return null;
40400
40462
  }
40401
- if (config.mode === "swap") {
40402
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(SwapMode, { theme, style });
40403
- }
40404
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(DepositProvider, { initialStep: effectiveInitialStep, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
40463
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(WidgetAnalytics, { children: config.mode === "swap" ? (
40464
+ // Swap Mode bypasses DepositProvider — fully standalone
40465
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(SwapMode, { theme, style })
40466
+ ) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(DepositProvider, { initialStep: effectiveInitialStep, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
40405
40467
  WidgetInner,
40406
40468
  {
40407
40469
  theme,
@@ -40410,7 +40472,7 @@ var init_TrustwareWidgetV2 = __esm({
40410
40472
  closeRequestRef,
40411
40473
  showThemeToggle
40412
40474
  }
40413
- ) });
40475
+ ) }) });
40414
40476
  });
40415
40477
  }
40416
40478
  });