everest-npm-features 0.0.46 → 0.0.47

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.
@@ -9,7 +9,7 @@ import "../../../constants-BJhUp96H.js";
9
9
  import "../../../index-BQNs1mvn.js";
10
10
  import "../../../order-fWKVFTau.js";
11
11
  import "../../../bank-BmV_keEr.js";
12
- import { a as H } from "../../../index-BTqlsA2t.js";
12
+ import { a as H } from "../../../index-MUaN67Ei.js";
13
13
  import "../../../index.esm-BsMAMhYW.js";
14
14
  import "../../../react-redux-B4BZippc.js";
15
15
  import "../../../index-DlQqWbXG.js";
@@ -10,7 +10,7 @@ import "../../../order-fWKVFTau.js";
10
10
  import "../../../tooltip-3UvETWtS.js";
11
11
  import "../../../util/functions.js";
12
12
  import "../Shared/appButton.js";
13
- import { B as E } from "../../../index-BTqlsA2t.js";
13
+ import { B as E } from "../../../index-MUaN67Ei.js";
14
14
  import "../../../styles.module-CHEBh2ID.js";
15
15
  import "../Shared/TokenModal/index.js";
16
16
  import "../../../react-redux-B4BZippc.js";
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "../../../hoc/withThemeProvider.js";
4
- import { b as e, C as f, F as Y, M as b, P as d, i as l } from "../../../index-BTqlsA2t.js";
4
+ import { b as e, C as f, F as Y, M as b, P as d, i as l } from "../../../index-MUaN67Ei.js";
5
5
  import "../../../react-redux-B4BZippc.js";
6
6
  import "../../../constants-BJhUp96H.js";
7
7
  import "../../../PlayArrow-Cm8tJN8W.js";
@@ -72,7 +72,7 @@ const iA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAADACAMAAABlApw1AA
72
72
  };
