@revenuecat/purchases-js 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Purchases.es.js +707 -655
- package/dist/Purchases.umd.js +4 -4
- package/package.json +1 -1
package/dist/Purchases.es.js
CHANGED
|
@@ -47,7 +47,7 @@ class G {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
Q(G, "logLevel", W.Silent);
|
|
50
|
-
var
|
|
50
|
+
var ne = /* @__PURE__ */ ((t) => (t.Year = "year", t.Month = "month", t.Week = "week", t.Day = "day", t))(ne || {});
|
|
51
51
|
function Je(t) {
|
|
52
52
|
const e = t.match(/^PT?([0-9]+)([MDYW])$/);
|
|
53
53
|
if (!e || e.length < 3)
|
|
@@ -92,13 +92,13 @@ const Ve = (t, e) => {
|
|
|
92
92
|
const e = t.number;
|
|
93
93
|
if (e === 1)
|
|
94
94
|
switch (t.unit) {
|
|
95
|
-
case
|
|
95
|
+
case ne.Year:
|
|
96
96
|
return "yearly";
|
|
97
|
-
case
|
|
97
|
+
case ne.Month:
|
|
98
98
|
return "monthly";
|
|
99
|
-
case
|
|
99
|
+
case ne.Week:
|
|
100
100
|
return "weekly";
|
|
101
|
-
case
|
|
101
|
+
case ne.Day:
|
|
102
102
|
return "daily";
|
|
103
103
|
}
|
|
104
104
|
else
|
|
@@ -107,13 +107,13 @@ const Ve = (t, e) => {
|
|
|
107
107
|
const e = t.number;
|
|
108
108
|
if (e === 1)
|
|
109
109
|
switch (t.unit) {
|
|
110
|
-
case
|
|
110
|
+
case ne.Year:
|
|
111
111
|
return "1 year";
|
|
112
|
-
case
|
|
112
|
+
case ne.Month:
|
|
113
113
|
return "1 month";
|
|
114
|
-
case
|
|
114
|
+
case ne.Week:
|
|
115
115
|
return "1 week";
|
|
116
|
-
case
|
|
116
|
+
case ne.Day:
|
|
117
117
|
return "1 day";
|
|
118
118
|
}
|
|
119
119
|
else
|
|
@@ -314,7 +314,7 @@ function Ee(t) {
|
|
|
314
314
|
function C(t, e) {
|
|
315
315
|
t.appendChild(e);
|
|
316
316
|
}
|
|
317
|
-
function
|
|
317
|
+
function x(t, e, r) {
|
|
318
318
|
const n = ln(t);
|
|
319
319
|
if (!n.getElementById(e)) {
|
|
320
320
|
const i = k("style");
|
|
@@ -347,14 +347,14 @@ function g(t) {
|
|
|
347
347
|
function k(t) {
|
|
348
348
|
return document.createElement(t);
|
|
349
349
|
}
|
|
350
|
-
function
|
|
350
|
+
function L(t) {
|
|
351
351
|
return document.createTextNode(t);
|
|
352
352
|
}
|
|
353
353
|
function P() {
|
|
354
|
-
return
|
|
354
|
+
return L(" ");
|
|
355
355
|
}
|
|
356
|
-
function
|
|
357
|
-
return
|
|
356
|
+
function te() {
|
|
357
|
+
return L("");
|
|
358
358
|
}
|
|
359
359
|
function ke(t, e, r, n) {
|
|
360
360
|
return t.addEventListener(e, r, n), () => t.removeEventListener(e, r, n);
|
|
@@ -402,16 +402,16 @@ let be;
|
|
|
402
402
|
function Ae(t) {
|
|
403
403
|
be = t;
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function Se() {
|
|
406
406
|
if (!be)
|
|
407
407
|
throw new Error("Function called outside component initialization");
|
|
408
408
|
return be;
|
|
409
409
|
}
|
|
410
|
-
function
|
|
411
|
-
|
|
410
|
+
function Oe(t) {
|
|
411
|
+
Se().$$.on_mount.push(t);
|
|
412
412
|
}
|
|
413
413
|
function _n() {
|
|
414
|
-
const t =
|
|
414
|
+
const t = Se();
|
|
415
415
|
return (e, r, { cancelable: n = !1 } = {}) => {
|
|
416
416
|
const i = t.$$.callbacks[e];
|
|
417
417
|
if (i) {
|
|
@@ -429,10 +429,10 @@ function _n() {
|
|
|
429
429
|
};
|
|
430
430
|
}
|
|
431
431
|
function An(t, e) {
|
|
432
|
-
return
|
|
432
|
+
return Se().$$.context.set(t, e), e;
|
|
433
433
|
}
|
|
434
434
|
function hn(t) {
|
|
435
|
-
return
|
|
435
|
+
return Se().$$.context.get(t);
|
|
436
436
|
}
|
|
437
437
|
function Ct(t, e) {
|
|
438
438
|
const r = t.$$.callbacks[e.type];
|
|
@@ -451,7 +451,7 @@ function qe(t) {
|
|
|
451
451
|
function In(t) {
|
|
452
452
|
He.push(t);
|
|
453
453
|
}
|
|
454
|
-
const
|
|
454
|
+
const Fe = /* @__PURE__ */ new Set();
|
|
455
455
|
let ie = 0;
|
|
456
456
|
function Qt() {
|
|
457
457
|
if (ie !== 0)
|
|
@@ -470,13 +470,13 @@ function Qt() {
|
|
|
470
470
|
Ue.pop()();
|
|
471
471
|
for (let e = 0; e < le.length; e += 1) {
|
|
472
472
|
const r = le[e];
|
|
473
|
-
|
|
473
|
+
Fe.has(r) || (Fe.add(r), r());
|
|
474
474
|
}
|
|
475
475
|
le.length = 0;
|
|
476
476
|
} while (se.length);
|
|
477
477
|
for (; He.length; )
|
|
478
478
|
He.pop()();
|
|
479
|
-
Ke = !1,
|
|
479
|
+
Ke = !1, Fe.clear(), Ae(t);
|
|
480
480
|
}
|
|
481
481
|
function wn(t) {
|
|
482
482
|
if (t.fragment !== null) {
|
|
@@ -491,7 +491,7 @@ function kn(t) {
|
|
|
491
491
|
}
|
|
492
492
|
const Pe = /* @__PURE__ */ new Set();
|
|
493
493
|
let re;
|
|
494
|
-
function
|
|
494
|
+
function H() {
|
|
495
495
|
re = {
|
|
496
496
|
r: 0,
|
|
497
497
|
c: [],
|
|
@@ -499,7 +499,7 @@ function Y() {
|
|
|
499
499
|
// parent group
|
|
500
500
|
};
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function K() {
|
|
503
503
|
re.r || we(re.c), re = re.p;
|
|
504
504
|
}
|
|
505
505
|
function f(t, e) {
|
|
@@ -624,7 +624,7 @@ class U {
|
|
|
624
624
|
const yn = "4";
|
|
625
625
|
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(yn);
|
|
626
626
|
function Bn(t) {
|
|
627
|
-
|
|
627
|
+
x(t, "svelte-1bzqb13", ".rcb-modal-section.svelte-1bzqb13{padding:8px 0px;display:flex}section.rcb-modal-section.svelte-1bzqb13{flex-grow:1}.rcb-modal-section.svelte-1bzqb13:last-of-type{padding:0}");
|
|
628
628
|
}
|
|
629
629
|
function Ge(t) {
|
|
630
630
|
let e, r;
|
|
@@ -695,7 +695,7 @@ function Dn(t) {
|
|
|
695
695
|
);
|
|
696
696
|
return {
|
|
697
697
|
c() {
|
|
698
|
-
i && i.c(), r =
|
|
698
|
+
i && i.c(), r = te();
|
|
699
699
|
},
|
|
700
700
|
m(o, s) {
|
|
701
701
|
i && i.m(o, s), p(o, r, s), n = !0;
|
|
@@ -734,7 +734,7 @@ class ue extends U {
|
|
|
734
734
|
}
|
|
735
735
|
}
|
|
736
736
|
function Cn(t) {
|
|
737
|
-
|
|
737
|
+
x(t, "svelte-gf0gr5", ".rcb-pricing-info.svelte-gf0gr5{display:flex;flex-direction:column;margin-top:102px;font-weight:500}.rcb-product-price.svelte-gf0gr5{font-size:24px;margin:12px 0px}.rcb-product-price-after-trial.svelte-gf0gr5{margin-bottom:12px}.rcb-product-details.svelte-gf0gr5{opacity:0.6;list-style-type:disc;list-style-position:inside;margin:0px;padding:0px}@media screen and (max-width: 960px){.rcb-pricing-info.svelte-gf0gr5{margin-top:48px}}");
|
|
738
738
|
}
|
|
739
739
|
function Qn(t) {
|
|
740
740
|
let e = Wt(
|
|
@@ -743,7 +743,7 @@ function Qn(t) {
|
|
|
743
743
|
) + "", r, n;
|
|
744
744
|
return {
|
|
745
745
|
c() {
|
|
746
|
-
r =
|
|
746
|
+
r = L(e), n = L(" free trial");
|
|
747
747
|
},
|
|
748
748
|
m(i, o) {
|
|
749
749
|
p(i, r, o), p(i, n, o);
|
|
@@ -766,7 +766,7 @@ function Pn(t) {
|
|
|
766
766
|
) + "", o;
|
|
767
767
|
return {
|
|
768
768
|
c() {
|
|
769
|
-
r =
|
|
769
|
+
r = L(e), n = P(), o = L(i);
|
|
770
770
|
},
|
|
771
771
|
m(s, l) {
|
|
772
772
|
p(s, r, l), p(s, n, l), p(s, o, l);
|
|
@@ -807,7 +807,7 @@ function ct(t) {
|
|
|
807
807
|
) + "", i;
|
|
808
808
|
return {
|
|
809
809
|
c() {
|
|
810
|
-
e = k("li"), r =
|
|
810
|
+
e = k("li"), r = L("Renews "), i = L(n);
|
|
811
811
|
},
|
|
812
812
|
m(o, s) {
|
|
813
813
|
p(o, e, s), C(e, r), C(e, i);
|
|
@@ -844,25 +844,25 @@ function Nn(t) {
|
|
|
844
844
|
);
|
|
845
845
|
return {
|
|
846
846
|
c() {
|
|
847
|
-
e = k("div"), r = k("span"), i =
|
|
847
|
+
e = k("div"), r = k("span"), i = L(n), o = P(), s = k("span"), B && B.c(), l = P(), A && A.c(), c = P(), y && y.c(), a = P(), u = k("ul"), R && R.c(), d = P(), h = k("li"), h.textContent = "Continues until canceled", $ = P(), E = k("li"), E.textContent = "Cancel anytime", _(s, "class", "rcb-product-price svelte-gf0gr5"), _(u, "class", "rcb-product-details svelte-gf0gr5"), _(e, "class", "rcb-pricing-info svelte-gf0gr5");
|
|
848
848
|
},
|
|
849
|
-
m(
|
|
850
|
-
p(
|
|
849
|
+
m(F, S) {
|
|
850
|
+
p(F, e, S), C(e, r), C(r, i), C(e, o), C(e, s), B && B.m(s, null), C(s, l), A && A.m(s, null), C(e, c), y && y.m(e, null), C(e, a), C(e, u), R && R.m(u, null), C(u, d), C(u, h), C(u, $), C(u, E);
|
|
851
851
|
},
|
|
852
|
-
p(
|
|
852
|
+
p(F, S) {
|
|
853
853
|
var ye, Be;
|
|
854
|
-
|
|
854
|
+
S & /*productDetails*/
|
|
855
855
|
1 && n !== (n = /*productDetails*/
|
|
856
|
-
|
|
857
|
-
(ye =
|
|
858
|
-
((Be =
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
856
|
+
F[0].displayName + "") && ae(i, n), /*trial*/
|
|
857
|
+
(ye = F[1]) != null && ye.periodDuration && B.p(F, S), !/*trial*/
|
|
858
|
+
((Be = F[1]) != null && Be.periodDuration) && /*basePrice*/
|
|
859
|
+
F[2] && A.p(F, S), /*trial*/
|
|
860
|
+
F[1] && /*basePrice*/
|
|
861
|
+
F[2] && y.p(F, S), /*productDetails*/
|
|
862
|
+
F[0].normalPeriodDuration ? R ? R.p(F, S) : (R = ct(F), R.c(), R.m(u, d)) : R && (R.d(1), R = null);
|
|
863
863
|
},
|
|
864
|
-
d(
|
|
865
|
-
|
|
864
|
+
d(F) {
|
|
865
|
+
F && g(e), B && B.d(), A && A.d(), y && y.d(), R && R.d();
|
|
866
866
|
}
|
|
867
867
|
};
|
|
868
868
|
}
|
|
@@ -909,12 +909,12 @@ class Pt extends U {
|
|
|
909
909
|
super(), N(this, e, Rn, Un, T, { productDetails: 0, purchaseOption: 3 }, Cn);
|
|
910
910
|
}
|
|
911
911
|
}
|
|
912
|
-
const On = "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+PDUy3unzl67RPXXc56fnz4+/PbofcOHnr9/5f3x4UeffvYVqJuACP5m4IIJ+gfWgusN6KCCAN7WoITVVXjchBxqERAAIfkEBQQAAQAsDQADACAAEAAACKcAAwgcSDDAAwcFEypcSNDAAYY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AEAAACKYAAwgcSLAgwQcODCpcyNDAAYYQAzhpaIDhFYY+NOBY6HAhkyETFRLZ0CGKQgMVDV4RAoQKQxMdUpx8aJAJECYQnWzYcMQgSoNVgAy5CHGGhhI+aRIkMgRnxCohNvQoiLDgEyFDskQUuINDiK1Hfpgc+ETKQi0nVGxNkkSrwCw/hiBxu7XuFidAhARpgqWu3yxIhgApEtLvVipIgARBYthvlKaNFQYEADs=";
|
|
913
|
-
function
|
|
912
|
+
const Sn = "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+PDUy3unzl67RPXXc56fnz4+/PbofcOHnr9/5f3x4UeffvYVqJuACP5m4IIJ+gfWgusN6KCCAN7WoITVVXjchBxqERAAIfkEBQQAAQAsDQADACAAEAAACKcAAwgcSDDAAwcFEypcSNDAAYYQA2DZstCAAYZOKCqM8uNJxYcKa3DYsVBKECBYFFpU+MTDhiIMkQxBohJkwRYaUkDEEiQIlYQrCyLZ0MFJRCdAkgC1OZBEBxgRJRIBAqXgwYI8NoCwEjWAkyFDoorQ4KOrQCRLoqbQuZCKR7NdqzD5MaQKXIhZmAwBIqTJ3YVYogQZ8oMJ178Kk/A1YhfxQiRHjBYMCAAh+QQFBQABACwNAAMAIAAQAAAInQADCBxIMECGDAU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On(t) {
|
|
914
914
|
let e, r;
|
|
915
915
|
return {
|
|
916
916
|
c() {
|
|
917
|
-
e = k("img"), Z(e.src, r =
|
|
917
|
+
e = k("img"), Z(e.src, r = Sn) || _(e, "src", r), _(e, "alt", "spinner");
|
|
918
918
|
},
|
|
919
919
|
m(n, i) {
|
|
920
920
|
p(n, e, i);
|
|
@@ -929,13 +929,13 @@ function Sn(t) {
|
|
|
929
929
|
}
|
|
930
930
|
class Ln extends U {
|
|
931
931
|
constructor(e) {
|
|
932
|
-
super(), N(this, e, null,
|
|
932
|
+
super(), N(this, e, null, On, T, {});
|
|
933
933
|
}
|
|
934
934
|
}
|
|
935
|
-
function Fn(t) {
|
|
936
|
-
F(t, "svelte-1mxx341", ".rcb-modal-loader.svelte-1mxx341{width:100%;flex-grow:1;min-height:100%;display:flex;justify-content:center;align-items:center}");
|
|
937
|
-
}
|
|
938
935
|
function xn(t) {
|
|
936
|
+
x(t, "svelte-1mxx341", ".rcb-modal-loader.svelte-1mxx341{width:100%;flex-grow:1;min-height:100%;display:flex;justify-content:center;align-items:center}");
|
|
937
|
+
}
|
|
938
|
+
function Fn(t) {
|
|
939
939
|
let e, r, n;
|
|
940
940
|
return r = new Ln({}), {
|
|
941
941
|
c() {
|
|
@@ -958,16 +958,179 @@ function xn(t) {
|
|
|
958
958
|
}
|
|
959
959
|
class We extends U {
|
|
960
960
|
constructor(e) {
|
|
961
|
-
super(), N(this, e, null,
|
|
961
|
+
super(), N(this, e, null, Fn, T, {}, xn);
|
|
962
962
|
}
|
|
963
963
|
}
|
|
964
|
-
var
|
|
965
|
-
class
|
|
964
|
+
var ee = /* @__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))(ee || {});
|
|
965
|
+
class he {
|
|
966
|
+
static getPublicMessage(e) {
|
|
967
|
+
switch (e) {
|
|
968
|
+
case 0:
|
|
969
|
+
return "Unknown error.";
|
|
970
|
+
case 1:
|
|
971
|
+
return "Purchase was cancelled.";
|
|
972
|
+
case 2:
|
|
973
|
+
return "There was a problem with the store.";
|
|
974
|
+
case 3:
|
|
975
|
+
return "The device or user is not allowed to make the purchase.";
|
|
976
|
+
case 4:
|
|
977
|
+
return "One or more of the arguments provided are invalid.";
|
|
978
|
+
case 5:
|
|
979
|
+
return "The product is not available for purchase.";
|
|
980
|
+
case 6:
|
|
981
|
+
return "This product is already active for the user.";
|
|
982
|
+
case 7:
|
|
983
|
+
return "There is already another active subscriber using the same receipt.";
|
|
984
|
+
case 8:
|
|
985
|
+
return "The receipt is not valid.";
|
|
986
|
+
case 9:
|
|
987
|
+
return "The receipt is missing.";
|
|
988
|
+
case 10:
|
|
989
|
+
return "Error performing request.";
|
|
990
|
+
case 11:
|
|
991
|
+
return "There was a credentials issue. Check the underlying error for more details.";
|
|
992
|
+
case 12:
|
|
993
|
+
return "Received unexpected response from the backend.";
|
|
994
|
+
case 14:
|
|
995
|
+
return "The app user id is not valid.";
|
|
996
|
+
case 15:
|
|
997
|
+
return "The operation is already in progress.";
|
|
998
|
+
case 16:
|
|
999
|
+
return "There was an unknown backend error.";
|
|
1000
|
+
case 17:
|
|
1001
|
+
return "Apple Subscription Key is invalid or not present. In order to provide subscription offers, you must first generate a subscription key. Please see https://docs.revenuecat.com/docs/ios-subscription-offers for more info.";
|
|
1002
|
+
case 18:
|
|
1003
|
+
return "The User is ineligible for that action.";
|
|
1004
|
+
case 19:
|
|
1005
|
+
return "App does not have sufficient permissions to make purchases.";
|
|
1006
|
+
case 20:
|
|
1007
|
+
return "The payment is pending.";
|
|
1008
|
+
case 21:
|
|
1009
|
+
return "One or more of the attributes sent could not be saved.";
|
|
1010
|
+
case 22:
|
|
1011
|
+
return "Called logOut but the current user is anonymous.";
|
|
1012
|
+
case 23:
|
|
1013
|
+
return "There is an issue with your configuration. Check the underlying error for more details.";
|
|
1014
|
+
case 24:
|
|
1015
|
+
return "There was a problem with the operation. Looks like we doesn't support that yet. Check the underlying error for more details.";
|
|
1016
|
+
case 25:
|
|
1017
|
+
return "A request for subscriber attributes returned none.";
|
|
1018
|
+
case 28:
|
|
1019
|
+
return "There was a problem related to the customer info.";
|
|
1020
|
+
case 36:
|
|
1021
|
+
return "Request failed signature verification. Please see https://rev.cat/trusted-entitlements for more info.";
|
|
1022
|
+
}
|
|
1023
|
+
}
|
|
1024
|
+
static getErrorCodeForBackendErrorCode(e) {
|
|
1025
|
+
switch (e) {
|
|
1026
|
+
case 7101:
|
|
1027
|
+
return 2;
|
|
1028
|
+
case 7102:
|
|
1029
|
+
return 7;
|
|
1030
|
+
case 7103:
|
|
1031
|
+
return 8;
|
|
1032
|
+
case 7107:
|
|
1033
|
+
case 7224:
|
|
1034
|
+
case 7225:
|
|
1035
|
+
return 11;
|
|
1036
|
+
case 7105:
|
|
1037
|
+
case 7106:
|
|
1038
|
+
case 7814:
|
|
1039
|
+
return 4;
|
|
1040
|
+
case 7772:
|
|
1041
|
+
return 6;
|
|
1042
|
+
case 7220:
|
|
1043
|
+
return 14;
|
|
1044
|
+
case 7229:
|
|
1045
|
+
return 2;
|
|
1046
|
+
case 7230:
|
|
1047
|
+
case 7e3:
|
|
1048
|
+
return 23;
|
|
1049
|
+
case 7231:
|
|
1050
|
+
return 2;
|
|
1051
|
+
case 7232:
|
|
1052
|
+
return 18;
|
|
1053
|
+
case 7263:
|
|
1054
|
+
case 7264:
|
|
1055
|
+
return 21;
|
|
1056
|
+
case 7104:
|
|
1057
|
+
case 7234:
|
|
1058
|
+
case 7226:
|
|
1059
|
+
case 7110:
|
|
1060
|
+
return 12;
|
|
1061
|
+
case 7662:
|
|
1062
|
+
return 24;
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
static convertCodeToBackendErrorCode(e) {
|
|
1066
|
+
return e in Tt ? e : null;
|
|
1067
|
+
}
|
|
1068
|
+
static convertPurchaseFlowErrorCodeToErrorCode(e) {
|
|
1069
|
+
switch (e) {
|
|
1070
|
+
case O.ErrorSettingUpPurchase:
|
|
1071
|
+
return 2;
|
|
1072
|
+
case O.ErrorChargingPayment:
|
|
1073
|
+
return 20;
|
|
1074
|
+
case O.NetworkError:
|
|
1075
|
+
return 10;
|
|
1076
|
+
case O.MissingEmailError:
|
|
1077
|
+
return 4;
|
|
1078
|
+
case O.StripeError:
|
|
1079
|
+
return 2;
|
|
1080
|
+
case O.UnknownError:
|
|
1081
|
+
return 0;
|
|
1082
|
+
case O.AlreadySubscribedError:
|
|
1083
|
+
return 6;
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
var Tt = /* @__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[t.BackendAlreadySubscribedError = 7772] = "BackendAlreadySubscribedError", t[t.BackendOfferNotFound = 7814] = "BackendOfferNotFound", t))(Tt || {});
|
|
1088
|
+
class X extends Error {
|
|
1089
|
+
constructor(r, n, i) {
|
|
1090
|
+
super(n);
|
|
1091
|
+
Q(this, "toString", () => `PurchasesError(code: ${ee[this.errorCode]}, message: ${this.message})`);
|
|
1092
|
+
this.errorCode = r, this.underlyingErrorMessage = i;
|
|
1093
|
+
}
|
|
1094
|
+
/** @internal */
|
|
1095
|
+
static getForBackendError(r, n) {
|
|
1096
|
+
const i = he.getErrorCodeForBackendErrorCode(r);
|
|
1097
|
+
return new X(
|
|
1098
|
+
i,
|
|
1099
|
+
he.getPublicMessage(i),
|
|
1100
|
+
n
|
|
1101
|
+
);
|
|
1102
|
+
}
|
|
1103
|
+
/** @internal */
|
|
1104
|
+
static getForPurchasesFlowError(r) {
|
|
1105
|
+
return new X(
|
|
1106
|
+
he.convertPurchaseFlowErrorCodeToErrorCode(
|
|
1107
|
+
r.errorCode
|
|
1108
|
+
),
|
|
1109
|
+
r.message,
|
|
1110
|
+
r.underlyingErrorMessage
|
|
1111
|
+
);
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
class Gn extends Error {
|
|
1115
|
+
constructor() {
|
|
1116
|
+
super("Purchases must be configured before calling getInstance");
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
var pe = /* @__PURE__ */ ((t) => (t.Started = "started", t.InProgress = "in_progress", t.Succeeded = "succeeded", t.Failed = "failed", t))(pe || {}), Te = /* @__PURE__ */ ((t) => (t[t.SetupIntentCreationFailed = 1] = "SetupIntentCreationFailed", t[t.PaymentMethodCreationFailed = 2] = "PaymentMethodCreationFailed", t[t.PaymentChargeFailed = 3] = "PaymentChargeFailed", t))(Te || {}), O = /* @__PURE__ */ ((t) => (t[t.ErrorSettingUpPurchase = 0] = "ErrorSettingUpPurchase", t[t.ErrorChargingPayment = 1] = "ErrorChargingPayment", t[t.UnknownError = 2] = "UnknownError", t[t.NetworkError = 3] = "NetworkError", t[t.StripeError = 4] = "StripeError", t[t.MissingEmailError = 5] = "MissingEmailError", t[t.AlreadySubscribedError = 6] = "AlreadySubscribedError", t))(O || {});
|
|
1120
|
+
class Y extends Error {
|
|
966
1121
|
constructor(e, r, n) {
|
|
967
1122
|
super(r), this.errorCode = e, this.underlyingErrorMessage = n;
|
|
968
1123
|
}
|
|
1124
|
+
static fromPurchasesError(e, r) {
|
|
1125
|
+
let n;
|
|
1126
|
+
return e.errorCode === ee.ProductAlreadyPurchasedError ? n = 6 : n = r, new Y(
|
|
1127
|
+
n,
|
|
1128
|
+
e.message,
|
|
1129
|
+
e.underlyingErrorMessage
|
|
1130
|
+
);
|
|
1131
|
+
}
|
|
969
1132
|
}
|
|
970
|
-
class
|
|
1133
|
+
class Yn {
|
|
971
1134
|
constructor(e, r = 10) {
|
|
972
1135
|
Q(this, "operationSessionId", null);
|
|
973
1136
|
Q(this, "backend");
|
|
@@ -976,19 +1139,35 @@ class Gn {
|
|
|
976
1139
|
this.backend = e, this.maxNumberAttempts = r;
|
|
977
1140
|
}
|
|
978
1141
|
async startPurchase(e, r, n, i, o) {
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
1142
|
+
try {
|
|
1143
|
+
const s = await this.backend.postSubscribe(
|
|
1144
|
+
e,
|
|
1145
|
+
r,
|
|
1146
|
+
i,
|
|
1147
|
+
o,
|
|
1148
|
+
n == null ? void 0 : n.id
|
|
1149
|
+
);
|
|
1150
|
+
return this.operationSessionId = s.operation_session_id, s;
|
|
1151
|
+
} catch (s) {
|
|
1152
|
+
if (s instanceof X)
|
|
1153
|
+
throw Y.fromPurchasesError(
|
|
1154
|
+
s,
|
|
1155
|
+
0
|
|
1156
|
+
/* ErrorSettingUpPurchase */
|
|
1157
|
+
);
|
|
1158
|
+
{
|
|
1159
|
+
const l = "Unknown error starting purchase: " + String(s);
|
|
1160
|
+
throw G.errorLog(l), new Y(
|
|
1161
|
+
2,
|
|
1162
|
+
l
|
|
1163
|
+
);
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
987
1166
|
}
|
|
988
1167
|
async pollCurrentPurchaseForCompletion() {
|
|
989
1168
|
const e = this.operationSessionId;
|
|
990
1169
|
if (!e)
|
|
991
|
-
throw new
|
|
1170
|
+
throw new Y(
|
|
992
1171
|
0,
|
|
993
1172
|
"No purchase in progress"
|
|
994
1173
|
);
|
|
@@ -996,7 +1175,7 @@ class Gn {
|
|
|
996
1175
|
const i = (o = 1) => {
|
|
997
1176
|
if (o > this.maxNumberAttempts) {
|
|
998
1177
|
this.clearPurchaseInProgress(), n(
|
|
999
|
-
new
|
|
1178
|
+
new Y(
|
|
1000
1179
|
2,
|
|
1001
1180
|
"Max attempts reached trying to get successful purchase status"
|
|
1002
1181
|
)
|
|
@@ -1022,12 +1201,12 @@ class Gn {
|
|
|
1022
1201
|
);
|
|
1023
1202
|
}
|
|
1024
1203
|
}).catch((s) => {
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
)
|
|
1204
|
+
const l = Y.fromPurchasesError(
|
|
1205
|
+
s,
|
|
1206
|
+
3
|
|
1207
|
+
/* NetworkError */
|
|
1030
1208
|
);
|
|
1209
|
+
n(l);
|
|
1031
1210
|
});
|
|
1032
1211
|
};
|
|
1033
1212
|
i();
|
|
@@ -1039,7 +1218,7 @@ class Gn {
|
|
|
1039
1218
|
handlePaymentError(e, r) {
|
|
1040
1219
|
if (e == null) {
|
|
1041
1220
|
r(
|
|
1042
|
-
new
|
|
1221
|
+
new Y(
|
|
1043
1222
|
2,
|
|
1044
1223
|
"Got an error status but error field is empty."
|
|
1045
1224
|
)
|
|
@@ -1049,7 +1228,7 @@ class Gn {
|
|
|
1049
1228
|
switch (e.code) {
|
|
1050
1229
|
case Te.SetupIntentCreationFailed:
|
|
1051
1230
|
r(
|
|
1052
|
-
new
|
|
1231
|
+
new Y(
|
|
1053
1232
|
0,
|
|
1054
1233
|
"Setup intent creation failed"
|
|
1055
1234
|
)
|
|
@@ -1057,7 +1236,7 @@ class Gn {
|
|
|
1057
1236
|
return;
|
|
1058
1237
|
case Te.PaymentMethodCreationFailed:
|
|
1059
1238
|
r(
|
|
1060
|
-
new
|
|
1239
|
+
new Y(
|
|
1061
1240
|
0,
|
|
1062
1241
|
"Payment method creation failed"
|
|
1063
1242
|
)
|
|
@@ -1065,7 +1244,7 @@ class Gn {
|
|
|
1065
1244
|
return;
|
|
1066
1245
|
case Te.PaymentChargeFailed:
|
|
1067
1246
|
r(
|
|
1068
|
-
new
|
|
1247
|
+
new Y(
|
|
1069
1248
|
1,
|
|
1070
1249
|
"Payment charge failed"
|
|
1071
1250
|
)
|
|
@@ -1074,15 +1253,15 @@ class Gn {
|
|
|
1074
1253
|
}
|
|
1075
1254
|
}
|
|
1076
1255
|
}
|
|
1077
|
-
const
|
|
1078
|
-
function Hn(t) {
|
|
1079
|
-
F(t, "svelte-1609h93", "img.svelte-1609h93{width:124px;height:124px;margin:0 auto}");
|
|
1080
|
-
}
|
|
1256
|
+
const Hn = "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";
|
|
1081
1257
|
function Kn(t) {
|
|
1258
|
+
x(t, "svelte-1609h93", "img.svelte-1609h93{width:124px;height:124px;margin:0 auto}");
|
|
1259
|
+
}
|
|
1260
|
+
function qn(t) {
|
|
1082
1261
|
let e, r;
|
|
1083
1262
|
return {
|
|
1084
1263
|
c() {
|
|
1085
|
-
e = k("img"), Z(e.src, r =
|
|
1264
|
+
e = k("img"), Z(e.src, r = Hn) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon svelte-1609h93");
|
|
1086
1265
|
},
|
|
1087
1266
|
m(n, i) {
|
|
1088
1267
|
p(n, e, i);
|
|
@@ -1095,15 +1274,15 @@ function Kn(t) {
|
|
|
1095
1274
|
}
|
|
1096
1275
|
};
|
|
1097
1276
|
}
|
|
1098
|
-
class
|
|
1277
|
+
class jn extends U {
|
|
1099
1278
|
constructor(e) {
|
|
1100
|
-
super(), N(this, e, null,
|
|
1279
|
+
super(), N(this, e, null, qn, T, {}, Kn);
|
|
1101
1280
|
}
|
|
1102
1281
|
}
|
|
1103
|
-
function jn(t) {
|
|
1104
|
-
F(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)}");
|
|
1105
|
-
}
|
|
1106
1282
|
function Jn(t) {
|
|
1283
|
+
x(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)}");
|
|
1284
|
+
}
|
|
1285
|
+
function Vn(t) {
|
|
1107
1286
|
let e, r, n, i, o;
|
|
1108
1287
|
const s = (
|
|
1109
1288
|
/*#slots*/
|
|
@@ -1165,7 +1344,7 @@ function Jn(t) {
|
|
|
1165
1344
|
}
|
|
1166
1345
|
};
|
|
1167
1346
|
}
|
|
1168
|
-
function
|
|
1347
|
+
function Wn(t, e, r) {
|
|
1169
1348
|
let { $$slots: n = {}, $$scope: i } = e, { intent: o = "primary" } = e, { disabled: s = !1 } = e;
|
|
1170
1349
|
function l(c) {
|
|
1171
1350
|
Ct.call(this, t, c);
|
|
@@ -1176,13 +1355,13 @@ function Vn(t, e, r) {
|
|
|
1176
1355
|
}
|
|
1177
1356
|
class Ie extends U {
|
|
1178
1357
|
constructor(e) {
|
|
1179
|
-
super(), N(this, e,
|
|
1358
|
+
super(), N(this, e, Wn, Vn, T, { intent: 0, disabled: 1 }, Jn);
|
|
1180
1359
|
}
|
|
1181
1360
|
}
|
|
1182
|
-
function Wn(t) {
|
|
1183
|
-
F(t, "svelte-1f9z0o8", "footer.svelte-1f9z0o8{display:flex;flex-direction:column}");
|
|
1184
|
-
}
|
|
1185
1361
|
function zn(t) {
|
|
1362
|
+
x(t, "svelte-1f9z0o8", "footer.svelte-1f9z0o8{display:flex;flex-direction:column}");
|
|
1363
|
+
}
|
|
1364
|
+
function Xn(t) {
|
|
1186
1365
|
let e, r;
|
|
1187
1366
|
const n = (
|
|
1188
1367
|
/*#slots*/
|
|
@@ -1233,7 +1412,7 @@ function zn(t) {
|
|
|
1233
1412
|
}
|
|
1234
1413
|
};
|
|
1235
1414
|
}
|
|
1236
|
-
function
|
|
1415
|
+
function Zn(t, e, r) {
|
|
1237
1416
|
let { $$slots: n = {}, $$scope: i } = e;
|
|
1238
1417
|
return t.$$set = (o) => {
|
|
1239
1418
|
"$$scope" in o && r(0, i = o.$$scope);
|
|
@@ -1241,13 +1420,13 @@ function Xn(t, e, r) {
|
|
|
1241
1420
|
}
|
|
1242
1421
|
class ze extends U {
|
|
1243
1422
|
constructor(e) {
|
|
1244
|
-
super(), N(this, e,
|
|
1423
|
+
super(), N(this, e, Zn, Xn, T, {}, zn);
|
|
1245
1424
|
}
|
|
1246
1425
|
}
|
|
1247
|
-
function Zn(t) {
|
|
1248
|
-
F(t, "svelte-6o8e90", '.column.svelte-6o8e90{display:flex;flex-direction:column;justify-content:flex-start;gap:var(--gap, "8px");flex-grow:1}');
|
|
1249
|
-
}
|
|
1250
1426
|
function er(t) {
|
|
1427
|
+
x(t, "svelte-6o8e90", '.column.svelte-6o8e90{display:flex;flex-direction:column;justify-content:flex-start;gap:var(--gap, "8px");flex-grow:1}');
|
|
1428
|
+
}
|
|
1429
|
+
function tr(t) {
|
|
1251
1430
|
let e, r, n;
|
|
1252
1431
|
const i = (
|
|
1253
1432
|
/*#slots*/
|
|
@@ -1301,7 +1480,7 @@ function er(t) {
|
|
|
1301
1480
|
}
|
|
1302
1481
|
};
|
|
1303
1482
|
}
|
|
1304
|
-
function
|
|
1483
|
+
function nr(t, e, r) {
|
|
1305
1484
|
let { $$slots: n = {}, $$scope: i } = e, { gutter: o = "8px" } = e;
|
|
1306
1485
|
return t.$$set = (s) => {
|
|
1307
1486
|
"gutter" in s && r(0, o = s.gutter), "$$scope" in s && r(1, i = s.$$scope);
|
|
@@ -1309,18 +1488,18 @@ function tr(t, e, r) {
|
|
|
1309
1488
|
}
|
|
1310
1489
|
class $e extends U {
|
|
1311
1490
|
constructor(e) {
|
|
1312
|
-
super(), N(this, e,
|
|
1491
|
+
super(), N(this, e, nr, tr, T, { gutter: 0 }, er);
|
|
1313
1492
|
}
|
|
1314
1493
|
}
|
|
1315
|
-
const
|
|
1316
|
-
function rr(t) {
|
|
1317
|
-
F(t, "svelte-14xreta", ".close-button.svelte-14xreta{border:none;cursor:pointer;background-color:transparent;padding:0px}");
|
|
1318
|
-
}
|
|
1494
|
+
const rr = "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";
|
|
1319
1495
|
function ir(t) {
|
|
1496
|
+
x(t, "svelte-14xreta", ".close-button.svelte-14xreta{border:none;cursor:pointer;background-color:transparent;padding:0px}");
|
|
1497
|
+
}
|
|
1498
|
+
function or(t) {
|
|
1320
1499
|
let e, r, n, i, o;
|
|
1321
1500
|
return {
|
|
1322
1501
|
c() {
|
|
1323
|
-
e = k("button"), r = k("img"), Z(r.src, n =
|
|
1502
|
+
e = k("button"), r = k("img"), Z(r.src, n = rr) || _(r, "src", n), _(r, "alt", "close"), _(e, "class", "close-button svelte-14xreta"), e.disabled = /*disabled*/
|
|
1324
1503
|
t[0];
|
|
1325
1504
|
},
|
|
1326
1505
|
m(s, l) {
|
|
@@ -1343,7 +1522,7 @@ function ir(t) {
|
|
|
1343
1522
|
}
|
|
1344
1523
|
};
|
|
1345
1524
|
}
|
|
1346
|
-
function
|
|
1525
|
+
function sr(t, e, r) {
|
|
1347
1526
|
let { disabled: n = !1 } = e;
|
|
1348
1527
|
function i(o) {
|
|
1349
1528
|
Ct.call(this, t, o);
|
|
@@ -1352,15 +1531,15 @@ function or(t, e, r) {
|
|
|
1352
1531
|
"disabled" in o && r(0, n = o.disabled);
|
|
1353
1532
|
}, [n, i];
|
|
1354
1533
|
}
|
|
1355
|
-
class
|
|
1534
|
+
class lr extends U {
|
|
1356
1535
|
constructor(e) {
|
|
1357
|
-
super(), N(this, e,
|
|
1536
|
+
super(), N(this, e, sr, or, T, { disabled: 0 }, ir);
|
|
1358
1537
|
}
|
|
1359
1538
|
}
|
|
1360
|
-
function lr(t) {
|
|
1361
|
-
F(t, "svelte-44qpq9", ".rcb-app-icon.svelte-44qpq9{width:40px;height:40px;border-radius:12px;box-shadow:0px 1px 10px 0px rgba(0, 0, 0, 0.1);margin-right:16px}.rcb-app-icon-picture-container.svelte-44qpq9{height:40px}.rcb-app-icon.loading.svelte-44qpq9{background-color:gray}");
|
|
1362
|
-
}
|
|
1363
1539
|
function cr(t) {
|
|
1540
|
+
x(t, "svelte-44qpq9", ".rcb-app-icon.svelte-44qpq9{width:40px;height:40px;border-radius:12px;box-shadow:0px 1px 10px 0px rgba(0, 0, 0, 0.1);margin-right:16px}.rcb-app-icon-picture-container.svelte-44qpq9{height:40px}.rcb-app-icon.loading.svelte-44qpq9{background-color:gray}");
|
|
1541
|
+
}
|
|
1542
|
+
function ar(t) {
|
|
1364
1543
|
let e;
|
|
1365
1544
|
return {
|
|
1366
1545
|
c() {
|
|
@@ -1375,7 +1554,7 @@ function cr(t) {
|
|
|
1375
1554
|
}
|
|
1376
1555
|
};
|
|
1377
1556
|
}
|
|
1378
|
-
function
|
|
1557
|
+
function ur(t) {
|
|
1379
1558
|
let e, r, n, i, o, s;
|
|
1380
1559
|
return {
|
|
1381
1560
|
c() {
|
|
@@ -1398,18 +1577,18 @@ function ar(t) {
|
|
|
1398
1577
|
}
|
|
1399
1578
|
};
|
|
1400
1579
|
}
|
|
1401
|
-
function
|
|
1580
|
+
function fr(t) {
|
|
1402
1581
|
let e;
|
|
1403
1582
|
function r(o, s) {
|
|
1404
1583
|
return (
|
|
1405
1584
|
/*src*/
|
|
1406
|
-
o[0] !== null ?
|
|
1585
|
+
o[0] !== null ? ur : ar
|
|
1407
1586
|
);
|
|
1408
1587
|
}
|
|
1409
1588
|
let n = r(t), i = n(t);
|
|
1410
1589
|
return {
|
|
1411
1590
|
c() {
|
|
1412
|
-
i.c(), e =
|
|
1591
|
+
i.c(), e = te();
|
|
1413
1592
|
},
|
|
1414
1593
|
m(o, s) {
|
|
1415
1594
|
i.m(o, s), p(o, e, s);
|
|
@@ -1424,24 +1603,24 @@ function ur(t) {
|
|
|
1424
1603
|
}
|
|
1425
1604
|
};
|
|
1426
1605
|
}
|
|
1427
|
-
function
|
|
1606
|
+
function dr(t, e, r) {
|
|
1428
1607
|
let { src: n = null } = e, { srcWebp: i = null } = e;
|
|
1429
1608
|
return t.$$set = (o) => {
|
|
1430
1609
|
"src" in o && r(0, n = o.src), "srcWebp" in o && r(1, i = o.srcWebp);
|
|
1431
1610
|
}, [n, i];
|
|
1432
1611
|
}
|
|
1433
|
-
class
|
|
1612
|
+
class Nt extends U {
|
|
1434
1613
|
constructor(e) {
|
|
1435
|
-
super(), N(this, e,
|
|
1614
|
+
super(), N(this, e, dr, fr, T, { src: 0, srcWebp: 1 }, cr);
|
|
1436
1615
|
}
|
|
1437
1616
|
}
|
|
1438
1617
|
const Me = (t) => `https://da08ctfrofx1b.cloudfront.net/${t}`;
|
|
1439
|
-
function dr(t) {
|
|
1440
|
-
F(t, "svelte-10uf5fq", ".app-title.svelte-10uf5fq{font-weight:500;margin:8px 0;font-size:16px}.rcb-header-layout__business-info.svelte-10uf5fq{display:flex;align-items:center}");
|
|
1441
|
-
}
|
|
1442
1618
|
function mr(t) {
|
|
1619
|
+
x(t, "svelte-10uf5fq", ".app-title.svelte-10uf5fq{font-weight:500;margin:8px 0;font-size:16px}.rcb-header-layout__business-info.svelte-10uf5fq{display:flex;align-items:center}");
|
|
1620
|
+
}
|
|
1621
|
+
function gr(t) {
|
|
1443
1622
|
let e, r;
|
|
1444
|
-
return e = new
|
|
1623
|
+
return e = new Nt({}), {
|
|
1445
1624
|
c() {
|
|
1446
1625
|
w(e.$$.fragment);
|
|
1447
1626
|
},
|
|
@@ -1460,7 +1639,7 @@ function mr(t) {
|
|
|
1460
1639
|
}
|
|
1461
1640
|
};
|
|
1462
1641
|
}
|
|
1463
|
-
function
|
|
1642
|
+
function pr(t) {
|
|
1464
1643
|
let e, r, n = (
|
|
1465
1644
|
/*brandingInfo*/
|
|
1466
1645
|
t[0].seller_company_name + ""
|
|
@@ -1471,7 +1650,7 @@ function gr(t) {
|
|
|
1471
1650
|
);
|
|
1472
1651
|
return {
|
|
1473
1652
|
c() {
|
|
1474
|
-
s && s.c(), e = P(), r = k("span"), i =
|
|
1653
|
+
s && s.c(), e = P(), r = k("span"), i = L(n), _(r, "class", "app-title svelte-10uf5fq");
|
|
1475
1654
|
},
|
|
1476
1655
|
m(l, c) {
|
|
1477
1656
|
s && s.m(l, c), p(l, e, c), p(l, r, c), C(r, i), o = !0;
|
|
@@ -1480,9 +1659,9 @@ function gr(t) {
|
|
|
1480
1659
|
/*brandingInfo*/
|
|
1481
1660
|
l[0].app_icon_webp !== null && /*brandingInfo*/
|
|
1482
1661
|
l[0].app_icon !== null ? s ? (s.p(l, c), c & /*brandingInfo*/
|
|
1483
|
-
1 && f(s, 1)) : (s = at(l), s.c(), f(s, 1), s.m(e.parentNode, e)) : s && (
|
|
1662
|
+
1 && f(s, 1)) : (s = at(l), s.c(), f(s, 1), s.m(e.parentNode, e)) : s && (H(), m(s, 1, 1, () => {
|
|
1484
1663
|
s = null;
|
|
1485
|
-
}),
|
|
1664
|
+
}), K()), (!o || c & /*brandingInfo*/
|
|
1486
1665
|
1) && n !== (n = /*brandingInfo*/
|
|
1487
1666
|
l[0].seller_company_name + "") && ae(i, n);
|
|
1488
1667
|
},
|
|
@@ -1499,7 +1678,7 @@ function gr(t) {
|
|
|
1499
1678
|
}
|
|
1500
1679
|
function at(t) {
|
|
1501
1680
|
let e, r;
|
|
1502
|
-
return e = new
|
|
1681
|
+
return e = new Nt({
|
|
1503
1682
|
props: {
|
|
1504
1683
|
src: Me(
|
|
1505
1684
|
/*brandingInfo*/
|
|
@@ -1540,9 +1719,9 @@ function at(t) {
|
|
|
1540
1719
|
}
|
|
1541
1720
|
};
|
|
1542
1721
|
}
|
|
1543
|
-
function
|
|
1722
|
+
function _r(t) {
|
|
1544
1723
|
let e, r, n, i;
|
|
1545
|
-
const o = [
|
|
1724
|
+
const o = [pr, gr], s = [];
|
|
1546
1725
|
function l(c, a) {
|
|
1547
1726
|
return (
|
|
1548
1727
|
/*brandingInfo*/
|
|
@@ -1558,9 +1737,9 @@ function pr(t) {
|
|
|
1558
1737
|
},
|
|
1559
1738
|
p(c, [a]) {
|
|
1560
1739
|
let u = r;
|
|
1561
|
-
r = l(c), r === u ? s[r].p(c, a) : (
|
|
1740
|
+
r = l(c), r === u ? s[r].p(c, a) : (H(), m(s[u], 1, 1, () => {
|
|
1562
1741
|
s[u] = null;
|
|
1563
|
-
}),
|
|
1742
|
+
}), K(), n = s[r], n ? n.p(c, a) : (n = s[r] = o[r](c), n.c()), f(n, 1), n.m(e, null));
|
|
1564
1743
|
},
|
|
1565
1744
|
i(c) {
|
|
1566
1745
|
i || (f(n), i = !0);
|
|
@@ -1573,28 +1752,28 @@ function pr(t) {
|
|
|
1573
1752
|
}
|
|
1574
1753
|
};
|
|
1575
1754
|
}
|
|
1576
|
-
function
|
|
1755
|
+
function Ar(t, e, r) {
|
|
1577
1756
|
let { brandingInfo: n = null } = e;
|
|
1578
1757
|
return t.$$set = (i) => {
|
|
1579
1758
|
"brandingInfo" in i && r(0, n = i.brandingInfo);
|
|
1580
1759
|
}, [n];
|
|
1581
1760
|
}
|
|
1582
|
-
class
|
|
1761
|
+
class Ut extends U {
|
|
1583
1762
|
constructor(e) {
|
|
1584
|
-
super(), N(this, e,
|
|
1763
|
+
super(), N(this, e, Ar, _r, T, { brandingInfo: 0 }, mr);
|
|
1585
1764
|
}
|
|
1586
1765
|
}
|
|
1587
|
-
function Ar(t) {
|
|
1588
|
-
F(t, "svelte-17puakv", ".rcb-post-purchase-header-layout.svelte-17puakv{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:-4px}");
|
|
1589
|
-
}
|
|
1590
1766
|
function hr(t) {
|
|
1767
|
+
x(t, "svelte-17puakv", ".rcb-post-purchase-header-layout.svelte-17puakv{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:-4px}");
|
|
1768
|
+
}
|
|
1769
|
+
function Er(t) {
|
|
1591
1770
|
let e, r, n, i, o;
|
|
1592
|
-
return r = new
|
|
1771
|
+
return r = new Ut({
|
|
1593
1772
|
props: { brandingInfo: (
|
|
1594
1773
|
/*brandingInfo*/
|
|
1595
1774
|
t[0]
|
|
1596
1775
|
) }
|
|
1597
|
-
}), i = new
|
|
1776
|
+
}), i = new lr({}), i.$on("click", function() {
|
|
1598
1777
|
ce(
|
|
1599
1778
|
/*onClose*/
|
|
1600
1779
|
t[1]
|
|
@@ -1624,12 +1803,12 @@ function hr(t) {
|
|
|
1624
1803
|
}
|
|
1625
1804
|
};
|
|
1626
1805
|
}
|
|
1627
|
-
function
|
|
1806
|
+
function br(t) {
|
|
1628
1807
|
let e, r;
|
|
1629
1808
|
return e = new ue({
|
|
1630
1809
|
props: {
|
|
1631
1810
|
as: "header",
|
|
1632
|
-
$$slots: { default: [
|
|
1811
|
+
$$slots: { default: [Er] },
|
|
1633
1812
|
$$scope: { ctx: t }
|
|
1634
1813
|
}
|
|
1635
1814
|
}), {
|
|
@@ -1655,22 +1834,22 @@ function Er(t) {
|
|
|
1655
1834
|
}
|
|
1656
1835
|
};
|
|
1657
1836
|
}
|
|
1658
|
-
function
|
|
1837
|
+
function Ir(t, e, r) {
|
|
1659
1838
|
let { brandingInfo: n = null } = e, { onClose: i } = e;
|
|
1660
1839
|
return t.$$set = (o) => {
|
|
1661
1840
|
"brandingInfo" in o && r(0, n = o.brandingInfo), "onClose" in o && r(1, i = o.onClose);
|
|
1662
1841
|
}, [n, i];
|
|
1663
1842
|
}
|
|
1664
|
-
class
|
|
1843
|
+
class wr extends U {
|
|
1665
1844
|
constructor(e) {
|
|
1666
|
-
super(), N(this, e,
|
|
1845
|
+
super(), N(this, e, Ir, br, T, { brandingInfo: 0, onClose: 1 }, hr);
|
|
1667
1846
|
}
|
|
1668
1847
|
}
|
|
1669
|
-
function
|
|
1670
|
-
|
|
1848
|
+
function kr(t) {
|
|
1849
|
+
x(t, "svelte-10pcqja", ".rcb-modal-message.svelte-10pcqja{width:100%;min-height:160px;display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center}.title.svelte-10pcqja{font-size:24px;line-height:1.25em}.subtitle.svelte-10pcqja{font-size:16px;line-height:1.25em;overflow-wrap:anywhere}");
|
|
1671
1850
|
}
|
|
1672
|
-
const
|
|
1673
|
-
function
|
|
1851
|
+
const $r = (t) => ({}), ut = (t) => ({});
|
|
1852
|
+
function vr(t) {
|
|
1674
1853
|
let e, r, n, i, o;
|
|
1675
1854
|
const s = (
|
|
1676
1855
|
/*#slots*/
|
|
@@ -1684,7 +1863,7 @@ function $r(t) {
|
|
|
1684
1863
|
);
|
|
1685
1864
|
return {
|
|
1686
1865
|
c() {
|
|
1687
|
-
e = k("span"), r =
|
|
1866
|
+
e = k("span"), r = L(
|
|
1688
1867
|
/*title*/
|
|
1689
1868
|
t[2]
|
|
1690
1869
|
), n = P(), i = k("span"), l && l.c(), _(e, "class", "title svelte-10pcqja"), _(i, "class", "subtitle svelte-10pcqja");
|
|
@@ -1729,7 +1908,7 @@ function $r(t) {
|
|
|
1729
1908
|
}
|
|
1730
1909
|
};
|
|
1731
1910
|
}
|
|
1732
|
-
function
|
|
1911
|
+
function yr(t) {
|
|
1733
1912
|
let e, r, n;
|
|
1734
1913
|
const i = (
|
|
1735
1914
|
/*#slots*/
|
|
@@ -1744,7 +1923,7 @@ function vr(t) {
|
|
|
1744
1923
|
return r = new $e({
|
|
1745
1924
|
props: {
|
|
1746
1925
|
gutter: "16px",
|
|
1747
|
-
$$slots: { default: [
|
|
1926
|
+
$$slots: { default: [vr] },
|
|
1748
1927
|
$$scope: { ctx: t }
|
|
1749
1928
|
}
|
|
1750
1929
|
}), {
|
|
@@ -1767,7 +1946,7 @@ function vr(t) {
|
|
|
1767
1946
|
/*$$scope*/
|
|
1768
1947
|
s[5],
|
|
1769
1948
|
l,
|
|
1770
|
-
|
|
1949
|
+
$r
|
|
1771
1950
|
) : V(
|
|
1772
1951
|
/*$$scope*/
|
|
1773
1952
|
s[5]
|
|
@@ -1789,12 +1968,12 @@ function vr(t) {
|
|
|
1789
1968
|
}
|
|
1790
1969
|
};
|
|
1791
1970
|
}
|
|
1792
|
-
function
|
|
1971
|
+
function Br(t) {
|
|
1793
1972
|
let e, r, n;
|
|
1794
1973
|
return r = new $e({
|
|
1795
1974
|
props: {
|
|
1796
1975
|
gutter: "16px",
|
|
1797
|
-
$$slots: { default: [
|
|
1976
|
+
$$slots: { default: [yr] },
|
|
1798
1977
|
$$scope: { ctx: t }
|
|
1799
1978
|
}
|
|
1800
1979
|
}), {
|
|
@@ -1831,11 +2010,11 @@ function yr(t) {
|
|
|
1831
2010
|
}
|
|
1832
2011
|
};
|
|
1833
2012
|
}
|
|
1834
|
-
function
|
|
2013
|
+
function Dr(t) {
|
|
1835
2014
|
let e;
|
|
1836
2015
|
return {
|
|
1837
2016
|
c() {
|
|
1838
|
-
e =
|
|
2017
|
+
e = L("Go back to app");
|
|
1839
2018
|
},
|
|
1840
2019
|
m(r, n) {
|
|
1841
2020
|
p(r, e, n);
|
|
@@ -1845,11 +2024,11 @@ function Br(t) {
|
|
|
1845
2024
|
}
|
|
1846
2025
|
};
|
|
1847
2026
|
}
|
|
1848
|
-
function
|
|
2027
|
+
function Mr(t) {
|
|
1849
2028
|
let e, r;
|
|
1850
2029
|
return e = new Ie({
|
|
1851
2030
|
props: {
|
|
1852
|
-
$$slots: { default: [
|
|
2031
|
+
$$slots: { default: [Dr] },
|
|
1853
2032
|
$$scope: { ctx: t }
|
|
1854
2033
|
}
|
|
1855
2034
|
}), e.$on("click", function() {
|
|
@@ -1881,9 +2060,9 @@ function Dr(t) {
|
|
|
1881
2060
|
}
|
|
1882
2061
|
};
|
|
1883
2062
|
}
|
|
1884
|
-
function
|
|
2063
|
+
function Cr(t) {
|
|
1885
2064
|
let e, r, n, i, o, s;
|
|
1886
|
-
return e = new
|
|
2065
|
+
return e = new wr({
|
|
1887
2066
|
props: {
|
|
1888
2067
|
brandingInfo: (
|
|
1889
2068
|
/*brandingInfo*/
|
|
@@ -1896,12 +2075,12 @@ function Mr(t) {
|
|
|
1896
2075
|
}
|
|
1897
2076
|
}), n = new ue({
|
|
1898
2077
|
props: {
|
|
1899
|
-
$$slots: { default: [
|
|
2078
|
+
$$slots: { default: [Br] },
|
|
1900
2079
|
$$scope: { ctx: t }
|
|
1901
2080
|
}
|
|
1902
2081
|
}), o = new ze({
|
|
1903
2082
|
props: {
|
|
1904
|
-
$$slots: { default: [
|
|
2083
|
+
$$slots: { default: [Mr] },
|
|
1905
2084
|
$$scope: { ctx: t }
|
|
1906
2085
|
}
|
|
1907
2086
|
}), {
|
|
@@ -1936,12 +2115,12 @@ function Mr(t) {
|
|
|
1936
2115
|
}
|
|
1937
2116
|
};
|
|
1938
2117
|
}
|
|
1939
|
-
function
|
|
2118
|
+
function Qr(t) {
|
|
1940
2119
|
let e, r;
|
|
1941
2120
|
return e = new $e({
|
|
1942
2121
|
props: {
|
|
1943
2122
|
gutter: "32px",
|
|
1944
|
-
$$slots: { default: [
|
|
2123
|
+
$$slots: { default: [Cr] },
|
|
1945
2124
|
$$scope: { ctx: t }
|
|
1946
2125
|
}
|
|
1947
2126
|
}), {
|
|
@@ -1967,19 +2146,19 @@ function Cr(t) {
|
|
|
1967
2146
|
}
|
|
1968
2147
|
};
|
|
1969
2148
|
}
|
|
1970
|
-
function
|
|
2149
|
+
function Pr(t, e, r) {
|
|
1971
2150
|
let { $$slots: n = {}, $$scope: i } = e, { brandingInfo: o = null } = e, { onContinue: s } = e, { title: l } = e, { type: c } = e;
|
|
1972
2151
|
return t.$$set = (a) => {
|
|
1973
2152
|
"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);
|
|
1974
2153
|
}, [o, s, l, c, n, i];
|
|
1975
2154
|
}
|
|
1976
|
-
class
|
|
2155
|
+
class Rt extends U {
|
|
1977
2156
|
constructor(e) {
|
|
1978
2157
|
super(), N(
|
|
1979
2158
|
this,
|
|
1980
2159
|
e,
|
|
2160
|
+
Pr,
|
|
1981
2161
|
Qr,
|
|
1982
|
-
Cr,
|
|
1983
2162
|
T,
|
|
1984
2163
|
{
|
|
1985
2164
|
brandingInfo: 0,
|
|
@@ -1987,7 +2166,7 @@ class Ut extends U {
|
|
|
1987
2166
|
title: 2,
|
|
1988
2167
|
type: 3
|
|
1989
2168
|
},
|
|
1990
|
-
|
|
2169
|
+
kr
|
|
1991
2170
|
);
|
|
1992
2171
|
}
|
|
1993
2172
|
}
|
|
@@ -1995,10 +2174,10 @@ function ft(t) {
|
|
|
1995
2174
|
let e, r, n, i, o;
|
|
1996
2175
|
return {
|
|
1997
2176
|
c() {
|
|
1998
|
-
e =
|
|
2177
|
+
e = L("If this error persists, please contact "), r = k("a"), n = L(
|
|
1999
2178
|
/*supportEmail*/
|
|
2000
2179
|
t[1]
|
|
2001
|
-
), o =
|
|
2180
|
+
), o = L("."), _(r, "href", i = "mailto:" + /*supportEmail*/
|
|
2002
2181
|
t[1]);
|
|
2003
2182
|
},
|
|
2004
2183
|
m(s, l) {
|
|
@@ -2019,7 +2198,7 @@ function ft(t) {
|
|
|
2019
2198
|
}
|
|
2020
2199
|
};
|
|
2021
2200
|
}
|
|
2022
|
-
function
|
|
2201
|
+
function Tr(t) {
|
|
2023
2202
|
let e = (
|
|
2024
2203
|
/*getErrorMessage*/
|
|
2025
2204
|
t[3]() + ""
|
|
@@ -2029,7 +2208,7 @@ function Pr(t) {
|
|
|
2029
2208
|
);
|
|
2030
2209
|
return {
|
|
2031
2210
|
c() {
|
|
2032
|
-
r =
|
|
2211
|
+
r = L(e), n = P(), o && o.c(), i = te();
|
|
2033
2212
|
},
|
|
2034
2213
|
m(s, l) {
|
|
2035
2214
|
p(s, r, l), p(s, n, l), o && o.m(s, l), p(s, i, l);
|
|
@@ -2043,9 +2222,9 @@ function Pr(t) {
|
|
|
2043
2222
|
}
|
|
2044
2223
|
};
|
|
2045
2224
|
}
|
|
2046
|
-
function
|
|
2225
|
+
function Nr(t) {
|
|
2047
2226
|
let e, r;
|
|
2048
|
-
return e = new
|
|
2227
|
+
return e = new jn({ props: { slot: "icon" } }), {
|
|
2049
2228
|
c() {
|
|
2050
2229
|
w(e.$$.fragment);
|
|
2051
2230
|
},
|
|
@@ -2064,11 +2243,14 @@ function Tr(t) {
|
|
|
2064
2243
|
}
|
|
2065
2244
|
};
|
|
2066
2245
|
}
|
|
2067
|
-
function
|
|
2246
|
+
function Ur(t) {
|
|
2068
2247
|
let e, r;
|
|
2069
|
-
return e = new
|
|
2248
|
+
return e = new Rt({
|
|
2070
2249
|
props: {
|
|
2071
|
-
title:
|
|
2250
|
+
title: (
|
|
2251
|
+
/*getErrorTitle*/
|
|
2252
|
+
t[4]()
|
|
2253
|
+
),
|
|
2072
2254
|
brandingInfo: (
|
|
2073
2255
|
/*brandingInfo*/
|
|
2074
2256
|
t[0]
|
|
@@ -2079,8 +2261,8 @@ function Nr(t) {
|
|
|
2079
2261
|
),
|
|
2080
2262
|
type: "error",
|
|
2081
2263
|
$$slots: {
|
|
2082
|
-
icon: [
|
|
2083
|
-
default: [
|
|
2264
|
+
icon: [Nr],
|
|
2265
|
+
default: [Tr]
|
|
2084
2266
|
},
|
|
2085
2267
|
$$scope: { ctx: t }
|
|
2086
2268
|
}
|
|
@@ -2098,7 +2280,7 @@ function Nr(t) {
|
|
|
2098
2280
|
n[0]), i & /*onContinue*/
|
|
2099
2281
|
4 && (o.onContinue = /*onContinue*/
|
|
2100
2282
|
n[2]), i & /*$$scope, supportEmail*/
|
|
2101
|
-
|
|
2283
|
+
66 && (o.$$scope = { dirty: i, ctx: n }), e.$set(o);
|
|
2102
2284
|
},
|
|
2103
2285
|
i(n) {
|
|
2104
2286
|
r || (f(e.$$.fragment, n), r = !0);
|
|
@@ -2111,47 +2293,64 @@ function Nr(t) {
|
|
|
2111
2293
|
}
|
|
2112
2294
|
};
|
|
2113
2295
|
}
|
|
2114
|
-
function
|
|
2296
|
+
function Rr(t, e, r) {
|
|
2115
2297
|
let { brandingInfo: n = null } = e, { lastError: i } = e, { supportEmail: o = null } = e, { onContinue: s } = e;
|
|
2116
|
-
|
|
2117
|
-
G.errorLog(`Displayed error: ${
|
|
2298
|
+
Oe(() => {
|
|
2299
|
+
G.errorLog(`Displayed error: ${O[i.errorCode]}. Message: ${i.message ?? "None"}. Underlying error: ${i.underlyingErrorMessage ?? "None"}`);
|
|
2118
2300
|
});
|
|
2119
2301
|
function l() {
|
|
2120
2302
|
switch (i.errorCode) {
|
|
2121
|
-
case
|
|
2303
|
+
case O.UnknownError:
|
|
2122
2304
|
return "An unknown error occurred.";
|
|
2123
|
-
case
|
|
2305
|
+
case O.ErrorSettingUpPurchase:
|
|
2124
2306
|
return "Purchase not started due to an error.";
|
|
2125
|
-
case
|
|
2307
|
+
case O.ErrorChargingPayment:
|
|
2126
2308
|
return "Payment failed.";
|
|
2127
|
-
case
|
|
2309
|
+
case O.NetworkError:
|
|
2128
2310
|
return "Network error. Please check your internet connection.";
|
|
2129
|
-
case
|
|
2311
|
+
case O.StripeError:
|
|
2130
2312
|
return i.message;
|
|
2131
|
-
case
|
|
2313
|
+
case O.MissingEmailError:
|
|
2132
2314
|
return "Email is required to complete the purchase.";
|
|
2315
|
+
case O.AlreadySubscribedError:
|
|
2316
|
+
return "You are already subscribed to this product.";
|
|
2133
2317
|
}
|
|
2134
2318
|
return i.message;
|
|
2135
2319
|
}
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2320
|
+
function c() {
|
|
2321
|
+
switch (i.errorCode) {
|
|
2322
|
+
case O.AlreadySubscribedError:
|
|
2323
|
+
return "Already subscribed";
|
|
2324
|
+
default:
|
|
2325
|
+
return "Something went wrong";
|
|
2326
|
+
}
|
|
2327
|
+
}
|
|
2328
|
+
return t.$$set = (a) => {
|
|
2329
|
+
"brandingInfo" in a && r(0, n = a.brandingInfo), "lastError" in a && r(5, i = a.lastError), "supportEmail" in a && r(1, o = a.supportEmail), "onContinue" in a && r(2, s = a.onContinue);
|
|
2330
|
+
}, [
|
|
2331
|
+
n,
|
|
2332
|
+
o,
|
|
2333
|
+
s,
|
|
2334
|
+
l,
|
|
2335
|
+
c,
|
|
2336
|
+
i
|
|
2337
|
+
];
|
|
2139
2338
|
}
|
|
2140
|
-
class
|
|
2339
|
+
class Sr extends U {
|
|
2141
2340
|
constructor(e) {
|
|
2142
|
-
super(), N(this, e,
|
|
2341
|
+
super(), N(this, e, Rr, Ur, T, {
|
|
2143
2342
|
brandingInfo: 0,
|
|
2144
|
-
lastError:
|
|
2343
|
+
lastError: 5,
|
|
2145
2344
|
supportEmail: 1,
|
|
2146
2345
|
onContinue: 2
|
|
2147
2346
|
});
|
|
2148
2347
|
}
|
|
2149
2348
|
}
|
|
2150
2349
|
const Or = "data:image/svg+xml,%3csvg%20width='124'%20height='124'%20viewBox='0%200%20124%20124'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='62'%20cy='62'%20r='62'%20fill='%23576CDB'/%3e%3crect%20x='44.1116'%20y='56'%20width='27.5'%20height='11'%20transform='rotate(45%2044.1116%2056)'%20fill='white'/%3e%3crect%20x='79.1133'%20y='44.334'%20width='11'%20height='44'%20transform='rotate(45%2079.1133%2044.334)'%20fill='white'/%3e%3c/svg%3e";
|
|
2151
|
-
function Sr(t) {
|
|
2152
|
-
F(t, "svelte-1609h93", "img.svelte-1609h93{width:124px;height:124px;margin:0 auto}");
|
|
2153
|
-
}
|
|
2154
2350
|
function Lr(t) {
|
|
2351
|
+
x(t, "svelte-1609h93", "img.svelte-1609h93{width:124px;height:124px;margin:0 auto}");
|
|
2352
|
+
}
|
|
2353
|
+
function xr(t) {
|
|
2155
2354
|
let e, r;
|
|
2156
2355
|
return {
|
|
2157
2356
|
c() {
|
|
@@ -2170,14 +2369,14 @@ function Lr(t) {
|
|
|
2170
2369
|
}
|
|
2171
2370
|
class Fr extends U {
|
|
2172
2371
|
constructor(e) {
|
|
2173
|
-
super(), N(this, e, null,
|
|
2372
|
+
super(), N(this, e, null, xr, T, {}, Lr);
|
|
2174
2373
|
}
|
|
2175
2374
|
}
|
|
2176
|
-
function
|
|
2375
|
+
function Gr(t) {
|
|
2177
2376
|
let e;
|
|
2178
2377
|
return {
|
|
2179
2378
|
c() {
|
|
2180
|
-
e =
|
|
2379
|
+
e = L("Your plan is now active.");
|
|
2181
2380
|
},
|
|
2182
2381
|
m(r, n) {
|
|
2183
2382
|
p(r, e, n);
|
|
@@ -2187,7 +2386,7 @@ function xr(t) {
|
|
|
2187
2386
|
}
|
|
2188
2387
|
};
|
|
2189
2388
|
}
|
|
2190
|
-
function
|
|
2389
|
+
function Yr(t) {
|
|
2191
2390
|
let e, r;
|
|
2192
2391
|
return e = new Fr({ props: { slot: "icon" } }), {
|
|
2193
2392
|
c() {
|
|
@@ -2208,9 +2407,9 @@ function Gr(t) {
|
|
|
2208
2407
|
}
|
|
2209
2408
|
};
|
|
2210
2409
|
}
|
|
2211
|
-
function
|
|
2410
|
+
function Hr(t) {
|
|
2212
2411
|
let e, r;
|
|
2213
|
-
return e = new
|
|
2412
|
+
return e = new Rt({
|
|
2214
2413
|
props: {
|
|
2215
2414
|
type: "success",
|
|
2216
2415
|
title: "Purchase successful",
|
|
@@ -2223,8 +2422,8 @@ function Yr(t) {
|
|
|
2223
2422
|
t[1]
|
|
2224
2423
|
),
|
|
2225
2424
|
$$slots: {
|
|
2226
|
-
icon: [
|
|
2227
|
-
default: [
|
|
2425
|
+
icon: [Yr],
|
|
2426
|
+
default: [Gr]
|
|
2228
2427
|
},
|
|
2229
2428
|
$$scope: { ctx: t }
|
|
2230
2429
|
}
|
|
@@ -2255,30 +2454,30 @@ function Yr(t) {
|
|
|
2255
2454
|
}
|
|
2256
2455
|
};
|
|
2257
2456
|
}
|
|
2258
|
-
function
|
|
2457
|
+
function Kr(t, e, r) {
|
|
2259
2458
|
let { brandingInfo: n = null } = e, { onContinue: i } = e;
|
|
2260
2459
|
return t.$$set = (o) => {
|
|
2261
2460
|
"brandingInfo" in o && r(0, n = o.brandingInfo), "onContinue" in o && r(1, i = o.onContinue);
|
|
2262
2461
|
}, [n, i];
|
|
2263
2462
|
}
|
|
2264
|
-
class
|
|
2463
|
+
class qr extends U {
|
|
2265
2464
|
constructor(e) {
|
|
2266
|
-
super(), N(this, e,
|
|
2465
|
+
super(), N(this, e, Kr, Hr, T, { brandingInfo: 0, onContinue: 1 });
|
|
2267
2466
|
}
|
|
2268
2467
|
}
|
|
2269
|
-
function
|
|
2468
|
+
function jr(t, e, r, n, i = {}) {
|
|
2270
2469
|
const o = r.create(e, i);
|
|
2271
2470
|
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;
|
|
2272
2471
|
}
|
|
2273
|
-
const
|
|
2274
|
-
function
|
|
2275
|
-
if (!
|
|
2472
|
+
const Jr = typeof window > "u";
|
|
2473
|
+
function Vr(t) {
|
|
2474
|
+
if (!Jr)
|
|
2276
2475
|
return t.registerAppInfo({
|
|
2277
2476
|
name: "svelte-stripe-js",
|
|
2278
2477
|
url: "https://svelte-stripe-js.vercel.app"
|
|
2279
2478
|
});
|
|
2280
2479
|
}
|
|
2281
|
-
function
|
|
2480
|
+
function Wr(t) {
|
|
2282
2481
|
let e;
|
|
2283
2482
|
return {
|
|
2284
2483
|
c() {
|
|
@@ -2295,11 +2494,11 @@ function Vr(t) {
|
|
|
2295
2494
|
}
|
|
2296
2495
|
};
|
|
2297
2496
|
}
|
|
2298
|
-
function
|
|
2497
|
+
function zr(t, e, r) {
|
|
2299
2498
|
let n, i;
|
|
2300
2499
|
const o = _n(), { elements: s } = hn("stripe");
|
|
2301
2500
|
let { options: l = void 0 } = e;
|
|
2302
|
-
|
|
2501
|
+
Oe(() => (n = jr(i, "payment", s, o, l), () => n.destroy()));
|
|
2303
2502
|
function c() {
|
|
2304
2503
|
n.blur();
|
|
2305
2504
|
}
|
|
@@ -2321,9 +2520,9 @@ function Wr(t, e, r) {
|
|
|
2321
2520
|
"options" in $ && r(1, l = $.options);
|
|
2322
2521
|
}, [i, l, c, a, u, d, h];
|
|
2323
2522
|
}
|
|
2324
|
-
class
|
|
2523
|
+
class Xr extends U {
|
|
2325
2524
|
constructor(e) {
|
|
2326
|
-
super(), N(this, e,
|
|
2525
|
+
super(), N(this, e, zr, Wr, T, {
|
|
2327
2526
|
options: 1,
|
|
2328
2527
|
blur: 2,
|
|
2329
2528
|
clear: 3,
|
|
@@ -2395,7 +2594,7 @@ function dt(t) {
|
|
|
2395
2594
|
}
|
|
2396
2595
|
};
|
|
2397
2596
|
}
|
|
2398
|
-
function
|
|
2597
|
+
function Zr(t) {
|
|
2399
2598
|
let e, r, n = (
|
|
2400
2599
|
/*stripe*/
|
|
2401
2600
|
t[1] && /*elements*/
|
|
@@ -2403,7 +2602,7 @@ function Xr(t) {
|
|
|
2403
2602
|
);
|
|
2404
2603
|
return {
|
|
2405
2604
|
c() {
|
|
2406
|
-
n && n.c(), e =
|
|
2605
|
+
n && n.c(), e = te();
|
|
2407
2606
|
},
|
|
2408
2607
|
m(i, o) {
|
|
2409
2608
|
n && n.m(i, o), p(i, e, o), r = !0;
|
|
@@ -2412,9 +2611,9 @@ function Xr(t) {
|
|
|
2412
2611
|
/*stripe*/
|
|
2413
2612
|
i[1] && /*elements*/
|
|
2414
2613
|
i[0] ? n ? (n.p(i, o), o & /*stripe, elements*/
|
|
2415
|
-
3 && f(n, 1)) : (n = dt(i), n.c(), f(n, 1), n.m(e.parentNode, e)) : n && (
|
|
2614
|
+
3 && f(n, 1)) : (n = dt(i), n.c(), f(n, 1), n.m(e.parentNode, e)) : n && (H(), m(n, 1, 1, () => {
|
|
2416
2615
|
n = null;
|
|
2417
|
-
}),
|
|
2616
|
+
}), K());
|
|
2418
2617
|
},
|
|
2419
2618
|
i(i) {
|
|
2420
2619
|
r || (f(n), r = !0);
|
|
@@ -2427,7 +2626,7 @@ function Xr(t) {
|
|
|
2427
2626
|
}
|
|
2428
2627
|
};
|
|
2429
2628
|
}
|
|
2430
|
-
function
|
|
2629
|
+
function ei(t, e, r) {
|
|
2431
2630
|
let n, { $$slots: i = {}, $$scope: o } = e, { stripe: s } = e, { mode: l = void 0 } = e, { theme: c = "stripe" } = e, { variables: a = {} } = e, { rules: u = {} } = e, { labels: d = "above" } = e, { loader: h = "auto" } = e, { fonts: $ = [] } = e, { locale: E = "auto" } = e, { currency: B = void 0 } = e, { amount: A = void 0 } = e, { clientSecret: y = void 0 } = e, { elements: R = null } = e;
|
|
2432
2631
|
return t.$$set = (M) => {
|
|
2433
2632
|
"stripe" in M && r(1, s = M.stripe), "mode" in M && r(2, l = M.mode), "theme" in M && r(3, c = M.theme), "variables" in M && r(4, a = M.variables), "rules" in M && r(5, u = M.rules), "labels" in M && r(6, d = M.labels), "loader" in M && r(7, h = M.loader), "fonts" in M && r(8, $ = M.fonts), "locale" in M && r(9, E = M.locale), "currency" in M && r(10, B = M.currency), "amount" in M && r(11, A = M.amount), "clientSecret" in M && r(12, y = M.clientSecret), "elements" in M && r(0, R = M.elements), "$$scope" in M && r(14, o = M.$$scope);
|
|
@@ -2443,7 +2642,7 @@ function Zr(t, e, r) {
|
|
|
2443
2642
|
fonts: $,
|
|
2444
2643
|
loader: h,
|
|
2445
2644
|
locale: E
|
|
2446
|
-
})),
|
|
2645
|
+
})), Vr(s), An("stripe", { stripe: s, elements: R })), t.$$.dirty & /*elements, appearance, locale*/
|
|
2447
2646
|
8705 && R && R.update({ appearance: n, locale: E });
|
|
2448
2647
|
}, [
|
|
2449
2648
|
R,
|
|
@@ -2464,9 +2663,9 @@ function Zr(t, e, r) {
|
|
|
2464
2663
|
i
|
|
2465
2664
|
];
|
|
2466
2665
|
}
|
|
2467
|
-
class
|
|
2666
|
+
class ti extends U {
|
|
2468
2667
|
constructor(e) {
|
|
2469
|
-
super(), N(this, e,
|
|
2668
|
+
super(), N(this, e, ei, Zr, T, {
|
|
2470
2669
|
stripe: 1,
|
|
2471
2670
|
mode: 2,
|
|
2472
2671
|
theme: 3,
|
|
@@ -2483,35 +2682,35 @@ class ei extends U {
|
|
|
2483
2682
|
});
|
|
2484
2683
|
}
|
|
2485
2684
|
}
|
|
2486
|
-
var
|
|
2487
|
-
for (var e = document.querySelectorAll('script[src^="'.concat(
|
|
2685
|
+
var St = "https://js.stripe.com/v3", ni = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, mt = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", ri = function() {
|
|
2686
|
+
for (var e = document.querySelectorAll('script[src^="'.concat(St, '"]')), r = 0; r < e.length; r++) {
|
|
2488
2687
|
var n = e[r];
|
|
2489
|
-
if (
|
|
2688
|
+
if (ni.test(n.src))
|
|
2490
2689
|
return n;
|
|
2491
2690
|
}
|
|
2492
2691
|
return null;
|
|
2493
2692
|
}, gt = function(e) {
|
|
2494
2693
|
var r = e && !e.advancedFraudSignals ? "?advancedFraudSignals=false" : "", n = document.createElement("script");
|
|
2495
|
-
n.src = "".concat(
|
|
2694
|
+
n.src = "".concat(St).concat(r);
|
|
2496
2695
|
var i = document.head || document.body;
|
|
2497
2696
|
if (!i)
|
|
2498
2697
|
throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
|
|
2499
2698
|
return i.appendChild(n), n;
|
|
2500
|
-
},
|
|
2699
|
+
}, ii = function(e, r) {
|
|
2501
2700
|
!e || !e._registerWrapper || e._registerWrapper({
|
|
2502
2701
|
name: "stripe-js",
|
|
2503
2702
|
version: "2.4.0",
|
|
2504
2703
|
startTime: r
|
|
2505
2704
|
});
|
|
2506
|
-
}, me = null, Ce = null, Qe = null,
|
|
2705
|
+
}, me = null, Ce = null, Qe = null, oi = function(e) {
|
|
2507
2706
|
return function() {
|
|
2508
2707
|
e(new Error("Failed to load Stripe.js"));
|
|
2509
2708
|
};
|
|
2510
|
-
},
|
|
2709
|
+
}, si = function(e, r) {
|
|
2511
2710
|
return function() {
|
|
2512
2711
|
window.Stripe ? e(window.Stripe) : r(new Error("Stripe.js not available"));
|
|
2513
2712
|
};
|
|
2514
|
-
},
|
|
2713
|
+
}, li = function(e) {
|
|
2515
2714
|
return me !== null ? me : (me = new Promise(function(r, n) {
|
|
2516
2715
|
if (typeof window > "u" || typeof document > "u") {
|
|
2517
2716
|
r(null);
|
|
@@ -2522,7 +2721,7 @@ var Rt = "https://js.stripe.com/v3", ti = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
|
|
|
2522
2721
|
return;
|
|
2523
2722
|
}
|
|
2524
2723
|
try {
|
|
2525
|
-
var i =
|
|
2724
|
+
var i = ri();
|
|
2526
2725
|
if (i && e)
|
|
2527
2726
|
console.warn(mt);
|
|
2528
2727
|
else if (!i)
|
|
@@ -2531,7 +2730,7 @@ var Rt = "https://js.stripe.com/v3", ti = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
|
|
|
2531
2730
|
var o;
|
|
2532
2731
|
i.removeEventListener("load", Qe), i.removeEventListener("error", Ce), (o = i.parentNode) === null || o === void 0 || o.removeChild(i), i = gt(e);
|
|
2533
2732
|
}
|
|
2534
|
-
Qe =
|
|
2733
|
+
Qe = si(r, n), Ce = oi(n), i.addEventListener("load", Qe), i.addEventListener("error", Ce);
|
|
2535
2734
|
} catch (s) {
|
|
2536
2735
|
n(s);
|
|
2537
2736
|
return;
|
|
@@ -2539,34 +2738,34 @@ var Rt = "https://js.stripe.com/v3", ti = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
|
|
|
2539
2738
|
}), me.catch(function(r) {
|
|
2540
2739
|
return me = null, Promise.reject(r);
|
|
2541
2740
|
}));
|
|
2542
|
-
},
|
|
2741
|
+
}, ci = function(e, r, n) {
|
|
2543
2742
|
if (e === null)
|
|
2544
2743
|
return null;
|
|
2545
2744
|
var i = e.apply(void 0, r);
|
|
2546
|
-
return
|
|
2547
|
-
}, ge, Ot = !1,
|
|
2548
|
-
return ge || (ge =
|
|
2745
|
+
return ii(i, n), i;
|
|
2746
|
+
}, ge, Ot = !1, Lt = function() {
|
|
2747
|
+
return ge || (ge = li(null).catch(function(e) {
|
|
2549
2748
|
return ge = null, Promise.reject(e);
|
|
2550
2749
|
}), ge);
|
|
2551
2750
|
};
|
|
2552
2751
|
Promise.resolve().then(function() {
|
|
2553
|
-
return
|
|
2752
|
+
return Lt();
|
|
2554
2753
|
}).catch(function(t) {
|
|
2555
2754
|
Ot || console.warn(t);
|
|
2556
2755
|
});
|
|
2557
|
-
var
|
|
2756
|
+
var ai = function() {
|
|
2558
2757
|
for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++)
|
|
2559
2758
|
r[n] = arguments[n];
|
|
2560
2759
|
Ot = !0;
|
|
2561
2760
|
var i = Date.now();
|
|
2562
|
-
return
|
|
2563
|
-
return
|
|
2761
|
+
return Lt().then(function(o) {
|
|
2762
|
+
return ci(o, r, i);
|
|
2564
2763
|
});
|
|
2565
2764
|
};
|
|
2566
|
-
function ai(t) {
|
|
2567
|
-
F(t, "svelte-1xe711j", ".rcb-header-layout.svelte-1xe711j{display:flex;justify-content:space-between;align-items:center;width:100%;font-size:24px;margin:0;font-weight:500}");
|
|
2568
|
-
}
|
|
2569
2765
|
function ui(t) {
|
|
2766
|
+
x(t, "svelte-1xe711j", ".rcb-header-layout.svelte-1xe711j{display:flex;justify-content:space-between;align-items:center;width:100%;font-size:24px;margin:0;font-weight:500}");
|
|
2767
|
+
}
|
|
2768
|
+
function fi(t) {
|
|
2570
2769
|
let e, r;
|
|
2571
2770
|
const n = (
|
|
2572
2771
|
/*#slots*/
|
|
@@ -2617,12 +2816,12 @@ function ui(t) {
|
|
|
2617
2816
|
}
|
|
2618
2817
|
};
|
|
2619
2818
|
}
|
|
2620
|
-
function
|
|
2819
|
+
function di(t) {
|
|
2621
2820
|
let e, r;
|
|
2622
2821
|
return e = new ue({
|
|
2623
2822
|
props: {
|
|
2624
2823
|
as: "header",
|
|
2625
|
-
$$slots: { default: [
|
|
2824
|
+
$$slots: { default: [fi] },
|
|
2626
2825
|
$$scope: { ctx: t }
|
|
2627
2826
|
}
|
|
2628
2827
|
}), {
|
|
@@ -2648,7 +2847,7 @@ function fi(t) {
|
|
|
2648
2847
|
}
|
|
2649
2848
|
};
|
|
2650
2849
|
}
|
|
2651
|
-
function
|
|
2850
|
+
function mi(t, e, r) {
|
|
2652
2851
|
let { $$slots: n = {}, $$scope: i } = e;
|
|
2653
2852
|
return t.$$set = (o) => {
|
|
2654
2853
|
"$$scope" in o && r(1, i = o.$$scope);
|
|
@@ -2656,15 +2855,15 @@ function di(t, e, r) {
|
|
|
2656
2855
|
}
|
|
2657
2856
|
class Xe extends U {
|
|
2658
2857
|
constructor(e) {
|
|
2659
|
-
super(), N(this, e,
|
|
2858
|
+
super(), N(this, e, mi, di, T, {}, ui);
|
|
2660
2859
|
}
|
|
2661
2860
|
}
|
|
2662
|
-
const
|
|
2663
|
-
function
|
|
2861
|
+
const gi = "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";
|
|
2862
|
+
function pi(t) {
|
|
2664
2863
|
let e, r;
|
|
2665
2864
|
return {
|
|
2666
2865
|
c() {
|
|
2667
|
-
e = k("img"), Z(e.src, r =
|
|
2866
|
+
e = k("img"), Z(e.src, r = gi) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon");
|
|
2668
2867
|
},
|
|
2669
2868
|
m(n, i) {
|
|
2670
2869
|
p(n, e, i);
|
|
@@ -2677,9 +2876,9 @@ function gi(t) {
|
|
|
2677
2876
|
}
|
|
2678
2877
|
};
|
|
2679
2878
|
}
|
|
2680
|
-
class
|
|
2879
|
+
class _i extends U {
|
|
2681
2880
|
constructor(e) {
|
|
2682
|
-
super(), N(this, e, null,
|
|
2881
|
+
super(), N(this, e, null, pi, T, {});
|
|
2683
2882
|
}
|
|
2684
2883
|
}
|
|
2685
2884
|
const _e = {
|
|
@@ -2691,15 +2890,15 @@ const _e = {
|
|
|
2691
2890
|
"grey-ui-dark": "#dfdfdf",
|
|
2692
2891
|
white: "#ffffff"
|
|
2693
2892
|
};
|
|
2694
|
-
function
|
|
2695
|
-
|
|
2893
|
+
function Ai(t) {
|
|
2894
|
+
x(t, "svelte-rjmul6", `.processing.svelte-rjmul6{width:12px;aspect-ratio:1;border-radius:50%;animation:svelte-rjmul6-l5 1.5s infinite linear}@keyframes svelte-rjmul6-l5{0%{box-shadow:20px 0 #fff2,
|
|
2696
2895
|
-20px 0 #fff2;background:#fff2}25%{box-shadow:20px 0 #fff2,
|
|
2697
2896
|
-20px 0 #ffff;background:#fff2}50%{box-shadow:20px 0 #fff2,
|
|
2698
2897
|
-20px 0 #fff2;background:#ffff}75%{box-shadow:20px 0 #ffff,
|
|
2699
2898
|
-20px 0 #fff2;background:#fff2}100%{box-shadow:20px 0 #fff2,
|
|
2700
2899
|
-20px 0 #fff2;background:#fff2}}`);
|
|
2701
2900
|
}
|
|
2702
|
-
function
|
|
2901
|
+
function hi(t) {
|
|
2703
2902
|
let e;
|
|
2704
2903
|
return {
|
|
2705
2904
|
c() {
|
|
@@ -2716,15 +2915,15 @@ function Ai(t) {
|
|
|
2716
2915
|
}
|
|
2717
2916
|
};
|
|
2718
2917
|
}
|
|
2719
|
-
class
|
|
2918
|
+
class xt extends U {
|
|
2720
2919
|
constructor(e) {
|
|
2721
|
-
super(), N(this, e, null,
|
|
2920
|
+
super(), N(this, e, null, hi, T, {}, Ai);
|
|
2722
2921
|
}
|
|
2723
2922
|
}
|
|
2724
|
-
function hi(t) {
|
|
2725
|
-
F(t, "svelte-1wxt892", ".rcb-stripe-elements-container.svelte-1wxt892{width:100%;margin-top:32px;margin-bottom:24px}");
|
|
2726
|
-
}
|
|
2727
2923
|
function Ei(t) {
|
|
2924
|
+
x(t, "svelte-1wxt892", ".rcb-stripe-elements-container.svelte-1wxt892{width:100%;margin-top:32px;margin-bottom:24px}");
|
|
2925
|
+
}
|
|
2926
|
+
function bi(t) {
|
|
2728
2927
|
let e, r;
|
|
2729
2928
|
return e = new We({}), {
|
|
2730
2929
|
c() {
|
|
@@ -2745,7 +2944,7 @@ function Ei(t) {
|
|
|
2745
2944
|
}
|
|
2746
2945
|
};
|
|
2747
2946
|
}
|
|
2748
|
-
function
|
|
2947
|
+
function Ii(t) {
|
|
2749
2948
|
let e, r, n, i, o, s;
|
|
2750
2949
|
function l(a) {
|
|
2751
2950
|
t[9](a);
|
|
@@ -2786,13 +2985,13 @@ function bi(t) {
|
|
|
2786
2985
|
},
|
|
2787
2986
|
".Input--invalid": { boxShadow: "none" }
|
|
2788
2987
|
},
|
|
2789
|
-
$$slots: { default: [
|
|
2988
|
+
$$slots: { default: [Ci] },
|
|
2790
2989
|
$$scope: { ctx: t }
|
|
2791
2990
|
};
|
|
2792
2991
|
return (
|
|
2793
2992
|
/*elements*/
|
|
2794
2993
|
t[2] !== void 0 && (c.elements = /*elements*/
|
|
2795
|
-
t[2]), r = new
|
|
2994
|
+
t[2]), r = new ti({ props: c }), Ue.push(() => $n(r, "elements", l)), {
|
|
2796
2995
|
c() {
|
|
2797
2996
|
e = k("form"), w(r.$$.fragment);
|
|
2798
2997
|
},
|
|
@@ -2823,9 +3022,9 @@ function bi(t) {
|
|
|
2823
3022
|
}
|
|
2824
3023
|
);
|
|
2825
3024
|
}
|
|
2826
|
-
function
|
|
3025
|
+
function wi(t) {
|
|
2827
3026
|
let e, r, n, i;
|
|
2828
|
-
return n = new
|
|
3027
|
+
return n = new _i({}), {
|
|
2829
3028
|
c() {
|
|
2830
3029
|
e = k("div"), e.textContent = "Secure Checkout", r = P(), w(n.$$.fragment);
|
|
2831
3030
|
},
|
|
@@ -2844,9 +3043,9 @@ function Ii(t) {
|
|
|
2844
3043
|
}
|
|
2845
3044
|
};
|
|
2846
3045
|
}
|
|
2847
|
-
function
|
|
3046
|
+
function ki(t) {
|
|
2848
3047
|
let e, r, n;
|
|
2849
|
-
return r = new
|
|
3048
|
+
return r = new Xr({}), {
|
|
2850
3049
|
c() {
|
|
2851
3050
|
e = k("div"), w(r.$$.fragment), _(e, "class", "rcb-stripe-elements-container svelte-1wxt892");
|
|
2852
3051
|
},
|
|
@@ -2865,11 +3064,11 @@ function wi(t) {
|
|
|
2865
3064
|
}
|
|
2866
3065
|
};
|
|
2867
3066
|
}
|
|
2868
|
-
function
|
|
3067
|
+
function $i(t) {
|
|
2869
3068
|
let e;
|
|
2870
3069
|
return {
|
|
2871
3070
|
c() {
|
|
2872
|
-
e =
|
|
3071
|
+
e = L("Pay");
|
|
2873
3072
|
},
|
|
2874
3073
|
m(r, n) {
|
|
2875
3074
|
p(r, e, n);
|
|
@@ -2881,9 +3080,9 @@ function ki(t) {
|
|
|
2881
3080
|
}
|
|
2882
3081
|
};
|
|
2883
3082
|
}
|
|
2884
|
-
function
|
|
3083
|
+
function vi(t) {
|
|
2885
3084
|
let e, r;
|
|
2886
|
-
return e = new
|
|
3085
|
+
return e = new xt({}), {
|
|
2887
3086
|
c() {
|
|
2888
3087
|
w(e.$$.fragment);
|
|
2889
3088
|
},
|
|
@@ -2901,9 +3100,9 @@ function $i(t) {
|
|
|
2901
3100
|
}
|
|
2902
3101
|
};
|
|
2903
3102
|
}
|
|
2904
|
-
function
|
|
3103
|
+
function yi(t) {
|
|
2905
3104
|
let e, r, n, i;
|
|
2906
|
-
const o = [$i
|
|
3105
|
+
const o = [vi, $i], s = [];
|
|
2907
3106
|
function l(c, a) {
|
|
2908
3107
|
return (
|
|
2909
3108
|
/*processing*/
|
|
@@ -2912,16 +3111,16 @@ function vi(t) {
|
|
|
2912
3111
|
}
|
|
2913
3112
|
return e = l(t), r = s[e] = o[e](t), {
|
|
2914
3113
|
c() {
|
|
2915
|
-
r.c(), n =
|
|
3114
|
+
r.c(), n = te();
|
|
2916
3115
|
},
|
|
2917
3116
|
m(c, a) {
|
|
2918
3117
|
s[e].m(c, a), p(c, n, a), i = !0;
|
|
2919
3118
|
},
|
|
2920
3119
|
p(c, a) {
|
|
2921
3120
|
let u = e;
|
|
2922
|
-
e = l(c), e !== u && (
|
|
3121
|
+
e = l(c), e !== u && (H(), m(s[u], 1, 1, () => {
|
|
2923
3122
|
s[u] = null;
|
|
2924
|
-
}),
|
|
3123
|
+
}), K(), r = s[e], r || (r = s[e] = o[e](c), r.c()), f(r, 1), r.m(n.parentNode, n));
|
|
2925
3124
|
},
|
|
2926
3125
|
i(c) {
|
|
2927
3126
|
i || (f(r), i = !0);
|
|
@@ -2934,11 +3133,11 @@ function vi(t) {
|
|
|
2934
3133
|
}
|
|
2935
3134
|
};
|
|
2936
3135
|
}
|
|
2937
|
-
function
|
|
3136
|
+
function Bi(t) {
|
|
2938
3137
|
let e;
|
|
2939
3138
|
return {
|
|
2940
3139
|
c() {
|
|
2941
|
-
e =
|
|
3140
|
+
e = L("Close");
|
|
2942
3141
|
},
|
|
2943
3142
|
m(r, n) {
|
|
2944
3143
|
p(r, e, n);
|
|
@@ -2948,7 +3147,7 @@ function yi(t) {
|
|
|
2948
3147
|
}
|
|
2949
3148
|
};
|
|
2950
3149
|
}
|
|
2951
|
-
function
|
|
3150
|
+
function Di(t) {
|
|
2952
3151
|
let e, r, n, i;
|
|
2953
3152
|
return e = new Ie({
|
|
2954
3153
|
props: {
|
|
@@ -2956,7 +3155,7 @@ function Bi(t) {
|
|
|
2956
3155
|
/*processing*/
|
|
2957
3156
|
t[0]
|
|
2958
3157
|
),
|
|
2959
|
-
$$slots: { default: [
|
|
3158
|
+
$$slots: { default: [yi] },
|
|
2960
3159
|
$$scope: { ctx: t }
|
|
2961
3160
|
}
|
|
2962
3161
|
}), n = new Ie({
|
|
@@ -2966,7 +3165,7 @@ function Bi(t) {
|
|
|
2966
3165
|
t[0]
|
|
2967
3166
|
),
|
|
2968
3167
|
intent: "secondary",
|
|
2969
|
-
$$slots: { default: [
|
|
3168
|
+
$$slots: { default: [Bi] },
|
|
2970
3169
|
$$scope: { ctx: t }
|
|
2971
3170
|
}
|
|
2972
3171
|
}), n.$on("click", function() {
|
|
@@ -3005,11 +3204,11 @@ function Bi(t) {
|
|
|
3005
3204
|
}
|
|
3006
3205
|
};
|
|
3007
3206
|
}
|
|
3008
|
-
function
|
|
3207
|
+
function Mi(t) {
|
|
3009
3208
|
let e, r;
|
|
3010
3209
|
return e = new $e({
|
|
3011
3210
|
props: {
|
|
3012
|
-
$$slots: { default: [
|
|
3211
|
+
$$slots: { default: [Di] },
|
|
3013
3212
|
$$scope: { ctx: t }
|
|
3014
3213
|
}
|
|
3015
3214
|
}), {
|
|
@@ -3035,21 +3234,21 @@ function Di(t) {
|
|
|
3035
3234
|
}
|
|
3036
3235
|
};
|
|
3037
3236
|
}
|
|
3038
|
-
function
|
|
3237
|
+
function Ci(t) {
|
|
3039
3238
|
let e, r, n, i, o, s;
|
|
3040
3239
|
return e = new Xe({
|
|
3041
3240
|
props: {
|
|
3042
|
-
$$slots: { default: [
|
|
3241
|
+
$$slots: { default: [wi] },
|
|
3043
3242
|
$$scope: { ctx: t }
|
|
3044
3243
|
}
|
|
3045
3244
|
}), n = new ue({
|
|
3046
3245
|
props: {
|
|
3047
|
-
$$slots: { default: [
|
|
3246
|
+
$$slots: { default: [ki] },
|
|
3048
3247
|
$$scope: { ctx: t }
|
|
3049
3248
|
}
|
|
3050
3249
|
}), o = new ze({
|
|
3051
3250
|
props: {
|
|
3052
|
-
$$slots: { default: [
|
|
3251
|
+
$$slots: { default: [Mi] },
|
|
3053
3252
|
$$scope: { ctx: t }
|
|
3054
3253
|
}
|
|
3055
3254
|
}), {
|
|
@@ -3081,9 +3280,9 @@ function Mi(t) {
|
|
|
3081
3280
|
}
|
|
3082
3281
|
};
|
|
3083
3282
|
}
|
|
3084
|
-
function
|
|
3283
|
+
function Qi(t) {
|
|
3085
3284
|
let e, r, n, i;
|
|
3086
|
-
const o = [
|
|
3285
|
+
const o = [Ii, bi], s = [];
|
|
3087
3286
|
function l(c, a) {
|
|
3088
3287
|
return (
|
|
3089
3288
|
/*stripe*/
|
|
@@ -3100,9 +3299,9 @@ function Ci(t) {
|
|
|
3100
3299
|
},
|
|
3101
3300
|
p(c, [a]) {
|
|
3102
3301
|
let u = r;
|
|
3103
|
-
r = l(c), r === u ? s[r].p(c, a) : (
|
|
3302
|
+
r = l(c), r === u ? s[r].p(c, a) : (H(), m(s[u], 1, 1, () => {
|
|
3104
3303
|
s[u] = null;
|
|
3105
|
-
}),
|
|
3304
|
+
}), K(), n = s[r], n ? n.p(c, a) : (n = s[r] = o[r](c), n.c()), f(n, 1), n.m(e, null));
|
|
3106
3305
|
},
|
|
3107
3306
|
i(c) {
|
|
3108
3307
|
i || (f(n), i = !0);
|
|
@@ -3115,15 +3314,15 @@ function Ci(t) {
|
|
|
3115
3314
|
}
|
|
3116
3315
|
};
|
|
3117
3316
|
}
|
|
3118
|
-
function
|
|
3317
|
+
function Pi(t, e, r) {
|
|
3119
3318
|
let { onClose: n } = e, { onContinue: i } = e, { onError: o } = e, { paymentInfoCollectionMetadata: s } = e, { processing: l = !1 } = e;
|
|
3120
3319
|
const c = s.data.client_secret;
|
|
3121
3320
|
let a = null, u, d;
|
|
3122
|
-
|
|
3321
|
+
Oe(async () => {
|
|
3123
3322
|
const E = s.data.publishable_api_key, B = s.data.stripe_account_id;
|
|
3124
3323
|
if (!E || !B)
|
|
3125
3324
|
throw new Error("Stripe publishable key or account ID not found");
|
|
3126
|
-
r(3, a = await
|
|
3325
|
+
r(3, a = await ai(E, { stripeAccount: B }));
|
|
3127
3326
|
});
|
|
3128
3327
|
const h = async () => {
|
|
3129
3328
|
if (l || !a || !d)
|
|
@@ -3133,7 +3332,7 @@ function Qi(t, e, r) {
|
|
|
3133
3332
|
elements: d,
|
|
3134
3333
|
redirect: "if_required"
|
|
3135
3334
|
});
|
|
3136
|
-
E.error ? (r(0, l = !1), o(new
|
|
3335
|
+
E.error ? (r(0, l = !1), o(new Y(O.StripeError, E.error.message))) : i();
|
|
3137
3336
|
};
|
|
3138
3337
|
function $(E) {
|
|
3139
3338
|
u = E, r(2, u);
|
|
@@ -3156,13 +3355,13 @@ function Qi(t, e, r) {
|
|
|
3156
3355
|
$
|
|
3157
3356
|
];
|
|
3158
3357
|
}
|
|
3159
|
-
class
|
|
3358
|
+
class Ti extends U {
|
|
3160
3359
|
constructor(e) {
|
|
3161
3360
|
super(), N(
|
|
3162
3361
|
this,
|
|
3163
3362
|
e,
|
|
3363
|
+
Pi,
|
|
3164
3364
|
Qi,
|
|
3165
|
-
Ci,
|
|
3166
3365
|
T,
|
|
3167
3366
|
{
|
|
3168
3367
|
onClose: 1,
|
|
@@ -3171,18 +3370,21 @@ class Pi extends U {
|
|
|
3171
3370
|
paymentInfoCollectionMetadata: 8,
|
|
3172
3371
|
processing: 0
|
|
3173
3372
|
},
|
|
3174
|
-
|
|
3373
|
+
Ei
|
|
3175
3374
|
);
|
|
3176
3375
|
}
|
|
3177
3376
|
}
|
|
3178
|
-
function Ti(t) {
|
|
3179
|
-
F(t, "svelte-favd20", "form.svelte-favd20.svelte-favd20{display:flex;flex-direction:column;min-height:100%;flex-grow:1}.form-container.svelte-favd20.svelte-favd20{display:flex;flex-direction:column;width:100%;margin-top:32px;margin-bottom:16px}.form-label.svelte-favd20.svelte-favd20{margin-top:8px;margin-bottom:8px;display:block;font-weight:500;line-height:22px}.form-input.error.svelte-favd20 input.svelte-favd20{border-color:var(--rc-color-error)}.form-error.svelte-favd20.svelte-favd20{margin-top:4px;font-size:16px;line-height:20px;min-height:40px;color:var(--rc-color-error)}input.svelte-favd20.svelte-favd20{width:100%;box-sizing:border-box;padding:8px;border:2px solid var(--rc-color-grey-ui-dark);border-radius:12px;font-size:16px;height:48px;padding:6px 14px}input.svelte-favd20.svelte-favd20:focus{outline:none;border:2px solid var(--rc-color-focus)}");
|
|
3180
|
-
}
|
|
3181
3377
|
function Ni(t) {
|
|
3378
|
+
return t.trim() === "" ? "You need to provide your email address to continue." : t.match(/^[^@]+@[^@]+\.[^@]+$/) ? null : "Email is not valid. Please provide a valid email address.";
|
|
3379
|
+
}
|
|
3380
|
+
function Ui(t) {
|
|
3381
|
+
x(t, "svelte-favd20", "form.svelte-favd20.svelte-favd20{display:flex;flex-direction:column;min-height:100%;flex-grow:1}.form-container.svelte-favd20.svelte-favd20{display:flex;flex-direction:column;width:100%;margin-top:32px;margin-bottom:16px}.form-label.svelte-favd20.svelte-favd20{margin-top:8px;margin-bottom:8px;display:block;font-weight:500;line-height:22px}.form-input.error.svelte-favd20 input.svelte-favd20{border-color:var(--rc-color-error)}.form-error.svelte-favd20.svelte-favd20{margin-top:4px;font-size:16px;line-height:20px;min-height:40px;color:var(--rc-color-error)}input.svelte-favd20.svelte-favd20{width:100%;box-sizing:border-box;padding:8px;border:2px solid var(--rc-color-grey-ui-dark);border-radius:12px;font-size:16px;height:48px;padding:6px 14px}input.svelte-favd20.svelte-favd20:focus{outline:none;border:2px solid var(--rc-color-focus)}");
|
|
3382
|
+
}
|
|
3383
|
+
function Ri(t) {
|
|
3182
3384
|
let e;
|
|
3183
3385
|
return {
|
|
3184
3386
|
c() {
|
|
3185
|
-
e =
|
|
3387
|
+
e = L("Billing email address");
|
|
3186
3388
|
},
|
|
3187
3389
|
m(r, n) {
|
|
3188
3390
|
p(r, e, n);
|
|
@@ -3196,7 +3398,7 @@ function pt(t) {
|
|
|
3196
3398
|
let e, r;
|
|
3197
3399
|
return {
|
|
3198
3400
|
c() {
|
|
3199
|
-
e = k("div"), r =
|
|
3401
|
+
e = k("div"), r = L(
|
|
3200
3402
|
/*error*/
|
|
3201
3403
|
t[2]
|
|
3202
3404
|
), _(e, "class", "form-error svelte-favd20");
|
|
@@ -3217,7 +3419,7 @@ function pt(t) {
|
|
|
3217
3419
|
}
|
|
3218
3420
|
};
|
|
3219
3421
|
}
|
|
3220
|
-
function
|
|
3422
|
+
function Si(t) {
|
|
3221
3423
|
let e, r, n, i, o, s, l, c, a, u = (
|
|
3222
3424
|
/*error*/
|
|
3223
3425
|
t[2] && pt(t)
|
|
@@ -3256,11 +3458,11 @@ function Ui(t) {
|
|
|
3256
3458
|
}
|
|
3257
3459
|
};
|
|
3258
3460
|
}
|
|
3259
|
-
function
|
|
3461
|
+
function Oi(t) {
|
|
3260
3462
|
let e;
|
|
3261
3463
|
return {
|
|
3262
3464
|
c() {
|
|
3263
|
-
e =
|
|
3465
|
+
e = L("Continue");
|
|
3264
3466
|
},
|
|
3265
3467
|
m(r, n) {
|
|
3266
3468
|
p(r, e, n);
|
|
@@ -3272,9 +3474,9 @@ function Ri(t) {
|
|
|
3272
3474
|
}
|
|
3273
3475
|
};
|
|
3274
3476
|
}
|
|
3275
|
-
function
|
|
3477
|
+
function Li(t) {
|
|
3276
3478
|
let e, r;
|
|
3277
|
-
return e = new
|
|
3479
|
+
return e = new xt({}), {
|
|
3278
3480
|
c() {
|
|
3279
3481
|
w(e.$$.fragment);
|
|
3280
3482
|
},
|
|
@@ -3292,9 +3494,9 @@ function Oi(t) {
|
|
|
3292
3494
|
}
|
|
3293
3495
|
};
|
|
3294
3496
|
}
|
|
3295
|
-
function
|
|
3497
|
+
function xi(t) {
|
|
3296
3498
|
let e, r, n, i;
|
|
3297
|
-
const o = [
|
|
3499
|
+
const o = [Li, Oi], s = [];
|
|
3298
3500
|
function l(c, a) {
|
|
3299
3501
|
return (
|
|
3300
3502
|
/*processing*/
|
|
@@ -3303,16 +3505,16 @@ function Si(t) {
|
|
|
3303
3505
|
}
|
|
3304
3506
|
return e = l(t), r = s[e] = o[e](t), {
|
|
3305
3507
|
c() {
|
|
3306
|
-
r.c(), n =
|
|
3508
|
+
r.c(), n = te();
|
|
3307
3509
|
},
|
|
3308
3510
|
m(c, a) {
|
|
3309
3511
|
s[e].m(c, a), p(c, n, a), i = !0;
|
|
3310
3512
|
},
|
|
3311
3513
|
p(c, a) {
|
|
3312
3514
|
let u = e;
|
|
3313
|
-
e = l(c), e !== u && (
|
|
3515
|
+
e = l(c), e !== u && (H(), m(s[u], 1, 1, () => {
|
|
3314
3516
|
s[u] = null;
|
|
3315
|
-
}),
|
|
3517
|
+
}), K(), r = s[e], r || (r = s[e] = o[e](c), r.c()), f(r, 1), r.m(n.parentNode, n));
|
|
3316
3518
|
},
|
|
3317
3519
|
i(c) {
|
|
3318
3520
|
i || (f(r), i = !0);
|
|
@@ -3325,11 +3527,11 @@ function Si(t) {
|
|
|
3325
3527
|
}
|
|
3326
3528
|
};
|
|
3327
3529
|
}
|
|
3328
|
-
function
|
|
3530
|
+
function Fi(t) {
|
|
3329
3531
|
let e;
|
|
3330
3532
|
return {
|
|
3331
3533
|
c() {
|
|
3332
|
-
e =
|
|
3534
|
+
e = L("Close");
|
|
3333
3535
|
},
|
|
3334
3536
|
m(r, n) {
|
|
3335
3537
|
p(r, e, n);
|
|
@@ -3339,7 +3541,7 @@ function Li(t) {
|
|
|
3339
3541
|
}
|
|
3340
3542
|
};
|
|
3341
3543
|
}
|
|
3342
|
-
function
|
|
3544
|
+
function Gi(t) {
|
|
3343
3545
|
let e, r, n, i;
|
|
3344
3546
|
return e = new Ie({
|
|
3345
3547
|
props: {
|
|
@@ -3347,7 +3549,7 @@ function Fi(t) {
|
|
|
3347
3549
|
/*processing*/
|
|
3348
3550
|
t[1]
|
|
3349
3551
|
),
|
|
3350
|
-
$$slots: { default: [
|
|
3552
|
+
$$slots: { default: [xi] },
|
|
3351
3553
|
$$scope: { ctx: t }
|
|
3352
3554
|
}
|
|
3353
3555
|
}), n = new Ie({
|
|
@@ -3357,7 +3559,7 @@ function Fi(t) {
|
|
|
3357
3559
|
/*processing*/
|
|
3358
3560
|
t[1]
|
|
3359
3561
|
),
|
|
3360
|
-
$$slots: { default: [
|
|
3562
|
+
$$slots: { default: [Fi] },
|
|
3361
3563
|
$$scope: { ctx: t }
|
|
3362
3564
|
}
|
|
3363
3565
|
}), n.$on("click", function() {
|
|
@@ -3396,11 +3598,11 @@ function Fi(t) {
|
|
|
3396
3598
|
}
|
|
3397
3599
|
};
|
|
3398
3600
|
}
|
|
3399
|
-
function
|
|
3601
|
+
function Yi(t) {
|
|
3400
3602
|
let e, r;
|
|
3401
3603
|
return e = new $e({
|
|
3402
3604
|
props: {
|
|
3403
|
-
$$slots: { default: [
|
|
3605
|
+
$$slots: { default: [Gi] },
|
|
3404
3606
|
$$scope: { ctx: t }
|
|
3405
3607
|
}
|
|
3406
3608
|
}), {
|
|
@@ -3426,21 +3628,21 @@ function xi(t) {
|
|
|
3426
3628
|
}
|
|
3427
3629
|
};
|
|
3428
3630
|
}
|
|
3429
|
-
function
|
|
3631
|
+
function Hi(t) {
|
|
3430
3632
|
let e, r, n, i, o, s, l, c, a;
|
|
3431
3633
|
return r = new Xe({
|
|
3432
3634
|
props: {
|
|
3433
|
-
$$slots: { default: [
|
|
3635
|
+
$$slots: { default: [Ri] },
|
|
3434
3636
|
$$scope: { ctx: t }
|
|
3435
3637
|
}
|
|
3436
3638
|
}), i = new ue({
|
|
3437
3639
|
props: {
|
|
3438
|
-
$$slots: { default: [
|
|
3640
|
+
$$slots: { default: [Si] },
|
|
3439
3641
|
$$scope: { ctx: t }
|
|
3440
3642
|
}
|
|
3441
3643
|
}), s = new ze({
|
|
3442
3644
|
props: {
|
|
3443
|
-
$$slots: { default: [
|
|
3645
|
+
$$slots: { default: [Yi] },
|
|
3444
3646
|
$$scope: { ctx: t }
|
|
3445
3647
|
}
|
|
3446
3648
|
}), {
|
|
@@ -3475,10 +3677,11 @@ function Gi(t) {
|
|
|
3475
3677
|
}
|
|
3476
3678
|
};
|
|
3477
3679
|
}
|
|
3478
|
-
function
|
|
3680
|
+
function Ki(t, e, r) {
|
|
3479
3681
|
let n, i, o, { onContinue: s } = e, { onClose: l } = e, { processing: c } = e;
|
|
3480
3682
|
const a = async () => {
|
|
3481
|
-
|
|
3683
|
+
const d = Ni(n);
|
|
3684
|
+
d ? r(2, i = d) : s({ email: n });
|
|
3482
3685
|
};
|
|
3483
3686
|
function u() {
|
|
3484
3687
|
n = this.value, r(3, n);
|
|
@@ -3499,15 +3702,15 @@ function Yi(t, e, r) {
|
|
|
3499
3702
|
u
|
|
3500
3703
|
];
|
|
3501
3704
|
}
|
|
3502
|
-
class
|
|
3705
|
+
class qi extends U {
|
|
3503
3706
|
constructor(e) {
|
|
3504
|
-
super(), N(this, e,
|
|
3707
|
+
super(), N(this, e, Ki, Hi, T, { onContinue: 6, onClose: 0, processing: 1 }, Ui);
|
|
3505
3708
|
}
|
|
3506
3709
|
}
|
|
3507
|
-
function
|
|
3508
|
-
|
|
3710
|
+
function ji(t) {
|
|
3711
|
+
x(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}");
|
|
3509
3712
|
}
|
|
3510
|
-
function
|
|
3713
|
+
function Ji(t) {
|
|
3511
3714
|
let e, r;
|
|
3512
3715
|
const n = (
|
|
3513
3716
|
/*#slots*/
|
|
@@ -3558,21 +3761,21 @@ function qi(t) {
|
|
|
3558
3761
|
}
|
|
3559
3762
|
};
|
|
3560
3763
|
}
|
|
3561
|
-
function
|
|
3764
|
+
function Vi(t, e, r) {
|
|
3562
3765
|
let { $$slots: n = {}, $$scope: i } = e;
|
|
3563
3766
|
return t.$$set = (o) => {
|
|
3564
3767
|
"$$scope" in o && r(0, i = o.$$scope);
|
|
3565
3768
|
}, [i, n];
|
|
3566
3769
|
}
|
|
3567
|
-
class
|
|
3770
|
+
class Wi extends U {
|
|
3568
3771
|
constructor(e) {
|
|
3569
|
-
super(), N(this, e,
|
|
3772
|
+
super(), N(this, e, Vi, Ji, T, {}, ji);
|
|
3570
3773
|
}
|
|
3571
3774
|
}
|
|
3572
|
-
function
|
|
3573
|
-
|
|
3775
|
+
function zi(t) {
|
|
3776
|
+
x(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}}");
|
|
3574
3777
|
}
|
|
3575
|
-
function
|
|
3778
|
+
function Xi(t) {
|
|
3576
3779
|
let e, r, n, i;
|
|
3577
3780
|
const o = (
|
|
3578
3781
|
/*#slots*/
|
|
@@ -3626,18 +3829,18 @@ function Wi(t) {
|
|
|
3626
3829
|
}
|
|
3627
3830
|
};
|
|
3628
3831
|
}
|
|
3629
|
-
function
|
|
3832
|
+
function Zi(t, e, r) {
|
|
3630
3833
|
let { $$slots: n = {}, $$scope: i } = e, { dark: o = !1 } = e;
|
|
3631
3834
|
return t.$$set = (s) => {
|
|
3632
3835
|
"dark" in s && r(0, o = s.dark), "$$scope" in s && r(1, i = s.$$scope);
|
|
3633
3836
|
}, [o, i, n];
|
|
3634
3837
|
}
|
|
3635
|
-
class
|
|
3838
|
+
class eo extends U {
|
|
3636
3839
|
constructor(e) {
|
|
3637
|
-
super(), N(this, e,
|
|
3840
|
+
super(), N(this, e, Zi, Xi, T, { dark: 0 }, zi);
|
|
3638
3841
|
}
|
|
3639
3842
|
}
|
|
3640
|
-
function
|
|
3843
|
+
function to(t) {
|
|
3641
3844
|
let e;
|
|
3642
3845
|
const r = (
|
|
3643
3846
|
/*#slots*/
|
|
@@ -3688,11 +3891,11 @@ function Zi(t) {
|
|
|
3688
3891
|
}
|
|
3689
3892
|
};
|
|
3690
3893
|
}
|
|
3691
|
-
function
|
|
3894
|
+
function no(t) {
|
|
3692
3895
|
let e, r;
|
|
3693
|
-
return e = new
|
|
3896
|
+
return e = new Wi({
|
|
3694
3897
|
props: {
|
|
3695
|
-
$$slots: { default: [
|
|
3898
|
+
$$slots: { default: [ro] },
|
|
3696
3899
|
$$scope: { ctx: t }
|
|
3697
3900
|
}
|
|
3698
3901
|
}), {
|
|
@@ -3718,7 +3921,7 @@ function eo(t) {
|
|
|
3718
3921
|
}
|
|
3719
3922
|
};
|
|
3720
3923
|
}
|
|
3721
|
-
function
|
|
3924
|
+
function ro(t) {
|
|
3722
3925
|
let e;
|
|
3723
3926
|
const r = (
|
|
3724
3927
|
/*#slots*/
|
|
@@ -3769,9 +3972,9 @@ function to(t) {
|
|
|
3769
3972
|
}
|
|
3770
3973
|
};
|
|
3771
3974
|
}
|
|
3772
|
-
function
|
|
3975
|
+
function io(t) {
|
|
3773
3976
|
let e, r, n, i;
|
|
3774
|
-
const o = [
|
|
3977
|
+
const o = [no, to], s = [];
|
|
3775
3978
|
function l(c, a) {
|
|
3776
3979
|
return (
|
|
3777
3980
|
/*condition*/
|
|
@@ -3780,16 +3983,16 @@ function no(t) {
|
|
|
3780
3983
|
}
|
|
3781
3984
|
return e = l(t), r = s[e] = o[e](t), {
|
|
3782
3985
|
c() {
|
|
3783
|
-
r.c(), n =
|
|
3986
|
+
r.c(), n = te();
|
|
3784
3987
|
},
|
|
3785
3988
|
m(c, a) {
|
|
3786
3989
|
s[e].m(c, a), p(c, n, a), i = !0;
|
|
3787
3990
|
},
|
|
3788
3991
|
p(c, [a]) {
|
|
3789
3992
|
let u = e;
|
|
3790
|
-
e = l(c), e === u ? s[e].p(c, a) : (
|
|
3993
|
+
e = l(c), e === u ? s[e].p(c, a) : (H(), m(s[u], 1, 1, () => {
|
|
3791
3994
|
s[u] = null;
|
|
3792
|
-
}),
|
|
3995
|
+
}), K(), r = s[e], r ? r.p(c, a) : (r = s[e] = o[e](c), r.c()), f(r, 1), r.m(n.parentNode, n));
|
|
3793
3996
|
},
|
|
3794
3997
|
i(c) {
|
|
3795
3998
|
i || (f(r), i = !0);
|
|
@@ -3802,19 +4005,19 @@ function no(t) {
|
|
|
3802
4005
|
}
|
|
3803
4006
|
};
|
|
3804
4007
|
}
|
|
3805
|
-
function
|
|
4008
|
+
function oo(t, e, r) {
|
|
3806
4009
|
let { $$slots: n = {}, $$scope: i } = e, { condition: o = !1 } = e;
|
|
3807
4010
|
return t.$$set = (s) => {
|
|
3808
4011
|
"condition" in s && r(0, o = s.condition), "$$scope" in s && r(2, i = s.$$scope);
|
|
3809
4012
|
}, [o, n, i];
|
|
3810
4013
|
}
|
|
3811
|
-
class
|
|
4014
|
+
class so extends U {
|
|
3812
4015
|
constructor(e) {
|
|
3813
|
-
super(), N(this, e,
|
|
4016
|
+
super(), N(this, e, oo, io, T, { condition: 0 });
|
|
3814
4017
|
}
|
|
3815
4018
|
}
|
|
3816
|
-
const
|
|
3817
|
-
function
|
|
4019
|
+
const lo = (t) => ({}), _t = (t) => ({});
|
|
4020
|
+
function co(t) {
|
|
3818
4021
|
let e, r;
|
|
3819
4022
|
const n = (
|
|
3820
4023
|
/*#slots*/
|
|
@@ -3855,7 +4058,7 @@ function so(t) {
|
|
|
3855
4058
|
/*$$scope*/
|
|
3856
4059
|
l[2],
|
|
3857
4060
|
c,
|
|
3858
|
-
|
|
4061
|
+
lo
|
|
3859
4062
|
) : V(
|
|
3860
4063
|
/*$$scope*/
|
|
3861
4064
|
l[2]
|
|
@@ -3892,15 +4095,15 @@ function so(t) {
|
|
|
3892
4095
|
}
|
|
3893
4096
|
};
|
|
3894
4097
|
}
|
|
3895
|
-
function
|
|
4098
|
+
function ao(t) {
|
|
3896
4099
|
let e, r;
|
|
3897
|
-
return e = new
|
|
4100
|
+
return e = new eo({
|
|
3898
4101
|
props: {
|
|
3899
4102
|
dark: (
|
|
3900
4103
|
/*dark*/
|
|
3901
4104
|
t[0]
|
|
3902
4105
|
),
|
|
3903
|
-
$$slots: { default: [
|
|
4106
|
+
$$slots: { default: [co] },
|
|
3904
4107
|
$$scope: { ctx: t }
|
|
3905
4108
|
}
|
|
3906
4109
|
}), {
|
|
@@ -3928,7 +4131,7 @@ function lo(t) {
|
|
|
3928
4131
|
}
|
|
3929
4132
|
};
|
|
3930
4133
|
}
|
|
3931
|
-
function
|
|
4134
|
+
function uo(t, e, r) {
|
|
3932
4135
|
let { $$slots: n = {}, $$scope: i } = e, { dark: o = !1 } = e;
|
|
3933
4136
|
return t.$$set = (s) => {
|
|
3934
4137
|
"dark" in s && r(0, o = s.dark), "$$scope" in s && r(2, i = s.$$scope);
|
|
@@ -3936,161 +4139,10 @@ function co(t, e, r) {
|
|
|
3936
4139
|
}
|
|
3937
4140
|
class Ft extends U {
|
|
3938
4141
|
constructor(e) {
|
|
3939
|
-
super(), N(this, e,
|
|
3940
|
-
}
|
|
3941
|
-
}
|
|
3942
|
-
var ne = /* @__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))(ne || {});
|
|
3943
|
-
class he {
|
|
3944
|
-
static getPublicMessage(e) {
|
|
3945
|
-
switch (e) {
|
|
3946
|
-
case 0:
|
|
3947
|
-
return "Unknown error.";
|
|
3948
|
-
case 1:
|
|
3949
|
-
return "Purchase was cancelled.";
|
|
3950
|
-
case 2:
|
|
3951
|
-
return "There was a problem with the store.";
|
|
3952
|
-
case 3:
|
|
3953
|
-
return "The device or user is not allowed to make the purchase.";
|
|
3954
|
-
case 4:
|
|
3955
|
-
return "One or more of the arguments provided are invalid.";
|
|
3956
|
-
case 5:
|
|
3957
|
-
return "The product is not available for purchase.";
|
|
3958
|
-
case 6:
|
|
3959
|
-
return "This product is already active for the user.";
|
|
3960
|
-
case 7:
|
|
3961
|
-
return "There is already another active subscriber using the same receipt.";
|
|
3962
|
-
case 8:
|
|
3963
|
-
return "The receipt is not valid.";
|
|
3964
|
-
case 9:
|
|
3965
|
-
return "The receipt is missing.";
|
|
3966
|
-
case 10:
|
|
3967
|
-
return "Error performing request.";
|
|
3968
|
-
case 11:
|
|
3969
|
-
return "There was a credentials issue. Check the underlying error for more details.";
|
|
3970
|
-
case 12:
|
|
3971
|
-
return "Received unexpected response from the backend.";
|
|
3972
|
-
case 14:
|
|
3973
|
-
return "The app user id is not valid.";
|
|
3974
|
-
case 15:
|
|
3975
|
-
return "The operation is already in progress.";
|
|
3976
|
-
case 16:
|
|
3977
|
-
return "There was an unknown backend error.";
|
|
3978
|
-
case 17:
|
|
3979
|
-
return "Apple Subscription Key is invalid or not present. In order to provide subscription offers, you must first generate a subscription key. Please see https://docs.revenuecat.com/docs/ios-subscription-offers for more info.";
|
|
3980
|
-
case 18:
|
|
3981
|
-
return "The User is ineligible for that action.";
|
|
3982
|
-
case 19:
|
|
3983
|
-
return "App does not have sufficient permissions to make purchases.";
|
|
3984
|
-
case 20:
|
|
3985
|
-
return "The payment is pending.";
|
|
3986
|
-
case 21:
|
|
3987
|
-
return "One or more of the attributes sent could not be saved.";
|
|
3988
|
-
case 22:
|
|
3989
|
-
return "Called logOut but the current user is anonymous.";
|
|
3990
|
-
case 23:
|
|
3991
|
-
return "There is an issue with your configuration. Check the underlying error for more details.";
|
|
3992
|
-
case 24:
|
|
3993
|
-
return "There was a problem with the operation. Looks like we doesn't support that yet. Check the underlying error for more details.";
|
|
3994
|
-
case 25:
|
|
3995
|
-
return "A request for subscriber attributes returned none.";
|
|
3996
|
-
case 28:
|
|
3997
|
-
return "There was a problem related to the customer info.";
|
|
3998
|
-
case 36:
|
|
3999
|
-
return "Request failed signature verification. Please see https://rev.cat/trusted-entitlements for more info.";
|
|
4000
|
-
}
|
|
4001
|
-
}
|
|
4002
|
-
static getErrorCodeForBackendErrorCode(e) {
|
|
4003
|
-
switch (e) {
|
|
4004
|
-
case 7101:
|
|
4005
|
-
return 2;
|
|
4006
|
-
case 7102:
|
|
4007
|
-
return 7;
|
|
4008
|
-
case 7103:
|
|
4009
|
-
return 8;
|
|
4010
|
-
case 7107:
|
|
4011
|
-
case 7224:
|
|
4012
|
-
case 7225:
|
|
4013
|
-
return 11;
|
|
4014
|
-
case 7105:
|
|
4015
|
-
case 7106:
|
|
4016
|
-
case 7814:
|
|
4017
|
-
return 4;
|
|
4018
|
-
case 7220:
|
|
4019
|
-
return 14;
|
|
4020
|
-
case 7229:
|
|
4021
|
-
return 2;
|
|
4022
|
-
case 7230:
|
|
4023
|
-
case 7e3:
|
|
4024
|
-
return 23;
|
|
4025
|
-
case 7231:
|
|
4026
|
-
return 2;
|
|
4027
|
-
case 7232:
|
|
4028
|
-
return 18;
|
|
4029
|
-
case 7263:
|
|
4030
|
-
case 7264:
|
|
4031
|
-
return 21;
|
|
4032
|
-
case 7104:
|
|
4033
|
-
case 7234:
|
|
4034
|
-
case 7226:
|
|
4035
|
-
case 7110:
|
|
4036
|
-
return 12;
|
|
4037
|
-
case 7662:
|
|
4038
|
-
return 24;
|
|
4039
|
-
}
|
|
4040
|
-
}
|
|
4041
|
-
static convertCodeToBackendErrorCode(e) {
|
|
4042
|
-
return e in xt ? e : null;
|
|
4043
|
-
}
|
|
4044
|
-
static convertPurchaseFlowErrorCodeToErrorCode(e) {
|
|
4045
|
-
switch (e) {
|
|
4046
|
-
case L.ErrorSettingUpPurchase:
|
|
4047
|
-
return 2;
|
|
4048
|
-
case L.ErrorChargingPayment:
|
|
4049
|
-
return 20;
|
|
4050
|
-
case L.NetworkError:
|
|
4051
|
-
return 10;
|
|
4052
|
-
case L.MissingEmailError:
|
|
4053
|
-
return 4;
|
|
4054
|
-
case L.StripeError:
|
|
4055
|
-
return 2;
|
|
4056
|
-
case L.UnknownError:
|
|
4057
|
-
return 0;
|
|
4058
|
-
}
|
|
4059
|
-
}
|
|
4060
|
-
}
|
|
4061
|
-
var xt = /* @__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[t.BackendOfferNotFound = 7814] = "BackendOfferNotFound", t))(xt || {});
|
|
4062
|
-
class X extends Error {
|
|
4063
|
-
constructor(r, n, i) {
|
|
4064
|
-
super(n);
|
|
4065
|
-
Q(this, "toString", () => `PurchasesError(code: ${ne[this.errorCode]}, message: ${this.message})`);
|
|
4066
|
-
this.errorCode = r, this.underlyingErrorMessage = i;
|
|
4067
|
-
}
|
|
4068
|
-
/** @internal */
|
|
4069
|
-
static getForBackendError(r, n) {
|
|
4070
|
-
const i = he.getErrorCodeForBackendErrorCode(r);
|
|
4071
|
-
return new X(
|
|
4072
|
-
i,
|
|
4073
|
-
he.getPublicMessage(i),
|
|
4074
|
-
n
|
|
4075
|
-
);
|
|
4076
|
-
}
|
|
4077
|
-
/** @internal */
|
|
4078
|
-
static getForPurchasesFlowError(r) {
|
|
4079
|
-
return new X(
|
|
4080
|
-
he.convertPurchaseFlowErrorCodeToErrorCode(
|
|
4081
|
-
r.errorCode
|
|
4082
|
-
),
|
|
4083
|
-
r.message,
|
|
4084
|
-
r.underlyingErrorMessage
|
|
4085
|
-
);
|
|
4086
|
-
}
|
|
4087
|
-
}
|
|
4088
|
-
class ao extends Error {
|
|
4089
|
-
constructor() {
|
|
4090
|
-
super("Purchases must be configured before calling getInstance");
|
|
4142
|
+
super(), N(this, e, uo, ao, T, { dark: 0 });
|
|
4091
4143
|
}
|
|
4092
4144
|
}
|
|
4093
|
-
const
|
|
4145
|
+
const fo = "0.3.2", fe = "https://api.revenuecat.com";
|
|
4094
4146
|
var Re;
|
|
4095
4147
|
(function(t) {
|
|
4096
4148
|
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";
|
|
@@ -4102,19 +4154,19 @@ async function oe(t, e, r, n) {
|
|
|
4102
4154
|
try {
|
|
4103
4155
|
const i = await fetch(t.url(), {
|
|
4104
4156
|
method: t.method,
|
|
4105
|
-
headers:
|
|
4106
|
-
body:
|
|
4157
|
+
headers: po(e, n),
|
|
4158
|
+
body: go(r)
|
|
4107
4159
|
});
|
|
4108
|
-
return await
|
|
4160
|
+
return await mo(i, t), await i.json();
|
|
4109
4161
|
} catch (i) {
|
|
4110
4162
|
throw i instanceof TypeError ? new X(
|
|
4111
|
-
|
|
4112
|
-
he.getPublicMessage(
|
|
4163
|
+
ee.NetworkError,
|
|
4164
|
+
he.getPublicMessage(ee.NetworkError),
|
|
4113
4165
|
i.message
|
|
4114
4166
|
) : i;
|
|
4115
4167
|
}
|
|
4116
4168
|
}
|
|
4117
|
-
async function
|
|
4169
|
+
async function mo(t, e) {
|
|
4118
4170
|
const r = t.status;
|
|
4119
4171
|
if (r >= Re.INTERNAL_SERVER_ERROR)
|
|
4120
4172
|
Ye(e, r, await t.text());
|
|
@@ -4135,26 +4187,26 @@ async function fo(t, e) {
|
|
|
4135
4187
|
}
|
|
4136
4188
|
function Ye(t, e, r) {
|
|
4137
4189
|
throw new X(
|
|
4138
|
-
|
|
4190
|
+
ee.UnknownBackendError,
|
|
4139
4191
|
`Unknown backend error. Request: ${t.name}. Status code: ${e}. Body: ${r}.`
|
|
4140
4192
|
);
|
|
4141
4193
|
}
|
|
4142
|
-
function
|
|
4194
|
+
function go(t) {
|
|
4143
4195
|
return t == null ? null : JSON.stringify(t);
|
|
4144
4196
|
}
|
|
4145
|
-
function
|
|
4197
|
+
function po(t, e) {
|
|
4146
4198
|
let r = {
|
|
4147
4199
|
Authorization: `Bearer ${t}`,
|
|
4148
4200
|
"Content-Type": "application/json",
|
|
4149
4201
|
Accept: "application/json",
|
|
4150
4202
|
"X-Platform": "web",
|
|
4151
|
-
"X-Version":
|
|
4203
|
+
"X-Version": fo,
|
|
4152
4204
|
"X-Is-Sandbox": `${je(t)}`
|
|
4153
4205
|
};
|
|
4154
4206
|
return e != null && (r = { ...r, ...e }), r;
|
|
4155
4207
|
}
|
|
4156
4208
|
const Gt = "/v1/subscribers", Le = "/rcbilling/v1";
|
|
4157
|
-
class
|
|
4209
|
+
class _o {
|
|
4158
4210
|
constructor(e) {
|
|
4159
4211
|
Q(this, "appUserId");
|
|
4160
4212
|
Q(this, "method", "GET");
|
|
@@ -4166,7 +4218,7 @@ class po {
|
|
|
4166
4218
|
return `${fe}${Gt}/${e}/offerings`;
|
|
4167
4219
|
}
|
|
4168
4220
|
}
|
|
4169
|
-
class
|
|
4221
|
+
class Ao {
|
|
4170
4222
|
constructor() {
|
|
4171
4223
|
Q(this, "method", "POST");
|
|
4172
4224
|
Q(this, "name", "subscribe");
|
|
@@ -4175,7 +4227,7 @@ class _o {
|
|
|
4175
4227
|
return `${fe}${Le}/subscribe`;
|
|
4176
4228
|
}
|
|
4177
4229
|
}
|
|
4178
|
-
class
|
|
4230
|
+
class ho {
|
|
4179
4231
|
constructor(e, r) {
|
|
4180
4232
|
Q(this, "method", "GET");
|
|
4181
4233
|
Q(this, "name", "getProducts");
|
|
@@ -4188,7 +4240,7 @@ class Ao {
|
|
|
4188
4240
|
return `${fe}${Le}/subscribers/${e}/products?id=${r}`;
|
|
4189
4241
|
}
|
|
4190
4242
|
}
|
|
4191
|
-
class
|
|
4243
|
+
class Eo {
|
|
4192
4244
|
constructor(e) {
|
|
4193
4245
|
Q(this, "method", "GET");
|
|
4194
4246
|
Q(this, "name", "getCustomerInfo");
|
|
@@ -4200,7 +4252,7 @@ class ho {
|
|
|
4200
4252
|
return `${fe}${Gt}/${e}`;
|
|
4201
4253
|
}
|
|
4202
4254
|
}
|
|
4203
|
-
class
|
|
4255
|
+
class bo {
|
|
4204
4256
|
constructor() {
|
|
4205
4257
|
Q(this, "method", "GET");
|
|
4206
4258
|
Q(this, "name", "getBrandingInfo");
|
|
@@ -4209,7 +4261,7 @@ class Eo {
|
|
|
4209
4261
|
return `${fe}${Le}/branding`;
|
|
4210
4262
|
}
|
|
4211
4263
|
}
|
|
4212
|
-
class
|
|
4264
|
+
class Io {
|
|
4213
4265
|
constructor(e) {
|
|
4214
4266
|
Q(this, "method", "GET");
|
|
4215
4267
|
Q(this, "name", "getCheckoutStatus");
|
|
@@ -4220,32 +4272,32 @@ class bo {
|
|
|
4220
4272
|
return `${fe}${Le}/checkout/${this.operationSessionId}`;
|
|
4221
4273
|
}
|
|
4222
4274
|
}
|
|
4223
|
-
class
|
|
4275
|
+
class wo {
|
|
4224
4276
|
constructor(e) {
|
|
4225
4277
|
Q(this, "API_KEY");
|
|
4226
4278
|
this.API_KEY = e;
|
|
4227
4279
|
}
|
|
4228
4280
|
async getOfferings(e) {
|
|
4229
4281
|
return await oe(
|
|
4230
|
-
new
|
|
4282
|
+
new _o(e),
|
|
4231
4283
|
this.API_KEY
|
|
4232
4284
|
);
|
|
4233
4285
|
}
|
|
4234
4286
|
async getCustomerInfo(e) {
|
|
4235
4287
|
return await oe(
|
|
4236
|
-
new
|
|
4288
|
+
new Eo(e),
|
|
4237
4289
|
this.API_KEY
|
|
4238
4290
|
);
|
|
4239
4291
|
}
|
|
4240
4292
|
async getProducts(e, r) {
|
|
4241
4293
|
return await oe(
|
|
4242
|
-
new
|
|
4294
|
+
new ho(e, r),
|
|
4243
4295
|
this.API_KEY
|
|
4244
4296
|
);
|
|
4245
4297
|
}
|
|
4246
4298
|
async getBrandingInfo() {
|
|
4247
4299
|
return await oe(
|
|
4248
|
-
new
|
|
4300
|
+
new bo(),
|
|
4249
4301
|
this.API_KEY
|
|
4250
4302
|
);
|
|
4251
4303
|
}
|
|
@@ -4257,24 +4309,24 @@ class Io {
|
|
|
4257
4309
|
presented_offering_identifier: i
|
|
4258
4310
|
};
|
|
4259
4311
|
return o && o !== "base_option" && (s.offer_id = o), await oe(
|
|
4260
|
-
new
|
|
4312
|
+
new Ao(),
|
|
4261
4313
|
this.API_KEY,
|
|
4262
4314
|
s
|
|
4263
4315
|
);
|
|
4264
4316
|
}
|
|
4265
4317
|
async getCheckoutStatus(e) {
|
|
4266
4318
|
return await oe(
|
|
4267
|
-
new
|
|
4319
|
+
new Io(e),
|
|
4268
4320
|
this.API_KEY
|
|
4269
4321
|
);
|
|
4270
4322
|
}
|
|
4271
4323
|
}
|
|
4272
|
-
const
|
|
4273
|
-
function
|
|
4324
|
+
const ko = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20opacity='0.5'%20clip-path='url(%23clip0_344_3390)'%3e%3cpath%20d='M7%2018C5.9%2018%205.01%2018.9%205.01%2020C5.01%2021.1%205.9%2022%207%2022C8.1%2022%209%2021.1%209%2020C9%2018.9%208.1%2018%207%2018ZM1%202V4H3L6.6%2011.59L5.25%2014.04C5.09%2014.32%205%2014.65%205%2015C5%2016.1%205.9%2017%207%2017H19V15H7.42C7.28%2015%207.17%2014.89%207.17%2014.75L7.2%2014.63L8.1%2013H15.55C16.3%2013%2016.96%2012.59%2017.3%2011.97L20.88%205.48C20.96%205.34%2021%205.17%2021%205C21%204.45%2020.55%204%2020%204H5.21L4.27%202H1ZM17%2018C15.9%2018%2015.01%2018.9%2015.01%2020C15.01%2021.1%2015.9%2022%2017%2022C18.1%2022%2019%2021.1%2019%2020C19%2018.9%2018.1%2018%2017%2018Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_344_3390'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
|
|
4325
|
+
function $o(t) {
|
|
4274
4326
|
let e, r;
|
|
4275
4327
|
return {
|
|
4276
4328
|
c() {
|
|
4277
|
-
e = k("img"), Z(e.src, r =
|
|
4329
|
+
e = k("img"), Z(e.src, r = ko) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon");
|
|
4278
4330
|
},
|
|
4279
4331
|
m(n, i) {
|
|
4280
4332
|
p(n, e, i);
|
|
@@ -4287,15 +4339,15 @@ function ko(t) {
|
|
|
4287
4339
|
}
|
|
4288
4340
|
};
|
|
4289
4341
|
}
|
|
4290
|
-
class
|
|
4342
|
+
class vo extends U {
|
|
4291
4343
|
constructor(e) {
|
|
4292
|
-
super(), N(this, e, null,
|
|
4344
|
+
super(), N(this, e, null, $o, T, {});
|
|
4293
4345
|
}
|
|
4294
4346
|
}
|
|
4295
|
-
function vo(t) {
|
|
4296
|
-
F(t, "svelte-1rhrjxe", "div.svelte-1rhrjxe{background-color:var(--rc-color-warning);color:var(--rc-color-grey-text-dark);font-size:10px;font-weight:bold;text-transform:uppercase;padding:4px 10px;line-height:10px;border-radius:9px;margin:0px;margin-left:16px}");
|
|
4297
|
-
}
|
|
4298
4347
|
function yo(t) {
|
|
4348
|
+
x(t, "svelte-1rhrjxe", "div.svelte-1rhrjxe{background-color:var(--rc-color-warning);color:var(--rc-color-grey-text-dark);font-size:10px;font-weight:bold;text-transform:uppercase;padding:4px 10px;line-height:10px;border-radius:9px;margin:0px;margin-left:16px}");
|
|
4349
|
+
}
|
|
4350
|
+
function Bo(t) {
|
|
4299
4351
|
let e;
|
|
4300
4352
|
return {
|
|
4301
4353
|
c() {
|
|
@@ -4312,13 +4364,13 @@ function yo(t) {
|
|
|
4312
4364
|
}
|
|
4313
4365
|
};
|
|
4314
4366
|
}
|
|
4315
|
-
class
|
|
4367
|
+
class Do extends U {
|
|
4316
4368
|
constructor(e) {
|
|
4317
|
-
super(), N(this, e, null,
|
|
4369
|
+
super(), N(this, e, null, Bo, T, {}, yo);
|
|
4318
4370
|
}
|
|
4319
4371
|
}
|
|
4320
|
-
function
|
|
4321
|
-
|
|
4372
|
+
function Mo(t) {
|
|
4373
|
+
x(t, "svelte-1qect5g", `.rcb-ui-container.svelte-1qect5g{color-scheme:none;font-size:16px;line-height:1.5em;font-weight:400;font-family:-apple-system, "system-ui", "Segoe UI", Roboto, Oxygen, Ubuntu,
|
|
4322
4374
|
Cantarell, "Open Sans", "Helvetica Neue", sans-serif}.rcb-ui-layout.svelte-1qect5g{width:100vw;width:100 dvw;margin-right:auto;display:flex;justify-content:center;align-items:flex-start;position:relative;padding:0px 80px;box-sizing:border-box}.rcb-ui-aside.svelte-1qect5g{margin-right:16px;flex:320px 1 0;max-width:480px}.rcb-ui-main.svelte-1qect5g{flex:480px 1 0;max-width:640px}@media screen and (max-width: 960px){.rcb-ui-layout.svelte-1qect5g{flex-direction:column;align-items:center;justify-content:center;height:100%;min-width:100%}.rcb-ui-aside.svelte-1qect5g{margin-right:0;margin-bottom:16px;min-width:100%;display:flex;flex-direction:column;align-items:center;flex:none;max-width:none}.rcb-ui-main.svelte-1qect5g{flex:none;max-width:none;min-width:100%}}@media screen and (max-width: 960px) and (max-height: 960px){.rcb-ui-layout.svelte-1qect5g{overflow-y:scroll;justify-content:flex-start;padding:16px 0px}}`);
|
|
4323
4375
|
}
|
|
4324
4376
|
function At(t) {
|
|
@@ -4327,8 +4379,8 @@ function At(t) {
|
|
|
4327
4379
|
props: {
|
|
4328
4380
|
dark: !0,
|
|
4329
4381
|
$$slots: {
|
|
4330
|
-
header: [
|
|
4331
|
-
default: [
|
|
4382
|
+
header: [No],
|
|
4383
|
+
default: [Co]
|
|
4332
4384
|
},
|
|
4333
4385
|
$$scope: { ctx: t }
|
|
4334
4386
|
}
|
|
@@ -4394,7 +4446,7 @@ function ht(t) {
|
|
|
4394
4446
|
}
|
|
4395
4447
|
};
|
|
4396
4448
|
}
|
|
4397
|
-
function
|
|
4449
|
+
function Co(t) {
|
|
4398
4450
|
let e, r, n = (
|
|
4399
4451
|
/*productDetails*/
|
|
4400
4452
|
t[3] && /*purchaseOption*/
|
|
@@ -4402,7 +4454,7 @@ function Mo(t) {
|
|
|
4402
4454
|
);
|
|
4403
4455
|
return {
|
|
4404
4456
|
c() {
|
|
4405
|
-
n && n.c(), e =
|
|
4457
|
+
n && n.c(), e = te();
|
|
4406
4458
|
},
|
|
4407
4459
|
m(i, o) {
|
|
4408
4460
|
n && n.m(i, o), p(i, e, o), r = !0;
|
|
@@ -4411,9 +4463,9 @@ function Mo(t) {
|
|
|
4411
4463
|
/*productDetails*/
|
|
4412
4464
|
i[3] && /*purchaseOption*/
|
|
4413
4465
|
i[1] ? n ? (n.p(i, o), o & /*productDetails, purchaseOption*/
|
|
4414
|
-
10 && f(n, 1)) : (n = ht(i), n.c(), f(n, 1), n.m(e.parentNode, e)) : n && (
|
|
4466
|
+
10 && f(n, 1)) : (n = ht(i), n.c(), f(n, 1), n.m(e.parentNode, e)) : n && (H(), m(n, 1, 1, () => {
|
|
4415
4467
|
n = null;
|
|
4416
|
-
}),
|
|
4468
|
+
}), K());
|
|
4417
4469
|
},
|
|
4418
4470
|
i(i) {
|
|
4419
4471
|
r || (f(n), r = !0);
|
|
@@ -4426,9 +4478,9 @@ function Mo(t) {
|
|
|
4426
4478
|
}
|
|
4427
4479
|
};
|
|
4428
4480
|
}
|
|
4429
|
-
function
|
|
4481
|
+
function Qo(t) {
|
|
4430
4482
|
let e, r;
|
|
4431
|
-
return e = new
|
|
4483
|
+
return e = new vo({}), {
|
|
4432
4484
|
c() {
|
|
4433
4485
|
w(e.$$.fragment);
|
|
4434
4486
|
},
|
|
@@ -4446,9 +4498,9 @@ function Co(t) {
|
|
|
4446
4498
|
}
|
|
4447
4499
|
};
|
|
4448
4500
|
}
|
|
4449
|
-
function
|
|
4501
|
+
function Po(t) {
|
|
4450
4502
|
let e, r;
|
|
4451
|
-
return e = new
|
|
4503
|
+
return e = new Do({}), {
|
|
4452
4504
|
c() {
|
|
4453
4505
|
w(e.$$.fragment);
|
|
4454
4506
|
},
|
|
@@ -4466,15 +4518,15 @@ function Qo(t) {
|
|
|
4466
4518
|
}
|
|
4467
4519
|
};
|
|
4468
4520
|
}
|
|
4469
|
-
function
|
|
4521
|
+
function To(t) {
|
|
4470
4522
|
let e, r, n, i, o, s, l;
|
|
4471
|
-
e = new
|
|
4523
|
+
e = new Ut({
|
|
4472
4524
|
props: { brandingInfo: (
|
|
4473
4525
|
/*brandingInfo*/
|
|
4474
4526
|
t[4]
|
|
4475
4527
|
) }
|
|
4476
4528
|
});
|
|
4477
|
-
const c = [
|
|
4529
|
+
const c = [Po, Qo], a = [];
|
|
4478
4530
|
function u(d, h) {
|
|
4479
4531
|
return h & /*purchases*/
|
|
4480
4532
|
4 && (n = null), n == null && (n = !!/*purchases*/
|
|
@@ -4482,7 +4534,7 @@ function Po(t) {
|
|
|
4482
4534
|
}
|
|
4483
4535
|
return i = u(t, -1), o = a[i] = c[i](t), {
|
|
4484
4536
|
c() {
|
|
4485
|
-
w(e.$$.fragment), r = P(), o.c(), s =
|
|
4537
|
+
w(e.$$.fragment), r = P(), o.c(), s = te();
|
|
4486
4538
|
},
|
|
4487
4539
|
m(d, h) {
|
|
4488
4540
|
b(e, d, h), p(d, r, h), a[i].m(d, h), p(d, s, h), l = !0;
|
|
@@ -4493,9 +4545,9 @@ function Po(t) {
|
|
|
4493
4545
|
16 && ($.brandingInfo = /*brandingInfo*/
|
|
4494
4546
|
d[4]), e.$set($);
|
|
4495
4547
|
let E = i;
|
|
4496
|
-
i = u(d, h), i !== E && (
|
|
4548
|
+
i = u(d, h), i !== E && (H(), m(a[E], 1, 1, () => {
|
|
4497
4549
|
a[E] = null;
|
|
4498
|
-
}),
|
|
4550
|
+
}), K(), o = a[i], o || (o = a[i] = c[i](d), o.c()), f(o, 1), o.m(s.parentNode, s));
|
|
4499
4551
|
},
|
|
4500
4552
|
i(d) {
|
|
4501
4553
|
l || (f(e.$$.fragment, d), f(o), l = !0);
|
|
@@ -4508,12 +4560,12 @@ function Po(t) {
|
|
|
4508
4560
|
}
|
|
4509
4561
|
};
|
|
4510
4562
|
}
|
|
4511
|
-
function
|
|
4563
|
+
function No(t) {
|
|
4512
4564
|
let e, r;
|
|
4513
4565
|
return e = new Xe({
|
|
4514
4566
|
props: {
|
|
4515
4567
|
slot: "header",
|
|
4516
|
-
$$slots: { default: [
|
|
4568
|
+
$$slots: { default: [To] },
|
|
4517
4569
|
$$scope: { ctx: t }
|
|
4518
4570
|
}
|
|
4519
4571
|
}), {
|
|
@@ -4600,7 +4652,7 @@ function bt(t) {
|
|
|
4600
4652
|
}
|
|
4601
4653
|
function It(t) {
|
|
4602
4654
|
let e, r;
|
|
4603
|
-
return e = new
|
|
4655
|
+
return e = new qi({
|
|
4604
4656
|
props: {
|
|
4605
4657
|
onContinue: (
|
|
4606
4658
|
/*handleContinue*/
|
|
@@ -4641,7 +4693,7 @@ function It(t) {
|
|
|
4641
4693
|
}
|
|
4642
4694
|
function wt(t) {
|
|
4643
4695
|
let e, r;
|
|
4644
|
-
return e = new
|
|
4696
|
+
return e = new Ti({
|
|
4645
4697
|
props: {
|
|
4646
4698
|
paymentInfoCollectionMetadata: (
|
|
4647
4699
|
/*paymentInfoCollectionMetadata*/
|
|
@@ -4713,7 +4765,7 @@ function kt(t) {
|
|
|
4713
4765
|
function $t(t) {
|
|
4714
4766
|
var n;
|
|
4715
4767
|
let e, r;
|
|
4716
|
-
return e = new
|
|
4768
|
+
return e = new Sr({
|
|
4717
4769
|
props: {
|
|
4718
4770
|
brandingInfo: (
|
|
4719
4771
|
/*brandingInfo*/
|
|
@@ -4721,7 +4773,7 @@ function $t(t) {
|
|
|
4721
4773
|
),
|
|
4722
4774
|
lastError: (
|
|
4723
4775
|
/*lastError*/
|
|
4724
|
-
t[6] ?? new
|
|
4776
|
+
t[6] ?? new Y(O.UnknownError, "Unknown error without state set.")
|
|
4725
4777
|
),
|
|
4726
4778
|
supportEmail: (
|
|
4727
4779
|
/*brandingInfo*/
|
|
@@ -4746,7 +4798,7 @@ function $t(t) {
|
|
|
4746
4798
|
16 && (s.brandingInfo = /*brandingInfo*/
|
|
4747
4799
|
i[4]), o & /*lastError*/
|
|
4748
4800
|
64 && (s.lastError = /*lastError*/
|
|
4749
|
-
i[6] ?? new
|
|
4801
|
+
i[6] ?? new Y(O.UnknownError, "Unknown error without state set.")), o & /*brandingInfo*/
|
|
4750
4802
|
16 && (s.supportEmail = /*brandingInfo*/
|
|
4751
4803
|
(l = i[4]) == null ? void 0 : l.seller_company_support_email), e.$set(s);
|
|
4752
4804
|
},
|
|
@@ -4763,7 +4815,7 @@ function $t(t) {
|
|
|
4763
4815
|
}
|
|
4764
4816
|
function vt(t) {
|
|
4765
4817
|
let e, r;
|
|
4766
|
-
return e = new
|
|
4818
|
+
return e = new qr({
|
|
4767
4819
|
props: {
|
|
4768
4820
|
brandingInfo: (
|
|
4769
4821
|
/*brandingInfo*/
|
|
@@ -4798,7 +4850,7 @@ function vt(t) {
|
|
|
4798
4850
|
}
|
|
4799
4851
|
};
|
|
4800
4852
|
}
|
|
4801
|
-
function
|
|
4853
|
+
function Uo(t) {
|
|
4802
4854
|
let e, r, n, i, o, s, l, c, a = (
|
|
4803
4855
|
/*state*/
|
|
4804
4856
|
t[7] === "present-offer" && /*productDetails*/
|
|
@@ -4829,7 +4881,7 @@ function No(t) {
|
|
|
4829
4881
|
);
|
|
4830
4882
|
return {
|
|
4831
4883
|
c() {
|
|
4832
|
-
a && a.c(), e = P(), u && u.c(), r = P(), d && d.c(), n = P(), h && h.c(), i = P(), $ && $.c(), o = P(), E && E.c(), s = P(), B && B.c(), l =
|
|
4884
|
+
a && a.c(), e = P(), u && u.c(), r = P(), d && d.c(), n = P(), h && h.c(), i = P(), $ && $.c(), o = P(), E && E.c(), s = P(), B && B.c(), l = te();
|
|
4833
4885
|
},
|
|
4834
4886
|
m(A, y) {
|
|
4835
4887
|
a && a.m(A, y), p(A, e, y), u && u.m(A, y), p(A, r, y), d && d.m(A, y), p(A, n, y), h && h.m(A, y), p(A, i, y), $ && $.m(A, y), p(A, o, y), E && E.m(A, y), p(A, s, y), B && B.m(A, y), p(A, l, y), c = !0;
|
|
@@ -4839,37 +4891,37 @@ function No(t) {
|
|
|
4839
4891
|
A[7] === "present-offer" && /*productDetails*/
|
|
4840
4892
|
A[3] && /*purchaseOption*/
|
|
4841
4893
|
A[1] ? a ? (a.p(A, y), y & /*state, productDetails, purchaseOption*/
|
|
4842
|
-
138 && f(a, 1)) : (a = Et(A), a.c(), f(a, 1), a.m(e.parentNode, e)) : a && (
|
|
4894
|
+
138 && f(a, 1)) : (a = Et(A), a.c(), f(a, 1), a.m(e.parentNode, e)) : a && (H(), m(a, 1, 1, () => {
|
|
4843
4895
|
a = null;
|
|
4844
|
-
}),
|
|
4896
|
+
}), K()), /*state*/
|
|
4845
4897
|
A[7] === "present-offer" && !/*productDetails*/
|
|
4846
4898
|
A[3] ? u ? y & /*state, productDetails*/
|
|
4847
|
-
136 && f(u, 1) : (u = bt(), u.c(), f(u, 1), u.m(r.parentNode, r)) : u && (
|
|
4899
|
+
136 && f(u, 1) : (u = bt(), u.c(), f(u, 1), u.m(r.parentNode, r)) : u && (H(), m(u, 1, 1, () => {
|
|
4848
4900
|
u = null;
|
|
4849
|
-
}),
|
|
4901
|
+
}), K()), /*state*/
|
|
4850
4902
|
A[7] === "needs-auth-info" || /*state*/
|
|
4851
4903
|
A[7] === "processing-auth-info" ? d ? (d.p(A, y), y & /*state*/
|
|
4852
|
-
128 && f(d, 1)) : (d = It(A), d.c(), f(d, 1), d.m(n.parentNode, n)) : d && (
|
|
4904
|
+
128 && f(d, 1)) : (d = It(A), d.c(), f(d, 1), d.m(n.parentNode, n)) : d && (H(), m(d, 1, 1, () => {
|
|
4853
4905
|
d = null;
|
|
4854
|
-
}),
|
|
4906
|
+
}), K()), /*paymentInfoCollectionMetadata*/
|
|
4855
4907
|
A[5] && /*state*/
|
|
4856
4908
|
(A[7] === "needs-payment-info" || /*state*/
|
|
4857
4909
|
A[7] === "polling-purchase-status") ? h ? (h.p(A, y), y & /*paymentInfoCollectionMetadata, state*/
|
|
4858
|
-
160 && f(h, 1)) : (h = wt(A), h.c(), f(h, 1), h.m(i.parentNode, i)) : h && (
|
|
4910
|
+
160 && f(h, 1)) : (h = wt(A), h.c(), f(h, 1), h.m(i.parentNode, i)) : h && (H(), m(h, 1, 1, () => {
|
|
4859
4911
|
h = null;
|
|
4860
|
-
}),
|
|
4912
|
+
}), K()), /*state*/
|
|
4861
4913
|
A[7] === "loading" ? $ ? y & /*state*/
|
|
4862
|
-
128 && f($, 1) : ($ = kt(), $.c(), f($, 1), $.m(o.parentNode, o)) : $ && (
|
|
4914
|
+
128 && f($, 1) : ($ = kt(), $.c(), f($, 1), $.m(o.parentNode, o)) : $ && (H(), m($, 1, 1, () => {
|
|
4863
4915
|
$ = null;
|
|
4864
|
-
}),
|
|
4916
|
+
}), K()), /*state*/
|
|
4865
4917
|
A[7] === "error" ? E ? (E.p(A, y), y & /*state*/
|
|
4866
|
-
128 && f(E, 1)) : (E = $t(A), E.c(), f(E, 1), E.m(s.parentNode, s)) : E && (
|
|
4918
|
+
128 && f(E, 1)) : (E = $t(A), E.c(), f(E, 1), E.m(s.parentNode, s)) : E && (H(), m(E, 1, 1, () => {
|
|
4867
4919
|
E = null;
|
|
4868
|
-
}),
|
|
4920
|
+
}), K()), /*state*/
|
|
4869
4921
|
A[7] === "success" ? B ? (B.p(A, y), y & /*state*/
|
|
4870
|
-
128 && f(B, 1)) : (B = vt(A), B.c(), f(B, 1), B.m(l.parentNode, l)) : B && (
|
|
4922
|
+
128 && f(B, 1)) : (B = vt(A), B.c(), f(B, 1), B.m(l.parentNode, l)) : B && (H(), m(B, 1, 1, () => {
|
|
4871
4923
|
B = null;
|
|
4872
|
-
}),
|
|
4924
|
+
}), K());
|
|
4873
4925
|
},
|
|
4874
4926
|
i(A) {
|
|
4875
4927
|
c || (f(a), f(u), f(d), f(h), f($), f(E), f(B), c = !0);
|
|
@@ -4882,7 +4934,7 @@ function No(t) {
|
|
|
4882
4934
|
}
|
|
4883
4935
|
};
|
|
4884
4936
|
}
|
|
4885
|
-
function
|
|
4937
|
+
function Ro(t) {
|
|
4886
4938
|
let e, r = (
|
|
4887
4939
|
/*statesWhereOfferDetailsAreShown*/
|
|
4888
4940
|
t[9].includes(
|
|
@@ -4892,7 +4944,7 @@ function Uo(t) {
|
|
|
4892
4944
|
), n, i, o, s, l = r && At(t);
|
|
4893
4945
|
return o = new Ft({
|
|
4894
4946
|
props: {
|
|
4895
|
-
$$slots: { default: [
|
|
4947
|
+
$$slots: { default: [Uo] },
|
|
4896
4948
|
$$scope: { ctx: t }
|
|
4897
4949
|
}
|
|
4898
4950
|
}), {
|
|
@@ -4914,9 +4966,9 @@ function Uo(t) {
|
|
|
4914
4966
|
/*state*/
|
|
4915
4967
|
c[7]
|
|
4916
4968
|
)), r ? l ? (l.p(c, a), a & /*state*/
|
|
4917
|
-
128 && f(l, 1)) : (l = At(c), l.c(), f(l, 1), l.m(e, n)) : l && (
|
|
4969
|
+
128 && f(l, 1)) : (l = At(c), l.c(), f(l, 1), l.m(e, n)) : l && (H(), m(l, 1, 1, () => {
|
|
4918
4970
|
l = null;
|
|
4919
|
-
}),
|
|
4971
|
+
}), K());
|
|
4920
4972
|
const u = {};
|
|
4921
4973
|
a & /*$$scope, brandingInfo, state, lastError, paymentInfoCollectionMetadata, productDetails, purchaseOption*/
|
|
4922
4974
|
67109114 && (u.$$scope = { dirty: a, ctx: c }), o.$set(u);
|
|
@@ -4932,15 +4984,15 @@ function Uo(t) {
|
|
|
4932
4984
|
}
|
|
4933
4985
|
};
|
|
4934
4986
|
}
|
|
4935
|
-
function
|
|
4987
|
+
function So(t) {
|
|
4936
4988
|
let e, r, n;
|
|
4937
|
-
return r = new
|
|
4989
|
+
return r = new so({
|
|
4938
4990
|
props: {
|
|
4939
4991
|
condition: (
|
|
4940
4992
|
/*asModal*/
|
|
4941
4993
|
t[0]
|
|
4942
4994
|
),
|
|
4943
|
-
$$slots: { default: [
|
|
4995
|
+
$$slots: { default: [Ro] },
|
|
4944
4996
|
$$scope: { ctx: t }
|
|
4945
4997
|
}
|
|
4946
4998
|
}), {
|
|
@@ -4971,10 +5023,10 @@ function Ro(t) {
|
|
|
4971
5023
|
function Oo(t, e, r) {
|
|
4972
5024
|
var et, tt;
|
|
4973
5025
|
let { asModal: n = !0 } = e, { customerEmail: i } = e, { appUserId: o } = e, { rcPackage: s } = e, { purchaseOption: l } = e, { onFinished: c } = e, { onError: a } = e, { onClose: u } = e, { purchases: d } = e, { backend: h } = e, { purchaseOperationHelper: $ } = e;
|
|
4974
|
-
const E = Object.entries(_e).map(([D,
|
|
5026
|
+
const E = Object.entries(_e).map(([D, xe]) => `--rc-color-${D}: ${xe}`).join("; ");
|
|
4975
5027
|
let B = null, A = null, y = null, R = null;
|
|
4976
|
-
const M = ((et = s == null ? void 0 : s.rcBillingProduct) == null ? void 0 : et.identifier) ?? null, ve = (tt = s == null ? void 0 : s.rcBillingProduct) == null ? void 0 : tt.defaultSubscriptionOption,
|
|
4977
|
-
let
|
|
5028
|
+
const M = ((et = s == null ? void 0 : s.rcBillingProduct) == null ? void 0 : et.identifier) ?? null, ve = (tt = s == null ? void 0 : s.rcBillingProduct) == null ? void 0 : tt.defaultSubscriptionOption, F = l || ve;
|
|
5029
|
+
let S = "present-offer";
|
|
4978
5030
|
const ye = [
|
|
4979
5031
|
"present-offer",
|
|
4980
5032
|
"needs-auth-info",
|
|
@@ -4983,9 +5035,9 @@ function Oo(t, e, r) {
|
|
|
4983
5035
|
"polling-purchase-status",
|
|
4984
5036
|
"loading"
|
|
4985
5037
|
];
|
|
4986
|
-
|
|
4987
|
-
if (r(3, B = s.rcBillingProduct), r(4, A = await h.getBrandingInfo()),
|
|
4988
|
-
i ? Ze() : r(7,
|
|
5038
|
+
Oe(async () => {
|
|
5039
|
+
if (r(3, B = s.rcBillingProduct), r(4, A = await h.getBrandingInfo()), S === "present-offer") {
|
|
5040
|
+
i ? Ze() : r(7, S = "needs-auth-info");
|
|
4989
5041
|
return;
|
|
4990
5042
|
}
|
|
4991
5043
|
});
|
|
@@ -4993,48 +5045,48 @@ function Oo(t, e, r) {
|
|
|
4993
5045
|
u();
|
|
4994
5046
|
}, Ze = () => {
|
|
4995
5047
|
if (M === null) {
|
|
4996
|
-
de(new
|
|
5048
|
+
de(new Y(O.ErrorSettingUpPurchase, "Product ID was not set before purchase."));
|
|
4997
5049
|
return;
|
|
4998
5050
|
} else
|
|
4999
|
-
|
|
5051
|
+
S === "present-offer" && r(7, S = "loading");
|
|
5000
5052
|
if (!i) {
|
|
5001
|
-
de(new
|
|
5053
|
+
de(new Y(O.MissingEmailError));
|
|
5002
5054
|
return;
|
|
5003
5055
|
}
|
|
5004
|
-
$.startPurchase(o, M,
|
|
5056
|
+
$.startPurchase(o, M, F, i, s.rcBillingProduct.presentedOfferingIdentifier).then((D) => {
|
|
5005
5057
|
if (D.next_action === "collect_payment_info") {
|
|
5006
|
-
r(7,
|
|
5058
|
+
r(7, S = "needs-payment-info"), r(5, y = D);
|
|
5007
5059
|
return;
|
|
5008
5060
|
}
|
|
5009
5061
|
if (D.next_action === "completed") {
|
|
5010
|
-
r(7,
|
|
5062
|
+
r(7, S = "success");
|
|
5011
5063
|
return;
|
|
5012
5064
|
}
|
|
5013
5065
|
}).catch((D) => {
|
|
5014
|
-
de(
|
|
5066
|
+
de(D);
|
|
5015
5067
|
});
|
|
5016
5068
|
}, Yt = (D) => {
|
|
5017
|
-
if (
|
|
5018
|
-
D && (r(14, i = D.email), r(7,
|
|
5069
|
+
if (S === "needs-auth-info") {
|
|
5070
|
+
D && (r(14, i = D.email), r(7, S = "processing-auth-info")), Ze();
|
|
5019
5071
|
return;
|
|
5020
5072
|
}
|
|
5021
|
-
if (
|
|
5022
|
-
r(7,
|
|
5023
|
-
r(7,
|
|
5024
|
-
}).catch((
|
|
5025
|
-
de(
|
|
5073
|
+
if (S === "needs-payment-info") {
|
|
5074
|
+
r(7, S = "polling-purchase-status"), $.pollCurrentPurchaseForCompletion().then(() => {
|
|
5075
|
+
r(7, S = "success");
|
|
5076
|
+
}).catch((xe) => {
|
|
5077
|
+
de(xe);
|
|
5026
5078
|
});
|
|
5027
5079
|
return;
|
|
5028
5080
|
}
|
|
5029
|
-
if (
|
|
5081
|
+
if (S === "success" || S === "error") {
|
|
5030
5082
|
c();
|
|
5031
5083
|
return;
|
|
5032
5084
|
}
|
|
5033
|
-
r(7,
|
|
5085
|
+
r(7, S = "success");
|
|
5034
5086
|
}, de = (D) => {
|
|
5035
|
-
r(6, R = D), r(7,
|
|
5087
|
+
r(6, R = D), r(7, S = "error");
|
|
5036
5088
|
}, Ht = () => {
|
|
5037
|
-
a(R ?? new
|
|
5089
|
+
a(R ?? new Y(O.UnknownError, "Unknown error without state set."));
|
|
5038
5090
|
};
|
|
5039
5091
|
return t.$$set = (D) => {
|
|
5040
5092
|
"asModal" in D && r(0, n = D.asModal), "customerEmail" in D && r(14, i = D.customerEmail), "appUserId" in D && r(15, o = D.appUserId), "rcPackage" in D && r(16, s = D.rcPackage), "purchaseOption" in D && r(1, l = D.purchaseOption), "onFinished" in D && r(17, c = D.onFinished), "onError" in D && r(18, a = D.onError), "onClose" in D && r(19, u = D.onClose), "purchases" in D && r(2, d = D.purchases), "backend" in D && r(20, h = D.backend), "purchaseOperationHelper" in D && r(21, $ = D.purchaseOperationHelper);
|
|
@@ -5046,7 +5098,7 @@ function Oo(t, e, r) {
|
|
|
5046
5098
|
A,
|
|
5047
5099
|
y,
|
|
5048
5100
|
R,
|
|
5049
|
-
|
|
5101
|
+
S,
|
|
5050
5102
|
E,
|
|
5051
5103
|
ye,
|
|
5052
5104
|
Be,
|
|
@@ -5063,13 +5115,13 @@ function Oo(t, e, r) {
|
|
|
5063
5115
|
$
|
|
5064
5116
|
];
|
|
5065
5117
|
}
|
|
5066
|
-
class
|
|
5118
|
+
class Lo extends U {
|
|
5067
5119
|
constructor(e) {
|
|
5068
5120
|
super(), N(
|
|
5069
5121
|
this,
|
|
5070
5122
|
e,
|
|
5071
5123
|
Oo,
|
|
5072
|
-
|
|
5124
|
+
So,
|
|
5073
5125
|
T,
|
|
5074
5126
|
{
|
|
5075
5127
|
asModal: 0,
|
|
@@ -5084,37 +5136,37 @@ class So extends U {
|
|
|
5084
5136
|
backend: 20,
|
|
5085
5137
|
purchaseOperationHelper: 21
|
|
5086
5138
|
},
|
|
5087
|
-
|
|
5139
|
+
Mo
|
|
5088
5140
|
);
|
|
5089
5141
|
}
|
|
5090
5142
|
}
|
|
5091
|
-
function
|
|
5143
|
+
function xo(t) {
|
|
5092
5144
|
return t.expires_date == null ? !0 : new Date(t.expires_date) > /* @__PURE__ */ new Date();
|
|
5093
5145
|
}
|
|
5094
5146
|
function Fo(t, e, r, n) {
|
|
5095
5147
|
const i = e.product_identifier;
|
|
5096
5148
|
if (i in r)
|
|
5097
|
-
return
|
|
5149
|
+
return Go(
|
|
5098
5150
|
t,
|
|
5099
5151
|
e,
|
|
5100
5152
|
r[i]
|
|
5101
5153
|
);
|
|
5102
5154
|
if (i in n)
|
|
5103
|
-
return
|
|
5155
|
+
return Yo(
|
|
5104
5156
|
t,
|
|
5105
5157
|
e,
|
|
5106
5158
|
n[i]
|
|
5107
5159
|
);
|
|
5108
5160
|
throw new X(
|
|
5109
|
-
|
|
5161
|
+
ee.CustomerInfoError,
|
|
5110
5162
|
"Could not find entitlement product in subscriptions or non-subscriptions."
|
|
5111
5163
|
);
|
|
5112
5164
|
}
|
|
5113
|
-
function
|
|
5165
|
+
function Go(t, e, r) {
|
|
5114
5166
|
return {
|
|
5115
5167
|
identifier: t,
|
|
5116
|
-
isActive:
|
|
5117
|
-
willRenew:
|
|
5168
|
+
isActive: xo(e),
|
|
5169
|
+
willRenew: qo(e, r),
|
|
5118
5170
|
store: (r == null ? void 0 : r.store) ?? "unknown",
|
|
5119
5171
|
latestPurchaseDate: new Date(e.purchase_date),
|
|
5120
5172
|
originalPurchaseDate: new Date(e.purchase_date),
|
|
@@ -5130,7 +5182,7 @@ function xo(t, e, r) {
|
|
|
5130
5182
|
periodType: (r == null ? void 0 : r.period_type) ?? "normal"
|
|
5131
5183
|
};
|
|
5132
5184
|
}
|
|
5133
|
-
function
|
|
5185
|
+
function Yo(t, e, r) {
|
|
5134
5186
|
return {
|
|
5135
5187
|
identifier: t,
|
|
5136
5188
|
isActive: !0,
|
|
@@ -5148,7 +5200,7 @@ function Go(t, e, r) {
|
|
|
5148
5200
|
periodType: "normal"
|
|
5149
5201
|
};
|
|
5150
5202
|
}
|
|
5151
|
-
function
|
|
5203
|
+
function Ho(t, e, r) {
|
|
5152
5204
|
const n = {}, i = {};
|
|
5153
5205
|
for (const o in t) {
|
|
5154
5206
|
const s = Fo(
|
|
@@ -5167,22 +5219,22 @@ function Yo(t, e, r) {
|
|
|
5167
5219
|
function Ne(t) {
|
|
5168
5220
|
return t == null ? null : new Date(t);
|
|
5169
5221
|
}
|
|
5170
|
-
function
|
|
5171
|
-
const e =
|
|
5222
|
+
function Ko(t) {
|
|
5223
|
+
const e = Jo(t), r = t.subscriber, n = Wo(
|
|
5172
5224
|
r.non_subscriptions
|
|
5173
5225
|
);
|
|
5174
5226
|
return {
|
|
5175
|
-
entitlements:
|
|
5227
|
+
entitlements: Ho(
|
|
5176
5228
|
r.entitlements,
|
|
5177
5229
|
r.subscriptions,
|
|
5178
5230
|
n
|
|
5179
5231
|
),
|
|
5180
5232
|
allExpirationDatesByProduct: e,
|
|
5181
|
-
allPurchaseDatesByProduct:
|
|
5233
|
+
allPurchaseDatesByProduct: jo(
|
|
5182
5234
|
t,
|
|
5183
5235
|
n
|
|
5184
5236
|
),
|
|
5185
|
-
activeSubscriptions:
|
|
5237
|
+
activeSubscriptions: Vo(e),
|
|
5186
5238
|
managementURL: r.management_url,
|
|
5187
5239
|
requestDate: new Date(t.request_date),
|
|
5188
5240
|
firstSeenDate: new Date(r.first_seen),
|
|
@@ -5192,13 +5244,13 @@ function Ho(t) {
|
|
|
5192
5244
|
originalAppUserId: t.subscriber.original_app_user_id
|
|
5193
5245
|
};
|
|
5194
5246
|
}
|
|
5195
|
-
function
|
|
5247
|
+
function qo(t, e) {
|
|
5196
5248
|
if (e == null)
|
|
5197
5249
|
return !1;
|
|
5198
5250
|
const r = e.store == "promotional", n = t.expires_date == null, i = e.unsubscribe_detected_at != null, o = e.billing_issues_detected_at != null;
|
|
5199
5251
|
return !(r || n || i || o);
|
|
5200
5252
|
}
|
|
5201
|
-
function
|
|
5253
|
+
function jo(t, e) {
|
|
5202
5254
|
const r = {};
|
|
5203
5255
|
for (const n in t.subscriber.subscriptions) {
|
|
5204
5256
|
const i = t.subscriber.subscriptions[n];
|
|
@@ -5212,7 +5264,7 @@ function qo(t, e) {
|
|
|
5212
5264
|
}
|
|
5213
5265
|
return r;
|
|
5214
5266
|
}
|
|
5215
|
-
function
|
|
5267
|
+
function Jo(t) {
|
|
5216
5268
|
const e = {};
|
|
5217
5269
|
for (const r in t.subscriber.subscriptions) {
|
|
5218
5270
|
const n = t.subscriber.subscriptions[r];
|
|
@@ -5222,7 +5274,7 @@ function jo(t) {
|
|
|
5222
5274
|
}
|
|
5223
5275
|
return e;
|
|
5224
5276
|
}
|
|
5225
|
-
function
|
|
5277
|
+
function Vo(t) {
|
|
5226
5278
|
const e = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Date();
|
|
5227
5279
|
for (const n in t) {
|
|
5228
5280
|
const i = t[n];
|
|
@@ -5230,7 +5282,7 @@ function Jo(t) {
|
|
|
5230
5282
|
}
|
|
5231
5283
|
return e;
|
|
5232
5284
|
}
|
|
5233
|
-
function
|
|
5285
|
+
function Wo(t) {
|
|
5234
5286
|
const e = {};
|
|
5235
5287
|
for (const r in t) {
|
|
5236
5288
|
if (t[r].length === 0)
|
|
@@ -5240,14 +5292,14 @@ function Vo(t) {
|
|
|
5240
5292
|
}
|
|
5241
5293
|
return e;
|
|
5242
5294
|
}
|
|
5243
|
-
function
|
|
5295
|
+
function zo(t) {
|
|
5244
5296
|
if (!/^rcb_[a-zA-Z0-9_.-]+$/.test(t))
|
|
5245
5297
|
throw new X(
|
|
5246
|
-
|
|
5298
|
+
ee.InvalidCredentialsError,
|
|
5247
5299
|
"Invalid API key. Use your RevenueCat Billing API key."
|
|
5248
5300
|
);
|
|
5249
5301
|
}
|
|
5250
|
-
function
|
|
5302
|
+
function Xo(t) {
|
|
5251
5303
|
if ((/* @__PURE__ */ new Set([
|
|
5252
5304
|
"no_user",
|
|
5253
5305
|
"null",
|
|
@@ -5262,7 +5314,7 @@ function zo(t) {
|
|
|
5262
5314
|
"unknown"
|
|
5263
5315
|
])).has(t) || t.includes("/"))
|
|
5264
5316
|
throw new X(
|
|
5265
|
-
|
|
5317
|
+
ee.InvalidAppUserIdError,
|
|
5266
5318
|
'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.'
|
|
5267
5319
|
);
|
|
5268
5320
|
}
|
|
@@ -5296,7 +5348,7 @@ const z = class z {
|
|
|
5296
5348
|
current: o
|
|
5297
5349
|
};
|
|
5298
5350
|
});
|
|
5299
|
-
this._API_KEY = e, this._appUserId = r, je(e) && G.debugLog("Initializing Purchases SDK with sandbox API Key"), this.backend = new
|
|
5351
|
+
this._API_KEY = e, this._appUserId = r, je(e) && G.debugLog("Initializing Purchases SDK with sandbox API Key"), this.backend = new wo(this._API_KEY), this.purchaseOperationHelper = new Yn(this.backend);
|
|
5300
5352
|
}
|
|
5301
5353
|
/**
|
|
5302
5354
|
* Set the log level. Logs of the given level and below will be printed
|
|
@@ -5315,7 +5367,7 @@ const z = class z {
|
|
|
5315
5367
|
static getSharedInstance() {
|
|
5316
5368
|
if (z.isConfigured())
|
|
5317
5369
|
return z.instance;
|
|
5318
|
-
throw new
|
|
5370
|
+
throw new Gn();
|
|
5319
5371
|
}
|
|
5320
5372
|
/**
|
|
5321
5373
|
* Returns whether the Purchases SDK is configured or not.
|
|
@@ -5334,7 +5386,7 @@ const z = class z {
|
|
|
5334
5386
|
static configure(e, r) {
|
|
5335
5387
|
return z.instance !== void 0 && G.warnLog(
|
|
5336
5388
|
"Purchases is already initialized. You normally should only configure Purchases once. Creating and returning new instance."
|
|
5337
|
-
),
|
|
5389
|
+
), zo(e), Xo(r), z.instance = new z(e, r), z.getSharedInstance();
|
|
5338
5390
|
}
|
|
5339
5391
|
/**
|
|
5340
5392
|
* Fetch the configured offerings for this user. You can configure these
|
|
@@ -5402,7 +5454,7 @@ const z = class z {
|
|
|
5402
5454
|
return G.debugLog(
|
|
5403
5455
|
`Presenting purchase form for package ${r.identifier}`
|
|
5404
5456
|
), new Promise((u, d) => {
|
|
5405
|
-
new
|
|
5457
|
+
new Lo({
|
|
5406
5458
|
target: l,
|
|
5407
5459
|
props: {
|
|
5408
5460
|
appUserId: a,
|
|
@@ -5415,7 +5467,7 @@ const z = class z {
|
|
|
5415
5467
|
});
|
|
5416
5468
|
},
|
|
5417
5469
|
onClose: () => {
|
|
5418
|
-
l.innerHTML = "", G.debugLog("Purchase cancelled by user"), d(new X(
|
|
5470
|
+
l.innerHTML = "", G.debugLog("Purchase cancelled by user"), d(new X(ee.UserCancelledError));
|
|
5419
5471
|
},
|
|
5420
5472
|
onError: (h) => {
|
|
5421
5473
|
l.innerHTML = "", d(X.getForPurchasesFlowError(h));
|
|
@@ -5482,17 +5534,17 @@ const z = class z {
|
|
|
5482
5534
|
/** @internal */
|
|
5483
5535
|
async _getCustomerInfoForUserId(e) {
|
|
5484
5536
|
const r = await this.backend.getCustomerInfo(e);
|
|
5485
|
-
return
|
|
5537
|
+
return Ko(r);
|
|
5486
5538
|
}
|
|
5487
5539
|
};
|
|
5488
5540
|
/** @internal */
|
|
5489
5541
|
Q(z, "instance");
|
|
5490
5542
|
let yt = z;
|
|
5491
5543
|
export {
|
|
5492
|
-
|
|
5544
|
+
ee as ErrorCode,
|
|
5493
5545
|
W as LogLevel,
|
|
5494
5546
|
zt as PackageType,
|
|
5495
5547
|
yt as Purchases,
|
|
5496
5548
|
X as PurchasesError,
|
|
5497
|
-
|
|
5549
|
+
Gn as UninitializedPurchasesError
|
|
5498
5550
|
};
|