@blockend/widget 1.0.43 → 1.0.44

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.
Files changed (111) hide show
  1. package/dist/{AllRoutes-CJGurgjX.js → AllRoutes-DNRXXb_2.js} +9 -9
  2. package/dist/{Box-DA6MWvnF.js → Box-C8pz2hv3.js} +12 -12
  3. package/dist/{EstGas-Co5ZHRq6.js → EstGas-BgT0B_Yy.js} +7 -7
  4. package/dist/{Grow-BC22ngtu.js → Grow-Uj-CLT6y.js} +2 -2
  5. package/dist/{InputComp-CUfYK6Y3.js → InputComp-Zzc6bF8h.js} +3 -3
  6. package/dist/{LoadRoute-CDQgol9I.js → LoadRoute-CcIg50Yb.js} +4 -4
  7. package/dist/{QuotesProgress-Ye4PPS1z.js → QuotesProgress-B79h-CTW.js} +1 -1
  8. package/dist/{SwapAsset-ChCb8j5s.js → SwapAsset-BhD2UR3A.js} +1 -1
  9. package/dist/{Tooltip-CI-bkLqe.js → Tooltip-BBw0VxQs.js} +3 -3
  10. package/dist/{TxnButton-CzLN4kUm.js → TxnButton-d1ubzbOq.js} +12 -12
  11. package/dist/{add-BLeY6EJ2.js → add-D7EDXkj6.js} +1 -1
  12. package/dist/{all-wallets-K5zwD5AM.js → all-wallets-BNC49nHR.js} +1 -1
  13. package/dist/{app-store-R6Q1DaWB.js → app-store-BYPSmm1V.js} +1 -1
  14. package/dist/{apple-e89FEH2M.js → apple-BlA2dOwt.js} +1 -1
  15. package/dist/{arrow-bottom-vsgw3sxP.js → arrow-bottom-D0UzrcnY.js} +1 -1
  16. package/dist/{arrow-bottom-circle-xhOmN14h.js → arrow-bottom-circle-DcUKKy5Z.js} +1 -1
  17. package/dist/{arrow-left-DJ14J_QY.js → arrow-left-B_zqcjVs.js} +1 -1
  18. package/dist/{arrow-right-Cc6stiEr.js → arrow-right-a79GuEYs.js} +1 -1
  19. package/dist/{arrow-top-D9rT1XGt.js → arrow-top-DHopdpJE.js} +1 -1
  20. package/dist/{bank-DkNbXzBp.js → bank-XzmUymmc.js} +1 -1
  21. package/dist/{basic-wqsy3gnb.js → basic-Dqzh9dVE.js} +3 -3
  22. package/dist/{browser-DWheGytd.js → browser-CIoF1YoX.js} +1 -1
  23. package/dist/{card-o4cq3SI7.js → card-DaVGBonJ.js} +1 -1
  24. package/dist/ccip-DRnomoC_.js +228 -0
  25. package/dist/{checkmark-DL11Ciz8.js → checkmark-Ncw4O7Nm.js} +1 -1
  26. package/dist/{checkmark-bold-DCUAj_bH.js → checkmark-bold-wvoceNeQ.js} +1 -1
  27. package/dist/{chevron-bottom-BkaaSL3x.js → chevron-bottom-D-mmpTgi.js} +1 -1
  28. package/dist/{chevron-left-BAeYJPi6.js → chevron-left-BvFPDKu5.js} +1 -1
  29. package/dist/{chevron-right-C2n4XVBh.js → chevron-right-CKCVXzZ4.js} +1 -1
  30. package/dist/{chevron-top-DqR7ISmP.js → chevron-top-Cagzb_7s.js} +1 -1
  31. package/dist/{chrome-store-BiE1SWxX.js → chrome-store-D9aGw_OB.js} +1 -1
  32. package/dist/{clock-ANq0sPby.js → clock-Dq-EYeWm.js} +1 -1
  33. package/dist/{close-CbLb_Ca0.js → close-EqWFS6Im.js} +1 -1
  34. package/dist/{coinPlaceholder-DE9hh48R.js → coinPlaceholder-C6BCjMqD.js} +1 -1
  35. package/dist/{compass-B6BsqN_r.js → compass-C9BcMojK.js} +1 -1
  36. package/dist/{copy-CFQenl_k.js → copy-COw9tdjy.js} +1 -1
  37. package/dist/{core-BNSQYV_O.js → core-CQumm9MP.js} +3 -3
  38. package/dist/{cursor-C79zZzG-.js → cursor-DVlC7dCx.js} +1 -1
  39. package/dist/{cursor-transparent-CkAaIX-6.js → cursor-transparent-CaOUrkvY.js} +1 -1
  40. package/dist/{desktop-2wHbN2MU.js → desktop-flG4HFxy.js} +1 -1
  41. package/dist/{disconnect-CEod1F0O.js → disconnect-DgO0Zaaj.js} +1 -1
  42. package/dist/{discord-BDARirn9.js → discord-DZR27o0e.js} +1 -1
  43. package/dist/{down-CeMfA1IA.js → down-BA4bctKM.js} +2 -2
  44. package/dist/{etherscan-D6btqGbz.js → etherscan-BR8_TZCc.js} +1 -1
  45. package/dist/{exclamation-triangle-DZ3CigEq.js → exclamation-triangle-BCIm4J5M.js} +1 -1
  46. package/dist/{extension-D3pA6KiS.js → extension-DFXXyTlv.js} +1 -1
  47. package/dist/{external-link-DNCoNBqg.js → external-link-Bszwcv0o.js} +1 -1
  48. package/dist/{facebook-DKPn5xlu.js → facebook-C9Ss5tGh.js} +1 -1
  49. package/dist/{farcaster-Coar4KLs.js → farcaster-JTGZ86iu.js} +1 -1
  50. package/dist/{filters-tewd1AcQ.js → filters-BY8TtU8Q.js} +1 -1
  51. package/dist/{getChainIds-C6w4Bu5x.js → getChainIds-DP6EGKno.js} +2 -2
  52. package/dist/getCosmosAddress-BqBmix5V.js +9565 -0
  53. package/dist/{github-DPJsU3hM.js → github-w0pe-Qfr.js} +1 -1
  54. package/dist/{google-BYVnmLyB.js → google-BlhvJi8X.js} +1 -1
  55. package/dist/{hamburger-KLZOXeDe.js → hamburger-DhyK9fM3.js} +5 -5
  56. package/dist/{help-circle-4bwWLdAq.js → help-circle-DgdDQwLT.js} +1 -1
  57. package/dist/{id-CZOIGovH.js → id-BzCdKrqm.js} +1 -1
  58. package/dist/{image-5Fv9h2Y7.js → image-RfsB1tTS.js} +1 -1
  59. package/dist/{index-UtdYkkpH.js → index-BF6flr1e.js} +4 -4
  60. package/dist/{index-BzbW6hHX.js → index-BZ4_2wJd.js} +11 -11
  61. package/dist/index-BZtHqNTb.js +30414 -0
  62. package/dist/{index-C4FAqXXN.js → index-BqEEQKVk.js} +2 -2
  63. package/dist/{index-2PldMzhJ.js → index-BwhP3k7y.js} +1 -1
  64. package/dist/{index-CKfCnt73.js → index-D8sGMJ9k.js} +4 -4
  65. package/dist/{index--I2-zrX3.js → index-Dbgjq840.js} +78 -78
  66. package/dist/{index-6ItmM_aj.js → index-DtOKGEj5.js} +7 -7
  67. package/dist/{index-CrkB9iyO.js → index-G-9qdNyB.js} +5 -5
  68. package/dist/{index-Dnhi5kZz.js → index-Nzgx9EuZ.js} +1 -1
  69. package/dist/{index-nuJPoBGm.js → index-hZVsZOSw.js} +10 -10
  70. package/dist/{index.es-BQdr78IG.js → index.es-LiKODD-K.js} +1 -1
  71. package/dist/{index.es-y4UXcbxS.js → index.es-ON8SA0J5.js} +2 -2
  72. package/dist/index.es.js +1 -1
  73. package/dist/{info-CAOkQnDz.js → info-D2hFczyn.js} +1 -1
  74. package/dist/{info-circle-B1p0FcXR.js → info-circle-CMLmgvb7.js} +1 -1
  75. package/dist/{lightbulb-DpUPEVkD.js → lightbulb-YfLUKgvI.js} +1 -1
  76. package/dist/{mail-N4_Uzyik.js → mail-B8qD8KEi.js} +1 -1
  77. package/dist/{mobile-DWGaUWRU.js → mobile-Cx8Tpbyy.js} +1 -1
  78. package/dist/{more-Cumvra0H.js → more-OeJAgRgA.js} +1 -1
  79. package/dist/{network-placeholder-DeodbInD.js → network-placeholder-BaKNZBpG.js} +1 -1
  80. package/dist/{nftPlaceholder-DCoHGyrl.js → nftPlaceholder-C0C4GEzc.js} +1 -1
  81. package/dist/{off-CygRkmac.js → off-LLbjNSXh.js} +1 -1
  82. package/dist/{play-store-DrSNzrTx.js → play-store-DDfgKw3t.js} +1 -1
  83. package/dist/{plus-DurmuqzE.js → plus-C_Y8RPTM.js} +1 -1
  84. package/dist/{qr-code-21nqN-2b.js → qr-code-b4dWeBhG.js} +1 -1
  85. package/dist/{recycle-horizontal-B4XnG_mk.js → recycle-horizontal-B3_tmbpJ.js} +1 -1
  86. package/dist/{refresh-KeWfM6cd.js → refresh-B-Zeyb5f.js} +1 -1
  87. package/dist/{reown-logo-BCCuFSwZ.js → reown-logo-B-JDiZf9.js} +1 -1
  88. package/dist/{search-Bws-6c2H.js → search-DobDc2vx.js} +1 -1
  89. package/dist/{send-Fu1aokOW.js → send-3zkJM7P1.js} +1 -1
  90. package/dist/{swapHorizontal-B_Tl8ACO.js → swapHorizontal-DWJzzfrI.js} +1 -1
  91. package/dist/{swapHorizontalBold-D_jGsZOC.js → swapHorizontalBold-CKCSdXUZ.js} +1 -1
  92. package/dist/{swapHorizontalMedium-yA2CsCjD.js → swapHorizontalMedium-C6UwVh5S.js} +1 -1
  93. package/dist/{swapHorizontalRoundedBold-BIjKPKal.js → swapHorizontalRoundedBold-CS5Tdw7m.js} +1 -1
  94. package/dist/{swapVertical-DEGmJhlq.js → swapVertical-7J5EhrZ3.js} +1 -1
  95. package/dist/{telegram-yvkJwwAr.js → telegram-C93uv36j.js} +1 -1
  96. package/dist/{three-dots-Cv2EJ6Q1.js → three-dots-D2Sa1KEa.js} +1 -1
  97. package/dist/{twitch-CauGkS12.js → twitch-CzX1AsjP.js} +1 -1
  98. package/dist/{twitterIcon-C-uVhdej.js → twitterIcon-DSPPNdge.js} +1 -1
  99. package/dist/{unsupportedProp-CquLw774.js → unsupportedProp-DcfWDwEF.js} +1 -1
  100. package/dist/{useRegisterError-W3tXBEyF.js → useRegisterError-NftvtRty.js} +1 -1
  101. package/dist/{verify-C_tVaEN6.js → verify-Cq0ZFKmg.js} +1 -1
  102. package/dist/{verify-filled-C7vvdg3B.js → verify-filled-BnLMJhra.js} +1 -1
  103. package/dist/{w3m-modal-BKIYf52c.js → w3m-modal-BdXhL1DT.js} +2 -2
  104. package/dist/{wallet-CCOlaYgm.js → wallet-DmTSN-rl.js} +1 -1
  105. package/dist/{wallet-placeholder-CvwIAC0m.js → wallet-placeholder-DQ-E-KmO.js} +1 -1
  106. package/dist/{walletconnect-B9-VhTfx.js → walletconnect-Cjp1241X.js} +1 -1
  107. package/dist/{warning-circle-B92PFoZF.js → warning-circle-DNr7pWWk.js} +1 -1
  108. package/dist/{x-DrIy8GD7.js → x-CAfd0Q5G.js} +1 -1
  109. package/package.json +1 -1
  110. package/dist/getCosmosAddress-B0ctKwuq.js +0 -11859
  111. package/dist/index-COkzLDgT.js +0 -16939
