@everymatrix/casino-promotions-nd 1.85.4 → 1.85.5

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.
@@ -157,14 +157,14 @@ function Zn(e) {
157
157
  }
158
158
  ), t;
159
159
  }
160
- let Re;
161
- function ke(e) {
162
- Re = e;
160
+ let Fe;
161
+ function Re(e) {
162
+ Fe = e;
163
163
  }
164
164
  function qn() {
165
- if (!Re)
165
+ if (!Fe)
166
166
  throw new Error("Function called outside component initialization");
167
- return Re;
167
+ return Fe;
168
168
  }
169
169
  function Qn(e) {
170
170
  qn().$$.on_mount.push(e);
@@ -179,7 +179,7 @@ function Vr() {
179
179
  function Jn() {
180
180
  return Vr(), zr;
181
181
  }
182
- function Fe(e) {
182
+ function De(e) {
183
183
  Te.push(e);
184
184
  }
185
185
  const lt = /* @__PURE__ */ new Set();
@@ -187,17 +187,17 @@ let xe = 0;
187
187
  function J() {
188
188
  if (xe !== 0)
189
189
  return;
190
- const e = Re;
190
+ const e = Fe;
191
191
  do {
192
192
  try {
193
193
  for (; xe < Ee.length; ) {
194
194
  const t = Ee[xe];
195
- xe++, ke(t), Yn(t.$$);
195
+ xe++, Re(t), Yn(t.$$);
196
196
  }
197
197
  } catch (t) {
198
198
  throw Ee.length = 0, xe = 0, t;
199
199
  }
200
- for (ke(null), Ee.length = 0, xe = 0; _e.length; )
200
+ for (Re(null), Ee.length = 0, xe = 0; _e.length; )
201
201
  _e.pop()();
202
202
  for (let t = 0; t < Te.length; t += 1) {
203
203
  const r = Te[t];
@@ -207,13 +207,13 @@ function J() {
207
207
  } while (Ee.length);
208
208
  for (; Xt.length; )
209
209
  Xt.pop()();
210
- _t = !1, lt.clear(), ke(e);
210
+ _t = !1, lt.clear(), Re(e);
211
211
  }
212
212
  function Yn(e) {
213
213
  if (e.fragment !== null) {
214
214
  e.update(), ge(e.before_update);
215
215
  const t = e.dirty;
216
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Fe);
216
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(De);
217
217
  }
218
218
  }
219
219
  function Kn(e) {
@@ -229,10 +229,10 @@ function K(e) {
229
229
  }
230
230
  function ro(e, t, r) {
231
231
  const { fragment: n, after_update: o } = e.$$;
232
- n && n.m(t, r), Fe(() => {
232
+ n && n.m(t, r), De(() => {
233
233
  const i = e.$$.on_mount.map(Ur).filter(Se);
234
234
  e.$$.on_destroy ? e.$$.on_destroy.push(...i) : ge(i), e.$$.on_mount = [];
235
- }), o.forEach(Fe);
235
+ }), o.forEach(De);
236
236
  }
237
237
  function no(e, t) {
238
238
  const r = e.$$;
@@ -242,8 +242,8 @@ function oo(e, t) {
242
242
  e.$$.dirty[0] === -1 && (Ee.push(e), Vr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
243
243
  }
244
244
  function io(e, t, r, n, o, i, s = null, a = [-1]) {
245
- const l = Re;
246
- ke(e);
245
+ const l = Fe;
246
+ Re(e);
247
247
  const u = e.$$ = {
248
248
  fragment: null,
249
249
  ctx: [],
@@ -278,7 +278,7 @@ function io(e, t, r, n, o, i, s = null, a = [-1]) {
278
278
  u.fragment && u.fragment.c();
279
279
  t.intro && to(e.$$.fragment), ro(e, t.target, t.anchor), J();
280
280
  }
281
- ke(l);
281
+ Re(l);
282
282
  }
283
283
  let Xr;
284
284
  typeof HTMLElement == "function" && (Xr = class extends HTMLElement {
@@ -585,12 +585,12 @@ function bo(e) {
585
585
  function go(e) {
586
586
  return Array.isArray(e) ? [] : {};
587
587
  }
588
- function De(e, t) {
588
+ function Ue(e, t) {
589
589
  return t.clone !== !1 && t.isMergeableObject(e) ? Be(go(e), e, t) : e;
590
590
  }
591
591
  function vo(e, t, r) {
592
592
  return e.concat(t).map(function(n) {
593
- return De(n, r);
593
+ return Ue(n, r);
594
594
  });
595
595
  }
596
596
  function yo(e, t) {
@@ -620,15 +620,15 @@ function wo(e, t) {
620
620
  function Eo(e, t, r) {
621
621
  var n = {};
622
622
  return r.isMergeableObject(e) && Wt(e).forEach(function(o) {
623
- n[o] = De(e[o], r);
623
+ n[o] = Ue(e[o], r);
624
624
  }), Wt(t).forEach(function(o) {
625
- wo(e, o) || (Wr(e, o) && r.isMergeableObject(t[o]) ? n[o] = yo(o, r)(e[o], t[o], r) : n[o] = De(t[o], r));
625
+ wo(e, o) || (Wr(e, o) && r.isMergeableObject(t[o]) ? n[o] = yo(o, r)(e[o], t[o], r) : n[o] = Ue(t[o], r));
626
626
  }), n;
627
627
  }
628
628
  function Be(e, t, r) {
629
- r = r || {}, r.arrayMerge = r.arrayMerge || vo, r.isMergeableObject = r.isMergeableObject || ho, r.cloneUnlessOtherwiseSpecified = De;
629
+ r = r || {}, r.arrayMerge = r.arrayMerge || vo, r.isMergeableObject = r.isMergeableObject || ho, r.cloneUnlessOtherwiseSpecified = Ue;
630
630
  var n = Array.isArray(t), o = Array.isArray(e), i = n === o;
631
- return i ? n ? r.arrayMerge(e, t, r) : Eo(e, t, r) : De(t, r);
631
+ return i ? n ? r.arrayMerge(e, t, r) : Eo(e, t, r) : Ue(t, r);
632
632
  }
633
633
  Be.all = function(t, r) {
634
634
  if (!Array.isArray(t))
@@ -3553,20 +3553,20 @@ function Bi(e, t) {
3553
3553
  t.map((n) => (Ti(e, n), n().then((o) => o.default || o)))
3554
3554
  ).then((n) => pn(e, ...n));
3555
3555
  }
3556
- const Me = {};
3556
+ const ke = {};
3557
3557
  function dn(e) {
3558
3558
  if (!Tt(e))
3559
- return e in Me ? Me[e] : Promise.resolve();
3559
+ return e in ke ? ke[e] : Promise.resolve();
3560
3560
  const t = Si(e);
3561
- return Me[e] = Promise.all(
3561
+ return ke[e] = Promise.all(
3562
3562
  t.map(
3563
3563
  ([r, n]) => Bi(r, n)
3564
3564
  )
3565
3565
  ).then(() => {
3566
3566
  if (Tt(e))
3567
3567
  return dn(e);
3568
- delete Me[e];
3569
- }), Me[e];
3568
+ delete ke[e];
3569
+ }), ke[e];
3570
3570
  }
3571
3571
  const Hi = {
3572
3572
  number: {
@@ -3671,7 +3671,7 @@ var Fi = Object.defineProperty, et = Object.getOwnPropertySymbols, _n = Object.p
3671
3671
  t.indexOf(n) < 0 && bn.call(e, n) && (r[n] = e[n]);
3672
3672
  return r;
3673
3673
  };
3674
- const Ue = (e, t) => {
3674
+ const Ge = (e, t) => {
3675
3675
  const { formats: r } = Pe();
3676
3676
  if (e in r && t in r[e])
3677
3677
  return r[e][t];
@@ -3681,14 +3681,14 @@ const Ue = (e, t) => {
3681
3681
  var t = e, { locale: r, format: n } = t, o = Le(t, ["locale", "format"]);
3682
3682
  if (r == null)
3683
3683
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3684
- return n && (o = Ue("number", n)), new Intl.NumberFormat(r, o);
3684
+ return n && (o = Ge("number", n)), new Intl.NumberFormat(r, o);
3685
3685
  }
3686
3686
  ), Ui = st(
3687
3687
  (e) => {
3688
3688
  var t = e, { locale: r, format: n } = t, o = Le(t, ["locale", "format"]);
3689
3689
  if (r == null)
3690
3690
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3691
- return n ? o = Ue("date", n) : Object.keys(o).length === 0 && (o = Ue("date", "short")), new Intl.DateTimeFormat(r, o);
3691
+ return n ? o = Ge("date", n) : Object.keys(o).length === 0 && (o = Ge("date", "short")), new Intl.DateTimeFormat(r, o);
3692
3692
  }
3693
3693
  ), Gi = st(
3694
3694
  (e) => {
@@ -3697,7 +3697,7 @@ const Ue = (e, t) => {
3697
3697
  throw new Error(
3698
3698
  '[svelte-i18n] A "locale" must be set to format time values'
3699
3699
  );
3700
- return n ? o = Ue("time", n) : Object.keys(o).length === 0 && (o = Ue("time", "short")), new Intl.DateTimeFormat(r, o);
3700
+ return n ? o = Ge("time", n) : Object.keys(o).length === 0 && (o = Ge("time", "short")), new Intl.DateTimeFormat(r, o);
3701
3701
  }
3702
3702
  ), ji = (e = {}) => {
3703
3703
  var t = e, {
@@ -3795,7 +3795,7 @@ var Bt = function(e, t) {
3795
3795
  Object.prototype.hasOwnProperty.call(n, o) && (r[o] = n[o]);
3796
3796
  }, Bt(e, t);
3797
3797
  };
3798
- function Ge(e, t) {
3798
+ function je(e, t) {
3799
3799
  if (typeof t != "function" && t !== null)
3800
3800
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
3801
3801
  Bt(e, t);
@@ -3987,7 +3987,7 @@ function Je(e) {
3987
3987
  e();
3988
3988
  }
3989
3989
  var xn = function(e) {
3990
- Ge(t, e);
3990
+ je(t, e);
3991
3991
  function t(r) {
3992
3992
  var n = e.call(this) || this;
3993
3993
  return n.isStopped = !1, r ? (n.destination = r, yn(r) && r.add(n)) : n.destination = is, n;
@@ -4049,7 +4049,7 @@ var xn = function(e) {
4049
4049
  }
4050
4050
  }, e;
4051
4051
  }(), Ot = function(e) {
4052
- Ge(t, e);
4052
+ je(t, e);
4053
4053
  function t(r, n, o) {
4054
4054
  var i = e.call(this) || this, s;
4055
4055
  return le(r) || !r ? s = {
@@ -4159,7 +4159,7 @@ var hs = gn(function(e) {
4159
4159
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
4160
4160
  };
4161
4161
  }), wn = function(e) {
4162
- Ge(t, e);
4162
+ je(t, e);
4163
4163
  function t() {
4164
4164
  var r = e.call(this) || this;
4165
4165
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
@@ -4239,7 +4239,7 @@ var hs = gn(function(e) {
4239
4239
  return new hr(r, n);
4240
4240
  }, t;
4241
4241
  }(ur), hr = function(e) {
4242
- Ge(t, e);
4242
+ je(t, e);
4243
4243
  function t(r, n) {
4244
4244
  var o = e.call(this) || this;
4245
4245
  return o.destination = r, o.source = n, o;
@@ -4263,7 +4263,7 @@ var hs = gn(function(e) {
4263
4263
  },
4264
4264
  delegate: void 0
4265
4265
  }, fs = function(e) {
4266
- Ge(t, e);
4266
+ je(t, e);
4267
4267
  function t(r, n, o) {
4268
4268
  r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), o === void 0 && (o = En);
4269
4269
  var i = e.call(this) || this;
@@ -4498,7 +4498,7 @@ function vs(e) {
4498
4498
  /*promoDetailsTitle*/
4499
4499
  e[7]
4500
4500
  ), d(h, "class", "modal__picture"), d(c, "class", "modal__header"), d(M, "class", "modal__details"), d(R, "class", "modal__tabs"), d(E, "class", "modal__body_title"), d(w, "class", "modal__tab_content"), d(T, "class", "modal__tabContentWrapper"), d(y, "class", "modal__body_content"), d(k, "class", "modal__body"), d(a, "class", "modal__content"), d(o, "class", "promo__modal modal"), d(r, "class", G = "promotions " + /*currentBreakpoint*/
4501
- e[4]), Fe(() => (
4501
+ e[4]), De(() => (
4502
4502
  /*div10_elementresize_handler*/
4503
4503
  e[53].call(r)
4504
4504
  )), d(t, "class", "promotion__section");
@@ -4603,7 +4603,7 @@ function ys(e) {
4603
4603
  for (let p = 0; p < h.length; p += 1)
4604
4604
  h[p].c();
4605
4605
  d(n, "class", "promotion__header"), d(s, "class", "promotions__grid"), d(r, "class", a = "promotions " + /*currentBreakpoint*/
4606
- e[4]), Fe(() => (
4606
+ e[4]), De(() => (
4607
4607
  /*div5_elementresize_handler*/
4608
4608
  e[46].call(r)
4609
4609
  )), d(t, "class", "promotion__section");
@@ -4799,7 +4799,7 @@ function ws(e) {
4799
4799
  n[s] && n[s].m(t, null);
4800
4800
  },
4801
4801
  p(o, i) {
4802
- if (i[0] & /*$_, bonusClaimed, claimBonus, promotions, bonusLoading, promotionWithBonus, openPromo, bonusClaimCode, bonusClaimError, activeTab*/
4802
+ if (i[0] & /*$_, selectedPromotionId, promotions, claimBonus, bonusLoading, promotionWithBonus, openPromo, bonusClaimCode, bonusClaimError, activeTab*/
4803
4803
  1069580292) {
4804
4804
  r = K(
4805
4805
  /*promotions*/
@@ -4965,26 +4965,26 @@ function Hr(e) {
4965
4965
  };
4966
4966
  }
4967
4967
  function Cr(e) {
4968
- let t;
4969
- function r(i, s) {
4970
- return (
4971
- /*bonusClaimed*/
4972
- i[25] ? Ts : Es
4973
- );
4968
+ let t, r;
4969
+ function n(s, a) {
4970
+ return a[0] & /*selectedPromotionId, promotions*/
4971
+ 33554436 && (t = null), t == null && (t = /*selectedPromotionId*/
4972
+ s[25] === /*promotion*/
4973
+ s[80].id.toString()), t ? Ts : Es;
4974
4974
  }
4975
- let n = r(e), o = n(e);
4975
+ let o = n(e, [-1, -1, -1]), i = o(e);
4976
4976
  return {
4977
4977
  c() {
4978
- o.c(), t = tt();
4978
+ i.c(), r = tt();
4979
4979
  },
4980
- m(i, s) {
4981
- o.m(i, s), L(i, t, s);
4980
+ m(s, a) {
4981
+ i.m(s, a), L(s, r, a);
4982
4982
  },
4983
- p(i, s) {
4984
- n === (n = r(i)) && o ? o.p(i, s) : (o.d(1), o = n(i), o && (o.c(), o.m(t.parentNode, t)));
4983
+ p(s, a) {
4984
+ o === (o = n(s, a)) && i ? i.p(s, a) : (i.d(1), i = o(s), i && (i.c(), i.m(r.parentNode, r)));
4985
4985
  },
4986
- d(i) {
4987
- i && P(t), o.d(i);
4986
+ d(s) {
4987
+ s && P(r), i.d(s);
4988
4988
  }
4989
4989
  };
4990
4990
  }
@@ -5436,7 +5436,7 @@ function Ss(e) {
5436
5436
  function Bs(e, t, r) {
5437
5437
  let n;
5438
5438
  jn(e, Ji, (f) => r(26, n = f));
5439
- let { endpoint: o = "" } = t, { cmsendpoint: i = "" } = t, { session: s = "" } = t, { currency: a = "" } = t, { lang: l = "" } = t, { env: u = "" } = t, { userroles: c = "" } = t, { promotionsfilter: h = "false" } = t, { translationurl: p = "" } = t, { clientstyling: b = "" } = t, { clientstylingurl: m = "" } = t, { mbsource: v } = t, { modalpromotion: M = "" } = t, I, k = [], y, R, B, T = "", E = window.navigator.userAgent, O = !1, w, H = "", G = "", F = {}, oe = [], me = [], Z = !1, ie = "", V = "", q = "all", se = [], X = !1, j, x, W, S = !0, ue = !0, Ne = !1, Mt = "", je = !1, $e = { claimable: [], applicable: [] };
5439
+ let { endpoint: o = "" } = t, { cmsendpoint: i = "" } = t, { session: s = "" } = t, { currency: a = "" } = t, { lang: l = "" } = t, { env: u = "" } = t, { userroles: c = "" } = t, { promotionsfilter: h = "false" } = t, { translationurl: p = "" } = t, { clientstyling: b = "" } = t, { clientstylingurl: m = "" } = t, { mbsource: v } = t, { modalpromotion: M = "" } = t, I, k = [], y, R, B, T = "", E = window.navigator.userAgent, O = !1, w, H = "", G = "", F = {}, oe = [], me = [], Z = !1, ie = "", V = "", q = "all", se = [], X = !1, j, x, W, S = !0, ue = !0, Ne = !1, Mt = "", Ie = "", $e = { claimable: [], applicable: [] };
5440
5440
  Yi({ withLocale: "en", translations: {} });
5441
5441
  const Tn = () => {
5442
5442
  fetch(p).then((f) => f.json()).then((f) => {
@@ -5458,8 +5458,8 @@ function Bs(e, t, r) {
5458
5458
  r(2, k = z);
5459
5459
  let Q = /* @__PURE__ */ new Set();
5460
5460
  k.forEach((ce) => {
5461
- ce.categories.forEach((Ie) => {
5462
- Q.add(Ie);
5461
+ ce.categories.forEach((Me) => {
5462
+ Q.add(Me);
5463
5463
  });
5464
5464
  }), r(16, se = Array.from(Q)), se.unshift("all");
5465
5465
  }).catch((z) => {
@@ -5483,19 +5483,19 @@ function Bs(e, t, r) {
5483
5483
  $e.claimable.push(z.code);
5484
5484
  }), r(22, ue = !1);
5485
5485
  });
5486
- }, Bn = (f) => $e.claimable.indexOf(f.bonusCode) >= 0 || $e.applicable.indexOf(f.bonusCode) >= 0, Ft = (f) => (r(23, Ne = !1), r(25, je = !1), r(24, Mt = f.bonusCode), new Promise(($, z) => {
5486
+ }, Bn = (f) => $e.claimable.indexOf(f.bonusCode) >= 0 || $e.applicable.indexOf(f.bonusCode) >= 0, Ft = (f) => (r(23, Ne = !1), r(25, Ie = ""), r(24, Mt = f.bonusCode), new Promise(($, z) => {
5487
5487
  const Q = new URL(`${o}/v1/bonus/claim`), ce = new Headers();
5488
- let Ie = "";
5488
+ let Me = "";
5489
5489
  ce.append("X-SessionID", s), ce.append("Content-Type", "application/json");
5490
5490
  try {
5491
- Ie = JSON.stringify({ bonusCode: f.bonusCode, currency: a });
5491
+ Me = JSON.stringify({ bonusCode: f.bonusCode, currency: a });
5492
5492
  } catch (de) {
5493
5493
  console.error("There was an error while trying to create the claim bonus request", de);
5494
5494
  }
5495
- fetch(Q, { method: "PUT", headers: ce, body: Ie }).then((de) => de.json()).then((de) => {
5496
- de.success ? (Rt(), r(23, Ne = !1), r(25, je = !0), $(!0)) : (r(23, Ne = !0), r(25, je = !1), $(!1));
5495
+ fetch(Q, { method: "PUT", headers: ce, body: Me }).then((de) => de.json()).then((de) => {
5496
+ de.success ? (Rt(), r(23, Ne = !1), r(25, Ie = f.id.toString()), $(!0)) : (r(23, Ne = !0), r(25, Ie = ""), $(!1));
5497
5497
  }).catch((de) => {
5498
- console.error("Err", de), r(23, Ne = !0), z();
5498
+ console.error("Err", de), r(23, Ne = !0), r(25, Ie = ""), z();
5499
5499
  });
5500
5500
  })), Dt = (f) => {
5501
5501
  if (f.data)
@@ -5644,7 +5644,7 @@ function Bs(e, t, r) {
5644
5644
  ue,
5645
5645
  Ne,
5646
5646
  Mt,
5647
- je,
5647
+ Ie,
5648
5648
  n,
5649
5649
  Bn,
5650
5650
  Ft,