everest-npm-features 0.0.16 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/{Stack-CZu3N-Ba.js → Stack-euVJ1SJW.js} +1 -1
  2. package/dist/components/RocketRamp/MinimalKyc/form.js +1 -1
  3. package/dist/components/RocketRamp/Player/Dashboard/balance.js +1 -1
  4. package/dist/components/RocketRamp/Player/Dashboard/transaction.js +1 -1
  5. package/dist/components/RocketRamp/Player/SignIn/loginForm.js +1 -1
  6. package/dist/components/RocketRamp/Player/SignIn/otpForm.js +1 -1
  7. package/dist/components/RocketRamp/Player/SignUp/email.js +1 -1
  8. package/dist/components/RocketRamp/Player/SignUp/index.js +1 -1
  9. package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +1 -1
  10. package/dist/components/RocketRamp/Player/SignUp/summary.js +1 -1
  11. package/dist/components/RocketRamp/Player/SignUp/validateEmail.js +1 -1
  12. package/dist/components/RocketRamp/Store/Dashboard/balance.js +1 -1
  13. package/dist/components/RocketRamp/Store/Dashboard/stats.js +1 -1
  14. package/dist/components/RocketRamp/Store/Dashboard/transaction.js +1 -1
  15. package/dist/components/RocketRamp/Store/SignUp/index.js +1 -1
  16. package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +1 -1
  17. package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +1 -1
  18. package/dist/components/RocketRamp/Store/SignUp/summary.js +1 -1
  19. package/dist/components/RocketRamp/Store/SignUp/validateEmail.js +1 -1
  20. package/dist/components/RocketRamp/Transactions/index.js +1 -1
  21. package/dist/components/Wallet/EnterpriseKyc/edd.js +1 -1
  22. package/dist/components/Wallet/EnterpriseKyc/orgDetails.d.ts +1 -1
  23. package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +83 -92
  24. package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +1 -1
  25. package/dist/components/Wallet/EnterpriseKyc/verify.js +1 -1
  26. package/dist/components/Wallet/Shared/Auth/emailForm.js +1 -1
  27. package/dist/components/Wallet/Shared/Auth/otpForm.js +1 -1
  28. package/dist/components/Wallet/Shared/addBank.js +1 -1
  29. package/dist/components/Wallet/Swap/index.js +2 -2
  30. package/dist/hoc/withThemeProvider.js +163 -164
  31. package/package.json +1 -1
  32. /package/dist/assets/{main.css → withThemeProvider.css} +0 -0
@@ -1,4 +1,4 @@
1
- import { P as e, b as C, h as g, r as m, j as S, k as R, m as D, g as N, l as b } from "./createTheme-CKy7OHWe.js";
1
+ import { P as e, b as C, h as g, r as m, j as S, k as R, m as D, l as b, g as N } from "./createTheme-CKy7OHWe.js";
2
2
  import { c as E, a as F, s as B } from "./DefaultPropsProvider-Dta6YfYA.js";
3
3
  import { u as M, a as w } from "./useThemeProps-DIcjToML.js";
4
4
  import * as f from "react";
@@ -4,7 +4,7 @@ import { h as G } from "../../../moment-h96o7c8I.js";
4
4
  import { u as H, a as R } from "../../../react-redux-B4BZippc.js";
5
5
  import { removeExtraSpace as i } from "../../../util/functions.js";
6
6
  import { nameRegex as J } from "../../../util/regex.js";
7
- import '../../../assets/main.css';/* empty css */
7
+ import "../../../hoc/withThemeProvider.js";
8
8
  import "../../Wallet/Shared/appButton.js";
9
9
  import "../../Wallet/Shared/Auth/otpForm.js";
10
10
  import "../../../constants-A8X7fywY.js";
@@ -2,7 +2,7 @@ import { jsx as r, jsxs as o } from "react/jsx-runtime";
2
2
  import t from "../../Shared/Button/index.js";
3
3
  import { u as s } from "../../../../useTheme-g-gCeEAB.js";
4
4
  import { C as f, a as p } from "../../../../CardContent-KUuSGQyI.js";
5
- import { S as a } from "../../../../Stack-CZu3N-Ba.js";
5
+ import { S as a } from "../../../../Stack-euVJ1SJW.js";
6
6
  import { G as h } from "../../../../Grid2-DJW3x_WO.js";
7
7
  import { B as y } from "../../../../Box-rIIGCyb6.js";
8
8
  import { T as i } from "../../../../Typography-DiFeMX5p.js";
@@ -2,7 +2,7 @@ import { jsxs as m, Fragment as e, jsx as r } from "react/jsx-runtime";
2
2
  import l from "../../Shared/Button/index.js";
3
3
  import d from "../../../Shared/HistoryItem/index.js";
4
4
  import { T as i } from "../../../../Typography-DiFeMX5p.js";
5
- import { S as o } from "../../../../Stack-CZu3N-Ba.js";
5
+ import { S as o } from "../../../../Stack-euVJ1SJW.js";
6
6
  import { B as p } from "../../../../Box-rIIGCyb6.js";
7
7
  import { C as h } from "../../../../CircularProgress-CBhr9Pli.js";
