@revenuecat/purchases-js 1.5.3 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Purchases.es.d.ts +520 -468
- package/dist/Purchases.es.js +604 -579
- package/dist/Purchases.umd.js +32 -32
- package/package.json +1 -1
package/dist/Purchases.es.js
CHANGED
|
@@ -78,7 +78,7 @@ var pa = Array.isArray, Rs = Array.prototype.indexOf, sn = Array.from, Us = Obje
|
|
|
78
78
|
function Kr(e) {
|
|
79
79
|
return typeof e == "function";
|
|
80
80
|
}
|
|
81
|
-
const
|
|
81
|
+
const ne = () => {
|
|
82
82
|
};
|
|
83
83
|
function Ws(e) {
|
|
84
84
|
return e();
|
|
@@ -162,7 +162,7 @@ function D(e, r) {
|
|
|
162
162
|
(dr === null || !dr.includes(e)) && al(), Oa(e, r);
|
|
163
163
|
}
|
|
164
164
|
function Oa(e, r) {
|
|
165
|
-
return e.equals(r) || (e.v, e.v = r, e.wv = ri(), Bo(e, qr), mn() && Z !== null && (Z.f & Ie) !== 0 && (Z.f & Ke) === 0 && (
|
|
165
|
+
return e.equals(r) || (e.v, e.v = r, e.wv = ri(), Bo(e, qr), mn() && Z !== null && (Z.f & Ie) !== 0 && (Z.f & Ke) === 0 && (Se !== null && Se.includes(e) ? (Je(Z, qr), ba(Z)) : Tr === null ? fl([e]) : Tr.push(e))), r;
|
|
166
166
|
}
|
|
167
167
|
function Bo(e, r) {
|
|
168
168
|
var t = e.reactions;
|
|
@@ -180,7 +180,7 @@ function Bo(e, r) {
|
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
let dn = !1;
|
|
183
|
-
function
|
|
183
|
+
function B(e, r = null, t) {
|
|
184
184
|
if (typeof e != "object" || e === null || Er in e)
|
|
185
185
|
return e;
|
|
186
186
|
const a = ln(e);
|
|
@@ -199,7 +199,7 @@ function L(e, r = null, t) {
|
|
|
199
199
|
defineProperty(l, c, p) {
|
|
200
200
|
(!("value" in p) || p.configurable === !1 || p.enumerable === !1 || p.writable === !1) && el();
|
|
201
201
|
var u = n.get(c);
|
|
202
|
-
return u === void 0 ? (u = je(p.value), n.set(c, u)) : D(u,
|
|
202
|
+
return u === void 0 ? (u = je(p.value), n.set(c, u)) : D(u, B(p.value, s)), !0;
|
|
203
203
|
},
|
|
204
204
|
deleteProperty(l, c) {
|
|
205
205
|
var p = n.get(c);
|
|
@@ -222,7 +222,7 @@ function L(e, r = null, t) {
|
|
|
222
222
|
if (c === Er)
|
|
223
223
|
return e;
|
|
224
224
|
var u = n.get(c), _ = c in l;
|
|
225
|
-
if (u === void 0 && (!_ || (m = Sr(l, c)) != null && m.writable) && (u = je(
|
|
225
|
+
if (u === void 0 && (!_ || (m = Sr(l, c)) != null && m.writable) && (u = je(B(_ ? l[c] : Te, s)), n.set(c, u)), u !== void 0) {
|
|
226
226
|
var g = d(u);
|
|
227
227
|
return g === Te ? void 0 : g;
|
|
228
228
|
}
|
|
@@ -251,7 +251,7 @@ function L(e, r = null, t) {
|
|
|
251
251
|
return !0;
|
|
252
252
|
var p = n.get(c), u = p !== void 0 && p.v !== Te || Reflect.has(l, c);
|
|
253
253
|
if (p !== void 0 || Z !== null && (!u || (g = Sr(l, c)) != null && g.writable)) {
|
|
254
|
-
p === void 0 && (p = je(u ?
|
|
254
|
+
p === void 0 && (p = je(u ? B(l[c], s) : Te), n.set(c, p));
|
|
255
255
|
var _ = d(p);
|
|
256
256
|
if (_ === Te)
|
|
257
257
|
return !1;
|
|
@@ -267,7 +267,7 @@ function L(e, r = null, t) {
|
|
|
267
267
|
var f = n.get(m + "");
|
|
268
268
|
f !== void 0 ? D(f, Te) : m in l && (f = je(Te), n.set(m + "", f));
|
|
269
269
|
}
|
|
270
|
-
_ === void 0 ? (!g || (x = Sr(l, c)) != null && x.writable) && (_ = je(void 0), D(_,
|
|
270
|
+
_ === void 0 ? (!g || (x = Sr(l, c)) != null && x.writable) && (_ = je(void 0), D(_, B(p, s)), n.set(c, _)) : (g = _.v !== Te, D(_, B(p, s)));
|
|
271
271
|
var h = Reflect.getOwnPropertyDescriptor(l, c);
|
|
272
272
|
if (h != null && h.set && h.set.call(u, p), !g) {
|
|
273
273
|
if (o && typeof c == "string") {
|
|
@@ -322,7 +322,7 @@ function ma(e) {
|
|
|
322
322
|
function P(e, r) {
|
|
323
323
|
return /* @__PURE__ */ Br(e);
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function Y(e, r) {
|
|
326
326
|
{
|
|
327
327
|
var t = (
|
|
328
328
|
/** @type {DocumentFragment} */
|
|
@@ -334,7 +334,7 @@ function W(e, r) {
|
|
|
334
334
|
return t instanceof Comment && t.data === "" ? /* @__PURE__ */ ma(t) : t;
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
|
-
function
|
|
337
|
+
function O(e, r = 1, t = !1) {
|
|
338
338
|
let a = e;
|
|
339
339
|
for (; r--; )
|
|
340
340
|
a = /** @type {TemplateNode} */
|
|
@@ -667,7 +667,7 @@ let dr = null;
|
|
|
667
667
|
function ml(e) {
|
|
668
668
|
dr = e;
|
|
669
669
|
}
|
|
670
|
-
let
|
|
670
|
+
let Se = null, Me = 0, Tr = null;
|
|
671
671
|
function fl(e) {
|
|
672
672
|
Tr = e;
|
|
673
673
|
}
|
|
@@ -742,28 +742,28 @@ function Mt(e, r, t, a) {
|
|
|
742
742
|
}
|
|
743
743
|
function ti(e) {
|
|
744
744
|
var _;
|
|
745
|
-
var r =
|
|
746
|
-
|
|
745
|
+
var r = Se, t = Me, a = Tr, n = le, o = Or, i = dr, s = $, l = e.f;
|
|
746
|
+
Se = /** @type {null | Value[]} */
|
|
747
747
|
null, Me = 0, Tr = null, le = (l & (Ke | zt)) === 0 ? e : null, Or = !rt && (l & Vr) !== 0, dr = null, $ = e.ctx, Ua++;
|
|
748
748
|
try {
|
|
749
749
|
var c = (
|
|
750
750
|
/** @type {Function} */
|
|
751
751
|
(0, e.fn)()
|
|
752
752
|
), p = e.deps;
|
|
753
|
-
if (
|
|
753
|
+
if (Se !== null) {
|
|
754
754
|
var u;
|
|
755
755
|
if (St(e, Me), p !== null && Me > 0)
|
|
756
|
-
for (p.length = Me +
|
|
757
|
-
p[Me + u] =
|
|
756
|
+
for (p.length = Me + Se.length, u = 0; u < Se.length; u++)
|
|
757
|
+
p[Me + u] = Se[u];
|
|
758
758
|
else
|
|
759
|
-
e.deps = p =
|
|
759
|
+
e.deps = p = Se;
|
|
760
760
|
if (!Or)
|
|
761
761
|
for (u = Me; u < p.length; u++)
|
|
762
762
|
((_ = p[u]).reactions ?? (_.reactions = [])).push(e);
|
|
763
763
|
} else p !== null && Me < p.length && (St(e, Me), p.length = Me);
|
|
764
764
|
return c;
|
|
765
765
|
} finally {
|
|
766
|
-
|
|
766
|
+
Se = r, Me = t, Tr = a, le = n, Or = o, dr = i, $ = s;
|
|
767
767
|
}
|
|
768
768
|
}
|
|
769
769
|
function hl(e, r) {
|
|
@@ -778,7 +778,7 @@ function hl(e, r) {
|
|
|
778
778
|
t === null && (r.f & Ze) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
779
779
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
780
780
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
781
|
-
(
|
|
781
|
+
(Se === null || !Se.includes(r)) && (Je(r, Dt), (r.f & (Vr | Kt)) === 0 && (r.f ^= Kt), St(
|
|
782
782
|
/** @type {Derived} **/
|
|
783
783
|
r,
|
|
784
784
|
0
|
|
@@ -926,7 +926,7 @@ function d(e) {
|
|
|
926
926
|
if (le !== null) {
|
|
927
927
|
dr !== null && dr.includes(e) && tl();
|
|
928
928
|
var n = le.deps;
|
|
929
|
-
e.rv < Ua && (e.rv = Ua,
|
|
929
|
+
e.rv < Ua && (e.rv = Ua, Se === null && n !== null && n[Me] === e ? Me++ : Se === null ? Se = [e] : Se.push(e), Tr !== null && Z !== null && (Z.f & Ie) !== 0 && (Z.f & Ke) === 0 && Tr.includes(e) && (Je(Z, qr), ba(Z)));
|
|
930
930
|
} else if (t && /** @type {Derived} */
|
|
931
931
|
e.deps === null)
|
|
932
932
|
for (var o = (
|
|
@@ -1366,41 +1366,41 @@ function it(e, r, t, a, n, o = null) {
|
|
|
1366
1366
|
});
|
|
1367
1367
|
}
|
|
1368
1368
|
function Fl(e, r, t, a, n, o, i, s) {
|
|
1369
|
-
var re, pe,
|
|
1370
|
-
var l = (n & ws) !== 0, c = (n & (nn | on)) !== 0, p = e.length, u = r.items, _ = r.first, g = _, m, f = null, h, v = [], y = [], x, T, S,
|
|
1369
|
+
var re, pe, me, ce;
|
|
1370
|
+
var l = (n & ws) !== 0, c = (n & (nn | on)) !== 0, p = e.length, u = r.items, _ = r.first, g = _, m, f = null, h, v = [], y = [], x, T, S, z;
|
|
1371
1371
|
if (l)
|
|
1372
|
-
for (
|
|
1373
|
-
x = e[
|
|
1374
|
-
for (
|
|
1375
|
-
if (x = e[
|
|
1376
|
-
var
|
|
1372
|
+
for (z = 0; z < p; z += 1)
|
|
1373
|
+
x = e[z], T = i(x, z), S = u.get(T), S !== void 0 && ((re = S.a) == null || re.measure(), (h ?? (h = /* @__PURE__ */ new Set())).add(S));
|
|
1374
|
+
for (z = 0; z < p; z += 1) {
|
|
1375
|
+
if (x = e[z], T = i(x, z), S = u.get(T), S === void 0) {
|
|
1376
|
+
var C = g ? (
|
|
1377
1377
|
/** @type {TemplateNode} */
|
|
1378
1378
|
g.e.nodes_start
|
|
1379
1379
|
) : t;
|
|
1380
1380
|
f = Dl(
|
|
1381
|
-
|
|
1381
|
+
C,
|
|
1382
1382
|
r,
|
|
1383
1383
|
f,
|
|
1384
1384
|
f === null ? r.first : f.next,
|
|
1385
1385
|
x,
|
|
1386
1386
|
T,
|
|
1387
|
-
|
|
1387
|
+
z,
|
|
1388
1388
|
a,
|
|
1389
1389
|
n
|
|
1390
1390
|
), u.set(T, f), v = [], y = [], g = f.next;
|
|
1391
1391
|
continue;
|
|
1392
1392
|
}
|
|
1393
|
-
if (c && zl(S, x,
|
|
1393
|
+
if (c && zl(S, x, z, n), (S.e.f & cr) !== 0 && (Pt(S.e), l && ((pe = S.a) == null || pe.unfix(), (h ?? (h = /* @__PURE__ */ new Set())).delete(S))), S !== g) {
|
|
1394
1394
|
if (m !== void 0 && m.has(S)) {
|
|
1395
1395
|
if (v.length < y.length) {
|
|
1396
1396
|
var k = y[0], w;
|
|
1397
1397
|
f = k.prev;
|
|
1398
|
-
var
|
|
1398
|
+
var q = v[0], G = v[v.length - 1];
|
|
1399
1399
|
for (w = 0; w < v.length; w += 1)
|
|
1400
1400
|
to(v[w], k, t);
|
|
1401
1401
|
for (w = 0; w < y.length; w += 1)
|
|
1402
1402
|
m.delete(y[w]);
|
|
1403
|
-
Pr(r,
|
|
1403
|
+
Pr(r, q.prev, G.next), Pr(r, f, q), Pr(r, G, k), g = k, f = G, z -= 1, v = [], y = [];
|
|
1404
1404
|
} else
|
|
1405
1405
|
m.delete(S), to(S, g, t), Pr(r, S.prev, S.next), Pr(r, S, f === null ? r.first : f.next), Pr(r, f, S), f = S;
|
|
1406
1406
|
continue;
|
|
@@ -1414,25 +1414,25 @@ function Fl(e, r, t, a, n, o, i, s) {
|
|
|
1414
1414
|
v.push(S), f = S, g = S.next;
|
|
1415
1415
|
}
|
|
1416
1416
|
if (g !== null || m !== void 0) {
|
|
1417
|
-
for (var
|
|
1418
|
-
(o || (g.e.f & cr) === 0) &&
|
|
1419
|
-
var
|
|
1420
|
-
if (
|
|
1417
|
+
for (var W = m === void 0 ? [] : sn(m); g !== null; )
|
|
1418
|
+
(o || (g.e.f & cr) === 0) && W.push(g), g = g.next;
|
|
1419
|
+
var ae = W.length;
|
|
1420
|
+
if (ae > 0) {
|
|
1421
1421
|
var J = (n & zo) !== 0 && p === 0 ? t : null;
|
|
1422
1422
|
if (l) {
|
|
1423
|
-
for (
|
|
1424
|
-
(
|
|
1425
|
-
for (
|
|
1426
|
-
(ce =
|
|
1423
|
+
for (z = 0; z < ae; z += 1)
|
|
1424
|
+
(me = W[z].a) == null || me.measure();
|
|
1425
|
+
for (z = 0; z < ae; z += 1)
|
|
1426
|
+
(ce = W[z].a) == null || ce.fix();
|
|
1427
1427
|
}
|
|
1428
|
-
ql(r,
|
|
1428
|
+
ql(r, W, J, u);
|
|
1429
1429
|
}
|
|
1430
1430
|
}
|
|
1431
1431
|
l && Hr(() => {
|
|
1432
|
-
var
|
|
1432
|
+
var ke;
|
|
1433
1433
|
if (h !== void 0)
|
|
1434
1434
|
for (S of h)
|
|
1435
|
-
(
|
|
1435
|
+
(ke = S.a) == null || ke.apply();
|
|
1436
1436
|
}), Z.first = r.first && r.first.e, Z.last = f && f.e;
|
|
1437
1437
|
}
|
|
1438
1438
|
function zl(e, r, t, a) {
|
|
@@ -1498,8 +1498,8 @@ function Al(e, r, t, a, n) {
|
|
|
1498
1498
|
var o = (s = r.$$slots) == null ? void 0 : s[t], i = !1;
|
|
1499
1499
|
o === !0 && (o = r.children, i = !0), o === void 0 || o(e, i ? () => a : a);
|
|
1500
1500
|
}
|
|
1501
|
-
function
|
|
1502
|
-
var a = e, n =
|
|
1501
|
+
function ge(e, r, ...t) {
|
|
1502
|
+
var a = e, n = ne, o;
|
|
1503
1503
|
Dr(() => {
|
|
1504
1504
|
n !== (n = r()) && (o && (Ve(o), o = null), o = Ue(() => (
|
|
1505
1505
|
/** @type {SnippetFn} */
|
|
@@ -1609,10 +1609,10 @@ function ra(e, r, t, a, n = !1, o = !1, i = !1) {
|
|
|
1609
1609
|
if (m)
|
|
1610
1610
|
e[`__${S}`] = y, ha([S]);
|
|
1611
1611
|
else {
|
|
1612
|
-
let
|
|
1613
|
-
s[v].call(this,
|
|
1612
|
+
let z = function(C) {
|
|
1613
|
+
s[v].call(this, C);
|
|
1614
1614
|
};
|
|
1615
|
-
s[T] = ii(S, e,
|
|
1615
|
+
s[T] = ii(S, e, z, x);
|
|
1616
1616
|
}
|
|
1617
1617
|
else m && (e[`__${S}`] = void 0);
|
|
1618
1618
|
} else if (v === "style" && y != null)
|
|
@@ -1821,9 +1821,9 @@ function Ga(e, r, t, a, n) {
|
|
|
1821
1821
|
}
|
|
1822
1822
|
if (t == null || t.deactivate(), !(r != null && r.duration))
|
|
1823
1823
|
return n(), {
|
|
1824
|
-
abort:
|
|
1825
|
-
deactivate:
|
|
1826
|
-
reset:
|
|
1824
|
+
abort: ne,
|
|
1825
|
+
deactivate: ne,
|
|
1826
|
+
reset: ne,
|
|
1827
1827
|
t: () => a
|
|
1828
1828
|
};
|
|
1829
1829
|
const { delay: l = 0, css: c, tick: p, easing: u = Rl } = r;
|
|
@@ -1843,8 +1843,8 @@ function Ga(e, r, t, a, n) {
|
|
|
1843
1843
|
if (y > 0) {
|
|
1844
1844
|
if (c)
|
|
1845
1845
|
for (var T = Math.ceil(y / 16.666666666666668), S = 0; S <= T; S += 1) {
|
|
1846
|
-
var
|
|
1847
|
-
x.push(no(
|
|
1846
|
+
var z = h + v * u(S / T), C = c(z, 1 - z);
|
|
1847
|
+
x.push(no(C));
|
|
1848
1848
|
}
|
|
1849
1849
|
m = () => {
|
|
1850
1850
|
var k = (
|
|
@@ -1864,10 +1864,10 @@ function Ga(e, r, t, a, n) {
|
|
|
1864
1864
|
};
|
|
1865
1865
|
}, {
|
|
1866
1866
|
abort: () => {
|
|
1867
|
-
f && (f.cancel(), f.effect = null, f.onfinish =
|
|
1867
|
+
f && (f.cancel(), f.effect = null, f.onfinish = ne);
|
|
1868
1868
|
},
|
|
1869
1869
|
deactivate: () => {
|
|
1870
|
-
n =
|
|
1870
|
+
n = ne;
|
|
1871
1871
|
},
|
|
1872
1872
|
reset: () => {
|
|
1873
1873
|
a === 0 && (p == null || p(1, 0));
|
|
@@ -1960,7 +1960,7 @@ function Ul(e) {
|
|
|
1960
1960
|
}
|
|
1961
1961
|
function Vl(e, r, t) {
|
|
1962
1962
|
if (e == null)
|
|
1963
|
-
return r(void 0),
|
|
1963
|
+
return r(void 0), ne;
|
|
1964
1964
|
const a = br(
|
|
1965
1965
|
() => e.subscribe(
|
|
1966
1966
|
r,
|
|
@@ -1975,11 +1975,11 @@ function ze(e, r, t) {
|
|
|
1975
1975
|
const a = t[r] ?? (t[r] = {
|
|
1976
1976
|
store: null,
|
|
1977
1977
|
source: /* @__PURE__ */ ga(void 0),
|
|
1978
|
-
unsubscribe:
|
|
1978
|
+
unsubscribe: ne
|
|
1979
1979
|
});
|
|
1980
1980
|
if (a.store !== e)
|
|
1981
1981
|
if (a.unsubscribe(), a.store = e ?? null, e == null)
|
|
1982
|
-
a.source.v = void 0, a.unsubscribe =
|
|
1982
|
+
a.source.v = void 0, a.unsubscribe = ne;
|
|
1983
1983
|
else {
|
|
1984
1984
|
var n = !0;
|
|
1985
1985
|
a.unsubscribe = Vl(e, (o) => {
|
|
@@ -2091,14 +2091,14 @@ function so(e) {
|
|
|
2091
2091
|
}
|
|
2092
2092
|
}
|
|
2093
2093
|
function U(e, r, t, a) {
|
|
2094
|
-
var
|
|
2094
|
+
var C;
|
|
2095
2095
|
var n = (t & Ps) !== 0, o = !lt || (t & Ss) !== 0, i = (t & Ts) !== 0, s = (t & Is) !== 0, l = !1, c;
|
|
2096
2096
|
i ? [c, l] = Hl(() => (
|
|
2097
2097
|
/** @type {V} */
|
|
2098
2098
|
e[r]
|
|
2099
2099
|
)) : c = /** @type {V} */
|
|
2100
2100
|
e[r];
|
|
2101
|
-
var p = Er in e || No in e, u = ((
|
|
2101
|
+
var p = Er in e || No in e, u = ((C = Sr(e, r)) == null ? void 0 : C.set) ?? (p && i && r in e ? (k) => e[r] = k : void 0), _ = (
|
|
2102
2102
|
/** @type {V} */
|
|
2103
2103
|
a
|
|
2104
2104
|
), g = !0, m = !1, f = () => (m = !0, g && (g = !1, s ? _ = br(
|
|
@@ -2137,18 +2137,18 @@ function U(e, r, t, a) {
|
|
|
2137
2137
|
return arguments.length > 0 ? ((!o || !w || y || l) && u(w ? h() : k), k) : h();
|
|
2138
2138
|
};
|
|
2139
2139
|
}
|
|
2140
|
-
var x = !1, T = !1, S = /* @__PURE__ */ ga(c),
|
|
2140
|
+
var x = !1, T = !1, S = /* @__PURE__ */ ga(c), z = so(
|
|
2141
2141
|
() => /* @__PURE__ */ E(() => {
|
|
2142
2142
|
var k = h(), w = d(S);
|
|
2143
2143
|
return x ? (x = !1, T = !0, w) : (T = !1, S.v = k);
|
|
2144
2144
|
})
|
|
2145
2145
|
);
|
|
2146
|
-
return n || (
|
|
2146
|
+
return n || (z.equals = cn), function(k, w) {
|
|
2147
2147
|
if (arguments.length > 0) {
|
|
2148
|
-
const
|
|
2149
|
-
return
|
|
2148
|
+
const q = w ? d(z) : o && i ? B(k) : k;
|
|
2149
|
+
return z.equals(q) || (x = !0, D(S, q), m && _ !== void 0 && (_ = q), br(() => d(z))), k;
|
|
2150
2150
|
}
|
|
2151
|
-
return d(
|
|
2151
|
+
return d(z);
|
|
2152
2152
|
};
|
|
2153
2153
|
}
|
|
2154
2154
|
function lo(e, r) {
|
|
@@ -2197,7 +2197,7 @@ function Gl(e, r, t) {
|
|
|
2197
2197
|
}, n = Ue(() => t(a)), Ta();
|
|
2198
2198
|
}, zr | Zt);
|
|
2199
2199
|
}
|
|
2200
|
-
var
|
|
2200
|
+
var he = /* @__PURE__ */ ((e) => (e[e.UnknownError = 0] = "UnknownError", e[e.UserCancelledError = 1] = "UserCancelledError", e[e.StoreProblemError = 2] = "StoreProblemError", e[e.PurchaseNotAllowedError = 3] = "PurchaseNotAllowedError", e[e.PurchaseInvalidError = 4] = "PurchaseInvalidError", e[e.ProductNotAvailableForPurchaseError = 5] = "ProductNotAvailableForPurchaseError", e[e.ProductAlreadyPurchasedError = 6] = "ProductAlreadyPurchasedError", e[e.ReceiptAlreadyInUseError = 7] = "ReceiptAlreadyInUseError", e[e.InvalidReceiptError = 8] = "InvalidReceiptError", e[e.MissingReceiptFileError = 9] = "MissingReceiptFileError", e[e.NetworkError = 10] = "NetworkError", e[e.InvalidCredentialsError = 11] = "InvalidCredentialsError", e[e.UnexpectedBackendResponseError = 12] = "UnexpectedBackendResponseError", e[e.InvalidAppUserIdError = 14] = "InvalidAppUserIdError", e[e.OperationAlreadyInProgressError = 15] = "OperationAlreadyInProgressError", e[e.UnknownBackendError = 16] = "UnknownBackendError", e[e.InvalidAppleSubscriptionKeyError = 17] = "InvalidAppleSubscriptionKeyError", e[e.IneligibleError = 18] = "IneligibleError", e[e.InsufficientPermissionsError = 19] = "InsufficientPermissionsError", e[e.PaymentPendingError = 20] = "PaymentPendingError", e[e.InvalidSubscriberAttributesError = 21] = "InvalidSubscriberAttributesError", e[e.LogOutWithAnonymousUserError = 22] = "LogOutWithAnonymousUserError", e[e.ConfigurationError = 23] = "ConfigurationError", e[e.UnsupportedError = 24] = "UnsupportedError", e[e.EmptySubscriberAttributesError = 25] = "EmptySubscriberAttributesError", e[e.CustomerInfoError = 28] = "CustomerInfoError", e[e.SignatureVerificationError = 36] = "SignatureVerificationError", e[e.InvalidEmailError = 38] = "InvalidEmailError", e))(he || {});
|
|
2201
2201
|
class kt {
|
|
2202
2202
|
// This is the message shown to developers. It is not intended to be displayed to end customers.
|
|
2203
2203
|
static getPublicMessage(r) {
|
|
@@ -2335,16 +2335,16 @@ class kt {
|
|
|
2335
2335
|
}
|
|
2336
2336
|
}
|
|
2337
2337
|
var wt = /* @__PURE__ */ ((e) => (e[e.BackendInvalidPlatform = 7e3] = "BackendInvalidPlatform", e[e.BackendInvalidEmail = 7012] = "BackendInvalidEmail", e[e.BackendStoreProblem = 7101] = "BackendStoreProblem", e[e.BackendCannotTransferPurchase = 7102] = "BackendCannotTransferPurchase", e[e.BackendInvalidReceiptToken = 7103] = "BackendInvalidReceiptToken", e[e.BackendInvalidAppStoreSharedSecret = 7104] = "BackendInvalidAppStoreSharedSecret", e[e.BackendInvalidPaymentModeOrIntroPriceNotProvided = 7105] = "BackendInvalidPaymentModeOrIntroPriceNotProvided", e[e.BackendProductIdForGoogleReceiptNotProvided = 7106] = "BackendProductIdForGoogleReceiptNotProvided", e[e.BackendInvalidPlayStoreCredentials = 7107] = "BackendInvalidPlayStoreCredentials", e[e.BackendInternalServerError = 7110] = "BackendInternalServerError", e[e.BackendEmptyAppUserId = 7220] = "BackendEmptyAppUserId", e[e.BackendInvalidAuthToken = 7224] = "BackendInvalidAuthToken", e[e.BackendInvalidAPIKey = 7225] = "BackendInvalidAPIKey", e[e.BackendBadRequest = 7226] = "BackendBadRequest", e[e.BackendPlayStoreQuotaExceeded = 7229] = "BackendPlayStoreQuotaExceeded", e[e.BackendPlayStoreInvalidPackageName = 7230] = "BackendPlayStoreInvalidPackageName", e[e.BackendPlayStoreGenericError = 7231] = "BackendPlayStoreGenericError", e[e.BackendUserIneligibleForPromoOffer = 7232] = "BackendUserIneligibleForPromoOffer", e[e.BackendInvalidAppleSubscriptionKey = 7234] = "BackendInvalidAppleSubscriptionKey", e[e.BackendSubscriberNotFound = 7259] = "BackendSubscriberNotFound", e[e.BackendInvalidSubscriberAttributes = 7263] = "BackendInvalidSubscriberAttributes", e[e.BackendInvalidSubscriberAttributesBody = 7264] = "BackendInvalidSubscriberAttributesBody", e[e.BackendProductIDsMalformed = 7662] = "BackendProductIDsMalformed", e[e.BackendAlreadySubscribedError = 7772] = "BackendAlreadySubscribedError", e[e.BackendPaymentGatewayGenericError = 7773] = "BackendPaymentGatewayGenericError", e[e.BackendOfferNotFound = 7814] = "BackendOfferNotFound", e[e.BackendNoMXRecordsFound = 7834] = "BackendNoMXRecordsFound", e[e.BackendInvalidOperationSession = 7877] = "BackendInvalidOperationSession", e[e.BackendPurchaseCannotBeCompleted = 7878] = "BackendPurchaseCannotBeCompleted", e[e.BackendEmailIsRequired = 7879] = "BackendEmailIsRequired", e[e.BackendGatewaySetupErrorStripeTaxNotActive = 7898] = "BackendGatewaySetupErrorStripeTaxNotActive", e[e.BackendGatewaySetupErrorInvalidTaxOriginAddress = 7899] = "BackendGatewaySetupErrorInvalidTaxOriginAddress", e[e.BackendGatewaySetupErrorMissingRequiredPermission = 7900] = "BackendGatewaySetupErrorMissingRequiredPermission", e[e.BackendGatewaySetupErrorSandboxModeOnly = 7901] = "BackendGatewaySetupErrorSandboxModeOnly", e))(wt || {});
|
|
2338
|
-
class
|
|
2338
|
+
class _e extends Error {
|
|
2339
2339
|
constructor(t, a, n, o) {
|
|
2340
2340
|
super(a);
|
|
2341
|
-
M(this, "toString", () => `PurchasesError(code: ${
|
|
2341
|
+
M(this, "toString", () => `PurchasesError(code: ${he[this.errorCode]}, message: ${this.message})`);
|
|
2342
2342
|
this.errorCode = t, this.underlyingErrorMessage = n, this.extra = o;
|
|
2343
2343
|
}
|
|
2344
2344
|
/** @internal */
|
|
2345
2345
|
static getForBackendError(t, a) {
|
|
2346
2346
|
const n = kt.getErrorCodeForBackendErrorCode(t);
|
|
2347
|
-
return new
|
|
2347
|
+
return new _e(
|
|
2348
2348
|
n,
|
|
2349
2349
|
kt.getPublicMessage(n),
|
|
2350
2350
|
a,
|
|
@@ -2353,7 +2353,7 @@ class ye extends Error {
|
|
|
2353
2353
|
}
|
|
2354
2354
|
/** @internal */
|
|
2355
2355
|
static getForPurchasesFlowError(t) {
|
|
2356
|
-
return new
|
|
2356
|
+
return new _e(
|
|
2357
2357
|
kt.convertPurchaseFlowErrorCodeToErrorCode(
|
|
2358
2358
|
t.errorCode
|
|
2359
2359
|
),
|
|
@@ -2428,7 +2428,7 @@ class de extends Error {
|
|
|
2428
2428
|
static fromPurchasesError(r, t) {
|
|
2429
2429
|
var n;
|
|
2430
2430
|
let a;
|
|
2431
|
-
return r.errorCode ===
|
|
2431
|
+
return r.errorCode === he.ProductAlreadyPurchasedError ? a = 5 : r.errorCode === he.InvalidEmailError ? a = 4 : r.errorCode === he.NetworkError ? a = 3 : a = de.fromBackendErrorCode((n = r.extra) == null ? void 0 : n.backendErrorCode) ?? t, new de(
|
|
2432
2432
|
a,
|
|
2433
2433
|
r.message,
|
|
2434
2434
|
r.underlyingErrorMessage,
|
|
@@ -2471,7 +2471,7 @@ class Kl {
|
|
|
2471
2471
|
);
|
|
2472
2472
|
return this.operationSessionId = l.operation_session_id, l;
|
|
2473
2473
|
} catch (s) {
|
|
2474
|
-
if (s instanceof
|
|
2474
|
+
if (s instanceof _e)
|
|
2475
2475
|
throw de.fromPurchasesError(
|
|
2476
2476
|
s,
|
|
2477
2477
|
0
|
|
@@ -2501,7 +2501,7 @@ class Kl {
|
|
|
2501
2501
|
a
|
|
2502
2502
|
);
|
|
2503
2503
|
} catch (o) {
|
|
2504
|
-
if (o instanceof
|
|
2504
|
+
if (o instanceof _e)
|
|
2505
2505
|
throw de.fromPurchasesError(
|
|
2506
2506
|
o,
|
|
2507
2507
|
0
|
|
@@ -2529,7 +2529,7 @@ class Kl {
|
|
|
2529
2529
|
r
|
|
2530
2530
|
);
|
|
2531
2531
|
} catch (a) {
|
|
2532
|
-
if (a instanceof
|
|
2532
|
+
if (a instanceof _e)
|
|
2533
2533
|
throw de.fromPurchasesError(
|
|
2534
2534
|
a,
|
|
2535
2535
|
0
|
|
@@ -2699,7 +2699,7 @@ const Ne = "rcb-ui-translator", tt = "en", Jl = {
|
|
|
2699
2699
|
"product_info.cancel_anytime": "Cancel anytime",
|
|
2700
2700
|
"payment_entry_page.payment_step_title": "Secure checkout by RevenueCat",
|
|
2701
2701
|
"payment_entry_page.terms_info": "By providing your card information you allow {{appName}} to charge your card for future payments in accordance with their terms.",
|
|
2702
|
-
"payment_entry_page.trial_info": "After your trial ends, you will be charged {{price}} {{perFrequency}} starting {{renewalDate}}. You can always cancel before then.",
|
|
2702
|
+
"payment_entry_page.trial_info": "After your trial ends, you will be charged {{price}} {{perFrequency}} plus any applicable taxes starting {{renewalDate}}. You can always cancel before then.",
|
|
2703
2703
|
"payment_entry_page.button_pay": "Pay now",
|
|
2704
2704
|
"payment_entry_page.button_start_trial": "Start trial",
|
|
2705
2705
|
"payment_entry_page.button_with_price": "Pay {{formattedPrice}}",
|
|
@@ -5598,7 +5598,7 @@ const Ne = "rcb-ui-translator", tt = "en", Jl = {
|
|
|
5598
5598
|
"error_page.error_title_stripe_invalid_tax_origin_address": "Địa chỉ gốc thuế không hợp lệ",
|
|
5599
5599
|
"apple_pay.free_trial": "Dùng thử miễn phí"
|
|
5600
5600
|
};
|
|
5601
|
-
var
|
|
5601
|
+
var L = /* @__PURE__ */ ((e) => (e.PeriodsWeek = "periods.week", e.PeriodsMonth = "periods.month", e.PeriodsYear = "periods.year", e.PeriodsDay = "periods.day", e.PeriodsWeekShort = "periods.weekShort", e.PeriodsMonthShort = "periods.monthShort", e.PeriodsYearShort = "periods.yearShort", e.PeriodsDayShort = "periods.dayShort", e.PeriodsLifetime = "periods.lifetime", e.PeriodsWeekPlural = "periods.weekPlural", e.PeriodsMonthPlural = "periods.monthPlural", e.PeriodsYearPlural = "periods.yearPlural", e.PeriodsDayPlural = "periods.dayPlural", e.PeriodsWeekFrequency = "periods.weekFrequency", e.PeriodsMonthFrequency = "periods.monthFrequency", e.PeriodsYearFrequency = "periods.yearFrequency", e.PeriodsDayFrequency = "periods.dayFrequency", e.PeriodsPerWeekFrequency = "periods.perWeekFrequency", e.PeriodsPerMonthFrequency = "periods.perMonthFrequency", e.PeriodsPerYearFrequency = "periods.perYearFrequency", e.PeriodsPerDayFrequency = "periods.perDayFrequency", e.PeriodsUnknownFrequency = "periods.unknownFrequency", e.PeriodsWeekFrequencyPlural = "periods.weekFrequencyPlural", e.PeriodsMonthFrequencyPlural = "periods.monthFrequencyPlural", e.PeriodsYearFrequencyPlural = "periods.yearFrequencyPlural", e.PeriodsDayFrequencyPlural = "periods.dayFrequencyPlural", e.ProductInfoProductTitle = "product_info.product_title", e.ProductInfoProductDescription = "product_info.product_description", e.ProductInfoProductPrice = "product_info.product_price", e.ProductInfoFreeTrialDuration = "product_info.free_trial_duration", e.ProductInfoPriceAfterFreeTrial = "product_info.price_after_free_trial", e.ProductInfoPriceTotalDueToday = "product_info.total_due_today", e.ProductInfoSubscribeTo = "product_info.subscribe_to", e.ProductInfoRenewalFrequency = "product_info.renewal_frequency", e.ProductInfoContinuesUntilCancelled = "product_info.continues_until_cancelled", e.ProductInfoCancelAnytime = "product_info.cancel_anytime", e.PaymentEntryPagePaymentStepTitle = "payment_entry_page.payment_step_title", e.PaymentEntryPageTermsInfo = "payment_entry_page.terms_info", e.PaymentEntryPageTrialInfo = "payment_entry_page.trial_info", e.PaymentEntryPageButtonPay = "payment_entry_page.button_pay", e.PaymentEntryPageButtonStartTrial = "payment_entry_page.button_start_trial", e.PaymentEntryPageButtonWithPrice = "payment_entry_page.button_with_price", e.PaymentEntryPageButtonPaymentMethod = "payment_entry_page.button_payment_method", e.PaymentEntryPageExpressCheckoutDivider = "payment_entry_page.express_checkout_divider", e.SuccessPagePurchaseSuccessful = "success_page.purchase_successful", e.SuccessPageButtonClose = "success_page.button_close", e.ErrorPageCloseButtonTitle = "error_page.close_button_title", e.ErrorPageIfErrorPersists = "error_page.if_error_persists", e.ErrorPageTroubleAccessing = "error_page.trouble_accessing", e.ErrorPageErrorTitleAlreadySubscribed = "error_page.error_title_already_subscribed", e.ErrorPageErrorTitleAlreadyPurchased = "error_page.error_title_already_purchased", e.ErrorPageErrorTitleOtherErrors = "error_page.error_title_other_errors", e.ErrorPageErrorTitleStripeTaxNotActive = "error_page.error_title_stripe_tax_not_active", e.ErrorPageErrorTitleStripeInvalidTaxOriginAddress = "error_page.error_title_stripe_invalid_tax_origin_address", e.ErrorPageErrorTitleStripeMissingRequiredPermission = "error_page.error_title_stripe_missing_required_permission", e.ErrorPageErrorMessageAlreadySubscribed = "error_page.error_message_already_subscribed", e.ErrorPageErrorMessageAlreadyPurchased = "error_page.error_message_already_purchased", e.ErrorPageErrorMessageMissingEmailError = "error_page.error_message_missing_email_error", e.ErrorPageErrorMessageInvalidEmailError = "error_page.error_message_invalid_email_error", e.ErrorPageErrorMessageNetworkError = "error_page.error_message_network_error", e.ErrorPageErrorMessageErrorChargingPayment = "error_page.error_message_error_charging_payment", e.ErrorPageErrorMessageErrorSettingUpPurchase = "error_page.error_message_error_setting_up_purchase", e.ErrorPageErrorMessageUnknownError = "error_page.error_message_unknown_error", e.ErrorPageErrorMessageInvalidTaxLocation = "error_page.error_message_invalid_tax_location", e.ErrorPageErrorMessageStripeTaxNotActive = "error_page.error_message_stripe_tax_not_active", e.ErrorPageErrorMessageStripeInvalidTaxOriginAddress = "error_page.error_message_stripe_invalid_tax_origin_address", e.ErrorPageErrorMessageStripeMissingRequiredPermission = "error_page.error_message_stripe_missing_required_permission", e.ErrorPageErrorMessageOnlyInSandbox = "error_page.error_only_in_sandbox", e.ErrorButtonTryAgain = "error_page.button_try_again", e.ErrorButtonClose = "error_page.button_close", e.PaywallVariablesPricePerPeriod = "paywall_variables.price_per_period", e.PaywallVariablesSubRelativeDiscount = "paywall_variables.sub_relative_discount", e.PaywallVariablesTotalPriceAndPerMonth = "paywall_variables.total_price_and_per_month", e.PricingDropdownShowDetails = "pricing_dropdown.show_details", e.PricingDropdownHideDetails = "pricing_dropdown.hide_details", e.PricingTotalExcludingTax = "pricing_table.total_excluding_tax", e.PricingTableTrialEnds = "pricing_table.trial_ends", e.PricingTableTotalDueToday = "pricing_table.total_due_today", e.PricingTableTax = "pricing_table.tax", e.PricingTableEnterBillingAddressToCalculate = "pricing_table.enter_billing_address_to_calculate", e.PricingTableEnterStateOrPostalCodeToCalculate = "pricing_table.enter_state_or_postal_code_to_calculate", e.PricingTableEnterPostalCodeToCalculate = "pricing_table.enter_postal_code_to_calculate", e.NavbarHeaderDetails = "navbar_header.details", e.NavbarBackButton = "navbar_header.back_button", e.PriceUpdateTitle = "price_update.title", e.PriceUpdateBaseMessage = "price_update.base_message", e.PriceUpdateTrialMessage = "price_update.trial_message", e.ApplePayFreeTrial = "apple_pay.free_trial", e))(L || {});
|
|
5602
5602
|
const Fc = {
|
|
5603
5603
|
en: Jl,
|
|
5604
5604
|
es: Ql,
|
|
@@ -5634,7 +5634,7 @@ const Fc = {
|
|
|
5634
5634
|
uk: Ic,
|
|
5635
5635
|
vi: qc
|
|
5636
5636
|
};
|
|
5637
|
-
var
|
|
5637
|
+
var xe = /* @__PURE__ */ ((e) => (e.Year = "year", e.Month = "month", e.Week = "week", e.Day = "day", e))(xe || {});
|
|
5638
5638
|
function mi(e) {
|
|
5639
5639
|
const r = e.match(/^PT?([0-9]+)([MDYW])$/);
|
|
5640
5640
|
if (!r || r.length < 3)
|
|
@@ -5954,7 +5954,7 @@ function Oc(e, r) {
|
|
|
5954
5954
|
subscribe: hi(e, r).subscribe
|
|
5955
5955
|
};
|
|
5956
5956
|
}
|
|
5957
|
-
function hi(e, r =
|
|
5957
|
+
function hi(e, r = ne) {
|
|
5958
5958
|
let t = null;
|
|
5959
5959
|
const a = /* @__PURE__ */ new Set();
|
|
5960
5960
|
function n(s) {
|
|
@@ -5975,9 +5975,9 @@ function hi(e, r = ae) {
|
|
|
5975
5975
|
e
|
|
5976
5976
|
));
|
|
5977
5977
|
}
|
|
5978
|
-
function i(s, l =
|
|
5978
|
+
function i(s, l = ne) {
|
|
5979
5979
|
const c = [s, l];
|
|
5980
|
-
return a.add(c), a.size === 1 && (t = r(n, o) ||
|
|
5980
|
+
return a.add(c), a.size === 1 && (t = r(n, o) || ne), s(
|
|
5981
5981
|
/** @type {T} */
|
|
5982
5982
|
e
|
|
5983
5983
|
), () => {
|
|
@@ -6367,7 +6367,7 @@ const Qc = {
|
|
|
6367
6367
|
function Pi(e, r) {
|
|
6368
6368
|
V(r, !0), R(e, Qc);
|
|
6369
6369
|
const t = U(r, "styleVariables", 3, ""), a = U(r, "component", 3, "p");
|
|
6370
|
-
var n = ee(), o =
|
|
6370
|
+
var n = ee(), o = Y(n);
|
|
6371
6371
|
ea(o, a, !1, (i, s) => {
|
|
6372
6372
|
let l;
|
|
6373
6373
|
A(() => l = ra(
|
|
@@ -6382,8 +6382,8 @@ function Pi(e, r) {
|
|
|
6382
6382
|
i.namespaceURI === xt,
|
|
6383
6383
|
i.nodeName.includes("-")
|
|
6384
6384
|
));
|
|
6385
|
-
var c = ee(), p =
|
|
6386
|
-
|
|
6385
|
+
var c = ee(), p = Y(c);
|
|
6386
|
+
ge(p, () => r.children ?? ne), b(s, c);
|
|
6387
6387
|
}), b(e, n), H();
|
|
6388
6388
|
}
|
|
6389
6389
|
var $c = /* @__PURE__ */ I('<span class="rc-pw-text-wrapper svelte-11gzifq"><!></span>');
|
|
@@ -6431,7 +6431,7 @@ function rd(e, r) {
|
|
|
6431
6431
|
return r.id;
|
|
6432
6432
|
},
|
|
6433
6433
|
children: (u, _) => {
|
|
6434
|
-
var g = ee(), m =
|
|
6434
|
+
var g = ee(), m = Y(g);
|
|
6435
6435
|
Wr(m, () => d(l)), b(u, g);
|
|
6436
6436
|
},
|
|
6437
6437
|
$$slots: { default: !0 }
|
|
@@ -6708,12 +6708,12 @@ function Ot(e, r) {
|
|
|
6708
6708
|
r.badge && m(_);
|
|
6709
6709
|
});
|
|
6710
6710
|
}
|
|
6711
|
-
var g =
|
|
6711
|
+
var g = O(u, 2);
|
|
6712
6712
|
it(g, 21, () => r.components, ot, (m, f, h) => {
|
|
6713
|
-
var v = ee(), y =
|
|
6713
|
+
var v = ee(), y = Y(v);
|
|
6714
6714
|
{
|
|
6715
6715
|
var x = (S) => {
|
|
6716
|
-
var
|
|
6716
|
+
var z = /* @__PURE__ */ E(() => h > 0 ? d(o) : void 0);
|
|
6717
6717
|
ia(S, {
|
|
6718
6718
|
get nodeData() {
|
|
6719
6719
|
return d(f);
|
|
@@ -6734,7 +6734,7 @@ function Ot(e, r) {
|
|
|
6734
6734
|
return r.componentState;
|
|
6735
6735
|
},
|
|
6736
6736
|
get zStackChildStyles() {
|
|
6737
|
-
return d(
|
|
6737
|
+
return d(z);
|
|
6738
6738
|
}
|
|
6739
6739
|
});
|
|
6740
6740
|
}, T = (S) => {
|
|
@@ -6856,7 +6856,7 @@ function ia(e, r) {
|
|
|
6856
6856
|
"variableDictionary",
|
|
6857
6857
|
"zStackChildStyles"
|
|
6858
6858
|
]), s = /* @__PURE__ */ E(() => o(r.nodeData)), l = /* @__PURE__ */ E(() => d(s)[0]), c = /* @__PURE__ */ E(() => d(s)[1]);
|
|
6859
|
-
var p = ee(), u =
|
|
6859
|
+
var p = ee(), u = Y(p);
|
|
6860
6860
|
return Ml(u, () => d(l), (_, g) => {
|
|
6861
6861
|
g(_, hr(
|
|
6862
6862
|
() => d(c) || {},
|
|
@@ -6883,7 +6883,7 @@ function ia(e, r) {
|
|
|
6883
6883
|
() => i,
|
|
6884
6884
|
{
|
|
6885
6885
|
children: (m, f) => {
|
|
6886
|
-
var h = ee(), v =
|
|
6886
|
+
var h = ee(), v = Y(h);
|
|
6887
6887
|
it(v, 17, () => r.nodeData.components, ot, (y, x) => {
|
|
6888
6888
|
ia(y, hr(
|
|
6889
6889
|
{
|
|
@@ -6983,13 +6983,13 @@ const vd = {
|
|
|
6983
6983
|
function kd(e, r) {
|
|
6984
6984
|
V(r, !0), R(e, vd);
|
|
6985
6985
|
const t = De(), a = () => ze(vi, "$prefersDarkMode", t), n = U(r, "variablesPerPackage", 19, () => ({}));
|
|
6986
|
-
let o =
|
|
6986
|
+
let o = B({
|
|
6987
6987
|
selectedPackageId: Vc(r.paywallData),
|
|
6988
6988
|
locale: r.selectedLocale || r.paywallData.default_locale,
|
|
6989
6989
|
defaultLocale: r.paywallData.default_locale,
|
|
6990
6990
|
variablesPerPackage: n(),
|
|
6991
6991
|
colorMode: r.preferredColorMode || (a() ? "dark" : Re)
|
|
6992
|
-
}), i = X(
|
|
6992
|
+
}), i = X(B(n()[o.selectedPackageId || ""]));
|
|
6993
6993
|
const s = (v, y) => {
|
|
6994
6994
|
var x;
|
|
6995
6995
|
(x = r.onRestorePurchasesClicked) == null || x.call(r);
|
|
@@ -7003,7 +7003,7 @@ function kd(e, r) {
|
|
|
7003
7003
|
const x = bi(v.url.url_lid, o.locale, o.defaultLocale, r.paywallData.components_localizations);
|
|
7004
7004
|
x && ((S = r.onNavigateToUrlClicked) == null || S.call(r, x));
|
|
7005
7005
|
}, p = (v, y) => {
|
|
7006
|
-
o.selectedPackageId = y == null ? void 0 : y.packageId, y != null && y.packageId && D(i,
|
|
7006
|
+
o.selectedPackageId = y == null ? void 0 : y.packageId, y != null && y.packageId && D(i, B(n()[y.packageId]));
|
|
7007
7007
|
}, u = (v, y) => {
|
|
7008
7008
|
var x;
|
|
7009
7009
|
o.selectedPackageId !== void 0 && ((x = r.onPurchaseClicked) == null || x.call(r, o.selectedPackageId));
|
|
@@ -7032,7 +7032,7 @@ function kd(e, r) {
|
|
|
7032
7032
|
colorMode: o.colorMode
|
|
7033
7033
|
});
|
|
7034
7034
|
}), m = /* @__PURE__ */ E(() => gd(r.paywallData, o.colorMode));
|
|
7035
|
-
var f = ee(), h =
|
|
7035
|
+
var f = ee(), h = Y(f);
|
|
7036
7036
|
Gl(
|
|
7037
7037
|
h,
|
|
7038
7038
|
{
|
|
@@ -7057,7 +7057,7 @@ function kd(e, r) {
|
|
|
7057
7057
|
return d(i);
|
|
7058
7058
|
}
|
|
7059
7059
|
});
|
|
7060
|
-
var T =
|
|
7060
|
+
var T = O(x, 2);
|
|
7061
7061
|
{
|
|
7062
7062
|
var S = (w) => {
|
|
7063
7063
|
Si(w, hr(() => r.paywallData.components_config.base.sticky_footer, {
|
|
@@ -7080,32 +7080,32 @@ function kd(e, r) {
|
|
|
7080
7080
|
r.paywallData.components_config.base.sticky_footer && w(S);
|
|
7081
7081
|
});
|
|
7082
7082
|
}
|
|
7083
|
-
var
|
|
7083
|
+
var z = O(T, 2);
|
|
7084
7084
|
{
|
|
7085
|
-
var
|
|
7086
|
-
var
|
|
7087
|
-
A(() => j(
|
|
7085
|
+
var C = (w) => {
|
|
7086
|
+
var q = yd();
|
|
7087
|
+
A(() => j(q, "style", d(g))), b(w, q);
|
|
7088
7088
|
}, k = (w) => {
|
|
7089
|
-
var
|
|
7089
|
+
var q = ee(), G = Y(q);
|
|
7090
7090
|
{
|
|
7091
|
-
var
|
|
7091
|
+
var W = (ae) => {
|
|
7092
7092
|
var J = bd(), re = P(J);
|
|
7093
|
-
A(() => j(re, "src", d(m))), b(
|
|
7093
|
+
A(() => j(re, "src", d(m))), b(ae, J);
|
|
7094
7094
|
};
|
|
7095
7095
|
N(
|
|
7096
|
-
|
|
7097
|
-
(
|
|
7096
|
+
G,
|
|
7097
|
+
(ae) => {
|
|
7098
7098
|
var J;
|
|
7099
|
-
((J = r.paywallData.components_config.base.background) == null ? void 0 : J.type) === "image" &&
|
|
7099
|
+
((J = r.paywallData.components_config.base.background) == null ? void 0 : J.type) === "image" && ae(W);
|
|
7100
7100
|
},
|
|
7101
7101
|
!0
|
|
7102
7102
|
);
|
|
7103
7103
|
}
|
|
7104
|
-
b(w,
|
|
7104
|
+
b(w, q);
|
|
7105
7105
|
};
|
|
7106
|
-
N(
|
|
7107
|
-
var
|
|
7108
|
-
((
|
|
7106
|
+
N(z, (w) => {
|
|
7107
|
+
var q;
|
|
7108
|
+
((q = r.paywallData.components_config.base.background) == null ? void 0 : q.type) === "color" ? w(C) : w(k, !1);
|
|
7109
7109
|
});
|
|
7110
7110
|
}
|
|
7111
7111
|
b(v, y);
|
|
@@ -7126,7 +7126,7 @@ function Ei(e, r) {
|
|
|
7126
7126
|
var t = xd();
|
|
7127
7127
|
t.__click = [wd, r];
|
|
7128
7128
|
var a = P(t);
|
|
7129
|
-
|
|
7129
|
+
ge(a, () => r.children ?? ne), A(() => {
|
|
7130
7130
|
Fr(t, li(r.class), "svelte-1wpam0z"), t.disabled = !r.onclick, j(t, "style", r.style);
|
|
7131
7131
|
}), b(e, t), H();
|
|
7132
7132
|
}
|
|
@@ -7231,7 +7231,7 @@ function Fd(e, r) {
|
|
|
7231
7231
|
V(r, !0), R(e, qd);
|
|
7232
7232
|
const t = U(r, "size", 3, "body-base");
|
|
7233
7233
|
var a = Id(), n = P(a);
|
|
7234
|
-
|
|
7234
|
+
ge(n, () => r.children ?? ne), A(() => Fr(a, `rcb-typography rcb-typography-${t() ?? ""} svelte-byrjto`)), b(e, a), H();
|
|
7235
7235
|
}
|
|
7236
7236
|
const zd = {
|
|
7237
7237
|
error: "#B0171F",
|
|
@@ -7311,7 +7311,7 @@ const zd = {
|
|
|
7311
7311
|
tight: "0.20%",
|
|
7312
7312
|
regular: "0",
|
|
7313
7313
|
loose: "0.20%"
|
|
7314
|
-
},
|
|
7314
|
+
}, fe = {
|
|
7315
7315
|
heading2xl: {
|
|
7316
7316
|
fontSize: Le[28],
|
|
7317
7317
|
lineHeight: rr[120],
|
|
@@ -7374,79 +7374,79 @@ const zd = {
|
|
|
7374
7374
|
}
|
|
7375
7375
|
}, ar = {
|
|
7376
7376
|
heading2xl: {
|
|
7377
|
-
...
|
|
7377
|
+
...fe.heading2xl,
|
|
7378
7378
|
fontSize: Le[36]
|
|
7379
7379
|
},
|
|
7380
7380
|
headingXl: {
|
|
7381
|
-
...
|
|
7381
|
+
...fe.headingXl,
|
|
7382
7382
|
fontSize: Le[32]
|
|
7383
7383
|
},
|
|
7384
7384
|
headingLg: {
|
|
7385
|
-
...
|
|
7385
|
+
...fe.headingLg,
|
|
7386
7386
|
fontSize: Le[24]
|
|
7387
7387
|
},
|
|
7388
7388
|
headingMd: {
|
|
7389
|
-
...
|
|
7389
|
+
...fe.headingMd,
|
|
7390
7390
|
fontSize: Le[18]
|
|
7391
7391
|
},
|
|
7392
7392
|
bodyBase: {
|
|
7393
|
-
...
|
|
7393
|
+
...fe.bodyBase
|
|
7394
7394
|
},
|
|
7395
7395
|
bodySmall: {
|
|
7396
|
-
...
|
|
7396
|
+
...fe.bodySmall
|
|
7397
7397
|
},
|
|
7398
7398
|
labelButton: {
|
|
7399
|
-
...
|
|
7399
|
+
...fe.labelButton
|
|
7400
7400
|
},
|
|
7401
7401
|
labelDefault: {
|
|
7402
|
-
...
|
|
7402
|
+
...fe.labelDefault
|
|
7403
7403
|
},
|
|
7404
7404
|
captionDefault: {
|
|
7405
|
-
...
|
|
7405
|
+
...fe.captionDefault
|
|
7406
7406
|
},
|
|
7407
7407
|
captionLink: {
|
|
7408
|
-
...
|
|
7408
|
+
...fe.captionLink
|
|
7409
7409
|
}
|
|
7410
7410
|
}, Cd = {
|
|
7411
7411
|
heading2xl: {
|
|
7412
|
-
mobile:
|
|
7412
|
+
mobile: fe.heading2xl,
|
|
7413
7413
|
desktop: ar.heading2xl
|
|
7414
7414
|
},
|
|
7415
7415
|
headingXl: {
|
|
7416
7416
|
desktop: ar.headingXl,
|
|
7417
|
-
mobile:
|
|
7417
|
+
mobile: fe.headingXl
|
|
7418
7418
|
},
|
|
7419
7419
|
headingLg: {
|
|
7420
7420
|
desktop: ar.headingLg,
|
|
7421
|
-
mobile:
|
|
7421
|
+
mobile: fe.headingLg
|
|
7422
7422
|
},
|
|
7423
7423
|
headingMd: {
|
|
7424
7424
|
desktop: ar.headingMd,
|
|
7425
|
-
mobile:
|
|
7425
|
+
mobile: fe.headingMd
|
|
7426
7426
|
},
|
|
7427
7427
|
bodyBase: {
|
|
7428
7428
|
desktop: ar.bodyBase,
|
|
7429
|
-
mobile:
|
|
7429
|
+
mobile: fe.bodyBase
|
|
7430
7430
|
},
|
|
7431
7431
|
bodySmall: {
|
|
7432
7432
|
desktop: ar.bodySmall,
|
|
7433
|
-
mobile:
|
|
7433
|
+
mobile: fe.bodySmall
|
|
7434
7434
|
},
|
|
7435
7435
|
labelButton: {
|
|
7436
7436
|
desktop: ar.labelButton,
|
|
7437
|
-
mobile:
|
|
7437
|
+
mobile: fe.labelButton
|
|
7438
7438
|
},
|
|
7439
7439
|
labelDefault: {
|
|
7440
7440
|
desktop: ar.labelDefault,
|
|
7441
|
-
mobile:
|
|
7441
|
+
mobile: fe.labelDefault
|
|
7442
7442
|
},
|
|
7443
7443
|
captionDefault: {
|
|
7444
7444
|
desktop: ar.captionDefault,
|
|
7445
|
-
mobile:
|
|
7445
|
+
mobile: fe.captionDefault
|
|
7446
7446
|
},
|
|
7447
7447
|
captionLink: {
|
|
7448
7448
|
desktop: ar.captionLink,
|
|
7449
|
-
mobile:
|
|
7449
|
+
mobile: fe.captionLink
|
|
7450
7450
|
}
|
|
7451
7451
|
}, Et = (e) => e.length == 7 ? {
|
|
7452
7452
|
r: parseInt(e.slice(1, 3), 16),
|
|
@@ -7648,7 +7648,7 @@ function zi(e, r) {
|
|
|
7648
7648
|
Fd(f, {
|
|
7649
7649
|
size: "body-base",
|
|
7650
7650
|
children: (h, v) => {
|
|
7651
|
-
var y = ee(), x =
|
|
7651
|
+
var y = ee(), x = Y(y);
|
|
7652
7652
|
Al(x, r, "default", {}), b(h, y);
|
|
7653
7653
|
},
|
|
7654
7654
|
$$slots: { default: !0 }
|
|
@@ -7711,13 +7711,13 @@ function cu(e, r) {
|
|
|
7711
7711
|
...t,
|
|
7712
7712
|
imageAspectRatio: d(a)
|
|
7713
7713
|
})), s = /* @__PURE__ */ E(() => d(i).imageStyles), l = /* @__PURE__ */ E(() => d(i).maskPath), c = /* @__PURE__ */ E(() => d(i).linearGradientAngle), p = /* @__PURE__ */ E(() => {
|
|
7714
|
-
var w,
|
|
7714
|
+
var w, q;
|
|
7715
7715
|
const k = r.purchaseState.colorMode;
|
|
7716
|
-
return (w = r.source[k]) != null && w.original ? r.source[k].original : (
|
|
7716
|
+
return (w = r.source[k]) != null && w.original ? r.source[k].original : (q = r.source[Re]) == null ? void 0 : q.original;
|
|
7717
7717
|
});
|
|
7718
|
-
var u = su(), _ =
|
|
7718
|
+
var u = su(), _ = Y(u);
|
|
7719
7719
|
_i(_, (k) => n = k, () => n);
|
|
7720
|
-
var g =
|
|
7720
|
+
var g = O(_, 2), m = P(g), f = P(m), h = P(f);
|
|
7721
7721
|
{
|
|
7722
7722
|
var v = (k) => {
|
|
7723
7723
|
var w = eu();
|
|
@@ -7733,61 +7733,61 @@ function cu(e, r) {
|
|
|
7733
7733
|
((w = r.mask_shape) == null ? void 0 : w.type) === "circle" ? k(v) : k(y, !1);
|
|
7734
7734
|
});
|
|
7735
7735
|
}
|
|
7736
|
-
var x =
|
|
7736
|
+
var x = O(f);
|
|
7737
7737
|
{
|
|
7738
7738
|
var T = (k) => {
|
|
7739
7739
|
var w = au();
|
|
7740
7740
|
it(w, 21, () => {
|
|
7741
|
-
var
|
|
7742
|
-
return ((
|
|
7743
|
-
}, ot, (
|
|
7744
|
-
var
|
|
7741
|
+
var q, G, W, ae;
|
|
7742
|
+
return ((G = (q = r.color_overlay) == null ? void 0 : q[r.purchaseState.colorMode]) == null ? void 0 : G.points) || ((ae = (W = r.color_overlay) == null ? void 0 : W[Re]) == null ? void 0 : ae.points) || [];
|
|
7743
|
+
}, ot, (q, G) => {
|
|
7744
|
+
var W = tu();
|
|
7745
7745
|
A(() => {
|
|
7746
|
-
j(
|
|
7747
|
-
}), b(
|
|
7746
|
+
j(W, "offset", `${d(G).percent}%`), j(W, "style", `stop-color: ${d(G).color}`);
|
|
7747
|
+
}), b(q, W);
|
|
7748
7748
|
}), A(() => {
|
|
7749
7749
|
j(w, "id", `gradient-${r.id}`), j(w, "x1", d(c).x1), j(w, "y1", d(c).y1), j(w, "x2", d(c).x2), j(w, "y2", d(c).y2);
|
|
7750
7750
|
}), b(k, w);
|
|
7751
7751
|
}, S = (k) => {
|
|
7752
|
-
var w = ee(),
|
|
7752
|
+
var w = ee(), q = Y(w);
|
|
7753
7753
|
{
|
|
7754
|
-
var
|
|
7754
|
+
var G = (ae) => {
|
|
7755
7755
|
var J = ou();
|
|
7756
7756
|
it(J, 21, () => {
|
|
7757
|
-
var re, pe,
|
|
7758
|
-
return ((pe = (re = r.color_overlay) == null ? void 0 : re[r.purchaseState.colorMode]) == null ? void 0 : pe.points) || ((ce = (
|
|
7757
|
+
var re, pe, me, ce;
|
|
7758
|
+
return ((pe = (re = r.color_overlay) == null ? void 0 : re[r.purchaseState.colorMode]) == null ? void 0 : pe.points) || ((ce = (me = r.color_overlay) == null ? void 0 : me[Re]) == null ? void 0 : ce.points) || [];
|
|
7759
7759
|
}, ot, (re, pe) => {
|
|
7760
|
-
var
|
|
7760
|
+
var me = nu();
|
|
7761
7761
|
A(() => {
|
|
7762
|
-
j(
|
|
7763
|
-
}), b(re,
|
|
7764
|
-
}), A(() => j(J, "id", `gradient-${r.id}`)), b(
|
|
7765
|
-
},
|
|
7766
|
-
var J = ee(), re =
|
|
7762
|
+
j(me, "offset", `${d(pe).percent}%`), j(me, "style", `stop-color: ${d(pe).color}`);
|
|
7763
|
+
}), b(re, me);
|
|
7764
|
+
}), A(() => j(J, "id", `gradient-${r.id}`)), b(ae, J);
|
|
7765
|
+
}, W = (ae) => {
|
|
7766
|
+
var J = ee(), re = Y(J);
|
|
7767
7767
|
{
|
|
7768
|
-
var pe = (
|
|
7769
|
-
var ce = iu(),
|
|
7768
|
+
var pe = (me) => {
|
|
7769
|
+
var ce = iu(), ke = P(ce);
|
|
7770
7770
|
A(() => {
|
|
7771
|
-
var
|
|
7772
|
-
j(ce, "id", `gradient-${r.id}`), j(
|
|
7773
|
-
}), b(
|
|
7771
|
+
var Pe, vr, _r;
|
|
7772
|
+
j(ce, "id", `gradient-${r.id}`), j(ke, "style", `stop-color: ${((Pe = r.color_overlay[r.purchaseState.colorMode]) == null ? void 0 : Pe.value) || ((_r = (vr = r.color_overlay) == null ? void 0 : vr[Re]) == null ? void 0 : _r.value)}`);
|
|
7773
|
+
}), b(me, ce);
|
|
7774
7774
|
};
|
|
7775
7775
|
N(
|
|
7776
7776
|
re,
|
|
7777
|
-
(
|
|
7778
|
-
var ce,
|
|
7779
|
-
((
|
|
7777
|
+
(me) => {
|
|
7778
|
+
var ce, ke;
|
|
7779
|
+
((ke = (ce = r.color_overlay) == null ? void 0 : ce[r.purchaseState.colorMode]) == null ? void 0 : ke.type) === "hex" && me(pe);
|
|
7780
7780
|
},
|
|
7781
7781
|
!0
|
|
7782
7782
|
);
|
|
7783
7783
|
}
|
|
7784
|
-
b(
|
|
7784
|
+
b(ae, J);
|
|
7785
7785
|
};
|
|
7786
7786
|
N(
|
|
7787
|
-
|
|
7788
|
-
(
|
|
7787
|
+
q,
|
|
7788
|
+
(ae) => {
|
|
7789
7789
|
var J, re;
|
|
7790
|
-
((re = (J = r.color_overlay) == null ? void 0 : J[r.purchaseState.colorMode]) == null ? void 0 : re.type) === "radial" ?
|
|
7790
|
+
((re = (J = r.color_overlay) == null ? void 0 : J[r.purchaseState.colorMode]) == null ? void 0 : re.type) === "radial" ? ae(G) : ae(W, !1);
|
|
7791
7791
|
},
|
|
7792
7792
|
!0
|
|
7793
7793
|
);
|
|
@@ -7795,13 +7795,13 @@ function cu(e, r) {
|
|
|
7795
7795
|
b(k, w);
|
|
7796
7796
|
};
|
|
7797
7797
|
N(x, (k) => {
|
|
7798
|
-
var w,
|
|
7799
|
-
((
|
|
7798
|
+
var w, q;
|
|
7799
|
+
((q = (w = r.color_overlay) == null ? void 0 : w[r.purchaseState.colorMode]) == null ? void 0 : q.type) === "linear" ? k(T) : k(S, !1);
|
|
7800
7800
|
});
|
|
7801
7801
|
}
|
|
7802
|
-
var
|
|
7802
|
+
var z = O(m), C = O(z);
|
|
7803
7803
|
A(() => {
|
|
7804
|
-
j(_, "src", d(p)), j(g, "id", `rc-pw-image-container-${r.id}`), j(g, "style", d(s)), j(g, "viewBox", `0 0 100 ${d(a) * 100}`), j(f, "id", `clip-path-${r.id}`), j(
|
|
7804
|
+
j(_, "src", d(p)), j(g, "id", `rc-pw-image-container-${r.id}`), j(g, "style", d(s)), j(g, "viewBox", `0 0 100 ${d(a) * 100}`), j(f, "id", `clip-path-${r.id}`), j(z, "href", d(p)), j(z, "height", d(a) * 100), j(z, "clip-path", `url(#clip-path-${r.id})`), j(z, "id", r.id), j(C, "height", d(a) * 100), j(C, "clip-path", `url(#clip-path-${r.id})`), j(C, "fill", `url(#gradient-${r.id})`);
|
|
7805
7805
|
}), nt("load", _, o), b(e, u), H();
|
|
7806
7806
|
}
|
|
7807
7807
|
function du({ stack: e, zStackChildStyles: r }) {
|
|
@@ -8014,7 +8014,7 @@ const vu = {
|
|
|
8014
8014
|
function ku(e, r) {
|
|
8015
8015
|
V(r, !0), R(e, vu);
|
|
8016
8016
|
const t = /* @__PURE__ */ Ar(r, ["$$slots", "$$events", "$$legacy"]), a = /* @__PURE__ */ E(() => bu(t)), n = /* @__PURE__ */ E(() => bo(t, "title")), o = /* @__PURE__ */ E(() => d(n).tagToRender), i = /* @__PURE__ */ E(() => d(n).textStyles), s = /* @__PURE__ */ E(() => d(n).textLabel), l = /* @__PURE__ */ E(() => bo(t, "description")), c = /* @__PURE__ */ E(() => d(l).tagToRender), p = /* @__PURE__ */ E(() => d(l).textStyles), u = /* @__PURE__ */ E(() => d(l).textLabel);
|
|
8017
|
-
var _ = hu(), g =
|
|
8017
|
+
var _ = hu(), g = O(P(_), 2), m = P(g);
|
|
8018
8018
|
ea(m, () => d(o), !1, (v, y) => {
|
|
8019
8019
|
let x;
|
|
8020
8020
|
A(() => x = ra(
|
|
@@ -8031,15 +8031,15 @@ function ku(e, r) {
|
|
|
8031
8031
|
var T = ie();
|
|
8032
8032
|
A(() => te(T, d(s))), b(y, T);
|
|
8033
8033
|
});
|
|
8034
|
-
var f =
|
|
8034
|
+
var f = O(m, 2);
|
|
8035
8035
|
{
|
|
8036
8036
|
var h = (v) => {
|
|
8037
|
-
var y = ee(), x =
|
|
8037
|
+
var y = ee(), x = Y(y);
|
|
8038
8038
|
ea(x, () => d(c), !1, (T, S) => {
|
|
8039
|
-
let
|
|
8040
|
-
A(() =>
|
|
8039
|
+
let z;
|
|
8040
|
+
A(() => z = ra(
|
|
8041
8041
|
T,
|
|
8042
|
-
|
|
8042
|
+
z,
|
|
8043
8043
|
{
|
|
8044
8044
|
class: "rc-pw-timeline-item-content-description",
|
|
8045
8045
|
style: d(p)
|
|
@@ -8048,8 +8048,8 @@ function ku(e, r) {
|
|
|
8048
8048
|
T.namespaceURI === xt,
|
|
8049
8049
|
T.nodeName.includes("-")
|
|
8050
8050
|
));
|
|
8051
|
-
var
|
|
8052
|
-
A(() => te(
|
|
8051
|
+
var C = ie();
|
|
8052
|
+
A(() => te(C, d(u))), b(S, C);
|
|
8053
8053
|
}), b(v, y);
|
|
8054
8054
|
};
|
|
8055
8055
|
N(f, (v) => {
|
|
@@ -8066,7 +8066,7 @@ const xu = {
|
|
|
8066
8066
|
function Pu(e, r) {
|
|
8067
8067
|
V(r, !0), R(e, xu);
|
|
8068
8068
|
const t = /* @__PURE__ */ Ar(r, ["$$slots", "$$events", "$$legacy", "items"]), a = /* @__PURE__ */ E(() => yu({ items: r.items, ...t }));
|
|
8069
|
-
var n = ee(), o =
|
|
8069
|
+
var n = ee(), o = Y(n);
|
|
8070
8070
|
{
|
|
8071
8071
|
var i = (s) => {
|
|
8072
8072
|
var l = wu();
|
|
@@ -8111,7 +8111,7 @@ function Tu(e, r) {
|
|
|
8111
8111
|
let t = U(r, "children", 8);
|
|
8112
8112
|
Qe();
|
|
8113
8113
|
var a = Su(), n = P(a);
|
|
8114
|
-
|
|
8114
|
+
ge(n, () => t() ?? ne), b(e, a), H();
|
|
8115
8115
|
}
|
|
8116
8116
|
const Iu = {
|
|
8117
8117
|
hash: "svelte-1bzqb13",
|
|
@@ -8121,11 +8121,11 @@ function qu(e, r) {
|
|
|
8121
8121
|
V(r, !1), R(e, Iu);
|
|
8122
8122
|
let t = U(r, "as", 8, "section"), a = U(r, "children", 8);
|
|
8123
8123
|
Qe();
|
|
8124
|
-
var n = ee(), o =
|
|
8124
|
+
var n = ee(), o = Y(n);
|
|
8125
8125
|
ea(o, t, !1, (i, s) => {
|
|
8126
8126
|
ra(i, null, { class: "rcb-modal-section" }, "svelte-1bzqb13", i.namespaceURI === xt, i.nodeName.includes("-"));
|
|
8127
|
-
var l = ee(), c =
|
|
8128
|
-
|
|
8127
|
+
var l = ee(), c = Y(l);
|
|
8128
|
+
ge(c, () => a() ?? ne), b(s, l);
|
|
8129
8129
|
}), b(e, n), H();
|
|
8130
8130
|
}
|
|
8131
8131
|
var Fu = /* @__PURE__ */ I("<div><!></div>");
|
|
@@ -8141,7 +8141,7 @@ function Di(e, r) {
|
|
|
8141
8141
|
let t = U(r, "gap", 8, "small"), a = U(r, "align", 8, "start"), n = U(r, "children", 8);
|
|
8142
8142
|
Qe();
|
|
8143
8143
|
var o = Fu(), i = P(o);
|
|
8144
|
-
|
|
8144
|
+
ge(i, () => n() ?? ne), A(() => Fr(o, `rcb-column gap-${t() ?? ""} align-${a() ?? ""} svelte-b5dygi`)), b(e, o), H();
|
|
8145
8145
|
}
|
|
8146
8146
|
var Du = /* @__PURE__ */ I('<div class="rcb-row svelte-1seeuxq"><!></div>');
|
|
8147
8147
|
const Au = {
|
|
@@ -8153,7 +8153,7 @@ function Mu(e, r) {
|
|
|
8153
8153
|
let t = U(r, "children", 8);
|
|
8154
8154
|
Qe();
|
|
8155
8155
|
var a = Du(), n = P(a);
|
|
8156
|
-
|
|
8156
|
+
ge(n, () => t() ?? ne), b(e, a), H();
|
|
8157
8157
|
}
|
|
8158
8158
|
var ju = /* @__PURE__ */ I("<span><!></span>");
|
|
8159
8159
|
const Nu = {
|
|
@@ -8207,7 +8207,7 @@ function se(e, r) {
|
|
|
8207
8207
|
V(r, !0), R(e, Nu);
|
|
8208
8208
|
const t = U(r, "size", 3, "body-base"), a = U(r, "branded", 3, !1);
|
|
8209
8209
|
var n = ju(), o = P(n);
|
|
8210
|
-
|
|
8210
|
+
ge(o, () => r.children ?? ne), A(() => Fr(n, `rcb-typography rcb-typography-${t() ?? ""} ${(a() ? "rcb-typography-branded" : "") ?? ""} svelte-orw2sj`)), b(e, n), H();
|
|
8211
8211
|
}
|
|
8212
8212
|
var Cu = /* @__PURE__ */ I("<div><!></div>"), Ou = /* @__PURE__ */ I('<span style="display: block;"><!></span>'), Lu = /* @__PURE__ */ I("<!> <!>", 1), Bu = /* @__PURE__ */ I("<!> <!>", 1), Ru = /* @__PURE__ */ I('<div class="rcb-modal-message svelte-w46z5s" data-type="error"><!></div>');
|
|
8213
8213
|
const Uu = {
|
|
@@ -8232,48 +8232,48 @@ function Vu(e, r) {
|
|
|
8232
8232
|
gap: "medium",
|
|
8233
8233
|
align: "start",
|
|
8234
8234
|
children: (p, u) => {
|
|
8235
|
-
var _ = Bu(), g =
|
|
8235
|
+
var _ = Bu(), g = Y(_);
|
|
8236
8236
|
Mu(g, {
|
|
8237
8237
|
children: (h, v) => {
|
|
8238
|
-
var y = Lu(), x =
|
|
8238
|
+
var y = Lu(), x = Y(y);
|
|
8239
8239
|
{
|
|
8240
|
-
var T = (
|
|
8240
|
+
var T = (C) => {
|
|
8241
8241
|
var k = Cu(), w = P(k);
|
|
8242
|
-
|
|
8242
|
+
ge(w, a), A(() => Fr(k, `rcb-modal-message-icon ${(d(i) ? "large" : "small") ?? ""} svelte-w46z5s`)), b(C, k);
|
|
8243
8243
|
};
|
|
8244
|
-
N(x, (
|
|
8245
|
-
a() &&
|
|
8244
|
+
N(x, (C) => {
|
|
8245
|
+
a() && C(T);
|
|
8246
8246
|
});
|
|
8247
8247
|
}
|
|
8248
|
-
var S =
|
|
8248
|
+
var S = O(x, 2);
|
|
8249
8249
|
{
|
|
8250
|
-
var
|
|
8250
|
+
var z = (C) => {
|
|
8251
8251
|
var k = Ou(), w = P(k);
|
|
8252
8252
|
se(w, {
|
|
8253
8253
|
size: "heading-md",
|
|
8254
|
-
children: (
|
|
8255
|
-
var
|
|
8256
|
-
A(() => te(
|
|
8254
|
+
children: (q, G) => {
|
|
8255
|
+
var W = ie();
|
|
8256
|
+
A(() => te(W, t())), b(q, W);
|
|
8257
8257
|
},
|
|
8258
8258
|
$$slots: { default: !0 }
|
|
8259
|
-
}), _i(k, (
|
|
8259
|
+
}), _i(k, (q) => D(o, q), () => d(o)), b(C, k);
|
|
8260
8260
|
};
|
|
8261
|
-
N(S, (
|
|
8262
|
-
t() &&
|
|
8261
|
+
N(S, (C) => {
|
|
8262
|
+
t() && C(z);
|
|
8263
8263
|
});
|
|
8264
8264
|
}
|
|
8265
8265
|
b(h, y);
|
|
8266
8266
|
},
|
|
8267
8267
|
$$slots: { default: !0 }
|
|
8268
8268
|
});
|
|
8269
|
-
var m =
|
|
8269
|
+
var m = O(g, 2);
|
|
8270
8270
|
{
|
|
8271
8271
|
var f = (h) => {
|
|
8272
8272
|
se(h, {
|
|
8273
8273
|
size: "body-small",
|
|
8274
8274
|
children: (v, y) => {
|
|
8275
|
-
var x = ee(), T =
|
|
8276
|
-
|
|
8275
|
+
var x = ee(), T = Y(x);
|
|
8276
|
+
ge(T, () => r.message ?? ne), b(v, x);
|
|
8277
8277
|
},
|
|
8278
8278
|
$$slots: { default: !0 }
|
|
8279
8279
|
});
|
|
@@ -8303,17 +8303,17 @@ function Xu(e, r) {
|
|
|
8303
8303
|
gap: "large",
|
|
8304
8304
|
align: "center",
|
|
8305
8305
|
children: (i, s) => {
|
|
8306
|
-
var l = Wu(), c =
|
|
8306
|
+
var l = Wu(), c = Y(l);
|
|
8307
8307
|
{
|
|
8308
8308
|
var p = (g) => {
|
|
8309
8309
|
var m = Hu(), f = P(m);
|
|
8310
|
-
|
|
8310
|
+
ge(f, a), b(g, m);
|
|
8311
8311
|
};
|
|
8312
8312
|
N(c, (g) => {
|
|
8313
8313
|
a() && g(p);
|
|
8314
8314
|
});
|
|
8315
8315
|
}
|
|
8316
|
-
var u =
|
|
8316
|
+
var u = O(c, 2);
|
|
8317
8317
|
{
|
|
8318
8318
|
var _ = (g) => {
|
|
8319
8319
|
se(g, {
|
|
@@ -8356,7 +8356,7 @@ function Sn(e, r) {
|
|
|
8356
8356
|
var l = Zu(), c = P(l), p = P(c);
|
|
8357
8357
|
qu(p, {
|
|
8358
8358
|
children: (g, m) => {
|
|
8359
|
-
var f = ee(), h =
|
|
8359
|
+
var f = ee(), h = Y(f);
|
|
8360
8360
|
{
|
|
8361
8361
|
var v = (x) => {
|
|
8362
8362
|
Xu(x, {
|
|
@@ -8388,7 +8388,7 @@ function Sn(e, r) {
|
|
|
8388
8388
|
},
|
|
8389
8389
|
$$slots: { default: !0 }
|
|
8390
8390
|
});
|
|
8391
|
-
var u =
|
|
8391
|
+
var u = O(c, 2), _ = P(u);
|
|
8392
8392
|
Tu(_, {
|
|
8393
8393
|
children: (g, m) => {
|
|
8394
8394
|
zi(g, {
|
|
@@ -8408,14 +8408,14 @@ function Sn(e, r) {
|
|
|
8408
8408
|
function ur(e, r) {
|
|
8409
8409
|
V(r, !0);
|
|
8410
8410
|
const t = De(), a = () => ze(o, "$translator", t), n = U(r, "key", 3, ""), o = Ee(Ne), i = /* @__PURE__ */ E(() => n() ? a().translate(n() || "", r.variables) : void 0);
|
|
8411
|
-
var s = ee(), l =
|
|
8411
|
+
var s = ee(), l = Y(s);
|
|
8412
8412
|
{
|
|
8413
8413
|
var c = (u) => {
|
|
8414
8414
|
var _ = ie();
|
|
8415
8415
|
A(() => te(_, d(i))), b(u, _);
|
|
8416
8416
|
}, p = (u) => {
|
|
8417
|
-
var _ = ee(), g =
|
|
8418
|
-
|
|
8417
|
+
var _ = ee(), g = Y(_);
|
|
8418
|
+
ge(g, () => r.children ?? ne), b(u, _);
|
|
8419
8419
|
};
|
|
8420
8420
|
N(l, (u) => {
|
|
8421
8421
|
d(i) ? u(c) : u(p, !1);
|
|
@@ -8437,18 +8437,18 @@ function rp(e, r) {
|
|
|
8437
8437
|
let i = U(r, "brandingInfo", 8, null), s = U(r, "subscriptionOption", 8, null);
|
|
8438
8438
|
const l = Ee(Ne);
|
|
8439
8439
|
Kn(
|
|
8440
|
-
() => (Va(i()), a(),
|
|
8440
|
+
() => (Va(i()), a(), L),
|
|
8441
8441
|
() => {
|
|
8442
8442
|
var h;
|
|
8443
|
-
D(n, i() ? a().translate(
|
|
8443
|
+
D(n, i() ? a().translate(L.PaymentEntryPageTermsInfo, { appName: (h = i()) == null ? void 0 : h.app_name }) : null);
|
|
8444
8444
|
}
|
|
8445
8445
|
), Kn(
|
|
8446
8446
|
() => (Va(s()), a(), Xa),
|
|
8447
8447
|
() => {
|
|
8448
|
-
var h, v, y, x, T, S,
|
|
8449
|
-
D(o, (v = (h = s()) == null ? void 0 : h.base) != null && v.price && ((x = (y = s()) == null ? void 0 : y.trial) != null && x.period) && ((S = (T = s()) == null ? void 0 : T.base) != null && S.period) && ((k = (
|
|
8450
|
-
price: Ir((
|
|
8451
|
-
perFrequency: a().translatePeriodFrequency(((re = (J = (
|
|
8448
|
+
var h, v, y, x, T, S, z, C, k, w, q, G, W, ae, J, re, pe, me, ce;
|
|
8449
|
+
D(o, (v = (h = s()) == null ? void 0 : h.base) != null && v.price && ((x = (y = s()) == null ? void 0 : y.trial) != null && x.period) && ((S = (T = s()) == null ? void 0 : T.base) != null && S.period) && ((k = (C = (z = s()) == null ? void 0 : z.base) == null ? void 0 : C.period) != null && k.unit) ? a().translate(L.PaymentEntryPageTrialInfo, {
|
|
8450
|
+
price: Ir((q = (w = s()) == null ? void 0 : w.base) == null ? void 0 : q.price.amountMicros, (W = (G = s()) == null ? void 0 : G.base) == null ? void 0 : W.price.currency, a().locale || a().fallbackLocale),
|
|
8451
|
+
perFrequency: a().translatePeriodFrequency(((re = (J = (ae = s()) == null ? void 0 : ae.base) == null ? void 0 : J.period) == null ? void 0 : re.number) || 1, (ce = (me = (pe = s()) == null ? void 0 : pe.base) == null ? void 0 : me.period) == null ? void 0 : ce.unit, { useMultipleWords: !0 }),
|
|
8452
8452
|
renewalDate: a().translateDate(Xa(/* @__PURE__ */ new Date(), s().trial.period || s().base.period, !0), {
|
|
8453
8453
|
year: "numeric",
|
|
8454
8454
|
month: "long",
|
|
@@ -8474,7 +8474,7 @@ function rp(e, r) {
|
|
|
8474
8474
|
d(n) && s() && h(u);
|
|
8475
8475
|
});
|
|
8476
8476
|
}
|
|
8477
|
-
var _ =
|
|
8477
|
+
var _ = O(p, 2);
|
|
8478
8478
|
{
|
|
8479
8479
|
var g = (h) => {
|
|
8480
8480
|
var v = Qu(), y = P(v);
|
|
@@ -8491,13 +8491,13 @@ function rp(e, r) {
|
|
|
8491
8491
|
d(o) && h(g);
|
|
8492
8492
|
});
|
|
8493
8493
|
}
|
|
8494
|
-
var m =
|
|
8494
|
+
var m = O(_, 2), f = P(m);
|
|
8495
8495
|
se(f, {
|
|
8496
8496
|
size: "caption-default",
|
|
8497
8497
|
children: (h, v) => {
|
|
8498
8498
|
ur(h, {
|
|
8499
8499
|
get key() {
|
|
8500
|
-
return
|
|
8500
|
+
return L.PaymentEntryPagePaymentStepTitle;
|
|
8501
8501
|
}
|
|
8502
8502
|
});
|
|
8503
8503
|
},
|
|
@@ -8698,42 +8698,42 @@ function yp(e, r) {
|
|
|
8698
8698
|
testId: "PayButton",
|
|
8699
8699
|
brandingAppearance: o,
|
|
8700
8700
|
children: (u, _) => {
|
|
8701
|
-
var g = ee(), m =
|
|
8701
|
+
var g = ee(), m = Y(g);
|
|
8702
8702
|
{
|
|
8703
8703
|
var f = (v) => {
|
|
8704
8704
|
var y = /* @__PURE__ */ E(() => ({ trialPeriodLabel: d(l) }));
|
|
8705
8705
|
ur(v, {
|
|
8706
8706
|
get key() {
|
|
8707
|
-
return
|
|
8707
|
+
return L.PaymentEntryPageButtonStartTrial;
|
|
8708
8708
|
},
|
|
8709
8709
|
get variables() {
|
|
8710
8710
|
return d(y);
|
|
8711
8711
|
}
|
|
8712
8712
|
});
|
|
8713
8713
|
}, h = (v) => {
|
|
8714
|
-
var y = ee(), x =
|
|
8714
|
+
var y = ee(), x = Y(y);
|
|
8715
8715
|
{
|
|
8716
|
-
var T = (
|
|
8717
|
-
var
|
|
8718
|
-
ur(
|
|
8716
|
+
var T = (z) => {
|
|
8717
|
+
var C = /* @__PURE__ */ E(() => ({ formattedPrice: d(i) }));
|
|
8718
|
+
ur(z, {
|
|
8719
8719
|
get key() {
|
|
8720
|
-
return
|
|
8720
|
+
return L.PaymentEntryPageButtonWithPrice;
|
|
8721
8721
|
},
|
|
8722
8722
|
get variables() {
|
|
8723
|
-
return d(
|
|
8723
|
+
return d(C);
|
|
8724
8724
|
}
|
|
8725
8725
|
});
|
|
8726
|
-
}, S = (
|
|
8727
|
-
ur(
|
|
8726
|
+
}, S = (z) => {
|
|
8727
|
+
ur(z, {
|
|
8728
8728
|
get key() {
|
|
8729
|
-
return
|
|
8729
|
+
return L.PaymentEntryPageButtonPay;
|
|
8730
8730
|
}
|
|
8731
8731
|
});
|
|
8732
8732
|
};
|
|
8733
8733
|
N(
|
|
8734
8734
|
x,
|
|
8735
|
-
(
|
|
8736
|
-
d(i) ?
|
|
8735
|
+
(z) => {
|
|
8736
|
+
d(i) ? z(T) : z(S, !1);
|
|
8737
8737
|
},
|
|
8738
8738
|
!0
|
|
8739
8739
|
);
|
|
@@ -8828,7 +8828,7 @@ const bp = {
|
|
|
8828
8828
|
tight: "0.20%",
|
|
8829
8829
|
regular: "0",
|
|
8830
8830
|
loose: "0.20%"
|
|
8831
|
-
},
|
|
8831
|
+
}, ye = {
|
|
8832
8832
|
heading2xl: {
|
|
8833
8833
|
fontSize: Be[28],
|
|
8834
8834
|
lineHeight: or[130],
|
|
@@ -8891,79 +8891,79 @@ const bp = {
|
|
|
8891
8891
|
}
|
|
8892
8892
|
}, sr = {
|
|
8893
8893
|
heading2xl: {
|
|
8894
|
-
...
|
|
8894
|
+
...ye.heading2xl,
|
|
8895
8895
|
fontSize: Be[36]
|
|
8896
8896
|
},
|
|
8897
8897
|
headingXl: {
|
|
8898
|
-
...
|
|
8898
|
+
...ye.headingXl,
|
|
8899
8899
|
fontSize: Be[32]
|
|
8900
8900
|
},
|
|
8901
8901
|
headingLg: {
|
|
8902
|
-
...
|
|
8902
|
+
...ye.headingLg,
|
|
8903
8903
|
fontSize: Be[24]
|
|
8904
8904
|
},
|
|
8905
8905
|
headingMd: {
|
|
8906
|
-
...
|
|
8906
|
+
...ye.headingMd,
|
|
8907
8907
|
fontSize: Be[18]
|
|
8908
8908
|
},
|
|
8909
8909
|
bodyBase: {
|
|
8910
|
-
...
|
|
8910
|
+
...ye.bodyBase
|
|
8911
8911
|
},
|
|
8912
8912
|
bodySmall: {
|
|
8913
|
-
...
|
|
8913
|
+
...ye.bodySmall
|
|
8914
8914
|
},
|
|
8915
8915
|
labelButton: {
|
|
8916
|
-
...
|
|
8916
|
+
...ye.labelButton
|
|
8917
8917
|
},
|
|
8918
8918
|
labelDefault: {
|
|
8919
|
-
...
|
|
8919
|
+
...ye.labelDefault
|
|
8920
8920
|
},
|
|
8921
8921
|
captionDefault: {
|
|
8922
|
-
...
|
|
8922
|
+
...ye.captionDefault
|
|
8923
8923
|
},
|
|
8924
8924
|
captionLink: {
|
|
8925
|
-
...
|
|
8925
|
+
...ye.captionLink
|
|
8926
8926
|
}
|
|
8927
8927
|
}, en = {
|
|
8928
8928
|
heading2xl: {
|
|
8929
|
-
mobile:
|
|
8929
|
+
mobile: ye.heading2xl,
|
|
8930
8930
|
desktop: sr.heading2xl
|
|
8931
8931
|
},
|
|
8932
8932
|
headingXl: {
|
|
8933
8933
|
desktop: sr.headingXl,
|
|
8934
|
-
mobile:
|
|
8934
|
+
mobile: ye.headingXl
|
|
8935
8935
|
},
|
|
8936
8936
|
headingLg: {
|
|
8937
8937
|
desktop: sr.headingLg,
|
|
8938
|
-
mobile:
|
|
8938
|
+
mobile: ye.headingLg
|
|
8939
8939
|
},
|
|
8940
8940
|
headingMd: {
|
|
8941
8941
|
desktop: sr.headingMd,
|
|
8942
|
-
mobile:
|
|
8942
|
+
mobile: ye.headingMd
|
|
8943
8943
|
},
|
|
8944
8944
|
bodyBase: {
|
|
8945
8945
|
desktop: sr.bodyBase,
|
|
8946
|
-
mobile:
|
|
8946
|
+
mobile: ye.bodyBase
|
|
8947
8947
|
},
|
|
8948
8948
|
bodySmall: {
|
|
8949
8949
|
desktop: sr.bodySmall,
|
|
8950
|
-
mobile:
|
|
8950
|
+
mobile: ye.bodySmall
|
|
8951
8951
|
},
|
|
8952
8952
|
labelButton: {
|
|
8953
8953
|
desktop: sr.labelButton,
|
|
8954
|
-
mobile:
|
|
8954
|
+
mobile: ye.labelButton
|
|
8955
8955
|
},
|
|
8956
8956
|
labelDefault: {
|
|
8957
8957
|
desktop: sr.labelDefault,
|
|
8958
|
-
mobile:
|
|
8958
|
+
mobile: ye.labelDefault
|
|
8959
8959
|
},
|
|
8960
8960
|
captionDefault: {
|
|
8961
8961
|
desktop: sr.captionDefault,
|
|
8962
|
-
mobile:
|
|
8962
|
+
mobile: ye.captionDefault
|
|
8963
8963
|
},
|
|
8964
8964
|
captionLink: {
|
|
8965
8965
|
desktop: sr.captionLink,
|
|
8966
|
-
mobile:
|
|
8966
|
+
mobile: ye.captionLink
|
|
8967
8967
|
}
|
|
8968
8968
|
}, Tt = (e) => e.length == 7 ? {
|
|
8969
8969
|
r: parseInt(e.slice(1, 3), 16),
|
|
@@ -9393,10 +9393,10 @@ const $r = class $r {
|
|
|
9393
9393
|
};
|
|
9394
9394
|
}
|
|
9395
9395
|
static nextDateForPeriod(r, t) {
|
|
9396
|
-
return r.unit ===
|
|
9396
|
+
return r.unit === xe.Year ? (t.setFullYear(t.getFullYear() + r.number), t) : r.unit === xe.Month ? (t.setMonth(t.getMonth() + r.number), t) : r.unit === xe.Week ? (t.setDate(t.getDate() + r.number * 7), t) : (r.unit === xe.Day && t.setDate(t.getDate() + r.number), t);
|
|
9397
9397
|
}
|
|
9398
9398
|
static applePayPeriod(r) {
|
|
9399
|
-
return r.unit ===
|
|
9399
|
+
return r.unit === xe.Week ? {
|
|
9400
9400
|
recurringPaymentIntervalUnit: "day",
|
|
9401
9401
|
recurringPaymentIntervalCount: r.number * 7
|
|
9402
9402
|
} : {
|
|
@@ -9437,7 +9437,7 @@ const $r = class $r {
|
|
|
9437
9437
|
paymentDescription: r.title,
|
|
9438
9438
|
managementURL: o,
|
|
9439
9439
|
trialBilling: s ? {
|
|
9440
|
-
label: n.translate(
|
|
9440
|
+
label: n.translate(L.ApplePayFreeTrial),
|
|
9441
9441
|
amount: 0
|
|
9442
9442
|
} : void 0,
|
|
9443
9443
|
regularBilling: {
|
|
@@ -9457,20 +9457,20 @@ M($r, "FORM_VALIDATED_CARD_ERROR_CODES", [
|
|
|
9457
9457
|
"incorrect_cvc",
|
|
9458
9458
|
"incorrect_number"
|
|
9459
9459
|
]);
|
|
9460
|
-
let
|
|
9460
|
+
let ve = $r;
|
|
9461
9461
|
var jp = /* @__PURE__ */ I("<div></div>");
|
|
9462
9462
|
function Np(e, r) {
|
|
9463
9463
|
V(r, !0);
|
|
9464
9464
|
let t = null;
|
|
9465
9465
|
const a = "payment-element", n = async (i) => {
|
|
9466
|
-
await r.onError(
|
|
9466
|
+
await r.onError(ve.mapInitializationError(i.error));
|
|
9467
9467
|
};
|
|
9468
9468
|
We(() => {
|
|
9469
9469
|
var i;
|
|
9470
9470
|
try {
|
|
9471
|
-
t =
|
|
9471
|
+
t = ve.createPaymentElement(r.elements, (i = r.brandingInfo) == null ? void 0 : i.app_name), t.mount(`#${a}`), t.on("ready", r.onReady), t.on("change", r.onChange), t.on("loaderror", n);
|
|
9472
9472
|
} catch (s) {
|
|
9473
|
-
r.onError(
|
|
9473
|
+
r.onError(ve.mapInitializationError(s));
|
|
9474
9474
|
}
|
|
9475
9475
|
}), Nt(() => {
|
|
9476
9476
|
t == null || t.destroy(), t = null;
|
|
@@ -9483,13 +9483,13 @@ function Op(e, r) {
|
|
|
9483
9483
|
V(r, !0);
|
|
9484
9484
|
let t = null;
|
|
9485
9485
|
const a = "link-authentication-element", n = async (i) => {
|
|
9486
|
-
await r.onError(
|
|
9486
|
+
await r.onError(ve.mapInitializationError(i.error));
|
|
9487
9487
|
};
|
|
9488
9488
|
We(() => {
|
|
9489
9489
|
try {
|
|
9490
|
-
t =
|
|
9490
|
+
t = ve.createLinkAuthenticationElement(r.elements, r.email), t.mount(`#${a}`), t.on("ready", r.onReady), t.on("change", r.onChange), t.on("loaderror", n);
|
|
9491
9491
|
} catch (i) {
|
|
9492
|
-
r.onError(
|
|
9492
|
+
r.onError(ve.mapInitializationError(i));
|
|
9493
9493
|
}
|
|
9494
9494
|
}), Nt(() => {
|
|
9495
9495
|
t == null || t.destroy(), t = null;
|
|
@@ -9508,7 +9508,7 @@ const Bp = {
|
|
|
9508
9508
|
function Rp(e, r) {
|
|
9509
9509
|
R(e, Bp);
|
|
9510
9510
|
let t = U(r, "text", 8);
|
|
9511
|
-
var a = Lp(), n =
|
|
9511
|
+
var a = Lp(), n = O(P(a), 2), o = P(n);
|
|
9512
9512
|
se(o, {
|
|
9513
9513
|
size: "caption-default",
|
|
9514
9514
|
children: (i, s) => {
|
|
@@ -9529,7 +9529,7 @@ function Vp(e, r) {
|
|
|
9529
9529
|
};
|
|
9530
9530
|
f.resolve(h);
|
|
9531
9531
|
}, c = async (f) => {
|
|
9532
|
-
await r.onError(
|
|
9532
|
+
await r.onError(ve.mapInitializationError(f.error));
|
|
9533
9533
|
}, p = async (f) => {
|
|
9534
9534
|
var h;
|
|
9535
9535
|
r.onSubmit(f.expressPaymentType, ((h = f.billingDetails) == null ? void 0 : h.email) ?? "");
|
|
@@ -9538,19 +9538,19 @@ function Vp(e, r) {
|
|
|
9538
9538
|
};
|
|
9539
9539
|
We(() => {
|
|
9540
9540
|
try {
|
|
9541
|
-
o =
|
|
9541
|
+
o = ve.createExpressCheckoutElement(r.elements, r.billingAddressRequired, r.expressCheckoutOptions), o.mount(`#${s}`), o.on("ready", u), o.on("confirm", p), o.on("loaderror", c), o.on("click", l);
|
|
9542
9542
|
} catch (f) {
|
|
9543
|
-
r.onError(
|
|
9543
|
+
r.onError(ve.mapInitializationError(f));
|
|
9544
9544
|
}
|
|
9545
9545
|
}), Nt(() => {
|
|
9546
9546
|
o == null || o.destroy(), o = null;
|
|
9547
9547
|
});
|
|
9548
|
-
var _ = ee(), g =
|
|
9548
|
+
var _ = ee(), g = Y(_);
|
|
9549
9549
|
{
|
|
9550
9550
|
var m = (f) => {
|
|
9551
|
-
var h = Up(), v =
|
|
9551
|
+
var h = Up(), v = Y(h);
|
|
9552
9552
|
j(v, "id", s);
|
|
9553
|
-
var y =
|
|
9553
|
+
var y = O(v, 2), x = /* @__PURE__ */ E(() => a().translate(L.PaymentEntryPageExpressCheckoutDivider));
|
|
9554
9554
|
Rp(y, {
|
|
9555
9555
|
get text() {
|
|
9556
9556
|
return d(x);
|
|
@@ -9575,10 +9575,10 @@ function Yp(e, r) {
|
|
|
9575
9575
|
V(r, !0), R(e, Wp);
|
|
9576
9576
|
const t = De(), a = () => ze(i, "$translator", t);
|
|
9577
9577
|
let n = U(r, "stripe", 15, null), o = U(r, "elements", 15, null);
|
|
9578
|
-
const i = Ee(Ne), s =
|
|
9579
|
-
let l = X(!1), c = X(
|
|
9578
|
+
const i = Ee(Ne), s = ve.getStripeLocale(a().locale || a().fallbackLocale);
|
|
9579
|
+
let l = X(!1), c = X(B(r.skipEmail)), p = X(!1), u = X(void 0), _ = X("mobile"), g = X(void 0);
|
|
9580
9580
|
function m() {
|
|
9581
|
-
window.matchMedia && window.matchMedia("(max-width: 767px)").matches ? D(_, "mobile") : D(_, "desktop"), D(u,
|
|
9581
|
+
window.matchMedia && window.matchMedia("(max-width: 767px)").matches ? D(_, "mobile") : D(_, "desktop"), D(u, B({
|
|
9582
9582
|
// Floating labels size cannot be overriden in Stripe since `!important` is being used.
|
|
9583
9583
|
// There we set fontSizeBase to the desired label size
|
|
9584
9584
|
// and update the input font size to 16px.
|
|
@@ -9591,7 +9591,7 @@ function Yp(e, r) {
|
|
|
9591
9591
|
}));
|
|
9592
9592
|
}
|
|
9593
9593
|
function f() {
|
|
9594
|
-
clearTimeout(d(g)), D(g,
|
|
9594
|
+
clearTimeout(d(g)), D(g, B(setTimeout(
|
|
9595
9595
|
() => {
|
|
9596
9596
|
m();
|
|
9597
9597
|
},
|
|
@@ -9617,22 +9617,22 @@ function Yp(e, r) {
|
|
|
9617
9617
|
We(() => (window.addEventListener("resize", f), () => {
|
|
9618
9618
|
window.removeEventListener("resize", f);
|
|
9619
9619
|
})), We(async () => {
|
|
9620
|
-
m(), !n() && (o() || !r.stripeAccountId || !r.publishableApiKey || !r.elementsConfiguration || await
|
|
9620
|
+
m(), !n() && (o() || !r.stripeAccountId || !r.publishableApiKey || !r.elementsConfiguration || await ve.initializeStripe(r.stripeAccountId, r.publishableApiKey, r.elementsConfiguration, r.brandingInfo, s, d(u), d(_)).then(({
|
|
9621
9621
|
stripe: w,
|
|
9622
|
-
elements:
|
|
9622
|
+
elements: q
|
|
9623
9623
|
}) => {
|
|
9624
|
-
n(w), o(
|
|
9624
|
+
n(w), o(q);
|
|
9625
9625
|
}).catch((w) => {
|
|
9626
9626
|
r.onError(w);
|
|
9627
9627
|
}));
|
|
9628
9628
|
}), at(() => {
|
|
9629
|
-
r.elementsConfiguration && o() &&
|
|
9629
|
+
r.elementsConfiguration && o() && ve.updateElementsConfiguration(o(), r.elementsConfiguration);
|
|
9630
9630
|
});
|
|
9631
|
-
var
|
|
9631
|
+
var z = ee(), C = Y(z);
|
|
9632
9632
|
{
|
|
9633
9633
|
var k = (w) => {
|
|
9634
|
-
var
|
|
9635
|
-
Vp(
|
|
9634
|
+
var q = Hp(), G = P(q);
|
|
9635
|
+
Vp(G, {
|
|
9636
9636
|
get elements() {
|
|
9637
9637
|
return o();
|
|
9638
9638
|
},
|
|
@@ -9648,9 +9648,9 @@ function Yp(e, r) {
|
|
|
9648
9648
|
return r.billingAddressRequired;
|
|
9649
9649
|
}
|
|
9650
9650
|
});
|
|
9651
|
-
var
|
|
9651
|
+
var W = O(G, 2);
|
|
9652
9652
|
{
|
|
9653
|
-
var
|
|
9653
|
+
var ae = (re) => {
|
|
9654
9654
|
Op(re, {
|
|
9655
9655
|
get elements() {
|
|
9656
9656
|
return o();
|
|
@@ -9660,11 +9660,11 @@ function Yp(e, r) {
|
|
|
9660
9660
|
onError: h
|
|
9661
9661
|
});
|
|
9662
9662
|
};
|
|
9663
|
-
N(
|
|
9664
|
-
r.skipEmail || re(
|
|
9663
|
+
N(W, (re) => {
|
|
9664
|
+
r.skipEmail || re(ae);
|
|
9665
9665
|
});
|
|
9666
9666
|
}
|
|
9667
|
-
var J =
|
|
9667
|
+
var J = O(W, 2);
|
|
9668
9668
|
Np(J, {
|
|
9669
9669
|
get elements() {
|
|
9670
9670
|
return o();
|
|
@@ -9675,13 +9675,13 @@ function Yp(e, r) {
|
|
|
9675
9675
|
onReady: x,
|
|
9676
9676
|
onChange: T,
|
|
9677
9677
|
onError: h
|
|
9678
|
-
}), b(w,
|
|
9678
|
+
}), b(w, q);
|
|
9679
9679
|
};
|
|
9680
|
-
N(
|
|
9680
|
+
N(C, (w) => {
|
|
9681
9681
|
o() && w(k);
|
|
9682
9682
|
});
|
|
9683
9683
|
}
|
|
9684
|
-
b(e,
|
|
9684
|
+
b(e, z), H();
|
|
9685
9685
|
}
|
|
9686
9686
|
const Gp = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
|
|
9687
9687
|
<path fill-rule="evenodd" d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm0 6.5a1.25 1.25 0 100-2.5 1.25 1.25 0 000 2.5zm1.25 4.5a1.25 1.25 0 10-2.5 0v4.5a1.25 1.25 0 102.5 0v-4.5z" clip-rule="evenodd" />
|
|
@@ -9708,7 +9708,7 @@ function Qp(e, r) {
|
|
|
9708
9708
|
R(e, Jp);
|
|
9709
9709
|
var t = Kp(), a = P(t), n = P(a);
|
|
9710
9710
|
Bi(n);
|
|
9711
|
-
var o =
|
|
9711
|
+
var o = O(a, 2), i = P(o), s = P(i);
|
|
9712
9712
|
se(s, {
|
|
9713
9713
|
size: "body-small",
|
|
9714
9714
|
children: (p, u) => {
|
|
@@ -9717,7 +9717,7 @@ function Qp(e, r) {
|
|
|
9717
9717
|
},
|
|
9718
9718
|
$$slots: { default: !0 }
|
|
9719
9719
|
});
|
|
9720
|
-
var l =
|
|
9720
|
+
var l = O(i, 2), c = P(l);
|
|
9721
9721
|
se(c, {
|
|
9722
9722
|
size: "body-small",
|
|
9723
9723
|
children: (p, u) => {
|
|
@@ -9730,9 +9730,9 @@ function Qp(e, r) {
|
|
|
9730
9730
|
function $p(e, r) {
|
|
9731
9731
|
V(r, !0);
|
|
9732
9732
|
const t = De(), a = () => ze(n, "$translator", t), n = Ee(Ne);
|
|
9733
|
-
var o = /* @__PURE__ */ E(() => a().translate(
|
|
9733
|
+
var o = /* @__PURE__ */ E(() => a().translate(L.PriceUpdateTitle)), i = /* @__PURE__ */ E(() => {
|
|
9734
9734
|
var s;
|
|
9735
|
-
return a().translate((s = r.subscriptionOption) != null && s.trial ?
|
|
9735
|
+
return a().translate((s = r.subscriptionOption) != null && s.trial ? L.PriceUpdateTrialMessage : L.PriceUpdateBaseMessage);
|
|
9736
9736
|
});
|
|
9737
9737
|
Qp(e, {
|
|
9738
9738
|
get title() {
|
|
@@ -9762,14 +9762,14 @@ function a_(e, r) {
|
|
|
9762
9762
|
var jn, Nn, Cn;
|
|
9763
9763
|
V(r, !0), R(e, t_);
|
|
9764
9764
|
const t = De(), a = () => ze(o, "$translator", t), n = Ee(xn), o = Ee(Ne), i = (jn = r.productDetails.subscriptionOptions) == null ? void 0 : jn[r.purchaseOption.id];
|
|
9765
|
-
let s = X(
|
|
9765
|
+
let s = X(B(((Nn = r.defaultPriceBreakdown) == null ? void 0 : Nn.taxCalculationStatus) ?? ((Cn = r.brandingInfo) != null && Cn.gateway_tax_collection_enabled ? "unavailable" : "disabled"))), l = X(null), c = X(null), p = X(B(r.productDetails.currentPrice.amountMicros)), u = X(B(r.productDetails.currentPrice.amountMicros)), _ = /* @__PURE__ */ E(() => r.defaultPriceBreakdown ?? {
|
|
9766
9766
|
currency: r.productDetails.currentPrice.currency,
|
|
9767
9767
|
totalAmountInMicros: d(u),
|
|
9768
9768
|
totalExcludingTaxInMicros: d(p),
|
|
9769
9769
|
taxCalculationStatus: d(s),
|
|
9770
9770
|
taxAmountInMicros: d(l),
|
|
9771
9771
|
taxBreakdown: d(c)
|
|
9772
|
-
}), g = X(
|
|
9772
|
+
}), g = X(B(r.gatewayParams.elements_configuration)), m = X(null), f = X(null), h = X(null), v = X(B(r.customerEmail ?? void 0)), y = X(B(!!r.customerEmail)), x = X(!0), T = X(!1), S = X(void 0), z = X(void 0), C = X(void 0), k = X(!1), w = X(null), q = /* @__PURE__ */ E(() => d(x) || d(k) ? "loading" : d(z) ? "error" : "form"), G = X("unavailable"), W = /* @__PURE__ */ E(() => !d(k) && d(T) && d(y) && (d(s) === "disabled" || d(s) === "calculated" || d(s) === "miss-match")), ae = /* @__PURE__ */ E(() => i && r.managementUrl && d(_) ? ve.buildStripeExpressCheckoutOptionsForSubscription(r.productDetails, d(_), i, a(), r.managementUrl) : void 0);
|
|
9773
9773
|
at(() => {
|
|
9774
9774
|
r.onPriceBreakdownUpdated(d(_));
|
|
9775
9775
|
}), We(async () => {
|
|
@@ -9780,7 +9780,7 @@ function a_(e, r) {
|
|
|
9780
9780
|
async function J(F, Q) {
|
|
9781
9781
|
await r.purchaseOperationHelper.checkoutCalculateTax(F == null ? void 0 : F.countryCode, F == null ? void 0 : F.postalCode, Q).then((ue) => {
|
|
9782
9782
|
const jr = lp({ taxCalculation: ue, taxCustomerDetails: F });
|
|
9783
|
-
n.trackSDKEvent(jr), Q == null || Q.throwIfAborted(), ue.failed_reason ? !F && ue.failed_reason === En.invalid_tax_location ? D(s, "pending") : D(s, "disabled") : D(s, "calculated"), D(l,
|
|
9783
|
+
n.trackSDKEvent(jr), Q == null || Q.throwIfAborted(), ue.failed_reason ? !F && ue.failed_reason === En.invalid_tax_location ? D(s, "pending") : D(s, "disabled") : D(s, "calculated"), D(l, B(ue.tax_amount_in_micros)), D(p, B(ue.total_excluding_tax_in_micros)), D(u, B(ue.total_amount_in_micros)), D(c, B(ue.pricing_phases.base.tax_breakdown)), D(g, B(ue.gateway_params.elements_configuration)), D(m, B(F));
|
|
9784
9784
|
});
|
|
9785
9785
|
}
|
|
9786
9786
|
function re() {
|
|
@@ -9789,10 +9789,10 @@ function a_(e, r) {
|
|
|
9789
9789
|
}), D(x, !1);
|
|
9790
9790
|
}
|
|
9791
9791
|
async function pe(F, Q) {
|
|
9792
|
-
D(v,
|
|
9792
|
+
D(v, B(Q)), D(y, B(F)), await Pe();
|
|
9793
9793
|
}
|
|
9794
|
-
async function
|
|
9795
|
-
D(S,
|
|
9794
|
+
async function me({ complete: F, paymentMethod: Q }) {
|
|
9795
|
+
D(S, B(Q)), D(T, B(F)), await Pe();
|
|
9796
9796
|
}
|
|
9797
9797
|
async function ce(F) {
|
|
9798
9798
|
if (F == null || F.preventDefault(), d(k)) return;
|
|
@@ -9801,15 +9801,15 @@ function a_(e, r) {
|
|
|
9801
9801
|
});
|
|
9802
9802
|
n.trackSDKEvent(Q), D(k, !0), await vr() ? r.onContinue() : D(k, !1);
|
|
9803
9803
|
}
|
|
9804
|
-
async function
|
|
9805
|
-
D(S,
|
|
9804
|
+
async function ke(F, Q) {
|
|
9805
|
+
D(S, B(F)), D(v, B(Q)), await ce();
|
|
9806
9806
|
}
|
|
9807
|
-
async function
|
|
9808
|
-
d(S) !== "card" || !d(y) || !d(T) || d(k) || d(s) === "disabled" || (d(s) !== "loading" && (D(
|
|
9807
|
+
async function Pe() {
|
|
9808
|
+
d(S) !== "card" || !d(y) || !d(T) || d(k) || d(s) === "disabled" || (d(s) !== "loading" && (D(G, B(d(s))), D(s, "loading")), await _r(async (F) => {
|
|
9809
9809
|
await Ge().then(() => F.throwIfAborted()).then(() => Oe(F)).then(() => F.throwIfAborted()).catch((Q) => {
|
|
9810
9810
|
F.aborted || Xe(Q);
|
|
9811
9811
|
}).finally(() => {
|
|
9812
|
-
d(s) === "loading" && !F.aborted && D(s,
|
|
9812
|
+
d(s) === "loading" && !F.aborted && D(s, B(d(G)));
|
|
9813
9813
|
});
|
|
9814
9814
|
}));
|
|
9815
9815
|
}
|
|
@@ -9823,7 +9823,7 @@ function a_(e, r) {
|
|
|
9823
9823
|
});
|
|
9824
9824
|
}
|
|
9825
9825
|
async function _r(F) {
|
|
9826
|
-
d(w) && d(w).abort(), D(w,
|
|
9826
|
+
d(w) && d(w).abort(), D(w, B(new AbortController()));
|
|
9827
9827
|
const Q = d(w).signal;
|
|
9828
9828
|
try {
|
|
9829
9829
|
return await F(Q);
|
|
@@ -9834,7 +9834,7 @@ function a_(e, r) {
|
|
|
9834
9834
|
}
|
|
9835
9835
|
}
|
|
9836
9836
|
async function Ge() {
|
|
9837
|
-
d(h) && await
|
|
9837
|
+
d(h) && await ve.submitElements(d(h));
|
|
9838
9838
|
}
|
|
9839
9839
|
async function Oe(F) {
|
|
9840
9840
|
var Nr, _t;
|
|
@@ -9843,7 +9843,7 @@ function a_(e, r) {
|
|
|
9843
9843
|
const {
|
|
9844
9844
|
customerDetails: Q,
|
|
9845
9845
|
confirmationTokenId: ue
|
|
9846
|
-
} = await
|
|
9846
|
+
} = await ve.extractTaxCustomerDetails(d(h), d(f));
|
|
9847
9847
|
return F == null || F.throwIfAborted(), Q.postalCode === ((Nr = d(m)) == null ? void 0 : Nr.postalCode) && Q.countryCode === ((_t = d(m)) == null ? void 0 : _t.countryCode) || await J(Q, F), ue && d(S) !== "card" ? ue : void 0;
|
|
9848
9848
|
}
|
|
9849
9849
|
function kr(F) {
|
|
@@ -9855,10 +9855,10 @@ function a_(e, r) {
|
|
|
9855
9855
|
async function $e() {
|
|
9856
9856
|
var ue;
|
|
9857
9857
|
const F = await r.purchaseOperationHelper.checkoutComplete(d(v)), Q = (ue = F == null ? void 0 : F.gateway_params) == null ? void 0 : ue.client_secret;
|
|
9858
|
-
Q && D(
|
|
9858
|
+
Q && D(C, B(Q));
|
|
9859
9859
|
}
|
|
9860
9860
|
async function wr(F) {
|
|
9861
|
-
!d(f) || !d(h) || !d(
|
|
9861
|
+
!d(f) || !d(h) || !d(C) || await ve.confirmElements(d(f), d(h), d(C), F);
|
|
9862
9862
|
}
|
|
9863
9863
|
async function Xe(F) {
|
|
9864
9864
|
if (F instanceof wo)
|
|
@@ -9868,7 +9868,7 @@ function a_(e, r) {
|
|
|
9868
9868
|
errorCode: F.errorCode.toString(),
|
|
9869
9869
|
errorMessage: F.message
|
|
9870
9870
|
});
|
|
9871
|
-
n.trackSDKEvent(Q), F.errorCode === oe.MissingEmailError ? D(
|
|
9871
|
+
n.trackSDKEvent(Q), F.errorCode === oe.MissingEmailError ? D(z, B(a().translate(L.ErrorPageErrorMessageInvalidEmailError, { email: d(v) }))) : r.onError(F);
|
|
9872
9872
|
} else if (F instanceof Xt)
|
|
9873
9873
|
await Yr(F);
|
|
9874
9874
|
else
|
|
@@ -9879,10 +9879,10 @@ function a_(e, r) {
|
|
|
9879
9879
|
errorCode: F.gatewayErrorCode ?? "",
|
|
9880
9880
|
errorMessage: F.message ?? ""
|
|
9881
9881
|
});
|
|
9882
|
-
n.trackSDKEvent(Q), F.code === rn.HandledFormError || (F.code === rn.UnhandledFormError ? D(
|
|
9882
|
+
n.trackSDKEvent(Q), F.code === rn.HandledFormError || (F.code === rn.UnhandledFormError ? D(z, B(F.message)) : r.onError(new de(oe.ErrorSettingUpPurchase, "Failed to initialize payment form", F.message)));
|
|
9883
9883
|
}
|
|
9884
9884
|
const Lt = () => {
|
|
9885
|
-
D(
|
|
9885
|
+
D(z, void 0);
|
|
9886
9886
|
};
|
|
9887
9887
|
var xr = r_(), pt = P(xr);
|
|
9888
9888
|
{
|
|
@@ -9891,13 +9891,13 @@ function a_(e, r) {
|
|
|
9891
9891
|
Ai(ue), b(F, Q);
|
|
9892
9892
|
};
|
|
9893
9893
|
N(pt, (F) => {
|
|
9894
|
-
d(
|
|
9894
|
+
d(q) === "loading" && F(Bt);
|
|
9895
9895
|
});
|
|
9896
9896
|
}
|
|
9897
|
-
var Rt =
|
|
9897
|
+
var Rt = O(pt, 2);
|
|
9898
9898
|
{
|
|
9899
9899
|
var wa = (F) => {
|
|
9900
|
-
var Q = /* @__PURE__ */ E(() => a().translate(
|
|
9900
|
+
var Q = /* @__PURE__ */ E(() => a().translate(L.ErrorButtonTryAgain));
|
|
9901
9901
|
Sn(F, {
|
|
9902
9902
|
title: null,
|
|
9903
9903
|
type: "error",
|
|
@@ -9910,16 +9910,16 @@ function a_(e, r) {
|
|
|
9910
9910
|
},
|
|
9911
9911
|
message: (Nr) => {
|
|
9912
9912
|
var _t = ie();
|
|
9913
|
-
A(() => te(_t, d(
|
|
9913
|
+
A(() => te(_t, d(z))), b(Nr, _t);
|
|
9914
9914
|
},
|
|
9915
9915
|
$$slots: { icon: !0, message: !0 }
|
|
9916
9916
|
});
|
|
9917
9917
|
};
|
|
9918
9918
|
N(Rt, (F) => {
|
|
9919
|
-
d(
|
|
9919
|
+
d(q) === "error" && F(wa);
|
|
9920
9920
|
});
|
|
9921
9921
|
}
|
|
9922
|
-
var Ut =
|
|
9922
|
+
var Ut = O(Rt, 2), Gr = P(Ut), Vt = P(Gr), Mr = P(Vt), cs = /* @__PURE__ */ E(() => !!r.customerEmail), ds = /* @__PURE__ */ E(() => d(s) !== "disabled");
|
|
9923
9923
|
Yp(Mr, {
|
|
9924
9924
|
get stripeAccountId() {
|
|
9925
9925
|
return r.gatewayParams.stripe_account_id;
|
|
@@ -9942,27 +9942,27 @@ function a_(e, r) {
|
|
|
9942
9942
|
onLoadingComplete: re,
|
|
9943
9943
|
onError: Yr,
|
|
9944
9944
|
onEmailChange: pe,
|
|
9945
|
-
onPaymentInfoChange:
|
|
9946
|
-
onExpressCheckoutElementSubmit:
|
|
9945
|
+
onPaymentInfoChange: me,
|
|
9946
|
+
onExpressCheckoutElementSubmit: ke,
|
|
9947
9947
|
get expressCheckoutOptions() {
|
|
9948
|
-
return d(
|
|
9948
|
+
return d(ae);
|
|
9949
9949
|
},
|
|
9950
9950
|
get stripe() {
|
|
9951
9951
|
return d(f);
|
|
9952
9952
|
},
|
|
9953
9953
|
set stripe(F) {
|
|
9954
|
-
D(f,
|
|
9954
|
+
D(f, B(F));
|
|
9955
9955
|
},
|
|
9956
9956
|
get elements() {
|
|
9957
9957
|
return d(h);
|
|
9958
9958
|
},
|
|
9959
9959
|
set elements(F) {
|
|
9960
|
-
D(h,
|
|
9960
|
+
D(h, B(F));
|
|
9961
9961
|
}
|
|
9962
9962
|
});
|
|
9963
|
-
var xa =
|
|
9963
|
+
var xa = O(Vt, 2), us = P(xa);
|
|
9964
9964
|
$p(us, { subscriptionOption: i });
|
|
9965
|
-
var An =
|
|
9965
|
+
var An = O(xa, 2), Mn = P(An), ps = /* @__PURE__ */ E(() => !d(W)), _s = /* @__PURE__ */ E(() => {
|
|
9966
9966
|
var F;
|
|
9967
9967
|
return (F = r.brandingInfo) != null && F.gateway_tax_collection_enabled ? d(_) : void 0;
|
|
9968
9968
|
});
|
|
@@ -9975,14 +9975,14 @@ function a_(e, r) {
|
|
|
9975
9975
|
return d(_s);
|
|
9976
9976
|
}
|
|
9977
9977
|
});
|
|
9978
|
-
var gs =
|
|
9978
|
+
var gs = O(Mn, 2), ms = P(gs);
|
|
9979
9979
|
rp(ms, {
|
|
9980
9980
|
get brandingInfo() {
|
|
9981
9981
|
return r.brandingInfo;
|
|
9982
9982
|
},
|
|
9983
9983
|
subscriptionOption: i
|
|
9984
9984
|
}), A(() => {
|
|
9985
|
-
fr(Gr, "invisible", d(
|
|
9985
|
+
fr(Gr, "invisible", d(q) !== "form"), fr(xa, "fully-hidden", d(s) !== "miss-match" || d(q) !== "form"), fr(An, "fully-hidden", d(q) !== "form");
|
|
9986
9986
|
}), nt("submit", Ut, ce), b(e, xr), H();
|
|
9987
9987
|
}
|
|
9988
9988
|
function n_(e) {
|
|
@@ -10034,16 +10034,16 @@ function i_(e) {
|
|
|
10034
10034
|
const { number: r, unit: t } = e, a = 7, n = 30, o = 365;
|
|
10035
10035
|
let i;
|
|
10036
10036
|
switch (t) {
|
|
10037
|
-
case
|
|
10037
|
+
case xe.Day:
|
|
10038
10038
|
i = r;
|
|
10039
10039
|
break;
|
|
10040
|
-
case
|
|
10040
|
+
case xe.Week:
|
|
10041
10041
|
i = r * a;
|
|
10042
10042
|
break;
|
|
10043
|
-
case
|
|
10043
|
+
case xe.Month:
|
|
10044
10044
|
i = r * n;
|
|
10045
10045
|
break;
|
|
10046
|
-
case
|
|
10046
|
+
case xe.Year:
|
|
10047
10047
|
i = r * o;
|
|
10048
10048
|
break;
|
|
10049
10049
|
default:
|
|
@@ -10290,10 +10290,10 @@ const D_ = {
|
|
|
10290
10290
|
function qt(e, r) {
|
|
10291
10291
|
V(r, !0);
|
|
10292
10292
|
const t = D_[r.name];
|
|
10293
|
-
let a = X(
|
|
10293
|
+
let a = X(B({}));
|
|
10294
10294
|
if (r.name.startsWith("chevron")) {
|
|
10295
10295
|
const n = r.name.split("-")[1];
|
|
10296
|
-
D(a,
|
|
10296
|
+
D(a, B({ direction: n }));
|
|
10297
10297
|
}
|
|
10298
10298
|
t(e, hr(() => d(a))), H();
|
|
10299
10299
|
}
|
|
@@ -10309,45 +10309,45 @@ function C_(e, r) {
|
|
|
10309
10309
|
K.errorLog(`Displayed error: ${oe[d(n).errorCode]}. Message: ${d(n).message ?? "None"}. Underlying error: ${d(n).underlyingErrorMessage ?? "None"}`);
|
|
10310
10310
|
});
|
|
10311
10311
|
function s() {
|
|
10312
|
-
return d(n).errorCode === oe.AlreadyPurchasedError ? a().translate(
|
|
10312
|
+
return d(n).errorCode === oe.AlreadyPurchasedError ? a().translate(L.ErrorPageCloseButtonTitle, { appName: r.appName ?? "App" }) : d(i) ? a().translate(L.ErrorButtonClose) : a().translate(L.ErrorButtonTryAgain);
|
|
10313
10313
|
}
|
|
10314
10314
|
function l() {
|
|
10315
10315
|
switch (d(n).errorCode) {
|
|
10316
10316
|
case oe.AlreadyPurchasedError:
|
|
10317
|
-
return r.productDetails.productType === Lr.Subscription ? a().translate(
|
|
10317
|
+
return r.productDetails.productType === Lr.Subscription ? a().translate(L.ErrorPageErrorTitleAlreadySubscribed, { productTitle: r.productDetails.title }) : a().translate(L.ErrorPageErrorTitleAlreadyPurchased, { productTitle: r.productDetails.title });
|
|
10318
10318
|
case oe.StripeTaxNotActive:
|
|
10319
|
-
return a().translate(
|
|
10319
|
+
return a().translate(L.ErrorPageErrorTitleStripeTaxNotActive);
|
|
10320
10320
|
case oe.StripeInvalidTaxOriginAddress:
|
|
10321
|
-
return a().translate(
|
|
10321
|
+
return a().translate(L.ErrorPageErrorTitleStripeInvalidTaxOriginAddress);
|
|
10322
10322
|
case oe.StripeMissingRequiredPermission:
|
|
10323
|
-
return a().translate(
|
|
10323
|
+
return a().translate(L.ErrorPageErrorTitleStripeMissingRequiredPermission);
|
|
10324
10324
|
default:
|
|
10325
|
-
return a().translate(
|
|
10325
|
+
return a().translate(L.ErrorPageErrorTitleOtherErrors);
|
|
10326
10326
|
}
|
|
10327
10327
|
}
|
|
10328
10328
|
function c() {
|
|
10329
10329
|
const m = d(n).getErrorCode();
|
|
10330
10330
|
switch (d(n).errorCode) {
|
|
10331
10331
|
case oe.ErrorSettingUpPurchase:
|
|
10332
|
-
return a().translate(
|
|
10332
|
+
return a().translate(L.ErrorPageErrorMessageErrorSettingUpPurchase, { errorCode: m });
|
|
10333
10333
|
case oe.ErrorChargingPayment:
|
|
10334
|
-
return a().translate(
|
|
10334
|
+
return a().translate(L.ErrorPageErrorMessageErrorChargingPayment, { errorCode: m });
|
|
10335
10335
|
case oe.AlreadyPurchasedError:
|
|
10336
|
-
return r.productDetails.productType === Lr.Subscription ? a().translate(
|
|
10336
|
+
return r.productDetails.productType === Lr.Subscription ? a().translate(L.ErrorPageErrorMessageAlreadySubscribed, { errorCode: m }) : a().translate(L.ErrorPageErrorMessageAlreadyPurchased, { errorCode: m });
|
|
10337
10337
|
case oe.StripeTaxNotActive:
|
|
10338
|
-
return a().translate(
|
|
10338
|
+
return a().translate(L.ErrorPageErrorMessageStripeTaxNotActive, { errorCode: m });
|
|
10339
10339
|
case oe.StripeInvalidTaxOriginAddress:
|
|
10340
|
-
return a().translate(
|
|
10340
|
+
return a().translate(L.ErrorPageErrorMessageStripeInvalidTaxOriginAddress, { errorCode: m });
|
|
10341
10341
|
case oe.StripeMissingRequiredPermission:
|
|
10342
|
-
return a().translate(
|
|
10342
|
+
return a().translate(L.ErrorPageErrorMessageStripeMissingRequiredPermission, { errorCode: m });
|
|
10343
10343
|
case oe.NetworkError:
|
|
10344
|
-
return a().translate(
|
|
10344
|
+
return a().translate(L.ErrorPageErrorMessageNetworkError, { errorCode: m });
|
|
10345
10345
|
default:
|
|
10346
|
-
return a().translate(
|
|
10346
|
+
return a().translate(L.ErrorPageErrorMessageUnknownError, { errorCode: m });
|
|
10347
10347
|
}
|
|
10348
10348
|
}
|
|
10349
10349
|
function p() {
|
|
10350
|
-
return d(n).errorCode === oe.AlreadyPurchasedError ?
|
|
10350
|
+
return d(n).errorCode === oe.AlreadyPurchasedError ? L.ErrorPageTroubleAccessing : L.ErrorPageIfErrorPersists;
|
|
10351
10351
|
}
|
|
10352
10352
|
function u() {
|
|
10353
10353
|
return d(n).errorCode === oe.AlreadyPurchasedError ? "success" : "error";
|
|
@@ -10373,38 +10373,38 @@ function C_(e, r) {
|
|
|
10373
10373
|
});
|
|
10374
10374
|
},
|
|
10375
10375
|
message: (h) => {
|
|
10376
|
-
var v = j_(), y =
|
|
10376
|
+
var v = j_(), y = Y(v);
|
|
10377
10377
|
{
|
|
10378
|
-
var x = (
|
|
10379
|
-
var k = A_(), w =
|
|
10380
|
-
ur(
|
|
10378
|
+
var x = (C) => {
|
|
10379
|
+
var k = A_(), w = Y(k), q = P(w);
|
|
10380
|
+
ur(q, {
|
|
10381
10381
|
get key() {
|
|
10382
|
-
return
|
|
10382
|
+
return L.ErrorPageErrorMessageOnlyInSandbox;
|
|
10383
10383
|
}
|
|
10384
|
-
}), b(
|
|
10384
|
+
}), b(C, k);
|
|
10385
10385
|
};
|
|
10386
|
-
N(y, (
|
|
10387
|
-
d(i) &&
|
|
10386
|
+
N(y, (C) => {
|
|
10387
|
+
d(i) && C(x);
|
|
10388
10388
|
});
|
|
10389
10389
|
}
|
|
10390
|
-
var T =
|
|
10390
|
+
var T = O(y);
|
|
10391
10391
|
A(() => te(T, ` ${c() ?? ""} `));
|
|
10392
|
-
var S =
|
|
10392
|
+
var S = O(T);
|
|
10393
10393
|
{
|
|
10394
|
-
var
|
|
10395
|
-
var k = M_(), w =
|
|
10394
|
+
var z = (C) => {
|
|
10395
|
+
var k = M_(), w = Y(k), q = /* @__PURE__ */ E(p);
|
|
10396
10396
|
ur(w, {
|
|
10397
10397
|
get key() {
|
|
10398
|
-
return d(
|
|
10398
|
+
return d(q);
|
|
10399
10399
|
}
|
|
10400
10400
|
});
|
|
10401
|
-
var
|
|
10401
|
+
var G = O(w, 2), W = P(G);
|
|
10402
10402
|
A(() => {
|
|
10403
|
-
j(
|
|
10404
|
-
}), b(
|
|
10403
|
+
j(G, "href", `mailto:${r.supportEmail ?? ""}`), te(W, r.supportEmail);
|
|
10404
|
+
}), b(C, k);
|
|
10405
10405
|
};
|
|
10406
|
-
N(S, (
|
|
10407
|
-
!d(i) && r.supportEmail &&
|
|
10406
|
+
N(S, (C) => {
|
|
10407
|
+
!d(i) && r.supportEmail && C(z);
|
|
10408
10408
|
});
|
|
10409
10409
|
}
|
|
10410
10410
|
b(h, v);
|
|
@@ -10428,7 +10428,7 @@ function O_(e, r) {
|
|
|
10428
10428
|
eventName: Fe.CheckoutPurchaseSuccessfulImpression
|
|
10429
10429
|
});
|
|
10430
10430
|
}), Qe();
|
|
10431
|
-
var l = /* @__PURE__ */ et(() => a().translate(
|
|
10431
|
+
var l = /* @__PURE__ */ et(() => a().translate(L.SuccessPagePurchaseSuccessful)), c = /* @__PURE__ */ et(() => a().translate(L.SuccessPageButtonClose));
|
|
10432
10432
|
Sn(e, {
|
|
10433
10433
|
type: "success",
|
|
10434
10434
|
get title() {
|
|
@@ -10471,24 +10471,24 @@ function U_(e, r) {
|
|
|
10471
10471
|
se(p, {
|
|
10472
10472
|
size: "label-default",
|
|
10473
10473
|
children: (y, x) => {
|
|
10474
|
-
var T = ee(), S =
|
|
10474
|
+
var T = ee(), S = Y(T);
|
|
10475
10475
|
{
|
|
10476
|
-
var
|
|
10476
|
+
var z = (k) => {
|
|
10477
10477
|
var w = ie();
|
|
10478
|
-
A(() => te(w, a().translate(
|
|
10479
|
-
},
|
|
10478
|
+
A(() => te(w, a().translate(L.PricingDropdownHideDetails))), b(k, w);
|
|
10479
|
+
}, C = (k) => {
|
|
10480
10480
|
var w = ie();
|
|
10481
|
-
A(() => te(w, a().translate(
|
|
10481
|
+
A(() => te(w, a().translate(L.PricingDropdownShowDetails))), b(k, w);
|
|
10482
10482
|
};
|
|
10483
10483
|
N(S, (k) => {
|
|
10484
|
-
n() ? k(
|
|
10484
|
+
n() ? k(z) : k(C, !1);
|
|
10485
10485
|
});
|
|
10486
10486
|
}
|
|
10487
10487
|
b(y, T);
|
|
10488
10488
|
},
|
|
10489
10489
|
$$slots: { default: !0 }
|
|
10490
10490
|
});
|
|
10491
|
-
var u =
|
|
10491
|
+
var u = O(p, 2), _ = P(u);
|
|
10492
10492
|
{
|
|
10493
10493
|
var g = (y) => {
|
|
10494
10494
|
qt(y, { name: "chevron-up" });
|
|
@@ -10499,8 +10499,8 @@ function U_(e, r) {
|
|
|
10499
10499
|
n() ? y(g) : y(m, !1);
|
|
10500
10500
|
});
|
|
10501
10501
|
}
|
|
10502
|
-
var f =
|
|
10503
|
-
|
|
10502
|
+
var f = O(c, 2), h = P(f), v = P(h);
|
|
10503
|
+
ge(v, () => o() ?? ne), A(() => {
|
|
10504
10504
|
j(c, "aria-expanded", n()), fr(f, "collapsed", !n());
|
|
10505
10505
|
}), nt("click", c, s), nt("keydown", c, (y) => y.key === "Enter" || y.key === " " ? s() : null), b(e, l), H();
|
|
10506
10506
|
}
|
|
@@ -10526,7 +10526,7 @@ function W_(e, r) {
|
|
|
10526
10526
|
let t = U(r, "children", 8);
|
|
10527
10527
|
Qe();
|
|
10528
10528
|
var a = V_(), n = P(a);
|
|
10529
|
-
|
|
10529
|
+
ge(n, () => t() ?? ne), b(e, a), H();
|
|
10530
10530
|
}
|
|
10531
10531
|
var Y_ = /* @__PURE__ */ I('<div class="rcb-pricing-table-row svelte-i12130" data-testid="tax-loading-skeleton"><div class="rcb-pricing-table-header svelte-i12130"><!></div> <div class="rcb-pricing-table-value svelte-i12130"><!></div></div>'), G_ = /* @__PURE__ */ I('<div class="rcb-pricing-table-row svelte-i12130"><div class="rcb-pricing-table-header svelte-i12130"> </div> <div class="rcb-pricing-table-value svelte-i12130"><!></div></div>'), X_ = /* @__PURE__ */ I('<div class="rcb-pricing-table-row svelte-i12130"><div class="rcb-pricing-table-header svelte-i12130"><!></div> <div class="rcb-pricing-table-value svelte-i12130"><!></div></div>'), Z_ = /* @__PURE__ */ I('<div class="rcb-pricing-table-row svelte-i12130"><div class="rcb-pricing-table-header svelte-i12130"><!></div> <div class="rcb-pricing-table-value svelte-i12130"><!></div></div> <!> <div class="rcb-pricing-table-separator svelte-i12130"></div>', 1), K_ = /* @__PURE__ */ I('<div class="rcb-pricing-table-row svelte-i12130"><div class="rcb-pricing-table-header svelte-i12130"><!></div> <div class="rcb-pricing-table-value svelte-i12130"><!></div></div>'), J_ = /* @__PURE__ */ I('<div class="rcb-pricing-table svelte-i12130"><!> <!> <div class="rcb-pricing-table-row rcb-header svelte-i12130"><div class="rcb-pricing-table-header svelte-i12130"><!></div> <div class="rcb-pricing-table-value svelte-i12130"><!></div></div></div>');
|
|
10532
10532
|
const Q_ = {
|
|
@@ -10545,37 +10545,37 @@ function $_(e, r) {
|
|
|
10545
10545
|
var m = J_(), f = P(m);
|
|
10546
10546
|
{
|
|
10547
10547
|
var h = (k) => {
|
|
10548
|
-
var w = Z_(),
|
|
10549
|
-
se(
|
|
10548
|
+
var w = Z_(), q = Y(w), G = P(q), W = P(G);
|
|
10549
|
+
se(W, {
|
|
10550
10550
|
size: "body-small",
|
|
10551
|
-
children: (ce,
|
|
10552
|
-
var
|
|
10553
|
-
A(() => te(
|
|
10551
|
+
children: (ce, ke) => {
|
|
10552
|
+
var Pe = ie();
|
|
10553
|
+
A(() => te(Pe, a().translate(L.PricingTotalExcludingTax))), b(ce, Pe);
|
|
10554
10554
|
},
|
|
10555
10555
|
$$slots: { default: !0 }
|
|
10556
10556
|
});
|
|
10557
|
-
var
|
|
10557
|
+
var ae = O(G, 2), J = P(ae);
|
|
10558
10558
|
se(J, {
|
|
10559
10559
|
size: "body-small",
|
|
10560
|
-
children: (ce,
|
|
10561
|
-
var
|
|
10562
|
-
A(() => te(
|
|
10560
|
+
children: (ce, ke) => {
|
|
10561
|
+
var Pe = ie();
|
|
10562
|
+
A(() => te(Pe, a().formatPrice(r.priceBreakdown.totalExcludingTaxInMicros, r.priceBreakdown.currency))), b(ce, Pe);
|
|
10563
10563
|
},
|
|
10564
10564
|
$$slots: { default: !0 }
|
|
10565
10565
|
});
|
|
10566
|
-
var re =
|
|
10566
|
+
var re = O(q, 2);
|
|
10567
10567
|
{
|
|
10568
10568
|
var pe = (ce) => {
|
|
10569
|
-
var
|
|
10569
|
+
var ke = Y_(), Pe = P(ke), vr = P(Pe);
|
|
10570
10570
|
se(vr, {
|
|
10571
10571
|
size: "body-small",
|
|
10572
10572
|
children: (Oe, kr) => {
|
|
10573
10573
|
var $e = ie();
|
|
10574
|
-
A(() => te($e, a().translate(
|
|
10574
|
+
A(() => te($e, a().translate(L.PricingTableTax))), b(Oe, $e);
|
|
10575
10575
|
},
|
|
10576
10576
|
$$slots: { default: !0 }
|
|
10577
10577
|
});
|
|
10578
|
-
var _r =
|
|
10578
|
+
var _r = O(Pe, 2), Ge = P(_r);
|
|
10579
10579
|
se(Ge, {
|
|
10580
10580
|
size: "body-small",
|
|
10581
10581
|
children: (Oe, kr) => {
|
|
@@ -10588,27 +10588,27 @@ function $_(e, r) {
|
|
|
10588
10588
|
});
|
|
10589
10589
|
},
|
|
10590
10590
|
$$slots: { default: !0 }
|
|
10591
|
-
}), b(ce,
|
|
10592
|
-
},
|
|
10593
|
-
var
|
|
10591
|
+
}), b(ce, ke);
|
|
10592
|
+
}, me = (ce) => {
|
|
10593
|
+
var ke = ee(), Pe = Y(ke);
|
|
10594
10594
|
{
|
|
10595
10595
|
var vr = (Ge) => {
|
|
10596
10596
|
var Oe = G_(), kr = P(Oe), $e = P(kr);
|
|
10597
|
-
A(() => te($e, a().translate(
|
|
10598
|
-
var wr =
|
|
10597
|
+
A(() => te($e, a().translate(L.PricingTableTax)));
|
|
10598
|
+
var wr = O(kr, 2), Xe = P(wr);
|
|
10599
10599
|
se(Xe, {
|
|
10600
10600
|
size: "body-small",
|
|
10601
10601
|
children: (Yr, Lt) => {
|
|
10602
10602
|
var xr = ie();
|
|
10603
|
-
A(() => te(xr, a().translate(
|
|
10603
|
+
A(() => te(xr, a().translate(L.PricingTableEnterBillingAddressToCalculate))), b(Yr, xr);
|
|
10604
10604
|
},
|
|
10605
10605
|
$$slots: { default: !0 }
|
|
10606
10606
|
}), b(Ge, Oe);
|
|
10607
10607
|
}, _r = (Ge) => {
|
|
10608
|
-
var Oe = ee(), kr =
|
|
10608
|
+
var Oe = ee(), kr = Y(Oe);
|
|
10609
10609
|
{
|
|
10610
10610
|
var $e = (wr) => {
|
|
10611
|
-
var Xe = ee(), Yr =
|
|
10611
|
+
var Xe = ee(), Yr = Y(Xe);
|
|
10612
10612
|
it(Yr, 17, () => r.priceBreakdown.taxBreakdown, ot, (Lt, xr) => {
|
|
10613
10613
|
var pt = X_(), Bt = P(pt), Rt = P(Bt);
|
|
10614
10614
|
se(Rt, {
|
|
@@ -10619,7 +10619,7 @@ function $_(e, r) {
|
|
|
10619
10619
|
},
|
|
10620
10620
|
$$slots: { default: !0 }
|
|
10621
10621
|
});
|
|
10622
|
-
var wa =
|
|
10622
|
+
var wa = O(Bt, 2), Ut = P(wa);
|
|
10623
10623
|
se(Ut, {
|
|
10624
10624
|
size: "body-small",
|
|
10625
10625
|
children: (Gr, Vt) => {
|
|
@@ -10641,17 +10641,17 @@ function $_(e, r) {
|
|
|
10641
10641
|
b(Ge, Oe);
|
|
10642
10642
|
};
|
|
10643
10643
|
N(
|
|
10644
|
-
|
|
10644
|
+
Pe,
|
|
10645
10645
|
(Ge) => {
|
|
10646
10646
|
r.priceBreakdown.taxCalculationStatus === "pending" ? Ge(vr) : Ge(_r, !1);
|
|
10647
10647
|
},
|
|
10648
10648
|
!0
|
|
10649
10649
|
);
|
|
10650
10650
|
}
|
|
10651
|
-
b(ce,
|
|
10651
|
+
b(ce, ke);
|
|
10652
10652
|
};
|
|
10653
10653
|
N(re, (ce) => {
|
|
10654
|
-
r.priceBreakdown.taxCalculationStatus === "loading" ? ce(pe) : ce(
|
|
10654
|
+
r.priceBreakdown.taxCalculationStatus === "loading" ? ce(pe) : ce(me, !1);
|
|
10655
10655
|
});
|
|
10656
10656
|
}
|
|
10657
10657
|
b(k, w);
|
|
@@ -10660,22 +10660,22 @@ function $_(e, r) {
|
|
|
10660
10660
|
d(s) && k(h);
|
|
10661
10661
|
});
|
|
10662
10662
|
}
|
|
10663
|
-
var v =
|
|
10663
|
+
var v = O(f, 2);
|
|
10664
10664
|
{
|
|
10665
10665
|
var y = (k) => {
|
|
10666
|
-
var w = K_(),
|
|
10667
|
-
se(
|
|
10666
|
+
var w = K_(), q = P(w), G = P(q);
|
|
10667
|
+
se(G, {
|
|
10668
10668
|
size: "body-small",
|
|
10669
10669
|
children: (J, re) => {
|
|
10670
10670
|
var pe = ie();
|
|
10671
|
-
A(() => te(pe, a().translate(
|
|
10671
|
+
A(() => te(pe, a().translate(L.PricingTableTrialEnds, {
|
|
10672
10672
|
formattedTrialEndDate: a().translateDate(d(o), { dateStyle: "medium" })
|
|
10673
10673
|
}))), b(J, pe);
|
|
10674
10674
|
},
|
|
10675
10675
|
$$slots: { default: !0 }
|
|
10676
10676
|
});
|
|
10677
|
-
var
|
|
10678
|
-
se(
|
|
10677
|
+
var W = O(q, 2), ae = P(W);
|
|
10678
|
+
se(ae, {
|
|
10679
10679
|
size: "body-small",
|
|
10680
10680
|
children: (J, re) => {
|
|
10681
10681
|
var pe = ie();
|
|
@@ -10688,41 +10688,41 @@ function $_(e, r) {
|
|
|
10688
10688
|
d(o) && k(y);
|
|
10689
10689
|
});
|
|
10690
10690
|
}
|
|
10691
|
-
var x =
|
|
10691
|
+
var x = O(v, 2), T = P(x), S = P(T);
|
|
10692
10692
|
se(S, {
|
|
10693
10693
|
size: "body-small",
|
|
10694
10694
|
children: (k, w) => {
|
|
10695
|
-
var
|
|
10696
|
-
A(() => te(
|
|
10695
|
+
var q = ie();
|
|
10696
|
+
A(() => te(q, a().translate(L.PricingTableTotalDueToday))), b(k, q);
|
|
10697
10697
|
},
|
|
10698
10698
|
$$slots: { default: !0 }
|
|
10699
10699
|
});
|
|
10700
|
-
var
|
|
10701
|
-
se(
|
|
10700
|
+
var z = O(T, 2), C = P(z);
|
|
10701
|
+
se(C, {
|
|
10702
10702
|
size: "body-small",
|
|
10703
10703
|
children: (k, w) => {
|
|
10704
|
-
var
|
|
10704
|
+
var q = ee(), G = Y(q);
|
|
10705
10705
|
{
|
|
10706
|
-
var
|
|
10706
|
+
var W = (J) => {
|
|
10707
10707
|
var re = ie();
|
|
10708
10708
|
A(() => te(re, a().formatPrice(0, r.priceBreakdown.currency))), b(J, re);
|
|
10709
|
-
},
|
|
10709
|
+
}, ae = (J) => {
|
|
10710
10710
|
var re = ie();
|
|
10711
10711
|
A(() => te(re, a().formatPrice(r.priceBreakdown.totalAmountInMicros, r.priceBreakdown.currency))), b(J, re);
|
|
10712
10712
|
};
|
|
10713
|
-
N(
|
|
10714
|
-
d(o) ? J(
|
|
10713
|
+
N(G, (J) => {
|
|
10714
|
+
d(o) ? J(W) : J(ae, !1);
|
|
10715
10715
|
});
|
|
10716
10716
|
}
|
|
10717
|
-
b(k,
|
|
10717
|
+
b(k, q);
|
|
10718
10718
|
},
|
|
10719
10719
|
$$slots: { default: !0 }
|
|
10720
10720
|
}), b(g, m);
|
|
10721
10721
|
};
|
|
10722
10722
|
let o = X(null);
|
|
10723
|
-
(_ = r.trialPhase) != null && _.period && D(o,
|
|
10723
|
+
(_ = r.trialPhase) != null && _.period && D(o, B(Xa(/* @__PURE__ */ new Date(), r.trialPhase.period, !0)));
|
|
10724
10724
|
const i = Ee(Ne), s = /* @__PURE__ */ E(() => r.priceBreakdown.taxCalculationStatus !== "unavailable" && r.priceBreakdown.taxCalculationStatus !== "disabled" && r.priceBreakdown.taxBreakdown && r.priceBreakdown.taxBreakdown.length > 0);
|
|
10725
|
-
var l = ee(), c =
|
|
10725
|
+
var l = ee(), c = Y(l);
|
|
10726
10726
|
{
|
|
10727
10727
|
var p = (g) => {
|
|
10728
10728
|
U_(g, {
|
|
@@ -10763,7 +10763,7 @@ function ng(e, r) {
|
|
|
10763
10763
|
var v = /* @__PURE__ */ et(() => ({ productTitle: t().title }));
|
|
10764
10764
|
ur(f, {
|
|
10765
10765
|
get key() {
|
|
10766
|
-
return
|
|
10766
|
+
return L.ProductInfoSubscribeTo;
|
|
10767
10767
|
},
|
|
10768
10768
|
get variables() {
|
|
10769
10769
|
return d(v);
|
|
@@ -10777,7 +10777,7 @@ function ng(e, r) {
|
|
|
10777
10777
|
n && _(s);
|
|
10778
10778
|
});
|
|
10779
10779
|
}
|
|
10780
|
-
var l =
|
|
10780
|
+
var l = O(i, 2), c = P(l);
|
|
10781
10781
|
se(c, {
|
|
10782
10782
|
size: "heading-lg",
|
|
10783
10783
|
branded: !0,
|
|
@@ -10785,7 +10785,7 @@ function ng(e, r) {
|
|
|
10785
10785
|
var m = /* @__PURE__ */ et(() => ({ productTitle: t().title }));
|
|
10786
10786
|
ur(_, {
|
|
10787
10787
|
get key() {
|
|
10788
|
-
return
|
|
10788
|
+
return L.ProductInfoProductTitle;
|
|
10789
10789
|
},
|
|
10790
10790
|
get variables() {
|
|
10791
10791
|
return d(m);
|
|
@@ -10794,7 +10794,7 @@ function ng(e, r) {
|
|
|
10794
10794
|
},
|
|
10795
10795
|
$$slots: { default: !0 }
|
|
10796
10796
|
});
|
|
10797
|
-
var p =
|
|
10797
|
+
var p = O(l, 2);
|
|
10798
10798
|
{
|
|
10799
10799
|
var u = (_) => {
|
|
10800
10800
|
var g = rg(), m = P(g);
|
|
@@ -10806,7 +10806,7 @@ function ng(e, r) {
|
|
|
10806
10806
|
}));
|
|
10807
10807
|
ur(f, {
|
|
10808
10808
|
get key() {
|
|
10809
|
-
return
|
|
10809
|
+
return L.ProductInfoProductDescription;
|
|
10810
10810
|
},
|
|
10811
10811
|
get variables() {
|
|
10812
10812
|
return d(v);
|
|
@@ -10842,7 +10842,7 @@ function lg(e, r) {
|
|
|
10842
10842
|
}));
|
|
10843
10843
|
ur(h, {
|
|
10844
10844
|
get key() {
|
|
10845
|
-
return
|
|
10845
|
+
return L.ProductInfoFreeTrialDuration;
|
|
10846
10846
|
},
|
|
10847
10847
|
get variables() {
|
|
10848
10848
|
return d(y);
|
|
@@ -10857,7 +10857,7 @@ function lg(e, r) {
|
|
|
10857
10857
|
(m = r.trialPhase) != null && m.periodDuration && g(l);
|
|
10858
10858
|
});
|
|
10859
10859
|
}
|
|
10860
|
-
var c =
|
|
10860
|
+
var c = O(s, 2), p = P(c);
|
|
10861
10861
|
se(p, {
|
|
10862
10862
|
size: "heading-lg",
|
|
10863
10863
|
children: (g, m) => {
|
|
@@ -10866,7 +10866,7 @@ function lg(e, r) {
|
|
|
10866
10866
|
},
|
|
10867
10867
|
$$slots: { default: !0 }
|
|
10868
10868
|
});
|
|
10869
|
-
var u =
|
|
10869
|
+
var u = O(p, 2);
|
|
10870
10870
|
{
|
|
10871
10871
|
var _ = (g) => {
|
|
10872
10872
|
se(g, {
|
|
@@ -10906,7 +10906,7 @@ function ug(e, r) {
|
|
|
10906
10906
|
return n();
|
|
10907
10907
|
}
|
|
10908
10908
|
});
|
|
10909
|
-
var _ =
|
|
10909
|
+
var _ = O(u, 2);
|
|
10910
10910
|
lg(_, {
|
|
10911
10911
|
get priceBreakdown() {
|
|
10912
10912
|
return o();
|
|
@@ -10914,7 +10914,7 @@ function ug(e, r) {
|
|
|
10914
10914
|
basePhase: s,
|
|
10915
10915
|
trialPhase: l
|
|
10916
10916
|
});
|
|
10917
|
-
var g =
|
|
10917
|
+
var g = O(p, 2);
|
|
10918
10918
|
$_(g, {
|
|
10919
10919
|
get priceBreakdown() {
|
|
10920
10920
|
return o();
|
|
@@ -10957,7 +10957,7 @@ function gg(e, r) {
|
|
|
10957
10957
|
d(l) && c(d(l));
|
|
10958
10958
|
});
|
|
10959
10959
|
var p = pg(), u = P(p);
|
|
10960
|
-
|
|
10960
|
+
ge(u, () => r.children ?? ne), A(() => {
|
|
10961
10961
|
j(p, "style", d(s)), fr(p, "fullscreen", !n()), fr(p, "inside", n());
|
|
10962
10962
|
}), b(e, p), H();
|
|
10963
10963
|
}
|
|
@@ -10977,7 +10977,7 @@ function yg(e, r) {
|
|
|
10977
10977
|
let t = U(r, "style", 8, ""), a = U(r, "children", 8);
|
|
10978
10978
|
Qe();
|
|
10979
10979
|
var n = mg(), o = P(n), i = P(o);
|
|
10980
|
-
|
|
10980
|
+
ge(i, () => a() ?? ne), A(() => j(o, "style", t())), b(e, n), H();
|
|
10981
10981
|
}
|
|
10982
10982
|
const bg = (e) => e;
|
|
10983
10983
|
function hg(e) {
|
|
@@ -11031,7 +11031,7 @@ function Vi(e, r) {
|
|
|
11031
11031
|
var n = P(a), o = P(n);
|
|
11032
11032
|
Fr(o, `layout-content ${t ?? ""} svelte-1w6qvx7`);
|
|
11033
11033
|
var i = P(o);
|
|
11034
|
-
|
|
11034
|
+
ge(i, () => r.children ?? ne), pi(3, o, () => vg, () => ({ duration: 500, delay: 50 })), b(e, a), H();
|
|
11035
11035
|
}
|
|
11036
11036
|
var Pg = /* @__PURE__ */ I('<div class="navbar-body svelte-jz90ay"><!></div>'), Sg = /* @__PURE__ */ I('<div class="navbar-header svelte-jz90ay"><!></div> <!>', 1), Eg = /* @__PURE__ */ I('<div class="rcb-ui-navbar svelte-jz90ay"><!></div>');
|
|
11037
11037
|
const Tg = {
|
|
@@ -11051,13 +11051,13 @@ function Ig(e, r) {
|
|
|
11051
11051
|
Vi(o, {
|
|
11052
11052
|
location: "navbar",
|
|
11053
11053
|
children: (i, s) => {
|
|
11054
|
-
var l = Sg(), c =
|
|
11055
|
-
|
|
11056
|
-
var u =
|
|
11054
|
+
var l = Sg(), c = Y(l), p = P(c);
|
|
11055
|
+
ge(p, () => r.headerContent ?? ne);
|
|
11056
|
+
var u = O(c, 2);
|
|
11057
11057
|
{
|
|
11058
11058
|
var _ = (g) => {
|
|
11059
11059
|
var m = Pg(), f = P(m);
|
|
11060
|
-
|
|
11060
|
+
ge(f, () => r.bodyContent ?? ne), b(g, m);
|
|
11061
11061
|
};
|
|
11062
11062
|
N(u, (g) => {
|
|
11063
11063
|
r.bodyContent && g(_);
|
|
@@ -11095,7 +11095,7 @@ function Mg(e, r) {
|
|
|
11095
11095
|
K.debugLog("closeBanner"), D(n, !1);
|
|
11096
11096
|
}
|
|
11097
11097
|
Qe();
|
|
11098
|
-
var i = ee(), s =
|
|
11098
|
+
var i = ee(), s = Y(i);
|
|
11099
11099
|
{
|
|
11100
11100
|
var l = (c) => {
|
|
11101
11101
|
var p = Dg(), u = P(p);
|
|
@@ -11107,7 +11107,7 @@ function Mg(e, r) {
|
|
|
11107
11107
|
},
|
|
11108
11108
|
$$slots: { default: !0 }
|
|
11109
11109
|
});
|
|
11110
|
-
var _ =
|
|
11110
|
+
var _ = O(u, 2), g = P(_);
|
|
11111
11111
|
se(g, {
|
|
11112
11112
|
size: "caption-default",
|
|
11113
11113
|
children: (m, f) => {
|
|
@@ -11136,8 +11136,8 @@ function Cg(e, r) {
|
|
|
11136
11136
|
Vi(n, {
|
|
11137
11137
|
location: "main-block",
|
|
11138
11138
|
children: (o, i) => {
|
|
11139
|
-
var s = ee(), l =
|
|
11140
|
-
|
|
11139
|
+
var s = ee(), l = Y(s);
|
|
11140
|
+
ge(l, () => r.children ?? ne), b(o, s);
|
|
11141
11141
|
},
|
|
11142
11142
|
$$slots: { default: !0 }
|
|
11143
11143
|
}), A(() => j(a, "style", d(t))), b(e, a), H();
|
|
@@ -11167,7 +11167,7 @@ function Bg(e, r) {
|
|
|
11167
11167
|
return r.isInElement;
|
|
11168
11168
|
},
|
|
11169
11169
|
children: (o, i) => {
|
|
11170
|
-
var s = Lg(), l =
|
|
11170
|
+
var s = Lg(), l = Y(s);
|
|
11171
11171
|
{
|
|
11172
11172
|
var c = (u) => {
|
|
11173
11173
|
Mg(u, {
|
|
@@ -11183,13 +11183,13 @@ function Bg(e, r) {
|
|
|
11183
11183
|
r.isSandbox && u(c);
|
|
11184
11184
|
});
|
|
11185
11185
|
}
|
|
11186
|
-
var p =
|
|
11186
|
+
var p = O(l, 2);
|
|
11187
11187
|
yg(p, {
|
|
11188
11188
|
get style() {
|
|
11189
11189
|
return d(t);
|
|
11190
11190
|
},
|
|
11191
11191
|
children: (u, _) => {
|
|
11192
|
-
var g = Og(), m =
|
|
11192
|
+
var g = Og(), m = Y(g);
|
|
11193
11193
|
{
|
|
11194
11194
|
var f = (y) => {
|
|
11195
11195
|
var x = /* @__PURE__ */ E(() => {
|
|
@@ -11212,7 +11212,7 @@ function Bg(e, r) {
|
|
|
11212
11212
|
(r.navbarHeaderContent || r.navbarBodyContent) && y(f);
|
|
11213
11213
|
});
|
|
11214
11214
|
}
|
|
11215
|
-
var h =
|
|
11215
|
+
var h = O(m, 2), v = /* @__PURE__ */ E(() => {
|
|
11216
11216
|
var y;
|
|
11217
11217
|
return (y = r.brandingInfo) == null ? void 0 : y.appearance;
|
|
11218
11218
|
});
|
|
@@ -11221,8 +11221,8 @@ function Bg(e, r) {
|
|
|
11221
11221
|
return d(v);
|
|
11222
11222
|
},
|
|
11223
11223
|
children: (y, x) => {
|
|
11224
|
-
var T = ee(), S =
|
|
11225
|
-
|
|
11224
|
+
var T = ee(), S = Y(T);
|
|
11225
|
+
ge(S, () => r.mainContent ?? ne), b(y, T);
|
|
11226
11226
|
},
|
|
11227
11227
|
$$slots: { default: !0 }
|
|
11228
11228
|
}), b(u, g);
|
|
@@ -11240,7 +11240,7 @@ const Hg = {
|
|
|
11240
11240
|
};
|
|
11241
11241
|
function Wg(e, r) {
|
|
11242
11242
|
R(e, Hg);
|
|
11243
|
-
var t = ee(), a =
|
|
11243
|
+
var t = ee(), a = Y(t);
|
|
11244
11244
|
{
|
|
11245
11245
|
var n = (i) => {
|
|
11246
11246
|
var s = Ug(), l = P(s);
|
|
@@ -11253,7 +11253,7 @@ function Wg(e, r) {
|
|
|
11253
11253
|
r.srcWebp && u(c);
|
|
11254
11254
|
});
|
|
11255
11255
|
}
|
|
11256
|
-
var p =
|
|
11256
|
+
var p = O(l, 2);
|
|
11257
11257
|
A(() => j(p, "src", r.src)), b(i, s);
|
|
11258
11258
|
}, o = (i) => {
|
|
11259
11259
|
var s = Vg();
|
|
@@ -11294,7 +11294,7 @@ function Qg(e, r) {
|
|
|
11294
11294
|
r.srcWebp && i(n);
|
|
11295
11295
|
});
|
|
11296
11296
|
}
|
|
11297
|
-
var o =
|
|
11297
|
+
var o = O(a, 2);
|
|
11298
11298
|
A(() => j(o, "src", r.src)), b(e, t);
|
|
11299
11299
|
}
|
|
11300
11300
|
var $g = /* @__PURE__ */ I('<div class="rcb-back-wrapper svelte-11zapuq"><!></div>'), em = /* @__PURE__ */ I('<div class="rcb-close-wrapper svelte-11zapuq"><!></div>'), rm = /* @__PURE__ */ I('<div class="rcb-header-wrapper svelte-11zapuq"><!> <div class="rcb-header svelte-11zapuq"><div class="rcb-title svelte-11zapuq"><!> <!></div></div> <!></div>');
|
|
@@ -11329,14 +11329,14 @@ function am(e, r) {
|
|
|
11329
11329
|
var _ = rm(), g = P(_);
|
|
11330
11330
|
{
|
|
11331
11331
|
var m = (k) => {
|
|
11332
|
-
var w = $g(),
|
|
11333
|
-
Xg(
|
|
11332
|
+
var w = $g(), q = P(w);
|
|
11333
|
+
Xg(q, { $$events: { click: u } }), b(k, w);
|
|
11334
11334
|
};
|
|
11335
11335
|
N(g, (k) => {
|
|
11336
11336
|
r.showCloseButton && k(m);
|
|
11337
11337
|
});
|
|
11338
11338
|
}
|
|
11339
|
-
var f =
|
|
11339
|
+
var f = O(g, 2), h = P(f), v = P(h);
|
|
11340
11340
|
{
|
|
11341
11341
|
var y = (k) => {
|
|
11342
11342
|
Qg(k, {
|
|
@@ -11348,10 +11348,10 @@ function am(e, r) {
|
|
|
11348
11348
|
}
|
|
11349
11349
|
});
|
|
11350
11350
|
}, x = (k) => {
|
|
11351
|
-
var w = ee(),
|
|
11351
|
+
var w = ee(), q = Y(w);
|
|
11352
11352
|
{
|
|
11353
|
-
var
|
|
11354
|
-
Wg(
|
|
11353
|
+
var G = (W) => {
|
|
11354
|
+
Wg(W, {
|
|
11355
11355
|
get src() {
|
|
11356
11356
|
return d(s);
|
|
11357
11357
|
},
|
|
@@ -11361,9 +11361,9 @@ function am(e, r) {
|
|
|
11361
11361
|
});
|
|
11362
11362
|
};
|
|
11363
11363
|
N(
|
|
11364
|
-
|
|
11365
|
-
(
|
|
11366
|
-
d(s) !== null && d(l) !== null && G
|
|
11364
|
+
q,
|
|
11365
|
+
(W) => {
|
|
11366
|
+
d(s) !== null && d(l) !== null && W(G);
|
|
11367
11367
|
},
|
|
11368
11368
|
!0
|
|
11369
11369
|
);
|
|
@@ -11374,17 +11374,17 @@ function am(e, r) {
|
|
|
11374
11374
|
d(c) !== null ? k(y) : k(x, !1);
|
|
11375
11375
|
});
|
|
11376
11376
|
}
|
|
11377
|
-
var T =
|
|
11377
|
+
var T = O(v, 2);
|
|
11378
11378
|
{
|
|
11379
11379
|
var S = (k) => {
|
|
11380
11380
|
se(k, {
|
|
11381
11381
|
size: "body-base",
|
|
11382
|
-
children: (w,
|
|
11383
|
-
var
|
|
11382
|
+
children: (w, q) => {
|
|
11383
|
+
var G = ie();
|
|
11384
11384
|
A(() => {
|
|
11385
|
-
var
|
|
11386
|
-
return te(
|
|
11387
|
-
}), b(w,
|
|
11385
|
+
var W;
|
|
11386
|
+
return te(G, (W = r.brandingInfo) == null ? void 0 : W.app_name);
|
|
11387
|
+
}), b(w, G);
|
|
11388
11388
|
},
|
|
11389
11389
|
$$slots: { default: !0 }
|
|
11390
11390
|
});
|
|
@@ -11393,14 +11393,14 @@ function am(e, r) {
|
|
|
11393
11393
|
d(c) === null && k(S);
|
|
11394
11394
|
});
|
|
11395
11395
|
}
|
|
11396
|
-
var
|
|
11396
|
+
var z = O(f, 2);
|
|
11397
11397
|
{
|
|
11398
|
-
var
|
|
11399
|
-
var w = em(),
|
|
11400
|
-
Hi(
|
|
11398
|
+
var C = (k) => {
|
|
11399
|
+
var w = em(), q = P(w);
|
|
11400
|
+
Hi(q, { $$events: { click: u } }), b(k, w);
|
|
11401
11401
|
};
|
|
11402
|
-
N(
|
|
11403
|
-
r.showCloseButton && k(
|
|
11402
|
+
N(z, (k) => {
|
|
11403
|
+
r.showCloseButton && k(C);
|
|
11404
11404
|
});
|
|
11405
11405
|
}
|
|
11406
11406
|
A(() => fr(_, "rcb-with-close-button", r.showCloseButton)), b(e, _), H();
|
|
@@ -11409,7 +11409,7 @@ var nm = /* @__PURE__ */ I("<!> <!> <!> <!>", 1);
|
|
|
11409
11409
|
function om(e, r) {
|
|
11410
11410
|
V(r, !0);
|
|
11411
11411
|
const t = U(r, "onClose", 3, void 0);
|
|
11412
|
-
let a = X(
|
|
11412
|
+
let a = X(B(r.defaultPriceBreakdown ?? {
|
|
11413
11413
|
currency: r.productDetails.currentPrice.currency,
|
|
11414
11414
|
totalAmountInMicros: r.productDetails.currentPrice.amountMicros,
|
|
11415
11415
|
totalExcludingTaxInMicros: r.productDetails.currentPrice.amountMicros,
|
|
@@ -11418,7 +11418,7 @@ function om(e, r) {
|
|
|
11418
11418
|
taxBreakdown: null
|
|
11419
11419
|
}));
|
|
11420
11420
|
const n = (o) => {
|
|
11421
|
-
D(a,
|
|
11421
|
+
D(a, B(o));
|
|
11422
11422
|
};
|
|
11423
11423
|
Bg(e, {
|
|
11424
11424
|
get brandingInfo() {
|
|
@@ -11468,7 +11468,7 @@ function om(e, r) {
|
|
|
11468
11468
|
});
|
|
11469
11469
|
},
|
|
11470
11470
|
mainContent: (l) => {
|
|
11471
|
-
var c = nm(), p =
|
|
11471
|
+
var c = nm(), p = Y(c);
|
|
11472
11472
|
{
|
|
11473
11473
|
var u = (y) => {
|
|
11474
11474
|
L_(y);
|
|
@@ -11477,7 +11477,7 @@ function om(e, r) {
|
|
|
11477
11477
|
r.currentPage === "payment-entry-loading" && y(u);
|
|
11478
11478
|
});
|
|
11479
11479
|
}
|
|
11480
|
-
var _ =
|
|
11480
|
+
var _ = O(p, 2);
|
|
11481
11481
|
{
|
|
11482
11482
|
var g = (y) => {
|
|
11483
11483
|
a_(y, {
|
|
@@ -11518,7 +11518,7 @@ function om(e, r) {
|
|
|
11518
11518
|
r.currentPage === "payment-entry" && y(g);
|
|
11519
11519
|
});
|
|
11520
11520
|
}
|
|
11521
|
-
var m =
|
|
11521
|
+
var m = O(_, 2);
|
|
11522
11522
|
{
|
|
11523
11523
|
var f = (y) => {
|
|
11524
11524
|
var x = /* @__PURE__ */ E(() => {
|
|
@@ -11550,7 +11550,7 @@ function om(e, r) {
|
|
|
11550
11550
|
r.currentPage === "error" && y(f);
|
|
11551
11551
|
});
|
|
11552
11552
|
}
|
|
11553
|
-
var h =
|
|
11553
|
+
var h = O(m, 2);
|
|
11554
11554
|
{
|
|
11555
11555
|
var v = (y) => {
|
|
11556
11556
|
O_(y, {
|
|
@@ -11578,23 +11578,23 @@ function im(e) {
|
|
|
11578
11578
|
function sm(e) {
|
|
11579
11579
|
if (e && !e.match(/^[A-Z]{3}$/)) {
|
|
11580
11580
|
const r = `Currency code ${e} is not valid. Please provide a valid ISO 4217 currency code.`;
|
|
11581
|
-
throw K.errorLog(r), new
|
|
11581
|
+
throw K.errorLog(r), new _e(he.ConfigurationError, r);
|
|
11582
11582
|
}
|
|
11583
11583
|
}
|
|
11584
11584
|
function lm(e, r) {
|
|
11585
|
-
var
|
|
11585
|
+
var C;
|
|
11586
11586
|
V(r, !0);
|
|
11587
11587
|
const t = U(r, "customTranslations", 19, () => ({})), a = r.customerEmail ? im(r.customerEmail) : null;
|
|
11588
|
-
let n = X(
|
|
11588
|
+
let n = X(B(a ? void 0 : r.customerEmail)), o = r.rcPackage.webBillingProduct, i = X(null);
|
|
11589
11589
|
const s = r.rcPackage.webBillingProduct.identifier ?? null;
|
|
11590
|
-
let l = X("payment-entry-loading"), c = X(null), p = X(null), u = X(
|
|
11590
|
+
let l = X("payment-entry-loading"), c = X(null), p = X(null), u = X(B({})), _ = X(null), g = X(null), m = X(null), f = X(null), h = new va(t(), r.selectedLocale, r.defaultLocale);
|
|
11591
11591
|
var v = hi(h);
|
|
11592
|
-
Ia(Ne, v), Ia(Pn, (
|
|
11593
|
-
r.isInElement || (D(g,
|
|
11592
|
+
Ia(Ne, v), Ia(Pn, (C = r.brandingInfo) == null ? void 0 : C.appearance), We(() => {
|
|
11593
|
+
r.isInElement || (D(g, B(document.documentElement.style.height)), D(m, B(document.documentElement.style.overflow)), D(f, B(document.body.style.height)), document.documentElement.style.height = "100%", document.body.style.height = "100%", document.documentElement.style.overflow = "hidden");
|
|
11594
11594
|
}), Nt(() => {
|
|
11595
11595
|
if (!r.isInElement) {
|
|
11596
|
-
const k = (w,
|
|
11597
|
-
|
|
11596
|
+
const k = (w, q, G) => {
|
|
11597
|
+
G === "" ? w.style.removeProperty(q) : w.style.setProperty(q, G);
|
|
11598
11598
|
};
|
|
11599
11599
|
k(document.documentElement, "height", d(g)), k(document.body, "height", d(f)), k(document.documentElement, "overflow", d(m));
|
|
11600
11600
|
}
|
|
@@ -11604,11 +11604,11 @@ function lm(e, r) {
|
|
|
11604
11604
|
return;
|
|
11605
11605
|
}
|
|
11606
11606
|
r.purchaseOperationHelper.checkoutStart(r.appUserId, s, r.purchaseOption, r.rcPackage.webBillingProduct.presentedOfferingContext, d(n), r.metadata).then((k) => {
|
|
11607
|
-
D(i, null), D(l, "payment-entry"), D(u,
|
|
11607
|
+
D(i, null), D(l, "payment-entry"), D(u, B(k.gateway_params)), D(_, B(k.management_url));
|
|
11608
11608
|
}).catch((k) => {
|
|
11609
11609
|
if (k.errorCode === oe.MissingEmailError)
|
|
11610
11610
|
return D(n, void 0), r.purchaseOperationHelper.checkoutStart(r.appUserId, s, r.purchaseOption, r.rcPackage.webBillingProduct.presentedOfferingContext, d(n), r.metadata).then((w) => {
|
|
11611
|
-
D(i, null), D(l, "payment-entry"), D(u,
|
|
11611
|
+
D(i, null), D(l, "payment-entry"), D(u, B(w.gateway_params)), D(_, B(w.management_url));
|
|
11612
11612
|
}).catch((w) => {
|
|
11613
11613
|
x(w);
|
|
11614
11614
|
});
|
|
@@ -11618,7 +11618,7 @@ function lm(e, r) {
|
|
|
11618
11618
|
const y = () => {
|
|
11619
11619
|
if (d(l) === "payment-entry") {
|
|
11620
11620
|
r.purchaseOperationHelper.pollCurrentPurchaseForCompletion().then((k) => {
|
|
11621
|
-
D(l, "success"), D(c,
|
|
11621
|
+
D(l, "success"), D(c, B(k.redemptionInfo)), D(p, B(k.operationSessionId));
|
|
11622
11622
|
}).catch((k) => {
|
|
11623
11623
|
x(k);
|
|
11624
11624
|
});
|
|
@@ -11634,11 +11634,11 @@ function lm(e, r) {
|
|
|
11634
11634
|
errorCode: k.getErrorCode().toString(),
|
|
11635
11635
|
errorMessage: k.message
|
|
11636
11636
|
});
|
|
11637
|
-
r.eventsTracker.trackSDKEvent(w), D(i,
|
|
11637
|
+
r.eventsTracker.trackSDKEvent(w), D(i, B(k)), D(l, "error");
|
|
11638
11638
|
}, T = () => {
|
|
11639
11639
|
r.onError(d(i) ?? new de(oe.UnknownError, "Unknown error without state set."));
|
|
11640
11640
|
};
|
|
11641
|
-
var S = /* @__PURE__ */ E(() => r.purchases.isSandbox()),
|
|
11641
|
+
var S = /* @__PURE__ */ E(() => r.purchases.isSandbox()), z = /* @__PURE__ */ E(() => d(n) ?? null);
|
|
11642
11642
|
om(e, {
|
|
11643
11643
|
get isSandbox() {
|
|
11644
11644
|
return d(S);
|
|
@@ -11669,7 +11669,7 @@ function lm(e, r) {
|
|
|
11669
11669
|
return r.isInElement;
|
|
11670
11670
|
},
|
|
11671
11671
|
get customerEmail() {
|
|
11672
|
-
return d(
|
|
11672
|
+
return d(z);
|
|
11673
11673
|
},
|
|
11674
11674
|
closeWithError: T,
|
|
11675
11675
|
onContinue: y,
|
|
@@ -11696,8 +11696,8 @@ function cm(e, r, t, a) {
|
|
|
11696
11696
|
r,
|
|
11697
11697
|
a[n]
|
|
11698
11698
|
);
|
|
11699
|
-
throw new
|
|
11700
|
-
|
|
11699
|
+
throw new _e(
|
|
11700
|
+
he.CustomerInfoError,
|
|
11701
11701
|
"Could not find entitlement product in subscriptions or non-subscriptions."
|
|
11702
11702
|
);
|
|
11703
11703
|
}
|
|
@@ -11879,7 +11879,7 @@ function ym(e) {
|
|
|
11879
11879
|
}
|
|
11880
11880
|
return r;
|
|
11881
11881
|
}
|
|
11882
|
-
const Gi = "1.
|
|
11882
|
+
const Gi = "1.7.0", bm = "https://api.revenuecat.com", hm = "https://e.revenue.cat";
|
|
11883
11883
|
var da;
|
|
11884
11884
|
(function(e) {
|
|
11885
11885
|
e[e.CONTINUE = 100] = "CONTINUE", e[e.SWITCHING_PROTOCOLS = 101] = "SWITCHING_PROTOCOLS", e[e.PROCESSING = 102] = "PROCESSING", e[e.EARLY_HINTS = 103] = "EARLY_HINTS", e[e.OK = 200] = "OK", e[e.CREATED = 201] = "CREATED", e[e.ACCEPTED = 202] = "ACCEPTED", e[e.NON_AUTHORITATIVE_INFORMATION = 203] = "NON_AUTHORITATIVE_INFORMATION", e[e.NO_CONTENT = 204] = "NO_CONTENT", e[e.RESET_CONTENT = 205] = "RESET_CONTENT", e[e.PARTIAL_CONTENT = 206] = "PARTIAL_CONTENT", e[e.MULTI_STATUS = 207] = "MULTI_STATUS", e[e.MULTIPLE_CHOICES = 300] = "MULTIPLE_CHOICES", e[e.MOVED_PERMANENTLY = 301] = "MOVED_PERMANENTLY", e[e.MOVED_TEMPORARILY = 302] = "MOVED_TEMPORARILY", e[e.SEE_OTHER = 303] = "SEE_OTHER", e[e.NOT_MODIFIED = 304] = "NOT_MODIFIED", e[e.USE_PROXY = 305] = "USE_PROXY", e[e.TEMPORARY_REDIRECT = 307] = "TEMPORARY_REDIRECT", e[e.PERMANENT_REDIRECT = 308] = "PERMANENT_REDIRECT", e[e.BAD_REQUEST = 400] = "BAD_REQUEST", e[e.UNAUTHORIZED = 401] = "UNAUTHORIZED", e[e.PAYMENT_REQUIRED = 402] = "PAYMENT_REQUIRED", e[e.FORBIDDEN = 403] = "FORBIDDEN", e[e.NOT_FOUND = 404] = "NOT_FOUND", e[e.METHOD_NOT_ALLOWED = 405] = "METHOD_NOT_ALLOWED", e[e.NOT_ACCEPTABLE = 406] = "NOT_ACCEPTABLE", e[e.PROXY_AUTHENTICATION_REQUIRED = 407] = "PROXY_AUTHENTICATION_REQUIRED", e[e.REQUEST_TIMEOUT = 408] = "REQUEST_TIMEOUT", e[e.CONFLICT = 409] = "CONFLICT", e[e.GONE = 410] = "GONE", e[e.LENGTH_REQUIRED = 411] = "LENGTH_REQUIRED", e[e.PRECONDITION_FAILED = 412] = "PRECONDITION_FAILED", e[e.REQUEST_TOO_LONG = 413] = "REQUEST_TOO_LONG", e[e.REQUEST_URI_TOO_LONG = 414] = "REQUEST_URI_TOO_LONG", e[e.UNSUPPORTED_MEDIA_TYPE = 415] = "UNSUPPORTED_MEDIA_TYPE", e[e.REQUESTED_RANGE_NOT_SATISFIABLE = 416] = "REQUESTED_RANGE_NOT_SATISFIABLE", e[e.EXPECTATION_FAILED = 417] = "EXPECTATION_FAILED", e[e.IM_A_TEAPOT = 418] = "IM_A_TEAPOT", e[e.INSUFFICIENT_SPACE_ON_RESOURCE = 419] = "INSUFFICIENT_SPACE_ON_RESOURCE", e[e.METHOD_FAILURE = 420] = "METHOD_FAILURE", e[e.MISDIRECTED_REQUEST = 421] = "MISDIRECTED_REQUEST", e[e.UNPROCESSABLE_ENTITY = 422] = "UNPROCESSABLE_ENTITY", e[e.LOCKED = 423] = "LOCKED", e[e.FAILED_DEPENDENCY = 424] = "FAILED_DEPENDENCY", e[e.UPGRADE_REQUIRED = 426] = "UPGRADE_REQUIRED", e[e.PRECONDITION_REQUIRED = 428] = "PRECONDITION_REQUIRED", e[e.TOO_MANY_REQUESTS = 429] = "TOO_MANY_REQUESTS", e[e.REQUEST_HEADER_FIELDS_TOO_LARGE = 431] = "REQUEST_HEADER_FIELDS_TOO_LARGE", e[e.UNAVAILABLE_FOR_LEGAL_REASONS = 451] = "UNAVAILABLE_FOR_LEGAL_REASONS", e[e.INTERNAL_SERVER_ERROR = 500] = "INTERNAL_SERVER_ERROR", e[e.NOT_IMPLEMENTED = 501] = "NOT_IMPLEMENTED", e[e.BAD_GATEWAY = 502] = "BAD_GATEWAY", e[e.SERVICE_UNAVAILABLE = 503] = "SERVICE_UNAVAILABLE", e[e.GATEWAY_TIMEOUT = 504] = "GATEWAY_TIMEOUT", e[e.HTTP_VERSION_NOT_SUPPORTED = 505] = "HTTP_VERSION_NOT_SUPPORTED", e[e.INSUFFICIENT_STORAGE = 507] = "INSUFFICIENT_STORAGE", e[e.NETWORK_AUTHENTICATION_REQUIRED = 511] = "NETWORK_AUTHENTICATION_REQUIRED";
|
|
@@ -11898,9 +11898,9 @@ async function gr(e, r, t) {
|
|
|
11898
11898
|
});
|
|
11899
11899
|
return await vm(c, e), await c.json();
|
|
11900
11900
|
} catch (c) {
|
|
11901
|
-
throw c instanceof TypeError ? new
|
|
11902
|
-
|
|
11903
|
-
kt.getPublicMessage(
|
|
11901
|
+
throw c instanceof TypeError ? new _e(
|
|
11902
|
+
he.NetworkError,
|
|
11903
|
+
kt.getPublicMessage(he.NetworkError),
|
|
11904
11904
|
c.message
|
|
11905
11905
|
) : c;
|
|
11906
11906
|
}
|
|
@@ -11921,7 +11921,7 @@ async function vm(e, r) {
|
|
|
11921
11921
|
o
|
|
11922
11922
|
);
|
|
11923
11923
|
else
|
|
11924
|
-
throw
|
|
11924
|
+
throw _e.getForBackendError(
|
|
11925
11925
|
s,
|
|
11926
11926
|
i
|
|
11927
11927
|
);
|
|
@@ -11930,8 +11930,8 @@ async function vm(e, r) {
|
|
|
11930
11930
|
}
|
|
11931
11931
|
}
|
|
11932
11932
|
function Da(e, r, t, a) {
|
|
11933
|
-
throw new
|
|
11934
|
-
|
|
11933
|
+
throw new _e(
|
|
11934
|
+
he.UnknownBackendError,
|
|
11935
11935
|
"Unknown backend error.",
|
|
11936
11936
|
`Request: ${e.name}. Status code: ${r}. Body: ${t}.`,
|
|
11937
11937
|
{ backendErrorCode: a }
|
|
@@ -12193,8 +12193,8 @@ class Dm {
|
|
|
12193
12193
|
function Am(e) {
|
|
12194
12194
|
const r = /^rcb_[a-zA-Z0-9_.-]+$/, t = /^pdl_[a-zA-Z0-9_.-]+$/;
|
|
12195
12195
|
if (!r.test(e) && !t.test(e))
|
|
12196
|
-
throw new
|
|
12197
|
-
|
|
12196
|
+
throw new _e(
|
|
12197
|
+
he.InvalidCredentialsError,
|
|
12198
12198
|
"Invalid API key. Use your Web Billing or Paddle API key."
|
|
12199
12199
|
);
|
|
12200
12200
|
}
|
|
@@ -12212,15 +12212,15 @@ function So(e) {
|
|
|
12212
12212
|
"undefined",
|
|
12213
12213
|
"unknown"
|
|
12214
12214
|
])).has(e) || e.includes("/"))
|
|
12215
|
-
throw new
|
|
12216
|
-
|
|
12215
|
+
throw new _e(
|
|
12216
|
+
he.InvalidAppUserIdError,
|
|
12217
12217
|
'Provided user id: "' + (e ?? "[Not provided]") + '" is not valid. See https://www.revenuecat.com/docs/customers/user-ids#tips-for-setting-app-user-ids for more information.'
|
|
12218
12218
|
);
|
|
12219
12219
|
}
|
|
12220
12220
|
function Mm(e) {
|
|
12221
12221
|
if (e != null && e.endsWith("/"))
|
|
12222
|
-
throw new
|
|
12223
|
-
|
|
12222
|
+
throw new _e(
|
|
12223
|
+
he.ConfigurationError,
|
|
12224
12224
|
"Invalid proxy URL. The proxy URL should not end with a trailing slash."
|
|
12225
12225
|
);
|
|
12226
12226
|
}
|
|
@@ -12228,8 +12228,8 @@ function jm(e) {
|
|
|
12228
12228
|
if (e) {
|
|
12229
12229
|
for (const r in e)
|
|
12230
12230
|
if (wm.has(r))
|
|
12231
|
-
throw new
|
|
12232
|
-
|
|
12231
|
+
throw new _e(
|
|
12232
|
+
he.ConfigurationError,
|
|
12233
12233
|
"Invalid additional headers. Some headers are reserved for internal use."
|
|
12234
12234
|
);
|
|
12235
12235
|
}
|
|
@@ -12331,7 +12331,7 @@ function Bm(e) {
|
|
|
12331
12331
|
return e.webBillingProduct.defaultPurchaseOption;
|
|
12332
12332
|
}
|
|
12333
12333
|
function Eo(e, r, t, a = !1) {
|
|
12334
|
-
return t.translate(
|
|
12334
|
+
return t.translate(L.PaywallVariablesPricePerPeriod, {
|
|
12335
12335
|
formattedPrice: e,
|
|
12336
12336
|
period: r.base.period ? t.translatePeriod(
|
|
12337
12337
|
r.base.period.number,
|
|
@@ -12344,7 +12344,7 @@ function Eo(e, r, t, a = !1) {
|
|
|
12344
12344
|
});
|
|
12345
12345
|
}
|
|
12346
12346
|
function Rm(e, r) {
|
|
12347
|
-
return e.unit === "year" ? r.translatePeriod(e.number * 12,
|
|
12347
|
+
return e.unit === "year" ? r.translatePeriod(e.number * 12, xe.Month) : r.translatePeriod(e.number, e.unit);
|
|
12348
12348
|
}
|
|
12349
12349
|
function Um({
|
|
12350
12350
|
price: e,
|
|
@@ -12383,29 +12383,29 @@ function To({
|
|
|
12383
12383
|
full: t = !1,
|
|
12384
12384
|
translator: a
|
|
12385
12385
|
}) {
|
|
12386
|
-
if (!r || !r.number || r.unit ===
|
|
12386
|
+
if (!r || !r.number || r.unit === xe.Month && r.number == 1)
|
|
12387
12387
|
return a.formatPrice(e.amountMicros, e.currency);
|
|
12388
12388
|
let n = "";
|
|
12389
12389
|
switch (r.unit) {
|
|
12390
|
-
case
|
|
12390
|
+
case xe.Year:
|
|
12391
12391
|
n = a.formatPrice(
|
|
12392
12392
|
e.amountMicros / 12,
|
|
12393
12393
|
e.currency
|
|
12394
12394
|
);
|
|
12395
12395
|
break;
|
|
12396
|
-
case
|
|
12396
|
+
case xe.Month:
|
|
12397
12397
|
n = a.formatPrice(
|
|
12398
12398
|
e.amountMicros / r.number,
|
|
12399
12399
|
e.currency
|
|
12400
12400
|
);
|
|
12401
12401
|
break;
|
|
12402
|
-
case
|
|
12402
|
+
case xe.Week:
|
|
12403
12403
|
n = a.formatPrice(
|
|
12404
12404
|
e.amountMicros * 4 / r.number,
|
|
12405
12405
|
e.currency
|
|
12406
12406
|
);
|
|
12407
12407
|
break;
|
|
12408
|
-
case
|
|
12408
|
+
case xe.Day:
|
|
12409
12409
|
n = a.formatPrice(
|
|
12410
12410
|
e.amountMicros * 30 / r.number,
|
|
12411
12411
|
e.currency
|
|
@@ -12413,7 +12413,7 @@ function To({
|
|
|
12413
12413
|
break;
|
|
12414
12414
|
}
|
|
12415
12415
|
return a.translate(
|
|
12416
|
-
|
|
12416
|
+
L.PaywallVariablesTotalPriceAndPerMonth,
|
|
12417
12417
|
{
|
|
12418
12418
|
formattedPrice: a.formatPrice(
|
|
12419
12419
|
e.amountMicros,
|
|
@@ -12424,7 +12424,7 @@ function To({
|
|
|
12424
12424
|
short: !t
|
|
12425
12425
|
}),
|
|
12426
12426
|
formattedPricePerMonth: n,
|
|
12427
|
-
monthPeriod: a.translatePeriodUnit(
|
|
12427
|
+
monthPeriod: a.translatePeriodUnit(xe.Month, {
|
|
12428
12428
|
noWhitespace: !0,
|
|
12429
12429
|
short: !t
|
|
12430
12430
|
})
|
|
@@ -12514,25 +12514,25 @@ function Wm(e, r, t) {
|
|
|
12514
12514
|
}) : void 0;
|
|
12515
12515
|
const c = a.currentPrice.amountMicros, p = r.webBillingProduct.currentPrice.amountMicros, u = ((p - c) * 100 / p).toFixed(0);
|
|
12516
12516
|
s.sub_relative_discount = c === p ? "" : t.translate(
|
|
12517
|
-
|
|
12517
|
+
L.PaywallVariablesSubRelativeDiscount,
|
|
12518
12518
|
{
|
|
12519
12519
|
discount: u
|
|
12520
12520
|
}
|
|
12521
12521
|
);
|
|
12522
12522
|
}
|
|
12523
12523
|
return (i === Lr.NonConsumable || i === Lr.Consumable) && o && (s.price = n, s.price_per_period = n, s.price_per_period_full = n, s.total_price_and_per_month = n, s.sub_price_per_month = n, s.sub_duration = t.translate(
|
|
12524
|
-
|
|
12524
|
+
L.PeriodsLifetime
|
|
12525
12525
|
), s.sub_duration_in_months = t.translate(
|
|
12526
|
-
|
|
12526
|
+
L.PeriodsLifetime
|
|
12527
12527
|
), s.sub_period = t.translate(
|
|
12528
|
-
|
|
12528
|
+
L.PeriodsLifetime
|
|
12529
12529
|
), s.sub_price_per_week = void 0, s.sub_relative_discount = void 0, s.price_per_period_full = n, s.total_price_and_per_month_full = n, s.sub_period_length = void 0, s.sub_period_abbreviated = void 0), s;
|
|
12530
12530
|
}
|
|
12531
|
-
const
|
|
12531
|
+
const we = [];
|
|
12532
12532
|
for (let e = 0; e < 256; ++e)
|
|
12533
|
-
|
|
12533
|
+
we.push((e + 256).toString(16).slice(1));
|
|
12534
12534
|
function Ym(e, r = 0) {
|
|
12535
|
-
return (
|
|
12535
|
+
return (we[e[r + 0]] + we[e[r + 1]] + we[e[r + 2]] + we[e[r + 3]] + "-" + we[e[r + 4]] + we[e[r + 5]] + "-" + we[e[r + 6]] + we[e[r + 7]] + "-" + we[e[r + 8]] + we[e[r + 9]] + "-" + we[e[r + 10]] + we[e[r + 11]] + we[e[r + 12]] + we[e[r + 13]] + we[e[r + 14]] + we[e[r + 15]]).toLowerCase();
|
|
12536
12536
|
}
|
|
12537
12537
|
let Aa;
|
|
12538
12538
|
const Gm = new Uint8Array(16);
|
|
@@ -12843,11 +12843,11 @@ const gf = () => {
|
|
|
12843
12843
|
const n = e.get(a);
|
|
12844
12844
|
n !== null && (t[a] = n);
|
|
12845
12845
|
}), t;
|
|
12846
|
-
}, Ma = {
|
|
12846
|
+
}, mf = ["app", "embedded"], Ma = {
|
|
12847
12847
|
autoCollectUTMAsMetadata: !0,
|
|
12848
12848
|
collectAnalyticsEvents: !0
|
|
12849
12849
|
};
|
|
12850
|
-
function
|
|
12850
|
+
function ff() {
|
|
12851
12851
|
if (crypto && crypto.randomUUID)
|
|
12852
12852
|
return crypto.randomUUID();
|
|
12853
12853
|
const e = new Uint8Array(16);
|
|
@@ -12866,11 +12866,11 @@ function mf() {
|
|
|
12866
12866
|
r.slice(10, 16).join("")
|
|
12867
12867
|
].join("-");
|
|
12868
12868
|
}
|
|
12869
|
-
var
|
|
12869
|
+
var yf = /* @__PURE__ */ ((e) => (e.DisplayName = "$displayName", e.Email = "$email", e.PhoneNumber = "$phoneNumber", e.IDFA = "$idfa", e.IDFV = "$idfv", e.GPSAdId = "$gpsAdId", e.AndroidId = "$androidId", e.AmazonAdId = "$amazonAdId", e.IP = "$ip", e.AdjustId = "$adjustId", e.AmplitudeDeviceId = "$amplitudeDeviceId", e.AmplitudeUserId = "$amplitudeUserId", e.AppsflyerId = "$appsflyerId", e.AppsflyerSharingFilter = "$appsflyerSharingFilter", e.BranchId = "$branchId", e.BrazeAliasName = "$brazeAliasName", e.BrazeAliasLabel = "$brazeAliasLabel", e.ClevertapId = "$clevertapId", e.FbAnonId = "$fbAnonId", e.MparticleId = "$mparticleId", e.OnesignalId = "$onesignalId", e.OnesignalUserId = "$onesignalUserId", e.IntercomContactId = "$intercomContactId", e.MediaSource = "$mediaSource", e.Campaign = "$campaign", e.AdGroup = "$adGroup", e.AdId = "$ad", e.Keyword = "$keyword", e.Creative = "$creative", e.APNSTokens = "$apnsTokens", e.FCMTokens = "$fcmTokens", e.AirshipChannelId = "$airshipChannelId", e.SegmentId = "$segmentId", e.IterableUserId = "$iterableUserId", e.IterableCampaignId = "$iterableCampaignId", e.IterableTemplateId = "$iterableTemplateId", e.FirebaseAppInstanceId = "$firebaseAppInstanceId", e.MixpanelDistinctId = "$mixpanelDistinctId", e.ATTConsentStatus = "$attConsentStatus", e.KochavaDeviceId = "$kochavaDeviceId", e.DeviceVersion = "$deviceVersion", e.PosthogUserId = "$posthogUserId", e.TelemetryDeckUserId = "$telemetryDeckUserId", e.TelemetryDeckAppId = "$telemetryDeckAppId", e.AppleRefundHandlingPreference = "$appleRefundHandlingPreference", e.CustomerioId = "$customerioId", e.TenjinId = "$tenjinId", e))(yf || {});
|
|
12870
12870
|
const qo = "$RCAnonymousID:";
|
|
12871
12871
|
var Fo, ja;
|
|
12872
12872
|
Fo = [Nm];
|
|
12873
|
-
const
|
|
12873
|
+
const be = class be {
|
|
12874
12874
|
/** @internal */
|
|
12875
12875
|
constructor(r, t, a = tn, n = Ma) {
|
|
12876
12876
|
Wn(ja, 5, this);
|
|
@@ -12916,42 +12916,67 @@ const ke = class ke {
|
|
|
12916
12916
|
* @experimental
|
|
12917
12917
|
* */
|
|
12918
12918
|
static setPlatformInfo(r) {
|
|
12919
|
-
|
|
12919
|
+
be._platformInfo = r;
|
|
12920
12920
|
}
|
|
12921
12921
|
/** @internal */
|
|
12922
12922
|
static getPlatformInfo() {
|
|
12923
|
-
return
|
|
12923
|
+
return be._platformInfo;
|
|
12924
12924
|
}
|
|
12925
12925
|
/**
|
|
12926
12926
|
* Get the singleton instance of Purchases. It's preferred to use the instance
|
|
12927
|
-
* obtained from the
|
|
12927
|
+
* obtained from the `configure` method when possible.
|
|
12928
12928
|
* @throws {@link UninitializedPurchasesError} if the instance has not been initialized yet.
|
|
12929
12929
|
*/
|
|
12930
12930
|
static getSharedInstance() {
|
|
12931
|
-
if (
|
|
12932
|
-
return
|
|
12931
|
+
if (be.isConfigured())
|
|
12932
|
+
return be.instance;
|
|
12933
12933
|
throw new Xl();
|
|
12934
12934
|
}
|
|
12935
12935
|
/**
|
|
12936
12936
|
* Returns whether the Purchases SDK is configured or not.
|
|
12937
12937
|
*/
|
|
12938
12938
|
static isConfigured() {
|
|
12939
|
-
return
|
|
12939
|
+
return be.instance !== void 0;
|
|
12940
12940
|
}
|
|
12941
|
-
|
|
12942
|
-
|
|
12943
|
-
* has a unique user id for your user. You should only call this once, and
|
|
12944
|
-
* keep the returned instance around for use throughout your application.
|
|
12945
|
-
* @param apiKey - RevenueCat API Key. Can be obtained from the RevenueCat dashboard.
|
|
12946
|
-
* @param appUserId - Your unique id for identifying the user.
|
|
12947
|
-
* @param httpConfig - Advanced http configuration to customise the SDK usage {@link HttpConfig}.
|
|
12948
|
-
* @param flags - Advanced functionality configuration {@link FlagsConfig}.
|
|
12949
|
-
* @throws {@link PurchasesError} if the API key or user id are invalid.
|
|
12950
|
-
*/
|
|
12951
|
-
static configure(r, t, a = tn, n = Ma) {
|
|
12952
|
-
return ke.instance !== void 0 && K.warnLog(
|
|
12941
|
+
static configure(r, t, a, n) {
|
|
12942
|
+
be.instance !== void 0 && K.warnLog(
|
|
12953
12943
|
"Purchases is already initialized. You normally should only configure Purchases once. Creating and returning new instance."
|
|
12954
|
-
)
|
|
12944
|
+
);
|
|
12945
|
+
let o;
|
|
12946
|
+
if (typeof r == "object" && r !== null)
|
|
12947
|
+
o = r;
|
|
12948
|
+
else {
|
|
12949
|
+
if (typeof r != "string")
|
|
12950
|
+
throw new _e(
|
|
12951
|
+
he.ConfigurationError,
|
|
12952
|
+
"API key must be provided as a string"
|
|
12953
|
+
);
|
|
12954
|
+
if (typeof t != "string")
|
|
12955
|
+
throw new _e(
|
|
12956
|
+
he.ConfigurationError,
|
|
12957
|
+
"App user ID must be provided as a string"
|
|
12958
|
+
);
|
|
12959
|
+
o = {
|
|
12960
|
+
apiKey: r,
|
|
12961
|
+
appUserId: t,
|
|
12962
|
+
httpConfig: a,
|
|
12963
|
+
flags: n
|
|
12964
|
+
};
|
|
12965
|
+
}
|
|
12966
|
+
return be.configureInternal(o), be.getSharedInstance();
|
|
12967
|
+
}
|
|
12968
|
+
static configureInternal(r) {
|
|
12969
|
+
const { apiKey: t, appUserId: a, httpConfig: n, flags: o } = r, i = n ?? tn, s = o ?? Ma;
|
|
12970
|
+
be.validateConfig(r), be.instance = new be(
|
|
12971
|
+
t,
|
|
12972
|
+
a,
|
|
12973
|
+
i,
|
|
12974
|
+
s
|
|
12975
|
+
);
|
|
12976
|
+
}
|
|
12977
|
+
static validateConfig(r) {
|
|
12978
|
+
var t, a;
|
|
12979
|
+
Am(r.apiKey), So(r.appUserId), Mm((t = r.httpConfig) == null ? void 0 : t.proxyURL), jm((a = r.httpConfig) == null ? void 0 : a.additionalHeaders);
|
|
12955
12980
|
}
|
|
12956
12981
|
/**
|
|
12957
12982
|
* Loads and caches some optional data in the Purchases SDK.
|
|
@@ -12970,7 +12995,7 @@ const ke = class ke {
|
|
|
12970
12995
|
}
|
|
12971
12996
|
return this._loadingResourcesPromise = this.fetchAndCacheBrandingInfo().catch((r) => {
|
|
12972
12997
|
let t = `${r}`;
|
|
12973
|
-
r instanceof
|
|
12998
|
+
r instanceof _e && (t = `${r.message}. ${r.underlyingErrorMessage ? `Underlying error: ${r.underlyingErrorMessage}` : ""}`), K.errorLog(`Error fetching branding info: ${t}`);
|
|
12974
12999
|
}).finally(() => {
|
|
12975
13000
|
this._loadingResourcesPromise = null;
|
|
12976
13001
|
}), this._loadingResourcesPromise;
|
|
@@ -13058,7 +13083,7 @@ const ke = class ke {
|
|
|
13058
13083
|
r.onBack();
|
|
13059
13084
|
return;
|
|
13060
13085
|
}
|
|
13061
|
-
n.innerHTML = "", K.debugLog("Purchase cancelled by user"), m(new
|
|
13086
|
+
n.innerHTML = "", K.debugLog("Purchase cancelled by user"), m(new _e(he.UserCancelledError));
|
|
13062
13087
|
},
|
|
13063
13088
|
onRestorePurchasesClicked: p,
|
|
13064
13089
|
onPurchaseClicked: (f) => {
|
|
@@ -13178,11 +13203,11 @@ const ke = class ke {
|
|
|
13178
13203
|
const y = n !== void 0;
|
|
13179
13204
|
return new Promise((T, S) => {
|
|
13180
13205
|
y || window.history.pushState({ checkoutOpen: !0 }, "");
|
|
13181
|
-
const
|
|
13182
|
-
const
|
|
13183
|
-
this.eventsTracker.trackSDKEvent(
|
|
13206
|
+
const C = this._flags.rcSource && mf.includes(this._flags.rcSource) ? void 0 : () => {
|
|
13207
|
+
const q = ip();
|
|
13208
|
+
this.eventsTracker.trackSDKEvent(q), window.removeEventListener("popstate", C), h && qa(h), c.innerHTML = "", K.debugLog("Purchase cancelled by user"), S(new _e(he.UserCancelledError));
|
|
13184
13209
|
};
|
|
13185
|
-
!y &&
|
|
13210
|
+
!y && C && window.addEventListener("popstate", C), h = ro(lm, {
|
|
13186
13211
|
target: c,
|
|
13187
13212
|
props: {
|
|
13188
13213
|
isInElement: y,
|
|
@@ -13190,26 +13215,26 @@ const ke = class ke {
|
|
|
13190
13215
|
rcPackage: t,
|
|
13191
13216
|
purchaseOption: _,
|
|
13192
13217
|
customerEmail: o,
|
|
13193
|
-
onFinished: async (
|
|
13194
|
-
const
|
|
13195
|
-
redemptionInfo:
|
|
13218
|
+
onFinished: async (q, G) => {
|
|
13219
|
+
const W = op({
|
|
13220
|
+
redemptionInfo: G
|
|
13196
13221
|
});
|
|
13197
|
-
this.eventsTracker.trackSDKEvent(
|
|
13198
|
-
const
|
|
13222
|
+
this.eventsTracker.trackSDKEvent(W), K.debugLog("Purchase finished"), h && qa(h), c.innerHTML = "";
|
|
13223
|
+
const ae = {
|
|
13199
13224
|
customerInfo: await this._getCustomerInfoForUserId(p),
|
|
13200
|
-
redemptionInfo:
|
|
13201
|
-
operationSessionId:
|
|
13225
|
+
redemptionInfo: G,
|
|
13226
|
+
operationSessionId: q
|
|
13202
13227
|
};
|
|
13203
|
-
T(
|
|
13228
|
+
T(ae);
|
|
13204
13229
|
},
|
|
13205
|
-
onClose:
|
|
13206
|
-
onError: (
|
|
13207
|
-
var
|
|
13208
|
-
const
|
|
13209
|
-
errorCode: (
|
|
13210
|
-
errorMessage:
|
|
13230
|
+
onClose: C,
|
|
13231
|
+
onError: (q) => {
|
|
13232
|
+
var W;
|
|
13233
|
+
const G = sp({
|
|
13234
|
+
errorCode: (W = q.errorCode) == null ? void 0 : W.toString(),
|
|
13235
|
+
errorMessage: q.message
|
|
13211
13236
|
});
|
|
13212
|
-
this.eventsTracker.trackSDKEvent(
|
|
13237
|
+
this.eventsTracker.trackSDKEvent(G), h && qa(h), c.innerHTML = "", S(_e.getForPurchasesFlowError(q));
|
|
13213
13238
|
},
|
|
13214
13239
|
purchases: this,
|
|
13215
13240
|
eventsTracker: this.eventsTracker,
|
|
@@ -13288,7 +13313,7 @@ const ke = class ke {
|
|
|
13288
13313
|
* Closes the Purchases instance. You should never have to do this normally.
|
|
13289
13314
|
*/
|
|
13290
13315
|
close() {
|
|
13291
|
-
|
|
13316
|
+
be.instance === this ? (this.eventsTracker && this.eventsTracker.dispose(), be.instance = void 0) : K.warnLog(
|
|
13292
13317
|
"Trying to close a Purchases instance that is not the current instance. Ignoring."
|
|
13293
13318
|
);
|
|
13294
13319
|
}
|
|
@@ -13306,7 +13331,7 @@ const ke = class ke {
|
|
|
13306
13331
|
* @public
|
|
13307
13332
|
*/
|
|
13308
13333
|
static generateRevenueCatAnonymousAppUserId() {
|
|
13309
|
-
return `${qo}${
|
|
13334
|
+
return `${qo}${ff().replace(/-/g, "")}`;
|
|
13310
13335
|
}
|
|
13311
13336
|
/**
|
|
13312
13337
|
* Track an event.
|
|
@@ -13317,19 +13342,19 @@ const ke = class ke {
|
|
|
13317
13342
|
this.eventsTracker.trackExternalEvent(r);
|
|
13318
13343
|
}
|
|
13319
13344
|
};
|
|
13320
|
-
ja = Vn(null), Yn(ja, 1, "purchase", Fo,
|
|
13321
|
-
M(
|
|
13322
|
-
M(
|
|
13323
|
-
let an =
|
|
13345
|
+
ja = Vn(null), Yn(ja, 1, "purchase", Fo, be), Sa(ja, be), /** @internal */
|
|
13346
|
+
M(be, "_platformInfo"), /** @internal */
|
|
13347
|
+
M(be, "instance");
|
|
13348
|
+
let an = be;
|
|
13324
13349
|
export {
|
|
13325
|
-
|
|
13350
|
+
he as ErrorCode,
|
|
13326
13351
|
Ae as LogLevel,
|
|
13327
13352
|
as as OfferingKeyword,
|
|
13328
13353
|
o_ as PackageType,
|
|
13329
|
-
|
|
13354
|
+
xe as PeriodUnit,
|
|
13330
13355
|
Lr as ProductType,
|
|
13331
13356
|
an as Purchases,
|
|
13332
|
-
|
|
13333
|
-
|
|
13357
|
+
_e as PurchasesError,
|
|
13358
|
+
yf as ReservedCustomerAttribute,
|
|
13334
13359
|
Xl as UninitializedPurchasesError
|
|
13335
13360
|
};
|