@everymatrix/casino-search 1.4.0 → 1.4.1

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.
@@ -4683,16 +4683,19 @@
4683
4683
  noRecentSearches: "Pas encore de recherches récentes. Recherchez l'un de nos jeux.",
4684
4684
  },
4685
4685
  },
4686
+
4687
+
4686
4688
  es: {
4687
4689
  Translations: {
4688
- recentSearch: "Recent search",
4689
- loading: "Loading, please wait",
4690
- searchResult: "Search result",
4691
- cancel: "Cancel",
4692
- notFound: "Game not found!",
4690
+ recentSearch: "Busqueda reciente",
4691
+ placeHolderSearchGames: 'Buscar juegos',
4692
+ loading: "Cargando",
4693
+ searchResult: "Resultado de busqueda",
4694
+ cancel: "Cancelar",
4695
+ notFound: "Juego no encontrado!",
4693
4696
  notFoundText:
4694
- "Please type the correct name of the game to start to play.",
4695
- noRecentSearches: "No recent searches yet. Search for any of our games.",
4697
+ "Por favor escriba el nombre correcto del juego para empezar a jugar.",
4698
+ noRecentSearches: "No hay búsquedas recientes. Busca cualquiera de nuestros juegos",
4696
4699
  },
4697
4700
  },
4698
4701
  gr: {
@@ -12042,11 +12045,11 @@
12042
12045
  },
12043
12046
  es: {
12044
12047
  gameThumbnail: {
12045
- playNow: 'Empezar ahora!',
12048
+ playNow: 'Juega ahora!',
12046
12049
  new: 'NUEVO',
12047
- hot: 'Hot',
12048
- opens: 'Abierto ',
12049
- full: 'Mesa completa - apuesta detrás',
12050
+ hot: 'HOT',
12051
+ opens: 'Abiertas',
12052
+ full: 'Mesa llena - Apostar de pie',
12050
12053
  dealer: 'Dealer',
12051
12054
  }
12052
12055
  },
@@ -15174,7 +15177,7 @@
15174
15177
  return child_ctx;
15175
15178
  }
15176
15179
 
15177
- // (287:4) {:else}
15180
+ // (288:4) {:else}
15178
15181
  function create_else_block(ctx) {
15179
15182
  let t0;
15180
15183
  let div;
@@ -15200,7 +15203,7 @@
15200
15203
  t1 = space();
15201
15204
  if (if_block2) if_block2.c();
15202
15205
  attr_dev(div, "class", div_class_value = "SearchResultsContainer " + (/*searchActive*/ ctx[13] == true ? '' : 'NotVisible'));
15203
- add_location(div, file, 297, 6, 10708);
15206
+ add_location(div, file, 298, 6, 10738);
15204
15207
  },
15205
15208
  m: function mount(target, anchor) {
15206
15209
  if (if_block0) if_block0.m(target, anchor);
@@ -15269,14 +15272,14 @@
15269
15272
  block,
15270
15273
  id: create_else_block.name,
15271
15274
  type: "else",
15272
- source: "(287:4) {:else}",
15275
+ source: "(288:4) {:else}",
15273
15276
  ctx
15274
15277
  });
15275
15278
 
15276
15279
  return block;
15277
15280
  }
15278
15281
 
15279
- // (285:4) {#if isLoading}
15282
+ // (286:4) {#if isLoading}
15280
15283
  function create_if_block(ctx) {
15281
15284
  let p;
15282
15285
  let t_value = /*$_*/ ctx[17]('Translations.loading') + "";
@@ -15286,7 +15289,7 @@
15286
15289
  c: function create() {
15287
15290
  p = element("p");
15288
15291
  t = text(t_value);
15289
- add_location(p, file, 285, 6, 10026);
15292
+ add_location(p, file, 286, 6, 10056);
15290
15293
  },
15291
15294
  m: function mount(target, anchor) {
15292
15295
  insert_dev(target, p, anchor);
@@ -15304,14 +15307,14 @@
15304
15307
  block,
15305
15308
  id: create_if_block.name,
15306
15309
  type: "if",
15307
- source: "(285:4) {#if isLoading}",
15310
+ source: "(286:4) {#if isLoading}",
15308
15311
  ctx
15309
15312
  });
15310
15313
 
15311
15314
  return block;
15312
15315
  }
15313
15316
 
15314
- // (295:40)
15317
+ // (296:40)
15315
15318
  function create_if_block_5(ctx) {
15316
15319
  let p;
15317
15320
  let t_value = /*$_*/ ctx[17]('Translations.searchResult') + "";
@@ -15326,7 +15329,7 @@
15326
15329
  ? 'SearchMessage'
15327
15330
  : 'SearchMessagePc');
