@initia/interwovenkit-react 2.4.0 → 2.4.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/index.cjs +1 -1
- package/dist/index.js +931 -926
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -72,7 +72,7 @@ const Cn = 1.4, vu = 1.05, bu = {
|
|
|
72
72
|
vipUrl: "https://vip-api.initia.xyz",
|
|
73
73
|
civitiaUrl: "https://api.civitia.org",
|
|
74
74
|
theme: "dark"
|
|
75
|
-
},
|
|
75
|
+
}, M6 = {
|
|
76
76
|
defaultChainId: "initiation-2",
|
|
77
77
|
registryUrl: "https://registry.testnet.initia.xyz",
|
|
78
78
|
routerApiUrl: "https://router-api.initiation-2.initia.xyz",
|
|
@@ -90,7 +90,7 @@ const Cn = 1.4, vu = 1.05, bu = {
|
|
|
90
90
|
name: "Socials",
|
|
91
91
|
iconUrl: "https://assets.initia.xyz/images/wallets/Privy.webp",
|
|
92
92
|
iconBackground: "#ffffff"
|
|
93
|
-
},
|
|
93
|
+
}, D6 = Vl(Hs), R6 = Kl(Hs), Ei = Ut(null);
|
|
94
94
|
function J() {
|
|
95
95
|
const e = vt(Ei);
|
|
96
96
|
if (!e) throw new Error("Check if the InterwovenKitProvider is mounted");
|
|
@@ -1746,7 +1746,9 @@ function xo() {
|
|
|
1746
1746
|
fee: I,
|
|
1747
1747
|
preferredFeeDenom: q,
|
|
1748
1748
|
client: D,
|
|
1749
|
-
|
|
1749
|
+
// Re-derive once per page session when auto-sign is enabled so direct
|
|
1750
|
+
// signing continues to work after reload.
|
|
1751
|
+
allowWalletDerivation: !0
|
|
1750
1752
|
});
|
|
1751
1753
|
return { client: D, signedTx: B };
|
|
1752
1754
|
}, x = async (A) => {
|
|
@@ -3311,7 +3313,7 @@ function dt() {
|
|
|
3311
3313
|
return S(
|
|
3312
3314
|
() => j.create({
|
|
3313
3315
|
prefixUrl: e,
|
|
3314
|
-
headers: { "InterwovenKit-Version": "2.4.
|
|
3316
|
+
headers: { "InterwovenKit-Version": "2.4.2" }
|
|
3315
3317
|
}),
|
|
3316
3318
|
[e]
|
|
3317
3319
|
);
|
|
@@ -3465,7 +3467,7 @@ function Vc() {
|
|
|
3465
3467
|
document.querySelector(ha)?.setAttribute("data-theme", e);
|
|
3466
3468
|
}, [e]), t ?? Oc();
|
|
3467
3469
|
}
|
|
3468
|
-
function
|
|
3470
|
+
function B6(e) {
|
|
3469
3471
|
const t = Oc(), n = document.createElement("style");
|
|
3470
3472
|
n.textContent = e, t.appendChild(n);
|
|
3471
3473
|
}
|
|
@@ -4358,53 +4360,56 @@ function pa(e) {
|
|
|
4358
4360
|
const t = mu(e);
|
|
4359
4361
|
return "error" in t ? null : t.domain;
|
|
4360
4362
|
}
|
|
4361
|
-
function yg(e) {
|
|
4363
|
+
function yg(e, t) {
|
|
4364
|
+
return e === t || e === `www.${t}`;
|
|
4365
|
+
}
|
|
4366
|
+
function wg(e) {
|
|
4362
4367
|
if (e.protocol !== "https:") return !1;
|
|
4363
4368
|
const t = e.hostname.toLowerCase();
|
|
4364
4369
|
return !t || !t.includes(".") || t === "localhost" || el(t) ? !1 : pa(t) !== null;
|
|
4365
4370
|
}
|
|
4366
|
-
function
|
|
4371
|
+
function vg(e, t) {
|
|
4367
4372
|
try {
|
|
4368
4373
|
const n = new URL(e);
|
|
4369
|
-
if (!
|
|
4374
|
+
if (!wg(n)) return !1;
|
|
4370
4375
|
const o = n.hostname.toLowerCase(), a = t.toLowerCase();
|
|
4371
4376
|
if (!o || !a || el(a) || a === "localhost") return !1;
|
|
4372
4377
|
const r = pa(o);
|
|
4373
4378
|
if (!r) return !1;
|
|
4374
4379
|
const i = pa(a);
|
|
4375
|
-
return !i || i !== r ? !1 : a === o || a.endsWith(`.${o}`);
|
|
4380
|
+
return !i || i !== r ? !1 : yg(o, r) ? a === r || a.endsWith(`.${r}`) : a === o || a.endsWith(`.${o}`);
|
|
4376
4381
|
} catch {
|
|
4377
4382
|
return !1;
|
|
4378
4383
|
}
|
|
4379
4384
|
}
|
|
4380
|
-
const
|
|
4381
|
-
container:
|
|
4382
|
-
title:
|
|
4383
|
-
description:
|
|
4384
|
-
sectionTitle:
|
|
4385
|
-
websiteInfo:
|
|
4386
|
-
favicon:
|
|
4387
|
-
websiteTitle:
|
|
4388
|
-
websiteHost:
|
|
4389
|
-
warningContent:
|
|
4390
|
-
ignoreButton:
|
|
4391
|
-
infoList:
|
|
4392
|
-
infoItem:
|
|
4393
|
-
label:
|
|
4394
|
-
infoValue:
|
|
4395
|
-
durationTrigger:
|
|
4396
|
-
durationItem:
|
|
4397
|
-
featureList:
|
|
4398
|
-
featureItem:
|
|
4399
|
-
checkIcon:
|
|
4400
|
-
learnMoreLink:
|
|
4401
|
-
feedbackContainer:
|
|
4402
|
-
footer:
|
|
4385
|
+
const bg = "_container_1422v_1", Ng = "_title_1422v_7", Cg = "_description_1422v_14", kg = "_sectionTitle_1422v_20", Ig = "_websiteInfo_1422v_27", xg = "_favicon_1422v_37", Ag = "_websiteTitle_1422v_42", Sg = "_websiteHost_1422v_48", $g = "_warningContent_1422v_54", Tg = "_ignoreButton_1422v_61", Eg = "_infoList_1422v_65", Lg = "_infoItem_1422v_75", qg = "_label_1422v_84", Pg = "_infoValue_1422v_94", Mg = "_durationTrigger_1422v_100", Dg = "_durationItem_1422v_101", Rg = "_featureList_1422v_105", Bg = "_featureItem_1422v_113", Ug = "_checkIcon_1422v_123", Fg = "_learnMoreLink_1422v_127", Og = "_feedbackContainer_1422v_140", Vg = "_footer_1422v_146", ae = {
|
|
4386
|
+
container: bg,
|
|
4387
|
+
title: Ng,
|
|
4388
|
+
description: Cg,
|
|
4389
|
+
sectionTitle: kg,
|
|
4390
|
+
websiteInfo: Ig,
|
|
4391
|
+
favicon: xg,
|
|
4392
|
+
websiteTitle: Ag,
|
|
4393
|
+
websiteHost: Sg,
|
|
4394
|
+
warningContent: $g,
|
|
4395
|
+
ignoreButton: Tg,
|
|
4396
|
+
infoList: Eg,
|
|
4397
|
+
infoItem: Lg,
|
|
4398
|
+
label: qg,
|
|
4399
|
+
infoValue: Pg,
|
|
4400
|
+
durationTrigger: Mg,
|
|
4401
|
+
durationItem: Dg,
|
|
4402
|
+
featureList: Rg,
|
|
4403
|
+
featureItem: Bg,
|
|
4404
|
+
checkIcon: Ug,
|
|
4405
|
+
learnMoreLink: Fg,
|
|
4406
|
+
feedbackContainer: Og,
|
|
4407
|
+
footer: Vg
|
|
4403
4408
|
};
|
|
4404
|
-
function
|
|
4409
|
+
function Kg(e) {
|
|
4405
4410
|
return e instanceof ao && e.response.status === 404;
|
|
4406
4411
|
}
|
|
4407
|
-
const
|
|
4412
|
+
const jg = Ce("interwovenkit:account", {
|
|
4408
4413
|
info: (e, t) => ({
|
|
4409
4414
|
queryKey: [e, t],
|
|
4410
4415
|
queryFn: async () => {
|
|
@@ -4412,24 +4417,24 @@ const Kg = Ce("interwovenkit:account", {
|
|
|
4412
4417
|
try {
|
|
4413
4418
|
return await n.get(o).json(), !0;
|
|
4414
4419
|
} catch (a) {
|
|
4415
|
-
if (
|
|
4420
|
+
if (Kg(a))
|
|
4416
4421
|
return !1;
|
|
4417
4422
|
throw a;
|
|
4418
4423
|
}
|
|
4419
4424
|
}
|
|
4420
4425
|
})
|
|
4421
|
-
}),
|
|
4426
|
+
}), Wg = () => {
|
|
4422
4427
|
const [e, t] = V(gg), [n, o] = Se(cs), [a, r] = V(!1), i = We(), c = le(), { address: l, username: d } = Xe(), { mutate: m, isPending: u } = Hm(), { closeDrawer: f } = St();
|
|
4423
4428
|
if (!n) throw new Error("Pending request not found");
|
|
4424
4429
|
const { logoUrl: p, name: g, restUrl: _ } = i(n.chainId), {
|
|
4425
4430
|
data: y,
|
|
4426
4431
|
isLoading: w,
|
|
4427
4432
|
isError: v
|
|
4428
|
-
} = _e(
|
|
4433
|
+
} = _e(jg.info(_, l)), N = {
|
|
4429
4434
|
favicon: document.querySelector('link[rel="icon"]')?.getAttribute("href") || "",
|
|
4430
4435
|
title: document.title,
|
|
4431
4436
|
hostname: window.location.hostname
|
|
4432
|
-
}, b = c.find((I) => I.chainId === n.chainId), C = b?.website ?
|
|
4437
|
+
}, b = c.find((I) => I.chainId === n.chainId), C = b?.website ? vg(b.website, window.location.hostname) : !1, x = () => {
|
|
4433
4438
|
m(e);
|
|
4434
4439
|
}, $ = () => {
|
|
4435
4440
|
n?.reject(new Error("User cancelled")), o(null), f();
|
|
@@ -4525,19 +4530,19 @@ const Kg = Ce("interwovenkit:account", {
|
|
|
4525
4530
|
}
|
|
4526
4531
|
)
|
|
4527
4532
|
] });
|
|
4528
|
-
},
|
|
4529
|
-
container:
|
|
4530
|
-
badge:
|
|
4533
|
+
}, zg = () => Nn(cs) ? /* @__PURE__ */ s(Wg, {}) : null, Hg = "_container_mqvhs_1", Gg = "_badge_mqvhs_5", Mr = {
|
|
4534
|
+
container: Hg,
|
|
4535
|
+
badge: Gg
|
|
4531
4536
|
}, tl = (e) => {
|
|
4532
4537
|
const { offset: t = -4, disabled: n, children: o, className: a } = e;
|
|
4533
4538
|
return /* @__PURE__ */ h("div", { className: L(Mr.container, a), children: [
|
|
4534
4539
|
o,
|
|
4535
4540
|
!n && /* @__PURE__ */ s("div", { className: Mr.badge, style: { right: t, top: t } })
|
|
4536
4541
|
] });
|
|
4537
|
-
},
|
|
4538
|
-
header:
|
|
4539
|
-
back:
|
|
4540
|
-
title:
|
|
4542
|
+
}, Qg = "_header_s7mee_1", Yg = "_back_s7mee_12", Zg = "_title_s7mee_24", Zo = {
|
|
4543
|
+
header: Qg,
|
|
4544
|
+
back: Yg,
|
|
4545
|
+
title: Zg
|
|
4541
4546
|
}, Nt = ({ title: e, backButton: t, extra: n, children: o }) => {
|
|
4542
4547
|
const a = Oi();
|
|
4543
4548
|
return /* @__PURE__ */ h(W, { children: [
|
|
@@ -4591,7 +4596,7 @@ function sl() {
|
|
|
4591
4596
|
}
|
|
4592
4597
|
};
|
|
4593
4598
|
}
|
|
4594
|
-
function
|
|
4599
|
+
function Jg() {
|
|
4595
4600
|
const e = $t(), t = ps();
|
|
4596
4601
|
return ({
|
|
4597
4602
|
initialAddress: n,
|
|
@@ -4613,14 +4618,14 @@ function Zg() {
|
|
|
4613
4618
|
return "";
|
|
4614
4619
|
};
|
|
4615
4620
|
}
|
|
4616
|
-
const
|
|
4617
|
-
root:
|
|
4618
|
-
header:
|
|
4619
|
-
title:
|
|
4620
|
-
warning:
|
|
4621
|
-
content:
|
|
4622
|
-
footer:
|
|
4623
|
-
secondary:
|
|
4621
|
+
const Xg = "_root_ekn9t_1", e_ = "_header_ekn9t_6", t_ = "_title_ekn9t_12", n_ = "_warning_ekn9t_18", s_ = "_content_ekn9t_22", o_ = "_footer_ekn9t_26", a_ = "_secondary_ekn9t_36", jt = {
|
|
4622
|
+
root: Xg,
|
|
4623
|
+
header: e_,
|
|
4624
|
+
title: t_,
|
|
4625
|
+
warning: n_,
|
|
4626
|
+
content: s_,
|
|
4627
|
+
footer: o_,
|
|
4628
|
+
secondary: a_
|
|
4624
4629
|
}, ol = (e) => {
|
|
4625
4630
|
const { type: t, icon: n, title: o, children: a, primaryButton: r, secondaryButton: i } = e;
|
|
4626
4631
|
return /* @__PURE__ */ h(ut, { className: jt.root, children: [
|
|
@@ -4637,12 +4642,12 @@ const Jg = "_root_ekn9t_1", Xg = "_header_ekn9t_6", e_ = "_title_ekn9t_12", t_ =
|
|
|
4637
4642
|
] })
|
|
4638
4643
|
] })
|
|
4639
4644
|
] });
|
|
4640
|
-
},
|
|
4641
|
-
list:
|
|
4642
|
-
row:
|
|
4643
|
-
dt:
|
|
4644
|
-
asset:
|
|
4645
|
-
},
|
|
4645
|
+
}, r_ = "_list_k4n3k_1", i_ = "_row_k4n3k_9", c_ = "_dt_k4n3k_20", l_ = "_asset_k4n3k_26", Ts = {
|
|
4646
|
+
list: r_,
|
|
4647
|
+
row: i_,
|
|
4648
|
+
dt: c_,
|
|
4649
|
+
asset: l_
|
|
4650
|
+
}, d_ = ({ list: e, onNavigate: t, onDismiss: n }) => {
|
|
4646
4651
|
const o = oe(), a = We(), r = bt(o);
|
|
4647
4652
|
return /* @__PURE__ */ s(
|
|
4648
4653
|
ol,
|
|
@@ -4670,9 +4675,9 @@ const Jg = "_root_ekn9t_1", Xg = "_header_ekn9t_6", e_ = "_title_ekn9t_12", t_ =
|
|
|
4670
4675
|
function Jo(e, t) {
|
|
4671
4676
|
return e.chainId === t.chainId && e.txHash === t.txHash;
|
|
4672
4677
|
}
|
|
4673
|
-
const Es = ({ chainId: e, txHash: t }) => `${se.OP_REMINDER}:${e}:${t}`,
|
|
4678
|
+
const Es = ({ chainId: e, txHash: t }) => `${se.OP_REMINDER}:${e}:${t}`, u_ = hu(se.OP_REMINDER, []);
|
|
4674
4679
|
function Tn() {
|
|
4675
|
-
const e = X(), [t = [], n] = Se(
|
|
4680
|
+
const e = X(), [t = [], n] = Se(u_), o = S(() => t.map((l) => {
|
|
4676
4681
|
const d = localStorage.getItem(Es(l));
|
|
4677
4682
|
return d ? JSON.parse(d) : null;
|
|
4678
4683
|
}).filter((l) => {
|
|
@@ -4718,14 +4723,14 @@ function al() {
|
|
|
4718
4723
|
a(l, { ...l, dismissed: !0 });
|
|
4719
4724
|
};
|
|
4720
4725
|
t({
|
|
4721
|
-
content: Ws(
|
|
4726
|
+
content: Ws(d_, { list: r, onNavigate: i, onDismiss: c })
|
|
4722
4727
|
});
|
|
4723
4728
|
}, [o, n, e, t, a]);
|
|
4724
4729
|
}
|
|
4725
|
-
const
|
|
4726
|
-
wrapper:
|
|
4727
|
-
balance:
|
|
4728
|
-
button:
|
|
4730
|
+
const m_ = "_wrapper_5ssm8_1", h_ = "_balance_5ssm8_11", f_ = "_button_5ssm8_15", Xo = {
|
|
4731
|
+
wrapper: m_,
|
|
4732
|
+
balance: h_,
|
|
4733
|
+
button: f_
|
|
4729
4734
|
}, rl = ({ onClick: e, children: t, disabled: n }) => /* @__PURE__ */ h("div", { className: Xo.wrapper, children: [
|
|
4730
4735
|
/* @__PURE__ */ s(An, { size: 16 }),
|
|
4731
4736
|
/* @__PURE__ */ s("span", { className: Xo.balance, children: t }),
|
|
@@ -4740,16 +4745,16 @@ const u_ = "_wrapper_5ssm8_1", m_ = "_balance_5ssm8_11", h_ = "_button_5ssm8_15"
|
|
|
4740
4745
|
children: "MAX"
|
|
4741
4746
|
}
|
|
4742
4747
|
)
|
|
4743
|
-
] }),
|
|
4744
|
-
fieldset:
|
|
4745
|
-
upper:
|
|
4746
|
-
select:
|
|
4747
|
-
account:
|
|
4748
|
-
lower:
|
|
4749
|
-
wrapper:
|
|
4750
|
-
balance:
|
|
4751
|
-
value:
|
|
4752
|
-
error:
|
|
4748
|
+
] }), p_ = "_fieldset_up6fh_1", g_ = "_upper_up6fh_9", __ = "_select_up6fh_14", y_ = "_account_up6fh_20", w_ = "_lower_up6fh_25", v_ = "_wrapper_up6fh_26", b_ = "_balance_up6fh_33", N_ = "_value_up6fh_37", C_ = "_error_up6fh_50", kt = {
|
|
4749
|
+
fieldset: p_,
|
|
4750
|
+
upper: g_,
|
|
4751
|
+
select: __,
|
|
4752
|
+
account: y_,
|
|
4753
|
+
lower: w_,
|
|
4754
|
+
wrapper: v_,
|
|
4755
|
+
balance: b_,
|
|
4756
|
+
value: N_,
|
|
4757
|
+
error: C_
|
|
4753
4758
|
}, ga = (e) => {
|
|
4754
4759
|
const {
|
|
4755
4760
|
selectButton: t,
|
|
@@ -4784,8 +4789,8 @@ function _s() {
|
|
|
4784
4789
|
t || e.current?.focus();
|
|
4785
4790
|
}, [t]), e;
|
|
4786
4791
|
}
|
|
4787
|
-
const
|
|
4788
|
-
input:
|
|
4792
|
+
const k_ = "_input_h8073_1", I_ = {
|
|
4793
|
+
input: k_
|
|
4789
4794
|
};
|
|
4790
4795
|
function il(e) {
|
|
4791
4796
|
const { name: t, control: n, dp: o = 6, className: a, rules: r, ...i } = e, c = _s();
|
|
@@ -4800,7 +4805,7 @@ function il(e) {
|
|
|
4800
4805
|
{
|
|
4801
4806
|
value: l.value,
|
|
4802
4807
|
getInputRef: Si([l.ref, c]),
|
|
4803
|
-
className: L(
|
|
4808
|
+
className: L(I_.input, a),
|
|
4804
4809
|
onValueChange: (d) => {
|
|
4805
4810
|
l.onChange(d.value);
|
|
4806
4811
|
},
|
|
@@ -4816,10 +4821,10 @@ function il(e) {
|
|
|
4816
4821
|
}
|
|
4817
4822
|
);
|
|
4818
4823
|
}
|
|
4819
|
-
const
|
|
4820
|
-
input:
|
|
4821
|
-
placeholder:
|
|
4822
|
-
},
|
|
4824
|
+
const x_ = "_input_19r9r_1", A_ = "_placeholder_19r9r_18", _a = {
|
|
4825
|
+
input: x_,
|
|
4826
|
+
placeholder: A_
|
|
4827
|
+
}, S_ = ({ children: e }) => /* @__PURE__ */ s("p", { className: L(_a.input, { [_a.placeholder]: M(e).isZero() }), children: e }), Zn = ({ balance: e, decimals: t, className: n }) => {
|
|
4823
4828
|
const { control: o } = sn(), a = {
|
|
4824
4829
|
required: "Enter amount",
|
|
4825
4830
|
validate: (r) => M(r).isZero() ? "Enter amount" : M(oo(r, { decimals: t })).gt(e ?? 0) ? "Insufficient balance" : !0
|
|
@@ -4834,7 +4839,7 @@ const I_ = "_input_19r9r_1", x_ = "_placeholder_19r9r_18", _a = {
|
|
|
4834
4839
|
}
|
|
4835
4840
|
);
|
|
4836
4841
|
};
|
|
4837
|
-
Zn.ReadOnly =
|
|
4842
|
+
Zn.ReadOnly = S_;
|
|
4838
4843
|
const In = ({ title: e, content: t, children: n, className: o }) => {
|
|
4839
4844
|
const [a, r] = V(!1);
|
|
4840
4845
|
return /* @__PURE__ */ s(
|
|
@@ -4848,9 +4853,9 @@ const In = ({ title: e, content: t, children: n, className: o }) => {
|
|
|
4848
4853
|
children: t(() => r(!1))
|
|
4849
4854
|
}
|
|
4850
4855
|
);
|
|
4851
|
-
},
|
|
4852
|
-
tooltip:
|
|
4853
|
-
arrow:
|
|
4856
|
+
}, $_ = "_tooltip_19kvs_1", T_ = "_arrow_19kvs_44", Dr = {
|
|
4857
|
+
tooltip: $_,
|
|
4858
|
+
arrow: T_
|
|
4854
4859
|
}, ys = ({ label: e, children: t, small: n, ...o }) => /* @__PURE__ */ h(fn.Root, { ...o, children: [
|
|
4855
4860
|
/* @__PURE__ */ s(fn.Trigger, { asChild: !0, children: t }),
|
|
4856
4861
|
/* @__PURE__ */ s(fn.Portal, { container: en(), children: /* @__PURE__ */ h(
|
|
@@ -4877,11 +4882,11 @@ function er(e, t) {
|
|
|
4877
4882
|
staleTime: F.SECOND
|
|
4878
4883
|
});
|
|
4879
4884
|
}
|
|
4880
|
-
function
|
|
4885
|
+
function E_(e, t, n) {
|
|
4881
4886
|
const { data: o = {} } = er(e, t);
|
|
4882
4887
|
return _t([n], o);
|
|
4883
4888
|
}
|
|
4884
|
-
const
|
|
4889
|
+
const L_ = [
|
|
4885
4890
|
["d", 1440 * 60],
|
|
4886
4891
|
// day
|
|
4887
4892
|
["h", 3600],
|
|
@@ -4893,7 +4898,7 @@ const E_ = [
|
|
|
4893
4898
|
];
|
|
4894
4899
|
function Jn(e) {
|
|
4895
4900
|
if (!e) return;
|
|
4896
|
-
const { formattedParts: t } =
|
|
4901
|
+
const { formattedParts: t } = L_.reduce(
|
|
4897
4902
|
({ remainingSeconds: n, formattedParts: o }, [a, r]) => {
|
|
4898
4903
|
const i = Math.floor(n / r);
|
|
4899
4904
|
return {
|
|
@@ -4938,7 +4943,7 @@ function ya(e, t) {
|
|
|
4938
4943
|
staleTime: F.MINUTE
|
|
4939
4944
|
});
|
|
4940
4945
|
}
|
|
4941
|
-
function
|
|
4946
|
+
function q_(e) {
|
|
4942
4947
|
return _e({
|
|
4943
4948
|
queryKey: Ue.routeErrorInfo(e ?? void 0).queryKey,
|
|
4944
4949
|
queryFn: async () => {
|
|
@@ -4949,15 +4954,15 @@ function L_(e) {
|
|
|
4949
4954
|
enabled: !!e
|
|
4950
4955
|
});
|
|
4951
4956
|
}
|
|
4952
|
-
function
|
|
4957
|
+
function P_() {
|
|
4953
4958
|
const { watch: e } = Ft(), { srcChainId: t, srcDenom: n, dstChainId: o, dstDenom: a } = e(), r = Je(t), i = Qn(r), c = yt(n, t), l = yt(a, o), d = oe(), m = le();
|
|
4954
4959
|
return i === "initia" && o === d.chainId && c.symbol === l.symbol && m.find((u) => u.chainId === t)?.metadata?.op_denoms?.includes(l.denom);
|
|
4955
4960
|
}
|
|
4956
|
-
const
|
|
4957
|
-
label:
|
|
4958
|
-
wrapper:
|
|
4959
|
-
input:
|
|
4960
|
-
clear:
|
|
4961
|
+
const M_ = "_label_t93ix_1", D_ = "_wrapper_t93ix_7", R_ = "_input_t93ix_10", B_ = "_clear_t93ix_18", Ls = {
|
|
4962
|
+
label: M_,
|
|
4963
|
+
wrapper: D_,
|
|
4964
|
+
input: R_,
|
|
4965
|
+
clear: B_
|
|
4961
4966
|
}, nr = ({ mode: e = "onChange", myAddress: t, ...n }) => {
|
|
4962
4967
|
const { validate: o = Y.validate, chainType: a = "initia", onApply: r, ref: i } = n, c = _s(), { control: l, getValues: d, setValue: m, formState: u } = sn(), f = d("recipient"), [p, g] = V(f), _ = Ri(), {
|
|
4963
4968
|
data: y,
|
|
@@ -5055,11 +5060,11 @@ const P_ = "_label_t93ix_1", M_ = "_wrapper_t93ix_7", D_ = "_input_t93ix_10", R_
|
|
|
5055
5060
|
}
|
|
5056
5061
|
)
|
|
5057
5062
|
] });
|
|
5058
|
-
},
|
|
5059
|
-
scrollable:
|
|
5060
|
-
list:
|
|
5061
|
-
item:
|
|
5062
|
-
name:
|
|
5063
|
+
}, U_ = "_scrollable_vgj3r_1", F_ = "_list_vgj3r_5", O_ = "_item_vgj3r_9", V_ = "_name_vgj3r_22", qs = {
|
|
5064
|
+
scrollable: U_,
|
|
5065
|
+
list: F_,
|
|
5066
|
+
item: O_,
|
|
5067
|
+
name: V_
|
|
5063
5068
|
};
|
|
5064
5069
|
function cl({ onSelect: e, list: t, ...n }) {
|
|
5065
5070
|
const { getImage: o, getName: a, getKey: r, getIsLoading: i, getDisabled: c } = n;
|
|
@@ -5095,10 +5100,10 @@ function Lo() {
|
|
|
5095
5100
|
];
|
|
5096
5101
|
return { list: e, find: (n) => e.find((o) => o.name === n) };
|
|
5097
5102
|
}
|
|
5098
|
-
const
|
|
5099
|
-
account:
|
|
5100
|
-
clear:
|
|
5101
|
-
white:
|
|
5103
|
+
const K_ = "_account_h04x1_8", j_ = "_clear_h04x1_28", W_ = "_white_h04x1_39", Mn = {
|
|
5104
|
+
account: K_,
|
|
5105
|
+
clear: j_,
|
|
5106
|
+
white: W_
|
|
5102
5107
|
}, Rr = ({ type: e }) => {
|
|
5103
5108
|
const { watch: t, setValue: n } = Ft(), { srcChainId: o, dstChainId: a, cosmosWalletName: r } = t(), c = t(e === "src" ? "sender" : "recipient"), l = Qn(Je(a)), { list: d, find: m } = Lo(), u = m(r), f = nl(), p = sl(), g = f(a), _ = Y.equals(c, g), y = () => /* @__PURE__ */ s(
|
|
5104
5109
|
In,
|
|
@@ -5177,8 +5182,8 @@ const V_ = "_account_h04x1_8", K_ = "_clear_h04x1_28", j_ = "_white_h04x1_39", M
|
|
|
5177
5182
|
case "dst":
|
|
5178
5183
|
return v();
|
|
5179
5184
|
}
|
|
5180
|
-
},
|
|
5181
|
-
images:
|
|
5185
|
+
}, z_ = "_images_cj4xz_1", ea = {
|
|
5186
|
+
images: z_
|
|
5182
5187
|
}, qo = ({
|
|
5183
5188
|
assetLogoUrl: e,
|
|
5184
5189
|
assetLogoSize: t = 36,
|
|
@@ -5208,13 +5213,13 @@ const V_ = "_account_h04x1_8", K_ = "_clear_h04x1_28", j_ = "_white_h04x1_39", M
|
|
|
5208
5213
|
logo: !0
|
|
5209
5214
|
}
|
|
5210
5215
|
)
|
|
5211
|
-
] }),
|
|
5212
|
-
root:
|
|
5213
|
-
content:
|
|
5214
|
-
details:
|
|
5215
|
-
symbol:
|
|
5216
|
-
chain:
|
|
5217
|
-
chevron:
|
|
5216
|
+
] }), H_ = "_root_6187w_1", G_ = "_content_6187w_10", Q_ = "_details_6187w_20", Y_ = "_symbol_6187w_26", Z_ = "_chain_6187w_34", J_ = "_chevron_6187w_43", Wt = {
|
|
5217
|
+
root: H_,
|
|
5218
|
+
content: G_,
|
|
5219
|
+
details: Q_,
|
|
5220
|
+
symbol: Y_,
|
|
5221
|
+
chain: Z_,
|
|
5222
|
+
chevron: J_
|
|
5218
5223
|
}, ll = ({ asset: e, chain: t, readOnly: n }) => {
|
|
5219
5224
|
const o = /* @__PURE__ */ h("div", { className: Wt.content, children: [
|
|
5220
5225
|
/* @__PURE__ */ s(qo, { assetLogoUrl: e.logoUrl, chainLogoUrl: t.logoUrl }),
|
|
@@ -5231,18 +5236,18 @@ const V_ = "_account_h04x1_8", K_ = "_clear_h04x1_28", j_ = "_white_h04x1_39", M
|
|
|
5231
5236
|
/* @__PURE__ */ s($e, { size: 16, className: Wt.chevron })
|
|
5232
5237
|
] });
|
|
5233
5238
|
};
|
|
5234
|
-
function
|
|
5239
|
+
function X_(e, t, n) {
|
|
5235
5240
|
return n.filter((o) => {
|
|
5236
5241
|
const a = e.map((r) => o[r]).map((r) => String(r ?? "").toLowerCase());
|
|
5237
5242
|
return od(ii(t.toLowerCase()), a);
|
|
5238
5243
|
});
|
|
5239
5244
|
}
|
|
5240
|
-
const
|
|
5241
|
-
root:
|
|
5242
|
-
label:
|
|
5243
|
-
input:
|
|
5244
|
-
hasValue:
|
|
5245
|
-
clear:
|
|
5245
|
+
const e1 = "_root_1sh27_1", t1 = "_label_1sh27_8", n1 = "_input_1sh27_21", s1 = "_hasValue_1sh27_31", o1 = "_clear_1sh27_35", Dn = {
|
|
5246
|
+
root: e1,
|
|
5247
|
+
label: t1,
|
|
5248
|
+
input: n1,
|
|
5249
|
+
hasValue: s1,
|
|
5250
|
+
clear: o1
|
|
5246
5251
|
}, ws = (e) => {
|
|
5247
5252
|
const { rootClassName: t, padding: n = 16, iconSize: o = 16, onClear: a, ref: r, ...i } = e;
|
|
5248
5253
|
return /* @__PURE__ */ h(
|
|
@@ -5280,19 +5285,19 @@ const X_ = "_root_1sh27_1", e1 = "_label_1sh27_8", t1 = "_input_1sh27_21", n1 =
|
|
|
5280
5285
|
]
|
|
5281
5286
|
}
|
|
5282
5287
|
);
|
|
5283
|
-
},
|
|
5284
|
-
container:
|
|
5285
|
-
search:
|
|
5286
|
-
list:
|
|
5287
|
-
item:
|
|
5288
|
-
logo:
|
|
5289
|
-
info:
|
|
5290
|
-
symbol:
|
|
5291
|
-
name:
|
|
5292
|
-
balance:
|
|
5293
|
-
value:
|
|
5288
|
+
}, a1 = "_container_5tajg_1", r1 = "_search_5tajg_7", i1 = "_list_5tajg_11", c1 = "_item_5tajg_15", l1 = "_logo_5tajg_37", d1 = "_info_5tajg_41", u1 = "_symbol_5tajg_47", m1 = "_name_5tajg_56", h1 = "_balance_5tajg_62", f1 = "_value_5tajg_69", Ze = {
|
|
5289
|
+
container: a1,
|
|
5290
|
+
search: r1,
|
|
5291
|
+
list: i1,
|
|
5292
|
+
item: c1,
|
|
5293
|
+
logo: l1,
|
|
5294
|
+
info: d1,
|
|
5295
|
+
symbol: u1,
|
|
5296
|
+
name: m1,
|
|
5297
|
+
balance: h1,
|
|
5298
|
+
value: f1
|
|
5294
5299
|
}, vs = (e) => {
|
|
5295
|
-
const { assets: t, onSelect: n, renderAsset: o = (c, l) => l(c) } = e, [a, r] = V(""), i =
|
|
5300
|
+
const { assets: t, onSelect: n, renderAsset: o = (c, l) => l(c) } = e, [a, r] = V(""), i = X_(["symbol"], a, t);
|
|
5296
5301
|
return /* @__PURE__ */ h("div", { className: Ze.container, children: [
|
|
5297
5302
|
/* @__PURE__ */ s(
|
|
5298
5303
|
ws,
|
|
@@ -5330,7 +5335,7 @@ const X_ = "_root_1sh27_1", e1 = "_label_1sh27_8", t1 = "_input_1sh27_21", n1 =
|
|
|
5330
5335
|
c.denom
|
|
5331
5336
|
)) })
|
|
5332
5337
|
] });
|
|
5333
|
-
},
|
|
5338
|
+
}, p1 = () => /* @__PURE__ */ h("div", { className: Ze.container, children: [
|
|
5334
5339
|
/* @__PURE__ */ s(
|
|
5335
5340
|
ws,
|
|
5336
5341
|
{
|
|
@@ -5342,14 +5347,14 @@ const X_ = "_root_1sh27_1", e1 = "_label_1sh27_8", t1 = "_input_1sh27_21", n1 =
|
|
|
5342
5347
|
),
|
|
5343
5348
|
/* @__PURE__ */ s(ge, { children: "Loading..." })
|
|
5344
5349
|
] });
|
|
5345
|
-
vs.Placeholder =
|
|
5346
|
-
const
|
|
5347
|
-
stack:
|
|
5348
|
-
title:
|
|
5349
|
-
grid:
|
|
5350
|
-
item:
|
|
5351
|
-
button:
|
|
5352
|
-
active:
|
|
5350
|
+
vs.Placeholder = p1;
|
|
5351
|
+
const g1 = "_stack_16oqn_1", _1 = "_title_16oqn_9", y1 = "_grid_16oqn_16", w1 = "_item_16oqn_22", v1 = "_button_16oqn_26", b1 = "_active_16oqn_44", _n = {
|
|
5352
|
+
stack: g1,
|
|
5353
|
+
title: _1,
|
|
5354
|
+
grid: y1,
|
|
5355
|
+
item: w1,
|
|
5356
|
+
button: v1,
|
|
5357
|
+
active: b1
|
|
5353
5358
|
}, Jt = ({ label: e, chains: t, value: n, onSelect: o, getShowIndicator: a }) => /* @__PURE__ */ h("div", { children: [
|
|
5354
5359
|
e && /* @__PURE__ */ s("h2", { className: _n.title, children: e }),
|
|
5355
5360
|
/* @__PURE__ */ s("div", { className: _n.grid, children: t.map(({ chainId: r, name: i, logoUrl: c }) => /* @__PURE__ */ s(
|
|
@@ -5370,9 +5375,9 @@ const p1 = "_stack_16oqn_1", g1 = "_title_16oqn_9", _1 = "_grid_16oqn_16", y1 =
|
|
|
5370
5375
|
},
|
|
5371
5376
|
r
|
|
5372
5377
|
)) })
|
|
5373
|
-
] }),
|
|
5374
|
-
Jt.Stack =
|
|
5375
|
-
const
|
|
5378
|
+
] }), N1 = ({ children: e }) => /* @__PURE__ */ s("div", { className: _n.stack, children: e });
|
|
5379
|
+
Jt.Stack = N1;
|
|
5380
|
+
const C1 = ({ address: e, chain: t, onSelect: n }) => {
|
|
5376
5381
|
const o = Js(t.chain_id), { data: a = {} } = er(e, t.chain_id);
|
|
5377
5382
|
return /* @__PURE__ */ s(
|
|
5378
5383
|
vs,
|
|
@@ -5400,8 +5405,8 @@ const N1 = ({ address: e, chain: t, onSelect: n }) => {
|
|
|
5400
5405
|
onSelect: n
|
|
5401
5406
|
}
|
|
5402
5407
|
);
|
|
5403
|
-
},
|
|
5404
|
-
const n = e === "src" ? "srcChainId" : "dstChainId", o = e === "src" ? "srcDenom" : "dstDenom", a = e === "src" ? "sender" : "recipient", r = an(), i = gs(), { watch: c, setValue: l } = Ft(), d = c(a), m = c(n), u = c(o), [f, p] = V(m), g = Je(f), _ =
|
|
5408
|
+
}, k1 = ({ type: e, afterSelect: t }) => {
|
|
5409
|
+
const n = e === "src" ? "srcChainId" : "dstChainId", o = e === "src" ? "srcDenom" : "dstDenom", a = e === "src" ? "sender" : "recipient", r = an(), i = gs(), { watch: c, setValue: l } = Ft(), d = c(a), m = c(n), u = c(o), [f, p] = V(m), g = Je(f), _ = Jg(), y = Bc(), [w, v] = ci(
|
|
5405
5410
|
(b) => y(b.chain_id),
|
|
5406
5411
|
i.filter((b) => !b.hidden)
|
|
5407
5412
|
), N = (b) => {
|
|
@@ -5433,7 +5438,7 @@ const N1 = ({ address: e, chain: t, onSelect: n }) => {
|
|
|
5433
5438
|
)
|
|
5434
5439
|
] }),
|
|
5435
5440
|
/* @__PURE__ */ s(he, { suspenseFallback: /* @__PURE__ */ s(vs.Placeholder, {}), children: /* @__PURE__ */ s(
|
|
5436
|
-
|
|
5441
|
+
C1,
|
|
5437
5442
|
{
|
|
5438
5443
|
address: _({
|
|
5439
5444
|
initialAddress: d,
|
|
@@ -5452,7 +5457,7 @@ const N1 = ({ address: e, chain: t, onSelect: n }) => {
|
|
|
5452
5457
|
In,
|
|
5453
5458
|
{
|
|
5454
5459
|
title: o,
|
|
5455
|
-
content: (d) => /* @__PURE__ */ s(
|
|
5460
|
+
content: (d) => /* @__PURE__ */ s(k1, { type: e, afterSelect: d }),
|
|
5456
5461
|
children: /* @__PURE__ */ s(
|
|
5457
5462
|
ll,
|
|
5458
5463
|
{
|
|
@@ -5471,21 +5476,21 @@ const N1 = ({ address: e, chain: t, onSelect: n }) => {
|
|
|
5471
5476
|
)
|
|
5472
5477
|
}
|
|
5473
5478
|
);
|
|
5474
|
-
},
|
|
5475
|
-
skeleton:
|
|
5476
|
-
}, Xt = ({ width: e = "100%", height: t }) => /* @__PURE__ */ s("div", { className:
|
|
5477
|
-
stack:
|
|
5478
|
-
button:
|
|
5479
|
-
isLoading:
|
|
5480
|
-
disabled:
|
|
5481
|
-
checked:
|
|
5482
|
-
header:
|
|
5483
|
-
title:
|
|
5484
|
-
duration:
|
|
5485
|
-
warning:
|
|
5486
|
-
amount:
|
|
5487
|
-
value:
|
|
5488
|
-
},
|
|
5479
|
+
}, I1 = "_skeleton_1l4jn_1", x1 = {
|
|
5480
|
+
skeleton: I1
|
|
5481
|
+
}, Xt = ({ width: e = "100%", height: t }) => /* @__PURE__ */ s("div", { className: x1.skeleton, style: { width: e, height: t } }), A1 = "_stack_oq1ir_1", S1 = "_button_oq1ir_6", $1 = "_isLoading_oq1ir_19", T1 = "_disabled_oq1ir_19", E1 = "_checked_oq1ir_23", L1 = "_header_oq1ir_37", q1 = "_title_oq1ir_43", P1 = "_duration_oq1ir_52", M1 = "_warning_oq1ir_62", D1 = "_amount_oq1ir_66", R1 = "_value_oq1ir_67", Ye = {
|
|
5482
|
+
stack: A1,
|
|
5483
|
+
button: S1,
|
|
5484
|
+
isLoading: $1,
|
|
5485
|
+
disabled: T1,
|
|
5486
|
+
checked: E1,
|
|
5487
|
+
header: L1,
|
|
5488
|
+
title: q1,
|
|
5489
|
+
duration: P1,
|
|
5490
|
+
warning: M1,
|
|
5491
|
+
amount: D1,
|
|
5492
|
+
value: R1
|
|
5493
|
+
}, B1 = ({ children: e }) => /* @__PURE__ */ s("div", { className: Ye.stack, children: e }), Vs = ({ label: e, query: t, value: n, onSelect: o, ...a }) => {
|
|
5489
5494
|
const { data: r, isLoading: i } = t, { watch: c } = Ft(), { dstChainId: l, dstDenom: d } = c(), m = yt(d, l), u = !i && a.checked, f = !i && !r;
|
|
5490
5495
|
return /* @__PURE__ */ h(
|
|
5491
5496
|
"button",
|
|
@@ -5518,16 +5523,16 @@ const N1 = ({ address: e, chain: t, onSelect: n }) => {
|
|
|
5518
5523
|
}
|
|
5519
5524
|
);
|
|
5520
5525
|
};
|
|
5521
|
-
Vs.Stack =
|
|
5522
|
-
const
|
|
5523
|
-
description:
|
|
5524
|
-
presets:
|
|
5525
|
-
preset:
|
|
5526
|
-
active:
|
|
5527
|
-
custom:
|
|
5528
|
-
wrapper:
|
|
5529
|
-
percent:
|
|
5530
|
-
}, Ur = ["0.1", "0.5", "1.0"],
|
|
5526
|
+
Vs.Stack = B1;
|
|
5527
|
+
const U1 = "_description_nuyvt_1", F1 = "_presets_nuyvt_8", O1 = "_preset_nuyvt_8", V1 = "_active_nuyvt_29", K1 = "_custom_nuyvt_40", j1 = "_wrapper_nuyvt_47", W1 = "_percent_nuyvt_58", pt = {
|
|
5528
|
+
description: U1,
|
|
5529
|
+
presets: F1,
|
|
5530
|
+
preset: O1,
|
|
5531
|
+
active: V1,
|
|
5532
|
+
custom: K1,
|
|
5533
|
+
wrapper: j1,
|
|
5534
|
+
percent: W1
|
|
5535
|
+
}, Ur = ["0.1", "0.5", "1.0"], z1 = ({ afterConfirm: e }) => {
|
|
5531
5536
|
const t = Ft(), n = t.getValues("slippagePercent"), [o, a] = V(null), { control: r, watch: i, getValues: c, setValue: l } = ns({
|
|
5532
5537
|
defaultValues: { value: n }
|
|
5533
5538
|
}), d = i("value");
|
|
@@ -5584,28 +5589,28 @@ const B1 = "_description_nuyvt_1", U1 = "_presets_nuyvt_8", F1 = "_preset_nuyvt_
|
|
|
5584
5589
|
f && /* @__PURE__ */ s(ye, { level: f.type, children: f.text }),
|
|
5585
5590
|
/* @__PURE__ */ s(Ne, { children: /* @__PURE__ */ s(ie.White, { type: "button", onClick: () => g(c()), disabled: p, children: "Confirm" }) })
|
|
5586
5591
|
] });
|
|
5587
|
-
},
|
|
5588
|
-
form:
|
|
5589
|
-
arrow:
|
|
5590
|
-
divider:
|
|
5591
|
-
flip:
|
|
5592
|
-
meta:
|
|
5593
|
-
row:
|
|
5594
|
-
title:
|
|
5595
|
-
description:
|
|
5596
|
-
icon:
|
|
5597
|
-
edit:
|
|
5598
|
-
warning:
|
|
5599
|
-
},
|
|
5592
|
+
}, H1 = "_form_1owk5_1", G1 = "_arrow_1owk5_5", Q1 = "_divider_1owk5_14", Y1 = "_flip_1owk5_23", Z1 = "_meta_1owk5_41", J1 = "_row_1owk5_54", X1 = "_title_1owk5_60", ey = "_description_1owk5_64", ty = "_icon_1owk5_71", ny = "_edit_1owk5_76", sy = "_warning_1owk5_99", Oe = {
|
|
5593
|
+
form: H1,
|
|
5594
|
+
arrow: G1,
|
|
5595
|
+
divider: Q1,
|
|
5596
|
+
flip: Y1,
|
|
5597
|
+
meta: Z1,
|
|
5598
|
+
row: J1,
|
|
5599
|
+
title: X1,
|
|
5600
|
+
description: ey,
|
|
5601
|
+
icon: ty,
|
|
5602
|
+
edit: ny,
|
|
5603
|
+
warning: sy
|
|
5604
|
+
}, oy = () => {
|
|
5600
5605
|
const e = Te(), t = So(), [n, o] = Sa(
|
|
5601
5606
|
se.BRIDGE_ROUTE_TYPE,
|
|
5602
5607
|
"default"
|
|
5603
|
-
), { watch: a, setValue: r, handleSubmit: i, formState: c } = Ft(), l = a(), { srcChainId: d, srcDenom: m, dstChainId: u, dstDenom: f, quantity: p, sender: g, slippagePercent: _ } = l, y = We(), w = Je(d), v = Qn(w), N = Je(u), b = Qn(N), C = yt(m, d), x = yt(f, u), { data: $ } = er(g, d), T =
|
|
5608
|
+
), { watch: a, setValue: r, handleSubmit: i, formState: c } = Ft(), l = a(), { srcChainId: d, srcDenom: m, dstChainId: u, dstDenom: f, quantity: p, sender: g, slippagePercent: _ } = l, y = We(), w = Je(d), v = Qn(w), N = Je(u), b = Qn(N), C = yt(m, d), x = yt(f, u), { data: $ } = er(g, d), T = E_(g, d, m), A = !T?.amount || M(T.amount).isZero(), [E] = Ci(p, 300), k = v !== "initia" && b !== "initia", I = P_(), q = ya(E, {
|
|
5604
5609
|
disabled: k
|
|
5605
5610
|
}), D = ya(E, {
|
|
5606
5611
|
isOpWithdraw: !0,
|
|
5607
5612
|
disabled: !I
|
|
5608
|
-
}), B = I && n === "op", U = B ? D : q, K = B ? q : D, H = B ? !k : I, R = U.error && H ? K : U, { data: O, isLoading: Fe, isFetching: Ie, error: mt } = R, { data: ze } =
|
|
5613
|
+
}), B = I && n === "op", U = B ? D : q, K = B ? q : D, H = B ? !k : I, R = U.error && H ? K : U, { data: O, isLoading: Fe, isFetching: Ie, error: mt } = R, { data: ze } = q_(mt), ln = E && (Fe || Ie), En = () => {
|
|
5609
5614
|
r("srcChainId", u), r("srcDenom", f), r("dstChainId", d), r("dstDenom", m), r("quantity", "", { shouldTouch: !1, shouldDirty: !1 });
|
|
5610
5615
|
}, { openModal: Ns, closeModal: Cs } = ko(), ht = i((te) => {
|
|
5611
5616
|
if (O?.warning) {
|
|
@@ -5692,7 +5697,7 @@ const B1 = "_description_nuyvt_1", U1 = "_presets_nuyvt_8", F1 = "_preset_nuyvt_
|
|
|
5692
5697
|
In,
|
|
5693
5698
|
{
|
|
5694
5699
|
title: "Slippage tolerance",
|
|
5695
|
-
content: (te) => /* @__PURE__ */ s(
|
|
5700
|
+
content: (te) => /* @__PURE__ */ s(z1, { afterConfirm: te }),
|
|
5696
5701
|
className: Oe.edit,
|
|
5697
5702
|
children: /* @__PURE__ */ s(xi, { size: 12 })
|
|
5698
5703
|
}
|
|
@@ -5778,7 +5783,7 @@ const B1 = "_description_nuyvt_1", U1 = "_presets_nuyvt_8", F1 = "_preset_nuyvt_
|
|
|
5778
5783
|
}
|
|
5779
5784
|
)
|
|
5780
5785
|
] });
|
|
5781
|
-
},
|
|
5786
|
+
}, ay = () => {
|
|
5782
5787
|
al();
|
|
5783
5788
|
const e = Oi(), t = Te(), n = an(), o = Dh(), a = ns({
|
|
5784
5789
|
mode: "onChange",
|
|
@@ -5837,23 +5842,23 @@ const B1 = "_description_nuyvt_1", U1 = "_presets_nuyvt_8", F1 = "_preset_nuyvt_
|
|
|
5837
5842
|
] }) }),
|
|
5838
5843
|
/* @__PURE__ */ s(tl, { offset: 0, disabled: k.length === 0, children: /* @__PURE__ */ s(ie.Small, { onClick: () => t("/op/withdrawals"), disabled: !n, children: /* @__PURE__ */ s("span", { children: "Withdrawal status" }) }) })
|
|
5839
5844
|
] }),
|
|
5840
|
-
children: T && A && /* @__PURE__ */ s(lo, { ...a, children: /* @__PURE__ */ s(he, { children: /* @__PURE__ */ s(
|
|
5845
|
+
children: T && A && /* @__PURE__ */ s(lo, { ...a, children: /* @__PURE__ */ s(he, { children: /* @__PURE__ */ s(oy, {}) }) })
|
|
5841
5846
|
}
|
|
5842
5847
|
);
|
|
5843
|
-
},
|
|
5844
|
-
button:
|
|
5845
|
-
checkbox:
|
|
5846
|
-
checked:
|
|
5847
|
-
},
|
|
5848
|
+
}, ry = "_button_1crvp_1", iy = "_checkbox_1crvp_11", cy = "_checked_1crvp_25", Ps = {
|
|
5849
|
+
button: ry,
|
|
5850
|
+
checkbox: iy,
|
|
5851
|
+
checked: cy
|
|
5852
|
+
}, ly = ({ checked: e, onClick: t, label: n, className: o }) => /* @__PURE__ */ h("button", { type: "button", className: L(Ps.button, o), onClick: t, children: [
|
|
5848
5853
|
/* @__PURE__ */ s("div", { className: L(Ps.checkbox, { [Ps.checked]: e }), children: e && /* @__PURE__ */ s(ss, { size: 12 }) }),
|
|
5849
5854
|
/* @__PURE__ */ s("span", { className: Ps.label, children: n })
|
|
5850
|
-
] }),
|
|
5851
|
-
button:
|
|
5855
|
+
] }), dy = "_button_aoxv2_1", uy = {
|
|
5856
|
+
button: dy
|
|
5852
5857
|
}, dl = ({ onClick: e, disabled: t }) => {
|
|
5853
5858
|
const { ref: n, inView: o } = pu();
|
|
5854
5859
|
return Q(() => {
|
|
5855
5860
|
o && e();
|
|
5856
|
-
}, [o, e]), /* @__PURE__ */ h("button", { className:
|
|
5861
|
+
}, [o, e]), /* @__PURE__ */ h("button", { className: uy.button, onClick: e, disabled: t, ref: n, children: [
|
|
5857
5862
|
/* @__PURE__ */ s("span", { children: "Load more" }),
|
|
5858
5863
|
/* @__PURE__ */ s($e, { size: 12 })
|
|
5859
5864
|
] });
|
|
@@ -5907,7 +5912,7 @@ function Po() {
|
|
|
5907
5912
|
const { restUrl: e } = oe();
|
|
5908
5913
|
return S(() => j.create({ prefixUrl: e }), [e]);
|
|
5909
5914
|
}
|
|
5910
|
-
function
|
|
5915
|
+
function my(e) {
|
|
5911
5916
|
const t = Po(), { data: n } = pe({
|
|
5912
5917
|
queryKey: cn.bridge(e).queryKey,
|
|
5913
5918
|
queryFn: () => t.get(`opinit/ophost/v1/bridges/${e}`).json(),
|
|
@@ -5916,7 +5921,7 @@ function uy(e) {
|
|
|
5916
5921
|
return n;
|
|
5917
5922
|
}
|
|
5918
5923
|
const Or = 20;
|
|
5919
|
-
function
|
|
5924
|
+
function hy(e) {
|
|
5920
5925
|
const t = X();
|
|
5921
5926
|
return Yl({
|
|
5922
5927
|
queryKey: cn.withdrawals(e, t).queryKey,
|
|
@@ -5933,7 +5938,7 @@ function my(e) {
|
|
|
5933
5938
|
staleTime: F.SECOND
|
|
5934
5939
|
});
|
|
5935
5940
|
}
|
|
5936
|
-
function
|
|
5941
|
+
function fy(e) {
|
|
5937
5942
|
const t = Po(), { data: n } = pe({
|
|
5938
5943
|
queryKey: cn.latestOutput(e).queryKey,
|
|
5939
5944
|
queryFn: () => t.get(`opinit/ophost/v1/bridges/${e}/outputs`, {
|
|
@@ -5947,7 +5952,7 @@ function hy(e) {
|
|
|
5947
5952
|
});
|
|
5948
5953
|
return n;
|
|
5949
5954
|
}
|
|
5950
|
-
function
|
|
5955
|
+
function py({ bridge_id: e, output_index: t }) {
|
|
5951
5956
|
const n = Po(), { data: o } = pe({
|
|
5952
5957
|
queryKey: cn.output(e, t).queryKey,
|
|
5953
5958
|
queryFn: async () => {
|
|
@@ -5961,7 +5966,7 @@ function fy({ bridge_id: e, output_index: t }) {
|
|
|
5961
5966
|
});
|
|
5962
5967
|
return o;
|
|
5963
5968
|
}
|
|
5964
|
-
function
|
|
5969
|
+
function gy({ bridge_id: e, sequence: t }) {
|
|
5965
5970
|
const o = le().find(
|
|
5966
5971
|
({ metadata: l }) => l?.op_bridge_id === e.toString()
|
|
5967
5972
|
)?.chain_id;
|
|
@@ -6006,7 +6011,7 @@ function pl(e) {
|
|
|
6006
6011
|
);
|
|
6007
6012
|
return Rn(Rn(d));
|
|
6008
6013
|
}
|
|
6009
|
-
async function
|
|
6014
|
+
async function _y(e, t, n) {
|
|
6010
6015
|
try {
|
|
6011
6016
|
return await j.get(`${e}/opinit/ophost/v1/bridges/${t}/migration_info/by_l1_denom`, {
|
|
6012
6017
|
searchParams: { l1_denom: n }
|
|
@@ -6015,7 +6020,7 @@ async function gy(e, t, n) {
|
|
|
6015
6020
|
return !1;
|
|
6016
6021
|
}
|
|
6017
6022
|
}
|
|
6018
|
-
async function
|
|
6023
|
+
async function yy(e, t) {
|
|
6019
6024
|
const n = j.create({ prefixUrl: t }), o = `cosmos/auth/v1beta1/account_info/${e}`;
|
|
6020
6025
|
for (let a = 1; a <= 24; a++)
|
|
6021
6026
|
try {
|
|
@@ -6053,7 +6058,7 @@ async function wa(e, t) {
|
|
|
6053
6058
|
function Tt() {
|
|
6054
6059
|
return lt();
|
|
6055
6060
|
}
|
|
6056
|
-
function
|
|
6061
|
+
function wy(e, t) {
|
|
6057
6062
|
const { customFee: n, onCompleted: o } = t ?? {}, a = Te(), { showNotification: r, updateNotification: i, hideNotification: c } = Eo(), { addHistoryItem: l } = ml(), d = Sn(), { route: m, values: u } = Tt(), { srcChainId: f, sender: p, recipient: g, cosmosWalletName: _ } = u, y = lc(), { requestTxSync: w, submitTxSync: v, waitForTxConfirmation: N } = Xe(), { find: b } = Lo(), C = ls(), x = ds(), $ = Je(f), T = Qn($), A = Uc(f), E = je(), { registryUrl: k } = J(), I = We(), q = oe(), { addReminder: D } = Tn(), B = dt();
|
|
6058
6063
|
return at({
|
|
6059
6064
|
mutationFn: async () => {
|
|
@@ -6129,7 +6134,7 @@ function yy(e, t) {
|
|
|
6129
6134
|
}));
|
|
6130
6135
|
try {
|
|
6131
6136
|
await K;
|
|
6132
|
-
const H = sr(m) === "OP Bridge withdrawal", R = H ? { success: !0, error: null } : await
|
|
6137
|
+
const H = sr(m) === "OP Bridge withdrawal", R = H ? { success: !0, error: null } : await ky(B, U, f);
|
|
6133
6138
|
if (!o && !R.success && R.error) {
|
|
6134
6139
|
const ze = R.error instanceof Error ? R.error.message : String(R.error);
|
|
6135
6140
|
r({
|
|
@@ -6139,17 +6144,17 @@ function yy(e, t) {
|
|
|
6139
6144
|
autoHide: !0
|
|
6140
6145
|
});
|
|
6141
6146
|
}
|
|
6142
|
-
const O = R.success, Ie =
|
|
6143
|
-
l(Ie.tx, Ie.details), o || i(
|
|
6147
|
+
const O = R.success, Ie = Ny({ txHash: U, srcChainId: f, route: m, values: u, recipient: g }, O);
|
|
6148
|
+
l(Ie.tx, Ie.details), o || i(by(c));
|
|
6144
6149
|
const mt = na(u, U);
|
|
6145
6150
|
if (d("Bridge Transaction Success", mt), H) {
|
|
6146
6151
|
const ze = I(f).metadata?.op_bridge_id;
|
|
6147
|
-
if (ze && !await
|
|
6152
|
+
if (ze && !await _y(
|
|
6148
6153
|
q.restUrl,
|
|
6149
6154
|
Number(ze),
|
|
6150
6155
|
m.dest_asset_denom
|
|
6151
6156
|
)) {
|
|
6152
|
-
const En =
|
|
6157
|
+
const En = Cy(Ie.tx, m, g);
|
|
6153
6158
|
D(Ie.tx, En);
|
|
6154
6159
|
}
|
|
6155
6160
|
}
|
|
@@ -6186,7 +6191,7 @@ function yy(e, t) {
|
|
|
6186
6191
|
}
|
|
6187
6192
|
});
|
|
6188
6193
|
}
|
|
6189
|
-
function
|
|
6194
|
+
function vy() {
|
|
6190
6195
|
const e = dt(), t = X(), n = ic(), { route: o, values: a } = Tt(), r = $t();
|
|
6191
6196
|
return at({
|
|
6192
6197
|
mutationFn: async () => {
|
|
@@ -6201,7 +6206,7 @@ function wy() {
|
|
|
6201
6206
|
dest_asset_denom: o.dest_asset_denom
|
|
6202
6207
|
}
|
|
6203
6208
|
}).json();
|
|
6204
|
-
await
|
|
6209
|
+
await yy(t, r(o.dest_asset_chain_id).rest);
|
|
6205
6210
|
const l = c.map(({ msg_type_url: u, msg: f }) => Dd.fromAmino({
|
|
6206
6211
|
type: es[u].aminoType,
|
|
6207
6212
|
value: JSON.parse(f)
|
|
@@ -6224,7 +6229,7 @@ function wy() {
|
|
|
6224
6229
|
}
|
|
6225
6230
|
});
|
|
6226
6231
|
}
|
|
6227
|
-
function
|
|
6232
|
+
function by(e) {
|
|
6228
6233
|
return {
|
|
6229
6234
|
type: "info",
|
|
6230
6235
|
title: "Transaction submitted",
|
|
@@ -6252,7 +6257,7 @@ function na(e, t) {
|
|
|
6252
6257
|
txHash: t
|
|
6253
6258
|
};
|
|
6254
6259
|
}
|
|
6255
|
-
function
|
|
6260
|
+
function Ny(e, t) {
|
|
6256
6261
|
const { txHash: n, srcChainId: o, route: a, values: r } = e, i = { chainId: o, txHash: n }, c = sr(a) === "OP Bridge withdrawal";
|
|
6257
6262
|
return {
|
|
6258
6263
|
tx: i,
|
|
@@ -6267,7 +6272,7 @@ function by(e, t) {
|
|
|
6267
6272
|
isOpWithdraw: c
|
|
6268
6273
|
};
|
|
6269
6274
|
}
|
|
6270
|
-
function
|
|
6275
|
+
function Cy(e, t, n) {
|
|
6271
6276
|
return {
|
|
6272
6277
|
...e,
|
|
6273
6278
|
recipient: Y(n).bech32,
|
|
@@ -6276,7 +6281,7 @@ function Ny(e, t, n) {
|
|
|
6276
6281
|
denom: t.dest_asset_denom
|
|
6277
6282
|
};
|
|
6278
6283
|
}
|
|
6279
|
-
async function
|
|
6284
|
+
async function ky(e, t, n) {
|
|
6280
6285
|
for (let r = 0; r <= 30; r++)
|
|
6281
6286
|
try {
|
|
6282
6287
|
return await e.post("v2/tx/track", { json: { tx_hash: t, chain_id: n } }).json(), { success: !0, error: null };
|
|
@@ -6327,13 +6332,13 @@ function sr(e) {
|
|
|
6327
6332
|
const { operations: t, dest_asset_denom: n } = e;
|
|
6328
6333
|
return rd("op_init_transfer", Xn(t)) && n === "uinit" ? "OP Bridge withdrawal" : "Skip";
|
|
6329
6334
|
}
|
|
6330
|
-
const
|
|
6331
|
-
success:
|
|
6332
|
-
error:
|
|
6333
|
-
},
|
|
6335
|
+
const Iy = "_success_t4dfk_1", xy = "_error_t4dfk_5", Vr = {
|
|
6336
|
+
success: Iy,
|
|
6337
|
+
error: xy
|
|
6338
|
+
}, Ay = ({ tx: e }) => {
|
|
6334
6339
|
const [t, n] = hl(e);
|
|
6335
6340
|
if (!t) throw new Error("Bridge history details not found");
|
|
6336
|
-
const { data: o } = _l(t), a = t.state ??
|
|
6341
|
+
const { data: o } = _l(t), a = t.state ?? Sy(o);
|
|
6337
6342
|
switch (Q(() => {
|
|
6338
6343
|
a !== "loading" && n((r) => {
|
|
6339
6344
|
if (!r) throw new Error("Bridge history details not found");
|
|
@@ -6348,7 +6353,7 @@ const ky = "_success_t4dfk_1", Iy = "_error_t4dfk_5", Vr = {
|
|
|
6348
6353
|
return /* @__PURE__ */ s(wt, { size: 14 });
|
|
6349
6354
|
}
|
|
6350
6355
|
};
|
|
6351
|
-
function
|
|
6356
|
+
function Sy(e) {
|
|
6352
6357
|
if (!e) return "loading";
|
|
6353
6358
|
switch (e.state) {
|
|
6354
6359
|
case "STATE_ABANDONED":
|
|
@@ -6361,23 +6366,23 @@ function Ay(e) {
|
|
|
6361
6366
|
return "loading";
|
|
6362
6367
|
}
|
|
6363
6368
|
}
|
|
6364
|
-
const
|
|
6365
|
-
link:
|
|
6366
|
-
header:
|
|
6367
|
-
title:
|
|
6368
|
-
date:
|
|
6369
|
-
explorer:
|
|
6370
|
-
fees:
|
|
6371
|
-
label:
|
|
6372
|
-
content:
|
|
6373
|
-
route:
|
|
6374
|
-
row:
|
|
6375
|
-
asset:
|
|
6376
|
-
amount:
|
|
6377
|
-
chain:
|
|
6378
|
-
account:
|
|
6379
|
-
arrow:
|
|
6380
|
-
},
|
|
6369
|
+
const $y = "_link_104m3_1", Ty = "_header_104m3_23", Ey = "_title_104m3_31", Ly = "_date_104m3_37", qy = "_explorer_104m3_41", Py = "_fees_104m3_57", My = "_label_104m3_65", Dy = "_content_104m3_69", Ry = "_route_104m3_75", By = "_row_104m3_80", Uy = "_asset_104m3_86", Fy = "_amount_104m3_94", Oy = "_chain_104m3_99", Vy = "_account_104m3_108", Ky = "_arrow_104m3_115", xe = {
|
|
6370
|
+
link: $y,
|
|
6371
|
+
header: Ty,
|
|
6372
|
+
title: Ey,
|
|
6373
|
+
date: Ly,
|
|
6374
|
+
explorer: qy,
|
|
6375
|
+
fees: Py,
|
|
6376
|
+
label: My,
|
|
6377
|
+
content: Dy,
|
|
6378
|
+
route: Ry,
|
|
6379
|
+
row: By,
|
|
6380
|
+
asset: Uy,
|
|
6381
|
+
amount: Fy,
|
|
6382
|
+
chain: Oy,
|
|
6383
|
+
account: Vy,
|
|
6384
|
+
arrow: Ky
|
|
6385
|
+
}, jy = ({ tx: e }) => {
|
|
6381
6386
|
const [t, n] = hl(e);
|
|
6382
6387
|
if (!t) throw new Error("Bridge history details not found");
|
|
6383
6388
|
const { chainId: o, txHash: a, route: r, values: i, timestamp: c, tracked: l } = t, { data: d } = gl(t), { address: m = "", connector: u } = tn(), { find: f } = Lo();
|
|
@@ -6423,7 +6428,7 @@ const Sy = "_link_104m3_1", $y = "_header_104m3_23", Ty = "_title_104m3_31", Ey
|
|
|
6423
6428
|
}, [E]), I = /* @__PURE__ */ h(W, { children: [
|
|
6424
6429
|
/* @__PURE__ */ h("header", { className: xe.header, children: [
|
|
6425
6430
|
/* @__PURE__ */ h("div", { className: xe.title, children: [
|
|
6426
|
-
l ? /* @__PURE__ */ s(
|
|
6431
|
+
l ? /* @__PURE__ */ s(Ay, { tx: e }) : /* @__PURE__ */ s(wt, { size: 14 }),
|
|
6427
6432
|
/* @__PURE__ */ s("div", { className: xe.date, children: Ni(new Date(c), "h:mm a") })
|
|
6428
6433
|
] }),
|
|
6429
6434
|
/* @__PURE__ */ h("div", { className: xe.explorer, children: [
|
|
@@ -6457,15 +6462,15 @@ const Sy = "_link_104m3_1", $y = "_header_104m3_23", Ty = "_title_104m3_31", Ey
|
|
|
6457
6462
|
return /* @__PURE__ */ s(To, { chainId: o, txHash: a, className: xe.link, children: I });
|
|
6458
6463
|
const q = new URLSearchParams({ tx_hash: a, chain_id: o }), D = new URL(`?${q.toString()}`, "https://explorer.skip.build");
|
|
6459
6464
|
return /* @__PURE__ */ s("a", { href: D.toString(), className: xe.link, target: "_blank", children: I });
|
|
6460
|
-
},
|
|
6461
|
-
history:
|
|
6462
|
-
header:
|
|
6463
|
-
checkbox:
|
|
6464
|
-
groups:
|
|
6465
|
-
dateGroup:
|
|
6466
|
-
dateHeader:
|
|
6467
|
-
list:
|
|
6468
|
-
},
|
|
6465
|
+
}, Wy = "_history_13u9z_1", zy = "_header_13u9z_5", Hy = "_checkbox_13u9z_9", Gy = "_groups_13u9z_13", Qy = "_dateGroup_13u9z_21", Yy = "_dateHeader_13u9z_26", Zy = "_list_13u9z_32", zt = {
|
|
6466
|
+
history: Wy,
|
|
6467
|
+
header: zy,
|
|
6468
|
+
checkbox: Hy,
|
|
6469
|
+
groups: Gy,
|
|
6470
|
+
dateGroup: Qy,
|
|
6471
|
+
dateHeader: Yy,
|
|
6472
|
+
list: Zy
|
|
6473
|
+
}, Jy = () => {
|
|
6469
6474
|
const { initiaAddress: e, hexAddress: t } = Xe(), { history: n, getHistoryDetails: o } = ml(), a = n.filter((p) => o(p)), r = a.filter((p) => {
|
|
6470
6475
|
const g = o(p);
|
|
6471
6476
|
if (!g) return !1;
|
|
@@ -6478,7 +6483,7 @@ const Sy = "_link_104m3_1", $y = "_header_104m3_23", Ty = "_title_104m3_31", Ey
|
|
|
6478
6483
|
}), [u, o]);
|
|
6479
6484
|
return /* @__PURE__ */ s(Nt, { title: "Bridge/Swap activity", children: /* @__PURE__ */ h("div", { className: zt.history, children: [
|
|
6480
6485
|
a.length > 0 && a.length !== r.length && /* @__PURE__ */ s("header", { className: zt.header, children: /* @__PURE__ */ s(
|
|
6481
|
-
|
|
6486
|
+
ly,
|
|
6482
6487
|
{
|
|
6483
6488
|
checked: l,
|
|
6484
6489
|
onClick: d,
|
|
@@ -6488,7 +6493,7 @@ const Sy = "_link_104m3_1", $y = "_header_104m3_23", Ty = "_title_104m3_31", Ey
|
|
|
6488
6493
|
) }),
|
|
6489
6494
|
m.length === 0 ? /* @__PURE__ */ s(ge, { children: "No bridge/swap activity" }) : /* @__PURE__ */ s("div", { className: zt.groups, children: Object.entries(f).map(([p, g]) => /* @__PURE__ */ h("div", { className: zt.dateGroup, children: [
|
|
6490
6495
|
/* @__PURE__ */ s("div", { className: zt.dateHeader, children: p }),
|
|
6491
|
-
/* @__PURE__ */ s("div", { className: zt.list, children: g.map((_) => /* @__PURE__ */ s(he, { children: /* @__PURE__ */ s(
|
|
6496
|
+
/* @__PURE__ */ s("div", { className: zt.list, children: g.map((_) => /* @__PURE__ */ s(he, { children: /* @__PURE__ */ s(jy, { tx: _ }) }, _.txHash)) })
|
|
6492
6497
|
] }, p)) }),
|
|
6493
6498
|
m.length > i * Fr ? /* @__PURE__ */ s(dl, { onClick: () => c((p) => p + 1) }) : n.length >= to && /* @__PURE__ */ h(ge, { children: [
|
|
6494
6499
|
"Only the latest ",
|
|
@@ -6497,7 +6502,7 @@ const Sy = "_link_104m3_1", $y = "_header_104m3_23", Ty = "_title_104m3_31", Ey
|
|
|
6497
6502
|
] })
|
|
6498
6503
|
] }) });
|
|
6499
6504
|
}, or = ({ tx: e, fee: t, onCompleted: n, confirmMessage: o, error: a }) => {
|
|
6500
|
-
const { mutate: r, isPending: i } =
|
|
6505
|
+
const { mutate: r, isPending: i } = wy(e, { customFee: t, onCompleted: n });
|
|
6501
6506
|
return /* @__PURE__ */ s(Ne, { children: /* @__PURE__ */ s(
|
|
6502
6507
|
ie.White,
|
|
6503
6508
|
{
|
|
@@ -6507,17 +6512,17 @@ const Sy = "_link_104m3_1", $y = "_header_104m3_23", Ty = "_title_104m3_31", Ey
|
|
|
6507
6512
|
children: a || o || "Confirm"
|
|
6508
6513
|
}
|
|
6509
6514
|
) });
|
|
6510
|
-
},
|
|
6511
|
-
content:
|
|
6512
|
-
info:
|
|
6513
|
-
arrow:
|
|
6514
|
-
divider:
|
|
6515
|
-
type:
|
|
6516
|
-
asset:
|
|
6517
|
-
amount:
|
|
6518
|
-
lower:
|
|
6519
|
-
chain:
|
|
6520
|
-
address:
|
|
6515
|
+
}, Xy = "_content_1hzj2_1", e0 = "_info_1hzj2_6", t0 = "_arrow_1hzj2_11", n0 = "_divider_1hzj2_19", s0 = "_type_1hzj2_27", o0 = "_asset_1hzj2_47", a0 = "_amount_1hzj2_55", r0 = "_lower_1hzj2_60", i0 = "_chain_1hzj2_66", c0 = "_address_1hzj2_72", Qe = {
|
|
6516
|
+
content: Xy,
|
|
6517
|
+
info: e0,
|
|
6518
|
+
arrow: t0,
|
|
6519
|
+
divider: n0,
|
|
6520
|
+
type: s0,
|
|
6521
|
+
asset: o0,
|
|
6522
|
+
amount: a0,
|
|
6523
|
+
lower: r0,
|
|
6524
|
+
chain: i0,
|
|
6525
|
+
address: c0
|
|
6521
6526
|
}, yl = (e) => {
|
|
6522
6527
|
const { source: t, label: n, amount: o, denom: a, chainId: r, address: i, walletIcon: c } = e, { symbol: l = Be(a), decimals: d = 0, logo_uri: m = Pa } = e, { chain_name: u, pretty_name: f, ...p } = Je(r);
|
|
6523
6528
|
return /* @__PURE__ */ h("div", { children: [
|
|
@@ -6551,14 +6556,14 @@ const Sy = "_link_104m3_1", $y = "_header_104m3_23", Ty = "_title_104m3_31", Ey
|
|
|
6551
6556
|
return /* @__PURE__ */ s(yl, { ...e, ...t });
|
|
6552
6557
|
};
|
|
6553
6558
|
yn.Placeholder = yl;
|
|
6554
|
-
const
|
|
6555
|
-
root:
|
|
6556
|
-
flexEnd:
|
|
6557
|
-
toggle:
|
|
6558
|
-
route:
|
|
6559
|
-
content:
|
|
6559
|
+
const l0 = "_root_1hbar_1", d0 = "_flexEnd_1hbar_6", u0 = "_toggle_1hbar_11", m0 = "_route_1hbar_36", h0 = "_content_1hbar_43", Bn = {
|
|
6560
|
+
root: l0,
|
|
6561
|
+
flexEnd: d0,
|
|
6562
|
+
toggle: u0,
|
|
6563
|
+
route: m0,
|
|
6564
|
+
content: h0
|
|
6560
6565
|
};
|
|
6561
|
-
function
|
|
6566
|
+
function f0(e) {
|
|
6562
6567
|
const t = ({ name: n }) => n === "initia-dex" ? "Initia DEX" : du(Xn(n?.split("-") ?? []) ?? "");
|
|
6563
6568
|
if ("transfer" in e)
|
|
6564
6569
|
return { label: "Bridge via IBC", ...e, ...e.transfer };
|
|
@@ -6590,7 +6595,7 @@ function h0(e) {
|
|
|
6590
6595
|
return { label: "Bridge via LayerZero", ...e, ...e.layer_zero_transfer };
|
|
6591
6596
|
throw new Error("Unknown operation type");
|
|
6592
6597
|
}
|
|
6593
|
-
const
|
|
6598
|
+
const p0 = ({ addressList: e }) => {
|
|
6594
6599
|
const { values: t, route: n } = Tt(), { source_asset_denom: o, source_asset_chain_id: a, amount_in: r, operations: i } = n, c = Bs(n.required_chain_addresses, e), { find: l } = Lo(), { connector: d, address: m = "" } = tn(), [u, f] = co(!1), p = i.length > 1, g = /* @__PURE__ */ s(
|
|
6595
6600
|
Z,
|
|
6596
6601
|
{
|
|
@@ -6614,7 +6619,7 @@ const f0 = ({ addressList: e }) => {
|
|
|
6614
6619
|
address: q,
|
|
6615
6620
|
walletIcon: y(q)
|
|
6616
6621
|
};
|
|
6617
|
-
}, v = i.map(
|
|
6622
|
+
}, v = i.map(f0).map(w), N = v.slice(0, -1), b = v[v.length - 1];
|
|
6618
6623
|
return /* @__PURE__ */ h(ue.Root, { className: Bn.root, open: u, onOpenChange: f, children: [
|
|
6619
6624
|
p && /* @__PURE__ */ s("div", { className: Bn.flexEnd, children: /* @__PURE__ */ s(ue.Trigger, { className: Bn.toggle, children: u ? /* @__PURE__ */ h(W, { children: [
|
|
6620
6625
|
/* @__PURE__ */ s(nu, { size: 12 }),
|
|
@@ -6756,7 +6761,7 @@ const f0 = ({ addressList: e }) => {
|
|
|
6756
6761
|
})();
|
|
6757
6762
|
}, [a, r, JSON.stringify(e), t, o]), m ? /* @__PURE__ */ s(wl, { error: m }) : l || !i ? /* @__PURE__ */ s(Ne, { children: /* @__PURE__ */ s(ie.White, { loading: "Fetching messages..." }) }) : n(i);
|
|
6758
6763
|
}, Nl = ({ children: e }) => {
|
|
6759
|
-
const { route: t } = Tt(), n =
|
|
6764
|
+
const { route: t } = Tt(), n = vy();
|
|
6760
6765
|
return t.required_op_hook && !n.data ? /* @__PURE__ */ s(Ne, { extra: /* @__PURE__ */ s(ye, { level: "error", children: n.error?.message }), children: /* @__PURE__ */ s(
|
|
6761
6766
|
ie.White,
|
|
6762
6767
|
{
|
|
@@ -6765,8 +6770,8 @@ const f0 = ({ addressList: e }) => {
|
|
|
6765
6770
|
children: "Authorize conversion"
|
|
6766
6771
|
}
|
|
6767
6772
|
) }) : e(n.data);
|
|
6768
|
-
},
|
|
6769
|
-
/* @__PURE__ */ s(
|
|
6773
|
+
}, g0 = () => /* @__PURE__ */ s(Nt, { title: "Route preview", children: /* @__PURE__ */ s(vl, { children: (e) => /* @__PURE__ */ h(W, { children: [
|
|
6774
|
+
/* @__PURE__ */ s(p0, { addressList: e }),
|
|
6770
6775
|
/* @__PURE__ */ s(Nl, { children: (t) => /* @__PURE__ */ s(bl, { addressList: e, signedOpHook: t, children: (n) => /* @__PURE__ */ s(ar, { tx: n, children: /* @__PURE__ */ s(or, { tx: n }) }) }) })
|
|
6771
6776
|
] }) }) }), Cl = Ut(
|
|
6772
6777
|
null
|
|
@@ -6774,10 +6779,10 @@ const f0 = ({ addressList: e }) => {
|
|
|
6774
6779
|
function Mo() {
|
|
6775
6780
|
return vt(Cl);
|
|
6776
6781
|
}
|
|
6777
|
-
const
|
|
6778
|
-
button:
|
|
6779
|
-
claimed:
|
|
6780
|
-
},
|
|
6782
|
+
const _0 = "_button_17r1o_1", y0 = "_claimed_17r1o_24", Kr = {
|
|
6783
|
+
button: _0,
|
|
6784
|
+
claimed: y0
|
|
6785
|
+
}, w0 = () => {
|
|
6781
6786
|
const { withdrawalTx: e } = Mo(), {
|
|
6782
6787
|
bridge_id: t,
|
|
6783
6788
|
sequence: n,
|
|
@@ -6788,7 +6793,7 @@ const g0 = "_button_17r1o_1", _0 = "_claimed_17r1o_24", Kr = {
|
|
|
6788
6793
|
from: c,
|
|
6789
6794
|
to: l,
|
|
6790
6795
|
version: d
|
|
6791
|
-
} = e, m = oe(), u = X(), { requestTxSync: f, waitForTxConfirmation: p } = Xe(), g =
|
|
6796
|
+
} = e, m = oe(), u = X(), { requestTxSync: f, waitForTxConfirmation: p } = Xe(), g = gy(e), _ = it(pl(e)), y = fl(e, _), w = je(), { mutate: v, isPending: N } = at({
|
|
6792
6797
|
mutationFn: async () => {
|
|
6793
6798
|
if (!g) throw new Error("Output not found");
|
|
6794
6799
|
const { last_block_hash: b } = g;
|
|
@@ -6825,8 +6830,8 @@ const g0 = "_button_17r1o_1", _0 = "_claimed_17r1o_24", Kr = {
|
|
|
6825
6830
|
/* @__PURE__ */ s(mo, { size: 14 }),
|
|
6826
6831
|
/* @__PURE__ */ s("span", { children: "Claimed" })
|
|
6827
6832
|
] }) : /* @__PURE__ */ s("button", { className: Kr.button, onClick: () => v(), disabled: N, children: "Claim" });
|
|
6828
|
-
},
|
|
6829
|
-
const { withdrawalTx: t } = Mo(), n =
|
|
6833
|
+
}, v0 = ({ children: e }) => {
|
|
6834
|
+
const { withdrawalTx: t } = Mo(), n = my(t.bridge_id), o = py(t), a = S(() => {
|
|
6830
6835
|
if (!o) return null;
|
|
6831
6836
|
const { bridge_config: r } = n, { output_proposal: i } = o;
|
|
6832
6837
|
return Od(
|
|
@@ -6835,7 +6840,7 @@ const g0 = "_button_17r1o_1", _0 = "_claimed_17r1o_24", Kr = {
|
|
|
6835
6840
|
);
|
|
6836
6841
|
}, [n, o]);
|
|
6837
6842
|
return e(a);
|
|
6838
|
-
}, kl = 1e3,
|
|
6843
|
+
}, kl = 1e3, b0 = 60, N0 = 60, C0 = 24, va = kl * b0, ba = va * N0, jr = ba * C0, k0 = ({ date: e }) => {
|
|
6839
6844
|
const t = ve(() => {
|
|
6840
6845
|
const d = (/* @__PURE__ */ new Date()).getTime(), u = e.getTime() - d;
|
|
6841
6846
|
if (u <= 0)
|
|
@@ -6860,25 +6865,25 @@ const g0 = "_button_17r1o_1", _0 = "_claimed_17r1o_24", Kr = {
|
|
|
6860
6865
|
a(l),
|
|
6861
6866
|
"s"
|
|
6862
6867
|
] }) });
|
|
6863
|
-
},
|
|
6864
|
-
container:
|
|
6865
|
-
title:
|
|
6866
|
-
},
|
|
6868
|
+
}, I0 = "_container_1lz3w_1", x0 = "_title_1lz3w_5", Wr = {
|
|
6869
|
+
container: I0,
|
|
6870
|
+
title: x0
|
|
6871
|
+
}, A0 = ({ date: e }) => /* @__PURE__ */ h("div", { className: Wr.container, children: [
|
|
6867
6872
|
/* @__PURE__ */ s("div", { className: Wr.title, children: "Claimable in" }),
|
|
6868
|
-
/* @__PURE__ */ s(
|
|
6869
|
-
] }),
|
|
6870
|
-
container:
|
|
6871
|
-
icon:
|
|
6872
|
-
},
|
|
6873
|
+
/* @__PURE__ */ s(k0, { date: e })
|
|
6874
|
+
] }), S0 = "_container_1oldz_1", $0 = "_icon_1oldz_7", zr = {
|
|
6875
|
+
container: S0,
|
|
6876
|
+
icon: $0
|
|
6877
|
+
}, T0 = "Withdrawal will begin within an hour", Hr = () => {
|
|
6873
6878
|
const e = So();
|
|
6874
6879
|
return /* @__PURE__ */ h("div", { className: zr.container, children: [
|
|
6875
6880
|
/* @__PURE__ */ s("span", { children: "In progress" }),
|
|
6876
|
-
!e && /* @__PURE__ */ s(ys, { label:
|
|
6881
|
+
!e && /* @__PURE__ */ s(ys, { label: T0, children: /* @__PURE__ */ s("span", { className: zr.icon, children: /* @__PURE__ */ s($a, { size: 12 }) }) })
|
|
6877
6882
|
] });
|
|
6878
|
-
},
|
|
6879
|
-
const { withdrawalTx: t } = Mo(), n =
|
|
6883
|
+
}, E0 = ({ children: e }) => {
|
|
6884
|
+
const { withdrawalTx: t } = Mo(), n = fy(t.bridge_id), o = t.output_index > Number(n?.output_index);
|
|
6880
6885
|
return e(o);
|
|
6881
|
-
},
|
|
6886
|
+
}, L0 = ({ date: e, children: t }) => {
|
|
6882
6887
|
const { chainId: n, withdrawalTx: o } = Mo(), a = it(pl(o)), r = fl(o, a), { setReminder: i, removeReminder: c } = Tn();
|
|
6883
6888
|
return Q(() => {
|
|
6884
6889
|
const l = { chainId: n, txHash: o.tx_hash };
|
|
@@ -6892,11 +6897,11 @@ const g0 = "_button_17r1o_1", _0 = "_claimed_17r1o_24", Kr = {
|
|
|
6892
6897
|
dismissed: Aa(e.getTime()) ? !0 : void 0
|
|
6893
6898
|
});
|
|
6894
6899
|
}, [n, r, e, c, i, o]), t;
|
|
6895
|
-
},
|
|
6896
|
-
asset:
|
|
6897
|
-
info:
|
|
6898
|
-
symbol:
|
|
6899
|
-
},
|
|
6900
|
+
}, q0 = () => /* @__PURE__ */ s(E0, { children: (e) => e ? /* @__PURE__ */ s(Hr, {}) : /* @__PURE__ */ s(v0, { children: (t) => t ? /* @__PURE__ */ s(L0, { date: t, children: ts(t) ? /* @__PURE__ */ s(A0, { date: t }) : /* @__PURE__ */ s(w0, {}) }) : /* @__PURE__ */ s(Hr, {}) }) }), P0 = "_asset_6h8u2_1", M0 = "_info_6h8u2_7", D0 = "_symbol_6h8u2_11", sa = {
|
|
6901
|
+
asset: P0,
|
|
6902
|
+
info: M0,
|
|
6903
|
+
symbol: D0
|
|
6904
|
+
}, R0 = ({ amount: e, denom: t }) => {
|
|
6900
6905
|
const n = oe(), o = Mi(t, n), { symbol: a, logoUrl: r, decimals: i } = o;
|
|
6901
6906
|
return /* @__PURE__ */ h("div", { className: sa.asset, children: [
|
|
6902
6907
|
/* @__PURE__ */ s(Z, { src: r, width: 32, height: 32, logo: !0 }),
|
|
@@ -6905,12 +6910,12 @@ const g0 = "_button_17r1o_1", _0 = "_claimed_17r1o_24", Kr = {
|
|
|
6905
6910
|
/* @__PURE__ */ s("span", { className: sa.symbol, children: a })
|
|
6906
6911
|
] })
|
|
6907
6912
|
] });
|
|
6908
|
-
},
|
|
6909
|
-
item:
|
|
6910
|
-
},
|
|
6913
|
+
}, B0 = "_item_km5w2_1", U0 = {
|
|
6914
|
+
item: B0
|
|
6915
|
+
}, F0 = ({ chain: e }) => {
|
|
6911
6916
|
const t = e.metadata?.executor_uri;
|
|
6912
6917
|
if (!t) throw new Error("Executor URL is not defined");
|
|
6913
|
-
const { data: n, fetchNextPage: o, hasNextPage: a, isFetching: r } =
|
|
6918
|
+
const { data: n, fetchNextPage: o, hasNextPage: a, isFetching: r } = hy(t), i = S(() => n?.pages.flat() ?? [], [n]), { syncReminders: c } = Tn();
|
|
6914
6919
|
return Q(() => {
|
|
6915
6920
|
const l = i.map((d) => ({
|
|
6916
6921
|
chainId: e.chainId,
|
|
@@ -6920,17 +6925,17 @@ const g0 = "_button_17r1o_1", _0 = "_claimed_17r1o_24", Kr = {
|
|
|
6920
6925
|
}, [e.chainId, i, c]), i.length ? /* @__PURE__ */ h(W, { children: [
|
|
6921
6926
|
i.map((l) => {
|
|
6922
6927
|
const { amount: d } = l;
|
|
6923
|
-
return /* @__PURE__ */ h("div", { className:
|
|
6924
|
-
/* @__PURE__ */ s(
|
|
6925
|
-
/* @__PURE__ */ s(he, { suspenseFallback: null, children: /* @__PURE__ */ s(Cl.Provider, { value: { chainId: e.chainId, withdrawalTx: l }, children: /* @__PURE__ */ s(
|
|
6928
|
+
return /* @__PURE__ */ h("div", { className: U0.item, children: [
|
|
6929
|
+
/* @__PURE__ */ s(R0, { ...d }),
|
|
6930
|
+
/* @__PURE__ */ s(he, { suspenseFallback: null, children: /* @__PURE__ */ s(Cl.Provider, { value: { chainId: e.chainId, withdrawalTx: l }, children: /* @__PURE__ */ s(q0, {}) }) })
|
|
6926
6931
|
] }, l.sequence);
|
|
6927
6932
|
}),
|
|
6928
6933
|
a && /* @__PURE__ */ s(dl, { onClick: () => o(), disabled: r })
|
|
6929
6934
|
] }) : /* @__PURE__ */ s(ge, { children: "No withdrawals" });
|
|
6930
|
-
},
|
|
6931
|
-
content:
|
|
6932
|
-
title:
|
|
6933
|
-
},
|
|
6935
|
+
}, O0 = "_content_dj1qm_1", V0 = "_title_dj1qm_5", Gr = {
|
|
6936
|
+
content: O0,
|
|
6937
|
+
title: V0
|
|
6938
|
+
}, K0 = () => {
|
|
6934
6939
|
const { chainId: e } = lt(), t = le(), n = on(), [o, a] = V(
|
|
6935
6940
|
e ?? (n.metadata?.is_l1 ? "" : n.chainId)
|
|
6936
6941
|
), r = We(), { reminders: i } = Tn(), c = o ? r(o) : void 0;
|
|
@@ -6946,54 +6951,54 @@ const g0 = "_button_17r1o_1", _0 = "_claimed_17r1o_24", Kr = {
|
|
|
6946
6951
|
),
|
|
6947
6952
|
/* @__PURE__ */ s("div", { className: Gr.content, children: c ? /* @__PURE__ */ h(W, { children: [
|
|
6948
6953
|
/* @__PURE__ */ s("h2", { className: Gr.title, children: c.name }),
|
|
6949
|
-
/* @__PURE__ */ s(he, { children: /* @__PURE__ */ s(
|
|
6954
|
+
/* @__PURE__ */ s(he, { children: /* @__PURE__ */ s(F0, { chain: c }) }, o)
|
|
6950
6955
|
] }) : /* @__PURE__ */ s(ye, { level: "info", children: "Select a chain to display your OP Bridge withdrawals" }) })
|
|
6951
6956
|
] });
|
|
6952
|
-
}, no = (e) => e.toLowerCase().trim().replace(/\s+(wallet|extension|app)$/, ""),
|
|
6953
|
-
const t = await j.get(
|
|
6954
|
-
return Object.values(n ?? {}).filter(
|
|
6955
|
-
},
|
|
6957
|
+
}, no = (e) => e.toLowerCase().trim().replace(/\s+(wallet|extension|app)$/, ""), j0 = "5722e7dffb709492cf5312446ceeff73", W0 = `https://explorer-api.walletconnect.com/v3/wallets?projectId=${j0}`, Il = ["walletconnect-wallets"], z0 = (e) => e !== null && typeof e == "object" && "id" in e && typeof e.id == "string" && "name" in e && typeof e.name == "string", xl = async (e) => {
|
|
6958
|
+
const t = await j.get(W0, { signal: e }).json(), n = t !== null && typeof t == "object" && "listings" in t ? t.listings : t;
|
|
6959
|
+
return Object.values(n ?? {}).filter(z0);
|
|
6960
|
+
}, H0 = () => _e({
|
|
6956
6961
|
queryKey: Il,
|
|
6957
6962
|
queryFn: ({ signal: e }) => xl(e),
|
|
6958
6963
|
staleTime: F.INFINITY,
|
|
6959
6964
|
gcTime: F.INFINITY,
|
|
6960
6965
|
retry: 2
|
|
6961
|
-
}),
|
|
6962
|
-
page:
|
|
6963
|
-
pageTop:
|
|
6964
|
-
backButtonFixed:
|
|
6965
|
-
listItem:
|
|
6966
|
-
socialButton:
|
|
6967
|
-
arrowIcon:
|
|
6968
|
-
searchInputUnderline:
|
|
6969
|
-
header:
|
|
6970
|
-
title:
|
|
6971
|
-
headerSpacer:
|
|
6972
|
-
icon:
|
|
6973
|
-
installedText:
|
|
6974
|
-
divider:
|
|
6975
|
-
dividerText:
|
|
6976
|
-
loading:
|
|
6977
|
-
socialIcons:
|
|
6978
|
-
socialText:
|
|
6979
|
-
searchWrapper:
|
|
6980
|
-
scrollable:
|
|
6981
|
-
list:
|
|
6982
|
-
listIconWrapper:
|
|
6983
|
-
moreIconSmall:
|
|
6984
|
-
externalLinkIcon:
|
|
6985
|
-
listName:
|
|
6986
|
-
listNameMuted:
|
|
6987
|
-
recentBadge:
|
|
6988
|
-
learnMoreLink:
|
|
6989
|
-
},
|
|
6966
|
+
}), G0 = "_page_13y8q_1", Q0 = "_pageTop_13y8q_19", Y0 = "_backButtonFixed_13y8q_63", Z0 = "_listItem_13y8q_64", J0 = "_socialButton_13y8q_65", X0 = "_arrowIcon_13y8q_66", e2 = "_searchInputUnderline_13y8q_67", t2 = "_header_13y8q_72", n2 = "_title_13y8q_81", s2 = "_headerSpacer_13y8q_116", o2 = "_icon_13y8q_120", a2 = "_installedText_13y8q_124", r2 = "_divider_13y8q_131", i2 = "_dividerText_13y8q_152", c2 = "_loading_13y8q_193", l2 = "_socialIcons_13y8q_198", d2 = "_socialText_13y8q_204", u2 = "_searchWrapper_13y8q_214", m2 = "_scrollable_13y8q_248", h2 = "_list_13y8q_64", f2 = "_listIconWrapper_13y8q_332", p2 = "_moreIconSmall_13y8q_342", g2 = "_externalLinkIcon_13y8q_364", _2 = "_listName_13y8q_368", y2 = "_listNameMuted_13y8q_381", w2 = "_recentBadge_13y8q_394", v2 = "_learnMoreLink_13y8q_408", P = {
|
|
6967
|
+
page: G0,
|
|
6968
|
+
pageTop: Q0,
|
|
6969
|
+
backButtonFixed: Y0,
|
|
6970
|
+
listItem: Z0,
|
|
6971
|
+
socialButton: J0,
|
|
6972
|
+
arrowIcon: X0,
|
|
6973
|
+
searchInputUnderline: e2,
|
|
6974
|
+
header: t2,
|
|
6975
|
+
title: n2,
|
|
6976
|
+
headerSpacer: s2,
|
|
6977
|
+
icon: o2,
|
|
6978
|
+
installedText: a2,
|
|
6979
|
+
divider: r2,
|
|
6980
|
+
dividerText: i2,
|
|
6981
|
+
loading: c2,
|
|
6982
|
+
socialIcons: l2,
|
|
6983
|
+
socialText: d2,
|
|
6984
|
+
searchWrapper: u2,
|
|
6985
|
+
scrollable: m2,
|
|
6986
|
+
list: h2,
|
|
6987
|
+
listIconWrapper: f2,
|
|
6988
|
+
moreIconSmall: p2,
|
|
6989
|
+
externalLinkIcon: g2,
|
|
6990
|
+
listName: _2,
|
|
6991
|
+
listNameMuted: y2,
|
|
6992
|
+
recentBadge: w2,
|
|
6993
|
+
learnMoreLink: v2
|
|
6994
|
+
}, b2 = (e) => {
|
|
6990
6995
|
try {
|
|
6991
6996
|
const t = new URL(e.trim());
|
|
6992
6997
|
return t.protocol === "https:" && !t.username && !t.password;
|
|
6993
6998
|
} catch {
|
|
6994
6999
|
return !1;
|
|
6995
7000
|
}
|
|
6996
|
-
},
|
|
7001
|
+
}, N2 = ({
|
|
6997
7002
|
walletConnectors: e,
|
|
6998
7003
|
isPending: t,
|
|
6999
7004
|
pendingConnectorId: n,
|
|
@@ -7006,7 +7011,7 @@ const g0 = "_button_17r1o_1", _0 = "_claimed_17r1o_24", Kr = {
|
|
|
7006
7011
|
isError: d,
|
|
7007
7012
|
isLoading: m,
|
|
7008
7013
|
isFetching: u
|
|
7009
|
-
} =
|
|
7014
|
+
} = H0(), f = m || u && l.length === 0, p = S(() => {
|
|
7010
7015
|
if (!i) return e;
|
|
7011
7016
|
const _ = i.toLowerCase();
|
|
7012
7017
|
return e.filter((y) => y.name.toLowerCase().includes(_));
|
|
@@ -7059,7 +7064,7 @@ const g0 = "_button_17r1o_1", _0 = "_claimed_17r1o_24", Kr = {
|
|
|
7059
7064
|
/* @__PURE__ */ s("span", { className: P.listNameMuted, children: "Loading more wallets..." })
|
|
7060
7065
|
] }),
|
|
7061
7066
|
g.map((_) => {
|
|
7062
|
-
const y = _.image_url?.sm || _.image_url?.md || _.image_url?.lg, w = y &&
|
|
7067
|
+
const y = _.image_url?.sm || _.image_url?.md || _.image_url?.lg, w = y && b2(y) ? y : void 0;
|
|
7063
7068
|
return /* @__PURE__ */ h(
|
|
7064
7069
|
"button",
|
|
7065
7070
|
{
|
|
@@ -7087,11 +7092,11 @@ const g0 = "_button_17r1o_1", _0 = "_claimed_17r1o_24", Kr = {
|
|
|
7087
7092
|
d && /* @__PURE__ */ s(ye, { level: "error", children: "Couldn't load additional wallets." })
|
|
7088
7093
|
] }) })
|
|
7089
7094
|
] });
|
|
7090
|
-
},
|
|
7095
|
+
}, C2 = () => /* @__PURE__ */ h("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", "aria-hidden": "true", children: [
|
|
7091
7096
|
/* @__PURE__ */ s("circle", { cx: "4", cy: "8", r: "1.5" }),
|
|
7092
7097
|
/* @__PURE__ */ s("circle", { cx: "8", cy: "8", r: "1.5" }),
|
|
7093
7098
|
/* @__PURE__ */ s("circle", { cx: "12", cy: "8", r: "1.5" })
|
|
7094
|
-
] }),
|
|
7099
|
+
] }), k2 = () => /* @__PURE__ */ h("svg", { width: "20", height: "20", viewBox: "0 0 24 24", "aria-hidden": "true", children: [
|
|
7095
7100
|
/* @__PURE__ */ s(
|
|
7096
7101
|
"path",
|
|
7097
7102
|
{
|
|
@@ -7120,7 +7125,7 @@ const g0 = "_button_17r1o_1", _0 = "_claimed_17r1o_24", Kr = {
|
|
|
7120
7125
|
d: "M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z"
|
|
7121
7126
|
}
|
|
7122
7127
|
)
|
|
7123
|
-
] }),
|
|
7128
|
+
] }), I2 = () => /* @__PURE__ */ s("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ s("path", { d: "M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z" }) }), x2 = () => /* @__PURE__ */ h(
|
|
7124
7129
|
"svg",
|
|
7125
7130
|
{
|
|
7126
7131
|
width: "20",
|
|
@@ -7135,7 +7140,7 @@ const g0 = "_button_17r1o_1", _0 = "_claimed_17r1o_24", Kr = {
|
|
|
7135
7140
|
/* @__PURE__ */ s("path", { d: "m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7" })
|
|
7136
7141
|
]
|
|
7137
7142
|
}
|
|
7138
|
-
),
|
|
7143
|
+
), A2 = [
|
|
7139
7144
|
{
|
|
7140
7145
|
id: "io.rabby",
|
|
7141
7146
|
name: "Rabby",
|
|
@@ -7166,7 +7171,7 @@ const g0 = "_button_17r1o_1", _0 = "_claimed_17r1o_24", Kr = {
|
|
|
7166
7171
|
icon: "https://assets.initia.xyz/images/wallets/MetaMask.webp",
|
|
7167
7172
|
url: "https://metamask.io"
|
|
7168
7173
|
}
|
|
7169
|
-
],
|
|
7174
|
+
], S2 = ({
|
|
7170
7175
|
walletConnectors: e,
|
|
7171
7176
|
privyConnector: t,
|
|
7172
7177
|
isPending: n,
|
|
@@ -7178,7 +7183,7 @@ const g0 = "_button_17r1o_1", _0 = "_claimed_17r1o_24", Kr = {
|
|
|
7178
7183
|
}) => {
|
|
7179
7184
|
const l = e.filter((g) => !("ready" in g) || !!g.ready), d = l.slice(0, 5), m = new Set(l.map((g) => g.id)), u = new Set(
|
|
7180
7185
|
l.map((g) => no(g.name))
|
|
7181
|
-
), f = Math.max(0, 5 - d.length), p =
|
|
7186
|
+
), f = Math.max(0, 5 - d.length), p = A2.filter(
|
|
7182
7187
|
(g) => !m.has(g.id) && !u.has(no(g.name))
|
|
7183
7188
|
).slice(0, f);
|
|
7184
7189
|
return /* @__PURE__ */ h("div", { className: P.page, children: [
|
|
@@ -7201,9 +7206,9 @@ const g0 = "_button_17r1o_1", _0 = "_claimed_17r1o_24", Kr = {
|
|
|
7201
7206
|
children: [
|
|
7202
7207
|
/* @__PURE__ */ s("span", { className: P.socialText, children: "Email / Socials" }),
|
|
7203
7208
|
o === t.id ? /* @__PURE__ */ s(wt, { size: 16 }) : /* @__PURE__ */ h("div", { className: P.socialIcons, children: [
|
|
7204
|
-
/* @__PURE__ */ s(
|
|
7205
|
-
/* @__PURE__ */ s(
|
|
7206
|
-
/* @__PURE__ */ s(
|
|
7209
|
+
/* @__PURE__ */ s(k2, {}),
|
|
7210
|
+
/* @__PURE__ */ s(x2, {}),
|
|
7211
|
+
/* @__PURE__ */ s(I2, {})
|
|
7207
7212
|
] })
|
|
7208
7213
|
]
|
|
7209
7214
|
}
|
|
@@ -7256,7 +7261,7 @@ const g0 = "_button_17r1o_1", _0 = "_claimed_17r1o_24", Kr = {
|
|
|
7256
7261
|
onFocus: c,
|
|
7257
7262
|
disabled: n,
|
|
7258
7263
|
children: [
|
|
7259
|
-
/* @__PURE__ */ s("div", { className: P.listIconWrapper, children: /* @__PURE__ */ s("div", { className: P.moreIconSmall, children: /* @__PURE__ */ s(
|
|
7264
|
+
/* @__PURE__ */ s("div", { className: P.listIconWrapper, children: /* @__PURE__ */ s("div", { className: P.moreIconSmall, children: /* @__PURE__ */ s(C2, {}) }) }),
|
|
7260
7265
|
/* @__PURE__ */ s("span", { className: P.listNameMuted, children: "More wallets" }),
|
|
7261
7266
|
/* @__PURE__ */ s("span", { className: P.arrowIcon, "aria-hidden": "true", children: "→" })
|
|
7262
7267
|
]
|
|
@@ -7312,7 +7317,7 @@ const g0 = "_button_17r1o_1", _0 = "_claimed_17r1o_24", Kr = {
|
|
|
7312
7317
|
[f]
|
|
7313
7318
|
);
|
|
7314
7319
|
return i === "all" ? /* @__PURE__ */ s(
|
|
7315
|
-
|
|
7320
|
+
N2,
|
|
7316
7321
|
{
|
|
7317
7322
|
walletConnectors: g,
|
|
7318
7323
|
isPending: u,
|
|
@@ -7322,7 +7327,7 @@ const g0 = "_button_17r1o_1", _0 = "_claimed_17r1o_24", Kr = {
|
|
|
7322
7327
|
onBack: () => c("signin")
|
|
7323
7328
|
}
|
|
7324
7329
|
) : /* @__PURE__ */ s(
|
|
7325
|
-
|
|
7330
|
+
S2,
|
|
7326
7331
|
{
|
|
7327
7332
|
walletConnectors: g,
|
|
7328
7333
|
privyConnector: p,
|
|
@@ -7334,7 +7339,7 @@ const g0 = "_button_17r1o_1", _0 = "_claimed_17r1o_24", Kr = {
|
|
|
7334
7339
|
onPrefetchWallets: d
|
|
7335
7340
|
}
|
|
7336
7341
|
);
|
|
7337
|
-
},
|
|
7342
|
+
}, $2 = {
|
|
7338
7343
|
deposit: {
|
|
7339
7344
|
mode: "deposit",
|
|
7340
7345
|
label: "Deposit",
|
|
@@ -7349,7 +7354,7 @@ const g0 = "_button_17r1o_1", _0 = "_claimed_17r1o_24", Kr = {
|
|
|
7349
7354
|
}
|
|
7350
7355
|
};
|
|
7351
7356
|
function bs(e) {
|
|
7352
|
-
return
|
|
7357
|
+
return $2[e];
|
|
7353
7358
|
}
|
|
7354
7359
|
function rr() {
|
|
7355
7360
|
const e = dt(), t = ms(), n = X(), o = gs(), a = Object.fromEntries(
|
|
@@ -7380,11 +7385,11 @@ function cr(e) {
|
|
|
7380
7385
|
const { local: t } = bs(e), n = rn(), { watch: o } = Ot(), a = o(), r = a[t.chainIdKey], i = a[t.denomKey];
|
|
7381
7386
|
return n.find(({ denom: c, chain_id: l }) => i === c && l === r) || null;
|
|
7382
7387
|
}
|
|
7383
|
-
function
|
|
7388
|
+
function T2(e) {
|
|
7384
7389
|
const { external: t } = bs(e), n = rn(), { watch: o } = Ot(), a = o(), r = a[t.chainIdKey], i = a[t.denomKey];
|
|
7385
7390
|
return n.find(({ denom: c, chain_id: l }) => i === c && l === r) || null;
|
|
7386
7391
|
}
|
|
7387
|
-
function
|
|
7392
|
+
function E2(e) {
|
|
7388
7393
|
const t = rn(), n = $t(), { data: o, isLoading: a } = rr(), { remoteOptions: r = [] } = lt(), i = cr(e);
|
|
7389
7394
|
return i ? { data: t.filter(
|
|
7390
7395
|
({ symbol: l, denom: d, chain_id: m }) => r.length ? r.some((u) => u.denom === d && u.chainId === m) : l === i.symbol
|
|
@@ -7399,26 +7404,26 @@ function T2(e) {
|
|
|
7399
7404
|
function Ot() {
|
|
7400
7405
|
return sn();
|
|
7401
7406
|
}
|
|
7402
|
-
const
|
|
7403
|
-
container:
|
|
7404
|
-
title:
|
|
7405
|
-
close:
|
|
7406
|
-
emptyIcon:
|
|
7407
|
-
empty:
|
|
7408
|
-
list:
|
|
7409
|
-
asset:
|
|
7410
|
-
placeholder:
|
|
7411
|
-
activeAsset:
|
|
7412
|
-
iconContainer:
|
|
7413
|
-
assetIcon:
|
|
7414
|
-
chainIcon:
|
|
7415
|
-
assetPlaceholder:
|
|
7416
|
-
assetName:
|
|
7417
|
-
assetChain:
|
|
7418
|
-
balance:
|
|
7419
|
-
value:
|
|
7420
|
-
},
|
|
7421
|
-
const { external: t } = bs(e), { data: n, isLoading: o } =
|
|
7407
|
+
const L2 = "data:image/svg+xml,%3csvg%20width='158'%20height='106'%20viewBox='0%200%20158%20106'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M42.7784%2037.4101C41.9166%2033.983%2043.9856%2030.4147%2047.3994%2029.4401L107.924%2012.1584C111.338%2011.1837%20114.804%2013.1716%20115.666%2016.5984L125.999%2057.6943C126.861%2061.1211%20124.792%2064.6894%20121.378%2065.6644L60.8535%2082.9461C57.4397%2083.9207%2053.9737%2081.9328%2053.1119%2078.5057L42.7784%2037.4101Z'%20fill='%23242629'/%3e%3cpath%20d='M39.217%2031.714C39.217%2028.1816%2042.0964%2025.3179%2045.6482%2025.3179H122.821C126.373%2025.3179%20129.252%2028.1816%20129.252%2031.714V85.0155C129.252%2088.5479%20126.373%2091.4116%20122.821%2091.4116H45.6482C42.0964%2091.4116%2039.217%2088.5479%2039.217%2085.0155V31.714Z'%20fill='%23585F67'/%3e%3cpath%20d='M47.7916%2037.0445C47.7916%2035.2783%2049.2313%2033.8464%2051.0071%2033.8464H117.461C119.237%2033.8464%20120.677%2035.2783%20120.677%2037.0445V79.6854C120.677%2081.4519%20119.237%2082.8837%20117.461%2082.8837H51.0071C49.2313%2082.8837%2047.7916%2081.4519%2047.7916%2079.6854V37.0445Z'%20fill='%23585F67'/%3e%3cpath%20d='M91.7372%2056.2323C91.7372%2052.6999%2094.6166%2049.8362%2098.1681%2049.8362H131.395C131.987%2049.8362%20132.467%2050.3136%20132.467%2050.9024V65.8267C132.467%2066.4155%20131.987%2066.8927%20131.395%2066.8927H98.1681C94.6166%2066.8927%2091.7372%2064.0289%2091.7372%2060.4965V56.2323Z'%20fill='%23242629'/%3e%3cpath%20d='M102.455%2058.3646C102.455%2060.1308%20101.016%2061.5626%2099.24%2061.5626C97.4642%2061.5626%2096.0245%2060.1308%2096.0245%2058.3646C96.0245%2056.5984%2097.4642%2055.1665%2099.24%2055.1665C101.016%2055.1665%20102.455%2056.5984%20102.455%2058.3646Z'%20fill='%23585F67'/%3e%3cpath%20d='M63.8692%2031.714C63.8692%2043.4892%2054.2717%2053.0347%2042.4325%2053.0347C30.5931%2053.0347%2020.9956%2043.4892%2020.9956%2031.714C20.9956%2019.9391%2030.5931%2010.3936%2042.4325%2010.3936C54.2717%2010.3936%2063.8692%2019.9391%2063.8692%2031.714Z'%20fill='%232F3337'/%3e%3cpath%20d='M44.9546%2034.2225C44.9546%2035.6079%2043.8254%2036.7308%2042.4327%2036.7308C41.0398%2036.7308%2039.9106%2035.6079%2039.9106%2034.2225V20.4267C39.9106%2019.0416%2041.0398%2017.9187%2042.4327%2017.9187C43.8254%2017.9187%2044.9546%2019.0416%2044.9546%2020.4267V34.2225Z'%20fill='%23757C82'/%3e%3cpath%20d='M44.9541%2043.0015C44.9541%2044.3866%2043.8249%2045.5095%2042.432%2045.5095C41.0393%2045.5095%2039.9102%2044.3866%2039.9102%2043.0015C39.9102%2041.6161%2041.0393%2040.4932%2042.432%2040.4932C43.8249%2040.4932%2044.9541%2041.6161%2044.9541%2043.0015Z'%20fill='%23757C82'/%3e%3c/svg%3e", q2 = "data:image/svg+xml,%3csvg%20width='158'%20height='106'%20viewBox='0%200%20158%20106'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M42.7784%2037.4101C41.9166%2033.983%2043.9856%2030.4147%2047.3994%2029.4401L107.924%2012.1584C111.338%2011.1837%20114.804%2013.1716%20115.666%2016.5984L125.999%2057.6943C126.861%2061.1211%20124.792%2064.6894%20121.378%2065.6644L60.8535%2082.9461C57.4397%2083.9207%2053.9737%2081.9328%2053.1119%2078.5057L42.7784%2037.4101Z'%20fill='%23F1F3F5'/%3e%3cpath%20d='M39.217%2031.714C39.217%2028.1816%2042.0964%2025.3179%2045.6482%2025.3179H122.821C126.373%2025.3179%20129.252%2028.1816%20129.252%2031.714V85.0155C129.252%2088.5479%20126.373%2091.4116%20122.821%2091.4116H45.6482C42.0964%2091.4116%2039.217%2088.5479%2039.217%2085.0155V31.714Z'%20fill='%239EA0A2'/%3e%3cpath%20d='M47.7915%2037.0445C47.7915%2035.2783%2049.2312%2033.8464%2051.007%2033.8464H117.461C119.237%2033.8464%20120.677%2035.2783%20120.677%2037.0445V79.6854C120.677%2081.4519%20119.237%2082.8837%20117.461%2082.8837H51.007C49.2312%2082.8837%2047.7915%2081.4519%2047.7915%2079.6854V37.0445Z'%20fill='%239EA0A2'/%3e%3cpath%20d='M91.7373%2056.2323C91.7373%2052.6999%2094.6167%2049.8362%2098.1682%2049.8362H131.395C131.987%2049.8362%20132.467%2050.3136%20132.467%2050.9024V65.8267C132.467%2066.4155%20131.987%2066.8927%20131.395%2066.8927H98.1682C94.6167%2066.8927%2091.7373%2064.0289%2091.7373%2060.4965V56.2323Z'%20fill='%23F1F3F5'/%3e%3cpath%20d='M102.455%2058.3646C102.455%2060.1308%20101.016%2061.5626%2099.2399%2061.5626C97.4641%2061.5626%2096.0244%2060.1308%2096.0244%2058.3646C96.0244%2056.5984%2097.4641%2055.1665%2099.2399%2055.1665C101.016%2055.1665%20102.455%2056.5984%20102.455%2058.3646Z'%20fill='%239EA0A2'/%3e%3cpath%20d='M63.8692%2031.714C63.8692%2043.4892%2054.2717%2053.0347%2042.4325%2053.0347C30.5931%2053.0347%2020.9956%2043.4892%2020.9956%2031.714C20.9956%2019.9391%2030.5931%2010.3936%2042.4325%2010.3936C54.2717%2010.3936%2063.8692%2019.9391%2063.8692%2031.714Z'%20fill='%23E9EBED'/%3e%3cpath%20d='M44.9546%2034.2225C44.9546%2035.6079%2043.8254%2036.7308%2042.4327%2036.7308C41.0398%2036.7308%2039.9106%2035.6079%2039.9106%2034.2225V20.4267C39.9106%2019.0416%2041.0398%2017.9187%2042.4327%2017.9187C43.8254%2017.9187%2044.9546%2019.0416%2044.9546%2020.4267V34.2225Z'%20fill='%23797D81'/%3e%3cpath%20d='M44.9541%2043.0015C44.9541%2044.3866%2043.8249%2045.5095%2042.432%2045.5095C41.0393%2045.5095%2039.9102%2044.3866%2039.9102%2043.0015C39.9102%2041.6161%2041.0393%2040.4932%2042.432%2040.4932C43.8249%2040.4932%2044.9541%2041.6161%2044.9541%2043.0015Z'%20fill='%23797D81'/%3e%3c/svg%3e", P2 = "_container_uxgnj_1", M2 = "_title_uxgnj_5", D2 = "_close_uxgnj_12", R2 = "_emptyIcon_uxgnj_24", B2 = "_empty_uxgnj_24", U2 = "_list_uxgnj_51", F2 = "_asset_uxgnj_66", O2 = "_placeholder_uxgnj_82", V2 = "_activeAsset_uxgnj_95", K2 = "_iconContainer_uxgnj_99", j2 = "_assetIcon_uxgnj_109", W2 = "_chainIcon_uxgnj_119", z2 = "_assetPlaceholder_uxgnj_133", H2 = "_assetName_uxgnj_154", G2 = "_assetChain_uxgnj_169", Q2 = "_balance_uxgnj_177", Y2 = "_value_uxgnj_186", me = {
|
|
7408
|
+
container: P2,
|
|
7409
|
+
title: M2,
|
|
7410
|
+
close: D2,
|
|
7411
|
+
emptyIcon: R2,
|
|
7412
|
+
empty: B2,
|
|
7413
|
+
list: U2,
|
|
7414
|
+
asset: F2,
|
|
7415
|
+
placeholder: O2,
|
|
7416
|
+
activeAsset: V2,
|
|
7417
|
+
iconContainer: K2,
|
|
7418
|
+
assetIcon: j2,
|
|
7419
|
+
chainIcon: W2,
|
|
7420
|
+
assetPlaceholder: z2,
|
|
7421
|
+
assetName: H2,
|
|
7422
|
+
assetChain: G2,
|
|
7423
|
+
balance: Q2,
|
|
7424
|
+
value: Y2
|
|
7425
|
+
}, Z2 = ({ mode: e }) => {
|
|
7426
|
+
const { external: t } = bs(e), { data: n, isLoading: o } = E2(e), { setValue: a, watch: r } = Ot(), i = cr(e), c = ir(), { theme: l } = J(), d = r(), m = d[t.denomKey], u = d[t.chainIdKey];
|
|
7422
7427
|
function f() {
|
|
7423
7428
|
const p = m && u;
|
|
7424
7429
|
return !p && c.length <= 1 && e === "deposit" ? null : /* @__PURE__ */ s(
|
|
@@ -7438,7 +7443,7 @@ const E2 = "data:image/svg+xml,%3csvg%20width='158'%20height='106'%20viewBox='0%
|
|
|
7438
7443
|
/* @__PURE__ */ s(
|
|
7439
7444
|
"img",
|
|
7440
7445
|
{
|
|
7441
|
-
src: l === "dark" ?
|
|
7446
|
+
src: l === "dark" ? L2 : q2,
|
|
7442
7447
|
alt: "No assets",
|
|
7443
7448
|
className: me.emptyIcon
|
|
7444
7449
|
}
|
|
@@ -7501,11 +7506,11 @@ const E2 = "data:image/svg+xml,%3csvg%20width='158'%20height='106'%20viewBox='0%
|
|
|
7501
7506
|
})
|
|
7502
7507
|
] })
|
|
7503
7508
|
] }) : /* @__PURE__ */ s("div", { children: "No assets found" });
|
|
7504
|
-
},
|
|
7505
|
-
title:
|
|
7506
|
-
list:
|
|
7507
|
-
asset:
|
|
7508
|
-
},
|
|
7509
|
+
}, J2 = "_title_9ovji_1", X2 = "_list_9ovji_7", ew = "_asset_9ovji_15", oa = {
|
|
7510
|
+
title: J2,
|
|
7511
|
+
list: X2,
|
|
7512
|
+
asset: ew
|
|
7513
|
+
}, tw = ({ mode: e }) => {
|
|
7509
7514
|
const { local: t, external: n } = bs(e), { setValue: o } = Ot(), a = ir(), r = (c, l) => {
|
|
7510
7515
|
o(t.denomKey, c), o(t.chainIdKey, l), o("quantity", ""), o(n.denomKey, ""), o(n.chainIdKey, ""), o("page", e === "withdraw" ? "fields" : "select-external");
|
|
7511
7516
|
}, i = Vn(() => {
|
|
@@ -7529,17 +7534,17 @@ const E2 = "data:image/svg+xml,%3csvg%20width='158'%20height='106'%20viewBox='0%
|
|
|
7529
7534
|
`${c}-${l}`
|
|
7530
7535
|
)) })
|
|
7531
7536
|
] }) : /* @__PURE__ */ s("div", { children: "No assets found" });
|
|
7532
|
-
},
|
|
7533
|
-
container:
|
|
7534
|
-
title:
|
|
7535
|
-
subtitle:
|
|
7536
|
-
linkContainer:
|
|
7537
|
-
link:
|
|
7538
|
-
separator:
|
|
7539
|
-
errorIcon:
|
|
7540
|
-
error:
|
|
7537
|
+
}, nw = "data:image/svg+xml,%3csvg%20width='58'%20height='58'%20viewBox='0%200%2058%2058'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M29%202.71875C43.5%202.71875%2055.2812%2014.5%2055.2812%2029C55.2812%2043.5%2043.5%2055.2812%2029%2055.2812C14.5%2055.2812%202.71875%2043.5%202.71875%2029C2.71875%2014.5%2014.5%202.71875%2029%202.71875ZM29%206.34375C16.4937%206.34375%206.34375%2016.4937%206.34375%2029C6.34375%2041.5062%2016.4937%2051.6562%2029%2051.6562C41.5062%2051.6562%2051.6562%2041.5062%2051.6562%2029C51.6562%2016.4937%2041.5062%206.34375%2029%206.34375Z'%20fill='%23F85454'/%3e%3cpath%20d='M36.1616%2018.7623C37.0109%2017.9129%2038.3885%2017.9129%2039.2378%2018.7623C40.087%2019.6117%2040.0871%2020.9893%2039.2378%2021.8386L32.0763%2029.0001L39.2378%2036.1616L39.3865%2036.3279C40.083%2037.1822%2040.034%2038.4417%2039.2378%2039.2378C38.4417%2040.034%2037.1822%2040.083%2036.3279%2039.3865L36.1616%2039.2378L29.0001%2032.0763L21.8386%2039.2378C20.9893%2040.0871%2019.6117%2040.087%2018.7623%2039.2378C17.9129%2038.3885%2017.9129%2037.0109%2018.7623%2036.1616L25.9238%2029.0001L18.7623%2021.8386C17.9129%2020.9892%2017.9129%2019.6116%2018.7623%2018.7623C19.6116%2017.9129%2020.9892%2017.9129%2021.8386%2018.7623L29.0001%2025.9238L36.1616%2018.7623Z'%20fill='%23F85454'/%3e%3c/svg%3e", sw = "data:image/svg+xml,%3csvg%20width='72'%20height='72'%20viewBox='0%200%2072%2072'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M36%209.71875C50.5%209.71875%2062.2812%2021.5%2062.2812%2036C62.2812%2050.5%2050.5%2062.2812%2036%2062.2812C21.5%2062.2812%209.71875%2050.5%209.71875%2036C9.71875%2021.5%2021.5%209.71875%2036%209.71875ZM36%2013.3438C23.4937%2013.3438%2013.3438%2023.4937%2013.3438%2036C13.3438%2048.5062%2023.4937%2058.6562%2036%2058.6562C48.5062%2058.6562%2058.6562%2048.5062%2058.6562%2036C58.6562%2023.4937%2048.5062%2013.3438%2036%2013.3438Z'%20fill='%23D1242F'/%3e%3cpath%20d='M43.1616%2025.7623C44.0109%2024.9129%2045.3885%2024.9129%2046.2378%2025.7623C47.087%2026.6117%2047.0871%2027.9893%2046.2378%2028.8386L39.0763%2036.0001L46.2378%2043.1616L46.3865%2043.3279C47.083%2044.1822%2047.034%2045.4417%2046.2378%2046.2378C45.4417%2047.034%2044.1822%2047.083%2043.3279%2046.3865L43.1616%2046.2378L36.0001%2039.0763L28.8386%2046.2378C27.9893%2047.0871%2026.6117%2047.087%2025.7623%2046.2378C24.9129%2045.3885%2024.9129%2044.0109%2025.7623%2043.1616L32.9238%2036.0001L25.7623%2028.8386C24.9129%2027.9892%2024.9129%2026.6116%2025.7623%2025.7623C26.6116%2024.9129%2027.9892%2024.9129%2028.8386%2025.7623L36.0001%2032.9238L43.1616%2025.7623Z'%20fill='%23D1242F'/%3e%3c/svg%3e", ow = "_container_9k4hs_1", aw = "_title_9k4hs_8", rw = "_subtitle_9k4hs_14", iw = "_linkContainer_9k4hs_30", cw = "_link_9k4hs_30", lw = "_separator_9k4hs_51", dw = "_errorIcon_9k4hs_62", uw = "_error_9k4hs_62", Ae = {
|
|
7538
|
+
container: ow,
|
|
7539
|
+
title: aw,
|
|
7540
|
+
subtitle: rw,
|
|
7541
|
+
linkContainer: iw,
|
|
7542
|
+
link: cw,
|
|
7543
|
+
separator: lw,
|
|
7544
|
+
errorIcon: dw,
|
|
7545
|
+
error: uw
|
|
7541
7546
|
};
|
|
7542
|
-
function
|
|
7547
|
+
function mw(e) {
|
|
7543
7548
|
if (!e) return "pending";
|
|
7544
7549
|
const t = e.state;
|
|
7545
7550
|
return t === "STATE_COMPLETED_SUCCESS" ? "success" : t === "STATE_ABANDONED" || t === "STATE_COMPLETED_ERROR" || t === "STATE_PENDING_ERROR" ? "failed" : "pending";
|
|
@@ -7558,7 +7563,7 @@ function Na({ type: e }) {
|
|
|
7558
7563
|
tracked: !!w,
|
|
7559
7564
|
timestamp: d,
|
|
7560
7565
|
route: m
|
|
7561
|
-
}), N =
|
|
7566
|
+
}), N = mw(v), b = n === "dark" ? nw : sw, C = `https://assets.initia.xyz/videos/Loading${n === "dark" ? "Dark" : "Light"}.mp4`, x = `https://assets.initia.xyz/videos/Completed${n === "dark" ? "Dark" : "Light"}.mp4`;
|
|
7562
7567
|
if (i)
|
|
7563
7568
|
return /* @__PURE__ */ h("div", { className: Ae.container, children: [
|
|
7564
7569
|
/* @__PURE__ */ h("h3", { className: Ae.title, children: [
|
|
@@ -7652,11 +7657,11 @@ function Na({ type: e }) {
|
|
|
7652
7657
|
] })
|
|
7653
7658
|
] });
|
|
7654
7659
|
}
|
|
7655
|
-
const
|
|
7660
|
+
const hw = Ce("interwovenkit:tx-gas-estimate", {
|
|
7656
7661
|
estimate: (e) => [e]
|
|
7657
|
-
}),
|
|
7662
|
+
}), fw = ({ tx: e, children: t }) => {
|
|
7658
7663
|
const { values: n } = Tt(), { srcChainId: o } = n, a = X(), r = ds(), i = No(), { data: c, isLoading: l } = _e({
|
|
7659
|
-
queryKey:
|
|
7664
|
+
queryKey: hw.estimate({ tx: e, address: a, chainId: o }).queryKey,
|
|
7660
7665
|
queryFn: async () => {
|
|
7661
7666
|
if (!("cosmos_tx" in e) || !e.cosmos_tx.msgs) return null;
|
|
7662
7667
|
try {
|
|
@@ -7681,27 +7686,27 @@ const mw = Ce("interwovenkit:tx-gas-estimate", {
|
|
|
7681
7686
|
return /* @__PURE__ */ s(Ne, { children: /* @__PURE__ */ s(ie.White, { loading: "Estimating gas..." }) });
|
|
7682
7687
|
const d = c?.estimatedGas ?? null;
|
|
7683
7688
|
return /* @__PURE__ */ s(W, { children: t(d) });
|
|
7684
|
-
},
|
|
7685
|
-
container:
|
|
7686
|
-
back:
|
|
7687
|
-
title:
|
|
7688
|
-
divider:
|
|
7689
|
-
label:
|
|
7690
|
-
asset:
|
|
7691
|
-
assetIcon:
|
|
7692
|
-
chainIcon:
|
|
7693
|
-
assetName:
|
|
7694
|
-
chevron:
|
|
7695
|
-
input:
|
|
7696
|
-
balanceContainer:
|
|
7697
|
-
value:
|
|
7698
|
-
maxButton:
|
|
7699
|
-
detail:
|
|
7700
|
-
detailsContainer:
|
|
7701
|
-
detailsButton:
|
|
7702
|
-
detailValue:
|
|
7703
|
-
detailToken:
|
|
7704
|
-
minimumReceived:
|
|
7689
|
+
}, pw = "_container_eg177_1", gw = "_back_eg177_6", _w = "_title_eg177_18", yw = "_divider_eg177_26", ww = "_label_eg177_30", vw = "_asset_eg177_37", bw = "_assetIcon_eg177_55", Nw = "_chainIcon_eg177_67", Cw = "_assetName_eg177_80", kw = "_chevron_eg177_92", Iw = "_input_eg177_96", xw = "_balanceContainer_eg177_108", Aw = "_value_eg177_116", Sw = "_maxButton_eg177_126", $w = "_detail_eg177_142", Tw = "_detailsContainer_eg177_153", Ew = "_detailsButton_eg177_163", Lw = "_detailValue_eg177_180", qw = "_detailToken_eg177_190", Pw = "_minimumReceived_eg177_198", z = {
|
|
7690
|
+
container: pw,
|
|
7691
|
+
back: gw,
|
|
7692
|
+
title: _w,
|
|
7693
|
+
divider: yw,
|
|
7694
|
+
label: ww,
|
|
7695
|
+
asset: vw,
|
|
7696
|
+
assetIcon: bw,
|
|
7697
|
+
chainIcon: Nw,
|
|
7698
|
+
assetName: Cw,
|
|
7699
|
+
chevron: kw,
|
|
7700
|
+
input: Iw,
|
|
7701
|
+
balanceContainer: xw,
|
|
7702
|
+
value: Aw,
|
|
7703
|
+
maxButton: Sw,
|
|
7704
|
+
detail: $w,
|
|
7705
|
+
detailsContainer: Tw,
|
|
7706
|
+
detailsButton: Ew,
|
|
7707
|
+
detailValue: Lw,
|
|
7708
|
+
detailToken: qw,
|
|
7709
|
+
minimumReceived: Pw
|
|
7705
7710
|
}, Al = ({ renderFee: e }) => {
|
|
7706
7711
|
const { route: t } = lt(), { values: n } = Tt(), { dstDenom: o, dstChainId: a } = n, i = rn().find(
|
|
7707
7712
|
({ denom: p, chain_id: g }) => p === o && g === a
|
|
@@ -7767,11 +7772,11 @@ const mw = Ce("interwovenkit:tx-gas-estimate", {
|
|
|
7767
7772
|
] })
|
|
7768
7773
|
] })
|
|
7769
7774
|
] }) });
|
|
7770
|
-
},
|
|
7771
|
-
trigger:
|
|
7772
|
-
item:
|
|
7773
|
-
itemText:
|
|
7774
|
-
},
|
|
7775
|
+
}, Mw = "_trigger_1c7d7_1", Dw = "_item_1c7d7_5", Rw = "_itemText_1c7d7_13", Bw = {
|
|
7776
|
+
trigger: Mw,
|
|
7777
|
+
item: Dw,
|
|
7778
|
+
itemText: Rw
|
|
7779
|
+
}, Uw = ({ tx: e, gas: t, confirmMessage: n, onCompleted: o }) => {
|
|
7775
7780
|
const { values: a } = Tt(), { srcChainId: r, srcDenom: i, quantity: c } = a, d = rn().find(
|
|
7776
7781
|
({ denom: k, chain_id: I }) => k === i && I === r
|
|
7777
7782
|
), m = ct(r), u = is(m), f = Ka(m), p = ja(m), g = bt(m), _ = f.map(
|
|
@@ -7823,7 +7828,7 @@ const mw = Ce("interwovenkit:tx-gas-estimate", {
|
|
|
7823
7828
|
options: k,
|
|
7824
7829
|
value: N,
|
|
7825
7830
|
onChange: b,
|
|
7826
|
-
classNames:
|
|
7831
|
+
classNames: Bw
|
|
7827
7832
|
}
|
|
7828
7833
|
)
|
|
7829
7834
|
] });
|
|
@@ -7841,7 +7846,7 @@ const mw = Ce("interwovenkit:tx-gas-estimate", {
|
|
|
7841
7846
|
}
|
|
7842
7847
|
) })
|
|
7843
7848
|
] });
|
|
7844
|
-
},
|
|
7849
|
+
}, Fw = ({ tx: e, confirmMessage: t, onCompleted: n }) => /* @__PURE__ */ h(W, { children: [
|
|
7845
7850
|
/* @__PURE__ */ s(Al, {}),
|
|
7846
7851
|
/* @__PURE__ */ s(ar, { tx: e, children: /* @__PURE__ */ s(
|
|
7847
7852
|
or,
|
|
@@ -7852,12 +7857,12 @@ const mw = Ce("interwovenkit:tx-gas-estimate", {
|
|
|
7852
7857
|
confirmMessage: t
|
|
7853
7858
|
}
|
|
7854
7859
|
) })
|
|
7855
|
-
] }),
|
|
7860
|
+
] }), Ow = ({ tx: e, gas: t, mode: n }) => {
|
|
7856
7861
|
const { setValue: o } = Ot(), a = (i) => {
|
|
7857
7862
|
o("page", "completed"), o("result", i);
|
|
7858
7863
|
}, r = n === "withdraw" ? "Withdraw" : "Deposit";
|
|
7859
|
-
return !t || !("cosmos_tx" in e) ? /* @__PURE__ */ s(
|
|
7860
|
-
|
|
7864
|
+
return !t || !("cosmos_tx" in e) ? /* @__PURE__ */ s(Fw, { tx: e, onCompleted: a, confirmMessage: r }) : /* @__PURE__ */ s(
|
|
7865
|
+
Uw,
|
|
7861
7866
|
{
|
|
7862
7867
|
tx: e,
|
|
7863
7868
|
gas: t,
|
|
@@ -7865,8 +7870,8 @@ const mw = Ce("interwovenkit:tx-gas-estimate", {
|
|
|
7865
7870
|
confirmMessage: r
|
|
7866
7871
|
}
|
|
7867
7872
|
);
|
|
7868
|
-
},
|
|
7869
|
-
const t = bs(e), n = Te(), o = lt(), a = ir(), r = $t(), { data: i } = rr(), c = ms(), { watch: l, setValue: d, getValues: m } = Ot(), u = l(), { srcChainId: f, srcDenom: p, quantity: g = "" } = u, _ = cr(e), y =
|
|
7873
|
+
}, Vw = ({ mode: e }) => {
|
|
7874
|
+
const t = bs(e), n = Te(), o = lt(), a = ir(), r = $t(), { data: i } = rr(), c = ms(), { watch: l, setValue: d, getValues: m } = Ot(), u = l(), { srcChainId: f, srcDenom: p, quantity: g = "" } = u, _ = cr(e), y = T2(e), w = u[t.external.chainIdKey], v = w ? r(w) : null, N = i?.[f]?.[p]?.amount, b = i?.[f]?.[p]?.price || 0, C = M(b || 0).times(g || 0), [x] = Ci(g, 300), $ = e === "withdraw" ? _ : y, T = S(() => {
|
|
7870
7875
|
if (e === "deposit" && !y) return "Select asset";
|
|
7871
7876
|
const H = M(g || 0);
|
|
7872
7877
|
if (!H.isFinite() || H.lte(0)) return "Enter amount";
|
|
@@ -7983,11 +7988,11 @@ const mw = Ce("interwovenkit:tx-gas-estimate", {
|
|
|
7983
7988
|
fullWidth: !0,
|
|
7984
7989
|
children: E ? "No route found" : T
|
|
7985
7990
|
}
|
|
7986
|
-
) }) : /* @__PURE__ */ s(vl, { children: (H) => /* @__PURE__ */ s(Nl, { children: (R) => /* @__PURE__ */ s(bl, { addressList: H, signedOpHook: R, children: (O) => /* @__PURE__ */ s(
|
|
7991
|
+
) }) : /* @__PURE__ */ s(vl, { children: (H) => /* @__PURE__ */ s(Nl, { children: (R) => /* @__PURE__ */ s(bl, { addressList: H, signedOpHook: R, children: (O) => /* @__PURE__ */ s(fw, { tx: O, children: (Fe) => /* @__PURE__ */ s(Ow, { tx: O, gas: Fe, mode: e }) }) }) }) })
|
|
7987
7992
|
] });
|
|
7988
|
-
},
|
|
7989
|
-
container:
|
|
7990
|
-
page:
|
|
7993
|
+
}, Kw = "_container_7nl9j_1", jw = "_page_7nl9j_5", Yr = {
|
|
7994
|
+
container: Kw,
|
|
7995
|
+
page: jw
|
|
7991
7996
|
}, Sl = ({ mode: e }) => {
|
|
7992
7997
|
const t = ns({
|
|
7993
7998
|
mode: "onChange",
|
|
@@ -8000,8 +8005,8 @@ const mw = Ce("interwovenkit:tx-gas-estimate", {
|
|
|
8000
8005
|
dstChainId: ""
|
|
8001
8006
|
}
|
|
8002
8007
|
});
|
|
8003
|
-
return rr(), /* @__PURE__ */ s(lo, { ...t, children: /* @__PURE__ */ s(
|
|
8004
|
-
},
|
|
8008
|
+
return rr(), /* @__PURE__ */ s(lo, { ...t, children: /* @__PURE__ */ s(Ww, { mode: e }) });
|
|
8009
|
+
}, Ww = ({ mode: e }) => {
|
|
8005
8010
|
const { watch: t } = Ot(), n = t("page"), o = Ai(n, {
|
|
8006
8011
|
keys: n,
|
|
8007
8012
|
from: { opacity: 0 },
|
|
@@ -8011,30 +8016,30 @@ const mw = Ce("interwovenkit:tx-gas-estimate", {
|
|
|
8011
8016
|
}), a = (r) => {
|
|
8012
8017
|
switch (r) {
|
|
8013
8018
|
case "select-local":
|
|
8014
|
-
return /* @__PURE__ */ s(
|
|
8019
|
+
return /* @__PURE__ */ s(tw, { mode: e });
|
|
8015
8020
|
case "select-external":
|
|
8016
|
-
return /* @__PURE__ */ s(
|
|
8021
|
+
return /* @__PURE__ */ s(Z2, { mode: e });
|
|
8017
8022
|
case "fields":
|
|
8018
|
-
return /* @__PURE__ */ s(
|
|
8023
|
+
return /* @__PURE__ */ s(Vw, { mode: e });
|
|
8019
8024
|
case "completed":
|
|
8020
8025
|
return /* @__PURE__ */ s(Na, { type: e });
|
|
8021
8026
|
}
|
|
8022
8027
|
};
|
|
8023
8028
|
return /* @__PURE__ */ s(Yn, { children: /* @__PURE__ */ s("div", { className: Yr.container, children: o((r, i) => /* @__PURE__ */ s(as.div, { style: r, className: Yr.page, children: a(i) })) }) });
|
|
8024
|
-
},
|
|
8025
|
-
root:
|
|
8026
|
-
address:
|
|
8027
|
-
copy:
|
|
8028
|
-
labelWrapper:
|
|
8029
|
-
labelCopy:
|
|
8030
|
-
labelCopied:
|
|
8031
|
-
copied:
|
|
8032
|
-
derived:
|
|
8033
|
-
derivedLabel:
|
|
8034
|
-
derivedAddress:
|
|
8035
|
-
hexAddress:
|
|
8036
|
-
derivedCopy:
|
|
8037
|
-
},
|
|
8029
|
+
}, zw = () => /* @__PURE__ */ s(Sl, { mode: "deposit" }), Hw = () => /* @__PURE__ */ s(Sl, { mode: "withdraw" }), Gw = "_root_1lo0i_1", Qw = "_address_1lo0i_9", Yw = "_copy_1lo0i_19", Zw = "_labelWrapper_1lo0i_33", Jw = "_labelCopy_1lo0i_43", Xw = "_labelCopied_1lo0i_47", ev = "_copied_1lo0i_55", tv = "_derived_1lo0i_65", nv = "_derivedLabel_1lo0i_79", sv = "_derivedAddress_1lo0i_83", ov = "_hexAddress_1lo0i_89", av = "_derivedCopy_1lo0i_94", Pe = {
|
|
8030
|
+
root: Gw,
|
|
8031
|
+
address: Qw,
|
|
8032
|
+
copy: Yw,
|
|
8033
|
+
labelWrapper: Zw,
|
|
8034
|
+
labelCopy: Jw,
|
|
8035
|
+
labelCopied: Xw,
|
|
8036
|
+
copied: ev,
|
|
8037
|
+
derived: tv,
|
|
8038
|
+
derivedLabel: nv,
|
|
8039
|
+
derivedAddress: sv,
|
|
8040
|
+
hexAddress: ov,
|
|
8041
|
+
derivedCopy: av
|
|
8042
|
+
}, rv = () => {
|
|
8038
8043
|
const e = Ke(null), t = Ke(null), { initiaAddress: n, hexAddress: o } = Xe(), a = Kc("--gray-0");
|
|
8039
8044
|
return Q(() => {
|
|
8040
8045
|
e.current && (t.current ? t.current.update({
|
|
@@ -8073,10 +8078,10 @@ const mw = Ce("interwovenkit:tx-gas-estimate", {
|
|
|
8073
8078
|
] }) })
|
|
8074
8079
|
] }) });
|
|
8075
8080
|
};
|
|
8076
|
-
function
|
|
8081
|
+
function iv(e, t) {
|
|
8077
8082
|
return t == null ? e : e.filter((n) => n.grantee === t);
|
|
8078
8083
|
}
|
|
8079
|
-
function
|
|
8084
|
+
function cv() {
|
|
8080
8085
|
const e = X(), t = le();
|
|
8081
8086
|
return xn({
|
|
8082
8087
|
queries: t.map((n) => ({
|
|
@@ -8086,7 +8091,7 @@ function iv() {
|
|
|
8086
8091
|
`cosmos/authz/v1beta1/grants/granter/${e}`,
|
|
8087
8092
|
{ prefixUrl: n.restUrl },
|
|
8088
8093
|
"grants"
|
|
8089
|
-
), a = dc(o), r = e ? Ba(e, n.chainId) : null, i =
|
|
8094
|
+
), a = dc(o), r = e ? Ba(e, n.chainId) : null, i = iv(
|
|
8090
8095
|
a,
|
|
8091
8096
|
r
|
|
8092
8097
|
);
|
|
@@ -8098,9 +8103,9 @@ function iv() {
|
|
|
8098
8103
|
}))
|
|
8099
8104
|
});
|
|
8100
8105
|
}
|
|
8101
|
-
const
|
|
8102
|
-
countdown:
|
|
8103
|
-
},
|
|
8106
|
+
const lv = "_countdown_vfms8_1", dv = {
|
|
8107
|
+
countdown: lv
|
|
8108
|
+
}, uv = ({ expiration: e }) => {
|
|
8104
8109
|
const t = () => {
|
|
8105
8110
|
const r = Vd(e, /* @__PURE__ */ new Date()), i = Math.floor(r / (1440 * 60)), c = Math.floor(r % (1440 * 60) / 3600), l = Math.floor(r % 3600 / 60), d = r % 60, m = [];
|
|
8106
8111
|
return i > 0 && m.push(`${i}d`), (c > 0 || i > 0) && m.push(`${c}h`), (l > 0 || c > 0 || i > 0) && m.push(`${l}m`), m.push(`${d}s`), m.join(" ");
|
|
@@ -8109,16 +8114,16 @@ const cv = "_countdown_vfms8_1", lv = {
|
|
|
8109
8114
|
o(t());
|
|
8110
8115
|
}, 1e3), Aa(e) ? "Expired" : /* @__PURE__ */ h(W, { children: [
|
|
8111
8116
|
"Expires in ",
|
|
8112
|
-
/* @__PURE__ */ s("span", { className:
|
|
8117
|
+
/* @__PURE__ */ s("span", { className: dv.countdown, children: n })
|
|
8113
8118
|
] });
|
|
8114
|
-
},
|
|
8115
|
-
container:
|
|
8116
|
-
info:
|
|
8117
|
-
header:
|
|
8118
|
-
chainName:
|
|
8119
|
-
expiration:
|
|
8120
|
-
revokeButton:
|
|
8121
|
-
},
|
|
8119
|
+
}, mv = "_container_1l528_1", hv = "_info_1l528_11", fv = "_header_1l528_17", pv = "_chainName_1l528_23", gv = "_expiration_1l528_29", _v = "_revokeButton_1l528_35", hn = {
|
|
8120
|
+
container: mv,
|
|
8121
|
+
info: hv,
|
|
8122
|
+
header: fv,
|
|
8123
|
+
chainName: pv,
|
|
8124
|
+
expiration: gv,
|
|
8125
|
+
revokeButton: _v
|
|
8126
|
+
}, yv = ({ chainId: e, grantee: t, expiration: n }) => {
|
|
8122
8127
|
const o = ct(e), { mutate: a, isPending: r } = Ic({
|
|
8123
8128
|
grantee: t,
|
|
8124
8129
|
internal: !0
|
|
@@ -8129,11 +8134,11 @@ const cv = "_countdown_vfms8_1", lv = {
|
|
|
8129
8134
|
/* @__PURE__ */ s(Z, { src: o.logoUrl, width: 16, height: 16, logo: !0 }),
|
|
8130
8135
|
/* @__PURE__ */ s("div", { className: hn.chainName, children: o.name })
|
|
8131
8136
|
] }),
|
|
8132
|
-
/* @__PURE__ */ s("div", { className: hn.expiration, children: n ? /* @__PURE__ */ s(
|
|
8137
|
+
/* @__PURE__ */ s("div", { className: hn.expiration, children: n ? /* @__PURE__ */ s(uv, { expiration: n }) : "Until revoked" })
|
|
8133
8138
|
] }),
|
|
8134
8139
|
/* @__PURE__ */ s("button", { className: hn.revokeButton, onClick: () => a(e), disabled: r, children: r ? "Revoking..." : "Revoke" })
|
|
8135
8140
|
] });
|
|
8136
|
-
},
|
|
8141
|
+
}, wv = ({ chainId: e, grants: t }) => {
|
|
8137
8142
|
const n = /* @__PURE__ */ new Map();
|
|
8138
8143
|
for (const a of t) {
|
|
8139
8144
|
const r = n.get(a.grantee), i = a.expiration ? new Date(a.expiration) : void 0;
|
|
@@ -8143,45 +8148,45 @@ const cv = "_countdown_vfms8_1", lv = {
|
|
|
8143
8148
|
}
|
|
8144
8149
|
r.expiration = Va([r.expiration, i]);
|
|
8145
8150
|
}
|
|
8146
|
-
return [...n.values()].map((a) => /* @__PURE__ */ Ws(
|
|
8147
|
-
},
|
|
8148
|
-
content:
|
|
8149
|
-
},
|
|
8150
|
-
const e =
|
|
8151
|
+
return [...n.values()].map((a) => /* @__PURE__ */ Ws(yv, { ...a, chainId: e, key: a.grantee }));
|
|
8152
|
+
}, vv = "_content_q36qs_1", bv = {
|
|
8153
|
+
content: vv
|
|
8154
|
+
}, Nv = () => {
|
|
8155
|
+
const e = cv();
|
|
8151
8156
|
return /* @__PURE__ */ s(Nt, { title: "Manage auto-signing", backButton: "/settings", children: (() => {
|
|
8152
8157
|
const n = e.filter((o) => o.data && o.data.grants.length > 0).map((o) => o.data);
|
|
8153
|
-
return n.length === 0 ? /* @__PURE__ */ s(ge, { children: "No permissions found" }) : /* @__PURE__ */ s("div", { className:
|
|
8158
|
+
return n.length === 0 ? /* @__PURE__ */ s(ge, { children: "No permissions found" }) : /* @__PURE__ */ s("div", { className: bv.content, children: n.map(({ chainId: o, grants: a }) => /* @__PURE__ */ s(wv, { chainId: o, grants: a }, o)) });
|
|
8154
8159
|
})() });
|
|
8155
|
-
},
|
|
8156
|
-
version:
|
|
8157
|
-
},
|
|
8160
|
+
}, Cv = "_version_1sf5y_1", kv = {
|
|
8161
|
+
version: Cv
|
|
8162
|
+
}, Iv = () => /* @__PURE__ */ h("aside", { className: kv.version, children: [
|
|
8158
8163
|
"v",
|
|
8159
|
-
"2.4.
|
|
8160
|
-
] }),
|
|
8161
|
-
link:
|
|
8162
|
-
title:
|
|
8163
|
-
subtitle:
|
|
8164
|
-
icon:
|
|
8164
|
+
"2.4.2"
|
|
8165
|
+
] }), xv = "_link_se23z_1", Av = "_title_se23z_17", Sv = "_subtitle_se23z_23", $v = "_icon_se23z_30", Ms = {
|
|
8166
|
+
link: xv,
|
|
8167
|
+
title: Av,
|
|
8168
|
+
subtitle: Sv,
|
|
8169
|
+
icon: $v
|
|
8165
8170
|
}, $l = ({ title: e, subtitle: t, rightSection: n, onClick: o }) => /* @__PURE__ */ h("button", { className: Ms.link, onClick: o, children: [
|
|
8166
8171
|
/* @__PURE__ */ h("div", { children: [
|
|
8167
8172
|
/* @__PURE__ */ s("p", { className: Ms.title, children: e }),
|
|
8168
8173
|
t && /* @__PURE__ */ s("p", { className: Ms.subtitle, children: t })
|
|
8169
8174
|
] }),
|
|
8170
8175
|
/* @__PURE__ */ s("div", { className: Ms.icon, children: n ?? /* @__PURE__ */ s(Ta, { size: 16 }) })
|
|
8171
|
-
] }),
|
|
8176
|
+
] }), Tv = "https://export.initia.xyz/", Ev = () => {
|
|
8172
8177
|
const e = "width=600,height=768,scrollbars=yes,resizable=yes";
|
|
8173
8178
|
return /* @__PURE__ */ s(
|
|
8174
8179
|
$l,
|
|
8175
8180
|
{
|
|
8176
8181
|
title: "Export private key",
|
|
8177
8182
|
rightSection: /* @__PURE__ */ s(ot, { size: 16 }),
|
|
8178
|
-
onClick: () => window.open(
|
|
8183
|
+
onClick: () => window.open(Tv, "_blank", e)
|
|
8179
8184
|
}
|
|
8180
8185
|
);
|
|
8181
|
-
},
|
|
8182
|
-
container:
|
|
8183
|
-
separator:
|
|
8184
|
-
},
|
|
8186
|
+
}, Lv = "_container_1vxr7_1", qv = "_separator_1vxr7_7", Zr = {
|
|
8187
|
+
container: Lv,
|
|
8188
|
+
separator: qv
|
|
8189
|
+
}, Pv = () => {
|
|
8185
8190
|
const e = Te(), { connector: t } = tn();
|
|
8186
8191
|
return /* @__PURE__ */ s(Nt, { title: "Settings", backButton: "/", children: /* @__PURE__ */ h("div", { className: Zr.container, children: [
|
|
8187
8192
|
/* @__PURE__ */ s(
|
|
@@ -8192,27 +8197,27 @@ const cv = "_countdown_vfms8_1", lv = {
|
|
|
8192
8197
|
onClick: () => e("/settings/autosign")
|
|
8193
8198
|
}
|
|
8194
8199
|
),
|
|
8195
|
-
t?.id === Ti && /* @__PURE__ */ s(
|
|
8200
|
+
t?.id === Ti && /* @__PURE__ */ s(Ev, {}),
|
|
8196
8201
|
/* @__PURE__ */ s(wu, { className: Zr.separator }),
|
|
8197
|
-
/* @__PURE__ */ s(
|
|
8202
|
+
/* @__PURE__ */ s(Iv, {})
|
|
8198
8203
|
] }) });
|
|
8199
|
-
},
|
|
8200
|
-
trigger:
|
|
8201
|
-
icon:
|
|
8202
|
-
full:
|
|
8203
|
-
triggerContent:
|
|
8204
|
-
triggerText:
|
|
8205
|
-
popoverBackdrop:
|
|
8206
|
-
popoverPositioner:
|
|
8207
|
-
popoverPopup:
|
|
8208
|
-
search:
|
|
8209
|
-
viewport:
|
|
8210
|
-
item:
|
|
8211
|
-
highlighted:
|
|
8212
|
-
active:
|
|
8213
|
-
itemContent:
|
|
8214
|
-
extra:
|
|
8215
|
-
connectedTag:
|
|
8204
|
+
}, Mv = "_trigger_1yjkd_1", Dv = "_icon_1yjkd_23", Rv = "_full_1yjkd_27", Bv = "_triggerContent_1yjkd_32", Uv = "_triggerText_1yjkd_40", Fv = "_popoverBackdrop_1yjkd_51", Ov = "_popoverPositioner_1yjkd_70", Vv = "_popoverPopup_1yjkd_74", Kv = "_search_1yjkd_99", jv = "_viewport_1yjkd_105", Wv = "_item_1yjkd_111", zv = "_highlighted_1yjkd_127", Hv = "_active_1yjkd_131", Gv = "_itemContent_1yjkd_136", Qv = "_extra_1yjkd_142", Yv = "_connectedTag_1yjkd_149", be = {
|
|
8205
|
+
trigger: Mv,
|
|
8206
|
+
icon: Dv,
|
|
8207
|
+
full: Rv,
|
|
8208
|
+
triggerContent: Bv,
|
|
8209
|
+
triggerText: Uv,
|
|
8210
|
+
popoverBackdrop: Fv,
|
|
8211
|
+
popoverPositioner: Ov,
|
|
8212
|
+
popoverPopup: Vv,
|
|
8213
|
+
search: Kv,
|
|
8214
|
+
viewport: jv,
|
|
8215
|
+
item: Wv,
|
|
8216
|
+
highlighted: zv,
|
|
8217
|
+
active: Hv,
|
|
8218
|
+
itemContent: Gv,
|
|
8219
|
+
extra: Qv,
|
|
8220
|
+
connectedTag: Yv
|
|
8216
8221
|
}, Do = ({ value: e, onChange: t, chainIds: n, renderExtra: o, fullWidth: a }) => {
|
|
8217
8222
|
const { defaultChainId: r } = J(), [i, c] = V(""), [l, d] = V(!1), [m, u] = V(0), [f, p] = V(), g = Ke([]), _ = Ke(null), y = le(), w = n.map((k) => y.find((I) => I.chainId === k)).filter(Boolean), v = (k) => /* @__PURE__ */ h("svg", { xmlns: "http://www.w3.org/2000/svg", width: k, height: k, viewBox: "0 0 14 14", children: [
|
|
8218
8223
|
/* @__PURE__ */ s(
|
|
@@ -8358,18 +8363,18 @@ const cv = "_countdown_vfms8_1", lv = {
|
|
|
8358
8363
|
)
|
|
8359
8364
|
] })
|
|
8360
8365
|
] });
|
|
8361
|
-
},
|
|
8362
|
-
container:
|
|
8363
|
-
controls:
|
|
8364
|
-
search:
|
|
8365
|
-
},
|
|
8366
|
-
Root:
|
|
8367
|
-
Controls:
|
|
8368
|
-
SearchInput:
|
|
8369
|
-
}, Tl = ke(""), El = ke(""),
|
|
8370
|
-
change:
|
|
8371
|
-
positive:
|
|
8372
|
-
negative:
|
|
8366
|
+
}, Zv = "_container_1nap1_1", Jv = "_controls_1nap1_7", Xv = "_search_1nap1_13", lr = {
|
|
8367
|
+
container: Zv,
|
|
8368
|
+
controls: Jv,
|
|
8369
|
+
search: Xv
|
|
8370
|
+
}, eb = ({ children: e }) => /* @__PURE__ */ s("div", { className: lr.container, children: e }), tb = ({ children: e }) => /* @__PURE__ */ s("div", { className: lr.controls, children: e }), nb = (e) => /* @__PURE__ */ s(ws, { ...e, rootClassName: lr.search }), nt = {
|
|
8371
|
+
Root: eb,
|
|
8372
|
+
Controls: tb,
|
|
8373
|
+
SearchInput: nb
|
|
8374
|
+
}, Tl = ke(""), El = ke(""), sb = ke(""), ob = ke(""), ab = ke(""), rb = "_change_1x9v4_1", ib = "_positive_1x9v4_10", cb = "_negative_1x9v4_14", aa = {
|
|
8375
|
+
change: rb,
|
|
8376
|
+
positive: ib,
|
|
8377
|
+
negative: cb
|
|
8373
8378
|
}, Ll = ({ amount: e, asset: t }) => {
|
|
8374
8379
|
const { denom: n, symbol: o, decimals: a } = t, r = new M(e).isPositive(), i = new M(e).abs().toString();
|
|
8375
8380
|
return /* @__PURE__ */ h("div", { className: L(aa.change, r ? aa.positive : aa.negative), children: [
|
|
@@ -8378,36 +8383,36 @@ const cv = "_countdown_vfms8_1", lv = {
|
|
|
8378
8383
|
" ",
|
|
8379
8384
|
o || n
|
|
8380
8385
|
] });
|
|
8381
|
-
},
|
|
8386
|
+
}, lb = ({ changes: e, chain: t }) => {
|
|
8382
8387
|
const n = bt(t);
|
|
8383
8388
|
return e.map(({ amount: o, denom: a }, r) => /* @__PURE__ */ s(Ll, { amount: o, asset: n(a) }, r));
|
|
8384
|
-
},
|
|
8389
|
+
}, db = ({
|
|
8385
8390
|
changes: e,
|
|
8386
8391
|
chain: t
|
|
8387
8392
|
}) => {
|
|
8388
8393
|
const n = bt(t);
|
|
8389
8394
|
return e.map(({ amount: o, metadata: a }, r) => /* @__PURE__ */ s(Yc, { metadata: a, chain: t, children: (i) => /* @__PURE__ */ s(Ll, { amount: o, asset: n(i) }) }, r));
|
|
8390
|
-
},
|
|
8395
|
+
}, ub = ({ events: e, chain: t }) => {
|
|
8391
8396
|
const { initiaAddress: n, hexAddress: o } = Xe();
|
|
8392
|
-
return t.metadata?.is_l1 || t.metadata?.minitia?.type === "minimove" ? /* @__PURE__ */ s(
|
|
8393
|
-
},
|
|
8394
|
-
message:
|
|
8395
|
-
more:
|
|
8396
|
-
},
|
|
8397
|
+
return t.metadata?.is_l1 || t.metadata?.minitia?.type === "minimove" ? /* @__PURE__ */ s(db, { changes: Qc(e, o), chain: t }) : /* @__PURE__ */ s(lb, { changes: Gc(e, n), chain: t });
|
|
8398
|
+
}, mb = "_message_1g2hc_1", hb = "_more_1g2hc_8", Jr = {
|
|
8399
|
+
message: mb,
|
|
8400
|
+
more: hb
|
|
8401
|
+
}, fb = ({ messages: e }) => /* @__PURE__ */ h(W, { children: [
|
|
8397
8402
|
e.slice(0, 3).map((t, n) => /* @__PURE__ */ s("p", { className: Jr.message, children: La(t["@type"].split("Msg")[1]) }, n)),
|
|
8398
8403
|
e.length > 3 && /* @__PURE__ */ s("footer", { className: Jr.more, children: `+${e.length - 3} more` })
|
|
8399
|
-
] }),
|
|
8400
|
-
link:
|
|
8401
|
-
inner:
|
|
8402
|
-
header:
|
|
8403
|
-
time:
|
|
8404
|
-
error:
|
|
8405
|
-
timestamp:
|
|
8406
|
-
chainInfo:
|
|
8407
|
-
content:
|
|
8408
|
-
messages:
|
|
8409
|
-
changes:
|
|
8410
|
-
},
|
|
8404
|
+
] }), pb = "_link_fuhbt_1", gb = "_inner_fuhbt_16", _b = "_header_fuhbt_21", yb = "_time_fuhbt_30", wb = "_error_fuhbt_36", vb = "_timestamp_fuhbt_40", bb = "_chainInfo_fuhbt_45", Nb = "_content_fuhbt_53", Cb = "_messages_fuhbt_61", kb = "_changes_fuhbt_67", gt = {
|
|
8405
|
+
link: pb,
|
|
8406
|
+
inner: gb,
|
|
8407
|
+
header: _b,
|
|
8408
|
+
time: yb,
|
|
8409
|
+
error: wb,
|
|
8410
|
+
timestamp: vb,
|
|
8411
|
+
chainInfo: bb,
|
|
8412
|
+
content: Nb,
|
|
8413
|
+
messages: Cb,
|
|
8414
|
+
changes: kb
|
|
8415
|
+
}, Ib = ({ txItem: e, chain: t }) => /* @__PURE__ */ s(To, { txHash: e.txhash, chainId: t.chainId, className: gt.link, children: /* @__PURE__ */ h("div", { className: gt.inner, children: [
|
|
8411
8416
|
/* @__PURE__ */ h("div", { className: gt.header, children: [
|
|
8412
8417
|
/* @__PURE__ */ h("div", { className: gt.time, children: [
|
|
8413
8418
|
e.code !== 0 && /* @__PURE__ */ s(ho, { size: 14, className: gt.error }),
|
|
@@ -8419,15 +8424,15 @@ const cv = "_countdown_vfms8_1", lv = {
|
|
|
8419
8424
|
] })
|
|
8420
8425
|
] }),
|
|
8421
8426
|
/* @__PURE__ */ h("div", { className: gt.content, children: [
|
|
8422
|
-
/* @__PURE__ */ s("div", { className: gt.messages, children: /* @__PURE__ */ s(
|
|
8423
|
-
/* @__PURE__ */ s("div", { className: gt.changes, children: /* @__PURE__ */ s(he, { suspenseFallback: null, errorBoundaryProps: { fallback: null }, children: /* @__PURE__ */ s(
|
|
8427
|
+
/* @__PURE__ */ s("div", { className: gt.messages, children: /* @__PURE__ */ s(fb, { messages: e.tx.body.messages }) }),
|
|
8428
|
+
/* @__PURE__ */ s("div", { className: gt.changes, children: /* @__PURE__ */ s(he, { suspenseFallback: null, errorBoundaryProps: { fallback: null }, children: /* @__PURE__ */ s(ub, { ...e, chain: t }) }) })
|
|
8424
8429
|
] })
|
|
8425
|
-
] }) }),
|
|
8426
|
-
list:
|
|
8427
|
-
dateGroup:
|
|
8428
|
-
dateHeader:
|
|
8429
|
-
more:
|
|
8430
|
-
},
|
|
8430
|
+
] }) }), xb = "_list_1mv55_1", Ab = "_dateGroup_1mv55_7", Sb = "_dateHeader_1mv55_12", $b = "_more_1mv55_18", Ds = {
|
|
8431
|
+
list: xb,
|
|
8432
|
+
dateGroup: Ab,
|
|
8433
|
+
dateHeader: Sb,
|
|
8434
|
+
more: $b
|
|
8435
|
+
}, Tb = ({ list: e, chainId: t }) => {
|
|
8431
8436
|
const n = X(), o = S(() => ul(e, (a) => {
|
|
8432
8437
|
if (a.timestamp)
|
|
8433
8438
|
return new Date(a.timestamp);
|
|
@@ -8435,7 +8440,7 @@ const cv = "_countdown_vfms8_1", lv = {
|
|
|
8435
8440
|
return e.length === 0 ? /* @__PURE__ */ s(ge, { children: "No activity found" }) : /* @__PURE__ */ h(W, { children: [
|
|
8436
8441
|
/* @__PURE__ */ s("div", { className: Ds.list, children: Object.entries(o).map(([a, r]) => /* @__PURE__ */ h("div", { className: Ds.dateGroup, children: [
|
|
8437
8442
|
/* @__PURE__ */ s("div", { className: Ds.dateHeader, children: a }),
|
|
8438
|
-
r.map((i) => /* @__PURE__ */ s(he, { errorBoundaryProps: { fallback: null }, children: /* @__PURE__ */ s(
|
|
8443
|
+
r.map((i) => /* @__PURE__ */ s(he, { errorBoundaryProps: { fallback: null }, children: /* @__PURE__ */ s(Ib, { txItem: i, chain: i.chain }) }, i.txhash))
|
|
8439
8444
|
] }, a)) }),
|
|
8440
8445
|
/* @__PURE__ */ s(
|
|
8441
8446
|
To,
|
|
@@ -8449,8 +8454,8 @@ const cv = "_countdown_vfms8_1", lv = {
|
|
|
8449
8454
|
}
|
|
8450
8455
|
)
|
|
8451
8456
|
] });
|
|
8452
|
-
},
|
|
8453
|
-
const { activities: e, isLoading: t } = Lm(), [n, o] = Se(
|
|
8457
|
+
}, Eb = () => {
|
|
8458
|
+
const { activities: e, isLoading: t } = Lm(), [n, o] = Se(ab), a = oe(), r = S(() => Array.from(new Set(e.map((c) => c.chain.chainId))), [e]), i = S(() => n ? e.filter((c) => c.chain.chainId === n) : e, [e, n]);
|
|
8454
8459
|
return t && e.length === 0 ? /* @__PURE__ */ s(ge, { children: "Loading activities..." }) : !e.length && !t ? /* @__PURE__ */ s(ge, { children: "No activity yet" }) : /* @__PURE__ */ h(nt.Root, { children: [
|
|
8455
8460
|
/* @__PURE__ */ s(nt.Controls, { children: /* @__PURE__ */ s(
|
|
8456
8461
|
Do,
|
|
@@ -8461,13 +8466,13 @@ const cv = "_countdown_vfms8_1", lv = {
|
|
|
8461
8466
|
fullWidth: !0
|
|
8462
8467
|
}
|
|
8463
8468
|
) }),
|
|
8464
|
-
/* @__PURE__ */ s(
|
|
8469
|
+
/* @__PURE__ */ s(Tb, { list: i, chainId: n || a.chainId })
|
|
8465
8470
|
] });
|
|
8466
|
-
},
|
|
8467
|
-
thumbnail:
|
|
8468
|
-
placeholder:
|
|
8469
|
-
clickable:
|
|
8470
|
-
},
|
|
8471
|
+
}, Lb = "_thumbnail_1xyqw_1", qb = "_placeholder_1xyqw_18", Pb = "_clickable_1xyqw_24", Un = {
|
|
8472
|
+
thumbnail: Lb,
|
|
8473
|
+
placeholder: qb,
|
|
8474
|
+
clickable: Pb
|
|
8475
|
+
}, Mb = ({ nftInfo: e, size: t, onClick: n }) => {
|
|
8471
8476
|
const { collection_addr: o, object_addr: a, nft: r, chain: i } = e, { glyphUrl: c } = J(), l = new URL(
|
|
8472
8477
|
`/v1/${i.chainId}/${o}/${a || r.token_id}`,
|
|
8473
8478
|
c
|
|
@@ -8481,10 +8486,10 @@ const cv = "_countdown_vfms8_1", lv = {
|
|
|
8481
8486
|
children: /* @__PURE__ */ s(Z, { src: l, classNames: { placeholder: Un.placeholder } })
|
|
8482
8487
|
}
|
|
8483
8488
|
) : /* @__PURE__ */ s("div", { className: Un.thumbnail, style: { width: t, height: t }, children: /* @__PURE__ */ s(Z, { src: l, classNames: { placeholder: Un.placeholder } }) });
|
|
8484
|
-
},
|
|
8485
|
-
collectionName:
|
|
8486
|
-
nftName:
|
|
8487
|
-
chainInfo:
|
|
8489
|
+
}, Db = "_collectionName_qs5tw_1", Rb = "_nftName_qs5tw_6", Bb = "_chainInfo_qs5tw_10", ra = {
|
|
8490
|
+
collectionName: Db,
|
|
8491
|
+
nftName: Rb,
|
|
8492
|
+
chainInfo: Bb
|
|
8488
8493
|
}, dr = ({
|
|
8489
8494
|
normalizedNft: e,
|
|
8490
8495
|
onThumbnailClick: t,
|
|
@@ -8494,7 +8499,7 @@ const cv = "_countdown_vfms8_1", lv = {
|
|
|
8494
8499
|
}) => {
|
|
8495
8500
|
const { collection_name: r, name: i, chain: c } = e;
|
|
8496
8501
|
return /* @__PURE__ */ h("div", { className: a?.root, children: [
|
|
8497
|
-
/* @__PURE__ */ s(
|
|
8502
|
+
/* @__PURE__ */ s(Mb, { nftInfo: e, onClick: t, size: n }),
|
|
8498
8503
|
/* @__PURE__ */ h("div", { children: [
|
|
8499
8504
|
/* @__PURE__ */ s("div", { className: L(ra.collectionName, a?.collectionName), children: r }),
|
|
8500
8505
|
/* @__PURE__ */ s("div", { className: L(ra.nftName, a?.nftName), children: i }),
|
|
@@ -8508,14 +8513,14 @@ const cv = "_countdown_vfms8_1", lv = {
|
|
|
8508
8513
|
nfts: (e, t) => [e, t],
|
|
8509
8514
|
metadata: (e) => [e]
|
|
8510
8515
|
});
|
|
8511
|
-
function
|
|
8516
|
+
function Ub(e, t) {
|
|
8512
8517
|
const { nft: n } = e, o = t.name ?? n.token_id;
|
|
8513
8518
|
return { ...e, ...n, ...t, name: o };
|
|
8514
8519
|
}
|
|
8515
|
-
function
|
|
8520
|
+
function Fb(e, t) {
|
|
8516
8521
|
return e.flatMap((n, o) => (t[o] ?? []).map((r) => ({ ...r, chain: n })));
|
|
8517
8522
|
}
|
|
8518
|
-
const
|
|
8523
|
+
const Ob = () => {
|
|
8519
8524
|
const e = X(), t = le(), n = xn({
|
|
8520
8525
|
queries: t.map((l) => ({
|
|
8521
8526
|
queryKey: ur.nfts(l.indexerUrl, e).queryKey,
|
|
@@ -8526,13 +8531,13 @@ const Fb = () => {
|
|
|
8526
8531
|
),
|
|
8527
8532
|
staleTime: F.SECOND
|
|
8528
8533
|
}))
|
|
8529
|
-
}), o = n.map(Zt("data")), a =
|
|
8534
|
+
}), o = n.map(Zt("data")), a = Fb(t, o), r = a.reduce(
|
|
8530
8535
|
(l, { chain: d }) => ({ ...l, [d.chainId]: (l[d.chainId] || 0) + 1 }),
|
|
8531
8536
|
{}
|
|
8532
8537
|
), i = Object.values(r).reduce((l, d) => l + d, 0), c = n.some((l) => l.isLoading);
|
|
8533
8538
|
return { nftInfos: a, chainCounts: r, totalCount: i, isLoading: c };
|
|
8534
8539
|
};
|
|
8535
|
-
function
|
|
8540
|
+
function Vb(e) {
|
|
8536
8541
|
const t = Xr(e);
|
|
8537
8542
|
return _e({
|
|
8538
8543
|
queryKey: ur.metadata(t).queryKey,
|
|
@@ -8551,17 +8556,17 @@ function Ob(e) {
|
|
|
8551
8556
|
function Xr(e) {
|
|
8552
8557
|
return e?.replace("ipfs://", "https://ipfs.io/ipfs/");
|
|
8553
8558
|
}
|
|
8554
|
-
const
|
|
8555
|
-
const { data: n = {} } =
|
|
8559
|
+
const Kb = ({ nftInfo: e, children: t }) => {
|
|
8560
|
+
const { data: n = {} } = Vb(e.nft.uri), o = Ub(e, n);
|
|
8556
8561
|
return t(o);
|
|
8557
|
-
},
|
|
8558
|
-
grid:
|
|
8559
|
-
root:
|
|
8560
|
-
collectionName:
|
|
8561
|
-
nftName:
|
|
8562
|
-
chainInfo:
|
|
8563
|
-
},
|
|
8564
|
-
const [e, t] = Se(
|
|
8562
|
+
}, jb = "_grid_1wwdn_1", Wb = "_root_1wwdn_7", zb = "_collectionName_1wwdn_15", Hb = "_nftName_1wwdn_23", Gb = "_chainInfo_1wwdn_32", ei = {
|
|
8563
|
+
grid: jb,
|
|
8564
|
+
root: Wb,
|
|
8565
|
+
collectionName: zb,
|
|
8566
|
+
nftName: Hb,
|
|
8567
|
+
chainInfo: Gb
|
|
8568
|
+
}, Qb = () => {
|
|
8569
|
+
const [e, t] = Se(sb), [n, o] = Se(ob), { nftInfos: a, chainCounts: r, totalCount: i, isLoading: c } = Ob(), l = Te(), d = S(() => a.filter(({ collection_addr: u, collection_name: f, nft: p, object_addr: g, chain: _ }) => {
|
|
8565
8570
|
if (n && _.chainId !== n)
|
|
8566
8571
|
return !1;
|
|
8567
8572
|
if (e) {
|
|
@@ -8593,7 +8598,7 @@ const Vb = ({ nftInfo: e, children: t }) => {
|
|
|
8593
8598
|
] }),
|
|
8594
8599
|
d.length === 0 ? /* @__PURE__ */ s(ge, { children: "No NFTs found" }) : /* @__PURE__ */ s("div", { className: ei.grid, children: d.map((u) => {
|
|
8595
8600
|
const { collection_addr: f, nft: p } = u;
|
|
8596
|
-
return /* @__PURE__ */ s(
|
|
8601
|
+
return /* @__PURE__ */ s(Kb, { nftInfo: u, children: (g) => /* @__PURE__ */ s(
|
|
8597
8602
|
dr,
|
|
8598
8603
|
{
|
|
8599
8604
|
normalizedNft: g,
|
|
@@ -8607,9 +8612,9 @@ const Vb = ({ nftInfo: e, children: t }) => {
|
|
|
8607
8612
|
function Pl() {
|
|
8608
8613
|
return vt(ql);
|
|
8609
8614
|
}
|
|
8610
|
-
const
|
|
8611
|
-
popup:
|
|
8612
|
-
item:
|
|
8615
|
+
const Yb = "_popup_nbecp_1", Zb = "_item_nbecp_19", Rs = {
|
|
8616
|
+
popup: Yb,
|
|
8617
|
+
item: Zb
|
|
8613
8618
|
}, Ml = ({ asset: e, children: t }) => {
|
|
8614
8619
|
const { denom: n, decimals: o, symbol: a, logoUrl: r, unlisted: i, address: c, chain: l } = e, { chainId: d } = l, [m, u] = V(!1), f = Te(), p = Pl(), { showNotification: g } = Eo(), { defaultChainId: _ } = J(), { evm_chain_id: y } = on(), w = zl(), { switchChainAsync: v } = Hl(), { watchAssetAsync: N } = Gl(), b = () => {
|
|
8615
8620
|
u(!1), f("/send", { denom: n, chain: l });
|
|
@@ -8661,15 +8666,15 @@ const Qb = "_popup_nbecp_1", Yb = "_item_nbecp_19", Rs = {
|
|
|
8661
8666
|
)
|
|
8662
8667
|
] }) }) })
|
|
8663
8668
|
] });
|
|
8664
|
-
},
|
|
8665
|
-
item:
|
|
8666
|
-
info:
|
|
8667
|
-
images:
|
|
8668
|
-
name:
|
|
8669
|
-
value:
|
|
8670
|
-
amount:
|
|
8671
|
-
usd:
|
|
8672
|
-
},
|
|
8669
|
+
}, Jb = "_item_38qhm_1", Xb = "_info_38qhm_23", eN = "_images_38qhm_29", tN = "_name_38qhm_33", nN = "_value_38qhm_39", sN = "_amount_38qhm_47", oN = "_usd_38qhm_53", Ht = {
|
|
8670
|
+
item: Jb,
|
|
8671
|
+
info: Xb,
|
|
8672
|
+
images: eN,
|
|
8673
|
+
name: tN,
|
|
8674
|
+
value: nN,
|
|
8675
|
+
amount: sN,
|
|
8676
|
+
usd: oN
|
|
8677
|
+
}, aN = ({ asset: e }) => {
|
|
8673
8678
|
const { amount: t, value: n, logoUrl: o, chain: a } = e, r = fe(t, { decimals: e.decimals });
|
|
8674
8679
|
return /* @__PURE__ */ s(Ml, { asset: e, children: /* @__PURE__ */ h("button", { className: Ht.item, children: [
|
|
8675
8680
|
/* @__PURE__ */ h("div", { className: Ht.info, children: [
|
|
@@ -8691,27 +8696,27 @@ const Qb = "_popup_nbecp_1", Yb = "_item_nbecp_19", Rs = {
|
|
|
8691
8696
|
Number(n) > 0 && /* @__PURE__ */ s("span", { className: Ht.usd, children: ee(n) })
|
|
8692
8697
|
] })
|
|
8693
8698
|
] }) });
|
|
8694
|
-
},
|
|
8695
|
-
container:
|
|
8696
|
-
assetItem:
|
|
8697
|
-
expandIcon:
|
|
8698
|
-
assetInfo:
|
|
8699
|
-
logo:
|
|
8700
|
-
details:
|
|
8701
|
-
symbol:
|
|
8702
|
-
chainName:
|
|
8703
|
-
chainInfos:
|
|
8704
|
-
chainLogos:
|
|
8705
|
-
chainLogo:
|
|
8706
|
-
moreChains:
|
|
8707
|
-
expanded:
|
|
8708
|
-
valueColumn:
|
|
8709
|
-
amount:
|
|
8710
|
-
value:
|
|
8711
|
-
collapsibleContent:
|
|
8712
|
-
chainsList:
|
|
8713
|
-
},
|
|
8714
|
-
const { symbol: t, logoUrl: n, assets: o } = e, a = o.length === 1, [r, i] = Se(
|
|
8699
|
+
}, rN = "_container_ytg3p_1", iN = "_assetItem_ytg3p_6", cN = "_expandIcon_ytg3p_22", lN = "_assetInfo_ytg3p_27", dN = "_logo_ytg3p_33", uN = "_details_ytg3p_37", mN = "_symbol_ytg3p_42", hN = "_chainName_ytg3p_53", fN = "_chainInfos_ytg3p_59", pN = "_chainLogos_ytg3p_65", gN = "_chainLogo_ytg3p_65", _N = "_moreChains_ytg3p_76", yN = "_expanded_ytg3p_93", wN = "_valueColumn_ytg3p_98", vN = "_amount_ytg3p_108", bN = "_value_ytg3p_98", NN = "_collapsibleContent_ytg3p_121", CN = "_chainsList_ytg3p_151", we = {
|
|
8700
|
+
container: rN,
|
|
8701
|
+
assetItem: iN,
|
|
8702
|
+
expandIcon: cN,
|
|
8703
|
+
assetInfo: lN,
|
|
8704
|
+
logo: dN,
|
|
8705
|
+
details: uN,
|
|
8706
|
+
symbol: mN,
|
|
8707
|
+
chainName: hN,
|
|
8708
|
+
chainInfos: fN,
|
|
8709
|
+
chainLogos: pN,
|
|
8710
|
+
chainLogo: gN,
|
|
8711
|
+
moreChains: _N,
|
|
8712
|
+
expanded: yN,
|
|
8713
|
+
valueColumn: wN,
|
|
8714
|
+
amount: vN,
|
|
8715
|
+
value: bN,
|
|
8716
|
+
collapsibleContent: NN,
|
|
8717
|
+
chainsList: CN
|
|
8718
|
+
}, kN = ke([]), mr = ({ assetGroup: e }) => {
|
|
8719
|
+
const { symbol: t, logoUrl: n, assets: o } = e, a = o.length === 1, [r, i] = Se(kN), c = S(() => Qm(e), [e]), l = S(() => xc(e), [e]), d = r.includes(t), m = () => {
|
|
8715
8720
|
i(
|
|
8716
8721
|
(f) => d ? f.filter((p) => p !== t) : [.../* @__PURE__ */ new Set([...f, t])]
|
|
8717
8722
|
);
|
|
@@ -8757,16 +8762,16 @@ const Qb = "_popup_nbecp_1", Yb = "_item_nbecp_19", Rs = {
|
|
|
8757
8762
|
}
|
|
8758
8763
|
return /* @__PURE__ */ s("div", { className: we.container, children: /* @__PURE__ */ h(ue.Root, { open: d, onOpenChange: m, children: [
|
|
8759
8764
|
/* @__PURE__ */ s(ue.Trigger, { asChild: !0, children: u() }),
|
|
8760
|
-
/* @__PURE__ */ s(ue.Content, { className: we.collapsibleContent, children: /* @__PURE__ */ s("div", { className: we.chainsList, children: o.map((f) => /* @__PURE__ */ s(
|
|
8765
|
+
/* @__PURE__ */ s(ue.Content, { className: we.collapsibleContent, children: /* @__PURE__ */ s("div", { className: we.chainsList, children: o.map((f) => /* @__PURE__ */ s(aN, { asset: f }, f.chain.chainId)) }) })
|
|
8761
8766
|
] }) });
|
|
8762
|
-
},
|
|
8763
|
-
collapsible:
|
|
8764
|
-
trigger:
|
|
8765
|
-
divider:
|
|
8766
|
-
label:
|
|
8767
|
-
chevron:
|
|
8768
|
-
content:
|
|
8769
|
-
list:
|
|
8767
|
+
}, IN = "_collapsible_1g7rh_1", xN = "_trigger_1g7rh_5", AN = "_divider_1g7rh_20", SN = "_label_1g7rh_28", $N = "_chevron_1g7rh_33", TN = "_content_1g7rh_41", EN = "_list_1g7rh_45", Dt = {
|
|
8768
|
+
collapsible: IN,
|
|
8769
|
+
trigger: xN,
|
|
8770
|
+
divider: AN,
|
|
8771
|
+
label: SN,
|
|
8772
|
+
chevron: $N,
|
|
8773
|
+
content: TN,
|
|
8774
|
+
list: EN
|
|
8770
8775
|
}, Dl = ({ unlistedAssets: e }) => {
|
|
8771
8776
|
const [t, n] = V(!1), o = Pl(), a = Ke(null), [r, i] = V(0);
|
|
8772
8777
|
Q(() => {
|
|
@@ -8816,13 +8821,13 @@ const Qb = "_popup_nbecp_1", Yb = "_item_nbecp_19", Rs = {
|
|
|
8816
8821
|
] }),
|
|
8817
8822
|
/* @__PURE__ */ s(ue.Content, { forceMount: !0, asChild: !0, children: /* @__PURE__ */ s(as.div, { className: Dt.content, style: d, children: /* @__PURE__ */ s("div", { className: Dt.list, ref: a, children: m.map((u) => /* @__PURE__ */ s(mr, { assetGroup: u }, u.assets[0].denom)) }) }) })
|
|
8818
8823
|
] });
|
|
8819
|
-
},
|
|
8820
|
-
container:
|
|
8821
|
-
header:
|
|
8822
|
-
title:
|
|
8823
|
-
totalValue:
|
|
8824
|
-
list:
|
|
8825
|
-
},
|
|
8824
|
+
}, LN = "_container_15xfg_1", qN = "_header_15xfg_7", PN = "_title_15xfg_13", MN = "_totalValue_15xfg_19", DN = "_list_15xfg_26", wn = {
|
|
8825
|
+
container: LN,
|
|
8826
|
+
header: qN,
|
|
8827
|
+
title: PN,
|
|
8828
|
+
totalValue: MN,
|
|
8829
|
+
list: DN
|
|
8830
|
+
}, RN = () => {
|
|
8826
8831
|
const [e, t] = Se(Tl), [n, o] = Se(El), { assetGroups: a, unlistedAssets: r, chainsByValue: i, totalValue: c, isLoading: l } = Ac(), d = i.map(({ chainId: f }) => f), m = S(() => {
|
|
8827
8832
|
const f = e ? a.filter((g) => {
|
|
8828
8833
|
const { symbol: _, assets: y } = g;
|
|
@@ -8868,12 +8873,12 @@ const Qb = "_popup_nbecp_1", Yb = "_item_nbecp_19", Rs = {
|
|
|
8868
8873
|
/* @__PURE__ */ s(Dl, { unlistedAssets: u })
|
|
8869
8874
|
] }) })
|
|
8870
8875
|
] });
|
|
8871
|
-
},
|
|
8872
|
-
container:
|
|
8876
|
+
}, BN = "_container_11k2x_1", UN = {
|
|
8877
|
+
container: BN
|
|
8873
8878
|
}, tt = ({ height: e, length: t = 1, width: n = "100%" }) => {
|
|
8874
8879
|
const o = Array.from({ length: t }, (a, r) => r);
|
|
8875
|
-
return t === 1 ? /* @__PURE__ */ s(Xt, { height: e, width: n }) : /* @__PURE__ */ s("div", { className:
|
|
8876
|
-
},
|
|
8880
|
+
return t === 1 ? /* @__PURE__ */ s(Xt, { height: e, width: n }) : /* @__PURE__ */ s("div", { className: UN.container, children: o.map((a) => /* @__PURE__ */ s(Xt, { height: e, width: n }, a)) });
|
|
8881
|
+
}, FN = li(
|
|
8877
8882
|
({
|
|
8878
8883
|
searchQuery: e,
|
|
8879
8884
|
selectedChain: t,
|
|
@@ -8903,14 +8908,14 @@ const Qb = "_popup_nbecp_1", Yb = "_item_nbecp_19", Rs = {
|
|
|
8903
8908
|
] }) : u.length === 0 && c ? /* @__PURE__ */ s(tt, { height: 56, length: 3 }) : /* @__PURE__ */ s(ge, { children: "No liquid assets" })
|
|
8904
8909
|
] });
|
|
8905
8910
|
}
|
|
8906
|
-
),
|
|
8911
|
+
), ON = Ce("interwovenkit:civitia", {
|
|
8907
8912
|
player: (e, t) => [e, t]
|
|
8908
8913
|
});
|
|
8909
8914
|
function Rl() {
|
|
8910
8915
|
const { civitiaUrl: e } = J(), t = X();
|
|
8911
8916
|
return _e({
|
|
8912
8917
|
enabled: !!t,
|
|
8913
|
-
queryKey:
|
|
8918
|
+
queryKey: ON.player(e, t ?? "").queryKey,
|
|
8914
8919
|
queryFn: async () => {
|
|
8915
8920
|
if (!t)
|
|
8916
8921
|
throw new Error("address is not available");
|
|
@@ -8921,17 +8926,17 @@ function Rl() {
|
|
|
8921
8926
|
throwOnError: !1
|
|
8922
8927
|
});
|
|
8923
8928
|
}
|
|
8924
|
-
const
|
|
8925
|
-
section:
|
|
8926
|
-
row:
|
|
8927
|
-
rowLeft:
|
|
8928
|
-
rowIcon:
|
|
8929
|
-
goldIcon:
|
|
8930
|
-
silverIcon:
|
|
8931
|
-
rowTitle:
|
|
8932
|
-
rowValue:
|
|
8933
|
-
rowSubtitle:
|
|
8934
|
-
},
|
|
8929
|
+
const VN = "_section_xdyfz_2", KN = "_row_xdyfz_15", jN = "_rowLeft_xdyfz_23", WN = "_rowIcon_xdyfz_29", zN = "_goldIcon_xdyfz_38", HN = "_silverIcon_xdyfz_46", GN = "_rowTitle_xdyfz_54", QN = "_rowValue_xdyfz_60", YN = "_rowSubtitle_xdyfz_67", Ee = {
|
|
8930
|
+
section: VN,
|
|
8931
|
+
row: KN,
|
|
8932
|
+
rowLeft: jN,
|
|
8933
|
+
rowIcon: WN,
|
|
8934
|
+
goldIcon: zN,
|
|
8935
|
+
silverIcon: HN,
|
|
8936
|
+
rowTitle: GN,
|
|
8937
|
+
rowValue: QN,
|
|
8938
|
+
rowSubtitle: YN
|
|
8939
|
+
}, ZN = () => {
|
|
8935
8940
|
const { data: e, isLoading: t } = Rl();
|
|
8936
8941
|
if (t)
|
|
8937
8942
|
return /* @__PURE__ */ s(tt, { height: 36, length: 2 });
|
|
@@ -8952,36 +8957,36 @@ const ON = "_section_xdyfz_2", VN = "_row_xdyfz_15", KN = "_rowLeft_xdyfz_23", j
|
|
|
8952
8957
|
/* @__PURE__ */ s("span", { className: L(Ee.rowValue, o === 0 && Ee.rowSubtitle), children: o === 0 ? "—" : st(o, { dp: 6 }) })
|
|
8953
8958
|
] })
|
|
8954
8959
|
] });
|
|
8955
|
-
},
|
|
8956
|
-
container:
|
|
8957
|
-
section:
|
|
8958
|
-
sectionHeader:
|
|
8959
|
-
sectionTitle:
|
|
8960
|
-
sectionLabel:
|
|
8961
|
-
externalLink:
|
|
8962
|
-
sectionValue:
|
|
8963
|
-
tokenList:
|
|
8964
|
-
stakingTokenList:
|
|
8965
|
-
tokenRow:
|
|
8966
|
-
tokenMain:
|
|
8967
|
-
tokenTrigger:
|
|
8968
|
-
tokenChevron:
|
|
8969
|
-
expanded:
|
|
8970
|
-
triggerValue:
|
|
8971
|
-
tokenInfo:
|
|
8972
|
-
tokenInfoLabel:
|
|
8973
|
-
tokenLogo:
|
|
8974
|
-
tokenSymbol:
|
|
8975
|
-
tokenValues:
|
|
8976
|
-
tokenAmount:
|
|
8977
|
-
tokenValue:
|
|
8978
|
-
typeBreakdown:
|
|
8979
|
-
typeRow:
|
|
8980
|
-
typeLabel:
|
|
8981
|
-
typeValues:
|
|
8982
|
-
typeAmount:
|
|
8983
|
-
typeValue:
|
|
8984
|
-
collapsibleContent:
|
|
8960
|
+
}, JN = "_container_1n61l_1", XN = "_section_1n61l_7", eC = "_sectionHeader_1n61l_19", tC = "_sectionTitle_1n61l_25", nC = "_sectionLabel_1n61l_31", sC = "_externalLink_1n61l_37", oC = "_sectionValue_1n61l_49", aC = "_tokenList_1n61l_56", rC = "_stakingTokenList_1n61l_62", iC = "_tokenRow_1n61l_72", cC = "_tokenMain_1n61l_78", lC = "_tokenTrigger_1n61l_84", dC = "_tokenChevron_1n61l_100", uC = "_expanded_1n61l_111", mC = "_triggerValue_1n61l_115", hC = "_tokenInfo_1n61l_122", fC = "_tokenInfoLabel_1n61l_128", pC = "_tokenLogo_1n61l_134", gC = "_tokenSymbol_1n61l_138", _C = "_tokenValues_1n61l_144", yC = "_tokenAmount_1n61l_150", wC = "_tokenValue_1n61l_144", vC = "_typeBreakdown_1n61l_164", bC = "_typeRow_1n61l_172", NC = "_typeLabel_1n61l_180", CC = "_typeValues_1n61l_186", kC = "_typeAmount_1n61l_192", IC = "_typeValue_1n61l_186", xC = "_collapsibleContent_1n61l_206", G = {
|
|
8961
|
+
container: JN,
|
|
8962
|
+
section: XN,
|
|
8963
|
+
sectionHeader: eC,
|
|
8964
|
+
sectionTitle: tC,
|
|
8965
|
+
sectionLabel: nC,
|
|
8966
|
+
externalLink: sC,
|
|
8967
|
+
sectionValue: oC,
|
|
8968
|
+
tokenList: aC,
|
|
8969
|
+
stakingTokenList: rC,
|
|
8970
|
+
tokenRow: iC,
|
|
8971
|
+
tokenMain: cC,
|
|
8972
|
+
tokenTrigger: lC,
|
|
8973
|
+
tokenChevron: dC,
|
|
8974
|
+
expanded: uC,
|
|
8975
|
+
triggerValue: mC,
|
|
8976
|
+
tokenInfo: hC,
|
|
8977
|
+
tokenInfoLabel: fC,
|
|
8978
|
+
tokenLogo: pC,
|
|
8979
|
+
tokenSymbol: gC,
|
|
8980
|
+
tokenValues: _C,
|
|
8981
|
+
tokenAmount: yC,
|
|
8982
|
+
tokenValue: wC,
|
|
8983
|
+
typeBreakdown: vC,
|
|
8984
|
+
typeRow: bC,
|
|
8985
|
+
typeLabel: NC,
|
|
8986
|
+
typeValues: CC,
|
|
8987
|
+
typeAmount: kC,
|
|
8988
|
+
typeValue: IC,
|
|
8989
|
+
collapsibleContent: xC
|
|
8985
8990
|
}, Bl = ({
|
|
8986
8991
|
protocols: e,
|
|
8987
8992
|
denomLogoMap: t,
|
|
@@ -8994,7 +8999,7 @@ const ON = "_section_xdyfz_2", VN = "_row_xdyfz_15", KN = "_rowLeft_xdyfz_23", j
|
|
|
8994
8999
|
return bh(c);
|
|
8995
9000
|
}, [e]);
|
|
8996
9001
|
return i.size === 0 ? null : /* @__PURE__ */ s("div", { className: G.container, children: Array.from(i.entries()).map(([c, l]) => /* @__PURE__ */ s(
|
|
8997
|
-
|
|
9002
|
+
AC,
|
|
8998
9003
|
{
|
|
8999
9004
|
sectionKey: c,
|
|
9000
9005
|
sectionGroup: l,
|
|
@@ -9006,7 +9011,7 @@ const ON = "_section_xdyfz_2", VN = "_row_xdyfz_15", KN = "_rowLeft_xdyfz_23", j
|
|
|
9006
9011
|
},
|
|
9007
9012
|
c
|
|
9008
9013
|
)) });
|
|
9009
|
-
},
|
|
9014
|
+
}, AC = ({
|
|
9010
9015
|
sectionKey: e,
|
|
9011
9016
|
sectionGroup: t,
|
|
9012
9017
|
denomLogoMap: n,
|
|
@@ -9035,7 +9040,7 @@ const ON = "_section_xdyfz_2", VN = "_row_xdyfz_15", KN = "_rowLeft_xdyfz_23", j
|
|
|
9035
9040
|
/* @__PURE__ */ s("span", { className: G.sectionValue, children: ee(l) })
|
|
9036
9041
|
] }),
|
|
9037
9042
|
/* @__PURE__ */ s("div", { className: L(G.tokenList, { [G.stakingTokenList]: u }), children: m.map((f) => /* @__PURE__ */ s(
|
|
9038
|
-
|
|
9043
|
+
SC,
|
|
9039
9044
|
{
|
|
9040
9045
|
group: f,
|
|
9041
9046
|
showTypeBreakdown: u,
|
|
@@ -9046,7 +9051,7 @@ const ON = "_section_xdyfz_2", VN = "_row_xdyfz_15", KN = "_rowLeft_xdyfz_23", j
|
|
|
9046
9051
|
f.denom
|
|
9047
9052
|
)) })
|
|
9048
9053
|
] });
|
|
9049
|
-
},
|
|
9054
|
+
}, SC = ({
|
|
9050
9055
|
group: e,
|
|
9051
9056
|
showTypeBreakdown: t,
|
|
9052
9057
|
denomLogoMap: n,
|
|
@@ -9076,7 +9081,7 @@ const ON = "_section_xdyfz_2", VN = "_row_xdyfz_15", KN = "_rowLeft_xdyfz_23", j
|
|
|
9076
9081
|
/* @__PURE__ */ s("span", { className: G.triggerValue, children: ee(l) })
|
|
9077
9082
|
] }) }),
|
|
9078
9083
|
/* @__PURE__ */ s(ue.Content, { className: G.collapsibleContent, children: /* @__PURE__ */ s(
|
|
9079
|
-
|
|
9084
|
+
$C,
|
|
9080
9085
|
{
|
|
9081
9086
|
typeGroups: p,
|
|
9082
9087
|
symbol: i,
|
|
@@ -9095,7 +9100,7 @@ const ON = "_section_xdyfz_2", VN = "_row_xdyfz_15", KN = "_rowLeft_xdyfz_23", j
|
|
|
9095
9100
|
/* @__PURE__ */ s("span", { className: G.tokenValue, children: ee(l) })
|
|
9096
9101
|
] })
|
|
9097
9102
|
] }) });
|
|
9098
|
-
},
|
|
9103
|
+
}, $C = ({
|
|
9099
9104
|
typeGroups: e,
|
|
9100
9105
|
symbol: t,
|
|
9101
9106
|
denom: n,
|
|
@@ -9138,22 +9143,22 @@ const ON = "_section_xdyfz_2", VN = "_row_xdyfz_15", KN = "_rowLeft_xdyfz_23", j
|
|
|
9138
9143
|
] })
|
|
9139
9144
|
] })
|
|
9140
9145
|
] });
|
|
9141
|
-
},
|
|
9142
|
-
container:
|
|
9143
|
-
trigger:
|
|
9144
|
-
expandIcon:
|
|
9145
|
-
chainInfo:
|
|
9146
|
-
logo:
|
|
9147
|
-
chainNameContainer:
|
|
9148
|
-
chainName:
|
|
9149
|
-
externalLink:
|
|
9150
|
-
externalIcon:
|
|
9151
|
-
valueColumn:
|
|
9152
|
-
value:
|
|
9153
|
-
expanded:
|
|
9154
|
-
collapsibleContent:
|
|
9155
|
-
content:
|
|
9156
|
-
},
|
|
9146
|
+
}, TC = "_container_ymkoc_1", EC = "_trigger_ymkoc_6", LC = "_expandIcon_ymkoc_22", qC = "_chainInfo_ymkoc_27", PC = "_logo_ymkoc_33", MC = "_chainNameContainer_ymkoc_37", DC = "_chainName_ymkoc_37", RC = "_externalLink_ymkoc_49", BC = "_externalIcon_ymkoc_53", UC = "_valueColumn_ymkoc_63", FC = "_value_ymkoc_63", OC = "_expanded_ymkoc_80", VC = "_collapsibleContent_ymkoc_85", KC = "_content_ymkoc_97", Me = {
|
|
9147
|
+
container: TC,
|
|
9148
|
+
trigger: EC,
|
|
9149
|
+
expandIcon: LC,
|
|
9150
|
+
chainInfo: qC,
|
|
9151
|
+
logo: PC,
|
|
9152
|
+
chainNameContainer: MC,
|
|
9153
|
+
chainName: DC,
|
|
9154
|
+
externalLink: RC,
|
|
9155
|
+
externalIcon: BC,
|
|
9156
|
+
valueColumn: UC,
|
|
9157
|
+
value: FC,
|
|
9158
|
+
expanded: OC,
|
|
9159
|
+
collapsibleContent: VC,
|
|
9160
|
+
content: KC
|
|
9161
|
+
}, jC = ke([]), WC = ({ chainGroup: e }) => {
|
|
9157
9162
|
const { chainId: t, chainLogo: n, protocols: o } = e, a = le(), r = rs(), { denomLogos: i, symbolLogos: c } = S(
|
|
9158
9163
|
() => Za(r, a),
|
|
9159
9164
|
[r, a]
|
|
@@ -9168,8 +9173,8 @@ const ON = "_section_xdyfz_2", VN = "_row_xdyfz_15", KN = "_rowLeft_xdyfz_23", j
|
|
|
9168
9173
|
return d;
|
|
9169
9174
|
}, [o, i, c, t, n]);
|
|
9170
9175
|
return /* @__PURE__ */ s(Bl, { protocols: o, denomLogoMap: l });
|
|
9171
|
-
},
|
|
9172
|
-
const { chainName: t, chainLogo: n, protocols: o } = e, a = o[0]?.manageUrl, [r, i] = Se(
|
|
9176
|
+
}, zC = ({ chainGroup: e }) => {
|
|
9177
|
+
const { chainName: t, chainLogo: n, protocols: o } = e, a = o[0]?.manageUrl, [r, i] = Se(jC), c = S(() => o.reduce((g, _) => g + _.positions.reduce(
|
|
9173
9178
|
(y, w) => y + kn(w),
|
|
9174
9179
|
0
|
|
9175
9180
|
), 0), [o]), l = ["civitia", "yominet"], d = r.includes(t), m = t?.toLowerCase(), u = m === "civitia", f = l.includes(m), p = () => {
|
|
@@ -9208,37 +9213,37 @@ const ON = "_section_xdyfz_2", VN = "_row_xdyfz_15", KN = "_rowLeft_xdyfz_23", j
|
|
|
9208
9213
|
] })
|
|
9209
9214
|
] }) }),
|
|
9210
9215
|
/* @__PURE__ */ s(ue.Content, { className: Me.collapsibleContent, children: /* @__PURE__ */ h("div", { className: Me.content, children: [
|
|
9211
|
-
/* @__PURE__ */ s(
|
|
9212
|
-
u && /* @__PURE__ */ s(
|
|
9216
|
+
/* @__PURE__ */ s(WC, { chainGroup: e }),
|
|
9217
|
+
u && /* @__PURE__ */ s(ZN, {})
|
|
9213
9218
|
] }) })
|
|
9214
9219
|
] }) });
|
|
9215
|
-
},
|
|
9216
|
-
container:
|
|
9217
|
-
section:
|
|
9218
|
-
sectionHeader:
|
|
9219
|
-
sectionTitle:
|
|
9220
|
-
sectionLabel:
|
|
9221
|
-
externalLink:
|
|
9222
|
-
sectionValue:
|
|
9223
|
-
tokenList:
|
|
9224
|
-
tokenTrigger:
|
|
9225
|
-
tokenChevron:
|
|
9226
|
-
expanded:
|
|
9227
|
-
tokenInfo:
|
|
9228
|
-
tokenInfoLabel:
|
|
9229
|
-
tokenLogo:
|
|
9230
|
-
pairedLogos:
|
|
9231
|
-
coinLogo:
|
|
9232
|
-
tokenSymbol:
|
|
9233
|
-
triggerValue:
|
|
9234
|
-
breakdownContent:
|
|
9235
|
-
breakdownRow:
|
|
9236
|
-
breakdownLabel:
|
|
9237
|
-
breakdownValues:
|
|
9238
|
-
breakdownAmount:
|
|
9239
|
-
breakdownValue:
|
|
9240
|
-
collapsibleContent:
|
|
9241
|
-
},
|
|
9220
|
+
}, HC = "_container_1gqx9_1", GC = "_section_1gqx9_6", QC = "_sectionHeader_1gqx9_14", YC = "_sectionTitle_1gqx9_20", ZC = "_sectionLabel_1gqx9_26", JC = "_externalLink_1gqx9_32", XC = "_sectionValue_1gqx9_44", ek = "_tokenList_1gqx9_51", tk = "_tokenTrigger_1gqx9_63", nk = "_tokenChevron_1gqx9_79", sk = "_expanded_1gqx9_90", ok = "_tokenInfo_1gqx9_94", ak = "_tokenInfoLabel_1gqx9_100", rk = "_tokenLogo_1gqx9_106", ik = "_pairedLogos_1gqx9_110", ck = "_coinLogo_1gqx9_115", lk = "_tokenSymbol_1gqx9_133", dk = "_triggerValue_1gqx9_139", uk = "_breakdownContent_1gqx9_146", mk = "_breakdownRow_1gqx9_154", hk = "_breakdownLabel_1gqx9_162", fk = "_breakdownValues_1gqx9_168", pk = "_breakdownAmount_1gqx9_174", gk = "_breakdownValue_1gqx9_168", _k = "_collapsibleContent_1gqx9_195", ne = {
|
|
9221
|
+
container: HC,
|
|
9222
|
+
section: GC,
|
|
9223
|
+
sectionHeader: QC,
|
|
9224
|
+
sectionTitle: YC,
|
|
9225
|
+
sectionLabel: ZC,
|
|
9226
|
+
externalLink: JC,
|
|
9227
|
+
sectionValue: XC,
|
|
9228
|
+
tokenList: ek,
|
|
9229
|
+
tokenTrigger: tk,
|
|
9230
|
+
tokenChevron: nk,
|
|
9231
|
+
expanded: sk,
|
|
9232
|
+
tokenInfo: ok,
|
|
9233
|
+
tokenInfoLabel: ak,
|
|
9234
|
+
tokenLogo: rk,
|
|
9235
|
+
pairedLogos: ik,
|
|
9236
|
+
coinLogo: ck,
|
|
9237
|
+
tokenSymbol: lk,
|
|
9238
|
+
triggerValue: dk,
|
|
9239
|
+
breakdownContent: uk,
|
|
9240
|
+
breakdownRow: mk,
|
|
9241
|
+
breakdownLabel: hk,
|
|
9242
|
+
breakdownValues: fk,
|
|
9243
|
+
breakdownAmount: pk,
|
|
9244
|
+
breakdownValue: gk,
|
|
9245
|
+
collapsibleContent: _k
|
|
9246
|
+
}, yk = ({ data: e, denomLogoMap: t }) => {
|
|
9242
9247
|
const { totalValue: n, rows: o } = e;
|
|
9243
9248
|
return o.length === 0 ? null : /* @__PURE__ */ s("div", { className: ne.container, children: /* @__PURE__ */ h("div", { className: ne.section, children: [
|
|
9244
9249
|
/* @__PURE__ */ h("div", { className: ne.sectionHeader, children: [
|
|
@@ -9258,14 +9263,14 @@ const ON = "_section_xdyfz_2", VN = "_row_xdyfz_15", KN = "_rowLeft_xdyfz_23", j
|
|
|
9258
9263
|
] }),
|
|
9259
9264
|
/* @__PURE__ */ s("span", { className: ne.sectionValue, children: ee(n) })
|
|
9260
9265
|
] }),
|
|
9261
|
-
/* @__PURE__ */ s("div", { className: ne.tokenList, children: o.map((a) => /* @__PURE__ */ s(
|
|
9266
|
+
/* @__PURE__ */ s("div", { className: ne.tokenList, children: o.map((a) => /* @__PURE__ */ s(vk, { row: a, denomLogoMap: t }, a.denom)) })
|
|
9262
9267
|
] }) });
|
|
9263
|
-
},
|
|
9268
|
+
}, wk = {
|
|
9264
9269
|
deposit: "Deposit",
|
|
9265
9270
|
staking: "Staking",
|
|
9266
9271
|
lockStaking: "Lock staking",
|
|
9267
9272
|
unstaking: "Unstaking"
|
|
9268
|
-
},
|
|
9273
|
+
}, vk = ({ row: e, denomLogoMap: t }) => {
|
|
9269
9274
|
const { denom: n, symbol: o, totalValue: a, breakdown: r, logoUrl: i, coinLogos: c, claimableInit: l } = e, [d, m] = V(!1), u = t.get(n), f = i || u?.assetLogo, p = e.totalAmount > 0 ? e.totalValue / e.totalAmount : 0, g = S(
|
|
9270
9275
|
() => Object.entries(r).filter(
|
|
9271
9276
|
([, w]) => w > 0
|
|
@@ -9303,7 +9308,7 @@ const ON = "_section_xdyfz_2", VN = "_row_xdyfz_15", KN = "_rowLeft_xdyfz_23", j
|
|
|
9303
9308
|
g.map(([w, v]) => {
|
|
9304
9309
|
const N = v * p;
|
|
9305
9310
|
return /* @__PURE__ */ h("div", { className: ne.breakdownRow, children: [
|
|
9306
|
-
/* @__PURE__ */ s("span", { className: ne.breakdownLabel, children:
|
|
9311
|
+
/* @__PURE__ */ s("span", { className: ne.breakdownLabel, children: wk[w] }),
|
|
9307
9312
|
/* @__PURE__ */ h("div", { className: ne.breakdownValues, children: [
|
|
9308
9313
|
/* @__PURE__ */ h("span", { className: ne.breakdownAmount, children: [
|
|
9309
9314
|
st(v, { dp: 6 }),
|
|
@@ -9326,31 +9331,31 @@ const ON = "_section_xdyfz_2", VN = "_row_xdyfz_15", KN = "_rowLeft_xdyfz_23", j
|
|
|
9326
9331
|
] })
|
|
9327
9332
|
] }) })
|
|
9328
9333
|
] });
|
|
9329
|
-
},
|
|
9330
|
-
container:
|
|
9331
|
-
section:
|
|
9332
|
-
sectionHeader:
|
|
9333
|
-
sectionTitle:
|
|
9334
|
-
sectionLabel:
|
|
9335
|
-
externalLink:
|
|
9336
|
-
sectionValue:
|
|
9337
|
-
tokenList:
|
|
9338
|
-
tokenTrigger:
|
|
9339
|
-
tokenChevron:
|
|
9340
|
-
expanded:
|
|
9341
|
-
tokenInfo:
|
|
9342
|
-
tokenInfoLabel:
|
|
9343
|
-
tokenLogo:
|
|
9344
|
-
tokenName:
|
|
9345
|
-
triggerValue:
|
|
9346
|
-
breakdownContent:
|
|
9347
|
-
breakdownRow:
|
|
9348
|
-
breakdownLabel:
|
|
9349
|
-
breakdownValues:
|
|
9350
|
-
breakdownAmount:
|
|
9351
|
-
breakdownValue:
|
|
9352
|
-
collapsibleContent:
|
|
9353
|
-
},
|
|
9334
|
+
}, bk = "_container_1nijk_1", Nk = "_section_1nijk_6", Ck = "_sectionHeader_1nijk_14", kk = "_sectionTitle_1nijk_20", Ik = "_sectionLabel_1nijk_26", xk = "_externalLink_1nijk_32", Ak = "_sectionValue_1nijk_44", Sk = "_tokenList_1nijk_51", $k = "_tokenTrigger_1nijk_63", Tk = "_tokenChevron_1nijk_79", Ek = "_expanded_1nijk_90", Lk = "_tokenInfo_1nijk_94", qk = "_tokenInfoLabel_1nijk_100", Pk = "_tokenLogo_1nijk_106", Mk = "_tokenName_1nijk_110", Dk = "_triggerValue_1nijk_116", Rk = "_breakdownContent_1nijk_123", Bk = "_breakdownRow_1nijk_131", Uk = "_breakdownLabel_1nijk_139", Fk = "_breakdownValues_1nijk_145", Ok = "_breakdownAmount_1nijk_151", Vk = "_breakdownValue_1nijk_145", Kk = "_collapsibleContent_1nijk_165", re = {
|
|
9335
|
+
container: bk,
|
|
9336
|
+
section: Nk,
|
|
9337
|
+
sectionHeader: Ck,
|
|
9338
|
+
sectionTitle: kk,
|
|
9339
|
+
sectionLabel: Ik,
|
|
9340
|
+
externalLink: xk,
|
|
9341
|
+
sectionValue: Ak,
|
|
9342
|
+
tokenList: Sk,
|
|
9343
|
+
tokenTrigger: $k,
|
|
9344
|
+
tokenChevron: Tk,
|
|
9345
|
+
expanded: Ek,
|
|
9346
|
+
tokenInfo: Lk,
|
|
9347
|
+
tokenInfoLabel: qk,
|
|
9348
|
+
tokenLogo: Pk,
|
|
9349
|
+
tokenName: Mk,
|
|
9350
|
+
triggerValue: Dk,
|
|
9351
|
+
breakdownContent: Rk,
|
|
9352
|
+
breakdownRow: Bk,
|
|
9353
|
+
breakdownLabel: Uk,
|
|
9354
|
+
breakdownValues: Fk,
|
|
9355
|
+
breakdownAmount: Ok,
|
|
9356
|
+
breakdownValue: Vk,
|
|
9357
|
+
collapsibleContent: Kk
|
|
9358
|
+
}, jk = ({ data: e }) => {
|
|
9354
9359
|
const { totalValue: t, rows: n } = e;
|
|
9355
9360
|
return n.length === 0 ? null : /* @__PURE__ */ s("div", { className: re.container, children: /* @__PURE__ */ h("div", { className: re.section, children: [
|
|
9356
9361
|
/* @__PURE__ */ h("div", { className: re.sectionHeader, children: [
|
|
@@ -9370,9 +9375,9 @@ const ON = "_section_xdyfz_2", VN = "_row_xdyfz_15", KN = "_rowLeft_xdyfz_23", j
|
|
|
9370
9375
|
] }),
|
|
9371
9376
|
/* @__PURE__ */ s("span", { className: re.sectionValue, children: ee(t) })
|
|
9372
9377
|
] }),
|
|
9373
|
-
/* @__PURE__ */ s("div", { className: re.tokenList, children: n.map((o) => /* @__PURE__ */ s(
|
|
9378
|
+
/* @__PURE__ */ s("div", { className: re.tokenList, children: n.map((o) => /* @__PURE__ */ s(Wk, { row: o }, `${o.bridgeId}-${o.version}`)) })
|
|
9374
9379
|
] }) });
|
|
9375
|
-
},
|
|
9380
|
+
}, Wk = ({ row: e }) => {
|
|
9376
9381
|
const { name: t, logoUrl: n, lockedReward: o, lockedRewardValue: a, claimableReward: r, claimableRewardValue: i } = e, [c, l] = V(!1), d = a + i;
|
|
9377
9382
|
return /* @__PURE__ */ h(ue.Root, { open: c, onOpenChange: l, children: [
|
|
9378
9383
|
/* @__PURE__ */ s(ue.Trigger, { asChild: !0, children: /* @__PURE__ */ h("button", { className: re.tokenTrigger, children: [
|
|
@@ -9414,25 +9419,25 @@ const ON = "_section_xdyfz_2", VN = "_row_xdyfz_15", KN = "_rowLeft_xdyfz_23", j
|
|
|
9414
9419
|
] })
|
|
9415
9420
|
] }) })
|
|
9416
9421
|
] });
|
|
9417
|
-
},
|
|
9418
|
-
container:
|
|
9419
|
-
trigger:
|
|
9420
|
-
expandIcon:
|
|
9421
|
-
chainInfo:
|
|
9422
|
-
logo:
|
|
9423
|
-
chainNameContainer:
|
|
9424
|
-
chainName:
|
|
9425
|
-
externalLink:
|
|
9426
|
-
externalIcon:
|
|
9427
|
-
valueColumn:
|
|
9428
|
-
value:
|
|
9429
|
-
expanded:
|
|
9430
|
-
collapsibleContent:
|
|
9431
|
-
content:
|
|
9432
|
-
},
|
|
9422
|
+
}, zk = "_container_ymkoc_1", Hk = "_trigger_ymkoc_6", Gk = "_expandIcon_ymkoc_22", Qk = "_chainInfo_ymkoc_27", Yk = "_logo_ymkoc_33", Zk = "_chainNameContainer_ymkoc_37", Jk = "_chainName_ymkoc_37", Xk = "_externalLink_ymkoc_49", e3 = "_externalIcon_ymkoc_53", t3 = "_valueColumn_ymkoc_63", n3 = "_value_ymkoc_63", s3 = "_expanded_ymkoc_80", o3 = "_collapsibleContent_ymkoc_85", a3 = "_content_ymkoc_97", De = {
|
|
9423
|
+
container: zk,
|
|
9424
|
+
trigger: Hk,
|
|
9425
|
+
expandIcon: Gk,
|
|
9426
|
+
chainInfo: Qk,
|
|
9427
|
+
logo: Yk,
|
|
9428
|
+
chainNameContainer: Zk,
|
|
9429
|
+
chainName: Jk,
|
|
9430
|
+
externalLink: Xk,
|
|
9431
|
+
externalIcon: e3,
|
|
9432
|
+
valueColumn: t3,
|
|
9433
|
+
value: n3,
|
|
9434
|
+
expanded: s3,
|
|
9435
|
+
collapsibleContent: o3,
|
|
9436
|
+
content: a3
|
|
9437
|
+
}, r3 = ke(!1), i3 = () => {
|
|
9433
9438
|
const { totalValue: e } = Ga(), { totalValue: t } = Ya(), { totalValue: n } = Ao(), o = e + t + n;
|
|
9434
9439
|
return /* @__PURE__ */ s("span", { className: De.value, children: ee(o) });
|
|
9435
|
-
},
|
|
9440
|
+
}, c3 = ({
|
|
9436
9441
|
chainId: e,
|
|
9437
9442
|
chainLogo: t,
|
|
9438
9443
|
denomLogos: n,
|
|
@@ -9478,7 +9483,7 @@ const ON = "_section_xdyfz_2", VN = "_row_xdyfz_15", KN = "_rowLeft_xdyfz_23", j
|
|
|
9478
9483
|
initPrice: a
|
|
9479
9484
|
}
|
|
9480
9485
|
);
|
|
9481
|
-
},
|
|
9486
|
+
}, l3 = ({
|
|
9482
9487
|
chainId: e,
|
|
9483
9488
|
chainLogo: t,
|
|
9484
9489
|
denomLogos: n,
|
|
@@ -9492,12 +9497,12 @@ const ON = "_section_xdyfz_2", VN = "_row_xdyfz_15", KN = "_rowLeft_xdyfz_23", j
|
|
|
9492
9497
|
}
|
|
9493
9498
|
return i;
|
|
9494
9499
|
}, [a.rows, n, o, e, t]);
|
|
9495
|
-
return a.rows.length === 0 ? null : /* @__PURE__ */ s(
|
|
9496
|
-
},
|
|
9500
|
+
return a.rows.length === 0 ? null : /* @__PURE__ */ s(yk, { data: a, denomLogoMap: r });
|
|
9501
|
+
}, d3 = () => {
|
|
9497
9502
|
const e = Ao();
|
|
9498
|
-
return e.rows.length === 0 ? null : /* @__PURE__ */ s(
|
|
9499
|
-
},
|
|
9500
|
-
const { chainId: t, chainName: n, chainLogo: o } = e, [a, r] = Se(
|
|
9503
|
+
return e.rows.length === 0 ? null : /* @__PURE__ */ s(jk, { data: e });
|
|
9504
|
+
}, u3 = ({ chainGroup: e }) => {
|
|
9505
|
+
const { chainId: t, chainName: n, chainLogo: o } = e, [a, r] = Se(r3), i = le(), c = rs(), { denomLogos: l, symbolLogos: d } = S(
|
|
9501
9506
|
() => Za(c, i),
|
|
9502
9507
|
[c, i]
|
|
9503
9508
|
), m = oe(), { data: u } = At(m), f = S(() => u?.find((g) => g.id === qe)?.price ?? 0, [u]);
|
|
@@ -9521,7 +9526,7 @@ const ON = "_section_xdyfz_2", VN = "_row_xdyfz_15", KN = "_rowLeft_xdyfz_23", j
|
|
|
9521
9526
|
] })
|
|
9522
9527
|
] }),
|
|
9523
9528
|
/* @__PURE__ */ h("div", { className: De.valueColumn, children: [
|
|
9524
|
-
/* @__PURE__ */ s(he, { suspenseFallback: /* @__PURE__ */ s(tt, { height: 16, width: 60, length: 1 }), children: /* @__PURE__ */ s(
|
|
9529
|
+
/* @__PURE__ */ s(he, { suspenseFallback: /* @__PURE__ */ s(tt, { height: 16, width: 60, length: 1 }), children: /* @__PURE__ */ s(i3, {}) }),
|
|
9525
9530
|
/* @__PURE__ */ s(
|
|
9526
9531
|
$e,
|
|
9527
9532
|
{
|
|
@@ -9533,7 +9538,7 @@ const ON = "_section_xdyfz_2", VN = "_row_xdyfz_15", KN = "_rowLeft_xdyfz_23", j
|
|
|
9533
9538
|
] }) }),
|
|
9534
9539
|
/* @__PURE__ */ s(ue.Content, { className: De.collapsibleContent, children: /* @__PURE__ */ h("div", { className: De.content, children: [
|
|
9535
9540
|
/* @__PURE__ */ s(he, { suspenseFallback: /* @__PURE__ */ s(tt, { height: 36, length: 2 }), children: /* @__PURE__ */ s(
|
|
9536
|
-
|
|
9541
|
+
c3,
|
|
9537
9542
|
{
|
|
9538
9543
|
chainId: t,
|
|
9539
9544
|
chainLogo: o,
|
|
@@ -9543,7 +9548,7 @@ const ON = "_section_xdyfz_2", VN = "_row_xdyfz_15", KN = "_rowLeft_xdyfz_23", j
|
|
|
9543
9548
|
}
|
|
9544
9549
|
) }),
|
|
9545
9550
|
/* @__PURE__ */ s(he, { suspenseFallback: /* @__PURE__ */ s(tt, { height: 36, length: 2 }), children: /* @__PURE__ */ s(
|
|
9546
|
-
|
|
9551
|
+
l3,
|
|
9547
9552
|
{
|
|
9548
9553
|
chainId: t,
|
|
9549
9554
|
chainLogo: o,
|
|
@@ -9551,24 +9556,24 @@ const ON = "_section_xdyfz_2", VN = "_row_xdyfz_15", KN = "_rowLeft_xdyfz_23", j
|
|
|
9551
9556
|
symbolLogos: d
|
|
9552
9557
|
}
|
|
9553
9558
|
) }),
|
|
9554
|
-
/* @__PURE__ */ s(he, { suspenseFallback: /* @__PURE__ */ s(tt, { height: 36, length: 1 }), children: /* @__PURE__ */ s(
|
|
9559
|
+
/* @__PURE__ */ s(he, { suspenseFallback: /* @__PURE__ */ s(tt, { height: 36, length: 1 }), children: /* @__PURE__ */ s(d3, {}) })
|
|
9555
9560
|
] }) })
|
|
9556
9561
|
] }) });
|
|
9557
|
-
},
|
|
9558
|
-
totalValue:
|
|
9559
|
-
},
|
|
9562
|
+
}, m3 = "_totalValue_1v2ca_1", h3 = {
|
|
9563
|
+
totalValue: m3
|
|
9564
|
+
}, f3 = ({ filteredChainGroups: e }) => {
|
|
9560
9565
|
const { totalValue: t } = Ga(), { totalValue: n } = Ya(), { totalValue: o } = Ao(), a = t + n + o, r = S(() => {
|
|
9561
9566
|
const i = e.some((l) => l.isInitia);
|
|
9562
9567
|
return e.reduce((l, d) => d.isInitia ? l : l + d.totalValue, 0) + (i ? a : 0);
|
|
9563
9568
|
}, [e, a]);
|
|
9564
|
-
return /* @__PURE__ */ s("span", { className:
|
|
9565
|
-
},
|
|
9566
|
-
container:
|
|
9567
|
-
header:
|
|
9568
|
-
title:
|
|
9569
|
-
list:
|
|
9570
|
-
skeletonWrapper:
|
|
9571
|
-
},
|
|
9569
|
+
return /* @__PURE__ */ s("span", { className: h3.totalValue, children: ee(r) });
|
|
9570
|
+
}, p3 = "_container_1eubu_1", g3 = "_header_1eubu_7", _3 = "_title_1eubu_13", y3 = "_list_1eubu_19", w3 = "_skeletonWrapper_1eubu_24", Fn = {
|
|
9571
|
+
container: p3,
|
|
9572
|
+
header: g3,
|
|
9573
|
+
title: _3,
|
|
9574
|
+
list: y3,
|
|
9575
|
+
skeletonWrapper: w3
|
|
9576
|
+
}, v3 = li(({ searchQuery: e, selectedChain: t, chainInfoMap: n }) => {
|
|
9572
9577
|
const { positions: o, isLoading: a } = fs(), r = oe(), { data: i, isLoading: c } = Rl(), l = S(() => {
|
|
9573
9578
|
const m = [];
|
|
9574
9579
|
for (const f of o) {
|
|
@@ -9618,20 +9623,20 @@ const ON = "_section_xdyfz_2", VN = "_row_xdyfz_15", KN = "_rowLeft_xdyfz_23", j
|
|
|
9618
9623
|
return /* @__PURE__ */ h("div", { className: Fn.container, children: [
|
|
9619
9624
|
/* @__PURE__ */ h("div", { className: Fn.header, children: [
|
|
9620
9625
|
/* @__PURE__ */ s("span", { className: Fn.title, children: "Positions" }),
|
|
9621
|
-
d && /* @__PURE__ */ s(he, { suspenseFallback: /* @__PURE__ */ s(tt, { height: 16, width: 60, length: 1 }), children: /* @__PURE__ */ s(
|
|
9626
|
+
d && /* @__PURE__ */ s(he, { suspenseFallback: /* @__PURE__ */ s(tt, { height: 16, width: 60, length: 1 }), children: /* @__PURE__ */ s(f3, { filteredChainGroups: l }) })
|
|
9622
9627
|
] }),
|
|
9623
9628
|
d ? /* @__PURE__ */ s("div", { className: Fn.list, children: l.map((m) => m.isInitia ? /* @__PURE__ */ s(
|
|
9624
9629
|
he,
|
|
9625
9630
|
{
|
|
9626
9631
|
suspenseFallback: /* @__PURE__ */ s("div", { className: Fn.skeletonWrapper, children: /* @__PURE__ */ s(tt, { height: 56, length: 1 }) }),
|
|
9627
|
-
children: /* @__PURE__ */ s(
|
|
9632
|
+
children: /* @__PURE__ */ s(u3, { chainGroup: m })
|
|
9628
9633
|
},
|
|
9629
9634
|
m.chainName
|
|
9630
|
-
) : /* @__PURE__ */ s(
|
|
9635
|
+
) : /* @__PURE__ */ s(zC, { chainGroup: m }, m.chainName)) }) : o.length === 0 && a ? /* @__PURE__ */ s(tt, { height: 56, length: 3 }) : /* @__PURE__ */ s(ge, { children: "No positions" })
|
|
9631
9636
|
] });
|
|
9632
|
-
}),
|
|
9633
|
-
content:
|
|
9634
|
-
},
|
|
9637
|
+
}), b3 = "_content_1w1ad_1", N3 = {
|
|
9638
|
+
content: b3
|
|
9639
|
+
}, C3 = ({
|
|
9635
9640
|
selectedChain: e,
|
|
9636
9641
|
setSelectedChain: t
|
|
9637
9642
|
}) => {
|
|
@@ -9658,7 +9663,7 @@ const ON = "_section_xdyfz_2", VN = "_row_xdyfz_15", KN = "_rowLeft_xdyfz_23", j
|
|
|
9658
9663
|
renderExtra: (d) => ee(d ? c.get(d) ?? 0 : l)
|
|
9659
9664
|
}
|
|
9660
9665
|
);
|
|
9661
|
-
},
|
|
9666
|
+
}, k3 = () => {
|
|
9662
9667
|
const [e, t] = Se(Tl), [n, o] = Se(El), a = le(), r = rs(), { denomLogos: i, symbolLogos: c } = S(
|
|
9663
9668
|
() => Za(r, a),
|
|
9664
9669
|
[r, a]
|
|
@@ -9674,11 +9679,11 @@ const ON = "_section_xdyfz_2", VN = "_row_xdyfz_15", KN = "_rowLeft_xdyfz_23", j
|
|
|
9674
9679
|
placeholder: "Search portfolio"
|
|
9675
9680
|
}
|
|
9676
9681
|
),
|
|
9677
|
-
/* @__PURE__ */ s(he, { suspenseFallback: /* @__PURE__ */ s(Xt, { height: 44, width: 132 }), children: /* @__PURE__ */ s(
|
|
9682
|
+
/* @__PURE__ */ s(he, { suspenseFallback: /* @__PURE__ */ s(Xt, { height: 44, width: 132 }), children: /* @__PURE__ */ s(C3, { selectedChain: n, setSelectedChain: o }) })
|
|
9678
9683
|
] }),
|
|
9679
|
-
/* @__PURE__ */ h("div", { className:
|
|
9684
|
+
/* @__PURE__ */ h("div", { className: N3.content, children: [
|
|
9680
9685
|
/* @__PURE__ */ s(he, { suspenseFallback: /* @__PURE__ */ s(tt, { height: 48, length: 5 }), children: /* @__PURE__ */ s(
|
|
9681
|
-
|
|
9686
|
+
FN,
|
|
9682
9687
|
{
|
|
9683
9688
|
searchQuery: e,
|
|
9684
9689
|
selectedChain: n,
|
|
@@ -9689,7 +9694,7 @@ const ON = "_section_xdyfz_2", VN = "_row_xdyfz_15", KN = "_rowLeft_xdyfz_23", j
|
|
|
9689
9694
|
}
|
|
9690
9695
|
) }),
|
|
9691
9696
|
/* @__PURE__ */ s(he, { suspenseFallback: /* @__PURE__ */ s(tt, { height: 56, length: 3 }), children: /* @__PURE__ */ s(
|
|
9692
|
-
|
|
9697
|
+
v3,
|
|
9693
9698
|
{
|
|
9694
9699
|
searchQuery: e,
|
|
9695
9700
|
selectedChain: n,
|
|
@@ -9698,23 +9703,23 @@ const ON = "_section_xdyfz_2", VN = "_row_xdyfz_15", KN = "_rowLeft_xdyfz_23", j
|
|
|
9698
9703
|
) })
|
|
9699
9704
|
] })
|
|
9700
9705
|
] });
|
|
9701
|
-
},
|
|
9702
|
-
totalValue:
|
|
9703
|
-
totalLabel:
|
|
9704
|
-
totalAmount:
|
|
9705
|
-
loading:
|
|
9706
|
-
skeletonWrapper:
|
|
9707
|
-
nav:
|
|
9708
|
-
item:
|
|
9709
|
-
tabs:
|
|
9710
|
-
tab:
|
|
9711
|
-
},
|
|
9706
|
+
}, I3 = "_totalValue_5pf7e_1", x3 = "_totalLabel_5pf7e_7", A3 = "_totalAmount_5pf7e_13", S3 = "_loading_5pf7e_18", $3 = "_skeletonWrapper_5pf7e_23", T3 = "_nav_5pf7e_28", E3 = "_item_5pf7e_34", L3 = "_tabs_5pf7e_59", q3 = "_tab_5pf7e_59", Re = {
|
|
9707
|
+
totalValue: I3,
|
|
9708
|
+
totalLabel: x3,
|
|
9709
|
+
totalAmount: A3,
|
|
9710
|
+
loading: S3,
|
|
9711
|
+
skeletonWrapper: $3,
|
|
9712
|
+
nav: T3,
|
|
9713
|
+
item: E3,
|
|
9714
|
+
tabs: L3,
|
|
9715
|
+
tab: q3
|
|
9716
|
+
}, P3 = () => {
|
|
9712
9717
|
const { totalValue: e, isLoading: t } = Ac();
|
|
9713
9718
|
return /* @__PURE__ */ s("div", { className: L(Re.totalAmount, { [Re.loading]: t }), children: ee(e) });
|
|
9714
|
-
},
|
|
9719
|
+
}, M3 = () => {
|
|
9715
9720
|
const e = Kh(), t = jh(), n = Mc(), o = e + n + t;
|
|
9716
9721
|
return /* @__PURE__ */ s("div", { className: Re.totalAmount, children: ee(o) });
|
|
9717
|
-
},
|
|
9722
|
+
}, D3 = () => {
|
|
9718
9723
|
al(), Uh();
|
|
9719
9724
|
const e = Ja(), t = Te(), n = wo(), o = Ke(null);
|
|
9720
9725
|
return /* @__PURE__ */ s(ql.Provider, { value: o, children: /* @__PURE__ */ h(ut, { ref: o, children: [
|
|
@@ -9724,7 +9729,7 @@ const ON = "_section_xdyfz_2", VN = "_row_xdyfz_15", KN = "_rowLeft_xdyfz_23", j
|
|
|
9724
9729
|
he,
|
|
9725
9730
|
{
|
|
9726
9731
|
suspenseFallback: /* @__PURE__ */ s("div", { className: Re.skeletonWrapper, children: /* @__PURE__ */ s(Xt, { height: 48, width: 120 }) }),
|
|
9727
|
-
children: e ? /* @__PURE__ */ s(
|
|
9732
|
+
children: e ? /* @__PURE__ */ s(P3, {}) : /* @__PURE__ */ s(M3, {})
|
|
9728
9733
|
}
|
|
9729
9734
|
)
|
|
9730
9735
|
] }),
|
|
@@ -9748,23 +9753,23 @@ const ON = "_section_xdyfz_2", VN = "_row_xdyfz_15", KN = "_rowLeft_xdyfz_23", j
|
|
|
9748
9753
|
/* @__PURE__ */ s(qt.Tab, { className: Re.tab, value: "/nfts", children: "NFTs" }),
|
|
9749
9754
|
/* @__PURE__ */ s(qt.Tab, { className: Re.tab, value: "/activity", children: "Activity" })
|
|
9750
9755
|
] }),
|
|
9751
|
-
/* @__PURE__ */ s(qt.Panel, { value: "/", children: e ? /* @__PURE__ */ s(
|
|
9752
|
-
/* @__PURE__ */ s(qt.Panel, { value: "/nfts", children: /* @__PURE__ */ s(
|
|
9753
|
-
/* @__PURE__ */ s(qt.Panel, { value: "/activity", children: /* @__PURE__ */ s(
|
|
9756
|
+
/* @__PURE__ */ s(qt.Panel, { value: "/", children: e ? /* @__PURE__ */ s(RN, {}) : /* @__PURE__ */ s(k3, {}) }),
|
|
9757
|
+
/* @__PURE__ */ s(qt.Panel, { value: "/nfts", children: /* @__PURE__ */ s(Qb, {}) }),
|
|
9758
|
+
/* @__PURE__ */ s(qt.Panel, { value: "/activity", children: /* @__PURE__ */ s(Eb, {}) })
|
|
9754
9759
|
] })
|
|
9755
9760
|
] }) });
|
|
9756
|
-
},
|
|
9757
|
-
root:
|
|
9758
|
-
collectionName:
|
|
9759
|
-
nftName:
|
|
9760
|
-
chainInfo:
|
|
9761
|
-
attributes:
|
|
9762
|
-
title:
|
|
9763
|
-
count:
|
|
9764
|
-
item:
|
|
9765
|
-
type:
|
|
9766
|
-
value:
|
|
9767
|
-
},
|
|
9761
|
+
}, R3 = "_root_th990_1", B3 = "_collectionName_th990_9", U3 = "_nftName_th990_13", F3 = "_chainInfo_th990_17", O3 = "_attributes_th990_21", V3 = "_title_th990_24", K3 = "_count_th990_29", j3 = "_item_th990_33", W3 = "_type_th990_39", z3 = "_value_th990_45", Gt = {
|
|
9762
|
+
root: R3,
|
|
9763
|
+
collectionName: B3,
|
|
9764
|
+
nftName: U3,
|
|
9765
|
+
chainInfo: F3,
|
|
9766
|
+
attributes: O3,
|
|
9767
|
+
title: V3,
|
|
9768
|
+
count: K3,
|
|
9769
|
+
item: j3,
|
|
9770
|
+
type: W3,
|
|
9771
|
+
value: z3
|
|
9772
|
+
}, H3 = () => {
|
|
9768
9773
|
const e = Te(), t = lt(), { attributes: n } = t;
|
|
9769
9774
|
return /* @__PURE__ */ h(Nt, { title: "NFT details", children: [
|
|
9770
9775
|
/* @__PURE__ */ s(dr, { normalizedNft: t, chainIconSize: 14, classNames: Gt }),
|
|
@@ -9785,7 +9790,7 @@ const ON = "_section_xdyfz_2", VN = "_row_xdyfz_15", KN = "_rowLeft_xdyfz_23", j
|
|
|
9785
9790
|
] })
|
|
9786
9791
|
] });
|
|
9787
9792
|
};
|
|
9788
|
-
function
|
|
9793
|
+
function G3({
|
|
9789
9794
|
balances: e,
|
|
9790
9795
|
gasPrices: t,
|
|
9791
9796
|
gas: n
|
|
@@ -9795,14 +9800,14 @@ function H3({
|
|
|
9795
9800
|
return { amount: r, denom: o, balance: i };
|
|
9796
9801
|
}).filter(({ amount: o, balance: a }) => M(a).gte(o));
|
|
9797
9802
|
}
|
|
9798
|
-
function
|
|
9803
|
+
function Q3({
|
|
9799
9804
|
denom: e,
|
|
9800
9805
|
balances: t,
|
|
9801
9806
|
gasPrices: n,
|
|
9802
9807
|
lastFeeDenom: o,
|
|
9803
9808
|
gas: a
|
|
9804
9809
|
}) {
|
|
9805
|
-
const r = t.find((d) => d.denom === e)?.amount ?? "0", i =
|
|
9810
|
+
const r = t.find((d) => d.denom === e)?.amount ?? "0", i = G3({ balances: t, gasPrices: n, gas: a }), c = i.find((d) => d.denom === o);
|
|
9806
9811
|
if (i.length === 0)
|
|
9807
9812
|
return r;
|
|
9808
9813
|
if (e === o && c) {
|
|
@@ -9816,10 +9821,10 @@ function G3({
|
|
|
9816
9821
|
}
|
|
9817
9822
|
return M(r).toString();
|
|
9818
9823
|
}
|
|
9819
|
-
const
|
|
9824
|
+
const Y3 = ({ chain: e, onSelect: t }) => {
|
|
9820
9825
|
const n = Tu(e);
|
|
9821
9826
|
return /* @__PURE__ */ s(vs, { assets: n, onSelect: t });
|
|
9822
|
-
},
|
|
9827
|
+
}, Z3 = ({ afterSelect: e }) => {
|
|
9823
9828
|
const { watch: t, setValue: n } = sn(), { chainId: o, denom: a } = t(), { chainId: r } = t(), [i, c] = V(r), l = ct(i), d = le(), m = (u) => {
|
|
9824
9829
|
if (o === i && a === u) {
|
|
9825
9830
|
e();
|
|
@@ -9829,16 +9834,16 @@ const Q3 = ({ chain: e, onSelect: t }) => {
|
|
|
9829
9834
|
};
|
|
9830
9835
|
return /* @__PURE__ */ h(W, { children: [
|
|
9831
9836
|
/* @__PURE__ */ s(Jt.Stack, { children: /* @__PURE__ */ s(Jt, { chains: d, value: i, onSelect: c }) }),
|
|
9832
|
-
/* @__PURE__ */ s(he, { suspenseFallback: /* @__PURE__ */ s(vs.Placeholder, {}), children: /* @__PURE__ */ s(
|
|
9837
|
+
/* @__PURE__ */ s(he, { suspenseFallback: /* @__PURE__ */ s(vs.Placeholder, {}), children: /* @__PURE__ */ s(Y3, { chain: l, onSelect: m }) }, i)
|
|
9833
9838
|
] });
|
|
9834
|
-
},
|
|
9835
|
-
fields:
|
|
9836
|
-
divider:
|
|
9837
|
-
},
|
|
9839
|
+
}, J3 = "_fields_brpej_1", X3 = "_divider_brpej_11", ti = {
|
|
9840
|
+
fields: J3,
|
|
9841
|
+
divider: X3
|
|
9842
|
+
}, eI = Ce("interwovenkit:send", {
|
|
9838
9843
|
gas: (e) => [e]
|
|
9839
|
-
}),
|
|
9844
|
+
}), tI = () => {
|
|
9840
9845
|
const { address: e, initiaAddress: t, estimateGas: n, requestTxSync: o } = Xe(), { register: a, watch: r, setValue: i, handleSubmit: c, formState: l } = sn(), { errors: d } = l, { chainId: m, denom: u, recipient: f, quantity: p, memo: g } = r(), _ = ct(m), y = is(_), w = Ka(_), v = ja(_), N = Mi(u, _), { data: b } = At(_), { decimals: C } = N, x = y.find((R) => R.denom === u)?.amount ?? "0", $ = b?.find(({ id: R }) => R === u)?.price, { data: T = 0, isLoading: A } = _e({
|
|
9841
|
-
queryKey:
|
|
9846
|
+
queryKey: eI.gas({ chainId: m, denom: u, recipient: f, initiaAddress: t }).queryKey,
|
|
9842
9847
|
queryFn: () => {
|
|
9843
9848
|
const R = [
|
|
9844
9849
|
{
|
|
@@ -9854,7 +9859,7 @@ const Q3 = ({ chain: e, onSelect: t }) => {
|
|
|
9854
9859
|
},
|
|
9855
9860
|
enabled: Y.validate(f),
|
|
9856
9861
|
staleTime: F.INFINITY
|
|
9857
|
-
}), E = Math.ceil(T * Cn), k =
|
|
9862
|
+
}), E = Math.ceil(T * Cn), k = Q3({ denom: u, balances: y, gasPrices: w, lastFeeDenom: v, gas: E }), I = M(x).isZero(), D = w.some(({ denom: R }) => R === u) && A, B = I || D, { mutate: U, isPending: K } = at({
|
|
9858
9863
|
mutationFn: ({ chainId: R, denom: O, quantity: Fe, recipient: Ie, memo: mt }) => {
|
|
9859
9864
|
const ze = oo(Fe, { decimals: C }), ln = [
|
|
9860
9865
|
{
|
|
@@ -9893,7 +9898,7 @@ const Q3 = ({ chain: e, onSelect: t }) => {
|
|
|
9893
9898
|
In,
|
|
9894
9899
|
{
|
|
9895
9900
|
title: "Select chain and asset",
|
|
9896
|
-
content: (R) => /* @__PURE__ */ s(
|
|
9901
|
+
content: (R) => /* @__PURE__ */ s(Z3, { afterSelect: R }),
|
|
9897
9902
|
children: /* @__PURE__ */ s(ll, { asset: N, chain: _ })
|
|
9898
9903
|
}
|
|
9899
9904
|
),
|
|
@@ -9938,7 +9943,7 @@ const Q3 = ({ chain: e, onSelect: t }) => {
|
|
|
9938
9943
|
}
|
|
9939
9944
|
) })
|
|
9940
9945
|
] }) });
|
|
9941
|
-
},
|
|
9946
|
+
}, nI = () => {
|
|
9942
9947
|
const e = lt(), t = on(), n = xt(t), { chain: o = t } = e, a = Xn(n);
|
|
9943
9948
|
if (!e.denom && !a)
|
|
9944
9949
|
throw new Error(
|
|
@@ -9948,13 +9953,13 @@ const Q3 = ({ chain: e, onSelect: t }) => {
|
|
|
9948
9953
|
mode: "onChange",
|
|
9949
9954
|
defaultValues: { chainId: o.chainId, denom: r, quantity: "", recipient: "", memo: "" }
|
|
9950
9955
|
});
|
|
9951
|
-
return /* @__PURE__ */ s(lo, { ...i, children: /* @__PURE__ */ s(
|
|
9956
|
+
return /* @__PURE__ */ s(lo, { ...i, children: /* @__PURE__ */ s(tI, {}) });
|
|
9952
9957
|
};
|
|
9953
9958
|
async function Ca(e, t) {
|
|
9954
9959
|
const n = e.replace("ibc/", ""), { class_trace: o } = await j.create({ prefixUrl: t }).get(`ibc/apps/nft_transfer/v1/class_traces/${n}`).json();
|
|
9955
9960
|
return o;
|
|
9956
9961
|
}
|
|
9957
|
-
async function
|
|
9962
|
+
async function sI(e, t) {
|
|
9958
9963
|
const n = new yd([
|
|
9959
9964
|
{
|
|
9960
9965
|
inputs: [],
|
|
@@ -9972,7 +9977,7 @@ async function nI(e, t) {
|
|
|
9972
9977
|
}).json();
|
|
9973
9978
|
return n.decodeFunctionResult("name", o)[0];
|
|
9974
9979
|
}
|
|
9975
|
-
async function
|
|
9980
|
+
async function oI(e, t, n) {
|
|
9976
9981
|
if (t.startsWith("evm/"))
|
|
9977
9982
|
return e;
|
|
9978
9983
|
const { token_infos: o } = await j.create({ prefixUrl: n }).get(`minievm/evm/v1/erc721/origin_token_infos/${t}`, {
|
|
@@ -9980,8 +9985,8 @@ async function sI(e, t, n) {
|
|
|
9980
9985
|
}).json();
|
|
9981
9986
|
return o.map(({ token_origin_id: a }) => a);
|
|
9982
9987
|
}
|
|
9983
|
-
async function
|
|
9984
|
-
const n = await
|
|
9988
|
+
async function aI({ collection_addr: e }, { restUrl: t }) {
|
|
9989
|
+
const n = await sI(e, t);
|
|
9985
9990
|
if (!n.startsWith("ibc/"))
|
|
9986
9991
|
return {
|
|
9987
9992
|
class_id: `evm/${Y(e).rawHex}`,
|
|
@@ -9996,7 +10001,7 @@ async function oI({ collection_addr: e }, { restUrl: t }) {
|
|
|
9996
10001
|
class_trace: void 0
|
|
9997
10002
|
};
|
|
9998
10003
|
}
|
|
9999
|
-
async function
|
|
10004
|
+
async function rI(e, t) {
|
|
10000
10005
|
const { data: n } = await j.create({ prefixUrl: t }).post("initia/move/v1/view/json", {
|
|
10001
10006
|
json: {
|
|
10002
10007
|
address: "0x1",
|
|
@@ -10008,8 +10013,8 @@ async function aI(e, t) {
|
|
|
10008
10013
|
}).json();
|
|
10009
10014
|
return JSON.parse(n);
|
|
10010
10015
|
}
|
|
10011
|
-
async function
|
|
10012
|
-
const o = await
|
|
10016
|
+
async function iI({ object_addr: e, collection_addr: t }, { restUrl: n }) {
|
|
10017
|
+
const o = await rI(t, n);
|
|
10013
10018
|
return o.startsWith("ibc/") ? Y.equals(ri("0x1", o), t) ? {
|
|
10014
10019
|
class_id: o,
|
|
10015
10020
|
class_trace: await Ca(o, n)
|
|
@@ -10021,15 +10026,15 @@ async function rI({ object_addr: e, collection_addr: t }, { restUrl: n }) {
|
|
|
10021
10026
|
class_trace: void 0
|
|
10022
10027
|
};
|
|
10023
10028
|
}
|
|
10024
|
-
async function
|
|
10029
|
+
async function cI(e, t) {
|
|
10025
10030
|
const n = it(Fs(JSON.stringify({ contract_info: {} }))), { data: o } = await j.create({ prefixUrl: t }).get(`cosmwasm/wasm/v1/contract/${e}/smart/${n}`).json();
|
|
10026
10031
|
return o.name;
|
|
10027
10032
|
}
|
|
10028
|
-
async function
|
|
10033
|
+
async function lI(e, t) {
|
|
10029
10034
|
const { collection: n } = await j.create({ prefixUrl: t }).get(`indexer/nft/v1/collections/${e}`).json();
|
|
10030
10035
|
return n.collection.creator;
|
|
10031
10036
|
}
|
|
10032
|
-
async function
|
|
10037
|
+
async function dI(e, t) {
|
|
10033
10038
|
const n = it($i(JSON.stringify({ outgoing_proxy: {} }))), { data: o } = await j.create({ prefixUrl: t }).get(`cosmwasm/wasm/v1/contract/${e}/smart/${n}`).json();
|
|
10034
10039
|
return o;
|
|
10035
10040
|
}
|
|
@@ -10039,12 +10044,12 @@ function ni(e) {
|
|
|
10039
10044
|
const [, o, a] = n;
|
|
10040
10045
|
return [o, a];
|
|
10041
10046
|
}
|
|
10042
|
-
async function
|
|
10043
|
-
const o = Y(e).bech32, a = await
|
|
10047
|
+
async function uI({ collection_addr: e }, t, n) {
|
|
10048
|
+
const o = Y(e).bech32, a = await cI(o, t.restUrl), r = t.metadata?.ibc_channels?.find(
|
|
10044
10049
|
({ chain_id: _, version: y }) => _ === n.chain_id && y.includes("ics721-1")
|
|
10045
10050
|
);
|
|
10046
10051
|
if (!r) throw new Error("Channel not found");
|
|
10047
|
-
const i = r.port_id, c = i.split(".")[1], l = it($i(JSON.stringify({ class_id: { contract: o } }))), { data: d } = await j.create({ prefixUrl: t.restUrl }).get(`cosmwasm/wasm/v1/contract/${c}/smart/${l}`).json(), m = d ?? o, u = await
|
|
10052
|
+
const i = r.port_id, c = i.split(".")[1], l = it($i(JSON.stringify({ class_id: { contract: o } }))), { data: d } = await j.create({ prefixUrl: t.restUrl }).get(`cosmwasm/wasm/v1/contract/${c}/smart/${l}`).json(), m = d ?? o, u = await dI(c, t.restUrl), f = await lI(o, t.indexerUrl);
|
|
10048
10053
|
if (m === o)
|
|
10049
10054
|
return {
|
|
10050
10055
|
class_id: m,
|
|
@@ -10066,12 +10071,12 @@ async function dI({ collection_addr: e }, t, n) {
|
|
|
10066
10071
|
outgoing_proxy: u
|
|
10067
10072
|
};
|
|
10068
10073
|
}
|
|
10069
|
-
const
|
|
10070
|
-
minimove:
|
|
10071
|
-
minievm:
|
|
10072
|
-
miniwasm:
|
|
10074
|
+
const mI = {
|
|
10075
|
+
minimove: iI,
|
|
10076
|
+
minievm: aI,
|
|
10077
|
+
miniwasm: uI
|
|
10073
10078
|
};
|
|
10074
|
-
async function
|
|
10079
|
+
async function hI({
|
|
10075
10080
|
nft: e,
|
|
10076
10081
|
srcChain: t,
|
|
10077
10082
|
intermediaryChain: n
|
|
@@ -10079,11 +10084,11 @@ async function mI({
|
|
|
10079
10084
|
const o = t.metadata?.is_l1 ? "minimove" : t.metadata?.minitia?.type;
|
|
10080
10085
|
if (!(o === "minimove" || o === "minievm" || o === "miniwasm"))
|
|
10081
10086
|
throw new Error(`Unsupported minitia type: ${o}`);
|
|
10082
|
-
const a = await
|
|
10087
|
+
const a = await mI[o](e, t, n);
|
|
10083
10088
|
return Object.assign(
|
|
10084
10089
|
a,
|
|
10085
10090
|
o === "minievm" && {
|
|
10086
|
-
token_ids: await
|
|
10091
|
+
token_ids: await oI(
|
|
10087
10092
|
[e.token_id],
|
|
10088
10093
|
a.class_id,
|
|
10089
10094
|
t.restUrl
|
|
@@ -10091,18 +10096,18 @@ async function mI({
|
|
|
10091
10096
|
}
|
|
10092
10097
|
);
|
|
10093
10098
|
}
|
|
10094
|
-
const
|
|
10095
|
-
root:
|
|
10096
|
-
collectionName:
|
|
10097
|
-
nftName:
|
|
10098
|
-
chainInfo:
|
|
10099
|
-
fields:
|
|
10100
|
-
chain:
|
|
10101
|
-
},
|
|
10099
|
+
const fI = "_root_1tyvn_1", pI = "_collectionName_1tyvn_10", gI = "_nftName_1tyvn_15", _I = "_chainInfo_1tyvn_19", yI = "_fields_1tyvn_24", wI = "_chain_1tyvn_19", ia = {
|
|
10100
|
+
root: fI,
|
|
10101
|
+
collectionName: pI,
|
|
10102
|
+
nftName: gI,
|
|
10103
|
+
chainInfo: _I,
|
|
10104
|
+
fields: yI,
|
|
10105
|
+
chain: wI
|
|
10106
|
+
}, vI = Ce("interwovenkit:send-nft", {
|
|
10102
10107
|
simulation: (e) => [e]
|
|
10103
|
-
}),
|
|
10108
|
+
}), bI = () => {
|
|
10104
10109
|
const e = le(), t = lt(), { chain: n, collection_addr: o } = t, { routerApiUrl: a } = J(), r = ds(), i = oe(), { address: c, initiaAddress: l, requestTxSync: d } = Xe(), { watch: m, setValue: u, handleSubmit: f, formState: p } = sn(), { errors: g } = p, _ = m(), { recipient: y, dstChainId: w } = _, v = ct(w), N = _e({
|
|
10105
|
-
queryKey:
|
|
10110
|
+
queryKey: vI.simulation({
|
|
10106
10111
|
collection_addr: o,
|
|
10107
10112
|
nft: t,
|
|
10108
10113
|
sender: l,
|
|
@@ -10123,7 +10128,7 @@ const hI = "_root_1tyvn_1", fI = "_collectionName_1tyvn_10", pI = "_nftName_1tyv
|
|
|
10123
10128
|
token_ids: [t.token_id],
|
|
10124
10129
|
object_addresses: [t.object_addr]
|
|
10125
10130
|
},
|
|
10126
|
-
n.chainId !== v.chainId && await
|
|
10131
|
+
n.chainId !== v.chainId && await hI({ nft: t, srcChain: n, intermediaryChain: i })
|
|
10127
10132
|
), { msgs: I } = await j.create({ prefixUrl: a }).post("nft", { json: k }).json();
|
|
10128
10133
|
return I.map((q) => r.fromAmino(q));
|
|
10129
10134
|
},
|
|
@@ -10181,12 +10186,12 @@ const hI = "_root_1tyvn_1", fI = "_collectionName_1tyvn_10", pI = "_nftName_1tyv
|
|
|
10181
10186
|
}
|
|
10182
10187
|
) })
|
|
10183
10188
|
] });
|
|
10184
|
-
},
|
|
10189
|
+
}, NI = () => {
|
|
10185
10190
|
const { chain: e } = lt(), t = ns({
|
|
10186
10191
|
mode: "onChange",
|
|
10187
10192
|
defaultValues: { dstChainId: e.chainId, recipient: "" }
|
|
10188
10193
|
});
|
|
10189
|
-
return /* @__PURE__ */ s(Nt, { title: "Send NFT", children: /* @__PURE__ */ s(lo, { ...t, children: /* @__PURE__ */ s(
|
|
10194
|
+
return /* @__PURE__ */ s(Nt, { title: "Send NFT", children: /* @__PURE__ */ s(lo, { ...t, children: /* @__PURE__ */ s(bI, {}) }) });
|
|
10190
10195
|
}, ka = () => {
|
|
10191
10196
|
const e = Te(), t = wo(), n = an(), { closeDrawer: o } = St(), { closeModal: a } = ko();
|
|
10192
10197
|
Q(() => {
|
|
@@ -10205,70 +10210,70 @@ const hI = "_root_1tyvn_1", fI = "_collectionName_1tyvn_10", pI = "_nftName_1tyv
|
|
|
10205
10210
|
case "/":
|
|
10206
10211
|
case "/nfts":
|
|
10207
10212
|
case "/activity":
|
|
10208
|
-
return /* @__PURE__ */ s(
|
|
10213
|
+
return /* @__PURE__ */ s(D3, {});
|
|
10209
10214
|
case "/send":
|
|
10210
|
-
return /* @__PURE__ */ s(
|
|
10215
|
+
return /* @__PURE__ */ s(nI, {}, n);
|
|
10211
10216
|
case "/receive":
|
|
10212
|
-
return /* @__PURE__ */ s(
|
|
10217
|
+
return /* @__PURE__ */ s(rv, {});
|
|
10213
10218
|
case "/nft":
|
|
10214
|
-
return /* @__PURE__ */ s(
|
|
10219
|
+
return /* @__PURE__ */ s(H3, {});
|
|
10215
10220
|
case "/nft/send":
|
|
10216
|
-
return /* @__PURE__ */ s(
|
|
10221
|
+
return /* @__PURE__ */ s(NI, {}, n);
|
|
10217
10222
|
case "/bridge":
|
|
10218
|
-
return /* @__PURE__ */ s(
|
|
10223
|
+
return /* @__PURE__ */ s(ay, {}, n);
|
|
10219
10224
|
case "/bridge/preview":
|
|
10220
|
-
return /* @__PURE__ */ s(
|
|
10225
|
+
return /* @__PURE__ */ s(g0, {});
|
|
10221
10226
|
case "/bridge/history":
|
|
10222
|
-
return /* @__PURE__ */ s(
|
|
10227
|
+
return /* @__PURE__ */ s(Jy, {});
|
|
10223
10228
|
case "/op/withdrawals":
|
|
10224
|
-
return /* @__PURE__ */ s(
|
|
10229
|
+
return /* @__PURE__ */ s(K0, {});
|
|
10225
10230
|
case "/tx":
|
|
10226
10231
|
return /* @__PURE__ */ s(Jc, {});
|
|
10227
10232
|
case "/autosign/enable":
|
|
10228
|
-
return /* @__PURE__ */ s(
|
|
10233
|
+
return /* @__PURE__ */ s(zg, {});
|
|
10229
10234
|
case "/settings":
|
|
10230
|
-
return /* @__PURE__ */ s(
|
|
10235
|
+
return /* @__PURE__ */ s(Pv, {});
|
|
10231
10236
|
case "/settings/autosign":
|
|
10232
|
-
return /* @__PURE__ */ s(
|
|
10237
|
+
return /* @__PURE__ */ s(Nv, {});
|
|
10233
10238
|
case "/deposit":
|
|
10234
|
-
return /* @__PURE__ */ s(
|
|
10239
|
+
return /* @__PURE__ */ s(zw, {});
|
|
10235
10240
|
case "/deposit/completed":
|
|
10236
10241
|
return /* @__PURE__ */ s(Na, { type: "deposit" });
|
|
10237
10242
|
case "/withdraw":
|
|
10238
|
-
return /* @__PURE__ */ s(
|
|
10243
|
+
return /* @__PURE__ */ s(Hw, {});
|
|
10239
10244
|
case "/withdraw/completed":
|
|
10240
10245
|
return /* @__PURE__ */ s(Na, { type: "withdraw" });
|
|
10241
10246
|
}
|
|
10242
|
-
},
|
|
10247
|
+
}, CI = "https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@100..700&display=swap", kI = () => /* @__PURE__ */ h(W, { children: [
|
|
10243
10248
|
/* @__PURE__ */ s("link", { rel: "preconnect", href: "https://fonts.googleapis.com" }),
|
|
10244
10249
|
/* @__PURE__ */ s("link", { rel: "preconnect", href: "https://fonts.gstatic.com", crossOrigin: "" }),
|
|
10245
|
-
/* @__PURE__ */ s("link", { rel: "stylesheet", href:
|
|
10250
|
+
/* @__PURE__ */ s("link", { rel: "stylesheet", href: CI }),
|
|
10246
10251
|
/* @__PURE__ */ s("link", { rel: "stylesheet", href: "https://assets.initia.xyz/fonts/PilatWide.css" })
|
|
10247
|
-
] }),
|
|
10252
|
+
] }), II = () => (Ju(), Cm(), le(), Fh(), Mc(), rs(), gs(), rn(), null), U6 = ({ children: e, ...t }) => (Q(() => {
|
|
10248
10253
|
yh();
|
|
10249
10254
|
}, []), Qd() ? /* @__PURE__ */ h(W, { children: [
|
|
10250
|
-
/* @__PURE__ */ s(
|
|
10255
|
+
/* @__PURE__ */ s(kI, {}),
|
|
10251
10256
|
/* @__PURE__ */ s(Ei.Provider, { value: { ...bu, ...t }, children: /* @__PURE__ */ s(Vi, { children: /* @__PURE__ */ s(pg, { children: /* @__PURE__ */ s(fn.Provider, { delayDuration: 0, skipDelayDuration: 0, children: /* @__PURE__ */ s(fg, { children: /* @__PURE__ */ h(ng, { children: [
|
|
10252
10257
|
e,
|
|
10253
10258
|
/* @__PURE__ */ s(Wh, {}),
|
|
10254
|
-
/* @__PURE__ */ s(he, { suspenseFallback: null, errorBoundaryProps: { fallback: null }, children: /* @__PURE__ */ s(
|
|
10259
|
+
/* @__PURE__ */ s(he, { suspenseFallback: null, errorBoundaryProps: { fallback: null }, children: /* @__PURE__ */ s(II, {}) }),
|
|
10255
10260
|
/* @__PURE__ */ s(Pf, { children: /* @__PURE__ */ s(ka, {}) }),
|
|
10256
10261
|
/* @__PURE__ */ s(Tf, { children: /* @__PURE__ */ s(ka, {}) })
|
|
10257
10262
|
] }) }) }) }) }) })
|
|
10258
|
-
] }) : null),
|
|
10263
|
+
] }) : null), F6 = ({ bridge: e }) => /* @__PURE__ */ s(Vi, { initialEntry: { path: e ? "/bridge" : "/", state: e }, children: /* @__PURE__ */ s("div", { className: "body", children: /* @__PURE__ */ s(zc.Provider, { value: !!e, children: /* @__PURE__ */ s(he, { children: /* @__PURE__ */ s(ka, {}) }) }) }) });
|
|
10259
10264
|
export {
|
|
10260
10265
|
Cn as DEFAULT_GAS_ADJUSTMENT,
|
|
10261
10266
|
vu as DEFAULT_GAS_PRICE_MULTIPLIER,
|
|
10262
|
-
|
|
10263
|
-
|
|
10267
|
+
F6 as InterwovenKit,
|
|
10268
|
+
U6 as InterwovenKitProvider,
|
|
10264
10269
|
bu as MAINNET,
|
|
10265
10270
|
km as MoveError,
|
|
10266
10271
|
Ti as PRIVY_APP_ID,
|
|
10267
|
-
|
|
10268
|
-
|
|
10269
|
-
|
|
10272
|
+
M6 as TESTNET,
|
|
10273
|
+
R6 as initiaPrivyWallet,
|
|
10274
|
+
D6 as initiaPrivyWalletConnector,
|
|
10270
10275
|
Hs as initiaPrivyWalletOptions,
|
|
10271
|
-
|
|
10276
|
+
B6 as injectStyles,
|
|
10272
10277
|
an as useAddress,
|
|
10273
10278
|
ms as useHexAddress,
|
|
10274
10279
|
X as useInitiaAddress,
|