@everymatrix/casino-page-nd 1.72.1 → 1.73.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.
@@ -191,7 +191,7 @@ const ge = {
191
191
  }
192
192
  };
193
193
  function rt(a) {
194
- Ue(a, "svelte-abbrgk", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:10px 10px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;color:var(--emw--color-gray-100, #E6E6E6);border:none;background:var(--emw--color-secondary, #194127);border-radius:var(--emw--border-radius-medium, 10px);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%;transition:3s}.SearchInput::placeholder{color:var(--emw--color-white, #FFF);font-size:16px;font-weight:300}.SearchInput:focus{background:var(--emw--color-primary, #194127);padding-right:28px}.SearchInput:focus-visible{outline-width:0}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:10px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}");
194
+ Ue(a, "svelte-1vt65d9", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:10px 10px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;color:var(--emw--color-gray-100, #E6E6E6);border:none;background:var(--emw--color-secondary, #194127);border-radius:var(--emw--border-radius-medium, 10px);display:block;font-size:16px;font-weight:300;padding:14px 30px 14px 46px;width:100%;transition:3s}.SearchInput::placeholder{color:var(--emw--color-white, #FFF);font-size:16px;font-weight:300}.SearchInput:focus{background:var(--emw--color-primary, #194127)}.SearchInput:focus-visible{outline-width:0}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:10px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}");
195
195
  }
196
196
  function fe(a, e, t) {
197
197
  const n = a.slice();
@@ -692,7 +692,7 @@ function ye(a) {
692
692
  };
693
693
  }
694
694
  function ct(a) {
695
- let e, t, n, r, l, s, i, c, g, h, m, b, d, p, M, P, x, W, O, U, v = (
695
+ let e, t, n, r, l, s, i, c, g, h, m, b, d, p, M, P, A, W, O, U, v = (
696
696
  /*cancelbutton*/
697
697
  a[10] === "true" && pe(a)
698
698
  );
@@ -702,14 +702,14 @@ function ct(a) {
702
702
  w[18] ? st : ot
703
703
  );
704
704
  }
705
- let A = E(a), R = A(a);
705
+ let x = E(a), R = x(a);
706
706
  return {
707
707
  c() {
708
708
  e = y("div"), t = y("div"), n = y("div"), r = y("div"), r.innerHTML = '<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#FFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#FFF" stroke-width="1.5"></circle></svg>', l = N(), s = y("input"), c = N(), g = y("span"), h = ce("svg"), m = ce("path"), d = N(), v && v.c(), M = N(), P = y("div"), W = N(), R.c(), f(r, "class", "SearchIcon"), f(s, "class", "SearchInput"), f(s, "type", "search"), f(s, "placeholder", i = /*$_*/
709
709
  a[21]("placeHolderSearchGames")), f(s, "maxlength", ut), f(m, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8"), f(m, "stroke", "#717171"), f(m, "stroke-width", "2"), f(m, "stroke-linecap", "round"), f(m, "stroke-linejoin", "round"), f(h, "width", "11"), f(h, "height", "11"), f(h, "fill", "none"), f(h, "xmlns", "http://www.w3.org/2000/svg"), f(g, "class", b = "SearchClearButton " + /*cancelbutton*/
710
710
  (a[10] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
711
711
  (a[12].length != 0 ? "" : "NotVisible")), f(n, "class", p = "Search " + /*searchCancelled*/
712
- (a[13] ? "" : "SearchAnimation")), f(t, "class", "SearchWrap"), f(P, "class", x = /*cancelbutton*/
712
+ (a[13] ? "" : "SearchAnimation")), f(t, "class", "SearchWrap"), f(P, "class", A = /*cancelbutton*/
713
713
  a[10] != "true" ? "OverlayCancel" : ""), f(e, "class", (ee(
714
714
  /*userAgent*/
715
715
  a[22]
@@ -763,8 +763,8 @@ function ct(a) {
763
763
  w[10] === "true" ? v ? v.p(w, T) : (v = pe(w), v.c(), v.m(n, null)) : v && (v.d(1), v = null), T[0] & /*searchCancelled*/
764
764
  8192 && p !== (p = "Search " + /*searchCancelled*/
765
765
  (w[13] ? "" : "SearchAnimation")) && f(n, "class", p), T[0] & /*cancelbutton*/
766
- 1024 && x !== (x = /*cancelbutton*/
767
- w[10] != "true" ? "OverlayCancel" : "") && f(P, "class", x), A === (A = E(w)) && R ? R.p(w, T) : (R.d(1), R = A(w), R && (R.c(), R.m(e, null)));
766
+ 1024 && A !== (A = /*cancelbutton*/
767
+ w[10] != "true" ? "OverlayCancel" : "") && f(P, "class", A), x === (x = E(w)) && R ? R.p(w, T) : (R.d(1), R = x(w), R && (R.c(), R.m(e, null)));
768
768
  },
769
769
  i: le,
770
770
  o: le,
@@ -777,7 +777,7 @@ let ut = 50;
777
777
  function ht(a, e, t) {
778
778
  let n;
779
779
  Je(a, et, (o) => t(21, n = o));
780
- let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { mbsource: g } = e, { clientstyling: h = "" } = e, { clientstylingurl: m = "" } = e, { integratedgameframedesktop: b = "false" } = e, { integratedgameframemobile: d = "false" } = e, { showgamename: p = "" } = e, { gamepagemodalurl: M = "true" } = e, { translationurl: P = "" } = e, { showfavorites: x = "" } = e, { cancelbutton: W = "true" } = e, { notfoundicon: O = "false" } = e, U = window.navigator.userAgent, v = [], E = [], A = {}, R = "", w, T = !0, V = !1, z = !1, D, Y = !1, K, Q, te = [];
780
+ let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { mbsource: g } = e, { clientstyling: h = "" } = e, { clientstylingurl: m = "" } = e, { integratedgameframedesktop: b = "false" } = e, { integratedgameframemobile: d = "false" } = e, { showgamename: p = "" } = e, { gamepagemodalurl: M = "true" } = e, { translationurl: P = "" } = e, { showfavorites: A = "" } = e, { cancelbutton: W = "true" } = e, { notfoundicon: O = "false" } = e, U = window.navigator.userAgent, v = [], E = [], x = {}, R = "", w, T = !0, V = !1, z = !1, D, Y = !1, K, Q, te = [];
781
781
  const Ce = () => {
782
782
  fetch(P).then((_) => _.json()).then((_) => {
783
783
  Object.keys(_).forEach((k) => {
@@ -824,8 +824,8 @@ function ht(a, e, t) {
824
824
  t(18, z = !1), console.error(C), k(C);
825
825
  });
826
826
  }), Te = (o, _) => new Promise((k, C) => {
827
- t(18, z = !0), _ && Object.keys(A).indexOf(_) >= 0 ? (t(18, z = !1), k(A[_])) : fetch(o).then((F) => F.json()).then((F) => {
828
- t(18, z = !1), F.error || (A[F[0].gameId] = F[0]), k(F[0]);
827
+ t(18, z = !0), _ && Object.keys(x).indexOf(_) >= 0 ? (t(18, z = !1), k(x[_])) : fetch(o).then((F) => F.json()).then((F) => {
828
+ t(18, z = !1), F.error || (x[F[0].gameId] = F[0]), k(F[0]);
829
829
  }).catch((F) => {
830
830
  t(18, z = !1), console.error(F), C(F);
831
831
  });
@@ -847,8 +847,8 @@ function ht(a, e, t) {
847
847
  let _, k = 99999999999, C;
848
848
  const F = new Date(Date.now());
849
849
  return o.forEach((G, B) => {
850
- const Ae = new Date(G.schedules[0].startTime), $ = new Date(G.schedules[0].endTime);
851
- de(new Date($), new Date(F)) < k && (k = de(new Date($), new Date(F)), C = B), tt(new Date(F), new Date(Ae)) && at(new Date(F), new Date($)) && (_ = o[C].name);
850
+ const xe = new Date(G.schedules[0].startTime), $ = new Date(G.schedules[0].endTime);
851
+ de(new Date($), new Date(F)) < k && (k = de(new Date($), new Date(F)), C = B), tt(new Date(F), new Date(xe)) && at(new Date(F), new Date($)) && (_ = o[C].name);
852
852
  }), _;
853
853
  }, Ee = (o) => {
854
854
  if (E = localStorage.getItem("searchedGamesWds_casino"), E ? E = E.split(",") : E = [], E.indexOf(o) === -1) {
@@ -882,13 +882,13 @@ function ht(a, e, t) {
882
882
  });
883
883
  }
884
884
  const De = () => oe(), Me = () => X();
885
- function xe(o) {
885
+ function Ae(o) {
886
886
  ue[o ? "unshift" : "push"](() => {
887
887
  D = o, t(14, D);
888
888
  });
889
889
  }
890
890
  return a.$$set = (o) => {
891
- "endpoint" in o && t(0, r = o.endpoint), "datasource" in o && t(28, l = o.datasource), "session" in o && t(29, s = o.session), "userid" in o && t(30, i = o.userid), "lang" in o && t(1, c = o.lang), "mbsource" in o && t(2, g = o.mbsource), "clientstyling" in o && t(3, h = o.clientstyling), "clientstylingurl" in o && t(4, m = o.clientstylingurl), "integratedgameframedesktop" in o && t(5, b = o.integratedgameframedesktop), "integratedgameframemobile" in o && t(6, d = o.integratedgameframemobile), "showgamename" in o && t(7, p = o.showgamename), "gamepagemodalurl" in o && t(8, M = o.gamepagemodalurl), "translationurl" in o && t(31, P = o.translationurl), "showfavorites" in o && t(9, x = o.showfavorites), "cancelbutton" in o && t(10, W = o.cancelbutton), "notfoundicon" in o && t(11, O = o.notfoundicon);
891
+ "endpoint" in o && t(0, r = o.endpoint), "datasource" in o && t(28, l = o.datasource), "session" in o && t(29, s = o.session), "userid" in o && t(30, i = o.userid), "lang" in o && t(1, c = o.lang), "mbsource" in o && t(2, g = o.mbsource), "clientstyling" in o && t(3, h = o.clientstyling), "clientstylingurl" in o && t(4, m = o.clientstylingurl), "integratedgameframedesktop" in o && t(5, b = o.integratedgameframedesktop), "integratedgameframemobile" in o && t(6, d = o.integratedgameframemobile), "showgamename" in o && t(7, p = o.showgamename), "gamepagemodalurl" in o && t(8, M = o.gamepagemodalurl), "translationurl" in o && t(31, P = o.translationurl), "showfavorites" in o && t(9, A = o.showfavorites), "cancelbutton" in o && t(10, W = o.cancelbutton), "notfoundicon" in o && t(11, O = o.notfoundicon);
892
892
  }, a.$$.update = () => {
893
893
  if (a.$$.dirty[0] & /*searchValue, endpoint, datasource, lang, searchCancelled*/
894
894
  268447747)
@@ -904,7 +904,7 @@ function ht(a, e, t) {
904
904
  1 && P && Ce(), a.$$.dirty[0] & /*session, userid*/
905
905
  1610612736 && s && i && je(), a.$$.dirty[0] & /*showfavorites*/
906
906
  512 | a.$$.dirty[1] & /*isLoggedIn*/
907
- 2 && x && Y && Ie(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
907
+ 2 && A && Y && Ie(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
908
908
  16392 && h && D && Ke(D, h), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
909
909
  16400 && m && D && Qe(D, m), a.$$.dirty[0] & /*mbsource, customStylingContainer*/
910
910
  16388 && g && D && Xe(D, `${g}.Style`);
@@ -918,7 +918,7 @@ function ht(a, e, t) {
918
918
  d,
919
919
  p,
920
920
  M,
921
- x,
921
+ A,
922
922
  W,
923
923
  O,
924
924
  R,
@@ -946,7 +946,7 @@ function ht(a, e, t) {
946
946
  Pe,
947
947
  De,
948
948
  Me,
949
- xe
949
+ Ae
950
950
  ];
951
951
  }
952
952
  class dt extends qe {
@@ -191,7 +191,7 @@ const ge = {
191
191
  }
192
192
  };
193
193
  function rt(a) {
194
- Ue(a, "svelte-abbrgk", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:10px 10px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;color:var(--emw--color-gray-100, #E6E6E6);border:none;background:var(--emw--color-secondary, #194127);border-radius:var(--emw--border-radius-medium, 10px);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%;transition:3s}.SearchInput::placeholder{color:var(--emw--color-white, #FFF);font-size:16px;font-weight:300}.SearchInput:focus{background:var(--emw--color-primary, #194127);padding-right:28px}.SearchInput:focus-visible{outline-width:0}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:10px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}");
194
+ Ue(a, "svelte-1vt65d9", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:10px 10px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;color:var(--emw--color-gray-100, #E6E6E6);border:none;background:var(--emw--color-secondary, #194127);border-radius:var(--emw--border-radius-medium, 10px);display:block;font-size:16px;font-weight:300;padding:14px 30px 14px 46px;width:100%;transition:3s}.SearchInput::placeholder{color:var(--emw--color-white, #FFF);font-size:16px;font-weight:300}.SearchInput:focus{background:var(--emw--color-primary, #194127)}.SearchInput:focus-visible{outline-width:0}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:10px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}");
195
195
  }
196
196
  function fe(a, e, t) {
197
197
  const n = a.slice();
@@ -700,7 +700,7 @@ function ct(a) {
700
700
  w[18] ? st : ot
701
701
  );
702
702
  }
703
- let x = E(a), R = x(a);
703
+ let A = E(a), R = A(a);
704
704
  return {
705
705
  c() {
706
706
  e = y("div"), t = y("div"), n = y("div"), r = y("div"), r.innerHTML = '<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#FFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#FFF" stroke-width="1.5"></circle></svg>', l = N(), s = y("input"), c = N(), g = y("span"), h = ce("svg"), m = ce("path"), d = N(), v && v.c(), U = N(), P = y("div"), q = N(), R.c(), f(r, "class", "SearchIcon"), f(s, "class", "SearchInput"), f(s, "type", "search"), f(s, "placeholder", i = /*$_*/
@@ -762,7 +762,7 @@ function ct(a) {
762
762
  8192 && p !== (p = "Search " + /*searchCancelled*/
763
763
  (w[13] ? "" : "SearchAnimation")) && f(n, "class", p), T[0] & /*cancelbutton*/
764
764
  1024 && M !== (M = /*cancelbutton*/
765
- w[10] != "true" ? "OverlayCancel" : "") && f(P, "class", M), x === (x = E(w)) && R ? R.p(w, T) : (R.d(1), R = x(w), R && (R.c(), R.m(e, null)));
765
+ w[10] != "true" ? "OverlayCancel" : "") && f(P, "class", M), A === (A = E(w)) && R ? R.p(w, T) : (R.d(1), R = A(w), R && (R.c(), R.m(e, null)));
766
766
  },
767
767
  i: le,
768
768
  o: le,
@@ -775,7 +775,7 @@ let ut = 50;
775
775
  function ht(a, e, t) {
776
776
  let n;
777
777
  Je(a, et, (o) => t(21, n = o));
778
- let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { mbsource: g } = e, { clientstyling: h = "" } = e, { clientstylingurl: m = "" } = e, { integratedgameframedesktop: b = "false" } = e, { integratedgameframemobile: d = "false" } = e, { showgamename: p = "" } = e, { gamepagemodalurl: U = "true" } = e, { translationurl: P = "" } = e, { showfavorites: M = "" } = e, { cancelbutton: q = "true" } = e, { notfoundicon: W = "false" } = e, O = window.navigator.userAgent, v = [], E = [], x = {}, R = "", w, T = !0, V = !1, z = !1, D, Y = !1, K, Q, te = [];
778
+ let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { mbsource: g } = e, { clientstyling: h = "" } = e, { clientstylingurl: m = "" } = e, { integratedgameframedesktop: b = "false" } = e, { integratedgameframemobile: d = "false" } = e, { showgamename: p = "" } = e, { gamepagemodalurl: U = "true" } = e, { translationurl: P = "" } = e, { showfavorites: M = "" } = e, { cancelbutton: q = "true" } = e, { notfoundicon: W = "false" } = e, O = window.navigator.userAgent, v = [], E = [], A = {}, R = "", w, T = !0, V = !1, z = !1, D, Y = !1, K, Q, te = [];
779
779
  const Ce = () => {
780
780
  fetch(P).then((_) => _.json()).then((_) => {
781
781
  Object.keys(_).forEach((k) => {
@@ -802,9 +802,9 @@ function ht(a, e, t) {
802
802
  G.searchParams.append("language", c), G.searchParams.append("datasource", l), G.searchParams.append("platform", ee(O)), k.push(Te(G, _[C]));
803
803
  }
804
804
  Promise.all(k).then((G) => {
805
- G = G.filter(function(A) {
806
- return !!A;
807
- }), t(15, v = G.map((A) => (A.isFavorite = re(A.id), A))), v.length ? J("searchSuccess", "SearchWidget") : J("searchFail", "SearchWidget");
805
+ G = G.filter(function(x) {
806
+ return !!x;
807
+ }), t(15, v = G.map((x) => (x.isFavorite = re(x.id), x))), v.length ? J("searchSuccess", "SearchWidget") : J("searchFail", "SearchWidget");
808
808
  }).catch((G) => {
809
809
  J("searchError", "SearchWidget");
810
810
  });
@@ -822,8 +822,8 @@ function ht(a, e, t) {
822
822
  t(18, z = !1), console.error(C), k(C);
823
823
  });
824
824
  }), Te = (o, _) => new Promise((k, C) => {
825
- t(18, z = !0), _ && Object.keys(x).indexOf(_) >= 0 ? (t(18, z = !1), k(x[_])) : fetch(o).then((F) => F.json()).then((F) => {
826
- t(18, z = !1), F.error || (x[F[0].gameId] = F[0]), k(F[0]);
825
+ t(18, z = !0), _ && Object.keys(A).indexOf(_) >= 0 ? (t(18, z = !1), k(A[_])) : fetch(o).then((F) => F.json()).then((F) => {
826
+ t(18, z = !1), F.error || (A[F[0].gameId] = F[0]), k(F[0]);
827
827
  }).catch((F) => {
828
828
  t(18, z = !1), console.error(F), C(F);
829
829
  });
@@ -844,9 +844,9 @@ function ht(a, e, t) {
844
844
  return "";
845
845
  let _, k = 99999999999, C;
846
846
  const F = new Date(Date.now());
847
- return o.forEach((G, A) => {
848
- const Ae = new Date(G.schedules[0].startTime), $ = new Date(G.schedules[0].endTime);
849
- de(new Date($), new Date(F)) < k && (k = de(new Date($), new Date(F)), C = A), tt(new Date(F), new Date(Ae)) && at(new Date(F), new Date($)) && (_ = o[C].name);
847
+ return o.forEach((G, x) => {
848
+ const xe = new Date(G.schedules[0].startTime), $ = new Date(G.schedules[0].endTime);
849
+ de(new Date($), new Date(F)) < k && (k = de(new Date($), new Date(F)), C = x), tt(new Date(F), new Date(xe)) && at(new Date(F), new Date($)) && (_ = o[C].name);
850
850
  }), _;
851
851
  }, Ee = (o) => {
852
852
  if (E = localStorage.getItem("searchedGamesWds_casino"), E ? E = E.split(",") : E = [], E.indexOf(o) === -1) {
@@ -880,7 +880,7 @@ function ht(a, e, t) {
880
880
  });
881
881
  }
882
882
  const De = () => oe(), Me = () => X();
883
- function xe(o) {
883
+ function Ae(o) {
884
884
  ue[o ? "unshift" : "push"](() => {
885
885
  D = o, t(14, D);
886
886
  });
@@ -944,7 +944,7 @@ function ht(a, e, t) {
944
944
  Pe,
945
945
  De,
946
946
  Me,
947
- xe
947
+ Ae
948
948
  ];
949
949
  }
950
950
  class dt extends qe {
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-BEFWuyZL.cjs");require("./CasinoGamesCategorySectionNd-COgh4Qnu.cjs");const W=require("./CasinoGameThumbnailNd-Cl4NaQ7h.cjs");function X(n,t){e.addMessages(n,t)}function Re(n){e.$locale.set(n)}const Q={en:{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"zh-hk":{recentSearch:"最近的搜索",loading:"加载请稍候",searchResult:"搜索结果",cancel:"取消",notFound:"找不到游戏!",notFoundText:"请输入正确的游戏名称开始玩。",noRecentSearches:"还没有最近的搜索。 搜索我们的任何游戏。"},de:{recentSearch:"Letzte Suche",placeHolderSearchGames:"Hier nach Spielen suchen",loading:"Es lädt, bitte warten...",searchResult:"Ergebnis suchen",cancel:"Abbrechen",notFound:"Spiel wurde nicht gefunden!",notFoundText:"Spiel nicht gefunden! Bitte verwende den richtigen Spielnamen um es zu starten.",noRecentSearches:"Keine vorherige Suche vorhanden! Suche nach einem beliebigen Spiel"},it:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},fr:{recentSearch:"Recherche récente",placeHolderSearchGames:"Recherche de jeux de casino",loading:"Chargement, veuillez patienter",searchResult:"Résultat de la recherche",cancel:"Annuler",notFound:"Jeu non trouvé!",notFoundText:"Veuillez saisir le nom correct du jeu pour commencer à jouer.",noRecentSearches:"Pas encore de recherches récentes. Recherchez l'un de nos jeux."},es:{recentSearch:"Busqueda reciente",placeHolderSearchGames:"Buscar juegos",loading:"Cargando",searchResult:"Resultado de busqueda",cancel:"Cancelar",notFound:"Juego no encontrado!",notFoundText:"Por favor escriba el nombre correcto del juego para empezar a jugar.",noRecentSearches:"No hay búsquedas recientes. Busca cualquiera de nuestros juegos"},gr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},tr:{recentSearch:"Henüz son aramalar yok. Herhangi bir oyunu arayın.",loading:"Kayıt olmak",searchResult:"PARA YATIR",cancel:"İptal:",notFound:"Hepsi",notFoundText:"A-Z",noRecentSearches:"En Yeni",placeHolderSearchGames:"Oyun ara ..."},ru:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play."},ro:{recentSearch:"Cautari recente",loading:"Se incarca, te rugam asteapta…",searchResult:"Rezultat cautare",cancel:"Anuleaza",notFound:"Nu am gasit niciun rezultat!",notFoundText:"Te rugam sa introduci corect numele jocului.",noRecentSearches:"Nu sunt cautari recente. Cauta oricare din jocurile noastre.",placeHolderSearchGames:"Căutați Jocuri"},hr:{recentSearch:"Nedavna pretraga",loading:"Učitavanje",searchResult:"Rezultat pretrage",cancel:"Otkaži",notFound:"Igra nije pronađena!",notFoundText:"Molimo upišite točan naziv igre kako biste započeli igrati.",noRecentSearches:"Još nema nedavnih pretraživanja. Potražite bilo koju od naših igara.",placeHolderSearchGames:"Traži igre"},hu:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pt:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",placeHolderSearchGames:"Pesquisar jogos",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"es-mx":{recentSearch:"Búsqueda reciente",loading:"Cargando, por favor espera",searchResult:"Resultado de la búsqueda",placeHolderSearchGames:"Buscar juegos",cancel:"Cancelar",notFound:"¡Juego no encontrado!",notFoundText:"Por favor, escribe el nombre correcto del juego para comenzar a jugar.",noRecentSearches:"Aún no hay búsquedas recientes. Busca cualquiera de nuestros juegos."},"pt-br":{recentSearch:"Pesquisa recente",loading:"Carregando, por favor aguarde",searchResult:"Resultado da pesquisa",placeHolderSearchGames:"Buscar jogos",cancel:"Cancelar",notFound:"Jogo não encontrado!",notFoundText:"Por favor, digite o nome correto do jogo para começar a jogar.",noRecentSearches:"Ainda não há pesquisas recentes. Busque por qualquer um dos nossos jogos."},"en-us":{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}};function Ce(n){e.append_styles(n,"svelte-1vt65d9","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:10px 10px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;color:var(--emw--color-gray-100, #E6E6E6);border:none;background:var(--emw--color-secondary, #194127);border-radius:var(--emw--border-radius-medium, 10px);display:block;font-size:16px;font-weight:300;padding:14px 30px 14px 46px;width:100%;transition:3s}.SearchInput::placeholder{color:var(--emw--color-white, #FFF);font-size:16px;font-weight:300}.SearchInput:focus{background:var(--emw--color-primary, #194127)}.SearchInput:focus-visible{outline-width:0}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:10px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}")}function $(n,t,a){const r=n.slice();return r[53]=t[a],r}function ee(n){let t,a=n[21]("cancel")+"",r,s,i,l;return{c(){t=e.element("small"),r=e.text(a),e.attr(t,"class",s="SearchCancelButton "+(n[13]?"NotVisible":""))},m(c,u){e.insert(c,t,u),e.append(t,r),i||(l=e.listen(t,"click",n[36]),i=!0)},p(c,u){u[0]&2097152&&a!==(a=c[21]("cancel")+"")&&e.set_data(r,a),u[0]&8192&&s!==(s="SearchCancelButton "+(c[13]?"NotVisible":""))&&e.attr(t,"class",s)},d(c){c&&e.detach(t),i=!1,l()}}}function Fe(n){let t,a,r,s;function i(d,m){if(d[17]==!0&&d[12].length<2)return Ie;if(d[15].length!=0)return Te}let l=i(n),c=l&&l(n),u=n[13]===!1&&re(n),f=n[12].length>=2&&n[15].length==0&&oe(n);return{c(){c&&c.c(),t=e.space(),a=e.element("div"),u&&u.c(),r=e.space(),f&&f.c(),e.attr(a,"class",s="SearchResultsContainer "+(n[17]==!0?"":"NotVisible"))},m(d,m){c&&c.m(d,m),e.insert(d,t,m),e.insert(d,a,m),u&&u.m(a,null),e.append(a,r),f&&f.m(a,null)},p(d,m){l===(l=i(d))&&c?c.p(d,m):(c&&c.d(1),c=l&&l(d),c&&(c.c(),c.m(t.parentNode,t))),d[13]===!1?u?u.p(d,m):(u=re(d),u.c(),u.m(a,r)):u&&(u.d(1),u=null),d[12].length>=2&&d[15].length==0?f?f.p(d,m):(f=oe(d),f.c(),f.m(a,null)):f&&(f.d(1),f=null),m[0]&131072&&s!==(s="SearchResultsContainer "+(d[17]==!0?"":"NotVisible"))&&e.attr(a,"class",s)},d(d){d&&(e.detach(t),e.detach(a)),c&&c.d(d),u&&u.d(),f&&f.d()}}}function Le(n){let t,a=n[21]("loading")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","LoadingContent")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("loading")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function Te(n){let t,a=n[21]("searchResult")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","SearchMessage")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("searchResult")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function Ie(n){let t,a,r=n[15].length!==0&&te(n),s=n[15].length==0&&ae(n);return{c(){r&&r.c(),t=e.space(),s&&s.c(),a=e.empty()},m(i,l){r&&r.m(i,l),e.insert(i,t,l),s&&s.m(i,l),e.insert(i,a,l)},p(i,l){i[15].length!==0?r?r.p(i,l):(r=te(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),i[15].length==0?s?s.p(i,l):(s=ae(i),s.c(),s.m(a.parentNode,a)):s&&(s.d(1),s=null)},d(i){i&&(e.detach(t),e.detach(a)),r&&r.d(i),s&&s.d(i)}}}function te(n){let t,a=n[21]("recentSearch")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","SearchMessage")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("recentSearch")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function ae(n){let t,a,r,s=n[21]("noRecentSearches")+"",i,l,c=n[11]==="true"&&ne();return{c(){t=e.element("div"),c&&c.c(),a=e.space(),r=e.element("p"),i=e.text(s),e.attr(r,"class","SearchMessage"),e.attr(t,"class",l="ResultsContainerError "+(n[11]=="true"?"WithIcon":""))},m(u,f){e.insert(u,t,f),c&&c.m(t,null),e.append(t,a),e.append(t,r),e.append(r,i)},p(u,f){u[11]==="true"?c||(c=ne(),c.c(),c.m(t,a)):c&&(c.d(1),c=null),f[0]&2097152&&s!==(s=u[21]("noRecentSearches")+"")&&e.set_data(i,s),f[0]&2048&&l!==(l="ResultsContainerError "+(u[11]=="true"?"WithIcon":""))&&e.attr(t,"class",l)},d(u){u&&e.detach(t),c&&c.d()}}}function ne(n){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(a,r){e.insert(a,t,r)},d(a){a&&e.detach(t)}}}function re(n){let t,a=e.ensure_array_like(n[15]),r=[];for(let s=0;s<a.length;s+=1)r[s]=se($(n,a,s));return{c(){for(let s=0;s<r.length;s+=1)r[s].c();t=e.empty()},m(s,i){for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(s,i);e.insert(s,t,i)},p(s,i){if(i[0]&35161087){a=e.ensure_array_like(s[15]);let l;for(l=0;l<a.length;l+=1){const c=$(s,a,l);r[l]?r[l].p(c,i):(r[l]=se(c),r[l].c(),r[l].m(t.parentNode,t))}for(;l<r.length;l+=1)r[l].d(1);r.length=a.length}},d(s){s&&e.detach(t),e.destroy_each(r,s)}}}function se(n){let t,a,r,s,i,l,c,u,f,d,m,S;return{c(){var h;t=e.element("casino-game-thumbnail-nd"),e.set_custom_element_data(t,"endpoint",n[0]),e.set_custom_element_data(t,"session",n[19]),e.set_custom_element_data(t,"userid",n[20]),e.set_custom_element_data(t,"favorites",n[9]),e.set_custom_element_data(t,"lang",n[1]),e.set_custom_element_data(t,"gamethumbnail",a=n[53].thumbnail),e.set_custom_element_data(t,"gamename",r=n[53].name),e.set_custom_element_data(t,"gamevendor",s=n[53].vendor.name),e.set_custom_element_data(t,"gameLaunchUrl",i=n[53].launchUrl),e.set_custom_element_data(t,"gameisnew",l=n[53].isNew),e.set_custom_element_data(t,"gametag",c=((h=n[53].advancedTags)==null?void 0:h.length)>0&&n[25](n[53].advancedTags)),e.set_custom_element_data(t,"gamecellsize",u=n[53].cellSize),e.set_custom_element_data(t,"gameid",f=n[53].id),e.set_custom_element_data(t,"showgamename",n[7]),e.set_custom_element_data(t,"gamefunmode",d=n[53].hasFunMode),e.set_custom_element_data(t,"gamefavorite",m=n[53].isFavorite),e.set_custom_element_data(t,"livelobbyendpoint",S=n[53].details?n[53].launchUrl:""),e.set_custom_element_data(t,"integratedgameframedesktop",n[5]),e.set_custom_element_data(t,"integratedgameframemobile",n[6]),e.set_custom_element_data(t,"clientstyling",n[3]),e.set_custom_element_data(t,"clientstylingurl",n[4]),e.set_custom_element_data(t,"gamepagemodalurl",n[8]),e.set_custom_element_data(t,"mbsource",n[2])},m(h,g){e.insert(h,t,g)},p(h,g){var j;g[0]&1&&e.set_custom_element_data(t,"endpoint",h[0]),g[0]&524288&&e.set_custom_element_data(t,"session",h[19]),g[0]&1048576&&e.set_custom_element_data(t,"userid",h[20]),g[0]&512&&e.set_custom_element_data(t,"favorites",h[9]),g[0]&2&&e.set_custom_element_data(t,"lang",h[1]),g[0]&32768&&a!==(a=h[53].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",a),g[0]&32768&&r!==(r=h[53].name)&&e.set_custom_element_data(t,"gamename",r),g[0]&32768&&s!==(s=h[53].vendor.name)&&e.set_custom_element_data(t,"gamevendor",s),g[0]&32768&&i!==(i=h[53].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",i),g[0]&32768&&l!==(l=h[53].isNew)&&e.set_custom_element_data(t,"gameisnew",l),g[0]&32768&&c!==(c=((j=h[53].advancedTags)==null?void 0:j.length)>0&&h[25](h[53].advancedTags))&&e.set_custom_element_data(t,"gametag",c),g[0]&32768&&u!==(u=h[53].cellSize)&&e.set_custom_element_data(t,"gamecellsize",u),g[0]&32768&&f!==(f=h[53].id)&&e.set_custom_element_data(t,"gameid",f),g[0]&128&&e.set_custom_element_data(t,"showgamename",h[7]),g[0]&32768&&d!==(d=h[53].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",d),g[0]&32768&&m!==(m=h[53].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",m),g[0]&32768&&S!==(S=h[53].details?h[53].launchUrl:"")&&e.set_custom_element_data(t,"livelobbyendpoint",S),g[0]&32&&e.set_custom_element_data(t,"integratedgameframedesktop",h[5]),g[0]&64&&e.set_custom_element_data(t,"integratedgameframemobile",h[6]),g[0]&8&&e.set_custom_element_data(t,"clientstyling",h[3]),g[0]&16&&e.set_custom_element_data(t,"clientstylingurl",h[4]),g[0]&256&&e.set_custom_element_data(t,"gamepagemodalurl",h[8]),g[0]&4&&e.set_custom_element_data(t,"mbsource",h[2])},d(h){h&&e.detach(t)}}}function oe(n){let t,a,r,s=n[21]("notFound")+"",i,l,c,u=n[21]("notFoundText")+"",f,d,m=n[11]==="true"&&le();return{c(){t=e.element("div"),m&&m.c(),a=e.space(),r=e.element("p"),i=e.text(s),l=e.space(),c=e.element("p"),f=e.text(u),e.attr(r,"class","SearchMessage"),e.attr(t,"class",d="ResultsContainerError "+(n[11]=="true"?"WithIcon":""))},m(S,h){e.insert(S,t,h),m&&m.m(t,null),e.append(t,a),e.append(t,r),e.append(r,i),e.append(t,l),e.append(t,c),e.append(c,f)},p(S,h){S[11]==="true"?m||(m=le(),m.c(),m.m(t,a)):m&&(m.d(1),m=null),h[0]&2097152&&s!==(s=S[21]("notFound")+"")&&e.set_data(i,s),h[0]&2097152&&u!==(u=S[21]("notFoundText")+"")&&e.set_data(f,u),h[0]&2048&&d!==(d="ResultsContainerError "+(S[11]=="true"?"WithIcon":""))&&e.attr(t,"class",d)},d(S){S&&e.detach(t),m&&m.d()}}}function le(n){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(a,r){e.insert(a,t,r)},d(a){a&&e.detach(t)}}}function je(n){let t,a,r,s,i,l,c,u,f,d,m,S,h,g,j,T,G,N,P,D,w=n[10]==="true"&&ee(n);function F(_,R){return _[18]?Le:Fe}let E=F(n),v=E(n);return{c(){t=e.element("div"),a=e.element("div"),r=e.element("div"),s=e.element("div"),s.innerHTML='<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#FFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#FFF" stroke-width="1.5"></circle></svg>',i=e.space(),l=e.element("input"),u=e.space(),f=e.element("span"),d=e.svg_element("svg"),m=e.svg_element("path"),h=e.space(),w&&w.c(),j=e.space(),T=e.element("div"),N=e.space(),v.c(),e.attr(s,"class","SearchIcon"),e.attr(l,"class","SearchInput"),e.attr(l,"type","search"),e.attr(l,"placeholder",c=n[21]("placeHolderSearchGames")),e.attr(l,"maxlength",Ge),e.attr(m,"d","m1.45 1.5 8.1 8M1.45 9.5l8.1-8"),e.attr(m,"stroke","#717171"),e.attr(m,"stroke-width","2"),e.attr(m,"stroke-linecap","round"),e.attr(m,"stroke-linejoin","round"),e.attr(d,"width","11"),e.attr(d,"height","11"),e.attr(d,"fill","none"),e.attr(d,"xmlns","http://www.w3.org/2000/svg"),e.attr(f,"class",S="SearchClearButton "+(n[10]!="true"?"WithoutCancel":"")+" "+(n[12].length!=0?"":"NotVisible")),e.attr(r,"class",g="Search "+(n[13]?"":"SearchAnimation")),e.attr(a,"class","SearchWrap"),e.attr(T,"class",G=n[10]!="true"?"OverlayCancel":""),e.attr(t,"class",(e.getDevice(n[22])!=="PC"?"":"Desktop")+" CasinoSearch")},m(_,R){e.insert(_,t,R),e.append(t,a),e.append(a,r),e.append(r,s),e.append(r,i),e.append(r,l),e.set_input_value(l,n[12]),n[34](l),e.append(r,u),e.append(r,f),e.append(f,d),e.append(d,m),e.append(r,h),w&&w.m(r,null),e.append(t,j),e.append(t,T),e.append(t,N),v.m(t,null),n[37](t),P||(D=[e.listen(l,"input",n[33]),e.listen(l,"focus",n[23]),e.listen(f,"click",n[35]),e.listen(T,"click",n[24])],P=!0)},p(_,R){R[0]&2097152&&c!==(c=_[21]("placeHolderSearchGames"))&&e.attr(l,"placeholder",c),R[0]&4096&&l.value!==_[12]&&e.set_input_value(l,_[12]),R[0]&5120&&S!==(S="SearchClearButton "+(_[10]!="true"?"WithoutCancel":"")+" "+(_[12].length!=0?"":"NotVisible"))&&e.attr(f,"class",S),_[10]==="true"?w?w.p(_,R):(w=ee(_),w.c(),w.m(r,null)):w&&(w.d(1),w=null),R[0]&8192&&g!==(g="Search "+(_[13]?"":"SearchAnimation"))&&e.attr(r,"class",g),R[0]&1024&&G!==(G=_[10]!="true"?"OverlayCancel":"")&&e.attr(T,"class",G),E===(E=F(_))&&v?v.p(_,R):(v.d(1),v=E(_),v&&(v.c(),v.m(t,null)))},i:e.noop,o:e.noop,d(_){_&&e.detach(t),n[34](null),w&&w.d(),v.d(),n[37](null),P=!1,e.run_all(D)}}}let Ge=50;function Ee(n,t,a){let r;e.component_subscribe(n,e.$format,o=>a(21,r=o));let{endpoint:s=""}=t,{datasource:i=""}=t,{session:l=""}=t,{userid:c=""}=t,{lang:u="en"}=t,{mbsource:f}=t,{clientstyling:d=""}=t,{clientstylingurl:m=""}=t,{integratedgameframedesktop:S="false"}=t,{integratedgameframemobile:h="false"}=t,{showgamename:g=""}=t,{gamepagemodalurl:j="true"}=t,{translationurl:T=""}=t,{showfavorites:G=""}=t,{cancelbutton:N="true"}=t,{notfoundicon:P="false"}=t,D=window.navigator.userAgent,w=[],F=[],E={},v="",_,R=!0,x=!1,L=!1,I,A=!1,q,B,U=[];const ce=()=>{fetch(T).then(p=>p.json()).then(p=>{Object.keys(p).forEach(b=>{X(b,p[b])})}).catch(p=>{console.log(p)})};Object.keys(Q).forEach(o=>{X(o,Q[o])});const V=o=>{o.data&&o.data.type=="SearchedItemClicked"&&pe(o.data.gameId),o.data.type=="UserSessionID"&&(a(19,q=o.data.session),a(20,B=o.data.userid),a(32,A=!0)),o.data.type=="CategoryChange"&&H()},J=()=>{if(a(13,R=!1),a(17,x=!0),s&&i&&u&&v.length<2){a(15,w=[]);let o=localStorage.getItem("searchedGamesWds_casino"),p=[];o&&(p=o.split(","));let b=[],k=0,y=p.length;if(y>0){for(k=0;k<y;k++){let C=new URL(`${s}/v1/casino/games/${p[k]}`);C.searchParams.append("language",u),C.searchParams.append("datasource",i),C.searchParams.append("platform",e.getDevice(D)),b.push(he(C,p[k]))}Promise.all(b).then(C=>{C=C.filter(function(z){return!!z}),a(15,w=C.map(z=>(z.isFavorite=Z(z.id),z))),w.length?M("searchSuccess","SearchWidget"):M("searchFail","SearchWidget")}).catch(C=>{M("searchError","SearchWidget")})}}K(x),M("searchAttempt","SearchWidget"),M("SearchInitialized","SearchWidget")},M=(o,p)=>{typeof gtag=="function"&&gtag("event",o,{context:p})},ue=()=>{N!="true"&&H()},de=o=>new Promise((p,b)=>{a(18,L=!0),fetch(o.href).then(k=>k.json()).then(k=>{a(18,L=!1),p(k)}).catch(k=>{a(18,L=!1),console.error(k),b(k)})}),he=(o,p)=>new Promise((b,k)=>{a(18,L=!0),p&&Object.keys(E).indexOf(p)>=0?(a(18,L=!1),b(E[p])):fetch(o).then(y=>y.json()).then(y=>{a(18,L=!1),y.error||(E[y[0].gameId]=y[0]),b(y[0])}).catch(y=>{a(18,L=!1),console.error(y),k(y)})}),me=()=>{const o=new URL(`${s}/v1/player/${B}/favorites/`);a(18,L=!0);let p={method:"GET",headers:{"X-SessionID":q}};fetch(o.href,p).then(b=>b.json()).then(b=>{a(18,L=!1),U=b.items.map(k=>k.id)})},fe=()=>{a(32,A=!0),a(19,q=l),a(20,B=c)},Z=o=>U.findIndex(p=>p==o)!==-1,ge=o=>{if((o==null?void 0:o.length)===0)return"";let p,b=99999999999,k;const y=new Date(Date.now());return o.forEach((C,z)=>{const ye=new Date(C.schedules[0].startTime),O=new Date(C.schedules[0].endTime);W.differenceInMilliseconds(new Date(O),new Date(y))<b&&(b=W.differenceInMilliseconds(new Date(O),new Date(y)),k=z),W.isAfter(new Date(y),new Date(ye))&&W.isBefore(new Date(y),new Date(O))&&(p=o[k].name)}),p},pe=o=>{if(F=localStorage.getItem("searchedGamesWds_casino"),F?F=F.split(","):F=[],F.indexOf(o)===-1){let p;F.unshift(o),p=F.join(","),localStorage.setItem("searchedGamesWds_casino",p)}},H=()=>{a(12,v=""),a(13,R=!0),a(18,L=!1),a(15,w=[]),a(17,x=!1),K(x)},Y=()=>{a(12,v=""),_.focus()},K=o=>{window.postMessage({type:o===!0?"searchActive":"searchCancelled",searchStatus:o},window.location.href)},_e=()=>{Re(u)};e.onMount(()=>(window.addEventListener("message",V,!1),()=>{window.removeEventListener("message",V)}));function Se(){v=this.value,a(12,v)}function we(o){e.binding_callbacks[o?"unshift":"push"](()=>{_=o,a(16,_)})}const be=()=>Y(),ve=()=>H();function ke(o){e.binding_callbacks[o?"unshift":"push"](()=>{I=o,a(14,I)})}return n.$$set=o=>{"endpoint"in o&&a(0,s=o.endpoint),"datasource"in o&&a(28,i=o.datasource),"session"in o&&a(29,l=o.session),"userid"in o&&a(30,c=o.userid),"lang"in o&&a(1,u=o.lang),"mbsource"in o&&a(2,f=o.mbsource),"clientstyling"in o&&a(3,d=o.clientstyling),"clientstylingurl"in o&&a(4,m=o.clientstylingurl),"integratedgameframedesktop"in o&&a(5,S=o.integratedgameframedesktop),"integratedgameframemobile"in o&&a(6,h=o.integratedgameframemobile),"showgamename"in o&&a(7,g=o.showgamename),"gamepagemodalurl"in o&&a(8,j=o.gamepagemodalurl),"translationurl"in o&&a(31,T=o.translationurl),"showfavorites"in o&&a(9,G=o.showfavorites),"cancelbutton"in o&&a(10,N=o.cancelbutton),"notfoundicon"in o&&a(11,P=o.notfoundicon)},n.$$.update=()=>{if(n.$$.dirty[0]&268447747)if(v.length>=2){const o=new URL(`${s}/v1/casino/games`);o.searchParams.append("datasource",i),o.searchParams.append("expand","vendor"),o.searchParams.append("platform",e.getDevice(D)),o.searchParams.append("language",u),o.searchParams.append("pagination","offset=0,limit=30"),o.searchParams.append("filter",`name=${v}`),de(o).then(p=>{a(15,w=p.items.map(b=>(b.isFavorite=Z(b.id),b)))})}else R||J();n.$$.dirty[0]&2&&u&&_e(),n.$$.dirty[1]&1&&T&&ce(),n.$$.dirty[0]&1610612736&&l&&c&&fe(),n.$$.dirty[0]&512|n.$$.dirty[1]&2&&G&&A&&me(),n.$$.dirty[0]&16392&&d&&I&&e.setClientStyling(I,d),n.$$.dirty[0]&16400&&m&&I&&e.setClientStylingURL(I,m),n.$$.dirty[0]&16388&&f&&I&&e.setStreamStyling(I,`${f}.Style`)},[s,u,f,d,m,S,h,g,j,G,N,P,v,R,I,w,_,x,L,q,B,r,D,J,ue,ge,H,Y,i,l,c,T,A,Se,we,be,ve,ke]}class ie extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ee,je,e.safe_not_equal,{endpoint:0,datasource:28,session:29,userid:30,lang:1,mbsource:2,clientstyling:3,clientstylingurl:4,integratedgameframedesktop:5,integratedgameframemobile:6,showgamename:7,gamepagemodalurl:8,translationurl:31,showfavorites:9,cancelbutton:10,notfoundicon:11},Ce,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[28]}set datasource(t){this.$$set({datasource:t}),e.flush()}get session(){return this.$$.ctx[29]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[30]}set userid(t){this.$$set({userid:t}),e.flush()}get lang(){return this.$$.ctx[1]}set lang(t){this.$$set({lang:t}),e.flush()}get mbsource(){return this.$$.ctx[2]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get integratedgameframedesktop(){return this.$$.ctx[5]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),e.flush()}get integratedgameframemobile(){return this.$$.ctx[6]}set integratedgameframemobile(t){this.$$set({integratedgameframemobile:t}),e.flush()}get showgamename(){return this.$$.ctx[7]}set showgamename(t){this.$$set({showgamename:t}),e.flush()}get gamepagemodalurl(){return this.$$.ctx[8]}set gamepagemodalurl(t){this.$$set({gamepagemodalurl:t}),e.flush()}get translationurl(){return this.$$.ctx[31]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get showfavorites(){return this.$$.ctx[9]}set showfavorites(t){this.$$set({showfavorites:t}),e.flush()}get cancelbutton(){return this.$$.ctx[10]}set cancelbutton(t){this.$$set({cancelbutton:t}),e.flush()}get notfoundicon(){return this.$$.ctx[11]}set notfoundicon(t){this.$$set({notfoundicon:t}),e.flush()}}e.create_custom_element(ie,{endpoint:{},datasource:{},session:{},userid:{},lang:{},mbsource:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{}},[],[],!0);exports.default=ie;
@@ -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/CasinoPageNd-DYLc2wzF.cjs")).then(({default:t})=>{!customElements.get("casino-page-nd")&&customElements.define("casino-page-nd",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/CasinoPageNd-umglmqrx.cjs")).then(({default:t})=>{!customElements.get("casino-page-nd")&&customElements.define("casino-page-nd",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CasinoPageNd-EENTPGFE.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoPageNd-CrUhpigc.js").then(({ default: t }) => {
14
14
  !customElements.get("casino-page-nd") && customElements.define("casino-page-nd", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { C as s } from "../components/CasinoPageNd-CVDxnfKP.js";
1
+ import { C as s } from "../components/CasinoPageNd-BPY8qdmT.js";
2
2
  function a(t) {
3
3
  return function(...n) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-page-nd",
3
- "version": "1.72.1",
3
+ "version": "1.73.0",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-page-nd.cjs",
6
6
  "module": "esnext/casino-page-nd.js",
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-BEFWuyZL.cjs");require("../stencil/ui-image-eY8BEG3a.cjs");function ge(l,t){e.addMessages(l,t)}function je(l){e.$locale.set(l)}const _e={en:{loadingText:"Loading, please wait..."},"zh-hk":{loadingText:"加载请稍候 ..."},fr:{loadingText:"Chargement, veuillez patienter..."},ro:{loadingText:"Se incarca, va rugam asteptati..."},es:{loadingText:"Cargando"},pt:{loadingText:"Carregando, por favor espere..."},de:{loadingText:"Laden, bitte warten..."},hr:{loadingText:"Učitavanje"},"pt-br":{CarregandoText:"Carregando"},"es-mx":{CargandoText:"Cargando, por favor espere…"},tr:{loadingText:"Yükleniyor, lütfen bekleyin..."},"en-us":{loadingText:"Loading, please wait..."}};function Se(l){e.append_styles(l,"svelte-w5pa6u",':host{font-family:"Roboto", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";color:#fff}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.mainWrapper{padding:33px 3vw;background-repeat:no-repeat !important;background-size:cover !important;border-radius:7px;display:grid;grid-gap:0.5rem;z-index:0}.vendorLogo{grid-area:vendorLogo;height:44px;width:auto;min-width:130px;background-repeat:no-repeat;background-position:right center}.displayCard{position:relative;background:#1c2136;height:max(0.5vw, 1rem);padding:10px 20px 10px 24px;margin:0 8px;box-sizing:content-box;border-radius:7px;display:flex;justify-content:center;align-items:center;border:1px solid #ffc052}.displayCard .iconWrapper{width:44px;height:44px;position:absolute;left:-24px;display:flex;flex-direction:column;justify-content:flex-start;align-items:center}.displayCard .displayCardIcon{height:100%;width:auto}.displayCard .cardLabel{font-size:0.8rem;font-style:italic}.displayCard .cardTextWrapper{display:flex;justify-content:center;flex-wrap:nowrap;align-items:flex-end}.title{grid-area:title;display:flex;align-items:center}.title ui-image img{height:50px}.displayContainer{grid-area:displayArea;padding:0 0 0 20px;display:flex;gap:40px;justify-content:space-between;align-items:center}.displayContainer .jackpotValue{font-size:1.2rem;font-weight:400;display:flex;align-items:flex-end}.displayContainer .jackpot-currency{font-weight:400;font-style:italic;font-size:8px;padding-left:2px;display:flex;align-items:flex-end}.pairWrapper{width:100%;padding-left:4%;display:flex;justify-content:flex-start;gap:30px}.typeSpread{grid-template-columns:1fr 2.5fr 1fr;grid-template-areas:"title displayArea vendorLogo";align-items:center}.typeSpread.mobile{grid-template-areas:"title" "vendorLogo" "displayArea";margin-top:25px}.typeSpread .pairWrapper{justify-content:center}.typeSpread .vendorLogo{justify-content:flex-end}.typeSpread .title{justify-content:flex-start}.typeSpread .displayContainer{justify-content:space-evenly}.typeLeft{grid-template-columns:1fr 4fr;grid-template-areas:"title displayArea" "vendorLogo displayArea";padding:44px 33px}.typeLeft.mobile{grid-template-areas:"title" "vendorLogo" "displayArea";padding:33px}.typeLeft.mobile .displayContainer{margin-top:50px;gap:2.6rem}.typeLeft .displayContainer{padding-left:2rem;width:auto;gap:2rem}.typeLeft .pairWrapper{justify-content:space-evenly}.typeLeft .title{align-items:flex-end}.typeLeft .vendorLogo{height:44px;width:auto}.mobile{grid-template-columns:1fr;grid-gap:1rem}.mobile .title{justify-content:center;align-items:center}.mobile .title ui-image img{height:80px}.mobile .displayContainer{padding-left:26px;flex-direction:column;flex-wrap:nowrap;justify-content:center;align-items:center}.mobile .vendorLogo{justify-content:center;align-items:center}.mobile .displayCard{width:40vw}.tablet .displayContainer{flex-wrap:wrap}.DisplayNone{display:none}.loadingPrompt{color:#333}.LoadingSpinner{display:block;width:80px;height:80px;margin:0 auto}.LoadingSpinner:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--color-primary, #22B04E);border-color:var(--emw--color-primary, #22B04E) transparent var(--emw--color-primary, #22B04E) transparent;animation:LoadingSpinner 1.2s linear infinite}@keyframes LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function he(l,t,a){const n=l.slice();return n[55]=t[a],n[57]=a,n}function Te(l){let t,a,n,r,u,c,h,C,y,b,f,k,j;function v(m,s){return m[7]?Ae:Ie}let S=v(l),p=S(l);return{c(){t=e.element("div"),a=e.element("div"),n=e.element("div"),r=e.element("div"),u=e.space(),c=e.element("div"),p.c(),h=e.space(),C=e.element("div"),y=e.element("ui-image"),e.attr(r,"class","vendorLogo"),e.set_style(r,"background-image","url("+l[8]+")"),e.attr(c,"class","displayContainer"),e.src_url_equal(y.src,b=l[13])||e.set_custom_element_data(y,"src",b),e.set_custom_element_data(y,"alt",""),e.attr(C,"class","title"),e.attr(n,"class",f="mainWrapper "+l[0]+" "+(l[6]&&!l[7]?"mobile":l[7]?"tablet":"")),e.set_style(n,"background","url("+l[12]+")"),e.attr(a,"class","jackpotBanner"),e.attr(t,"class","")},m(m,s){e.insert(m,t,s),e.append(t,a),e.append(a,n),e.append(n,r),e.append(n,u),e.append(n,c),p.m(c,null),e.append(n,h),e.append(n,C),e.append(C,y),k||(j=e.listen(a,"click",l[34]),k=!0)},p(m,s){s[0]&256&&e.set_style(r,"background-image","url("+m[8]+")"),S===(S=v(m))&&p?p.p(m,s):(p.d(1),p=S(m),p&&(p.c(),p.m(c,null))),s[0]&8192&&!e.src_url_equal(y.src,b=m[13])&&e.set_custom_element_data(y,"src",b),s[0]&193&&f!==(f="mainWrapper "+m[0]+" "+(m[6]&&!m[7]?"mobile":m[7]?"tablet":""))&&e.attr(n,"class",f),s[0]&4096&&e.set_style(n,"background","url("+m[12]+")")},d(m){m&&e.detach(t),p.d(),k=!1,j()}}}function xe(l){let t;return{c(){t=e.element("div"),e.attr(t,"class","LoadingSpinner")},m(a,n){e.insert(a,t,n)},p:e.noop,d(a){a&&e.detach(t)}}}function We(l){let t;return{c(){t=e.element("p"),t.textContent="500 Server error"},m(a,n){e.insert(a,t,n)},p:e.noop,d(a){a&&e.detach(t)}}}function Ae(l){let t,a,n,r,u,c,h,C=l[10][0]+"",y,b,f,k,j=(l[2]==="true"?l[15][0]:l[9][0])+"",v,S,p,m,s,g,E,D,J,Q=l[10][1]+"",H,X,V,M,N=(l[2]==="true"?l[15][1]:l[9][1])+"",Z,ie,$,z,U,L,I,G,ee,q,R=l[10][2]+"",re,te,O,ae,ne=(l[2]==="true"?l[15][2]:l[9][2])+"",se,pe,ce,F,P,B,Y,ue,K,le=l[10][3]+"",oe,me,i,d,w=(l[2]==="true"?l[15][3]:l[9][3])+"",de,fe,T=!l[3]&&ye(l),x=!l[3]&&be(l),W=!l[3]&&ke(l),A=!l[3]&&ve(l);return{c(){t=e.element("div"),a=e.element("div"),n=e.element("div"),r=e.element("ui-image"),c=e.space(),h=e.element("span"),y=e.text(C),b=e.space(),f=e.element("span"),k=e.element("span"),v=e.text(j),S=e.space(),T&&T.c(),p=e.space(),m=e.element("div"),s=e.element("div"),g=e.element("ui-image"),D=e.space(),J=e.element("span"),H=e.text(Q),X=e.space(),V=e.element("span"),M=e.element("span"),Z=e.text(N),ie=e.space(),x&&x.c(),$=e.space(),z=e.element("div"),U=e.element("div"),L=e.element("div"),I=e.element("ui-image"),ee=e.space(),q=e.element("span"),re=e.text(R),te=e.space(),O=e.element("span"),ae=e.element("span"),se=e.text(ne),pe=e.space(),W&&W.c(),ce=e.space(),F=e.element("div"),P=e.element("div"),B=e.element("ui-image"),ue=e.space(),K=e.element("span"),oe=e.text(le),me=e.space(),i=e.element("span"),d=e.element("span"),de=e.text(w),fe=e.space(),A&&A.c(),e.set_custom_element_data(r,"class","displayCardIcon"),e.src_url_equal(r.src,u=l[11][0])||e.set_custom_element_data(r,"src",u),e.set_custom_element_data(r,"alt",""),e.attr(h,"class","cardLabel"),e.attr(n,"class","iconWrapper"),e.attr(k,"class","jackpotValue"),e.attr(f,"class","cardTextWrapper"),e.attr(a,"class","displayCard"),e.set_custom_element_data(g,"class","displayCardIcon"),e.src_url_equal(g.src,E=l[11][1])||e.set_custom_element_data(g,"src",E),e.set_custom_element_data(g,"alt",""),e.attr(J,"class","cardLabel"),e.attr(s,"class","iconWrapper"),e.attr(M,"class","jackpotValue"),e.attr(V,"class","cardTextWrapper"),e.attr(m,"class","displayCard"),e.attr(t,"class","pairWrapper"),e.set_custom_element_data(I,"class","displayCardIcon"),e.src_url_equal(I.src,G=l[11][2])||e.set_custom_element_data(I,"src",G),e.set_custom_element_data(I,"alt",""),e.attr(q,"class","cardLabel"),e.attr(L,"class","iconWrapper"),e.attr(ae,"class","jackpotValue"),e.attr(O,"class","cardTextWrapper"),e.attr(U,"class","displayCard"),e.set_custom_element_data(B,"class","displayCardIcon"),e.src_url_equal(B.src,Y=l[11][3])||e.set_custom_element_data(B,"src",Y),e.set_custom_element_data(B,"alt",""),e.attr(K,"class","cardLabel"),e.attr(P,"class","iconWrapper"),e.attr(d,"class","jackpotValue"),e.attr(i,"class","cardTextWrapper"),e.attr(F,"class","displayCard"),e.attr(z,"class","pairWrapper")},m(o,_){e.insert(o,t,_),e.append(t,a),e.append(a,n),e.append(n,r),e.append(n,c),e.append(n,h),e.append(h,y),e.append(a,b),e.append(a,f),e.append(f,k),e.append(k,v),e.append(f,S),T&&T.m(f,null),e.append(t,p),e.append(t,m),e.append(m,s),e.append(s,g),e.append(s,D),e.append(s,J),e.append(J,H),e.append(m,X),e.append(m,V),e.append(V,M),e.append(M,Z),e.append(V,ie),x&&x.m(V,null),e.insert(o,$,_),e.insert(o,z,_),e.append(z,U),e.append(U,L),e.append(L,I),e.append(L,ee),e.append(L,q),e.append(q,re),e.append(U,te),e.append(U,O),e.append(O,ae),e.append(ae,se),e.append(O,pe),W&&W.m(O,null),e.append(z,ce),e.append(z,F),e.append(F,P),e.append(P,B),e.append(P,ue),e.append(P,K),e.append(K,oe),e.append(F,me),e.append(F,i),e.append(i,d),e.append(d,de),e.append(i,fe),A&&A.m(i,null)},p(o,_){_[0]&2048&&!e.src_url_equal(r.src,u=o[11][0])&&e.set_custom_element_data(r,"src",u),_[0]&1024&&C!==(C=o[10][0]+"")&&e.set_data(y,C),_[0]&33284&&j!==(j=(o[2]==="true"?o[15][0]:o[9][0])+"")&&e.set_data(v,j),o[3]?T&&(T.d(1),T=null):T?T.p(o,_):(T=ye(o),T.c(),T.m(f,null)),_[0]&2048&&!e.src_url_equal(g.src,E=o[11][1])&&e.set_custom_element_data(g,"src",E),_[0]&1024&&Q!==(Q=o[10][1]+"")&&e.set_data(H,Q),_[0]&33284&&N!==(N=(o[2]==="true"?o[15][1]:o[9][1])+"")&&e.set_data(Z,N),o[3]?x&&(x.d(1),x=null):x?x.p(o,_):(x=be(o),x.c(),x.m(V,null)),_[0]&2048&&!e.src_url_equal(I.src,G=o[11][2])&&e.set_custom_element_data(I,"src",G),_[0]&1024&&R!==(R=o[10][2]+"")&&e.set_data(re,R),_[0]&33284&&ne!==(ne=(o[2]==="true"?o[15][2]:o[9][2])+"")&&e.set_data(se,ne),o[3]?W&&(W.d(1),W=null):W?W.p(o,_):(W=ke(o),W.c(),W.m(O,null)),_[0]&2048&&!e.src_url_equal(B.src,Y=o[11][3])&&e.set_custom_element_data(B,"src",Y),_[0]&1024&&le!==(le=o[10][3]+"")&&e.set_data(oe,le),_[0]&33284&&w!==(w=(o[2]==="true"?o[15][3]:o[9][3])+"")&&e.set_data(de,w),o[3]?A&&(A.d(1),A=null):A?A.p(o,_):(A=ve(o),A.c(),A.m(i,null))},d(o){o&&(e.detach(t),e.detach($),e.detach(z)),T&&T.d(),x&&x.d(),W&&W.d(),A&&A.d()}}}function Ie(l){let t,a=e.ensure_array_like(Array(4)),n=[];for(let r=0;r<a.length;r+=1)n[r]=Ce(he(l,a,r));return{c(){for(let r=0;r<n.length;r+=1)n[r].c();t=e.empty()},m(r,u){for(let c=0;c<n.length;c+=1)n[c]&&n[c].m(r,u);e.insert(r,t,u)},p(r,u){if(u[0]&36366){a=e.ensure_array_like(Array(4));let c;for(c=0;c<a.length;c+=1){const h=he(r,a,c);n[c]?n[c].p(h,u):(n[c]=Ce(h),n[c].c(),n[c].m(t.parentNode,t))}for(;c<n.length;c+=1)n[c].d(1);n.length=a.length}},d(r){r&&e.detach(t),e.destroy_each(n,r)}}}function ye(l){let t,a;return{c(){t=e.element("span"),a=e.text(l[1]),e.attr(t,"class","jackpot-currency")},m(n,r){e.insert(n,t,r),e.append(t,a)},p(n,r){r[0]&2&&e.set_data(a,n[1])},d(n){n&&e.detach(t)}}}function be(l){let t,a;return{c(){t=e.element("span"),a=e.text(l[1]),e.attr(t,"class","jackpot-currency")},m(n,r){e.insert(n,t,r),e.append(t,a)},p(n,r){r[0]&2&&e.set_data(a,n[1])},d(n){n&&e.detach(t)}}}function ke(l){let t,a;return{c(){t=e.element("span"),a=e.text(l[1]),e.attr(t,"class","jackpot-currency")},m(n,r){e.insert(n,t,r),e.append(t,a)},p(n,r){r[0]&2&&e.set_data(a,n[1])},d(n){n&&e.detach(t)}}}function ve(l){let t,a;return{c(){t=e.element("span"),a=e.text(l[1]),e.attr(t,"class","jackpot-currency")},m(n,r){e.insert(n,t,r),e.append(t,a)},p(n,r){r[0]&2&&e.set_data(a,n[1])},d(n){n&&e.detach(t)}}}function we(l){let t,a;return{c(){t=e.element("span"),a=e.text(l[1]),e.attr(t,"class","jackpot-currency")},m(n,r){e.insert(n,t,r),e.append(t,a)},p(n,r){r[0]&2&&e.set_data(a,n[1])},d(n){n&&e.detach(t)}}}function Ce(l){var m;let t,a,n,r,u,c,h=l[10][l[57]]+"",C,y,b,f,k=(l[2]==="true"?l[15][l[57]]:(m=l[9][l[57]])!=null?m:"")+"",j,v,S,p=!l[3]&&we(l);return{c(){t=e.element("div"),a=e.element("div"),n=e.element("ui-image"),u=e.space(),c=e.element("span"),C=e.text(h),y=e.space(),b=e.element("span"),f=e.element("span"),j=e.text(k),v=e.space(),p&&p.c(),S=e.space(),e.set_custom_element_data(n,"class","displayCardIcon"),e.src_url_equal(n.src,r=l[11][l[57]])||e.set_custom_element_data(n,"src",r),e.set_custom_element_data(n,"alt",""),e.attr(c,"class","cardLabel"),e.attr(a,"class","iconWrapper"),e.attr(f,"class","jackpotValue"),e.attr(b,"class","cardTextWrapper"),e.attr(t,"class","displayCard")},m(s,g){e.insert(s,t,g),e.append(t,a),e.append(a,n),e.append(a,u),e.append(a,c),e.append(c,C),e.append(t,y),e.append(t,b),e.append(b,f),e.append(f,j),e.append(b,v),p&&p.m(b,null),e.append(t,S)},p(s,g){var E;g[0]&2048&&!e.src_url_equal(n.src,r=s[11][s[57]])&&e.set_custom_element_data(n,"src",r),g[0]&1024&&h!==(h=s[10][s[57]]+"")&&e.set_data(C,h),g[0]&33284&&k!==(k=(s[2]==="true"?s[15][s[57]]:(E=s[9][s[57]])!=null?E:"")+"")&&e.set_data(j,k),s[3]?p&&(p.d(1),p=null):p?p.p(s,g):(p=we(s),p.c(),p.m(b,null))},d(s){s&&e.detach(t),p&&p.d()}}}function Ee(l){let t;function a(u,c){return u[14]?We:u[5]?xe:Te}let n=a(l),r=n(l);return{c(){t=e.element("div"),r.c()},m(u,c){e.insert(u,t,c),r.m(t,null),l[35](t)},p(u,c){n===(n=a(u))&&r?r.p(u,c):(r.d(1),r=n(u),r&&(r.c(),r.m(t,null)))},i:e.noop,o:e.noop,d(u){u&&e.detach(t),r.d(),l[35](null)}}}function qe(l,t,a){let{visualstructure:n=""}=t,{title:r=""}=t,{caticon0:u=""}=t,{caticon1:c=""}=t,{caticon2:h=""}=t,{caticon3:C=""}=t,{iconlabels:y=""}=t,{backgroundsrc:b=""}=t,{currency:f=""}=t,{backgroundsrcmobile:k=""}=t,{titlelogopath:j=""}=t,{lang:v="en"}=t,{clientstyling:S=""}=t,{clientstylingurl:p=""}=t,{translationurl:m=""}=t,{endpoint:s=""}=t,{gameid:g=""}=t,{mbsource:E}=t,{realtimeupdate:D="false"}=t,{currencylocale:J=""}=t,Q=window.navigator.userAgent,H=!1,X=!1,V="",M=[],N=[],Z=[],ie=[],$=[],z="",U="",L,I=!0,G=!1,ee,q=null,R=[];const re=()=>{fetch(m).then(d=>d.json()).then(d=>{Object.keys(d).forEach(w=>{ge(w,d[w])})}).catch(d=>{console.log(d)})};Object.keys(_e).forEach(i=>{ge(i,_e[i])});const te=["typeSpread","typeLeft"],O=i=>{var w;const d=(w=i==null?void 0:i.items[0])==null?void 0:w.additionalData;d&&Object.values(d).forEach(de=>M.push(+de))},ae=i=>{var d;a(8,V=((d=i==null?void 0:i.items[0])==null?void 0:d.vendorLogo)||"")},ne=()=>{if(s&&v&&f){let i=new URL(`${s}/v1/casino/jackpots`);i.searchParams.append("filter",`id=${g}`),i.searchParams.append("language",v),i.searchParams.append("additionalDataCurrency",f),fetch(i.href).then(d=>d.json().then(w=>{a(5,I=!1),ee=w,N.includes(g)&&(O(ee),ae(ee))}).catch(w=>{a(14,G=!0),a(5,I=!1),console.error(w)}).finally(()=>{se()}))}},se=()=>{const i=L.getRootNode().host;i.dispatchEvent(new CustomEvent("data-loaded",{bubbles:!0,detail:{target:i}}))},pe=()=>{let i=new URL(`${s}/v1/casino/jackpots/config`);fetch(i.href).then(d=>d.json()).then(d=>{a(33,N=d.egtJackpotIds.map(w=>w))})},ce=()=>{a(6,H=e.isMobile(Q)&&window.innerHeight/window.innerWidth>1),a(7,X=B()),M.length!==0&&a(9,Z=P(M)),a(10,ie=y?y.split(",").map(i=>i.trim().toUpperCase()):new Array(4).fill("")),te.includes(n.trim())?a(0,n=n.trim()):(console.warn(`Invalid Attribute Value: "${n}" is not a valid value for the "visualstructure" attribute. Defaulting to "${te[0]}"`),a(0,n=te[0])),a(12,z=k&&H&&!X?k:b),a(13,U=j),a(11,$=[u,c,h,C])},F=i=>Intl.NumberFormat(J,{minimumFractionDigits:2,maximumFractionDigits:2,style:"currency",currency:f}).format(i).replace(/\s/g,""),P=i=>J?i.map(d=>F(d)):i.map(d=>Intl.NumberFormat("en-US",{maximumFractionDigits:2}).format(d)),B=()=>{const i=window.innerHeight/window.innerWidth;return .75<i&&i<1.6},Y=()=>{window.postMessage({type:"JackpotBannerClicked",gameid:g},window.location.href),typeof gtag=="function"&&gtag("event","JackpotBannerClicked",{context:"JackpotBanner",gameId:`${g}`})},ue=()=>{je(v)},K=i=>{const d=JSON.parse(i.data);if(d.success&&d.data.messageType==="UpdateEgtJackpotBalance"&&d.data.jackpotAlias.split("_")[0]===g){const w=Number(d.data.jackpotAlias.split("_")[1])-1;a(15,R[w]=J?F(d.data.data[`${f}`].balance):d.data.data[`${f}`].balance.toString(),R)}},le=()=>{D==="true"&&(ce(),a(15,R=["","","",""]),q=new EventSource(`${s}/v1/encoder/jackpot/*/update`),q.addEventListener("message",K))};e.onMount(()=>()=>{}),e.onDestroy(()=>{q&&(q.removeEventListener("message",K),q.close(),q=null)});const oe=()=>Y();function me(i){e.binding_callbacks[i?"unshift":"push"](()=>{L=i,a(4,L)})}return l.$$set=i=>{"visualstructure"in i&&a(0,n=i.visualstructure),"title"in i&&a(17,r=i.title),"caticon0"in i&&a(18,u=i.caticon0),"caticon1"in i&&a(19,c=i.caticon1),"caticon2"in i&&a(20,h=i.caticon2),"caticon3"in i&&a(21,C=i.caticon3),"iconlabels"in i&&a(22,y=i.iconlabels),"backgroundsrc"in i&&a(23,b=i.backgroundsrc),"currency"in i&&a(1,f=i.currency),"backgroundsrcmobile"in i&&a(24,k=i.backgroundsrcmobile),"titlelogopath"in i&&a(25,j=i.titlelogopath),"lang"in i&&a(26,v=i.lang),"clientstyling"in i&&a(27,S=i.clientstyling),"clientstylingurl"in i&&a(28,p=i.clientstylingurl),"translationurl"in i&&a(29,m=i.translationurl),"endpoint"in i&&a(30,s=i.endpoint),"gameid"in i&&a(31,g=i.gameid),"mbsource"in i&&a(32,E=i.mbsource),"realtimeupdate"in i&&a(2,D=i.realtimeupdate),"currencylocale"in i&&a(3,J=i.currencylocale)},l.$$.update=()=>{l.$$.dirty[0]&1073741824&&s&&pe(),l.$$.dirty[0]&134217744&&S&&L&&e.setClientStyling(L,S),l.$$.dirty[0]&268435472&&p&&L&&e.setClientStylingURL(L,p),l.$$.dirty[0]&16|l.$$.dirty[1]&2&&E&&L&&e.setStreamStyling(L,`${E}.Style`),l.$$.dirty[0]&1140850690|l.$$.dirty[1]&4&&s&&v&&f&&N.length>0&&ne(),l.$$.dirty[0]&67108898&&f&&v&&!I&&ce(),l.$$.dirty[0]&67108864&&v&&ue(),l.$$.dirty[0]&536870912&&m&&re(),l.$$.dirty[0]&4&&D&&le()},[n,f,D,J,L,I,H,X,V,Z,ie,$,z,U,G,R,Y,r,u,c,h,C,y,b,k,j,v,S,p,m,s,g,E,N,oe,me]}class Le extends e.SvelteComponent{constructor(t){super(),e.init(this,t,qe,Ee,e.safe_not_equal,{visualstructure:0,title:17,caticon0:18,caticon1:19,caticon2:20,caticon3:21,iconlabels:22,backgroundsrc:23,currency:1,backgroundsrcmobile:24,titlelogopath:25,lang:26,clientstyling:27,clientstylingurl:28,translationurl:29,endpoint:30,gameid:31,mbsource:32,realtimeupdate:2,currencylocale:3},Se,[-1,-1])}get visualstructure(){return this.$$.ctx[0]}set visualstructure(t){this.$$set({visualstructure:t}),e.flush()}get title(){return this.$$.ctx[17]}set title(t){this.$$set({title:t}),e.flush()}get caticon0(){return this.$$.ctx[18]}set caticon0(t){this.$$set({caticon0:t}),e.flush()}get caticon1(){return this.$$.ctx[19]}set caticon1(t){this.$$set({caticon1:t}),e.flush()}get caticon2(){return this.$$.ctx[20]}set caticon2(t){this.$$set({caticon2:t}),e.flush()}get caticon3(){return this.$$.ctx[21]}set caticon3(t){this.$$set({caticon3:t}),e.flush()}get iconlabels(){return this.$$.ctx[22]}set iconlabels(t){this.$$set({iconlabels:t}),e.flush()}get backgroundsrc(){return this.$$.ctx[23]}set backgroundsrc(t){this.$$set({backgroundsrc:t}),e.flush()}get currency(){return this.$$.ctx[1]}set currency(t){this.$$set({currency:t}),e.flush()}get backgroundsrcmobile(){return this.$$.ctx[24]}set backgroundsrcmobile(t){this.$$set({backgroundsrcmobile:t}),e.flush()}get titlelogopath(){return this.$$.ctx[25]}set titlelogopath(t){this.$$set({titlelogopath:t}),e.flush()}get lang(){return this.$$.ctx[26]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[27]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[28]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[29]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get endpoint(){return this.$$.ctx[30]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get gameid(){return this.$$.ctx[31]}set gameid(t){this.$$set({gameid:t}),e.flush()}get mbsource(){return this.$$.ctx[32]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get realtimeupdate(){return this.$$.ctx[2]}set realtimeupdate(t){this.$$set({realtimeupdate:t}),e.flush()}get currencylocale(){return this.$$.ctx[3]}set currencylocale(t){this.$$set({currencylocale:t}),e.flush()}}e.create_custom_element(Le,{visualstructure:{},title:{},caticon0:{},caticon1:{},caticon2:{},caticon3:{},iconlabels:{},backgroundsrc:{},currency:{},backgroundsrcmobile:{},titlelogopath:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},endpoint:{},gameid:{},mbsource:{},realtimeupdate:{},currencylocale:{}},[],[],!0);exports.default=Le;