@revenuecat/purchases-js 0.0.10 → 0.0.11

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.
@@ -17,7 +17,7 @@ const it = (t) => ({
17
17
  identifier: t.identifier,
18
18
  rcBillingProduct: lt(r)
19
19
  };
20
- }, Re = (t, e) => {
20
+ }, Te = (t, e) => {
21
21
  const r = t.packages.map((n) => ot(n, e)).filter((n) => n != null);
22
22
  return r.length == 0 ? null : {
23
23
  id: t.identifier,
@@ -25,18 +25,10 @@ const it = (t) => ({
25
25
  displayName: t.description,
26
26
  packages: r
27
27
  };
28
- }, st = (t) => {
29
- var e;
30
- return {
31
- nextAction: t.next_action,
32
- data: {
33
- clientSecret: ((e = t.data) == null ? void 0 : e.client_secret) ?? void 0
34
- }
35
- };
36
28
  };
37
29
  function T() {
38
30
  }
39
- function ct(t, e) {
31
+ function st(t, e) {
40
32
  for (const r in e)
41
33
  t[r] = e[r];
42
34
  return (
@@ -47,23 +39,23 @@ function ct(t, e) {
47
39
  function xe(t) {
48
40
  return t();
49
41
  }
50
- function De() {
42
+ function Me() {
51
43
  return /* @__PURE__ */ Object.create(null);
52
44
  }
53
- function le(t) {
45
+ function oe(t) {
54
46
  t.forEach(xe);
55
47
  }
56
48
  function me(t) {
57
49
  return typeof t == "function";
58
50
  }
59
- function N(t, e) {
51
+ function y(t, e) {
60
52
  return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
61
53
  }
62
54
  let se;
63
55
  function de(t, e) {
64
56
  return t === e ? !0 : (se || (se = document.createElement("a")), se.href = e, t === se.href);
65
57
  }
66
- function ft(t) {
58
+ function ct(t) {
67
59
  return Object.keys(t).length === 0;
68
60
  }
69
61
  function Y(t, e, r, n) {
@@ -73,9 +65,9 @@ function Y(t, e, r, n) {
73
65
  }
74
66
  }
75
67
  function Ve(t, e, r, n) {
76
- return t[1] && n ? ct(r.ctx.slice(), t[1](n(e))) : r.ctx;
68
+ return t[1] && n ? st(r.ctx.slice(), t[1](n(e))) : r.ctx;
77
69
  }
78
- function H(t, e, r, n) {
70
+ function G(t, e, r, n) {
79
71
  if (t[2] && n) {
80
72
  const i = t[2](n(r));
81
73
  if (e.dirty === void 0)
@@ -90,13 +82,13 @@ function H(t, e, r, n) {
90
82
  }
91
83
  return e.dirty;
92
84
  }
93
- function K(t, e, r, n, i, l) {
85
+ function H(t, e, r, n, i, l) {
94
86
  if (i) {
95
87
  const o = Ve(e, r, n, l);
96
88
  t.p(o, i);
97
89
  }
98
90
  }
99
- function j(t) {
91
+ function K(t) {
100
92
  if (t.ctx.length > 32) {
101
93
  const e = [], r = t.ctx.length / 32;
102
94
  for (let n = 0; n < r; n++)
@@ -105,20 +97,20 @@ function j(t) {
105
97
  }
106
98
  return -1;
107
99
  }
108
- function re(t) {
100
+ function ie(t) {
109
101
  return t ?? "";
110
102
  }
111
103
  function M(t, e) {
112
104
  t.appendChild(e);
113
105
  }
114
106
  function L(t, e, r) {
115
- const n = ut(t);
107
+ const n = ft(t);
116
108
  if (!n.getElementById(e)) {
117
- const i = D("style");
118
- i.id = e, i.textContent = r, at(n, i);
109
+ const i = R("style");
110
+ i.id = e, i.textContent = r, ut(n, i);
119
111
  }
120
112
  }
121
- function ut(t) {
113
+ function ft(t) {
122
114
  if (!t)
123
115
  return document;
124
116
  const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
@@ -128,7 +120,7 @@ function ut(t) {
128
120
  e
129
121
  ) : t.ownerDocument;
130
122
  }
131
- function at(t, e) {
123
+ function ut(t, e) {
132
124
  return M(
133
125
  /** @type {Document} */
134
126
  t.head || t,
@@ -141,7 +133,7 @@ function _(t, e, r) {
141
133
  function g(t) {
142
134
  t.parentNode && t.parentNode.removeChild(t);
143
135
  }
144
- function D(t) {
136
+ function R(t) {
145
137
  return document.createElement(t);
146
138
  }
147
139
  function S(t) {
@@ -150,7 +142,7 @@ function S(t) {
150
142
  function U() {
151
143
  return S(" ");
152
144
  }
153
- function X() {
145
+ function z() {
154
146
  return S("");
155
147
  }
156
148
  function Ee(t, e, r, n) {
@@ -164,47 +156,47 @@ function qe(t) {
164
156
  function I(t, e, r) {
165
157
  r == null ? t.removeAttribute(e) : t.getAttribute(e) !== r && t.setAttribute(e, r);
166
158
  }
167
- const At = ["width", "height"];
168
- function mt(t, e) {
159
+ const at = ["width", "height"];
160
+ function At(t, e) {
169
161
  const r = Object.getOwnPropertyDescriptors(t.__proto__);
170
162
  for (const n in e)
171
- 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 && At.indexOf(n) === -1 ? t[n] = e[n] : I(t, n, e[n]);
163
+ 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 && at.indexOf(n) === -1 ? t[n] = e[n] : I(t, n, e[n]);
172
164
  }
173
- function dt(t, e) {
165
+ function mt(t, e) {
174
166
  Object.keys(e).forEach((r) => {
175
- Et(t, r, e[r]);
167
+ dt(t, r, e[r]);
176
168
  });
177
169
  }
178
- function Et(t, e, r) {
170
+ function dt(t, e, r) {
179
171
  const n = e.toLowerCase();
180
172
  n in t ? t[n] = typeof t[n] == "boolean" && r === "" ? !0 : r : e in t ? t[e] = typeof t[e] == "boolean" && r === "" ? !0 : r : I(t, e, r);
181
173
  }
182
- function gt(t) {
183
- return /-/.test(t) ? dt : mt;
174
+ function Et(t) {
175
+ return /-/.test(t) ? mt : At;
184
176
  }
185
- function _t(t) {
177
+ function gt(t) {
186
178
  return Array.from(t.childNodes);
187
179
  }
188
180
  function te(t, e) {
189
181
  e = "" + e, t.data !== e && (t.data = /** @type {string} */
190
182
  e);
191
183
  }
192
- function Te(t, e) {
184
+ function ye(t, e) {
193
185
  t.value = e ?? "";
194
186
  }
195
- function pt(t, e, { bubbles: r = !1, cancelable: n = !1 } = {}) {
187
+ function _t(t, e, { bubbles: r = !1, cancelable: n = !1 } = {}) {
196
188
  return new CustomEvent(t, { detail: e, bubbles: r, cancelable: n });
197
189
  }
198
- let ie;
199
- function ne(t) {
200
- ie = t;
190
+ let le;
191
+ function re(t) {
192
+ le = t;
201
193
  }
202
194
  function ge() {
203
- if (!ie)
195
+ if (!le)
204
196
  throw new Error("Function called outside component initialization");
205
- return ie;
197
+ return le;
206
198
  }
207
- function be(t) {
199
+ function Ce(t) {
208
200
  ge().$$.on_mount.push(t);
209
201
  }
210
202
  function ht() {
@@ -212,7 +204,7 @@ function ht() {
212
204
  return (e, r, { cancelable: n = !1 } = {}) => {
213
205
  const i = t.$$.callbacks[e];
214
206
  if (i) {
215
- const l = pt(
207
+ const l = _t(
216
208
  /** @type {string} */
217
209
  e,
218
210
  r,
@@ -225,79 +217,79 @@ function ht() {
225
217
  return !0;
226
218
  };
227
219
  }
228
- function It(t, e) {
220
+ function pt(t, e) {
229
221
  return ge().$$.context.set(t, e), e;
230
222
  }
231
- function wt(t) {
223
+ function It(t) {
232
224
  return ge().$$.context.get(t);
233
225
  }
234
- function Bt(t, e) {
226
+ function wt(t, e) {
235
227
  const r = t.$$.callbacks[e.type];
236
228
  r && r.slice().forEach((n) => n.call(this, e));
237
229
  }
238
- const q = [], ae = [];
239
- let W = [];
240
- const Ie = [], bt = /* @__PURE__ */ Promise.resolve();
241
- let we = !1;
242
- function Qt() {
243
- we || (we = !0, bt.then(We));
230
+ const V = [], ae = [];
231
+ let q = [];
232
+ const we = [], Bt = /* @__PURE__ */ Promise.resolve();
233
+ let Be = !1;
234
+ function bt() {
235
+ Be || (Be = !0, Bt.then(We));
244
236
  }
245
- function Be(t) {
246
- W.push(t);
237
+ function be(t) {
238
+ q.push(t);
247
239
  }
248
- function Ct(t) {
249
- Ie.push(t);
240
+ function Qt(t) {
241
+ we.push(t);
250
242
  }
251
- const pe = /* @__PURE__ */ new Set();
252
- let V = 0;
243
+ const he = /* @__PURE__ */ new Set();
244
+ let x = 0;
253
245
  function We() {
254
- if (V !== 0)
246
+ if (x !== 0)
255
247
  return;
256
- const t = ie;
248
+ const t = le;
257
249
  do {
258
250
  try {
259
- for (; V < q.length; ) {
260
- const e = q[V];
261
- V++, ne(e), Rt(e.$$);
251
+ for (; x < V.length; ) {
252
+ const e = V[x];
253
+ x++, re(e), Ct(e.$$);
262
254
  }
263
255
  } catch (e) {
264
- throw q.length = 0, V = 0, e;
256
+ throw V.length = 0, x = 0, e;
265
257
  }
266
- for (ne(null), q.length = 0, V = 0; ae.length; )
258
+ for (re(null), V.length = 0, x = 0; ae.length; )
267
259
  ae.pop()();
268
- for (let e = 0; e < W.length; e += 1) {
269
- const r = W[e];
270
- pe.has(r) || (pe.add(r), r());
260
+ for (let e = 0; e < q.length; e += 1) {
261
+ const r = q[e];
262
+ he.has(r) || (he.add(r), r());
271
263
  }
272
- W.length = 0;
273
- } while (q.length);
274
- for (; Ie.length; )
275
- Ie.pop()();
276
- we = !1, pe.clear(), ne(t);
264
+ q.length = 0;
265
+ } while (V.length);
266
+ for (; we.length; )
267
+ we.pop()();
268
+ Be = !1, he.clear(), re(t);
277
269
  }
278
- function Rt(t) {
270
+ function Ct(t) {
279
271
  if (t.fragment !== null) {
280
- t.update(), le(t.before_update);
272
+ t.update(), oe(t.before_update);
281
273
  const e = t.dirty;
282
- t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(Be);
274
+ t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(be);
283
275
  }
284
276
  }
285
277
  function Dt(t) {
286
278
  const e = [], r = [];
287
- W.forEach((n) => t.indexOf(n) === -1 ? e.push(n) : r.push(n)), r.forEach((n) => n()), W = e;
279
+ q.forEach((n) => t.indexOf(n) === -1 ? e.push(n) : r.push(n)), r.forEach((n) => n()), q = e;
288
280
  }
289
281
  const ue = /* @__PURE__ */ new Set();
290
- let x;
282
+ let $;
291
283
  function P() {
292
- x = {
284
+ $ = {
293
285
  r: 0,
294
286
  c: [],
295
- p: x
287
+ p: $
296
288
  // parent group
297
289
  };
298
290
  }
299
291
  function F() {
300
- x.r || le(x.c), x = x.p;
292
+ $.r || oe($.c), $ = $.p;
301
293
  }
302
294
  function u(t, e) {
303
295
  t && t.i && (ue.delete(t), t.i(e));
@@ -306,13 +298,13 @@ function A(t, e, r, n) {
306
298
  if (t && t.o) {
307
299
  if (ue.has(t))
308
300
  return;
309
- ue.add(t), x.c.push(() => {
301
+ ue.add(t), $.c.push(() => {
310
302
  ue.delete(t), n && (r && t.d(1), n());
311
303
  }), t.o(e);
312
304
  } else
313
305
  n && n();
314
306
  }
315
- function Tt(t, e, r) {
307
+ function Rt(t, e, r) {
316
308
  const n = t.$$.props[e];
317
309
  n !== void 0 && (t.$$.bound[n] = r, r(t.$$.ctx[n]));
318
310
  }
@@ -321,21 +313,21 @@ function Q(t) {
321
313
  }
322
314
  function w(t, e, r) {
323
315
  const { fragment: n, after_update: i } = t.$$;
324
- n && n.m(e, r), Be(() => {
316
+ n && n.m(e, r), be(() => {
325
317
  const l = t.$$.on_mount.map(xe).filter(me);
326
- t.$$.on_destroy ? t.$$.on_destroy.push(...l) : le(l), t.$$.on_mount = [];
327
- }), i.forEach(Be);
318
+ t.$$.on_destroy ? t.$$.on_destroy.push(...l) : oe(l), t.$$.on_mount = [];
319
+ }), i.forEach(be);
328
320
  }
329
321
  function B(t, e) {
330
322
  const r = t.$$;
331
- r.fragment !== null && (Dt(r.after_update), le(r.on_destroy), r.fragment && r.fragment.d(e), r.on_destroy = r.fragment = null, r.ctx = []);
323
+ r.fragment !== null && (Dt(r.after_update), oe(r.on_destroy), r.fragment && r.fragment.d(e), r.on_destroy = r.fragment = null, r.ctx = []);
332
324
  }
333
- function Mt(t, e) {
334
- t.$$.dirty[0] === -1 && (q.push(t), Qt(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
325
+ function Tt(t, e) {
326
+ t.$$.dirty[0] === -1 && (V.push(t), bt(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
335
327
  }
336
- function y(t, e, r, n, i, l, o = null, s = [-1]) {
337
- const c = ie;
338
- ne(t);
328
+ function N(t, e, r, n, i, l, o = null, s = [-1]) {
329
+ const c = le;
330
+ re(t);
339
331
  const f = t.$$ = {
340
332
  fragment: null,
341
333
  ctx: [],
@@ -343,7 +335,7 @@ function y(t, e, r, n, i, l, o = null, s = [-1]) {
343
335
  props: l,
344
336
  update: T,
345
337
  not_equal: i,
346
- bound: De(),
338
+ bound: Me(),
347
339
  // lifecycle
348
340
  on_mount: [],
349
341
  on_destroy: [],
@@ -352,25 +344,25 @@ function y(t, e, r, n, i, l, o = null, s = [-1]) {
352
344
  after_update: [],
353
345
  context: new Map(e.context || (c ? c.$$.context : [])),
354
346
  // everything else
355
- callbacks: De(),
347
+ callbacks: Me(),
356
348
  dirty: s,
357
349
  skip_bound: !1,
358
350
  root: e.target || c.$$.root
359
351
  };
360
352
  o && o(f.root);
361
353
  let a = !1;
362
- if (f.ctx = r ? r(t, e.props || {}, (m, h, ...E) => {
363
- const C = E.length ? E[0] : h;
364
- return f.ctx && i(f.ctx[m], f.ctx[m] = C) && (!f.skip_bound && f.bound[m] && f.bound[m](C), a && Mt(t, m)), h;
365
- }) : [], f.update(), a = !0, le(f.before_update), f.fragment = n ? n(f.ctx) : !1, e.target) {
354
+ if (f.ctx = r ? r(t, e.props || {}, (m, p, ...E) => {
355
+ const C = E.length ? E[0] : p;
356
+ return f.ctx && i(f.ctx[m], f.ctx[m] = C) && (!f.skip_bound && f.bound[m] && f.bound[m](C), a && Tt(t, m)), p;
357
+ }) : [], f.update(), a = !0, oe(f.before_update), f.fragment = n ? n(f.ctx) : !1, e.target) {
366
358
  if (e.hydrate) {
367
- const m = _t(e.target);
359
+ const m = gt(e.target);
368
360
  f.fragment && f.fragment.l(m), m.forEach(g);
369
361
  } else
370
362
  f.fragment && f.fragment.c();
371
363
  e.intro && u(t.$$.fragment), w(t, e.target, e.anchor), We();
372
364
  }
373
- ne(c);
365
+ re(c);
374
366
  }
375
367
  class k {
376
368
  constructor() {
@@ -415,19 +407,19 @@ class k {
415
407
  * @returns {void}
416
408
  */
417
409
  $set(e) {
418
- this.$$set && !ft(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
410
+ this.$$set && !ct(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
419
411
  }
420
412
  }
421
- const Nt = "4";
422
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Nt);
413
+ const Mt = "4";
414
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Mt);
423
415
  function yt(t) {
424
416
  L(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}");
425
417
  }
426
- function kt(t) {
418
+ function Nt(t) {
427
419
  let e;
428
420
  return {
429
421
  c() {
430
- e = D("aside"), e.innerHTML = "<span>Sandbox Mode</span>", I(e, "class", "svelte-8uc6s0");
422
+ e = R("aside"), e.innerHTML = "<span>Sandbox Mode</span>", I(e, "class", "svelte-8uc6s0");
431
423
  },
432
424
  m(r, n) {
433
425
  _(r, e, n);
@@ -440,15 +432,15 @@ function kt(t) {
440
432
  }
441
433
  };
442
434
  }
443
- class Ot extends k {
435
+ class kt extends k {
444
436
  constructor(e) {
445
- super(), y(this, e, null, kt, N, {}, yt);
437
+ super(), N(this, e, null, Nt, y, {}, yt);
446
438
  }
447
439
  }
448
- function Ut(t) {
440
+ function Ot(t) {
449
441
  L(t, "svelte-ujomz3", ".rcb-modal-section.svelte-ujomz3{padding:0.5rem 0rem;display:flex}.rcb-modal-section.svelte-ujomz3:last-of-type{padding:0}");
450
442
  }
451
- function he(t) {
443
+ function pe(t) {
452
444
  let e, r;
453
445
  const n = (
454
446
  /*#slots*/
@@ -462,14 +454,14 @@ function he(t) {
462
454
  );
463
455
  return {
464
456
  c() {
465
- e = D(
457
+ e = R(
466
458
  /*as*/
467
459
  t[0]
468
- ), i && i.c(), gt(
460
+ ), i && i.c(), Et(
469
461
  /*as*/
470
462
  t[0]
471
463
  )(e, {
472
- class: re("rcb-modal-section") + " svelte-ujomz3"
464
+ class: ie("rcb-modal-section") + " svelte-ujomz3"
473
465
  });
474
466
  },
475
467
  m(l, o) {
@@ -477,19 +469,19 @@ function he(t) {
477
469
  },
478
470
  p(l, o) {
479
471
  i && i.p && (!r || o & /*$$scope*/
480
- 2) && K(
472
+ 2) && H(
481
473
  i,
482
474
  n,
483
475
  l,
484
476
  /*$$scope*/
485
477
  l[1],
486
- r ? H(
478
+ r ? G(
487
479
  n,
488
480
  /*$$scope*/
489
481
  l[1],
490
482
  o,
491
483
  null
492
- ) : j(
484
+ ) : K(
493
485
  /*$$scope*/
494
486
  l[1]
495
487
  ),
@@ -507,29 +499,29 @@ function he(t) {
507
499
  }
508
500
  };
509
501
  }
510
- function vt(t) {
502
+ function Ut(t) {
511
503
  let e = (
512
504
  /*as*/
513
505
  t[0]
514
506
  ), r, n, i = (
515
507
  /*as*/
516
- t[0] && he(t)
508
+ t[0] && pe(t)
517
509
  );
518
510
  return {
519
511
  c() {
520
- i && i.c(), r = X();
512
+ i && i.c(), r = z();
521
513
  },
522
514
  m(l, o) {
523
515
  i && i.m(l, o), _(l, r, o), n = !0;
524
516
  },
525
517
  p(l, [o]) {
526
518
  /*as*/
527
- l[0] ? e ? N(
519
+ l[0] ? e ? y(
528
520
  e,
529
521
  /*as*/
530
522
  l[0]
531
- ) ? (i.d(1), i = he(l), e = /*as*/
532
- l[0], i.c(), i.m(r.parentNode, r)) : i.p(l, o) : (i = he(l), e = /*as*/
523
+ ) ? (i.d(1), i = pe(l), e = /*as*/
524
+ l[0], i.c(), i.m(r.parentNode, r)) : i.p(l, o) : (i = pe(l), e = /*as*/
533
525
  l[0], i.c(), i.m(r.parentNode, r)) : e && (i.d(1), i = null, e = /*as*/
534
526
  l[0]);
535
527
  },
@@ -544,72 +536,72 @@ function vt(t) {
544
536
  }
545
537
  };
546
538
  }
547
- function Lt(t, e, r) {
539
+ function vt(t, e, r) {
548
540
  let { $$slots: n = {}, $$scope: i } = e, { as: l = "section" } = e;
549
541
  return t.$$set = (o) => {
550
542
  "as" in o && r(0, l = o.as), "$$scope" in o && r(1, i = o.$$scope);
551
543
  }, [l, i, n];
552
544
  }
553
- class z extends k {
545
+ class W extends k {
554
546
  constructor(e) {
555
- super(), y(this, e, Lt, vt, N, { as: 0 }, Ut);
547
+ super(), N(this, e, vt, Ut, y, { as: 0 }, Ot);
556
548
  }
557
549
  }
558
- const Pt = {
550
+ const Lt = {
559
551
  Y: "year",
560
552
  M: "month",
561
553
  W: "week",
562
554
  D: "day",
563
555
  H: "hour"
564
- }, Me = (t, e) => {
556
+ }, Ne = (t, e) => {
565
557
  const r = t / 100;
566
558
  return new Intl.NumberFormat("en-US", {
567
559
  style: "currency",
568
560
  currency: e
569
561
  }).format(r);
570
- }, Ne = (t) => {
562
+ }, ke = (t) => {
571
563
  const e = t.slice(-1);
572
- return e === "D" ? "daily" : `${Pt[e]}ly`;
564
+ return e === "D" ? "daily" : `${Lt[e]}ly`;
573
565
  };
574
- function Ft(t) {
566
+ function Pt(t) {
575
567
  L(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}");
576
568
  }
577
- function St(t) {
569
+ function Ft(t) {
578
570
  let e, r, n = (
579
571
  /*productDetails*/
580
572
  t[0].displayName + ""
581
573
  ), i, l, o, s = (
582
574
  /*productDetails*/
583
575
  t[0].currentPrice.currency + ""
584
- ), c, f = " ", a, m = Me(
576
+ ), c, f = " ", a, m = Ne(
585
577
  /*productDetails*/
586
578
  t[0].currentPrice.amount,
587
579
  /*productDetails*/
588
580
  t[0].currentPrice.currency
589
- ) + "", h, E, C, p, d = Ne(
581
+ ) + "", p, E, C, h, d = ke(
590
582
  /*productDetails*/
591
583
  t[0].normalPeriodDuration
592
584
  ) + "", b;
593
585
  return {
594
586
  c() {
595
- e = D("div"), r = D("span"), i = S(n), l = U(), o = D("span"), c = S(s), a = S(f), h = S(m), E = U(), C = D("span"), p = S("Billed "), b = S(d), I(o, "class", "rcb-product-price svelte-1oa6nu8"), I(C, "class", "rcb-product-duration svelte-1oa6nu8"), I(e, "class", "rcb-pricing-info svelte-1oa6nu8");
587
+ e = R("div"), r = R("span"), i = S(n), l = U(), o = R("span"), c = S(s), a = S(f), p = S(m), E = U(), C = R("span"), h = S("Billed "), b = S(d), I(o, "class", "rcb-product-price svelte-1oa6nu8"), I(C, "class", "rcb-product-duration svelte-1oa6nu8"), I(e, "class", "rcb-pricing-info svelte-1oa6nu8");
596
588
  },
597
- m(O, R) {
598
- _(O, e, R), M(e, r), M(r, i), M(e, l), M(e, o), M(o, c), M(o, a), M(o, h), M(e, E), M(e, C), M(C, p), M(C, b);
589
+ m(O, D) {
590
+ _(O, e, D), M(e, r), M(r, i), M(e, l), M(e, o), M(o, c), M(o, a), M(o, p), M(e, E), M(e, C), M(C, h), M(C, b);
599
591
  },
600
- p(O, R) {
601
- R & /*productDetails*/
592
+ p(O, D) {
593
+ D & /*productDetails*/
602
594
  1 && n !== (n = /*productDetails*/
603
- O[0].displayName + "") && te(i, n), R & /*productDetails*/
595
+ O[0].displayName + "") && te(i, n), D & /*productDetails*/
604
596
  1 && s !== (s = /*productDetails*/
605
- O[0].currentPrice.currency + "") && te(c, s), R & /*productDetails*/
606
- 1 && m !== (m = Me(
597
+ O[0].currentPrice.currency + "") && te(c, s), D & /*productDetails*/
598
+ 1 && m !== (m = Ne(
607
599
  /*productDetails*/
608
600
  O[0].currentPrice.amount,
609
601
  /*productDetails*/
610
602
  O[0].currentPrice.currency
611
- ) + "") && te(h, m), R & /*productDetails*/
612
- 1 && d !== (d = Ne(
603
+ ) + "") && te(p, m), D & /*productDetails*/
604
+ 1 && d !== (d = ke(
613
605
  /*productDetails*/
614
606
  O[0].normalPeriodDuration
615
607
  ) + "") && te(b, d);
@@ -619,11 +611,11 @@ function St(t) {
619
611
  }
620
612
  };
621
613
  }
622
- function Gt(t) {
614
+ function St(t) {
623
615
  let e, r;
624
- return e = new z({
616
+ return e = new W({
625
617
  props: {
626
- $$slots: { default: [St] },
618
+ $$slots: { default: [Ft] },
627
619
  $$scope: { ctx: t }
628
620
  }
629
621
  }), {
@@ -657,27 +649,27 @@ function Yt(t, e, r) {
657
649
  }
658
650
  class ze extends k {
659
651
  constructor(e) {
660
- super(), y(
652
+ super(), N(
661
653
  this,
662
654
  e,
663
655
  Yt,
664
- Gt,
665
- N,
656
+ St,
657
+ y,
666
658
  {
667
659
  productDetails: 0,
668
660
  onClose: 1,
669
661
  onContinue: 2
670
662
  },
671
- Ft
663
+ Pt
672
664
  );
673
665
  }
674
666
  }
675
- const Ht = "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+gfWgusN6KCCAN7WoITVVXjchBxqERAAIfkEBQQAAQAsDQADACAAEAAAC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+frdMDQgAIfkEBQUAAQAsBQADACAAEAAACKYAAwgcSLAgwQcODCpcyNDAAYYQAzhpaIDhFYY+NOBY6HAhkyETFRLZ0CGKQgMVDV4RAoQKQxMdUpx8aJAJECYQnWzYcMQgSoNVgAy5CHGGhhI+aRIkMgRnxCohNvQoiLDgEyFDskQUuINDiK1Hfpgc+ETKQi0nVGxNkkSrwCw/hiBxu7XuFidAhARpgqWu3yxIhgApEtLvVipIgARBYthvlKaNFQYEADs=";
676
- function Kt(t) {
667
+ const Gt = "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+QQFBQABACwNAAMAI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QYEADs=";
668
+ function Ht(t) {
677
669
  let e, r;
678
670
  return {
679
671
  c() {
680
- e = D("img"), de(e.src, r = Ht) || I(e, "src", r), I(e, "alt", "spinner");
672
+ e = R("img"), de(e.src, r = Gt) || I(e, "src", r), I(e, "alt", "spinner");
681
673
  },
682
674
  m(n, i) {
683
675
  _(n, e, i);
@@ -690,19 +682,19 @@ function Kt(t) {
690
682
  }
691
683
  };
692
684
  }
693
- class jt extends k {
685
+ class Kt extends k {
694
686
  constructor(e) {
695
- super(), y(this, e, null, Kt, N, {});
687
+ super(), N(this, e, null, Ht, y, {});
696
688
  }
697
689
  }
698
- function Jt(t) {
690
+ function jt(t) {
699
691
  L(t, "svelte-4wmtg7", ".rcb-modal-loader.svelte-4wmtg7{width:100%;min-height:10rem;display:flex;justify-content:center;align-items:center}");
700
692
  }
701
- function $t(t) {
693
+ function Jt(t) {
702
694
  let e, r, n;
703
- return r = new jt({}), {
695
+ return r = new Kt({}), {
704
696
  c() {
705
- e = D("div"), Q(r.$$.fragment), I(e, "class", "rcb-modal-loader svelte-4wmtg7");
697
+ e = R("div"), Q(r.$$.fragment), I(e, "class", "rcb-modal-loader svelte-4wmtg7");
706
698
  },
707
699
  m(i, l) {
708
700
  _(i, e, l), w(r, e, null), n = !0;
@@ -719,16 +711,16 @@ function $t(t) {
719
711
  }
720
712
  };
721
713
  }
722
- class Qe extends k {
714
+ class De extends k {
723
715
  constructor(e) {
724
- super(), y(this, e, null, $t, N, {}, Jt);
716
+ super(), N(this, e, null, Jt, y, {}, jt);
725
717
  }
726
718
  }
727
- function xt(t) {
719
+ function $t(t) {
728
720
  let e;
729
721
  return {
730
722
  c() {
731
- e = D("div"), e.innerHTML = "<p>error</p>";
723
+ e = R("div"), e.innerHTML = "<p>error</p>";
732
724
  },
733
725
  m(r, n) {
734
726
  _(r, e, n);
@@ -741,15 +733,15 @@ function xt(t) {
741
733
  }
742
734
  };
743
735
  }
744
- class Vt extends k {
736
+ class xt extends k {
745
737
  constructor(e) {
746
- super(), y(this, e, null, xt, N, {});
738
+ super(), N(this, e, null, $t, y, {});
747
739
  }
748
740
  }
749
- function qt(t) {
741
+ function Vt(t) {
750
742
  L(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}");
751
743
  }
752
- function Wt(t) {
744
+ function qt(t) {
753
745
  let e, r, n, i, l;
754
746
  const o = (
755
747
  /*#slots*/
@@ -763,7 +755,7 @@ function Wt(t) {
763
755
  );
764
756
  return {
765
757
  c() {
766
- e = D("button"), s && s.c(), I(e, "class", r = re(`intent-${/*intent*/
758
+ e = R("button"), s && s.c(), I(e, "class", r = ie(`intent-${/*intent*/
767
759
  t[0]}`) + " svelte-igat39"), e.disabled = /*disabled*/
768
760
  t[1];
769
761
  },
@@ -777,25 +769,25 @@ function Wt(t) {
777
769
  },
778
770
  p(c, [f]) {
779
771
  s && s.p && (!n || f & /*$$scope*/
780
- 4) && K(
772
+ 4) && H(
781
773
  s,
782
774
  o,
783
775
  c,
784
776
  /*$$scope*/
785
777
  c[2],
786
- n ? H(
778
+ n ? G(
787
779
  o,
788
780
  /*$$scope*/
789
781
  c[2],
790
782
  f,
791
783
  null
792
- ) : j(
784
+ ) : K(
793
785
  /*$$scope*/
794
786
  c[2]
795
787
  ),
796
788
  null
797
789
  ), (!n || f & /*intent*/
798
- 1 && r !== (r = re(`intent-${/*intent*/
790
+ 1 && r !== (r = ie(`intent-${/*intent*/
799
791
  c[0]}`) + " svelte-igat39")) && I(e, "class", r), (!n || f & /*disabled*/
800
792
  2) && (e.disabled = /*disabled*/
801
793
  c[1]);
@@ -811,10 +803,10 @@ function Wt(t) {
811
803
  }
812
804
  };
813
805
  }
814
- function zt(t, e, r) {
806
+ function Wt(t, e, r) {
815
807
  let { $$slots: n = {}, $$scope: i } = e, { intent: l = "primary" } = e, { disabled: o = !1 } = e;
816
808
  function s(c) {
817
- Bt.call(this, t, c);
809
+ wt.call(this, t, c);
818
810
  }
819
811
  return t.$$set = (c) => {
820
812
  "intent" in c && r(0, l = c.intent), "disabled" in c && r(1, o = c.disabled), "$$scope" in c && r(2, i = c.$$scope);
@@ -822,13 +814,13 @@ function zt(t, e, r) {
822
814
  }
823
815
  class Ae extends k {
824
816
  constructor(e) {
825
- super(), y(this, e, zt, Wt, N, { intent: 0, disabled: 1 }, qt);
817
+ super(), N(this, e, Wt, qt, y, { intent: 0, disabled: 1 }, Vt);
826
818
  }
827
819
  }
828
- function Xt(t) {
820
+ function zt(t) {
829
821
  L(t, "svelte-1f9z0o8", "footer.svelte-1f9z0o8{display:flex;flex-direction:column}");
830
822
  }
831
- function Zt(t) {
823
+ function Xt(t) {
832
824
  let e, r;
833
825
  const n = (
834
826
  /*#slots*/
@@ -842,26 +834,26 @@ function Zt(t) {
842
834
  );
843
835
  return {
844
836
  c() {
845
- e = D("footer"), i && i.c(), I(e, "class", "rcb-modal-footer svelte-1f9z0o8");
837
+ e = R("footer"), i && i.c(), I(e, "class", "rcb-modal-footer svelte-1f9z0o8");
846
838
  },
847
839
  m(l, o) {
848
840
  _(l, e, o), i && i.m(e, null), r = !0;
849
841
  },
850
842
  p(l, [o]) {
851
843
  i && i.p && (!r || o & /*$$scope*/
852
- 1) && K(
844
+ 1) && H(
853
845
  i,
854
846
  n,
855
847
  l,
856
848
  /*$$scope*/
857
849
  l[0],
858
- r ? H(
850
+ r ? G(
859
851
  n,
860
852
  /*$$scope*/
861
853
  l[0],
862
854
  o,
863
855
  null
864
- ) : j(
856
+ ) : K(
865
857
  /*$$scope*/
866
858
  l[0]
867
859
  ),
@@ -879,26 +871,26 @@ function Zt(t) {
879
871
  }
880
872
  };
881
873
  }
882
- function en(t, e, r) {
874
+ function Zt(t, e, r) {
883
875
  let { $$slots: n = {}, $$scope: i } = e;
884
876
  return t.$$set = (l) => {
885
877
  "$$scope" in l && r(0, i = l.$$scope);
886
878
  }, [i, n];
887
879
  }
888
- class Ce extends k {
880
+ class Re extends k {
889
881
  constructor(e) {
890
- super(), y(this, e, en, Zt, N, {}, Xt);
882
+ super(), N(this, e, Zt, Xt, y, {}, zt);
891
883
  }
892
884
  }
893
- 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='%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";
894
- function nn(t) {
885
+ const en = "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";
886
+ function tn(t) {
895
887
  L(t, "svelte-7khg4b", "img.svelte-7khg4b{width:7.75rem;height:7.75rem;margin:0 auto}");
896
888
  }
897
- function rn(t) {
889
+ function nn(t) {
898
890
  let e, r;
899
891
  return {
900
892
  c() {
901
- e = D("img"), de(e.src, r = tn) || I(e, "src", r), I(e, "alt", "icon"), I(e, "class", "rcb-ui-asset-icon svelte-7khg4b");
893
+ e = R("img"), de(e.src, r = en) || I(e, "src", r), I(e, "alt", "icon"), I(e, "class", "rcb-ui-asset-icon svelte-7khg4b");
902
894
  },
903
895
  m(n, i) {
904
896
  _(n, e, i);
@@ -911,15 +903,15 @@ function rn(t) {
911
903
  }
912
904
  };
913
905
  }
914
- class ln extends k {
906
+ class rn extends k {
915
907
  constructor(e) {
916
- super(), y(this, e, null, rn, N, {}, nn);
908
+ super(), N(this, e, null, nn, y, {}, tn);
917
909
  }
918
910
  }
919
- function on(t) {
911
+ function ln(t) {
920
912
  L(t, "svelte-18njhoa", '.column.svelte-18njhoa{display:flex;flex-direction:column;justify-content:flex-start;gap:var(--gap, "0.5rem")}');
921
913
  }
922
- function sn(t) {
914
+ function on(t) {
923
915
  let e, r, n;
924
916
  const i = (
925
917
  /*#slots*/
@@ -933,7 +925,7 @@ function sn(t) {
933
925
  );
934
926
  return {
935
927
  c() {
936
- e = D("div"), l && l.c(), I(e, "class", "column svelte-18njhoa"), I(e, "style", r = `--gap:${/*gutter*/
928
+ e = R("div"), l && l.c(), I(e, "class", "column svelte-18njhoa"), I(e, "style", r = `--gap:${/*gutter*/
937
929
  t[0]};`);
938
930
  },
939
931
  m(o, s) {
@@ -941,19 +933,19 @@ function sn(t) {
941
933
  },
942
934
  p(o, [s]) {
943
935
  l && l.p && (!n || s & /*$$scope*/
944
- 2) && K(
936
+ 2) && H(
945
937
  l,
946
938
  i,
947
939
  o,
948
940
  /*$$scope*/
949
941
  o[1],
950
- n ? H(
942
+ n ? G(
951
943
  i,
952
944
  /*$$scope*/
953
945
  o[1],
954
946
  s,
955
947
  null
956
- ) : j(
948
+ ) : K(
957
949
  /*$$scope*/
958
950
  o[1]
959
951
  ),
@@ -973,7 +965,7 @@ function sn(t) {
973
965
  }
974
966
  };
975
967
  }
976
- function cn(t, e, r) {
968
+ function sn(t, e, r) {
977
969
  let { $$slots: n = {}, $$scope: i } = e, { gutter: l = "0.5rem" } = e;
978
970
  return t.$$set = (o) => {
979
971
  "gutter" in o && r(0, l = o.gutter), "$$scope" in o && r(1, i = o.$$scope);
@@ -981,17 +973,17 @@ function cn(t, e, r) {
981
973
  }
982
974
  class _e extends k {
983
975
  constructor(e) {
984
- super(), y(this, e, cn, sn, N, { gutter: 0 }, on);
976
+ super(), N(this, e, sn, on, y, { gutter: 0 }, ln);
985
977
  }
986
978
  }
987
- function fn(t) {
979
+ function cn(t) {
988
980
  L(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}");
989
981
  }
990
- function un(t) {
982
+ function fn(t) {
991
983
  let e, r, n;
992
984
  return {
993
985
  c() {
994
- e = D("span"), e.textContent = "Purchase Successful", r = U(), n = D("span"), n.textContent = "Your plan is now active.", I(e, "class", "title svelte-1lcsna9"), I(n, "class", "subtitle svelte-1lcsna9");
986
+ e = R("span"), e.textContent = "Purchase Successful", r = U(), n = R("span"), n.textContent = "Your plan is now active.", I(e, "class", "title svelte-1lcsna9"), I(n, "class", "subtitle svelte-1lcsna9");
995
987
  },
996
988
  m(i, l) {
997
989
  _(i, e, l), _(i, r, l), _(i, n, l);
@@ -1002,12 +994,12 @@ function un(t) {
1002
994
  }
1003
995
  };
1004
996
  }
1005
- function an(t) {
997
+ function un(t) {
1006
998
  let e, r, n, i;
1007
- return e = new ln({}), n = new _e({
999
+ return e = new rn({}), n = new _e({
1008
1000
  props: {
1009
1001
  gutter: "1rem",
1010
- $$slots: { default: [un] },
1002
+ $$slots: { default: [fn] },
1011
1003
  $$scope: { ctx: t }
1012
1004
  }
1013
1005
  }), {
@@ -1033,17 +1025,17 @@ function an(t) {
1033
1025
  }
1034
1026
  };
1035
1027
  }
1036
- function An(t) {
1028
+ function an(t) {
1037
1029
  let e, r, n;
1038
1030
  return r = new _e({
1039
1031
  props: {
1040
1032
  gutter: "1rem",
1041
- $$slots: { default: [an] },
1033
+ $$slots: { default: [un] },
1042
1034
  $$scope: { ctx: t }
1043
1035
  }
1044
1036
  }), {
1045
1037
  c() {
1046
- e = D("div"), Q(r.$$.fragment), I(e, "class", "rcb-modal-success svelte-1lcsna9");
1038
+ e = R("div"), Q(r.$$.fragment), I(e, "class", "rcb-modal-success svelte-1lcsna9");
1047
1039
  },
1048
1040
  m(i, l) {
1049
1041
  _(i, e, l), w(r, e, null), n = !0;
@@ -1064,7 +1056,7 @@ function An(t) {
1064
1056
  }
1065
1057
  };
1066
1058
  }
1067
- function mn(t) {
1059
+ function An(t) {
1068
1060
  let e;
1069
1061
  return {
1070
1062
  c() {
@@ -1078,12 +1070,12 @@ function mn(t) {
1078
1070
  }
1079
1071
  };
1080
1072
  }
1081
- function dn(t) {
1073
+ function mn(t) {
1082
1074
  let e, r;
1083
1075
  return e = new Ae({
1084
1076
  props: {
1085
1077
  intent: "secondary",
1086
- $$slots: { default: [mn] },
1078
+ $$slots: { default: [An] },
1087
1079
  $$scope: { ctx: t }
1088
1080
  }
1089
1081
  }), e.$on("click", function() {
@@ -1115,16 +1107,16 @@ function dn(t) {
1115
1107
  }
1116
1108
  };
1117
1109
  }
1118
- function En(t) {
1110
+ function dn(t) {
1119
1111
  let e, r, n, i;
1120
- return e = new z({
1112
+ return e = new W({
1121
1113
  props: {
1122
- $$slots: { default: [An] },
1114
+ $$slots: { default: [an] },
1123
1115
  $$scope: { ctx: t }
1124
1116
  }
1125
- }), n = new Ce({
1117
+ }), n = new Re({
1126
1118
  props: {
1127
- $$slots: { default: [dn] },
1119
+ $$slots: { default: [mn] },
1128
1120
  $$scope: { ctx: t }
1129
1121
  }
1130
1122
  }), {
@@ -1153,12 +1145,12 @@ function En(t) {
1153
1145
  }
1154
1146
  };
1155
1147
  }
1156
- function gn(t) {
1148
+ function En(t) {
1157
1149
  let e, r;
1158
1150
  return e = new _e({
1159
1151
  props: {
1160
1152
  gutter: "2rem",
1161
- $$slots: { default: [En] },
1153
+ $$slots: { default: [dn] },
1162
1154
  $$scope: { ctx: t }
1163
1155
  }
1164
1156
  }), {
@@ -1184,34 +1176,34 @@ function gn(t) {
1184
1176
  }
1185
1177
  };
1186
1178
  }
1187
- function _n(t, e, r) {
1179
+ function gn(t, e, r) {
1188
1180
  let { onContinue: n } = e;
1189
1181
  return t.$$set = (i) => {
1190
1182
  "onContinue" in i && r(0, n = i.onContinue);
1191
1183
  }, [n];
1192
1184
  }
1193
- class pn extends k {
1185
+ class _n extends k {
1194
1186
  constructor(e) {
1195
- super(), y(this, e, _n, gn, N, { onContinue: 0 }, fn);
1187
+ super(), N(this, e, gn, En, y, { onContinue: 0 }, cn);
1196
1188
  }
1197
1189
  }
1198
1190
  function hn(t, e, r, n, i = {}) {
1199
1191
  const l = r.create(e, i);
1200
1192
  return l.mount(t), l.on("change", (o) => n("change", o)), l.on("ready", (o) => n("ready", o)), l.on("focus", (o) => n("focus", o)), l.on("blur", (o) => n("blur", o)), l.on("escape", (o) => n("escape", o)), l.on("click", (o) => n("click", o)), l.on("loaderror", (o) => n("loaderror", o)), l.on("loaderstart", (o) => n("loaderstart", o)), l.on("networkschange", (o) => n("networkschange", o)), l;
1201
1193
  }
1202
- const In = typeof window > "u";
1203
- function wn(t) {
1204
- if (!In)
1194
+ const pn = typeof window > "u";
1195
+ function In(t) {
1196
+ if (!pn)
1205
1197
  return t.registerAppInfo({
1206
1198
  name: "svelte-stripe-js",
1207
1199
  url: "https://svelte-stripe-js.vercel.app"
1208
1200
  });
1209
1201
  }
1210
- function Bn(t) {
1202
+ function wn(t) {
1211
1203
  let e;
1212
1204
  return {
1213
1205
  c() {
1214
- e = D("div");
1206
+ e = R("div");
1215
1207
  },
1216
1208
  m(r, n) {
1217
1209
  _(r, e, n), t[6](e);
@@ -1224,11 +1216,11 @@ function Bn(t) {
1224
1216
  }
1225
1217
  };
1226
1218
  }
1227
- function bn(t, e, r) {
1219
+ function Bn(t, e, r) {
1228
1220
  let n, i;
1229
- const l = ht(), { elements: o } = wt("stripe");
1221
+ const l = ht(), { elements: o } = It("stripe");
1230
1222
  let { options: s = void 0 } = e;
1231
- be(() => (n = hn(i, "payment", o, l, s), () => n.destroy()));
1223
+ Ce(() => (n = hn(i, "payment", o, l, s), () => n.destroy()));
1232
1224
  function c() {
1233
1225
  n.blur();
1234
1226
  }
@@ -1241,18 +1233,18 @@ function bn(t, e, r) {
1241
1233
  function m() {
1242
1234
  n.focus();
1243
1235
  }
1244
- function h(E) {
1236
+ function p(E) {
1245
1237
  ae[E ? "unshift" : "push"](() => {
1246
1238
  i = E, r(0, i);
1247
1239
  });
1248
1240
  }
1249
1241
  return t.$$set = (E) => {
1250
1242
  "options" in E && r(1, s = E.options);
1251
- }, [i, s, c, f, a, m, h];
1243
+ }, [i, s, c, f, a, m, p];
1252
1244
  }
1253
- class Qn extends k {
1245
+ class bn extends k {
1254
1246
  constructor(e) {
1255
- super(), y(this, e, bn, Bn, N, {
1247
+ super(), N(this, e, Bn, wn, y, {
1256
1248
  options: 1,
1257
1249
  blur: 2,
1258
1250
  clear: 3,
@@ -1273,7 +1265,7 @@ class Qn extends k {
1273
1265
  return this.$$.ctx[5];
1274
1266
  }
1275
1267
  }
1276
- function ye(t) {
1268
+ function Oe(t) {
1277
1269
  let e;
1278
1270
  const r = (
1279
1271
  /*#slots*/
@@ -1294,19 +1286,19 @@ function ye(t) {
1294
1286
  },
1295
1287
  p(i, l) {
1296
1288
  n && n.p && (!e || l & /*$$scope*/
1297
- 16384) && K(
1289
+ 16384) && H(
1298
1290
  n,
1299
1291
  r,
1300
1292
  i,
1301
1293
  /*$$scope*/
1302
1294
  i[14],
1303
- e ? H(
1295
+ e ? G(
1304
1296
  r,
1305
1297
  /*$$scope*/
1306
1298
  i[14],
1307
1299
  l,
1308
1300
  null
1309
- ) : j(
1301
+ ) : K(
1310
1302
  /*$$scope*/
1311
1303
  i[14]
1312
1304
  ),
@@ -1324,15 +1316,15 @@ function ye(t) {
1324
1316
  }
1325
1317
  };
1326
1318
  }
1327
- function Cn(t) {
1319
+ function Qn(t) {
1328
1320
  let e, r, n = (
1329
1321
  /*stripe*/
1330
1322
  t[1] && /*elements*/
1331
- t[0] && ye(t)
1323
+ t[0] && Oe(t)
1332
1324
  );
1333
1325
  return {
1334
1326
  c() {
1335
- n && n.c(), e = X();
1327
+ n && n.c(), e = z();
1336
1328
  },
1337
1329
  m(i, l) {
1338
1330
  n && n.m(i, l), _(i, e, l), r = !0;
@@ -1341,7 +1333,7 @@ function Cn(t) {
1341
1333
  /*stripe*/
1342
1334
  i[1] && /*elements*/
1343
1335
  i[0] ? n ? (n.p(i, l), l & /*stripe, elements*/
1344
- 3 && u(n, 1)) : (n = ye(i), n.c(), u(n, 1), n.m(e.parentNode, e)) : n && (P(), A(n, 1, 1, () => {
1336
+ 3 && u(n, 1)) : (n = Oe(i), n.c(), u(n, 1), n.m(e.parentNode, e)) : n && (P(), A(n, 1, 1, () => {
1345
1337
  n = null;
1346
1338
  }), F());
1347
1339
  },
@@ -1356,23 +1348,23 @@ function Cn(t) {
1356
1348
  }
1357
1349
  };
1358
1350
  }
1359
- function Rn(t, e, r) {
1360
- let n, { $$slots: i = {}, $$scope: l } = e, { stripe: o } = e, { mode: s = void 0 } = e, { theme: c = "stripe" } = e, { variables: f = {} } = e, { rules: a = {} } = e, { labels: m = "above" } = e, { loader: h = "auto" } = e, { fonts: E = [] } = e, { locale: C = "auto" } = e, { currency: p = void 0 } = e, { amount: d = void 0 } = e, { clientSecret: b = void 0 } = e, { elements: O = null } = e;
1361
- return t.$$set = (R) => {
1362
- "stripe" in R && r(1, o = R.stripe), "mode" in R && r(2, s = R.mode), "theme" in R && r(3, c = R.theme), "variables" in R && r(4, f = R.variables), "rules" in R && r(5, a = R.rules), "labels" in R && r(6, m = R.labels), "loader" in R && r(7, h = R.loader), "fonts" in R && r(8, E = R.fonts), "locale" in R && r(9, C = R.locale), "currency" in R && r(10, p = R.currency), "amount" in R && r(11, d = R.amount), "clientSecret" in R && r(12, b = R.clientSecret), "elements" in R && r(0, O = R.elements), "$$scope" in R && r(14, l = R.$$scope);
1351
+ function Cn(t, e, r) {
1352
+ let n, { $$slots: i = {}, $$scope: l } = e, { stripe: o } = e, { mode: s = void 0 } = e, { theme: c = "stripe" } = e, { variables: f = {} } = e, { rules: a = {} } = e, { labels: m = "above" } = e, { loader: p = "auto" } = e, { fonts: E = [] } = e, { locale: C = "auto" } = e, { currency: h = void 0 } = e, { amount: d = void 0 } = e, { clientSecret: b = void 0 } = e, { elements: O = null } = e;
1353
+ return t.$$set = (D) => {
1354
+ "stripe" in D && r(1, o = D.stripe), "mode" in D && r(2, s = D.mode), "theme" in D && r(3, c = D.theme), "variables" in D && r(4, f = D.variables), "rules" in D && r(5, a = D.rules), "labels" in D && r(6, m = D.labels), "loader" in D && r(7, p = D.loader), "fonts" in D && r(8, E = D.fonts), "locale" in D && r(9, C = D.locale), "currency" in D && r(10, h = D.currency), "amount" in D && r(11, d = D.amount), "clientSecret" in D && r(12, b = D.clientSecret), "elements" in D && r(0, O = D.elements), "$$scope" in D && r(14, l = D.$$scope);
1363
1355
  }, t.$$.update = () => {
1364
1356
  t.$$.dirty & /*theme, variables, rules, labels*/
1365
1357
  120 && r(13, n = { theme: c, variables: f, rules: a, labels: m }), t.$$.dirty & /*stripe, elements, mode, currency, amount, appearance, clientSecret, fonts, loader, locale*/
1366
1358
  16263 && o && !O && (r(0, O = o.elements({
1367
1359
  mode: s,
1368
- currency: p,
1360
+ currency: h,
1369
1361
  amount: d,
1370
1362
  appearance: n,
1371
1363
  clientSecret: b,
1372
1364
  fonts: E,
1373
- loader: h,
1365
+ loader: p,
1374
1366
  locale: C
1375
- })), wn(o), It("stripe", { stripe: o, elements: O })), t.$$.dirty & /*elements, appearance, locale*/
1367
+ })), In(o), pt("stripe", { stripe: o, elements: O })), t.$$.dirty & /*elements, appearance, locale*/
1376
1368
  8705 && O && O.update({ appearance: n, locale: C });
1377
1369
  }, [
1378
1370
  O,
@@ -1382,10 +1374,10 @@ function Rn(t, e, r) {
1382
1374
  f,
1383
1375
  a,
1384
1376
  m,
1385
- h,
1377
+ p,
1386
1378
  E,
1387
1379
  C,
1388
- p,
1380
+ h,
1389
1381
  d,
1390
1382
  b,
1391
1383
  n,
@@ -1395,7 +1387,7 @@ function Rn(t, e, r) {
1395
1387
  }
1396
1388
  class Dn extends k {
1397
1389
  constructor(e) {
1398
- super(), y(this, e, Rn, Cn, N, {
1390
+ super(), N(this, e, Cn, Qn, y, {
1399
1391
  stripe: 1,
1400
1392
  mode: 2,
1401
1393
  theme: 3,
@@ -1412,21 +1404,21 @@ class Dn extends k {
1412
1404
  });
1413
1405
  }
1414
1406
  }
1415
- var Xe = "https://js.stripe.com/v3", Tn = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, ke = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", Mn = function() {
1407
+ var Xe = "https://js.stripe.com/v3", Rn = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, Ue = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", Tn = function() {
1416
1408
  for (var e = document.querySelectorAll('script[src^="'.concat(Xe, '"]')), r = 0; r < e.length; r++) {
1417
1409
  var n = e[r];
1418
- if (Tn.test(n.src))
1410
+ if (Rn.test(n.src))
1419
1411
  return n;
1420
1412
  }
1421
1413
  return null;
1422
- }, Oe = function(e) {
1414
+ }, ve = function(e) {
1423
1415
  var r = e && !e.advancedFraudSignals ? "?advancedFraudSignals=false" : "", n = document.createElement("script");
1424
1416
  n.src = "".concat(Xe).concat(r);
1425
1417
  var i = document.head || document.body;
1426
1418
  if (!i)
1427
1419
  throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
1428
1420
  return i.appendChild(n), n;
1429
- }, Nn = function(e, r) {
1421
+ }, Mn = function(e, r) {
1430
1422
  !e || !e._registerWrapper || e._registerWrapper({
1431
1423
  name: "stripe-js",
1432
1424
  version: "2.3.0",
@@ -1436,31 +1428,31 @@ var Xe = "https://js.stripe.com/v3", Tn = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
1436
1428
  return function() {
1437
1429
  e(new Error("Failed to load Stripe.js"));
1438
1430
  };
1439
- }, kn = function(e, r) {
1431
+ }, Nn = function(e, r) {
1440
1432
  return function() {
1441
1433
  window.Stripe ? e(window.Stripe) : r(new Error("Stripe.js not available"));
1442
1434
  };
1443
- }, On = function(e) {
1435
+ }, kn = function(e) {
1444
1436
  return Z !== null ? Z : (Z = new Promise(function(r, n) {
1445
1437
  if (typeof window > "u" || typeof document > "u") {
1446
1438
  r(null);
1447
1439
  return;
1448
1440
  }
1449
- if (window.Stripe && e && console.warn(ke), window.Stripe) {
1441
+ if (window.Stripe && e && console.warn(Ue), window.Stripe) {
1450
1442
  r(window.Stripe);
1451
1443
  return;
1452
1444
  }
1453
1445
  try {
1454
- var i = Mn();
1446
+ var i = Tn();
1455
1447
  if (i && e)
1456
- console.warn(ke);
1448
+ console.warn(Ue);
1457
1449
  else if (!i)
1458
- i = Oe(e);
1450
+ i = ve(e);
1459
1451
  else if (i && fe !== null && ce !== null) {
1460
1452
  var l;
1461
- i.removeEventListener("load", fe), i.removeEventListener("error", ce), (l = i.parentNode) === null || l === void 0 || l.removeChild(i), i = Oe(e);
1453
+ i.removeEventListener("load", fe), i.removeEventListener("error", ce), (l = i.parentNode) === null || l === void 0 || l.removeChild(i), i = ve(e);
1462
1454
  }
1463
- fe = kn(r, n), ce = yn(n), i.addEventListener("load", fe), i.addEventListener("error", ce);
1455
+ fe = Nn(r, n), ce = yn(n), i.addEventListener("load", fe), i.addEventListener("error", ce);
1464
1456
  } catch (o) {
1465
1457
  n(o);
1466
1458
  return;
@@ -1468,13 +1460,13 @@ var Xe = "https://js.stripe.com/v3", Tn = /^https:\/\/js\.stripe\.com\/v3\/?(\?.
1468
1460
  }), Z.catch(function(r) {
1469
1461
  return Z = null, Promise.reject(r);
1470
1462
  }));
1471
- }, Un = function(e, r, n) {
1463
+ }, On = function(e, r, n) {
1472
1464
  if (e === null)
1473
1465
  return null;
1474
1466
  var i = e.apply(void 0, r);
1475
- return Nn(i, n), i;
1467
+ return Mn(i, n), i;
1476
1468
  }, ee, Ze = !1, et = function() {
1477
- return ee || (ee = On(null).catch(function(e) {
1469
+ return ee || (ee = kn(null).catch(function(e) {
1478
1470
  return ee = null, Promise.reject(e);
1479
1471
  }), ee);
1480
1472
  };
@@ -1483,21 +1475,30 @@ Promise.resolve().then(function() {
1483
1475
  }).catch(function(t) {
1484
1476
  Ze || console.warn(t);
1485
1477
  });
1486
- var vn = function() {
1478
+ var Un = function() {
1487
1479
  for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++)
1488
1480
  r[n] = arguments[n];
1489
1481
  Ze = !0;
1490
1482
  var i = Date.now();
1491
1483
  return et().then(function(l) {
1492
- return Un(l, r, i);
1484
+ return On(l, r, i);
1493
1485
  });
1494
1486
  };
1487
+ const vn = (t) => {
1488
+ var e;
1489
+ return {
1490
+ nextAction: t.next_action,
1491
+ data: {
1492
+ clientSecret: ((e = t.data) == null ? void 0 : e.client_secret) ?? void 0
1493
+ }
1494
+ };
1495
+ };
1495
1496
  function Ln(t) {
1496
1497
  L(t, "svelte-1fwwzeb", ".rcb-stripe-elements-container.svelte-1fwwzeb{width:100%;margin-bottom:1rem}");
1497
1498
  }
1498
1499
  function Pn(t) {
1499
1500
  let e, r;
1500
- return e = new Qe({}), {
1501
+ return e = new De({}), {
1501
1502
  c() {
1502
1503
  Q(e.$$.fragment);
1503
1504
  },
@@ -1537,9 +1538,9 @@ function Fn(t) {
1537
1538
  return (
1538
1539
  /*elements*/
1539
1540
  t[1] !== void 0 && (c.elements = /*elements*/
1540
- t[1]), r = new Dn({ props: c }), ae.push(() => Tt(r, "elements", s)), {
1541
+ t[1]), r = new Dn({ props: c }), ae.push(() => Rt(r, "elements", s)), {
1541
1542
  c() {
1542
- e = D("form"), Q(r.$$.fragment);
1543
+ e = R("form"), Q(r.$$.fragment);
1543
1544
  },
1544
1545
  m(f, a) {
1545
1546
  _(f, e, a), w(r, e, null), i = !0, l || (o = Ee(e, "submit", qe(
@@ -1554,7 +1555,7 @@ function Fn(t) {
1554
1555
  f[2]), a & /*$$scope, processing, onClose*/
1555
1556
  4105 && (m.$$scope = { dirty: a, ctx: f }), !n && a & /*elements*/
1556
1557
  2 && (n = !0, m.elements = /*elements*/
1557
- f[1], Ct(() => n = !1)), r.$set(m);
1558
+ f[1], Qt(() => n = !1)), r.$set(m);
1558
1559
  },
1559
1560
  i(f) {
1560
1561
  i || (u(r.$$.fragment, f), i = !0);
@@ -1570,9 +1571,9 @@ function Fn(t) {
1570
1571
  }
1571
1572
  function Sn(t) {
1572
1573
  let e, r, n;
1573
- return r = new Qn({}), {
1574
+ return r = new bn({}), {
1574
1575
  c() {
1575
- e = D("div"), Q(r.$$.fragment), I(e, "class", "rcb-stripe-elements-container svelte-1fwwzeb");
1576
+ e = R("div"), Q(r.$$.fragment), I(e, "class", "rcb-stripe-elements-container svelte-1fwwzeb");
1576
1577
  },
1577
1578
  m(i, l) {
1578
1579
  _(i, e, l), w(r, e, null), n = !0;
@@ -1589,7 +1590,7 @@ function Sn(t) {
1589
1590
  }
1590
1591
  };
1591
1592
  }
1592
- function Gn(t) {
1593
+ function Yn(t) {
1593
1594
  let e;
1594
1595
  return {
1595
1596
  c() {
@@ -1603,7 +1604,7 @@ function Gn(t) {
1603
1604
  }
1604
1605
  };
1605
1606
  }
1606
- function Yn(t) {
1607
+ function Gn(t) {
1607
1608
  let e;
1608
1609
  return {
1609
1610
  c() {
@@ -1622,13 +1623,13 @@ function Hn(t) {
1622
1623
  function r(l, o) {
1623
1624
  return (
1624
1625
  /*processing*/
1625
- l[3] ? Yn : Gn
1626
+ l[3] ? Gn : Yn
1626
1627
  );
1627
1628
  }
1628
1629
  let n = r(t), i = n(t);
1629
1630
  return {
1630
1631
  c() {
1631
- i.c(), e = X();
1632
+ i.c(), e = z();
1632
1633
  },
1633
1634
  m(l, o) {
1634
1635
  i.m(l, o), _(l, e, o);
@@ -1744,12 +1745,12 @@ function Jn(t) {
1744
1745
  }
1745
1746
  function $n(t) {
1746
1747
  let e, r, n, i;
1747
- return e = new z({
1748
+ return e = new W({
1748
1749
  props: {
1749
1750
  $$slots: { default: [Sn] },
1750
1751
  $$scope: { ctx: t }
1751
1752
  }
1752
- }), n = new Ce({
1753
+ }), n = new Re({
1753
1754
  props: {
1754
1755
  $$slots: { default: [Jn] },
1755
1756
  $$scope: { ctx: t }
@@ -1792,7 +1793,7 @@ function xn(t) {
1792
1793
  }
1793
1794
  return r = s(t), n = o[r] = l[r](t), {
1794
1795
  c() {
1795
- e = D("div"), n.c();
1796
+ e = R("div"), n.c();
1796
1797
  },
1797
1798
  m(c, f) {
1798
1799
  _(c, e, f), o[r].m(e, null), i = !0;
@@ -1817,35 +1818,35 @@ function xn(t) {
1817
1818
  function Vn(t, e, r) {
1818
1819
  let { onClose: n } = e, { onContinue: i } = e, { onError: l } = e, { purchases: o } = e, { paymentInfoCollectionMetadata: s } = e;
1819
1820
  const c = s.data.clientSecret;
1820
- let f = null, a, m = !1, h;
1821
- be(async () => {
1821
+ let f = null, a, m = !1, p;
1822
+ Ce(async () => {
1822
1823
  var O;
1823
- const p = (O = o == null ? void 0 : o._PAYMENT_PROVIDER_SETTINGS) == null ? void 0 : O.stripe;
1824
- if (!p)
1824
+ const h = (O = o == null ? void 0 : o._PAYMENT_PROVIDER_SETTINGS) == null ? void 0 : O.stripe;
1825
+ if (!h)
1825
1826
  throw new Error("Stripe settings not found");
1826
- const d = p.publishableKey, b = p.accountId;
1827
+ const d = h.publishableKey, b = h.accountId;
1827
1828
  if (!d || !b)
1828
1829
  throw new Error("Stripe publishable key or account ID not found");
1829
- r(2, f = await vn(d, { stripeAccount: b }));
1830
+ r(2, f = await Un(d, { stripeAccount: b }));
1830
1831
  });
1831
1832
  const E = async () => {
1832
- if (m || !f || !h)
1833
+ if (m || !f || !p)
1833
1834
  return;
1834
1835
  r(3, m = !0);
1835
- const p = await f.confirmSetup({
1836
- elements: h,
1836
+ const h = await f.confirmSetup({
1837
+ elements: p,
1837
1838
  redirect: "if_required"
1838
1839
  });
1839
- p.error ? (r(3, m = !1), l(p.error)) : i();
1840
+ h.error ? (r(3, m = !1), l(h.error)) : i();
1840
1841
  };
1841
- function C(p) {
1842
- a = p, r(1, a);
1842
+ function C(h) {
1843
+ a = h, r(1, a);
1843
1844
  }
1844
- return t.$$set = (p) => {
1845
- "onClose" in p && r(0, n = p.onClose), "onContinue" in p && r(6, i = p.onContinue), "onError" in p && r(7, l = p.onError), "purchases" in p && r(8, o = p.purchases), "paymentInfoCollectionMetadata" in p && r(9, s = p.paymentInfoCollectionMetadata);
1845
+ return t.$$set = (h) => {
1846
+ "onClose" in h && r(0, n = h.onClose), "onContinue" in h && r(6, i = h.onContinue), "onError" in h && r(7, l = h.onError), "purchases" in h && r(8, o = h.purchases), "paymentInfoCollectionMetadata" in h && r(9, s = h.paymentInfoCollectionMetadata);
1846
1847
  }, t.$$.update = () => {
1847
1848
  t.$$.dirty & /*elements*/
1848
- 2 && a && a._elements.length > 0 && (h = a);
1849
+ 2 && a && a._elements.length > 0 && (p = a);
1849
1850
  }, [
1850
1851
  n,
1851
1852
  a,
@@ -1862,12 +1863,12 @@ function Vn(t, e, r) {
1862
1863
  }
1863
1864
  class qn extends k {
1864
1865
  constructor(e) {
1865
- super(), y(
1866
+ super(), N(
1866
1867
  this,
1867
1868
  e,
1868
1869
  Vn,
1869
1870
  xn,
1870
- N,
1871
+ y,
1871
1872
  {
1872
1873
  onClose: 0,
1873
1874
  onContinue: 6,
@@ -1886,7 +1887,7 @@ function zn(t) {
1886
1887
  let e;
1887
1888
  return {
1888
1889
  c() {
1889
- e = D("span"), e.textContent = "User authentication", I(e, "class", "title svelte-1xardyz");
1890
+ e = R("span"), e.textContent = "User authentication", I(e, "class", "title svelte-1xardyz");
1890
1891
  },
1891
1892
  m(r, n) {
1892
1893
  _(r, e, n);
@@ -1901,10 +1902,10 @@ function Xn(t) {
1901
1902
  let e, r, n, i, l, o, s;
1902
1903
  return {
1903
1904
  c() {
1904
- e = D("div"), r = D("div"), r.innerHTML = '<label for="email">E-mail</label>', n = U(), i = D("div"), l = D("input"), I(r, "class", "form-label svelte-1xardyz"), I(l, "name", "email"), I(l, "placeholder", "john@appleseed.com"), I(l, "class", "svelte-1xardyz"), I(i, "class", "form-input svelte-1xardyz"), I(e, "class", "form-container svelte-1xardyz");
1905
+ e = R("div"), r = R("div"), r.innerHTML = '<label for="email">E-mail</label>', n = U(), i = R("div"), l = R("input"), I(r, "class", "form-label svelte-1xardyz"), I(l, "name", "email"), I(l, "placeholder", "john@appleseed.com"), I(l, "class", "svelte-1xardyz"), I(i, "class", "form-input svelte-1xardyz"), I(e, "class", "form-container svelte-1xardyz");
1905
1906
  },
1906
1907
  m(c, f) {
1907
- _(c, e, f), M(e, r), M(e, n), M(e, i), M(i, l), Te(
1908
+ _(c, e, f), M(e, r), M(e, n), M(e, i), M(i, l), ye(
1908
1909
  l,
1909
1910
  /*email*/
1910
1911
  t[0]
@@ -1918,7 +1919,7 @@ function Xn(t) {
1918
1919
  p(c, f) {
1919
1920
  f & /*email*/
1920
1921
  1 && l.value !== /*email*/
1921
- c[0] && Te(
1922
+ c[0] && ye(
1922
1923
  l,
1923
1924
  /*email*/
1924
1925
  c[0]
@@ -1975,41 +1976,41 @@ function er(t) {
1975
1976
  }
1976
1977
  function tr(t) {
1977
1978
  let e, r, n, i, l, o, s, c, f, a;
1978
- return n = new z({
1979
+ return n = new W({
1979
1980
  props: {
1980
1981
  $$slots: { default: [zn] },
1981
1982
  $$scope: { ctx: t }
1982
1983
  }
1983
- }), l = new z({
1984
+ }), l = new W({
1984
1985
  props: {
1985
1986
  $$slots: { default: [Xn] },
1986
1987
  $$scope: { ctx: t }
1987
1988
  }
1988
- }), s = new Ce({
1989
+ }), s = new Re({
1989
1990
  props: {
1990
1991
  $$slots: { default: [er] },
1991
1992
  $$scope: { ctx: t }
1992
1993
  }
1993
1994
  }), {
1994
1995
  c() {
1995
- e = D("div"), r = D("form"), Q(n.$$.fragment), i = U(), Q(l.$$.fragment), o = U(), Q(s.$$.fragment);
1996
+ e = R("div"), r = R("form"), Q(n.$$.fragment), i = U(), Q(l.$$.fragment), o = U(), Q(s.$$.fragment);
1996
1997
  },
1997
- m(m, h) {
1998
- _(m, e, h), M(e, r), w(n, r, null), M(r, i), w(l, r, null), M(r, o), w(s, r, null), c = !0, f || (a = Ee(r, "submit", qe(
1998
+ m(m, p) {
1999
+ _(m, e, p), M(e, r), w(n, r, null), M(r, i), w(l, r, null), M(r, o), w(s, r, null), c = !0, f || (a = Ee(r, "submit", qe(
1999
2000
  /*handleContinue*/
2000
2001
  t[1]
2001
2002
  )), f = !0);
2002
2003
  },
2003
- p(m, [h]) {
2004
+ p(m, [p]) {
2004
2005
  const E = {};
2005
- h & /*$$scope*/
2006
- 128 && (E.$$scope = { dirty: h, ctx: m }), n.$set(E);
2006
+ p & /*$$scope*/
2007
+ 128 && (E.$$scope = { dirty: p, ctx: m }), n.$set(E);
2007
2008
  const C = {};
2008
- h & /*$$scope, email*/
2009
- 129 && (C.$$scope = { dirty: h, ctx: m }), l.$set(C);
2010
- const p = {};
2011
- h & /*$$scope*/
2012
- 128 && (p.$$scope = { dirty: h, ctx: m }), s.$set(p);
2009
+ p & /*$$scope, email*/
2010
+ 129 && (C.$$scope = { dirty: p, ctx: m }), l.$set(C);
2011
+ const h = {};
2012
+ p & /*$$scope*/
2013
+ 128 && (h.$$scope = { dirty: p, ctx: m }), s.$set(h);
2013
2014
  },
2014
2015
  i(m) {
2015
2016
  c || (u(n.$$.fragment, m), u(l.$$.fragment, m), u(s.$$.fragment, m), c = !0);
@@ -2044,12 +2045,12 @@ function nr(t, e, r) {
2044
2045
  }
2045
2046
  class rr extends k {
2046
2047
  constructor(e) {
2047
- super(), y(
2048
+ super(), N(
2048
2049
  this,
2049
2050
  e,
2050
2051
  nr,
2051
2052
  tr,
2052
- N,
2053
+ y,
2053
2054
  {
2054
2055
  onClose: 2,
2055
2056
  onContinue: 3,
@@ -2068,7 +2069,7 @@ function or(t) {
2068
2069
  let e, r;
2069
2070
  return {
2070
2071
  c() {
2071
- e = D("img"), de(e.src, r = ir) || I(e, "src", r), I(e, "alt", "app icon"), I(e, "class", "rcb-app-icon svelte-f7u0k9");
2072
+ e = R("img"), de(e.src, r = ir) || I(e, "src", r), I(e, "alt", "app icon"), I(e, "class", "rcb-app-icon svelte-f7u0k9");
2072
2073
  },
2073
2074
  m(n, i) {
2074
2075
  _(n, e, i);
@@ -2083,7 +2084,7 @@ function or(t) {
2083
2084
  }
2084
2085
  class sr extends k {
2085
2086
  constructor(e) {
2086
- super(), y(this, e, null, or, N, {}, lr);
2087
+ super(), N(this, e, null, or, y, {}, lr);
2087
2088
  }
2088
2089
  }
2089
2090
  const cr = "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";
@@ -2091,7 +2092,7 @@ function fr(t) {
2091
2092
  let e, r;
2092
2093
  return {
2093
2094
  c() {
2094
- e = D("img"), de(e.src, r = cr) || I(e, "src", r), I(e, "alt", "icon"), I(e, "class", "rcb-ui-asset-icon");
2095
+ e = R("img"), de(e.src, r = cr) || I(e, "src", r), I(e, "alt", "icon"), I(e, "class", "rcb-ui-asset-icon");
2095
2096
  },
2096
2097
  m(n, i) {
2097
2098
  _(n, e, i);
@@ -2106,7 +2107,7 @@ function fr(t) {
2106
2107
  }
2107
2108
  class ur extends k {
2108
2109
  constructor(e) {
2109
- super(), y(this, e, null, fr, N, {});
2110
+ super(), N(this, e, null, fr, y, {});
2110
2111
  }
2111
2112
  }
2112
2113
  function ar(t) {
@@ -2116,7 +2117,7 @@ function Ar(t) {
2116
2117
  let e, r, n, i, l, o, s, c, f;
2117
2118
  return n = new sr({}), c = new ur({}), {
2118
2119
  c() {
2119
- e = D("div"), r = D("div"), Q(n.$$.fragment), i = U(), l = D("span"), o = S(
2120
+ e = R("div"), r = R("div"), Q(n.$$.fragment), i = U(), l = R("span"), o = S(
2120
2121
  /*title*/
2121
2122
  t[0]
2122
2123
  ), s = U(), Q(c.$$.fragment), I(l, "class", "app-title svelte-fcqjlc"), I(r, "class", "rcb-header-layout__business-info svelte-fcqjlc"), I(e, "class", "rcb-header-layout svelte-fcqjlc");
@@ -2145,7 +2146,7 @@ function Ar(t) {
2145
2146
  }
2146
2147
  function mr(t) {
2147
2148
  let e, r;
2148
- return e = new z({
2149
+ return e = new W({
2149
2150
  props: {
2150
2151
  as: "header",
2151
2152
  $$slots: { default: [Ar] },
@@ -2182,7 +2183,7 @@ function dr(t, e, r) {
2182
2183
  }
2183
2184
  class Er extends k {
2184
2185
  constructor(e) {
2185
- super(), y(this, e, dr, mr, N, { title: 0 }, ar);
2186
+ super(), N(this, e, dr, mr, y, { title: 0 }, ar);
2186
2187
  }
2187
2188
  }
2188
2189
  function gr(t) {
@@ -2202,26 +2203,26 @@ function _r(t) {
2202
2203
  );
2203
2204
  return {
2204
2205
  c() {
2205
- e = D("div"), i && i.c(), I(e, "class", "rcb-modal-backdrop svelte-17dhulw");
2206
+ e = R("div"), i && i.c(), I(e, "class", "rcb-modal-backdrop svelte-17dhulw");
2206
2207
  },
2207
2208
  m(l, o) {
2208
2209
  _(l, e, o), i && i.m(e, null), r = !0;
2209
2210
  },
2210
2211
  p(l, [o]) {
2211
2212
  i && i.p && (!r || o & /*$$scope*/
2212
- 1) && K(
2213
+ 1) && H(
2213
2214
  i,
2214
2215
  n,
2215
2216
  l,
2216
2217
  /*$$scope*/
2217
2218
  l[0],
2218
- r ? H(
2219
+ r ? G(
2219
2220
  n,
2220
2221
  /*$$scope*/
2221
2222
  l[0],
2222
2223
  o,
2223
2224
  null
2224
- ) : j(
2225
+ ) : K(
2225
2226
  /*$$scope*/
2226
2227
  l[0]
2227
2228
  ),
@@ -2239,15 +2240,15 @@ function _r(t) {
2239
2240
  }
2240
2241
  };
2241
2242
  }
2242
- function pr(t, e, r) {
2243
+ function hr(t, e, r) {
2243
2244
  let { $$slots: n = {}, $$scope: i } = e;
2244
2245
  return t.$$set = (l) => {
2245
2246
  "$$scope" in l && r(0, i = l.$$scope);
2246
2247
  }, [i, n];
2247
2248
  }
2248
- class hr extends k {
2249
+ class pr extends k {
2249
2250
  constructor(e) {
2250
- super(), y(this, e, pr, _r, N, {}, gr);
2251
+ super(), N(this, e, hr, _r, y, {}, gr);
2251
2252
  }
2252
2253
  }
2253
2254
  function Ir(t) {
@@ -2267,7 +2268,7 @@ function wr(t) {
2267
2268
  );
2268
2269
  return {
2269
2270
  c() {
2270
- e = D("main"), l && l.c(), I(e, "class", r = re(`rcb-modal-main ${/*dark*/
2271
+ e = R("main"), l && l.c(), I(e, "class", r = ie(`rcb-modal-main ${/*dark*/
2271
2272
  t[0] ? "rcb-modal-dark" : ""}`) + " svelte-m6kocx");
2272
2273
  },
2273
2274
  m(o, s) {
@@ -2275,25 +2276,25 @@ function wr(t) {
2275
2276
  },
2276
2277
  p(o, [s]) {
2277
2278
  l && l.p && (!n || s & /*$$scope*/
2278
- 2) && K(
2279
+ 2) && H(
2279
2280
  l,
2280
2281
  i,
2281
2282
  o,
2282
2283
  /*$$scope*/
2283
2284
  o[1],
2284
- n ? H(
2285
+ n ? G(
2285
2286
  i,
2286
2287
  /*$$scope*/
2287
2288
  o[1],
2288
2289
  s,
2289
2290
  null
2290
- ) : j(
2291
+ ) : K(
2291
2292
  /*$$scope*/
2292
2293
  o[1]
2293
2294
  ),
2294
2295
  null
2295
2296
  ), (!n || s & /*dark*/
2296
- 1 && r !== (r = re(`rcb-modal-main ${/*dark*/
2297
+ 1 && r !== (r = ie(`rcb-modal-main ${/*dark*/
2297
2298
  o[0] ? "rcb-modal-dark" : ""}`) + " svelte-m6kocx")) && I(e, "class", r);
2298
2299
  },
2299
2300
  i(o) {
@@ -2315,7 +2316,7 @@ function Br(t, e, r) {
2315
2316
  }
2316
2317
  class br extends k {
2317
2318
  constructor(e) {
2318
- super(), y(this, e, Br, wr, N, { dark: 0 }, Ir);
2319
+ super(), N(this, e, Br, wr, y, { dark: 0 }, Ir);
2319
2320
  }
2320
2321
  }
2321
2322
  function Qr(t) {
@@ -2339,19 +2340,19 @@ function Qr(t) {
2339
2340
  },
2340
2341
  p(i, l) {
2341
2342
  n && n.p && (!e || l & /*$$scope*/
2342
- 4) && K(
2343
+ 4) && H(
2343
2344
  n,
2344
2345
  r,
2345
2346
  i,
2346
2347
  /*$$scope*/
2347
2348
  i[2],
2348
- e ? H(
2349
+ e ? G(
2349
2350
  r,
2350
2351
  /*$$scope*/
2351
2352
  i[2],
2352
2353
  l,
2353
2354
  null
2354
- ) : j(
2355
+ ) : K(
2355
2356
  /*$$scope*/
2356
2357
  i[2]
2357
2358
  ),
@@ -2371,9 +2372,9 @@ function Qr(t) {
2371
2372
  }
2372
2373
  function Cr(t) {
2373
2374
  let e, r;
2374
- return e = new hr({
2375
+ return e = new pr({
2375
2376
  props: {
2376
- $$slots: { default: [Rr] },
2377
+ $$slots: { default: [Dr] },
2377
2378
  $$scope: { ctx: t }
2378
2379
  }
2379
2380
  }), {
@@ -2399,7 +2400,7 @@ function Cr(t) {
2399
2400
  }
2400
2401
  };
2401
2402
  }
2402
- function Rr(t) {
2403
+ function Dr(t) {
2403
2404
  let e;
2404
2405
  const r = (
2405
2406
  /*#slots*/
@@ -2420,19 +2421,19 @@ function Rr(t) {
2420
2421
  },
2421
2422
  p(i, l) {
2422
2423
  n && n.p && (!e || l & /*$$scope*/
2423
- 4) && K(
2424
+ 4) && H(
2424
2425
  n,
2425
2426
  r,
2426
2427
  i,
2427
2428
  /*$$scope*/
2428
2429
  i[2],
2429
- e ? H(
2430
+ e ? G(
2430
2431
  r,
2431
2432
  /*$$scope*/
2432
2433
  i[2],
2433
2434
  l,
2434
2435
  null
2435
- ) : j(
2436
+ ) : K(
2436
2437
  /*$$scope*/
2437
2438
  i[2]
2438
2439
  ),
@@ -2450,7 +2451,7 @@ function Rr(t) {
2450
2451
  }
2451
2452
  };
2452
2453
  }
2453
- function Dr(t) {
2454
+ function Rr(t) {
2454
2455
  let e, r, n, i;
2455
2456
  const l = [Cr, Qr], o = [];
2456
2457
  function s(c, f) {
@@ -2461,7 +2462,7 @@ function Dr(t) {
2461
2462
  }
2462
2463
  return e = s(t), r = o[e] = l[e](t), {
2463
2464
  c() {
2464
- r.c(), n = X();
2465
+ r.c(), n = z();
2465
2466
  },
2466
2467
  m(c, f) {
2467
2468
  o[e].m(c, f), _(c, n, f), i = !0;
@@ -2491,10 +2492,10 @@ function Tr(t, e, r) {
2491
2492
  }
2492
2493
  class Mr extends k {
2493
2494
  constructor(e) {
2494
- super(), y(this, e, Tr, Dr, N, { condition: 0 });
2495
+ super(), N(this, e, Tr, Rr, y, { condition: 0 });
2495
2496
  }
2496
2497
  }
2497
- function Ue(t) {
2498
+ function Le(t) {
2498
2499
  let e, r;
2499
2500
  return e = new Er({ props: { title: (
2500
2501
  /*title*/
@@ -2523,10 +2524,10 @@ function Ue(t) {
2523
2524
  }
2524
2525
  };
2525
2526
  }
2526
- function Nr(t) {
2527
+ function yr(t) {
2527
2528
  let e, r, n = (
2528
2529
  /*title*/
2529
- t[0] && Ue(t)
2530
+ t[0] && Le(t)
2530
2531
  );
2531
2532
  const i = (
2532
2533
  /*#slots*/
@@ -2548,22 +2549,22 @@ function Nr(t) {
2548
2549
  p(o, s) {
2549
2550
  /*title*/
2550
2551
  o[0] ? n ? (n.p(o, s), s & /*title*/
2551
- 1 && u(n, 1)) : (n = Ue(o), n.c(), u(n, 1), n.m(e.parentNode, e)) : n && (P(), A(n, 1, 1, () => {
2552
+ 1 && u(n, 1)) : (n = Le(o), n.c(), u(n, 1), n.m(e.parentNode, e)) : n && (P(), A(n, 1, 1, () => {
2552
2553
  n = null;
2553
2554
  }), F()), l && l.p && (!r || s & /*$$scope*/
2554
- 8) && K(
2555
+ 8) && H(
2555
2556
  l,
2556
2557
  i,
2557
2558
  o,
2558
2559
  /*$$scope*/
2559
2560
  o[3],
2560
- r ? H(
2561
+ r ? G(
2561
2562
  i,
2562
2563
  /*$$scope*/
2563
2564
  o[3],
2564
2565
  s,
2565
2566
  null
2566
- ) : j(
2567
+ ) : K(
2567
2568
  /*$$scope*/
2568
2569
  o[3]
2569
2570
  ),
@@ -2581,7 +2582,7 @@ function Nr(t) {
2581
2582
  }
2582
2583
  };
2583
2584
  }
2584
- function yr(t) {
2585
+ function Nr(t) {
2585
2586
  let e, r;
2586
2587
  return e = new br({
2587
2588
  props: {
@@ -2589,7 +2590,7 @@ function yr(t) {
2589
2590
  /*dark*/
2590
2591
  t[1]
2591
2592
  ),
2592
- $$slots: { default: [Nr] },
2593
+ $$slots: { default: [yr] },
2593
2594
  $$scope: { ctx: t }
2594
2595
  }
2595
2596
  }), {
@@ -2625,10 +2626,61 @@ function kr(t, e, r) {
2625
2626
  }
2626
2627
  class tt extends k {
2627
2628
  constructor(e) {
2628
- super(), y(this, e, kr, yr, N, { title: 0, dark: 1 });
2629
+ super(), N(this, e, kr, Nr, y, { title: 0, dark: 1 });
2630
+ }
2631
+ }
2632
+ var j;
2633
+ (function(t) {
2634
+ 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";
2635
+ })(j || (j = {}));
2636
+ class X extends Error {
2637
+ constructor(e, r) {
2638
+ super(r), this.statusCode = e;
2639
+ }
2640
+ }
2641
+ class Or extends X {
2642
+ constructor() {
2643
+ super(j.INTERNAL_SERVER_ERROR, "An unknown error occurred.");
2644
+ }
2645
+ }
2646
+ class Ur extends X {
2647
+ }
2648
+ class vr extends X {
2649
+ }
2650
+ class Lr extends X {
2651
+ }
2652
+ class Pr extends X {
2653
+ }
2654
+ const ne = "https://api.revenuecat.com", Qe = "rcbilling/v1";
2655
+ async function Fr(t, e, r, n) {
2656
+ const i = await fetch(`${ne}/${Qe}/subscribe`, {
2657
+ method: "POST",
2658
+ headers: {
2659
+ Authorization: `Bearer ${t._API_KEY}`,
2660
+ "Content-Type": "application/json",
2661
+ Accept: "application/json"
2662
+ },
2663
+ body: JSON.stringify({
2664
+ app_user_id: e,
2665
+ product_id: r,
2666
+ email: n
2667
+ })
2668
+ });
2669
+ if (i.status === j.BAD_REQUEST)
2670
+ throw new Ur(i.status);
2671
+ if (i.status === j.TOO_MANY_REQUESTS)
2672
+ throw new Pr(i.status);
2673
+ if (i.status === j.CONFLICT)
2674
+ throw new vr(i.status);
2675
+ if (i.status === j.INTERNAL_SERVER_ERROR)
2676
+ throw new Lr(i.status);
2677
+ if (i.status === j.OK || i.status === j.CREATED) {
2678
+ const l = await i.json();
2679
+ return vn(l);
2629
2680
  }
2681
+ throw new Or();
2630
2682
  }
2631
- function Or(t) {
2683
+ function Sr(t) {
2632
2684
  L(t, "svelte-1xwsiii", `.rcb-ui-container.svelte-1xwsiii{color-scheme:none;font-family:"PP Object Sans",
2633
2685
  -apple-system,
2634
2686
  BlinkMacSystemFont,
@@ -2644,62 +2696,63 @@ function Or(t) {
2644
2696
  arial,
2645
2697
  sans-serif}.rcb-ui-layout.svelte-1xwsiii{display:flex;justify-content:center;align-items:flex-start}.rcb-ui-aside.svelte-1xwsiii{margin-right:1rem}@media screen and (max-width: 60rem){.rcb-ui-layout.svelte-1xwsiii{flex-direction:column;align-items:center;justify-content:flex-end;height:100%}.rcb-ui-aside.svelte-1xwsiii{margin-right:0;margin-bottom:1rem}}`);
2646
2698
  }
2647
- function ve(t) {
2648
- let e, r, n, i;
2699
+ function Pe(t) {
2700
+ let e, r, n, i = (
2701
+ /*purchases*/
2702
+ t[1].isSandbox()
2703
+ ), l;
2649
2704
  r = new tt({
2650
2705
  props: {
2651
2706
  dark: !0,
2652
2707
  title: "OpenScratches, Inc.",
2653
- $$slots: { default: [Ur] },
2708
+ $$slots: { default: [Yr] },
2654
2709
  $$scope: { ctx: t }
2655
2710
  }
2656
2711
  });
2657
- let l = (
2658
- /*environment*/
2659
- t[2] === "sandbox" && Pe()
2660
- );
2712
+ let o = i && Se();
2661
2713
  return {
2662
2714
  c() {
2663
- e = D("div"), Q(r.$$.fragment), n = U(), l && l.c(), I(e, "class", "rcb-ui-aside svelte-1xwsiii");
2715
+ e = R("div"), Q(r.$$.fragment), n = U(), o && o.c(), I(e, "class", "rcb-ui-aside svelte-1xwsiii");
2664
2716
  },
2665
- m(o, s) {
2666
- _(o, e, s), w(r, e, null), M(e, n), l && l.m(e, null), i = !0;
2717
+ m(s, c) {
2718
+ _(s, e, c), w(r, e, null), M(e, n), o && o.m(e, null), l = !0;
2667
2719
  },
2668
- p(o, s) {
2669
- const c = {};
2670
- s & /*$$scope, productDetails*/
2671
- 65544 && (c.$$scope = { dirty: s, ctx: o }), r.$set(c), /*environment*/
2672
- o[2] === "sandbox" ? l ? s & /*environment*/
2673
- 4 && u(l, 1) : (l = Pe(), l.c(), u(l, 1), l.m(e, null)) : l && (P(), A(l, 1, 1, () => {
2674
- l = null;
2720
+ p(s, c) {
2721
+ const f = {};
2722
+ c & /*$$scope, productDetails*/
2723
+ 65540 && (f.$$scope = { dirty: c, ctx: s }), r.$set(f), c & /*purchases*/
2724
+ 2 && (i = /*purchases*/
2725
+ s[1].isSandbox()), i ? o ? c & /*purchases*/
2726
+ 2 && u(o, 1) : (o = Se(), o.c(), u(o, 1), o.m(e, null)) : o && (P(), A(o, 1, 1, () => {
2727
+ o = null;
2675
2728
  }), F());
2676
2729
  },
2677
- i(o) {
2678
- i || (u(r.$$.fragment, o), u(l), i = !0);
2730
+ i(s) {
2731
+ l || (u(r.$$.fragment, s), u(o), l = !0);
2679
2732
  },
2680
- o(o) {
2681
- A(r.$$.fragment, o), A(l), i = !1;
2733
+ o(s) {
2734
+ A(r.$$.fragment, s), A(o), l = !1;
2682
2735
  },
2683
- d(o) {
2684
- o && g(e), B(r), l && l.d();
2736
+ d(s) {
2737
+ s && g(e), B(r), o && o.d();
2685
2738
  }
2686
2739
  };
2687
2740
  }
2688
- function Le(t) {
2741
+ function Fe(t) {
2689
2742
  let e, r;
2690
2743
  return e = new ze({
2691
2744
  props: {
2692
2745
  productDetails: (
2693
2746
  /*productDetails*/
2694
- t[3]
2747
+ t[2]
2695
2748
  ),
2696
2749
  onContinue: (
2697
2750
  /*handleContinue*/
2698
- t[8]
2751
+ t[7]
2699
2752
  ),
2700
2753
  onClose: (
2701
2754
  /*handleClose*/
2702
- t[7]
2755
+ t[6]
2703
2756
  )
2704
2757
  }
2705
2758
  }), {
@@ -2712,8 +2765,8 @@ function Le(t) {
2712
2765
  p(n, i) {
2713
2766
  const l = {};
2714
2767
  i & /*productDetails*/
2715
- 8 && (l.productDetails = /*productDetails*/
2716
- n[3]), e.$set(l);
2768
+ 4 && (l.productDetails = /*productDetails*/
2769
+ n[2]), e.$set(l);
2717
2770
  },
2718
2771
  i(n) {
2719
2772
  r || (u(e.$$.fragment, n), r = !0);
@@ -2726,22 +2779,22 @@ function Le(t) {
2726
2779
  }
2727
2780
  };
2728
2781
  }
2729
- function Ur(t) {
2782
+ function Yr(t) {
2730
2783
  let e, r, n = (
2731
2784
  /*productDetails*/
2732
- t[3] && Le(t)
2785
+ t[2] && Fe(t)
2733
2786
  );
2734
2787
  return {
2735
2788
  c() {
2736
- n && n.c(), e = X();
2789
+ n && n.c(), e = z();
2737
2790
  },
2738
2791
  m(i, l) {
2739
2792
  n && n.m(i, l), _(i, e, l), r = !0;
2740
2793
  },
2741
2794
  p(i, l) {
2742
2795
  /*productDetails*/
2743
- i[3] ? n ? (n.p(i, l), l & /*productDetails*/
2744
- 8 && u(n, 1)) : (n = Le(i), n.c(), u(n, 1), n.m(e.parentNode, e)) : n && (P(), A(n, 1, 1, () => {
2796
+ i[2] ? n ? (n.p(i, l), l & /*productDetails*/
2797
+ 4 && u(n, 1)) : (n = Fe(i), n.c(), u(n, 1), n.m(e.parentNode, e)) : n && (P(), A(n, 1, 1, () => {
2745
2798
  n = null;
2746
2799
  }), F());
2747
2800
  },
@@ -2756,9 +2809,9 @@ function Ur(t) {
2756
2809
  }
2757
2810
  };
2758
2811
  }
2759
- function Pe(t) {
2812
+ function Se(t) {
2760
2813
  let e, r;
2761
- return e = new Ot({}), {
2814
+ return e = new kt({}), {
2762
2815
  c() {
2763
2816
  Q(e.$$.fragment);
2764
2817
  },
@@ -2776,21 +2829,21 @@ function Pe(t) {
2776
2829
  }
2777
2830
  };
2778
2831
  }
2779
- function Fe(t) {
2832
+ function Ye(t) {
2780
2833
  let e, r;
2781
2834
  return e = new ze({
2782
2835
  props: {
2783
2836
  productDetails: (
2784
2837
  /*productDetails*/
2785
- t[3]
2838
+ t[2]
2786
2839
  ),
2787
2840
  onContinue: (
2788
2841
  /*handleContinue*/
2789
- t[8]
2842
+ t[7]
2790
2843
  ),
2791
2844
  onClose: (
2792
2845
  /*handleClose*/
2793
- t[7]
2846
+ t[6]
2794
2847
  )
2795
2848
  }
2796
2849
  }), {
@@ -2803,8 +2856,8 @@ function Fe(t) {
2803
2856
  p(n, i) {
2804
2857
  const l = {};
2805
2858
  i & /*productDetails*/
2806
- 8 && (l.productDetails = /*productDetails*/
2807
- n[3]), e.$set(l);
2859
+ 4 && (l.productDetails = /*productDetails*/
2860
+ n[2]), e.$set(l);
2808
2861
  },
2809
2862
  i(n) {
2810
2863
  r || (u(e.$$.fragment, n), r = !0);
@@ -2817,9 +2870,9 @@ function Fe(t) {
2817
2870
  }
2818
2871
  };
2819
2872
  }
2820
- function Se(t) {
2873
+ function Ge(t) {
2821
2874
  let e, r;
2822
- return e = new Qe({}), {
2875
+ return e = new De({}), {
2823
2876
  c() {
2824
2877
  Q(e.$$.fragment);
2825
2878
  },
@@ -2837,7 +2890,7 @@ function Se(t) {
2837
2890
  }
2838
2891
  };
2839
2892
  }
2840
- function Ge(t) {
2893
+ function He(t) {
2841
2894
  let e, r;
2842
2895
  return e = new rr({
2843
2896
  props: {
@@ -2847,15 +2900,15 @@ function Ge(t) {
2847
2900
  ),
2848
2901
  onContinue: (
2849
2902
  /*handleContinue*/
2850
- t[8]
2903
+ t[7]
2851
2904
  ),
2852
2905
  onClose: (
2853
2906
  /*handleClose*/
2854
- t[7]
2907
+ t[6]
2855
2908
  ),
2856
2909
  onError: (
2857
2910
  /*handleError*/
2858
- t[9]
2911
+ t[8]
2859
2912
  )
2860
2913
  }
2861
2914
  }), {
@@ -2882,7 +2935,7 @@ function Ge(t) {
2882
2935
  }
2883
2936
  };
2884
2937
  }
2885
- function Ye(t) {
2938
+ function Ke(t) {
2886
2939
  let e, r;
2887
2940
  return e = new qn({
2888
2941
  props: {
@@ -2892,19 +2945,19 @@ function Ye(t) {
2892
2945
  ),
2893
2946
  paymentInfoCollectionMetadata: (
2894
2947
  /*paymentInfoCollectionMetadata*/
2895
- t[4]
2948
+ t[3]
2896
2949
  ),
2897
2950
  onContinue: (
2898
2951
  /*handleContinue*/
2899
- t[8]
2952
+ t[7]
2900
2953
  ),
2901
2954
  onClose: (
2902
2955
  /*handleClose*/
2903
- t[7]
2956
+ t[6]
2904
2957
  ),
2905
2958
  onError: (
2906
2959
  /*handleError*/
2907
- t[9]
2960
+ t[8]
2908
2961
  )
2909
2962
  }
2910
2963
  }), {
@@ -2919,8 +2972,8 @@ function Ye(t) {
2919
2972
  i & /*purchases*/
2920
2973
  2 && (l.purchases = /*purchases*/
2921
2974
  n[1]), i & /*paymentInfoCollectionMetadata*/
2922
- 16 && (l.paymentInfoCollectionMetadata = /*paymentInfoCollectionMetadata*/
2923
- n[4]), e.$set(l);
2975
+ 8 && (l.paymentInfoCollectionMetadata = /*paymentInfoCollectionMetadata*/
2976
+ n[3]), e.$set(l);
2924
2977
  },
2925
2978
  i(n) {
2926
2979
  r || (u(e.$$.fragment, n), r = !0);
@@ -2933,9 +2986,9 @@ function Ye(t) {
2933
2986
  }
2934
2987
  };
2935
2988
  }
2936
- function He(t) {
2989
+ function je(t) {
2937
2990
  let e, r;
2938
- return e = new Qe({}), {
2991
+ return e = new De({}), {
2939
2992
  c() {
2940
2993
  Q(e.$$.fragment);
2941
2994
  },
@@ -2953,9 +3006,9 @@ function He(t) {
2953
3006
  }
2954
3007
  };
2955
3008
  }
2956
- function Ke(t) {
3009
+ function Je(t) {
2957
3010
  let e, r;
2958
- return e = new Vt({}), {
3011
+ return e = new xt({}), {
2959
3012
  c() {
2960
3013
  Q(e.$$.fragment);
2961
3014
  },
@@ -2973,12 +3026,12 @@ function Ke(t) {
2973
3026
  }
2974
3027
  };
2975
3028
  }
2976
- function je(t) {
3029
+ function $e(t) {
2977
3030
  let e, r;
2978
- return e = new pn({
3031
+ return e = new _n({
2979
3032
  props: { onContinue: (
2980
3033
  /*handleContinue*/
2981
- t[8]
3034
+ t[7]
2982
3035
  ) }
2983
3036
  }), {
2984
3037
  c() {
@@ -2999,117 +3052,117 @@ function je(t) {
2999
3052
  }
3000
3053
  };
3001
3054
  }
3002
- function vr(t) {
3055
+ function Gr(t) {
3003
3056
  let e, r, n, i, l, o, s, c, f = (
3004
3057
  /*state*/
3005
- t[5] === "present-offer" && /*productDetails*/
3006
- t[3] && Fe(t)
3058
+ t[4] === "present-offer" && /*productDetails*/
3059
+ t[2] && Ye(t)
3007
3060
  ), a = (
3008
3061
  /*state*/
3009
- t[5] === "present-offer" && !/*productDetails*/
3010
- t[3] && Se()
3062
+ t[4] === "present-offer" && !/*productDetails*/
3063
+ t[2] && Ge()
3011
3064
  ), m = (
3012
3065
  /*state*/
3013
- t[5] === "needs-auth-info" && Ge(t)
3014
- ), h = (
3066
+ t[4] === "needs-auth-info" && He(t)
3067
+ ), p = (
3015
3068
  /*state*/
3016
- t[5] === "needs-payment-info" && /*paymentInfoCollectionMetadata*/
3017
- t[4] && Ye(t)
3069
+ t[4] === "needs-payment-info" && /*paymentInfoCollectionMetadata*/
3070
+ t[3] && Ke(t)
3018
3071
  ), E = (
3019
3072
  /*state*/
3020
- t[5] === "loading" && He()
3073
+ t[4] === "loading" && je()
3021
3074
  ), C = (
3022
3075
  /*state*/
3023
- t[5] === "error" && Ke()
3024
- ), p = (
3076
+ t[4] === "error" && Je()
3077
+ ), h = (
3025
3078
  /*state*/
3026
- t[5] === "success" && je(t)
3079
+ t[4] === "success" && $e(t)
3027
3080
  );
3028
3081
  return {
3029
3082
  c() {
3030
- f && f.c(), e = U(), a && a.c(), r = U(), m && m.c(), n = U(), h && h.c(), i = U(), E && E.c(), l = U(), C && C.c(), o = U(), p && p.c(), s = X();
3083
+ f && f.c(), e = U(), a && a.c(), r = U(), m && m.c(), n = U(), p && p.c(), i = U(), E && E.c(), l = U(), C && C.c(), o = U(), h && h.c(), s = z();
3031
3084
  },
3032
3085
  m(d, b) {
3033
- f && f.m(d, b), _(d, e, b), a && a.m(d, b), _(d, r, b), m && m.m(d, b), _(d, n, b), h && h.m(d, b), _(d, i, b), E && E.m(d, b), _(d, l, b), C && C.m(d, b), _(d, o, b), p && p.m(d, b), _(d, s, b), c = !0;
3086
+ f && f.m(d, b), _(d, e, b), a && a.m(d, b), _(d, r, b), m && m.m(d, b), _(d, n, b), p && p.m(d, b), _(d, i, b), E && E.m(d, b), _(d, l, b), C && C.m(d, b), _(d, o, b), h && h.m(d, b), _(d, s, b), c = !0;
3034
3087
  },
3035
3088
  p(d, b) {
3036
3089
  /*state*/
3037
- d[5] === "present-offer" && /*productDetails*/
3038
- d[3] ? f ? (f.p(d, b), b & /*state, productDetails*/
3039
- 40 && u(f, 1)) : (f = Fe(d), f.c(), u(f, 1), f.m(e.parentNode, e)) : f && (P(), A(f, 1, 1, () => {
3090
+ d[4] === "present-offer" && /*productDetails*/
3091
+ d[2] ? f ? (f.p(d, b), b & /*state, productDetails*/
3092
+ 20 && u(f, 1)) : (f = Ye(d), f.c(), u(f, 1), f.m(e.parentNode, e)) : f && (P(), A(f, 1, 1, () => {
3040
3093
  f = null;
3041
3094
  }), F()), /*state*/
3042
- d[5] === "present-offer" && !/*productDetails*/
3043
- d[3] ? a ? b & /*state, productDetails*/
3044
- 40 && u(a, 1) : (a = Se(), a.c(), u(a, 1), a.m(r.parentNode, r)) : a && (P(), A(a, 1, 1, () => {
3095
+ d[4] === "present-offer" && !/*productDetails*/
3096
+ d[2] ? a ? b & /*state, productDetails*/
3097
+ 20 && u(a, 1) : (a = Ge(), a.c(), u(a, 1), a.m(r.parentNode, r)) : a && (P(), A(a, 1, 1, () => {
3045
3098
  a = null;
3046
3099
  }), F()), /*state*/
3047
- d[5] === "needs-auth-info" ? m ? (m.p(d, b), b & /*state*/
3048
- 32 && u(m, 1)) : (m = Ge(d), m.c(), u(m, 1), m.m(n.parentNode, n)) : m && (P(), A(m, 1, 1, () => {
3100
+ d[4] === "needs-auth-info" ? m ? (m.p(d, b), b & /*state*/
3101
+ 16 && u(m, 1)) : (m = He(d), m.c(), u(m, 1), m.m(n.parentNode, n)) : m && (P(), A(m, 1, 1, () => {
3049
3102
  m = null;
3050
3103
  }), F()), /*state*/
3051
- d[5] === "needs-payment-info" && /*paymentInfoCollectionMetadata*/
3052
- d[4] ? h ? (h.p(d, b), b & /*state, paymentInfoCollectionMetadata*/
3053
- 48 && u(h, 1)) : (h = Ye(d), h.c(), u(h, 1), h.m(i.parentNode, i)) : h && (P(), A(h, 1, 1, () => {
3054
- h = null;
3104
+ d[4] === "needs-payment-info" && /*paymentInfoCollectionMetadata*/
3105
+ d[3] ? p ? (p.p(d, b), b & /*state, paymentInfoCollectionMetadata*/
3106
+ 24 && u(p, 1)) : (p = Ke(d), p.c(), u(p, 1), p.m(i.parentNode, i)) : p && (P(), A(p, 1, 1, () => {
3107
+ p = null;
3055
3108
  }), F()), /*state*/
3056
- d[5] === "loading" ? E ? b & /*state*/
3057
- 32 && u(E, 1) : (E = He(), E.c(), u(E, 1), E.m(l.parentNode, l)) : E && (P(), A(E, 1, 1, () => {
3109
+ d[4] === "loading" ? E ? b & /*state*/
3110
+ 16 && u(E, 1) : (E = je(), E.c(), u(E, 1), E.m(l.parentNode, l)) : E && (P(), A(E, 1, 1, () => {
3058
3111
  E = null;
3059
3112
  }), F()), /*state*/
3060
- d[5] === "error" ? C ? b & /*state*/
3061
- 32 && u(C, 1) : (C = Ke(), C.c(), u(C, 1), C.m(o.parentNode, o)) : C && (P(), A(C, 1, 1, () => {
3113
+ d[4] === "error" ? C ? b & /*state*/
3114
+ 16 && u(C, 1) : (C = Je(), C.c(), u(C, 1), C.m(o.parentNode, o)) : C && (P(), A(C, 1, 1, () => {
3062
3115
  C = null;
3063
3116
  }), F()), /*state*/
3064
- d[5] === "success" ? p ? (p.p(d, b), b & /*state*/
3065
- 32 && u(p, 1)) : (p = je(d), p.c(), u(p, 1), p.m(s.parentNode, s)) : p && (P(), A(p, 1, 1, () => {
3066
- p = null;
3117
+ d[4] === "success" ? h ? (h.p(d, b), b & /*state*/
3118
+ 16 && u(h, 1)) : (h = $e(d), h.c(), u(h, 1), h.m(s.parentNode, s)) : h && (P(), A(h, 1, 1, () => {
3119
+ h = null;
3067
3120
  }), F());
3068
3121
  },
3069
3122
  i(d) {
3070
- c || (u(f), u(a), u(m), u(h), u(E), u(C), u(p), c = !0);
3123
+ c || (u(f), u(a), u(m), u(p), u(E), u(C), u(h), c = !0);
3071
3124
  },
3072
3125
  o(d) {
3073
- A(f), A(a), A(m), A(h), A(E), A(C), A(p), c = !1;
3126
+ A(f), A(a), A(m), A(p), A(E), A(C), A(h), c = !1;
3074
3127
  },
3075
3128
  d(d) {
3076
- d && (g(e), g(r), g(n), g(i), g(l), g(o), g(s)), f && f.d(d), a && a.d(d), m && m.d(d), h && h.d(d), E && E.d(d), C && C.d(d), p && p.d(d);
3129
+ d && (g(e), g(r), g(n), g(i), g(l), g(o), g(s)), f && f.d(d), a && a.d(d), m && m.d(d), p && p.d(d), E && E.d(d), C && C.d(d), h && h.d(d);
3077
3130
  }
3078
3131
  };
3079
3132
  }
3080
- function Lr(t) {
3133
+ function Hr(t) {
3081
3134
  let e, r = (
3082
3135
  /*statesWhereOfferDetailsAreShown*/
3083
- t[6].includes(
3136
+ t[5].includes(
3084
3137
  /*state*/
3085
- t[5]
3138
+ t[4]
3086
3139
  )
3087
- ), n, i, l, o = r && ve(t);
3140
+ ), n, i, l, o = r && Pe(t);
3088
3141
  return i = new tt({
3089
3142
  props: {
3090
- $$slots: { default: [vr] },
3143
+ $$slots: { default: [Gr] },
3091
3144
  $$scope: { ctx: t }
3092
3145
  }
3093
3146
  }), {
3094
3147
  c() {
3095
- e = D("div"), o && o.c(), n = U(), Q(i.$$.fragment), I(e, "class", "rcb-ui-layout svelte-1xwsiii");
3148
+ e = R("div"), o && o.c(), n = U(), Q(i.$$.fragment), I(e, "class", "rcb-ui-layout svelte-1xwsiii");
3096
3149
  },
3097
3150
  m(s, c) {
3098
3151
  _(s, e, c), o && o.m(e, null), M(e, n), w(i, e, null), l = !0;
3099
3152
  },
3100
3153
  p(s, c) {
3101
3154
  c & /*state*/
3102
- 32 && (r = /*statesWhereOfferDetailsAreShown*/
3103
- s[6].includes(
3155
+ 16 && (r = /*statesWhereOfferDetailsAreShown*/
3156
+ s[5].includes(
3104
3157
  /*state*/
3105
- s[5]
3158
+ s[4]
3106
3159
  )), r ? o ? (o.p(s, c), c & /*state*/
3107
- 32 && u(o, 1)) : (o = ve(s), o.c(), u(o, 1), o.m(e, n)) : o && (P(), A(o, 1, 1, () => {
3160
+ 16 && u(o, 1)) : (o = Pe(s), o.c(), u(o, 1), o.m(e, n)) : o && (P(), A(o, 1, 1, () => {
3108
3161
  o = null;
3109
3162
  }), F());
3110
3163
  const f = {};
3111
3164
  c & /*$$scope, state, purchases, paymentInfoCollectionMetadata, productDetails*/
3112
- 65594 && (f.$$scope = { dirty: c, ctx: s }), i.$set(f);
3165
+ 65566 && (f.$$scope = { dirty: c, ctx: s }), i.$set(f);
3113
3166
  },
3114
3167
  i(s) {
3115
3168
  l || (u(o), u(i.$$.fragment, s), l = !0);
@@ -3122,7 +3175,7 @@ function Lr(t) {
3122
3175
  }
3123
3176
  };
3124
3177
  }
3125
- function Pr(t) {
3178
+ function Kr(t) {
3126
3179
  let e, r, n;
3127
3180
  return r = new Mr({
3128
3181
  props: {
@@ -3130,12 +3183,12 @@ function Pr(t) {
3130
3183
  /*asModal*/
3131
3184
  t[0]
3132
3185
  ),
3133
- $$slots: { default: [Lr] },
3186
+ $$slots: { default: [Hr] },
3134
3187
  $$scope: { ctx: t }
3135
3188
  }
3136
3189
  }), {
3137
3190
  c() {
3138
- e = D("div"), Q(r.$$.fragment), I(e, "class", "rcb-ui-container svelte-1xwsiii");
3191
+ e = R("div"), Q(r.$$.fragment), I(e, "class", "rcb-ui-container svelte-1xwsiii");
3139
3192
  },
3140
3193
  m(i, l) {
3141
3194
  _(i, e, l), w(r, e, null), n = !0;
@@ -3144,8 +3197,8 @@ function Pr(t) {
3144
3197
  const o = {};
3145
3198
  l & /*asModal*/
3146
3199
  1 && (o.condition = /*asModal*/
3147
- i[0]), l & /*$$scope, state, purchases, paymentInfoCollectionMetadata, productDetails, environment*/
3148
- 65598 && (o.$$scope = { dirty: l, ctx: i }), r.$set(o);
3200
+ i[0]), l & /*$$scope, state, purchases, paymentInfoCollectionMetadata, productDetails*/
3201
+ 65566 && (o.$$scope = { dirty: l, ctx: i }), r.$set(o);
3149
3202
  },
3150
3203
  i(i) {
3151
3204
  n || (u(r.$$.fragment, i), n = !0);
@@ -3158,115 +3211,148 @@ function Pr(t) {
3158
3211
  }
3159
3212
  };
3160
3213
  }
3161
- function Fr(t, e, r) {
3162
- var R;
3163
- let { asModal: n = !0 } = e, { customerEmail: i } = e, { appUserId: l } = e, { rcPackage: o } = e, { onFinished: s } = e, { purchases: c } = e, { environment: f = "sandbox" } = e, a = null, m = null;
3164
- const h = ((R = o.rcBillingProduct) == null ? void 0 : R.id) ?? null;
3214
+ function jr(t, e, r) {
3215
+ var D;
3216
+ let { asModal: n = !0 } = e, { customerEmail: i } = e, { appUserId: l } = e, { rcPackage: o } = e, { onFinished: s } = e, { onClose: c } = e, { purchases: f } = e, a = null, m = null;
3217
+ const p = ((D = o.rcBillingProduct) == null ? void 0 : D.id) ?? null;
3165
3218
  let E = "present-offer";
3166
3219
  const C = ["present-offer", "needs-auth-info", "needs-payment-info", "loading"];
3167
- be(async () => {
3168
- if (r(3, a = o.rcBillingProduct), E === "present-offer") {
3169
- i ? d() : r(5, E = "needs-auth-info");
3220
+ Ce(async () => {
3221
+ if (r(2, a = o.rcBillingProduct), E === "present-offer") {
3222
+ i ? d() : r(4, E = "needs-auth-info");
3170
3223
  return;
3171
3224
  }
3172
3225
  });
3173
- const p = () => {
3174
- s();
3226
+ const h = () => {
3227
+ c();
3175
3228
  }, d = () => {
3176
- if (h === null) {
3177
- r(5, E = "error");
3229
+ if (p === null) {
3230
+ r(4, E = "error");
3178
3231
  return;
3179
3232
  } else
3180
- r(5, E = "loading");
3181
- c.subscribe(l, h, i, f).then((v) => {
3233
+ r(4, E = "loading");
3234
+ Fr(f, l, p, i).then((v) => {
3182
3235
  if (v.nextAction === "collect_payment_info") {
3183
- r(5, E = "needs-payment-info"), r(4, m = v);
3236
+ r(4, E = "needs-payment-info"), r(3, m = v);
3184
3237
  return;
3185
3238
  }
3186
- r(5, E = "success");
3239
+ r(4, E = "success");
3187
3240
  }).catch(() => {
3188
- r(5, E = "error");
3241
+ r(4, E = "error");
3189
3242
  });
3190
3243
  }, b = (v) => {
3191
3244
  if (E === "needs-auth-info") {
3192
- v && r(10, i = v.email), d();
3245
+ v && r(9, i = v.email), d();
3193
3246
  return;
3194
3247
  }
3195
3248
  if (E === "needs-payment-info") {
3196
- r(5, E = "success");
3249
+ r(4, E = "success");
3197
3250
  return;
3198
3251
  }
3199
3252
  if (E === "success" || E === "error") {
3200
3253
  s();
3201
3254
  return;
3202
3255
  }
3203
- r(5, E = "success");
3256
+ r(4, E = "success");
3204
3257
  }, O = () => {
3205
- r(5, E = "error");
3258
+ r(4, E = "error");
3206
3259
  };
3207
3260
  return t.$$set = (v) => {
3208
- "asModal" in v && r(0, n = v.asModal), "customerEmail" in v && r(10, i = v.customerEmail), "appUserId" in v && r(11, l = v.appUserId), "rcPackage" in v && r(12, o = v.rcPackage), "onFinished" in v && r(13, s = v.onFinished), "purchases" in v && r(1, c = v.purchases), "environment" in v && r(2, f = v.environment);
3261
+ "asModal" in v && r(0, n = v.asModal), "customerEmail" in v && r(9, i = v.customerEmail), "appUserId" in v && r(10, l = v.appUserId), "rcPackage" in v && r(11, o = v.rcPackage), "onFinished" in v && r(12, s = v.onFinished), "onClose" in v && r(13, c = v.onClose), "purchases" in v && r(1, f = v.purchases);
3209
3262
  }, [
3210
3263
  n,
3211
- c,
3212
3264
  f,
3213
3265
  a,
3214
3266
  m,
3215
3267
  E,
3216
3268
  C,
3217
- p,
3269
+ h,
3218
3270
  b,
3219
3271
  O,
3220
3272
  i,
3221
3273
  l,
3222
3274
  o,
3223
- s
3275
+ s,
3276
+ c
3224
3277
  ];
3225
3278
  }
3226
- class Sr extends k {
3279
+ class Jr extends k {
3227
3280
  constructor(e) {
3228
- super(), y(
3281
+ super(), N(
3229
3282
  this,
3230
3283
  e,
3231
- Fr,
3232
- Pr,
3233
- N,
3284
+ jr,
3285
+ Kr,
3286
+ y,
3234
3287
  {
3235
3288
  asModal: 0,
3236
- customerEmail: 10,
3237
- appUserId: 11,
3238
- rcPackage: 12,
3239
- onFinished: 13,
3240
- purchases: 1,
3241
- environment: 2
3289
+ customerEmail: 9,
3290
+ appUserId: 10,
3291
+ rcPackage: 11,
3292
+ onFinished: 12,
3293
+ onClose: 13,
3294
+ purchases: 1
3242
3295
  },
3243
- Or
3296
+ Sr
3244
3297
  );
3245
3298
  }
3246
3299
  }
3247
- var $;
3248
- (function(t) {
3249
- 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";
3250
- })($ || ($ = {}));
3251
- class oe extends Error {
3252
- constructor(e, r) {
3253
- super(r), this.statusCode = e;
3254
- }
3300
+ function $r(t) {
3301
+ return new Date(t.expires_date) > /* @__PURE__ */ new Date();
3255
3302
  }
3256
- class Gr extends oe {
3257
- constructor() {
3258
- super($.INTERNAL_SERVER_ERROR, "An unknown error occurred.");
3303
+ function xr(t, e) {
3304
+ return {
3305
+ identifier: t,
3306
+ isActive: $r(e),
3307
+ originalPurchaseDate: new Date(e.purchase_date),
3308
+ expirationDate: new Date(e.expires_date),
3309
+ productIdentifier: e.product_identifier
3310
+ };
3311
+ }
3312
+ function Vr(t) {
3313
+ const e = {}, r = {};
3314
+ for (const n in t) {
3315
+ const i = xr(n, t[n]);
3316
+ e[n] = i, i.isActive && (r[n] = i);
3259
3317
  }
3318
+ return {
3319
+ all: e,
3320
+ active: r
3321
+ };
3260
3322
  }
3261
- class Yr extends oe {
3262
- }
3263
- class Hr extends oe {
3323
+ function qr(t) {
3324
+ return t == null ? null : new Date(t);
3264
3325
  }
3265
- class Kr extends oe {
3326
+ function Wr(t) {
3327
+ return {
3328
+ entitlements: Vr(
3329
+ t.subscriber.entitlements
3330
+ ),
3331
+ managementURL: t.subscriber.management_url,
3332
+ requestDate: new Date(t.request_date),
3333
+ firstSeenDate: new Date(t.subscriber.first_seen),
3334
+ originalPurchaseDate: qr(
3335
+ t.subscriber.original_purchase_date
3336
+ )
3337
+ };
3266
3338
  }
3267
- class jr extends oe {
3339
+ function zr(t, e, r, n = 10) {
3340
+ return new Promise((l, o) => {
3341
+ const s = (c = 1) => t.isEntitledTo(e, r).then((f) => {
3342
+ if (c > n)
3343
+ return l(!1);
3344
+ if (f)
3345
+ return l(!0);
3346
+ setTimeout(
3347
+ () => s(c + 1),
3348
+ 1e3
3349
+ );
3350
+ }).catch(o);
3351
+ s();
3352
+ });
3268
3353
  }
3269
- const Je = "0.0.8", G = class G {
3354
+ const Ie = "0.0.8";
3355
+ class Zr {
3270
3356
  constructor(e, r) {
3271
3357
  // @internal
3272
3358
  J(this, "_API_KEY", null);
@@ -3281,9 +3367,9 @@ const Je = "0.0.8", G = class G {
3281
3367
  r.product_details.forEach((s) => {
3282
3368
  i[s.identifier] = s;
3283
3369
  });
3284
- const l = n == null ? null : Re(n, i), o = {};
3370
+ const l = n == null ? null : Te(n, i), o = {};
3285
3371
  return e.offerings.forEach((s) => {
3286
- const c = Re(s, i);
3372
+ const c = Te(s, i);
3287
3373
  c != null && (o[s.identifier] = c);
3288
3374
  }), Object.keys(o).length == 0 && console.debug(
3289
3375
  "Empty offerings. Please make sure you've configured offerings correctly in the RevenueCat dashboard and that the products are properly configured."
@@ -3293,33 +3379,33 @@ const Je = "0.0.8", G = class G {
3293
3379
  };
3294
3380
  });
3295
3381
  var n, i;
3296
- this._API_KEY = e, this._PAYMENT_PROVIDER_SETTINGS = r, G._RC_ENDPOINT === void 0 && console.error(
3297
- "Project was build without some of the environment variables set"
3298
- ), (!this._PAYMENT_PROVIDER_SETTINGS.stripe || !((n = this._PAYMENT_PROVIDER_SETTINGS.stripe) != null && n.accountId) || !((i = this._PAYMENT_PROVIDER_SETTINGS.stripe) != null && i.publishableKey)) && console.error(
3382
+ this._API_KEY = e, this._PAYMENT_PROVIDER_SETTINGS = r, (!this._PAYMENT_PROVIDER_SETTINGS.stripe || !((n = this._PAYMENT_PROVIDER_SETTINGS.stripe) != null && n.accountId) || !((i = this._PAYMENT_PROVIDER_SETTINGS.stripe) != null && i.publishableKey)) && console.error(
3299
3383
  "Project was build without the stripe payment provider settings set"
3300
3384
  );
3301
3385
  }
3302
3386
  async getOfferings(e) {
3303
3387
  const n = await (await fetch(
3304
- `${G._RC_ENDPOINT}/v1/subscribers/${e}/offerings`,
3388
+ `${ne}/v1/subscribers/${e}/offerings`,
3305
3389
  {
3306
3390
  headers: {
3307
3391
  Authorization: `Bearer ${this._API_KEY}`,
3308
3392
  "Content-Type": "application/json",
3309
3393
  Accept: "application/json",
3310
3394
  "X-Platform": "web",
3311
- "X-Version": Je
3395
+ "X-Version": Ie
3312
3396
  }
3313
3397
  }
3314
3398
  )).json(), i = n.offerings.flatMap((s) => s.packages).map((s) => s.platform_product_identifier), o = await (await fetch(
3315
- `${G._RC_ENDPOINT}/${G._BASE_PATH}/subscribers/${e}/products?id=${i.join("&id=")}`,
3399
+ `${ne}/${Qe}/subscribers/${e}/products?id=${i.join(
3400
+ "&id="
3401
+ )}`,
3316
3402
  {
3317
3403
  headers: {
3318
3404
  Authorization: `Bearer ${this._API_KEY}`,
3319
3405
  "Content-Type": "application/json",
3320
3406
  Accept: "application/json",
3321
3407
  "X-Platform": "web",
3322
- "X-Version": Je
3408
+ "X-Version": Ie
3323
3409
  }
3324
3410
  }
3325
3411
  )).json();
@@ -3327,7 +3413,7 @@ const Je = "0.0.8", G = class G {
3327
3413
  }
3328
3414
  async isEntitledTo(e, r) {
3329
3415
  const n = await fetch(
3330
- `${G._RC_ENDPOINT}/${G._BASE_PATH}/entitlements/${e}`,
3416
+ `${ne}/${Qe}/entitlements/${e}`,
3331
3417
  {
3332
3418
  headers: {
3333
3419
  Authorization: `Bearer ${this._API_KEY}`,
@@ -3340,58 +3426,10 @@ const Je = "0.0.8", G = class G {
3340
3426
  (s) => s.lookup_key
3341
3427
  ).includes(r);
3342
3428
  }
3343
- waitForEntitlement(e, r, n = 10) {
3344
- return new Promise((l, o) => {
3345
- const s = (c = 1) => this.isEntitledTo(e, r).then((f) => {
3346
- if (c > n)
3347
- return l(!1);
3348
- if (f)
3349
- return l(!0);
3350
- setTimeout(
3351
- () => s(c + 1),
3352
- 1e3
3353
- );
3354
- }).catch(o);
3355
- s();
3356
- });
3357
- }
3358
- async subscribe(e, r, n, i = "production") {
3359
- const l = i === "sandbox", o = await fetch(
3360
- `${G._RC_ENDPOINT}/${G._BASE_PATH}/subscribe`,
3361
- {
3362
- method: "POST",
3363
- headers: {
3364
- Authorization: `Bearer ${this._API_KEY}`,
3365
- "Content-Type": "application/json",
3366
- Accept: "application/json"
3367
- },
3368
- body: JSON.stringify({
3369
- app_user_id: e,
3370
- product_id: r,
3371
- is_sandbox: l,
3372
- email: n
3373
- })
3374
- }
3375
- );
3376
- if (o.status === $.BAD_REQUEST)
3377
- throw new Yr(o.status);
3378
- if (o.status === $.TOO_MANY_REQUESTS)
3379
- throw new jr(o.status);
3380
- if (o.status === $.CONFLICT)
3381
- throw new Hr(o.status);
3382
- if (o.status === $.INTERNAL_SERVER_ERROR)
3383
- throw new Kr(o.status);
3384
- if (o.status === $.OK || o.status === $.CREATED) {
3385
- const s = await o.json();
3386
- return st(s);
3387
- }
3388
- throw new Gr();
3389
- }
3390
- purchasePackage(e, r, {
3391
- environment: n,
3429
+ purchasePackage(e, r, n, {
3392
3430
  customerEmail: i,
3393
3431
  htmlTarget: l
3394
- } = { environment: "production" }) {
3432
+ } = {}) {
3395
3433
  let o = l ?? document.getElementById("rcb-ui-root");
3396
3434
  if (o === null) {
3397
3435
  const f = document.createElement("div");
@@ -3403,15 +3441,22 @@ const Je = "0.0.8", G = class G {
3403
3441
  );
3404
3442
  const s = o, c = !l;
3405
3443
  return new Promise((f) => {
3406
- new Sr({
3444
+ new Jr({
3407
3445
  target: s,
3408
3446
  props: {
3409
3447
  appUserId: e,
3410
3448
  rcPackage: r,
3411
- environment: n,
3412
3449
  customerEmail: i,
3413
- onFinished: () => {
3414
- f(), s.innerHTML = "";
3450
+ onFinished: async () => {
3451
+ const a = await zr(
3452
+ this,
3453
+ e,
3454
+ n
3455
+ );
3456
+ f(a), s.innerHTML = "";
3457
+ },
3458
+ onClose: () => {
3459
+ f(!1), s.innerHTML = "";
3415
3460
  },
3416
3461
  purchases: this,
3417
3462
  asModal: c
@@ -3419,6 +3464,21 @@ const Je = "0.0.8", G = class G {
3419
3464
  });
3420
3465
  });
3421
3466
  }
3467
+ async getCustomerInfo(e) {
3468
+ const r = await fetch(`${ne}/v1/subscribers/${e}`, {
3469
+ headers: {
3470
+ Authorization: `Bearer ${this._API_KEY}`,
3471
+ "Content-Type": "application/json",
3472
+ Accept: "application/json",
3473
+ "X-Platform": "web",
3474
+ "X-Version": Ie
3475
+ }
3476
+ }), n = r.status;
3477
+ if (n >= 400)
3478
+ throw new X(n, await r.text());
3479
+ const i = await r.json();
3480
+ return Wr(i);
3481
+ }
3422
3482
  logMissingProductIds(e, r) {
3423
3483
  const n = {};
3424
3484
  r.forEach(
@@ -3433,9 +3493,10 @@ const Je = "0.0.8", G = class G {
3433
3493
  ". Please check that your product configuration is correct."
3434
3494
  );
3435
3495
  }
3436
- };
3437
- J(G, "_RC_ENDPOINT", "https://api.revenuecat.com"), J(G, "_BASE_PATH", "rcbilling/v1");
3438
- let $e = G;
3496
+ isSandbox() {
3497
+ return this._API_KEY ? this._API_KEY.startsWith("rcb_sb_") : !1;
3498
+ }
3499
+ }
3439
3500
  export {
3440
- $e as Purchases
3501
+ Zr as Purchases
3441
3502
  };