8
8
  const j = ({
@@ -5,7 +5,7 @@ import { l as x } from "../../../../auth-PInt5Jrb.js";
5
5
  import l from "../../Shared/Button/index.js";
6
6
  import y from "../../Shared/Input/index.js";
7
7
  import { isValidEmail as m } from "../../../../util/functions.js";
8
- import { S as d } from "../../../../Stack-CZu3N-Ba.js";
8
+ import { S as d } from "../../../../Stack-euVJ1SJW.js";
9
9
  import { T as i } from "../../../../Typography-DiFeMX5p.js";
10
10
  import { B as E } from "../../../../Box-rIIGCyb6.js";
11
11
  const P = ({
@@ -5,7 +5,7 @@ import { useState as m, useEffect as f } from "react";
5
5
  import "../../../../constants-A8X7fywY.js";
6
6
  import { l as O, b as P } from "../../../../auth-PInt5Jrb.js";
7
7
  import { RESEND_EMAIL_TIMER as g } from "../../../../util/constants.js";
8
- import { S as o } from "../../../../Stack-CZu3N-Ba.js";
8
+ import { S as o } from "../../../../Stack-euVJ1SJW.js";
9
9
  import { T as a } from "../../../../Typography-DiFeMX5p.js";
10
10
  import { B as C } from "../../../../Box-rIIGCyb6.js";
11
11
  const $ = ({
@@ -7,7 +7,7 @@ import "../../../../constants-A8X7fywY.js";
7
7
  import { h as E } from "../../../../auth-PInt5Jrb.js";
8
8
  import { T as S } from "../../../../Typography-DiFeMX5p.js";
9
9
  import { B as b } from "../../../../Box-rIIGCyb6.js";
10
- import { S as T } from "../../../../Stack-CZu3N-Ba.js";
10
+ import { S as T } from "../../../../Stack-euVJ1SJW.js";
11
11
  const N = ({
12
12
  showAlertMessage: t,
13
13
  loader: i,
@@ -13,7 +13,7 @@ import { a as U, u as V, c as j, d as M } from "../../../../auth-PInt5Jrb.js";
13
13
  import { USERNAME_SUFFIX as N } from "../../../../util/constants.js";
14
14
  import { C as P } from "../../../../Container-CBfJit1k.js";
15
15
  import { B as F } from "../../../../Box-rIIGCyb6.js";
16
- import { S as k } from "../../../../Stack-CZu3N-Ba.js";
16
+ import { S as k } from "../../../../Stack-euVJ1SJW.js";
17
17
  import { T as u } from "../../../../Typography-DiFeMX5p.js";
18
18
  const z = ({ onRegister: v, navigate: h, navigatePath: g }) => {
19
19
  const a = I(), r = E((o) => o.session), i = E((o) => o.app).store.name, m = r.loader, x = r.validationError, S = r.screen, B = r.otpLoader, p = r.uuid, c = r.token, l = r.error, w = 4, { showAlertMessage: n, snackBar: D } = C(), [e, R] = b({
@@ -8,7 +8,7 @@ import { userNameRegex as L } from "../../../../util/regex.js";
8
8
  import { USERNAME_SUFFIX as b, USERNAME_TOOLTIP as U } from "../../../../util/constants.js";
9
9
  import { T as v } from "../../../../Typography-DiFeMX5p.js";
10
10
  import { B as W } from "../../../../Box-rIIGCyb6.js";
11
- import { S as y } from "../../../../Stack-CZu3N-Ba.js";
11
+ import { S as y } from "../../../../Stack-euVJ1SJW.js";
12
12
  import { I as E } from "../../../../InputAdornment-BStVwy6a.js";
13
13
  import { F as B } from "../../../../FormControl-uQi14shL.js";
14
14
  import { F as w, C as _ } from "../../../../FormControlLabel-CiZDlj3X.js";
@@ -2,7 +2,7 @@ import { jsxs as i, Fragment as d, jsx as e } from "react/jsx-runtime";
2
2
  import t from "../../Shared/Button/index.js";
3
3
  import { USERNAME_SUFFIX as u } from "../../../../util/constants.js";
4
4
  import { T as m } from "../../../../Typography-DiFeMX5p.js";
5
- import { S as o } from "../../../../Stack-CZu3N-Ba.js";
5
+ import { S as o } from "../../../../Stack-euVJ1SJW.js";
6
6
  import { B as p } from "../../../../Box-rIIGCyb6.js";
7
7
  const l = ({ label: r, value: a }) => /* @__PURE__ */ i(p, { children: [
8
8
  /* @__PURE__ */ e(
@@ -5,7 +5,7 @@ import { useState as l, useEffect as u } from "react";
5
5
  import { RESEND_EMAIL_TIMER as f } from "../../../../util/constants.js";
6
6
  import { T as a } from "../../../../Typography-DiFeMX5p.js";
7
7
  import { B as C } from "../../../../Box-rIIGCyb6.js";
8
- import { S as d } from "../../../../Stack-CZu3N-Ba.js";
8
+ import { S as d } from "../../../../Stack-euVJ1SJW.js";
9
9
  const _ = ({
10
10
  showAlertMessage: o,
11
11
  loader: p,
@@ -1,7 +1,7 @@
1
1
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
2
2
  import { u as n } from "../../../../useTheme-g-gCeEAB.js";
3
3
  import { C as s, a as c } from "../../../../CardContent-KUuSGQyI.js";
4
- import { S as m } from "../../../../Stack-CZu3N-Ba.js";
4
+ import { S as m } from "../../../../Stack-euVJ1SJW.js";
5
5
  import { B as l } from "../../../../Box-rIIGCyb6.js";
6
6
  import { T as o } from "../../../../Typography-DiFeMX5p.js";
7
7
  import { C as d } from "../../../../CircularProgress-CBhr9Pli.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
2
2
  import { u as n } from "../../../../useTheme-g-gCeEAB.js";
3
3
  import { C as s, a as m } from "../../../../CardContent-KUuSGQyI.js";
4
- import { S as c } from "../../../../Stack-CZu3N-Ba.js";
4
+ import { S as c } from "../../../../Stack-euVJ1SJW.js";
5
5
  import { B as l } from "../../../../Box-rIIGCyb6.js";
6
6
  import { T as o } from "../../../../Typography-DiFeMX5p.js";
7
7
  import { C as d } from "../../../../CircularProgress-CBhr9Pli.js";
@@ -2,7 +2,7 @@ import { jsxs as m, Fragment as e, jsx as r } from "react/jsx-runtime";
2
2
  import l from "../../Shared/Button/index.js";
3
3
  import d from "../../../Shared/HistoryItem/index.js";
4
4
  import { T as i } from "../../../../Typography-DiFeMX5p.js";
5
- import { S as o } from "../../../../Stack-CZu3N-Ba.js";
5
+ import { S as o } from "../../../../Stack-euVJ1SJW.js";
6
6
  import { B as p } from "../../../../Box-rIIGCyb6.js";
7
7
  import { C as h } from "../../../../CircularProgress-CBhr9Pli.js";
8
8
  const j = ({
@@ -14,7 +14,7 @@ import { USERNAME_SUFFIX as S } from "../../../../util/constants.js";
14
14
  import { C as M } from "../../../../Container-CBfJit1k.js";
15
15
  import { T as f } from "../../../../Typography-DiFeMX5p.js";
16
16
  import { B as R } from "../../../../Box-rIIGCyb6.js";
17
- import { S as y } from "../../../../Stack-CZu3N-Ba.js";
17
+ import { S as y } from "../../../../Stack-euVJ1SJW.js";
18
18
  const O = ({ onRegister: v, navigate: E, navigatePath: h }) => {
19
19
  const r = b(), t = T((a) => a.session), n = t.loader, g = t.validationError, F = t.validationField, u = t.screen, N = t.otpLoader, m = t.uuid, l = t.token, p = t.error, B = 4, { showAlertMessage: i, snackBar: k } = w(), [e, x] = I({
20
20
  email: "",
@@ -9,7 +9,7 @@ import { userNameRegex as L } from "../../../../util/regex.js";
9
9
  import { USERNAME_SUFFIX as W } from "../../../../util/constants.js";
10
10
  import { T as v } from "../../../../Typography-DiFeMX5p.js";
11
11
  import { B as E } from "../../../../Box-rIIGCyb6.js";
12
- import { S as j } from "../../../../Stack-CZu3N-Ba.js";
12
+ import { S as j } from "../../../../Stack-euVJ1SJW.js";
13
13
  import { I as U } from "../../../../InputAdornment-BStVwy6a.js";
14
14
  import { F as _ } from "../../../../FormControl-uQi14shL.js";
15
15
  import { F as q, C as D } from "../../../../FormControlLabel-CiZDlj3X.js";
@@ -9,7 +9,7 @@ import { storeNameOnChangeRegex as P, storeNameRegex as U } from "../../../../ut
9
9
  import { T as h } from "../../../../Typography-DiFeMX5p.js";
10
10
  import { A } from "../../../../Alert-BhBjKBJe.js";
11
11
  import { B as L } from "../../../../Box-rIIGCyb6.js";
12
- import { S as x } from "../../../../Stack-CZu3N-Ba.js";
12
+ import { S as x } from "../../../../Stack-euVJ1SJW.js";
13
13
  import { I as N } from "../../../../InputAdornment-BStVwy6a.js";
14
14
  const Y = ({
15
15
  showAlertMessage: a,
@@ -2,7 +2,7 @@ import { jsxs as i, Fragment as d, jsx as e } from "react/jsx-runtime";
2
2
  import t from "../../Shared/Button/index.js";
3
3
  import { USERNAME_SUFFIX as s } from "../../../../util/constants.js";
4
4
  import { T as m } from "../../../../Typography-DiFeMX5p.js";
5
- import { S as o } from "../../../../Stack-CZu3N-Ba.js";
5
+ import { S as o } from "../../../../Stack-euVJ1SJW.js";
6
6
  import { B as u } from "../../../../Box-rIIGCyb6.js";
7
7
  const l = ({ label: r, value: a }) => /* @__PURE__ */ i(u, { children: [
8
8
  /* @__PURE__ */ e(
@@ -5,7 +5,7 @@ import { useState as l, useEffect as u } from "react";
5
5
  import { RESEND_EMAIL_TIMER as f } from "../../../../util/constants.js";
6
6
  import { T as a } from "../../../../Typography-DiFeMX5p.js";
7
7
  import { B as C } from "../../../../Box-rIIGCyb6.js";
8
- import { S as d } from "../../../../Stack-CZu3N-Ba.js";
8
+ import { S as d } from "../../../../Stack-euVJ1SJW.js";
9
9
  const _ = ({
10
10
  showAlertMessage: o,
11
11
  loader: p,
@@ -8,7 +8,7 @@ import { useState as n, useEffect as c } from "react";
8
8
  import R from "../../../hoc/withThemeProvider.js";
9
9
  import S from "../Shared/backBtn.js";
10
10
  import { T as m } from "../../../Typography-DiFeMX5p.js";
11
- import { S as d } from "../../../Stack-CZu3N-Ba.js";
11
+ import { S as d } from "../../../Stack-euVJ1SJW.js";
12
12
  const j = ({ navigate: l }) => {
13
13
  const p = v(), r = P((o) => o.order), s = r.list, h = r.loader, f = r.totalPages, [e, g] = n(1), [a, u] = n([]);
14
14
  return c(() => {
@@ -3,7 +3,7 @@ import O from "../Shared/appButton.js";
3
3
  import { useRef as h, useState as U, createRef as A } from "react";
4
4
  import E from "./input.js";
5
5
  import { u as I } from "../../../react-redux-B4BZippc.js";
6
- import '../../../assets/main.css';/* empty css */
6
+ import "../../../hoc/withThemeProvider.js";
7
7
  import "../Shared/Auth/otpForm.js";
8
8
  import "../../../constants-A8X7fywY.js";
9
9
  import { a as b } from "../../../kyc-8mSMgUlU.js";
@@ -1,3 +1,3 @@
1
1
  import { OrgInfoProps } from './types';
2
- declare const OrganizationDetails: ({ onNext, kycData, disabled, kycStoreData, }: OrgInfoProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const OrganizationDetails: ({ onNext, kycData, disabled, }: OrgInfoProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default OrganizationDetails;
@@ -1,17 +1,17 @@
1
- import { jsxs as m, Fragment as R, jsx as n } from "react/jsx-runtime";
2
- import c from "../Shared/appButton.js";
3
- import { useRef as _, useState as M, useEffect as g, createRef as h } from "react";
4
- import b from "./input.js";
5
- import { u as q } from "../../../react-redux-B4BZippc.js";
6
- import '../../../assets/main.css';/* empty css */
1
+ import { jsxs as a, Fragment as O, jsx as r } from "react/jsx-runtime";
2
+ import x from "../Shared/appButton.js";
3
+ import { useRef as c, useState as M, createRef as U } from "react";
4
+ import h from "./input.js";
5
+ import { u as g } from "../../../react-redux-B4BZippc.js";
6
+ import "../../../hoc/withThemeProvider.js";
7
7
  import "../Shared/Auth/otpForm.js";
8
8
  import "../../../constants-A8X7fywY.js";
9
- import { a as P } from "../../../kyc-8mSMgUlU.js";
10
- import { useSnackBarContext as D } from "../../../context/snackBarContext.js";
9
+ import { a as b } from "../../../kyc-8mSMgUlU.js";
10
+ import { useSnackBarContext as q } from "../../../context/snackBarContext.js";
11
11
  import "../../../util/conversions.js";
12
12
  import "../../../index-CAoLi5Qq.js";
13
- import { C as G } from "../../../Close-Dv525LOL.js";
14
- import S from "../Shared/step.js";
13
+ import { C as P } from "../../../Close-Dv525LOL.js";
14
+ import G from "../Shared/step.js";
15
15
  import "../../../react-webcam-B3cXh1XT.js";
16
16
  import "../../Shared/transition.js";
17
17
  import "../Shared/pin.js";
@@ -22,14 +22,14 @@ import "../../../web3-u4qDZYpo.js";
22
22
  import "../../../index-B8QKlEgj.js";
23
23
  import "../../../index-ceeCtFuh.js";
24
24
  import { C as L, a as w } from "../../../FileDownload-71XI8nQB.js";
25
- import { B as p } from "../../../Box-rIIGCyb6.js";
25
+ import { B as T } from "../../../Box-rIIGCyb6.js";
26
26
  import { I as B } from "../../../InputAdornment-BStVwy6a.js";
27
- import { I as d } from "../../../IconButton-DRnoPKKH.js";
28
- const de = ({
29
- onNext: T,
27
+ import { I as p } from "../../../IconButton-DRnoPKKH.js";
28
+ const Te = ({
29
+ onNext: d,
30
30
  kycData: i,
31
- disabled: f = !1,
32
- kycStoreData: t
31
+ disabled: n = !1
32
+ // kycStoreData,
33
33
  }) => {
34
34
  const E = {
35
35
  ID_CARD: {
@@ -109,130 +109,121 @@ const de = ({
109
109
  required: !1,
110
110
  multiFile: !0
111
111
  }
112
- }, N = q(), { showAlertMessage: A } = D(), a = _(null), [o, u] = M(E);
113
- console.log("data", o), g(() => {
114
- if (t != null && t.uploadData.fileUrl && (t != null && t.uploadData.fileType)) {
115
- const e = t == null ? void 0 : t.uploadData.fileType;
116
- u((l) => {
117
- const r = l[e].file || [];
118
- return {
119
- ...l,
120
- [e]: {
121
- // @ts-ignore
122
- ...l[e],
123
- // @ts-ignore
124
- file: [...r, t == null ? void 0 : t.uploadData.fileUrl]
125
- }
126
- };
127
- });
128
- }
129
- }, [t == null ? void 0 : t.uploadData.fileUrl, t == null ? void 0 : t.uploadData.fileType]);
130
- const C = Object.keys(
112
+ }, R = g(), { showAlertMessage: A } = q(), _ = c(null), [o, f] = M(E), C = Object.keys(
131
113
  E
132
- ), I = _(
133
- C.reduce((e, l) => (e[l] = h(), e), {})
134
- ), F = () => {
135
- for (const e of Object.keys(o)) {
136
- const l = o[e];
137
- if (l.required) {
138
- const r = l.text.trim() !== "", s = l.file.length > 0;
139
- if (!r)
114
+ ), I = c(
115
+ C.reduce((t, e) => (t[e] = U(), t), {})
116
+ ), N = () => {
117
+ for (const t of Object.keys(o)) {
118
+ const e = o[t];
119
+ if (e.required) {
120
+ const l = e.text.trim() !== "", s = e.file.length > 0;
121
+ if (!l)
140
122
  return A({
141
- message: `Please fill in "${l.label}" text.`
123
+ message: `Please fill in "${e.label}" text.`
142
124
  }), !1;
143
125
  if (!s)
144
126
  return A({
145
- message: `Please upload file for "${l.label}".`
127
+ message: `Please upload file for "${e.label}".`
146
128
  }), !1;
147
129
  }
148
130
  }
149
131
  return !0;
150
- }, x = () => {
151
- F() && T && T(o);
152
- }, U = (e, l) => {
153
- const r = e.target.files;
154
- !r || r.length === 0 || Array.from(r).map((s) => {
155
- const O = new FileReader();
156
- O.readAsDataURL(s), O.onload = () => {
157
- N(P({ file: s, type: l }));
132
+ }, S = () => {
133
+ N() && d && d(o);
134
+ }, D = (t, e) => {
135
+ const l = t.target.files;
136
+ !l || l.length === 0 || Array.from(l).map((s) => {
137
+ const u = new FileReader();
138
+ u.readAsDataURL(s), u.onload = () => {
139
+ R(b({ file: s, type: e })), f((m) => {
140
+ const F = m[e].file || [];
141
+ return {
142
+ ...m,
143
+ [e]: {
144
+ ...m[e],
145
+ file: [...F, u.result]
146
+ }
147
+ };
148
+ });
158
149
  };
159
150
  });
160
151
  };
161
- return /* @__PURE__ */ m(R, { children: [
162
- !f && /* @__PURE__ */ n(p, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ n(S, { currentStep: 2, totalSteps: 3, topMargin: 0 }) }),
163
- /* @__PURE__ */ n(
152
+ return /* @__PURE__ */ a(O, { children: [
153
+ !n && /* @__PURE__ */ r(T, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ r(G, { currentStep: 2, totalSteps: 3, topMargin: 0 }) }),
154
+ /* @__PURE__ */ r(
164
155
  "form",
165
156
  {
166
- style: f ? {} : { height: "350px", overflowY: "scroll" },
167
- ref: a,
168
- children: C.map((e) => /* @__PURE__ */ m(p, { mt: 2, children: [
169
- /* @__PURE__ */ n(
170
- b,
157
+ style: n ? {} : { height: "350px", overflowY: "scroll" },
158
+ ref: _,
159
+ children: C.map((t) => /* @__PURE__ */ a(T, { mt: 2, children: [
160
+ /* @__PURE__ */ r(
161
+ h,
171
162
  {
172
- disabled: f,
173
- label: o[e].label,
174
- value: o[e].text,
175
- onChange: (l) => u((r) => ({
176
- ...r,
177
- [e]: { ...r[e], text: l.target.value }
163
+ disabled: n,
164
+ label: o[t].label,
165
+ value: o[t].text,
166
+ onChange: (e) => f((l) => ({
167
+ ...l,
168
+ [t]: { ...l[t], text: e.target.value }
178
169
  })),
179
170
  slotProps: {
180
171
  input: {
181
- endAdornment: /* @__PURE__ */ n(B, { position: "end", children: o[e].file.length > 0 ? /* @__PURE__ */ m(R, { children: [
182
- !f && /* @__PURE__ */ n(
183
- d,
172
+ endAdornment: /* @__PURE__ */ r(B, { position: "end", children: o[t].file.length > 0 ? /* @__PURE__ */ a(O, { children: [
173
+ !n && /* @__PURE__ */ r(
174
+ p,
184
175
  {
185
- onClick: () => u((l) => ({
186
- ...l,
187
- [e]: { ...l[e], file: [] }
176
+ onClick: () => f((e) => ({
177
+ ...e,
178
+ [t]: { ...e[t], file: [] }
188
179
  })),
189
180
  edge: "end",
190
- children: /* @__PURE__ */ n(G, {})
181
+ children: /* @__PURE__ */ r(P, {})
191
182
  }
192
183
  ),
193
- o[e].file.map((l, r) => /* @__PURE__ */ n(
194
- d,
184
+ o[t].file.map((e, l) => /* @__PURE__ */ r(
185
+ p,
195
186
  {
196
- onClick: () => window.open(l),
187
+ onClick: () => window.open(e),
197
188
  edge: "end",
198
- children: /* @__PURE__ */ n(L, {})
189
+ children: /* @__PURE__ */ r(L, {})
199
190
  },
200
- r
191
+ l
201
192
  ))
202
- ] }) : /* @__PURE__ */ n(
203
- d,
193
+ ] }) : /* @__PURE__ */ r(
194
+ p,
204
195
  {
205
196
  onClick: () => {
206
- var l, r;
207
- return (r = (l = I.current[e]) == null ? void 0 : l.current) == null ? void 0 : r.click();
197
+ var e, l;
198
+ return (l = (e = I.current[t]) == null ? void 0 : e.current) == null ? void 0 : l.click();
208
199
  },
209
200
  edge: "end",
210
- children: /* @__PURE__ */ n(w, {})
201
+ children: /* @__PURE__ */ r(w, {})
211
202
  }
212
203
  ) })
213
204
  }
214
205
  },
215
- required: o[e].required
206
+ required: o[t].required
216
207
  }
217
208
  ),
218
- /* @__PURE__ */ n(
209
+ /* @__PURE__ */ r(
219
210
  "input",
220
211
  {
221
- ref: I.current[e],
212
+ ref: I.current[t],
222
213
  name: "regStatusFile",
223
214
  type: "file",
224
- onChange: (l) => U(l, e),
215
+ onChange: (e) => D(e, t),
225
216
  accept: "application/pdf, image/*",
226
- multiple: o[e].multiFile,
217
+ multiple: o[t].multiFile,
227
218
  hidden: !0
228
219
  }
229
220
  )
230
- ] }, e))
221
+ ] }, t))
231
222
  }
232
223
  ),
233
- !f && /* @__PURE__ */ n(p, { mt: 3.5, children: /* @__PURE__ */ n(c, { fullWidth: !0, onClick: x, children: "Next" }) })
224
+ !n && /* @__PURE__ */ r(T, { mt: 3.5, children: /* @__PURE__ */ r(x, { fullWidth: !0, onClick: S, children: "Next" }) })
234
225
  ] });
235
226
  };
236
227
  export {
237
- de as default
228
+ Te as default
238
229
  };
@@ -4,7 +4,7 @@ import { useRef as S, useState as O } from "react";
4
4
  import { c as b } from "../../../countries-BVn1FubK.js";
5
5
  import l from "./input.js";
6
6
  import { pick as w } from "../../../util/functions.js";
7
- import '../../../assets/main.css';/* empty css */
7
+ import "../../../hoc/withThemeProvider.js";
8
8
  import "../Shared/Auth/otpForm.js";
9
9
  import "../../../constants-A8X7fywY.js";
10
10
  import { useSnackBarContext as I } from "../../../context/snackBarContext.js";
@@ -5,7 +5,7 @@ import h from "../Shared/step.js";
5
5
  import u from "./orgDetails.js";
6
6
  import { c as x } from "../../../createSvgIcon-i5pI36SR.js";
7
7
  import { useState as C } from "react";
8
- import '../../../assets/main.css';/* empty css */
8
+ import "../../../hoc/withThemeProvider.js";
9
9
  import "../Shared/Auth/otpForm.js";
10
10
  import "../../../constants-A8X7fywY.js";
11
11
  import { useSnackBarContext as g } from "../../../context/snackBarContext.js";
@@ -5,7 +5,7 @@ import { isValidEmail as m } from "../../../../util/functions.js";
5
5
  import f from "../appButton.js";
6
6
  import { LOGIN_SCREEN as w } from "../../../../util/constants.js";
7
7
  import { B as a } from "../../../../Box-rIIGCyb6.js";
8
- import { S as p } from "../../../../Stack-CZu3N-Ba.js";
8
+ import { S as p } from "../../../../Stack-euVJ1SJW.js";
9
9
  import { T as g } from "../../../../Typography-DiFeMX5p.js";
10
10
  const W = ({
11
11
  showAlertMessage: o,
@@ -14,7 +14,7 @@ import { T as Yo } from "../../../../Transition-BZNWAtwm.js";
14
14
  import * as ui from "react-dom";
15
15
  import { G as di } from "../../../../emotion-react.browser.esm-DhKKo7i2.js";
16
16
  import { B as ro } from "../../../../Box-rIIGCyb6.js";
17
- import { S as vn } from "../../../../Stack-CZu3N-Ba.js";
17
+ import { S as vn } from "../../../../Stack-euVJ1SJW.js";
18
18
  import { T as Lt } from "../../../../Typography-DiFeMX5p.js";
19
19
  function Ve(e, ...t) {
20
20
  const o = new URL(`https://mui.com/production-error/?code=${e}`);
@@ -5,7 +5,7 @@ import { C as z } from "../../../Close-Dv525LOL.js";
5
5
  import t from "./inputField.js";
6
6
  import M from "../../Shared/transition.js";
7
7
  import { PAYMENT_PROVIDER_OPENPAYD as O } from "../../../util/constants.js";
8
- import '../../../assets/main.css';/* empty css */
8
+ import "../../../hoc/withThemeProvider.js";
9
9
  import "./appButton.js";
10
10
  import "./Auth/otpForm.js";
11
11
  import "../../../constants-A8X7fywY.js";
@@ -11,7 +11,7 @@ import "../../../constants-A8X7fywY.js";
11
11
  import { ARROW_ICON as Oe, ESTIMATE_TOOLTIP_TEXT as Re } from "../../../util/constants.js";
12
12
  import Ee from "../../Shared/tooltip.js";
13
13
  import Pe from "../Shared/ConnectWallet/index.js";
14
- import '../../../assets/main.css';import '../../../assets/index2.css';/* empty css */
14
+ import "../../../hoc/withThemeProvider.js";
15
15
  import "../Shared/appButton.js";
16
16
  import "../Shared/Auth/otpForm.js";
17
17
  import "../../../context/snackBarContext.js";
@@ -36,7 +36,7 @@ import { M as x } from "../../../MenuItem-BKHoKEhO.js";
36
36
  import { L as te } from "../../../ListItemIcon-BO6nZHNq.js";
37
37
  import { I as ae } from "../../../IconButton-DRnoPKKH.js";
38
38
  import { B as ze } from "../../../Button-Csuq67Py.js";
39
- const Be = "_label_cuehd_1", De = "_amount_cuehd_71", s = {
39
+ import '../../../assets/index2.css';const Be = "_label_cuehd_1", De = "_amount_cuehd_71", s = {
40
40
  label: Be,
41
41
  "balance-label": "_balance-label_cuehd_13",
42
42
  "max-btn": "_max-btn_cuehd_25",
@@ -1,17 +1,16 @@
1
- import { jsx as S, jsxs as Oe } from "react/jsx-runtime";
2
- import '../assets/main.css';/* empty css */
1
+ import { jsx as S, jsxs as je } from "react/jsx-runtime";
2
+ import { B as Ie, P as a, D as Le, S as Ae, e as Ke, T as x, c as ve, F as Re, s as We } from "../createTheme-CKy7OHWe.js";
3
3
  import * as d from "react";
4
- import { B as je, P as a, D as Ie, S as Le, e as Ae, T as x, c as Ke, F as Re, s as Fe } from "../createTheme-CKy7OHWe.js";
5
- import { R as He } from "../index-BnKMvdnf.js";
6
- import { u as We } from "../useThemeWithoutDefault-DaojF4V7.js";
4
+ import { R as Fe } from "../index-BnKMvdnf.js";
5
+ import { u as He } from "../useThemeWithoutDefault-DaojF4V7.js";
7
6
  import { e as be } from "../exactProp-C1Lmtwf_.js";
8
7
  import { D as Ge } from "../DefaultPropsProvider-C9ddiClG.js";
9
8
  import { G as Ue } from "../GlobalStyles-yJPIbrEZ.js";
10
- const qe = (e) => {
11
- const t = Ie(e);
12
- class o extends Le {
13
- constructor(f) {
14
- super(f), this.prepend = t.sheet.prepend;
9
+ import '../assets/withThemeProvider.css';const qe = (e) => {
10
+ const t = Le(e);
11
+ class o extends Ae {
12
+ constructor(m) {
13
+ super(m), this.prepend = t.sheet.prepend;
15
14
  }
16
15
  }
17
16
  return t.sheet = new o({
@@ -28,17 +27,17 @@ typeof document == "object" && (Y = qe({
28
27
  key: "css",
29
28
  prepend: !0
30
29
  }));
31
- function B(e) {
30
+ function Me(e) {
32
31
  const {
33
32
  injectFirst: t,
34
33
  children: o
35
34
  } = e;
36
- return t && Y ? /* @__PURE__ */ S(je, {
35
+ return t && Y ? /* @__PURE__ */ S(Ie, {
37
36
  value: Y,
38
37
  children: o
39
38
  }) : o;
40
39
  }
41
- process.env.NODE_ENV !== "production" && (B.propTypes = {
40
+ process.env.NODE_ENV !== "production" && (Me.propTypes = {
42
41
  /**
43
42
  * Your component tree.
44
43
  */
@@ -50,10 +49,10 @@ process.env.NODE_ENV !== "production" && (B.propTypes = {
50
49
  */
51
50
  injectFirst: a.bool
52
51
  });
53
- const z = /* @__PURE__ */ d.createContext(null);
54
- process.env.NODE_ENV !== "production" && (z.displayName = "ThemeContext");
55
- function Q() {
56
- const e = d.useContext(z);
52
+ const B = /* @__PURE__ */ d.createContext(null);
53
+ process.env.NODE_ENV !== "production" && (B.displayName = "ThemeContext");
54
+ function z() {
55
+ const e = d.useContext(B);
57
56
  return process.env.NODE_ENV !== "production" && d.useDebugValue(e), e;
58
57
  }
59
58
  const Ye = typeof Symbol == "function" && Symbol.for, Be = Ye ? Symbol.for("mui.nested") : "__THEME_NESTED__";
@@ -72,17 +71,17 @@ function A(e) {
72
71
  const {
73
72
  children: t,
74
73
  theme: o
75
- } = e, n = Q();
76
- process.env.NODE_ENV !== "production" && n === null && typeof o == "function" && console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:", "<ThemeProvider theme={outerTheme => outerTheme} />", "", "However, no outer theme is present.", "Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
74
+ } = e, s = z();
75
+ process.env.NODE_ENV !== "production" && s === null && typeof o == "function" && console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:", "<ThemeProvider theme={outerTheme => outerTheme} />", "", "However, no outer theme is present.", "Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
77
76
  `));
78
- const f = d.useMemo(() => {
79
- const m = n === null ? {
77
+ const m = d.useMemo(() => {
78
+ const h = s === null ? {
80
79
  ...o
81
- } : ze(n, o);
82
- return m != null && (m[Be] = n !== null), m;
83
- }, [o, n]);
84
- return /* @__PURE__ */ S(z.Provider, {
85
- value: f,
80
+ } : ze(s, o);
81
+ return h != null && (h[Be] = s !== null), h;
82
+ }, [o, s]);
83
+ return /* @__PURE__ */ S(B.Provider, {
84
+ value: m,
86
85
  children: t
87
86
  });
88
87
  }
@@ -97,16 +96,16 @@ process.env.NODE_ENV !== "production" && (A.propTypes = {
97
96
  theme: a.oneOfType([a.object, a.func]).isRequired
98
97
  });
99
98
  process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && (A.propTypes = be(A.propTypes));
100
- const Ee = {};
101
- function Te(e, t, o, n = !1) {
99
+ const Ce = {};
100
+ function Ee(e, t, o, s = !1) {
102
101
  return d.useMemo(() => {
103
- const f = e && t[e] || t;
102
+ const m = e && t[e] || t;
104
103
  if (typeof o == "function") {
105
- const m = o(f), r = e ? {
104
+ const h = o(m), r = e ? {
106
105
  ...t,
107
- [e]: m
108
- } : m;
109
- return n ? () => r : r;
106
+ [e]: h
107
+ } : h;
108
+ return s ? () => r : r;
110
109
  }
111
110
  return e ? {
112
111
  ...t,
@@ -115,22 +114,22 @@ function Te(e, t, o, n = !1) {
115
114
  ...t,
116
115
  ...o
117
116
  };
118
- }, [e, t, o, n]);
117
+ }, [e, t, o, s]);
119
118
  }
120
119
  function O(e) {
121
120
  const {
122
121
  children: t,
123
122
  theme: o,
124
- themeId: n
125
- } = e, f = We(Ee), m = Q() || Ee;
126
- process.env.NODE_ENV !== "production" && (f === null && typeof o == "function" || n && f && !f[n] && typeof o == "function") && console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:", "<ThemeProvider theme={outerTheme => outerTheme} />", "", "However, no outer theme is present.", "Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
123
+ themeId: s
124
+ } = e, m = He(Ce), h = z() || Ce;
125
+ process.env.NODE_ENV !== "production" && (m === null && typeof o == "function" || s && m && !m[s] && typeof o == "function") && console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:", "<ThemeProvider theme={outerTheme => outerTheme} />", "", "However, no outer theme is present.", "Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
127
126
  `));
128
- const r = Te(n, f, o), E = Te(n, m, o, !0), g = r.direction === "rtl";
127
+ const r = Ee(s, m, o), E = Ee(s, h, o, !0), g = r.direction === "rtl";
129
128
  return /* @__PURE__ */ S(A, {
130
129
  theme: E,
131
- children: /* @__PURE__ */ S(Ae.Provider, {
130
+ children: /* @__PURE__ */ S(Ke.Provider, {
132
131
  value: r,
133
- children: /* @__PURE__ */ S(He, {
132
+ children: /* @__PURE__ */ S(Fe, {
134
133
  value: g,
135
134
  children: /* @__PURE__ */ S(Ge, {
136
135
  value: r == null ? void 0 : r.components,
@@ -159,19 +158,19 @@ process.env.NODE_ENV !== "production" && (O.propTypes = {
159
158
  themeId: a.string
160
159
  });
161
160
  process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && (O.propTypes = be(O.propTypes));
162
- const J = "mode", X = "color-scheme", Qe = "data-color-scheme";
161
+ const Q = "mode", J = "color-scheme", Qe = "data-color-scheme";
163
162
  function Je(e) {
164
163
  const {
165
164
  defaultLightColorScheme: t = "light",
166
165
  defaultDarkColorScheme: o = "dark",
167
- modeStorageKey: n = J,
168
- colorSchemeStorageKey: f = X,
169
- attribute: m = Qe,
166
+ modeStorageKey: s = Q,
167
+ colorSchemeStorageKey: m = J,
168
+ attribute: h = Qe,
170
169
  colorSchemeNode: r = "document.documentElement",
171
170
  nonce: E
172
171
  } = e || {};
173
- let g = "", l = m;
174
- if (m === "class" && (l = ".%s"), m === "data" && (l = "[data-%s]"), l.startsWith(".")) {
172
+ let g = "", l = h;
173
+ if (h === "class" && (l = ".%s"), h === "data" && (l = "[data-%s]"), l.startsWith(".")) {
175
174
  const y = l.substring(1);
176
175
  g += `${r}.classList.remove('${y}'.replace('%s', light), '${y}'.replace('%s', dark));
177
176
  ${r}.classList.add('${y}'.replace('%s', colorScheme));`;
@@ -191,9 +190,9 @@ function Je(e) {
191
190
  __html: `(function() {
192
191
  try {
193
192
  let colorScheme = '';
194
- const mode = localStorage.getItem('${n}') || 'system';
195
- const dark = localStorage.getItem('${f}-dark') || '${o}';
196
- const light = localStorage.getItem('${f}-light') || '${t}';
193
+ const mode = localStorage.getItem('${s}') || 'system';
194
+ const dark = localStorage.getItem('${m}-dark') || '${o}';
195
+ const light = localStorage.getItem('${m}-light') || '${t}';
197
196
  if (mode === 'system') {
198
197
  // handle system mode
199
198
  const mql = window.matchMedia('(prefers-color-scheme: dark)');
@@ -216,18 +215,18 @@ try {
216
215
  }
217
216
  }, "mui-color-scheme-init");
218
217
  }
219
- function ke(e) {
218
+ function Te(e) {
220
219
  if (typeof window < "u" && typeof window.matchMedia == "function" && e === "system")
221
220
  return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
222
221
  }
223
- function Me(e, t) {
222
+ function Ne(e, t) {
224
223
  if (e.mode === "light" || e.mode === "system" && e.systemMode === "light")
225
224
  return t("light");
226
225
  if (e.mode === "dark" || e.mode === "system" && e.systemMode === "dark")
227
226
  return t("dark");
228
227
  }
229
228
  function Xe(e) {
230
- return Me(e, (t) => {
229
+ return Ne(e, (t) => {
231
230
  if (t === "light")
232
231
  return e.lightColorScheme;
233
232
  if (t === "dark")
@@ -248,16 +247,16 @@ function Ze(e) {
248
247
  const {
249
248
  defaultMode: t = "light",
250
249
  defaultLightColorScheme: o,
251
- defaultDarkColorScheme: n,
252
- supportedColorSchemes: f = [],
253
- modeStorageKey: m = J,
254
- colorSchemeStorageKey: r = X,
250
+ defaultDarkColorScheme: s,
251
+ supportedColorSchemes: m = [],
252
+ modeStorageKey: h = Q,
253
+ colorSchemeStorageKey: r = J,
255
254
  storageWindow: E = typeof window > "u" ? void 0 : window
256
- } = e, g = f.join(","), l = f.length > 1, [T, y] = d.useState(() => {
257
- const s = q(m, t), c = q(`${r}-light`, o), i = q(`${r}-dark`, n);
255
+ } = e, g = m.join(","), l = m.length > 1, [T, y] = d.useState(() => {
256
+ const n = q(h, t), c = q(`${r}-light`, o), i = q(`${r}-dark`, s);
258
257
  return {
259
- mode: s,
260
- systemMode: ke(s),
258
+ mode: n,
259
+ systemMode: Te(n),
261
260
  lightColorScheme: c,
262
261
  darkColorScheme: i
263
262
  };
@@ -265,37 +264,37 @@ function Ze(e) {
265
264
  d.useEffect(() => {
266
265
  l && M(!0), $.current = !0;
267
266
  }, [l]);
268
- const Z = Xe(T), N = d.useCallback((s) => {
267
+ const X = Xe(T), N = d.useCallback((n) => {
269
268
  y((c) => {
270
- if (s === c.mode)
269
+ if (n === c.mode)
271
270
  return c;
272
- const i = s ?? t;
271
+ const i = n ?? t;
273
272
  try {
274
- localStorage.setItem(m, i);
273
+ localStorage.setItem(h, i);
275
274
  } catch {
276
275
  }
277
276
  return {
278
277
  ...c,
279
278
  mode: i,
280
- systemMode: ke(i)
279
+ systemMode: Te(i)
281
280
  };
282
281
  });
283
- }, [m, t]), _ = d.useCallback((s) => {
284
- s ? typeof s == "string" ? s && !g.includes(s) ? console.error(`\`${s}\` does not exist in \`theme.colorSchemes\`.`) : y((c) => {
282
+ }, [h, t]), _ = d.useCallback((n) => {
283
+ n ? typeof n == "string" ? n && !g.includes(n) ? console.error(`\`${n}\` does not exist in \`theme.colorSchemes\`.`) : y((c) => {
285
284
  const i = {
286
285
  ...c
287
286
  };
288
- return Me(c, (p) => {
287
+ return Ne(c, (p) => {
289
288
  try {
290
- localStorage.setItem(`${r}-${p}`, s);
289
+ localStorage.setItem(`${r}-${p}`, n);
291
290
  } catch {
292
291
  }
293
- p === "light" && (i.lightColorScheme = s), p === "dark" && (i.darkColorScheme = s);
292
+ p === "light" && (i.lightColorScheme = n), p === "dark" && (i.darkColorScheme = n);
294
293
  }), i;
295
294
  }) : y((c) => {
296
295
  const i = {
297
296
  ...c
298
- }, p = s.light === null ? o : s.light, C = s.dark === null ? n : s.dark;
297
+ }, p = n.light === null ? o : n.light, C = n.dark === null ? s : n.dark;
299
298
  if (p)
300
299
  if (!g.includes(p))
301
300
  console.error(`\`${p}\` does not exist in \`theme.colorSchemes\`.`);
@@ -319,18 +318,18 @@ function Ze(e) {
319
318
  return i;
320
319
  }) : y((c) => {
321
320
  try {
322
- localStorage.setItem(`${r}-light`, o), localStorage.setItem(`${r}-dark`, n);
321
+ localStorage.setItem(`${r}-light`, o), localStorage.setItem(`${r}-dark`, s);
323
322
  } catch {
324
323
  }
325
324
  return {
326
325
  ...c,
327
326
  lightColorScheme: o,
328
- darkColorScheme: n
327
+ darkColorScheme: s
329
328
  };
330
329
  });
331
- }, [g, r, o, n]), D = d.useCallback((s) => {
330
+ }, [g, r, o, s]), D = d.useCallback((n) => {
332
331
  T.mode === "system" && y((c) => {
333
- const i = s != null && s.matches ? "dark" : "light";
332
+ const i = n != null && n.matches ? "dark" : "light";
334
333
  return c.systemMode === i ? c : {
335
334
  ...c,
336
335
  systemMode: i
@@ -340,29 +339,29 @@ function Ze(e) {
340
339
  return j.current = D, d.useEffect(() => {
341
340
  if (typeof window.matchMedia != "function" || !l)
342
341
  return;
343
- const s = (...i) => j.current(...i), c = window.matchMedia("(prefers-color-scheme: dark)");
344
- return c.addListener(s), s(c), () => {
345
- c.removeListener(s);
342
+ const n = (...i) => j.current(...i), c = window.matchMedia("(prefers-color-scheme: dark)");
343
+ return c.addListener(n), n(c), () => {
344
+ c.removeListener(n);
346
345
  };
347
346
  }, [l]), d.useEffect(() => {
348
347
  if (E && l) {
349
- const s = (c) => {
348
+ const n = (c) => {
350
349
  const i = c.newValue;
351
350
  typeof c.key == "string" && c.key.startsWith(r) && (!i || g.match(i)) && (c.key.endsWith("light") && _({
352
351
  light: i
353
352
  }), c.key.endsWith("dark") && _({
354
353
  dark: i
355
- })), c.key === m && (!i || ["light", "dark", "system"].includes(i)) && N(i || t);
354
+ })), c.key === h && (!i || ["light", "dark", "system"].includes(i)) && N(i || t);
356
355
  };
357
- return E.addEventListener("storage", s), () => {
358
- E.removeEventListener("storage", s);
356
+ return E.addEventListener("storage", n), () => {
357
+ E.removeEventListener("storage", n);
359
358
  };
360
359
  }
361
- }, [_, N, m, r, g, t, E, l]), {
360
+ }, [_, N, h, r, g, t, E, l]), {
362
361
  ...T,
363
362
  mode: $.current || !l ? T.mode : void 0,
364
363
  systemMode: $.current || !l ? T.systemMode : void 0,
365
- colorScheme: $.current || !l ? Z : void 0,
364
+ colorScheme: $.current || !l ? X : void 0,
366
365
  setMode: N,
367
366
  setColorScheme: _
368
367
  };
@@ -378,9 +377,9 @@ function tt(e) {
378
377
  * It should also ideally have a vars object created using `prepareCssVars`.
379
378
  */
380
379
  theme: o = {},
381
- modeStorageKey: n = J,
382
- colorSchemeStorageKey: f = X,
383
- disableTransitionOnChange: m = !1,
380
+ modeStorageKey: s = Q,
381
+ colorSchemeStorageKey: m = J,
382
+ disableTransitionOnChange: h = !1,
384
383
  defaultColorScheme: r,
385
384
  resolveTheme: E
386
385
  } = e, g = {
@@ -398,114 +397,114 @@ function tt(e) {
398
397
  process.env.NODE_ENV !== "production" && (l.displayName = "ColorSchemeContext");
399
398
  const T = () => d.useContext(l) || g;
400
399
  function y(N) {
401
- var fe, Se, pe, ge, ye;
400
+ var ue, fe, pe, Se, ge;
402
401
  const {
403
402
  children: _,
404
403
  theme: D,
405
- modeStorageKey: j = n,
406
- colorSchemeStorageKey: s = f,
407
- disableTransitionOnChange: c = m,
404
+ modeStorageKey: j = s,
405
+ colorSchemeStorageKey: n = m,
406
+ disableTransitionOnChange: c = h,
408
407
  storageWindow: i = typeof window > "u" ? void 0 : window,
409
408
  documentNode: p = typeof document > "u" ? void 0 : document,
410
409
  colorSchemeNode: C = typeof document > "u" ? void 0 : document.documentElement,
411
410
  disableNestedContext: K = !1,
412
- disableStyleSheetGeneration: Ne = !1
413
- } = N, R = d.useRef(!1), F = Q(), H = d.useContext(l), W = !!H && !K, ee = d.useMemo(() => D || (typeof o == "function" ? o() : o), [D]), te = ee[t], {
411
+ disableStyleSheetGeneration: we = !1
412
+ } = N, R = d.useRef(!1), W = z(), F = d.useContext(l), H = !!F && !K, Z = d.useMemo(() => D || (typeof o == "function" ? o() : o), [D]), ee = Z[t], {
414
413
  colorSchemes: w = {},
415
- components: we = {},
416
- cssVarPrefix: oe,
414
+ components: $e = {},
415
+ cssVarPrefix: te,
417
416
  ...b
418
- } = te || ee, re = Object.keys(w).filter((h) => !!w[h]).join(","), P = d.useMemo(() => re.split(","), [re]), ne = typeof r == "string" ? r : r.light, se = typeof r == "string" ? r : r.dark, $e = w[ne] && w[se] ? "system" : ((Se = (fe = w[b.defaultColorScheme]) == null ? void 0 : fe.palette) == null ? void 0 : Se.mode) || ((pe = b.palette) == null ? void 0 : pe.mode), {
419
- mode: _e,
420
- setMode: ce,
421
- systemMode: ie,
422
- lightColorScheme: de,
423
- darkColorScheme: le,
424
- colorScheme: De,
425
- setColorScheme: ae
417
+ } = ee || Z, oe = Object.keys(w).filter((u) => !!w[u]).join(","), P = d.useMemo(() => oe.split(","), [oe]), re = typeof r == "string" ? r : r.light, ne = typeof r == "string" ? r : r.dark, _e = w[re] && w[ne] ? "system" : ((fe = (ue = w[b.defaultColorScheme]) == null ? void 0 : ue.palette) == null ? void 0 : fe.mode) || ((pe = b.palette) == null ? void 0 : pe.mode), {
418
+ mode: De,
419
+ setMode: se,
420
+ systemMode: ce,
421
+ lightColorScheme: ie,
422
+ darkColorScheme: de,
423
+ colorScheme: Pe,
424
+ setColorScheme: le
426
425
  } = Ze({
427
426
  supportedColorSchemes: P,
428
- defaultLightColorScheme: ne,
429
- defaultDarkColorScheme: se,
427
+ defaultLightColorScheme: re,
428
+ defaultDarkColorScheme: ne,
430
429
  modeStorageKey: j,
431
- colorSchemeStorageKey: s,
432
- defaultMode: $e,
430
+ colorSchemeStorageKey: n,
431
+ defaultMode: _e,
433
432
  storageWindow: i
434
433
  });
435
- let G = _e, k = De;
436
- W && (G = H.mode, k = H.colorScheme);
437
- const me = k || b.defaultColorScheme, Pe = ((ge = b.generateThemeVars) == null ? void 0 : ge.call(b)) || b.vars, v = {
434
+ let G = De, k = Pe;
435
+ H && (G = F.mode, k = F.colorScheme);
436
+ const ae = k || b.defaultColorScheme, xe = ((Se = b.generateThemeVars) == null ? void 0 : Se.call(b)) || b.vars, v = {
438
437
  ...b,
439
- components: we,
438
+ components: $e,
440
439
  colorSchemes: w,
441
- cssVarPrefix: oe,
442
- vars: Pe
440
+ cssVarPrefix: te,
441
+ vars: xe
443
442
  };
444
- if (typeof v.generateSpacing == "function" && (v.spacing = v.generateSpacing()), me) {
445
- const h = w[me];
446
- h && typeof h == "object" && Object.keys(h).forEach((u) => {
447
- h[u] && typeof h[u] == "object" ? v[u] = {
448
- ...v[u],
449
- ...h[u]
450
- } : v[u] = h[u];
443
+ if (typeof v.generateSpacing == "function" && (v.spacing = v.generateSpacing()), ae) {
444
+ const u = w[ae];
445
+ u && typeof u == "object" && Object.keys(u).forEach((f) => {
446
+ u[f] && typeof u[f] == "object" ? v[f] = {
447
+ ...v[f],
448
+ ...u[f]
449
+ } : v[f] = u[f];
451
450
  });
452
451
  }
453
452
  const V = b.colorSchemeSelector;
454
453
  d.useEffect(() => {
455
454
  if (k && C && V && V !== "media") {
456
- const h = V;
457
- let u = V;
458
- if (h === "class" && (u = ".%s"), h === "data" && (u = "[data-%s]"), h != null && h.startsWith("data-") && !h.includes("%s") && (u = `[${h}="%s"]`), u.startsWith("."))
459
- C.classList.remove(...P.map((I) => u.substring(1).replace("%s", I))), C.classList.add(u.substring(1).replace("%s", k));
455
+ const u = V;
456
+ let f = V;
457
+ if (u === "class" && (f = ".%s"), u === "data" && (f = "[data-%s]"), u != null && u.startsWith("data-") && !u.includes("%s") && (f = `[${u}="%s"]`), f.startsWith("."))
458
+ C.classList.remove(...P.map((I) => f.substring(1).replace("%s", I))), C.classList.add(f.substring(1).replace("%s", k));
460
459
  else {
461
- const I = u.replace("%s", k).match(/\[([^\]]+)\]/);
460
+ const I = f.replace("%s", k).match(/\[([^\]]+)\]/);
462
461
  if (I) {
463
- const [Ce, U] = I[1].split("=");
464
- U || P.forEach((Ve) => {
465
- C.removeAttribute(Ce.replace(k, Ve));
466
- }), C.setAttribute(Ce, U ? U.replace(/"|'/g, "") : "");
462
+ const [ye, U] = I[1].split("=");
463
+ U || P.forEach((Oe) => {
464
+ C.removeAttribute(ye.replace(k, Oe));
465
+ }), C.setAttribute(ye, U ? U.replace(/"|'/g, "") : "");
467
466
  } else
468
- C.setAttribute(u, k);
467
+ C.setAttribute(f, k);
469
468
  }
470
469
  }
471
470
  }, [k, V, C, P]), d.useEffect(() => {
472
- let h;
471
+ let u;
473
472
  if (c && R.current && p) {
474
- const u = p.createElement("style");
475
- u.appendChild(p.createTextNode(et)), p.head.appendChild(u), window.getComputedStyle(p.body), h = setTimeout(() => {
476
- p.head.removeChild(u);
473
+ const f = p.createElement("style");
474
+ f.appendChild(p.createTextNode(et)), p.head.appendChild(f), window.getComputedStyle(p.body), u = setTimeout(() => {
475
+ p.head.removeChild(f);
477
476
  }, 1);
478
477
  }
479
478
  return () => {
480
- clearTimeout(h);
479
+ clearTimeout(u);
481
480
  };
482
481
  }, [k, c, p]), d.useEffect(() => (R.current = !0, () => {
483
482
  R.current = !1;
484
483
  }), []);
485
- const xe = d.useMemo(() => ({
484
+ const Ve = d.useMemo(() => ({
486
485
  allColorSchemes: P,
487
486
  colorScheme: k,
488
- darkColorScheme: le,
489
- lightColorScheme: de,
487
+ darkColorScheme: de,
488
+ lightColorScheme: ie,
490
489
  mode: G,
491
- setColorScheme: ae,
492
- setMode: ce,
493
- systemMode: ie
494
- }), [P, k, le, de, G, ae, ce, ie]);
495
- let he = !0;
496
- (Ne || b.cssVariables === !1 || W && (F == null ? void 0 : F.cssVarPrefix) === oe) && (he = !1);
497
- const ue = /* @__PURE__ */ Oe(d.Fragment, {
490
+ setColorScheme: le,
491
+ setMode: se,
492
+ systemMode: ce
493
+ }), [P, k, de, ie, G, le, se, ce]);
494
+ let me = !0;
495
+ (we || b.cssVariables === !1 || H && (W == null ? void 0 : W.cssVarPrefix) === te) && (me = !1);
496
+ const he = /* @__PURE__ */ je(d.Fragment, {
498
497
  children: [/* @__PURE__ */ S(O, {
499
- themeId: te ? t : void 0,
498
+ themeId: ee ? t : void 0,
500
499
  theme: E ? E(v) : v,
501
500
  children: _
502
- }), he && /* @__PURE__ */ S(Ue, {
503
- styles: ((ye = v.generateStyleSheets) == null ? void 0 : ye.call(v)) || []
501
+ }), me && /* @__PURE__ */ S(Ue, {
502
+ styles: ((ge = v.generateStyleSheets) == null ? void 0 : ge.call(v)) || []
504
503
  })]
505
504
  });
506
- return W ? ue : /* @__PURE__ */ S(l.Provider, {
507
- value: xe,
508
- children: ue
505
+ return H ? he : /* @__PURE__ */ S(l.Provider, {
506
+ value: Ve,
507
+ children: he
509
508
  });
510
509
  }
511
510
  process.env.NODE_ENV !== "production" && (y.propTypes = {
@@ -558,15 +557,15 @@ function tt(e) {
558
557
  CssVarsProvider: y,
559
558
  useColorScheme: T,
560
559
  getInitColorSchemeScript: (N) => Je({
561
- colorSchemeStorageKey: f,
560
+ colorSchemeStorageKey: m,
562
561
  defaultLightColorScheme: M,
563
562
  defaultDarkColorScheme: $,
564
- modeStorageKey: n,
563
+ modeStorageKey: s,
565
564
  ...N
566
565
  })
567
566
  };
568
567
  }
569
- function ve({
568
+ function ke({
570
569
  theme: e,
571
570
  ...t
572
571
  }) {
@@ -590,7 +589,7 @@ const L = {
590
589
  } = tt({
591
590
  themeId: x,
592
591
  // @ts-ignore ignore module augmentation tests
593
- theme: () => Ke({
592
+ theme: () => ve({
594
593
  cssVariables: !0
595
594
  }),
596
595
  colorSchemeStorageKey: L.colorSchemeStorageKey,
@@ -604,9 +603,9 @@ const L = {
604
603
  ...e,
605
604
  typography: Re(e.palette, e.typography)
606
605
  };
607
- return t.unstable_sx = function(n) {
608
- return Fe({
609
- sx: n,
606
+ return t.unstable_sx = function(s) {
607
+ return We({
608
+ sx: s,
610
609
  theme: this
611
610
  });
612
611
  }, t;
@@ -616,21 +615,21 @@ function nt({
616
615
  theme: e,
617
616
  ...t
618
617
  }) {
619
- return typeof e == "function" ? /* @__PURE__ */ S(ve, {
618
+ return typeof e == "function" ? /* @__PURE__ */ S(ke, {
620
619
  theme: e,
621
620
  ...t
622
621
  }) : "colorSchemes" in (x in e ? e[x] : e) ? /* @__PURE__ */ S(rt, {
623
622
  theme: e,
624
623
  ...t
625
- }) : /* @__PURE__ */ S(ve, {
624
+ }) : /* @__PURE__ */ S(ke, {
626
625
  theme: e,
627
626
  ...t
628
627
  });
629
628
  }
630
- const St = (e) => ({
629
+ const st = ve(), pt = (e) => ({
631
630
  theme: o,
632
- ...n
633
- }) => o ? /* @__PURE__ */ S(B, { injectFirst: !0, children: /* @__PURE__ */ S(nt, { theme: o, children: /* @__PURE__ */ S(e, { ...n }) }) }) : /* @__PURE__ */ S(B, { injectFirst: !0, children: /* @__PURE__ */ S(e, { ...n }) });
631
+ ...s
632
+ }) => /* @__PURE__ */ S(Me, { injectFirst: !0, children: /* @__PURE__ */ S(nt, { theme: o || st, children: /* @__PURE__ */ S(e, { ...s }) }) });
634
633
  export {
635
- St as default
634
+ pt as default
636
635
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "everest-npm-features",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "description": "Everest frontend features library.",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
File without changes