@@ -3,16 +3,16 @@ import * as v from "react";
3
3
  import De, { useState as J, useEffect as Fe } from "react";
4
4
  import { S as Pe, a as _e } from "./sortDown-CjBaDQTU.js";
5
5
  import { t as B } from "./truncate-D9t92mVX.js";
6
- import { a as kt, m as Ne, j as Ut, l as Ue, o as Rt, r as Dt, i as Ce, c as ue, f as ve } from "./useRegisterError-W3tXBEyF.js";
7
- import { b as Te, g as Ie, i as Ae, _ as pe, d as k, e as oe, s as ce, f as at, h as Ee, p as Z, P as r, v as Ft, u as se } from "./index-COkzLDgT.js";
6
+ import { a as kt, m as Ne, j as Ut, l as Ue, o as Rt, r as Dt, i as Ce, c as ue, f as ve } from "./useRegisterError-NftvtRty.js";
7
+ import { b as Te, g as Ie, i as Ae, _ as pe, d as k, e as oe, s as ce, f as at, h as Ee, p as Z, P as r, v as Ft, u as se } from "./index-BZtHqNTb.js";
8
8
  import { S as We, C as je, G as Ve } from "./clockIcon-C2W5xvyt.js";
9
- import { T as Pt } from "./Tooltip-CI-bkLqe.js";
10
- import { O as we } from "./index-Dnhi5kZz.js";
11
- import { B as _t } from "./Box-DA6MWvnF.js";
12
- import { c as ct, d as it, r as At } from "./index-2PldMzhJ.js";
13
- import { b as dt } from "./Grow-BC22ngtu.js";
14
- import { B as bt, o as ut } from "./getChainIds-C6w4Bu5x.js";
15
- import { u as Wt } from "./unsupportedProp-CquLw774.js";
9
+ import { T as Pt } from "./Tooltip-BBw0VxQs.js";
10
+ import { O as we } from "./index-Nzgx9EuZ.js";
11
+ import { B as _t } from "./Box-C8pz2hv3.js";
12
+ import { c as ct, d as it, r as At } from "./index-BwhP3k7y.js";
13
+ import { b as dt } from "./Grow-Uj-CLT6y.js";
14
+ import { B as bt, o as ut } from "./getChainIds-DP6EGKno.js";
15
+ import { u as Wt } from "./unsupportedProp-DcfWDwEF.js";
16
16
  let be;
