@revenuecat/purchases-js 0.3.4 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,57 +1,57 @@
1
- var Kt = Object.defineProperty;
2
- var qt = (t, e, r) => e in t ? Kt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var P = (t, e, r) => (qt(t, typeof e != "symbol" ? e + "" : e, r), r);
4
- function jt(t) {
1
+ var Wt = Object.defineProperty;
2
+ var zt = (t, e, r) => e in t ? Wt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
+ var P = (t, e, r) => (zt(t, typeof e != "symbol" ? e + "" : e, r), r);
4
+ function Xt(t) {
5
5
  return t != null;
6
6
  }
7
- var W = /* @__PURE__ */ ((t) => (t[t.Silent = 0] = "Silent", t[t.Error = 1] = "Error", t[t.Warn = 2] = "Warn", t[t.Info = 3] = "Info", t[t.Debug = 4] = "Debug", t[t.Verbose = 5] = "Verbose", t))(W || {});
8
- class G {
7
+ var z = /* @__PURE__ */ ((t) => (t[t.Silent = 0] = "Silent", t[t.Error = 1] = "Error", t[t.Warn = 2] = "Warn", t[t.Info = 3] = "Info", t[t.Debug = 4] = "Debug", t[t.Verbose = 5] = "Verbose", t))(z || {});
8
+ class Y {
9
9
  static setLogLevel(e) {
10
10
  this.logLevel = e;
11
11
  }
12
12
  static log(e, r = this.logLevel) {
13
13
  const n = `[Purchases] ${e}`;
14
- if (!(this.logLevel < r || r === W.Silent))
14
+ if (!(this.logLevel < r || r === z.Silent))
15
15
  switch (r) {
16
- case W.Error:
16
+ case z.Error:
17
17
  console.error(n);
18
18
  break;
19
- case W.Warn:
19
+ case z.Warn:
20
20
  console.warn(n);
21
21
  break;
22
- case W.Info:
22
+ case z.Info:
23
23
  console.info(n);
24
24
  break;
25
- case W.Debug:
25
+ case z.Debug:
26
26
  console.debug(n);
27
27
  break;
28
- case W.Verbose:
28
+ case z.Verbose:
29
29
  console.debug(n);
30
30
  break;
31
31
  }
32
32
  }
33
33
  static errorLog(e) {
34
- this.log(e, W.Error);
34
+ this.log(e, z.Error);
35
35
  }
36
36
  static warnLog(e) {
37
- this.log(e, W.Warn);
37
+ this.log(e, z.Warn);
38
38
  }
39
39
  static infoLog(e) {
40
- this.log(e, W.Info);
40
+ this.log(e, z.Info);
41
41
  }
42
42
  static debugLog(e) {
43
- this.log(e, W.Debug);
43
+ this.log(e, z.Debug);
44
44
  }
45
45
  static verboseLog(e) {
46
- this.log(e, W.Verbose);
46
+ this.log(e, z.Verbose);
47
47
  }
48
48
  }
49
- P(G, "logLevel", W.Silent);
49
+ P(Y, "logLevel", z.Silent);
50
50
  var ne = /* @__PURE__ */ ((t) => (t.Year = "year", t.Month = "month", t.Week = "week", t.Day = "day", t))(ne || {});
51
51
  function Je(t) {
52
52
  const e = t.match(/^PT?([0-9]+)([MDYW])$/);
53
53
  if (!e || e.length < 3)
54
- return G.errorLog(`Invalid ISO 8601 duration format: ${t}`), null;
54
+ return Y.errorLog(`Invalid ISO 8601 duration format: ${t}`), null;
55
55
  const r = parseInt(e[1]);
56
56
  switch (e[2]) {
57
57
  case "Y":
@@ -79,7 +79,7 @@ function Je(t) {
79
79
  /* Day */
80
80
  };
81
81
  default:
82
- return G.errorLog(`Invalid ISO 8601 unit duration format: ${t}`), null;
82
+ return Y.errorLog(`Invalid ISO 8601 unit duration format: ${t}`), null;
83
83
  }
84
84
  }
85
85
  const Ve = (t, e) => {
@@ -88,7 +88,7 @@ const Ve = (t, e) => {
88
88
  style: "currency",
89
89
  currency: e
90
90
  }).format(r);
91
- }, Jt = (t) => {
91
+ }, Zt = (t) => {
92
92
  const e = t.number;
93
93
  if (e === 1)
94
94
  switch (t.unit) {
@@ -103,7 +103,7 @@ const Ve = (t, e) => {
103
103
  }
104
104
  else
105
105
  return `every ${e} ${t.unit}s`;
106
- }, Vt = (t) => {
106
+ }, en = (t) => {
107
107
  const e = t.number;
108
108
  if (e === 1)
109
109
  switch (t.unit) {
@@ -120,13 +120,13 @@ const Ve = (t, e) => {
120
120
  return `${e} ${t.unit}s`;
121
121
  }, nt = (t) => {
122
122
  const e = Je(t);
123
- return e ? Jt(e) : "unknown";
124
- }, Wt = (t) => {
123
+ return e ? Zt(e) : "unknown";
124
+ }, tn = (t) => {
125
125
  const e = Je(t);
126
- return e ? Vt(e) : "unknown";
126
+ return e ? en(e) : "unknown";
127
127
  };
128
- var zt = /* @__PURE__ */ ((t) => (t.Unknown = "unknown", t.Custom = "custom", t.Lifetime = "$rc_lifetime", t.Annual = "$rc_annual", t.SixMonth = "$rc_six_month", t.ThreeMonth = "$rc_three_month", t.TwoMonth = "$rc_two_month", t.Monthly = "$rc_monthly", t.Weekly = "$rc_weekly", t))(zt || {});
129
- const Xt = (t) => ({
128
+ var nn = /* @__PURE__ */ ((t) => (t.Unknown = "unknown", t.Custom = "custom", t.Lifetime = "$rc_lifetime", t.Annual = "$rc_annual", t.SixMonth = "$rc_six_month", t.ThreeMonth = "$rc_three_month", t.TwoMonth = "$rc_two_month", t.Monthly = "$rc_monthly", t.Weekly = "$rc_weekly", t))(nn || {});
129
+ const rn = (t) => ({
130
130
  amount: t.amount,
131
131
  currency: t.currency,
132
132
  formattedPrice: Ve(t.amount, t.currency)
@@ -136,30 +136,30 @@ const Xt = (t) => ({
136
136
  periodDuration: e,
137
137
  period: e ? Je(e) : null,
138
138
  cycleCount: t.cycle_count,
139
- price: t.price ? Xt(t.price) : null
139
+ price: t.price ? rn(t.price) : null
140
140
  };
141
- }, Zt = (t) => t.base == null ? (G.debugLog("Missing base phase for subscription option. Ignoring."), null) : {
141
+ }, on = (t) => t.base == null ? (Y.debugLog("Missing base phase for subscription option. Ignoring."), null) : {
142
142
  id: t.id,
143
143
  base: rt(t.base),
144
144
  trial: t.trial ? rt(t.trial) : null
145
- }, en = (t, e) => {
145
+ }, sn = (t, e) => {
146
146
  const r = {};
147
147
  if (Object.entries(t.subscription_options).forEach(
148
148
  ([s, l]) => {
149
- const c = Zt(l);
149
+ const c = on(l);
150
150
  c != null && (r[s] = c);
151
151
  }
152
152
  ), Object.keys(r).length === 0)
153
- return G.debugLog(
153
+ return Y.debugLog(
154
154
  `Product ${t.identifier} has no subscription options. Ignoring.`
155
155
  ), null;
156
156
  const n = t.default_subscription_option_id, i = n && n in r ? r[n] : null;
157
157
  if (i == null)
158
- return G.debugLog(
158
+ return Y.debugLog(
159
159
  `Product ${t.identifier} has no default subscription option. Ignoring.`
160
160
  ), null;
161
161
  const o = i.base.price;
162
- return o == null ? (G.debugLog(
162
+ return o == null ? (Y.debugLog(
163
163
  `Product ${t.identifier} default option has no base price. Ignoring.`
164
164
  ), null) : {
165
165
  identifier: t.identifier,
@@ -168,42 +168,49 @@ const Xt = (t) => ({
168
168
  description: t.description,
169
169
  currentPrice: o,
170
170
  normalPeriodDuration: i.base.periodDuration,
171
- presentedOfferingIdentifier: e,
171
+ presentedOfferingIdentifier: e.offeringIdentifier,
172
+ presentedOfferingContext: e,
172
173
  defaultSubscriptionOption: i,
173
174
  subscriptionOptions: r
174
175
  };
175
- }, tn = (t, e, r) => {
176
+ }, ln = (t, e, r) => {
176
177
  const n = r[e.platform_product_identifier];
177
178
  if (n === void 0)
178
179
  return null;
179
- const i = en(n, t);
180
+ const i = sn(n, t);
180
181
  return i === null ? null : {
181
182
  identifier: e.identifier,
182
183
  rcBillingProduct: i,
183
- packageType: nn(e.identifier)
184
+ packageType: an(e.identifier)
184
185
  };
185
- }, it = (t, e) => {
186
- const r = t.packages.map(
187
- (i) => tn(t.identifier, i, e)
188
- ).filter(jt), n = {};
189
- for (const i of r)
190
- i != null && (n[i.identifier] = i);
191
- return r.length == 0 ? null : {
192
- identifier: t.identifier,
193
- serverDescription: t.description,
194
- metadata: t.metadata,
195
- packagesById: n,
196
- availablePackages: r,
197
- lifetime: n.$rc_lifetime ?? null,
198
- annual: n.$rc_annual ?? null,
199
- sixMonth: n.$rc_six_month ?? null,
200
- threeMonth: n.$rc_three_month ?? null,
201
- twoMonth: n.$rc_two_month ?? null,
202
- monthly: n.$rc_monthly ?? null,
203
- weekly: n.$rc_weekly ?? null
186
+ }, cn = (t, e, r, n) => {
187
+ const i = {
188
+ offeringIdentifier: e.identifier,
189
+ targetingContext: t && n ? {
190
+ ruleId: n.rule_id,
191
+ revision: n.revision
192
+ } : null
193
+ }, o = e.packages.map(
194
+ (l) => ln(i, l, r)
195
+ ).filter(Xt), s = {};
196
+ for (const l of o)
197
+ l != null && (s[l.identifier] = l);
198
+ return o.length == 0 ? null : {
199
+ identifier: e.identifier,
200
+ serverDescription: e.description,
201
+ metadata: e.metadata,
202
+ packagesById: s,
203
+ availablePackages: o,
204
+ lifetime: s.$rc_lifetime ?? null,
205
+ annual: s.$rc_annual ?? null,
206
+ sixMonth: s.$rc_six_month ?? null,
207
+ threeMonth: s.$rc_three_month ?? null,
208
+ twoMonth: s.$rc_two_month ?? null,
209
+ monthly: s.$rc_monthly ?? null,
210
+ weekly: s.$rc_weekly ?? null
204
211
  };
205
212
  };
206
- function nn(t) {
213
+ function an(t) {
207
214
  switch (t) {
208
215
  case "$rc_lifetime":
209
216
  return "$rc_lifetime";
@@ -225,7 +232,7 @@ function nn(t) {
225
232
  }
226
233
  function v() {
227
234
  }
228
- function rn(t, e) {
235
+ function un(t, e) {
229
236
  for (const r in e)
230
237
  t[r] = e[r];
231
238
  return (
@@ -233,14 +240,14 @@ function rn(t, e) {
233
240
  t
234
241
  );
235
242
  }
236
- function Bt(t) {
243
+ function $t(t) {
237
244
  return t();
238
245
  }
239
- function ot() {
246
+ function it() {
240
247
  return /* @__PURE__ */ Object.create(null);
241
248
  }
242
- function we(t) {
243
- t.forEach(Bt);
249
+ function Ie(t) {
250
+ t.forEach($t);
244
251
  }
245
252
  function ce(t) {
246
253
  return typeof t == "function";
@@ -248,15 +255,15 @@ function ce(t) {
248
255
  function T(t, e) {
249
256
  return t != t ? e == e : t !== e || t && typeof t == "object" || typeof t == "function";
250
257
  }
251
- let Me;
258
+ let De;
252
259
  function ee(t, e) {
253
- return t === e ? !0 : (Me || (Me = document.createElement("a")), Me.href = e, t === Me.href);
260
+ return t === e ? !0 : (De || (De = document.createElement("a")), De.href = e, t === De.href);
254
261
  }
255
- function st(t) {
262
+ function ot(t) {
256
263
  return t.split(",").map((e) => e.trim().split(" ").filter(Boolean));
257
264
  }
258
- function on(t, e) {
259
- const r = st(t.srcset), n = st(e || "");
265
+ function fn(t, e) {
266
+ const r = ot(t.srcset), n = ot(e || "");
260
267
  return n.length === r.length && n.every(
261
268
  ([i, o], s) => o === r[s][1] && // We need to test both ways because Vite will create an a full URL with
262
269
  // `new URL(asset, import.meta.url).href` for the client when `base: './'`, and the
@@ -266,17 +273,17 @@ function on(t, e) {
266
273
  (ee(r[s][0], i) || ee(i, r[s][0]))
267
274
  );
268
275
  }
269
- function sn(t) {
276
+ function dn(t) {
270
277
  return Object.keys(t).length === 0;
271
278
  }
272
279
  function q(t, e, r, n) {
273
280
  if (t) {
274
- const i = Dt(t, e, r, n);
281
+ const i = Bt(t, e, r, n);
275
282
  return t[0](i);
276
283
  }
277
284
  }
278
- function Dt(t, e, r, n) {
279
- return t[1] && n ? rn(r.ctx.slice(), t[1](n(e))) : r.ctx;
285
+ function Bt(t, e, r, n) {
286
+ return t[1] && n ? un(r.ctx.slice(), t[1](n(e))) : r.ctx;
280
287
  }
281
288
  function j(t, e, r, n) {
282
289
  if (t[2] && n) {
@@ -295,7 +302,7 @@ function j(t, e, r, n) {
295
302
  }
296
303
  function J(t, e, r, n, i, o) {
297
304
  if (i) {
298
- const s = Dt(e, r, n, o);
305
+ const s = Bt(e, r, n, o);
299
306
  t.p(s, i);
300
307
  }
301
308
  }
@@ -308,20 +315,20 @@ function V(t) {
308
315
  }
309
316
  return -1;
310
317
  }
311
- function Ee(t) {
318
+ function Ae(t) {
312
319
  return t ?? "";
313
320
  }
314
- function Q(t, e) {
321
+ function M(t, e) {
315
322
  t.appendChild(e);
316
323
  }
317
324
  function F(t, e, r) {
318
- const n = ln(t);
325
+ const n = mn(t);
319
326
  if (!n.getElementById(e)) {
320
327
  const i = k("style");
321
- i.id = e, i.textContent = r, cn(n, i);
328
+ i.id = e, i.textContent = r, gn(n, i);
322
329
  }
323
330
  }
324
- function ln(t) {
331
+ function mn(t) {
325
332
  if (!t)
326
333
  return document;
327
334
  const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
@@ -331,8 +338,8 @@ function ln(t) {
331
338
  e
332
339
  ) : t.ownerDocument;
333
340
  }
334
- function cn(t, e) {
335
- return Q(
341
+ function gn(t, e) {
342
+ return M(
336
343
  /** @type {Document} */
337
344
  t.head || t,
338
345
  e
@@ -350,16 +357,16 @@ function k(t) {
350
357
  function L(t) {
351
358
  return document.createTextNode(t);
352
359
  }
353
- function C() {
360
+ function Q() {
354
361
  return L(" ");
355
362
  }
356
363
  function te() {
357
364
  return L("");
358
365
  }
359
- function ke(t, e, r, n) {
366
+ function we(t, e, r, n) {
360
367
  return t.addEventListener(e, r, n), () => t.removeEventListener(e, r, n);
361
368
  }
362
- function Mt(t) {
369
+ function Dt(t) {
363
370
  return function(e) {
364
371
  return e.preventDefault(), t.call(this, e);
365
372
  };
@@ -367,58 +374,58 @@ function Mt(t) {
367
374
  function _(t, e, r) {
368
375
  r == null ? t.removeAttribute(e) : t.getAttribute(e) !== r && t.setAttribute(e, r);
369
376
  }
370
- const an = ["width", "height"];
371
- function un(t, e) {
377
+ const pn = ["width", "height"];
378
+ function _n(t, e) {
372
379
  const r = Object.getOwnPropertyDescriptors(t.__proto__);
373
380
  for (const n in e)
374
- 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 && an.indexOf(n) === -1 ? t[n] = e[n] : _(t, n, e[n]);
381
+ 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 && pn.indexOf(n) === -1 ? t[n] = e[n] : _(t, n, e[n]);
375
382
  }
376
- function fn(t, e) {
383
+ function hn(t, e) {
377
384
  Object.keys(e).forEach((r) => {
378
- dn(t, r, e[r]);
385
+ An(t, r, e[r]);
379
386
  });
380
387
  }
381
- function dn(t, e, r) {
388
+ function An(t, e, r) {
382
389
  const n = e.toLowerCase();
383
390
  n in t ? t[n] = typeof t[n] == "boolean" && r === "" ? !0 : r : e in t ? t[e] = typeof t[e] == "boolean" && r === "" ? !0 : r : _(t, e, r);
384
391
  }
385
- function mn(t) {
386
- return /-/.test(t) ? fn : un;
392
+ function En(t) {
393
+ return /-/.test(t) ? hn : _n;
387
394
  }
388
- function gn(t) {
395
+ function bn(t) {
389
396
  return Array.from(t.childNodes);
390
397
  }
391
398
  function ae(t, e) {
392
399
  e = "" + e, t.data !== e && (t.data = /** @type {string} */
393
400
  e);
394
401
  }
395
- function lt(t, e) {
402
+ function st(t, e) {
396
403
  t.value = e ?? "";
397
404
  }
398
- function pn(t, e, { bubbles: r = !1, cancelable: n = !1 } = {}) {
405
+ function In(t, e, { bubbles: r = !1, cancelable: n = !1 } = {}) {
399
406
  return new CustomEvent(t, { detail: e, bubbles: r, cancelable: n });
400
407
  }
401
- let be;
402
- function Ae(t) {
403
- be = t;
408
+ let Ee;
409
+ function _e(t) {
410
+ Ee = t;
404
411
  }
405
- function $e() {
406
- if (!be)
412
+ function ke() {
413
+ if (!Ee)
407
414
  throw new Error("Function called outside component initialization");
408
- return be;
415
+ return Ee;
409
416
  }
410
- function _n(t) {
411
- $e().$$.before_update.push(t);
417
+ function wn(t) {
418
+ ke().$$.before_update.push(t);
412
419
  }
413
- function Oe(t) {
414
- $e().$$.on_mount.push(t);
420
+ function Se(t) {
421
+ ke().$$.on_mount.push(t);
415
422
  }
416
- function An() {
417
- const t = $e();
423
+ function kn() {
424
+ const t = ke();
418
425
  return (e, r, { cancelable: n = !1 } = {}) => {
419
426
  const i = t.$$.callbacks[e];
420
427
  if (i) {
421
- const o = pn(
428
+ const o = In(
422
429
  /** @type {string} */
423
430
  e,
424
431
  r,
@@ -431,68 +438,68 @@ function An() {
431
438
  return !0;
432
439
  };
433
440
  }
434
- function hn(t, e) {
435
- return $e().$$.context.set(t, e), e;
441
+ function yn(t, e) {
442
+ return ke().$$.context.set(t, e), e;
436
443
  }
437
- function En(t) {
438
- return $e().$$.context.get(t);
444
+ function vn(t) {
445
+ return ke().$$.context.get(t);
439
446
  }
440
- function Qt(t, e) {
447
+ function Ct(t, e) {
441
448
  const r = t.$$.callbacks[e.type];
442
449
  r && r.slice().forEach((n) => n.call(this, e));
443
450
  }
444
451
  const se = [], Re = [];
445
452
  let le = [];
446
- const He = [], bn = /* @__PURE__ */ Promise.resolve();
447
- let Ke = !1;
448
- function In() {
449
- Ke || (Ke = !0, bn.then(Pt));
453
+ const Ge = [], $n = /* @__PURE__ */ Promise.resolve();
454
+ let He = !1;
455
+ function Bn() {
456
+ He || (He = !0, $n.then(Pt));
450
457
  }
451
- function qe(t) {
458
+ function Ke(t) {
452
459
  le.push(t);
453
460
  }
454
- function wn(t) {
455
- He.push(t);
461
+ function Dn(t) {
462
+ Ge.push(t);
456
463
  }
457
- const xe = /* @__PURE__ */ new Set();
464
+ const Fe = /* @__PURE__ */ new Set();
458
465
  let ie = 0;
459
466
  function Pt() {
460
467
  if (ie !== 0)
461
468
  return;
462
- const t = be;
469
+ const t = Ee;
463
470
  do {
464
471
  try {
465
472
  for (; ie < se.length; ) {
466
473
  const e = se[ie];
467
- ie++, Ae(e), kn(e.$$);
474
+ ie++, _e(e), Cn(e.$$);
468
475
  }
469
476
  } catch (e) {
470
477
  throw se.length = 0, ie = 0, e;
471
478
  }
472
- for (Ae(null), se.length = 0, ie = 0; Re.length; )
479
+ for (_e(null), se.length = 0, ie = 0; Re.length; )
473
480
  Re.pop()();
474
481
  for (let e = 0; e < le.length; e += 1) {
475
482
  const r = le[e];
476
- xe.has(r) || (xe.add(r), r());
483
+ Fe.has(r) || (Fe.add(r), r());
477
484
  }
478
485
  le.length = 0;
479
486
  } while (se.length);
480
- for (; He.length; )
481
- He.pop()();
482
- Ke = !1, xe.clear(), Ae(t);
487
+ for (; Ge.length; )
488
+ Ge.pop()();
489
+ He = !1, Fe.clear(), _e(t);
483
490
  }
484
- function kn(t) {
491
+ function Cn(t) {
485
492
  if (t.fragment !== null) {
486
- t.update(), we(t.before_update);
493
+ t.update(), Ie(t.before_update);
487
494
  const e = t.dirty;
488
- t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(qe);
495
+ t.dirty = [-1], t.fragment && t.fragment.p(t.ctx, e), t.after_update.forEach(Ke);
489
496
  }
490
497
  }
491
- function $n(t) {
498
+ function Pn(t) {
492
499
  const e = [], r = [];
493
500
  le.forEach((n) => t.indexOf(n) === -1 ? e.push(n) : r.push(n)), r.forEach((n) => n()), le = e;
494
501
  }
495
- const Te = /* @__PURE__ */ new Set();
502
+ const Qe = /* @__PURE__ */ new Set();
496
503
  let re;
497
504
  function H() {
498
505
  re = {
@@ -503,22 +510,22 @@ function H() {
503
510
  };
504
511
  }
505
512
  function K() {
506
- re.r || we(re.c), re = re.p;
513
+ re.r || Ie(re.c), re = re.p;
507
514
  }
508
515
  function f(t, e) {
509
- t && t.i && (Te.delete(t), t.i(e));
516
+ t && t.i && (Qe.delete(t), t.i(e));
510
517
  }
511
518
  function d(t, e, r, n) {
512
519
  if (t && t.o) {
513
- if (Te.has(t))
520
+ if (Qe.has(t))
514
521
  return;
515
- Te.add(t), re.c.push(() => {
516
- Te.delete(t), n && (r && t.d(1), n());
522
+ Qe.add(t), re.c.push(() => {
523
+ Qe.delete(t), n && (r && t.d(1), n());
517
524
  }), t.o(e);
518
525
  } else
519
526
  n && n();
520
527
  }
521
- function vn(t, e, r) {
528
+ function Mn(t, e, r) {
522
529
  const n = t.$$.props[e];
523
530
  n !== void 0 && (t.$$.bound[n] = r, r(t.$$.ctx[n]));
524
531
  }
@@ -527,21 +534,21 @@ function w(t) {
527
534
  }
528
535
  function b(t, e, r) {
529
536
  const { fragment: n, after_update: i } = t.$$;
530
- n && n.m(e, r), qe(() => {
531
- const o = t.$$.on_mount.map(Bt).filter(ce);
532
- t.$$.on_destroy ? t.$$.on_destroy.push(...o) : we(o), t.$$.on_mount = [];
533
- }), i.forEach(qe);
537
+ n && n.m(e, r), Ke(() => {
538
+ const o = t.$$.on_mount.map($t).filter(ce);
539
+ t.$$.on_destroy ? t.$$.on_destroy.push(...o) : Ie(o), t.$$.on_mount = [];
540
+ }), i.forEach(Ke);
534
541
  }
535
542
  function I(t, e) {
536
543
  const r = t.$$;
537
- r.fragment !== null && ($n(r.after_update), we(r.on_destroy), r.fragment && r.fragment.d(e), r.on_destroy = r.fragment = null, r.ctx = []);
544
+ r.fragment !== null && (Pn(r.after_update), Ie(r.on_destroy), r.fragment && r.fragment.d(e), r.on_destroy = r.fragment = null, r.ctx = []);
538
545
  }
539
- function yn(t, e) {
540
- t.$$.dirty[0] === -1 && (se.push(t), In(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
546
+ function Qn(t, e) {
547
+ t.$$.dirty[0] === -1 && (se.push(t), Bn(), t.$$.dirty.fill(0)), t.$$.dirty[e / 31 | 0] |= 1 << e % 31;
541
548
  }
542
549
  function N(t, e, r, n, i, o, s = null, l = [-1]) {
543
- const c = be;
544
- Ae(t);
550
+ const c = Ee;
551
+ _e(t);
545
552
  const a = t.$$ = {
546
553
  fragment: null,
547
554
  ctx: [],
@@ -549,7 +556,7 @@ function N(t, e, r, n, i, o, s = null, l = [-1]) {
549
556
  props: o,
550
557
  update: v,
551
558
  not_equal: i,
552
- bound: ot(),
559
+ bound: it(),
553
560
  // lifecycle
554
561
  on_mount: [],
555
562
  on_destroy: [],
@@ -558,27 +565,27 @@ function N(t, e, r, n, i, o, s = null, l = [-1]) {
558
565
  after_update: [],
559
566
  context: new Map(e.context || (c ? c.$$.context : [])),
560
567
  // everything else
561
- callbacks: ot(),
568
+ callbacks: it(),
562
569
  dirty: l,
563
570
  skip_bound: !1,
564
571
  root: e.target || c.$$.root
565
572
  };
566
573
  s && s(a.root);
567
574
  let u = !1;
568
- if (a.ctx = r ? r(t, e.props || {}, (m, A, ...$) => {
569
- const E = $.length ? $[0] : A;
570
- return a.ctx && i(a.ctx[m], a.ctx[m] = E) && (!a.skip_bound && a.bound[m] && a.bound[m](E), u && yn(t, m)), A;
571
- }) : [], a.update(), u = !0, we(a.before_update), a.fragment = n ? n(a.ctx) : !1, e.target) {
575
+ if (a.ctx = r ? r(t, e.props || {}, (m, h, ...y) => {
576
+ const E = y.length ? y[0] : h;
577
+ return a.ctx && i(a.ctx[m], a.ctx[m] = E) && (!a.skip_bound && a.bound[m] && a.bound[m](E), u && Qn(t, m)), h;
578
+ }) : [], a.update(), u = !0, Ie(a.before_update), a.fragment = n ? n(a.ctx) : !1, e.target) {
572
579
  if (e.hydrate) {
573
- const m = gn(e.target);
580
+ const m = bn(e.target);
574
581
  a.fragment && a.fragment.l(m), m.forEach(g);
575
582
  } else
576
583
  a.fragment && a.fragment.c();
577
584
  e.intro && f(t.$$.fragment), b(t, e.target, e.anchor), Pt();
578
585
  }
579
- Ae(c);
586
+ _e(c);
580
587
  }
581
- class U {
588
+ class R {
582
589
  constructor() {
583
590
  /**
584
591
  * ### PRIVATE API
@@ -621,15 +628,15 @@ class U {
621
628
  * @returns {void}
622
629
  */
623
630
  $set(e) {
624
- this.$$set && !sn(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
631
+ this.$$set && !dn(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
625
632
  }
626
633
  }
627
- const Bn = "4";
628
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Bn);
629
- function Dn(t) {
634
+ const Tn = "4";
635
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Tn);
636
+ function Nn(t) {
630
637
  F(t, "svelte-1bzqb13", ".rcb-modal-section.svelte-1bzqb13{padding:8px 0px;display:flex}section.rcb-modal-section.svelte-1bzqb13{flex-grow:1}.rcb-modal-section.svelte-1bzqb13:last-of-type{padding:0}");
631
638
  }
632
- function Ge(t) {
639
+ function xe(t) {
633
640
  let e, r;
634
641
  const n = (
635
642
  /*#slots*/
@@ -646,11 +653,11 @@ function Ge(t) {
646
653
  e = k(
647
654
  /*as*/
648
655
  t[0]
649
- ), i && i.c(), mn(
656
+ ), i && i.c(), En(
650
657
  /*as*/
651
658
  t[0]
652
659
  )(e, {
653
- class: Ee("rcb-modal-section") + " svelte-1bzqb13"
660
+ class: Ae("rcb-modal-section") + " svelte-1bzqb13"
654
661
  });
655
662
  },
656
663
  m(o, s) {
@@ -688,13 +695,13 @@ function Ge(t) {
688
695
  }
689
696
  };
690
697
  }
691
- function Mn(t) {
698
+ function Rn(t) {
692
699
  let e = (
693
700
  /*as*/
694
701
  t[0]
695
702
  ), r, n, i = (
696
703
  /*as*/
697
- t[0] && Ge(t)
704
+ t[0] && xe(t)
698
705
  );
699
706
  return {
700
707
  c() {
@@ -709,8 +716,8 @@ function Mn(t) {
709
716
  e,
710
717
  /*as*/
711
718
  o[0]
712
- ) ? (i.d(1), i = Ge(o), e = /*as*/
713
- o[0], i.c(), i.m(r.parentNode, r)) : i.p(o, s) : (i = Ge(o), e = /*as*/
719
+ ) ? (i.d(1), i = xe(o), e = /*as*/
720
+ o[0], i.c(), i.m(r.parentNode, r)) : i.p(o, s) : (i = xe(o), e = /*as*/
714
721
  o[0], i.c(), i.m(r.parentNode, r)) : e && (i.d(1), i = null, e = /*as*/
715
722
  o[0]);
716
723
  },
@@ -725,22 +732,22 @@ function Mn(t) {
725
732
  }
726
733
  };
727
734
  }
728
- function Qn(t, e, r) {
735
+ function Un(t, e, r) {
729
736
  let { $$slots: n = {}, $$scope: i } = e, { as: o = "section" } = e;
730
737
  return t.$$set = (s) => {
731
738
  "as" in s && r(0, o = s.as), "$$scope" in s && r(1, i = s.$$scope);
732
739
  }, [o, i, n];
733
740
  }
734
- class ue extends U {
741
+ class ue extends R {
735
742
  constructor(e) {
736
- super(), N(this, e, Qn, Mn, T, { as: 0 }, Dn);
743
+ super(), N(this, e, Un, Rn, T, { as: 0 }, Nn);
737
744
  }
738
745
  }
739
- function Pn(t) {
746
+ function Sn(t) {
740
747
  F(t, "svelte-gf0gr5", ".rcb-pricing-info.svelte-gf0gr5{display:flex;flex-direction:column;margin-top:102px;font-weight:500}.rcb-product-price.svelte-gf0gr5{font-size:24px;margin:12px 0px}.rcb-product-price-after-trial.svelte-gf0gr5{margin-bottom:12px}.rcb-product-details.svelte-gf0gr5{opacity:0.6;list-style-type:disc;list-style-position:inside;margin:0px;padding:0px}@media screen and (max-width: 960px){.rcb-pricing-info.svelte-gf0gr5{margin-top:48px}}");
741
748
  }
742
- function Cn(t) {
743
- let e = Wt(
749
+ function On(t) {
750
+ let e = tn(
744
751
  /*trial*/
745
752
  t[1].periodDuration
746
753
  ) + "", r, n;
@@ -757,7 +764,7 @@ function Cn(t) {
757
764
  }
758
765
  };
759
766
  }
760
- function Tn(t) {
767
+ function Ln(t) {
761
768
  let e = (
762
769
  /*basePrice*/
763
770
  (t[2].currency || "") + ""
@@ -769,7 +776,7 @@ function Tn(t) {
769
776
  ) + "", o;
770
777
  return {
771
778
  c() {
772
- r = L(e), n = C(), o = L(i);
779
+ r = L(e), n = Q(), o = L(i);
773
780
  },
774
781
  m(s, l) {
775
782
  p(s, r, l), p(s, n, l), p(s, o, l);
@@ -780,7 +787,7 @@ function Tn(t) {
780
787
  }
781
788
  };
782
789
  }
783
- function Nn(t) {
790
+ function Fn(t) {
784
791
  let e;
785
792
  return {
786
793
  c() {
@@ -803,7 +810,7 @@ function Nn(t) {
803
810
  }
804
811
  };
805
812
  }
806
- function ct(t) {
813
+ function lt(t) {
807
814
  let e, r, n = nt(
808
815
  /*productDetails*/
809
816
  t[0].normalPeriodDuration
@@ -813,7 +820,7 @@ function ct(t) {
813
820
  e = k("li"), r = L("Renews "), i = L(n);
814
821
  },
815
822
  m(o, s) {
816
- p(o, e, s), Q(e, r), Q(e, i);
823
+ p(o, e, s), M(e, r), M(e, i);
817
824
  },
818
825
  p(o, s) {
819
826
  s & /*productDetails*/
@@ -827,53 +834,53 @@ function ct(t) {
827
834
  }
828
835
  };
829
836
  }
830
- function Un(t) {
831
- var M, ye;
837
+ function xn(t) {
838
+ var C, ve;
832
839
  let e, r, n = (
833
840
  /*productDetails*/
834
841
  t[0].displayName + ""
835
- ), i, o, s, l, c, a, u, m, A, $, E, B = (
842
+ ), i, o, s, l, c, a, u, m, h, y, E, B = (
836
843
  /*trial*/
837
- ((M = t[1]) == null ? void 0 : M.periodDuration) && Cn(t)
838
- ), h = !/*trial*/
839
- ((ye = t[1]) != null && ye.periodDuration) && /*basePrice*/
840
- t[2] && Tn(t), y = (
844
+ ((C = t[1]) == null ? void 0 : C.periodDuration) && On(t)
845
+ ), A = !/*trial*/
846
+ ((ve = t[1]) != null && ve.periodDuration) && /*basePrice*/
847
+ t[2] && Ln(t), $ = (
841
848
  /*trial*/
842
849
  t[1] && /*basePrice*/
843
- t[2] && Nn(t)
844
- ), R = (
850
+ t[2] && Fn(t)
851
+ ), U = (
845
852
  /*productDetails*/
846
- t[0].normalPeriodDuration && ct(t)
853
+ t[0].normalPeriodDuration && lt(t)
847
854
  );
848
855
  return {
849
856
  c() {
850
- e = k("div"), r = k("span"), i = L(n), o = C(), s = k("span"), B && B.c(), l = C(), h && h.c(), c = C(), y && y.c(), a = C(), u = k("ul"), R && R.c(), m = C(), A = k("li"), A.textContent = "Continues until canceled", $ = C(), E = k("li"), E.textContent = "Cancel anytime", _(s, "class", "rcb-product-price svelte-gf0gr5"), _(u, "class", "rcb-product-details svelte-gf0gr5"), _(e, "class", "rcb-pricing-info svelte-gf0gr5");
857
+ e = k("div"), r = k("span"), i = L(n), o = Q(), s = k("span"), B && B.c(), l = Q(), A && A.c(), c = Q(), $ && $.c(), a = Q(), u = k("ul"), U && U.c(), m = Q(), h = k("li"), h.textContent = "Continues until canceled", y = Q(), E = k("li"), E.textContent = "Cancel anytime", _(s, "class", "rcb-product-price svelte-gf0gr5"), _(u, "class", "rcb-product-details svelte-gf0gr5"), _(e, "class", "rcb-pricing-info svelte-gf0gr5");
851
858
  },
852
859
  m(x, S) {
853
- p(x, e, S), Q(e, r), Q(r, i), Q(e, o), Q(e, s), B && B.m(s, null), Q(s, l), h && h.m(s, null), Q(e, c), y && y.m(e, null), Q(e, a), Q(e, u), R && R.m(u, null), Q(u, m), Q(u, A), Q(u, $), Q(u, E);
860
+ p(x, e, S), M(e, r), M(r, i), M(e, o), M(e, s), B && B.m(s, null), M(s, l), A && A.m(s, null), M(e, c), $ && $.m(e, null), M(e, a), M(e, u), U && U.m(u, null), M(u, m), M(u, h), M(u, y), M(u, E);
854
861
  },
855
862
  p(x, S) {
856
- var Be, De;
863
+ var $e, Be;
857
864
  S & /*productDetails*/
858
865
  1 && n !== (n = /*productDetails*/
859
866
  x[0].displayName + "") && ae(i, n), /*trial*/
860
- (Be = x[1]) != null && Be.periodDuration && B.p(x, S), !/*trial*/
861
- ((De = x[1]) != null && De.periodDuration) && /*basePrice*/
862
- x[2] && h.p(x, S), /*trial*/
867
+ ($e = x[1]) != null && $e.periodDuration && B.p(x, S), !/*trial*/
868
+ ((Be = x[1]) != null && Be.periodDuration) && /*basePrice*/
869
+ x[2] && A.p(x, S), /*trial*/
863
870
  x[1] && /*basePrice*/
864
- x[2] && y.p(x, S), /*productDetails*/
865
- x[0].normalPeriodDuration ? R ? R.p(x, S) : (R = ct(x), R.c(), R.m(u, m)) : R && (R.d(1), R = null);
871
+ x[2] && $.p(x, S), /*productDetails*/
872
+ x[0].normalPeriodDuration ? U ? U.p(x, S) : (U = lt(x), U.c(), U.m(u, m)) : U && (U.d(1), U = null);
866
873
  },
867
874
  d(x) {
868
- x && g(e), B && B.d(), h && h.d(), y && y.d(), R && R.d();
875
+ x && g(e), B && B.d(), A && A.d(), $ && $.d(), U && U.d();
869
876
  }
870
877
  };
871
878
  }
872
- function Rn(t) {
879
+ function Yn(t) {
873
880
  let e, r;
874
881
  return e = new ue({
875
882
  props: {
876
- $$slots: { default: [Un] },
883
+ $$slots: { default: [xn] },
877
884
  $$scope: { ctx: t }
878
885
  }
879
886
  }), {
@@ -899,7 +906,7 @@ function Rn(t) {
899
906
  }
900
907
  };
901
908
  }
902
- function Sn(t, e, r) {
909
+ function Gn(t, e, r) {
903
910
  var c;
904
911
  let { productDetails: n } = e, { purchaseOption: i } = e;
905
912
  const o = i, s = o == null ? void 0 : o.trial, l = (c = o == null ? void 0 : o.base) == null ? void 0 : c.price;
@@ -907,17 +914,17 @@ function Sn(t, e, r) {
907
914
  "productDetails" in a && r(0, n = a.productDetails), "purchaseOption" in a && r(3, i = a.purchaseOption);
908
915
  }, [n, s, l, i];
909
916
  }
910
- class Ct extends U {
917
+ class Mt extends R {
911
918
  constructor(e) {
912
- super(), N(this, e, Sn, Rn, T, { productDetails: 0, purchaseOption: 3 }, Pn);
919
+ super(), N(this, e, Gn, Yn, T, { productDetails: 0, purchaseOption: 3 }, Sn);
913
920
  }
914
921
  }
915
- const On = "data:image/gif;base64,R0lGODlhMgAyAPcBAAAAAAD/AAMDAwcHBxERERUVFSoqKi0tLTAwMDg4OD09PURERElJSUtLS1BQUFJSUlVVVVdXV1paWl9fX2NjY2ZmZmlpaWxsbG1tbXNzc3t7e39/f4GBgYKCgoSEhIaGhoeHh4iIiIuLi5KSkpSUlJaWlp2dnaGhoaOjo6SkpKWlpaenp6ioqKqqqqurq6ysrLCwsLGxsbS0tLa2tri4uLm5ub29vb6+vsDAwMHBwcLCwsXFxcjIyMnJyc3Nzc7OztPT09TU1NXV1dfX19nZ2dra2tvb29zc3N7e3uDg4OHh4eLi4uPj4+fn5+np6ezs7O7u7vDw8PHx8fLy8vPz8/X19fb29vj4+Pn5+fz8/P39/f7+/v///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////yH/C05FVFNDQVBFMi4wAwEAAAAh+QQFBAABACwAAAAAMgAyAIcAAAAA/wADAwMHBwcREREVFRUqKiotLS0wMDA4ODg9PT1ERERJSUlLS0tQUFBSUlJVVVVXV1daWlpfX19jY2NmZmZpaWlsbGxtbW1zc3N7e3t/f3+BgYGCgoKEhISGhoaHh4eIiIiLi4uSkpKUlJSWlpadnZ2hoaGjo6OkpKSlpaWnp6eoqKiqqqqrq6usrKywsLCxsbG0tLS2tra4uLi5ubm9vb2+vr7AwMDBwcHCwsLFxcXIyMjJycnNzc3Ozs7T09PU1NTV1dXX19fZ2dna2trb29vc3Nze3t7g4ODh4eHi4uLj4+Pn5+fp6ens7Ozu7u7w8PDx8fHy8vLz8/P19fX29vb4+Pj5+fn8/Pz9/f3+/v7///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8I/wCzcBFIcKDBgggPKkzIcCEXLlq4bIEokeLEiBcrYrTIcaNHjRobinQ4sqRCkBlTdtR44MBKlR9TmjQJQMBMkgZfdpwSMSYAACgpRtHpcSYSFUIa1mz448UQnAWDfmzSooUVmD9XVnnBwglMlDdvvMjhcOlCHit23CSqcUrVJiizpnTC4sXQmB1vZvmxwgYWhWYLznjRA+rJryqvxGhxxGNLjkVcwMCCN6ZeLkNevDCcRYYKJJfZptyCQwdiijl0CDxdlLPryw2lymY9WzTs17ijVq69mzbM28Bd8x7u23bu46F7i16uXEvw5ziJM5duGbl1k9OLN5cKvfvh7OC3b0jxTv6h+PDUy3unzl67RPXXc56f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GEMgPIiDDhoRYjTR56CPGwiooXN6oENQikhYsWP65MJXglx4sVMoZsJdikRosWOMYSRPJih9q3cOPKnWuRSxa7eO9O3cJFCxe+frdMDQgAIfkEBQUAAQAsBQADACAAEAAACKYAAwgcSLAgwQcODCpcyNDAAYYQAzhpaIDhFYY+NOBY6HAhkyETFRLZ0CGKQgMVDV4RAoQKQxMdUpx8aJAJECYQnWzYcMQgSoNVgAy5CHGGhhI+aRIkMgRnxCohNvQoiLDgEyFDskQUuINDiK1Hfpgc+ETKQi0nVGxNkkSrwCw/hiBxu7XuFidAhARpgqWu3yxIhgApEtLvVipIgARBYthvlKaNFQYEADs=";
916
- function Ln(t) {
922
+ const Hn = "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+MTDhiIMkQxBohJkwRYaUkDEEiQIlYQrCyLZ0MFJRCdAkgC1OZBEBxgRJRIBAqXgwYI8NoCwEjWAkyFDoorQ4KOr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QoiLDgEyFDskQUuINDiK1Hfpgc+ETKQi0nVGxNkkSrwCw/hiBxu7XuFidAhARpgqWu3yxIhgApEtLvVipIgARBYthvlKaNFQYEADs=";
923
+ function Kn(t) {
917
924
  let e, r;
918
925
  return {
919
926
  c() {
920
- e = k("img"), ee(e.src, r = On) || _(e, "src", r), _(e, "alt", "spinner");
927
+ e = k("img"), ee(e.src, r = Hn) || _(e, "src", r), _(e, "alt", "spinner");
921
928
  },
922
929
  m(n, i) {
923
930
  p(n, e, i);
@@ -930,17 +937,17 @@ function Ln(t) {
930
937
  }
931
938
  };
932
939
  }
933
- class Fn extends U {
940
+ class qn extends R {
934
941
  constructor(e) {
935
- super(), N(this, e, null, Ln, T, {});
942
+ super(), N(this, e, null, Kn, T, {});
936
943
  }
937
944
  }
938
- function xn(t) {
945
+ function jn(t) {
939
946
  F(t, "svelte-1mxx341", ".rcb-modal-loader.svelte-1mxx341{width:100%;flex-grow:1;min-height:100%;display:flex;justify-content:center;align-items:center}");
940
947
  }
941
- function Gn(t) {
948
+ function Jn(t) {
942
949
  let e, r, n;
943
- return r = new Fn({}), {
950
+ return r = new qn({}), {
944
951
  c() {
945
952
  e = k("div"), w(r.$$.fragment), _(e, "class", "rcb-modal-loader svelte-1mxx341");
946
953
  },
@@ -959,12 +966,12 @@ function Gn(t) {
959
966
  }
960
967
  };
961
968
  }
962
- class We extends U {
969
+ class We extends R {
963
970
  constructor(e) {
964
- super(), N(this, e, null, Gn, T, {}, xn);
971
+ super(), N(this, e, null, Jn, T, {}, jn);
965
972
  }
966
973
  }
967
- var Z = /* @__PURE__ */ ((t) => (t[t.UnknownError = 0] = "UnknownError", t[t.UserCancelledError = 1] = "UserCancelledError", t[t.StoreProblemError = 2] = "StoreProblemError", t[t.PurchaseNotAllowedError = 3] = "PurchaseNotAllowedError", t[t.PurchaseInvalidError = 4] = "PurchaseInvalidError", t[t.ProductNotAvailableForPurchaseError = 5] = "ProductNotAvailableForPurchaseError", t[t.ProductAlreadyPurchasedError = 6] = "ProductAlreadyPurchasedError", t[t.ReceiptAlreadyInUseError = 7] = "ReceiptAlreadyInUseError", t[t.InvalidReceiptError = 8] = "InvalidReceiptError", t[t.MissingReceiptFileError = 9] = "MissingReceiptFileError", t[t.NetworkError = 10] = "NetworkError", t[t.InvalidCredentialsError = 11] = "InvalidCredentialsError", t[t.UnexpectedBackendResponseError = 12] = "UnexpectedBackendResponseError", t[t.InvalidAppUserIdError = 14] = "InvalidAppUserIdError", t[t.OperationAlreadyInProgressError = 15] = "OperationAlreadyInProgressError", t[t.UnknownBackendError = 16] = "UnknownBackendError", t[t.InvalidAppleSubscriptionKeyError = 17] = "InvalidAppleSubscriptionKeyError", t[t.IneligibleError = 18] = "IneligibleError", t[t.InsufficientPermissionsError = 19] = "InsufficientPermissionsError", t[t.PaymentPendingError = 20] = "PaymentPendingError", t[t.InvalidSubscriberAttributesError = 21] = "InvalidSubscriberAttributesError", t[t.LogOutWithAnonymousUserError = 22] = "LogOutWithAnonymousUserError", t[t.ConfigurationError = 23] = "ConfigurationError", t[t.UnsupportedError = 24] = "UnsupportedError", t[t.EmptySubscriberAttributesError = 25] = "EmptySubscriberAttributesError", t[t.CustomerInfoError = 28] = "CustomerInfoError", t[t.SignatureVerificationError = 36] = "SignatureVerificationError", t[t.InvalidEmailError = 38] = "InvalidEmailError", t))(Z || {});
974
+ var X = /* @__PURE__ */ ((t) => (t[t.UnknownError = 0] = "UnknownError", t[t.UserCancelledError = 1] = "UserCancelledError", t[t.StoreProblemError = 2] = "StoreProblemError", t[t.PurchaseNotAllowedError = 3] = "PurchaseNotAllowedError", t[t.PurchaseInvalidError = 4] = "PurchaseInvalidError", t[t.ProductNotAvailableForPurchaseError = 5] = "ProductNotAvailableForPurchaseError", t[t.ProductAlreadyPurchasedError = 6] = "ProductAlreadyPurchasedError", t[t.ReceiptAlreadyInUseError = 7] = "ReceiptAlreadyInUseError", t[t.InvalidReceiptError = 8] = "InvalidReceiptError", t[t.MissingReceiptFileError = 9] = "MissingReceiptFileError", t[t.NetworkError = 10] = "NetworkError", t[t.InvalidCredentialsError = 11] = "InvalidCredentialsError", t[t.UnexpectedBackendResponseError = 12] = "UnexpectedBackendResponseError", t[t.InvalidAppUserIdError = 14] = "InvalidAppUserIdError", t[t.OperationAlreadyInProgressError = 15] = "OperationAlreadyInProgressError", t[t.UnknownBackendError = 16] = "UnknownBackendError", t[t.InvalidAppleSubscriptionKeyError = 17] = "InvalidAppleSubscriptionKeyError", t[t.IneligibleError = 18] = "IneligibleError", t[t.InsufficientPermissionsError = 19] = "InsufficientPermissionsError", t[t.PaymentPendingError = 20] = "PaymentPendingError", t[t.InvalidSubscriberAttributesError = 21] = "InvalidSubscriberAttributesError", t[t.LogOutWithAnonymousUserError = 22] = "LogOutWithAnonymousUserError", t[t.ConfigurationError = 23] = "ConfigurationError", t[t.UnsupportedError = 24] = "UnsupportedError", t[t.EmptySubscriberAttributesError = 25] = "EmptySubscriberAttributesError", t[t.CustomerInfoError = 28] = "CustomerInfoError", t[t.SignatureVerificationError = 36] = "SignatureVerificationError", t[t.InvalidEmailError = 38] = "InvalidEmailError", t))(X || {});
968
975
  class he {
969
976
  static getPublicMessage(e) {
970
977
  switch (e) {
@@ -1071,7 +1078,7 @@ class he {
1071
1078
  }
1072
1079
  }
1073
1080
  static convertCodeToBackendErrorCode(e) {
1074
- return e in Tt ? e : null;
1081
+ return e in Qt ? e : null;
1075
1082
  }
1076
1083
  static convertPurchaseFlowErrorCodeToErrorCode(e) {
1077
1084
  switch (e) {
@@ -1092,17 +1099,17 @@ class he {
1092
1099
  }
1093
1100
  }
1094
1101
  }
1095
- var Tt = /* @__PURE__ */ ((t) => (t[t.BackendInvalidPlatform = 7e3] = "BackendInvalidPlatform", t[t.BackendInvalidEmail = 7012] = "BackendInvalidEmail", t[t.BackendStoreProblem = 7101] = "BackendStoreProblem", t[t.BackendCannotTransferPurchase = 7102] = "BackendCannotTransferPurchase", t[t.BackendInvalidReceiptToken = 7103] = "BackendInvalidReceiptToken", t[t.BackendInvalidAppStoreSharedSecret = 7104] = "BackendInvalidAppStoreSharedSecret", t[t.BackendInvalidPaymentModeOrIntroPriceNotProvided = 7105] = "BackendInvalidPaymentModeOrIntroPriceNotProvided", t[t.BackendProductIdForGoogleReceiptNotProvided = 7106] = "BackendProductIdForGoogleReceiptNotProvided", t[t.BackendInvalidPlayStoreCredentials = 7107] = "BackendInvalidPlayStoreCredentials", t[t.BackendInternalServerError = 7110] = "BackendInternalServerError", t[t.BackendEmptyAppUserId = 7220] = "BackendEmptyAppUserId", t[t.BackendInvalidAuthToken = 7224] = "BackendInvalidAuthToken", t[t.BackendInvalidAPIKey = 7225] = "BackendInvalidAPIKey", t[t.BackendBadRequest = 7226] = "BackendBadRequest", t[t.BackendPlayStoreQuotaExceeded = 7229] = "BackendPlayStoreQuotaExceeded", t[t.BackendPlayStoreInvalidPackageName = 7230] = "BackendPlayStoreInvalidPackageName", t[t.BackendPlayStoreGenericError = 7231] = "BackendPlayStoreGenericError", t[t.BackendUserIneligibleForPromoOffer = 7232] = "BackendUserIneligibleForPromoOffer", t[t.BackendInvalidAppleSubscriptionKey = 7234] = "BackendInvalidAppleSubscriptionKey", t[t.BackendInvalidSubscriberAttributes = 7263] = "BackendInvalidSubscriberAttributes", t[t.BackendInvalidSubscriberAttributesBody = 7264] = "BackendInvalidSubscriberAttributesBody", t[t.BackendProductIDsMalformed = 7662] = "BackendProductIDsMalformed", t[t.BackendAlreadySubscribedError = 7772] = "BackendAlreadySubscribedError", t[t.BackendOfferNotFound = 7814] = "BackendOfferNotFound", t[t.BackendNoMXRecordsFound = 7834] = "BackendNoMXRecordsFound", t))(Tt || {});
1096
- class X extends Error {
1102
+ var Qt = /* @__PURE__ */ ((t) => (t[t.BackendInvalidPlatform = 7e3] = "BackendInvalidPlatform", t[t.BackendInvalidEmail = 7012] = "BackendInvalidEmail", t[t.BackendStoreProblem = 7101] = "BackendStoreProblem", t[t.BackendCannotTransferPurchase = 7102] = "BackendCannotTransferPurchase", t[t.BackendInvalidReceiptToken = 7103] = "BackendInvalidReceiptToken", t[t.BackendInvalidAppStoreSharedSecret = 7104] = "BackendInvalidAppStoreSharedSecret", t[t.BackendInvalidPaymentModeOrIntroPriceNotProvided = 7105] = "BackendInvalidPaymentModeOrIntroPriceNotProvided", t[t.BackendProductIdForGoogleReceiptNotProvided = 7106] = "BackendProductIdForGoogleReceiptNotProvided", t[t.BackendInvalidPlayStoreCredentials = 7107] = "BackendInvalidPlayStoreCredentials", t[t.BackendInternalServerError = 7110] = "BackendInternalServerError", t[t.BackendEmptyAppUserId = 7220] = "BackendEmptyAppUserId", t[t.BackendInvalidAuthToken = 7224] = "BackendInvalidAuthToken", t[t.BackendInvalidAPIKey = 7225] = "BackendInvalidAPIKey", t[t.BackendBadRequest = 7226] = "BackendBadRequest", t[t.BackendPlayStoreQuotaExceeded = 7229] = "BackendPlayStoreQuotaExceeded", t[t.BackendPlayStoreInvalidPackageName = 7230] = "BackendPlayStoreInvalidPackageName", t[t.BackendPlayStoreGenericError = 7231] = "BackendPlayStoreGenericError", t[t.BackendUserIneligibleForPromoOffer = 7232] = "BackendUserIneligibleForPromoOffer", t[t.BackendInvalidAppleSubscriptionKey = 7234] = "BackendInvalidAppleSubscriptionKey", t[t.BackendInvalidSubscriberAttributes = 7263] = "BackendInvalidSubscriberAttributes", t[t.BackendInvalidSubscriberAttributesBody = 7264] = "BackendInvalidSubscriberAttributesBody", t[t.BackendProductIDsMalformed = 7662] = "BackendProductIDsMalformed", t[t.BackendAlreadySubscribedError = 7772] = "BackendAlreadySubscribedError", t[t.BackendOfferNotFound = 7814] = "BackendOfferNotFound", t[t.BackendNoMXRecordsFound = 7834] = "BackendNoMXRecordsFound", t))(Qt || {});
1103
+ class W extends Error {
1097
1104
  constructor(r, n, i) {
1098
1105
  super(n);
1099
- P(this, "toString", () => `PurchasesError(code: ${Z[this.errorCode]}, message: ${this.message})`);
1106
+ P(this, "toString", () => `PurchasesError(code: ${X[this.errorCode]}, message: ${this.message})`);
1100
1107
  this.errorCode = r, this.underlyingErrorMessage = i;
1101
1108
  }
1102
1109
  /** @internal */
1103
1110
  static getForBackendError(r, n) {
1104
1111
  const i = he.getErrorCodeForBackendErrorCode(r);
1105
- return new X(
1112
+ return new W(
1106
1113
  i,
1107
1114
  he.getPublicMessage(i),
1108
1115
  n
@@ -1110,7 +1117,7 @@ class X extends Error {
1110
1117
  }
1111
1118
  /** @internal */
1112
1119
  static getForPurchasesFlowError(r) {
1113
- return new X(
1120
+ return new W(
1114
1121
  he.convertPurchaseFlowErrorCodeToErrorCode(
1115
1122
  r.errorCode
1116
1123
  ),
@@ -1119,26 +1126,26 @@ class X extends Error {
1119
1126
  );
1120
1127
  }
1121
1128
  }
1122
- class Yn extends Error {
1129
+ class Vn extends Error {
1123
1130
  constructor() {
1124
1131
  super("Purchases must be configured before calling getInstance");
1125
1132
  }
1126
1133
  }
1127
- var pe = /* @__PURE__ */ ((t) => (t.Started = "started", t.InProgress = "in_progress", t.Succeeded = "succeeded", t.Failed = "failed", t))(pe || {}), Ne = /* @__PURE__ */ ((t) => (t[t.SetupIntentCreationFailed = 1] = "SetupIntentCreationFailed", t[t.PaymentMethodCreationFailed = 2] = "PaymentMethodCreationFailed", t[t.PaymentChargeFailed = 3] = "PaymentChargeFailed", t))(Ne || {}), O = /* @__PURE__ */ ((t) => (t[t.ErrorSettingUpPurchase = 0] = "ErrorSettingUpPurchase", t[t.ErrorChargingPayment = 1] = "ErrorChargingPayment", t[t.UnknownError = 2] = "UnknownError", t[t.NetworkError = 3] = "NetworkError", t[t.StripeError = 4] = "StripeError", t[t.MissingEmailError = 5] = "MissingEmailError", t[t.AlreadySubscribedError = 6] = "AlreadySubscribedError", t))(O || {});
1128
- class Y extends Error {
1134
+ var ge = /* @__PURE__ */ ((t) => (t.Started = "started", t.InProgress = "in_progress", t.Succeeded = "succeeded", t.Failed = "failed", t))(ge || {}), Te = /* @__PURE__ */ ((t) => (t[t.SetupIntentCreationFailed = 1] = "SetupIntentCreationFailed", t[t.PaymentMethodCreationFailed = 2] = "PaymentMethodCreationFailed", t[t.PaymentChargeFailed = 3] = "PaymentChargeFailed", t))(Te || {}), O = /* @__PURE__ */ ((t) => (t[t.ErrorSettingUpPurchase = 0] = "ErrorSettingUpPurchase", t[t.ErrorChargingPayment = 1] = "ErrorChargingPayment", t[t.UnknownError = 2] = "UnknownError", t[t.NetworkError = 3] = "NetworkError", t[t.StripeError = 4] = "StripeError", t[t.MissingEmailError = 5] = "MissingEmailError", t[t.AlreadySubscribedError = 6] = "AlreadySubscribedError", t))(O || {});
1135
+ class G extends Error {
1129
1136
  constructor(e, r, n) {
1130
1137
  super(r), this.errorCode = e, this.underlyingErrorMessage = n;
1131
1138
  }
1132
1139
  static fromPurchasesError(e, r) {
1133
1140
  let n;
1134
- return e.errorCode === Z.ProductAlreadyPurchasedError ? n = 6 : e.errorCode === Z.InvalidEmailError ? n = 5 : n = r, new Y(
1141
+ return e.errorCode === X.ProductAlreadyPurchasedError ? n = 6 : e.errorCode === X.InvalidEmailError ? n = 5 : n = r, new G(
1135
1142
  n,
1136
1143
  e.message,
1137
1144
  e.underlyingErrorMessage
1138
1145
  );
1139
1146
  }
1140
1147
  }
1141
- class Hn {
1148
+ class Wn {
1142
1149
  constructor(e, r = 10) {
1143
1150
  P(this, "operationSessionId", null);
1144
1151
  P(this, "backend");
@@ -1157,15 +1164,15 @@ class Hn {
1157
1164
  );
1158
1165
  return this.operationSessionId = s.operation_session_id, s;
1159
1166
  } catch (s) {
1160
- if (s instanceof X)
1161
- throw Y.fromPurchasesError(
1167
+ if (s instanceof W)
1168
+ throw G.fromPurchasesError(
1162
1169
  s,
1163
1170
  0
1164
1171
  /* ErrorSettingUpPurchase */
1165
1172
  );
1166
1173
  {
1167
1174
  const l = "Unknown error starting purchase: " + String(s);
1168
- throw G.errorLog(l), new Y(
1175
+ throw Y.errorLog(l), new G(
1169
1176
  2,
1170
1177
  l
1171
1178
  );
@@ -1175,7 +1182,7 @@ class Hn {
1175
1182
  async pollCurrentPurchaseForCompletion() {
1176
1183
  const e = this.operationSessionId;
1177
1184
  if (!e)
1178
- throw new Y(
1185
+ throw new G(
1179
1186
  0,
1180
1187
  "No purchase in progress"
1181
1188
  );
@@ -1183,7 +1190,7 @@ class Hn {
1183
1190
  const i = (o = 1) => {
1184
1191
  if (o > this.maxNumberAttempts) {
1185
1192
  this.clearPurchaseInProgress(), n(
1186
- new Y(
1193
+ new G(
1187
1194
  2,
1188
1195
  "Max attempts reached trying to get successful purchase status"
1189
1196
  )
@@ -1192,24 +1199,24 @@ class Hn {
1192
1199
  }
1193
1200
  this.backend.getCheckoutStatus(e).then((s) => {
1194
1201
  switch (s.operation.status) {
1195
- case pe.Started:
1196
- case pe.InProgress:
1202
+ case ge.Started:
1203
+ case ge.InProgress:
1197
1204
  setTimeout(
1198
1205
  () => i(o + 1),
1199
1206
  this.waitMSBetweenAttempts
1200
1207
  );
1201
1208
  break;
1202
- case pe.Succeeded:
1209
+ case ge.Succeeded:
1203
1210
  this.clearPurchaseInProgress(), r();
1204
1211
  return;
1205
- case pe.Failed:
1212
+ case ge.Failed:
1206
1213
  this.clearPurchaseInProgress(), this.handlePaymentError(
1207
1214
  s.operation.error,
1208
1215
  n
1209
1216
  );
1210
1217
  }
1211
1218
  }).catch((s) => {
1212
- const l = Y.fromPurchasesError(
1219
+ const l = G.fromPurchasesError(
1213
1220
  s,
1214
1221
  3
1215
1222
  /* NetworkError */
@@ -1226,7 +1233,7 @@ class Hn {
1226
1233
  handlePaymentError(e, r) {
1227
1234
  if (e == null) {
1228
1235
  r(
1229
- new Y(
1236
+ new G(
1230
1237
  2,
1231
1238
  "Got an error status but error field is empty."
1232
1239
  )
@@ -1234,25 +1241,25 @@ class Hn {
1234
1241
  return;
1235
1242
  }
1236
1243
  switch (e.code) {
1237
- case Ne.SetupIntentCreationFailed:
1244
+ case Te.SetupIntentCreationFailed:
1238
1245
  r(
1239
- new Y(
1246
+ new G(
1240
1247
  0,
1241
1248
  "Setup intent creation failed"
1242
1249
  )
1243
1250
  );
1244
1251
  return;
1245
- case Ne.PaymentMethodCreationFailed:
1252
+ case Te.PaymentMethodCreationFailed:
1246
1253
  r(
1247
- new Y(
1254
+ new G(
1248
1255
  0,
1249
1256
  "Payment method creation failed"
1250
1257
  )
1251
1258
  );
1252
1259
  return;
1253
- case Ne.PaymentChargeFailed:
1260
+ case Te.PaymentChargeFailed:
1254
1261
  r(
1255
- new Y(
1262
+ new G(
1256
1263
  1,
1257
1264
  "Payment charge failed"
1258
1265
  )
@@ -1261,15 +1268,15 @@ class Hn {
1261
1268
  }
1262
1269
  }
1263
1270
  }
1264
- const Kn = "data:image/svg+xml,%3csvg%20width='124'%20height='124'%20viewBox='0%200%20124%20124'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='62'%20cy='62'%20r='62'%20fill='%23767676'/%3e%3cpath%20d='M87.6668%2041.504L82.4968%2036.334L62.0002%2056.8307L41.5035%2036.334L36.3335%2041.504L56.8302%2062.0006L36.3335%2082.4973L41.5035%2087.6673L62.0002%2067.1706L82.4968%2087.6673L87.6668%2082.4973L67.1702%2062.0006L87.6668%2041.504Z'%20fill='white'/%3e%3c/svg%3e";
1265
- function qn(t) {
1271
+ const zn = "data:image/svg+xml,%3csvg%20width='124'%20height='124'%20viewBox='0%200%20124%20124'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='62'%20cy='62'%20r='62'%20fill='%23767676'/%3e%3cpath%20d='M87.6668%2041.504L82.4968%2036.334L62.0002%2056.8307L41.5035%2036.334L36.3335%2041.504L56.8302%2062.0006L36.3335%2082.4973L41.5035%2087.6673L62.0002%2067.1706L82.4968%2087.6673L87.6668%2082.4973L67.1702%2062.0006L87.6668%2041.504Z'%20fill='white'/%3e%3c/svg%3e";
1272
+ function Xn(t) {
1266
1273
  F(t, "svelte-1609h93", "img.svelte-1609h93{width:124px;height:124px;margin:0 auto}");
1267
1274
  }
1268
- function jn(t) {
1275
+ function Zn(t) {
1269
1276
  let e, r;
1270
1277
  return {
1271
1278
  c() {
1272
- e = k("img"), ee(e.src, r = Kn) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon svelte-1609h93");
1279
+ e = k("img"), ee(e.src, r = zn) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon svelte-1609h93");
1273
1280
  },
1274
1281
  m(n, i) {
1275
1282
  p(n, e, i);
@@ -1282,15 +1289,15 @@ function jn(t) {
1282
1289
  }
1283
1290
  };
1284
1291
  }
1285
- class Jn extends U {
1292
+ class er extends R {
1286
1293
  constructor(e) {
1287
- super(), N(this, e, null, jn, T, {}, qn);
1294
+ super(), N(this, e, null, Zn, T, {}, Xn);
1288
1295
  }
1289
1296
  }
1290
- function Vn(t) {
1297
+ function tr(t) {
1291
1298
  F(t, "svelte-1rmxk7q", "button.svelte-1rmxk7q{border:none;border-radius:56px;font-size:16px;cursor:pointer;height:56px;color:var(--rc-color-grey-text-dark);background-color:var(--rc-color-grey-ui-dark);display:flex;align-items:center;justify-content:center}button.intent-primary.svelte-1rmxk7q{background-color:var(--rc-color-grey-text-dark);color:var(--rc-color-white);font-size:16px}button.svelte-1rmxk7q:disabled{color:var(--rc-color-grey-text-light)}button.intent-primary.svelte-1rmxk7q:disabled{color:var(--rc-color-grey-text-light)}");
1292
1299
  }
1293
- function Wn(t) {
1300
+ function nr(t) {
1294
1301
  let e, r, n, i, o;
1295
1302
  const s = (
1296
1303
  /*#slots*/
@@ -1304,12 +1311,12 @@ function Wn(t) {
1304
1311
  );
1305
1312
  return {
1306
1313
  c() {
1307
- e = k("button"), l && l.c(), _(e, "class", r = Ee(`intent-${/*intent*/
1314
+ e = k("button"), l && l.c(), _(e, "class", r = Ae(`intent-${/*intent*/
1308
1315
  t[0]}`) + " svelte-1rmxk7q"), e.disabled = /*disabled*/
1309
1316
  t[1];
1310
1317
  },
1311
1318
  m(c, a) {
1312
- p(c, e, a), l && l.m(e, null), n = !0, i || (o = ke(
1319
+ p(c, e, a), l && l.m(e, null), n = !0, i || (o = we(
1313
1320
  e,
1314
1321
  "click",
1315
1322
  /*click_handler*/
@@ -1336,7 +1343,7 @@ function Wn(t) {
1336
1343
  ),
1337
1344
  null
1338
1345
  ), (!n || a & /*intent*/
1339
- 1 && r !== (r = Ee(`intent-${/*intent*/
1346
+ 1 && r !== (r = Ae(`intent-${/*intent*/
1340
1347
  c[0]}`) + " svelte-1rmxk7q")) && _(e, "class", r), (!n || a & /*disabled*/
1341
1348
  2) && (e.disabled = /*disabled*/
1342
1349
  c[1]);
@@ -1352,24 +1359,24 @@ function Wn(t) {
1352
1359
  }
1353
1360
  };
1354
1361
  }
1355
- function zn(t, e, r) {
1362
+ function rr(t, e, r) {
1356
1363
  let { $$slots: n = {}, $$scope: i } = e, { intent: o = "primary" } = e, { disabled: s = !1 } = e;
1357
1364
  function l(c) {
1358
- Qt.call(this, t, c);
1365
+ Ct.call(this, t, c);
1359
1366
  }
1360
1367
  return t.$$set = (c) => {
1361
1368
  "intent" in c && r(0, o = c.intent), "disabled" in c && r(1, s = c.disabled), "$$scope" in c && r(2, i = c.$$scope);
1362
1369
  }, [o, s, i, n, l];
1363
1370
  }
1364
- class Ie extends U {
1371
+ class be extends R {
1365
1372
  constructor(e) {
1366
- super(), N(this, e, zn, Wn, T, { intent: 0, disabled: 1 }, Vn);
1373
+ super(), N(this, e, rr, nr, T, { intent: 0, disabled: 1 }, tr);
1367
1374
  }
1368
1375
  }
1369
- function Xn(t) {
1376
+ function ir(t) {
1370
1377
  F(t, "svelte-1f9z0o8", "footer.svelte-1f9z0o8{display:flex;flex-direction:column}");
1371
1378
  }
1372
- function Zn(t) {
1379
+ function or(t) {
1373
1380
  let e, r;
1374
1381
  const n = (
1375
1382
  /*#slots*/
@@ -1420,21 +1427,21 @@ function Zn(t) {
1420
1427
  }
1421
1428
  };
1422
1429
  }
1423
- function er(t, e, r) {
1430
+ function sr(t, e, r) {
1424
1431
  let { $$slots: n = {}, $$scope: i } = e;
1425
1432
  return t.$$set = (o) => {
1426
1433
  "$$scope" in o && r(0, i = o.$$scope);
1427
1434
  }, [i, n];
1428
1435
  }
1429
- class ze extends U {
1436
+ class ze extends R {
1430
1437
  constructor(e) {
1431
- super(), N(this, e, er, Zn, T, {}, Xn);
1438
+ super(), N(this, e, sr, or, T, {}, ir);
1432
1439
  }
1433
1440
  }
1434
- function tr(t) {
1441
+ function lr(t) {
1435
1442
  F(t, "svelte-6o8e90", '.column.svelte-6o8e90{display:flex;flex-direction:column;justify-content:flex-start;gap:var(--gap, "8px");flex-grow:1}');
1436
1443
  }
1437
- function nr(t) {
1444
+ function cr(t) {
1438
1445
  let e, r, n;
1439
1446
  const i = (
1440
1447
  /*#slots*/
@@ -1488,30 +1495,30 @@ function nr(t) {
1488
1495
  }
1489
1496
  };
1490
1497
  }
1491
- function rr(t, e, r) {
1498
+ function ar(t, e, r) {
1492
1499
  let { $$slots: n = {}, $$scope: i } = e, { gutter: o = "8px" } = e;
1493
1500
  return t.$$set = (s) => {
1494
1501
  "gutter" in s && r(0, o = s.gutter), "$$scope" in s && r(1, i = s.$$scope);
1495
1502
  }, [o, i, n];
1496
1503
  }
1497
- class ve extends U {
1504
+ class ye extends R {
1498
1505
  constructor(e) {
1499
- super(), N(this, e, rr, nr, T, { gutter: 0 }, tr);
1506
+ super(), N(this, e, ar, cr, T, { gutter: 0 }, lr);
1500
1507
  }
1501
1508
  }
1502
- const ir = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='mdi_close'%3e%3cpath%20id='Vector'%20d='M19%206.41L17.59%205L12%2010.59L6.41%205L5%206.41L10.59%2012L5%2017.59L6.41%2019L12%2013.41L17.59%2019L19%2017.59L13.41%2012L19%206.41Z'%20fill='%23767676'/%3e%3c/g%3e%3c/svg%3e";
1503
- function or(t) {
1509
+ const ur = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='mdi_close'%3e%3cpath%20id='Vector'%20d='M19%206.41L17.59%205L12%2010.59L6.41%205L5%206.41L10.59%2012L5%2017.59L6.41%2019L12%2013.41L17.59%2019L19%2017.59L13.41%2012L19%206.41Z'%20fill='%23767676'/%3e%3c/g%3e%3c/svg%3e";
1510
+ function fr(t) {
1504
1511
  F(t, "svelte-14xreta", ".close-button.svelte-14xreta{border:none;cursor:pointer;background-color:transparent;padding:0px}");
1505
1512
  }
1506
- function sr(t) {
1513
+ function dr(t) {
1507
1514
  let e, r, n, i, o;
1508
1515
  return {
1509
1516
  c() {
1510
- e = k("button"), r = k("img"), ee(r.src, n = ir) || _(r, "src", n), _(r, "alt", "close"), _(e, "class", "close-button svelte-14xreta"), e.disabled = /*disabled*/
1517
+ e = k("button"), r = k("img"), ee(r.src, n = ur) || _(r, "src", n), _(r, "alt", "close"), _(e, "class", "close-button svelte-14xreta"), e.disabled = /*disabled*/
1511
1518
  t[0];
1512
1519
  },
1513
1520
  m(s, l) {
1514
- p(s, e, l), Q(e, r), i || (o = ke(
1521
+ p(s, e, l), M(e, r), i || (o = we(
1515
1522
  e,
1516
1523
  "click",
1517
1524
  /*click_handler*/
@@ -1530,24 +1537,24 @@ function sr(t) {
1530
1537
  }
1531
1538
  };
1532
1539
  }
1533
- function lr(t, e, r) {
1540
+ function mr(t, e, r) {
1534
1541
  let { disabled: n = !1 } = e;
1535
1542
  function i(o) {
1536
- Qt.call(this, t, o);
1543
+ Ct.call(this, t, o);
1537
1544
  }
1538
1545
  return t.$$set = (o) => {
1539
1546
  "disabled" in o && r(0, n = o.disabled);
1540
1547
  }, [n, i];
1541
1548
  }
1542
- class cr extends U {
1549
+ class gr extends R {
1543
1550
  constructor(e) {
1544
- super(), N(this, e, lr, sr, T, { disabled: 0 }, or);
1551
+ super(), N(this, e, mr, dr, T, { disabled: 0 }, fr);
1545
1552
  }
1546
1553
  }
1547
- function ar(t) {
1554
+ function pr(t) {
1548
1555
  F(t, "svelte-44qpq9", ".rcb-app-icon.svelte-44qpq9{width:40px;height:40px;border-radius:12px;box-shadow:0px 1px 10px 0px rgba(0, 0, 0, 0.1);margin-right:16px}.rcb-app-icon-picture-container.svelte-44qpq9{height:40px}.rcb-app-icon.loading.svelte-44qpq9{background-color:gray}");
1549
1556
  }
1550
- function ur(t) {
1557
+ function _r(t) {
1551
1558
  let e;
1552
1559
  return {
1553
1560
  c() {
@@ -1562,16 +1569,16 @@ function ur(t) {
1562
1569
  }
1563
1570
  };
1564
1571
  }
1565
- function fr(t) {
1572
+ function hr(t) {
1566
1573
  let e, r, n, i, o, s;
1567
1574
  return {
1568
1575
  c() {
1569
- e = k("picture"), r = k("source"), i = C(), o = k("img"), _(r, "type", "image/webp"), on(r, n = /*srcWebp*/
1576
+ e = k("picture"), r = k("source"), i = Q(), o = k("img"), _(r, "type", "image/webp"), fn(r, n = /*srcWebp*/
1570
1577
  t[1]) || _(r, "srcset", n), _(o, "class", "rcb-app-icon svelte-44qpq9"), ee(o.src, s = /*src*/
1571
1578
  t[0]) || _(o, "src", s), _(o, "alt", "App icon"), _(e, "class", "rcb-app-icon-picture-container svelte-44qpq9");
1572
1579
  },
1573
1580
  m(l, c) {
1574
- p(l, e, c), Q(e, r), Q(e, i), Q(e, o);
1581
+ p(l, e, c), M(e, r), M(e, i), M(e, o);
1575
1582
  },
1576
1583
  p(l, c) {
1577
1584
  c & /*srcWebp*/
@@ -1585,12 +1592,12 @@ function fr(t) {
1585
1592
  }
1586
1593
  };
1587
1594
  }
1588
- function dr(t) {
1595
+ function Ar(t) {
1589
1596
  let e;
1590
1597
  function r(o, s) {
1591
1598
  return (
1592
1599
  /*src*/
1593
- o[0] !== null ? fr : ur
1600
+ o[0] !== null ? hr : _r
1594
1601
  );
1595
1602
  }
1596
1603
  let n = r(t), i = n(t);
@@ -1611,24 +1618,24 @@ function dr(t) {
1611
1618
  }
1612
1619
  };
1613
1620
  }
1614
- function mr(t, e, r) {
1621
+ function Er(t, e, r) {
1615
1622
  let { src: n = null } = e, { srcWebp: i = null } = e;
1616
1623
  return t.$$set = (o) => {
1617
1624
  "src" in o && r(0, n = o.src), "srcWebp" in o && r(1, i = o.srcWebp);
1618
1625
  }, [n, i];
1619
1626
  }
1620
- class Nt extends U {
1627
+ class Tt extends R {
1621
1628
  constructor(e) {
1622
- super(), N(this, e, mr, dr, T, { src: 0, srcWebp: 1 }, ar);
1629
+ super(), N(this, e, Er, Ar, T, { src: 0, srcWebp: 1 }, pr);
1623
1630
  }
1624
1631
  }
1625
- const Qe = (t) => `https://da08ctfrofx1b.cloudfront.net/${t}`;
1626
- function gr(t) {
1632
+ const Ce = (t) => `https://da08ctfrofx1b.cloudfront.net/${t}`;
1633
+ function br(t) {
1627
1634
  F(t, "svelte-10uf5fq", ".app-title.svelte-10uf5fq{font-weight:500;margin:8px 0;font-size:16px}.rcb-header-layout__business-info.svelte-10uf5fq{display:flex;align-items:center}");
1628
1635
  }
1629
- function pr(t) {
1636
+ function Ir(t) {
1630
1637
  let e, r;
1631
- return e = new Nt({}), {
1638
+ return e = new Tt({}), {
1632
1639
  c() {
1633
1640
  w(e.$$.fragment);
1634
1641
  },
@@ -1647,27 +1654,27 @@ function pr(t) {
1647
1654
  }
1648
1655
  };
1649
1656
  }
1650
- function _r(t) {
1657
+ function wr(t) {
1651
1658
  let e, r, n = (
1652
1659
  /*brandingInfo*/
1653
1660
  t[0].seller_company_name + ""
1654
1661
  ), i, o, s = (
1655
1662
  /*brandingInfo*/
1656
1663
  t[0].app_icon_webp !== null && /*brandingInfo*/
1657
- t[0].app_icon !== null && at(t)
1664
+ t[0].app_icon !== null && ct(t)
1658
1665
  );
1659
1666
  return {
1660
1667
  c() {
1661
- s && s.c(), e = C(), r = k("span"), i = L(n), _(r, "class", "app-title svelte-10uf5fq");
1668
+ s && s.c(), e = Q(), r = k("span"), i = L(n), _(r, "class", "app-title svelte-10uf5fq");
1662
1669
  },
1663
1670
  m(l, c) {
1664
- s && s.m(l, c), p(l, e, c), p(l, r, c), Q(r, i), o = !0;
1671
+ s && s.m(l, c), p(l, e, c), p(l, r, c), M(r, i), o = !0;
1665
1672
  },
1666
1673
  p(l, c) {
1667
1674
  /*brandingInfo*/
1668
1675
  l[0].app_icon_webp !== null && /*brandingInfo*/
1669
1676
  l[0].app_icon !== null ? s ? (s.p(l, c), c & /*brandingInfo*/
1670
- 1 && f(s, 1)) : (s = at(l), s.c(), f(s, 1), s.m(e.parentNode, e)) : s && (H(), d(s, 1, 1, () => {
1677
+ 1 && f(s, 1)) : (s = ct(l), s.c(), f(s, 1), s.m(e.parentNode, e)) : s && (H(), d(s, 1, 1, () => {
1671
1678
  s = null;
1672
1679
  }), K()), (!o || c & /*brandingInfo*/
1673
1680
  1) && n !== (n = /*brandingInfo*/
@@ -1684,15 +1691,15 @@ function _r(t) {
1684
1691
  }
1685
1692
  };
1686
1693
  }
1687
- function at(t) {
1694
+ function ct(t) {
1688
1695
  let e, r;
1689
- return e = new Nt({
1696
+ return e = new Tt({
1690
1697
  props: {
1691
- src: Qe(
1698
+ src: Ce(
1692
1699
  /*brandingInfo*/
1693
1700
  t[0].app_icon
1694
1701
  ),
1695
- srcWebp: Qe(
1702
+ srcWebp: Ce(
1696
1703
  /*brandingInfo*/
1697
1704
  t[0].app_icon_webp
1698
1705
  )
@@ -1707,11 +1714,11 @@ function at(t) {
1707
1714
  p(n, i) {
1708
1715
  const o = {};
1709
1716
  i & /*brandingInfo*/
1710
- 1 && (o.src = Qe(
1717
+ 1 && (o.src = Ce(
1711
1718
  /*brandingInfo*/
1712
1719
  n[0].app_icon
1713
1720
  )), i & /*brandingInfo*/
1714
- 1 && (o.srcWebp = Qe(
1721
+ 1 && (o.srcWebp = Ce(
1715
1722
  /*brandingInfo*/
1716
1723
  n[0].app_icon_webp
1717
1724
  )), e.$set(o);
@@ -1727,9 +1734,9 @@ function at(t) {
1727
1734
  }
1728
1735
  };
1729
1736
  }
1730
- function Ar(t) {
1737
+ function kr(t) {
1731
1738
  let e, r, n, i;
1732
- const o = [_r, pr], s = [];
1739
+ const o = [wr, Ir], s = [];
1733
1740
  function l(c, a) {
1734
1741
  return (
1735
1742
  /*brandingInfo*/
@@ -1760,38 +1767,38 @@ function Ar(t) {
1760
1767
  }
1761
1768
  };
1762
1769
  }
1763
- function hr(t, e, r) {
1770
+ function yr(t, e, r) {
1764
1771
  let { brandingInfo: n = null } = e;
1765
1772
  return t.$$set = (i) => {
1766
1773
  "brandingInfo" in i && r(0, n = i.brandingInfo);
1767
1774
  }, [n];
1768
1775
  }
1769
- class Ut extends U {
1776
+ class Nt extends R {
1770
1777
  constructor(e) {
1771
- super(), N(this, e, hr, Ar, T, { brandingInfo: 0 }, gr);
1778
+ super(), N(this, e, yr, kr, T, { brandingInfo: 0 }, br);
1772
1779
  }
1773
1780
  }
1774
- function Er(t) {
1781
+ function vr(t) {
1775
1782
  F(t, "svelte-17puakv", ".rcb-post-purchase-header-layout.svelte-17puakv{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:-4px}");
1776
1783
  }
1777
- function br(t) {
1784
+ function $r(t) {
1778
1785
  let e, r, n, i, o;
1779
- return r = new Ut({
1786
+ return r = new Nt({
1780
1787
  props: { brandingInfo: (
1781
1788
  /*brandingInfo*/
1782
1789
  t[0]
1783
1790
  ) }
1784
- }), i = new cr({}), i.$on("click", function() {
1791
+ }), i = new gr({}), i.$on("click", function() {
1785
1792
  ce(
1786
1793
  /*onClose*/
1787
1794
  t[1]
1788
1795
  ) && t[1].apply(this, arguments);
1789
1796
  }), {
1790
1797
  c() {
1791
- e = k("div"), w(r.$$.fragment), n = C(), w(i.$$.fragment), _(e, "class", "rcb-post-purchase-header-layout svelte-17puakv");
1798
+ e = k("div"), w(r.$$.fragment), n = Q(), w(i.$$.fragment), _(e, "class", "rcb-post-purchase-header-layout svelte-17puakv");
1792
1799
  },
1793
1800
  m(s, l) {
1794
- p(s, e, l), b(r, e, null), Q(e, n), b(i, e, null), o = !0;
1801
+ p(s, e, l), b(r, e, null), M(e, n), b(i, e, null), o = !0;
1795
1802
  },
1796
1803
  p(s, l) {
1797
1804
  t = s;
@@ -1811,12 +1818,12 @@ function br(t) {
1811
1818
  }
1812
1819
  };
1813
1820
  }
1814
- function Ir(t) {
1821
+ function Br(t) {
1815
1822
  let e, r;
1816
1823
  return e = new ue({
1817
1824
  props: {
1818
1825
  as: "header",
1819
- $$slots: { default: [br] },
1826
+ $$slots: { default: [$r] },
1820
1827
  $$scope: { ctx: t }
1821
1828
  }
1822
1829
  }), {
@@ -1842,22 +1849,22 @@ function Ir(t) {
1842
1849
  }
1843
1850
  };
1844
1851
  }
1845
- function wr(t, e, r) {
1852
+ function Dr(t, e, r) {
1846
1853
  let { brandingInfo: n = null } = e, { onClose: i } = e;
1847
1854
  return t.$$set = (o) => {
1848
1855
  "brandingInfo" in o && r(0, n = o.brandingInfo), "onClose" in o && r(1, i = o.onClose);
1849
1856
  }, [n, i];
1850
1857
  }
1851
- class kr extends U {
1858
+ class Cr extends R {
1852
1859
  constructor(e) {
1853
- super(), N(this, e, wr, Ir, T, { brandingInfo: 0, onClose: 1 }, Er);
1860
+ super(), N(this, e, Dr, Br, T, { brandingInfo: 0, onClose: 1 }, vr);
1854
1861
  }
1855
1862
  }
1856
- function $r(t) {
1863
+ function Pr(t) {
1857
1864
  F(t, "svelte-10pcqja", ".rcb-modal-message.svelte-10pcqja{width:100%;min-height:160px;display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center}.title.svelte-10pcqja{font-size:24px;line-height:1.25em}.subtitle.svelte-10pcqja{font-size:16px;line-height:1.25em;overflow-wrap:anywhere}");
1858
1865
  }
1859
- const vr = (t) => ({}), ut = (t) => ({});
1860
- function yr(t) {
1866
+ const Mr = (t) => ({}), at = (t) => ({});
1867
+ function Qr(t) {
1861
1868
  let e, r, n, i, o;
1862
1869
  const s = (
1863
1870
  /*#slots*/
@@ -1874,10 +1881,10 @@ function yr(t) {
1874
1881
  e = k("span"), r = L(
1875
1882
  /*title*/
1876
1883
  t[2]
1877
- ), n = C(), i = k("span"), l && l.c(), _(e, "class", "title svelte-10pcqja"), _(i, "class", "subtitle svelte-10pcqja");
1884
+ ), n = Q(), i = k("span"), l && l.c(), _(e, "class", "title svelte-10pcqja"), _(i, "class", "subtitle svelte-10pcqja");
1878
1885
  },
1879
1886
  m(c, a) {
1880
- p(c, e, a), Q(e, r), p(c, n, a), p(c, i, a), l && l.m(i, null), o = !0;
1887
+ p(c, e, a), M(e, r), p(c, n, a), p(c, i, a), l && l.m(i, null), o = !0;
1881
1888
  },
1882
1889
  p(c, a) {
1883
1890
  (!o || a & /*title*/
@@ -1916,7 +1923,7 @@ function yr(t) {
1916
1923
  }
1917
1924
  };
1918
1925
  }
1919
- function Br(t) {
1926
+ function Tr(t) {
1920
1927
  let e, r, n;
1921
1928
  const i = (
1922
1929
  /*#slots*/
@@ -1926,17 +1933,17 @@ function Br(t) {
1926
1933
  t,
1927
1934
  /*$$scope*/
1928
1935
  t[5],
1929
- ut
1936
+ at
1930
1937
  );
1931
- return r = new ve({
1938
+ return r = new ye({
1932
1939
  props: {
1933
1940
  gutter: "16px",
1934
- $$slots: { default: [yr] },
1941
+ $$slots: { default: [Qr] },
1935
1942
  $$scope: { ctx: t }
1936
1943
  }
1937
1944
  }), {
1938
1945
  c() {
1939
- o && o.c(), e = C(), w(r.$$.fragment);
1946
+ o && o.c(), e = Q(), w(r.$$.fragment);
1940
1947
  },
1941
1948
  m(s, l) {
1942
1949
  o && o.m(s, l), p(s, e, l), b(r, s, l), n = !0;
@@ -1954,12 +1961,12 @@ function Br(t) {
1954
1961
  /*$$scope*/
1955
1962
  s[5],
1956
1963
  l,
1957
- vr
1964
+ Mr
1958
1965
  ) : V(
1959
1966
  /*$$scope*/
1960
1967
  s[5]
1961
1968
  ),
1962
- ut
1969
+ at
1963
1970
  );
1964
1971
  const c = {};
1965
1972
  l & /*$$scope, title*/
@@ -1976,12 +1983,12 @@ function Br(t) {
1976
1983
  }
1977
1984
  };
1978
1985
  }
1979
- function Dr(t) {
1986
+ function Nr(t) {
1980
1987
  let e, r, n;
1981
- return r = new ve({
1988
+ return r = new ye({
1982
1989
  props: {
1983
1990
  gutter: "16px",
1984
- $$slots: { default: [Br] },
1991
+ $$slots: { default: [Tr] },
1985
1992
  $$scope: { ctx: t }
1986
1993
  }
1987
1994
  }), {
@@ -2018,7 +2025,7 @@ function Dr(t) {
2018
2025
  }
2019
2026
  };
2020
2027
  }
2021
- function Mr(t) {
2028
+ function Rr(t) {
2022
2029
  let e;
2023
2030
  return {
2024
2031
  c() {
@@ -2032,11 +2039,11 @@ function Mr(t) {
2032
2039
  }
2033
2040
  };
2034
2041
  }
2035
- function Qr(t) {
2042
+ function Ur(t) {
2036
2043
  let e, r;
2037
- return e = new Ie({
2044
+ return e = new be({
2038
2045
  props: {
2039
- $$slots: { default: [Mr] },
2046
+ $$slots: { default: [Rr] },
2040
2047
  $$scope: { ctx: t }
2041
2048
  }
2042
2049
  }), e.$on("click", function() {
@@ -2068,9 +2075,9 @@ function Qr(t) {
2068
2075
  }
2069
2076
  };
2070
2077
  }
2071
- function Pr(t) {
2078
+ function Sr(t) {
2072
2079
  let e, r, n, i, o, s;
2073
- return e = new kr({
2080
+ return e = new Cr({
2074
2081
  props: {
2075
2082
  brandingInfo: (
2076
2083
  /*brandingInfo*/
@@ -2083,17 +2090,17 @@ function Pr(t) {
2083
2090
  }
2084
2091
  }), n = new ue({
2085
2092
  props: {
2086
- $$slots: { default: [Dr] },
2093
+ $$slots: { default: [Nr] },
2087
2094
  $$scope: { ctx: t }
2088
2095
  }
2089
2096
  }), o = new ze({
2090
2097
  props: {
2091
- $$slots: { default: [Qr] },
2098
+ $$slots: { default: [Ur] },
2092
2099
  $$scope: { ctx: t }
2093
2100
  }
2094
2101
  }), {
2095
2102
  c() {
2096
- w(e.$$.fragment), r = C(), w(n.$$.fragment), i = C(), w(o.$$.fragment);
2103
+ w(e.$$.fragment), r = Q(), w(n.$$.fragment), i = Q(), w(o.$$.fragment);
2097
2104
  },
2098
2105
  m(l, c) {
2099
2106
  b(e, l, c), p(l, r, c), b(n, l, c), p(l, i, c), b(o, l, c), s = !0;
@@ -2123,12 +2130,12 @@ function Pr(t) {
2123
2130
  }
2124
2131
  };
2125
2132
  }
2126
- function Cr(t) {
2133
+ function Or(t) {
2127
2134
  let e, r;
2128
- return e = new ve({
2135
+ return e = new ye({
2129
2136
  props: {
2130
2137
  gutter: "32px",
2131
- $$slots: { default: [Pr] },
2138
+ $$slots: { default: [Sr] },
2132
2139
  $$scope: { ctx: t }
2133
2140
  }
2134
2141
  }), {
@@ -2154,19 +2161,19 @@ function Cr(t) {
2154
2161
  }
2155
2162
  };
2156
2163
  }
2157
- function Tr(t, e, r) {
2164
+ function Lr(t, e, r) {
2158
2165
  let { $$slots: n = {}, $$scope: i } = e, { brandingInfo: o = null } = e, { onContinue: s } = e, { title: l } = e, { type: c } = e;
2159
2166
  return t.$$set = (a) => {
2160
2167
  "brandingInfo" in a && r(0, o = a.brandingInfo), "onContinue" in a && r(1, s = a.onContinue), "title" in a && r(2, l = a.title), "type" in a && r(3, c = a.type), "$$scope" in a && r(5, i = a.$$scope);
2161
2168
  }, [o, s, l, c, n, i];
2162
2169
  }
2163
- class Rt extends U {
2170
+ class Rt extends R {
2164
2171
  constructor(e) {
2165
2172
  super(), N(
2166
2173
  this,
2167
2174
  e,
2168
- Tr,
2169
- Cr,
2175
+ Lr,
2176
+ Or,
2170
2177
  T,
2171
2178
  {
2172
2179
  brandingInfo: 0,
@@ -2174,11 +2181,11 @@ class Rt extends U {
2174
2181
  title: 2,
2175
2182
  type: 3
2176
2183
  },
2177
- $r
2184
+ Pr
2178
2185
  );
2179
2186
  }
2180
2187
  }
2181
- function ft(t) {
2188
+ function ut(t) {
2182
2189
  let e, r, n, i, o;
2183
2190
  return {
2184
2191
  c() {
@@ -2189,7 +2196,7 @@ function ft(t) {
2189
2196
  t[1]);
2190
2197
  },
2191
2198
  m(s, l) {
2192
- p(s, e, l), p(s, r, l), Q(r, n), p(s, o, l);
2199
+ p(s, e, l), p(s, r, l), M(r, n), p(s, o, l);
2193
2200
  },
2194
2201
  p(s, l) {
2195
2202
  l & /*supportEmail*/
@@ -2206,33 +2213,33 @@ function ft(t) {
2206
2213
  }
2207
2214
  };
2208
2215
  }
2209
- function Nr(t) {
2216
+ function Fr(t) {
2210
2217
  let e = (
2211
2218
  /*getErrorMessage*/
2212
2219
  t[3]() + ""
2213
2220
  ), r, n, i, o = (
2214
2221
  /*supportEmail*/
2215
- t[1] && ft(t)
2222
+ t[1] && ut(t)
2216
2223
  );
2217
2224
  return {
2218
2225
  c() {
2219
- r = L(e), n = C(), o && o.c(), i = te();
2226
+ r = L(e), n = Q(), o && o.c(), i = te();
2220
2227
  },
2221
2228
  m(s, l) {
2222
2229
  p(s, r, l), p(s, n, l), o && o.m(s, l), p(s, i, l);
2223
2230
  },
2224
2231
  p(s, l) {
2225
2232
  /*supportEmail*/
2226
- s[1] ? o ? o.p(s, l) : (o = ft(s), o.c(), o.m(i.parentNode, i)) : o && (o.d(1), o = null);
2233
+ s[1] ? o ? o.p(s, l) : (o = ut(s), o.c(), o.m(i.parentNode, i)) : o && (o.d(1), o = null);
2227
2234
  },
2228
2235
  d(s) {
2229
2236
  s && (g(r), g(n), g(i)), o && o.d(s);
2230
2237
  }
2231
2238
  };
2232
2239
  }
2233
- function Ur(t) {
2240
+ function xr(t) {
2234
2241
  let e, r;
2235
- return e = new Jn({ props: { slot: "icon" } }), {
2242
+ return e = new er({ props: { slot: "icon" } }), {
2236
2243
  c() {
2237
2244
  w(e.$$.fragment);
2238
2245
  },
@@ -2251,7 +2258,7 @@ function Ur(t) {
2251
2258
  }
2252
2259
  };
2253
2260
  }
2254
- function Rr(t) {
2261
+ function Yr(t) {
2255
2262
  let e, r;
2256
2263
  return e = new Rt({
2257
2264
  props: {
@@ -2269,8 +2276,8 @@ function Rr(t) {
2269
2276
  ),
2270
2277
  type: "error",
2271
2278
  $$slots: {
2272
- icon: [Ur],
2273
- default: [Nr]
2279
+ icon: [xr],
2280
+ default: [Fr]
2274
2281
  },
2275
2282
  $$scope: { ctx: t }
2276
2283
  }
@@ -2301,10 +2308,10 @@ function Rr(t) {
2301
2308
  }
2302
2309
  };
2303
2310
  }
2304
- function Sr(t, e, r) {
2311
+ function Gr(t, e, r) {
2305
2312
  let { brandingInfo: n = null } = e, { lastError: i } = e, { supportEmail: o = null } = e, { onContinue: s } = e;
2306
- Oe(() => {
2307
- G.errorLog(`Displayed error: ${O[i.errorCode]}. Message: ${i.message ?? "None"}. Underlying error: ${i.underlyingErrorMessage ?? "None"}`);
2313
+ Se(() => {
2314
+ Y.errorLog(`Displayed error: ${O[i.errorCode]}. Message: ${i.message ?? "None"}. Underlying error: ${i.underlyingErrorMessage ?? "None"}`);
2308
2315
  });
2309
2316
  function l() {
2310
2317
  switch (i.errorCode) {
@@ -2344,9 +2351,9 @@ function Sr(t, e, r) {
2344
2351
  i
2345
2352
  ];
2346
2353
  }
2347
- class Or extends U {
2354
+ class Hr extends R {
2348
2355
  constructor(e) {
2349
- super(), N(this, e, Sr, Rr, T, {
2356
+ super(), N(this, e, Gr, Yr, T, {
2350
2357
  brandingInfo: 0,
2351
2358
  lastError: 5,
2352
2359
  supportEmail: 1,
@@ -2354,15 +2361,15 @@ class Or extends U {
2354
2361
  });
2355
2362
  }
2356
2363
  }
2357
- const Lr = "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";
2358
- function Fr(t) {
2364
+ const Kr = "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";
2365
+ function qr(t) {
2359
2366
  F(t, "svelte-1609h93", "img.svelte-1609h93{width:124px;height:124px;margin:0 auto}");
2360
2367
  }
2361
- function xr(t) {
2368
+ function jr(t) {
2362
2369
  let e, r;
2363
2370
  return {
2364
2371
  c() {
2365
- e = k("img"), ee(e.src, r = Lr) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon svelte-1609h93");
2372
+ e = k("img"), ee(e.src, r = Kr) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon svelte-1609h93");
2366
2373
  },
2367
2374
  m(n, i) {
2368
2375
  p(n, e, i);
@@ -2375,12 +2382,12 @@ function xr(t) {
2375
2382
  }
2376
2383
  };
2377
2384
  }
2378
- class Gr extends U {
2385
+ class Jr extends R {
2379
2386
  constructor(e) {
2380
- super(), N(this, e, null, xr, T, {}, Fr);
2387
+ super(), N(this, e, null, jr, T, {}, qr);
2381
2388
  }
2382
2389
  }
2383
- function Yr(t) {
2390
+ function Vr(t) {
2384
2391
  let e;
2385
2392
  return {
2386
2393
  c() {
@@ -2394,9 +2401,9 @@ function Yr(t) {
2394
2401
  }
2395
2402
  };
2396
2403
  }
2397
- function Hr(t) {
2404
+ function Wr(t) {
2398
2405
  let e, r;
2399
- return e = new Gr({ props: { slot: "icon" } }), {
2406
+ return e = new Jr({ props: { slot: "icon" } }), {
2400
2407
  c() {
2401
2408
  w(e.$$.fragment);
2402
2409
  },
@@ -2415,7 +2422,7 @@ function Hr(t) {
2415
2422
  }
2416
2423
  };
2417
2424
  }
2418
- function Kr(t) {
2425
+ function zr(t) {
2419
2426
  let e, r;
2420
2427
  return e = new Rt({
2421
2428
  props: {
@@ -2430,8 +2437,8 @@ function Kr(t) {
2430
2437
  t[1]
2431
2438
  ),
2432
2439
  $$slots: {
2433
- icon: [Hr],
2434
- default: [Yr]
2440
+ icon: [Wr],
2441
+ default: [Vr]
2435
2442
  },
2436
2443
  $$scope: { ctx: t }
2437
2444
  }
@@ -2462,30 +2469,30 @@ function Kr(t) {
2462
2469
  }
2463
2470
  };
2464
2471
  }
2465
- function qr(t, e, r) {
2472
+ function Xr(t, e, r) {
2466
2473
  let { brandingInfo: n = null } = e, { onContinue: i } = e;
2467
2474
  return t.$$set = (o) => {
2468
2475
  "brandingInfo" in o && r(0, n = o.brandingInfo), "onContinue" in o && r(1, i = o.onContinue);
2469
2476
  }, [n, i];
2470
2477
  }
2471
- class jr extends U {
2478
+ class Zr extends R {
2472
2479
  constructor(e) {
2473
- super(), N(this, e, qr, Kr, T, { brandingInfo: 0, onContinue: 1 });
2480
+ super(), N(this, e, Xr, zr, T, { brandingInfo: 0, onContinue: 1 });
2474
2481
  }
2475
2482
  }
2476
- function Jr(t, e, r, n, i = {}) {
2483
+ function ei(t, e, r, n, i = {}) {
2477
2484
  const o = r.create(e, i);
2478
2485
  return o.mount(t), o.on("change", (s) => n("change", s)), o.on("ready", (s) => n("ready", s)), o.on("focus", (s) => n("focus", s)), o.on("blur", (s) => n("blur", s)), o.on("escape", (s) => n("escape", s)), o.on("click", (s) => n("click", s)), o.on("loaderror", (s) => n("loaderror", s)), o.on("loaderstart", (s) => n("loaderstart", s)), o.on("networkschange", (s) => n("networkschange", s)), o;
2479
2486
  }
2480
- const Vr = typeof window > "u";
2481
- function Wr(t) {
2482
- if (!Vr)
2487
+ const ti = typeof window > "u";
2488
+ function ni(t) {
2489
+ if (!ti)
2483
2490
  return t.registerAppInfo({
2484
2491
  name: "svelte-stripe-js",
2485
2492
  url: "https://svelte-stripe-js.vercel.app"
2486
2493
  });
2487
2494
  }
2488
- function zr(t) {
2495
+ function ri(t) {
2489
2496
  let e;
2490
2497
  return {
2491
2498
  c() {
@@ -2502,11 +2509,11 @@ function zr(t) {
2502
2509
  }
2503
2510
  };
2504
2511
  }
2505
- function Xr(t, e, r) {
2512
+ function ii(t, e, r) {
2506
2513
  let n, i;
2507
- const o = An(), { elements: s } = En("stripe");
2514
+ const o = kn(), { elements: s } = vn("stripe");
2508
2515
  let { options: l = void 0 } = e;
2509
- Oe(() => (n = Jr(i, "payment", s, o, l), () => n.destroy()));
2516
+ Se(() => (n = ei(i, "payment", s, o, l), () => n.destroy()));
2510
2517
  function c() {
2511
2518
  n.blur();
2512
2519
  }
@@ -2519,18 +2526,18 @@ function Xr(t, e, r) {
2519
2526
  function m() {
2520
2527
  n.focus();
2521
2528
  }
2522
- function A($) {
2523
- Re[$ ? "unshift" : "push"](() => {
2524
- i = $, r(0, i);
2529
+ function h(y) {
2530
+ Re[y ? "unshift" : "push"](() => {
2531
+ i = y, r(0, i);
2525
2532
  });
2526
2533
  }
2527
- return t.$$set = ($) => {
2528
- "options" in $ && r(1, l = $.options);
2529
- }, [i, l, c, a, u, m, A];
2534
+ return t.$$set = (y) => {
2535
+ "options" in y && r(1, l = y.options);
2536
+ }, [i, l, c, a, u, m, h];
2530
2537
  }
2531
- class Zr extends U {
2538
+ class oi extends R {
2532
2539
  constructor(e) {
2533
- super(), N(this, e, Xr, zr, T, {
2540
+ super(), N(this, e, ii, ri, T, {
2534
2541
  options: 1,
2535
2542
  blur: 2,
2536
2543
  clear: 3,
@@ -2551,7 +2558,7 @@ class Zr extends U {
2551
2558
  return this.$$.ctx[5];
2552
2559
  }
2553
2560
  }
2554
- function dt(t) {
2561
+ function ft(t) {
2555
2562
  let e;
2556
2563
  const r = (
2557
2564
  /*#slots*/
@@ -2602,11 +2609,11 @@ function dt(t) {
2602
2609
  }
2603
2610
  };
2604
2611
  }
2605
- function ei(t) {
2612
+ function si(t) {
2606
2613
  let e, r, n = (
2607
2614
  /*stripe*/
2608
2615
  t[1] && /*elements*/
2609
- t[0] && dt(t)
2616
+ t[0] && ft(t)
2610
2617
  );
2611
2618
  return {
2612
2619
  c() {
@@ -2619,7 +2626,7 @@ function ei(t) {
2619
2626
  /*stripe*/
2620
2627
  i[1] && /*elements*/
2621
2628
  i[0] ? n ? (n.p(i, o), o & /*stripe, elements*/
2622
- 3 && f(n, 1)) : (n = dt(i), n.c(), f(n, 1), n.m(e.parentNode, e)) : n && (H(), d(n, 1, 1, () => {
2629
+ 3 && f(n, 1)) : (n = ft(i), n.c(), f(n, 1), n.m(e.parentNode, e)) : n && (H(), d(n, 1, 1, () => {
2623
2630
  n = null;
2624
2631
  }), K());
2625
2632
  },
@@ -2634,46 +2641,46 @@ function ei(t) {
2634
2641
  }
2635
2642
  };
2636
2643
  }
2637
- function ti(t, e, r) {
2638
- let n, { $$slots: i = {}, $$scope: o } = e, { stripe: s } = e, { mode: l = void 0 } = e, { theme: c = "stripe" } = e, { variables: a = {} } = e, { rules: u = {} } = e, { labels: m = "above" } = e, { loader: A = "auto" } = e, { fonts: $ = [] } = e, { locale: E = "auto" } = e, { currency: B = void 0 } = e, { amount: h = void 0 } = e, { clientSecret: y = void 0 } = e, { elements: R = null } = e;
2639
- return t.$$set = (M) => {
2640
- "stripe" in M && r(1, s = M.stripe), "mode" in M && r(2, l = M.mode), "theme" in M && r(3, c = M.theme), "variables" in M && r(4, a = M.variables), "rules" in M && r(5, u = M.rules), "labels" in M && r(6, m = M.labels), "loader" in M && r(7, A = M.loader), "fonts" in M && r(8, $ = M.fonts), "locale" in M && r(9, E = M.locale), "currency" in M && r(10, B = M.currency), "amount" in M && r(11, h = M.amount), "clientSecret" in M && r(12, y = M.clientSecret), "elements" in M && r(0, R = M.elements), "$$scope" in M && r(14, o = M.$$scope);
2644
+ function li(t, e, r) {
2645
+ let n, { $$slots: i = {}, $$scope: o } = e, { stripe: s } = e, { mode: l = void 0 } = e, { theme: c = "stripe" } = e, { variables: a = {} } = e, { rules: u = {} } = e, { labels: m = "above" } = e, { loader: h = "auto" } = e, { fonts: y = [] } = e, { locale: E = "auto" } = e, { currency: B = void 0 } = e, { amount: A = void 0 } = e, { clientSecret: $ = void 0 } = e, { elements: U = null } = e;
2646
+ return t.$$set = (C) => {
2647
+ "stripe" in C && r(1, s = C.stripe), "mode" in C && r(2, l = C.mode), "theme" in C && r(3, c = C.theme), "variables" in C && r(4, a = C.variables), "rules" in C && r(5, u = C.rules), "labels" in C && r(6, m = C.labels), "loader" in C && r(7, h = C.loader), "fonts" in C && r(8, y = C.fonts), "locale" in C && r(9, E = C.locale), "currency" in C && r(10, B = C.currency), "amount" in C && r(11, A = C.amount), "clientSecret" in C && r(12, $ = C.clientSecret), "elements" in C && r(0, U = C.elements), "$$scope" in C && r(14, o = C.$$scope);
2641
2648
  }, t.$$.update = () => {
2642
2649
  t.$$.dirty & /*theme, variables, rules, labels*/
2643
2650
  120 && r(13, n = { theme: c, variables: a, rules: u, labels: m }), t.$$.dirty & /*stripe, elements, mode, currency, amount, appearance, clientSecret, fonts, loader, locale*/
2644
- 16263 && s && !R && (r(0, R = s.elements({
2651
+ 16263 && s && !U && (r(0, U = s.elements({
2645
2652
  mode: l,
2646
2653
  currency: B,
2647
- amount: h,
2654
+ amount: A,
2648
2655
  appearance: n,
2649
- clientSecret: y,
2650
- fonts: $,
2651
- loader: A,
2656
+ clientSecret: $,
2657
+ fonts: y,
2658
+ loader: h,
2652
2659
  locale: E
2653
- })), Wr(s), hn("stripe", { stripe: s, elements: R })), t.$$.dirty & /*elements, appearance, locale*/
2654
- 8705 && R && R.update({ appearance: n, locale: E });
2660
+ })), ni(s), yn("stripe", { stripe: s, elements: U })), t.$$.dirty & /*elements, appearance, locale*/
2661
+ 8705 && U && U.update({ appearance: n, locale: E });
2655
2662
  }, [
2656
- R,
2663
+ U,
2657
2664
  s,
2658
2665
  l,
2659
2666
  c,
2660
2667
  a,
2661
2668
  u,
2662
2669
  m,
2663
- A,
2664
- $,
2665
- E,
2666
- B,
2667
2670
  h,
2668
2671
  y,
2672
+ E,
2673
+ B,
2674
+ A,
2675
+ $,
2669
2676
  n,
2670
2677
  o,
2671
2678
  i
2672
2679
  ];
2673
2680
  }
2674
- class ni extends U {
2681
+ class ci extends R {
2675
2682
  constructor(e) {
2676
- super(), N(this, e, ti, ei, T, {
2683
+ super(), N(this, e, li, si, T, {
2677
2684
  stripe: 1,
2678
2685
  mode: 2,
2679
2686
  theme: 3,
@@ -2690,90 +2697,90 @@ class ni extends U {
2690
2697
  });
2691
2698
  }
2692
2699
  }
2693
- var St = "https://js.stripe.com/v3", ri = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, mt = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", ii = function() {
2694
- for (var e = document.querySelectorAll('script[src^="'.concat(St, '"]')), r = 0; r < e.length; r++) {
2700
+ var Ut = "https://js.stripe.com/v3", ai = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, dt = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", ui = function() {
2701
+ for (var e = document.querySelectorAll('script[src^="'.concat(Ut, '"]')), r = 0; r < e.length; r++) {
2695
2702
  var n = e[r];
2696
- if (ri.test(n.src))
2703
+ if (ai.test(n.src))
2697
2704
  return n;
2698
2705
  }
2699
2706
  return null;
2700
- }, gt = function(e) {
2707
+ }, mt = function(e) {
2701
2708
  var r = e && !e.advancedFraudSignals ? "?advancedFraudSignals=false" : "", n = document.createElement("script");
2702
- n.src = "".concat(St).concat(r);
2709
+ n.src = "".concat(Ut).concat(r);
2703
2710
  var i = document.head || document.body;
2704
2711
  if (!i)
2705
2712
  throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
2706
2713
  return i.appendChild(n), n;
2707
- }, oi = function(e, r) {
2714
+ }, fi = function(e, r) {
2708
2715
  !e || !e._registerWrapper || e._registerWrapper({
2709
2716
  name: "stripe-js",
2710
2717
  version: "2.4.0",
2711
2718
  startTime: r
2712
2719
  });
2713
- }, me = null, Pe = null, Ce = null, si = function(e) {
2720
+ }, de = null, Pe = null, Me = null, di = function(e) {
2714
2721
  return function() {
2715
2722
  e(new Error("Failed to load Stripe.js"));
2716
2723
  };
2717
- }, li = function(e, r) {
2724
+ }, mi = function(e, r) {
2718
2725
  return function() {
2719
2726
  window.Stripe ? e(window.Stripe) : r(new Error("Stripe.js not available"));
2720
2727
  };
2721
- }, ci = function(e) {
2722
- return me !== null ? me : (me = new Promise(function(r, n) {
2728
+ }, gi = function(e) {
2729
+ return de !== null ? de : (de = new Promise(function(r, n) {
2723
2730
  if (typeof window > "u" || typeof document > "u") {
2724
2731
  r(null);
2725
2732
  return;
2726
2733
  }
2727
- if (window.Stripe && e && console.warn(mt), window.Stripe) {
2734
+ if (window.Stripe && e && console.warn(dt), window.Stripe) {
2728
2735
  r(window.Stripe);
2729
2736
  return;
2730
2737
  }
2731
2738
  try {
2732
- var i = ii();
2739
+ var i = ui();
2733
2740
  if (i && e)
2734
- console.warn(mt);
2741
+ console.warn(dt);
2735
2742
  else if (!i)
2736
- i = gt(e);
2737
- else if (i && Ce !== null && Pe !== null) {
2743
+ i = mt(e);
2744
+ else if (i && Me !== null && Pe !== null) {
2738
2745
  var o;
2739
- i.removeEventListener("load", Ce), i.removeEventListener("error", Pe), (o = i.parentNode) === null || o === void 0 || o.removeChild(i), i = gt(e);
2746
+ i.removeEventListener("load", Me), i.removeEventListener("error", Pe), (o = i.parentNode) === null || o === void 0 || o.removeChild(i), i = mt(e);
2740
2747
  }
2741
- Ce = li(r, n), Pe = si(n), i.addEventListener("load", Ce), i.addEventListener("error", Pe);
2748
+ Me = mi(r, n), Pe = di(n), i.addEventListener("load", Me), i.addEventListener("error", Pe);
2742
2749
  } catch (s) {
2743
2750
  n(s);
2744
2751
  return;
2745
2752
  }
2746
- }), me.catch(function(r) {
2747
- return me = null, Promise.reject(r);
2753
+ }), de.catch(function(r) {
2754
+ return de = null, Promise.reject(r);
2748
2755
  }));
2749
- }, ai = function(e, r, n) {
2756
+ }, pi = function(e, r, n) {
2750
2757
  if (e === null)
2751
2758
  return null;
2752
2759
  var i = e.apply(void 0, r);
2753
- return oi(i, n), i;
2754
- }, ge, Ot = !1, Lt = function() {
2755
- return ge || (ge = ci(null).catch(function(e) {
2756
- return ge = null, Promise.reject(e);
2757
- }), ge);
2760
+ return fi(i, n), i;
2761
+ }, me, St = !1, Ot = function() {
2762
+ return me || (me = gi(null).catch(function(e) {
2763
+ return me = null, Promise.reject(e);
2764
+ }), me);
2758
2765
  };
2759
2766
  Promise.resolve().then(function() {
2760
- return Lt();
2767
+ return Ot();
2761
2768
  }).catch(function(t) {
2762
- Ot || console.warn(t);
2769
+ St || console.warn(t);
2763
2770
  });
2764
- var ui = function() {
2771
+ var _i = function() {
2765
2772
  for (var e = arguments.length, r = new Array(e), n = 0; n < e; n++)
2766
2773
  r[n] = arguments[n];
2767
- Ot = !0;
2774
+ St = !0;
2768
2775
  var i = Date.now();
2769
- return Lt().then(function(o) {
2770
- return ai(o, r, i);
2776
+ return Ot().then(function(o) {
2777
+ return pi(o, r, i);
2771
2778
  });
2772
2779
  };
2773
- function fi(t) {
2780
+ function hi(t) {
2774
2781
  F(t, "svelte-1xe711j", ".rcb-header-layout.svelte-1xe711j{display:flex;justify-content:space-between;align-items:center;width:100%;font-size:24px;margin:0;font-weight:500}");
2775
2782
  }
2776
- function di(t) {
2783
+ function Ai(t) {
2777
2784
  let e, r;
2778
2785
  const n = (
2779
2786
  /*#slots*/
@@ -2824,12 +2831,12 @@ function di(t) {
2824
2831
  }
2825
2832
  };
2826
2833
  }
2827
- function mi(t) {
2834
+ function Ei(t) {
2828
2835
  let e, r;
2829
2836
  return e = new ue({
2830
2837
  props: {
2831
2838
  as: "header",
2832
- $$slots: { default: [di] },
2839
+ $$slots: { default: [Ai] },
2833
2840
  $$scope: { ctx: t }
2834
2841
  }
2835
2842
  }), {
@@ -2855,23 +2862,23 @@ function mi(t) {
2855
2862
  }
2856
2863
  };
2857
2864
  }
2858
- function gi(t, e, r) {
2865
+ function bi(t, e, r) {
2859
2866
  let { $$slots: n = {}, $$scope: i } = e;
2860
2867
  return t.$$set = (o) => {
2861
2868
  "$$scope" in o && r(1, i = o.$$scope);
2862
2869
  }, [n, i];
2863
2870
  }
2864
- class Xe extends U {
2871
+ class Xe extends R {
2865
2872
  constructor(e) {
2866
- super(), N(this, e, gi, mi, T, {}, fi);
2873
+ super(), N(this, e, bi, Ei, T, {}, hi);
2867
2874
  }
2868
2875
  }
2869
- const pi = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18%208H17V6C17%203.24%2014.76%201%2012%201C9.24%201%207%203.24%207%206V8H6C4.9%208%204%208.9%204%2010V20C4%2021.1%204.9%2022%206%2022H18C19.1%2022%2020%2021.1%2020%2020V10C20%208.9%2019.1%208%2018%208ZM12%2017C10.9%2017%2010%2016.1%2010%2015C10%2013.9%2010.9%2013%2012%2013C13.1%2013%2014%2013.9%2014%2015C14%2016.1%2013.1%2017%2012%2017ZM15.1%208H8.9V6C8.9%204.29%2010.29%202.9%2012%202.9C13.71%202.9%2015.1%204.29%2015.1%206V8Z'%20fill='%2311D483'/%3e%3c/svg%3e";
2870
- function _i(t) {
2876
+ const Ii = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M18%208H17V6C17%203.24%2014.76%201%2012%201C9.24%201%207%203.24%207%206V8H6C4.9%208%204%208.9%204%2010V20C4%2021.1%204.9%2022%206%2022H18C19.1%2022%2020%2021.1%2020%2020V10C20%208.9%2019.1%208%2018%208ZM12%2017C10.9%2017%2010%2016.1%2010%2015C10%2013.9%2010.9%2013%2012%2013C13.1%2013%2014%2013.9%2014%2015C14%2016.1%2013.1%2017%2012%2017ZM15.1%208H8.9V6C8.9%204.29%2010.29%202.9%2012%202.9C13.71%202.9%2015.1%204.29%2015.1%206V8Z'%20fill='%2311D483'/%3e%3c/svg%3e";
2877
+ function wi(t) {
2871
2878
  let e, r;
2872
2879
  return {
2873
2880
  c() {
2874
- e = k("img"), ee(e.src, r = pi) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon");
2881
+ e = k("img"), ee(e.src, r = Ii) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon");
2875
2882
  },
2876
2883
  m(n, i) {
2877
2884
  p(n, e, i);
@@ -2884,12 +2891,12 @@ function _i(t) {
2884
2891
  }
2885
2892
  };
2886
2893
  }
2887
- class Ai extends U {
2894
+ class ki extends R {
2888
2895
  constructor(e) {
2889
- super(), N(this, e, null, _i, T, {});
2896
+ super(), N(this, e, null, wi, T, {});
2890
2897
  }
2891
2898
  }
2892
- const _e = {
2899
+ const pe = {
2893
2900
  error: "#f2545b",
2894
2901
  warning: "#f4e971",
2895
2902
  focus: "#000080",
@@ -2898,7 +2905,7 @@ const _e = {
2898
2905
  "grey-ui-dark": "#dfdfdf",
2899
2906
  white: "#ffffff"
2900
2907
  };
2901
- function hi(t) {
2908
+ function yi(t) {
2902
2909
  F(t, "svelte-rjmul6", `.processing.svelte-rjmul6{width:12px;aspect-ratio:1;border-radius:50%;animation:svelte-rjmul6-l5 1.5s infinite linear}@keyframes svelte-rjmul6-l5{0%{box-shadow:20px 0 #fff2,
2903
2910
  -20px 0 #fff2;background:#fff2}25%{box-shadow:20px 0 #fff2,
2904
2911
  -20px 0 #ffff;background:#fff2}50%{box-shadow:20px 0 #fff2,
@@ -2906,7 +2913,7 @@ function hi(t) {
2906
2913
  -20px 0 #fff2;background:#fff2}100%{box-shadow:20px 0 #fff2,
2907
2914
  -20px 0 #fff2;background:#fff2}}`);
2908
2915
  }
2909
- function Ei(t) {
2916
+ function vi(t) {
2910
2917
  let e;
2911
2918
  return {
2912
2919
  c() {
@@ -2923,15 +2930,15 @@ function Ei(t) {
2923
2930
  }
2924
2931
  };
2925
2932
  }
2926
- class Ft extends U {
2933
+ class Lt extends R {
2927
2934
  constructor(e) {
2928
- super(), N(this, e, null, Ei, T, {}, hi);
2935
+ super(), N(this, e, null, vi, T, {}, yi);
2929
2936
  }
2930
2937
  }
2931
- function bi(t) {
2938
+ function $i(t) {
2932
2939
  F(t, "svelte-1wxt892", ".rcb-stripe-elements-container.svelte-1wxt892{width:100%;margin-top:32px;margin-bottom:24px}");
2933
2940
  }
2934
- function Ii(t) {
2941
+ function Bi(t) {
2935
2942
  let e, r;
2936
2943
  return e = new We({}), {
2937
2944
  c() {
@@ -2952,7 +2959,7 @@ function Ii(t) {
2952
2959
  }
2953
2960
  };
2954
2961
  }
2955
- function wi(t) {
2962
+ function Di(t) {
2956
2963
  let e, r, n, i, o, s;
2957
2964
  function l(a) {
2958
2965
  t[9](a);
@@ -2973,17 +2980,17 @@ function wi(t) {
2973
2980
  fontSizeBase: "16px",
2974
2981
  fontSizeSm: "16px",
2975
2982
  spacingGridRow: "16px",
2976
- colorText: _e["grey-text-dark"],
2983
+ colorText: pe["grey-text-dark"],
2977
2984
  focusBoxShadow: "none",
2978
- colorDanger: _e.error
2985
+ colorDanger: pe.error
2979
2986
  },
2980
2987
  rules: {
2981
2988
  ".Input": {
2982
2989
  boxShadow: "none",
2983
- border: `2px solid ${_e["grey-ui-dark"]}`
2990
+ border: `2px solid ${pe["grey-ui-dark"]}`
2984
2991
  },
2985
2992
  ".Input:focus": {
2986
- border: `2px solid ${_e.focus}`,
2993
+ border: `2px solid ${pe.focus}`,
2987
2994
  outline: "none"
2988
2995
  },
2989
2996
  ".Label": {
@@ -2993,18 +3000,18 @@ function wi(t) {
2993
3000
  },
2994
3001
  ".Input--invalid": { boxShadow: "none" }
2995
3002
  },
2996
- $$slots: { default: [Pi] },
3003
+ $$slots: { default: [Si] },
2997
3004
  $$scope: { ctx: t }
2998
3005
  };
2999
3006
  return (
3000
3007
  /*elements*/
3001
3008
  t[2] !== void 0 && (c.elements = /*elements*/
3002
- t[2]), r = new ni({ props: c }), Re.push(() => vn(r, "elements", l)), {
3009
+ t[2]), r = new ci({ props: c }), Re.push(() => Mn(r, "elements", l)), {
3003
3010
  c() {
3004
3011
  e = k("form"), w(r.$$.fragment);
3005
3012
  },
3006
3013
  m(a, u) {
3007
- p(a, e, u), b(r, e, null), i = !0, o || (s = ke(e, "submit", Mt(
3014
+ p(a, e, u), b(r, e, null), i = !0, o || (s = we(e, "submit", Dt(
3008
3015
  /*handleContinue*/
3009
3016
  t[5]
3010
3017
  )), o = !0);
@@ -3016,7 +3023,7 @@ function wi(t) {
3016
3023
  a[3]), u & /*$$scope, processing, onClose*/
3017
3024
  2051 && (m.$$scope = { dirty: u, ctx: a }), !n && u & /*elements*/
3018
3025
  4 && (n = !0, m.elements = /*elements*/
3019
- a[2], wn(() => n = !1)), r.$set(m);
3026
+ a[2], Dn(() => n = !1)), r.$set(m);
3020
3027
  },
3021
3028
  i(a) {
3022
3029
  i || (f(r.$$.fragment, a), i = !0);
@@ -3030,11 +3037,11 @@ function wi(t) {
3030
3037
  }
3031
3038
  );
3032
3039
  }
3033
- function ki(t) {
3040
+ function Ci(t) {
3034
3041
  let e, r, n, i;
3035
- return n = new Ai({}), {
3042
+ return n = new ki({}), {
3036
3043
  c() {
3037
- e = k("div"), e.textContent = "Secure Checkout", r = C(), w(n.$$.fragment);
3044
+ e = k("div"), e.textContent = "Secure Checkout", r = Q(), w(n.$$.fragment);
3038
3045
  },
3039
3046
  m(o, s) {
3040
3047
  p(o, e, s), p(o, r, s), b(n, o, s), i = !0;
@@ -3051,9 +3058,9 @@ function ki(t) {
3051
3058
  }
3052
3059
  };
3053
3060
  }
3054
- function $i(t) {
3061
+ function Pi(t) {
3055
3062
  let e, r, n;
3056
- return r = new Zr({}), {
3063
+ return r = new oi({}), {
3057
3064
  c() {
3058
3065
  e = k("div"), w(r.$$.fragment), _(e, "class", "rcb-stripe-elements-container svelte-1wxt892");
3059
3066
  },
@@ -3072,7 +3079,7 @@ function $i(t) {
3072
3079
  }
3073
3080
  };
3074
3081
  }
3075
- function vi(t) {
3082
+ function Mi(t) {
3076
3083
  let e;
3077
3084
  return {
3078
3085
  c() {
@@ -3088,9 +3095,9 @@ function vi(t) {
3088
3095
  }
3089
3096
  };
3090
3097
  }
3091
- function yi(t) {
3098
+ function Qi(t) {
3092
3099
  let e, r;
3093
- return e = new Ft({}), {
3100
+ return e = new Lt({}), {
3094
3101
  c() {
3095
3102
  w(e.$$.fragment);
3096
3103
  },
@@ -3108,9 +3115,9 @@ function yi(t) {
3108
3115
  }
3109
3116
  };
3110
3117
  }
3111
- function Bi(t) {
3118
+ function Ti(t) {
3112
3119
  let e, r, n, i;
3113
- const o = [yi, vi], s = [];
3120
+ const o = [Qi, Mi], s = [];
3114
3121
  function l(c, a) {
3115
3122
  return (
3116
3123
  /*processing*/
@@ -3141,7 +3148,7 @@ function Bi(t) {
3141
3148
  }
3142
3149
  };
3143
3150
  }
3144
- function Di(t) {
3151
+ function Ni(t) {
3145
3152
  let e;
3146
3153
  return {
3147
3154
  c() {
@@ -3155,25 +3162,25 @@ function Di(t) {
3155
3162
  }
3156
3163
  };
3157
3164
  }
3158
- function Mi(t) {
3165
+ function Ri(t) {
3159
3166
  let e, r, n, i;
3160
- return e = new Ie({
3167
+ return e = new be({
3161
3168
  props: {
3162
3169
  disabled: (
3163
3170
  /*processing*/
3164
3171
  t[0]
3165
3172
  ),
3166
- $$slots: { default: [Bi] },
3173
+ $$slots: { default: [Ti] },
3167
3174
  $$scope: { ctx: t }
3168
3175
  }
3169
- }), n = new Ie({
3176
+ }), n = new be({
3170
3177
  props: {
3171
3178
  disabled: (
3172
3179
  /*processing*/
3173
3180
  t[0]
3174
3181
  ),
3175
3182
  intent: "secondary",
3176
- $$slots: { default: [Di] },
3183
+ $$slots: { default: [Ni] },
3177
3184
  $$scope: { ctx: t }
3178
3185
  }
3179
3186
  }), n.$on("click", function() {
@@ -3183,7 +3190,7 @@ function Mi(t) {
3183
3190
  ) && t[1].apply(this, arguments);
3184
3191
  }), {
3185
3192
  c() {
3186
- w(e.$$.fragment), r = C(), w(n.$$.fragment);
3193
+ w(e.$$.fragment), r = Q(), w(n.$$.fragment);
3187
3194
  },
3188
3195
  m(o, s) {
3189
3196
  b(e, o, s), p(o, r, s), b(n, o, s), i = !0;
@@ -3212,11 +3219,11 @@ function Mi(t) {
3212
3219
  }
3213
3220
  };
3214
3221
  }
3215
- function Qi(t) {
3222
+ function Ui(t) {
3216
3223
  let e, r;
3217
- return e = new ve({
3224
+ return e = new ye({
3218
3225
  props: {
3219
- $$slots: { default: [Mi] },
3226
+ $$slots: { default: [Ri] },
3220
3227
  $$scope: { ctx: t }
3221
3228
  }
3222
3229
  }), {
@@ -3242,26 +3249,26 @@ function Qi(t) {
3242
3249
  }
3243
3250
  };
3244
3251
  }
3245
- function Pi(t) {
3252
+ function Si(t) {
3246
3253
  let e, r, n, i, o, s;
3247
3254
  return e = new Xe({
3248
3255
  props: {
3249
- $$slots: { default: [ki] },
3256
+ $$slots: { default: [Ci] },
3250
3257
  $$scope: { ctx: t }
3251
3258
  }
3252
3259
  }), n = new ue({
3253
3260
  props: {
3254
- $$slots: { default: [$i] },
3261
+ $$slots: { default: [Pi] },
3255
3262
  $$scope: { ctx: t }
3256
3263
  }
3257
3264
  }), o = new ze({
3258
3265
  props: {
3259
- $$slots: { default: [Qi] },
3266
+ $$slots: { default: [Ui] },
3260
3267
  $$scope: { ctx: t }
3261
3268
  }
3262
3269
  }), {
3263
3270
  c() {
3264
- w(e.$$.fragment), r = C(), w(n.$$.fragment), i = C(), w(o.$$.fragment);
3271
+ w(e.$$.fragment), r = Q(), w(n.$$.fragment), i = Q(), w(o.$$.fragment);
3265
3272
  },
3266
3273
  m(l, c) {
3267
3274
  b(e, l, c), p(l, r, c), b(n, l, c), p(l, i, c), b(o, l, c), s = !0;
@@ -3288,9 +3295,9 @@ function Pi(t) {
3288
3295
  }
3289
3296
  };
3290
3297
  }
3291
- function Ci(t) {
3298
+ function Oi(t) {
3292
3299
  let e, r, n, i;
3293
- const o = [wi, Ii], s = [];
3300
+ const o = [Di, Bi], s = [];
3294
3301
  function l(c, a) {
3295
3302
  return (
3296
3303
  /*stripe*/
@@ -3322,17 +3329,17 @@ function Ci(t) {
3322
3329
  }
3323
3330
  };
3324
3331
  }
3325
- function Ti(t, e, r) {
3332
+ function Li(t, e, r) {
3326
3333
  let { onClose: n } = e, { onContinue: i } = e, { onError: o } = e, { paymentInfoCollectionMetadata: s } = e, { processing: l = !1 } = e;
3327
3334
  const c = s.data.client_secret;
3328
3335
  let a = null, u, m;
3329
- Oe(async () => {
3336
+ Se(async () => {
3330
3337
  const E = s.data.publishable_api_key, B = s.data.stripe_account_id;
3331
3338
  if (!E || !B)
3332
3339
  throw new Error("Stripe publishable key or account ID not found");
3333
- r(3, a = await ui(E, { stripeAccount: B }));
3340
+ r(3, a = await _i(E, { stripeAccount: B }));
3334
3341
  });
3335
- const A = async () => {
3342
+ const h = async () => {
3336
3343
  if (l || !a || !m)
3337
3344
  return;
3338
3345
  r(0, l = !0);
@@ -3340,9 +3347,9 @@ function Ti(t, e, r) {
3340
3347
  elements: m,
3341
3348
  redirect: "if_required"
3342
3349
  });
3343
- E.error ? (r(0, l = !1), o(new Y(O.StripeError, E.error.message))) : i();
3350
+ E.error ? (r(0, l = !1), o(new G(O.StripeError, E.error.message))) : i();
3344
3351
  };
3345
- function $(E) {
3352
+ function y(E) {
3346
3353
  u = E, r(2, u);
3347
3354
  }
3348
3355
  return t.$$set = (E) => {
@@ -3356,20 +3363,20 @@ function Ti(t, e, r) {
3356
3363
  u,
3357
3364
  a,
3358
3365
  c,
3359
- A,
3366
+ h,
3360
3367
  i,
3361
3368
  o,
3362
3369
  s,
3363
- $
3370
+ y
3364
3371
  ];
3365
3372
  }
3366
- class Ni extends U {
3373
+ class Fi extends R {
3367
3374
  constructor(e) {
3368
3375
  super(), N(
3369
3376
  this,
3370
3377
  e,
3371
- Ti,
3372
- Ci,
3378
+ Li,
3379
+ Oi,
3373
3380
  T,
3374
3381
  {
3375
3382
  onClose: 1,
@@ -3378,17 +3385,17 @@ class Ni extends U {
3378
3385
  paymentInfoCollectionMetadata: 8,
3379
3386
  processing: 0
3380
3387
  },
3381
- bi
3388
+ $i
3382
3389
  );
3383
3390
  }
3384
3391
  }
3385
- function Ui(t) {
3392
+ function xi(t) {
3386
3393
  return t.trim() === "" ? "You need to provide your email address to continue." : t.match(/^[^@]+@[^@]+\.[^@]+$/) ? null : "Email is not valid. Please provide a valid email address.";
3387
3394
  }
3388
- function Ri(t) {
3395
+ function Yi(t) {
3389
3396
  F(t, "svelte-favd20", "form.svelte-favd20.svelte-favd20{display:flex;flex-direction:column;min-height:100%;flex-grow:1}.form-container.svelte-favd20.svelte-favd20{display:flex;flex-direction:column;width:100%;margin-top:32px;margin-bottom:16px}.form-label.svelte-favd20.svelte-favd20{margin-top:8px;margin-bottom:8px;display:block;font-weight:500;line-height:22px}.form-input.error.svelte-favd20 input.svelte-favd20{border-color:var(--rc-color-error)}.form-error.svelte-favd20.svelte-favd20{margin-top:4px;font-size:16px;line-height:20px;min-height:40px;color:var(--rc-color-error)}input.svelte-favd20.svelte-favd20{width:100%;box-sizing:border-box;padding:8px;border:2px solid var(--rc-color-grey-ui-dark);border-radius:12px;font-size:16px;height:48px;padding:6px 14px}input.svelte-favd20.svelte-favd20:focus{outline:none;border:2px solid var(--rc-color-focus)}");
3390
3397
  }
3391
- function Si(t) {
3398
+ function Gi(t) {
3392
3399
  let e;
3393
3400
  return {
3394
3401
  c() {
@@ -3402,7 +3409,7 @@ function Si(t) {
3402
3409
  }
3403
3410
  };
3404
3411
  }
3405
- function pt(t) {
3412
+ function gt(t) {
3406
3413
  let e, r;
3407
3414
  return {
3408
3415
  c() {
@@ -3412,7 +3419,7 @@ function pt(t) {
3412
3419
  ), _(e, "class", "form-error svelte-favd20");
3413
3420
  },
3414
3421
  m(n, i) {
3415
- p(n, e, i), Q(e, r);
3422
+ p(n, e, i), M(e, r);
3416
3423
  },
3417
3424
  p(n, i) {
3418
3425
  i & /*error*/
@@ -3427,46 +3434,46 @@ function pt(t) {
3427
3434
  }
3428
3435
  };
3429
3436
  }
3430
- function Oi(t) {
3437
+ function Hi(t) {
3431
3438
  let e, r, n, i, o, s, l, c, a, u = (
3432
3439
  /*error*/
3433
- t[2] && pt(t)
3440
+ t[2] && gt(t)
3434
3441
  );
3435
3442
  return {
3436
3443
  c() {
3437
- e = k("div"), r = k("div"), r.innerHTML = '<label for="email">Email</label>', n = C(), i = k("div"), o = k("input"), l = C(), u && u.c(), _(r, "class", "form-label svelte-favd20"), _(o, "name", "email"), _(o, "placeholder", "john@appleseed.com"), _(o, "autocapitalize", "off"), _(o, "class", "svelte-favd20"), _(i, "class", s = "form-input " + /*inputClass*/
3444
+ e = k("div"), r = k("div"), r.innerHTML = '<label for="email">Email</label>', n = Q(), i = k("div"), o = k("input"), l = Q(), u && u.c(), _(r, "class", "form-label svelte-favd20"), _(o, "name", "email"), _(o, "placeholder", "john@appleseed.com"), _(o, "autocapitalize", "off"), _(o, "class", "svelte-favd20"), _(i, "class", s = "form-input " + /*inputClass*/
3438
3445
  t[4] + " svelte-favd20"), _(e, "class", "form-container svelte-favd20");
3439
3446
  },
3440
- m(m, A) {
3441
- p(m, e, A), Q(e, r), Q(e, n), Q(e, i), Q(i, o), lt(
3447
+ m(m, h) {
3448
+ p(m, e, h), M(e, r), M(e, n), M(e, i), M(i, o), st(
3442
3449
  o,
3443
3450
  /*email*/
3444
3451
  t[3]
3445
- ), Q(e, l), u && u.m(e, null), c || (a = ke(
3452
+ ), M(e, l), u && u.m(e, null), c || (a = we(
3446
3453
  o,
3447
3454
  "input",
3448
3455
  /*input_input_handler*/
3449
3456
  t[8]
3450
3457
  ), c = !0);
3451
3458
  },
3452
- p(m, A) {
3453
- A & /*email*/
3459
+ p(m, h) {
3460
+ h & /*email*/
3454
3461
  8 && o.value !== /*email*/
3455
- m[3] && lt(
3462
+ m[3] && st(
3456
3463
  o,
3457
3464
  /*email*/
3458
3465
  m[3]
3459
- ), A & /*inputClass*/
3466
+ ), h & /*inputClass*/
3460
3467
  16 && s !== (s = "form-input " + /*inputClass*/
3461
3468
  m[4] + " svelte-favd20") && _(i, "class", s), /*error*/
3462
- m[2] ? u ? u.p(m, A) : (u = pt(m), u.c(), u.m(e, null)) : u && (u.d(1), u = null);
3469
+ m[2] ? u ? u.p(m, h) : (u = gt(m), u.c(), u.m(e, null)) : u && (u.d(1), u = null);
3463
3470
  },
3464
3471
  d(m) {
3465
3472
  m && g(e), u && u.d(), c = !1, a();
3466
3473
  }
3467
3474
  };
3468
3475
  }
3469
- function Li(t) {
3476
+ function Ki(t) {
3470
3477
  let e;
3471
3478
  return {
3472
3479
  c() {
@@ -3482,9 +3489,9 @@ function Li(t) {
3482
3489
  }
3483
3490
  };
3484
3491
  }
3485
- function Fi(t) {
3492
+ function qi(t) {
3486
3493
  let e, r;
3487
- return e = new Ft({}), {
3494
+ return e = new Lt({}), {
3488
3495
  c() {
3489
3496
  w(e.$$.fragment);
3490
3497
  },
@@ -3502,9 +3509,9 @@ function Fi(t) {
3502
3509
  }
3503
3510
  };
3504
3511
  }
3505
- function xi(t) {
3512
+ function ji(t) {
3506
3513
  let e, r, n, i;
3507
- const o = [Fi, Li], s = [];
3514
+ const o = [qi, Ki], s = [];
3508
3515
  function l(c, a) {
3509
3516
  return (
3510
3517
  /*processing*/
@@ -3535,7 +3542,7 @@ function xi(t) {
3535
3542
  }
3536
3543
  };
3537
3544
  }
3538
- function Gi(t) {
3545
+ function Ji(t) {
3539
3546
  let e;
3540
3547
  return {
3541
3548
  c() {
@@ -3549,25 +3556,25 @@ function Gi(t) {
3549
3556
  }
3550
3557
  };
3551
3558
  }
3552
- function Yi(t) {
3559
+ function Vi(t) {
3553
3560
  let e, r, n, i;
3554
- return e = new Ie({
3561
+ return e = new be({
3555
3562
  props: {
3556
3563
  disabled: (
3557
3564
  /*processing*/
3558
3565
  t[1]
3559
3566
  ),
3560
- $$slots: { default: [xi] },
3567
+ $$slots: { default: [ji] },
3561
3568
  $$scope: { ctx: t }
3562
3569
  }
3563
- }), n = new Ie({
3570
+ }), n = new be({
3564
3571
  props: {
3565
3572
  intent: "secondary",
3566
3573
  disabled: (
3567
3574
  /*processing*/
3568
3575
  t[1]
3569
3576
  ),
3570
- $$slots: { default: [Gi] },
3577
+ $$slots: { default: [Ji] },
3571
3578
  $$scope: { ctx: t }
3572
3579
  }
3573
3580
  }), n.$on("click", function() {
@@ -3577,7 +3584,7 @@ function Yi(t) {
3577
3584
  ) && t[0].apply(this, arguments);
3578
3585
  }), {
3579
3586
  c() {
3580
- w(e.$$.fragment), r = C(), w(n.$$.fragment);
3587
+ w(e.$$.fragment), r = Q(), w(n.$$.fragment);
3581
3588
  },
3582
3589
  m(o, s) {
3583
3590
  b(e, o, s), p(o, r, s), b(n, o, s), i = !0;
@@ -3606,11 +3613,11 @@ function Yi(t) {
3606
3613
  }
3607
3614
  };
3608
3615
  }
3609
- function Hi(t) {
3616
+ function Wi(t) {
3610
3617
  let e, r;
3611
- return e = new ve({
3618
+ return e = new ye({
3612
3619
  props: {
3613
- $$slots: { default: [Yi] },
3620
+ $$slots: { default: [Vi] },
3614
3621
  $$scope: { ctx: t }
3615
3622
  }
3616
3623
  }), {
@@ -3636,40 +3643,40 @@ function Hi(t) {
3636
3643
  }
3637
3644
  };
3638
3645
  }
3639
- function Ki(t) {
3646
+ function zi(t) {
3640
3647
  let e, r, n, i, o, s, l, c, a;
3641
3648
  return r = new Xe({
3642
3649
  props: {
3643
- $$slots: { default: [Si] },
3650
+ $$slots: { default: [Gi] },
3644
3651
  $$scope: { ctx: t }
3645
3652
  }
3646
3653
  }), i = new ue({
3647
3654
  props: {
3648
- $$slots: { default: [Oi] },
3655
+ $$slots: { default: [Hi] },
3649
3656
  $$scope: { ctx: t }
3650
3657
  }
3651
3658
  }), s = new ze({
3652
3659
  props: {
3653
- $$slots: { default: [Hi] },
3660
+ $$slots: { default: [Wi] },
3654
3661
  $$scope: { ctx: t }
3655
3662
  }
3656
3663
  }), {
3657
3664
  c() {
3658
- e = k("form"), w(r.$$.fragment), n = C(), w(i.$$.fragment), o = C(), w(s.$$.fragment), _(e, "class", "svelte-favd20");
3665
+ e = k("form"), w(r.$$.fragment), n = Q(), w(i.$$.fragment), o = Q(), w(s.$$.fragment), _(e, "class", "svelte-favd20");
3659
3666
  },
3660
3667
  m(u, m) {
3661
- p(u, e, m), b(r, e, null), Q(e, n), b(i, e, null), Q(e, o), b(s, e, null), l = !0, c || (a = ke(e, "submit", Mt(
3668
+ p(u, e, m), b(r, e, null), M(e, n), b(i, e, null), M(e, o), b(s, e, null), l = !0, c || (a = we(e, "submit", Dt(
3662
3669
  /*handleContinue*/
3663
3670
  t[5]
3664
3671
  )), c = !0);
3665
3672
  },
3666
3673
  p(u, [m]) {
3667
- const A = {};
3674
+ const h = {};
3668
3675
  m & /*$$scope*/
3669
- 512 && (A.$$scope = { dirty: m, ctx: u }), r.$set(A);
3670
- const $ = {};
3676
+ 512 && (h.$$scope = { dirty: m, ctx: u }), r.$set(h);
3677
+ const y = {};
3671
3678
  m & /*$$scope, error, inputClass, email*/
3672
- 540 && ($.$$scope = { dirty: m, ctx: u }), i.$set($);
3679
+ 540 && (y.$$scope = { dirty: m, ctx: u }), i.$set(y);
3673
3680
  const E = {};
3674
3681
  m & /*$$scope, processing, onClose*/
3675
3682
  515 && (E.$$scope = { dirty: m, ctx: u }), s.$set(E);
@@ -3685,20 +3692,20 @@ function Ki(t) {
3685
3692
  }
3686
3693
  };
3687
3694
  }
3688
- function qi(t, e, r) {
3695
+ function Xi(t, e, r) {
3689
3696
  let n, i, o, { onContinue: s } = e, { onClose: l } = e, { processing: c } = e, { lastError: a } = e;
3690
3697
  const u = async () => {
3691
- const A = Ui(n);
3692
- A ? r(2, i = A) : s({ email: n });
3698
+ const h = xi(n);
3699
+ h ? r(2, i = h) : s({ email: n });
3693
3700
  };
3694
- _n(async () => {
3701
+ wn(async () => {
3695
3702
  r(2, i = (a == null ? void 0 : a.message) ?? "");
3696
3703
  });
3697
3704
  function m() {
3698
3705
  n = this.value, r(3, n);
3699
3706
  }
3700
- return t.$$set = (A) => {
3701
- "onContinue" in A && r(6, s = A.onContinue), "onClose" in A && r(0, l = A.onClose), "processing" in A && r(1, c = A.processing), "lastError" in A && r(7, a = A.lastError);
3707
+ return t.$$set = (h) => {
3708
+ "onContinue" in h && r(6, s = h.onContinue), "onClose" in h && r(0, l = h.onClose), "processing" in h && r(1, c = h.processing), "lastError" in h && r(7, a = h.lastError);
3702
3709
  }, t.$$.update = () => {
3703
3710
  t.$$.dirty & /*error*/
3704
3711
  4 && r(4, o = i ? "error" : "");
@@ -3714,13 +3721,13 @@ function qi(t, e, r) {
3714
3721
  m
3715
3722
  ];
3716
3723
  }
3717
- class ji extends U {
3724
+ class Zi extends R {
3718
3725
  constructor(e) {
3719
3726
  super(), N(
3720
3727
  this,
3721
3728
  e,
3722
- qi,
3723
- Ki,
3729
+ Xi,
3730
+ zi,
3724
3731
  T,
3725
3732
  {
3726
3733
  onContinue: 6,
@@ -3728,14 +3735,14 @@ class ji extends U {
3728
3735
  processing: 1,
3729
3736
  lastError: 7
3730
3737
  },
3731
- Ri
3738
+ Yi
3732
3739
  );
3733
3740
  }
3734
3741
  }
3735
- function Ji(t) {
3742
+ function eo(t) {
3736
3743
  F(t, "svelte-17tslso", ".rcb-modal-backdrop.svelte-17tslso{position:fixed;top:0;left:0;right:0;min-width:100%;width:100vw;width:100dvw;min-height:100%;height:100vh;height:100dvh;background-color:rgba(40, 40, 40, 0.75);display:flex;flex-direction:column;justify-content:space-around;z-index:1000001}");
3737
3744
  }
3738
- function Vi(t) {
3745
+ function to(t) {
3739
3746
  let e, r;
3740
3747
  const n = (
3741
3748
  /*#slots*/
@@ -3786,21 +3793,21 @@ function Vi(t) {
3786
3793
  }
3787
3794
  };
3788
3795
  }
3789
- function Wi(t, e, r) {
3796
+ function no(t, e, r) {
3790
3797
  let { $$slots: n = {}, $$scope: i } = e;
3791
3798
  return t.$$set = (o) => {
3792
3799
  "$$scope" in o && r(0, i = o.$$scope);
3793
3800
  }, [i, n];
3794
3801
  }
3795
- class zi extends U {
3802
+ class ro extends R {
3796
3803
  constructor(e) {
3797
- super(), N(this, e, Wi, Vi, T, {}, Ji);
3804
+ super(), N(this, e, no, to, T, {}, eo);
3798
3805
  }
3799
3806
  }
3800
- function Xi(t) {
3801
- F(t, "svelte-ioxu5d", ".rcb-modal-container.svelte-ioxu5d{width:100%}.rcb-modal-main.svelte-ioxu5d{box-sizing:border-box;border-radius:8px;background-color:var(--rc-color-white);color:var(--rc-color-grey-text-dark);min-height:460px;padding:40px;flex-direction:column;display:flex}.rcb-modal-dark.svelte-ioxu5d{background-color:var(--rc-color-grey-text-dark);color:var(--rc-color-white);min-height:0px}@media screen and (max-width: 960px){.rcb-modal-container.svelte-ioxu5d{width:calc(100% - 32px);min-width:300px;max-width:640px;margin:auto}.rcb-modal-main.svelte-ioxu5d,.rcb-modal-dark.svelte-ioxu5d{min-width:300px;max-width:640px;padding:32px}}");
3807
+ function io(t) {
3808
+ F(t, "svelte-z3twhy", ".rcb-modal-container.svelte-z3twhy{width:100%}.rcb-modal-main.svelte-z3twhy{box-sizing:border-box;border-radius:16px;background-color:var(--rc-color-white);color:var(--rc-color-grey-text-dark);min-height:460px;padding:40px;flex-direction:column;display:flex}.rcb-modal-dark.svelte-z3twhy{background-color:var(--rc-color-grey-text-dark);color:var(--rc-color-white);min-height:0px}@media screen and (max-width: 960px){.rcb-modal-container.svelte-z3twhy{width:calc(100% - 32px);min-width:300px;max-width:640px;margin:auto}.rcb-modal-main.svelte-z3twhy,.rcb-modal-dark.svelte-z3twhy{min-width:300px;max-width:640px;padding:32px}}");
3802
3809
  }
3803
- function Zi(t) {
3810
+ function oo(t) {
3804
3811
  let e, r, n, i;
3805
3812
  const o = (
3806
3813
  /*#slots*/
@@ -3814,11 +3821,11 @@ function Zi(t) {
3814
3821
  );
3815
3822
  return {
3816
3823
  c() {
3817
- e = k("div"), r = k("main"), s && s.c(), _(r, "class", n = Ee(`rcb-modal-main ${/*dark*/
3818
- t[0] ? "rcb-modal-dark" : ""}`) + " svelte-ioxu5d"), _(e, "class", "rcb-modal-container svelte-ioxu5d");
3824
+ e = k("div"), r = k("main"), s && s.c(), _(r, "class", n = Ae(`rcb-modal-main ${/*dark*/
3825
+ t[0] ? "rcb-modal-dark" : ""}`) + " svelte-z3twhy"), _(e, "class", "rcb-modal-container svelte-z3twhy");
3819
3826
  },
3820
3827
  m(l, c) {
3821
- p(l, e, c), Q(e, r), s && s.m(r, null), i = !0;
3828
+ p(l, e, c), M(e, r), s && s.m(r, null), i = !0;
3822
3829
  },
3823
3830
  p(l, [c]) {
3824
3831
  s && s.p && (!i || c & /*$$scope*/
@@ -3840,8 +3847,8 @@ function Zi(t) {
3840
3847
  ),
3841
3848
  null
3842
3849
  ), (!i || c & /*dark*/
3843
- 1 && n !== (n = Ee(`rcb-modal-main ${/*dark*/
3844
- l[0] ? "rcb-modal-dark" : ""}`) + " svelte-ioxu5d")) && _(r, "class", n);
3850
+ 1 && n !== (n = Ae(`rcb-modal-main ${/*dark*/
3851
+ l[0] ? "rcb-modal-dark" : ""}`) + " svelte-z3twhy")) && _(r, "class", n);
3845
3852
  },
3846
3853
  i(l) {
3847
3854
  i || (f(s, l), i = !0);
@@ -3854,18 +3861,18 @@ function Zi(t) {
3854
3861
  }
3855
3862
  };
3856
3863
  }
3857
- function eo(t, e, r) {
3864
+ function so(t, e, r) {
3858
3865
  let { $$slots: n = {}, $$scope: i } = e, { dark: o = !1 } = e;
3859
3866
  return t.$$set = (s) => {
3860
3867
  "dark" in s && r(0, o = s.dark), "$$scope" in s && r(1, i = s.$$scope);
3861
3868
  }, [o, i, n];
3862
3869
  }
3863
- class to extends U {
3870
+ class lo extends R {
3864
3871
  constructor(e) {
3865
- super(), N(this, e, eo, Zi, T, { dark: 0 }, Xi);
3872
+ super(), N(this, e, so, oo, T, { dark: 0 }, io);
3866
3873
  }
3867
3874
  }
3868
- function no(t) {
3875
+ function co(t) {
3869
3876
  let e;
3870
3877
  const r = (
3871
3878
  /*#slots*/
@@ -3916,11 +3923,11 @@ function no(t) {
3916
3923
  }
3917
3924
  };
3918
3925
  }
3919
- function ro(t) {
3926
+ function ao(t) {
3920
3927
  let e, r;
3921
- return e = new zi({
3928
+ return e = new ro({
3922
3929
  props: {
3923
- $$slots: { default: [io] },
3930
+ $$slots: { default: [uo] },
3924
3931
  $$scope: { ctx: t }
3925
3932
  }
3926
3933
  }), {
@@ -3946,7 +3953,7 @@ function ro(t) {
3946
3953
  }
3947
3954
  };
3948
3955
  }
3949
- function io(t) {
3956
+ function uo(t) {
3950
3957
  let e;
3951
3958
  const r = (
3952
3959
  /*#slots*/
@@ -3997,9 +4004,9 @@ function io(t) {
3997
4004
  }
3998
4005
  };
3999
4006
  }
4000
- function oo(t) {
4007
+ function fo(t) {
4001
4008
  let e, r, n, i;
4002
- const o = [ro, no], s = [];
4009
+ const o = [ao, co], s = [];
4003
4010
  function l(c, a) {
4004
4011
  return (
4005
4012
  /*condition*/
@@ -4030,19 +4037,19 @@ function oo(t) {
4030
4037
  }
4031
4038
  };
4032
4039
  }
4033
- function so(t, e, r) {
4040
+ function mo(t, e, r) {
4034
4041
  let { $$slots: n = {}, $$scope: i } = e, { condition: o = !1 } = e;
4035
4042
  return t.$$set = (s) => {
4036
4043
  "condition" in s && r(0, o = s.condition), "$$scope" in s && r(2, i = s.$$scope);
4037
4044
  }, [o, n, i];
4038
4045
  }
4039
- class lo extends U {
4046
+ class go extends R {
4040
4047
  constructor(e) {
4041
- super(), N(this, e, so, oo, T, { condition: 0 });
4048
+ super(), N(this, e, mo, fo, T, { condition: 0 });
4042
4049
  }
4043
4050
  }
4044
- const co = (t) => ({}), _t = (t) => ({});
4045
- function ao(t) {
4051
+ const po = (t) => ({}), pt = (t) => ({});
4052
+ function _o(t) {
4046
4053
  let e, r;
4047
4054
  const n = (
4048
4055
  /*#slots*/
@@ -4052,7 +4059,7 @@ function ao(t) {
4052
4059
  t,
4053
4060
  /*$$scope*/
4054
4061
  t[2],
4055
- _t
4062
+ pt
4056
4063
  ), o = (
4057
4064
  /*#slots*/
4058
4065
  t[1].default
@@ -4065,7 +4072,7 @@ function ao(t) {
4065
4072
  );
4066
4073
  return {
4067
4074
  c() {
4068
- i && i.c(), e = C(), s && s.c();
4075
+ i && i.c(), e = Q(), s && s.c();
4069
4076
  },
4070
4077
  m(l, c) {
4071
4078
  i && i.m(l, c), p(l, e, c), s && s.m(l, c), r = !0;
@@ -4083,12 +4090,12 @@ function ao(t) {
4083
4090
  /*$$scope*/
4084
4091
  l[2],
4085
4092
  c,
4086
- co
4093
+ po
4087
4094
  ) : V(
4088
4095
  /*$$scope*/
4089
4096
  l[2]
4090
4097
  ),
4091
- _t
4098
+ pt
4092
4099
  ), s && s.p && (!r || c & /*$$scope*/
4093
4100
  4) && J(
4094
4101
  s,
@@ -4120,15 +4127,15 @@ function ao(t) {
4120
4127
  }
4121
4128
  };
4122
4129
  }
4123
- function uo(t) {
4130
+ function ho(t) {
4124
4131
  let e, r;
4125
- return e = new to({
4132
+ return e = new lo({
4126
4133
  props: {
4127
4134
  dark: (
4128
4135
  /*dark*/
4129
4136
  t[0]
4130
4137
  ),
4131
- $$slots: { default: [ao] },
4138
+ $$slots: { default: [_o] },
4132
4139
  $$scope: { ctx: t }
4133
4140
  }
4134
4141
  }), {
@@ -4156,53 +4163,54 @@ function uo(t) {
4156
4163
  }
4157
4164
  };
4158
4165
  }
4159
- function fo(t, e, r) {
4166
+ function Ao(t, e, r) {
4160
4167
  let { $$slots: n = {}, $$scope: i } = e, { dark: o = !1 } = e;
4161
4168
  return t.$$set = (s) => {
4162
4169
  "dark" in s && r(0, o = s.dark), "$$scope" in s && r(2, i = s.$$scope);
4163
4170
  }, [o, n, i];
4164
4171
  }
4165
- class xt extends U {
4172
+ class Ft extends R {
4166
4173
  constructor(e) {
4167
- super(), N(this, e, fo, uo, T, { dark: 0 });
4174
+ super(), N(this, e, Ao, ho, T, { dark: 0 });
4168
4175
  }
4169
4176
  }
4170
- const mo = "0.3.4", fe = "https://api.revenuecat.com";
4171
- var Se;
4177
+ const Eo = "0.5.0", bo = "https://api.revenuecat.com";
4178
+ var Ue;
4172
4179
  (function(t) {
4173
4180
  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";
4174
- })(Se || (Se = {}));
4175
- function je(t) {
4181
+ })(Ue || (Ue = {}));
4182
+ function qe(t) {
4176
4183
  return t ? t.startsWith("rcb_sb_") : !1;
4177
4184
  }
4178
- async function oe(t, e, r, n) {
4185
+ async function oe(t, e) {
4186
+ const { apiKey: r, body: n, headers: i, httpConfig: o } = e, l = `${(o == null ? void 0 : o.proxyURL) ?? bo}${t.urlPath()}`;
4179
4187
  try {
4180
- const i = await fetch(t.url(), {
4188
+ const c = await fetch(l, {
4181
4189
  method: t.method,
4182
- headers: _o(e, n),
4183
- body: po(r)
4190
+ headers: yo(r, i, o == null ? void 0 : o.additionalHeaders),
4191
+ body: wo(n)
4184
4192
  });
4185
- return await go(i, t), await i.json();
4186
- } catch (i) {
4187
- throw i instanceof TypeError ? new X(
4188
- Z.NetworkError,
4189
- he.getPublicMessage(Z.NetworkError),
4190
- i.message
4191
- ) : i;
4193
+ return await Io(c, t), await c.json();
4194
+ } catch (c) {
4195
+ throw c instanceof TypeError ? new W(
4196
+ X.NetworkError,
4197
+ he.getPublicMessage(X.NetworkError),
4198
+ c.message
4199
+ ) : c;
4192
4200
  }
4193
4201
  }
4194
- async function go(t, e) {
4202
+ async function Io(t, e) {
4195
4203
  const r = t.status;
4196
- if (r >= Se.INTERNAL_SERVER_ERROR)
4204
+ if (r >= Ue.INTERNAL_SERVER_ERROR)
4197
4205
  Ye(e, r, await t.text());
4198
- else if (r >= Se.BAD_REQUEST) {
4206
+ else if (r >= Ue.BAD_REQUEST) {
4199
4207
  const n = await t.json(), i = n ? JSON.stringify(n) : null, o = n == null ? void 0 : n.code, s = n == null ? void 0 : n.message;
4200
4208
  if (o != null) {
4201
4209
  const l = he.convertCodeToBackendErrorCode(o);
4202
4210
  if (l == null)
4203
4211
  Ye(e, r, i);
4204
4212
  else
4205
- throw X.getForBackendError(
4213
+ throw W.getForBackendError(
4206
4214
  l,
4207
4215
  s
4208
4216
  );
@@ -4211,48 +4219,56 @@ async function go(t, e) {
4211
4219
  }
4212
4220
  }
4213
4221
  function Ye(t, e, r) {
4214
- throw new X(
4215
- Z.UnknownBackendError,
4222
+ throw new W(
4223
+ X.UnknownBackendError,
4216
4224
  `Unknown backend error. Request: ${t.name}. Status code: ${e}. Body: ${r}.`
4217
4225
  );
4218
4226
  }
4219
- function po(t) {
4227
+ function wo(t) {
4220
4228
  return t == null ? null : JSON.stringify(t);
4221
4229
  }
4222
- function _o(t, e) {
4223
- let r = {
4224
- Authorization: `Bearer ${t}`,
4225
- "Content-Type": "application/json",
4226
- Accept: "application/json",
4227
- "X-Platform": "web",
4228
- "X-Version": mo,
4229
- "X-Is-Sandbox": `${je(t)}`
4230
+ const xt = "Authorization", Yt = "Content-Type", Gt = "Accept", Ht = "X-Platform", Kt = "X-Version", qt = "X-Is-Sandbox", ko = /* @__PURE__ */ new Set([
4231
+ xt,
4232
+ Yt,
4233
+ Gt,
4234
+ Ht,
4235
+ Kt,
4236
+ qt
4237
+ ]);
4238
+ function yo(t, e, r) {
4239
+ let n = {
4240
+ [xt]: `Bearer ${t}`,
4241
+ [Yt]: "application/json",
4242
+ [Gt]: "application/json",
4243
+ [Ht]: "web",
4244
+ [Kt]: Eo,
4245
+ [qt]: `${qe(t)}`
4230
4246
  };
4231
- return e != null && (r = { ...r, ...e }), r;
4247
+ return e && (n = { ...n, ...e }), r && (n = { ...r, ...n }), n;
4232
4248
  }
4233
- const Gt = "/v1/subscribers", Le = "/rcbilling/v1";
4234
- class Ao {
4249
+ const jt = "/v1/subscribers", Oe = "/rcbilling/v1";
4250
+ class vo {
4235
4251
  constructor(e) {
4236
4252
  P(this, "appUserId");
4237
4253
  P(this, "method", "GET");
4238
4254
  P(this, "name", "getOfferings");
4239
4255
  this.appUserId = e;
4240
4256
  }
4241
- url() {
4257
+ urlPath() {
4242
4258
  const e = encodeURIComponent(this.appUserId);
4243
- return `${fe}${Gt}/${e}/offerings`;
4259
+ return `${jt}/${e}/offerings`;
4244
4260
  }
4245
4261
  }
4246
- class ho {
4262
+ class $o {
4247
4263
  constructor() {
4248
4264
  P(this, "method", "POST");
4249
4265
  P(this, "name", "subscribe");
4250
4266
  }
4251
- url() {
4252
- return `${fe}${Le}/subscribe`;
4267
+ urlPath() {
4268
+ return `${Oe}/subscribe`;
4253
4269
  }
4254
4270
  }
4255
- class Eo {
4271
+ class Bo {
4256
4272
  constructor(e, r) {
4257
4273
  P(this, "method", "GET");
4258
4274
  P(this, "name", "getProducts");
@@ -4260,70 +4276,84 @@ class Eo {
4260
4276
  P(this, "productIds");
4261
4277
  this.appUserId = e, this.productIds = r;
4262
4278
  }
4263
- url() {
4279
+ urlPath() {
4264
4280
  const e = encodeURIComponent(this.appUserId), r = this.productIds.map(encodeURIComponent).join("&id=");
4265
- return `${fe}${Le}/subscribers/${e}/products?id=${r}`;
4281
+ return `${Oe}/subscribers/${e}/products?id=${r}`;
4266
4282
  }
4267
4283
  }
4268
- class bo {
4284
+ class Do {
4269
4285
  constructor(e) {
4270
4286
  P(this, "method", "GET");
4271
4287
  P(this, "name", "getCustomerInfo");
4272
4288
  P(this, "appUserId");
4273
4289
  this.appUserId = e;
4274
4290
  }
4275
- url() {
4291
+ urlPath() {
4276
4292
  const e = encodeURIComponent(this.appUserId);
4277
- return `${fe}${Gt}/${e}`;
4293
+ return `${jt}/${e}`;
4278
4294
  }
4279
4295
  }
4280
- class Io {
4296
+ class Co {
4281
4297
  constructor() {
4282
4298
  P(this, "method", "GET");
4283
4299
  P(this, "name", "getBrandingInfo");
4284
4300
  }
4285
- url() {
4286
- return `${fe}${Le}/branding`;
4301
+ urlPath() {
4302
+ return `${Oe}/branding`;
4287
4303
  }
4288
4304
  }
4289
- class wo {
4305
+ class Po {
4290
4306
  constructor(e) {
4291
4307
  P(this, "method", "GET");
4292
4308
  P(this, "name", "getCheckoutStatus");
4293
4309
  P(this, "operationSessionId");
4294
4310
  this.operationSessionId = e;
4295
4311
  }
4296
- url() {
4297
- return `${fe}${Le}/checkout/${this.operationSessionId}`;
4312
+ urlPath() {
4313
+ return `${Oe}/checkout/${this.operationSessionId}`;
4298
4314
  }
4299
4315
  }
4300
- class ko {
4301
- constructor(e) {
4316
+ const je = {};
4317
+ class Mo {
4318
+ constructor(e, r = je) {
4302
4319
  P(this, "API_KEY");
4303
- this.API_KEY = e;
4320
+ P(this, "httpConfig");
4321
+ this.API_KEY = e, this.httpConfig = r;
4304
4322
  }
4305
4323
  async getOfferings(e) {
4306
4324
  return await oe(
4307
- new Ao(e),
4308
- this.API_KEY
4325
+ new vo(e),
4326
+ {
4327
+ apiKey: this.API_KEY,
4328
+ httpConfig: this.httpConfig
4329
+ }
4309
4330
  );
4310
4331
  }
4311
4332
  async getCustomerInfo(e) {
4312
4333
  return await oe(
4313
- new bo(e),
4314
- this.API_KEY
4334
+ new Do(e),
4335
+ {
4336
+ apiKey: this.API_KEY,
4337
+ httpConfig: this.httpConfig
4338
+ }
4315
4339
  );
4316
4340
  }
4317
4341
  async getProducts(e, r) {
4318
4342
  return await oe(
4319
- new Eo(e, r),
4320
- this.API_KEY
4343
+ new Bo(e, r),
4344
+ {
4345
+ apiKey: this.API_KEY,
4346
+ httpConfig: this.httpConfig
4347
+ }
4321
4348
  );
4322
4349
  }
4323
4350
  async getBrandingInfo() {
4324
4351
  return await oe(
4325
- new Io(),
4326
- this.API_KEY
4352
+ new Co(),
4353
+ {
4354
+ apiKey: this.API_KEY,
4355
+ httpConfig: this.httpConfig
4356
+ }
4327
4357
  );
4328
4358
  }
4329
4359
  async postSubscribe(e, r, n, i, o) {
@@ -4331,27 +4361,36 @@ class ko {
4331
4361
  app_user_id: e,
4332
4362
  product_id: r,
4333
4363
  email: n,
4334
- presented_offering_identifier: i
4364
+ presented_offering_identifier: i.offeringIdentifier
4335
4365
  };
4336
- return o && o !== "base_option" && (s.offer_id = o), await oe(
4337
- new ho(),
4338
- this.API_KEY,
4339
- s
4366
+ return o && o !== "base_option" && (s.offer_id = o), i.targetingContext && (s.applied_targeting_rule = {
4367
+ rule_id: i.targetingContext.ruleId,
4368
+ revision: i.targetingContext.revision
4369
+ }), await oe(
4370
+ new $o(),
4371
+ {
4372
+ apiKey: this.API_KEY,
4373
+ body: s,
4374
+ httpConfig: this.httpConfig
4375
+ }
4340
4376
  );
4341
4377
  }
4342
4378
  async getCheckoutStatus(e) {
4343
4379
  return await oe(
4344
- new wo(e),
4345
- this.API_KEY
4380
+ new Po(e),
4381
+ {
4382
+ apiKey: this.API_KEY,
4383
+ httpConfig: this.httpConfig
4384
+ }
4346
4385
  );
4347
4386
  }
4348
4387
  }
4349
- const $o = "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";
4350
- function vo(t) {
4388
+ const Qo = "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";
4389
+ function To(t) {
4351
4390
  let e, r;
4352
4391
  return {
4353
4392
  c() {
4354
- e = k("img"), ee(e.src, r = $o) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon");
4393
+ e = k("img"), ee(e.src, r = Qo) || _(e, "src", r), _(e, "alt", "icon"), _(e, "class", "rcb-ui-asset-icon");
4355
4394
  },
4356
4395
  m(n, i) {
4357
4396
  p(n, e, i);
@@ -4364,15 +4403,15 @@ function vo(t) {
4364
4403
  }
4365
4404
  };
4366
4405
  }
4367
- class yo extends U {
4406
+ class No extends R {
4368
4407
  constructor(e) {
4369
- super(), N(this, e, null, vo, T, {});
4408
+ super(), N(this, e, null, To, T, {});
4370
4409
  }
4371
4410
  }
4372
- function Bo(t) {
4411
+ function Ro(t) {
4373
4412
  F(t, "svelte-1rhrjxe", "div.svelte-1rhrjxe{background-color:var(--rc-color-warning);color:var(--rc-color-grey-text-dark);font-size:10px;font-weight:bold;text-transform:uppercase;padding:4px 10px;line-height:10px;border-radius:9px;margin:0px;margin-left:16px}");
4374
4413
  }
4375
- function Do(t) {
4414
+ function Uo(t) {
4376
4415
  let e;
4377
4416
  return {
4378
4417
  c() {
@@ -4389,23 +4428,23 @@ function Do(t) {
4389
4428
  }
4390
4429
  };
4391
4430
  }
4392
- class Mo extends U {
4431
+ class So extends R {
4393
4432
  constructor(e) {
4394
- super(), N(this, e, null, Do, T, {}, Bo);
4433
+ super(), N(this, e, null, Uo, T, {}, Ro);
4395
4434
  }
4396
4435
  }
4397
- function Qo(t) {
4436
+ function Oo(t) {
4398
4437
  F(t, "svelte-1qect5g", `.rcb-ui-container.svelte-1qect5g{color-scheme:none;font-size:16px;line-height:1.5em;font-weight:400;font-family:-apple-system, "system-ui", "Segoe UI", Roboto, Oxygen, Ubuntu,
4399
4438
  Cantarell, "Open Sans", "Helvetica Neue", sans-serif}.rcb-ui-layout.svelte-1qect5g{width:100vw;width:100 dvw;margin-right:auto;display:flex;justify-content:center;align-items:flex-start;position:relative;padding:0px 80px;box-sizing:border-box}.rcb-ui-aside.svelte-1qect5g{margin-right:16px;flex:320px 1 0;max-width:480px}.rcb-ui-main.svelte-1qect5g{flex:480px 1 0;max-width:640px}@media screen and (max-width: 960px){.rcb-ui-layout.svelte-1qect5g{flex-direction:column;align-items:center;justify-content:center;height:100%;min-width:100%}.rcb-ui-aside.svelte-1qect5g{margin-right:0;margin-bottom:16px;min-width:100%;display:flex;flex-direction:column;align-items:center;flex:none;max-width:none}.rcb-ui-main.svelte-1qect5g{flex:none;max-width:none;min-width:100%}}@media screen and (max-width: 960px) and (max-height: 960px){.rcb-ui-layout.svelte-1qect5g{overflow-y:scroll;justify-content:flex-start;padding:16px 0px}}`);
4400
4439
  }
4401
- function At(t) {
4440
+ function _t(t) {
4402
4441
  let e, r, n;
4403
- return r = new xt({
4442
+ return r = new Ft({
4404
4443
  props: {
4405
4444
  dark: !0,
4406
4445
  $$slots: {
4407
- header: [Uo],
4408
- default: [Po]
4446
+ header: [Go],
4447
+ default: [Lo]
4409
4448
  },
4410
4449
  $$scope: { ctx: t }
4411
4450
  }
@@ -4434,7 +4473,7 @@ function At(t) {
4434
4473
  }
4435
4474
  function ht(t) {
4436
4475
  let e, r;
4437
- return e = new Ct({
4476
+ return e = new Mt({
4438
4477
  props: {
4439
4478
  productDetails: (
4440
4479
  /*productDetails*/
@@ -4469,7 +4508,7 @@ function ht(t) {
4469
4508
  }
4470
4509
  };
4471
4510
  }
4472
- function Po(t) {
4511
+ function Lo(t) {
4473
4512
  let e, r, n = (
4474
4513
  /*productDetails*/
4475
4514
  t[2] && /*purchaseOptionToUse*/
@@ -4501,9 +4540,9 @@ function Po(t) {
4501
4540
  }
4502
4541
  };
4503
4542
  }
4504
- function Co(t) {
4543
+ function Fo(t) {
4505
4544
  let e, r;
4506
- return e = new yo({}), {
4545
+ return e = new No({}), {
4507
4546
  c() {
4508
4547
  w(e.$$.fragment);
4509
4548
  },
@@ -4521,9 +4560,9 @@ function Co(t) {
4521
4560
  }
4522
4561
  };
4523
4562
  }
4524
- function To(t) {
4563
+ function xo(t) {
4525
4564
  let e, r;
4526
- return e = new Mo({}), {
4565
+ return e = new So({}), {
4527
4566
  c() {
4528
4567
  w(e.$$.fragment);
4529
4568
  },
@@ -4541,34 +4580,34 @@ function To(t) {
4541
4580
  }
4542
4581
  };
4543
4582
  }
4544
- function No(t) {
4583
+ function Yo(t) {
4545
4584
  let e, r, n, i, o, s, l;
4546
- e = new Ut({
4585
+ e = new Nt({
4547
4586
  props: { brandingInfo: (
4548
4587
  /*brandingInfo*/
4549
4588
  t[3]
4550
4589
  ) }
4551
4590
  });
4552
- const c = [To, Co], a = [];
4553
- function u(m, A) {
4554
- return A & /*purchases*/
4591
+ const c = [xo, Fo], a = [];
4592
+ function u(m, h) {
4593
+ return h & /*purchases*/
4555
4594
  2 && (n = null), n == null && (n = !!/*purchases*/
4556
4595
  m[1].isSandbox()), n ? 0 : 1;
4557
4596
  }
4558
4597
  return i = u(t, -1), o = a[i] = c[i](t), {
4559
4598
  c() {
4560
- w(e.$$.fragment), r = C(), o.c(), s = te();
4599
+ w(e.$$.fragment), r = Q(), o.c(), s = te();
4561
4600
  },
4562
- m(m, A) {
4563
- b(e, m, A), p(m, r, A), a[i].m(m, A), p(m, s, A), l = !0;
4601
+ m(m, h) {
4602
+ b(e, m, h), p(m, r, h), a[i].m(m, h), p(m, s, h), l = !0;
4564
4603
  },
4565
- p(m, A) {
4566
- const $ = {};
4567
- A & /*brandingInfo*/
4568
- 8 && ($.brandingInfo = /*brandingInfo*/
4569
- m[3]), e.$set($);
4604
+ p(m, h) {
4605
+ const y = {};
4606
+ h & /*brandingInfo*/
4607
+ 8 && (y.brandingInfo = /*brandingInfo*/
4608
+ m[3]), e.$set(y);
4570
4609
  let E = i;
4571
- i = u(m, A), i !== E && (H(), d(a[E], 1, 1, () => {
4610
+ i = u(m, h), i !== E && (H(), d(a[E], 1, 1, () => {
4572
4611
  a[E] = null;
4573
4612
  }), K(), o = a[i], o || (o = a[i] = c[i](m), o.c()), f(o, 1), o.m(s.parentNode, s));
4574
4613
  },
@@ -4583,12 +4622,12 @@ function No(t) {
4583
4622
  }
4584
4623
  };
4585
4624
  }
4586
- function Uo(t) {
4625
+ function Go(t) {
4587
4626
  let e, r;
4588
4627
  return e = new Xe({
4589
4628
  props: {
4590
4629
  slot: "header",
4591
- $$slots: { default: [No] },
4630
+ $$slots: { default: [Yo] },
4592
4631
  $$scope: { ctx: t }
4593
4632
  }
4594
4633
  }), {
@@ -4614,9 +4653,9 @@ function Uo(t) {
4614
4653
  }
4615
4654
  };
4616
4655
  }
4617
- function Et(t) {
4656
+ function At(t) {
4618
4657
  let e, r;
4619
- return e = new Ct({
4658
+ return e = new Mt({
4620
4659
  props: {
4621
4660
  productDetails: (
4622
4661
  /*productDetails*/
@@ -4651,7 +4690,7 @@ function Et(t) {
4651
4690
  }
4652
4691
  };
4653
4692
  }
4654
- function bt(t) {
4693
+ function Et(t) {
4655
4694
  let e, r;
4656
4695
  return e = new We({}), {
4657
4696
  c() {
@@ -4671,9 +4710,9 @@ function bt(t) {
4671
4710
  }
4672
4711
  };
4673
4712
  }
4674
- function It(t) {
4713
+ function bt(t) {
4675
4714
  let e, r;
4676
- return e = new ji({
4715
+ return e = new Zi({
4677
4716
  props: {
4678
4717
  onContinue: (
4679
4718
  /*handleContinue*/
@@ -4718,9 +4757,9 @@ function It(t) {
4718
4757
  }
4719
4758
  };
4720
4759
  }
4721
- function wt(t) {
4760
+ function It(t) {
4722
4761
  let e, r;
4723
- return e = new Ni({
4762
+ return e = new Fi({
4724
4763
  props: {
4725
4764
  paymentInfoCollectionMetadata: (
4726
4765
  /*paymentInfoCollectionMetadata*/
@@ -4769,7 +4808,7 @@ function wt(t) {
4769
4808
  }
4770
4809
  };
4771
4810
  }
4772
- function kt(t) {
4811
+ function wt(t) {
4773
4812
  let e, r;
4774
4813
  return e = new We({}), {
4775
4814
  c() {
@@ -4789,10 +4828,10 @@ function kt(t) {
4789
4828
  }
4790
4829
  };
4791
4830
  }
4792
- function $t(t) {
4831
+ function kt(t) {
4793
4832
  var n;
4794
4833
  let e, r;
4795
- return e = new Or({
4834
+ return e = new Hr({
4796
4835
  props: {
4797
4836
  brandingInfo: (
4798
4837
  /*brandingInfo*/
@@ -4800,7 +4839,7 @@ function $t(t) {
4800
4839
  ),
4801
4840
  lastError: (
4802
4841
  /*lastError*/
4803
- t[5] ?? new Y(O.UnknownError, "Unknown error without state set.")
4842
+ t[5] ?? new G(O.UnknownError, "Unknown error without state set.")
4804
4843
  ),
4805
4844
  supportEmail: (
4806
4845
  /*brandingInfo*/
@@ -4825,7 +4864,7 @@ function $t(t) {
4825
4864
  8 && (s.brandingInfo = /*brandingInfo*/
4826
4865
  i[3]), o & /*lastError*/
4827
4866
  32 && (s.lastError = /*lastError*/
4828
- i[5] ?? new Y(O.UnknownError, "Unknown error without state set.")), o & /*brandingInfo*/
4867
+ i[5] ?? new G(O.UnknownError, "Unknown error without state set.")), o & /*brandingInfo*/
4829
4868
  8 && (s.supportEmail = /*brandingInfo*/
4830
4869
  (l = i[3]) == null ? void 0 : l.seller_company_support_email), e.$set(s);
4831
4870
  },
@@ -4840,9 +4879,9 @@ function $t(t) {
4840
4879
  }
4841
4880
  };
4842
4881
  }
4843
- function vt(t) {
4882
+ function yt(t) {
4844
4883
  let e, r;
4845
- return e = new jr({
4884
+ return e = new Zr({
4846
4885
  props: {
4847
4886
  brandingInfo: (
4848
4887
  /*brandingInfo*/
@@ -4877,106 +4916,106 @@ function vt(t) {
4877
4916
  }
4878
4917
  };
4879
4918
  }
4880
- function Ro(t) {
4919
+ function Ho(t) {
4881
4920
  let e, r, n, i, o, s, l, c, a = (
4882
4921
  /*state*/
4883
4922
  t[6] === "present-offer" && /*productDetails*/
4884
4923
  t[2] && /*purchaseOptionToUse*/
4885
- t[8] && Et(t)
4924
+ t[8] && At(t)
4886
4925
  ), u = (
4887
4926
  /*state*/
4888
4927
  t[6] === "present-offer" && !/*productDetails*/
4889
- t[2] && bt()
4928
+ t[2] && Et()
4890
4929
  ), m = (
4891
4930
  /*state*/
4892
4931
  (t[6] === "needs-auth-info" || /*state*/
4893
- t[6] === "processing-auth-info") && It(t)
4894
- ), A = (
4932
+ t[6] === "processing-auth-info") && bt(t)
4933
+ ), h = (
4895
4934
  /*paymentInfoCollectionMetadata*/
4896
4935
  t[4] && /*state*/
4897
4936
  (t[6] === "needs-payment-info" || /*state*/
4898
- t[6] === "polling-purchase-status") && wt(t)
4899
- ), $ = (
4937
+ t[6] === "polling-purchase-status") && It(t)
4938
+ ), y = (
4900
4939
  /*state*/
4901
- t[6] === "loading" && kt()
4940
+ t[6] === "loading" && wt()
4902
4941
  ), E = (
4903
4942
  /*state*/
4904
- t[6] === "error" && $t(t)
4943
+ t[6] === "error" && kt(t)
4905
4944
  ), B = (
4906
4945
  /*state*/
4907
- t[6] === "success" && vt(t)
4946
+ t[6] === "success" && yt(t)
4908
4947
  );
4909
4948
  return {
4910
4949
  c() {
4911
- a && a.c(), e = C(), u && u.c(), r = C(), m && m.c(), n = C(), A && A.c(), i = C(), $ && $.c(), o = C(), E && E.c(), s = C(), B && B.c(), l = te();
4950
+ a && a.c(), e = Q(), u && u.c(), r = Q(), m && m.c(), n = Q(), h && h.c(), i = Q(), y && y.c(), o = Q(), E && E.c(), s = Q(), B && B.c(), l = te();
4912
4951
  },
4913
- m(h, y) {
4914
- a && a.m(h, y), p(h, e, y), u && u.m(h, y), p(h, r, y), m && m.m(h, y), p(h, n, y), A && A.m(h, y), p(h, i, y), $ && $.m(h, y), p(h, o, y), E && E.m(h, y), p(h, s, y), B && B.m(h, y), p(h, l, y), c = !0;
4952
+ m(A, $) {
4953
+ a && a.m(A, $), p(A, e, $), u && u.m(A, $), p(A, r, $), m && m.m(A, $), p(A, n, $), h && h.m(A, $), p(A, i, $), y && y.m(A, $), p(A, o, $), E && E.m(A, $), p(A, s, $), B && B.m(A, $), p(A, l, $), c = !0;
4915
4954
  },
4916
- p(h, y) {
4955
+ p(A, $) {
4917
4956
  /*state*/
4918
- h[6] === "present-offer" && /*productDetails*/
4919
- h[2] && /*purchaseOptionToUse*/
4920
- h[8] ? a ? (a.p(h, y), y & /*state, productDetails*/
4921
- 68 && f(a, 1)) : (a = Et(h), a.c(), f(a, 1), a.m(e.parentNode, e)) : a && (H(), d(a, 1, 1, () => {
4957
+ A[6] === "present-offer" && /*productDetails*/
4958
+ A[2] && /*purchaseOptionToUse*/
4959
+ A[8] ? a ? (a.p(A, $), $ & /*state, productDetails*/
4960
+ 68 && f(a, 1)) : (a = At(A), a.c(), f(a, 1), a.m(e.parentNode, e)) : a && (H(), d(a, 1, 1, () => {
4922
4961
  a = null;
4923
4962
  }), K()), /*state*/
4924
- h[6] === "present-offer" && !/*productDetails*/
4925
- h[2] ? u ? y & /*state, productDetails*/
4926
- 68 && f(u, 1) : (u = bt(), u.c(), f(u, 1), u.m(r.parentNode, r)) : u && (H(), d(u, 1, 1, () => {
4963
+ A[6] === "present-offer" && !/*productDetails*/
4964
+ A[2] ? u ? $ & /*state, productDetails*/
4965
+ 68 && f(u, 1) : (u = Et(), u.c(), f(u, 1), u.m(r.parentNode, r)) : u && (H(), d(u, 1, 1, () => {
4927
4966
  u = null;
4928
4967
  }), K()), /*state*/
4929
- h[6] === "needs-auth-info" || /*state*/
4930
- h[6] === "processing-auth-info" ? m ? (m.p(h, y), y & /*state*/
4931
- 64 && f(m, 1)) : (m = It(h), m.c(), f(m, 1), m.m(n.parentNode, n)) : m && (H(), d(m, 1, 1, () => {
4968
+ A[6] === "needs-auth-info" || /*state*/
4969
+ A[6] === "processing-auth-info" ? m ? (m.p(A, $), $ & /*state*/
4970
+ 64 && f(m, 1)) : (m = bt(A), m.c(), f(m, 1), m.m(n.parentNode, n)) : m && (H(), d(m, 1, 1, () => {
4932
4971
  m = null;
4933
4972
  }), K()), /*paymentInfoCollectionMetadata*/
4934
- h[4] && /*state*/
4935
- (h[6] === "needs-payment-info" || /*state*/
4936
- h[6] === "polling-purchase-status") ? A ? (A.p(h, y), y & /*paymentInfoCollectionMetadata, state*/
4937
- 80 && f(A, 1)) : (A = wt(h), A.c(), f(A, 1), A.m(i.parentNode, i)) : A && (H(), d(A, 1, 1, () => {
4938
- A = null;
4973
+ A[4] && /*state*/
4974
+ (A[6] === "needs-payment-info" || /*state*/
4975
+ A[6] === "polling-purchase-status") ? h ? (h.p(A, $), $ & /*paymentInfoCollectionMetadata, state*/
4976
+ 80 && f(h, 1)) : (h = It(A), h.c(), f(h, 1), h.m(i.parentNode, i)) : h && (H(), d(h, 1, 1, () => {
4977
+ h = null;
4939
4978
  }), K()), /*state*/
4940
- h[6] === "loading" ? $ ? y & /*state*/
4941
- 64 && f($, 1) : ($ = kt(), $.c(), f($, 1), $.m(o.parentNode, o)) : $ && (H(), d($, 1, 1, () => {
4942
- $ = null;
4979
+ A[6] === "loading" ? y ? $ & /*state*/
4980
+ 64 && f(y, 1) : (y = wt(), y.c(), f(y, 1), y.m(o.parentNode, o)) : y && (H(), d(y, 1, 1, () => {
4981
+ y = null;
4943
4982
  }), K()), /*state*/
4944
- h[6] === "error" ? E ? (E.p(h, y), y & /*state*/
4945
- 64 && f(E, 1)) : (E = $t(h), E.c(), f(E, 1), E.m(s.parentNode, s)) : E && (H(), d(E, 1, 1, () => {
4983
+ A[6] === "error" ? E ? (E.p(A, $), $ & /*state*/
4984
+ 64 && f(E, 1)) : (E = kt(A), E.c(), f(E, 1), E.m(s.parentNode, s)) : E && (H(), d(E, 1, 1, () => {
4946
4985
  E = null;
4947
4986
  }), K()), /*state*/
4948
- h[6] === "success" ? B ? (B.p(h, y), y & /*state*/
4949
- 64 && f(B, 1)) : (B = vt(h), B.c(), f(B, 1), B.m(l.parentNode, l)) : B && (H(), d(B, 1, 1, () => {
4987
+ A[6] === "success" ? B ? (B.p(A, $), $ & /*state*/
4988
+ 64 && f(B, 1)) : (B = yt(A), B.c(), f(B, 1), B.m(l.parentNode, l)) : B && (H(), d(B, 1, 1, () => {
4950
4989
  B = null;
4951
4990
  }), K());
4952
4991
  },
4953
- i(h) {
4954
- c || (f(a), f(u), f(m), f(A), f($), f(E), f(B), c = !0);
4992
+ i(A) {
4993
+ c || (f(a), f(u), f(m), f(h), f(y), f(E), f(B), c = !0);
4955
4994
  },
4956
- o(h) {
4957
- d(a), d(u), d(m), d(A), d($), d(E), d(B), c = !1;
4995
+ o(A) {
4996
+ d(a), d(u), d(m), d(h), d(y), d(E), d(B), c = !1;
4958
4997
  },
4959
- d(h) {
4960
- h && (g(e), g(r), g(n), g(i), g(o), g(s), g(l)), a && a.d(h), u && u.d(h), m && m.d(h), A && A.d(h), $ && $.d(h), E && E.d(h), B && B.d(h);
4998
+ d(A) {
4999
+ A && (g(e), g(r), g(n), g(i), g(o), g(s), g(l)), a && a.d(A), u && u.d(A), m && m.d(A), h && h.d(A), y && y.d(A), E && E.d(A), B && B.d(A);
4961
5000
  }
4962
5001
  };
4963
5002
  }
4964
- function So(t) {
5003
+ function Ko(t) {
4965
5004
  let e, r = (
4966
5005
  /*statesWhereOfferDetailsAreShown*/
4967
5006
  t[9].includes(
4968
5007
  /*state*/
4969
5008
  t[6]
4970
5009
  )
4971
- ), n, i, o, s, l = r && At(t);
4972
- return o = new xt({
5010
+ ), n, i, o, s, l = r && _t(t);
5011
+ return o = new Ft({
4973
5012
  props: {
4974
- $$slots: { default: [Ro] },
5013
+ $$slots: { default: [Ho] },
4975
5014
  $$scope: { ctx: t }
4976
5015
  }
4977
5016
  }), {
4978
5017
  c() {
4979
- e = k("div"), l && l.c(), n = C(), i = k("div"), w(o.$$.fragment), _(i, "class", "rcb-ui-main svelte-1qect5g"), _(e, "class", "rcb-ui-layout svelte-1qect5g"), _(
5018
+ e = k("div"), l && l.c(), n = Q(), i = k("div"), w(o.$$.fragment), _(i, "class", "rcb-ui-main svelte-1qect5g"), _(e, "class", "rcb-ui-layout svelte-1qect5g"), _(
4980
5019
  e,
4981
5020
  "style",
4982
5021
  /*colorVariables*/
@@ -4984,7 +5023,7 @@ function So(t) {
4984
5023
  );
4985
5024
  },
4986
5025
  m(c, a) {
4987
- p(c, e, a), l && l.m(e, null), Q(e, n), Q(e, i), b(o, i, null), s = !0;
5026
+ p(c, e, a), l && l.m(e, null), M(e, n), M(e, i), b(o, i, null), s = !0;
4988
5027
  },
4989
5028
  p(c, a) {
4990
5029
  a & /*state*/
@@ -4993,7 +5032,7 @@ function So(t) {
4993
5032
  /*state*/
4994
5033
  c[6]
4995
5034
  )), r ? l ? (l.p(c, a), a & /*state*/
4996
- 64 && f(l, 1)) : (l = At(c), l.c(), f(l, 1), l.m(e, n)) : l && (H(), d(l, 1, 1, () => {
5035
+ 64 && f(l, 1)) : (l = _t(c), l.c(), f(l, 1), l.m(e, n)) : l && (H(), d(l, 1, 1, () => {
4997
5036
  l = null;
4998
5037
  }), K());
4999
5038
  const u = {};
@@ -5011,15 +5050,15 @@ function So(t) {
5011
5050
  }
5012
5051
  };
5013
5052
  }
5014
- function Oo(t) {
5053
+ function qo(t) {
5015
5054
  let e, r, n;
5016
- return r = new lo({
5055
+ return r = new go({
5017
5056
  props: {
5018
5057
  condition: (
5019
5058
  /*asModal*/
5020
5059
  t[0]
5021
5060
  ),
5022
- $$slots: { default: [So] },
5061
+ $$slots: { default: [Ko] },
5023
5062
  $$scope: { ctx: t }
5024
5063
  }
5025
5064
  }), {
@@ -5047,14 +5086,14 @@ function Oo(t) {
5047
5086
  }
5048
5087
  };
5049
5088
  }
5050
- function Lo(t, e, r) {
5089
+ function jo(t, e, r) {
5051
5090
  var et, tt;
5052
- let { asModal: n = !0 } = e, { customerEmail: i } = e, { appUserId: o } = e, { rcPackage: s } = e, { purchaseOption: l } = e, { onFinished: c } = e, { onError: a } = e, { onClose: u } = e, { purchases: m } = e, { backend: A } = e, { purchaseOperationHelper: $ } = e;
5053
- const E = Object.entries(_e).map(([D, Fe]) => `--rc-color-${D}: ${Fe}`).join("; ");
5054
- let B = null, h = null, y = null, R = null;
5055
- const M = ((et = s == null ? void 0 : s.rcBillingProduct) == null ? void 0 : et.identifier) ?? null, ye = (tt = s == null ? void 0 : s.rcBillingProduct) == null ? void 0 : tt.defaultSubscriptionOption, x = l || ye;
5091
+ let { asModal: n = !0 } = e, { customerEmail: i } = e, { appUserId: o } = e, { rcPackage: s } = e, { purchaseOption: l } = e, { onFinished: c } = e, { onError: a } = e, { onClose: u } = e, { purchases: m } = e, { backend: h } = e, { purchaseOperationHelper: y } = e;
5092
+ const E = Object.entries(pe).map(([D, Le]) => `--rc-color-${D}: ${Le}`).join("; ");
5093
+ let B = null, A = null, $ = null, U = null;
5094
+ const C = ((et = s == null ? void 0 : s.rcBillingProduct) == null ? void 0 : et.identifier) ?? null, ve = (tt = s == null ? void 0 : s.rcBillingProduct) == null ? void 0 : tt.defaultSubscriptionOption, x = l || ve;
5056
5095
  let S = "present-offer";
5057
- const Be = [
5096
+ const $e = [
5058
5097
  "present-offer",
5059
5098
  "needs-auth-info",
5060
5099
  "processing-auth-info",
@@ -5062,46 +5101,46 @@ function Lo(t, e, r) {
5062
5101
  "polling-purchase-status",
5063
5102
  "loading"
5064
5103
  ];
5065
- Oe(async () => {
5066
- if (r(2, B = s.rcBillingProduct), r(3, h = await A.getBrandingInfo()), S === "present-offer") {
5104
+ Se(async () => {
5105
+ if (r(2, B = s.rcBillingProduct), r(3, A = await h.getBrandingInfo()), S === "present-offer") {
5067
5106
  i ? Ze() : r(6, S = "needs-auth-info");
5068
5107
  return;
5069
5108
  }
5070
5109
  });
5071
- const De = () => {
5110
+ const Be = () => {
5072
5111
  u();
5073
5112
  }, Ze = () => {
5074
- if (M === null) {
5075
- de(new Y(O.ErrorSettingUpPurchase, "Product ID was not set before purchase."));
5113
+ if (C === null) {
5114
+ fe(new G(O.ErrorSettingUpPurchase, "Product ID was not set before purchase."));
5076
5115
  return;
5077
5116
  } else
5078
5117
  S === "present-offer" && r(6, S = "loading");
5079
5118
  if (!i) {
5080
- de(new Y(O.MissingEmailError));
5119
+ fe(new G(O.MissingEmailError));
5081
5120
  return;
5082
5121
  }
5083
- $.startPurchase(o, M, x, i, s.rcBillingProduct.presentedOfferingIdentifier).then((D) => {
5122
+ y.startPurchase(o, C, x, i, s.rcBillingProduct.presentedOfferingContext).then((D) => {
5084
5123
  if (D.next_action === "collect_payment_info") {
5085
- r(5, R = null), r(6, S = "needs-payment-info"), r(4, y = D);
5124
+ r(5, U = null), r(6, S = "needs-payment-info"), r(4, $ = D);
5086
5125
  return;
5087
5126
  }
5088
5127
  if (D.next_action === "completed") {
5089
- r(5, R = null), r(6, S = "success");
5128
+ r(5, U = null), r(6, S = "success");
5090
5129
  return;
5091
5130
  }
5092
5131
  }).catch((D) => {
5093
- de(D);
5132
+ fe(D);
5094
5133
  });
5095
- }, Yt = (D) => {
5134
+ }, Jt = (D) => {
5096
5135
  if (S === "needs-auth-info") {
5097
5136
  D && (r(14, i = D.email), r(6, S = "processing-auth-info")), Ze();
5098
5137
  return;
5099
5138
  }
5100
5139
  if (S === "needs-payment-info") {
5101
- r(6, S = "polling-purchase-status"), $.pollCurrentPurchaseForCompletion().then(() => {
5140
+ r(6, S = "polling-purchase-status"), y.pollCurrentPurchaseForCompletion().then(() => {
5102
5141
  r(6, S = "success");
5103
- }).catch((Fe) => {
5104
- de(Fe);
5142
+ }).catch((Le) => {
5143
+ fe(Le);
5105
5144
  });
5106
5145
  return;
5107
5146
  }
@@ -5110,32 +5149,32 @@ function Lo(t, e, r) {
5110
5149
  return;
5111
5150
  }
5112
5151
  r(6, S = "success");
5113
- }, de = (D) => {
5152
+ }, fe = (D) => {
5114
5153
  if (S === "processing-auth-info") {
5115
- r(5, R = D), r(6, S = "needs-auth-info");
5154
+ r(5, U = D), r(6, S = "needs-auth-info");
5116
5155
  return;
5117
5156
  }
5118
- r(5, R = D), r(6, S = "error");
5119
- }, Ht = () => {
5120
- a(R ?? new Y(O.UnknownError, "Unknown error without state set."));
5157
+ r(5, U = D), r(6, S = "error");
5158
+ }, Vt = () => {
5159
+ a(U ?? new G(O.UnknownError, "Unknown error without state set."));
5121
5160
  };
5122
5161
  return t.$$set = (D) => {
5123
- "asModal" in D && r(0, n = D.asModal), "customerEmail" in D && r(14, i = D.customerEmail), "appUserId" in D && r(15, o = D.appUserId), "rcPackage" in D && r(16, s = D.rcPackage), "purchaseOption" in D && r(17, l = D.purchaseOption), "onFinished" in D && r(18, c = D.onFinished), "onError" in D && r(19, a = D.onError), "onClose" in D && r(20, u = D.onClose), "purchases" in D && r(1, m = D.purchases), "backend" in D && r(21, A = D.backend), "purchaseOperationHelper" in D && r(22, $ = D.purchaseOperationHelper);
5162
+ "asModal" in D && r(0, n = D.asModal), "customerEmail" in D && r(14, i = D.customerEmail), "appUserId" in D && r(15, o = D.appUserId), "rcPackage" in D && r(16, s = D.rcPackage), "purchaseOption" in D && r(17, l = D.purchaseOption), "onFinished" in D && r(18, c = D.onFinished), "onError" in D && r(19, a = D.onError), "onClose" in D && r(20, u = D.onClose), "purchases" in D && r(1, m = D.purchases), "backend" in D && r(21, h = D.backend), "purchaseOperationHelper" in D && r(22, y = D.purchaseOperationHelper);
5124
5163
  }, [
5125
5164
  n,
5126
5165
  m,
5127
5166
  B,
5128
- h,
5129
- y,
5130
- R,
5167
+ A,
5168
+ $,
5169
+ U,
5131
5170
  S,
5132
5171
  E,
5133
5172
  x,
5173
+ $e,
5134
5174
  Be,
5135
- De,
5136
- Yt,
5137
- de,
5138
- Ht,
5175
+ Jt,
5176
+ fe,
5177
+ Vt,
5139
5178
  i,
5140
5179
  o,
5141
5180
  s,
@@ -5143,17 +5182,17 @@ function Lo(t, e, r) {
5143
5182
  c,
5144
5183
  a,
5145
5184
  u,
5146
- A,
5147
- $
5185
+ h,
5186
+ y
5148
5187
  ];
5149
5188
  }
5150
- class Fo extends U {
5189
+ class Jo extends R {
5151
5190
  constructor(e) {
5152
5191
  super(), N(
5153
5192
  this,
5154
5193
  e,
5155
- Lo,
5156
- Oo,
5194
+ jo,
5195
+ qo,
5157
5196
  T,
5158
5197
  {
5159
5198
  asModal: 0,
@@ -5168,53 +5207,53 @@ class Fo extends U {
5168
5207
  backend: 21,
5169
5208
  purchaseOperationHelper: 22
5170
5209
  },
5171
- Qo
5210
+ Oo
5172
5211
  );
5173
5212
  }
5174
5213
  }
5175
- function xo(t) {
5214
+ function Vo(t) {
5176
5215
  return t.expires_date == null ? !0 : new Date(t.expires_date) > /* @__PURE__ */ new Date();
5177
5216
  }
5178
- function Go(t, e, r, n) {
5217
+ function Wo(t, e, r, n) {
5179
5218
  const i = e.product_identifier;
5180
5219
  if (i in r)
5181
- return Yo(
5220
+ return zo(
5182
5221
  t,
5183
5222
  e,
5184
5223
  r[i]
5185
5224
  );
5186
5225
  if (i in n)
5187
- return Ho(
5226
+ return Xo(
5188
5227
  t,
5189
5228
  e,
5190
5229
  n[i]
5191
5230
  );
5192
- throw new X(
5193
- Z.CustomerInfoError,
5231
+ throw new W(
5232
+ X.CustomerInfoError,
5194
5233
  "Could not find entitlement product in subscriptions or non-subscriptions."
5195
5234
  );
5196
5235
  }
5197
- function Yo(t, e, r) {
5236
+ function zo(t, e, r) {
5198
5237
  return {
5199
5238
  identifier: t,
5200
- isActive: xo(e),
5201
- willRenew: jo(e, r),
5239
+ isActive: Vo(e),
5240
+ willRenew: ts(e, r),
5202
5241
  store: (r == null ? void 0 : r.store) ?? "unknown",
5203
5242
  latestPurchaseDate: new Date(e.purchase_date),
5204
5243
  originalPurchaseDate: new Date(e.purchase_date),
5205
- expirationDate: Ue(e.expires_date),
5244
+ expirationDate: Ne(e.expires_date),
5206
5245
  productIdentifier: e.product_identifier,
5207
- unsubscribeDetectedAt: Ue(
5246
+ unsubscribeDetectedAt: Ne(
5208
5247
  r == null ? void 0 : r.unsubscribe_detected_at
5209
5248
  ),
5210
- billingIssueDetectedAt: Ue(
5249
+ billingIssueDetectedAt: Ne(
5211
5250
  r == null ? void 0 : r.billing_issues_detected_at
5212
5251
  ),
5213
5252
  isSandbox: (r == null ? void 0 : r.is_sandbox) ?? !1,
5214
5253
  periodType: (r == null ? void 0 : r.period_type) ?? "normal"
5215
5254
  };
5216
5255
  }
5217
- function Ho(t, e, r) {
5256
+ function Xo(t, e, r) {
5218
5257
  return {
5219
5258
  identifier: t,
5220
5259
  isActive: !0,
@@ -5232,10 +5271,10 @@ function Ho(t, e, r) {
5232
5271
  periodType: "normal"
5233
5272
  };
5234
5273
  }
5235
- function Ko(t, e, r) {
5274
+ function Zo(t, e, r) {
5236
5275
  const n = {}, i = {};
5237
5276
  for (const o in t) {
5238
- const s = Go(
5277
+ const s = Wo(
5239
5278
  o,
5240
5279
  t[o],
5241
5280
  e,
@@ -5248,41 +5287,41 @@ function Ko(t, e, r) {
5248
5287
  active: i
5249
5288
  };
5250
5289
  }
5251
- function Ue(t) {
5290
+ function Ne(t) {
5252
5291
  return t == null ? null : new Date(t);
5253
5292
  }
5254
- function qo(t) {
5255
- const e = Vo(t), r = t.subscriber, n = zo(
5293
+ function es(t) {
5294
+ const e = rs(t), r = t.subscriber, n = os(
5256
5295
  r.non_subscriptions
5257
5296
  );
5258
5297
  return {
5259
- entitlements: Ko(
5298
+ entitlements: Zo(
5260
5299
  r.entitlements,
5261
5300
  r.subscriptions,
5262
5301
  n
5263
5302
  ),
5264
5303
  allExpirationDatesByProduct: e,
5265
- allPurchaseDatesByProduct: Jo(
5304
+ allPurchaseDatesByProduct: ns(
5266
5305
  t,
5267
5306
  n
5268
5307
  ),
5269
- activeSubscriptions: Wo(e),
5308
+ activeSubscriptions: is(e),
5270
5309
  managementURL: r.management_url,
5271
5310
  requestDate: new Date(t.request_date),
5272
5311
  firstSeenDate: new Date(r.first_seen),
5273
- originalPurchaseDate: Ue(
5312
+ originalPurchaseDate: Ne(
5274
5313
  r.original_purchase_date
5275
5314
  ),
5276
5315
  originalAppUserId: t.subscriber.original_app_user_id
5277
5316
  };
5278
5317
  }
5279
- function jo(t, e) {
5318
+ function ts(t, e) {
5280
5319
  if (e == null)
5281
5320
  return !1;
5282
5321
  const r = e.store == "promotional", n = t.expires_date == null, i = e.unsubscribe_detected_at != null, o = e.billing_issues_detected_at != null;
5283
5322
  return !(r || n || i || o);
5284
5323
  }
5285
- function Jo(t, e) {
5324
+ function ns(t, e) {
5286
5325
  const r = {};
5287
5326
  for (const n in t.subscriber.subscriptions) {
5288
5327
  const i = t.subscriber.subscriptions[n];
@@ -5296,7 +5335,7 @@ function Jo(t, e) {
5296
5335
  }
5297
5336
  return r;
5298
5337
  }
5299
- function Vo(t) {
5338
+ function rs(t) {
5300
5339
  const e = {};
5301
5340
  for (const r in t.subscriber.subscriptions) {
5302
5341
  const n = t.subscriber.subscriptions[r];
@@ -5306,7 +5345,7 @@ function Vo(t) {
5306
5345
  }
5307
5346
  return e;
5308
5347
  }
5309
- function Wo(t) {
5348
+ function is(t) {
5310
5349
  const e = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Date();
5311
5350
  for (const n in t) {
5312
5351
  const i = t[n];
@@ -5314,7 +5353,7 @@ function Wo(t) {
5314
5353
  }
5315
5354
  return e;
5316
5355
  }
5317
- function zo(t) {
5356
+ function os(t) {
5318
5357
  const e = {};
5319
5358
  for (const r in t) {
5320
5359
  if (t[r].length === 0)
@@ -5324,14 +5363,14 @@ function zo(t) {
5324
5363
  }
5325
5364
  return e;
5326
5365
  }
5327
- function Xo(t) {
5366
+ function ss(t) {
5328
5367
  if (!/^rcb_[a-zA-Z0-9_.-]+$/.test(t))
5329
- throw new X(
5330
- Z.InvalidCredentialsError,
5368
+ throw new W(
5369
+ X.InvalidCredentialsError,
5331
5370
  "Invalid API key. Use your RevenueCat Billing API key."
5332
5371
  );
5333
5372
  }
5334
- function Zo(t) {
5373
+ function ls(t) {
5335
5374
  if ((/* @__PURE__ */ new Set([
5336
5375
  "no_user",
5337
5376
  "null",
@@ -5345,14 +5384,31 @@ function Zo(t) {
5345
5384
  "undefined",
5346
5385
  "unknown"
5347
5386
  ])).has(t) || t.includes("/"))
5348
- throw new X(
5349
- Z.InvalidAppUserIdError,
5387
+ throw new W(
5388
+ X.InvalidAppUserIdError,
5350
5389
  'Provided user id: "' + t + '" is not valid. See https://www.revenuecat.com/docs/customers/user-ids#tips-for-setting-app-user-ids for more information.'
5351
5390
  );
5352
5391
  }
5353
- const z = class z {
5392
+ function cs(t) {
5393
+ if (t != null && t.endsWith("/"))
5394
+ throw new W(
5395
+ X.ConfigurationError,
5396
+ "Invalid proxy URL. The proxy URL should not end with a trailing slash."
5397
+ );
5398
+ }
5399
+ function as(t) {
5400
+ if (t) {
5401
+ for (const e in t)
5402
+ if (ko.has(e))
5403
+ throw new W(
5404
+ X.ConfigurationError,
5405
+ "Invalid additional headers. Some headers are reserved for internal use."
5406
+ );
5407
+ }
5408
+ }
5409
+ const Z = class Z {
5354
5410
  /** @internal */
5355
- constructor(e, r) {
5411
+ constructor(e, r, n = je) {
5356
5412
  /** @internal */
5357
5413
  P(this, "_API_KEY");
5358
5414
  /** @internal */
@@ -5363,24 +5419,29 @@ const z = class z {
5363
5419
  P(this, "purchaseOperationHelper");
5364
5420
  /** @internal */
5365
5421
  P(this, "toOfferings", (e, r) => {
5366
- const n = e.offerings.find(
5367
- (l) => l.identifier === e.current_offering_id
5368
- ) ?? null, i = {};
5369
- r.product_details.forEach((l) => {
5370
- i[l.identifier] = l;
5422
+ const n = {};
5423
+ r.product_details.forEach((s) => {
5424
+ n[s.identifier] = s;
5425
+ });
5426
+ const i = {};
5427
+ e.offerings.forEach((s) => {
5428
+ const l = s.identifier === e.current_offering_id, c = cn(
5429
+ l,
5430
+ s,
5431
+ n,
5432
+ e.targeting
5433
+ );
5434
+ c != null && (i[s.identifier] = c);
5371
5435
  });
5372
- const o = n == null ? null : it(n, i), s = {};
5373
- return e.offerings.forEach((l) => {
5374
- const c = it(l, i);
5375
- c != null && (s[l.identifier] = c);
5376
- }), Object.keys(s).length == 0 && G.debugLog(
5436
+ const o = e.current_offering_id ? i[e.current_offering_id] ?? null : null;
5437
+ return Object.keys(i).length == 0 && Y.debugLog(
5377
5438
  "Empty offerings. Please make sure you've configured offerings correctly in the RevenueCat dashboard and that the products are properly configured."
5378
5439
  ), {
5379
- all: s,
5440
+ all: i,
5380
5441
  current: o
5381
5442
  };
5382
5443
  });
5383
- this._API_KEY = e, this._appUserId = r, je(e) && G.debugLog("Initializing Purchases SDK with sandbox API Key"), this.backend = new ko(this._API_KEY), this.purchaseOperationHelper = new Hn(this.backend);
5444
+ this._API_KEY = e, this._appUserId = r, qe(e) && Y.debugLog("Initializing Purchases SDK with sandbox API Key"), this.backend = new Mo(this._API_KEY, n), this.purchaseOperationHelper = new Wn(this.backend);
5384
5445
  }
5385
5446
  /**
5386
5447
  * Set the log level. Logs of the given level and below will be printed
@@ -5389,7 +5450,7 @@ const z = class z {
5389
5450
  * @param logLevel - LogLevel to set.
5390
5451
  */
5391
5452
  static setLogLevel(e) {
5392
- G.setLogLevel(e);
5453
+ Y.setLogLevel(e);
5393
5454
  }
5394
5455
  /**
5395
5456
  * Get the singleton instance of Purchases. It's preferred to use the instance
@@ -5397,15 +5458,15 @@ const z = class z {
5397
5458
  * @throws {@link UninitializedPurchasesError} if the instance has not been initialized yet.
5398
5459
  */
5399
5460
  static getSharedInstance() {
5400
- if (z.isConfigured())
5401
- return z.instance;
5402
- throw new Yn();
5461
+ if (Z.isConfigured())
5462
+ return Z.instance;
5463
+ throw new Vn();
5403
5464
  }
5404
5465
  /**
5405
5466
  * Returns whether the Purchases SDK is configured or not.
5406
5467
  */
5407
5468
  static isConfigured() {
5408
- return z.instance !== void 0;
5469
+ return Z.instance !== void 0;
5409
5470
  }
5410
5471
  /**
5411
5472
  * Configures the Purchases SDK. This should be called as soon as your app
@@ -5413,12 +5474,13 @@ const z = class z {
5413
5474
  * keep the returned instance around for use throughout your application.
5414
5475
  * @param apiKey - RevenueCat API Key. Can be obtained from the RevenueCat dashboard.
5415
5476
  * @param appUserId - Your unique id for identifying the user.
5477
+ * @param httpConfig - Advanced http configuration to customise the SDK usage {@link HttpConfig}.
5416
5478
  * @throws {@link PurchasesError} if the API key or user id are invalid.
5417
5479
  */
5418
- static configure(e, r) {
5419
- return z.instance !== void 0 && G.warnLog(
5480
+ static configure(e, r, n = je) {
5481
+ return Z.instance !== void 0 && Y.warnLog(
5420
5482
  "Purchases is already initialized. You normally should only configure Purchases once. Creating and returning new instance."
5421
- ), Xo(e), Zo(r), z.instance = new z(e, r), z.getSharedInstance();
5483
+ ), ss(e), ls(r), cs(n.proxyURL), as(n.additionalHeaders), Z.instance = new Z(e, r, n), Z.getSharedInstance();
5422
5484
  }
5423
5485
  /**
5424
5486
  * Fetch the configured offerings for this user. You can configure these
@@ -5483,10 +5545,10 @@ const z = class z {
5483
5545
  "Could not generate a mount point for the billing widget"
5484
5546
  );
5485
5547
  const l = s, c = !i, a = this._appUserId;
5486
- return G.debugLog(
5548
+ return Y.debugLog(
5487
5549
  `Presenting purchase form for package ${r.identifier}`
5488
5550
  ), new Promise((u, m) => {
5489
- new Fo({
5551
+ new Jo({
5490
5552
  target: l,
5491
5553
  props: {
5492
5554
  appUserId: a,
@@ -5494,15 +5556,15 @@ const z = class z {
5494
5556
  purchaseOption: n,
5495
5557
  customerEmail: o,
5496
5558
  onFinished: async () => {
5497
- G.debugLog("Purchase finished"), l.innerHTML = "", u({
5559
+ Y.debugLog("Purchase finished"), l.innerHTML = "", u({
5498
5560
  customerInfo: await this._getCustomerInfoForUserId(a)
5499
5561
  });
5500
5562
  },
5501
5563
  onClose: () => {
5502
- l.innerHTML = "", G.debugLog("Purchase cancelled by user"), m(new X(Z.UserCancelledError));
5564
+ l.innerHTML = "", Y.debugLog("Purchase cancelled by user"), m(new W(X.UserCancelledError));
5503
5565
  },
5504
- onError: (A) => {
5505
- l.innerHTML = "", m(X.getForPurchasesFlowError(A));
5566
+ onError: (h) => {
5567
+ l.innerHTML = "", m(W.getForPurchasesFlowError(h));
5506
5568
  },
5507
5569
  purchases: this,
5508
5570
  backend: this.backend,
@@ -5543,7 +5605,7 @@ const z = class z {
5543
5605
  const i = [];
5544
5606
  e.forEach((o) => {
5545
5607
  n[o] === void 0 && i.push(o);
5546
- }), i.length > 0 && G.debugLog(
5608
+ }), i.length > 0 && Y.debugLog(
5547
5609
  `Could not find product data for product ids:
5548
5610
  ${i.join()}.
5549
5611
  Please check that your product configuration is correct.`
@@ -5553,30 +5615,30 @@ const z = class z {
5553
5615
  * @returns Whether the SDK is using a sandbox API Key.
5554
5616
  */
5555
5617
  isSandbox() {
5556
- return je(this._API_KEY);
5618
+ return qe(this._API_KEY);
5557
5619
  }
5558
5620
  /**
5559
5621
  * Closes the Purchases instance. You should never have to do this normally.
5560
5622
  */
5561
5623
  close() {
5562
- z.instance === this ? z.instance = void 0 : G.warnLog(
5624
+ Z.instance === this ? Z.instance = void 0 : Y.warnLog(
5563
5625
  "Trying to close a Purchases instance that is not the current instance. Ignoring."
5564
5626
  );
5565
5627
  }
5566
5628
  /** @internal */
5567
5629
  async _getCustomerInfoForUserId(e) {
5568
5630
  const r = await this.backend.getCustomerInfo(e);
5569
- return qo(r);
5631
+ return es(r);
5570
5632
  }
5571
5633
  };
5572
5634
  /** @internal */
5573
- P(z, "instance");
5574
- let yt = z;
5635
+ P(Z, "instance");
5636
+ let vt = Z;
5575
5637
  export {
5576
- Z as ErrorCode,
5577
- W as LogLevel,
5578
- zt as PackageType,
5579
- yt as Purchases,
5580
- X as PurchasesError,
5581
- Yn as UninitializedPurchasesError
5638
+ X as ErrorCode,
5639
+ z as LogLevel,
5640
+ nn as PackageType,
5641
+ vt as Purchases,
5642
+ W as PurchasesError,
5643
+ Vn as UninitializedPurchasesError
5582
5644
  };