@everymatrix/casino-search 0.0.344 → 0.0.346

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.
@@ -4624,84 +4624,91 @@
4624
4624
  en: {
4625
4625
  Translations: {
4626
4626
  recentSearch: "Recent search",
4627
- loading: 'Loading, please wait',
4627
+ loading: "Loading, please wait",
4628
4628
  searchResult: "Search result",
4629
4629
  cancel: "Cancel",
4630
4630
  notFound: "Game not found!",
4631
4631
  notFoundText:
4632
4632
  "Please type the correct name of the game to start to play.",
4633
+ noRecentSearches: "No recent searches yet. Search for any of our games.",
4633
4634
  },
4634
4635
  },
4635
4636
  de: {
4636
4637
  Translations: {
4637
- recentSearch: "Recent search",
4638
- loading: 'Loading, please wait',
4639
- searchResult: "Search result",
4640
- cancel: "Cancel",
4641
- notFound: "Game not found!",
4642
- notFoundText:
4643
- "Please type the correct name of the game to start to play.",
4638
+ recentSearch: "Kürzlich gesucht",
4639
+ loading: "Es lädt, bitte warten...",
4640
+ searchResult: "Suchresultat",
4641
+ cancel: "Verwerfen",
4642
+ notFound: "Spiel wurde nicht gefunden!",
4643
+ notFoundText: "Bitte den korrekten Spielnamen eingeben um zu spielen",
4644
+ noRecentSearches:
4645
+ "Suche ohne Ergebnisse. Bitte erneut nach einem unserer Spiele suchen.",
4644
4646
  },
4645
4647
  },
4646
4648
  it: {
4647
4649
  Translations: {
4648
4650
  recentSearch: "Recent search",
4649
- loading: 'Loading, please wait',
4651
+ loading: "Loading, please wait",
4650
4652
  searchResult: "Search result",
4651
4653
  cancel: "Cancel",
4652
4654
  notFound: "Game not found!",
4653
4655
  notFoundText:
4654
4656
  "Please type the correct name of the game to start to play.",
4657
+ noRecentSearches: "No recent searches yet. Search for any of our games.",
4655
4658
  },
4656
4659
  },
4657
4660
  fr: {
4658
4661
  Translations: {
4659
4662
  recentSearch: "Recent search",
4660
- loading: 'Loading, please wait',
4663
+ loading: "Loading, please wait",
4661
4664
  searchResult: "Search result",
4662
4665
  cancel: "Cancel",
4663
4666
  notFound: "Game not found!",
4664
4667
  notFoundText:
4665
4668
  "Please type the correct name of the game to start to play.",
4669
+ noRecentSearches: "No recent searches yet. Search for any of our games.",
4666
4670
  },
4667
4671
  },
4668
4672
  es: {
4669
4673
  Translations: {
4670
4674
  recentSearch: "Recent search",
4671
- loading: 'Loading, please wait',
4675
+ loading: "Loading, please wait",
4672
4676
  searchResult: "Search result",
4673
4677
  cancel: "Cancel",
4674
4678
  notFound: "Game not found!",
4675
4679
  notFoundText:
4676
4680
  "Please type the correct name of the game to start to play.",
4681
+ noRecentSearches: "No recent searches yet. Search for any of our games.",
4677
4682
  },
4678
4683
  },
4679
4684
  gr: {
4680
4685
  Translations: {
4681
4686
  recentSearch: "Recent search",
4682
- loading: 'Loading, please wait',
4687
+ loading: "Loading, please wait",
4683
4688
  searchResult: "Search result",
4684
4689
  cancel: "Cancel",
4685
4690
  notFound: "Game not found!",
4686
4691
  notFoundText:
4687
4692
  "Please type the correct name of the game to start to play.",
4693
+ noRecentSearches: "No recent searches yet. Search for any of our games.",
4688
4694
  },
4689
4695
  },
4690
4696
  tr: {
4691
4697
  Translations: {
4692
4698
  recentSearch: "Recent search",
4693
- loading: 'Loading, please wait',
4699
+ loading: "Loading, please wait",
4694
4700
  searchResult: "Search result",
4695
4701
  cancel: "Cancel",
4696
4702
  notFound: "Game not found!",
4697
4703
  notFoundText:
4698
4704
  "Please type the correct name of the game to start to play.",
4705
+ noRecentSearches: "No recent searches yet. Search for any of our games.",
4699
4706
  },
4700
4707
  },
