everest-npm-features 0.0.58 → 0.0.59
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/{PlayArrow-BRz9FV4L.js → PlayArrow-BlkZJiHn.js} +1 -1
- package/dist/{auth-CD7qxhDF.js → auth-WhDJHZtr.js} +1 -1
- package/dist/{bank-C2LtDonX.js → bank-BaOrdTcI.js} +1 -1
- package/dist/components/RocketRamp/MinimalKyc/form.js +5 -4
- package/dist/components/RocketRamp/Player/Buy/cardPayment.js +3 -3
- package/dist/components/RocketRamp/Player/Buy/confirmTransaction.js +3 -3
- package/dist/components/RocketRamp/Player/Buy/form.js +4 -4
- package/dist/components/RocketRamp/Player/Buy/index.js +5 -5
- package/dist/components/RocketRamp/Player/Dashboard/index.js +2 -2
- package/dist/components/RocketRamp/Player/Sell/confirmTransaction.js +3 -3
- package/dist/components/RocketRamp/Player/Sell/form.js +4 -4
- package/dist/components/RocketRamp/Player/Sell/index.js +11 -10
- package/dist/components/RocketRamp/Player/SignIn/index.js +2 -2
- package/dist/components/RocketRamp/Player/SignIn/loginForm.js +2 -2
- package/dist/components/RocketRamp/Player/SignIn/otpForm.js +2 -2
- package/dist/components/RocketRamp/Player/SignUp/email.js +2 -2
- package/dist/components/RocketRamp/Player/SignUp/index.js +2 -2
- package/dist/components/RocketRamp/Player/SignUp/personalInfo.js +2 -2
- package/dist/components/RocketRamp/ResetPassword/index.js +2 -2
- package/dist/components/RocketRamp/Store/SignUp/index.js +2 -2
- package/dist/components/RocketRamp/Store/SignUp/personalInfo.js +2 -2
- package/dist/components/RocketRamp/Store/SignUp/storeInfo.js +2 -2
- package/dist/components/RocketRamp/Transactions/index.js +2 -2
- package/dist/components/Shared/FullKyc/edd.js +5 -4
- package/dist/components/Shared/FullKyc/index.js +4 -4
- package/dist/components/Shared/FullKyc/pep.js +1 -1
- package/dist/components/Shared/FullKyc/personalDetails.js +2 -2
- package/dist/components/Shared/FullKyc/userInfo.js +3 -3
- package/dist/components/Shared/MinimalKyc/index.js +2 -2
- package/dist/components/Shared/Sumsub/index.d.ts +5 -0
- package/dist/components/Shared/Sumsub/index.js +83 -0
- package/dist/components/Wallet/Account/createIban.js +4 -3
- package/dist/components/Wallet/Account/ibanItem.js +5 -4
- package/dist/components/Wallet/Account/index.js +6 -5
- package/dist/components/Wallet/Account/sendIban.js +11 -11
- package/dist/components/Wallet/Buy/confirmTransaction.js +6 -5
- package/dist/components/Wallet/Buy/form.js +4 -4
- package/dist/components/Wallet/Buy/index.js +6 -6
- package/dist/components/Wallet/Deposit/index.js +4 -3
- package/dist/components/Wallet/EnterpriseKyc/edd.js +4 -3
- package/dist/components/Wallet/EnterpriseKyc/index.js +3 -3
- package/dist/components/Wallet/EnterpriseKyc/orgDetails.js +13 -12
- package/dist/components/Wallet/EnterpriseKyc/orgInfo.js +4 -3
- package/dist/components/Wallet/EnterpriseKyc/verify.js +4 -3
- package/dist/components/Wallet/History/index.js +2 -2
- package/dist/components/Wallet/MoveToEthereumOrEverChain/index.js +12 -11
- package/dist/components/Wallet/Portfolio/index.js +7 -6
- package/dist/components/Wallet/Profile/documents.js +15 -15
- package/dist/components/Wallet/Profile/index.js +4 -3
- package/dist/components/Wallet/Profile/storage.js +12 -12
- package/dist/components/Wallet/Receive/index.js +2 -2
- package/dist/components/Wallet/Sell/confirmTransaction.js +5 -4
- package/dist/components/Wallet/Sell/form.js +4 -4
- package/dist/components/Wallet/Sell/index.js +6 -6
- package/dist/components/Wallet/Send/index.js +14 -13
- package/dist/components/Wallet/Shared/Auth/otpForm.js +2 -2
- package/dist/components/Wallet/Shared/BankSelect/index.js +3 -3
- package/dist/components/Wallet/Shared/CardCorp/index.js +4 -3
- package/dist/components/Wallet/Shared/addBank.js +5 -4
- package/dist/components/Wallet/Shared/connectPlaidBank.js +2 -2
- package/dist/components/Wallet/Shared/manualSend.js +5 -4
- package/dist/components/Wallet/SignIn/index.js +2 -2
- package/dist/components/Wallet/SignUp/index.js +2 -2
- package/dist/components/Wallet/Stake/index.js +6 -5
- package/dist/components/Wallet/Swap/form.js +7 -6
- package/dist/components/Wallet/Swap/index.js +5 -5
- package/dist/components/Wallet/Withdraw/bankSelect.js +4 -4
- package/dist/components/Wallet/Withdraw/confirmTransaction.js +3 -3
- package/dist/components/Wallet/Withdraw/form.js +4 -4
- package/dist/components/Wallet/Withdraw/index.js +5 -5
- package/dist/{constants-Styrbvke.js → constants-DREDnCMu.js} +482 -481
- package/dist/{cryptoAssets-CFtzXGbk.js → cryptoAssets-DbyDgq4J.js} +1 -1
- package/dist/{index-DAla2tRU.js → index-BXutc9ik.js} +8 -7
- package/dist/index-CWoxdH_Z.js +543 -0
- package/dist/{index-Du_jGnyO.js → index-CuPCW3XC.js} +29 -29
- package/dist/{index-DM6mBQ7L.js → index-DJ7xuxBy.js} +9 -8
- package/dist/{index-AVcxYfIV.js → index-DV1dVcrY.js} +31 -30
- package/dist/{index-Da-BlrMH.js → index-DYP5Ex_T.js} +9 -8
- package/dist/{index-CKjKCXeQ.js → index-PoMNqntN.js} +4 -4
- package/dist/index.esm-I_Bp2YLf.js +224 -0
- package/dist/kyc-D4s_B9Cf.js +33 -0
- package/dist/main.js +7 -7
- package/dist/{order-uVUTqaQ2.js → order-DGBbo_Ox.js} +1 -1
- package/dist/{stake-Dgx86wzO.js → stake-CdMc5H7D.js} +1 -1
- package/dist/util/constants.d.ts +4 -0
- package/dist/util/constants.js +104 -101
- package/dist/{wallet-BkdExH6h.js → wallet-DvfdQOju.js} +1 -1
- package/package.json +4 -2
- package/dist/index-g4Gy1BHB.js +0 -503
- package/dist/kyc-Ee4qAZby.js +0 -26
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { g as E } from "./_commonjsHelpers-BkfeUUK-.js";
|
|
2
|
+
import N from "react";
|
|
3
|
+
function O(i) {
|
|
4
|
+
if (i && i.__esModule) return i;
|
|
5
|
+
var o = /* @__PURE__ */ Object.create(null);
|
|
6
|
+
return i && Object.keys(i).forEach(function(t) {
|
|
7
|
+
if (t !== "default") {
|
|
8
|
+
var e = Object.getOwnPropertyDescriptor(i, t);
|
|
9
|
+
Object.defineProperty(o, t, e.get ? e : { enumerable: !0, get: function() {
|
|
10
|
+
return i[t];
|
|
11
|
+
} });
|
|
12
|
+
}
|
|
13
|
+
}), o.default = i, Object.freeze(o);
|
|
14
|
+
}
|
|
15
|
+
var C = O(N), I = function(i, o) {
|
|
16
|
+
return I = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, e) {
|
|
17
|
+
t.__proto__ = e;
|
|
18
|
+
} || function(t, e) {
|
|
19
|
+
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = e[n]);
|
|
20
|
+
}, I(i, o);
|
|
21
|
+
}, S = function() {
|
|
22
|
+
return S = Object.assign || function(i) {
|
|
23
|
+
for (var o, t = 1, e = arguments.length; t < e; t++) for (var n in o = arguments[t]) Object.prototype.hasOwnProperty.call(o, n) && (i[n] = o[n]);
|
|
24
|
+
return i;
|
|
25
|
+
}, S.apply(this, arguments);
|
|
26
|
+
};
|
|
27
|
+
function T(i) {
|
|
28
|
+
return i.endsWith("-v2") ? 2 : 1;
|
|
29
|
+
}
|
|
30
|
+
var M = function() {
|
|
31
|
+
function i(o, t, e, n) {
|
|
32
|
+
var s = this;
|
|
33
|
+
this.iframe = null, this.iframeId = null, this.sessionId = "", this.$container = null, this.initialized = !1, this.scrollPosition = -1, this.scrollElement = null, this.onMessage = function(a) {
|
|
34
|
+
s.onSdkMessage(a);
|
|
35
|
+
}, this.baseUrl = o || this.getCurrentBaseUrl("https://in.sumsub.com", t.accessToken), this.config = t, this.config.packageVersion = this.getVersion(), this.config.origin = location.origin, this.callbacks = e, this.options = n;
|
|
36
|
+
}
|
|
37
|
+
return i.prototype.getVersion = function() {
|
|
38
|
+
return "2.5.0";
|
|
39
|
+
}, i.prototype.getCurrentBaseUrl = function(o, t) {
|
|
40
|
+
var e = ["_act-sbx-jwt-", "_act-jwt-"].find(function(r) {
|
|
41
|
+
return t.startsWith(r);
|
|
42
|
+
});
|
|
43
|
+
if (e) for (var n = 0, s = t.replace(e, "").replace("-v2", "").split(".").map(function(r) {
|
|
44
|
+
try {
|
|
45
|
+
return atob(r);
|
|
46
|
+
} catch {
|
|
47
|
+
return r;
|
|
48
|
+
}
|
|
49
|
+
}).map(function(r) {
|
|
50
|
+
try {
|
|
51
|
+
return JSON.parse(r);
|
|
52
|
+
} catch {
|
|
53
|
+
return r;
|
|
54
|
+
}
|
|
55
|
+
}); n < s.length; n++) {
|
|
56
|
+
var a = s[n];
|
|
57
|
+
if (a != null && a.url) return a.url;
|
|
58
|
+
}
|
|
59
|
+
return o;
|
|
60
|
+
}, i.prototype.getIframeId = function() {
|
|
61
|
+
if (this.config.version === 2) try {
|
|
62
|
+
return btoa(this.config.accessToken);
|
|
63
|
+
} catch {
|
|
64
|
+
return this.config.accessToken;
|
|
65
|
+
}
|
|
66
|
+
return String(Math.floor(1e8 * Math.random()));
|
|
67
|
+
}, i.prototype.launch = function(o) {
|
|
68
|
+
this.options.addViewportTag && this.addViewportTag(), this.iframe = this.createIframe(o), this.sessionId = "", this.iframeId = "id_" + this.getIframeId(), this.iframe && this.config ? (this.registerEventListener(), this.iframe.src = this.getIframeSrc()) : console.error("Idensic was not initialized since either provided element was not found in the DOM or invalid config");
|
|
69
|
+
}, i.prototype.addViewportTag = function() {
|
|
70
|
+
var o = document.getElementsByName("viewport");
|
|
71
|
+
if (!o || o.length === 0) {
|
|
72
|
+
var t = document.createElement("meta");
|
|
73
|
+
t.setAttribute("name", "viewport"), t.setAttribute("content", "width=device-width,user-scalable=yes"), document.head.appendChild(t);
|
|
74
|
+
}
|
|
75
|
+
}, i.prototype.createIframe = function(o) {
|
|
76
|
+
var t = typeof o == "string" ? document.querySelector(o) : o;
|
|
77
|
+
if (!t) return console.error("Provide a valid selector for the iframe container"), null;
|
|
78
|
+
this.$container = t;
|
|
79
|
+
var e = document.createElement("iframe");
|
|
80
|
+
for (e.width = "100%", e.scrolling = "no", e.allow = "camera; microphone; geolocation; clipboard-write", e.setAttribute("frameborder", "0"); t.firstChild; ) t.removeChild(t.firstChild);
|
|
81
|
+
return t.appendChild(e), e;
|
|
82
|
+
}, i.prototype.getIframeSrc = function() {
|
|
83
|
+
var o = "?_=" + this.iframeId, t = this.config.version === 2 ? "/websdk" : "/idensic", e = this.baseUrl + t + "/websdk.html";
|
|
84
|
+
return this.config.version === 2 && this.config.theme && (o += "&theme=" + this.config.theme), this.config.version === 2 && this.config.customizationName && (o += "&customizationName=" + encodeURIComponent(this.config.customizationName)), this.config.version === 2 && this.config.translationName && (o += "&translationName=" + encodeURIComponent(this.config.translationName)), e + o;
|
|
85
|
+
}, i.prototype.registerEventListener = function() {
|
|
86
|
+
window.addEventListener("message", this.onMessage);
|
|
87
|
+
}, i.prototype.onSdkMessage = function(o) {
|
|
88
|
+
var t;
|
|
89
|
+
if (this.baseUrl === o.origin) {
|
|
90
|
+
var e = o.data;
|
|
91
|
+
if (e.method && ~e.method.indexOf("idCheck") && (!this.sessionId || this.sessionId === e.sessionId) && (!((t = this.iframe) === null || t === void 0) && t.contentWindow)) {
|
|
92
|
+
if (e.method == "idCheck.onReady" && e.frameId === this.iframeId) {
|
|
93
|
+
this.sessionId = e.sessionId;
|
|
94
|
+
var n = { options: { adaptIframeHeight: this.options.adaptIframeHeight, enableScrollIntoView: this.options.enableScrollIntoView } };
|
|
95
|
+
this.iframe.contentWindow.postMessage(S(S({ method: "idCheck.init" }, this.config), n), "*");
|
|
96
|
+
}
|
|
97
|
+
if (e.method == "idCheck.onInitialized" && (this.initialized = !0), e.method == "idCheck.onResize" && this.options.adaptIframeHeight && (this.iframe.style.height = e.height + "px"), e.method == "idCheck.scrollTo" && this.options.adaptIframeHeight) this.scrollTo(e.top);
|
|
98
|
+
else if (e.method != "idCheck.getScrollPosition") if (e.method != "idCheck.restoreScrollPosition") {
|
|
99
|
+
var s = e.method;
|
|
100
|
+
delete e.method, delete e.frameId, delete e.sessionId, s === "idCheck.onError" && e.code === "invalid-token" ? this.callExpirationHandler() : s === "idCheck.onError" && typeof this.callbacks.onError == "function" ? this.callbacks.onError(e) : typeof this.callbacks.onMessage == "function" && this.callbacks.onMessage(s, e);
|
|
101
|
+
} else this.restoreScrollPosition();
|
|
102
|
+
else this.getScrollPosition();
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}, i.prototype.callExpirationHandler = function() {
|
|
106
|
+
var o = this, t = this.callbacks.expirationHandler;
|
|
107
|
+
t.legacy ? t.handler(function(e) {
|
|
108
|
+
return o.updateAccessTokenOrReinitialize(e);
|
|
109
|
+
}) : t.handler().then(function(e) {
|
|
110
|
+
return o.updateAccessTokenOrReinitialize(e);
|
|
111
|
+
}, function(e) {
|
|
112
|
+
e != null || (e = "Failed to update access token"), e.message && (e = e.message), typeof e != "string" && (e = String(e)), o.updateAccessToken(null, e);
|
|
113
|
+
});
|
|
114
|
+
}, i.prototype.updateAccessTokenOrReinitialize = function(o) {
|
|
115
|
+
var t = o ? T(o) : this.config.version;
|
|
116
|
+
if (o && this.iframe && !this.initialized && this.config.version != t) return this.sessionId = "", this.config.accessToken = o, this.config.version = t, this.baseUrl = this.getCurrentBaseUrl(this.baseUrl, o), this.iframeId = "id_" + this.getIframeId(), void (this.iframe.src = this.getIframeSrc());
|
|
117
|
+
this.updateAccessToken(o);
|
|
118
|
+
}, i.prototype.getScrolledElement = function() {
|
|
119
|
+
for (var o, t = (o = this.iframe) === null || o === void 0 ? void 0 : o.parentElement; (t == null ? void 0 : t.scrollTop) === 0 && (t == null ? void 0 : t.tagName) !== "BODY"; ) t = t == null ? void 0 : t.parentElement;
|
|
120
|
+
return t;
|
|
121
|
+
}, i.prototype.getScrollPosition = function() {
|
|
122
|
+
var o, t, e = this.getScrolledElement();
|
|
123
|
+
this.scrollPosition = (e == null ? void 0 : e.scrollTop) || -1, this.scrollElement = this.scrollPosition > 0 && e ? e : null, (t = (o = this.iframe) === null || o === void 0 ? void 0 : o.contentWindow) === null || t === void 0 || t.postMessage({ method: "idCheck.scrollPositionStored" }, "*");
|
|
124
|
+
}, i.prototype.restoreScrollPosition = function() {
|
|
125
|
+
this.scrollElement && this.scrollPosition >= 0 && (this.scrollElement.scrollTop = this.scrollPosition), this.scrollPosition = -1, this.scrollElement = null;
|
|
126
|
+
}, i.prototype.scrollTo = function(o) {
|
|
127
|
+
var t;
|
|
128
|
+
if (this.options.enableScrollIntoView) {
|
|
129
|
+
var e = this.getScrolledElement();
|
|
130
|
+
if ((e == null ? void 0 : e.scrollTop) === 0 && (e == null ? void 0 : e.tagName) === "BODY") {
|
|
131
|
+
var n = ((t = this.iframe) === null || t === void 0 ? void 0 : t.getBoundingClientRect().top) || 0;
|
|
132
|
+
window.scrollTo({ top: n + o, behavior: "smooth" });
|
|
133
|
+
} else e == null || e.scrollTo({ top: o, behavior: "smooth" });
|
|
134
|
+
}
|
|
135
|
+
}, i.prototype.updateAccessToken = function(o, t) {
|
|
136
|
+
var e, n;
|
|
137
|
+
(n = (e = this.iframe) === null || e === void 0 ? void 0 : e.contentWindow) === null || n === void 0 || n.postMessage({ method: "idCheck.updateAccessToken", accessToken: o, error: t }, "*");
|
|
138
|
+
}, i.prototype.destroy = function() {
|
|
139
|
+
for (window.removeEventListener("message", this.onMessage); this.$container && this.$container.firstChild; ) this.$container.removeChild(this.$container.firstChild);
|
|
140
|
+
this.$container = null;
|
|
141
|
+
}, i.prototype.navigateBack = function() {
|
|
142
|
+
var o, t;
|
|
143
|
+
(t = (o = this.iframe) === null || o === void 0 ? void 0 : o.contentWindow) === null || t === void 0 || t.postMessage({ method: "idCheck.callNavigationBack" }, "*");
|
|
144
|
+
}, i.prototype.singleStepNext = function(o) {
|
|
145
|
+
var t, e;
|
|
146
|
+
(e = (t = this.iframe) === null || t === void 0 ? void 0 : t.contentWindow) === null || e === void 0 || e.postMessage({ method: "idCheck.callSingleStepNext", step: o }, "*");
|
|
147
|
+
}, i.prototype.setLanguage = function(o) {
|
|
148
|
+
var t, e;
|
|
149
|
+
(e = (t = this.iframe) === null || t === void 0 ? void 0 : t.contentWindow) === null || e === void 0 || e.postMessage({ method: "idCheck.callSetLanguage", language: o }, "*");
|
|
150
|
+
}, i.prototype.setTheme = function(o) {
|
|
151
|
+
var t, e;
|
|
152
|
+
(e = (t = this.iframe) === null || t === void 0 ? void 0 : t.contentWindow) === null || e === void 0 || e.postMessage({ method: "idCheck.callSetTheme", theme: o }, "*");
|
|
153
|
+
}, i;
|
|
154
|
+
}(), W = function() {
|
|
155
|
+
function i(o, t) {
|
|
156
|
+
if (this.config = null, this.eventHandlers = {}, this.anyEventHandler = null, this.options = { adaptIframeHeight: !0, addViewportTag: !0, enableScrollIntoView: !0 }, typeof o != "string") throw new Error("Access token must be a string");
|
|
157
|
+
if (typeof t != "function") throw new Error("updateAccessToken callback is required");
|
|
158
|
+
this.accessToken = o, this.updateAccessToken = t;
|
|
159
|
+
}
|
|
160
|
+
return i.prototype.onTestEnv = function() {
|
|
161
|
+
return this;
|
|
162
|
+
}, i.prototype.withBaseUrl = function(o) {
|
|
163
|
+
return this.baseUrl = o, this;
|
|
164
|
+
}, i.prototype.withConf = function(o) {
|
|
165
|
+
return this.config = o, this;
|
|
166
|
+
}, i.prototype.withOptions = function(o) {
|
|
167
|
+
var t;
|
|
168
|
+
return o.hasOwnProperty("adaptIframeHeight") && (this.options.adaptIframeHeight = o.adaptIframeHeight), o.hasOwnProperty("addViewportTag") && (this.options.addViewportTag = o.addViewportTag), this.options.enableScrollIntoView = (t = o.enableScrollIntoView) === null || t === void 0 || t, this;
|
|
169
|
+
}, i.prototype.on = function(o, t) {
|
|
170
|
+
return this.eventHandlers[o] = t, this;
|
|
171
|
+
}, i.prototype.onMessage = function(o) {
|
|
172
|
+
return this.anyEventHandler = o, this;
|
|
173
|
+
}, i.prototype.onNavigationUiControlsStateChanged = function(o) {
|
|
174
|
+
return this.eventHandlers["idCheck.onNavigationUiControlsStateChanged"] = o, this;
|
|
175
|
+
}, i.prototype.build = function() {
|
|
176
|
+
var o, t, e, n, s, a, r, c, d, h, u, f, p, v, g, y = this, w = T(this.accessToken);
|
|
177
|
+
return new M(this.baseUrl, { version: w, theme: (o = this.config) === null || o === void 0 ? void 0 : o.theme, customizationName: (t = this.config) === null || t === void 0 ? void 0 : t.customizationName, translationName: (e = this.config) === null || e === void 0 ? void 0 : e.translationName, accessToken: this.accessToken, lang: (n = this.config) === null || n === void 0 ? void 0 : n.lang, email: (s = this.config) === null || s === void 0 ? void 0 : s.email, phone: (a = this.config) === null || a === void 0 ? void 0 : a.phone, country: (r = this.config) === null || r === void 0 ? void 0 : r.country, uiConf: (c = this.config) === null || c === void 0 ? void 0 : c.uiConf, i18n: (d = this.config) === null || d === void 0 ? void 0 : d.i18n, documentsByCountries: (h = this.config) === null || h === void 0 ? void 0 : h.documentsByCountries, documentDefinitions: (u = this.config) === null || u === void 0 ? void 0 : u.documentDefinitions, autoSelectDocumentDefinitions: (f = this.config) === null || f === void 0 ? void 0 : f.autoSelectDocumentDefinitions, controlledNavigationBack: (p = this.config) === null || p === void 0 ? void 0 : p.controlledNavigationBack, singleStep: (v = this.config) === null || v === void 0 ? void 0 : v.singleStep, preferredCameras: (g = this.config) === null || g === void 0 ? void 0 : g.preferredCameras }, { expirationHandler: { legacy: !1, handler: this.updateAccessToken }, onMessage: function(k, b) {
|
|
178
|
+
var m, l = y.eventHandlers[k];
|
|
179
|
+
l ? l(b) : (m = y.anyEventHandler) === null || m === void 0 || m.call(y, k, b);
|
|
180
|
+
} }, this.options);
|
|
181
|
+
}, i;
|
|
182
|
+
}(), P = function(i, o) {
|
|
183
|
+
return new W(i, o);
|
|
184
|
+
}, U = function(i) {
|
|
185
|
+
function o(t) {
|
|
186
|
+
var e = i.call(this, t) || this;
|
|
187
|
+
return e.div = C.createRef(), e;
|
|
188
|
+
}
|
|
189
|
+
return function(t, e) {
|
|
190
|
+
if (typeof e != "function" && e !== null) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
191
|
+
function n() {
|
|
192
|
+
this.constructor = t;
|
|
193
|
+
}
|
|
194
|
+
I(t, e), t.prototype = e === null ? Object.create(e) : (n.prototype = e.prototype, new n());
|
|
195
|
+
}(o, i), o.prototype.shouldComponentUpdate = function(t) {
|
|
196
|
+
return !!t.force;
|
|
197
|
+
}, o.prototype.componentDidMount = function() {
|
|
198
|
+
this.renderSDK();
|
|
199
|
+
}, o.prototype.componentWillUnmount = function() {
|
|
200
|
+
var t;
|
|
201
|
+
(t = this.snsWebSdk) === null || t === void 0 || t.destroy();
|
|
202
|
+
}, o.prototype.renderSDK = function() {
|
|
203
|
+
var t = function(n) {
|
|
204
|
+
var s = n.expirationHandler, a = n.accessToken, r = n.config, c = r === void 0 ? null : r, d = n.options, h = d === void 0 ? null : d, u = n.onError, f = u === void 0 ? null : u, p = n.onMessage, v = p === void 0 ? null : p, g = n.testEnv, y = g !== void 0 && g, w = n.baseUrl, k = w === void 0 ? null : w, b = n.onNavigationUiControlsStateChanged, m = b === void 0 ? null : b, l = P(a, s);
|
|
205
|
+
return c && l.withConf(c), h && l.withOptions(h), y && l.onTestEnv(), k && l.withBaseUrl(k), f && l.on("idCheck.onError", f), v && l.onMessage(v), m && l.onNavigationUiControlsStateChanged(m), l;
|
|
206
|
+
}(this.props), e = this.div.current;
|
|
207
|
+
this.snsWebSdk = t.build(), this.snsWebSdk.launch(e);
|
|
208
|
+
}, o.prototype.navigateBack = function() {
|
|
209
|
+
this.snsWebSdk && this.snsWebSdk.navigateBack();
|
|
210
|
+
}, o.prototype.singleStepNext = function(t) {
|
|
211
|
+
this.snsWebSdk && this.snsWebSdk.singleStepNext(t);
|
|
212
|
+
}, o.prototype.setLanguage = function(t) {
|
|
213
|
+
this.snsWebSdk && this.snsWebSdk.setLanguage(t);
|
|
214
|
+
}, o.prototype.setTheme = function(t) {
|
|
215
|
+
this.snsWebSdk && this.snsWebSdk.setTheme(t);
|
|
216
|
+
}, o.prototype.render = function() {
|
|
217
|
+
var t = this.props, e = t.style, n = e === void 0 ? {} : e, s = t.className, a = s === void 0 ? "" : s;
|
|
218
|
+
return C.createElement("div", { style: n, className: a, ref: this.div });
|
|
219
|
+
}, o;
|
|
220
|
+
}(C.Component), H = U;
|
|
221
|
+
const x = /* @__PURE__ */ E(H);
|
|
222
|
+
export {
|
|
223
|
+
x as S
|
|
224
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { a5 as s, a6 as e, a7 as t, a8 as E, a9 as _, aa as o, ab as c, ac as S } from "./constants-DREDnCMu.js";
|
|
2
|
+
const p = (a) => ({
|
|
3
|
+
type: _,
|
|
4
|
+
payload: a
|
|
5
|
+
}), T = () => ({
|
|
6
|
+
type: t
|
|
7
|
+
}), U = () => ({
|
|
8
|
+
type: E
|
|
9
|
+
}), R = () => ({
|
|
10
|
+
type: s
|
|
11
|
+
}), u = (a) => ({
|
|
12
|
+
type: e,
|
|
13
|
+
payload: a
|
|
14
|
+
}), n = (a) => ({
|
|
15
|
+
type: o,
|
|
16
|
+
payload: a
|
|
17
|
+
}), A = (a) => ({
|
|
18
|
+
type: c,
|
|
19
|
+
payload: a
|
|
20
|
+
}), D = (a) => ({
|
|
21
|
+
type: S,
|
|
22
|
+
payload: a
|
|
23
|
+
});
|
|
24
|
+
export {
|
|
25
|
+
n as a,
|
|
26
|
+
u as b,
|
|
27
|
+
U as c,
|
|
28
|
+
D as d,
|
|
29
|
+
R as g,
|
|
30
|
+
A as k,
|
|
31
|
+
T as r,
|
|
32
|
+
p as u
|
|
33
|
+
};
|
package/dist/main.js
CHANGED
|
@@ -11,13 +11,13 @@ 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-
|
|
15
|
-
import { i as E } from "./index-
|
|
16
|
-
import { i as b } from "./index-
|
|
17
|
-
import { i as F } from "./index-
|
|
14
|
+
import { i as M } from "./index-DJ7xuxBy.js";
|
|
15
|
+
import { i as E } from "./index-BXutc9ik.js";
|
|
16
|
+
import { i as b } from "./index-PoMNqntN.js";
|
|
17
|
+
import { i as F } from "./index-DYP5Ex_T.js";
|
|
18
18
|
import { default as I } from "./components/Wallet/EnterpriseKyc/index.js";
|
|
19
19
|
import { default as W } from "./components/Wallet/Deposit/index.js";
|
|
20
|
-
import { F as j } from "./index-
|
|
20
|
+
import { F as j } from "./index-CWoxdH_Z.js";
|
|
21
21
|
import { useSnackBar as z } from "./hooks/useSnackBar.js";
|
|
22
22
|
import { SnackBarContext as J, useSnackBarContext as L } from "./context/snackBarContext.js";
|
|
23
23
|
import { useDialog as Q } from "./hooks/useDialog/index.js";
|
|
@@ -26,8 +26,8 @@ import { default as _ } from "./components/RocketRamp/Player/SignIn/index.js";
|
|
|
26
26
|
import { default as oo } from "./components/RocketRamp/Player/SignUp/index.js";
|
|
27
27
|
import { default as ao } from "./components/RocketRamp/Player/Dashboard/index.js";
|
|
28
28
|
import { default as to } from "./components/RocketRamp/Transactions/index.js";
|
|
29
|
-
import { i as po } from "./index-
|
|
30
|
-
import { i as so } from "./index-
|
|
29
|
+
import { i as po } from "./index-CuPCW3XC.js";
|
|
30
|
+
import { i as so } from "./index-DV1dVcrY.js";
|
|
31
31
|
import { default as xo } from "./components/RocketRamp/MinimalKyc/index.js";
|
|
32
32
|
import { default as io } from "./components/RocketRamp/Store/SignUp/index.js";
|
|
33
33
|
import { default as Ro } from "./components/RocketRamp/Store/Dashboard/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as s, x as t, y as E, z as R, B as o, C as r, D as _, E as p, G as T, H as y, I as d, J as S, M as D } from "./constants-
|
|
1
|
+
import { O as s, x as t, y as E, z as R, B as o, C as r, D as _, E as p, G as T, H as y, I as d, J as S, M as D } from "./constants-DREDnCMu.js";
|
|
2
2
|
const O = (e) => ({
|
|
3
3
|
type: d,
|
|
4
4
|
payload: e
|
package/dist/util/constants.d.ts
CHANGED
|
@@ -104,3 +104,7 @@ export declare const KYC_APROVED_TOOLTIP = "You are allowed to transact up to $1
|
|
|
104
104
|
export declare const KYC_ELITE_TOOLTIP = "You are allowed to transact more than $10,000";
|
|
105
105
|
export declare const FEATURE_EWALLET = "eWallet";
|
|
106
106
|
export declare const FEATURE_VIRTUAL_IBAN = "Virtual IBAN";
|
|
107
|
+
export declare const KYC_PROVIDER_INCODE: "incode";
|
|
108
|
+
export declare const KYC_PROVIDER_SUMSUB: "sumsub";
|
|
109
|
+
export type KycProviderType = typeof KYC_PROVIDER_INCODE | typeof KYC_PROVIDER_SUMSUB;
|
|
110
|
+
export declare const KYC_PROVIDER: KycProviderType;
|
package/dist/util/constants.js
CHANGED
|
@@ -1,109 +1,112 @@
|
|
|
1
|
-
const _ = "https://static-assets.everest.org",
|
|
1
|
+
const _ = "https://static-assets.everest.org", E = _ + "/web/widget", n = _ + "/web/enterprise", s = _ + "/web/wallet/images", t = s + "/new", e = t + "/sell-withdraw.png", c = t + "/back-btn.png", T = t + "/delete.png", A = n + "/history-buy.svg", a = n + "/history-sell.svg", I = n + "/history-swap.svg", O = t + "/wallet-icon.png", N = t + "/stake-id.png", S = s + "/stake-gem.png", R = n + "/swap-receive-down-arrow.svg", r = t + "/sepa-payment.png", i = t + "/sepa-payment-selected.png", P = t + "/visa-payment.png", L = t + "/visa-payment-selected.png", C = t + "/sepa.png", D = t + "/visa.png", d = t + "/dialog-error.png", Y = t + "/dialog-success.png", p = n + "/expand-down-arrow.svg", M = n + "/expand-right-arrow.svg", g = n + "/back-arrow.svg", l = n + "/right-arrow.svg", K = n + "/radio-button.svg", U = n + "/radio-button-selected.svg", B = n + "/sepa.png", u = n + "/sepa-selected.png", h = n + "/visa.png", v = n + "/visa-selected.png", W = t + "/cloud-icon.png", y = t + "/storage-success.png", m = "railsbank", w = "open_payd", G = "checkout", V = "trustpayments", b = "paysafe", k = "cardcorp", H = "plaid", F = "$", f = "€", $ = "USD", X = "EUR", x = "GBP", j = "Binance", z = "Polygon", Z = "EverChain", q = "IDChain", J = "Ethereum", Q = "Avalanche", tt = "USD.c", nt = "EUR.c", _t = "EURE.c", st = "GBP.c", ot = "BTC.c", Et = "GEMS.c", et = "ID", ct = "GEMS", Tt = "USDR.c", At = "fiat_to_token", at = "fiat_to_everid", It = "token_to_fiat", Ot = "token_to_token", Nt = "withdraw", St = "iban_creation", Rt = "bank_transfer", rt = "bank_deposit", it = "Created", Pt = "In Process", Lt = "Completed", Ct = "Failed", Dt = "Awaiting Approved", dt = "Rejected", Yt = "ID", pt = "GEMS", Mt = 90, gt = 3, lt = 180, Kt = 8, Ut = 365, Bt = 18, ut = 365, ht = 20, vt = "Linked Wallets make transactions easier, automating the signing process during Sell, Swap, Stake, Send and Remit transactions because you have backed up your Private Key with Everest.", Wt = "Connected Wallets are those that you have demonstrated you control, but you must manually move tokens as the system can not do so without the Private Key.", yt = "The rate shown here is an estimate and the rate you receive will be determined at the time when your payment is settled. The time taken for your payment to settle can vary depending on currency and payment method.", mt = 300, wt = "username can only contain letters, numbers, underscores & cannot exceed more than 13 characters", Gt = "_rr", Vt = "credit_debit_card", bt = "sepa_bank_transfer", kt = "player", Ht = "store", Ft = "login_screen", ft = "register_screen", $t = "Individual", Xt = "Organization", xt = "Over $100,000", jt = "Over $1,000 & Under $100,000", zt = "Under $1,000", Zt = "Declined", qt = "You are allowed to transact up to $10,000", Jt = "You are allowed to transact more than $10,000", Qt = "eWallet", tn = "Virtual IBAN", nn = "incode", o = "sumsub", _n = o;
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
3
|
+
R as ARROW_ICON,
|
|
4
|
+
Q as AVALANCHE_NETWORK,
|
|
5
|
+
g as BACK_ARROW,
|
|
6
|
+
c as BACK_BTN_ICON,
|
|
7
|
+
rt as BANK_DEPOSIT,
|
|
8
|
+
Rt as BANK_TRANSFER,
|
|
9
|
+
j as BINANCE_NETWORK,
|
|
10
|
+
ot as BTC_TOKEN_SYMBOL,
|
|
11
|
+
Zt as CARD_PAYMENT_DECLINE,
|
|
12
|
+
W as CLOUD_ICON,
|
|
13
|
+
Wt as CONNECTED_WALLET_TOOLTIP,
|
|
14
|
+
T as DELETE_ICON,
|
|
15
|
+
d as DIALOG_ERROR_ICON,
|
|
16
|
+
Y as DIALOG_SUCCESS_ICON,
|
|
17
|
+
B as ENT_SEPA_PAYMENT,
|
|
18
|
+
u as ENT_SEPA_PAYMENT_ACTIVE,
|
|
19
|
+
h as ENT_VISA_PAYMENT,
|
|
20
|
+
v as ENT_VISA_PAYMENT_ACTIVE,
|
|
21
|
+
yt as ESTIMATE_TOOLTIP_TEXT,
|
|
22
|
+
J as ETHEREUM_NETWORK,
|
|
23
|
+
X as EURO_ISO3,
|
|
24
|
+
f as EURO_SIGN,
|
|
25
|
+
Z as EVER_CHAIN_NETWORK,
|
|
26
|
+
Qt as FEATURE_EWALLET,
|
|
27
|
+
tn as FEATURE_VIRTUAL_IBAN,
|
|
28
|
+
at as FIAT_TO_EVER_ID,
|
|
29
|
+
At as FIAT_TO_TOKEN,
|
|
30
|
+
Nt as FIAT_WITHDRAW,
|
|
31
|
+
x as GBP_ISO3,
|
|
32
32
|
pt as GEMS_STAKE,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
33
|
+
ct as GEMS_TOKEN_SYMBOL,
|
|
34
|
+
Et as GEM_SYNTHETIC_TOKEN_SYMBOL,
|
|
35
|
+
A as HISTORY_BUY_ICON,
|
|
36
|
+
a as HISTORY_SELL_ICON,
|
|
37
|
+
I as HISTORY_SWAP_ICON,
|
|
38
|
+
St as IBAN_CREATION,
|
|
39
|
+
q as ID_CHAIN_NETWORK,
|
|
40
|
+
Yt as ID_STAKE,
|
|
41
|
+
et as ID_TOKEN_SYMBOL,
|
|
42
|
+
$t as INDIVIDUAL_KYC_TYPE,
|
|
43
|
+
qt as KYC_APROVED_TOOLTIP,
|
|
44
|
+
jt as KYC_BETWEEN_TRANSATION,
|
|
45
|
+
Jt as KYC_ELITE_TOOLTIP,
|
|
46
|
+
xt as KYC_OVER_TRANSATION,
|
|
47
|
+
_n as KYC_PROVIDER,
|
|
48
|
+
nn as KYC_PROVIDER_INCODE,
|
|
49
|
+
o as KYC_PROVIDER_SUMSUB,
|
|
50
|
+
zt as KYC_UNDER_TRANSATION,
|
|
51
|
+
vt as LINKED_WALLET_TOOLTIP,
|
|
52
|
+
Ft as LOGIN_SCREEN,
|
|
53
|
+
Xt as ORGANIZATION_KYC_TYPE,
|
|
54
|
+
bt as PAYMENT_BANK,
|
|
55
|
+
Vt as PAYMENT_CARD,
|
|
56
|
+
k as PAYMENT_PROVIDER_CARDCORP,
|
|
57
|
+
G as PAYMENT_PROVIDER_CHECKOUT,
|
|
58
|
+
w as PAYMENT_PROVIDER_OPENPAYD,
|
|
59
|
+
b as PAYMENT_PROVIDER_PAYSAFE,
|
|
60
|
+
H as PAYMENT_PROVIDER_PLAID,
|
|
61
|
+
m as PAYMENT_PROVIDER_RAILSBANK,
|
|
62
|
+
V as PAYMENT_PROVIDER_TRUST_PAYMENTS,
|
|
63
|
+
kt as PLAYER_WEBSITE,
|
|
64
|
+
z as POLYGON_NETWORK,
|
|
62
65
|
p as PORTFOLIO_TOKEN_DOWN_ARROW,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
66
|
+
M as PORTFOLIO_TOKEN_RIGHT_ARROW,
|
|
67
|
+
K as RADIO_BUTTON,
|
|
68
|
+
U as RADIO_BUTTON_SELECTED,
|
|
69
|
+
ft as REGISTER_SCREEN,
|
|
70
|
+
mt as RESEND_EMAIL_TIMER,
|
|
71
|
+
l as RIGHT_ARROW,
|
|
72
|
+
e as SELL_WITHDRAW_ICON,
|
|
73
|
+
C as SEPA_ICON,
|
|
74
|
+
r as SEPA_PAYMENT,
|
|
75
|
+
i as SEPA_PAYMENT_ACTIVE,
|
|
76
|
+
S as STAKE_GEM_ICON,
|
|
77
|
+
ht as STAKE_GEM_MAX_APY,
|
|
78
|
+
ut as STAKE_GEM_MAX_DAYS,
|
|
79
|
+
N as STAKE_ID_ICON,
|
|
80
|
+
Bt as STAKE_ID_MAX_APY,
|
|
81
|
+
Ut as STAKE_ID_MAX_DAYS,
|
|
82
|
+
Kt as STAKE_ID_MID_APY,
|
|
83
|
+
lt as STAKE_ID_MID_DAYS,
|
|
84
|
+
gt as STAKE_ID_MIN_APY,
|
|
85
|
+
Mt as STAKE_ID_MIN_DAYS,
|
|
83
86
|
_ as STATIC_ASSETS_BASE_URL,
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
87
|
+
y as STORAGE_SUCCESS,
|
|
88
|
+
Ht as STORE_WEBSITE,
|
|
89
|
+
nt as SYNTHETIC_EUR,
|
|
90
|
+
_t as SYNTHETIC_EURE,
|
|
91
|
+
st as SYNTHETIC_GBP,
|
|
92
|
+
tt as SYNTHETIC_USD,
|
|
93
|
+
It as TOKEN_TO_FIAT,
|
|
94
|
+
Ot as TOKEN_TO_TOKEN,
|
|
92
95
|
Lt as TS_COMPLETE_LABEL,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
96
|
+
it as TS_CREATED_LABEL,
|
|
97
|
+
Ct as TS_FAIL_LABEL,
|
|
98
|
+
dt as TS_NOT_APPROVAL_LABEL,
|
|
99
|
+
Pt as TS_PENDING_LABEL,
|
|
100
|
+
Dt as TS_WAIT_APPROVAL_LABEL,
|
|
101
|
+
Tt as USDR_TOKEN_SYMBOL,
|
|
102
|
+
Gt as USERNAME_SUFFIX,
|
|
103
|
+
wt as USERNAME_TOOLTIP,
|
|
104
|
+
$ as US_DOLLAR_ISO3,
|
|
105
|
+
F as US_DOLLAR_SIGN,
|
|
106
|
+
D as VISA_ICON,
|
|
107
|
+
P as VISA_PAYMENT,
|
|
105
108
|
L as VISA_PAYMENT_ACTIVE,
|
|
106
|
-
|
|
109
|
+
O as WALLET_ICON,
|
|
107
110
|
s as WALLET_IMAGES_URL,
|
|
108
|
-
|
|
111
|
+
E as WIDGET_URL
|
|
109
112
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as a, U as e, p as t, q as E, r as T, s as A, t as _, u as o, v as S, w as l } from "./constants-
|
|
1
|
+
import { F as a, U as e, p as t, q as E, r as T, s as A, t as _, u as o, v as S, w as l } from "./constants-DREDnCMu.js";
|
|
2
2
|
const L = () => ({
|
|
3
3
|
type: e
|
|
4
4
|
}), d = () => ({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "everest-npm-features",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.59",
|
|
4
4
|
"description": "Everest frontend features library.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -31,8 +31,9 @@
|
|
|
31
31
|
"@metamask/sdk-react": "^0.29.2",
|
|
32
32
|
"@mui/icons-material": "^7.2.0",
|
|
33
33
|
"@mui/material": "^7.2.0",
|
|
34
|
+
"@sumsub/websdk-react": "^2.5.0",
|
|
34
35
|
"@walletconnect/ethereum-provider": "^2.17.1",
|
|
35
|
-
"everest-npm-api": "^0.0.
|
|
36
|
+
"everest-npm-api": "^0.0.43",
|
|
36
37
|
"frames-react": "^1.2.2",
|
|
37
38
|
"moment": "^2.30.1",
|
|
38
39
|
"mui-one-time-password-input": "^5.0.0",
|
|
@@ -40,6 +41,7 @@
|
|
|
40
41
|
"qrcode.react": "^4.0.1",
|
|
41
42
|
"react-plaid-link": "^3.6.0",
|
|
42
43
|
"react-webcam": "^7.2.0",
|
|
44
|
+
"redux-saga": "^1.4.2",
|
|
43
45
|
"uuid": "^10.0.0",
|
|
44
46
|
"web3": "^4.13.0"
|
|
45
47
|
},
|