@everymatrix/casino-lobby 0.0.170 → 0.0.174

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.
@@ -295,6 +295,10 @@
295
295
  resolved_promise.then(flush);
296
296
  }
297
297
  }
298
+ function tick() {
299
+ schedule_update();
300
+ return resolved_promise;
301
+ }
298
302
  function add_render_callback(fn) {
299
303
  render_callbacks.push(fn);
300
304
  }
@@ -5685,7 +5689,7 @@
5685
5689
  const { console: console_1$7 } = globals;
5686
5690
  const file$8 = "../casino-categories-slider/src/CasinoCategoriesSlider.svelte";
5687
5691
 
5688
- // (187:4) {:else}
5692
+ // (224:4) {:else}
5689
5693
  function create_else_block$5(ctx) {
5690
5694
  let div;
5691
5695
  let casino_slider;
@@ -5700,32 +5704,32 @@
5700
5704
  set_custom_element_data(casino_slider, "clientstylingurl", /*clientstylingurl*/ ctx[1]);
5701
5705
  set_custom_element_data(casino_slider, "containermaxwidth", /*containermaxwidth*/ ctx[2]);
5702
5706
  set_custom_element_data(casino_slider, "onclickeventname", "CategoryChange");
5703
- add_location(casino_slider, file$8, 188, 8, 6054);
5707
+ add_location(casino_slider, file$8, 225, 8, 7254);
5704
5708
  attr_dev(div, "class", "CasinoCategoriesContainer");
5705
- add_location(div, file$8, 187, 6, 6006);
5709
+ add_location(div, file$8, 224, 6, 7206);
5706
5710
  },
5707
5711
  m: function mount(target, anchor) {
5708
5712
  insert_dev(target, div, anchor);
5709
5713
  append_dev(div, casino_slider);
5710
5714
  },
5711
5715
  p: function update(ctx, dirty) {
5712
- if (dirty & /*numberOfFavoredGames*/ 128) {
5716
+ if (dirty[0] & /*numberOfFavoredGames*/ 128) {
5713
5717
  set_custom_element_data(casino_slider, "favoritesnumber", /*numberOfFavoredGames*/ ctx[7]);
5714
5718
  }
5715
5719
 
5716
- if (dirty & /*categories*/ 16) {
5720
+ if (dirty[0] & /*categories*/ 16) {
5717
5721
  set_custom_element_data(casino_slider, "sliderdata", /*categories*/ ctx[4]);
5718
5722
  }
5719
5723
 
5720
- if (dirty & /*clientstyling*/ 1) {
5724
+ if (dirty[0] & /*clientstyling*/ 1) {
5721
5725
  set_custom_element_data(casino_slider, "clientstyling", /*clientstyling*/ ctx[0]);
5722
5726
  }
5723
5727
 
5724
- if (dirty & /*clientstylingurl*/ 2) {
5728
+ if (dirty[0] & /*clientstylingurl*/ 2) {
5725
5729
  set_custom_element_data(casino_slider, "clientstylingurl", /*clientstylingurl*/ ctx[1]);
5726
5730
  }
5727
5731
 
5728
- if (dirty & /*containermaxwidth*/ 4) {
5732
+ if (dirty[0] & /*containermaxwidth*/ 4) {
5729
5733
  set_custom_element_data(casino_slider, "containermaxwidth", /*containermaxwidth*/ ctx[2]);
5730
5734
  }
5731
5735
  },
@@ -5738,14 +5742,14 @@
5738
5742
  block,
5739
5743
  id: create_else_block$5.name,
5740
5744
  type: "else",
5741
- source: "(187:4) {:else}",
5745
+ source: "(224:4) {:else}",
5742
5746
  ctx
5743
5747
  });
5744
5748
 
5745
5749
  return block;
5746
5750
  }
5747
5751
 
5748
- // (185:4) {#if hasErrors}
5752
+ // (222:4) {#if hasErrors}
5749
5753
  function create_if_block_1$5(ctx) {
5750
5754
  let p;
5751
5755
 
@@ -5754,7 +5758,7 @@
5754
5758
  p = element("p");
5755
5759
  p.textContent = "500 Error - Internal Server Error.";
5756
5760
  attr_dev(p, "class", "SearchLoading");
5757
- add_location(p, file$8, 185, 6, 5924);
5761
+ add_location(p, file$8, 222, 6, 7124);
5758
5762
  },
5759
5763
  m: function mount(target, anchor) {
5760
5764
  insert_dev(target, p, anchor);
@@ -5769,14 +5773,14 @@
5769
5773
  block,
5770
5774
  id: create_if_block_1$5.name,
5771
5775
  type: "if",
5772
- source: "(185:4) {#if hasErrors}",
5776
+ source: "(222:4) {#if hasErrors}",
5773
5777
  ctx
5774
5778
  });
5775
5779
 
5776
5780
  return block;
5777
5781
  }
5778
5782
 