4701
4708
  ru: {
4702
4709
  Translations: {
4703
4710
  recentSearch: "Recent search",
4704
- loading: 'Loading, please wait',
4711
+ loading: "Loading, please wait",
4705
4712
  searchResult: "Search result",
4706
4713
  cancel: "Cancel",
4707
4714
  notFound: "Game not found!",
@@ -4711,79 +4718,86 @@
4711
4718
  },
4712
4719
  ro: {
4713
4720
  Translations: {
4714
- recentSearch: "Recent search",
4715
- loading: 'Loading, please wait',
4716
- searchResult: "Search result",
4717
- cancel: "Cancel",
4718
- notFound: "Game not found!",
4719
- notFoundText:
4720
- "Please type the correct name of the game to start to play.",
4721
+ recentSearch: "Cautari recente",
4722
+ loading: "Se incarca, te rugam asteapta…",
4723
+ searchResult: "Rezultat cautare",
4724
+ cancel: "Anuleaza",
4725
+ notFound: "Nu am gasit niciun rezultat!",
4726
+ notFoundText: "Te rugam sa introduci corect numele jocului. ",
4727
+ noRecentSearches:
4728
+ "Nu sunt cautari recente. Cauta oricare din jocurile noastre.",
4721
4729
  },
4722
4730
  },
4723
4731
  hr: {
4724
4732
  Translations: {
4725
4733
  recentSearch: "Recent search",
4726
- loading: 'Loading, please wait',
4734
+ loading: "Loading, please wait",
4727
4735
  searchResult: "Search result",
4728
4736
  cancel: "Cancel",
4729
4737
  notFound: "Game not found!",
4730
4738
  notFoundText:
4731
4739
  "Please type the correct name of the game to start to play.",
4740
+ noRecentSearches: "No recent searches yet. Search for any of our games.",
4732
4741
  },
4733
4742
  },
4734
4743
  hu: {
4735
4744
  Translations: {
4736
4745
  recentSearch: "Recent search",
4737
- loading: 'Loading, please wait',
4746
+ loading: "Loading, please wait",
4738
4747
  searchResult: "Search result",
4739
4748
  cancel: "Cancel",
4740
4749
  notFound: "Game not found!",
4741
4750
  notFoundText:
4742
4751
  "Please type the correct name of the game to start to play.",
4752
+ noRecentSearches: "No recent searches yet. Search for any of our games.",
4743
4753
  },
4744
4754
  },
4745
4755
  pl: {
4746
4756
  Translations: {
4747
4757
  recentSearch: "Recent search",
4748
- loading: 'Loading, please wait',
4758
+ loading: "Loading, please wait",
4749
4759
  searchResult: "Search result",
4750
4760
  cancel: "Cancel",
4751
4761
  notFound: "Game not found!",
4752
4762
  notFoundText:
4753
4763
  "Please type the correct name of the game to start to play.",
4764
+ noRecentSearches: "No recent searches yet. Search for any of our games.",
4754
4765
  },
4755
4766
  },
4756
4767
  pt: {
4757
4768
  Translations: {
4758
4769
  recentSearch: "Recent search",
4759
- loading: 'Loading, please wait',
4770
+ loading: "Loading, please wait",
4760
4771
  searchResult: "Search result",
4761
4772
  cancel: "Cancel",
4762
4773
  notFound: "Game not found!",
4763
4774
  notFoundText:
4764
4775
  "Please type the correct name of the game to start to play.",
4776
+ noRecentSearches: "No recent searches yet. Search for any of our games.",
4765
4777
  },
4766
4778
  },
4767
4779
  sl: {
4768
4780
  Translations: {
4769
4781
  recentSearch: "Recent search",
4770
- loading: 'Loading, please wait',
4782
+ loading: "Loading, please wait",
4771
4783
  searchResult: "Search result",
4772
4784
  cancel: "Cancel",
4773
4785
  notFound: "Game not found!",
4774
4786
  notFoundText:
4775
4787
  "Please type the correct name of the game to start to play.",
4788
+ noRecentSearches: "No recent searches yet. Search for any of our games.",
4776
4789
  },
4777
4790
  },
4778
4791
  sr: {
4779
4792
  Translations: {
4780
4793
  recentSearch: "Recent search",
4781
- loading: 'Loading, please wait',
4794
+ loading: "Loading, please wait",
4782
4795
  searchResult: "Search result",
4783
4796
  cancel: "Cancel",
4784
4797
  notFound: "Game not found!",
4785
4798
  notFoundText:
4786
4799
  "Please type the correct name of the game to start to play.",
4800
+ noRecentSearches: "No recent searches yet. Search for any of our games.",
4787
4801
  },
4788
4802
  },
4789
4803
  };
@@ -12916,7 +12930,7 @@
12916
12930
  }
12917
12931
 
12918
12932
  // (603:16) {#if roulleteresults && roulleteresults[i]}
