@blockend/widget 1.0.39-beta.1 → 1.0.39
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/{AllRoutes-pVn5r2AF.js → AllRoutes-qDXVEBq_.js} +17 -17
- package/dist/{Box-2EhEu03K.js → Box-DkvAdVmJ.js} +1 -1
- package/dist/{EstGas-WwkfFHpv.js → EstGas-CwWMUtsV.js} +224 -54
- package/dist/{Grow-D4EVow-M.js → Grow-w3xFin50.js} +2 -2
- package/dist/{InputComp-DQBDoD71.js → InputComp-DRGHX0JB.js} +6 -6
- package/dist/{LoadRoute-42ZgErfe.js → LoadRoute-Dgxq32oV.js} +39 -39
- package/dist/{QuotesProgress-CTlZ7elT.js → QuotesProgress-mMpawJHx.js} +1 -1
- package/dist/{SwapAsset-CU5YEZ75.js → SwapAsset-Cm3PfEdc.js} +17 -4
- package/dist/{Tooltip-DSOAqpED.js → Tooltip-BQd46Vx1.js} +3 -3
- package/dist/{TxnButton-CfruxaOs.js → TxnButton-C7D4coqw.js} +19 -19
- package/dist/{add-DayuYwbp.js → add-DJRptrWn.js} +1 -1
- package/dist/{all-wallets-B7lOWwQ-.js → all-wallets-BEwoK0hI.js} +1 -1
- package/dist/{app-store-CWVen5K_.js → app-store-BO2d_fOI.js} +1 -1
- package/dist/{apple-Xce5ePDw.js → apple-D4_HcFag.js} +1 -1
- package/dist/{arrow-bottom-circle-m6M-yL2m.js → arrow-bottom-circle-Czbe973X.js} +1 -1
- package/dist/{arrow-bottom-CJ5QodIU.js → arrow-bottom-zyNIGfu0.js} +1 -1
- package/dist/{arrow-left-gbgYje3p.js → arrow-left-2Hi0GW--.js} +1 -1
- package/dist/{arrow-right-BWBYQ-3w.js → arrow-right-DsstxcUl.js} +1 -1
- package/dist/{arrow-top-TV0fK_PC.js → arrow-top-Dne06L8p.js} +1 -1
- package/dist/{bank-D5WUpbbn.js → bank-BmHmaR1d.js} +1 -1
- package/dist/{basic-yKyoIw_n.js → basic-Bhds2Wiy.js} +3 -3
- package/dist/{browser-C1Gw-601.js → browser-CjYfBUW5.js} +1 -1
- package/dist/{card-BGu7Ytfr.js → card-Bi7Hbsfs.js} +1 -1
- package/dist/{ccip-8pKaCE7W.js → ccip-B-yKJCDq.js} +1 -1
- package/dist/{checkmark-bold-C-Za8drF.js → checkmark-bold-CcJ3JQev.js} +1 -1
- package/dist/{checkmark-DXjp9482.js → checkmark-zC82vmPx.js} +1 -1
- package/dist/{chevron-bottom-pyAIkjST.js → chevron-bottom-mKbX_tpu.js} +1 -1
- package/dist/{chevron-left-Fo0wnlZX.js → chevron-left-CfsLd6Kh.js} +1 -1
- package/dist/{chevron-right-DkmxB-lW.js → chevron-right-Cis0mx_w.js} +1 -1
- package/dist/{chevron-top-r9CVQcQg.js → chevron-top-BZ7z4zOm.js} +1 -1
- package/dist/{chrome-store-CRlb0bJh.js → chrome-store-xJbsiNft.js} +1 -1
- package/dist/{clock-TqJS2h0Z.js → clock-BST36xyV.js} +1 -1
- package/dist/{close-C2cPb_3q.js → close-CUnRl6rj.js} +1 -1
- package/dist/{coinPlaceholder-D-_tUshz.js → coinPlaceholder-eRYldXBb.js} +1 -1
- package/dist/{compass-D-JOMMbC.js → compass-B53Amzmz.js} +1 -1
- package/dist/{copy-CS7IA_r_.js → copy-CeMF3vNH.js} +1 -1
- package/dist/{core-DbjedOio.js → core-Ba7AWU2F.js} +3 -3
- package/dist/{cursor-3K2-QZLT.js → cursor-BXkX3Iej.js} +1 -1
- package/dist/{cursor-transparent-DKdHMJra.js → cursor-transparent-vN3U0Y44.js} +1 -1
- package/dist/{desktop-CAxsE6Ga.js → desktop-CQcrUlG2.js} +1 -1
- package/dist/{disconnect-Dc-LNqNb.js → disconnect-DqjgPdZy.js} +1 -1
- package/dist/{discord-VfiQtaLg.js → discord-CAeZvfjm.js} +1 -1
- package/dist/{down-C69EIwo1.js → down-C7Cxaule.js} +4 -4
- package/dist/{etherscan-nfJcVg9R.js → etherscan-BepqbIgx.js} +1 -1
- package/dist/{exclamation-triangle-DaMU5L_4.js → exclamation-triangle-BQlxBTQb.js} +1 -1
- package/dist/{extension-BaO8FLXh.js → extension-DNJRGdDb.js} +1 -1
- package/dist/{external-link-B9oCkuPJ.js → external-link-CvRsvpXe.js} +1 -1
- package/dist/{facebook-nSdQubUH.js → facebook-C_xJkTY_.js} +1 -1
- package/dist/{farcaster-BtInSUqS.js → farcaster-BmW5dRUe.js} +1 -1
- package/dist/{filters-C9LrueAm.js → filters-BC3dndy5.js} +1 -1
- package/dist/{getChainIds-CQg6djVc.js → getChainIds-rz0R4QLM.js} +2 -2
- package/dist/{getCosmosAddress-Qwk5Y2WB.js → getCosmosAddress-DwtEOPre.js} +2 -2
- package/dist/{github-BVzfRJXr.js → github-SFKWAQKv.js} +1 -1
- package/dist/{google-C_Zkq44M.js → google-CTJCrgwS.js} +1 -1
- package/dist/{hamburger-Bss9ENTU.js → hamburger-Bz6xyfny.js} +5 -5
- package/dist/{help-circle-D9KC2TTg.js → help-circle-tDDI6xDF.js} +1 -1
- package/dist/{id-D5ODDUPi.js → id-HUj92mdR.js} +1 -1
- package/dist/{image-D9BguVkX.js → image-kh61TiAZ.js} +1 -1
- package/dist/{index-mLOjEWq5.js → index-51ZOYWe6.js} +46 -20
- package/dist/{index-B-LMuVus.js → index-BIrmH9KU.js} +6 -6
- package/dist/{index-DTTNs7X2.js → index-Bp8YmQ0W.js} +1 -1
- package/dist/{index-B-Y6H6ZT.js → index-C59cU9Oj.js} +2 -2
- package/dist/{index-Csnr5wYZ.js → index-COJO0042.js} +142 -116
- package/dist/{index-B8BzdUYX.js → index-CbrDck1Q.js} +396 -396
- package/dist/{index-D7cNHH01.js → index-CzOzce-R.js} +1 -1
- package/dist/{index-Bknn7U1s.js → index-DRvmXt-Y.js} +87 -41
- package/dist/{index-C3Yx39QI.js → index-DgfOGyG9.js} +109 -43
- package/dist/{index-CCJxyv13.js → index-MSX0Gdx1.js} +1723 -1723
- package/dist/{index-D1suJrBe.js → index-u7LhDe5x.js} +78 -78
- package/dist/{index.es-J7Adt0qn.js → index.es-BVl6m7Pn.js} +2 -2
- package/dist/{index.es-BvpkVeYn.js → index.es-CVMqdfN3.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{info-BbZu8EmP.js → info-CqS3XBRw.js} +1 -1
- package/dist/{info-circle-DC4d8t58.js → info-circle-rygiOkU3.js} +1 -1
- package/dist/{lightbulb-B_XHWcwO.js → lightbulb-CKEjyRaf.js} +1 -1
- package/dist/{mail-DUBlSWnW.js → mail-BWMwauvE.js} +1 -1
- package/dist/{mobile-DW7n1RaC.js → mobile-68osTp4b.js} +1 -1
- package/dist/{more-CHiJ0jdA.js → more-BC8GE3IW.js} +1 -1
- package/dist/{network-placeholder-fkXdFnU3.js → network-placeholder--GIoATy6.js} +1 -1
- package/dist/{nftPlaceholder-CzdJZ_xc.js → nftPlaceholder-Dp8gBk3E.js} +1 -1
- package/dist/{off-liaZCdZH.js → off-DBKQ2uD0.js} +1 -1
- package/dist/{play-store-Dlmh4PlW.js → play-store-DLXuifjq.js} +1 -1
- package/dist/{plus-QBGWemZZ.js → plus-B2UVpZoZ.js} +1 -1
- package/dist/{qr-code-2rARSIxP.js → qr-code-B70pCkf_.js} +1 -1
- package/dist/{recycle-horizontal-DByCihYW.js → recycle-horizontal-f1-LcR5k.js} +1 -1
- package/dist/{refresh-BFM457iN.js → refresh-DqxcTS2O.js} +1 -1
- package/dist/{reown-logo-C9dbpsPZ.js → reown-logo-DPYJPO0J.js} +1 -1
- package/dist/{search-_GMCgtU4.js → search-C2ANVg9Q.js} +1 -1
- package/dist/{send-CBnSvpXY.js → send-jEzvJdO5.js} +1 -1
- package/dist/{swapHorizontal-BiN3nSBx.js → swapHorizontal-DsfyOh5t.js} +1 -1
- package/dist/{swapHorizontalBold-CAWIrlnq.js → swapHorizontalBold-BklgdCvD.js} +1 -1
- package/dist/{swapHorizontalMedium-DrfkO94z.js → swapHorizontalMedium-xuE1OPS7.js} +1 -1
- package/dist/{swapHorizontalRoundedBold-DbJnc4Gs.js → swapHorizontalRoundedBold-DXR4a277.js} +1 -1
- package/dist/{swapVertical-nx3G0q67.js → swapVertical-BaTPHjiX.js} +1 -1
- package/dist/{telegram-BBmONWiX.js → telegram-nFLInMdI.js} +1 -1
- package/dist/{three-dots-CxLcYR_u.js → three-dots-CkFcJxrL.js} +1 -1
- package/dist/{twitch-BCER0FU2.js → twitch-DRXpD9lS.js} +1 -1
- package/dist/{twitterIcon-D7lNSGDl.js → twitterIcon-DILOWGoL.js} +1 -1
- package/dist/{unsupportedProp-Cgx_R3Ro.js → unsupportedProp-wLSeuqFw.js} +1 -1
- package/dist/{useRegisterError-CIj7yT4N.js → useRegisterError-Bcj3H5Px.js} +1 -1
- package/dist/{verify-BtPqlMYv.js → verify-dxcsdtk9.js} +1 -1
- package/dist/{verify-filled-D69dNjXa.js → verify-filled-BHXk8ei0.js} +1 -1
- package/dist/{w3m-modal-BRaqvs1m.js → w3m-modal-CLvDtp4W.js} +2 -2
- package/dist/{wallet-B0uYbj_y.js → wallet-j7M44X01.js} +1 -1
- package/dist/{wallet-placeholder-C64Kayjj.js → wallet-placeholder-8MIkVS8L.js} +1 -1
- package/dist/{walletconnect-Bl6U4E40.js → walletconnect-DP64PiDx.js} +1 -1
- package/dist/{warning-circle-DdcOPYkT.js → warning-circle-BLBqorXY.js} +1 -1
- package/dist/widget.css +1 -1
- package/dist/{x-PEBthjJm.js → x-jWwE-bx-.js} +1 -1
- package/package.json +1 -1
@@ -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-
|
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-
|
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-Bcj3H5Px.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-MSX0Gdx1.js";
|
8
8
|
import { S as We, C as je, G as Ve } from "./clockIcon-C2W5xvyt.js";
|
9
|
-
import { T as Pt } from "./Tooltip-
|
10
|
-
import { O as we } from "./index-
|
11
|
-
import { B as _t } from "./Box-
|
12
|
-
import { c as ct, d as it, r as At } from "./index-
|
13
|
-
import { b as dt } from "./Grow-
|
14
|
-
import { B as bt, o as ut } from "./getChainIds-
|
15
|
-
import { u as Wt } from "./unsupportedProp-
|
9
|
+
import { T as Pt } from "./Tooltip-BQd46Vx1.js";
|
10
|
+
import { O as we } from "./index-Bp8YmQ0W.js";
|
11
|
+
import { B as _t } from "./Box-DkvAdVmJ.js";
|
12
|
+
import { c as ct, d as it, r as At } from "./index-CzOzce-R.js";
|
13
|
+
import { b as dt } from "./Grow-w3xFin50.js";
|
14
|
+
import { B as bt, o as ut } from "./getChainIds-rz0R4QLM.js";
|
15
|
+
import { u as Wt } from "./unsupportedProp-wLSeuqFw.js";
|
16
16
|
let be;
|
17
17
|
function wt() {
|
18
18
|
if (be)
|
@@ -1554,9 +1554,9 @@ function vo({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal
|
|
1554
1554
|
] }) }),
|
1555
1555
|
/* @__PURE__ */ l("div", { className: "bw-flex bw-flex-col bw-justify-between bw-w-full bw-items-end", children: [
|
1556
1556
|
/* @__PURE__ */ l("div", { className: "bw-flex bw-items-center bw-gap-x-2", children: [
|
1557
|
-
/* @__PURE__ */ l("div", { className: ` bw-relative bw-rounded-[50%] bw-w-[21px] bw-h-[21px] bw-border bw-border-border-primary ${(H = t.to) != null && H.image ? "bw-bg-background-
|
1557
|
+
/* @__PURE__ */ l("div", { className: ` bw-relative bw-rounded-[50%] bw-w-[21px] bw-h-[21px] bw-border bw-border-border-primary ${(H = t.to) != null && H.image ? "bw-bg-background-coin" : ""}`, children: [
|
1558
1558
|
(j = t.to) != null && j.image ? /* @__PURE__ */ e("img", { src: t.to.image, width: 20, height: 20, alt: "img", className: "bw-rounded-[50%] bw-max-w-[20px] bw-max-h-[20px] bw-object-contain" }) : /* @__PURE__ */ e("img", { src: O, width: 20, height: 20, alt: "img", className: "bw-rounded-[50%]" }),
|
1559
|
-
/* @__PURE__ */ l("div", { className: `bw-bg-background-
|
1559
|
+
/* @__PURE__ */ l("div", { className: `bw-bg-background-coin bw-absolute bw-bottom-[-30%] bw-right-[-15%] bw-rounded-[50%] bw-w-[12px] bw-h-[12px] bw-border bw-border-border-primary ${a != null && a.image ? "bw-bg-background-coin" : ""}`, children: [
|
1560
1560
|
" ",
|
1561
1561
|
a != null && a.image ? /* @__PURE__ */ e("img", { src: a.image, width: 11, height: 11, className: "bw-rounded-[50%]", alt: "img" }) : /* @__PURE__ */ e("img", { src: O, width: 11, height: 11, className: "bw-rounded-[50%]", alt: "img" })
|
1562
1562
|
] })
|
@@ -1715,9 +1715,9 @@ function So({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal
|
|
1715
1715
|
] }) }),
|
1716
1716
|
/* @__PURE__ */ l("div", { className: "bw-flex bw-flex-col bw-justify-between bw-w-full bw-items-end", children: [
|
1717
1717
|
/* @__PURE__ */ l("div", { className: "bw-flex bw-items-center bw-gap-x-2", children: [
|
1718
|
-
/* @__PURE__ */ l("div", { className: ` bw-relative bw-rounded-[50%] bw-w-[21px] bw-h-[21px] bw-border bw-border-border-primary ${(H = t.to) != null && H.image ? "bw-bg-background-
|
1718
|
+
/* @__PURE__ */ l("div", { className: ` bw-relative bw-rounded-[50%] bw-w-[21px] bw-h-[21px] bw-border bw-border-border-primary ${(H = t.to) != null && H.image ? "bw-bg-background-coin" : ""}`, children: [
|
1719
1719
|
(j = t.to) != null && j.image ? /* @__PURE__ */ e("img", { src: t.to.image, width: 20, height: 20, alt: "img", className: "bw-rounded-[50%] bw-max-w-[20px] bw-max-h-[20px] bw-object-contain" }) : /* @__PURE__ */ e("img", { src: h, width: 20, height: 20, alt: "img", className: "bw-rounded-[50%]" }),
|
1720
|
-
/* @__PURE__ */ l("div", { className: ` bw-absolute bw-bottom-[-30%] bw-right-[-15%] bw-rounded-[50%] bw-w-[12px] bw-h-[12px] bw-border bw-border-border-primary ${c != null && c.image ? "bw-bg-background-
|
1720
|
+
/* @__PURE__ */ l("div", { className: ` bw-absolute bw-bottom-[-30%] bw-right-[-15%] bw-rounded-[50%] bw-w-[12px] bw-h-[12px] bw-border bw-border-border-primary ${c != null && c.image ? "bw-bg-background-coin" : ""}`, children: [
|
1721
1721
|
" ",
|
1722
1722
|
c != null && c.image ? /* @__PURE__ */ e("img", { src: c.image, width: 11, height: 11, className: "bw-rounded-[50%]", alt: "img" }) : /* @__PURE__ */ e("img", { src: h, width: 11, height: 11, className: "bw-rounded-[50%]", alt: "img" })
|
1723
1723
|
] })
|
@@ -1847,9 +1847,9 @@ function Co({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal
|
|
1847
1847
|
] }) }),
|
1848
1848
|
/* @__PURE__ */ l("div", { className: "bw-flex bw-flex-col bw-justify-between bw-w-full bw-items-end", children: [
|
1849
1849
|
/* @__PURE__ */ l("div", { className: "bw-flex bw-items-center bw-gap-x-2", children: [
|
1850
|
-
/* @__PURE__ */ l("div", { className: ` bw-relative bw-rounded-[50%] bw-w-[21px] bw-h-[21px] bw-border bw-border-border-primary ${(H = t == null ? void 0 : t.to) != null && H.image ? "bw-bg-background-
|
1850
|
+
/* @__PURE__ */ l("div", { className: ` bw-relative bw-rounded-[50%] bw-w-[21px] bw-h-[21px] bw-border bw-border-border-primary ${(H = t == null ? void 0 : t.to) != null && H.image ? "bw-bg-background-coin" : ""}`, children: [
|
1851
1851
|
(j = t.to) != null && j.image ? /* @__PURE__ */ e("img", { src: t.to.image, width: 20, height: 20, alt: "img", className: "bw-rounded-[50%] bw-max-w-[20px] bw-max-h-[20px] bw-object-contain" }) : /* @__PURE__ */ e("img", { src: h, width: 20, height: 20, alt: "img", className: "bw-rounded-[50%]" }),
|
1852
|
-
/* @__PURE__ */ l("div", { className: ` bw-absolute bw-bottom-[-30%] bw-right-[-15%] bw-rounded-[50%] bw-w-[12px] bw-h-[12px] bw-border bw-border-border-primary ${c != null && c.image ? "bw-bg-background-
|
1852
|
+
/* @__PURE__ */ l("div", { className: ` bw-absolute bw-bottom-[-30%] bw-right-[-15%] bw-rounded-[50%] bw-w-[12px] bw-h-[12px] bw-border bw-border-border-primary ${c != null && c.image ? "bw-bg-background-coin" : ""}`, children: [
|
1853
1853
|
" ",
|
1854
1854
|
c != null && c.image ? /* @__PURE__ */ e("img", { src: c.image, width: 11, height: 11, className: "bw-rounded-[50%]", alt: "img" }) : /* @__PURE__ */ e("img", { src: h, width: 11, height: 11, className: "bw-rounded-[50%]", alt: "img" })
|
1855
1855
|
] })
|
@@ -2192,9 +2192,9 @@ function zo({ routes: o, handleShowAllRoutes: n, handleRoutesData: s, convertVal
|
|
2192
2192
|
ve(b * (c == null ? void 0 : c.lastPrice) || 0, 10)
|
2193
2193
|
] })
|
2194
2194
|
] }),
|
2195
|
-
/* @__PURE__ */ l("div", { className: " bw-bg-background-
|
2195
|
+
/* @__PURE__ */ l("div", { className: " bw-bg-background-coin bw-flex bw-justify-center bw-items-center bw-mb-2 bw-relative bw-rounded-[50%] bw-w-[35px] bw-h-[35px] bw-border bw-border-border-primary", children: [
|
2196
2196
|
c != null && c.image ? /* @__PURE__ */ e("img", { src: c.image, width: 34, height: 34, alt: "img", className: "bw-rounded-[50%] bw-max-w-[34px] bw-max-h-[34px] bw-object-contain bw-min-w-[34px] bw-h-[34px]" }) : /* @__PURE__ */ e("img", { src: h, width: 34, height: 34, alt: "img", className: "bw-rounded-[50%] bw-min-w-[34px] bw-h-[34px]" }),
|
2197
|
-
/* @__PURE__ */ l("div", { className: "bw-bg-background-
|
2197
|
+
/* @__PURE__ */ l("div", { className: "bw-bg-background-coin bw-absolute bw-bottom-[-30%] bw-right-4 bw-rounded-[50%] bw-w-[19px] bw-h-[19px] bw-border bw-border-border-primary", children: [
|
2198
2198
|
" ",
|
2199
2199
|
c != null && c.image ? /* @__PURE__ */ e("img", { src: a.image, width: 18, height: 18, className: "bw-rounded-[50%]", alt: "img" }) : /* @__PURE__ */ e("img", { src: h, width: 18, height: 18, className: "bw-rounded-[50%]", alt: "img" })
|
2200
2200
|
] })
|
@@ -1,4 +1,4 @@
|
|
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-
|
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-MSX0Gdx1.js";
|
2
2
|
import * as j from "react";
|
3
3
|
import { jsx as v } from "react/jsx-runtime";
|
4
4
|
const O = ["className", "component"];
|
@@ -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, 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-
|
3
|
-
import { O as OutputValueComp } from "./index-
|
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-MSX0Gdx1.js";
|
3
|
+
import { O as OutputValueComp } from "./index-Bp8YmQ0W.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-
|
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-Bcj3H5Px.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-
|
11
|
-
import { L as Lottie } from "./index.es-
|
10
|
+
import { T as Tooltip } from "./Tooltip-BQd46Vx1.js";
|
11
|
+
import { L as Lottie } from "./index.es-CVMqdfN3.js";
|
12
12
|
import { useDynamicContext, useSwitchNetwork } from "@dynamic-labs/sdk-react-core";
|
13
|
-
import { V as VersionedTransaction, P as PublicKey, b as buildExports, u as useRoutes, g as getCosmosAddress } from "./getCosmosAddress-
|
13
|
+
import { V as VersionedTransaction, P as PublicKey, b as buildExports, u as useRoutes, g as getCosmosAddress } from "./getCosmosAddress-DwtEOPre.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-
|
19
|
+
import { l as libExports, S as Spinner, D as Down } from "./down-C7Cxaule.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;
|
@@ -131,10 +131,17 @@ const EventEmitter = /* @__PURE__ */ getDefaultExportFromCjs(eventemitter3Export
|
|
131
131
|
function AddressComp({ field: e }) {
|
132
132
|
var i, r;
|
133
133
|
const t = useStore((n) => n.persist), a = e == "from" ? ((i = t == null ? void 0 : t.route) == null ? void 0 : i.userWalletAddress) || "" : ((r = t == null ? void 0 : t.route) == null ? void 0 : r.recipient) || "";
|
134
|
-
return /* @__PURE__ */ jsx(
|
135
|
-
|
136
|
-
|
137
|
-
|
134
|
+
return /* @__PURE__ */ jsx(
|
135
|
+
"button",
|
136
|
+
{
|
137
|
+
style: { fontSize: "12px" },
|
138
|
+
className: "bw-bg-background-card bw-flex bw-items-center bw-justify-center bw-gap-x-2 bw-mb-[4px] bw-w-[100px] bw-h-[25px] bw-rounded-xl bw-border bw-border-border-primary",
|
139
|
+
children: a ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
140
|
+
/* @__PURE__ */ jsx("p", { className: "bw-text-text-primary bw-text-xs bw-font-normal", children: ((a == null ? void 0 : a.substring(0, 4)) || "") + "..." + ((a == null ? void 0 : a.substring(a.length - 4, a.length)) || "") }),
|
141
|
+
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(WalletIcon, { fill: "var(--tw-text-primary)" }) })
|
142
|
+
] }) : /* @__PURE__ */ jsx("div", { className: "bw-w-[10px] bw-flex bw-text-text-secondary bw-justify-center bw-items-center bw-h-[10px]", children: /* @__PURE__ */ jsx(CircularProgress, { size: 10, thickness: 5, color: "inherit" }) })
|
143
|
+
}
|
144
|
+
);
|
138
145
|
}
|
139
146
|
function TokenBox({ chainData: e, coinData: t, amount: a, field: i }) {
|
140
147
|
var o, c, d, l;
|
@@ -145,14 +152,20 @@ function TokenBox({ chainData: e, coinData: t, amount: a, field: i }) {
|
|
145
152
|
style: {
|
146
153
|
boxShadow: r && r.customTheme && ((c = (o = r.customTheme) == null ? void 0 : o.shadow) == null ? void 0 : c.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
|
147
154
|
},
|
148
|
-
className: `bw-bg-background-
|
155
|
+
className: `bw-bg-background-card bw-relative bw-z-10 bw-min-w-[50%] bw-px-2 md:bw-min-w-[153px] bw-flex bw-flex-col bw-items-center bw-justify-start bw-pt-2 bw-rounded-lg bw-h-[75px] bw-border ${((d = n.statusData) == null ? void 0 : d.status) == "partial-success" && i == "to" ? "bw-border-text-redtext" : "bw-border-border-primary"} `,
|
149
156
|
children: [
|
150
|
-
/* @__PURE__ */ jsxs(
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
157
|
+
/* @__PURE__ */ jsxs(
|
158
|
+
"div",
|
159
|
+
{
|
160
|
+
className: `${((l = t == null ? void 0 : t.symbol) == null ? void 0 : l.length) > 6 ? "bw-text-base" : "bw-text-lg"} bw-text-center bw-font-medium bw-text-text-primary`,
|
161
|
+
children: [
|
162
|
+
/* @__PURE__ */ jsx("span", { children: a ? /* @__PURE__ */ jsx(OutputValueComp, { value: a == null ? void 0 : a.toString(), decimal: 8 }) : 0 }),
|
163
|
+
" ",
|
164
|
+
/* @__PURE__ */ jsx("span", { children: (t == null ? void 0 : t.symbol) || "" }),
|
165
|
+
/* @__PURE__ */ jsx("p", { className: "bw-text-sm bw-font-medium bw-text-text-secondary", children: `on ${e == null ? void 0 : e.name}` })
|
166
|
+
]
|
167
|
+
}
|
168
|
+
),
|
156
169
|
/* @__PURE__ */ jsx("div", { className: "bw-absolute -bw-bottom-4", children: /* @__PURE__ */ jsx(AddressComp, { field: i }) })
|
157
170
|
]
|
158
171
|
}
|
@@ -11390,7 +11403,12 @@ function useCosmosTxn() {
|
|
11390
11403
|
};
|
11391
11404
|
}
|
11392
11405
|
const TxnSuccessContext = React__default.createContext(!1);
|
11393
|
-
function TxnExeButton({
|
11406
|
+
function TxnExeButton({
|
11407
|
+
disableButton: e,
|
11408
|
+
handleStep: t,
|
11409
|
+
txnProcessType: a,
|
11410
|
+
txnTextObj: i
|
11411
|
+
}) {
|
11394
11412
|
var g, u, y;
|
11395
11413
|
const r = useStore((x) => x.persist), n = useStore((x) => x.configuration);
|
11396
11414
|
useStore((x) => x.cosmosChainIds);
|
@@ -11405,7 +11423,7 @@ function TxnExeButton({ disableButton: e, handleStep: t, txnProcessType: a, txnT
|
|
11405
11423
|
"button",
|
11406
11424
|
{
|
11407
11425
|
disabled: e || !i,
|
11408
|
-
className: `bw-text-lg bw-flex bw-justify-center bw-items-center bw-gap-x-2 disabled:bw-opacity-60 bw-font-medium bw-h-[50px] bw-w-full
|
11426
|
+
className: `bw-text-lg bw-flex bw-justify-center bw-items-center bw-gap-x-2 disabled:bw-opacity-60 bw-font-medium bw-h-[50px] bw-w-full bw-bg-background-container bw-rounded-sm ${e ? "bw-bg-border-primary bw-p-[1px]" : styles$1.gradientbutton + " bw-p-[3px]"}`,
|
11409
11427
|
onClick: t,
|
11410
11428
|
style: {
|
11411
11429
|
...c,
|
@@ -11422,7 +11440,14 @@ function TxnExeButton({ disableButton: e, handleStep: t, txnProcessType: a, txnT
|
|
11422
11440
|
)
|
11423
11441
|
] })
|
11424
11442
|
}
|
11425
|
-
) : /* @__PURE__ */ jsx(
|
11443
|
+
) : /* @__PURE__ */ jsx(
|
11444
|
+
Skeleton,
|
11445
|
+
{
|
11446
|
+
className: "bw-bg-background-loaderbar bw-rounded-sm bw-w-full",
|
11447
|
+
animation: "wave",
|
11448
|
+
height: 50
|
11449
|
+
}
|
11450
|
+
);
|
11426
11451
|
}
|
11427
11452
|
function TxnErrorComp({ errorText: e }) {
|
11428
11453
|
const t = useStore((a) => a.persist);
|
@@ -11448,7 +11473,13 @@ function TxnErrorComp({ errorText: e }) {
|
|
11448
11473
|
] })
|
11449
11474
|
] });
|
11450
11475
|
}
|
11451
|
-
function TransactionFailedCTA({
|
11476
|
+
function TransactionFailedCTA({
|
11477
|
+
handleGoBack: e,
|
11478
|
+
errorText: t,
|
11479
|
+
txnTextObj: a,
|
11480
|
+
handleExeTxn: i,
|
11481
|
+
handleDisable: r
|
11482
|
+
}) {
|
11452
11483
|
var c, d, l, p;
|
11453
11484
|
const n = useStore((g) => g.configuration), o = useStore((g) => g.persist);
|
11454
11485
|
return /* @__PURE__ */ jsxs("div", { className: "bw-absolute bw-bg-background-container bw-border-t bw-border-border-primary bw-pt-3 bw-w-full bw-bottom-0 bw-flex bw-flex-col bw-justify-center bw-items-center", children: [
|
@@ -11481,7 +11512,6 @@ function TransactionFailedCTA({ handleGoBack: e, errorText: t, txnTextObj: a, ha
|
|
11481
11512
|
"button",
|
11482
11513
|
{
|
11483
11514
|
style: {
|
11484
|
-
...n == null ? void 0 : n.gradientStyle,
|
11485
11515
|
boxShadow: n && n.customTheme && ((p = (l = n.customTheme) == null ? void 0 : l.shadow) == null ? void 0 : p.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
|
11486
11516
|
},
|
11487
11517
|
className: ` bw-text-lg bw-flex bw-justify-center bw-items-center bw-gap-x-2 disabled:bw-opacity-60 bw-font-medium bw-h-[50px] bw-w-[50%] ${styles$1.gradientbutton} bw-rounded-sm bw-p-[3px] `,
|
@@ -11522,8 +11552,20 @@ function Steps({ item: e, i: t }) {
|
|
11522
11552
|
var n, o, c, d, l, p, g, u, y, x, A;
|
11523
11553
|
const { isErrorMessage: a, handleErrorMessage: i } = useContext(TxnErrorContext), r = useStore((I) => I.persist);
|
11524
11554
|
return r == null || r.allSteps, /* @__PURE__ */ jsxs("div", { children: [
|
11525
|
-
/* @__PURE__ */ jsx(
|
11526
|
-
|
11555
|
+
/* @__PURE__ */ jsx(
|
11556
|
+
"h1",
|
11557
|
+
{
|
11558
|
+
className: ` ${((o = (n = e == null ? void 0 : e.texts) == null ? void 0 : n.heading) == null ? void 0 : o.length) > 34 ? "bw-text-base" : "bw-text-lg"} ${((c = r == null ? void 0 : r.allSteps) == null ? void 0 : c.currentStep) == t ? "bw-text-text-primary" : "bw-text-text-secondary"} bw-leading-none bw-mt-[-2px]`,
|
11559
|
+
children: (d = e == null ? void 0 : e.texts) == null ? void 0 : d.heading
|
11560
|
+
}
|
11561
|
+
),
|
11562
|
+
r != null && r.stepStatus && (r != null && r.stepStatus[t]) ? /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("p", { className: "bw-text-sm bw-text-text-secondary bw-ml-3 bw-mt-1", children: a && ((l = r == null ? void 0 : r.stepStatus[t]) == null ? void 0 : l.status) !== "failed" && t == ((p = r == null ? void 0 : r.allSteps) == null ? void 0 : p.currentStep) ? "Failed" : ((y = (g = e == null ? void 0 : e.texts) == null ? void 0 : g.status) == null ? void 0 : y[(u = r == null ? void 0 : r.stepStatus[t]) == null ? void 0 : u.status]) || ((A = e == null ? void 0 : e.texts) == null ? void 0 : A[(x = r == null ? void 0 : r.stepStatus[t]) == null ? void 0 : x.type]) }) }) : t == 0 ? /* @__PURE__ */ jsx("div", { className: "bw-h-[20px] bw-mt-[4px] bw-w-full", children: /* @__PURE__ */ jsx(
|
11563
|
+
Skeleton,
|
11564
|
+
{
|
11565
|
+
className: "bw-bg-background-loaderbar bw-rounded-lg bw-w-full",
|
11566
|
+
animation: "wave"
|
11567
|
+
}
|
11568
|
+
) }) : /* @__PURE__ */ jsx(Fragment, {})
|
11527
11569
|
] });
|
11528
11570
|
}
|
11529
11571
|
function SuccessNew({ spinnerColor: e, stopColor: t }) {
|
@@ -11652,22 +11694,54 @@ function TxnLoad() {
|
|
11652
11694
|
/* @__PURE__ */ jsx("div", { className: `${styles.dash} ${styles.cuatro}` })
|
11653
11695
|
] });
|
11654
11696
|
}
|
11655
|
-
function UpdateQuote({
|
11697
|
+
function UpdateQuote({
|
11698
|
+
handleUpdate: e,
|
11699
|
+
startTimer: t,
|
11700
|
+
setDisableButton: a,
|
11701
|
+
reset: i,
|
11702
|
+
details: r
|
11703
|
+
}) {
|
11656
11704
|
var q, W, J, Q, V, G, ie, U, ee, Z, H, fe, se, we, xe, te, ge, ce, ve, _e;
|
11657
|
-
const n = useStore((F) => F.configuration), o = useStore((F) => F.persist), { address: c } = useAccount(), { address: d } = useWallet(), { primaryWallet: l } = useDynamicContext(), { getWallet: p } = useWalletDetails({}), g = useStore((F) => F.setPersist), u = useStore((F) => F.customWallet), y = useStore((F) => F.customFee), x = useStore((F) => F.broadCastMode), A = useStore((F) => F.evmGas), I = useStore((F) => F.evmSpeed), T = useStore((F) => F.slippage), f = useStore((F) => F.option), b = useStore((F) => F.gasless), { data: P } = useAccount$1(), N = [
|
11705
|
+
const n = useStore((F) => F.configuration), o = useStore((F) => F.persist), { address: c } = useAccount(), { address: d } = useWallet(), { primaryWallet: l } = useDynamicContext(), { getWallet: p } = useWalletDetails({}), g = useStore((F) => F.setPersist), u = useStore((F) => F.customWallet), y = useStore((F) => F.customFee), x = useStore((F) => F.broadCastMode), A = useStore((F) => F.evmGas), I = useStore((F) => F.evmSpeed), T = useStore((F) => F.slippage), f = useStore((F) => F.option), b = useStore((F) => F.gasless), { data: P } = useAccount$1(), N = [
|
11706
|
+
"routesTxn",
|
11707
|
+
c,
|
11708
|
+
o == null ? void 0 : o.fromChain,
|
11709
|
+
o == null ? void 0 : o.toChain,
|
11710
|
+
o == null ? void 0 : o.fromCoin,
|
11711
|
+
o == null ? void 0 : o.toCoin,
|
11712
|
+
(o == null ? void 0 : o.amount) || ((q = o == null ? void 0 : o.route) == null ? void 0 : q.inputAmountDisplay) || 0,
|
11713
|
+
l == null ? void 0 : l.address,
|
11714
|
+
d,
|
11715
|
+
u,
|
11716
|
+
P == null ? void 0 : P.bech32Address,
|
11717
|
+
y,
|
11718
|
+
A,
|
11719
|
+
I,
|
11720
|
+
T,
|
11721
|
+
x,
|
11722
|
+
f.value,
|
11723
|
+
"",
|
11724
|
+
b
|
11725
|
+
];
|
11658
11726
|
let s = (x === "Priority Fee" || x === "Both") && (y != null && y.length) ? y : f.value, m = (x === "Jito Tip" || x === "Both") && (y != null && y.length) ? y : f.value, _ = A != null && A.length ? A : I.value;
|
11659
11727
|
const E = ((W = o == null ? void 0 : o.fromChain) == null ? void 0 : W.networkType) === "sol" ? x === "Priority Fee" ? `&solanaPriorityFee=${s}` : x === "Jito Tip" ? `&solanaJitoTip=${m}` : `&solanaPriorityFee=${s}&solanaJitoTip=${m}` : ((J = o == null ? void 0 : o.fromChain) == null ? void 0 : J.networkType) === "evm" ? `&evmPriorityFee=${_}` : "", { routes: S, routesData: k } = useRoutes({
|
11660
11728
|
enabled: !0,
|
11661
11729
|
dependency: N,
|
11662
11730
|
payload: [
|
11663
|
-
((Q = o == null ? void 0 : o.fromChain) == null ? void 0 : Q.networkType) === "cosmos" ? getCosmosAddress(
|
11731
|
+
((Q = o == null ? void 0 : o.fromChain) == null ? void 0 : Q.networkType) === "cosmos" ? getCosmosAddress(
|
11732
|
+
P == null ? void 0 : P.bech32Address,
|
11733
|
+
(G = (V = o == null ? void 0 : o.fromChain) == null ? void 0 : V.chainInfo) == null ? void 0 : G.bech32Config.bech32PrefixAccAddr
|
11734
|
+
) : ((ie = o == null ? void 0 : o.route) == null ? void 0 : ie.userWalletAddress) || ((U = p(o == null ? void 0 : o.fromChain)) == null ? void 0 : U.address) || "",
|
11664
11735
|
o == null ? void 0 : o.fromChain,
|
11665
11736
|
o == null ? void 0 : o.toChain,
|
11666
11737
|
o == null ? void 0 : o.fromCoin,
|
11667
11738
|
o == null ? void 0 : o.toCoin,
|
11668
11739
|
(o == null ? void 0 : o.amount) || ((ee = o == null ? void 0 : o.route) == null ? void 0 : ee.inputAmountDisplay) || 0,
|
11669
11740
|
Number(T) * 100,
|
11670
|
-
(u == null ? void 0 : u.length) > 30 ? ((Z = o == null ? void 0 : o.route) == null ? void 0 : Z.recipient) || ((H = p({})) == null ? void 0 : H.address) || "" : ((fe = o == null ? void 0 : o.toChain) == null ? void 0 : fe.networkType) === "cosmos" ? getCosmosAddress(
|
11741
|
+
(u == null ? void 0 : u.length) > 30 ? ((Z = o == null ? void 0 : o.route) == null ? void 0 : Z.recipient) || ((H = p({})) == null ? void 0 : H.address) || "" : ((fe = o == null ? void 0 : o.toChain) == null ? void 0 : fe.networkType) === "cosmos" ? getCosmosAddress(
|
11742
|
+
P == null ? void 0 : P.bech32Address,
|
11743
|
+
(we = (se = o == null ? void 0 : o.toChain) == null ? void 0 : se.chainInfo) == null ? void 0 : we.bech32Config.bech32PrefixAccAddr
|
11744
|
+
) : ((xe = o == null ? void 0 : o.route) == null ? void 0 : xe.recipient) || ((te = p(o == null ? void 0 : o.toChain)) == null ? void 0 : te.address) || "",
|
11671
11745
|
E,
|
11672
11746
|
1,
|
11673
11747
|
b
|
@@ -11709,21 +11783,49 @@ function UpdateQuote({ handleUpdate: e, startTimer: t, setDisableButton: a, rese
|
|
11709
11783
|
/* @__PURE__ */ jsx("p", { className: "bw-text-text-secondary bw-text-sm bw-font-medium", children: "Please accept the new quote, or go back to select manually" }),
|
11710
11784
|
/* @__PURE__ */ jsxs("div", { className: "bw-w-full bw-mt-4 bw-px-2 bw-flex bw-items-center ba-gap-x-2 bw-justify-between", children: [
|
11711
11785
|
/* @__PURE__ */ jsxs("div", { children: [
|
11712
|
-
S.isLoading || S.isFetching ? /* @__PURE__ */ jsx(
|
11786
|
+
S.isLoading || S.isFetching ? /* @__PURE__ */ jsx(
|
11787
|
+
Skeleton,
|
11788
|
+
{
|
11789
|
+
className: "bw-bg-background-loaderbar bw-mb-1 bw-rounded-lg bw-h-[20px] bw-w-[150px] bw-min-h-[20px]",
|
11790
|
+
variant: "rectangular",
|
11791
|
+
animation: "wave",
|
11792
|
+
height: 20,
|
11793
|
+
width: 100
|
11794
|
+
}
|
11795
|
+
) : /* @__PURE__ */ jsxs("p", { className: "bw-text-text-lg bw-font-bold bw-text-text-primary", children: [
|
11713
11796
|
/* @__PURE__ */ jsx(OutputValueComp, { value: O == null ? void 0 : O.toString(), decimal: 12 }),
|
11714
11797
|
" ",
|
11715
11798
|
((ge = k == null ? void 0 : k.to) == null ? void 0 : ge.symbol) || ""
|
11716
11799
|
] }),
|
11717
|
-
S.isLoading || S.isFetching ? /* @__PURE__ */ jsx(
|
11718
|
-
|
11719
|
-
|
11800
|
+
S.isLoading || S.isFetching ? /* @__PURE__ */ jsx(
|
11801
|
+
Skeleton,
|
11802
|
+
{
|
11803
|
+
className: "bw-bg-background-loaderbar bw-rounded-lg bw-h-[20px] bw-w-[70px] bw-min-h-[20px]",
|
11804
|
+
variant: "rectangular",
|
11805
|
+
animation: "wave",
|
11806
|
+
height: 20,
|
11807
|
+
width: 70
|
11808
|
+
}
|
11809
|
+
) : /* @__PURE__ */ jsxs("p", { className: "bw-text-text-sm bw-font-normal bw-text-text-secondary", children: [
|
11810
|
+
"$",
|
11811
|
+
" ",
|
11812
|
+
/* @__PURE__ */ jsx(
|
11813
|
+
OutputValueComp,
|
11814
|
+
{
|
11815
|
+
value: formatNumber(
|
11816
|
+
((k == null ? void 0 : k.outputAmountDisplay) || "") * ((ce = k == null ? void 0 : k.to) == null ? void 0 : ce.lastPrice) || 0,
|
11817
|
+
10
|
11818
|
+
),
|
11819
|
+
decimal: 12
|
11820
|
+
}
|
11821
|
+
)
|
11720
11822
|
] })
|
11721
11823
|
] }),
|
11722
11824
|
/* @__PURE__ */ jsx(
|
11723
11825
|
"button",
|
11724
11826
|
{
|
11725
11827
|
disabled: S.isFetching || S.isLoading,
|
11726
|
-
className: `bw-text-lg bw-flex bw-justify-center bw-items-center bw-gap-x-2 disabled:bw-opacity-60 bw-font-medium bw-h-[50px] bw-w-1/2
|
11828
|
+
className: `bw-text-lg bw-flex bw-justify-center bw-items-center bw-gap-x-2 disabled:bw-opacity-60 bw-font-medium bw-h-[50px] bw-w-1/2 bw-bg-background-container bw-rounded-sm ${styles$1.gradientbutton + " bw-p-[3px]"}`,
|
11727
11829
|
onClick: D,
|
11728
11830
|
style: {
|
11729
11831
|
...n == null ? void 0 : n.gradientStyle,
|
@@ -12540,12 +12642,29 @@ function Timer({ handleExpiry: e }) {
|
|
12540
12642
|
});
|
12541
12643
|
return `${FormatTime(r)}:${FormatTime(n)}`;
|
12542
12644
|
}
|
12543
|
-
const TxnTimer = React__default.memo(function e({
|
12645
|
+
const TxnTimer = React__default.memo(function e({
|
12646
|
+
route: t,
|
12647
|
+
isTimerStarted: a,
|
12648
|
+
startTimer: i,
|
12649
|
+
isErrorMessage: r
|
12650
|
+
}) {
|
12544
12651
|
const [n, o] = useState(!1), { isTxnSuccessful: c } = useContext(TxnSuccessContext), l = !useStore((g) => g.persist).stepData;
|
12545
12652
|
function p() {
|
12546
12653
|
o(!0), i(!1);
|
12547
12654
|
}
|
12548
|
-
return /* @__PURE__ */ jsx(
|
12655
|
+
return /* @__PURE__ */ jsx(
|
12656
|
+
"div",
|
12657
|
+
{
|
12658
|
+
className: "bw-border bw-w-[65px] bw-mt-5 bw-h-[65px] bw-flex bw-items-center bw-justify-center bw-rounded-[50%] bw-bg-background-card bw-relative bw-z-10 hover:bw-opacity-100 bw-border-border-primary ",
|
12659
|
+
children: /* @__PURE__ */ jsx(
|
12660
|
+
"p",
|
12661
|
+
{
|
12662
|
+
className: " bw-text-sm bw-text-center bw-font-medium bw-text-text-primary",
|
12663
|
+
children: l ? /* @__PURE__ */ jsx(TimeLoader, {}) : c ? "Done" : a && !n ? /* @__PURE__ */ jsx(Timer, { route: t, handleExpiry: p }) : n ? /* @__PURE__ */ jsx(TimeLoader, {}) : "Start Txn"
|
12664
|
+
}
|
12665
|
+
)
|
12666
|
+
}
|
12667
|
+
);
|
12549
12668
|
});
|
12550
12669
|
function capitalizeFirstLetter(e) {
|
12551
12670
|
return typeof e != "string" || e.length === 0 ? e : e.charAt(0).toUpperCase() + e.slice(1).toLowerCase();
|
@@ -12557,17 +12676,38 @@ function ShowDetails() {
|
|
12557
12676
|
var t, a, i, r, n, o, c;
|
12558
12677
|
const e = useStore((d) => d.persist);
|
12559
12678
|
return /* @__PURE__ */ jsxs("div", { className: "bw-w-full bw-px-3 bw-py-2 bw-border-t bw-border-border-primary", children: [
|
12560
|
-
/* @__PURE__ */ jsx("div", { children: (a = (t = e == null ? void 0 : e.route) == null ? void 0 : t.fee) == null ? void 0 : a.filter((d, l) => d.source == "FROM_SOURCE_WALLET").map((d, l) => d.amountInUSD ? /* @__PURE__ */ jsxs(
|
12561
|
-
|
12562
|
-
|
12563
|
-
|
12564
|
-
|
12565
|
-
|
12566
|
-
/* @__PURE__ */
|
12567
|
-
|
12568
|
-
|
12569
|
-
|
12570
|
-
|
12679
|
+
/* @__PURE__ */ jsx("div", { children: (a = (t = e == null ? void 0 : e.route) == null ? void 0 : t.fee) == null ? void 0 : a.filter((d, l) => d.source == "FROM_SOURCE_WALLET").map((d, l) => d.amountInUSD ? /* @__PURE__ */ jsxs(
|
12680
|
+
"div",
|
12681
|
+
{
|
12682
|
+
className: "bw-flex bw-mb-1 bw-items-center bw-justify-between",
|
12683
|
+
children: [
|
12684
|
+
/* @__PURE__ */ jsx("p", { className: "bw-text-text-secondary bw-text-sm bw-font-semibold", children: `${capitalizeFirstLetter(d.type)} Fee` }),
|
12685
|
+
/* @__PURE__ */ jsxs("span", { className: "bw-text-text-secondary bw-text-sm bw-font-bold", children: [
|
12686
|
+
/* @__PURE__ */ jsx(
|
12687
|
+
FormatCryptoValue,
|
12688
|
+
{
|
12689
|
+
value: getGas(d.amountInToken, d.token.decimals).toFixed(
|
12690
|
+
20
|
12691
|
+
) || 0,
|
12692
|
+
options: { maxDecimals: 8 }
|
12693
|
+
}
|
12694
|
+
),
|
12695
|
+
` ${d.token.symbol} ${d.amountInUSD ? " ($" : ""}`,
|
12696
|
+
d.amountInUSD ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
12697
|
+
/* @__PURE__ */ jsx(
|
12698
|
+
FormatCryptoValue,
|
12699
|
+
{
|
12700
|
+
value: d.amountInUSD || 0,
|
12701
|
+
options: { maxDecimals: 8 }
|
12702
|
+
}
|
12703
|
+
),
|
12704
|
+
")"
|
12705
|
+
] }) : ""
|
12706
|
+
] })
|
12707
|
+
]
|
12708
|
+
},
|
12709
|
+
l
|
12710
|
+
) : /* @__PURE__ */ jsx(Fragment, {})) }),
|
12571
12711
|
/* @__PURE__ */ jsx("div", { className: "bw-w-full bw-h-[1px] bw-border-b bw-my-2 bw-border-border-primary" }),
|
12572
12712
|
/* @__PURE__ */ jsxs("div", { className: "bw-w-full", children: [
|
12573
12713
|
/* @__PURE__ */ jsxs("div", { className: "bw-flex bw-items-center bw-mb-2 bw-justify-between", children: [
|
@@ -12579,7 +12719,10 @@ function ShowDetails() {
|
|
12579
12719
|
] }),
|
12580
12720
|
/* @__PURE__ */ jsxs("div", { className: "bw-flex bw-items-center bw-justify-between", children: [
|
12581
12721
|
/* @__PURE__ */ jsx("p", { className: "bw-text-text-primary bw-text-sm bw-font-medium", children: "Minimum Received" }),
|
12582
|
-
/* @__PURE__ */ jsx("span", { className: "bw-text-text-primary bw-text-sm bw-font-medium", children: (r = e == null ? void 0 : e.route) != null && r.minOutputAmountDisplay || (n = e == null ? void 0 : e.route) != null && n.minOutputAmount ? `${fixString(
|
12722
|
+
/* @__PURE__ */ jsx("span", { className: "bw-text-text-primary bw-text-sm bw-font-medium", children: (r = e == null ? void 0 : e.route) != null && r.minOutputAmountDisplay || (n = e == null ? void 0 : e.route) != null && n.minOutputAmount ? `${fixString(
|
12723
|
+
e.route.minOutputAmountDisplay || e.route.minOutputAmount,
|
12724
|
+
10
|
12725
|
+
)} ${(c = (o = e == null ? void 0 : e.route) == null ? void 0 : o.to) == null ? void 0 : c.symbol}` : "" })
|
12583
12726
|
] })
|
12584
12727
|
] })
|
12585
12728
|
] });
|
@@ -12599,10 +12742,22 @@ function DefaultStateSection({ gasData: e }) {
|
|
12599
12742
|
/* @__PURE__ */ jsx("div", { className: "bw-w-[2px] bw-h-[24px] bw-mx-3 bw-bg-text-secondary" }),
|
12600
12743
|
/* @__PURE__ */ jsx("span", { className: "bw-text-xs bw-font-normal bw-text-text-secondary", children: "Fees:" }),
|
12601
12744
|
/* @__PURE__ */ jsxs("span", { className: "bw-text-xs bw-ml-[3px] bw-font-bold bw-text-text-secondary", children: [
|
12602
|
-
/* @__PURE__ */ jsx(
|
12745
|
+
/* @__PURE__ */ jsx(
|
12746
|
+
FormatCryptoValue,
|
12747
|
+
{
|
12748
|
+
value: (e == null ? void 0 : e.payableInToken) || 0,
|
12749
|
+
options: { maxDecimals: 8 }
|
12750
|
+
}
|
12751
|
+
),
|
12603
12752
|
` ${e == null ? void 0 : e.symbol} ${e != null && e.payableInUSD ? " ($" : ""}`,
|
12604
12753
|
e != null && e.payableInUSD ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
12605
|
-
/* @__PURE__ */ jsx(
|
12754
|
+
/* @__PURE__ */ jsx(
|
12755
|
+
FormatCryptoValue,
|
12756
|
+
{
|
12757
|
+
value: (e == null ? void 0 : e.payableInUSD) || 0,
|
12758
|
+
options: { maxDecimals: 8 }
|
12759
|
+
}
|
12760
|
+
),
|
12606
12761
|
")"
|
12607
12762
|
] }) : ""
|
12608
12763
|
] })
|
@@ -12612,10 +12767,22 @@ function FullStateSection({ gasData: e }) {
|
|
12612
12767
|
return /* @__PURE__ */ jsxs("div", { className: "bw-w-full bw-flex bw-items-center bw-justify-between bw-border-border-primary", children: [
|
12613
12768
|
/* @__PURE__ */ jsx("span", { className: "bw-text-sm bw-font-bold bw-text-text-primary", children: "Fees" }),
|
12614
12769
|
/* @__PURE__ */ jsxs("span", { className: "bw-text-sm bw-ml-[3px] bw-font-bold bw-text-text-primary", children: [
|
12615
|
-
/* @__PURE__ */ jsx(
|
12770
|
+
/* @__PURE__ */ jsx(
|
12771
|
+
FormatCryptoValue,
|
12772
|
+
{
|
12773
|
+
value: (e == null ? void 0 : e.payableInToken) || 0,
|
12774
|
+
options: { maxDecimals: 8 }
|
12775
|
+
}
|
12776
|
+
),
|
12616
12777
|
` ${e == null ? void 0 : e.symbol} ${e != null && e.payableInUSD ? " ($" : ""}`,
|
12617
12778
|
e != null && e.payableInUSD ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
12618
|
-
/* @__PURE__ */ jsx(
|
12779
|
+
/* @__PURE__ */ jsx(
|
12780
|
+
FormatCryptoValue,
|
12781
|
+
{
|
12782
|
+
value: (e == null ? void 0 : e.payableInUSD) || 0,
|
12783
|
+
options: { maxDecimals: 8 }
|
12784
|
+
}
|
12785
|
+
),
|
12619
12786
|
")"
|
12620
12787
|
] }) : ""
|
12621
12788
|
] })
|
@@ -12650,7 +12817,10 @@ function EstGas() {
|
|
12650
12817
|
symbol: ""
|
12651
12818
|
};
|
12652
12819
|
return (y = (u = e == null ? void 0 : e.route) == null ? void 0 : u.fee) == null || y.forEach((x) => {
|
12653
|
-
x.source == "FROM_SOURCE_WALLET" && (g.payableInUSD += Number(x.amountInUSD), g.payableInToken += getGas(
|
12820
|
+
x.source == "FROM_SOURCE_WALLET" && (g.payableInUSD += Number(x.amountInUSD), g.payableInToken += getGas(
|
12821
|
+
Number(x.amountInToken),
|
12822
|
+
x.token.decimals
|
12823
|
+
), g.symbol = x.token.symbol);
|
12654
12824
|
}), g;
|
12655
12825
|
}, [e == null ? void 0 : e.route]);
|
12656
12826
|
return /* @__PURE__ */ jsxs(
|
@@ -12662,7 +12832,7 @@ function EstGas() {
|
|
12662
12832
|
style: {
|
12663
12833
|
boxShadow: i && i.customTheme && ((p = (l = i.customTheme) == null ? void 0 : l.shadow) == null ? void 0 : p.boxShadow) || "0px 0px 5.8px 0px #00000026"
|
12664
12834
|
},
|
12665
|
-
className: "bw-w-full bw-sticky bw-top-0 bw-z-20 bw-select-none bw-cursor-pointer bw-bg-background-
|
12835
|
+
className: "bw-w-full bw-sticky bw-top-0 bw-z-20 bw-select-none bw-cursor-pointer bw-bg-background-card bw-rounded-lg bw-min-h-max bw-border bw-border-border-primary bw-overflow-hidden",
|
12666
12836
|
children: [
|
12667
12837
|
/* @__PURE__ */ jsx(Summary, { gasData: d, isShowFull: t }),
|
12668
12838
|
/* @__PURE__ */ jsx(
|
@@ -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, 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-
|
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-MSX0Gdx1.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-
|
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-Bcj3H5Px.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 s, S as W } from "./index-
|
2
|
+
import { u as s, S as W } from "./index-MSX0Gdx1.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-
|
4
|
+
import { u as j, i as I, W as D, F, f as p, c as u, z as R } from "./useRegisterError-Bcj3H5Px.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-
|
7
|
+
import { c as B, r as G } from "./index-COJO0042.js";
|
8
8
|
function H({ amount: w, setAmount: l, fetchBalance: M, getCoinBalance: h, isBalanceLoading: f }) {
|
9
9
|
var d, o;
|
10
10
|
const n = s((a) => a.configuration), e = s((a) => a.fromCoin), r = s((a) => a.fromChain), { isAnyWalletConnected: g } = j({ chainData: r }), [$, z] = S(40), { address: N } = T(), v = x(), { defaultCoin: y } = I;
|
@@ -26,10 +26,10 @@ function H({ amount: w, setAmount: l, fetchBalance: M, getCoinBalance: h, isBala
|
|
26
26
|
style: {
|
27
27
|
boxShadow: n && n.customTheme && ((o = (d = n.customTheme) == null ? void 0 : d.shadow) == null ? void 0 : o.boxShadow) || "1px 1px 7px rgba(0, 0, 0, 0.15)"
|
28
28
|
},
|
29
|
-
className: "bw-w-full bw-h-[80px] bw-flex bw-gap-x-1 bw-items-center bw-px-2 bw-bg-background-
|
29
|
+
className: "bw-w-full bw-h-[80px] bw-flex bw-gap-x-1 bw-items-center bw-px-2 bw-bg-background-card bw-rounded-md bw-border bw-border-border-primary",
|
30
30
|
children: [
|
31
31
|
/* @__PURE__ */ b("div", { className: "bw-w-full bw-flex bw-gap-x-2 bw-mt-5 bw-items-start bw-h-full", children: [
|
32
|
-
/* @__PURE__ */ t("div", { className: " bw-flex bw-items-center", children: e != null && e.image ? /* @__PURE__ */ t("div", { className: "bw-rounded-[50%] bw-bg-background-
|
32
|
+
/* @__PURE__ */ t("div", { className: " bw-flex bw-items-center", children: e != null && e.image ? /* @__PURE__ */ t("div", { className: "bw-rounded-[50%] bw-bg-background-coin bw-min-w-[40px] bw-w-[40px] bw-min-h-[40px] bw-flex bw-justify-center bw-items-center bw-border bw-border-border-primary", children: /* @__PURE__ */ t("img", { src: e == null ? void 0 : e.image, width: 39, height: 39, alt: "img", className: "bw-rounded-[50%] bw-max-w-[39px] bw-max-h-[39px] bw-object-contain bw-min-w-[39px] bw-min-h-[39px]" }) }) : /* @__PURE__ */ t("div", { className: "bw-min-w-[40px] bw-w-[40px] bw-border bw-border-border-primary bw-min-h-[40px] bw-rounded-[50%] ", children: /* @__PURE__ */ t("img", { src: y, width: 39, height: 39, alt: "img", className: "bw-rounded-[50%] bw-min-w-[38px] bw-min-h-[39px]" }) }) }),
|
33
33
|
/* @__PURE__ */ b("div", { className: "bw-w-full", children: [
|
34
34
|
/* @__PURE__ */ t(
|
35
35
|
"div",
|
@@ -67,7 +67,7 @@ function H({ amount: w, setAmount: l, fetchBalance: M, getCoinBalance: h, isBala
|
|
67
67
|
] })
|
68
68
|
}
|
69
69
|
),
|
70
|
-
/* @__PURE__ */ t("div", { children: e.coin.length && g ? f ? /* @__PURE__ */ t(W, { className: "bw-bg-background-
|
70
|
+
/* @__PURE__ */ t("div", { children: e.coin.length && g ? f ? /* @__PURE__ */ t(W, { className: "bw-bg-background-loaderbar bw-rounded-md bw-h-[18px] bw-w-[100px]" }) : /* @__PURE__ */ b("div", { className: "bw-flex bw-items-center bw-gap-x-1", children: [
|
71
71
|
/* @__PURE__ */ t(D, { fill: "var(--tw-text-secondary)" }),
|
72
72
|
/* @__PURE__ */ t("p", { className: "bw-text-xs bw-font-medium bw-text-text-secondary", children: /* @__PURE__ */ t(
|
73
73
|
F,
|