73
73
  M(() => {
74
74
  const A = new URLSearchParams(window.location.search), g = A.get("payment");
75
- U(g);
75
+ g && U(g);
76
76
  const D = A.get("id");
77
77
  D && d(dA(D));
78
78
  }, [GA]), M(() => {
@@ -1,20 +1,20 @@
1
1
  import { jsxs as a, Fragment as w, jsx as e } from "react/jsx-runtime";
2
2
  import { useMemo as Ze, useState as d, useEffect as h, useCallback as et } from "react";
3
3
  import tt from "./hoc/withThemeProvider.js";
4
- import { P as rt, f as nt } from "./PlayArrow-Cm8tJN8W.js";
4
+ import { P as nt, f as rt } from "./PlayArrow-Cm8tJN8W.js";
5
5
  import { I as ot } from "./Info-BVeUSPyk.js";
6
6
  import { G as Ie } from "./generic-token-B_ptO5yb.js";
7
- import { PAYMENT_PROVIDER_PAYSAFE as it, ID_TOKEN_SYMBOL as Oe, FIAT_TO_EVER_ID as fe, FIAT_TO_TOKEN as he, ESTIMATE_TOOLTIP_TEXT as at, DIALOG_SUCCESS_ICON as st, PAYMENT_PROVIDER_PLAID as lt, PAYMENT_PROVIDER_CARDCORP as ct, PAYMENT_BANK as ke, SEPA_ICON as mt, VISA_ICON as dt } from "./util/constants.js";
7
+ import { PAYMENT_PROVIDER_PAYSAFE as it, ID_TOKEN_SYMBOL as Oe, FIAT_TO_EVER_ID as fe, FIAT_TO_TOKEN as he, ESTIMATE_TOOLTIP_TEXT as at, DIALOG_SUCCESS_ICON as st, PAYMENT_PROVIDER_PLAID as lt, PAYMENT_PROVIDER_CARDCORP as ct, PAYMENT_BANK as ze, SEPA_ICON as mt, VISA_ICON as dt } from "./util/constants.js";
8
8
  import { ap as B } from "./constants-BJhUp96H.js";
9
9
  import { c as pt, d as ut, u as ft } from "./index-BQNs1mvn.js";
10
- import { e as ht, f as $e, c as ye, g as yt, h as ze, i as _t } from "./order-fWKVFTau.js";
10
+ import { e as ht, f as $e, c as ye, g as yt, h as ke, i as _t } from "./order-fWKVFTau.js";
11
11
  import { M as xt } from "./tooltip-3UvETWtS.js";
12
12
  import { getCurrencySymbol as Ye, getNetworkBackGround as gt } from "./util/functions.js";
13
13
  import xe from "./components/Wallet/Shared/appButton.js";
14
14
  import Ct from "./components/Wallet/Shared/backBtn.js";
15
15
  import { s as m } from "./styles.module-CHEBh2ID.js";
16
- import { p as Nt, e as bt } from "./bank-BmV_keEr.js";
17
- import { u as vt } from "./index.esm-BsMAMhYW.js";
16
+ import { p as Nt, e as vt } from "./bank-BmV_keEr.js";
17
+ import { u as bt } from "./index.esm-BsMAMhYW.js";
18
18
  import { a as W, u as Et } from "./react-redux-B4BZippc.js";
19
19
  import "./index-DlQqWbXG.js";
20
20
  import "./components/Wallet/Shared/Auth/otpForm.js";
@@ -37,8 +37,8 @@ import { u as Pt, a as St } from "./wallet-CuQDBP6a.js";
37
37
  import { AuthContainer as Mt } from "./components/Wallet/Shared/Container/index.js";
38
38
  import It from "./components/Wallet/Shared/CardPayment/index.js";
39
39
  import Ot from "./components/Shared/MinimalKyc/index.js";
40
- import kt from "./components/Wallet/Shared/Input/index.js";
41
- import zt from "./components/Wallet/Shared/CardCorp/index.js";
40
+ import zt from "./components/Wallet/Shared/Input/index.js";
41
+ import kt from "./components/Wallet/Shared/CardCorp/index.js";
42
42
  import { c as wt } from "./countries-BVn1FubK.js";
43
43
  import Wt from "./components/Wallet/Shared/TokenModal/index.js";
44
44
  import { PaymentButton as Bt } from "./components/Wallet/Shared/Order/paymentButton.js";
@@ -59,8 +59,8 @@ const Tt = ({
59
59
  getCryptoAssets: R,
60
60
  showAlertMessage: c,
61
61
  partnerKey: u,
62
- walletAddress: b,
63
- setWalletAddress: n,
62
+ walletAddress: v,
63
+ setWalletAddress: r,
64
64
  outputToken: o,
65
65
  setOutputToken: I,
66
66
  paymentId: g,
@@ -68,30 +68,30 @@ const Tt = ({
68
68
  currencyId: f,
69
69
  setCurrencyId: V,
70
70
  paymentOptions: j,
71
- setPaymentOptions: v
71
+ setPaymentOptions: b
72
72
  }) => {
73
73
  var Pe, Se;
74
- const H = W(pt), T = W(ut), { data: k, loader: X } = H, { data: re, loader: de } = T, L = x.fiats, ne = x.loader, z = M.featureTokens.buy.list, $ = M.featureTokens.buy.default, oe = M.loader, Y = y.loader, _ = y.estimate[B], J = _.crypto_out_amount, p = _.conversion_price, D = _.total_fee;
74
+ const H = W(pt), T = W(ut), { data: z, loader: X } = H, { data: ne, loader: de } = T, L = x.fiats, re = x.loader, k = M.featureTokens.buy.list, $ = M.featureTokens.buy.default, oe = M.loader, Y = y.loader, _ = y.estimate[B], J = _.crypto_out_amount, p = _.conversion_price, D = _.total_fee;
75
75
  let ie = 0, ae = 0;
76
76
  const ge = _.fee_breakdown;
77
77
  for (let t = 0; t < ge.length; t++) {
78
- const r = ge[t];
79
- r.name === "ev_fee" ? ie = Number(r.value) : r.name === "network_fee" && (ae = Number(r.value));
78
+ const n = ge[t];
79
+ n.name === "ev_fee" ? ie = Number(n.value) : n.name === "network_fee" && (ae = Number(n.value));
80
80
  }
81
81
  const De = Ze(() => [
82
- ...k,
83
- ...re.filter(
84
- (t) => !k.some(
85
- (r) => r.address.toLowerCase() === t.address.toLowerCase()
82
+ ...z,
83
+ ...ne.filter(
84
+ (t) => !z.some(
85
+ (n) => n.address.toLowerCase() === t.address.toLowerCase()
86
86
  )
87
87
  )
88
- ], [k, re]), [pe, Q] = d(!1), [q, qe] = d([]), [Ce, Ue] = d(!1), [Ne, Ke] = d(50), [be, Ge] = d(3e3), [Z, Ve] = d(50), [ve, je] = d(3e3), [Ee, ee] = d(""), [U, Re] = d(
88
+ ], [z, ne]), [pe, Q] = d(!1), [q, qe] = d([]), [Ce, Ue] = d(!1), [Ne, Ke] = d(50), [ve, Ge] = d(3e3), [Z, Ve] = d(50), [be, je] = d(3e3), [Ee, ee] = d(""), [U, Re] = d(
89
89
  _.fiat_amount || Z.toString()
90
90
  ), [He, Ae] = d(!1), K = L.find((t) => t.id === f), A = Ye(K == null ? void 0 : K.symbol);
91
91
  h(() => {
92
92
  const t = [];
93
- for (let r = 0; r < L.length; r++) {
94
- const l = {}, C = L[r];
93
+ for (let n = 0; n < L.length; n++) {
94
+ const l = {}, C = L[n];
95
95
  l.id = C.id, l.name = C.name, l.icon_uri = C.icon_uri, l.symbol = C.symbol, l.payment_options = [];
96
96
  const F = C.payment_options;
97
97
  for (let G = 0; G < F.length; G++) {
@@ -105,9 +105,9 @@ const Tt = ({
105
105
  if (!f || q.length === 0)
106
106
  return;
107
107
  const t = [];
108
- for (let r = 0; r < q.length; r++) {
109
- if (q[r].id === f) {
110
- const l = q[r].payment_options;
108
+ for (let n = 0; n < q.length; n++) {
109
+ if (q[n].id === f) {
110
+ const l = q[n].payment_options;
111
111
  let C = !1;
112
112
  for (let F = 0; F < l.length; F++) {
113
113
  const G = l[F];
@@ -115,13 +115,13 @@ const Tt = ({
115
115
  }
116
116
  C || O(t[0].id);
117
117
  }
118
- v(t);
118
+ b(t);
119
119
  }
120
120
  }, [f, q]), h(() => {
121
121
  !o.symbol && $ && $.id && I($);
122
122
  }, [$]), h(() => {
123
123
  f && R && R(f);
124
- }, [f, b]), h(() => {
124
+ }, [f, v]), h(() => {
125
125
  if (o && o.id && U && g && f) {
126
126
  E(ht(B)), Q(!1), ee("");
127
127
  const t = setTimeout(() => {
@@ -129,7 +129,7 @@ const Tt = ({
129
129
  }, 1e3);
130
130
  return () => clearTimeout(t);
131
131
  }
132
- }, [o, U, g, z, f]);
132
+ }, [o, U, g, k, f]);
133
133
  const Xe = () => {
134
134
  var C;
135
135
  const t = parseFloat(U);
@@ -138,21 +138,21 @@ const Tt = ({
138
138
  return ee(
139
139
  `Minimum value should be greater than ${A + Ne}`
140
140
  ), Q(!0), !1;
141
- if (be * 1 < t)
141
+ if (ve * 1 < t)
142
142
  return ee(
143
- `Maximum value should be less than ${A + be}`
143
+ `Maximum value should be less than ${A + ve}`
144
144
  ), Q(!0), !1;
145
145
  } else {
146
146
  if (Z * 1 > t)
147
147
  return ee(
148
148
  `Minimum value should be greater than ${A + Z}`
149
149
  ), Q(!0), !1;
150
- if (ve * 1 < t)
150
+ if (be * 1 < t)
151
151
  return ee(
152
- `Maximum value should be less than ${A + ve}`
152
+ `Maximum value should be less than ${A + be}`
153
153
  ), Q(!0), !1;
154
154
  }
155
- const r = j.find((F) => F.id === g), l = r.payment_type;
155
+ const n = j.find((F) => F.id === g), l = n.payment_type;
156
156
  E(
157
157
  $e(
158
158
  {
@@ -164,7 +164,7 @@ const Tt = ({
164
164
  fiat_ccy: K == null ? void 0 : K.symbol,
165
165
  crypto_ccy: o.symbol,
166
166
  network: (C = o.network) == null ? void 0 : C.name,
167
- payment_provider: r.payment_provider
167
+ payment_provider: n.payment_provider
168
168
  },
169
169
  B
170
170
  )
@@ -173,24 +173,17 @@ const Tt = ({
173
173
  h(() => {
174
174
  const t = y.types.length;
175
175
  if (t > 0)
176
- for (let r = 0; r < t; r++) {
177
- const l = y.types[r];
178
- if (l.type === fe) {
179
- Ke(parseFloat(l.min_deposit_amount)), Ge(parseFloat(l.max_deposit_amount));
180
- break;
181
- }
182
- if (l.type === he) {
183
- Ve(parseFloat(l.min_deposit_amount)), je(parseFloat(l.max_deposit_amount));
184
- break;
185
- }
176
+ for (let n = 0; n < t; n++) {
177
+ const l = y.types[n];
178
+ l.type === fe && (Ke(parseFloat(l.min_deposit_amount)), Ge(parseFloat(l.max_deposit_amount))), l.type === he && (Ve(parseFloat(l.min_deposit_amount)), je(parseFloat(l.max_deposit_amount)));
186
179
  }
187
180
  }, [y.types]);
188
181
  const Je = (t) => {
189
- const r = t.target.value;
190
- r ? /^([0-9.]+)$/.test(r) && Re(r) : Re("");
182
+ const n = t.target.value;
183
+ n ? /^([0-9.]+)$/.test(n) && Re(n) : Re("");
191
184
  }, Fe = (t) => {
192
- const r = z.find((l) => l.symbol === t);
193
- I(r);
185
+ const n = k.find((l) => l.symbol === t);
186
+ I(n);
194
187
  }, Qe = () => {
195
188
  if (!o.id)
196
189
  return c({ message: "Please select token" }), !1;
@@ -198,7 +191,7 @@ const Tt = ({
198
191
  return c({ message: "Please select payment method" }), !1;
199
192
  if (!U)
200
193
  return c({ message: "Please enter amount" }), !1;
201
- if (!b)
194
+ if (!v)
202
195
  return c({ message: "Please select wallet address" }), !1;
203
196
  if (!J)
204
197
  return c({
@@ -233,7 +226,7 @@ const Tt = ({
233
226
  ]
234
227
  }
235
228
  ) }),
236
- /* @__PURE__ */ e(i, { size: { xs: 5 }, className: "content-center", children: ne ? /* @__PURE__ */ e(
229
+ /* @__PURE__ */ e(i, { size: { xs: 5 }, className: "content-center", children: re ? /* @__PURE__ */ e(
237
230
  P,
238
231
  {
239
232
  sx: { ml: 1 },
@@ -279,8 +272,8 @@ const Tt = ({
279
272
  "img",
280
273
  {
281
274
  src: t.icon_uri,
282
- onError: ({ currentTarget: r }) => {
283
- r.onerror = null, r.src = Ie;
275
+ onError: ({ currentTarget: n }) => {
276
+ n.onerror = null, n.src = Ie;
284
277
  },
285
278
  alt: "tokenImg",
286
279
  width: "40",
@@ -297,7 +290,7 @@ const Tt = ({
297
290
  ] }),
298
291
  /* @__PURE__ */ a(S, { className: "text-left", mt: 3, children: [
299
292
  /* @__PURE__ */ e(s, { variant: "sm", fontWeight: 600, children: "Select Payment Method" }),
300
- ne ? /* @__PURE__ */ e(P, { sx: { ml: 1, mt: 3 }, size: 50 }) : /* @__PURE__ */ e(i, { mt: 0.5, container: !0, children: j.map((t) => /* @__PURE__ */ e(i, { size: { xs: 2.5 }, children: /* @__PURE__ */ e(
293
+ re ? /* @__PURE__ */ e(P, { sx: { ml: 1, mt: 3 }, size: 50 }) : /* @__PURE__ */ e(i, { mt: 0.5, container: !0, children: j.map((t) => /* @__PURE__ */ e(i, { size: { xs: 2.5 }, children: /* @__PURE__ */ e(
301
294
  Bt,
302
295
  {
303
296
  label: t.payment_type,
@@ -379,13 +372,13 @@ const Tt = ({
379
372
  open: !1,
380
373
  children: [
381
374
  /* @__PURE__ */ e(ce, { value: "", children: "Please select" }),
382
- z.map((t) => /* @__PURE__ */ a(ce, { value: t.symbol, children: [
375
+ k.map((t) => /* @__PURE__ */ a(ce, { value: t.symbol, children: [
383
376
  /* @__PURE__ */ e(Te, { className: m["dropdown-list-item"], children: /* @__PURE__ */ e(
384
377
  "img",
385
378
  {
386
379
  src: t.icon_uri,
387
- onError: ({ currentTarget: r }) => {
388
- r.onerror = null, r.src = Ie;
380
+ onError: ({ currentTarget: n }) => {
381
+ n.onerror = null, n.src = Ie;
389
382
  },
390
383
  alt: "tokenImg",
391
384
  width: "40",
@@ -412,7 +405,7 @@ const Tt = ({
412
405
  children: [
413
406
  /* @__PURE__ */ e(s, { variant: "caption", fontWeight: 700, children: "Fee Calculation" }),
414
407
  /* @__PURE__ */ e(
415
- rt,
408
+ nt,
416
409
  {
417
410
  sx: {
418
411
  transform: `rotate(${Ce ? "90" : "0"}deg)`,
@@ -489,13 +482,13 @@ const Tt = ({
489
482
  ] })
490
483
  ] }) }),
491
484
  /* @__PURE__ */ e(S, { sx: { alignItems: "left", width: "100%" }, children: X || de ? /* @__PURE__ */ e(S, { mt: 2, sx: { textAlign: "center" }, children: /* @__PURE__ */ e(P, {}) }) : /* @__PURE__ */ e(w, { children: /* @__PURE__ */ a(te, { variant: "filled", fullWidth: !0, children: [
492
- !b && /* @__PURE__ */ e(Be, { children: "Select wallet address" }),
485
+ !v && /* @__PURE__ */ e(Be, { children: "Select wallet address" }),
493
486
  /* @__PURE__ */ e(
494
487
  ue,
495
488
  {
496
- value: b,
497
- onChange: (t) => n && n(t.target.value),
498
- children: De.map((t, r) => /* @__PURE__ */ e(ce, { value: t.address, children: t.name + "(" + t.address + ")" }, r))
489
+ value: v,
490
+ onChange: (t) => r && r(t.target.value),
491
+ children: De.map((t, n) => /* @__PURE__ */ e(ce, { value: t.address, children: t.name + "(" + t.address + ")" }, n))
499
492
  }
500
493
  )
501
494
  ] }) }) }),
@@ -514,7 +507,7 @@ const Tt = ({
514
507
  open: He,
515
508
  setModal: Ae,
516
509
  loader: oe,
517
- tokenList: z,
510
+ tokenList: k,
518
511
  tokenSelect: Fe
519
512
  }
520
513
  )
@@ -528,7 +521,7 @@ const Tt = ({
528
521
  plaidCountry: R,
529
522
  navigate: c
530
523
  }) => {
531
- const { openDialog: u } = At(), { plaidToken: b } = W(ft), n = E.estimate[B], o = E.create.order_id, I = E.loader, g = n.fiat_amount, O = Ye(n.fiat_currency), [f, V] = d(!1), v = {
524
+ const { openDialog: u } = At(), { plaidToken: v } = W(ft), r = E.estimate[B], o = E.create.order_id, I = E.loader, g = r.fiat_amount, O = Ye(r.fiat_currency), [f, V] = d(!1), b = {
532
525
  onSuccess: et(() => {
533
526
  u({
534
527
  title: "Buy Success",
@@ -546,35 +539,35 @@ const Tt = ({
546
539
  });
547
540
  }, [o]),
548
541
  onExit: () => {
549
- k(), x(bt());
542
+ z(), x(vt());
550
543
  },
551
- token: b
552
- }, { open: H, ready: T } = vt(v);
544
+ token: v
545
+ }, { open: H, ready: T } = bt(b);
553
546
  h(() => {
554
- T && b && H();
555
- }, [T, b]), h(() => {
556
- o && f && (n.payment_provider === lt ? x(
547
+ T && v && H();
548
+ }, [T, v]), h(() => {
549
+ o && f && (r.payment_provider === lt ? x(
557
550
  Nt({
558
551
  country_code: R,
559
552
  payment_id: E.create.provider_token
560
553
  })
561
- ) : n.payment_provider === ct ? N(Yt) : N($t));
554
+ ) : r.payment_provider === ct ? N(Yt) : N($t));
562
555
  }, [o]), h(() => {
563
- k();
556
+ z();
564
557
  }, []);
565
- const k = () => {
558
+ const z = () => {
566
559
  x(
567
560
  $e(
568
561
  {
569
562
  apiKey: y,
570
- transaction_type: n.transaction_type,
571
- coin_amount: n.fiat_amount,
572
- exchange: n.exchange,
573
- payment_type: n.payment_type,
574
- fiat_ccy: n.fiat_currency,
575
- crypto_ccy: n.crypto_currency,
576
- network: n.network,
577
- payment_provider: n.payment_provider
563
+ transaction_type: r.transaction_type,
564
+ coin_amount: r.fiat_amount,
565
+ exchange: r.exchange,
566
+ payment_type: r.payment_type,
567
+ fiat_ccy: r.fiat_currency,
568
+ crypto_ccy: r.crypto_currency,
569
+ network: r.network,
570
+ payment_provider: r.payment_provider
578
571
  },
579
572
  B
580
573
  )
@@ -583,7 +576,7 @@ const Tt = ({
583
576
  x(
584
577
  yt({
585
578
  apiKey: y,
586
- quoteId: n.quote_id,
579
+ quoteId: r.quote_id,
587
580
  walletAddress: M
588
581
  })
589
582
  ), V(!0);
@@ -597,16 +590,16 @@ const Tt = ({
597
590
  }
598
591
  ),
599
592
  /* @__PURE__ */ e(s, { mt: 2, variant: "sm", fontWeight: 600, children: "Using payment method" }),
600
- n.payment_type && /* @__PURE__ */ a(S, { mt: 2, className: m["confirm-payment"], children: [
593
+ r.payment_type && /* @__PURE__ */ a(S, { mt: 2, className: m["confirm-payment"], children: [
601
594
  /* @__PURE__ */ e(
602
595
  "img",
603
596
  {
604
- src: n.payment_type === ke ? mt : dt,
597
+ src: r.payment_type === ze ? mt : dt,
605
598
  width: 100,
606
599
  alt: "payment"
607
600
  }
608
601
  ),
609
- /* @__PURE__ */ e(s, { variant: "caption", component: "span", children: /* @__PURE__ */ e("strong", { children: n.payment_type === ke ? "Bank Account" : "Debit Card" }) })
602
+ /* @__PURE__ */ e(s, { variant: "caption", component: "span", children: /* @__PURE__ */ e("strong", { children: r.payment_type === ze ? "Bank Account" : "Debit Card" }) })
610
603
  ] }),
611
604
  /* @__PURE__ */ e(s, { mt: 4, variant: "sm", fontWeight: 600, children: "To Wallet Address" }),
612
605
  /* @__PURE__ */ e(
@@ -621,45 +614,45 @@ const Tt = ({
621
614
  /* @__PURE__ */ e(s, { mt: 3, variant: "sm", fontWeight: 600, component: "p", children: "Order Estimate Details" }),
622
615
  /* @__PURE__ */ e(S, { sx: { color: "#A6A6A6" }, children: /* @__PURE__ */ a(i, { container: !0, children: [
623
616
  /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
624
- n.crypto_currency.toUpperCase(),
617
+ r.crypto_currency.toUpperCase(),
625
618
  " @",
626
619
  " ",
627
- Number(n.conversion_price).toFixed(2),
620
+ Number(r.conversion_price).toFixed(2),
628
621
  " ",
629
- n.fiat_currency
622
+ r.fiat_currency
630
623
  ] }) }),
631
624
  /* @__PURE__ */ e(i, { className: "flex-right", size: { xs: 6 }, children: /* @__PURE__ */ e(
632
625
  "span",
633
626
  {
634
627
  className: m["confirm-transaction-network"],
635
628
  style: {
636
- backgroundColor: n.network === "Ethereum" ? "#A1A9DC" : "#5D8CCC"
629
+ backgroundColor: r.network === "Ethereum" ? "#A1A9DC" : "#5D8CCC"
637
630
  },
638
- children: n.network
631
+ children: r.network
639
632
  }
640
633
  ) }),
641
634
  /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
642
- Number(n.crypto_out_amount).toFixed(5),
635
+ Number(r.crypto_out_amount).toFixed(5),
643
636
  " ",
644
- n.crypto_currency.toUpperCase()
637
+ r.crypto_currency.toUpperCase()
645
638
  ] }) }),
646
639
  /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
647
- (Number(g) - Number(n.total_fee)).toFixed(2),
640
+ (Number(g) - Number(r.total_fee)).toFixed(2),
648
641
  " ",
649
- n.fiat_currency
642
+ r.fiat_currency
650
643
  ] }) }),
651
644
  /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: "Total Fees" }) }),
652
645
  /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ a(s, { variant: "caption", children: [
653
- Number(n.total_fee).toFixed(2),
646
+ Number(r.total_fee).toFixed(2),
654
647
  " ",
655
- n.fiat_currency
648
+ r.fiat_currency
656
649
  ] }) }),
657
650
  /* @__PURE__ */ e(i, { className: "text-left", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: /* @__PURE__ */ e("strong", { children: "Order Total" }) }) }),
658
651
  /* @__PURE__ */ e(i, { className: "text-right", size: { xs: 6 }, children: /* @__PURE__ */ e(s, { variant: "caption", children: /* @__PURE__ */ a("strong", { children: [
659
652
  O,
660
653
  Number(g).toFixed(2),
661
654
  " ",
662
- n.fiat_currency
655
+ r.fiat_currency
663
656
  ] }) }) })
664
657
  ] }) }),
665
658
  /* @__PURE__ */ e(S, { mt: 4, children: /* @__PURE__ */ e(
@@ -682,13 +675,13 @@ const Tt = ({
682
675
  cardCorpSrcUrl: x,
683
676
  navigate: M
684
677
  }) => {
685
- const { showAlertMessage: R } = Rt(), c = Et(), u = W((p) => p.order), b = u.create.provider_token, n = u.create.checkout_integrity, o = u.error, I = W(
678
+ const { showAlertMessage: R } = Rt(), c = Et(), u = W((p) => p.order), v = u.create.provider_token, r = u.create.checkout_integrity, o = u.error, I = W(
686
679
  (p) => p.user.profile
687
680
  ), g = I.everWalletAddress, O = I.residentialAddress.country || "USA", f = W((p) => p.fiatAssets), V = W(
688
681
  (p) => p.cryptoAssets
689
- ), [j, v] = d(_e), [H, T] = d({
682
+ ), [j, b] = d(_e), [H, T] = d({
690
683
  symbol: ""
691
- }), [k, X] = d(0), [re, de] = d(1), [L, ne] = d([]), [z, $] = d(g), [oe, Y] = d("");
684
+ }), [z, X] = d(0), [ne, de] = d(1), [L, re] = d([]), [k, $] = d(g), [oe, Y] = d("");
692
685
  return h(() => {
693
686
  if (O) {
694
687
  const p = wt.find((D) => D.alpha3 === O);
@@ -697,15 +690,15 @@ const Tt = ({
697
690
  }, [O]), h(() => {
698
691
  o && R({ message: o });
699
692
  }, [o]), h(() => {
700
- u.initMinimalKyc && (R({ message: o, type: "info" }), v(Dt));
701
- }, [u.initMinimalKyc]), h(() => (c(nt()), c(ze(he)), c(ze(fe)), c(Pt()), c(St()), () => {
693
+ u.initMinimalKyc && (R({ message: o, type: "info" }), b(Dt));
694
+ }, [u.initMinimalKyc]), h(() => (c(rt()), c(ke(he)), c(ke(fe)), c(Pt()), c(St()), () => {
702
695
  c(ye());
703
696
  }), []), /* @__PURE__ */ e(Mt, { addPadding: !0, children: {
704
697
  FORM_SCREEN: /* @__PURE__ */ e(
705
698
  Tt,
706
699
  {
707
700
  showAlertMessage: R,
708
- setScreen: v,
701
+ setScreen: b,
709
702
  fiatAssets: f,
710
703
  cryptoAssets: V,
711
704
  orderData: u,
@@ -716,32 +709,32 @@ const Tt = ({
716
709
  type: B,
717
710
  id: p,
718
711
  partnerKey: N,
719
- walletAddress: z
712
+ walletAddress: k
720
713
  })
721
714
  );
722
715
  },
723
716
  partnerKey: N,
724
- walletAddress: z,
717
+ walletAddress: k,
725
718
  setWalletAddress: $,
726
719
  outputToken: H,
727
720
  setOutputToken: T,
728
- paymentId: k,
721
+ paymentId: z,
729
722
  setPaymentId: X,
730
- currencyId: re,
723
+ currencyId: ne,
731
724
  setCurrencyId: de,
732
725
  paymentOptions: L,
733
- setPaymentOptions: ne
726
+ setPaymentOptions: re
734
727
  }
735
728
  ),
736
729
  CONFIRM_SCREEN: /* @__PURE__ */ e(
737
730
  Lt,
738
731
  {
739
732
  partnerKey: N,
740
- setScreen: v,
733
+ setScreen: b,
741
734
  showAlertMessage: R,
742
735
  orderData: u,
743
736
  dispatch: c,
744
- walletAddress: z,
737
+ walletAddress: k,
745
738
  plaidCountry: oe,
746
739
  navigate: M
747
740
  }
@@ -762,31 +755,31 @@ const Tt = ({
762
755
  };
763
756
  c(_t(ae));
764
757
  },
765
- backBtnFunc: () => v(me)
758
+ backBtnFunc: () => b(me)
766
759
  }
767
760
  ),
768
761
  CARD_CORP_SCREEN: /* @__PURE__ */ e(
769
- zt,
762
+ kt,
770
763
  {
771
- checkoutId: b,
772
- integrity: n,
764
+ checkoutId: v,
765
+ integrity: r,
773
766
  onResultUrl: `${y}/dashboard`,
774
- backBtnFunc: () => v(me),
767
+ backBtnFunc: () => b(me),
775
768
  srcUrl: x
776
769
  }
777
770
  ),
778
771
  MINIMAL_KYC_SCREEN: /* @__PURE__ */ e(
779
772
  Ot,
780
773
  {
781
- inputComponent: kt,
774
+ inputComponent: zt,
782
775
  buttonComponent: xe,
783
776
  onComplete: () => {
784
- v(me);
777
+ b(me);
785
778
  }
786
779
  }
787
780
  )
788
781
  }[j] });
789
- }, Dr = tt(qt);
782
+ }, qn = tt(qt);
790
783
  export {
791
784
  Tt as B,
792
785
  me as C,
@@ -795,5 +788,5 @@ export {
795
788
  $t as P,
796
789
  Lt as a,
797
790
  Yt as b,
798
- Dr as i
791
+ qn as i
799
792
  };
package/dist/main.js CHANGED
@@ -11,7 +11,7 @@ import { default as g } from "./components/Wallet/Account/index.js";
11
11
  import { default as P } from "./components/Wallet/Stake/index.js";
12
12
  import { default as w } from "./components/Wallet/MoveToEthereumOrEverChain/index.js";
13
13
  import { default as C } from "./components/Wallet/SwapAndUniSwap/index.js";
14
- import { i as M } from "./index-BTqlsA2t.js";
14
+ import { i as M } from "./index-MUaN67Ei.js";
15
15
  import { i as E } from "./index-pCrOsXNC.js";
16
16
  import { i as b } from "./index-B2wXmFh5.js";
17
17
  import { i as F } from "./index-DegQ9bTI.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "everest-npm-features",
3
- "version": "0.0.46",
3
+ "version": "0.0.47",
4
4
  "description": "Everest frontend features library.",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",