@paywithglide/glide-react 0.0.46 → 0.0.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/glide.js CHANGED
@@ -1,964 +1,385 @@
1
- var te = Object.defineProperty;
2
- var se = (s, t, e) => t in s ? te(s, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[t] = e;
3
- var W = (s, t, e) => se(s, typeof t != "symbol" ? t + "" : t, e);
4
- import { useMemo as G } from "react";
5
- function ie(s, { strict: t = !0 } = {}) {
6
- return !s || typeof s != "string" ? !1 : t ? /^0x[0-9a-fA-F]*$/.test(s) : s.startsWith("0x");
7
- }
8
- function q(s) {
9
- return ie(s, { strict: !1 }) ? Math.ceil((s.length - 2) / 2) : s.length;
10
- }
11
- const V = "2.21.51";
12
- let L = {
13
- getDocsUrl: ({ docsBaseUrl: s, docsPath: t = "", docsSlug: e }) => t ? `${s ?? "https://viem.sh"}${t}${e ? `#${e}` : ""}` : void 0,
14
- version: `viem@${V}`
15
- };
16
- class A extends Error {
17
- constructor(t, e = {}) {
18
- var d;
19
- const i = (() => {
20
- var a;
21
- return e.cause instanceof A ? e.cause.details : (a = e.cause) != null && a.message ? e.cause.message : e.details;
22
- })(), o = e.cause instanceof A && e.cause.docsPath || e.docsPath, n = (d = L.getDocsUrl) == null ? void 0 : d.call(L, { ...e, docsPath: o }), c = [
23
- t || "An error occurred.",
24
- "",
25
- ...e.metaMessages ? [...e.metaMessages, ""] : [],
26
- ...n ? [`Docs: ${n}`] : [],
27
- ...i ? [`Details: ${i}`] : [],
28
- ...L.version ? [`Version: ${L.version}`] : []
29
- ].join(`
30
- `);
31
- super(c, e.cause ? { cause: e.cause } : void 0), Object.defineProperty(this, "details", {
32
- enumerable: !0,
33
- configurable: !0,
34
- writable: !0,
35
- value: void 0
36
- }), Object.defineProperty(this, "docsPath", {
37
- enumerable: !0,
38
- configurable: !0,
39
- writable: !0,
40
- value: void 0
41
- }), Object.defineProperty(this, "metaMessages", {
42
- enumerable: !0,
43
- configurable: !0,
44
- writable: !0,
45
- value: void 0
46
- }), Object.defineProperty(this, "shortMessage", {
47
- enumerable: !0,
48
- configurable: !0,
49
- writable: !0,
50
- value: void 0
51
- }), Object.defineProperty(this, "version", {
52
- enumerable: !0,
53
- configurable: !0,
54
- writable: !0,
55
- value: void 0
56
- }), Object.defineProperty(this, "name", {
57
- enumerable: !0,
58
- configurable: !0,
59
- writable: !0,
60
- value: "BaseError"
61
- }), this.details = i, this.docsPath = o, this.metaMessages = e.metaMessages, this.name = e.name ?? this.name, this.shortMessage = t, this.version = V;
62
- }
63
- walk(t) {
64
- return F(this, t);
65
- }
66
- }
67
- function F(s, t) {
68
- return t != null && t(s) ? s : s && typeof s == "object" && "cause" in s && s.cause !== void 0 ? F(s.cause, t) : t ? null : s;
69
- }
70
- class J extends A {
71
- constructor({ size: t, targetSize: e, type: i }) {
72
- super(`${i.charAt(0).toUpperCase()}${i.slice(1).toLowerCase()} size (${t}) exceeds padding size (${e}).`, { name: "SizeExceedsPaddingSizeError" });
73
- }
74
- }
75
- function H(s, { dir: t, size: e = 32 } = {}) {
76
- return typeof s == "string" ? oe(s, { dir: t, size: e }) : ne(s, { dir: t, size: e });
77
- }
78
- function oe(s, { dir: t, size: e = 32 } = {}) {
79
- if (e === null)
80
- return s;
81
- const i = s.replace("0x", "");
82
- if (i.length > e * 2)
83
- throw new J({
84
- size: Math.ceil(i.length / 2),
85
- targetSize: e,
86
- type: "hex"
87
- });
88
- return `0x${i[t === "right" ? "padEnd" : "padStart"](e * 2, "0")}`;
89
- }
90
- function ne(s, { dir: t, size: e = 32 } = {}) {
91
- if (e === null)
92
- return s;
93
- if (s.length > e)
94
- throw new J({
95
- size: s.length,
96
- targetSize: e,
97
- type: "bytes"
98
- });
99
- const i = new Uint8Array(e);
100
- for (let o = 0; o < e; o++) {
101
- const n = t === "right";
102
- i[n ? o : e - o - 1] = s[n ? o : s.length - o - 1];
103
- }
104
- return i;
105
- }
106
- class re extends A {
107
- constructor({ max: t, min: e, signed: i, size: o, value: n }) {
108
- super(`Number "${n}" is not in safe ${o ? `${o * 8}-bit ${i ? "signed" : "unsigned"} ` : ""}integer range ${t ? `(${e} to ${t})` : `(above ${e})`}`, { name: "IntegerOutOfRangeError" });
109
- }
110
- }
111
- class ae extends A {
112
- constructor({ givenSize: t, maxSize: e }) {
113
- super(`Size cannot exceed ${e} bytes. Given size: ${t} bytes.`, { name: "SizeOverflowError" });
114
- }
115
- }
116
- function _(s, { size: t }) {
117
- if (q(s) > t)
118
- throw new ae({
119
- givenSize: q(s),
120
- maxSize: t
121
- });
122
- }
123
- const de = /* @__PURE__ */ Array.from({ length: 256 }, (s, t) => t.toString(16).padStart(2, "0"));
124
- function ce(s, t = {}) {
125
- return typeof s == "number" || typeof s == "bigint" ? le(s, t) : typeof s == "string" ? ue(s, t) : typeof s == "boolean" ? pe(s, t) : X(s, t);
126
- }
127
- function pe(s, t = {}) {
128
- const e = `0x${Number(s)}`;
129
- return typeof t.size == "number" ? (_(e, { size: t.size }), H(e, { size: t.size })) : e;
130
- }
131
- function X(s, t = {}) {
132
- let e = "";
133
- for (let o = 0; o < s.length; o++)
134
- e += de[s[o]];
135
- const i = `0x${e}`;
136
- return typeof t.size == "number" ? (_(i, { size: t.size }), H(i, { dir: "right", size: t.size })) : i;
137
- }
138
- function le(s, t = {}) {
139
- const { signed: e, size: i } = t, o = BigInt(s);
140
- let n;
141
- i ? e ? n = (1n << BigInt(i) * 8n - 1n) - 1n : n = 2n ** (BigInt(i) * 8n) - 1n : typeof s == "number" && (n = BigInt(Number.MAX_SAFE_INTEGER));
142
- const c = typeof n == "bigint" && e ? -n - 1n : 0;
143
- if (n && o > n || o < c) {
144
- const a = typeof s == "bigint" ? "n" : "";
145
- throw new re({
146
- max: n ? `${n}${a}` : void 0,
147
- min: `${c}${a}`,
148
- signed: e,
149
- size: i,
150
- value: `${s}${a}`
151
- });
152
- }
153
- const d = `0x${(e && o < 0 ? (1n << BigInt(i * 8)) + BigInt(o) : o).toString(16)}`;
154
- return i ? H(d, { size: i }) : d;
155
- }
156
- const he = /* @__PURE__ */ new TextEncoder();
157
- function ue(s, t = {}) {
158
- const e = he.encode(s);
159
- return X(e, t);
160
- }
161
- function me(s) {
162
- return s instanceof Error;
163
- }
164
- let N = !1;
165
- function ge(s) {
166
- if (N)
167
- return;
168
- N = !0;
169
- const t = /* @__PURE__ */ new Map(), e = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), o = (c) => {
170
- const d = c.detail;
171
- t.has(d.info.uuid) || t.set(d.info.uuid, d);
172
- };
173
- window.addEventListener("eip6963:announceProvider", o), window.dispatchEvent(new Event("eip6963:requestProvider")), window.addEventListener("message", async (c) => {
174
- var f;
175
- if (c.origin !== s) return;
176
- const { type: d, data: a } = c.data;
177
- switch (d) {
178
- case "glide:getProviders": {
179
- const p = Array.from(t.values()).map(
180
- ({ info: h, provider: l }) => ({
181
- info: h,
182
- isConnected: typeof l.isConnected == "boolean" ? l.isConnected : void 0,
183
- chainId: l.chainId,
184
- selectedAddress: l.selectedAddress
185
- })
186
- ), r = document.getElementById(
187
- "glide-deposit-iframe"
188
- );
189
- r != null && r.contentWindow && r.contentWindow.postMessage(
190
- {
191
- type: "glide:providers",
192
- providers: p
193
- },
194
- s
195
- );
196
- break;
197
- }
198
- case "glide:providerRequest": {
199
- const { uuid: p, requestId: r, method: h, params: l } = a;
200
- if (i.has(r))
201
- return;
202
- i.set(r, !0);
203
- const m = t.get(p);
204
- if (!m) {
205
- i.delete(r), n(r, { error: "Provider not found" });
206
- return;
207
- }
208
- try {
209
- const u = await m.provider.request({
210
- method: h,
211
- params: l
212
- });
213
- i.delete(r), n(r, { result: u });
214
- } catch (u) {
215
- i.delete(r), me(u) ? n(r, {
216
- error: u.message || String(u),
217
- code: u.code,
218
- data: u.data
219
- }) : n(r, {
220
- error: String(u)
221
- });
222
- }
223
- break;
224
- }
225
- case "glide:addEventListener": {
226
- const { uuid: p, requestId: r, eventName: h } = a, l = t.get(p);
227
- if (!l || !l.provider.on) {
228
- n(r, { error: "Provider or method not found" });
229
- return;
230
- }
231
- const m = (...u) => {
232
- const g = document.getElementById(
233
- "glide-deposit-iframe"
234
- );
235
- g != null && g.contentWindow && g.contentWindow.postMessage(
236
- {
237
- type: "glide:providerEvent",
238
- uuid: p,
239
- eventName: h,
240
- args: u
241
- },
242
- s
243
- );
244
- };
245
- e.has(p) || e.set(p, /* @__PURE__ */ new Map()), e.get(p).has(h) || e.get(p).set(h, /* @__PURE__ */ new Set()), e.get(p).get(h).add(m), l.provider.on(h, m), n(r, { result: !0 });
246
- break;
247
- }
248
- case "glide:removeEventListener": {
249
- const { uuid: p, requestId: r, eventName: h } = a, l = t.get(p);
250
- if (!l || !l.provider.removeListener) {
251
- n(r, { error: "Provider or method not found" });
252
- return;
253
- }
254
- const m = (f = e.get(p)) == null ? void 0 : f.get(h);
255
- m && (m.forEach((u) => {
256
- l.provider.removeListener(h, u);
257
- }), m.clear()), n(r, { result: !0 });
258
- break;
259
- }
260
- }
261
- });
262
- function n(c, d) {
263
- const a = document.getElementById(
264
- "glide-deposit-iframe"
265
- );
266
- a != null && a.contentWindow && a.contentWindow.postMessage(
267
- {
268
- type: "glide:providerResponse",
269
- requestId: c,
270
- ...d
271
- },
272
- s
273
- );
274
- }
275
- }
276
- const fe = "@paywithglide/glide-react", ye = "0.0.46", we = "module", ve = ["dist"], be = "dist/glide.js", $e = "dist/index.d.ts", Ie = { ".": { types: "./dist/index.d.ts", default: "./dist/glide.js" }, "./package.json": "./package.json" }, xe = !1, Se = { dev: "vite", build: "bun run lint && vite build", "build-web": "tsc --p ./tsconfig.build.json && vite build --mode web", "build-chromeext": "tsc --p ./tsconfig.build.json && vite build --mode chromeext:popup && vite build --mode chromeext:content && vite build --mode chromeext:background", lint: "prettier --check . && eslint . --max-warnings 0 && tsc --p ./tsconfig.build.json", preview: "vite preview", prepublishOnly: "bun run build" }, Pe = { "@paywithglide/glide-js": "0.13.10" }, Ee = { "@antiwork/shortest": "^0.2.1", "@eslint/js": "^9.15.0", "@tanstack/react-query": "^5.61.5", "@types/chrome": "^0.0.299", "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1", "@vitejs/plugin-react": "^4.3.4", eslint: "^9.15.0", "eslint-plugin-react-hooks": "^5.0.0", "eslint-plugin-react-refresh": "^0.4.14", globals: "^15.12.0", prettier: "^3.6.2", react: "^18.3.1", "react-dom": "^18.3.1", typescript: "~5.6.2", "typescript-eslint": "^8.15.0", viem: "^2.21.51", vite: "^6.0.1", "vite-plugin-dts": "^4.3.0", "vite-plugin-static-copy": "^2.2.0", wagmi: "^2.13.0" }, ke = {
277
- name: fe,
278
- version: ye,
279
- type: we,
280
- files: ve,
281
- module: be,
282
- types: $e,
283
- exports: Ie,
284
- sideEffects: xe,
285
- scripts: Se,
286
- dependencies: Pe,
287
- devDependencies: Ee
288
- }, Ue = ke.version, K = 999999;
289
- class O {
290
- constructor(t) {
291
- W(this, "opts");
292
- W(this, "open", () => {
293
- if (!(!this.opts.container && document.body.classList.contains("glide-deposit-open"))) {
294
- if (this.opts.container || document.body.classList.add("glide-deposit-open"), (this.opts.mode === "deposit" || this.opts.mode === "buy") && !this.opts.recipient)
295
- throw new Error("recipient is required for deposit/buy mode");
296
- if (this.opts.preferGaslessPayment && this.opts.walletProvider && !this.opts.walletProvider.signTypedDataAsync)
297
- throw new Error(
298
- "walletProvider.signTypedDataAsync is required when preferGaslessPayment=true"
299
- );
300
- this.openUrl(`${this.baseUrl}${this.opts.app}?init=true&embed=true`), this.initialize();
301
- }
302
- });
303
- W(this, "iframeEventHandler", async (t) => {
304
- var i, o, n, c, d, a, f, p, r, h, l, m, u, g, $, y, I, w, x, v, S, E, k, U, M, C, P, z, j, T, R, B, D;
305
- const e = t.data;
306
- switch (e.type) {
307
- case "sendInit": {
308
- const b = this.opts.recipient, Z = (i = this.opts.walletProvider) == null ? void 0 : i.address, Q = (o = this.opts.walletProvider) == null ? void 0 : o.availableChainIds, Y = (n = this.opts.walletProvider) == null ? void 0 : n.currentChainId, ee = this.opts.preferGaslessPayment || !!((c = this.opts.walletProvider) != null && c.signTypedDataAsync);
309
- (f = (d = this.iframe) == null ? void 0 : d.contentWindow) == null || f.postMessage(
310
- {
311
- type: "initialize",
312
- sessionId: this.opts.sessionId,
313
- recipient: b,
314
- connectedWalletAddress: Z,
315
- availableChainIds: Q,
316
- currentChainId: Y,
317
- preferGaslessPayment: ee,
318
- chainIds: this.opts.chainIds,
319
- excludeChainIds: this.opts.excludeChainIds,
320
- excludeCurrencyTiers: this.opts.excludeCurrencyTiers,
321
- excludeFundingSources: this.opts.excludeFundingSources,
322
- fundingSources: this.opts.fundingSources,
323
- allowedPaymentCurrencies: this.opts.allowedPaymentCurrencies,
324
- appMetadata: this.opts.appMetadata,
325
- enableRefundEmails: this.opts.enableRefundEmails,
326
- payerEmail: this.opts.payerEmail,
327
- mode: this.opts.mode,
328
- amount: this.opts.amount,
329
- chainId: this.opts.chainId,
330
- currencyId: this.opts.currencyId,
331
- evmTx: this.opts.evm,
332
- tokenApproval: this.opts.approval,
333
- sessionMetadata: this.opts.sessionMetadata,
334
- autoCloseOnSuccess: this.opts.autoCloseOnSuccess,
335
- disableWithdrawToSelfSuggestion: this.opts.disableWithdrawToSelfSuggestion,
336
- hideSettlementCopy: this.opts.hideSettlementCopy,
337
- showAppLogo: this.opts.showAppLogo,
338
- showOnrampFirst: this.opts.showOnrampFirst,
339
- debitCardAlias: this.opts.debitCardAlias,
340
- copyOverrides: this.opts.copyOverrides,
341
- stableDepositAddressKey: this.opts.stableDepositAddressKey,
342
- theme: {
343
- ...this.opts.theme || {},
344
- colorScheme: ((a = this.opts.theme) == null ? void 0 : a.colorScheme) || getComputedStyle(document.documentElement).colorScheme || "",
345
- safeInsetBottom: this.getSafeInsetBottom()
346
- },
347
- didProvideLocalStorage: !!this.opts.localStorageProvider,
348
- debug: this.opts.debug,
349
- popupsBlocked: this.opts.popupsBlocked,
350
- gasRefuelAmountPerChain: this.opts.gasRefuelAmountPerChain,
351
- sdkVersion: Ue,
352
- referrerDomain: typeof window < "u" ? window.location.origin : void 0
353
- },
354
- new URL(this.baseUrl).origin
355
- );
356
- break;
357
- }
358
- case "didOpen": {
359
- this.iframe.style.opacity = "1", (r = (p = this.opts).onOpen) == null || r.call(p);
360
- break;
361
- }
362
- case "localStorage.getKeys": {
363
- if (!this.opts.localStorageProvider)
364
- throw new Error("localStorageProvider is not set");
365
- const b = await this.opts.localStorageProvider.getKeys();
366
- (l = (h = this.iframe) == null ? void 0 : h.contentWindow) == null || l.postMessage(
367
- {
368
- type: "localStorage.didGetKeys",
369
- keys: b
370
- },
371
- this.baseUrl
372
- );
373
- break;
374
- }
375
- case "localStorage.setItem":
376
- if (!this.opts.localStorageProvider)
377
- throw new Error("localStorageProvider is not set");
378
- await this.opts.localStorageProvider.setItem(
379
- e.key,
380
- e.value
381
- );
382
- break;
383
- case "localStorage.removeItem":
384
- if (!this.opts.localStorageProvider)
385
- throw new Error("localStorageProvider is not set");
386
- await this.opts.localStorageProvider.removeItem(e.key);
387
- break;
388
- case "localStorage.getItem": {
389
- if (!this.opts.localStorageProvider)
390
- throw new Error("localStorageProvider is not set");
391
- const b = await this.opts.localStorageProvider.getItem(e.key);
392
- (u = (m = this.iframe) == null ? void 0 : m.contentWindow) == null || u.postMessage(
393
- {
394
- type: "localStorage.didGetItem",
395
- key: e.key,
396
- value: b
397
- },
398
- this.baseUrl
399
- );
400
- break;
401
- }
402
- case "success":
403
- ($ = (g = this.opts) == null ? void 0 : g.onSuccess) == null || $.call(g, e.hash, e.session);
404
- break;
405
- case "close":
406
- this.removeIframe(), this.destroy(), (I = (y = this.opts) == null ? void 0 : y.onClose) == null || I.call(y);
407
- break;
408
- case "setMode":
409
- (x = (w = this.opts) == null ? void 0 : w.onSetMode) == null || x.call(w, e.mode);
410
- break;
411
- case "switchChain":
412
- if (!this.opts.walletProvider)
413
- throw new Error("walletProvider is not set");
414
- try {
415
- await this.opts.walletProvider.switchChainAsync({
416
- chainId: e.chainId
417
- }), (S = (v = this.iframe) == null ? void 0 : v.contentWindow) == null || S.postMessage(
418
- {
419
- type: "didSwitchChain",
420
- success: !0,
421
- chainId: e.chainId
422
- },
423
- this.baseUrl
424
- );
425
- } catch (b) {
426
- (k = (E = this.iframe) == null ? void 0 : E.contentWindow) == null || k.postMessage(
427
- {
428
- type: "didSwitchChain",
429
- success: !1,
430
- error: b
431
- },
432
- this.baseUrl
433
- );
434
- }
435
- break;
436
- case "sendTransaction":
437
- {
438
- if (!this.opts.walletProvider)
439
- throw new Error("walletProvider is not set");
440
- try {
441
- const b = await this.opts.walletProvider.sendTransactionAsync(
442
- e.tx
443
- );
444
- (M = (U = this.iframe) == null ? void 0 : U.contentWindow) == null || M.postMessage(
445
- {
446
- type: "didSendTransaction",
447
- success: !0,
448
- txHash: b
449
- },
450
- this.baseUrl
451
- );
452
- } catch (b) {
453
- (P = (C = this.iframe) == null ? void 0 : C.contentWindow) == null || P.postMessage(
454
- {
455
- type: "didSendTransaction",
456
- success: !1,
457
- error: b
458
- },
459
- this.baseUrl
460
- );
461
- }
462
- }
463
- break;
464
- case "signTypedData":
465
- {
466
- if (!this.opts.walletProvider)
467
- throw new Error("walletProvider is not set");
468
- if (!this.opts.walletProvider.signTypedDataAsync) {
469
- (j = (z = this.iframe) == null ? void 0 : z.contentWindow) == null || j.postMessage(
470
- {
471
- type: "didSignTypedData",
472
- success: !1,
473
- error: "signTypedDataAsync_not_implemented"
474
- },
475
- this.baseUrl
476
- );
477
- return;
478
- }
479
- try {
480
- const b = await this.opts.walletProvider.signTypedDataAsync(
481
- e.data
482
- );
483
- (R = (T = this.iframe) == null ? void 0 : T.contentWindow) == null || R.postMessage(
484
- {
485
- type: "didSignTypedData",
486
- success: !0,
487
- signature: b
488
- },
489
- this.baseUrl
490
- );
491
- } catch (b) {
492
- (D = (B = this.iframe) == null ? void 0 : B.contentWindow) == null || D.postMessage(
493
- {
494
- type: "didSignTypedData",
495
- success: !1,
496
- error: b
497
- },
498
- this.baseUrl
499
- );
500
- }
501
- }
502
- break;
503
- }
504
- });
505
- this.opts = t;
506
- }
507
- get externalUrl() {
508
- var t, e, i, o, n, c, d, a, f;
509
- return `${this.baseUrl}${this.opts.app}?${this.opts.recipient ? `&recipient=${this.opts.recipient}` : ""}${this.opts.preferGaslessPayment ? "&preferGaslessPayment=true" : ""}${this.opts.mode ? `&mode=${this.opts.mode}` : ""}${this.opts.amount ? `&amount=${this.opts.amount}` : ""}${this.opts.chainId ? `&chainId=${this.opts.chainId}` : ""}${this.opts.currencyId ? `&currencyId=${this.opts.currencyId}` : ""}${this.opts.evm ? `&evm.chainId=${this.opts.evm.chainId}&evm.to=${this.opts.evm.to}&evm.data=${this.opts.evm.data || "0x0"}&evm.value=${ce(
510
- this.opts.evm.value || 0n
511
- )}` : ""}${this.opts.approval ? `&approval.token=${this.opts.approval.token}&approval.amount=${this.opts.approval.amount}` : ""}${this.opts.sessionMetadata ? `&metadata=${this.opts.sessionMetadata}` : ""}${this.opts.autoCloseOnSuccess ? "&autoCloseOnSuccess=true" : ""}${this.opts.sessionId ? `&sessionId=${this.opts.sessionId}` : ""}${(t = this.opts.chainIds) != null && t.length ? `&chainIds=${this.opts.chainIds.join(",")}` : ""}${(e = this.opts.excludeChainIds) != null && e.length ? `&excludeChainIds=${this.opts.excludeChainIds.join(",")}` : ""}${(i = this.opts.excludeCurrencyTiers) != null && i.length ? `&excludeCurrencyTiers=${this.opts.excludeCurrencyTiers.join(",")}` : ""}${(o = this.opts.excludeFundingSources) != null && o.length ? `&excludeFundingSources=${this.opts.excludeFundingSources.join(",")}` : ""}${(n = this.opts.fundingSources) != null && n.length ? `&fundingSources=${this.opts.fundingSources.join(",")}` : ""}${(c = this.opts.allowedPaymentCurrencies) != null && c.length ? `&allowedPaymentCurrencies=${this.opts.allowedPaymentCurrencies.join(",")}` : ""}${(d = this.opts.appMetadata) != null && d.name ? `&appMetadata.name=${encodeURIComponent(this.opts.appMetadata.name)}` : ""}${(a = this.opts.appMetadata) != null && a.logoUrl ? `&appMetadata.logoUrl=${encodeURIComponent(this.opts.appMetadata.logoUrl)}` : ""}${(f = this.opts.appMetadata) != null && f.faviconUrl ? `&appMetadata.faviconUrl=${encodeURIComponent(this.opts.appMetadata.faviconUrl)}` : ""}${this.opts.enableRefundEmails ? "&enableRefundEmails=true" : ""}${this.opts.payerEmail ? `&payerEmail=${encodeURIComponent(this.opts.payerEmail)}` : ""}${this.opts.debug ? "&debug=true" : ""}${this.opts.popupsBlocked ? "&popupsBlocked=true" : ""}${this.opts.disableWithdrawToSelfSuggestion ? "&disableWithdrawToSelfSuggestion=true" : ""}${this.opts.hideSettlementCopy ? "&hideSettlementCopy=true" : ""}${this.opts.showAppLogo ? `&showAppLogo=${this.opts.showAppLogo}` : ""}${this.opts.showOnrampFirst ? "&showOnrampFirst=true" : ""}${this.opts.debitCardAlias ? `&debitCardAlias=${this.opts.debitCardAlias}` : ""}${this.opts.copyOverrides ? `&copyOverrides=${encodeURIComponent(JSON.stringify(this.opts.copyOverrides))}` : ""}${this.opts.stableDepositAddressKey ? `&stableDepositAddressKey=${encodeURIComponent(this.opts.stableDepositAddressKey)}` : ""}${this.opts.gasRefuelAmountPerChain ? `&gasRefuelAmountPerChain=${encodeURIComponent(JSON.stringify(this.opts.gasRefuelAmountPerChain))}` : ""}`;
512
- }
513
- initialize() {
514
- window.addEventListener("message", this.iframeEventHandler);
515
- const t = new URL(this.baseUrl).origin;
516
- ge(t);
517
- }
518
- destroy() {
519
- window.removeEventListener("message", this.iframeEventHandler);
520
- }
521
- get baseUrl() {
522
- return this.opts.baseUrl || "https://deposit.paywithglide.xyz/";
523
- }
524
- get iframe() {
525
- return document.getElementById("glide-deposit-iframe");
526
- }
527
- getSafeInsetBottom() {
528
- if (typeof window > "u" || typeof document > "u")
529
- return 0;
530
- try {
531
- const t = document.createElement("div");
532
- t.style.cssText = "position: fixed; bottom: 0; left: 0; width: 1px; height: 1px; padding: 0; margin: 0; padding-bottom: env(safe-area-inset-bottom, 0px); visibility: hidden; pointer-events: none; z-index: -1;", document.body.appendChild(t);
533
- const e = window.getComputedStyle(t).paddingBottom;
534
- return document.body.removeChild(t), parseFloat(e) || 0;
535
- } catch {
536
- return 0;
537
- }
538
- }
539
- openUrl(t) {
540
- this.createIframe(t);
541
- }
542
- createIframe(t) {
543
- this.removeIframe();
544
- const e = document.createElement("iframe");
545
- e.id = "glide-deposit-iframe";
546
- const i = this.opts.container, o = i ? `z-index: ${K}; display: block; background-color: transparent; border: 0px none transparent; overflow-x: hidden; overflow-y: auto; visibility: visible; margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; position: relative; width: 100%; height: 100%; opacity: 0;` : `z-index: ${K}; display: block; background-color: transparent; border: 0px none transparent; overflow-x: hidden; overflow-y: auto; visibility: visible; margin: 0px; padding: 0px; -webkit-tap-highlight-color: transparent; position: fixed; left: 0px; top: 0px; width: 100%; height: 100%; opacity: 0;`;
547
- e.setAttribute("style", o), e.src = t, e.allow = "payment *; clipboard-write *", i ? i.appendChild(e) : document.body.appendChild(e);
548
- }
549
- removeIframe() {
550
- const t = document.getElementById("glide-deposit-iframe");
551
- t && (t.remove(), document.body.classList.remove("glide-deposit-open"));
552
- }
553
- }
554
- const De = ({
555
- app: s,
556
- recipient: t,
557
- chainId: e,
558
- currencyId: i,
559
- amount: o,
560
- gasRefuelAmountPerChain: n,
561
- preferGaslessPayment: c,
562
- chainIds: d,
563
- excludeChainIds: a,
564
- excludeCurrencyTiers: f,
565
- excludeFundingSources: p,
566
- fundingSources: r,
567
- appMetadata: h,
568
- enableRefundEmails: l,
569
- payerEmail: m,
570
- mode: u,
571
- hideSettlementCopy: g,
572
- showAppLogo: $,
573
- showOnrampFirst: y,
574
- debitCardAlias: I,
575
- copyOverrides: w,
576
- stableDepositAddressKey: x,
577
- sessionId: v,
578
- sessionMetadata: S,
579
- disableWithdrawToSelfSuggestion: E,
580
- theme: k,
581
- walletProvider: U,
582
- localStorageProvider: M,
583
- onOpen: C,
584
- onSuccess: P,
585
- onClose: z,
586
- autoCloseOnSuccess: j,
587
- popupsBlocked: T,
588
- baseUrl: R,
589
- debug: B
1
+ import { GlideDeposit as w } from "./core.js";
2
+ import { GlideAnalytics as r, browserLocalStorageProvider as u, glideAnalytics as o, initializeParentBridge as c } from "./core.js";
3
+ import { useMemo as P } from "react";
4
+ const C = ({
5
+ app: G,
6
+ recipient: U,
7
+ chainId: z,
8
+ currencyId: j,
9
+ amount: q,
10
+ gasRefuelAmountPerChain: B,
11
+ preferGaslessPayment: H,
12
+ chainIds: J,
13
+ excludeChainIds: N,
14
+ excludeCurrencyTiers: Q,
15
+ excludeFundingSources: V,
16
+ fundingSources: X,
17
+ appMetadata: Y,
18
+ enableRefundEmails: Z,
19
+ payerEmail: _,
20
+ mode: $,
21
+ hideSettlementCopy: K,
22
+ showAppLogo: W,
23
+ showOnrampFirst: x,
24
+ debitCardAlias: k,
25
+ copyOverrides: L,
26
+ stableDepositAddressKey: R,
27
+ sessionId: D,
28
+ sessionMetadata: E,
29
+ disableWithdrawToSelfSuggestion: T,
30
+ theme: f,
31
+ walletProvider: t,
32
+ localStorageProvider: A,
33
+ onOpen: F,
34
+ onSuccess: M,
35
+ onClose: b,
36
+ autoCloseOnSuccess: g,
37
+ popupsBlocked: v,
38
+ baseUrl: I,
39
+ debug: m
590
40
  }) => {
591
- const D = G(() => new O({
592
- app: s,
593
- recipient: t,
594
- chainId: e,
595
- currencyId: i,
596
- amount: o,
597
- gasRefuelAmountPerChain: n,
598
- preferGaslessPayment: c,
599
- chainIds: d,
600
- excludeChainIds: a,
601
- excludeCurrencyTiers: f,
602
- excludeFundingSources: p,
603
- fundingSources: r,
604
- appMetadata: h,
605
- enableRefundEmails: l,
606
- payerEmail: m,
607
- mode: u,
608
- hideSettlementCopy: g,
609
- showAppLogo: $,
610
- showOnrampFirst: y,
611
- debitCardAlias: I,
612
- copyOverrides: w,
613
- stableDepositAddressKey: x,
614
- sessionId: v,
615
- sessionMetadata: S,
616
- disableWithdrawToSelfSuggestion: E,
617
- theme: k,
618
- walletProvider: U,
619
- localStorageProvider: M,
620
- onOpen: C,
621
- onSuccess: P,
622
- onClose: z,
623
- autoCloseOnSuccess: j,
624
- popupsBlocked: T,
625
- baseUrl: R,
626
- debug: B
41
+ const y = P(() => new w({
42
+ app: G,
43
+ recipient: U,
44
+ chainId: z,
45
+ currencyId: j,
46
+ amount: q,
47
+ gasRefuelAmountPerChain: B,
48
+ preferGaslessPayment: H,
49
+ chainIds: J,
50
+ excludeChainIds: N,
51
+ excludeCurrencyTiers: Q,
52
+ excludeFundingSources: V,
53
+ fundingSources: X,
54
+ appMetadata: Y,
55
+ enableRefundEmails: Z,
56
+ payerEmail: _,
57
+ mode: $,
58
+ hideSettlementCopy: K,
59
+ showAppLogo: W,
60
+ showOnrampFirst: x,
61
+ debitCardAlias: k,
62
+ copyOverrides: L,
63
+ stableDepositAddressKey: R,
64
+ sessionId: D,
65
+ sessionMetadata: E,
66
+ disableWithdrawToSelfSuggestion: T,
67
+ theme: f,
68
+ walletProvider: t,
69
+ localStorageProvider: A,
70
+ onOpen: F,
71
+ onSuccess: M,
72
+ onClose: b,
73
+ autoCloseOnSuccess: g,
74
+ popupsBlocked: v,
75
+ baseUrl: I,
76
+ debug: m
627
77
  }), [
628
- s,
629
- t,
630
- e,
631
- i,
632
- o,
633
- n,
634
- c,
635
- d,
636
- a,
637
- f,
638
- p,
639
- r,
640
- h,
641
- l,
642
- m,
643
- u,
644
- g,
645
- $,
646
- y,
647
- I,
648
- w,
649
- x,
650
- v,
651
- S,
652
- E,
653
- k,
78
+ G,
654
79
  U,
655
- M,
656
- C,
657
- P,
658
80
  z,
659
81
  j,
660
- T,
82
+ q,
83
+ B,
84
+ H,
85
+ J,
86
+ N,
87
+ Q,
88
+ V,
89
+ X,
90
+ Y,
91
+ Z,
92
+ _,
93
+ $,
94
+ K,
95
+ W,
96
+ x,
97
+ k,
98
+ L,
661
99
  R,
662
- B
100
+ D,
101
+ E,
102
+ T,
103
+ f,
104
+ t,
105
+ A,
106
+ F,
107
+ M,
108
+ b,
109
+ g,
110
+ v,
111
+ I,
112
+ m
663
113
  ]);
664
114
  return {
665
- openGlideDeposit: D.open,
666
- externalUrl: D.externalUrl,
667
- opts: D.opts
115
+ openGlideDeposit: y.open,
116
+ externalUrl: y.externalUrl,
117
+ opts: y.opts
668
118
  };
669
- }, Ae = ({
670
- app: s,
671
- preferGaslessPayment: t,
672
- chainIds: e,
673
- excludeChainIds: i,
674
- excludeCurrencyTiers: o,
675
- excludeFundingSources: n,
676
- fundingSources: c,
677
- allowedPaymentCurrencies: d,
678
- appMetadata: a,
679
- enableRefundEmails: f,
680
- payerEmail: p,
681
- hideSettlementCopy: r,
682
- showAppLogo: h,
683
- showOnrampFirst: l,
684
- debitCardAlias: m,
685
- copyOverrides: u,
686
- amount: g,
687
- sessionId: $,
688
- sessionMetadata: y,
689
- theme: I,
690
- walletProvider: w,
691
- localStorageProvider: x,
692
- onOpen: v,
693
- onSuccess: S,
694
- onClose: E,
695
- autoCloseOnSuccess: k,
696
- popupsBlocked: U,
697
- baseUrl: M,
698
- debug: C
119
+ }, l = ({
120
+ app: G,
121
+ preferGaslessPayment: U,
122
+ chainIds: z,
123
+ excludeChainIds: j,
124
+ excludeCurrencyTiers: q,
125
+ excludeFundingSources: B,
126
+ fundingSources: H,
127
+ allowedPaymentCurrencies: J,
128
+ appMetadata: N,
129
+ enableRefundEmails: Q,
130
+ payerEmail: V,
131
+ hideSettlementCopy: X,
132
+ showAppLogo: Y,
133
+ showOnrampFirst: Z,
134
+ debitCardAlias: _,
135
+ copyOverrides: $,
136
+ amount: K,
137
+ sessionId: W,
138
+ sessionMetadata: x,
139
+ theme: k,
140
+ walletProvider: L,
141
+ localStorageProvider: R,
142
+ onOpen: D,
143
+ onSuccess: E,
144
+ onClose: T,
145
+ autoCloseOnSuccess: f,
146
+ popupsBlocked: t,
147
+ baseUrl: A,
148
+ debug: F
699
149
  }) => {
700
- const P = G(() => new O({
701
- app: s,
702
- preferGaslessPayment: t,
703
- chainIds: e,
704
- excludeChainIds: i,
705
- excludeCurrencyTiers: o,
706
- excludeFundingSources: n,
707
- fundingSources: c,
708
- allowedPaymentCurrencies: d,
709
- appMetadata: a,
710
- enableRefundEmails: f,
711
- payerEmail: p,
150
+ const M = P(() => new w({
151
+ app: G,
152
+ preferGaslessPayment: U,
153
+ chainIds: z,
154
+ excludeChainIds: j,
155
+ excludeCurrencyTiers: q,
156
+ excludeFundingSources: B,
157
+ fundingSources: H,
158
+ allowedPaymentCurrencies: J,
159
+ appMetadata: N,
160
+ enableRefundEmails: Q,
161
+ payerEmail: V,
712
162
  mode: "pay",
713
- hideSettlementCopy: r,
714
- showAppLogo: h,
715
- showOnrampFirst: l,
716
- debitCardAlias: m,
717
- copyOverrides: u,
718
- sessionId: $,
719
- amount: g,
720
- sessionMetadata: y,
721
- theme: I,
722
- walletProvider: w,
723
- localStorageProvider: x,
724
- onOpen: v,
725
- onSuccess: S,
726
- onClose: E,
727
- autoCloseOnSuccess: k,
728
- popupsBlocked: U,
729
- baseUrl: M,
730
- debug: C
163
+ hideSettlementCopy: X,
164
+ showAppLogo: Y,
165
+ showOnrampFirst: Z,
166
+ debitCardAlias: _,
167
+ copyOverrides: $,
168
+ sessionId: W,
169
+ amount: K,
170
+ sessionMetadata: x,
171
+ theme: k,
172
+ walletProvider: L,
173
+ localStorageProvider: R,
174
+ onOpen: D,
175
+ onSuccess: E,
176
+ onClose: T,
177
+ autoCloseOnSuccess: f,
178
+ popupsBlocked: t,
179
+ baseUrl: A,
180
+ debug: F
731
181
  }), [
732
- s,
733
- t,
734
- e,
735
- i,
736
- o,
737
- n,
738
- c,
739
- d,
740
- a,
741
- f,
742
- p,
743
- r,
744
- h,
745
- l,
746
- m,
747
- u,
182
+ G,
183
+ U,
184
+ z,
185
+ j,
186
+ q,
187
+ B,
188
+ H,
189
+ J,
190
+ N,
191
+ Q,
192
+ V,
193
+ X,
194
+ Y,
195
+ Z,
196
+ _,
748
197
  $,
749
- g,
750
- y,
751
- I,
752
- w,
198
+ W,
199
+ K,
753
200
  x,
754
- v,
755
- S,
756
- E,
757
201
  k,
758
- U,
759
- M,
760
- C
202
+ L,
203
+ R,
204
+ D,
205
+ E,
206
+ T,
207
+ f,
208
+ t,
209
+ A,
210
+ F
761
211
  ]);
762
212
  return {
763
- openGlidePay: P.open,
764
- externalUrl: P.externalUrl,
765
- opts: P.opts
213
+ openGlidePay: M.open,
214
+ externalUrl: M.externalUrl,
215
+ opts: M.opts
766
216
  };
767
- }, ze = ({
768
- app: s,
769
- evm: t,
770
- approval: e,
771
- preferGaslessPayment: i,
772
- chainIds: o,
773
- excludeChainIds: n,
774
- excludeCurrencyTiers: c,
775
- excludeFundingSources: d,
776
- sessionMetadata: a,
777
- showAppLogo: f,
778
- showOnrampFirst: p,
779
- debitCardAlias: r,
780
- copyOverrides: h,
781
- theme: l,
782
- walletProvider: m,
783
- localStorageProvider: u,
784
- onOpen: g,
785
- onSuccess: $,
786
- onClose: y,
787
- autoCloseOnSuccess: I,
788
- popupsBlocked: w,
789
- baseUrl: x,
790
- debug: v
217
+ }, h = ({
218
+ app: G,
219
+ evm: U,
220
+ approval: z,
221
+ preferGaslessPayment: j,
222
+ chainIds: q,
223
+ excludeChainIds: B,
224
+ excludeCurrencyTiers: H,
225
+ excludeFundingSources: J,
226
+ sessionMetadata: N,
227
+ showAppLogo: Q,
228
+ showOnrampFirst: V,
229
+ debitCardAlias: X,
230
+ copyOverrides: Y,
231
+ theme: Z,
232
+ walletProvider: _,
233
+ localStorageProvider: $,
234
+ onOpen: K,
235
+ onSuccess: W,
236
+ onClose: x,
237
+ autoCloseOnSuccess: k,
238
+ popupsBlocked: L,
239
+ baseUrl: R,
240
+ debug: D
791
241
  }) => {
792
- const S = G(() => new O({
793
- app: s,
794
- evm: t,
795
- approval: e,
796
- preferGaslessPayment: i,
797
- chainIds: o,
798
- excludeChainIds: n,
799
- excludeCurrencyTiers: c,
800
- excludeFundingSources: d,
801
- sessionMetadata: a,
802
- showAppLogo: f,
803
- showOnrampFirst: p,
804
- debitCardAlias: r,
805
- copyOverrides: h,
242
+ const E = P(() => new w({
243
+ app: G,
244
+ evm: U,
245
+ approval: z,
246
+ preferGaslessPayment: j,
247
+ chainIds: q,
248
+ excludeChainIds: B,
249
+ excludeCurrencyTiers: H,
250
+ excludeFundingSources: J,
251
+ sessionMetadata: N,
252
+ showAppLogo: Q,
253
+ showOnrampFirst: V,
254
+ debitCardAlias: X,
255
+ copyOverrides: Y,
806
256
  mode: "call",
807
- theme: l,
808
- walletProvider: m,
809
- localStorageProvider: u,
810
- onOpen: g,
811
- onSuccess: $,
812
- onClose: y,
813
- autoCloseOnSuccess: I,
814
- popupsBlocked: w,
815
- baseUrl: x,
816
- debug: v
257
+ theme: Z,
258
+ walletProvider: _,
259
+ localStorageProvider: $,
260
+ onOpen: K,
261
+ onSuccess: W,
262
+ onClose: x,
263
+ autoCloseOnSuccess: k,
264
+ popupsBlocked: L,
265
+ baseUrl: R,
266
+ debug: D
817
267
  }), [
818
- s,
819
- t,
820
- e,
821
- i,
822
- o,
823
- n,
824
- c,
825
- d,
826
- a,
827
- f,
828
- p,
829
- r,
830
- h,
831
- l,
832
- m,
833
- u,
834
- g,
268
+ G,
269
+ U,
270
+ z,
271
+ j,
272
+ q,
273
+ B,
274
+ H,
275
+ J,
276
+ N,
277
+ Q,
278
+ V,
279
+ X,
280
+ Y,
281
+ Z,
282
+ _,
835
283
  $,
836
- y,
837
- I,
838
- w,
284
+ K,
285
+ W,
839
286
  x,
840
- v
287
+ k,
288
+ L,
289
+ R,
290
+ D
841
291
  ]);
842
292
  return {
843
- openGlideCall: S.open,
844
- externalUrl: S.externalUrl,
845
- opts: S.opts
293
+ openGlideCall: E.open,
294
+ externalUrl: E.externalUrl,
295
+ opts: E.opts
846
296
  };
847
- }, je = ({
848
- app: s,
849
- recipient: t,
850
- chainId: e,
851
- currencyId: i,
852
- preferGaslessPayment: o,
853
- chainIds: n,
854
- excludeChainIds: c,
855
- excludeCurrencyTiers: d,
856
- excludeFundingSources: a,
857
- sessionMetadata: f,
858
- showAppLogo: p,
859
- showOnrampFirst: r,
860
- debitCardAlias: h,
861
- copyOverrides: l,
862
- theme: m,
863
- walletProvider: u,
864
- localStorageProvider: g,
865
- onOpen: $,
866
- onSuccess: y,
867
- onClose: I,
868
- autoCloseOnSuccess: w,
869
- baseUrl: x
297
+ }, p = ({
298
+ app: G,
299
+ recipient: U,
300
+ chainId: z,
301
+ currencyId: j,
302
+ preferGaslessPayment: q,
303
+ chainIds: B,
304
+ excludeChainIds: H,
305
+ excludeCurrencyTiers: J,
306
+ excludeFundingSources: N,
307
+ sessionMetadata: Q,
308
+ showAppLogo: V,
309
+ showOnrampFirst: X,
310
+ debitCardAlias: Y,
311
+ copyOverrides: Z,
312
+ theme: _,
313
+ walletProvider: $,
314
+ localStorageProvider: K,
315
+ onOpen: W,
316
+ onSuccess: x,
317
+ onClose: k,
318
+ autoCloseOnSuccess: L,
319
+ baseUrl: R
870
320
  }) => {
871
- const v = G(() => new O({
872
- app: s,
873
- recipient: t,
874
- chainId: e,
875
- currencyId: i,
876
- preferGaslessPayment: o,
877
- chainIds: n,
878
- excludeChainIds: c,
879
- excludeCurrencyTiers: d,
880
- excludeFundingSources: a,
881
- sessionMetadata: f,
882
- showAppLogo: p,
883
- showOnrampFirst: r,
884
- debitCardAlias: h,
885
- copyOverrides: l,
321
+ const D = P(() => new w({
322
+ app: G,
323
+ recipient: U,
324
+ chainId: z,
325
+ currencyId: j,
326
+ preferGaslessPayment: q,
327
+ chainIds: B,
328
+ excludeChainIds: H,
329
+ excludeCurrencyTiers: J,
330
+ excludeFundingSources: N,
331
+ sessionMetadata: Q,
332
+ showAppLogo: V,
333
+ showOnrampFirst: X,
334
+ debitCardAlias: Y,
335
+ copyOverrides: Z,
886
336
  mode: "buy",
887
- theme: m,
888
- walletProvider: u,
889
- localStorageProvider: g,
890
- onOpen: $,
891
- onSuccess: y,
892
- onClose: I,
893
- autoCloseOnSuccess: w,
894
- baseUrl: x
337
+ theme: _,
338
+ walletProvider: $,
339
+ localStorageProvider: K,
340
+ onOpen: W,
341
+ onSuccess: x,
342
+ onClose: k,
343
+ autoCloseOnSuccess: L,
344
+ baseUrl: R
895
345
  }), [
896
- s,
897
- t,
898
- e,
899
- i,
900
- o,
901
- n,
902
- c,
903
- d,
904
- a,
905
- f,
906
- p,
907
- r,
908
- h,
909
- l,
910
- m,
911
- u,
912
- g,
346
+ G,
347
+ U,
348
+ z,
349
+ j,
350
+ q,
351
+ B,
352
+ H,
353
+ J,
354
+ N,
355
+ Q,
356
+ V,
357
+ X,
358
+ Y,
359
+ Z,
360
+ _,
913
361
  $,
914
- y,
915
- I,
916
- w,
917
- x
362
+ K,
363
+ W,
364
+ x,
365
+ k,
366
+ L,
367
+ R
918
368
  ]);
919
369
  return {
920
- openGlideBuy: v.open,
921
- externalUrl: v.externalUrl,
922
- opts: v.opts
370
+ openGlideBuy: D.open,
371
+ externalUrl: D.externalUrl,
372
+ opts: D.opts
923
373
  };
924
- }, Te = Object.freeze({
925
- getItem: (s) => new Promise((t, e) => {
926
- try {
927
- const i = localStorage.getItem(s);
928
- t(i);
929
- } catch (i) {
930
- e(i);
931
- }
932
- }),
933
- setItem: (s, t) => new Promise((e, i) => {
934
- try {
935
- localStorage.setItem(s, t), e();
936
- } catch (o) {
937
- i(o);
938
- }
939
- }),
940
- removeItem: (s) => new Promise((t, e) => {
941
- try {
942
- localStorage.removeItem(s), t();
943
- } catch (i) {
944
- e(i);
945
- }
946
- }),
947
- getKeys: () => new Promise((s, t) => {
948
- try {
949
- const e = Object.keys(localStorage);
950
- s(e);
951
- } catch (e) {
952
- t(e);
953
- }
954
- })
955
- });
374
+ };
956
375
  export {
957
- O as GlideDeposit,
958
- Te as browserLocalStorageProvider,
959
- ge as initializeParentBridge,
960
- je as useGlideBuy,
961
- ze as useGlideCall,
962
- De as useGlideDeposit,
963
- Ae as useGlidePay
376
+ r as GlideAnalytics,
377
+ w as GlideDeposit,
378
+ u as browserLocalStorageProvider,
379
+ o as glideAnalytics,
380
+ c as initializeParentBridge,
381
+ p as useGlideBuy,
382
+ h as useGlideCall,
383
+ C as useGlideDeposit,
384
+ l as useGlidePay
964
385
  };