@everymatrix/casino-promotions-slider 1.85.16 → 1.85.18

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.
@@ -196,7 +196,7 @@ let nt = !1;
196
196
  function gn() {
197
197
  nt || (nt = !0, mn.then(z));
198
198
  }
199
- function Ie(e) {
199
+ function Le(e) {
200
200
  ne.push(e);
201
201
  }
202
202
  const Ye = /* @__PURE__ */ new Set();
@@ -230,7 +230,7 @@ function bn(e) {
230
230
  if (e.fragment !== null) {
231
231
  e.update(), ce(e.before_update);
232
232
  const t = e.dirty;
233
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ie);
233
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Le);
234
234
  }
235
235
  }
236
236
  function vn(e) {
@@ -246,10 +246,10 @@ function se(e) {
246
246
  }
247
247
  function xn(e, t, r) {
248
248
  const { fragment: n, after_update: i } = e.$$;
249
- n && n.m(t, r), Ie(() => {
249
+ n && n.m(t, r), Le(() => {
250
250
  const o = e.$$.on_mount.map(or).filter(yt);
251
251
  e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ce(o), e.$$.on_mount = [];
252
- }), i.forEach(Ie);
252
+ }), i.forEach(Le);
253
253
  }
254
254
  function En(e, t) {
255
255
  const r = e.$$;
@@ -923,7 +923,7 @@ function Ct(e) {
923
923
  }
924
924
  var On = {
925
925
  Promise: void 0
926
- }, Ln = {
926
+ }, In = {
927
927
  setTimeout: function(e, t) {
928
928
  for (var r = [], n = 2; n < arguments.length; n++)
929
929
  r[n - 2] = arguments[n];
@@ -934,8 +934,8 @@ var On = {
934
934
  },
935
935
  delegate: void 0
936
936
  };
937
- function In(e) {
938
- Ln.setTimeout(function() {
937
+ function Ln(e) {
938
+ In.setTimeout(function() {
939
939
  throw e;
940
940
  });
941
941
  }
@@ -1019,7 +1019,7 @@ var gr = function(e) {
1019
1019
  return t;
1020
1020
  }(gr);
1021
1021
  function He(e) {
1022
- In(e);
1022
+ Ln(e);
1023
1023
  }
1024
1024
  function Mn(e) {
1025
1025
  throw e;
@@ -1123,7 +1123,7 @@ var Gn = dr(function(e) {
1123
1123
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
1124
1124
  }
1125
1125
  return t.prototype.lift = function(r) {
1126
- var n = new Lt(this, this);
1126
+ var n = new It(this, this);
1127
1127
  return n.operator = r, n;
1128
1128
  }, t.prototype._throwIfClosed = function() {
1129
1129
  if (this.closed)
@@ -1194,9 +1194,9 @@ var Gn = dr(function(e) {
1194
1194
  var r = new Bt();
1195
1195
  return r.source = this, r;
1196
1196
  }, t.create = function(r, n) {
1197
- return new Lt(r, n);
1197
+ return new It(r, n);
1198
1198
  }, t;
1199
- }(Bt), Lt = function(e) {
1199
+ }(Bt), It = function(e) {
1200
1200
  Se(t, e);
1201
1201
  function t(r, n) {
1202
1202
  var i = e.call(this) || this;
@@ -1244,10 +1244,10 @@ var Gn = dr(function(e) {
1244
1244
  }
1245
1245
  }, t;
1246
1246
  }(br);
1247
- const It = [], Nt = {}, Xn = (e, t = 0) => {
1248
- if (It.indexOf(e) == -1) {
1247
+ const Lt = [], Nt = {}, Xn = (e, t = 0) => {
1248
+ if (Lt.indexOf(e) == -1) {
1249
1249
  const r = new jn(t);
1250
- Nt[e] = r, It.push(e);
1250
+ Nt[e] = r, Lt.push(e);
1251
1251
  }
1252
1252
  return Nt[e];
1253
1253
  }, te = [];
@@ -1660,7 +1660,7 @@ function kt(e) {
1660
1660
  return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
1661
1661
  }), t;
1662
1662
  }
1663
- function Lr(e) {
1663
+ function Ir(e) {
1664
1664
  switch (e) {
1665
1665
  case "sign-auto":
1666
1666
  return {
@@ -1715,7 +1715,7 @@ function Si(e) {
1715
1715
  return t;
1716
1716
  }
1717
1717
  function Ft(e) {
1718
- var t = {}, r = Lr(e);
1718
+ var t = {}, r = Ir(e);
1719
1719
  return r || t;
1720
1720
  }
1721
1721
  function Pi(e) {
@@ -1835,7 +1835,7 @@ function Pi(e) {
1835
1835
  t = A(A({}, t), kt(i.stem));
1836
1836
  continue;
1837
1837
  }
1838
- var a = Lr(i.stem);
1838
+ var a = Ir(i.stem);
1839
1839
  a && (t = A(A({}, t), a));
1840
1840
  var u = Si(i.stem);
1841
1841
  u && (t = A(A({}, t), u));
@@ -3299,7 +3299,7 @@ var et, Hi = new RegExp("^".concat(Ar.source, "*")), Ci = new RegExp("".concat(A
3299
3299
  function x(e, t) {
3300
3300
  return { start: e, end: t };
3301
3301
  }
3302
- var Ai = !!String.prototype.startsWith && "_a".startsWith("a", 1), Bi = !!String.fromCodePoint, Oi = !!Object.fromEntries, Li = !!String.prototype.codePointAt, Ii = !!String.prototype.trimStart, Ni = !!String.prototype.trimEnd, Mi = !!Number.isSafeInteger, Ri = Mi ? Number.isSafeInteger : function(e) {
3302
+ var Ai = !!String.prototype.startsWith && "_a".startsWith("a", 1), Bi = !!String.fromCodePoint, Oi = !!Object.fromEntries, Ii = !!String.prototype.codePointAt, Li = !!String.prototype.trimStart, Ni = !!String.prototype.trimEnd, Mi = !!Number.isSafeInteger, Ri = Mi ? Number.isSafeInteger : function(e) {
3303
3303
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3304
3304
  }, ft = !0;
3305
3305
  try {
@@ -3342,7 +3342,7 @@ var Ut = Ai ? (
3342
3342
  return r;
3343
3343
  }
3344
3344
  )
3345
- ), Ir = Li ? (
3345
+ ), Lr = Ii ? (
3346
3346
  // Native
3347
3347
  function(t, r) {
3348
3348
  return t.codePointAt(r);
@@ -3356,7 +3356,7 @@ var Ut = Ai ? (
3356
3356
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3357
3357
  }
3358
3358
  }
3359
- ), ki = Ii ? (
3359
+ ), ki = Li ? (
3360
3360
  // Native
3361
3361
  function(t) {
3362
3362
  return t.trimStart();
@@ -3392,7 +3392,7 @@ if (ft) {
3392
3392
  } else
3393
3393
  pt = function(t, r) {
3394
3394
  for (var n = []; ; ) {
3395
- var i = Ir(t, r);
3395
+ var i = Lr(t, r);
3396
3396
  if (i === void 0 || Mr(i) || ji(i))
3397
3397
  break;
3398
3398
  n.push(i), r += i >= 65536 ? 2 : 1;
@@ -3801,7 +3801,7 @@ var Ui = (
3801
3801
  var t = this.position.offset;
3802
3802
  if (t >= this.message.length)
3803
3803
  throw Error("out of bound");
3804
- var r = Ir(this.message, t);
3804
+ var r = Lr(this.message, t);
3805
3805
  if (r === void 0)
3806
3806
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3807
3807
  return r;
@@ -4272,12 +4272,12 @@ fe(
4272
4272
  ([e]) => Object.keys(e)
4273
4273
  );
4274
4274
  de.subscribe((e) => xt = e);
4275
- const Le = {};
4275
+ const Ie = {};
4276
4276
  function io(e, t) {
4277
- Le[e].delete(t), Le[e].size === 0 && delete Le[e];
4277
+ Ie[e].delete(t), Ie[e].size === 0 && delete Ie[e];
4278
4278
  }
4279
4279
  function Fr(e) {
4280
- return Le[e];
4280
+ return Ie[e];
4281
4281
  }
4282
4282
  function oo(e) {
4283
4283
  return Ge(e).map((t) => {
@@ -4502,13 +4502,14 @@ const Ee = (e, t) => {
4502
4502
  );
4503
4503
  }
4504
4504
  return h;
4505
- }, Co = (e, t) => wo(t).format(e), Ao = (e, t) => Po(t).format(e), Bo = (e, t) => So(t).format(e), Oo = (e, t = J()) => Rr(e, t), Lo = fe([Q, de], () => Ho);
4505
+ }, Co = (e, t) => wo(t).format(e), Ao = (e, t) => Po(t).format(e), Bo = (e, t) => So(t).format(e), Oo = (e, t = J()) => Rr(e, t), Io = fe([Q, de], () => Ho);
4506
4506
  fe([Q], () => Co);
4507
4507
  fe([Q], () => Ao);
4508
4508
  fe([Q], () => Bo);
4509
4509
  fe([Q, de], () => Oo);
4510
4510
  window.emWidgets = { topic: Xn };
4511
- const Io = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4511
+ const Lo = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4512
+ String(Number.MAX_SAFE_INTEGER).length;
4512
4513
  function No({ withLocale: e, translations: t }) {
4513
4514
  Q.subscribe((r) => {
4514
4515
  r == null && (de.set(t), Q.set(e));
@@ -4606,6 +4607,8 @@ function Ro(e, t) {
4606
4607
  }
4607
4608
  }
4608
4609
  function Do(e, t) {
4610
+ if (!e || !t)
4611
+ return;
4609
4612
  const r = new URL(t);
4610
4613
  fetch(r.href).then((n) => n.text()).then((n) => {
4611
4614
  const i = document.createElement("style");
@@ -4762,7 +4765,7 @@ function er(e) {
4762
4765
  ), b, S, E, B, O = (
4763
4766
  /*$_*/
4764
4767
  e[12]("promotionsButton") + ""
4765
- ), N, T, v, w, C, j, L, K, Pe, F = se(
4768
+ ), N, T, v, w, C, j, I, K, Pe, F = se(
4766
4769
  /*promotion*/
4767
4770
  e[52].image.sources
4768
4771
  ), M = [];
@@ -4783,7 +4786,7 @@ function er(e) {
4783
4786
  for (let R = 0; R < M.length; R += 1)
4784
4787
  M[R].c();
4785
4788
  i = G(), o = P("img"), c = G(), l = P("div"), s = P("h3"), f = G(), d = P("div"), b = G(), S = P("div"), E = P("a"), B = P("b"), N = oe(O), T = G(), v = Ze("svg"), w = Ze("style"), C = oe(`.st0{fill:#FFFFFF;}
4786
- `), j = Ze("path"), L = G(), ie(o.src, a = /*promotion*/
4789
+ `), j = Ze("path"), I = G(), ie(o.src, a = /*promotion*/
4787
4790
  e[52].image.src) || p(o, "src", a), p(o, "alt", u = /*promotion*/
4788
4791
  e[52].title), p(n, "class", "PromotionImg"), p(n, "part", "PromotionImg"), p(s, "class", "PromotionTitle"), p(s, "part", "PromotionTitle"), p(d, "class", "description"), p(d, "part", "description"), p(w, "type", "text/css"), p(j, "class", "st0"), p(j, "d", `M9.5,13.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L12.4,9H1.2C0.9,9,0.7,8.9,0.5,8.7
4789
4792
  C0.3,8.5,0.2,8.3,0.2,8s0.1-0.5,0.3-0.7C0.7,7.1,0.9,7,1.2,7h11.1L9.5,4.1C9.3,3.9,9.2,3.7,9.2,3.4c0-0.3,0.1-0.5,0.3-0.7
@@ -4792,9 +4795,9 @@ function er(e) {
4792
4795
  },
4793
4796
  m(R, V) {
4794
4797
  X(R, t, V), y(t, r), y(r, n);
4795
- for (let I = 0; I < M.length; I += 1)
4796
- M[I] && M[I].m(n, null);
4797
- y(n, i), y(n, o), y(r, c), y(r, l), y(l, s), s.innerHTML = h, y(l, f), y(l, d), d.innerHTML = m, y(l, b), y(l, S), y(S, E), y(E, B), y(B, N), y(E, T), y(E, v), y(v, w), y(w, C), y(v, j), y(t, L), K || (Pe = ye(E, "click", Xe), K = !0);
4798
+ for (let L = 0; L < M.length; L += 1)
4799
+ M[L] && M[L].m(n, null);
4800
+ y(n, i), y(n, o), y(r, c), y(r, l), y(l, s), s.innerHTML = h, y(l, f), y(l, d), d.innerHTML = m, y(l, b), y(l, S), y(S, E), y(E, B), y(B, N), y(E, T), y(E, v), y(v, w), y(w, C), y(v, j), y(t, I), K || (Pe = ye(E, "click", Xe), K = !0);
4798
4801
  },
4799
4802
  p(R, V) {
4800
4803
  if (e = R, V[0] & /*promotions*/
@@ -4803,13 +4806,13 @@ function er(e) {
4803
4806
  /*promotion*/
4804
4807
  e[52].image.sources
4805
4808
  );
4806
- let I;
4807
- for (I = 0; I < F.length; I += 1) {
4808
- const me = Jt(e, F, I);
4809
- M[I] ? M[I].p(me, V) : (M[I] = Kt(me), M[I].c(), M[I].m(n, i));
4809
+ let L;
4810
+ for (L = 0; L < F.length; L += 1) {
4811
+ const me = Jt(e, F, L);
4812
+ M[L] ? M[L].p(me, V) : (M[L] = Kt(me), M[L].c(), M[L].m(n, i));
4810
4813
  }
4811
- for (; I < M.length; I += 1)
4812
- M[I].d(1);
4814
+ for (; L < M.length; L += 1)
4815
+ M[L].d(1);
4813
4816
  M.length = F.length;
4814
4817
  }
4815
4818
  V[0] & /*promotions*/
@@ -4976,7 +4979,7 @@ function jo(e) {
4976
4979
  );
4977
4980
  return {
4978
4981
  c() {
4979
- t = P("div"), r = P("section"), n = P("div"), c.c(), o = G(), l && l.c(), p(n, "class", "container"), p(r, "class", "PromotionSlider"), Ie(() => (
4982
+ t = P("div"), r = P("section"), n = P("div"), c.c(), o = G(), l && l.c(), p(n, "class", "container"), p(r, "class", "PromotionSlider"), Le(() => (
4980
4983
  /*section_elementresize_handler*/
4981
4984
  e[29].call(r)
4982
4985
  )), p(t, "class", "CasinoPromotionsSlider");
@@ -5002,7 +5005,7 @@ function jo(e) {
5002
5005
  let Xo = 4e3, Vo = 200, zo = "ease-out", ir = 0, Wo = !0, Zo = !0, Yo = 20, qo = !1;
5003
5006
  function Qo(e, t, r) {
5004
5007
  let n, i;
5005
- rn(e, Lo, (g) => r(12, i = g));
5008
+ rn(e, Io, (g) => r(12, i = g));
5006
5009
  let { endpoint: o = "" } = t, { lang: a = "" } = t, { env: u = "" } = t, { userroles: c = "" } = t, { translationurl: l = "" } = t, { mbsource: s } = t, { clientstyling: h = "" } = t, { clientstylingurl: f = "" } = t, { numbersdisplayed: d = "true" } = t, m, b = !1, S = [], E, B = 0;
5007
5010
  No({ withLocale: "en", translations: {} });
5008
5011
  const O = () => {
@@ -5023,14 +5026,14 @@ function Qo(e, t, r) {
5023
5026
  let T = window.navigator.userAgent;
5024
5027
  const v = () => {
5025
5028
  r(5, b = !0);
5026
- let g = new URL(`${o}/${a}/promotions?env=${u}`), D = Io(T);
5029
+ let g = new URL(`${o}/${a}/promotions?env=${u}`), D = Lo(T);
5027
5030
  D && (D === "PC" ? g.searchParams.append("device", "dk") : D === "iPad" || D === "iPhone" ? g.searchParams.append("device", "ios") : g.searchParams.append("device", "mtWeb")), g.searchParams.append("userRoles", c), fetch(g.href).then((U) => U.json()).then((U) => {
5028
5031
  r(5, b = !1), r(2, S = U);
5029
5032
  }).catch((U) => {
5030
5033
  r(5, b = !1), console.error(U);
5031
5034
  });
5032
5035
  };
5033
- let w = 4, C = ir, j, L, K;
5036
+ let w = 4, C = ir, j, I, K;
5034
5037
  const Pe = pn();
5035
5038
  let F;
5036
5039
  const M = (g, D) => {
@@ -5039,15 +5042,15 @@ function Qo(e, t, r) {
5039
5042
  const Kr = this, en = arguments;
5040
5043
  clearTimeout(U), U = setTimeout(() => g.apply(Kr, en), D);
5041
5044
  };
5042
- }, Xe = () => (F >= 1600 ? r(24, w = 4) : F >= 1250 ? r(24, w = 3) : F >= 768 ? r(24, w = 2) : F >= 320 && r(24, w = 1), typeof w == "object" ? w : Number(w)), R = () => L ? L.perPage : w, V = () => L ? Math.ceil(L.innerElements.length / n) : 0, I = () => !(S.length <= Xe()), me = () => {
5043
- L && (r(24, w = r(4, n = R())), r(6, B = V()));
5045
+ }, Xe = () => (F >= 1600 ? r(24, w = 4) : F >= 1250 ? r(24, w = 3) : F >= 768 ? r(24, w = 2) : F >= 320 && r(24, w = 1), typeof w == "object" ? w : Number(w)), R = () => I ? I.perPage : w, V = () => I ? Math.ceil(I.innerElements.length / n) : 0, L = () => !(S.length <= Xe()), me = () => {
5046
+ I && (r(24, w = r(4, n = R())), r(6, B = V()));
5044
5047
  }, St = M(me, 300);
5045
5048
  dn(() => (window.addEventListener("resize", St), () => {
5046
5049
  window.removeEventListener("resize", St);
5047
5050
  }));
5048
- const jr = () => (r(25, L = new Bn({
5051
+ const jr = () => (r(25, I = new Bn({
5049
5052
  selector: j,
5050
- loop: I(),
5053
+ loop: L(),
5051
5054
  duration: Vo,
5052
5055
  easing: zo,
5053
5056
  startIndex: ir,
@@ -5066,13 +5069,13 @@ function Qo(e, t, r) {
5066
5069
  1600: 4
5067
5070
  // wider than 1600px show 4 promo.cards
5068
5071
  }
5069
- })), K = setInterval(() => L.next(), Xo), () => {
5070
- clearInterval(K), L.destroy();
5072
+ })), K = setInterval(() => I.next(), Xo), () => {
5073
+ clearInterval(K), I.destroy();
5071
5074
  });
5072
5075
  function Xr() {
5073
- r(7, C = L.currentSlide), Pe("change", {
5074
- currentSlide: L.currentSlide,
5075
- slideCount: L.innerElements.length
5076
+ r(7, C = I.currentSlide), Pe("change", {
5077
+ currentSlide: I.currentSlide,
5078
+ slideCount: I.innerElements.length
5076
5079
  });
5077
5080
  }
5078
5081
  const Vr = (g, D) => {
@@ -5116,10 +5119,10 @@ function Qo(e, t, r) {
5116
5119
  4194306 && h && m && Ro(m, h), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
5117
5120
  8388610 && f && m && Do(m, f), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
5118
5121
  2097154 && s && m && ko(m, `${s}.Style`), e.$$.dirty[0] & /*controller, perPage*/
5119
- 50331648 && r(4, n = L ? L.perPage : w), e.$$.dirty[0] & /*controller, currentPerPage*/
5120
- 33554448 && r(6, B = L ? Math.ceil(L.innerElements.length / n) : 0), e.$$.dirty[0] & /*promotions, promotionsSlider*/
5122
+ 50331648 && r(4, n = I ? I.perPage : w), e.$$.dirty[0] & /*controller, currentPerPage*/
5123
+ 33554448 && r(6, B = I ? Math.ceil(I.innerElements.length / n) : 0), e.$$.dirty[0] & /*promotions, promotionsSlider*/
5121
5124
  12 && S && E && jr(), e.$$.dirty[0] & /*controller*/
5122
- 33554432 && L && me();
5125
+ 33554432 && I && me();
5123
5126
  }, [
5124
5127
  d,
5125
5128
  m,
@@ -5146,7 +5149,7 @@ function Qo(e, t, r) {
5146
5149
  h,
5147
5150
  f,
5148
5151
  w,
5149
- L,
5152
+ I,
5150
5153
  zr,
5151
5154
  Wr,
5152
5155
  Zr,