@revenuecat/purchases-js 0.1.2 → 0.2.0
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/Purchases.es.d.ts +4 -0
- package/dist/Purchases.es.js +721 -709
- package/dist/Purchases.umd.js +4 -4
- package/package.json +16 -1
package/dist/Purchases.es.js
CHANGED
|
@@ -1,26 +1,133 @@
|
|
|
1
1
|
var Ot = Object.defineProperty;
|
|
2
2
|
var Lt = (t, e, r) => e in t ? Ot(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
-
var
|
|
3
|
+
var Q = (t, e, r) => (Lt(t, typeof e != "symbol" ? e + "" : e, r), r);
|
|
4
4
|
function xt(t) {
|
|
5
5
|
return t != null;
|
|
6
6
|
}
|
|
7
|
-
var
|
|
8
|
-
|
|
7
|
+
var j = /* @__PURE__ */ ((t) => (t[t.Silent = 0] = "Silent", t[t.Error = 1] = "Error", t[t.Warn = 2] = "Warn", t[t.Info = 3] = "Info", t[t.Debug = 4] = "Debug", t[t.Verbose = 5] = "Verbose", t))(j || {});
|
|
8
|
+
class V {
|
|
9
|
+
static setLogLevel(e) {
|
|
10
|
+
this.logLevel = e;
|
|
11
|
+
}
|
|
12
|
+
static log(e, r = this.logLevel) {
|
|
13
|
+
const n = `[Purchases] ${e}`;
|
|
14
|
+
if (!(this.logLevel < r || r === j.Silent))
|
|
15
|
+
switch (r) {
|
|
16
|
+
case j.Error:
|
|
17
|
+
console.error(n);
|
|
18
|
+
break;
|
|
19
|
+
case j.Warn:
|
|
20
|
+
console.warn(n);
|
|
21
|
+
break;
|
|
22
|
+
case j.Info:
|
|
23
|
+
console.info(n);
|
|
24
|
+
break;
|
|
25
|
+
case j.Debug:
|
|
26
|
+
console.debug(n);
|
|
27
|
+
break;
|
|
28
|
+
case j.Verbose:
|
|
29
|
+
console.debug(n);
|
|
30
|
+
break;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
static errorLog(e) {
|
|
34
|
+
this.log(e, j.Error);
|
|
35
|
+
}
|
|
36
|
+
static warnLog(e) {
|
|
37
|
+
this.log(e, j.Warn);
|
|
38
|
+
}
|
|
39
|
+
static infoLog(e) {
|
|
40
|
+
this.log(e, j.Info);
|
|
41
|
+
}
|
|
42
|
+
static debugLog(e) {
|
|
43
|
+
this.log(e, j.Debug);
|
|
44
|
+
}
|
|
45
|
+
static verboseLog(e) {
|
|
46
|
+
this.log(e, j.Verbose);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
Q(V, "logLevel", j.Silent);
|
|
50
|
+
var pe = /* @__PURE__ */ ((t) => (t.Year = "year", t.Month = "month", t.Week = "week", t.Day = "day", t))(pe || {});
|
|
51
|
+
function Ft(t) {
|
|
52
|
+
const e = t.match(/^PT?([0-9]+)([MDYW])$/);
|
|
53
|
+
if (!e || e.length < 3)
|
|
54
|
+
return V.errorLog(`Invalid ISO 8601 duration format: ${t}`), null;
|
|
55
|
+
const r = parseInt(e[1]);
|
|
56
|
+
switch (e[2]) {
|
|
57
|
+
case "Y":
|
|
58
|
+
return {
|
|
59
|
+
number: r,
|
|
60
|
+
unit: "year"
|
|
61
|
+
/* Year */
|
|
62
|
+
};
|
|
63
|
+
case "M":
|
|
64
|
+
return {
|
|
65
|
+
number: r,
|
|
66
|
+
unit: "month"
|
|
67
|
+
/* Month */
|
|
68
|
+
};
|
|
69
|
+
case "W":
|
|
70
|
+
return {
|
|
71
|
+
number: r,
|
|
72
|
+
unit: "week"
|
|
73
|
+
/* Week */
|
|
74
|
+
};
|
|
75
|
+
case "D":
|
|
76
|
+
return {
|
|
77
|
+
number: r,
|
|
78
|
+
unit: "day"
|
|
79
|
+
/* Day */
|
|
80
|
+
};
|
|
81
|
+
default:
|
|
82
|
+
return V.errorLog(`Invalid ISO 8601 unit duration format: ${t}`), null;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
const Ye = (t, e) => {
|
|
86
|
+
const r = t / 100;
|
|
87
|
+
return new Intl.NumberFormat("en-US", {
|
|
88
|
+
style: "currency",
|
|
89
|
+
currency: e
|
|
90
|
+
}).format(r);
|
|
91
|
+
}, Xe = (t) => {
|
|
92
|
+
const e = Ft(t);
|
|
93
|
+
if (!e)
|
|
94
|
+
return "unknown";
|
|
95
|
+
const r = e.number;
|
|
96
|
+
if (r === 1)
|
|
97
|
+
switch (e.unit) {
|
|
98
|
+
case pe.Year:
|
|
99
|
+
return "yearly";
|
|
100
|
+
case pe.Month:
|
|
101
|
+
return "monthly";
|
|
102
|
+
case pe.Week:
|
|
103
|
+
return "weekly";
|
|
104
|
+
case pe.Day:
|
|
105
|
+
return "daily";
|
|
106
|
+
}
|
|
107
|
+
else
|
|
108
|
+
return `every ${r} ${e.unit}s`;
|
|
109
|
+
};
|
|
110
|
+
var Gt = /* @__PURE__ */ ((t) => (t.Unknown = "unknown", t.Custom = "custom", t.Lifetime = "$rc_lifetime", t.Annual = "$rc_annual", t.SixMonth = "$rc_six_month", t.ThreeMonth = "$rc_three_month", t.TwoMonth = "$rc_two_month", t.Monthly = "$rc_monthly", t.Weekly = "$rc_weekly", t))(Gt || {});
|
|
111
|
+
const Yt = (t) => ({
|
|
112
|
+
amount: t.amount,
|
|
113
|
+
currency: t.currency,
|
|
114
|
+
formattedPrice: Ye(t.amount, t.currency)
|
|
115
|
+
}), Ht = (t, e) => ({
|
|
9
116
|
identifier: t.identifier,
|
|
10
117
|
displayName: t.title,
|
|
11
|
-
currentPrice: t.current_price,
|
|
118
|
+
currentPrice: Yt(t.current_price),
|
|
12
119
|
normalPeriodDuration: t.normal_period_duration,
|
|
13
120
|
presentedOfferingIdentifier: e
|
|
14
|
-
}),
|
|
121
|
+
}), Kt = (t, e, r) => {
|
|
15
122
|
const n = r[e.platform_product_identifier];
|
|
16
123
|
return n === void 0 ? null : {
|
|
17
124
|
identifier: e.identifier,
|
|
18
|
-
rcBillingProduct:
|
|
19
|
-
packageType:
|
|
125
|
+
rcBillingProduct: Ht(n, t),
|
|
126
|
+
packageType: qt(e.identifier)
|
|
20
127
|
};
|
|
21
|
-
},
|
|
128
|
+
}, Ze = (t, e) => {
|
|
22
129
|
const r = t.packages.map(
|
|
23
|
-
(i) =>
|
|
130
|
+
(i) => Kt(t.identifier, i, e)
|
|
24
131
|
).filter(xt), n = {};
|
|
25
132
|
for (const i of r)
|
|
26
133
|
i != null && (n[i.identifier] = i);
|
|
@@ -39,7 +146,7 @@ const Gt = (t, e) => ({
|
|
|
39
146
|
weekly: n.$rc_weekly ?? null
|
|
40
147
|
};
|
|
41
148
|
};
|
|
42
|
-
function
|
|
149
|
+
function qt(t) {
|
|
43
150
|
switch (t) {
|
|
44
151
|
case "$rc_lifetime":
|
|
45
152
|
return "$rc_lifetime";
|
|
@@ -59,9 +166,9 @@ function Ht(t) {
|
|
|
59
166
|
return t.startsWith("$rc_") ? "unknown" : "custom";
|
|
60
167
|
}
|
|
61
168
|
}
|
|
62
|
-
function
|
|
169
|
+
function y() {
|
|
63
170
|
}
|
|
64
|
-
function
|
|
171
|
+
function jt(t, e) {
|
|
65
172
|
for (const r in e)
|
|
66
173
|
t[r] = e[r];
|
|
67
174
|
return (
|
|
@@ -72,10 +179,10 @@ function Kt(t, e) {
|
|
|
72
179
|
function bt(t) {
|
|
73
180
|
return t();
|
|
74
181
|
}
|
|
75
|
-
function
|
|
182
|
+
function et() {
|
|
76
183
|
return /* @__PURE__ */ Object.create(null);
|
|
77
184
|
}
|
|
78
|
-
function
|
|
185
|
+
function ke(t) {
|
|
79
186
|
t.forEach(bt);
|
|
80
187
|
}
|
|
81
188
|
function ae(t) {
|
|
@@ -85,24 +192,24 @@ function P(t, e) {
|
|
|
85
192
|
return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
|
|
86
193
|
}
|
|
87
194
|
let Be;
|
|
88
|
-
function
|
|
195
|
+
function Z(t, e) {
|
|
89
196
|
return t === e ? !0 : (Be || (Be = document.createElement("a")), Be.href = e, t === Be.href);
|
|
90
197
|
}
|
|
91
|
-
function
|
|
198
|
+
function tt(t) {
|
|
92
199
|
return t.split(",").map((e) => e.trim().split(" ").filter(Boolean));
|
|
93
200
|
}
|
|
94
|
-
function
|
|
95
|
-
const r =
|
|
201
|
+
function Jt(t, e) {
|
|
202
|
+
const r = tt(t.srcset), n = tt(e || "");
|
|
96
203
|
return n.length === r.length && n.every(
|
|
97
204
|
([i, o], s) => o === r[s][1] && // We need to test both ways because Vite will create an a full URL with
|
|
98
205
|
// `new URL(asset, import.meta.url).href` for the client when `base: './'`, and the
|
|
99
206
|
// relative URLs inside srcset are not automatically resolved to absolute URLs by
|
|
100
207
|
// browsers (in contrast to img.src). This means both SSR and DOM code could
|
|
101
208
|
// contain relative or absolute URLs.
|
|
102
|
-
(
|
|
209
|
+
(Z(r[s][0], i) || Z(i, r[s][0]))
|
|
103
210
|
);
|
|
104
211
|
}
|
|
105
|
-
function
|
|
212
|
+
function Vt(t) {
|
|
106
213
|
return Object.keys(t).length === 0;
|
|
107
214
|
}
|
|
108
215
|
function Y(t, e, r, n) {
|
|
@@ -112,7 +219,7 @@ function Y(t, e, r, n) {
|
|
|
112
219
|
}
|
|
113
220
|
}
|
|
114
221
|
function wt(t, e, r, n) {
|
|
115
|
-
return t[1] && n ?
|
|
222
|
+
return t[1] && n ? jt(r.ctx.slice(), t[1](n(e))) : r.ctx;
|
|
116
223
|
}
|
|
117
224
|
function H(t, e, r, n) {
|
|
118
225
|
if (t[2] && n) {
|
|
@@ -144,20 +251,20 @@ function q(t) {
|
|
|
144
251
|
}
|
|
145
252
|
return -1;
|
|
146
253
|
}
|
|
147
|
-
function
|
|
254
|
+
function Ie(t) {
|
|
148
255
|
return t ?? "";
|
|
149
256
|
}
|
|
150
257
|
function D(t, e) {
|
|
151
258
|
t.appendChild(e);
|
|
152
259
|
}
|
|
153
260
|
function O(t, e, r) {
|
|
154
|
-
const n =
|
|
261
|
+
const n = Wt(t);
|
|
155
262
|
if (!n.getElementById(e)) {
|
|
156
263
|
const i = k("style");
|
|
157
|
-
i.id = e, i.textContent = r,
|
|
264
|
+
i.id = e, i.textContent = r, zt(n, i);
|
|
158
265
|
}
|
|
159
266
|
}
|
|
160
|
-
function
|
|
267
|
+
function Wt(t) {
|
|
161
268
|
if (!t)
|
|
162
269
|
return document;
|
|
163
270
|
const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
|
|
@@ -167,7 +274,7 @@ function Jt(t) {
|
|
|
167
274
|
e
|
|
168
275
|
) : t.ownerDocument;
|
|
169
276
|
}
|
|
170
|
-
function
|
|
277
|
+
function zt(t, e) {
|
|
171
278
|
return D(
|
|
172
279
|
/** @type {Document} */
|
|
173
280
|
t.head || t,
|
|
@@ -192,7 +299,7 @@ function T() {
|
|
|
192
299
|
function ee() {
|
|
193
300
|
return R("");
|
|
194
301
|
}
|
|
195
|
-
function
|
|
302
|
+
function $e(t, e, r, n) {
|
|
196
303
|
return t.addEventListener(e, r, n), () => t.removeEventListener(e, r, n);
|
|
197
304
|
}
|
|
198
305
|
function kt(t) {
|
|
@@ -203,55 +310,55 @@ function kt(t) {
|
|
|
203
310
|
function _(t, e, r) {
|
|
204
311
|
r == null ? t.removeAttribute(e) : t.getAttribute(e) !== r && t.setAttribute(e, r);
|
|
205
312
|
}
|
|
206
|
-
const
|
|
207
|
-
function
|
|
313
|
+
const Xt = ["width", "height"];
|
|
314
|
+
function Zt(t, e) {
|
|
208
315
|
const r = Object.getOwnPropertyDescriptors(t.__proto__);
|
|
209
316
|
for (const n in e)
|
|
210
|
-
e[n] == null ? t.removeAttribute(n) : n === "style" ? t.style.cssText = e[n] : n === "__value" ? t.value = t[n] = e[n] : r[n] && r[n].set &&
|
|
317
|
+
e[n] == null ? t.removeAttribute(n) : n === "style" ? t.style.cssText = e[n] : n === "__value" ? t.value = t[n] = e[n] : r[n] && r[n].set && Xt.indexOf(n) === -1 ? t[n] = e[n] : _(t, n, e[n]);
|
|
211
318
|
}
|
|
212
|
-
function
|
|
319
|
+
function en(t, e) {
|
|
213
320
|
Object.keys(e).forEach((r) => {
|
|
214
|
-
|
|
321
|
+
tn(t, r, e[r]);
|
|
215
322
|
});
|
|
216
323
|
}
|
|
217
|
-
function
|
|
324
|
+
function tn(t, e, r) {
|
|
218
325
|
const n = e.toLowerCase();
|
|
219
326
|
n in t ? t[n] = typeof t[n] == "boolean" && r === "" ? !0 : r : e in t ? t[e] = typeof t[e] == "boolean" && r === "" ? !0 : r : _(t, e, r);
|
|
220
327
|
}
|
|
221
|
-
function
|
|
222
|
-
return /-/.test(t) ?
|
|
328
|
+
function nn(t) {
|
|
329
|
+
return /-/.test(t) ? en : Zt;
|
|
223
330
|
}
|
|
224
|
-
function
|
|
331
|
+
function rn(t) {
|
|
225
332
|
return Array.from(t.childNodes);
|
|
226
333
|
}
|
|
227
|
-
function
|
|
334
|
+
function ne(t, e) {
|
|
228
335
|
e = "" + e, t.data !== e && (t.data = /** @type {string} */
|
|
229
336
|
e);
|
|
230
337
|
}
|
|
231
|
-
function
|
|
338
|
+
function nt(t, e) {
|
|
232
339
|
t.value = e ?? "";
|
|
233
340
|
}
|
|
234
|
-
function
|
|
341
|
+
function on(t, e, { bubbles: r = !1, cancelable: n = !1 } = {}) {
|
|
235
342
|
return new CustomEvent(t, { detail: e, bubbles: r, cancelable: n });
|
|
236
343
|
}
|
|
237
|
-
let
|
|
344
|
+
let be;
|
|
238
345
|
function he(t) {
|
|
239
|
-
|
|
346
|
+
be = t;
|
|
240
347
|
}
|
|
241
348
|
function Re() {
|
|
242
|
-
if (!
|
|
349
|
+
if (!be)
|
|
243
350
|
throw new Error("Function called outside component initialization");
|
|
244
|
-
return
|
|
351
|
+
return be;
|
|
245
352
|
}
|
|
246
353
|
function Se(t) {
|
|
247
354
|
Re().$$.on_mount.push(t);
|
|
248
355
|
}
|
|
249
|
-
function
|
|
356
|
+
function sn() {
|
|
250
357
|
const t = Re();
|
|
251
358
|
return (e, r, { cancelable: n = !1 } = {}) => {
|
|
252
359
|
const i = t.$$.callbacks[e];
|
|
253
360
|
if (i) {
|
|
254
|
-
const o =
|
|
361
|
+
const o = on(
|
|
255
362
|
/** @type {string} */
|
|
256
363
|
e,
|
|
257
364
|
r,
|
|
@@ -264,10 +371,10 @@ function rn() {
|
|
|
264
371
|
return !0;
|
|
265
372
|
};
|
|
266
373
|
}
|
|
267
|
-
function
|
|
374
|
+
function ln(t, e) {
|
|
268
375
|
return Re().$$.context.set(t, e), e;
|
|
269
376
|
}
|
|
270
|
-
function
|
|
377
|
+
function cn(t) {
|
|
271
378
|
return Re().$$.context.get(t);
|
|
272
379
|
}
|
|
273
380
|
function $t(t, e) {
|
|
@@ -276,28 +383,28 @@ function $t(t, e) {
|
|
|
276
383
|
}
|
|
277
384
|
const le = [], Ne = [];
|
|
278
385
|
let ce = [];
|
|
279
|
-
const
|
|
280
|
-
let
|
|
281
|
-
function
|
|
282
|
-
|
|
386
|
+
const He = [], an = /* @__PURE__ */ Promise.resolve();
|
|
387
|
+
let Ke = !1;
|
|
388
|
+
function un() {
|
|
389
|
+
Ke || (Ke = !0, an.then(vt));
|
|
283
390
|
}
|
|
284
|
-
function
|
|
391
|
+
function qe(t) {
|
|
285
392
|
ce.push(t);
|
|
286
393
|
}
|
|
287
|
-
function
|
|
288
|
-
|
|
394
|
+
function fn(t) {
|
|
395
|
+
He.push(t);
|
|
289
396
|
}
|
|
290
397
|
const xe = /* @__PURE__ */ new Set();
|
|
291
398
|
let oe = 0;
|
|
292
399
|
function vt() {
|
|
293
400
|
if (oe !== 0)
|
|
294
401
|
return;
|
|
295
|
-
const t =
|
|
402
|
+
const t = be;
|
|
296
403
|
do {
|
|
297
404
|
try {
|
|
298
405
|
for (; oe < le.length; ) {
|
|
299
406
|
const e = le[oe];
|
|
300
|
-
oe++, he(e),
|
|
407
|
+
oe++, he(e), dn(e.$$);
|
|
301
408
|
}
|
|
302
409
|
} catch (e) {
|
|
303
410
|
throw le.length = 0, oe = 0, e;
|
|
@@ -310,33 +417,33 @@ function vt() {
|
|
|
310
417
|
}
|
|
311
418
|
ce.length = 0;
|
|
312
419
|
} while (le.length);
|
|
313
|
-
for (;
|
|
314
|
-
|
|
315
|
-
|
|
420
|
+
for (; He.length; )
|
|
421
|
+
He.pop()();
|
|
422
|
+
Ke = !1, xe.clear(), he(t);
|
|
316
423
|
}
|
|
317
|
-
function
|
|
424
|
+
function dn(t) {
|
|
318
425
|
if (t.fragment !== null) {
|
|
319
|
-
t.update(),
|
|
426
|
+
t.update(), ke(t.before_update);
|
|
320
427
|
const e = t.dirty;
|
|
321
|
-
t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(
|
|
428
|
+
t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(qe);
|
|
322
429
|
}
|
|
323
430
|
}
|
|
324
|
-
function
|
|
431
|
+
function mn(t) {
|
|
325
432
|
const e = [], r = [];
|
|
326
433
|
ce.forEach((n) => t.indexOf(n) === -1 ? e.push(n) : r.push(n)), r.forEach((n) => n()), ce = e;
|
|
327
434
|
}
|
|
328
435
|
const Qe = /* @__PURE__ */ new Set();
|
|
329
|
-
let
|
|
436
|
+
let re;
|
|
330
437
|
function L() {
|
|
331
|
-
|
|
438
|
+
re = {
|
|
332
439
|
r: 0,
|
|
333
440
|
c: [],
|
|
334
|
-
p:
|
|
441
|
+
p: re
|
|
335
442
|
// parent group
|
|
336
443
|
};
|
|
337
444
|
}
|
|
338
445
|
function x() {
|
|
339
|
-
|
|
446
|
+
re.r || ke(re.c), re = re.p;
|
|
340
447
|
}
|
|
341
448
|
function u(t, e) {
|
|
342
449
|
t && t.i && (Qe.delete(t), t.i(e));
|
|
@@ -345,13 +452,13 @@ function m(t, e, r, n) {
|
|
|
345
452
|
if (t && t.o) {
|
|
346
453
|
if (Qe.has(t))
|
|
347
454
|
return;
|
|
348
|
-
Qe.add(t),
|
|
455
|
+
Qe.add(t), re.c.push(() => {
|
|
349
456
|
Qe.delete(t), n && (r && t.d(1), n());
|
|
350
457
|
}), t.o(e);
|
|
351
458
|
} else
|
|
352
459
|
n && n();
|
|
353
460
|
}
|
|
354
|
-
function
|
|
461
|
+
function gn(t, e, r) {
|
|
355
462
|
const n = t.$$.props[e];
|
|
356
463
|
n !== void 0 && (t.$$.bound[n] = r, r(t.$$.ctx[n]));
|
|
357
464
|
}
|
|
@@ -360,29 +467,29 @@ function w(t) {
|
|
|
360
467
|
}
|
|
361
468
|
function I(t, e, r) {
|
|
362
469
|
const { fragment: n, after_update: i } = t.$$;
|
|
363
|
-
n && n.m(e, r),
|
|
470
|
+
n && n.m(e, r), qe(() => {
|
|
364
471
|
const o = t.$$.on_mount.map(bt).filter(ae);
|
|
365
|
-
t.$$.on_destroy ? t.$$.on_destroy.push(...o) :
|
|
366
|
-
}), i.forEach(
|
|
472
|
+
t.$$.on_destroy ? t.$$.on_destroy.push(...o) : ke(o), t.$$.on_mount = [];
|
|
473
|
+
}), i.forEach(qe);
|
|
367
474
|
}
|
|
368
475
|
function b(t, e) {
|
|
369
476
|
const r = t.$$;
|
|
370
|
-
r.fragment !== null && (
|
|
477
|
+
r.fragment !== null && (mn(r.after_update), ke(r.on_destroy), r.fragment && r.fragment.d(e), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
371
478
|
}
|
|
372
|
-
function
|
|
373
|
-
t.$$.dirty[0] === -1 && (le.push(t),
|
|
479
|
+
function pn(t, e) {
|
|
480
|
+
t.$$.dirty[0] === -1 && (le.push(t), un(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
374
481
|
}
|
|
375
482
|
function N(t, e, r, n, i, o, s = null, l = [-1]) {
|
|
376
|
-
const c =
|
|
483
|
+
const c = be;
|
|
377
484
|
he(t);
|
|
378
485
|
const a = t.$$ = {
|
|
379
486
|
fragment: null,
|
|
380
487
|
ctx: [],
|
|
381
488
|
// state
|
|
382
489
|
props: o,
|
|
383
|
-
update:
|
|
490
|
+
update: y,
|
|
384
491
|
not_equal: i,
|
|
385
|
-
bound:
|
|
492
|
+
bound: et(),
|
|
386
493
|
// lifecycle
|
|
387
494
|
on_mount: [],
|
|
388
495
|
on_destroy: [],
|
|
@@ -391,7 +498,7 @@ function N(t, e, r, n, i, o, s = null, l = [-1]) {
|
|
|
391
498
|
after_update: [],
|
|
392
499
|
context: new Map(e.context || (c ? c.$$.context : [])),
|
|
393
500
|
// everything else
|
|
394
|
-
callbacks:
|
|
501
|
+
callbacks: et(),
|
|
395
502
|
dirty: l,
|
|
396
503
|
skip_bound: !1,
|
|
397
504
|
root: e.target || c.$$.root
|
|
@@ -400,10 +507,10 @@ function N(t, e, r, n, i, o, s = null, l = [-1]) {
|
|
|
400
507
|
let f = !1;
|
|
401
508
|
if (a.ctx = r ? r(t, e.props || {}, (d, E, ...v) => {
|
|
402
509
|
const A = v.length ? v[0] : E;
|
|
403
|
-
return a.ctx && i(a.ctx[d], a.ctx[d] = A) && (!a.skip_bound && a.bound[d] && a.bound[d](A), f &&
|
|
404
|
-
}) : [], a.update(), f = !0,
|
|
510
|
+
return a.ctx && i(a.ctx[d], a.ctx[d] = A) && (!a.skip_bound && a.bound[d] && a.bound[d](A), f && pn(t, d)), E;
|
|
511
|
+
}) : [], a.update(), f = !0, ke(a.before_update), a.fragment = n ? n(a.ctx) : !1, e.target) {
|
|
405
512
|
if (e.hydrate) {
|
|
406
|
-
const d =
|
|
513
|
+
const d = rn(e.target);
|
|
407
514
|
a.fragment && a.fragment.l(d), d.forEach(g);
|
|
408
515
|
} else
|
|
409
516
|
a.fragment && a.fragment.c();
|
|
@@ -420,7 +527,7 @@ class U {
|
|
|
420
527
|
*
|
|
421
528
|
* @type {any}
|
|
422
529
|
*/
|
|
423
|
-
|
|
530
|
+
Q(this, "$$");
|
|
424
531
|
/**
|
|
425
532
|
* ### PRIVATE API
|
|
426
533
|
*
|
|
@@ -428,11 +535,11 @@ class U {
|
|
|
428
535
|
*
|
|
429
536
|
* @type {any}
|
|
430
537
|
*/
|
|
431
|
-
|
|
538
|
+
Q(this, "$$set");
|
|
432
539
|
}
|
|
433
540
|
/** @returns {void} */
|
|
434
541
|
$destroy() {
|
|
435
|
-
b(this, 1), this.$destroy =
|
|
542
|
+
b(this, 1), this.$destroy = y;
|
|
436
543
|
}
|
|
437
544
|
/**
|
|
438
545
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -442,7 +549,7 @@ class U {
|
|
|
442
549
|
*/
|
|
443
550
|
$on(e, r) {
|
|
444
551
|
if (!ae(r))
|
|
445
|
-
return
|
|
552
|
+
return y;
|
|
446
553
|
const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
447
554
|
return n.push(r), () => {
|
|
448
555
|
const i = n.indexOf(r);
|
|
@@ -454,12 +561,12 @@ class U {
|
|
|
454
561
|
* @returns {void}
|
|
455
562
|
*/
|
|
456
563
|
$set(e) {
|
|
457
|
-
this.$$set && !
|
|
564
|
+
this.$$set && !Vt(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
458
565
|
}
|
|
459
566
|
}
|
|
460
|
-
const
|
|
461
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
462
|
-
function
|
|
567
|
+
const _n = "4";
|
|
568
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(_n);
|
|
569
|
+
function An(t) {
|
|
463
570
|
O(t, "svelte-1bzqb13", ".rcb-modal-section.svelte-1bzqb13{padding:8px 0px;display:flex}section.rcb-modal-section.svelte-1bzqb13{flex-grow:1}.rcb-modal-section.svelte-1bzqb13:last-of-type{padding:0}");
|
|
464
571
|
}
|
|
465
572
|
function Fe(t) {
|
|
@@ -479,11 +586,11 @@ function Fe(t) {
|
|
|
479
586
|
e = k(
|
|
480
587
|
/*as*/
|
|
481
588
|
t[0]
|
|
482
|
-
), i && i.c(),
|
|
589
|
+
), i && i.c(), nn(
|
|
483
590
|
/*as*/
|
|
484
591
|
t[0]
|
|
485
592
|
)(e, {
|
|
486
|
-
class:
|
|
593
|
+
class: Ie("rcb-modal-section") + " svelte-1bzqb13"
|
|
487
594
|
});
|
|
488
595
|
},
|
|
489
596
|
m(o, s) {
|
|
@@ -521,7 +628,7 @@ function Fe(t) {
|
|
|
521
628
|
}
|
|
522
629
|
};
|
|
523
630
|
}
|
|
524
|
-
function
|
|
631
|
+
function hn(t) {
|
|
525
632
|
let e = (
|
|
526
633
|
/*as*/
|
|
527
634
|
t[0]
|
|
@@ -558,7 +665,7 @@ function _n(t) {
|
|
|
558
665
|
}
|
|
559
666
|
};
|
|
560
667
|
}
|
|
561
|
-
function
|
|
668
|
+
function En(t, e, r) {
|
|
562
669
|
let { $$slots: n = {}, $$scope: i } = e, { as: o = "section" } = e;
|
|
563
670
|
return t.$$set = (s) => {
|
|
564
671
|
"as" in s && r(0, o = s.as), "$$scope" in s && r(1, i = s.$$scope);
|
|
@@ -566,165 +673,62 @@ function An(t, e, r) {
|
|
|
566
673
|
}
|
|
567
674
|
class ue extends U {
|
|
568
675
|
constructor(e) {
|
|
569
|
-
super(), N(this, e,
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
var j = /* @__PURE__ */ ((t) => (t[t.Silent = 0] = "Silent", t[t.Error = 1] = "Error", t[t.Warn = 2] = "Warn", t[t.Info = 3] = "Info", t[t.Debug = 4] = "Debug", t[t.Verbose = 5] = "Verbose", t))(j || {});
|
|
573
|
-
class V {
|
|
574
|
-
static setLogLevel(e) {
|
|
575
|
-
this.logLevel = e;
|
|
576
|
-
}
|
|
577
|
-
static log(e, r = this.logLevel) {
|
|
578
|
-
const n = `[Purchases] ${e}`;
|
|
579
|
-
if (!(this.logLevel < r || r === j.Silent))
|
|
580
|
-
switch (r) {
|
|
581
|
-
case j.Error:
|
|
582
|
-
console.error(n);
|
|
583
|
-
break;
|
|
584
|
-
case j.Warn:
|
|
585
|
-
console.warn(n);
|
|
586
|
-
break;
|
|
587
|
-
case j.Info:
|
|
588
|
-
console.info(n);
|
|
589
|
-
break;
|
|
590
|
-
case j.Debug:
|
|
591
|
-
console.debug(n);
|
|
592
|
-
break;
|
|
593
|
-
case j.Verbose:
|
|
594
|
-
console.debug(n);
|
|
595
|
-
break;
|
|
596
|
-
}
|
|
597
|
-
}
|
|
598
|
-
static errorLog(e) {
|
|
599
|
-
this.log(e, j.Error);
|
|
600
|
-
}
|
|
601
|
-
static warnLog(e) {
|
|
602
|
-
this.log(e, j.Warn);
|
|
603
|
-
}
|
|
604
|
-
static infoLog(e) {
|
|
605
|
-
this.log(e, j.Info);
|
|
606
|
-
}
|
|
607
|
-
static debugLog(e) {
|
|
608
|
-
this.log(e, j.Debug);
|
|
609
|
-
}
|
|
610
|
-
static verboseLog(e) {
|
|
611
|
-
this.log(e, j.Verbose);
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
M(V, "logLevel", j.Silent);
|
|
615
|
-
var pe = /* @__PURE__ */ ((t) => (t.Year = "year", t.Month = "month", t.Week = "week", t.Day = "day", t))(pe || {});
|
|
616
|
-
function hn(t) {
|
|
617
|
-
const e = t.match(/^PT?([0-9]+)([MDYW])$/);
|
|
618
|
-
if (!e || e.length < 3)
|
|
619
|
-
return V.errorLog(`Invalid ISO 8601 duration format: ${t}`), null;
|
|
620
|
-
const r = parseInt(e[1]);
|
|
621
|
-
switch (e[2]) {
|
|
622
|
-
case "Y":
|
|
623
|
-
return {
|
|
624
|
-
number: r,
|
|
625
|
-
unit: "year"
|
|
626
|
-
/* Year */
|
|
627
|
-
};
|
|
628
|
-
case "M":
|
|
629
|
-
return {
|
|
630
|
-
number: r,
|
|
631
|
-
unit: "month"
|
|
632
|
-
/* Month */
|
|
633
|
-
};
|
|
634
|
-
case "W":
|
|
635
|
-
return {
|
|
636
|
-
number: r,
|
|
637
|
-
unit: "week"
|
|
638
|
-
/* Week */
|
|
639
|
-
};
|
|
640
|
-
case "D":
|
|
641
|
-
return {
|
|
642
|
-
number: r,
|
|
643
|
-
unit: "day"
|
|
644
|
-
/* Day */
|
|
645
|
-
};
|
|
646
|
-
default:
|
|
647
|
-
return V.errorLog(`Invalid ISO 8601 unit duration format: ${t}`), null;
|
|
676
|
+
super(), N(this, e, En, hn, P, { as: 0 }, An);
|
|
648
677
|
}
|
|
649
678
|
}
|
|
650
|
-
|
|
651
|
-
const r = t / 100;
|
|
652
|
-
return new Intl.NumberFormat("en-US", {
|
|
653
|
-
style: "currency",
|
|
654
|
-
currency: e
|
|
655
|
-
}).format(r);
|
|
656
|
-
}, nt = (t) => {
|
|
657
|
-
const e = hn(t);
|
|
658
|
-
if (!e)
|
|
659
|
-
return "unknown";
|
|
660
|
-
const r = e.number;
|
|
661
|
-
if (r === 1)
|
|
662
|
-
switch (e.unit) {
|
|
663
|
-
case pe.Year:
|
|
664
|
-
return "yearly";
|
|
665
|
-
case pe.Month:
|
|
666
|
-
return "monthly";
|
|
667
|
-
case pe.Week:
|
|
668
|
-
return "weekly";
|
|
669
|
-
case pe.Day:
|
|
670
|
-
return "daily";
|
|
671
|
-
}
|
|
672
|
-
else
|
|
673
|
-
return `every ${r} ${e.unit}s`;
|
|
674
|
-
};
|
|
675
|
-
function En(t) {
|
|
679
|
+
function In(t) {
|
|
676
680
|
O(t, "svelte-i5dq8q", ".rcb-pricing-info.svelte-i5dq8q{display:flex;flex-direction:column;margin-top:102px;font-weight:500}.rcb-product-price.svelte-i5dq8q{font-size:24px;margin:12px 0px}.rcb-product-details.svelte-i5dq8q{opacity:0.6;list-style-type:disc;list-style-position:inside;margin:0px;padding:0px}@media screen and (max-width: 960px){.rcb-pricing-info.svelte-i5dq8q{margin-top:48px}}");
|
|
677
681
|
}
|
|
678
|
-
function
|
|
682
|
+
function bn(t) {
|
|
679
683
|
let e, r, n = (
|
|
680
684
|
/*productDetails*/
|
|
681
685
|
t[0].displayName + ""
|
|
682
686
|
), i, o, s, l = (
|
|
683
687
|
/*productDetails*/
|
|
684
688
|
t[0].currentPrice.currency + ""
|
|
685
|
-
), c, a = " ", f, d =
|
|
689
|
+
), c, a = " ", f, d = Ye(
|
|
686
690
|
/*productDetails*/
|
|
687
691
|
t[0].currentPrice.amount,
|
|
688
692
|
/*productDetails*/
|
|
689
693
|
t[0].currentPrice.currency
|
|
690
|
-
) + "", E, v, A,
|
|
694
|
+
) + "", E, v, A, M, h, B = Xe(
|
|
691
695
|
/*productDetails*/
|
|
692
696
|
t[0].normalPeriodDuration
|
|
693
|
-
) + "", F, $, de,
|
|
697
|
+
) + "", F, $, de, ye, ie;
|
|
694
698
|
return {
|
|
695
699
|
c() {
|
|
696
|
-
e = k("div"), r = k("span"), i = R(n), o = T(), s = k("span"), c = R(l), f = R(a), E = R(d), v = T(), A = k("ul"),
|
|
700
|
+
e = k("div"), r = k("span"), i = R(n), o = T(), s = k("span"), c = R(l), f = R(a), E = R(d), v = T(), A = k("ul"), M = k("li"), h = R("Billed "), F = R(B), $ = T(), de = k("li"), de.textContent = "Continues until canceled", ye = T(), ie = k("li"), ie.textContent = "Cancel anytime", _(s, "class", "rcb-product-price svelte-i5dq8q"), _(A, "class", "rcb-product-details svelte-i5dq8q"), _(e, "class", "rcb-pricing-info svelte-i5dq8q");
|
|
697
701
|
},
|
|
698
702
|
m(z, W) {
|
|
699
|
-
p(z, e, W), D(e, r), D(r, i), D(e, o), D(e, s), D(s, c), D(s, f), D(s, E), D(e, v), D(e, A), D(A,
|
|
703
|
+
p(z, e, W), D(e, r), D(r, i), D(e, o), D(e, s), D(s, c), D(s, f), D(s, E), D(e, v), D(e, A), D(A, M), D(M, h), D(M, F), D(A, $), D(A, de), D(A, ye), D(A, ie);
|
|
700
704
|
},
|
|
701
705
|
p(z, W) {
|
|
702
706
|
W & /*productDetails*/
|
|
703
707
|
1 && n !== (n = /*productDetails*/
|
|
704
|
-
z[0].displayName + "") &&
|
|
708
|
+
z[0].displayName + "") && ne(i, n), W & /*productDetails*/
|
|
705
709
|
1 && l !== (l = /*productDetails*/
|
|
706
|
-
z[0].currentPrice.currency + "") &&
|
|
707
|
-
1 && d !== (d =
|
|
710
|
+
z[0].currentPrice.currency + "") && ne(c, l), W & /*productDetails*/
|
|
711
|
+
1 && d !== (d = Ye(
|
|
708
712
|
/*productDetails*/
|
|
709
713
|
z[0].currentPrice.amount,
|
|
710
714
|
/*productDetails*/
|
|
711
715
|
z[0].currentPrice.currency
|
|
712
|
-
) + "") &&
|
|
713
|
-
1 &&
|
|
716
|
+
) + "") && ne(E, d), W & /*productDetails*/
|
|
717
|
+
1 && B !== (B = Xe(
|
|
714
718
|
/*productDetails*/
|
|
715
719
|
z[0].normalPeriodDuration
|
|
716
|
-
) + "") &&
|
|
720
|
+
) + "") && ne(F, B);
|
|
717
721
|
},
|
|
718
722
|
d(z) {
|
|
719
723
|
z && g(e);
|
|
720
724
|
}
|
|
721
725
|
};
|
|
722
726
|
}
|
|
723
|
-
function
|
|
727
|
+
function wn(t) {
|
|
724
728
|
let e, r;
|
|
725
729
|
return e = new ue({
|
|
726
730
|
props: {
|
|
727
|
-
$$slots: { default: [
|
|
731
|
+
$$slots: { default: [bn] },
|
|
728
732
|
$$scope: { ctx: t }
|
|
729
733
|
}
|
|
730
734
|
}), {
|
|
@@ -750,53 +754,53 @@ function bn(t) {
|
|
|
750
754
|
}
|
|
751
755
|
};
|
|
752
756
|
}
|
|
753
|
-
function
|
|
757
|
+
function kn(t, e, r) {
|
|
754
758
|
let { productDetails: n } = e;
|
|
755
759
|
return t.$$set = (i) => {
|
|
756
760
|
"productDetails" in i && r(0, n = i.productDetails);
|
|
757
761
|
}, [n];
|
|
758
762
|
}
|
|
759
|
-
class
|
|
763
|
+
class yt extends U {
|
|
760
764
|
constructor(e) {
|
|
761
|
-
super(), N(this, e,
|
|
765
|
+
super(), N(this, e, kn, wn, P, { productDetails: 0 }, In);
|
|
762
766
|
}
|
|
763
767
|
}
|
|
764
|
-
const kn = "data:image/gif;base64,R0lGODlhMgAyAPcBAAAAAAD/AAMDAwcHBxERERUVFSoqKi0tLTAwMDg4OD09PURERElJSUtLS1BQUFJSUlVVVVdXV1paWl9fX2NjY2ZmZmlpaWxsbG1tbXNzc3t7e39/f4GBgYKCgoSEhIaGhoeHh4iIiIuLi5KSkpSUlJaWlp2dnaGhoaOjo6SkpKWlpaenp6ioqKqqqqurq6ysrLCwsLGxsbS0tLa2tri4uLm5ub29vb6+vsDAwMHBwcLCwsXFxcjIyMnJyc3Nzc7OztPT09TU1NXV1dfX19nZ2dra2tvb29zc3N7e3uDg4OHh4eLi4uPj4+fn5+np6ezs7O7u7vDw8PHx8fLy8vPz8/X19fb29vj4+Pn5+fz8/P39/f7+/v///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFBAABACwAAAAAMgAyAIcAAAAA/wADAwMHBwcREREVFRUqKiotLS0wMDA4ODg9PT1ERERJSUlLS0tQUFBSUlJVVVVXV1daWlpfX19jY2NmZmZpaWlsbGxtbW1zc3N7e3t/f3+BgYGCgoKEhISGhoaHh4eIiIiLi4uSkpKUlJSWlpadnZ2hoaGjo6OkpKSlpaWnp6eoqKiqqqqrq6usrKywsLCxsbG0tLS2tra4uLi5ubm9vb2+vr7AwMDBwcHCwsLFxcXIyMjJycnNzc3Ozs7T09PU1NTV1dXX19fZ2dna2trb29vc3Nze3t7g4ODh4eHi4uLj4+Pn5+fp6ens7Ozu7u7w8PDx8fHy8vLz8/P19fX29vb4+Pj5+fn8/Pz9/f3+/v7///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8I/wCzcBFIcKD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O7u7vDw8PHx8fLy8vPz8/X19fb29vj4+Pn5+fz8/P39/f7+/v///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFBAABACwAAAAAMgAyAIcAAAAA/wADAwMHBwcREREVFRUqKiotLS0wMDA4ODg9PT1ERERJSUlLS0tQUFBSUlJVVVVXV1daWlpfX19jY2NmZmZpaWlsbGxtbW1zc3N7e3t/f3+BgYGCgoKEhISGhoaHh4eIiIiLi4uSkpKUlJSWlpadnZ2hoaGjo6OkpKSlpaWnp6eoqKiqqqqrq6usrKywsLCxsbG0tLS2tra4uLi5ubm9vb2+vr7AwMDBwcHCwsLFxcXIyMjJycnNzc3Ozs7T09PU1NTV1dXX19fZ2dna2trb29vc3Nze3t7g4ODh4eHi4uLj4+Pn5+fp6ens7Ozu7u7w8PDx8fHy8vLz8/P19fX29vb4+Pj5+fn8/Pz9/f3+/v7///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8I/wCzcBFIcKDBgggPKkzIcCEXLlq4bIEokeLEiBcrYrTIcaNHjRobinQ4sqRCkBlTdtR44MBKlR9TmjQJQMBMkgZfdpwSMSYAACgpRtHpcSYSFUIa1mz448UQnAWDfmzSooUVmD9XVnnBwglMlDdvvMjhcOlCHit23CSqcUrVJiizpnTC4sXQmB1vZvmxwgYWhWYLznjRA+rJryqvxGhxxGNLjkVcwMCCN6ZeLkNevDCcRYYKJJfZptyCQwdiijl0CDxdlL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AAAiVAAMIHEiwoMEMGQwqXPggwsKBTLQshPDgYYAaD1owdPjQB4QIThRGgGAxwIYIIBQ2LMlkJBCDFEsGOPEgA5aCK0tKmQChRkGEMgPIiDDhoRYjTR56CPGwiooXN6oENQikhYsWP65MJXglx4sVMoZsJdikRosWOMYSRPJih9q3cOPKnWuRSxa7eO9O3cJFCxe+frdMDQgAIfkEBQUAAQAsBQADACAAEAAACKYAAwgcSLAgwQcODCpcyNDAAYYQAzhpaIDhFYY+NOBY6HAhkyETFRLZ0CGKQgMVDV4RAoQKQxMdUpx8aJAJECYQnWzYcMQgSoNVgAy5CHGGhhI+aRIkMgRnxCohNvQoiLDgEyFDskQUuINDiK1Hfpgc+ETKQi0nVGxNkkSrwCw/hiBxu7XuFidAhARpgqWu3yxIhgApEtLvVipIgARBYthvlKaNFQYEADs=";
|
|
769
|
+
function vn(t) {
|
|
766
770
|
let e, r;
|
|
767
771
|
return {
|
|
768
772
|
c() {
|
|
769
|
-
e = k("img"),
|
|
773
|
+
e = k("img"), Z(e.src, r = $n) || _(e, "src", r), _(e, "alt", "spinner");
|
|
770
774
|
},
|
|
771
775
|
m(n, i) {
|
|
772
776
|
p(n, e, i);
|
|
773
777
|
},
|
|
774
|
-
p:
|
|
775
|
-
i:
|
|
776
|
-
o:
|
|
778
|
+
p: y,
|
|
779
|
+
i: y,
|
|
780
|
+
o: y,
|
|
777
781
|
d(n) {
|
|
778
782
|
n && g(e);
|
|
779
783
|
}
|
|
780
784
|
};
|
|
781
785
|
}
|
|
782
|
-
class
|
|
786
|
+
class yn extends U {
|
|
783
787
|
constructor(e) {
|
|
784
|
-
super(), N(this, e, null,
|
|
788
|
+
super(), N(this, e, null, vn, P, {});
|
|
785
789
|
}
|
|
786
790
|
}
|
|
787
791
|
function Bn(t) {
|
|
788
792
|
O(t, "svelte-1mxx341", ".rcb-modal-loader.svelte-1mxx341{width:100%;flex-grow:1;min-height:100%;display:flex;justify-content:center;align-items:center}");
|
|
789
793
|
}
|
|
790
|
-
function
|
|
794
|
+
function Dn(t) {
|
|
791
795
|
let e, r, n;
|
|
792
|
-
return r = new
|
|
796
|
+
return r = new yn({}), {
|
|
793
797
|
c() {
|
|
794
798
|
e = k("div"), w(r.$$.fragment), _(e, "class", "rcb-modal-loader svelte-1mxx341");
|
|
795
799
|
},
|
|
796
800
|
m(i, o) {
|
|
797
801
|
p(i, e, o), I(r, e, null), n = !0;
|
|
798
802
|
},
|
|
799
|
-
p:
|
|
803
|
+
p: y,
|
|
800
804
|
i(i) {
|
|
801
805
|
n || (u(r.$$.fragment, i), n = !0);
|
|
802
806
|
},
|
|
@@ -808,23 +812,23 @@ function yn(t) {
|
|
|
808
812
|
}
|
|
809
813
|
};
|
|
810
814
|
}
|
|
811
|
-
class
|
|
815
|
+
class Je extends U {
|
|
812
816
|
constructor(e) {
|
|
813
|
-
super(), N(this, e, null,
|
|
817
|
+
super(), N(this, e, null, Dn, P, {}, Bn);
|
|
814
818
|
}
|
|
815
819
|
}
|
|
816
|
-
var _e = /* @__PURE__ */ ((t) => (t.Started = "started", t.InProgress = "in_progress", t.Succeeded = "succeeded", t.Failed = "failed", t))(_e || {}),
|
|
820
|
+
var _e = /* @__PURE__ */ ((t) => (t.Started = "started", t.InProgress = "in_progress", t.Succeeded = "succeeded", t.Failed = "failed", t))(_e || {}), Pe = /* @__PURE__ */ ((t) => (t[t.SetupIntentCreationFailed = 1] = "SetupIntentCreationFailed", t[t.PaymentMethodCreationFailed = 2] = "PaymentMethodCreationFailed", t[t.PaymentChargeFailed = 3] = "PaymentChargeFailed", t))(Pe || {}), S = /* @__PURE__ */ ((t) => (t[t.ErrorSettingUpPurchase = 0] = "ErrorSettingUpPurchase", t[t.ErrorChargingPayment = 1] = "ErrorChargingPayment", t[t.UnknownError = 2] = "UnknownError", t[t.NetworkError = 3] = "NetworkError", t[t.StripeError = 4] = "StripeError", t[t.MissingEmailError = 5] = "MissingEmailError", t))(S || {});
|
|
817
821
|
class G extends Error {
|
|
818
822
|
constructor(e, r, n) {
|
|
819
823
|
super(r), this.errorCode = e, this.underlyingErrorMessage = n;
|
|
820
824
|
}
|
|
821
825
|
}
|
|
822
|
-
class
|
|
826
|
+
class Cn {
|
|
823
827
|
constructor(e, r = 10) {
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
+
Q(this, "operationSessionId", null);
|
|
829
|
+
Q(this, "backend");
|
|
830
|
+
Q(this, "maxNumberAttempts");
|
|
831
|
+
Q(this, "waitMSBetweenAttempts", 1e3);
|
|
828
832
|
this.backend = e, this.maxNumberAttempts = r;
|
|
829
833
|
}
|
|
830
834
|
async startPurchase(e, r, n, i) {
|
|
@@ -898,7 +902,7 @@ class Dn {
|
|
|
898
902
|
return;
|
|
899
903
|
}
|
|
900
904
|
switch (e.code) {
|
|
901
|
-
case
|
|
905
|
+
case Pe.SetupIntentCreationFailed:
|
|
902
906
|
r(
|
|
903
907
|
new G(
|
|
904
908
|
0,
|
|
@@ -906,7 +910,7 @@ class Dn {
|
|
|
906
910
|
)
|
|
907
911
|
);
|
|
908
912
|
return;
|
|
909
|
-
case
|
|
913
|
+
case Pe.PaymentMethodCreationFailed:
|
|
910
914
|
r(
|
|
911
915
|
new G(
|
|
912
916
|
0,
|
|
@@ -914,7 +918,7 @@ class Dn {
|
|
|
914
918
|
)
|
|
915
919
|
);
|
|
916
920
|
return;
|
|
917
|
-
case
|
|
921
|
+
case Pe.PaymentChargeFailed:
|
|
918
922
|
r(
|
|
919
923
|
new G(
|
|
920
924
|
1,
|
|
@@ -925,36 +929,36 @@ class Dn {
|
|
|
925
929
|
}
|
|
926
930
|
}
|
|
927
931
|
}
|
|
928
|
-
const
|
|
932
|
+
const Mn = "data:image/svg+xml,%3csvg%20width='124'%20height='124'%20viewBox='0%200%20124%20124'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='62'%20cy='62'%20r='62'%20fill='%23767676'/%3e%3cpath%20d='M87.6668%2041.504L82.4968%2036.334L62.0002%2056.8307L41.5035%2036.334L36.3335%2041.504L56.8302%2062.0006L36.3335%2082.4973L41.5035%2087.6673L62.0002%2067.1706L82.4968%2087.6673L87.6668%2082.4973L67.1702%2062.0006L87.6668%2041.504Z'%20fill='white'/%3e%3c/svg%3e";
|
|
929
933
|
function Qn(t) {
|
|
930
934
|
O(t, "svelte-1609h93", "img.svelte-1609h93{width:124px;height:124px;margin:0 auto}");
|
|
931
935
|
}
|
|
932
|
-
function
|
|
936
|
+
function Pn(t) {
|
|
933
937
|
let e, r;
|
|
934
938
|
return {
|
|
935
939
|
c() {
|
|
936
|
-
e = k("img"),
|
|
940
|
+
e = k("img"), Z(e.src, r = Mn) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon svelte-1609h93");
|
|
937
941
|
},
|
|
938
942
|
m(n, i) {
|
|
939
943
|
p(n, e, i);
|
|
940
944
|
},
|
|
941
|
-
p:
|
|
942
|
-
i:
|
|
943
|
-
o:
|
|
945
|
+
p: y,
|
|
946
|
+
i: y,
|
|
947
|
+
o: y,
|
|
944
948
|
d(n) {
|
|
945
949
|
n && g(e);
|
|
946
950
|
}
|
|
947
951
|
};
|
|
948
952
|
}
|
|
949
|
-
class
|
|
953
|
+
class Tn extends U {
|
|
950
954
|
constructor(e) {
|
|
951
|
-
super(), N(this, e, null,
|
|
955
|
+
super(), N(this, e, null, Pn, P, {}, Qn);
|
|
952
956
|
}
|
|
953
957
|
}
|
|
954
|
-
function
|
|
958
|
+
function Nn(t) {
|
|
955
959
|
O(t, "svelte-1rmxk7q", "button.svelte-1rmxk7q{border:none;border-radius:56px;font-size:16px;cursor:pointer;height:56px;color:var(--rc-color-grey-text-dark);background-color:var(--rc-color-grey-ui-dark);display:flex;align-items:center;justify-content:center}button.intent-primary.svelte-1rmxk7q{background-color:var(--rc-color-grey-text-dark);color:var(--rc-color-white);font-size:16px}button.svelte-1rmxk7q:disabled{color:var(--rc-color-grey-text-light)}button.intent-primary.svelte-1rmxk7q:disabled{color:var(--rc-color-grey-text-light)}");
|
|
956
960
|
}
|
|
957
|
-
function
|
|
961
|
+
function Un(t) {
|
|
958
962
|
let e, r, n, i, o;
|
|
959
963
|
const s = (
|
|
960
964
|
/*#slots*/
|
|
@@ -968,12 +972,12 @@ function Nn(t) {
|
|
|
968
972
|
);
|
|
969
973
|
return {
|
|
970
974
|
c() {
|
|
971
|
-
e = k("button"), l && l.c(), _(e, "class", r =
|
|
975
|
+
e = k("button"), l && l.c(), _(e, "class", r = Ie(`intent-${/*intent*/
|
|
972
976
|
t[0]}`) + " svelte-1rmxk7q"), e.disabled = /*disabled*/
|
|
973
977
|
t[1];
|
|
974
978
|
},
|
|
975
979
|
m(c, a) {
|
|
976
|
-
p(c, e, a), l && l.m(e, null), n = !0, i || (o =
|
|
980
|
+
p(c, e, a), l && l.m(e, null), n = !0, i || (o = $e(
|
|
977
981
|
e,
|
|
978
982
|
"click",
|
|
979
983
|
/*click_handler*/
|
|
@@ -1000,7 +1004,7 @@ function Nn(t) {
|
|
|
1000
1004
|
),
|
|
1001
1005
|
null
|
|
1002
1006
|
), (!n || a & /*intent*/
|
|
1003
|
-
1 && r !== (r =
|
|
1007
|
+
1 && r !== (r = Ie(`intent-${/*intent*/
|
|
1004
1008
|
c[0]}`) + " svelte-1rmxk7q")) && _(e, "class", r), (!n || a & /*disabled*/
|
|
1005
1009
|
2) && (e.disabled = /*disabled*/
|
|
1006
1010
|
c[1]);
|
|
@@ -1016,7 +1020,7 @@ function Nn(t) {
|
|
|
1016
1020
|
}
|
|
1017
1021
|
};
|
|
1018
1022
|
}
|
|
1019
|
-
function
|
|
1023
|
+
function Rn(t, e, r) {
|
|
1020
1024
|
let { $$slots: n = {}, $$scope: i } = e, { intent: o = "primary" } = e, { disabled: s = !1 } = e;
|
|
1021
1025
|
function l(c) {
|
|
1022
1026
|
$t.call(this, t, c);
|
|
@@ -1025,15 +1029,15 @@ function Un(t, e, r) {
|
|
|
1025
1029
|
"intent" in c && r(0, o = c.intent), "disabled" in c && r(1, s = c.disabled), "$$scope" in c && r(2, i = c.$$scope);
|
|
1026
1030
|
}, [o, s, i, n, l];
|
|
1027
1031
|
}
|
|
1028
|
-
class
|
|
1032
|
+
class we extends U {
|
|
1029
1033
|
constructor(e) {
|
|
1030
|
-
super(), N(this, e,
|
|
1034
|
+
super(), N(this, e, Rn, Un, P, { intent: 0, disabled: 1 }, Nn);
|
|
1031
1035
|
}
|
|
1032
1036
|
}
|
|
1033
|
-
function
|
|
1037
|
+
function Sn(t) {
|
|
1034
1038
|
O(t, "svelte-1f9z0o8", "footer.svelte-1f9z0o8{display:flex;flex-direction:column}");
|
|
1035
1039
|
}
|
|
1036
|
-
function
|
|
1040
|
+
function On(t) {
|
|
1037
1041
|
let e, r;
|
|
1038
1042
|
const n = (
|
|
1039
1043
|
/*#slots*/
|
|
@@ -1084,21 +1088,21 @@ function Sn(t) {
|
|
|
1084
1088
|
}
|
|
1085
1089
|
};
|
|
1086
1090
|
}
|
|
1087
|
-
function
|
|
1091
|
+
function Ln(t, e, r) {
|
|
1088
1092
|
let { $$slots: n = {}, $$scope: i } = e;
|
|
1089
1093
|
return t.$$set = (o) => {
|
|
1090
1094
|
"$$scope" in o && r(0, i = o.$$scope);
|
|
1091
1095
|
}, [i, n];
|
|
1092
1096
|
}
|
|
1093
|
-
class
|
|
1097
|
+
class Ve extends U {
|
|
1094
1098
|
constructor(e) {
|
|
1095
|
-
super(), N(this, e,
|
|
1099
|
+
super(), N(this, e, Ln, On, P, {}, Sn);
|
|
1096
1100
|
}
|
|
1097
1101
|
}
|
|
1098
|
-
function
|
|
1102
|
+
function xn(t) {
|
|
1099
1103
|
O(t, "svelte-6o8e90", '.column.svelte-6o8e90{display:flex;flex-direction:column;justify-content:flex-start;gap:var(--gap, "8px");flex-grow:1}');
|
|
1100
1104
|
}
|
|
1101
|
-
function
|
|
1105
|
+
function Fn(t) {
|
|
1102
1106
|
let e, r, n;
|
|
1103
1107
|
const i = (
|
|
1104
1108
|
/*#slots*/
|
|
@@ -1152,30 +1156,30 @@ function xn(t) {
|
|
|
1152
1156
|
}
|
|
1153
1157
|
};
|
|
1154
1158
|
}
|
|
1155
|
-
function
|
|
1159
|
+
function Gn(t, e, r) {
|
|
1156
1160
|
let { $$slots: n = {}, $$scope: i } = e, { gutter: o = "8px" } = e;
|
|
1157
1161
|
return t.$$set = (s) => {
|
|
1158
1162
|
"gutter" in s && r(0, o = s.gutter), "$$scope" in s && r(1, i = s.$$scope);
|
|
1159
1163
|
}, [o, i, n];
|
|
1160
1164
|
}
|
|
1161
|
-
class
|
|
1165
|
+
class ve extends U {
|
|
1162
1166
|
constructor(e) {
|
|
1163
|
-
super(), N(this, e,
|
|
1167
|
+
super(), N(this, e, Gn, Fn, P, { gutter: 0 }, xn);
|
|
1164
1168
|
}
|
|
1165
1169
|
}
|
|
1166
|
-
const
|
|
1167
|
-
function
|
|
1170
|
+
const Yn = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='mdi_close'%3e%3cpath%20id='Vector'%20d='M19%206.41L17.59%205L12%2010.59L6.41%205L5%206.41L10.59%2012L5%2017.59L6.41%2019L12%2013.41L17.59%2019L19%2017.59L13.41%2012L19%206.41Z'%20fill='%23767676'/%3e%3c/g%3e%3c/svg%3e";
|
|
1171
|
+
function Hn(t) {
|
|
1168
1172
|
O(t, "svelte-14xreta", ".close-button.svelte-14xreta{border:none;cursor:pointer;background-color:transparent;padding:0px}");
|
|
1169
1173
|
}
|
|
1170
|
-
function
|
|
1174
|
+
function Kn(t) {
|
|
1171
1175
|
let e, r, n, i, o;
|
|
1172
1176
|
return {
|
|
1173
1177
|
c() {
|
|
1174
|
-
e = k("button"), r = k("img"),
|
|
1178
|
+
e = k("button"), r = k("img"), Z(r.src, n = Yn) || _(r, "src", n), _(r, "alt", "close"), _(e, "class", "close-button svelte-14xreta"), e.disabled = /*disabled*/
|
|
1175
1179
|
t[0];
|
|
1176
1180
|
},
|
|
1177
1181
|
m(s, l) {
|
|
1178
|
-
p(s, e, l), D(e, r), i || (o =
|
|
1182
|
+
p(s, e, l), D(e, r), i || (o = $e(
|
|
1179
1183
|
e,
|
|
1180
1184
|
"click",
|
|
1181
1185
|
/*click_handler*/
|
|
@@ -1187,14 +1191,14 @@ function Hn(t) {
|
|
|
1187
1191
|
1 && (e.disabled = /*disabled*/
|
|
1188
1192
|
s[0]);
|
|
1189
1193
|
},
|
|
1190
|
-
i:
|
|
1191
|
-
o:
|
|
1194
|
+
i: y,
|
|
1195
|
+
o: y,
|
|
1192
1196
|
d(s) {
|
|
1193
1197
|
s && g(e), i = !1, o();
|
|
1194
1198
|
}
|
|
1195
1199
|
};
|
|
1196
1200
|
}
|
|
1197
|
-
function
|
|
1201
|
+
function qn(t, e, r) {
|
|
1198
1202
|
let { disabled: n = !1 } = e;
|
|
1199
1203
|
function i(o) {
|
|
1200
1204
|
$t.call(this, t, o);
|
|
@@ -1203,15 +1207,15 @@ function Kn(t, e, r) {
|
|
|
1203
1207
|
"disabled" in o && r(0, n = o.disabled);
|
|
1204
1208
|
}, [n, i];
|
|
1205
1209
|
}
|
|
1206
|
-
class
|
|
1210
|
+
class jn extends U {
|
|
1207
1211
|
constructor(e) {
|
|
1208
|
-
super(), N(this, e,
|
|
1212
|
+
super(), N(this, e, qn, Kn, P, { disabled: 0 }, Hn);
|
|
1209
1213
|
}
|
|
1210
1214
|
}
|
|
1211
|
-
function
|
|
1215
|
+
function Jn(t) {
|
|
1212
1216
|
O(t, "svelte-44qpq9", ".rcb-app-icon.svelte-44qpq9{width:40px;height:40px;border-radius:12px;box-shadow:0px 1px 10px 0px rgba(0, 0, 0, 0.1);margin-right:16px}.rcb-app-icon-picture-container.svelte-44qpq9{height:40px}.rcb-app-icon.loading.svelte-44qpq9{background-color:gray}");
|
|
1213
1217
|
}
|
|
1214
|
-
function
|
|
1218
|
+
function Vn(t) {
|
|
1215
1219
|
let e;
|
|
1216
1220
|
return {
|
|
1217
1221
|
c() {
|
|
@@ -1220,18 +1224,18 @@ function Jn(t) {
|
|
|
1220
1224
|
m(r, n) {
|
|
1221
1225
|
p(r, e, n);
|
|
1222
1226
|
},
|
|
1223
|
-
p:
|
|
1227
|
+
p: y,
|
|
1224
1228
|
d(r) {
|
|
1225
1229
|
r && g(e);
|
|
1226
1230
|
}
|
|
1227
1231
|
};
|
|
1228
1232
|
}
|
|
1229
|
-
function
|
|
1233
|
+
function Wn(t) {
|
|
1230
1234
|
let e, r, n, i, o, s;
|
|
1231
1235
|
return {
|
|
1232
1236
|
c() {
|
|
1233
|
-
e = k("picture"), r = k("source"), i = T(), o = k("img"), _(r, "type", "image/webp"),
|
|
1234
|
-
t[1]) || _(r, "srcset", n), _(o, "class", "rcb-app-icon svelte-44qpq9"),
|
|
1237
|
+
e = k("picture"), r = k("source"), i = T(), o = k("img"), _(r, "type", "image/webp"), Jt(r, n = /*srcWebp*/
|
|
1238
|
+
t[1]) || _(r, "srcset", n), _(o, "class", "rcb-app-icon svelte-44qpq9"), Z(o.src, s = /*src*/
|
|
1235
1239
|
t[0]) || _(o, "src", s), _(o, "alt", "App icon"), _(e, "class", "rcb-app-icon-picture-container svelte-44qpq9");
|
|
1236
1240
|
},
|
|
1237
1241
|
m(l, c) {
|
|
@@ -1241,7 +1245,7 @@ function Vn(t) {
|
|
|
1241
1245
|
c & /*srcWebp*/
|
|
1242
1246
|
2 && n !== (n = /*srcWebp*/
|
|
1243
1247
|
l[1]) && _(r, "srcset", n), c & /*src*/
|
|
1244
|
-
1 && !
|
|
1248
|
+
1 && !Z(o.src, s = /*src*/
|
|
1245
1249
|
l[0]) && _(o, "src", s);
|
|
1246
1250
|
},
|
|
1247
1251
|
d(l) {
|
|
@@ -1249,12 +1253,12 @@ function Vn(t) {
|
|
|
1249
1253
|
}
|
|
1250
1254
|
};
|
|
1251
1255
|
}
|
|
1252
|
-
function
|
|
1256
|
+
function zn(t) {
|
|
1253
1257
|
let e;
|
|
1254
1258
|
function r(o, s) {
|
|
1255
1259
|
return (
|
|
1256
1260
|
/*src*/
|
|
1257
|
-
o[0] !== null ?
|
|
1261
|
+
o[0] !== null ? Wn : Vn
|
|
1258
1262
|
);
|
|
1259
1263
|
}
|
|
1260
1264
|
let n = r(t), i = n(t);
|
|
@@ -1268,38 +1272,38 @@ function Wn(t) {
|
|
|
1268
1272
|
p(o, [s]) {
|
|
1269
1273
|
n === (n = r(o)) && i ? i.p(o, s) : (i.d(1), i = n(o), i && (i.c(), i.m(e.parentNode, e)));
|
|
1270
1274
|
},
|
|
1271
|
-
i:
|
|
1272
|
-
o:
|
|
1275
|
+
i: y,
|
|
1276
|
+
o: y,
|
|
1273
1277
|
d(o) {
|
|
1274
1278
|
o && g(e), i.d(o);
|
|
1275
1279
|
}
|
|
1276
1280
|
};
|
|
1277
1281
|
}
|
|
1278
|
-
function
|
|
1282
|
+
function Xn(t, e, r) {
|
|
1279
1283
|
let { src: n = null } = e, { srcWebp: i = null } = e;
|
|
1280
1284
|
return t.$$set = (o) => {
|
|
1281
1285
|
"src" in o && r(0, n = o.src), "srcWebp" in o && r(1, i = o.srcWebp);
|
|
1282
1286
|
}, [n, i];
|
|
1283
1287
|
}
|
|
1284
|
-
class
|
|
1288
|
+
class Bt extends U {
|
|
1285
1289
|
constructor(e) {
|
|
1286
|
-
super(), N(this, e,
|
|
1290
|
+
super(), N(this, e, Xn, zn, P, { src: 0, srcWebp: 1 }, Jn);
|
|
1287
1291
|
}
|
|
1288
1292
|
}
|
|
1289
|
-
const
|
|
1290
|
-
function
|
|
1293
|
+
const De = (t) => `https://da08ctfrofx1b.cloudfront.net/${t}`;
|
|
1294
|
+
function Zn(t) {
|
|
1291
1295
|
O(t, "svelte-10uf5fq", ".app-title.svelte-10uf5fq{font-weight:500;margin:8px 0;font-size:16px}.rcb-header-layout__business-info.svelte-10uf5fq{display:flex;align-items:center}");
|
|
1292
1296
|
}
|
|
1293
|
-
function
|
|
1297
|
+
function er(t) {
|
|
1294
1298
|
let e, r;
|
|
1295
|
-
return e = new
|
|
1299
|
+
return e = new Bt({}), {
|
|
1296
1300
|
c() {
|
|
1297
1301
|
w(e.$$.fragment);
|
|
1298
1302
|
},
|
|
1299
1303
|
m(n, i) {
|
|
1300
1304
|
I(e, n, i), r = !0;
|
|
1301
1305
|
},
|
|
1302
|
-
p:
|
|
1306
|
+
p: y,
|
|
1303
1307
|
i(n) {
|
|
1304
1308
|
r || (u(e.$$.fragment, n), r = !0);
|
|
1305
1309
|
},
|
|
@@ -1311,7 +1315,7 @@ function Zn(t) {
|
|
|
1311
1315
|
}
|
|
1312
1316
|
};
|
|
1313
1317
|
}
|
|
1314
|
-
function
|
|
1318
|
+
function tr(t) {
|
|
1315
1319
|
let e, r, n = (
|
|
1316
1320
|
/*brandingInfo*/
|
|
1317
1321
|
t[0].seller_company_name + ""
|
|
@@ -1335,7 +1339,7 @@ function er(t) {
|
|
|
1335
1339
|
s = null;
|
|
1336
1340
|
}), x()), (!o || c & /*brandingInfo*/
|
|
1337
1341
|
1) && n !== (n = /*brandingInfo*/
|
|
1338
|
-
l[0].seller_company_name + "") &&
|
|
1342
|
+
l[0].seller_company_name + "") && ne(i, n);
|
|
1339
1343
|
},
|
|
1340
1344
|
i(l) {
|
|
1341
1345
|
o || (u(s), o = !0);
|
|
@@ -1350,13 +1354,13 @@ function er(t) {
|
|
|
1350
1354
|
}
|
|
1351
1355
|
function rt(t) {
|
|
1352
1356
|
let e, r;
|
|
1353
|
-
return e = new
|
|
1357
|
+
return e = new Bt({
|
|
1354
1358
|
props: {
|
|
1355
|
-
src:
|
|
1359
|
+
src: De(
|
|
1356
1360
|
/*brandingInfo*/
|
|
1357
1361
|
t[0].app_icon
|
|
1358
1362
|
),
|
|
1359
|
-
srcWebp:
|
|
1363
|
+
srcWebp: De(
|
|
1360
1364
|
/*brandingInfo*/
|
|
1361
1365
|
t[0].app_icon_webp
|
|
1362
1366
|
)
|
|
@@ -1371,11 +1375,11 @@ function rt(t) {
|
|
|
1371
1375
|
p(n, i) {
|
|
1372
1376
|
const o = {};
|
|
1373
1377
|
i & /*brandingInfo*/
|
|
1374
|
-
1 && (o.src =
|
|
1378
|
+
1 && (o.src = De(
|
|
1375
1379
|
/*brandingInfo*/
|
|
1376
1380
|
n[0].app_icon
|
|
1377
1381
|
)), i & /*brandingInfo*/
|
|
1378
|
-
1 && (o.srcWebp =
|
|
1382
|
+
1 && (o.srcWebp = De(
|
|
1379
1383
|
/*brandingInfo*/
|
|
1380
1384
|
n[0].app_icon_webp
|
|
1381
1385
|
)), e.$set(o);
|
|
@@ -1391,9 +1395,9 @@ function rt(t) {
|
|
|
1391
1395
|
}
|
|
1392
1396
|
};
|
|
1393
1397
|
}
|
|
1394
|
-
function
|
|
1398
|
+
function nr(t) {
|
|
1395
1399
|
let e, r, n, i;
|
|
1396
|
-
const o = [
|
|
1400
|
+
const o = [tr, er], s = [];
|
|
1397
1401
|
function l(c, a) {
|
|
1398
1402
|
return (
|
|
1399
1403
|
/*brandingInfo*/
|
|
@@ -1424,7 +1428,7 @@ function tr(t) {
|
|
|
1424
1428
|
}
|
|
1425
1429
|
};
|
|
1426
1430
|
}
|
|
1427
|
-
function
|
|
1431
|
+
function rr(t, e, r) {
|
|
1428
1432
|
let { brandingInfo: n = null } = e;
|
|
1429
1433
|
return t.$$set = (i) => {
|
|
1430
1434
|
"brandingInfo" in i && r(0, n = i.brandingInfo);
|
|
@@ -1432,20 +1436,20 @@ function nr(t, e, r) {
|
|
|
1432
1436
|
}
|
|
1433
1437
|
class Dt extends U {
|
|
1434
1438
|
constructor(e) {
|
|
1435
|
-
super(), N(this, e,
|
|
1439
|
+
super(), N(this, e, rr, nr, P, { brandingInfo: 0 }, Zn);
|
|
1436
1440
|
}
|
|
1437
1441
|
}
|
|
1438
|
-
function
|
|
1442
|
+
function ir(t) {
|
|
1439
1443
|
O(t, "svelte-17puakv", ".rcb-post-purchase-header-layout.svelte-17puakv{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:-4px}");
|
|
1440
1444
|
}
|
|
1441
|
-
function
|
|
1445
|
+
function or(t) {
|
|
1442
1446
|
let e, r, n, i, o;
|
|
1443
1447
|
return r = new Dt({
|
|
1444
1448
|
props: { brandingInfo: (
|
|
1445
1449
|
/*brandingInfo*/
|
|
1446
1450
|
t[0]
|
|
1447
1451
|
) }
|
|
1448
|
-
}), i = new
|
|
1452
|
+
}), i = new jn({}), i.$on("click", function() {
|
|
1449
1453
|
ae(
|
|
1450
1454
|
/*onClose*/
|
|
1451
1455
|
t[1]
|
|
@@ -1475,12 +1479,12 @@ function ir(t) {
|
|
|
1475
1479
|
}
|
|
1476
1480
|
};
|
|
1477
1481
|
}
|
|
1478
|
-
function
|
|
1482
|
+
function sr(t) {
|
|
1479
1483
|
let e, r;
|
|
1480
1484
|
return e = new ue({
|
|
1481
1485
|
props: {
|
|
1482
1486
|
as: "header",
|
|
1483
|
-
$$slots: { default: [
|
|
1487
|
+
$$slots: { default: [or] },
|
|
1484
1488
|
$$scope: { ctx: t }
|
|
1485
1489
|
}
|
|
1486
1490
|
}), {
|
|
@@ -1506,22 +1510,22 @@ function or(t) {
|
|
|
1506
1510
|
}
|
|
1507
1511
|
};
|
|
1508
1512
|
}
|
|
1509
|
-
function
|
|
1513
|
+
function lr(t, e, r) {
|
|
1510
1514
|
let { brandingInfo: n = null } = e, { onClose: i } = e;
|
|
1511
1515
|
return t.$$set = (o) => {
|
|
1512
1516
|
"brandingInfo" in o && r(0, n = o.brandingInfo), "onClose" in o && r(1, i = o.onClose);
|
|
1513
1517
|
}, [n, i];
|
|
1514
1518
|
}
|
|
1515
|
-
class
|
|
1519
|
+
class cr extends U {
|
|
1516
1520
|
constructor(e) {
|
|
1517
|
-
super(), N(this, e,
|
|
1521
|
+
super(), N(this, e, lr, sr, P, { brandingInfo: 0, onClose: 1 }, ir);
|
|
1518
1522
|
}
|
|
1519
1523
|
}
|
|
1520
|
-
function
|
|
1524
|
+
function ar(t) {
|
|
1521
1525
|
O(t, "svelte-10pcqja", ".rcb-modal-message.svelte-10pcqja{width:100%;min-height:160px;display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center}.title.svelte-10pcqja{font-size:24px;line-height:1.25em}.subtitle.svelte-10pcqja{font-size:16px;line-height:1.25em;overflow-wrap:anywhere}");
|
|
1522
1526
|
}
|
|
1523
|
-
const
|
|
1524
|
-
function
|
|
1527
|
+
const ur = (t) => ({}), it = (t) => ({});
|
|
1528
|
+
function fr(t) {
|
|
1525
1529
|
let e, r, n, i, o;
|
|
1526
1530
|
const s = (
|
|
1527
1531
|
/*#slots*/
|
|
@@ -1545,7 +1549,7 @@ function ur(t) {
|
|
|
1545
1549
|
},
|
|
1546
1550
|
p(c, a) {
|
|
1547
1551
|
(!o || a & /*title*/
|
|
1548
|
-
4) &&
|
|
1552
|
+
4) && ne(
|
|
1549
1553
|
r,
|
|
1550
1554
|
/*title*/
|
|
1551
1555
|
c[2]
|
|
@@ -1580,7 +1584,7 @@ function ur(t) {
|
|
|
1580
1584
|
}
|
|
1581
1585
|
};
|
|
1582
1586
|
}
|
|
1583
|
-
function
|
|
1587
|
+
function dr(t) {
|
|
1584
1588
|
let e, r, n;
|
|
1585
1589
|
const i = (
|
|
1586
1590
|
/*#slots*/
|
|
@@ -1592,10 +1596,10 @@ function fr(t) {
|
|
|
1592
1596
|
t[5],
|
|
1593
1597
|
it
|
|
1594
1598
|
);
|
|
1595
|
-
return r = new
|
|
1599
|
+
return r = new ve({
|
|
1596
1600
|
props: {
|
|
1597
1601
|
gutter: "16px",
|
|
1598
|
-
$$slots: { default: [
|
|
1602
|
+
$$slots: { default: [fr] },
|
|
1599
1603
|
$$scope: { ctx: t }
|
|
1600
1604
|
}
|
|
1601
1605
|
}), {
|
|
@@ -1618,7 +1622,7 @@ function fr(t) {
|
|
|
1618
1622
|
/*$$scope*/
|
|
1619
1623
|
s[5],
|
|
1620
1624
|
l,
|
|
1621
|
-
|
|
1625
|
+
ur
|
|
1622
1626
|
) : q(
|
|
1623
1627
|
/*$$scope*/
|
|
1624
1628
|
s[5]
|
|
@@ -1640,12 +1644,12 @@ function fr(t) {
|
|
|
1640
1644
|
}
|
|
1641
1645
|
};
|
|
1642
1646
|
}
|
|
1643
|
-
function
|
|
1647
|
+
function mr(t) {
|
|
1644
1648
|
let e, r, n;
|
|
1645
|
-
return r = new
|
|
1649
|
+
return r = new ve({
|
|
1646
1650
|
props: {
|
|
1647
1651
|
gutter: "16px",
|
|
1648
|
-
$$slots: { default: [
|
|
1652
|
+
$$slots: { default: [dr] },
|
|
1649
1653
|
$$scope: { ctx: t }
|
|
1650
1654
|
}
|
|
1651
1655
|
}), {
|
|
@@ -1682,7 +1686,7 @@ function dr(t) {
|
|
|
1682
1686
|
}
|
|
1683
1687
|
};
|
|
1684
1688
|
}
|
|
1685
|
-
function
|
|
1689
|
+
function gr(t) {
|
|
1686
1690
|
let e;
|
|
1687
1691
|
return {
|
|
1688
1692
|
c() {
|
|
@@ -1696,11 +1700,11 @@ function mr(t) {
|
|
|
1696
1700
|
}
|
|
1697
1701
|
};
|
|
1698
1702
|
}
|
|
1699
|
-
function
|
|
1703
|
+
function pr(t) {
|
|
1700
1704
|
let e, r;
|
|
1701
|
-
return e = new
|
|
1705
|
+
return e = new we({
|
|
1702
1706
|
props: {
|
|
1703
|
-
$$slots: { default: [
|
|
1707
|
+
$$slots: { default: [gr] },
|
|
1704
1708
|
$$scope: { ctx: t }
|
|
1705
1709
|
}
|
|
1706
1710
|
}), e.$on("click", function() {
|
|
@@ -1732,9 +1736,9 @@ function gr(t) {
|
|
|
1732
1736
|
}
|
|
1733
1737
|
};
|
|
1734
1738
|
}
|
|
1735
|
-
function
|
|
1739
|
+
function _r(t) {
|
|
1736
1740
|
let e, r, n, i, o, s;
|
|
1737
|
-
return e = new
|
|
1741
|
+
return e = new cr({
|
|
1738
1742
|
props: {
|
|
1739
1743
|
brandingInfo: (
|
|
1740
1744
|
/*brandingInfo*/
|
|
@@ -1747,12 +1751,12 @@ function pr(t) {
|
|
|
1747
1751
|
}
|
|
1748
1752
|
}), n = new ue({
|
|
1749
1753
|
props: {
|
|
1750
|
-
$$slots: { default: [
|
|
1754
|
+
$$slots: { default: [mr] },
|
|
1751
1755
|
$$scope: { ctx: t }
|
|
1752
1756
|
}
|
|
1753
|
-
}), o = new
|
|
1757
|
+
}), o = new Ve({
|
|
1754
1758
|
props: {
|
|
1755
|
-
$$slots: { default: [
|
|
1759
|
+
$$slots: { default: [pr] },
|
|
1756
1760
|
$$scope: { ctx: t }
|
|
1757
1761
|
}
|
|
1758
1762
|
}), {
|
|
@@ -1787,12 +1791,12 @@ function pr(t) {
|
|
|
1787
1791
|
}
|
|
1788
1792
|
};
|
|
1789
1793
|
}
|
|
1790
|
-
function
|
|
1794
|
+
function Ar(t) {
|
|
1791
1795
|
let e, r;
|
|
1792
|
-
return e = new
|
|
1796
|
+
return e = new ve({
|
|
1793
1797
|
props: {
|
|
1794
1798
|
gutter: "32px",
|
|
1795
|
-
$$slots: { default: [
|
|
1799
|
+
$$slots: { default: [_r] },
|
|
1796
1800
|
$$scope: { ctx: t }
|
|
1797
1801
|
}
|
|
1798
1802
|
}), {
|
|
@@ -1818,7 +1822,7 @@ function _r(t) {
|
|
|
1818
1822
|
}
|
|
1819
1823
|
};
|
|
1820
1824
|
}
|
|
1821
|
-
function
|
|
1825
|
+
function hr(t, e, r) {
|
|
1822
1826
|
let { $$slots: n = {}, $$scope: i } = e, { brandingInfo: o = null } = e, { onContinue: s } = e, { title: l } = e, { type: c } = e;
|
|
1823
1827
|
return t.$$set = (a) => {
|
|
1824
1828
|
"brandingInfo" in a && r(0, o = a.brandingInfo), "onContinue" in a && r(1, s = a.onContinue), "title" in a && r(2, l = a.title), "type" in a && r(3, c = a.type), "$$scope" in a && r(5, i = a.$$scope);
|
|
@@ -1829,8 +1833,8 @@ class Ct extends U {
|
|
|
1829
1833
|
super(), N(
|
|
1830
1834
|
this,
|
|
1831
1835
|
e,
|
|
1836
|
+
hr,
|
|
1832
1837
|
Ar,
|
|
1833
|
-
_r,
|
|
1834
1838
|
P,
|
|
1835
1839
|
{
|
|
1836
1840
|
brandingInfo: 0,
|
|
@@ -1838,7 +1842,7 @@ class Ct extends U {
|
|
|
1838
1842
|
title: 2,
|
|
1839
1843
|
type: 3
|
|
1840
1844
|
},
|
|
1841
|
-
|
|
1845
|
+
ar
|
|
1842
1846
|
);
|
|
1843
1847
|
}
|
|
1844
1848
|
}
|
|
@@ -1857,7 +1861,7 @@ function ot(t) {
|
|
|
1857
1861
|
},
|
|
1858
1862
|
p(s, l) {
|
|
1859
1863
|
l & /*supportEmail*/
|
|
1860
|
-
2 &&
|
|
1864
|
+
2 && ne(
|
|
1861
1865
|
n,
|
|
1862
1866
|
/*supportEmail*/
|
|
1863
1867
|
s[1]
|
|
@@ -1870,7 +1874,7 @@ function ot(t) {
|
|
|
1870
1874
|
}
|
|
1871
1875
|
};
|
|
1872
1876
|
}
|
|
1873
|
-
function
|
|
1877
|
+
function Er(t) {
|
|
1874
1878
|
let e = (
|
|
1875
1879
|
/*getErrorMessage*/
|
|
1876
1880
|
t[3]() + ""
|
|
@@ -1894,16 +1898,16 @@ function hr(t) {
|
|
|
1894
1898
|
}
|
|
1895
1899
|
};
|
|
1896
1900
|
}
|
|
1897
|
-
function
|
|
1901
|
+
function Ir(t) {
|
|
1898
1902
|
let e, r;
|
|
1899
|
-
return e = new
|
|
1903
|
+
return e = new Tn({ props: { slot: "icon" } }), {
|
|
1900
1904
|
c() {
|
|
1901
1905
|
w(e.$$.fragment);
|
|
1902
1906
|
},
|
|
1903
1907
|
m(n, i) {
|
|
1904
1908
|
I(e, n, i), r = !0;
|
|
1905
1909
|
},
|
|
1906
|
-
p:
|
|
1910
|
+
p: y,
|
|
1907
1911
|
i(n) {
|
|
1908
1912
|
r || (u(e.$$.fragment, n), r = !0);
|
|
1909
1913
|
},
|
|
@@ -1915,7 +1919,7 @@ function Er(t) {
|
|
|
1915
1919
|
}
|
|
1916
1920
|
};
|
|
1917
1921
|
}
|
|
1918
|
-
function
|
|
1922
|
+
function br(t) {
|
|
1919
1923
|
let e, r;
|
|
1920
1924
|
return e = new Ct({
|
|
1921
1925
|
props: {
|
|
@@ -1930,8 +1934,8 @@ function Ir(t) {
|
|
|
1930
1934
|
),
|
|
1931
1935
|
type: "error",
|
|
1932
1936
|
$$slots: {
|
|
1933
|
-
icon: [
|
|
1934
|
-
default: [
|
|
1937
|
+
icon: [Ir],
|
|
1938
|
+
default: [Er]
|
|
1935
1939
|
},
|
|
1936
1940
|
$$scope: { ctx: t }
|
|
1937
1941
|
}
|
|
@@ -1962,7 +1966,7 @@ function Ir(t) {
|
|
|
1962
1966
|
}
|
|
1963
1967
|
};
|
|
1964
1968
|
}
|
|
1965
|
-
function
|
|
1969
|
+
function wr(t, e, r) {
|
|
1966
1970
|
let { brandingInfo: n = null } = e, { lastError: i } = e, { supportEmail: o = null } = e, { onContinue: s } = e;
|
|
1967
1971
|
Se(() => {
|
|
1968
1972
|
V.errorLog(`Displayed error: ${S[i.errorCode]}. Message: ${i.message ?? "None"}. Underlying error: ${i.underlyingErrorMessage ?? "None"}`);
|
|
@@ -1988,9 +1992,9 @@ function br(t, e, r) {
|
|
|
1988
1992
|
"brandingInfo" in c && r(0, n = c.brandingInfo), "lastError" in c && r(4, i = c.lastError), "supportEmail" in c && r(1, o = c.supportEmail), "onContinue" in c && r(2, s = c.onContinue);
|
|
1989
1993
|
}, [n, o, s, l, i];
|
|
1990
1994
|
}
|
|
1991
|
-
class
|
|
1995
|
+
class kr extends U {
|
|
1992
1996
|
constructor(e) {
|
|
1993
|
-
super(), N(this, e,
|
|
1997
|
+
super(), N(this, e, wr, br, P, {
|
|
1994
1998
|
brandingInfo: 0,
|
|
1995
1999
|
lastError: 4,
|
|
1996
2000
|
supportEmail: 1,
|
|
@@ -1998,22 +2002,22 @@ class wr extends U {
|
|
|
1998
2002
|
});
|
|
1999
2003
|
}
|
|
2000
2004
|
}
|
|
2001
|
-
const
|
|
2002
|
-
function
|
|
2005
|
+
const $r = "data:image/svg+xml,%3csvg%20width='124'%20height='124'%20viewBox='0%200%20124%20124'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='62'%20cy='62'%20r='62'%20fill='%23576CDB'/%3e%3crect%20x='44.1116'%20y='56'%20width='27.5'%20height='11'%20transform='rotate(45%2044.1116%2056)'%20fill='white'/%3e%3crect%20x='79.1133'%20y='44.334'%20width='11'%20height='44'%20transform='rotate(45%2079.1133%2044.334)'%20fill='white'/%3e%3c/svg%3e";
|
|
2006
|
+
function vr(t) {
|
|
2003
2007
|
O(t, "svelte-1609h93", "img.svelte-1609h93{width:124px;height:124px;margin:0 auto}");
|
|
2004
2008
|
}
|
|
2005
|
-
function
|
|
2009
|
+
function yr(t) {
|
|
2006
2010
|
let e, r;
|
|
2007
2011
|
return {
|
|
2008
2012
|
c() {
|
|
2009
|
-
e = k("img"),
|
|
2013
|
+
e = k("img"), Z(e.src, r = $r) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon svelte-1609h93");
|
|
2010
2014
|
},
|
|
2011
2015
|
m(n, i) {
|
|
2012
2016
|
p(n, e, i);
|
|
2013
2017
|
},
|
|
2014
|
-
p:
|
|
2015
|
-
i:
|
|
2016
|
-
o:
|
|
2018
|
+
p: y,
|
|
2019
|
+
i: y,
|
|
2020
|
+
o: y,
|
|
2017
2021
|
d(n) {
|
|
2018
2022
|
n && g(e);
|
|
2019
2023
|
}
|
|
@@ -2021,10 +2025,10 @@ function vr(t) {
|
|
|
2021
2025
|
}
|
|
2022
2026
|
class Br extends U {
|
|
2023
2027
|
constructor(e) {
|
|
2024
|
-
super(), N(this, e, null,
|
|
2028
|
+
super(), N(this, e, null, yr, P, {}, vr);
|
|
2025
2029
|
}
|
|
2026
2030
|
}
|
|
2027
|
-
function
|
|
2031
|
+
function Dr(t) {
|
|
2028
2032
|
let e;
|
|
2029
2033
|
return {
|
|
2030
2034
|
c() {
|
|
@@ -2038,7 +2042,7 @@ function yr(t) {
|
|
|
2038
2042
|
}
|
|
2039
2043
|
};
|
|
2040
2044
|
}
|
|
2041
|
-
function
|
|
2045
|
+
function Cr(t) {
|
|
2042
2046
|
let e, r;
|
|
2043
2047
|
return e = new Br({ props: { slot: "icon" } }), {
|
|
2044
2048
|
c() {
|
|
@@ -2047,7 +2051,7 @@ function Dr(t) {
|
|
|
2047
2051
|
m(n, i) {
|
|
2048
2052
|
I(e, n, i), r = !0;
|
|
2049
2053
|
},
|
|
2050
|
-
p:
|
|
2054
|
+
p: y,
|
|
2051
2055
|
i(n) {
|
|
2052
2056
|
r || (u(e.$$.fragment, n), r = !0);
|
|
2053
2057
|
},
|
|
@@ -2059,7 +2063,7 @@ function Dr(t) {
|
|
|
2059
2063
|
}
|
|
2060
2064
|
};
|
|
2061
2065
|
}
|
|
2062
|
-
function
|
|
2066
|
+
function Mr(t) {
|
|
2063
2067
|
let e, r;
|
|
2064
2068
|
return e = new Ct({
|
|
2065
2069
|
props: {
|
|
@@ -2074,8 +2078,8 @@ function Cr(t) {
|
|
|
2074
2078
|
t[1]
|
|
2075
2079
|
),
|
|
2076
2080
|
$$slots: {
|
|
2077
|
-
icon: [
|
|
2078
|
-
default: [
|
|
2081
|
+
icon: [Cr],
|
|
2082
|
+
default: [Dr]
|
|
2079
2083
|
},
|
|
2080
2084
|
$$scope: { ctx: t }
|
|
2081
2085
|
}
|
|
@@ -2112,24 +2116,24 @@ function Qr(t, e, r) {
|
|
|
2112
2116
|
"brandingInfo" in o && r(0, n = o.brandingInfo), "onContinue" in o && r(1, i = o.onContinue);
|
|
2113
2117
|
}, [n, i];
|
|
2114
2118
|
}
|
|
2115
|
-
class
|
|
2119
|
+
class Pr extends U {
|
|
2116
2120
|
constructor(e) {
|
|
2117
|
-
super(), N(this, e, Qr,
|
|
2121
|
+
super(), N(this, e, Qr, Mr, P, { brandingInfo: 0, onContinue: 1 });
|
|
2118
2122
|
}
|
|
2119
2123
|
}
|
|
2120
|
-
function
|
|
2124
|
+
function Tr(t, e, r, n, i = {}) {
|
|
2121
2125
|
const o = r.create(e, i);
|
|
2122
2126
|
return o.mount(t), o.on("change", (s) => n("change", s)), o.on("ready", (s) => n("ready", s)), o.on("focus", (s) => n("focus", s)), o.on("blur", (s) => n("blur", s)), o.on("escape", (s) => n("escape", s)), o.on("click", (s) => n("click", s)), o.on("loaderror", (s) => n("loaderror", s)), o.on("loaderstart", (s) => n("loaderstart", s)), o.on("networkschange", (s) => n("networkschange", s)), o;
|
|
2123
2127
|
}
|
|
2124
|
-
const
|
|
2125
|
-
function
|
|
2126
|
-
if (!
|
|
2128
|
+
const Nr = typeof window > "u";
|
|
2129
|
+
function Ur(t) {
|
|
2130
|
+
if (!Nr)
|
|
2127
2131
|
return t.registerAppInfo({
|
|
2128
2132
|
name: "svelte-stripe-js",
|
|
2129
2133
|
url: "https://svelte-stripe-js.vercel.app"
|
|
2130
2134
|
});
|
|
2131
2135
|
}
|
|
2132
|
-
function
|
|
2136
|
+
function Rr(t) {
|
|
2133
2137
|
let e;
|
|
2134
2138
|
return {
|
|
2135
2139
|
c() {
|
|
@@ -2138,19 +2142,19 @@ function Ur(t) {
|
|
|
2138
2142
|
m(r, n) {
|
|
2139
2143
|
p(r, e, n), t[6](e);
|
|
2140
2144
|
},
|
|
2141
|
-
p:
|
|
2142
|
-
i:
|
|
2143
|
-
o:
|
|
2145
|
+
p: y,
|
|
2146
|
+
i: y,
|
|
2147
|
+
o: y,
|
|
2144
2148
|
d(r) {
|
|
2145
2149
|
r && g(e), t[6](null);
|
|
2146
2150
|
}
|
|
2147
2151
|
};
|
|
2148
2152
|
}
|
|
2149
|
-
function
|
|
2153
|
+
function Sr(t, e, r) {
|
|
2150
2154
|
let n, i;
|
|
2151
|
-
const o =
|
|
2155
|
+
const o = sn(), { elements: s } = cn("stripe");
|
|
2152
2156
|
let { options: l = void 0 } = e;
|
|
2153
|
-
Se(() => (n =
|
|
2157
|
+
Se(() => (n = Tr(i, "payment", s, o, l), () => n.destroy()));
|
|
2154
2158
|
function c() {
|
|
2155
2159
|
n.blur();
|
|
2156
2160
|
}
|
|
@@ -2172,9 +2176,9 @@ function Rr(t, e, r) {
|
|
|
2172
2176
|
"options" in v && r(1, l = v.options);
|
|
2173
2177
|
}, [i, l, c, a, f, d, E];
|
|
2174
2178
|
}
|
|
2175
|
-
class
|
|
2179
|
+
class Or extends U {
|
|
2176
2180
|
constructor(e) {
|
|
2177
|
-
super(), N(this, e,
|
|
2181
|
+
super(), N(this, e, Sr, Rr, P, {
|
|
2178
2182
|
options: 1,
|
|
2179
2183
|
blur: 2,
|
|
2180
2184
|
clear: 3,
|
|
@@ -2246,7 +2250,7 @@ function st(t) {
|
|
|
2246
2250
|
}
|
|
2247
2251
|
};
|
|
2248
2252
|
}
|
|
2249
|
-
function
|
|
2253
|
+
function Lr(t) {
|
|
2250
2254
|
let e, r, n = (
|
|
2251
2255
|
/*stripe*/
|
|
2252
2256
|
t[1] && /*elements*/
|
|
@@ -2278,23 +2282,23 @@ function Or(t) {
|
|
|
2278
2282
|
}
|
|
2279
2283
|
};
|
|
2280
2284
|
}
|
|
2281
|
-
function
|
|
2282
|
-
let n, { $$slots: i = {}, $$scope: o } = e, { stripe: s } = e, { mode: l = void 0 } = e, { theme: c = "stripe" } = e, { variables: a = {} } = e, { rules: f = {} } = e, { labels: d = "above" } = e, { loader: E = "auto" } = e, { fonts: v = [] } = e, { locale: A = "auto" } = e, { currency:
|
|
2285
|
+
function xr(t, e, r) {
|
|
2286
|
+
let n, { $$slots: i = {}, $$scope: o } = e, { stripe: s } = e, { mode: l = void 0 } = e, { theme: c = "stripe" } = e, { variables: a = {} } = e, { rules: f = {} } = e, { labels: d = "above" } = e, { loader: E = "auto" } = e, { fonts: v = [] } = e, { locale: A = "auto" } = e, { currency: M = void 0 } = e, { amount: h = void 0 } = e, { clientSecret: B = void 0 } = e, { elements: F = null } = e;
|
|
2283
2287
|
return t.$$set = ($) => {
|
|
2284
|
-
"stripe" in $ && r(1, s = $.stripe), "mode" in $ && r(2, l = $.mode), "theme" in $ && r(3, c = $.theme), "variables" in $ && r(4, a = $.variables), "rules" in $ && r(5, f = $.rules), "labels" in $ && r(6, d = $.labels), "loader" in $ && r(7, E = $.loader), "fonts" in $ && r(8, v = $.fonts), "locale" in $ && r(9, A = $.locale), "currency" in $ && r(10,
|
|
2288
|
+
"stripe" in $ && r(1, s = $.stripe), "mode" in $ && r(2, l = $.mode), "theme" in $ && r(3, c = $.theme), "variables" in $ && r(4, a = $.variables), "rules" in $ && r(5, f = $.rules), "labels" in $ && r(6, d = $.labels), "loader" in $ && r(7, E = $.loader), "fonts" in $ && r(8, v = $.fonts), "locale" in $ && r(9, A = $.locale), "currency" in $ && r(10, M = $.currency), "amount" in $ && r(11, h = $.amount), "clientSecret" in $ && r(12, B = $.clientSecret), "elements" in $ && r(0, F = $.elements), "$$scope" in $ && r(14, o = $.$$scope);
|
|
2285
2289
|
}, t.$$.update = () => {
|
|
2286
2290
|
t.$$.dirty & /*theme, variables, rules, labels*/
|
|
2287
2291
|
120 && r(13, n = { theme: c, variables: a, rules: f, labels: d }), t.$$.dirty & /*stripe, elements, mode, currency, amount, appearance, clientSecret, fonts, loader, locale*/
|
|
2288
2292
|
16263 && s && !F && (r(0, F = s.elements({
|
|
2289
2293
|
mode: l,
|
|
2290
|
-
currency:
|
|
2294
|
+
currency: M,
|
|
2291
2295
|
amount: h,
|
|
2292
2296
|
appearance: n,
|
|
2293
|
-
clientSecret:
|
|
2297
|
+
clientSecret: B,
|
|
2294
2298
|
fonts: v,
|
|
2295
2299
|
loader: E,
|
|
2296
2300
|
locale: A
|
|
2297
|
-
})),
|
|
2301
|
+
})), Ur(s), ln("stripe", { stripe: s, elements: F })), t.$$.dirty & /*elements, appearance, locale*/
|
|
2298
2302
|
8705 && F && F.update({ appearance: n, locale: A });
|
|
2299
2303
|
}, [
|
|
2300
2304
|
F,
|
|
@@ -2307,17 +2311,17 @@ function Lr(t, e, r) {
|
|
|
2307
2311
|
E,
|
|
2308
2312
|
v,
|
|
2309
2313
|
A,
|
|
2310
|
-
|
|
2314
|
+
M,
|
|
2311
2315
|
h,
|
|
2312
|
-
|
|
2316
|
+
B,
|
|
2313
2317
|
n,
|
|
2314
2318
|
o,
|
|
2315
2319
|
i
|
|
2316
2320
|
];
|
|
2317
2321
|
}
|
|
2318
|
-
class
|
|
2322
|
+
class Fr extends U {
|
|
2319
2323
|
constructor(e) {
|
|
2320
|
-
super(), N(this, e,
|
|
2324
|
+
super(), N(this, e, xr, Lr, P, {
|
|
2321
2325
|
stripe: 1,
|
|
2322
2326
|
mode: 2,
|
|
2323
2327
|
theme: 3,
|
|
@@ -2334,35 +2338,35 @@ class xr extends U {
|
|
|
2334
2338
|
});
|
|
2335
2339
|
}
|
|
2336
2340
|
}
|
|
2337
|
-
var
|
|
2338
|
-
for (var e = document.querySelectorAll('script[src^="'.concat(
|
|
2341
|
+
var Mt = "https://js.stripe.com/v3", Gr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, lt = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", Yr = function() {
|
|
2342
|
+
for (var e = document.querySelectorAll('script[src^="'.concat(Mt, '"]')), r = 0; r < e.length; r++) {
|
|
2339
2343
|
var n = e[r];
|
|
2340
|
-
if (
|
|
2344
|
+
if (Gr.test(n.src))
|
|
2341
2345
|
return n;
|
|
2342
2346
|
}
|
|
2343
2347
|
return null;
|
|
2344
2348
|
}, ct = function(e) {
|
|
2345
2349
|
var r = e && !e.advancedFraudSignals ? "?advancedFraudSignals=false" : "", n = document.createElement("script");
|
|
2346
|
-
n.src = "".concat(
|
|
2350
|
+
n.src = "".concat(Mt).concat(r);
|
|
2347
2351
|
var i = document.head || document.body;
|
|
2348
2352
|
if (!i)
|
|
2349
2353
|
throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
|
|
2350
2354
|
return i.appendChild(n), n;
|
|
2351
|
-
},
|
|
2355
|
+
}, Hr = function(e, r) {
|
|
2352
2356
|
!e || !e._registerWrapper || e._registerWrapper({
|
|
2353
2357
|
name: "stripe-js",
|
|
2354
|
-
version: "2.
|
|
2358
|
+
version: "2.4.0",
|
|
2355
2359
|
startTime: r
|
|
2356
2360
|
});
|
|
2357
|
-
}, me = null,
|
|
2361
|
+
}, me = null, Ce = null, Me = null, Kr = function(e) {
|
|
2358
2362
|
return function() {
|
|
2359
2363
|
e(new Error("Failed to load Stripe.js"));
|
|
2360
2364
|
};
|
|
2361
|
-
},
|
|
2365
|
+
}, qr = function(e, r) {
|
|
2362
2366
|
return function() {
|
|
2363
2367
|
window.Stripe ? e(window.Stripe) : r(new Error("Stripe.js not available"));
|
|
2364
2368
|
};
|
|
2365
|
-
},
|
|
2369
|
+
}, jr = function(e) {
|
|
2366
2370
|
return me !== null ? me : (me = new Promise(function(r, n) {
|
|
2367
2371
|
if (typeof window > "u" || typeof document > "u") {
|
|
2368
2372
|
r(null);
|
|
@@ -2373,16 +2377,16 @@ var Qt = "https://js.stripe.com/v3", Fr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
|
|
|
2373
2377
|
return;
|
|
2374
2378
|
}
|
|
2375
2379
|
try {
|
|
2376
|
-
var i =
|
|
2380
|
+
var i = Yr();
|
|
2377
2381
|
if (i && e)
|
|
2378
2382
|
console.warn(lt);
|
|
2379
2383
|
else if (!i)
|
|
2380
2384
|
i = ct(e);
|
|
2381
|
-
else if (i &&
|
|
2385
|
+
else if (i && Me !== null && Ce !== null) {
|
|
2382
2386
|
var o;
|
|
2383
|
-
i.removeEventListener("load",
|
|
2387
|
+
i.removeEventListener("load", Me), i.removeEventListener("error", Ce), (o = i.parentNode) === null || o === void 0 || o.removeChild(i), i = ct(e);
|
|
2384
2388
|
}
|
|
2385
|
-
|
|
2389
|
+
Me = qr(r, n), Ce = Kr(n), i.addEventListener("load", Me), i.addEventListener("error", Ce);
|
|
2386
2390
|
} catch (s) {
|
|
2387
2391
|
n(s);
|
|
2388
2392
|
return;
|
|
@@ -2390,34 +2394,34 @@ var Qt = "https://js.stripe.com/v3", Fr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
|
|
|
2390
2394
|
}), me.catch(function(r) {
|
|
2391
2395
|
return me = null, Promise.reject(r);
|
|
2392
2396
|
}));
|
|
2393
|
-
},
|
|
2397
|
+
}, Jr = function(e, r, n) {
|
|
2394
2398
|
if (e === null)
|
|
2395
2399
|
return null;
|
|
2396
2400
|
var i = e.apply(void 0, r);
|
|
2397
|
-
return
|
|
2398
|
-
}, ge,
|
|
2399
|
-
return ge || (ge =
|
|
2401
|
+
return Hr(i, n), i;
|
|
2402
|
+
}, ge, Qt = !1, Pt = function() {
|
|
2403
|
+
return ge || (ge = jr(null).catch(function(e) {
|
|
2400
2404
|
return ge = null, Promise.reject(e);
|
|
2401
2405
|
}), ge);
|
|
2402
2406
|
};
|
|
2403
2407
|
Promise.resolve().then(function() {
|
|
2404
2408
|
return Pt();
|
|
2405
2409
|
}).catch(function(t) {
|
|
2406
|
-
|
|
2410
|
+
Qt || console.warn(t);
|
|
2407
2411
|
});
|
|
2408
|
-
var
|
|
2412
|
+
var Vr = function() {
|
|
2409
2413
|
for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++)
|
|
2410
2414
|
r[n] = arguments[n];
|
|
2411
|
-
|
|
2415
|
+
Qt = !0;
|
|
2412
2416
|
var i = Date.now();
|
|
2413
2417
|
return Pt().then(function(o) {
|
|
2414
|
-
return
|
|
2418
|
+
return Jr(o, r, i);
|
|
2415
2419
|
});
|
|
2416
2420
|
};
|
|
2417
|
-
function
|
|
2421
|
+
function Wr(t) {
|
|
2418
2422
|
O(t, "svelte-1xe711j", ".rcb-header-layout.svelte-1xe711j{display:flex;justify-content:space-between;align-items:center;width:100%;font-size:24px;margin:0;font-weight:500}");
|
|
2419
2423
|
}
|
|
2420
|
-
function
|
|
2424
|
+
function zr(t) {
|
|
2421
2425
|
let e, r;
|
|
2422
2426
|
const n = (
|
|
2423
2427
|
/*#slots*/
|
|
@@ -2468,12 +2472,12 @@ function Wr(t) {
|
|
|
2468
2472
|
}
|
|
2469
2473
|
};
|
|
2470
2474
|
}
|
|
2471
|
-
function
|
|
2475
|
+
function Xr(t) {
|
|
2472
2476
|
let e, r;
|
|
2473
2477
|
return e = new ue({
|
|
2474
2478
|
props: {
|
|
2475
2479
|
as: "header",
|
|
2476
|
-
$$slots: { default: [
|
|
2480
|
+
$$slots: { default: [zr] },
|
|
2477
2481
|
$$scope: { ctx: t }
|
|
2478
2482
|
}
|
|
2479
2483
|
}), {
|
|
@@ -2499,38 +2503,38 @@ function zr(t) {
|
|
|
2499
2503
|
}
|
|
2500
2504
|
};
|
|
2501
2505
|
}
|
|
2502
|
-
function
|
|
2506
|
+
function Zr(t, e, r) {
|
|
2503
2507
|
let { $$slots: n = {}, $$scope: i } = e;
|
|
2504
2508
|
return t.$$set = (o) => {
|
|
2505
2509
|
"$$scope" in o && r(1, i = o.$$scope);
|
|
2506
2510
|
}, [n, i];
|
|
2507
2511
|
}
|
|
2508
|
-
class
|
|
2512
|
+
class We extends U {
|
|
2509
2513
|
constructor(e) {
|
|
2510
|
-
super(), N(this, e,
|
|
2514
|
+
super(), N(this, e, Zr, Xr, P, {}, Wr);
|
|
2511
2515
|
}
|
|
2512
2516
|
}
|
|
2513
|
-
const
|
|
2514
|
-
function
|
|
2517
|
+
const ei = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18%208H17V6C17%203.24%2014.76%201%2012%201C9.24%201%207%203.24%207%206V8H6C4.9%208%204%208.9%204%2010V20C4%2021.1%204.9%2022%206%2022H18C19.1%2022%2020%2021.1%2020%2020V10C20%208.9%2019.1%208%2018%208ZM12%2017C10.9%2017%2010%2016.1%2010%2015C10%2013.9%2010.9%2013%2012%2013C13.1%2013%2014%2013.9%2014%2015C14%2016.1%2013.1%2017%2012%2017ZM15.1%208H8.9V6C8.9%204.29%2010.29%202.9%2012%202.9C13.71%202.9%2015.1%204.29%2015.1%206V8Z'%20fill='%2311D483'/%3e%3c/svg%3e";
|
|
2518
|
+
function ti(t) {
|
|
2515
2519
|
let e, r;
|
|
2516
2520
|
return {
|
|
2517
2521
|
c() {
|
|
2518
|
-
e = k("img"),
|
|
2522
|
+
e = k("img"), Z(e.src, r = ei) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon");
|
|
2519
2523
|
},
|
|
2520
2524
|
m(n, i) {
|
|
2521
2525
|
p(n, e, i);
|
|
2522
2526
|
},
|
|
2523
|
-
p:
|
|
2524
|
-
i:
|
|
2525
|
-
o:
|
|
2527
|
+
p: y,
|
|
2528
|
+
i: y,
|
|
2529
|
+
o: y,
|
|
2526
2530
|
d(n) {
|
|
2527
2531
|
n && g(e);
|
|
2528
2532
|
}
|
|
2529
2533
|
};
|
|
2530
2534
|
}
|
|
2531
|
-
class
|
|
2535
|
+
class ni extends U {
|
|
2532
2536
|
constructor(e) {
|
|
2533
|
-
super(), N(this, e, null,
|
|
2537
|
+
super(), N(this, e, null, ti, P, {});
|
|
2534
2538
|
}
|
|
2535
2539
|
}
|
|
2536
2540
|
const Ae = {
|
|
@@ -2542,7 +2546,7 @@ const Ae = {
|
|
|
2542
2546
|
"grey-ui-dark": "#dfdfdf",
|
|
2543
2547
|
white: "#ffffff"
|
|
2544
2548
|
};
|
|
2545
|
-
function
|
|
2549
|
+
function ri(t) {
|
|
2546
2550
|
O(t, "svelte-rjmul6", `.processing.svelte-rjmul6{width:12px;aspect-ratio:1;border-radius:50%;animation:svelte-rjmul6-l5 1.5s infinite linear}@keyframes svelte-rjmul6-l5{0%{box-shadow:20px 0 #fff2,
|
|
2547
2551
|
-20px 0 #fff2;background:#fff2}25%{box-shadow:20px 0 #fff2,
|
|
2548
2552
|
-20px 0 #ffff;background:#fff2}50%{box-shadow:20px 0 #fff2,
|
|
@@ -2550,7 +2554,7 @@ function ni(t) {
|
|
|
2550
2554
|
-20px 0 #fff2;background:#fff2}100%{box-shadow:20px 0 #fff2,
|
|
2551
2555
|
-20px 0 #fff2;background:#fff2}}`);
|
|
2552
2556
|
}
|
|
2553
|
-
function
|
|
2557
|
+
function ii(t) {
|
|
2554
2558
|
let e;
|
|
2555
2559
|
return {
|
|
2556
2560
|
c() {
|
|
@@ -2559,9 +2563,9 @@ function ri(t) {
|
|
|
2559
2563
|
m(r, n) {
|
|
2560
2564
|
p(r, e, n);
|
|
2561
2565
|
},
|
|
2562
|
-
p:
|
|
2563
|
-
i:
|
|
2564
|
-
o:
|
|
2566
|
+
p: y,
|
|
2567
|
+
i: y,
|
|
2568
|
+
o: y,
|
|
2565
2569
|
d(r) {
|
|
2566
2570
|
r && g(e);
|
|
2567
2571
|
}
|
|
@@ -2569,22 +2573,22 @@ function ri(t) {
|
|
|
2569
2573
|
}
|
|
2570
2574
|
class Tt extends U {
|
|
2571
2575
|
constructor(e) {
|
|
2572
|
-
super(), N(this, e, null,
|
|
2576
|
+
super(), N(this, e, null, ii, P, {}, ri);
|
|
2573
2577
|
}
|
|
2574
2578
|
}
|
|
2575
|
-
function
|
|
2579
|
+
function oi(t) {
|
|
2576
2580
|
O(t, "svelte-1wxt892", ".rcb-stripe-elements-container.svelte-1wxt892{width:100%;margin-top:32px;margin-bottom:24px}");
|
|
2577
2581
|
}
|
|
2578
|
-
function
|
|
2582
|
+
function si(t) {
|
|
2579
2583
|
let e, r;
|
|
2580
|
-
return e = new
|
|
2584
|
+
return e = new Je({}), {
|
|
2581
2585
|
c() {
|
|
2582
2586
|
w(e.$$.fragment);
|
|
2583
2587
|
},
|
|
2584
2588
|
m(n, i) {
|
|
2585
2589
|
I(e, n, i), r = !0;
|
|
2586
2590
|
},
|
|
2587
|
-
p:
|
|
2591
|
+
p: y,
|
|
2588
2592
|
i(n) {
|
|
2589
2593
|
r || (u(e.$$.fragment, n), r = !0);
|
|
2590
2594
|
},
|
|
@@ -2596,7 +2600,7 @@ function oi(t) {
|
|
|
2596
2600
|
}
|
|
2597
2601
|
};
|
|
2598
2602
|
}
|
|
2599
|
-
function
|
|
2603
|
+
function li(t) {
|
|
2600
2604
|
let e, r, n, i, o, s;
|
|
2601
2605
|
function l(a) {
|
|
2602
2606
|
t[9](a);
|
|
@@ -2637,18 +2641,18 @@ function si(t) {
|
|
|
2637
2641
|
},
|
|
2638
2642
|
".Input--invalid": { boxShadow: "none" }
|
|
2639
2643
|
},
|
|
2640
|
-
$$slots: { default: [
|
|
2644
|
+
$$slots: { default: [_i] },
|
|
2641
2645
|
$$scope: { ctx: t }
|
|
2642
2646
|
};
|
|
2643
2647
|
return (
|
|
2644
2648
|
/*elements*/
|
|
2645
2649
|
t[2] !== void 0 && (c.elements = /*elements*/
|
|
2646
|
-
t[2]), r = new
|
|
2650
|
+
t[2]), r = new Fr({ props: c }), Ne.push(() => gn(r, "elements", l)), {
|
|
2647
2651
|
c() {
|
|
2648
2652
|
e = k("form"), w(r.$$.fragment);
|
|
2649
2653
|
},
|
|
2650
2654
|
m(a, f) {
|
|
2651
|
-
p(a, e, f), I(r, e, null), i = !0, o || (s =
|
|
2655
|
+
p(a, e, f), I(r, e, null), i = !0, o || (s = $e(e, "submit", kt(
|
|
2652
2656
|
/*handleContinue*/
|
|
2653
2657
|
t[5]
|
|
2654
2658
|
)), o = !0);
|
|
@@ -2660,7 +2664,7 @@ function si(t) {
|
|
|
2660
2664
|
a[3]), f & /*$$scope, processing, onClose*/
|
|
2661
2665
|
2051 && (d.$$scope = { dirty: f, ctx: a }), !n && f & /*elements*/
|
|
2662
2666
|
4 && (n = !0, d.elements = /*elements*/
|
|
2663
|
-
a[2],
|
|
2667
|
+
a[2], fn(() => n = !1)), r.$set(d);
|
|
2664
2668
|
},
|
|
2665
2669
|
i(a) {
|
|
2666
2670
|
i || (u(r.$$.fragment, a), i = !0);
|
|
@@ -2674,16 +2678,16 @@ function si(t) {
|
|
|
2674
2678
|
}
|
|
2675
2679
|
);
|
|
2676
2680
|
}
|
|
2677
|
-
function
|
|
2681
|
+
function ci(t) {
|
|
2678
2682
|
let e, r, n, i;
|
|
2679
|
-
return n = new
|
|
2683
|
+
return n = new ni({}), {
|
|
2680
2684
|
c() {
|
|
2681
2685
|
e = k("div"), e.textContent = "Secure Checkout", r = T(), w(n.$$.fragment);
|
|
2682
2686
|
},
|
|
2683
2687
|
m(o, s) {
|
|
2684
2688
|
p(o, e, s), p(o, r, s), I(n, o, s), i = !0;
|
|
2685
2689
|
},
|
|
2686
|
-
p:
|
|
2690
|
+
p: y,
|
|
2687
2691
|
i(o) {
|
|
2688
2692
|
i || (u(n.$$.fragment, o), i = !0);
|
|
2689
2693
|
},
|
|
@@ -2695,16 +2699,16 @@ function li(t) {
|
|
|
2695
2699
|
}
|
|
2696
2700
|
};
|
|
2697
2701
|
}
|
|
2698
|
-
function
|
|
2702
|
+
function ai(t) {
|
|
2699
2703
|
let e, r, n;
|
|
2700
|
-
return r = new
|
|
2704
|
+
return r = new Or({}), {
|
|
2701
2705
|
c() {
|
|
2702
2706
|
e = k("div"), w(r.$$.fragment), _(e, "class", "rcb-stripe-elements-container svelte-1wxt892");
|
|
2703
2707
|
},
|
|
2704
2708
|
m(i, o) {
|
|
2705
2709
|
p(i, e, o), I(r, e, null), n = !0;
|
|
2706
2710
|
},
|
|
2707
|
-
p:
|
|
2711
|
+
p: y,
|
|
2708
2712
|
i(i) {
|
|
2709
2713
|
n || (u(r.$$.fragment, i), n = !0);
|
|
2710
2714
|
},
|
|
@@ -2716,7 +2720,7 @@ function ci(t) {
|
|
|
2716
2720
|
}
|
|
2717
2721
|
};
|
|
2718
2722
|
}
|
|
2719
|
-
function
|
|
2723
|
+
function ui(t) {
|
|
2720
2724
|
let e;
|
|
2721
2725
|
return {
|
|
2722
2726
|
c() {
|
|
@@ -2725,14 +2729,14 @@ function ai(t) {
|
|
|
2725
2729
|
m(r, n) {
|
|
2726
2730
|
p(r, e, n);
|
|
2727
2731
|
},
|
|
2728
|
-
i:
|
|
2729
|
-
o:
|
|
2732
|
+
i: y,
|
|
2733
|
+
o: y,
|
|
2730
2734
|
d(r) {
|
|
2731
2735
|
r && g(e);
|
|
2732
2736
|
}
|
|
2733
2737
|
};
|
|
2734
2738
|
}
|
|
2735
|
-
function
|
|
2739
|
+
function fi(t) {
|
|
2736
2740
|
let e, r;
|
|
2737
2741
|
return e = new Tt({}), {
|
|
2738
2742
|
c() {
|
|
@@ -2752,9 +2756,9 @@ function ui(t) {
|
|
|
2752
2756
|
}
|
|
2753
2757
|
};
|
|
2754
2758
|
}
|
|
2755
|
-
function
|
|
2759
|
+
function di(t) {
|
|
2756
2760
|
let e, r, n, i;
|
|
2757
|
-
const o = [
|
|
2761
|
+
const o = [fi, ui], s = [];
|
|
2758
2762
|
function l(c, a) {
|
|
2759
2763
|
return (
|
|
2760
2764
|
/*processing*/
|
|
@@ -2785,7 +2789,7 @@ function fi(t) {
|
|
|
2785
2789
|
}
|
|
2786
2790
|
};
|
|
2787
2791
|
}
|
|
2788
|
-
function
|
|
2792
|
+
function mi(t) {
|
|
2789
2793
|
let e;
|
|
2790
2794
|
return {
|
|
2791
2795
|
c() {
|
|
@@ -2799,25 +2803,25 @@ function di(t) {
|
|
|
2799
2803
|
}
|
|
2800
2804
|
};
|
|
2801
2805
|
}
|
|
2802
|
-
function
|
|
2806
|
+
function gi(t) {
|
|
2803
2807
|
let e, r, n, i;
|
|
2804
|
-
return e = new
|
|
2808
|
+
return e = new we({
|
|
2805
2809
|
props: {
|
|
2806
2810
|
disabled: (
|
|
2807
2811
|
/*processing*/
|
|
2808
2812
|
t[0]
|
|
2809
2813
|
),
|
|
2810
|
-
$$slots: { default: [
|
|
2814
|
+
$$slots: { default: [di] },
|
|
2811
2815
|
$$scope: { ctx: t }
|
|
2812
2816
|
}
|
|
2813
|
-
}), n = new
|
|
2817
|
+
}), n = new we({
|
|
2814
2818
|
props: {
|
|
2815
2819
|
disabled: (
|
|
2816
2820
|
/*processing*/
|
|
2817
2821
|
t[0]
|
|
2818
2822
|
),
|
|
2819
2823
|
intent: "secondary",
|
|
2820
|
-
$$slots: { default: [
|
|
2824
|
+
$$slots: { default: [mi] },
|
|
2821
2825
|
$$scope: { ctx: t }
|
|
2822
2826
|
}
|
|
2823
2827
|
}), n.$on("click", function() {
|
|
@@ -2856,11 +2860,11 @@ function mi(t) {
|
|
|
2856
2860
|
}
|
|
2857
2861
|
};
|
|
2858
2862
|
}
|
|
2859
|
-
function
|
|
2863
|
+
function pi(t) {
|
|
2860
2864
|
let e, r;
|
|
2861
|
-
return e = new
|
|
2865
|
+
return e = new ve({
|
|
2862
2866
|
props: {
|
|
2863
|
-
$$slots: { default: [
|
|
2867
|
+
$$slots: { default: [gi] },
|
|
2864
2868
|
$$scope: { ctx: t }
|
|
2865
2869
|
}
|
|
2866
2870
|
}), {
|
|
@@ -2886,21 +2890,21 @@ function gi(t) {
|
|
|
2886
2890
|
}
|
|
2887
2891
|
};
|
|
2888
2892
|
}
|
|
2889
|
-
function
|
|
2893
|
+
function _i(t) {
|
|
2890
2894
|
let e, r, n, i, o, s;
|
|
2891
|
-
return e = new
|
|
2895
|
+
return e = new We({
|
|
2892
2896
|
props: {
|
|
2893
|
-
$$slots: { default: [
|
|
2897
|
+
$$slots: { default: [ci] },
|
|
2894
2898
|
$$scope: { ctx: t }
|
|
2895
2899
|
}
|
|
2896
2900
|
}), n = new ue({
|
|
2897
2901
|
props: {
|
|
2898
|
-
$$slots: { default: [
|
|
2902
|
+
$$slots: { default: [ai] },
|
|
2899
2903
|
$$scope: { ctx: t }
|
|
2900
2904
|
}
|
|
2901
|
-
}), o = new
|
|
2905
|
+
}), o = new Ve({
|
|
2902
2906
|
props: {
|
|
2903
|
-
$$slots: { default: [
|
|
2907
|
+
$$slots: { default: [pi] },
|
|
2904
2908
|
$$scope: { ctx: t }
|
|
2905
2909
|
}
|
|
2906
2910
|
}), {
|
|
@@ -2932,9 +2936,9 @@ function pi(t) {
|
|
|
2932
2936
|
}
|
|
2933
2937
|
};
|
|
2934
2938
|
}
|
|
2935
|
-
function
|
|
2939
|
+
function Ai(t) {
|
|
2936
2940
|
let e, r, n, i;
|
|
2937
|
-
const o = [
|
|
2941
|
+
const o = [li, si], s = [];
|
|
2938
2942
|
function l(c, a) {
|
|
2939
2943
|
return (
|
|
2940
2944
|
/*stripe*/
|
|
@@ -2966,15 +2970,15 @@ function _i(t) {
|
|
|
2966
2970
|
}
|
|
2967
2971
|
};
|
|
2968
2972
|
}
|
|
2969
|
-
function
|
|
2973
|
+
function hi(t, e, r) {
|
|
2970
2974
|
let { onClose: n } = e, { onContinue: i } = e, { onError: o } = e, { paymentInfoCollectionMetadata: s } = e, { processing: l = !1 } = e;
|
|
2971
2975
|
const c = s.data.client_secret;
|
|
2972
2976
|
let a = null, f, d;
|
|
2973
2977
|
Se(async () => {
|
|
2974
|
-
const A = s.data.publishable_api_key,
|
|
2975
|
-
if (!A || !
|
|
2978
|
+
const A = s.data.publishable_api_key, M = s.data.stripe_account_id;
|
|
2979
|
+
if (!A || !M)
|
|
2976
2980
|
throw new Error("Stripe publishable key or account ID not found");
|
|
2977
|
-
r(3, a = await
|
|
2981
|
+
r(3, a = await Vr(A, { stripeAccount: M }));
|
|
2978
2982
|
});
|
|
2979
2983
|
const E = async () => {
|
|
2980
2984
|
if (l || !a || !d)
|
|
@@ -3007,13 +3011,13 @@ function Ai(t, e, r) {
|
|
|
3007
3011
|
v
|
|
3008
3012
|
];
|
|
3009
3013
|
}
|
|
3010
|
-
class
|
|
3014
|
+
class Ei extends U {
|
|
3011
3015
|
constructor(e) {
|
|
3012
3016
|
super(), N(
|
|
3013
3017
|
this,
|
|
3014
3018
|
e,
|
|
3019
|
+
hi,
|
|
3015
3020
|
Ai,
|
|
3016
|
-
_i,
|
|
3017
3021
|
P,
|
|
3018
3022
|
{
|
|
3019
3023
|
onClose: 1,
|
|
@@ -3022,14 +3026,14 @@ class hi extends U {
|
|
|
3022
3026
|
paymentInfoCollectionMetadata: 8,
|
|
3023
3027
|
processing: 0
|
|
3024
3028
|
},
|
|
3025
|
-
|
|
3029
|
+
oi
|
|
3026
3030
|
);
|
|
3027
3031
|
}
|
|
3028
3032
|
}
|
|
3029
|
-
function
|
|
3033
|
+
function Ii(t) {
|
|
3030
3034
|
O(t, "svelte-favd20", "form.svelte-favd20.svelte-favd20{display:flex;flex-direction:column;min-height:100%;flex-grow:1}.form-container.svelte-favd20.svelte-favd20{display:flex;flex-direction:column;width:100%;margin-top:32px;margin-bottom:16px}.form-label.svelte-favd20.svelte-favd20{margin-top:8px;margin-bottom:8px;display:block;font-weight:500;line-height:22px}.form-input.error.svelte-favd20 input.svelte-favd20{border-color:var(--rc-color-error)}.form-error.svelte-favd20.svelte-favd20{margin-top:4px;font-size:16px;line-height:20px;min-height:40px;color:var(--rc-color-error)}input.svelte-favd20.svelte-favd20{width:100%;box-sizing:border-box;padding:8px;border:2px solid var(--rc-color-grey-ui-dark);border-radius:12px;font-size:16px;height:48px;padding:6px 14px}input.svelte-favd20.svelte-favd20:focus{outline:none;border:2px solid var(--rc-color-focus)}");
|
|
3031
3035
|
}
|
|
3032
|
-
function
|
|
3036
|
+
function bi(t) {
|
|
3033
3037
|
let e;
|
|
3034
3038
|
return {
|
|
3035
3039
|
c() {
|
|
@@ -3057,7 +3061,7 @@ function at(t) {
|
|
|
3057
3061
|
},
|
|
3058
3062
|
p(n, i) {
|
|
3059
3063
|
i & /*error*/
|
|
3060
|
-
4 &&
|
|
3064
|
+
4 && ne(
|
|
3061
3065
|
r,
|
|
3062
3066
|
/*error*/
|
|
3063
3067
|
n[2]
|
|
@@ -3068,7 +3072,7 @@ function at(t) {
|
|
|
3068
3072
|
}
|
|
3069
3073
|
};
|
|
3070
3074
|
}
|
|
3071
|
-
function
|
|
3075
|
+
function wi(t) {
|
|
3072
3076
|
let e, r, n, i, o, s, l, c, a, f = (
|
|
3073
3077
|
/*error*/
|
|
3074
3078
|
t[2] && at(t)
|
|
@@ -3079,11 +3083,11 @@ function bi(t) {
|
|
|
3079
3083
|
t[4] + " svelte-favd20"), _(e, "class", "form-container svelte-favd20");
|
|
3080
3084
|
},
|
|
3081
3085
|
m(d, E) {
|
|
3082
|
-
p(d, e, E), D(e, r), D(e, n), D(e, i), D(i, o),
|
|
3086
|
+
p(d, e, E), D(e, r), D(e, n), D(e, i), D(i, o), nt(
|
|
3083
3087
|
o,
|
|
3084
3088
|
/*email*/
|
|
3085
3089
|
t[3]
|
|
3086
|
-
), D(e, l), f && f.m(e, null), c || (a =
|
|
3090
|
+
), D(e, l), f && f.m(e, null), c || (a = $e(
|
|
3087
3091
|
o,
|
|
3088
3092
|
"input",
|
|
3089
3093
|
/*input_input_handler*/
|
|
@@ -3093,7 +3097,7 @@ function bi(t) {
|
|
|
3093
3097
|
p(d, E) {
|
|
3094
3098
|
E & /*email*/
|
|
3095
3099
|
8 && o.value !== /*email*/
|
|
3096
|
-
d[3] &&
|
|
3100
|
+
d[3] && nt(
|
|
3097
3101
|
o,
|
|
3098
3102
|
/*email*/
|
|
3099
3103
|
d[3]
|
|
@@ -3107,7 +3111,7 @@ function bi(t) {
|
|
|
3107
3111
|
}
|
|
3108
3112
|
};
|
|
3109
3113
|
}
|
|
3110
|
-
function
|
|
3114
|
+
function ki(t) {
|
|
3111
3115
|
let e;
|
|
3112
3116
|
return {
|
|
3113
3117
|
c() {
|
|
@@ -3116,14 +3120,14 @@ function wi(t) {
|
|
|
3116
3120
|
m(r, n) {
|
|
3117
3121
|
p(r, e, n);
|
|
3118
3122
|
},
|
|
3119
|
-
i:
|
|
3120
|
-
o:
|
|
3123
|
+
i: y,
|
|
3124
|
+
o: y,
|
|
3121
3125
|
d(r) {
|
|
3122
3126
|
r && g(e);
|
|
3123
3127
|
}
|
|
3124
3128
|
};
|
|
3125
3129
|
}
|
|
3126
|
-
function
|
|
3130
|
+
function $i(t) {
|
|
3127
3131
|
let e, r;
|
|
3128
3132
|
return e = new Tt({}), {
|
|
3129
3133
|
c() {
|
|
@@ -3143,9 +3147,9 @@ function ki(t) {
|
|
|
3143
3147
|
}
|
|
3144
3148
|
};
|
|
3145
3149
|
}
|
|
3146
|
-
function
|
|
3150
|
+
function vi(t) {
|
|
3147
3151
|
let e, r, n, i;
|
|
3148
|
-
const o = [
|
|
3152
|
+
const o = [$i, ki], s = [];
|
|
3149
3153
|
function l(c, a) {
|
|
3150
3154
|
return (
|
|
3151
3155
|
/*processing*/
|
|
@@ -3176,7 +3180,7 @@ function $i(t) {
|
|
|
3176
3180
|
}
|
|
3177
3181
|
};
|
|
3178
3182
|
}
|
|
3179
|
-
function
|
|
3183
|
+
function yi(t) {
|
|
3180
3184
|
let e;
|
|
3181
3185
|
return {
|
|
3182
3186
|
c() {
|
|
@@ -3192,23 +3196,23 @@ function vi(t) {
|
|
|
3192
3196
|
}
|
|
3193
3197
|
function Bi(t) {
|
|
3194
3198
|
let e, r, n, i;
|
|
3195
|
-
return e = new
|
|
3199
|
+
return e = new we({
|
|
3196
3200
|
props: {
|
|
3197
3201
|
disabled: (
|
|
3198
3202
|
/*processing*/
|
|
3199
3203
|
t[1]
|
|
3200
3204
|
),
|
|
3201
|
-
$$slots: { default: [
|
|
3205
|
+
$$slots: { default: [vi] },
|
|
3202
3206
|
$$scope: { ctx: t }
|
|
3203
3207
|
}
|
|
3204
|
-
}), n = new
|
|
3208
|
+
}), n = new we({
|
|
3205
3209
|
props: {
|
|
3206
3210
|
intent: "secondary",
|
|
3207
3211
|
disabled: (
|
|
3208
3212
|
/*processing*/
|
|
3209
3213
|
t[1]
|
|
3210
3214
|
),
|
|
3211
|
-
$$slots: { default: [
|
|
3215
|
+
$$slots: { default: [yi] },
|
|
3212
3216
|
$$scope: { ctx: t }
|
|
3213
3217
|
}
|
|
3214
3218
|
}), n.$on("click", function() {
|
|
@@ -3247,9 +3251,9 @@ function Bi(t) {
|
|
|
3247
3251
|
}
|
|
3248
3252
|
};
|
|
3249
3253
|
}
|
|
3250
|
-
function
|
|
3254
|
+
function Di(t) {
|
|
3251
3255
|
let e, r;
|
|
3252
|
-
return e = new
|
|
3256
|
+
return e = new ve({
|
|
3253
3257
|
props: {
|
|
3254
3258
|
$$slots: { default: [Bi] },
|
|
3255
3259
|
$$scope: { ctx: t }
|
|
@@ -3277,21 +3281,21 @@ function yi(t) {
|
|
|
3277
3281
|
}
|
|
3278
3282
|
};
|
|
3279
3283
|
}
|
|
3280
|
-
function
|
|
3284
|
+
function Ci(t) {
|
|
3281
3285
|
let e, r, n, i, o, s, l, c, a;
|
|
3282
|
-
return r = new
|
|
3286
|
+
return r = new We({
|
|
3283
3287
|
props: {
|
|
3284
|
-
$$slots: { default: [
|
|
3288
|
+
$$slots: { default: [bi] },
|
|
3285
3289
|
$$scope: { ctx: t }
|
|
3286
3290
|
}
|
|
3287
3291
|
}), i = new ue({
|
|
3288
3292
|
props: {
|
|
3289
|
-
$$slots: { default: [
|
|
3293
|
+
$$slots: { default: [wi] },
|
|
3290
3294
|
$$scope: { ctx: t }
|
|
3291
3295
|
}
|
|
3292
|
-
}), s = new
|
|
3296
|
+
}), s = new Ve({
|
|
3293
3297
|
props: {
|
|
3294
|
-
$$slots: { default: [
|
|
3298
|
+
$$slots: { default: [Di] },
|
|
3295
3299
|
$$scope: { ctx: t }
|
|
3296
3300
|
}
|
|
3297
3301
|
}), {
|
|
@@ -3299,7 +3303,7 @@ function Di(t) {
|
|
|
3299
3303
|
e = k("form"), w(r.$$.fragment), n = T(), w(i.$$.fragment), o = T(), w(s.$$.fragment), _(e, "class", "svelte-favd20");
|
|
3300
3304
|
},
|
|
3301
3305
|
m(f, d) {
|
|
3302
|
-
p(f, e, d), I(r, e, null), D(e, n), I(i, e, null), D(e, o), I(s, e, null), l = !0, c || (a =
|
|
3306
|
+
p(f, e, d), I(r, e, null), D(e, n), I(i, e, null), D(e, o), I(s, e, null), l = !0, c || (a = $e(e, "submit", kt(
|
|
3303
3307
|
/*handleContinue*/
|
|
3304
3308
|
t[5]
|
|
3305
3309
|
)), c = !0);
|
|
@@ -3326,7 +3330,7 @@ function Di(t) {
|
|
|
3326
3330
|
}
|
|
3327
3331
|
};
|
|
3328
3332
|
}
|
|
3329
|
-
function
|
|
3333
|
+
function Mi(t, e, r) {
|
|
3330
3334
|
let n, i, o, { onContinue: s } = e, { onClose: l } = e, { processing: c } = e;
|
|
3331
3335
|
const a = async () => {
|
|
3332
3336
|
n.trim() === "" ? r(2, i = "You need to provide your email address to continue.") : s({ email: n });
|
|
@@ -3352,13 +3356,13 @@ function Ci(t, e, r) {
|
|
|
3352
3356
|
}
|
|
3353
3357
|
class Qi extends U {
|
|
3354
3358
|
constructor(e) {
|
|
3355
|
-
super(), N(this, e,
|
|
3359
|
+
super(), N(this, e, Mi, Ci, P, { onContinue: 6, onClose: 0, processing: 1 }, Ii);
|
|
3356
3360
|
}
|
|
3357
3361
|
}
|
|
3358
|
-
function
|
|
3362
|
+
function Pi(t) {
|
|
3359
3363
|
O(t, "svelte-17tslso", ".rcb-modal-backdrop.svelte-17tslso{position:fixed;top:0;left:0;right:0;min-width:100%;width:100vw;width:100dvw;min-height:100%;height:100vh;height:100dvh;background-color:rgba(40, 40, 40, 0.75);display:flex;flex-direction:column;justify-content:space-around;z-index:1000001}");
|
|
3360
3364
|
}
|
|
3361
|
-
function
|
|
3365
|
+
function Ti(t) {
|
|
3362
3366
|
let e, r;
|
|
3363
3367
|
const n = (
|
|
3364
3368
|
/*#slots*/
|
|
@@ -3409,21 +3413,21 @@ function Pi(t) {
|
|
|
3409
3413
|
}
|
|
3410
3414
|
};
|
|
3411
3415
|
}
|
|
3412
|
-
function
|
|
3416
|
+
function Ni(t, e, r) {
|
|
3413
3417
|
let { $$slots: n = {}, $$scope: i } = e;
|
|
3414
3418
|
return t.$$set = (o) => {
|
|
3415
3419
|
"$$scope" in o && r(0, i = o.$$scope);
|
|
3416
3420
|
}, [i, n];
|
|
3417
3421
|
}
|
|
3418
|
-
class
|
|
3422
|
+
class Ui extends U {
|
|
3419
3423
|
constructor(e) {
|
|
3420
|
-
super(), N(this, e,
|
|
3424
|
+
super(), N(this, e, Ni, Ti, P, {}, Pi);
|
|
3421
3425
|
}
|
|
3422
3426
|
}
|
|
3423
|
-
function
|
|
3427
|
+
function Ri(t) {
|
|
3424
3428
|
O(t, "svelte-ioxu5d", ".rcb-modal-container.svelte-ioxu5d{width:100%}.rcb-modal-main.svelte-ioxu5d{box-sizing:border-box;border-radius:8px;background-color:var(--rc-color-white);color:var(--rc-color-grey-text-dark);min-height:460px;padding:40px;flex-direction:column;display:flex}.rcb-modal-dark.svelte-ioxu5d{background-color:var(--rc-color-grey-text-dark);color:var(--rc-color-white);min-height:0px}@media screen and (max-width: 960px){.rcb-modal-container.svelte-ioxu5d{width:calc(100% - 32px);min-width:300px;max-width:640px;margin:auto}.rcb-modal-main.svelte-ioxu5d,.rcb-modal-dark.svelte-ioxu5d{min-width:300px;max-width:640px;padding:32px}}");
|
|
3425
3429
|
}
|
|
3426
|
-
function
|
|
3430
|
+
function Si(t) {
|
|
3427
3431
|
let e, r, n, i;
|
|
3428
3432
|
const o = (
|
|
3429
3433
|
/*#slots*/
|
|
@@ -3437,7 +3441,7 @@ function Ri(t) {
|
|
|
3437
3441
|
);
|
|
3438
3442
|
return {
|
|
3439
3443
|
c() {
|
|
3440
|
-
e = k("div"), r = k("main"), s && s.c(), _(r, "class", n =
|
|
3444
|
+
e = k("div"), r = k("main"), s && s.c(), _(r, "class", n = Ie(`rcb-modal-main ${/*dark*/
|
|
3441
3445
|
t[0] ? "rcb-modal-dark" : ""}`) + " svelte-ioxu5d"), _(e, "class", "rcb-modal-container svelte-ioxu5d");
|
|
3442
3446
|
},
|
|
3443
3447
|
m(l, c) {
|
|
@@ -3463,7 +3467,7 @@ function Ri(t) {
|
|
|
3463
3467
|
),
|
|
3464
3468
|
null
|
|
3465
3469
|
), (!i || c & /*dark*/
|
|
3466
|
-
1 && n !== (n =
|
|
3470
|
+
1 && n !== (n = Ie(`rcb-modal-main ${/*dark*/
|
|
3467
3471
|
l[0] ? "rcb-modal-dark" : ""}`) + " svelte-ioxu5d")) && _(r, "class", n);
|
|
3468
3472
|
},
|
|
3469
3473
|
i(l) {
|
|
@@ -3477,18 +3481,18 @@ function Ri(t) {
|
|
|
3477
3481
|
}
|
|
3478
3482
|
};
|
|
3479
3483
|
}
|
|
3480
|
-
function
|
|
3484
|
+
function Oi(t, e, r) {
|
|
3481
3485
|
let { $$slots: n = {}, $$scope: i } = e, { dark: o = !1 } = e;
|
|
3482
3486
|
return t.$$set = (s) => {
|
|
3483
3487
|
"dark" in s && r(0, o = s.dark), "$$scope" in s && r(1, i = s.$$scope);
|
|
3484
3488
|
}, [o, i, n];
|
|
3485
3489
|
}
|
|
3486
|
-
class
|
|
3490
|
+
class Li extends U {
|
|
3487
3491
|
constructor(e) {
|
|
3488
|
-
super(), N(this, e,
|
|
3492
|
+
super(), N(this, e, Oi, Si, P, { dark: 0 }, Ri);
|
|
3489
3493
|
}
|
|
3490
3494
|
}
|
|
3491
|
-
function
|
|
3495
|
+
function xi(t) {
|
|
3492
3496
|
let e;
|
|
3493
3497
|
const r = (
|
|
3494
3498
|
/*#slots*/
|
|
@@ -3539,11 +3543,11 @@ function Li(t) {
|
|
|
3539
3543
|
}
|
|
3540
3544
|
};
|
|
3541
3545
|
}
|
|
3542
|
-
function
|
|
3546
|
+
function Fi(t) {
|
|
3543
3547
|
let e, r;
|
|
3544
|
-
return e = new
|
|
3548
|
+
return e = new Ui({
|
|
3545
3549
|
props: {
|
|
3546
|
-
$$slots: { default: [
|
|
3550
|
+
$$slots: { default: [Gi] },
|
|
3547
3551
|
$$scope: { ctx: t }
|
|
3548
3552
|
}
|
|
3549
3553
|
}), {
|
|
@@ -3569,7 +3573,7 @@ function xi(t) {
|
|
|
3569
3573
|
}
|
|
3570
3574
|
};
|
|
3571
3575
|
}
|
|
3572
|
-
function
|
|
3576
|
+
function Gi(t) {
|
|
3573
3577
|
let e;
|
|
3574
3578
|
const r = (
|
|
3575
3579
|
/*#slots*/
|
|
@@ -3620,9 +3624,9 @@ function Fi(t) {
|
|
|
3620
3624
|
}
|
|
3621
3625
|
};
|
|
3622
3626
|
}
|
|
3623
|
-
function
|
|
3627
|
+
function Yi(t) {
|
|
3624
3628
|
let e, r, n, i;
|
|
3625
|
-
const o = [
|
|
3629
|
+
const o = [Fi, xi], s = [];
|
|
3626
3630
|
function l(c, a) {
|
|
3627
3631
|
return (
|
|
3628
3632
|
/*condition*/
|
|
@@ -3653,19 +3657,19 @@ function Gi(t) {
|
|
|
3653
3657
|
}
|
|
3654
3658
|
};
|
|
3655
3659
|
}
|
|
3656
|
-
function
|
|
3660
|
+
function Hi(t, e, r) {
|
|
3657
3661
|
let { $$slots: n = {}, $$scope: i } = e, { condition: o = !1 } = e;
|
|
3658
3662
|
return t.$$set = (s) => {
|
|
3659
3663
|
"condition" in s && r(0, o = s.condition), "$$scope" in s && r(2, i = s.$$scope);
|
|
3660
3664
|
}, [o, n, i];
|
|
3661
3665
|
}
|
|
3662
|
-
class
|
|
3666
|
+
class Ki extends U {
|
|
3663
3667
|
constructor(e) {
|
|
3664
|
-
super(), N(this, e,
|
|
3668
|
+
super(), N(this, e, Hi, Yi, P, { condition: 0 });
|
|
3665
3669
|
}
|
|
3666
3670
|
}
|
|
3667
|
-
const
|
|
3668
|
-
function
|
|
3671
|
+
const qi = (t) => ({}), ut = (t) => ({});
|
|
3672
|
+
function ji(t) {
|
|
3669
3673
|
let e, r;
|
|
3670
3674
|
const n = (
|
|
3671
3675
|
/*#slots*/
|
|
@@ -3706,7 +3710,7 @@ function qi(t) {
|
|
|
3706
3710
|
/*$$scope*/
|
|
3707
3711
|
l[2],
|
|
3708
3712
|
c,
|
|
3709
|
-
|
|
3713
|
+
qi
|
|
3710
3714
|
) : q(
|
|
3711
3715
|
/*$$scope*/
|
|
3712
3716
|
l[2]
|
|
@@ -3743,15 +3747,15 @@ function qi(t) {
|
|
|
3743
3747
|
}
|
|
3744
3748
|
};
|
|
3745
3749
|
}
|
|
3746
|
-
function
|
|
3750
|
+
function Ji(t) {
|
|
3747
3751
|
let e, r;
|
|
3748
|
-
return e = new
|
|
3752
|
+
return e = new Li({
|
|
3749
3753
|
props: {
|
|
3750
3754
|
dark: (
|
|
3751
3755
|
/*dark*/
|
|
3752
3756
|
t[0]
|
|
3753
3757
|
),
|
|
3754
|
-
$$slots: { default: [
|
|
3758
|
+
$$slots: { default: [ji] },
|
|
3755
3759
|
$$scope: { ctx: t }
|
|
3756
3760
|
}
|
|
3757
3761
|
}), {
|
|
@@ -3779,7 +3783,7 @@ function ji(t) {
|
|
|
3779
3783
|
}
|
|
3780
3784
|
};
|
|
3781
3785
|
}
|
|
3782
|
-
function
|
|
3786
|
+
function Vi(t, e, r) {
|
|
3783
3787
|
let { $$slots: n = {}, $$scope: i } = e, { dark: o = !1 } = e;
|
|
3784
3788
|
return t.$$set = (s) => {
|
|
3785
3789
|
"dark" in s && r(0, o = s.dark), "$$scope" in s && r(2, i = s.$$scope);
|
|
@@ -3787,11 +3791,11 @@ function Ji(t, e, r) {
|
|
|
3787
3791
|
}
|
|
3788
3792
|
class Nt extends U {
|
|
3789
3793
|
constructor(e) {
|
|
3790
|
-
super(), N(this, e,
|
|
3794
|
+
super(), N(this, e, Vi, Ji, P, { dark: 0 });
|
|
3791
3795
|
}
|
|
3792
3796
|
}
|
|
3793
|
-
var
|
|
3794
|
-
class
|
|
3797
|
+
var te = /* @__PURE__ */ ((t) => (t[t.UnknownError = 0] = "UnknownError", t[t.UserCancelledError = 1] = "UserCancelledError", t[t.StoreProblemError = 2] = "StoreProblemError", t[t.PurchaseNotAllowedError = 3] = "PurchaseNotAllowedError", t[t.PurchaseInvalidError = 4] = "PurchaseInvalidError", t[t.ProductNotAvailableForPurchaseError = 5] = "ProductNotAvailableForPurchaseError", t[t.ProductAlreadyPurchasedError = 6] = "ProductAlreadyPurchasedError", t[t.ReceiptAlreadyInUseError = 7] = "ReceiptAlreadyInUseError", t[t.InvalidReceiptError = 8] = "InvalidReceiptError", t[t.MissingReceiptFileError = 9] = "MissingReceiptFileError", t[t.NetworkError = 10] = "NetworkError", t[t.InvalidCredentialsError = 11] = "InvalidCredentialsError", t[t.UnexpectedBackendResponseError = 12] = "UnexpectedBackendResponseError", t[t.InvalidAppUserIdError = 14] = "InvalidAppUserIdError", t[t.OperationAlreadyInProgressError = 15] = "OperationAlreadyInProgressError", t[t.UnknownBackendError = 16] = "UnknownBackendError", t[t.InvalidAppleSubscriptionKeyError = 17] = "InvalidAppleSubscriptionKeyError", t[t.IneligibleError = 18] = "IneligibleError", t[t.InsufficientPermissionsError = 19] = "InsufficientPermissionsError", t[t.PaymentPendingError = 20] = "PaymentPendingError", t[t.InvalidSubscriberAttributesError = 21] = "InvalidSubscriberAttributesError", t[t.LogOutWithAnonymousUserError = 22] = "LogOutWithAnonymousUserError", t[t.ConfigurationError = 23] = "ConfigurationError", t[t.UnsupportedError = 24] = "UnsupportedError", t[t.EmptySubscriberAttributesError = 25] = "EmptySubscriberAttributesError", t[t.CustomerInfoError = 28] = "CustomerInfoError", t[t.SignatureVerificationError = 36] = "SignatureVerificationError", t))(te || {});
|
|
3798
|
+
class Ee {
|
|
3795
3799
|
static getPublicMessage(e) {
|
|
3796
3800
|
switch (e) {
|
|
3797
3801
|
case 0:
|
|
@@ -3909,25 +3913,25 @@ class Pe {
|
|
|
3909
3913
|
}
|
|
3910
3914
|
}
|
|
3911
3915
|
var Ut = /* @__PURE__ */ ((t) => (t[t.BackendInvalidPlatform = 7e3] = "BackendInvalidPlatform", t[t.BackendStoreProblem = 7101] = "BackendStoreProblem", t[t.BackendCannotTransferPurchase = 7102] = "BackendCannotTransferPurchase", t[t.BackendInvalidReceiptToken = 7103] = "BackendInvalidReceiptToken", t[t.BackendInvalidAppStoreSharedSecret = 7104] = "BackendInvalidAppStoreSharedSecret", t[t.BackendInvalidPaymentModeOrIntroPriceNotProvided = 7105] = "BackendInvalidPaymentModeOrIntroPriceNotProvided", t[t.BackendProductIdForGoogleReceiptNotProvided = 7106] = "BackendProductIdForGoogleReceiptNotProvided", t[t.BackendInvalidPlayStoreCredentials = 7107] = "BackendInvalidPlayStoreCredentials", t[t.BackendInternalServerError = 7110] = "BackendInternalServerError", t[t.BackendEmptyAppUserId = 7220] = "BackendEmptyAppUserId", t[t.BackendInvalidAuthToken = 7224] = "BackendInvalidAuthToken", t[t.BackendInvalidAPIKey = 7225] = "BackendInvalidAPIKey", t[t.BackendBadRequest = 7226] = "BackendBadRequest", t[t.BackendPlayStoreQuotaExceeded = 7229] = "BackendPlayStoreQuotaExceeded", t[t.BackendPlayStoreInvalidPackageName = 7230] = "BackendPlayStoreInvalidPackageName", t[t.BackendPlayStoreGenericError = 7231] = "BackendPlayStoreGenericError", t[t.BackendUserIneligibleForPromoOffer = 7232] = "BackendUserIneligibleForPromoOffer", t[t.BackendInvalidAppleSubscriptionKey = 7234] = "BackendInvalidAppleSubscriptionKey", t[t.BackendInvalidSubscriberAttributes = 7263] = "BackendInvalidSubscriberAttributes", t[t.BackendInvalidSubscriberAttributesBody = 7264] = "BackendInvalidSubscriberAttributesBody", t[t.BackendProductIDsMalformed = 7662] = "BackendProductIDsMalformed", t))(Ut || {});
|
|
3912
|
-
class
|
|
3916
|
+
class X extends Error {
|
|
3913
3917
|
constructor(r, n, i) {
|
|
3914
3918
|
super(n);
|
|
3915
|
-
|
|
3919
|
+
Q(this, "toString", () => `PurchasesError(code: ${te[this.errorCode]}, message: ${this.message})`);
|
|
3916
3920
|
this.errorCode = r, this.underlyingErrorMessage = i;
|
|
3917
3921
|
}
|
|
3918
3922
|
/** @internal */
|
|
3919
3923
|
static getForBackendError(r, n) {
|
|
3920
|
-
const i =
|
|
3921
|
-
return new
|
|
3924
|
+
const i = Ee.getErrorCodeForBackendErrorCode(r);
|
|
3925
|
+
return new X(
|
|
3922
3926
|
i,
|
|
3923
|
-
|
|
3927
|
+
Ee.getPublicMessage(i),
|
|
3924
3928
|
n
|
|
3925
3929
|
);
|
|
3926
3930
|
}
|
|
3927
3931
|
/** @internal */
|
|
3928
3932
|
static getForPurchasesFlowError(r) {
|
|
3929
|
-
return new
|
|
3930
|
-
|
|
3933
|
+
return new X(
|
|
3934
|
+
Ee.convertPurchaseFlowErrorCodeToErrorCode(
|
|
3931
3935
|
r.errorCode
|
|
3932
3936
|
),
|
|
3933
3937
|
r.message,
|
|
@@ -3935,39 +3939,47 @@ class Z extends Error {
|
|
|
3935
3939
|
);
|
|
3936
3940
|
}
|
|
3937
3941
|
}
|
|
3938
|
-
class
|
|
3942
|
+
class Wi extends Error {
|
|
3939
3943
|
constructor() {
|
|
3940
3944
|
super("Purchases must be configured before calling getInstance");
|
|
3941
3945
|
}
|
|
3942
3946
|
}
|
|
3943
|
-
const
|
|
3947
|
+
const zi = "0.2.0", fe = "https://api.revenuecat.com";
|
|
3944
3948
|
var Ue;
|
|
3945
3949
|
(function(t) {
|
|
3946
3950
|
t[t.CONTINUE = 100] = "CONTINUE", t[t.SWITCHING_PROTOCOLS = 101] = "SWITCHING_PROTOCOLS", t[t.PROCESSING = 102] = "PROCESSING", t[t.EARLY_HINTS = 103] = "EARLY_HINTS", t[t.OK = 200] = "OK", t[t.CREATED = 201] = "CREATED", t[t.ACCEPTED = 202] = "ACCEPTED", t[t.NON_AUTHORITATIVE_INFORMATION = 203] = "NON_AUTHORITATIVE_INFORMATION", t[t.NO_CONTENT = 204] = "NO_CONTENT", t[t.RESET_CONTENT = 205] = "RESET_CONTENT", t[t.PARTIAL_CONTENT = 206] = "PARTIAL_CONTENT", t[t.MULTI_STATUS = 207] = "MULTI_STATUS", t[t.MULTIPLE_CHOICES = 300] = "MULTIPLE_CHOICES", t[t.MOVED_PERMANENTLY = 301] = "MOVED_PERMANENTLY", t[t.MOVED_TEMPORARILY = 302] = "MOVED_TEMPORARILY", t[t.SEE_OTHER = 303] = "SEE_OTHER", t[t.NOT_MODIFIED = 304] = "NOT_MODIFIED", t[t.USE_PROXY = 305] = "USE_PROXY", t[t.TEMPORARY_REDIRECT = 307] = "TEMPORARY_REDIRECT", t[t.PERMANENT_REDIRECT = 308] = "PERMANENT_REDIRECT", t[t.BAD_REQUEST = 400] = "BAD_REQUEST", t[t.UNAUTHORIZED = 401] = "UNAUTHORIZED", t[t.PAYMENT_REQUIRED = 402] = "PAYMENT_REQUIRED", t[t.FORBIDDEN = 403] = "FORBIDDEN", t[t.NOT_FOUND = 404] = "NOT_FOUND", t[t.METHOD_NOT_ALLOWED = 405] = "METHOD_NOT_ALLOWED", t[t.NOT_ACCEPTABLE = 406] = "NOT_ACCEPTABLE", t[t.PROXY_AUTHENTICATION_REQUIRED = 407] = "PROXY_AUTHENTICATION_REQUIRED", t[t.REQUEST_TIMEOUT = 408] = "REQUEST_TIMEOUT", t[t.CONFLICT = 409] = "CONFLICT", t[t.GONE = 410] = "GONE", t[t.LENGTH_REQUIRED = 411] = "LENGTH_REQUIRED", t[t.PRECONDITION_FAILED = 412] = "PRECONDITION_FAILED", t[t.REQUEST_TOO_LONG = 413] = "REQUEST_TOO_LONG", t[t.REQUEST_URI_TOO_LONG = 414] = "REQUEST_URI_TOO_LONG", t[t.UNSUPPORTED_MEDIA_TYPE = 415] = "UNSUPPORTED_MEDIA_TYPE", t[t.REQUESTED_RANGE_NOT_SATISFIABLE = 416] = "REQUESTED_RANGE_NOT_SATISFIABLE", t[t.EXPECTATION_FAILED = 417] = "EXPECTATION_FAILED", t[t.IM_A_TEAPOT = 418] = "IM_A_TEAPOT", t[t.INSUFFICIENT_SPACE_ON_RESOURCE = 419] = "INSUFFICIENT_SPACE_ON_RESOURCE", t[t.METHOD_FAILURE = 420] = "METHOD_FAILURE", t[t.MISDIRECTED_REQUEST = 421] = "MISDIRECTED_REQUEST", t[t.UNPROCESSABLE_ENTITY = 422] = "UNPROCESSABLE_ENTITY", t[t.LOCKED = 423] = "LOCKED", t[t.FAILED_DEPENDENCY = 424] = "FAILED_DEPENDENCY", t[t.UPGRADE_REQUIRED = 426] = "UPGRADE_REQUIRED", t[t.PRECONDITION_REQUIRED = 428] = "PRECONDITION_REQUIRED", t[t.TOO_MANY_REQUESTS = 429] = "TOO_MANY_REQUESTS", t[t.REQUEST_HEADER_FIELDS_TOO_LARGE = 431] = "REQUEST_HEADER_FIELDS_TOO_LARGE", t[t.UNAVAILABLE_FOR_LEGAL_REASONS = 451] = "UNAVAILABLE_FOR_LEGAL_REASONS", t[t.INTERNAL_SERVER_ERROR = 500] = "INTERNAL_SERVER_ERROR", t[t.NOT_IMPLEMENTED = 501] = "NOT_IMPLEMENTED", t[t.BAD_GATEWAY = 502] = "BAD_GATEWAY", t[t.SERVICE_UNAVAILABLE = 503] = "SERVICE_UNAVAILABLE", t[t.GATEWAY_TIMEOUT = 504] = "GATEWAY_TIMEOUT", t[t.HTTP_VERSION_NOT_SUPPORTED = 505] = "HTTP_VERSION_NOT_SUPPORTED", t[t.INSUFFICIENT_STORAGE = 507] = "INSUFFICIENT_STORAGE", t[t.NETWORK_AUTHENTICATION_REQUIRED = 511] = "NETWORK_AUTHENTICATION_REQUIRED";
|
|
3947
3951
|
})(Ue || (Ue = {}));
|
|
3948
|
-
function
|
|
3952
|
+
function je(t) {
|
|
3949
3953
|
return t ? t.startsWith("rcb_sb_") : !1;
|
|
3950
3954
|
}
|
|
3951
3955
|
async function se(t, e, r, n) {
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3956
|
+
try {
|
|
3957
|
+
const i = await fetch(t.url(), {
|
|
3958
|
+
method: t.method,
|
|
3959
|
+
headers: eo(e, n),
|
|
3960
|
+
body: Zi(r)
|
|
3961
|
+
});
|
|
3962
|
+
return await Xi(i, t), await i.json();
|
|
3963
|
+
} catch (i) {
|
|
3964
|
+
throw i instanceof TypeError ? new X(
|
|
3965
|
+
te.NetworkError,
|
|
3966
|
+
Ee.getPublicMessage(te.NetworkError),
|
|
3967
|
+
i.message
|
|
3968
|
+
) : i;
|
|
3969
|
+
}
|
|
3958
3970
|
}
|
|
3959
|
-
async function
|
|
3971
|
+
async function Xi(t, e) {
|
|
3960
3972
|
const r = t.status;
|
|
3961
3973
|
if (r >= Ue.INTERNAL_SERVER_ERROR)
|
|
3962
3974
|
Ge(e, r, await t.text());
|
|
3963
3975
|
else if (r >= Ue.BAD_REQUEST) {
|
|
3964
3976
|
const n = await t.json(), i = n ? JSON.stringify(n) : null, o = n == null ? void 0 : n.code, s = n == null ? void 0 : n.message;
|
|
3965
3977
|
if (o != null) {
|
|
3966
|
-
const l =
|
|
3978
|
+
const l = Ee.convertCodeToBackendErrorCode(o);
|
|
3967
3979
|
if (l == null)
|
|
3968
3980
|
Ge(e, r, i);
|
|
3969
3981
|
else
|
|
3970
|
-
throw
|
|
3982
|
+
throw X.getForBackendError(
|
|
3971
3983
|
l,
|
|
3972
3984
|
s
|
|
3973
3985
|
);
|
|
@@ -3976,31 +3988,31 @@ async function zi(t, e) {
|
|
|
3976
3988
|
}
|
|
3977
3989
|
}
|
|
3978
3990
|
function Ge(t, e, r) {
|
|
3979
|
-
throw new
|
|
3980
|
-
|
|
3991
|
+
throw new X(
|
|
3992
|
+
te.UnknownBackendError,
|
|
3981
3993
|
`Unknown backend error. Request: ${t.name}. Status code: ${e}. Body: ${r}.`
|
|
3982
3994
|
);
|
|
3983
3995
|
}
|
|
3984
|
-
function
|
|
3996
|
+
function Zi(t) {
|
|
3985
3997
|
return t == null ? null : JSON.stringify(t);
|
|
3986
3998
|
}
|
|
3987
|
-
function
|
|
3999
|
+
function eo(t, e) {
|
|
3988
4000
|
let r = {
|
|
3989
4001
|
Authorization: `Bearer ${t}`,
|
|
3990
4002
|
"Content-Type": "application/json",
|
|
3991
4003
|
Accept: "application/json",
|
|
3992
4004
|
"X-Platform": "web",
|
|
3993
|
-
"X-Version":
|
|
3994
|
-
"X-Is-Sandbox": `${
|
|
4005
|
+
"X-Version": zi,
|
|
4006
|
+
"X-Is-Sandbox": `${je(t)}`
|
|
3995
4007
|
};
|
|
3996
4008
|
return e != null && (r = { ...r, ...e }), r;
|
|
3997
4009
|
}
|
|
3998
4010
|
const Rt = "/v1/subscribers", Oe = "/rcbilling/v1";
|
|
3999
|
-
class
|
|
4011
|
+
class to {
|
|
4000
4012
|
constructor(e) {
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4013
|
+
Q(this, "appUserId");
|
|
4014
|
+
Q(this, "method", "GET");
|
|
4015
|
+
Q(this, "name", "getOfferings");
|
|
4004
4016
|
this.appUserId = e;
|
|
4005
4017
|
}
|
|
4006
4018
|
url() {
|
|
@@ -4008,21 +4020,21 @@ class eo {
|
|
|
4008
4020
|
return `${fe}${Rt}/${e}/offerings`;
|
|
4009
4021
|
}
|
|
4010
4022
|
}
|
|
4011
|
-
class
|
|
4023
|
+
class no {
|
|
4012
4024
|
constructor() {
|
|
4013
|
-
|
|
4014
|
-
|
|
4025
|
+
Q(this, "method", "POST");
|
|
4026
|
+
Q(this, "name", "subscribe");
|
|
4015
4027
|
}
|
|
4016
4028
|
url() {
|
|
4017
4029
|
return `${fe}${Oe}/subscribe`;
|
|
4018
4030
|
}
|
|
4019
4031
|
}
|
|
4020
|
-
class
|
|
4032
|
+
class ro {
|
|
4021
4033
|
constructor(e, r) {
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4034
|
+
Q(this, "method", "GET");
|
|
4035
|
+
Q(this, "name", "getProducts");
|
|
4036
|
+
Q(this, "appUserId");
|
|
4037
|
+
Q(this, "productIds");
|
|
4026
4038
|
this.appUserId = e, this.productIds = r;
|
|
4027
4039
|
}
|
|
4028
4040
|
url() {
|
|
@@ -4030,11 +4042,11 @@ class no {
|
|
|
4030
4042
|
return `${fe}${Oe}/subscribers/${e}/products?id=${r}`;
|
|
4031
4043
|
}
|
|
4032
4044
|
}
|
|
4033
|
-
class
|
|
4045
|
+
class io {
|
|
4034
4046
|
constructor(e) {
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4047
|
+
Q(this, "method", "GET");
|
|
4048
|
+
Q(this, "name", "getCustomerInfo");
|
|
4049
|
+
Q(this, "appUserId");
|
|
4038
4050
|
this.appUserId = e;
|
|
4039
4051
|
}
|
|
4040
4052
|
url() {
|
|
@@ -4042,58 +4054,58 @@ class ro {
|
|
|
4042
4054
|
return `${fe}${Rt}/${e}`;
|
|
4043
4055
|
}
|
|
4044
4056
|
}
|
|
4045
|
-
class
|
|
4057
|
+
class oo {
|
|
4046
4058
|
constructor() {
|
|
4047
|
-
|
|
4048
|
-
|
|
4059
|
+
Q(this, "method", "GET");
|
|
4060
|
+
Q(this, "name", "getBrandingInfo");
|
|
4049
4061
|
}
|
|
4050
4062
|
url() {
|
|
4051
4063
|
return `${fe}${Oe}/branding`;
|
|
4052
4064
|
}
|
|
4053
4065
|
}
|
|
4054
|
-
class
|
|
4066
|
+
class so {
|
|
4055
4067
|
constructor(e) {
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4068
|
+
Q(this, "method", "GET");
|
|
4069
|
+
Q(this, "name", "getCheckoutStatus");
|
|
4070
|
+
Q(this, "operationSessionId");
|
|
4059
4071
|
this.operationSessionId = e;
|
|
4060
4072
|
}
|
|
4061
4073
|
url() {
|
|
4062
4074
|
return `${fe}${Oe}/checkout/${this.operationSessionId}`;
|
|
4063
4075
|
}
|
|
4064
4076
|
}
|
|
4065
|
-
class
|
|
4077
|
+
class lo {
|
|
4066
4078
|
constructor(e) {
|
|
4067
|
-
|
|
4079
|
+
Q(this, "API_KEY");
|
|
4068
4080
|
this.API_KEY = e;
|
|
4069
4081
|
}
|
|
4070
4082
|
async getOfferings(e) {
|
|
4071
4083
|
return await se(
|
|
4072
|
-
new
|
|
4084
|
+
new to(e),
|
|
4073
4085
|
this.API_KEY
|
|
4074
4086
|
);
|
|
4075
4087
|
}
|
|
4076
4088
|
async getCustomerInfo(e) {
|
|
4077
4089
|
return await se(
|
|
4078
|
-
new
|
|
4090
|
+
new io(e),
|
|
4079
4091
|
this.API_KEY
|
|
4080
4092
|
);
|
|
4081
4093
|
}
|
|
4082
4094
|
async getProducts(e, r) {
|
|
4083
4095
|
return await se(
|
|
4084
|
-
new
|
|
4096
|
+
new ro(e, r),
|
|
4085
4097
|
this.API_KEY
|
|
4086
4098
|
);
|
|
4087
4099
|
}
|
|
4088
4100
|
async getBrandingInfo() {
|
|
4089
4101
|
return await se(
|
|
4090
|
-
new
|
|
4102
|
+
new oo(),
|
|
4091
4103
|
this.API_KEY
|
|
4092
4104
|
);
|
|
4093
4105
|
}
|
|
4094
4106
|
async postSubscribe(e, r, n, i) {
|
|
4095
4107
|
return await se(
|
|
4096
|
-
new
|
|
4108
|
+
new no(),
|
|
4097
4109
|
this.API_KEY,
|
|
4098
4110
|
{
|
|
4099
4111
|
app_user_id: e,
|
|
@@ -4105,38 +4117,38 @@ class so {
|
|
|
4105
4117
|
}
|
|
4106
4118
|
async getCheckoutStatus(e) {
|
|
4107
4119
|
return await se(
|
|
4108
|
-
new
|
|
4120
|
+
new so(e),
|
|
4109
4121
|
this.API_KEY
|
|
4110
4122
|
);
|
|
4111
4123
|
}
|
|
4112
4124
|
}
|
|
4113
|
-
const
|
|
4114
|
-
function
|
|
4125
|
+
const co = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20opacity='0.5'%20clip-path='url(%23clip0_344_3390)'%3e%3cpath%20d='M7%2018C5.9%2018%205.01%2018.9%205.01%2020C5.01%2021.1%205.9%2022%207%2022C8.1%2022%209%2021.1%209%2020C9%2018.9%208.1%2018%207%2018ZM1%202V4H3L6.6%2011.59L5.25%2014.04C5.09%2014.32%205%2014.65%205%2015C5%2016.1%205.9%2017%207%2017H19V15H7.42C7.28%2015%207.17%2014.89%207.17%2014.75L7.2%2014.63L8.1%2013H15.55C16.3%2013%2016.96%2012.59%2017.3%2011.97L20.88%205.48C20.96%205.34%2021%205.17%2021%205C21%204.45%2020.55%204%2020%204H5.21L4.27%202H1ZM17%2018C15.9%2018%2015.01%2018.9%2015.01%2020C15.01%2021.1%2015.9%2022%2017%2022C18.1%2022%2019%2021.1%2019%2020C19%2018.9%2018.1%2018%2017%2018Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_344_3390'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
|
|
4126
|
+
function ao(t) {
|
|
4115
4127
|
let e, r;
|
|
4116
4128
|
return {
|
|
4117
4129
|
c() {
|
|
4118
|
-
e = k("img"),
|
|
4130
|
+
e = k("img"), Z(e.src, r = co) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon");
|
|
4119
4131
|
},
|
|
4120
4132
|
m(n, i) {
|
|
4121
4133
|
p(n, e, i);
|
|
4122
4134
|
},
|
|
4123
|
-
p:
|
|
4124
|
-
i:
|
|
4125
|
-
o:
|
|
4135
|
+
p: y,
|
|
4136
|
+
i: y,
|
|
4137
|
+
o: y,
|
|
4126
4138
|
d(n) {
|
|
4127
4139
|
n && g(e);
|
|
4128
4140
|
}
|
|
4129
4141
|
};
|
|
4130
4142
|
}
|
|
4131
|
-
class
|
|
4143
|
+
class uo extends U {
|
|
4132
4144
|
constructor(e) {
|
|
4133
|
-
super(), N(this, e, null,
|
|
4145
|
+
super(), N(this, e, null, ao, P, {});
|
|
4134
4146
|
}
|
|
4135
4147
|
}
|
|
4136
|
-
function
|
|
4148
|
+
function fo(t) {
|
|
4137
4149
|
O(t, "svelte-1rhrjxe", "div.svelte-1rhrjxe{background-color:var(--rc-color-warning);color:var(--rc-color-grey-text-dark);font-size:10px;font-weight:bold;text-transform:uppercase;padding:4px 10px;line-height:10px;border-radius:9px;margin:0px;margin-left:16px}");
|
|
4138
4150
|
}
|
|
4139
|
-
function
|
|
4151
|
+
function mo(t) {
|
|
4140
4152
|
let e;
|
|
4141
4153
|
return {
|
|
4142
4154
|
c() {
|
|
@@ -4145,20 +4157,20 @@ function fo(t) {
|
|
|
4145
4157
|
m(r, n) {
|
|
4146
4158
|
p(r, e, n);
|
|
4147
4159
|
},
|
|
4148
|
-
p:
|
|
4149
|
-
i:
|
|
4150
|
-
o:
|
|
4160
|
+
p: y,
|
|
4161
|
+
i: y,
|
|
4162
|
+
o: y,
|
|
4151
4163
|
d(r) {
|
|
4152
4164
|
r && g(e);
|
|
4153
4165
|
}
|
|
4154
4166
|
};
|
|
4155
4167
|
}
|
|
4156
|
-
class
|
|
4168
|
+
class go extends U {
|
|
4157
4169
|
constructor(e) {
|
|
4158
|
-
super(), N(this, e, null,
|
|
4170
|
+
super(), N(this, e, null, mo, P, {}, fo);
|
|
4159
4171
|
}
|
|
4160
4172
|
}
|
|
4161
|
-
function
|
|
4173
|
+
function po(t) {
|
|
4162
4174
|
O(t, "svelte-13pdaik", `.rcb-ui-container.svelte-13pdaik{color-scheme:none;font-size:16px;line-height:1.5em;font-weight:400;font-family:-apple-system, "system-ui", "Segoe UI", Roboto, Oxygen, Ubuntu,
|
|
4163
4175
|
Cantarell, "Open Sans", "Helvetica Neue", sans-serif}.rcb-ui-layout.svelte-13pdaik{width:100vw;width:100dvw;margin-right:auto;display:flex;justify-content:center;align-items:flex-start;position:relative;padding:0px 80px;box-sizing:border-box}.rcb-ui-aside.svelte-13pdaik{margin-right:16px;flex:320px 1 0;max-width:480px}.rcb-ui-main.svelte-13pdaik{flex:480px 1 0;max-width:640px}@media screen and (max-width: 960px){.rcb-ui-layout.svelte-13pdaik{flex-direction:column;align-items:center;justify-content:center;height:100%;min-width:100%}.rcb-ui-aside.svelte-13pdaik{margin-right:0;margin-bottom:16px;min-width:100%;display:flex;flex-direction:column;align-items:center;flex:none;max-width:none}.rcb-ui-main.svelte-13pdaik{flex:none;max-width:none;min-width:100%}}@media screen and (max-width: 960px) and (max-height: 960px){.rcb-ui-layout.svelte-13pdaik{overflow-y:scroll;justify-content:flex-start;padding:16px 0px}}`);
|
|
4164
4176
|
}
|
|
@@ -4168,8 +4180,8 @@ function ft(t) {
|
|
|
4168
4180
|
props: {
|
|
4169
4181
|
dark: !0,
|
|
4170
4182
|
$$slots: {
|
|
4171
|
-
header: [
|
|
4172
|
-
default: [
|
|
4183
|
+
header: [Io],
|
|
4184
|
+
default: [_o]
|
|
4173
4185
|
},
|
|
4174
4186
|
$$scope: { ctx: t }
|
|
4175
4187
|
}
|
|
@@ -4198,7 +4210,7 @@ function ft(t) {
|
|
|
4198
4210
|
}
|
|
4199
4211
|
function dt(t) {
|
|
4200
4212
|
let e, r;
|
|
4201
|
-
return e = new
|
|
4213
|
+
return e = new yt({
|
|
4202
4214
|
props: {
|
|
4203
4215
|
productDetails: (
|
|
4204
4216
|
/*productDetails*/
|
|
@@ -4229,7 +4241,7 @@ function dt(t) {
|
|
|
4229
4241
|
}
|
|
4230
4242
|
};
|
|
4231
4243
|
}
|
|
4232
|
-
function
|
|
4244
|
+
function _o(t) {
|
|
4233
4245
|
let e, r, n = (
|
|
4234
4246
|
/*productDetails*/
|
|
4235
4247
|
t[2] && dt(t)
|
|
@@ -4259,9 +4271,9 @@ function po(t) {
|
|
|
4259
4271
|
}
|
|
4260
4272
|
};
|
|
4261
4273
|
}
|
|
4262
|
-
function
|
|
4274
|
+
function Ao(t) {
|
|
4263
4275
|
let e, r;
|
|
4264
|
-
return e = new
|
|
4276
|
+
return e = new uo({}), {
|
|
4265
4277
|
c() {
|
|
4266
4278
|
w(e.$$.fragment);
|
|
4267
4279
|
},
|
|
@@ -4279,9 +4291,9 @@ function _o(t) {
|
|
|
4279
4291
|
}
|
|
4280
4292
|
};
|
|
4281
4293
|
}
|
|
4282
|
-
function
|
|
4294
|
+
function ho(t) {
|
|
4283
4295
|
let e, r;
|
|
4284
|
-
return e = new
|
|
4296
|
+
return e = new go({}), {
|
|
4285
4297
|
c() {
|
|
4286
4298
|
w(e.$$.fragment);
|
|
4287
4299
|
},
|
|
@@ -4299,7 +4311,7 @@ function Ao(t) {
|
|
|
4299
4311
|
}
|
|
4300
4312
|
};
|
|
4301
4313
|
}
|
|
4302
|
-
function
|
|
4314
|
+
function Eo(t) {
|
|
4303
4315
|
let e, r, n, i, o, s, l;
|
|
4304
4316
|
e = new Dt({
|
|
4305
4317
|
props: { brandingInfo: (
|
|
@@ -4307,7 +4319,7 @@ function ho(t) {
|
|
|
4307
4319
|
t[3]
|
|
4308
4320
|
) }
|
|
4309
4321
|
});
|
|
4310
|
-
const c = [
|
|
4322
|
+
const c = [ho, Ao], a = [];
|
|
4311
4323
|
function f(d, E) {
|
|
4312
4324
|
return E & /*purchases*/
|
|
4313
4325
|
2 && (n = null), n == null && (n = !!/*purchases*/
|
|
@@ -4341,12 +4353,12 @@ function ho(t) {
|
|
|
4341
4353
|
}
|
|
4342
4354
|
};
|
|
4343
4355
|
}
|
|
4344
|
-
function
|
|
4356
|
+
function Io(t) {
|
|
4345
4357
|
let e, r;
|
|
4346
|
-
return e = new
|
|
4358
|
+
return e = new We({
|
|
4347
4359
|
props: {
|
|
4348
4360
|
slot: "header",
|
|
4349
|
-
$$slots: { default: [
|
|
4361
|
+
$$slots: { default: [Eo] },
|
|
4350
4362
|
$$scope: { ctx: t }
|
|
4351
4363
|
}
|
|
4352
4364
|
}), {
|
|
@@ -4374,7 +4386,7 @@ function Eo(t) {
|
|
|
4374
4386
|
}
|
|
4375
4387
|
function mt(t) {
|
|
4376
4388
|
let e, r;
|
|
4377
|
-
return e = new
|
|
4389
|
+
return e = new yt({
|
|
4378
4390
|
props: {
|
|
4379
4391
|
productDetails: (
|
|
4380
4392
|
/*productDetails*/
|
|
@@ -4407,7 +4419,7 @@ function mt(t) {
|
|
|
4407
4419
|
}
|
|
4408
4420
|
function gt(t) {
|
|
4409
4421
|
let e, r;
|
|
4410
|
-
return e = new
|
|
4422
|
+
return e = new Je({}), {
|
|
4411
4423
|
c() {
|
|
4412
4424
|
w(e.$$.fragment);
|
|
4413
4425
|
},
|
|
@@ -4468,7 +4480,7 @@ function pt(t) {
|
|
|
4468
4480
|
}
|
|
4469
4481
|
function _t(t) {
|
|
4470
4482
|
let e, r;
|
|
4471
|
-
return e = new
|
|
4483
|
+
return e = new Ei({
|
|
4472
4484
|
props: {
|
|
4473
4485
|
paymentInfoCollectionMetadata: (
|
|
4474
4486
|
/*paymentInfoCollectionMetadata*/
|
|
@@ -4519,7 +4531,7 @@ function _t(t) {
|
|
|
4519
4531
|
}
|
|
4520
4532
|
function At(t) {
|
|
4521
4533
|
let e, r;
|
|
4522
|
-
return e = new
|
|
4534
|
+
return e = new Je({}), {
|
|
4523
4535
|
c() {
|
|
4524
4536
|
w(e.$$.fragment);
|
|
4525
4537
|
},
|
|
@@ -4540,7 +4552,7 @@ function At(t) {
|
|
|
4540
4552
|
function ht(t) {
|
|
4541
4553
|
var n;
|
|
4542
4554
|
let e, r;
|
|
4543
|
-
return e = new
|
|
4555
|
+
return e = new kr({
|
|
4544
4556
|
props: {
|
|
4545
4557
|
brandingInfo: (
|
|
4546
4558
|
/*brandingInfo*/
|
|
@@ -4590,7 +4602,7 @@ function ht(t) {
|
|
|
4590
4602
|
}
|
|
4591
4603
|
function Et(t) {
|
|
4592
4604
|
let e, r;
|
|
4593
|
-
return e = new
|
|
4605
|
+
return e = new Pr({
|
|
4594
4606
|
props: {
|
|
4595
4607
|
brandingInfo: (
|
|
4596
4608
|
/*brandingInfo*/
|
|
@@ -4625,7 +4637,7 @@ function Et(t) {
|
|
|
4625
4637
|
}
|
|
4626
4638
|
};
|
|
4627
4639
|
}
|
|
4628
|
-
function
|
|
4640
|
+
function bo(t) {
|
|
4629
4641
|
let e, r, n, i, o, s, l, c, a = (
|
|
4630
4642
|
/*state*/
|
|
4631
4643
|
t[6] === "present-offer" && /*productDetails*/
|
|
@@ -4649,65 +4661,65 @@ function Io(t) {
|
|
|
4649
4661
|
), A = (
|
|
4650
4662
|
/*state*/
|
|
4651
4663
|
t[6] === "error" && ht(t)
|
|
4652
|
-
),
|
|
4664
|
+
), M = (
|
|
4653
4665
|
/*state*/
|
|
4654
4666
|
t[6] === "success" && Et(t)
|
|
4655
4667
|
);
|
|
4656
4668
|
return {
|
|
4657
4669
|
c() {
|
|
4658
|
-
a && a.c(), e = T(), f && f.c(), r = T(), d && d.c(), n = T(), E && E.c(), i = T(), v && v.c(), o = T(), A && A.c(), s = T(),
|
|
4670
|
+
a && a.c(), e = T(), f && f.c(), r = T(), d && d.c(), n = T(), E && E.c(), i = T(), v && v.c(), o = T(), A && A.c(), s = T(), M && M.c(), l = ee();
|
|
4659
4671
|
},
|
|
4660
|
-
m(h,
|
|
4661
|
-
a && a.m(h,
|
|
4672
|
+
m(h, B) {
|
|
4673
|
+
a && a.m(h, B), p(h, e, B), f && f.m(h, B), p(h, r, B), d && d.m(h, B), p(h, n, B), E && E.m(h, B), p(h, i, B), v && v.m(h, B), p(h, o, B), A && A.m(h, B), p(h, s, B), M && M.m(h, B), p(h, l, B), c = !0;
|
|
4662
4674
|
},
|
|
4663
|
-
p(h,
|
|
4675
|
+
p(h, B) {
|
|
4664
4676
|
/*state*/
|
|
4665
4677
|
h[6] === "present-offer" && /*productDetails*/
|
|
4666
|
-
h[2] ? a ? (a.p(h,
|
|
4678
|
+
h[2] ? a ? (a.p(h, B), B & /*state, productDetails*/
|
|
4667
4679
|
68 && u(a, 1)) : (a = mt(h), a.c(), u(a, 1), a.m(e.parentNode, e)) : a && (L(), m(a, 1, 1, () => {
|
|
4668
4680
|
a = null;
|
|
4669
4681
|
}), x()), /*state*/
|
|
4670
4682
|
h[6] === "present-offer" && !/*productDetails*/
|
|
4671
|
-
h[2] ? f ?
|
|
4683
|
+
h[2] ? f ? B & /*state, productDetails*/
|
|
4672
4684
|
68 && u(f, 1) : (f = gt(), f.c(), u(f, 1), f.m(r.parentNode, r)) : f && (L(), m(f, 1, 1, () => {
|
|
4673
4685
|
f = null;
|
|
4674
4686
|
}), x()), /*state*/
|
|
4675
4687
|
h[6] === "needs-auth-info" || /*state*/
|
|
4676
|
-
h[6] === "processing-auth-info" ? d ? (d.p(h,
|
|
4688
|
+
h[6] === "processing-auth-info" ? d ? (d.p(h, B), B & /*state*/
|
|
4677
4689
|
64 && u(d, 1)) : (d = pt(h), d.c(), u(d, 1), d.m(n.parentNode, n)) : d && (L(), m(d, 1, 1, () => {
|
|
4678
4690
|
d = null;
|
|
4679
4691
|
}), x()), /*paymentInfoCollectionMetadata*/
|
|
4680
4692
|
h[4] && /*state*/
|
|
4681
4693
|
(h[6] === "needs-payment-info" || /*state*/
|
|
4682
|
-
h[6] === "polling-purchase-status") ? E ? (E.p(h,
|
|
4694
|
+
h[6] === "polling-purchase-status") ? E ? (E.p(h, B), B & /*paymentInfoCollectionMetadata, state*/
|
|
4683
4695
|
80 && u(E, 1)) : (E = _t(h), E.c(), u(E, 1), E.m(i.parentNode, i)) : E && (L(), m(E, 1, 1, () => {
|
|
4684
4696
|
E = null;
|
|
4685
4697
|
}), x()), /*state*/
|
|
4686
|
-
h[6] === "loading" ? v ?
|
|
4698
|
+
h[6] === "loading" ? v ? B & /*state*/
|
|
4687
4699
|
64 && u(v, 1) : (v = At(), v.c(), u(v, 1), v.m(o.parentNode, o)) : v && (L(), m(v, 1, 1, () => {
|
|
4688
4700
|
v = null;
|
|
4689
4701
|
}), x()), /*state*/
|
|
4690
|
-
h[6] === "error" ? A ? (A.p(h,
|
|
4702
|
+
h[6] === "error" ? A ? (A.p(h, B), B & /*state*/
|
|
4691
4703
|
64 && u(A, 1)) : (A = ht(h), A.c(), u(A, 1), A.m(s.parentNode, s)) : A && (L(), m(A, 1, 1, () => {
|
|
4692
4704
|
A = null;
|
|
4693
4705
|
}), x()), /*state*/
|
|
4694
|
-
h[6] === "success" ?
|
|
4695
|
-
64 && u(
|
|
4696
|
-
|
|
4706
|
+
h[6] === "success" ? M ? (M.p(h, B), B & /*state*/
|
|
4707
|
+
64 && u(M, 1)) : (M = Et(h), M.c(), u(M, 1), M.m(l.parentNode, l)) : M && (L(), m(M, 1, 1, () => {
|
|
4708
|
+
M = null;
|
|
4697
4709
|
}), x());
|
|
4698
4710
|
},
|
|
4699
4711
|
i(h) {
|
|
4700
|
-
c || (u(a), u(f), u(d), u(E), u(v), u(A), u(
|
|
4712
|
+
c || (u(a), u(f), u(d), u(E), u(v), u(A), u(M), c = !0);
|
|
4701
4713
|
},
|
|
4702
4714
|
o(h) {
|
|
4703
|
-
m(a), m(f), m(d), m(E), m(v), m(A), m(
|
|
4715
|
+
m(a), m(f), m(d), m(E), m(v), m(A), m(M), c = !1;
|
|
4704
4716
|
},
|
|
4705
4717
|
d(h) {
|
|
4706
|
-
h && (g(e), g(r), g(n), g(i), g(o), g(s), g(l)), a && a.d(h), f && f.d(h), d && d.d(h), E && E.d(h), v && v.d(h), A && A.d(h),
|
|
4718
|
+
h && (g(e), g(r), g(n), g(i), g(o), g(s), g(l)), a && a.d(h), f && f.d(h), d && d.d(h), E && E.d(h), v && v.d(h), A && A.d(h), M && M.d(h);
|
|
4707
4719
|
}
|
|
4708
4720
|
};
|
|
4709
4721
|
}
|
|
4710
|
-
function
|
|
4722
|
+
function wo(t) {
|
|
4711
4723
|
let e, r = (
|
|
4712
4724
|
/*statesWhereOfferDetailsAreShown*/
|
|
4713
4725
|
t[8].includes(
|
|
@@ -4717,7 +4729,7 @@ function bo(t) {
|
|
|
4717
4729
|
), n, i, o, s, l = r && ft(t);
|
|
4718
4730
|
return o = new Nt({
|
|
4719
4731
|
props: {
|
|
4720
|
-
$$slots: { default: [
|
|
4732
|
+
$$slots: { default: [bo] },
|
|
4721
4733
|
$$scope: { ctx: t }
|
|
4722
4734
|
}
|
|
4723
4735
|
}), {
|
|
@@ -4757,15 +4769,15 @@ function bo(t) {
|
|
|
4757
4769
|
}
|
|
4758
4770
|
};
|
|
4759
4771
|
}
|
|
4760
|
-
function
|
|
4772
|
+
function ko(t) {
|
|
4761
4773
|
let e, r, n;
|
|
4762
|
-
return r = new
|
|
4774
|
+
return r = new Ki({
|
|
4763
4775
|
props: {
|
|
4764
4776
|
condition: (
|
|
4765
4777
|
/*asModal*/
|
|
4766
4778
|
t[0]
|
|
4767
4779
|
),
|
|
4768
|
-
$$slots: { default: [
|
|
4780
|
+
$$slots: { default: [wo] },
|
|
4769
4781
|
$$scope: { ctx: t }
|
|
4770
4782
|
}
|
|
4771
4783
|
}), {
|
|
@@ -4793,12 +4805,12 @@ function wo(t) {
|
|
|
4793
4805
|
}
|
|
4794
4806
|
};
|
|
4795
4807
|
}
|
|
4796
|
-
function
|
|
4797
|
-
var
|
|
4808
|
+
function $o(t, e, r) {
|
|
4809
|
+
var ze;
|
|
4798
4810
|
let { asModal: n = !0 } = e, { customerEmail: i } = e, { appUserId: o } = e, { rcPackage: s } = e, { onFinished: l } = e, { onError: c } = e, { onClose: a } = e, { purchases: f } = e, { backend: d } = e, { purchaseOperationHelper: E } = e;
|
|
4799
4811
|
const v = Object.entries(Ae).map(([C, Le]) => `--rc-color-${C}: ${Le}`).join("; ");
|
|
4800
|
-
let A = null,
|
|
4801
|
-
const F = ((
|
|
4812
|
+
let A = null, M = null, h = null, B = null;
|
|
4813
|
+
const F = ((ze = s.rcBillingProduct) == null ? void 0 : ze.identifier) ?? null;
|
|
4802
4814
|
let $ = "present-offer";
|
|
4803
4815
|
const de = [
|
|
4804
4816
|
"present-offer",
|
|
@@ -4809,12 +4821,12 @@ function ko(t, e, r) {
|
|
|
4809
4821
|
"loading"
|
|
4810
4822
|
];
|
|
4811
4823
|
Se(async () => {
|
|
4812
|
-
if (r(2, A = s.rcBillingProduct), r(3,
|
|
4824
|
+
if (r(2, A = s.rcBillingProduct), r(3, M = await d.getBrandingInfo()), $ === "present-offer") {
|
|
4813
4825
|
i ? ie() : r(6, $ = "needs-auth-info");
|
|
4814
4826
|
return;
|
|
4815
4827
|
}
|
|
4816
4828
|
});
|
|
4817
|
-
const
|
|
4829
|
+
const ye = () => {
|
|
4818
4830
|
a();
|
|
4819
4831
|
}, ie = () => {
|
|
4820
4832
|
if (F === null) {
|
|
@@ -4857,9 +4869,9 @@ function ko(t, e, r) {
|
|
|
4857
4869
|
}
|
|
4858
4870
|
r(6, $ = "success");
|
|
4859
4871
|
}, W = (C) => {
|
|
4860
|
-
r(5,
|
|
4872
|
+
r(5, B = C), r(6, $ = "error");
|
|
4861
4873
|
}, St = () => {
|
|
4862
|
-
c(
|
|
4874
|
+
c(B ?? new G(S.UnknownError, "Unknown error without state set."));
|
|
4863
4875
|
};
|
|
4864
4876
|
return t.$$set = (C) => {
|
|
4865
4877
|
"asModal" in C && r(0, n = C.asModal), "customerEmail" in C && r(13, i = C.customerEmail), "appUserId" in C && r(14, o = C.appUserId), "rcPackage" in C && r(15, s = C.rcPackage), "onFinished" in C && r(16, l = C.onFinished), "onError" in C && r(17, c = C.onError), "onClose" in C && r(18, a = C.onClose), "purchases" in C && r(1, f = C.purchases), "backend" in C && r(19, d = C.backend), "purchaseOperationHelper" in C && r(20, E = C.purchaseOperationHelper);
|
|
@@ -4867,13 +4879,13 @@ function ko(t, e, r) {
|
|
|
4867
4879
|
n,
|
|
4868
4880
|
f,
|
|
4869
4881
|
A,
|
|
4870
|
-
|
|
4882
|
+
M,
|
|
4871
4883
|
h,
|
|
4872
|
-
|
|
4884
|
+
B,
|
|
4873
4885
|
$,
|
|
4874
4886
|
v,
|
|
4875
4887
|
de,
|
|
4876
|
-
|
|
4888
|
+
ye,
|
|
4877
4889
|
z,
|
|
4878
4890
|
W,
|
|
4879
4891
|
St,
|
|
@@ -4887,13 +4899,13 @@ function ko(t, e, r) {
|
|
|
4887
4899
|
E
|
|
4888
4900
|
];
|
|
4889
4901
|
}
|
|
4890
|
-
class
|
|
4902
|
+
class vo extends U {
|
|
4891
4903
|
constructor(e) {
|
|
4892
4904
|
super(), N(
|
|
4893
4905
|
this,
|
|
4894
4906
|
e,
|
|
4907
|
+
$o,
|
|
4895
4908
|
ko,
|
|
4896
|
-
wo,
|
|
4897
4909
|
P,
|
|
4898
4910
|
{
|
|
4899
4911
|
asModal: 0,
|
|
@@ -4907,37 +4919,37 @@ class $o extends U {
|
|
|
4907
4919
|
backend: 19,
|
|
4908
4920
|
purchaseOperationHelper: 20
|
|
4909
4921
|
},
|
|
4910
|
-
|
|
4922
|
+
po
|
|
4911
4923
|
);
|
|
4912
4924
|
}
|
|
4913
4925
|
}
|
|
4914
|
-
function
|
|
4926
|
+
function yo(t) {
|
|
4915
4927
|
return t.expires_date == null ? !0 : new Date(t.expires_date) > /* @__PURE__ */ new Date();
|
|
4916
4928
|
}
|
|
4917
4929
|
function Bo(t, e, r, n) {
|
|
4918
4930
|
const i = e.product_identifier;
|
|
4919
4931
|
if (i in r)
|
|
4920
|
-
return
|
|
4932
|
+
return Do(
|
|
4921
4933
|
t,
|
|
4922
4934
|
e,
|
|
4923
4935
|
r[i]
|
|
4924
4936
|
);
|
|
4925
4937
|
if (i in n)
|
|
4926
|
-
return
|
|
4938
|
+
return Co(
|
|
4927
4939
|
t,
|
|
4928
4940
|
e,
|
|
4929
4941
|
n[i]
|
|
4930
4942
|
);
|
|
4931
|
-
throw new
|
|
4932
|
-
|
|
4943
|
+
throw new X(
|
|
4944
|
+
te.CustomerInfoError,
|
|
4933
4945
|
"Could not find entitlement product in subscriptions or non-subscriptions."
|
|
4934
4946
|
);
|
|
4935
4947
|
}
|
|
4936
|
-
function
|
|
4948
|
+
function Do(t, e, r) {
|
|
4937
4949
|
return {
|
|
4938
4950
|
identifier: t,
|
|
4939
|
-
isActive:
|
|
4940
|
-
willRenew:
|
|
4951
|
+
isActive: yo(e),
|
|
4952
|
+
willRenew: Po(e, r),
|
|
4941
4953
|
store: (r == null ? void 0 : r.store) ?? "unknown",
|
|
4942
4954
|
latestPurchaseDate: new Date(e.purchase_date),
|
|
4943
4955
|
originalPurchaseDate: new Date(e.purchase_date),
|
|
@@ -4953,7 +4965,7 @@ function yo(t, e, r) {
|
|
|
4953
4965
|
periodType: (r == null ? void 0 : r.period_type) ?? "normal"
|
|
4954
4966
|
};
|
|
4955
4967
|
}
|
|
4956
|
-
function
|
|
4968
|
+
function Co(t, e, r) {
|
|
4957
4969
|
return {
|
|
4958
4970
|
identifier: t,
|
|
4959
4971
|
isActive: !0,
|
|
@@ -4971,7 +4983,7 @@ function Do(t, e, r) {
|
|
|
4971
4983
|
periodType: "normal"
|
|
4972
4984
|
};
|
|
4973
4985
|
}
|
|
4974
|
-
function
|
|
4986
|
+
function Mo(t, e, r) {
|
|
4975
4987
|
const n = {}, i = {};
|
|
4976
4988
|
for (const o in t) {
|
|
4977
4989
|
const s = Bo(
|
|
@@ -4991,21 +5003,21 @@ function Te(t) {
|
|
|
4991
5003
|
return t == null ? null : new Date(t);
|
|
4992
5004
|
}
|
|
4993
5005
|
function Qo(t) {
|
|
4994
|
-
const e =
|
|
5006
|
+
const e = No(t), r = t.subscriber, n = Ro(
|
|
4995
5007
|
r.non_subscriptions
|
|
4996
5008
|
);
|
|
4997
5009
|
return {
|
|
4998
|
-
entitlements:
|
|
5010
|
+
entitlements: Mo(
|
|
4999
5011
|
r.entitlements,
|
|
5000
5012
|
r.subscriptions,
|
|
5001
5013
|
n
|
|
5002
5014
|
),
|
|
5003
5015
|
allExpirationDatesByProduct: e,
|
|
5004
|
-
allPurchaseDatesByProduct:
|
|
5016
|
+
allPurchaseDatesByProduct: To(
|
|
5005
5017
|
t,
|
|
5006
5018
|
n
|
|
5007
5019
|
),
|
|
5008
|
-
activeSubscriptions:
|
|
5020
|
+
activeSubscriptions: Uo(e),
|
|
5009
5021
|
managementURL: r.management_url,
|
|
5010
5022
|
requestDate: new Date(t.request_date),
|
|
5011
5023
|
firstSeenDate: new Date(r.first_seen),
|
|
@@ -5015,13 +5027,13 @@ function Qo(t) {
|
|
|
5015
5027
|
originalAppUserId: t.subscriber.original_app_user_id
|
|
5016
5028
|
};
|
|
5017
5029
|
}
|
|
5018
|
-
function
|
|
5030
|
+
function Po(t, e) {
|
|
5019
5031
|
if (e == null)
|
|
5020
5032
|
return !1;
|
|
5021
5033
|
const r = e.store == "promotional", n = t.expires_date == null, i = e.unsubscribe_detected_at != null, o = e.billing_issues_detected_at != null;
|
|
5022
5034
|
return !(r || n || i || o);
|
|
5023
5035
|
}
|
|
5024
|
-
function
|
|
5036
|
+
function To(t, e) {
|
|
5025
5037
|
const r = {};
|
|
5026
5038
|
for (const n in t.subscriber.subscriptions) {
|
|
5027
5039
|
const i = t.subscriber.subscriptions[n];
|
|
@@ -5035,7 +5047,7 @@ function Po(t, e) {
|
|
|
5035
5047
|
}
|
|
5036
5048
|
return r;
|
|
5037
5049
|
}
|
|
5038
|
-
function
|
|
5050
|
+
function No(t) {
|
|
5039
5051
|
const e = {};
|
|
5040
5052
|
for (const r in t.subscriber.subscriptions) {
|
|
5041
5053
|
const n = t.subscriber.subscriptions[r];
|
|
@@ -5045,7 +5057,7 @@ function To(t) {
|
|
|
5045
5057
|
}
|
|
5046
5058
|
return e;
|
|
5047
5059
|
}
|
|
5048
|
-
function
|
|
5060
|
+
function Uo(t) {
|
|
5049
5061
|
const e = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Date();
|
|
5050
5062
|
for (const n in t) {
|
|
5051
5063
|
const i = t[n];
|
|
@@ -5053,7 +5065,7 @@ function No(t) {
|
|
|
5053
5065
|
}
|
|
5054
5066
|
return e;
|
|
5055
5067
|
}
|
|
5056
|
-
function
|
|
5068
|
+
function Ro(t) {
|
|
5057
5069
|
const e = {};
|
|
5058
5070
|
for (const r in t) {
|
|
5059
5071
|
if (t[r].length === 0)
|
|
@@ -5063,14 +5075,14 @@ function Uo(t) {
|
|
|
5063
5075
|
}
|
|
5064
5076
|
return e;
|
|
5065
5077
|
}
|
|
5066
|
-
function
|
|
5078
|
+
function So(t) {
|
|
5067
5079
|
if (!t.startsWith("rcb_"))
|
|
5068
|
-
throw new
|
|
5069
|
-
|
|
5080
|
+
throw new X(
|
|
5081
|
+
te.InvalidCredentialsError,
|
|
5070
5082
|
"Invalid API key. Use your RevenueCat Billing API key."
|
|
5071
5083
|
);
|
|
5072
5084
|
}
|
|
5073
|
-
function
|
|
5085
|
+
function Oo(t) {
|
|
5074
5086
|
if ((/* @__PURE__ */ new Set([
|
|
5075
5087
|
"no_user",
|
|
5076
5088
|
"null",
|
|
@@ -5084,8 +5096,8 @@ function So(t) {
|
|
|
5084
5096
|
"undefined",
|
|
5085
5097
|
"unknown"
|
|
5086
5098
|
])).has(t) || t.includes("/"))
|
|
5087
|
-
throw new
|
|
5088
|
-
|
|
5099
|
+
throw new X(
|
|
5100
|
+
te.InvalidAppUserIdError,
|
|
5089
5101
|
'Provided user id: "' + t + '" is not valid. See https://www.revenuecat.com/docs/customers/user-ids#tips-for-setting-app-user-ids for more information.'
|
|
5090
5102
|
);
|
|
5091
5103
|
}
|
|
@@ -5093,24 +5105,24 @@ const J = class J {
|
|
|
5093
5105
|
/** @internal */
|
|
5094
5106
|
constructor(e, r) {
|
|
5095
5107
|
/** @internal */
|
|
5096
|
-
|
|
5108
|
+
Q(this, "_API_KEY");
|
|
5097
5109
|
/** @internal */
|
|
5098
|
-
|
|
5110
|
+
Q(this, "_appUserId");
|
|
5099
5111
|
/** @internal */
|
|
5100
|
-
|
|
5112
|
+
Q(this, "backend");
|
|
5101
5113
|
/** @internal */
|
|
5102
|
-
|
|
5114
|
+
Q(this, "purchaseOperationHelper");
|
|
5103
5115
|
/** @internal */
|
|
5104
|
-
|
|
5116
|
+
Q(this, "toOfferings", (e, r) => {
|
|
5105
5117
|
const n = e.offerings.find(
|
|
5106
5118
|
(l) => l.identifier === e.current_offering_id
|
|
5107
5119
|
) ?? null, i = {};
|
|
5108
5120
|
r.product_details.forEach((l) => {
|
|
5109
5121
|
i[l.identifier] = l;
|
|
5110
5122
|
});
|
|
5111
|
-
const o = n == null ? null :
|
|
5123
|
+
const o = n == null ? null : Ze(n, i), s = {};
|
|
5112
5124
|
return e.offerings.forEach((l) => {
|
|
5113
|
-
const c =
|
|
5125
|
+
const c = Ze(l, i);
|
|
5114
5126
|
c != null && (s[l.identifier] = c);
|
|
5115
5127
|
}), Object.keys(s).length == 0 && V.debugLog(
|
|
5116
5128
|
"Empty offerings. Please make sure you've configured offerings correctly in the RevenueCat dashboard and that the products are properly configured."
|
|
@@ -5119,7 +5131,7 @@ const J = class J {
|
|
|
5119
5131
|
current: o
|
|
5120
5132
|
};
|
|
5121
5133
|
});
|
|
5122
|
-
this._API_KEY = e, this._appUserId = r,
|
|
5134
|
+
this._API_KEY = e, this._appUserId = r, je(e) && V.debugLog("Initializing Purchases SDK with sandbox API Key"), this.backend = new lo(this._API_KEY), this.purchaseOperationHelper = new Cn(this.backend);
|
|
5123
5135
|
}
|
|
5124
5136
|
/**
|
|
5125
5137
|
* Set the log level. Logs of the given level and below will be printed
|
|
@@ -5138,7 +5150,7 @@ const J = class J {
|
|
|
5138
5150
|
static getSharedInstance() {
|
|
5139
5151
|
if (J.isConfigured())
|
|
5140
5152
|
return J.instance;
|
|
5141
|
-
throw new
|
|
5153
|
+
throw new Wi();
|
|
5142
5154
|
}
|
|
5143
5155
|
/**
|
|
5144
5156
|
* Returns whether the Purchases SDK is configured or not.
|
|
@@ -5157,7 +5169,7 @@ const J = class J {
|
|
|
5157
5169
|
static configure(e, r) {
|
|
5158
5170
|
return J.instance !== void 0 ? (V.warnLog(
|
|
5159
5171
|
"Purchases is already initialized. Ignoring and returning existing instance."
|
|
5160
|
-
), J.getSharedInstance()) : (
|
|
5172
|
+
), J.getSharedInstance()) : (So(e), Oo(r), J.instance = new J(e, r), J.getSharedInstance());
|
|
5161
5173
|
}
|
|
5162
5174
|
/**
|
|
5163
5175
|
* Fetch the configured offerings for this user. You can configure these
|
|
@@ -5207,7 +5219,7 @@ const J = class J {
|
|
|
5207
5219
|
return V.debugLog(
|
|
5208
5220
|
`Presenting purchase form for package ${e.identifier}`
|
|
5209
5221
|
), new Promise((c, a) => {
|
|
5210
|
-
new
|
|
5222
|
+
new vo({
|
|
5211
5223
|
target: o,
|
|
5212
5224
|
props: {
|
|
5213
5225
|
appUserId: l,
|
|
@@ -5219,10 +5231,10 @@ const J = class J {
|
|
|
5219
5231
|
});
|
|
5220
5232
|
},
|
|
5221
5233
|
onClose: () => {
|
|
5222
|
-
o.innerHTML = "", V.debugLog("Purchase cancelled by user"), a(new
|
|
5234
|
+
o.innerHTML = "", V.debugLog("Purchase cancelled by user"), a(new X(te.UserCancelledError));
|
|
5223
5235
|
},
|
|
5224
5236
|
onError: (f) => {
|
|
5225
|
-
o.innerHTML = "", a(
|
|
5237
|
+
o.innerHTML = "", a(X.getForPurchasesFlowError(f));
|
|
5226
5238
|
},
|
|
5227
5239
|
purchases: this,
|
|
5228
5240
|
backend: this.backend,
|
|
@@ -5273,7 +5285,7 @@ const J = class J {
|
|
|
5273
5285
|
* @returns Whether the SDK is using a sandbox API Key.
|
|
5274
5286
|
*/
|
|
5275
5287
|
isSandbox() {
|
|
5276
|
-
return
|
|
5288
|
+
return je(this._API_KEY);
|
|
5277
5289
|
}
|
|
5278
5290
|
/**
|
|
5279
5291
|
* Closes the Purchases instance. You should never have to do this normally.
|
|
@@ -5290,13 +5302,13 @@ const J = class J {
|
|
|
5290
5302
|
}
|
|
5291
5303
|
};
|
|
5292
5304
|
/** @internal */
|
|
5293
|
-
|
|
5305
|
+
Q(J, "instance");
|
|
5294
5306
|
let It = J;
|
|
5295
5307
|
export {
|
|
5296
|
-
|
|
5308
|
+
te as ErrorCode,
|
|
5297
5309
|
j as LogLevel,
|
|
5298
|
-
|
|
5310
|
+
Gt as PackageType,
|
|
5299
5311
|
It as Purchases,
|
|
5300
|
-
|
|
5301
|
-
|
|
5312
|
+
X as PurchasesError,
|
|
5313
|
+
Wi as UninitializedPurchasesError
|
|
5302
5314
|
};
|