15328
15331
 
15329
- add_location(p, file, 295, 8, 10568);
15332
+ add_location(p, file, 296, 8, 10598);
15330
15333
  },
15331
15334
  m: function mount(target, anchor) {
15332
15335
  insert_dev(target, p, anchor);
@@ -15344,14 +15347,14 @@
15344
15347
  block,
15345
15348
  id: create_if_block_5.name,
15346
15349
  type: "if",
15347
- source: "(295:40) ",
15350
+ source: "(296:40) ",
15348
15351
  ctx
15349
15352
  });
15350
15353
 
15351
15354
  return block;
15352
15355
  }
15353
15356
 
15354
- // (288:6) {#if searchActive == true && searchValue.length < 2}
15357
+ // (289:6) {#if searchActive == true && searchValue.length < 2}
15355
15358
  function create_if_block_3(ctx) {
15356
15359
  let p;
15357
15360
  let t0_value = /*$_*/ ctx[17]('Translations.recentSearch') + "";
@@ -15372,7 +15375,7 @@
15372
15375
  ? 'SearchMessage'
15373
15376
  : 'SearchMessagePc');
15374
15377
 
15375
- add_location(p, file, 288, 8, 10141);
15378
+ add_location(p, file, 289, 8, 10171);
15376
15379
  },
15377
15380
  m: function mount(target, anchor) {
15378
15381
  insert_dev(target, p, anchor);
@@ -15409,14 +15412,14 @@
15409
15412
  block,
15410
15413
  id: create_if_block_3.name,
15411
15414
  type: "if",
15412
- source: "(288:6) {#if searchActive == true && searchValue.length < 2}",
15415
+ source: "(289:6) {#if searchActive == true && searchValue.length < 2}",
15413
15416
  ctx
15414
15417
  });
15415
15418
 
15416
15419
  return block;
15417
15420
  }
15418
15421
 
15419
- // (290:10) {#if searchArray.length == 0}
15422
+ // (291:10) {#if searchArray.length == 0}
15420
15423
  function create_if_block_4(ctx) {
15421
15424
  let div;
15422
15425
  let p;
@@ -15433,9 +15436,9 @@
15433
15436
  ? 'SearchMessage'
15434
15437
  : 'SearchMessagePc');
15435
15438
 
15436
- add_location(p, file, 291, 12, 10360);
15439
+ add_location(p, file, 292, 12, 10390);
15437
15440
  attr_dev(div, "class", "ResultsContainerError");
15438
- add_location(div, file, 290, 10, 10312);
15441
+ add_location(div, file, 291, 10, 10342);
15439
15442
  },
15440
15443
  m: function mount(target, anchor) {
15441
15444
  insert_dev(target, div, anchor);
@@ -15454,14 +15457,14 @@
15454
15457
  block,
15455
15458
  id: create_if_block_4.name,
15456
15459
  type: "if",
15457
- source: "(290:10) {#if searchArray.length == 0}",
15460
+ source: "(291:10) {#if searchArray.length == 0}",
15458
15461
  ctx
15459
15462
  });
15460
15463
 
15461
15464
  return block;
15462
15465
  }
15463
15466
 
15464
- // (299:8) {#if searchCancelled === false}
15467
+ // (300:8) {#if searchCancelled === false}
15465
15468
  function create_if_block_2(ctx) {
15466
15469
  let each_1_anchor;
15467
15470
  let each_value = /*searchArray*/ ctx[11];
@@ -15522,14 +15525,14 @@
15522
15525
  block,
15523
15526
  id: create_if_block_2.name,
15524
15527
  type: "if",
15525
- source: "(299:8) {#if searchCancelled === false}",
15528
+ source: "(300:8) {#if searchCancelled === false}",
15526
15529
  ctx
15527
15530
  });
15528
15531
 
15529
15532
  return block;
15530
15533
  }
15531
15534
 
15532
- // (300:10) {#each searchArray as game}
15535
+ // (301:10) {#each searchArray as game}
15533
15536
  function create_each_block(ctx) {
15534
15537
  let casino_game_thumbnail;
15535
15538
  let casino_game_thumbnail_gamethumbnail_value;
@@ -15570,7 +15573,7 @@
15570
15573
  set_custom_element_data(casino_game_thumbnail, "clientstyling", /*clientstyling*/ ctx[2]);
15571
15574
  set_custom_element_data(casino_game_thumbnail, "clientstylingurl", /*clientstylingurl*/ ctx[3]);
15572
15575
  set_custom_element_data(casino_game_thumbnail, "gamepagemodalurl", /*gamepagemodalurl*/ ctx[6]);
15573
- add_location(casino_game_thumbnail, file, 300, 12, 10877);
15576
+ add_location(casino_game_thumbnail, file, 301, 12, 10907);
15574
15577
  },