17
17
  function wt() {
18
18
  if (be)
@@ -1,8 +1,8 @@
1
- import { a7 as i, a8 as h, y as T, a4 as y, _ as N, d as B, e as C, b as _, a9 as b, T as P, aa as g, p as j, P as e } from "./index-COkzLDgT.js";
2
- import * as v from "react";
3
- import { jsx as E } from "react/jsx-runtime";
1
+ import { aE as i, aF as h, y as T, aB as y, _ as B, d as N, e as C, b as _, aG as b, T as P, aH as E, p as g, P as e } from "./index-BZtHqNTb.js";
2
+ import * as j from "react";
3
+ import { jsx as v } from "react/jsx-runtime";
4
4
  const O = ["className", "component"];
5
- function I(c = {}) {
5
+ function F(c = {}) {
6
6
  const {
7
7
  themeId: t,
8
8
  defaultTheme: m,
@@ -11,12 +11,12 @@ function I(c = {}) {
11
11
  } = c, l = i("div", {
12
12
  shouldForwardProp: (o) => o !== "theme" && o !== "sx" && o !== "as"
13
13
  })(h);
14
- return /* @__PURE__ */ v.forwardRef(function(d, x) {
14
+ return /* @__PURE__ */ j.forwardRef(function(d, x) {
15
15
  const s = T(m), r = y(d), {
16
16
  className: p,
17
17
  component: u = "div"
18
- } = r, f = N(r, O);
19
- return /* @__PURE__ */ E(l, B({
18
+ } = r, f = B(r, O);
19
+ return /* @__PURE__ */ v(l, N({
20
20
  as: u,
21
21
  ref: x,
22
22
  className: C(p, n ? n(a) : a),
@@ -24,13 +24,13 @@ function I(c = {}) {
24
24
  }, f));
25
25
  });
26
26
  }
27
- const M = _("MuiBox", ["root"]), R = g(), S = I({
27
+ const I = _("MuiBox", ["root"]), M = E(), R = F({
28
28
  themeId: P,
29
- defaultTheme: R,
30
- defaultClassName: M.root,
29
+ defaultTheme: M,
30
+ defaultClassName: I.root,
31
31
  generateClassName: b.generate
32
32
  });
33
- j.env.NODE_ENV !== "production" && (S.propTypes = {
33
+ g.env.NODE_ENV !== "production" && (R.propTypes = {
34
34
  // ┌────────────────────────────── Warning ──────────────────────────────┐
35
35
  // │ These PropTypes are generated from the TypeScript type definitions. │
36
36
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -50,5 +50,5 @@ j.env.NODE_ENV !== "production" && (S.propTypes = {
50
50
  sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
51
51
  });
52
52
  export {
53
- S as B
53
+ R as B
54
54
  };
@@ -1,22 +1,22 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
- import { m as getDefaultExportFromCjs, u as useStore, p as process$1, a as useWallet, k as commonjsGlobal, l as lodashExports, S as Skeleton, a2 as useBlockendEvents, a3 as blockendEvents, c as controllers } from "./index-COkzLDgT.js";
3
- import { O as OutputValueComp } from "./index-Dnhi5kZz.js";
2
+ import { m as getDefaultExportFromCjs, u as useStore, p as process$1, a7 as bufferExports, a as useWallet, k as commonjsGlobal, l as lodashExports, S as Skeleton, az as useBlockendEvents, aA as blockendEvents, c as controllers } from "./index-BZtHqNTb.js";
3
+ import { O as OutputValueComp } from "./index-Nzgx9EuZ.js";
4
4
  import React__default, { useState, createContext, createElement, useContext, useRef, useEffect, useMemo } from "react";
5
- import { W as WalletIcon, C as CircularProgress, B as BackButton, L as Lottie$1, i as images, u as useWalletDetails, f as formatNumber, c as fixString, d as useRegisterError, F as FormatCryptoValue } from "./useRegisterError-W3tXBEyF.js";
5
+ import { W as WalletIcon, C as CircularProgress, B as BackButton, L as Lottie$1, i as images, u as useWalletDetails, f as formatNumber, c as fixString, d as useRegisterError, F as FormatCryptoValue } from "./useRegisterError-NftvtRty.js";
6
6
  import { useMutation, useQuery } from "@tanstack/react-query";
7
7
  import { useAccount, useWalletClient, useSendTransaction, useSignTypedData, useSwitchChain } from "wagmi";
8
8
  import "viem";
9
9
  import { S as ShareIcon } from "./shareicon-CG3v7iKI.js";
10
- import { T as Tooltip } from "./Tooltip-CI-bkLqe.js";
11
- import { L as Lottie } from "./index.es-BQdr78IG.js";
10
+ import { T as Tooltip } from "./Tooltip-BBw0VxQs.js";
11
+ import { L as Lottie } from "./index.es-LiKODD-K.js";
12
12
  import { useDynamicContext, useSwitchNetwork } from "@dynamic-labs/sdk-react-core";
13
- import { b as bufferExports, V as VersionedTransaction, P as PublicKey, a as buildExports, u as useRoutes, g as getCosmosAddress } from "./getCosmosAddress-B0ctKwuq.js";
13
+ import { V as VersionedTransaction, P as PublicKey, b as buildExports, u as useRoutes, g as getCosmosAddress } from "./getCosmosAddress-BqBmix5V.js";
14
14
  import { B as Buffer } from "./index-DTish3yr.js";
15
15
  import { useCosmWasmSigningClient, useStargateSigningClient, useAccount as useAccount$1 } from "graz";
16
16
  import "@cosmjs/proto-signing";
17
17
  import { calculateFee, GasPrice } from "@cosmjs/stargate";
18
18
  import "@cosmjs/cosmwasm-stargate";
19
- import { l as libExports, S as Spinner, D as Down } from "./down-CeMfA1IA.js";
19
+ import { l as libExports, S as Spinner, D as Down } from "./down-BA4bctKM.js";
20
20
  import { v as validError } from "./validError-CDlJpg_f.js";
21
21
  import { e as ethertousd } from "./ethertousd-CC_ezooz.js";
22
22
  var eventemitter3 = { exports: {} }, hasRequiredEventemitter3;
@@ -1,8 +1,8 @@
1
1
  import * as D from "react";
2
2
  import kt from "react";
3
- import { p as J, P as i, a6 as St, m as Bt, g as Wt, b as Lt, _ as Te, d as z, h as Nt, i as Ht, s as Vt } from "./index-COkzLDgT.js";
3
+ import { p as J, P as i, aD as St, m as Bt, g as Wt, b as Lt, _ as Te, d as z, h as Nt, i as Ht, s as Vt } from "./index-BZtHqNTb.js";
4
4
  import { jsx as de } from "react/jsx-runtime";
5
- import { o as et, P as It, b as Se, a as tt, m as Ut, r as mt, h as qt, H as Ee, T as Ft, q as _t, j as Xt, n as zt, t as rt, v as Yt, w as Gt } from "./useRegisterError-W3tXBEyF.js";
5
+ import { o as et, P as It, b as Se, a as tt, m as Ut, r as mt, h as qt, H as Ee, T as Ft, q as _t, j as Xt, n as zt, t as rt, v as Yt, w as Gt } from "./useRegisterError-NftvtRty.js";
6
6
  let nt = 0;
7
7
  function Jt(e) {
8
8
  const [t, r] = D.useState(e), n = e || t;
@@ -1,10 +1,10 @@
1
1
  import { jsxs as b, jsx as t, Fragment as k } from "react/jsx-runtime";
2
- import { u as n, S as W } from "./index-COkzLDgT.js";
2
+ import { u as n, S as W } from "./index-BZtHqNTb.js";
3
3
  import { useState as S, useRef as x } from "react";
4
- import { u as j, i as I, W as D, F, f as p, c as u, z as R } from "./useRegisterError-W3tXBEyF.js";
4
+ import { u as j, i as I, W as D, F, f as p, c as u, z as R } from "./useRegisterError-NftvtRty.js";
5
5
  import { useAccount as T, useBalance as A } from "wagmi";
6
6
  import "@dynamic-labs/sdk-react-core";
7
- import { c as B, r as G } from "./index-6ItmM_aj.js";
7
+ import { c as B, r as G } from "./index-DtOKGEj5.js";
8
8
  function H({ amount: w, setAmount: l, fetchBalance: M, getCoinBalance: h, isBalanceLoading: f }) {
9
9
  var d, o;
10
10
  const s = n((a) => a.configuration), e = n((a) => a.fromCoin), r = n((a) => a.fromChain), { isAnyWalletConnected: g } = j({ chainData: r }), [$, z] = S(40), { address: N } = T(), v = x(), { defaultCoin: y } = I;
@@ -1,13 +1,13 @@
1
1
  import { jsx as e, jsxs as t, Fragment as m } from "react/jsx-runtime";
2
2
  import { t as te } from "./truncate-D9t92mVX.js";
3
- import { u as r, S as o, l as we } from "./index-COkzLDgT.js";
3
+ import { u as r, S as o, l as we } from "./index-BZtHqNTb.js";
4
4
  import { useState as ie, useEffect as le } from "react";
5
5
  import { s as a } from "./WidgetForm.module-QHJ0-m5f.js";
6
6
  import { G as ce, C as de, S as me } from "./clockIcon-C2W5xvyt.js";
7
- import { S as re } from "./down-CeMfA1IA.js";
7
+ import { S as re } from "./down-BA4bctKM.js";
8
8
  import { e as se } from "./ethertousd-CC_ezooz.js";
9
- import { O as H } from "./index-Dnhi5kZz.js";
10
- import { z as ae, F as J, i as oe } from "./useRegisterError-W3tXBEyF.js";
9
+ import { O as H } from "./index-Nzgx9EuZ.js";
10
+ import { z as ae, F as J, i as oe } from "./useRegisterError-NftvtRty.js";
11
11
  function xe({ fill: n }) {
12
12
  return /* @__PURE__ */ e(
13
13
  "svg",
@@ -1,6 +1,6 @@
1
1
  import { jsxs as w, jsx as t, Fragment as d } from "react/jsx-runtime";
2
2
  import { s as o } from "./WidgetForm.module-QHJ0-m5f.js";
3
- import { u as l, l as c } from "./index-COkzLDgT.js";
3
+ import { u as l, l as c } from "./index-BZtHqNTb.js";
4
4
  function f({ routesData: i, routes: a, quoteTimer: n }) {
5
5
  var b;
6
6
  const r = l((s) => s.configuration), e = l((s) => s.gradient);
@@ -1,5 +1,5 @@
1
1
  import { jsxs as s, jsx as t } from "react/jsx-runtime";
2
- import { u as a } from "./index-COkzLDgT.js";
2
+ import { u as a } from "./index-BZtHqNTb.js";
3
3
  function w({ fill1: o, fill2: r }) {
4
4
  return /* @__PURE__ */ s(
5
5
  "svg",
@@ -1,8 +1,8 @@
1
- import { b as go, g as To, i as yo, _ as vo, p as B, d as n, e as D, s as Q, f as Ve, h as Po, j as ze, P as e } from "./index-COkzLDgT.js";
1
+ import { b as go, g as To, i as yo, _ as vo, p as B, d as n, e as D, s as Q, f as Ve, h as Po, j as ze, P as e } from "./index-BZtHqNTb.js";
2
2
  import * as p from "react";
3
- import { G as Be, b as wo, u as Ro, a as Co, P as He } from "./Grow-BC22ngtu.js";
3
+ import { G as Be, b as wo, u as Ro, a as Co, P as He } from "./Grow-Uj-CLT6y.js";
4
4
  import { jsx as j, jsxs as Se } from "react/jsx-runtime";
5
- import { j as xo, q as I, l as Ue, s as Oo, b as Eo, n as Mo, D as A, E as _o, w as No } from "./useRegisterError-W3tXBEyF.js";
5
+ import { j as xo, q as I, l as Ue, s as Oo, b as Eo, n as Mo, D as A, E as _o, w as No } from "./useRegisterError-NftvtRty.js";
6
6
  function Lo(r) {
7
7
  return To("MuiTooltip", r);
8
8
  }
@@ -1,13 +1,13 @@
1
1
  import { jsx as N } from "react/jsx-runtime";
2
2
  import { useState as q, useEffect as P } from "react";
3
- import { useSwitchNetwork as je, useDynamicContext as Ae, useIsLoggedIn as ve } from "@dynamic-labs/sdk-react-core";
4
- import { a as we, u as T, a2 as ze, a3 as Me } from "./index-COkzLDgT.js";
3
+ import { useSwitchNetwork as je, useDynamicContext as Ae, useIsLoggedIn as ze } from "@dynamic-labs/sdk-react-core";
4
+ import { a as we, u as T, az as ve, aA as Me } from "./index-BZtHqNTb.js";
5
5
  import { s as f } from "./WidgetForm.module-QHJ0-m5f.js";
6
6
  import { useAccount as Oe, useConfig as Re, useSwitchChain as Ve, useBalance as qe } from "wagmi";
7
- import { u as ae, d as Pe, c as _e, C as oe } from "./useRegisterError-W3tXBEyF.js";
8
- import "./getCosmosAddress-B0ctKwuq.js";
7
+ import { u as ae, d as Pe, c as _e, C as oe } from "./useRegisterError-NftvtRty.js";
8
+ import "./getCosmosAddress-BqBmix5V.js";
9
9
  import { v as He } from "./validError-CDlJpg_f.js";
10
- import { u as Je, p as Ke } from "./index-6ItmM_aj.js";
10
+ import { u as Je, p as Ke } from "./index-DtOKGEj5.js";
11
11
  function Qe(n) {
12
12
  const { wallet: h, address: g } = we(), [E, S] = q(0);
13
13
  async function m() {
@@ -26,7 +26,7 @@ function nt({ routesData: n, routes: h, amount: g, isAmountTyped: E, handleShowW
26
26
  var Y, Z, W, k, D, C, ee, te, se, re, ce, ne, ie;
27
27
  const o = T((s) => s.gradient), x = T((s) => s.configuration), e = T((s) => s.fromChain), i = T((s) => s.fromCoin), r = T((s) => s.toChain), w = T((s) => s.toCoin), { isConnected: F, address: _, chain: I } = Oe(), pe = Re(), ge = je(), { getBothWalletConnection: ye, getConnectWallet: xe } = ae({
28
28
  chainData: e
29
- }), { connected: H, address: J, disconnect: Ue } = we(), v = T((s) => s.toDisconnect), d = T((s) => s.customWallet), { getWallet: Ie } = ae({ chainData: e }), he = xe(e, r), [z, Te] = q("101"), { tronBal: M } = Qe(e), { cosmosBalance: K } = Je(), O = ((Y = e.chain) == null ? void 0 : Y.length) && ((Z = r.chain) == null ? void 0 : Z.length), R = ((W = i.address) == null ? void 0 : W.length) && ((k = w.address) == null ? void 0 : k.length), me = Pe(), Ne = ze(), { switchChain: Xe, switchChainAsync: fe, isPending: Be } = Ve({
29
+ }), { connected: H, address: J, disconnect: Ue } = we(), z = T((s) => s.toDisconnect), d = T((s) => s.customWallet), { getWallet: Ie } = ae({ chainData: e }), he = xe(e, r), [v, Te] = q("101"), { tronBal: M } = Qe(e), { cosmosBalance: K } = Je(), O = ((Y = e.chain) == null ? void 0 : Y.length) && ((Z = r.chain) == null ? void 0 : Z.length), R = ((W = i.address) == null ? void 0 : W.length) && ((k = w.address) == null ? void 0 : k.length), me = Pe(), Ne = ve(), { switchChain: Xe, switchChainAsync: fe, isPending: Be } = Ve({
30
30
  chainId: Number((e == null ? void 0 : e.chainId) || "0"),
31
31
  config: pe,
32
32
  throwForSwitchChainNotSupported: !0,
@@ -49,7 +49,7 @@ function nt({ routesData: n, routes: h, amount: g, isAmountTyped: E, handleShowW
49
49
  await fe({ chainId: Number((e == null ? void 0 : e.chainId) || "0") });
50
50
  } catch {
51
51
  }
52
- else if ((e == null ? void 0 : e.networkType) === "sol" && z !== ((e == null ? void 0 : e.chainId) == "eclipse-svm" ? "201" : "101"))
52
+ else if ((e == null ? void 0 : e.networkType) === "sol" && v !== ((e == null ? void 0 : e.chainId) == "eclipse-svm" ? "201" : "101"))
53
53
  try {
54
54
  let s = await ge({ wallet: b, network: e.chainId == "eclipse-svm" ? "201" : "101" });
55
55
  U();
@@ -60,7 +60,7 @@ function nt({ routesData: n, routes: h, amount: g, isAmountTyped: E, handleShowW
60
60
  ...n
61
61
  }), B && (ue(!1), A());
62
62
  }
63
- const { primaryWallet: b } = Ae(), V = ve(), B = (e == null ? void 0 : e.networkType) === r.networkType ? !!((C = (D = Ie(e)) == null ? void 0 : D.address) != null && C.length) : ye(e == null ? void 0 : e.networkType, (d == null ? void 0 : d.length) > 30 ? "customWallet" : r == null ? void 0 : r.networkType), U = async () => {
63
+ const { primaryWallet: b } = Ae(), V = ze(), B = (e == null ? void 0 : e.networkType) === r.networkType ? !!((C = (D = Ie(e)) == null ? void 0 : D.address) != null && C.length) : ye(e == null ? void 0 : e.networkType, (d == null ? void 0 : d.length) > 30 ? "customWallet" : r == null ? void 0 : r.networkType), U = async () => {
64
64
  if (b)
65
65
  try {
66
66
  const s = await b.getNetwork();
@@ -94,7 +94,7 @@ function nt({ routesData: n, routes: h, amount: g, isAmountTyped: E, handleShowW
94
94
  amountInToken: c.amountInToken,
95
95
  gas: X(c.amountInToken, t == null ? void 0 : t.decimals),
96
96
  token: t,
97
- nativeBal: (d == null ? void 0 : d.length) > 30 && !v && (t == null ? void 0 : t.chainId) == (r == null ? void 0 : r.chainId) && (r == null ? void 0 : r.chainId) !== (e == null ? void 0 : e.chainId) ? 0 : (t == null ? void 0 : t.networkType) == "sol" ? L : (t == null ? void 0 : t.networkType) == "tron" ? M : (t == null ? void 0 : t.networkType) == "cosmos" ? $e(t) : Se(),
97
+ nativeBal: (d == null ? void 0 : d.length) > 30 && !z && (t == null ? void 0 : t.chainId) == (r == null ? void 0 : r.chainId) && (r == null ? void 0 : r.chainId) !== (e == null ? void 0 : e.chainId) ? 0 : (t == null ? void 0 : t.networkType) == "sol" ? L : (t == null ? void 0 : t.networkType) == "tron" ? M : (t == null ? void 0 : t.networkType) == "cosmos" ? $e(t) : Se(),
98
98
  isFromChain: (e == null ? void 0 : e.chainId) === (t == null ? void 0 : t.chainId.toString()),
99
99
  order: (e == null ? void 0 : e.chainId) === (t == null ? void 0 : t.chainId) ? 1 : (r == null ? void 0 : r.chainId) === (t == null ? void 0 : t.chainId) ? 2 : G.length > 2 ? 3 : 2
100
100
  };
@@ -166,7 +166,7 @@ function nt({ routesData: n, routes: h, amount: g, isAmountTyped: E, handleShowW
166
166
  text: "From and To asset can not be the same!",
167
167
  isGradient: !1,
168
168
  color: "bw-bg-border-primary"
169
- }) : (p = (u = (s = h == null ? void 0 : h.data) == null ? void 0 : s.data) == null ? void 0 : u.quotes) != null && p.length ? F && Number((e == null ? void 0 : e.chainId) || "0") !== (I == null ? void 0 : I.id) && (e == null ? void 0 : e.networkType) === "evm" || V && ((e == null ? void 0 : e.chainId) === "eclipse-svm" ? "201" : "101") !== z && (e == null ? void 0 : e.networkType) === "sol" ? a({
169
+ }) : (p = (u = (s = h == null ? void 0 : h.data) == null ? void 0 : s.data) == null ? void 0 : u.quotes) != null && p.length ? F && Number((e == null ? void 0 : e.chainId) || "0") !== (I == null ? void 0 : I.id) && (e == null ? void 0 : e.networkType) === "evm" || V && ((e == null ? void 0 : e.chainId) === "eclipse-svm" ? "201" : "101") !== v && (e == null ? void 0 : e.networkType) === "sol" ? a({
170
170
  text: `Switch Chain to ${e.chain}`,
171
171
  isGradient: !0,
172
172
  color: o || f.gradientbutton
@@ -179,7 +179,7 @@ function nt({ routesData: n, routes: h, amount: g, isAmountTyped: E, handleShowW
179
179
  isGradient: !0,
180
180
  color: o || f.gradientbutton
181
181
  });
182
- }, [z, b, i, w, g, e, r, (ee = y.data) == null ? void 0 : ee.formatted, n, y.isFetching, y.isLoading, F, Q, B, h.isFetching, I == null ? void 0 : I.id, E, M, L, d, K]);
182
+ }, [v, b, i, w, g, e, r, (ee = y.data) == null ? void 0 : ee.formatted, n, y.isFetching, y.isLoading, F, Q, B, h.isFetching, I == null ? void 0 : I.id, E, M, L, d, K]);
183
183
  let Le = [`switch chain to ${(te = e.chain) == null ? void 0 : te.toLowerCase()}`, `select ${(se = e.chain) == null ? void 0 : se.toLowerCase()} wallet`, "connect custom wallet", "enter recipient wallet address"];
184
184
  function Fe() {
185
185
  var s, u, p, $;
@@ -197,7 +197,7 @@ function nt({ routesData: n, routes: h, amount: g, isAmountTyped: E, handleShowW
197
197
  },
198
198
  className: `bw-w-full bw-rounded-sm bw-h-[52px] ${l != null && l.isGradient ? "bw-p-[3px]" : "bw-p-[1px]"} bw-mt-3 bw-border-0 bw-relative bw-z-0 disabled:bw-opacity-70 ${O && R && l.color} ${l.text.length > 29 ? "bw-text-xl" : "bw-text-2xl"} ${l != null && l.isGradient ? "bw-font-bold bw-text-text-primary" : "bw-font-normal bw-text-text-secondary"}`,
199
199
  onClick: () => {
200
- B || (S(!0), ((e == null ? void 0 : e.networkType) !== "evm" && F || (e == null ? void 0 : e.networkType) !== "sol" && V && b !== null || (e == null ? void 0 : e.networkType) !== "tron" && H && J) && !v ? m("from") : F && (r == null ? void 0 : r.networkType) !== "evm" || V && (r == null ? void 0 : r.networkType) !== "sol" || (r == null ? void 0 : r.networkType) !== "tron" && H && J || v ? m("to") : m("from")), e.chainId === "eclipse-svm" && !j(b) ? (S(!0), m("from")) : r.chainId === "eclipse-svm" && e.chainId !== "eclipse-svm" && !j(b) && d.length < 30 ? (S(!0), m("to")) : Ge();
200
+ B || (S(!0), ((e == null ? void 0 : e.networkType) !== "evm" && F || (e == null ? void 0 : e.networkType) !== "sol" && V && b !== null || (e == null ? void 0 : e.networkType) !== "tron" && H && J) && !z ? m("from") : F && (r == null ? void 0 : r.networkType) !== "evm" || V && (r == null ? void 0 : r.networkType) !== "sol" || (r == null ? void 0 : r.networkType) !== "tron" && H && J || z ? m("to") : m("from")), e.chainId === "eclipse-svm" && !j(b) ? (S(!0), m("from")) : r.chainId === "eclipse-svm" && e.chainId !== "eclipse-svm" && !j(b) && d.length < 30 ? (S(!0), m("to")) : Ge();
201
201
  },
202
202
  children: /* @__PURE__ */ N("div", { className: "bw-rounded-sm bw-bg-background-container bw-flex bw-items-center bw-justify-center b-w-full bw-h-full", children: /* @__PURE__ */ N("p", { className: "bw-relative bw-z-20", children: O && R ? Be ? /* @__PURE__ */ N("div", { className: "bw-w-[30px] bw-flex bw-text-text-secondary bw-justify-center bw-items-center bw-h-[30px]", children: /* @__PURE__ */ N(oe, { size: 22, thickness: 5, color: "inherit" }) }) : B ? l.text.length ? l.text : "Start Transaction" : `Connect ${he} Wallet` : /* @__PURE__ */ N("div", { className: "bw-w-[30px] bw-flex bw-text-text-secondary bw-justify-center bw-items-center bw-h-[30px]", children: /* @__PURE__ */ N(oe, { size: 22, thickness: 5, color: "inherit" }) }) }) })
203
203
  }
@@ -1,4 +1,4 @@
1
- import { m as l } from "./core-BNSQYV_O.js";
1
+ import { m as l } from "./core-CQumm9MP.js";
2
2
  const o = l`<svg
3
3
  width="14"
4
4
  height="14"
@@ -1,4 +1,4 @@
1
- import { m as a } from "./core-BNSQYV_O.js";
1
+ import { m as a } from "./core-CQumm9MP.js";
2
2
  const o = a`<svg fill="none" viewBox="0 0 24 24">
3
3
  <path
4
4
  style="fill: var(--wui-color-accent-100);"
@@ -1,4 +1,4 @@
1
- import { m as a } from "./core-BNSQYV_O.js";
1
+ import { m as a } from "./core-CQumm9MP.js";
2
2
  const e = a`
3
3
  <svg width="36" height="36">
4
4
  <path
@@ -1,4 +1,4 @@
1
- import { m as l } from "./core-BNSQYV_O.js";
1
+ import { m as l } from "./core-CQumm9MP.js";
2
2
  const f = l`<svg fill="none" viewBox="0 0 40 40">
3
3
  <g clip-path="url(#a)">
4
4
  <g clip-path="url(#b)">
@@ -1,4 +1,4 @@
1
- import { m as o } from "./core-BNSQYV_O.js";
1
+ import { m as o } from "./core-CQumm9MP.js";
2
2
  const e = o`<svg fill="none" viewBox="0 0 14 15">
3
3
  <path
4
4
  fill="currentColor"
@@ -1,4 +1,4 @@
1
- import { m as C } from "./core-BNSQYV_O.js";
1
+ import { m as C } from "./core-CQumm9MP.js";
2
2
  const e = C`<svg
3
3
  fill="none"
4
4
  viewBox="0 0 21 20"
@@ -1,4 +1,4 @@
1
- import { m as e } from "./core-BNSQYV_O.js";
1
+ import { m as e } from "./core-CQumm9MP.js";
2
2
  const o = e`<svg fill="none" viewBox="0 0 14 15">
3
3
  <path
4
4
  fill="currentColor"
@@ -1,4 +1,4 @@
1
- import { m as l } from "./core-BNSQYV_O.js";
1
+ import { m as l } from "./core-CQumm9MP.js";
2
2
  const e = l`<svg fill="none" viewBox="0 0 14 15">
3
3
  <path
4
4
  fill="currentColor"
@@ -1,4 +1,4 @@
1
- import { m as o } from "./core-BNSQYV_O.js";
1
+ import { m as o } from "./core-CQumm9MP.js";
2
2
  const e = o`<svg fill="none" viewBox="0 0 14 15">
3
3
  <path
4
4
  fill="currentColor"
@@ -1,4 +1,4 @@
1
- import { m as e } from "./core-BNSQYV_O.js";
1
+ import { m as e } from "./core-CQumm9MP.js";
2
2
  const o = e`<svg
3
3
  xmlns="http://www.w3.org/2000/svg"
4
4
  width="12"
@@ -1,6 +1,6 @@
1
- import { i as D, e as G, r as q, a as A, x as c, C as U, A as M, O as tt, b as z, E as et, R as O, c as Ut, d as K, f as N, S as pe, g as Cn, W as fe, h as Ze, j as vi, T as ti, k as Xt, M as on, l as rn, m as Dt, n as yi, o as $n } from "./core-BNSQYV_O.js";
2
- import { n as u, c as B, o as W, r as E, U as ht, e as Rn, f as En, a as In } from "./index--I2-zrX3.js";
3
- import { m as Wn } from "./index-COkzLDgT.js";
1
+ import { i as D, e as G, r as q, a as A, x as c, C as U, A as M, O as tt, b as z, E as et, R as O, c as Ut, d as K, f as N, S as pe, g as Cn, W as fe, h as Ze, j as vi, T as ti, k as Xt, M as on, l as rn, m as Dt, n as yi, o as $n } from "./core-CQumm9MP.js";
2
+ import { n as u, c as B, o as W, r as E, U as ht, e as Rn, f as En, a as In } from "./index-Dbgjq840.js";
3
+ import { m as Wn } from "./index-BZtHqNTb.js";
4
4
  const Sn = D`
5
5
  :host {
6
6
  position: relative;
@@ -1,4 +1,4 @@
1
- import { m as l } from "./core-BNSQYV_O.js";
1
+ import { m as l } from "./core-CQumm9MP.js";
2
2
  const a = l`<svg fill="none" viewBox="0 0 20 20">
3
3
  <path
4
4
  fill="currentColor"
@@ -1,4 +1,4 @@
1
- import { m as C } from "./core-BNSQYV_O.js";
1
+ import { m as C } from "./core-CQumm9MP.js";
2
2
  const l = C`<svg
3
3
  xmlns="http://www.w3.org/2000/svg"
4
4
  width="12"
@@ -0,0 +1,228 @@
1
+ import { ac as L, ad as b, ae as F, af as N, ag as P, ah as w, ai as S, aj as E, ak as $, al as C, am as I, an as m, ao as G, ap as R, aq as k, ar as y, as as O, at as q, au as T, av as v, aw as D, ax as A, ay as H } from "./index-BZtHqNTb.js";
2
+ const h = "/docs/contract/encodeErrorResult";
3
+ function x(t) {
4
+ const { abi: s, errorName: a, args: r } = t;
5
+ let e = s[0];
6
+ if (a) {
7
+ const u = L({ abi: s, args: r, name: a });
8
+ if (!u)
9
+ throw new b(a, { docsPath: h });
10
+ e = u;
11
+ }
12
+ if (e.type !== "error")
13
+ throw new b(void 0, { docsPath: h });
14
+ const c = F(e), n = N(c);
15
+ let o = "0x";
16
+ if (r && r.length > 0) {
17
+ if (!e.inputs)
18
+ throw new P(e.name, { docsPath: h });
19
+ o = w(e.inputs, r);
20
+ }
21
+ return S([n, o]);
22
+ }
23
+ const p = "/docs/contract/encodeFunctionResult";
24
+ function j(t) {
25
+ const { abi: s, functionName: a, result: r } = t;
26
+ let e = s[0];
27
+ if (a) {
28
+ const n = L({ abi: s, name: a });
29
+ if (!n)
30
+ throw new E(a, { docsPath: p });
31
+ e = n;
32
+ }
33
+ if (e.type !== "function")
34
+ throw new E(void 0, { docsPath: p });
35
+ if (!e.outputs)
36
+ throw new $(e.name, { docsPath: p });
37
+ const c = (() => {
38
+ if (e.outputs.length === 0)
39
+ return [];
40
+ if (e.outputs.length === 1)
41
+ return [r];
42
+ if (Array.isArray(r))
43
+ return r;
44
+ throw new C(r);
45
+ })();
46
+ return w(e.outputs, c);
47
+ }
48
+ const U = "x-batch-gateway:true";
49
+ async function B(t) {
50
+ const { data: s, ccipRequest: a } = t, { args: [r] } = I({ abi: m, data: s }), e = [], c = [];
51
+ return await Promise.all(r.map(async (n, o) => {
52
+ try {
53
+ c[o] = await a(n), e[o] = !1;
54
+ } catch (u) {
55
+ e[o] = !0, c[o] = _(u);
56
+ }
57
+ })), j({
58
+ abi: m,
59
+ functionName: "query",
60
+ result: [e, c]
61
+ });
62
+ }
63
+ function _(t) {
64
+ return t.name === "HttpRequestError" && t.status ? x({
65
+ abi: m,
66
+ errorName: "HttpError",
67
+ args: [t.status, t.shortMessage]
68
+ }) : x({
69
+ abi: [G],
70
+ errorName: "Error",
71
+ args: ["shortMessage" in t ? t.shortMessage : t.message]
72
+ });
73
+ }
74
+ function J(t, s) {
75
+ if (!R(t, { strict: !1 }))
76
+ throw new k({ address: t });
77
+ if (!R(s, { strict: !1 }))
78
+ throw new k({ address: s });
79
+ return t.toLowerCase() === s.toLowerCase();
80
+ }
81
+ class W extends y {
82
+ constructor({ callbackSelector: s, cause: a, data: r, extraData: e, sender: c, urls: n }) {
83
+ var o;
84
+ super(a.shortMessage || "An error occurred while fetching for an offchain result.", {
85
+ cause: a,
86
+ metaMessages: [
87
+ ...a.metaMessages || [],
88
+ (o = a.metaMessages) != null && o.length ? "" : [],
89
+ "Offchain Gateway Call:",
90
+ n && [
91
+ " Gateway URL(s):",
92
+ ...n.map((u) => ` ${O(u)}`)
93
+ ],
94
+ ` Sender: ${c}`,
95
+ ` Data: ${r}`,
96
+ ` Callback selector: ${s}`,
97
+ ` Extra data: ${e}`
98
+ ].flat(),
99
+ name: "OffchainLookupError"
100
+ });
101
+ }
102
+ }
103
+ class z extends y {
104
+ constructor({ result: s, url: a }) {
105
+ super("Offchain gateway response is malformed. Response data must be a hex value.", {
106
+ metaMessages: [
107
+ `Gateway URL: ${O(a)}`,
108
+ `Response: ${q(s)}`
109
+ ],
110
+ name: "OffchainLookupResponseMalformedError"
111
+ });
112
+ }
113
+ }
114
+ class K extends y {
115
+ constructor({ sender: s, to: a }) {
116
+ super("Reverted sender address does not match target contract address (`to`).", {
117
+ metaMessages: [
118
+ `Contract address: ${a}`,
119
+ `OffchainLookup sender address: ${s}`
120
+ ],
121
+ name: "OffchainLookupSenderMismatchError"
122
+ });
123
+ }
124
+ }
125
+ const Y = "0x556f1830", Q = {
126
+ name: "OffchainLookup",
127
+ type: "error",
128
+ inputs: [
129
+ {
130
+ name: "sender",
131
+ type: "address"
132
+ },
133
+ {
134
+ name: "urls",
135
+ type: "string[]"
136
+ },
137
+ {
138
+ name: "callData",
139
+ type: "bytes"
140
+ },
141
+ {
142
+ name: "callbackFunction",
143
+ type: "bytes4"
144
+ },
145
+ {
146
+ name: "extraData",
147
+ type: "bytes"
148
+ }
149
+ ]
150
+ };
151
+ async function Z(t, { blockNumber: s, blockTag: a, data: r, to: e }) {
152
+ const { args: c } = T({
153
+ data: r,
154
+ abi: [Q]
155
+ }), [n, o, u, f, d] = c, { ccipRead: i } = t, g = i && typeof (i == null ? void 0 : i.request) == "function" ? i.request : V;
156
+ try {
157
+ if (!J(e, n))
158
+ throw new K({ sender: n, to: e });
159
+ const l = o.includes(U) ? await B({
160
+ data: u,
161
+ ccipRequest: g
162
+ }) : await g({ data: u, sender: n, urls: o }), { data: M } = await v(t, {
163
+ blockNumber: s,
164
+ blockTag: a,
165
+ data: D([
166
+ f,
167
+ w([{ type: "bytes" }, { type: "bytes" }], [l, d])
168
+ ]),
169
+ to: e
170
+ });
171
+ return M;
172
+ } catch (l) {
173
+ throw new W({
174
+ callbackSelector: f,
175
+ cause: l,
176
+ data: r,
177
+ extraData: d,
178
+ sender: n,
179
+ urls: o
180
+ });
181
+ }
182
+ }
183
+ async function V({ data: t, sender: s, urls: a }) {
184
+ var e;
185
+ let r = new Error("An unknown error occurred.");
186
+ for (let c = 0; c < a.length; c++) {
187
+ const n = a[c], o = n.includes("{data}") ? "GET" : "POST", u = o === "POST" ? { data: t, sender: s } : void 0, f = o === "POST" ? { "Content-Type": "application/json" } : {};
188
+ try {
189
+ const d = await fetch(n.replace("{sender}", s.toLowerCase()).replace("{data}", t), {
190
+ body: JSON.stringify(u),
191
+ headers: f,
192
+ method: o
193
+ });
194
+ let i;
195
+ if ((e = d.headers.get("Content-Type")) != null && e.startsWith("application/json") ? i = (await d.json()).data : i = await d.text(), !d.ok) {
196
+ r = new A({
197
+ body: u,
198
+ details: i != null && i.error ? q(i.error) : d.statusText,
199
+ headers: d.headers,
200
+ status: d.status,
201
+ url: n
202
+ });
203
+ continue;
204
+ }
205
+ if (!H(i)) {
206
+ r = new z({
207
+ result: i,
208
+ url: n
209
+ });
210
+ continue;
211
+ }
212
+ return i;
213
+ } catch (d) {
214
+ r = new A({
215
+ body: u,
216
+ details: d.message,
217
+ url: n
218
+ });
219
+ }
220
+ }
221
+ throw r;
222
+ }
223
+ export {
224
+ V as ccipRequest,
225
+ Z as offchainLookup,
226
+ Q as offchainLookupAbiItem,
227
+ Y as offchainLookupSignature
228
+ };
@@ -1,4 +1,4 @@
1
- import { m as e } from "./core-BNSQYV_O.js";
1
+ import { m as e } from "./core-CQumm9MP.js";
2
2
  const o = e`<svg
3
3
  width="28"
4
4
  height="28"
@@ -1,4 +1,4 @@
1
- import { m as e } from "./core-BNSQYV_O.js";
1
+ import { m as e } from "./core-CQumm9MP.js";
2
2
  const o = e`<svg fill="none" viewBox="0 0 14 14">
3
3
  <path
4
4
  fill="currentColor"
@@ -1,4 +1,4 @@
1
- import { m as o } from "./core-BNSQYV_O.js";
1
+ import { m as o } from "./core-CQumm9MP.js";
2
2
  const e = o`<svg fill="none" viewBox="0 0 16 16">
3
3
  <path
4
4
  fill="currentColor"
@@ -1,4 +1,4 @@
1
- import { m as e } from "./core-BNSQYV_O.js";
1
+ import { m as e } from "./core-CQumm9MP.js";
2
2
  const o = e`<svg fill="none" viewBox="0 0 16 16">
3
3
  <path
4
4
  fill="currentColor"
@@ -1,4 +1,4 @@
1
- import { m as l } from "./core-BNSQYV_O.js";
1
+ import { m as l } from "./core-CQumm9MP.js";
2
2
  const o = l`<svg fill="none" viewBox="0 0 16 16">
3
3
  <path
4
4
  fill="currentColor"