@revenuecat/purchases-js 0.0.15 → 0.0.17
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 +37 -36
- package/package.json +3 -4
- package/dist/Purchases.es.d.ts +0 -489
- package/dist/Purchases.es.js +0 -4668
- package/dist/Purchases.umd.js +0 -14
- package/dist/style.css +0 -1
- package/dist/tsdoc-metadata.json +0 -11
package/dist/Purchases.es.js
DELETED
|
@@ -1,4668 +0,0 @@
|
|
|
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
|
-
return t != null;
|
|
6
|
-
}
|
|
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
|
-
identifier: t.identifier,
|
|
10
|
-
displayName: t.title,
|
|
11
|
-
currentPrice: t.current_price,
|
|
12
|
-
normalPeriodDuration: t.normal_period_duration,
|
|
13
|
-
presentedOfferingIdentifier: e
|
|
14
|
-
}), Ct = (t, e, r) => {
|
|
15
|
-
const n = r[e.platform_product_identifier];
|
|
16
|
-
return n === void 0 ? null : {
|
|
17
|
-
identifier: e.identifier,
|
|
18
|
-
rcBillingProduct: Ut(n, t),
|
|
19
|
-
packageType: Ot(e.identifier)
|
|
20
|
-
};
|
|
21
|
-
}, Ge = (t, e) => {
|
|
22
|
-
const r = t.packages.map(
|
|
23
|
-
(i) => Ct(t.identifier, i, e)
|
|
24
|
-
).filter(Nt), n = {};
|
|
25
|
-
for (const i of r)
|
|
26
|
-
i != null && (n[i.identifier] = i);
|
|
27
|
-
return r.length == 0 ? null : {
|
|
28
|
-
identifier: t.identifier,
|
|
29
|
-
serverDescription: t.description,
|
|
30
|
-
metadata: t.metadata,
|
|
31
|
-
packagesById: n,
|
|
32
|
-
availablePackages: r,
|
|
33
|
-
lifetime: n.$rc_lifetime ?? null,
|
|
34
|
-
annual: n.$rc_annual ?? null,
|
|
35
|
-
sixMonth: n.$rc_six_month ?? null,
|
|
36
|
-
threeMonth: n.$rc_three_month ?? null,
|
|
37
|
-
twoMonth: n.$rc_two_month ?? null,
|
|
38
|
-
monthly: n.$rc_monthly ?? null,
|
|
39
|
-
weekly: n.$rc_weekly ?? null
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
function Ot(t) {
|
|
43
|
-
switch (t) {
|
|
44
|
-
case "$rc_lifetime":
|
|
45
|
-
return "$rc_lifetime";
|
|
46
|
-
case "$rc_annual":
|
|
47
|
-
return "$rc_annual";
|
|
48
|
-
case "$rc_six_month":
|
|
49
|
-
return "$rc_six_month";
|
|
50
|
-
case "$rc_three_month":
|
|
51
|
-
return "$rc_three_month";
|
|
52
|
-
case "$rc_two_month":
|
|
53
|
-
return "$rc_two_month";
|
|
54
|
-
case "$rc_monthly":
|
|
55
|
-
return "$rc_monthly";
|
|
56
|
-
case "$rc_weekly":
|
|
57
|
-
return "$rc_weekly";
|
|
58
|
-
default:
|
|
59
|
-
return t.startsWith("$rc_") ? "unknown" : "custom";
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
function D() {
|
|
63
|
-
}
|
|
64
|
-
function St(t, e) {
|
|
65
|
-
for (const r in e)
|
|
66
|
-
t[r] = e[r];
|
|
67
|
-
return (
|
|
68
|
-
/** @type {T & S} */
|
|
69
|
-
t
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
function ft(t) {
|
|
73
|
-
return t();
|
|
74
|
-
}
|
|
75
|
-
function Ye() {
|
|
76
|
-
return /* @__PURE__ */ Object.create(null);
|
|
77
|
-
}
|
|
78
|
-
function Ae(t) {
|
|
79
|
-
t.forEach(ft);
|
|
80
|
-
}
|
|
81
|
-
function le(t) {
|
|
82
|
-
return typeof t == "function";
|
|
83
|
-
}
|
|
84
|
-
function R(t, e) {
|
|
85
|
-
return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
|
|
86
|
-
}
|
|
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
|
-
}
|
|
91
|
-
function He(t) {
|
|
92
|
-
return t.split(",").map((e) => e.trim().split(" ").filter(Boolean));
|
|
93
|
-
}
|
|
94
|
-
function Lt(t, e) {
|
|
95
|
-
const r = He(t.srcset), n = He(e || "");
|
|
96
|
-
return n.length === r.length && n.every(
|
|
97
|
-
([i, l], s) => l === r[s][1] && // We need to test both ways because Vite will create an a full URL with
|
|
98
|
-
// `new URL(asset, import.meta.url).href` for the client when `base: './'`, and the
|
|
99
|
-
// relative URLs inside srcset are not automatically resolved to absolute URLs by
|
|
100
|
-
// browsers (in contrast to img.src). This means both SSR and DOM code could
|
|
101
|
-
// contain relative or absolute URLs.
|
|
102
|
-
(V(r[s][0], i) || V(i, r[s][0]))
|
|
103
|
-
);
|
|
104
|
-
}
|
|
105
|
-
function Ft(t) {
|
|
106
|
-
return Object.keys(t).length === 0;
|
|
107
|
-
}
|
|
108
|
-
function K(t, e, r, n) {
|
|
109
|
-
if (t) {
|
|
110
|
-
const i = dt(t, e, r, n);
|
|
111
|
-
return t[0](i);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
function dt(t, e, r, n) {
|
|
115
|
-
return t[1] && n ? St(r.ctx.slice(), t[1](n(e))) : r.ctx;
|
|
116
|
-
}
|
|
117
|
-
function j(t, e, r, n) {
|
|
118
|
-
if (t[2] && n) {
|
|
119
|
-
const i = t[2](n(r));
|
|
120
|
-
if (e.dirty === void 0)
|
|
121
|
-
return i;
|
|
122
|
-
if (typeof i == "object") {
|
|
123
|
-
const l = [], s = Math.max(e.dirty.length, i.length);
|
|
124
|
-
for (let o = 0; o < s; o += 1)
|
|
125
|
-
l[o] = e.dirty[o] | i[o];
|
|
126
|
-
return l;
|
|
127
|
-
}
|
|
128
|
-
return e.dirty | i;
|
|
129
|
-
}
|
|
130
|
-
return e.dirty;
|
|
131
|
-
}
|
|
132
|
-
function J(t, e, r, n, i, l) {
|
|
133
|
-
if (i) {
|
|
134
|
-
const s = dt(e, r, n, l);
|
|
135
|
-
t.p(s, i);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
function x(t) {
|
|
139
|
-
if (t.ctx.length > 32) {
|
|
140
|
-
const e = [], r = t.ctx.length / 32;
|
|
141
|
-
for (let n = 0; n < r; n++)
|
|
142
|
-
e[n] = -1;
|
|
143
|
-
return e;
|
|
144
|
-
}
|
|
145
|
-
return -1;
|
|
146
|
-
}
|
|
147
|
-
function de(t) {
|
|
148
|
-
return t ?? "";
|
|
149
|
-
}
|
|
150
|
-
function T(t, e) {
|
|
151
|
-
t.appendChild(e);
|
|
152
|
-
}
|
|
153
|
-
function S(t, e, r) {
|
|
154
|
-
const n = Gt(t);
|
|
155
|
-
if (!n.getElementById(e)) {
|
|
156
|
-
const i = $("style");
|
|
157
|
-
i.id = e, i.textContent = r, Yt(n, i);
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
function Gt(t) {
|
|
161
|
-
if (!t)
|
|
162
|
-
return document;
|
|
163
|
-
const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
|
|
164
|
-
return e && /** @type {ShadowRoot} */
|
|
165
|
-
e.host ? (
|
|
166
|
-
/** @type {ShadowRoot} */
|
|
167
|
-
e
|
|
168
|
-
) : t.ownerDocument;
|
|
169
|
-
}
|
|
170
|
-
function Yt(t, e) {
|
|
171
|
-
return T(
|
|
172
|
-
/** @type {Document} */
|
|
173
|
-
t.head || t,
|
|
174
|
-
e
|
|
175
|
-
), e.sheet;
|
|
176
|
-
}
|
|
177
|
-
function A(t, e, r) {
|
|
178
|
-
t.insertBefore(e, r || null);
|
|
179
|
-
}
|
|
180
|
-
function g(t) {
|
|
181
|
-
t.parentNode && t.parentNode.removeChild(t);
|
|
182
|
-
}
|
|
183
|
-
function $(t) {
|
|
184
|
-
return document.createElement(t);
|
|
185
|
-
}
|
|
186
|
-
function L(t) {
|
|
187
|
-
return document.createTextNode(t);
|
|
188
|
-
}
|
|
189
|
-
function P() {
|
|
190
|
-
return L(" ");
|
|
191
|
-
}
|
|
192
|
-
function X() {
|
|
193
|
-
return L("");
|
|
194
|
-
}
|
|
195
|
-
function _e(t, e, r, n) {
|
|
196
|
-
return t.addEventListener(e, r, n), () => t.removeEventListener(e, r, n);
|
|
197
|
-
}
|
|
198
|
-
function mt(t) {
|
|
199
|
-
return function(e) {
|
|
200
|
-
return e.preventDefault(), t.call(this, e);
|
|
201
|
-
};
|
|
202
|
-
}
|
|
203
|
-
function h(t, e, r) {
|
|
204
|
-
r == null ? t.removeAttribute(e) : t.getAttribute(e) !== r && t.setAttribute(e, r);
|
|
205
|
-
}
|
|
206
|
-
const Ht = ["width", "height"];
|
|
207
|
-
function Kt(t, e) {
|
|
208
|
-
const r = Object.getOwnPropertyDescriptors(t.__proto__);
|
|
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 && Ht.indexOf(n) === -1 ? t[n] = e[n] : h(t, n, e[n]);
|
|
211
|
-
}
|
|
212
|
-
function jt(t, e) {
|
|
213
|
-
Object.keys(e).forEach((r) => {
|
|
214
|
-
Jt(t, r, e[r]);
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
function Jt(t, e, r) {
|
|
218
|
-
const n = e.toLowerCase();
|
|
219
|
-
n in t ? t[n] = typeof t[n] == "boolean" && r === "" ? !0 : r : e in t ? t[e] = typeof t[e] == "boolean" && r === "" ? !0 : r : h(t, e, r);
|
|
220
|
-
}
|
|
221
|
-
function xt(t) {
|
|
222
|
-
return /-/.test(t) ? jt : Kt;
|
|
223
|
-
}
|
|
224
|
-
function Vt(t) {
|
|
225
|
-
return Array.from(t.childNodes);
|
|
226
|
-
}
|
|
227
|
-
function re(t, e) {
|
|
228
|
-
e = "" + e, t.data !== e && (t.data = /** @type {string} */
|
|
229
|
-
e);
|
|
230
|
-
}
|
|
231
|
-
function Ke(t, e) {
|
|
232
|
-
t.value = e ?? "";
|
|
233
|
-
}
|
|
234
|
-
function qt(t, e, { bubbles: r = !1, cancelable: n = !1 } = {}) {
|
|
235
|
-
return new CustomEvent(t, { detail: e, bubbles: r, cancelable: n });
|
|
236
|
-
}
|
|
237
|
-
let me;
|
|
238
|
-
function fe(t) {
|
|
239
|
-
me = t;
|
|
240
|
-
}
|
|
241
|
-
function De() {
|
|
242
|
-
if (!me)
|
|
243
|
-
throw new Error("Function called outside component initialization");
|
|
244
|
-
return me;
|
|
245
|
-
}
|
|
246
|
-
function ve(t) {
|
|
247
|
-
De().$$.on_mount.push(t);
|
|
248
|
-
}
|
|
249
|
-
function Wt() {
|
|
250
|
-
const t = De();
|
|
251
|
-
return (e, r, { cancelable: n = !1 } = {}) => {
|
|
252
|
-
const i = t.$$.callbacks[e];
|
|
253
|
-
if (i) {
|
|
254
|
-
const l = qt(
|
|
255
|
-
/** @type {string} */
|
|
256
|
-
e,
|
|
257
|
-
r,
|
|
258
|
-
{ cancelable: n }
|
|
259
|
-
);
|
|
260
|
-
return i.slice().forEach((s) => {
|
|
261
|
-
s.call(t, l);
|
|
262
|
-
}), !l.defaultPrevented;
|
|
263
|
-
}
|
|
264
|
-
return !0;
|
|
265
|
-
};
|
|
266
|
-
}
|
|
267
|
-
function zt(t, e) {
|
|
268
|
-
return De().$$.context.set(t, e), e;
|
|
269
|
-
}
|
|
270
|
-
function Xt(t) {
|
|
271
|
-
return De().$$.context.get(t);
|
|
272
|
-
}
|
|
273
|
-
function gt(t, e) {
|
|
274
|
-
const r = t.$$.callbacks[e.type];
|
|
275
|
-
r && r.slice().forEach((n) => n.call(this, e));
|
|
276
|
-
}
|
|
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
|
-
}
|
|
284
|
-
function Se(t) {
|
|
285
|
-
ie.push(t);
|
|
286
|
-
}
|
|
287
|
-
function tn(t) {
|
|
288
|
-
Ce.push(t);
|
|
289
|
-
}
|
|
290
|
-
const Ne = /* @__PURE__ */ new Set();
|
|
291
|
-
let ee = 0;
|
|
292
|
-
function At() {
|
|
293
|
-
if (ee !== 0)
|
|
294
|
-
return;
|
|
295
|
-
const t = me;
|
|
296
|
-
do {
|
|
297
|
-
try {
|
|
298
|
-
for (; ee < ne.length; ) {
|
|
299
|
-
const e = ne[ee];
|
|
300
|
-
ee++, fe(e), nn(e.$$);
|
|
301
|
-
}
|
|
302
|
-
} catch (e) {
|
|
303
|
-
throw ne.length = 0, ee = 0, e;
|
|
304
|
-
}
|
|
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
|
-
}
|
|
311
|
-
ie.length = 0;
|
|
312
|
-
} while (ne.length);
|
|
313
|
-
for (; Ce.length; )
|
|
314
|
-
Ce.pop()();
|
|
315
|
-
Oe = !1, Ne.clear(), fe(t);
|
|
316
|
-
}
|
|
317
|
-
function nn(t) {
|
|
318
|
-
if (t.fragment !== null) {
|
|
319
|
-
t.update(), Ae(t.before_update);
|
|
320
|
-
const e = t.dirty;
|
|
321
|
-
t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(Se);
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
function rn(t) {
|
|
325
|
-
const e = [], r = [];
|
|
326
|
-
ie.forEach((n) => t.indexOf(n) === -1 ? e.push(n) : r.push(n)), r.forEach((n) => n()), ie = e;
|
|
327
|
-
}
|
|
328
|
-
const we = /* @__PURE__ */ new Set();
|
|
329
|
-
let W;
|
|
330
|
-
function F() {
|
|
331
|
-
W = {
|
|
332
|
-
r: 0,
|
|
333
|
-
c: [],
|
|
334
|
-
p: W
|
|
335
|
-
// parent group
|
|
336
|
-
};
|
|
337
|
-
}
|
|
338
|
-
function G() {
|
|
339
|
-
W.r || Ae(W.c), W = W.p;
|
|
340
|
-
}
|
|
341
|
-
function a(t, e) {
|
|
342
|
-
t && t.i && (we.delete(t), t.i(e));
|
|
343
|
-
}
|
|
344
|
-
function f(t, e, r, n) {
|
|
345
|
-
if (t && t.o) {
|
|
346
|
-
if (we.has(t))
|
|
347
|
-
return;
|
|
348
|
-
we.add(t), W.c.push(() => {
|
|
349
|
-
we.delete(t), n && (r && t.d(1), n());
|
|
350
|
-
}), t.o(e);
|
|
351
|
-
} else
|
|
352
|
-
n && n();
|
|
353
|
-
}
|
|
354
|
-
function ln(t, e, r) {
|
|
355
|
-
const n = t.$$.props[e];
|
|
356
|
-
n !== void 0 && (t.$$.bound[n] = r, r(t.$$.ctx[n]));
|
|
357
|
-
}
|
|
358
|
-
function b(t) {
|
|
359
|
-
t && t.c();
|
|
360
|
-
}
|
|
361
|
-
function I(t, e, r) {
|
|
362
|
-
const { fragment: n, after_update: i } = t.$$;
|
|
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
|
-
}
|
|
368
|
-
function w(t, e) {
|
|
369
|
-
const r = t.$$;
|
|
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
|
-
}
|
|
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
|
-
}
|
|
375
|
-
function U(t, e, r, n, i, l, s = null, o = [-1]) {
|
|
376
|
-
const c = me;
|
|
377
|
-
fe(t);
|
|
378
|
-
const u = t.$$ = {
|
|
379
|
-
fragment: null,
|
|
380
|
-
ctx: [],
|
|
381
|
-
// state
|
|
382
|
-
props: l,
|
|
383
|
-
update: D,
|
|
384
|
-
not_equal: i,
|
|
385
|
-
bound: Ye(),
|
|
386
|
-
// lifecycle
|
|
387
|
-
on_mount: [],
|
|
388
|
-
on_destroy: [],
|
|
389
|
-
on_disconnect: [],
|
|
390
|
-
before_update: [],
|
|
391
|
-
after_update: [],
|
|
392
|
-
context: new Map(e.context || (c ? c.$$.context : [])),
|
|
393
|
-
// everything else
|
|
394
|
-
callbacks: Ye(),
|
|
395
|
-
dirty: o,
|
|
396
|
-
skip_bound: !1,
|
|
397
|
-
root: e.target || c.$$.root
|
|
398
|
-
};
|
|
399
|
-
s && s(u.root);
|
|
400
|
-
let _ = !1;
|
|
401
|
-
if (u.ctx = r ? r(t, e.props || {}, (m, B, ...k) => {
|
|
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), _ && sn(t, m)), B;
|
|
404
|
-
}) : [], u.update(), _ = !0, Ae(u.before_update), u.fragment = n ? n(u.ctx) : !1, e.target) {
|
|
405
|
-
if (e.hydrate) {
|
|
406
|
-
const m = Vt(e.target);
|
|
407
|
-
u.fragment && u.fragment.l(m), m.forEach(g);
|
|
408
|
-
} else
|
|
409
|
-
u.fragment && u.fragment.c();
|
|
410
|
-
e.intro && a(t.$$.fragment), I(t, e.target, e.anchor), At();
|
|
411
|
-
}
|
|
412
|
-
fe(c);
|
|
413
|
-
}
|
|
414
|
-
class C {
|
|
415
|
-
constructor() {
|
|
416
|
-
/**
|
|
417
|
-
* ### PRIVATE API
|
|
418
|
-
*
|
|
419
|
-
* Do not use, may change at any time
|
|
420
|
-
*
|
|
421
|
-
* @type {any}
|
|
422
|
-
*/
|
|
423
|
-
Q(this, "$$");
|
|
424
|
-
/**
|
|
425
|
-
* ### PRIVATE API
|
|
426
|
-
*
|
|
427
|
-
* Do not use, may change at any time
|
|
428
|
-
*
|
|
429
|
-
* @type {any}
|
|
430
|
-
*/
|
|
431
|
-
Q(this, "$$set");
|
|
432
|
-
}
|
|
433
|
-
/** @returns {void} */
|
|
434
|
-
$destroy() {
|
|
435
|
-
w(this, 1), this.$destroy = D;
|
|
436
|
-
}
|
|
437
|
-
/**
|
|
438
|
-
* @template {Extract<keyof Events, string>} K
|
|
439
|
-
* @param {K} type
|
|
440
|
-
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
441
|
-
* @returns {() => void}
|
|
442
|
-
*/
|
|
443
|
-
$on(e, r) {
|
|
444
|
-
if (!le(r))
|
|
445
|
-
return D;
|
|
446
|
-
const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
447
|
-
return n.push(r), () => {
|
|
448
|
-
const i = n.indexOf(r);
|
|
449
|
-
i !== -1 && n.splice(i, 1);
|
|
450
|
-
};
|
|
451
|
-
}
|
|
452
|
-
/**
|
|
453
|
-
* @param {Partial<Props>} props
|
|
454
|
-
* @returns {void}
|
|
455
|
-
*/
|
|
456
|
-
$set(e) {
|
|
457
|
-
this.$$set && !Ft(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
const on = "4";
|
|
461
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(on);
|
|
462
|
-
function cn(t) {
|
|
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
|
-
}
|
|
465
|
-
function an(t) {
|
|
466
|
-
let e;
|
|
467
|
-
return {
|
|
468
|
-
c() {
|
|
469
|
-
e = $("aside"), e.innerHTML = "<span>Sandbox Mode</span>", h(e, "class", "svelte-8uc6s0");
|
|
470
|
-
},
|
|
471
|
-
m(r, n) {
|
|
472
|
-
A(r, e, n);
|
|
473
|
-
},
|
|
474
|
-
p: D,
|
|
475
|
-
i: D,
|
|
476
|
-
o: D,
|
|
477
|
-
d(r) {
|
|
478
|
-
r && g(e);
|
|
479
|
-
}
|
|
480
|
-
};
|
|
481
|
-
}
|
|
482
|
-
class un extends C {
|
|
483
|
-
constructor(e) {
|
|
484
|
-
super(), U(this, e, null, an, R, {}, cn);
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
function fn(t) {
|
|
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
|
-
}
|
|
490
|
-
function Re(t) {
|
|
491
|
-
let e, r;
|
|
492
|
-
const n = (
|
|
493
|
-
/*#slots*/
|
|
494
|
-
t[2].default
|
|
495
|
-
), i = K(
|
|
496
|
-
n,
|
|
497
|
-
t,
|
|
498
|
-
/*$$scope*/
|
|
499
|
-
t[1],
|
|
500
|
-
null
|
|
501
|
-
);
|
|
502
|
-
return {
|
|
503
|
-
c() {
|
|
504
|
-
e = $(
|
|
505
|
-
/*as*/
|
|
506
|
-
t[0]
|
|
507
|
-
), i && i.c(), xt(
|
|
508
|
-
/*as*/
|
|
509
|
-
t[0]
|
|
510
|
-
)(e, {
|
|
511
|
-
class: de("rcb-modal-section") + " svelte-ujomz3"
|
|
512
|
-
});
|
|
513
|
-
},
|
|
514
|
-
m(l, s) {
|
|
515
|
-
A(l, e, s), i && i.m(e, null), r = !0;
|
|
516
|
-
},
|
|
517
|
-
p(l, s) {
|
|
518
|
-
i && i.p && (!r || s & /*$$scope*/
|
|
519
|
-
2) && J(
|
|
520
|
-
i,
|
|
521
|
-
n,
|
|
522
|
-
l,
|
|
523
|
-
/*$$scope*/
|
|
524
|
-
l[1],
|
|
525
|
-
r ? j(
|
|
526
|
-
n,
|
|
527
|
-
/*$$scope*/
|
|
528
|
-
l[1],
|
|
529
|
-
s,
|
|
530
|
-
null
|
|
531
|
-
) : x(
|
|
532
|
-
/*$$scope*/
|
|
533
|
-
l[1]
|
|
534
|
-
),
|
|
535
|
-
null
|
|
536
|
-
);
|
|
537
|
-
},
|
|
538
|
-
i(l) {
|
|
539
|
-
r || (a(i, l), r = !0);
|
|
540
|
-
},
|
|
541
|
-
o(l) {
|
|
542
|
-
f(i, l), r = !1;
|
|
543
|
-
},
|
|
544
|
-
d(l) {
|
|
545
|
-
l && g(e), i && i.d(l);
|
|
546
|
-
}
|
|
547
|
-
};
|
|
548
|
-
}
|
|
549
|
-
function dn(t) {
|
|
550
|
-
let e = (
|
|
551
|
-
/*as*/
|
|
552
|
-
t[0]
|
|
553
|
-
), r, n, i = (
|
|
554
|
-
/*as*/
|
|
555
|
-
t[0] && Re(t)
|
|
556
|
-
);
|
|
557
|
-
return {
|
|
558
|
-
c() {
|
|
559
|
-
i && i.c(), r = X();
|
|
560
|
-
},
|
|
561
|
-
m(l, s) {
|
|
562
|
-
i && i.m(l, s), A(l, r, s), n = !0;
|
|
563
|
-
},
|
|
564
|
-
p(l, [s]) {
|
|
565
|
-
/*as*/
|
|
566
|
-
l[0] ? e ? R(
|
|
567
|
-
e,
|
|
568
|
-
/*as*/
|
|
569
|
-
l[0]
|
|
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
|
-
l[0], i.c(), i.m(r.parentNode, r)) : e && (i.d(1), i = null, e = /*as*/
|
|
573
|
-
l[0]);
|
|
574
|
-
},
|
|
575
|
-
i(l) {
|
|
576
|
-
n || (a(i, l), n = !0);
|
|
577
|
-
},
|
|
578
|
-
o(l) {
|
|
579
|
-
f(i, l), n = !1;
|
|
580
|
-
},
|
|
581
|
-
d(l) {
|
|
582
|
-
l && g(r), i && i.d(l);
|
|
583
|
-
}
|
|
584
|
-
};
|
|
585
|
-
}
|
|
586
|
-
function mn(t, e, r) {
|
|
587
|
-
let { $$slots: n = {}, $$scope: i } = e, { as: l = "section" } = e;
|
|
588
|
-
return t.$$set = (s) => {
|
|
589
|
-
"as" in s && r(0, l = s.as), "$$scope" in s && r(1, i = s.$$scope);
|
|
590
|
-
}, [l, i, n];
|
|
591
|
-
}
|
|
592
|
-
class q extends C {
|
|
593
|
-
constructor(e) {
|
|
594
|
-
super(), U(this, e, mn, dn, R, { as: 0 }, fn);
|
|
595
|
-
}
|
|
596
|
-
}
|
|
597
|
-
const gn = {
|
|
598
|
-
Y: "year",
|
|
599
|
-
M: "month",
|
|
600
|
-
W: "week",
|
|
601
|
-
D: "day",
|
|
602
|
-
H: "hour"
|
|
603
|
-
}, je = (t, e) => {
|
|
604
|
-
const r = t / 100;
|
|
605
|
-
return new Intl.NumberFormat("en-US", {
|
|
606
|
-
style: "currency",
|
|
607
|
-
currency: e
|
|
608
|
-
}).format(r);
|
|
609
|
-
}, Je = (t) => {
|
|
610
|
-
const e = t.slice(-1);
|
|
611
|
-
return e === "D" ? "daily" : `${gn[e]}ly`;
|
|
612
|
-
};
|
|
613
|
-
function An(t) {
|
|
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
|
-
}
|
|
616
|
-
function _n(t) {
|
|
617
|
-
let e, r, n = (
|
|
618
|
-
/*productDetails*/
|
|
619
|
-
t[0].displayName + ""
|
|
620
|
-
), i, l, s, o = (
|
|
621
|
-
/*productDetails*/
|
|
622
|
-
t[0].currentPrice.currency + ""
|
|
623
|
-
), c, u = " ", _, m = je(
|
|
624
|
-
/*productDetails*/
|
|
625
|
-
t[0].currentPrice.amount,
|
|
626
|
-
/*productDetails*/
|
|
627
|
-
t[0].currentPrice.currency
|
|
628
|
-
) + "", B, k, E, y, M = Je(
|
|
629
|
-
/*productDetails*/
|
|
630
|
-
t[0].normalPeriodDuration
|
|
631
|
-
) + "", N;
|
|
632
|
-
return {
|
|
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(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
|
-
},
|
|
636
|
-
m(d, 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
|
-
},
|
|
639
|
-
p(d, p) {
|
|
640
|
-
p & /*productDetails*/
|
|
641
|
-
1 && n !== (n = /*productDetails*/
|
|
642
|
-
d[0].displayName + "") && re(i, n), p & /*productDetails*/
|
|
643
|
-
1 && o !== (o = /*productDetails*/
|
|
644
|
-
d[0].currentPrice.currency + "") && re(c, o), p & /*productDetails*/
|
|
645
|
-
1 && m !== (m = je(
|
|
646
|
-
/*productDetails*/
|
|
647
|
-
d[0].currentPrice.amount,
|
|
648
|
-
/*productDetails*/
|
|
649
|
-
d[0].currentPrice.currency
|
|
650
|
-
) + "") && re(B, m), p & /*productDetails*/
|
|
651
|
-
1 && M !== (M = Je(
|
|
652
|
-
/*productDetails*/
|
|
653
|
-
d[0].normalPeriodDuration
|
|
654
|
-
) + "") && re(N, M);
|
|
655
|
-
},
|
|
656
|
-
d(d) {
|
|
657
|
-
d && g(e);
|
|
658
|
-
}
|
|
659
|
-
};
|
|
660
|
-
}
|
|
661
|
-
function pn(t) {
|
|
662
|
-
let e, r;
|
|
663
|
-
return e = new q({
|
|
664
|
-
props: {
|
|
665
|
-
$$slots: { default: [_n] },
|
|
666
|
-
$$scope: { ctx: t }
|
|
667
|
-
}
|
|
668
|
-
}), {
|
|
669
|
-
c() {
|
|
670
|
-
b(e.$$.fragment);
|
|
671
|
-
},
|
|
672
|
-
m(n, i) {
|
|
673
|
-
I(e, n, i), r = !0;
|
|
674
|
-
},
|
|
675
|
-
p(n, [i]) {
|
|
676
|
-
const l = {};
|
|
677
|
-
i & /*$$scope, productDetails*/
|
|
678
|
-
3 && (l.$$scope = { dirty: i, ctx: n }), e.$set(l);
|
|
679
|
-
},
|
|
680
|
-
i(n) {
|
|
681
|
-
r || (a(e.$$.fragment, n), r = !0);
|
|
682
|
-
},
|
|
683
|
-
o(n) {
|
|
684
|
-
f(e.$$.fragment, n), r = !1;
|
|
685
|
-
},
|
|
686
|
-
d(n) {
|
|
687
|
-
w(e, n);
|
|
688
|
-
}
|
|
689
|
-
};
|
|
690
|
-
}
|
|
691
|
-
function hn(t, e, r) {
|
|
692
|
-
let { productDetails: n } = e;
|
|
693
|
-
return t.$$set = (i) => {
|
|
694
|
-
"productDetails" in i && r(0, n = i.productDetails);
|
|
695
|
-
}, [n];
|
|
696
|
-
}
|
|
697
|
-
class _t extends C {
|
|
698
|
-
constructor(e) {
|
|
699
|
-
super(), U(this, e, hn, pn, R, { productDetails: 0 }, An);
|
|
700
|
-
}
|
|
701
|
-
}
|
|
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+gfWgusN6KCCAN7WoITVVXjchBxqERAAIfkEBQQAAQAsDQADACAAEAAACKcAAwgcSDDAAwcFEypcSNDAAYYQA2DZstCAAYZOKCqM8uNJxYcKa3DYsVBKECBYFFpU+MTDhiIMkQxBohJkwRYaUkDEEiQIlYQrCyLZ0MFJRCdAkgC1OZBEBxgRJRIBAqXgwYI8NoCwEjWAkyFDoorQ4KOrQCRLoqbQuZCKR7NdqzD5MaQKXIhZmAwBIqTJ3YVYogQZ8oMJ178Kk/A1YhfxQiRHjBYMCAAh+QQFBQABACwNAAMAIAAQAAAInQADCBxIMECGDAUTKlxI8EEEhhADcGEI4QFDJQy5ZJmo0OFCFBFkLNzCRQvHghEgKHQi4cEPhhuzdHyYUMQDDxC5kNSSsGLCIA4x5oxZ0GNBDBFKRAxgkmTBgwVpRJhAZWkAohErPKhhVaLJpR8+YFnohEjXrlB2qHgB5SxELD5etHgBxC1DJC9eqOAxxe5CHSxc0HDilyEOGWYLBgQAIfkEBQQAAQAsGAADABcAFwAACJYAS5AIQLCgwYMINXBAyLDhhg0NtxRpWFBDh4YiDpygGOAhwyUIDOTgqJAhBgMVOHaEeLCHgQMTSV40uKXBAZYcBR5UYSBBFJUNFRhoAbShhZQNi/DYUvRgkxQKmzQlaCVGhw0eakwN4MNDBw0tnmxN8ZAEkq0ET4jYgbat27dw474lMuTHECB1hxBpigRIECBC/AJBEhAAIfkEBQQAAQAsGAADABcAFwAACJIAa9AIQLCgwYMIVbxAyLBhCxYNAwCJSHDFQoYaBIyg6KIFQyQDAMigqJAhBAAMKAZ4iPAGAAETKVpEaECABZUBBB4kAYAAFJwMCwAoAZQhg5QNf4wsajCJhwcRkjANQMVEBAgSVDC9UkNChAcimkz9ADVDkKkEPVRYirat27dw47ad8UKhRYUzitZo8bDjwxoBAQAh+QQFBAABACwYAAMAFwAiAAAIvwCRGAlAsKDBgwh/DEHIsGEQIA0DFIlIEMhChiIOnKAoBCLCJQgM5KCokCEGAxUoBniIsIeBAxMpWkTY4MAGlQEEHlRhIEEUnAwVGGgBlKGFlA1zbCxqkEiFl0SYBojS4YABBCO2MG2RwCqGJFKfGnDQQyrBCgpQaDXLtq3bt3DZkuiggYMGuhxIFC2xoa/fDSXiCh5MuDDBJUSgZGl7ZAiQJFLYbnlCBEiQJFjYXnFiEciTtliSPMzcNspPggEBACH5BAUEAAEALBgAAwAXACIAAAi6ALlsCUCwoMGDCLNwQciwIRctDpU0LKiwIYoIMiYGEMjQiYQHPzRWRCjigQeNGyEeDPIggkSRCw1ywRChBMqNAw3SiDCByk2GFR7U+Mnww4eJMkYQPQiEAQABQJYGgGJBAIABGqSWIGAVghGpTgEcuCGVIIMCSsuqXcu2rdu1NFvKjYCBaAYIEFrifZDhrd+/gAMT1AHjCNsbL1bYYLKWSIwWLXRYUVvlB4sXLISsnYKjBYspbJkgKRgQACH5BAUEAAEALB8ABQAQACgAAAjDAAMIDOBkoMGDAmtw2IEQ4RMPG4o0PNhCQ4qJBpFs6FAQo0ASHWB4FMhjAwgrIwOI0OAjZYAUKbJMzHEiJZEKBg4QwRilwwEDCEZgbJHgJ4YkGHEacNBjZAUFKFxKnUq1qlWBDX5qzdmg4QMDYMMaeHC1rNmzA1WIaJryBAcNJSR61MIjxIYNKqKMnDJj4wYcKZ2cuNuRyRGMQ3xgEUgkyBOXUYAUuZIyCxIgTVxKGQJEZsokQpBWBjJEb2Agj116xhgQACH5BAUFAAEALB8ABQAQACgAAAjFAAMIDBCFy8CDCAP8eDEkYcIqL1g4cYiQx4odFA86YfEiSsaBM170+CiwiAsYWEgGkKECicoAOXRk/CFDZRIPDyIkyUjFRAQIElQYdFhDQoQHIppk/JAzQxCSHirIGPqyqtWrWLEaEACAq1cDDg8AGEsWwIGsaNOqdRiCQo2XHY5m+EEyy4wJECCEmPgxygkIESK0UMmEA4QHTATuuJGxx1uBMFoQeYlkhYwqL2u0oEs4ImaVOlzgeHmFY2KVQFgYqfo5Y0AAIfkEBQQAAQAsGAAFABcAKgAACOUAAwgcSDDAlYIIEw5kMsSJwocCrwgBQgXiQyZAmFhUWAXIkIMbERIZojFkwSdChmQxWfDIjygsCyZJ8rAIj5gDm6TQwKFJTCsxOmzwUIMlFh8eOmho8SRmig0bSCDBGeCEiB1Us2rdyrWryQYHDIQd28DkAwNo0xp44LWt27dtLShYgSUrhbAPsFJVkQDthZIxn3wQe4BEXZxHKKA98pDFiYc2VEAUseHmRiI0CfrQIGLKxokIS2yQsfHHEIRFOGxoCjEIkIQqNjyG6DGhlA0cTj8EndDGhh4QTT98clih662YtwYEACH5BAUEAAEALBgABQAXACoAAAjfAAMIHEgwwJaCCBMOzMIli8KHArdw0cIF4sOGFS0mnMjloEaEDB1+LEhR4siCGE8WlKhFoRMiGVVC2aHiBRSVWHy8aPECiEokL16o4DFFpQ4WLmg4USkQhwwiTKNKnUq16lQMER5k3YphZAYIELSCfZDBqtmzaNMKbFCgxNQFAgAgqCF1BAEAABwkieoEAwABAjZIFbIAr5CHIjp4RBiDBEQKEGZ8nGGjYI0HFKJodNEC4VcTGmsi/BEBAhOLLVgkDBGBg8UVLxI+iRChB0TOClc8oAFRtMLTEFNTpUw1IAAh+QQFBAABACwNAA0AIgAiAAAI5QADCBxIsKDBgwGoPEHIsOHAKkx+DKnisCLBLEyGABHSxKLHKEGG/GBixaPFJBuNUDRpEckRJyxjypxJs6bNmzhvkuiggYMGnhxI5CyxoajRDSVyKl3KtKlTphYUrHhK4YCBBzucqkhgwMAFJk2ffDBw4IDQpkcodD1SEMsSJBUvUGBoQ4VBKECKVFRgwK7HLSFhEiSRlGALAwoWWmQixMiWgkXbPjDgwWIVIj+uGOxpcIdVuA6VAFlyMLLBCwbmNqwiseTmDgeblLXR8EmQjqU3IBxhIIXDlQc5H8QCmqZpp4RrBgQAIfkEBQQAAQAsDQANACIAIgAACOAAAwgcSLCgwYMBuGxByLDhwCxcIGZxSJEgFy0KL1asKDFixI0VL2YEuVEiyZMoU6pcybKly5YzXqh4sULmixkva7RowcLFThY1XgodSrSoUaIhKNSYWLRDhAcZfhidMQEChBBOikY5ASFChBZMhzLhAOEBE4M7cFB0sIBhj6AFjbCIQbEAgBEgs7x4QaQghgwFSwAokLWiDxc0DEaAYPAAgAsVoch8YvBBBIM1BAAYQlFHix0Hyx50AKBtQyczpxy0fFCJAAF0GRJpAQThYoQaAJBwCIUha4ScV4o++ndlQAAh+QQFBAABACwFABgAKgAXAAAI5gADCBxIsKDBgwWJDPkxBMjCIUQQSpxoEAmQIECEXASChKLHjyBDihxJsqTJkyhHbnlSJAlKFSJ6eLyi8McSlCc4aChRBOGVJRmHQMmCUguPEBs2qIhSkElDIky2pBw4ZcaGDhtwDLyCUcmVqQadnEjqZKCTKhJVnPB4gYLEIT5A9tggwqMCAypSXvHQYUfBBg8KtjCg4AnKGBtIaClowIDBBwY8nGziQYNLxgcM7jhgoGPJsSwONj54wYBbkkc0fDBs0EBmg00OHLBBkseGGghHHxxhIEXJJhJdS/QMdqDu4h4BnwwIACH5BAUFAAEALAUAGAAqABcAAAjlAAMIHEiwoMGDBbNwUchwIcKHEA1y2cJFy8SKXCJq3Mixo8ePIEOKHEkSZJEYOUjqgHFE45MZL1TsIHnjxQobTBBW2cHCBQwjJbcQidGihQ4rBX/YfNEjS8mBVX6weMFCyMAoLVjoiPLU4BQcWacMHOIE4ZUQHjSK6PCQCRKnGmk8oKCRAoQZJatIiCCjoAEEBWvM5TrSRIQMBgEASJgBgomRSSQ8GJJYgMEfESDkDOkBgoiDig+GiMAh5I8HEpqAtmzwSYQIPUDKgKACYeiDKx7QCJnkIQDWBrNs7jrwNnGNf0cGBAAh+QQFBAABACwDABgAKgAXAAAI5gCT/BgCZMhAIEkCKFzIsKHDhw2NBAEiBMhEIUYgatzIsaPHjyBDihxJsqTJkygVauEhIsXJJUSgdExCooMGFSePEEwiBeITFhs2gOiR8gkRi0mwNKzxQYMHGFdSKrzipCCQJwudBD3hRGpDLEkmKlW444hGCxU6sjjBBWKUKB9XGFDQUcQGHiinJDiAomGDBw19aBAx5WQHAw6yNDRgwGGJDTJMEkFgwIdDAwccFuGwAStJCgYwPGT8UMWGEyR1GECQ8HJmh1I2cBgy8oSBERBJP7SxgehIIhoxa/TsVaHu4hz/kgwIACH5BAUEAAEALAMAGAAqABcAAAjfAG2oeLHixcAVNgIoXMiwocOHDWm0YOGixUQXNCBq3Mixo8ePIEOKHEmypMmTKBfSoPDhJJctXLRwHIIhwoMQJ7Nw0ZkFohMRDyJMoIHFpZaXMbk0RCHhgYQSVVIq5LlTqUIlEB54UCK1IdKjC2X80NiAQccdNzTq/EgCQIGOMFoQQRmFgIARDTFkaIhkhYyoJi0AOOAwAgSHNVqMLQlkAAAcDoM6ZPKCBeCRCwA8eJj1oQ4XkEfSADDAyEPJDq+weMFk5AgAGiAahgiEhemRQDSiflilZ1eFnX931EsyIAAh+QQFBAABACwDAA0AIgAiAAAI4wADCHwiRaDBgwgTKjyY5ccQJFkWSpxo0AkQIUGaYKHIMWEWJEOAFHHSsaRBKkiABEFi0iSWKEOYtJxJs6bNmzhz6uxYQgMHDR18aiixk8SGo0g3kNjJtKnTp1CjelShwMJTHw0OGLDKdAkGAwYSrGgqAoEBBBumNC0ClkIRqCd0SLRQgSOTIzNXGFDAkUiQJyanJDiAAiEJogejiLxSsoMBBwmPJkzZpCMRsz4S+kwoJWREihQMYFAoOWESIUko6jibWnMHhVmADIky8YSBEQtLJ7QIeCIRiZsXfrap++lhigEBACH5BAUEAAEALAMADQAiACIAAAjgAAMINNJEoMGDCBMqPFhFxYsbVRZKnChQC5AWLlr8uEKxY8IrOV6skDHEo0mDTWq0aIHjpEskL3a4nEmzps2bOHPq9JjhQQSfQDPszADBJ4SiEYTuXMq0qdOnUBOSKMDAKQ4DAgA0YIrkAQAABEgw1TAAwAALUZgC+boAyNMRNCSG8NCRS5aZNB5Q6LiFi5aTVSREkIFwhg2Edu2aNJH078GMCLVw6esxiYQHJRE6TJglcUcPEEQobMFCoeQtFH88kFAw4YoXChPflSgDgoqFkGNLpphE4uaFXHCSjmqYYkAAIfkEBQQAAQAsAwAFABcAKgAACOUAAwgcSDAAloIIEw6M8uOJwocDpQQBchDiQyRDkFh8iCVIECobFToBkqRiSIJYiACBchKhkyFDHmbpQUThFiRLHj7RwMGEw5YDbXTYsEFGFaACpaTgoEHEDqQCj5QgegKqQB8hWFjdyrWr164PDBwQS/bBSQcG0qo14OCr27dw4yZUocACVB8NxtptuQRD2gQrgIpAYADBhilAi6SlUMTqCR0KsaioarXHBhFWr3jo8JQgkSQbY2wggVAIEItNPGgAXfBHTIgnNmhFOBHiEQ0ffhYE8lohjw01FJpG/dA119pbPwcEACH5BAUFAAEALAMABQAXACoAAAjkAAMIHEgwwBQtBRMqFIhEhZCFEAc2adHCSsSIN17kuAhxCsUmHBf+WGEjpMIrMVocMZlwyIsXEWn4gIhDB0QmDyJsYMKS4IoIQE1I6SnwCYgIDyjI2EI0AJAMECB4aCqwxgQRVLNq3cp1KwIAAsCKRWDyAICzaAEc6Mq2rdu3CbXQoPCh6RAMSEP0dCIi5wQaPVFIeCChRJWeSiA88KCEqowfEHfgyGqERQyqWV4SKZiFC0cfLmgwJchlNEQoL1Q8Sdj5oo4WOxRyQQjRiYoXUxS2hkikBZCFpS9Cgbib6mytnQMCACH5BAUEAAEALAMABQAQACgAAAjDAAMIHEgwixOCCBH60IAjoUMiGzpEcZjQRIcUFBE62bDhSEaCMzSU+DiwSogNPUgK3MEhxMAUDR1qOaFCIBIDByYgIZllxAGcHqCQbGLhpwIUKnk8MGCAgsorLRJcUEm1qtWrVpf+3GrggUMHTMMydYC1rNmzaHmIwPgxCYkOGmpSfMKCI4geWSjW+KDBA4wrGTduOHGQ5A6PFJfsVAkFSBGVW4IMKfyRiRAjKqsQ+QGYpBIgSzL/GGJF5ZMgTapWIRgQACH5BAUEAAEALAMABQAQACgAAAjAAAMIHEgwAJOCCAfWeNAiIUIfECI4cVhwQwQQFAkyiQABSMaBJx5k+ChQygQINUgGkBFhwkASMhxm8RBC4BAAAhYMIalhAM4LTz4qcSAAQIERJG0cAACAgcoSBByonEq1qtWMGR5E0Mp1JMIMELRCCBvB69WzaNNO3VIkRo6PT2a8ULGDYpUdLFzAMELxx4sVL3pkoRilBQsdUUgOmZgwC5fBJLlo4RLZMeSMk7dQzmh5c0Yumis/JqlZy9TLAQICACH5BAUEAAEALAMAAwAXACIAAAi+AAMIHEiwoEEkRgwqXPhjyMKBR7IsDALkYQAVBkgsBOLwIQ4DB5goFFLR4oQDFhQ2tBjgyAEDPAxSZBngg4EHVwpypAklgYEVBRHSDIDiQAKLKXA8pJByIRKQE5AMNTji5QEPUKYSbGLhpQIUWgnyeGDAAIWwBFskuIC2rdu3cONaLKGBg4YOdTWUmEpig9+/GzTKHUy4sGGWT4okaXuFyJAfS8JeWQJEyJCsWpkMAUKEyRbJFJXkbOukStuAAAAh+QQFBAABACwDAAMAFwAiAAAItQADCBxIsKDBGjQMKlyo4sXCgUIetmDxMAAJABsWrnD4UAaAAUkUumhRMcACAQ4UNiwpRAAAGwYnlgyAAQACgxtnPiEAoERBhDMDjBBAoCINHw8ZNHjI5EGEDUyCFtSyIoJVE1KkEnwCIsIDCjK0EgSSAQIED2IHYqkxQUTat3Djyp1b0UbDjXdhBqUxcWTfhHQDCx5MuCIXLVy2vOWShTEXsVsOJz6stbHlx1ojI1b8tvHbgAAAIfkEBQQAAQAsAwADABcAFwAACJQAAwgcSLCgwRIkDCpcqIHDwoFHHm7Y8DCACgMJFWroUBGHgQNMFE6sGGDCAQsaHVY8csAAD4MjSX4w8MDgRpIBoCQwsKIgQpwBUBxIULEHkYcUUC580tDEE6AGbXSYKKMKVIJSUnDQIGIHl6sQS0w8AZagjxAsyqpdy7at24pJfgwBMkQukCRQjQQBIgTIXiFGoAYEACH5BAUFAAEALAMAAwAXABcAAAiVAAMIHEiwoMEMGQwqXPggwsKBTLQshPDgYYAaD1owdPjQB4QIThRGgGAxwIYIIBQ2LMlkJBCDFEsGOPEgA5aCK0tKmQChRkGEMgPIiDDhoRYjTR56CPGwiooXN6oENQikhYsWP65MJXglx4sVMoZsJdikRosWOMYSRPJih9q3cOPKnWuRSxa7eO9O3cJFCxe+frdMDQgAIfkEBQUAAQAsBQADACAAEAAACKYAAwgcSLAgwQcODCpcyNDAAYYQAzhpaIDhFYY+NOBY6HAhkyETFRLZ0CGKQgMVDV4RAoQKQxMdUpx8aJAJECYQnWzYcMQgSoNVgAy5CHGGhhI+aRIkMgRnxCohNvQoiLDgEyFDskQUuINDiK1Hfpgc+ETKQi0nVGxNkkSrwCw/hiBxu7XuFidAhARpgqWu3yxIhgApEtLvVipIgARBYthvlKaNFQYEADs=";
|
|
703
|
-
function In(t) {
|
|
704
|
-
let e, r;
|
|
705
|
-
return {
|
|
706
|
-
c() {
|
|
707
|
-
e = $("img"), V(e.src, r = En) || h(e, "src", r), h(e, "alt", "spinner");
|
|
708
|
-
},
|
|
709
|
-
m(n, i) {
|
|
710
|
-
A(n, e, i);
|
|
711
|
-
},
|
|
712
|
-
p: D,
|
|
713
|
-
i: D,
|
|
714
|
-
o: D,
|
|
715
|
-
d(n) {
|
|
716
|
-
n && g(e);
|
|
717
|
-
}
|
|
718
|
-
};
|
|
719
|
-
}
|
|
720
|
-
class wn extends C {
|
|
721
|
-
constructor(e) {
|
|
722
|
-
super(), U(this, e, null, In, R, {});
|
|
723
|
-
}
|
|
724
|
-
}
|
|
725
|
-
function bn(t) {
|
|
726
|
-
S(t, "svelte-4wmtg7", ".rcb-modal-loader.svelte-4wmtg7{width:100%;min-height:10rem;display:flex;justify-content:center;align-items:center}");
|
|
727
|
-
}
|
|
728
|
-
function $n(t) {
|
|
729
|
-
let e, r, n;
|
|
730
|
-
return r = new wn({}), {
|
|
731
|
-
c() {
|
|
732
|
-
e = $("div"), b(r.$$.fragment), h(e, "class", "rcb-modal-loader svelte-4wmtg7");
|
|
733
|
-
},
|
|
734
|
-
m(i, l) {
|
|
735
|
-
A(i, e, l), I(r, e, null), n = !0;
|
|
736
|
-
},
|
|
737
|
-
p: D,
|
|
738
|
-
i(i) {
|
|
739
|
-
n || (a(r.$$.fragment, i), n = !0);
|
|
740
|
-
},
|
|
741
|
-
o(i) {
|
|
742
|
-
f(r.$$.fragment, i), n = !1;
|
|
743
|
-
},
|
|
744
|
-
d(i) {
|
|
745
|
-
i && g(e), w(r);
|
|
746
|
-
}
|
|
747
|
-
};
|
|
748
|
-
}
|
|
749
|
-
class Qe extends C {
|
|
750
|
-
constructor(e) {
|
|
751
|
-
super(), U(this, e, null, $n, R, {}, bn);
|
|
752
|
-
}
|
|
753
|
-
}
|
|
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
|
-
class Y extends Error {
|
|
756
|
-
constructor(e, r, n) {
|
|
757
|
-
super(r), this.errorCode = e, this.underlyingErrorMessage = n;
|
|
758
|
-
}
|
|
759
|
-
}
|
|
760
|
-
class Bn {
|
|
761
|
-
constructor(e, r = 10) {
|
|
762
|
-
Q(this, "operationSessionId", null);
|
|
763
|
-
Q(this, "backend");
|
|
764
|
-
Q(this, "maxNumberAttempts");
|
|
765
|
-
Q(this, "waitMSBetweenAttempts", 1e3);
|
|
766
|
-
this.backend = e, this.maxNumberAttempts = r;
|
|
767
|
-
}
|
|
768
|
-
async startPurchase(e, r, n) {
|
|
769
|
-
const i = await this.backend.postSubscribe(
|
|
770
|
-
e,
|
|
771
|
-
r,
|
|
772
|
-
n
|
|
773
|
-
);
|
|
774
|
-
return this.operationSessionId = i.operation_session_id, i;
|
|
775
|
-
}
|
|
776
|
-
async pollCurrentPurchaseForCompletion() {
|
|
777
|
-
const e = this.operationSessionId;
|
|
778
|
-
if (!e)
|
|
779
|
-
throw new Y(
|
|
780
|
-
0,
|
|
781
|
-
"No purchase in progress"
|
|
782
|
-
);
|
|
783
|
-
return new Promise((r, n) => {
|
|
784
|
-
const i = (l = 1) => {
|
|
785
|
-
if (l > this.maxNumberAttempts) {
|
|
786
|
-
this.clearPurchaseInProgress(), n(
|
|
787
|
-
new Y(
|
|
788
|
-
2,
|
|
789
|
-
"Max attempts reached trying to get successful purchase status"
|
|
790
|
-
)
|
|
791
|
-
);
|
|
792
|
-
return;
|
|
793
|
-
}
|
|
794
|
-
this.backend.getCheckoutStatus(e).then((s) => {
|
|
795
|
-
switch (s.operation.status) {
|
|
796
|
-
case ue.Started:
|
|
797
|
-
case ue.InProgress:
|
|
798
|
-
setTimeout(
|
|
799
|
-
() => i(l + 1),
|
|
800
|
-
this.waitMSBetweenAttempts
|
|
801
|
-
);
|
|
802
|
-
break;
|
|
803
|
-
case ue.Succeeded:
|
|
804
|
-
this.clearPurchaseInProgress(), r();
|
|
805
|
-
return;
|
|
806
|
-
case ue.Failed:
|
|
807
|
-
this.clearPurchaseInProgress(), this.handlePaymentError(
|
|
808
|
-
s.operation.error,
|
|
809
|
-
n
|
|
810
|
-
);
|
|
811
|
-
}
|
|
812
|
-
}).catch((s) => {
|
|
813
|
-
n(
|
|
814
|
-
new Y(
|
|
815
|
-
3,
|
|
816
|
-
s.message
|
|
817
|
-
)
|
|
818
|
-
);
|
|
819
|
-
});
|
|
820
|
-
};
|
|
821
|
-
i();
|
|
822
|
-
});
|
|
823
|
-
}
|
|
824
|
-
clearPurchaseInProgress() {
|
|
825
|
-
this.operationSessionId = null;
|
|
826
|
-
}
|
|
827
|
-
handlePaymentError(e, r) {
|
|
828
|
-
if (e == null) {
|
|
829
|
-
r(
|
|
830
|
-
new Y(
|
|
831
|
-
2,
|
|
832
|
-
"Got an error status but error field is empty."
|
|
833
|
-
)
|
|
834
|
-
);
|
|
835
|
-
return;
|
|
836
|
-
}
|
|
837
|
-
switch (e.code) {
|
|
838
|
-
case be.SetupIntentCreationFailed:
|
|
839
|
-
r(
|
|
840
|
-
new Y(
|
|
841
|
-
0,
|
|
842
|
-
"Setup intent creation failed"
|
|
843
|
-
)
|
|
844
|
-
);
|
|
845
|
-
return;
|
|
846
|
-
case be.PaymentMethodCreationFailed:
|
|
847
|
-
r(
|
|
848
|
-
new Y(
|
|
849
|
-
0,
|
|
850
|
-
"Payment method creation failed"
|
|
851
|
-
)
|
|
852
|
-
);
|
|
853
|
-
return;
|
|
854
|
-
case be.PaymentChargeFailed:
|
|
855
|
-
r(
|
|
856
|
-
new Y(
|
|
857
|
-
1,
|
|
858
|
-
"Payment charge failed"
|
|
859
|
-
)
|
|
860
|
-
);
|
|
861
|
-
return;
|
|
862
|
-
}
|
|
863
|
-
}
|
|
864
|
-
}
|
|
865
|
-
function kn(t) {
|
|
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
|
-
}
|
|
868
|
-
function yn(t) {
|
|
869
|
-
let e, r, n, i, l;
|
|
870
|
-
const s = (
|
|
871
|
-
/*#slots*/
|
|
872
|
-
t[3].default
|
|
873
|
-
), o = K(
|
|
874
|
-
s,
|
|
875
|
-
t,
|
|
876
|
-
/*$$scope*/
|
|
877
|
-
t[2],
|
|
878
|
-
null
|
|
879
|
-
);
|
|
880
|
-
return {
|
|
881
|
-
c() {
|
|
882
|
-
e = $("button"), o && o.c(), h(e, "class", r = de(`intent-${/*intent*/
|
|
883
|
-
t[0]}`) + " svelte-igat39"), e.disabled = /*disabled*/
|
|
884
|
-
t[1];
|
|
885
|
-
},
|
|
886
|
-
m(c, u) {
|
|
887
|
-
A(c, e, u), o && o.m(e, null), n = !0, i || (l = _e(
|
|
888
|
-
e,
|
|
889
|
-
"click",
|
|
890
|
-
/*click_handler*/
|
|
891
|
-
t[4]
|
|
892
|
-
), i = !0);
|
|
893
|
-
},
|
|
894
|
-
p(c, [u]) {
|
|
895
|
-
o && o.p && (!n || u & /*$$scope*/
|
|
896
|
-
4) && J(
|
|
897
|
-
o,
|
|
898
|
-
s,
|
|
899
|
-
c,
|
|
900
|
-
/*$$scope*/
|
|
901
|
-
c[2],
|
|
902
|
-
n ? j(
|
|
903
|
-
s,
|
|
904
|
-
/*$$scope*/
|
|
905
|
-
c[2],
|
|
906
|
-
u,
|
|
907
|
-
null
|
|
908
|
-
) : x(
|
|
909
|
-
/*$$scope*/
|
|
910
|
-
c[2]
|
|
911
|
-
),
|
|
912
|
-
null
|
|
913
|
-
), (!n || u & /*intent*/
|
|
914
|
-
1 && r !== (r = de(`intent-${/*intent*/
|
|
915
|
-
c[0]}`) + " svelte-igat39")) && h(e, "class", r), (!n || u & /*disabled*/
|
|
916
|
-
2) && (e.disabled = /*disabled*/
|
|
917
|
-
c[1]);
|
|
918
|
-
},
|
|
919
|
-
i(c) {
|
|
920
|
-
n || (a(o, c), n = !0);
|
|
921
|
-
},
|
|
922
|
-
o(c) {
|
|
923
|
-
f(o, c), n = !1;
|
|
924
|
-
},
|
|
925
|
-
d(c) {
|
|
926
|
-
c && g(e), o && o.d(c), i = !1, l();
|
|
927
|
-
}
|
|
928
|
-
};
|
|
929
|
-
}
|
|
930
|
-
function Dn(t, e, r) {
|
|
931
|
-
let { $$slots: n = {}, $$scope: i } = e, { intent: l = "primary" } = e, { disabled: s = !1 } = e;
|
|
932
|
-
function o(c) {
|
|
933
|
-
gt.call(this, t, c);
|
|
934
|
-
}
|
|
935
|
-
return t.$$set = (c) => {
|
|
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
|
-
}, [l, s, i, n, o];
|
|
938
|
-
}
|
|
939
|
-
class ge extends C {
|
|
940
|
-
constructor(e) {
|
|
941
|
-
super(), U(this, e, Dn, yn, R, { intent: 0, disabled: 1 }, kn);
|
|
942
|
-
}
|
|
943
|
-
}
|
|
944
|
-
function vn(t) {
|
|
945
|
-
S(t, "svelte-1f9z0o8", "footer.svelte-1f9z0o8{display:flex;flex-direction:column}");
|
|
946
|
-
}
|
|
947
|
-
function Qn(t) {
|
|
948
|
-
let e, r;
|
|
949
|
-
const n = (
|
|
950
|
-
/*#slots*/
|
|
951
|
-
t[1].default
|
|
952
|
-
), i = K(
|
|
953
|
-
n,
|
|
954
|
-
t,
|
|
955
|
-
/*$$scope*/
|
|
956
|
-
t[0],
|
|
957
|
-
null
|
|
958
|
-
);
|
|
959
|
-
return {
|
|
960
|
-
c() {
|
|
961
|
-
e = $("footer"), i && i.c(), h(e, "class", "rcb-modal-footer svelte-1f9z0o8");
|
|
962
|
-
},
|
|
963
|
-
m(l, s) {
|
|
964
|
-
A(l, e, s), i && i.m(e, null), r = !0;
|
|
965
|
-
},
|
|
966
|
-
p(l, [s]) {
|
|
967
|
-
i && i.p && (!r || s & /*$$scope*/
|
|
968
|
-
1) && J(
|
|
969
|
-
i,
|
|
970
|
-
n,
|
|
971
|
-
l,
|
|
972
|
-
/*$$scope*/
|
|
973
|
-
l[0],
|
|
974
|
-
r ? j(
|
|
975
|
-
n,
|
|
976
|
-
/*$$scope*/
|
|
977
|
-
l[0],
|
|
978
|
-
s,
|
|
979
|
-
null
|
|
980
|
-
) : x(
|
|
981
|
-
/*$$scope*/
|
|
982
|
-
l[0]
|
|
983
|
-
),
|
|
984
|
-
null
|
|
985
|
-
);
|
|
986
|
-
},
|
|
987
|
-
i(l) {
|
|
988
|
-
r || (a(i, l), r = !0);
|
|
989
|
-
},
|
|
990
|
-
o(l) {
|
|
991
|
-
f(i, l), r = !1;
|
|
992
|
-
},
|
|
993
|
-
d(l) {
|
|
994
|
-
l && g(e), i && i.d(l);
|
|
995
|
-
}
|
|
996
|
-
};
|
|
997
|
-
}
|
|
998
|
-
function Mn(t, e, r) {
|
|
999
|
-
let { $$slots: n = {}, $$scope: i } = e;
|
|
1000
|
-
return t.$$set = (l) => {
|
|
1001
|
-
"$$scope" in l && r(0, i = l.$$scope);
|
|
1002
|
-
}, [i, n];
|
|
1003
|
-
}
|
|
1004
|
-
class Me extends C {
|
|
1005
|
-
constructor(e) {
|
|
1006
|
-
super(), U(this, e, Mn, Qn, R, {}, vn);
|
|
1007
|
-
}
|
|
1008
|
-
}
|
|
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
|
-
S(t, "svelte-7khg4b", "img.svelte-7khg4b{width:7.75rem;height:7.75rem;margin:0 auto}");
|
|
1012
|
-
}
|
|
1013
|
-
function Nn(t) {
|
|
1014
|
-
let e, r;
|
|
1015
|
-
return {
|
|
1016
|
-
c() {
|
|
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
|
-
},
|
|
1019
|
-
m(n, i) {
|
|
1020
|
-
A(n, e, i);
|
|
1021
|
-
},
|
|
1022
|
-
p: D,
|
|
1023
|
-
i: D,
|
|
1024
|
-
o: D,
|
|
1025
|
-
d(n) {
|
|
1026
|
-
n && g(e);
|
|
1027
|
-
}
|
|
1028
|
-
};
|
|
1029
|
-
}
|
|
1030
|
-
class Rn extends C {
|
|
1031
|
-
constructor(e) {
|
|
1032
|
-
super(), U(this, e, null, Nn, R, {}, Pn);
|
|
1033
|
-
}
|
|
1034
|
-
}
|
|
1035
|
-
function Un(t) {
|
|
1036
|
-
S(t, "svelte-18njhoa", '.column.svelte-18njhoa{display:flex;flex-direction:column;justify-content:flex-start;gap:var(--gap, "0.5rem")}');
|
|
1037
|
-
}
|
|
1038
|
-
function Cn(t) {
|
|
1039
|
-
let e, r, n;
|
|
1040
|
-
const i = (
|
|
1041
|
-
/*#slots*/
|
|
1042
|
-
t[2].default
|
|
1043
|
-
), l = K(
|
|
1044
|
-
i,
|
|
1045
|
-
t,
|
|
1046
|
-
/*$$scope*/
|
|
1047
|
-
t[1],
|
|
1048
|
-
null
|
|
1049
|
-
);
|
|
1050
|
-
return {
|
|
1051
|
-
c() {
|
|
1052
|
-
e = $("div"), l && l.c(), h(e, "class", "column svelte-18njhoa"), h(e, "style", r = `--gap:${/*gutter*/
|
|
1053
|
-
t[0]};`);
|
|
1054
|
-
},
|
|
1055
|
-
m(s, o) {
|
|
1056
|
-
A(s, e, o), l && l.m(e, null), n = !0;
|
|
1057
|
-
},
|
|
1058
|
-
p(s, [o]) {
|
|
1059
|
-
l && l.p && (!n || o & /*$$scope*/
|
|
1060
|
-
2) && J(
|
|
1061
|
-
l,
|
|
1062
|
-
i,
|
|
1063
|
-
s,
|
|
1064
|
-
/*$$scope*/
|
|
1065
|
-
s[1],
|
|
1066
|
-
n ? j(
|
|
1067
|
-
i,
|
|
1068
|
-
/*$$scope*/
|
|
1069
|
-
s[1],
|
|
1070
|
-
o,
|
|
1071
|
-
null
|
|
1072
|
-
) : x(
|
|
1073
|
-
/*$$scope*/
|
|
1074
|
-
s[1]
|
|
1075
|
-
),
|
|
1076
|
-
null
|
|
1077
|
-
), (!n || o & /*gutter*/
|
|
1078
|
-
1 && r !== (r = `--gap:${/*gutter*/
|
|
1079
|
-
s[0]};`)) && h(e, "style", r);
|
|
1080
|
-
},
|
|
1081
|
-
i(s) {
|
|
1082
|
-
n || (a(l, s), n = !0);
|
|
1083
|
-
},
|
|
1084
|
-
o(s) {
|
|
1085
|
-
f(l, s), n = !1;
|
|
1086
|
-
},
|
|
1087
|
-
d(s) {
|
|
1088
|
-
s && g(e), l && l.d(s);
|
|
1089
|
-
}
|
|
1090
|
-
};
|
|
1091
|
-
}
|
|
1092
|
-
function On(t, e, r) {
|
|
1093
|
-
let { $$slots: n = {}, $$scope: i } = e, { gutter: l = "0.5rem" } = e;
|
|
1094
|
-
return t.$$set = (s) => {
|
|
1095
|
-
"gutter" in s && r(0, l = s.gutter), "$$scope" in s && r(1, i = s.$$scope);
|
|
1096
|
-
}, [l, i, n];
|
|
1097
|
-
}
|
|
1098
|
-
class Z extends C {
|
|
1099
|
-
constructor(e) {
|
|
1100
|
-
super(), U(this, e, On, Cn, R, { gutter: 0 }, Un);
|
|
1101
|
-
}
|
|
1102
|
-
}
|
|
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
|
-
S(t, "svelte-r1ujja", ".close-button.svelte-r1ujja{border:none;cursor:pointer;background-color:transparent}");
|
|
1106
|
-
}
|
|
1107
|
-
function Fn(t) {
|
|
1108
|
-
let e, r, n, i, l;
|
|
1109
|
-
return {
|
|
1110
|
-
c() {
|
|
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
|
-
t[0];
|
|
1113
|
-
},
|
|
1114
|
-
m(s, o) {
|
|
1115
|
-
A(s, e, o), T(e, r), i || (l = _e(
|
|
1116
|
-
e,
|
|
1117
|
-
"click",
|
|
1118
|
-
/*click_handler*/
|
|
1119
|
-
t[1]
|
|
1120
|
-
), i = !0);
|
|
1121
|
-
},
|
|
1122
|
-
p(s, [o]) {
|
|
1123
|
-
o & /*disabled*/
|
|
1124
|
-
1 && (e.disabled = /*disabled*/
|
|
1125
|
-
s[0]);
|
|
1126
|
-
},
|
|
1127
|
-
i: D,
|
|
1128
|
-
o: D,
|
|
1129
|
-
d(s) {
|
|
1130
|
-
s && g(e), i = !1, l();
|
|
1131
|
-
}
|
|
1132
|
-
};
|
|
1133
|
-
}
|
|
1134
|
-
function Gn(t, e, r) {
|
|
1135
|
-
let { disabled: n = !1 } = e;
|
|
1136
|
-
function i(l) {
|
|
1137
|
-
gt.call(this, t, l);
|
|
1138
|
-
}
|
|
1139
|
-
return t.$$set = (l) => {
|
|
1140
|
-
"disabled" in l && r(0, n = l.disabled);
|
|
1141
|
-
}, [n, i];
|
|
1142
|
-
}
|
|
1143
|
-
class Yn extends C {
|
|
1144
|
-
constructor(e) {
|
|
1145
|
-
super(), U(this, e, Gn, Fn, R, { disabled: 0 }, Ln);
|
|
1146
|
-
}
|
|
1147
|
-
}
|
|
1148
|
-
function Hn(t) {
|
|
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
|
-
}
|
|
1151
|
-
function Kn(t) {
|
|
1152
|
-
let e;
|
|
1153
|
-
return {
|
|
1154
|
-
c() {
|
|
1155
|
-
e = $("div"), h(e, "class", "rcb-app-icon loading svelte-10u48yl");
|
|
1156
|
-
},
|
|
1157
|
-
m(r, n) {
|
|
1158
|
-
A(r, e, n);
|
|
1159
|
-
},
|
|
1160
|
-
p: D,
|
|
1161
|
-
d(r) {
|
|
1162
|
-
r && g(e);
|
|
1163
|
-
}
|
|
1164
|
-
};
|
|
1165
|
-
}
|
|
1166
|
-
function jn(t) {
|
|
1167
|
-
let e, r, n, i, l, s;
|
|
1168
|
-
return {
|
|
1169
|
-
c() {
|
|
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
|
-
t[0]) || h(l, "src", s), h(l, "alt", "App icon"), h(e, "class", "rcb-app-icon-picture-container svelte-10u48yl");
|
|
1173
|
-
},
|
|
1174
|
-
m(o, c) {
|
|
1175
|
-
A(o, e, c), T(e, r), T(e, i), T(e, l);
|
|
1176
|
-
},
|
|
1177
|
-
p(o, c) {
|
|
1178
|
-
c & /*srcWebp*/
|
|
1179
|
-
2 && n !== (n = /*srcWebp*/
|
|
1180
|
-
o[1]) && h(r, "srcset", n), c & /*src*/
|
|
1181
|
-
1 && !V(l.src, s = /*src*/
|
|
1182
|
-
o[0]) && h(l, "src", s);
|
|
1183
|
-
},
|
|
1184
|
-
d(o) {
|
|
1185
|
-
o && g(e);
|
|
1186
|
-
}
|
|
1187
|
-
};
|
|
1188
|
-
}
|
|
1189
|
-
function Jn(t) {
|
|
1190
|
-
let e;
|
|
1191
|
-
function r(l, s) {
|
|
1192
|
-
return (
|
|
1193
|
-
/*src*/
|
|
1194
|
-
l[0] !== null ? jn : Kn
|
|
1195
|
-
);
|
|
1196
|
-
}
|
|
1197
|
-
let n = r(t), i = n(t);
|
|
1198
|
-
return {
|
|
1199
|
-
c() {
|
|
1200
|
-
i.c(), e = X();
|
|
1201
|
-
},
|
|
1202
|
-
m(l, s) {
|
|
1203
|
-
i.m(l, s), A(l, e, s);
|
|
1204
|
-
},
|
|
1205
|
-
p(l, [s]) {
|
|
1206
|
-
n === (n = r(l)) && i ? i.p(l, s) : (i.d(1), i = n(l), i && (i.c(), i.m(e.parentNode, e)));
|
|
1207
|
-
},
|
|
1208
|
-
i: D,
|
|
1209
|
-
o: D,
|
|
1210
|
-
d(l) {
|
|
1211
|
-
l && g(e), i.d(l);
|
|
1212
|
-
}
|
|
1213
|
-
};
|
|
1214
|
-
}
|
|
1215
|
-
function xn(t, e, r) {
|
|
1216
|
-
let { src: n = null } = e, { srcWebp: i = null } = e;
|
|
1217
|
-
return t.$$set = (l) => {
|
|
1218
|
-
"src" in l && r(0, n = l.src), "srcWebp" in l && r(1, i = l.srcWebp);
|
|
1219
|
-
}, [n, i];
|
|
1220
|
-
}
|
|
1221
|
-
class pt extends C {
|
|
1222
|
-
constructor(e) {
|
|
1223
|
-
super(), U(this, e, xn, Jn, R, { src: 0, srcWebp: 1 }, Hn);
|
|
1224
|
-
}
|
|
1225
|
-
}
|
|
1226
|
-
const he = (t) => `https://da08ctfrofx1b.cloudfront.net/${t}`;
|
|
1227
|
-
function Vn(t) {
|
|
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
|
-
}
|
|
1230
|
-
function qn(t) {
|
|
1231
|
-
let e, r;
|
|
1232
|
-
return e = new pt({}), {
|
|
1233
|
-
c() {
|
|
1234
|
-
b(e.$$.fragment);
|
|
1235
|
-
},
|
|
1236
|
-
m(n, i) {
|
|
1237
|
-
I(e, n, i), r = !0;
|
|
1238
|
-
},
|
|
1239
|
-
p: D,
|
|
1240
|
-
i(n) {
|
|
1241
|
-
r || (a(e.$$.fragment, n), r = !0);
|
|
1242
|
-
},
|
|
1243
|
-
o(n) {
|
|
1244
|
-
f(e.$$.fragment, n), r = !1;
|
|
1245
|
-
},
|
|
1246
|
-
d(n) {
|
|
1247
|
-
w(e, n);
|
|
1248
|
-
}
|
|
1249
|
-
};
|
|
1250
|
-
}
|
|
1251
|
-
function Wn(t) {
|
|
1252
|
-
let e, r, n = (
|
|
1253
|
-
/*brandingInfo*/
|
|
1254
|
-
t[0].seller_company_name + ""
|
|
1255
|
-
), i, l, s = (
|
|
1256
|
-
/*brandingInfo*/
|
|
1257
|
-
t[0].app_icon_webp !== null && /*brandingInfo*/
|
|
1258
|
-
t[0].app_icon !== null && xe(t)
|
|
1259
|
-
);
|
|
1260
|
-
return {
|
|
1261
|
-
c() {
|
|
1262
|
-
s && s.c(), e = P(), r = $("span"), i = L(n), h(r, "class", "app-title svelte-1tdgim9");
|
|
1263
|
-
},
|
|
1264
|
-
m(o, c) {
|
|
1265
|
-
s && s.m(o, c), A(o, e, c), A(o, r, c), T(r, i), l = !0;
|
|
1266
|
-
},
|
|
1267
|
-
p(o, c) {
|
|
1268
|
-
/*brandingInfo*/
|
|
1269
|
-
o[0].app_icon_webp !== null && /*brandingInfo*/
|
|
1270
|
-
o[0].app_icon !== null ? s ? (s.p(o, c), c & /*brandingInfo*/
|
|
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
|
-
s = null;
|
|
1273
|
-
}), G()), (!l || c & /*brandingInfo*/
|
|
1274
|
-
1) && n !== (n = /*brandingInfo*/
|
|
1275
|
-
o[0].seller_company_name + "") && re(i, n);
|
|
1276
|
-
},
|
|
1277
|
-
i(o) {
|
|
1278
|
-
l || (a(s), l = !0);
|
|
1279
|
-
},
|
|
1280
|
-
o(o) {
|
|
1281
|
-
f(s), l = !1;
|
|
1282
|
-
},
|
|
1283
|
-
d(o) {
|
|
1284
|
-
o && (g(e), g(r)), s && s.d(o);
|
|
1285
|
-
}
|
|
1286
|
-
};
|
|
1287
|
-
}
|
|
1288
|
-
function xe(t) {
|
|
1289
|
-
let e, r;
|
|
1290
|
-
return e = new pt({
|
|
1291
|
-
props: {
|
|
1292
|
-
src: he(
|
|
1293
|
-
/*brandingInfo*/
|
|
1294
|
-
t[0].app_icon
|
|
1295
|
-
),
|
|
1296
|
-
srcWebp: he(
|
|
1297
|
-
/*brandingInfo*/
|
|
1298
|
-
t[0].app_icon_webp
|
|
1299
|
-
)
|
|
1300
|
-
}
|
|
1301
|
-
}), {
|
|
1302
|
-
c() {
|
|
1303
|
-
b(e.$$.fragment);
|
|
1304
|
-
},
|
|
1305
|
-
m(n, i) {
|
|
1306
|
-
I(e, n, i), r = !0;
|
|
1307
|
-
},
|
|
1308
|
-
p(n, i) {
|
|
1309
|
-
const l = {};
|
|
1310
|
-
i & /*brandingInfo*/
|
|
1311
|
-
1 && (l.src = he(
|
|
1312
|
-
/*brandingInfo*/
|
|
1313
|
-
n[0].app_icon
|
|
1314
|
-
)), i & /*brandingInfo*/
|
|
1315
|
-
1 && (l.srcWebp = he(
|
|
1316
|
-
/*brandingInfo*/
|
|
1317
|
-
n[0].app_icon_webp
|
|
1318
|
-
)), e.$set(l);
|
|
1319
|
-
},
|
|
1320
|
-
i(n) {
|
|
1321
|
-
r || (a(e.$$.fragment, n), r = !0);
|
|
1322
|
-
},
|
|
1323
|
-
o(n) {
|
|
1324
|
-
f(e.$$.fragment, n), r = !1;
|
|
1325
|
-
},
|
|
1326
|
-
d(n) {
|
|
1327
|
-
w(e, n);
|
|
1328
|
-
}
|
|
1329
|
-
};
|
|
1330
|
-
}
|
|
1331
|
-
function zn(t) {
|
|
1332
|
-
let e, r, n, i;
|
|
1333
|
-
const l = [Wn, qn], s = [];
|
|
1334
|
-
function o(c, u) {
|
|
1335
|
-
return (
|
|
1336
|
-
/*brandingInfo*/
|
|
1337
|
-
c[0] !== null ? 0 : 1
|
|
1338
|
-
);
|
|
1339
|
-
}
|
|
1340
|
-
return r = o(t), n = s[r] = l[r](t), {
|
|
1341
|
-
c() {
|
|
1342
|
-
e = $("div"), n.c(), h(e, "class", "rcb-header-layout__business-info svelte-1tdgim9");
|
|
1343
|
-
},
|
|
1344
|
-
m(c, u) {
|
|
1345
|
-
A(c, e, u), s[r].m(e, null), i = !0;
|
|
1346
|
-
},
|
|
1347
|
-
p(c, [u]) {
|
|
1348
|
-
let _ = r;
|
|
1349
|
-
r = o(c), r === _ ? s[r].p(c, u) : (F(), f(s[_], 1, 1, () => {
|
|
1350
|
-
s[_] = null;
|
|
1351
|
-
}), G(), n = s[r], n ? n.p(c, u) : (n = s[r] = l[r](c), n.c()), a(n, 1), n.m(e, null));
|
|
1352
|
-
},
|
|
1353
|
-
i(c) {
|
|
1354
|
-
i || (a(n), i = !0);
|
|
1355
|
-
},
|
|
1356
|
-
o(c) {
|
|
1357
|
-
f(n), i = !1;
|
|
1358
|
-
},
|
|
1359
|
-
d(c) {
|
|
1360
|
-
c && g(e), s[r].d();
|
|
1361
|
-
}
|
|
1362
|
-
};
|
|
1363
|
-
}
|
|
1364
|
-
function Xn(t, e, r) {
|
|
1365
|
-
let { brandingInfo: n = null } = e;
|
|
1366
|
-
return t.$$set = (i) => {
|
|
1367
|
-
"brandingInfo" in i && r(0, n = i.brandingInfo);
|
|
1368
|
-
}, [n];
|
|
1369
|
-
}
|
|
1370
|
-
class ht extends C {
|
|
1371
|
-
constructor(e) {
|
|
1372
|
-
super(), U(this, e, Xn, zn, R, { brandingInfo: 0 }, Vn);
|
|
1373
|
-
}
|
|
1374
|
-
}
|
|
1375
|
-
function Zn(t) {
|
|
1376
|
-
S(t, "svelte-j03lz1", ".rcb-post-purchase-header-layout.svelte-j03lz1{display:flex;justify-content:space-between;align-items:center;width:100%}");
|
|
1377
|
-
}
|
|
1378
|
-
function er(t) {
|
|
1379
|
-
let e, r, n, i, l;
|
|
1380
|
-
return r = new ht({
|
|
1381
|
-
props: { brandingInfo: (
|
|
1382
|
-
/*brandingInfo*/
|
|
1383
|
-
t[0]
|
|
1384
|
-
) }
|
|
1385
|
-
}), i = new Yn({}), i.$on("click", function() {
|
|
1386
|
-
le(
|
|
1387
|
-
/*onClose*/
|
|
1388
|
-
t[1]
|
|
1389
|
-
) && t[1].apply(this, arguments);
|
|
1390
|
-
}), {
|
|
1391
|
-
c() {
|
|
1392
|
-
e = $("div"), b(r.$$.fragment), n = P(), b(i.$$.fragment), h(e, "class", "rcb-post-purchase-header-layout svelte-j03lz1");
|
|
1393
|
-
},
|
|
1394
|
-
m(s, o) {
|
|
1395
|
-
A(s, e, o), I(r, e, null), T(e, n), I(i, e, null), l = !0;
|
|
1396
|
-
},
|
|
1397
|
-
p(s, o) {
|
|
1398
|
-
t = s;
|
|
1399
|
-
const c = {};
|
|
1400
|
-
o & /*brandingInfo*/
|
|
1401
|
-
1 && (c.brandingInfo = /*brandingInfo*/
|
|
1402
|
-
t[0]), r.$set(c);
|
|
1403
|
-
},
|
|
1404
|
-
i(s) {
|
|
1405
|
-
l || (a(r.$$.fragment, s), a(i.$$.fragment, s), l = !0);
|
|
1406
|
-
},
|
|
1407
|
-
o(s) {
|
|
1408
|
-
f(r.$$.fragment, s), f(i.$$.fragment, s), l = !1;
|
|
1409
|
-
},
|
|
1410
|
-
d(s) {
|
|
1411
|
-
s && g(e), w(r), w(i);
|
|
1412
|
-
}
|
|
1413
|
-
};
|
|
1414
|
-
}
|
|
1415
|
-
function tr(t) {
|
|
1416
|
-
let e, r;
|
|
1417
|
-
return e = new q({
|
|
1418
|
-
props: {
|
|
1419
|
-
as: "header",
|
|
1420
|
-
$$slots: { default: [er] },
|
|
1421
|
-
$$scope: { ctx: t }
|
|
1422
|
-
}
|
|
1423
|
-
}), {
|
|
1424
|
-
c() {
|
|
1425
|
-
b(e.$$.fragment);
|
|
1426
|
-
},
|
|
1427
|
-
m(n, i) {
|
|
1428
|
-
I(e, n, i), r = !0;
|
|
1429
|
-
},
|
|
1430
|
-
p(n, [i]) {
|
|
1431
|
-
const l = {};
|
|
1432
|
-
i & /*$$scope, onClose, brandingInfo*/
|
|
1433
|
-
7 && (l.$$scope = { dirty: i, ctx: n }), e.$set(l);
|
|
1434
|
-
},
|
|
1435
|
-
i(n) {
|
|
1436
|
-
r || (a(e.$$.fragment, n), r = !0);
|
|
1437
|
-
},
|
|
1438
|
-
o(n) {
|
|
1439
|
-
f(e.$$.fragment, n), r = !1;
|
|
1440
|
-
},
|
|
1441
|
-
d(n) {
|
|
1442
|
-
w(e, n);
|
|
1443
|
-
}
|
|
1444
|
-
};
|
|
1445
|
-
}
|
|
1446
|
-
function nr(t, e, r) {
|
|
1447
|
-
let { brandingInfo: n = null } = e, { onClose: i } = e;
|
|
1448
|
-
return t.$$set = (l) => {
|
|
1449
|
-
"brandingInfo" in l && r(0, n = l.brandingInfo), "onClose" in l && r(1, i = l.onClose);
|
|
1450
|
-
}, [n, i];
|
|
1451
|
-
}
|
|
1452
|
-
class Et extends C {
|
|
1453
|
-
constructor(e) {
|
|
1454
|
-
super(), U(this, e, nr, tr, R, { brandingInfo: 0, onClose: 1 }, Zn);
|
|
1455
|
-
}
|
|
1456
|
-
}
|
|
1457
|
-
function rr(t) {
|
|
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
|
-
}
|
|
1460
|
-
function Ve(t) {
|
|
1461
|
-
let e, r, n, i, l;
|
|
1462
|
-
return {
|
|
1463
|
-
c() {
|
|
1464
|
-
e = L("If this error persists, please contact "), r = $("a"), n = L(
|
|
1465
|
-
/*supportEmail*/
|
|
1466
|
-
t[1]
|
|
1467
|
-
), l = L("."), h(r, "href", i = "mailto:" + /*supportEmail*/
|
|
1468
|
-
t[1]);
|
|
1469
|
-
},
|
|
1470
|
-
m(s, o) {
|
|
1471
|
-
A(s, e, o), A(s, r, o), T(r, n), A(s, l, o);
|
|
1472
|
-
},
|
|
1473
|
-
p(s, o) {
|
|
1474
|
-
o & /*supportEmail*/
|
|
1475
|
-
2 && re(
|
|
1476
|
-
n,
|
|
1477
|
-
/*supportEmail*/
|
|
1478
|
-
s[1]
|
|
1479
|
-
), o & /*supportEmail*/
|
|
1480
|
-
2 && i !== (i = "mailto:" + /*supportEmail*/
|
|
1481
|
-
s[1]) && h(r, "href", i);
|
|
1482
|
-
},
|
|
1483
|
-
d(s) {
|
|
1484
|
-
s && (g(e), g(r), g(l));
|
|
1485
|
-
}
|
|
1486
|
-
};
|
|
1487
|
-
}
|
|
1488
|
-
function ir(t) {
|
|
1489
|
-
let e, r, n, i = (
|
|
1490
|
-
/*getErrorMessage*/
|
|
1491
|
-
t[3]() + ""
|
|
1492
|
-
), l, s, o = (
|
|
1493
|
-
/*supportEmail*/
|
|
1494
|
-
t[1] && Ve(t)
|
|
1495
|
-
);
|
|
1496
|
-
return {
|
|
1497
|
-
c() {
|
|
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
|
-
},
|
|
1500
|
-
m(c, 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
|
-
},
|
|
1503
|
-
p(c, u) {
|
|
1504
|
-
/*supportEmail*/
|
|
1505
|
-
c[1] ? o ? o.p(c, u) : (o = Ve(c), o.c(), o.m(n, null)) : o && (o.d(1), o = null);
|
|
1506
|
-
},
|
|
1507
|
-
d(c) {
|
|
1508
|
-
c && (g(e), g(r), g(n)), o && o.d();
|
|
1509
|
-
}
|
|
1510
|
-
};
|
|
1511
|
-
}
|
|
1512
|
-
function lr(t) {
|
|
1513
|
-
let e, r, n, i;
|
|
1514
|
-
return e = new Rn({}), n = new Z({
|
|
1515
|
-
props: {
|
|
1516
|
-
gutter: "1rem",
|
|
1517
|
-
$$slots: { default: [ir] },
|
|
1518
|
-
$$scope: { ctx: t }
|
|
1519
|
-
}
|
|
1520
|
-
}), {
|
|
1521
|
-
c() {
|
|
1522
|
-
b(e.$$.fragment), r = P(), b(n.$$.fragment);
|
|
1523
|
-
},
|
|
1524
|
-
m(l, s) {
|
|
1525
|
-
I(e, l, s), A(l, r, s), I(n, l, s), i = !0;
|
|
1526
|
-
},
|
|
1527
|
-
p(l, s) {
|
|
1528
|
-
const o = {};
|
|
1529
|
-
s & /*$$scope, supportEmail*/
|
|
1530
|
-
34 && (o.$$scope = { dirty: s, ctx: l }), n.$set(o);
|
|
1531
|
-
},
|
|
1532
|
-
i(l) {
|
|
1533
|
-
i || (a(e.$$.fragment, l), a(n.$$.fragment, l), i = !0);
|
|
1534
|
-
},
|
|
1535
|
-
o(l) {
|
|
1536
|
-
f(e.$$.fragment, l), f(n.$$.fragment, l), i = !1;
|
|
1537
|
-
},
|
|
1538
|
-
d(l) {
|
|
1539
|
-
l && g(r), w(e, l), w(n, l);
|
|
1540
|
-
}
|
|
1541
|
-
};
|
|
1542
|
-
}
|
|
1543
|
-
function sr(t) {
|
|
1544
|
-
let e, r, n;
|
|
1545
|
-
return r = new Z({
|
|
1546
|
-
props: {
|
|
1547
|
-
gutter: "1rem",
|
|
1548
|
-
$$slots: { default: [lr] },
|
|
1549
|
-
$$scope: { ctx: t }
|
|
1550
|
-
}
|
|
1551
|
-
}), {
|
|
1552
|
-
c() {
|
|
1553
|
-
e = $("div"), b(r.$$.fragment), h(e, "class", "rcb-modal-error svelte-ahi052");
|
|
1554
|
-
},
|
|
1555
|
-
m(i, l) {
|
|
1556
|
-
A(i, e, l), I(r, e, null), n = !0;
|
|
1557
|
-
},
|
|
1558
|
-
p(i, l) {
|
|
1559
|
-
const s = {};
|
|
1560
|
-
l & /*$$scope, supportEmail*/
|
|
1561
|
-
34 && (s.$$scope = { dirty: l, ctx: i }), r.$set(s);
|
|
1562
|
-
},
|
|
1563
|
-
i(i) {
|
|
1564
|
-
n || (a(r.$$.fragment, i), n = !0);
|
|
1565
|
-
},
|
|
1566
|
-
o(i) {
|
|
1567
|
-
f(r.$$.fragment, i), n = !1;
|
|
1568
|
-
},
|
|
1569
|
-
d(i) {
|
|
1570
|
-
i && g(e), w(r);
|
|
1571
|
-
}
|
|
1572
|
-
};
|
|
1573
|
-
}
|
|
1574
|
-
function or(t) {
|
|
1575
|
-
let e;
|
|
1576
|
-
return {
|
|
1577
|
-
c() {
|
|
1578
|
-
e = L("Go back to app");
|
|
1579
|
-
},
|
|
1580
|
-
m(r, n) {
|
|
1581
|
-
A(r, e, n);
|
|
1582
|
-
},
|
|
1583
|
-
d(r) {
|
|
1584
|
-
r && g(e);
|
|
1585
|
-
}
|
|
1586
|
-
};
|
|
1587
|
-
}
|
|
1588
|
-
function cr(t) {
|
|
1589
|
-
let e, r;
|
|
1590
|
-
return e = new ge({
|
|
1591
|
-
props: {
|
|
1592
|
-
$$slots: { default: [or] },
|
|
1593
|
-
$$scope: { ctx: t }
|
|
1594
|
-
}
|
|
1595
|
-
}), e.$on("click", function() {
|
|
1596
|
-
le(
|
|
1597
|
-
/*onContinue*/
|
|
1598
|
-
t[2]
|
|
1599
|
-
) && t[2].apply(this, arguments);
|
|
1600
|
-
}), {
|
|
1601
|
-
c() {
|
|
1602
|
-
b(e.$$.fragment);
|
|
1603
|
-
},
|
|
1604
|
-
m(n, i) {
|
|
1605
|
-
I(e, n, i), r = !0;
|
|
1606
|
-
},
|
|
1607
|
-
p(n, i) {
|
|
1608
|
-
t = n;
|
|
1609
|
-
const l = {};
|
|
1610
|
-
i & /*$$scope*/
|
|
1611
|
-
32 && (l.$$scope = { dirty: i, ctx: t }), e.$set(l);
|
|
1612
|
-
},
|
|
1613
|
-
i(n) {
|
|
1614
|
-
r || (a(e.$$.fragment, n), r = !0);
|
|
1615
|
-
},
|
|
1616
|
-
o(n) {
|
|
1617
|
-
f(e.$$.fragment, n), r = !1;
|
|
1618
|
-
},
|
|
1619
|
-
d(n) {
|
|
1620
|
-
w(e, n);
|
|
1621
|
-
}
|
|
1622
|
-
};
|
|
1623
|
-
}
|
|
1624
|
-
function ar(t) {
|
|
1625
|
-
let e, r, n, i, l, s;
|
|
1626
|
-
return e = new Et({
|
|
1627
|
-
props: {
|
|
1628
|
-
brandingInfo: (
|
|
1629
|
-
/*brandingInfo*/
|
|
1630
|
-
t[0]
|
|
1631
|
-
),
|
|
1632
|
-
onClose: (
|
|
1633
|
-
/*onContinue*/
|
|
1634
|
-
t[2]
|
|
1635
|
-
)
|
|
1636
|
-
}
|
|
1637
|
-
}), n = new q({
|
|
1638
|
-
props: {
|
|
1639
|
-
$$slots: { default: [sr] },
|
|
1640
|
-
$$scope: { ctx: t }
|
|
1641
|
-
}
|
|
1642
|
-
}), l = new Me({
|
|
1643
|
-
props: {
|
|
1644
|
-
$$slots: { default: [cr] },
|
|
1645
|
-
$$scope: { ctx: t }
|
|
1646
|
-
}
|
|
1647
|
-
}), {
|
|
1648
|
-
c() {
|
|
1649
|
-
b(e.$$.fragment), r = P(), b(n.$$.fragment), i = P(), b(l.$$.fragment);
|
|
1650
|
-
},
|
|
1651
|
-
m(o, c) {
|
|
1652
|
-
I(e, o, c), A(o, r, c), I(n, o, c), A(o, i, c), I(l, o, c), s = !0;
|
|
1653
|
-
},
|
|
1654
|
-
p(o, c) {
|
|
1655
|
-
const u = {};
|
|
1656
|
-
c & /*brandingInfo*/
|
|
1657
|
-
1 && (u.brandingInfo = /*brandingInfo*/
|
|
1658
|
-
o[0]), c & /*onContinue*/
|
|
1659
|
-
4 && (u.onClose = /*onContinue*/
|
|
1660
|
-
o[2]), e.$set(u);
|
|
1661
|
-
const _ = {};
|
|
1662
|
-
c & /*$$scope, supportEmail*/
|
|
1663
|
-
34 && (_.$$scope = { dirty: c, ctx: o }), n.$set(_);
|
|
1664
|
-
const m = {};
|
|
1665
|
-
c & /*$$scope, onContinue*/
|
|
1666
|
-
36 && (m.$$scope = { dirty: c, ctx: o }), l.$set(m);
|
|
1667
|
-
},
|
|
1668
|
-
i(o) {
|
|
1669
|
-
s || (a(e.$$.fragment, o), a(n.$$.fragment, o), a(l.$$.fragment, o), s = !0);
|
|
1670
|
-
},
|
|
1671
|
-
o(o) {
|
|
1672
|
-
f(e.$$.fragment, o), f(n.$$.fragment, o), f(l.$$.fragment, o), s = !1;
|
|
1673
|
-
},
|
|
1674
|
-
d(o) {
|
|
1675
|
-
o && (g(r), g(i)), w(e, o), w(n, o), w(l, o);
|
|
1676
|
-
}
|
|
1677
|
-
};
|
|
1678
|
-
}
|
|
1679
|
-
function ur(t) {
|
|
1680
|
-
let e, r;
|
|
1681
|
-
return e = new Z({
|
|
1682
|
-
props: {
|
|
1683
|
-
gutter: "2rem",
|
|
1684
|
-
$$slots: { default: [ar] },
|
|
1685
|
-
$$scope: { ctx: t }
|
|
1686
|
-
}
|
|
1687
|
-
}), {
|
|
1688
|
-
c() {
|
|
1689
|
-
b(e.$$.fragment);
|
|
1690
|
-
},
|
|
1691
|
-
m(n, i) {
|
|
1692
|
-
I(e, n, i), r = !0;
|
|
1693
|
-
},
|
|
1694
|
-
p(n, [i]) {
|
|
1695
|
-
const l = {};
|
|
1696
|
-
i & /*$$scope, onContinue, supportEmail, brandingInfo*/
|
|
1697
|
-
39 && (l.$$scope = { dirty: i, ctx: n }), e.$set(l);
|
|
1698
|
-
},
|
|
1699
|
-
i(n) {
|
|
1700
|
-
r || (a(e.$$.fragment, n), r = !0);
|
|
1701
|
-
},
|
|
1702
|
-
o(n) {
|
|
1703
|
-
f(e.$$.fragment, n), r = !1;
|
|
1704
|
-
},
|
|
1705
|
-
d(n) {
|
|
1706
|
-
w(e, n);
|
|
1707
|
-
}
|
|
1708
|
-
};
|
|
1709
|
-
}
|
|
1710
|
-
function fr(t, e, r) {
|
|
1711
|
-
let { brandingInfo: n = null } = e, { lastError: i } = e, { supportEmail: l = null } = e, { onContinue: s } = e;
|
|
1712
|
-
ve(() => {
|
|
1713
|
-
console.debug(`Displayed error: ${O[i.errorCode]}. Message: ${i.message ?? "None"}. Underlying error: ${i.underlyingErrorMessage ?? "None"}`);
|
|
1714
|
-
});
|
|
1715
|
-
function o() {
|
|
1716
|
-
switch (i.errorCode) {
|
|
1717
|
-
case O.UnknownError:
|
|
1718
|
-
return "An unknown error occurred.";
|
|
1719
|
-
case O.ErrorSettingUpPurchase:
|
|
1720
|
-
return "Purchase not started due to an error.";
|
|
1721
|
-
case O.ErrorChargingPayment:
|
|
1722
|
-
return "Payment failed.";
|
|
1723
|
-
case O.NetworkError:
|
|
1724
|
-
return "Network error. Please check your internet connection.";
|
|
1725
|
-
case O.StripeError:
|
|
1726
|
-
return i.message;
|
|
1727
|
-
case O.MissingEmailError:
|
|
1728
|
-
return "Email is required to complete the purchase.";
|
|
1729
|
-
}
|
|
1730
|
-
return i.message;
|
|
1731
|
-
}
|
|
1732
|
-
return t.$$set = (c) => {
|
|
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
|
-
}, [n, l, s, o, i];
|
|
1735
|
-
}
|
|
1736
|
-
class dr extends C {
|
|
1737
|
-
constructor(e) {
|
|
1738
|
-
super(), U(
|
|
1739
|
-
this,
|
|
1740
|
-
e,
|
|
1741
|
-
fr,
|
|
1742
|
-
ur,
|
|
1743
|
-
R,
|
|
1744
|
-
{
|
|
1745
|
-
brandingInfo: 0,
|
|
1746
|
-
lastError: 4,
|
|
1747
|
-
supportEmail: 1,
|
|
1748
|
-
onContinue: 2
|
|
1749
|
-
},
|
|
1750
|
-
rr
|
|
1751
|
-
);
|
|
1752
|
-
}
|
|
1753
|
-
}
|
|
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
|
-
S(t, "svelte-7khg4b", "img.svelte-7khg4b{width:7.75rem;height:7.75rem;margin:0 auto}");
|
|
1757
|
-
}
|
|
1758
|
-
function Ar(t) {
|
|
1759
|
-
let e, r;
|
|
1760
|
-
return {
|
|
1761
|
-
c() {
|
|
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
|
-
},
|
|
1764
|
-
m(n, i) {
|
|
1765
|
-
A(n, e, i);
|
|
1766
|
-
},
|
|
1767
|
-
p: D,
|
|
1768
|
-
i: D,
|
|
1769
|
-
o: D,
|
|
1770
|
-
d(n) {
|
|
1771
|
-
n && g(e);
|
|
1772
|
-
}
|
|
1773
|
-
};
|
|
1774
|
-
}
|
|
1775
|
-
class _r extends C {
|
|
1776
|
-
constructor(e) {
|
|
1777
|
-
super(), U(this, e, null, Ar, R, {}, gr);
|
|
1778
|
-
}
|
|
1779
|
-
}
|
|
1780
|
-
function pr(t) {
|
|
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
|
-
}
|
|
1783
|
-
function hr(t) {
|
|
1784
|
-
let e, r, n;
|
|
1785
|
-
return {
|
|
1786
|
-
c() {
|
|
1787
|
-
e = $("span"), e.textContent = "Purchase Successful", r = P(), n = $("span"), n.textContent = "Your plan is now active.", h(e, "class", "title svelte-1lcsna9"), h(n, "class", "subtitle svelte-1lcsna9");
|
|
1788
|
-
},
|
|
1789
|
-
m(i, l) {
|
|
1790
|
-
A(i, e, l), A(i, r, l), A(i, n, l);
|
|
1791
|
-
},
|
|
1792
|
-
p: D,
|
|
1793
|
-
d(i) {
|
|
1794
|
-
i && (g(e), g(r), g(n));
|
|
1795
|
-
}
|
|
1796
|
-
};
|
|
1797
|
-
}
|
|
1798
|
-
function Er(t) {
|
|
1799
|
-
let e, r, n, i;
|
|
1800
|
-
return e = new _r({}), n = new Z({
|
|
1801
|
-
props: {
|
|
1802
|
-
gutter: "1rem",
|
|
1803
|
-
$$slots: { default: [hr] },
|
|
1804
|
-
$$scope: { ctx: t }
|
|
1805
|
-
}
|
|
1806
|
-
}), {
|
|
1807
|
-
c() {
|
|
1808
|
-
b(e.$$.fragment), r = P(), b(n.$$.fragment);
|
|
1809
|
-
},
|
|
1810
|
-
m(l, s) {
|
|
1811
|
-
I(e, l, s), A(l, r, s), I(n, l, s), i = !0;
|
|
1812
|
-
},
|
|
1813
|
-
p(l, s) {
|
|
1814
|
-
const o = {};
|
|
1815
|
-
s & /*$$scope*/
|
|
1816
|
-
4 && (o.$$scope = { dirty: s, ctx: l }), n.$set(o);
|
|
1817
|
-
},
|
|
1818
|
-
i(l) {
|
|
1819
|
-
i || (a(e.$$.fragment, l), a(n.$$.fragment, l), i = !0);
|
|
1820
|
-
},
|
|
1821
|
-
o(l) {
|
|
1822
|
-
f(e.$$.fragment, l), f(n.$$.fragment, l), i = !1;
|
|
1823
|
-
},
|
|
1824
|
-
d(l) {
|
|
1825
|
-
l && g(r), w(e, l), w(n, l);
|
|
1826
|
-
}
|
|
1827
|
-
};
|
|
1828
|
-
}
|
|
1829
|
-
function Ir(t) {
|
|
1830
|
-
let e, r, n;
|
|
1831
|
-
return r = new Z({
|
|
1832
|
-
props: {
|
|
1833
|
-
gutter: "1rem",
|
|
1834
|
-
$$slots: { default: [Er] },
|
|
1835
|
-
$$scope: { ctx: t }
|
|
1836
|
-
}
|
|
1837
|
-
}), {
|
|
1838
|
-
c() {
|
|
1839
|
-
e = $("div"), b(r.$$.fragment), h(e, "class", "rcb-modal-success svelte-1lcsna9");
|
|
1840
|
-
},
|
|
1841
|
-
m(i, l) {
|
|
1842
|
-
A(i, e, l), I(r, e, null), n = !0;
|
|
1843
|
-
},
|
|
1844
|
-
p(i, l) {
|
|
1845
|
-
const s = {};
|
|
1846
|
-
l & /*$$scope*/
|
|
1847
|
-
4 && (s.$$scope = { dirty: l, ctx: i }), r.$set(s);
|
|
1848
|
-
},
|
|
1849
|
-
i(i) {
|
|
1850
|
-
n || (a(r.$$.fragment, i), n = !0);
|
|
1851
|
-
},
|
|
1852
|
-
o(i) {
|
|
1853
|
-
f(r.$$.fragment, i), n = !1;
|
|
1854
|
-
},
|
|
1855
|
-
d(i) {
|
|
1856
|
-
i && g(e), w(r);
|
|
1857
|
-
}
|
|
1858
|
-
};
|
|
1859
|
-
}
|
|
1860
|
-
function wr(t) {
|
|
1861
|
-
let e;
|
|
1862
|
-
return {
|
|
1863
|
-
c() {
|
|
1864
|
-
e = L("Go back to app");
|
|
1865
|
-
},
|
|
1866
|
-
m(r, n) {
|
|
1867
|
-
A(r, e, n);
|
|
1868
|
-
},
|
|
1869
|
-
d(r) {
|
|
1870
|
-
r && g(e);
|
|
1871
|
-
}
|
|
1872
|
-
};
|
|
1873
|
-
}
|
|
1874
|
-
function br(t) {
|
|
1875
|
-
let e, r;
|
|
1876
|
-
return e = new ge({
|
|
1877
|
-
props: {
|
|
1878
|
-
$$slots: { default: [wr] },
|
|
1879
|
-
$$scope: { ctx: t }
|
|
1880
|
-
}
|
|
1881
|
-
}), e.$on("click", function() {
|
|
1882
|
-
le(
|
|
1883
|
-
/*onContinue*/
|
|
1884
|
-
t[1]
|
|
1885
|
-
) && t[1].apply(this, arguments);
|
|
1886
|
-
}), {
|
|
1887
|
-
c() {
|
|
1888
|
-
b(e.$$.fragment);
|
|
1889
|
-
},
|
|
1890
|
-
m(n, i) {
|
|
1891
|
-
I(e, n, i), r = !0;
|
|
1892
|
-
},
|
|
1893
|
-
p(n, i) {
|
|
1894
|
-
t = n;
|
|
1895
|
-
const l = {};
|
|
1896
|
-
i & /*$$scope*/
|
|
1897
|
-
4 && (l.$$scope = { dirty: i, ctx: t }), e.$set(l);
|
|
1898
|
-
},
|
|
1899
|
-
i(n) {
|
|
1900
|
-
r || (a(e.$$.fragment, n), r = !0);
|
|
1901
|
-
},
|
|
1902
|
-
o(n) {
|
|
1903
|
-
f(e.$$.fragment, n), r = !1;
|
|
1904
|
-
},
|
|
1905
|
-
d(n) {
|
|
1906
|
-
w(e, n);
|
|
1907
|
-
}
|
|
1908
|
-
};
|
|
1909
|
-
}
|
|
1910
|
-
function $r(t) {
|
|
1911
|
-
let e, r, n, i, l, s;
|
|
1912
|
-
return e = new Et({
|
|
1913
|
-
props: {
|
|
1914
|
-
brandingInfo: (
|
|
1915
|
-
/*brandingInfo*/
|
|
1916
|
-
t[0]
|
|
1917
|
-
),
|
|
1918
|
-
onClose: (
|
|
1919
|
-
/*onContinue*/
|
|
1920
|
-
t[1]
|
|
1921
|
-
)
|
|
1922
|
-
}
|
|
1923
|
-
}), n = new q({
|
|
1924
|
-
props: {
|
|
1925
|
-
$$slots: { default: [Ir] },
|
|
1926
|
-
$$scope: { ctx: t }
|
|
1927
|
-
}
|
|
1928
|
-
}), l = new Me({
|
|
1929
|
-
props: {
|
|
1930
|
-
$$slots: { default: [br] },
|
|
1931
|
-
$$scope: { ctx: t }
|
|
1932
|
-
}
|
|
1933
|
-
}), {
|
|
1934
|
-
c() {
|
|
1935
|
-
b(e.$$.fragment), r = P(), b(n.$$.fragment), i = P(), b(l.$$.fragment);
|
|
1936
|
-
},
|
|
1937
|
-
m(o, c) {
|
|
1938
|
-
I(e, o, c), A(o, r, c), I(n, o, c), A(o, i, c), I(l, o, c), s = !0;
|
|
1939
|
-
},
|
|
1940
|
-
p(o, c) {
|
|
1941
|
-
const u = {};
|
|
1942
|
-
c & /*brandingInfo*/
|
|
1943
|
-
1 && (u.brandingInfo = /*brandingInfo*/
|
|
1944
|
-
o[0]), c & /*onContinue*/
|
|
1945
|
-
2 && (u.onClose = /*onContinue*/
|
|
1946
|
-
o[1]), e.$set(u);
|
|
1947
|
-
const _ = {};
|
|
1948
|
-
c & /*$$scope*/
|
|
1949
|
-
4 && (_.$$scope = { dirty: c, ctx: o }), n.$set(_);
|
|
1950
|
-
const m = {};
|
|
1951
|
-
c & /*$$scope, onContinue*/
|
|
1952
|
-
6 && (m.$$scope = { dirty: c, ctx: o }), l.$set(m);
|
|
1953
|
-
},
|
|
1954
|
-
i(o) {
|
|
1955
|
-
s || (a(e.$$.fragment, o), a(n.$$.fragment, o), a(l.$$.fragment, o), s = !0);
|
|
1956
|
-
},
|
|
1957
|
-
o(o) {
|
|
1958
|
-
f(e.$$.fragment, o), f(n.$$.fragment, o), f(l.$$.fragment, o), s = !1;
|
|
1959
|
-
},
|
|
1960
|
-
d(o) {
|
|
1961
|
-
o && (g(r), g(i)), w(e, o), w(n, o), w(l, o);
|
|
1962
|
-
}
|
|
1963
|
-
};
|
|
1964
|
-
}
|
|
1965
|
-
function Br(t) {
|
|
1966
|
-
let e, r;
|
|
1967
|
-
return e = new Z({
|
|
1968
|
-
props: {
|
|
1969
|
-
gutter: "2rem",
|
|
1970
|
-
$$slots: { default: [$r] },
|
|
1971
|
-
$$scope: { ctx: t }
|
|
1972
|
-
}
|
|
1973
|
-
}), {
|
|
1974
|
-
c() {
|
|
1975
|
-
b(e.$$.fragment);
|
|
1976
|
-
},
|
|
1977
|
-
m(n, i) {
|
|
1978
|
-
I(e, n, i), r = !0;
|
|
1979
|
-
},
|
|
1980
|
-
p(n, [i]) {
|
|
1981
|
-
const l = {};
|
|
1982
|
-
i & /*$$scope, onContinue, brandingInfo*/
|
|
1983
|
-
7 && (l.$$scope = { dirty: i, ctx: n }), e.$set(l);
|
|
1984
|
-
},
|
|
1985
|
-
i(n) {
|
|
1986
|
-
r || (a(e.$$.fragment, n), r = !0);
|
|
1987
|
-
},
|
|
1988
|
-
o(n) {
|
|
1989
|
-
f(e.$$.fragment, n), r = !1;
|
|
1990
|
-
},
|
|
1991
|
-
d(n) {
|
|
1992
|
-
w(e, n);
|
|
1993
|
-
}
|
|
1994
|
-
};
|
|
1995
|
-
}
|
|
1996
|
-
function kr(t, e, r) {
|
|
1997
|
-
let { brandingInfo: n = null } = e, { onContinue: i } = e;
|
|
1998
|
-
return t.$$set = (l) => {
|
|
1999
|
-
"brandingInfo" in l && r(0, n = l.brandingInfo), "onContinue" in l && r(1, i = l.onContinue);
|
|
2000
|
-
}, [n, i];
|
|
2001
|
-
}
|
|
2002
|
-
class yr extends C {
|
|
2003
|
-
constructor(e) {
|
|
2004
|
-
super(), U(this, e, kr, Br, R, { brandingInfo: 0, onContinue: 1 }, pr);
|
|
2005
|
-
}
|
|
2006
|
-
}
|
|
2007
|
-
function Dr(t, e, r, n, i = {}) {
|
|
2008
|
-
const l = r.create(e, i);
|
|
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
|
-
}
|
|
2011
|
-
const vr = typeof window > "u";
|
|
2012
|
-
function Qr(t) {
|
|
2013
|
-
if (!vr)
|
|
2014
|
-
return t.registerAppInfo({
|
|
2015
|
-
name: "svelte-stripe-js",
|
|
2016
|
-
url: "https://svelte-stripe-js.vercel.app"
|
|
2017
|
-
});
|
|
2018
|
-
}
|
|
2019
|
-
function Mr(t) {
|
|
2020
|
-
let e;
|
|
2021
|
-
return {
|
|
2022
|
-
c() {
|
|
2023
|
-
e = $("div");
|
|
2024
|
-
},
|
|
2025
|
-
m(r, n) {
|
|
2026
|
-
A(r, e, n), t[6](e);
|
|
2027
|
-
},
|
|
2028
|
-
p: D,
|
|
2029
|
-
i: D,
|
|
2030
|
-
o: D,
|
|
2031
|
-
d(r) {
|
|
2032
|
-
r && g(e), t[6](null);
|
|
2033
|
-
}
|
|
2034
|
-
};
|
|
2035
|
-
}
|
|
2036
|
-
function Tr(t, e, r) {
|
|
2037
|
-
let n, i;
|
|
2038
|
-
const l = Wt(), { elements: s } = Xt("stripe");
|
|
2039
|
-
let { options: o = void 0 } = e;
|
|
2040
|
-
ve(() => (n = Dr(i, "payment", s, l, o), () => n.destroy()));
|
|
2041
|
-
function c() {
|
|
2042
|
-
n.blur();
|
|
2043
|
-
}
|
|
2044
|
-
function u() {
|
|
2045
|
-
n.clear();
|
|
2046
|
-
}
|
|
2047
|
-
function _() {
|
|
2048
|
-
n.destroy();
|
|
2049
|
-
}
|
|
2050
|
-
function m() {
|
|
2051
|
-
n.focus();
|
|
2052
|
-
}
|
|
2053
|
-
function B(k) {
|
|
2054
|
-
ke[k ? "unshift" : "push"](() => {
|
|
2055
|
-
i = k, r(0, i);
|
|
2056
|
-
});
|
|
2057
|
-
}
|
|
2058
|
-
return t.$$set = (k) => {
|
|
2059
|
-
"options" in k && r(1, o = k.options);
|
|
2060
|
-
}, [i, o, c, u, _, m, B];
|
|
2061
|
-
}
|
|
2062
|
-
class Pr extends C {
|
|
2063
|
-
constructor(e) {
|
|
2064
|
-
super(), U(this, e, Tr, Mr, R, {
|
|
2065
|
-
options: 1,
|
|
2066
|
-
blur: 2,
|
|
2067
|
-
clear: 3,
|
|
2068
|
-
destroy: 4,
|
|
2069
|
-
focus: 5
|
|
2070
|
-
});
|
|
2071
|
-
}
|
|
2072
|
-
get blur() {
|
|
2073
|
-
return this.$$.ctx[2];
|
|
2074
|
-
}
|
|
2075
|
-
get clear() {
|
|
2076
|
-
return this.$$.ctx[3];
|
|
2077
|
-
}
|
|
2078
|
-
get destroy() {
|
|
2079
|
-
return this.$$.ctx[4];
|
|
2080
|
-
}
|
|
2081
|
-
get focus() {
|
|
2082
|
-
return this.$$.ctx[5];
|
|
2083
|
-
}
|
|
2084
|
-
}
|
|
2085
|
-
function qe(t) {
|
|
2086
|
-
let e;
|
|
2087
|
-
const r = (
|
|
2088
|
-
/*#slots*/
|
|
2089
|
-
t[15].default
|
|
2090
|
-
), n = K(
|
|
2091
|
-
r,
|
|
2092
|
-
t,
|
|
2093
|
-
/*$$scope*/
|
|
2094
|
-
t[14],
|
|
2095
|
-
null
|
|
2096
|
-
);
|
|
2097
|
-
return {
|
|
2098
|
-
c() {
|
|
2099
|
-
n && n.c();
|
|
2100
|
-
},
|
|
2101
|
-
m(i, l) {
|
|
2102
|
-
n && n.m(i, l), e = !0;
|
|
2103
|
-
},
|
|
2104
|
-
p(i, l) {
|
|
2105
|
-
n && n.p && (!e || l & /*$$scope*/
|
|
2106
|
-
16384) && J(
|
|
2107
|
-
n,
|
|
2108
|
-
r,
|
|
2109
|
-
i,
|
|
2110
|
-
/*$$scope*/
|
|
2111
|
-
i[14],
|
|
2112
|
-
e ? j(
|
|
2113
|
-
r,
|
|
2114
|
-
/*$$scope*/
|
|
2115
|
-
i[14],
|
|
2116
|
-
l,
|
|
2117
|
-
null
|
|
2118
|
-
) : x(
|
|
2119
|
-
/*$$scope*/
|
|
2120
|
-
i[14]
|
|
2121
|
-
),
|
|
2122
|
-
null
|
|
2123
|
-
);
|
|
2124
|
-
},
|
|
2125
|
-
i(i) {
|
|
2126
|
-
e || (a(n, i), e = !0);
|
|
2127
|
-
},
|
|
2128
|
-
o(i) {
|
|
2129
|
-
f(n, i), e = !1;
|
|
2130
|
-
},
|
|
2131
|
-
d(i) {
|
|
2132
|
-
n && n.d(i);
|
|
2133
|
-
}
|
|
2134
|
-
};
|
|
2135
|
-
}
|
|
2136
|
-
function Nr(t) {
|
|
2137
|
-
let e, r, n = (
|
|
2138
|
-
/*stripe*/
|
|
2139
|
-
t[1] && /*elements*/
|
|
2140
|
-
t[0] && qe(t)
|
|
2141
|
-
);
|
|
2142
|
-
return {
|
|
2143
|
-
c() {
|
|
2144
|
-
n && n.c(), e = X();
|
|
2145
|
-
},
|
|
2146
|
-
m(i, l) {
|
|
2147
|
-
n && n.m(i, l), A(i, e, l), r = !0;
|
|
2148
|
-
},
|
|
2149
|
-
p(i, [l]) {
|
|
2150
|
-
/*stripe*/
|
|
2151
|
-
i[1] && /*elements*/
|
|
2152
|
-
i[0] ? n ? (n.p(i, l), l & /*stripe, elements*/
|
|
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
|
-
n = null;
|
|
2155
|
-
}), G());
|
|
2156
|
-
},
|
|
2157
|
-
i(i) {
|
|
2158
|
-
r || (a(n), r = !0);
|
|
2159
|
-
},
|
|
2160
|
-
o(i) {
|
|
2161
|
-
f(n), r = !1;
|
|
2162
|
-
},
|
|
2163
|
-
d(i) {
|
|
2164
|
-
i && g(e), n && n.d(i);
|
|
2165
|
-
}
|
|
2166
|
-
};
|
|
2167
|
-
}
|
|
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
|
-
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, 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
|
-
}, t.$$.update = () => {
|
|
2173
|
-
t.$$.dirty & /*theme, variables, rules, labels*/
|
|
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
|
-
16263 && s && !d && (r(0, d = s.elements({
|
|
2176
|
-
mode: o,
|
|
2177
|
-
currency: y,
|
|
2178
|
-
amount: M,
|
|
2179
|
-
appearance: n,
|
|
2180
|
-
clientSecret: N,
|
|
2181
|
-
fonts: k,
|
|
2182
|
-
loader: B,
|
|
2183
|
-
locale: E
|
|
2184
|
-
})), Qr(s), zt("stripe", { stripe: s, elements: d })), t.$$.dirty & /*elements, appearance, locale*/
|
|
2185
|
-
8705 && d && d.update({ appearance: n, locale: E });
|
|
2186
|
-
}, [
|
|
2187
|
-
d,
|
|
2188
|
-
s,
|
|
2189
|
-
o,
|
|
2190
|
-
c,
|
|
2191
|
-
u,
|
|
2192
|
-
_,
|
|
2193
|
-
m,
|
|
2194
|
-
B,
|
|
2195
|
-
k,
|
|
2196
|
-
E,
|
|
2197
|
-
y,
|
|
2198
|
-
M,
|
|
2199
|
-
N,
|
|
2200
|
-
n,
|
|
2201
|
-
l,
|
|
2202
|
-
i
|
|
2203
|
-
];
|
|
2204
|
-
}
|
|
2205
|
-
class Ur extends C {
|
|
2206
|
-
constructor(e) {
|
|
2207
|
-
super(), U(this, e, Rr, Nr, R, {
|
|
2208
|
-
stripe: 1,
|
|
2209
|
-
mode: 2,
|
|
2210
|
-
theme: 3,
|
|
2211
|
-
variables: 4,
|
|
2212
|
-
rules: 5,
|
|
2213
|
-
labels: 6,
|
|
2214
|
-
loader: 7,
|
|
2215
|
-
fonts: 8,
|
|
2216
|
-
locale: 9,
|
|
2217
|
-
currency: 10,
|
|
2218
|
-
amount: 11,
|
|
2219
|
-
clientSecret: 12,
|
|
2220
|
-
elements: 0
|
|
2221
|
-
});
|
|
2222
|
-
}
|
|
2223
|
-
}
|
|
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
|
-
var n = e[r];
|
|
2227
|
-
if (Cr.test(n.src))
|
|
2228
|
-
return n;
|
|
2229
|
-
}
|
|
2230
|
-
return null;
|
|
2231
|
-
}, ze = function(e) {
|
|
2232
|
-
var r = e && !e.advancedFraudSignals ? "?advancedFraudSignals=false" : "", n = document.createElement("script");
|
|
2233
|
-
n.src = "".concat(It).concat(r);
|
|
2234
|
-
var i = document.head || document.body;
|
|
2235
|
-
if (!i)
|
|
2236
|
-
throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
|
|
2237
|
-
return i.appendChild(n), n;
|
|
2238
|
-
}, Sr = function(e, r) {
|
|
2239
|
-
!e || !e._registerWrapper || e._registerWrapper({
|
|
2240
|
-
name: "stripe-js",
|
|
2241
|
-
version: "2.3.0",
|
|
2242
|
-
startTime: r
|
|
2243
|
-
});
|
|
2244
|
-
}, ce = null, Ee = null, Ie = null, Lr = function(e) {
|
|
2245
|
-
return function() {
|
|
2246
|
-
e(new Error("Failed to load Stripe.js"));
|
|
2247
|
-
};
|
|
2248
|
-
}, Fr = function(e, r) {
|
|
2249
|
-
return function() {
|
|
2250
|
-
window.Stripe ? e(window.Stripe) : r(new Error("Stripe.js not available"));
|
|
2251
|
-
};
|
|
2252
|
-
}, Gr = function(e) {
|
|
2253
|
-
return ce !== null ? ce : (ce = new Promise(function(r, n) {
|
|
2254
|
-
if (typeof window > "u" || typeof document > "u") {
|
|
2255
|
-
r(null);
|
|
2256
|
-
return;
|
|
2257
|
-
}
|
|
2258
|
-
if (window.Stripe && e && console.warn(We), window.Stripe) {
|
|
2259
|
-
r(window.Stripe);
|
|
2260
|
-
return;
|
|
2261
|
-
}
|
|
2262
|
-
try {
|
|
2263
|
-
var i = Or();
|
|
2264
|
-
if (i && e)
|
|
2265
|
-
console.warn(We);
|
|
2266
|
-
else if (!i)
|
|
2267
|
-
i = ze(e);
|
|
2268
|
-
else if (i && Ie !== null && Ee !== null) {
|
|
2269
|
-
var l;
|
|
2270
|
-
i.removeEventListener("load", Ie), i.removeEventListener("error", Ee), (l = i.parentNode) === null || l === void 0 || l.removeChild(i), i = ze(e);
|
|
2271
|
-
}
|
|
2272
|
-
Ie = Fr(r, n), Ee = Lr(n), i.addEventListener("load", Ie), i.addEventListener("error", Ee);
|
|
2273
|
-
} catch (s) {
|
|
2274
|
-
n(s);
|
|
2275
|
-
return;
|
|
2276
|
-
}
|
|
2277
|
-
}), ce.catch(function(r) {
|
|
2278
|
-
return ce = null, Promise.reject(r);
|
|
2279
|
-
}));
|
|
2280
|
-
}, Yr = function(e, r, n) {
|
|
2281
|
-
if (e === null)
|
|
2282
|
-
return null;
|
|
2283
|
-
var i = e.apply(void 0, r);
|
|
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
|
-
};
|
|
2290
|
-
Promise.resolve().then(function() {
|
|
2291
|
-
return bt();
|
|
2292
|
-
}).catch(function(t) {
|
|
2293
|
-
wt || console.warn(t);
|
|
2294
|
-
});
|
|
2295
|
-
var Hr = function() {
|
|
2296
|
-
for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++)
|
|
2297
|
-
r[n] = arguments[n];
|
|
2298
|
-
wt = !0;
|
|
2299
|
-
var i = Date.now();
|
|
2300
|
-
return bt().then(function(l) {
|
|
2301
|
-
return Yr(l, r, i);
|
|
2302
|
-
});
|
|
2303
|
-
};
|
|
2304
|
-
function Kr(t) {
|
|
2305
|
-
S(t, "svelte-1fwwzeb", ".rcb-stripe-elements-container.svelte-1fwwzeb{width:100%;margin-bottom:1rem}");
|
|
2306
|
-
}
|
|
2307
|
-
function jr(t) {
|
|
2308
|
-
let e, r;
|
|
2309
|
-
return e = new Qe({}), {
|
|
2310
|
-
c() {
|
|
2311
|
-
b(e.$$.fragment);
|
|
2312
|
-
},
|
|
2313
|
-
m(n, i) {
|
|
2314
|
-
I(e, n, i), r = !0;
|
|
2315
|
-
},
|
|
2316
|
-
p: D,
|
|
2317
|
-
i(n) {
|
|
2318
|
-
r || (a(e.$$.fragment, n), r = !0);
|
|
2319
|
-
},
|
|
2320
|
-
o(n) {
|
|
2321
|
-
f(e.$$.fragment, n), r = !1;
|
|
2322
|
-
},
|
|
2323
|
-
d(n) {
|
|
2324
|
-
w(e, n);
|
|
2325
|
-
}
|
|
2326
|
-
};
|
|
2327
|
-
}
|
|
2328
|
-
function Jr(t) {
|
|
2329
|
-
let e, r, n, i, l, s;
|
|
2330
|
-
function o(u) {
|
|
2331
|
-
t[9](u);
|
|
2332
|
-
}
|
|
2333
|
-
let c = {
|
|
2334
|
-
stripe: (
|
|
2335
|
-
/*stripe*/
|
|
2336
|
-
t[2]
|
|
2337
|
-
),
|
|
2338
|
-
clientSecret: (
|
|
2339
|
-
/*clientSecret*/
|
|
2340
|
-
t[4]
|
|
2341
|
-
),
|
|
2342
|
-
loader: "always",
|
|
2343
|
-
$$slots: { default: [ei] },
|
|
2344
|
-
$$scope: { ctx: t }
|
|
2345
|
-
};
|
|
2346
|
-
return (
|
|
2347
|
-
/*elements*/
|
|
2348
|
-
t[1] !== void 0 && (c.elements = /*elements*/
|
|
2349
|
-
t[1]), r = new Ur({ props: c }), ke.push(() => ln(r, "elements", o)), {
|
|
2350
|
-
c() {
|
|
2351
|
-
e = $("form"), b(r.$$.fragment);
|
|
2352
|
-
},
|
|
2353
|
-
m(u, _) {
|
|
2354
|
-
A(u, e, _), I(r, e, null), i = !0, l || (s = _e(e, "submit", mt(
|
|
2355
|
-
/*handleContinue*/
|
|
2356
|
-
t[5]
|
|
2357
|
-
)), l = !0);
|
|
2358
|
-
},
|
|
2359
|
-
p(u, _) {
|
|
2360
|
-
const m = {};
|
|
2361
|
-
_ & /*stripe*/
|
|
2362
|
-
4 && (m.stripe = /*stripe*/
|
|
2363
|
-
u[2]), _ & /*$$scope, processing, onClose*/
|
|
2364
|
-
2057 && (m.$$scope = { dirty: _, ctx: u }), !n && _ & /*elements*/
|
|
2365
|
-
2 && (n = !0, m.elements = /*elements*/
|
|
2366
|
-
u[1], tn(() => n = !1)), r.$set(m);
|
|
2367
|
-
},
|
|
2368
|
-
i(u) {
|
|
2369
|
-
i || (a(r.$$.fragment, u), i = !0);
|
|
2370
|
-
},
|
|
2371
|
-
o(u) {
|
|
2372
|
-
f(r.$$.fragment, u), i = !1;
|
|
2373
|
-
},
|
|
2374
|
-
d(u) {
|
|
2375
|
-
u && g(e), w(r), l = !1, s();
|
|
2376
|
-
}
|
|
2377
|
-
}
|
|
2378
|
-
);
|
|
2379
|
-
}
|
|
2380
|
-
function xr(t) {
|
|
2381
|
-
let e, r, n;
|
|
2382
|
-
return r = new Pr({}), {
|
|
2383
|
-
c() {
|
|
2384
|
-
e = $("div"), b(r.$$.fragment), h(e, "class", "rcb-stripe-elements-container svelte-1fwwzeb");
|
|
2385
|
-
},
|
|
2386
|
-
m(i, l) {
|
|
2387
|
-
A(i, e, l), I(r, e, null), n = !0;
|
|
2388
|
-
},
|
|
2389
|
-
p: D,
|
|
2390
|
-
i(i) {
|
|
2391
|
-
n || (a(r.$$.fragment, i), n = !0);
|
|
2392
|
-
},
|
|
2393
|
-
o(i) {
|
|
2394
|
-
f(r.$$.fragment, i), n = !1;
|
|
2395
|
-
},
|
|
2396
|
-
d(i) {
|
|
2397
|
-
i && g(e), w(r);
|
|
2398
|
-
}
|
|
2399
|
-
};
|
|
2400
|
-
}
|
|
2401
|
-
function Vr(t) {
|
|
2402
|
-
let e;
|
|
2403
|
-
return {
|
|
2404
|
-
c() {
|
|
2405
|
-
e = L("Pay");
|
|
2406
|
-
},
|
|
2407
|
-
m(r, n) {
|
|
2408
|
-
A(r, e, n);
|
|
2409
|
-
},
|
|
2410
|
-
d(r) {
|
|
2411
|
-
r && g(e);
|
|
2412
|
-
}
|
|
2413
|
-
};
|
|
2414
|
-
}
|
|
2415
|
-
function qr(t) {
|
|
2416
|
-
let e;
|
|
2417
|
-
return {
|
|
2418
|
-
c() {
|
|
2419
|
-
e = L("Processing...");
|
|
2420
|
-
},
|
|
2421
|
-
m(r, n) {
|
|
2422
|
-
A(r, e, n);
|
|
2423
|
-
},
|
|
2424
|
-
d(r) {
|
|
2425
|
-
r && g(e);
|
|
2426
|
-
}
|
|
2427
|
-
};
|
|
2428
|
-
}
|
|
2429
|
-
function Wr(t) {
|
|
2430
|
-
let e;
|
|
2431
|
-
function r(l, s) {
|
|
2432
|
-
return (
|
|
2433
|
-
/*processing*/
|
|
2434
|
-
l[3] ? qr : Vr
|
|
2435
|
-
);
|
|
2436
|
-
}
|
|
2437
|
-
let n = r(t), i = n(t);
|
|
2438
|
-
return {
|
|
2439
|
-
c() {
|
|
2440
|
-
i.c(), e = X();
|
|
2441
|
-
},
|
|
2442
|
-
m(l, s) {
|
|
2443
|
-
i.m(l, s), A(l, e, s);
|
|
2444
|
-
},
|
|
2445
|
-
p(l, s) {
|
|
2446
|
-
n !== (n = r(l)) && (i.d(1), i = n(l), i && (i.c(), i.m(e.parentNode, e)));
|
|
2447
|
-
},
|
|
2448
|
-
d(l) {
|
|
2449
|
-
l && g(e), i.d(l);
|
|
2450
|
-
}
|
|
2451
|
-
};
|
|
2452
|
-
}
|
|
2453
|
-
function zr(t) {
|
|
2454
|
-
let e;
|
|
2455
|
-
return {
|
|
2456
|
-
c() {
|
|
2457
|
-
e = L("Close");
|
|
2458
|
-
},
|
|
2459
|
-
m(r, n) {
|
|
2460
|
-
A(r, e, n);
|
|
2461
|
-
},
|
|
2462
|
-
d(r) {
|
|
2463
|
-
r && g(e);
|
|
2464
|
-
}
|
|
2465
|
-
};
|
|
2466
|
-
}
|
|
2467
|
-
function Xr(t) {
|
|
2468
|
-
let e, r, n, i;
|
|
2469
|
-
return e = new ge({
|
|
2470
|
-
props: {
|
|
2471
|
-
disabled: (
|
|
2472
|
-
/*processing*/
|
|
2473
|
-
t[3]
|
|
2474
|
-
),
|
|
2475
|
-
$$slots: { default: [Wr] },
|
|
2476
|
-
$$scope: { ctx: t }
|
|
2477
|
-
}
|
|
2478
|
-
}), n = new ge({
|
|
2479
|
-
props: {
|
|
2480
|
-
disabled: (
|
|
2481
|
-
/*processing*/
|
|
2482
|
-
t[3]
|
|
2483
|
-
),
|
|
2484
|
-
intent: "secondary",
|
|
2485
|
-
$$slots: { default: [zr] },
|
|
2486
|
-
$$scope: { ctx: t }
|
|
2487
|
-
}
|
|
2488
|
-
}), n.$on("click", function() {
|
|
2489
|
-
le(
|
|
2490
|
-
/*onClose*/
|
|
2491
|
-
t[0]
|
|
2492
|
-
) && t[0].apply(this, arguments);
|
|
2493
|
-
}), {
|
|
2494
|
-
c() {
|
|
2495
|
-
b(e.$$.fragment), r = P(), b(n.$$.fragment);
|
|
2496
|
-
},
|
|
2497
|
-
m(l, s) {
|
|
2498
|
-
I(e, l, s), A(l, r, s), I(n, l, s), i = !0;
|
|
2499
|
-
},
|
|
2500
|
-
p(l, s) {
|
|
2501
|
-
t = l;
|
|
2502
|
-
const o = {};
|
|
2503
|
-
s & /*processing*/
|
|
2504
|
-
8 && (o.disabled = /*processing*/
|
|
2505
|
-
t[3]), s & /*$$scope, processing*/
|
|
2506
|
-
2056 && (o.$$scope = { dirty: s, ctx: t }), e.$set(o);
|
|
2507
|
-
const c = {};
|
|
2508
|
-
s & /*processing*/
|
|
2509
|
-
8 && (c.disabled = /*processing*/
|
|
2510
|
-
t[3]), s & /*$$scope*/
|
|
2511
|
-
2048 && (c.$$scope = { dirty: s, ctx: t }), n.$set(c);
|
|
2512
|
-
},
|
|
2513
|
-
i(l) {
|
|
2514
|
-
i || (a(e.$$.fragment, l), a(n.$$.fragment, l), i = !0);
|
|
2515
|
-
},
|
|
2516
|
-
o(l) {
|
|
2517
|
-
f(e.$$.fragment, l), f(n.$$.fragment, l), i = !1;
|
|
2518
|
-
},
|
|
2519
|
-
d(l) {
|
|
2520
|
-
l && g(r), w(e, l), w(n, l);
|
|
2521
|
-
}
|
|
2522
|
-
};
|
|
2523
|
-
}
|
|
2524
|
-
function Zr(t) {
|
|
2525
|
-
let e, r;
|
|
2526
|
-
return e = new Z({
|
|
2527
|
-
props: {
|
|
2528
|
-
$$slots: { default: [Xr] },
|
|
2529
|
-
$$scope: { ctx: t }
|
|
2530
|
-
}
|
|
2531
|
-
}), {
|
|
2532
|
-
c() {
|
|
2533
|
-
b(e.$$.fragment);
|
|
2534
|
-
},
|
|
2535
|
-
m(n, i) {
|
|
2536
|
-
I(e, n, i), r = !0;
|
|
2537
|
-
},
|
|
2538
|
-
p(n, i) {
|
|
2539
|
-
const l = {};
|
|
2540
|
-
i & /*$$scope, processing, onClose*/
|
|
2541
|
-
2057 && (l.$$scope = { dirty: i, ctx: n }), e.$set(l);
|
|
2542
|
-
},
|
|
2543
|
-
i(n) {
|
|
2544
|
-
r || (a(e.$$.fragment, n), r = !0);
|
|
2545
|
-
},
|
|
2546
|
-
o(n) {
|
|
2547
|
-
f(e.$$.fragment, n), r = !1;
|
|
2548
|
-
},
|
|
2549
|
-
d(n) {
|
|
2550
|
-
w(e, n);
|
|
2551
|
-
}
|
|
2552
|
-
};
|
|
2553
|
-
}
|
|
2554
|
-
function ei(t) {
|
|
2555
|
-
let e, r, n, i;
|
|
2556
|
-
return e = new q({
|
|
2557
|
-
props: {
|
|
2558
|
-
$$slots: { default: [xr] },
|
|
2559
|
-
$$scope: { ctx: t }
|
|
2560
|
-
}
|
|
2561
|
-
}), n = new Me({
|
|
2562
|
-
props: {
|
|
2563
|
-
$$slots: { default: [Zr] },
|
|
2564
|
-
$$scope: { ctx: t }
|
|
2565
|
-
}
|
|
2566
|
-
}), {
|
|
2567
|
-
c() {
|
|
2568
|
-
b(e.$$.fragment), r = P(), b(n.$$.fragment);
|
|
2569
|
-
},
|
|
2570
|
-
m(l, s) {
|
|
2571
|
-
I(e, l, s), A(l, r, s), I(n, l, s), i = !0;
|
|
2572
|
-
},
|
|
2573
|
-
p(l, s) {
|
|
2574
|
-
const o = {};
|
|
2575
|
-
s & /*$$scope*/
|
|
2576
|
-
2048 && (o.$$scope = { dirty: s, ctx: l }), e.$set(o);
|
|
2577
|
-
const c = {};
|
|
2578
|
-
s & /*$$scope, processing, onClose*/
|
|
2579
|
-
2057 && (c.$$scope = { dirty: s, ctx: l }), n.$set(c);
|
|
2580
|
-
},
|
|
2581
|
-
i(l) {
|
|
2582
|
-
i || (a(e.$$.fragment, l), a(n.$$.fragment, l), i = !0);
|
|
2583
|
-
},
|
|
2584
|
-
o(l) {
|
|
2585
|
-
f(e.$$.fragment, l), f(n.$$.fragment, l), i = !1;
|
|
2586
|
-
},
|
|
2587
|
-
d(l) {
|
|
2588
|
-
l && g(r), w(e, l), w(n, l);
|
|
2589
|
-
}
|
|
2590
|
-
};
|
|
2591
|
-
}
|
|
2592
|
-
function ti(t) {
|
|
2593
|
-
let e, r, n, i;
|
|
2594
|
-
const l = [Jr, jr], s = [];
|
|
2595
|
-
function o(c, u) {
|
|
2596
|
-
return (
|
|
2597
|
-
/*stripe*/
|
|
2598
|
-
c[2] && /*clientSecret*/
|
|
2599
|
-
c[4] ? 0 : 1
|
|
2600
|
-
);
|
|
2601
|
-
}
|
|
2602
|
-
return r = o(t), n = s[r] = l[r](t), {
|
|
2603
|
-
c() {
|
|
2604
|
-
e = $("div"), n.c();
|
|
2605
|
-
},
|
|
2606
|
-
m(c, u) {
|
|
2607
|
-
A(c, e, u), s[r].m(e, null), i = !0;
|
|
2608
|
-
},
|
|
2609
|
-
p(c, [u]) {
|
|
2610
|
-
let _ = r;
|
|
2611
|
-
r = o(c), r === _ ? s[r].p(c, u) : (F(), f(s[_], 1, 1, () => {
|
|
2612
|
-
s[_] = null;
|
|
2613
|
-
}), G(), n = s[r], n ? n.p(c, u) : (n = s[r] = l[r](c), n.c()), a(n, 1), n.m(e, null));
|
|
2614
|
-
},
|
|
2615
|
-
i(c) {
|
|
2616
|
-
i || (a(n), i = !0);
|
|
2617
|
-
},
|
|
2618
|
-
o(c) {
|
|
2619
|
-
f(n), i = !1;
|
|
2620
|
-
},
|
|
2621
|
-
d(c) {
|
|
2622
|
-
c && g(e), s[r].d();
|
|
2623
|
-
}
|
|
2624
|
-
};
|
|
2625
|
-
}
|
|
2626
|
-
function ni(t, e, r) {
|
|
2627
|
-
let { onClose: n } = e, { onContinue: i } = e, { onError: l } = e, { paymentInfoCollectionMetadata: s } = e;
|
|
2628
|
-
const o = s.data.client_secret;
|
|
2629
|
-
let c = null, u, _ = !1, m;
|
|
2630
|
-
ve(async () => {
|
|
2631
|
-
const E = s.data.publishable_api_key, y = s.data.stripe_account_id;
|
|
2632
|
-
if (!E || !y)
|
|
2633
|
-
throw new Error("Stripe publishable key or account ID not found");
|
|
2634
|
-
r(2, c = await Hr(E, { stripeAccount: y }));
|
|
2635
|
-
});
|
|
2636
|
-
const B = async () => {
|
|
2637
|
-
if (_ || !c || !m)
|
|
2638
|
-
return;
|
|
2639
|
-
r(3, _ = !0);
|
|
2640
|
-
const E = await c.confirmSetup({
|
|
2641
|
-
elements: m,
|
|
2642
|
-
redirect: "if_required"
|
|
2643
|
-
});
|
|
2644
|
-
E.error ? (r(3, _ = !1), l(new Y(O.StripeError, E.error.message))) : i();
|
|
2645
|
-
};
|
|
2646
|
-
function k(E) {
|
|
2647
|
-
u = E, r(1, u);
|
|
2648
|
-
}
|
|
2649
|
-
return t.$$set = (E) => {
|
|
2650
|
-
"onClose" in E && r(0, n = E.onClose), "onContinue" in E && r(6, i = E.onContinue), "onError" in E && r(7, l = E.onError), "paymentInfoCollectionMetadata" in E && r(8, s = E.paymentInfoCollectionMetadata);
|
|
2651
|
-
}, t.$$.update = () => {
|
|
2652
|
-
t.$$.dirty & /*elements*/
|
|
2653
|
-
2 && u && u._elements.length > 0 && (m = u);
|
|
2654
|
-
}, [
|
|
2655
|
-
n,
|
|
2656
|
-
u,
|
|
2657
|
-
c,
|
|
2658
|
-
_,
|
|
2659
|
-
o,
|
|
2660
|
-
B,
|
|
2661
|
-
i,
|
|
2662
|
-
l,
|
|
2663
|
-
s,
|
|
2664
|
-
k
|
|
2665
|
-
];
|
|
2666
|
-
}
|
|
2667
|
-
class ri extends C {
|
|
2668
|
-
constructor(e) {
|
|
2669
|
-
super(), U(
|
|
2670
|
-
this,
|
|
2671
|
-
e,
|
|
2672
|
-
ni,
|
|
2673
|
-
ti,
|
|
2674
|
-
R,
|
|
2675
|
-
{
|
|
2676
|
-
onClose: 0,
|
|
2677
|
-
onContinue: 6,
|
|
2678
|
-
onError: 7,
|
|
2679
|
-
paymentInfoCollectionMetadata: 8
|
|
2680
|
-
},
|
|
2681
|
-
Kr
|
|
2682
|
-
);
|
|
2683
|
-
}
|
|
2684
|
-
}
|
|
2685
|
-
function ii(t) {
|
|
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
|
-
}
|
|
2688
|
-
function li(t) {
|
|
2689
|
-
let e;
|
|
2690
|
-
return {
|
|
2691
|
-
c() {
|
|
2692
|
-
e = $("span"), e.textContent = "User authentication", h(e, "class", "title svelte-1xardyz");
|
|
2693
|
-
},
|
|
2694
|
-
m(r, n) {
|
|
2695
|
-
A(r, e, n);
|
|
2696
|
-
},
|
|
2697
|
-
p: D,
|
|
2698
|
-
d(r) {
|
|
2699
|
-
r && g(e);
|
|
2700
|
-
}
|
|
2701
|
-
};
|
|
2702
|
-
}
|
|
2703
|
-
function si(t) {
|
|
2704
|
-
let e, r, n, i, l, s, o;
|
|
2705
|
-
return {
|
|
2706
|
-
c() {
|
|
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
|
-
},
|
|
2709
|
-
m(c, u) {
|
|
2710
|
-
A(c, e, u), T(e, r), T(e, n), T(e, i), T(i, l), Ke(
|
|
2711
|
-
l,
|
|
2712
|
-
/*email*/
|
|
2713
|
-
t[0]
|
|
2714
|
-
), s || (o = _e(
|
|
2715
|
-
l,
|
|
2716
|
-
"input",
|
|
2717
|
-
/*input_input_handler*/
|
|
2718
|
-
t[3]
|
|
2719
|
-
), s = !0);
|
|
2720
|
-
},
|
|
2721
|
-
p(c, u) {
|
|
2722
|
-
u & /*email*/
|
|
2723
|
-
1 && l.value !== /*email*/
|
|
2724
|
-
c[0] && Ke(
|
|
2725
|
-
l,
|
|
2726
|
-
/*email*/
|
|
2727
|
-
c[0]
|
|
2728
|
-
);
|
|
2729
|
-
},
|
|
2730
|
-
d(c) {
|
|
2731
|
-
c && g(e), s = !1, o();
|
|
2732
|
-
}
|
|
2733
|
-
};
|
|
2734
|
-
}
|
|
2735
|
-
function oi(t) {
|
|
2736
|
-
let e;
|
|
2737
|
-
return {
|
|
2738
|
-
c() {
|
|
2739
|
-
e = L("Continue");
|
|
2740
|
-
},
|
|
2741
|
-
m(r, n) {
|
|
2742
|
-
A(r, e, n);
|
|
2743
|
-
},
|
|
2744
|
-
d(r) {
|
|
2745
|
-
r && g(e);
|
|
2746
|
-
}
|
|
2747
|
-
};
|
|
2748
|
-
}
|
|
2749
|
-
function ci(t) {
|
|
2750
|
-
let e, r;
|
|
2751
|
-
return e = new ge({
|
|
2752
|
-
props: {
|
|
2753
|
-
$$slots: { default: [oi] },
|
|
2754
|
-
$$scope: { ctx: t }
|
|
2755
|
-
}
|
|
2756
|
-
}), {
|
|
2757
|
-
c() {
|
|
2758
|
-
b(e.$$.fragment);
|
|
2759
|
-
},
|
|
2760
|
-
m(n, i) {
|
|
2761
|
-
I(e, n, i), r = !0;
|
|
2762
|
-
},
|
|
2763
|
-
p(n, i) {
|
|
2764
|
-
const l = {};
|
|
2765
|
-
i & /*$$scope*/
|
|
2766
|
-
16 && (l.$$scope = { dirty: i, ctx: n }), e.$set(l);
|
|
2767
|
-
},
|
|
2768
|
-
i(n) {
|
|
2769
|
-
r || (a(e.$$.fragment, n), r = !0);
|
|
2770
|
-
},
|
|
2771
|
-
o(n) {
|
|
2772
|
-
f(e.$$.fragment, n), r = !1;
|
|
2773
|
-
},
|
|
2774
|
-
d(n) {
|
|
2775
|
-
w(e, n);
|
|
2776
|
-
}
|
|
2777
|
-
};
|
|
2778
|
-
}
|
|
2779
|
-
function ai(t) {
|
|
2780
|
-
let e, r, n, i, l, s, o, c, u, _;
|
|
2781
|
-
return n = new q({
|
|
2782
|
-
props: {
|
|
2783
|
-
$$slots: { default: [li] },
|
|
2784
|
-
$$scope: { ctx: t }
|
|
2785
|
-
}
|
|
2786
|
-
}), l = new q({
|
|
2787
|
-
props: {
|
|
2788
|
-
$$slots: { default: [si] },
|
|
2789
|
-
$$scope: { ctx: t }
|
|
2790
|
-
}
|
|
2791
|
-
}), o = new Me({
|
|
2792
|
-
props: {
|
|
2793
|
-
$$slots: { default: [ci] },
|
|
2794
|
-
$$scope: { ctx: t }
|
|
2795
|
-
}
|
|
2796
|
-
}), {
|
|
2797
|
-
c() {
|
|
2798
|
-
e = $("div"), r = $("form"), b(n.$$.fragment), i = P(), b(l.$$.fragment), s = P(), b(o.$$.fragment);
|
|
2799
|
-
},
|
|
2800
|
-
m(m, 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
|
-
/*handleContinue*/
|
|
2803
|
-
t[1]
|
|
2804
|
-
)), u = !0);
|
|
2805
|
-
},
|
|
2806
|
-
p(m, [B]) {
|
|
2807
|
-
const k = {};
|
|
2808
|
-
B & /*$$scope*/
|
|
2809
|
-
16 && (k.$$scope = { dirty: B, ctx: m }), n.$set(k);
|
|
2810
|
-
const E = {};
|
|
2811
|
-
B & /*$$scope, email*/
|
|
2812
|
-
17 && (E.$$scope = { dirty: B, ctx: m }), l.$set(E);
|
|
2813
|
-
const y = {};
|
|
2814
|
-
B & /*$$scope*/
|
|
2815
|
-
16 && (y.$$scope = { dirty: B, ctx: m }), o.$set(y);
|
|
2816
|
-
},
|
|
2817
|
-
i(m) {
|
|
2818
|
-
c || (a(n.$$.fragment, m), a(l.$$.fragment, m), a(o.$$.fragment, m), c = !0);
|
|
2819
|
-
},
|
|
2820
|
-
o(m) {
|
|
2821
|
-
f(n.$$.fragment, m), f(l.$$.fragment, m), f(o.$$.fragment, m), c = !1;
|
|
2822
|
-
},
|
|
2823
|
-
d(m) {
|
|
2824
|
-
m && g(e), w(n), w(l), w(o), u = !1, _();
|
|
2825
|
-
}
|
|
2826
|
-
};
|
|
2827
|
-
}
|
|
2828
|
-
function ui(t, e, r) {
|
|
2829
|
-
let n, { onContinue: i } = e;
|
|
2830
|
-
const l = async () => {
|
|
2831
|
-
i({ email: n });
|
|
2832
|
-
};
|
|
2833
|
-
function s() {
|
|
2834
|
-
n = this.value, r(0, n);
|
|
2835
|
-
}
|
|
2836
|
-
return t.$$set = (o) => {
|
|
2837
|
-
"onContinue" in o && r(2, i = o.onContinue);
|
|
2838
|
-
}, r(0, n = ""), [n, l, i, s];
|
|
2839
|
-
}
|
|
2840
|
-
class fi extends C {
|
|
2841
|
-
constructor(e) {
|
|
2842
|
-
super(), U(this, e, ui, ai, R, { onContinue: 2 }, ii);
|
|
2843
|
-
}
|
|
2844
|
-
}
|
|
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
|
-
let e, r;
|
|
2848
|
-
return {
|
|
2849
|
-
c() {
|
|
2850
|
-
e = $("img"), V(e.src, r = di) || h(e, "src", r), h(e, "alt", "icon"), h(e, "class", "rcb-ui-asset-icon");
|
|
2851
|
-
},
|
|
2852
|
-
m(n, i) {
|
|
2853
|
-
A(n, e, i);
|
|
2854
|
-
},
|
|
2855
|
-
p: D,
|
|
2856
|
-
i: D,
|
|
2857
|
-
o: D,
|
|
2858
|
-
d(n) {
|
|
2859
|
-
n && g(e);
|
|
2860
|
-
}
|
|
2861
|
-
};
|
|
2862
|
-
}
|
|
2863
|
-
class gi extends C {
|
|
2864
|
-
constructor(e) {
|
|
2865
|
-
super(), U(this, e, null, mi, R, {});
|
|
2866
|
-
}
|
|
2867
|
-
}
|
|
2868
|
-
function Ai(t) {
|
|
2869
|
-
S(t, "svelte-1ggdgso", ".rcb-header-layout.svelte-1ggdgso{display:flex;justify-content:space-between;align-items:center;width:100%}");
|
|
2870
|
-
}
|
|
2871
|
-
function _i(t) {
|
|
2872
|
-
let e, r, n, i, l;
|
|
2873
|
-
return r = new ht({
|
|
2874
|
-
props: { brandingInfo: (
|
|
2875
|
-
/*brandingInfo*/
|
|
2876
|
-
t[0]
|
|
2877
|
-
) }
|
|
2878
|
-
}), i = new gi({}), {
|
|
2879
|
-
c() {
|
|
2880
|
-
e = $("div"), b(r.$$.fragment), n = P(), b(i.$$.fragment), h(e, "class", "rcb-header-layout svelte-1ggdgso");
|
|
2881
|
-
},
|
|
2882
|
-
m(s, o) {
|
|
2883
|
-
A(s, e, o), I(r, e, null), T(e, n), I(i, e, null), l = !0;
|
|
2884
|
-
},
|
|
2885
|
-
p(s, o) {
|
|
2886
|
-
const c = {};
|
|
2887
|
-
o & /*brandingInfo*/
|
|
2888
|
-
1 && (c.brandingInfo = /*brandingInfo*/
|
|
2889
|
-
s[0]), r.$set(c);
|
|
2890
|
-
},
|
|
2891
|
-
i(s) {
|
|
2892
|
-
l || (a(r.$$.fragment, s), a(i.$$.fragment, s), l = !0);
|
|
2893
|
-
},
|
|
2894
|
-
o(s) {
|
|
2895
|
-
f(r.$$.fragment, s), f(i.$$.fragment, s), l = !1;
|
|
2896
|
-
},
|
|
2897
|
-
d(s) {
|
|
2898
|
-
s && g(e), w(r), w(i);
|
|
2899
|
-
}
|
|
2900
|
-
};
|
|
2901
|
-
}
|
|
2902
|
-
function pi(t) {
|
|
2903
|
-
let e, r;
|
|
2904
|
-
return e = new q({
|
|
2905
|
-
props: {
|
|
2906
|
-
as: "header",
|
|
2907
|
-
$$slots: { default: [_i] },
|
|
2908
|
-
$$scope: { ctx: t }
|
|
2909
|
-
}
|
|
2910
|
-
}), {
|
|
2911
|
-
c() {
|
|
2912
|
-
b(e.$$.fragment);
|
|
2913
|
-
},
|
|
2914
|
-
m(n, i) {
|
|
2915
|
-
I(e, n, i), r = !0;
|
|
2916
|
-
},
|
|
2917
|
-
p(n, [i]) {
|
|
2918
|
-
const l = {};
|
|
2919
|
-
i & /*$$scope, brandingInfo*/
|
|
2920
|
-
3 && (l.$$scope = { dirty: i, ctx: n }), e.$set(l);
|
|
2921
|
-
},
|
|
2922
|
-
i(n) {
|
|
2923
|
-
r || (a(e.$$.fragment, n), r = !0);
|
|
2924
|
-
},
|
|
2925
|
-
o(n) {
|
|
2926
|
-
f(e.$$.fragment, n), r = !1;
|
|
2927
|
-
},
|
|
2928
|
-
d(n) {
|
|
2929
|
-
w(e, n);
|
|
2930
|
-
}
|
|
2931
|
-
};
|
|
2932
|
-
}
|
|
2933
|
-
function hi(t, e, r) {
|
|
2934
|
-
let { brandingInfo: n = null } = e;
|
|
2935
|
-
return t.$$set = (i) => {
|
|
2936
|
-
"brandingInfo" in i && r(0, n = i.brandingInfo);
|
|
2937
|
-
}, [n];
|
|
2938
|
-
}
|
|
2939
|
-
class Ei extends C {
|
|
2940
|
-
constructor(e) {
|
|
2941
|
-
super(), U(this, e, hi, pi, R, { brandingInfo: 0 }, Ai);
|
|
2942
|
-
}
|
|
2943
|
-
}
|
|
2944
|
-
function Ii(t) {
|
|
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
|
-
}
|
|
2947
|
-
function wi(t) {
|
|
2948
|
-
let e, r;
|
|
2949
|
-
const n = (
|
|
2950
|
-
/*#slots*/
|
|
2951
|
-
t[1].default
|
|
2952
|
-
), i = K(
|
|
2953
|
-
n,
|
|
2954
|
-
t,
|
|
2955
|
-
/*$$scope*/
|
|
2956
|
-
t[0],
|
|
2957
|
-
null
|
|
2958
|
-
);
|
|
2959
|
-
return {
|
|
2960
|
-
c() {
|
|
2961
|
-
e = $("div"), i && i.c(), h(e, "class", "rcb-modal-backdrop svelte-17dhulw");
|
|
2962
|
-
},
|
|
2963
|
-
m(l, s) {
|
|
2964
|
-
A(l, e, s), i && i.m(e, null), r = !0;
|
|
2965
|
-
},
|
|
2966
|
-
p(l, [s]) {
|
|
2967
|
-
i && i.p && (!r || s & /*$$scope*/
|
|
2968
|
-
1) && J(
|
|
2969
|
-
i,
|
|
2970
|
-
n,
|
|
2971
|
-
l,
|
|
2972
|
-
/*$$scope*/
|
|
2973
|
-
l[0],
|
|
2974
|
-
r ? j(
|
|
2975
|
-
n,
|
|
2976
|
-
/*$$scope*/
|
|
2977
|
-
l[0],
|
|
2978
|
-
s,
|
|
2979
|
-
null
|
|
2980
|
-
) : x(
|
|
2981
|
-
/*$$scope*/
|
|
2982
|
-
l[0]
|
|
2983
|
-
),
|
|
2984
|
-
null
|
|
2985
|
-
);
|
|
2986
|
-
},
|
|
2987
|
-
i(l) {
|
|
2988
|
-
r || (a(i, l), r = !0);
|
|
2989
|
-
},
|
|
2990
|
-
o(l) {
|
|
2991
|
-
f(i, l), r = !1;
|
|
2992
|
-
},
|
|
2993
|
-
d(l) {
|
|
2994
|
-
l && g(e), i && i.d(l);
|
|
2995
|
-
}
|
|
2996
|
-
};
|
|
2997
|
-
}
|
|
2998
|
-
function bi(t, e, r) {
|
|
2999
|
-
let { $$slots: n = {}, $$scope: i } = e;
|
|
3000
|
-
return t.$$set = (l) => {
|
|
3001
|
-
"$$scope" in l && r(0, i = l.$$scope);
|
|
3002
|
-
}, [i, n];
|
|
3003
|
-
}
|
|
3004
|
-
class $i extends C {
|
|
3005
|
-
constructor(e) {
|
|
3006
|
-
super(), U(this, e, bi, wi, R, {}, Ii);
|
|
3007
|
-
}
|
|
3008
|
-
}
|
|
3009
|
-
function Bi(t) {
|
|
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
|
-
}
|
|
3012
|
-
function ki(t) {
|
|
3013
|
-
let e, r, n;
|
|
3014
|
-
const i = (
|
|
3015
|
-
/*#slots*/
|
|
3016
|
-
t[2].default
|
|
3017
|
-
), l = K(
|
|
3018
|
-
i,
|
|
3019
|
-
t,
|
|
3020
|
-
/*$$scope*/
|
|
3021
|
-
t[1],
|
|
3022
|
-
null
|
|
3023
|
-
);
|
|
3024
|
-
return {
|
|
3025
|
-
c() {
|
|
3026
|
-
e = $("main"), l && l.c(), h(e, "class", r = de(`rcb-modal-main ${/*dark*/
|
|
3027
|
-
t[0] ? "rcb-modal-dark" : ""}`) + " svelte-m6kocx");
|
|
3028
|
-
},
|
|
3029
|
-
m(s, o) {
|
|
3030
|
-
A(s, e, o), l && l.m(e, null), n = !0;
|
|
3031
|
-
},
|
|
3032
|
-
p(s, [o]) {
|
|
3033
|
-
l && l.p && (!n || o & /*$$scope*/
|
|
3034
|
-
2) && J(
|
|
3035
|
-
l,
|
|
3036
|
-
i,
|
|
3037
|
-
s,
|
|
3038
|
-
/*$$scope*/
|
|
3039
|
-
s[1],
|
|
3040
|
-
n ? j(
|
|
3041
|
-
i,
|
|
3042
|
-
/*$$scope*/
|
|
3043
|
-
s[1],
|
|
3044
|
-
o,
|
|
3045
|
-
null
|
|
3046
|
-
) : x(
|
|
3047
|
-
/*$$scope*/
|
|
3048
|
-
s[1]
|
|
3049
|
-
),
|
|
3050
|
-
null
|
|
3051
|
-
), (!n || o & /*dark*/
|
|
3052
|
-
1 && r !== (r = de(`rcb-modal-main ${/*dark*/
|
|
3053
|
-
s[0] ? "rcb-modal-dark" : ""}`) + " svelte-m6kocx")) && h(e, "class", r);
|
|
3054
|
-
},
|
|
3055
|
-
i(s) {
|
|
3056
|
-
n || (a(l, s), n = !0);
|
|
3057
|
-
},
|
|
3058
|
-
o(s) {
|
|
3059
|
-
f(l, s), n = !1;
|
|
3060
|
-
},
|
|
3061
|
-
d(s) {
|
|
3062
|
-
s && g(e), l && l.d(s);
|
|
3063
|
-
}
|
|
3064
|
-
};
|
|
3065
|
-
}
|
|
3066
|
-
function yi(t, e, r) {
|
|
3067
|
-
let { $$slots: n = {}, $$scope: i } = e, { dark: l = !1 } = e;
|
|
3068
|
-
return t.$$set = (s) => {
|
|
3069
|
-
"dark" in s && r(0, l = s.dark), "$$scope" in s && r(1, i = s.$$scope);
|
|
3070
|
-
}, [l, i, n];
|
|
3071
|
-
}
|
|
3072
|
-
class Di extends C {
|
|
3073
|
-
constructor(e) {
|
|
3074
|
-
super(), U(this, e, yi, ki, R, { dark: 0 }, Bi);
|
|
3075
|
-
}
|
|
3076
|
-
}
|
|
3077
|
-
function vi(t) {
|
|
3078
|
-
let e;
|
|
3079
|
-
const r = (
|
|
3080
|
-
/*#slots*/
|
|
3081
|
-
t[1].default
|
|
3082
|
-
), n = K(
|
|
3083
|
-
r,
|
|
3084
|
-
t,
|
|
3085
|
-
/*$$scope*/
|
|
3086
|
-
t[2],
|
|
3087
|
-
null
|
|
3088
|
-
);
|
|
3089
|
-
return {
|
|
3090
|
-
c() {
|
|
3091
|
-
n && n.c();
|
|
3092
|
-
},
|
|
3093
|
-
m(i, l) {
|
|
3094
|
-
n && n.m(i, l), e = !0;
|
|
3095
|
-
},
|
|
3096
|
-
p(i, l) {
|
|
3097
|
-
n && n.p && (!e || l & /*$$scope*/
|
|
3098
|
-
4) && J(
|
|
3099
|
-
n,
|
|
3100
|
-
r,
|
|
3101
|
-
i,
|
|
3102
|
-
/*$$scope*/
|
|
3103
|
-
i[2],
|
|
3104
|
-
e ? j(
|
|
3105
|
-
r,
|
|
3106
|
-
/*$$scope*/
|
|
3107
|
-
i[2],
|
|
3108
|
-
l,
|
|
3109
|
-
null
|
|
3110
|
-
) : x(
|
|
3111
|
-
/*$$scope*/
|
|
3112
|
-
i[2]
|
|
3113
|
-
),
|
|
3114
|
-
null
|
|
3115
|
-
);
|
|
3116
|
-
},
|
|
3117
|
-
i(i) {
|
|
3118
|
-
e || (a(n, i), e = !0);
|
|
3119
|
-
},
|
|
3120
|
-
o(i) {
|
|
3121
|
-
f(n, i), e = !1;
|
|
3122
|
-
},
|
|
3123
|
-
d(i) {
|
|
3124
|
-
n && n.d(i);
|
|
3125
|
-
}
|
|
3126
|
-
};
|
|
3127
|
-
}
|
|
3128
|
-
function Qi(t) {
|
|
3129
|
-
let e, r;
|
|
3130
|
-
return e = new $i({
|
|
3131
|
-
props: {
|
|
3132
|
-
$$slots: { default: [Mi] },
|
|
3133
|
-
$$scope: { ctx: t }
|
|
3134
|
-
}
|
|
3135
|
-
}), {
|
|
3136
|
-
c() {
|
|
3137
|
-
b(e.$$.fragment);
|
|
3138
|
-
},
|
|
3139
|
-
m(n, i) {
|
|
3140
|
-
I(e, n, i), r = !0;
|
|
3141
|
-
},
|
|
3142
|
-
p(n, i) {
|
|
3143
|
-
const l = {};
|
|
3144
|
-
i & /*$$scope*/
|
|
3145
|
-
4 && (l.$$scope = { dirty: i, ctx: n }), e.$set(l);
|
|
3146
|
-
},
|
|
3147
|
-
i(n) {
|
|
3148
|
-
r || (a(e.$$.fragment, n), r = !0);
|
|
3149
|
-
},
|
|
3150
|
-
o(n) {
|
|
3151
|
-
f(e.$$.fragment, n), r = !1;
|
|
3152
|
-
},
|
|
3153
|
-
d(n) {
|
|
3154
|
-
w(e, n);
|
|
3155
|
-
}
|
|
3156
|
-
};
|
|
3157
|
-
}
|
|
3158
|
-
function Mi(t) {
|
|
3159
|
-
let e;
|
|
3160
|
-
const r = (
|
|
3161
|
-
/*#slots*/
|
|
3162
|
-
t[1].default
|
|
3163
|
-
), n = K(
|
|
3164
|
-
r,
|
|
3165
|
-
t,
|
|
3166
|
-
/*$$scope*/
|
|
3167
|
-
t[2],
|
|
3168
|
-
null
|
|
3169
|
-
);
|
|
3170
|
-
return {
|
|
3171
|
-
c() {
|
|
3172
|
-
n && n.c();
|
|
3173
|
-
},
|
|
3174
|
-
m(i, l) {
|
|
3175
|
-
n && n.m(i, l), e = !0;
|
|
3176
|
-
},
|
|
3177
|
-
p(i, l) {
|
|
3178
|
-
n && n.p && (!e || l & /*$$scope*/
|
|
3179
|
-
4) && J(
|
|
3180
|
-
n,
|
|
3181
|
-
r,
|
|
3182
|
-
i,
|
|
3183
|
-
/*$$scope*/
|
|
3184
|
-
i[2],
|
|
3185
|
-
e ? j(
|
|
3186
|
-
r,
|
|
3187
|
-
/*$$scope*/
|
|
3188
|
-
i[2],
|
|
3189
|
-
l,
|
|
3190
|
-
null
|
|
3191
|
-
) : x(
|
|
3192
|
-
/*$$scope*/
|
|
3193
|
-
i[2]
|
|
3194
|
-
),
|
|
3195
|
-
null
|
|
3196
|
-
);
|
|
3197
|
-
},
|
|
3198
|
-
i(i) {
|
|
3199
|
-
e || (a(n, i), e = !0);
|
|
3200
|
-
},
|
|
3201
|
-
o(i) {
|
|
3202
|
-
f(n, i), e = !1;
|
|
3203
|
-
},
|
|
3204
|
-
d(i) {
|
|
3205
|
-
n && n.d(i);
|
|
3206
|
-
}
|
|
3207
|
-
};
|
|
3208
|
-
}
|
|
3209
|
-
function Ti(t) {
|
|
3210
|
-
let e, r, n, i;
|
|
3211
|
-
const l = [Qi, vi], s = [];
|
|
3212
|
-
function o(c, u) {
|
|
3213
|
-
return (
|
|
3214
|
-
/*condition*/
|
|
3215
|
-
c[0] ? 0 : 1
|
|
3216
|
-
);
|
|
3217
|
-
}
|
|
3218
|
-
return e = o(t), r = s[e] = l[e](t), {
|
|
3219
|
-
c() {
|
|
3220
|
-
r.c(), n = X();
|
|
3221
|
-
},
|
|
3222
|
-
m(c, u) {
|
|
3223
|
-
s[e].m(c, u), A(c, n, u), i = !0;
|
|
3224
|
-
},
|
|
3225
|
-
p(c, [u]) {
|
|
3226
|
-
let _ = e;
|
|
3227
|
-
e = o(c), e === _ ? s[e].p(c, u) : (F(), f(s[_], 1, 1, () => {
|
|
3228
|
-
s[_] = null;
|
|
3229
|
-
}), G(), r = s[e], r ? r.p(c, u) : (r = s[e] = l[e](c), r.c()), a(r, 1), r.m(n.parentNode, n));
|
|
3230
|
-
},
|
|
3231
|
-
i(c) {
|
|
3232
|
-
i || (a(r), i = !0);
|
|
3233
|
-
},
|
|
3234
|
-
o(c) {
|
|
3235
|
-
f(r), i = !1;
|
|
3236
|
-
},
|
|
3237
|
-
d(c) {
|
|
3238
|
-
c && g(n), s[e].d(c);
|
|
3239
|
-
}
|
|
3240
|
-
};
|
|
3241
|
-
}
|
|
3242
|
-
function Pi(t, e, r) {
|
|
3243
|
-
let { $$slots: n = {}, $$scope: i } = e, { condition: l = !1 } = e;
|
|
3244
|
-
return t.$$set = (s) => {
|
|
3245
|
-
"condition" in s && r(0, l = s.condition), "$$scope" in s && r(2, i = s.$$scope);
|
|
3246
|
-
}, [l, n, i];
|
|
3247
|
-
}
|
|
3248
|
-
class Ni extends C {
|
|
3249
|
-
constructor(e) {
|
|
3250
|
-
super(), U(this, e, Pi, Ti, R, { condition: 0 });
|
|
3251
|
-
}
|
|
3252
|
-
}
|
|
3253
|
-
function Xe(t) {
|
|
3254
|
-
let e, r;
|
|
3255
|
-
return e = new Ei({
|
|
3256
|
-
props: { brandingInfo: (
|
|
3257
|
-
/*brandingInfo*/
|
|
3258
|
-
t[2]
|
|
3259
|
-
) }
|
|
3260
|
-
}), {
|
|
3261
|
-
c() {
|
|
3262
|
-
b(e.$$.fragment);
|
|
3263
|
-
},
|
|
3264
|
-
m(n, i) {
|
|
3265
|
-
I(e, n, i), r = !0;
|
|
3266
|
-
},
|
|
3267
|
-
p(n, i) {
|
|
3268
|
-
const l = {};
|
|
3269
|
-
i & /*brandingInfo*/
|
|
3270
|
-
4 && (l.brandingInfo = /*brandingInfo*/
|
|
3271
|
-
n[2]), e.$set(l);
|
|
3272
|
-
},
|
|
3273
|
-
i(n) {
|
|
3274
|
-
r || (a(e.$$.fragment, n), r = !0);
|
|
3275
|
-
},
|
|
3276
|
-
o(n) {
|
|
3277
|
-
f(e.$$.fragment, n), r = !1;
|
|
3278
|
-
},
|
|
3279
|
-
d(n) {
|
|
3280
|
-
w(e, n);
|
|
3281
|
-
}
|
|
3282
|
-
};
|
|
3283
|
-
}
|
|
3284
|
-
function Ri(t) {
|
|
3285
|
-
let e, r, n = (
|
|
3286
|
-
/*showHeader*/
|
|
3287
|
-
t[1] && Xe(t)
|
|
3288
|
-
);
|
|
3289
|
-
const i = (
|
|
3290
|
-
/*#slots*/
|
|
3291
|
-
t[3].default
|
|
3292
|
-
), l = K(
|
|
3293
|
-
i,
|
|
3294
|
-
t,
|
|
3295
|
-
/*$$scope*/
|
|
3296
|
-
t[4],
|
|
3297
|
-
null
|
|
3298
|
-
);
|
|
3299
|
-
return {
|
|
3300
|
-
c() {
|
|
3301
|
-
n && n.c(), e = P(), l && l.c();
|
|
3302
|
-
},
|
|
3303
|
-
m(s, o) {
|
|
3304
|
-
n && n.m(s, o), A(s, e, o), l && l.m(s, o), r = !0;
|
|
3305
|
-
},
|
|
3306
|
-
p(s, o) {
|
|
3307
|
-
/*showHeader*/
|
|
3308
|
-
s[1] ? n ? (n.p(s, o), o & /*showHeader*/
|
|
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
|
-
n = null;
|
|
3311
|
-
}), G()), l && l.p && (!r || o & /*$$scope*/
|
|
3312
|
-
16) && J(
|
|
3313
|
-
l,
|
|
3314
|
-
i,
|
|
3315
|
-
s,
|
|
3316
|
-
/*$$scope*/
|
|
3317
|
-
s[4],
|
|
3318
|
-
r ? j(
|
|
3319
|
-
i,
|
|
3320
|
-
/*$$scope*/
|
|
3321
|
-
s[4],
|
|
3322
|
-
o,
|
|
3323
|
-
null
|
|
3324
|
-
) : x(
|
|
3325
|
-
/*$$scope*/
|
|
3326
|
-
s[4]
|
|
3327
|
-
),
|
|
3328
|
-
null
|
|
3329
|
-
);
|
|
3330
|
-
},
|
|
3331
|
-
i(s) {
|
|
3332
|
-
r || (a(n), a(l, s), r = !0);
|
|
3333
|
-
},
|
|
3334
|
-
o(s) {
|
|
3335
|
-
f(n), f(l, s), r = !1;
|
|
3336
|
-
},
|
|
3337
|
-
d(s) {
|
|
3338
|
-
s && g(e), n && n.d(s), l && l.d(s);
|
|
3339
|
-
}
|
|
3340
|
-
};
|
|
3341
|
-
}
|
|
3342
|
-
function Ui(t) {
|
|
3343
|
-
let e, r;
|
|
3344
|
-
return e = new Di({
|
|
3345
|
-
props: {
|
|
3346
|
-
dark: (
|
|
3347
|
-
/*dark*/
|
|
3348
|
-
t[0]
|
|
3349
|
-
),
|
|
3350
|
-
$$slots: { default: [Ri] },
|
|
3351
|
-
$$scope: { ctx: t }
|
|
3352
|
-
}
|
|
3353
|
-
}), {
|
|
3354
|
-
c() {
|
|
3355
|
-
b(e.$$.fragment);
|
|
3356
|
-
},
|
|
3357
|
-
m(n, i) {
|
|
3358
|
-
I(e, n, i), r = !0;
|
|
3359
|
-
},
|
|
3360
|
-
p(n, [i]) {
|
|
3361
|
-
const l = {};
|
|
3362
|
-
i & /*dark*/
|
|
3363
|
-
1 && (l.dark = /*dark*/
|
|
3364
|
-
n[0]), i & /*$$scope, brandingInfo, showHeader*/
|
|
3365
|
-
22 && (l.$$scope = { dirty: i, ctx: n }), e.$set(l);
|
|
3366
|
-
},
|
|
3367
|
-
i(n) {
|
|
3368
|
-
r || (a(e.$$.fragment, n), r = !0);
|
|
3369
|
-
},
|
|
3370
|
-
o(n) {
|
|
3371
|
-
f(e.$$.fragment, n), r = !1;
|
|
3372
|
-
},
|
|
3373
|
-
d(n) {
|
|
3374
|
-
w(e, n);
|
|
3375
|
-
}
|
|
3376
|
-
};
|
|
3377
|
-
}
|
|
3378
|
-
function Ci(t, e, r) {
|
|
3379
|
-
let { $$slots: n = {}, $$scope: i } = e, { dark: l = !1 } = e, { showHeader: s = !1 } = e, { brandingInfo: o = null } = e;
|
|
3380
|
-
return t.$$set = (c) => {
|
|
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
|
-
}, [l, s, o, n, i];
|
|
3383
|
-
}
|
|
3384
|
-
class $t extends C {
|
|
3385
|
-
constructor(e) {
|
|
3386
|
-
super(), U(this, e, Ci, Ui, R, { dark: 0, showHeader: 1, brandingInfo: 2 });
|
|
3387
|
-
}
|
|
3388
|
-
}
|
|
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
|
-
static getPublicMessage(e) {
|
|
3392
|
-
switch (e) {
|
|
3393
|
-
case 0:
|
|
3394
|
-
return "Unknown error.";
|
|
3395
|
-
case 1:
|
|
3396
|
-
return "Purchase was cancelled.";
|
|
3397
|
-
case 2:
|
|
3398
|
-
return "There was a problem with the store.";
|
|
3399
|
-
case 3:
|
|
3400
|
-
return "The device or user is not allowed to make the purchase.";
|
|
3401
|
-
case 4:
|
|
3402
|
-
return "One or more of the arguments provided are invalid.";
|
|
3403
|
-
case 5:
|
|
3404
|
-
return "The product is not available for purchase.";
|
|
3405
|
-
case 6:
|
|
3406
|
-
return "This product is already active for the user.";
|
|
3407
|
-
case 7:
|
|
3408
|
-
return "There is already another active subscriber using the same receipt.";
|
|
3409
|
-
case 8:
|
|
3410
|
-
return "The receipt is not valid.";
|
|
3411
|
-
case 9:
|
|
3412
|
-
return "The receipt is missing.";
|
|
3413
|
-
case 10:
|
|
3414
|
-
return "Error performing request.";
|
|
3415
|
-
case 11:
|
|
3416
|
-
return "There was a credentials issue. Check the underlying error for more details.";
|
|
3417
|
-
case 12:
|
|
3418
|
-
return "Received unexpected response from the backend.";
|
|
3419
|
-
case 14:
|
|
3420
|
-
return "The app user id is not valid.";
|
|
3421
|
-
case 15:
|
|
3422
|
-
return "The operation is already in progress.";
|
|
3423
|
-
case 16:
|
|
3424
|
-
return "There was an unknown backend error.";
|
|
3425
|
-
case 17:
|
|
3426
|
-
return "Apple Subscription Key is invalid or not present. In order to provide subscription offers, you must first generate a subscription key. Please see https://docs.revenuecat.com/docs/ios-subscription-offers for more info.";
|
|
3427
|
-
case 18:
|
|
3428
|
-
return "The User is ineligible for that action.";
|
|
3429
|
-
case 19:
|
|
3430
|
-
return "App does not have sufficient permissions to make purchases.";
|
|
3431
|
-
case 20:
|
|
3432
|
-
return "The payment is pending.";
|
|
3433
|
-
case 21:
|
|
3434
|
-
return "One or more of the attributes sent could not be saved.";
|
|
3435
|
-
case 22:
|
|
3436
|
-
return "Called logOut but the current user is anonymous.";
|
|
3437
|
-
case 23:
|
|
3438
|
-
return "There is an issue with your configuration. Check the underlying error for more details.";
|
|
3439
|
-
case 24:
|
|
3440
|
-
return "There was a problem with the operation. Looks like we doesn't support that yet. Check the underlying error for more details.";
|
|
3441
|
-
case 25:
|
|
3442
|
-
return "A request for subscriber attributes returned none.";
|
|
3443
|
-
case 28:
|
|
3444
|
-
return "There was a problem related to the customer info.";
|
|
3445
|
-
case 36:
|
|
3446
|
-
return "Request failed signature verification. Please see https://rev.cat/trusted-entitlements for more info.";
|
|
3447
|
-
}
|
|
3448
|
-
}
|
|
3449
|
-
static getErrorCodeForBackendErrorCode(e) {
|
|
3450
|
-
switch (e) {
|
|
3451
|
-
case 7101:
|
|
3452
|
-
return 2;
|
|
3453
|
-
case 7102:
|
|
3454
|
-
return 7;
|
|
3455
|
-
case 7103:
|
|
3456
|
-
return 8;
|
|
3457
|
-
case 7107:
|
|
3458
|
-
case 7224:
|
|
3459
|
-
case 7225:
|
|
3460
|
-
return 11;
|
|
3461
|
-
case 7105:
|
|
3462
|
-
case 7106:
|
|
3463
|
-
return 4;
|
|
3464
|
-
case 7220:
|
|
3465
|
-
return 14;
|
|
3466
|
-
case 7229:
|
|
3467
|
-
return 2;
|
|
3468
|
-
case 7230:
|
|
3469
|
-
case 7e3:
|
|
3470
|
-
return 23;
|
|
3471
|
-
case 7231:
|
|
3472
|
-
return 2;
|
|
3473
|
-
case 7232:
|
|
3474
|
-
return 18;
|
|
3475
|
-
case 7263:
|
|
3476
|
-
case 7264:
|
|
3477
|
-
return 21;
|
|
3478
|
-
case 7104:
|
|
3479
|
-
case 7234:
|
|
3480
|
-
case 7226:
|
|
3481
|
-
case 7110:
|
|
3482
|
-
return 12;
|
|
3483
|
-
case 7662:
|
|
3484
|
-
return 24;
|
|
3485
|
-
}
|
|
3486
|
-
}
|
|
3487
|
-
static convertCodeToBackendErrorCode(e) {
|
|
3488
|
-
return e in Bt ? e : null;
|
|
3489
|
-
}
|
|
3490
|
-
static convertPurchaseFlowErrorCodeToErrorCode(e) {
|
|
3491
|
-
switch (e) {
|
|
3492
|
-
case O.ErrorSettingUpPurchase:
|
|
3493
|
-
return 2;
|
|
3494
|
-
case O.ErrorChargingPayment:
|
|
3495
|
-
return 20;
|
|
3496
|
-
case O.NetworkError:
|
|
3497
|
-
return 10;
|
|
3498
|
-
case O.MissingEmailError:
|
|
3499
|
-
return 4;
|
|
3500
|
-
case O.StripeError:
|
|
3501
|
-
return 2;
|
|
3502
|
-
case O.UnknownError:
|
|
3503
|
-
return 0;
|
|
3504
|
-
}
|
|
3505
|
-
}
|
|
3506
|
-
}
|
|
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
|
-
constructor(r, n, i) {
|
|
3510
|
-
super(n);
|
|
3511
|
-
Q(this, "toString", () => `PurchasesError(code: ${Te[this.errorCode]}, message: ${this.message})`);
|
|
3512
|
-
this.errorCode = r, this.underlyingErrorMessage = i;
|
|
3513
|
-
}
|
|
3514
|
-
/** @internal */
|
|
3515
|
-
static getForBackendError(r, n) {
|
|
3516
|
-
const i = $e.getErrorCodeForBackendErrorCode(r);
|
|
3517
|
-
return new z(
|
|
3518
|
-
i,
|
|
3519
|
-
$e.getPublicMessage(i),
|
|
3520
|
-
n
|
|
3521
|
-
);
|
|
3522
|
-
}
|
|
3523
|
-
/** @internal */
|
|
3524
|
-
static getForPurchasesFlowError(r) {
|
|
3525
|
-
return new z(
|
|
3526
|
-
$e.convertPurchaseFlowErrorCodeToErrorCode(
|
|
3527
|
-
r.errorCode
|
|
3528
|
-
),
|
|
3529
|
-
r.message,
|
|
3530
|
-
r.underlyingErrorMessage
|
|
3531
|
-
);
|
|
3532
|
-
}
|
|
3533
|
-
}
|
|
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;
|
|
3541
|
-
(function(t) {
|
|
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";
|
|
3543
|
-
})(ye || (ye = {}));
|
|
3544
|
-
function kt(t) {
|
|
3545
|
-
return t ? t.startsWith("rcb_sb_") : !1;
|
|
3546
|
-
}
|
|
3547
|
-
async function te(t, e, r, n) {
|
|
3548
|
-
const i = await fetch(t.url(), {
|
|
3549
|
-
method: t.method,
|
|
3550
|
-
headers: Gi(e, n),
|
|
3551
|
-
body: Fi(r)
|
|
3552
|
-
});
|
|
3553
|
-
return await Li(i, t), await i.json();
|
|
3554
|
-
}
|
|
3555
|
-
async function Li(t, e) {
|
|
3556
|
-
const r = t.status;
|
|
3557
|
-
if (r >= ye.INTERNAL_SERVER_ERROR)
|
|
3558
|
-
Ue(e, r, await t.text());
|
|
3559
|
-
else if (r >= ye.BAD_REQUEST) {
|
|
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;
|
|
3561
|
-
if (l != null) {
|
|
3562
|
-
const o = $e.convertCodeToBackendErrorCode(l);
|
|
3563
|
-
if (o == null)
|
|
3564
|
-
Ue(e, r, i);
|
|
3565
|
-
else
|
|
3566
|
-
throw z.getForBackendError(
|
|
3567
|
-
o,
|
|
3568
|
-
s
|
|
3569
|
-
);
|
|
3570
|
-
} else
|
|
3571
|
-
Ue(e, r, i);
|
|
3572
|
-
}
|
|
3573
|
-
}
|
|
3574
|
-
function Ue(t, e, r) {
|
|
3575
|
-
throw new z(
|
|
3576
|
-
Te.UnknownBackendError,
|
|
3577
|
-
`Unknown backend error. Request: ${t.name}. Status code: ${e}. Body: ${r}.`
|
|
3578
|
-
);
|
|
3579
|
-
}
|
|
3580
|
-
function Fi(t) {
|
|
3581
|
-
return t == null ? null : JSON.stringify(t);
|
|
3582
|
-
}
|
|
3583
|
-
function Gi(t, e) {
|
|
3584
|
-
let r = {
|
|
3585
|
-
Authorization: `Bearer ${t}`,
|
|
3586
|
-
"Content-Type": "application/json",
|
|
3587
|
-
Accept: "application/json",
|
|
3588
|
-
"X-Platform": "web",
|
|
3589
|
-
"X-Version": Si,
|
|
3590
|
-
"X-Is-Sandbox": `${kt(t)}`
|
|
3591
|
-
};
|
|
3592
|
-
return e != null && (r = { ...r, ...e }), r;
|
|
3593
|
-
}
|
|
3594
|
-
const yt = "/v1/subscribers", Pe = "/rcbilling/v1";
|
|
3595
|
-
class Yi {
|
|
3596
|
-
constructor(e) {
|
|
3597
|
-
Q(this, "appUserId");
|
|
3598
|
-
Q(this, "method", "GET");
|
|
3599
|
-
Q(this, "name", "getOfferings");
|
|
3600
|
-
this.appUserId = e;
|
|
3601
|
-
}
|
|
3602
|
-
url() {
|
|
3603
|
-
return `${se}${yt}/${this.appUserId}/offerings`;
|
|
3604
|
-
}
|
|
3605
|
-
}
|
|
3606
|
-
class Hi {
|
|
3607
|
-
constructor() {
|
|
3608
|
-
Q(this, "method", "POST");
|
|
3609
|
-
Q(this, "name", "subscribe");
|
|
3610
|
-
}
|
|
3611
|
-
url() {
|
|
3612
|
-
return `${se}${Pe}/subscribe`;
|
|
3613
|
-
}
|
|
3614
|
-
}
|
|
3615
|
-
class Ki {
|
|
3616
|
-
constructor(e, r) {
|
|
3617
|
-
Q(this, "method", "GET");
|
|
3618
|
-
Q(this, "name", "getProducts");
|
|
3619
|
-
Q(this, "appUserId");
|
|
3620
|
-
Q(this, "productIds");
|
|
3621
|
-
this.appUserId = e, this.productIds = r;
|
|
3622
|
-
}
|
|
3623
|
-
url() {
|
|
3624
|
-
return `${se}${Pe}/subscribers/${this.appUserId}/products?id=${this.productIds.join("&id=")}`;
|
|
3625
|
-
}
|
|
3626
|
-
}
|
|
3627
|
-
class ji {
|
|
3628
|
-
constructor(e) {
|
|
3629
|
-
Q(this, "method", "GET");
|
|
3630
|
-
Q(this, "name", "getCustomerInfo");
|
|
3631
|
-
Q(this, "appUserId");
|
|
3632
|
-
this.appUserId = e;
|
|
3633
|
-
}
|
|
3634
|
-
url() {
|
|
3635
|
-
return `${se}${yt}/${this.appUserId}`;
|
|
3636
|
-
}
|
|
3637
|
-
}
|
|
3638
|
-
class Ji {
|
|
3639
|
-
constructor() {
|
|
3640
|
-
Q(this, "method", "GET");
|
|
3641
|
-
Q(this, "name", "getBrandingInfo");
|
|
3642
|
-
}
|
|
3643
|
-
url() {
|
|
3644
|
-
return `${se}${Pe}/branding`;
|
|
3645
|
-
}
|
|
3646
|
-
}
|
|
3647
|
-
class xi {
|
|
3648
|
-
constructor(e) {
|
|
3649
|
-
Q(this, "method", "GET");
|
|
3650
|
-
Q(this, "name", "getCheckoutStatus");
|
|
3651
|
-
Q(this, "operationSessionId");
|
|
3652
|
-
this.operationSessionId = e;
|
|
3653
|
-
}
|
|
3654
|
-
url() {
|
|
3655
|
-
return `${se}${Pe}/checkout/${this.operationSessionId}`;
|
|
3656
|
-
}
|
|
3657
|
-
}
|
|
3658
|
-
class Vi {
|
|
3659
|
-
constructor(e) {
|
|
3660
|
-
Q(this, "API_KEY");
|
|
3661
|
-
this.API_KEY = e;
|
|
3662
|
-
}
|
|
3663
|
-
async getOfferings(e) {
|
|
3664
|
-
return await te(
|
|
3665
|
-
new Yi(e),
|
|
3666
|
-
this.API_KEY
|
|
3667
|
-
);
|
|
3668
|
-
}
|
|
3669
|
-
async getCustomerInfo(e) {
|
|
3670
|
-
return await te(
|
|
3671
|
-
new ji(e),
|
|
3672
|
-
this.API_KEY
|
|
3673
|
-
);
|
|
3674
|
-
}
|
|
3675
|
-
async getProducts(e, r) {
|
|
3676
|
-
return await te(
|
|
3677
|
-
new Ki(e, r),
|
|
3678
|
-
this.API_KEY
|
|
3679
|
-
);
|
|
3680
|
-
}
|
|
3681
|
-
async getBrandingInfo() {
|
|
3682
|
-
return await te(
|
|
3683
|
-
new Ji(),
|
|
3684
|
-
this.API_KEY
|
|
3685
|
-
);
|
|
3686
|
-
}
|
|
3687
|
-
async postSubscribe(e, r, n) {
|
|
3688
|
-
return await te(
|
|
3689
|
-
new Hi(),
|
|
3690
|
-
this.API_KEY,
|
|
3691
|
-
{
|
|
3692
|
-
app_user_id: e,
|
|
3693
|
-
product_id: r,
|
|
3694
|
-
email: n
|
|
3695
|
-
}
|
|
3696
|
-
);
|
|
3697
|
-
}
|
|
3698
|
-
async getCheckoutStatus(e) {
|
|
3699
|
-
return await te(
|
|
3700
|
-
new xi(e),
|
|
3701
|
-
this.API_KEY
|
|
3702
|
-
);
|
|
3703
|
-
}
|
|
3704
|
-
}
|
|
3705
|
-
function qi(t) {
|
|
3706
|
-
S(t, "svelte-ofxzf4", `.rcb-ui-container.svelte-ofxzf4{color-scheme:none;font-family:"PP Object Sans",
|
|
3707
|
-
-apple-system,
|
|
3708
|
-
BlinkMacSystemFont,
|
|
3709
|
-
avenir next,
|
|
3710
|
-
avenir,
|
|
3711
|
-
segoe ui,
|
|
3712
|
-
helvetica neue,
|
|
3713
|
-
helvetica,
|
|
3714
|
-
Cantarell,
|
|
3715
|
-
Ubuntu,
|
|
3716
|
-
roboto,
|
|
3717
|
-
noto,
|
|
3718
|
-
arial,
|
|
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}}`);
|
|
3720
|
-
}
|
|
3721
|
-
function Ze(t) {
|
|
3722
|
-
let e, r, n, i = (
|
|
3723
|
-
/*purchases*/
|
|
3724
|
-
t[1].isSandbox()
|
|
3725
|
-
), l;
|
|
3726
|
-
r = new $t({
|
|
3727
|
-
props: {
|
|
3728
|
-
dark: !0,
|
|
3729
|
-
showHeader: !0,
|
|
3730
|
-
brandingInfo: (
|
|
3731
|
-
/*brandingInfo*/
|
|
3732
|
-
t[3]
|
|
3733
|
-
),
|
|
3734
|
-
$$slots: { default: [Wi] },
|
|
3735
|
-
$$scope: { ctx: t }
|
|
3736
|
-
}
|
|
3737
|
-
});
|
|
3738
|
-
let s = i && tt();
|
|
3739
|
-
return {
|
|
3740
|
-
c() {
|
|
3741
|
-
e = $("div"), b(r.$$.fragment), n = P(), s && s.c(), h(e, "class", "rcb-ui-aside svelte-ofxzf4");
|
|
3742
|
-
},
|
|
3743
|
-
m(o, c) {
|
|
3744
|
-
A(o, e, c), I(r, e, null), T(e, n), s && s.m(e, null), l = !0;
|
|
3745
|
-
},
|
|
3746
|
-
p(o, c) {
|
|
3747
|
-
const u = {};
|
|
3748
|
-
c & /*brandingInfo*/
|
|
3749
|
-
8 && (u.brandingInfo = /*brandingInfo*/
|
|
3750
|
-
o[3]), c & /*$$scope, productDetails*/
|
|
3751
|
-
4194308 && (u.$$scope = { dirty: c, ctx: o }), r.$set(u), c & /*purchases*/
|
|
3752
|
-
2 && (i = /*purchases*/
|
|
3753
|
-
o[1].isSandbox()), i ? s ? c & /*purchases*/
|
|
3754
|
-
2 && a(s, 1) : (s = tt(), s.c(), a(s, 1), s.m(e, null)) : s && (F(), f(s, 1, 1, () => {
|
|
3755
|
-
s = null;
|
|
3756
|
-
}), G());
|
|
3757
|
-
},
|
|
3758
|
-
i(o) {
|
|
3759
|
-
l || (a(r.$$.fragment, o), a(s), l = !0);
|
|
3760
|
-
},
|
|
3761
|
-
o(o) {
|
|
3762
|
-
f(r.$$.fragment, o), f(s), l = !1;
|
|
3763
|
-
},
|
|
3764
|
-
d(o) {
|
|
3765
|
-
o && g(e), w(r), s && s.d();
|
|
3766
|
-
}
|
|
3767
|
-
};
|
|
3768
|
-
}
|
|
3769
|
-
function et(t) {
|
|
3770
|
-
let e, r;
|
|
3771
|
-
return e = new _t({
|
|
3772
|
-
props: {
|
|
3773
|
-
productDetails: (
|
|
3774
|
-
/*productDetails*/
|
|
3775
|
-
t[2]
|
|
3776
|
-
)
|
|
3777
|
-
}
|
|
3778
|
-
}), {
|
|
3779
|
-
c() {
|
|
3780
|
-
b(e.$$.fragment);
|
|
3781
|
-
},
|
|
3782
|
-
m(n, i) {
|
|
3783
|
-
I(e, n, i), r = !0;
|
|
3784
|
-
},
|
|
3785
|
-
p(n, i) {
|
|
3786
|
-
const l = {};
|
|
3787
|
-
i & /*productDetails*/
|
|
3788
|
-
4 && (l.productDetails = /*productDetails*/
|
|
3789
|
-
n[2]), e.$set(l);
|
|
3790
|
-
},
|
|
3791
|
-
i(n) {
|
|
3792
|
-
r || (a(e.$$.fragment, n), r = !0);
|
|
3793
|
-
},
|
|
3794
|
-
o(n) {
|
|
3795
|
-
f(e.$$.fragment, n), r = !1;
|
|
3796
|
-
},
|
|
3797
|
-
d(n) {
|
|
3798
|
-
w(e, n);
|
|
3799
|
-
}
|
|
3800
|
-
};
|
|
3801
|
-
}
|
|
3802
|
-
function Wi(t) {
|
|
3803
|
-
let e, r, n = (
|
|
3804
|
-
/*productDetails*/
|
|
3805
|
-
t[2] && et(t)
|
|
3806
|
-
);
|
|
3807
|
-
return {
|
|
3808
|
-
c() {
|
|
3809
|
-
n && n.c(), e = X();
|
|
3810
|
-
},
|
|
3811
|
-
m(i, l) {
|
|
3812
|
-
n && n.m(i, l), A(i, e, l), r = !0;
|
|
3813
|
-
},
|
|
3814
|
-
p(i, l) {
|
|
3815
|
-
/*productDetails*/
|
|
3816
|
-
i[2] ? n ? (n.p(i, l), l & /*productDetails*/
|
|
3817
|
-
4 && a(n, 1)) : (n = et(i), n.c(), a(n, 1), n.m(e.parentNode, e)) : n && (F(), f(n, 1, 1, () => {
|
|
3818
|
-
n = null;
|
|
3819
|
-
}), G());
|
|
3820
|
-
},
|
|
3821
|
-
i(i) {
|
|
3822
|
-
r || (a(n), r = !0);
|
|
3823
|
-
},
|
|
3824
|
-
o(i) {
|
|
3825
|
-
f(n), r = !1;
|
|
3826
|
-
},
|
|
3827
|
-
d(i) {
|
|
3828
|
-
i && g(e), n && n.d(i);
|
|
3829
|
-
}
|
|
3830
|
-
};
|
|
3831
|
-
}
|
|
3832
|
-
function tt(t) {
|
|
3833
|
-
let e, r;
|
|
3834
|
-
return e = new un({}), {
|
|
3835
|
-
c() {
|
|
3836
|
-
b(e.$$.fragment);
|
|
3837
|
-
},
|
|
3838
|
-
m(n, i) {
|
|
3839
|
-
I(e, n, i), r = !0;
|
|
3840
|
-
},
|
|
3841
|
-
i(n) {
|
|
3842
|
-
r || (a(e.$$.fragment, n), r = !0);
|
|
3843
|
-
},
|
|
3844
|
-
o(n) {
|
|
3845
|
-
f(e.$$.fragment, n), r = !1;
|
|
3846
|
-
},
|
|
3847
|
-
d(n) {
|
|
3848
|
-
w(e, n);
|
|
3849
|
-
}
|
|
3850
|
-
};
|
|
3851
|
-
}
|
|
3852
|
-
function nt(t) {
|
|
3853
|
-
let e, r;
|
|
3854
|
-
return e = new _t({
|
|
3855
|
-
props: {
|
|
3856
|
-
productDetails: (
|
|
3857
|
-
/*productDetails*/
|
|
3858
|
-
t[2]
|
|
3859
|
-
)
|
|
3860
|
-
}
|
|
3861
|
-
}), {
|
|
3862
|
-
c() {
|
|
3863
|
-
b(e.$$.fragment);
|
|
3864
|
-
},
|
|
3865
|
-
m(n, i) {
|
|
3866
|
-
I(e, n, i), r = !0;
|
|
3867
|
-
},
|
|
3868
|
-
p(n, i) {
|
|
3869
|
-
const l = {};
|
|
3870
|
-
i & /*productDetails*/
|
|
3871
|
-
4 && (l.productDetails = /*productDetails*/
|
|
3872
|
-
n[2]), e.$set(l);
|
|
3873
|
-
},
|
|
3874
|
-
i(n) {
|
|
3875
|
-
r || (a(e.$$.fragment, n), r = !0);
|
|
3876
|
-
},
|
|
3877
|
-
o(n) {
|
|
3878
|
-
f(e.$$.fragment, n), r = !1;
|
|
3879
|
-
},
|
|
3880
|
-
d(n) {
|
|
3881
|
-
w(e, n);
|
|
3882
|
-
}
|
|
3883
|
-
};
|
|
3884
|
-
}
|
|
3885
|
-
function rt(t) {
|
|
3886
|
-
let e, r;
|
|
3887
|
-
return e = new Qe({}), {
|
|
3888
|
-
c() {
|
|
3889
|
-
b(e.$$.fragment);
|
|
3890
|
-
},
|
|
3891
|
-
m(n, i) {
|
|
3892
|
-
I(e, n, i), r = !0;
|
|
3893
|
-
},
|
|
3894
|
-
i(n) {
|
|
3895
|
-
r || (a(e.$$.fragment, n), r = !0);
|
|
3896
|
-
},
|
|
3897
|
-
o(n) {
|
|
3898
|
-
f(e.$$.fragment, n), r = !1;
|
|
3899
|
-
},
|
|
3900
|
-
d(n) {
|
|
3901
|
-
w(e, n);
|
|
3902
|
-
}
|
|
3903
|
-
};
|
|
3904
|
-
}
|
|
3905
|
-
function it(t) {
|
|
3906
|
-
let e, r;
|
|
3907
|
-
return e = new Qe({}), {
|
|
3908
|
-
c() {
|
|
3909
|
-
b(e.$$.fragment);
|
|
3910
|
-
},
|
|
3911
|
-
m(n, i) {
|
|
3912
|
-
I(e, n, i), r = !0;
|
|
3913
|
-
},
|
|
3914
|
-
i(n) {
|
|
3915
|
-
r || (a(e.$$.fragment, n), r = !0);
|
|
3916
|
-
},
|
|
3917
|
-
o(n) {
|
|
3918
|
-
f(e.$$.fragment, n), r = !1;
|
|
3919
|
-
},
|
|
3920
|
-
d(n) {
|
|
3921
|
-
w(e, n);
|
|
3922
|
-
}
|
|
3923
|
-
};
|
|
3924
|
-
}
|
|
3925
|
-
function lt(t) {
|
|
3926
|
-
let e, r;
|
|
3927
|
-
return e = new fi({
|
|
3928
|
-
props: { onContinue: (
|
|
3929
|
-
/*handleContinue*/
|
|
3930
|
-
t[9]
|
|
3931
|
-
) }
|
|
3932
|
-
}), {
|
|
3933
|
-
c() {
|
|
3934
|
-
b(e.$$.fragment);
|
|
3935
|
-
},
|
|
3936
|
-
m(n, i) {
|
|
3937
|
-
I(e, n, i), r = !0;
|
|
3938
|
-
},
|
|
3939
|
-
p: D,
|
|
3940
|
-
i(n) {
|
|
3941
|
-
r || (a(e.$$.fragment, n), r = !0);
|
|
3942
|
-
},
|
|
3943
|
-
o(n) {
|
|
3944
|
-
f(e.$$.fragment, n), r = !1;
|
|
3945
|
-
},
|
|
3946
|
-
d(n) {
|
|
3947
|
-
w(e, n);
|
|
3948
|
-
}
|
|
3949
|
-
};
|
|
3950
|
-
}
|
|
3951
|
-
function st(t) {
|
|
3952
|
-
let e, r;
|
|
3953
|
-
return e = new ri({
|
|
3954
|
-
props: {
|
|
3955
|
-
paymentInfoCollectionMetadata: (
|
|
3956
|
-
/*paymentInfoCollectionMetadata*/
|
|
3957
|
-
t[4]
|
|
3958
|
-
),
|
|
3959
|
-
onContinue: (
|
|
3960
|
-
/*handleContinue*/
|
|
3961
|
-
t[9]
|
|
3962
|
-
),
|
|
3963
|
-
onClose: (
|
|
3964
|
-
/*handleClose*/
|
|
3965
|
-
t[8]
|
|
3966
|
-
),
|
|
3967
|
-
onError: (
|
|
3968
|
-
/*handleError*/
|
|
3969
|
-
t[10]
|
|
3970
|
-
)
|
|
3971
|
-
}
|
|
3972
|
-
}), {
|
|
3973
|
-
c() {
|
|
3974
|
-
b(e.$$.fragment);
|
|
3975
|
-
},
|
|
3976
|
-
m(n, i) {
|
|
3977
|
-
I(e, n, i), r = !0;
|
|
3978
|
-
},
|
|
3979
|
-
p(n, i) {
|
|
3980
|
-
const l = {};
|
|
3981
|
-
i & /*paymentInfoCollectionMetadata*/
|
|
3982
|
-
16 && (l.paymentInfoCollectionMetadata = /*paymentInfoCollectionMetadata*/
|
|
3983
|
-
n[4]), e.$set(l);
|
|
3984
|
-
},
|
|
3985
|
-
i(n) {
|
|
3986
|
-
r || (a(e.$$.fragment, n), r = !0);
|
|
3987
|
-
},
|
|
3988
|
-
o(n) {
|
|
3989
|
-
f(e.$$.fragment, n), r = !1;
|
|
3990
|
-
},
|
|
3991
|
-
d(n) {
|
|
3992
|
-
w(e, n);
|
|
3993
|
-
}
|
|
3994
|
-
};
|
|
3995
|
-
}
|
|
3996
|
-
function ot(t) {
|
|
3997
|
-
let e, r;
|
|
3998
|
-
return e = new Qe({}), {
|
|
3999
|
-
c() {
|
|
4000
|
-
b(e.$$.fragment);
|
|
4001
|
-
},
|
|
4002
|
-
m(n, i) {
|
|
4003
|
-
I(e, n, i), r = !0;
|
|
4004
|
-
},
|
|
4005
|
-
i(n) {
|
|
4006
|
-
r || (a(e.$$.fragment, n), r = !0);
|
|
4007
|
-
},
|
|
4008
|
-
o(n) {
|
|
4009
|
-
f(e.$$.fragment, n), r = !1;
|
|
4010
|
-
},
|
|
4011
|
-
d(n) {
|
|
4012
|
-
w(e, n);
|
|
4013
|
-
}
|
|
4014
|
-
};
|
|
4015
|
-
}
|
|
4016
|
-
function ct(t) {
|
|
4017
|
-
var n;
|
|
4018
|
-
let e, r;
|
|
4019
|
-
return e = new dr({
|
|
4020
|
-
props: {
|
|
4021
|
-
brandingInfo: (
|
|
4022
|
-
/*brandingInfo*/
|
|
4023
|
-
t[3]
|
|
4024
|
-
),
|
|
4025
|
-
lastError: (
|
|
4026
|
-
/*lastError*/
|
|
4027
|
-
t[5] ?? new Y(O.UnknownError, "Unknown error without state set.")
|
|
4028
|
-
),
|
|
4029
|
-
supportEmail: (
|
|
4030
|
-
/*brandingInfo*/
|
|
4031
|
-
(n = t[3]) == null ? void 0 : n.seller_company_support_email
|
|
4032
|
-
),
|
|
4033
|
-
onContinue: (
|
|
4034
|
-
/*closeWithError*/
|
|
4035
|
-
t[11]
|
|
4036
|
-
)
|
|
4037
|
-
}
|
|
4038
|
-
}), {
|
|
4039
|
-
c() {
|
|
4040
|
-
b(e.$$.fragment);
|
|
4041
|
-
},
|
|
4042
|
-
m(i, l) {
|
|
4043
|
-
I(e, i, l), r = !0;
|
|
4044
|
-
},
|
|
4045
|
-
p(i, l) {
|
|
4046
|
-
var o;
|
|
4047
|
-
const s = {};
|
|
4048
|
-
l & /*brandingInfo*/
|
|
4049
|
-
8 && (s.brandingInfo = /*brandingInfo*/
|
|
4050
|
-
i[3]), l & /*lastError*/
|
|
4051
|
-
32 && (s.lastError = /*lastError*/
|
|
4052
|
-
i[5] ?? new Y(O.UnknownError, "Unknown error without state set.")), l & /*brandingInfo*/
|
|
4053
|
-
8 && (s.supportEmail = /*brandingInfo*/
|
|
4054
|
-
(o = i[3]) == null ? void 0 : o.seller_company_support_email), e.$set(s);
|
|
4055
|
-
},
|
|
4056
|
-
i(i) {
|
|
4057
|
-
r || (a(e.$$.fragment, i), r = !0);
|
|
4058
|
-
},
|
|
4059
|
-
o(i) {
|
|
4060
|
-
f(e.$$.fragment, i), r = !1;
|
|
4061
|
-
},
|
|
4062
|
-
d(i) {
|
|
4063
|
-
w(e, i);
|
|
4064
|
-
}
|
|
4065
|
-
};
|
|
4066
|
-
}
|
|
4067
|
-
function at(t) {
|
|
4068
|
-
let e, r;
|
|
4069
|
-
return e = new yr({
|
|
4070
|
-
props: {
|
|
4071
|
-
brandingInfo: (
|
|
4072
|
-
/*brandingInfo*/
|
|
4073
|
-
t[3]
|
|
4074
|
-
),
|
|
4075
|
-
onContinue: (
|
|
4076
|
-
/*handleContinue*/
|
|
4077
|
-
t[9]
|
|
4078
|
-
)
|
|
4079
|
-
}
|
|
4080
|
-
}), {
|
|
4081
|
-
c() {
|
|
4082
|
-
b(e.$$.fragment);
|
|
4083
|
-
},
|
|
4084
|
-
m(n, i) {
|
|
4085
|
-
I(e, n, i), r = !0;
|
|
4086
|
-
},
|
|
4087
|
-
p(n, i) {
|
|
4088
|
-
const l = {};
|
|
4089
|
-
i & /*brandingInfo*/
|
|
4090
|
-
8 && (l.brandingInfo = /*brandingInfo*/
|
|
4091
|
-
n[3]), e.$set(l);
|
|
4092
|
-
},
|
|
4093
|
-
i(n) {
|
|
4094
|
-
r || (a(e.$$.fragment, n), r = !0);
|
|
4095
|
-
},
|
|
4096
|
-
o(n) {
|
|
4097
|
-
f(e.$$.fragment, n), r = !1;
|
|
4098
|
-
},
|
|
4099
|
-
d(n) {
|
|
4100
|
-
w(e, n);
|
|
4101
|
-
}
|
|
4102
|
-
};
|
|
4103
|
-
}
|
|
4104
|
-
function zi(t) {
|
|
4105
|
-
let e, r, n, i, l, s, o, c, u, _ = (
|
|
4106
|
-
/*state*/
|
|
4107
|
-
t[6] === "present-offer" && /*productDetails*/
|
|
4108
|
-
t[2] && nt(t)
|
|
4109
|
-
), m = (
|
|
4110
|
-
/*state*/
|
|
4111
|
-
t[6] === "present-offer" && !/*productDetails*/
|
|
4112
|
-
t[2] && rt()
|
|
4113
|
-
), B = (
|
|
4114
|
-
/*state*/
|
|
4115
|
-
t[6] === "polling-purchase-status" && it()
|
|
4116
|
-
), k = (
|
|
4117
|
-
/*state*/
|
|
4118
|
-
t[6] === "needs-auth-info" && lt(t)
|
|
4119
|
-
), E = (
|
|
4120
|
-
/*state*/
|
|
4121
|
-
t[6] === "needs-payment-info" && /*paymentInfoCollectionMetadata*/
|
|
4122
|
-
t[4] && st(t)
|
|
4123
|
-
), y = (
|
|
4124
|
-
/*state*/
|
|
4125
|
-
t[6] === "loading" && ot()
|
|
4126
|
-
), M = (
|
|
4127
|
-
/*state*/
|
|
4128
|
-
t[6] === "error" && ct(t)
|
|
4129
|
-
), N = (
|
|
4130
|
-
/*state*/
|
|
4131
|
-
t[6] === "success" && at(t)
|
|
4132
|
-
);
|
|
4133
|
-
return {
|
|
4134
|
-
c() {
|
|
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();
|
|
4136
|
-
},
|
|
4137
|
-
m(d, 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;
|
|
4139
|
-
},
|
|
4140
|
-
p(d, p) {
|
|
4141
|
-
/*state*/
|
|
4142
|
-
d[6] === "present-offer" && /*productDetails*/
|
|
4143
|
-
d[2] ? _ ? (_.p(d, p), p & /*state, productDetails*/
|
|
4144
|
-
68 && a(_, 1)) : (_ = nt(d), _.c(), a(_, 1), _.m(e.parentNode, e)) : _ && (F(), f(_, 1, 1, () => {
|
|
4145
|
-
_ = null;
|
|
4146
|
-
}), G()), /*state*/
|
|
4147
|
-
d[6] === "present-offer" && !/*productDetails*/
|
|
4148
|
-
d[2] ? m ? p & /*state, productDetails*/
|
|
4149
|
-
68 && a(m, 1) : (m = rt(), m.c(), a(m, 1), m.m(r.parentNode, r)) : m && (F(), f(m, 1, 1, () => {
|
|
4150
|
-
m = null;
|
|
4151
|
-
}), G()), /*state*/
|
|
4152
|
-
d[6] === "polling-purchase-status" ? B ? p & /*state*/
|
|
4153
|
-
64 && a(B, 1) : (B = it(), B.c(), a(B, 1), B.m(n.parentNode, n)) : B && (F(), f(B, 1, 1, () => {
|
|
4154
|
-
B = null;
|
|
4155
|
-
}), G()), /*state*/
|
|
4156
|
-
d[6] === "needs-auth-info" ? k ? (k.p(d, p), p & /*state*/
|
|
4157
|
-
64 && a(k, 1)) : (k = lt(d), k.c(), a(k, 1), k.m(i.parentNode, i)) : k && (F(), f(k, 1, 1, () => {
|
|
4158
|
-
k = null;
|
|
4159
|
-
}), G()), /*state*/
|
|
4160
|
-
d[6] === "needs-payment-info" && /*paymentInfoCollectionMetadata*/
|
|
4161
|
-
d[4] ? E ? (E.p(d, p), p & /*state, paymentInfoCollectionMetadata*/
|
|
4162
|
-
80 && a(E, 1)) : (E = st(d), E.c(), a(E, 1), E.m(l.parentNode, l)) : E && (F(), f(E, 1, 1, () => {
|
|
4163
|
-
E = null;
|
|
4164
|
-
}), G()), /*state*/
|
|
4165
|
-
d[6] === "loading" ? y ? p & /*state*/
|
|
4166
|
-
64 && a(y, 1) : (y = ot(), y.c(), a(y, 1), y.m(s.parentNode, s)) : y && (F(), f(y, 1, 1, () => {
|
|
4167
|
-
y = null;
|
|
4168
|
-
}), G()), /*state*/
|
|
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;
|
|
4172
|
-
}), G()), /*state*/
|
|
4173
|
-
d[6] === "success" ? N ? (N.p(d, p), p & /*state*/
|
|
4174
|
-
64 && a(N, 1)) : (N = at(d), N.c(), a(N, 1), N.m(c.parentNode, c)) : N && (F(), f(N, 1, 1, () => {
|
|
4175
|
-
N = null;
|
|
4176
|
-
}), G());
|
|
4177
|
-
},
|
|
4178
|
-
i(d) {
|
|
4179
|
-
u || (a(_), a(m), a(B), a(k), a(E), a(y), a(M), a(N), u = !0);
|
|
4180
|
-
},
|
|
4181
|
-
o(d) {
|
|
4182
|
-
f(_), f(m), f(B), f(k), f(E), f(y), f(M), f(N), u = !1;
|
|
4183
|
-
},
|
|
4184
|
-
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);
|
|
4186
|
-
}
|
|
4187
|
-
};
|
|
4188
|
-
}
|
|
4189
|
-
function Xi(t) {
|
|
4190
|
-
let e, r = (
|
|
4191
|
-
/*statesWhereOfferDetailsAreShown*/
|
|
4192
|
-
t[7].includes(
|
|
4193
|
-
/*state*/
|
|
4194
|
-
t[6]
|
|
4195
|
-
)
|
|
4196
|
-
), n, i, l, s = r && Ze(t);
|
|
4197
|
-
return i = new $t({
|
|
4198
|
-
props: {
|
|
4199
|
-
$$slots: { default: [zi] },
|
|
4200
|
-
$$scope: { ctx: t }
|
|
4201
|
-
}
|
|
4202
|
-
}), {
|
|
4203
|
-
c() {
|
|
4204
|
-
e = $("div"), s && s.c(), n = P(), b(i.$$.fragment), h(e, "class", "rcb-ui-layout svelte-ofxzf4");
|
|
4205
|
-
},
|
|
4206
|
-
m(o, c) {
|
|
4207
|
-
A(o, e, c), s && s.m(e, null), T(e, n), I(i, e, null), l = !0;
|
|
4208
|
-
},
|
|
4209
|
-
p(o, c) {
|
|
4210
|
-
c & /*state*/
|
|
4211
|
-
64 && (r = /*statesWhereOfferDetailsAreShown*/
|
|
4212
|
-
o[7].includes(
|
|
4213
|
-
/*state*/
|
|
4214
|
-
o[6]
|
|
4215
|
-
)), r ? s ? (s.p(o, c), c & /*state*/
|
|
4216
|
-
64 && a(s, 1)) : (s = Ze(o), s.c(), a(s, 1), s.m(e, n)) : s && (F(), f(s, 1, 1, () => {
|
|
4217
|
-
s = null;
|
|
4218
|
-
}), G());
|
|
4219
|
-
const u = {};
|
|
4220
|
-
c & /*$$scope, brandingInfo, state, lastError, paymentInfoCollectionMetadata, productDetails*/
|
|
4221
|
-
4194428 && (u.$$scope = { dirty: c, ctx: o }), i.$set(u);
|
|
4222
|
-
},
|
|
4223
|
-
i(o) {
|
|
4224
|
-
l || (a(s), a(i.$$.fragment, o), l = !0);
|
|
4225
|
-
},
|
|
4226
|
-
o(o) {
|
|
4227
|
-
f(s), f(i.$$.fragment, o), l = !1;
|
|
4228
|
-
},
|
|
4229
|
-
d(o) {
|
|
4230
|
-
o && g(e), s && s.d(), w(i);
|
|
4231
|
-
}
|
|
4232
|
-
};
|
|
4233
|
-
}
|
|
4234
|
-
function Zi(t) {
|
|
4235
|
-
let e, r, n;
|
|
4236
|
-
return r = new Ni({
|
|
4237
|
-
props: {
|
|
4238
|
-
condition: (
|
|
4239
|
-
/*asModal*/
|
|
4240
|
-
t[0]
|
|
4241
|
-
),
|
|
4242
|
-
$$slots: { default: [Xi] },
|
|
4243
|
-
$$scope: { ctx: t }
|
|
4244
|
-
}
|
|
4245
|
-
}), {
|
|
4246
|
-
c() {
|
|
4247
|
-
e = $("div"), b(r.$$.fragment), h(e, "class", "rcb-ui-container svelte-ofxzf4");
|
|
4248
|
-
},
|
|
4249
|
-
m(i, l) {
|
|
4250
|
-
A(i, e, l), I(r, e, null), n = !0;
|
|
4251
|
-
},
|
|
4252
|
-
p(i, [l]) {
|
|
4253
|
-
const s = {};
|
|
4254
|
-
l & /*asModal*/
|
|
4255
|
-
1 && (s.condition = /*asModal*/
|
|
4256
|
-
i[0]), l & /*$$scope, brandingInfo, state, lastError, paymentInfoCollectionMetadata, productDetails, purchases*/
|
|
4257
|
-
4194430 && (s.$$scope = { dirty: l, ctx: i }), r.$set(s);
|
|
4258
|
-
},
|
|
4259
|
-
i(i) {
|
|
4260
|
-
n || (a(r.$$.fragment, i), n = !0);
|
|
4261
|
-
},
|
|
4262
|
-
o(i) {
|
|
4263
|
-
f(r.$$.fragment, i), n = !1;
|
|
4264
|
-
},
|
|
4265
|
-
d(i) {
|
|
4266
|
-
i && g(e), w(r);
|
|
4267
|
-
}
|
|
4268
|
-
};
|
|
4269
|
-
}
|
|
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;
|
|
4274
|
-
let d = "present-offer";
|
|
4275
|
-
const p = ["present-offer", "needs-auth-info", "needs-payment-info", "loading"];
|
|
4276
|
-
ve(async () => {
|
|
4277
|
-
if (r(2, k = s.rcBillingProduct), r(3, E = await m.getBrandingInfo()), d === "present-offer") {
|
|
4278
|
-
i ? Le() : r(6, d = "needs-auth-info");
|
|
4279
|
-
return;
|
|
4280
|
-
}
|
|
4281
|
-
});
|
|
4282
|
-
const Dt = () => {
|
|
4283
|
-
u();
|
|
4284
|
-
}, Le = () => {
|
|
4285
|
-
if (N === null) {
|
|
4286
|
-
oe(new Y(O.ErrorSettingUpPurchase, "Product ID was not set before purchase."));
|
|
4287
|
-
return;
|
|
4288
|
-
} else
|
|
4289
|
-
r(6, d = "loading");
|
|
4290
|
-
if (!i) {
|
|
4291
|
-
oe(new Y(O.MissingEmailError));
|
|
4292
|
-
return;
|
|
4293
|
-
}
|
|
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);
|
|
4297
|
-
return;
|
|
4298
|
-
}
|
|
4299
|
-
if (v.next_action === "completed") {
|
|
4300
|
-
r(6, d = "success");
|
|
4301
|
-
return;
|
|
4302
|
-
}
|
|
4303
|
-
}).catch((v) => {
|
|
4304
|
-
oe(new Y(O.ErrorSettingUpPurchase, v.message, v.underlyingErrorMessage));
|
|
4305
|
-
});
|
|
4306
|
-
}, vt = (v) => {
|
|
4307
|
-
if (d === "needs-auth-info") {
|
|
4308
|
-
v && r(12, i = v.email), Le();
|
|
4309
|
-
return;
|
|
4310
|
-
}
|
|
4311
|
-
if (d === "needs-payment-info") {
|
|
4312
|
-
r(6, d = "polling-purchase-status"), B.pollCurrentPurchaseForCompletion().then(() => {
|
|
4313
|
-
r(6, d = "success");
|
|
4314
|
-
}).catch((Mt) => {
|
|
4315
|
-
oe(Mt);
|
|
4316
|
-
});
|
|
4317
|
-
return;
|
|
4318
|
-
}
|
|
4319
|
-
if (d === "success" || d === "error") {
|
|
4320
|
-
o();
|
|
4321
|
-
return;
|
|
4322
|
-
}
|
|
4323
|
-
r(6, d = "success");
|
|
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."));
|
|
4328
|
-
};
|
|
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);
|
|
4331
|
-
}, [
|
|
4332
|
-
n,
|
|
4333
|
-
_,
|
|
4334
|
-
k,
|
|
4335
|
-
E,
|
|
4336
|
-
y,
|
|
4337
|
-
M,
|
|
4338
|
-
d,
|
|
4339
|
-
p,
|
|
4340
|
-
Dt,
|
|
4341
|
-
vt,
|
|
4342
|
-
oe,
|
|
4343
|
-
Qt,
|
|
4344
|
-
i,
|
|
4345
|
-
l,
|
|
4346
|
-
s,
|
|
4347
|
-
o,
|
|
4348
|
-
c,
|
|
4349
|
-
u,
|
|
4350
|
-
m,
|
|
4351
|
-
B
|
|
4352
|
-
];
|
|
4353
|
-
}
|
|
4354
|
-
class tl extends C {
|
|
4355
|
-
constructor(e) {
|
|
4356
|
-
super(), U(
|
|
4357
|
-
this,
|
|
4358
|
-
e,
|
|
4359
|
-
el,
|
|
4360
|
-
Zi,
|
|
4361
|
-
R,
|
|
4362
|
-
{
|
|
4363
|
-
asModal: 0,
|
|
4364
|
-
customerEmail: 12,
|
|
4365
|
-
appUserId: 13,
|
|
4366
|
-
rcPackage: 14,
|
|
4367
|
-
onFinished: 15,
|
|
4368
|
-
onError: 16,
|
|
4369
|
-
onClose: 17,
|
|
4370
|
-
purchases: 1,
|
|
4371
|
-
backend: 18,
|
|
4372
|
-
purchaseOperationHelper: 19
|
|
4373
|
-
},
|
|
4374
|
-
qi
|
|
4375
|
-
);
|
|
4376
|
-
}
|
|
4377
|
-
}
|
|
4378
|
-
function nl(t) {
|
|
4379
|
-
return t.expires_date == null ? !0 : new Date(t.expires_date) > /* @__PURE__ */ new Date();
|
|
4380
|
-
}
|
|
4381
|
-
function rl(t, e, r) {
|
|
4382
|
-
return {
|
|
4383
|
-
identifier: t,
|
|
4384
|
-
isActive: nl(e),
|
|
4385
|
-
willRenew: sl(e, r),
|
|
4386
|
-
store: (r == null ? void 0 : r.store) ?? "unknown",
|
|
4387
|
-
originalPurchaseDate: new Date(e.purchase_date),
|
|
4388
|
-
expirationDate: Be(e.expires_date),
|
|
4389
|
-
productIdentifier: e.product_identifier,
|
|
4390
|
-
unsubscribeDetectedAt: Be(
|
|
4391
|
-
r == null ? void 0 : r.unsubscribe_detected_at
|
|
4392
|
-
),
|
|
4393
|
-
billingIssueDetectedAt: Be(
|
|
4394
|
-
r == null ? void 0 : r.billing_issues_detected_at
|
|
4395
|
-
),
|
|
4396
|
-
isSandbox: (r == null ? void 0 : r.is_sandbox) ?? !1,
|
|
4397
|
-
periodType: (r == null ? void 0 : r.period_type) ?? "normal"
|
|
4398
|
-
};
|
|
4399
|
-
}
|
|
4400
|
-
function il(t, e) {
|
|
4401
|
-
const r = {}, n = {};
|
|
4402
|
-
for (const i in t) {
|
|
4403
|
-
const l = e[i] ?? null, s = rl(
|
|
4404
|
-
i,
|
|
4405
|
-
t[i],
|
|
4406
|
-
l
|
|
4407
|
-
);
|
|
4408
|
-
r[i] = s, s.isActive && (n[i] = s);
|
|
4409
|
-
}
|
|
4410
|
-
return {
|
|
4411
|
-
all: r,
|
|
4412
|
-
active: n
|
|
4413
|
-
};
|
|
4414
|
-
}
|
|
4415
|
-
function Be(t) {
|
|
4416
|
-
return t == null ? null : new Date(t);
|
|
4417
|
-
}
|
|
4418
|
-
function ll(t) {
|
|
4419
|
-
const e = cl(t), r = t.subscriber;
|
|
4420
|
-
return {
|
|
4421
|
-
entitlements: il(
|
|
4422
|
-
r.entitlements,
|
|
4423
|
-
r.subscriptions
|
|
4424
|
-
),
|
|
4425
|
-
allExpirationDatesByProduct: e,
|
|
4426
|
-
allPurchaseDatesByProduct: ol(t),
|
|
4427
|
-
activeSubscriptions: al(e),
|
|
4428
|
-
managementURL: r.management_url,
|
|
4429
|
-
requestDate: new Date(t.request_date),
|
|
4430
|
-
firstSeenDate: new Date(r.first_seen),
|
|
4431
|
-
originalPurchaseDate: Be(
|
|
4432
|
-
r.original_purchase_date
|
|
4433
|
-
),
|
|
4434
|
-
originalAppUserId: t.subscriber.original_app_user_id
|
|
4435
|
-
};
|
|
4436
|
-
}
|
|
4437
|
-
function sl(t, e) {
|
|
4438
|
-
if (e == null)
|
|
4439
|
-
return !1;
|
|
4440
|
-
const r = e.store == "promotional", n = t.expires_date == null, i = e.unsubscribe_detected_at != null, l = e.billing_issues_detected_at != null;
|
|
4441
|
-
return !(r || n || i || l);
|
|
4442
|
-
}
|
|
4443
|
-
function ol(t) {
|
|
4444
|
-
const e = {};
|
|
4445
|
-
for (const r in t.subscriber.subscriptions) {
|
|
4446
|
-
const n = t.subscriber.subscriptions[r];
|
|
4447
|
-
e[r] = new Date(
|
|
4448
|
-
n.purchase_date
|
|
4449
|
-
);
|
|
4450
|
-
}
|
|
4451
|
-
return e;
|
|
4452
|
-
}
|
|
4453
|
-
function cl(t) {
|
|
4454
|
-
const e = {};
|
|
4455
|
-
for (const r in t.subscriber.subscriptions) {
|
|
4456
|
-
const n = t.subscriber.subscriptions[r];
|
|
4457
|
-
n.expires_date == null ? e[r] = null : e[r] = new Date(
|
|
4458
|
-
n.expires_date
|
|
4459
|
-
);
|
|
4460
|
-
}
|
|
4461
|
-
return e;
|
|
4462
|
-
}
|
|
4463
|
-
function al(t) {
|
|
4464
|
-
const e = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Date();
|
|
4465
|
-
for (const n in t) {
|
|
4466
|
-
const i = t[n];
|
|
4467
|
-
(i == null || i > r) && e.add(n);
|
|
4468
|
-
}
|
|
4469
|
-
return e;
|
|
4470
|
-
}
|
|
4471
|
-
const H = class H {
|
|
4472
|
-
/** @internal */
|
|
4473
|
-
constructor(e, r) {
|
|
4474
|
-
/** @internal */
|
|
4475
|
-
Q(this, "_API_KEY");
|
|
4476
|
-
/** @internal */
|
|
4477
|
-
Q(this, "_appUserId");
|
|
4478
|
-
/** @internal */
|
|
4479
|
-
Q(this, "backend");
|
|
4480
|
-
/** @internal */
|
|
4481
|
-
Q(this, "purchaseOperationHelper");
|
|
4482
|
-
/** @internal */
|
|
4483
|
-
Q(this, "toOfferings", (e, r) => {
|
|
4484
|
-
const n = e.offerings.find(
|
|
4485
|
-
(o) => o.identifier === e.current_offering_id
|
|
4486
|
-
) ?? null, i = {};
|
|
4487
|
-
r.product_details.forEach((o) => {
|
|
4488
|
-
i[o.identifier] = o;
|
|
4489
|
-
});
|
|
4490
|
-
const l = n == null ? null : Ge(n, i), s = {};
|
|
4491
|
-
return e.offerings.forEach((o) => {
|
|
4492
|
-
const c = Ge(o, i);
|
|
4493
|
-
c != null && (s[o.identifier] = c);
|
|
4494
|
-
}), Object.keys(s).length == 0 && console.debug(
|
|
4495
|
-
"Empty offerings. Please make sure you've configured offerings correctly in the RevenueCat dashboard and that the products are properly configured."
|
|
4496
|
-
), {
|
|
4497
|
-
all: s,
|
|
4498
|
-
current: l
|
|
4499
|
-
};
|
|
4500
|
-
});
|
|
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.initializePurchases} method when possible.
|
|
4506
|
-
* @throws {@link UninitializedPurchasesError} if the instance has not been initialized yet.
|
|
4507
|
-
*/
|
|
4508
|
-
static getInstance() {
|
|
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
|
-
* Initializes 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 initializePurchases(e, r) {
|
|
4527
|
-
return H.instance !== void 0 ? (console.warn(
|
|
4528
|
-
"Purchases is already initialized. Ignoring and returning existing instance."
|
|
4529
|
-
), H.getInstance()) : (H.instance = new H(e, r), H.getInstance());
|
|
4530
|
-
}
|
|
4531
|
-
/**
|
|
4532
|
-
* Fetch the configured offerings for this user. You can configure these
|
|
4533
|
-
* in the RevenueCat dashboard.
|
|
4534
|
-
*/
|
|
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(
|
|
4537
|
-
e,
|
|
4538
|
-
n
|
|
4539
|
-
);
|
|
4540
|
-
return this.logMissingProductIds(n, i.product_details), this.toOfferings(r, i);
|
|
4541
|
-
}
|
|
4542
|
-
/**
|
|
4543
|
-
* Convenience method to check whether a user is entitled to a specific
|
|
4544
|
-
* entitlement. This will use {@link Purchases.getCustomerInfo} under the hood.
|
|
4545
|
-
* @param entitlementIdentifier - The entitlement identifier you want to check.
|
|
4546
|
-
* @returns Whether the user is entitled to the specified entitlement
|
|
4547
|
-
* @throws {@link PurchasesError} if there is an error while fetching the customer info.
|
|
4548
|
-
* @see {@link Purchases.getCustomerInfo}
|
|
4549
|
-
*/
|
|
4550
|
-
async isEntitledTo(e) {
|
|
4551
|
-
const r = await this.getCustomerInfo();
|
|
4552
|
-
return e in r.entitlements.active;
|
|
4553
|
-
}
|
|
4554
|
-
/**
|
|
4555
|
-
* Method to perform a purchase for a given package. You can obtain the
|
|
4556
|
-
* package from {@link Purchases.getOfferings}. This method will present the purchase
|
|
4557
|
-
* form on your site, using the given HTML element as the mount point, if
|
|
4558
|
-
* provided, or as a modal if not.
|
|
4559
|
-
* @param rcPackage - The package you want to purchase. Obtained from {@link Purchases.getOfferings}.
|
|
4560
|
-
* @param customerEmail - The email of the user. If null, RevenueCat will ask the customer for their email.
|
|
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.
|
|
4562
|
-
* @returns The customer info after the purchase is completed successfuly.
|
|
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.
|
|
4564
|
-
*/
|
|
4565
|
-
purchasePackage(e, r, n) {
|
|
4566
|
-
let i = n ?? document.getElementById("rcb-ui-root");
|
|
4567
|
-
if (i === null) {
|
|
4568
|
-
const c = document.createElement("div");
|
|
4569
|
-
c.className = "rcb-ui-root", document.body.appendChild(c), i = c;
|
|
4570
|
-
}
|
|
4571
|
-
if (i === null)
|
|
4572
|
-
throw new Error(
|
|
4573
|
-
"Could not generate a mount point for the billing widget"
|
|
4574
|
-
);
|
|
4575
|
-
const l = i, s = !n, o = this._appUserId;
|
|
4576
|
-
return new Promise((c, u) => {
|
|
4577
|
-
new tl({
|
|
4578
|
-
target: l,
|
|
4579
|
-
props: {
|
|
4580
|
-
appUserId: o,
|
|
4581
|
-
rcPackage: e,
|
|
4582
|
-
customerEmail: r,
|
|
4583
|
-
onFinished: async () => {
|
|
4584
|
-
l.innerHTML = "", c({
|
|
4585
|
-
customerInfo: await this._getCustomerInfoForUserId(o)
|
|
4586
|
-
});
|
|
4587
|
-
},
|
|
4588
|
-
onClose: () => {
|
|
4589
|
-
l.innerHTML = "", u(new z(Te.UserCancelledError));
|
|
4590
|
-
},
|
|
4591
|
-
onError: (_) => {
|
|
4592
|
-
l.innerHTML = "", u(z.getForPurchasesFlowError(_));
|
|
4593
|
-
},
|
|
4594
|
-
purchases: this,
|
|
4595
|
-
backend: this.backend,
|
|
4596
|
-
purchaseOperationHelper: this.purchaseOperationHelper,
|
|
4597
|
-
asModal: s
|
|
4598
|
-
}
|
|
4599
|
-
});
|
|
4600
|
-
});
|
|
4601
|
-
}
|
|
4602
|
-
/**
|
|
4603
|
-
* Gets latest available {@link CustomerInfo}.
|
|
4604
|
-
* @returns The latest {@link CustomerInfo}.
|
|
4605
|
-
* @throws {@link PurchasesError} if there is an error while fetching the customer info.
|
|
4606
|
-
*/
|
|
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();
|
|
4623
|
-
}
|
|
4624
|
-
/** @internal */
|
|
4625
|
-
logMissingProductIds(e, r) {
|
|
4626
|
-
const n = {};
|
|
4627
|
-
r.forEach(
|
|
4628
|
-
(l) => n[l.identifier] = l
|
|
4629
|
-
);
|
|
4630
|
-
const i = [];
|
|
4631
|
-
e.forEach((l) => {
|
|
4632
|
-
n[l] === void 0 && i.push(l);
|
|
4633
|
-
}), i.length > 0 && console.debug(
|
|
4634
|
-
"Could not find product data for product ids: ",
|
|
4635
|
-
i,
|
|
4636
|
-
". Please check that your product configuration is correct."
|
|
4637
|
-
);
|
|
4638
|
-
}
|
|
4639
|
-
/**
|
|
4640
|
-
* @returns Whether the SDK is using a sandbox API Key.
|
|
4641
|
-
*/
|
|
4642
|
-
isSandbox() {
|
|
4643
|
-
return kt(this._API_KEY);
|
|
4644
|
-
}
|
|
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;
|
|
4662
|
-
export {
|
|
4663
|
-
Te as ErrorCode,
|
|
4664
|
-
Rt as PackageType,
|
|
4665
|
-
ut as Purchases,
|
|
4666
|
-
z as PurchasesError,
|
|
4667
|
-
Oi as UninitializedPurchasesError
|
|
4668
|
-
};
|