@revenuecat/purchases-js 0.0.14 → 0.0.16
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/README.md +31 -18
- package/dist/Purchases.es.d.ts +110 -79
- package/dist/Purchases.es.js +850 -790
- package/dist/Purchases.umd.js +2 -2
- package/package.json +1 -1
package/dist/Purchases.es.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
function
|
|
1
|
+
var Tt = Object.defineProperty;
|
|
2
|
+
var Pt = (t, e, r) => e in t ? Tt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
+
var Q = (t, e, r) => (Pt(t, typeof e != "symbol" ? e + "" : e, r), r);
|
|
4
|
+
function Nt(t) {
|
|
5
5
|
return t != null;
|
|
6
6
|
}
|
|
7
|
-
var
|
|
8
|
-
const
|
|
7
|
+
var Rt = /* @__PURE__ */ ((t) => (t.Unknown = "unknown", t.Custom = "custom", t.Lifetime = "$rc_lifetime", t.Annual = "$rc_annual", t.SixMonth = "$rc_six_month", t.ThreeMonth = "$rc_three_month", t.TwoMonth = "$rc_two_month", t.Monthly = "$rc_monthly", t.Weekly = "$rc_weekly", t))(Rt || {});
|
|
8
|
+
const Ut = (t, e) => ({
|
|
9
9
|
identifier: t.identifier,
|
|
10
10
|
displayName: t.title,
|
|
11
11
|
currentPrice: t.current_price,
|
|
12
12
|
normalPeriodDuration: t.normal_period_duration,
|
|
13
13
|
presentedOfferingIdentifier: e
|
|
14
|
-
}),
|
|
14
|
+
}), Ct = (t, e, r) => {
|
|
15
15
|
const n = r[e.platform_product_identifier];
|
|
16
16
|
return n === void 0 ? null : {
|
|
17
17
|
identifier: e.identifier,
|
|
18
|
-
rcBillingProduct:
|
|
19
|
-
packageType:
|
|
18
|
+
rcBillingProduct: Ut(n, t),
|
|
19
|
+
packageType: Ot(e.identifier)
|
|
20
20
|
};
|
|
21
|
-
},
|
|
21
|
+
}, Ge = (t, e) => {
|
|
22
22
|
const r = t.packages.map(
|
|
23
|
-
(i) =>
|
|
24
|
-
).filter(
|
|
23
|
+
(i) => Ct(t.identifier, i, e)
|
|
24
|
+
).filter(Nt), n = {};
|
|
25
25
|
for (const i of r)
|
|
26
26
|
i != null && (n[i.identifier] = i);
|
|
27
27
|
return r.length == 0 ? null : {
|
|
@@ -39,7 +39,7 @@ const Nt = (t, e) => ({
|
|
|
39
39
|
weekly: n.$rc_weekly ?? null
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
|
-
function
|
|
42
|
+
function Ot(t) {
|
|
43
43
|
switch (t) {
|
|
44
44
|
case "$rc_lifetime":
|
|
45
45
|
return "$rc_lifetime";
|
|
@@ -61,7 +61,7 @@ function Ct(t) {
|
|
|
61
61
|
}
|
|
62
62
|
function D() {
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function St(t, e) {
|
|
65
65
|
for (const r in e)
|
|
66
66
|
t[r] = e[r];
|
|
67
67
|
return (
|
|
@@ -69,52 +69,52 @@ function Ut(t, e) {
|
|
|
69
69
|
t
|
|
70
70
|
);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function ft(t) {
|
|
73
73
|
return t();
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function Ye() {
|
|
76
76
|
return /* @__PURE__ */ Object.create(null);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
t.forEach(
|
|
78
|
+
function Ae(t) {
|
|
79
|
+
t.forEach(ft);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function le(t) {
|
|
82
82
|
return typeof t == "function";
|
|
83
83
|
}
|
|
84
84
|
function R(t, e) {
|
|
85
85
|
return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
|
|
86
86
|
}
|
|
87
|
-
let
|
|
88
|
-
function
|
|
89
|
-
return t === e ? !0 : (
|
|
87
|
+
let pe;
|
|
88
|
+
function V(t, e) {
|
|
89
|
+
return t === e ? !0 : (pe || (pe = document.createElement("a")), pe.href = e, t === pe.href);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function He(t) {
|
|
92
92
|
return t.split(",").map((e) => e.trim().split(" ").filter(Boolean));
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
const r =
|
|
94
|
+
function Lt(t, e) {
|
|
95
|
+
const r = He(t.srcset), n = He(e || "");
|
|
96
96
|
return n.length === r.length && n.every(
|
|
97
97
|
([i, l], s) => l === r[s][1] && // We need to test both ways because Vite will create an a full URL with
|
|
98
98
|
// `new URL(asset, import.meta.url).href` for the client when `base: './'`, and the
|
|
99
99
|
// relative URLs inside srcset are not automatically resolved to absolute URLs by
|
|
100
100
|
// browsers (in contrast to img.src). This means both SSR and DOM code could
|
|
101
101
|
// contain relative or absolute URLs.
|
|
102
|
-
(
|
|
102
|
+
(V(r[s][0], i) || V(i, r[s][0]))
|
|
103
103
|
);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function Ft(t) {
|
|
106
106
|
return Object.keys(t).length === 0;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function K(t, e, r, n) {
|
|
109
109
|
if (t) {
|
|
110
|
-
const i =
|
|
110
|
+
const i = dt(t, e, r, n);
|
|
111
111
|
return t[0](i);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
function
|
|
115
|
-
return t[1] && n ?
|
|
114
|
+
function dt(t, e, r, n) {
|
|
115
|
+
return t[1] && n ? St(r.ctx.slice(), t[1](n(e))) : r.ctx;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function j(t, e, r, n) {
|
|
118
118
|
if (t[2] && n) {
|
|
119
119
|
const i = t[2](n(r));
|
|
120
120
|
if (e.dirty === void 0)
|
|
@@ -129,13 +129,13 @@ function K(t, e, r, n) {
|
|
|
129
129
|
}
|
|
130
130
|
return e.dirty;
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function J(t, e, r, n, i, l) {
|
|
133
133
|
if (i) {
|
|
134
|
-
const s =
|
|
134
|
+
const s = dt(e, r, n, l);
|
|
135
135
|
t.p(s, i);
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function x(t) {
|
|
139
139
|
if (t.ctx.length > 32) {
|
|
140
140
|
const e = [], r = t.ctx.length / 32;
|
|
141
141
|
for (let n = 0; n < r; n++)
|
|
@@ -144,20 +144,20 @@ function J(t) {
|
|
|
144
144
|
}
|
|
145
145
|
return -1;
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function de(t) {
|
|
148
148
|
return t ?? "";
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function T(t, e) {
|
|
151
151
|
t.appendChild(e);
|
|
152
152
|
}
|
|
153
153
|
function S(t, e, r) {
|
|
154
|
-
const n =
|
|
154
|
+
const n = Gt(t);
|
|
155
155
|
if (!n.getElementById(e)) {
|
|
156
156
|
const i = $("style");
|
|
157
|
-
i.id = e, i.textContent = r,
|
|
157
|
+
i.id = e, i.textContent = r, Yt(n, i);
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function Gt(t) {
|
|
161
161
|
if (!t)
|
|
162
162
|
return document;
|
|
163
163
|
const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
|
|
@@ -167,8 +167,8 @@ function Lt(t) {
|
|
|
167
167
|
e
|
|
168
168
|
) : t.ownerDocument;
|
|
169
169
|
}
|
|
170
|
-
function
|
|
171
|
-
return
|
|
170
|
+
function Yt(t, e) {
|
|
171
|
+
return T(
|
|
172
172
|
/** @type {Document} */
|
|
173
173
|
t.head || t,
|
|
174
174
|
e
|
|
@@ -189,13 +189,13 @@ function L(t) {
|
|
|
189
189
|
function P() {
|
|
190
190
|
return L(" ");
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function X() {
|
|
193
193
|
return L("");
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function _e(t, e, r, n) {
|
|
196
196
|
return t.addEventListener(e, r, n), () => t.removeEventListener(e, r, n);
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function mt(t) {
|
|
199
199
|
return function(e) {
|
|
200
200
|
return e.preventDefault(), t.call(this, e);
|
|
201
201
|
};
|
|
@@ -203,55 +203,55 @@ function ft(t) {
|
|
|
203
203
|
function h(t, e, r) {
|
|
204
204
|
r == null ? t.removeAttribute(e) : t.getAttribute(e) !== r && t.setAttribute(e, r);
|
|
205
205
|
}
|
|
206
|
-
const
|
|
207
|
-
function
|
|
206
|
+
const Ht = ["width", "height"];
|
|
207
|
+
function Kt(t, e) {
|
|
208
208
|
const r = Object.getOwnPropertyDescriptors(t.__proto__);
|
|
209
209
|
for (const n in e)
|
|
210
|
-
e[n] == null ? t.removeAttribute(n) : n === "style" ? t.style.cssText = e[n] : n === "__value" ? t.value = t[n] = e[n] : r[n] && r[n].set &&
|
|
210
|
+
e[n] == null ? t.removeAttribute(n) : n === "style" ? t.style.cssText = e[n] : n === "__value" ? t.value = t[n] = e[n] : r[n] && r[n].set && Ht.indexOf(n) === -1 ? t[n] = e[n] : h(t, n, e[n]);
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function jt(t, e) {
|
|
213
213
|
Object.keys(e).forEach((r) => {
|
|
214
|
-
|
|
214
|
+
Jt(t, r, e[r]);
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function Jt(t, e, r) {
|
|
218
218
|
const n = e.toLowerCase();
|
|
219
219
|
n in t ? t[n] = typeof t[n] == "boolean" && r === "" ? !0 : r : e in t ? t[e] = typeof t[e] == "boolean" && r === "" ? !0 : r : h(t, e, r);
|
|
220
220
|
}
|
|
221
|
-
function
|
|
222
|
-
return /-/.test(t) ?
|
|
221
|
+
function xt(t) {
|
|
222
|
+
return /-/.test(t) ? jt : Kt;
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function Vt(t) {
|
|
225
225
|
return Array.from(t.childNodes);
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function re(t, e) {
|
|
228
228
|
e = "" + e, t.data !== e && (t.data = /** @type {string} */
|
|
229
229
|
e);
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function Ke(t, e) {
|
|
232
232
|
t.value = e ?? "";
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function qt(t, e, { bubbles: r = !1, cancelable: n = !1 } = {}) {
|
|
235
235
|
return new CustomEvent(t, { detail: e, bubbles: r, cancelable: n });
|
|
236
236
|
}
|
|
237
|
-
let
|
|
238
|
-
function
|
|
239
|
-
|
|
237
|
+
let me;
|
|
238
|
+
function fe(t) {
|
|
239
|
+
me = t;
|
|
240
240
|
}
|
|
241
|
-
function
|
|
242
|
-
if (!
|
|
241
|
+
function De() {
|
|
242
|
+
if (!me)
|
|
243
243
|
throw new Error("Function called outside component initialization");
|
|
244
|
-
return
|
|
244
|
+
return me;
|
|
245
245
|
}
|
|
246
|
-
function
|
|
247
|
-
|
|
246
|
+
function ve(t) {
|
|
247
|
+
De().$$.on_mount.push(t);
|
|
248
248
|
}
|
|
249
|
-
function
|
|
250
|
-
const t =
|
|
249
|
+
function Wt() {
|
|
250
|
+
const t = De();
|
|
251
251
|
return (e, r, { cancelable: n = !1 } = {}) => {
|
|
252
252
|
const i = t.$$.callbacks[e];
|
|
253
253
|
if (i) {
|
|
254
|
-
const l =
|
|
254
|
+
const l = qt(
|
|
255
255
|
/** @type {string} */
|
|
256
256
|
e,
|
|
257
257
|
r,
|
|
@@ -264,94 +264,94 @@ function Vt() {
|
|
|
264
264
|
return !0;
|
|
265
265
|
};
|
|
266
266
|
}
|
|
267
|
-
function
|
|
268
|
-
return
|
|
267
|
+
function zt(t, e) {
|
|
268
|
+
return De().$$.context.set(t, e), e;
|
|
269
269
|
}
|
|
270
|
-
function
|
|
271
|
-
return
|
|
270
|
+
function Xt(t) {
|
|
271
|
+
return De().$$.context.get(t);
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function gt(t, e) {
|
|
274
274
|
const r = t.$$.callbacks[e.type];
|
|
275
275
|
r && r.slice().forEach((n) => n.call(this, e));
|
|
276
276
|
}
|
|
277
|
-
const
|
|
278
|
-
let
|
|
279
|
-
const Ce = [],
|
|
280
|
-
let
|
|
281
|
-
function
|
|
282
|
-
|
|
277
|
+
const ne = [], ke = [];
|
|
278
|
+
let ie = [];
|
|
279
|
+
const Ce = [], Zt = /* @__PURE__ */ Promise.resolve();
|
|
280
|
+
let Oe = !1;
|
|
281
|
+
function en() {
|
|
282
|
+
Oe || (Oe = !0, Zt.then(At));
|
|
283
283
|
}
|
|
284
|
-
function
|
|
285
|
-
|
|
284
|
+
function Se(t) {
|
|
285
|
+
ie.push(t);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function tn(t) {
|
|
288
288
|
Ce.push(t);
|
|
289
289
|
}
|
|
290
|
-
const
|
|
291
|
-
let
|
|
292
|
-
function
|
|
293
|
-
if (
|
|
290
|
+
const Ne = /* @__PURE__ */ new Set();
|
|
291
|
+
let ee = 0;
|
|
292
|
+
function At() {
|
|
293
|
+
if (ee !== 0)
|
|
294
294
|
return;
|
|
295
|
-
const t =
|
|
295
|
+
const t = me;
|
|
296
296
|
do {
|
|
297
297
|
try {
|
|
298
|
-
for (;
|
|
299
|
-
const e =
|
|
300
|
-
|
|
298
|
+
for (; ee < ne.length; ) {
|
|
299
|
+
const e = ne[ee];
|
|
300
|
+
ee++, fe(e), nn(e.$$);
|
|
301
301
|
}
|
|
302
302
|
} catch (e) {
|
|
303
|
-
throw
|
|
303
|
+
throw ne.length = 0, ee = 0, e;
|
|
304
304
|
}
|
|
305
|
-
for (
|
|
306
|
-
|
|
307
|
-
for (let e = 0; e <
|
|
308
|
-
const r =
|
|
309
|
-
|
|
305
|
+
for (fe(null), ne.length = 0, ee = 0; ke.length; )
|
|
306
|
+
ke.pop()();
|
|
307
|
+
for (let e = 0; e < ie.length; e += 1) {
|
|
308
|
+
const r = ie[e];
|
|
309
|
+
Ne.has(r) || (Ne.add(r), r());
|
|
310
310
|
}
|
|
311
|
-
|
|
312
|
-
} while (
|
|
311
|
+
ie.length = 0;
|
|
312
|
+
} while (ne.length);
|
|
313
313
|
for (; Ce.length; )
|
|
314
314
|
Ce.pop()();
|
|
315
|
-
|
|
315
|
+
Oe = !1, Ne.clear(), fe(t);
|
|
316
316
|
}
|
|
317
|
-
function
|
|
317
|
+
function nn(t) {
|
|
318
318
|
if (t.fragment !== null) {
|
|
319
|
-
t.update(),
|
|
319
|
+
t.update(), Ae(t.before_update);
|
|
320
320
|
const e = t.dirty;
|
|
321
|
-
t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(
|
|
321
|
+
t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(Se);
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function rn(t) {
|
|
325
325
|
const e = [], r = [];
|
|
326
|
-
|
|
326
|
+
ie.forEach((n) => t.indexOf(n) === -1 ? e.push(n) : r.push(n)), r.forEach((n) => n()), ie = e;
|
|
327
327
|
}
|
|
328
|
-
const
|
|
329
|
-
let
|
|
328
|
+
const we = /* @__PURE__ */ new Set();
|
|
329
|
+
let W;
|
|
330
330
|
function F() {
|
|
331
|
-
|
|
331
|
+
W = {
|
|
332
332
|
r: 0,
|
|
333
333
|
c: [],
|
|
334
|
-
p:
|
|
334
|
+
p: W
|
|
335
335
|
// parent group
|
|
336
336
|
};
|
|
337
337
|
}
|
|
338
338
|
function G() {
|
|
339
|
-
|
|
339
|
+
W.r || Ae(W.c), W = W.p;
|
|
340
340
|
}
|
|
341
341
|
function a(t, e) {
|
|
342
|
-
t && t.i && (
|
|
342
|
+
t && t.i && (we.delete(t), t.i(e));
|
|
343
343
|
}
|
|
344
344
|
function f(t, e, r, n) {
|
|
345
345
|
if (t && t.o) {
|
|
346
|
-
if (
|
|
346
|
+
if (we.has(t))
|
|
347
347
|
return;
|
|
348
|
-
|
|
349
|
-
|
|
348
|
+
we.add(t), W.c.push(() => {
|
|
349
|
+
we.delete(t), n && (r && t.d(1), n());
|
|
350
350
|
}), t.o(e);
|
|
351
351
|
} else
|
|
352
352
|
n && n();
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function ln(t, e, r) {
|
|
355
355
|
const n = t.$$.props[e];
|
|
356
356
|
n !== void 0 && (t.$$.bound[n] = r, r(t.$$.ctx[n]));
|
|
357
357
|
}
|
|
@@ -360,21 +360,21 @@ function b(t) {
|
|
|
360
360
|
}
|
|
361
361
|
function I(t, e, r) {
|
|
362
362
|
const { fragment: n, after_update: i } = t.$$;
|
|
363
|
-
n && n.m(e, r),
|
|
364
|
-
const l = t.$$.on_mount.map(
|
|
365
|
-
t.$$.on_destroy ? t.$$.on_destroy.push(...l) :
|
|
366
|
-
}), i.forEach(
|
|
363
|
+
n && n.m(e, r), Se(() => {
|
|
364
|
+
const l = t.$$.on_mount.map(ft).filter(le);
|
|
365
|
+
t.$$.on_destroy ? t.$$.on_destroy.push(...l) : Ae(l), t.$$.on_mount = [];
|
|
366
|
+
}), i.forEach(Se);
|
|
367
367
|
}
|
|
368
368
|
function w(t, e) {
|
|
369
369
|
const r = t.$$;
|
|
370
|
-
r.fragment !== null && (
|
|
370
|
+
r.fragment !== null && (rn(r.after_update), Ae(r.on_destroy), r.fragment && r.fragment.d(e), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
371
371
|
}
|
|
372
|
-
function
|
|
373
|
-
t.$$.dirty[0] === -1 && (
|
|
372
|
+
function sn(t, e) {
|
|
373
|
+
t.$$.dirty[0] === -1 && (ne.push(t), en(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
374
374
|
}
|
|
375
|
-
function
|
|
376
|
-
const c =
|
|
377
|
-
|
|
375
|
+
function U(t, e, r, n, i, l, s = null, o = [-1]) {
|
|
376
|
+
const c = me;
|
|
377
|
+
fe(t);
|
|
378
378
|
const u = t.$$ = {
|
|
379
379
|
fragment: null,
|
|
380
380
|
ctx: [],
|
|
@@ -382,7 +382,7 @@ function C(t, e, r, n, i, l, s = null, o = [-1]) {
|
|
|
382
382
|
props: l,
|
|
383
383
|
update: D,
|
|
384
384
|
not_equal: i,
|
|
385
|
-
bound:
|
|
385
|
+
bound: Ye(),
|
|
386
386
|
// lifecycle
|
|
387
387
|
on_mount: [],
|
|
388
388
|
on_destroy: [],
|
|
@@ -391,7 +391,7 @@ function C(t, e, r, n, i, l, s = null, o = [-1]) {
|
|
|
391
391
|
after_update: [],
|
|
392
392
|
context: new Map(e.context || (c ? c.$$.context : [])),
|
|
393
393
|
// everything else
|
|
394
|
-
callbacks:
|
|
394
|
+
callbacks: Ye(),
|
|
395
395
|
dirty: o,
|
|
396
396
|
skip_bound: !1,
|
|
397
397
|
root: e.target || c.$$.root
|
|
@@ -400,18 +400,18 @@ function C(t, e, r, n, i, l, s = null, o = [-1]) {
|
|
|
400
400
|
let _ = !1;
|
|
401
401
|
if (u.ctx = r ? r(t, e.props || {}, (m, B, ...k) => {
|
|
402
402
|
const E = k.length ? k[0] : B;
|
|
403
|
-
return u.ctx && i(u.ctx[m], u.ctx[m] = E) && (!u.skip_bound && u.bound[m] && u.bound[m](E), _ &&
|
|
404
|
-
}) : [], u.update(), _ = !0,
|
|
403
|
+
return u.ctx && i(u.ctx[m], u.ctx[m] = E) && (!u.skip_bound && u.bound[m] && u.bound[m](E), _ && sn(t, m)), B;
|
|
404
|
+
}) : [], u.update(), _ = !0, Ae(u.before_update), u.fragment = n ? n(u.ctx) : !1, e.target) {
|
|
405
405
|
if (e.hydrate) {
|
|
406
|
-
const m =
|
|
406
|
+
const m = Vt(e.target);
|
|
407
407
|
u.fragment && u.fragment.l(m), m.forEach(g);
|
|
408
408
|
} else
|
|
409
409
|
u.fragment && u.fragment.c();
|
|
410
|
-
e.intro && a(t.$$.fragment), I(t, e.target, e.anchor),
|
|
410
|
+
e.intro && a(t.$$.fragment), I(t, e.target, e.anchor), At();
|
|
411
411
|
}
|
|
412
|
-
|
|
412
|
+
fe(c);
|
|
413
413
|
}
|
|
414
|
-
class
|
|
414
|
+
class C {
|
|
415
415
|
constructor() {
|
|
416
416
|
/**
|
|
417
417
|
* ### PRIVATE API
|
|
@@ -420,7 +420,7 @@ class U {
|
|
|
420
420
|
*
|
|
421
421
|
* @type {any}
|
|
422
422
|
*/
|
|
423
|
-
|
|
423
|
+
Q(this, "$$");
|
|
424
424
|
/**
|
|
425
425
|
* ### PRIVATE API
|
|
426
426
|
*
|
|
@@ -428,7 +428,7 @@ class U {
|
|
|
428
428
|
*
|
|
429
429
|
* @type {any}
|
|
430
430
|
*/
|
|
431
|
-
|
|
431
|
+
Q(this, "$$set");
|
|
432
432
|
}
|
|
433
433
|
/** @returns {void} */
|
|
434
434
|
$destroy() {
|
|
@@ -441,7 +441,7 @@ class U {
|
|
|
441
441
|
* @returns {() => void}
|
|
442
442
|
*/
|
|
443
443
|
$on(e, r) {
|
|
444
|
-
if (!
|
|
444
|
+
if (!le(r))
|
|
445
445
|
return D;
|
|
446
446
|
const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
447
447
|
return n.push(r), () => {
|
|
@@ -454,15 +454,15 @@ class U {
|
|
|
454
454
|
* @returns {void}
|
|
455
455
|
*/
|
|
456
456
|
$set(e) {
|
|
457
|
-
this.$$set && !
|
|
457
|
+
this.$$set && !Ft(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
|
-
const
|
|
461
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
462
|
-
function
|
|
460
|
+
const on = "4";
|
|
461
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(on);
|
|
462
|
+
function cn(t) {
|
|
463
463
|
S(t, "svelte-8uc6s0", "aside.svelte-8uc6s0{color:yellowgreen;font-weight:bold;text-transform:uppercase;padding:0.5rem 0;width:100%;font-size:0.75rem;border-radius:0.5rem}");
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function an(t) {
|
|
466
466
|
let e;
|
|
467
467
|
return {
|
|
468
468
|
c() {
|
|
@@ -479,20 +479,20 @@ function on(t) {
|
|
|
479
479
|
}
|
|
480
480
|
};
|
|
481
481
|
}
|
|
482
|
-
class
|
|
482
|
+
class un extends C {
|
|
483
483
|
constructor(e) {
|
|
484
|
-
super(),
|
|
484
|
+
super(), U(this, e, null, an, R, {}, cn);
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function fn(t) {
|
|
488
488
|
S(t, "svelte-ujomz3", ".rcb-modal-section.svelte-ujomz3{padding:0.5rem 0rem;display:flex}.rcb-modal-section.svelte-ujomz3:last-of-type{padding:0}");
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function Re(t) {
|
|
491
491
|
let e, r;
|
|
492
492
|
const n = (
|
|
493
493
|
/*#slots*/
|
|
494
494
|
t[2].default
|
|
495
|
-
), i =
|
|
495
|
+
), i = K(
|
|
496
496
|
n,
|
|
497
497
|
t,
|
|
498
498
|
/*$$scope*/
|
|
@@ -504,11 +504,11 @@ function Ne(t) {
|
|
|
504
504
|
e = $(
|
|
505
505
|
/*as*/
|
|
506
506
|
t[0]
|
|
507
|
-
), i && i.c(),
|
|
507
|
+
), i && i.c(), xt(
|
|
508
508
|
/*as*/
|
|
509
509
|
t[0]
|
|
510
510
|
)(e, {
|
|
511
|
-
class:
|
|
511
|
+
class: de("rcb-modal-section") + " svelte-ujomz3"
|
|
512
512
|
});
|
|
513
513
|
},
|
|
514
514
|
m(l, s) {
|
|
@@ -516,19 +516,19 @@ function Ne(t) {
|
|
|
516
516
|
},
|
|
517
517
|
p(l, s) {
|
|
518
518
|
i && i.p && (!r || s & /*$$scope*/
|
|
519
|
-
2) &&
|
|
519
|
+
2) && J(
|
|
520
520
|
i,
|
|
521
521
|
n,
|
|
522
522
|
l,
|
|
523
523
|
/*$$scope*/
|
|
524
524
|
l[1],
|
|
525
|
-
r ?
|
|
525
|
+
r ? j(
|
|
526
526
|
n,
|
|
527
527
|
/*$$scope*/
|
|
528
528
|
l[1],
|
|
529
529
|
s,
|
|
530
530
|
null
|
|
531
|
-
) :
|
|
531
|
+
) : x(
|
|
532
532
|
/*$$scope*/
|
|
533
533
|
l[1]
|
|
534
534
|
),
|
|
@@ -546,17 +546,17 @@ function Ne(t) {
|
|
|
546
546
|
}
|
|
547
547
|
};
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function dn(t) {
|
|
550
550
|
let e = (
|
|
551
551
|
/*as*/
|
|
552
552
|
t[0]
|
|
553
553
|
), r, n, i = (
|
|
554
554
|
/*as*/
|
|
555
|
-
t[0] &&
|
|
555
|
+
t[0] && Re(t)
|
|
556
556
|
);
|
|
557
557
|
return {
|
|
558
558
|
c() {
|
|
559
|
-
i && i.c(), r =
|
|
559
|
+
i && i.c(), r = X();
|
|
560
560
|
},
|
|
561
561
|
m(l, s) {
|
|
562
562
|
i && i.m(l, s), A(l, r, s), n = !0;
|
|
@@ -567,8 +567,8 @@ function un(t) {
|
|
|
567
567
|
e,
|
|
568
568
|
/*as*/
|
|
569
569
|
l[0]
|
|
570
|
-
) ? (i.d(1), i =
|
|
571
|
-
l[0], i.c(), i.m(r.parentNode, r)) : i.p(l, s) : (i =
|
|
570
|
+
) ? (i.d(1), i = Re(l), e = /*as*/
|
|
571
|
+
l[0], i.c(), i.m(r.parentNode, r)) : i.p(l, s) : (i = Re(l), e = /*as*/
|
|
572
572
|
l[0], i.c(), i.m(r.parentNode, r)) : e && (i.d(1), i = null, e = /*as*/
|
|
573
573
|
l[0]);
|
|
574
574
|
},
|
|
@@ -583,86 +583,86 @@ function un(t) {
|
|
|
583
583
|
}
|
|
584
584
|
};
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function mn(t, e, r) {
|
|
587
587
|
let { $$slots: n = {}, $$scope: i } = e, { as: l = "section" } = e;
|
|
588
588
|
return t.$$set = (s) => {
|
|
589
589
|
"as" in s && r(0, l = s.as), "$$scope" in s && r(1, i = s.$$scope);
|
|
590
590
|
}, [l, i, n];
|
|
591
591
|
}
|
|
592
|
-
class
|
|
592
|
+
class q extends C {
|
|
593
593
|
constructor(e) {
|
|
594
|
-
super(),
|
|
594
|
+
super(), U(this, e, mn, dn, R, { as: 0 }, fn);
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
|
-
const
|
|
597
|
+
const gn = {
|
|
598
598
|
Y: "year",
|
|
599
599
|
M: "month",
|
|
600
600
|
W: "week",
|
|
601
601
|
D: "day",
|
|
602
602
|
H: "hour"
|
|
603
|
-
},
|
|
603
|
+
}, je = (t, e) => {
|
|
604
604
|
const r = t / 100;
|
|
605
605
|
return new Intl.NumberFormat("en-US", {
|
|
606
606
|
style: "currency",
|
|
607
607
|
currency: e
|
|
608
608
|
}).format(r);
|
|
609
|
-
},
|
|
609
|
+
}, Je = (t) => {
|
|
610
610
|
const e = t.slice(-1);
|
|
611
|
-
return e === "D" ? "daily" : `${
|
|
611
|
+
return e === "D" ? "daily" : `${gn[e]}ly`;
|
|
612
612
|
};
|
|
613
|
-
function
|
|
613
|
+
function An(t) {
|
|
614
614
|
S(t, "svelte-1oa6nu8", ".rcb-pricing-info.svelte-1oa6nu8{display:flex;flex-direction:column;height:10rem;justify-content:flex-end}.rcb-product-price.svelte-1oa6nu8{font-size:1.5rem}.rcb-product-duration.svelte-1oa6nu8{opacity:0.6}");
|
|
615
615
|
}
|
|
616
|
-
function
|
|
616
|
+
function _n(t) {
|
|
617
617
|
let e, r, n = (
|
|
618
618
|
/*productDetails*/
|
|
619
619
|
t[0].displayName + ""
|
|
620
620
|
), i, l, s, o = (
|
|
621
621
|
/*productDetails*/
|
|
622
622
|
t[0].currentPrice.currency + ""
|
|
623
|
-
), c, u = " ", _, m =
|
|
623
|
+
), c, u = " ", _, m = je(
|
|
624
624
|
/*productDetails*/
|
|
625
625
|
t[0].currentPrice.amount,
|
|
626
626
|
/*productDetails*/
|
|
627
627
|
t[0].currentPrice.currency
|
|
628
|
-
) + "", B, k, E, y,
|
|
628
|
+
) + "", B, k, E, y, M = Je(
|
|
629
629
|
/*productDetails*/
|
|
630
630
|
t[0].normalPeriodDuration
|
|
631
631
|
) + "", N;
|
|
632
632
|
return {
|
|
633
633
|
c() {
|
|
634
|
-
e = $("div"), r = $("span"), i = L(n), l = P(), s = $("span"), c = L(o), _ = L(u), B = L(m), k = P(), E = $("span"), y = L("Billed "), N = L(
|
|
634
|
+
e = $("div"), r = $("span"), i = L(n), l = P(), s = $("span"), c = L(o), _ = L(u), B = L(m), k = P(), E = $("span"), y = L("Billed "), N = L(M), h(s, "class", "rcb-product-price svelte-1oa6nu8"), h(E, "class", "rcb-product-duration svelte-1oa6nu8"), h(e, "class", "rcb-pricing-info svelte-1oa6nu8");
|
|
635
635
|
},
|
|
636
636
|
m(d, p) {
|
|
637
|
-
A(d, e, p),
|
|
637
|
+
A(d, e, p), T(e, r), T(r, i), T(e, l), T(e, s), T(s, c), T(s, _), T(s, B), T(e, k), T(e, E), T(E, y), T(E, N);
|
|
638
638
|
},
|
|
639
639
|
p(d, p) {
|
|
640
640
|
p & /*productDetails*/
|
|
641
641
|
1 && n !== (n = /*productDetails*/
|
|
642
|
-
d[0].displayName + "") &&
|
|
642
|
+
d[0].displayName + "") && re(i, n), p & /*productDetails*/
|
|
643
643
|
1 && o !== (o = /*productDetails*/
|
|
644
|
-
d[0].currentPrice.currency + "") &&
|
|
645
|
-
1 && m !== (m =
|
|
644
|
+
d[0].currentPrice.currency + "") && re(c, o), p & /*productDetails*/
|
|
645
|
+
1 && m !== (m = je(
|
|
646
646
|
/*productDetails*/
|
|
647
647
|
d[0].currentPrice.amount,
|
|
648
648
|
/*productDetails*/
|
|
649
649
|
d[0].currentPrice.currency
|
|
650
|
-
) + "") &&
|
|
651
|
-
1 &&
|
|
650
|
+
) + "") && re(B, m), p & /*productDetails*/
|
|
651
|
+
1 && M !== (M = Je(
|
|
652
652
|
/*productDetails*/
|
|
653
653
|
d[0].normalPeriodDuration
|
|
654
|
-
) + "") &&
|
|
654
|
+
) + "") && re(N, M);
|
|
655
655
|
},
|
|
656
656
|
d(d) {
|
|
657
657
|
d && g(e);
|
|
658
658
|
}
|
|
659
659
|
};
|
|
660
660
|
}
|
|
661
|
-
function
|
|
661
|
+
function pn(t) {
|
|
662
662
|
let e, r;
|
|
663
|
-
return e = new
|
|
663
|
+
return e = new q({
|
|
664
664
|
props: {
|
|
665
|
-
$$slots: { default: [
|
|
665
|
+
$$slots: { default: [_n] },
|
|
666
666
|
$$scope: { ctx: t }
|
|
667
667
|
}
|
|
668
668
|
}), {
|
|
@@ -688,23 +688,23 @@ function An(t) {
|
|
|
688
688
|
}
|
|
689
689
|
};
|
|
690
690
|
}
|
|
691
|
-
function
|
|
691
|
+
function hn(t, e, r) {
|
|
692
692
|
let { productDetails: n } = e;
|
|
693
693
|
return t.$$set = (i) => {
|
|
694
694
|
"productDetails" in i && r(0, n = i.productDetails);
|
|
695
695
|
}, [n];
|
|
696
696
|
}
|
|
697
|
-
class
|
|
697
|
+
class _t extends C {
|
|
698
698
|
constructor(e) {
|
|
699
|
-
super(),
|
|
699
|
+
super(), U(this, e, hn, pn, R, { productDetails: 0 }, An);
|
|
700
700
|
}
|
|
701
701
|
}
|
|
702
|
-
const pn = "data:image/gif;base64,R0lGODlhMgAyAPcBAAAAAAD/AAMDAwcHBxERERUVFSoqKi0tLTAwMDg4OD09PURERElJSUtLS1BQUFJSUlVVVVdXV1paWl9fX2NjY2ZmZmlpaWxsbG1tbXNzc3t7e39/f4GBgYKCgoSEhIaGhoeHh4iIiIuLi5KSkpSUlJaWlp2dnaGhoaOjo6SkpKWlpaenp6ioqKqqqqurq6ysrLCwsLGxsbS0tLa2tri4uLm5ub29vb6+vsDAwMHBwcLCwsXFxcjIyMnJyc3Nzc7OztPT09TU1NXV1dfX19nZ2dra2tvb29zc3N7e3uDg4OHh4eLi4uPj4+fn5+np6ezs7O7u7vDw8PHx8fLy8vPz8/X19fb29vj4+Pn5+fz8/P39/f7+/v///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFBAABACwAAAAAMgAyAIcAAAAA/wADAwMHBwcREREVFRUqKiotLS0wMDA4ODg9PT1ERERJSUlLS0tQUFBSUlJVVVVXV1daWlpfX19jY2NmZmZpaWlsbGxtbW1zc3N7e3t/f3+BgYGCgoKEhISGhoaHh4eIiIiLi4uSkpKUlJSWlpadnZ2hoaGjo6OkpKSlpaWnp6eoqKiqqqqrq6usrKywsLCxsbG0tLS2tra4uLi5ubm9vb2+vr7AwMDBwcHCwsLFxcXIyMjJycnNzc3Ozs7T09PU1NTV1dXX19fZ2dna2trb29vc3Nze3t7g4ODh4eHi4uLj4+Pn5+fp6ens7Ozu7u7w8PDx8fHy8vLz8/P19fX29vb4+Pj5+fn8/Pz9/f3+/v7///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8I/wCzcBFIcKDBgggPKkzIcCEXLlq4bIEokeLEiBcrYrTIcaNHjRobinQ4sqRCkBlTdtR44MBKlR9TmjQJQMBMkgZfdpwSMSYAACgpRtHpcSYSFUIa1mz448UQnAWDfmzSooUVmD9XVnnBwglMlDdvvMjhcOl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580tDEE6AGbXSYKKMKVIJSUnDQIGIHl6sQS0w8AZagjxAsyqpdy7at24pJfgwBMkQukCRQjQQBIgTIXiFGoAYEACH5BAUFAAEALAMAAwAXABcAAAiVAAMIHEiwoMEMGQwqXPggwsKBTLQshPDgYYAaD1owdPjQB4QIThRGgGAxwIYIIBQ2LMlkJBCDFEsGOPEgA5aCK0tKmQChRkGEMgPIiDDhoRYjTR56CPGwiooXN6oENQikhYsWP65MJXglx4sVMoZsJdikRosWOMYSRPJih9q3cOPKnWuRSxa7eO9O3cJFCxe+frdMDQgAIfkEBQUAAQAsBQADACAAEAAACKYAAwgcSLAgwQcODCpcyNDAAYYQAzhpaIDhFYY+NOBY6HAhkyETFRLZ0CGKQgMVDV4RAoQKQxMdUpx8aJAJECYQnWzYcMQgSoNVgAy5CHGGhhI+aRIkMgRnxCohNvQoiLDgEyFDskQUuINDiK1Hfpgc+ETKQi0nVGxNkkSrwCw/hiBxu7XuFidAhARpgqWu3yxIhgApEtLvVipIgARBYthvlKaNFQYEADs=";
|
|
703
|
-
function
|
|
702
|
+
const En = "data:image/gif;base64,R0lGODlhMgAyAPcBAAAAAAD/AAMDAwcHBxERERUVFSoqKi0tLTAwMDg4OD09PURERElJSUtLS1BQUFJSUlVVVVdXV1paWl9fX2NjY2ZmZmlpaWxsbG1tbXNzc3t7e39/f4GBgYKCgoSEhIaGhoeHh4iIiIuLi5KSkpSUlJaWlp2dnaGhoaOjo6SkpKWlpaenp6ioqKqqqqurq6ysrLCwsLGxsbS0tLa2tri4uLm5ub29vb6+vsDAwMHBwcLCwsXFxcjIyMnJyc3Nzc7OztPT09TU1NXV1dfX19nZ2dra2tvb29zc3N7e3uDg4OHh4eLi4uPj4+fn5+np6ezs7O7u7vDw8PHx8fLy8vPz8/X19fb29vj4+Pn5+fz8/P39/f7+/v///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFBAABACwAAAAAMgAyAIcAAAAA/wADAwMHBwcREREVFRUqKiotLS0wMDA4ODg9PT1ERERJSUlLS0tQUFBSUlJVVVVXV1daWlpfX19jY2NmZmZpaWlsbGxtbW1zc3N7e3t/f3+BgYGCgoKEhISGhoaHh4eIiIiLi4uSkpKUlJSWlpadnZ2hoaGjo6OkpKSlpaWnp6eoqKiqqqqrq6usrKywsLCxsbG0tLS2tra4uLi5ubm9vb2+vr7AwMDBwcHCwsLFxcXIyMjJycnNzc3Ozs7T09PU1NTV1dXX19fZ2dna2trb29vc3Nze3t7g4ODh4eHi4uLj4+Pn5+fp6ens7Ozu7u7w8PDx8fHy8vLz8/P19fX29vb4+Pj5+fn8/Pz9/f3+/v7///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8I/wCzcBFIcKDBgggPKkzIcCEXLlq4bIEokeLEiBcrYrTIcaNHjRobinQ4sqRCkBlTdtR44MBKlR9TmjQJQMBMkgZfdpwSMSYAACgpRtHpcSYSFUIa1mz448UQnAWDfmzSooUVmD9XVnnBwglMlDdvvMjhcOlCHit23CSqcUrVJiizpnTC4sXQmB1vZvmxwgYWhWYLznjRA+rJryqvxGhxxGNLjkVcwMCCN6ZeLkNevDCcRYYKJJfZptyCQwdiijl0CDxdlLPryw2lymY9WzTs17ijVq69mzbM28Bd8x7u23bu46F7i16uXEvw5ziJM5duGbl1k9OLN5cKvfvh7OC3b0jxTv6h+PDUy3unzl67RPXXc56fnz4+/PbofcOHnr9/5f3x4UeffvYVqJuACP5m4IIJ+gf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4sVMoZsJdikRosWOMYSRPJih9q3cOPKnWuRSxa7eO9O3cJFCxe+frdMDQgAIfkEBQUAAQAsBQADACAAEAAACKYAAwgcSLAgwQcODCpcyNDAAYYQAzhpaIDhFYY+NOBY6HAhkyETFRLZ0CGKQgMVDV4RAoQKQxMdUpx8aJAJECYQnWzYcMQgSoNVgAy5CHGGhhI+aRIkMgRnxCohNvQoiLDgEyFDskQUuINDiK1Hfpgc+ETKQi0nVGxNkkSrwCw/hiBxu7XuFidAhARpgqWu3yxIhgApEtLvVipIgARBYthvlKaNFQYEADs=";
|
|
703
|
+
function In(t) {
|
|
704
704
|
let e, r;
|
|
705
705
|
return {
|
|
706
706
|
c() {
|
|
707
|
-
e = $("img"),
|
|
707
|
+
e = $("img"), V(e.src, r = En) || h(e, "src", r), h(e, "alt", "spinner");
|
|
708
708
|
},
|
|
709
709
|
m(n, i) {
|
|
710
710
|
A(n, e, i);
|
|
@@ -717,17 +717,17 @@ function hn(t) {
|
|
|
717
717
|
}
|
|
718
718
|
};
|
|
719
719
|
}
|
|
720
|
-
class
|
|
720
|
+
class wn extends C {
|
|
721
721
|
constructor(e) {
|
|
722
|
-
super(),
|
|
722
|
+
super(), U(this, e, null, In, R, {});
|
|
723
723
|
}
|
|
724
724
|
}
|
|
725
|
-
function
|
|
725
|
+
function bn(t) {
|
|
726
726
|
S(t, "svelte-4wmtg7", ".rcb-modal-loader.svelte-4wmtg7{width:100%;min-height:10rem;display:flex;justify-content:center;align-items:center}");
|
|
727
727
|
}
|
|
728
|
-
function
|
|
728
|
+
function $n(t) {
|
|
729
729
|
let e, r, n;
|
|
730
|
-
return r = new
|
|
730
|
+
return r = new wn({}), {
|
|
731
731
|
c() {
|
|
732
732
|
e = $("div"), b(r.$$.fragment), h(e, "class", "rcb-modal-loader svelte-4wmtg7");
|
|
733
733
|
},
|
|
@@ -746,23 +746,23 @@ function wn(t) {
|
|
|
746
746
|
}
|
|
747
747
|
};
|
|
748
748
|
}
|
|
749
|
-
class Qe extends
|
|
749
|
+
class Qe extends C {
|
|
750
750
|
constructor(e) {
|
|
751
|
-
super(),
|
|
751
|
+
super(), U(this, e, null, $n, R, {}, bn);
|
|
752
752
|
}
|
|
753
753
|
}
|
|
754
|
-
var
|
|
754
|
+
var ue = /* @__PURE__ */ ((t) => (t.Started = "started", t.InProgress = "in_progress", t.Succeeded = "succeeded", t.Failed = "failed", t))(ue || {}), be = /* @__PURE__ */ ((t) => (t[t.SetupIntentCreationFailed = 1] = "SetupIntentCreationFailed", t[t.PaymentMethodCreationFailed = 2] = "PaymentMethodCreationFailed", t[t.PaymentChargeFailed = 3] = "PaymentChargeFailed", t))(be || {}), O = /* @__PURE__ */ ((t) => (t[t.ErrorSettingUpPurchase = 0] = "ErrorSettingUpPurchase", t[t.ErrorChargingPayment = 1] = "ErrorChargingPayment", t[t.UnknownError = 2] = "UnknownError", t[t.NetworkError = 3] = "NetworkError", t[t.StripeError = 4] = "StripeError", t[t.MissingEmailError = 5] = "MissingEmailError", t))(O || {});
|
|
755
755
|
class Y extends Error {
|
|
756
756
|
constructor(e, r, n) {
|
|
757
757
|
super(r), this.errorCode = e, this.underlyingErrorMessage = n;
|
|
758
758
|
}
|
|
759
759
|
}
|
|
760
|
-
class
|
|
760
|
+
class Bn {
|
|
761
761
|
constructor(e, r = 10) {
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
762
|
+
Q(this, "operationSessionId", null);
|
|
763
|
+
Q(this, "backend");
|
|
764
|
+
Q(this, "maxNumberAttempts");
|
|
765
|
+
Q(this, "waitMSBetweenAttempts", 1e3);
|
|
766
766
|
this.backend = e, this.maxNumberAttempts = r;
|
|
767
767
|
}
|
|
768
768
|
async startPurchase(e, r, n) {
|
|
@@ -793,17 +793,17 @@ class bn {
|
|
|
793
793
|
}
|
|
794
794
|
this.backend.getCheckoutStatus(e).then((s) => {
|
|
795
795
|
switch (s.operation.status) {
|
|
796
|
-
case
|
|
797
|
-
case
|
|
796
|
+
case ue.Started:
|
|
797
|
+
case ue.InProgress:
|
|
798
798
|
setTimeout(
|
|
799
799
|
() => i(l + 1),
|
|
800
800
|
this.waitMSBetweenAttempts
|
|
801
801
|
);
|
|
802
802
|
break;
|
|
803
|
-
case
|
|
803
|
+
case ue.Succeeded:
|
|
804
804
|
this.clearPurchaseInProgress(), r();
|
|
805
805
|
return;
|
|
806
|
-
case
|
|
806
|
+
case ue.Failed:
|
|
807
807
|
this.clearPurchaseInProgress(), this.handlePaymentError(
|
|
808
808
|
s.operation.error,
|
|
809
809
|
n
|
|
@@ -835,7 +835,7 @@ class bn {
|
|
|
835
835
|
return;
|
|
836
836
|
}
|
|
837
837
|
switch (e.code) {
|
|
838
|
-
case
|
|
838
|
+
case be.SetupIntentCreationFailed:
|
|
839
839
|
r(
|
|
840
840
|
new Y(
|
|
841
841
|
0,
|
|
@@ -843,7 +843,7 @@ class bn {
|
|
|
843
843
|
)
|
|
844
844
|
);
|
|
845
845
|
return;
|
|
846
|
-
case
|
|
846
|
+
case be.PaymentMethodCreationFailed:
|
|
847
847
|
r(
|
|
848
848
|
new Y(
|
|
849
849
|
0,
|
|
@@ -851,7 +851,7 @@ class bn {
|
|
|
851
851
|
)
|
|
852
852
|
);
|
|
853
853
|
return;
|
|
854
|
-
case
|
|
854
|
+
case be.PaymentChargeFailed:
|
|
855
855
|
r(
|
|
856
856
|
new Y(
|
|
857
857
|
1,
|
|
@@ -862,15 +862,15 @@ class bn {
|
|
|
862
862
|
}
|
|
863
863
|
}
|
|
864
864
|
}
|
|
865
|
-
function
|
|
865
|
+
function kn(t) {
|
|
866
866
|
S(t, "svelte-igat39", "button.svelte-igat39{border:none;border-radius:3.5rem;font-size:1rem;cursor:pointer;height:3.5rem;color:black;background-color:#dfdfdf}button.intent-primary.svelte-igat39{background-color:#000;color:white;font-size:1rem}");
|
|
867
867
|
}
|
|
868
|
-
function
|
|
868
|
+
function yn(t) {
|
|
869
869
|
let e, r, n, i, l;
|
|
870
870
|
const s = (
|
|
871
871
|
/*#slots*/
|
|
872
872
|
t[3].default
|
|
873
|
-
), o =
|
|
873
|
+
), o = K(
|
|
874
874
|
s,
|
|
875
875
|
t,
|
|
876
876
|
/*$$scope*/
|
|
@@ -879,12 +879,12 @@ function Bn(t) {
|
|
|
879
879
|
);
|
|
880
880
|
return {
|
|
881
881
|
c() {
|
|
882
|
-
e = $("button"), o && o.c(), h(e, "class", r =
|
|
882
|
+
e = $("button"), o && o.c(), h(e, "class", r = de(`intent-${/*intent*/
|
|
883
883
|
t[0]}`) + " svelte-igat39"), e.disabled = /*disabled*/
|
|
884
884
|
t[1];
|
|
885
885
|
},
|
|
886
886
|
m(c, u) {
|
|
887
|
-
A(c, e, u), o && o.m(e, null), n = !0, i || (l =
|
|
887
|
+
A(c, e, u), o && o.m(e, null), n = !0, i || (l = _e(
|
|
888
888
|
e,
|
|
889
889
|
"click",
|
|
890
890
|
/*click_handler*/
|
|
@@ -893,25 +893,25 @@ function Bn(t) {
|
|
|
893
893
|
},
|
|
894
894
|
p(c, [u]) {
|
|
895
895
|
o && o.p && (!n || u & /*$$scope*/
|
|
896
|
-
4) &&
|
|
896
|
+
4) && J(
|
|
897
897
|
o,
|
|
898
898
|
s,
|
|
899
899
|
c,
|
|
900
900
|
/*$$scope*/
|
|
901
901
|
c[2],
|
|
902
|
-
n ?
|
|
902
|
+
n ? j(
|
|
903
903
|
s,
|
|
904
904
|
/*$$scope*/
|
|
905
905
|
c[2],
|
|
906
906
|
u,
|
|
907
907
|
null
|
|
908
|
-
) :
|
|
908
|
+
) : x(
|
|
909
909
|
/*$$scope*/
|
|
910
910
|
c[2]
|
|
911
911
|
),
|
|
912
912
|
null
|
|
913
913
|
), (!n || u & /*intent*/
|
|
914
|
-
1 && r !== (r =
|
|
914
|
+
1 && r !== (r = de(`intent-${/*intent*/
|
|
915
915
|
c[0]}`) + " svelte-igat39")) && h(e, "class", r), (!n || u & /*disabled*/
|
|
916
916
|
2) && (e.disabled = /*disabled*/
|
|
917
917
|
c[1]);
|
|
@@ -927,29 +927,29 @@ function Bn(t) {
|
|
|
927
927
|
}
|
|
928
928
|
};
|
|
929
929
|
}
|
|
930
|
-
function
|
|
930
|
+
function Dn(t, e, r) {
|
|
931
931
|
let { $$slots: n = {}, $$scope: i } = e, { intent: l = "primary" } = e, { disabled: s = !1 } = e;
|
|
932
932
|
function o(c) {
|
|
933
|
-
|
|
933
|
+
gt.call(this, t, c);
|
|
934
934
|
}
|
|
935
935
|
return t.$$set = (c) => {
|
|
936
936
|
"intent" in c && r(0, l = c.intent), "disabled" in c && r(1, s = c.disabled), "$$scope" in c && r(2, i = c.$$scope);
|
|
937
937
|
}, [l, s, i, n, o];
|
|
938
938
|
}
|
|
939
|
-
class
|
|
939
|
+
class ge extends C {
|
|
940
940
|
constructor(e) {
|
|
941
|
-
super(),
|
|
941
|
+
super(), U(this, e, Dn, yn, R, { intent: 0, disabled: 1 }, kn);
|
|
942
942
|
}
|
|
943
943
|
}
|
|
944
|
-
function
|
|
944
|
+
function vn(t) {
|
|
945
945
|
S(t, "svelte-1f9z0o8", "footer.svelte-1f9z0o8{display:flex;flex-direction:column}");
|
|
946
946
|
}
|
|
947
|
-
function
|
|
947
|
+
function Qn(t) {
|
|
948
948
|
let e, r;
|
|
949
949
|
const n = (
|
|
950
950
|
/*#slots*/
|
|
951
951
|
t[1].default
|
|
952
|
-
), i =
|
|
952
|
+
), i = K(
|
|
953
953
|
n,
|
|
954
954
|
t,
|
|
955
955
|
/*$$scope*/
|
|
@@ -965,19 +965,19 @@ function Dn(t) {
|
|
|
965
965
|
},
|
|
966
966
|
p(l, [s]) {
|
|
967
967
|
i && i.p && (!r || s & /*$$scope*/
|
|
968
|
-
1) &&
|
|
968
|
+
1) && J(
|
|
969
969
|
i,
|
|
970
970
|
n,
|
|
971
971
|
l,
|
|
972
972
|
/*$$scope*/
|
|
973
973
|
l[0],
|
|
974
|
-
r ?
|
|
974
|
+
r ? j(
|
|
975
975
|
n,
|
|
976
976
|
/*$$scope*/
|
|
977
977
|
l[0],
|
|
978
978
|
s,
|
|
979
979
|
null
|
|
980
|
-
) :
|
|
980
|
+
) : x(
|
|
981
981
|
/*$$scope*/
|
|
982
982
|
l[0]
|
|
983
983
|
),
|
|
@@ -995,26 +995,26 @@ function Dn(t) {
|
|
|
995
995
|
}
|
|
996
996
|
};
|
|
997
997
|
}
|
|
998
|
-
function
|
|
998
|
+
function Mn(t, e, r) {
|
|
999
999
|
let { $$slots: n = {}, $$scope: i } = e;
|
|
1000
1000
|
return t.$$set = (l) => {
|
|
1001
1001
|
"$$scope" in l && r(0, i = l.$$scope);
|
|
1002
1002
|
}, [i, n];
|
|
1003
1003
|
}
|
|
1004
|
-
class
|
|
1004
|
+
class Me extends C {
|
|
1005
1005
|
constructor(e) {
|
|
1006
|
-
super(),
|
|
1006
|
+
super(), U(this, e, Mn, Qn, R, {}, vn);
|
|
1007
1007
|
}
|
|
1008
1008
|
}
|
|
1009
|
-
const
|
|
1010
|
-
function
|
|
1009
|
+
const Tn = "data:image/svg+xml,%3csvg%20width='124'%20height='124'%20viewBox='0%200%20124%20124'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='62'%20cy='62'%20r='62'%20fill='%23767676'/%3e%3cpath%20d='M87.6668%2041.504L82.4968%2036.334L62.0002%2056.8307L41.5035%2036.334L36.3335%2041.504L56.8302%2062.0006L36.3335%2082.4973L41.5035%2087.6673L62.0002%2067.1706L82.4968%2087.6673L87.6668%2082.4973L67.1702%2062.0006L87.6668%2041.504Z'%20fill='white'/%3e%3c/svg%3e";
|
|
1010
|
+
function Pn(t) {
|
|
1011
1011
|
S(t, "svelte-7khg4b", "img.svelte-7khg4b{width:7.75rem;height:7.75rem;margin:0 auto}");
|
|
1012
1012
|
}
|
|
1013
|
-
function
|
|
1013
|
+
function Nn(t) {
|
|
1014
1014
|
let e, r;
|
|
1015
1015
|
return {
|
|
1016
1016
|
c() {
|
|
1017
|
-
e = $("img"),
|
|
1017
|
+
e = $("img"), V(e.src, r = Tn) || h(e, "src", r), h(e, "alt", "icon"), h(e, "class", "rcb-ui-asset-icon svelte-7khg4b");
|
|
1018
1018
|
},
|
|
1019
1019
|
m(n, i) {
|
|
1020
1020
|
A(n, e, i);
|
|
@@ -1027,20 +1027,20 @@ function Tn(t) {
|
|
|
1027
1027
|
}
|
|
1028
1028
|
};
|
|
1029
1029
|
}
|
|
1030
|
-
class
|
|
1030
|
+
class Rn extends C {
|
|
1031
1031
|
constructor(e) {
|
|
1032
|
-
super(),
|
|
1032
|
+
super(), U(this, e, null, Nn, R, {}, Pn);
|
|
1033
1033
|
}
|
|
1034
1034
|
}
|
|
1035
|
-
function
|
|
1035
|
+
function Un(t) {
|
|
1036
1036
|
S(t, "svelte-18njhoa", '.column.svelte-18njhoa{display:flex;flex-direction:column;justify-content:flex-start;gap:var(--gap, "0.5rem")}');
|
|
1037
1037
|
}
|
|
1038
|
-
function
|
|
1038
|
+
function Cn(t) {
|
|
1039
1039
|
let e, r, n;
|
|
1040
1040
|
const i = (
|
|
1041
1041
|
/*#slots*/
|
|
1042
1042
|
t[2].default
|
|
1043
|
-
), l =
|
|
1043
|
+
), l = K(
|
|
1044
1044
|
i,
|
|
1045
1045
|
t,
|
|
1046
1046
|
/*$$scope*/
|
|
@@ -1057,19 +1057,19 @@ function Rn(t) {
|
|
|
1057
1057
|
},
|
|
1058
1058
|
p(s, [o]) {
|
|
1059
1059
|
l && l.p && (!n || o & /*$$scope*/
|
|
1060
|
-
2) &&
|
|
1060
|
+
2) && J(
|
|
1061
1061
|
l,
|
|
1062
1062
|
i,
|
|
1063
1063
|
s,
|
|
1064
1064
|
/*$$scope*/
|
|
1065
1065
|
s[1],
|
|
1066
|
-
n ?
|
|
1066
|
+
n ? j(
|
|
1067
1067
|
i,
|
|
1068
1068
|
/*$$scope*/
|
|
1069
1069
|
s[1],
|
|
1070
1070
|
o,
|
|
1071
1071
|
null
|
|
1072
|
-
) :
|
|
1072
|
+
) : x(
|
|
1073
1073
|
/*$$scope*/
|
|
1074
1074
|
s[1]
|
|
1075
1075
|
),
|
|
@@ -1089,30 +1089,30 @@ function Rn(t) {
|
|
|
1089
1089
|
}
|
|
1090
1090
|
};
|
|
1091
1091
|
}
|
|
1092
|
-
function
|
|
1092
|
+
function On(t, e, r) {
|
|
1093
1093
|
let { $$slots: n = {}, $$scope: i } = e, { gutter: l = "0.5rem" } = e;
|
|
1094
1094
|
return t.$$set = (s) => {
|
|
1095
1095
|
"gutter" in s && r(0, l = s.gutter), "$$scope" in s && r(1, i = s.$$scope);
|
|
1096
1096
|
}, [l, i, n];
|
|
1097
1097
|
}
|
|
1098
|
-
class
|
|
1098
|
+
class Z extends C {
|
|
1099
1099
|
constructor(e) {
|
|
1100
|
-
super(),
|
|
1100
|
+
super(), U(this, e, On, Cn, R, { gutter: 0 }, Un);
|
|
1101
1101
|
}
|
|
1102
1102
|
}
|
|
1103
|
-
const
|
|
1104
|
-
function
|
|
1103
|
+
const Sn = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='mdi_close'%3e%3cpath%20id='Vector'%20d='M19%206.41L17.59%205L12%2010.59L6.41%205L5%206.41L10.59%2012L5%2017.59L6.41%2019L12%2013.41L17.59%2019L19%2017.59L13.41%2012L19%206.41Z'%20fill='%23767676'/%3e%3c/g%3e%3c/svg%3e";
|
|
1104
|
+
function Ln(t) {
|
|
1105
1105
|
S(t, "svelte-r1ujja", ".close-button.svelte-r1ujja{border:none;cursor:pointer;background-color:transparent}");
|
|
1106
1106
|
}
|
|
1107
|
-
function
|
|
1107
|
+
function Fn(t) {
|
|
1108
1108
|
let e, r, n, i, l;
|
|
1109
1109
|
return {
|
|
1110
1110
|
c() {
|
|
1111
|
-
e = $("button"), r = $("img"),
|
|
1111
|
+
e = $("button"), r = $("img"), V(r.src, n = Sn) || h(r, "src", n), h(r, "alt", "close"), h(e, "class", "close-button svelte-r1ujja"), e.disabled = /*disabled*/
|
|
1112
1112
|
t[0];
|
|
1113
1113
|
},
|
|
1114
1114
|
m(s, o) {
|
|
1115
|
-
A(s, e, o),
|
|
1115
|
+
A(s, e, o), T(e, r), i || (l = _e(
|
|
1116
1116
|
e,
|
|
1117
1117
|
"click",
|
|
1118
1118
|
/*click_handler*/
|
|
@@ -1131,24 +1131,24 @@ function Sn(t) {
|
|
|
1131
1131
|
}
|
|
1132
1132
|
};
|
|
1133
1133
|
}
|
|
1134
|
-
function
|
|
1134
|
+
function Gn(t, e, r) {
|
|
1135
1135
|
let { disabled: n = !1 } = e;
|
|
1136
1136
|
function i(l) {
|
|
1137
|
-
|
|
1137
|
+
gt.call(this, t, l);
|
|
1138
1138
|
}
|
|
1139
1139
|
return t.$$set = (l) => {
|
|
1140
1140
|
"disabled" in l && r(0, n = l.disabled);
|
|
1141
1141
|
}, [n, i];
|
|
1142
1142
|
}
|
|
1143
|
-
class
|
|
1143
|
+
class Yn extends C {
|
|
1144
1144
|
constructor(e) {
|
|
1145
|
-
super(),
|
|
1145
|
+
super(), U(this, e, Gn, Fn, R, { disabled: 0 }, Ln);
|
|
1146
1146
|
}
|
|
1147
1147
|
}
|
|
1148
|
-
function
|
|
1148
|
+
function Hn(t) {
|
|
1149
1149
|
S(t, "svelte-10u48yl", ".rcb-app-icon.svelte-10u48yl{width:2.5rem;height:2.5rem;border-radius:0.75rem;box-shadow:0px 1px 10px 0px rgba(0, 0, 0, 0.1);margin-right:1rem}.rcb-app-icon-picture-container.svelte-10u48yl{height:2.5rem}.rcb-app-icon.loading.svelte-10u48yl{background-color:gray}");
|
|
1150
1150
|
}
|
|
1151
|
-
function
|
|
1151
|
+
function Kn(t) {
|
|
1152
1152
|
let e;
|
|
1153
1153
|
return {
|
|
1154
1154
|
c() {
|
|
@@ -1163,22 +1163,22 @@ function Yn(t) {
|
|
|
1163
1163
|
}
|
|
1164
1164
|
};
|
|
1165
1165
|
}
|
|
1166
|
-
function
|
|
1166
|
+
function jn(t) {
|
|
1167
1167
|
let e, r, n, i, l, s;
|
|
1168
1168
|
return {
|
|
1169
1169
|
c() {
|
|
1170
|
-
e = $("picture"), r = $("source"), i = P(), l = $("img"), h(r, "type", "image/webp"),
|
|
1171
|
-
t[1]) || h(r, "srcset", n), h(l, "class", "rcb-app-icon svelte-10u48yl"),
|
|
1170
|
+
e = $("picture"), r = $("source"), i = P(), l = $("img"), h(r, "type", "image/webp"), Lt(r, n = /*srcWebp*/
|
|
1171
|
+
t[1]) || h(r, "srcset", n), h(l, "class", "rcb-app-icon svelte-10u48yl"), V(l.src, s = /*src*/
|
|
1172
1172
|
t[0]) || h(l, "src", s), h(l, "alt", "App icon"), h(e, "class", "rcb-app-icon-picture-container svelte-10u48yl");
|
|
1173
1173
|
},
|
|
1174
1174
|
m(o, c) {
|
|
1175
|
-
A(o, e, c),
|
|
1175
|
+
A(o, e, c), T(e, r), T(e, i), T(e, l);
|
|
1176
1176
|
},
|
|
1177
1177
|
p(o, c) {
|
|
1178
1178
|
c & /*srcWebp*/
|
|
1179
1179
|
2 && n !== (n = /*srcWebp*/
|
|
1180
1180
|
o[1]) && h(r, "srcset", n), c & /*src*/
|
|
1181
|
-
1 && !
|
|
1181
|
+
1 && !V(l.src, s = /*src*/
|
|
1182
1182
|
o[0]) && h(l, "src", s);
|
|
1183
1183
|
},
|
|
1184
1184
|
d(o) {
|
|
@@ -1186,18 +1186,18 @@ function Hn(t) {
|
|
|
1186
1186
|
}
|
|
1187
1187
|
};
|
|
1188
1188
|
}
|
|
1189
|
-
function
|
|
1189
|
+
function Jn(t) {
|
|
1190
1190
|
let e;
|
|
1191
1191
|
function r(l, s) {
|
|
1192
1192
|
return (
|
|
1193
1193
|
/*src*/
|
|
1194
|
-
l[0] !== null ?
|
|
1194
|
+
l[0] !== null ? jn : Kn
|
|
1195
1195
|
);
|
|
1196
1196
|
}
|
|
1197
1197
|
let n = r(t), i = n(t);
|
|
1198
1198
|
return {
|
|
1199
1199
|
c() {
|
|
1200
|
-
i.c(), e =
|
|
1200
|
+
i.c(), e = X();
|
|
1201
1201
|
},
|
|
1202
1202
|
m(l, s) {
|
|
1203
1203
|
i.m(l, s), A(l, e, s);
|
|
@@ -1212,24 +1212,24 @@ function Kn(t) {
|
|
|
1212
1212
|
}
|
|
1213
1213
|
};
|
|
1214
1214
|
}
|
|
1215
|
-
function
|
|
1215
|
+
function xn(t, e, r) {
|
|
1216
1216
|
let { src: n = null } = e, { srcWebp: i = null } = e;
|
|
1217
1217
|
return t.$$set = (l) => {
|
|
1218
1218
|
"src" in l && r(0, n = l.src), "srcWebp" in l && r(1, i = l.srcWebp);
|
|
1219
1219
|
}, [n, i];
|
|
1220
1220
|
}
|
|
1221
|
-
class
|
|
1221
|
+
class pt extends C {
|
|
1222
1222
|
constructor(e) {
|
|
1223
|
-
super(),
|
|
1223
|
+
super(), U(this, e, xn, Jn, R, { src: 0, srcWebp: 1 }, Hn);
|
|
1224
1224
|
}
|
|
1225
1225
|
}
|
|
1226
|
-
const
|
|
1227
|
-
function
|
|
1226
|
+
const he = (t) => `https://da08ctfrofx1b.cloudfront.net/${t}`;
|
|
1227
|
+
function Vn(t) {
|
|
1228
1228
|
S(t, "svelte-1tdgim9", ".app-title.svelte-1tdgim9{font-weight:500;margin:0.5rem 0;font-size:1rem}.rcb-header-layout__business-info.svelte-1tdgim9{display:flex;align-items:center}");
|
|
1229
1229
|
}
|
|
1230
|
-
function
|
|
1230
|
+
function qn(t) {
|
|
1231
1231
|
let e, r;
|
|
1232
|
-
return e = new
|
|
1232
|
+
return e = new pt({}), {
|
|
1233
1233
|
c() {
|
|
1234
1234
|
b(e.$$.fragment);
|
|
1235
1235
|
},
|
|
@@ -1248,31 +1248,31 @@ function xn(t) {
|
|
|
1248
1248
|
}
|
|
1249
1249
|
};
|
|
1250
1250
|
}
|
|
1251
|
-
function
|
|
1251
|
+
function Wn(t) {
|
|
1252
1252
|
let e, r, n = (
|
|
1253
1253
|
/*brandingInfo*/
|
|
1254
1254
|
t[0].seller_company_name + ""
|
|
1255
1255
|
), i, l, s = (
|
|
1256
1256
|
/*brandingInfo*/
|
|
1257
1257
|
t[0].app_icon_webp !== null && /*brandingInfo*/
|
|
1258
|
-
t[0].app_icon !== null &&
|
|
1258
|
+
t[0].app_icon !== null && xe(t)
|
|
1259
1259
|
);
|
|
1260
1260
|
return {
|
|
1261
1261
|
c() {
|
|
1262
1262
|
s && s.c(), e = P(), r = $("span"), i = L(n), h(r, "class", "app-title svelte-1tdgim9");
|
|
1263
1263
|
},
|
|
1264
1264
|
m(o, c) {
|
|
1265
|
-
s && s.m(o, c), A(o, e, c), A(o, r, c),
|
|
1265
|
+
s && s.m(o, c), A(o, e, c), A(o, r, c), T(r, i), l = !0;
|
|
1266
1266
|
},
|
|
1267
1267
|
p(o, c) {
|
|
1268
1268
|
/*brandingInfo*/
|
|
1269
1269
|
o[0].app_icon_webp !== null && /*brandingInfo*/
|
|
1270
1270
|
o[0].app_icon !== null ? s ? (s.p(o, c), c & /*brandingInfo*/
|
|
1271
|
-
1 && a(s, 1)) : (s =
|
|
1271
|
+
1 && a(s, 1)) : (s = xe(o), s.c(), a(s, 1), s.m(e.parentNode, e)) : s && (F(), f(s, 1, 1, () => {
|
|
1272
1272
|
s = null;
|
|
1273
1273
|
}), G()), (!l || c & /*brandingInfo*/
|
|
1274
1274
|
1) && n !== (n = /*brandingInfo*/
|
|
1275
|
-
o[0].seller_company_name + "") &&
|
|
1275
|
+
o[0].seller_company_name + "") && re(i, n);
|
|
1276
1276
|
},
|
|
1277
1277
|
i(o) {
|
|
1278
1278
|
l || (a(s), l = !0);
|
|
@@ -1285,15 +1285,15 @@ function Vn(t) {
|
|
|
1285
1285
|
}
|
|
1286
1286
|
};
|
|
1287
1287
|
}
|
|
1288
|
-
function
|
|
1288
|
+
function xe(t) {
|
|
1289
1289
|
let e, r;
|
|
1290
|
-
return e = new
|
|
1290
|
+
return e = new pt({
|
|
1291
1291
|
props: {
|
|
1292
|
-
src:
|
|
1292
|
+
src: he(
|
|
1293
1293
|
/*brandingInfo*/
|
|
1294
1294
|
t[0].app_icon
|
|
1295
1295
|
),
|
|
1296
|
-
srcWebp:
|
|
1296
|
+
srcWebp: he(
|
|
1297
1297
|
/*brandingInfo*/
|
|
1298
1298
|
t[0].app_icon_webp
|
|
1299
1299
|
)
|
|
@@ -1308,11 +1308,11 @@ function Je(t) {
|
|
|
1308
1308
|
p(n, i) {
|
|
1309
1309
|
const l = {};
|
|
1310
1310
|
i & /*brandingInfo*/
|
|
1311
|
-
1 && (l.src =
|
|
1311
|
+
1 && (l.src = he(
|
|
1312
1312
|
/*brandingInfo*/
|
|
1313
1313
|
n[0].app_icon
|
|
1314
1314
|
)), i & /*brandingInfo*/
|
|
1315
|
-
1 && (l.srcWebp =
|
|
1315
|
+
1 && (l.srcWebp = he(
|
|
1316
1316
|
/*brandingInfo*/
|
|
1317
1317
|
n[0].app_icon_webp
|
|
1318
1318
|
)), e.$set(l);
|
|
@@ -1328,9 +1328,9 @@ function Je(t) {
|
|
|
1328
1328
|
}
|
|
1329
1329
|
};
|
|
1330
1330
|
}
|
|
1331
|
-
function
|
|
1331
|
+
function zn(t) {
|
|
1332
1332
|
let e, r, n, i;
|
|
1333
|
-
const l = [
|
|
1333
|
+
const l = [Wn, qn], s = [];
|
|
1334
1334
|
function o(c, u) {
|
|
1335
1335
|
return (
|
|
1336
1336
|
/*brandingInfo*/
|
|
@@ -1361,29 +1361,29 @@ function qn(t) {
|
|
|
1361
1361
|
}
|
|
1362
1362
|
};
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1364
|
+
function Xn(t, e, r) {
|
|
1365
1365
|
let { brandingInfo: n = null } = e;
|
|
1366
1366
|
return t.$$set = (i) => {
|
|
1367
1367
|
"brandingInfo" in i && r(0, n = i.brandingInfo);
|
|
1368
1368
|
}, [n];
|
|
1369
1369
|
}
|
|
1370
|
-
class
|
|
1370
|
+
class ht extends C {
|
|
1371
1371
|
constructor(e) {
|
|
1372
|
-
super(),
|
|
1372
|
+
super(), U(this, e, Xn, zn, R, { brandingInfo: 0 }, Vn);
|
|
1373
1373
|
}
|
|
1374
1374
|
}
|
|
1375
|
-
function
|
|
1375
|
+
function Zn(t) {
|
|
1376
1376
|
S(t, "svelte-j03lz1", ".rcb-post-purchase-header-layout.svelte-j03lz1{display:flex;justify-content:space-between;align-items:center;width:100%}");
|
|
1377
1377
|
}
|
|
1378
|
-
function
|
|
1378
|
+
function er(t) {
|
|
1379
1379
|
let e, r, n, i, l;
|
|
1380
|
-
return r = new
|
|
1380
|
+
return r = new ht({
|
|
1381
1381
|
props: { brandingInfo: (
|
|
1382
1382
|
/*brandingInfo*/
|
|
1383
1383
|
t[0]
|
|
1384
1384
|
) }
|
|
1385
|
-
}), i = new
|
|
1386
|
-
|
|
1385
|
+
}), i = new Yn({}), i.$on("click", function() {
|
|
1386
|
+
le(
|
|
1387
1387
|
/*onClose*/
|
|
1388
1388
|
t[1]
|
|
1389
1389
|
) && t[1].apply(this, arguments);
|
|
@@ -1392,7 +1392,7 @@ function Xn(t) {
|
|
|
1392
1392
|
e = $("div"), b(r.$$.fragment), n = P(), b(i.$$.fragment), h(e, "class", "rcb-post-purchase-header-layout svelte-j03lz1");
|
|
1393
1393
|
},
|
|
1394
1394
|
m(s, o) {
|
|
1395
|
-
A(s, e, o), I(r, e, null),
|
|
1395
|
+
A(s, e, o), I(r, e, null), T(e, n), I(i, e, null), l = !0;
|
|
1396
1396
|
},
|
|
1397
1397
|
p(s, o) {
|
|
1398
1398
|
t = s;
|
|
@@ -1412,12 +1412,12 @@ function Xn(t) {
|
|
|
1412
1412
|
}
|
|
1413
1413
|
};
|
|
1414
1414
|
}
|
|
1415
|
-
function
|
|
1415
|
+
function tr(t) {
|
|
1416
1416
|
let e, r;
|
|
1417
|
-
return e = new
|
|
1417
|
+
return e = new q({
|
|
1418
1418
|
props: {
|
|
1419
1419
|
as: "header",
|
|
1420
|
-
$$slots: { default: [
|
|
1420
|
+
$$slots: { default: [er] },
|
|
1421
1421
|
$$scope: { ctx: t }
|
|
1422
1422
|
}
|
|
1423
1423
|
}), {
|
|
@@ -1443,21 +1443,21 @@ function Zn(t) {
|
|
|
1443
1443
|
}
|
|
1444
1444
|
};
|
|
1445
1445
|
}
|
|
1446
|
-
function
|
|
1446
|
+
function nr(t, e, r) {
|
|
1447
1447
|
let { brandingInfo: n = null } = e, { onClose: i } = e;
|
|
1448
1448
|
return t.$$set = (l) => {
|
|
1449
1449
|
"brandingInfo" in l && r(0, n = l.brandingInfo), "onClose" in l && r(1, i = l.onClose);
|
|
1450
1450
|
}, [n, i];
|
|
1451
1451
|
}
|
|
1452
|
-
class
|
|
1452
|
+
class Et extends C {
|
|
1453
1453
|
constructor(e) {
|
|
1454
|
-
super(),
|
|
1454
|
+
super(), U(this, e, nr, tr, R, { brandingInfo: 0, onClose: 1 }, Zn);
|
|
1455
1455
|
}
|
|
1456
1456
|
}
|
|
1457
|
-
function
|
|
1457
|
+
function rr(t) {
|
|
1458
1458
|
S(t, "svelte-ahi052", ".rcb-modal-error.svelte-ahi052{width:100%;min-height:10rem;display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center}.title.svelte-ahi052{font-size:24px}.subtitle.svelte-ahi052{font-size:16px}");
|
|
1459
1459
|
}
|
|
1460
|
-
function
|
|
1460
|
+
function Ve(t) {
|
|
1461
1461
|
let e, r, n, i, l;
|
|
1462
1462
|
return {
|
|
1463
1463
|
c() {
|
|
@@ -1468,11 +1468,11 @@ function xe(t) {
|
|
|
1468
1468
|
t[1]);
|
|
1469
1469
|
},
|
|
1470
1470
|
m(s, o) {
|
|
1471
|
-
A(s, e, o), A(s, r, o),
|
|
1471
|
+
A(s, e, o), A(s, r, o), T(r, n), A(s, l, o);
|
|
1472
1472
|
},
|
|
1473
1473
|
p(s, o) {
|
|
1474
1474
|
o & /*supportEmail*/
|
|
1475
|
-
2 &&
|
|
1475
|
+
2 && re(
|
|
1476
1476
|
n,
|
|
1477
1477
|
/*supportEmail*/
|
|
1478
1478
|
s[1]
|
|
@@ -1485,36 +1485,36 @@ function xe(t) {
|
|
|
1485
1485
|
}
|
|
1486
1486
|
};
|
|
1487
1487
|
}
|
|
1488
|
-
function
|
|
1488
|
+
function ir(t) {
|
|
1489
1489
|
let e, r, n, i = (
|
|
1490
1490
|
/*getErrorMessage*/
|
|
1491
1491
|
t[3]() + ""
|
|
1492
1492
|
), l, s, o = (
|
|
1493
1493
|
/*supportEmail*/
|
|
1494
|
-
t[1] &&
|
|
1494
|
+
t[1] && Ve(t)
|
|
1495
1495
|
);
|
|
1496
1496
|
return {
|
|
1497
1497
|
c() {
|
|
1498
1498
|
e = $("span"), e.textContent = "Something went wrong.", r = P(), n = $("span"), l = L(i), s = P(), o && o.c(), h(e, "class", "title svelte-ahi052"), h(n, "class", "subtitle svelte-ahi052");
|
|
1499
1499
|
},
|
|
1500
1500
|
m(c, u) {
|
|
1501
|
-
A(c, e, u), A(c, r, u), A(c, n, u),
|
|
1501
|
+
A(c, e, u), A(c, r, u), A(c, n, u), T(n, l), T(n, s), o && o.m(n, null);
|
|
1502
1502
|
},
|
|
1503
1503
|
p(c, u) {
|
|
1504
1504
|
/*supportEmail*/
|
|
1505
|
-
c[1] ? o ? o.p(c, u) : (o =
|
|
1505
|
+
c[1] ? o ? o.p(c, u) : (o = Ve(c), o.c(), o.m(n, null)) : o && (o.d(1), o = null);
|
|
1506
1506
|
},
|
|
1507
1507
|
d(c) {
|
|
1508
1508
|
c && (g(e), g(r), g(n)), o && o.d();
|
|
1509
1509
|
}
|
|
1510
1510
|
};
|
|
1511
1511
|
}
|
|
1512
|
-
function
|
|
1512
|
+
function lr(t) {
|
|
1513
1513
|
let e, r, n, i;
|
|
1514
|
-
return e = new
|
|
1514
|
+
return e = new Rn({}), n = new Z({
|
|
1515
1515
|
props: {
|
|
1516
1516
|
gutter: "1rem",
|
|
1517
|
-
$$slots: { default: [
|
|
1517
|
+
$$slots: { default: [ir] },
|
|
1518
1518
|
$$scope: { ctx: t }
|
|
1519
1519
|
}
|
|
1520
1520
|
}), {
|
|
@@ -1540,12 +1540,12 @@ function rr(t) {
|
|
|
1540
1540
|
}
|
|
1541
1541
|
};
|
|
1542
1542
|
}
|
|
1543
|
-
function
|
|
1543
|
+
function sr(t) {
|
|
1544
1544
|
let e, r, n;
|
|
1545
|
-
return r = new
|
|
1545
|
+
return r = new Z({
|
|
1546
1546
|
props: {
|
|
1547
1547
|
gutter: "1rem",
|
|
1548
|
-
$$slots: { default: [
|
|
1548
|
+
$$slots: { default: [lr] },
|
|
1549
1549
|
$$scope: { ctx: t }
|
|
1550
1550
|
}
|
|
1551
1551
|
}), {
|
|
@@ -1571,7 +1571,7 @@ function ir(t) {
|
|
|
1571
1571
|
}
|
|
1572
1572
|
};
|
|
1573
1573
|
}
|
|
1574
|
-
function
|
|
1574
|
+
function or(t) {
|
|
1575
1575
|
let e;
|
|
1576
1576
|
return {
|
|
1577
1577
|
c() {
|
|
@@ -1585,15 +1585,15 @@ function lr(t) {
|
|
|
1585
1585
|
}
|
|
1586
1586
|
};
|
|
1587
1587
|
}
|
|
1588
|
-
function
|
|
1588
|
+
function cr(t) {
|
|
1589
1589
|
let e, r;
|
|
1590
|
-
return e = new
|
|
1590
|
+
return e = new ge({
|
|
1591
1591
|
props: {
|
|
1592
|
-
$$slots: { default: [
|
|
1592
|
+
$$slots: { default: [or] },
|
|
1593
1593
|
$$scope: { ctx: t }
|
|
1594
1594
|
}
|
|
1595
1595
|
}), e.$on("click", function() {
|
|
1596
|
-
|
|
1596
|
+
le(
|
|
1597
1597
|
/*onContinue*/
|
|
1598
1598
|
t[2]
|
|
1599
1599
|
) && t[2].apply(this, arguments);
|
|
@@ -1621,9 +1621,9 @@ function sr(t) {
|
|
|
1621
1621
|
}
|
|
1622
1622
|
};
|
|
1623
1623
|
}
|
|
1624
|
-
function
|
|
1624
|
+
function ar(t) {
|
|
1625
1625
|
let e, r, n, i, l, s;
|
|
1626
|
-
return e = new
|
|
1626
|
+
return e = new Et({
|
|
1627
1627
|
props: {
|
|
1628
1628
|
brandingInfo: (
|
|
1629
1629
|
/*brandingInfo*/
|
|
@@ -1634,14 +1634,14 @@ function or(t) {
|
|
|
1634
1634
|
t[2]
|
|
1635
1635
|
)
|
|
1636
1636
|
}
|
|
1637
|
-
}), n = new
|
|
1637
|
+
}), n = new q({
|
|
1638
1638
|
props: {
|
|
1639
|
-
$$slots: { default: [
|
|
1639
|
+
$$slots: { default: [sr] },
|
|
1640
1640
|
$$scope: { ctx: t }
|
|
1641
1641
|
}
|
|
1642
|
-
}), l = new
|
|
1642
|
+
}), l = new Me({
|
|
1643
1643
|
props: {
|
|
1644
|
-
$$slots: { default: [
|
|
1644
|
+
$$slots: { default: [cr] },
|
|
1645
1645
|
$$scope: { ctx: t }
|
|
1646
1646
|
}
|
|
1647
1647
|
}), {
|
|
@@ -1676,12 +1676,12 @@ function or(t) {
|
|
|
1676
1676
|
}
|
|
1677
1677
|
};
|
|
1678
1678
|
}
|
|
1679
|
-
function
|
|
1679
|
+
function ur(t) {
|
|
1680
1680
|
let e, r;
|
|
1681
|
-
return e = new
|
|
1681
|
+
return e = new Z({
|
|
1682
1682
|
props: {
|
|
1683
1683
|
gutter: "2rem",
|
|
1684
|
-
$$slots: { default: [
|
|
1684
|
+
$$slots: { default: [ar] },
|
|
1685
1685
|
$$scope: { ctx: t }
|
|
1686
1686
|
}
|
|
1687
1687
|
}), {
|
|
@@ -1707,9 +1707,9 @@ function cr(t) {
|
|
|
1707
1707
|
}
|
|
1708
1708
|
};
|
|
1709
1709
|
}
|
|
1710
|
-
function
|
|
1710
|
+
function fr(t, e, r) {
|
|
1711
1711
|
let { brandingInfo: n = null } = e, { lastError: i } = e, { supportEmail: l = null } = e, { onContinue: s } = e;
|
|
1712
|
-
|
|
1712
|
+
ve(() => {
|
|
1713
1713
|
console.debug(`Displayed error: ${O[i.errorCode]}. Message: ${i.message ?? "None"}. Underlying error: ${i.underlyingErrorMessage ?? "None"}`);
|
|
1714
1714
|
});
|
|
1715
1715
|
function o() {
|
|
@@ -1733,13 +1733,13 @@ function ar(t, e, r) {
|
|
|
1733
1733
|
"brandingInfo" in c && r(0, n = c.brandingInfo), "lastError" in c && r(4, i = c.lastError), "supportEmail" in c && r(1, l = c.supportEmail), "onContinue" in c && r(2, s = c.onContinue);
|
|
1734
1734
|
}, [n, l, s, o, i];
|
|
1735
1735
|
}
|
|
1736
|
-
class
|
|
1736
|
+
class dr extends C {
|
|
1737
1737
|
constructor(e) {
|
|
1738
|
-
super(),
|
|
1738
|
+
super(), U(
|
|
1739
1739
|
this,
|
|
1740
1740
|
e,
|
|
1741
|
-
|
|
1742
|
-
|
|
1741
|
+
fr,
|
|
1742
|
+
ur,
|
|
1743
1743
|
R,
|
|
1744
1744
|
{
|
|
1745
1745
|
brandingInfo: 0,
|
|
@@ -1747,19 +1747,19 @@ class ur extends U {
|
|
|
1747
1747
|
supportEmail: 1,
|
|
1748
1748
|
onContinue: 2
|
|
1749
1749
|
},
|
|
1750
|
-
|
|
1750
|
+
rr
|
|
1751
1751
|
);
|
|
1752
1752
|
}
|
|
1753
1753
|
}
|
|
1754
|
-
const
|
|
1755
|
-
function
|
|
1754
|
+
const mr = "data:image/svg+xml,%3csvg%20width='124'%20height='124'%20viewBox='0%200%20124%20124'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='62'%20cy='62'%20r='62'%20fill='%23576CDB'/%3e%3crect%20x='44.1116'%20y='56'%20width='27.5'%20height='11'%20transform='rotate(45%2044.1116%2056)'%20fill='white'/%3e%3crect%20x='79.1133'%20y='44.334'%20width='11'%20height='44'%20transform='rotate(45%2079.1133%2044.334)'%20fill='white'/%3e%3c/svg%3e";
|
|
1755
|
+
function gr(t) {
|
|
1756
1756
|
S(t, "svelte-7khg4b", "img.svelte-7khg4b{width:7.75rem;height:7.75rem;margin:0 auto}");
|
|
1757
1757
|
}
|
|
1758
|
-
function
|
|
1758
|
+
function Ar(t) {
|
|
1759
1759
|
let e, r;
|
|
1760
1760
|
return {
|
|
1761
1761
|
c() {
|
|
1762
|
-
e = $("img"),
|
|
1762
|
+
e = $("img"), V(e.src, r = mr) || h(e, "src", r), h(e, "alt", "icon"), h(e, "class", "rcb-ui-asset-icon svelte-7khg4b");
|
|
1763
1763
|
},
|
|
1764
1764
|
m(n, i) {
|
|
1765
1765
|
A(n, e, i);
|
|
@@ -1772,15 +1772,15 @@ function mr(t) {
|
|
|
1772
1772
|
}
|
|
1773
1773
|
};
|
|
1774
1774
|
}
|
|
1775
|
-
class
|
|
1775
|
+
class _r extends C {
|
|
1776
1776
|
constructor(e) {
|
|
1777
|
-
super(),
|
|
1777
|
+
super(), U(this, e, null, Ar, R, {}, gr);
|
|
1778
1778
|
}
|
|
1779
1779
|
}
|
|
1780
|
-
function
|
|
1780
|
+
function pr(t) {
|
|
1781
1781
|
S(t, "svelte-1lcsna9", ".rcb-modal-success.svelte-1lcsna9{width:100%;min-height:10rem;display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center}.title.svelte-1lcsna9{font-size:24px}.subtitle.svelte-1lcsna9{font-size:16px}");
|
|
1782
1782
|
}
|
|
1783
|
-
function
|
|
1783
|
+
function hr(t) {
|
|
1784
1784
|
let e, r, n;
|
|
1785
1785
|
return {
|
|
1786
1786
|
c() {
|
|
@@ -1795,12 +1795,12 @@ function _r(t) {
|
|
|
1795
1795
|
}
|
|
1796
1796
|
};
|
|
1797
1797
|
}
|
|
1798
|
-
function
|
|
1798
|
+
function Er(t) {
|
|
1799
1799
|
let e, r, n, i;
|
|
1800
|
-
return e = new
|
|
1800
|
+
return e = new _r({}), n = new Z({
|
|
1801
1801
|
props: {
|
|
1802
1802
|
gutter: "1rem",
|
|
1803
|
-
$$slots: { default: [
|
|
1803
|
+
$$slots: { default: [hr] },
|
|
1804
1804
|
$$scope: { ctx: t }
|
|
1805
1805
|
}
|
|
1806
1806
|
}), {
|
|
@@ -1826,12 +1826,12 @@ function pr(t) {
|
|
|
1826
1826
|
}
|
|
1827
1827
|
};
|
|
1828
1828
|
}
|
|
1829
|
-
function
|
|
1829
|
+
function Ir(t) {
|
|
1830
1830
|
let e, r, n;
|
|
1831
|
-
return r = new
|
|
1831
|
+
return r = new Z({
|
|
1832
1832
|
props: {
|
|
1833
1833
|
gutter: "1rem",
|
|
1834
|
-
$$slots: { default: [
|
|
1834
|
+
$$slots: { default: [Er] },
|
|
1835
1835
|
$$scope: { ctx: t }
|
|
1836
1836
|
}
|
|
1837
1837
|
}), {
|
|
@@ -1857,7 +1857,7 @@ function hr(t) {
|
|
|
1857
1857
|
}
|
|
1858
1858
|
};
|
|
1859
1859
|
}
|
|
1860
|
-
function
|
|
1860
|
+
function wr(t) {
|
|
1861
1861
|
let e;
|
|
1862
1862
|
return {
|
|
1863
1863
|
c() {
|
|
@@ -1871,15 +1871,15 @@ function Er(t) {
|
|
|
1871
1871
|
}
|
|
1872
1872
|
};
|
|
1873
1873
|
}
|
|
1874
|
-
function
|
|
1874
|
+
function br(t) {
|
|
1875
1875
|
let e, r;
|
|
1876
|
-
return e = new
|
|
1876
|
+
return e = new ge({
|
|
1877
1877
|
props: {
|
|
1878
|
-
$$slots: { default: [
|
|
1878
|
+
$$slots: { default: [wr] },
|
|
1879
1879
|
$$scope: { ctx: t }
|
|
1880
1880
|
}
|
|
1881
1881
|
}), e.$on("click", function() {
|
|
1882
|
-
|
|
1882
|
+
le(
|
|
1883
1883
|
/*onContinue*/
|
|
1884
1884
|
t[1]
|
|
1885
1885
|
) && t[1].apply(this, arguments);
|
|
@@ -1907,9 +1907,9 @@ function Ir(t) {
|
|
|
1907
1907
|
}
|
|
1908
1908
|
};
|
|
1909
1909
|
}
|
|
1910
|
-
function
|
|
1910
|
+
function $r(t) {
|
|
1911
1911
|
let e, r, n, i, l, s;
|
|
1912
|
-
return e = new
|
|
1912
|
+
return e = new Et({
|
|
1913
1913
|
props: {
|
|
1914
1914
|
brandingInfo: (
|
|
1915
1915
|
/*brandingInfo*/
|
|
@@ -1920,14 +1920,14 @@ function wr(t) {
|
|
|
1920
1920
|
t[1]
|
|
1921
1921
|
)
|
|
1922
1922
|
}
|
|
1923
|
-
}), n = new
|
|
1923
|
+
}), n = new q({
|
|
1924
1924
|
props: {
|
|
1925
|
-
$$slots: { default: [
|
|
1925
|
+
$$slots: { default: [Ir] },
|
|
1926
1926
|
$$scope: { ctx: t }
|
|
1927
1927
|
}
|
|
1928
|
-
}), l = new
|
|
1928
|
+
}), l = new Me({
|
|
1929
1929
|
props: {
|
|
1930
|
-
$$slots: { default: [
|
|
1930
|
+
$$slots: { default: [br] },
|
|
1931
1931
|
$$scope: { ctx: t }
|
|
1932
1932
|
}
|
|
1933
1933
|
}), {
|
|
@@ -1962,12 +1962,12 @@ function wr(t) {
|
|
|
1962
1962
|
}
|
|
1963
1963
|
};
|
|
1964
1964
|
}
|
|
1965
|
-
function
|
|
1965
|
+
function Br(t) {
|
|
1966
1966
|
let e, r;
|
|
1967
|
-
return e = new
|
|
1967
|
+
return e = new Z({
|
|
1968
1968
|
props: {
|
|
1969
1969
|
gutter: "2rem",
|
|
1970
|
-
$$slots: { default: [
|
|
1970
|
+
$$slots: { default: [$r] },
|
|
1971
1971
|
$$scope: { ctx: t }
|
|
1972
1972
|
}
|
|
1973
1973
|
}), {
|
|
@@ -1993,30 +1993,30 @@ function br(t) {
|
|
|
1993
1993
|
}
|
|
1994
1994
|
};
|
|
1995
1995
|
}
|
|
1996
|
-
function
|
|
1996
|
+
function kr(t, e, r) {
|
|
1997
1997
|
let { brandingInfo: n = null } = e, { onContinue: i } = e;
|
|
1998
1998
|
return t.$$set = (l) => {
|
|
1999
1999
|
"brandingInfo" in l && r(0, n = l.brandingInfo), "onContinue" in l && r(1, i = l.onContinue);
|
|
2000
2000
|
}, [n, i];
|
|
2001
2001
|
}
|
|
2002
|
-
class
|
|
2002
|
+
class yr extends C {
|
|
2003
2003
|
constructor(e) {
|
|
2004
|
-
super(),
|
|
2004
|
+
super(), U(this, e, kr, Br, R, { brandingInfo: 0, onContinue: 1 }, pr);
|
|
2005
2005
|
}
|
|
2006
2006
|
}
|
|
2007
|
-
function
|
|
2007
|
+
function Dr(t, e, r, n, i = {}) {
|
|
2008
2008
|
const l = r.create(e, i);
|
|
2009
2009
|
return l.mount(t), l.on("change", (s) => n("change", s)), l.on("ready", (s) => n("ready", s)), l.on("focus", (s) => n("focus", s)), l.on("blur", (s) => n("blur", s)), l.on("escape", (s) => n("escape", s)), l.on("click", (s) => n("click", s)), l.on("loaderror", (s) => n("loaderror", s)), l.on("loaderstart", (s) => n("loaderstart", s)), l.on("networkschange", (s) => n("networkschange", s)), l;
|
|
2010
2010
|
}
|
|
2011
|
-
const
|
|
2012
|
-
function
|
|
2013
|
-
if (!
|
|
2011
|
+
const vr = typeof window > "u";
|
|
2012
|
+
function Qr(t) {
|
|
2013
|
+
if (!vr)
|
|
2014
2014
|
return t.registerAppInfo({
|
|
2015
2015
|
name: "svelte-stripe-js",
|
|
2016
2016
|
url: "https://svelte-stripe-js.vercel.app"
|
|
2017
2017
|
});
|
|
2018
2018
|
}
|
|
2019
|
-
function
|
|
2019
|
+
function Mr(t) {
|
|
2020
2020
|
let e;
|
|
2021
2021
|
return {
|
|
2022
2022
|
c() {
|
|
@@ -2033,11 +2033,11 @@ function Qr(t) {
|
|
|
2033
2033
|
}
|
|
2034
2034
|
};
|
|
2035
2035
|
}
|
|
2036
|
-
function
|
|
2036
|
+
function Tr(t, e, r) {
|
|
2037
2037
|
let n, i;
|
|
2038
|
-
const l =
|
|
2038
|
+
const l = Wt(), { elements: s } = Xt("stripe");
|
|
2039
2039
|
let { options: o = void 0 } = e;
|
|
2040
|
-
|
|
2040
|
+
ve(() => (n = Dr(i, "payment", s, l, o), () => n.destroy()));
|
|
2041
2041
|
function c() {
|
|
2042
2042
|
n.blur();
|
|
2043
2043
|
}
|
|
@@ -2051,7 +2051,7 @@ function vr(t, e, r) {
|
|
|
2051
2051
|
n.focus();
|
|
2052
2052
|
}
|
|
2053
2053
|
function B(k) {
|
|
2054
|
-
|
|
2054
|
+
ke[k ? "unshift" : "push"](() => {
|
|
2055
2055
|
i = k, r(0, i);
|
|
2056
2056
|
});
|
|
2057
2057
|
}
|
|
@@ -2059,9 +2059,9 @@ function vr(t, e, r) {
|
|
|
2059
2059
|
"options" in k && r(1, o = k.options);
|
|
2060
2060
|
}, [i, o, c, u, _, m, B];
|
|
2061
2061
|
}
|
|
2062
|
-
class
|
|
2062
|
+
class Pr extends C {
|
|
2063
2063
|
constructor(e) {
|
|
2064
|
-
super(),
|
|
2064
|
+
super(), U(this, e, Tr, Mr, R, {
|
|
2065
2065
|
options: 1,
|
|
2066
2066
|
blur: 2,
|
|
2067
2067
|
clear: 3,
|
|
@@ -2082,12 +2082,12 @@ class Mr extends U {
|
|
|
2082
2082
|
return this.$$.ctx[5];
|
|
2083
2083
|
}
|
|
2084
2084
|
}
|
|
2085
|
-
function
|
|
2085
|
+
function qe(t) {
|
|
2086
2086
|
let e;
|
|
2087
2087
|
const r = (
|
|
2088
2088
|
/*#slots*/
|
|
2089
2089
|
t[15].default
|
|
2090
|
-
), n =
|
|
2090
|
+
), n = K(
|
|
2091
2091
|
r,
|
|
2092
2092
|
t,
|
|
2093
2093
|
/*$$scope*/
|
|
@@ -2103,19 +2103,19 @@ function Ve(t) {
|
|
|
2103
2103
|
},
|
|
2104
2104
|
p(i, l) {
|
|
2105
2105
|
n && n.p && (!e || l & /*$$scope*/
|
|
2106
|
-
16384) &&
|
|
2106
|
+
16384) && J(
|
|
2107
2107
|
n,
|
|
2108
2108
|
r,
|
|
2109
2109
|
i,
|
|
2110
2110
|
/*$$scope*/
|
|
2111
2111
|
i[14],
|
|
2112
|
-
e ?
|
|
2112
|
+
e ? j(
|
|
2113
2113
|
r,
|
|
2114
2114
|
/*$$scope*/
|
|
2115
2115
|
i[14],
|
|
2116
2116
|
l,
|
|
2117
2117
|
null
|
|
2118
|
-
) :
|
|
2118
|
+
) : x(
|
|
2119
2119
|
/*$$scope*/
|
|
2120
2120
|
i[14]
|
|
2121
2121
|
),
|
|
@@ -2133,15 +2133,15 @@ function Ve(t) {
|
|
|
2133
2133
|
}
|
|
2134
2134
|
};
|
|
2135
2135
|
}
|
|
2136
|
-
function
|
|
2136
|
+
function Nr(t) {
|
|
2137
2137
|
let e, r, n = (
|
|
2138
2138
|
/*stripe*/
|
|
2139
2139
|
t[1] && /*elements*/
|
|
2140
|
-
t[0] &&
|
|
2140
|
+
t[0] && qe(t)
|
|
2141
2141
|
);
|
|
2142
2142
|
return {
|
|
2143
2143
|
c() {
|
|
2144
|
-
n && n.c(), e =
|
|
2144
|
+
n && n.c(), e = X();
|
|
2145
2145
|
},
|
|
2146
2146
|
m(i, l) {
|
|
2147
2147
|
n && n.m(i, l), A(i, e, l), r = !0;
|
|
@@ -2150,7 +2150,7 @@ function Tr(t) {
|
|
|
2150
2150
|
/*stripe*/
|
|
2151
2151
|
i[1] && /*elements*/
|
|
2152
2152
|
i[0] ? n ? (n.p(i, l), l & /*stripe, elements*/
|
|
2153
|
-
3 && a(n, 1)) : (n =
|
|
2153
|
+
3 && a(n, 1)) : (n = qe(i), n.c(), a(n, 1), n.m(e.parentNode, e)) : n && (F(), f(n, 1, 1, () => {
|
|
2154
2154
|
n = null;
|
|
2155
2155
|
}), G());
|
|
2156
2156
|
},
|
|
@@ -2165,23 +2165,23 @@ function Tr(t) {
|
|
|
2165
2165
|
}
|
|
2166
2166
|
};
|
|
2167
2167
|
}
|
|
2168
|
-
function
|
|
2169
|
-
let n, { $$slots: i = {}, $$scope: l } = e, { stripe: s } = e, { mode: o = void 0 } = e, { theme: c = "stripe" } = e, { variables: u = {} } = e, { rules: _ = {} } = e, { labels: m = "above" } = e, { loader: B = "auto" } = e, { fonts: k = [] } = e, { locale: E = "auto" } = e, { currency: y = void 0 } = e, { amount:
|
|
2168
|
+
function Rr(t, e, r) {
|
|
2169
|
+
let n, { $$slots: i = {}, $$scope: l } = e, { stripe: s } = e, { mode: o = void 0 } = e, { theme: c = "stripe" } = e, { variables: u = {} } = e, { rules: _ = {} } = e, { labels: m = "above" } = e, { loader: B = "auto" } = e, { fonts: k = [] } = e, { locale: E = "auto" } = e, { currency: y = void 0 } = e, { amount: M = void 0 } = e, { clientSecret: N = void 0 } = e, { elements: d = null } = e;
|
|
2170
2170
|
return t.$$set = (p) => {
|
|
2171
|
-
"stripe" in p && r(1, s = p.stripe), "mode" in p && r(2, o = p.mode), "theme" in p && r(3, c = p.theme), "variables" in p && r(4, u = p.variables), "rules" in p && r(5, _ = p.rules), "labels" in p && r(6, m = p.labels), "loader" in p && r(7, B = p.loader), "fonts" in p && r(8, k = p.fonts), "locale" in p && r(9, E = p.locale), "currency" in p && r(10, y = p.currency), "amount" in p && r(11,
|
|
2171
|
+
"stripe" in p && r(1, s = p.stripe), "mode" in p && r(2, o = p.mode), "theme" in p && r(3, c = p.theme), "variables" in p && r(4, u = p.variables), "rules" in p && r(5, _ = p.rules), "labels" in p && r(6, m = p.labels), "loader" in p && r(7, B = p.loader), "fonts" in p && r(8, k = p.fonts), "locale" in p && r(9, E = p.locale), "currency" in p && r(10, y = p.currency), "amount" in p && r(11, M = p.amount), "clientSecret" in p && r(12, N = p.clientSecret), "elements" in p && r(0, d = p.elements), "$$scope" in p && r(14, l = p.$$scope);
|
|
2172
2172
|
}, t.$$.update = () => {
|
|
2173
2173
|
t.$$.dirty & /*theme, variables, rules, labels*/
|
|
2174
2174
|
120 && r(13, n = { theme: c, variables: u, rules: _, labels: m }), t.$$.dirty & /*stripe, elements, mode, currency, amount, appearance, clientSecret, fonts, loader, locale*/
|
|
2175
2175
|
16263 && s && !d && (r(0, d = s.elements({
|
|
2176
2176
|
mode: o,
|
|
2177
2177
|
currency: y,
|
|
2178
|
-
amount:
|
|
2178
|
+
amount: M,
|
|
2179
2179
|
appearance: n,
|
|
2180
2180
|
clientSecret: N,
|
|
2181
2181
|
fonts: k,
|
|
2182
2182
|
loader: B,
|
|
2183
2183
|
locale: E
|
|
2184
|
-
})),
|
|
2184
|
+
})), Qr(s), zt("stripe", { stripe: s, elements: d })), t.$$.dirty & /*elements, appearance, locale*/
|
|
2185
2185
|
8705 && d && d.update({ appearance: n, locale: E });
|
|
2186
2186
|
}, [
|
|
2187
2187
|
d,
|
|
@@ -2195,16 +2195,16 @@ function Pr(t, e, r) {
|
|
|
2195
2195
|
k,
|
|
2196
2196
|
E,
|
|
2197
2197
|
y,
|
|
2198
|
-
|
|
2198
|
+
M,
|
|
2199
2199
|
N,
|
|
2200
2200
|
n,
|
|
2201
2201
|
l,
|
|
2202
2202
|
i
|
|
2203
2203
|
];
|
|
2204
2204
|
}
|
|
2205
|
-
class
|
|
2205
|
+
class Ur extends C {
|
|
2206
2206
|
constructor(e) {
|
|
2207
|
-
super(),
|
|
2207
|
+
super(), U(this, e, Rr, Nr, R, {
|
|
2208
2208
|
stripe: 1,
|
|
2209
2209
|
mode: 2,
|
|
2210
2210
|
theme: 3,
|
|
@@ -2221,90 +2221,90 @@ class Nr extends U {
|
|
|
2221
2221
|
});
|
|
2222
2222
|
}
|
|
2223
2223
|
}
|
|
2224
|
-
var
|
|
2225
|
-
for (var e = document.querySelectorAll('script[src^="'.concat(
|
|
2224
|
+
var It = "https://js.stripe.com/v3", Cr = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, We = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", Or = function() {
|
|
2225
|
+
for (var e = document.querySelectorAll('script[src^="'.concat(It, '"]')), r = 0; r < e.length; r++) {
|
|
2226
2226
|
var n = e[r];
|
|
2227
|
-
if (
|
|
2227
|
+
if (Cr.test(n.src))
|
|
2228
2228
|
return n;
|
|
2229
2229
|
}
|
|
2230
2230
|
return null;
|
|
2231
|
-
},
|
|
2231
|
+
}, ze = function(e) {
|
|
2232
2232
|
var r = e && !e.advancedFraudSignals ? "?advancedFraudSignals=false" : "", n = document.createElement("script");
|
|
2233
|
-
n.src = "".concat(
|
|
2233
|
+
n.src = "".concat(It).concat(r);
|
|
2234
2234
|
var i = document.head || document.body;
|
|
2235
2235
|
if (!i)
|
|
2236
2236
|
throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
|
|
2237
2237
|
return i.appendChild(n), n;
|
|
2238
|
-
},
|
|
2238
|
+
}, Sr = function(e, r) {
|
|
2239
2239
|
!e || !e._registerWrapper || e._registerWrapper({
|
|
2240
2240
|
name: "stripe-js",
|
|
2241
2241
|
version: "2.3.0",
|
|
2242
2242
|
startTime: r
|
|
2243
2243
|
});
|
|
2244
|
-
},
|
|
2244
|
+
}, ce = null, Ee = null, Ie = null, Lr = function(e) {
|
|
2245
2245
|
return function() {
|
|
2246
2246
|
e(new Error("Failed to load Stripe.js"));
|
|
2247
2247
|
};
|
|
2248
|
-
},
|
|
2248
|
+
}, Fr = function(e, r) {
|
|
2249
2249
|
return function() {
|
|
2250
2250
|
window.Stripe ? e(window.Stripe) : r(new Error("Stripe.js not available"));
|
|
2251
2251
|
};
|
|
2252
|
-
},
|
|
2253
|
-
return
|
|
2252
|
+
}, Gr = function(e) {
|
|
2253
|
+
return ce !== null ? ce : (ce = new Promise(function(r, n) {
|
|
2254
2254
|
if (typeof window > "u" || typeof document > "u") {
|
|
2255
2255
|
r(null);
|
|
2256
2256
|
return;
|
|
2257
2257
|
}
|
|
2258
|
-
if (window.Stripe && e && console.warn(
|
|
2258
|
+
if (window.Stripe && e && console.warn(We), window.Stripe) {
|
|
2259
2259
|
r(window.Stripe);
|
|
2260
2260
|
return;
|
|
2261
2261
|
}
|
|
2262
2262
|
try {
|
|
2263
|
-
var i =
|
|
2263
|
+
var i = Or();
|
|
2264
2264
|
if (i && e)
|
|
2265
|
-
console.warn(
|
|
2265
|
+
console.warn(We);
|
|
2266
2266
|
else if (!i)
|
|
2267
|
-
i =
|
|
2268
|
-
else if (i &&
|
|
2267
|
+
i = ze(e);
|
|
2268
|
+
else if (i && Ie !== null && Ee !== null) {
|
|
2269
2269
|
var l;
|
|
2270
|
-
i.removeEventListener("load",
|
|
2270
|
+
i.removeEventListener("load", Ie), i.removeEventListener("error", Ee), (l = i.parentNode) === null || l === void 0 || l.removeChild(i), i = ze(e);
|
|
2271
2271
|
}
|
|
2272
|
-
|
|
2272
|
+
Ie = Fr(r, n), Ee = Lr(n), i.addEventListener("load", Ie), i.addEventListener("error", Ee);
|
|
2273
2273
|
} catch (s) {
|
|
2274
2274
|
n(s);
|
|
2275
2275
|
return;
|
|
2276
2276
|
}
|
|
2277
|
-
}),
|
|
2278
|
-
return
|
|
2277
|
+
}), ce.catch(function(r) {
|
|
2278
|
+
return ce = null, Promise.reject(r);
|
|
2279
2279
|
}));
|
|
2280
|
-
},
|
|
2280
|
+
}, Yr = function(e, r, n) {
|
|
2281
2281
|
if (e === null)
|
|
2282
2282
|
return null;
|
|
2283
2283
|
var i = e.apply(void 0, r);
|
|
2284
|
-
return
|
|
2285
|
-
},
|
|
2286
|
-
return
|
|
2287
|
-
return
|
|
2288
|
-
}),
|
|
2284
|
+
return Sr(i, n), i;
|
|
2285
|
+
}, ae, wt = !1, bt = function() {
|
|
2286
|
+
return ae || (ae = Gr(null).catch(function(e) {
|
|
2287
|
+
return ae = null, Promise.reject(e);
|
|
2288
|
+
}), ae);
|
|
2289
2289
|
};
|
|
2290
2290
|
Promise.resolve().then(function() {
|
|
2291
|
-
return
|
|
2291
|
+
return bt();
|
|
2292
2292
|
}).catch(function(t) {
|
|
2293
|
-
|
|
2293
|
+
wt || console.warn(t);
|
|
2294
2294
|
});
|
|
2295
|
-
var
|
|
2295
|
+
var Hr = function() {
|
|
2296
2296
|
for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++)
|
|
2297
2297
|
r[n] = arguments[n];
|
|
2298
|
-
|
|
2298
|
+
wt = !0;
|
|
2299
2299
|
var i = Date.now();
|
|
2300
|
-
return
|
|
2301
|
-
return
|
|
2300
|
+
return bt().then(function(l) {
|
|
2301
|
+
return Yr(l, r, i);
|
|
2302
2302
|
});
|
|
2303
2303
|
};
|
|
2304
|
-
function
|
|
2304
|
+
function Kr(t) {
|
|
2305
2305
|
S(t, "svelte-1fwwzeb", ".rcb-stripe-elements-container.svelte-1fwwzeb{width:100%;margin-bottom:1rem}");
|
|
2306
2306
|
}
|
|
2307
|
-
function
|
|
2307
|
+
function jr(t) {
|
|
2308
2308
|
let e, r;
|
|
2309
2309
|
return e = new Qe({}), {
|
|
2310
2310
|
c() {
|
|
@@ -2325,7 +2325,7 @@ function Hr(t) {
|
|
|
2325
2325
|
}
|
|
2326
2326
|
};
|
|
2327
2327
|
}
|
|
2328
|
-
function
|
|
2328
|
+
function Jr(t) {
|
|
2329
2329
|
let e, r, n, i, l, s;
|
|
2330
2330
|
function o(u) {
|
|
2331
2331
|
t[9](u);
|
|
@@ -2340,18 +2340,18 @@ function Kr(t) {
|
|
|
2340
2340
|
t[4]
|
|
2341
2341
|
),
|
|
2342
2342
|
loader: "always",
|
|
2343
|
-
$$slots: { default: [
|
|
2343
|
+
$$slots: { default: [ei] },
|
|
2344
2344
|
$$scope: { ctx: t }
|
|
2345
2345
|
};
|
|
2346
2346
|
return (
|
|
2347
2347
|
/*elements*/
|
|
2348
2348
|
t[1] !== void 0 && (c.elements = /*elements*/
|
|
2349
|
-
t[1]), r = new
|
|
2349
|
+
t[1]), r = new Ur({ props: c }), ke.push(() => ln(r, "elements", o)), {
|
|
2350
2350
|
c() {
|
|
2351
2351
|
e = $("form"), b(r.$$.fragment);
|
|
2352
2352
|
},
|
|
2353
2353
|
m(u, _) {
|
|
2354
|
-
A(u, e, _), I(r, e, null), i = !0, l || (s =
|
|
2354
|
+
A(u, e, _), I(r, e, null), i = !0, l || (s = _e(e, "submit", mt(
|
|
2355
2355
|
/*handleContinue*/
|
|
2356
2356
|
t[5]
|
|
2357
2357
|
)), l = !0);
|
|
@@ -2363,7 +2363,7 @@ function Kr(t) {
|
|
|
2363
2363
|
u[2]), _ & /*$$scope, processing, onClose*/
|
|
2364
2364
|
2057 && (m.$$scope = { dirty: _, ctx: u }), !n && _ & /*elements*/
|
|
2365
2365
|
2 && (n = !0, m.elements = /*elements*/
|
|
2366
|
-
u[1],
|
|
2366
|
+
u[1], tn(() => n = !1)), r.$set(m);
|
|
2367
2367
|
},
|
|
2368
2368
|
i(u) {
|
|
2369
2369
|
i || (a(r.$$.fragment, u), i = !0);
|
|
@@ -2377,9 +2377,9 @@ function Kr(t) {
|
|
|
2377
2377
|
}
|
|
2378
2378
|
);
|
|
2379
2379
|
}
|
|
2380
|
-
function
|
|
2380
|
+
function xr(t) {
|
|
2381
2381
|
let e, r, n;
|
|
2382
|
-
return r = new
|
|
2382
|
+
return r = new Pr({}), {
|
|
2383
2383
|
c() {
|
|
2384
2384
|
e = $("div"), b(r.$$.fragment), h(e, "class", "rcb-stripe-elements-container svelte-1fwwzeb");
|
|
2385
2385
|
},
|
|
@@ -2398,7 +2398,7 @@ function jr(t) {
|
|
|
2398
2398
|
}
|
|
2399
2399
|
};
|
|
2400
2400
|
}
|
|
2401
|
-
function
|
|
2401
|
+
function Vr(t) {
|
|
2402
2402
|
let e;
|
|
2403
2403
|
return {
|
|
2404
2404
|
c() {
|
|
@@ -2412,7 +2412,7 @@ function Jr(t) {
|
|
|
2412
2412
|
}
|
|
2413
2413
|
};
|
|
2414
2414
|
}
|
|
2415
|
-
function
|
|
2415
|
+
function qr(t) {
|
|
2416
2416
|
let e;
|
|
2417
2417
|
return {
|
|
2418
2418
|
c() {
|
|
@@ -2426,18 +2426,18 @@ function xr(t) {
|
|
|
2426
2426
|
}
|
|
2427
2427
|
};
|
|
2428
2428
|
}
|
|
2429
|
-
function
|
|
2429
|
+
function Wr(t) {
|
|
2430
2430
|
let e;
|
|
2431
2431
|
function r(l, s) {
|
|
2432
2432
|
return (
|
|
2433
2433
|
/*processing*/
|
|
2434
|
-
l[3] ?
|
|
2434
|
+
l[3] ? qr : Vr
|
|
2435
2435
|
);
|
|
2436
2436
|
}
|
|
2437
2437
|
let n = r(t), i = n(t);
|
|
2438
2438
|
return {
|
|
2439
2439
|
c() {
|
|
2440
|
-
i.c(), e =
|
|
2440
|
+
i.c(), e = X();
|
|
2441
2441
|
},
|
|
2442
2442
|
m(l, s) {
|
|
2443
2443
|
i.m(l, s), A(l, e, s);
|
|
@@ -2450,7 +2450,7 @@ function Vr(t) {
|
|
|
2450
2450
|
}
|
|
2451
2451
|
};
|
|
2452
2452
|
}
|
|
2453
|
-
function
|
|
2453
|
+
function zr(t) {
|
|
2454
2454
|
let e;
|
|
2455
2455
|
return {
|
|
2456
2456
|
c() {
|
|
@@ -2464,29 +2464,29 @@ function qr(t) {
|
|
|
2464
2464
|
}
|
|
2465
2465
|
};
|
|
2466
2466
|
}
|
|
2467
|
-
function
|
|
2467
|
+
function Xr(t) {
|
|
2468
2468
|
let e, r, n, i;
|
|
2469
|
-
return e = new
|
|
2469
|
+
return e = new ge({
|
|
2470
2470
|
props: {
|
|
2471
2471
|
disabled: (
|
|
2472
2472
|
/*processing*/
|
|
2473
2473
|
t[3]
|
|
2474
2474
|
),
|
|
2475
|
-
$$slots: { default: [
|
|
2475
|
+
$$slots: { default: [Wr] },
|
|
2476
2476
|
$$scope: { ctx: t }
|
|
2477
2477
|
}
|
|
2478
|
-
}), n = new
|
|
2478
|
+
}), n = new ge({
|
|
2479
2479
|
props: {
|
|
2480
2480
|
disabled: (
|
|
2481
2481
|
/*processing*/
|
|
2482
2482
|
t[3]
|
|
2483
2483
|
),
|
|
2484
2484
|
intent: "secondary",
|
|
2485
|
-
$$slots: { default: [
|
|
2485
|
+
$$slots: { default: [zr] },
|
|
2486
2486
|
$$scope: { ctx: t }
|
|
2487
2487
|
}
|
|
2488
2488
|
}), n.$on("click", function() {
|
|
2489
|
-
|
|
2489
|
+
le(
|
|
2490
2490
|
/*onClose*/
|
|
2491
2491
|
t[0]
|
|
2492
2492
|
) && t[0].apply(this, arguments);
|
|
@@ -2521,11 +2521,11 @@ function Wr(t) {
|
|
|
2521
2521
|
}
|
|
2522
2522
|
};
|
|
2523
2523
|
}
|
|
2524
|
-
function
|
|
2524
|
+
function Zr(t) {
|
|
2525
2525
|
let e, r;
|
|
2526
|
-
return e = new
|
|
2526
|
+
return e = new Z({
|
|
2527
2527
|
props: {
|
|
2528
|
-
$$slots: { default: [
|
|
2528
|
+
$$slots: { default: [Xr] },
|
|
2529
2529
|
$$scope: { ctx: t }
|
|
2530
2530
|
}
|
|
2531
2531
|
}), {
|
|
@@ -2551,16 +2551,16 @@ function zr(t) {
|
|
|
2551
2551
|
}
|
|
2552
2552
|
};
|
|
2553
2553
|
}
|
|
2554
|
-
function
|
|
2554
|
+
function ei(t) {
|
|
2555
2555
|
let e, r, n, i;
|
|
2556
|
-
return e = new
|
|
2556
|
+
return e = new q({
|
|
2557
2557
|
props: {
|
|
2558
|
-
$$slots: { default: [
|
|
2558
|
+
$$slots: { default: [xr] },
|
|
2559
2559
|
$$scope: { ctx: t }
|
|
2560
2560
|
}
|
|
2561
|
-
}), n = new
|
|
2561
|
+
}), n = new Me({
|
|
2562
2562
|
props: {
|
|
2563
|
-
$$slots: { default: [
|
|
2563
|
+
$$slots: { default: [Zr] },
|
|
2564
2564
|
$$scope: { ctx: t }
|
|
2565
2565
|
}
|
|
2566
2566
|
}), {
|
|
@@ -2589,9 +2589,9 @@ function Xr(t) {
|
|
|
2589
2589
|
}
|
|
2590
2590
|
};
|
|
2591
2591
|
}
|
|
2592
|
-
function
|
|
2592
|
+
function ti(t) {
|
|
2593
2593
|
let e, r, n, i;
|
|
2594
|
-
const l = [
|
|
2594
|
+
const l = [Jr, jr], s = [];
|
|
2595
2595
|
function o(c, u) {
|
|
2596
2596
|
return (
|
|
2597
2597
|
/*stripe*/
|
|
@@ -2623,15 +2623,15 @@ function Zr(t) {
|
|
|
2623
2623
|
}
|
|
2624
2624
|
};
|
|
2625
2625
|
}
|
|
2626
|
-
function
|
|
2626
|
+
function ni(t, e, r) {
|
|
2627
2627
|
let { onClose: n } = e, { onContinue: i } = e, { onError: l } = e, { paymentInfoCollectionMetadata: s } = e;
|
|
2628
2628
|
const o = s.data.client_secret;
|
|
2629
2629
|
let c = null, u, _ = !1, m;
|
|
2630
|
-
|
|
2630
|
+
ve(async () => {
|
|
2631
2631
|
const E = s.data.publishable_api_key, y = s.data.stripe_account_id;
|
|
2632
2632
|
if (!E || !y)
|
|
2633
2633
|
throw new Error("Stripe publishable key or account ID not found");
|
|
2634
|
-
r(2, c = await
|
|
2634
|
+
r(2, c = await Hr(E, { stripeAccount: y }));
|
|
2635
2635
|
});
|
|
2636
2636
|
const B = async () => {
|
|
2637
2637
|
if (_ || !c || !m)
|
|
@@ -2664,13 +2664,13 @@ function ei(t, e, r) {
|
|
|
2664
2664
|
k
|
|
2665
2665
|
];
|
|
2666
2666
|
}
|
|
2667
|
-
class
|
|
2667
|
+
class ri extends C {
|
|
2668
2668
|
constructor(e) {
|
|
2669
|
-
super(),
|
|
2669
|
+
super(), U(
|
|
2670
2670
|
this,
|
|
2671
2671
|
e,
|
|
2672
|
-
|
|
2673
|
-
|
|
2672
|
+
ni,
|
|
2673
|
+
ti,
|
|
2674
2674
|
R,
|
|
2675
2675
|
{
|
|
2676
2676
|
onClose: 0,
|
|
@@ -2678,14 +2678,14 @@ class ti extends U {
|
|
|
2678
2678
|
onError: 7,
|
|
2679
2679
|
paymentInfoCollectionMetadata: 8
|
|
2680
2680
|
},
|
|
2681
|
-
|
|
2681
|
+
Kr
|
|
2682
2682
|
);
|
|
2683
2683
|
}
|
|
2684
2684
|
}
|
|
2685
|
-
function
|
|
2685
|
+
function ii(t) {
|
|
2686
2686
|
S(t, "svelte-1xardyz", ".form-container.svelte-1xardyz{display:flex;flex-direction:column;width:100%}.form-label.svelte-1xardyz{margin-top:0.5rem;margin-bottom:0.5rem;display:block}.form-input.svelte-1xardyz{margin-bottom:1rem}.title.svelte-1xardyz{font-size:1.5rem;margin:0;margin-bottom:0.5rem}input.svelte-1xardyz{width:94%;padding:0.5rem;border:1px solid #ccc;border-radius:0.25rem}");
|
|
2687
2687
|
}
|
|
2688
|
-
function
|
|
2688
|
+
function li(t) {
|
|
2689
2689
|
let e;
|
|
2690
2690
|
return {
|
|
2691
2691
|
c() {
|
|
@@ -2700,18 +2700,18 @@ function ri(t) {
|
|
|
2700
2700
|
}
|
|
2701
2701
|
};
|
|
2702
2702
|
}
|
|
2703
|
-
function
|
|
2703
|
+
function si(t) {
|
|
2704
2704
|
let e, r, n, i, l, s, o;
|
|
2705
2705
|
return {
|
|
2706
2706
|
c() {
|
|
2707
2707
|
e = $("div"), r = $("div"), r.innerHTML = '<label for="email">E-mail</label>', n = P(), i = $("div"), l = $("input"), h(r, "class", "form-label svelte-1xardyz"), h(l, "name", "email"), h(l, "placeholder", "john@appleseed.com"), h(l, "class", "svelte-1xardyz"), h(i, "class", "form-input svelte-1xardyz"), h(e, "class", "form-container svelte-1xardyz");
|
|
2708
2708
|
},
|
|
2709
2709
|
m(c, u) {
|
|
2710
|
-
A(c, e, u),
|
|
2710
|
+
A(c, e, u), T(e, r), T(e, n), T(e, i), T(i, l), Ke(
|
|
2711
2711
|
l,
|
|
2712
2712
|
/*email*/
|
|
2713
2713
|
t[0]
|
|
2714
|
-
), s || (o =
|
|
2714
|
+
), s || (o = _e(
|
|
2715
2715
|
l,
|
|
2716
2716
|
"input",
|
|
2717
2717
|
/*input_input_handler*/
|
|
@@ -2721,7 +2721,7 @@ function ii(t) {
|
|
|
2721
2721
|
p(c, u) {
|
|
2722
2722
|
u & /*email*/
|
|
2723
2723
|
1 && l.value !== /*email*/
|
|
2724
|
-
c[0] &&
|
|
2724
|
+
c[0] && Ke(
|
|
2725
2725
|
l,
|
|
2726
2726
|
/*email*/
|
|
2727
2727
|
c[0]
|
|
@@ -2732,7 +2732,7 @@ function ii(t) {
|
|
|
2732
2732
|
}
|
|
2733
2733
|
};
|
|
2734
2734
|
}
|
|
2735
|
-
function
|
|
2735
|
+
function oi(t) {
|
|
2736
2736
|
let e;
|
|
2737
2737
|
return {
|
|
2738
2738
|
c() {
|
|
@@ -2746,11 +2746,11 @@ function li(t) {
|
|
|
2746
2746
|
}
|
|
2747
2747
|
};
|
|
2748
2748
|
}
|
|
2749
|
-
function
|
|
2749
|
+
function ci(t) {
|
|
2750
2750
|
let e, r;
|
|
2751
|
-
return e = new
|
|
2751
|
+
return e = new ge({
|
|
2752
2752
|
props: {
|
|
2753
|
-
$$slots: { default: [
|
|
2753
|
+
$$slots: { default: [oi] },
|
|
2754
2754
|
$$scope: { ctx: t }
|
|
2755
2755
|
}
|
|
2756
2756
|
}), {
|
|
@@ -2776,21 +2776,21 @@ function si(t) {
|
|
|
2776
2776
|
}
|
|
2777
2777
|
};
|
|
2778
2778
|
}
|
|
2779
|
-
function
|
|
2779
|
+
function ai(t) {
|
|
2780
2780
|
let e, r, n, i, l, s, o, c, u, _;
|
|
2781
|
-
return n = new
|
|
2781
|
+
return n = new q({
|
|
2782
2782
|
props: {
|
|
2783
|
-
$$slots: { default: [
|
|
2783
|
+
$$slots: { default: [li] },
|
|
2784
2784
|
$$scope: { ctx: t }
|
|
2785
2785
|
}
|
|
2786
|
-
}), l = new
|
|
2786
|
+
}), l = new q({
|
|
2787
2787
|
props: {
|
|
2788
|
-
$$slots: { default: [
|
|
2788
|
+
$$slots: { default: [si] },
|
|
2789
2789
|
$$scope: { ctx: t }
|
|
2790
2790
|
}
|
|
2791
|
-
}), o = new
|
|
2791
|
+
}), o = new Me({
|
|
2792
2792
|
props: {
|
|
2793
|
-
$$slots: { default: [
|
|
2793
|
+
$$slots: { default: [ci] },
|
|
2794
2794
|
$$scope: { ctx: t }
|
|
2795
2795
|
}
|
|
2796
2796
|
}), {
|
|
@@ -2798,7 +2798,7 @@ function oi(t) {
|
|
|
2798
2798
|
e = $("div"), r = $("form"), b(n.$$.fragment), i = P(), b(l.$$.fragment), s = P(), b(o.$$.fragment);
|
|
2799
2799
|
},
|
|
2800
2800
|
m(m, B) {
|
|
2801
|
-
A(m, e, B),
|
|
2801
|
+
A(m, e, B), T(e, r), I(n, r, null), T(r, i), I(l, r, null), T(r, s), I(o, r, null), c = !0, u || (_ = _e(r, "submit", mt(
|
|
2802
2802
|
/*handleContinue*/
|
|
2803
2803
|
t[1]
|
|
2804
2804
|
)), u = !0);
|
|
@@ -2825,7 +2825,7 @@ function oi(t) {
|
|
|
2825
2825
|
}
|
|
2826
2826
|
};
|
|
2827
2827
|
}
|
|
2828
|
-
function
|
|
2828
|
+
function ui(t, e, r) {
|
|
2829
2829
|
let n, { onContinue: i } = e;
|
|
2830
2830
|
const l = async () => {
|
|
2831
2831
|
i({ email: n });
|
|
@@ -2837,17 +2837,17 @@ function ci(t, e, r) {
|
|
|
2837
2837
|
"onContinue" in o && r(2, i = o.onContinue);
|
|
2838
2838
|
}, r(0, n = ""), [n, l, i, s];
|
|
2839
2839
|
}
|
|
2840
|
-
class
|
|
2840
|
+
class fi extends C {
|
|
2841
2841
|
constructor(e) {
|
|
2842
|
-
super(),
|
|
2842
|
+
super(), U(this, e, ui, ai, R, { onContinue: 2 }, ii);
|
|
2843
2843
|
}
|
|
2844
2844
|
}
|
|
2845
|
-
const
|
|
2846
|
-
function
|
|
2845
|
+
const di = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20opacity='0.5'%20clip-path='url(%23clip0_344_3390)'%3e%3cpath%20d='M7%2018C5.9%2018%205.01%2018.9%205.01%2020C5.01%2021.1%205.9%2022%207%2022C8.1%2022%209%2021.1%209%2020C9%2018.9%208.1%2018%207%2018ZM1%202V4H3L6.6%2011.59L5.25%2014.04C5.09%2014.32%205%2014.65%205%2015C5%2016.1%205.9%2017%207%2017H19V15H7.42C7.28%2015%207.17%2014.89%207.17%2014.75L7.2%2014.63L8.1%2013H15.55C16.3%2013%2016.96%2012.59%2017.3%2011.97L20.88%205.48C20.96%205.34%2021%205.17%2021%205C21%204.45%2020.55%204%2020%204H5.21L4.27%202H1ZM17%2018C15.9%2018%2015.01%2018.9%2015.01%2020C15.01%2021.1%2015.9%2022%2017%2022C18.1%2022%2019%2021.1%2019%2020C19%2018.9%2018.1%2018%2017%2018Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_344_3390'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
|
|
2846
|
+
function mi(t) {
|
|
2847
2847
|
let e, r;
|
|
2848
2848
|
return {
|
|
2849
2849
|
c() {
|
|
2850
|
-
e = $("img"),
|
|
2850
|
+
e = $("img"), V(e.src, r = di) || h(e, "src", r), h(e, "alt", "icon"), h(e, "class", "rcb-ui-asset-icon");
|
|
2851
2851
|
},
|
|
2852
2852
|
m(n, i) {
|
|
2853
2853
|
A(n, e, i);
|
|
@@ -2860,27 +2860,27 @@ function fi(t) {
|
|
|
2860
2860
|
}
|
|
2861
2861
|
};
|
|
2862
2862
|
}
|
|
2863
|
-
class
|
|
2863
|
+
class gi extends C {
|
|
2864
2864
|
constructor(e) {
|
|
2865
|
-
super(),
|
|
2865
|
+
super(), U(this, e, null, mi, R, {});
|
|
2866
2866
|
}
|
|
2867
2867
|
}
|
|
2868
|
-
function
|
|
2868
|
+
function Ai(t) {
|
|
2869
2869
|
S(t, "svelte-1ggdgso", ".rcb-header-layout.svelte-1ggdgso{display:flex;justify-content:space-between;align-items:center;width:100%}");
|
|
2870
2870
|
}
|
|
2871
|
-
function
|
|
2871
|
+
function _i(t) {
|
|
2872
2872
|
let e, r, n, i, l;
|
|
2873
|
-
return r = new
|
|
2873
|
+
return r = new ht({
|
|
2874
2874
|
props: { brandingInfo: (
|
|
2875
2875
|
/*brandingInfo*/
|
|
2876
2876
|
t[0]
|
|
2877
2877
|
) }
|
|
2878
|
-
}), i = new
|
|
2878
|
+
}), i = new gi({}), {
|
|
2879
2879
|
c() {
|
|
2880
2880
|
e = $("div"), b(r.$$.fragment), n = P(), b(i.$$.fragment), h(e, "class", "rcb-header-layout svelte-1ggdgso");
|
|
2881
2881
|
},
|
|
2882
2882
|
m(s, o) {
|
|
2883
|
-
A(s, e, o), I(r, e, null),
|
|
2883
|
+
A(s, e, o), I(r, e, null), T(e, n), I(i, e, null), l = !0;
|
|
2884
2884
|
},
|
|
2885
2885
|
p(s, o) {
|
|
2886
2886
|
const c = {};
|
|
@@ -2899,12 +2899,12 @@ function gi(t) {
|
|
|
2899
2899
|
}
|
|
2900
2900
|
};
|
|
2901
2901
|
}
|
|
2902
|
-
function
|
|
2902
|
+
function pi(t) {
|
|
2903
2903
|
let e, r;
|
|
2904
|
-
return e = new
|
|
2904
|
+
return e = new q({
|
|
2905
2905
|
props: {
|
|
2906
2906
|
as: "header",
|
|
2907
|
-
$$slots: { default: [
|
|
2907
|
+
$$slots: { default: [_i] },
|
|
2908
2908
|
$$scope: { ctx: t }
|
|
2909
2909
|
}
|
|
2910
2910
|
}), {
|
|
@@ -2930,26 +2930,26 @@ function Ai(t) {
|
|
|
2930
2930
|
}
|
|
2931
2931
|
};
|
|
2932
2932
|
}
|
|
2933
|
-
function
|
|
2933
|
+
function hi(t, e, r) {
|
|
2934
2934
|
let { brandingInfo: n = null } = e;
|
|
2935
2935
|
return t.$$set = (i) => {
|
|
2936
2936
|
"brandingInfo" in i && r(0, n = i.brandingInfo);
|
|
2937
2937
|
}, [n];
|
|
2938
2938
|
}
|
|
2939
|
-
class
|
|
2939
|
+
class Ei extends C {
|
|
2940
2940
|
constructor(e) {
|
|
2941
|
-
super(),
|
|
2941
|
+
super(), U(this, e, hi, pi, R, { brandingInfo: 0 }, Ai);
|
|
2942
2942
|
}
|
|
2943
2943
|
}
|
|
2944
|
-
function
|
|
2944
|
+
function Ii(t) {
|
|
2945
2945
|
S(t, "svelte-17dhulw", ".rcb-modal-backdrop.svelte-17dhulw{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:rgba(40, 40, 40, 0.75);display:flex;flex-direction:column;justify-content:space-around}");
|
|
2946
2946
|
}
|
|
2947
|
-
function
|
|
2947
|
+
function wi(t) {
|
|
2948
2948
|
let e, r;
|
|
2949
2949
|
const n = (
|
|
2950
2950
|
/*#slots*/
|
|
2951
2951
|
t[1].default
|
|
2952
|
-
), i =
|
|
2952
|
+
), i = K(
|
|
2953
2953
|
n,
|
|
2954
2954
|
t,
|
|
2955
2955
|
/*$$scope*/
|
|
@@ -2965,19 +2965,19 @@ function Ei(t) {
|
|
|
2965
2965
|
},
|
|
2966
2966
|
p(l, [s]) {
|
|
2967
2967
|
i && i.p && (!r || s & /*$$scope*/
|
|
2968
|
-
1) &&
|
|
2968
|
+
1) && J(
|
|
2969
2969
|
i,
|
|
2970
2970
|
n,
|
|
2971
2971
|
l,
|
|
2972
2972
|
/*$$scope*/
|
|
2973
2973
|
l[0],
|
|
2974
|
-
r ?
|
|
2974
|
+
r ? j(
|
|
2975
2975
|
n,
|
|
2976
2976
|
/*$$scope*/
|
|
2977
2977
|
l[0],
|
|
2978
2978
|
s,
|
|
2979
2979
|
null
|
|
2980
|
-
) :
|
|
2980
|
+
) : x(
|
|
2981
2981
|
/*$$scope*/
|
|
2982
2982
|
l[0]
|
|
2983
2983
|
),
|
|
@@ -2995,26 +2995,26 @@ function Ei(t) {
|
|
|
2995
2995
|
}
|
|
2996
2996
|
};
|
|
2997
2997
|
}
|
|
2998
|
-
function
|
|
2998
|
+
function bi(t, e, r) {
|
|
2999
2999
|
let { $$slots: n = {}, $$scope: i } = e;
|
|
3000
3000
|
return t.$$set = (l) => {
|
|
3001
3001
|
"$$scope" in l && r(0, i = l.$$scope);
|
|
3002
3002
|
}, [i, n];
|
|
3003
3003
|
}
|
|
3004
|
-
class
|
|
3004
|
+
class $i extends C {
|
|
3005
3005
|
constructor(e) {
|
|
3006
|
-
super(),
|
|
3006
|
+
super(), U(this, e, bi, wi, R, {}, Ii);
|
|
3007
3007
|
}
|
|
3008
3008
|
}
|
|
3009
|
-
function
|
|
3009
|
+
function Bi(t) {
|
|
3010
3010
|
S(t, "svelte-m6kocx", ".rcb-modal-main.svelte-m6kocx{box-sizing:border-box;border-radius:0.5rem;background-color:#fff;color:black;max-width:40rem;min-width:30rem;overflow-y:auto;padding:2.5rem}.rcb-modal-dark.svelte-m6kocx{background-color:#000;color:#fff;max-width:30rem;min-width:20rem}@media screen and (max-width: 60rem){.rcb-modal-main.svelte-m6kocx,.rcb-modal-dark.svelte-m6kocx{max-width:40rem;min-width:90vw}}");
|
|
3011
3011
|
}
|
|
3012
|
-
function
|
|
3012
|
+
function ki(t) {
|
|
3013
3013
|
let e, r, n;
|
|
3014
3014
|
const i = (
|
|
3015
3015
|
/*#slots*/
|
|
3016
3016
|
t[2].default
|
|
3017
|
-
), l =
|
|
3017
|
+
), l = K(
|
|
3018
3018
|
i,
|
|
3019
3019
|
t,
|
|
3020
3020
|
/*$$scope*/
|
|
@@ -3023,7 +3023,7 @@ function $i(t) {
|
|
|
3023
3023
|
);
|
|
3024
3024
|
return {
|
|
3025
3025
|
c() {
|
|
3026
|
-
e = $("main"), l && l.c(), h(e, "class", r =
|
|
3026
|
+
e = $("main"), l && l.c(), h(e, "class", r = de(`rcb-modal-main ${/*dark*/
|
|
3027
3027
|
t[0] ? "rcb-modal-dark" : ""}`) + " svelte-m6kocx");
|
|
3028
3028
|
},
|
|
3029
3029
|
m(s, o) {
|
|
@@ -3031,25 +3031,25 @@ function $i(t) {
|
|
|
3031
3031
|
},
|
|
3032
3032
|
p(s, [o]) {
|
|
3033
3033
|
l && l.p && (!n || o & /*$$scope*/
|
|
3034
|
-
2) &&
|
|
3034
|
+
2) && J(
|
|
3035
3035
|
l,
|
|
3036
3036
|
i,
|
|
3037
3037
|
s,
|
|
3038
3038
|
/*$$scope*/
|
|
3039
3039
|
s[1],
|
|
3040
|
-
n ?
|
|
3040
|
+
n ? j(
|
|
3041
3041
|
i,
|
|
3042
3042
|
/*$$scope*/
|
|
3043
3043
|
s[1],
|
|
3044
3044
|
o,
|
|
3045
3045
|
null
|
|
3046
|
-
) :
|
|
3046
|
+
) : x(
|
|
3047
3047
|
/*$$scope*/
|
|
3048
3048
|
s[1]
|
|
3049
3049
|
),
|
|
3050
3050
|
null
|
|
3051
3051
|
), (!n || o & /*dark*/
|
|
3052
|
-
1 && r !== (r =
|
|
3052
|
+
1 && r !== (r = de(`rcb-modal-main ${/*dark*/
|
|
3053
3053
|
s[0] ? "rcb-modal-dark" : ""}`) + " svelte-m6kocx")) && h(e, "class", r);
|
|
3054
3054
|
},
|
|
3055
3055
|
i(s) {
|
|
@@ -3063,23 +3063,23 @@ function $i(t) {
|
|
|
3063
3063
|
}
|
|
3064
3064
|
};
|
|
3065
3065
|
}
|
|
3066
|
-
function
|
|
3066
|
+
function yi(t, e, r) {
|
|
3067
3067
|
let { $$slots: n = {}, $$scope: i } = e, { dark: l = !1 } = e;
|
|
3068
3068
|
return t.$$set = (s) => {
|
|
3069
3069
|
"dark" in s && r(0, l = s.dark), "$$scope" in s && r(1, i = s.$$scope);
|
|
3070
3070
|
}, [l, i, n];
|
|
3071
3071
|
}
|
|
3072
|
-
class
|
|
3072
|
+
class Di extends C {
|
|
3073
3073
|
constructor(e) {
|
|
3074
|
-
super(),
|
|
3074
|
+
super(), U(this, e, yi, ki, R, { dark: 0 }, Bi);
|
|
3075
3075
|
}
|
|
3076
3076
|
}
|
|
3077
|
-
function
|
|
3077
|
+
function vi(t) {
|
|
3078
3078
|
let e;
|
|
3079
3079
|
const r = (
|
|
3080
3080
|
/*#slots*/
|
|
3081
3081
|
t[1].default
|
|
3082
|
-
), n =
|
|
3082
|
+
), n = K(
|
|
3083
3083
|
r,
|
|
3084
3084
|
t,
|
|
3085
3085
|
/*$$scope*/
|
|
@@ -3095,19 +3095,19 @@ function yi(t) {
|
|
|
3095
3095
|
},
|
|
3096
3096
|
p(i, l) {
|
|
3097
3097
|
n && n.p && (!e || l & /*$$scope*/
|
|
3098
|
-
4) &&
|
|
3098
|
+
4) && J(
|
|
3099
3099
|
n,
|
|
3100
3100
|
r,
|
|
3101
3101
|
i,
|
|
3102
3102
|
/*$$scope*/
|
|
3103
3103
|
i[2],
|
|
3104
|
-
e ?
|
|
3104
|
+
e ? j(
|
|
3105
3105
|
r,
|
|
3106
3106
|
/*$$scope*/
|
|
3107
3107
|
i[2],
|
|
3108
3108
|
l,
|
|
3109
3109
|
null
|
|
3110
|
-
) :
|
|
3110
|
+
) : x(
|
|
3111
3111
|
/*$$scope*/
|
|
3112
3112
|
i[2]
|
|
3113
3113
|
),
|
|
@@ -3125,11 +3125,11 @@ function yi(t) {
|
|
|
3125
3125
|
}
|
|
3126
3126
|
};
|
|
3127
3127
|
}
|
|
3128
|
-
function
|
|
3128
|
+
function Qi(t) {
|
|
3129
3129
|
let e, r;
|
|
3130
|
-
return e = new
|
|
3130
|
+
return e = new $i({
|
|
3131
3131
|
props: {
|
|
3132
|
-
$$slots: { default: [
|
|
3132
|
+
$$slots: { default: [Mi] },
|
|
3133
3133
|
$$scope: { ctx: t }
|
|
3134
3134
|
}
|
|
3135
3135
|
}), {
|
|
@@ -3155,12 +3155,12 @@ function Di(t) {
|
|
|
3155
3155
|
}
|
|
3156
3156
|
};
|
|
3157
3157
|
}
|
|
3158
|
-
function
|
|
3158
|
+
function Mi(t) {
|
|
3159
3159
|
let e;
|
|
3160
3160
|
const r = (
|
|
3161
3161
|
/*#slots*/
|
|
3162
3162
|
t[1].default
|
|
3163
|
-
), n =
|
|
3163
|
+
), n = K(
|
|
3164
3164
|
r,
|
|
3165
3165
|
t,
|
|
3166
3166
|
/*$$scope*/
|
|
@@ -3176,19 +3176,19 @@ function Qi(t) {
|
|
|
3176
3176
|
},
|
|
3177
3177
|
p(i, l) {
|
|
3178
3178
|
n && n.p && (!e || l & /*$$scope*/
|
|
3179
|
-
4) &&
|
|
3179
|
+
4) && J(
|
|
3180
3180
|
n,
|
|
3181
3181
|
r,
|
|
3182
3182
|
i,
|
|
3183
3183
|
/*$$scope*/
|
|
3184
3184
|
i[2],
|
|
3185
|
-
e ?
|
|
3185
|
+
e ? j(
|
|
3186
3186
|
r,
|
|
3187
3187
|
/*$$scope*/
|
|
3188
3188
|
i[2],
|
|
3189
3189
|
l,
|
|
3190
3190
|
null
|
|
3191
|
-
) :
|
|
3191
|
+
) : x(
|
|
3192
3192
|
/*$$scope*/
|
|
3193
3193
|
i[2]
|
|
3194
3194
|
),
|
|
@@ -3206,9 +3206,9 @@ function Qi(t) {
|
|
|
3206
3206
|
}
|
|
3207
3207
|
};
|
|
3208
3208
|
}
|
|
3209
|
-
function
|
|
3209
|
+
function Ti(t) {
|
|
3210
3210
|
let e, r, n, i;
|
|
3211
|
-
const l = [
|
|
3211
|
+
const l = [Qi, vi], s = [];
|
|
3212
3212
|
function o(c, u) {
|
|
3213
3213
|
return (
|
|
3214
3214
|
/*condition*/
|
|
@@ -3217,7 +3217,7 @@ function vi(t) {
|
|
|
3217
3217
|
}
|
|
3218
3218
|
return e = o(t), r = s[e] = l[e](t), {
|
|
3219
3219
|
c() {
|
|
3220
|
-
r.c(), n =
|
|
3220
|
+
r.c(), n = X();
|
|
3221
3221
|
},
|
|
3222
3222
|
m(c, u) {
|
|
3223
3223
|
s[e].m(c, u), A(c, n, u), i = !0;
|
|
@@ -3239,20 +3239,20 @@ function vi(t) {
|
|
|
3239
3239
|
}
|
|
3240
3240
|
};
|
|
3241
3241
|
}
|
|
3242
|
-
function
|
|
3242
|
+
function Pi(t, e, r) {
|
|
3243
3243
|
let { $$slots: n = {}, $$scope: i } = e, { condition: l = !1 } = e;
|
|
3244
3244
|
return t.$$set = (s) => {
|
|
3245
3245
|
"condition" in s && r(0, l = s.condition), "$$scope" in s && r(2, i = s.$$scope);
|
|
3246
3246
|
}, [l, n, i];
|
|
3247
3247
|
}
|
|
3248
|
-
class
|
|
3248
|
+
class Ni extends C {
|
|
3249
3249
|
constructor(e) {
|
|
3250
|
-
super(),
|
|
3250
|
+
super(), U(this, e, Pi, Ti, R, { condition: 0 });
|
|
3251
3251
|
}
|
|
3252
3252
|
}
|
|
3253
|
-
function
|
|
3253
|
+
function Xe(t) {
|
|
3254
3254
|
let e, r;
|
|
3255
|
-
return e = new
|
|
3255
|
+
return e = new Ei({
|
|
3256
3256
|
props: { brandingInfo: (
|
|
3257
3257
|
/*brandingInfo*/
|
|
3258
3258
|
t[2]
|
|
@@ -3281,15 +3281,15 @@ function ze(t) {
|
|
|
3281
3281
|
}
|
|
3282
3282
|
};
|
|
3283
3283
|
}
|
|
3284
|
-
function
|
|
3284
|
+
function Ri(t) {
|
|
3285
3285
|
let e, r, n = (
|
|
3286
3286
|
/*showHeader*/
|
|
3287
|
-
t[1] &&
|
|
3287
|
+
t[1] && Xe(t)
|
|
3288
3288
|
);
|
|
3289
3289
|
const i = (
|
|
3290
3290
|
/*#slots*/
|
|
3291
3291
|
t[3].default
|
|
3292
|
-
), l =
|
|
3292
|
+
), l = K(
|
|
3293
3293
|
i,
|
|
3294
3294
|
t,
|
|
3295
3295
|
/*$$scope*/
|
|
@@ -3306,22 +3306,22 @@ function Pi(t) {
|
|
|
3306
3306
|
p(s, o) {
|
|
3307
3307
|
/*showHeader*/
|
|
3308
3308
|
s[1] ? n ? (n.p(s, o), o & /*showHeader*/
|
|
3309
|
-
2 && a(n, 1)) : (n =
|
|
3309
|
+
2 && a(n, 1)) : (n = Xe(s), n.c(), a(n, 1), n.m(e.parentNode, e)) : n && (F(), f(n, 1, 1, () => {
|
|
3310
3310
|
n = null;
|
|
3311
3311
|
}), G()), l && l.p && (!r || o & /*$$scope*/
|
|
3312
|
-
16) &&
|
|
3312
|
+
16) && J(
|
|
3313
3313
|
l,
|
|
3314
3314
|
i,
|
|
3315
3315
|
s,
|
|
3316
3316
|
/*$$scope*/
|
|
3317
3317
|
s[4],
|
|
3318
|
-
r ?
|
|
3318
|
+
r ? j(
|
|
3319
3319
|
i,
|
|
3320
3320
|
/*$$scope*/
|
|
3321
3321
|
s[4],
|
|
3322
3322
|
o,
|
|
3323
3323
|
null
|
|
3324
|
-
) :
|
|
3324
|
+
) : x(
|
|
3325
3325
|
/*$$scope*/
|
|
3326
3326
|
s[4]
|
|
3327
3327
|
),
|
|
@@ -3339,15 +3339,15 @@ function Pi(t) {
|
|
|
3339
3339
|
}
|
|
3340
3340
|
};
|
|
3341
3341
|
}
|
|
3342
|
-
function
|
|
3342
|
+
function Ui(t) {
|
|
3343
3343
|
let e, r;
|
|
3344
|
-
return e = new
|
|
3344
|
+
return e = new Di({
|
|
3345
3345
|
props: {
|
|
3346
3346
|
dark: (
|
|
3347
3347
|
/*dark*/
|
|
3348
3348
|
t[0]
|
|
3349
3349
|
),
|
|
3350
|
-
$$slots: { default: [
|
|
3350
|
+
$$slots: { default: [Ri] },
|
|
3351
3351
|
$$scope: { ctx: t }
|
|
3352
3352
|
}
|
|
3353
3353
|
}), {
|
|
@@ -3375,19 +3375,19 @@ function Ni(t) {
|
|
|
3375
3375
|
}
|
|
3376
3376
|
};
|
|
3377
3377
|
}
|
|
3378
|
-
function
|
|
3378
|
+
function Ci(t, e, r) {
|
|
3379
3379
|
let { $$slots: n = {}, $$scope: i } = e, { dark: l = !1 } = e, { showHeader: s = !1 } = e, { brandingInfo: o = null } = e;
|
|
3380
3380
|
return t.$$set = (c) => {
|
|
3381
3381
|
"dark" in c && r(0, l = c.dark), "showHeader" in c && r(1, s = c.showHeader), "brandingInfo" in c && r(2, o = c.brandingInfo), "$$scope" in c && r(4, i = c.$$scope);
|
|
3382
3382
|
}, [l, s, o, n, i];
|
|
3383
3383
|
}
|
|
3384
|
-
class
|
|
3384
|
+
class $t extends C {
|
|
3385
3385
|
constructor(e) {
|
|
3386
|
-
super(),
|
|
3386
|
+
super(), U(this, e, Ci, Ui, R, { dark: 0, showHeader: 1, brandingInfo: 2 });
|
|
3387
3387
|
}
|
|
3388
3388
|
}
|
|
3389
|
-
var
|
|
3390
|
-
class
|
|
3389
|
+
var Te = /* @__PURE__ */ ((t) => (t[t.UnknownError = 0] = "UnknownError", t[t.UserCancelledError = 1] = "UserCancelledError", t[t.StoreProblemError = 2] = "StoreProblemError", t[t.PurchaseNotAllowedError = 3] = "PurchaseNotAllowedError", t[t.PurchaseInvalidError = 4] = "PurchaseInvalidError", t[t.ProductNotAvailableForPurchaseError = 5] = "ProductNotAvailableForPurchaseError", t[t.ProductAlreadyPurchasedError = 6] = "ProductAlreadyPurchasedError", t[t.ReceiptAlreadyInUseError = 7] = "ReceiptAlreadyInUseError", t[t.InvalidReceiptError = 8] = "InvalidReceiptError", t[t.MissingReceiptFileError = 9] = "MissingReceiptFileError", t[t.NetworkError = 10] = "NetworkError", t[t.InvalidCredentialsError = 11] = "InvalidCredentialsError", t[t.UnexpectedBackendResponseError = 12] = "UnexpectedBackendResponseError", t[t.InvalidAppUserIdError = 14] = "InvalidAppUserIdError", t[t.OperationAlreadyInProgressError = 15] = "OperationAlreadyInProgressError", t[t.UnknownBackendError = 16] = "UnknownBackendError", t[t.InvalidAppleSubscriptionKeyError = 17] = "InvalidAppleSubscriptionKeyError", t[t.IneligibleError = 18] = "IneligibleError", t[t.InsufficientPermissionsError = 19] = "InsufficientPermissionsError", t[t.PaymentPendingError = 20] = "PaymentPendingError", t[t.InvalidSubscriberAttributesError = 21] = "InvalidSubscriberAttributesError", t[t.LogOutWithAnonymousUserError = 22] = "LogOutWithAnonymousUserError", t[t.ConfigurationError = 23] = "ConfigurationError", t[t.UnsupportedError = 24] = "UnsupportedError", t[t.EmptySubscriberAttributesError = 25] = "EmptySubscriberAttributesError", t[t.CustomerInfoError = 28] = "CustomerInfoError", t[t.SignatureVerificationError = 36] = "SignatureVerificationError", t))(Te || {});
|
|
3390
|
+
class $e {
|
|
3391
3391
|
static getPublicMessage(e) {
|
|
3392
3392
|
switch (e) {
|
|
3393
3393
|
case 0:
|
|
@@ -3485,7 +3485,7 @@ class be {
|
|
|
3485
3485
|
}
|
|
3486
3486
|
}
|
|
3487
3487
|
static convertCodeToBackendErrorCode(e) {
|
|
3488
|
-
return e in
|
|
3488
|
+
return e in Bt ? e : null;
|
|
3489
3489
|
}
|
|
3490
3490
|
static convertPurchaseFlowErrorCodeToErrorCode(e) {
|
|
3491
3491
|
switch (e) {
|
|
@@ -3504,26 +3504,26 @@ class be {
|
|
|
3504
3504
|
}
|
|
3505
3505
|
}
|
|
3506
3506
|
}
|
|
3507
|
-
var
|
|
3508
|
-
class
|
|
3507
|
+
var Bt = /* @__PURE__ */ ((t) => (t[t.BackendInvalidPlatform = 7e3] = "BackendInvalidPlatform", t[t.BackendStoreProblem = 7101] = "BackendStoreProblem", t[t.BackendCannotTransferPurchase = 7102] = "BackendCannotTransferPurchase", t[t.BackendInvalidReceiptToken = 7103] = "BackendInvalidReceiptToken", t[t.BackendInvalidAppStoreSharedSecret = 7104] = "BackendInvalidAppStoreSharedSecret", t[t.BackendInvalidPaymentModeOrIntroPriceNotProvided = 7105] = "BackendInvalidPaymentModeOrIntroPriceNotProvided", t[t.BackendProductIdForGoogleReceiptNotProvided = 7106] = "BackendProductIdForGoogleReceiptNotProvided", t[t.BackendInvalidPlayStoreCredentials = 7107] = "BackendInvalidPlayStoreCredentials", t[t.BackendInternalServerError = 7110] = "BackendInternalServerError", t[t.BackendEmptyAppUserId = 7220] = "BackendEmptyAppUserId", t[t.BackendInvalidAuthToken = 7224] = "BackendInvalidAuthToken", t[t.BackendInvalidAPIKey = 7225] = "BackendInvalidAPIKey", t[t.BackendBadRequest = 7226] = "BackendBadRequest", t[t.BackendPlayStoreQuotaExceeded = 7229] = "BackendPlayStoreQuotaExceeded", t[t.BackendPlayStoreInvalidPackageName = 7230] = "BackendPlayStoreInvalidPackageName", t[t.BackendPlayStoreGenericError = 7231] = "BackendPlayStoreGenericError", t[t.BackendUserIneligibleForPromoOffer = 7232] = "BackendUserIneligibleForPromoOffer", t[t.BackendInvalidAppleSubscriptionKey = 7234] = "BackendInvalidAppleSubscriptionKey", t[t.BackendInvalidSubscriberAttributes = 7263] = "BackendInvalidSubscriberAttributes", t[t.BackendInvalidSubscriberAttributesBody = 7264] = "BackendInvalidSubscriberAttributesBody", t[t.BackendProductIDsMalformed = 7662] = "BackendProductIDsMalformed", t))(Bt || {});
|
|
3508
|
+
class z extends Error {
|
|
3509
3509
|
constructor(r, n, i) {
|
|
3510
3510
|
super(n);
|
|
3511
|
-
|
|
3511
|
+
Q(this, "toString", () => `PurchasesError(code: ${Te[this.errorCode]}, message: ${this.message})`);
|
|
3512
3512
|
this.errorCode = r, this.underlyingErrorMessage = i;
|
|
3513
3513
|
}
|
|
3514
3514
|
/** @internal */
|
|
3515
3515
|
static getForBackendError(r, n) {
|
|
3516
|
-
const i =
|
|
3517
|
-
return new
|
|
3516
|
+
const i = $e.getErrorCodeForBackendErrorCode(r);
|
|
3517
|
+
return new z(
|
|
3518
3518
|
i,
|
|
3519
|
-
|
|
3519
|
+
$e.getPublicMessage(i),
|
|
3520
3520
|
n
|
|
3521
3521
|
);
|
|
3522
3522
|
}
|
|
3523
3523
|
/** @internal */
|
|
3524
3524
|
static getForPurchasesFlowError(r) {
|
|
3525
|
-
return new
|
|
3526
|
-
|
|
3525
|
+
return new z(
|
|
3526
|
+
$e.convertPurchaseFlowErrorCodeToErrorCode(
|
|
3527
3527
|
r.errorCode
|
|
3528
3528
|
),
|
|
3529
3529
|
r.message,
|
|
@@ -3531,157 +3531,162 @@ class W extends Error {
|
|
|
3531
3531
|
);
|
|
3532
3532
|
}
|
|
3533
3533
|
}
|
|
3534
|
-
|
|
3535
|
-
|
|
3534
|
+
class Oi extends Error {
|
|
3535
|
+
constructor() {
|
|
3536
|
+
super("Purchases must be configured before calling getInstance");
|
|
3537
|
+
}
|
|
3538
|
+
}
|
|
3539
|
+
const Si = "0.0.10", se = "https://api.revenuecat.com";
|
|
3540
|
+
var ye;
|
|
3536
3541
|
(function(t) {
|
|
3537
3542
|
t[t.CONTINUE = 100] = "CONTINUE", t[t.SWITCHING_PROTOCOLS = 101] = "SWITCHING_PROTOCOLS", t[t.PROCESSING = 102] = "PROCESSING", t[t.EARLY_HINTS = 103] = "EARLY_HINTS", t[t.OK = 200] = "OK", t[t.CREATED = 201] = "CREATED", t[t.ACCEPTED = 202] = "ACCEPTED", t[t.NON_AUTHORITATIVE_INFORMATION = 203] = "NON_AUTHORITATIVE_INFORMATION", t[t.NO_CONTENT = 204] = "NO_CONTENT", t[t.RESET_CONTENT = 205] = "RESET_CONTENT", t[t.PARTIAL_CONTENT = 206] = "PARTIAL_CONTENT", t[t.MULTI_STATUS = 207] = "MULTI_STATUS", t[t.MULTIPLE_CHOICES = 300] = "MULTIPLE_CHOICES", t[t.MOVED_PERMANENTLY = 301] = "MOVED_PERMANENTLY", t[t.MOVED_TEMPORARILY = 302] = "MOVED_TEMPORARILY", t[t.SEE_OTHER = 303] = "SEE_OTHER", t[t.NOT_MODIFIED = 304] = "NOT_MODIFIED", t[t.USE_PROXY = 305] = "USE_PROXY", t[t.TEMPORARY_REDIRECT = 307] = "TEMPORARY_REDIRECT", t[t.PERMANENT_REDIRECT = 308] = "PERMANENT_REDIRECT", t[t.BAD_REQUEST = 400] = "BAD_REQUEST", t[t.UNAUTHORIZED = 401] = "UNAUTHORIZED", t[t.PAYMENT_REQUIRED = 402] = "PAYMENT_REQUIRED", t[t.FORBIDDEN = 403] = "FORBIDDEN", t[t.NOT_FOUND = 404] = "NOT_FOUND", t[t.METHOD_NOT_ALLOWED = 405] = "METHOD_NOT_ALLOWED", t[t.NOT_ACCEPTABLE = 406] = "NOT_ACCEPTABLE", t[t.PROXY_AUTHENTICATION_REQUIRED = 407] = "PROXY_AUTHENTICATION_REQUIRED", t[t.REQUEST_TIMEOUT = 408] = "REQUEST_TIMEOUT", t[t.CONFLICT = 409] = "CONFLICT", t[t.GONE = 410] = "GONE", t[t.LENGTH_REQUIRED = 411] = "LENGTH_REQUIRED", t[t.PRECONDITION_FAILED = 412] = "PRECONDITION_FAILED", t[t.REQUEST_TOO_LONG = 413] = "REQUEST_TOO_LONG", t[t.REQUEST_URI_TOO_LONG = 414] = "REQUEST_URI_TOO_LONG", t[t.UNSUPPORTED_MEDIA_TYPE = 415] = "UNSUPPORTED_MEDIA_TYPE", t[t.REQUESTED_RANGE_NOT_SATISFIABLE = 416] = "REQUESTED_RANGE_NOT_SATISFIABLE", t[t.EXPECTATION_FAILED = 417] = "EXPECTATION_FAILED", t[t.IM_A_TEAPOT = 418] = "IM_A_TEAPOT", t[t.INSUFFICIENT_SPACE_ON_RESOURCE = 419] = "INSUFFICIENT_SPACE_ON_RESOURCE", t[t.METHOD_FAILURE = 420] = "METHOD_FAILURE", t[t.MISDIRECTED_REQUEST = 421] = "MISDIRECTED_REQUEST", t[t.UNPROCESSABLE_ENTITY = 422] = "UNPROCESSABLE_ENTITY", t[t.LOCKED = 423] = "LOCKED", t[t.FAILED_DEPENDENCY = 424] = "FAILED_DEPENDENCY", t[t.UPGRADE_REQUIRED = 426] = "UPGRADE_REQUIRED", t[t.PRECONDITION_REQUIRED = 428] = "PRECONDITION_REQUIRED", t[t.TOO_MANY_REQUESTS = 429] = "TOO_MANY_REQUESTS", t[t.REQUEST_HEADER_FIELDS_TOO_LARGE = 431] = "REQUEST_HEADER_FIELDS_TOO_LARGE", t[t.UNAVAILABLE_FOR_LEGAL_REASONS = 451] = "UNAVAILABLE_FOR_LEGAL_REASONS", t[t.INTERNAL_SERVER_ERROR = 500] = "INTERNAL_SERVER_ERROR", t[t.NOT_IMPLEMENTED = 501] = "NOT_IMPLEMENTED", t[t.BAD_GATEWAY = 502] = "BAD_GATEWAY", t[t.SERVICE_UNAVAILABLE = 503] = "SERVICE_UNAVAILABLE", t[t.GATEWAY_TIMEOUT = 504] = "GATEWAY_TIMEOUT", t[t.HTTP_VERSION_NOT_SUPPORTED = 505] = "HTTP_VERSION_NOT_SUPPORTED", t[t.INSUFFICIENT_STORAGE = 507] = "INSUFFICIENT_STORAGE", t[t.NETWORK_AUTHENTICATION_REQUIRED = 511] = "NETWORK_AUTHENTICATION_REQUIRED";
|
|
3538
|
-
})(
|
|
3539
|
-
function
|
|
3543
|
+
})(ye || (ye = {}));
|
|
3544
|
+
function kt(t) {
|
|
3540
3545
|
return t ? t.startsWith("rcb_sb_") : !1;
|
|
3541
3546
|
}
|
|
3542
|
-
async function
|
|
3547
|
+
async function te(t, e, r, n) {
|
|
3543
3548
|
const i = await fetch(t.url(), {
|
|
3544
3549
|
method: t.method,
|
|
3545
|
-
headers:
|
|
3546
|
-
body:
|
|
3550
|
+
headers: Gi(e, n),
|
|
3551
|
+
body: Fi(r)
|
|
3547
3552
|
});
|
|
3548
|
-
return await
|
|
3553
|
+
return await Li(i, t), await i.json();
|
|
3549
3554
|
}
|
|
3550
|
-
async function
|
|
3555
|
+
async function Li(t, e) {
|
|
3551
3556
|
const r = t.status;
|
|
3552
|
-
if (r >=
|
|
3553
|
-
|
|
3554
|
-
else if (r >=
|
|
3557
|
+
if (r >= ye.INTERNAL_SERVER_ERROR)
|
|
3558
|
+
Ue(e, r, await t.text());
|
|
3559
|
+
else if (r >= ye.BAD_REQUEST) {
|
|
3555
3560
|
const n = await t.json(), i = n ? JSON.stringify(n) : null, l = n == null ? void 0 : n.code, s = n == null ? void 0 : n.message;
|
|
3556
3561
|
if (l != null) {
|
|
3557
|
-
const o =
|
|
3562
|
+
const o = $e.convertCodeToBackendErrorCode(l);
|
|
3558
3563
|
if (o == null)
|
|
3559
|
-
|
|
3564
|
+
Ue(e, r, i);
|
|
3560
3565
|
else
|
|
3561
|
-
throw
|
|
3566
|
+
throw z.getForBackendError(
|
|
3562
3567
|
o,
|
|
3563
3568
|
s
|
|
3564
3569
|
);
|
|
3565
3570
|
} else
|
|
3566
|
-
|
|
3571
|
+
Ue(e, r, i);
|
|
3567
3572
|
}
|
|
3568
3573
|
}
|
|
3569
|
-
function
|
|
3570
|
-
throw new
|
|
3571
|
-
|
|
3574
|
+
function Ue(t, e, r) {
|
|
3575
|
+
throw new z(
|
|
3576
|
+
Te.UnknownBackendError,
|
|
3572
3577
|
`Unknown backend error. Request: ${t.name}. Status code: ${e}. Body: ${r}.`
|
|
3573
3578
|
);
|
|
3574
3579
|
}
|
|
3575
|
-
function
|
|
3580
|
+
function Fi(t) {
|
|
3576
3581
|
return t == null ? null : JSON.stringify(t);
|
|
3577
3582
|
}
|
|
3578
|
-
function
|
|
3583
|
+
function Gi(t, e) {
|
|
3579
3584
|
let r = {
|
|
3580
3585
|
Authorization: `Bearer ${t}`,
|
|
3581
3586
|
"Content-Type": "application/json",
|
|
3582
3587
|
Accept: "application/json",
|
|
3583
3588
|
"X-Platform": "web",
|
|
3584
|
-
"X-Version":
|
|
3585
|
-
"X-Is-Sandbox": `${
|
|
3589
|
+
"X-Version": Si,
|
|
3590
|
+
"X-Is-Sandbox": `${kt(t)}`
|
|
3586
3591
|
};
|
|
3587
3592
|
return e != null && (r = { ...r, ...e }), r;
|
|
3588
3593
|
}
|
|
3589
|
-
const
|
|
3590
|
-
class
|
|
3594
|
+
const yt = "/v1/subscribers", Pe = "/rcbilling/v1";
|
|
3595
|
+
class Yi {
|
|
3591
3596
|
constructor(e) {
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3597
|
+
Q(this, "appUserId");
|
|
3598
|
+
Q(this, "method", "GET");
|
|
3599
|
+
Q(this, "name", "getOfferings");
|
|
3595
3600
|
this.appUserId = e;
|
|
3596
3601
|
}
|
|
3597
3602
|
url() {
|
|
3598
|
-
return `${
|
|
3603
|
+
return `${se}${yt}/${this.appUserId}/offerings`;
|
|
3599
3604
|
}
|
|
3600
3605
|
}
|
|
3601
|
-
class
|
|
3606
|
+
class Hi {
|
|
3602
3607
|
constructor() {
|
|
3603
|
-
|
|
3604
|
-
|
|
3608
|
+
Q(this, "method", "POST");
|
|
3609
|
+
Q(this, "name", "subscribe");
|
|
3605
3610
|
}
|
|
3606
3611
|
url() {
|
|
3607
|
-
return `${
|
|
3612
|
+
return `${se}${Pe}/subscribe`;
|
|
3608
3613
|
}
|
|
3609
3614
|
}
|
|
3610
|
-
class
|
|
3615
|
+
class Ki {
|
|
3611
3616
|
constructor(e, r) {
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3617
|
+
Q(this, "method", "GET");
|
|
3618
|
+
Q(this, "name", "getProducts");
|
|
3619
|
+
Q(this, "appUserId");
|
|
3620
|
+
Q(this, "productIds");
|
|
3616
3621
|
this.appUserId = e, this.productIds = r;
|
|
3617
3622
|
}
|
|
3618
3623
|
url() {
|
|
3619
|
-
return `${
|
|
3624
|
+
return `${se}${Pe}/subscribers/${this.appUserId}/products?id=${this.productIds.join("&id=")}`;
|
|
3620
3625
|
}
|
|
3621
3626
|
}
|
|
3622
|
-
class
|
|
3627
|
+
class ji {
|
|
3623
3628
|
constructor(e) {
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3629
|
+
Q(this, "method", "GET");
|
|
3630
|
+
Q(this, "name", "getCustomerInfo");
|
|
3631
|
+
Q(this, "appUserId");
|
|
3627
3632
|
this.appUserId = e;
|
|
3628
3633
|
}
|
|
3629
3634
|
url() {
|
|
3630
|
-
return `${
|
|
3635
|
+
return `${se}${yt}/${this.appUserId}`;
|
|
3631
3636
|
}
|
|
3632
3637
|
}
|
|
3633
|
-
class
|
|
3638
|
+
class Ji {
|
|
3634
3639
|
constructor() {
|
|
3635
|
-
|
|
3636
|
-
|
|
3640
|
+
Q(this, "method", "GET");
|
|
3641
|
+
Q(this, "name", "getBrandingInfo");
|
|
3637
3642
|
}
|
|
3638
3643
|
url() {
|
|
3639
|
-
return `${
|
|
3644
|
+
return `${se}${Pe}/branding`;
|
|
3640
3645
|
}
|
|
3641
3646
|
}
|
|
3642
|
-
class
|
|
3647
|
+
class xi {
|
|
3643
3648
|
constructor(e) {
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3649
|
+
Q(this, "method", "GET");
|
|
3650
|
+
Q(this, "name", "getCheckoutStatus");
|
|
3651
|
+
Q(this, "operationSessionId");
|
|
3647
3652
|
this.operationSessionId = e;
|
|
3648
3653
|
}
|
|
3649
3654
|
url() {
|
|
3650
|
-
return `${
|
|
3655
|
+
return `${se}${Pe}/checkout/${this.operationSessionId}`;
|
|
3651
3656
|
}
|
|
3652
3657
|
}
|
|
3653
|
-
class
|
|
3658
|
+
class Vi {
|
|
3654
3659
|
constructor(e) {
|
|
3655
|
-
|
|
3660
|
+
Q(this, "API_KEY");
|
|
3656
3661
|
this.API_KEY = e;
|
|
3657
3662
|
}
|
|
3658
3663
|
async getOfferings(e) {
|
|
3659
|
-
return await
|
|
3660
|
-
new
|
|
3664
|
+
return await te(
|
|
3665
|
+
new Yi(e),
|
|
3661
3666
|
this.API_KEY
|
|
3662
3667
|
);
|
|
3663
3668
|
}
|
|
3664
3669
|
async getCustomerInfo(e) {
|
|
3665
|
-
return await
|
|
3666
|
-
new
|
|
3670
|
+
return await te(
|
|
3671
|
+
new ji(e),
|
|
3667
3672
|
this.API_KEY
|
|
3668
3673
|
);
|
|
3669
3674
|
}
|
|
3670
3675
|
async getProducts(e, r) {
|
|
3671
|
-
return await
|
|
3672
|
-
new
|
|
3676
|
+
return await te(
|
|
3677
|
+
new Ki(e, r),
|
|
3673
3678
|
this.API_KEY
|
|
3674
3679
|
);
|
|
3675
3680
|
}
|
|
3676
3681
|
async getBrandingInfo() {
|
|
3677
|
-
return await
|
|
3678
|
-
new
|
|
3682
|
+
return await te(
|
|
3683
|
+
new Ji(),
|
|
3679
3684
|
this.API_KEY
|
|
3680
3685
|
);
|
|
3681
3686
|
}
|
|
3682
3687
|
async postSubscribe(e, r, n) {
|
|
3683
|
-
return await
|
|
3684
|
-
new
|
|
3688
|
+
return await te(
|
|
3689
|
+
new Hi(),
|
|
3685
3690
|
this.API_KEY,
|
|
3686
3691
|
{
|
|
3687
3692
|
app_user_id: e,
|
|
@@ -3691,13 +3696,13 @@ class ji {
|
|
|
3691
3696
|
);
|
|
3692
3697
|
}
|
|
3693
3698
|
async getCheckoutStatus(e) {
|
|
3694
|
-
return await
|
|
3695
|
-
new
|
|
3699
|
+
return await te(
|
|
3700
|
+
new xi(e),
|
|
3696
3701
|
this.API_KEY
|
|
3697
3702
|
);
|
|
3698
3703
|
}
|
|
3699
3704
|
}
|
|
3700
|
-
function
|
|
3705
|
+
function qi(t) {
|
|
3701
3706
|
S(t, "svelte-ofxzf4", `.rcb-ui-container.svelte-ofxzf4{color-scheme:none;font-family:"PP Object Sans",
|
|
3702
3707
|
-apple-system,
|
|
3703
3708
|
BlinkMacSystemFont,
|
|
@@ -3713,12 +3718,12 @@ function Ji(t) {
|
|
|
3713
3718
|
arial,
|
|
3714
3719
|
sans-serif}.rcb-ui-layout.svelte-ofxzf4{display:flex;justify-content:center;align-items:flex-start}.rcb-ui-aside.svelte-ofxzf4{margin-right:1rem}@media screen and (max-width: 60rem){.rcb-ui-layout.svelte-ofxzf4{flex-direction:column;align-items:center;justify-content:flex-end;height:100%}.rcb-ui-aside.svelte-ofxzf4{margin-right:0;margin-bottom:1rem}}`);
|
|
3715
3720
|
}
|
|
3716
|
-
function
|
|
3721
|
+
function Ze(t) {
|
|
3717
3722
|
let e, r, n, i = (
|
|
3718
3723
|
/*purchases*/
|
|
3719
3724
|
t[1].isSandbox()
|
|
3720
3725
|
), l;
|
|
3721
|
-
r = new
|
|
3726
|
+
r = new $t({
|
|
3722
3727
|
props: {
|
|
3723
3728
|
dark: !0,
|
|
3724
3729
|
showHeader: !0,
|
|
@@ -3726,17 +3731,17 @@ function Xe(t) {
|
|
|
3726
3731
|
/*brandingInfo*/
|
|
3727
3732
|
t[3]
|
|
3728
3733
|
),
|
|
3729
|
-
$$slots: { default: [
|
|
3734
|
+
$$slots: { default: [Wi] },
|
|
3730
3735
|
$$scope: { ctx: t }
|
|
3731
3736
|
}
|
|
3732
3737
|
});
|
|
3733
|
-
let s = i &&
|
|
3738
|
+
let s = i && tt();
|
|
3734
3739
|
return {
|
|
3735
3740
|
c() {
|
|
3736
3741
|
e = $("div"), b(r.$$.fragment), n = P(), s && s.c(), h(e, "class", "rcb-ui-aside svelte-ofxzf4");
|
|
3737
3742
|
},
|
|
3738
3743
|
m(o, c) {
|
|
3739
|
-
A(o, e, c), I(r, e, null),
|
|
3744
|
+
A(o, e, c), I(r, e, null), T(e, n), s && s.m(e, null), l = !0;
|
|
3740
3745
|
},
|
|
3741
3746
|
p(o, c) {
|
|
3742
3747
|
const u = {};
|
|
@@ -3746,7 +3751,7 @@ function Xe(t) {
|
|
|
3746
3751
|
4194308 && (u.$$scope = { dirty: c, ctx: o }), r.$set(u), c & /*purchases*/
|
|
3747
3752
|
2 && (i = /*purchases*/
|
|
3748
3753
|
o[1].isSandbox()), i ? s ? c & /*purchases*/
|
|
3749
|
-
2 && a(s, 1) : (s =
|
|
3754
|
+
2 && a(s, 1) : (s = tt(), s.c(), a(s, 1), s.m(e, null)) : s && (F(), f(s, 1, 1, () => {
|
|
3750
3755
|
s = null;
|
|
3751
3756
|
}), G());
|
|
3752
3757
|
},
|
|
@@ -3761,9 +3766,9 @@ function Xe(t) {
|
|
|
3761
3766
|
}
|
|
3762
3767
|
};
|
|
3763
3768
|
}
|
|
3764
|
-
function
|
|
3769
|
+
function et(t) {
|
|
3765
3770
|
let e, r;
|
|
3766
|
-
return e = new
|
|
3771
|
+
return e = new _t({
|
|
3767
3772
|
props: {
|
|
3768
3773
|
productDetails: (
|
|
3769
3774
|
/*productDetails*/
|
|
@@ -3794,14 +3799,14 @@ function Ze(t) {
|
|
|
3794
3799
|
}
|
|
3795
3800
|
};
|
|
3796
3801
|
}
|
|
3797
|
-
function
|
|
3802
|
+
function Wi(t) {
|
|
3798
3803
|
let e, r, n = (
|
|
3799
3804
|
/*productDetails*/
|
|
3800
|
-
t[2] &&
|
|
3805
|
+
t[2] && et(t)
|
|
3801
3806
|
);
|
|
3802
3807
|
return {
|
|
3803
3808
|
c() {
|
|
3804
|
-
n && n.c(), e =
|
|
3809
|
+
n && n.c(), e = X();
|
|
3805
3810
|
},
|
|
3806
3811
|
m(i, l) {
|
|
3807
3812
|
n && n.m(i, l), A(i, e, l), r = !0;
|
|
@@ -3809,7 +3814,7 @@ function xi(t) {
|
|
|
3809
3814
|
p(i, l) {
|
|
3810
3815
|
/*productDetails*/
|
|
3811
3816
|
i[2] ? n ? (n.p(i, l), l & /*productDetails*/
|
|
3812
|
-
4 && a(n, 1)) : (n =
|
|
3817
|
+
4 && a(n, 1)) : (n = et(i), n.c(), a(n, 1), n.m(e.parentNode, e)) : n && (F(), f(n, 1, 1, () => {
|
|
3813
3818
|
n = null;
|
|
3814
3819
|
}), G());
|
|
3815
3820
|
},
|
|
@@ -3824,9 +3829,9 @@ function xi(t) {
|
|
|
3824
3829
|
}
|
|
3825
3830
|
};
|
|
3826
3831
|
}
|
|
3827
|
-
function
|
|
3832
|
+
function tt(t) {
|
|
3828
3833
|
let e, r;
|
|
3829
|
-
return e = new
|
|
3834
|
+
return e = new un({}), {
|
|
3830
3835
|
c() {
|
|
3831
3836
|
b(e.$$.fragment);
|
|
3832
3837
|
},
|
|
@@ -3844,9 +3849,9 @@ function et(t) {
|
|
|
3844
3849
|
}
|
|
3845
3850
|
};
|
|
3846
3851
|
}
|
|
3847
|
-
function
|
|
3852
|
+
function nt(t) {
|
|
3848
3853
|
let e, r;
|
|
3849
|
-
return e = new
|
|
3854
|
+
return e = new _t({
|
|
3850
3855
|
props: {
|
|
3851
3856
|
productDetails: (
|
|
3852
3857
|
/*productDetails*/
|
|
@@ -3877,7 +3882,7 @@ function tt(t) {
|
|
|
3877
3882
|
}
|
|
3878
3883
|
};
|
|
3879
3884
|
}
|
|
3880
|
-
function
|
|
3885
|
+
function rt(t) {
|
|
3881
3886
|
let e, r;
|
|
3882
3887
|
return e = new Qe({}), {
|
|
3883
3888
|
c() {
|
|
@@ -3897,7 +3902,7 @@ function nt(t) {
|
|
|
3897
3902
|
}
|
|
3898
3903
|
};
|
|
3899
3904
|
}
|
|
3900
|
-
function
|
|
3905
|
+
function it(t) {
|
|
3901
3906
|
let e, r;
|
|
3902
3907
|
return e = new Qe({}), {
|
|
3903
3908
|
c() {
|
|
@@ -3917,9 +3922,9 @@ function rt(t) {
|
|
|
3917
3922
|
}
|
|
3918
3923
|
};
|
|
3919
3924
|
}
|
|
3920
|
-
function
|
|
3925
|
+
function lt(t) {
|
|
3921
3926
|
let e, r;
|
|
3922
|
-
return e = new
|
|
3927
|
+
return e = new fi({
|
|
3923
3928
|
props: { onContinue: (
|
|
3924
3929
|
/*handleContinue*/
|
|
3925
3930
|
t[9]
|
|
@@ -3943,9 +3948,9 @@ function it(t) {
|
|
|
3943
3948
|
}
|
|
3944
3949
|
};
|
|
3945
3950
|
}
|
|
3946
|
-
function
|
|
3951
|
+
function st(t) {
|
|
3947
3952
|
let e, r;
|
|
3948
|
-
return e = new
|
|
3953
|
+
return e = new ri({
|
|
3949
3954
|
props: {
|
|
3950
3955
|
paymentInfoCollectionMetadata: (
|
|
3951
3956
|
/*paymentInfoCollectionMetadata*/
|
|
@@ -3988,7 +3993,7 @@ function lt(t) {
|
|
|
3988
3993
|
}
|
|
3989
3994
|
};
|
|
3990
3995
|
}
|
|
3991
|
-
function
|
|
3996
|
+
function ot(t) {
|
|
3992
3997
|
let e, r;
|
|
3993
3998
|
return e = new Qe({}), {
|
|
3994
3999
|
c() {
|
|
@@ -4008,10 +4013,10 @@ function st(t) {
|
|
|
4008
4013
|
}
|
|
4009
4014
|
};
|
|
4010
4015
|
}
|
|
4011
|
-
function
|
|
4016
|
+
function ct(t) {
|
|
4012
4017
|
var n;
|
|
4013
4018
|
let e, r;
|
|
4014
|
-
return e = new
|
|
4019
|
+
return e = new dr({
|
|
4015
4020
|
props: {
|
|
4016
4021
|
brandingInfo: (
|
|
4017
4022
|
/*brandingInfo*/
|
|
@@ -4059,9 +4064,9 @@ function ot(t) {
|
|
|
4059
4064
|
}
|
|
4060
4065
|
};
|
|
4061
4066
|
}
|
|
4062
|
-
function
|
|
4067
|
+
function at(t) {
|
|
4063
4068
|
let e, r;
|
|
4064
|
-
return e = new
|
|
4069
|
+
return e = new yr({
|
|
4065
4070
|
props: {
|
|
4066
4071
|
brandingInfo: (
|
|
4067
4072
|
/*brandingInfo*/
|
|
@@ -4096,102 +4101,102 @@ function ct(t) {
|
|
|
4096
4101
|
}
|
|
4097
4102
|
};
|
|
4098
4103
|
}
|
|
4099
|
-
function
|
|
4104
|
+
function zi(t) {
|
|
4100
4105
|
let e, r, n, i, l, s, o, c, u, _ = (
|
|
4101
4106
|
/*state*/
|
|
4102
4107
|
t[6] === "present-offer" && /*productDetails*/
|
|
4103
|
-
t[2] &&
|
|
4108
|
+
t[2] && nt(t)
|
|
4104
4109
|
), m = (
|
|
4105
4110
|
/*state*/
|
|
4106
4111
|
t[6] === "present-offer" && !/*productDetails*/
|
|
4107
|
-
t[2] &&
|
|
4112
|
+
t[2] && rt()
|
|
4108
4113
|
), B = (
|
|
4109
4114
|
/*state*/
|
|
4110
|
-
t[6] === "polling-purchase-status" &&
|
|
4115
|
+
t[6] === "polling-purchase-status" && it()
|
|
4111
4116
|
), k = (
|
|
4112
4117
|
/*state*/
|
|
4113
|
-
t[6] === "needs-auth-info" &&
|
|
4118
|
+
t[6] === "needs-auth-info" && lt(t)
|
|
4114
4119
|
), E = (
|
|
4115
4120
|
/*state*/
|
|
4116
4121
|
t[6] === "needs-payment-info" && /*paymentInfoCollectionMetadata*/
|
|
4117
|
-
t[4] &&
|
|
4122
|
+
t[4] && st(t)
|
|
4118
4123
|
), y = (
|
|
4119
4124
|
/*state*/
|
|
4120
|
-
t[6] === "loading" &&
|
|
4121
|
-
),
|
|
4125
|
+
t[6] === "loading" && ot()
|
|
4126
|
+
), M = (
|
|
4122
4127
|
/*state*/
|
|
4123
|
-
t[6] === "error" &&
|
|
4128
|
+
t[6] === "error" && ct(t)
|
|
4124
4129
|
), N = (
|
|
4125
4130
|
/*state*/
|
|
4126
|
-
t[6] === "success" &&
|
|
4131
|
+
t[6] === "success" && at(t)
|
|
4127
4132
|
);
|
|
4128
4133
|
return {
|
|
4129
4134
|
c() {
|
|
4130
|
-
_ && _.c(), e = P(), m && m.c(), r = P(), B && B.c(), n = P(), k && k.c(), i = P(), E && E.c(), l = P(), y && y.c(), s = P(),
|
|
4135
|
+
_ && _.c(), e = P(), m && m.c(), r = P(), B && B.c(), n = P(), k && k.c(), i = P(), E && E.c(), l = P(), y && y.c(), s = P(), M && M.c(), o = P(), N && N.c(), c = X();
|
|
4131
4136
|
},
|
|
4132
4137
|
m(d, p) {
|
|
4133
|
-
_ && _.m(d, p), A(d, e, p), m && m.m(d, p), A(d, r, p), B && B.m(d, p), A(d, n, p), k && k.m(d, p), A(d, i, p), E && E.m(d, p), A(d, l, p), y && y.m(d, p), A(d, s, p),
|
|
4138
|
+
_ && _.m(d, p), A(d, e, p), m && m.m(d, p), A(d, r, p), B && B.m(d, p), A(d, n, p), k && k.m(d, p), A(d, i, p), E && E.m(d, p), A(d, l, p), y && y.m(d, p), A(d, s, p), M && M.m(d, p), A(d, o, p), N && N.m(d, p), A(d, c, p), u = !0;
|
|
4134
4139
|
},
|
|
4135
4140
|
p(d, p) {
|
|
4136
4141
|
/*state*/
|
|
4137
4142
|
d[6] === "present-offer" && /*productDetails*/
|
|
4138
4143
|
d[2] ? _ ? (_.p(d, p), p & /*state, productDetails*/
|
|
4139
|
-
68 && a(_, 1)) : (_ =
|
|
4144
|
+
68 && a(_, 1)) : (_ = nt(d), _.c(), a(_, 1), _.m(e.parentNode, e)) : _ && (F(), f(_, 1, 1, () => {
|
|
4140
4145
|
_ = null;
|
|
4141
4146
|
}), G()), /*state*/
|
|
4142
4147
|
d[6] === "present-offer" && !/*productDetails*/
|
|
4143
4148
|
d[2] ? m ? p & /*state, productDetails*/
|
|
4144
|
-
68 && a(m, 1) : (m =
|
|
4149
|
+
68 && a(m, 1) : (m = rt(), m.c(), a(m, 1), m.m(r.parentNode, r)) : m && (F(), f(m, 1, 1, () => {
|
|
4145
4150
|
m = null;
|
|
4146
4151
|
}), G()), /*state*/
|
|
4147
4152
|
d[6] === "polling-purchase-status" ? B ? p & /*state*/
|
|
4148
|
-
64 && a(B, 1) : (B =
|
|
4153
|
+
64 && a(B, 1) : (B = it(), B.c(), a(B, 1), B.m(n.parentNode, n)) : B && (F(), f(B, 1, 1, () => {
|
|
4149
4154
|
B = null;
|
|
4150
4155
|
}), G()), /*state*/
|
|
4151
4156
|
d[6] === "needs-auth-info" ? k ? (k.p(d, p), p & /*state*/
|
|
4152
|
-
64 && a(k, 1)) : (k =
|
|
4157
|
+
64 && a(k, 1)) : (k = lt(d), k.c(), a(k, 1), k.m(i.parentNode, i)) : k && (F(), f(k, 1, 1, () => {
|
|
4153
4158
|
k = null;
|
|
4154
4159
|
}), G()), /*state*/
|
|
4155
4160
|
d[6] === "needs-payment-info" && /*paymentInfoCollectionMetadata*/
|
|
4156
4161
|
d[4] ? E ? (E.p(d, p), p & /*state, paymentInfoCollectionMetadata*/
|
|
4157
|
-
80 && a(E, 1)) : (E =
|
|
4162
|
+
80 && a(E, 1)) : (E = st(d), E.c(), a(E, 1), E.m(l.parentNode, l)) : E && (F(), f(E, 1, 1, () => {
|
|
4158
4163
|
E = null;
|
|
4159
4164
|
}), G()), /*state*/
|
|
4160
4165
|
d[6] === "loading" ? y ? p & /*state*/
|
|
4161
|
-
64 && a(y, 1) : (y =
|
|
4166
|
+
64 && a(y, 1) : (y = ot(), y.c(), a(y, 1), y.m(s.parentNode, s)) : y && (F(), f(y, 1, 1, () => {
|
|
4162
4167
|
y = null;
|
|
4163
4168
|
}), G()), /*state*/
|
|
4164
|
-
d[6] === "error" ?
|
|
4165
|
-
64 && a(
|
|
4166
|
-
|
|
4169
|
+
d[6] === "error" ? M ? (M.p(d, p), p & /*state*/
|
|
4170
|
+
64 && a(M, 1)) : (M = ct(d), M.c(), a(M, 1), M.m(o.parentNode, o)) : M && (F(), f(M, 1, 1, () => {
|
|
4171
|
+
M = null;
|
|
4167
4172
|
}), G()), /*state*/
|
|
4168
4173
|
d[6] === "success" ? N ? (N.p(d, p), p & /*state*/
|
|
4169
|
-
64 && a(N, 1)) : (N =
|
|
4174
|
+
64 && a(N, 1)) : (N = at(d), N.c(), a(N, 1), N.m(c.parentNode, c)) : N && (F(), f(N, 1, 1, () => {
|
|
4170
4175
|
N = null;
|
|
4171
4176
|
}), G());
|
|
4172
4177
|
},
|
|
4173
4178
|
i(d) {
|
|
4174
|
-
u || (a(_), a(m), a(B), a(k), a(E), a(y), a(
|
|
4179
|
+
u || (a(_), a(m), a(B), a(k), a(E), a(y), a(M), a(N), u = !0);
|
|
4175
4180
|
},
|
|
4176
4181
|
o(d) {
|
|
4177
|
-
f(_), f(m), f(B), f(k), f(E), f(y), f(
|
|
4182
|
+
f(_), f(m), f(B), f(k), f(E), f(y), f(M), f(N), u = !1;
|
|
4178
4183
|
},
|
|
4179
4184
|
d(d) {
|
|
4180
|
-
d && (g(e), g(r), g(n), g(i), g(l), g(s), g(o), g(c)), _ && _.d(d), m && m.d(d), B && B.d(d), k && k.d(d), E && E.d(d), y && y.d(d),
|
|
4185
|
+
d && (g(e), g(r), g(n), g(i), g(l), g(s), g(o), g(c)), _ && _.d(d), m && m.d(d), B && B.d(d), k && k.d(d), E && E.d(d), y && y.d(d), M && M.d(d), N && N.d(d);
|
|
4181
4186
|
}
|
|
4182
4187
|
};
|
|
4183
4188
|
}
|
|
4184
|
-
function
|
|
4189
|
+
function Xi(t) {
|
|
4185
4190
|
let e, r = (
|
|
4186
4191
|
/*statesWhereOfferDetailsAreShown*/
|
|
4187
4192
|
t[7].includes(
|
|
4188
4193
|
/*state*/
|
|
4189
4194
|
t[6]
|
|
4190
4195
|
)
|
|
4191
|
-
), n, i, l, s = r &&
|
|
4192
|
-
return i = new
|
|
4196
|
+
), n, i, l, s = r && Ze(t);
|
|
4197
|
+
return i = new $t({
|
|
4193
4198
|
props: {
|
|
4194
|
-
$$slots: { default: [
|
|
4199
|
+
$$slots: { default: [zi] },
|
|
4195
4200
|
$$scope: { ctx: t }
|
|
4196
4201
|
}
|
|
4197
4202
|
}), {
|
|
@@ -4199,7 +4204,7 @@ function qi(t) {
|
|
|
4199
4204
|
e = $("div"), s && s.c(), n = P(), b(i.$$.fragment), h(e, "class", "rcb-ui-layout svelte-ofxzf4");
|
|
4200
4205
|
},
|
|
4201
4206
|
m(o, c) {
|
|
4202
|
-
A(o, e, c), s && s.m(e, null),
|
|
4207
|
+
A(o, e, c), s && s.m(e, null), T(e, n), I(i, e, null), l = !0;
|
|
4203
4208
|
},
|
|
4204
4209
|
p(o, c) {
|
|
4205
4210
|
c & /*state*/
|
|
@@ -4208,7 +4213,7 @@ function qi(t) {
|
|
|
4208
4213
|
/*state*/
|
|
4209
4214
|
o[6]
|
|
4210
4215
|
)), r ? s ? (s.p(o, c), c & /*state*/
|
|
4211
|
-
64 && a(s, 1)) : (s =
|
|
4216
|
+
64 && a(s, 1)) : (s = Ze(o), s.c(), a(s, 1), s.m(e, n)) : s && (F(), f(s, 1, 1, () => {
|
|
4212
4217
|
s = null;
|
|
4213
4218
|
}), G());
|
|
4214
4219
|
const u = {};
|
|
@@ -4226,15 +4231,15 @@ function qi(t) {
|
|
|
4226
4231
|
}
|
|
4227
4232
|
};
|
|
4228
4233
|
}
|
|
4229
|
-
function
|
|
4234
|
+
function Zi(t) {
|
|
4230
4235
|
let e, r, n;
|
|
4231
|
-
return r = new
|
|
4236
|
+
return r = new Ni({
|
|
4232
4237
|
props: {
|
|
4233
4238
|
condition: (
|
|
4234
4239
|
/*asModal*/
|
|
4235
4240
|
t[0]
|
|
4236
4241
|
),
|
|
4237
|
-
$$slots: { default: [
|
|
4242
|
+
$$slots: { default: [Xi] },
|
|
4238
4243
|
$$scope: { ctx: t }
|
|
4239
4244
|
}
|
|
4240
4245
|
}), {
|
|
@@ -4262,52 +4267,52 @@ function Wi(t) {
|
|
|
4262
4267
|
}
|
|
4263
4268
|
};
|
|
4264
4269
|
}
|
|
4265
|
-
function
|
|
4266
|
-
var
|
|
4267
|
-
let { asModal: n = !0 } = e, { customerEmail: i } = e, { appUserId: l } = e, { rcPackage: s } = e, { onFinished: o } = e, { onError: c } = e, { onClose: u } = e, { purchases: _ } = e, { backend: m } = e, { purchaseOperationHelper: B } = e, k = null, E = null, y = null,
|
|
4268
|
-
const N = ((
|
|
4270
|
+
function el(t, e, r) {
|
|
4271
|
+
var Fe;
|
|
4272
|
+
let { asModal: n = !0 } = e, { customerEmail: i } = e, { appUserId: l } = e, { rcPackage: s } = e, { onFinished: o } = e, { onError: c } = e, { onClose: u } = e, { purchases: _ } = e, { backend: m } = e, { purchaseOperationHelper: B } = e, k = null, E = null, y = null, M = null;
|
|
4273
|
+
const N = ((Fe = s.rcBillingProduct) == null ? void 0 : Fe.identifier) ?? null;
|
|
4269
4274
|
let d = "present-offer";
|
|
4270
4275
|
const p = ["present-offer", "needs-auth-info", "needs-payment-info", "loading"];
|
|
4271
|
-
|
|
4276
|
+
ve(async () => {
|
|
4272
4277
|
if (r(2, k = s.rcBillingProduct), r(3, E = await m.getBrandingInfo()), d === "present-offer") {
|
|
4273
|
-
i ?
|
|
4278
|
+
i ? Le() : r(6, d = "needs-auth-info");
|
|
4274
4279
|
return;
|
|
4275
4280
|
}
|
|
4276
4281
|
});
|
|
4277
|
-
const
|
|
4282
|
+
const Dt = () => {
|
|
4278
4283
|
u();
|
|
4279
|
-
},
|
|
4284
|
+
}, Le = () => {
|
|
4280
4285
|
if (N === null) {
|
|
4281
|
-
|
|
4286
|
+
oe(new Y(O.ErrorSettingUpPurchase, "Product ID was not set before purchase."));
|
|
4282
4287
|
return;
|
|
4283
4288
|
} else
|
|
4284
4289
|
r(6, d = "loading");
|
|
4285
4290
|
if (!i) {
|
|
4286
|
-
|
|
4291
|
+
oe(new Y(O.MissingEmailError));
|
|
4287
4292
|
return;
|
|
4288
4293
|
}
|
|
4289
|
-
B.startPurchase(l, N, i).then((
|
|
4290
|
-
if (
|
|
4291
|
-
r(6, d = "needs-payment-info"), r(4, y =
|
|
4294
|
+
B.startPurchase(l, N, i).then((v) => {
|
|
4295
|
+
if (v.next_action === "collect_payment_info") {
|
|
4296
|
+
r(6, d = "needs-payment-info"), r(4, y = v);
|
|
4292
4297
|
return;
|
|
4293
4298
|
}
|
|
4294
|
-
if (
|
|
4299
|
+
if (v.next_action === "completed") {
|
|
4295
4300
|
r(6, d = "success");
|
|
4296
4301
|
return;
|
|
4297
4302
|
}
|
|
4298
|
-
}).catch((
|
|
4299
|
-
|
|
4303
|
+
}).catch((v) => {
|
|
4304
|
+
oe(new Y(O.ErrorSettingUpPurchase, v.message, v.underlyingErrorMessage));
|
|
4300
4305
|
});
|
|
4301
|
-
},
|
|
4306
|
+
}, vt = (v) => {
|
|
4302
4307
|
if (d === "needs-auth-info") {
|
|
4303
|
-
|
|
4308
|
+
v && r(12, i = v.email), Le();
|
|
4304
4309
|
return;
|
|
4305
4310
|
}
|
|
4306
4311
|
if (d === "needs-payment-info") {
|
|
4307
4312
|
r(6, d = "polling-purchase-status"), B.pollCurrentPurchaseForCompletion().then(() => {
|
|
4308
4313
|
r(6, d = "success");
|
|
4309
|
-
}).catch((
|
|
4310
|
-
|
|
4314
|
+
}).catch((Mt) => {
|
|
4315
|
+
oe(Mt);
|
|
4311
4316
|
});
|
|
4312
4317
|
return;
|
|
4313
4318
|
}
|
|
@@ -4316,26 +4321,26 @@ function zi(t, e, r) {
|
|
|
4316
4321
|
return;
|
|
4317
4322
|
}
|
|
4318
4323
|
r(6, d = "success");
|
|
4319
|
-
},
|
|
4320
|
-
r(5,
|
|
4321
|
-
},
|
|
4322
|
-
c(
|
|
4324
|
+
}, oe = (v) => {
|
|
4325
|
+
r(5, M = v), r(6, d = "error");
|
|
4326
|
+
}, Qt = () => {
|
|
4327
|
+
c(M ?? new Y(O.UnknownError, "Unknown error without state set."));
|
|
4323
4328
|
};
|
|
4324
|
-
return t.$$set = (
|
|
4325
|
-
"asModal" in
|
|
4329
|
+
return t.$$set = (v) => {
|
|
4330
|
+
"asModal" in v && r(0, n = v.asModal), "customerEmail" in v && r(12, i = v.customerEmail), "appUserId" in v && r(13, l = v.appUserId), "rcPackage" in v && r(14, s = v.rcPackage), "onFinished" in v && r(15, o = v.onFinished), "onError" in v && r(16, c = v.onError), "onClose" in v && r(17, u = v.onClose), "purchases" in v && r(1, _ = v.purchases), "backend" in v && r(18, m = v.backend), "purchaseOperationHelper" in v && r(19, B = v.purchaseOperationHelper);
|
|
4326
4331
|
}, [
|
|
4327
4332
|
n,
|
|
4328
4333
|
_,
|
|
4329
4334
|
k,
|
|
4330
4335
|
E,
|
|
4331
4336
|
y,
|
|
4332
|
-
|
|
4337
|
+
M,
|
|
4333
4338
|
d,
|
|
4334
4339
|
p,
|
|
4335
|
-
kt,
|
|
4336
|
-
yt,
|
|
4337
|
-
se,
|
|
4338
4340
|
Dt,
|
|
4341
|
+
vt,
|
|
4342
|
+
oe,
|
|
4343
|
+
Qt,
|
|
4339
4344
|
i,
|
|
4340
4345
|
l,
|
|
4341
4346
|
s,
|
|
@@ -4346,13 +4351,13 @@ function zi(t, e, r) {
|
|
|
4346
4351
|
B
|
|
4347
4352
|
];
|
|
4348
4353
|
}
|
|
4349
|
-
class
|
|
4354
|
+
class tl extends C {
|
|
4350
4355
|
constructor(e) {
|
|
4351
|
-
super(),
|
|
4356
|
+
super(), U(
|
|
4352
4357
|
this,
|
|
4353
4358
|
e,
|
|
4354
|
-
|
|
4355
|
-
|
|
4359
|
+
el,
|
|
4360
|
+
Zi,
|
|
4356
4361
|
R,
|
|
4357
4362
|
{
|
|
4358
4363
|
asModal: 0,
|
|
@@ -4366,36 +4371,36 @@ class Xi extends U {
|
|
|
4366
4371
|
backend: 18,
|
|
4367
4372
|
purchaseOperationHelper: 19
|
|
4368
4373
|
},
|
|
4369
|
-
|
|
4374
|
+
qi
|
|
4370
4375
|
);
|
|
4371
4376
|
}
|
|
4372
4377
|
}
|
|
4373
|
-
function
|
|
4378
|
+
function nl(t) {
|
|
4374
4379
|
return t.expires_date == null ? !0 : new Date(t.expires_date) > /* @__PURE__ */ new Date();
|
|
4375
4380
|
}
|
|
4376
|
-
function
|
|
4381
|
+
function rl(t, e, r) {
|
|
4377
4382
|
return {
|
|
4378
4383
|
identifier: t,
|
|
4379
|
-
isActive:
|
|
4380
|
-
willRenew:
|
|
4384
|
+
isActive: nl(e),
|
|
4385
|
+
willRenew: sl(e, r),
|
|
4381
4386
|
store: (r == null ? void 0 : r.store) ?? "unknown",
|
|
4382
4387
|
originalPurchaseDate: new Date(e.purchase_date),
|
|
4383
|
-
expirationDate:
|
|
4388
|
+
expirationDate: Be(e.expires_date),
|
|
4384
4389
|
productIdentifier: e.product_identifier,
|
|
4385
|
-
unsubscribeDetectedAt:
|
|
4390
|
+
unsubscribeDetectedAt: Be(
|
|
4386
4391
|
r == null ? void 0 : r.unsubscribe_detected_at
|
|
4387
4392
|
),
|
|
4388
|
-
billingIssueDetectedAt:
|
|
4393
|
+
billingIssueDetectedAt: Be(
|
|
4389
4394
|
r == null ? void 0 : r.billing_issues_detected_at
|
|
4390
4395
|
),
|
|
4391
4396
|
isSandbox: (r == null ? void 0 : r.is_sandbox) ?? !1,
|
|
4392
4397
|
periodType: (r == null ? void 0 : r.period_type) ?? "normal"
|
|
4393
4398
|
};
|
|
4394
4399
|
}
|
|
4395
|
-
function
|
|
4400
|
+
function il(t, e) {
|
|
4396
4401
|
const r = {}, n = {};
|
|
4397
4402
|
for (const i in t) {
|
|
4398
|
-
const l = e[i] ?? null, s =
|
|
4403
|
+
const l = e[i] ?? null, s = rl(
|
|
4399
4404
|
i,
|
|
4400
4405
|
t[i],
|
|
4401
4406
|
l
|
|
@@ -4407,35 +4412,35 @@ function tl(t, e) {
|
|
|
4407
4412
|
active: n
|
|
4408
4413
|
};
|
|
4409
4414
|
}
|
|
4410
|
-
function
|
|
4415
|
+
function Be(t) {
|
|
4411
4416
|
return t == null ? null : new Date(t);
|
|
4412
4417
|
}
|
|
4413
|
-
function
|
|
4414
|
-
const e =
|
|
4418
|
+
function ll(t) {
|
|
4419
|
+
const e = cl(t), r = t.subscriber;
|
|
4415
4420
|
return {
|
|
4416
|
-
entitlements:
|
|
4421
|
+
entitlements: il(
|
|
4417
4422
|
r.entitlements,
|
|
4418
4423
|
r.subscriptions
|
|
4419
4424
|
),
|
|
4420
4425
|
allExpirationDatesByProduct: e,
|
|
4421
|
-
allPurchaseDatesByProduct:
|
|
4422
|
-
activeSubscriptions:
|
|
4426
|
+
allPurchaseDatesByProduct: ol(t),
|
|
4427
|
+
activeSubscriptions: al(e),
|
|
4423
4428
|
managementURL: r.management_url,
|
|
4424
4429
|
requestDate: new Date(t.request_date),
|
|
4425
4430
|
firstSeenDate: new Date(r.first_seen),
|
|
4426
|
-
originalPurchaseDate:
|
|
4431
|
+
originalPurchaseDate: Be(
|
|
4427
4432
|
r.original_purchase_date
|
|
4428
4433
|
),
|
|
4429
4434
|
originalAppUserId: t.subscriber.original_app_user_id
|
|
4430
4435
|
};
|
|
4431
4436
|
}
|
|
4432
|
-
function
|
|
4437
|
+
function sl(t, e) {
|
|
4433
4438
|
if (e == null)
|
|
4434
4439
|
return !1;
|
|
4435
4440
|
const r = e.store == "promotional", n = t.expires_date == null, i = e.unsubscribe_detected_at != null, l = e.billing_issues_detected_at != null;
|
|
4436
4441
|
return !(r || n || i || l);
|
|
4437
4442
|
}
|
|
4438
|
-
function
|
|
4443
|
+
function ol(t) {
|
|
4439
4444
|
const e = {};
|
|
4440
4445
|
for (const r in t.subscriber.subscriptions) {
|
|
4441
4446
|
const n = t.subscriber.subscriptions[r];
|
|
@@ -4445,7 +4450,7 @@ function il(t) {
|
|
|
4445
4450
|
}
|
|
4446
4451
|
return e;
|
|
4447
4452
|
}
|
|
4448
|
-
function
|
|
4453
|
+
function cl(t) {
|
|
4449
4454
|
const e = {};
|
|
4450
4455
|
for (const r in t.subscriber.subscriptions) {
|
|
4451
4456
|
const n = t.subscriber.subscriptions[r];
|
|
@@ -4455,7 +4460,7 @@ function ll(t) {
|
|
|
4455
4460
|
}
|
|
4456
4461
|
return e;
|
|
4457
4462
|
}
|
|
4458
|
-
function
|
|
4463
|
+
function al(t) {
|
|
4459
4464
|
const e = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Date();
|
|
4460
4465
|
for (const n in t) {
|
|
4461
4466
|
const i = t[n];
|
|
@@ -4463,29 +4468,28 @@ function sl(t) {
|
|
|
4463
4468
|
}
|
|
4464
4469
|
return e;
|
|
4465
4470
|
}
|
|
4466
|
-
class
|
|
4467
|
-
/**
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
constructor(e) {
|
|
4471
|
+
const H = class H {
|
|
4472
|
+
/** @internal */
|
|
4473
|
+
constructor(e, r) {
|
|
4474
|
+
/** @internal */
|
|
4475
|
+
Q(this, "_API_KEY");
|
|
4472
4476
|
/** @internal */
|
|
4473
|
-
|
|
4477
|
+
Q(this, "_appUserId");
|
|
4474
4478
|
/** @internal */
|
|
4475
|
-
|
|
4479
|
+
Q(this, "backend");
|
|
4476
4480
|
/** @internal */
|
|
4477
|
-
|
|
4481
|
+
Q(this, "purchaseOperationHelper");
|
|
4478
4482
|
/** @internal */
|
|
4479
|
-
|
|
4483
|
+
Q(this, "toOfferings", (e, r) => {
|
|
4480
4484
|
const n = e.offerings.find(
|
|
4481
4485
|
(o) => o.identifier === e.current_offering_id
|
|
4482
4486
|
) ?? null, i = {};
|
|
4483
4487
|
r.product_details.forEach((o) => {
|
|
4484
4488
|
i[o.identifier] = o;
|
|
4485
4489
|
});
|
|
4486
|
-
const l = n == null ? null :
|
|
4490
|
+
const l = n == null ? null : Ge(n, i), s = {};
|
|
4487
4491
|
return e.offerings.forEach((o) => {
|
|
4488
|
-
const c =
|
|
4492
|
+
const c = Ge(o, i);
|
|
4489
4493
|
c != null && (s[o.identifier] = c);
|
|
4490
4494
|
}), Object.keys(s).length == 0 && console.debug(
|
|
4491
4495
|
"Empty offerings. Please make sure you've configured offerings correctly in the RevenueCat dashboard and that the products are properly configured."
|
|
@@ -4494,15 +4498,42 @@ class cl {
|
|
|
4494
4498
|
current: l
|
|
4495
4499
|
};
|
|
4496
4500
|
});
|
|
4497
|
-
this._API_KEY = e, this.backend = new
|
|
4501
|
+
this._API_KEY = e, this._appUserId = r, this.backend = new Vi(this._API_KEY), this.purchaseOperationHelper = new Bn(this.backend);
|
|
4502
|
+
}
|
|
4503
|
+
/**
|
|
4504
|
+
* Get the singleton instance of Purchases. It's preferred to use the instance
|
|
4505
|
+
* obtained from the {@link Purchases.configure} method when possible.
|
|
4506
|
+
* @throws {@link UninitializedPurchasesError} if the instance has not been initialized yet.
|
|
4507
|
+
*/
|
|
4508
|
+
static getSharedInstance() {
|
|
4509
|
+
if (H.isConfigured())
|
|
4510
|
+
return H.instance;
|
|
4511
|
+
throw new Oi();
|
|
4512
|
+
}
|
|
4513
|
+
/**
|
|
4514
|
+
* Returns whether the Purchases SDK is configured or not.
|
|
4515
|
+
*/
|
|
4516
|
+
static isConfigured() {
|
|
4517
|
+
return H.instance !== void 0;
|
|
4518
|
+
}
|
|
4519
|
+
/**
|
|
4520
|
+
* Configures the Purchases SDK. This should be called as soon as your app
|
|
4521
|
+
* has a unique user id for your user. You should only call this once, and
|
|
4522
|
+
* keep the returned instance around for use throughout your application.
|
|
4523
|
+
* @param apiKey - RevenueCat API Key. Can be obtained from the RevenueCat dashboard.
|
|
4524
|
+
* @param appUserId - Your unique id for identifying the user.
|
|
4525
|
+
*/
|
|
4526
|
+
static configure(e, r) {
|
|
4527
|
+
return H.instance !== void 0 ? (console.warn(
|
|
4528
|
+
"Purchases is already initialized. Ignoring and returning existing instance."
|
|
4529
|
+
), H.getSharedInstance()) : (H.instance = new H(e, r), H.getSharedInstance());
|
|
4498
4530
|
}
|
|
4499
4531
|
/**
|
|
4500
4532
|
* Fetch the configured offerings for this user. You can configure these
|
|
4501
4533
|
* in the RevenueCat dashboard.
|
|
4502
|
-
* @param appUserId - Your app's user id in your system.
|
|
4503
4534
|
*/
|
|
4504
|
-
async getOfferings(
|
|
4505
|
-
const r = await this.backend.getOfferings(e), n = r.offerings.flatMap((l) => l.packages).map((l) => l.platform_product_identifier), i = await this.backend.getProducts(
|
|
4535
|
+
async getOfferings() {
|
|
4536
|
+
const e = this._appUserId, r = await this.backend.getOfferings(e), n = r.offerings.flatMap((l) => l.packages).map((l) => l.platform_product_identifier), i = await this.backend.getProducts(
|
|
4506
4537
|
e,
|
|
4507
4538
|
n
|
|
4508
4539
|
);
|
|
@@ -4511,72 +4542,84 @@ class cl {
|
|
|
4511
4542
|
/**
|
|
4512
4543
|
* Convenience method to check whether a user is entitled to a specific
|
|
4513
4544
|
* entitlement. This will use {@link Purchases.getCustomerInfo} under the hood.
|
|
4514
|
-
* @param appUserId - Your app's user id in your system.
|
|
4515
4545
|
* @param entitlementIdentifier - The entitlement identifier you want to check.
|
|
4516
4546
|
* @returns Whether the user is entitled to the specified entitlement
|
|
4517
4547
|
* @throws {@link PurchasesError} if there is an error while fetching the customer info.
|
|
4518
4548
|
* @see {@link Purchases.getCustomerInfo}
|
|
4519
4549
|
*/
|
|
4520
|
-
async isEntitledTo(e
|
|
4521
|
-
const
|
|
4522
|
-
return
|
|
4550
|
+
async isEntitledTo(e) {
|
|
4551
|
+
const r = await this.getCustomerInfo();
|
|
4552
|
+
return e in r.entitlements.active;
|
|
4523
4553
|
}
|
|
4524
4554
|
/**
|
|
4525
4555
|
* Method to perform a purchase for a given package. You can obtain the
|
|
4526
4556
|
* package from {@link Purchases.getOfferings}. This method will present the purchase
|
|
4527
4557
|
* form on your site, using the given HTML element as the mount point, if
|
|
4528
4558
|
* provided, or as a modal if not.
|
|
4529
|
-
* @param appUserId - Your app's user id in your system.
|
|
4530
4559
|
* @param rcPackage - The package you want to purchase. Obtained from {@link Purchases.getOfferings}.
|
|
4531
4560
|
* @param customerEmail - The email of the user. If null, RevenueCat will ask the customer for their email.
|
|
4532
4561
|
* @param htmlTarget - The HTML element where the billing view should be added. If null, a new div will be created at the root of the page and appended to the body.
|
|
4533
4562
|
* @returns The customer info after the purchase is completed successfuly.
|
|
4534
4563
|
* @throws {@link PurchasesError} if there is an error while performing the purchase. If the {@link PurchasesError.errorCode} is {@link ErrorCode.UserCancelledError}, the user cancelled the purchase.
|
|
4535
4564
|
*/
|
|
4536
|
-
purchasePackage(e, r, n
|
|
4537
|
-
let
|
|
4538
|
-
if (
|
|
4565
|
+
purchasePackage(e, r, n) {
|
|
4566
|
+
let i = n ?? document.getElementById("rcb-ui-root");
|
|
4567
|
+
if (i === null) {
|
|
4539
4568
|
const c = document.createElement("div");
|
|
4540
|
-
c.className = "rcb-ui-root", document.body.appendChild(c),
|
|
4569
|
+
c.className = "rcb-ui-root", document.body.appendChild(c), i = c;
|
|
4541
4570
|
}
|
|
4542
|
-
if (
|
|
4571
|
+
if (i === null)
|
|
4543
4572
|
throw new Error(
|
|
4544
4573
|
"Could not generate a mount point for the billing widget"
|
|
4545
4574
|
);
|
|
4546
|
-
const s =
|
|
4575
|
+
const l = i, s = !n, o = this._appUserId;
|
|
4547
4576
|
return new Promise((c, u) => {
|
|
4548
|
-
new
|
|
4549
|
-
target:
|
|
4577
|
+
new tl({
|
|
4578
|
+
target: l,
|
|
4550
4579
|
props: {
|
|
4551
|
-
appUserId:
|
|
4552
|
-
rcPackage:
|
|
4553
|
-
customerEmail:
|
|
4580
|
+
appUserId: o,
|
|
4581
|
+
rcPackage: e,
|
|
4582
|
+
customerEmail: r,
|
|
4554
4583
|
onFinished: async () => {
|
|
4555
|
-
|
|
4584
|
+
l.innerHTML = "", c({
|
|
4585
|
+
customerInfo: await this._getCustomerInfoForUserId(o)
|
|
4586
|
+
});
|
|
4556
4587
|
},
|
|
4557
4588
|
onClose: () => {
|
|
4558
|
-
|
|
4589
|
+
l.innerHTML = "", u(new z(Te.UserCancelledError));
|
|
4559
4590
|
},
|
|
4560
4591
|
onError: (_) => {
|
|
4561
|
-
|
|
4592
|
+
l.innerHTML = "", u(z.getForPurchasesFlowError(_));
|
|
4562
4593
|
},
|
|
4563
4594
|
purchases: this,
|
|
4564
4595
|
backend: this.backend,
|
|
4565
4596
|
purchaseOperationHelper: this.purchaseOperationHelper,
|
|
4566
|
-
asModal:
|
|
4597
|
+
asModal: s
|
|
4567
4598
|
}
|
|
4568
4599
|
});
|
|
4569
4600
|
});
|
|
4570
4601
|
}
|
|
4571
4602
|
/**
|
|
4572
4603
|
* Gets latest available {@link CustomerInfo}.
|
|
4573
|
-
* @param appUserId - Your app's user id in your system.
|
|
4574
4604
|
* @returns The latest {@link CustomerInfo}.
|
|
4575
4605
|
* @throws {@link PurchasesError} if there is an error while fetching the customer info.
|
|
4576
4606
|
*/
|
|
4577
|
-
async getCustomerInfo(
|
|
4578
|
-
|
|
4579
|
-
|
|
4607
|
+
async getCustomerInfo() {
|
|
4608
|
+
return await this._getCustomerInfoForUserId(this._appUserId);
|
|
4609
|
+
}
|
|
4610
|
+
/**
|
|
4611
|
+
* Gets the current app user id.
|
|
4612
|
+
*/
|
|
4613
|
+
getAppUserId() {
|
|
4614
|
+
return this._appUserId;
|
|
4615
|
+
}
|
|
4616
|
+
/**
|
|
4617
|
+
* Change the current app user id. Returns the customer info for the new
|
|
4618
|
+
* user id.
|
|
4619
|
+
* @param newAppUserId - The user id to change to.
|
|
4620
|
+
*/
|
|
4621
|
+
async changeUser(e) {
|
|
4622
|
+
return this._appUserId = e, await this.getCustomerInfo();
|
|
4580
4623
|
}
|
|
4581
4624
|
/** @internal */
|
|
4582
4625
|
logMissingProductIds(e, r) {
|
|
@@ -4597,12 +4640,29 @@ class cl {
|
|
|
4597
4640
|
* @returns Whether the SDK is using a sandbox API Key.
|
|
4598
4641
|
*/
|
|
4599
4642
|
isSandbox() {
|
|
4600
|
-
return
|
|
4643
|
+
return kt(this._API_KEY);
|
|
4601
4644
|
}
|
|
4602
|
-
|
|
4645
|
+
/**
|
|
4646
|
+
* Closes the Purchases instance. You should never have to do this normally.
|
|
4647
|
+
*/
|
|
4648
|
+
close() {
|
|
4649
|
+
H.instance === this ? H.instance = void 0 : console.warn(
|
|
4650
|
+
"Trying to close a Purchases instance that is not the current instance. Ignoring."
|
|
4651
|
+
);
|
|
4652
|
+
}
|
|
4653
|
+
/** @internal */
|
|
4654
|
+
async _getCustomerInfoForUserId(e) {
|
|
4655
|
+
const r = await this.backend.getCustomerInfo(e);
|
|
4656
|
+
return ll(r);
|
|
4657
|
+
}
|
|
4658
|
+
};
|
|
4659
|
+
/** @internal */
|
|
4660
|
+
Q(H, "instance");
|
|
4661
|
+
let ut = H;
|
|
4603
4662
|
export {
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4663
|
+
Te as ErrorCode,
|
|
4664
|
+
Rt as PackageType,
|
|
4665
|
+
ut as Purchases,
|
|
4666
|
+
z as PurchasesError,
|
|
4667
|
+
Oi as UninitializedPurchasesError
|
|
4608
4668
|
};
|