@revenuecat/purchases-js 0.11.1 → 0.11.2
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.js +356 -332
- package/dist/Purchases.umd.js +8 -8
- package/package.json +1 -1
package/dist/Purchases.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var On = Object.create;
|
|
2
2
|
var He = Object.defineProperty;
|
|
3
3
|
var Nn = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var dt = (t, e) => (e = Symbol[t]) ? e : Symbol.for("Symbol." + t),
|
|
4
|
+
var dt = (t, e) => (e = Symbol[t]) ? e : Symbol.for("Symbol." + t), _e = (t) => {
|
|
5
5
|
throw TypeError(t);
|
|
6
6
|
};
|
|
7
7
|
var pt = (t, e, n) => e in t ? He(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
8
8
|
var ct = (t, e) => He(t, "name", { value: e, configurable: !0 });
|
|
9
|
-
var mt = (t) => [, , , On((t == null ? void 0 : t[dt("metadata")]) ?? null)], _t = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"],
|
|
9
|
+
var mt = (t) => [, , , On((t == null ? void 0 : t[dt("metadata")]) ?? null)], _t = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], me = (t) => t !== void 0 && typeof t != "function" ? _e("Function expected") : t, Un = (t, e, n, r, i) => ({ kind: _t[t], name: e, metadata: r, addInitializer: (o) => n._ ? _e("Already initialized") : i.push(me(o || null)) }), xe = (t, e) => pt(e, dt("metadata"), t[3]), gt = (t, e, n, r) => {
|
|
10
10
|
for (var i = 0, o = t[e >> 1], s = o && o.length; i < s; i++) e & 1 ? o[i].call(n) : r = o[i].call(n, r);
|
|
11
11
|
return r;
|
|
12
12
|
}, ht = (t, e, n, r, i, o) => {
|
|
@@ -17,9 +17,9 @@ var mt = (t) => [, , , On((t == null ? void 0 : t[dt("metadata")]) ?? null)], _t
|
|
|
17
17
|
} }, n));
|
|
18
18
|
u ? h && u < 4 && ct(o, (u > 2 ? "set " : u > 1 ? "get " : "") + n) : ct(i, n);
|
|
19
19
|
for (var E = r.length - 1; E >= 0; E--)
|
|
20
|
-
c = Un(u, n, a = {}, t[3], O), u && (c.static = m, c.private = h, f = c.access = { has: h ? (P) => Rn(i, P) : (P) => n in P }, u ^ 3 && (f.get = h ? (P) => (u ^ 1 ? ut : Ln)(P, i, u ^ 4 ? o : C.get) : (P) => P[n]), u > 2 && (f.set = h ? (P, B) => ft(P, i, B, u ^ 4 ? o : C.set) : (P, B) => P[n] = B)), l = (0, r[E])(u ? u < 4 ? h ? o : C[T] : u > 4 ? void 0 : { get: C.get, set: C.set } : i, c), a._ = 1, u ^ 4 || l === void 0 ?
|
|
20
|
+
c = Un(u, n, a = {}, t[3], O), u && (c.static = m, c.private = h, f = c.access = { has: h ? (P) => Rn(i, P) : (P) => n in P }, u ^ 3 && (f.get = h ? (P) => (u ^ 1 ? ut : Ln)(P, i, u ^ 4 ? o : C.get) : (P) => P[n]), u > 2 && (f.set = h ? (P, B) => ft(P, i, B, u ^ 4 ? o : C.set) : (P, B) => P[n] = B)), l = (0, r[E])(u ? u < 4 ? h ? o : C[T] : u > 4 ? void 0 : { get: C.get, set: C.set } : i, c), a._ = 1, u ^ 4 || l === void 0 ? me(l) && (u > 4 ? w.unshift(l) : u ? h ? o = l : C[T] = l : i = l) : typeof l != "object" || l === null ? _e("Object expected") : (me(s = l.get) && (C.get = s), me(s = l.set) && (C.set = s), me(s = l.init) && w.unshift(s));
|
|
21
21
|
return u || xe(t, i), C && He(i, n, C), h ? u ^ 4 ? o : C : i;
|
|
22
|
-
}, N = (t, e, n) => pt(t, typeof e != "symbol" ? e + "" : e, n), qe = (t, e, n) => e.has(t) ||
|
|
22
|
+
}, N = (t, e, n) => pt(t, typeof e != "symbol" ? e + "" : e, n), qe = (t, e, n) => e.has(t) || _e("Cannot " + n), Rn = (t, e) => Object(e) !== e ? _e('Cannot use the "in" operator on this value') : t.has(e), ut = (t, e, n) => (qe(t, e, "read from private field"), n ? n.call(t) : e.get(t));
|
|
23
23
|
var ft = (t, e, n, r) => (qe(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), Ln = (t, e, n) => (qe(t, e, "access private method"), n);
|
|
24
24
|
function A() {
|
|
25
25
|
}
|
|
@@ -39,15 +39,15 @@ function bt() {
|
|
|
39
39
|
function ve(t) {
|
|
40
40
|
t.forEach(Wt);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function fe(t) {
|
|
43
43
|
return typeof t == "function";
|
|
44
44
|
}
|
|
45
45
|
function S(t, e) {
|
|
46
46
|
return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
|
|
47
47
|
}
|
|
48
|
-
let
|
|
49
|
-
function
|
|
50
|
-
return t === e ? !0 : (
|
|
48
|
+
let Ne;
|
|
49
|
+
function Ee(t, e) {
|
|
50
|
+
return t === e ? !0 : (Ne || (Ne = document.createElement("a")), Ne.href = e, t === Ne.href);
|
|
51
51
|
}
|
|
52
52
|
function wt(t) {
|
|
53
53
|
return t.split(",").map((e) => e.trim().split(" ").filter(Boolean));
|
|
@@ -60,13 +60,13 @@ function Mn(t, e) {
|
|
|
60
60
|
// relative URLs inside srcset are not automatically resolved to absolute URLs by
|
|
61
61
|
// browsers (in contrast to img.src). This means both SSR and DOM code could
|
|
62
62
|
// contain relative or absolute URLs.
|
|
63
|
-
(
|
|
63
|
+
(Ee(n[s][0], i) || Ee(i, n[s][0]))
|
|
64
64
|
);
|
|
65
65
|
}
|
|
66
66
|
function Dn(t) {
|
|
67
67
|
return Object.keys(t).length === 0;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function q(t, e, n, r) {
|
|
70
70
|
if (t) {
|
|
71
71
|
const i = Kt(t, e, n, r);
|
|
72
72
|
return t[0](i);
|
|
@@ -75,7 +75,7 @@ function x(t, e, n, r) {
|
|
|
75
75
|
function Kt(t, e, n, r) {
|
|
76
76
|
return t[1] && r ? Sn(n.ctx.slice(), t[1](r(e))) : n.ctx;
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function G(t, e, n, r) {
|
|
79
79
|
if (t[2] && r) {
|
|
80
80
|
const i = t[2](r(n));
|
|
81
81
|
if (e.dirty === void 0)
|
|
@@ -90,13 +90,13 @@ function q(t, e, n, r) {
|
|
|
90
90
|
}
|
|
91
91
|
return e.dirty;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function V(t, e, n, r, i, o) {
|
|
94
94
|
if (i) {
|
|
95
95
|
const s = Kt(e, n, r, o);
|
|
96
96
|
t.p(s, i);
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Y(t) {
|
|
100
100
|
if (t.ctx.length > 32) {
|
|
101
101
|
const e = [], n = t.ctx.length / 32;
|
|
102
102
|
for (let r = 0; r < n; r++)
|
|
@@ -114,7 +114,7 @@ function L(t, e) {
|
|
|
114
114
|
function F(t, e, n) {
|
|
115
115
|
const r = Bn(t);
|
|
116
116
|
if (!r.getElementById(e)) {
|
|
117
|
-
const i =
|
|
117
|
+
const i = I("style");
|
|
118
118
|
i.id = e, i.textContent = n, Cn(r, i);
|
|
119
119
|
}
|
|
120
120
|
}
|
|
@@ -140,7 +140,7 @@ function g(t, e, n) {
|
|
|
140
140
|
function _(t) {
|
|
141
141
|
t.parentNode && t.parentNode.removeChild(t);
|
|
142
142
|
}
|
|
143
|
-
function
|
|
143
|
+
function I(t) {
|
|
144
144
|
return document.createElement(t);
|
|
145
145
|
}
|
|
146
146
|
function H(t) {
|
|
@@ -152,7 +152,7 @@ function U() {
|
|
|
152
152
|
function ee() {
|
|
153
153
|
return H("");
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function $e(t, e, n, r) {
|
|
156
156
|
return t.addEventListener(e, n, r), () => t.removeEventListener(e, n, r);
|
|
157
157
|
}
|
|
158
158
|
function Qt(t) {
|
|
@@ -197,22 +197,22 @@ function ne(t, e, n, r) {
|
|
|
197
197
|
function Vn(t, e, { bubbles: n = !1, cancelable: r = !1 } = {}) {
|
|
198
198
|
return new CustomEvent(t, { detail: e, bubbles: n, cancelable: r });
|
|
199
199
|
}
|
|
200
|
-
let
|
|
201
|
-
function
|
|
202
|
-
|
|
200
|
+
let Ie;
|
|
201
|
+
function we(t) {
|
|
202
|
+
Ie = t;
|
|
203
203
|
}
|
|
204
|
-
function
|
|
205
|
-
if (!
|
|
206
|
-
return
|
|
204
|
+
function ke() {
|
|
205
|
+
if (!Ie) throw new Error("Function called outside component initialization");
|
|
206
|
+
return Ie;
|
|
207
207
|
}
|
|
208
208
|
function Yn(t) {
|
|
209
|
-
|
|
209
|
+
ke().$$.before_update.push(t);
|
|
210
210
|
}
|
|
211
211
|
function Fe(t) {
|
|
212
|
-
|
|
212
|
+
ke().$$.on_mount.push(t);
|
|
213
213
|
}
|
|
214
214
|
function zn() {
|
|
215
|
-
const t =
|
|
215
|
+
const t = ke();
|
|
216
216
|
return (e, n, { cancelable: r = !1 } = {}) => {
|
|
217
217
|
const i = t.$$.callbacks[e];
|
|
218
218
|
if (i) {
|
|
@@ -230,24 +230,24 @@ function zn() {
|
|
|
230
230
|
};
|
|
231
231
|
}
|
|
232
232
|
function Wn(t, e) {
|
|
233
|
-
return
|
|
233
|
+
return ke().$$.context.set(t, e), e;
|
|
234
234
|
}
|
|
235
235
|
function Kn(t) {
|
|
236
|
-
return
|
|
236
|
+
return ke().$$.context.get(t);
|
|
237
237
|
}
|
|
238
238
|
function Xt(t, e) {
|
|
239
239
|
const n = t.$$.callbacks[e.type];
|
|
240
240
|
n && n.slice().forEach((r) => r.call(this, e));
|
|
241
241
|
}
|
|
242
242
|
const ae = [], De = [];
|
|
243
|
-
let
|
|
243
|
+
let ue = [];
|
|
244
244
|
const Ke = [], Qn = /* @__PURE__ */ Promise.resolve();
|
|
245
245
|
let Qe = !1;
|
|
246
246
|
function Xn() {
|
|
247
247
|
Qe || (Qe = !0, Qn.then(Zt));
|
|
248
248
|
}
|
|
249
249
|
function Xe(t) {
|
|
250
|
-
|
|
250
|
+
ue.push(t);
|
|
251
251
|
}
|
|
252
252
|
function Zn(t) {
|
|
253
253
|
Ke.push(t);
|
|
@@ -257,26 +257,26 @@ let se = 0;
|
|
|
257
257
|
function Zt() {
|
|
258
258
|
if (se !== 0)
|
|
259
259
|
return;
|
|
260
|
-
const t =
|
|
260
|
+
const t = Ie;
|
|
261
261
|
do {
|
|
262
262
|
try {
|
|
263
263
|
for (; se < ae.length; ) {
|
|
264
264
|
const e = ae[se];
|
|
265
|
-
se++,
|
|
265
|
+
se++, we(e), Jn(e.$$);
|
|
266
266
|
}
|
|
267
267
|
} catch (e) {
|
|
268
268
|
throw ae.length = 0, se = 0, e;
|
|
269
269
|
}
|
|
270
|
-
for (
|
|
271
|
-
for (let e = 0; e <
|
|
272
|
-
const n =
|
|
270
|
+
for (we(null), ae.length = 0, se = 0; De.length; ) De.pop()();
|
|
271
|
+
for (let e = 0; e < ue.length; e += 1) {
|
|
272
|
+
const n = ue[e];
|
|
273
273
|
Ge.has(n) || (Ge.add(n), n());
|
|
274
274
|
}
|
|
275
|
-
|
|
275
|
+
ue.length = 0;
|
|
276
276
|
} while (ae.length);
|
|
277
277
|
for (; Ke.length; )
|
|
278
278
|
Ke.pop()();
|
|
279
|
-
Qe = !1, Ge.clear(),
|
|
279
|
+
Qe = !1, Ge.clear(), we(t);
|
|
280
280
|
}
|
|
281
281
|
function Jn(t) {
|
|
282
282
|
if (t.fragment !== null) {
|
|
@@ -287,9 +287,9 @@ function Jn(t) {
|
|
|
287
287
|
}
|
|
288
288
|
function er(t) {
|
|
289
289
|
const e = [], n = [];
|
|
290
|
-
|
|
290
|
+
ue.forEach((r) => t.indexOf(r) === -1 ? e.push(r) : n.push(r)), n.forEach((r) => r()), ue = e;
|
|
291
291
|
}
|
|
292
|
-
const
|
|
292
|
+
const Se = /* @__PURE__ */ new Set();
|
|
293
293
|
let oe;
|
|
294
294
|
function z() {
|
|
295
295
|
oe = {
|
|
@@ -303,13 +303,13 @@ function W() {
|
|
|
303
303
|
oe.r || ve(oe.c), oe = oe.p;
|
|
304
304
|
}
|
|
305
305
|
function d(t, e) {
|
|
306
|
-
t && t.i && (
|
|
306
|
+
t && t.i && (Se.delete(t), t.i(e));
|
|
307
307
|
}
|
|
308
308
|
function p(t, e, n, r) {
|
|
309
309
|
if (t && t.o) {
|
|
310
|
-
if (
|
|
311
|
-
|
|
312
|
-
|
|
310
|
+
if (Se.has(t)) return;
|
|
311
|
+
Se.add(t), oe.c.push(() => {
|
|
312
|
+
Se.delete(t), r && (n && t.d(1), r());
|
|
313
313
|
}), t.o(e);
|
|
314
314
|
} else r && r();
|
|
315
315
|
}
|
|
@@ -320,10 +320,10 @@ function tr(t, e, n) {
|
|
|
320
320
|
function k(t) {
|
|
321
321
|
t && t.c();
|
|
322
322
|
}
|
|
323
|
-
function
|
|
323
|
+
function v(t, e, n) {
|
|
324
324
|
const { fragment: r, after_update: i } = t.$$;
|
|
325
325
|
r && r.m(e, n), Xe(() => {
|
|
326
|
-
const o = t.$$.on_mount.map(Wt).filter(
|
|
326
|
+
const o = t.$$.on_mount.map(Wt).filter(fe);
|
|
327
327
|
t.$$.on_destroy ? t.$$.on_destroy.push(...o) : ve(o), t.$$.on_mount = [];
|
|
328
328
|
}), i.forEach(Xe);
|
|
329
329
|
}
|
|
@@ -335,8 +335,8 @@ function nr(t, e) {
|
|
|
335
335
|
t.$$.dirty[0] === -1 && (ae.push(t), Xn(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
336
336
|
}
|
|
337
337
|
function M(t, e, n, r, i, o, s = null, l = [-1]) {
|
|
338
|
-
const a =
|
|
339
|
-
|
|
338
|
+
const a = Ie;
|
|
339
|
+
we(t);
|
|
340
340
|
const c = t.$$ = {
|
|
341
341
|
fragment: null,
|
|
342
342
|
ctx: [],
|
|
@@ -369,9 +369,9 @@ function M(t, e, n, r, i, o, s = null, l = [-1]) {
|
|
|
369
369
|
c.fragment && c.fragment.l(u), u.forEach(_);
|
|
370
370
|
} else
|
|
371
371
|
c.fragment && c.fragment.c();
|
|
372
|
-
e.intro && d(t.$$.fragment),
|
|
372
|
+
e.intro && d(t.$$.fragment), v(t, e.target, e.anchor), Zt();
|
|
373
373
|
}
|
|
374
|
-
|
|
374
|
+
we(a);
|
|
375
375
|
}
|
|
376
376
|
class D {
|
|
377
377
|
constructor() {
|
|
@@ -403,7 +403,7 @@ class D {
|
|
|
403
403
|
* @returns {() => void}
|
|
404
404
|
*/
|
|
405
405
|
$on(e, n) {
|
|
406
|
-
if (!
|
|
406
|
+
if (!fe(n))
|
|
407
407
|
return A;
|
|
408
408
|
const r = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
409
409
|
return r.push(n), () => {
|
|
@@ -429,7 +429,7 @@ function Ve(t) {
|
|
|
429
429
|
const r = (
|
|
430
430
|
/*#slots*/
|
|
431
431
|
t[2].default
|
|
432
|
-
), i =
|
|
432
|
+
), i = q(
|
|
433
433
|
r,
|
|
434
434
|
t,
|
|
435
435
|
/*$$scope*/
|
|
@@ -438,7 +438,7 @@ function Ve(t) {
|
|
|
438
438
|
);
|
|
439
439
|
return {
|
|
440
440
|
c() {
|
|
441
|
-
e =
|
|
441
|
+
e = I(
|
|
442
442
|
/*as*/
|
|
443
443
|
t[0]
|
|
444
444
|
), i && i.c(), qn(
|
|
@@ -453,19 +453,19 @@ function Ve(t) {
|
|
|
453
453
|
},
|
|
454
454
|
p(o, s) {
|
|
455
455
|
i && i.p && (!n || s & /*$$scope*/
|
|
456
|
-
2) &&
|
|
456
|
+
2) && V(
|
|
457
457
|
i,
|
|
458
458
|
r,
|
|
459
459
|
o,
|
|
460
460
|
/*$$scope*/
|
|
461
461
|
o[1],
|
|
462
|
-
n ?
|
|
462
|
+
n ? G(
|
|
463
463
|
r,
|
|
464
464
|
/*$$scope*/
|
|
465
465
|
o[1],
|
|
466
466
|
s,
|
|
467
467
|
null
|
|
468
|
-
) :
|
|
468
|
+
) : Y(
|
|
469
469
|
/*$$scope*/
|
|
470
470
|
o[1]
|
|
471
471
|
),
|
|
@@ -526,7 +526,7 @@ function sr(t, e, n) {
|
|
|
526
526
|
"as" in s && n(0, o = s.as), "$$scope" in s && n(1, i = s.$$scope);
|
|
527
527
|
}, [o, i, r];
|
|
528
528
|
}
|
|
529
|
-
class
|
|
529
|
+
class de extends D {
|
|
530
530
|
constructor(e) {
|
|
531
531
|
super(), M(this, e, sr, or, S, { as: 0 }, ir);
|
|
532
532
|
}
|
|
@@ -655,13 +655,13 @@ const lr = (t, e, n) => {
|
|
|
655
655
|
function fr(t) {
|
|
656
656
|
return t != null;
|
|
657
657
|
}
|
|
658
|
-
var dr = /* @__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))(dr || {}),
|
|
658
|
+
var dr = /* @__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))(dr || {}), Pe = /* @__PURE__ */ ((t) => (t.Subscription = "subscription", t.Consumable = "consumable", t.NonConsumable = "non_consumable", t))(Pe || {});
|
|
659
659
|
const Jt = (t) => ({
|
|
660
660
|
amount: t.amount_micros / 1e4,
|
|
661
661
|
amountMicros: t.amount_micros,
|
|
662
662
|
currency: t.currency,
|
|
663
663
|
formattedPrice: lr(t.amount_micros, t.currency)
|
|
664
|
-
}),
|
|
664
|
+
}), It = (t) => {
|
|
665
665
|
const e = t.period_duration;
|
|
666
666
|
return {
|
|
667
667
|
periodDuration: e,
|
|
@@ -672,8 +672,8 @@ const Jt = (t) => ({
|
|
|
672
672
|
}, pr = (t) => t.base == null ? (j.debugLog("Missing base phase for subscription option. Ignoring."), null) : {
|
|
673
673
|
id: t.id,
|
|
674
674
|
priceId: t.price_id,
|
|
675
|
-
base:
|
|
676
|
-
trial: t.trial ?
|
|
675
|
+
base: It(t.base),
|
|
676
|
+
trial: t.trial ? It(t.trial) : null
|
|
677
677
|
}, mr = (t) => t.base_price == null ? (j.debugLog(
|
|
678
678
|
"Missing base price for non-subscription option. Ignoring."
|
|
679
679
|
), null) : {
|
|
@@ -816,11 +816,11 @@ function yr(t) {
|
|
|
816
816
|
function Er(t) {
|
|
817
817
|
F(t, "svelte-1mdrqnh", ".rcb-pricing-info.svelte-1mdrqnh{display:flex;flex-direction:column;margin-top:102px;font-weight:500}.rcb-product-price.svelte-1mdrqnh{color:var(--rc-color-grey-text-dark);font-size:24px;margin:12px 0px}.rcb-product-description.svelte-1mdrqnh{color:var(--rc-color-grey-text-dark);margin:0 0 12px 0}.rcb-product-price-after-trial.svelte-1mdrqnh{margin-bottom:12px}.rcb-product-details.svelte-1mdrqnh{color:var(--rc-color-grey-text-light);list-style-type:disc;list-style-position:inside;margin:0px;padding:0px}@media screen and (max-width: 960px){.rcb-pricing-info.svelte-1mdrqnh{margin-top:48px}}");
|
|
818
818
|
}
|
|
819
|
-
function
|
|
819
|
+
function Ir(t) {
|
|
820
820
|
var w, O, C;
|
|
821
821
|
let e, n, r, i, o, s, l, a, c, f, u = (
|
|
822
822
|
/*subscriptionTrial*/
|
|
823
|
-
((w = t[3]) == null ? void 0 : w.periodDuration) &&
|
|
823
|
+
((w = t[3]) == null ? void 0 : w.periodDuration) && vr(t)
|
|
824
824
|
), m = !/*subscriptionTrial*/
|
|
825
825
|
((O = t[3]) != null && O.periodDuration) && /*subscriptionBasePrice*/
|
|
826
826
|
t[4] && $r(t), h = (
|
|
@@ -830,28 +830,28 @@ function vr(t) {
|
|
|
830
830
|
), y = (
|
|
831
831
|
/*brandingAppearance*/
|
|
832
832
|
((C = t[1]) == null ? void 0 : C.show_product_description) && /*productDetails*/
|
|
833
|
-
t[0].description &&
|
|
833
|
+
t[0].description && vt(t)
|
|
834
834
|
), T = (
|
|
835
835
|
/*productDetails*/
|
|
836
836
|
t[0].normalPeriodDuration && $t(t)
|
|
837
837
|
);
|
|
838
838
|
return {
|
|
839
839
|
c() {
|
|
840
|
-
e =
|
|
840
|
+
e = I("span"), u && u.c(), n = U(), m && m.c(), r = U(), h && h.c(), i = U(), y && y.c(), o = U(), s = I("ul"), T && T.c(), l = U(), a = I("li"), a.textContent = "Continues until canceled", c = U(), f = I("li"), f.textContent = "Cancel anytime", b(e, "class", "rcb-product-price svelte-1mdrqnh"), b(s, "class", "rcb-product-details svelte-1mdrqnh");
|
|
841
841
|
},
|
|
842
842
|
m(E, P) {
|
|
843
843
|
g(E, e, P), u && u.m(e, null), L(e, n), m && m.m(e, null), g(E, r, P), h && h.m(E, P), g(E, i, P), y && y.m(E, P), g(E, o, P), g(E, s, P), T && T.m(s, null), L(s, l), L(s, a), L(s, c), L(s, f);
|
|
844
844
|
},
|
|
845
845
|
p(E, P) {
|
|
846
|
-
var B,
|
|
846
|
+
var B, Ae, Oe;
|
|
847
847
|
/*subscriptionTrial*/
|
|
848
848
|
(B = E[3]) != null && B.periodDuration && u.p(E, P), !/*subscriptionTrial*/
|
|
849
|
-
((
|
|
849
|
+
((Ae = E[3]) != null && Ae.periodDuration) && /*subscriptionBasePrice*/
|
|
850
850
|
E[4] && m.p(E, P), /*subscriptionTrial*/
|
|
851
851
|
E[3] && /*subscriptionBasePrice*/
|
|
852
852
|
E[4] && h.p(E, P), /*brandingAppearance*/
|
|
853
|
-
(
|
|
854
|
-
E[0].description ? y ? y.p(E, P) : (y =
|
|
853
|
+
(Oe = E[1]) != null && Oe.show_product_description && /*productDetails*/
|
|
854
|
+
E[0].description ? y ? y.p(E, P) : (y = vt(E), y.c(), y.m(o.parentNode, o)) : y && (y.d(1), y = null), /*productDetails*/
|
|
855
855
|
E[0].normalPeriodDuration ? T ? T.p(E, P) : (T = $t(E), T.c(), T.m(s, l)) : T && (T.d(1), T = null);
|
|
856
856
|
},
|
|
857
857
|
d(E) {
|
|
@@ -859,7 +859,7 @@ function vr(t) {
|
|
|
859
859
|
}
|
|
860
860
|
};
|
|
861
861
|
}
|
|
862
|
-
function
|
|
862
|
+
function vr(t) {
|
|
863
863
|
let e = ur(
|
|
864
864
|
/*subscriptionTrial*/
|
|
865
865
|
t[3].periodDuration
|
|
@@ -899,7 +899,7 @@ function kr(t) {
|
|
|
899
899
|
let e;
|
|
900
900
|
return {
|
|
901
901
|
c() {
|
|
902
|
-
e =
|
|
902
|
+
e = I("span"), e.textContent = `${/*subscriptionTrial*/
|
|
903
903
|
t[3] && /*subscriptionBasePrice*/
|
|
904
904
|
t[4] && `${/*subscriptionBasePrice*/
|
|
905
905
|
t[4].formattedPrice} after end of trial`}`, b(e, "class", "rcb-product-price-after-trial svelte-1mdrqnh");
|
|
@@ -913,14 +913,14 @@ function kr(t) {
|
|
|
913
913
|
}
|
|
914
914
|
};
|
|
915
915
|
}
|
|
916
|
-
function
|
|
916
|
+
function vt(t) {
|
|
917
917
|
let e, n = (
|
|
918
918
|
/*productDetails*/
|
|
919
919
|
t[0].description + ""
|
|
920
920
|
), r;
|
|
921
921
|
return {
|
|
922
922
|
c() {
|
|
923
|
-
e =
|
|
923
|
+
e = I("span"), r = H(n), b(e, "class", "rcb-product-description svelte-1mdrqnh");
|
|
924
924
|
},
|
|
925
925
|
m(i, o) {
|
|
926
926
|
g(i, e, o), L(e, r);
|
|
@@ -942,7 +942,7 @@ function $t(t) {
|
|
|
942
942
|
) + "", i;
|
|
943
943
|
return {
|
|
944
944
|
c() {
|
|
945
|
-
e =
|
|
945
|
+
e = I("li"), n = H("Renews "), i = H(r);
|
|
946
946
|
},
|
|
947
947
|
m(o, s) {
|
|
948
948
|
g(o, e, s), L(e, n), L(e, i);
|
|
@@ -968,7 +968,7 @@ function Pr(t) {
|
|
|
968
968
|
return {
|
|
969
969
|
c() {
|
|
970
970
|
var s;
|
|
971
|
-
e =
|
|
971
|
+
e = I("span"), e.textContent = `${/*nonSubscriptionBasePrice*/
|
|
972
972
|
(s = t[5]) == null ? void 0 : s.formattedPrice}`, n = U(), i && i.c(), r = ee(), b(e, "class", "rcb-product-price svelte-1mdrqnh");
|
|
973
973
|
},
|
|
974
974
|
m(s, l) {
|
|
@@ -991,7 +991,7 @@ function kt(t) {
|
|
|
991
991
|
), r;
|
|
992
992
|
return {
|
|
993
993
|
c() {
|
|
994
|
-
e =
|
|
994
|
+
e = I("span"), r = H(n), b(e, "class", "rcb-product-description svelte-1mdrqnh");
|
|
995
995
|
},
|
|
996
996
|
m(i, o) {
|
|
997
997
|
g(i, e, o), L(e, r);
|
|
@@ -1012,12 +1012,12 @@ function Tr(t) {
|
|
|
1012
1012
|
t[0].title + ""
|
|
1013
1013
|
), i, o, s, l = (
|
|
1014
1014
|
/*isSubscription*/
|
|
1015
|
-
t[2] &&
|
|
1015
|
+
t[2] && Ir(t)
|
|
1016
1016
|
), a = !/*isSubscription*/
|
|
1017
1017
|
t[2] && Pr(t);
|
|
1018
1018
|
return {
|
|
1019
1019
|
c() {
|
|
1020
|
-
e =
|
|
1020
|
+
e = I("div"), n = I("span"), i = H(r), o = U(), l && l.c(), s = U(), a && a.c(), b(n, "class", "rc-product-title"), b(e, "class", "rcb-pricing-info svelte-1mdrqnh");
|
|
1021
1021
|
},
|
|
1022
1022
|
m(c, f) {
|
|
1023
1023
|
g(c, e, f), L(e, n), L(n, i), L(e, o), l && l.m(e, null), L(e, s), a && a.m(e, null);
|
|
@@ -1036,7 +1036,7 @@ function Tr(t) {
|
|
|
1036
1036
|
}
|
|
1037
1037
|
function Ar(t) {
|
|
1038
1038
|
let e, n;
|
|
1039
|
-
return e = new
|
|
1039
|
+
return e = new de({
|
|
1040
1040
|
props: {
|
|
1041
1041
|
$$slots: { default: [Tr] },
|
|
1042
1042
|
$$scope: { ctx: t }
|
|
@@ -1046,7 +1046,7 @@ function Ar(t) {
|
|
|
1046
1046
|
k(e.$$.fragment);
|
|
1047
1047
|
},
|
|
1048
1048
|
m(r, i) {
|
|
1049
|
-
|
|
1049
|
+
v(e, r, i), n = !0;
|
|
1050
1050
|
},
|
|
1051
1051
|
p(r, [i]) {
|
|
1052
1052
|
const o = {};
|
|
@@ -1067,7 +1067,7 @@ function Ar(t) {
|
|
|
1067
1067
|
function Or(t, e, n) {
|
|
1068
1068
|
var m;
|
|
1069
1069
|
let { productDetails: r } = e, { purchaseOption: i } = e, { brandingAppearance: o = void 0 } = e;
|
|
1070
|
-
const s = r.productType ===
|
|
1070
|
+
const s = r.productType === Pe.Subscription, l = i, a = i, c = l == null ? void 0 : l.trial, f = (m = l == null ? void 0 : l.base) == null ? void 0 : m.price, u = a == null ? void 0 : a.basePrice;
|
|
1071
1071
|
return t.$$set = (h) => {
|
|
1072
1072
|
"productDetails" in h && n(0, r = h.productDetails), "purchaseOption" in h && n(6, i = h.purchaseOption), "brandingAppearance" in h && n(1, o = h.brandingAppearance);
|
|
1073
1073
|
}, [
|
|
@@ -1105,7 +1105,7 @@ function Rr(t) {
|
|
|
1105
1105
|
let e;
|
|
1106
1106
|
return {
|
|
1107
1107
|
c() {
|
|
1108
|
-
e =
|
|
1108
|
+
e = I("div"), ne(e, "color", "var(--rc-color-accent)"), b(e, "class", "rcb-ui-asset-icon svelte-16h2a8k");
|
|
1109
1109
|
},
|
|
1110
1110
|
m(n, r) {
|
|
1111
1111
|
g(n, e, r), e.innerHTML = Nr;
|
|
@@ -1130,10 +1130,10 @@ function Mr(t) {
|
|
|
1130
1130
|
let e, n, r;
|
|
1131
1131
|
return n = new Lr({}), {
|
|
1132
1132
|
c() {
|
|
1133
|
-
e =
|
|
1133
|
+
e = I("div"), k(n.$$.fragment), b(e, "class", "rcb-modal-loader svelte-l57ojl");
|
|
1134
1134
|
},
|
|
1135
1135
|
m(i, o) {
|
|
1136
|
-
g(i, e, o),
|
|
1136
|
+
g(i, e, o), v(n, e, null), r = !0;
|
|
1137
1137
|
},
|
|
1138
1138
|
p: A,
|
|
1139
1139
|
i(i) {
|
|
@@ -1153,7 +1153,7 @@ class tt extends D {
|
|
|
1153
1153
|
}
|
|
1154
1154
|
}
|
|
1155
1155
|
var X = /* @__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[t.InvalidEmailError = 38] = "InvalidEmailError", t))(X || {});
|
|
1156
|
-
class
|
|
1156
|
+
class ye {
|
|
1157
1157
|
static getPublicMessage(e) {
|
|
1158
1158
|
switch (e) {
|
|
1159
1159
|
case 0:
|
|
@@ -1290,10 +1290,10 @@ class Q extends Error {
|
|
|
1290
1290
|
}
|
|
1291
1291
|
/** @internal */
|
|
1292
1292
|
static getForBackendError(n, r) {
|
|
1293
|
-
const i =
|
|
1293
|
+
const i = ye.getErrorCodeForBackendErrorCode(n);
|
|
1294
1294
|
return new Q(
|
|
1295
1295
|
i,
|
|
1296
|
-
|
|
1296
|
+
ye.getPublicMessage(i),
|
|
1297
1297
|
r,
|
|
1298
1298
|
{ backendErrorCode: n }
|
|
1299
1299
|
);
|
|
@@ -1301,7 +1301,7 @@ class Q extends Error {
|
|
|
1301
1301
|
/** @internal */
|
|
1302
1302
|
static getForPurchasesFlowError(n) {
|
|
1303
1303
|
return new Q(
|
|
1304
|
-
|
|
1304
|
+
ye.convertPurchaseFlowErrorCodeToErrorCode(
|
|
1305
1305
|
n.errorCode
|
|
1306
1306
|
),
|
|
1307
1307
|
n.message,
|
|
@@ -1314,8 +1314,8 @@ class Dr extends Error {
|
|
|
1314
1314
|
super("Purchases must be configured before calling getInstance");
|
|
1315
1315
|
}
|
|
1316
1316
|
}
|
|
1317
|
-
var
|
|
1318
|
-
class
|
|
1317
|
+
var be = /* @__PURE__ */ ((t) => (t.Started = "started", t.InProgress = "in_progress", t.Succeeded = "succeeded", t.Failed = "failed", t))(be || {}), ce = /* @__PURE__ */ ((t) => (t[t.SetupIntentCreationFailed = 1] = "SetupIntentCreationFailed", t[t.PaymentMethodCreationFailed = 2] = "PaymentMethodCreationFailed", t[t.PaymentChargeFailed = 3] = "PaymentChargeFailed", t[t.SetupIntentCompletionFailed = 4] = "SetupIntentCompletionFailed", t[t.AlreadyPurchased = 5] = "AlreadyPurchased", t))(ce || {}), K = /* @__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[t.AlreadyPurchasedError = 6] = "AlreadyPurchasedError", t))(K || {});
|
|
1318
|
+
class x extends Error {
|
|
1319
1319
|
constructor(e, n, r, i, o) {
|
|
1320
1320
|
super(n), this.errorCode = e, this.underlyingErrorMessage = r, this.purchasesErrorCode = i, this.extra = o;
|
|
1321
1321
|
}
|
|
@@ -1349,12 +1349,12 @@ class Y extends Error {
|
|
|
1349
1349
|
case 5:
|
|
1350
1350
|
return "Email is required to complete the purchase.";
|
|
1351
1351
|
case 6:
|
|
1352
|
-
return (e == null ? void 0 : e.productType) ===
|
|
1352
|
+
return (e == null ? void 0 : e.productType) === Pe.Subscription ? "You are already subscribed to this product." : "You have already purchased this product.";
|
|
1353
1353
|
}
|
|
1354
1354
|
}
|
|
1355
1355
|
static fromPurchasesError(e, n) {
|
|
1356
1356
|
let r;
|
|
1357
|
-
return e.errorCode === X.ProductAlreadyPurchasedError ? r = 6 : e.errorCode === X.InvalidEmailError ? r = 5 : e.errorCode === X.NetworkError ? r = 3 : r = n, new
|
|
1357
|
+
return e.errorCode === X.ProductAlreadyPurchasedError ? r = 6 : e.errorCode === X.InvalidEmailError ? r = 5 : e.errorCode === X.NetworkError ? r = 3 : r = n, new x(
|
|
1358
1358
|
r,
|
|
1359
1359
|
e.message,
|
|
1360
1360
|
e.underlyingErrorMessage,
|
|
@@ -1383,14 +1383,14 @@ class Br {
|
|
|
1383
1383
|
return this.operationSessionId = s.operation_session_id, s;
|
|
1384
1384
|
} catch (s) {
|
|
1385
1385
|
if (s instanceof Q)
|
|
1386
|
-
throw
|
|
1386
|
+
throw x.fromPurchasesError(
|
|
1387
1387
|
s,
|
|
1388
1388
|
0
|
|
1389
1389
|
/* ErrorSettingUpPurchase */
|
|
1390
1390
|
);
|
|
1391
1391
|
{
|
|
1392
1392
|
const l = "Unknown error starting purchase: " + String(s);
|
|
1393
|
-
throw j.errorLog(l), new
|
|
1393
|
+
throw j.errorLog(l), new x(
|
|
1394
1394
|
2,
|
|
1395
1395
|
l
|
|
1396
1396
|
);
|
|
@@ -1400,7 +1400,7 @@ class Br {
|
|
|
1400
1400
|
async pollCurrentPurchaseForCompletion() {
|
|
1401
1401
|
const e = this.operationSessionId;
|
|
1402
1402
|
if (!e)
|
|
1403
|
-
throw new
|
|
1403
|
+
throw new x(
|
|
1404
1404
|
0,
|
|
1405
1405
|
"No purchase in progress"
|
|
1406
1406
|
);
|
|
@@ -1408,7 +1408,7 @@ class Br {
|
|
|
1408
1408
|
const i = (o = 1) => {
|
|
1409
1409
|
if (o > this.maxNumberAttempts) {
|
|
1410
1410
|
this.clearPurchaseInProgress(), r(
|
|
1411
|
-
new
|
|
1411
|
+
new x(
|
|
1412
1412
|
2,
|
|
1413
1413
|
"Max attempts reached trying to get successful purchase status"
|
|
1414
1414
|
)
|
|
@@ -1417,24 +1417,24 @@ class Br {
|
|
|
1417
1417
|
}
|
|
1418
1418
|
this.backend.getCheckoutStatus(e).then((s) => {
|
|
1419
1419
|
switch (s.operation.status) {
|
|
1420
|
-
case
|
|
1421
|
-
case
|
|
1420
|
+
case be.Started:
|
|
1421
|
+
case be.InProgress:
|
|
1422
1422
|
setTimeout(
|
|
1423
1423
|
() => i(o + 1),
|
|
1424
1424
|
this.waitMSBetweenAttempts
|
|
1425
1425
|
);
|
|
1426
1426
|
break;
|
|
1427
|
-
case
|
|
1427
|
+
case be.Succeeded:
|
|
1428
1428
|
this.clearPurchaseInProgress(), n();
|
|
1429
1429
|
return;
|
|
1430
|
-
case
|
|
1430
|
+
case be.Failed:
|
|
1431
1431
|
this.clearPurchaseInProgress(), this.handlePaymentError(
|
|
1432
1432
|
s.operation.error,
|
|
1433
1433
|
r
|
|
1434
1434
|
);
|
|
1435
1435
|
}
|
|
1436
1436
|
}).catch((s) => {
|
|
1437
|
-
const l =
|
|
1437
|
+
const l = x.fromPurchasesError(
|
|
1438
1438
|
s,
|
|
1439
1439
|
3
|
|
1440
1440
|
/* NetworkError */
|
|
@@ -1451,7 +1451,7 @@ class Br {
|
|
|
1451
1451
|
handlePaymentError(e, n) {
|
|
1452
1452
|
if (e == null) {
|
|
1453
1453
|
n(
|
|
1454
|
-
new
|
|
1454
|
+
new x(
|
|
1455
1455
|
2,
|
|
1456
1456
|
"Got an error status but error field is empty."
|
|
1457
1457
|
)
|
|
@@ -1459,30 +1459,54 @@ class Br {
|
|
|
1459
1459
|
return;
|
|
1460
1460
|
}
|
|
1461
1461
|
switch (e.code) {
|
|
1462
|
-
case
|
|
1462
|
+
case ce.SetupIntentCreationFailed:
|
|
1463
1463
|
n(
|
|
1464
|
-
new
|
|
1464
|
+
new x(
|
|
1465
1465
|
0,
|
|
1466
1466
|
"Setup intent creation failed"
|
|
1467
1467
|
)
|
|
1468
1468
|
);
|
|
1469
1469
|
return;
|
|
1470
|
-
case
|
|
1470
|
+
case ce.PaymentMethodCreationFailed:
|
|
1471
1471
|
n(
|
|
1472
|
-
new
|
|
1472
|
+
new x(
|
|
1473
1473
|
0,
|
|
1474
1474
|
"Payment method creation failed"
|
|
1475
1475
|
)
|
|
1476
1476
|
);
|
|
1477
1477
|
return;
|
|
1478
|
-
case
|
|
1478
|
+
case ce.PaymentChargeFailed:
|
|
1479
1479
|
n(
|
|
1480
|
-
new
|
|
1480
|
+
new x(
|
|
1481
1481
|
1,
|
|
1482
1482
|
"Payment charge failed"
|
|
1483
1483
|
)
|
|
1484
1484
|
);
|
|
1485
1485
|
return;
|
|
1486
|
+
case ce.SetupIntentCompletionFailed:
|
|
1487
|
+
n(
|
|
1488
|
+
new x(
|
|
1489
|
+
0,
|
|
1490
|
+
"Setup intent completion failed"
|
|
1491
|
+
)
|
|
1492
|
+
);
|
|
1493
|
+
return;
|
|
1494
|
+
case ce.AlreadyPurchased:
|
|
1495
|
+
n(
|
|
1496
|
+
new x(
|
|
1497
|
+
6,
|
|
1498
|
+
"Purchased was already completed"
|
|
1499
|
+
)
|
|
1500
|
+
);
|
|
1501
|
+
return;
|
|
1502
|
+
default:
|
|
1503
|
+
n(
|
|
1504
|
+
new x(
|
|
1505
|
+
2,
|
|
1506
|
+
"Unknown error code received"
|
|
1507
|
+
)
|
|
1508
|
+
);
|
|
1509
|
+
return;
|
|
1486
1510
|
}
|
|
1487
1511
|
}
|
|
1488
1512
|
}
|
|
@@ -1499,7 +1523,7 @@ function jr(t) {
|
|
|
1499
1523
|
let e;
|
|
1500
1524
|
return {
|
|
1501
1525
|
c() {
|
|
1502
|
-
e =
|
|
1526
|
+
e = I("div"), ne(e, "color", "var(--rc-color-error)"), b(e, "class", "rcb-ui-asset-icon svelte-7wiquz");
|
|
1503
1527
|
},
|
|
1504
1528
|
m(n, r) {
|
|
1505
1529
|
g(n, e, r), e.innerHTML = Cr;
|
|
@@ -1525,7 +1549,7 @@ function qr(t) {
|
|
|
1525
1549
|
const s = (
|
|
1526
1550
|
/*#slots*/
|
|
1527
1551
|
t[5].default
|
|
1528
|
-
), l =
|
|
1552
|
+
), l = q(
|
|
1529
1553
|
s,
|
|
1530
1554
|
t,
|
|
1531
1555
|
/*$$scope*/
|
|
@@ -1534,7 +1558,7 @@ function qr(t) {
|
|
|
1534
1558
|
);
|
|
1535
1559
|
return {
|
|
1536
1560
|
c() {
|
|
1537
|
-
e =
|
|
1561
|
+
e = I("button"), l && l.c(), b(e, "class", n = We(`intent-${/*intent*/
|
|
1538
1562
|
t[0]}`) + " svelte-2xwwo"), e.disabled = /*disabled*/
|
|
1539
1563
|
t[1], b(
|
|
1540
1564
|
e,
|
|
@@ -1549,7 +1573,7 @@ function qr(t) {
|
|
|
1549
1573
|
);
|
|
1550
1574
|
},
|
|
1551
1575
|
m(a, c) {
|
|
1552
|
-
g(a, e, c), l && l.m(e, null), r = !0, i || (o =
|
|
1576
|
+
g(a, e, c), l && l.m(e, null), r = !0, i || (o = $e(
|
|
1553
1577
|
e,
|
|
1554
1578
|
"click",
|
|
1555
1579
|
/*click_handler*/
|
|
@@ -1558,19 +1582,19 @@ function qr(t) {
|
|
|
1558
1582
|
},
|
|
1559
1583
|
p(a, [c]) {
|
|
1560
1584
|
l && l.p && (!r || c & /*$$scope*/
|
|
1561
|
-
16) &&
|
|
1585
|
+
16) && V(
|
|
1562
1586
|
l,
|
|
1563
1587
|
s,
|
|
1564
1588
|
a,
|
|
1565
1589
|
/*$$scope*/
|
|
1566
1590
|
a[4],
|
|
1567
|
-
r ?
|
|
1591
|
+
r ? G(
|
|
1568
1592
|
s,
|
|
1569
1593
|
/*$$scope*/
|
|
1570
1594
|
a[4],
|
|
1571
1595
|
c,
|
|
1572
1596
|
null
|
|
1573
|
-
) :
|
|
1597
|
+
) : Y(
|
|
1574
1598
|
/*$$scope*/
|
|
1575
1599
|
a[4]
|
|
1576
1600
|
),
|
|
@@ -1639,7 +1663,7 @@ function Yr(t) {
|
|
|
1639
1663
|
const r = (
|
|
1640
1664
|
/*#slots*/
|
|
1641
1665
|
t[1].default
|
|
1642
|
-
), i =
|
|
1666
|
+
), i = q(
|
|
1643
1667
|
r,
|
|
1644
1668
|
t,
|
|
1645
1669
|
/*$$scope*/
|
|
@@ -1648,26 +1672,26 @@ function Yr(t) {
|
|
|
1648
1672
|
);
|
|
1649
1673
|
return {
|
|
1650
1674
|
c() {
|
|
1651
|
-
e =
|
|
1675
|
+
e = I("footer"), i && i.c(), b(e, "class", "rcb-modal-footer svelte-1f9z0o8");
|
|
1652
1676
|
},
|
|
1653
1677
|
m(o, s) {
|
|
1654
1678
|
g(o, e, s), i && i.m(e, null), n = !0;
|
|
1655
1679
|
},
|
|
1656
1680
|
p(o, [s]) {
|
|
1657
1681
|
i && i.p && (!n || s & /*$$scope*/
|
|
1658
|
-
1) &&
|
|
1682
|
+
1) && V(
|
|
1659
1683
|
i,
|
|
1660
1684
|
r,
|
|
1661
1685
|
o,
|
|
1662
1686
|
/*$$scope*/
|
|
1663
1687
|
o[0],
|
|
1664
|
-
n ?
|
|
1688
|
+
n ? G(
|
|
1665
1689
|
r,
|
|
1666
1690
|
/*$$scope*/
|
|
1667
1691
|
o[0],
|
|
1668
1692
|
s,
|
|
1669
1693
|
null
|
|
1670
|
-
) :
|
|
1694
|
+
) : Y(
|
|
1671
1695
|
/*$$scope*/
|
|
1672
1696
|
o[0]
|
|
1673
1697
|
),
|
|
@@ -1704,7 +1728,7 @@ function Kr(t) {
|
|
|
1704
1728
|
const i = (
|
|
1705
1729
|
/*#slots*/
|
|
1706
1730
|
t[2].default
|
|
1707
|
-
), o =
|
|
1731
|
+
), o = q(
|
|
1708
1732
|
i,
|
|
1709
1733
|
t,
|
|
1710
1734
|
/*$$scope*/
|
|
@@ -1713,7 +1737,7 @@ function Kr(t) {
|
|
|
1713
1737
|
);
|
|
1714
1738
|
return {
|
|
1715
1739
|
c() {
|
|
1716
|
-
e =
|
|
1740
|
+
e = I("div"), o && o.c(), b(e, "class", "column svelte-6o8e90"), b(e, "style", n = `--gap:${/*gutter*/
|
|
1717
1741
|
t[0]};`);
|
|
1718
1742
|
},
|
|
1719
1743
|
m(s, l) {
|
|
@@ -1721,19 +1745,19 @@ function Kr(t) {
|
|
|
1721
1745
|
},
|
|
1722
1746
|
p(s, [l]) {
|
|
1723
1747
|
o && o.p && (!r || l & /*$$scope*/
|
|
1724
|
-
2) &&
|
|
1748
|
+
2) && V(
|
|
1725
1749
|
o,
|
|
1726
1750
|
i,
|
|
1727
1751
|
s,
|
|
1728
1752
|
/*$$scope*/
|
|
1729
1753
|
s[1],
|
|
1730
|
-
r ?
|
|
1754
|
+
r ? G(
|
|
1731
1755
|
i,
|
|
1732
1756
|
/*$$scope*/
|
|
1733
1757
|
s[1],
|
|
1734
1758
|
l,
|
|
1735
1759
|
null
|
|
1736
|
-
) :
|
|
1760
|
+
) : Y(
|
|
1737
1761
|
/*$$scope*/
|
|
1738
1762
|
s[1]
|
|
1739
1763
|
),
|
|
@@ -1759,7 +1783,7 @@ function Qr(t, e, n) {
|
|
|
1759
1783
|
"gutter" in s && n(0, o = s.gutter), "$$scope" in s && n(1, i = s.$$scope);
|
|
1760
1784
|
}, [o, i, r];
|
|
1761
1785
|
}
|
|
1762
|
-
class
|
|
1786
|
+
class Te extends D {
|
|
1763
1787
|
constructor(e) {
|
|
1764
1788
|
super(), M(this, e, Qr, Kr, S, { gutter: 0 }, Wr);
|
|
1765
1789
|
}
|
|
@@ -1772,11 +1796,11 @@ function Jr(t) {
|
|
|
1772
1796
|
let e, n, r, i, o;
|
|
1773
1797
|
return {
|
|
1774
1798
|
c() {
|
|
1775
|
-
e =
|
|
1799
|
+
e = I("button"), n = I("img"), Ee(n.src, r = Xr) || b(n, "src", r), b(n, "alt", "close"), b(e, "class", "close-button svelte-1hv9ta1"), e.disabled = /*disabled*/
|
|
1776
1800
|
t[0];
|
|
1777
1801
|
},
|
|
1778
1802
|
m(s, l) {
|
|
1779
|
-
g(s, e, l), L(e, n), i || (o =
|
|
1803
|
+
g(s, e, l), L(e, n), i || (o = $e(
|
|
1780
1804
|
e,
|
|
1781
1805
|
"click",
|
|
1782
1806
|
/*click_handler*/
|
|
@@ -1816,7 +1840,7 @@ function ni(t) {
|
|
|
1816
1840
|
let e;
|
|
1817
1841
|
return {
|
|
1818
1842
|
c() {
|
|
1819
|
-
e =
|
|
1843
|
+
e = I("div"), b(e, "class", "rcb-app-icon loading svelte-44qpq9");
|
|
1820
1844
|
},
|
|
1821
1845
|
m(n, r) {
|
|
1822
1846
|
g(n, e, r);
|
|
@@ -1831,8 +1855,8 @@ function ri(t) {
|
|
|
1831
1855
|
let e, n, r, i, o, s;
|
|
1832
1856
|
return {
|
|
1833
1857
|
c() {
|
|
1834
|
-
e =
|
|
1835
|
-
t[1]) || b(n, "srcset", r), b(o, "class", "rcb-app-icon svelte-44qpq9"),
|
|
1858
|
+
e = I("picture"), n = I("source"), i = U(), o = I("img"), b(n, "type", "image/webp"), Mn(n, r = /*srcWebp*/
|
|
1859
|
+
t[1]) || b(n, "srcset", r), b(o, "class", "rcb-app-icon svelte-44qpq9"), Ee(o.src, s = /*src*/
|
|
1836
1860
|
t[0]) || b(o, "src", s), b(o, "alt", "App icon"), b(e, "class", "rcb-app-icon-picture-container svelte-44qpq9");
|
|
1837
1861
|
},
|
|
1838
1862
|
m(l, a) {
|
|
@@ -1842,7 +1866,7 @@ function ri(t) {
|
|
|
1842
1866
|
a & /*srcWebp*/
|
|
1843
1867
|
2 && r !== (r = /*srcWebp*/
|
|
1844
1868
|
l[1]) && b(n, "srcset", r), a & /*src*/
|
|
1845
|
-
1 && !
|
|
1869
|
+
1 && !Ee(o.src, s = /*src*/
|
|
1846
1870
|
l[0]) && b(o, "src", s);
|
|
1847
1871
|
},
|
|
1848
1872
|
d(l) {
|
|
@@ -1887,7 +1911,7 @@ class nn extends D {
|
|
|
1887
1911
|
super(), M(this, e, oi, ii, S, { src: 0, srcWebp: 1 }, ti);
|
|
1888
1912
|
}
|
|
1889
1913
|
}
|
|
1890
|
-
const
|
|
1914
|
+
const Ue = (t) => `https://da08ctfrofx1b.cloudfront.net/${t}`;
|
|
1891
1915
|
function si(t) {
|
|
1892
1916
|
F(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}");
|
|
1893
1917
|
}
|
|
@@ -1898,7 +1922,7 @@ function li(t) {
|
|
|
1898
1922
|
k(e.$$.fragment);
|
|
1899
1923
|
},
|
|
1900
1924
|
m(r, i) {
|
|
1901
|
-
|
|
1925
|
+
v(e, r, i), n = !0;
|
|
1902
1926
|
},
|
|
1903
1927
|
p: A,
|
|
1904
1928
|
i(r) {
|
|
@@ -1923,7 +1947,7 @@ function ai(t) {
|
|
|
1923
1947
|
);
|
|
1924
1948
|
return {
|
|
1925
1949
|
c() {
|
|
1926
|
-
s && s.c(), e = U(), n =
|
|
1950
|
+
s && s.c(), e = U(), n = I("span"), i = H(r), b(n, "class", "app-title svelte-10uf5fq");
|
|
1927
1951
|
},
|
|
1928
1952
|
m(l, a) {
|
|
1929
1953
|
s && s.m(l, a), g(l, e, a), g(l, n, a), L(n, i), o = !0;
|
|
@@ -1953,11 +1977,11 @@ function Pt(t) {
|
|
|
1953
1977
|
let e, n;
|
|
1954
1978
|
return e = new nn({
|
|
1955
1979
|
props: {
|
|
1956
|
-
src:
|
|
1980
|
+
src: Ue(
|
|
1957
1981
|
/*brandingInfo*/
|
|
1958
1982
|
t[0].app_icon
|
|
1959
1983
|
),
|
|
1960
|
-
srcWebp:
|
|
1984
|
+
srcWebp: Ue(
|
|
1961
1985
|
/*brandingInfo*/
|
|
1962
1986
|
t[0].app_icon_webp
|
|
1963
1987
|
)
|
|
@@ -1967,16 +1991,16 @@ function Pt(t) {
|
|
|
1967
1991
|
k(e.$$.fragment);
|
|
1968
1992
|
},
|
|
1969
1993
|
m(r, i) {
|
|
1970
|
-
|
|
1994
|
+
v(e, r, i), n = !0;
|
|
1971
1995
|
},
|
|
1972
1996
|
p(r, i) {
|
|
1973
1997
|
const o = {};
|
|
1974
1998
|
i & /*brandingInfo*/
|
|
1975
|
-
1 && (o.src =
|
|
1999
|
+
1 && (o.src = Ue(
|
|
1976
2000
|
/*brandingInfo*/
|
|
1977
2001
|
r[0].app_icon
|
|
1978
2002
|
)), i & /*brandingInfo*/
|
|
1979
|
-
1 && (o.srcWebp =
|
|
2003
|
+
1 && (o.srcWebp = Ue(
|
|
1980
2004
|
/*brandingInfo*/
|
|
1981
2005
|
r[0].app_icon_webp
|
|
1982
2006
|
)), e.$set(o);
|
|
@@ -2003,7 +2027,7 @@ function ci(t) {
|
|
|
2003
2027
|
}
|
|
2004
2028
|
return n = l(t), r = s[n] = o[n](t), {
|
|
2005
2029
|
c() {
|
|
2006
|
-
e =
|
|
2030
|
+
e = I("div"), r.c(), b(e, "class", "rcb-header-layout__business-info svelte-10uf5fq");
|
|
2007
2031
|
},
|
|
2008
2032
|
m(a, c) {
|
|
2009
2033
|
g(a, e, c), s[n].m(e, null), i = !0;
|
|
@@ -2047,16 +2071,16 @@ function di(t) {
|
|
|
2047
2071
|
t[0]
|
|
2048
2072
|
) }
|
|
2049
2073
|
}), i = new it({}), i.$on("click", function() {
|
|
2050
|
-
|
|
2074
|
+
fe(
|
|
2051
2075
|
/*onClose*/
|
|
2052
2076
|
t[1]
|
|
2053
2077
|
) && t[1].apply(this, arguments);
|
|
2054
2078
|
}), {
|
|
2055
2079
|
c() {
|
|
2056
|
-
e =
|
|
2080
|
+
e = I("div"), k(n.$$.fragment), r = U(), k(i.$$.fragment), b(e, "class", "rcb-post-purchase-header-layout svelte-17puakv");
|
|
2057
2081
|
},
|
|
2058
2082
|
m(s, l) {
|
|
2059
|
-
g(s, e, l),
|
|
2083
|
+
g(s, e, l), v(n, e, null), L(e, r), v(i, e, null), o = !0;
|
|
2060
2084
|
},
|
|
2061
2085
|
p(s, l) {
|
|
2062
2086
|
t = s;
|
|
@@ -2078,7 +2102,7 @@ function di(t) {
|
|
|
2078
2102
|
}
|
|
2079
2103
|
function pi(t) {
|
|
2080
2104
|
let e, n;
|
|
2081
|
-
return e = new
|
|
2105
|
+
return e = new de({
|
|
2082
2106
|
props: {
|
|
2083
2107
|
as: "header",
|
|
2084
2108
|
$$slots: { default: [di] },
|
|
@@ -2089,7 +2113,7 @@ function pi(t) {
|
|
|
2089
2113
|
k(e.$$.fragment);
|
|
2090
2114
|
},
|
|
2091
2115
|
m(r, i) {
|
|
2092
|
-
|
|
2116
|
+
v(e, r, i), n = !0;
|
|
2093
2117
|
},
|
|
2094
2118
|
p(r, [i]) {
|
|
2095
2119
|
const o = {};
|
|
@@ -2127,7 +2151,7 @@ function bi(t) {
|
|
|
2127
2151
|
const s = (
|
|
2128
2152
|
/*#slots*/
|
|
2129
2153
|
t[5].default
|
|
2130
|
-
), l =
|
|
2154
|
+
), l = q(
|
|
2131
2155
|
s,
|
|
2132
2156
|
t,
|
|
2133
2157
|
/*$$scope*/
|
|
@@ -2136,10 +2160,10 @@ function bi(t) {
|
|
|
2136
2160
|
);
|
|
2137
2161
|
return {
|
|
2138
2162
|
c() {
|
|
2139
|
-
e =
|
|
2163
|
+
e = I("span"), n = H(
|
|
2140
2164
|
/*title*/
|
|
2141
2165
|
t[2]
|
|
2142
|
-
), r = U(), i =
|
|
2166
|
+
), r = U(), i = I("span"), l && l.c(), b(e, "class", "title svelte-idou50"), b(i, "class", "subtitle svelte-idou50");
|
|
2143
2167
|
},
|
|
2144
2168
|
m(a, c) {
|
|
2145
2169
|
g(a, e, c), L(e, n), g(a, r, c), g(a, i, c), l && l.m(i, null), o = !0;
|
|
@@ -2151,19 +2175,19 @@ function bi(t) {
|
|
|
2151
2175
|
/*title*/
|
|
2152
2176
|
a[2]
|
|
2153
2177
|
), l && l.p && (!o || c & /*$$scope*/
|
|
2154
|
-
64) &&
|
|
2178
|
+
64) && V(
|
|
2155
2179
|
l,
|
|
2156
2180
|
s,
|
|
2157
2181
|
a,
|
|
2158
2182
|
/*$$scope*/
|
|
2159
2183
|
a[6],
|
|
2160
|
-
o ?
|
|
2184
|
+
o ? G(
|
|
2161
2185
|
s,
|
|
2162
2186
|
/*$$scope*/
|
|
2163
2187
|
a[6],
|
|
2164
2188
|
c,
|
|
2165
2189
|
null
|
|
2166
|
-
) :
|
|
2190
|
+
) : Y(
|
|
2167
2191
|
/*$$scope*/
|
|
2168
2192
|
a[6]
|
|
2169
2193
|
),
|
|
@@ -2186,14 +2210,14 @@ function wi(t) {
|
|
|
2186
2210
|
const i = (
|
|
2187
2211
|
/*#slots*/
|
|
2188
2212
|
t[5].icon
|
|
2189
|
-
), o =
|
|
2213
|
+
), o = q(
|
|
2190
2214
|
i,
|
|
2191
2215
|
t,
|
|
2192
2216
|
/*$$scope*/
|
|
2193
2217
|
t[6],
|
|
2194
2218
|
Tt
|
|
2195
2219
|
);
|
|
2196
|
-
return n = new
|
|
2220
|
+
return n = new Te({
|
|
2197
2221
|
props: {
|
|
2198
2222
|
gutter: "16px",
|
|
2199
2223
|
$$slots: { default: [bi] },
|
|
@@ -2204,23 +2228,23 @@ function wi(t) {
|
|
|
2204
2228
|
o && o.c(), e = U(), k(n.$$.fragment);
|
|
2205
2229
|
},
|
|
2206
2230
|
m(s, l) {
|
|
2207
|
-
o && o.m(s, l), g(s, e, l),
|
|
2231
|
+
o && o.m(s, l), g(s, e, l), v(n, s, l), r = !0;
|
|
2208
2232
|
},
|
|
2209
2233
|
p(s, l) {
|
|
2210
2234
|
o && o.p && (!r || l & /*$$scope*/
|
|
2211
|
-
64) &&
|
|
2235
|
+
64) && V(
|
|
2212
2236
|
o,
|
|
2213
2237
|
i,
|
|
2214
2238
|
s,
|
|
2215
2239
|
/*$$scope*/
|
|
2216
2240
|
s[6],
|
|
2217
|
-
r ?
|
|
2241
|
+
r ? G(
|
|
2218
2242
|
i,
|
|
2219
2243
|
/*$$scope*/
|
|
2220
2244
|
s[6],
|
|
2221
2245
|
l,
|
|
2222
2246
|
hi
|
|
2223
|
-
) :
|
|
2247
|
+
) : Y(
|
|
2224
2248
|
/*$$scope*/
|
|
2225
2249
|
s[6]
|
|
2226
2250
|
),
|
|
@@ -2243,7 +2267,7 @@ function wi(t) {
|
|
|
2243
2267
|
}
|
|
2244
2268
|
function yi(t) {
|
|
2245
2269
|
let e, n, r;
|
|
2246
|
-
return n = new
|
|
2270
|
+
return n = new Te({
|
|
2247
2271
|
props: {
|
|
2248
2272
|
gutter: "48px",
|
|
2249
2273
|
$$slots: { default: [wi] },
|
|
@@ -2251,7 +2275,7 @@ function yi(t) {
|
|
|
2251
2275
|
}
|
|
2252
2276
|
}), {
|
|
2253
2277
|
c() {
|
|
2254
|
-
e =
|
|
2278
|
+
e = I("div"), k(n.$$.fragment), b(e, "class", "rcb-modal-message svelte-idou50"), b(
|
|
2255
2279
|
e,
|
|
2256
2280
|
"data-type",
|
|
2257
2281
|
/*type*/
|
|
@@ -2259,7 +2283,7 @@ function yi(t) {
|
|
|
2259
2283
|
);
|
|
2260
2284
|
},
|
|
2261
2285
|
m(i, o) {
|
|
2262
|
-
g(i, e, o),
|
|
2286
|
+
g(i, e, o), v(n, e, null), r = !0;
|
|
2263
2287
|
},
|
|
2264
2288
|
p(i, o) {
|
|
2265
2289
|
const s = {};
|
|
@@ -2308,7 +2332,7 @@ function Ei(t) {
|
|
|
2308
2332
|
}
|
|
2309
2333
|
};
|
|
2310
2334
|
}
|
|
2311
|
-
function
|
|
2335
|
+
function Ii(t) {
|
|
2312
2336
|
let e, n;
|
|
2313
2337
|
return e = new nt({
|
|
2314
2338
|
props: {
|
|
@@ -2317,7 +2341,7 @@ function vi(t) {
|
|
|
2317
2341
|
$$scope: { ctx: t }
|
|
2318
2342
|
}
|
|
2319
2343
|
}), e.$on("click", function() {
|
|
2320
|
-
|
|
2344
|
+
fe(
|
|
2321
2345
|
/*onContinue*/
|
|
2322
2346
|
t[1]
|
|
2323
2347
|
) && t[1].apply(this, arguments);
|
|
@@ -2326,7 +2350,7 @@ function vi(t) {
|
|
|
2326
2350
|
k(e.$$.fragment);
|
|
2327
2351
|
},
|
|
2328
2352
|
m(r, i) {
|
|
2329
|
-
|
|
2353
|
+
v(e, r, i), n = !0;
|
|
2330
2354
|
},
|
|
2331
2355
|
p(r, i) {
|
|
2332
2356
|
t = r;
|
|
@@ -2345,7 +2369,7 @@ function vi(t) {
|
|
|
2345
2369
|
}
|
|
2346
2370
|
};
|
|
2347
2371
|
}
|
|
2348
|
-
function
|
|
2372
|
+
function vi(t) {
|
|
2349
2373
|
let e, n, r, i, o, s;
|
|
2350
2374
|
return e = new _i({
|
|
2351
2375
|
props: {
|
|
@@ -2358,14 +2382,14 @@ function Ii(t) {
|
|
|
2358
2382
|
t[1]
|
|
2359
2383
|
)
|
|
2360
2384
|
}
|
|
2361
|
-
}), r = new
|
|
2385
|
+
}), r = new de({
|
|
2362
2386
|
props: {
|
|
2363
2387
|
$$slots: { default: [yi] },
|
|
2364
2388
|
$$scope: { ctx: t }
|
|
2365
2389
|
}
|
|
2366
2390
|
}), o = new rt({
|
|
2367
2391
|
props: {
|
|
2368
|
-
$$slots: { default: [
|
|
2392
|
+
$$slots: { default: [Ii] },
|
|
2369
2393
|
$$scope: { ctx: t }
|
|
2370
2394
|
}
|
|
2371
2395
|
}), {
|
|
@@ -2373,7 +2397,7 @@ function Ii(t) {
|
|
|
2373
2397
|
k(e.$$.fragment), n = U(), k(r.$$.fragment), i = U(), k(o.$$.fragment);
|
|
2374
2398
|
},
|
|
2375
2399
|
m(l, a) {
|
|
2376
|
-
|
|
2400
|
+
v(e, l, a), g(l, n, a), v(r, l, a), g(l, i, a), v(o, l, a), s = !0;
|
|
2377
2401
|
},
|
|
2378
2402
|
p(l, a) {
|
|
2379
2403
|
const c = {};
|
|
@@ -2402,10 +2426,10 @@ function Ii(t) {
|
|
|
2402
2426
|
}
|
|
2403
2427
|
function $i(t) {
|
|
2404
2428
|
let e, n;
|
|
2405
|
-
return e = new
|
|
2429
|
+
return e = new Te({
|
|
2406
2430
|
props: {
|
|
2407
2431
|
gutter: "32px",
|
|
2408
|
-
$$slots: { default: [
|
|
2432
|
+
$$slots: { default: [vi] },
|
|
2409
2433
|
$$scope: { ctx: t }
|
|
2410
2434
|
}
|
|
2411
2435
|
}), {
|
|
@@ -2413,7 +2437,7 @@ function $i(t) {
|
|
|
2413
2437
|
k(e.$$.fragment);
|
|
2414
2438
|
},
|
|
2415
2439
|
m(r, i) {
|
|
2416
|
-
|
|
2440
|
+
v(e, r, i), n = !0;
|
|
2417
2441
|
},
|
|
2418
2442
|
p(r, [i]) {
|
|
2419
2443
|
const o = {};
|
|
@@ -2460,7 +2484,7 @@ function At(t) {
|
|
|
2460
2484
|
let e, n, r, i, o, s;
|
|
2461
2485
|
return {
|
|
2462
2486
|
c() {
|
|
2463
|
-
e =
|
|
2487
|
+
e = I("br"), n = H("If this error persists, please contact "), r = I("a"), i = H(
|
|
2464
2488
|
/*supportEmail*/
|
|
2465
2489
|
t[2]
|
|
2466
2490
|
), s = H("."), b(r, "href", o = "mailto:" + /*supportEmail*/
|
|
@@ -2523,7 +2547,7 @@ function Ti(t) {
|
|
|
2523
2547
|
k(e.$$.fragment);
|
|
2524
2548
|
},
|
|
2525
2549
|
m(r, i) {
|
|
2526
|
-
|
|
2550
|
+
v(e, r, i), n = !0;
|
|
2527
2551
|
},
|
|
2528
2552
|
p: A,
|
|
2529
2553
|
i(r) {
|
|
@@ -2566,7 +2590,7 @@ function Ai(t) {
|
|
|
2566
2590
|
k(e.$$.fragment);
|
|
2567
2591
|
},
|
|
2568
2592
|
m(r, i) {
|
|
2569
|
-
|
|
2593
|
+
v(e, r, i), n = !0;
|
|
2570
2594
|
},
|
|
2571
2595
|
p(r, [i]) {
|
|
2572
2596
|
const o = {};
|
|
@@ -2596,7 +2620,7 @@ function Oi(t, e, n) {
|
|
|
2596
2620
|
function a() {
|
|
2597
2621
|
switch (i.errorCode) {
|
|
2598
2622
|
case K.AlreadyPurchasedError:
|
|
2599
|
-
return (s == null ? void 0 : s.productType) ===
|
|
2623
|
+
return (s == null ? void 0 : s.productType) === Pe.Subscription ? "Already subscribed" : "Already purchased";
|
|
2600
2624
|
default:
|
|
2601
2625
|
return "Something went wrong";
|
|
2602
2626
|
}
|
|
@@ -2636,7 +2660,7 @@ function Li(t) {
|
|
|
2636
2660
|
let e;
|
|
2637
2661
|
return {
|
|
2638
2662
|
c() {
|
|
2639
|
-
e =
|
|
2663
|
+
e = I("div"), ne(e, "color", "var(--rc-color-accent)"), b(e, "class", "rcb-ui-asset-icon svelte-7wiquz");
|
|
2640
2664
|
},
|
|
2641
2665
|
m(n, r) {
|
|
2642
2666
|
g(n, e, r), e.innerHTML = Ui;
|
|
@@ -2693,7 +2717,7 @@ function Bi(t) {
|
|
|
2693
2717
|
k(e.$$.fragment);
|
|
2694
2718
|
},
|
|
2695
2719
|
m(r, i) {
|
|
2696
|
-
|
|
2720
|
+
v(e, r, i), n = !0;
|
|
2697
2721
|
},
|
|
2698
2722
|
p: A,
|
|
2699
2723
|
i(r) {
|
|
@@ -2733,7 +2757,7 @@ function Ci(t) {
|
|
|
2733
2757
|
k(e.$$.fragment);
|
|
2734
2758
|
},
|
|
2735
2759
|
m(r, i) {
|
|
2736
|
-
|
|
2760
|
+
v(e, r, i), n = !0;
|
|
2737
2761
|
},
|
|
2738
2762
|
p(r, [i]) {
|
|
2739
2763
|
const o = {};
|
|
@@ -2757,7 +2781,7 @@ function Ci(t) {
|
|
|
2757
2781
|
}
|
|
2758
2782
|
function Fi(t, e, n) {
|
|
2759
2783
|
let { productDetails: r = null } = e, { brandingInfo: i = null } = e, { onContinue: o } = e;
|
|
2760
|
-
const s = (r == null ? void 0 : r.productType) ===
|
|
2784
|
+
const s = (r == null ? void 0 : r.productType) === Pe.Subscription;
|
|
2761
2785
|
return t.$$set = (l) => {
|
|
2762
2786
|
"productDetails" in l && n(3, r = l.productDetails), "brandingInfo" in l && n(0, i = l.brandingInfo), "onContinue" in l && n(1, o = l.onContinue);
|
|
2763
2787
|
}, [i, o, s, r];
|
|
@@ -2787,7 +2811,7 @@ function Gi(t) {
|
|
|
2787
2811
|
let e;
|
|
2788
2812
|
return {
|
|
2789
2813
|
c() {
|
|
2790
|
-
e =
|
|
2814
|
+
e = I("div");
|
|
2791
2815
|
},
|
|
2792
2816
|
m(n, r) {
|
|
2793
2817
|
g(n, e, r), t[6](e);
|
|
@@ -2854,7 +2878,7 @@ function Ot(t) {
|
|
|
2854
2878
|
const n = (
|
|
2855
2879
|
/*#slots*/
|
|
2856
2880
|
t[15].default
|
|
2857
|
-
), r =
|
|
2881
|
+
), r = q(
|
|
2858
2882
|
n,
|
|
2859
2883
|
t,
|
|
2860
2884
|
/*$$scope*/
|
|
@@ -2870,19 +2894,19 @@ function Ot(t) {
|
|
|
2870
2894
|
},
|
|
2871
2895
|
p(i, o) {
|
|
2872
2896
|
r && r.p && (!e || o & /*$$scope*/
|
|
2873
|
-
16384) &&
|
|
2897
|
+
16384) && V(
|
|
2874
2898
|
r,
|
|
2875
2899
|
n,
|
|
2876
2900
|
i,
|
|
2877
2901
|
/*$$scope*/
|
|
2878
2902
|
i[14],
|
|
2879
|
-
e ?
|
|
2903
|
+
e ? G(
|
|
2880
2904
|
n,
|
|
2881
2905
|
/*$$scope*/
|
|
2882
2906
|
i[14],
|
|
2883
2907
|
o,
|
|
2884
2908
|
null
|
|
2885
|
-
) :
|
|
2909
|
+
) : Y(
|
|
2886
2910
|
/*$$scope*/
|
|
2887
2911
|
i[14]
|
|
2888
2912
|
),
|
|
@@ -3008,7 +3032,7 @@ var sn = "https://js.stripe.com/v3", Qi = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
|
|
|
3008
3032
|
version: "2.4.0",
|
|
3009
3033
|
startTime: n
|
|
3010
3034
|
});
|
|
3011
|
-
},
|
|
3035
|
+
}, ge = null, Re = null, Le = null, Ji = function(e) {
|
|
3012
3036
|
return function() {
|
|
3013
3037
|
e(new Error("Failed to load Stripe.js"));
|
|
3014
3038
|
};
|
|
@@ -3017,7 +3041,7 @@ var sn = "https://js.stripe.com/v3", Qi = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
|
|
|
3017
3041
|
window.Stripe ? e(window.Stripe) : n(new Error("Stripe.js not available"));
|
|
3018
3042
|
};
|
|
3019
3043
|
}, to = function(e) {
|
|
3020
|
-
return
|
|
3044
|
+
return ge !== null ? ge : (ge = new Promise(function(n, r) {
|
|
3021
3045
|
if (typeof window > "u" || typeof document > "u") {
|
|
3022
3046
|
n(null);
|
|
3023
3047
|
return;
|
|
@@ -3032,27 +3056,27 @@ var sn = "https://js.stripe.com/v3", Qi = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
|
|
|
3032
3056
|
console.warn(Nt);
|
|
3033
3057
|
else if (!i)
|
|
3034
3058
|
i = Ut(e);
|
|
3035
|
-
else if (i &&
|
|
3059
|
+
else if (i && Le !== null && Re !== null) {
|
|
3036
3060
|
var o;
|
|
3037
|
-
i.removeEventListener("load",
|
|
3061
|
+
i.removeEventListener("load", Le), i.removeEventListener("error", Re), (o = i.parentNode) === null || o === void 0 || o.removeChild(i), i = Ut(e);
|
|
3038
3062
|
}
|
|
3039
|
-
|
|
3063
|
+
Le = eo(n, r), Re = Ji(r), i.addEventListener("load", Le), i.addEventListener("error", Re);
|
|
3040
3064
|
} catch (s) {
|
|
3041
3065
|
r(s);
|
|
3042
3066
|
return;
|
|
3043
3067
|
}
|
|
3044
|
-
}),
|
|
3045
|
-
return
|
|
3068
|
+
}), ge.catch(function(n) {
|
|
3069
|
+
return ge = null, Promise.reject(n);
|
|
3046
3070
|
}));
|
|
3047
3071
|
}, no = function(e, n, r) {
|
|
3048
3072
|
if (e === null)
|
|
3049
3073
|
return null;
|
|
3050
3074
|
var i = e.apply(void 0, n);
|
|
3051
3075
|
return Zi(i, r), i;
|
|
3052
|
-
},
|
|
3053
|
-
return
|
|
3054
|
-
return
|
|
3055
|
-
}),
|
|
3076
|
+
}, he, ln = !1, an = function() {
|
|
3077
|
+
return he || (he = to(null).catch(function(e) {
|
|
3078
|
+
return he = null, Promise.reject(e);
|
|
3079
|
+
}), he);
|
|
3056
3080
|
};
|
|
3057
3081
|
Promise.resolve().then(function() {
|
|
3058
3082
|
return an();
|
|
@@ -3076,7 +3100,7 @@ function oo(t) {
|
|
|
3076
3100
|
const r = (
|
|
3077
3101
|
/*#slots*/
|
|
3078
3102
|
t[0].default
|
|
3079
|
-
), i =
|
|
3103
|
+
), i = q(
|
|
3080
3104
|
r,
|
|
3081
3105
|
t,
|
|
3082
3106
|
/*$$scope*/
|
|
@@ -3085,26 +3109,26 @@ function oo(t) {
|
|
|
3085
3109
|
);
|
|
3086
3110
|
return {
|
|
3087
3111
|
c() {
|
|
3088
|
-
e =
|
|
3112
|
+
e = I("div"), i && i.c(), b(e, "class", "rcb-header-layout svelte-1xe711j");
|
|
3089
3113
|
},
|
|
3090
3114
|
m(o, s) {
|
|
3091
3115
|
g(o, e, s), i && i.m(e, null), n = !0;
|
|
3092
3116
|
},
|
|
3093
3117
|
p(o, s) {
|
|
3094
3118
|
i && i.p && (!n || s & /*$$scope*/
|
|
3095
|
-
2) &&
|
|
3119
|
+
2) && V(
|
|
3096
3120
|
i,
|
|
3097
3121
|
r,
|
|
3098
3122
|
o,
|
|
3099
3123
|
/*$$scope*/
|
|
3100
3124
|
o[1],
|
|
3101
|
-
n ?
|
|
3125
|
+
n ? G(
|
|
3102
3126
|
r,
|
|
3103
3127
|
/*$$scope*/
|
|
3104
3128
|
o[1],
|
|
3105
3129
|
s,
|
|
3106
3130
|
null
|
|
3107
|
-
) :
|
|
3131
|
+
) : Y(
|
|
3108
3132
|
/*$$scope*/
|
|
3109
3133
|
o[1]
|
|
3110
3134
|
),
|
|
@@ -3124,7 +3148,7 @@ function oo(t) {
|
|
|
3124
3148
|
}
|
|
3125
3149
|
function so(t) {
|
|
3126
3150
|
let e, n;
|
|
3127
|
-
return e = new
|
|
3151
|
+
return e = new de({
|
|
3128
3152
|
props: {
|
|
3129
3153
|
as: "header",
|
|
3130
3154
|
$$slots: { default: [oo] },
|
|
@@ -3135,7 +3159,7 @@ function so(t) {
|
|
|
3135
3159
|
k(e.$$.fragment);
|
|
3136
3160
|
},
|
|
3137
3161
|
m(r, i) {
|
|
3138
|
-
|
|
3162
|
+
v(e, r, i), n = !0;
|
|
3139
3163
|
},
|
|
3140
3164
|
p(r, [i]) {
|
|
3141
3165
|
const o = {};
|
|
@@ -3177,7 +3201,7 @@ function uo(t) {
|
|
|
3177
3201
|
let e;
|
|
3178
3202
|
return {
|
|
3179
3203
|
c() {
|
|
3180
|
-
e =
|
|
3204
|
+
e = I("div"), ne(e, "color", "var(--rc-color-accent)"), b(e, "class", "rcb-ui-asset-icon svelte-1z0jca3");
|
|
3181
3205
|
},
|
|
3182
3206
|
m(n, r) {
|
|
3183
3207
|
g(n, e, r), e.innerHTML = ao;
|
|
@@ -3207,7 +3231,7 @@ function mo(t) {
|
|
|
3207
3231
|
let e;
|
|
3208
3232
|
return {
|
|
3209
3233
|
c() {
|
|
3210
|
-
e =
|
|
3234
|
+
e = I("div"), b(e, "class", "processing svelte-rjmul6");
|
|
3211
3235
|
},
|
|
3212
3236
|
m(n, r) {
|
|
3213
3237
|
g(n, e, r);
|
|
@@ -3295,7 +3319,7 @@ const _o = {
|
|
|
3295
3319
|
"grey-ui-dark": `rgba(${e},0.125)`,
|
|
3296
3320
|
"grey-ui-light": `rgba(${e},0.05)`
|
|
3297
3321
|
};
|
|
3298
|
-
},
|
|
3322
|
+
}, Io = (t, e, n) => {
|
|
3299
3323
|
const r = {
|
|
3300
3324
|
"grey-text-dark": n["grey-text-dark"],
|
|
3301
3325
|
"grey-text-light": n["grey-text-light"],
|
|
@@ -3312,10 +3336,10 @@ const _o = {
|
|
|
3312
3336
|
i !== null && (r["primary-text"] = dn(i) ? "black" : "white");
|
|
3313
3337
|
}
|
|
3314
3338
|
return r;
|
|
3315
|
-
},
|
|
3339
|
+
}, vo = (t, e) => t || e, $o = (t, e, n) => {
|
|
3316
3340
|
const r = Object.entries(t).map(([i, o]) => [
|
|
3317
3341
|
i,
|
|
3318
|
-
|
|
3342
|
+
vo(
|
|
3319
3343
|
n ? n[o] : null,
|
|
3320
3344
|
e[i]
|
|
3321
3345
|
)
|
|
@@ -3330,7 +3354,7 @@ const _o = {
|
|
|
3330
3354
|
return n ? {
|
|
3331
3355
|
...e,
|
|
3332
3356
|
...r,
|
|
3333
|
-
...
|
|
3357
|
+
...Io(
|
|
3334
3358
|
r.background,
|
|
3335
3359
|
r.primary,
|
|
3336
3360
|
e
|
|
@@ -3403,7 +3427,7 @@ function Ao(t) {
|
|
|
3403
3427
|
k(e.$$.fragment);
|
|
3404
3428
|
},
|
|
3405
3429
|
m(r, i) {
|
|
3406
|
-
|
|
3430
|
+
v(e, r, i), n = !0;
|
|
3407
3431
|
},
|
|
3408
3432
|
p: A,
|
|
3409
3433
|
i(r) {
|
|
@@ -3497,10 +3521,10 @@ function Oo(t) {
|
|
|
3497
3521
|
t[4] !== void 0 && (f.elements = /*elements*/
|
|
3498
3522
|
t[4]), i = new Ki({ props: f }), De.push(() => tr(i, "elements", c)), {
|
|
3499
3523
|
c() {
|
|
3500
|
-
k(e.$$.fragment), n = U(), r =
|
|
3524
|
+
k(e.$$.fragment), n = U(), r = I("form"), k(i.$$.fragment);
|
|
3501
3525
|
},
|
|
3502
3526
|
m(u, m) {
|
|
3503
|
-
|
|
3527
|
+
v(e, u, m), g(u, n, m), g(u, r, m), v(i, r, null), s = !0, l || (a = $e(r, "submit", Qt(
|
|
3504
3528
|
/*handleContinue*/
|
|
3505
3529
|
t[7]
|
|
3506
3530
|
)), l = !0);
|
|
@@ -3532,16 +3556,16 @@ function Oo(t) {
|
|
|
3532
3556
|
function No(t) {
|
|
3533
3557
|
let e, n, r, i, o, s, l;
|
|
3534
3558
|
return n = new fo({}), s = new it({}), s.$on("click", function() {
|
|
3535
|
-
|
|
3559
|
+
fe(
|
|
3536
3560
|
/*onClose*/
|
|
3537
3561
|
t[1]
|
|
3538
3562
|
) && t[1].apply(this, arguments);
|
|
3539
3563
|
}), {
|
|
3540
3564
|
c() {
|
|
3541
|
-
e =
|
|
3565
|
+
e = I("div"), k(n.$$.fragment), r = U(), i = I("div"), i.textContent = "Secure Checkout", o = U(), k(s.$$.fragment), ne(i, "margin-left", "10px"), ne(e, "display", "flex"), ne(e, "align-items", "center"), ne(e, "justify-content", "baseline");
|
|
3542
3566
|
},
|
|
3543
3567
|
m(a, c) {
|
|
3544
|
-
g(a, e, c),
|
|
3568
|
+
g(a, e, c), v(n, e, null), L(e, r), L(e, i), g(a, o, c), v(s, a, c), l = !0;
|
|
3545
3569
|
},
|
|
3546
3570
|
p(a, c) {
|
|
3547
3571
|
t = a;
|
|
@@ -3561,10 +3585,10 @@ function Uo(t) {
|
|
|
3561
3585
|
let e, n, r;
|
|
3562
3586
|
return n = new Yi({}), {
|
|
3563
3587
|
c() {
|
|
3564
|
-
e =
|
|
3588
|
+
e = I("div"), k(n.$$.fragment), b(e, "class", "rcb-stripe-elements-container svelte-8jsoa8");
|
|
3565
3589
|
},
|
|
3566
3590
|
m(i, o) {
|
|
3567
|
-
g(i, e, o),
|
|
3591
|
+
g(i, e, o), v(n, e, null), r = !0;
|
|
3568
3592
|
},
|
|
3569
3593
|
p: A,
|
|
3570
3594
|
i(i) {
|
|
@@ -3617,7 +3641,7 @@ function So(t) {
|
|
|
3617
3641
|
k(e.$$.fragment);
|
|
3618
3642
|
},
|
|
3619
3643
|
m(r, i) {
|
|
3620
|
-
|
|
3644
|
+
v(e, r, i), n = !0;
|
|
3621
3645
|
},
|
|
3622
3646
|
i(r) {
|
|
3623
3647
|
n || (d(e.$$.fragment, r), n = !0);
|
|
@@ -3687,7 +3711,7 @@ function Do(t) {
|
|
|
3687
3711
|
k(e.$$.fragment);
|
|
3688
3712
|
},
|
|
3689
3713
|
m(r, i) {
|
|
3690
|
-
|
|
3714
|
+
v(e, r, i), n = !0;
|
|
3691
3715
|
},
|
|
3692
3716
|
p(r, i) {
|
|
3693
3717
|
const o = {};
|
|
@@ -3709,7 +3733,7 @@ function Do(t) {
|
|
|
3709
3733
|
}
|
|
3710
3734
|
function Bo(t) {
|
|
3711
3735
|
let e, n;
|
|
3712
|
-
return e = new
|
|
3736
|
+
return e = new Te({
|
|
3713
3737
|
props: {
|
|
3714
3738
|
$$slots: { default: [Do] },
|
|
3715
3739
|
$$scope: { ctx: t }
|
|
@@ -3719,7 +3743,7 @@ function Bo(t) {
|
|
|
3719
3743
|
k(e.$$.fragment);
|
|
3720
3744
|
},
|
|
3721
3745
|
m(r, i) {
|
|
3722
|
-
|
|
3746
|
+
v(e, r, i), n = !0;
|
|
3723
3747
|
},
|
|
3724
3748
|
p(r, i) {
|
|
3725
3749
|
const o = {};
|
|
@@ -3739,7 +3763,7 @@ function Bo(t) {
|
|
|
3739
3763
|
}
|
|
3740
3764
|
function Co(t) {
|
|
3741
3765
|
let e, n, r, i;
|
|
3742
|
-
return e = new
|
|
3766
|
+
return e = new de({
|
|
3743
3767
|
props: {
|
|
3744
3768
|
$$slots: { default: [Uo] },
|
|
3745
3769
|
$$scope: { ctx: t }
|
|
@@ -3754,7 +3778,7 @@ function Co(t) {
|
|
|
3754
3778
|
k(e.$$.fragment), n = U(), k(r.$$.fragment);
|
|
3755
3779
|
},
|
|
3756
3780
|
m(o, s) {
|
|
3757
|
-
|
|
3781
|
+
v(e, o, s), g(o, n, s), v(r, o, s), i = !0;
|
|
3758
3782
|
},
|
|
3759
3783
|
p(o, s) {
|
|
3760
3784
|
const l = {};
|
|
@@ -3787,7 +3811,7 @@ function Fo(t) {
|
|
|
3787
3811
|
}
|
|
3788
3812
|
return n = l(t), r = s[n] = o[n](t), {
|
|
3789
3813
|
c() {
|
|
3790
|
-
e =
|
|
3814
|
+
e = I("div"), r.c();
|
|
3791
3815
|
},
|
|
3792
3816
|
m(a, c) {
|
|
3793
3817
|
g(a, e, c), s[n].m(e, null), i = !0;
|
|
@@ -3826,7 +3850,7 @@ function jo(t, e, n) {
|
|
|
3826
3850
|
elements: y,
|
|
3827
3851
|
redirect: "if_required"
|
|
3828
3852
|
});
|
|
3829
|
-
P.error ? (n(0, l = !1), o(new
|
|
3853
|
+
P.error ? (n(0, l = !1), o(new x(K.StripeError, P.error.message))) : i();
|
|
3830
3854
|
}, w = new lt(f == null ? void 0 : f.appearance);
|
|
3831
3855
|
let O = w.shape, C = w.formColors;
|
|
3832
3856
|
function E(P) {
|
|
@@ -3892,16 +3916,16 @@ function Go(t) {
|
|
|
3892
3916
|
function Vo(t) {
|
|
3893
3917
|
let e, n, r, i;
|
|
3894
3918
|
return r = new it({}), r.$on("click", function() {
|
|
3895
|
-
|
|
3919
|
+
fe(
|
|
3896
3920
|
/*onClose*/
|
|
3897
3921
|
t[0]
|
|
3898
3922
|
) && t[0].apply(this, arguments);
|
|
3899
3923
|
}), {
|
|
3900
3924
|
c() {
|
|
3901
|
-
e =
|
|
3925
|
+
e = I("span"), e.textContent = "Billing email address", n = U(), k(r.$$.fragment);
|
|
3902
3926
|
},
|
|
3903
3927
|
m(o, s) {
|
|
3904
|
-
g(o, e, s), g(o, n, s),
|
|
3928
|
+
g(o, e, s), g(o, n, s), v(r, o, s), i = !0;
|
|
3905
3929
|
},
|
|
3906
3930
|
p(o, s) {
|
|
3907
3931
|
t = o;
|
|
@@ -3921,7 +3945,7 @@ function St(t) {
|
|
|
3921
3945
|
let e, n;
|
|
3922
3946
|
return {
|
|
3923
3947
|
c() {
|
|
3924
|
-
e =
|
|
3948
|
+
e = I("div"), n = H(
|
|
3925
3949
|
/*error*/
|
|
3926
3950
|
t[2]
|
|
3927
3951
|
), b(e, "class", "form-error svelte-yf01ty");
|
|
@@ -3949,7 +3973,7 @@ function Yo(t) {
|
|
|
3949
3973
|
);
|
|
3950
3974
|
return {
|
|
3951
3975
|
c() {
|
|
3952
|
-
e =
|
|
3976
|
+
e = I("div"), n = I("div"), n.innerHTML = '<label for="email">Email</label>', r = U(), i = I("div"), o = I("input"), l = U(), f && f.c(), b(n, "class", "form-label svelte-yf01ty"), b(o, "name", "email"), b(o, "placeholder", "john@appleseed.com"), b(o, "autocapitalize", "off"), b(o, "class", "svelte-yf01ty"), b(i, "class", s = "form-input " + /*inputClass*/
|
|
3953
3977
|
t[4] + " svelte-yf01ty"), b(e, "class", "form-container svelte-yf01ty");
|
|
3954
3978
|
},
|
|
3955
3979
|
m(u, m) {
|
|
@@ -3957,7 +3981,7 @@ function Yo(t) {
|
|
|
3957
3981
|
o,
|
|
3958
3982
|
/*email*/
|
|
3959
3983
|
t[3]
|
|
3960
|
-
), L(e, l), f && f.m(e, null), a || (c =
|
|
3984
|
+
), L(e, l), f && f.m(e, null), a || (c = $e(
|
|
3961
3985
|
o,
|
|
3962
3986
|
"input",
|
|
3963
3987
|
/*input_input_handler*/
|
|
@@ -4004,7 +4028,7 @@ function Wo(t) {
|
|
|
4004
4028
|
k(e.$$.fragment);
|
|
4005
4029
|
},
|
|
4006
4030
|
m(r, i) {
|
|
4007
|
-
|
|
4031
|
+
v(e, r, i), n = !0;
|
|
4008
4032
|
},
|
|
4009
4033
|
i(r) {
|
|
4010
4034
|
n || (d(e.$$.fragment, r), n = !0);
|
|
@@ -4067,7 +4091,7 @@ function Qo(t) {
|
|
|
4067
4091
|
k(e.$$.fragment);
|
|
4068
4092
|
},
|
|
4069
4093
|
m(r, i) {
|
|
4070
|
-
|
|
4094
|
+
v(e, r, i), n = !0;
|
|
4071
4095
|
},
|
|
4072
4096
|
p(r, i) {
|
|
4073
4097
|
const o = {};
|
|
@@ -4089,7 +4113,7 @@ function Qo(t) {
|
|
|
4089
4113
|
}
|
|
4090
4114
|
function Xo(t) {
|
|
4091
4115
|
let e, n;
|
|
4092
|
-
return e = new
|
|
4116
|
+
return e = new Te({
|
|
4093
4117
|
props: {
|
|
4094
4118
|
$$slots: { default: [Qo] },
|
|
4095
4119
|
$$scope: { ctx: t }
|
|
@@ -4099,7 +4123,7 @@ function Xo(t) {
|
|
|
4099
4123
|
k(e.$$.fragment);
|
|
4100
4124
|
},
|
|
4101
4125
|
m(r, i) {
|
|
4102
|
-
|
|
4126
|
+
v(e, r, i), n = !0;
|
|
4103
4127
|
},
|
|
4104
4128
|
p(r, i) {
|
|
4105
4129
|
const o = {};
|
|
@@ -4124,7 +4148,7 @@ function Zo(t) {
|
|
|
4124
4148
|
$$slots: { default: [Vo] },
|
|
4125
4149
|
$$scope: { ctx: t }
|
|
4126
4150
|
}
|
|
4127
|
-
}), o = new
|
|
4151
|
+
}), o = new de({
|
|
4128
4152
|
props: {
|
|
4129
4153
|
$$slots: { default: [Yo] },
|
|
4130
4154
|
$$scope: { ctx: t }
|
|
@@ -4136,10 +4160,10 @@ function Zo(t) {
|
|
|
4136
4160
|
}
|
|
4137
4161
|
}), {
|
|
4138
4162
|
c() {
|
|
4139
|
-
e =
|
|
4163
|
+
e = I("div"), k(n.$$.fragment), r = U(), i = I("form"), k(o.$$.fragment), s = U(), k(l.$$.fragment), b(i, "class", "svelte-yf01ty"), b(e, "class", "container svelte-yf01ty");
|
|
4140
4164
|
},
|
|
4141
4165
|
m(u, m) {
|
|
4142
|
-
g(u, e, m),
|
|
4166
|
+
g(u, e, m), v(n, e, null), L(e, r), L(e, i), v(o, i, null), L(i, s), v(l, i, null), a = !0, c || (f = $e(i, "submit", Qt(
|
|
4143
4167
|
/*handleContinue*/
|
|
4144
4168
|
t[5]
|
|
4145
4169
|
)), c = !0);
|
|
@@ -4221,7 +4245,7 @@ function ns(t) {
|
|
|
4221
4245
|
const r = (
|
|
4222
4246
|
/*#slots*/
|
|
4223
4247
|
t[1].default
|
|
4224
|
-
), i =
|
|
4248
|
+
), i = q(
|
|
4225
4249
|
r,
|
|
4226
4250
|
t,
|
|
4227
4251
|
/*$$scope*/
|
|
@@ -4230,26 +4254,26 @@ function ns(t) {
|
|
|
4230
4254
|
);
|
|
4231
4255
|
return {
|
|
4232
4256
|
c() {
|
|
4233
|
-
e =
|
|
4257
|
+
e = I("div"), i && i.c(), b(e, "class", "rcb-modal-backdrop svelte-17tslso");
|
|
4234
4258
|
},
|
|
4235
4259
|
m(o, s) {
|
|
4236
4260
|
g(o, e, s), i && i.m(e, null), n = !0;
|
|
4237
4261
|
},
|
|
4238
4262
|
p(o, [s]) {
|
|
4239
4263
|
i && i.p && (!n || s & /*$$scope*/
|
|
4240
|
-
1) &&
|
|
4264
|
+
1) && V(
|
|
4241
4265
|
i,
|
|
4242
4266
|
r,
|
|
4243
4267
|
o,
|
|
4244
4268
|
/*$$scope*/
|
|
4245
4269
|
o[0],
|
|
4246
|
-
n ?
|
|
4270
|
+
n ? G(
|
|
4247
4271
|
r,
|
|
4248
4272
|
/*$$scope*/
|
|
4249
4273
|
o[0],
|
|
4250
4274
|
s,
|
|
4251
4275
|
null
|
|
4252
|
-
) :
|
|
4276
|
+
) : Y(
|
|
4253
4277
|
/*$$scope*/
|
|
4254
4278
|
o[0]
|
|
4255
4279
|
),
|
|
@@ -4286,7 +4310,7 @@ function ss(t) {
|
|
|
4286
4310
|
const i = (
|
|
4287
4311
|
/*#slots*/
|
|
4288
4312
|
t[2].default
|
|
4289
|
-
), o =
|
|
4313
|
+
), o = q(
|
|
4290
4314
|
i,
|
|
4291
4315
|
t,
|
|
4292
4316
|
/*$$scope*/
|
|
@@ -4295,7 +4319,7 @@ function ss(t) {
|
|
|
4295
4319
|
);
|
|
4296
4320
|
return {
|
|
4297
4321
|
c() {
|
|
4298
|
-
e =
|
|
4322
|
+
e = I("div"), n = I("main"), o && o.c(), b(n, "class", "rcb-modal-main svelte-1fufj5b"), b(
|
|
4299
4323
|
n,
|
|
4300
4324
|
"style",
|
|
4301
4325
|
/*style*/
|
|
@@ -4307,19 +4331,19 @@ function ss(t) {
|
|
|
4307
4331
|
},
|
|
4308
4332
|
p(s, [l]) {
|
|
4309
4333
|
o && o.p && (!r || l & /*$$scope*/
|
|
4310
|
-
2) &&
|
|
4334
|
+
2) && V(
|
|
4311
4335
|
o,
|
|
4312
4336
|
i,
|
|
4313
4337
|
s,
|
|
4314
4338
|
/*$$scope*/
|
|
4315
4339
|
s[1],
|
|
4316
|
-
r ?
|
|
4340
|
+
r ? G(
|
|
4317
4341
|
i,
|
|
4318
4342
|
/*$$scope*/
|
|
4319
4343
|
s[1],
|
|
4320
4344
|
l,
|
|
4321
4345
|
null
|
|
4322
|
-
) :
|
|
4346
|
+
) : Y(
|
|
4323
4347
|
/*$$scope*/
|
|
4324
4348
|
s[1]
|
|
4325
4349
|
),
|
|
@@ -4359,7 +4383,7 @@ function as(t) {
|
|
|
4359
4383
|
const n = (
|
|
4360
4384
|
/*#slots*/
|
|
4361
4385
|
t[1].default
|
|
4362
|
-
), r =
|
|
4386
|
+
), r = q(
|
|
4363
4387
|
n,
|
|
4364
4388
|
t,
|
|
4365
4389
|
/*$$scope*/
|
|
@@ -4375,19 +4399,19 @@ function as(t) {
|
|
|
4375
4399
|
},
|
|
4376
4400
|
p(i, o) {
|
|
4377
4401
|
r && r.p && (!e || o & /*$$scope*/
|
|
4378
|
-
4) &&
|
|
4402
|
+
4) && V(
|
|
4379
4403
|
r,
|
|
4380
4404
|
n,
|
|
4381
4405
|
i,
|
|
4382
4406
|
/*$$scope*/
|
|
4383
4407
|
i[2],
|
|
4384
|
-
e ?
|
|
4408
|
+
e ? G(
|
|
4385
4409
|
n,
|
|
4386
4410
|
/*$$scope*/
|
|
4387
4411
|
i[2],
|
|
4388
4412
|
o,
|
|
4389
4413
|
null
|
|
4390
|
-
) :
|
|
4414
|
+
) : Y(
|
|
4391
4415
|
/*$$scope*/
|
|
4392
4416
|
i[2]
|
|
4393
4417
|
),
|
|
@@ -4417,7 +4441,7 @@ function cs(t) {
|
|
|
4417
4441
|
k(e.$$.fragment);
|
|
4418
4442
|
},
|
|
4419
4443
|
m(r, i) {
|
|
4420
|
-
|
|
4444
|
+
v(e, r, i), n = !0;
|
|
4421
4445
|
},
|
|
4422
4446
|
p(r, i) {
|
|
4423
4447
|
const o = {};
|
|
@@ -4440,7 +4464,7 @@ function us(t) {
|
|
|
4440
4464
|
const n = (
|
|
4441
4465
|
/*#slots*/
|
|
4442
4466
|
t[1].default
|
|
4443
|
-
), r =
|
|
4467
|
+
), r = q(
|
|
4444
4468
|
n,
|
|
4445
4469
|
t,
|
|
4446
4470
|
/*$$scope*/
|
|
@@ -4456,19 +4480,19 @@ function us(t) {
|
|
|
4456
4480
|
},
|
|
4457
4481
|
p(i, o) {
|
|
4458
4482
|
r && r.p && (!e || o & /*$$scope*/
|
|
4459
|
-
4) &&
|
|
4483
|
+
4) && V(
|
|
4460
4484
|
r,
|
|
4461
4485
|
n,
|
|
4462
4486
|
i,
|
|
4463
4487
|
/*$$scope*/
|
|
4464
4488
|
i[2],
|
|
4465
|
-
e ?
|
|
4489
|
+
e ? G(
|
|
4466
4490
|
n,
|
|
4467
4491
|
/*$$scope*/
|
|
4468
4492
|
i[2],
|
|
4469
4493
|
o,
|
|
4470
4494
|
null
|
|
4471
|
-
) :
|
|
4495
|
+
) : Y(
|
|
4472
4496
|
/*$$scope*/
|
|
4473
4497
|
i[2]
|
|
4474
4498
|
),
|
|
@@ -4547,7 +4571,7 @@ function _s(t) {
|
|
|
4547
4571
|
let e;
|
|
4548
4572
|
return {
|
|
4549
4573
|
c() {
|
|
4550
|
-
e =
|
|
4574
|
+
e = I("div"), ne(e, "color", "var(--rc-color-gray-text-dark)");
|
|
4551
4575
|
},
|
|
4552
4576
|
m(n, r) {
|
|
4553
4577
|
g(n, e, r), e.innerHTML = ms;
|
|
@@ -4572,7 +4596,7 @@ function bs(t) {
|
|
|
4572
4596
|
let e;
|
|
4573
4597
|
return {
|
|
4574
4598
|
c() {
|
|
4575
|
-
e =
|
|
4599
|
+
e = I("div"), e.textContent = "Sandbox", b(e, "class", "svelte-1ny4y2s");
|
|
4576
4600
|
},
|
|
4577
4601
|
m(n, r) {
|
|
4578
4602
|
g(n, e, r);
|
|
@@ -4598,7 +4622,7 @@ function Es(t) {
|
|
|
4598
4622
|
const r = (
|
|
4599
4623
|
/*#slots*/
|
|
4600
4624
|
t[2].default
|
|
4601
|
-
), i =
|
|
4625
|
+
), i = q(
|
|
4602
4626
|
r,
|
|
4603
4627
|
t,
|
|
4604
4628
|
/*$$scope*/
|
|
@@ -4607,7 +4631,7 @@ function Es(t) {
|
|
|
4607
4631
|
);
|
|
4608
4632
|
return {
|
|
4609
4633
|
c() {
|
|
4610
|
-
e =
|
|
4634
|
+
e = I("div"), i && i.c(), b(e, "class", "rcb-ui-layout svelte-1iuls9l"), b(
|
|
4611
4635
|
e,
|
|
4612
4636
|
"style",
|
|
4613
4637
|
/*style*/
|
|
@@ -4619,19 +4643,19 @@ function Es(t) {
|
|
|
4619
4643
|
},
|
|
4620
4644
|
p(o, [s]) {
|
|
4621
4645
|
i && i.p && (!n || s & /*$$scope*/
|
|
4622
|
-
2) &&
|
|
4646
|
+
2) && V(
|
|
4623
4647
|
i,
|
|
4624
4648
|
r,
|
|
4625
4649
|
o,
|
|
4626
4650
|
/*$$scope*/
|
|
4627
4651
|
o[1],
|
|
4628
|
-
n ?
|
|
4652
|
+
n ? G(
|
|
4629
4653
|
r,
|
|
4630
4654
|
/*$$scope*/
|
|
4631
4655
|
o[1],
|
|
4632
4656
|
s,
|
|
4633
4657
|
null
|
|
4634
|
-
) :
|
|
4658
|
+
) : Y(
|
|
4635
4659
|
/*$$scope*/
|
|
4636
4660
|
o[1]
|
|
4637
4661
|
),
|
|
@@ -4655,15 +4679,15 @@ function Es(t) {
|
|
|
4655
4679
|
}
|
|
4656
4680
|
};
|
|
4657
4681
|
}
|
|
4658
|
-
function
|
|
4682
|
+
function Is(t, e, n) {
|
|
4659
4683
|
let { $$slots: r = {}, $$scope: i } = e, { style: o = "" } = e;
|
|
4660
4684
|
return t.$$set = (s) => {
|
|
4661
4685
|
"style" in s && n(0, o = s.style), "$$scope" in s && n(1, i = s.$$scope);
|
|
4662
4686
|
}, [o, i, r];
|
|
4663
4687
|
}
|
|
4664
|
-
class
|
|
4688
|
+
class vs extends D {
|
|
4665
4689
|
constructor(e) {
|
|
4666
|
-
super(), M(this, e,
|
|
4690
|
+
super(), M(this, e, Is, Es, S, { style: 0 }, ys);
|
|
4667
4691
|
}
|
|
4668
4692
|
}
|
|
4669
4693
|
function $s(t) {
|
|
@@ -4675,7 +4699,7 @@ function ks(t) {
|
|
|
4675
4699
|
const r = (
|
|
4676
4700
|
/*#slots*/
|
|
4677
4701
|
t[2].default
|
|
4678
|
-
), i =
|
|
4702
|
+
), i = q(
|
|
4679
4703
|
r,
|
|
4680
4704
|
t,
|
|
4681
4705
|
/*$$scope*/
|
|
@@ -4684,7 +4708,7 @@ function ks(t) {
|
|
|
4684
4708
|
);
|
|
4685
4709
|
return {
|
|
4686
4710
|
c() {
|
|
4687
|
-
e =
|
|
4711
|
+
e = I("div"), i && i.c(), b(e, "class", "rcb-ui-container svelte-1sfb5if"), b(
|
|
4688
4712
|
e,
|
|
4689
4713
|
"style",
|
|
4690
4714
|
/*style*/
|
|
@@ -4696,19 +4720,19 @@ function ks(t) {
|
|
|
4696
4720
|
},
|
|
4697
4721
|
p(o, [s]) {
|
|
4698
4722
|
i && i.p && (!n || s & /*$$scope*/
|
|
4699
|
-
2) &&
|
|
4723
|
+
2) && V(
|
|
4700
4724
|
i,
|
|
4701
4725
|
r,
|
|
4702
4726
|
o,
|
|
4703
4727
|
/*$$scope*/
|
|
4704
4728
|
o[1],
|
|
4705
|
-
n ?
|
|
4729
|
+
n ? G(
|
|
4706
4730
|
r,
|
|
4707
4731
|
/*$$scope*/
|
|
4708
4732
|
o[1],
|
|
4709
4733
|
s,
|
|
4710
4734
|
null
|
|
4711
|
-
) :
|
|
4735
|
+
) : Y(
|
|
4712
4736
|
/*$$scope*/
|
|
4713
4737
|
o[1]
|
|
4714
4738
|
),
|
|
@@ -4752,7 +4776,7 @@ function Ns(t) {
|
|
|
4752
4776
|
const r = (
|
|
4753
4777
|
/*#slots*/
|
|
4754
4778
|
t[2].header
|
|
4755
|
-
), i =
|
|
4779
|
+
), i = q(
|
|
4756
4780
|
r,
|
|
4757
4781
|
t,
|
|
4758
4782
|
/*$$scope*/
|
|
@@ -4761,7 +4785,7 @@ function Ns(t) {
|
|
|
4761
4785
|
), o = (
|
|
4762
4786
|
/*#slots*/
|
|
4763
4787
|
t[2].default
|
|
4764
|
-
), s =
|
|
4788
|
+
), s = q(
|
|
4765
4789
|
o,
|
|
4766
4790
|
t,
|
|
4767
4791
|
/*$$scope*/
|
|
@@ -4777,37 +4801,37 @@ function Ns(t) {
|
|
|
4777
4801
|
},
|
|
4778
4802
|
p(l, a) {
|
|
4779
4803
|
i && i.p && (!n || a & /*$$scope*/
|
|
4780
|
-
8) &&
|
|
4804
|
+
8) && V(
|
|
4781
4805
|
i,
|
|
4782
4806
|
r,
|
|
4783
4807
|
l,
|
|
4784
4808
|
/*$$scope*/
|
|
4785
4809
|
l[3],
|
|
4786
|
-
n ?
|
|
4810
|
+
n ? G(
|
|
4787
4811
|
r,
|
|
4788
4812
|
/*$$scope*/
|
|
4789
4813
|
l[3],
|
|
4790
4814
|
a,
|
|
4791
4815
|
Os
|
|
4792
|
-
) :
|
|
4816
|
+
) : Y(
|
|
4793
4817
|
/*$$scope*/
|
|
4794
4818
|
l[3]
|
|
4795
4819
|
),
|
|
4796
4820
|
Mt
|
|
4797
4821
|
), s && s.p && (!n || a & /*$$scope*/
|
|
4798
|
-
8) &&
|
|
4822
|
+
8) && V(
|
|
4799
4823
|
s,
|
|
4800
4824
|
o,
|
|
4801
4825
|
l,
|
|
4802
4826
|
/*$$scope*/
|
|
4803
4827
|
l[3],
|
|
4804
|
-
n ?
|
|
4828
|
+
n ? G(
|
|
4805
4829
|
o,
|
|
4806
4830
|
/*$$scope*/
|
|
4807
4831
|
l[3],
|
|
4808
4832
|
a,
|
|
4809
4833
|
null
|
|
4810
|
-
) :
|
|
4834
|
+
) : Y(
|
|
4811
4835
|
/*$$scope*/
|
|
4812
4836
|
l[3]
|
|
4813
4837
|
),
|
|
@@ -4834,7 +4858,7 @@ function Us(t) {
|
|
|
4834
4858
|
}
|
|
4835
4859
|
}), {
|
|
4836
4860
|
c() {
|
|
4837
|
-
e =
|
|
4861
|
+
e = I("div"), k(n.$$.fragment), b(e, "class", "rcb-ui-aside svelte-17dr902"), b(
|
|
4838
4862
|
e,
|
|
4839
4863
|
"style",
|
|
4840
4864
|
/*style*/
|
|
@@ -4842,7 +4866,7 @@ function Us(t) {
|
|
|
4842
4866
|
);
|
|
4843
4867
|
},
|
|
4844
4868
|
m(i, o) {
|
|
4845
|
-
g(i, e, o),
|
|
4869
|
+
g(i, e, o), v(n, e, null), r = !0;
|
|
4846
4870
|
},
|
|
4847
4871
|
p(i, [o]) {
|
|
4848
4872
|
const s = {};
|
|
@@ -4880,7 +4904,7 @@ function Ds(t) {
|
|
|
4880
4904
|
const r = (
|
|
4881
4905
|
/*#slots*/
|
|
4882
4906
|
t[2].header
|
|
4883
|
-
), i =
|
|
4907
|
+
), i = q(
|
|
4884
4908
|
r,
|
|
4885
4909
|
t,
|
|
4886
4910
|
/*$$scope*/
|
|
@@ -4889,7 +4913,7 @@ function Ds(t) {
|
|
|
4889
4913
|
), o = (
|
|
4890
4914
|
/*#slots*/
|
|
4891
4915
|
t[2].default
|
|
4892
|
-
), s =
|
|
4916
|
+
), s = q(
|
|
4893
4917
|
o,
|
|
4894
4918
|
t,
|
|
4895
4919
|
/*$$scope*/
|
|
@@ -4905,37 +4929,37 @@ function Ds(t) {
|
|
|
4905
4929
|
},
|
|
4906
4930
|
p(l, a) {
|
|
4907
4931
|
i && i.p && (!n || a & /*$$scope*/
|
|
4908
|
-
8) &&
|
|
4932
|
+
8) && V(
|
|
4909
4933
|
i,
|
|
4910
4934
|
r,
|
|
4911
4935
|
l,
|
|
4912
4936
|
/*$$scope*/
|
|
4913
4937
|
l[3],
|
|
4914
|
-
n ?
|
|
4938
|
+
n ? G(
|
|
4915
4939
|
r,
|
|
4916
4940
|
/*$$scope*/
|
|
4917
4941
|
l[3],
|
|
4918
4942
|
a,
|
|
4919
4943
|
Ms
|
|
4920
|
-
) :
|
|
4944
|
+
) : Y(
|
|
4921
4945
|
/*$$scope*/
|
|
4922
4946
|
l[3]
|
|
4923
4947
|
),
|
|
4924
4948
|
Dt
|
|
4925
4949
|
), s && s.p && (!n || a & /*$$scope*/
|
|
4926
|
-
8) &&
|
|
4950
|
+
8) && V(
|
|
4927
4951
|
s,
|
|
4928
4952
|
o,
|
|
4929
4953
|
l,
|
|
4930
4954
|
/*$$scope*/
|
|
4931
4955
|
l[3],
|
|
4932
|
-
n ?
|
|
4956
|
+
n ? G(
|
|
4933
4957
|
o,
|
|
4934
4958
|
/*$$scope*/
|
|
4935
4959
|
l[3],
|
|
4936
4960
|
a,
|
|
4937
4961
|
null
|
|
4938
|
-
) :
|
|
4962
|
+
) : Y(
|
|
4939
4963
|
/*$$scope*/
|
|
4940
4964
|
l[3]
|
|
4941
4965
|
),
|
|
@@ -4963,7 +4987,7 @@ function Bs(t) {
|
|
|
4963
4987
|
}
|
|
4964
4988
|
}), {
|
|
4965
4989
|
c() {
|
|
4966
|
-
e =
|
|
4990
|
+
e = I("div"), k(n.$$.fragment), b(e, "class", "rcb-ui-main svelte-vpgys"), b(
|
|
4967
4991
|
e,
|
|
4968
4992
|
"style",
|
|
4969
4993
|
/*style*/
|
|
@@ -4971,7 +4995,7 @@ function Bs(t) {
|
|
|
4971
4995
|
);
|
|
4972
4996
|
},
|
|
4973
4997
|
m(i, o) {
|
|
4974
|
-
g(i, e, o),
|
|
4998
|
+
g(i, e, o), v(n, e, null), r = !0;
|
|
4975
4999
|
},
|
|
4976
5000
|
p(i, [o]) {
|
|
4977
5001
|
const s = {};
|
|
@@ -5020,7 +5044,7 @@ function Bt(t) {
|
|
|
5020
5044
|
k(e.$$.fragment);
|
|
5021
5045
|
},
|
|
5022
5046
|
m(i, o) {
|
|
5023
|
-
|
|
5047
|
+
v(e, i, o), n = !0;
|
|
5024
5048
|
},
|
|
5025
5049
|
p(i, o) {
|
|
5026
5050
|
var l;
|
|
@@ -5064,7 +5088,7 @@ function Ct(t) {
|
|
|
5064
5088
|
k(e.$$.fragment);
|
|
5065
5089
|
},
|
|
5066
5090
|
m(i, o) {
|
|
5067
|
-
|
|
5091
|
+
v(e, i, o), n = !0;
|
|
5068
5092
|
},
|
|
5069
5093
|
p(i, o) {
|
|
5070
5094
|
var l;
|
|
@@ -5125,7 +5149,7 @@ function Hs(t) {
|
|
|
5125
5149
|
k(e.$$.fragment);
|
|
5126
5150
|
},
|
|
5127
5151
|
m(r, i) {
|
|
5128
|
-
|
|
5152
|
+
v(e, r, i), n = !0;
|
|
5129
5153
|
},
|
|
5130
5154
|
i(r) {
|
|
5131
5155
|
n || (d(e.$$.fragment, r), n = !0);
|
|
@@ -5145,7 +5169,7 @@ function xs(t) {
|
|
|
5145
5169
|
k(e.$$.fragment);
|
|
5146
5170
|
},
|
|
5147
5171
|
m(r, i) {
|
|
5148
|
-
|
|
5172
|
+
v(e, r, i), n = !0;
|
|
5149
5173
|
},
|
|
5150
5174
|
i(r) {
|
|
5151
5175
|
n || (d(e.$$.fragment, r), n = !0);
|
|
@@ -5177,7 +5201,7 @@ function qs(t) {
|
|
|
5177
5201
|
k(e.$$.fragment), n = U(), o.c(), s = ee();
|
|
5178
5202
|
},
|
|
5179
5203
|
m(u, m) {
|
|
5180
|
-
|
|
5204
|
+
v(e, u, m), g(u, n, m), c[i].m(u, m), g(u, s, m), l = !0;
|
|
5181
5205
|
},
|
|
5182
5206
|
p(u, m) {
|
|
5183
5207
|
const h = {};
|
|
@@ -5213,7 +5237,7 @@ function Gs(t) {
|
|
|
5213
5237
|
k(e.$$.fragment);
|
|
5214
5238
|
},
|
|
5215
5239
|
m(r, i) {
|
|
5216
|
-
|
|
5240
|
+
v(e, r, i), n = !0;
|
|
5217
5241
|
},
|
|
5218
5242
|
p(r, i) {
|
|
5219
5243
|
const o = {};
|
|
@@ -5249,7 +5273,7 @@ function Ft(t) {
|
|
|
5249
5273
|
k(e.$$.fragment);
|
|
5250
5274
|
},
|
|
5251
5275
|
m(r, i) {
|
|
5252
|
-
|
|
5276
|
+
v(e, r, i), n = !0;
|
|
5253
5277
|
},
|
|
5254
5278
|
p(r, i) {
|
|
5255
5279
|
const o = {};
|
|
@@ -5275,7 +5299,7 @@ function jt(t) {
|
|
|
5275
5299
|
k(e.$$.fragment);
|
|
5276
5300
|
},
|
|
5277
5301
|
m(r, i) {
|
|
5278
|
-
|
|
5302
|
+
v(e, r, i), n = !0;
|
|
5279
5303
|
},
|
|
5280
5304
|
i(r) {
|
|
5281
5305
|
n || (d(e.$$.fragment, r), n = !0);
|
|
@@ -5314,7 +5338,7 @@ function Ht(t) {
|
|
|
5314
5338
|
k(e.$$.fragment);
|
|
5315
5339
|
},
|
|
5316
5340
|
m(r, i) {
|
|
5317
|
-
|
|
5341
|
+
v(e, r, i), n = !0;
|
|
5318
5342
|
},
|
|
5319
5343
|
p(r, i) {
|
|
5320
5344
|
const o = {};
|
|
@@ -5377,7 +5401,7 @@ function xt(t) {
|
|
|
5377
5401
|
k(e.$$.fragment);
|
|
5378
5402
|
},
|
|
5379
5403
|
m(r, i) {
|
|
5380
|
-
|
|
5404
|
+
v(e, r, i), n = !0;
|
|
5381
5405
|
},
|
|
5382
5406
|
p(r, i) {
|
|
5383
5407
|
const o = {};
|
|
@@ -5409,7 +5433,7 @@ function qt(t) {
|
|
|
5409
5433
|
k(e.$$.fragment);
|
|
5410
5434
|
},
|
|
5411
5435
|
m(r, i) {
|
|
5412
|
-
|
|
5436
|
+
v(e, r, i), n = !0;
|
|
5413
5437
|
},
|
|
5414
5438
|
i(r) {
|
|
5415
5439
|
n || (d(e.$$.fragment, r), n = !0);
|
|
@@ -5433,7 +5457,7 @@ function Gt(t) {
|
|
|
5433
5457
|
),
|
|
5434
5458
|
lastError: (
|
|
5435
5459
|
/*lastError*/
|
|
5436
|
-
t[6] ?? new
|
|
5460
|
+
t[6] ?? new x(K.UnknownError, "Unknown error without state set.")
|
|
5437
5461
|
),
|
|
5438
5462
|
supportEmail: (
|
|
5439
5463
|
/*brandingInfo*/
|
|
@@ -5453,7 +5477,7 @@ function Gt(t) {
|
|
|
5453
5477
|
k(e.$$.fragment);
|
|
5454
5478
|
},
|
|
5455
5479
|
m(i, o) {
|
|
5456
|
-
|
|
5480
|
+
v(e, i, o), n = !0;
|
|
5457
5481
|
},
|
|
5458
5482
|
p(i, o) {
|
|
5459
5483
|
var l;
|
|
@@ -5462,7 +5486,7 @@ function Gt(t) {
|
|
|
5462
5486
|
2 && (s.brandingInfo = /*brandingInfo*/
|
|
5463
5487
|
i[1]), o & /*lastError*/
|
|
5464
5488
|
64 && (s.lastError = /*lastError*/
|
|
5465
|
-
i[6] ?? new
|
|
5489
|
+
i[6] ?? new x(K.UnknownError, "Unknown error without state set.")), o & /*brandingInfo*/
|
|
5466
5490
|
2 && (s.supportEmail = /*brandingInfo*/
|
|
5467
5491
|
(l = i[1]) == null ? void 0 : l.seller_company_support_email), o & /*productDetails*/
|
|
5468
5492
|
16 && (s.productDetails = /*productDetails*/
|
|
@@ -5501,7 +5525,7 @@ function Vt(t) {
|
|
|
5501
5525
|
k(e.$$.fragment);
|
|
5502
5526
|
},
|
|
5503
5527
|
m(r, i) {
|
|
5504
|
-
|
|
5528
|
+
v(e, r, i), n = !0;
|
|
5505
5529
|
},
|
|
5506
5530
|
p(r, i) {
|
|
5507
5531
|
const o = {};
|
|
@@ -5633,7 +5657,7 @@ function Ys(t) {
|
|
|
5633
5657
|
o && o.c(), n = U(), k(r.$$.fragment);
|
|
5634
5658
|
},
|
|
5635
5659
|
m(l, a) {
|
|
5636
|
-
o && o.m(l, a), g(l, n, a),
|
|
5660
|
+
o && o.m(l, a), g(l, n, a), v(r, l, a), i = !0;
|
|
5637
5661
|
},
|
|
5638
5662
|
p(l, a) {
|
|
5639
5663
|
var f;
|
|
@@ -5665,7 +5689,7 @@ function Ys(t) {
|
|
|
5665
5689
|
}
|
|
5666
5690
|
function zs(t) {
|
|
5667
5691
|
let e, n;
|
|
5668
|
-
return e = new
|
|
5692
|
+
return e = new vs({
|
|
5669
5693
|
props: {
|
|
5670
5694
|
style: (
|
|
5671
5695
|
/*colorVariables*/
|
|
@@ -5679,7 +5703,7 @@ function zs(t) {
|
|
|
5679
5703
|
k(e.$$.fragment);
|
|
5680
5704
|
},
|
|
5681
5705
|
m(r, i) {
|
|
5682
|
-
|
|
5706
|
+
v(e, r, i), n = !0;
|
|
5683
5707
|
},
|
|
5684
5708
|
p(r, i) {
|
|
5685
5709
|
const o = {};
|
|
@@ -5715,7 +5739,7 @@ function Ws(t) {
|
|
|
5715
5739
|
k(e.$$.fragment);
|
|
5716
5740
|
},
|
|
5717
5741
|
m(r, i) {
|
|
5718
|
-
|
|
5742
|
+
v(e, r, i), n = !0;
|
|
5719
5743
|
},
|
|
5720
5744
|
p(r, i) {
|
|
5721
5745
|
const o = {};
|
|
@@ -5747,7 +5771,7 @@ function Ks(t) {
|
|
|
5747
5771
|
k(e.$$.fragment);
|
|
5748
5772
|
},
|
|
5749
5773
|
m(r, i) {
|
|
5750
|
-
|
|
5774
|
+
v(e, r, i), n = !0;
|
|
5751
5775
|
},
|
|
5752
5776
|
p(r, [i]) {
|
|
5753
5777
|
const o = {};
|
|
@@ -5769,7 +5793,7 @@ function Qs(t, e, n) {
|
|
|
5769
5793
|
let { asModal: r = !0 } = e, { customerEmail: i } = e, { appUserId: o } = e, { rcPackage: s } = e, { purchaseOption: l } = e, { brandingInfo: a } = e, { onFinished: c } = e, { onError: f } = e, { onClose: u } = e, { purchases: m } = e, { purchaseOperationHelper: h } = e, y = "", T = null, w = null, O = null;
|
|
5770
5794
|
const C = s.rcBillingProduct.identifier ?? null, E = s.rcBillingProduct.defaultPurchaseOption, P = l || E;
|
|
5771
5795
|
let B = "present-offer";
|
|
5772
|
-
const
|
|
5796
|
+
const Ae = [
|
|
5773
5797
|
"present-offer",
|
|
5774
5798
|
"needs-auth-info",
|
|
5775
5799
|
"processing-auth-info",
|
|
@@ -5783,15 +5807,15 @@ function Qs(t, e, n) {
|
|
|
5783
5807
|
return;
|
|
5784
5808
|
}
|
|
5785
5809
|
});
|
|
5786
|
-
const
|
|
5810
|
+
const Oe = () => {
|
|
5787
5811
|
u();
|
|
5788
5812
|
}, at = () => {
|
|
5789
5813
|
if (C === null) {
|
|
5790
|
-
|
|
5814
|
+
pe(new x(K.ErrorSettingUpPurchase, "Product ID was not set before purchase."));
|
|
5791
5815
|
return;
|
|
5792
5816
|
} else B === "present-offer" && n(7, B = "loading");
|
|
5793
5817
|
if (!i) {
|
|
5794
|
-
|
|
5818
|
+
pe(new x(K.MissingEmailError));
|
|
5795
5819
|
return;
|
|
5796
5820
|
}
|
|
5797
5821
|
h.startPurchase(o, C, P, i, s.rcBillingProduct.presentedOfferingContext).then((R) => {
|
|
@@ -5804,7 +5828,7 @@ function Qs(t, e, n) {
|
|
|
5804
5828
|
return;
|
|
5805
5829
|
}
|
|
5806
5830
|
}).catch((R) => {
|
|
5807
|
-
|
|
5831
|
+
pe(R);
|
|
5808
5832
|
});
|
|
5809
5833
|
}, Pn = (R) => {
|
|
5810
5834
|
if (B === "needs-auth-info") {
|
|
@@ -5815,7 +5839,7 @@ function Qs(t, e, n) {
|
|
|
5815
5839
|
n(7, B = "polling-purchase-status"), h.pollCurrentPurchaseForCompletion().then(() => {
|
|
5816
5840
|
n(7, B = "success");
|
|
5817
5841
|
}).catch((An) => {
|
|
5818
|
-
|
|
5842
|
+
pe(An);
|
|
5819
5843
|
});
|
|
5820
5844
|
return;
|
|
5821
5845
|
}
|
|
@@ -5824,14 +5848,14 @@ function Qs(t, e, n) {
|
|
|
5824
5848
|
return;
|
|
5825
5849
|
}
|
|
5826
5850
|
n(7, B = "success");
|
|
5827
|
-
},
|
|
5851
|
+
}, pe = (R) => {
|
|
5828
5852
|
if (B === "processing-auth-info" && R.isRecoverable()) {
|
|
5829
5853
|
n(6, O = R), n(7, B = "needs-auth-info");
|
|
5830
5854
|
return;
|
|
5831
5855
|
}
|
|
5832
5856
|
n(6, O = R), n(7, B = "error");
|
|
5833
5857
|
}, Tn = () => {
|
|
5834
|
-
f(O ?? new
|
|
5858
|
+
f(O ?? new x(K.UnknownError, "Unknown error without state set."));
|
|
5835
5859
|
};
|
|
5836
5860
|
return t.$$set = (R) => {
|
|
5837
5861
|
"asModal" in R && n(0, r = R.asModal), "customerEmail" in R && n(14, i = R.customerEmail), "appUserId" in R && n(15, o = R.appUserId), "rcPackage" in R && n(16, s = R.rcPackage), "purchaseOption" in R && n(17, l = R.purchaseOption), "brandingInfo" in R && n(1, a = R.brandingInfo), "onFinished" in R && n(18, c = R.onFinished), "onError" in R && n(19, f = R.onError), "onClose" in R && n(20, u = R.onClose), "purchases" in R && n(2, m = R.purchases), "purchaseOperationHelper" in R && n(21, h = R.purchaseOperationHelper);
|
|
@@ -5845,10 +5869,10 @@ function Qs(t, e, n) {
|
|
|
5845
5869
|
O,
|
|
5846
5870
|
B,
|
|
5847
5871
|
P,
|
|
5848
|
-
Te,
|
|
5849
5872
|
Ae,
|
|
5873
|
+
Oe,
|
|
5850
5874
|
Pn,
|
|
5851
|
-
|
|
5875
|
+
pe,
|
|
5852
5876
|
Tn,
|
|
5853
5877
|
i,
|
|
5854
5878
|
o,
|
|
@@ -6027,7 +6051,7 @@ function al(t) {
|
|
|
6027
6051
|
}
|
|
6028
6052
|
return e;
|
|
6029
6053
|
}
|
|
6030
|
-
const cl = "0.11.
|
|
6054
|
+
const cl = "0.11.2", ul = "https://api.revenuecat.com";
|
|
6031
6055
|
var Ce;
|
|
6032
6056
|
(function(t) {
|
|
6033
6057
|
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";
|
|
@@ -6047,7 +6071,7 @@ async function le(t, e) {
|
|
|
6047
6071
|
} catch (a) {
|
|
6048
6072
|
throw a instanceof TypeError ? new Q(
|
|
6049
6073
|
X.NetworkError,
|
|
6050
|
-
|
|
6074
|
+
ye.getPublicMessage(X.NetworkError),
|
|
6051
6075
|
a.message
|
|
6052
6076
|
) : a;
|
|
6053
6077
|
}
|
|
@@ -6059,7 +6083,7 @@ async function fl(t, e) {
|
|
|
6059
6083
|
else if (n >= Ce.BAD_REQUEST) {
|
|
6060
6084
|
const r = await t.json(), i = r ? JSON.stringify(r) : null, o = r == null ? void 0 : r.code, s = r == null ? void 0 : r.message;
|
|
6061
6085
|
if (o != null) {
|
|
6062
|
-
const l =
|
|
6086
|
+
const l = ye.convertCodeToBackendErrorCode(o);
|
|
6063
6087
|
if (l == null)
|
|
6064
6088
|
Ye(
|
|
6065
6089
|
e,
|
|
@@ -6087,13 +6111,13 @@ function Ye(t, e, n, r) {
|
|
|
6087
6111
|
function dl(t) {
|
|
6088
6112
|
return t == null ? null : JSON.stringify(t);
|
|
6089
6113
|
}
|
|
6090
|
-
const hn = "Authorization", bn = "Content-Type", wn = "Accept", yn = "X-Platform", En = "X-Version",
|
|
6114
|
+
const hn = "Authorization", bn = "Content-Type", wn = "Accept", yn = "X-Platform", En = "X-Version", In = "X-Is-Sandbox", pl = /* @__PURE__ */ new Set([
|
|
6091
6115
|
hn,
|
|
6092
6116
|
bn,
|
|
6093
6117
|
wn,
|
|
6094
6118
|
yn,
|
|
6095
6119
|
En,
|
|
6096
|
-
|
|
6120
|
+
In
|
|
6097
6121
|
]);
|
|
6098
6122
|
function ml(t, e, n) {
|
|
6099
6123
|
let r = {
|
|
@@ -6102,11 +6126,11 @@ function ml(t, e, n) {
|
|
|
6102
6126
|
[wn]: "application/json",
|
|
6103
6127
|
[yn]: "web",
|
|
6104
6128
|
[En]: cl,
|
|
6105
|
-
[
|
|
6129
|
+
[In]: `${Ze(t)}`
|
|
6106
6130
|
};
|
|
6107
6131
|
return e && (r = { ...r, ...e }), n && (r = { ...n, ...r }), r;
|
|
6108
6132
|
}
|
|
6109
|
-
const
|
|
6133
|
+
const vn = "/v1/subscribers", je = "/rcbilling/v1";
|
|
6110
6134
|
class _l {
|
|
6111
6135
|
constructor(e) {
|
|
6112
6136
|
N(this, "appUserId");
|
|
@@ -6116,7 +6140,7 @@ class _l {
|
|
|
6116
6140
|
}
|
|
6117
6141
|
urlPath() {
|
|
6118
6142
|
const e = encodeURIComponent(this.appUserId);
|
|
6119
|
-
return `${
|
|
6143
|
+
return `${vn}/${e}/offerings`;
|
|
6120
6144
|
}
|
|
6121
6145
|
}
|
|
6122
6146
|
class gl {
|
|
@@ -6151,7 +6175,7 @@ class bl {
|
|
|
6151
6175
|
}
|
|
6152
6176
|
urlPath() {
|
|
6153
6177
|
const e = encodeURIComponent(this.appUserId);
|
|
6154
|
-
return `${
|
|
6178
|
+
return `${vn}/${e}`;
|
|
6155
6179
|
}
|
|
6156
6180
|
}
|
|
6157
6181
|
class wl {
|
|
@@ -6247,14 +6271,14 @@ class El {
|
|
|
6247
6271
|
);
|
|
6248
6272
|
}
|
|
6249
6273
|
}
|
|
6250
|
-
function
|
|
6274
|
+
function Il(t) {
|
|
6251
6275
|
if (!/^rcb_[a-zA-Z0-9_.-]+$/.test(t))
|
|
6252
6276
|
throw new Q(
|
|
6253
6277
|
X.InvalidCredentialsError,
|
|
6254
6278
|
"Invalid API key. Use your RevenueCat Billing API key."
|
|
6255
6279
|
);
|
|
6256
6280
|
}
|
|
6257
|
-
function
|
|
6281
|
+
function vl(t) {
|
|
6258
6282
|
if ((/* @__PURE__ */ new Set([
|
|
6259
6283
|
"no_user",
|
|
6260
6284
|
"null",
|
|
@@ -6435,7 +6459,7 @@ const Z = class Z {
|
|
|
6435
6459
|
static configure(e, n, r = Je) {
|
|
6436
6460
|
return Z.instance !== void 0 && j.warnLog(
|
|
6437
6461
|
"Purchases is already initialized. You normally should only configure Purchases once. Creating and returning new instance."
|
|
6438
|
-
),
|
|
6462
|
+
), Il(e), vl(n), $l(r.proxyURL), kl(r.additionalHeaders), Z.instance = new Z(e, n, r), Z.getSharedInstance();
|
|
6439
6463
|
}
|
|
6440
6464
|
/**
|
|
6441
6465
|
* Loads and caches some optional data in the Purchases SDK.
|
|
@@ -6639,7 +6663,7 @@ export {
|
|
|
6639
6663
|
J as LogLevel,
|
|
6640
6664
|
$n as OfferingKeyword,
|
|
6641
6665
|
dr as PackageType,
|
|
6642
|
-
|
|
6666
|
+
Pe as ProductType,
|
|
6643
6667
|
Yt as Purchases,
|
|
6644
6668
|
Q as PurchasesError,
|
|
6645
6669
|
Dr as UninitializedPurchasesError
|