5779
- // (182:2) {#if isLoading}
5783
+ // (219:2) {#if isLoading || isLoadingMostPlayed}
5780
5784
  function create_if_block$8(ctx) {
5781
5785
  let p;
5782
5786
 
@@ -5784,7 +5788,7 @@
5784
5788
  c: function create() {
5785
5789
  p = element("p");
5786
5790
  p.textContent = "Please wait ...";
5787
- add_location(p, file$8, 182, 4, 5865);
5791
+ add_location(p, file$8, 219, 4, 7065);
5788
5792
  },
5789
5793
  m: function mount(target, anchor) {
5790
5794
  insert_dev(target, p, anchor);
@@ -5799,7 +5803,7 @@
5799
5803
  block,
5800
5804
  id: create_if_block$8.name,
5801
5805
  type: "if",
5802
- source: "(182:2) {#if isLoading}",
5806
+ source: "(219:2) {#if isLoading || isLoadingMostPlayed}",
5803
5807
  ctx
5804
5808
  });
5805
5809
 
@@ -5810,7 +5814,7 @@
5810
5814
  let div;
5811
5815
 
5812
5816
  function select_block_type(ctx, dirty) {
5813
- if (/*isLoading*/ ctx[3]) return create_if_block$8;
5817
+ if (/*isLoading*/ ctx[3] || /*isLoadingMostPlayed*/ ctx[8]) return create_if_block$8;
5814
5818
  if (/*hasErrors*/ ctx[5]) return create_if_block_1$5;
5815
5819
  return create_else_block$5;
5816
5820
  }
@@ -5823,7 +5827,7 @@
5823
5827
  div = element("div");
5824
5828
  if_block.c();
5825
5829
  this.c = noop$1;
5826
- add_location(div, file$8, 180, 0, 5802);
5830
+ add_location(div, file$8, 217, 0, 6979);
5827
5831
  },
5828
5832
  l: function claim(nodes) {
5829
5833
  throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
@@ -5831,9 +5835,9 @@
5831
5835
  m: function mount(target, anchor) {
5832
5836
  insert_dev(target, div, anchor);
5833
5837
  if_block.m(div, null);
5834
- /*div_binding*/ ctx[14](div);
5838
+ /*div_binding*/ ctx[16](div);
5835
5839
  },
5836
- p: function update(ctx, [dirty]) {
5840
+ p: function update(ctx, dirty) {
5837
5841
  if (current_block_type === (current_block_type = select_block_type(ctx)) && if_block) {
5838
5842
  if_block.p(ctx, dirty);
5839
5843
  } else {
@@ -5851,7 +5855,7 @@
5851
5855
  d: function destroy(detaching) {
5852
5856
  if (detaching) detach_dev(div);
5853
5857
  if_block.d();
5854
- /*div_binding*/ ctx[14](null);
5858
+ /*div_binding*/ ctx[16](null);
5855
5859
  }
5856
5860
  };
5857
5861
 
@@ -5873,6 +5877,7 @@
5873
5877
  let { endpoint = "" } = $$props;
5874
5878
  let { datasource = "" } = $$props;
5875
5879
  let { lang = "" } = $$props; // Language
5880
+ let { userid = "" } = $$props;
5876
5881
  let { session = "" } = $$props; // Value for sessionID
5877
5882
  let { mostplayed = "" } = $$props; // True - add MostPlayed category in slider
5878
5883
  let { favorites = "" } = $$props; // True - add Favorites category in slider
@@ -5895,6 +5900,9 @@
5895
5900
  let numberOfFavoredGames;
5896
5901
  let favoritesAdded = false;
5897
5902
  let mostPlayedAdded = false;
5903
+ let favoritesLoaded = false;
5904
+ let mostPlayedLoaded = false;
5905
+ let categoriesLoaded = false;
5898
5906
 
5899
5907
  const messageHandler = e => {
5900
5908
  if (e.data) {
@@ -5920,11 +5928,40 @@
5920
5928
  isLoggedIn = true;
5921
5929
  }
5922
5930
  break;
5923
- } // sessionID = session;
5924
- // playerID = userID;
5931
+ }
5925
5932
  }
5926
5933
  };
5927
5934
 
