@everymatrix/casino-hamburger-menu-nd 1.83.4 → 1.83.6

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.
@@ -133,7 +133,7 @@ function C() {
133
133
  function kr() {
134
134
  return K("");
135
135
  }
136
- function se(e, t, r, n) {
136
+ function le(e, t, r, n) {
137
137
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
138
138
  }
139
139
  function p(e, t, r) {
@@ -142,7 +142,7 @@ function p(e, t, r) {
142
142
  function Wn(e) {
143
143
  return Array.from(e.childNodes);
144
144
  }
145
- function le(e, t) {
145
+ function ue(e, t) {
146
146
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
147
147
  t);
148
148
  }
@@ -4039,11 +4039,11 @@ function Lo(e, t) {
4039
4039
  n = void 0;
4040
4040
  return n;
4041
4041
  }
4042
- const ae = {}, Po = (e, t, r) => r && (t in ae || (ae[t] = {}), e in ae[t] || (ae[t][e] = r), r), fn = (e, t) => {
4042
+ const se = {}, Po = (e, t, r) => r && (t in se || (se[t] = {}), e in se[t] || (se[t][e] = r), r), fn = (e, t) => {
4043
4043
  if (t == null)
4044
4044
  return;
4045
- if (t in ae && e in ae[t])
4046
- return ae[t][e];
4045
+ if (t in se && e in se[t])
4046
+ return se[t][e];
4047
4047
  const r = rt(t);
4048
4048
  for (let n = 0; n < r.length; n++) {
4049
4049
  const i = r[n], o = Bo(i, e);
@@ -4076,7 +4076,7 @@ function Co(e) {
4076
4076
  }
4077
4077
  }
4078
4078
  function pn(e, ...t) {
4079
- delete ae[e], ke.update((r) => (r[e] = Ri.all([r[e] || {}, ...t]), r));
4079
+ delete se[e], ke.update((r) => (r[e] = Ri.all([r[e] || {}, ...t]), r));
4080
4080
  }
4081
4081
  Te(
4082
4082
  [ke],
@@ -4420,7 +4420,7 @@ function Er(e, t, r) {
4420
4420
  }
4421
4421
  const ba = (e) => ({}), wr = (e) => ({});
4422
4422
  function Hr(e) {
4423
- let t, r, n, i, o, a, s, u, l, c, f, g, d, m, _, x, E, A, N, F, G, Z, z, ie, Q, j, ue, Ae;
4423
+ let t, r, n, i, o, a, s, u, l, c, f, g, d, m, _, x, E, A, N, F, G, Z, z, ie, Q, j, oe, Ae;
4424
4424
  const pe = [_a, ya], V = [];
4425
4425
  function de(y, O) {
4426
4426
  return (
@@ -4429,13 +4429,13 @@ function Hr(e) {
4429
4429
  );
4430
4430
  }
4431
4431
  i = de(e), o = V[i] = pe[i](e);
4432
- function oe(y, O) {
4432
+ function ae(y, O) {
4433
4433
  return (
4434
4434
  /*HamburgerMenuItems*/
4435
- y[5].length > 0 ? Ea : xa
4435
+ y[6].length > 0 ? Ea : xa
4436
4436
  );
4437
4437
  }
4438
- let q = oe(e), U = q(e), X = ne(
4438
+ let q = ae(e), U = q(e), X = ne(
4439
4439
  /*activeMenuItemChildren*/
4440
4440
  e[7]
4441
4441
  ), I = [];
@@ -4467,12 +4467,12 @@ function Hr(e) {
4467
4467
  P(y, t, O), b(t, r), b(r, n), V[i].m(n, null), b(r, a), b(r, s), U.m(s, null), b(r, u), b(r, l), b(r, c), b(r, f);
4468
4468
  for (let $ = 0; $ < I.length; $ += 1)
4469
4469
  I[$] && I[$].m(f, null);
4470
- b(r, d), R && R.m(r, null), b(t, _), b(t, x), b(x, E), b(E, A), b(E, N), b(E, F), b(E, G), b(E, Z), e[50](t), j = !0, ue || (Ae = se(
4470
+ b(r, d), R && R.m(r, null), b(t, _), b(t, x), b(x, E), b(E, A), b(E, N), b(E, F), b(E, G), b(E, Z), e[50](t), j = !0, oe || (Ae = le(
4471
4471
  x,
4472
4472
  "click",
4473
4473
  /*close*/
4474
4474
  e[20]
4475
- ), ue = !0);
4475
+ ), oe = !0);
4476
4476
  },
4477
4477
  p(y, O) {
4478
4478
  let $ = i;
@@ -4484,7 +4484,7 @@ function Hr(e) {
4484
4484
  "LoggedIn",
4485
4485
  /*isLoggedIn*/
4486
4486
  y[15]
4487
- ), q === (q = oe(y)) && U ? U.p(y, O) : (U.d(1), U = q(y), U && (U.c(), U.m(s, null))), O[0] & /*handleClick, activeMenuItemChildren*/
4487
+ ), q === (q = ae(y)) && U ? U.p(y, O) : (U.d(1), U = q(y), U && (U.c(), U.m(s, null))), O[0] & /*handleClick, activeMenuItemChildren*/
4488
4488
  4194432) {
4489
4489
  X = ne(
4490
4490
  /*activeMenuItemChildren*/
@@ -4520,7 +4520,7 @@ function Hr(e) {
4520
4520
  Be(o), j = !1;
4521
4521
  },
4522
4522
  d(y) {
4523
- y && L(t), V[i].d(), U.d(), Re(I, y), R && R.d(), e[50](null), ue = !1, Ae();
4523
+ y && L(t), V[i].d(), U.d(), Re(I, y), R && R.d(), e[50](null), oe = !1, Ae();
4524
4524
  }
4525
4525
  };
4526
4526
  }
@@ -4599,7 +4599,7 @@ function _a(e) {
4599
4599
  ), p(t, "type", "button"), p(t, "class", "UserProfileWrapper");
4600
4600
  },
4601
4601
  m(c, f) {
4602
- P(c, t, f), b(t, r), b(t, n), b(t, i), b(i, a), u || (l = se(
4602
+ P(c, t, f), b(t, r), b(t, n), b(t, i), b(i, a), u || (l = le(
4603
4603
  t,
4604
4604
  "click",
4605
4605
  /*goToMyAccount*/
@@ -4610,7 +4610,7 @@ function _a(e) {
4610
4610
  f[0] & /*username, playerID*/
4611
4611
  196608 && o !== (o = /*username*/
4612
4612
  (c[17] || /*playerID*/
4613
- c[16]) + "") && le(a, o), f[0] & /*username, playerID*/
4613
+ c[16]) + "") && ue(a, o), f[0] & /*username, playerID*/
4614
4614
  196608 && s !== (s = `${/*username*/
4615
4615
  c[17] || /*playerID*/
4616
4616
  c[16]}`) && p(i, "title", s), f[0] & /*username*/
@@ -4681,7 +4681,7 @@ function xa(e) {
4681
4681
  function Ea(e) {
4682
4682
  let t, r = ne(
4683
4683
  /*HamburgerMenuItems*/
4684
- e[5]
4684
+ e[6]
4685
4685
  ), n = [];
4686
4686
  for (let i = 0; i < r.length; i += 1)
4687
4687
  n[i] = Or(Er(e, r, i));
@@ -4698,10 +4698,10 @@ function Ea(e) {
4698
4698
  },
4699
4699
  p(i, o) {
4700
4700
  if (o[0] & /*activeMenuItemId, HamburgerMenuItems, handlePrimaryMenuClick*/
4701
- 2097248) {
4701
+ 2097224) {
4702
4702
  r = ne(
4703
4703
  /*HamburgerMenuItems*/
4704
- i[5]
4704
+ i[6]
4705
4705
  );
4706
4706
  let a;
4707
4707
  for (a = 0; a < r.length; a += 1) {
@@ -4745,7 +4745,7 @@ function Sr(e) {
4745
4745
  },
4746
4746
  p(n, i) {
4747
4747
  i[0] & /*HamburgerMenuItems*/
4748
- 32 && !J(t.src, r = /*mainItem*/
4748
+ 64 && !J(t.src, r = /*mainItem*/
4749
4749
  n[79].img) && p(t, "src", r);
4750
4750
  },
4751
4751
  d(n) {
@@ -4768,9 +4768,9 @@ function Tr(e) {
4768
4768
  },
4769
4769
  p(o, a) {
4770
4770
  a[0] & /*HamburgerMenuItems*/
4771
- 32 && r !== (r = /*mainItem*/
4772
- o[79].tag + "") && le(n, r), a[0] & /*HamburgerMenuItems*/
4773
- 32 && i !== (i = /*mainItem*/
4771
+ 64 && r !== (r = /*mainItem*/
4772
+ o[79].tag + "") && ue(n, r), a[0] & /*HamburgerMenuItems*/
4773
+ 64 && i !== (i = /*mainItem*/
4774
4774
  o[79].tag) && p(t, "title", i);
4775
4775
  },
4776
4776
  d(o) {
@@ -4801,20 +4801,20 @@ function Or(e) {
4801
4801
  return {
4802
4802
  c() {
4803
4803
  t = v("li"), r = v("button"), n = v("div"), d && d.c(), i = C(), o = v("p"), s = K(a), u = C(), m && m.c(), l = C(), p(n, "class", "HamburgerItemContainer"), p(r, "type", "button"), p(r, "class", "ItemButton"), p(t, "class", c = /*activeMenuItemId*/
4804
- e[6] === /*mainItem*/
4804
+ e[3] === /*mainItem*/
4805
4805
  e[79].id ? "ActiveItem" : "");
4806
4806
  },
4807
4807
  m(x, E) {
4808
- P(x, t, E), b(t, r), b(r, n), d && d.m(n, null), b(n, i), b(n, o), b(o, s), b(n, u), m && m.m(n, null), b(t, l), f || (g = se(r, "click", _), f = !0);
4808
+ P(x, t, E), b(t, r), b(r, n), d && d.m(n, null), b(n, i), b(n, o), b(o, s), b(n, u), m && m.m(n, null), b(t, l), f || (g = le(r, "click", _), f = !0);
4809
4809
  },
4810
4810
  p(x, E) {
4811
4811
  e = x, /*mainItem*/
4812
4812
  e[79]?.img ? d ? d.p(e, E) : (d = Sr(e), d.c(), d.m(n, i)) : d && (d.d(1), d = null), E[0] & /*HamburgerMenuItems*/
4813
- 32 && a !== (a = /*mainItem*/
4814
- e[79].label + "") && le(s, a), /*mainItem*/
4813
+ 64 && a !== (a = /*mainItem*/
4814
+ e[79].label + "") && ue(s, a), /*mainItem*/
4815
4815
  e[79]?.tag ? m ? m.p(e, E) : (m = Tr(e), m.c(), m.m(n, null)) : m && (m.d(1), m = null), E[0] & /*activeMenuItemId, HamburgerMenuItems*/
4816
- 96 && c !== (c = /*activeMenuItemId*/
4817
- e[6] === /*mainItem*/
4816
+ 72 && c !== (c = /*activeMenuItemId*/
4817
+ e[3] === /*mainItem*/
4818
4818
  e[79].id ? "ActiveItem" : "") && p(t, "class", c);
4819
4819
  },
4820
4820
  d(x) {
@@ -4865,13 +4865,13 @@ function Ar(e) {
4865
4865
  t = v("li"), l && l.c(), r = C(), n = v("p"), o = K(i), a = C();
4866
4866
  },
4867
4867
  m(f, g) {
4868
- P(f, t, g), l && l.m(t, null), b(t, r), b(t, n), b(n, o), b(t, a), s || (u = se(t, "click", c), s = !0);
4868
+ P(f, t, g), l && l.m(t, null), b(t, r), b(t, n), b(n, o), b(t, a), s || (u = le(t, "click", c), s = !0);
4869
4869
  },
4870
4870
  p(f, g) {
4871
4871
  e = f, /*secondaryItem*/
4872
4872
  e[76]?.img ? l ? l.p(e, g) : (l = Mr(e), l.c(), l.m(t, r)) : l && (l.d(1), l = null), g[0] & /*activeMenuItemChildren*/
4873
4873
  128 && i !== (i = /*secondaryItem*/
4874
- e[76].label + "") && le(o, i);
4874
+ e[76].label + "") && ue(o, i);
4875
4875
  },
4876
4876
  d(f) {
4877
4877
  f && L(t), l && l.d(), s = !1, u();
@@ -4896,7 +4896,7 @@ function Lr(e) {
4896
4896
  (e[11] ? "Open" : ""));
4897
4897
  },
4898
4898
  m(g, d) {
4899
- P(g, t, d), b(t, r), b(r, i), b(t, o), f.m(t, null), s || (u = se(
4899
+ P(g, t, d), b(t, r), b(r, i), b(t, o), f.m(t, null), s || (u = le(
4900
4900
  t,
4901
4901
  "click",
4902
4902
  /*toggleLanguageDropdown*/
@@ -4906,7 +4906,7 @@ function Lr(e) {
4906
4906
  p(g, d) {
4907
4907
  d[0] & /*$_*/
4908
4908
  524288 && n !== (n = /*$_*/
4909
- g[19]("language") + "") && le(i, n), c === (c = l(g)) && f ? f.p(g, d) : (f.d(1), f = c(g), f && (f.c(), f.m(t, null))), d[0] & /*isOptionsListVisible*/
4909
+ g[19]("language") + "") && ue(i, n), c === (c = l(g)) && f ? f.p(g, d) : (f.d(1), f = c(g), f && (f.c(), f.m(t, null))), d[0] & /*isOptionsListVisible*/
4910
4910
  2048 && a !== (a = "LanguageSelector " + /*isOptionsListVisible*/
4911
4911
  (g[11] ? "Open" : "")) && p(t, "class", a);
4912
4912
  },
@@ -4943,7 +4943,7 @@ function Ha(e) {
4943
4943
  E[18]
4944
4944
  )}.svg`) && p(i, "src", o), A[0] & /*selectedLanguage*/
4945
4945
  262144 && u !== (u = /*selectedLanguage*/
4946
- E[18].slice(-2) + "") && le(l, u), A[0] & /*isOptionsListVisible*/
4946
+ E[18].slice(-2) + "") && ue(l, u), A[0] & /*isOptionsListVisible*/
4947
4947
  2048 && m !== (m = "TriangleInactive " + /*isOptionsListVisible*/
4948
4948
  (E[11] ? "TriangleActive" : "")) && p(f, "class", m), /*isOptionsListVisible*/
4949
4949
  E[11] ? x ? x.p(E, A) : (x = Pr(E), x.c(), x.m(t, null)) : x && (x.d(1), x = null);
@@ -4981,13 +4981,13 @@ function Sa(e) {
4981
4981
  e[18],
4982
4982
  !0
4983
4983
  ), r || (n = [
4984
- se(
4984
+ le(
4985
4985
  t,
4986
4986
  "change",
4987
4987
  /*select_change_handler*/
4988
4988
  e[47]
4989
4989
  ),
4990
- se(
4990
+ le(
4991
4991
  t,
4992
4992
  "change",
4993
4993
  /*change_handler*/
@@ -5092,7 +5092,7 @@ function Ir(e) {
5092
5092
  (e[12] ? "Open" : ""));
5093
5093
  },
5094
5094
  m(m, _) {
5095
- P(m, t, _), b(t, r), b(r, n), b(t, o), b(t, a), b(a, u), b(t, l), f || (g = se(t, "click", d), f = !0);
5095
+ P(m, t, _), b(t, r), b(r, n), b(t, o), b(t, a), b(a, u), b(t, l), f || (g = le(t, "click", d), f = !0);
5096
5096
  },
5097
5097
  p(m, _) {
5098
5098
  e = m, _[0] & /*languagesArray*/
@@ -5102,7 +5102,7 @@ function Ir(e) {
5102
5102
  e[73]
5103
5103
  )}.svg`) && p(n, "src", i), _[0] & /*languagesArray*/
5104
5104
  1024 && s !== (s = /*operatorLanguage*/
5105
- e[73] + "") && le(u, s), _[0] & /*languageListOpen*/
5105
+ e[73] + "") && ue(u, s), _[0] & /*languageListOpen*/
5106
5106
  4096 && c !== (c = "LanguageOption " + /*languageListOpen*/
5107
5107
  (e[12] ? "Open" : "")) && p(t, "class", c);
5108
5108
  },
@@ -5127,7 +5127,7 @@ function Br(e) {
5127
5127
  p(o, a) {
5128
5128
  a[0] & /*languagesArray*/
5129
5129
  1024 && r !== (r = /*lang*/
5130
- o[2].slice(-2) + "") && le(n, r), a[0] & /*languagesArray*/
5130
+ o[2].slice(-2) + "") && ue(n, r), a[0] & /*languagesArray*/
5131
5131
  1024 && i !== (i = /*lang*/
5132
5132
  o[2]) && (t.__value = i, Xt(t, t.__value));
5133
5133
  },
@@ -5169,7 +5169,7 @@ function Ta(e) {
5169
5169
  function Oa(e, t, r) {
5170
5170
  let n;
5171
5171
  Rn(e, la, (h) => r(19, n = h));
5172
- let { $$slots: i = {}, $$scope: o } = t, { menuitemsurl: a = "" } = t, { session: s = "" } = t, { userid: u = "" } = t, { cmsendpoint: l } = t, { endpoint: c } = t, { cmsenv: f = "stage" } = t, { userroles: g } = t, { lang: d = "en" } = t, { activecategory: m = "" } = t, { languageslist: _ = "" } = t, { translationurl: x = "" } = t, { mbsource: E } = t, { clientstyling: A = "" } = t, { clientstylingurl: N = "" } = t, { customlocaleidentifier: F = "" } = t, { countryflaghamburger: G = "" } = t, { customlogourl: Z } = t, z, ie = window.navigator.userAgent, Q = [], j, ue = "", Ae = [], pe = !1, V = !1, de = !0, oe = [], q = !1, U = !1, X = !1, I = !1, R = !0, y, O = !1, $ = null, k = null, me = "", ee = "", te;
5172
+ let { $$slots: i = {}, $$scope: o } = t, { menuitemsurl: a = "" } = t, { session: s = "" } = t, { userid: u = "" } = t, { cmsendpoint: l } = t, { endpoint: c } = t, { cmsenv: f = "stage" } = t, { userroles: g } = t, { lang: d = "en" } = t, { activecategory: m = "" } = t, { languageslist: _ = "" } = t, { translationurl: x = "" } = t, { mbsource: E } = t, { clientstyling: A = "" } = t, { clientstylingurl: N = "" } = t, { customlocaleidentifier: F = "" } = t, { countryflaghamburger: G = "" } = t, { customlogourl: Z } = t, z, ie = window.navigator.userAgent, Q = [], j, oe = "", Ae = [], pe = !1, V = !1, de = !0, ae = [], q = !1, U = !1, X = !1, I = !1, R = !0, y, O = !1, $ = null, k = null, me = "", ee = "", te;
5173
5173
  const _n = () => {
5174
5174
  fetch(x).then((h) => h.json()).then((h) => {
5175
5175
  Object.keys(h).forEach((S) => {
@@ -5241,9 +5241,9 @@ function Oa(e, t, r) {
5241
5241
  break;
5242
5242
  }
5243
5243
  }, at = (h, S) => {
5244
- r(6, ue = h), r(7, Ae = S || []), typeof gtag == "function" && gtag("event", "ChangeMenu", {
5244
+ r(3, oe = h), r(7, Ae = S || []), typeof gtag == "function" && gtag("event", "ChangeMenu", {
5245
5245
  context: "HamburgerMenu",
5246
- menuItem: `${ue}`
5246
+ menuItem: `${oe}`
5247
5247
  });
5248
5248
  }, Dt = (h) => {
5249
5249
  const S = h?.children?.length > 0, be = h?.path && h?.keyword?.includes("InternalLink");
@@ -5261,7 +5261,7 @@ function Oa(e, t, r) {
5261
5261
  }, jt = (h) => {
5262
5262
  fetch(h).then((S) => S.json()).then(
5263
5263
  (S) => {
5264
- r(5, Q = S.filter((be) => be?.type !== "banner")), Ft(), r(42, de = !1), j = S, q = !1;
5264
+ r(6, Q = S.filter((be) => be?.type !== "banner")), Ft(), r(42, de = !1), j = S, q = !1;
5265
5265
  },
5266
5266
  (S) => {
5267
5267
  console.error(S);
@@ -5288,7 +5288,7 @@ function Oa(e, t, r) {
5288
5288
  window.location.href
5289
5289
  );
5290
5290
  }, xn = () => {
5291
- pa(d), it(), q && jt(y), r(10, oe = _.replace(/ /g, "").split(",")), r(10, oe = oe.map((h) => h.toUpperCase())), r(18, ee = d.toUpperCase());
5291
+ pa(d), it(), q && jt(y), r(10, ae = _.replace(/ /g, "").split(",")), r(10, ae = ae.map((h) => h.toUpperCase())), r(18, ee = d.toUpperCase());
5292
5292
  }, $t = (h) => {
5293
5293
  r(18, ee = h), setTimeout(
5294
5294
  () => {
@@ -5334,17 +5334,17 @@ function Oa(e, t, r) {
5334
5334
  st(h), S.preventDefault();
5335
5335
  };
5336
5336
  function Mn() {
5337
- ee = Vn(this), r(18, ee), r(10, oe);
5337
+ ee = Vn(this), r(18, ee), r(10, ae);
5338
5338
  }
5339
5339
  const An = () => lt(), Ln = (h) => $t(h);
5340
5340
  function Pn(h) {
5341
5341
  ze[h ? "unshift" : "push"](() => {
5342
- z = h, r(4, z);
5342
+ z = h, r(5, z);
5343
5343
  });
5344
5344
  }
5345
5345
  function In(h) {
5346
5346
  ze[h ? "unshift" : "push"](() => {
5347
- te = h, r(3, te);
5347
+ te = h, r(4, te);
5348
5348
  });
5349
5349
  }
5350
5350
  return e.$$set = (h) => {
@@ -5352,28 +5352,29 @@ function Oa(e, t, r) {
5352
5352
  }, e.$$.update = () => {
5353
5353
  e.$$.dirty[0] & /*lang*/
5354
5354
  4 | e.$$.dirty[1] & /*cmsendpoint, cmsenv, languageslist*/
5355
- 37 && l && f && d && _ && xn(), e.$$.dirty[1] & /*activecategory, isLoading*/
5356
- 2064 && m && !de && Ft(), e.$$.dirty[1] & /*translationurl*/
5355
+ 37 && l && f && d && _ && xn(), e.$$.dirty[0] & /*activeMenuItemId*/
5356
+ 8 | e.$$.dirty[1] & /*activecategory, isLoading*/
5357
+ 2064 && m && !de && !oe && Ft(), e.$$.dirty[1] & /*translationurl*/
5357
5358
  64 && x && _n(), e.$$.dirty[0] & /*session*/
5358
5359
  536870912 && s && (Hn(), Ut(s)), e.$$.dirty[0] & /*customStylingContainer*/
5359
- 8 | e.$$.dirty[1] & /*clientstyling*/
5360
+ 16 | e.$$.dirty[1] & /*clientstyling*/
5360
5361
  256 && A && te && ha(te, A), e.$$.dirty[0] & /*customStylingContainer*/
5361
- 8 | e.$$.dirty[1] & /*clientstylingurl*/
5362
+ 16 | e.$$.dirty[1] & /*clientstylingurl*/
5362
5363
  512 && N && te && fa(te, N), e.$$.dirty[0] & /*customStylingContainer*/
5363
- 8 | e.$$.dirty[1] & /*mbsource*/
5364
+ 16 | e.$$.dirty[1] & /*mbsource*/
5364
5365
  128 && E && te && ga(te, `${E}.Style`);
5365
5366
  }, [
5366
5367
  G,
5367
5368
  Z,
5368
5369
  d,
5370
+ oe,
5369
5371
  te,
5370
5372
  z,
5371
5373
  Q,
5372
- ue,
5373
5374
  Ae,
5374
5375
  pe,
5375
5376
  V,
5376
- oe,
5377
+ ae,
5377
5378
  U,
5378
5379
  X,
5379
5380
  I,