@revenuecat/purchases-js 0.1.1 → 0.1.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.d.ts +5 -1
- package/dist/Purchases.es.js +416 -357
- package/dist/Purchases.umd.js +4 -4
- package/package.json +1 -1
package/dist/Purchases.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var Ot = Object.defineProperty;
|
|
2
2
|
var Lt = (t, e, r) => e in t ? Ot(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
-
var
|
|
3
|
+
var M = (t, e, r) => (Lt(t, typeof e != "symbol" ? e + "" : e, r), r);
|
|
4
4
|
function xt(t) {
|
|
5
5
|
return t != null;
|
|
6
6
|
}
|
|
@@ -78,7 +78,7 @@ function Xe() {
|
|
|
78
78
|
function we(t) {
|
|
79
79
|
t.forEach(bt);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function ae(t) {
|
|
82
82
|
return typeof t == "function";
|
|
83
83
|
}
|
|
84
84
|
function P(t, e) {
|
|
@@ -183,14 +183,14 @@ function g(t) {
|
|
|
183
183
|
function k(t) {
|
|
184
184
|
return document.createElement(t);
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function R(t) {
|
|
187
187
|
return document.createTextNode(t);
|
|
188
188
|
}
|
|
189
189
|
function T() {
|
|
190
|
-
return
|
|
190
|
+
return R(" ");
|
|
191
191
|
}
|
|
192
|
-
function
|
|
193
|
-
return
|
|
192
|
+
function ee() {
|
|
193
|
+
return R("");
|
|
194
194
|
}
|
|
195
195
|
function ke(t, e, r, n) {
|
|
196
196
|
return t.addEventListener(e, r, n), () => t.removeEventListener(e, r, n);
|
|
@@ -200,14 +200,14 @@ function kt(t) {
|
|
|
200
200
|
return e.preventDefault(), t.call(this, e);
|
|
201
201
|
};
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function _(t, e, r) {
|
|
204
204
|
r == null ? t.removeAttribute(e) : t.getAttribute(e) !== r && t.setAttribute(e, r);
|
|
205
205
|
}
|
|
206
206
|
const Wt = ["width", "height"];
|
|
207
207
|
function zt(t, e) {
|
|
208
208
|
const r = Object.getOwnPropertyDescriptors(t.__proto__);
|
|
209
209
|
for (const n in e)
|
|
210
|
-
e[n] == null ? t.removeAttribute(n) : n === "style" ? t.style.cssText = e[n] : n === "__value" ? t.value = t[n] = e[n] : r[n] && r[n].set && Wt.indexOf(n) === -1 ? t[n] = e[n] :
|
|
210
|
+
e[n] == null ? t.removeAttribute(n) : n === "style" ? t.style.cssText = e[n] : n === "__value" ? t.value = t[n] = e[n] : r[n] && r[n].set && Wt.indexOf(n) === -1 ? t[n] = e[n] : _(t, n, e[n]);
|
|
211
211
|
}
|
|
212
212
|
function Xt(t, e) {
|
|
213
213
|
Object.keys(e).forEach((r) => {
|
|
@@ -216,7 +216,7 @@ function Xt(t, e) {
|
|
|
216
216
|
}
|
|
217
217
|
function Zt(t, e, r) {
|
|
218
218
|
const n = e.toLowerCase();
|
|
219
|
-
n in t ? t[n] = typeof t[n] == "boolean" && r === "" ? !0 : r : e in t ? t[e] = typeof t[e] == "boolean" && r === "" ? !0 : r :
|
|
219
|
+
n in t ? t[n] = typeof t[n] == "boolean" && r === "" ? !0 : r : e in t ? t[e] = typeof t[e] == "boolean" && r === "" ? !0 : r : _(t, e, r);
|
|
220
220
|
}
|
|
221
221
|
function en(t) {
|
|
222
222
|
return /-/.test(t) ? Xt : zt;
|
|
@@ -238,16 +238,16 @@ let Ie;
|
|
|
238
238
|
function he(t) {
|
|
239
239
|
Ie = t;
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function Re() {
|
|
242
242
|
if (!Ie)
|
|
243
243
|
throw new Error("Function called outside component initialization");
|
|
244
244
|
return Ie;
|
|
245
245
|
}
|
|
246
246
|
function Se(t) {
|
|
247
|
-
|
|
247
|
+
Re().$$.on_mount.push(t);
|
|
248
248
|
}
|
|
249
249
|
function rn() {
|
|
250
|
-
const t =
|
|
250
|
+
const t = Re();
|
|
251
251
|
return (e, r, { cancelable: n = !1 } = {}) => {
|
|
252
252
|
const i = t.$$.callbacks[e];
|
|
253
253
|
if (i) {
|
|
@@ -265,51 +265,51 @@ function rn() {
|
|
|
265
265
|
};
|
|
266
266
|
}
|
|
267
267
|
function on(t, e) {
|
|
268
|
-
return
|
|
268
|
+
return Re().$$.context.set(t, e), e;
|
|
269
269
|
}
|
|
270
270
|
function sn(t) {
|
|
271
|
-
return
|
|
271
|
+
return Re().$$.context.get(t);
|
|
272
272
|
}
|
|
273
273
|
function $t(t, e) {
|
|
274
274
|
const r = t.$$.callbacks[e.type];
|
|
275
275
|
r && r.slice().forEach((n) => n.call(this, e));
|
|
276
276
|
}
|
|
277
|
-
const
|
|
278
|
-
let
|
|
277
|
+
const le = [], Ne = [];
|
|
278
|
+
let ce = [];
|
|
279
279
|
const Ye = [], ln = /* @__PURE__ */ Promise.resolve();
|
|
280
280
|
let He = !1;
|
|
281
281
|
function cn() {
|
|
282
282
|
He || (He = !0, ln.then(vt));
|
|
283
283
|
}
|
|
284
284
|
function Ke(t) {
|
|
285
|
-
|
|
285
|
+
ce.push(t);
|
|
286
286
|
}
|
|
287
287
|
function an(t) {
|
|
288
288
|
Ye.push(t);
|
|
289
289
|
}
|
|
290
290
|
const xe = /* @__PURE__ */ new Set();
|
|
291
|
-
let
|
|
291
|
+
let oe = 0;
|
|
292
292
|
function vt() {
|
|
293
|
-
if (
|
|
293
|
+
if (oe !== 0)
|
|
294
294
|
return;
|
|
295
295
|
const t = Ie;
|
|
296
296
|
do {
|
|
297
297
|
try {
|
|
298
|
-
for (;
|
|
299
|
-
const e =
|
|
300
|
-
|
|
298
|
+
for (; oe < le.length; ) {
|
|
299
|
+
const e = le[oe];
|
|
300
|
+
oe++, he(e), un(e.$$);
|
|
301
301
|
}
|
|
302
302
|
} catch (e) {
|
|
303
|
-
throw
|
|
303
|
+
throw le.length = 0, oe = 0, e;
|
|
304
304
|
}
|
|
305
|
-
for (he(null),
|
|
306
|
-
|
|
307
|
-
for (let e = 0; e <
|
|
308
|
-
const r =
|
|
305
|
+
for (he(null), le.length = 0, oe = 0; Ne.length; )
|
|
306
|
+
Ne.pop()();
|
|
307
|
+
for (let e = 0; e < ce.length; e += 1) {
|
|
308
|
+
const r = ce[e];
|
|
309
309
|
xe.has(r) || (xe.add(r), r());
|
|
310
310
|
}
|
|
311
|
-
|
|
312
|
-
} while (
|
|
311
|
+
ce.length = 0;
|
|
312
|
+
} while (le.length);
|
|
313
313
|
for (; Ye.length; )
|
|
314
314
|
Ye.pop()();
|
|
315
315
|
He = !1, xe.clear(), he(t);
|
|
@@ -323,9 +323,9 @@ function un(t) {
|
|
|
323
323
|
}
|
|
324
324
|
function fn(t) {
|
|
325
325
|
const e = [], r = [];
|
|
326
|
-
|
|
326
|
+
ce.forEach((n) => t.indexOf(n) === -1 ? e.push(n) : r.push(n)), r.forEach((n) => n()), ce = e;
|
|
327
327
|
}
|
|
328
|
-
const
|
|
328
|
+
const Qe = /* @__PURE__ */ new Set();
|
|
329
329
|
let ne;
|
|
330
330
|
function L() {
|
|
331
331
|
ne = {
|
|
@@ -339,14 +339,14 @@ function x() {
|
|
|
339
339
|
ne.r || we(ne.c), ne = ne.p;
|
|
340
340
|
}
|
|
341
341
|
function u(t, e) {
|
|
342
|
-
t && t.i && (
|
|
342
|
+
t && t.i && (Qe.delete(t), t.i(e));
|
|
343
343
|
}
|
|
344
344
|
function m(t, e, r, n) {
|
|
345
345
|
if (t && t.o) {
|
|
346
|
-
if (
|
|
346
|
+
if (Qe.has(t))
|
|
347
347
|
return;
|
|
348
|
-
|
|
349
|
-
|
|
348
|
+
Qe.add(t), ne.c.push(() => {
|
|
349
|
+
Qe.delete(t), n && (r && t.d(1), n());
|
|
350
350
|
}), t.o(e);
|
|
351
351
|
} else
|
|
352
352
|
n && n();
|
|
@@ -361,7 +361,7 @@ function w(t) {
|
|
|
361
361
|
function I(t, e, r) {
|
|
362
362
|
const { fragment: n, after_update: i } = t.$$;
|
|
363
363
|
n && n.m(e, r), Ke(() => {
|
|
364
|
-
const o = t.$$.on_mount.map(bt).filter(
|
|
364
|
+
const o = t.$$.on_mount.map(bt).filter(ae);
|
|
365
365
|
t.$$.on_destroy ? t.$$.on_destroy.push(...o) : we(o), t.$$.on_mount = [];
|
|
366
366
|
}), i.forEach(Ke);
|
|
367
367
|
}
|
|
@@ -370,9 +370,9 @@ function b(t, e) {
|
|
|
370
370
|
r.fragment !== null && (fn(r.after_update), we(r.on_destroy), r.fragment && r.fragment.d(e), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
371
371
|
}
|
|
372
372
|
function mn(t, e) {
|
|
373
|
-
t.$$.dirty[0] === -1 && (
|
|
373
|
+
t.$$.dirty[0] === -1 && (le.push(t), cn(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
374
374
|
}
|
|
375
|
-
function
|
|
375
|
+
function N(t, e, r, n, i, o, s = null, l = [-1]) {
|
|
376
376
|
const c = Ie;
|
|
377
377
|
he(t);
|
|
378
378
|
const a = t.$$ = {
|
|
@@ -399,8 +399,8 @@ function R(t, e, r, n, i, o, s = null, l = [-1]) {
|
|
|
399
399
|
s && s(a.root);
|
|
400
400
|
let f = !1;
|
|
401
401
|
if (a.ctx = r ? r(t, e.props || {}, (d, E, ...v) => {
|
|
402
|
-
const
|
|
403
|
-
return a.ctx && i(a.ctx[d], a.ctx[d] =
|
|
402
|
+
const A = v.length ? v[0] : E;
|
|
403
|
+
return a.ctx && i(a.ctx[d], a.ctx[d] = A) && (!a.skip_bound && a.bound[d] && a.bound[d](A), f && mn(t, d)), E;
|
|
404
404
|
}) : [], a.update(), f = !0, we(a.before_update), a.fragment = n ? n(a.ctx) : !1, e.target) {
|
|
405
405
|
if (e.hydrate) {
|
|
406
406
|
const d = tn(e.target);
|
|
@@ -420,7 +420,7 @@ class U {
|
|
|
420
420
|
*
|
|
421
421
|
* @type {any}
|
|
422
422
|
*/
|
|
423
|
-
|
|
423
|
+
M(this, "$$");
|
|
424
424
|
/**
|
|
425
425
|
* ### PRIVATE API
|
|
426
426
|
*
|
|
@@ -428,7 +428,7 @@ class U {
|
|
|
428
428
|
*
|
|
429
429
|
* @type {any}
|
|
430
430
|
*/
|
|
431
|
-
|
|
431
|
+
M(this, "$$set");
|
|
432
432
|
}
|
|
433
433
|
/** @returns {void} */
|
|
434
434
|
$destroy() {
|
|
@@ -441,7 +441,7 @@ class U {
|
|
|
441
441
|
* @returns {() => void}
|
|
442
442
|
*/
|
|
443
443
|
$on(e, r) {
|
|
444
|
-
if (!
|
|
444
|
+
if (!ae(r))
|
|
445
445
|
return B;
|
|
446
446
|
const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
447
447
|
return n.push(r), () => {
|
|
@@ -521,7 +521,7 @@ function Fe(t) {
|
|
|
521
521
|
}
|
|
522
522
|
};
|
|
523
523
|
}
|
|
524
|
-
function
|
|
524
|
+
function _n(t) {
|
|
525
525
|
let e = (
|
|
526
526
|
/*as*/
|
|
527
527
|
t[0]
|
|
@@ -531,7 +531,7 @@ function An(t) {
|
|
|
531
531
|
);
|
|
532
532
|
return {
|
|
533
533
|
c() {
|
|
534
|
-
i && i.c(), r =
|
|
534
|
+
i && i.c(), r = ee();
|
|
535
535
|
},
|
|
536
536
|
m(o, s) {
|
|
537
537
|
i && i.m(o, s), p(o, r, s), n = !0;
|
|
@@ -558,15 +558,15 @@ function An(t) {
|
|
|
558
558
|
}
|
|
559
559
|
};
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function An(t, e, r) {
|
|
562
562
|
let { $$slots: n = {}, $$scope: i } = e, { as: o = "section" } = e;
|
|
563
563
|
return t.$$set = (s) => {
|
|
564
564
|
"as" in s && r(0, o = s.as), "$$scope" in s && r(1, i = s.$$scope);
|
|
565
565
|
}, [o, i, n];
|
|
566
566
|
}
|
|
567
|
-
class
|
|
567
|
+
class ue extends U {
|
|
568
568
|
constructor(e) {
|
|
569
|
-
super(),
|
|
569
|
+
super(), N(this, e, An, _n, P, { as: 0 }, pn);
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
572
|
var j = /* @__PURE__ */ ((t) => (t[t.Silent = 0] = "Silent", t[t.Error = 1] = "Error", t[t.Warn = 2] = "Warn", t[t.Info = 3] = "Info", t[t.Debug = 4] = "Debug", t[t.Verbose = 5] = "Verbose", t))(j || {});
|
|
@@ -611,7 +611,7 @@ class V {
|
|
|
611
611
|
this.log(e, j.Verbose);
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
|
-
|
|
614
|
+
M(V, "logLevel", j.Silent);
|
|
615
615
|
var pe = /* @__PURE__ */ ((t) => (t.Year = "year", t.Month = "month", t.Week = "week", t.Day = "day", t))(pe || {});
|
|
616
616
|
function hn(t) {
|
|
617
617
|
const e = t.match(/^PT?([0-9]+)([MDYW])$/);
|
|
@@ -687,16 +687,16 @@ function In(t) {
|
|
|
687
687
|
t[0].currentPrice.amount,
|
|
688
688
|
/*productDetails*/
|
|
689
689
|
t[0].currentPrice.currency
|
|
690
|
-
) + "", E, v,
|
|
690
|
+
) + "", E, v, A, Q, h, y = nt(
|
|
691
691
|
/*productDetails*/
|
|
692
692
|
t[0].normalPeriodDuration
|
|
693
|
-
) + "", F, $, de, ve,
|
|
693
|
+
) + "", F, $, de, ve, ie;
|
|
694
694
|
return {
|
|
695
695
|
c() {
|
|
696
|
-
e = k("div"), r = k("span"), i =
|
|
696
|
+
e = k("div"), r = k("span"), i = R(n), o = T(), s = k("span"), c = R(l), f = R(a), E = R(d), v = T(), A = k("ul"), Q = k("li"), h = R("Billed "), F = R(y), $ = T(), de = k("li"), de.textContent = "Continues until canceled", ve = T(), ie = k("li"), ie.textContent = "Cancel anytime", _(s, "class", "rcb-product-price svelte-i5dq8q"), _(A, "class", "rcb-product-details svelte-i5dq8q"), _(e, "class", "rcb-pricing-info svelte-i5dq8q");
|
|
697
697
|
},
|
|
698
698
|
m(z, W) {
|
|
699
|
-
p(z, e, W), D(e, r), D(r, i), D(e, o), D(e, s), D(s, c), D(s, f), D(s, E), D(e, v), D(e,
|
|
699
|
+
p(z, e, W), D(e, r), D(r, i), D(e, o), D(e, s), D(s, c), D(s, f), D(s, E), D(e, v), D(e, A), D(A, Q), D(Q, h), D(Q, F), D(A, $), D(A, de), D(A, ve), D(A, ie);
|
|
700
700
|
},
|
|
701
701
|
p(z, W) {
|
|
702
702
|
W & /*productDetails*/
|
|
@@ -722,7 +722,7 @@ function In(t) {
|
|
|
722
722
|
}
|
|
723
723
|
function bn(t) {
|
|
724
724
|
let e, r;
|
|
725
|
-
return e = new
|
|
725
|
+
return e = new ue({
|
|
726
726
|
props: {
|
|
727
727
|
$$slots: { default: [In] },
|
|
728
728
|
$$scope: { ctx: t }
|
|
@@ -758,7 +758,7 @@ function wn(t, e, r) {
|
|
|
758
758
|
}
|
|
759
759
|
class Bt extends U {
|
|
760
760
|
constructor(e) {
|
|
761
|
-
super(),
|
|
761
|
+
super(), N(this, e, wn, bn, P, { productDetails: 0 }, En);
|
|
762
762
|
}
|
|
763
763
|
}
|
|
764
764
|
const kn = "data:image/gif;base64,R0lGODlhMgAyAPcBAAAAAAD/AAMDAwcHBxERERUVFSoqKi0tLTAwMDg4OD09PURERElJSUtLS1BQUFJSUlVVVVdXV1paWl9fX2NjY2ZmZmlpaWxsbG1tbXNzc3t7e39/f4GBgYKCgoSEhIaGhoeHh4iIiIuLi5KSkpSUlJaWlp2dnaGhoaOjo6SkpKWlpaenp6ioqKqqqqurq6ysrLCwsLGxsbS0tLa2tri4uLm5ub29vb6+vsDAwMHBwcLCwsXFxcjIyMnJyc3Nzc7OztPT09TU1NXV1dfX19nZ2dra2tvb29zc3N7e3uDg4OHh4eLi4uPj4+fn5+np6ezs7O7u7vDw8PHx8fLy8vPz8/X19fb29vj4+Pn5+fz8/P39/f7+/v///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFBAABACwAAAAAMgAyAIcAAAAA/wADAwMHBwcREREVFRUqKiotLS0wMDA4ODg9PT1ERERJSUlLS0tQUFBSUlJVVVVXV1daWlpfX19jY2NmZmZpaWlsbGxtbW1zc3N7e3t/f3+BgYGCgoKEhISGhoaHh4eIiIiLi4uSkpKUlJSWlpadnZ2hoaGjo6OkpKSlpaWnp6eoqKiqqqqrq6usrKywsLCxsbG0tLS2tra4uLi5ubm9vb2+vr7AwMDBwcHCwsLFxcXIyMjJycnNzc3Ozs7T09PU1NTV1dXX19fZ2dna2trb29vc3Nze3t7g4ODh4eHi4uLj4+Pn5+fp6ens7Ozu7u7w8PDx8fHy8vLz8/P19fX29vb4+Pj5+fn8/Pz9/f3+/v7///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8I/wCzcBFIcKDBgggPKkzIcCEXLlq4bIEokeLEiBcrYrTIcaNHjRobinQ4sqRCkBlTdtR44MBKlR9TmjQJQMBMkgZfdpwSMSYAACgpRtHpcSYSFUIa1mz448UQnAWDfmzSooUVmD9XVnnBwglMlDdvvMjhcOlCHit23CSqcUrVJiizpnTC4sXQmB1vZvmxwgYWhWYLznjRA+rJryqvxGhxxGNLjkVcwMCCN6ZeLkNevDCcRYYKJJfZptyCQwdiijl0CDxdlLPryw2lymY9WzTs17ijVq69mzbM28Bd8x7u23bu46F7i16uXEvw5ziJM5duGbl1k9OLN5cKvfvh7OC3b0jxTv6h+PDUy3unzl67R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KmQChRkGEMgPIiDDhoRYjTR56CPGwiooXN6oENQikhYsWP65MJXglx4sVMoZsJdikRosWOMYSRPJih9q3cOPKnWuRSxa7eO9O3cJFCxe+frdMDQgAIfkEBQUAAQAsBQADACAAEAAACKYAAwgcSLAgwQcODCpcyNDAAYYQAzhpaIDhFYY+NOBY6HAhkyETFRLZ0CGKQgMVDV4RAoQKQxMdUpx8aJAJECYQnWzYcMQgSoNVgAy5CHGGhhI+aRIkMgRnxCohNvQoiLDgEyFDskQUuINDiK1Hfpgc+ETKQi0nVGxNkkSrwCw/hiBxu7XuFidAhARpgqWu3yxIhgApEtLvVipIgARBYthvlKaNFQYEADs=";
|
|
@@ -766,7 +766,7 @@ function $n(t) {
|
|
|
766
766
|
let e, r;
|
|
767
767
|
return {
|
|
768
768
|
c() {
|
|
769
|
-
e = k("img"), X(e.src, r = kn) ||
|
|
769
|
+
e = k("img"), X(e.src, r = kn) || _(e, "src", r), _(e, "alt", "spinner");
|
|
770
770
|
},
|
|
771
771
|
m(n, i) {
|
|
772
772
|
p(n, e, i);
|
|
@@ -781,7 +781,7 @@ function $n(t) {
|
|
|
781
781
|
}
|
|
782
782
|
class vn extends U {
|
|
783
783
|
constructor(e) {
|
|
784
|
-
super(),
|
|
784
|
+
super(), N(this, e, null, $n, P, {});
|
|
785
785
|
}
|
|
786
786
|
}
|
|
787
787
|
function Bn(t) {
|
|
@@ -791,7 +791,7 @@ function yn(t) {
|
|
|
791
791
|
let e, r, n;
|
|
792
792
|
return r = new vn({}), {
|
|
793
793
|
c() {
|
|
794
|
-
e = k("div"), w(r.$$.fragment),
|
|
794
|
+
e = k("div"), w(r.$$.fragment), _(e, "class", "rcb-modal-loader svelte-1mxx341");
|
|
795
795
|
},
|
|
796
796
|
m(i, o) {
|
|
797
797
|
p(i, e, o), I(r, e, null), n = !0;
|
|
@@ -810,10 +810,10 @@ function yn(t) {
|
|
|
810
810
|
}
|
|
811
811
|
class je extends U {
|
|
812
812
|
constructor(e) {
|
|
813
|
-
super(),
|
|
813
|
+
super(), N(this, e, null, yn, P, {}, Bn);
|
|
814
814
|
}
|
|
815
815
|
}
|
|
816
|
-
var
|
|
816
|
+
var _e = /* @__PURE__ */ ((t) => (t.Started = "started", t.InProgress = "in_progress", t.Succeeded = "succeeded", t.Failed = "failed", t))(_e || {}), Me = /* @__PURE__ */ ((t) => (t[t.SetupIntentCreationFailed = 1] = "SetupIntentCreationFailed", t[t.PaymentMethodCreationFailed = 2] = "PaymentMethodCreationFailed", t[t.PaymentChargeFailed = 3] = "PaymentChargeFailed", t))(Me || {}), S = /* @__PURE__ */ ((t) => (t[t.ErrorSettingUpPurchase = 0] = "ErrorSettingUpPurchase", t[t.ErrorChargingPayment = 1] = "ErrorChargingPayment", t[t.UnknownError = 2] = "UnknownError", t[t.NetworkError = 3] = "NetworkError", t[t.StripeError = 4] = "StripeError", t[t.MissingEmailError = 5] = "MissingEmailError", t))(S || {});
|
|
817
817
|
class G extends Error {
|
|
818
818
|
constructor(e, r, n) {
|
|
819
819
|
super(r), this.errorCode = e, this.underlyingErrorMessage = n;
|
|
@@ -821,10 +821,10 @@ class G extends Error {
|
|
|
821
821
|
}
|
|
822
822
|
class Dn {
|
|
823
823
|
constructor(e, r = 10) {
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
824
|
+
M(this, "operationSessionId", null);
|
|
825
|
+
M(this, "backend");
|
|
826
|
+
M(this, "maxNumberAttempts");
|
|
827
|
+
M(this, "waitMSBetweenAttempts", 1e3);
|
|
828
828
|
this.backend = e, this.maxNumberAttempts = r;
|
|
829
829
|
}
|
|
830
830
|
async startPurchase(e, r, n, i) {
|
|
@@ -856,17 +856,17 @@ class Dn {
|
|
|
856
856
|
}
|
|
857
857
|
this.backend.getCheckoutStatus(e).then((s) => {
|
|
858
858
|
switch (s.operation.status) {
|
|
859
|
-
case
|
|
860
|
-
case
|
|
859
|
+
case _e.Started:
|
|
860
|
+
case _e.InProgress:
|
|
861
861
|
setTimeout(
|
|
862
862
|
() => i(o + 1),
|
|
863
863
|
this.waitMSBetweenAttempts
|
|
864
864
|
);
|
|
865
865
|
break;
|
|
866
|
-
case
|
|
866
|
+
case _e.Succeeded:
|
|
867
867
|
this.clearPurchaseInProgress(), r();
|
|
868
868
|
return;
|
|
869
|
-
case
|
|
869
|
+
case _e.Failed:
|
|
870
870
|
this.clearPurchaseInProgress(), this.handlePaymentError(
|
|
871
871
|
s.operation.error,
|
|
872
872
|
n
|
|
@@ -898,7 +898,7 @@ class Dn {
|
|
|
898
898
|
return;
|
|
899
899
|
}
|
|
900
900
|
switch (e.code) {
|
|
901
|
-
case
|
|
901
|
+
case Me.SetupIntentCreationFailed:
|
|
902
902
|
r(
|
|
903
903
|
new G(
|
|
904
904
|
0,
|
|
@@ -906,7 +906,7 @@ class Dn {
|
|
|
906
906
|
)
|
|
907
907
|
);
|
|
908
908
|
return;
|
|
909
|
-
case
|
|
909
|
+
case Me.PaymentMethodCreationFailed:
|
|
910
910
|
r(
|
|
911
911
|
new G(
|
|
912
912
|
0,
|
|
@@ -914,7 +914,7 @@ class Dn {
|
|
|
914
914
|
)
|
|
915
915
|
);
|
|
916
916
|
return;
|
|
917
|
-
case
|
|
917
|
+
case Me.PaymentChargeFailed:
|
|
918
918
|
r(
|
|
919
919
|
new G(
|
|
920
920
|
1,
|
|
@@ -925,15 +925,15 @@ class Dn {
|
|
|
925
925
|
}
|
|
926
926
|
}
|
|
927
927
|
}
|
|
928
|
-
const
|
|
929
|
-
function
|
|
928
|
+
const Cn = "data:image/svg+xml,%3csvg%20width='124'%20height='124'%20viewBox='0%200%20124%20124'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='62'%20cy='62'%20r='62'%20fill='%23767676'/%3e%3cpath%20d='M87.6668%2041.504L82.4968%2036.334L62.0002%2056.8307L41.5035%2036.334L36.3335%2041.504L56.8302%2062.0006L36.3335%2082.4973L41.5035%2087.6673L62.0002%2067.1706L82.4968%2087.6673L87.6668%2082.4973L67.1702%2062.0006L87.6668%2041.504Z'%20fill='white'/%3e%3c/svg%3e";
|
|
929
|
+
function Qn(t) {
|
|
930
930
|
O(t, "svelte-1609h93", "img.svelte-1609h93{width:124px;height:124px;margin:0 auto}");
|
|
931
931
|
}
|
|
932
|
-
function
|
|
932
|
+
function Mn(t) {
|
|
933
933
|
let e, r;
|
|
934
934
|
return {
|
|
935
935
|
c() {
|
|
936
|
-
e = k("img"), X(e.src, r =
|
|
936
|
+
e = k("img"), X(e.src, r = Cn) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon svelte-1609h93");
|
|
937
937
|
},
|
|
938
938
|
m(n, i) {
|
|
939
939
|
p(n, e, i);
|
|
@@ -948,13 +948,13 @@ function Cn(t) {
|
|
|
948
948
|
}
|
|
949
949
|
class Pn extends U {
|
|
950
950
|
constructor(e) {
|
|
951
|
-
super(),
|
|
951
|
+
super(), N(this, e, null, Mn, P, {}, Qn);
|
|
952
952
|
}
|
|
953
953
|
}
|
|
954
954
|
function Tn(t) {
|
|
955
955
|
O(t, "svelte-1rmxk7q", "button.svelte-1rmxk7q{border:none;border-radius:56px;font-size:16px;cursor:pointer;height:56px;color:var(--rc-color-grey-text-dark);background-color:var(--rc-color-grey-ui-dark);display:flex;align-items:center;justify-content:center}button.intent-primary.svelte-1rmxk7q{background-color:var(--rc-color-grey-text-dark);color:var(--rc-color-white);font-size:16px}button.svelte-1rmxk7q:disabled{color:var(--rc-color-grey-text-light)}button.intent-primary.svelte-1rmxk7q:disabled{color:var(--rc-color-grey-text-light)}");
|
|
956
956
|
}
|
|
957
|
-
function
|
|
957
|
+
function Nn(t) {
|
|
958
958
|
let e, r, n, i, o;
|
|
959
959
|
const s = (
|
|
960
960
|
/*#slots*/
|
|
@@ -968,7 +968,7 @@ function Rn(t) {
|
|
|
968
968
|
);
|
|
969
969
|
return {
|
|
970
970
|
c() {
|
|
971
|
-
e = k("button"), l && l.c(),
|
|
971
|
+
e = k("button"), l && l.c(), _(e, "class", r = Ee(`intent-${/*intent*/
|
|
972
972
|
t[0]}`) + " svelte-1rmxk7q"), e.disabled = /*disabled*/
|
|
973
973
|
t[1];
|
|
974
974
|
},
|
|
@@ -1001,7 +1001,7 @@ function Rn(t) {
|
|
|
1001
1001
|
null
|
|
1002
1002
|
), (!n || a & /*intent*/
|
|
1003
1003
|
1 && r !== (r = Ee(`intent-${/*intent*/
|
|
1004
|
-
c[0]}`) + " svelte-1rmxk7q")) &&
|
|
1004
|
+
c[0]}`) + " svelte-1rmxk7q")) && _(e, "class", r), (!n || a & /*disabled*/
|
|
1005
1005
|
2) && (e.disabled = /*disabled*/
|
|
1006
1006
|
c[1]);
|
|
1007
1007
|
},
|
|
@@ -1027,10 +1027,10 @@ function Un(t, e, r) {
|
|
|
1027
1027
|
}
|
|
1028
1028
|
class be extends U {
|
|
1029
1029
|
constructor(e) {
|
|
1030
|
-
super(),
|
|
1030
|
+
super(), N(this, e, Un, Nn, P, { intent: 0, disabled: 1 }, Tn);
|
|
1031
1031
|
}
|
|
1032
1032
|
}
|
|
1033
|
-
function
|
|
1033
|
+
function Rn(t) {
|
|
1034
1034
|
O(t, "svelte-1f9z0o8", "footer.svelte-1f9z0o8{display:flex;flex-direction:column}");
|
|
1035
1035
|
}
|
|
1036
1036
|
function Sn(t) {
|
|
@@ -1047,7 +1047,7 @@ function Sn(t) {
|
|
|
1047
1047
|
);
|
|
1048
1048
|
return {
|
|
1049
1049
|
c() {
|
|
1050
|
-
e = k("footer"), i && i.c(),
|
|
1050
|
+
e = k("footer"), i && i.c(), _(e, "class", "rcb-modal-footer svelte-1f9z0o8");
|
|
1051
1051
|
},
|
|
1052
1052
|
m(o, s) {
|
|
1053
1053
|
p(o, e, s), i && i.m(e, null), r = !0;
|
|
@@ -1092,7 +1092,7 @@ function On(t, e, r) {
|
|
|
1092
1092
|
}
|
|
1093
1093
|
class Je extends U {
|
|
1094
1094
|
constructor(e) {
|
|
1095
|
-
super(),
|
|
1095
|
+
super(), N(this, e, On, Sn, P, {}, Rn);
|
|
1096
1096
|
}
|
|
1097
1097
|
}
|
|
1098
1098
|
function Ln(t) {
|
|
@@ -1112,7 +1112,7 @@ function xn(t) {
|
|
|
1112
1112
|
);
|
|
1113
1113
|
return {
|
|
1114
1114
|
c() {
|
|
1115
|
-
e = k("div"), o && o.c(),
|
|
1115
|
+
e = k("div"), o && o.c(), _(e, "class", "column svelte-6o8e90"), _(e, "style", r = `--gap:${/*gutter*/
|
|
1116
1116
|
t[0]};`);
|
|
1117
1117
|
},
|
|
1118
1118
|
m(s, l) {
|
|
@@ -1139,7 +1139,7 @@ function xn(t) {
|
|
|
1139
1139
|
null
|
|
1140
1140
|
), (!n || l & /*gutter*/
|
|
1141
1141
|
1 && r !== (r = `--gap:${/*gutter*/
|
|
1142
|
-
s[0]};`)) &&
|
|
1142
|
+
s[0]};`)) && _(e, "style", r);
|
|
1143
1143
|
},
|
|
1144
1144
|
i(s) {
|
|
1145
1145
|
n || (u(o, s), n = !0);
|
|
@@ -1160,7 +1160,7 @@ function Fn(t, e, r) {
|
|
|
1160
1160
|
}
|
|
1161
1161
|
class $e extends U {
|
|
1162
1162
|
constructor(e) {
|
|
1163
|
-
super(),
|
|
1163
|
+
super(), N(this, e, Fn, xn, P, { gutter: 0 }, Ln);
|
|
1164
1164
|
}
|
|
1165
1165
|
}
|
|
1166
1166
|
const Gn = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='mdi_close'%3e%3cpath%20id='Vector'%20d='M19%206.41L17.59%205L12%2010.59L6.41%205L5%206.41L10.59%2012L5%2017.59L6.41%2019L12%2013.41L17.59%2019L19%2017.59L13.41%2012L19%206.41Z'%20fill='%23767676'/%3e%3c/g%3e%3c/svg%3e";
|
|
@@ -1171,7 +1171,7 @@ function Hn(t) {
|
|
|
1171
1171
|
let e, r, n, i, o;
|
|
1172
1172
|
return {
|
|
1173
1173
|
c() {
|
|
1174
|
-
e = k("button"), r = k("img"), X(r.src, n = Gn) ||
|
|
1174
|
+
e = k("button"), r = k("img"), X(r.src, n = Gn) || _(r, "src", n), _(r, "alt", "close"), _(e, "class", "close-button svelte-14xreta"), e.disabled = /*disabled*/
|
|
1175
1175
|
t[0];
|
|
1176
1176
|
},
|
|
1177
1177
|
m(s, l) {
|
|
@@ -1205,7 +1205,7 @@ function Kn(t, e, r) {
|
|
|
1205
1205
|
}
|
|
1206
1206
|
class qn extends U {
|
|
1207
1207
|
constructor(e) {
|
|
1208
|
-
super(),
|
|
1208
|
+
super(), N(this, e, Kn, Hn, P, { disabled: 0 }, Yn);
|
|
1209
1209
|
}
|
|
1210
1210
|
}
|
|
1211
1211
|
function jn(t) {
|
|
@@ -1215,7 +1215,7 @@ function Jn(t) {
|
|
|
1215
1215
|
let e;
|
|
1216
1216
|
return {
|
|
1217
1217
|
c() {
|
|
1218
|
-
e = k("div"),
|
|
1218
|
+
e = k("div"), _(e, "class", "rcb-app-icon loading svelte-44qpq9");
|
|
1219
1219
|
},
|
|
1220
1220
|
m(r, n) {
|
|
1221
1221
|
p(r, e, n);
|
|
@@ -1230,9 +1230,9 @@ function Vn(t) {
|
|
|
1230
1230
|
let e, r, n, i, o, s;
|
|
1231
1231
|
return {
|
|
1232
1232
|
c() {
|
|
1233
|
-
e = k("picture"), r = k("source"), i = T(), o = k("img"),
|
|
1234
|
-
t[1]) ||
|
|
1235
|
-
t[0]) ||
|
|
1233
|
+
e = k("picture"), r = k("source"), i = T(), o = k("img"), _(r, "type", "image/webp"), qt(r, n = /*srcWebp*/
|
|
1234
|
+
t[1]) || _(r, "srcset", n), _(o, "class", "rcb-app-icon svelte-44qpq9"), X(o.src, s = /*src*/
|
|
1235
|
+
t[0]) || _(o, "src", s), _(o, "alt", "App icon"), _(e, "class", "rcb-app-icon-picture-container svelte-44qpq9");
|
|
1236
1236
|
},
|
|
1237
1237
|
m(l, c) {
|
|
1238
1238
|
p(l, e, c), D(e, r), D(e, i), D(e, o);
|
|
@@ -1240,9 +1240,9 @@ function Vn(t) {
|
|
|
1240
1240
|
p(l, c) {
|
|
1241
1241
|
c & /*srcWebp*/
|
|
1242
1242
|
2 && n !== (n = /*srcWebp*/
|
|
1243
|
-
l[1]) &&
|
|
1243
|
+
l[1]) && _(r, "srcset", n), c & /*src*/
|
|
1244
1244
|
1 && !X(o.src, s = /*src*/
|
|
1245
|
-
l[0]) &&
|
|
1245
|
+
l[0]) && _(o, "src", s);
|
|
1246
1246
|
},
|
|
1247
1247
|
d(l) {
|
|
1248
1248
|
l && g(e);
|
|
@@ -1260,7 +1260,7 @@ function Wn(t) {
|
|
|
1260
1260
|
let n = r(t), i = n(t);
|
|
1261
1261
|
return {
|
|
1262
1262
|
c() {
|
|
1263
|
-
i.c(), e =
|
|
1263
|
+
i.c(), e = ee();
|
|
1264
1264
|
},
|
|
1265
1265
|
m(o, s) {
|
|
1266
1266
|
i.m(o, s), p(o, e, s);
|
|
@@ -1283,7 +1283,7 @@ function zn(t, e, r) {
|
|
|
1283
1283
|
}
|
|
1284
1284
|
class yt extends U {
|
|
1285
1285
|
constructor(e) {
|
|
1286
|
-
super(),
|
|
1286
|
+
super(), N(this, e, zn, Wn, P, { src: 0, srcWebp: 1 }, jn);
|
|
1287
1287
|
}
|
|
1288
1288
|
}
|
|
1289
1289
|
const ye = (t) => `https://da08ctfrofx1b.cloudfront.net/${t}`;
|
|
@@ -1322,7 +1322,7 @@ function er(t) {
|
|
|
1322
1322
|
);
|
|
1323
1323
|
return {
|
|
1324
1324
|
c() {
|
|
1325
|
-
s && s.c(), e = T(), r = k("span"), i =
|
|
1325
|
+
s && s.c(), e = T(), r = k("span"), i = R(n), _(r, "class", "app-title svelte-10uf5fq");
|
|
1326
1326
|
},
|
|
1327
1327
|
m(l, c) {
|
|
1328
1328
|
s && s.m(l, c), p(l, e, c), p(l, r, c), D(r, i), o = !0;
|
|
@@ -1402,7 +1402,7 @@ function tr(t) {
|
|
|
1402
1402
|
}
|
|
1403
1403
|
return r = l(t), n = s[r] = o[r](t), {
|
|
1404
1404
|
c() {
|
|
1405
|
-
e = k("div"), n.c(),
|
|
1405
|
+
e = k("div"), n.c(), _(e, "class", "rcb-header-layout__business-info svelte-10uf5fq");
|
|
1406
1406
|
},
|
|
1407
1407
|
m(c, a) {
|
|
1408
1408
|
p(c, e, a), s[r].m(e, null), i = !0;
|
|
@@ -1432,7 +1432,7 @@ function nr(t, e, r) {
|
|
|
1432
1432
|
}
|
|
1433
1433
|
class Dt extends U {
|
|
1434
1434
|
constructor(e) {
|
|
1435
|
-
super(),
|
|
1435
|
+
super(), N(this, e, nr, tr, P, { brandingInfo: 0 }, Xn);
|
|
1436
1436
|
}
|
|
1437
1437
|
}
|
|
1438
1438
|
function rr(t) {
|
|
@@ -1446,13 +1446,13 @@ function ir(t) {
|
|
|
1446
1446
|
t[0]
|
|
1447
1447
|
) }
|
|
1448
1448
|
}), i = new qn({}), i.$on("click", function() {
|
|
1449
|
-
|
|
1449
|
+
ae(
|
|
1450
1450
|
/*onClose*/
|
|
1451
1451
|
t[1]
|
|
1452
1452
|
) && t[1].apply(this, arguments);
|
|
1453
1453
|
}), {
|
|
1454
1454
|
c() {
|
|
1455
|
-
e = k("div"), w(r.$$.fragment), n = T(), w(i.$$.fragment),
|
|
1455
|
+
e = k("div"), w(r.$$.fragment), n = T(), w(i.$$.fragment), _(e, "class", "rcb-post-purchase-header-layout svelte-17puakv");
|
|
1456
1456
|
},
|
|
1457
1457
|
m(s, l) {
|
|
1458
1458
|
p(s, e, l), I(r, e, null), D(e, n), I(i, e, null), o = !0;
|
|
@@ -1477,7 +1477,7 @@ function ir(t) {
|
|
|
1477
1477
|
}
|
|
1478
1478
|
function or(t) {
|
|
1479
1479
|
let e, r;
|
|
1480
|
-
return e = new
|
|
1480
|
+
return e = new ue({
|
|
1481
1481
|
props: {
|
|
1482
1482
|
as: "header",
|
|
1483
1483
|
$$slots: { default: [ir] },
|
|
@@ -1514,7 +1514,7 @@ function sr(t, e, r) {
|
|
|
1514
1514
|
}
|
|
1515
1515
|
class lr extends U {
|
|
1516
1516
|
constructor(e) {
|
|
1517
|
-
super(),
|
|
1517
|
+
super(), N(this, e, sr, or, P, { brandingInfo: 0, onClose: 1 }, rr);
|
|
1518
1518
|
}
|
|
1519
1519
|
}
|
|
1520
1520
|
function cr(t) {
|
|
@@ -1535,10 +1535,10 @@ function ur(t) {
|
|
|
1535
1535
|
);
|
|
1536
1536
|
return {
|
|
1537
1537
|
c() {
|
|
1538
|
-
e = k("span"), r =
|
|
1538
|
+
e = k("span"), r = R(
|
|
1539
1539
|
/*title*/
|
|
1540
1540
|
t[2]
|
|
1541
|
-
), n = T(), i = k("span"), l && l.c(),
|
|
1541
|
+
), n = T(), i = k("span"), l && l.c(), _(e, "class", "title svelte-10pcqja"), _(i, "class", "subtitle svelte-10pcqja");
|
|
1542
1542
|
},
|
|
1543
1543
|
m(c, a) {
|
|
1544
1544
|
p(c, e, a), D(e, r), p(c, n, a), p(c, i, a), l && l.m(i, null), o = !0;
|
|
@@ -1650,7 +1650,7 @@ function dr(t) {
|
|
|
1650
1650
|
}
|
|
1651
1651
|
}), {
|
|
1652
1652
|
c() {
|
|
1653
|
-
e = k("div"), w(r.$$.fragment),
|
|
1653
|
+
e = k("div"), w(r.$$.fragment), _(e, "class", "rcb-modal-message svelte-10pcqja"), _(
|
|
1654
1654
|
e,
|
|
1655
1655
|
"data-type",
|
|
1656
1656
|
/*type*/
|
|
@@ -1664,7 +1664,7 @@ function dr(t) {
|
|
|
1664
1664
|
const s = {};
|
|
1665
1665
|
o & /*$$scope, title*/
|
|
1666
1666
|
36 && (s.$$scope = { dirty: o, ctx: i }), r.$set(s), (!n || o & /*type*/
|
|
1667
|
-
8) &&
|
|
1667
|
+
8) && _(
|
|
1668
1668
|
e,
|
|
1669
1669
|
"data-type",
|
|
1670
1670
|
/*type*/
|
|
@@ -1686,7 +1686,7 @@ function mr(t) {
|
|
|
1686
1686
|
let e;
|
|
1687
1687
|
return {
|
|
1688
1688
|
c() {
|
|
1689
|
-
e =
|
|
1689
|
+
e = R("Go back to app");
|
|
1690
1690
|
},
|
|
1691
1691
|
m(r, n) {
|
|
1692
1692
|
p(r, e, n);
|
|
@@ -1704,7 +1704,7 @@ function gr(t) {
|
|
|
1704
1704
|
$$scope: { ctx: t }
|
|
1705
1705
|
}
|
|
1706
1706
|
}), e.$on("click", function() {
|
|
1707
|
-
|
|
1707
|
+
ae(
|
|
1708
1708
|
/*onContinue*/
|
|
1709
1709
|
t[1]
|
|
1710
1710
|
) && t[1].apply(this, arguments);
|
|
@@ -1745,7 +1745,7 @@ function pr(t) {
|
|
|
1745
1745
|
t[1]
|
|
1746
1746
|
)
|
|
1747
1747
|
}
|
|
1748
|
-
}), n = new
|
|
1748
|
+
}), n = new ue({
|
|
1749
1749
|
props: {
|
|
1750
1750
|
$$slots: { default: [dr] },
|
|
1751
1751
|
$$scope: { ctx: t }
|
|
@@ -1787,7 +1787,7 @@ function pr(t) {
|
|
|
1787
1787
|
}
|
|
1788
1788
|
};
|
|
1789
1789
|
}
|
|
1790
|
-
function
|
|
1790
|
+
function _r(t) {
|
|
1791
1791
|
let e, r;
|
|
1792
1792
|
return e = new $e({
|
|
1793
1793
|
props: {
|
|
@@ -1818,19 +1818,19 @@ function Ar(t) {
|
|
|
1818
1818
|
}
|
|
1819
1819
|
};
|
|
1820
1820
|
}
|
|
1821
|
-
function
|
|
1821
|
+
function Ar(t, e, r) {
|
|
1822
1822
|
let { $$slots: n = {}, $$scope: i } = e, { brandingInfo: o = null } = e, { onContinue: s } = e, { title: l } = e, { type: c } = e;
|
|
1823
1823
|
return t.$$set = (a) => {
|
|
1824
1824
|
"brandingInfo" in a && r(0, o = a.brandingInfo), "onContinue" in a && r(1, s = a.onContinue), "title" in a && r(2, l = a.title), "type" in a && r(3, c = a.type), "$$scope" in a && r(5, i = a.$$scope);
|
|
1825
1825
|
}, [o, s, l, c, n, i];
|
|
1826
1826
|
}
|
|
1827
|
-
class
|
|
1827
|
+
class Ct extends U {
|
|
1828
1828
|
constructor(e) {
|
|
1829
|
-
super(),
|
|
1829
|
+
super(), N(
|
|
1830
1830
|
this,
|
|
1831
1831
|
e,
|
|
1832
|
-
_r,
|
|
1833
1832
|
Ar,
|
|
1833
|
+
_r,
|
|
1834
1834
|
P,
|
|
1835
1835
|
{
|
|
1836
1836
|
brandingInfo: 0,
|
|
@@ -1846,10 +1846,10 @@ function ot(t) {
|
|
|
1846
1846
|
let e, r, n, i, o;
|
|
1847
1847
|
return {
|
|
1848
1848
|
c() {
|
|
1849
|
-
e =
|
|
1849
|
+
e = R("If this error persists, please contact "), r = k("a"), n = R(
|
|
1850
1850
|
/*supportEmail*/
|
|
1851
1851
|
t[1]
|
|
1852
|
-
), o =
|
|
1852
|
+
), o = R("."), _(r, "href", i = "mailto:" + /*supportEmail*/
|
|
1853
1853
|
t[1]);
|
|
1854
1854
|
},
|
|
1855
1855
|
m(s, l) {
|
|
@@ -1863,7 +1863,7 @@ function ot(t) {
|
|
|
1863
1863
|
s[1]
|
|
1864
1864
|
), l & /*supportEmail*/
|
|
1865
1865
|
2 && i !== (i = "mailto:" + /*supportEmail*/
|
|
1866
|
-
s[1]) &&
|
|
1866
|
+
s[1]) && _(r, "href", i);
|
|
1867
1867
|
},
|
|
1868
1868
|
d(s) {
|
|
1869
1869
|
s && (g(e), g(r), g(o));
|
|
@@ -1880,7 +1880,7 @@ function hr(t) {
|
|
|
1880
1880
|
);
|
|
1881
1881
|
return {
|
|
1882
1882
|
c() {
|
|
1883
|
-
r =
|
|
1883
|
+
r = R(e), n = T(), o && o.c(), i = ee();
|
|
1884
1884
|
},
|
|
1885
1885
|
m(s, l) {
|
|
1886
1886
|
p(s, r, l), p(s, n, l), o && o.m(s, l), p(s, i, l);
|
|
@@ -1917,7 +1917,7 @@ function Er(t) {
|
|
|
1917
1917
|
}
|
|
1918
1918
|
function Ir(t) {
|
|
1919
1919
|
let e, r;
|
|
1920
|
-
return e = new
|
|
1920
|
+
return e = new Ct({
|
|
1921
1921
|
props: {
|
|
1922
1922
|
title: "Something went wrong",
|
|
1923
1923
|
brandingInfo: (
|
|
@@ -1990,7 +1990,7 @@ function br(t, e, r) {
|
|
|
1990
1990
|
}
|
|
1991
1991
|
class wr extends U {
|
|
1992
1992
|
constructor(e) {
|
|
1993
|
-
super(),
|
|
1993
|
+
super(), N(this, e, br, Ir, P, {
|
|
1994
1994
|
brandingInfo: 0,
|
|
1995
1995
|
lastError: 4,
|
|
1996
1996
|
supportEmail: 1,
|
|
@@ -2006,7 +2006,7 @@ function vr(t) {
|
|
|
2006
2006
|
let e, r;
|
|
2007
2007
|
return {
|
|
2008
2008
|
c() {
|
|
2009
|
-
e = k("img"), X(e.src, r = kr) ||
|
|
2009
|
+
e = k("img"), X(e.src, r = kr) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon svelte-1609h93");
|
|
2010
2010
|
},
|
|
2011
2011
|
m(n, i) {
|
|
2012
2012
|
p(n, e, i);
|
|
@@ -2021,14 +2021,14 @@ function vr(t) {
|
|
|
2021
2021
|
}
|
|
2022
2022
|
class Br extends U {
|
|
2023
2023
|
constructor(e) {
|
|
2024
|
-
super(),
|
|
2024
|
+
super(), N(this, e, null, vr, P, {}, $r);
|
|
2025
2025
|
}
|
|
2026
2026
|
}
|
|
2027
2027
|
function yr(t) {
|
|
2028
2028
|
let e;
|
|
2029
2029
|
return {
|
|
2030
2030
|
c() {
|
|
2031
|
-
e =
|
|
2031
|
+
e = R("Your plan is now active.");
|
|
2032
2032
|
},
|
|
2033
2033
|
m(r, n) {
|
|
2034
2034
|
p(r, e, n);
|
|
@@ -2059,9 +2059,9 @@ function Dr(t) {
|
|
|
2059
2059
|
}
|
|
2060
2060
|
};
|
|
2061
2061
|
}
|
|
2062
|
-
function
|
|
2062
|
+
function Cr(t) {
|
|
2063
2063
|
let e, r;
|
|
2064
|
-
return e = new
|
|
2064
|
+
return e = new Ct({
|
|
2065
2065
|
props: {
|
|
2066
2066
|
type: "success",
|
|
2067
2067
|
title: "Purchase successful",
|
|
@@ -2106,15 +2106,15 @@ function Qr(t) {
|
|
|
2106
2106
|
}
|
|
2107
2107
|
};
|
|
2108
2108
|
}
|
|
2109
|
-
function
|
|
2109
|
+
function Qr(t, e, r) {
|
|
2110
2110
|
let { brandingInfo: n = null } = e, { onContinue: i } = e;
|
|
2111
2111
|
return t.$$set = (o) => {
|
|
2112
2112
|
"brandingInfo" in o && r(0, n = o.brandingInfo), "onContinue" in o && r(1, i = o.onContinue);
|
|
2113
2113
|
}, [n, i];
|
|
2114
2114
|
}
|
|
2115
|
-
class
|
|
2115
|
+
class Mr extends U {
|
|
2116
2116
|
constructor(e) {
|
|
2117
|
-
super(),
|
|
2117
|
+
super(), N(this, e, Qr, Cr, P, { brandingInfo: 0, onContinue: 1 });
|
|
2118
2118
|
}
|
|
2119
2119
|
}
|
|
2120
2120
|
function Pr(t, e, r, n, i = {}) {
|
|
@@ -2122,7 +2122,7 @@ function Pr(t, e, r, n, i = {}) {
|
|
|
2122
2122
|
return o.mount(t), o.on("change", (s) => n("change", s)), o.on("ready", (s) => n("ready", s)), o.on("focus", (s) => n("focus", s)), o.on("blur", (s) => n("blur", s)), o.on("escape", (s) => n("escape", s)), o.on("click", (s) => n("click", s)), o.on("loaderror", (s) => n("loaderror", s)), o.on("loaderstart", (s) => n("loaderstart", s)), o.on("networkschange", (s) => n("networkschange", s)), o;
|
|
2123
2123
|
}
|
|
2124
2124
|
const Tr = typeof window > "u";
|
|
2125
|
-
function
|
|
2125
|
+
function Nr(t) {
|
|
2126
2126
|
if (!Tr)
|
|
2127
2127
|
return t.registerAppInfo({
|
|
2128
2128
|
name: "svelte-stripe-js",
|
|
@@ -2146,7 +2146,7 @@ function Ur(t) {
|
|
|
2146
2146
|
}
|
|
2147
2147
|
};
|
|
2148
2148
|
}
|
|
2149
|
-
function
|
|
2149
|
+
function Rr(t, e, r) {
|
|
2150
2150
|
let n, i;
|
|
2151
2151
|
const o = rn(), { elements: s } = sn("stripe");
|
|
2152
2152
|
let { options: l = void 0 } = e;
|
|
@@ -2164,7 +2164,7 @@ function Nr(t, e, r) {
|
|
|
2164
2164
|
n.focus();
|
|
2165
2165
|
}
|
|
2166
2166
|
function E(v) {
|
|
2167
|
-
|
|
2167
|
+
Ne[v ? "unshift" : "push"](() => {
|
|
2168
2168
|
i = v, r(0, i);
|
|
2169
2169
|
});
|
|
2170
2170
|
}
|
|
@@ -2174,7 +2174,7 @@ function Nr(t, e, r) {
|
|
|
2174
2174
|
}
|
|
2175
2175
|
class Sr extends U {
|
|
2176
2176
|
constructor(e) {
|
|
2177
|
-
super(),
|
|
2177
|
+
super(), N(this, e, Rr, Ur, P, {
|
|
2178
2178
|
options: 1,
|
|
2179
2179
|
blur: 2,
|
|
2180
2180
|
clear: 3,
|
|
@@ -2254,7 +2254,7 @@ function Or(t) {
|
|
|
2254
2254
|
);
|
|
2255
2255
|
return {
|
|
2256
2256
|
c() {
|
|
2257
|
-
n && n.c(), e =
|
|
2257
|
+
n && n.c(), e = ee();
|
|
2258
2258
|
},
|
|
2259
2259
|
m(i, o) {
|
|
2260
2260
|
n && n.m(i, o), p(i, e, o), r = !0;
|
|
@@ -2279,23 +2279,23 @@ function Or(t) {
|
|
|
2279
2279
|
};
|
|
2280
2280
|
}
|
|
2281
2281
|
function Lr(t, e, r) {
|
|
2282
|
-
let n, { $$slots: i = {}, $$scope: o } = e, { stripe: s } = e, { mode: l = void 0 } = e, { theme: c = "stripe" } = e, { variables: a = {} } = e, { rules: f = {} } = e, { labels: d = "above" } = e, { loader: E = "auto" } = e, { fonts: v = [] } = e, { locale:
|
|
2282
|
+
let n, { $$slots: i = {}, $$scope: o } = e, { stripe: s } = e, { mode: l = void 0 } = e, { theme: c = "stripe" } = e, { variables: a = {} } = e, { rules: f = {} } = e, { labels: d = "above" } = e, { loader: E = "auto" } = e, { fonts: v = [] } = e, { locale: A = "auto" } = e, { currency: Q = void 0 } = e, { amount: h = void 0 } = e, { clientSecret: y = void 0 } = e, { elements: F = null } = e;
|
|
2283
2283
|
return t.$$set = ($) => {
|
|
2284
|
-
"stripe" in $ && r(1, s = $.stripe), "mode" in $ && r(2, l = $.mode), "theme" in $ && r(3, c = $.theme), "variables" in $ && r(4, a = $.variables), "rules" in $ && r(5, f = $.rules), "labels" in $ && r(6, d = $.labels), "loader" in $ && r(7, E = $.loader), "fonts" in $ && r(8, v = $.fonts), "locale" in $ && r(9,
|
|
2284
|
+
"stripe" in $ && r(1, s = $.stripe), "mode" in $ && r(2, l = $.mode), "theme" in $ && r(3, c = $.theme), "variables" in $ && r(4, a = $.variables), "rules" in $ && r(5, f = $.rules), "labels" in $ && r(6, d = $.labels), "loader" in $ && r(7, E = $.loader), "fonts" in $ && r(8, v = $.fonts), "locale" in $ && r(9, A = $.locale), "currency" in $ && r(10, Q = $.currency), "amount" in $ && r(11, h = $.amount), "clientSecret" in $ && r(12, y = $.clientSecret), "elements" in $ && r(0, F = $.elements), "$$scope" in $ && r(14, o = $.$$scope);
|
|
2285
2285
|
}, t.$$.update = () => {
|
|
2286
2286
|
t.$$.dirty & /*theme, variables, rules, labels*/
|
|
2287
2287
|
120 && r(13, n = { theme: c, variables: a, rules: f, labels: d }), t.$$.dirty & /*stripe, elements, mode, currency, amount, appearance, clientSecret, fonts, loader, locale*/
|
|
2288
2288
|
16263 && s && !F && (r(0, F = s.elements({
|
|
2289
2289
|
mode: l,
|
|
2290
|
-
currency:
|
|
2290
|
+
currency: Q,
|
|
2291
2291
|
amount: h,
|
|
2292
2292
|
appearance: n,
|
|
2293
2293
|
clientSecret: y,
|
|
2294
2294
|
fonts: v,
|
|
2295
2295
|
loader: E,
|
|
2296
|
-
locale:
|
|
2297
|
-
})),
|
|
2298
|
-
8705 && F && F.update({ appearance: n, locale:
|
|
2296
|
+
locale: A
|
|
2297
|
+
})), Nr(s), on("stripe", { stripe: s, elements: F })), t.$$.dirty & /*elements, appearance, locale*/
|
|
2298
|
+
8705 && F && F.update({ appearance: n, locale: A });
|
|
2299
2299
|
}, [
|
|
2300
2300
|
F,
|
|
2301
2301
|
s,
|
|
@@ -2306,8 +2306,8 @@ function Lr(t, e, r) {
|
|
|
2306
2306
|
d,
|
|
2307
2307
|
E,
|
|
2308
2308
|
v,
|
|
2309
|
-
|
|
2310
|
-
|
|
2309
|
+
A,
|
|
2310
|
+
Q,
|
|
2311
2311
|
h,
|
|
2312
2312
|
y,
|
|
2313
2313
|
n,
|
|
@@ -2317,7 +2317,7 @@ function Lr(t, e, r) {
|
|
|
2317
2317
|
}
|
|
2318
2318
|
class xr extends U {
|
|
2319
2319
|
constructor(e) {
|
|
2320
|
-
super(),
|
|
2320
|
+
super(), N(this, e, Lr, Or, P, {
|
|
2321
2321
|
stripe: 1,
|
|
2322
2322
|
mode: 2,
|
|
2323
2323
|
theme: 3,
|
|
@@ -2334,8 +2334,8 @@ class xr extends U {
|
|
|
2334
2334
|
});
|
|
2335
2335
|
}
|
|
2336
2336
|
}
|
|
2337
|
-
var
|
|
2338
|
-
for (var e = document.querySelectorAll('script[src^="'.concat(
|
|
2337
|
+
var Qt = "https://js.stripe.com/v3", Fr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, lt = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", Gr = function() {
|
|
2338
|
+
for (var e = document.querySelectorAll('script[src^="'.concat(Qt, '"]')), r = 0; r < e.length; r++) {
|
|
2339
2339
|
var n = e[r];
|
|
2340
2340
|
if (Fr.test(n.src))
|
|
2341
2341
|
return n;
|
|
@@ -2343,7 +2343,7 @@ var Mt = "https://js.stripe.com/v3", Fr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
|
|
|
2343
2343
|
return null;
|
|
2344
2344
|
}, ct = function(e) {
|
|
2345
2345
|
var r = e && !e.advancedFraudSignals ? "?advancedFraudSignals=false" : "", n = document.createElement("script");
|
|
2346
|
-
n.src = "".concat(
|
|
2346
|
+
n.src = "".concat(Qt).concat(r);
|
|
2347
2347
|
var i = document.head || document.body;
|
|
2348
2348
|
if (!i)
|
|
2349
2349
|
throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
|
|
@@ -2354,7 +2354,7 @@ var Mt = "https://js.stripe.com/v3", Fr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
|
|
|
2354
2354
|
version: "2.3.0",
|
|
2355
2355
|
startTime: r
|
|
2356
2356
|
});
|
|
2357
|
-
}, me = null, De = null,
|
|
2357
|
+
}, me = null, De = null, Ce = null, Hr = function(e) {
|
|
2358
2358
|
return function() {
|
|
2359
2359
|
e(new Error("Failed to load Stripe.js"));
|
|
2360
2360
|
};
|
|
@@ -2378,11 +2378,11 @@ var Mt = "https://js.stripe.com/v3", Fr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
|
|
|
2378
2378
|
console.warn(lt);
|
|
2379
2379
|
else if (!i)
|
|
2380
2380
|
i = ct(e);
|
|
2381
|
-
else if (i &&
|
|
2381
|
+
else if (i && Ce !== null && De !== null) {
|
|
2382
2382
|
var o;
|
|
2383
|
-
i.removeEventListener("load",
|
|
2383
|
+
i.removeEventListener("load", Ce), i.removeEventListener("error", De), (o = i.parentNode) === null || o === void 0 || o.removeChild(i), i = ct(e);
|
|
2384
2384
|
}
|
|
2385
|
-
|
|
2385
|
+
Ce = Kr(r, n), De = Hr(n), i.addEventListener("load", Ce), i.addEventListener("error", De);
|
|
2386
2386
|
} catch (s) {
|
|
2387
2387
|
n(s);
|
|
2388
2388
|
return;
|
|
@@ -2395,7 +2395,7 @@ var Mt = "https://js.stripe.com/v3", Fr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
|
|
|
2395
2395
|
return null;
|
|
2396
2396
|
var i = e.apply(void 0, r);
|
|
2397
2397
|
return Yr(i, n), i;
|
|
2398
|
-
}, ge,
|
|
2398
|
+
}, ge, Mt = !1, Pt = function() {
|
|
2399
2399
|
return ge || (ge = qr(null).catch(function(e) {
|
|
2400
2400
|
return ge = null, Promise.reject(e);
|
|
2401
2401
|
}), ge);
|
|
@@ -2403,12 +2403,12 @@ var Mt = "https://js.stripe.com/v3", Fr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
|
|
|
2403
2403
|
Promise.resolve().then(function() {
|
|
2404
2404
|
return Pt();
|
|
2405
2405
|
}).catch(function(t) {
|
|
2406
|
-
|
|
2406
|
+
Mt || console.warn(t);
|
|
2407
2407
|
});
|
|
2408
2408
|
var Jr = function() {
|
|
2409
2409
|
for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++)
|
|
2410
2410
|
r[n] = arguments[n];
|
|
2411
|
-
|
|
2411
|
+
Mt = !0;
|
|
2412
2412
|
var i = Date.now();
|
|
2413
2413
|
return Pt().then(function(o) {
|
|
2414
2414
|
return jr(o, r, i);
|
|
@@ -2431,7 +2431,7 @@ function Wr(t) {
|
|
|
2431
2431
|
);
|
|
2432
2432
|
return {
|
|
2433
2433
|
c() {
|
|
2434
|
-
e = k("div"), i && i.c(),
|
|
2434
|
+
e = k("div"), i && i.c(), _(e, "class", "rcb-header-layout svelte-1xe711j");
|
|
2435
2435
|
},
|
|
2436
2436
|
m(o, s) {
|
|
2437
2437
|
p(o, e, s), i && i.m(e, null), r = !0;
|
|
@@ -2470,7 +2470,7 @@ function Wr(t) {
|
|
|
2470
2470
|
}
|
|
2471
2471
|
function zr(t) {
|
|
2472
2472
|
let e, r;
|
|
2473
|
-
return e = new
|
|
2473
|
+
return e = new ue({
|
|
2474
2474
|
props: {
|
|
2475
2475
|
as: "header",
|
|
2476
2476
|
$$slots: { default: [Wr] },
|
|
@@ -2507,7 +2507,7 @@ function Xr(t, e, r) {
|
|
|
2507
2507
|
}
|
|
2508
2508
|
class Ve extends U {
|
|
2509
2509
|
constructor(e) {
|
|
2510
|
-
super(),
|
|
2510
|
+
super(), N(this, e, Xr, zr, P, {}, Vr);
|
|
2511
2511
|
}
|
|
2512
2512
|
}
|
|
2513
2513
|
const Zr = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18%208H17V6C17%203.24%2014.76%201%2012%201C9.24%201%207%203.24%207%206V8H6C4.9%208%204%208.9%204%2010V20C4%2021.1%204.9%2022%206%2022H18C19.1%2022%2020%2021.1%2020%2020V10C20%208.9%2019.1%208%2018%208ZM12%2017C10.9%2017%2010%2016.1%2010%2015C10%2013.9%2010.9%2013%2012%2013C13.1%2013%2014%2013.9%2014%2015C14%2016.1%2013.1%2017%2012%2017ZM15.1%208H8.9V6C8.9%204.29%2010.29%202.9%2012%202.9C13.71%202.9%2015.1%204.29%2015.1%206V8Z'%20fill='%2311D483'/%3e%3c/svg%3e";
|
|
@@ -2515,7 +2515,7 @@ function ei(t) {
|
|
|
2515
2515
|
let e, r;
|
|
2516
2516
|
return {
|
|
2517
2517
|
c() {
|
|
2518
|
-
e = k("img"), X(e.src, r = Zr) ||
|
|
2518
|
+
e = k("img"), X(e.src, r = Zr) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon");
|
|
2519
2519
|
},
|
|
2520
2520
|
m(n, i) {
|
|
2521
2521
|
p(n, e, i);
|
|
@@ -2530,10 +2530,10 @@ function ei(t) {
|
|
|
2530
2530
|
}
|
|
2531
2531
|
class ti extends U {
|
|
2532
2532
|
constructor(e) {
|
|
2533
|
-
super(),
|
|
2533
|
+
super(), N(this, e, null, ei, P, {});
|
|
2534
2534
|
}
|
|
2535
2535
|
}
|
|
2536
|
-
const
|
|
2536
|
+
const Ae = {
|
|
2537
2537
|
error: "#f2545b",
|
|
2538
2538
|
warning: "#f4e971",
|
|
2539
2539
|
focus: "#000080",
|
|
@@ -2554,7 +2554,7 @@ function ri(t) {
|
|
|
2554
2554
|
let e;
|
|
2555
2555
|
return {
|
|
2556
2556
|
c() {
|
|
2557
|
-
e = k("div"),
|
|
2557
|
+
e = k("div"), _(e, "class", "processing svelte-rjmul6");
|
|
2558
2558
|
},
|
|
2559
2559
|
m(r, n) {
|
|
2560
2560
|
p(r, e, n);
|
|
@@ -2569,7 +2569,7 @@ function ri(t) {
|
|
|
2569
2569
|
}
|
|
2570
2570
|
class Tt extends U {
|
|
2571
2571
|
constructor(e) {
|
|
2572
|
-
super(),
|
|
2572
|
+
super(), N(this, e, null, ri, P, {}, ni);
|
|
2573
2573
|
}
|
|
2574
2574
|
}
|
|
2575
2575
|
function ii(t) {
|
|
@@ -2617,17 +2617,17 @@ function si(t) {
|
|
|
2617
2617
|
fontSizeBase: "16px",
|
|
2618
2618
|
fontSizeSm: "16px",
|
|
2619
2619
|
spacingGridRow: "16px",
|
|
2620
|
-
colorText:
|
|
2620
|
+
colorText: Ae["grey-text-dark"],
|
|
2621
2621
|
focusBoxShadow: "none",
|
|
2622
|
-
colorDanger:
|
|
2622
|
+
colorDanger: Ae.error
|
|
2623
2623
|
},
|
|
2624
2624
|
rules: {
|
|
2625
2625
|
".Input": {
|
|
2626
2626
|
boxShadow: "none",
|
|
2627
|
-
border: `2px solid ${
|
|
2627
|
+
border: `2px solid ${Ae["grey-ui-dark"]}`
|
|
2628
2628
|
},
|
|
2629
2629
|
".Input:focus": {
|
|
2630
|
-
border: `2px solid ${
|
|
2630
|
+
border: `2px solid ${Ae.focus}`,
|
|
2631
2631
|
outline: "none"
|
|
2632
2632
|
},
|
|
2633
2633
|
".Label": {
|
|
@@ -2643,7 +2643,7 @@ function si(t) {
|
|
|
2643
2643
|
return (
|
|
2644
2644
|
/*elements*/
|
|
2645
2645
|
t[2] !== void 0 && (c.elements = /*elements*/
|
|
2646
|
-
t[2]), r = new xr({ props: c }),
|
|
2646
|
+
t[2]), r = new xr({ props: c }), Ne.push(() => dn(r, "elements", l)), {
|
|
2647
2647
|
c() {
|
|
2648
2648
|
e = k("form"), w(r.$$.fragment);
|
|
2649
2649
|
},
|
|
@@ -2699,7 +2699,7 @@ function ci(t) {
|
|
|
2699
2699
|
let e, r, n;
|
|
2700
2700
|
return r = new Sr({}), {
|
|
2701
2701
|
c() {
|
|
2702
|
-
e = k("div"), w(r.$$.fragment),
|
|
2702
|
+
e = k("div"), w(r.$$.fragment), _(e, "class", "rcb-stripe-elements-container svelte-1wxt892");
|
|
2703
2703
|
},
|
|
2704
2704
|
m(i, o) {
|
|
2705
2705
|
p(i, e, o), I(r, e, null), n = !0;
|
|
@@ -2720,7 +2720,7 @@ function ai(t) {
|
|
|
2720
2720
|
let e;
|
|
2721
2721
|
return {
|
|
2722
2722
|
c() {
|
|
2723
|
-
e =
|
|
2723
|
+
e = R("Pay");
|
|
2724
2724
|
},
|
|
2725
2725
|
m(r, n) {
|
|
2726
2726
|
p(r, e, n);
|
|
@@ -2763,7 +2763,7 @@ function fi(t) {
|
|
|
2763
2763
|
}
|
|
2764
2764
|
return e = l(t), r = s[e] = o[e](t), {
|
|
2765
2765
|
c() {
|
|
2766
|
-
r.c(), n =
|
|
2766
|
+
r.c(), n = ee();
|
|
2767
2767
|
},
|
|
2768
2768
|
m(c, a) {
|
|
2769
2769
|
s[e].m(c, a), p(c, n, a), i = !0;
|
|
@@ -2789,7 +2789,7 @@ function di(t) {
|
|
|
2789
2789
|
let e;
|
|
2790
2790
|
return {
|
|
2791
2791
|
c() {
|
|
2792
|
-
e =
|
|
2792
|
+
e = R("Close");
|
|
2793
2793
|
},
|
|
2794
2794
|
m(r, n) {
|
|
2795
2795
|
p(r, e, n);
|
|
@@ -2821,7 +2821,7 @@ function mi(t) {
|
|
|
2821
2821
|
$$scope: { ctx: t }
|
|
2822
2822
|
}
|
|
2823
2823
|
}), n.$on("click", function() {
|
|
2824
|
-
|
|
2824
|
+
ae(
|
|
2825
2825
|
/*onClose*/
|
|
2826
2826
|
t[1]
|
|
2827
2827
|
) && t[1].apply(this, arguments);
|
|
@@ -2893,7 +2893,7 @@ function pi(t) {
|
|
|
2893
2893
|
$$slots: { default: [li] },
|
|
2894
2894
|
$$scope: { ctx: t }
|
|
2895
2895
|
}
|
|
2896
|
-
}), n = new
|
|
2896
|
+
}), n = new ue({
|
|
2897
2897
|
props: {
|
|
2898
2898
|
$$slots: { default: [ci] },
|
|
2899
2899
|
$$scope: { ctx: t }
|
|
@@ -2932,7 +2932,7 @@ function pi(t) {
|
|
|
2932
2932
|
}
|
|
2933
2933
|
};
|
|
2934
2934
|
}
|
|
2935
|
-
function
|
|
2935
|
+
function _i(t) {
|
|
2936
2936
|
let e, r, n, i;
|
|
2937
2937
|
const o = [si, oi], s = [];
|
|
2938
2938
|
function l(c, a) {
|
|
@@ -2966,31 +2966,31 @@ function Ai(t) {
|
|
|
2966
2966
|
}
|
|
2967
2967
|
};
|
|
2968
2968
|
}
|
|
2969
|
-
function
|
|
2969
|
+
function Ai(t, e, r) {
|
|
2970
2970
|
let { onClose: n } = e, { onContinue: i } = e, { onError: o } = e, { paymentInfoCollectionMetadata: s } = e, { processing: l = !1 } = e;
|
|
2971
2971
|
const c = s.data.client_secret;
|
|
2972
2972
|
let a = null, f, d;
|
|
2973
2973
|
Se(async () => {
|
|
2974
|
-
const
|
|
2975
|
-
if (!
|
|
2974
|
+
const A = s.data.publishable_api_key, Q = s.data.stripe_account_id;
|
|
2975
|
+
if (!A || !Q)
|
|
2976
2976
|
throw new Error("Stripe publishable key or account ID not found");
|
|
2977
|
-
r(3, a = await Jr(
|
|
2977
|
+
r(3, a = await Jr(A, { stripeAccount: Q }));
|
|
2978
2978
|
});
|
|
2979
2979
|
const E = async () => {
|
|
2980
2980
|
if (l || !a || !d)
|
|
2981
2981
|
return;
|
|
2982
2982
|
r(0, l = !0);
|
|
2983
|
-
const
|
|
2983
|
+
const A = await a.confirmSetup({
|
|
2984
2984
|
elements: d,
|
|
2985
2985
|
redirect: "if_required"
|
|
2986
2986
|
});
|
|
2987
|
-
|
|
2987
|
+
A.error ? (r(0, l = !1), o(new G(S.StripeError, A.error.message))) : i();
|
|
2988
2988
|
};
|
|
2989
|
-
function v(
|
|
2990
|
-
f =
|
|
2989
|
+
function v(A) {
|
|
2990
|
+
f = A, r(2, f);
|
|
2991
2991
|
}
|
|
2992
|
-
return t.$$set = (
|
|
2993
|
-
"onClose" in
|
|
2992
|
+
return t.$$set = (A) => {
|
|
2993
|
+
"onClose" in A && r(1, n = A.onClose), "onContinue" in A && r(6, i = A.onContinue), "onError" in A && r(7, o = A.onError), "paymentInfoCollectionMetadata" in A && r(8, s = A.paymentInfoCollectionMetadata), "processing" in A && r(0, l = A.processing);
|
|
2994
2994
|
}, t.$$.update = () => {
|
|
2995
2995
|
t.$$.dirty & /*elements*/
|
|
2996
2996
|
4 && f && f._elements.length > 0 && (d = f);
|
|
@@ -3009,11 +3009,11 @@ function _i(t, e, r) {
|
|
|
3009
3009
|
}
|
|
3010
3010
|
class hi extends U {
|
|
3011
3011
|
constructor(e) {
|
|
3012
|
-
super(),
|
|
3012
|
+
super(), N(
|
|
3013
3013
|
this,
|
|
3014
3014
|
e,
|
|
3015
|
-
_i,
|
|
3016
3015
|
Ai,
|
|
3016
|
+
_i,
|
|
3017
3017
|
P,
|
|
3018
3018
|
{
|
|
3019
3019
|
onClose: 1,
|
|
@@ -3033,7 +3033,7 @@ function Ii(t) {
|
|
|
3033
3033
|
let e;
|
|
3034
3034
|
return {
|
|
3035
3035
|
c() {
|
|
3036
|
-
e =
|
|
3036
|
+
e = R("Billing email address");
|
|
3037
3037
|
},
|
|
3038
3038
|
m(r, n) {
|
|
3039
3039
|
p(r, e, n);
|
|
@@ -3047,10 +3047,10 @@ function at(t) {
|
|
|
3047
3047
|
let e, r;
|
|
3048
3048
|
return {
|
|
3049
3049
|
c() {
|
|
3050
|
-
e = k("div"), r =
|
|
3050
|
+
e = k("div"), r = R(
|
|
3051
3051
|
/*error*/
|
|
3052
3052
|
t[2]
|
|
3053
|
-
),
|
|
3053
|
+
), _(e, "class", "form-error svelte-favd20");
|
|
3054
3054
|
},
|
|
3055
3055
|
m(n, i) {
|
|
3056
3056
|
p(n, e, i), D(e, r);
|
|
@@ -3075,8 +3075,8 @@ function bi(t) {
|
|
|
3075
3075
|
);
|
|
3076
3076
|
return {
|
|
3077
3077
|
c() {
|
|
3078
|
-
e = k("div"), r = k("div"), r.innerHTML = '<label for="email">Email</label>', n = T(), i = k("div"), o = k("input"), l = T(), f && f.c(),
|
|
3079
|
-
t[4] + " svelte-favd20"),
|
|
3078
|
+
e = k("div"), r = k("div"), r.innerHTML = '<label for="email">Email</label>', n = T(), i = k("div"), o = k("input"), l = T(), f && f.c(), _(r, "class", "form-label svelte-favd20"), _(o, "name", "email"), _(o, "placeholder", "john@appleseed.com"), _(o, "autocapitalize", "off"), _(o, "class", "svelte-favd20"), _(i, "class", s = "form-input " + /*inputClass*/
|
|
3079
|
+
t[4] + " svelte-favd20"), _(e, "class", "form-container svelte-favd20");
|
|
3080
3080
|
},
|
|
3081
3081
|
m(d, E) {
|
|
3082
3082
|
p(d, e, E), D(e, r), D(e, n), D(e, i), D(i, o), et(
|
|
@@ -3099,7 +3099,7 @@ function bi(t) {
|
|
|
3099
3099
|
d[3]
|
|
3100
3100
|
), E & /*inputClass*/
|
|
3101
3101
|
16 && s !== (s = "form-input " + /*inputClass*/
|
|
3102
|
-
d[4] + " svelte-favd20") &&
|
|
3102
|
+
d[4] + " svelte-favd20") && _(i, "class", s), /*error*/
|
|
3103
3103
|
d[2] ? f ? f.p(d, E) : (f = at(d), f.c(), f.m(e, null)) : f && (f.d(1), f = null);
|
|
3104
3104
|
},
|
|
3105
3105
|
d(d) {
|
|
@@ -3111,7 +3111,7 @@ function wi(t) {
|
|
|
3111
3111
|
let e;
|
|
3112
3112
|
return {
|
|
3113
3113
|
c() {
|
|
3114
|
-
e =
|
|
3114
|
+
e = R("Continue");
|
|
3115
3115
|
},
|
|
3116
3116
|
m(r, n) {
|
|
3117
3117
|
p(r, e, n);
|
|
@@ -3154,7 +3154,7 @@ function $i(t) {
|
|
|
3154
3154
|
}
|
|
3155
3155
|
return e = l(t), r = s[e] = o[e](t), {
|
|
3156
3156
|
c() {
|
|
3157
|
-
r.c(), n =
|
|
3157
|
+
r.c(), n = ee();
|
|
3158
3158
|
},
|
|
3159
3159
|
m(c, a) {
|
|
3160
3160
|
s[e].m(c, a), p(c, n, a), i = !0;
|
|
@@ -3180,7 +3180,7 @@ function vi(t) {
|
|
|
3180
3180
|
let e;
|
|
3181
3181
|
return {
|
|
3182
3182
|
c() {
|
|
3183
|
-
e =
|
|
3183
|
+
e = R("Close");
|
|
3184
3184
|
},
|
|
3185
3185
|
m(r, n) {
|
|
3186
3186
|
p(r, e, n);
|
|
@@ -3212,7 +3212,7 @@ function Bi(t) {
|
|
|
3212
3212
|
$$scope: { ctx: t }
|
|
3213
3213
|
}
|
|
3214
3214
|
}), n.$on("click", function() {
|
|
3215
|
-
|
|
3215
|
+
ae(
|
|
3216
3216
|
/*onClose*/
|
|
3217
3217
|
t[0]
|
|
3218
3218
|
) && t[0].apply(this, arguments);
|
|
@@ -3284,7 +3284,7 @@ function Di(t) {
|
|
|
3284
3284
|
$$slots: { default: [Ii] },
|
|
3285
3285
|
$$scope: { ctx: t }
|
|
3286
3286
|
}
|
|
3287
|
-
}), i = new
|
|
3287
|
+
}), i = new ue({
|
|
3288
3288
|
props: {
|
|
3289
3289
|
$$slots: { default: [bi] },
|
|
3290
3290
|
$$scope: { ctx: t }
|
|
@@ -3296,7 +3296,7 @@ function Di(t) {
|
|
|
3296
3296
|
}
|
|
3297
3297
|
}), {
|
|
3298
3298
|
c() {
|
|
3299
|
-
e = k("form"), w(r.$$.fragment), n = T(), w(i.$$.fragment), o = T(), w(s.$$.fragment),
|
|
3299
|
+
e = k("form"), w(r.$$.fragment), n = T(), w(i.$$.fragment), o = T(), w(s.$$.fragment), _(e, "class", "svelte-favd20");
|
|
3300
3300
|
},
|
|
3301
3301
|
m(f, d) {
|
|
3302
3302
|
p(f, e, d), I(r, e, null), D(e, n), I(i, e, null), D(e, o), I(s, e, null), l = !0, c || (a = ke(e, "submit", kt(
|
|
@@ -3311,9 +3311,9 @@ function Di(t) {
|
|
|
3311
3311
|
const v = {};
|
|
3312
3312
|
d & /*$$scope, error, inputClass, email*/
|
|
3313
3313
|
284 && (v.$$scope = { dirty: d, ctx: f }), i.$set(v);
|
|
3314
|
-
const
|
|
3314
|
+
const A = {};
|
|
3315
3315
|
d & /*$$scope, processing, onClose*/
|
|
3316
|
-
259 && (
|
|
3316
|
+
259 && (A.$$scope = { dirty: d, ctx: f }), s.$set(A);
|
|
3317
3317
|
},
|
|
3318
3318
|
i(f) {
|
|
3319
3319
|
l || (u(r.$$.fragment, f), u(i.$$.fragment, f), u(s.$$.fragment, f), l = !0);
|
|
@@ -3326,7 +3326,7 @@ function Di(t) {
|
|
|
3326
3326
|
}
|
|
3327
3327
|
};
|
|
3328
3328
|
}
|
|
3329
|
-
function
|
|
3329
|
+
function Ci(t, e, r) {
|
|
3330
3330
|
let n, i, o, { onContinue: s } = e, { onClose: l } = e, { processing: c } = e;
|
|
3331
3331
|
const a = async () => {
|
|
3332
3332
|
n.trim() === "" ? r(2, i = "You need to provide your email address to continue.") : s({ email: n });
|
|
@@ -3350,12 +3350,12 @@ function Qi(t, e, r) {
|
|
|
3350
3350
|
f
|
|
3351
3351
|
];
|
|
3352
3352
|
}
|
|
3353
|
-
class
|
|
3353
|
+
class Qi extends U {
|
|
3354
3354
|
constructor(e) {
|
|
3355
|
-
super(),
|
|
3355
|
+
super(), N(this, e, Ci, Di, P, { onContinue: 6, onClose: 0, processing: 1 }, Ei);
|
|
3356
3356
|
}
|
|
3357
3357
|
}
|
|
3358
|
-
function
|
|
3358
|
+
function Mi(t) {
|
|
3359
3359
|
O(t, "svelte-17tslso", ".rcb-modal-backdrop.svelte-17tslso{position:fixed;top:0;left:0;right:0;min-width:100%;width:100vw;width:100dvw;min-height:100%;height:100vh;height:100dvh;background-color:rgba(40, 40, 40, 0.75);display:flex;flex-direction:column;justify-content:space-around;z-index:1000001}");
|
|
3360
3360
|
}
|
|
3361
3361
|
function Pi(t) {
|
|
@@ -3372,7 +3372,7 @@ function Pi(t) {
|
|
|
3372
3372
|
);
|
|
3373
3373
|
return {
|
|
3374
3374
|
c() {
|
|
3375
|
-
e = k("div"), i && i.c(),
|
|
3375
|
+
e = k("div"), i && i.c(), _(e, "class", "rcb-modal-backdrop svelte-17tslso");
|
|
3376
3376
|
},
|
|
3377
3377
|
m(o, s) {
|
|
3378
3378
|
p(o, e, s), i && i.m(e, null), r = !0;
|
|
@@ -3415,15 +3415,15 @@ function Ti(t, e, r) {
|
|
|
3415
3415
|
"$$scope" in o && r(0, i = o.$$scope);
|
|
3416
3416
|
}, [i, n];
|
|
3417
3417
|
}
|
|
3418
|
-
class
|
|
3418
|
+
class Ni extends U {
|
|
3419
3419
|
constructor(e) {
|
|
3420
|
-
super(),
|
|
3420
|
+
super(), N(this, e, Ti, Pi, P, {}, Mi);
|
|
3421
3421
|
}
|
|
3422
3422
|
}
|
|
3423
3423
|
function Ui(t) {
|
|
3424
3424
|
O(t, "svelte-ioxu5d", ".rcb-modal-container.svelte-ioxu5d{width:100%}.rcb-modal-main.svelte-ioxu5d{box-sizing:border-box;border-radius:8px;background-color:var(--rc-color-white);color:var(--rc-color-grey-text-dark);min-height:460px;padding:40px;flex-direction:column;display:flex}.rcb-modal-dark.svelte-ioxu5d{background-color:var(--rc-color-grey-text-dark);color:var(--rc-color-white);min-height:0px}@media screen and (max-width: 960px){.rcb-modal-container.svelte-ioxu5d{width:calc(100% - 32px);min-width:300px;max-width:640px;margin:auto}.rcb-modal-main.svelte-ioxu5d,.rcb-modal-dark.svelte-ioxu5d{min-width:300px;max-width:640px;padding:32px}}");
|
|
3425
3425
|
}
|
|
3426
|
-
function
|
|
3426
|
+
function Ri(t) {
|
|
3427
3427
|
let e, r, n, i;
|
|
3428
3428
|
const o = (
|
|
3429
3429
|
/*#slots*/
|
|
@@ -3437,8 +3437,8 @@ function Ni(t) {
|
|
|
3437
3437
|
);
|
|
3438
3438
|
return {
|
|
3439
3439
|
c() {
|
|
3440
|
-
e = k("div"), r = k("main"), s && s.c(),
|
|
3441
|
-
t[0] ? "rcb-modal-dark" : ""}`) + " svelte-ioxu5d"),
|
|
3440
|
+
e = k("div"), r = k("main"), s && s.c(), _(r, "class", n = Ee(`rcb-modal-main ${/*dark*/
|
|
3441
|
+
t[0] ? "rcb-modal-dark" : ""}`) + " svelte-ioxu5d"), _(e, "class", "rcb-modal-container svelte-ioxu5d");
|
|
3442
3442
|
},
|
|
3443
3443
|
m(l, c) {
|
|
3444
3444
|
p(l, e, c), D(e, r), s && s.m(r, null), i = !0;
|
|
@@ -3464,7 +3464,7 @@ function Ni(t) {
|
|
|
3464
3464
|
null
|
|
3465
3465
|
), (!i || c & /*dark*/
|
|
3466
3466
|
1 && n !== (n = Ee(`rcb-modal-main ${/*dark*/
|
|
3467
|
-
l[0] ? "rcb-modal-dark" : ""}`) + " svelte-ioxu5d")) &&
|
|
3467
|
+
l[0] ? "rcb-modal-dark" : ""}`) + " svelte-ioxu5d")) && _(r, "class", n);
|
|
3468
3468
|
},
|
|
3469
3469
|
i(l) {
|
|
3470
3470
|
i || (u(s, l), i = !0);
|
|
@@ -3485,7 +3485,7 @@ function Si(t, e, r) {
|
|
|
3485
3485
|
}
|
|
3486
3486
|
class Oi extends U {
|
|
3487
3487
|
constructor(e) {
|
|
3488
|
-
super(),
|
|
3488
|
+
super(), N(this, e, Si, Ri, P, { dark: 0 }, Ui);
|
|
3489
3489
|
}
|
|
3490
3490
|
}
|
|
3491
3491
|
function Li(t) {
|
|
@@ -3541,7 +3541,7 @@ function Li(t) {
|
|
|
3541
3541
|
}
|
|
3542
3542
|
function xi(t) {
|
|
3543
3543
|
let e, r;
|
|
3544
|
-
return e = new
|
|
3544
|
+
return e = new Ni({
|
|
3545
3545
|
props: {
|
|
3546
3546
|
$$slots: { default: [Fi] },
|
|
3547
3547
|
$$scope: { ctx: t }
|
|
@@ -3631,7 +3631,7 @@ function Gi(t) {
|
|
|
3631
3631
|
}
|
|
3632
3632
|
return e = l(t), r = s[e] = o[e](t), {
|
|
3633
3633
|
c() {
|
|
3634
|
-
r.c(), n =
|
|
3634
|
+
r.c(), n = ee();
|
|
3635
3635
|
},
|
|
3636
3636
|
m(c, a) {
|
|
3637
3637
|
s[e].m(c, a), p(c, n, a), i = !0;
|
|
@@ -3661,7 +3661,7 @@ function Yi(t, e, r) {
|
|
|
3661
3661
|
}
|
|
3662
3662
|
class Hi extends U {
|
|
3663
3663
|
constructor(e) {
|
|
3664
|
-
super(),
|
|
3664
|
+
super(), N(this, e, Yi, Gi, P, { condition: 0 });
|
|
3665
3665
|
}
|
|
3666
3666
|
}
|
|
3667
3667
|
const Ki = (t) => ({}), ut = (t) => ({});
|
|
@@ -3785,12 +3785,12 @@ function Ji(t, e, r) {
|
|
|
3785
3785
|
"dark" in s && r(0, o = s.dark), "$$scope" in s && r(2, i = s.$$scope);
|
|
3786
3786
|
}, [o, n, i];
|
|
3787
3787
|
}
|
|
3788
|
-
class
|
|
3788
|
+
class Nt extends U {
|
|
3789
3789
|
constructor(e) {
|
|
3790
|
-
super(),
|
|
3790
|
+
super(), N(this, e, Ji, ji, P, { dark: 0 });
|
|
3791
3791
|
}
|
|
3792
3792
|
}
|
|
3793
|
-
var
|
|
3793
|
+
var re = /* @__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))(re || {});
|
|
3794
3794
|
class Pe {
|
|
3795
3795
|
static getPublicMessage(e) {
|
|
3796
3796
|
switch (e) {
|
|
@@ -3909,16 +3909,16 @@ class Pe {
|
|
|
3909
3909
|
}
|
|
3910
3910
|
}
|
|
3911
3911
|
var Ut = /* @__PURE__ */ ((t) => (t[t.BackendInvalidPlatform = 7e3] = "BackendInvalidPlatform", t[t.BackendStoreProblem = 7101] = "BackendStoreProblem", t[t.BackendCannotTransferPurchase = 7102] = "BackendCannotTransferPurchase", t[t.BackendInvalidReceiptToken = 7103] = "BackendInvalidReceiptToken", t[t.BackendInvalidAppStoreSharedSecret = 7104] = "BackendInvalidAppStoreSharedSecret", t[t.BackendInvalidPaymentModeOrIntroPriceNotProvided = 7105] = "BackendInvalidPaymentModeOrIntroPriceNotProvided", t[t.BackendProductIdForGoogleReceiptNotProvided = 7106] = "BackendProductIdForGoogleReceiptNotProvided", t[t.BackendInvalidPlayStoreCredentials = 7107] = "BackendInvalidPlayStoreCredentials", t[t.BackendInternalServerError = 7110] = "BackendInternalServerError", t[t.BackendEmptyAppUserId = 7220] = "BackendEmptyAppUserId", t[t.BackendInvalidAuthToken = 7224] = "BackendInvalidAuthToken", t[t.BackendInvalidAPIKey = 7225] = "BackendInvalidAPIKey", t[t.BackendBadRequest = 7226] = "BackendBadRequest", t[t.BackendPlayStoreQuotaExceeded = 7229] = "BackendPlayStoreQuotaExceeded", t[t.BackendPlayStoreInvalidPackageName = 7230] = "BackendPlayStoreInvalidPackageName", t[t.BackendPlayStoreGenericError = 7231] = "BackendPlayStoreGenericError", t[t.BackendUserIneligibleForPromoOffer = 7232] = "BackendUserIneligibleForPromoOffer", t[t.BackendInvalidAppleSubscriptionKey = 7234] = "BackendInvalidAppleSubscriptionKey", t[t.BackendInvalidSubscriberAttributes = 7263] = "BackendInvalidSubscriberAttributes", t[t.BackendInvalidSubscriberAttributesBody = 7264] = "BackendInvalidSubscriberAttributesBody", t[t.BackendProductIDsMalformed = 7662] = "BackendProductIDsMalformed", t))(Ut || {});
|
|
3912
|
-
class
|
|
3912
|
+
class Z extends Error {
|
|
3913
3913
|
constructor(r, n, i) {
|
|
3914
3914
|
super(n);
|
|
3915
|
-
|
|
3915
|
+
M(this, "toString", () => `PurchasesError(code: ${re[this.errorCode]}, message: ${this.message})`);
|
|
3916
3916
|
this.errorCode = r, this.underlyingErrorMessage = i;
|
|
3917
3917
|
}
|
|
3918
3918
|
/** @internal */
|
|
3919
3919
|
static getForBackendError(r, n) {
|
|
3920
3920
|
const i = Pe.getErrorCodeForBackendErrorCode(r);
|
|
3921
|
-
return new
|
|
3921
|
+
return new Z(
|
|
3922
3922
|
i,
|
|
3923
3923
|
Pe.getPublicMessage(i),
|
|
3924
3924
|
n
|
|
@@ -3926,7 +3926,7 @@ class ee extends Error {
|
|
|
3926
3926
|
}
|
|
3927
3927
|
/** @internal */
|
|
3928
3928
|
static getForPurchasesFlowError(r) {
|
|
3929
|
-
return new
|
|
3929
|
+
return new Z(
|
|
3930
3930
|
Pe.convertPurchaseFlowErrorCodeToErrorCode(
|
|
3931
3931
|
r.errorCode
|
|
3932
3932
|
),
|
|
@@ -3940,7 +3940,7 @@ class Vi extends Error {
|
|
|
3940
3940
|
super("Purchases must be configured before calling getInstance");
|
|
3941
3941
|
}
|
|
3942
3942
|
}
|
|
3943
|
-
const Wi = "0.1.
|
|
3943
|
+
const Wi = "0.1.2", fe = "https://api.revenuecat.com";
|
|
3944
3944
|
var Ue;
|
|
3945
3945
|
(function(t) {
|
|
3946
3946
|
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";
|
|
@@ -3948,7 +3948,7 @@ var Ue;
|
|
|
3948
3948
|
function qe(t) {
|
|
3949
3949
|
return t ? t.startsWith("rcb_sb_") : !1;
|
|
3950
3950
|
}
|
|
3951
|
-
async function
|
|
3951
|
+
async function se(t, e, r, n) {
|
|
3952
3952
|
const i = await fetch(t.url(), {
|
|
3953
3953
|
method: t.method,
|
|
3954
3954
|
headers: Zi(e, n),
|
|
@@ -3967,7 +3967,7 @@ async function zi(t, e) {
|
|
|
3967
3967
|
if (l == null)
|
|
3968
3968
|
Ge(e, r, i);
|
|
3969
3969
|
else
|
|
3970
|
-
throw
|
|
3970
|
+
throw Z.getForBackendError(
|
|
3971
3971
|
l,
|
|
3972
3972
|
s
|
|
3973
3973
|
);
|
|
@@ -3976,8 +3976,8 @@ async function zi(t, e) {
|
|
|
3976
3976
|
}
|
|
3977
3977
|
}
|
|
3978
3978
|
function Ge(t, e, r) {
|
|
3979
|
-
throw new
|
|
3980
|
-
|
|
3979
|
+
throw new Z(
|
|
3980
|
+
re.UnknownBackendError,
|
|
3981
3981
|
`Unknown backend error. Request: ${t.name}. Status code: ${e}. Body: ${r}.`
|
|
3982
3982
|
);
|
|
3983
3983
|
}
|
|
@@ -3995,23 +3995,23 @@ function Zi(t, e) {
|
|
|
3995
3995
|
};
|
|
3996
3996
|
return e != null && (r = { ...r, ...e }), r;
|
|
3997
3997
|
}
|
|
3998
|
-
const
|
|
3998
|
+
const Rt = "/v1/subscribers", Oe = "/rcbilling/v1";
|
|
3999
3999
|
class eo {
|
|
4000
4000
|
constructor(e) {
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4001
|
+
M(this, "appUserId");
|
|
4002
|
+
M(this, "method", "GET");
|
|
4003
|
+
M(this, "name", "getOfferings");
|
|
4004
4004
|
this.appUserId = e;
|
|
4005
4005
|
}
|
|
4006
4006
|
url() {
|
|
4007
4007
|
const e = encodeURIComponent(this.appUserId);
|
|
4008
|
-
return `${fe}${
|
|
4008
|
+
return `${fe}${Rt}/${e}/offerings`;
|
|
4009
4009
|
}
|
|
4010
4010
|
}
|
|
4011
4011
|
class to {
|
|
4012
4012
|
constructor() {
|
|
4013
|
-
|
|
4014
|
-
|
|
4013
|
+
M(this, "method", "POST");
|
|
4014
|
+
M(this, "name", "subscribe");
|
|
4015
4015
|
}
|
|
4016
4016
|
url() {
|
|
4017
4017
|
return `${fe}${Oe}/subscribe`;
|
|
@@ -4019,10 +4019,10 @@ class to {
|
|
|
4019
4019
|
}
|
|
4020
4020
|
class no {
|
|
4021
4021
|
constructor(e, r) {
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4022
|
+
M(this, "method", "GET");
|
|
4023
|
+
M(this, "name", "getProducts");
|
|
4024
|
+
M(this, "appUserId");
|
|
4025
|
+
M(this, "productIds");
|
|
4026
4026
|
this.appUserId = e, this.productIds = r;
|
|
4027
4027
|
}
|
|
4028
4028
|
url() {
|
|
@@ -4032,20 +4032,20 @@ class no {
|
|
|
4032
4032
|
}
|
|
4033
4033
|
class ro {
|
|
4034
4034
|
constructor(e) {
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4035
|
+
M(this, "method", "GET");
|
|
4036
|
+
M(this, "name", "getCustomerInfo");
|
|
4037
|
+
M(this, "appUserId");
|
|
4038
4038
|
this.appUserId = e;
|
|
4039
4039
|
}
|
|
4040
4040
|
url() {
|
|
4041
4041
|
const e = encodeURIComponent(this.appUserId);
|
|
4042
|
-
return `${fe}${
|
|
4042
|
+
return `${fe}${Rt}/${e}`;
|
|
4043
4043
|
}
|
|
4044
4044
|
}
|
|
4045
4045
|
class io {
|
|
4046
4046
|
constructor() {
|
|
4047
|
-
|
|
4048
|
-
|
|
4047
|
+
M(this, "method", "GET");
|
|
4048
|
+
M(this, "name", "getBrandingInfo");
|
|
4049
4049
|
}
|
|
4050
4050
|
url() {
|
|
4051
4051
|
return `${fe}${Oe}/branding`;
|
|
@@ -4053,9 +4053,9 @@ class io {
|
|
|
4053
4053
|
}
|
|
4054
4054
|
class oo {
|
|
4055
4055
|
constructor(e) {
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4056
|
+
M(this, "method", "GET");
|
|
4057
|
+
M(this, "name", "getCheckoutStatus");
|
|
4058
|
+
M(this, "operationSessionId");
|
|
4059
4059
|
this.operationSessionId = e;
|
|
4060
4060
|
}
|
|
4061
4061
|
url() {
|
|
@@ -4064,35 +4064,35 @@ class oo {
|
|
|
4064
4064
|
}
|
|
4065
4065
|
class so {
|
|
4066
4066
|
constructor(e) {
|
|
4067
|
-
|
|
4067
|
+
M(this, "API_KEY");
|
|
4068
4068
|
this.API_KEY = e;
|
|
4069
4069
|
}
|
|
4070
4070
|
async getOfferings(e) {
|
|
4071
|
-
return await
|
|
4071
|
+
return await se(
|
|
4072
4072
|
new eo(e),
|
|
4073
4073
|
this.API_KEY
|
|
4074
4074
|
);
|
|
4075
4075
|
}
|
|
4076
4076
|
async getCustomerInfo(e) {
|
|
4077
|
-
return await
|
|
4077
|
+
return await se(
|
|
4078
4078
|
new ro(e),
|
|
4079
4079
|
this.API_KEY
|
|
4080
4080
|
);
|
|
4081
4081
|
}
|
|
4082
4082
|
async getProducts(e, r) {
|
|
4083
|
-
return await
|
|
4083
|
+
return await se(
|
|
4084
4084
|
new no(e, r),
|
|
4085
4085
|
this.API_KEY
|
|
4086
4086
|
);
|
|
4087
4087
|
}
|
|
4088
4088
|
async getBrandingInfo() {
|
|
4089
|
-
return await
|
|
4089
|
+
return await se(
|
|
4090
4090
|
new io(),
|
|
4091
4091
|
this.API_KEY
|
|
4092
4092
|
);
|
|
4093
4093
|
}
|
|
4094
4094
|
async postSubscribe(e, r, n, i) {
|
|
4095
|
-
return await
|
|
4095
|
+
return await se(
|
|
4096
4096
|
new to(),
|
|
4097
4097
|
this.API_KEY,
|
|
4098
4098
|
{
|
|
@@ -4104,7 +4104,7 @@ class so {
|
|
|
4104
4104
|
);
|
|
4105
4105
|
}
|
|
4106
4106
|
async getCheckoutStatus(e) {
|
|
4107
|
-
return await
|
|
4107
|
+
return await se(
|
|
4108
4108
|
new oo(e),
|
|
4109
4109
|
this.API_KEY
|
|
4110
4110
|
);
|
|
@@ -4115,7 +4115,7 @@ function co(t) {
|
|
|
4115
4115
|
let e, r;
|
|
4116
4116
|
return {
|
|
4117
4117
|
c() {
|
|
4118
|
-
e = k("img"), X(e.src, r = lo) ||
|
|
4118
|
+
e = k("img"), X(e.src, r = lo) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon");
|
|
4119
4119
|
},
|
|
4120
4120
|
m(n, i) {
|
|
4121
4121
|
p(n, e, i);
|
|
@@ -4130,7 +4130,7 @@ function co(t) {
|
|
|
4130
4130
|
}
|
|
4131
4131
|
class ao extends U {
|
|
4132
4132
|
constructor(e) {
|
|
4133
|
-
super(),
|
|
4133
|
+
super(), N(this, e, null, co, P, {});
|
|
4134
4134
|
}
|
|
4135
4135
|
}
|
|
4136
4136
|
function uo(t) {
|
|
@@ -4140,7 +4140,7 @@ function fo(t) {
|
|
|
4140
4140
|
let e;
|
|
4141
4141
|
return {
|
|
4142
4142
|
c() {
|
|
4143
|
-
e = k("div"), e.textContent = "Sandbox",
|
|
4143
|
+
e = k("div"), e.textContent = "Sandbox", _(e, "class", "svelte-1rhrjxe");
|
|
4144
4144
|
},
|
|
4145
4145
|
m(r, n) {
|
|
4146
4146
|
p(r, e, n);
|
|
@@ -4155,7 +4155,7 @@ function fo(t) {
|
|
|
4155
4155
|
}
|
|
4156
4156
|
class mo extends U {
|
|
4157
4157
|
constructor(e) {
|
|
4158
|
-
super(),
|
|
4158
|
+
super(), N(this, e, null, fo, P, {}, uo);
|
|
4159
4159
|
}
|
|
4160
4160
|
}
|
|
4161
4161
|
function go(t) {
|
|
@@ -4164,7 +4164,7 @@ function go(t) {
|
|
|
4164
4164
|
}
|
|
4165
4165
|
function ft(t) {
|
|
4166
4166
|
let e, r, n;
|
|
4167
|
-
return r = new
|
|
4167
|
+
return r = new Nt({
|
|
4168
4168
|
props: {
|
|
4169
4169
|
dark: !0,
|
|
4170
4170
|
$$slots: {
|
|
@@ -4175,7 +4175,7 @@ function ft(t) {
|
|
|
4175
4175
|
}
|
|
4176
4176
|
}), {
|
|
4177
4177
|
c() {
|
|
4178
|
-
e = k("div"), w(r.$$.fragment),
|
|
4178
|
+
e = k("div"), w(r.$$.fragment), _(e, "class", "rcb-ui-aside svelte-13pdaik");
|
|
4179
4179
|
},
|
|
4180
4180
|
m(i, o) {
|
|
4181
4181
|
p(i, e, o), I(r, e, null), n = !0;
|
|
@@ -4236,7 +4236,7 @@ function po(t) {
|
|
|
4236
4236
|
);
|
|
4237
4237
|
return {
|
|
4238
4238
|
c() {
|
|
4239
|
-
n && n.c(), e =
|
|
4239
|
+
n && n.c(), e = ee();
|
|
4240
4240
|
},
|
|
4241
4241
|
m(i, o) {
|
|
4242
4242
|
n && n.m(i, o), p(i, e, o), r = !0;
|
|
@@ -4259,7 +4259,7 @@ function po(t) {
|
|
|
4259
4259
|
}
|
|
4260
4260
|
};
|
|
4261
4261
|
}
|
|
4262
|
-
function
|
|
4262
|
+
function _o(t) {
|
|
4263
4263
|
let e, r;
|
|
4264
4264
|
return e = new ao({}), {
|
|
4265
4265
|
c() {
|
|
@@ -4279,7 +4279,7 @@ function Ao(t) {
|
|
|
4279
4279
|
}
|
|
4280
4280
|
};
|
|
4281
4281
|
}
|
|
4282
|
-
function
|
|
4282
|
+
function Ao(t) {
|
|
4283
4283
|
let e, r;
|
|
4284
4284
|
return e = new mo({}), {
|
|
4285
4285
|
c() {
|
|
@@ -4307,7 +4307,7 @@ function ho(t) {
|
|
|
4307
4307
|
t[3]
|
|
4308
4308
|
) }
|
|
4309
4309
|
});
|
|
4310
|
-
const c = [
|
|
4310
|
+
const c = [Ao, _o], a = [];
|
|
4311
4311
|
function f(d, E) {
|
|
4312
4312
|
return E & /*purchases*/
|
|
4313
4313
|
2 && (n = null), n == null && (n = !!/*purchases*/
|
|
@@ -4315,7 +4315,7 @@ function ho(t) {
|
|
|
4315
4315
|
}
|
|
4316
4316
|
return i = f(t, -1), o = a[i] = c[i](t), {
|
|
4317
4317
|
c() {
|
|
4318
|
-
w(e.$$.fragment), r = T(), o.c(), s =
|
|
4318
|
+
w(e.$$.fragment), r = T(), o.c(), s = ee();
|
|
4319
4319
|
},
|
|
4320
4320
|
m(d, E) {
|
|
4321
4321
|
I(e, d, E), p(d, r, E), a[i].m(d, E), p(d, s, E), l = !0;
|
|
@@ -4325,9 +4325,9 @@ function ho(t) {
|
|
|
4325
4325
|
E & /*brandingInfo*/
|
|
4326
4326
|
8 && (v.brandingInfo = /*brandingInfo*/
|
|
4327
4327
|
d[3]), e.$set(v);
|
|
4328
|
-
let
|
|
4329
|
-
i = f(d, E), i !==
|
|
4330
|
-
a[
|
|
4328
|
+
let A = i;
|
|
4329
|
+
i = f(d, E), i !== A && (L(), m(a[A], 1, 1, () => {
|
|
4330
|
+
a[A] = null;
|
|
4331
4331
|
}), x(), o = a[i], o || (o = a[i] = c[i](d), o.c()), u(o, 1), o.m(s.parentNode, s));
|
|
4332
4332
|
},
|
|
4333
4333
|
i(d) {
|
|
@@ -4427,7 +4427,7 @@ function gt(t) {
|
|
|
4427
4427
|
}
|
|
4428
4428
|
function pt(t) {
|
|
4429
4429
|
let e, r;
|
|
4430
|
-
return e = new
|
|
4430
|
+
return e = new Qi({
|
|
4431
4431
|
props: {
|
|
4432
4432
|
onContinue: (
|
|
4433
4433
|
/*handleContinue*/
|
|
@@ -4466,7 +4466,7 @@ function pt(t) {
|
|
|
4466
4466
|
}
|
|
4467
4467
|
};
|
|
4468
4468
|
}
|
|
4469
|
-
function
|
|
4469
|
+
function _t(t) {
|
|
4470
4470
|
let e, r;
|
|
4471
4471
|
return e = new hi({
|
|
4472
4472
|
props: {
|
|
@@ -4517,7 +4517,7 @@ function At(t) {
|
|
|
4517
4517
|
}
|
|
4518
4518
|
};
|
|
4519
4519
|
}
|
|
4520
|
-
function
|
|
4520
|
+
function At(t) {
|
|
4521
4521
|
let e, r;
|
|
4522
4522
|
return e = new je({}), {
|
|
4523
4523
|
c() {
|
|
@@ -4590,7 +4590,7 @@ function ht(t) {
|
|
|
4590
4590
|
}
|
|
4591
4591
|
function Et(t) {
|
|
4592
4592
|
let e, r;
|
|
4593
|
-
return e = new
|
|
4593
|
+
return e = new Mr({
|
|
4594
4594
|
props: {
|
|
4595
4595
|
brandingInfo: (
|
|
4596
4596
|
/*brandingInfo*/
|
|
@@ -4642,23 +4642,23 @@ function Io(t) {
|
|
|
4642
4642
|
/*paymentInfoCollectionMetadata*/
|
|
4643
4643
|
t[4] && /*state*/
|
|
4644
4644
|
(t[6] === "needs-payment-info" || /*state*/
|
|
4645
|
-
t[6] === "polling-purchase-status") &&
|
|
4645
|
+
t[6] === "polling-purchase-status") && _t(t)
|
|
4646
4646
|
), v = (
|
|
4647
4647
|
/*state*/
|
|
4648
|
-
t[6] === "loading" &&
|
|
4649
|
-
),
|
|
4648
|
+
t[6] === "loading" && At()
|
|
4649
|
+
), A = (
|
|
4650
4650
|
/*state*/
|
|
4651
4651
|
t[6] === "error" && ht(t)
|
|
4652
|
-
),
|
|
4652
|
+
), Q = (
|
|
4653
4653
|
/*state*/
|
|
4654
4654
|
t[6] === "success" && Et(t)
|
|
4655
4655
|
);
|
|
4656
4656
|
return {
|
|
4657
4657
|
c() {
|
|
4658
|
-
a && a.c(), e = T(), f && f.c(), r = T(), d && d.c(), n = T(), E && E.c(), i = T(), v && v.c(), o = T(),
|
|
4658
|
+
a && a.c(), e = T(), f && f.c(), r = T(), d && d.c(), n = T(), E && E.c(), i = T(), v && v.c(), o = T(), A && A.c(), s = T(), Q && Q.c(), l = ee();
|
|
4659
4659
|
},
|
|
4660
4660
|
m(h, y) {
|
|
4661
|
-
a && a.m(h, y), p(h, e, y), f && f.m(h, y), p(h, r, y), d && d.m(h, y), p(h, n, y), E && E.m(h, y), p(h, i, y), v && v.m(h, y), p(h, o, y),
|
|
4661
|
+
a && a.m(h, y), p(h, e, y), f && f.m(h, y), p(h, r, y), d && d.m(h, y), p(h, n, y), E && E.m(h, y), p(h, i, y), v && v.m(h, y), p(h, o, y), A && A.m(h, y), p(h, s, y), Q && Q.m(h, y), p(h, l, y), c = !0;
|
|
4662
4662
|
},
|
|
4663
4663
|
p(h, y) {
|
|
4664
4664
|
/*state*/
|
|
@@ -4680,30 +4680,30 @@ function Io(t) {
|
|
|
4680
4680
|
h[4] && /*state*/
|
|
4681
4681
|
(h[6] === "needs-payment-info" || /*state*/
|
|
4682
4682
|
h[6] === "polling-purchase-status") ? E ? (E.p(h, y), y & /*paymentInfoCollectionMetadata, state*/
|
|
4683
|
-
80 && u(E, 1)) : (E =
|
|
4683
|
+
80 && u(E, 1)) : (E = _t(h), E.c(), u(E, 1), E.m(i.parentNode, i)) : E && (L(), m(E, 1, 1, () => {
|
|
4684
4684
|
E = null;
|
|
4685
4685
|
}), x()), /*state*/
|
|
4686
4686
|
h[6] === "loading" ? v ? y & /*state*/
|
|
4687
|
-
64 && u(v, 1) : (v =
|
|
4687
|
+
64 && u(v, 1) : (v = At(), v.c(), u(v, 1), v.m(o.parentNode, o)) : v && (L(), m(v, 1, 1, () => {
|
|
4688
4688
|
v = null;
|
|
4689
4689
|
}), x()), /*state*/
|
|
4690
|
-
h[6] === "error" ?
|
|
4691
|
-
64 && u(
|
|
4692
|
-
|
|
4690
|
+
h[6] === "error" ? A ? (A.p(h, y), y & /*state*/
|
|
4691
|
+
64 && u(A, 1)) : (A = ht(h), A.c(), u(A, 1), A.m(s.parentNode, s)) : A && (L(), m(A, 1, 1, () => {
|
|
4692
|
+
A = null;
|
|
4693
4693
|
}), x()), /*state*/
|
|
4694
|
-
h[6] === "success" ?
|
|
4695
|
-
64 && u(
|
|
4696
|
-
|
|
4694
|
+
h[6] === "success" ? Q ? (Q.p(h, y), y & /*state*/
|
|
4695
|
+
64 && u(Q, 1)) : (Q = Et(h), Q.c(), u(Q, 1), Q.m(l.parentNode, l)) : Q && (L(), m(Q, 1, 1, () => {
|
|
4696
|
+
Q = null;
|
|
4697
4697
|
}), x());
|
|
4698
4698
|
},
|
|
4699
4699
|
i(h) {
|
|
4700
|
-
c || (u(a), u(f), u(d), u(E), u(v), u(
|
|
4700
|
+
c || (u(a), u(f), u(d), u(E), u(v), u(A), u(Q), c = !0);
|
|
4701
4701
|
},
|
|
4702
4702
|
o(h) {
|
|
4703
|
-
m(a), m(f), m(d), m(E), m(v), m(
|
|
4703
|
+
m(a), m(f), m(d), m(E), m(v), m(A), m(Q), c = !1;
|
|
4704
4704
|
},
|
|
4705
4705
|
d(h) {
|
|
4706
|
-
h && (g(e), g(r), g(n), g(i), g(o), g(s), g(l)), a && a.d(h), f && f.d(h), d && d.d(h), E && E.d(h), v && v.d(h),
|
|
4706
|
+
h && (g(e), g(r), g(n), g(i), g(o), g(s), g(l)), a && a.d(h), f && f.d(h), d && d.d(h), E && E.d(h), v && v.d(h), A && A.d(h), Q && Q.d(h);
|
|
4707
4707
|
}
|
|
4708
4708
|
};
|
|
4709
4709
|
}
|
|
@@ -4715,14 +4715,14 @@ function bo(t) {
|
|
|
4715
4715
|
t[6]
|
|
4716
4716
|
)
|
|
4717
4717
|
), n, i, o, s, l = r && ft(t);
|
|
4718
|
-
return o = new
|
|
4718
|
+
return o = new Nt({
|
|
4719
4719
|
props: {
|
|
4720
4720
|
$$slots: { default: [Io] },
|
|
4721
4721
|
$$scope: { ctx: t }
|
|
4722
4722
|
}
|
|
4723
4723
|
}), {
|
|
4724
4724
|
c() {
|
|
4725
|
-
e = k("div"), l && l.c(), n = T(), i = k("div"), w(o.$$.fragment),
|
|
4725
|
+
e = k("div"), l && l.c(), n = T(), i = k("div"), w(o.$$.fragment), _(i, "class", "rcb-ui-main svelte-13pdaik"), _(e, "class", "rcb-ui-layout svelte-13pdaik"), _(
|
|
4726
4726
|
e,
|
|
4727
4727
|
"style",
|
|
4728
4728
|
/*colorVariables*/
|
|
@@ -4770,7 +4770,7 @@ function wo(t) {
|
|
|
4770
4770
|
}
|
|
4771
4771
|
}), {
|
|
4772
4772
|
c() {
|
|
4773
|
-
e = k("div"), w(r.$$.fragment),
|
|
4773
|
+
e = k("div"), w(r.$$.fragment), _(e, "class", "rcb-ui-container svelte-13pdaik");
|
|
4774
4774
|
},
|
|
4775
4775
|
m(i, o) {
|
|
4776
4776
|
p(i, e, o), I(r, e, null), n = !0;
|
|
@@ -4796,8 +4796,8 @@ function wo(t) {
|
|
|
4796
4796
|
function ko(t, e, r) {
|
|
4797
4797
|
var We;
|
|
4798
4798
|
let { asModal: n = !0 } = e, { customerEmail: i } = e, { appUserId: o } = e, { rcPackage: s } = e, { onFinished: l } = e, { onError: c } = e, { onClose: a } = e, { purchases: f } = e, { backend: d } = e, { purchaseOperationHelper: E } = e;
|
|
4799
|
-
const v = Object.entries(
|
|
4800
|
-
let
|
|
4799
|
+
const v = Object.entries(Ae).map(([C, Le]) => `--rc-color-${C}: ${Le}`).join("; ");
|
|
4800
|
+
let A = null, Q = null, h = null, y = null;
|
|
4801
4801
|
const F = ((We = s.rcBillingProduct) == null ? void 0 : We.identifier) ?? null;
|
|
4802
4802
|
let $ = "present-offer";
|
|
4803
4803
|
const de = [
|
|
@@ -4809,14 +4809,14 @@ function ko(t, e, r) {
|
|
|
4809
4809
|
"loading"
|
|
4810
4810
|
];
|
|
4811
4811
|
Se(async () => {
|
|
4812
|
-
if (r(2,
|
|
4813
|
-
i ?
|
|
4812
|
+
if (r(2, A = s.rcBillingProduct), r(3, Q = await d.getBrandingInfo()), $ === "present-offer") {
|
|
4813
|
+
i ? ie() : r(6, $ = "needs-auth-info");
|
|
4814
4814
|
return;
|
|
4815
4815
|
}
|
|
4816
4816
|
});
|
|
4817
4817
|
const ve = () => {
|
|
4818
4818
|
a();
|
|
4819
|
-
},
|
|
4819
|
+
}, ie = () => {
|
|
4820
4820
|
if (F === null) {
|
|
4821
4821
|
W(new G(S.ErrorSettingUpPurchase, "Product ID was not set before purchase."));
|
|
4822
4822
|
return;
|
|
@@ -4826,21 +4826,21 @@ function ko(t, e, r) {
|
|
|
4826
4826
|
W(new G(S.MissingEmailError));
|
|
4827
4827
|
return;
|
|
4828
4828
|
}
|
|
4829
|
-
E.startPurchase(o, F, i, s.rcBillingProduct.presentedOfferingIdentifier).then((
|
|
4830
|
-
if (
|
|
4831
|
-
r(6, $ = "needs-payment-info"), r(4, h =
|
|
4829
|
+
E.startPurchase(o, F, i, s.rcBillingProduct.presentedOfferingIdentifier).then((C) => {
|
|
4830
|
+
if (C.next_action === "collect_payment_info") {
|
|
4831
|
+
r(6, $ = "needs-payment-info"), r(4, h = C);
|
|
4832
4832
|
return;
|
|
4833
4833
|
}
|
|
4834
|
-
if (
|
|
4834
|
+
if (C.next_action === "completed") {
|
|
4835
4835
|
r(6, $ = "success");
|
|
4836
4836
|
return;
|
|
4837
4837
|
}
|
|
4838
|
-
}).catch((
|
|
4839
|
-
W(new G(S.ErrorSettingUpPurchase,
|
|
4838
|
+
}).catch((C) => {
|
|
4839
|
+
W(new G(S.ErrorSettingUpPurchase, C.message, C.underlyingErrorMessage));
|
|
4840
4840
|
});
|
|
4841
|
-
}, z = (
|
|
4841
|
+
}, z = (C) => {
|
|
4842
4842
|
if ($ === "needs-auth-info") {
|
|
4843
|
-
|
|
4843
|
+
C && (r(13, i = C.email), r(6, $ = "processing-auth-info")), ie();
|
|
4844
4844
|
return;
|
|
4845
4845
|
}
|
|
4846
4846
|
if ($ === "needs-payment-info") {
|
|
@@ -4856,18 +4856,18 @@ function ko(t, e, r) {
|
|
|
4856
4856
|
return;
|
|
4857
4857
|
}
|
|
4858
4858
|
r(6, $ = "success");
|
|
4859
|
-
}, W = (
|
|
4860
|
-
r(5, y =
|
|
4859
|
+
}, W = (C) => {
|
|
4860
|
+
r(5, y = C), r(6, $ = "error");
|
|
4861
4861
|
}, St = () => {
|
|
4862
4862
|
c(y ?? new G(S.UnknownError, "Unknown error without state set."));
|
|
4863
4863
|
};
|
|
4864
|
-
return t.$$set = (
|
|
4865
|
-
"asModal" in
|
|
4864
|
+
return t.$$set = (C) => {
|
|
4865
|
+
"asModal" in C && r(0, n = C.asModal), "customerEmail" in C && r(13, i = C.customerEmail), "appUserId" in C && r(14, o = C.appUserId), "rcPackage" in C && r(15, s = C.rcPackage), "onFinished" in C && r(16, l = C.onFinished), "onError" in C && r(17, c = C.onError), "onClose" in C && r(18, a = C.onClose), "purchases" in C && r(1, f = C.purchases), "backend" in C && r(19, d = C.backend), "purchaseOperationHelper" in C && r(20, E = C.purchaseOperationHelper);
|
|
4866
4866
|
}, [
|
|
4867
4867
|
n,
|
|
4868
4868
|
f,
|
|
4869
|
-
|
|
4870
|
-
|
|
4869
|
+
A,
|
|
4870
|
+
Q,
|
|
4871
4871
|
h,
|
|
4872
4872
|
y,
|
|
4873
4873
|
$,
|
|
@@ -4889,7 +4889,7 @@ function ko(t, e, r) {
|
|
|
4889
4889
|
}
|
|
4890
4890
|
class $o extends U {
|
|
4891
4891
|
constructor(e) {
|
|
4892
|
-
super(),
|
|
4892
|
+
super(), N(
|
|
4893
4893
|
this,
|
|
4894
4894
|
e,
|
|
4895
4895
|
ko,
|
|
@@ -4914,12 +4914,32 @@ class $o extends U {
|
|
|
4914
4914
|
function vo(t) {
|
|
4915
4915
|
return t.expires_date == null ? !0 : new Date(t.expires_date) > /* @__PURE__ */ new Date();
|
|
4916
4916
|
}
|
|
4917
|
-
function Bo(t, e, r) {
|
|
4917
|
+
function Bo(t, e, r, n) {
|
|
4918
|
+
const i = e.product_identifier;
|
|
4919
|
+
if (i in r)
|
|
4920
|
+
return yo(
|
|
4921
|
+
t,
|
|
4922
|
+
e,
|
|
4923
|
+
r[i]
|
|
4924
|
+
);
|
|
4925
|
+
if (i in n)
|
|
4926
|
+
return Do(
|
|
4927
|
+
t,
|
|
4928
|
+
e,
|
|
4929
|
+
n[i]
|
|
4930
|
+
);
|
|
4931
|
+
throw new Z(
|
|
4932
|
+
re.CustomerInfoError,
|
|
4933
|
+
"Could not find entitlement product in subscriptions or non-subscriptions."
|
|
4934
|
+
);
|
|
4935
|
+
}
|
|
4936
|
+
function yo(t, e, r) {
|
|
4918
4937
|
return {
|
|
4919
4938
|
identifier: t,
|
|
4920
4939
|
isActive: vo(e),
|
|
4921
|
-
willRenew:
|
|
4940
|
+
willRenew: Mo(e, r),
|
|
4922
4941
|
store: (r == null ? void 0 : r.store) ?? "unknown",
|
|
4942
|
+
latestPurchaseDate: new Date(e.purchase_date),
|
|
4923
4943
|
originalPurchaseDate: new Date(e.purchase_date),
|
|
4924
4944
|
expirationDate: Te(e.expires_date),
|
|
4925
4945
|
productIdentifier: e.product_identifier,
|
|
@@ -4933,34 +4953,59 @@ function Bo(t, e, r) {
|
|
|
4933
4953
|
periodType: (r == null ? void 0 : r.period_type) ?? "normal"
|
|
4934
4954
|
};
|
|
4935
4955
|
}
|
|
4936
|
-
function
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4956
|
+
function Do(t, e, r) {
|
|
4957
|
+
return {
|
|
4958
|
+
identifier: t,
|
|
4959
|
+
isActive: !0,
|
|
4960
|
+
willRenew: !1,
|
|
4961
|
+
store: r.store,
|
|
4962
|
+
latestPurchaseDate: new Date(e.purchase_date),
|
|
4963
|
+
originalPurchaseDate: new Date(
|
|
4964
|
+
r.original_purchase_date
|
|
4965
|
+
),
|
|
4966
|
+
expirationDate: null,
|
|
4967
|
+
productIdentifier: e.product_identifier,
|
|
4968
|
+
unsubscribeDetectedAt: null,
|
|
4969
|
+
billingIssueDetectedAt: null,
|
|
4970
|
+
isSandbox: r.is_sandbox,
|
|
4971
|
+
periodType: "normal"
|
|
4972
|
+
};
|
|
4973
|
+
}
|
|
4974
|
+
function Co(t, e, r) {
|
|
4975
|
+
const n = {}, i = {};
|
|
4976
|
+
for (const o in t) {
|
|
4977
|
+
const s = Bo(
|
|
4978
|
+
o,
|
|
4979
|
+
t[o],
|
|
4980
|
+
e,
|
|
4981
|
+
r
|
|
4943
4982
|
);
|
|
4944
|
-
|
|
4983
|
+
n[o] = s, s.isActive && (i[o] = s);
|
|
4945
4984
|
}
|
|
4946
4985
|
return {
|
|
4947
|
-
all:
|
|
4948
|
-
active:
|
|
4986
|
+
all: n,
|
|
4987
|
+
active: i
|
|
4949
4988
|
};
|
|
4950
4989
|
}
|
|
4951
4990
|
function Te(t) {
|
|
4952
4991
|
return t == null ? null : new Date(t);
|
|
4953
4992
|
}
|
|
4954
|
-
function
|
|
4955
|
-
const e =
|
|
4993
|
+
function Qo(t) {
|
|
4994
|
+
const e = To(t), r = t.subscriber, n = Uo(
|
|
4995
|
+
r.non_subscriptions
|
|
4996
|
+
);
|
|
4956
4997
|
return {
|
|
4957
|
-
entitlements:
|
|
4998
|
+
entitlements: Co(
|
|
4958
4999
|
r.entitlements,
|
|
4959
|
-
r.subscriptions
|
|
5000
|
+
r.subscriptions,
|
|
5001
|
+
n
|
|
4960
5002
|
),
|
|
4961
5003
|
allExpirationDatesByProduct: e,
|
|
4962
|
-
allPurchaseDatesByProduct:
|
|
4963
|
-
|
|
5004
|
+
allPurchaseDatesByProduct: Po(
|
|
5005
|
+
t,
|
|
5006
|
+
n
|
|
5007
|
+
),
|
|
5008
|
+
activeSubscriptions: No(e),
|
|
4964
5009
|
managementURL: r.management_url,
|
|
4965
5010
|
requestDate: new Date(t.request_date),
|
|
4966
5011
|
firstSeenDate: new Date(r.first_seen),
|
|
@@ -4970,23 +5015,27 @@ function Do(t) {
|
|
|
4970
5015
|
originalAppUserId: t.subscriber.original_app_user_id
|
|
4971
5016
|
};
|
|
4972
5017
|
}
|
|
4973
|
-
function
|
|
5018
|
+
function Mo(t, e) {
|
|
4974
5019
|
if (e == null)
|
|
4975
5020
|
return !1;
|
|
4976
5021
|
const r = e.store == "promotional", n = t.expires_date == null, i = e.unsubscribe_detected_at != null, o = e.billing_issues_detected_at != null;
|
|
4977
5022
|
return !(r || n || i || o);
|
|
4978
5023
|
}
|
|
4979
|
-
function
|
|
4980
|
-
const
|
|
4981
|
-
for (const
|
|
4982
|
-
const
|
|
4983
|
-
|
|
4984
|
-
|
|
5024
|
+
function Po(t, e) {
|
|
5025
|
+
const r = {};
|
|
5026
|
+
for (const n in t.subscriber.subscriptions) {
|
|
5027
|
+
const i = t.subscriber.subscriptions[n];
|
|
5028
|
+
r[n] = new Date(
|
|
5029
|
+
i.purchase_date
|
|
4985
5030
|
);
|
|
4986
5031
|
}
|
|
4987
|
-
|
|
5032
|
+
for (const n in e) {
|
|
5033
|
+
const i = e[n].purchase_date;
|
|
5034
|
+
i == null ? r[n] = null : r[n] = new Date(i);
|
|
5035
|
+
}
|
|
5036
|
+
return r;
|
|
4988
5037
|
}
|
|
4989
|
-
function
|
|
5038
|
+
function To(t) {
|
|
4990
5039
|
const e = {};
|
|
4991
5040
|
for (const r in t.subscriber.subscriptions) {
|
|
4992
5041
|
const n = t.subscriber.subscriptions[r];
|
|
@@ -4996,7 +5045,7 @@ function Co(t) {
|
|
|
4996
5045
|
}
|
|
4997
5046
|
return e;
|
|
4998
5047
|
}
|
|
4999
|
-
function
|
|
5048
|
+
function No(t) {
|
|
5000
5049
|
const e = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Date();
|
|
5001
5050
|
for (const n in t) {
|
|
5002
5051
|
const i = t[n];
|
|
@@ -5004,14 +5053,24 @@ function Po(t) {
|
|
|
5004
5053
|
}
|
|
5005
5054
|
return e;
|
|
5006
5055
|
}
|
|
5007
|
-
function
|
|
5056
|
+
function Uo(t) {
|
|
5057
|
+
const e = {};
|
|
5058
|
+
for (const r in t) {
|
|
5059
|
+
if (t[r].length === 0)
|
|
5060
|
+
continue;
|
|
5061
|
+
const n = t[r].length;
|
|
5062
|
+
e[r] = t[r][n - 1];
|
|
5063
|
+
}
|
|
5064
|
+
return e;
|
|
5065
|
+
}
|
|
5066
|
+
function Ro(t) {
|
|
5008
5067
|
if (!t.startsWith("rcb_"))
|
|
5009
|
-
throw new
|
|
5010
|
-
|
|
5068
|
+
throw new Z(
|
|
5069
|
+
re.InvalidCredentialsError,
|
|
5011
5070
|
"Invalid API key. Use your RevenueCat Billing API key."
|
|
5012
5071
|
);
|
|
5013
5072
|
}
|
|
5014
|
-
function
|
|
5073
|
+
function So(t) {
|
|
5015
5074
|
if ((/* @__PURE__ */ new Set([
|
|
5016
5075
|
"no_user",
|
|
5017
5076
|
"null",
|
|
@@ -5025,8 +5084,8 @@ function Ro(t) {
|
|
|
5025
5084
|
"undefined",
|
|
5026
5085
|
"unknown"
|
|
5027
5086
|
])).has(t) || t.includes("/"))
|
|
5028
|
-
throw new
|
|
5029
|
-
|
|
5087
|
+
throw new Z(
|
|
5088
|
+
re.InvalidAppUserIdError,
|
|
5030
5089
|
'Provided user id: "' + t + '" is not valid. See https://www.revenuecat.com/docs/customers/user-ids#tips-for-setting-app-user-ids for more information.'
|
|
5031
5090
|
);
|
|
5032
5091
|
}
|
|
@@ -5034,15 +5093,15 @@ const J = class J {
|
|
|
5034
5093
|
/** @internal */
|
|
5035
5094
|
constructor(e, r) {
|
|
5036
5095
|
/** @internal */
|
|
5037
|
-
|
|
5096
|
+
M(this, "_API_KEY");
|
|
5038
5097
|
/** @internal */
|
|
5039
|
-
|
|
5098
|
+
M(this, "_appUserId");
|
|
5040
5099
|
/** @internal */
|
|
5041
|
-
|
|
5100
|
+
M(this, "backend");
|
|
5042
5101
|
/** @internal */
|
|
5043
|
-
|
|
5102
|
+
M(this, "purchaseOperationHelper");
|
|
5044
5103
|
/** @internal */
|
|
5045
|
-
|
|
5104
|
+
M(this, "toOfferings", (e, r) => {
|
|
5046
5105
|
const n = e.offerings.find(
|
|
5047
5106
|
(l) => l.identifier === e.current_offering_id
|
|
5048
5107
|
) ?? null, i = {};
|
|
@@ -5098,7 +5157,7 @@ const J = class J {
|
|
|
5098
5157
|
static configure(e, r) {
|
|
5099
5158
|
return J.instance !== void 0 ? (V.warnLog(
|
|
5100
5159
|
"Purchases is already initialized. Ignoring and returning existing instance."
|
|
5101
|
-
), J.getSharedInstance()) : (
|
|
5160
|
+
), J.getSharedInstance()) : (Ro(e), So(r), J.instance = new J(e, r), J.getSharedInstance());
|
|
5102
5161
|
}
|
|
5103
5162
|
/**
|
|
5104
5163
|
* Fetch the configured offerings for this user. You can configure these
|
|
@@ -5160,10 +5219,10 @@ const J = class J {
|
|
|
5160
5219
|
});
|
|
5161
5220
|
},
|
|
5162
5221
|
onClose: () => {
|
|
5163
|
-
o.innerHTML = "", V.debugLog("Purchase cancelled by user"), a(new
|
|
5222
|
+
o.innerHTML = "", V.debugLog("Purchase cancelled by user"), a(new Z(re.UserCancelledError));
|
|
5164
5223
|
},
|
|
5165
5224
|
onError: (f) => {
|
|
5166
|
-
o.innerHTML = "", a(
|
|
5225
|
+
o.innerHTML = "", a(Z.getForPurchasesFlowError(f));
|
|
5167
5226
|
},
|
|
5168
5227
|
purchases: this,
|
|
5169
5228
|
backend: this.backend,
|
|
@@ -5227,17 +5286,17 @@ const J = class J {
|
|
|
5227
5286
|
/** @internal */
|
|
5228
5287
|
async _getCustomerInfoForUserId(e) {
|
|
5229
5288
|
const r = await this.backend.getCustomerInfo(e);
|
|
5230
|
-
return
|
|
5289
|
+
return Qo(r);
|
|
5231
5290
|
}
|
|
5232
5291
|
};
|
|
5233
5292
|
/** @internal */
|
|
5234
|
-
|
|
5293
|
+
M(J, "instance");
|
|
5235
5294
|
let It = J;
|
|
5236
5295
|
export {
|
|
5237
|
-
|
|
5296
|
+
re as ErrorCode,
|
|
5238
5297
|
j as LogLevel,
|
|
5239
5298
|
Ft as PackageType,
|
|
5240
5299
|
It as Purchases,
|
|
5241
|
-
|
|
5300
|
+
Z as PurchasesError,
|
|
5242
5301
|
Vi as UninitializedPurchasesError
|
|
5243
5302
|
};
|