@everymatrix/casino-page 0.0.239 → 0.0.243

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-page",
3
- "version": "0.0.239",
3
+ "version": "0.0.243",
4
4
  "main": "dist/casino-page.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "3514a454516ab9691e0154509b1a13d332315cc5"
39
+ "gitHead": "fa7606648eac979494812909713f05eec0ac0cd8"
40
40
  }
@@ -141,15 +141,12 @@
141
141
  if (res.count > 0) {
142
142
  let promises:any = [];
143
143
 
144
- if(livecasino) {
145
- res.items = [{gameId: '15786'}, {gameId: '15788'}];
146
- }
147
144
  res.items.forEach((item:any) => {
148
- let url = new URL(`${endpoint}/casino/games/${item.gameId}`);
145
+ let url:URL = new URL(`${endpoint}/casino/games/${item.gameId}`);
149
146
 
150
147
  url.searchParams.append('datasource', datasource);
151
- if(livecasino) {
152
- promises.push(fetch(url).then((res:any) => res.json()));
148
+ if (livecasino) {
149
+ promises.push(fetch(url.href).then((res:any) => res.json()));
153
150
  } else {
154
151
  promises.push(fetch(url.href).then((res:any) => res.json()));
155
152
  }
@@ -750,7 +747,7 @@
750
747
  }
751
748
 
752
749
  setLocale(lang);
753
-
750
+
754
751
  let categoriesUrl = new URL(`${endpoint}/casino/groups/${datasource}`);
755
752
 
756
753
  categoriesUrl.searchParams.append('language', lang);
@@ -847,22 +844,6 @@
847
844
  <div class="SearchBarPlaceholder"></div>
848
845
  {/if}
849
846
 
850
- {#if livecasino}
851
- {#if !favoritesScreen && !lobbyScreen && !mobileSearchViewActive && numberOfFilters && getDevice(userAgent) !== 'PC'}
852
- <div class="ClearFilterMobileButtonWrapper" on:click="{() => clearVendorFilter()}">
853
- <div class="ClearButton">Clear
854
- <span class="ClearIcon">
855
- <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
856
- viewBox="0 0 378.303 378.303" style="enable-background:new 0 0 378.303 378.303;" xml:space="preserve">
857
- <polygon style="fill:var(--emfe-w-color-secondary, #FD2839);" points="378.303,28.285 350.018,0 189.151,160.867 28.285,0 0,28.285 160.867,189.151 0,350.018
858
- 28.285,378.302 189.151,217.436 350.018,378.302 378.303,350.018 217.436,189.151 "/>
859
- </svg>
860
- </span>
861
- </div>
862
- </div>
863
- {/if}
864
- {/if}
865
-
866
847
  {#if alternativesearch === 'false'}
867
848
  <!-- main search layout -->
868
849
  <div bind:this={searchWrapper} class="CategoriesHeaderSection {(getDevice(userAgent) !== 'PC') ? 'CategoriesHeaderMobileSection' : ''} {mobileSearchViewActive ? 'SearchMobileActive' : ''} {mobileSearchViewActive || (searched && !(getDevice(userAgent) === 'PC') && !closeSearch) ? "CategoriesHeaderSearchActive" : ''} {(adjustingScroll && mobileSearchViewActive) ? 'SearchStickTop' : ''}"