15575
15578
  m: function mount(target, anchor) {
15576
15579
  insert_dev(target, casino_game_thumbnail, anchor);
@@ -15667,14 +15670,14 @@
15667
15670
  block,
15668
15671
  id: create_each_block.name,
15669
15672
  type: "each",
15670
- source: "(300:10) {#each searchArray as game}",
15673
+ source: "(301:10) {#each searchArray as game}",
15671
15674
  ctx
15672
15675
  });
15673
15676
 
15674
15677
  return block;
15675
15678
  }
15676
15679
 
15677
- // (325:8) {#if searchValue.length >= 2 && searchArray.length == 0}
15680
+ // (326:8) {#if searchValue.length >= 2 && searchArray.length == 0}
15678
15681
  function create_if_block_1(ctx) {
15679
15682
  let div;
15680
15683
  let p0;
@@ -15698,10 +15701,10 @@
15698
15701
  ? 'SearchMessage'
15699
15702
  : 'SearchMessagePc');
15700
15703
 
15701
- add_location(p0, file, 326, 12, 11926);
15702
- add_location(p1, file, 327, 12, 12055);
15704
+ add_location(p0, file, 327, 12, 11956);
15705
+ add_location(p1, file, 328, 12, 12085);
15703
15706
  attr_dev(div, "class", "ResultsContainerError");
15704
- add_location(div, file, 325, 10, 11878);
15707
+ add_location(div, file, 326, 10, 11908);
15705
15708
  },
15706
15709
  m: function mount(target, anchor) {
15707
15710
  insert_dev(target, div, anchor);
@@ -15724,7 +15727,7 @@
15724
15727
  block,
15725
15728
  id: create_if_block_1.name,
15726
15729
  type: "if",
15727
- source: "(325:8) {#if searchValue.length >= 2 && searchArray.length == 0}",
15730
+ source: "(326:8) {#if searchValue.length >= 2 && searchArray.length == 0}",
15728
15731
  ctx
15729
15732
  });
15730
15733
 
@@ -15790,61 +15793,61 @@
15790
15793
  attr_dev(path0, "stroke-linecap", "round");
15791
15794
  attr_dev(path0, "stroke-linejoin", "round");
15792
15795
  attr_dev(path0, "d", "m10.48 10.985 2.21 2.373");
15793
- add_location(path0, file, 268, 10, 8937);
15796
+ add_location(path0, file, 269, 10, 8967);
15794
15797
  attr_dev(circle, "cx", "6.5");
15795
15798
  attr_dev(circle, "cy", "6.5");
15796
15799
  attr_dev(circle, "r", "5.75");
15797
15800
  attr_dev(circle, "stroke", "#212121");
15798
15801
  attr_dev(circle, "stroke-width", "1.5");
15799
- add_location(circle, file, 269, 10, 9065);
15802
+ add_location(circle, file, 270, 10, 9095);
15800
15803
  attr_dev(svg0, "width", "14");
15801
15804
  attr_dev(svg0, "height", "15");
15802
15805
  attr_dev(svg0, "fill", "none");
15803
15806
  attr_dev(svg0, "xmlns", "http://www.w3.org/2000/svg");
15804
- add_location(svg0, file, 267, 8, 8851);
15807
+ add_location(svg0, file, 268, 8, 8881);
15805
15808
 
15806
15809
  attr_dev(div0, "class", getDevice(/*userAgent*/ ctx[18]) !== 'PC'
15807
15810
  ? 'SearchIcon'
15808
15811
  : 'SearchIconPc');
15809
15812
 
15810
- add_location(div0, file, 266, 6, 8763);
15813
+ add_location(div0, file, 267, 6, 8793);
15811
15814
  attr_dev(input, "class", "SearchInput");
15812
15815
  attr_dev(input, "type", "search");
15813
15816
  attr_dev(input, "placeholder", input_placeholder_value = /*$_*/ ctx[17]('Translations.placeHolderSearchGames'));
