@revenuecat/purchases-js 1.48.1 → 1.49.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.
@@ -12733,7 +12733,7 @@ var Nu;
12733
12733
  (function(r) {
12734
12734
  r.weekly = "$rc_weekly", r.monthly = "$rc_monthly", r.two_month = "$rc_two_month", r.three_month = "$rc_three_month", r.six_month = "$rc_six_month", r.annual = "$rc_annual", r.lifetime = "$rc_lifetime";
12735
12735
  })(Nu || (Nu = {}));
12736
- const AI = {
12736
+ const FI = {
12737
12737
  /**
12738
12738
  * Creates a string custom variable value.
12739
12739
  * @param value The string value for the custom variable.
@@ -15627,6 +15627,12 @@ function Qw(r, e) {
15627
15627
  }
15628
15628
  Jt(["change", "click"]);
15629
15629
  function $w({
15630
+ brandingInfo: r,
15631
+ termsAndConditionsUrl: e
15632
+ }) {
15633
+ return (e ?? (r != null && r.require_checkout_consent ? r.terms_and_conditions_url : void 0)) || void 0;
15634
+ }
15635
+ function eP({
15630
15636
  brandingInfo: r,
15631
15637
  termsAndConditionsUrl: e,
15632
15638
  productDetails: t
@@ -15672,7 +15678,7 @@ function An() {
15672
15678
  ].join("-");
15673
15679
  }
15674
15680
  const Xr = "sdk_checkout";
15675
- class eP {
15681
+ class rP {
15676
15682
  constructor(e) {
15677
15683
  ee(this, "EVENT_TYPE", "web_billing");
15678
15684
  ee(this, "id");
@@ -15712,7 +15718,7 @@ function T_({
15712
15718
  }
15713
15719
  };
15714
15720
  }
15715
- function rP({
15721
+ function tP({
15716
15722
  errorCode: r,
15717
15723
  errorMessage: e,
15718
15724
  mode: t = Xr
@@ -15836,7 +15842,7 @@ function kl({
15836
15842
  }
15837
15843
  };
15838
15844
  }
15839
- function tP(r, e = Xr) {
15845
+ function nP(r, e = Xr) {
15840
15846
  return {
15841
15847
  eventName: Vr.CheckoutPurchaseSuccessfulDismiss,
15842
15848
  properties: {
@@ -15845,7 +15851,7 @@ function tP(r, e = Xr) {
15845
15851
  }
15846
15852
  };
15847
15853
  }
15848
- function nP(r = Xr) {
15854
+ function aP(r = Xr) {
15849
15855
  return {
15850
15856
  eventName: Vr.CheckoutPurchaseSuccessfulImpression,
15851
15857
  properties: {
@@ -15853,13 +15859,13 @@ function nP(r = Xr) {
15853
15859
  }
15854
15860
  };
15855
15861
  }
15856
- const aP = `<svg width="80" height="80" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
15862
+ const oP = `<svg width="80" height="80" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
15857
15863
  <g transform="scale(0.5)" transform-origin="center">
15858
15864
  <path d="M12 3.5C7.30558 3.5 3.5 7.30558 3.5 12C3.5 16.6944 7.30558 20.5 12 20.5C16.6944 20.5 20.5 16.6944 20.5 12C20.5 11.5858 20.8358 11.25 21.25 11.25C21.6642 11.25 22 11.5858 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C12.4142 2 12.75 2.33579 12.75 2.75C12.75 3.16421 12.4142 3.5 12 3.5Z" fill="currentColor"/>
15859
15865
  </g>
15860
15866
  </svg>`;
15861
- var oP = /* @__PURE__ */ V('<div class="rcb-ui-asset-icon svelte-6k29hu"><!></div>');
15862
- const iP = {
15867
+ var iP = /* @__PURE__ */ V('<div class="rcb-ui-asset-icon svelte-6k29hu"><!></div>');
15868
+ const sP = {
15863
15869
  hash: "svelte-6k29hu",
15864
15870
  code: `
15865
15871
  @-webkit-keyframes svelte-6k29hu-rotating /* Safari and Chrome */ {
@@ -15897,13 +15903,13 @@ const iP = {
15897
15903
  animation: svelte-6k29hu-rotating 2s ease-in-out infinite;}`
15898
15904
  };
15899
15905
  function rs(r, e) {
15900
- ke(r, iP);
15906
+ ke(r, sP);
15901
15907
  const t = X(e, "color", 3, "var(--rc-color-accent)");
15902
- var n = oP(), a = T(n);
15903
- pn(a, () => aP), K(() => Fe(n, `color:${t() ?? ""};`)), x(r, n);
15908
+ var n = iP(), a = T(n);
15909
+ pn(a, () => oP), K(() => Fe(n, `color:${t() ?? ""};`)), x(r, n);
15904
15910
  }
15905
- var sP = /* @__PURE__ */ V('<div class="rcb-modal-loader svelte-rhstd0"><!></div>');
15906
- const lP = {
15911
+ var lP = /* @__PURE__ */ V('<div class="rcb-modal-loader svelte-rhstd0"><!></div>');
15912
+ const cP = {
15907
15913
  hash: "svelte-rhstd0",
15908
15914
  code: `.rcb-modal-loader.svelte-rhstd0 {width:100%;flex-grow:1;display:flex;justify-content:center;align-items:center;}
15909
15915
 
@@ -15911,11 +15917,11 @@ const lP = {
15911
15917
  }`
15912
15918
  };
15913
15919
  function q_(r) {
15914
- ke(r, lP);
15915
- var e = sP(), t = T(e);
15920
+ ke(r, cP);
15921
+ var e = lP(), t = T(e);
15916
15922
  rs(t, {}), x(r, e);
15917
15923
  }
15918
- function cP(r, e) {
15924
+ function uP(r, e) {
15919
15925
  var _, f;
15920
15926
  _e(e, !0);
15921
15927
  const t = () => Be(l, "$brandingAppearanceStore", a), n = () => Be(s, "$translator", a), [a, i] = Ze(), s = He(fr), l = He(jn), c = /* @__PURE__ */ m(() => t() ?? void 0), u = /* @__PURE__ */ m(() => e.priceBreakdown ? n().formatPrice(e.priceBreakdown.totalAmountInMicros, e.priceBreakdown.currency) : null), d = (f = (_ = e.subscriptionOption) == null ? void 0 : _.trial) == null ? void 0 : f.period, p = /* @__PURE__ */ m(() => d ? n().translatePeriod(d.number, d.unit) : null);
@@ -15992,41 +15998,41 @@ function uo(r) {
15992
15998
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
15993
15999
  }, uo(r);
15994
16000
  }
15995
- var M_ = "dahlia", uP = function(e) {
16001
+ var M_ = "dahlia", dP = function(e) {
15996
16002
  return e === 3 ? "v3" : e;
15997
- }, z_ = "https://js.stripe.com", dP = "".concat(z_, "/").concat(M_, "/stripe.js"), pP = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, _P = /^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/, Ju = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", gP = function(e) {
15998
- return pP.test(e) || _P.test(e);
15999
- }, fP = function() {
16003
+ }, z_ = "https://js.stripe.com", pP = "".concat(z_, "/").concat(M_, "/stripe.js"), _P = /^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/, gP = /^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/, Ju = "loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used", fP = function(e) {
16004
+ return _P.test(e) || gP.test(e);
16005
+ }, mP = function() {
16000
16006
  for (var e = document.querySelectorAll('script[src^="'.concat(z_, '"]')), t = 0; t < e.length; t++) {
16001
16007
  var n = e[t];
16002
- if (gP(n.src))
16008
+ if (fP(n.src))
16003
16009
  return n;
16004
16010
  }
16005
16011
  return null;
16006
16012
  }, Qu = function(e) {
16007
16013
  var t = e && !e.advancedFraudSignals ? "?advancedFraudSignals=false" : "", n = document.createElement("script");
16008
- n.src = "".concat(dP).concat(t);
16014
+ n.src = "".concat(pP).concat(t);
16009
16015
  var a = document.head || document.body;
16010
16016
  if (!a)
16011
16017
  throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");
16012
16018
  return a.appendChild(n), n;
16013
- }, mP = function(e, t) {
16019
+ }, hP = function(e, t) {
16014
16020
  !e || !e._registerWrapper || e._registerWrapper({
16015
16021
  name: "stripe-js",
16016
16022
  version: "9.7.0",
16017
16023
  startTime: t
16018
16024
  });
16019
- }, to = null, ri = null, ti = null, hP = function(e) {
16025
+ }, to = null, ri = null, ti = null, vP = function(e) {
16020
16026
  return function(t) {
16021
16027
  e(new Error("Failed to load Stripe.js", {
16022
16028
  cause: t
16023
16029
  }));
16024
16030
  };
16025
- }, vP = function(e, t) {
16031
+ }, yP = function(e, t) {
16026
16032
  return function() {
16027
16033
  window.Stripe ? e(window.Stripe) : t(new Error("Stripe.js not available"));
16028
16034
  };
16029
- }, yP = function(e) {
16035
+ }, bP = function(e) {
16030
16036
  return to !== null ? to : (to = new Promise(function(t, n) {
16031
16037
  if (typeof window > "u" || typeof document > "u") {
16032
16038
  t(null);
@@ -16037,7 +16043,7 @@ var M_ = "dahlia", uP = function(e) {
16037
16043
  return;
16038
16044
  }
16039
16045
  try {
16040
- var a = fP();
16046
+ var a = mP();
16041
16047
  if (a && e)
16042
16048
  console.warn(Ju);
16043
16049
  else if (!a)
@@ -16046,7 +16052,7 @@ var M_ = "dahlia", uP = function(e) {
16046
16052
  var i;
16047
16053
  a.removeEventListener("load", ti), a.removeEventListener("error", ri), (i = a.parentNode) === null || i === void 0 || i.removeChild(a), a = Qu(e);
16048
16054
  }
16049
- ti = vP(t, n), ri = hP(n), a.addEventListener("load", ti), a.addEventListener("error", ri);
16055
+ ti = yP(t, n), ri = vP(n), a.addEventListener("load", ti), a.addEventListener("error", ri);
16050
16056
  } catch (s) {
16051
16057
  n(s);
16052
16058
  return;
@@ -16054,16 +16060,16 @@ var M_ = "dahlia", uP = function(e) {
16054
16060
  }), to.catch(function(t) {
16055
16061
  return to = null, Promise.reject(t);
16056
16062
  }));
16057
- }, bP = function(e, t, n) {
16063
+ }, kP = function(e, t, n) {
16058
16064
  if (e === null)
16059
16065
  return null;
16060
16066
  var a = t[0];
16061
16067
  if (typeof a != "string")
16062
16068
  throw new Error("Expected publishable key to be of type string, got type ".concat(uo(a), " instead."));
16063
- var i = a.match(/^pk_test/), s = uP(e.version), l = M_;
16069
+ var i = a.match(/^pk_test/), s = dP(e.version), l = M_;
16064
16070
  i && s !== l && console.warn("Stripe.js@".concat(s, " was loaded on the page, but @stripe/stripe-js@").concat("9.7.0", " expected Stripe.js@").concat(l, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
16065
16071
  var c = e.apply(void 0, t);
16066
- return mP(c, n), c;
16072
+ return hP(c, n), c;
16067
16073
  }, $u = function(e) {
16068
16074
  var t = `invalid load parameters; expected object of shape
16069
16075
 
@@ -16083,8 +16089,8 @@ but received
16083
16089
  t[n] = arguments[n];
16084
16090
  wl = !0;
16085
16091
  var a = Date.now();
16086
- return yP(gi).then(function(i) {
16087
- return bP(i, t, a);
16092
+ return bP(gi).then(function(i) {
16093
+ return kP(i, t, a);
16088
16094
  });
16089
16095
  };
16090
16096
  O_.setLoadParameters = function(r) {
@@ -16100,7 +16106,7 @@ O_.setLoadParameters = function(r) {
16100
16106
  throw new Error("You cannot change load parameters after calling loadStripe");
16101
16107
  gi = $u(r);
16102
16108
  };
16103
- const kP = {
16109
+ const wP = {
16104
16110
  error: "#B0171F",
16105
16111
  warning: "#f4e971",
16106
16112
  focus: "#1148B8",
@@ -16116,7 +16122,7 @@ const kP = {
16116
16122
  "grey-ui-light": "rgba(0,0,0,0.1)",
16117
16123
  "input-background": "white",
16118
16124
  background: "white"
16119
- }, wP = {
16125
+ }, PP = {
16120
16126
  error: "#B0171F",
16121
16127
  warning: "#f4e971",
16122
16128
  focus: "#1148B8",
@@ -16132,7 +16138,7 @@ const kP = {
16132
16138
  "grey-ui-light": "rgba(0,0,0,0.1)",
16133
16139
  "input-background": "white",
16134
16140
  background: "#EFF3FA"
16135
- }, PP = {
16141
+ }, xP = {
16136
16142
  error: "#B0171F",
16137
16143
  warning: "#f4e971",
16138
16144
  focus: "#1148B8",
@@ -16153,25 +16159,25 @@ const kP = {
16153
16159
  focus: "color_accent",
16154
16160
  accent: "color_accent",
16155
16161
  primary: "color_buttons_primary"
16156
- }, xP = {
16162
+ }, EP = {
16157
16163
  ...gc,
16158
16164
  "input-background": "color_form_bg",
16159
16165
  background: "color_form_bg"
16160
- }, EP = {
16166
+ }, SP = {
16161
16167
  ...gc,
16162
16168
  "input-background": "color_product_info_bg",
16163
16169
  background: "color_product_info_bg"
16164
- }, SP = {
16170
+ }, IP = {
16165
16171
  ...gc,
16166
16172
  "input-background": "color_page_bg",
16167
16173
  background: "color_page_bg"
16168
16174
  }, N_ = {
16169
16175
  "input-border-radius": "4px",
16170
16176
  "input-button-border-radius": "8px"
16171
- }, IP = {
16177
+ }, CP = {
16172
16178
  "input-border-radius": "0px",
16173
16179
  "input-button-border-radius": "0px"
16174
- }, CP = {
16180
+ }, TP = {
16175
16181
  "input-border-radius": "12px",
16176
16182
  "input-button-border-radius": "9999px"
16177
16183
  }, ed = N_, ko = "-apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif", L_ = "BrandCustomFont", rd = `${L_}, ${ko}`, zt = {
@@ -16347,10 +16353,10 @@ const kP = {
16347
16353
  }) => {
16348
16354
  const a = (s) => (s = s / 255, s <= 0.03928 ? s / 12.92 : Math.pow((s + 0.055) / 1.055, 2.4));
16349
16355
  return 0.2126 * a(r) + 0.7152 * a(e) + 0.0722 * a(t) > n;
16350
- }, ns = 0.37, TP = (r, e = ns) => {
16356
+ }, ns = 0.37, DP = (r, e = ns) => {
16351
16357
  const t = Wa(r);
16352
16358
  return t ? ts({ ...t, luminanceThreshold: e }) : !0;
16353
- }, DP = (r, e = ns) => {
16359
+ }, AP = (r, e = ns) => {
16354
16360
  const t = ts({ ...r, luminanceThreshold: e }) ? "0,0,0" : "255,255,255";
16355
16361
  return {
16356
16362
  "grey-text-dark": `rgb(${t})`,
@@ -16359,7 +16365,7 @@ const kP = {
16359
16365
  "grey-ui-light": `rgba(${t},0.1)`
16360
16366
  };
16361
16367
  };
16362
- function AP(r, e, t) {
16368
+ function FP(r, e, t) {
16363
16369
  const n = Wa(r) || { r: 0, g: 0, b: 0 }, a = Wa(e) || { r: 255, g: 255, b: 255 }, i = Math.round(a.r * t + n.r * (1 - t)), s = Math.round(a.g * t + n.g * (1 - t)), l = Math.round(a.b * t + n.b * (1 - t));
16364
16370
  return `#${Ys(i)}${Ys(s)}${Ys(l)}`;
16365
16371
  }
@@ -16371,12 +16377,12 @@ function td(r, e) {
16371
16377
  ...i,
16372
16378
  luminanceThreshold: ns
16373
16379
  }) ? "#000000" : "#FFFFFF";
16374
- return AP(a, l, n);
16380
+ return FP(a, l, n);
16375
16381
  }
16376
16382
  function Ys(r) {
16377
16383
  return r.toString(16).padStart(2, "0").toUpperCase();
16378
16384
  }
16379
- const FP = (r, e, t, n, a = ns) => {
16385
+ const qP = (r, e, t, n, a = ns) => {
16380
16386
  const i = {
16381
16387
  "grey-text-dark": n["grey-text-dark"],
16382
16388
  "grey-text-light": n["grey-text-light"],
@@ -16386,7 +16392,7 @@ const FP = (r, e, t, n, a = ns) => {
16386
16392
  };
16387
16393
  if (r != null && r.startsWith("#")) {
16388
16394
  const s = Wa(r);
16389
- s !== null && Object.assign(i, DP(s));
16395
+ s !== null && Object.assign(i, AP(s));
16390
16396
  }
16391
16397
  if (t)
16392
16398
  i["primary-text"] = t;
@@ -16395,20 +16401,20 @@ const FP = (r, e, t, n, a = ns) => {
16395
16401
  s !== null && (i["primary-text"] = ts({ ...s, luminanceThreshold: a }) ? "black" : "white");
16396
16402
  }
16397
16403
  return i;
16398
- }, qP = (r) => ({
16404
+ }, MP = (r) => ({
16399
16405
  "primary-hover": td(r, 0.1),
16400
16406
  "primary-pressed": td(r, 0.15)
16401
- }), MP = (r, e) => r || e, zP = (r, e, t) => {
16407
+ }), zP = (r, e) => r || e, OP = (r, e, t) => {
16402
16408
  const n = Object.entries(r).map(([a, i]) => [
16403
16409
  a,
16404
- MP(
16410
+ zP(
16405
16411
  t ? t[i] : null,
16406
16412
  e[a]
16407
16413
  )
16408
16414
  ]);
16409
16415
  return Object.fromEntries(n);
16410
16416
  }, fc = (r, e, t) => {
16411
- const n = zP(
16417
+ const n = OP(
16412
16418
  r,
16413
16419
  e,
16414
16420
  t
@@ -16416,25 +16422,25 @@ const FP = (r, e, t, n, a = ns) => {
16416
16422
  return t ? {
16417
16423
  ...e,
16418
16424
  ...n,
16419
- ...FP(
16425
+ ...qP(
16420
16426
  n.background,
16421
16427
  n.primary,
16422
16428
  t.color_buttons_primary_text,
16423
16429
  e
16424
16430
  ),
16425
- ...qP(n.primary)
16431
+ ...MP(n.primary)
16426
16432
  } : { ...e };
16427
16433
  }, j_ = (r) => fc(
16434
+ SP,
16435
+ PP,
16436
+ r
16437
+ ), B_ = (r) => fc(
16428
16438
  EP,
16429
16439
  wP,
16430
16440
  r
16431
- ), B_ = (r) => fc(
16441
+ ), NP = (r) => fc(
16442
+ IP,
16432
16443
  xP,
16433
- kP,
16434
- r
16435
- ), OP = (r) => fc(
16436
- SP,
16437
- PP,
16438
16444
  r
16439
16445
  ), as = (r) => {
16440
16446
  if (!r)
@@ -16443,9 +16449,9 @@ const FP = (r, e, t, n, a = ns) => {
16443
16449
  case "rounded":
16444
16450
  return N_;
16445
16451
  case "rectangle":
16446
- return IP;
16447
- case "pill":
16448
16452
  return CP;
16453
+ case "pill":
16454
+ return TP;
16449
16455
  default:
16450
16456
  return ed;
16451
16457
  }
@@ -16458,7 +16464,7 @@ const FP = (r, e, t, n, a = ns) => {
16458
16464
  Object.entries(as(r))
16459
16465
  );
16460
16466
  return [e, t].join("; ");
16461
- }, NP = (r) => {
16467
+ }, LP = (r) => {
16462
16468
  const e = Ha(
16463
16469
  "color",
16464
16470
  Object.entries(B_(r))
@@ -16467,16 +16473,16 @@ const FP = (r, e, t, n, a = ns) => {
16467
16473
  Object.entries(as(r))
16468
16474
  );
16469
16475
  return [e, t].join("; ");
16470
- }, LP = (r) => {
16476
+ }, jP = (r) => {
16471
16477
  const e = Ha(
16472
16478
  "color",
16473
- Object.entries(OP(r))
16479
+ Object.entries(NP(r))
16474
16480
  ), t = Ha(
16475
16481
  "shape",
16476
16482
  Object.entries(as(r))
16477
16483
  );
16478
16484
  return [e, t].join("; ");
16479
- }, jP = (r = "", e, t) => Object.entries(e).flatMap(([n, { desktop: a, mobile: i }]) => {
16485
+ }, BP = (r = "", e, t) => Object.entries(e).flatMap(([n, { desktop: a, mobile: i }]) => {
16480
16486
  const s = `normal normal ${a.fontWeight} ${a.fontSize}/${a.lineHeight} ${ko}`, l = `normal normal ${i.fontWeight} ${i.fontSize}/${i.lineHeight} ${ko}`, c = `normal normal ${t == null ? void 0 : t.desktop.font_weight} ${t == null ? void 0 : t.desktop.font_size} ${rd}`, u = `normal normal ${t == null ? void 0 : t.mobile.font_weight} ${t == null ? void 0 : t.mobile.font_size} ${rd}`;
16481
16487
  return [
16482
16488
  `--rc-${r}-${n}-desktop: ${s}`,
@@ -16486,9 +16492,9 @@ const FP = (r, e, t, n, a = ns) => {
16486
16492
  `--rc-${r}-${n}-desktop-font-size: ${a.fontSize}`,
16487
16493
  `--rc-${r}-${n}-mobile-font-size: ${i.fontSize}`
16488
16494
  ];
16489
- }).join("; "), BP = (r = "", e) => Object.entries(e).map(
16495
+ }).join("; "), RP = (r = "", e) => Object.entries(e).map(
16490
16496
  ([t, { mobile: n, desktop: a }]) => `--rc-${r}-${t}-mobile: ${n}; --rc-${r}-${t}-desktop: ${a};`
16491
- ).join(" "), RP = {
16497
+ ).join(" "), UP = {
16492
16498
  outerPaddingTop: {
16493
16499
  mobile: "0.25rem",
16494
16500
  // 4px
@@ -16559,25 +16565,25 @@ class Fn {
16559
16565
  return B_(this.brandingAppearance);
16560
16566
  }
16561
16567
  get formStyleVars() {
16562
- return NP(this.brandingAppearance);
16568
+ return LP(this.brandingAppearance);
16563
16569
  }
16564
16570
  get productInfoStyleVars() {
16565
16571
  return R_(this.brandingAppearance);
16566
16572
  }
16567
16573
  get pageStyleVars() {
16568
- return LP(this.brandingAppearance);
16574
+ return jP(this.brandingAppearance);
16569
16575
  }
16570
16576
  get spacing() {
16571
- return RP;
16577
+ return UP;
16572
16578
  }
16573
16579
  get textStyles() {
16574
16580
  return Pl;
16575
16581
  }
16576
16582
  getTextStyleVars(e) {
16577
- return jP("text", this.textStyles, e);
16583
+ return BP("text", this.textStyles, e);
16578
16584
  }
16579
16585
  get spacingStyleVars() {
16580
- return BP("spacing", this.spacing);
16586
+ return RP("spacing", this.spacing);
16581
16587
  }
16582
16588
  }
16583
16589
  var xl = /* @__PURE__ */ ((r) => (r[r.ErrorLoadingStripe = 0] = "ErrorLoadingStripe", r[r.HandledFormError = 1] = "HandledFormError", r[r.UnhandledFormError = 2] = "UnhandledFormError", r))(xl || {});
@@ -16950,8 +16956,8 @@ ee(pt, "FORM_VALIDATED_CARD_ERROR_CODES", [
16950
16956
  */
16951
16957
  ee(pt, "FULL_ADDRESS_REQUIRED_TAX_COUNTRY_CODES", ["CA", "PR", "IN"]);
16952
16958
  let $e = pt;
16953
- var UP = /* @__PURE__ */ V("<div></div>");
16954
- function VP(r, e) {
16959
+ var VP = /* @__PURE__ */ V("<div></div>");
16960
+ function WP(r, e) {
16955
16961
  _e(e, !0);
16956
16962
  let t = null;
16957
16963
  const n = "payment-element", a = async (s) => {
@@ -16967,11 +16973,11 @@ function VP(r, e) {
16967
16973
  }), Tt(() => {
16968
16974
  t == null || t.destroy(), t = null;
16969
16975
  });
16970
- var i = UP();
16976
+ var i = VP();
16971
16977
  he(i, "id", n), x(r, i), ge();
16972
16978
  }
16973
- var WP = /* @__PURE__ */ V("<div></div>");
16974
- function HP(r, e) {
16979
+ var HP = /* @__PURE__ */ V("<div></div>");
16980
+ function YP(r, e) {
16975
16981
  _e(e, !0);
16976
16982
  let t = null;
16977
16983
  const n = "link-authentication-element", a = async (s) => {
@@ -16986,21 +16992,21 @@ function HP(r, e) {
16986
16992
  }), Tt(() => {
16987
16993
  t == null || t.destroy(), t = null;
16988
16994
  });
16989
- var i = WP();
16995
+ var i = HP();
16990
16996
  he(i, "id", n), x(r, i), ge();
16991
16997
  }
16992
- var YP = /* @__PURE__ */ V('<div class="text-separator svelte-3efq78"><hr class="line svelte-3efq78"/> <span class="text svelte-3efq78"><!></span> <hr class="line svelte-3efq78"/></div>');
16993
- const GP = {
16998
+ var GP = /* @__PURE__ */ V('<div class="text-separator svelte-3efq78"><hr class="line svelte-3efq78"/> <span class="text svelte-3efq78"><!></span> <hr class="line svelte-3efq78"/></div>');
16999
+ const KP = {
16994
17000
  hash: "svelte-3efq78",
16995
17001
  code: `.text-separator.svelte-3efq78 {display:flex;align-items:center;justify-content:center;gap:var(--rc-spacing-gapSmall-mobile);}
16996
17002
 
16997
17003
  @container layout-query-container (width >= 768px) {.text-separator.svelte-3efq78 {gap:var(--rc-spacing-gapSmall-desktop);}
16998
17004
  }.line.svelte-3efq78 {flex:1;height:1px;background-color:var(--rc-color-grey-ui-dark);border:none;}.text.svelte-3efq78 {color:var(--rc-color-grey-text-light);text-transform:uppercase;white-space:nowrap;}`
16999
17005
  };
17000
- function KP(r, e) {
17001
- ke(r, GP);
17006
+ function XP(r, e) {
17007
+ ke(r, KP);
17002
17008
  let t = X(e, "text", 8);
17003
- var n = YP(), a = W(T(n), 2), i = T(a);
17009
+ var n = GP(), a = W(T(n), 2), i = T(a);
17004
17010
  ze(i, {
17005
17011
  size: "caption-default",
17006
17012
  children: (s, l) => {
@@ -17010,13 +17016,13 @@ function KP(r, e) {
17010
17016
  $$slots: { default: !0 }
17011
17017
  }), x(r, n);
17012
17018
  }
17013
- var XP = /* @__PURE__ */ V("<div></div> <!>", 1);
17014
- const ZP = {
17019
+ var ZP = /* @__PURE__ */ V("<div></div> <!>", 1);
17020
+ const JP = {
17015
17021
  hash: "svelte-jy91ia",
17016
17022
  code: ".rcb-express-checkout-hidden.svelte-jy91ia {display:none;}"
17017
17023
  };
17018
17024
  function U_(r, e) {
17019
- _e(e, !0), ke(r, ZP);
17025
+ _e(e, !0), ke(r, JP);
17020
17026
  const t = () => Be(l, "$translator", n), [n, a] = Ze(), i = X(e, "hideCheckoutSeparator", 3, !1), s = X(e, "allowExpressCheckout", 3, !0), l = He(fr);
17021
17027
  let c = null, u = /* @__PURE__ */ re(!1);
17022
17028
  const d = `express-checkout-element-${An()}`, p = async () => {
@@ -17043,14 +17049,14 @@ function U_(r, e) {
17043
17049
  }), Tt(() => {
17044
17050
  c == null || c.destroy(), c = null;
17045
17051
  });
17046
- var k = XP(), h = ce(k);
17052
+ var k = ZP(), h = ce(k);
17047
17053
  let y;
17048
17054
  var b = W(h, 2);
17049
17055
  {
17050
17056
  var v = (P) => {
17051
17057
  {
17052
17058
  let I = /* @__PURE__ */ m(() => t().translate(ue.PaymentEntryPageExpressCheckoutDivider));
17053
- KP(P, {
17059
+ XP(P, {
17054
17060
  get text() {
17055
17061
  return o(I);
17056
17062
  }
@@ -17067,8 +17073,8 @@ function U_(r, e) {
17067
17073
  });
17068
17074
  }), x(r, k), ge(), a();
17069
17075
  }
17070
- var JP = /* @__PURE__ */ V("<div></div>");
17071
- function QP(r, e) {
17076
+ var QP = /* @__PURE__ */ V("<div></div>");
17077
+ function $P(r, e) {
17072
17078
  _e(e, !0);
17073
17079
  let t = null;
17074
17080
  const n = "address-element";
@@ -17088,19 +17094,19 @@ function QP(r, e) {
17088
17094
  }), Tt(() => {
17089
17095
  t == null || t.destroy(), t = null;
17090
17096
  });
17091
- var u = JP();
17097
+ var u = QP();
17092
17098
  he(u, "id", n), x(r, u), ge();
17093
17099
  }
17094
- var $P = /* @__PURE__ */ V('<div class="rc-elements svelte-kvz7kd"><!> <!> <!> <!></div>');
17095
- const e1 = {
17100
+ var e1 = /* @__PURE__ */ V('<div class="rc-elements svelte-kvz7kd"><!> <!> <!> <!></div>');
17101
+ const r1 = {
17096
17102
  hash: "svelte-kvz7kd",
17097
17103
  code: `.rc-elements.svelte-kvz7kd {display:flex;flex-direction:column;gap:var(--rc-spacing-gapXLarge-mobile);}
17098
17104
 
17099
17105
  @container layout-query-container (width >= 768px) {.rc-elements.svelte-kvz7kd {gap:var(--rc-spacing-gapLarge-desktop);}
17100
17106
  }`
17101
17107
  };
17102
- function r1(r, e) {
17103
- _e(e, !0), ke(r, e1);
17108
+ function t1(r, e) {
17109
+ _e(e, !0), ke(r, r1);
17104
17110
  const t = () => Be(c, "$translator", n), [n, a] = Ze();
17105
17111
  let i = X(e, "stripe", 15, null), s = X(e, "elements", 15, null), l = X(e, "allowExpressCheckout", 3, !0);
17106
17112
  const c = He(fr), u = $e.getStripeLocale(t().bcp47Locale || t().fallbackBcp47Locale);
@@ -17177,7 +17183,7 @@ function r1(r, e) {
17177
17183
  var L = Ee(), Z = ce(L);
17178
17184
  {
17179
17185
  var z = (M) => {
17180
- var A = $P(), U = T(A);
17186
+ var A = e1(), U = T(A);
17181
17187
  U_(U, {
17182
17188
  get elements() {
17183
17189
  return s();
@@ -17200,7 +17206,7 @@ function r1(r, e) {
17200
17206
  var j = W(U, 2);
17201
17207
  {
17202
17208
  var R = (le) => {
17203
- HP(le, {
17209
+ YP(le, {
17204
17210
  get elements() {
17205
17211
  return s();
17206
17212
  },
@@ -17214,7 +17220,7 @@ function r1(r, e) {
17214
17220
  });
17215
17221
  }
17216
17222
  var Q = W(j, 2);
17217
- VP(Q, {
17223
+ WP(Q, {
17218
17224
  get elements() {
17219
17225
  return s();
17220
17226
  },
@@ -17228,7 +17234,7 @@ function r1(r, e) {
17228
17234
  var se = W(Q, 2);
17229
17235
  {
17230
17236
  var te = (le) => {
17231
- QP(le, {
17237
+ $P(le, {
17232
17238
  get elements() {
17233
17239
  return s();
17234
17240
  },
@@ -17252,30 +17258,30 @@ function r1(r, e) {
17252
17258
  }
17253
17259
  x(r, L), ge(), a();
17254
17260
  }
17255
- const t1 = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
17261
+ const n1 = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
17256
17262
  <path fill-rule="evenodd" d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm0 6.5a1.25 1.25 0 100-2.5 1.25 1.25 0 000 2.5zm1.25 4.5a1.25 1.25 0 10-2.5 0v4.5a1.25 1.25 0 102.5 0v-4.5z" clip-rule="evenodd" />
17257
17263
  </svg> `;
17258
- var n1 = /* @__PURE__ */ V('<div class="rcb-ui-asset-icon svelte-a15aei"><!></div>');
17259
- const a1 = {
17264
+ var a1 = /* @__PURE__ */ V('<div class="rcb-ui-asset-icon svelte-a15aei"><!></div>');
17265
+ const o1 = {
17260
17266
  hash: "svelte-a15aei",
17261
17267
  code: ".rcb-ui-asset-icon.svelte-a15aei {display:inline-block;width:1em;height:1em;}"
17262
17268
  };
17263
17269
  function V_(r) {
17264
- ke(r, a1);
17265
- var e = n1(), t = T(e);
17266
- pn(t, () => t1), x(r, e);
17270
+ ke(r, o1);
17271
+ var e = a1(), t = T(e);
17272
+ pn(t, () => n1), x(r, e);
17267
17273
  }
17268
- var o1 = /* @__PURE__ */ V('<div class="rcb-info svelte-jea5iu"><div class="rcb-info-icon-wrapper svelte-jea5iu"><!></div> <div class="rcb-info-content svelte-jea5iu"><div class="rcb-info-title svelte-jea5iu"><!></div> <div class="rcb-info-message svelte-jea5iu"><!></div></div></div>');
17269
- const i1 = {
17274
+ var i1 = /* @__PURE__ */ V('<div class="rcb-info svelte-jea5iu"><div class="rcb-info-icon-wrapper svelte-jea5iu"><!></div> <div class="rcb-info-content svelte-jea5iu"><div class="rcb-info-title svelte-jea5iu"><!></div> <div class="rcb-info-message svelte-jea5iu"><!></div></div></div>');
17275
+ const s1 = {
17270
17276
  hash: "svelte-jea5iu",
17271
17277
  code: `.rcb-info.svelte-jea5iu {display:flex;align-items:flex-start;background-color:var(--rc-color-grey-ui-light);border-radius:var(--rc-shape-input-border-radius);gap:var(--rc-spacing-gapLarge-mobile);padding:var(--rc-spacing-gapLarge-mobile);}.rcb-info-content.svelte-jea5iu {flex:1;}.rcb-info-icon-wrapper.svelte-jea5iu {flex-shrink:0;color:var(--rc-color-accent-primary);}.rcb-info-title.svelte-jea5iu {color:var(--rc-color-grey-text-dark);margin-bottom:var(--rc-spacing-gapSmall-mobile);display:flex;}.rcb-info-message.svelte-jea5iu {color:var(--rc-color-grey-text-light);}
17272
17278
 
17273
17279
  @container layout-query-container (width >= 768px) {.rcb-info.svelte-jea5iu {gap:var(--rc-spacing-gapLarge-desktop);padding:var(--rc-spacing-gapLarge-desktop);}.rcb-info-title.svelte-jea5iu {margin-bottom:var(--rc-spacing-gapSmall-desktop);}
17274
17280
  }`
17275
17281
  };
17276
- function s1(r, e) {
17277
- ke(r, i1);
17278
- var t = o1(), n = T(t), a = T(n);
17282
+ function l1(r, e) {
17283
+ ke(r, s1);
17284
+ var t = i1(), n = T(t), a = T(n);
17279
17285
  V_(a);
17280
17286
  var i = W(n, 2), s = T(i), l = T(s);
17281
17287
  ze(l, {
@@ -17296,7 +17302,7 @@ function s1(r, e) {
17296
17302
  $$slots: { default: !0 }
17297
17303
  }), x(r, t);
17298
17304
  }
17299
- function l1(r, e) {
17305
+ function c1(r, e) {
17300
17306
  _e(e, !0);
17301
17307
  const t = () => Be(i, "$translator", n), [n, a] = Ze(), i = He(fr);
17302
17308
  {
@@ -17304,7 +17310,7 @@ function l1(r, e) {
17304
17310
  var c;
17305
17311
  return t().translate((c = e.subscriptionOption) != null && c.trial ? ue.PriceUpdateTrialMessage : ue.PriceUpdateBaseMessage);
17306
17312
  });
17307
- s1(r, {
17313
+ l1(r, {
17308
17314
  get title() {
17309
17315
  return o(s);
17310
17316
  },
@@ -17327,7 +17333,7 @@ function wo(r, e) {
17327
17333
  }
17328
17334
  return r.price;
17329
17335
  }
17330
- function c1(r, e) {
17336
+ function u1(r, e) {
17331
17337
  if (!r || !e)
17332
17338
  return !1;
17333
17339
  const t = bo(r), n = bo(e);
@@ -17337,7 +17343,7 @@ function Di(r) {
17337
17343
  return `${r}% off`;
17338
17344
  }
17339
17345
  function El(r, e, t, n) {
17340
- if (!c1(t, e))
17346
+ if (!u1(t, e))
17341
17347
  return Di(r);
17342
17348
  const a = n.translatePeriod(
17343
17349
  e.number,
@@ -17345,7 +17351,7 @@ function El(r, e, t, n) {
17345
17351
  );
17346
17352
  return `${r}% off for ${a}`;
17347
17353
  }
17348
- function u1(r) {
17354
+ function d1(r) {
17349
17355
  return r.durationMode === "time_window" && r.timeWindow ? No(r.timeWindow) : r.durationMode === "time_window" && r.period && r.cycleCount > 0 ? {
17350
17356
  number: r.period.number * r.cycleCount,
17351
17357
  unit: r.period.unit
@@ -17354,12 +17360,12 @@ function u1(r) {
17354
17360
  function W_(r, e, t) {
17355
17361
  return r.percentage == null ? null : r.durationMode === "time_window" ? El(
17356
17362
  r.percentage,
17357
- u1(r),
17363
+ d1(r),
17358
17364
  e,
17359
17365
  t
17360
17366
  ) : Di(r.percentage);
17361
17367
  }
17362
- function d1({
17368
+ function p1({
17363
17369
  appliedDiscount: r,
17364
17370
  purchaseOptionDiscount: e,
17365
17371
  basePeriod: t,
@@ -17392,7 +17398,7 @@ function H_(r, e, t) {
17392
17398
  const n = (r == null ? void 0 : r.trim()) || t;
17393
17399
  return e ? `${n} (${e})` : n;
17394
17400
  }
17395
- function p1(r, e, t, n, a) {
17401
+ function _1(r, e, t, n, a) {
17396
17402
  const i = W_(
17397
17403
  e,
17398
17404
  t,
@@ -17400,7 +17406,7 @@ function p1(r, e, t, n, a) {
17400
17406
  );
17401
17407
  return H_(r, i, a);
17402
17408
  }
17403
- function _1({
17409
+ function g1({
17404
17410
  priceBreakdown: r,
17405
17411
  purchaseOptionDiscount: e,
17406
17412
  fullPriceMicros: t,
@@ -17411,7 +17417,7 @@ function _1({
17411
17417
  var p, _;
17412
17418
  const s = (p = r.appliedDiscounts) == null ? void 0 : p[0];
17413
17419
  if (s && s.discountedAmountInMicros > 0) {
17414
- const f = d1({
17420
+ const f = p1({
17415
17421
  appliedDiscount: s,
17416
17422
  purchaseOptionDiscount: e,
17417
17423
  basePeriod: n,
@@ -17442,7 +17448,7 @@ function _1({
17442
17448
  discountAmountInMicros: c,
17443
17449
  displayName: (d == null ? void 0 : d.trim()) || i,
17444
17450
  suffix: u,
17445
- label: p1(
17451
+ label: _1(
17446
17452
  d,
17447
17453
  e,
17448
17454
  n,
@@ -17459,7 +17465,7 @@ function mc({
17459
17465
  }) {
17460
17466
  var d;
17461
17467
  const a = e.productType === Ur.Subscription, i = a ? t : null, s = a ? null : t, l = (i == null ? void 0 : i.discount) ?? (s == null ? void 0 : s.discount) ?? null, c = a ? ((d = i == null ? void 0 : i.base.price) == null ? void 0 : d.amountMicros) ?? e.price.amountMicros : (s == null ? void 0 : s.basePrice.amountMicros) ?? e.price.amountMicros, u = a ? i == null ? void 0 : i.base.period : null;
17462
- return _1({
17468
+ return g1({
17463
17469
  priceBreakdown: r,
17464
17470
  purchaseOptionDiscount: l,
17465
17471
  fullPriceMicros: c,
@@ -17472,9 +17478,9 @@ function mc({
17472
17478
  }
17473
17479
  class nd extends Error {
17474
17480
  }
17475
- const g1 = 500;
17476
- var f1 = /* @__PURE__ */ V('<div class="rc-loading svelte-zfhfge"><!></div>'), m1 = /* @__PURE__ */ V('<div class="rc-checkout-container svelte-zfhfge"><!> <!> <form data-testid="payment-form" class="rc-checkout-form svelte-zfhfge"><div><div class="rc-elements-container svelte-zfhfge"><!></div> <div><!></div> <div><!> <!> <div class="rc-checkout-secure-container svelte-zfhfge"><!></div></div></div></form></div>');
17477
- const h1 = {
17481
+ const f1 = 500;
17482
+ var m1 = /* @__PURE__ */ V('<div class="rc-loading svelte-zfhfge"><!></div>'), h1 = /* @__PURE__ */ V('<div class="rc-checkout-container svelte-zfhfge"><!> <!> <form data-testid="payment-form" class="rc-checkout-form svelte-zfhfge"><div><div class="rc-elements-container svelte-zfhfge"><!></div> <div><!></div> <div><!> <!> <div class="rc-checkout-secure-container svelte-zfhfge"><!></div></div></div></form></div>');
17483
+ const v1 = {
17478
17484
  hash: "svelte-zfhfge",
17479
17485
  code: `.rc-checkout-secure-container.svelte-zfhfge {margin-top:var(--rc-spacing-gapXLarge-mobile);}.rc-checkout-container.svelte-zfhfge {display:flex;flex-direction:column;gap:var(--rc-spacing-gapXLarge-mobile);user-select:none;position:relative;}.rc-checkout-price-update-info-container.svelte-zfhfge {margin-top:var(--rc-spacing-gapXLarge-mobile);}.fully-hidden.svelte-zfhfge {display:none;height:0;}.rc-checkout-pay-container.svelte-zfhfge {display:flex;flex-direction:column;margin-top:var(--rc-spacing-gapXLarge-mobile);}.rc-checkout-pay-container.fully-hidden.svelte-zfhfge {display:none;}.rc-checkout-form-container.svelte-zfhfge {width:100%;}.rc-elements-container.svelte-zfhfge {
17480
17486
  /* The standard height of the payment form from Stripe */
@@ -17486,9 +17492,9 @@ const h1 = {
17486
17492
  @container layout-query-container (width >= 768px) {.rc-checkout-secure-container.svelte-zfhfge {margin-top:var(--rc-spacing-gapXLarge-desktop);}.rc-checkout-container.svelte-zfhfge {gap:var(--rc-spacing-gapXLarge-desktop);}.rc-checkout-pay-container.svelte-zfhfge {margin-top:var(--rc-spacing-gapXLarge-desktop);}.rc-checkout-price-update-info-container.svelte-zfhfge {margin-top:var(--rc-spacing-gapXLarge-desktop);}
17487
17493
  }form.svelte-zfhfge {display:flex;flex-direction:column;flex-grow:1;}`
17488
17494
  };
17489
- function v1(r, e) {
17495
+ function y1(r, e) {
17490
17496
  var xc, Ec, Sc, Ic, Cc, Tc, Dc, Ac;
17491
- _e(e, !0), ke(r, h1);
17497
+ _e(e, !0), ke(r, v1);
17492
17498
  const t = () => Be(u, "$translator", n), [n, a] = Ze();
17493
17499
  let i = X(e, "onSessionPricingUpdated", 3, void 0), s = X(e, "onProcessingStateChange", 3, void 0), l = X(e, "lastTaxCustomerDetailsStore", 19, () => mr(null));
17494
17500
  const c = He(Uo), u = He(fr), d = /* @__PURE__ */ m(() => "base" in e.purchaseOption ? e.purchaseOption : null), p = /* @__PURE__ */ m(() => wo(e.productDetails, e.purchaseOption));
@@ -17506,7 +17512,7 @@ function v1(r, e) {
17506
17512
  lo(e.brandingInfo, $e.countryRequiresFullAddressForTaxes(o(D))) && q(N, !0);
17507
17513
  });
17508
17514
  const L = /* @__PURE__ */ m(() => !o(N) || o(O));
17509
- let Z = /* @__PURE__ */ re(void 0), z = /* @__PURE__ */ re(void 0), M = /* @__PURE__ */ re(void 0), A = /* @__PURE__ */ re(!1), U = /* @__PURE__ */ re(null), j = null, R = /* @__PURE__ */ m(() => o(S) || o(A) ? "loading" : o(z) ? "error" : "form"), Q = /* @__PURE__ */ re("unavailable"), se = null, te = /* @__PURE__ */ m(() => $w({
17515
+ let Z = /* @__PURE__ */ re(void 0), z = /* @__PURE__ */ re(void 0), M = /* @__PURE__ */ re(void 0), A = /* @__PURE__ */ re(!1), U = /* @__PURE__ */ re(null), j = null, R = /* @__PURE__ */ m(() => o(S) || o(A) ? "loading" : o(z) ? "error" : "form"), Q = /* @__PURE__ */ re("unavailable"), se = null, te = /* @__PURE__ */ m(() => eP({
17510
17516
  brandingInfo: e.brandingInfo,
17511
17517
  termsAndConditionsUrl: e.termsAndConditionsUrl,
17512
17518
  productDetails: e.productDetails
@@ -17586,7 +17592,7 @@ function v1(r, e) {
17586
17592
  () => {
17587
17593
  j = null, Te();
17588
17594
  },
17589
- g1
17595
+ f1
17590
17596
  );
17591
17597
  }
17592
17598
  async function Ue(ne) {
@@ -17665,7 +17671,7 @@ function v1(r, e) {
17665
17671
  if (ne instanceof nd)
17666
17672
  q(_, "miss-match");
17667
17673
  else if (ne instanceof ve) {
17668
- const Ae = rP({
17674
+ const Ae = tP({
17669
17675
  errorCode: ne.errorCode.toString(),
17670
17676
  errorMessage: ne.message
17671
17677
  });
@@ -17685,10 +17691,10 @@ function v1(r, e) {
17685
17691
  const ut = () => {
17686
17692
  q(z, void 0);
17687
17693
  };
17688
- var Qt = m1(), fa = T(Qt);
17694
+ var Qt = h1(), fa = T(Qt);
17689
17695
  {
17690
17696
  var ss = (ne) => {
17691
- var Ae = f1(), Ve = T(Ae);
17697
+ var Ae = m1(), Ve = T(Ae);
17692
17698
  q_(Ve), x(ne, Ae);
17693
17699
  };
17694
17700
  G(fa, (ne) => {
@@ -17728,7 +17734,7 @@ function v1(r, e) {
17728
17734
  var dt = T(Vo), Ja = T(dt);
17729
17735
  {
17730
17736
  let ne = /* @__PURE__ */ m(() => !!e.customerEmail), Ae = /* @__PURE__ */ m(() => !o(te) || o(le));
17731
- r1(Ja, {
17737
+ t1(Ja, {
17732
17738
  get stripeAccountId() {
17733
17739
  return e.gatewayParams.stripe_account_id;
17734
17740
  },
@@ -17776,7 +17782,7 @@ function v1(r, e) {
17776
17782
  var ls = W(dt, 2);
17777
17783
  let yc;
17778
17784
  var Tg = T(ls);
17779
- l1(Tg, {
17785
+ c1(Tg, {
17780
17786
  get subscriptionOption() {
17781
17787
  return o(d);
17782
17788
  }
@@ -17818,7 +17824,7 @@ function v1(r, e) {
17818
17824
  var Ve;
17819
17825
  return (Ve = e.brandingInfo) != null && Ve.gateway_tax_collection_enabled ? o(b) : void 0;
17820
17826
  });
17821
- cP(Pc, {
17827
+ uP(Pc, {
17822
17828
  get disabled() {
17823
17829
  return o(ne);
17824
17830
  },
@@ -17847,28 +17853,28 @@ function v1(r, e) {
17847
17853
  }), kc = ur(bc, 1, "rc-checkout-pay-container svelte-zfhfge", null, kc, { "fully-hidden": o(R) !== "form" });
17848
17854
  }), qr("submit", _n, Ue), x(r, Qt), ge(), a();
17849
17855
  }
17850
- var y1 = /* @__PURE__ */ Cr('<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.94 5.72656L8 8.7799L11.06 5.72656L12 6.66656L8 10.6666L4 6.66656L4.94 5.72656Z" class="arrow-fill svelte-1eerlbf" fill-opacity="0.7"></path></svg>');
17851
- const b1 = {
17856
+ var b1 = /* @__PURE__ */ Cr('<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.94 5.72656L8 8.7799L11.06 5.72656L12 6.66656L8 10.6666L4 6.66656L4.94 5.72656Z" class="arrow-fill svelte-1eerlbf" fill-opacity="0.7"></path></svg>');
17857
+ const k1 = {
17852
17858
  hash: "svelte-1eerlbf",
17853
17859
  code: ".arrow.svelte-1eerlbf {transition:transform 0.3s ease;}.arrow-fill.svelte-1eerlbf {fill:var(--rc-color-grey-text-dark);}.arrow.left.svelte-1eerlbf {transform:rotate(90deg);}.arrow.up.svelte-1eerlbf {transform:rotate(180deg);}.arrow.right.svelte-1eerlbf {transform:rotate(-90deg);}.arrow.down.svelte-1eerlbf {transform:rotate(0deg);}"
17854
17860
  };
17855
17861
  function ni(r, e) {
17856
- ke(r, b1);
17862
+ ke(r, k1);
17857
17863
  let t = X(e, "direction", 8);
17858
- var n = y1();
17864
+ var n = b1();
17859
17865
  K(() => ur(n, 0, `arrow ${t() ?? ""}`, "svelte-1eerlbf")), x(r, n);
17860
17866
  }
17861
- var k1 = /* @__PURE__ */ Cr('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="arrow"><path d="M15.41 7.41L14 6L8 12L14 18L15.41 16.59L10.83 12L15.41 7.41Z" class="arrow-fill svelte-159d2rl" fill-opacity="0.7"></path></svg>');
17862
- const w1 = {
17867
+ var w1 = /* @__PURE__ */ Cr('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" class="arrow"><path d="M15.41 7.41L14 6L8 12L14 18L15.41 16.59L10.83 12L15.41 7.41Z" class="arrow-fill svelte-159d2rl" fill-opacity="0.7"></path></svg>');
17868
+ const P1 = {
17863
17869
  hash: "svelte-159d2rl",
17864
17870
  code: ".arrow-fill.svelte-159d2rl {fill:var(--rc-color-grey-text-dark);}"
17865
17871
  };
17866
- function P1(r) {
17867
- ke(r, w1);
17868
- var e = k1();
17872
+ function x1(r) {
17873
+ ke(r, P1);
17874
+ var e = w1();
17869
17875
  x(r, e);
17870
17876
  }
17871
- const x1 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor"
17877
+ const E1 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor"
17872
17878
  xmlns="http://www.w3.org/2000/svg">
17873
17879
  <g opacity="0.5" clip-path="url(#clip0_344_3390)">
17874
17880
  <path d="M7 18C5.9 18 5.01 18.9 5.01 20C5.01 21.1 5.9 22 7 22C8.1 22 9 21.1 9 20C9 18.9 8.1 18 7 18ZM1 2V4H3L6.6 11.59L5.25 14.04C5.09 14.32 5 14.65 5 15C5 16.1 5.9 17 7 17H19V15H7.42C7.28 15 7.17 14.89 7.17 14.75L7.2 14.63L8.1 13H15.55C16.3 13 16.96 12.59 17.3 11.97L20.88 5.48C20.96 5.34 21 5.17 21 5C21 4.45 20.55 4 20 4H5.21L4.27 2H1ZM17 18C15.9 18 15.01 18.9 15.01 20C15.01 21.1 15.9 22 17 22C18.1 22 19 21.1 19 20C19 18.9 18.1 18 17 18Z"
@@ -17881,72 +17887,72 @@ const x1 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor"
17881
17887
  </defs>
17882
17888
  </svg>
17883
17889
  `;
17884
- var E1 = /* @__PURE__ */ V('<div style="color:var(--rc-color-gray-text-dark);"><!></div>');
17885
- function S1(r) {
17886
- var e = E1(), t = T(e);
17887
- pn(t, () => x1), x(r, e);
17890
+ var S1 = /* @__PURE__ */ V('<div style="color:var(--rc-color-gray-text-dark);"><!></div>');
17891
+ function I1(r) {
17892
+ var e = S1(), t = T(e);
17893
+ pn(t, () => E1), x(r, e);
17888
17894
  }
17889
- const I1 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor"
17895
+ const C1 = `<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor"
17890
17896
  xmlns="http://www.w3.org/2000/svg">
17891
17897
  <path d="M18 8H17V6C17 3.24 14.76 1 12 1C9.24 1 7 3.24 7 6V8H6C4.9 8 4 8.9 4 10V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V10C20 8.9 19.1 8 18 8ZM12 17C10.9 17 10 16.1 10 15C10 13.9 10.9 13 12 13C13.1 13 14 13.9 14 15C14 16.1 13.1 17 12 17ZM15.1 8H8.9V6C8.9 4.29 10.29 2.9 12 2.9C13.71 2.9 15.1 4.29 15.1 6V8Z"
17892
17898
  fill="currentColor"/>
17893
17899
  </svg>
17894
17900
  `;
17895
- var C1 = /* @__PURE__ */ V('<div style="color:var(--rc-color-accent);" class="rcb-ui-asset-icon svelte-1dhcigx"><!></div>');
17896
- const T1 = {
17901
+ var T1 = /* @__PURE__ */ V('<div style="color:var(--rc-color-accent);" class="rcb-ui-asset-icon svelte-1dhcigx"><!></div>');
17902
+ const D1 = {
17897
17903
  hash: "svelte-1dhcigx",
17898
17904
  code: "div.svelte-1dhcigx {height:24px;width:24px;}"
17899
17905
  };
17900
- function D1(r) {
17901
- ke(r, T1);
17902
- var e = C1(), t = T(e);
17903
- pn(t, () => I1), x(r, e);
17906
+ function A1(r) {
17907
+ ke(r, D1);
17908
+ var e = T1(), t = T(e);
17909
+ pn(t, () => C1), x(r, e);
17904
17910
  }
17905
- const A1 = `<svg viewBox="0 0 124 124" fill="var(--rc-color-grey-text-dark)" xmlns="http://www.w3.org/2000/svg">
17911
+ const F1 = `<svg viewBox="0 0 124 124" fill="var(--rc-color-grey-text-dark)" xmlns="http://www.w3.org/2000/svg">
17906
17912
  <circle cx="62" cy="62" r="62" fill="var(--rc-color-grey-text-dark)" opacity="0.2"/>
17907
17913
  <rect x="44.1116" y="56" width="27.5" height="11" transform="rotate(45 44.1116 56)" fill="var(--rc-color-grey-text-dark)"/>
17908
17914
  <rect x="79.1133" y="44.334" width="11" height="44" transform="rotate(45 79.1133 44.334)" fill="var(--rc-color-grey-text-dark)"/>
17909
17915
  </svg>
17910
17916
  `;
17911
- var F1 = /* @__PURE__ */ V('<div style="color:var(--rc-color-primary)"><!></div>');
17917
+ var q1 = /* @__PURE__ */ V('<div style="color:var(--rc-color-primary)"><!></div>');
17912
17918
  function Y_(r) {
17913
- var e = F1(), t = T(e);
17914
- pn(t, () => A1), x(r, e);
17919
+ var e = q1(), t = T(e);
17920
+ pn(t, () => F1), x(r, e);
17915
17921
  }
17916
- var q1 = /* @__PURE__ */ Cr('<svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z" class="arrow-fill svelte-1prqhxu" fill-opacity="0.7"></path></svg>');
17917
- const M1 = {
17922
+ var M1 = /* @__PURE__ */ Cr('<svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z" class="arrow-fill svelte-1prqhxu" fill-opacity="0.7"></path></svg>');
17923
+ const z1 = {
17918
17924
  hash: "svelte-1prqhxu",
17919
17925
  code: ".arrow-fill.svelte-1prqhxu {fill:var(--arrow-fill-color, var(--rc-color-grey-text-dark));}"
17920
17926
  };
17921
- function z1(r) {
17922
- ke(r, M1);
17923
- var e = q1();
17927
+ function O1(r) {
17928
+ ke(r, z1);
17929
+ var e = M1();
17924
17930
  x(r, e);
17925
17931
  }
17926
- const O1 = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="15" viewBox="0 0 16 15" fill="none">
17932
+ const N1 = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="15" viewBox="0 0 16 15" fill="none">
17927
17933
  <path d="M7.99697 9.21971C8.54919 9.21978 8.99697 9.66747 8.99697 10.2197C8.99696 10.772 8.54919 11.2196 7.99697 11.2197C7.44469 11.2197 6.996 10.772 6.99599 10.2197C6.99599 9.66743 7.44468 9.21971 7.99697 9.21971Z" fill="var(--rc-color-grey-text-dark)" fill-opacity="0.9"/>
17928
17934
  <path d="M7.99599 4.21971C8.54822 4.21978 8.99599 4.66747 8.99599 5.21971V7.21971C8.99598 7.77195 8.54821 8.21965 7.99599 8.21971C7.44371 8.21971 6.996 7.77199 6.99599 7.21971V5.21971C6.99599 4.66743 7.44371 4.21971 7.99599 4.21971Z" fill="var(--rc-color-grey-text-dark)" fill-opacity="0.9"/>
17929
17935
  <path fill-rule="evenodd" clip-rule="evenodd" d="M5.15615 1.63964C6.4187 -0.546529 9.57428 -0.546561 10.8368 1.63964L15.5477 9.79979C16.8097 11.9862 15.2322 14.7192 12.7079 14.7197H3.28505C0.76025 14.7196 -0.818142 11.9864 0.444233 9.79979L5.15615 1.63964ZM9.10537 2.63964C8.61269 1.78643 7.3803 1.78645 6.88759 2.63964L2.17665 10.7998C1.68403 11.6531 2.29983 12.7196 3.28505 12.7197H12.7079C13.6926 12.7192 14.3084 11.6528 13.8163 10.7998L9.10537 2.63964Z" fill="var(--rc-color-grey-text-dark)" fill-opacity="0.9"/>
17930
17936
  </svg>`;
17931
- var N1 = /* @__PURE__ */ V('<div class="rcb-ui-asset-icon svelte-18og1ci"><!></div>');
17932
- const L1 = {
17937
+ var L1 = /* @__PURE__ */ V('<div class="rcb-ui-asset-icon svelte-18og1ci"><!></div>');
17938
+ const j1 = {
17933
17939
  hash: "svelte-18og1ci",
17934
17940
  code: ".rcb-ui-asset-icon.svelte-18og1ci {display:inline-block;width:1em;height:1em;}"
17935
17941
  };
17936
- function j1(r) {
17937
- ke(r, L1);
17938
- var e = N1(), t = T(e);
17939
- pn(t, () => O1), x(r, e);
17942
+ function B1(r) {
17943
+ ke(r, j1);
17944
+ var e = L1(), t = T(e);
17945
+ pn(t, () => N1), x(r, e);
17940
17946
  }
17941
- const B1 = {
17942
- cart: S1,
17947
+ const R1 = {
17948
+ cart: I1,
17943
17949
  error: Bp,
17944
- lock: D1,
17950
+ lock: A1,
17945
17951
  success: Y_,
17946
- back: P1,
17952
+ back: x1,
17947
17953
  info: V_,
17948
- close: z1,
17949
- warning: j1,
17954
+ close: O1,
17955
+ warning: B1,
17950
17956
  "chevron-left": ni,
17951
17957
  "chevron-right": ni,
17952
17958
  "chevron-up": ni,
@@ -17954,7 +17960,7 @@ const B1 = {
17954
17960
  };
17955
17961
  function qn(r, e) {
17956
17962
  _e(e, !0);
17957
- const t = B1[e.name];
17963
+ const t = R1[e.name];
17958
17964
  let n = /* @__PURE__ */ re(rr({}));
17959
17965
  if (e.name.startsWith("chevron")) {
17960
17966
  const a = e.name.split("-")[1];
@@ -17962,13 +17968,13 @@ function qn(r, e) {
17962
17968
  }
17963
17969
  t(r, dr(() => o(n))), ge();
17964
17970
  }
17965
- var R1 = /* @__PURE__ */ V('<span class="rc-sandbox-only-error svelte-1dod9xz"><!></span> <br/> <br/>', 1), U1 = /* @__PURE__ */ V('<!> <a class="svelte-1dod9xz"> </a>.', 1), V1 = /* @__PURE__ */ V("<!> <!>", 1);
17966
- const W1 = {
17971
+ var U1 = /* @__PURE__ */ V('<span class="rc-sandbox-only-error svelte-1dod9xz"><!></span> <br/> <br/>', 1), V1 = /* @__PURE__ */ V('<!> <a class="svelte-1dod9xz"> </a>.', 1), W1 = /* @__PURE__ */ V("<!> <!>", 1);
17972
+ const H1 = {
17967
17973
  hash: "svelte-1dod9xz",
17968
17974
  code: "a.svelte-1dod9xz {color:var(--rc-color-grey-text-dark);}.rc-sandbox-only-error.svelte-1dod9xz {font-weight:bold;}"
17969
17975
  };
17970
17976
  function os(r, e) {
17971
- _e(e, !0), ke(r, W1);
17977
+ _e(e, !0), ke(r, H1);
17972
17978
  const t = () => Be(l, "$translator", n), [n, a] = Ze(), i = X(e, "fullWidth", 3, !1), s = /* @__PURE__ */ m(() => e.lastError ?? new ve(me.UnknownError, "Unknown error without state set.")), l = He(fr), c = /* @__PURE__ */ m(() => o(s).errorCode === me.StripeTaxNotActive || o(s).errorCode === me.StripeInvalidTaxOriginAddress || o(s).errorCode === me.StripeMissingRequiredPermission);
17973
17979
  br(() => {
17974
17980
  be.errorLog(`Displayed error: ${me[o(s).errorCode]}. Message: ${o(s).message ?? "None"}. Underlying error: ${o(s).underlyingErrorMessage ?? "None"}`);
@@ -18029,10 +18035,10 @@ function os(r, e) {
18029
18035
  });
18030
18036
  }
18031
18037
  }, w = (y) => {
18032
- var b = V1(), v = ce(b);
18038
+ var b = W1(), v = ce(b);
18033
18039
  {
18034
18040
  var P = (S) => {
18035
- var F = R1(), D = ce(F), O = T(D);
18041
+ var F = U1(), D = ce(F), O = T(D);
18036
18042
  st(O, {
18037
18043
  get key() {
18038
18044
  return ue.ErrorPageErrorMessageOnlyInSandbox;
@@ -18046,7 +18052,7 @@ function os(r, e) {
18046
18052
  var I = W(v), E = W(I);
18047
18053
  {
18048
18054
  var C = (S) => {
18049
- var F = U1(), D = ce(F);
18055
+ var F = V1(), D = ce(F);
18050
18056
  {
18051
18057
  let L = /* @__PURE__ */ m(_);
18052
18058
  st(D, {
@@ -18094,10 +18100,10 @@ function is(r, e) {
18094
18100
  let i = X(e, "onContinue", 8), s = X(e, "title", 8, void 0), l = X(e, "closeButtonTitle", 8, void 0), c = X(e, "fullWidth", 8, !1);
18095
18101
  const u = He(fr), d = He(Uo);
18096
18102
  function p() {
18097
- d.trackSDKEvent(tP("go_back_to_app", Xr)), i()();
18103
+ d.trackSDKEvent(nP("go_back_to_app", Xr)), i()();
18098
18104
  }
18099
18105
  br(() => {
18100
- d.trackSDKEvent(nP(Xr));
18106
+ d.trackSDKEvent(aP(Xr));
18101
18107
  }), On();
18102
18108
  {
18103
18109
  const _ = (w) => {
@@ -18122,11 +18128,11 @@ function is(r, e) {
18122
18128
  }
18123
18129
  ge(), a();
18124
18130
  }
18125
- function H1(r) {
18131
+ function Y1(r) {
18126
18132
  q_(r);
18127
18133
  }
18128
- var Y1 = /* @__PURE__ */ V('<button class="rcb-applied-discount-chip svelte-56pxsq" type="button"><span class="rcb-applied-discount-code svelte-56pxsq"> </span> <span class="rcb-applied-discount-icon svelte-56pxsq" aria-hidden="true"><!></span></button>'), G1 = /* @__PURE__ */ V('<div class="rcb-applied-discount-chip rcb-applied-discount-chip--static svelte-56pxsq"><span class="rcb-applied-discount-code svelte-56pxsq"> </span></div>'), K1 = /* @__PURE__ */ V('<div class="rcb-applied-discount-label svelte-56pxsq"> </div>'), X1 = /* @__PURE__ */ V('<div class="rcb-applied-discount svelte-56pxsq"><!> <!></div>'), Z1 = /* @__PURE__ */ V('<div class="rcb-discount-error svelte-56pxsq" role="alert"><span class="rcb-discount-error-icon svelte-56pxsq" aria-hidden="true"><!></span> <span> </span></div>'), J1 = /* @__PURE__ */ V('<div class="rcb-discount-input svelte-56pxsq"><div class="rcb-discount-input-row svelte-56pxsq"><div><label class="rcb-discount-field-label svelte-56pxsq" for="rc-discount-code"> </label> <input class="rcb-discount-field-input svelte-56pxsq" id="rc-discount-code" type="text" autocomplete="off" placeholder=" "/></div> <button type="button"> </button></div> <!></div>'), Q1 = /* @__PURE__ */ V('<div class="rcb-product-price-container svelte-56pxsq"><!></div>');
18129
- const $1 = {
18134
+ var G1 = /* @__PURE__ */ V('<button class="rcb-applied-discount-chip svelte-56pxsq" type="button"><span class="rcb-applied-discount-code svelte-56pxsq"> </span> <span class="rcb-applied-discount-icon svelte-56pxsq" aria-hidden="true"><!></span></button>'), K1 = /* @__PURE__ */ V('<div class="rcb-applied-discount-chip rcb-applied-discount-chip--static svelte-56pxsq"><span class="rcb-applied-discount-code svelte-56pxsq"> </span></div>'), X1 = /* @__PURE__ */ V('<div class="rcb-applied-discount-label svelte-56pxsq"> </div>'), Z1 = /* @__PURE__ */ V('<div class="rcb-applied-discount svelte-56pxsq"><!> <!></div>'), J1 = /* @__PURE__ */ V('<div class="rcb-discount-error svelte-56pxsq" role="alert"><span class="rcb-discount-error-icon svelte-56pxsq" aria-hidden="true"><!></span> <span> </span></div>'), Q1 = /* @__PURE__ */ V('<div class="rcb-discount-input svelte-56pxsq"><div class="rcb-discount-input-row svelte-56pxsq"><div><label class="rcb-discount-field-label svelte-56pxsq" for="rc-discount-code"> </label> <input class="rcb-discount-field-input svelte-56pxsq" id="rc-discount-code" type="text" autocomplete="off" placeholder=" "/></div> <button type="button"> </button></div> <!></div>'), $1 = /* @__PURE__ */ V('<div class="rcb-product-price-container svelte-56pxsq"><!></div>');
18135
+ const e0 = {
18130
18136
  hash: "svelte-56pxsq",
18131
18137
  code: `.rcb-product-price-container.svelte-56pxsq {display:flex;flex-direction:column;justify-content:space-between;gap:var(--rc-spacing-gapMedium-mobile);color:var(--rc-color-grey-text-dark);}.rcb-discount-input.svelte-56pxsq {display:flex;flex-direction:column;gap:4px;}.rcb-discount-input-row.svelte-56pxsq {display:flex;gap:8px;width:100%;}.rcb-discount-field.svelte-56pxsq {position:relative;display:flex;align-items:flex-end;flex:1 1 auto;min-width:0;min-height:48px;padding:4px 12px;border:1px solid var(--rc-color-grey-ui-dark);border-radius:var(--rc-shape-input-border-radius);background:var(--rc-color-background);transition:border-color 150ms ease;}.rcb-discount-field--focused.svelte-56pxsq {border-color:var(--rc-color-grey-text-light);}.rcb-discount-field-label.svelte-56pxsq {position:absolute;top:50%;left:12px;max-width:calc(100% - 24px);overflow:hidden;color:var(--rc-color-grey-text-light);font:var(--rc-text-bodySmall-mobile);text-overflow:ellipsis;pointer-events:none;transform:translateY(-50%);transform-origin:left top;transition:top 150ms ease,
18132
18138
  transform 150ms ease,
@@ -18138,7 +18144,7 @@ const $1 = {
18138
18144
  opacity 150ms ease;}button.rcb-applied-discount-chip.svelte-56pxsq {cursor:pointer;}.rcb-applied-discount-chip--static.svelte-56pxsq {cursor:default;}button.rcb-applied-discount-chip.svelte-56pxsq:disabled {cursor:not-allowed;opacity:0.7;}.rcb-applied-discount-code.svelte-56pxsq {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:4px 0;}.rcb-applied-discount-icon.svelte-56pxsq {display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;color:var(--rc-color-grey-text-light);}.rcb-applied-discount-icon.svelte-56pxsq {width:16px;height:16px;}.rcb-applied-discount-label.svelte-56pxsq {color:var(--rc-color-grey-text-light);font:var(--rc-text-bodySmall-mobile);}`
18139
18145
  };
18140
18146
  function ad(r, e) {
18141
- _e(e, !1), ke(r, $1);
18147
+ _e(e, !1), ke(r, e0);
18142
18148
  const t = () => Be(P, "$translator", n), [n, a] = Ze(), i = /* @__PURE__ */ lr(), s = /* @__PURE__ */ lr(), l = /* @__PURE__ */ lr(), c = /* @__PURE__ */ lr(), u = /* @__PURE__ */ lr();
18143
18149
  let d = X(e, "showDiscountCodeField", 8, !1), p = X(e, "discountCode", 12, ""), _ = X(e, "appliedDiscountCode", 8, null), f = X(e, "discountSuffix", 8, null), g = X(e, "discountCodeError", 8, null), w = X(e, "isUpdatingDiscountCode", 8, !1), k = X(e, "isDiscountCodeControlsEnabled", 8, !1), h = X(e, "onDiscountCodeChange", 8, void 0), y = X(e, "onApplyDiscountCode", 8, void 0), b = X(e, "onRemoveDiscountCode", 8, void 0), v = /* @__PURE__ */ lr(!1);
18144
18150
  const P = He(fr), I = (N) => N.toUpperCase(), E = () => {
@@ -18162,13 +18168,13 @@ function ad(r, e) {
18162
18168
  }), pr(() => We(_()), () => {
18163
18169
  q(u, _() ? I(_()) : null);
18164
18170
  }), Hl(), On();
18165
- var S = Q1(), F = T(S);
18171
+ var S = $1(), F = T(S);
18166
18172
  {
18167
18173
  var D = (N) => {
18168
- var L = X1(), Z = T(L);
18174
+ var L = Z1(), Z = T(L);
18169
18175
  {
18170
18176
  var z = (j) => {
18171
- var R = Y1();
18177
+ var R = G1();
18172
18178
  R.__click = () => {
18173
18179
  var ae;
18174
18180
  return (ae = b()) == null ? void 0 : ae();
@@ -18178,7 +18184,7 @@ function ad(r, e) {
18178
18184
  R.disabled = w(), he(R, "aria-label", `Remove promo code ${o(u)}`), fe(se, o(u));
18179
18185
  }), x(j, R);
18180
18186
  }, M = (j) => {
18181
- var R = G1(), Q = T(R), se = T(Q);
18187
+ var R = K1(), Q = T(R), se = T(Q);
18182
18188
  K(() => fe(se, o(u))), x(j, R);
18183
18189
  };
18184
18190
  G(Z, (j) => {
@@ -18188,7 +18194,7 @@ function ad(r, e) {
18188
18194
  var A = W(Z, 2);
18189
18195
  {
18190
18196
  var U = (j) => {
18191
- var R = K1(), Q = T(R);
18197
+ var R = X1(), Q = T(R);
18192
18198
  K(() => fe(Q, `
18193
18199
  ${f() ?? ""}`)), x(j, R);
18194
18200
  };
@@ -18201,7 +18207,7 @@ function ad(r, e) {
18201
18207
  var L = Ee(), Z = ce(L);
18202
18208
  {
18203
18209
  var z = (M) => {
18204
- var A = J1(), U = T(A), j = T(U);
18210
+ var A = Q1(), U = T(A), j = T(U);
18205
18211
  let R;
18206
18212
  var Q = T(j), se = T(Q), te = W(Q, 2);
18207
18213
  te.__input = E, te.__keydown = C;
@@ -18214,7 +18220,7 @@ function ad(r, e) {
18214
18220
  var Y = T(le), $ = W(U, 2);
18215
18221
  {
18216
18222
  var oe = (B) => {
18217
- var de = Z1(), J = T(de), ie = T(J);
18223
+ var de = J1(), J = T(de), ie = T(J);
18218
18224
  qn(ie, { name: "warning" });
18219
18225
  var Ie = W(J, 2), we = T(Ie);
18220
18226
  K(() => fe(we, o(c))), x(B, de);
@@ -18255,8 +18261,8 @@ function ad(r, e) {
18255
18261
  x(r, S), ge(), a();
18256
18262
  }
18257
18263
  Jt(["click", "input", "keydown"]);
18258
- var e0 = /* @__PURE__ */ V('<div class="rcb-pricing-dropdown svelte-v5skdw"><div class="rcb-pricing-dropdown-header svelte-v5skdw" tabindex="0" role="button"><!> <span class="rcb-pricing-dropdown-toggle svelte-v5skdw"><!></span></div> <div><div class="rcb-pricing-dropdown-content-inner svelte-v5skdw"><!></div></div></div>');
18259
- const r0 = {
18264
+ var r0 = /* @__PURE__ */ V('<div class="rcb-pricing-dropdown svelte-v5skdw"><div class="rcb-pricing-dropdown-header svelte-v5skdw" tabindex="0" role="button"><!> <span class="rcb-pricing-dropdown-toggle svelte-v5skdw"><!></span></div> <div><div class="rcb-pricing-dropdown-content-inner svelte-v5skdw"><!></div></div></div>');
18265
+ const t0 = {
18260
18266
  hash: "svelte-v5skdw",
18261
18267
  code: `.rcb-pricing-dropdown.svelte-v5skdw {width:100%;overflow:hidden;display:flex;flex-direction:column;}.rcb-pricing-dropdown-header.svelte-v5skdw {padding-top:var(--rc-spacing-gapSmall-mobile);padding-bottom:var(--rc-spacing-gapSmall-mobile);padding-left:var(--rc-spacing-gapLarge-mobile);padding-right:var(--rc-spacing-gapMedium-mobile);color:var(--rc-color-grey-text-light);border-radius:var(--rc-shape-input-button-border-radius);cursor:pointer;display:inline-flex;align-items:center;background-color:var(--rc-color-grey-ui-light);width:fit-content;user-select:none;}.rcb-pricing-dropdown-toggle.svelte-v5skdw {display:flex;align-items:center;margin-left:var(--rc-spacing-gapSmall-mobile);}.rcb-pricing-dropdown-content.svelte-v5skdw {display:flex;flex-direction:column;overflow:hidden;}
18262
18268
 
@@ -18266,8 +18272,8 @@ const r0 = {
18266
18272
  @container layout-query-container (width >= 768px) {.rcb-pricing-dropdown-header.svelte-v5skdw {display:none;}
18267
18273
  }`
18268
18274
  };
18269
- function t0(r, e) {
18270
- _e(e, !1), ke(r, r0);
18275
+ function n0(r, e) {
18276
+ _e(e, !1), ke(r, t0);
18271
18277
  const t = () => Be(c, "$translator", n), [n, a] = Ze();
18272
18278
  let i = X(e, "isExpanded", 12, !0), s = X(e, "showDiscountCodeField", 8, !1), l = X(e, "children", 8);
18273
18279
  const c = He(fr);
@@ -18275,7 +18281,7 @@ function t0(r, e) {
18275
18281
  i(!i());
18276
18282
  }
18277
18283
  On();
18278
- var d = e0(), p = T(d), _ = T(p);
18284
+ var d = r0(), p = T(d), _ = T(p);
18279
18285
  ze(_, {
18280
18286
  size: "label-default",
18281
18287
  children: (P, I) => {
@@ -18336,8 +18342,8 @@ function t0(r, e) {
18336
18342
  he(p, "aria-expanded", i()), y = ur(h, 1, "rcb-pricing-dropdown-content svelte-v5skdw", null, y, { collapsed: !i() });
18337
18343
  }), qr("click", p, u), qr("keydown", p, (P) => P.key === "Enter" || P.key === " " ? u() : null), x(r, d), ge(), a();
18338
18344
  }
18339
- var n0 = /* @__PURE__ */ V('<div class="rcb-pricing-table-value-loading svelte-w1kcbi"><!></div>');
18340
- const a0 = {
18345
+ var a0 = /* @__PURE__ */ V('<div class="rcb-pricing-table-value-loading svelte-w1kcbi"><!></div>');
18346
+ const o0 = {
18341
18347
  hash: "svelte-w1kcbi",
18342
18348
  code: `.rcb-pricing-table-value-loading.svelte-w1kcbi {color:transparent;
18343
18349
  animation: svelte-w1kcbi-rcb-pricing-table-value-loading 1.5s ease-in-out 0s infinite
@@ -18354,13 +18360,13 @@ const a0 = {
18354
18360
  }`
18355
18361
  };
18356
18362
  function od(r, e) {
18357
- ke(r, a0);
18363
+ ke(r, o0);
18358
18364
  let t = X(e, "children", 8);
18359
- var n = n0(), a = T(n);
18365
+ var n = a0(), a = T(n);
18360
18366
  yr(a, () => t() ?? er), x(r, n);
18361
18367
  }
18362
- var o0 = /* @__PURE__ */ V('<div class="rcb-pricing-table-row svelte-1cr4unj"><div class="rcb-pricing-table-header svelte-1cr4unj"><div class="rcb-pricing-table-value"><!></div></div> <div class="rcb-pricing-table-value svelte-1cr4unj"><!></div></div> <div class="rcb-pricing-table-row svelte-1cr4unj"><div class="rcb-pricing-table-header svelte-1cr4unj"><div class="rcb-pricing-table-value"><!></div></div> <div class="rcb-pricing-table-value svelte-1cr4unj"><!></div></div> <div class="rcb-pricing-table-separator svelte-1cr4unj"></div>', 1), i0 = /* @__PURE__ */ V('<div class="rcb-pricing-table-row svelte-1cr4unj"><div class="rcb-pricing-table-header svelte-1cr4unj"><div class="rcb-pricing-table-value"><!></div></div> <div class="rcb-pricing-table-value svelte-1cr4unj"><!></div></div> <div class="rcb-pricing-table-row rcb-pricing-table-row-applied-discount svelte-1cr4unj"><!> <div class="rcb-pricing-table-value svelte-1cr4unj"><!></div></div>', 1), s0 = /* @__PURE__ */ V('<div class="rcb-pricing-table-row svelte-1cr4unj" data-testid="tax-loading-skeleton"><div class="rcb-pricing-table-header svelte-1cr4unj"><!></div> <div class="rcb-pricing-table-value svelte-1cr4unj"><!></div></div>'), l0 = /* @__PURE__ */ V('<div class="rcb-pricing-table-row svelte-1cr4unj"><div class="rcb-pricing-table-header svelte-1cr4unj"> </div> <div class="rcb-pricing-table-value svelte-1cr4unj"><!></div></div>'), c0 = /* @__PURE__ */ V('<div class="rcb-pricing-table-row svelte-1cr4unj"><div class="rcb-pricing-table-header svelte-1cr4unj"><!></div> <div class="rcb-pricing-table-value svelte-1cr4unj"><!></div></div>'), u0 = /* @__PURE__ */ V('<div class="rcb-pricing-table-row svelte-1cr4unj"><div class="rcb-pricing-table-header svelte-1cr4unj"><!></div> <div class="rcb-pricing-table-value svelte-1cr4unj"><!></div></div> <!>', 1), d0 = /* @__PURE__ */ V('<div class="rcb-pricing-table-separator svelte-1cr4unj"></div>'), p0 = /* @__PURE__ */ V('<div class="rcb-pricing-table-row svelte-1cr4unj"><div class="rcb-pricing-table-header svelte-1cr4unj"><!></div> <div class="rcb-pricing-table-value svelte-1cr4unj"><!></div></div>'), _0 = /* @__PURE__ */ V('<div class="rcb-pricing-table svelte-1cr4unj"><!> <!> <!> <!> <!> <div class="rcb-pricing-table-row rcb-header svelte-1cr4unj"><div class="rcb-pricing-table-header svelte-1cr4unj"><!></div> <div class="rcb-pricing-table-value svelte-1cr4unj"><!></div></div></div>');
18363
- const g0 = {
18368
+ var i0 = /* @__PURE__ */ V('<div class="rcb-pricing-table-row svelte-1cr4unj"><div class="rcb-pricing-table-header svelte-1cr4unj"><div class="rcb-pricing-table-value"><!></div></div> <div class="rcb-pricing-table-value svelte-1cr4unj"><!></div></div> <div class="rcb-pricing-table-row svelte-1cr4unj"><div class="rcb-pricing-table-header svelte-1cr4unj"><div class="rcb-pricing-table-value"><!></div></div> <div class="rcb-pricing-table-value svelte-1cr4unj"><!></div></div> <div class="rcb-pricing-table-separator svelte-1cr4unj"></div>', 1), s0 = /* @__PURE__ */ V('<div class="rcb-pricing-table-row svelte-1cr4unj"><div class="rcb-pricing-table-header svelte-1cr4unj"><div class="rcb-pricing-table-value"><!></div></div> <div class="rcb-pricing-table-value svelte-1cr4unj"><!></div></div> <div class="rcb-pricing-table-row rcb-pricing-table-row-applied-discount svelte-1cr4unj"><!> <div class="rcb-pricing-table-value svelte-1cr4unj"><!></div></div>', 1), l0 = /* @__PURE__ */ V('<div class="rcb-pricing-table-row svelte-1cr4unj" data-testid="tax-loading-skeleton"><div class="rcb-pricing-table-header svelte-1cr4unj"><!></div> <div class="rcb-pricing-table-value svelte-1cr4unj"><!></div></div>'), c0 = /* @__PURE__ */ V('<div class="rcb-pricing-table-row svelte-1cr4unj"><div class="rcb-pricing-table-header svelte-1cr4unj"> </div> <div class="rcb-pricing-table-value svelte-1cr4unj"><!></div></div>'), u0 = /* @__PURE__ */ V('<div class="rcb-pricing-table-row svelte-1cr4unj"><div class="rcb-pricing-table-header svelte-1cr4unj"><!></div> <div class="rcb-pricing-table-value svelte-1cr4unj"><!></div></div>'), d0 = /* @__PURE__ */ V('<div class="rcb-pricing-table-row svelte-1cr4unj"><div class="rcb-pricing-table-header svelte-1cr4unj"><!></div> <div class="rcb-pricing-table-value svelte-1cr4unj"><!></div></div> <!>', 1), p0 = /* @__PURE__ */ V('<div class="rcb-pricing-table-separator svelte-1cr4unj"></div>'), _0 = /* @__PURE__ */ V('<div class="rcb-pricing-table-row svelte-1cr4unj"><div class="rcb-pricing-table-header svelte-1cr4unj"><!></div> <div class="rcb-pricing-table-value svelte-1cr4unj"><!></div></div>'), g0 = /* @__PURE__ */ V('<div class="rcb-pricing-table svelte-1cr4unj"><!> <!> <!> <!> <!> <div class="rcb-pricing-table-row rcb-header svelte-1cr4unj"><div class="rcb-pricing-table-header svelte-1cr4unj"><!></div> <div class="rcb-pricing-table-value svelte-1cr4unj"><!></div></div></div>');
18369
+ const f0 = {
18364
18370
  hash: "svelte-1cr4unj",
18365
18371
  code: `.rcb-pricing-table.svelte-1cr4unj {display:flex;flex-direction:column;gap:var(--rc-spacing-gapSmall-mobile);}.rcb-pricing-table-row.svelte-1cr4unj {display:flex;flex-direction:row;align-items:center;justify-content:space-between;}.rcb-pricing-table-row-applied-discount.svelte-1cr4unj {align-items:flex-end;}.rcb-pricing-table-separator.svelte-1cr4unj {height:1px;background-color:var(--rc-color-grey-ui-dark);}.rcb-pricing-table-row.svelte-1cr4unj > .rcb-pricing-table-header:where(.svelte-1cr4unj) {color:var(--rc-color-grey-text-light);}.rcb-pricing-table-row.svelte-1cr4unj > .rcb-pricing-table-value:where(.svelte-1cr4unj) {color:var(--rc-color-grey-text-dark);}.rcb-pricing-table-row.svelte-1cr4unj:last-child > .rcb-pricing-table-header:where(.svelte-1cr4unj),
18366
18372
  .rcb-pricing-table-row.svelte-1cr4unj:last-child > .rcb-pricing-table-value:where(.svelte-1cr4unj) {color:var(--rc-color-grey-text-dark);}
@@ -18369,13 +18375,13 @@ const g0 = {
18369
18375
  .rcb-pricing-table-row.svelte-1cr4unj > .rcb-pricing-table-value:where(.svelte-1cr4unj) {color:var(--rc-color-grey-text-light);}
18370
18376
  }`
18371
18377
  };
18372
- function f0(r, e) {
18373
- _e(e, !0), ke(r, g0);
18378
+ function m0(r, e) {
18379
+ _e(e, !0), ke(r, f0);
18374
18380
  const t = () => Be(l, "$translator", n), [n, a] = Ze(), i = (b) => {
18375
- var v = _0(), P = T(v);
18381
+ var v = g0(), P = T(v);
18376
18382
  {
18377
18383
  var I = (j) => {
18378
- var R = o0(), Q = ce(R), se = T(Q), te = T(se), le = T(te);
18384
+ var R = i0(), Q = ce(R), se = T(Q), te = T(se), le = T(te);
18379
18385
  ze(le, {
18380
18386
  size: "body-small",
18381
18387
  children: (Ie, we) => {
@@ -18463,7 +18469,7 @@ function f0(r, e) {
18463
18469
  }
18464
18470
  });
18465
18471
  }, te = (le) => {
18466
- var ae = i0(), Y = ce(ae), $ = T(Y), oe = T($), B = T(oe);
18472
+ var ae = s0(), Y = ce(ae), $ = T(Y), oe = T($), B = T(oe);
18467
18473
  ze(B, {
18468
18474
  size: "body-small",
18469
18475
  children: (Se, Ue) => {
@@ -18543,7 +18549,7 @@ function f0(r, e) {
18543
18549
  var S = W(E, 2);
18544
18550
  {
18545
18551
  var F = (j) => {
18546
- var R = u0(), Q = ce(R), se = T(Q), te = T(se);
18552
+ var R = d0(), Q = ce(R), se = T(Q), te = T(se);
18547
18553
  ze(te, {
18548
18554
  size: "body-small",
18549
18555
  children: (B, de) => {
@@ -18587,7 +18593,7 @@ function f0(r, e) {
18587
18593
  var Y = W(Q, 2);
18588
18594
  {
18589
18595
  var $ = (B) => {
18590
- var de = s0(), J = T(de), ie = T(J);
18596
+ var de = l0(), J = T(de), ie = T(J);
18591
18597
  ze(ie, {
18592
18598
  size: "body-small",
18593
18599
  children: (xe, Se) => {
@@ -18618,7 +18624,7 @@ function f0(r, e) {
18618
18624
  var de = Ee(), J = ce(de);
18619
18625
  {
18620
18626
  var ie = (we) => {
18621
- var xe = l0(), Se = T(xe), Ue = T(Se), ye = W(Se, 2), Ce = T(ye);
18627
+ var xe = c0(), Se = T(xe), Ue = T(Se), ye = W(Se, 2), Ce = T(ye);
18622
18628
  ze(Ce, {
18623
18629
  size: "body-small",
18624
18630
  children: (Te, Pe) => {
@@ -18637,7 +18643,7 @@ function f0(r, e) {
18637
18643
  var Ue = (ye) => {
18638
18644
  var Ce = Ee(), Te = ce(Ce);
18639
18645
  Gt(Te, 17, () => e.priceBreakdown.taxBreakdown, ln, (Pe, De) => {
18640
- var Ye = c0(), Ke = T(Ye), pe = T(Ke);
18646
+ var Ye = u0(), Ke = T(Ye), pe = T(Ke);
18641
18647
  ze(pe, {
18642
18648
  size: "body-small",
18643
18649
  children: (_r, Ar) => {
@@ -18692,7 +18698,7 @@ function f0(r, e) {
18692
18698
  var D = W(S, 2);
18693
18699
  {
18694
18700
  var O = (j) => {
18695
- var R = d0();
18701
+ var R = p0();
18696
18702
  x(j, R);
18697
18703
  };
18698
18704
  G(D, (j) => {
@@ -18702,7 +18708,7 @@ function f0(r, e) {
18702
18708
  var N = W(D, 2);
18703
18709
  {
18704
18710
  var L = (j) => {
18705
- var R = p0(), Q = T(R), se = T(Q);
18711
+ var R = _0(), Q = T(R), se = T(Q);
18706
18712
  ze(se, {
18707
18713
  size: "body-small",
18708
18714
  children: (ae, Y) => {
@@ -18772,7 +18778,7 @@ function f0(r, e) {
18772
18778
  var w = Ee(), k = ce(w);
18773
18779
  {
18774
18780
  var h = (b) => {
18775
- t0(b, {
18781
+ n0(b, {
18776
18782
  get showDiscountCodeField() {
18777
18783
  return e.showDiscountCodeField;
18778
18784
  },
@@ -18790,23 +18796,23 @@ function f0(r, e) {
18790
18796
  }
18791
18797
  x(r, w), ge(), a();
18792
18798
  }
18793
- var m0 = /* @__PURE__ */ V('<div class="rcb-subscribe-to svelte-sdtx9l"><!></div>'), h0 = /* @__PURE__ */ V('<span class="rcb-product-description svelte-sdtx9l"><!></span>'), v0 = /* @__PURE__ */ V('<div class="rcb-pricing-info-header svelte-sdtx9l"><!> <div class="rcb-product-title svelte-sdtx9l"><!></div> <!></div>');
18794
- const y0 = {
18799
+ var h0 = /* @__PURE__ */ V('<div class="rcb-subscribe-to svelte-sdtx9l"><!></div>'), v0 = /* @__PURE__ */ V('<span class="rcb-product-description svelte-sdtx9l"><!></span>'), y0 = /* @__PURE__ */ V('<div class="rcb-pricing-info-header svelte-sdtx9l"><!> <div class="rcb-product-title svelte-sdtx9l"><!></div> <!></div>');
18800
+ const b0 = {
18795
18801
  hash: "svelte-sdtx9l",
18796
18802
  code: `.rcb-pricing-info-header.svelte-sdtx9l {display:flex;flex-direction:column;gap:var(--rc-spacing-gapMedium-mobile);}.rcb-product-title.svelte-sdtx9l {color:var(--rc-color-grey-text-dark);}.rcb-product-description.svelte-sdtx9l {color:var(--rc-color-grey-text-light);}.rcb-subscribe-to.svelte-sdtx9l {display:none;}
18797
18803
 
18798
18804
  @container layout-query-container (width >= 768px) {.rcb-subscribe-to.svelte-sdtx9l {display:block;}.rcb-pricing-info-header.svelte-sdtx9l {display:flex;flex-direction:column;gap:var(--rc-spacing-gapMedium-desktop);}
18799
18805
  }`
18800
18806
  };
18801
- function b0(r, e) {
18802
- _e(e, !1), ke(r, y0);
18807
+ function k0(r, e) {
18808
+ _e(e, !1), ke(r, b0);
18803
18809
  let t = X(e, "productDetails", 8), n = X(e, "showProductDescription", 8);
18804
18810
  const a = t().productType === Ur.Subscription;
18805
18811
  On();
18806
- var i = v0(), s = T(i);
18812
+ var i = y0(), s = T(i);
18807
18813
  {
18808
18814
  var l = (_) => {
18809
- var f = m0(), g = T(f);
18815
+ var f = h0(), g = T(f);
18810
18816
  ze(g, {
18811
18817
  size: "body-base",
18812
18818
  children: (w, k) => {
@@ -18851,7 +18857,7 @@ function b0(r, e) {
18851
18857
  var d = W(c, 2);
18852
18858
  {
18853
18859
  var p = (_) => {
18854
- var f = h0(), g = T(f);
18860
+ var f = v0(), g = T(f);
18855
18861
  ze(g, {
18856
18862
  size: "body-small",
18857
18863
  children: (w, k) => {
@@ -18876,13 +18882,13 @@ function b0(r, e) {
18876
18882
  }
18877
18883
  x(r, i), ge();
18878
18884
  }
18879
- var k0 = /* @__PURE__ */ V("<div><!></div>"), w0 = /* @__PURE__ */ V("<div><!> <!></div>"), P0 = /* @__PURE__ */ V('<div class="rcb-product-price-container svelte-17etw2v"><!> <!> <div><!> <!> <!></div></div>');
18880
- const x0 = {
18885
+ var w0 = /* @__PURE__ */ V("<div><!></div>"), P0 = /* @__PURE__ */ V("<div><!> <!></div>"), x0 = /* @__PURE__ */ V('<div class="rcb-product-price-container svelte-17etw2v"><!> <!> <div><!> <!> <!></div></div>');
18886
+ const E0 = {
18881
18887
  hash: "svelte-17etw2v",
18882
18888
  code: ".rcb-product-price-container.svelte-17etw2v {display:flex;flex-direction:column;justify-content:space-between;gap:var(--rc-spacing-gapMedium-mobile);color:var(--rc-color-grey-text-dark);}"
18883
18889
  };
18884
- function E0(r, e) {
18885
- _e(e, !0), ke(r, x0);
18890
+ function S0(r, e) {
18891
+ _e(e, !0), ke(r, E0);
18886
18892
  const t = () => Be(i, "$translator", n), [n, a] = Ze(), i = He(fr), s = /* @__PURE__ */ m(() => {
18887
18893
  var L;
18888
18894
  return !!((L = e.trialPhase) != null && L.periodDuration);
@@ -18905,10 +18911,10 @@ function E0(r, e) {
18905
18911
  const L = e.introPricePhase || o(u) ? ((z = (Z = e.basePhase) == null ? void 0 : Z.price) == null ? void 0 : z.amountMicros) ?? 0 : e.priceBreakdown.totalAmountInMicros;
18906
18912
  return t().formatPrice(L, e.priceBreakdown.currency);
18907
18913
  }), w = /* @__PURE__ */ m(() => o(c) ? ue.ProductInfoAfter : o(s) ? ue.ProductInfoAfterTrial : null), k = "heading-lg", h = /* @__PURE__ */ m(() => o(s) ? "heading-md" : "heading-lg"), y = /* @__PURE__ */ m(() => o(s) || o(c) ? "heading-md" : "heading-lg");
18908
- var b = P0(), v = T(b);
18914
+ var b = x0(), v = T(b);
18909
18915
  {
18910
18916
  var P = (L) => {
18911
- var Z = k0(), z = T(Z);
18917
+ var Z = w0(), z = T(Z);
18912
18918
  ze(z, {
18913
18919
  size: k,
18914
18920
  children: (M, A) => {
@@ -18936,7 +18942,7 @@ function E0(r, e) {
18936
18942
  var I = W(v, 2);
18937
18943
  {
18938
18944
  var E = (L) => {
18939
- var Z = w0(), z = T(Z);
18945
+ var Z = P0(), z = T(Z);
18940
18946
  ze(z, {
18941
18947
  get size() {
18942
18948
  return o(h);
@@ -19032,14 +19038,14 @@ function E0(r, e) {
19032
19038
  }
19033
19039
  x(r, b), ge(), a();
19034
19040
  }
19035
- var S0 = /* @__PURE__ */ V("<div><!></div>");
19036
- function I0(r, e) {
19041
+ var I0 = /* @__PURE__ */ V("<div><!></div>");
19042
+ function C0(r, e) {
19037
19043
  _e(e, !0);
19038
19044
  const t = () => Be(i, "$translator", n), [n, a] = Ze(), i = He(fr), s = /* @__PURE__ */ m(() => {
19039
19045
  var d, p;
19040
19046
  return t().formatPrice(((p = (d = e.basePhase) == null ? void 0 : d.price) == null ? void 0 : p.amountMicros) ?? 0, e.priceBreakdown.currency);
19041
19047
  }), l = "heading-lg";
19042
- var c = S0(), u = T(c);
19048
+ var c = I0(), u = T(c);
19043
19049
  ze(u, {
19044
19050
  size: l,
19045
19051
  children: (d, p) => {
@@ -19049,16 +19055,16 @@ function I0(r, e) {
19049
19055
  $$slots: { default: !0 }
19050
19056
  }), x(r, c), ge(), a();
19051
19057
  }
19052
- var C0 = /* @__PURE__ */ V('<div class="rcb-pricing-info svelte-1jzyaxi"><div class="rcb-pricing-info-header svelte-1jzyaxi"><!> <!></div> <!></div>');
19053
- const T0 = {
19058
+ var T0 = /* @__PURE__ */ V('<div class="rcb-pricing-info svelte-1jzyaxi"><div class="rcb-pricing-info-header svelte-1jzyaxi"><!> <!></div> <!></div>');
19059
+ const D0 = {
19054
19060
  hash: "svelte-1jzyaxi",
19055
19061
  code: `.rcb-pricing-info.svelte-1jzyaxi {display:flex;flex-direction:column;user-select:none;gap:var(--rc-spacing-gapXXLarge-mobile);}.rcb-pricing-info-header.svelte-1jzyaxi {display:flex;flex-direction:column;gap:var(--rc-spacing-gapLarge-mobile);}
19056
19062
 
19057
19063
  @container layout-query-container (width >= 768px) {.rcb-pricing-info.svelte-1jzyaxi {gap:var(--rc-spacing-gapXXXLarge-desktop);}.rcb-pricing-info-header.svelte-1jzyaxi {gap:var(--rc-spacing-gapLarge-desktop);}
19058
19064
  }`
19059
19065
  };
19060
- function D0(r, e) {
19061
- _e(e, !1), ke(r, T0);
19066
+ function A0(r, e) {
19067
+ _e(e, !1), ke(r, D0);
19062
19068
  const t = () => Be(F, "$translator", n), [n, a] = Ze(), i = /* @__PURE__ */ lr();
19063
19069
  let s = X(e, "productDetails", 8), l = X(e, "purchaseOption", 8), c = X(e, "showProductDescription", 8), u = X(e, "priceBreakdown", 8), d = X(e, "showDiscountCodeField", 8, !1), p = X(e, "discountCode", 8, ""), _ = X(e, "appliedDiscountCode", 8, null), f = X(e, "discountCodeError", 8, null), g = X(e, "isUpdatingDiscountCode", 8, !1), w = X(e, "isDiscountCodeControlsEnabled", 8, !1), k = X(e, "onDiscountCodeChange", 8, void 0), h = X(e, "onApplyDiscountCode", 8, void 0), y = X(e, "onRemoveDiscountCode", 8, void 0), b = /* @__PURE__ */ lr(), v = /* @__PURE__ */ lr(), P = /* @__PURE__ */ lr(), I = /* @__PURE__ */ lr(), E = /* @__PURE__ */ lr(), C = /* @__PURE__ */ lr(), S = /* @__PURE__ */ lr();
19064
19070
  const F = He(fr);
@@ -19102,8 +19108,8 @@ function D0(r, e) {
19102
19108
  }));
19103
19109
  }
19104
19110
  ), Hl(), On();
19105
- var D = C0(), O = T(D), N = T(O);
19106
- b0(N, {
19111
+ var D = T0(), O = T(D), N = T(O);
19112
+ k0(N, {
19107
19113
  get productDetails() {
19108
19114
  return s();
19109
19115
  },
@@ -19114,7 +19120,7 @@ function D0(r, e) {
19114
19120
  var L = W(N, 2);
19115
19121
  {
19116
19122
  var Z = (A) => {
19117
- E0(A, {
19123
+ S0(A, {
19118
19124
  get priceBreakdown() {
19119
19125
  return u();
19120
19126
  },
@@ -19132,7 +19138,7 @@ function D0(r, e) {
19132
19138
  }
19133
19139
  });
19134
19140
  }, z = (A) => {
19135
- I0(A, {
19141
+ C0(A, {
19136
19142
  get priceBreakdown() {
19137
19143
  return u();
19138
19144
  },
@@ -19146,7 +19152,7 @@ function D0(r, e) {
19146
19152
  });
19147
19153
  }
19148
19154
  var M = W(O, 2);
19149
- f0(M, {
19155
+ m0(M, {
19150
19156
  get priceBreakdown() {
19151
19157
  return u();
19152
19158
  },
@@ -19189,8 +19195,8 @@ function D0(r, e) {
19189
19195
  }), x(r, D), ge(), a();
19190
19196
  }
19191
19197
  const Ea = (r) => `https://da08ctfrofx1b.cloudfront.net/${r}`;
19192
- var A0 = /* @__PURE__ */ V("<div><!></div>");
19193
- const F0 = {
19198
+ var F0 = /* @__PURE__ */ V("<div><!></div>");
19199
+ const q0 = {
19194
19200
  hash: "svelte-18ddpt0",
19195
19201
  code: `.rcb-ui-container.svelte-18ddpt0 {display:flex;flex-direction:column;inset:0;color-scheme:none;line-height:1.5em;font-family:-apple-system,
19196
19202
  BlinkMacSystemFont,
@@ -19207,7 +19213,7 @@ const F0 = {
19207
19213
  sans-serif;overflow-x:hidden;overflow-y:auto;}.rcb-ui-container.fullscreen.svelte-18ddpt0 {position:fixed;top:0;left:0;right:0;bottom:0;overscroll-behavior:none;z-index:1000001;}.rcb-ui-container.inside.svelte-18ddpt0 {position:relative;width:100%;z-index:unset;height:100%;top:0;left:0;}`
19208
19214
  };
19209
19215
  function G_(r, e) {
19210
- _e(e, !0), ke(r, F0);
19216
+ _e(e, !0), ke(r, q0);
19211
19217
  const t = X(e, "brandingAppearance", 3, void 0), n = X(e, "brandFontConfig", 3, void 0), a = X(e, "isInElement", 3, !1), i = /* @__PURE__ */ m(() => new Fn(t()).getTextStyleVars(n())), s = /* @__PURE__ */ m(() => new Fn(t()).spacingStyleVars), l = /* @__PURE__ */ m(() => [o(i), o(s)].join("; ")), c = /* @__PURE__ */ m(() => {
19212
19218
  var f;
19213
19219
  return (f = n()) != null && f.font_url ? Ea(n().font_url) : null;
@@ -19222,15 +19228,15 @@ function G_(r, e) {
19222
19228
  ar(() => {
19223
19229
  o(c) && u(o(c));
19224
19230
  });
19225
- var d = A0();
19231
+ var d = F0();
19226
19232
  let p;
19227
19233
  var _ = T(d);
19228
19234
  yr(_, () => e.children ?? er), K(() => {
19229
19235
  p = ur(d, 1, "rcb-ui-container svelte-18ddpt0", null, p, { fullscreen: !a(), inside: a() }), Fe(d, o(l));
19230
19236
  }), x(r, d), ge();
19231
19237
  }
19232
- var q0 = /* @__PURE__ */ V('<div id="layout-query-container" class="svelte-1ewgunr"><div class="rcb-ui-layout svelte-1ewgunr"><!></div></div>');
19233
- const M0 = {
19238
+ var M0 = /* @__PURE__ */ V('<div id="layout-query-container" class="svelte-1ewgunr"><div class="rcb-ui-layout svelte-1ewgunr"><!></div></div>');
19239
+ const z0 = {
19234
19240
  hash: "svelte-1ewgunr",
19235
19241
  code: `#layout-query-container.svelte-1ewgunr {width:100%;height:100%;container-type:size;container-name:layout-query-container;overflow-y:auto;overscroll-behavior:none;}.rcb-ui-layout.svelte-1ewgunr {width:100%;min-height:100%;display:flex;box-sizing:border-box;flex-direction:column;overscroll-behavior:none;}
19236
19242
 
@@ -19240,14 +19246,14 @@ const M0 = {
19240
19246
  @container layout-query-container (width >= 768px) {.rcb-ui-layout.svelte-1ewgunr {flex-direction:row;}
19241
19247
  }`
19242
19248
  };
19243
- function z0(r, e) {
19244
- ke(r, M0);
19249
+ function O0(r, e) {
19250
+ ke(r, z0);
19245
19251
  let t = X(e, "style", 8, ""), n = X(e, "children", 8);
19246
- var a = q0(), i = T(a), s = T(i);
19252
+ var a = M0(), i = T(a), s = T(i);
19247
19253
  yr(s, () => n() ?? er), K(() => Fe(i, t())), x(r, a);
19248
19254
  }
19249
- const O0 = (r) => r;
19250
- function N0(r) {
19255
+ const N0 = (r) => r;
19256
+ function L0(r) {
19251
19257
  const e = r - 1;
19252
19258
  return e * e * e + 1;
19253
19259
  }
@@ -19259,7 +19265,7 @@ function id(r) {
19259
19265
  "px"
19260
19266
  ];
19261
19267
  }
19262
- function L0(r, { delay: e = 0, duration: t = 400, easing: n = O0 } = {}) {
19268
+ function j0(r, { delay: e = 0, duration: t = 400, easing: n = N0 } = {}) {
19263
19269
  const a = +getComputedStyle(r).opacity;
19264
19270
  return {
19265
19271
  delay: e,
@@ -19268,7 +19274,7 @@ function L0(r, { delay: e = 0, duration: t = 400, easing: n = O0 } = {}) {
19268
19274
  css: (i) => `opacity: ${i * a}`
19269
19275
  };
19270
19276
  }
19271
- function j0(r, { delay: e = 0, duration: t = 400, easing: n = N0, x: a = 0, y: i = 0, opacity: s = 0 } = {}) {
19277
+ function B0(r, { delay: e = 0, duration: t = 400, easing: n = L0, x: a = 0, y: i = 0, opacity: s = 0 } = {}) {
19272
19278
  const l = getComputedStyle(r), c = +l.opacity, u = l.transform === "none" ? "" : l.transform, d = c * (1 - s), [p, _] = id(a), [f, g] = id(i);
19273
19279
  return {
19274
19280
  delay: e,
@@ -19279,8 +19285,8 @@ function j0(r, { delay: e = 0, duration: t = 400, easing: n = N0, x: a = 0, y: i
19279
19285
  opacity: ${c - d * k}`
19280
19286
  };
19281
19287
  }
19282
- var B0 = /* @__PURE__ */ V('<div><div class="layout-wrapper svelte-13h5jq9"><div><!></div></div></div>');
19283
- const R0 = {
19288
+ var R0 = /* @__PURE__ */ V('<div><div class="layout-wrapper svelte-13h5jq9"><div><!></div></div></div>');
19289
+ const U0 = {
19284
19290
  hash: "svelte-13h5jq9",
19285
19291
  code: `.layout-wrapper-outer.svelte-13h5jq9 {flex:1;display:flex;background-color:var(--rc-color-background);}.layout-wrapper-outer.rcb-navbar.svelte-13h5jq9 {justify-content:flex-end;}.layout-wrapper.svelte-13h5jq9 {width:100%;}.layout-content.svelte-13h5jq9 {box-sizing:border-box;background-color:var(--rc-color-background);color:var(--rc-color-grey-text-dark);display:flex;flex-direction:column;}.layout-content.rcb-navbar.svelte-13h5jq9 {display:flex;flex-direction:column;gap:var(--rc-spacing-gapXLarge-mobile);}
19286
19292
 
@@ -19291,15 +19297,15 @@ const R0 = {
19291
19297
  }`
19292
19298
  };
19293
19299
  function K_(r, e) {
19294
- ke(r, R0);
19300
+ ke(r, U0);
19295
19301
  const t = `rcb-${e.location}`;
19296
- var n = B0(), a = T(n), i = T(a), s = T(i);
19302
+ var n = R0(), a = T(n), i = T(a), s = T(i);
19297
19303
  yr(s, () => e.children ?? er), K(() => {
19298
19304
  ur(n, 1, `layout-wrapper-outer ${t}`, "svelte-13h5jq9"), ur(i, 1, `layout-content ${t}`, "svelte-13h5jq9");
19299
- }), xp(3, i, () => L0, () => ({ duration: 500, delay: 50 })), x(r, n);
19305
+ }), xp(3, i, () => j0, () => ({ duration: 500, delay: 50 })), x(r, n);
19300
19306
  }
19301
- var U0 = /* @__PURE__ */ V('<div class="navbar-body svelte-191m2u3"><!></div>'), V0 = /* @__PURE__ */ V('<div class="navbar-header svelte-191m2u3"><!></div> <!>', 1), W0 = /* @__PURE__ */ V('<div class="rcb-ui-navbar svelte-191m2u3"><!></div>');
19302
- const H0 = {
19307
+ var V0 = /* @__PURE__ */ V('<div class="navbar-body svelte-191m2u3"><!></div>'), W0 = /* @__PURE__ */ V('<div class="navbar-header svelte-191m2u3"><!></div> <!>', 1), H0 = /* @__PURE__ */ V('<div class="rcb-ui-navbar svelte-191m2u3"><!></div>');
19308
+ const Y0 = {
19303
19309
  hash: "svelte-191m2u3",
19304
19310
  code: `.rcb-ui-navbar.svelte-191m2u3 {width:100%;max-width:none;flex-shrink:0;background-color:var(--rc-color-background);}
19305
19311
 
@@ -19309,19 +19315,19 @@ const H0 = {
19309
19315
  @container layout-query-container (width >= 768px) {.rcb-ui-navbar.svelte-191m2u3 {width:50vw;display:flex;justify-content:flex-end;}.navbar-header.svelte-191m2u3 {padding-left:var(--rc-spacing-outerPadding-desktop);padding-right:var(--rc-spacing-outerPadding-desktop);}.navbar-body.svelte-191m2u3 {padding-left:var(--rc-spacing-outerPadding-desktop);padding-right:var(--rc-spacing-outerPadding-desktop);}
19310
19316
  }`
19311
19317
  };
19312
- function Y0(r, e) {
19313
- _e(e, !0), ke(r, H0);
19318
+ function G0(r, e) {
19319
+ _e(e, !0), ke(r, Y0);
19314
19320
  const t = X(e, "brandingAppearance", 3, void 0), n = /* @__PURE__ */ m(() => new Fn(t()).productInfoStyleVars);
19315
- var a = W0(), i = T(a);
19321
+ var a = H0(), i = T(a);
19316
19322
  K_(i, {
19317
19323
  location: "navbar",
19318
19324
  children: (s, l) => {
19319
- var c = V0(), u = ce(c), d = T(u);
19325
+ var c = W0(), u = ce(c), d = T(u);
19320
19326
  yr(d, () => e.headerContent ?? er);
19321
19327
  var p = W(u, 2);
19322
19328
  {
19323
19329
  var _ = (f) => {
19324
- var g = U0(), w = T(g);
19330
+ var g = V0(), w = T(g);
19325
19331
  yr(w, () => e.bodyContent ?? er), x(f, g);
19326
19332
  };
19327
19333
  G(p, (f) => {
@@ -19332,19 +19338,19 @@ function Y0(r, e) {
19332
19338
  }
19333
19339
  }), K(() => Fe(a, o(n))), x(r, a), ge();
19334
19340
  }
19335
- var G0 = /* @__PURE__ */ V('<button class="rcb-close-button svelte-8qlvu1" data-testid="close-button"><!></button>');
19336
- const K0 = {
19341
+ var K0 = /* @__PURE__ */ V('<button class="rcb-close-button svelte-8qlvu1" data-testid="close-button"><!></button>');
19342
+ const X0 = {
19337
19343
  hash: "svelte-8qlvu1",
19338
19344
  code: ".rcb-close-button.svelte-8qlvu1 {padding:10px;border:none;cursor:pointer;background-color:transparent;border-radius:50%;color:var(--rc-color-grey-text-dark);display:inline-flex;align-items:center;justify-content:center;width:fit-content;height:fit-content;}.rcb-close-button.svelte-8qlvu1:active {transition:outline 0.1s ease-in-out;outline:2px solid var(--rc-color-focus);}.rcb-close-button.svelte-8qlvu1:hover {color:var(--rc-color-grey-text-dark);}"
19339
19345
  };
19340
19346
  function X_(r, e) {
19341
- ke(r, K0);
19342
- var t = G0(), n = T(t);
19347
+ ke(r, X0);
19348
+ var t = K0(), n = T(t);
19343
19349
  qn(n, { name: "close" }), qr("click", t, function(a) {
19344
19350
  Ap.call(this, e, a);
19345
19351
  }), x(r, t);
19346
19352
  }
19347
- const X0 = `<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none">
19353
+ const Z0 = `<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none">
19348
19354
  <g clip-path="url(#clip0_6333_13826)">
19349
19355
  <rect opacity="0.2" width="12" height="12" rx="2.25" fill="black"/>
19350
19356
  <path fill-rule="evenodd" clip-rule="evenodd" d="M8.53206 2.06972C9.28201 2.17252 9.88339 2.78615 9.96146 3.52824L10.2298 6.07852C10.2893 6.64453 9.87503 7.12287 9.30441 7.14692C8.73379 7.17097 8.22294 6.73163 8.16339 6.16562L8.08036 5.37641L6.00414 7.35193C5.6039 7.73275 4.94623 7.70146 4.53518 7.28205C4.12413 6.86263 4.11537 6.2139 4.51561 5.83307L6.59182 3.85756L5.79425 3.74823C5.22225 3.66982 4.79448 3.15142 4.83881 2.59036C4.88313 2.02929 5.38276 1.63802 5.95476 1.71643L8.53206 2.06972Z" fill="black"/>
@@ -19356,18 +19362,18 @@ const X0 = `<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewB
19356
19362
  </defs>
19357
19363
  </svg>
19358
19364
  `;
19359
- var Z0 = /* @__PURE__ */ V('<div style="color:var(--rc-color-accent);" class="rcb-ui-asset-icon svelte-w5b346"><!></div>');
19360
- const J0 = {
19365
+ var J0 = /* @__PURE__ */ V('<div style="color:var(--rc-color-accent);" class="rcb-ui-asset-icon svelte-w5b346"><!></div>');
19366
+ const Q0 = {
19361
19367
  hash: "svelte-w5b346",
19362
19368
  code: "div.svelte-w5b346 {height:12px;width:12px;}"
19363
19369
  };
19364
- function Q0(r) {
19365
- ke(r, J0);
19366
- var e = Z0(), t = T(e);
19367
- pn(t, () => X0), x(r, e);
19370
+ function $0(r) {
19371
+ ke(r, Q0);
19372
+ var e = J0(), t = T(e);
19373
+ pn(t, () => Z0), x(r, e);
19368
19374
  }
19369
- var $0 = /* @__PURE__ */ V('<span class="rcb-sandbox-text svelte-bwwvt4">SANDBOX</span>'), ex = /* @__PURE__ */ V('<span class="rcb-sandbox-text svelte-bwwvt4">Share feedback</span>'), rx = /* @__PURE__ */ V('<a class="rcb-ui-sandbox-banner-link svelte-bwwvt4" target="_blank"><!> <!></a>'), tx = /* @__PURE__ */ V('<div><div class="rcb-sandbox-banner-spacer svelte-bwwvt4"></div> <div class="rcb-sandbox-banner-title-wrapper svelte-bwwvt4"><!></div> <div class="rcb-sandbox-banner-actions-wrapper svelte-bwwvt4" style="--arrow-fill-color: black"><!> <!></div></div>');
19370
- const nx = {
19375
+ var ex = /* @__PURE__ */ V('<span class="rcb-sandbox-text svelte-bwwvt4">SANDBOX</span>'), rx = /* @__PURE__ */ V('<span class="rcb-sandbox-text svelte-bwwvt4">Share feedback</span>'), tx = /* @__PURE__ */ V('<a class="rcb-ui-sandbox-banner-link svelte-bwwvt4" target="_blank"><!> <!></a>'), nx = /* @__PURE__ */ V('<div><div class="rcb-sandbox-banner-spacer svelte-bwwvt4"></div> <div class="rcb-sandbox-banner-title-wrapper svelte-bwwvt4"><!></div> <div class="rcb-sandbox-banner-actions-wrapper svelte-bwwvt4" style="--arrow-fill-color: black"><!> <!></div></div>');
19376
+ const ax = {
19371
19377
  hash: "svelte-bwwvt4",
19372
19378
  code: `.rcb-ui-sandbox-banner.svelte-bwwvt4 {position:static;background-color:var(--rc-color-warning);color:black;padding:var(--rc-spacing-gapMedium-mobile) 0;display:flex;justify-content:space-between;align-items:center;height:24px;}.rcb-sandbox-text.svelte-bwwvt4 {font-weight:bold;color:black;line-height:2;}.rcb-sandbox-banner-spacer.svelte-bwwvt4 {flex:1;}.rcb-sandbox-banner-title-wrapper.svelte-bwwvt4 {flex:0;text-align:center;}
19373
19379
 
@@ -19375,7 +19381,7 @@ const nx = {
19375
19381
  }.rcb-sandbox-banner-actions-wrapper.svelte-bwwvt4 {flex:1;display:flex;justify-content:flex-end;align-items:center;}.rcb-ui-sandbox-banner-link.svelte-bwwvt4 {display:flex;align-items:center;gap:var(--rc-spacing-gapSmall-mobile);line-height:12px;}`
19376
19382
  };
19377
19383
  function Z_(r, e) {
19378
- _e(e, !1), ke(r, nx);
19384
+ _e(e, !1), ke(r, ax);
19379
19385
  let t = X(e, "style", 8, ""), n = X(e, "isInElement", 8, !1), a = X(e, "brandingInfo", 8, null), i = /* @__PURE__ */ lr(!0);
19380
19386
  function s() {
19381
19387
  be.debugLog("closeBanner"), q(i, !1);
@@ -19384,13 +19390,13 @@ function Z_(r, e) {
19384
19390
  var l = Ee(), c = ce(l);
19385
19391
  {
19386
19392
  var u = (d) => {
19387
- var p = tx();
19393
+ var p = nx();
19388
19394
  let _;
19389
19395
  var f = W(T(p), 2), g = T(f);
19390
19396
  ze(g, {
19391
19397
  size: "caption-default",
19392
19398
  children: (b, v) => {
19393
- var P = $0();
19399
+ var P = ex();
19394
19400
  x(b, P);
19395
19401
  },
19396
19402
  $$slots: { default: !0 }
@@ -19398,13 +19404,13 @@ function Z_(r, e) {
19398
19404
  var w = W(f, 2), k = T(w);
19399
19405
  {
19400
19406
  var h = (b) => {
19401
- var v = rx(), P = T(v);
19402
- Q0(P);
19407
+ var v = tx(), P = T(v);
19408
+ $0(P);
19403
19409
  var I = W(P, 2);
19404
19410
  ze(I, {
19405
19411
  size: "caption-link",
19406
19412
  children: (E, C) => {
19407
- var S = ex();
19413
+ var S = rx();
19408
19414
  x(E, S);
19409
19415
  },
19410
19416
  $$slots: { default: !0 }
@@ -19420,7 +19426,7 @@ function Z_(r, e) {
19420
19426
  var y = W(k, 2);
19421
19427
  X_(y, { $$events: { click: s } }), K(() => {
19422
19428
  _ = ur(p, 1, "rcb-ui-sandbox-banner svelte-bwwvt4", null, _, { isInElement: n() }), Fe(p, t());
19423
- }), xp(2, p, () => j0, () => ({ y: -100, duration: 300 })), x(d, p);
19429
+ }), xp(2, p, () => B0, () => ({ y: -100, duration: 300 })), x(d, p);
19424
19430
  };
19425
19431
  G(c, (d) => {
19426
19432
  o(i) && d(u);
@@ -19428,15 +19434,15 @@ function Z_(r, e) {
19428
19434
  }
19429
19435
  x(r, l), ge();
19430
19436
  }
19431
- var ax = /* @__PURE__ */ V('<div class="rcb-ui-main svelte-iuk1gs"><!></div>');
19432
- const ox = {
19437
+ var ox = /* @__PURE__ */ V('<div class="rcb-ui-main svelte-iuk1gs"><!></div>');
19438
+ const ix = {
19433
19439
  hash: "svelte-iuk1gs",
19434
19440
  code: ".rcb-ui-main.svelte-iuk1gs {flex:1;display:flex;background-color:var(--rc-color-background);}"
19435
19441
  };
19436
- function ix(r, e) {
19437
- _e(e, !0), ke(r, ox);
19442
+ function sx(r, e) {
19443
+ _e(e, !0), ke(r, ix);
19438
19444
  const t = /* @__PURE__ */ m(() => new Fn(e.brandingAppearance).formStyleVars);
19439
- var n = ax(), a = T(n);
19445
+ var n = ox(), a = T(n);
19440
19446
  K_(a, {
19441
19447
  location: "main-block",
19442
19448
  children: (i, s) => {
@@ -19445,7 +19451,7 @@ function ix(r, e) {
19445
19451
  }
19446
19452
  }), K(() => Fe(n, o(t))), x(r, n), ge();
19447
19453
  }
19448
- var sx = /* @__PURE__ */ V("<!> <!>", 1), lx = /* @__PURE__ */ V("<!> <!>", 1);
19454
+ var lx = /* @__PURE__ */ V("<!> <!>", 1), cx = /* @__PURE__ */ V("<!> <!>", 1);
19449
19455
  function J_(r, e) {
19450
19456
  _e(e, !0);
19451
19457
  const t = /* @__PURE__ */ m(() => {
@@ -19471,7 +19477,7 @@ function J_(r, e) {
19471
19477
  return e.isInElement;
19472
19478
  },
19473
19479
  children: (i, s) => {
19474
- var l = lx(), c = ce(l);
19480
+ var l = cx(), c = ce(l);
19475
19481
  {
19476
19482
  var u = (p) => {
19477
19483
  Z_(p, {
@@ -19491,12 +19497,12 @@ function J_(r, e) {
19491
19497
  });
19492
19498
  }
19493
19499
  var d = W(c, 2);
19494
- z0(d, {
19500
+ O0(d, {
19495
19501
  get style() {
19496
19502
  return o(t);
19497
19503
  },
19498
19504
  children: (p, _) => {
19499
- var f = sx(), g = ce(f);
19505
+ var f = lx(), g = ce(f);
19500
19506
  {
19501
19507
  var w = (h) => {
19502
19508
  {
@@ -19504,7 +19510,7 @@ function J_(r, e) {
19504
19510
  var b;
19505
19511
  return (b = e.brandingInfo) == null ? void 0 : b.appearance;
19506
19512
  });
19507
- Y0(h, {
19513
+ G0(h, {
19508
19514
  get brandingAppearance() {
19509
19515
  return o(y);
19510
19516
  },
@@ -19527,7 +19533,7 @@ function J_(r, e) {
19527
19533
  var y;
19528
19534
  return (y = e.brandingInfo) == null ? void 0 : y.appearance;
19529
19535
  });
19530
- ix(k, {
19536
+ sx(k, {
19531
19537
  get brandingAppearance() {
19532
19538
  return o(h);
19533
19539
  },
@@ -19548,20 +19554,20 @@ function J_(r, e) {
19548
19554
  }
19549
19555
  ge();
19550
19556
  }
19551
- var cx = /* @__PURE__ */ V('<source type="image/webp"/>'), ux = /* @__PURE__ */ V('<picture class="rcb-app-icon-picture-container svelte-15hivnw"><!> <img class="rcb-app-icon svelte-15hivnw" alt="App icon"/></picture>'), dx = /* @__PURE__ */ V('<div class="rcb-app-icon loading svelte-15hivnw"></div>');
19552
- const px = {
19557
+ var ux = /* @__PURE__ */ V('<source type="image/webp"/>'), dx = /* @__PURE__ */ V('<picture class="rcb-app-icon-picture-container svelte-15hivnw"><!> <img class="rcb-app-icon svelte-15hivnw" alt="App icon"/></picture>'), px = /* @__PURE__ */ V('<div class="rcb-app-icon loading svelte-15hivnw"></div>');
19558
+ const _x = {
19553
19559
  hash: "svelte-15hivnw",
19554
19560
  code: ".rcb-app-icon.svelte-15hivnw {width:32px;height:32px;border-radius:12px;box-shadow:0px 1px 10px 0px rgba(0, 0, 0, 0.1);}.rcb-app-icon-picture-container.svelte-15hivnw {height:32px;}.rcb-app-icon.loading.svelte-15hivnw {background-color:gray;}"
19555
19561
  };
19556
- function _x(r, e) {
19557
- ke(r, px);
19562
+ function gx(r, e) {
19563
+ ke(r, _x);
19558
19564
  var t = Ee(), n = ce(t);
19559
19565
  {
19560
19566
  var a = (s) => {
19561
- var l = ux(), c = T(l);
19567
+ var l = dx(), c = T(l);
19562
19568
  {
19563
19569
  var u = (p) => {
19564
- var _ = cx();
19570
+ var _ = ux();
19565
19571
  K(() => he(_, "srcset", e.srcWebp)), x(p, _);
19566
19572
  };
19567
19573
  G(c, (p) => {
@@ -19571,7 +19577,7 @@ function _x(r, e) {
19571
19577
  var d = W(c, 2);
19572
19578
  K(() => he(d, "src", e.src)), x(s, l);
19573
19579
  }, i = (s) => {
19574
- var l = dx();
19580
+ var l = px();
19575
19581
  x(s, l);
19576
19582
  };
19577
19583
  G(n, (s) => {
@@ -19580,7 +19586,7 @@ function _x(r, e) {
19580
19586
  }
19581
19587
  x(r, t);
19582
19588
  }
19583
- const ai = (r) => !r || r.trim() === "" ? null : r, gx = {
19589
+ const ai = (r) => !r || r.trim() === "" ? null : r, fx = {
19584
19590
  icon: null,
19585
19591
  iconWebp: null,
19586
19592
  wordmark: null,
@@ -19589,9 +19595,9 @@ const ai = (r) => !r || r.trim() === "" ? null : r, gx = {
19589
19595
  srcWebp: null,
19590
19596
  wordmarkSrc: null,
19591
19597
  wordmarkSrcWebp: null
19592
- }, fx = (r) => {
19598
+ }, mx = (r) => {
19593
19599
  if (!r)
19594
- return gx;
19600
+ return fx;
19595
19601
  const e = ai(r.app_icon), t = ai(r.app_icon_webp), n = ai(r.app_wordmark), a = ai(r.app_wordmark_webp);
19596
19602
  return {
19597
19603
  src: e ? Ea(e) : null,
@@ -19600,30 +19606,30 @@ const ai = (r) => !r || r.trim() === "" ? null : r, gx = {
19600
19606
  wordmarkSrcWebp: a ? Ea(a) : null
19601
19607
  };
19602
19608
  };
19603
- var mx = /* @__PURE__ */ V('<button class="rcb-back-button svelte-7773d6" data-testid="close-button"><!></button>');
19604
- const hx = {
19609
+ var hx = /* @__PURE__ */ V('<button class="rcb-back-button svelte-7773d6" data-testid="close-button"><!></button>');
19610
+ const vx = {
19605
19611
  hash: "svelte-7773d6",
19606
19612
  code: ".rcb-back-button.svelte-7773d6 {padding:8px;border:none;cursor:pointer;background-color:transparent;border-radius:50%;color:var(--rc-color-grey-text-dark);display:inline-flex;align-items:center;justify-content:center;width:fit-content;height:fit-content;}"
19607
19613
  };
19608
- function vx(r, e) {
19609
- ke(r, hx);
19614
+ function yx(r, e) {
19615
+ ke(r, vx);
19610
19616
  let t = X(e, "disabled", 3, !1);
19611
- var n = mx(), a = T(n);
19617
+ var n = hx(), a = T(n);
19612
19618
  qn(a, { name: "back" }), K(() => n.disabled = t()), qr("click", n, function(i) {
19613
19619
  Ap.call(this, e, i);
19614
19620
  }), x(r, n);
19615
19621
  }
19616
- var yx = /* @__PURE__ */ V('<source type="image/webp" class="rcb-app-icon svelte-7clux6"/>'), bx = /* @__PURE__ */ V('<picture class="rcb-app-icon svelte-7clux6"><!> <img class="rcb-app-icon svelte-7clux6" alt="App icon"/></picture>');
19617
- const kx = {
19622
+ var bx = /* @__PURE__ */ V('<source type="image/webp" class="rcb-app-icon svelte-7clux6"/>'), kx = /* @__PURE__ */ V('<picture class="rcb-app-icon svelte-7clux6"><!> <img class="rcb-app-icon svelte-7clux6" alt="App icon"/></picture>');
19623
+ const wx = {
19618
19624
  hash: "svelte-7clux6",
19619
19625
  code: ".rcb-app-icon.svelte-7clux6 {height:32px;}"
19620
19626
  };
19621
- function wx(r, e) {
19622
- ke(r, kx);
19623
- var t = bx(), n = T(t);
19627
+ function Px(r, e) {
19628
+ ke(r, wx);
19629
+ var t = kx(), n = T(t);
19624
19630
  {
19625
19631
  var a = (s) => {
19626
- var l = yx();
19632
+ var l = bx();
19627
19633
  K(() => he(l, "srcset", e.srcWebp)), x(s, l);
19628
19634
  };
19629
19635
  G(n, (s) => {
@@ -19633,8 +19639,8 @@ function wx(r, e) {
19633
19639
  var i = W(n, 2);
19634
19640
  K(() => he(i, "src", e.src)), x(r, t);
19635
19641
  }
19636
- var Px = /* @__PURE__ */ V('<div class="rcb-back-wrapper svelte-11a99mf"><!></div>'), xx = /* @__PURE__ */ V('<div class="rcb-close-wrapper svelte-11a99mf"><!></div>'), Ex = /* @__PURE__ */ V('<div><!> <div class="rcb-header svelte-11a99mf"><div class="rcb-title svelte-11a99mf"><!> <!></div></div> <!></div>');
19637
- const Sx = {
19642
+ var xx = /* @__PURE__ */ V('<div class="rcb-back-wrapper svelte-11a99mf"><!></div>'), Ex = /* @__PURE__ */ V('<div class="rcb-close-wrapper svelte-11a99mf"><!></div>'), Sx = /* @__PURE__ */ V('<div><!> <div class="rcb-header svelte-11a99mf"><div class="rcb-title svelte-11a99mf"><!> <!></div></div> <!></div>');
19643
+ const Ix = {
19638
19644
  hash: "svelte-11a99mf",
19639
19645
  code: `.rcb-header-wrapper.svelte-11a99mf {display:flex;position:relative;justify-content:space-between;align-items:center;}.rcb-header.svelte-11a99mf {display:flex;flex-direction:row;align-items:center;padding-top:var(--rc-spacing-gapSmall-mobile);padding-bottom:var(--rc-spacing-gapSmall-mobile);height:40px;justify-content:space-between;}.rcb-title.svelte-11a99mf {display:flex;align-items:center;position:relative;gap:var(--rc-spacing-gapMedium-mobile);}.rcb-close-wrapper.svelte-11a99mf,
19640
19646
  .rcb-back-wrapper.svelte-11a99mf {padding:var(--rc-spacing-gapSmall-mobile);}
@@ -19645,18 +19651,18 @@ const Sx = {
19645
19651
  @container layout-query-container (width >= 768px) {.rcb-close-wrapper.svelte-11a99mf {display:none;}.rcb-back-wrapper.svelte-11a99mf {position:absolute;left:-48px;margin-left:0;}
19646
19652
  }`
19647
19653
  };
19648
- function Ix(r, e) {
19649
- _e(e, !0), ke(r, Sx);
19650
- const t = /* @__PURE__ */ m(() => fx(e.brandingInfo)), n = /* @__PURE__ */ m(() => o(t).wordmarkSrc), a = /* @__PURE__ */ m(() => o(t).wordmarkSrcWebp), i = /* @__PURE__ */ m(() => o(t).src), s = /* @__PURE__ */ m(() => o(t).srcWebp), l = () => {
19654
+ function Cx(r, e) {
19655
+ _e(e, !0), ke(r, Ix);
19656
+ const t = /* @__PURE__ */ m(() => mx(e.brandingInfo)), n = /* @__PURE__ */ m(() => o(t).wordmarkSrc), a = /* @__PURE__ */ m(() => o(t).wordmarkSrcWebp), i = /* @__PURE__ */ m(() => o(t).src), s = /* @__PURE__ */ m(() => o(t).srcWebp), l = () => {
19651
19657
  e.onClose && e.onClose();
19652
19658
  };
19653
- var c = Ex();
19659
+ var c = Sx();
19654
19660
  let u;
19655
19661
  var d = T(c);
19656
19662
  {
19657
19663
  var p = (P) => {
19658
- var I = Px(), E = T(I);
19659
- vx(E, { $$events: { click: l } }), x(P, I);
19664
+ var I = xx(), E = T(I);
19665
+ yx(E, { $$events: { click: l } }), x(P, I);
19660
19666
  };
19661
19667
  G(d, (P) => {
19662
19668
  e.showCloseButton && P(p);
@@ -19665,7 +19671,7 @@ function Ix(r, e) {
19665
19671
  var _ = W(d, 2), f = T(_), g = T(f);
19666
19672
  {
19667
19673
  var w = (P) => {
19668
- wx(P, {
19674
+ Px(P, {
19669
19675
  get src() {
19670
19676
  return o(n);
19671
19677
  },
@@ -19677,7 +19683,7 @@ function Ix(r, e) {
19677
19683
  var I = Ee(), E = ce(I);
19678
19684
  {
19679
19685
  var C = (S) => {
19680
- _x(S, {
19686
+ gx(S, {
19681
19687
  get src() {
19682
19688
  return o(i);
19683
19689
  },
@@ -19722,7 +19728,7 @@ function Ix(r, e) {
19722
19728
  var b = W(_, 2);
19723
19729
  {
19724
19730
  var v = (P) => {
19725
- var I = xx(), E = T(I);
19731
+ var I = Ex(), E = T(I);
19726
19732
  X_(E, { $$events: { click: l } }), x(P, I);
19727
19733
  };
19728
19734
  G(b, (P) => {
@@ -19731,8 +19737,8 @@ function Ix(r, e) {
19731
19737
  }
19732
19738
  K(() => u = ur(c, 1, "rcb-header-wrapper svelte-11a99mf", null, u, { "rcb-with-close-button": e.showCloseButton })), x(r, c), ge();
19733
19739
  }
19734
- var Cx = /* @__PURE__ */ V("<!> <!> <!> <!>", 1);
19735
- function Tx(r, e) {
19740
+ var Tx = /* @__PURE__ */ V("<!> <!> <!> <!>", 1);
19741
+ function Dx(r, e) {
19736
19742
  _e(e, !0);
19737
19743
  let t = X(e, "showDiscountCodeField", 3, !1), n = X(e, "draftDiscountCode", 3, ""), a = X(e, "appliedDiscountCode", 3, null), i = X(e, "discountCodeError", 3, null), s = X(e, "isUpdatingDiscountCode", 3, !1), l = X(e, "isDiscountCodeControlsEnabled", 3, !1), c = X(e, "onDraftDiscountCodeChange", 3, void 0), u = X(e, "onApplyDiscountCode", 3, void 0), d = X(e, "onRemoveDiscountCode", 3, void 0), p = X(e, "onPaymentProcessingChange", 3, void 0), _ = X(e, "onSessionPricingUpdated", 3, void 0), f = X(e, "onClose", 3, void 0), g = X(e, "hideBackButton", 3, !1), w = X(e, "lastTaxCustomerDetailsStore", 19, () => mr(null));
19738
19744
  const k = wo(e.productDetails, e.purchaseOptionToUse);
@@ -19778,7 +19784,7 @@ function Tx(r, e) {
19778
19784
  navbarHeaderContent: (I) => {
19779
19785
  {
19780
19786
  let E = /* @__PURE__ */ m(() => !e.isInElement && !!f() && !g());
19781
- Ix(I, {
19787
+ Cx(I, {
19782
19788
  get brandingInfo() {
19783
19789
  return e.brandingInfo;
19784
19790
  },
@@ -19797,7 +19803,7 @@ function Tx(r, e) {
19797
19803
  var C, S;
19798
19804
  return ((S = (C = e.brandingInfo) == null ? void 0 : C.appearance) == null ? void 0 : S.show_product_description) ?? !1;
19799
19805
  });
19800
- D0(I, {
19806
+ A0(I, {
19801
19807
  get productDetails() {
19802
19808
  return e.productDetails;
19803
19809
  },
@@ -19841,10 +19847,10 @@ function Tx(r, e) {
19841
19847
  }
19842
19848
  },
19843
19849
  mainContent: (I) => {
19844
- var E = Cx(), C = ce(E);
19850
+ var E = Tx(), C = ce(E);
19845
19851
  {
19846
19852
  var S = (z) => {
19847
- H1(z);
19853
+ Y1(z);
19848
19854
  };
19849
19855
  G(C, (z) => {
19850
19856
  e.currentPage === "payment-entry-loading" && z(S);
@@ -19853,7 +19859,7 @@ function Tx(r, e) {
19853
19859
  var F = W(C, 2);
19854
19860
  {
19855
19861
  var D = (z) => {
19856
- v1(z, {
19862
+ y1(z, {
19857
19863
  get productDetails() {
19858
19864
  return e.productDetails;
19859
19865
  },
@@ -19965,26 +19971,26 @@ function Tx(r, e) {
19965
19971
  function Q_(r) {
19966
19972
  return r.trim() === "" ? "You need to provide your email address to continue." : r.match(/^[^@]+@[^@]+\.[^@]+$/) ? null : "Email is not valid. Please provide a valid email address.";
19967
19973
  }
19968
- function Dx(r) {
19974
+ function Ax(r) {
19969
19975
  if (r && !r.match(/^[A-Z]{3}$/)) {
19970
19976
  const e = `Currency code ${r} is not valid. Please provide a valid ISO 4217 currency code.`;
19971
19977
  throw be.errorLog(e), new Qe(Me.ConfigurationError, e);
19972
19978
  }
19973
19979
  }
19974
- function Ax(r, e, t) {
19980
+ function Fx(r, e, t) {
19975
19981
  const n = t == null ? void 0 : t.selected_purchase_option;
19976
19982
  return n ? vh(
19977
19983
  r.productType,
19978
19984
  n
19979
19985
  ) ?? e : e;
19980
19986
  }
19981
- function Fx(r, e) {
19987
+ function qx(r, e) {
19982
19988
  var oe;
19983
19989
  _e(e, !0);
19984
19990
  const t = X(e, "customTranslations", 19, () => ({})), n = X(e, "skipSuccessPage", 3, !1), a = X(e, "showDiscountCodeField", 3, !1), i = X(e, "discountCode", 3, void 0), s = X(e, "hideBackButton", 3, !1), l = e.customerEmail ? Q_(e.customerEmail) : null;
19985
19991
  let c = /* @__PURE__ */ re(rr(l ? void 0 : e.customerEmail)), u = rr(e.rcPackage.webBillingProduct), d = /* @__PURE__ */ re(null);
19986
19992
  const p = mr(null);
19987
- let _ = /* @__PURE__ */ m(() => Ax(u, e.purchaseOption, o(d))), f = /* @__PURE__ */ re(null), g = /* @__PURE__ */ re(rr(i() ?? "")), w = /* @__PURE__ */ re(null), k = /* @__PURE__ */ re(!1), h = /* @__PURE__ */ re(!1), y = /* @__PURE__ */ re("payment-entry-loading"), b = /* @__PURE__ */ re(null), v = /* @__PURE__ */ re(rr({})), P = /* @__PURE__ */ re(null), I = /* @__PURE__ */ re(void 0), E = /* @__PURE__ */ m(() => {
19993
+ let _ = /* @__PURE__ */ m(() => Fx(u, e.purchaseOption, o(d))), f = /* @__PURE__ */ re(null), g = /* @__PURE__ */ re(rr(i() ?? "")), w = /* @__PURE__ */ re(null), k = /* @__PURE__ */ re(!1), h = /* @__PURE__ */ re(!1), y = /* @__PURE__ */ re("payment-entry-loading"), b = /* @__PURE__ */ re(null), v = /* @__PURE__ */ re(rr({})), P = /* @__PURE__ */ re(null), I = /* @__PURE__ */ re(void 0), E = /* @__PURE__ */ m(() => {
19988
19994
  var B, de, J;
19989
19995
  return ((J = (de = (B = o(d)) == null ? void 0 : B.applied_discounts) == null ? void 0 : de[0]) == null ? void 0 : J.discount_code) ?? null;
19990
19996
  }), C = /* @__PURE__ */ m(() => {
@@ -20132,7 +20138,7 @@ function Fx(r, e) {
20132
20138
  };
20133
20139
  {
20134
20140
  let B = /* @__PURE__ */ m(() => e.purchases.isSandbox()), de = /* @__PURE__ */ m(() => o(y) === "payment-entry" && !o(h)), J = /* @__PURE__ */ m(() => o(c) ?? null);
20135
- Tx(r, {
20141
+ Dx(r, {
20136
20142
  get isSandbox() {
20137
20143
  return o(B);
20138
20144
  },
@@ -20222,7 +20228,7 @@ function sd(r, e, t, n, a, i, s) {
20222
20228
  }
20223
20229
  l.done ? e(c) : Promise.resolve(c).then(n, a);
20224
20230
  }
20225
- function qx(r) {
20231
+ function Mx(r) {
20226
20232
  return function() {
20227
20233
  var e = this, t = arguments;
20228
20234
  return new Promise(function(n, a) {
@@ -20237,8 +20243,8 @@ function qx(r) {
20237
20243
  });
20238
20244
  };
20239
20245
  }
20240
- function Mx(r, e, t) {
20241
- return (e = Nx(e)) in r ? Object.defineProperty(r, e, {
20246
+ function zx(r, e, t) {
20247
+ return (e = Lx(e)) in r ? Object.defineProperty(r, e, {
20242
20248
  value: t,
20243
20249
  enumerable: !0,
20244
20250
  configurable: !0,
@@ -20259,7 +20265,7 @@ function Sl(r) {
20259
20265
  for (var e = 1; e < arguments.length; e++) {
20260
20266
  var t = arguments[e] != null ? arguments[e] : {};
20261
20267
  e % 2 ? ld(Object(t), !0).forEach(function(n) {
20262
- Mx(r, n, t[n]);
20268
+ zx(r, n, t[n]);
20263
20269
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : ld(Object(t)).forEach(function(n) {
20264
20270
  Object.defineProperty(r, n, Object.getOwnPropertyDescriptor(t, n));
20265
20271
  });
@@ -20268,14 +20274,14 @@ function Sl(r) {
20268
20274
  }
20269
20275
  function $_(r, e) {
20270
20276
  if (r == null) return {};
20271
- var t, n, a = zx(r, e);
20277
+ var t, n, a = Ox(r, e);
20272
20278
  if (Object.getOwnPropertySymbols) {
20273
20279
  var i = Object.getOwnPropertySymbols(r);
20274
20280
  for (n = 0; n < i.length; n++) t = i[n], e.includes(t) || {}.propertyIsEnumerable.call(r, t) && (a[t] = r[t]);
20275
20281
  }
20276
20282
  return a;
20277
20283
  }
20278
- function zx(r, e) {
20284
+ function Ox(r, e) {
20279
20285
  if (r == null) return {};
20280
20286
  var t = {};
20281
20287
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
@@ -20568,7 +20574,7 @@ function Il() {
20568
20574
  }
20569
20575
  }, e;
20570
20576
  }
20571
- function Ox(r, e) {
20577
+ function Nx(r, e) {
20572
20578
  if (typeof r != "object" || !r) return r;
20573
20579
  var t = r[Symbol.toPrimitive];
20574
20580
  if (t !== void 0) {
@@ -20578,22 +20584,22 @@ function Ox(r, e) {
20578
20584
  }
20579
20585
  return (e === "string" ? String : Number)(r);
20580
20586
  }
20581
- function Nx(r) {
20582
- var e = Ox(r, "string");
20587
+ function Lx(r) {
20588
+ var e = Nx(r, "string");
20583
20589
  return typeof e == "symbol" ? e : e + "";
20584
20590
  }
20585
20591
  var Po = {
20586
20592
  CLASSIC: "classic",
20587
20593
  V1: "v1"
20588
- }, Lx = Po.V1, jx = "https://cdn.paddle.com/paddle/paddle.js", Bx = "https://cdn.paddle.com/paddle/v2/paddle.js", Rx = {
20589
- url: jx
20590
- }, Ux = {
20594
+ }, jx = Po.V1, Bx = "https://cdn.paddle.com/paddle/paddle.js", Rx = "https://cdn.paddle.com/paddle/v2/paddle.js", Ux = {
20591
20595
  url: Bx
20596
+ }, Vx = {
20597
+ url: Rx
20592
20598
  };
20593
- function Vx(r) {
20599
+ function Wx(r) {
20594
20600
  return document.querySelector('script[src="'.concat(r, '"]')) || void 0;
20595
20601
  }
20596
- function Wx(r) {
20602
+ function Hx(r) {
20597
20603
  var e = document.createElement("script");
20598
20604
  e.src = r;
20599
20605
  var t = document.head || document.body;
@@ -20604,14 +20610,14 @@ function Wx(r) {
20604
20610
  var Gs = {
20605
20611
  classic: void 0,
20606
20612
  v1: void 0
20607
- }, Hx = {
20613
+ }, Yx = {
20608
20614
  classic: "PaddleClassic",
20609
20615
  v1: "PaddleBillingV1"
20610
20616
  };
20611
- function Yx(r) {
20612
- var e, t = (e = Gx(r)) === null || e === void 0 ? void 0 : e.url;
20617
+ function Gx(r) {
20618
+ var e, t = (e = Kx(r)) === null || e === void 0 ? void 0 : e.url;
20613
20619
  if (t) {
20614
- var n = Gs[r], a = Hx[r];
20620
+ var n = Gs[r], a = Yx[r];
20615
20621
  return n !== void 0 ? n : (Gs[r] = new Promise(function(i, s) {
20616
20622
  if (typeof window > "u") {
20617
20623
  i(void 0);
@@ -20622,8 +20628,8 @@ function Yx(r) {
20622
20628
  return;
20623
20629
  }
20624
20630
  try {
20625
- var l = Vx(t);
20626
- l || (l = Wx(t)), l.addEventListener("load", function() {
20631
+ var l = Wx(t);
20632
+ l || (l = Hx(t)), l.addEventListener("load", function() {
20627
20633
  window[a] ? i(window[a]) : s(new Error("Paddle.js not available"));
20628
20634
  }), l.addEventListener("error", function() {
20629
20635
  s(new Error("Failed to load Paddle.js - ".concat(r)));
@@ -20635,28 +20641,28 @@ function Yx(r) {
20635
20641
  }), Gs[r]);
20636
20642
  }
20637
20643
  }
20638
- function Gx(r) {
20644
+ function Kx(r) {
20639
20645
  if (r === Po.CLASSIC)
20640
- return Rx;
20641
- if (r === Po.V1)
20642
20646
  return Ux;
20647
+ if (r === Po.V1)
20648
+ return Vx;
20643
20649
  console.error("[Paddle] Unknown Paddle Version");
20644
20650
  }
20645
- var Kx = ["environment", "version"], Xx = ["environment", "version"];
20646
- function Zx(r, e) {
20651
+ var Xx = ["environment", "version"], Zx = ["environment", "version"];
20652
+ function Jx(r, e) {
20647
20653
  var t = r.environment;
20648
20654
  r.version;
20649
- var n = $_(r, Kx);
20655
+ var n = $_(r, Xx);
20650
20656
  try {
20651
20657
  t && e.Environment.set(t), e.Initialized ? e.Update(Sl({}, n)) : e.Initialize(Sl({}, n));
20652
20658
  } catch (a) {
20653
20659
  console.warn("[Paddle] Paddle Initialization failed. Please check the inputs", a);
20654
20660
  }
20655
20661
  }
20656
- function Jx(r, e) {
20662
+ function Qx(r, e) {
20657
20663
  var t = r.environment;
20658
20664
  r.version;
20659
- var n = $_(r, Xx);
20665
+ var n = $_(r, Zx);
20660
20666
  try {
20661
20667
  t && e.Environment.set(t), e.Setup(Sl({}, n));
20662
20668
  } catch (a) {
@@ -20683,22 +20689,22 @@ var pd;
20683
20689
  (function(r) {
20684
20690
  r.DRAFT = "draft", r.READY = "ready", r.COMPLETED = "completed", r.BILLED = "billed", r.canceled = "canceled", r.PAST_DUE = "past_due";
20685
20691
  })(pd || (pd = {}));
20686
- function Qx(r) {
20692
+ function $x(r) {
20687
20693
  return Cl.apply(this, arguments);
20688
20694
  }
20689
20695
  function Cl() {
20690
- return Cl = qx(/* @__PURE__ */ Il().mark(function r(e) {
20696
+ return Cl = Mx(/* @__PURE__ */ Il().mark(function r(e) {
20691
20697
  var t, n;
20692
20698
  return Il().wrap(function(i) {
20693
20699
  for (; ; ) switch (i.prev = i.next) {
20694
20700
  case 0:
20695
- return t = (e == null ? void 0 : e.version) || Lx, i.next = 3, Yx(t);
20701
+ return t = (e == null ? void 0 : e.version) || jx, i.next = 3, Gx(t);
20696
20702
  case 3:
20697
20703
  if (n = i.sent, !n) {
20698
20704
  i.next = 9;
20699
20705
  break;
20700
20706
  }
20701
- return e && (t === Po.V1 ? Zx(e, n) : t === Po.CLASSIC && Jx(e, n)), i.abrupt("return", n);
20707
+ return e && (t === Po.V1 ? Jx(e, n) : t === Po.CLASSIC && Qx(e, n)), i.abrupt("return", n);
20702
20708
  case 9:
20703
20709
  return console.error("[Paddle] Error Loading Paddle"), i.abrupt("return");
20704
20710
  case 11:
@@ -20708,8 +20714,8 @@ function Cl() {
20708
20714
  }, r);
20709
20715
  })), Cl.apply(this, arguments);
20710
20716
  }
20711
- const eg = "paddle-checkout-container", $x = 450, eE = "width:100%; min-width:312px; background-color:transparent; border:none;";
20712
- function rE({
20717
+ const eg = "paddle-checkout-container", eE = 450, rE = "width:100%; min-width:312px; background-color:transparent; border:none;";
20718
+ function tE({
20713
20719
  transactionId: r,
20714
20720
  locale: e,
20715
20721
  customerEmail: t,
@@ -20728,8 +20734,8 @@ function rE({
20728
20734
  ...i,
20729
20735
  displayMode: "inline",
20730
20736
  frameTarget: eg,
20731
- frameInitialHeight: $x,
20732
- frameStyle: eE
20737
+ frameInitialHeight: eE,
20738
+ frameStyle: rE
20733
20739
  } : {
20734
20740
  ...i,
20735
20741
  displayMode: "overlay"
@@ -20740,7 +20746,7 @@ function rE({
20740
20746
  ...t && { customer: { email: t } }
20741
20747
  };
20742
20748
  }
20743
- class tE {
20749
+ class nE {
20744
20750
  constructor(e, t, n = 10) {
20745
20751
  ee(this, "paddleInstance");
20746
20752
  ee(this, "backend");
@@ -20757,7 +20763,7 @@ class tE {
20757
20763
  ), this.paddleInstance;
20758
20764
  const n = t ? "sandbox" : "production";
20759
20765
  try {
20760
- const i = await Qx({
20766
+ const i = await $x({
20761
20767
  token: e,
20762
20768
  version: "v1",
20763
20769
  environment: n
@@ -20889,7 +20895,7 @@ class tE {
20889
20895
  }
20890
20896
  }
20891
20897
  });
20892
- const k = rE({
20898
+ const k = tE({
20893
20899
  transactionId: t,
20894
20900
  locale: _,
20895
20901
  customerEmail: p,
@@ -20987,13 +20993,13 @@ const Ai = (r, e) => r instanceof ve ? r : r instanceof Qe ? ve.fromPurchasesErr
20987
20993
  me.UnknownError,
20988
20994
  e
20989
20995
  );
20990
- var nE = /* @__PURE__ */ V('<!> <div class="rcb-fullscreen-wrapper svelte-skuziz"><div class="rcb-fullscreen-content svelte-skuziz"><!></div></div>', 1);
20991
- const aE = {
20996
+ var aE = /* @__PURE__ */ V('<!> <div class="rcb-fullscreen-wrapper svelte-skuziz"><div class="rcb-fullscreen-content svelte-skuziz"><!></div></div>', 1);
20997
+ const oE = {
20992
20998
  hash: "svelte-skuziz",
20993
20999
  code: ".rcb-fullscreen-wrapper.svelte-skuziz {width:100%;min-height:100%;display:flex;flex-direction:column;align-items:center;}.rcb-fullscreen-content.svelte-skuziz {flex:1;width:100%;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--rc-color-grey-text-dark);}"
20994
21000
  };
20995
21001
  function rg(r, e) {
20996
- _e(e, !0), ke(r, aE);
21002
+ _e(e, !0), ke(r, oE);
20997
21003
  const t = () => Be(i, "$brandingAppearanceStore", n), [n, a] = Ze(), i = He(jn), s = /* @__PURE__ */ m(() => {
20998
21004
  var u;
20999
21005
  return t() ?? ((u = e.brandingInfo) == null ? void 0 : u.appearance) ?? null;
@@ -21017,7 +21023,7 @@ function rg(r, e) {
21017
21023
  return e.isInElement;
21018
21024
  },
21019
21025
  children: (d, p) => {
21020
- var _ = nE(), f = ce(_);
21026
+ var _ = aE(), f = ce(_);
21021
21027
  {
21022
21028
  var g = (y) => {
21023
21029
  Z_(y, {
@@ -21044,13 +21050,13 @@ function rg(r, e) {
21044
21050
  }
21045
21051
  ge(), a();
21046
21052
  }
21047
- var oE = /* @__PURE__ */ V("<!> <!> <!>", 1), iE = /* @__PURE__ */ V('<div class="rcb-ui-loading-container svelte-1r889ax"><!></div>');
21048
- const sE = {
21053
+ var iE = /* @__PURE__ */ V("<!> <!> <!>", 1), sE = /* @__PURE__ */ V('<div class="rcb-ui-loading-container svelte-1r889ax"><!></div>');
21054
+ const lE = {
21049
21055
  hash: "svelte-1r889ax",
21050
21056
  code: ".rcb-ui-loading-container.svelte-1r889ax {display:flex;flex-direction:column;align-items:center;}"
21051
21057
  };
21052
- function lE(r, e) {
21053
- _e(e, !0), ke(r, sE);
21058
+ function cE(r, e) {
21059
+ _e(e, !0), ke(r, lE);
21054
21060
  const t = () => Be(i, "$translator", n), [n, a] = Ze(), i = He(fr);
21055
21061
  rg(r, {
21056
21062
  get brandingInfo() {
@@ -21066,12 +21072,12 @@ function lE(r, e) {
21066
21072
  var c = Ee(), u = ce(c);
21067
21073
  {
21068
21074
  var d = (_) => {
21069
- var f = iE(), g = T(f);
21075
+ var f = sE(), g = T(f);
21070
21076
  Ro(g, {
21071
21077
  gap: "medium",
21072
21078
  align: "center",
21073
21079
  children: (w, k) => {
21074
- var h = oE(), y = ce(h);
21080
+ var h = iE(), y = ce(h);
21075
21081
  rs(y, { color: "var(--rc-color-grey-text-dark)" });
21076
21082
  var b = W(y, 2);
21077
21083
  ze(b, {
@@ -21169,16 +21175,16 @@ function lE(r, e) {
21169
21175
  $$slots: { mainContent: !0 }
21170
21176
  }), ge(), a();
21171
21177
  }
21172
- var cE = /* @__PURE__ */ V('<span class="rcb-paddle-summary-muted svelte-1k1pux8">inc. tax</span>'), uE = /* @__PURE__ */ V('<span class="rcb-paddle-summary-muted rcb-paddle-summary-price-name svelte-1k1pux8"> </span>'), dE = /* @__PURE__ */ V('<span class="rcb-paddle-summary-muted svelte-1k1pux8"> </span>'), pE = /* @__PURE__ */ V('<div class="rcb-paddle-summary-row svelte-1k1pux8"><span class="rcb-paddle-summary-muted svelte-1k1pux8"> </span> <span> </span></div>'), _E = /* @__PURE__ */ V('<div class="rcb-paddle-summary-row svelte-1k1pux8"><span class="rcb-paddle-summary-muted svelte-1k1pux8"> </span> <span> </span></div>'), gE = /* @__PURE__ */ V('<div class="rcb-paddle-summary-card svelte-1k1pux8"><div class="rcb-paddle-summary-row svelte-1k1pux8"><span class="rcb-paddle-summary-muted svelte-1k1pux8"> </span> <span> </span></div> <!> <hr class="rcb-paddle-summary-divider svelte-1k1pux8"/> <div class="rcb-paddle-summary-row rcb-paddle-summary-row-strong svelte-1k1pux8"><span> </span> <span> </span></div> <!></div>'), fE = /* @__PURE__ */ V('<div class="rcb-paddle-summary svelte-1k1pux8"><div class="rcb-paddle-summary-card svelte-1k1pux8"><div class="rcb-paddle-summary-amount-row svelte-1k1pux8"><span class="rcb-paddle-summary-amount svelte-1k1pux8"> </span> <!></div> <!> <div class="rcb-paddle-summary-product svelte-1k1pux8"><!> <!> <div class="rcb-paddle-summary-product-price svelte-1k1pux8"><span> </span> <!></div></div></div> <!></div>');
21173
- const mE = {
21178
+ var uE = /* @__PURE__ */ V('<span class="rcb-paddle-summary-muted svelte-1k1pux8">inc. tax</span>'), dE = /* @__PURE__ */ V('<span class="rcb-paddle-summary-muted rcb-paddle-summary-price-name svelte-1k1pux8"> </span>'), pE = /* @__PURE__ */ V('<span class="rcb-paddle-summary-muted svelte-1k1pux8"> </span>'), _E = /* @__PURE__ */ V('<div class="rcb-paddle-summary-row svelte-1k1pux8"><span class="rcb-paddle-summary-muted svelte-1k1pux8"> </span> <span> </span></div>'), gE = /* @__PURE__ */ V('<div class="rcb-paddle-summary-row svelte-1k1pux8"><span class="rcb-paddle-summary-muted svelte-1k1pux8"> </span> <span> </span></div>'), fE = /* @__PURE__ */ V('<div class="rcb-paddle-summary-card svelte-1k1pux8"><div class="rcb-paddle-summary-row svelte-1k1pux8"><span class="rcb-paddle-summary-muted svelte-1k1pux8"> </span> <span> </span></div> <!> <hr class="rcb-paddle-summary-divider svelte-1k1pux8"/> <div class="rcb-paddle-summary-row rcb-paddle-summary-row-strong svelte-1k1pux8"><span> </span> <span> </span></div> <!></div>'), mE = /* @__PURE__ */ V('<div class="rcb-paddle-summary svelte-1k1pux8"><div class="rcb-paddle-summary-card svelte-1k1pux8"><div class="rcb-paddle-summary-amount-row svelte-1k1pux8"><span class="rcb-paddle-summary-amount svelte-1k1pux8"> </span> <!></div> <!> <div class="rcb-paddle-summary-product svelte-1k1pux8"><!> <!> <div class="rcb-paddle-summary-product-price svelte-1k1pux8"><span> </span> <!></div></div></div> <!></div>');
21179
+ const hE = {
21174
21180
  hash: "svelte-1k1pux8",
21175
21181
  code: `.rcb-paddle-summary.svelte-1k1pux8 {display:flex;flex-direction:column;gap:var(--rc-spacing-gapLarge-mobile, 16px);width:100%;}.rcb-paddle-summary-card.svelte-1k1pux8 {background:var(--rcb-card-bg);border-radius:16px;padding:28px;display:flex;flex-direction:column;gap:var(--rc-spacing-gapMedium-mobile, 12px);}.rcb-paddle-summary-amount-row.svelte-1k1pux8 {display:flex;align-items:baseline;gap:8px;}.rcb-paddle-summary-amount.svelte-1k1pux8 {color:var(--rc-color-primary);font-weight:700;font-size:2rem;line-height:1.1;}.rcb-paddle-summary-product.svelte-1k1pux8 {display:flex;flex-direction:column;gap:2px;
21176
21182
  /* Extra separation between the amount/billing line and the product block. */margin-top:var(--rc-spacing-gapLarge-mobile, 16px);}.rcb-paddle-summary-price-name.svelte-1k1pux8 {font-size:0.8125rem;}.rcb-paddle-summary-product-price.svelte-1k1pux8 {display:flex;align-items:baseline;gap:6px;font-weight:600;font-size:1.25rem;
21177
21183
  /* A bit more separation from the price-name line above. */margin-top:var(--rc-spacing-gapSmall-mobile, 8px);}.rcb-paddle-summary-row.svelte-1k1pux8 {display:flex;justify-content:space-between;align-items:center;}.rcb-paddle-summary-row-strong.svelte-1k1pux8 {font-weight:700;}.rcb-paddle-summary-muted.svelte-1k1pux8 {color:var(--rc-color-grey-text-light);}.rcb-paddle-summary-divider.svelte-1k1pux8 {border:none;border-top:1px solid var(--rc-color-grey-ui-light);margin:4px 0;width:100%;}`
21178
21184
  };
21179
- function hE(r, e) {
21185
+ function vE(r, e) {
21180
21186
  var le;
21181
- _e(e, !0), ke(r, mE);
21187
+ _e(e, !0), ke(r, hE);
21182
21188
  const t = () => Be(i, "$translator", n), [n, a] = Ze(), i = He(fr), l = new Fn(((le = e.brandingInfo) == null ? void 0 : le.appearance) ?? null).formColors.background, u = ((ae) => "base" in ae)(e.purchaseOption) ? e.purchaseOption.base.period ?? null : null, d = (ae) => Math.round(ae * 1e6), p = wo(e.productDetails, e.purchaseOption), _ = /* @__PURE__ */ m(() => {
21183
21189
  var ae;
21184
21190
  return ((ae = e.totals) == null ? void 0 : ae.currencyCode) ?? p.currency;
@@ -21193,10 +21199,10 @@ function hE(r, e) {
21193
21199
  const ae = mo(/* @__PURE__ */ new Date(), u, !0);
21194
21200
  return ae ? new Intl.DateTimeFormat(Yn(t().selectedLocale), { day: "numeric", month: "long", year: "numeric" }).format(ae) : null;
21195
21201
  });
21196
- var P = fE(), I = T(P), E = T(I), C = T(E), S = T(C), F = W(C, 2);
21202
+ var P = mE(), I = T(P), E = T(I), C = T(E), S = T(C), F = W(C, 2);
21197
21203
  {
21198
21204
  var D = (ae) => {
21199
- var Y = cE();
21205
+ var Y = uE();
21200
21206
  x(ae, Y);
21201
21207
  };
21202
21208
  G(F, (ae) => {
@@ -21231,7 +21237,7 @@ function hE(r, e) {
21231
21237
  var z = W(Z, 2);
21232
21238
  {
21233
21239
  var M = (ae) => {
21234
- var Y = uE(), $ = T(Y);
21240
+ var Y = dE(), $ = T(Y);
21235
21241
  K(() => fe($, o(y))), x(ae, Y);
21236
21242
  };
21237
21243
  G(z, (ae) => {
@@ -21241,7 +21247,7 @@ function hE(r, e) {
21241
21247
  var A = W(z, 2), U = T(A), j = T(U), R = W(U, 2);
21242
21248
  {
21243
21249
  var Q = (ae) => {
21244
- var Y = dE(), $ = T(Y);
21250
+ var Y = pE(), $ = T(Y);
21245
21251
  K(() => fe($, `/ ${o(w) ?? ""}`)), x(ae, Y);
21246
21252
  };
21247
21253
  G(R, (ae) => {
@@ -21251,10 +21257,10 @@ function hE(r, e) {
21251
21257
  var se = W(I, 2);
21252
21258
  {
21253
21259
  var te = (ae) => {
21254
- var Y = gE(), $ = T(Y), oe = T($), B = T(oe), de = W(oe, 2), J = T(de), ie = W($, 2);
21260
+ var Y = fE(), $ = T(Y), oe = T($), B = T(oe), de = W(oe, 2), J = T(de), ie = W($, 2);
21255
21261
  {
21256
21262
  var Ie = (Pe) => {
21257
- var De = pE(), Ye = T(De), Ke = T(Ye), pe = W(Ye, 2), Le = T(pe);
21263
+ var De = _E(), Ye = T(De), Ke = T(Ye), pe = W(Ye, 2), Le = T(pe);
21258
21264
  K(
21259
21265
  (or, _r) => {
21260
21266
  fe(Ke, or), fe(Le, _r);
@@ -21272,7 +21278,7 @@ function hE(r, e) {
21272
21278
  var we = W(ie, 4), xe = T(we), Se = T(xe), Ue = W(xe, 2), ye = T(Ue), Ce = W(we, 2);
21273
21279
  {
21274
21280
  var Te = (Pe) => {
21275
- var De = _E(), Ye = T(De), Ke = T(Ye), pe = W(Ye, 2), Le = T(pe);
21281
+ var De = gE(), Ye = T(De), Ke = T(Ye), pe = W(Ye, 2), Le = T(pe);
21276
21282
  K(
21277
21283
  (or) => {
21278
21284
  fe(Ke, `Due on ${o(v) ?? ""}`), fe(Le, or);
@@ -21312,14 +21318,14 @@ function hE(r, e) {
21312
21318
  ]
21313
21319
  ), x(r, P), ge(), a();
21314
21320
  }
21315
- var vE = /* @__PURE__ */ V('<button type="button" class="rcb-paddle-return-button svelte-5dakll" data-testid="paddle-return-button"><!> <span> </span></button>'), yE = /* @__PURE__ */ V("<!> <!> <!>", 1), bE = /* @__PURE__ */ V('<div class="rcb-paddle-processing svelte-5dakll"><!></div>'), kE = /* @__PURE__ */ V('<div data-testid="paddle-inline-checkout-container" style="width: 100%; min-height: 450px;"></div>');
21316
- const wE = {
21321
+ var yE = /* @__PURE__ */ V('<button type="button" class="rcb-paddle-return-button svelte-5dakll" data-testid="paddle-return-button"><!> <span> </span></button>'), bE = /* @__PURE__ */ V("<!> <!> <!>", 1), kE = /* @__PURE__ */ V('<div class="rcb-paddle-processing svelte-5dakll"><!></div>'), wE = /* @__PURE__ */ V('<div data-testid="paddle-inline-checkout-container" style="width: 100%; min-height: 450px;"></div>');
21322
+ const PE = {
21317
21323
  hash: "svelte-5dakll",
21318
21324
  code: ".rcb-paddle-return-button.svelte-5dakll {display:inline-flex;align-items:center;gap:var(--rc-spacing-gapSmall-mobile, 8px);padding:8px 0;border:none;background:transparent;cursor:pointer;color:var(--rc-color-accent);font:inherit;}.rcb-paddle-processing.svelte-5dakll {display:flex;justify-content:center;width:100%;min-height:450px;align-items:center;}"
21319
21325
  };
21320
- function PE(r, e) {
21326
+ function xE(r, e) {
21321
21327
  var c;
21322
- _e(e, !0), ke(r, wE);
21328
+ _e(e, !0), ke(r, PE);
21323
21329
  const t = () => Be(s, "$translator", n), [n, a] = Ze(), i = X(e, "hideBackButton", 3, !1), s = He(fr), l = ((c = e.brandingInfo) == null ? void 0 : c.app_name) ?? null;
21324
21330
  J_(r, {
21325
21331
  get brandingInfo() {
@@ -21338,7 +21344,7 @@ function PE(r, e) {
21338
21344
  var f = Ee(), g = ce(f);
21339
21345
  {
21340
21346
  var w = (k) => {
21341
- var h = vE();
21347
+ var h = yE();
21342
21348
  h.__click = function(...P) {
21343
21349
  var I;
21344
21350
  (I = e.onClose) == null || I.apply(this, P);
@@ -21355,7 +21361,7 @@ function PE(r, e) {
21355
21361
  x(_, f);
21356
21362
  },
21357
21363
  navbarBodyContent: (_) => {
21358
- hE(_, {
21364
+ vE(_, {
21359
21365
  get brandingInfo() {
21360
21366
  return e.brandingInfo;
21361
21367
  },
@@ -21413,12 +21419,12 @@ function PE(r, e) {
21413
21419
  var E = Ee(), C = ce(E);
21414
21420
  {
21415
21421
  var S = (D) => {
21416
- var O = bE(), N = T(O);
21422
+ var O = kE(), N = T(O);
21417
21423
  Ro(N, {
21418
21424
  gap: "medium",
21419
21425
  align: "center",
21420
21426
  children: (L, Z) => {
21421
- var z = yE(), M = ce(z);
21427
+ var z = bE(), M = ce(z);
21422
21428
  rs(M, { color: "var(--rc-color-grey-text-dark)" });
21423
21429
  var A = W(M, 2);
21424
21430
  ze(A, {
@@ -21446,7 +21452,7 @@ function PE(r, e) {
21446
21452
  $$slots: { default: !0 }
21447
21453
  }), x(D, O);
21448
21454
  }, F = (D) => {
21449
- var O = kE();
21455
+ var O = wE();
21450
21456
  K(() => ur(O, 1, la(eg), "svelte-5dakll")), x(D, O);
21451
21457
  };
21452
21458
  G(
@@ -21483,7 +21489,7 @@ function PE(r, e) {
21483
21489
  }), ge(), a();
21484
21490
  }
21485
21491
  Jt(["click"]);
21486
- function xE(r, e) {
21492
+ function EE(r, e) {
21487
21493
  var O, N, L;
21488
21494
  _e(e, !0);
21489
21495
  const t = X(e, "customTranslations", 19, () => ({})), n = X(e, "skipSuccessPage", 3, !1), a = X(e, "hideBackButton", 3, !1);
@@ -21498,7 +21504,7 @@ function xE(r, e) {
21498
21504
  let w = /* @__PURE__ */ re(null);
21499
21505
  const k = (Z) => {
21500
21506
  q(w, Z, !0);
21501
- }, h = TP(((L = (N = e.brandingInfo) == null ? void 0 : N.appearance) == null ? void 0 : L.color_page_bg) ?? "#ffffff") ? "light" : "dark";
21507
+ }, h = DP(((L = (N = e.brandingInfo) == null ? void 0 : N.appearance) == null ? void 0 : L.color_page_bg) ?? "#ffffff") ? "light" : "dark";
21502
21508
  ar(() => {
21503
21509
  o(p) === "success" && o(u) && n() && e.onFinished(o(u));
21504
21510
  });
@@ -21577,7 +21583,7 @@ function xE(r, e) {
21577
21583
  var C = Ee(), S = ce(C);
21578
21584
  {
21579
21585
  var F = (Z) => {
21580
- PE(Z, {
21586
+ xE(Z, {
21581
21587
  get brandingInfo() {
21582
21588
  return e.brandingInfo;
21583
21589
  },
@@ -21616,7 +21622,7 @@ function xE(r, e) {
21616
21622
  var z = Ee(), M = ce(z);
21617
21623
  {
21618
21624
  var A = (U) => {
21619
- lE(U, {
21625
+ cE(U, {
21620
21626
  get currentPage() {
21621
21627
  return o(p);
21622
21628
  },
@@ -21655,13 +21661,13 @@ function xE(r, e) {
21655
21661
  }
21656
21662
  x(r, C), ge();
21657
21663
  }
21658
- var EE = /* @__PURE__ */ V('<div class="stripe-checkout-container svelte-1kxsl49" data-testid="stripe-checkout-container"><div class="stripe-checkout-mount svelte-1kxsl49" data-testid="stripe-checkout-mount"></div></div>');
21659
- const SE = {
21664
+ var SE = /* @__PURE__ */ V('<div class="stripe-checkout-container svelte-1kxsl49" data-testid="stripe-checkout-container"><div class="stripe-checkout-mount svelte-1kxsl49" data-testid="stripe-checkout-mount"></div></div>');
21665
+ const IE = {
21660
21666
  hash: "svelte-1kxsl49",
21661
21667
  code: ".stripe-checkout-container.svelte-1kxsl49 {width:100%;min-height:400px;display:flex;flex-direction:column;}.stripe-checkout-mount.svelte-1kxsl49 {width:100%;flex:1;}"
21662
21668
  };
21663
- function IE(r, e) {
21664
- _e(e, !0), ke(r, SE);
21669
+ function CE(r, e) {
21670
+ _e(e, !0), ke(r, IE);
21665
21671
  let t, n = null;
21666
21672
  async function a() {
21667
21673
  try {
@@ -21680,11 +21686,11 @@ function IE(r, e) {
21680
21686
  }), Tt(() => {
21681
21687
  n && (n.destroy(), n = null);
21682
21688
  });
21683
- var i = EE(), s = T(i);
21689
+ var i = SE(), s = T(i);
21684
21690
  ca(s, (l) => t = l, () => t), x(r, i), ge();
21685
21691
  }
21686
- var CE = /* @__PURE__ */ V('<div class="stripe-checkout-wrapper svelte-zapbpj"><!></div>'), TE = /* @__PURE__ */ V("<!> <!>", 1), DE = /* @__PURE__ */ V("<!> <!>", 1), AE = /* @__PURE__ */ V('<div class="rcb-ui-loading-container svelte-zapbpj"><!></div>');
21687
- const FE = {
21692
+ var TE = /* @__PURE__ */ V('<div class="stripe-checkout-wrapper svelte-zapbpj"><!></div>'), DE = /* @__PURE__ */ V("<!> <!>", 1), AE = /* @__PURE__ */ V("<!> <!>", 1), FE = /* @__PURE__ */ V('<div class="rcb-ui-loading-container svelte-zapbpj"><!></div>');
21693
+ const qE = {
21688
21694
  hash: "svelte-zapbpj",
21689
21695
  code: `.rcb-ui-loading-container.svelte-zapbpj {display:flex;flex-direction:column;align-items:center;}.stripe-checkout-wrapper.svelte-zapbpj {width:100%;min-height:100%;display:flex;flex-direction:column;overflow:hidden auto;}
21690
21696
 
@@ -21692,8 +21698,8 @@ const FE = {
21692
21698
  @media (min-width: 991px) {.stripe-checkout-wrapper.svelte-zapbpj {justify-content:center;align-items:center;}
21693
21699
  }`
21694
21700
  };
21695
- function qE(r, e) {
21696
- _e(e, !0), ke(r, FE);
21701
+ function ME(r, e) {
21702
+ _e(e, !0), ke(r, qE);
21697
21703
  const t = () => Be(s, "$brandingAppearanceStore", a), n = () => Be(d, "$translator", a), [a, i] = Ze(), s = He(jn), l = /* @__PURE__ */ m(() => t() ?? void 0), c = /* @__PURE__ */ m(() => new Fn(o(l)).pageStyleVars), u = /* @__PURE__ */ m(() => j_(o(l)).background), d = He(fr);
21698
21704
  rg(r, {
21699
21705
  get brandingInfo() {
@@ -21712,8 +21718,8 @@ function qE(r, e) {
21712
21718
  var y = Ee(), b = ce(y);
21713
21719
  {
21714
21720
  var v = (P) => {
21715
- var I = CE(), E = T(I);
21716
- IE(E, {
21721
+ var I = TE(), E = T(I);
21722
+ CE(E, {
21717
21723
  get stripeBillingParams() {
21718
21724
  return e.stripeBillingParams;
21719
21725
  },
@@ -21734,17 +21740,17 @@ function qE(r, e) {
21734
21740
  var y = Ee(), b = ce(y);
21735
21741
  {
21736
21742
  var v = (I) => {
21737
- var E = AE(), C = T(E);
21743
+ var E = FE(), C = T(E);
21738
21744
  Ro(C, {
21739
21745
  gap: "medium",
21740
21746
  align: "center",
21741
21747
  children: (S, F) => {
21742
- var D = DE(), O = ce(D);
21748
+ var D = AE(), O = ce(D);
21743
21749
  rs(O, { color: "var(--rc-color-grey-text-dark)" });
21744
21750
  var N = W(O, 2);
21745
21751
  {
21746
21752
  var L = (Z) => {
21747
- var z = TE(), M = ce(z);
21753
+ var z = DE(), M = ce(z);
21748
21754
  ze(M, {
21749
21755
  size: "heading-md",
21750
21756
  children: (U, j) => {
@@ -21856,7 +21862,7 @@ function qE(r, e) {
21856
21862
  $$slots: { mainContent: !0 }
21857
21863
  }), ge(), i();
21858
21864
  }
21859
- function ME(r, e) {
21865
+ function zE(r, e) {
21860
21866
  var b;
21861
21867
  _e(e, !0);
21862
21868
  const t = X(e, "customTranslations", 19, () => ({})), n = X(e, "skipSuccessPage", 3, !1);
@@ -21919,7 +21925,7 @@ function ME(r, e) {
21919
21925
  };
21920
21926
  v(document.documentElement, "height", k), v(document.body, "height", y), v(document.documentElement, "overflow", h);
21921
21927
  }
21922
- }), qE(r, {
21928
+ }), ME(r, {
21923
21929
  get currentPage() {
21924
21930
  return o(p);
21925
21931
  },
@@ -21949,16 +21955,16 @@ function ME(r, e) {
21949
21955
  function tg(r) {
21950
21956
  return r == null ? !0 : new Date(r) > /* @__PURE__ */ new Date();
21951
21957
  }
21952
- function zE(r, e, t, n) {
21958
+ function OE(r, e, t, n) {
21953
21959
  const a = e.product_identifier;
21954
21960
  if (a in t)
21955
- return OE(
21961
+ return NE(
21956
21962
  r,
21957
21963
  e,
21958
21964
  t[a]
21959
21965
  );
21960
21966
  if (a in n)
21961
- return NE(
21967
+ return LE(
21962
21968
  r,
21963
21969
  e,
21964
21970
  n[a]
@@ -21968,7 +21974,7 @@ function zE(r, e, t, n) {
21968
21974
  "Could not find entitlement product in subscriptions or non-subscriptions."
21969
21975
  );
21970
21976
  }
21971
- function OE(r, e, t) {
21977
+ function NE(r, e, t) {
21972
21978
  return {
21973
21979
  identifier: r,
21974
21980
  isActive: tg(e.expires_date),
@@ -21993,7 +21999,7 @@ function OE(r, e, t) {
21993
21999
  ownershipType: (t == null ? void 0 : t.ownership_type) ?? "UNKNOWN"
21994
22000
  };
21995
22001
  }
21996
- function NE(r, e, t) {
22002
+ function LE(r, e, t) {
21997
22003
  return {
21998
22004
  identifier: r,
21999
22005
  isActive: !0,
@@ -22013,10 +22019,10 @@ function NE(r, e, t) {
22013
22019
  ownershipType: "UNKNOWN"
22014
22020
  };
22015
22021
  }
22016
- function LE(r, e, t) {
22022
+ function jE(r, e, t) {
22017
22023
  const n = {}, a = {};
22018
22024
  for (const i in r) {
22019
- const s = zE(
22025
+ const s = OE(
22020
22026
  i,
22021
22027
  r[i],
22022
22028
  e,
@@ -22032,7 +22038,7 @@ function LE(r, e, t) {
22032
22038
  function Et(r) {
22033
22039
  return r == null ? null : new Date(r);
22034
22040
  }
22035
- function jE(r) {
22041
+ function BE(r) {
22036
22042
  if (!r) return null;
22037
22043
  const e = r.amount * 1e6;
22038
22044
  return {
@@ -22043,7 +22049,7 @@ function jE(r) {
22043
22049
  };
22044
22050
  }
22045
22051
  function Tl(r) {
22046
- const e = RE(r), t = r.subscriber, n = VE(
22052
+ const e = UE(r), t = r.subscriber, n = WE(
22047
22053
  t.non_subscriptions
22048
22054
  ), a = Object.entries(r.subscriber.non_subscriptions).flatMap(
22049
22055
  ([l, c]) => c.map((u) => ({
@@ -22087,23 +22093,23 @@ function Tl(r) {
22087
22093
  willRenew: ng(c.expires_date, c),
22088
22094
  displayName: c.display_name ?? null,
22089
22095
  autoResumeDate: Et(c.auto_resume_date),
22090
- price: jE(c.price)
22096
+ price: BE(c.price)
22091
22097
  }
22092
22098
  ]
22093
22099
  )
22094
22100
  );
22095
22101
  return {
22096
- entitlements: LE(
22102
+ entitlements: jE(
22097
22103
  t.entitlements,
22098
22104
  t.subscriptions,
22099
22105
  n
22100
22106
  ),
22101
22107
  allExpirationDatesByProduct: e,
22102
- allPurchaseDatesByProduct: BE(
22108
+ allPurchaseDatesByProduct: RE(
22103
22109
  r,
22104
22110
  n
22105
22111
  ),
22106
- activeSubscriptions: UE(e),
22112
+ activeSubscriptions: VE(e),
22107
22113
  managementURL: t.management_url,
22108
22114
  requestDate: i,
22109
22115
  firstSeenDate: new Date(t.first_seen),
@@ -22120,7 +22126,7 @@ function ng(r, e) {
22120
22126
  const t = e.store == "promotional", n = r == null, a = e.unsubscribe_detected_at != null, i = e.billing_issues_detected_at != null;
22121
22127
  return !(t || n || a || i);
22122
22128
  }
22123
- function BE(r, e) {
22129
+ function RE(r, e) {
22124
22130
  const t = {};
22125
22131
  for (const n in r.subscriber.subscriptions) {
22126
22132
  const a = r.subscriber.subscriptions[n];
@@ -22134,7 +22140,7 @@ function BE(r, e) {
22134
22140
  }
22135
22141
  return t;
22136
22142
  }
22137
- function RE(r) {
22143
+ function UE(r) {
22138
22144
  const e = {};
22139
22145
  for (const t in r.subscriber.subscriptions) {
22140
22146
  const n = r.subscriber.subscriptions[t];
@@ -22144,7 +22150,7 @@ function RE(r) {
22144
22150
  }
22145
22151
  return e;
22146
22152
  }
22147
- function UE(r) {
22153
+ function VE(r) {
22148
22154
  const e = /* @__PURE__ */ new Set(), t = /* @__PURE__ */ new Date();
22149
22155
  for (const n in r) {
22150
22156
  const a = r[n];
@@ -22152,7 +22158,7 @@ function UE(r) {
22152
22158
  }
22153
22159
  return e;
22154
22160
  }
22155
- function VE(r) {
22161
+ function WE(r) {
22156
22162
  const e = {};
22157
22163
  for (const t in r) {
22158
22164
  if (r[t].length === 0) continue;
@@ -22161,26 +22167,26 @@ function VE(r) {
22161
22167
  }
22162
22168
  return e;
22163
22169
  }
22164
- const ag = "1.48.1", WE = "https://api.revenuecat.com", HE = "https://e.revenue.cat";
22170
+ const ag = "1.49.0", HE = "https://api.revenuecat.com", YE = "https://e.revenue.cat";
22165
22171
  var Fi;
22166
22172
  (function(r) {
22167
22173
  r[r.CONTINUE = 100] = "CONTINUE", r[r.SWITCHING_PROTOCOLS = 101] = "SWITCHING_PROTOCOLS", r[r.PROCESSING = 102] = "PROCESSING", r[r.EARLY_HINTS = 103] = "EARLY_HINTS", r[r.OK = 200] = "OK", r[r.CREATED = 201] = "CREATED", r[r.ACCEPTED = 202] = "ACCEPTED", r[r.NON_AUTHORITATIVE_INFORMATION = 203] = "NON_AUTHORITATIVE_INFORMATION", r[r.NO_CONTENT = 204] = "NO_CONTENT", r[r.RESET_CONTENT = 205] = "RESET_CONTENT", r[r.PARTIAL_CONTENT = 206] = "PARTIAL_CONTENT", r[r.MULTI_STATUS = 207] = "MULTI_STATUS", r[r.MULTIPLE_CHOICES = 300] = "MULTIPLE_CHOICES", r[r.MOVED_PERMANENTLY = 301] = "MOVED_PERMANENTLY", r[r.MOVED_TEMPORARILY = 302] = "MOVED_TEMPORARILY", r[r.SEE_OTHER = 303] = "SEE_OTHER", r[r.NOT_MODIFIED = 304] = "NOT_MODIFIED", r[r.USE_PROXY = 305] = "USE_PROXY", r[r.TEMPORARY_REDIRECT = 307] = "TEMPORARY_REDIRECT", r[r.PERMANENT_REDIRECT = 308] = "PERMANENT_REDIRECT", r[r.BAD_REQUEST = 400] = "BAD_REQUEST", r[r.UNAUTHORIZED = 401] = "UNAUTHORIZED", r[r.PAYMENT_REQUIRED = 402] = "PAYMENT_REQUIRED", r[r.FORBIDDEN = 403] = "FORBIDDEN", r[r.NOT_FOUND = 404] = "NOT_FOUND", r[r.METHOD_NOT_ALLOWED = 405] = "METHOD_NOT_ALLOWED", r[r.NOT_ACCEPTABLE = 406] = "NOT_ACCEPTABLE", r[r.PROXY_AUTHENTICATION_REQUIRED = 407] = "PROXY_AUTHENTICATION_REQUIRED", r[r.REQUEST_TIMEOUT = 408] = "REQUEST_TIMEOUT", r[r.CONFLICT = 409] = "CONFLICT", r[r.GONE = 410] = "GONE", r[r.LENGTH_REQUIRED = 411] = "LENGTH_REQUIRED", r[r.PRECONDITION_FAILED = 412] = "PRECONDITION_FAILED", r[r.REQUEST_TOO_LONG = 413] = "REQUEST_TOO_LONG", r[r.REQUEST_URI_TOO_LONG = 414] = "REQUEST_URI_TOO_LONG", r[r.UNSUPPORTED_MEDIA_TYPE = 415] = "UNSUPPORTED_MEDIA_TYPE", r[r.REQUESTED_RANGE_NOT_SATISFIABLE = 416] = "REQUESTED_RANGE_NOT_SATISFIABLE", r[r.EXPECTATION_FAILED = 417] = "EXPECTATION_FAILED", r[r.IM_A_TEAPOT = 418] = "IM_A_TEAPOT", r[r.INSUFFICIENT_SPACE_ON_RESOURCE = 419] = "INSUFFICIENT_SPACE_ON_RESOURCE", r[r.METHOD_FAILURE = 420] = "METHOD_FAILURE", r[r.MISDIRECTED_REQUEST = 421] = "MISDIRECTED_REQUEST", r[r.UNPROCESSABLE_ENTITY = 422] = "UNPROCESSABLE_ENTITY", r[r.LOCKED = 423] = "LOCKED", r[r.FAILED_DEPENDENCY = 424] = "FAILED_DEPENDENCY", r[r.UPGRADE_REQUIRED = 426] = "UPGRADE_REQUIRED", r[r.PRECONDITION_REQUIRED = 428] = "PRECONDITION_REQUIRED", r[r.TOO_MANY_REQUESTS = 429] = "TOO_MANY_REQUESTS", r[r.REQUEST_HEADER_FIELDS_TOO_LARGE = 431] = "REQUEST_HEADER_FIELDS_TOO_LARGE", r[r.UNAVAILABLE_FOR_LEGAL_REASONS = 451] = "UNAVAILABLE_FOR_LEGAL_REASONS", r[r.INTERNAL_SERVER_ERROR = 500] = "INTERNAL_SERVER_ERROR", r[r.NOT_IMPLEMENTED = 501] = "NOT_IMPLEMENTED", r[r.BAD_GATEWAY = 502] = "BAD_GATEWAY", r[r.SERVICE_UNAVAILABLE = 503] = "SERVICE_UNAVAILABLE", r[r.GATEWAY_TIMEOUT = 504] = "GATEWAY_TIMEOUT", r[r.HTTP_VERSION_NOT_SUPPORTED = 505] = "HTTP_VERSION_NOT_SUPPORTED", r[r.INSUFFICIENT_STORAGE = 507] = "INSUFFICIENT_STORAGE", r[r.NETWORK_AUTHENTICATION_REQUIRED = 511] = "NETWORK_AUTHENTICATION_REQUIRED";
22168
22174
  })(Fi || (Fi = {}));
22169
- const YE = /^rcb_[a-zA-Z0-9_.-]+$/, GE = /^pdl_[a-zA-Z0-9_.-]+$/, KE = /^test_[a-zA-Z0-9_.-]+$/, XE = /^strp_[a-zA-Z0-9_.-]+$/;
22175
+ const GE = /^rcb_[a-zA-Z0-9_.-]+$/, KE = /^pdl_[a-zA-Z0-9_.-]+$/, XE = /^test_[a-zA-Z0-9_.-]+$/, ZE = /^strp_[a-zA-Z0-9_.-]+$/;
22170
22176
  function qi(r) {
22171
22177
  return r ? r.startsWith("rcb_sb_") : !1;
22172
22178
  }
22173
22179
  function Dl(r) {
22174
- return r ? YE.test(r) : !1;
22180
+ return r ? GE.test(r) : !1;
22175
22181
  }
22176
22182
  function og(r) {
22177
- return r ? GE.test(r) : !1;
22183
+ return r ? KE.test(r) : !1;
22178
22184
  }
22179
22185
  function ig(r) {
22180
- return r ? XE.test(r) : !1;
22186
+ return r ? ZE.test(r) : !1;
22181
22187
  }
22182
22188
  function Un(r) {
22183
- return r ? KE.test(r) : !1;
22189
+ return r ? XE.test(r) : !1;
22184
22190
  }
22185
22191
  async function Zr(r, e, t) {
22186
22192
  return (await sg(
@@ -22190,15 +22196,15 @@ async function Zr(r, e, t) {
22190
22196
  )).data;
22191
22197
  }
22192
22198
  async function sg(r, e, t) {
22193
- const { apiKey: n, body: a, headers: i, httpConfig: s } = e, c = `${(s == null ? void 0 : s.proxyURL) ?? WE}${r.urlPath()}`;
22199
+ const { apiKey: n, body: a, headers: i, httpConfig: s } = e, c = `${(s == null ? void 0 : s.proxyURL) ?? HE}${r.urlPath()}`;
22194
22200
  try {
22195
22201
  const u = await fetch(c, {
22196
22202
  method: r.method,
22197
22203
  headers: mg(n, i, s == null ? void 0 : s.additionalHeaders),
22198
- body: JE(a),
22204
+ body: QE(a),
22199
22205
  signal: t
22200
22206
  });
22201
- await ZE(u, r);
22207
+ await JE(u, r);
22202
22208
  const d = u.status;
22203
22209
  return { data: await u.json(), statusCode: d };
22204
22210
  } catch (u) {
@@ -22209,7 +22215,7 @@ async function sg(r, e, t) {
22209
22215
  ) : u;
22210
22216
  }
22211
22217
  }
22212
- async function ZE(r, e) {
22218
+ async function JE(r, e) {
22213
22219
  const t = r.status;
22214
22220
  if (t >= Fi.INTERNAL_SERVER_ERROR)
22215
22221
  Ks(e, t, await r.text());
@@ -22241,10 +22247,10 @@ function Ks(r, e, t, n) {
22241
22247
  { backendErrorCode: n }
22242
22248
  );
22243
22249
  }
22244
- function JE(r) {
22250
+ function QE(r) {
22245
22251
  return r == null ? null : JSON.stringify(r);
22246
22252
  }
22247
- const lg = "Authorization", cg = "Content-Type", ug = "Accept", dg = "X-Platform", pg = "X-Version", _g = "X-Platform-Flavor", gg = "X-Platform-Flavor-Version", fg = "X-Is-Sandbox", QE = /* @__PURE__ */ new Set([
22253
+ const lg = "Authorization", cg = "Content-Type", ug = "Accept", dg = "X-Platform", pg = "X-Version", _g = "X-Platform-Flavor", gg = "X-Platform-Flavor-Version", fg = "X-Is-Sandbox", $E = /* @__PURE__ */ new Set([
22248
22254
  lg,
22249
22255
  cg,
22250
22256
  ug,
@@ -22274,7 +22280,7 @@ function mg(r, e, t) {
22274
22280
  return e && (n = { ...n, ...e }), t && (n = { ...t, ...n }), n;
22275
22281
  }
22276
22282
  const _a = "/v1/subscribers", ga = "/rcbilling/v1";
22277
- class $E {
22283
+ class eS {
22278
22284
  constructor(e) {
22279
22285
  ee(this, "appUserId");
22280
22286
  ee(this, "method", "GET");
@@ -22286,7 +22292,7 @@ class $E {
22286
22292
  return `${_a}/${e}/offerings`;
22287
22293
  }
22288
22294
  }
22289
- class eS {
22295
+ class rS {
22290
22296
  constructor(e, t, n, a) {
22291
22297
  ee(this, "method", "GET");
22292
22298
  ee(this, "name", "getProducts");
@@ -22301,7 +22307,7 @@ class eS {
22301
22307
  return `${ga}/subscribers/${e}/products?id=${t}${n}${a}`;
22302
22308
  }
22303
22309
  }
22304
- class rS {
22310
+ class tS {
22305
22311
  constructor(e) {
22306
22312
  ee(this, "method", "GET");
22307
22313
  ee(this, "name", "getCustomerInfo");
@@ -22313,7 +22319,7 @@ class rS {
22313
22319
  return `${_a}/${e}`;
22314
22320
  }
22315
22321
  }
22316
- class tS {
22322
+ class nS {
22317
22323
  constructor() {
22318
22324
  ee(this, "method", "POST");
22319
22325
  ee(this, "name", "identify");
@@ -22322,7 +22328,7 @@ class tS {
22322
22328
  return `${_a}/identify`;
22323
22329
  }
22324
22330
  }
22325
- class nS {
22331
+ class aS {
22326
22332
  constructor() {
22327
22333
  ee(this, "method", "GET");
22328
22334
  ee(this, "name", "getBrandingInfo");
@@ -22331,7 +22337,7 @@ class nS {
22331
22337
  return `${ga}/branding`;
22332
22338
  }
22333
22339
  }
22334
- class aS {
22340
+ class oS {
22335
22341
  constructor() {
22336
22342
  ee(this, "method", "POST");
22337
22343
  ee(this, "name", "postCheckoutPrepare");
@@ -22340,7 +22346,7 @@ class aS {
22340
22346
  return `${ga}/checkout/prepare`;
22341
22347
  }
22342
22348
  }
22343
- class oS {
22349
+ class iS {
22344
22350
  constructor() {
22345
22351
  ee(this, "method", "POST");
22346
22352
  ee(this, "name", "postCheckoutStart");
@@ -22349,7 +22355,7 @@ class oS {
22349
22355
  return `${ga}/checkout/start`;
22350
22356
  }
22351
22357
  }
22352
- class iS {
22358
+ class sS {
22353
22359
  constructor(e) {
22354
22360
  ee(this, "method", "PATCH");
22355
22361
  ee(this, "name", "patchCheckoutRefreshPricing");
@@ -22360,7 +22366,7 @@ class iS {
22360
22366
  return `${ga}/checkout/${this.operationSessionId}`;
22361
22367
  }
22362
22368
  }
22363
- class sS {
22369
+ class lS {
22364
22370
  constructor(e) {
22365
22371
  ee(this, "method", "POST");
22366
22372
  ee(this, "name", "postCheckoutComplete");
@@ -22371,7 +22377,7 @@ class sS {
22371
22377
  return `${ga}/checkout/${this.operationSessionId}/complete`;
22372
22378
  }
22373
22379
  }
22374
- class lS {
22380
+ class cS {
22375
22381
  constructor(e) {
22376
22382
  ee(this, "method", "GET");
22377
22383
  ee(this, "name", "getCheckoutStatus");
@@ -22382,7 +22388,7 @@ class lS {
22382
22388
  return `${ga}/checkout/${this.operationSessionId}`;
22383
22389
  }
22384
22390
  }
22385
- class cS {
22391
+ class uS {
22386
22392
  constructor(e) {
22387
22393
  ee(this, "method", "POST");
22388
22394
  ee(this, "name", "setAttributes");
@@ -22394,7 +22400,7 @@ class cS {
22394
22400
  return `${_a}/${e}/attributes`;
22395
22401
  }
22396
22402
  }
22397
- class uS {
22403
+ class dS {
22398
22404
  constructor() {
22399
22405
  ee(this, "method", "POST");
22400
22406
  ee(this, "name", "postReceipt");
@@ -22403,7 +22409,7 @@ class uS {
22403
22409
  return "/v1/receipts";
22404
22410
  }
22405
22411
  }
22406
- class dS {
22412
+ class pS {
22407
22413
  constructor(e) {
22408
22414
  ee(this, "method", "GET");
22409
22415
  ee(this, "name", "getVirtualCurrencies");
@@ -22415,7 +22421,7 @@ class dS {
22415
22421
  return `${_a}/${e}/virtual_currencies`;
22416
22422
  }
22417
22423
  }
22418
- class pS {
22424
+ class _S {
22419
22425
  constructor(e) {
22420
22426
  ee(this, "method", "GET");
22421
22427
  ee(this, "name", "getWorkflows");
@@ -22426,7 +22432,7 @@ class pS {
22426
22432
  return `${_a}/${encodeURIComponent(this.appUserId)}/workflows?type=paywall`;
22427
22433
  }
22428
22434
  }
22429
- class _S {
22435
+ class gS {
22430
22436
  constructor(e, t) {
22431
22437
  ee(this, "method", "GET");
22432
22438
  ee(this, "name", "getWorkflowData");
@@ -22439,7 +22445,7 @@ class _S {
22439
22445
  }
22440
22446
  }
22441
22447
  const Al = {};
22442
- class gS {
22448
+ class fS {
22443
22449
  constructor(e, t = Al, n) {
22444
22450
  ee(this, "API_KEY");
22445
22451
  ee(this, "httpConfig");
@@ -22452,7 +22458,7 @@ class gS {
22452
22458
  }
22453
22459
  async getOfferings(e) {
22454
22460
  return await Zr(
22455
- new $E(e),
22461
+ new eS(e),
22456
22462
  {
22457
22463
  apiKey: this.API_KEY,
22458
22464
  httpConfig: this.httpConfig
@@ -22461,7 +22467,7 @@ class gS {
22461
22467
  }
22462
22468
  async getCustomerInfo(e) {
22463
22469
  return await Zr(
22464
- new rS(e),
22470
+ new tS(e),
22465
22471
  {
22466
22472
  apiKey: this.API_KEY,
22467
22473
  httpConfig: this.httpConfig
@@ -22472,7 +22478,7 @@ class gS {
22472
22478
  const n = {
22473
22479
  app_user_id: e,
22474
22480
  new_app_user_id: t
22475
- }, a = await sg(new tS(), {
22481
+ }, a = await sg(new nS(), {
22476
22482
  apiKey: this.API_KEY,
22477
22483
  body: n,
22478
22484
  httpConfig: this.httpConfig
@@ -22484,7 +22490,7 @@ class gS {
22484
22490
  }
22485
22491
  async getProducts(e, t, n, a) {
22486
22492
  return await Zr(
22487
- new eS(e, t, n, a),
22493
+ new rS(e, t, n, a),
22488
22494
  {
22489
22495
  apiKey: this.API_KEY,
22490
22496
  httpConfig: this.httpConfig
@@ -22493,7 +22499,7 @@ class gS {
22493
22499
  }
22494
22500
  async getBrandingInfo() {
22495
22501
  return await Zr(
22496
- new nS(),
22502
+ new aS(),
22497
22503
  {
22498
22504
  apiKey: this.API_KEY,
22499
22505
  httpConfig: this.httpConfig
@@ -22506,7 +22512,7 @@ class gS {
22506
22512
  price_id: t.priceId
22507
22513
  };
22508
22514
  return t.id !== "base_option" && (n.offer_id = t.id), await Zr(
22509
- new aS(),
22515
+ new oS(),
22510
22516
  {
22511
22517
  apiKey: this.API_KEY,
22512
22518
  body: n,
@@ -22545,7 +22551,7 @@ class gS {
22545
22551
  paywall_id: c,
22546
22552
  ...u ? { paywall_session_id: u } : {}
22547
22553
  }), _ && (g.locale = _), f && (g.attribution_metadata = f), await Zr(
22548
- new oS(),
22554
+ new iS(),
22549
22555
  {
22550
22556
  apiKey: this.API_KEY,
22551
22557
  body: g,
@@ -22573,7 +22579,7 @@ class gS {
22573
22579
  discount_code: c
22574
22580
  };
22575
22581
  return await Zr(
22576
- new iS(e),
22582
+ new sS(e),
22577
22583
  {
22578
22584
  apiKey: this.API_KEY,
22579
22585
  body: d,
@@ -22586,7 +22592,7 @@ class gS {
22586
22592
  const a = {
22587
22593
  email: t
22588
22594
  };
22589
- return n && (a.locale = n), await Zr(new sS(e), {
22595
+ return n && (a.locale = n), await Zr(new lS(e), {
22590
22596
  apiKey: this.API_KEY,
22591
22597
  body: a,
22592
22598
  httpConfig: this.httpConfig
@@ -22594,7 +22600,7 @@ class gS {
22594
22600
  }
22595
22601
  async getCheckoutStatus(e) {
22596
22602
  return await Zr(
22597
- new lS(e),
22603
+ new cS(e),
22598
22604
  {
22599
22605
  apiKey: this.API_KEY,
22600
22606
  httpConfig: this.httpConfig
@@ -22612,7 +22618,7 @@ class gS {
22612
22618
  attributes: a
22613
22619
  };
22614
22620
  return await Zr(
22615
- new cS(e),
22621
+ new uS(e),
22616
22622
  {
22617
22623
  apiKey: this.API_KEY,
22618
22624
  body: i,
@@ -22641,7 +22647,7 @@ class gS {
22641
22647
  return l && (u.paywall = {
22642
22648
  paywall_id: l
22643
22649
  }), await Zr(
22644
- new uS(),
22650
+ new dS(),
22645
22651
  {
22646
22652
  apiKey: this.API_KEY,
22647
22653
  body: u,
@@ -22651,7 +22657,7 @@ class gS {
22651
22657
  }
22652
22658
  async getVirtualCurrencies(e) {
22653
22659
  return await Zr(
22654
- new dS(e),
22660
+ new pS(e),
22655
22661
  {
22656
22662
  apiKey: this.API_KEY,
22657
22663
  httpConfig: this.httpConfig
@@ -22660,7 +22666,7 @@ class gS {
22660
22666
  }
22661
22667
  async getWorkflows(e) {
22662
22668
  return await Zr(
22663
- new pS(e),
22669
+ new _S(e),
22664
22670
  {
22665
22671
  apiKey: this.API_KEY,
22666
22672
  httpConfig: this.httpConfig
@@ -22668,7 +22674,7 @@ class gS {
22668
22674
  );
22669
22675
  }
22670
22676
  async getWorkflowById(e, t) {
22671
- const n = await Zr(new _S(e, t), {
22677
+ const n = await Zr(new gS(e, t), {
22672
22678
  apiKey: this.API_KEY,
22673
22679
  httpConfig: this.httpConfig
22674
22680
  });
@@ -22688,7 +22694,7 @@ class gS {
22688
22694
  return await a.json();
22689
22695
  }
22690
22696
  }
22691
- function fS(r) {
22697
+ function mS(r) {
22692
22698
  if (!(Dl(r) || Un(r) || og(r) || ig(r)))
22693
22699
  throw new Qe(
22694
22700
  Me.InvalidCredentialsError,
@@ -22714,17 +22720,17 @@ function Xs(r) {
22714
22720
  'Provided user id: "' + (r ?? "[Not provided]") + '" is not valid. See https://www.revenuecat.com/docs/customers/user-ids#tips-for-setting-app-user-ids for more information.'
22715
22721
  );
22716
22722
  }
22717
- function mS(r) {
22723
+ function hS(r) {
22718
22724
  if (r != null && r.endsWith("/"))
22719
22725
  throw new Qe(
22720
22726
  Me.ConfigurationError,
22721
22727
  "Invalid proxy URL. The proxy URL should not end with a trailing slash."
22722
22728
  );
22723
22729
  }
22724
- function hS(r) {
22730
+ function vS(r) {
22725
22731
  if (r) {
22726
22732
  for (const e in r)
22727
- if (QE.has(e))
22733
+ if ($E.has(e))
22728
22734
  throw new Qe(
22729
22735
  Me.ConfigurationError,
22730
22736
  "Invalid additional headers. Some headers are reserved for internal use."
@@ -22751,7 +22757,7 @@ const vg = (r, e) => {
22751
22757
  webBillingProduct: t,
22752
22758
  rcBillingProduct: t
22753
22759
  };
22754
- }, Bn = (r, e) => r == null ? null : vg(r, e), vS = (r, e, t) => {
22760
+ }, Bn = (r, e) => r == null ? null : vg(r, e), yS = (r, e, t) => {
22755
22761
  const n = r.offering_ids_by_placement ?? {}, a = r.fallback_offering_id;
22756
22762
  let i;
22757
22763
  if (t in n) {
@@ -22794,7 +22800,7 @@ const vg = (r, e) => {
22794
22800
  )
22795
22801
  };
22796
22802
  };
22797
- function yS(r, e) {
22803
+ function bS(r, e) {
22798
22804
  const t = {};
22799
22805
  e.product_details.forEach((i) => {
22800
22806
  t[i.identifier] = i;
@@ -22818,14 +22824,14 @@ function yS(r, e) {
22818
22824
  current: a
22819
22825
  };
22820
22826
  }
22821
- const bS = 1000001;
22827
+ const kS = 1000001;
22822
22828
  function Lr(r, e, t) {
22823
22829
  return t.formatPrice(
22824
22830
  ui(r, e),
22825
22831
  e
22826
22832
  );
22827
22833
  }
22828
- function kS(r, e, t) {
22834
+ function wS(r, e, t) {
22829
22835
  const n = t.formatPrice(r.amountMicros, r.currency);
22830
22836
  return e ? e.unit === Ne.Year ? Lr(
22831
22837
  r.amountMicros / pc / e.number,
@@ -22845,7 +22851,7 @@ function kS(r, e, t) {
22845
22851
  t
22846
22852
  ) : n : n;
22847
22853
  }
22848
- function wS(r, e, t) {
22854
+ function PS(r, e, t) {
22849
22855
  const n = t.formatPrice(r.amountMicros, r.currency);
22850
22856
  return e ? e.unit === Ne.Year ? Lr(
22851
22857
  r.amountMicros / _c / e.number,
@@ -22865,7 +22871,7 @@ function wS(r, e, t) {
22865
22871
  t
22866
22872
  ) : n : n;
22867
22873
  }
22868
- function PS(r, e, t) {
22874
+ function xS(r, e, t) {
22869
22875
  return e ? e.unit === Ne.Year ? Lr(
22870
22876
  r.amountMicros / es,
22871
22877
  r.currency,
@@ -22888,7 +22894,7 @@ function PS(r, e, t) {
22888
22894
  t
22889
22895
  ) : t.formatPrice(r.amountMicros, r.currency);
22890
22896
  }
22891
- function xS(r, e, t) {
22897
+ function ES(r, e, t) {
22892
22898
  const n = t.formatPrice(r.amountMicros, r.currency);
22893
22899
  return e ? e.unit === Ne.Year ? Lr(
22894
22900
  r.amountMicros / e.number,
@@ -22910,39 +22916,39 @@ function xS(r, e, t) {
22910
22916
  }
22911
22917
  function yg(r, e, t) {
22912
22918
  return {
22913
- pricePerDay: kS(r, e, t),
22914
- pricePerWeek: wS(r, e, t),
22915
- pricePerMonth: PS(r, e, t),
22916
- pricePerYear: xS(r, e, t)
22919
+ pricePerDay: wS(r, e, t),
22920
+ pricePerWeek: PS(r, e, t),
22921
+ pricePerMonth: xS(r, e, t),
22922
+ pricePerYear: ES(r, e, t)
22917
22923
  };
22918
22924
  }
22919
- function ES(r) {
22925
+ function SS(r) {
22920
22926
  return r.cycleCount > 0 ? r.cycleCount : 1;
22921
22927
  }
22922
- function SS(r) {
22928
+ function IS(r) {
22923
22929
  return "durationMode" in r && r.durationMode === "forever";
22924
22930
  }
22925
- function IS(r) {
22931
+ function CS(r) {
22926
22932
  return "durationMode" in r && r.durationMode === "time_window";
22927
22933
  }
22928
- function CS(r, e) {
22929
- return IS(e) ? r.base.period : e.period;
22934
+ function TS(r, e) {
22935
+ return CS(e) ? r.base.period : e.period;
22930
22936
  }
22931
- function TS(r) {
22932
- return r.period === null || SS(r) ? null : {
22933
- number: r.period.number * ES(r),
22937
+ function DS(r) {
22938
+ return r.period === null || IS(r) ? null : {
22939
+ number: r.period.number * SS(r),
22934
22940
  unit: r.period.unit
22935
22941
  };
22936
22942
  }
22937
- function DS(r, e) {
22943
+ function AS(r, e) {
22938
22944
  const t = mo(/* @__PURE__ */ new Date(), r, !0);
22939
22945
  return t ? e.translateDate(t, { dateStyle: "long" }) ?? "" : "";
22940
22946
  }
22941
- function AS(r, e, t) {
22947
+ function FS(r, e, t) {
22942
22948
  const n = r.discount ?? r.trial ?? r.introPrice, a = r.trial && !r.discount ? r.introPrice : null;
22943
22949
  if (n === null)
22944
22950
  return;
22945
- const i = TS(n), s = CS(r, n), { price: l } = n;
22951
+ const i = DS(n), s = TS(r, n), { price: l } = n;
22946
22952
  if (l !== null) {
22947
22953
  const c = yg(
22948
22954
  l,
@@ -22956,7 +22962,7 @@ function AS(r, e, t) {
22956
22962
  }
22957
22963
  if (i !== null) {
22958
22964
  const c = bl(i, e);
22959
- t["product.offer_period"] = c.period, t["product.offer_period_abbreviated"] = c.periodAbbreviated, t["product.offer_period_with_unit"] = c.periodWithUnit, t["product.offer_period_in_days"] = c.periodInDays, t["product.offer_period_in_weeks"] = c.periodInWeeks, t["product.offer_period_in_months"] = c.periodInMonths, t["product.offer_period_in_years"] = c.periodInYears, t["product.offer_end_date"] = DS(
22965
+ t["product.offer_period"] = c.period, t["product.offer_period_abbreviated"] = c.periodAbbreviated, t["product.offer_period_with_unit"] = c.periodWithUnit, t["product.offer_period_in_days"] = c.periodInDays, t["product.offer_period_in_weeks"] = c.periodInWeeks, t["product.offer_period_in_months"] = c.periodInMonths, t["product.offer_period_in_years"] = c.periodInYears, t["product.offer_end_date"] = AS(
22960
22966
  i,
22961
22967
  e
22962
22968
  );
@@ -22969,7 +22975,7 @@ function AS(r, e, t) {
22969
22975
  t["product.secondary_offer_period"] = c.period, t["product.secondary_offer_period_abbreviated"] = c.periodAbbreviated;
22970
22976
  }
22971
22977
  }
22972
- function FS(r, e, t) {
22978
+ function qS(r, e, t) {
22973
22979
  var a;
22974
22980
  const n = ((a = r.discount) == null ? void 0 : a.price) ?? null;
22975
22981
  n !== null && (t["product.offer_price"] = e.formatPrice(
@@ -23009,10 +23015,10 @@ function Mi(r) {
23009
23015
  function bg(r) {
23010
23016
  return r.webBillingProduct.productType === Ur.Subscription ? r.webBillingProduct.defaultSubscriptionOption : r.webBillingProduct.productType === Ur.NonConsumable || r.webBillingProduct.productType === Ur.Consumable ? r.webBillingProduct.defaultNonSubscriptionOption : r.webBillingProduct.defaultPurchaseOption;
23011
23017
  }
23012
- function qS(r, e) {
23018
+ function MS(r, e) {
23013
23019
  return r === Ur.Subscription && e != null;
23014
23020
  }
23015
- function MS(r, e) {
23021
+ function zS(r, e) {
23016
23022
  return r !== Ur.Subscription && e != null;
23017
23023
  }
23018
23024
  function fd(r, e, t, n = !1) {
@@ -23039,7 +23045,7 @@ function md(r, e) {
23039
23045
  return l > c ? i : s;
23040
23046
  }) : null;
23041
23047
  return t.reduce(
23042
- (i, s) => (i[s.identifier] = zS(
23048
+ (i, s) => (i[s.identifier] = OS(
23043
23049
  s,
23044
23050
  a,
23045
23051
  e
@@ -23047,7 +23053,7 @@ function md(r, e) {
23047
23053
  {}
23048
23054
  );
23049
23055
  }
23050
- function zS(r, e, t) {
23056
+ function OS(r, e, t) {
23051
23057
  const n = r.webBillingProduct, a = n.price, i = t.formatPrice(
23052
23058
  a.amountMicros,
23053
23059
  a.currency
@@ -23088,7 +23094,7 @@ function zS(r, e, t) {
23088
23094
  "product.secondary_offer_period_abbreviated": "",
23089
23095
  "product.relative_discount": ""
23090
23096
  };
23091
- if (qS(l, s)) {
23097
+ if (MS(l, s)) {
23092
23098
  c["product.price_per_period_abbreviated"] = fd(
23093
23099
  i,
23094
23100
  s,
@@ -23120,18 +23126,18 @@ function zS(r, e, t) {
23120
23126
  }
23121
23127
  );
23122
23128
  }
23123
- AS(s, t, c);
23129
+ FS(s, t, c);
23124
23130
  }
23125
- return MS(l, s) && (c["product.price"] = i, c["product.price_per_period"] = i, c["product.price_per_period_abbreviated"] = i, c["product.price_per_month"] = i, c["product.period_with_unit"] = t.translate(
23131
+ return zS(l, s) && (c["product.price"] = i, c["product.price_per_period"] = i, c["product.price_per_period_abbreviated"] = i, c["product.price_per_month"] = i, c["product.period_with_unit"] = t.translate(
23126
23132
  ue.PeriodsLifetime
23127
23133
  ), c["product.period_in_months"] = t.translate(
23128
23134
  ue.PeriodsLifetime
23129
23135
  ), c["product.periodly"] = t.translate(
23130
23136
  ue.PeriodsLifetime
23131
- ), c["product.price_per_week"] = "", c["product.relative_discount"] = "", c["product.period"] = "", c["product.period_abbreviated"] = "", FS(s, t, c)), c;
23137
+ ), c["product.price_per_week"] = "", c["product.relative_discount"] = "", c["product.period"] = "", c["product.period_abbreviated"] = "", qS(s, t, c)), c;
23132
23138
  }
23133
- var OS = /(%?)(%([sdijo]))/g;
23134
- function NS(r, e) {
23139
+ var NS = /(%?)(%([sdijo]))/g;
23140
+ function LS(r, e) {
23135
23141
  switch (e) {
23136
23142
  case "s":
23137
23143
  return r;
@@ -23152,30 +23158,30 @@ function hc(r, ...e) {
23152
23158
  if (e.length === 0)
23153
23159
  return r;
23154
23160
  let t = 0, n = r.replace(
23155
- OS,
23161
+ NS,
23156
23162
  (a, i, s, l) => {
23157
- const c = e[t], u = NS(c, l);
23163
+ const c = e[t], u = LS(c, l);
23158
23164
  return i ? a : (t++, u);
23159
23165
  }
23160
23166
  );
23161
23167
  return t < e.length && (n += ` ${e.slice(t).join(" ")}`), n = n.replace(/%{2,2}/g, "%"), n;
23162
23168
  }
23163
- var LS = 2;
23164
- function jS(r) {
23169
+ var jS = 2;
23170
+ function BS(r) {
23165
23171
  if (!r.stack)
23166
23172
  return;
23167
23173
  const e = r.stack.split(`
23168
23174
  `);
23169
- e.splice(1, LS), r.stack = e.join(`
23175
+ e.splice(1, jS), r.stack = e.join(`
23170
23176
  `);
23171
23177
  }
23172
- var BS = class extends Error {
23178
+ var RS = class extends Error {
23173
23179
  constructor(r, ...e) {
23174
- super(r), this.message = r, this.name = "Invariant Violation", this.message = hc(r, ...e), jS(this);
23180
+ super(r), this.message = r, this.name = "Invariant Violation", this.message = hc(r, ...e), BS(this);
23175
23181
  }
23176
23182
  }, kg = (r, e, ...t) => {
23177
23183
  if (!r)
23178
- throw new BS(e, ...t);
23184
+ throw new RS(e, ...t);
23179
23185
  };
23180
23186
  kg.as = (r, e, t, ...n) => {
23181
23187
  if (!e) {
@@ -23191,33 +23197,33 @@ kg.as = (r, e, t, ...n) => {
23191
23197
  throw i;
23192
23198
  }
23193
23199
  };
23194
- const RS = "[MSW]";
23200
+ const US = "[MSW]";
23195
23201
  function vc(r, ...e) {
23196
23202
  const t = hc(r, ...e);
23197
- return `${RS} ${t}`;
23203
+ return `${US} ${t}`;
23198
23204
  }
23199
- function US(r, ...e) {
23205
+ function VS(r, ...e) {
23200
23206
  console.warn(vc(r, ...e));
23201
23207
  }
23202
- function VS(r, ...e) {
23208
+ function WS(r, ...e) {
23203
23209
  console.error(vc(r, ...e));
23204
23210
  }
23205
- const WS = {
23211
+ const HS = {
23206
23212
  formatMessage: vc,
23207
- warn: US,
23208
- error: VS
23213
+ warn: VS,
23214
+ error: WS
23209
23215
  };
23210
- function HS() {
23216
+ function YS() {
23211
23217
  kg(
23212
23218
  typeof URL < "u",
23213
- WS.formatMessage(
23219
+ HS.formatMessage(
23214
23220
  `Global "URL" class is not defined. This likely means that you're running MSW in an environment that doesn't support all Node.js standard API (e.g. React Native). If that's the case, please use an appropriate polyfill for the "URL" class, like "react-native-url-polyfill".`
23215
23221
  )
23216
23222
  );
23217
23223
  }
23218
23224
  var wg = /* @__PURE__ */ ((r) => (r.HEAD = "HEAD", r.GET = "GET", r.POST = "POST", r.PUT = "PUT", r.PATCH = "PATCH", r.OPTIONS = "OPTIONS", r.DELETE = "DELETE", r))(wg || {});
23219
- HS();
23220
- class YS {
23225
+ YS();
23226
+ class GS {
23221
23227
  constructor(e, t, n, a) {
23222
23228
  ee(this, "initialDelay");
23223
23229
  ee(this, "maxDelay");
@@ -23325,7 +23331,7 @@ class YS {
23325
23331
  return Math.floor(Math.random() * (a - n + 1) + n);
23326
23332
  }
23327
23333
  }
23328
- const GS = {
23334
+ const KS = {
23329
23335
  componentType: "component_type",
23330
23336
  componentName: "component_name",
23331
23337
  componentValue: "component_value",
@@ -23345,19 +23351,19 @@ const GS = {
23345
23351
  resultingPackageId: "resulting_package_id",
23346
23352
  currentProductId: "current_product_id",
23347
23353
  resultingProductId: "resulting_product_id"
23348
- }, KS = Object.entries(GS), hd = (r) => r.displayMode === void 0 ? {} : {
23354
+ }, XS = Object.entries(KS), hd = (r) => r.displayMode === void 0 ? {} : {
23349
23355
  display_mode: r.displayMode,
23350
23356
  dark_mode: r.darkMode ?? !1,
23351
23357
  locale: r.locale ?? "en_US"
23352
- }, XS = (r) => {
23358
+ }, ZS = (r) => {
23353
23359
  const e = {};
23354
- for (const [t, n] of KS) {
23360
+ for (const [t, n] of XS) {
23355
23361
  const a = r[t];
23356
23362
  a !== void 0 && Object.assign(e, { [n]: a });
23357
23363
  }
23358
23364
  return e;
23359
23365
  };
23360
- function ZS(r) {
23366
+ function JS(r) {
23361
23367
  return !r || !r.placementIdentifier && !r.targetingContext ? null : {
23362
23368
  ...r.placementIdentifier ? { placement_identifier: r.placementIdentifier } : {},
23363
23369
  ...r.targetingContext ? {
@@ -23366,7 +23372,7 @@ function ZS(r) {
23366
23372
  } : {}
23367
23373
  };
23368
23374
  }
23369
- const JS = (r, e, t) => {
23375
+ const QS = (r, e, t) => {
23370
23376
  const n = {
23371
23377
  version: 1,
23372
23378
  id: e,
@@ -23376,7 +23382,7 @@ const JS = (r, e, t) => {
23376
23382
  paywall_revision: r.paywallRevision,
23377
23383
  timestamp: t,
23378
23384
  paywall_rc_public_id: r.paywallRcPublicId
23379
- }, a = ZS(
23385
+ }, a = JS(
23380
23386
  r.presentedOfferingContext
23381
23387
  );
23382
23388
  return a && (n.presented_offering_context = a), n;
@@ -23389,7 +23395,7 @@ class vd {
23389
23395
  this.id = An(), this.timestamp = Date.now(), this.data = e;
23390
23396
  }
23391
23397
  toJSON() {
23392
- const e = JS(this.data, this.id, this.timestamp);
23398
+ const e = QS(this.data, this.id, this.timestamp);
23393
23399
  switch (this.data.type) {
23394
23400
  case "paywall_impression":
23395
23401
  return {
@@ -23408,7 +23414,7 @@ class vd {
23408
23414
  type: this.data.type,
23409
23415
  ...e,
23410
23416
  ...hd(this.data),
23411
- ...XS(this.data)
23417
+ ...ZS(this.data)
23412
23418
  };
23413
23419
  }
23414
23420
  }
@@ -23437,7 +23443,7 @@ function ql() {
23437
23443
  if (typeof document < "u")
23438
23444
  return document;
23439
23445
  }
23440
- function QS(r, e) {
23446
+ function $S(r, e) {
23441
23447
  const t = xo(), n = t != null && t.location ? new URLSearchParams(t.location.search) : new URLSearchParams();
23442
23448
  let a = null, i = null;
23443
23449
  typeof screen < "u" && screen && (a = screen.width, i = screen.height);
@@ -23462,8 +23468,8 @@ function QS(r, e) {
23462
23468
  rcSource: e
23463
23469
  };
23464
23470
  }
23465
- const $S = 2e3, eI = 5 * 6e4, rI = 0.1, yd = 50 * 1024;
23466
- class tI {
23471
+ const eI = 2e3, rI = 5 * 6e4, tI = 0.1, yd = 50 * 1024;
23472
+ class nI {
23467
23473
  constructor(e) {
23468
23474
  ee(this, "apiKey");
23469
23475
  ee(this, "eventsQueue", []);
@@ -23476,10 +23482,10 @@ class tI {
23476
23482
  ee(this, "workflowContext");
23477
23483
  ee(this, "isDisposed", !1);
23478
23484
  var t;
23479
- this.apiKey = e.apiKey, this.eventsUrl = `${((t = e.httpConfig) == null ? void 0 : t.eventsURL) ?? HE}/v1/events`, this.appUserId = e.appUserId, this.isSilent = e.silent || !1, this.rcSource = e.rcSource, this.workflowContext = e.workflowContext, this.traceId = e.trace_id || An(), this.flushManager = new YS(
23480
- $S,
23485
+ this.apiKey = e.apiKey, this.eventsUrl = `${((t = e.httpConfig) == null ? void 0 : t.eventsURL) ?? YE}/v1/events`, this.appUserId = e.appUserId, this.isSilent = e.silent || !1, this.rcSource = e.rcSource, this.workflowContext = e.workflowContext, this.traceId = e.trace_id || An(), this.flushManager = new GS(
23481
23486
  eI,
23482
23487
  rI,
23488
+ tI,
23483
23489
  this.doFlush.bind(this)
23484
23490
  );
23485
23491
  }
@@ -23520,11 +23526,11 @@ class tI {
23520
23526
  return;
23521
23527
  }
23522
23528
  try {
23523
- const n = new eP({
23529
+ const n = new rP({
23524
23530
  eventName: e.eventName,
23525
23531
  traceId: this.traceId,
23526
23532
  appUserId: this.appUserId,
23527
- context: QS(e.source, this.rcSource),
23533
+ context: $S(e.source, this.rcSource),
23528
23534
  workflowIdentifier: (t = this.workflowContext) == null ? void 0 : t.workflowIdentifier,
23529
23535
  properties: e.properties || {
23530
23536
  mode: Xr
@@ -23615,8 +23621,8 @@ const oi = () => {
23615
23621
  collectAnalyticsEvents: !0,
23616
23622
  storeLoadTime: "configuration"
23617
23623
  };
23618
- var nI = /* @__PURE__ */ V('<p class="svelte-17914yi"><strong>Free Trial:</strong> </p>'), aI = /* @__PURE__ */ V('<p class="svelte-17914yi"><strong>Intro Price:</strong> </p>'), oI = /* @__PURE__ */ V('<p class="svelte-17914yi"><strong>Discount Price:</strong> </p>'), iI = /* @__PURE__ */ V('<div class="rc-simulated-store-modal-overlay svelte-17914yi"><div class="rc-simulated-store-modal svelte-17914yi"><div class="rc-simulated-store-modal-content svelte-17914yi"><h2 class="rc-simulated-store-modal-title svelte-17914yi">Test Store Purchase</h2> <div class="rc-simulated-store-modal-details svelte-17914yi"><div><p class="svelte-17914yi"><strong>Product:</strong> </p> <p class="svelte-17914yi"><strong>Type:</strong> </p> <p class="svelte-17914yi"><strong>Price:</strong> </p> <!> <!> <!></div></div> <div class="rc-simulated-store-modal-buttons svelte-17914yi"><button type="button" class="rc-simulated-store-modal-button rc-simulated-store-modal-button-primary svelte-17914yi">Test valid purchase</button> <button type="button" class="rc-simulated-store-modal-button rc-simulated-store-modal-button-secondary svelte-17914yi">Test failed purchase</button> <button type="button" class="rc-simulated-store-modal-button rc-simulated-store-modal-button-cancel svelte-17914yi">Cancel</button></div></div></div></div>');
23619
- const sI = {
23624
+ var aI = /* @__PURE__ */ V('<p class="svelte-17914yi"><strong>Free Trial:</strong> </p>'), oI = /* @__PURE__ */ V('<p class="svelte-17914yi"><strong>Intro Price:</strong> </p>'), iI = /* @__PURE__ */ V('<p class="svelte-17914yi"><strong>Discount Price:</strong> </p>'), sI = /* @__PURE__ */ V('<div class="rc-simulated-store-modal-overlay svelte-17914yi"><div class="rc-simulated-store-modal svelte-17914yi"><div class="rc-simulated-store-modal-content svelte-17914yi"><h2 class="rc-simulated-store-modal-title svelte-17914yi">Test Store Purchase</h2> <div class="rc-simulated-store-modal-details svelte-17914yi"><div><p class="svelte-17914yi"><strong>Product:</strong> </p> <p class="svelte-17914yi"><strong>Type:</strong> </p> <p class="svelte-17914yi"><strong>Price:</strong> </p> <!> <!> <!></div></div> <div class="rc-simulated-store-modal-buttons svelte-17914yi"><button type="button" class="rc-simulated-store-modal-button rc-simulated-store-modal-button-primary svelte-17914yi">Test valid purchase</button> <button type="button" class="rc-simulated-store-modal-button rc-simulated-store-modal-button-secondary svelte-17914yi">Test failed purchase</button> <button type="button" class="rc-simulated-store-modal-button rc-simulated-store-modal-button-cancel svelte-17914yi">Cancel</button></div></div></div></div>');
23625
+ const lI = {
23620
23626
  hash: "svelte-17914yi",
23621
23627
  code: `.rc-simulated-store-modal-overlay.svelte-17914yi {position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);display:flex;justify-content:center;align-items:center;font-family:-apple-system,
23622
23628
  BlinkMacSystemFont,
@@ -23637,17 +23643,17 @@ const sI = {
23637
23643
  @media (max-width: 768px) {.rc-simulated-store-modal-overlay.svelte-17914yi {padding:0;}.rc-simulated-store-modal.svelte-17914yi {width:100%;height:100%;border-radius:0;max-width:none;max-height:none;}.rc-simulated-store-modal-content.svelte-17914yi {height:100%;display:flex;flex-direction:column;justify-content:center;}
23638
23644
  }`
23639
23645
  };
23640
- function lI(r, e) {
23641
- _e(e, !1), ke(r, sI);
23646
+ function cI(r, e) {
23647
+ _e(e, !1), ke(r, lI);
23642
23648
  let t = X(e, "productIdentifier", 8), n = X(e, "productType", 8), a = X(e, "basePrice", 8), i = X(e, "freeTrialPeriod", 8, void 0), s = X(e, "introPriceFormatted", 8, void 0), l = X(e, "discountFormatted", 8, void 0), c = X(e, "onValidPurchase", 8), u = X(e, "onFailedPurchase", 8), d = X(e, "onCancel", 8);
23643
23649
  function p(M) {
23644
23650
  M.target === M.currentTarget && d()();
23645
23651
  }
23646
23652
  On();
23647
- var _ = iI(), f = T(_), g = T(f), w = W(T(g), 2), k = T(w), h = T(k), y = W(T(h)), b = W(h, 2), v = W(T(b)), P = W(b, 2), I = W(T(P)), E = W(P, 2);
23653
+ var _ = sI(), f = T(_), g = T(f), w = W(T(g), 2), k = T(w), h = T(k), y = W(T(h)), b = W(h, 2), v = W(T(b)), P = W(b, 2), I = W(T(P)), E = W(P, 2);
23648
23654
  {
23649
23655
  var C = (M) => {
23650
- var A = nI(), U = W(T(A));
23656
+ var A = aI(), U = W(T(A));
23651
23657
  K(() => fe(U, ` ${i() ?? ""}`)), x(M, A);
23652
23658
  };
23653
23659
  G(E, (M) => {
@@ -23657,7 +23663,7 @@ function lI(r, e) {
23657
23663
  var S = W(E, 2);
23658
23664
  {
23659
23665
  var F = (M) => {
23660
- var A = aI(), U = W(T(A));
23666
+ var A = oI(), U = W(T(A));
23661
23667
  K(() => fe(U, ` ${s() ?? ""}`)), x(M, A);
23662
23668
  };
23663
23669
  G(S, (M) => {
@@ -23667,7 +23673,7 @@ function lI(r, e) {
23667
23673
  var D = W(S, 2);
23668
23674
  {
23669
23675
  var O = (M) => {
23670
- var A = oI(), U = W(T(A));
23676
+ var A = iI(), U = W(T(A));
23671
23677
  K(() => fe(U, ` ${l() ?? ""}`)), x(M, A);
23672
23678
  };
23673
23679
  G(D, (M) => {
@@ -23709,7 +23715,7 @@ async function Pg(r, e, t, n) {
23709
23715
  storeTransaction: c
23710
23716
  };
23711
23717
  }
23712
- function cI(r, e, t) {
23718
+ function uI(r, e, t) {
23713
23719
  const n = r.rcPackage.webBillingProduct, a = n.productType, i = n.freeTrialPhase, s = n.introPricePhase, l = n.discountPhase, c = n.price, u = (d) => d ? `${d.number} ${d.unit}${d.number > 1 ? "s" : ""}` : "N/A";
23714
23720
  return new Promise((d, p) => {
23715
23721
  var k, h;
@@ -23719,7 +23725,7 @@ function cI(r, e, t) {
23719
23725
  w && ao(w), _.body.removeChild(f);
23720
23726
  };
23721
23727
  let w = null;
23722
- w = Vn(lI, {
23728
+ w = Vn(cI, {
23723
23729
  target: f,
23724
23730
  props: {
23725
23731
  productIdentifier: n.identifier,
@@ -23765,7 +23771,7 @@ function cI(r, e, t) {
23765
23771
  });
23766
23772
  });
23767
23773
  }
23768
- class uI {
23774
+ class dI {
23769
23775
  constructor() {
23770
23776
  ee(this, "virtualCurrenciesCache", /* @__PURE__ */ new Map());
23771
23777
  ee(this, "CACHE_EXPIRY_MS", 5 * 60 * 1e3);
@@ -23805,7 +23811,7 @@ class uI {
23805
23811
  return e ? t ? e.data : Date.now() - e.lastUpdatedAt >= this.CACHE_EXPIRY_MS ? null : e.data : null;
23806
23812
  }
23807
23813
  }
23808
- function dI(r) {
23814
+ function pI(r) {
23809
23815
  return {
23810
23816
  balance: r.balance,
23811
23817
  name: r.name,
@@ -23813,25 +23819,25 @@ function dI(r) {
23813
23819
  serverDescription: r.description ?? null
23814
23820
  };
23815
23821
  }
23816
- function pI(r) {
23822
+ function _I(r) {
23817
23823
  const e = {};
23818
23824
  for (const [t, n] of Object.entries(
23819
23825
  r.virtual_currencies
23820
23826
  ))
23821
- e[t] = dI(n);
23827
+ e[t] = pI(n);
23822
23828
  return {
23823
23829
  all: e
23824
23830
  };
23825
23831
  }
23826
- function _I(r, e) {
23832
+ function gI(r, e) {
23827
23833
  const t = r.webCheckoutURL;
23828
23834
  if (typeof t == "string" && t.length > 0)
23829
23835
  return t;
23830
23836
  if (typeof e == "string" && e.length > 0)
23831
23837
  return e;
23832
23838
  }
23833
- function gI(r, e) {
23834
- const t = r.webBillingProduct, n = _I(r, e), a = n !== void 0 ? { webCheckoutURL: n } : {}, i = t.productType === Ur.Subscription, s = t.defaultSubscriptionOption;
23839
+ function fI(r, e) {
23840
+ const t = r.webBillingProduct, n = gI(r, e), a = n !== void 0 ? { webCheckoutURL: n } : {}, i = t.productType === Ur.Subscription, s = t.defaultSubscriptionOption;
23835
23841
  if (i && s)
23836
23842
  return {
23837
23843
  hasTrial: s.trial !== null,
@@ -23856,12 +23862,12 @@ function kd(r) {
23856
23862
  const e = Object.entries(r.packagesById).map(
23857
23863
  ([t, n]) => [
23858
23864
  t,
23859
- gI(n, r.webCheckoutURL)
23865
+ fI(n, r.webCheckoutURL)
23860
23866
  ]
23861
23867
  );
23862
23868
  return Object.fromEntries(e);
23863
23869
  }
23864
- const fI = (r, e) => {
23870
+ const mI = (r, e) => {
23865
23871
  var n;
23866
23872
  if (r.productType === Ur.Subscription) {
23867
23873
  const a = ((n = r.subscriptionOptions) == null ? void 0 : n[e.id]) || r.defaultSubscriptionOption;
@@ -23873,7 +23879,7 @@ const fI = (r, e) => {
23873
23879
  if (!t)
23874
23880
  throw new ve(me.ErrorSettingUpPurchase);
23875
23881
  return t;
23876
- }, mI = (r, e) => {
23882
+ }, hI = (r, e) => {
23877
23883
  const t = wo(
23878
23884
  r,
23879
23885
  e
@@ -23887,10 +23893,10 @@ const fI = (r, e) => {
23887
23893
  taxBreakdown: null
23888
23894
  };
23889
23895
  }, xg = (r, e, t, n, a, i) => {
23890
- const s = r.webBillingProduct, l = fI(
23896
+ const s = r.webBillingProduct, l = mI(
23891
23897
  s,
23892
23898
  e
23893
- ), c = mI(
23899
+ ), c = hI(
23894
23900
  s,
23895
23901
  l
23896
23902
  ), u = mc({
@@ -23933,7 +23939,7 @@ const fI = (r, e) => {
23933
23939
  s == null ? void 0 : s.app_name,
23934
23940
  l
23935
23941
  ) };
23936
- }, hI = async (r, e, t, n, a, i, s) => {
23942
+ }, vI = async (r, e, t, n, a, i, s) => {
23937
23943
  var h, y;
23938
23944
  if (!r.elements_configuration)
23939
23945
  throw new ve(me.ErrorSettingUpPurchase);
@@ -23971,8 +23977,8 @@ const fI = (r, e) => {
23971
23977
  );
23972
23978
  return { stripeInstance: g, elementsInstance: w, expOptions: k };
23973
23979
  };
23974
- var vI = /* @__PURE__ */ V("<div><!></div>");
23975
- function yI(r, e) {
23980
+ var yI = /* @__PURE__ */ V("<div><!></div>");
23981
+ function bI(r, e) {
23976
23982
  var C;
23977
23983
  _e(e, !0);
23978
23984
  const t = "express_purchase_button";
@@ -24008,7 +24014,7 @@ function yI(r, e) {
24008
24014
  const F = "http://blank";
24009
24015
  try {
24010
24016
  if (!o(c) || !o(l)) {
24011
- const { stripeInstance: D, elementsInstance: O, expOptions: N } = await hI(S.stripe_gateway_params, F, e.rcPackage, e.purchaseOption, e.translator, e.brandingInfo, e.walletButtonTheme);
24017
+ const { stripeInstance: D, elementsInstance: O, expOptions: N } = await vI(S.stripe_gateway_params, F, e.rcPackage, e.purchaseOption, e.translator, e.brandingInfo, e.walletButtonTheme);
24012
24018
  q(c, D, !0), q(l, O, !0), q(u, N, !0);
24013
24019
  } else {
24014
24020
  const { expOptions: D } = wd(o(l), S.stripe_gateway_params, F, e.rcPackage, e.purchaseOption, e.translator, e.brandingInfo, e.walletButtonTheme);
@@ -24119,7 +24125,7 @@ function yI(r, e) {
24119
24125
  const F = ((D = S.availablePaymentMethods) == null ? void 0 : D.applePay) || ((O = S.availablePaymentMethods) == null ? void 0 : O.googlePay);
24120
24126
  e.onReady && e.onReady(!!F);
24121
24127
  }
24122
- var P = vI(), I = T(P);
24128
+ var P = yI(), I = T(P);
24123
24129
  {
24124
24130
  var E = (S) => {
24125
24131
  U_(S, {
@@ -24145,7 +24151,7 @@ function yI(r, e) {
24145
24151
  x(r, P), ge();
24146
24152
  }
24147
24153
  var Na;
24148
- class bI {
24154
+ class kI {
24149
24155
  constructor(e, t, n) {
24150
24156
  Oe(this, Na);
24151
24157
  ee(this, "button");
@@ -24155,7 +24161,7 @@ class bI {
24155
24161
  } };
24156
24162
  this.state.props.onReady = (s) => {
24157
24163
  t(i, s);
24158
- }, this.button = Vn(yI, { target: e, props: this.state.props });
24164
+ }, this.button = Vn(bI, { target: e, props: this.state.props });
24159
24165
  }
24160
24166
  get state() {
24161
24167
  return o(H(this, Na));
@@ -24168,11 +24174,11 @@ class bI {
24168
24174
  }
24169
24175
  }
24170
24176
  Na = new WeakMap();
24171
- const kI = /* @__PURE__ */ new Set(["javascript:", "data:", "vbscript:"]);
24172
- function wI(r) {
24173
- return kI.has(r.toLowerCase());
24177
+ const wI = /* @__PURE__ */ new Set(["javascript:", "data:", "vbscript:"]);
24178
+ function PI(r) {
24179
+ return wI.has(r.toLowerCase());
24174
24180
  }
24175
- function PI(r, e) {
24181
+ function xI(r, e) {
24176
24182
  const t = r.trim();
24177
24183
  if (t.length === 0)
24178
24184
  return !1;
@@ -24182,9 +24188,9 @@ function PI(r, e) {
24182
24188
  } catch {
24183
24189
  return !1;
24184
24190
  }
24185
- return wI(n.protocol) ? !1 : e === "deep_link" ? !0 : n.protocol === "http:" || n.protocol === "https:";
24191
+ return PI(n.protocol) ? !1 : e === "deep_link" ? !0 : n.protocol === "http:" || n.protocol === "https:";
24186
24192
  }
24187
- const Eg = 'link[rel~="apple-touch-icon"]', Sg = "data-rc-apple-touch-icon", Ig = "true", Cg = `link[${Sg}="${Ig}"]`, xI = (r) => !!r.head.querySelector(Eg), EI = ({
24193
+ const Eg = 'link[rel~="apple-touch-icon"]', Sg = "data-rc-apple-touch-icon", Ig = "true", Cg = `link[${Sg}="${Ig}"]`, EI = (r) => !!r.head.querySelector(Eg), SI = ({
24188
24194
  doc: r,
24189
24195
  win: e,
24190
24196
  ignoredLink: t
@@ -24200,7 +24206,7 @@ const Eg = 'link[rel~="apple-touch-icon"]', Sg = "data-rc-apple-touch-icon", Ig
24200
24206
  for (; a.parent !== a; ) {
24201
24207
  const i = a.parent;
24202
24208
  try {
24203
- if (xI(i.document))
24209
+ if (EI(i.document))
24204
24210
  return !0;
24205
24211
  } catch {
24206
24212
  return !1;
@@ -24208,10 +24214,10 @@ const Eg = 'link[rel~="apple-touch-icon"]', Sg = "data-rc-apple-touch-icon", Ig
24208
24214
  a = i;
24209
24215
  }
24210
24216
  return !1;
24211
- }, SI = (r) => {
24217
+ }, II = (r) => {
24212
24218
  var e;
24213
24219
  (e = r.head.querySelector(Cg)) == null || e.remove();
24214
- }, II = ({
24220
+ }, CI = ({
24215
24221
  doc: r,
24216
24222
  win: e,
24217
24223
  href: t
@@ -24223,7 +24229,7 @@ const Eg = 'link[rel~="apple-touch-icon"]', Sg = "data-rc-apple-touch-icon", Ig
24223
24229
  n == null || n.remove();
24224
24230
  return;
24225
24231
  }
24226
- if (EI({
24232
+ if (SI({
24227
24233
  doc: r,
24228
24234
  win: e,
24229
24235
  ignoredLink: n
@@ -24237,7 +24243,7 @@ const Eg = 'link[rel~="apple-touch-icon"]', Sg = "data-rc-apple-touch-icon", Ig
24237
24243
  Ig
24238
24244
  ), n || r.head.appendChild(a);
24239
24245
  };
24240
- var CI = /* @__PURE__ */ ((r) => (r.DisplayName = "$displayName", r.Email = "$email", r.PhoneNumber = "$phoneNumber", r.IDFA = "$idfa", r.IDFV = "$idfv", r.GPSAdId = "$gpsAdId", r.AndroidId = "$androidId", r.AmazonAdId = "$amazonAdId", r.IP = "$ip", r.AdjustId = "$adjustId", r.AmplitudeDeviceId = "$amplitudeDeviceId", r.AmplitudeUserId = "$amplitudeUserId", r.AppsflyerId = "$appsflyerId", r.AppsflyerSharingFilter = "$appsflyerSharingFilter", r.BranchId = "$branchId", r.BrazeAliasName = "$brazeAliasName", r.BrazeAliasLabel = "$brazeAliasLabel", r.ClevertapId = "$clevertapId", r.FbAnonId = "$fbAnonId", r.MparticleId = "$mparticleId", r.OnesignalId = "$onesignalId", r.OnesignalUserId = "$onesignalUserId", r.IntercomContactId = "$intercomContactId", r.MediaSource = "$mediaSource", r.Campaign = "$campaign", r.AdGroup = "$adGroup", r.AdId = "$ad", r.Keyword = "$keyword", r.Creative = "$creative", r.APNSTokens = "$apnsTokens", r.FCMTokens = "$fcmTokens", r.AirshipChannelId = "$airshipChannelId", r.SegmentId = "$segmentId", r.IterableUserId = "$iterableUserId", r.IterableCampaignId = "$iterableCampaignId", r.IterableTemplateId = "$iterableTemplateId", r.FirebaseAppInstanceId = "$firebaseAppInstanceId", r.MixpanelDistinctId = "$mixpanelDistinctId", r.ATTConsentStatus = "$attConsentStatus", r.KochavaDeviceId = "$kochavaDeviceId", r.DeviceVersion = "$deviceVersion", r.PosthogUserId = "$posthogUserId", r.TelemetryDeckUserId = "$telemetryDeckUserId", r.TelemetryDeckAppId = "$telemetryDeckAppId", r.AppleRefundHandlingPreference = "$appleRefundHandlingPreference", r.CustomerioId = "$customerioId", r.TenjinId = "$tenjinId", r))(CI || {});
24246
+ var TI = /* @__PURE__ */ ((r) => (r.DisplayName = "$displayName", r.Email = "$email", r.PhoneNumber = "$phoneNumber", r.IDFA = "$idfa", r.IDFV = "$idfv", r.GPSAdId = "$gpsAdId", r.AndroidId = "$androidId", r.AmazonAdId = "$amazonAdId", r.IP = "$ip", r.AdjustId = "$adjustId", r.AmplitudeDeviceId = "$amplitudeDeviceId", r.AmplitudeUserId = "$amplitudeUserId", r.AppsflyerId = "$appsflyerId", r.AppsflyerSharingFilter = "$appsflyerSharingFilter", r.BranchId = "$branchId", r.BrazeAliasName = "$brazeAliasName", r.BrazeAliasLabel = "$brazeAliasLabel", r.ClevertapId = "$clevertapId", r.FbAnonId = "$fbAnonId", r.MparticleId = "$mparticleId", r.OnesignalId = "$onesignalId", r.OnesignalUserId = "$onesignalUserId", r.IntercomContactId = "$intercomContactId", r.MediaSource = "$mediaSource", r.Campaign = "$campaign", r.AdGroup = "$adGroup", r.AdId = "$ad", r.Keyword = "$keyword", r.Creative = "$creative", r.APNSTokens = "$apnsTokens", r.FCMTokens = "$fcmTokens", r.AirshipChannelId = "$airshipChannelId", r.SegmentId = "$segmentId", r.IterableUserId = "$iterableUserId", r.IterableCampaignId = "$iterableCampaignId", r.IterableTemplateId = "$iterableTemplateId", r.FirebaseAppInstanceId = "$firebaseAppInstanceId", r.MixpanelDistinctId = "$mixpanelDistinctId", r.ATTConsentStatus = "$attConsentStatus", r.KochavaDeviceId = "$kochavaDeviceId", r.DeviceVersion = "$deviceVersion", r.PosthogUserId = "$posthogUserId", r.TelemetryDeckUserId = "$telemetryDeckUserId", r.TelemetryDeckAppId = "$telemetryDeckAppId", r.AppleRefundHandlingPreference = "$appleRefundHandlingPreference", r.CustomerioId = "$customerioId", r.TenjinId = "$tenjinId", r))(TI || {});
24241
24247
  const Pd = "$RCAnonymousID:";
24242
24248
  var Ed, Sd, ii;
24243
24249
  Sd = [_d], Ed = [_d];
@@ -24268,7 +24274,7 @@ const Er = class Er {
24268
24274
  var l;
24269
24275
  this._API_KEY = e, this._appUserId = t, this._flags = { ...Zs, ...a }, this._context = i, qi(e) ? be.debugLog(
24270
24276
  "Initializing Purchases SDK with Web billing sandbox API Key"
24271
- ) : Un(e) && be.debugLog("Initializing Purchases SDK with RC Test store API Key."), this.eventsTracker = new tI({
24277
+ ) : Un(e) && be.debugLog("Initializing Purchases SDK with RC Test store API Key."), this.eventsTracker = new nI({
24272
24278
  apiKey: this._API_KEY,
24273
24279
  appUserId: this._appUserId,
24274
24280
  silent: !this._flags.collectAnalyticsEvents,
@@ -24276,7 +24282,7 @@ const Er = class Er {
24276
24282
  workflowContext: (l = this._context) == null ? void 0 : l.workflowContext,
24277
24283
  trace_id: s,
24278
24284
  httpConfig: n
24279
- }), this.backend = new gS(this._API_KEY, n, this._context), this.inMemoryCache = new uI(), this.purchaseOperationHelper = new Pi(
24285
+ }), this.backend = new fS(this._API_KEY, n, this._context), this.inMemoryCache = new dI(), this.purchaseOperationHelper = new Pi(
24280
24286
  this.backend,
24281
24287
  this.eventsTracker
24282
24288
  ), this.eventsTracker.trackSDKEvent({
@@ -24384,7 +24390,7 @@ const Er = class Er {
24384
24390
  }
24385
24391
  static validateConfig(e) {
24386
24392
  var t, n;
24387
- fS(e.apiKey), Xs(e.appUserId), mS((t = e.httpConfig) == null ? void 0 : t.proxyURL), hS((n = e.httpConfig) == null ? void 0 : n.additionalHeaders);
24393
+ mS(e.apiKey), Xs(e.appUserId), hS((t = e.httpConfig) == null ? void 0 : t.proxyURL), vS((n = e.httpConfig) == null ? void 0 : n.additionalHeaders);
24388
24394
  }
24389
24395
  /**
24390
24396
  * Loads and caches some optional data in the Purchases SDK.
@@ -24427,7 +24433,7 @@ const Er = class Er {
24427
24433
  if (!e)
24428
24434
  return;
24429
24435
  const n = (i = (a = this._brandingInfo) == null ? void 0 : a.app_icon) == null ? void 0 : i.trim();
24430
- II({
24436
+ CI({
24431
24437
  doc: e,
24432
24438
  win: t,
24433
24439
  href: n ? Ea(n) : null
@@ -24451,7 +24457,7 @@ const Er = class Er {
24451
24457
  if (i === null) {
24452
24458
  n = !0;
24453
24459
  const Y = a.createElement("div");
24454
- Y.id = "rcb-ui-pw-root", Y.className = "rcb-ui-pw-root", Y.style.zIndex = `${bS}`, Y.style.position = "fixed", Y.style.top = "0", Y.style.left = "0", Y.style.width = "100%", Y.style.height = "100%", Y.style.overflow = "auto", Y.style.backgroundColor = "var(--rc-purchases-ui-bg-color, Canvas)", a.body.offsetWidth > 968 && (Y.style.display = "flex", Y.style.justifyContent = "center", Y.style.alignItems = "center"), Y.style.transition = "opacity 0.3s", Y.style.opacity = "0", a.body.appendChild(Y), i = Y;
24460
+ Y.id = "rcb-ui-pw-root", Y.className = "rcb-ui-pw-root", Y.style.zIndex = `${kS}`, Y.style.position = "fixed", Y.style.top = "0", Y.style.left = "0", Y.style.width = "100%", Y.style.height = "100%", Y.style.overflow = "auto", Y.style.backgroundColor = "var(--rc-purchases-ui-bg-color, Canvas)", a.body.offsetWidth > 968 && (Y.style.display = "flex", Y.style.justifyContent = "center", Y.style.alignItems = "center"), Y.style.transition = "opacity 0.3s", Y.style.opacity = "0", a.body.appendChild(Y), i = Y;
24455
24461
  }
24456
24462
  if (i === null)
24457
24463
  throw new Error(
@@ -24595,7 +24601,7 @@ const Er = class Er {
24595
24601
  await e.onCompleteWorkflowNavigate(Y);
24596
24602
  return;
24597
24603
  }
24598
- if (!PI(Y.url, Y.method)) {
24604
+ if (!xI(Y.url, Y.method)) {
24599
24605
  be.warnLog(
24600
24606
  "Blocked complete-workflow navigation to a disallowed URL."
24601
24607
  );
@@ -24801,7 +24807,7 @@ const Er = class Er {
24801
24807
  * @param params - The parameters object to customise the offerings fetch. Check {@link GetOfferingsParams}
24802
24808
  */
24803
24809
  async getOfferings(e) {
24804
- Dx(e == null ? void 0 : e.currency);
24810
+ Ax(e == null ? void 0 : e.currency);
24805
24811
  const t = this._appUserId, n = await this.backend.getOfferings(t), a = (e == null ? void 0 : e.offeringIdentifier) === hg.Current ? n.current_offering_id : e == null ? void 0 : e.offeringIdentifier;
24806
24812
  return a && (n.offerings = n.offerings.filter(
24807
24813
  (i) => i.identifier === a
@@ -24819,7 +24825,7 @@ const Er = class Er {
24819
24825
  n,
24820
24826
  t
24821
24827
  ), s = a.placements ?? null;
24822
- return s == null ? null : vS(
24828
+ return s == null ? null : yS(
24823
24829
  s,
24824
24830
  i.all,
24825
24831
  e
@@ -24832,7 +24838,7 @@ const Er = class Er {
24832
24838
  n == null ? void 0 : n.currency,
24833
24839
  n == null ? void 0 : n.discountCode
24834
24840
  );
24835
- return this.logMissingProductIds(a, i.product_details), yS(e, i);
24841
+ return this.logMissingProductIds(a, i.product_details), bS(e, i);
24836
24842
  }
24837
24843
  /**
24838
24844
  * Convenience method to check whether a user is entitled to a specific
@@ -24910,7 +24916,7 @@ const Er = class Er {
24910
24916
  });
24911
24917
  this.eventsTracker.trackSDKEvent(v), k(b);
24912
24918
  };
24913
- new bI(a, c, {
24919
+ new kI(a, c, {
24914
24920
  appUserId: d,
24915
24921
  rcPackage: t,
24916
24922
  purchaseOption: p,
@@ -24976,7 +24982,7 @@ const Er = class Er {
24976
24982
  }
24977
24983
  async purchase(e) {
24978
24984
  if (Un(this._API_KEY)) {
24979
- const a = await cI(
24985
+ const a = await uI(
24980
24986
  e,
24981
24987
  this.backend,
24982
24988
  this._appUserId
@@ -25034,7 +25040,7 @@ const Er = class Er {
25034
25040
  S,
25035
25041
  D
25036
25042
  );
25037
- v = Vn(ME, {
25043
+ v = Vn(zE, {
25038
25044
  target: f,
25039
25045
  props: {
25040
25046
  isInElement: I,
@@ -25062,7 +25068,7 @@ const Er = class Er {
25062
25068
  });
25063
25069
  }
25064
25070
  async performWebBillingPurchase(e) {
25065
- var C;
25071
+ var S;
25066
25072
  const {
25067
25073
  rcPackage: t,
25068
25074
  purchaseOption: n,
@@ -25081,7 +25087,7 @@ const Er = class Er {
25081
25087
  `Presenting purchase form for package ${t.identifier}`
25082
25088
  );
25083
25089
  const k = c || u, h = n ?? t.webBillingProduct.defaultPurchaseOption, y = _i({
25084
- appearance: (C = this._brandingInfo) == null ? void 0 : C.appearance,
25090
+ appearance: (S = this._brandingInfo) == null ? void 0 : S.appearance,
25085
25091
  rcPackage: t,
25086
25092
  purchaseOptionToUse: h,
25087
25093
  customerEmail: i
@@ -25091,30 +25097,33 @@ const Er = class Er {
25091
25097
  let P = null;
25092
25098
  const I = this._brandingInfo;
25093
25099
  I && e.brandingAppearanceOverride && (I.appearance = e.brandingAppearanceOverride);
25094
- const E = a !== void 0;
25095
- return new Promise((S, F) => {
25096
- const D = mn();
25097
- E || D.history.pushState({ checkoutOpen: !0 }, "");
25098
- const O = () => {
25100
+ const E = $w({
25101
+ brandingInfo: I,
25102
+ termsAndConditionsUrl: e.termsAndConditionsUrl
25103
+ }), C = a !== void 0;
25104
+ return new Promise((F, D) => {
25105
+ const O = mn();
25106
+ C || O.history.pushState({ checkoutOpen: !0 }, "");
25107
+ const N = () => {
25099
25108
  P && ao(P), g.innerHTML = "";
25100
- }, N = this.createCheckoutOnCloseHandler(
25101
- F,
25102
- O
25109
+ }, L = this.createCheckoutOnCloseHandler(
25110
+ D,
25111
+ N
25103
25112
  );
25104
- !E && N && D.addEventListener("popstate", N);
25105
- const L = this.createCheckoutOnFinishedHandler(
25106
- S,
25113
+ !C && L && O.addEventListener("popstate", L);
25114
+ const Z = this.createCheckoutOnFinishedHandler(
25115
+ F,
25107
25116
  w,
25108
25117
  t,
25109
- O
25110
- ), Z = this.createCheckoutOnErrorHandler(
25111
- F,
25112
- O
25118
+ N
25119
+ ), z = this.createCheckoutOnErrorHandler(
25120
+ D,
25121
+ N
25113
25122
  );
25114
- P = Vn(Fx, {
25123
+ P = Vn(qx, {
25115
25124
  target: g,
25116
25125
  props: {
25117
- isInElement: E,
25126
+ isInElement: C,
25118
25127
  appUserId: w,
25119
25128
  rcPackage: t,
25120
25129
  purchaseOption: h,
@@ -25123,9 +25132,9 @@ const Er = class Er {
25123
25132
  attributionMetadata: l,
25124
25133
  paywallId: e.paywallId,
25125
25134
  paywallSessionId: e.paywallSessionId,
25126
- onFinished: L,
25127
- onClose: N,
25128
- onError: Z,
25135
+ onFinished: Z,
25136
+ onClose: L,
25137
+ onError: z,
25129
25138
  purchases: this,
25130
25139
  eventsTracker: this.eventsTracker,
25131
25140
  brandingInfo: this._brandingInfo,
@@ -25134,7 +25143,7 @@ const Er = class Er {
25134
25143
  metadata: v,
25135
25144
  defaultLocale: u,
25136
25145
  customTranslations: e.labelsOverride,
25137
- termsAndConditionsUrl: e.termsAndConditionsUrl,
25146
+ termsAndConditionsUrl: E,
25138
25147
  showDiscountCodeField: p,
25139
25148
  discountCode: _,
25140
25149
  onDiscountCodeChanged: f,
@@ -25173,7 +25182,7 @@ const Er = class Er {
25173
25182
  customerEmail: a
25174
25183
  });
25175
25184
  this.eventsTracker.trackSDKEvent(h);
25176
- const y = new tE(this.backend, this.eventsTracker);
25185
+ const y = new nE(this.backend, this.eventsTracker);
25177
25186
  let b = null;
25178
25187
  const v = d !== void 0;
25179
25188
  return new Promise((I, E) => {
@@ -25192,7 +25201,7 @@ const Er = class Er {
25192
25201
  t,
25193
25202
  S
25194
25203
  ), O = this.createCheckoutOnErrorHandler(E);
25195
- b || (b = Vn(xE, {
25204
+ b || (b = Vn(EE, {
25196
25205
  target: p,
25197
25206
  props: {
25198
25207
  eventsTracker: this.eventsTracker,
@@ -25437,7 +25446,7 @@ const Er = class Er {
25437
25446
  if (Er.instance === this) {
25438
25447
  if (this.eventsTracker && this.eventsTracker.dispose(), this._flags.applePayBrandingLogoEnabled) {
25439
25448
  const e = ql();
25440
- e && SI(e);
25449
+ e && II(e);
25441
25450
  }
25442
25451
  Er.instance = void 0;
25443
25452
  } else
@@ -25455,7 +25464,7 @@ const Er = class Er {
25455
25464
  const t = this.inMemoryCache.getCachedVirtualCurrencies(e);
25456
25465
  if (t)
25457
25466
  return be.debugLog("Vending VirtualCurrencies from cache."), t;
25458
- const n = await this.backend.getVirtualCurrencies(e), a = pI(n);
25467
+ const n = await this.backend.getVirtualCurrencies(e), a = _I(n);
25459
25468
  return be.debugLog("VirtualCurrencies updated from the network."), this.inMemoryCache.cacheVirtualCurrencies(e, a), a;
25460
25469
  }
25461
25470
  /**
@@ -25503,7 +25512,7 @@ ee(Er, "_platformInfo"), /** @internal */
25503
25512
  ee(Er, "instance");
25504
25513
  let Ml = Er;
25505
25514
  export {
25506
- AI as CustomVariableValue,
25515
+ FI as CustomVariableValue,
25507
25516
  Me as ErrorCode,
25508
25517
  tt as LogLevel,
25509
25518
  hg as OfferingKeyword,
@@ -25512,6 +25521,6 @@ export {
25512
25521
  Ur as ProductType,
25513
25522
  Ml as Purchases,
25514
25523
  Qe as PurchasesError,
25515
- CI as ReservedCustomerAttribute,
25524
+ TI as ReservedCustomerAttribute,
25516
25525
  Cm as UninitializedPurchasesError
25517
25526
  };