@lydianpay/sdk-web 3.19.3 → 3.19.5
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/chunks/{browser-BZZwoMeg.js → browser-DL9_hXMV.js} +1 -1
- package/dist/chunks/{connect-multichain-BX6y692K.js → connect-multichain-Cv_d4cUb.js} +9 -9
- package/dist/chunks/{dist-HyoqRKLh.js → dist-2JlmBYpb.js} +2 -2
- package/dist/chunks/{dist-LOUNdWsS.js → dist-C8wtmWKA.js} +3 -3
- package/dist/chunks/{index-ChVUIuMS.js → index-B0iJjksC.js} +2 -2
- package/dist/chunks/{index-DThdDCxn.js → index-Dg1EY0o2.js} +1 -1
- package/dist/chunks/{index-OiCybnPL.js → index-DyzbNiWD.js} +1 -1
- package/dist/chunks/{index-D_6aT2Bw.js → index-YSt1dpEp.js} +318 -286
- package/dist/chunks/{mountEngine-DSq2OWCh.js → mountEngine-DVTbWmeA.js} +7335 -7054
- package/dist/lydian.js +1 -1
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/network/base.d.ts +10 -5
- package/dist/types/network/customer/index.d.ts +3 -2
- package/dist/types/types.d.ts +28 -0
- package/dist/types/ui/kycFlow.d.ts +1 -0
- package/dist/types/ui/kycValidation.d.ts +27 -8
- package/dist/types/ui/react/FormField.d.ts +2 -1
- package/dist/types/ui/react/KycFields.d.ts +3 -2
- package/dist/types/ui/react/checkoutStore.d.ts +1 -0
- package/dist/types/ui/restoredCustomer.d.ts +29 -3
- package/dist/types/ui/sessionHelpers.d.ts +13 -2
- package/package.json +1 -1
|
@@ -1,68 +1,82 @@
|
|
|
1
1
|
const E = ["USD", "TRY", "PHP"];
|
|
2
|
-
function U(
|
|
3
|
-
return typeof
|
|
2
|
+
function U(t) {
|
|
3
|
+
return typeof t == "string" && E.includes(t);
|
|
4
4
|
}
|
|
5
|
-
function u(
|
|
6
|
-
return "sessionID" in
|
|
5
|
+
function u(t) {
|
|
6
|
+
return "sessionID" in t && typeof t.sessionID == "string" && t.sessionID.length > 0;
|
|
7
7
|
}
|
|
8
8
|
class O extends Error {
|
|
9
9
|
constructor({
|
|
10
|
-
statusText:
|
|
10
|
+
statusText: e,
|
|
11
11
|
errorCode: a,
|
|
12
12
|
response: n
|
|
13
13
|
}) {
|
|
14
|
-
super(
|
|
14
|
+
super(e, { cause: n }), this.name = "GatewayRequestError", this.errorCode = a;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
async function
|
|
18
|
-
const
|
|
17
|
+
async function F(t) {
|
|
18
|
+
const e = await t.clone().json().catch(() => null);
|
|
19
19
|
return new O({
|
|
20
|
-
statusText:
|
|
21
|
-
errorCode:
|
|
22
|
-
response:
|
|
20
|
+
statusText: t.statusText,
|
|
21
|
+
errorCode: W(e),
|
|
22
|
+
response: t
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
if (!(typeof
|
|
27
|
-
return typeof
|
|
25
|
+
function W(t) {
|
|
26
|
+
if (!(typeof t != "object" || t === null || !("errorCode" in t)))
|
|
27
|
+
return typeof t.errorCode == "number" ? t.errorCode : void 0;
|
|
28
28
|
}
|
|
29
|
+
const k = { "Content-Type": "application/json" };
|
|
29
30
|
class y {
|
|
30
31
|
// Optional: a caller-supplied session has no key and needs none (see Sessions).
|
|
31
32
|
// The key is still required when the SDK creates the session, enforced in
|
|
32
33
|
// index.ts where that is known.
|
|
33
|
-
constructor(
|
|
34
|
-
if (this.baseUri =
|
|
34
|
+
constructor(e, a) {
|
|
35
|
+
if (this.baseUri = e, this.publishableKey = a, !this.baseUri)
|
|
35
36
|
throw new Error("baseUri is required");
|
|
36
37
|
}
|
|
37
38
|
// Omitted rather than blank when there is no key: the gateway checks the pk_
|
|
38
39
|
// prefix first, so an empty header is a 400 where an absent one is anonymous.
|
|
39
|
-
headers(
|
|
40
|
-
const a = { ...
|
|
40
|
+
headers(e) {
|
|
41
|
+
const a = { ...e };
|
|
41
42
|
return this.publishableKey && (a["X-Publishable-Key"] = this.publishableKey), a;
|
|
42
43
|
}
|
|
43
|
-
async
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
async send({
|
|
45
|
+
endpoint: e,
|
|
46
|
+
options: a,
|
|
47
|
+
requestHeaders: n
|
|
48
|
+
}) {
|
|
49
|
+
const o = await fetch(`${this.baseUri}${e}`, {
|
|
50
|
+
...a,
|
|
51
|
+
headers: this.headers(n)
|
|
52
|
+
});
|
|
53
|
+
if (o.ok)
|
|
54
|
+
return o;
|
|
55
|
+
throw await F(o);
|
|
56
|
+
}
|
|
57
|
+
async request(e, a) {
|
|
58
|
+
return await (await this.send({
|
|
59
|
+
endpoint: e,
|
|
60
|
+
options: a,
|
|
61
|
+
requestHeaders: { ...k, ...a == null ? void 0 : a.headers }
|
|
62
|
+
})).json();
|
|
48
63
|
}
|
|
49
64
|
// For endpoints that reply text/plain rather than JSON (e.g. PATCH
|
|
50
65
|
// /customer/otp -> "OTP sent"). Sends the same JSON request headers but does
|
|
51
66
|
// not call response.json(), which would throw on a non-JSON body.
|
|
52
|
-
async requestText(
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
67
|
+
async requestText(e, a) {
|
|
68
|
+
return await (await this.send({
|
|
69
|
+
endpoint: e,
|
|
70
|
+
options: a,
|
|
71
|
+
requestHeaders: k
|
|
72
|
+
})).text();
|
|
57
73
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
return await s.json();
|
|
62
|
-
throw await f(s);
|
|
74
|
+
// No Content-Type: the browser sets the multipart boundary.
|
|
75
|
+
async requestWithFormData(e, a) {
|
|
76
|
+
return await (await this.send({ endpoint: e, options: a })).json();
|
|
63
77
|
}
|
|
64
78
|
}
|
|
65
|
-
const
|
|
79
|
+
const c = "transaction", _ = [
|
|
66
80
|
"firstName",
|
|
67
81
|
"lastName",
|
|
68
82
|
"email",
|
|
@@ -70,6 +84,7 @@ const l = "transaction", W = [
|
|
|
70
84
|
"city",
|
|
71
85
|
"region",
|
|
72
86
|
"postalCode",
|
|
87
|
+
"addressCountry",
|
|
73
88
|
"country",
|
|
74
89
|
"yearOfBirth",
|
|
75
90
|
"monthOfBirth",
|
|
@@ -80,55 +95,55 @@ const l = "transaction", W = [
|
|
|
80
95
|
"nationalIDNumber",
|
|
81
96
|
"customerIDNumber"
|
|
82
97
|
];
|
|
83
|
-
class
|
|
84
|
-
async getCryptoTransaction(
|
|
85
|
-
return await this.request(`/${
|
|
98
|
+
class M extends y {
|
|
99
|
+
async getCryptoTransaction(e) {
|
|
100
|
+
return await this.request(`/${c}/${e}`);
|
|
86
101
|
}
|
|
87
|
-
async createPaymentRequest(
|
|
102
|
+
async createPaymentRequest(e, a) {
|
|
88
103
|
return await this.request(
|
|
89
|
-
`/${
|
|
104
|
+
`/${c}/${e}/payment`,
|
|
90
105
|
{
|
|
91
106
|
method: "POST",
|
|
92
107
|
body: JSON.stringify(a)
|
|
93
108
|
}
|
|
94
109
|
);
|
|
95
110
|
}
|
|
96
|
-
async buildTransfer(
|
|
111
|
+
async buildTransfer(e, a, n) {
|
|
97
112
|
return await this.request(
|
|
98
|
-
`/${
|
|
113
|
+
`/${c}/${e}/payment/${a}/transfer`,
|
|
99
114
|
{
|
|
100
115
|
method: "POST",
|
|
101
116
|
body: JSON.stringify(n)
|
|
102
117
|
}
|
|
103
118
|
);
|
|
104
119
|
}
|
|
105
|
-
async broadcastTransfer(
|
|
120
|
+
async broadcastTransfer(e, a, n) {
|
|
106
121
|
return await this.request(
|
|
107
|
-
`/${
|
|
122
|
+
`/${c}/${e}/payment/${a}/transfer/broadcast`,
|
|
108
123
|
{
|
|
109
124
|
method: "POST",
|
|
110
125
|
body: JSON.stringify(n)
|
|
111
126
|
}
|
|
112
127
|
);
|
|
113
128
|
}
|
|
114
|
-
async cancelCryptoTransaction(
|
|
129
|
+
async cancelCryptoTransaction(e, a) {
|
|
115
130
|
return await this.request(
|
|
116
|
-
`/${
|
|
131
|
+
`/${c}/${e}/cancel`,
|
|
117
132
|
{
|
|
118
133
|
method: "PATCH",
|
|
119
134
|
body: JSON.stringify(a)
|
|
120
135
|
}
|
|
121
136
|
);
|
|
122
137
|
}
|
|
123
|
-
async kycVerification(
|
|
138
|
+
async kycVerification(e, a) {
|
|
124
139
|
const n = new FormData();
|
|
125
|
-
return n.append("asset", a.asset), n.append("network", a.network),
|
|
140
|
+
return n.append("asset", a.asset), n.append("network", a.network), _.forEach((o) => {
|
|
126
141
|
const r = a[o];
|
|
127
142
|
r && n.append(o, r);
|
|
128
143
|
}), n.append("storeKYC", a.storeKYC ? "true" : "false"), a.customerUUID && n.append("customerUUID", a.customerUUID), a.walletAddress && n.append("walletAddress", a.walletAddress), a.documentType && n.append("documentType", a.documentType), a.documentFiles.forEach(
|
|
129
144
|
(o, r) => n.append("documentFiles", o, `${r + 1}-${o.name}`)
|
|
130
145
|
), await this.requestWithFormData(
|
|
131
|
-
`/${
|
|
146
|
+
`/${c}/${e}/verification`,
|
|
132
147
|
{
|
|
133
148
|
method: "POST",
|
|
134
149
|
body: n
|
|
@@ -136,65 +151,72 @@ class $ extends y {
|
|
|
136
151
|
);
|
|
137
152
|
}
|
|
138
153
|
}
|
|
139
|
-
function
|
|
140
|
-
|
|
154
|
+
function Y(t, e) {
|
|
155
|
+
e.forEach((a) => {
|
|
141
156
|
Object.getOwnPropertyNames(a.prototype).forEach((n) => {
|
|
142
157
|
const o = Object.getOwnPropertyDescriptor(a.prototype, n);
|
|
143
|
-
o && Object.defineProperty(
|
|
158
|
+
o && Object.defineProperty(t.prototype, n, o);
|
|
144
159
|
});
|
|
145
160
|
});
|
|
146
161
|
}
|
|
147
|
-
const
|
|
148
|
-
class
|
|
162
|
+
const h = "customer";
|
|
163
|
+
class B extends y {
|
|
149
164
|
// PATCH /customer/otp -> text/plain "OTP sent" (no JSON body).
|
|
150
|
-
async sendCustomerOTP(
|
|
151
|
-
return await this.requestText(`/${
|
|
165
|
+
async sendCustomerOTP(e) {
|
|
166
|
+
return await this.requestText(`/${h}/otp`, {
|
|
152
167
|
method: "PATCH",
|
|
153
|
-
body: JSON.stringify(
|
|
168
|
+
body: JSON.stringify(e)
|
|
154
169
|
});
|
|
155
170
|
}
|
|
156
171
|
// PUT /customer/otp -> { customerUUID, kycValidated }.
|
|
157
|
-
async authenticateCustomerOTP(
|
|
158
|
-
return await this.request(`/${
|
|
172
|
+
async authenticateCustomerOTP(e) {
|
|
173
|
+
return await this.request(`/${h}/otp`, {
|
|
159
174
|
method: "PUT",
|
|
160
|
-
body: JSON.stringify(
|
|
175
|
+
body: JSON.stringify(e)
|
|
161
176
|
});
|
|
162
177
|
}
|
|
163
|
-
// PUT /customer/pii -> the stored record, masked
|
|
164
|
-
// PUT /customer/otp; a code serves both
|
|
165
|
-
|
|
166
|
-
|
|
178
|
+
// PUT /customer/pii -> the stored record, masked unless the merchant shows it
|
|
179
|
+
// as stored. Verifies the same code as PUT /customer/otp; a code serves both
|
|
180
|
+
// until it expires.
|
|
181
|
+
async getCustomerPII(e) {
|
|
182
|
+
return await this.request(`/${h}/pii`, {
|
|
167
183
|
method: "PUT",
|
|
168
|
-
body: JSON.stringify(
|
|
184
|
+
body: JSON.stringify(e)
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
async updateCustomerPII(e) {
|
|
188
|
+
return await this.request(`/${h}/pii`, {
|
|
189
|
+
method: "PATCH",
|
|
190
|
+
body: JSON.stringify(e)
|
|
169
191
|
});
|
|
170
192
|
}
|
|
171
193
|
}
|
|
172
|
-
const
|
|
173
|
-
class
|
|
174
|
-
async getCountries(
|
|
175
|
-
return await this.request(`/${
|
|
194
|
+
const $ = "places", x = { "X-User": "lydian" };
|
|
195
|
+
class q extends y {
|
|
196
|
+
async getCountries(e) {
|
|
197
|
+
return await this.request(`/${$}/countries`, {
|
|
176
198
|
headers: x,
|
|
177
|
-
signal:
|
|
199
|
+
signal: e
|
|
178
200
|
});
|
|
179
201
|
}
|
|
180
202
|
}
|
|
181
203
|
const d = "session";
|
|
182
|
-
class
|
|
183
|
-
async createSession(
|
|
204
|
+
class G extends y {
|
|
205
|
+
async createSession(e) {
|
|
184
206
|
return await this.request(`/${d}`, {
|
|
185
207
|
method: "POST",
|
|
186
|
-
body: JSON.stringify(
|
|
208
|
+
body: JSON.stringify(e)
|
|
187
209
|
});
|
|
188
210
|
}
|
|
189
|
-
async getSession(
|
|
190
|
-
return await this.request(`/${d}/${
|
|
211
|
+
async getSession(e) {
|
|
212
|
+
return await this.request(`/${d}/${e}`);
|
|
191
213
|
}
|
|
192
214
|
// Promotes the session into a transaction. Allowed once per session — except
|
|
193
215
|
// that a KYC-pending (3) response does not consume the promotion, which is
|
|
194
216
|
// what lets the restore-details flow re-promote with a customerUUID.
|
|
195
|
-
async createSessionTransaction(
|
|
217
|
+
async createSessionTransaction(e, a) {
|
|
196
218
|
return await this.request(
|
|
197
|
-
`/${d}/${
|
|
219
|
+
`/${d}/${e}/transaction`,
|
|
198
220
|
{
|
|
199
221
|
method: "POST",
|
|
200
222
|
body: JSON.stringify(a)
|
|
@@ -203,13 +225,13 @@ class q extends y {
|
|
|
203
225
|
}
|
|
204
226
|
// PATCH /session/{id}/cancel replies text/plain (the merchant's cancel URL),
|
|
205
227
|
// not JSON. Cancelling cascades to the linked transaction, if any.
|
|
206
|
-
async cancelSession(
|
|
207
|
-
return await this.requestText(`/${d}/${
|
|
228
|
+
async cancelSession(e) {
|
|
229
|
+
return await this.requestText(`/${d}/${e}/cancel`, {
|
|
208
230
|
method: "PATCH"
|
|
209
231
|
});
|
|
210
232
|
}
|
|
211
|
-
async sendReceipt(
|
|
212
|
-
await this.request(`/${d}/${
|
|
233
|
+
async sendReceipt(e, a) {
|
|
234
|
+
await this.request(`/${d}/${e}/receipt`, {
|
|
213
235
|
method: "POST",
|
|
214
236
|
body: JSON.stringify(a)
|
|
215
237
|
});
|
|
@@ -217,9 +239,9 @@ class q extends y {
|
|
|
217
239
|
}
|
|
218
240
|
class D extends y {
|
|
219
241
|
}
|
|
220
|
-
|
|
221
|
-
const
|
|
222
|
-
var
|
|
242
|
+
Y(D, [M, B, q, G]);
|
|
243
|
+
const H = D;
|
|
244
|
+
var s = {
|
|
223
245
|
SINGLE_PAYMENT_REQUIRED: -11,
|
|
224
246
|
API_CANCELLED: -9,
|
|
225
247
|
PAYMENT_TIMEOUT: -8,
|
|
@@ -237,173 +259,173 @@ var i = {
|
|
|
237
259
|
// one promotion — the OTP restore flow re-promotes the same session.
|
|
238
260
|
KYC_VERIFICATION_PENDING: 3,
|
|
239
261
|
COMPLIANCE_PENDING: 10
|
|
240
|
-
},
|
|
262
|
+
}, K = {
|
|
241
263
|
PARTIALLY_PAID: 1,
|
|
242
264
|
OVERPAID: 3
|
|
243
|
-
},
|
|
265
|
+
}, z = {
|
|
244
266
|
PENDING: 0,
|
|
245
267
|
CONFIRMED: 1
|
|
246
|
-
},
|
|
268
|
+
}, w = {
|
|
247
269
|
dev: "https://api.lydian.dev",
|
|
248
270
|
sandbox: "https://api.sandbox.lydian.com",
|
|
249
271
|
prod: "https://api.lydian.com"
|
|
250
272
|
};
|
|
251
|
-
function
|
|
252
|
-
return
|
|
273
|
+
function j(t) {
|
|
274
|
+
return t.gatewayUrl ? new URL(t.gatewayUrl).origin : t.dev ? w.dev : t.sandbox ? w.sandbox : w.prod;
|
|
253
275
|
}
|
|
254
276
|
function S({
|
|
255
|
-
options:
|
|
256
|
-
unsupportedKeys:
|
|
277
|
+
options: t,
|
|
278
|
+
unsupportedKeys: e,
|
|
257
279
|
entryPoint: a
|
|
258
280
|
}) {
|
|
259
|
-
const n =
|
|
281
|
+
const n = e.filter((o) => t[o] !== void 0);
|
|
260
282
|
return n.length === 0 ? null : `${n.join(" and ")} ${n.length > 1 ? "are" : "is"} not used by ${a}. Passing it has no effect, so this is almost always a mistake.`;
|
|
261
283
|
}
|
|
262
|
-
function A(
|
|
263
|
-
var
|
|
264
|
-
return (
|
|
284
|
+
function A(t) {
|
|
285
|
+
var e;
|
|
286
|
+
return (e = t.flow) != null && e.walletConnect && !t.walletConnectProjectId ? "walletConnectProjectId is required when flow.walletConnect is on" : null;
|
|
265
287
|
}
|
|
266
|
-
function v(
|
|
267
|
-
return
|
|
288
|
+
function v(t) {
|
|
289
|
+
return t.gatewayUrl === void 0 || J(t.gatewayUrl) ? null : `gatewayUrl must be an http(s) origin such as http://localhost:8000, with no path, got ${JSON.stringify(t.gatewayUrl)}`;
|
|
268
290
|
}
|
|
269
|
-
function
|
|
270
|
-
let
|
|
291
|
+
function J(t) {
|
|
292
|
+
let e;
|
|
271
293
|
try {
|
|
272
|
-
|
|
294
|
+
e = new URL(t);
|
|
273
295
|
} catch {
|
|
274
296
|
return !1;
|
|
275
297
|
}
|
|
276
|
-
return (
|
|
298
|
+
return (e.protocol === "http:" || e.protocol === "https:") && e.pathname === "/" && e.search === "" && e.hash === "";
|
|
277
299
|
}
|
|
278
|
-
function
|
|
279
|
-
return
|
|
300
|
+
function he(t) {
|
|
301
|
+
return t !== null && !u(t) && !!t.publishableKey;
|
|
280
302
|
}
|
|
281
|
-
function
|
|
282
|
-
return
|
|
303
|
+
function me(t) {
|
|
304
|
+
return t !== null && !u(t);
|
|
283
305
|
}
|
|
284
|
-
function
|
|
285
|
-
options:
|
|
286
|
-
session:
|
|
306
|
+
function fe({
|
|
307
|
+
options: t,
|
|
308
|
+
session: e,
|
|
287
309
|
settled: a
|
|
288
310
|
}) {
|
|
289
|
-
return !a &&
|
|
311
|
+
return !a && e !== null && t !== null && u(t);
|
|
290
312
|
}
|
|
291
|
-
function I(
|
|
313
|
+
function I(t, e, a) {
|
|
292
314
|
try {
|
|
293
|
-
|
|
315
|
+
t == null || t(e, a);
|
|
294
316
|
} catch (n) {
|
|
295
|
-
console.error(`onEvent("${
|
|
317
|
+
console.error(`onEvent("${e}") threw:`, n);
|
|
296
318
|
}
|
|
297
319
|
}
|
|
298
|
-
function
|
|
299
|
-
if (!
|
|
320
|
+
function m(t) {
|
|
321
|
+
if (!t)
|
|
300
322
|
return;
|
|
301
|
-
let
|
|
323
|
+
let e;
|
|
302
324
|
try {
|
|
303
|
-
|
|
325
|
+
e = new URL(t);
|
|
304
326
|
} catch {
|
|
305
327
|
return;
|
|
306
328
|
}
|
|
307
|
-
return
|
|
329
|
+
return e.protocol === "https:" || e.protocol === "http:" ? t : void 0;
|
|
308
330
|
}
|
|
309
|
-
const
|
|
310
|
-
|
|
311
|
-
|
|
331
|
+
const Q = [
|
|
332
|
+
s.KYC_VERIFICATION_PENDING,
|
|
333
|
+
s.COMPLIANCE_PENDING
|
|
312
334
|
];
|
|
313
|
-
async function
|
|
314
|
-
api:
|
|
315
|
-
options:
|
|
335
|
+
async function X({
|
|
336
|
+
api: t,
|
|
337
|
+
options: e,
|
|
316
338
|
emit: a
|
|
317
339
|
}) {
|
|
318
340
|
try {
|
|
319
|
-
const n = await
|
|
320
|
-
a("session.loaded",
|
|
321
|
-
const r = await
|
|
322
|
-
api:
|
|
341
|
+
const n = await Z({ api: t, options: e }), o = await t.getSession(n);
|
|
342
|
+
a("session.loaded", ee(o));
|
|
343
|
+
const r = await ae({
|
|
344
|
+
api: t,
|
|
323
345
|
transactionID: o.transactionID
|
|
324
|
-
}),
|
|
325
|
-
return { ok: !0, session: o, sessionPromoted:
|
|
346
|
+
}), i = te({ session: o, linkedTransaction: r });
|
|
347
|
+
return { ok: !0, session: o, sessionPromoted: i, linkedTransaction: r };
|
|
326
348
|
} catch (n) {
|
|
327
|
-
return { ok: !1, ...await
|
|
349
|
+
return { ok: !1, ...await V(n) };
|
|
328
350
|
}
|
|
329
351
|
}
|
|
330
|
-
async function
|
|
331
|
-
const
|
|
332
|
-
if (!(
|
|
352
|
+
async function V(t) {
|
|
353
|
+
const e = t instanceof Error ? t.cause : void 0;
|
|
354
|
+
if (!(e instanceof Response && e.status === 404))
|
|
333
355
|
return {};
|
|
334
356
|
try {
|
|
335
|
-
const n = await
|
|
357
|
+
const n = await e.json();
|
|
336
358
|
return {
|
|
337
|
-
failureURL:
|
|
338
|
-
cancelURL:
|
|
359
|
+
failureURL: P(n == null ? void 0 : n.failureURL),
|
|
360
|
+
cancelURL: P(n == null ? void 0 : n.cancelURL)
|
|
339
361
|
};
|
|
340
362
|
} catch {
|
|
341
363
|
return {};
|
|
342
364
|
}
|
|
343
365
|
}
|
|
344
|
-
function
|
|
345
|
-
return typeof
|
|
366
|
+
function P(t) {
|
|
367
|
+
return typeof t == "string" ? m(t) : void 0;
|
|
346
368
|
}
|
|
347
|
-
async function
|
|
348
|
-
api:
|
|
349
|
-
options:
|
|
369
|
+
async function Z({
|
|
370
|
+
api: t,
|
|
371
|
+
options: e
|
|
350
372
|
}) {
|
|
351
|
-
return u(
|
|
352
|
-
amount:
|
|
353
|
-
amountCurrency:
|
|
354
|
-
descriptor:
|
|
355
|
-
referenceNumber:
|
|
373
|
+
return u(e) ? e.sessionID : (await t.createSession({
|
|
374
|
+
amount: e.transaction.amount,
|
|
375
|
+
amountCurrency: e.transaction.currency,
|
|
376
|
+
descriptor: e.transaction.descriptor,
|
|
377
|
+
referenceNumber: e.transaction.referenceNumber
|
|
356
378
|
})).sessionID;
|
|
357
379
|
}
|
|
358
|
-
function
|
|
380
|
+
function ee(t) {
|
|
359
381
|
return {
|
|
360
|
-
sessionID:
|
|
361
|
-
merchantName:
|
|
362
|
-
alreadyPromoted: N(
|
|
382
|
+
sessionID: t.sessionID,
|
|
383
|
+
merchantName: t.merchantName,
|
|
384
|
+
alreadyPromoted: N(t)
|
|
363
385
|
};
|
|
364
386
|
}
|
|
365
|
-
function N(
|
|
366
|
-
return !!
|
|
387
|
+
function N(t) {
|
|
388
|
+
return !!t.transactionID;
|
|
367
389
|
}
|
|
368
|
-
function
|
|
369
|
-
session:
|
|
370
|
-
linkedTransaction:
|
|
390
|
+
function te({
|
|
391
|
+
session: t,
|
|
392
|
+
linkedTransaction: e
|
|
371
393
|
}) {
|
|
372
|
-
return N(
|
|
394
|
+
return N(t) ? e ? !Q.includes(e.status) : !0 : !1;
|
|
373
395
|
}
|
|
374
|
-
async function
|
|
375
|
-
api:
|
|
376
|
-
transactionID:
|
|
396
|
+
async function ae({
|
|
397
|
+
api: t,
|
|
398
|
+
transactionID: e
|
|
377
399
|
}) {
|
|
378
|
-
if (!
|
|
400
|
+
if (!e)
|
|
379
401
|
return null;
|
|
380
402
|
try {
|
|
381
|
-
return await
|
|
403
|
+
return await t.getCryptoTransaction(e);
|
|
382
404
|
} catch (a) {
|
|
383
405
|
return console.error("Failed to resolve the session transaction:", a), null;
|
|
384
406
|
}
|
|
385
407
|
}
|
|
386
|
-
function
|
|
387
|
-
message:
|
|
388
|
-
reason:
|
|
408
|
+
function C({
|
|
409
|
+
message: t,
|
|
410
|
+
reason: e,
|
|
389
411
|
shouldEndCheckout: a,
|
|
390
412
|
transactionID: n,
|
|
391
413
|
session: o
|
|
392
414
|
}) {
|
|
393
415
|
return {
|
|
394
|
-
event: { reason:
|
|
416
|
+
event: { reason: e, shouldEndCheckout: a, message: t },
|
|
395
417
|
failure: {
|
|
396
418
|
shouldEndCheckout: a,
|
|
397
|
-
reason:
|
|
419
|
+
reason: e,
|
|
398
420
|
transactionID: n,
|
|
399
421
|
// Only a failure that ends the checkout carries a redirect. A retryable one
|
|
400
422
|
// leaves the customer mid-flow with something still to do, and a host that
|
|
401
423
|
// navigated on it would eject them on a hiccup.
|
|
402
|
-
redirectURL: a ?
|
|
424
|
+
redirectURL: a ? m(o == null ? void 0 : o.failureURL) : void 0
|
|
403
425
|
}
|
|
404
426
|
};
|
|
405
427
|
}
|
|
406
|
-
const
|
|
428
|
+
const ne = {
|
|
407
429
|
"common.cancelTransaction": "Cancel Transaction",
|
|
408
430
|
"common.cancel": "Cancel",
|
|
409
431
|
"common.back": "Back",
|
|
@@ -500,7 +522,14 @@ const ae = {
|
|
|
500
522
|
"kyc.cityOfBirthLabel": "City of birth",
|
|
501
523
|
"kyc.cityOfBirthPlaceholder": "Enter city",
|
|
502
524
|
"kyc.nationalIdLabel": "ID number",
|
|
503
|
-
"kyc.nationalIdPlaceholder": "Enter
|
|
525
|
+
"kyc.nationalIdPlaceholder": "Enter your {documentType} ID",
|
|
526
|
+
"kyc.idDocumentLabel": "ID type",
|
|
527
|
+
"kyc.idDocumentPlaceholder": "Select ID type",
|
|
528
|
+
"kyc.idDocumentPassport": "Passport",
|
|
529
|
+
"kyc.idDocumentSss": "SSS",
|
|
530
|
+
"kyc.idDocumentDriverLicense": "Drivers License",
|
|
531
|
+
"kyc.idDocumentTin": "TIN",
|
|
532
|
+
"kyc.idDocumentOther": "Other",
|
|
504
533
|
"kyc.nationalIdChoice": "National ID number",
|
|
505
534
|
"kyc.customerIdLabel": "Customer identification number",
|
|
506
535
|
"kyc.customerIdPlaceholder": "Enter customer ID number",
|
|
@@ -647,106 +676,109 @@ const ae = {
|
|
|
647
676
|
"errors.unsupportedRequirements": "We can't collect the details this payment needs. Please contact support.",
|
|
648
677
|
"errors.verificationRejected": "We couldn't verify your identity, so this payment can't continue. Please contact support.",
|
|
649
678
|
"errors.unableToVerifyDetails": "We could not verify your details. Please try again or contact support.",
|
|
679
|
+
"errors.unableToSaveDetails": "We could not save your changes. Please try again or contact support.",
|
|
650
680
|
"errors.unableToRestoreDetails": "Unable to restore your details. Please try again.",
|
|
651
681
|
"errors.couldNotRestoreDetails": "We could not restore your details. Please try again or contact support.",
|
|
652
682
|
"validation.emailOrCountryMissing": "Email or country is missing.",
|
|
653
683
|
"validation.invalidEmail": "Please enter a valid email address.",
|
|
654
684
|
"validation.invalidDateOfBirth": "Please enter a valid date of birth.",
|
|
685
|
+
"validation.invalidIdNumber": "Please enter an ID number of {min} to {max} characters.",
|
|
686
|
+
"validation.reenterFullAddress": "Enter your full new address.",
|
|
655
687
|
"validation.customerDetailsMissing": "Customer details are missing.",
|
|
656
688
|
"validation.invalidOtp": "Please enter a valid 6-digit code.",
|
|
657
689
|
"terms.notice": 'By continuing, you agree to Lydian <a href="https://lydian.com/privacy" target="_blank" rel="noopener noreferrer">Terms and Conditions</a> and understand your data will be processed according to the <a href="https://lydian.com/privacy" target="_blank" rel="noopener noreferrer">Privacy Notice</a>.'
|
|
658
|
-
}, T = { en:
|
|
690
|
+
}, T = { en: ne }, R = "en";
|
|
659
691
|
let L = R;
|
|
660
|
-
function
|
|
692
|
+
function we() {
|
|
661
693
|
return L;
|
|
662
694
|
}
|
|
663
|
-
function
|
|
695
|
+
function f(t, e) {
|
|
664
696
|
var n;
|
|
665
|
-
const a = ((n = T[L]) == null ? void 0 : n[
|
|
666
|
-
return
|
|
697
|
+
const a = ((n = T[L]) == null ? void 0 : n[t]) ?? T[R][t] ?? t;
|
|
698
|
+
return e ? a.replace(
|
|
667
699
|
/\{(\w+)\}/g,
|
|
668
|
-
(o, r) =>
|
|
700
|
+
(o, r) => e[r] != null ? String(e[r]) : `{${r}}`
|
|
669
701
|
) : a;
|
|
670
702
|
}
|
|
671
|
-
const
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
703
|
+
const oe = /* @__PURE__ */ new Set([
|
|
704
|
+
s.SINGLE_PAYMENT_REQUIRED,
|
|
705
|
+
s.API_CANCELLED,
|
|
706
|
+
s.PAYMENT_TIMEOUT,
|
|
707
|
+
s.FRAUD_DECLINED,
|
|
708
|
+
s.FRAUD_REFUNDED,
|
|
709
|
+
s.FRAUD_HELD,
|
|
710
|
+
s.FORFEITED,
|
|
711
|
+
s.CANCELLED,
|
|
712
|
+
s.FRAUD
|
|
681
713
|
]);
|
|
682
|
-
function
|
|
683
|
-
return
|
|
714
|
+
function re(t) {
|
|
715
|
+
return t === s.SUCCESS ? "succeeded" : oe.has(t) ? "failed" : "active";
|
|
684
716
|
}
|
|
685
|
-
function
|
|
686
|
-
transaction:
|
|
687
|
-
session:
|
|
717
|
+
function se({
|
|
718
|
+
transaction: t,
|
|
719
|
+
session: e
|
|
688
720
|
}) {
|
|
689
|
-
var o, r,
|
|
690
|
-
const a =
|
|
721
|
+
var o, r, i;
|
|
722
|
+
const a = re(t.status);
|
|
691
723
|
if (a === "active")
|
|
692
724
|
return null;
|
|
693
725
|
if (a === "failed") {
|
|
694
|
-
const p =
|
|
726
|
+
const p = t.status === s.PAYMENT_TIMEOUT && t.paymentStatus === K.PARTIALLY_PAID || t.status === s.SINGLE_PAYMENT_REQUIRED;
|
|
695
727
|
return {
|
|
696
728
|
outcome: a,
|
|
697
|
-
message:
|
|
729
|
+
message: f(p ? "errors.paymentShortRefundRequested" : "errors.paymentCouldNotComplete"),
|
|
698
730
|
failure: {
|
|
699
731
|
shouldEndCheckout: !0,
|
|
700
732
|
// Negative (non-KYC) status — cancelled / fraud / timeout.
|
|
701
733
|
reason: "blocked",
|
|
702
|
-
transactionID:
|
|
703
|
-
redirectURL:
|
|
734
|
+
transactionID: t.transactionID,
|
|
735
|
+
redirectURL: m(e == null ? void 0 : e.failureURL)
|
|
704
736
|
}
|
|
705
737
|
};
|
|
706
738
|
}
|
|
707
|
-
const n = (o =
|
|
708
|
-
(
|
|
739
|
+
const n = (o = t.payments) == null ? void 0 : o.find(
|
|
740
|
+
(l) => l.status === z.CONFIRMED
|
|
709
741
|
);
|
|
710
742
|
return {
|
|
711
743
|
outcome: a,
|
|
712
744
|
event: {
|
|
713
|
-
transactionID:
|
|
745
|
+
transactionID: t.transactionID,
|
|
714
746
|
asset: n == null ? void 0 : n.cryptoAsset,
|
|
715
747
|
network: n == null ? void 0 : n.cryptoNetwork
|
|
716
748
|
},
|
|
717
749
|
result: {
|
|
718
|
-
transactionID:
|
|
719
|
-
amount: (r =
|
|
720
|
-
currency: (
|
|
750
|
+
transactionID: t.transactionID,
|
|
751
|
+
amount: (r = t.amounts) == null ? void 0 : r.totalLocal,
|
|
752
|
+
currency: (i = t.amounts) == null ? void 0 : i.currency,
|
|
721
753
|
asset: n == null ? void 0 : n.cryptoAsset,
|
|
722
754
|
network: n == null ? void 0 : n.cryptoNetwork,
|
|
723
755
|
completedAt: n == null ? void 0 : n.completedAt,
|
|
724
|
-
redirectURL:
|
|
756
|
+
redirectURL: m(e == null ? void 0 : e.successURL)
|
|
725
757
|
}
|
|
726
758
|
};
|
|
727
759
|
}
|
|
728
|
-
function
|
|
729
|
-
let
|
|
760
|
+
function ie() {
|
|
761
|
+
let t = null;
|
|
730
762
|
return {
|
|
731
|
-
setOptions: (
|
|
732
|
-
|
|
763
|
+
setOptions: (e) => {
|
|
764
|
+
t = e;
|
|
733
765
|
},
|
|
734
|
-
emit: (
|
|
735
|
-
paymentFailed: (
|
|
766
|
+
emit: (e, a) => I(t == null ? void 0 : t.onEvent, e, a),
|
|
767
|
+
paymentFailed: (e, a) => {
|
|
736
768
|
var n;
|
|
737
|
-
return (n =
|
|
769
|
+
return (n = t == null ? void 0 : t.paymentFailedListener) == null ? void 0 : n.call(t, e, a);
|
|
738
770
|
},
|
|
739
|
-
paymentSucceeded: (
|
|
771
|
+
paymentSucceeded: (e) => {
|
|
740
772
|
var a;
|
|
741
|
-
return (a =
|
|
773
|
+
return (a = t == null ? void 0 : t.paymentSuccessListener) == null ? void 0 : a.call(t, e);
|
|
742
774
|
},
|
|
743
|
-
paymentCanceled: (
|
|
775
|
+
paymentCanceled: (e) => {
|
|
744
776
|
var a;
|
|
745
|
-
return (a =
|
|
777
|
+
return (a = t == null ? void 0 : t.paymentCanceledListener) == null ? void 0 : a.call(t, e);
|
|
746
778
|
}
|
|
747
779
|
};
|
|
748
780
|
}
|
|
749
|
-
class
|
|
781
|
+
class ce extends HTMLElement {
|
|
750
782
|
constructor() {
|
|
751
783
|
super(), this.engine = null, this.engineLoadPromise = null, this.isTornDown = !1, this.shadow = this.attachShadow({ mode: "open" });
|
|
752
784
|
}
|
|
@@ -755,26 +787,26 @@ class ie extends HTMLElement {
|
|
|
755
787
|
connectedCallback() {
|
|
756
788
|
this.isTornDown = !1;
|
|
757
789
|
}
|
|
758
|
-
async initialize(
|
|
759
|
-
const a =
|
|
760
|
-
!o || this.isTornDown || (this.engine = o, await o.initialize(
|
|
790
|
+
async initialize(e) {
|
|
791
|
+
const a = le(e), n = de({ api: a, options: e }), o = await this.loadEngine(e, n);
|
|
792
|
+
!o || this.isTornDown || (this.engine = o, await o.initialize(e, { api: a, sessionLoad: n }));
|
|
761
793
|
}
|
|
762
|
-
async loadEngine(
|
|
794
|
+
async loadEngine(e, a) {
|
|
763
795
|
const n = this.getOrLoadEngine();
|
|
764
796
|
try {
|
|
765
797
|
return await n;
|
|
766
798
|
} catch {
|
|
767
799
|
return await this.handleEngineLoadFailure({
|
|
768
800
|
engineLoad: n,
|
|
769
|
-
options:
|
|
801
|
+
options: e,
|
|
770
802
|
sessionLoad: a
|
|
771
803
|
}), null;
|
|
772
804
|
}
|
|
773
805
|
}
|
|
774
|
-
async updateTransaction(
|
|
806
|
+
async updateTransaction(e) {
|
|
775
807
|
if (!this.engine)
|
|
776
808
|
throw new Error("Tether Pay not initialized.");
|
|
777
|
-
await this.engine.updateTransaction(
|
|
809
|
+
await this.engine.updateTransaction(e);
|
|
778
810
|
}
|
|
779
811
|
// A merchant SPA can unmount the element at any time; nothing else stops this
|
|
780
812
|
// instance's timers.
|
|
@@ -784,8 +816,8 @@ class ie extends HTMLElement {
|
|
|
784
816
|
// Not started in the constructor: a page can carry the tag and never check out.
|
|
785
817
|
// Overlapping initialize() calls share one download.
|
|
786
818
|
getOrLoadEngine() {
|
|
787
|
-
return this.engineLoadPromise ?? (this.engineLoadPromise = import("./mountEngine-
|
|
788
|
-
const a =
|
|
819
|
+
return this.engineLoadPromise ?? (this.engineLoadPromise = import("./mountEngine-DVTbWmeA.js").then((e) => e.m).then((e) => {
|
|
820
|
+
const a = e.mountCheckoutEngine({
|
|
789
821
|
host: this,
|
|
790
822
|
shadowRoot: this.shadow
|
|
791
823
|
});
|
|
@@ -793,11 +825,11 @@ class ie extends HTMLElement {
|
|
|
793
825
|
})), this.engineLoadPromise;
|
|
794
826
|
}
|
|
795
827
|
async handleEngineLoadFailure({
|
|
796
|
-
engineLoad:
|
|
828
|
+
engineLoad: e,
|
|
797
829
|
options: a,
|
|
798
830
|
sessionLoad: n
|
|
799
831
|
}) {
|
|
800
|
-
this.engineLoadPromise ===
|
|
832
|
+
this.engineLoadPromise === e && (this.engineLoadPromise = null, await this.reportEngineFailure({ options: a, sessionLoad: n }));
|
|
801
833
|
}
|
|
802
834
|
// A host that removed the element has walked away; a failure report could send
|
|
803
835
|
// it to a failureURL for a checkout it dismissed.
|
|
@@ -809,7 +841,7 @@ class ie extends HTMLElement {
|
|
|
809
841
|
// an outcome the gateway has already decided — a session resumed after the
|
|
810
842
|
// payment settled must report that payment, not a dead checkout.
|
|
811
843
|
async reportEngineFailure({
|
|
812
|
-
options:
|
|
844
|
+
options: e,
|
|
813
845
|
sessionLoad: a
|
|
814
846
|
}) {
|
|
815
847
|
if (this.isDismissedByHost)
|
|
@@ -817,9 +849,9 @@ class ie extends HTMLElement {
|
|
|
817
849
|
const n = await a;
|
|
818
850
|
if (this.isDismissedByHost)
|
|
819
851
|
return;
|
|
820
|
-
const o =
|
|
821
|
-
o.setOptions(
|
|
822
|
-
const r = n.ok && n.linkedTransaction ?
|
|
852
|
+
const o = ie();
|
|
853
|
+
o.setOptions(e);
|
|
854
|
+
const r = n.ok && n.linkedTransaction ? se({
|
|
823
855
|
transaction: n.linkedTransaction,
|
|
824
856
|
session: n.session
|
|
825
857
|
}) : null;
|
|
@@ -840,112 +872,112 @@ class ie extends HTMLElement {
|
|
|
840
872
|
return;
|
|
841
873
|
}
|
|
842
874
|
if (!n.ok && n.failureURL) {
|
|
843
|
-
const p =
|
|
875
|
+
const p = f("errors.unableToCreateSession"), b = C({
|
|
844
876
|
message: p,
|
|
845
877
|
reason: "sessionExpired",
|
|
846
878
|
shouldEndCheckout: !0,
|
|
847
879
|
session: { failureURL: n.failureURL }
|
|
848
880
|
});
|
|
849
|
-
o.emit("payment.failed",
|
|
881
|
+
o.emit("payment.failed", b.event), o.paymentFailed(p, b.failure);
|
|
850
882
|
return;
|
|
851
883
|
}
|
|
852
|
-
const
|
|
853
|
-
message:
|
|
884
|
+
const i = f("errors.checkoutUnavailable"), l = C({
|
|
885
|
+
message: i,
|
|
854
886
|
reason: "error",
|
|
855
887
|
shouldEndCheckout: !0,
|
|
856
888
|
session: n.ok ? n.session : null
|
|
857
889
|
});
|
|
858
|
-
o.emit("payment.failed",
|
|
890
|
+
o.emit("payment.failed", l.event), o.paymentFailed(i, l.failure);
|
|
859
891
|
}
|
|
860
892
|
// Always teardown and unmount together to avoid leaking the React engine.
|
|
861
893
|
// Clear the cached load so a later initialize() creates a fresh engine.
|
|
862
|
-
releaseEngine(
|
|
863
|
-
|
|
894
|
+
releaseEngine(e = this.engine) {
|
|
895
|
+
e == null || e.teardown(), e == null || e.unmount(), this.engine = null, this.engineLoadPromise = null;
|
|
864
896
|
}
|
|
865
897
|
}
|
|
866
|
-
function
|
|
867
|
-
return new
|
|
868
|
-
|
|
869
|
-
u(
|
|
898
|
+
function le(t) {
|
|
899
|
+
return new H(
|
|
900
|
+
j(t),
|
|
901
|
+
u(t) ? void 0 : t.publishableKey
|
|
870
902
|
);
|
|
871
903
|
}
|
|
872
|
-
function
|
|
873
|
-
api:
|
|
874
|
-
options:
|
|
904
|
+
function de({
|
|
905
|
+
api: t,
|
|
906
|
+
options: e
|
|
875
907
|
}) {
|
|
876
|
-
return
|
|
877
|
-
api:
|
|
878
|
-
options:
|
|
879
|
-
emit: (a, n) => I(
|
|
908
|
+
return X({
|
|
909
|
+
api: t,
|
|
910
|
+
options: e,
|
|
911
|
+
emit: (a, n) => I(e.onEvent, a, n)
|
|
880
912
|
});
|
|
881
913
|
}
|
|
882
|
-
customElements.get("lydian-checkout") || customElements.define("lydian-checkout",
|
|
883
|
-
function
|
|
914
|
+
customElements.get("lydian-checkout") || customElements.define("lydian-checkout", ce);
|
|
915
|
+
function g() {
|
|
884
916
|
return document.querySelector("lydian-checkout");
|
|
885
917
|
}
|
|
886
|
-
async function
|
|
887
|
-
if (!
|
|
918
|
+
async function ue(t) {
|
|
919
|
+
if (!t.publishableKey || !t.transaction.amount || !t.transaction.currency)
|
|
888
920
|
throw new Error("SDK initialization requires publishableKey and a transaction");
|
|
889
|
-
const
|
|
890
|
-
if (
|
|
891
|
-
throw new Error(
|
|
892
|
-
const a = v(
|
|
921
|
+
const e = A(t);
|
|
922
|
+
if (e)
|
|
923
|
+
throw new Error(e);
|
|
924
|
+
const a = v(t);
|
|
893
925
|
if (a)
|
|
894
926
|
throw new Error(a);
|
|
895
|
-
if (!U(
|
|
927
|
+
if (!U(t.transaction.currency))
|
|
896
928
|
throw new Error("Invalid value for currency, valid values are: " + E.join(", "));
|
|
897
929
|
const n = S({
|
|
898
|
-
options:
|
|
930
|
+
options: t,
|
|
899
931
|
unsupportedKeys: ["sessionID"],
|
|
900
932
|
entryPoint: "init"
|
|
901
933
|
});
|
|
902
934
|
if (n)
|
|
903
935
|
throw new Error(n);
|
|
904
|
-
await
|
|
936
|
+
await g().initialize(t);
|
|
905
937
|
}
|
|
906
|
-
async function
|
|
907
|
-
if (!
|
|
938
|
+
async function ye(t) {
|
|
939
|
+
if (!t.sessionID)
|
|
908
940
|
throw new Error("initExistingSession requires a sessionID");
|
|
909
|
-
const
|
|
910
|
-
if (
|
|
911
|
-
throw new Error(
|
|
912
|
-
const a = v(
|
|
941
|
+
const e = A(t);
|
|
942
|
+
if (e)
|
|
943
|
+
throw new Error(e);
|
|
944
|
+
const a = v(t);
|
|
913
945
|
if (a)
|
|
914
946
|
throw new Error(a);
|
|
915
947
|
const n = S({
|
|
916
|
-
options:
|
|
948
|
+
options: t,
|
|
917
949
|
unsupportedKeys: ["publishableKey", "transaction"],
|
|
918
950
|
entryPoint: "initExistingSession"
|
|
919
951
|
});
|
|
920
952
|
if (n)
|
|
921
953
|
throw new Error(n);
|
|
922
|
-
await
|
|
954
|
+
await g().initialize(t);
|
|
923
955
|
}
|
|
924
|
-
async function
|
|
925
|
-
await
|
|
956
|
+
async function pe(t) {
|
|
957
|
+
await g().updateTransaction(t);
|
|
926
958
|
}
|
|
927
|
-
window.Lydian = { init:
|
|
959
|
+
window.Lydian = { init: ue, initExistingSession: ye, updateTransaction: pe };
|
|
928
960
|
export {
|
|
929
961
|
O as G,
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
962
|
+
K as P,
|
|
963
|
+
s as T,
|
|
964
|
+
z as a,
|
|
965
|
+
me as b,
|
|
934
966
|
E as c,
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
967
|
+
ee as d,
|
|
968
|
+
te as e,
|
|
969
|
+
ae as f,
|
|
970
|
+
we as g,
|
|
939
971
|
u as h,
|
|
940
972
|
U as i,
|
|
941
|
-
|
|
942
|
-
|
|
973
|
+
re as j,
|
|
974
|
+
se as k,
|
|
943
975
|
N as l,
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
976
|
+
fe as m,
|
|
977
|
+
C as n,
|
|
978
|
+
he as o,
|
|
979
|
+
ie as p,
|
|
980
|
+
Z as r,
|
|
981
|
+
m as s,
|
|
982
|
+
f as t
|
|
951
983
|
};
|