@everymatrix/casino-header-controller 1.47.1 → 1.47.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,13 +1,13 @@
1
- import { $ as Q, a as Te, b as je, S as ze, i as We, f as y, c as Be, s as Oe, d as Ge, g as k, e as R, u as f, j as D, v as p, w as P, n as oe, k as S, z as xe, E as Ue, o as Ye, r as z, B as G, J as pe, F as ne, p as X, K as we, y as qe, t as V, x as Z } from "./CasinoHamburgerMenu-CmCkLB4F.js";
2
- function Pe({ withLocale: a, translations: e }) {
1
+ import { $ as Q, a as Re, b as Te, S as je, i as ze, f as y, c as We, s as Be, d as Oe, g as k, e as R, u as f, j as D, v as p, w as P, n as oe, k as S, z as Ge, o as xe, r as z, B as G, J as pe, F as ne, p as X, K as we, y as Ue, t as V, x as Z } from "./CasinoHamburgerMenu-CmCkLB4F.js";
2
+ function Ye({ withLocale: a, translations: e }) {
3
3
  Q.subscribe((t) => {
4
- t == null && (Te.set(e), Q.set(a));
4
+ t == null && (Re.set(e), Q.set(a));
5
5
  });
6
6
  }
7
7
  function ae(a, e) {
8
- je(a, e);
8
+ Te(a, e);
9
9
  }
10
- function Ke(a) {
10
+ function qe(a) {
11
11
  Q.set(a);
12
12
  }
13
13
  const ie = {
@@ -62,20 +62,20 @@ const ie = {
62
62
  deposit: "Depósito"
63
63
  }
64
64
  };
65
- function Je(a) {
66
- Ge(a, "svelte-h8mrzf", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CarouselWrapper{background:-webkit-linear-gradient(to left, var(--emfe-w-categories-color-secondary, var(--emfe-w-color-secondary, #FD2839)), var(--emfe-w-categories-color-primary, var(--emfe-w-color-primary, #D0046C)));background:linear-gradient(to left, var(--emfe-w-categories-color-secondary, var(--emfe-w-color-secondary, #FD2839)), var(--emfe-w-categories-color-primary, var(--emfe-w-color-primary, #D0046C)))}.CarouselWrapper.CarouselWrapperHeaderMain{background:transparent}.CarouselContainer{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;width:100%;color:var(--emfe-w-categories-typography, var(--emfe-w-color-white, #FFFFFF));margin:0 auto;max-width:1300px}.CarouselContainer.CarouselContainerMobile{padding:0}.CarouselContainer ul{align-items:center}.CarouselContainer ul::-webkit-scrollbar{display:none}.CarouselContainer ul li{height:100%;align-items:center;font-size:15px;font-weight:500;line-height:26px;white-space:nowrap;display:inline-block;text-align:left;word-spacing:normal}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li.SecondaryMenu:hover,.CarouselContainer ul li.SecondaryMenu.active,.CarouselContainer ul li.SecondaryMenu:focus,.CarouselContainer ul li.SecondaryMenu:focus-within{background:var(--emfe-w-categories-contrast, var(--emfe-w-color-background, #07072A));cursor:pointer}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li:hover,.CarouselContainer ul>li>a:hover,.CarouselContainer ul li:focus,.CarouselContainer ul>li>a:focus{z-index:105}.CarouselContainer .CarouselItems li:hover>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear}.CarouselContainer .CarouselItems li:focus-within>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear, top 0.5s}.CarouselContainer .CarouselItems ul ul{transition:opacity 0.4s, left 0s 0.4s, margin 0s 0.4s;z-index:103}.CarouselContainer .CarouselItems li li:hover ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselItems li li:focus-within ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselLeftArrow,.CarouselContainer .CarouselRightArrow{display:flex;align-items:center;justify-content:center;width:50%;max-width:64px;background:var(--emfe-w-categories-arrows-bg, var(--emfe-w-color-gray-transparency-30, rgba(255, 255, 255, 0.3)))}.CarouselContainer .CarouselLeftArrow svg,.CarouselContainer .CarouselRightArrow svg{width:100%;max-width:39px;stroke:var(--emfe-w-categories-arrows, var(--emfe-w-color-white, #FFFFFF))}.CarouselContainer h1{text-align:center}.CarouselContainer ul{margin:0;padding:0;list-style:none}.CarouselContainer .CarouselNavWrap{overflow-y:scroll;white-space:nowrap;list-style-type:none;-ms-overflow-style:none;scrollbar-width:none}.CarouselContainer .CarouselNavWrap::-webkit-scrollbar{display:none}.CarouselContainer .CarouselItems{display:table;width:100%;text-align:center}.CarouselContainer .CarouselItems li{display:inline-block;text-align:left;padding:7px 10px}.CarouselContainer .CarouselItems li>a{position:relative}.CarouselContainer .CarouselItems li li{display:block}.CarouselContainer .CarouselItems button{background:none;border:none;color:var(--emfe-w-categories-typography, var(--emfe-w-color-white, #FFFFFF));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems a{display:block;color:var(--emfe-w-categories-typography, var(--emfe-w-color-white, #FFFFFF));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems.SecondaryMenu li:hover>a,.CarouselContainer .CarouselItems.SecondaryMenu a:hover,.CarouselContainer .CarouselItems.SecondaryMenu li:focus>a,.CarouselContainer .CarouselItems.SecondaryMenu a:focus{background:var(--emfe-w-categories-contrast, var(--emfe-w-color-background, #07072A))}.CarouselContainer .CarouselItems ul{position:absolute;z-index:104;left:-999em;top:0;opacity:0;transition:opacity 0.1s, left 0s 0.1s, top 0.1s;background:var(--emfe-w-categories-color-secondary, var(--emfe-w-color-secondary, #FD2839));background:-webkit-linear-gradient(var(--emfe-w-categories-color-secondary, var(--emfe-w-color-secondary, #FD2839)), var(--emfe-w-categories-color-primary, var(--emfe-w-color-primary, #D0046C)));background:linear-gradient(var(--emfe-w-categories-color-secondary, var(--emfe-w-color-secondary, #FD2839)), var(--emfe-w-categories-color-primary, var(--emfe-w-color-primary, #D0046C)))}.CarouselContainer .CarouselItems .TouchOnly{display:none;left:-10px}.CarouselContainer .touch-device .CarouselItems .TouchOnly{display:inline-block}.CarouselContainer .touch-device .CarouselItems .TouchOnly a{background:var(--emfe-w-categories-contrast, var(--emfe-w-color-background, #07072A));color:var(--emfe-w-categories-typography, var(--emfe-w-color-white, #FFFFFF))}.CarouselContainer .isScrolling .CarouselItems ul.DropDown{left:-999em;opacity:0}.CarouselContainer .SubDropDown:hover,.CarouselContainer .SubDropDown.active{color:var(--emfe-w-categories-contrast, var(--emfe-w-color-contrast, #07072A));background:var(--emfe-w-categories-typography, var(--emfe-w-color-white, #FFFFFF))}.CarouselContainerHeaderMain .CarouselItems .CarouselItem:hover a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem.active a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus-within a{border-bottom:1px solid var(--emfe-w-header-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-header-color-primary, var(--emfe-w-color-primary, #D0046C))}.CarouselContainerHeaderMain .CarouselItems .CarouselItem span{border-top:1px solid transparent;padding-top:5px;transition-duration:0.3s}.CarouselContainerHeaderMain{background:transparent;margin:0;padding:0}.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{background:transparent;width:unset;display:none}.CarouselContainerHeaderMain .CarouselItem a{color:var(--emfe-w-header-typography, var(--emfe-w-color-white, #FFFFFF));text-decoration:none}.CarouselItems li a:first-child:not(:last-child){padding-right:20px}.CarouselItems li a:first-child:not(:last-child):after{content:"";position:absolute;right:3px;top:50%;margin-top:-6px;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid var(--emfe-w-color-white, #FFFFFF)}.CarouselItems>li>a:first-child:not(:last-child):after{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid var(--emfe-w-color-white, #FFFFFF);border-bottom:none;margin-top:-3px}.CarouselItems li:hover a:first-child:not(:last-child):after{border-left-color:var(--emfe-w-color-white, #FFFFFF)}.CarouselItems li:focus-within a:first-child:not(:last-child):after{border-left-color:var(--emfe-w-color-white, #FFFFFF)}.CarouselItems>li:hover>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emfe-w-color-white, #FFFFFF)}.CarouselItems>li:focus-within>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emfe-w-color-white, #FFFFFF)}@media only screen and (max-width: 1024px){.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{display:flex}}.CategoryIconImg{height:20px;margin:0 auto;display:block}.DisplayNone{display:none}');
65
+ function Pe(a) {
66
+ Oe(a, "svelte-h8mrzf", '*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CarouselWrapper{background:-webkit-linear-gradient(to left, var(--emfe-w-categories-color-secondary, var(--emfe-w-color-secondary, #FD2839)), var(--emfe-w-categories-color-primary, var(--emfe-w-color-primary, #D0046C)));background:linear-gradient(to left, var(--emfe-w-categories-color-secondary, var(--emfe-w-color-secondary, #FD2839)), var(--emfe-w-categories-color-primary, var(--emfe-w-color-primary, #D0046C)))}.CarouselWrapper.CarouselWrapperHeaderMain{background:transparent}.CarouselContainer{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;width:100%;color:var(--emfe-w-categories-typography, var(--emfe-w-color-white, #FFFFFF));margin:0 auto;max-width:1300px}.CarouselContainer.CarouselContainerMobile{padding:0}.CarouselContainer ul{align-items:center}.CarouselContainer ul::-webkit-scrollbar{display:none}.CarouselContainer ul li{height:100%;align-items:center;font-size:15px;font-weight:500;line-height:26px;white-space:nowrap;display:inline-block;text-align:left;word-spacing:normal}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li.SecondaryMenu:hover,.CarouselContainer ul li.SecondaryMenu.active,.CarouselContainer ul li.SecondaryMenu:focus,.CarouselContainer ul li.SecondaryMenu:focus-within{background:var(--emfe-w-categories-contrast, var(--emfe-w-color-background, #07072A));cursor:pointer}.CarouselContainer ul li>a{position:relative}.CarouselContainer ul li:hover,.CarouselContainer ul>li>a:hover,.CarouselContainer ul li:focus,.CarouselContainer ul>li>a:focus{z-index:105}.CarouselContainer .CarouselItems li:hover>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear}.CarouselContainer .CarouselItems li:focus-within>ul{left:auto;top:auto;opacity:1;transition:opacity 0.5s linear, top 0.5s}.CarouselContainer .CarouselItems ul ul{transition:opacity 0.4s, left 0s 0.4s, margin 0s 0.4s;z-index:103}.CarouselContainer .CarouselItems li li:hover ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselItems li li:focus-within ul{top:auto;margin-left:100%;transform:translateY(-2.2rem);opacity:1;transition:opacity 0.5s linear, margin 0.5s}.CarouselContainer .CarouselLeftArrow,.CarouselContainer .CarouselRightArrow{display:flex;align-items:center;justify-content:center;width:50%;max-width:64px;background:var(--emfe-w-categories-arrows-bg, var(--emfe-w-color-gray-transparency-30, rgba(255, 255, 255, 0.3)))}.CarouselContainer .CarouselLeftArrow svg,.CarouselContainer .CarouselRightArrow svg{width:100%;max-width:39px;stroke:var(--emfe-w-categories-arrows, var(--emfe-w-color-white, #FFFFFF))}.CarouselContainer h1{text-align:center}.CarouselContainer ul{margin:0;padding:0;list-style:none}.CarouselContainer .CarouselNavWrap{overflow-y:scroll;white-space:nowrap;list-style-type:none;-ms-overflow-style:none;scrollbar-width:none}.CarouselContainer .CarouselNavWrap::-webkit-scrollbar{display:none}.CarouselContainer .CarouselItems{display:table;width:100%;text-align:center}.CarouselContainer .CarouselItems li{display:inline-block;text-align:left;padding:7px 10px}.CarouselContainer .CarouselItems li>a{position:relative}.CarouselContainer .CarouselItems li li{display:block}.CarouselContainer .CarouselItems button{background:none;border:none;color:var(--emfe-w-categories-typography, var(--emfe-w-color-white, #FFFFFF));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems a{display:block;color:var(--emfe-w-categories-typography, var(--emfe-w-color-white, #FFFFFF));text-decoration:none;white-space:nowrap;position:relative}.CarouselContainer .CarouselItems.SecondaryMenu li:hover>a,.CarouselContainer .CarouselItems.SecondaryMenu a:hover,.CarouselContainer .CarouselItems.SecondaryMenu li:focus>a,.CarouselContainer .CarouselItems.SecondaryMenu a:focus{background:var(--emfe-w-categories-contrast, var(--emfe-w-color-background, #07072A))}.CarouselContainer .CarouselItems ul{position:absolute;z-index:104;left:-999em;top:0;opacity:0;transition:opacity 0.1s, left 0s 0.1s, top 0.1s;background:var(--emfe-w-categories-color-secondary, var(--emfe-w-color-secondary, #FD2839));background:-webkit-linear-gradient(var(--emfe-w-categories-color-secondary, var(--emfe-w-color-secondary, #FD2839)), var(--emfe-w-categories-color-primary, var(--emfe-w-color-primary, #D0046C)));background:linear-gradient(var(--emfe-w-categories-color-secondary, var(--emfe-w-color-secondary, #FD2839)), var(--emfe-w-categories-color-primary, var(--emfe-w-color-primary, #D0046C)))}.CarouselContainer .CarouselItems .TouchOnly{display:none;left:-10px}.CarouselContainer .touch-device .CarouselItems .TouchOnly{display:inline-block}.CarouselContainer .touch-device .CarouselItems .TouchOnly a{background:var(--emfe-w-categories-contrast, var(--emfe-w-color-background, #07072A));color:var(--emfe-w-categories-typography, var(--emfe-w-color-white, #FFFFFF))}.CarouselContainer .isScrolling .CarouselItems ul.DropDown{left:-999em;opacity:0}.CarouselContainer .SubDropDown:hover,.CarouselContainer .SubDropDown.active{color:var(--emfe-w-categories-contrast, var(--emfe-w-color-contrast, #07072A));background:var(--emfe-w-categories-typography, var(--emfe-w-color-white, #FFFFFF))}.CarouselContainerHeaderMain .CarouselItems .CarouselItem:hover a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem.active a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus a,.CarouselContainerHeaderMain .CarouselItems .CarouselItem:focus-within a{border-bottom:1px solid var(--emfe-w-header-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-header-color-primary, var(--emfe-w-color-primary, #D0046C))}.CarouselContainerHeaderMain .CarouselItems .CarouselItem span{border-top:1px solid transparent;padding-top:5px;transition-duration:0.3s}.CarouselContainerHeaderMain{background:transparent;margin:0;padding:0}.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{background:transparent;width:unset;display:none}.CarouselContainerHeaderMain .CarouselItem a{color:var(--emfe-w-header-typography, var(--emfe-w-color-white, #FFFFFF));text-decoration:none}.CarouselItems li a:first-child:not(:last-child){padding-right:20px}.CarouselItems li a:first-child:not(:last-child):after{content:"";position:absolute;right:3px;top:50%;margin-top:-6px;width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:6px solid var(--emfe-w-color-white, #FFFFFF)}.CarouselItems>li>a:first-child:not(:last-child):after{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid var(--emfe-w-color-white, #FFFFFF);border-bottom:none;margin-top:-3px}.CarouselItems li:hover a:first-child:not(:last-child):after{border-left-color:var(--emfe-w-color-white, #FFFFFF)}.CarouselItems li:focus-within a:first-child:not(:last-child):after{border-left-color:var(--emfe-w-color-white, #FFFFFF)}.CarouselItems>li:hover>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emfe-w-color-white, #FFFFFF)}.CarouselItems>li:focus-within>a:first-child:not(:last-child):after{border-left-color:transparent;border-top-color:var(--emfe-w-color-white, #FFFFFF)}@media only screen and (max-width: 1024px){.CarouselContainerHeaderMain .CarouselLeftArrow,.CarouselContainerHeaderMain .CarouselRightArrow{display:flex}}.CategoryIconImg{height:20px;margin:0 auto;display:block}.DisplayNone{display:none}');
67
67
  }
68
68
  function le(a, e, t) {
69
69
  const n = a.slice();
70
- return n[50] = e[t], n[52] = t, n;
70
+ return n[49] = e[t], n[51] = t, n;
71
71
  }
72
72
  function se(a, e, t) {
73
73
  const n = a.slice();
74
- return n[53] = e[t], n;
74
+ return n[52] = e[t], n;
75
75
  }
76
76
  function ce(a, e, t) {
77
77
  const n = a.slice();
78
- return n[56] = e[t], n[58] = t, n;
78
+ return n[55] = e[t], n[57] = t, n;
79
79
  }
80
80
  function ue(a) {
81
81
  let e = [], t = /* @__PURE__ */ new Map(), n, i = z(
@@ -84,7 +84,7 @@ function ue(a) {
84
84
  );
85
85
  const l = (r) => (
86
86
  /*category*/
87
- r[50].id
87
+ r[49].id
88
88
  );
89
89
  for (let r = 0; r < i.length; r += 1) {
90
90
  let s = le(a, i, r), d = l(s);
@@ -115,10 +115,10 @@ function ue(a) {
115
115
  }
116
116
  };
117
117
  }
118
- function Xe(a) {
118
+ function Ke(a) {
119
119
  let e, t = (
120
120
  /*category*/
121
- a[50].name + ""
121
+ a[49].name + ""
122
122
  ), n;
123
123
  return {
124
124
  c() {
@@ -130,22 +130,22 @@ function Xe(a) {
130
130
  p(i, l) {
131
131
  l[0] & /*sliderdata*/
132
132
  512 && t !== (t = /*category*/
133
- i[50].name + "") && Z(n, t);
133
+ i[49].name + "") && Z(n, t);
134
134
  },
135
135
  d(i) {
136
136
  i && S(e);
137
137
  }
138
138
  };
139
139
  }
140
- function Qe(a) {
140
+ function Je(a) {
141
141
  let e, t = (
142
142
  /*category*/
143
- a[50].label + ""
143
+ a[49].label + ""
144
144
  ), n, i;
145
145
  return {
146
146
  c() {
147
147
  e = k("a"), n = V(t), f(e, "href", i = /*category*/
148
- a[50].path);
148
+ a[49].path);
149
149
  },
150
150
  m(l, r) {
151
151
  D(l, e, r), p(e, n);
@@ -153,9 +153,9 @@ function Qe(a) {
153
153
  p(l, r) {
154
154
  r[0] & /*sliderdata*/
155
155
  512 && t !== (t = /*category*/
156
- l[50].label + "") && Z(n, t), r[0] & /*sliderdata*/
156
+ l[49].label + "") && Z(n, t), r[0] & /*sliderdata*/
157
157
  512 && i !== (i = /*category*/
158
- l[50].path) && f(e, "href", i);
158
+ l[49].path) && f(e, "href", i);
159
159
  },
160
160
  d(l) {
161
161
  l && S(e);
@@ -222,7 +222,7 @@ function fe(a) {
222
222
  }
223
223
  },
224
224
  d(i) {
225
- i && S(e), qe(n, i);
225
+ i && S(e), Ue(n, i);
226
226
  }
227
227
  };
228
228
  }
@@ -230,20 +230,20 @@ function me(a) {
230
230
  var w;
231
231
  let e, t, n = (
232
232
  /*subGroupItem*/
233
- ((w = a[56]) == null ? void 0 : w.name) + ""
233
+ ((w = a[55]) == null ? void 0 : w.name) + ""
234
234
  ), i, l, r, s, d;
235
235
  function F(...g) {
236
236
  return (
237
237
  /*click_handler_1*/
238
238
  a[32](
239
239
  /*category*/
240
- a[50],
240
+ a[49],
241
241
  /*index*/
242
- a[52],
242
+ a[51],
243
243
  /*subGroupItem*/
244
- a[56],
244
+ a[55],
245
245
  /*subindex*/
246
- a[58],
246
+ a[57],
247
247
  ...g
248
248
  )
249
249
  );
@@ -251,12 +251,12 @@ function me(a) {
251
251
  return {
252
252
  c() {
253
253
  e = k("li"), t = k("a"), i = V(n), r = R(), f(t, "class", l = "SubDropDown " + /*index*/
254
- (a[52] == /*activeIndex*/
254
+ (a[51] == /*activeIndex*/
255
255
  a[6] && /*activeSubIndex*/
256
256
  (a[7] == /*subindex*/
257
- a[58] || /*prevSubIndex*/
257
+ a[57] || /*prevSubIndex*/
258
258
  a[8] == /*subindex*/
259
- a[58]) ? "active" : ""));
259
+ a[57]) ? "active" : ""));
260
260
  },
261
261
  m(g, v) {
262
262
  D(g, e, v), p(e, t), p(t, i), p(e, r), s || (d = P(e, "click", F), s = !0);
@@ -265,14 +265,14 @@ function me(a) {
265
265
  var M;
266
266
  a = g, v[0] & /*subGroupsData*/
267
267
  1024 && n !== (n = /*subGroupItem*/
268
- ((M = a[56]) == null ? void 0 : M.name) + "") && Z(i, n), v[0] & /*sliderdata, activeIndex, activeSubIndex, subGroupsData, prevSubIndex*/
268
+ ((M = a[55]) == null ? void 0 : M.name) + "") && Z(i, n), v[0] & /*sliderdata, activeIndex, activeSubIndex, subGroupsData, prevSubIndex*/
269
269
  1984 && l !== (l = "SubDropDown " + /*index*/
270
- (a[52] == /*activeIndex*/
270
+ (a[51] == /*activeIndex*/
271
271
  a[6] && /*activeSubIndex*/
272
272
  (a[7] == /*subindex*/
273
- a[58] || /*prevSubIndex*/
273
+ a[57] || /*prevSubIndex*/
274
274
  a[8] == /*subindex*/
275
- a[58]) ? "active" : "")) && f(t, "class", l);
275
+ a[57]) ? "active" : "")) && f(t, "class", l);
276
276
  },
277
277
  d(g) {
278
278
  g && S(e), s = !1, d();
@@ -282,8 +282,8 @@ function me(a) {
282
282
  function ge(a, e) {
283
283
  let t, n, i = (
284
284
  /*index*/
285
- e[52] == /*subGroup*/
286
- e[53].index && me(e)
285
+ e[51] == /*subGroup*/
286
+ e[52].index && me(e)
287
287
  );
288
288
  return {
289
289
  key: a,
@@ -296,8 +296,8 @@ function ge(a, e) {
296
296
  },
297
297
  p(l, r) {
298
298
  e = l, /*index*/
299
- e[52] == /*subGroup*/
300
- e[53].index ? i ? i.p(e, r) : (i = me(e), i.c(), i.m(n.parentNode, n)) : i && (i.d(1), i = null);
299
+ e[51] == /*subGroup*/
300
+ e[52].index ? i ? i.p(e, r) : (i = me(e), i.c(), i.m(n.parentNode, n)) : i && (i.d(1), i = null);
301
301
  },
302
302
  d(l) {
303
303
  l && (S(t), S(n)), i && i.d(l);
@@ -307,11 +307,11 @@ function ge(a, e) {
307
307
  function he(a) {
308
308
  let e = [], t = /* @__PURE__ */ new Map(), n, i = z(
309
309
  /*subGroup*/
310
- a[53].items
310
+ a[52].items
311
311
  );
312
312
  const l = (r) => (
313
313
  /*subGroupItem*/
314
- r[56].id
314
+ r[55].id
315
315
  );
316
316
  for (let r = 0; r < i.length; r += 1) {
317
317
  let s = ce(a, i, r), d = l(s);
@@ -332,7 +332,7 @@ function he(a) {
332
332
  s[0] & /*handleClick, sliderdata, subGroupsData, activeIndex, activeSubIndex, prevSubIndex*/
333
333
  10176 && (i = z(
334
334
  /*subGroup*/
335
- r[53].items
335
+ r[52].items
336
336
  ), e = pe(e, s, l, 1, r, i, t, n.parentNode, we, ge, n, ce));
337
337
  },
338
338
  d(r) {
@@ -347,14 +347,14 @@ function Ce(a, e) {
347
347
  function M(m, _) {
348
348
  return (
349
349
  /*location*/
350
- m[0] === "headerMain" ? Qe : Xe
350
+ m[0] === "headerMain" ? Je : Ke
351
351
  );
352
352
  }
353
353
  let I = M(e), h = I(e), c = (
354
354
  /*itemsActive*/
355
355
  e[11][
356
356
  /*index*/
357
- e[52]
357
+ e[51]
358
358
  ] == !0 && de(e)
359
359
  );
360
360
  function b(...m) {
@@ -362,9 +362,9 @@ function Ce(a, e) {
362
362
  /*click_handler_2*/
363
363
  e[33](
364
364
  /*category*/
365
- e[50],
365
+ e[49],
366
366
  /*index*/
367
- e[52],
367
+ e[51],
368
368
  ...m
369
369
  )
370
370
  );
@@ -378,16 +378,16 @@ function Ce(a, e) {
378
378
  (e[3] === "true" ? "" : "DisplayNone")), ne(i.src, r = /*handleSrc*/
379
379
  e[16](
380
380
  /*category*/
381
- e[50]
381
+ e[49]
382
382
  )) || f(i, "src", r), f(n, "class", "CategoryIcon"), f(t, "class", w = "CarouselItem " + /*activeindex*/
383
383
  (((m = e[1]) == null ? void 0 : m.toString().indexOf("$")) > -1 ? (
384
384
  /*activeindex*/
385
385
  ((_ = e[1]) == null ? void 0 : _.split("$").pop()) == /*category*/
386
- e[50].id.split("$").pop() ? "active" : ""
386
+ e[49].id.split("$").pop() ? "active" : ""
387
387
  ) : (
388
388
  /*activeindex*/
389
389
  e[1] == /*category*/
390
- e[50].id ? "active" : ""
390
+ e[49].id ? "active" : ""
391
391
  )) + " " + /*location*/
392
392
  (e[0] == "headerMain" ? "" : "SecondaryMenu")), f(t, "part", "CarouselItem"), this.first = t;
393
393
  },
@@ -402,21 +402,21 @@ function Ce(a, e) {
402
402
  512 && !ne(i.src, r = /*handleSrc*/
403
403
  e[16](
404
404
  /*category*/
405
- e[50]
405
+ e[49]
406
406
  )) && f(i, "src", r), I === (I = M(e)) && h ? h.p(e, _) : (h.d(1), h = I(e), h && (h.c(), h.m(t, d))), /*itemsActive*/
407
407
  e[11][
408
408
  /*index*/
409
- e[52]
409
+ e[51]
410
410
  ] == !0 ? c ? c.p(e, _) : (c = de(e), c.c(), c.m(t, F)) : c && (c.d(1), c = null), _[0] & /*activeindex, sliderdata, location*/
411
411
  515 && w !== (w = "CarouselItem " + /*activeindex*/
412
412
  (((T = e[1]) == null ? void 0 : T.toString().indexOf("$")) > -1 ? (
413
413
  /*activeindex*/
414
414
  ((x = e[1]) == null ? void 0 : x.split("$").pop()) == /*category*/
415
- e[50].id.split("$").pop() ? "active" : ""
415
+ e[49].id.split("$").pop() ? "active" : ""
416
416
  ) : (
417
417
  /*activeindex*/
418
418
  e[1] == /*category*/
419
- e[50].id ? "active" : ""
419
+ e[49].id ? "active" : ""
420
420
  )) + " " + /*location*/
421
421
  (e[0] == "headerMain" ? "" : "SecondaryMenu")) && f(t, "class", w);
422
422
  },
@@ -425,7 +425,7 @@ function Ce(a, e) {
425
425
  }
426
426
  };
427
427
  }
428
- function Ve(a) {
428
+ function Xe(a) {
429
429
  let e, t, n, i, l, r, s, d, F, w, g, v, M, I, h, c = (
430
430
  /*sliderdata*/
431
431
  a[9].length > 0 && ue(a)
@@ -466,13 +466,13 @@ function Ve(a) {
466
466
  i: oe,
467
467
  o: oe,
468
468
  d(b) {
469
- b && S(e), c && c.d(), a[34](null), a[35](null), a[37](null), I = !1, xe(h);
469
+ b && S(e), c && c.d(), a[34](null), a[35](null), a[37](null), I = !1, Ge(h);
470
470
  }
471
471
  };
472
472
  }
473
- function Ze(a, e, t) {
473
+ function Qe(a, e, t) {
474
474
  let { endpoint: n = "" } = e, { datasource: i = "" } = e, { onclickeventname: l = "defaultEvent" } = e, { actionevent: r = "defaultEvent" } = e, { favoritesnumber: s = "0" } = e, { location: d = "" } = e, { clientstyling: F = "" } = e, { clientstylingurl: w = "" } = e, { identity: g = "" } = e, { translationurl: v = "" } = e, { isprimarymenu: M = !1 } = e, { issecondarymenu: I = !1 } = e, { lang: h = "" } = e, { activeindex: c = "0" } = e, { showsubgroups: b = "false" } = e, { categoriesicon: m = "false" } = e, { lobbyiconimage: _ = "" } = e, { mygamesiconimage: T = "" } = e;
475
- Pe({ withLocale: "en", translations: {} });
475
+ Ye({ withLocale: "en", translations: {} });
476
476
  const x = () => {
477
477
  fetch(v).then((u) => u.json()).then((u) => {
478
478
  Object.keys(u).forEach((C) => {
@@ -485,12 +485,10 @@ function Ze(a, e, t) {
485
485
  Object.keys(ie).forEach((o) => {
486
486
  ae(o, ie[o]);
487
487
  });
488
- let ye = window.navigator.userAgent;
489
- Ue(ye);
490
- let j, W, B, K, H, O = [], U = [], Y = [], L, J = (o, u, C, E, A) => {
488
+ let j, W, B, K, A, O = [], U = [], Y = [], L, J = (o, u, C, E, H) => {
491
489
  var N;
492
490
  if (!(o.subGroups && E === null)) {
493
- if (q(), t(6, W = u), t(6, W), A != "secondary") {
491
+ if (q(), t(6, W = u), t(6, W), H != "secondary") {
494
492
  window.postMessage(
495
493
  {
496
494
  type: r == "CategoryChange" ? "CategoryChange" : "NavigateTo",
@@ -522,16 +520,16 @@ function Ze(a, e, t) {
522
520
  L.scrollBy({ left: 250, behavior: "smooth" });
523
521
  };
524
522
  const te = (o) => {
525
- o.data.type == "SliderData" && o.data.identity == g && (t(9, O = o.data.data), t(11, Y = new Array(O.length).fill(!1)), b == "true" && _e()), o.data.type == "GoToHomepage" && O.forEach((u, C) => {
523
+ o.data.type == "SliderData" && o.data.identity == g && (t(9, O = o.data.data), t(11, Y = new Array(O.length).fill(!1)), b == "true" && be()), o.data.type == "GoToHomepage" && O.forEach((u, C) => {
526
524
  u.path.endsWith("/casino") && (t(6, W = C), t(6, W));
527
525
  });
528
- }, ve = () => {
529
- Ke(h);
530
- }, be = (o, u, C) => {
526
+ }, ye = () => {
527
+ qe(h);
528
+ }, ve = (o, u, C) => {
531
529
  if (d == "secondaryMenu" && n && i && h && o.id) {
532
530
  let E = new URL(`${n}/v1/casino/groups/${i}/${o.id}/subGroups?language=${h}`);
533
- fetch(E.href).then((A) => A.json()).then((A) => {
534
- A.index = u, t(10, U = U.concat(A)), b == "false" && window.postMessage(
531
+ fetch(E.href).then((H) => H.json()).then((H) => {
532
+ H.index = u, t(10, U = U.concat(H)), b == "false" && window.postMessage(
535
533
  {
536
534
  type: r,
537
535
  itemId: o.id,
@@ -541,8 +539,8 @@ function Ze(a, e, t) {
541
539
  window.location.href
542
540
  );
543
541
  const N = [];
544
- U.map((Ne) => (Ne.items.forEach((re) => {
545
- N.find((Re) => re.id == Re) || N.push(re.id);
542
+ U.map((Ee) => (Ee.items.forEach((re) => {
543
+ N.find((Ne) => re.id == Ne) || N.push(re.id);
546
544
  }), N.flat())), window.postMessage({ type: "SubgroupsIds", subGroupsIds: N }, window.location.href);
547
545
  }).then(() => {
548
546
  j.querySelectorAll(".DropDown") && q();
@@ -555,29 +553,29 @@ function Ze(a, e, t) {
555
553
  for (let u = 0; u < o.length; u++)
556
554
  o[u].style.transform = "translateX(-" + L.scrollLeft + "px)";
557
555
  L.classList.remove("isScrolling");
558
- }, _e = () => {
556
+ }, be = () => {
559
557
  O.forEach((o, u) => {
560
558
  var C;
561
- ((C = o == null ? void 0 : o.subGroups) == null ? void 0 : C.count) > 0 && (t(11, Y[u] = !0, Y), be(o, u));
559
+ ((C = o == null ? void 0 : o.subGroups) == null ? void 0 : C.count) > 0 && (t(11, Y[u] = !0, Y), ve(o, u));
562
560
  });
563
- }, ke = () => {
561
+ }, _e = () => {
564
562
  let o = document.createElement("style");
565
- o.innerHTML = F, H.appendChild(o);
566
- }, Fe = () => {
563
+ o.innerHTML = F, A.appendChild(o);
564
+ }, ke = () => {
567
565
  let o = document.createElement("style"), u = new URL(w);
568
566
  fetch(u.href).then((C) => C.text()).then((C) => {
569
567
  o.innerHTML = C, setTimeout(
570
568
  () => {
571
- H.appendChild(o);
569
+ A.appendChild(o);
572
570
  },
573
571
  1
574
572
  );
575
573
  });
576
- }, Me = (o) => {
574
+ }, Fe = (o) => {
577
575
  let u = "";
578
576
  return o.id === "LOBBY" ? u = _ : o.id === "MYGAMES" && (u = T), o.icon || u;
579
577
  };
580
- Ye(() => ("ontouchstart" in document.documentElement && (document.documentElement.className += " touch-device"), window.addEventListener("message", te, !1), setTimeout(
578
+ xe(() => (window.addEventListener("message", te, !1), "ontouchstart" in document.documentElement && (document.documentElement.className += " touch-device"), setTimeout(
581
579
  () => {
582
580
  L.addEventListener("scroll", q);
583
581
  },
@@ -585,25 +583,25 @@ function Ze(a, e, t) {
585
583
  ), () => {
586
584
  window.removeEventListener("message", te), j.removeEventListener("scroll", q);
587
585
  }));
588
- const Ie = () => $(), De = (o, u, C, E, A) => {
589
- J(o, u, C, E, "secondary"), A.stopPropagation();
590
- }, Se = (o, u, C) => {
586
+ const Me = () => $(), Ie = (o, u, C, E, H) => {
587
+ J(o, u, C, E, "secondary"), H.stopPropagation();
588
+ }, De = (o, u, C) => {
591
589
  J(o, u, null, null, "main"), C.preventDefault();
592
590
  };
593
- function Le(o) {
591
+ function Se(o) {
594
592
  X[o ? "unshift" : "push"](() => {
595
593
  j = o, t(5, j);
596
594
  });
597
595
  }
598
- function Ae(o) {
596
+ function Le(o) {
599
597
  X[o ? "unshift" : "push"](() => {
600
598
  L = o, t(12, L);
601
599
  });
602
600
  }
603
601
  const He = () => ee();
604
- function Ee(o) {
602
+ function Ae(o) {
605
603
  X[o ? "unshift" : "push"](() => {
606
- H = o, t(4, H);
604
+ A = o, t(4, A);
607
605
  });
608
606
  }
609
607
  return a.$$set = (o) => {
@@ -612,15 +610,15 @@ function Ze(a, e, t) {
612
610
  a.$$.dirty[0] & /*activeindex*/
613
611
  2, a.$$.dirty[0] & /*translationurl*/
614
612
  33554432 && v && x(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
615
- 4194320 && F && H && ke(), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
616
- 8388624 && w && H && Fe(), a.$$.dirty[0] & /*lang*/
617
- 268435456 && h && ve();
613
+ 4194320 && F && A && _e(), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
614
+ 8388624 && w && A && ke(), a.$$.dirty[0] & /*lang*/
615
+ 268435456 && h && ye();
618
616
  }, [
619
617
  d,
620
618
  c,
621
619
  b,
622
620
  m,
623
- H,
621
+ A,
624
622
  j,
625
623
  W,
626
624
  B,
@@ -632,7 +630,7 @@ function Ze(a, e, t) {
632
630
  J,
633
631
  $,
634
632
  ee,
635
- Me,
633
+ Fe,
636
634
  n,
637
635
  i,
638
636
  l,
@@ -647,23 +645,23 @@ function Ze(a, e, t) {
647
645
  h,
648
646
  _,
649
647
  T,
648
+ Me,
650
649
  Ie,
651
650
  De,
652
651
  Se,
653
652
  Le,
654
- Ae,
655
653
  He,
656
- Ee
654
+ Ae
657
655
  ];
658
656
  }
659
- class $e extends ze {
657
+ class Ve extends je {
660
658
  constructor(e) {
661
- super(), We(
659
+ super(), ze(
662
660
  this,
663
661
  e,
664
- Ze,
665
- Ve,
666
- Oe,
662
+ Qe,
663
+ Xe,
664
+ Be,
667
665
  {
668
666
  endpoint: 17,
669
667
  datasource: 18,
@@ -684,7 +682,7 @@ class $e extends ze {
684
682
  lobbyiconimage: 29,
685
683
  mygamesiconimage: 30
686
684
  },
687
- Je,
685
+ Pe,
688
686
  [-1, -1]
689
687
  );
690
688
  }
@@ -797,7 +795,7 @@ class $e extends ze {
797
795
  this.$$set({ mygamesiconimage: e }), y();
798
796
  }
799
797
  }
800
- Be($e, { endpoint: {}, datasource: {}, onclickeventname: {}, actionevent: {}, favoritesnumber: {}, location: {}, clientstyling: {}, clientstylingurl: {}, identity: {}, translationurl: {}, isprimarymenu: { type: "Boolean" }, issecondarymenu: { type: "Boolean" }, lang: {}, activeindex: {}, showsubgroups: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {} }, [], [], !0);
798
+ We(Ve, { endpoint: {}, datasource: {}, onclickeventname: {}, actionevent: {}, favoritesnumber: {}, location: {}, clientstyling: {}, clientstylingurl: {}, identity: {}, translationurl: {}, isprimarymenu: { type: "Boolean" }, issecondarymenu: { type: "Boolean" }, lang: {}, activeindex: {}, showsubgroups: {}, categoriesicon: {}, lobbyiconimage: {}, mygamesiconimage: {} }, [], [], !0);
801
799
  export {
802
- $e as default
800
+ Ve as default
803
801
  };
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoHeaderController-DxmP4ePL.cjs")).then(({default:t})=>{!customElements.get("casino-header-controller")&&customElements.define("casino-header-controller",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoHeaderController-UV0Ettr0.cjs")).then(({default:t})=>{!customElements.get("casino-header-controller")&&customElements.define("casino-header-controller",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CasinoHeaderController-DAO7jv0Y.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoHeaderController-VXjDEFYv.js").then(({ default: t }) => {
14
14
  !customElements.get("casino-header-controller") && customElements.define("casino-header-controller", t.element);
15
15
  });
16
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-header-controller",
3
- "version": "1.47.1",
3
+ "version": "1.47.3",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-header-controller.cjs",
6
6
  "module": "es2015/casino-header-controller.js",