15814
- add_location(input, file, 273, 8, 9270);
15817
+ add_location(input, file, 274, 8, 9300);
15815
15818
  attr_dev(path1, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8");
15816
15819
  attr_dev(path1, "stroke", "#717171");
15817
15820
  attr_dev(path1, "stroke-width", "2");
15818
15821
  attr_dev(path1, "stroke-linecap", "round");
15819
15822
  attr_dev(path1, "stroke-linejoin", "round");
15820
- add_location(path1, file, 276, 12, 9657);
15823
+ add_location(path1, file, 277, 12, 9687);
15821
15824
  attr_dev(svg1, "width", "11");
15822
15825
  attr_dev(svg1, "height", "11");
15823
15826
  attr_dev(svg1, "fill", "none");
15824
15827
  attr_dev(svg1, "xmlns", "http://www.w3.org/2000/svg");
15825
- add_location(svg1, file, 275, 10, 9569);
15828
+ add_location(svg1, file, 276, 10, 9599);
15826
15829
  attr_dev(span, "class", span_class_value = "SearchClearButton " + (/*searchValue*/ ctx[8].length != 0 ? '' : 'NotVisible'));
15827
- add_location(span, file, 274, 8, 9448);
15830
+ add_location(span, file, 275, 8, 9478);
15828
15831
 
15829
15832
  attr_dev(div1, "class", getDevice(/*userAgent*/ ctx[18]) !== 'PC'
15830
15833
  ? 'SearchContainer'
15831
15834
  : 'SearchContainerPc');
15832
15835
 
15833
- add_location(div1, file, 272, 6, 9172);
15836
+ add_location(div1, file, 273, 6, 9202);
15834
15837
  attr_dev(small, "class", small_class_value = "SearchCancelButton " + (/*searchCancelled*/ ctx[9] ? 'NotVisible' : ''));
15835
- add_location(small, file, 280, 6, 9833);
15838
+ add_location(small, file, 281, 6, 9863);
15836
15839
 
15837
15840
  attr_dev(div2, "class", getDevice(/*userAgent*/ ctx[18]) !== 'PC'
15838
15841
  ? 'Search'
15839
15842
  : 'SearchPc');
15840
15843
 
15841
- add_location(div2, file, 265, 4, 8685);
15844
+ add_location(div2, file, 266, 4, 8715);
15842
15845
 
15843
15846
  attr_dev(div3, "class", getDevice(/*userAgent*/ ctx[18]) !== 'PC'
15844
15847
  ? 'CasinoSearch'
15845
15848
  : 'CasinoSearchPc');
15846
15849
 
15847
- add_location(div3, file, 264, 2, 8562);
15850
+ add_location(div3, file, 265, 2, 8592);
15848
15851
  },
15849
15852
  l: function claim(nodes) {
15850
15853
  throw new Error("options.hydrate only works if the component was compiled with the `hydratable: true` option");
@@ -16004,6 +16007,7 @@
16004
16007
 
16005
16008
  if (endpoint && datasource && lang) {
16006
16009
  if (searchValue.length < 2) {
16010
+ $$invalidate(11, searchArray = []);
16007
16011
  let recentSearchedGames = localStorage.getItem(`searchedGamesWds_casino`);
16008
16012
  let recentSearchedGamesArray = [];
16009
16013
 
@@ -16437,7 +16441,7 @@
16437
16441
  class CasinoSearch extends SvelteElement {
16438
16442
  constructor(options) {
16439
16443
  super();
16440
- 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}.CasinoSearchPc{margin:16px}.CasinoSearch{margin:16px}.SearchPc{display:flex;align-items:center;position:relative;margin-bottom:20px;left:19%}.Search{display:flex;align-items:center;position:relative;justify-content:space-between;margin-bottom:20px}.SearchIconPc{position:absolute;left:20px;z-index:1}.SearchIconPc svg{height:14px;width:13px}.SearchIcon{position:absolute;left:5%;z-index:1}.SearchIcon svg{height:14px;width:13px}.SearchContainerPc{width:60%;position:relative}.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}.SearchMessagePc{font-size:18px;font-weight:600;margin:24px 0;color:#FFFFFF;margin-top:90px}.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>`;
16444
+ 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}.CasinoSearchPc{margin:30px 16px}.CasinoSearch{margin:30px 16px}.SearchPc{display:flex;align-items:center;position:relative;margin-bottom:20px;left:19%}.Search{display:flex;align-items:center;position:relative;justify-content:space-between;margin-bottom:20px}.SearchIconPc{position:absolute;left:20px;z-index:1}.SearchIconPc svg{height:14px;width:13px}.SearchIcon{position:absolute;left:5%;z-index:1}.SearchIcon svg{height:14px;width:13px}.SearchContainerPc{width:60%;position:relative}.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;cursor:pointer}.SearchCancelButton{color:#717171;font-weight:300;margin-left:8px;cursor:pointer}.SearchMessagePc{font-size:18px;font-weight:600;margin:24px 0;color:#FFFFFF;margin-top:90px}.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>`;
16441
16445
 
16442
16446
  init(
16443
16447
  this,