5935
+ const getMostPlayedGames = () => {
5936
+ let url = new URL(`${endpoint}/player/${userid}/games/most-played`);
5937
+ let device = getDevice(userAgent);
5938
+
5939
+ if (device) {
5940
+ if (device === "PC") {
5941
+ url.searchParams.append("device", "Desktop");
5942
+ } else {
5943
+ url.searchParams.append("device", "Mobile");
5944
+ }
5945
+ } else {
5946
+ url.searchParams.append("device", "All");
5947
+ }
5948
+
5949
+ url.searchParams.append("rounds", "50");
5950
+
5951
+ return new Promise((resolve, reject) => {
5952
+ fetch(url.href).then(res => res.json()).then(data => {
5953
+ if (data.count == 0) {
5954
+ resolve(false);
5955
+ }
5956
+
5957
+ resolve(true);
5958
+ }).catch(err => {
5959
+ console.error("err", err);
5960
+ reject(false);
5961
+ });
5962
+ });
5963
+ };
5964
+
5928
5965
  const addFavoritesCategory = () => {
5929
5966
  if (favoritesAdded == false && favorites == "true") {
5930
5967
  categories.splice(1, 0, {
@@ -5936,22 +5973,30 @@
5936
5973
  }
5937
5974
 
5938
5975
  favoritesAdded = true;
5939
- $$invalidate(3, isLoading = false);
5976
+ favoritesLoaded = true;
5940
5977
  };
5941
5978
 
5979
+ let isLoadingMostPlayed = false;
5980
+
5942
5981
  const addMostPlayedCategory = () => {
5943
- if (mostPlayedAdded == false && mostplayed == "true") {
5944
- categories.splice(1, 0, {
5945
- id: "MOSTPLAYED",
5946
- name: "Most Played",
5947
- href: "",
5948
- games: [],
5949
- triggerFetch: false
5950
- });
5951
- }
5982
+ $$invalidate(8, isLoadingMostPlayed = true);
5983
+
5984
+ getMostPlayedGames().then(display => {
5985
+ if (mostPlayedAdded == false && mostplayed == "true" && display) {
5986
+ categories.splice(2, 0, {
5987
+ id: "MOSTPLAYED",
5988
+ name: "Most Played",
5989
+ href: "",
5990
+ games: [],
5991
+ triggerFetch: false
5992
+ });
5993
+ }
5952
5994
 
5953
- mostPlayedAdded = true;
5954
- $$invalidate(3, isLoading = false);
5995
+ $$invalidate(8, isLoadingMostPlayed = false);
5996
+ tick();
5997
+ mostPlayedAdded = true;
5998
+ mostPlayedLoaded = true;
5999
+ });
5955
6000
  };
5956
6001
 
5957
6002
  const checkAttrs = () => {
@@ -5979,14 +6024,15 @@
5979
6024
  return hasErrors;
5980
6025
  };
5981
6026
 
6027
+ const checkIfLoaded = () => {
6028
+ $$invalidate(3, isLoading = !favoritesLoaded && !mostPlayedLoaded && !categoriesLoaded);
6029
+ };
6030
+
5982
6031
  const initialLoad = () => {
5983
6032
  if (!checkAttrs()) {
5984
- $$invalidate(3, isLoading = true);
5985
6033
  let url = new URL(`${endpoint}/casino/groups/${datasource}`);
5986
6034
  url.searchParams.append("datasource", datasource);
5987
-
5988
- // @TODO add back getDevice method
5989
- // url.searchParams.append('platform', getDevice(userAgent));
6035
+ url.searchParams.append("platform", getDevice(userAgent));
5990
6036
  url.searchParams.append("language", lang);
5991
6037
 
5992
6038
  fetch(url).then(res => res.json()).then(
@@ -6006,8 +6052,8 @@
6006
6052
  games: []
6007
6053
  });
6008
6054
 
6009
- window.postMessage({ type: "CategoriesLoadedForSlider" }, window.location.href);
6010
6055
  $$invalidate(3, isLoading = false);
6056
+ window.postMessage({ type: "CategoriesLoadedForSlider" }, window.location.href);
6011
6057
  },
6012
6058
  err => {
6013
6059
  $$invalidate(5, hasErrors = true);
@@ -6042,8 +6088,9 @@
6042
6088
 
6043
6089
  const setClientStylingURL = () => {
6044
6090
  let cssFile = document.createElement("style");
6091
+ let url = new URL(clientstylingurl);
6045
6092
 
6046
- fetch(new URL(clientstylingurl)).then(res => res.text()).then(data => {
6093
+ fetch(url.href).then(res => res.text()).then(data => {
6047
6094
  cssFile.innerHTML = data;
6048
6095
 
6049
6096
  setTimeout(
@@ -6067,6 +6114,7 @@
6067
6114
  "endpoint",
6068
6115
  "datasource",
6069
6116
  "lang",
6117
+ "userid",
6070
6118
  "session",
6071
6119
  "mostplayed",
6072
6120
  "favorites",
@@ -6087,12 +6135,13 @@
6087
6135
  }
6088
6136
 
6089
6137
  $$self.$$set = $$props => {
6090
- if ("endpoint" in $$props) $$invalidate(8, endpoint = $$props.endpoint);
6091
- if ("datasource" in $$props) $$invalidate(9, datasource = $$props.datasource);
6092
- if ("lang" in $$props) $$invalidate(10, lang = $$props.lang);
6093
- if ("session" in $$props) $$invalidate(11, session = $$props.session);
6094
- if ("mostplayed" in $$props) $$invalidate(12, mostplayed = $$props.mostplayed);
6095
- if ("favorites" in $$props) $$invalidate(13, favorites = $$props.favorites);
6138
+ if ("endpoint" in $$props) $$invalidate(9, endpoint = $$props.endpoint);
6139
+ if ("datasource" in $$props) $$invalidate(10, datasource = $$props.datasource);
6140
+ if ("lang" in $$props) $$invalidate(11, lang = $$props.lang);
6141
+ if ("userid" in $$props) $$invalidate(12, userid = $$props.userid);
6142
+ if ("session" in $$props) $$invalidate(13, session = $$props.session);
6143
+ if ("mostplayed" in $$props) $$invalidate(14, mostplayed = $$props.mostplayed);
6144
+ if ("favorites" in $$props) $$invalidate(15, favorites = $$props.favorites);
6096
6145
  if ("clientstyling" in $$props) $$invalidate(0, clientstyling = $$props.clientstyling);
6097
6146
  if ("clientstylingurl" in $$props) $$invalidate(1, clientstylingurl = $$props.clientstylingurl);
6098
6147
  if ("containermaxwidth" in $$props) $$invalidate(2, containermaxwidth = $$props.containermaxwidth);
@@ -6100,11 +6149,13 @@
6100
6149
 
6101
6150
  $$self.$capture_state = () => ({
6102
6151
  onMount,
6152
+ tick,
6103
6153
  getDevice,
6104
6154
  checkSession,
6105
6155
  endpoint,
6106
6156
  datasource,
6107
6157
  lang,
6158
+ userid,
6108
6159
  session,
6109
6160
  mostplayed,
6110
6161
  favorites,
@@ -6124,10 +6175,16 @@
6124
6175
  numberOfFavoredGames,
6125
6176
  favoritesAdded,
6126
6177
  mostPlayedAdded,
6178
+ favoritesLoaded,
6179
+ mostPlayedLoaded,
6180
+ categoriesLoaded,
6127
6181
  messageHandler,
6182
+ getMostPlayedGames,
6128
6183
  addFavoritesCategory,
6184
+ isLoadingMostPlayed,
6129
6185
  addMostPlayedCategory,
6130
6186
  checkAttrs,
6187
+ checkIfLoaded,
6131
6188
  initialLoad,
6132
6189
  setSession,
6133
6190
  setClientStyling,
@@ -6135,12 +6192,13 @@
6135
6192
  });
6136
6193
 
6137
6194
  $$self.$inject_state = $$props => {
6138
- if ("endpoint" in $$props) $$invalidate(8, endpoint = $$props.endpoint);
6139
- if ("datasource" in $$props) $$invalidate(9, datasource = $$props.datasource);
6140
- if ("lang" in $$props) $$invalidate(10, lang = $$props.lang);
6141
- if ("session" in $$props) $$invalidate(11, session = $$props.session);
6142
- if ("mostplayed" in $$props) $$invalidate(12, mostplayed = $$props.mostplayed);
6143
- if ("favorites" in $$props) $$invalidate(13, favorites = $$props.favorites);
6195
+ if ("endpoint" in $$props) $$invalidate(9, endpoint = $$props.endpoint);
6196
+ if ("datasource" in $$props) $$invalidate(10, datasource = $$props.datasource);
6197
+ if ("lang" in $$props) $$invalidate(11, lang = $$props.lang);
6198
+ if ("userid" in $$props) $$invalidate(12, userid = $$props.userid);
6199
+ if ("session" in $$props) $$invalidate(13, session = $$props.session);
6200
+ if ("mostplayed" in $$props) $$invalidate(14, mostplayed = $$props.mostplayed);
6201
+ if ("favorites" in $$props) $$invalidate(15, favorites = $$props.favorites);
6144
6202
  if ("clientstyling" in $$props) $$invalidate(0, clientstyling = $$props.clientstyling);
6145
6203
  if ("clientstylingurl" in $$props) $$invalidate(1, clientstylingurl = $$props.clientstylingurl);
6146
6204
  if ("containermaxwidth" in $$props) $$invalidate(2, containermaxwidth = $$props.containermaxwidth);
@@ -6157,6 +6215,10 @@
6157
6215
  if ("numberOfFavoredGames" in $$props) $$invalidate(7, numberOfFavoredGames = $$props.numberOfFavoredGames);
6158
6216
  if ("favoritesAdded" in $$props) favoritesAdded = $$props.favoritesAdded;
6159
6217
  if ("mostPlayedAdded" in $$props) mostPlayedAdded = $$props.mostPlayedAdded;
6218
+ if ("favoritesLoaded" in $$props) favoritesLoaded = $$props.favoritesLoaded;
6219
+ if ("mostPlayedLoaded" in $$props) mostPlayedLoaded = $$props.mostPlayedLoaded;
6220
+ if ("categoriesLoaded" in $$props) categoriesLoaded = $$props.categoriesLoaded;
6221
+ if ("isLoadingMostPlayed" in $$props) $$invalidate(8, isLoadingMostPlayed = $$props.isLoadingMostPlayed);
6160
6222
  };
6161
6223
 
6162
6224
  if ($$props && "$$inject" in $$props) {
@@ -6164,27 +6226,28 @@
6164
6226
  }
6165
6227
 
6166
6228
  $$self.$$.update = () => {
6167
- if ($$self.$$.dirty & /*endpoint, datasource, lang*/ 1792) {
6229
+ if ($$self.$$.dirty[0] & /*endpoint, datasource, lang*/ 3584) {
6230
+ // $: favoritesLoaded && mostPlayedLoaded && categoriesLoaded && checkIfLoaded();
6168
6231
  endpoint && datasource && lang && initialLoad();
6169
6232
  }
6170
6233
 
6171
- if ($$self.$$.dirty & /*session, endpoint*/ 2304) {
6234
+ if ($$self.$$.dirty[0] & /*session, endpoint*/ 8704) {
6172
6235
  session && endpoint && setSession();
6173
6236
  }
6174
6237
 
6175
- if ($$self.$$.dirty & /*session, favorites*/ 10240) {
6238
+ if ($$self.$$.dirty[0] & /*session, favorites*/ 40960) {
6176
6239
  session && favorites && addFavoritesCategory();
6177
6240
  }
6178
6241
 
6179
- if ($$self.$$.dirty & /*session, mostplayed*/ 6144) {
6180
- session && mostplayed && addMostPlayedCategory();
6242
+ if ($$self.$$.dirty[0] & /*session, userid, mostplayed*/ 28672) {
6243
+ session && userid && mostplayed && addMostPlayedCategory();
6181
6244
  }
6182
6245
 
6183
- if ($$self.$$.dirty & /*clientstyling*/ 1) {
6246
+ if ($$self.$$.dirty[0] & /*clientstyling*/ 1) {
6184
6247
  clientstyling && setClientStyling();
6185
6248
  }
6186
6249
 
6187
- if ($$self.$$.dirty & /*clientstylingurl*/ 2) {
6250
+ if ($$self.$$.dirty[0] & /*clientstylingurl*/ 2) {
6188
6251
  clientstylingurl && setClientStylingURL();
6189
6252
  }
6190
6253
  };
@@ -6200,9 +6263,11 @@
6200
6263
  hasErrors,
6201
6264
  customStylingContainer,
6202
6265
  numberOfFavoredGames,
6266
+ isLoadingMostPlayed,
6203
6267
  endpoint,
6204
6268
  datasource,
6205
6269
  lang,
6270
+ userid,
6206
6271
  session,
6207
6272
  mostplayed,
6208
6273
  favorites,
@@ -6226,16 +6291,18 @@
6226
6291
  create_fragment$8,
6227
6292
  safe_not_equal,
6228
6293
  {
6229
- endpoint: 8,
6230
- datasource: 9,
6231
- lang: 10,
6232
- session: 11,
6233
- mostplayed: 12,
6234
- favorites: 13,
6294
+ endpoint: 9,
6295
+ datasource: 10,
6296
+ lang: 11,
6297
+ userid: 12,
6298
+ session: 13,
6299
+ mostplayed: 14,
6300
+ favorites: 15,
6235
6301
  clientstyling: 0,
6236
6302
  clientstylingurl: 1,
6237
6303
  containermaxwidth: 2
6238
- }
6304
+ },
6305
+ [-1, -1]
6239
6306
  );
6240
6307
 
6241
6308
  if (options) {
@@ -6255,6 +6322,7 @@
6255
6322
  "endpoint",
6256
6323
  "datasource",
6257
6324
  "lang",
6325
+ "userid",
6258
6326
  "session",
6259
6327
  "mostplayed",
6260
6328
  "favorites",
@@ -6265,7 +6333,7 @@
6265
6333
  }
6266
6334
 
6267
6335
  get endpoint() {
6268
- return this.$$.ctx[8];
6336
+ return this.$$.ctx[9];
6269
6337
  }
6270
6338
 
6271
6339
  set endpoint(endpoint) {
@@ -6274,7 +6342,7 @@
6274
6342
  }
6275
6343
 
6276
6344
  get datasource() {
6277
- return this.$$.ctx[9];
6345
+ return this.$$.ctx[10];
6278
6346
  }
6279
6347
 
6280
6348
  set datasource(datasource) {
@@ -6283,7 +6351,7 @@
6283
6351
  }
6284
6352
 
6285
6353
  get lang() {
6286
- return this.$$.ctx[10];
6354
+ return this.$$.ctx[11];
6287
6355
  }
6288
6356
 
6289
6357
  set lang(lang) {
@@ -6291,8 +6359,17 @@
6291
6359
  flush();
6292
6360
  }
6293
6361
 
6362
+ get userid() {
6363
+ return this.$$.ctx[12];
6364
+ }
6365
+
6366
+ set userid(userid) {
6367
+ this.$set({ userid });
6368
+ flush();
6369
+ }
6370
+
6294
6371
  get session() {
6295
- return this.$$.ctx[11];
6372
+ return this.$$.ctx[13];
6296
6373
  }
6297
6374
 
6298
6375
  set session(session) {
@@ -6301,7 +6378,7 @@
6301
6378
  }
6302
6379
 
6303
6380
  get mostplayed() {
6304
- return this.$$.ctx[12];
6381
+ return this.$$.ctx[14];
6305
6382
  }
6306
6383
 
6307
6384
  set mostplayed(mostplayed) {
@@ -6310,7 +6387,7 @@
6310
6387
  }
6311
6388
 
6312
6389
  get favorites() {
6313
- return this.$$.ctx[13];
6390
+ return this.$$.ctx[15];
6314
6391
  }
6315
6392
 
6316
6393
  set favorites(favorites) {
@@ -14300,7 +14377,7 @@
14300
14377
  class CasinoPage extends SvelteElement {
14301
14378
  constructor(options) {
14302
14379
  super();
14303
- this.shadowRoot.innerHTML = `<style>*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:'Helvetica Neue', 'Helvetica', sans-serif}.CategoriesLobby{margin:0 auto;padding:0 10px}.PanicSectionMobile{flex-direction:column;margin-bottom:40px}.PanicSection{display:flex;justify-content:center;align-items:center;gap:10px}.PanicText{display:flex;justify-content:center;align-items:center;gap:10px}p{font-size:16px;color:#fff}.PanicButton{border-radius:2px;border:1px solid #D0046C;background-color:#D0046C;width:240px;height:48px;color:#fff;cursor:pointer}[type="search"]{appearance:none}.SrOnly{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.CategoryContainer{display:block}.SearchLoading{color:#fff;font-size:14.4px;margin-top:16px;text-align:center}.SearchContainer{flex:3;width:100%;max-width:640px;margin:0 auto}.SearchContainer.SearchTruncated{margin:auto 5% auto 15%}.SearchContainer.SearchTruncated .SearchInput{tabindex:999;padding:20px 12px 20px 40px}.SearchContainer .SearchWrapper{position:relative;display:flex;color:#c7d2fe}.SearchContainer .SearchWrapper .SearchIcon{position:absolute;display:flex;align-items:center;top:0;bottom:0;left:0;padding-left:8px;pointer-events:none}.SearchContainer .SearchWrapper .SearchIcon svg{width:25.6px;height:25.6px;display:block;vertical-align:middle;fill:#c7d2fe}.SearchContainer .SearchWrapper .SearchInput{width:100%;display:block;padding:12px 12px 12px 40px;border-radius:6.4px;border-color:transparent;font-size:16px;background-color:rgba(156, 163, 175, 0.25);color:#e0e7ff}.SearchContainer .SearchWrapper .SearchInput::-webkit-search-decoration,.SearchContainer .SearchWrapper .SearchInput::-webkit-search-cancel-button,.SearchContainer .SearchWrapper .SearchInput::-webkit-search-results-button,.SearchContainer .SearchWrapper .SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchContainer .SearchWrapper .SearchInput::placeholder{color:white}.SearchContainer .SearchWrapper .SearchInput:focus{background-color:white;color:#111827;outline:2px solid transparent;outline-offset:2px}.SearchContainer .SearchWrapper .SearchInput:focus::placeholder{color:#9ca3af}.SearchContainer .SearchWrapper:focus-within{color:#9ca3af}.SearchContainer .SearchWrapper:focus-within .SearchIcon svg{fill:#9ca3af}.FiltersButtonsContainer{display:inline-flex;flex:1;grid-gap:20px;flex-direction:row-reverse}.FilterButtonWrapper,.ClearFilterButtonWrapper{display:inline-flex;padding:10px 22px;border:1px solid #58586B;border-radius:5px;text-transform:uppercase;color:#fff;cursor:pointer}.ClearFilterButtonWrapper{border:1px solid #FD2839;color:#FD2839}.FilterIconContainer,.ClearIcon{position:relative;padding-left:5px}.FilterIconContainer{top:2px}.ClearIcon{position:relative;top:1px}.ClearIcon svg{width:14px}.FilterButtonWrapper,.ClearFilterButtonWrapper{display:inline-flex;justify-content:center;align-items:center}.NumberOfFiltersContainer{display:block;line-height:0px;border-radius:50%;border:2px solid #D0046C;background:#D0046C;color:#fff;font-size:12px;position:absolute;top:-5px;left:22px}.NumberOfFiltersContainer .NumberOfFilters{display:inline-block;padding-top:50%;padding-bottom:50%;margin-left:3px;margin-right:3px}.CategoriesHeaderSection{width:100%;display:inline-flex;flex-direction:row;margin-top:30px}.CategoriesHeaderMobileSection{position:fixed;bottom:0;left:0;flex-direction:row-reverse;z-index:1}.CategoriesHeaderMobileSection .ClearFilterButtonWrapper{display:none}.CategoriesHeaderMobileSection .SearchContainer{flex:1;max-width:unset;margin:unset;background-color:#d0056c;z-index:1}.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper{color:#fff}.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchIcon{left:25px}.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput{padding:12px;border-radius:0;background-color:#d0056c;color:#fff;text-align:center;opacity:1}.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput::placeholder,.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput:-ms-input-placeholder,.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput::-ms-input-placeholder{color:white;opacity:1}.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper path{fill:#fff}.CategoriesHeaderMobileSection .FiltersButtonsContainer{flex:1}.CategoriesHeaderMobileSection .FiltersButtonsContainer .FilterButtonWrapper{position:relative;width:100%;display:flex;flex-direction:row-reverse;border:1px solid #fff;border-radius:0;background:#fff;color:#D0046C}.CategoriesHeaderMobileSection .FiltersButtonsContainer .FilterIconContainer{position:absolute;left:40px;top:revert;padding-left:0}.CategoriesHeaderMobileSection .FiltersButtonsContainer .FilterIconContainer path{fill:#D0046C}.CategoriesHeaderMobileSection .NumberOfFiltersContainer{font-size:8px;left:15px}.CategoriesHeaderSectionAltDesign{display:block;position:relative}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection{flex-direction:row;position:relative;margin-top:30px}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .SearchContainer{background-color:#07072A}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper{justify-content:center}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput{width:90%;border:1px solid #58586B;border-radius:6.4px;background-color:transparent;color:#fff;padding:12px 50px}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput:active,.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput:focus{width:90%}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .FiltersButtonsContainer{position:absolute;top:64px;right:5px}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .FiltersButtonsContainer .FilterIconContainer{display:none}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .FiltersButtonsContainer .FilterButtonWrapper{border-radius:6.4px;border:2px solid #fff;background:transparent;color:#fff}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .FiltersButtonsContainer .ClearFilterButtonWrapper{padding:10px 16px}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection.CategoriesHeaderSearchActive{top:0}.CategoriesHeaderSectionAltDesign .FiltersActive.ClearFilterButtonWrapper{display:block}.CategoriesHeaderSectionAltDesign .ClearSearchButton,.CategoriesHeaderSectionAltDesign .ClearSearchButtonMobile{right:30px;top:9px}.ClearFilterMobileButtonWrapper{position:absolute;right:5px;padding:8px 18px;display:inline-flex;border:1px solid #58586B;border-radius:5px;border:1px solid #FD2839;text-transform:uppercase;color:#fff;cursor:pointer;color:#FD2839;font-size:14px}.ClearFilterMobileButtonWrapper .ClearIcon svg{width:12px}.CategoriesHeaderSearchActive{position:fixed;bottom:unset;top:70px;margin-top:0}.CategoriesHeaderSearchActive .SearchContainer{background-color:white}.CategoriesHeaderSearchActive .SearchContainer .SearchWrapper .SearchInput{background-color:white;color:#000}.SearchStickTop{margin-top:0}@media(max-width: 768px){.SearchContainer{margin:auto 3% auto 0%}}.SearchBarPlaceholder{display:block;width:100%;height:46px}.SearchBarPlaceholder{display:block;width:100%;height:46px}.ClearSearchButton,.ClearSearchButtonMobile{cursor:pointer;position:absolute;right:14px;top:11px}.ClearSearchButton .CloseIconContainer,.ClearSearchButtonMobile .CloseIconContainer{width:25px;height:25px}.ClearSearchButton .CloseIconWrapper,.ClearSearchButtonMobile .CloseIconWrapper{height:25px;width:3px;margin-left:12px;background-color:#FFF;transform:rotate(45deg);Z-index:1}.ClearSearchButton .CloseIcon,.ClearSearchButtonMobile .CloseIcon{height:25px;width:3px;background-color:#FFF;transform:rotate(90deg);Z-index:2}.SearchContainer .CloseIconWrapper,.SearchContainer .CloseIcon{background-color:#FD2839}.ClearSearchButtonMobile{display:none}.CategoriesHeaderSearchActive .ClearSearchButtonMobile{display:block}.CategoriesHeaderSearchActive .ClearSearchButtonMobile .CloseIconWrapper,.CategoriesHeaderSearchActive .ClearSearchButtonMobile .CloseIcon{background-color:#FD2839}</style>`;
14380
+ this.shadowRoot.innerHTML = `<style>*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:'Helvetica Neue', 'Helvetica', sans-serif}.CategoriesLobby{margin:0 auto;padding:0 10px}.PanicSectionMobile{flex-direction:column;margin-bottom:40px}.PanicSection{display:flex;justify-content:center;align-items:center;gap:10px}.PanicText{display:flex;justify-content:center;align-items:center;gap:10px}p{font-size:16px;color:#fff}.PanicButton{border-radius:2px;border:1px solid #D0046C;background-color:#D0046C;width:240px;height:48px;color:#fff;cursor:pointer}[type="search"]{appearance:none}.SrOnly{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}.CategoryContainer{display:block}.SearchLoading{color:#fff;font-size:14.4px;margin-top:16px;text-align:center}.SearchContainer{flex:3;width:100%;max-width:640px;margin:0 auto}.SearchContainer.SearchTruncated{margin:auto 5% auto 15%}.SearchContainer.SearchTruncated .SearchInput{tabindex:999;padding:20px 12px 20px 40px}.SearchContainer .SearchWrapper{position:relative;display:flex;color:#c7d2fe}.SearchContainer .SearchWrapper .SearchIcon{position:absolute;display:flex;align-items:center;top:0;bottom:0;left:0;padding-left:8px;pointer-events:none}.SearchContainer .SearchWrapper .SearchIcon svg{width:25.6px;height:25.6px;display:block;vertical-align:middle;fill:#c7d2fe}.SearchContainer .SearchWrapper .SearchInput{width:100%;display:block;padding:12px 12px 12px 40px;border-radius:6.4px;border-color:transparent;font-size:16px;background-color:rgba(156, 163, 175, 0.25);color:#e0e7ff}.SearchContainer .SearchWrapper .SearchInput::-webkit-search-decoration,.SearchContainer .SearchWrapper .SearchInput::-webkit-search-cancel-button,.SearchContainer .SearchWrapper .SearchInput::-webkit-search-results-button,.SearchContainer .SearchWrapper .SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchContainer .SearchWrapper .SearchInput::placeholder{color:white}.SearchContainer .SearchWrapper .SearchInput:focus{background-color:white;color:#111827;outline:2px solid transparent;outline-offset:2px}.SearchContainer .SearchWrapper .SearchInput:focus::placeholder{color:#9ca3af}.SearchContainer .SearchWrapper:focus-within{color:#9ca3af}.SearchContainer .SearchWrapper:focus-within .SearchIcon svg{fill:#9ca3af}.FiltersButtonsContainer{display:inline-flex;flex:1;grid-gap:20px;flex-direction:row-reverse}.FilterButtonWrapper,.ClearFilterButtonWrapper{display:inline-flex;padding:10px 22px;border:1px solid #58586B;border-radius:5px;text-transform:uppercase;color:#fff;cursor:pointer}.ClearFilterButtonWrapper{border:1px solid #FD2839;color:#FD2839}.FilterIconContainer,.ClearIcon{position:relative;padding-left:5px}.FilterIconContainer{top:2px}.ClearIcon{position:relative;top:1px}.ClearIcon svg{width:14px}.FilterButtonWrapper,.ClearFilterButtonWrapper{display:inline-flex;justify-content:center;align-items:center}.NumberOfFiltersContainer{display:block;line-height:0px;border-radius:50%;border:2px solid #D0046C;background:#D0046C;color:#fff;font-size:12px;position:absolute;top:-5px;left:22px}.NumberOfFiltersContainer .NumberOfFilters{display:inline-block;padding-top:50%;padding-bottom:50%;margin-left:3px;margin-right:3px}.CategoriesHeaderSection{width:100%;display:inline-flex;flex-direction:row;margin-top:30px}.CategoriesHeaderMobileSection{position:fixed;bottom:0;left:0;flex-direction:row-reverse;z-index:1}.CategoriesHeaderMobileSection .ClearFilterButtonWrapper{display:none}.CategoriesHeaderMobileSection .SearchContainer{flex:1;max-width:unset;margin:unset;background-color:#d0056c;z-index:1}.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper{color:#fff}.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchIcon{left:25px}.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput{padding:12px;border-radius:0;background-color:#d0056c;color:#fff;text-align:center;opacity:1}.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput::placeholder,.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput:-ms-input-placeholder,.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput::-ms-input-placeholder{color:white;opacity:1}.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper path{fill:#fff}.CategoriesHeaderMobileSection .FiltersButtonsContainer{flex:1}.CategoriesHeaderMobileSection .FiltersButtonsContainer .FilterButtonWrapper{position:relative;width:100%;display:flex;flex-direction:row-reverse;border:1px solid #fff;border-radius:0;background:#fff;color:#D0046C}.CategoriesHeaderMobileSection .FiltersButtonsContainer .FilterIconContainer{position:absolute;left:40px;top:revert;padding-left:0}.CategoriesHeaderMobileSection .FiltersButtonsContainer .FilterIconContainer path{fill:#D0046C}.CategoriesHeaderMobileSection .NumberOfFiltersContainer{font-size:8px;left:15px}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection{flex-direction:row;position:relative;margin-top:30px}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .SearchContainer{background-color:#07072A}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper{justify-content:center}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput{width:90%;border:1px solid #58586B;border-radius:6.4px;background-color:transparent;color:#fff;padding:12px 50px}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput:active,.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .SearchContainer .SearchWrapper .SearchInput:focus{width:90%}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .FiltersButtonsContainer{position:absolute;top:64px;right:5px}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .FiltersButtonsContainer .FilterIconContainer{display:none}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .FiltersButtonsContainer .FilterButtonWrapper{border-radius:6.4px;border:2px solid #fff;background:transparent;color:#fff}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection .FiltersButtonsContainer .ClearFilterButtonWrapper{padding:10px 16px}.CategoriesHeaderSectionAltDesign.CategoriesHeaderMobileSection.CategoriesHeaderSearchActive{top:0}.CategoriesHeaderSectionAltDesign .FiltersActive.ClearFilterButtonWrapper{display:block}.CategoriesHeaderSectionAltDesign .ClearSearchButton,.CategoriesHeaderSectionAltDesign .ClearSearchButtonMobile{right:30px;top:9px}.ClearFilterMobileButtonWrapper{position:absolute;right:5px;padding:8px 18px;display:inline-flex;border:1px solid #58586B;border-radius:5px;border:1px solid #FD2839;text-transform:uppercase;color:#fff;cursor:pointer;color:#FD2839;font-size:14px}.ClearFilterMobileButtonWrapper .ClearIcon svg{width:12px}.CategoriesHeaderSearchActive{position:fixed;bottom:unset;top:70px;margin-top:0}.CategoriesHeaderSearchActive .SearchContainer{background-color:white}.CategoriesHeaderSearchActive .SearchContainer .SearchWrapper .SearchInput{background-color:white;color:#000}.SearchStickTop{margin-top:0}@media(max-width: 768px){.SearchContainer{margin:auto 3% auto 0%}}.SearchBarPlaceholder{display:block;width:100%;height:46px}.SearchBarPlaceholder{display:block;width:100%;height:46px}.ClearSearchButton,.ClearSearchButtonMobile{cursor:pointer;position:absolute;right:14px;top:11px}.ClearSearchButton .CloseIconContainer,.ClearSearchButtonMobile .CloseIconContainer{width:25px;height:25px}.ClearSearchButton .CloseIconWrapper,.ClearSearchButtonMobile .CloseIconWrapper{height:25px;width:3px;margin-left:12px;background-color:#FFF;transform:rotate(45deg);Z-index:1}.ClearSearchButton .CloseIcon,.ClearSearchButtonMobile .CloseIcon{height:25px;width:3px;background-color:#FFF;transform:rotate(90deg);Z-index:2}.SearchContainer .CloseIconWrapper,.SearchContainer .CloseIcon{background-color:#FD2839}.ClearSearchButtonMobile{display:none}.CategoriesHeaderSearchActive .ClearSearchButtonMobile{display:block}.CategoriesHeaderSearchActive .ClearSearchButtonMobile .CloseIconWrapper,.CategoriesHeaderSearchActive .ClearSearchButtonMobile .CloseIcon{background-color:#FD2839}</style>`;
14304
14381
 
14305
14382
  init(
14306
14383
  this,