12919
- function create_if_block_5(ctx) {
12933
+ function create_if_block_5$1(ctx) {
12920
12934
  let if_block_anchor;
12921
12935
 
12922
12936
  function select_block_type_3(ctx, dirty) {
@@ -12957,7 +12971,7 @@
12957
12971
 
12958
12972
  dispatch_dev("SvelteRegisterBlock", {
12959
12973
  block,
12960
- id: create_if_block_5.name,
12974
+ id: create_if_block_5$1.name,
12961
12975
  type: "if",
12962
12976
  source: "(603:16) {#if roulleteresults && roulleteresults[i]}",
12963
12977
  ctx
@@ -13055,7 +13069,7 @@
13055
13069
  // (602:14) {#each new Array(numberofdisplayedresults) as garbage, i}
13056
13070
  function create_each_block_1(ctx) {
13057
13071
  let if_block_anchor;
13058
- let if_block = /*roulleteresults*/ ctx[11] && /*roulleteresults*/ ctx[11][/*i*/ ctx[107]] && create_if_block_5(ctx);
13072
+ let if_block = /*roulleteresults*/ ctx[11] && /*roulleteresults*/ ctx[11][/*i*/ ctx[107]] && create_if_block_5$1(ctx);
13059
13073
 
13060
13074
  const block = {
13061
13075
  c: function create() {
@@ -13071,7 +13085,7 @@
13071
13085
  if (if_block) {
13072
13086
  if_block.p(ctx, dirty);
13073
13087
  } else {
13074
- if_block = create_if_block_5(ctx);
13088
+ if_block = create_if_block_5$1(ctx);
13075
13089
  if_block.c();
13076
13090
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
13077
13091
  }
@@ -14966,19 +14980,20 @@
14966
14980
 
14967
14981
  function get_each_context(ctx, list, i) {
14968
14982
  const child_ctx = ctx.slice();
14969
- child_ctx[32] = list[i];
14983
+ child_ctx[33] = list[i];
14970
14984
  return child_ctx;
14971
14985
  }
14972
14986
 
14973
- // (199:4) {:else}
14987
+ // (205:4) {:else}
14974
14988
  function create_else_block(ctx) {
14975
14989
  let t0;
14976
14990
  let div;
14977
14991
  let t1;
14992
+ let div_class_value;
14978
14993
 
14979
14994
  function select_block_type_1(ctx, dirty) {
14980
14995
  if (/*searchActive*/ ctx[6] == true && /*searchValue*/ ctx[2].length < 2) return create_if_block_3;
14981
- if (/*searchArray*/ ctx[4].length != 0) return create_if_block_4;
14996
+ if (/*searchArray*/ ctx[4].length != 0) return create_if_block_5;
14982
14997
  }
14983
14998
 
14984
14999
  let current_block_type = select_block_type_1(ctx);
@@ -14994,8 +15009,8 @@
14994
15009
  if (if_block1) if_block1.c();
14995
15010
  t1 = space();
14996
15011
  if (if_block2) if_block2.c();
14997
- attr_dev(div, "class", "SearchResultsContainer");
14998
- add_location(div, file, 204, 6, 7103);
15012
+ attr_dev(div, "class", div_class_value = "SearchResultsContainer " + (/*searchActive*/ ctx[6] == true ? '' : 'NotVisible'));
15013
+ add_location(div, file, 215, 6, 7569);
14999
15014
  },
15000
15015
  m: function mount(target, anchor) {
15001
15016
  if (if_block0) if_block0.m(target, anchor);
@@ -15043,6 +15058,10 @@
15043
15058
  if_block2.d(1);
15044
15059
  if_block2 = null;
15045
15060
  }
15061
+
15062
+ if (dirty[0] & /*searchActive*/ 64 && div_class_value !== (div_class_value = "SearchResultsContainer " + (/*searchActive*/ ctx[6] == true ? '' : 'NotVisible'))) {
15063
+ attr_dev(div, "class", div_class_value);
15064
+ }
15046
15065
  },
15047
15066
  d: function destroy(detaching) {
15048
15067
  if (if_block0) {
@@ -15060,14 +15079,14 @@
15060
15079
  block,
15061
15080
  id: create_else_block.name,
15062
15081
  type: "else",
15063
- source: "(199:4) {:else}",
15082
+ source: "(205:4) {:else}",
15064
15083
  ctx
15065
15084
  });
15066
15085
 
15067
15086
  return block;
15068
15087
  }
15069
15088
 
15070
- // (197:4) {#if isLoading}
15089
+ // (203:4) {#if isLoading}
15071
15090
  function create_if_block(ctx) {
15072
15091
  let p;
15073
15092
  let t_value = /*$_*/ ctx[9]('Translations.loading') + "";
@@ -15077,7 +15096,7 @@
15077
15096
  c: function create() {
15078
15097
  p = element("p");
15079
15098
  t = text(t_value);
15080
- add_location(p, file, 197, 6, 6793);
15099
+ add_location(p, file, 203, 6, 7061);
15081
15100
  },
15082
15101
  m: function mount(target, anchor) {
15083
15102
  insert_dev(target, p, anchor);
@@ -15095,15 +15114,15 @@
15095
15114
  block,
15096
15115
  id: create_if_block.name,
15097
15116
  type: "if",
15098
- source: "(197:4) {#if isLoading}",
15117
+ source: "(203:4) {#if isLoading}",
15099
15118
  ctx
15100
15119
  });
15101
15120
 
15102
15121
  return block;
15103
15122
  }
15104
15123
 
15105
- // (202:40)
15106
- function create_if_block_4(ctx) {
15124
+ // (213:40)
15125
+ function create_if_block_5(ctx) {
15107
15126
  let p;
15108
15127
  let t_value = /*$_*/ ctx[9]('Translations.searchResult') + "";
15109
15128
  let t;
@@ -15113,7 +15132,7 @@
15113
15132
  p = element("p");
15114
15133
  t = text(t_value);
15115
15134
  attr_dev(p, "class", "SearchMessage");
15116
- add_location(p, file, 202, 8, 7021);
15135
+ add_location(p, file, 213, 8, 7487);
15117
15136
  },
15118
15137
  m: function mount(target, anchor) {
15119
15138
  insert_dev(target, p, anchor);
@@ -15129,37 +15148,62 @@
15129
15148
 
15130
15149
  dispatch_dev("SvelteRegisterBlock", {
15131
15150
  block,
15132
- id: create_if_block_4.name,
15151
+ id: create_if_block_5.name,
15133
15152
  type: "if",
15134
- source: "(202:40) ",
15153
+ source: "(213:40) ",
15135
15154
  ctx
15136
15155
  });
15137
15156
 
15138
15157
  return block;
15139
15158
  }
15140
15159
 
15141
- // (200:6) {#if searchActive == true && searchValue.length < 2}
15160
+ // (206:6) {#if searchActive == true && searchValue.length < 2}
15142
15161
  function create_if_block_3(ctx) {
15143
15162
  let p;
15144
- let t_value = /*$_*/ ctx[9]('Translations.recentSearch') + "";
15145
- let t;
15163
+ let t0_value = /*$_*/ ctx[9]('Translations.recentSearch') + "";
15164
+ let t0;
15165
+ let t1;
15166
+ let if_block_anchor;
15167
+ let if_block = /*searchArray*/ ctx[4].length == 0 && create_if_block_4(ctx);
15146
15168
 
15147
15169
  const block = {
15148
15170
  c: function create() {
15149
15171
  p = element("p");
15150
- t = text(t_value);
15172
+ t0 = text(t0_value);
15173
+ t1 = space();
15174
+ if (if_block) if_block.c();
15175
+ if_block_anchor = empty();
15151
15176
  attr_dev(p, "class", "SearchMessage");
15152
- add_location(p, file, 200, 8, 6908);
15177
+ add_location(p, file, 206, 8, 7176);
15153
15178
  },
15154
15179
  m: function mount(target, anchor) {
15155
15180
  insert_dev(target, p, anchor);
15156
- append_dev(p, t);
15181
+ append_dev(p, t0);
15182
+ insert_dev(target, t1, anchor);
15183
+ if (if_block) if_block.m(target, anchor);
15184
+ insert_dev(target, if_block_anchor, anchor);
15157
15185
  },
15158
15186
  p: function update(ctx, dirty) {
15159
- if (dirty[0] & /*$_*/ 512 && t_value !== (t_value = /*$_*/ ctx[9]('Translations.recentSearch') + "")) set_data_dev(t, t_value);
15187
+ if (dirty[0] & /*$_*/ 512 && t0_value !== (t0_value = /*$_*/ ctx[9]('Translations.recentSearch') + "")) set_data_dev(t0, t0_value);
15188
+
15189
+ if (/*searchArray*/ ctx[4].length == 0) {
15190
+ if (if_block) {
15191
+ if_block.p(ctx, dirty);
15192
+ } else {
15193
+ if_block = create_if_block_4(ctx);
15194
+ if_block.c();
15195
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
15196
+ }
15197
+ } else if (if_block) {
15198
+ if_block.d(1);
15199
+ if_block = null;
15200
+ }
15160
15201
  },
15161
15202
  d: function destroy(detaching) {
15162
15203
  if (detaching) detach_dev(p);
15204
+ if (detaching) detach_dev(t1);
15205
+ if (if_block) if_block.d(detaching);
15206
+ if (detaching) detach_dev(if_block_anchor);
15163
15207
  }
15164
15208
  };
15165
15209
 
@@ -15167,14 +15211,55 @@
15167
15211
  block,
15168
15212
  id: create_if_block_3.name,
15169
15213
  type: "if",
15170
- source: "(200:6) {#if searchActive == true && searchValue.length < 2}",
15214
+ source: "(206:6) {#if searchActive == true && searchValue.length < 2}",
15171
15215
  ctx
15172
15216
  });
15173
15217
 
15174
15218
  return block;
15175
15219
  }
15176
15220
 
15177
- // (206:8) {#if searchCancelled === false}
15221
+ // (208:10) {#if searchArray.length == 0}
15222
+ function create_if_block_4(ctx) {
15223
+ let div;
15224
+ let p;
15225
+ let t_value = /*$_*/ ctx[9]('Translations.noRecentSearches') + "";
15226
+ let t;
15227
+
15228
+ const block = {
15229
+ c: function create() {
15230
+ div = element("div");
15231
+ p = element("p");
15232
+ t = text(t_value);
15233
+ attr_dev(p, "class", "SearchMessage");
15234
+ add_location(p, file, 209, 12, 7337);
15235
+ attr_dev(div, "class", "ResultsContainerError");
15236
+ add_location(div, file, 208, 10, 7289);
15237
+ },
15238
+ m: function mount(target, anchor) {
15239
+ insert_dev(target, div, anchor);
15240
+ append_dev(div, p);
15241
+ append_dev(p, t);
15242
+ },
15243
+ p: function update(ctx, dirty) {
15244
+ if (dirty[0] & /*$_*/ 512 && t_value !== (t_value = /*$_*/ ctx[9]('Translations.noRecentSearches') + "")) set_data_dev(t, t_value);
15245
+ },
15246
+ d: function destroy(detaching) {
15247
+ if (detaching) detach_dev(div);
15248
+ }
15249
+ };
15250
+
15251
+ dispatch_dev("SvelteRegisterBlock", {
15252
+ block,
15253
+ id: create_if_block_4.name,
15254
+ type: "if",
15255
+ source: "(208:10) {#if searchArray.length == 0}",
15256
+ ctx
15257
+ });
15258
+
15259
+ return block;
15260
+ }
15261
+
15262
+ // (217:8) {#if searchCancelled === false}
15178
15263
  function create_if_block_2(ctx) {
15179
15264
  let each_1_anchor;
15180
15265
  let each_value = /*searchArray*/ ctx[4];
@@ -15235,14 +15320,14 @@
15235
15320
  block,
15236
15321
  id: create_if_block_2.name,
15237
15322
  type: "if",
15238
- source: "(206:8) {#if searchCancelled === false}",
15323
+ source: "(217:8) {#if searchCancelled === false}",
15239
15324
  ctx
15240
15325
  });
15241
15326
 
15242
15327
  return block;
15243
15328
  }
15244
15329
 
15245
- // (207:10) {#each searchArray as game}
15330
+ // (218:10) {#each searchArray as game}
15246
15331
  function create_each_block(ctx) {
15247
15332
  let casino_game_thumbnail;
15248
15333
  let casino_game_thumbnail_gamethumbnail_value;
@@ -15260,22 +15345,22 @@
15260
15345
  c: function create() {
15261
15346
  casino_game_thumbnail = element("casino-game-thumbnail");
15262
15347
  set_custom_element_data(casino_game_thumbnail, "lang", /*lang*/ ctx[1]);
15263
- set_custom_element_data(casino_game_thumbnail, "gamethumbnail", casino_game_thumbnail_gamethumbnail_value = /*game*/ ctx[32].thumbnail);
15264
- set_custom_element_data(casino_game_thumbnail, "gamename", casino_game_thumbnail_gamename_value = /*game*/ ctx[32].name);
15265
- set_custom_element_data(casino_game_thumbnail, "gamevendor", casino_game_thumbnail_gamevendor_value = /*game*/ ctx[32].vendor.name);
15266
- set_custom_element_data(casino_game_thumbnail, "gameisnew", casino_game_thumbnail_gameisnew_value = /*game*/ ctx[32].isNew);
15267
- set_custom_element_data(casino_game_thumbnail, "gamepopularity", casino_game_thumbnail_gamepopularity_value = /*game*/ ctx[32].popularity);
15268
- set_custom_element_data(casino_game_thumbnail, "gamecellsize", casino_game_thumbnail_gamecellsize_value = /*game*/ ctx[32].cellSize);
15269
- set_custom_element_data(casino_game_thumbnail, "gameid", casino_game_thumbnail_gameid_value = /*game*/ ctx[32].id);
15270
- set_custom_element_data(casino_game_thumbnail, "gamefunmode", casino_game_thumbnail_gamefunmode_value = /*game*/ ctx[32].hasFunMode);
15271
- set_custom_element_data(casino_game_thumbnail, "gamefavorite", casino_game_thumbnail_gamefavorite_value = /*game*/ ctx[32].isFavorite);
15272
-
15273
- set_custom_element_data(casino_game_thumbnail, "livelobbyendpoint", casino_game_thumbnail_livelobbyendpoint_value = /*game*/ ctx[32].details
15274
- ? /*game*/ ctx[32].launchUrl
15348
+ set_custom_element_data(casino_game_thumbnail, "gamethumbnail", casino_game_thumbnail_gamethumbnail_value = /*game*/ ctx[33].thumbnail);
15349
+ set_custom_element_data(casino_game_thumbnail, "gamename", casino_game_thumbnail_gamename_value = /*game*/ ctx[33].name);
15350
+ set_custom_element_data(casino_game_thumbnail, "gamevendor", casino_game_thumbnail_gamevendor_value = /*game*/ ctx[33].vendor.name);
15351
+ set_custom_element_data(casino_game_thumbnail, "gameisnew", casino_game_thumbnail_gameisnew_value = /*game*/ ctx[33].isNew);
15352
+ set_custom_element_data(casino_game_thumbnail, "gamepopularity", casino_game_thumbnail_gamepopularity_value = /*game*/ ctx[33].popularity);
15353
+ set_custom_element_data(casino_game_thumbnail, "gamecellsize", casino_game_thumbnail_gamecellsize_value = /*game*/ ctx[33].cellSize);
15354
+ set_custom_element_data(casino_game_thumbnail, "gameid", casino_game_thumbnail_gameid_value = /*game*/ ctx[33].id);
15355
+ set_custom_element_data(casino_game_thumbnail, "gamefunmode", casino_game_thumbnail_gamefunmode_value = /*game*/ ctx[33].hasFunMode);
15356
+ set_custom_element_data(casino_game_thumbnail, "gamefavorite", casino_game_thumbnail_gamefavorite_value = /*game*/ ctx[33].isFavorite);
15357
+
15358
+ set_custom_element_data(casino_game_thumbnail, "livelobbyendpoint", casino_game_thumbnail_livelobbyendpoint_value = /*game*/ ctx[33].details
15359
+ ? /*game*/ ctx[33].launchUrl
15275
15360
  : '');
15276
15361
 
15277
15362
  set_custom_element_data(casino_game_thumbnail, "endpoint", /*endpoint*/ ctx[0]);
15278
- add_location(casino_game_thumbnail, file, 207, 12, 7230);
15363
+ add_location(casino_game_thumbnail, file, 218, 12, 7738);
15279
15364
  },
15280
15365
  m: function mount(target, anchor) {
15281
15366
  insert_dev(target, casino_game_thumbnail, anchor);
@@ -15285,44 +15370,44 @@
15285
15370
  set_custom_element_data(casino_game_thumbnail, "lang", /*lang*/ ctx[1]);
15286
15371
  }
15287
15372
 
15288
- if (dirty[0] & /*searchArray*/ 16 && casino_game_thumbnail_gamethumbnail_value !== (casino_game_thumbnail_gamethumbnail_value = /*game*/ ctx[32].thumbnail)) {
15373
+ if (dirty[0] & /*searchArray*/ 16 && casino_game_thumbnail_gamethumbnail_value !== (casino_game_thumbnail_gamethumbnail_value = /*game*/ ctx[33].thumbnail)) {
15289
15374
  set_custom_element_data(casino_game_thumbnail, "gamethumbnail", casino_game_thumbnail_gamethumbnail_value);
15290
15375
  }
15291
15376
 
15292
- if (dirty[0] & /*searchArray*/ 16 && casino_game_thumbnail_gamename_value !== (casino_game_thumbnail_gamename_value = /*game*/ ctx[32].name)) {
15377
+ if (dirty[0] & /*searchArray*/ 16 && casino_game_thumbnail_gamename_value !== (casino_game_thumbnail_gamename_value = /*game*/ ctx[33].name)) {
15293
15378
  set_custom_element_data(casino_game_thumbnail, "gamename", casino_game_thumbnail_gamename_value);
15294
15379
  }
15295
15380
 
15296
- if (dirty[0] & /*searchArray*/ 16 && casino_game_thumbnail_gamevendor_value !== (casino_game_thumbnail_gamevendor_value = /*game*/ ctx[32].vendor.name)) {
15381
+ if (dirty[0] & /*searchArray*/ 16 && casino_game_thumbnail_gamevendor_value !== (casino_game_thumbnail_gamevendor_value = /*game*/ ctx[33].vendor.name)) {
15297
15382
  set_custom_element_data(casino_game_thumbnail, "gamevendor", casino_game_thumbnail_gamevendor_value);
15298
15383
  }
15299
15384
 
15300
- if (dirty[0] & /*searchArray*/ 16 && casino_game_thumbnail_gameisnew_value !== (casino_game_thumbnail_gameisnew_value = /*game*/ ctx[32].isNew)) {
15385
+ if (dirty[0] & /*searchArray*/ 16 && casino_game_thumbnail_gameisnew_value !== (casino_game_thumbnail_gameisnew_value = /*game*/ ctx[33].isNew)) {
15301
15386
  set_custom_element_data(casino_game_thumbnail, "gameisnew", casino_game_thumbnail_gameisnew_value);
15302
15387
  }
15303
15388
 
15304
- if (dirty[0] & /*searchArray*/ 16 && casino_game_thumbnail_gamepopularity_value !== (casino_game_thumbnail_gamepopularity_value = /*game*/ ctx[32].popularity)) {
15389
+ if (dirty[0] & /*searchArray*/ 16 && casino_game_thumbnail_gamepopularity_value !== (casino_game_thumbnail_gamepopularity_value = /*game*/ ctx[33].popularity)) {
15305
15390
  set_custom_element_data(casino_game_thumbnail, "gamepopularity", casino_game_thumbnail_gamepopularity_value);
15306
15391
  }
15307
15392
 
15308
- if (dirty[0] & /*searchArray*/ 16 && casino_game_thumbnail_gamecellsize_value !== (casino_game_thumbnail_gamecellsize_value = /*game*/ ctx[32].cellSize)) {
15393
+ if (dirty[0] & /*searchArray*/ 16 && casino_game_thumbnail_gamecellsize_value !== (casino_game_thumbnail_gamecellsize_value = /*game*/ ctx[33].cellSize)) {
15309
15394
  set_custom_element_data(casino_game_thumbnail, "gamecellsize", casino_game_thumbnail_gamecellsize_value);
15310
15395
  }
15311
15396
 
15312
- if (dirty[0] & /*searchArray*/ 16 && casino_game_thumbnail_gameid_value !== (casino_game_thumbnail_gameid_value = /*game*/ ctx[32].id)) {
15397
+ if (dirty[0] & /*searchArray*/ 16 && casino_game_thumbnail_gameid_value !== (casino_game_thumbnail_gameid_value = /*game*/ ctx[33].id)) {
15313
15398
  set_custom_element_data(casino_game_thumbnail, "gameid", casino_game_thumbnail_gameid_value);
15314
15399
  }
15315
15400
 
15316
- if (dirty[0] & /*searchArray*/ 16 && casino_game_thumbnail_gamefunmode_value !== (casino_game_thumbnail_gamefunmode_value = /*game*/ ctx[32].hasFunMode)) {
15401
+ if (dirty[0] & /*searchArray*/ 16 && casino_game_thumbnail_gamefunmode_value !== (casino_game_thumbnail_gamefunmode_value = /*game*/ ctx[33].hasFunMode)) {
15317
15402
  set_custom_element_data(casino_game_thumbnail, "gamefunmode", casino_game_thumbnail_gamefunmode_value);
15318
15403
  }
15319
15404
 
15320
- if (dirty[0] & /*searchArray*/ 16 && casino_game_thumbnail_gamefavorite_value !== (casino_game_thumbnail_gamefavorite_value = /*game*/ ctx[32].isFavorite)) {
15405
+ if (dirty[0] & /*searchArray*/ 16 && casino_game_thumbnail_gamefavorite_value !== (casino_game_thumbnail_gamefavorite_value = /*game*/ ctx[33].isFavorite)) {
15321
15406
  set_custom_element_data(casino_game_thumbnail, "gamefavorite", casino_game_thumbnail_gamefavorite_value);
15322
15407
  }
15323
15408
 
15324
- if (dirty[0] & /*searchArray*/ 16 && casino_game_thumbnail_livelobbyendpoint_value !== (casino_game_thumbnail_livelobbyendpoint_value = /*game*/ ctx[32].details
15325
- ? /*game*/ ctx[32].launchUrl
15409
+ if (dirty[0] & /*searchArray*/ 16 && casino_game_thumbnail_livelobbyendpoint_value !== (casino_game_thumbnail_livelobbyendpoint_value = /*game*/ ctx[33].details
15410
+ ? /*game*/ ctx[33].launchUrl
15326
15411
  : '')) {
15327
15412
  set_custom_element_data(casino_game_thumbnail, "livelobbyendpoint", casino_game_thumbnail_livelobbyendpoint_value);
15328
15413
  }
@@ -15340,14 +15425,14 @@
15340
15425
  block,
15341
15426
  id: create_each_block.name,
15342
15427
  type: "each",
15343
- source: "(207:10) {#each searchArray as game}",
15428
+ source: "(218:10) {#each searchArray as game}",
15344
15429
  ctx
15345
15430
  });
15346
15431
 
15347
15432
  return block;
15348
15433
  }
15349
15434
 
15350
- // (224:8) {#if searchValue.length >= 2 && searchArray.length == 0}
15435
+ // (235:8) {#if searchValue.length >= 2 && searchArray.length == 0}
15351
15436
  function create_if_block_1(ctx) {
15352
15437
  let div;
15353
15438
  let p0;
@@ -15367,10 +15452,10 @@
15367
15452
  p1 = element("p");
15368
15453
  t2 = text(t2_value);
15369
15454
  attr_dev(p0, "class", "SearchMessage");
15370
- add_location(p0, file, 225, 12, 7946);
15371
- add_location(p1, file, 226, 12, 8017);
15455
+ add_location(p0, file, 236, 12, 8454);
15456
+ add_location(p1, file, 237, 12, 8525);
15372
15457
  attr_dev(div, "class", "ResultsContainerError");
15373
- add_location(div, file, 224, 10, 7898);
15458
+ add_location(div, file, 235, 10, 8406);
15374
15459
  },
15375
15460
  m: function mount(target, anchor) {
15376
15461
  insert_dev(target, div, anchor);
@@ -15393,7 +15478,7 @@
15393
15478
  block,
15394
15479
  id: create_if_block_1.name,
15395
15480
  type: "if",
15396
- source: "(224:8) {#if searchValue.length >= 2 && searchArray.length == 0}",
15481
+ source: "(235:8) {#if searchValue.length >= 2 && searchArray.length == 0}",
15397
15482
  ctx
15398
15483
  });
15399
15484
 
@@ -15460,46 +15545,46 @@
15460
15545
  attr_dev(path0, "stroke-linecap", "round");
15461
15546
  attr_dev(path0, "stroke-linejoin", "round");
15462
15547
  attr_dev(path0, "d", "m10.48 10.985 2.21 2.373");
15463
- add_location(path0, file, 180, 10, 5791);
15548
+ add_location(path0, file, 186, 10, 6059);
15464
15549
  attr_dev(circle, "cx", "6.5");
15465
15550
  attr_dev(circle, "cy", "6.5");
15466
15551
  attr_dev(circle, "r", "5.75");
15467
15552
  attr_dev(circle, "stroke", "#212121");
15468
15553
  attr_dev(circle, "stroke-width", "1.5");
15469
- add_location(circle, file, 181, 10, 5919);
15554
+ add_location(circle, file, 187, 10, 6187);
15470
15555
  attr_dev(svg0, "width", "14");
15471
15556
  attr_dev(svg0, "height", "15");
15472
15557
  attr_dev(svg0, "fill", "none");
15473
15558
  attr_dev(svg0, "xmlns", "http://www.w3.org/2000/svg");
15474
- add_location(svg0, file, 179, 8, 5705);
15559
+ add_location(svg0, file, 185, 8, 5973);
15475
15560
  attr_dev(div0, "class", "SearchIcon");
15476
- add_location(div0, file, 178, 6, 5672);
15561
+ add_location(div0, file, 184, 6, 5940);
15477
15562
  attr_dev(input, "class", "SearchInput");
15478
15563
  attr_dev(input, "type", "search");
15479
15564
  attr_dev(input, "placeholder", "Search for Games");
15480
- add_location(input, file, 185, 8, 6064);
15565
+ add_location(input, file, 191, 8, 6332);
15481
15566
  attr_dev(path1, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8");
15482
15567
  attr_dev(path1, "stroke", "#717171");
15483
15568
  attr_dev(path1, "stroke-width", "2");
15484
15569
  attr_dev(path1, "stroke-linecap", "round");
15485
15570
  attr_dev(path1, "stroke-linejoin", "round");
15486
- add_location(path1, file, 188, 12, 6424);
15571
+ add_location(path1, file, 194, 12, 6692);
15487
15572
  attr_dev(svg1, "width", "11");
15488
15573
  attr_dev(svg1, "height", "11");
15489
15574
  attr_dev(svg1, "fill", "none");
15490
15575
  attr_dev(svg1, "xmlns", "http://www.w3.org/2000/svg");
15491
- add_location(svg1, file, 187, 10, 6336);
15576
+ add_location(svg1, file, 193, 10, 6604);
15492
15577
  attr_dev(span, "class", span_class_value = "SearchClearButton " + (/*searchValue*/ ctx[2].length != 0 ? '' : 'NotVisible'));
15493
- add_location(span, file, 186, 8, 6215);
15578
+ add_location(span, file, 192, 8, 6483);
15494
15579
  attr_dev(div1, "class", "SearchContainer");
15495
- add_location(div1, file, 184, 6, 6026);
15580
+ add_location(div1, file, 190, 6, 6294);
15496
15581
  attr_dev(small, "class", small_class_value = "SearchCancelButton " + (/*searchCancelled*/ ctx[3] ? 'NotVisible' : ''));
15497
- add_location(small, file, 192, 6, 6600);
15582
+ add_location(small, file, 198, 6, 6868);
15498
15583
  attr_dev(div2, "class", "Search");
15499
- add_location(div2, file, 177, 4, 5645);
15584
+ add_location(div2, file, 183, 4, 5913);
15500
15585
  attr_dev(div3, "class", "CasinoSearch");
15501
- add_location(div3, file, 176, 2, 5614);
15502
- add_location(div4, file, 175, 0, 5571);
15586
+ add_location(div3, file, 182, 2, 5882);
15587
+ add_location(div4, file, 181, 0, 5839);
15503
15588
  },
15504
15589
  l: function claim(nodes) {
15505
15590
  throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
@@ -15653,6 +15738,8 @@
15653
15738
  }
15654
15739
  }
15655
15740
  }
15741
+
15742
+ sendSearchStatus(searchActive);
15656
15743
  };
15657
15744
 
15658
15745
  const getGames = url => {
@@ -15722,6 +15809,7 @@
15722
15809
  $$invalidate(7, isLoading = false);
15723
15810
  $$invalidate(4, searchArray = []);
15724
15811
  $$invalidate(6, searchActive = false);
15812
+ sendSearchStatus(searchActive);
15725
15813
  };
15726
15814
 
15727
15815
  const clearSearch = () => {
@@ -15729,6 +15817,16 @@
15729
15817
  searchElement.focus();
15730
15818
  };
15731
15819
 
15820
+ // --- Communication with other widgets
15821
+ const sendSearchStatus = searchStatus => {
15822
+ window.postMessage({
15823
+ type: searchStatus === true
15824
+ ? 'searchActive'
15825
+ : 'searchCancelled',
15826
+ searchStatus
15827
+ });
15828
+ };
15829
+
15732
15830
  const setActiveLanguage = () => {
15733
15831
  setLocale(lang);
15734
15832
  };
@@ -15831,6 +15929,7 @@
15831
15929
  getCookieValue,
15832
15930
  cancelSearch,
15833
15931
  clearSearch,
15932
+ sendSearchStatus,
15834
15933
  setActiveLanguage,
15835
15934
  setClientStyling,
15836
15935
  setClientStylingURL,
@@ -15921,7 +16020,7 @@
15921
16020
  class CasinoSearch extends SvelteElement {
15922
16021
  constructor(options) {
15923
16022
  super();
15924
- this.shadowRoot.innerHTML = `<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.NotVisible{display:none}.CasinoSearch{margin:16px}.Search{display:flex;align-items:center;position:relative;justify-content:space-between;margin-bottom:20px}.SearchIcon{position:absolute;left:5%;z-index:1}.SearchIcon svg{height:14px;width:13px}.SearchContainer{width:100%;position:relative}.SearchInput{border-radius:4px;border:1px solid #cacaca;color:#717171;display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%}.SearchInput::placeholder{color:#717171;font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid #d9d7d7}.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:15px}.SearchCancelButton{color:#717171;font-weight:300;margin-left:8px}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:#212121}.SearchResultsContainer{display:grid;gap:8px;grid-template-columns:repeat(auto-fill, minmax(Min(167px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 167px);grid-auto-rows:167px;grid-auto-columns:167px;grid-auto-flow:row dense}.ResultsContainerError{text-align:center;width:300px;color:#717171;font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}</style>`;
16023
+ this.shadowRoot.innerHTML = `<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CasinoSearch{margin:16px}.Search{display:flex;align-items:center;position:relative;justify-content:space-between;margin-bottom:20px}.SearchIcon{position:absolute;left:5%;z-index:1}.SearchIcon svg{height:14px;width:13px}.SearchContainer{width:100%;position:relative}.SearchInput{border-radius:4px;border:1px solid #cacaca;color:#717171;display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%}.SearchInput::placeholder{color:#717171;font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid #d9d7d7}.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:15px}.SearchCancelButton{color:#717171;font-weight:300;margin-left:8px}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:#212121}.SearchResultsContainer{display:grid;gap:8px;grid-template-columns:repeat(auto-fill, minmax(Min(167px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 167px);grid-auto-rows:167px;grid-auto-columns:167px;grid-auto-flow:row dense}.ResultsContainerError{text-align:center;width:300px;color:#717171;font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.NotVisible{display:none}</style>`;
15925
16024
 
15926
16025
  init(
15927
16026
  this,