@everymatrix/casino-page-nd 1.75.0 → 1.76.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoCalendar-BVD-g7V2.js → CasinoCalendar-DWprq3Up.js} +1012 -991
- package/components/CasinoCalendar-dCsBOCh4.cjs +19 -0
- package/components/{CasinoCalendar-CDNIjQ8T.js → CasinoCalendar-mfSLB8Ze.js} +856 -835
- package/components/{CasinoCalendarDailyDetails-BEUNC6Xh.cjs → CasinoCalendarDailyDetails-3C8wq3Kf.cjs} +1 -1
- package/components/{CasinoCalendarDailyDetails-D_IsmUxa.js → CasinoCalendarDailyDetails-Cm0lICEn.js} +38 -38
- package/components/{CasinoCalendarDailyDetails-Dun4o4bY.js → CasinoCalendarDailyDetails-DvqRVPua.js} +38 -38
- package/components/{CasinoCalendarDailyItem-SgYp_4Zc.js → CasinoCalendarDailyItem-CZlYfyPq.js} +34 -34
- package/components/{CasinoCalendarDailyItem-r4x7VnIJ.cjs → CasinoCalendarDailyItem-C_FN646X.cjs} +1 -1
- package/components/{CasinoCalendarDailyItem-lgiTsDmQ.js → CasinoCalendarDailyItem-CzzCu3b9.js} +34 -34
- package/components/{CasinoCollectionsProviders-Cfp1fpOk.js → CasinoCollectionsProviders-CWyeNZSU.js} +45 -45
- package/components/{CasinoCollectionsProviders-GH5hTDgu.js → CasinoCollectionsProviders-LcGduY03.js} +67 -67
- package/components/{CasinoCollectionsProviders-DI8Ie4pa.cjs → CasinoCollectionsProviders-qWvxMAY4.cjs} +1 -1
- package/components/{CasinoFavoritesSectionNd-BzY-Mtdp.cjs → CasinoFavoritesSectionNd-BIfrHNCv.cjs} +1 -1
- package/components/{CasinoFavoritesSectionNd-Lv9Hbd67.js → CasinoFavoritesSectionNd-BO5Gv4XQ.js} +14 -14
- package/components/{CasinoFavoritesSectionNd-BR7oOoVZ.js → CasinoFavoritesSectionNd-D7PT7RRj.js} +14 -14
- package/components/{CasinoFilter-idsuQa6E.js → CasinoFilter-BxbFkTPB.js} +244 -245
- package/components/{CasinoFilter-DUp1Zmmm.js → CasinoFilter-CKKGIb12.js} +225 -224
- package/components/CasinoFilter-DaDCgGyI.cjs +1 -0
- package/components/{CasinoGameThumbnailNd-C33yCVXc.js → CasinoGameThumbnailNd-BQ1wqZ-e.js} +65 -67
- package/components/CasinoGameThumbnailNd-CmRsAJDi.cjs +30 -0
- package/components/{CasinoGameThumbnailNd-CxAL5LP2.js → CasinoGameThumbnailNd-Dcordt0f.js} +65 -67
- package/components/{CasinoGamesCategorySectionNd-DB97IVzG.js → CasinoGamesCategorySectionNd-BGZ-ePsT.js} +167 -167
- package/components/{CasinoGamesCategorySectionNd-wkSdhFLy.cjs → CasinoGamesCategorySectionNd-BWwBc-gL.cjs} +1 -1
- package/components/{CasinoGamesCategorySectionNd-iW8xVo8B.js → CasinoGamesCategorySectionNd-CKAJcNzR.js} +160 -160
- package/components/{CasinoJackpotBanner-ClvtHhmd.cjs → CasinoJackpotBanner-B96gNAcA.cjs} +1 -1
- package/components/{CasinoJackpotBanner-Da0QCFOu.js → CasinoJackpotBanner-BWmZP7BL.js} +83 -83
- package/components/{CasinoJackpotBanner-BAVC4_Yz.js → CasinoJackpotBanner-DqIZizFB.js} +89 -89
- package/components/{CasinoLastPlayedSectionNd-BTMGK-OG.cjs → CasinoLastPlayedSectionNd-BgOVZqPi.cjs} +1 -1
- package/components/{CasinoLastPlayedSectionNd-B7ILz7Tr.js → CasinoLastPlayedSectionNd-BmLauasH.js} +40 -40
- package/components/{CasinoLastPlayedSectionNd-Br6Qozif.js → CasinoLastPlayedSectionNd-D5fz5x-v.js} +40 -40
- package/components/{CasinoMostPlayedSectionNd-CzTAA-j5.js → CasinoMostPlayedSectionNd-CDSQQPLi.js} +46 -46
- package/components/{CasinoMostPlayedSectionNd-Ddr8HXvD.js → CasinoMostPlayedSectionNd-DxpDBvyi.js} +46 -46
- package/components/{CasinoMostPlayedSectionNd-DKanuBTP.cjs → CasinoMostPlayedSectionNd-Scrl1-r0.cjs} +1 -1
- package/components/{CasinoMyGamesNd-VhA9CIHu.js → CasinoMyGamesNd-B0RMhNOQ.js} +31 -31
- package/components/{CasinoMyGamesNd-ByT7FAHN.cjs → CasinoMyGamesNd-C5_wy8U9.cjs} +1 -1
- package/components/{CasinoMyGamesNd-DWshTl9h.js → CasinoMyGamesNd-DyvlKH0N.js} +33 -33
- package/components/{CasinoPageNd-NDK161u7.js → CasinoPageNd-BBnA0Inr.js} +1888 -1896
- package/components/CasinoPageNd-C6XEbbie.cjs +1 -0
- package/components/{CasinoPageNd-BYDy_uIx.js → CasinoPageNd-CdikoQYm.js} +1860 -1868
- package/components/{CasinoRandomGame-3uoEGw78.cjs → CasinoRandomGame-BXQZCC2U.cjs} +1 -1
- package/components/{CasinoRandomGame-9Yw_xC5j.js → CasinoRandomGame-DgwvXr3L.js} +59 -59
- package/components/{CasinoRandomGame-DpKfvMwV.js → CasinoRandomGame-_9lAMA2P.js} +58 -58
- package/components/{CasinoSearchNd-BZFZIldj.js → CasinoSearchNd-C7QNS9Ai.js} +53 -53
- package/components/{CasinoSearchNd-sbnm8-s3.cjs → CasinoSearchNd-C893ijmJ.cjs} +1 -1
- package/components/{CasinoSearchNd-DhC_9kHZ.js → CasinoSearchNd-DQ2c9d3i.js} +35 -35
- package/components/{CasinoSort-CUCsGytJ.js → CasinoSort-BNREfqiL.js} +111 -112
- package/components/{CasinoSort-DEzzINXT.cjs → CasinoSort-CKm8hNbY.cjs} +1 -1
- package/components/{CasinoSort-BYQvNOsF.js → CasinoSort-D187w5tA.js} +103 -102
- package/components/{CasinoWinners-COmepRdG.cjs → CasinoWinners-433auKih.cjs} +1 -1
- package/components/{CasinoWinners-CQf5gEvU.js → CasinoWinners-C4hnivSF.js} +150 -150
- package/components/{CasinoWinners-Dr5wYAG5.js → CasinoWinners-CfPd4kzY.js} +144 -144
- package/components/{GeneralAnimationLoading-CBPC5I1a.js → GeneralAnimationLoading-CuOjTz53.js} +16 -16
- package/components/{GeneralAnimationLoading-DTUTIYre.cjs → GeneralAnimationLoading-DRvkLtzi.cjs} +1 -1
- package/components/{GeneralAnimationLoading-CKgGhHlf.js → GeneralAnimationLoading-DnAbjVes.js} +16 -16
- package/es2015/casino-page-nd.cjs +1 -1
- package/es2015/casino-page-nd.js +1 -1
- package/esnext/casino-page-nd.js +1 -1
- package/package.json +1 -1
- package/stencil/app-globals-0f993ce5-BD-Q0C8R.cjs +1 -0
- package/stencil/{app-globals-0f993ce5-DfNOCk8l.js → app-globals-0f993ce5-Cgk0KVAu.js} +1 -3
- package/stencil/{casino-play-random-game-Cchj3hDo.js → casino-play-random-game-BkPr2CWQ.js} +2 -2
- package/stencil/{casino-play-random-game-CWyr5H4d.cjs → casino-play-random-game-CIgnME2D.cjs} +1 -1
- package/stencil/{casino-play-random-game-CNwOj3DJ.js → casino-play-random-game-CNkwfnjq.js} +2 -2
- package/stencil/{casino-play-random-game_2-DVELgSp-.cjs → casino-play-random-game_2-BJVoDn1D.cjs} +2 -2
- package/stencil/{casino-play-random-game_2-BoSB4X57.js → casino-play-random-game_2-Cr07t-U3.js} +2 -2
- package/stencil/{casino-play-random-game_2-BBqDze0C.js → casino-play-random-game_2-rMFQqRp8.js} +2 -2
- package/stencil/index-328e660d-Cex2hzsG.js +576 -0
- package/stencil/index-328e660d-Dti9H7_B.js +560 -0
- package/stencil/index-328e660d-MaaYKutI.cjs +1 -0
- package/stencil/index-97d17652--F7PvMq9.js +542 -0
- package/stencil/index-97d17652-BhLhk_xz.cjs +1 -0
- package/stencil/index-97d17652-CCFHkzJw.js +558 -0
- package/stencil/{ui-image-CH2Jdp7k.cjs → ui-image-5q4WODJu.cjs} +1 -1
- package/stencil/{ui-image-I_uR7pAI.js → ui-image-CfZf6HBq.js} +2 -2
- package/stencil/{ui-image-BAqS-hS6.js → ui-image-CtfMdADr.js} +2 -2
- package/stencil/{ui-image-b7b48fe5-2Ir9VtWc.js → ui-image-b7b48fe5-ByRuJtdE.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-AJGQkQBu.js → ui-image-b7b48fe5-D6iig_uN.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-pdIH5TBa.cjs → ui-image-b7b48fe5-DG83WzAo.cjs} +1 -1
- package/stencil/{ui-image_2-Dh5Eqdlm.js → ui-image_2-Bm97-wkj.js} +2 -2
- package/stencil/{ui-image_2-BGf0VFLf.cjs → ui-image_2-DdFjzzNO.cjs} +1 -1
- package/stencil/{ui-image_2-_K8Pt3w9.js → ui-image_2-qO3reSlr.js} +2 -2
- package/components/CasinoCalendar-B4OJuO_L.cjs +0 -19
- package/components/CasinoFilter-BX1QlpN6.cjs +0 -1
- package/components/CasinoGameThumbnailNd-DbHe7zqB.cjs +0 -30
- package/components/CasinoPageNd-wY819W24.cjs +0 -1
- package/stencil/app-globals-0f993ce5-4b17CI_n.cjs +0 -1
- package/stencil/index-328e660d-04xW6326.cjs +0 -1
- package/stencil/index-328e660d-BUOKdOvn.js +0 -576
- package/stencil/index-328e660d-O5RXzgXA.js +0 -560
- package/stencil/index-97d17652-BD-QREJe.js +0 -558
- package/stencil/index-97d17652-DJqGt8q2.js +0 -542
- package/stencil/index-97d17652-tiiCeQFu.cjs +0 -1
- package/stencil/index-b2193545-3zPNeE9v.cjs +0 -1
- package/stencil/index-b2193545-D_cUvAA-.js +0 -519
- package/stencil/index-b2193545-kN0z2MLt.js +0 -503
- package/stencil/ui-skeleton-5mt1L8pA.cjs +0 -1
- package/stencil/ui-skeleton-C0GZ2ncD.js +0 -29
- package/stencil/ui-skeleton-CYeeBz0Q.js +0 -11
- package/stencil/ui-skeleton-ae35c6f2-BSwiS43c.js +0 -155
- package/stencil/ui-skeleton-ae35c6f2-BmKf7IvD.js +0 -155
- package/stencil/ui-skeleton-ae35c6f2-CQ3pH6qH.cjs +0 -55
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import "./CasinoGamesCategorySectionNd-
|
|
3
|
-
import { d as de, i as tt, a as at } from "./CasinoGameThumbnailNd-
|
|
1
|
+
import { a as Be, $ as He, S as qe, i as We, s as Oe, f as L, b as Ue, n as le, d as I, M as Ve, r as f, Q as ie, h as j, p as S, A as Z, j as y, B as N, F as ce, P as ee, k as Je, o as Ze, m as H, q, C as ue, v as he, w as Ye, T as Re, E as u, H as Ke, I as Qe, J as Xe, K as $e, L as et } from "./CasinoCalendar-DWprq3Up.js";
|
|
2
|
+
import "./CasinoGamesCategorySectionNd-CKAJcNzR.js";
|
|
3
|
+
import { d as de, i as tt, a as at } from "./CasinoGameThumbnailNd-BQ1wqZ-e.js";
|
|
4
4
|
function me(a, e) {
|
|
5
|
-
|
|
5
|
+
Be(a, e);
|
|
6
6
|
}
|
|
7
7
|
function nt(a) {
|
|
8
|
-
|
|
8
|
+
He.set(a);
|
|
9
9
|
}
|
|
10
10
|
const ge = {
|
|
11
11
|
en: {
|
|
@@ -191,7 +191,7 @@ const ge = {
|
|
|
191
191
|
}
|
|
192
192
|
};
|
|
193
193
|
function rt(a) {
|
|
194
|
-
|
|
194
|
+
Ue(a, "svelte-1vt65d9", "*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:10px 10px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;color:var(--emw--color-gray-100, #E6E6E6);border:none;background:var(--emw--color-secondary, #194127);border-radius:var(--emw--border-radius-medium, 10px);display:block;font-size:16px;font-weight:300;padding:14px 30px 14px 46px;width:100%;transition:3s}.SearchInput::placeholder{color:var(--emw--color-white, #FFF);font-size:16px;font-weight:300}.SearchInput:focus{background:var(--emw--color-primary, #194127)}.SearchInput:focus-visible{outline-width:0}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:10px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}");
|
|
195
195
|
}
|
|
196
196
|
function fe(a, e, t) {
|
|
197
197
|
const n = a.slice();
|
|
@@ -204,7 +204,7 @@ function pe(a) {
|
|
|
204
204
|
), n, r, l, s;
|
|
205
205
|
return {
|
|
206
206
|
c() {
|
|
207
|
-
e = y("small"), n =
|
|
207
|
+
e = y("small"), n = q(t), f(e, "class", r = "SearchCancelButton " + /*searchCancelled*/
|
|
208
208
|
(a[13] ? "NotVisible" : ""));
|
|
209
209
|
},
|
|
210
210
|
m(i, c) {
|
|
@@ -218,7 +218,7 @@ function pe(a) {
|
|
|
218
218
|
p(i, c) {
|
|
219
219
|
c[0] & /*$_*/
|
|
220
220
|
2097152 && t !== (t = /*$_*/
|
|
221
|
-
i[21]("cancel") + "") &&
|
|
221
|
+
i[21]("cancel") + "") && H(n, t), c[0] & /*searchCancelled*/
|
|
222
222
|
8192 && r !== (r = "SearchCancelButton " + /*searchCancelled*/
|
|
223
223
|
(i[13] ? "NotVisible" : "")) && f(e, "class", r);
|
|
224
224
|
},
|
|
@@ -278,7 +278,7 @@ function st(a) {
|
|
|
278
278
|
), n;
|
|
279
279
|
return {
|
|
280
280
|
c() {
|
|
281
|
-
e = y("p"), n =
|
|
281
|
+
e = y("p"), n = q(t), f(e, "class", "LoadingContent");
|
|
282
282
|
},
|
|
283
283
|
m(r, l) {
|
|
284
284
|
j(r, e, l), S(e, n);
|
|
@@ -286,7 +286,7 @@ function st(a) {
|
|
|
286
286
|
p(r, l) {
|
|
287
287
|
l[0] & /*$_*/
|
|
288
288
|
2097152 && t !== (t = /*$_*/
|
|
289
|
-
r[21]("loading") + "") &&
|
|
289
|
+
r[21]("loading") + "") && H(n, t);
|
|
290
290
|
},
|
|
291
291
|
d(r) {
|
|
292
292
|
r && I(e);
|
|
@@ -300,7 +300,7 @@ function lt(a) {
|
|
|
300
300
|
), n;
|
|
301
301
|
return {
|
|
302
302
|
c() {
|
|
303
|
-
e = y("p"), n =
|
|
303
|
+
e = y("p"), n = q(t), f(e, "class", "SearchMessage");
|
|
304
304
|
},
|
|
305
305
|
m(r, l) {
|
|
306
306
|
j(r, e, l), S(e, n);
|
|
@@ -308,7 +308,7 @@ function lt(a) {
|
|
|
308
308
|
p(r, l) {
|
|
309
309
|
l[0] & /*$_*/
|
|
310
310
|
2097152 && t !== (t = /*$_*/
|
|
311
|
-
r[21]("searchResult") + "") &&
|
|
311
|
+
r[21]("searchResult") + "") && H(n, t);
|
|
312
312
|
},
|
|
313
313
|
d(r) {
|
|
314
314
|
r && I(e);
|
|
@@ -347,7 +347,7 @@ function _e(a) {
|
|
|
347
347
|
), n;
|
|
348
348
|
return {
|
|
349
349
|
c() {
|
|
350
|
-
e = y("p"), n =
|
|
350
|
+
e = y("p"), n = q(t), f(e, "class", "SearchMessage");
|
|
351
351
|
},
|
|
352
352
|
m(r, l) {
|
|
353
353
|
j(r, e, l), S(e, n);
|
|
@@ -355,7 +355,7 @@ function _e(a) {
|
|
|
355
355
|
p(r, l) {
|
|
356
356
|
l[0] & /*$_*/
|
|
357
357
|
2097152 && t !== (t = /*$_*/
|
|
358
|
-
r[21]("recentSearch") + "") &&
|
|
358
|
+
r[21]("recentSearch") + "") && H(n, t);
|
|
359
359
|
},
|
|
360
360
|
d(r) {
|
|
361
361
|
r && I(e);
|
|
@@ -372,7 +372,7 @@ function Se(a) {
|
|
|
372
372
|
);
|
|
373
373
|
return {
|
|
374
374
|
c() {
|
|
375
|
-
e = y("div"), i && i.c(), t = N(), n = y("p"), l =
|
|
375
|
+
e = y("div"), i && i.c(), t = N(), n = y("p"), l = q(r), f(n, "class", "SearchMessage"), f(e, "class", s = "ResultsContainerError " + /*notfoundicon*/
|
|
376
376
|
(a[11] == "true" ? "WithIcon" : ""));
|
|
377
377
|
},
|
|
378
378
|
m(c, g) {
|
|
@@ -382,7 +382,7 @@ function Se(a) {
|
|
|
382
382
|
/*notfoundicon*/
|
|
383
383
|
c[11] === "true" ? i || (i = we(), i.c(), i.m(e, t)) : i && (i.d(1), i = null), g[0] & /*$_*/
|
|
384
384
|
2097152 && r !== (r = /*$_*/
|
|
385
|
-
c[21]("noRecentSearches") + "") &&
|
|
385
|
+
c[21]("noRecentSearches") + "") && H(l, r), g[0] & /*notfoundicon*/
|
|
386
386
|
2048 && s !== (s = "ResultsContainerError " + /*notfoundicon*/
|
|
387
387
|
(c[11] == "true" ? "WithIcon" : "")) && f(e, "class", s);
|
|
388
388
|
},
|
|
@@ -441,7 +441,7 @@ function be(a) {
|
|
|
441
441
|
}
|
|
442
442
|
},
|
|
443
443
|
d(r) {
|
|
444
|
-
r && I(e),
|
|
444
|
+
r && I(e), Ye(n, r);
|
|
445
445
|
}
|
|
446
446
|
};
|
|
447
447
|
}
|
|
@@ -656,7 +656,7 @@ function ke(a) {
|
|
|
656
656
|
);
|
|
657
657
|
return {
|
|
658
658
|
c() {
|
|
659
|
-
e = y("div"), m && m.c(), t = N(), n = y("p"), l =
|
|
659
|
+
e = y("div"), m && m.c(), t = N(), n = y("p"), l = q(r), s = N(), i = y("p"), g = q(c), f(n, "class", "SearchMessage"), f(e, "class", h = "ResultsContainerError " + /*notfoundicon*/
|
|
660
660
|
(a[11] == "true" ? "WithIcon" : ""));
|
|
661
661
|
},
|
|
662
662
|
m(b, d) {
|
|
@@ -666,9 +666,9 @@ function ke(a) {
|
|
|
666
666
|
/*notfoundicon*/
|
|
667
667
|
b[11] === "true" ? m || (m = ye(), m.c(), m.m(e, t)) : m && (m.d(1), m = null), d[0] & /*$_*/
|
|
668
668
|
2097152 && r !== (r = /*$_*/
|
|
669
|
-
b[21]("notFound") + "") &&
|
|
669
|
+
b[21]("notFound") + "") && H(l, r), d[0] & /*$_*/
|
|
670
670
|
2097152 && c !== (c = /*$_*/
|
|
671
|
-
b[21]("notFoundText") + "") &&
|
|
671
|
+
b[21]("notFoundText") + "") && H(g, c), d[0] & /*notfoundicon*/
|
|
672
672
|
2048 && h !== (h = "ResultsContainerError " + /*notfoundicon*/
|
|
673
673
|
(b[11] == "true" ? "WithIcon" : "")) && f(e, "class", h);
|
|
674
674
|
},
|
|
@@ -692,7 +692,7 @@ function ye(a) {
|
|
|
692
692
|
};
|
|
693
693
|
}
|
|
694
694
|
function ct(a) {
|
|
695
|
-
let e, t, n, r, l, s, i, c, g, h, m, b, d, p, M, P,
|
|
695
|
+
let e, t, n, r, l, s, i, c, g, h, m, b, d, p, M, P, A, W, O, U, v = (
|
|
696
696
|
/*cancelbutton*/
|
|
697
697
|
a[10] === "true" && pe(a)
|
|
698
698
|
);
|
|
@@ -702,14 +702,14 @@ function ct(a) {
|
|
|
702
702
|
w[18] ? st : ot
|
|
703
703
|
);
|
|
704
704
|
}
|
|
705
|
-
let
|
|
705
|
+
let x = E(a), R = x(a);
|
|
706
706
|
return {
|
|
707
707
|
c() {
|
|
708
|
-
e = y("div"), t = y("div"), n = y("div"), r = y("div"), r.innerHTML = '<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#FFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#FFF" stroke-width="1.5"></circle></svg>', l = N(), s = y("input"), c = N(), g = y("span"), h =
|
|
708
|
+
e = y("div"), t = y("div"), n = y("div"), r = y("div"), r.innerHTML = '<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#FFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#FFF" stroke-width="1.5"></circle></svg>', l = N(), s = y("input"), c = N(), g = y("span"), h = ce("svg"), m = ce("path"), d = N(), v && v.c(), M = N(), P = y("div"), W = N(), R.c(), f(r, "class", "SearchIcon"), f(s, "class", "SearchInput"), f(s, "type", "search"), f(s, "placeholder", i = /*$_*/
|
|
709
709
|
a[21]("placeHolderSearchGames")), f(s, "maxlength", ut), f(m, "d", "m1.45 1.5 8.1 8M1.45 9.5l8.1-8"), f(m, "stroke", "#717171"), f(m, "stroke-width", "2"), f(m, "stroke-linecap", "round"), f(m, "stroke-linejoin", "round"), f(h, "width", "11"), f(h, "height", "11"), f(h, "fill", "none"), f(h, "xmlns", "http://www.w3.org/2000/svg"), f(g, "class", b = "SearchClearButton " + /*cancelbutton*/
|
|
710
710
|
(a[10] != "true" ? "WithoutCancel" : "") + " " + /*searchValue*/
|
|
711
711
|
(a[12].length != 0 ? "" : "NotVisible")), f(n, "class", p = "Search " + /*searchCancelled*/
|
|
712
|
-
(a[13] ? "" : "SearchAnimation")), f(t, "class", "SearchWrap"), f(P, "class",
|
|
712
|
+
(a[13] ? "" : "SearchAnimation")), f(t, "class", "SearchWrap"), f(P, "class", A = /*cancelbutton*/
|
|
713
713
|
a[10] != "true" ? "OverlayCancel" : ""), f(e, "class", (ee(
|
|
714
714
|
/*userAgent*/
|
|
715
715
|
a[22]
|
|
@@ -763,21 +763,21 @@ function ct(a) {
|
|
|
763
763
|
w[10] === "true" ? v ? v.p(w, T) : (v = pe(w), v.c(), v.m(n, null)) : v && (v.d(1), v = null), T[0] & /*searchCancelled*/
|
|
764
764
|
8192 && p !== (p = "Search " + /*searchCancelled*/
|
|
765
765
|
(w[13] ? "" : "SearchAnimation")) && f(n, "class", p), T[0] & /*cancelbutton*/
|
|
766
|
-
1024 &&
|
|
767
|
-
w[10] != "true" ? "OverlayCancel" : "") && f(P, "class",
|
|
766
|
+
1024 && A !== (A = /*cancelbutton*/
|
|
767
|
+
w[10] != "true" ? "OverlayCancel" : "") && f(P, "class", A), x === (x = E(w)) && R ? R.p(w, T) : (R.d(1), R = x(w), R && (R.c(), R.m(e, null)));
|
|
768
768
|
},
|
|
769
|
-
i:
|
|
770
|
-
o:
|
|
769
|
+
i: le,
|
|
770
|
+
o: le,
|
|
771
771
|
d(w) {
|
|
772
|
-
w && I(e), a[34](null), v && v.d(), R.d(), a[37](null), O = !1,
|
|
772
|
+
w && I(e), a[34](null), v && v.d(), R.d(), a[37](null), O = !1, Ve(U);
|
|
773
773
|
}
|
|
774
774
|
};
|
|
775
775
|
}
|
|
776
776
|
let ut = 50;
|
|
777
777
|
function ht(a, e, t) {
|
|
778
778
|
let n;
|
|
779
|
-
|
|
780
|
-
let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { mbsource: g } = e, { clientstyling: h = "" } = e, { clientstylingurl: m = "" } = e, { integratedgameframedesktop: b = "false" } = e, { integratedgameframemobile: d = "false" } = e, { showgamename: p = "" } = e, { gamepagemodalurl: M = "true" } = e, { translationurl: P = "" } = e, { showfavorites:
|
|
779
|
+
Je(a, et, (o) => t(21, n = o));
|
|
780
|
+
let { endpoint: r = "" } = e, { datasource: l = "" } = e, { session: s = "" } = e, { userid: i = "" } = e, { lang: c = "en" } = e, { mbsource: g } = e, { clientstyling: h = "" } = e, { clientstylingurl: m = "" } = e, { integratedgameframedesktop: b = "false" } = e, { integratedgameframemobile: d = "false" } = e, { showgamename: p = "" } = e, { gamepagemodalurl: M = "true" } = e, { translationurl: P = "" } = e, { showfavorites: A = "" } = e, { cancelbutton: W = "true" } = e, { notfoundicon: O = "false" } = e, U = window.navigator.userAgent, v = [], E = [], x = {}, R = "", w, T = !0, V = !1, z = !1, D, Y = !1, K, Q, te = [];
|
|
781
781
|
const Ce = () => {
|
|
782
782
|
fetch(P).then((_) => _.json()).then((_) => {
|
|
783
783
|
Object.keys(_).forEach((k) => {
|
|
@@ -804,9 +804,9 @@ function ht(a, e, t) {
|
|
|
804
804
|
G.searchParams.append("language", c), G.searchParams.append("datasource", l), G.searchParams.append("platform", ee(U)), k.push(Te(G, _[C]));
|
|
805
805
|
}
|
|
806
806
|
Promise.all(k).then((G) => {
|
|
807
|
-
G = G.filter(function(
|
|
808
|
-
return !!
|
|
809
|
-
}), t(15, v = G.map((
|
|
807
|
+
G = G.filter(function(B) {
|
|
808
|
+
return !!B;
|
|
809
|
+
}), t(15, v = G.map((B) => (B.isFavorite = re(B.id), B))), v.length ? J("searchSuccess", "SearchWidget") : J("searchFail", "SearchWidget");
|
|
810
810
|
}).catch((G) => {
|
|
811
811
|
J("searchError", "SearchWidget");
|
|
812
812
|
});
|
|
@@ -824,12 +824,12 @@ function ht(a, e, t) {
|
|
|
824
824
|
t(18, z = !1), console.error(C), k(C);
|
|
825
825
|
});
|
|
826
826
|
}), Te = (o, _) => new Promise((k, C) => {
|
|
827
|
-
t(18, z = !0), _ && Object.keys(
|
|
828
|
-
t(18, z = !1), F.error || (
|
|
827
|
+
t(18, z = !0), _ && Object.keys(x).indexOf(_) >= 0 ? (t(18, z = !1), k(x[_])) : fetch(o).then((F) => F.json()).then((F) => {
|
|
828
|
+
t(18, z = !1), F.error || (x[F[0].gameId] = F[0]), k(F[0]);
|
|
829
829
|
}).catch((F) => {
|
|
830
830
|
t(18, z = !1), console.error(F), C(F);
|
|
831
831
|
});
|
|
832
|
-
}),
|
|
832
|
+
}), Ie = () => {
|
|
833
833
|
const o = new URL(`${r}/v1/player/${Q}/favorites/`);
|
|
834
834
|
t(18, z = !0);
|
|
835
835
|
let _ = {
|
|
@@ -839,16 +839,16 @@ function ht(a, e, t) {
|
|
|
839
839
|
fetch(o.href, _).then((k) => k.json()).then((k) => {
|
|
840
840
|
t(18, z = !1), te = k.items.map((C) => C.id);
|
|
841
841
|
});
|
|
842
|
-
},
|
|
842
|
+
}, je = () => {
|
|
843
843
|
t(32, Y = !0), t(19, K = s), t(20, Q = i);
|
|
844
844
|
}, re = (o) => te.findIndex((_) => _ == o) !== -1, Ge = (o) => {
|
|
845
845
|
if ((o == null ? void 0 : o.length) === 0)
|
|
846
846
|
return "";
|
|
847
847
|
let _, k = 99999999999, C;
|
|
848
848
|
const F = new Date(Date.now());
|
|
849
|
-
return o.forEach((G,
|
|
850
|
-
const
|
|
851
|
-
de(new Date($), new Date(F)) < k && (k = de(new Date($), new Date(F)), C =
|
|
849
|
+
return o.forEach((G, B) => {
|
|
850
|
+
const xe = new Date(G.schedules[0].startTime), $ = new Date(G.schedules[0].endTime);
|
|
851
|
+
de(new Date($), new Date(F)) < k && (k = de(new Date($), new Date(F)), C = B), tt(new Date(F), new Date(xe)) && at(new Date(F), new Date($)) && (_ = o[C].name);
|
|
852
852
|
}), _;
|
|
853
853
|
}, Ee = (o) => {
|
|
854
854
|
if (E = localStorage.getItem("searchedGamesWds_casino"), E ? E = E.split(",") : E = [], E.indexOf(o) === -1) {
|
|
@@ -870,7 +870,7 @@ function ht(a, e, t) {
|
|
|
870
870
|
}, ze = () => {
|
|
871
871
|
nt(c);
|
|
872
872
|
};
|
|
873
|
-
|
|
873
|
+
Ze(() => (window.addEventListener("message", ae, !1), () => {
|
|
874
874
|
window.removeEventListener("message", ae);
|
|
875
875
|
}));
|
|
876
876
|
function Ne() {
|
|
@@ -882,13 +882,13 @@ function ht(a, e, t) {
|
|
|
882
882
|
});
|
|
883
883
|
}
|
|
884
884
|
const De = () => oe(), Me = () => X();
|
|
885
|
-
function
|
|
885
|
+
function Ae(o) {
|
|
886
886
|
ue[o ? "unshift" : "push"](() => {
|
|
887
887
|
D = o, t(14, D);
|
|
888
888
|
});
|
|
889
889
|
}
|
|
890
890
|
return a.$$set = (o) => {
|
|
891
|
-
"endpoint" in o && t(0, r = o.endpoint), "datasource" in o && t(28, l = o.datasource), "session" in o && t(29, s = o.session), "userid" in o && t(30, i = o.userid), "lang" in o && t(1, c = o.lang), "mbsource" in o && t(2, g = o.mbsource), "clientstyling" in o && t(3, h = o.clientstyling), "clientstylingurl" in o && t(4, m = o.clientstylingurl), "integratedgameframedesktop" in o && t(5, b = o.integratedgameframedesktop), "integratedgameframemobile" in o && t(6, d = o.integratedgameframemobile), "showgamename" in o && t(7, p = o.showgamename), "gamepagemodalurl" in o && t(8, M = o.gamepagemodalurl), "translationurl" in o && t(31, P = o.translationurl), "showfavorites" in o && t(9,
|
|
891
|
+
"endpoint" in o && t(0, r = o.endpoint), "datasource" in o && t(28, l = o.datasource), "session" in o && t(29, s = o.session), "userid" in o && t(30, i = o.userid), "lang" in o && t(1, c = o.lang), "mbsource" in o && t(2, g = o.mbsource), "clientstyling" in o && t(3, h = o.clientstyling), "clientstylingurl" in o && t(4, m = o.clientstylingurl), "integratedgameframedesktop" in o && t(5, b = o.integratedgameframedesktop), "integratedgameframemobile" in o && t(6, d = o.integratedgameframemobile), "showgamename" in o && t(7, p = o.showgamename), "gamepagemodalurl" in o && t(8, M = o.gamepagemodalurl), "translationurl" in o && t(31, P = o.translationurl), "showfavorites" in o && t(9, A = o.showfavorites), "cancelbutton" in o && t(10, W = o.cancelbutton), "notfoundicon" in o && t(11, O = o.notfoundicon);
|
|
892
892
|
}, a.$$.update = () => {
|
|
893
893
|
if (a.$$.dirty[0] & /*searchValue, endpoint, datasource, lang, searchCancelled*/
|
|
894
894
|
268447747)
|
|
@@ -902,12 +902,12 @@ function ht(a, e, t) {
|
|
|
902
902
|
a.$$.dirty[0] & /*lang*/
|
|
903
903
|
2 && c && ze(), a.$$.dirty[1] & /*translationurl*/
|
|
904
904
|
1 && P && Ce(), a.$$.dirty[0] & /*session, userid*/
|
|
905
|
-
1610612736 && s && i &&
|
|
905
|
+
1610612736 && s && i && je(), a.$$.dirty[0] & /*showfavorites*/
|
|
906
906
|
512 | a.$$.dirty[1] & /*isLoggedIn*/
|
|
907
|
-
2 &&
|
|
908
|
-
16392 && h && D &&
|
|
909
|
-
16400 && m && D &&
|
|
910
|
-
16388 && g && D &&
|
|
907
|
+
2 && A && Y && Ie(), a.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
908
|
+
16392 && h && D && Ke(D, h), a.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
909
|
+
16400 && m && D && Qe(D, m), a.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
910
|
+
16388 && g && D && Xe(D, `${g}.Style`);
|
|
911
911
|
}, [
|
|
912
912
|
r,
|
|
913
913
|
c,
|
|
@@ -918,7 +918,7 @@ function ht(a, e, t) {
|
|
|
918
918
|
d,
|
|
919
919
|
p,
|
|
920
920
|
M,
|
|
921
|
-
|
|
921
|
+
A,
|
|
922
922
|
W,
|
|
923
923
|
O,
|
|
924
924
|
R,
|
|
@@ -946,7 +946,7 @@ function ht(a, e, t) {
|
|
|
946
946
|
Pe,
|
|
947
947
|
De,
|
|
948
948
|
Me,
|
|
949
|
-
|
|
949
|
+
Ae
|
|
950
950
|
];
|
|
951
951
|
}
|
|
952
952
|
class dt extends qe {
|
|
@@ -956,7 +956,7 @@ class dt extends qe {
|
|
|
956
956
|
e,
|
|
957
957
|
ht,
|
|
958
958
|
ct,
|
|
959
|
-
|
|
959
|
+
Oe,
|
|
960
960
|
{
|
|
961
961
|
endpoint: 0,
|
|
962
962
|
datasource: 28,
|
|
@@ -1076,7 +1076,7 @@ class dt extends qe {
|
|
|
1076
1076
|
this.$$set({ notfoundicon: e }), L();
|
|
1077
1077
|
}
|
|
1078
1078
|
}
|
|
1079
|
-
|
|
1079
|
+
$e(dt, { endpoint: {}, datasource: {}, session: {}, userid: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, integratedgameframedesktop: {}, integratedgameframemobile: {}, showgamename: {}, gamepagemodalurl: {}, translationurl: {}, showfavorites: {}, cancelbutton: {}, notfoundicon: {} }, [], [], !0);
|
|
1080
1080
|
export {
|
|
1081
1081
|
dt as default
|
|
1082
1082
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-B4OJuO_L.cjs");require("./CasinoGamesCategorySectionNd-wkSdhFLy.cjs");const W=require("./CasinoGameThumbnailNd-DbHe7zqB.cjs");function X(n,t){e.addMessages(n,t)}function Re(n){e.$locale.set(n)}const Q={en:{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"zh-hk":{recentSearch:"最近的搜索",loading:"加载请稍候",searchResult:"搜索结果",cancel:"取消",notFound:"找不到游戏!",notFoundText:"请输入正确的游戏名称开始玩。",noRecentSearches:"还没有最近的搜索。 搜索我们的任何游戏。"},de:{recentSearch:"Letzte Suche",placeHolderSearchGames:"Hier nach Spielen suchen",loading:"Es lädt, bitte warten...",searchResult:"Ergebnis suchen",cancel:"Abbrechen",notFound:"Spiel wurde nicht gefunden!",notFoundText:"Spiel nicht gefunden! Bitte verwende den richtigen Spielnamen um es zu starten.",noRecentSearches:"Keine vorherige Suche vorhanden! Suche nach einem beliebigen Spiel"},it:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},fr:{recentSearch:"Recherche récente",placeHolderSearchGames:"Recherche de jeux de casino",loading:"Chargement, veuillez patienter",searchResult:"Résultat de la recherche",cancel:"Annuler",notFound:"Jeu non trouvé!",notFoundText:"Veuillez saisir le nom correct du jeu pour commencer à jouer.",noRecentSearches:"Pas encore de recherches récentes. Recherchez l'un de nos jeux."},es:{recentSearch:"Busqueda reciente",placeHolderSearchGames:"Buscar juegos",loading:"Cargando",searchResult:"Resultado de busqueda",cancel:"Cancelar",notFound:"Juego no encontrado!",notFoundText:"Por favor escriba el nombre correcto del juego para empezar a jugar.",noRecentSearches:"No hay búsquedas recientes. Busca cualquiera de nuestros juegos"},gr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},tr:{recentSearch:"Henüz son aramalar yok. Herhangi bir oyunu arayın.",loading:"Kayıt olmak",searchResult:"PARA YATIR",cancel:"İptal:",notFound:"Hepsi",notFoundText:"A-Z",noRecentSearches:"En Yeni",placeHolderSearchGames:"Oyun ara ..."},ru:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play."},ro:{recentSearch:"Cautari recente",loading:"Se incarca, te rugam asteapta…",searchResult:"Rezultat cautare",cancel:"Anuleaza",notFound:"Nu am gasit niciun rezultat!",notFoundText:"Te rugam sa introduci corect numele jocului.",noRecentSearches:"Nu sunt cautari recente. Cauta oricare din jocurile noastre.",placeHolderSearchGames:"Căutați Jocuri"},hr:{recentSearch:"Nedavna pretraga",loading:"Učitavanje",searchResult:"Rezultat pretrage",cancel:"Otkaži",notFound:"Igra nije pronađena!",notFoundText:"Molimo upišite točan naziv igre kako biste započeli igrati.",noRecentSearches:"Još nema nedavnih pretraživanja. Potražite bilo koju od naših igara.",placeHolderSearchGames:"Traži igre"},hu:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pt:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",placeHolderSearchGames:"Pesquisar jogos",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"es-mx":{recentSearch:"Búsqueda reciente",loading:"Cargando, por favor espera",searchResult:"Resultado de la búsqueda",placeHolderSearchGames:"Buscar juegos",cancel:"Cancelar",notFound:"¡Juego no encontrado!",notFoundText:"Por favor, escribe el nombre correcto del juego para comenzar a jugar.",noRecentSearches:"Aún no hay búsquedas recientes. Busca cualquiera de nuestros juegos."},"pt-br":{recentSearch:"Pesquisa recente",loading:"Carregando, por favor aguarde",searchResult:"Resultado da pesquisa",placeHolderSearchGames:"Buscar jogos",cancel:"Cancelar",notFound:"Jogo não encontrado!",notFoundText:"Por favor, digite o nome correto do jogo para começar a jogar.",noRecentSearches:"Ainda não há pesquisas recentes. Busque por qualquer um dos nossos jogos."},"en-us":{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}};function Ce(n){e.append_styles(n,"svelte-1vt65d9","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:10px 10px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;color:var(--emw--color-gray-100, #E6E6E6);border:none;background:var(--emw--color-secondary, #194127);border-radius:var(--emw--border-radius-medium, 10px);display:block;font-size:16px;font-weight:300;padding:14px 30px 14px 46px;width:100%;transition:3s}.SearchInput::placeholder{color:var(--emw--color-white, #FFF);font-size:16px;font-weight:300}.SearchInput:focus{background:var(--emw--color-primary, #194127)}.SearchInput:focus-visible{outline-width:0}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:10px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}")}function $(n,t,a){const r=n.slice();return r[53]=t[a],r}function ee(n){let t,a=n[21]("cancel")+"",r,s,i,l;return{c(){t=e.element("small"),r=e.text(a),e.attr(t,"class",s="SearchCancelButton "+(n[13]?"NotVisible":""))},m(c,u){e.insert(c,t,u),e.append(t,r),i||(l=e.listen(t,"click",n[36]),i=!0)},p(c,u){u[0]&2097152&&a!==(a=c[21]("cancel")+"")&&e.set_data(r,a),u[0]&8192&&s!==(s="SearchCancelButton "+(c[13]?"NotVisible":""))&&e.attr(t,"class",s)},d(c){c&&e.detach(t),i=!1,l()}}}function Fe(n){let t,a,r,s;function i(d,m){if(d[17]==!0&&d[12].length<2)return Ie;if(d[15].length!=0)return Te}let l=i(n),c=l&&l(n),u=n[13]===!1&&re(n),f=n[12].length>=2&&n[15].length==0&&oe(n);return{c(){c&&c.c(),t=e.space(),a=e.element("div"),u&&u.c(),r=e.space(),f&&f.c(),e.attr(a,"class",s="SearchResultsContainer "+(n[17]==!0?"":"NotVisible"))},m(d,m){c&&c.m(d,m),e.insert(d,t,m),e.insert(d,a,m),u&&u.m(a,null),e.append(a,r),f&&f.m(a,null)},p(d,m){l===(l=i(d))&&c?c.p(d,m):(c&&c.d(1),c=l&&l(d),c&&(c.c(),c.m(t.parentNode,t))),d[13]===!1?u?u.p(d,m):(u=re(d),u.c(),u.m(a,r)):u&&(u.d(1),u=null),d[12].length>=2&&d[15].length==0?f?f.p(d,m):(f=oe(d),f.c(),f.m(a,null)):f&&(f.d(1),f=null),m[0]&131072&&s!==(s="SearchResultsContainer "+(d[17]==!0?"":"NotVisible"))&&e.attr(a,"class",s)},d(d){d&&(e.detach(t),e.detach(a)),c&&c.d(d),u&&u.d(),f&&f.d()}}}function Le(n){let t,a=n[21]("loading")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","LoadingContent")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("loading")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function Te(n){let t,a=n[21]("searchResult")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","SearchMessage")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("searchResult")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function Ie(n){let t,a,r=n[15].length!==0&&te(n),s=n[15].length==0&&ae(n);return{c(){r&&r.c(),t=e.space(),s&&s.c(),a=e.empty()},m(i,l){r&&r.m(i,l),e.insert(i,t,l),s&&s.m(i,l),e.insert(i,a,l)},p(i,l){i[15].length!==0?r?r.p(i,l):(r=te(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),i[15].length==0?s?s.p(i,l):(s=ae(i),s.c(),s.m(a.parentNode,a)):s&&(s.d(1),s=null)},d(i){i&&(e.detach(t),e.detach(a)),r&&r.d(i),s&&s.d(i)}}}function te(n){let t,a=n[21]("recentSearch")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","SearchMessage")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("recentSearch")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function ae(n){let t,a,r,s=n[21]("noRecentSearches")+"",i,l,c=n[11]==="true"&&ne();return{c(){t=e.element("div"),c&&c.c(),a=e.space(),r=e.element("p"),i=e.text(s),e.attr(r,"class","SearchMessage"),e.attr(t,"class",l="ResultsContainerError "+(n[11]=="true"?"WithIcon":""))},m(u,f){e.insert(u,t,f),c&&c.m(t,null),e.append(t,a),e.append(t,r),e.append(r,i)},p(u,f){u[11]==="true"?c||(c=ne(),c.c(),c.m(t,a)):c&&(c.d(1),c=null),f[0]&2097152&&s!==(s=u[21]("noRecentSearches")+"")&&e.set_data(i,s),f[0]&2048&&l!==(l="ResultsContainerError "+(u[11]=="true"?"WithIcon":""))&&e.attr(t,"class",l)},d(u){u&&e.detach(t),c&&c.d()}}}function ne(n){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(a,r){e.insert(a,t,r)},d(a){a&&e.detach(t)}}}function re(n){let t,a=e.ensure_array_like(n[15]),r=[];for(let s=0;s<a.length;s+=1)r[s]=se($(n,a,s));return{c(){for(let s=0;s<r.length;s+=1)r[s].c();t=e.empty()},m(s,i){for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(s,i);e.insert(s,t,i)},p(s,i){if(i[0]&35161087){a=e.ensure_array_like(s[15]);let l;for(l=0;l<a.length;l+=1){const c=$(s,a,l);r[l]?r[l].p(c,i):(r[l]=se(c),r[l].c(),r[l].m(t.parentNode,t))}for(;l<r.length;l+=1)r[l].d(1);r.length=a.length}},d(s){s&&e.detach(t),e.destroy_each(r,s)}}}function se(n){let t,a,r,s,i,l,c,u,f,d,m,S;return{c(){var h;t=e.element("casino-game-thumbnail-nd"),e.set_custom_element_data(t,"endpoint",n[0]),e.set_custom_element_data(t,"session",n[19]),e.set_custom_element_data(t,"userid",n[20]),e.set_custom_element_data(t,"favorites",n[9]),e.set_custom_element_data(t,"lang",n[1]),e.set_custom_element_data(t,"gamethumbnail",a=n[53].thumbnail),e.set_custom_element_data(t,"gamename",r=n[53].name),e.set_custom_element_data(t,"gamevendor",s=n[53].vendor.name),e.set_custom_element_data(t,"gameLaunchUrl",i=n[53].launchUrl),e.set_custom_element_data(t,"gameisnew",l=n[53].isNew),e.set_custom_element_data(t,"gametag",c=((h=n[53].advancedTags)==null?void 0:h.length)>0&&n[25](n[53].advancedTags)),e.set_custom_element_data(t,"gamecellsize",u=n[53].cellSize),e.set_custom_element_data(t,"gameid",f=n[53].id),e.set_custom_element_data(t,"showgamename",n[7]),e.set_custom_element_data(t,"gamefunmode",d=n[53].hasFunMode),e.set_custom_element_data(t,"gamefavorite",m=n[53].isFavorite),e.set_custom_element_data(t,"livelobbyendpoint",S=n[53].details?n[53].launchUrl:""),e.set_custom_element_data(t,"integratedgameframedesktop",n[5]),e.set_custom_element_data(t,"integratedgameframemobile",n[6]),e.set_custom_element_data(t,"clientstyling",n[3]),e.set_custom_element_data(t,"clientstylingurl",n[4]),e.set_custom_element_data(t,"gamepagemodalurl",n[8]),e.set_custom_element_data(t,"mbsource",n[2])},m(h,g){e.insert(h,t,g)},p(h,g){var j;g[0]&1&&e.set_custom_element_data(t,"endpoint",h[0]),g[0]&524288&&e.set_custom_element_data(t,"session",h[19]),g[0]&1048576&&e.set_custom_element_data(t,"userid",h[20]),g[0]&512&&e.set_custom_element_data(t,"favorites",h[9]),g[0]&2&&e.set_custom_element_data(t,"lang",h[1]),g[0]&32768&&a!==(a=h[53].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",a),g[0]&32768&&r!==(r=h[53].name)&&e.set_custom_element_data(t,"gamename",r),g[0]&32768&&s!==(s=h[53].vendor.name)&&e.set_custom_element_data(t,"gamevendor",s),g[0]&32768&&i!==(i=h[53].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",i),g[0]&32768&&l!==(l=h[53].isNew)&&e.set_custom_element_data(t,"gameisnew",l),g[0]&32768&&c!==(c=((j=h[53].advancedTags)==null?void 0:j.length)>0&&h[25](h[53].advancedTags))&&e.set_custom_element_data(t,"gametag",c),g[0]&32768&&u!==(u=h[53].cellSize)&&e.set_custom_element_data(t,"gamecellsize",u),g[0]&32768&&f!==(f=h[53].id)&&e.set_custom_element_data(t,"gameid",f),g[0]&128&&e.set_custom_element_data(t,"showgamename",h[7]),g[0]&32768&&d!==(d=h[53].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",d),g[0]&32768&&m!==(m=h[53].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",m),g[0]&32768&&S!==(S=h[53].details?h[53].launchUrl:"")&&e.set_custom_element_data(t,"livelobbyendpoint",S),g[0]&32&&e.set_custom_element_data(t,"integratedgameframedesktop",h[5]),g[0]&64&&e.set_custom_element_data(t,"integratedgameframemobile",h[6]),g[0]&8&&e.set_custom_element_data(t,"clientstyling",h[3]),g[0]&16&&e.set_custom_element_data(t,"clientstylingurl",h[4]),g[0]&256&&e.set_custom_element_data(t,"gamepagemodalurl",h[8]),g[0]&4&&e.set_custom_element_data(t,"mbsource",h[2])},d(h){h&&e.detach(t)}}}function oe(n){let t,a,r,s=n[21]("notFound")+"",i,l,c,u=n[21]("notFoundText")+"",f,d,m=n[11]==="true"&&le();return{c(){t=e.element("div"),m&&m.c(),a=e.space(),r=e.element("p"),i=e.text(s),l=e.space(),c=e.element("p"),f=e.text(u),e.attr(r,"class","SearchMessage"),e.attr(t,"class",d="ResultsContainerError "+(n[11]=="true"?"WithIcon":""))},m(S,h){e.insert(S,t,h),m&&m.m(t,null),e.append(t,a),e.append(t,r),e.append(r,i),e.append(t,l),e.append(t,c),e.append(c,f)},p(S,h){S[11]==="true"?m||(m=le(),m.c(),m.m(t,a)):m&&(m.d(1),m=null),h[0]&2097152&&s!==(s=S[21]("notFound")+"")&&e.set_data(i,s),h[0]&2097152&&u!==(u=S[21]("notFoundText")+"")&&e.set_data(f,u),h[0]&2048&&d!==(d="ResultsContainerError "+(S[11]=="true"?"WithIcon":""))&&e.attr(t,"class",d)},d(S){S&&e.detach(t),m&&m.d()}}}function le(n){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(a,r){e.insert(a,t,r)},d(a){a&&e.detach(t)}}}function je(n){let t,a,r,s,i,l,c,u,f,d,m,S,h,g,j,T,G,N,P,D,w=n[10]==="true"&&ee(n);function F(_,R){return _[18]?Le:Fe}let E=F(n),v=E(n);return{c(){t=e.element("div"),a=e.element("div"),r=e.element("div"),s=e.element("div"),s.innerHTML='<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#FFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#FFF" stroke-width="1.5"></circle></svg>',i=e.space(),l=e.element("input"),u=e.space(),f=e.element("span"),d=e.svg_element("svg"),m=e.svg_element("path"),h=e.space(),w&&w.c(),j=e.space(),T=e.element("div"),N=e.space(),v.c(),e.attr(s,"class","SearchIcon"),e.attr(l,"class","SearchInput"),e.attr(l,"type","search"),e.attr(l,"placeholder",c=n[21]("placeHolderSearchGames")),e.attr(l,"maxlength",Ge),e.attr(m,"d","m1.45 1.5 8.1 8M1.45 9.5l8.1-8"),e.attr(m,"stroke","#717171"),e.attr(m,"stroke-width","2"),e.attr(m,"stroke-linecap","round"),e.attr(m,"stroke-linejoin","round"),e.attr(d,"width","11"),e.attr(d,"height","11"),e.attr(d,"fill","none"),e.attr(d,"xmlns","http://www.w3.org/2000/svg"),e.attr(f,"class",S="SearchClearButton "+(n[10]!="true"?"WithoutCancel":"")+" "+(n[12].length!=0?"":"NotVisible")),e.attr(r,"class",g="Search "+(n[13]?"":"SearchAnimation")),e.attr(a,"class","SearchWrap"),e.attr(T,"class",G=n[10]!="true"?"OverlayCancel":""),e.attr(t,"class",(e.getDevice(n[22])!=="PC"?"":"Desktop")+" CasinoSearch")},m(_,R){e.insert(_,t,R),e.append(t,a),e.append(a,r),e.append(r,s),e.append(r,i),e.append(r,l),e.set_input_value(l,n[12]),n[34](l),e.append(r,u),e.append(r,f),e.append(f,d),e.append(d,m),e.append(r,h),w&&w.m(r,null),e.append(t,j),e.append(t,T),e.append(t,N),v.m(t,null),n[37](t),P||(D=[e.listen(l,"input",n[33]),e.listen(l,"focus",n[23]),e.listen(f,"click",n[35]),e.listen(T,"click",n[24])],P=!0)},p(_,R){R[0]&2097152&&c!==(c=_[21]("placeHolderSearchGames"))&&e.attr(l,"placeholder",c),R[0]&4096&&l.value!==_[12]&&e.set_input_value(l,_[12]),R[0]&5120&&S!==(S="SearchClearButton "+(_[10]!="true"?"WithoutCancel":"")+" "+(_[12].length!=0?"":"NotVisible"))&&e.attr(f,"class",S),_[10]==="true"?w?w.p(_,R):(w=ee(_),w.c(),w.m(r,null)):w&&(w.d(1),w=null),R[0]&8192&&g!==(g="Search "+(_[13]?"":"SearchAnimation"))&&e.attr(r,"class",g),R[0]&1024&&G!==(G=_[10]!="true"?"OverlayCancel":"")&&e.attr(T,"class",G),E===(E=F(_))&&v?v.p(_,R):(v.d(1),v=E(_),v&&(v.c(),v.m(t,null)))},i:e.noop,o:e.noop,d(_){_&&e.detach(t),n[34](null),w&&w.d(),v.d(),n[37](null),P=!1,e.run_all(D)}}}let Ge=50;function Ee(n,t,a){let r;e.component_subscribe(n,e.$format,o=>a(21,r=o));let{endpoint:s=""}=t,{datasource:i=""}=t,{session:l=""}=t,{userid:c=""}=t,{lang:u="en"}=t,{mbsource:f}=t,{clientstyling:d=""}=t,{clientstylingurl:m=""}=t,{integratedgameframedesktop:S="false"}=t,{integratedgameframemobile:h="false"}=t,{showgamename:g=""}=t,{gamepagemodalurl:j="true"}=t,{translationurl:T=""}=t,{showfavorites:G=""}=t,{cancelbutton:N="true"}=t,{notfoundicon:P="false"}=t,D=window.navigator.userAgent,w=[],F=[],E={},v="",_,R=!0,x=!1,L=!1,I,A=!1,q,B,U=[];const ce=()=>{fetch(T).then(p=>p.json()).then(p=>{Object.keys(p).forEach(b=>{X(b,p[b])})}).catch(p=>{console.log(p)})};Object.keys(Q).forEach(o=>{X(o,Q[o])});const V=o=>{o.data&&o.data.type=="SearchedItemClicked"&&pe(o.data.gameId),o.data.type=="UserSessionID"&&(a(19,q=o.data.session),a(20,B=o.data.userid),a(32,A=!0)),o.data.type=="CategoryChange"&&H()},J=()=>{if(a(13,R=!1),a(17,x=!0),s&&i&&u&&v.length<2){a(15,w=[]);let o=localStorage.getItem("searchedGamesWds_casino"),p=[];o&&(p=o.split(","));let b=[],k=0,y=p.length;if(y>0){for(k=0;k<y;k++){let C=new URL(`${s}/v1/casino/games/${p[k]}`);C.searchParams.append("language",u),C.searchParams.append("datasource",i),C.searchParams.append("platform",e.getDevice(D)),b.push(he(C,p[k]))}Promise.all(b).then(C=>{C=C.filter(function(z){return!!z}),a(15,w=C.map(z=>(z.isFavorite=Z(z.id),z))),w.length?M("searchSuccess","SearchWidget"):M("searchFail","SearchWidget")}).catch(C=>{M("searchError","SearchWidget")})}}K(x),M("searchAttempt","SearchWidget"),M("SearchInitialized","SearchWidget")},M=(o,p)=>{typeof gtag=="function"&>ag("event",o,{context:p})},ue=()=>{N!="true"&&H()},de=o=>new Promise((p,b)=>{a(18,L=!0),fetch(o.href).then(k=>k.json()).then(k=>{a(18,L=!1),p(k)}).catch(k=>{a(18,L=!1),console.error(k),b(k)})}),he=(o,p)=>new Promise((b,k)=>{a(18,L=!0),p&&Object.keys(E).indexOf(p)>=0?(a(18,L=!1),b(E[p])):fetch(o).then(y=>y.json()).then(y=>{a(18,L=!1),y.error||(E[y[0].gameId]=y[0]),b(y[0])}).catch(y=>{a(18,L=!1),console.error(y),k(y)})}),me=()=>{const o=new URL(`${s}/v1/player/${B}/favorites/`);a(18,L=!0);let p={method:"GET",headers:{"X-SessionID":q}};fetch(o.href,p).then(b=>b.json()).then(b=>{a(18,L=!1),U=b.items.map(k=>k.id)})},fe=()=>{a(32,A=!0),a(19,q=l),a(20,B=c)},Z=o=>U.findIndex(p=>p==o)!==-1,ge=o=>{if((o==null?void 0:o.length)===0)return"";let p,b=99999999999,k;const y=new Date(Date.now());return o.forEach((C,z)=>{const ye=new Date(C.schedules[0].startTime),O=new Date(C.schedules[0].endTime);W.differenceInMilliseconds(new Date(O),new Date(y))<b&&(b=W.differenceInMilliseconds(new Date(O),new Date(y)),k=z),W.isAfter(new Date(y),new Date(ye))&&W.isBefore(new Date(y),new Date(O))&&(p=o[k].name)}),p},pe=o=>{if(F=localStorage.getItem("searchedGamesWds_casino"),F?F=F.split(","):F=[],F.indexOf(o)===-1){let p;F.unshift(o),p=F.join(","),localStorage.setItem("searchedGamesWds_casino",p)}},H=()=>{a(12,v=""),a(13,R=!0),a(18,L=!1),a(15,w=[]),a(17,x=!1),K(x)},Y=()=>{a(12,v=""),_.focus()},K=o=>{window.postMessage({type:o===!0?"searchActive":"searchCancelled",searchStatus:o},window.location.href)},_e=()=>{Re(u)};e.onMount(()=>(window.addEventListener("message",V,!1),()=>{window.removeEventListener("message",V)}));function Se(){v=this.value,a(12,v)}function we(o){e.binding_callbacks[o?"unshift":"push"](()=>{_=o,a(16,_)})}const be=()=>Y(),ve=()=>H();function ke(o){e.binding_callbacks[o?"unshift":"push"](()=>{I=o,a(14,I)})}return n.$$set=o=>{"endpoint"in o&&a(0,s=o.endpoint),"datasource"in o&&a(28,i=o.datasource),"session"in o&&a(29,l=o.session),"userid"in o&&a(30,c=o.userid),"lang"in o&&a(1,u=o.lang),"mbsource"in o&&a(2,f=o.mbsource),"clientstyling"in o&&a(3,d=o.clientstyling),"clientstylingurl"in o&&a(4,m=o.clientstylingurl),"integratedgameframedesktop"in o&&a(5,S=o.integratedgameframedesktop),"integratedgameframemobile"in o&&a(6,h=o.integratedgameframemobile),"showgamename"in o&&a(7,g=o.showgamename),"gamepagemodalurl"in o&&a(8,j=o.gamepagemodalurl),"translationurl"in o&&a(31,T=o.translationurl),"showfavorites"in o&&a(9,G=o.showfavorites),"cancelbutton"in o&&a(10,N=o.cancelbutton),"notfoundicon"in o&&a(11,P=o.notfoundicon)},n.$$.update=()=>{if(n.$$.dirty[0]&268447747)if(v.length>=2){const o=new URL(`${s}/v1/casino/games`);o.searchParams.append("datasource",i),o.searchParams.append("expand","vendor"),o.searchParams.append("platform",e.getDevice(D)),o.searchParams.append("language",u),o.searchParams.append("pagination","offset=0,limit=30"),o.searchParams.append("filter",`name=${v}`),de(o).then(p=>{a(15,w=p.items.map(b=>(b.isFavorite=Z(b.id),b)))})}else R||J();n.$$.dirty[0]&2&&u&&_e(),n.$$.dirty[1]&1&&T&&ce(),n.$$.dirty[0]&1610612736&&l&&c&&fe(),n.$$.dirty[0]&512|n.$$.dirty[1]&2&&G&&A&&me(),n.$$.dirty[0]&16392&&d&&I&&e.setClientStyling(I,d),n.$$.dirty[0]&16400&&m&&I&&e.setClientStylingURL(I,m),n.$$.dirty[0]&16388&&f&&I&&e.setStreamStyling(I,`${f}.Style`)},[s,u,f,d,m,S,h,g,j,G,N,P,v,R,I,w,_,x,L,q,B,r,D,J,ue,ge,H,Y,i,l,c,T,A,Se,we,be,ve,ke]}class ie extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ee,je,e.safe_not_equal,{endpoint:0,datasource:28,session:29,userid:30,lang:1,mbsource:2,clientstyling:3,clientstylingurl:4,integratedgameframedesktop:5,integratedgameframemobile:6,showgamename:7,gamepagemodalurl:8,translationurl:31,showfavorites:9,cancelbutton:10,notfoundicon:11},Ce,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[28]}set datasource(t){this.$$set({datasource:t}),e.flush()}get session(){return this.$$.ctx[29]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[30]}set userid(t){this.$$set({userid:t}),e.flush()}get lang(){return this.$$.ctx[1]}set lang(t){this.$$set({lang:t}),e.flush()}get mbsource(){return this.$$.ctx[2]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get integratedgameframedesktop(){return this.$$.ctx[5]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),e.flush()}get integratedgameframemobile(){return this.$$.ctx[6]}set integratedgameframemobile(t){this.$$set({integratedgameframemobile:t}),e.flush()}get showgamename(){return this.$$.ctx[7]}set showgamename(t){this.$$set({showgamename:t}),e.flush()}get gamepagemodalurl(){return this.$$.ctx[8]}set gamepagemodalurl(t){this.$$set({gamepagemodalurl:t}),e.flush()}get translationurl(){return this.$$.ctx[31]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get showfavorites(){return this.$$.ctx[9]}set showfavorites(t){this.$$set({showfavorites:t}),e.flush()}get cancelbutton(){return this.$$.ctx[10]}set cancelbutton(t){this.$$set({cancelbutton:t}),e.flush()}get notfoundicon(){return this.$$.ctx[11]}set notfoundicon(t){this.$$set({notfoundicon:t}),e.flush()}}e.create_custom_element(ie,{endpoint:{},datasource:{},session:{},userid:{},lang:{},mbsource:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{}},[],[],!0);exports.default=ie;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoCalendar-dCsBOCh4.cjs");require("./CasinoGamesCategorySectionNd-BWwBc-gL.cjs");const W=require("./CasinoGameThumbnailNd-CmRsAJDi.cjs");function X(n,t){e.addMessages(n,t)}function Re(n){e.$locale.set(n)}const Q={en:{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"zh-hk":{recentSearch:"最近的搜索",loading:"加载请稍候",searchResult:"搜索结果",cancel:"取消",notFound:"找不到游戏!",notFoundText:"请输入正确的游戏名称开始玩。",noRecentSearches:"还没有最近的搜索。 搜索我们的任何游戏。"},de:{recentSearch:"Letzte Suche",placeHolderSearchGames:"Hier nach Spielen suchen",loading:"Es lädt, bitte warten...",searchResult:"Ergebnis suchen",cancel:"Abbrechen",notFound:"Spiel wurde nicht gefunden!",notFoundText:"Spiel nicht gefunden! Bitte verwende den richtigen Spielnamen um es zu starten.",noRecentSearches:"Keine vorherige Suche vorhanden! Suche nach einem beliebigen Spiel"},it:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},fr:{recentSearch:"Recherche récente",placeHolderSearchGames:"Recherche de jeux de casino",loading:"Chargement, veuillez patienter",searchResult:"Résultat de la recherche",cancel:"Annuler",notFound:"Jeu non trouvé!",notFoundText:"Veuillez saisir le nom correct du jeu pour commencer à jouer.",noRecentSearches:"Pas encore de recherches récentes. Recherchez l'un de nos jeux."},es:{recentSearch:"Busqueda reciente",placeHolderSearchGames:"Buscar juegos",loading:"Cargando",searchResult:"Resultado de busqueda",cancel:"Cancelar",notFound:"Juego no encontrado!",notFoundText:"Por favor escriba el nombre correcto del juego para empezar a jugar.",noRecentSearches:"No hay búsquedas recientes. Busca cualquiera de nuestros juegos"},gr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},tr:{recentSearch:"Henüz son aramalar yok. Herhangi bir oyunu arayın.",loading:"Kayıt olmak",searchResult:"PARA YATIR",cancel:"İptal:",notFound:"Hepsi",notFoundText:"A-Z",noRecentSearches:"En Yeni",placeHolderSearchGames:"Oyun ara ..."},ru:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play."},ro:{recentSearch:"Cautari recente",loading:"Se incarca, te rugam asteapta…",searchResult:"Rezultat cautare",cancel:"Anuleaza",notFound:"Nu am gasit niciun rezultat!",notFoundText:"Te rugam sa introduci corect numele jocului.",noRecentSearches:"Nu sunt cautari recente. Cauta oricare din jocurile noastre.",placeHolderSearchGames:"Căutați Jocuri"},hr:{recentSearch:"Nedavna pretraga",loading:"Učitavanje",searchResult:"Rezultat pretrage",cancel:"Otkaži",notFound:"Igra nije pronađena!",notFoundText:"Molimo upišite točan naziv igre kako biste započeli igrati.",noRecentSearches:"Još nema nedavnih pretraživanja. Potražite bilo koju od naših igara.",placeHolderSearchGames:"Traži igre"},hu:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},pt:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",placeHolderSearchGames:"Pesquisar jogos",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sl:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},sr:{recentSearch:"Recent search",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."},"es-mx":{recentSearch:"Búsqueda reciente",loading:"Cargando, por favor espera",searchResult:"Resultado de la búsqueda",placeHolderSearchGames:"Buscar juegos",cancel:"Cancelar",notFound:"¡Juego no encontrado!",notFoundText:"Por favor, escribe el nombre correcto del juego para comenzar a jugar.",noRecentSearches:"Aún no hay búsquedas recientes. Busca cualquiera de nuestros juegos."},"pt-br":{recentSearch:"Pesquisa recente",loading:"Carregando, por favor aguarde",searchResult:"Resultado da pesquisa",placeHolderSearchGames:"Buscar jogos",cancel:"Cancelar",notFound:"Jogo não encontrado!",notFoundText:"Por favor, digite o nome correto do jogo para começar a jogar.",noRecentSearches:"Ainda não há pesquisas recentes. Busque por qualquer um dos nossos jogos."},"en-us":{recentSearch:"Recent search",placeHolderSearchGames:"Search for Games",loading:"Loading, please wait",searchResult:"Search result",cancel:"Cancel",notFound:"Game not found!",notFoundText:"Please type the correct name of the game to start to play.",noRecentSearches:"No recent searches yet. Search for any of our games."}};function Ce(n){e.append_styles(n,"svelte-1vt65d9","*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}.CasinoSearch{margin:10px 10px;position:relative}.SearchWrap{width:100%;margin:auto}.OverlayCancel{width:100%;height:100vh;position:absolute;translate:0 -100px;z-index:2}.LoadingContent{color:var(--emw--casino-typography, var(--emw--color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;z-index:5}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;color:var(--emw--color-gray-100, #E6E6E6);border:none;background:var(--emw--color-secondary, #194127);border-radius:var(--emw--border-radius-medium, 10px);display:block;font-size:16px;font-weight:300;padding:14px 30px 14px 46px;width:100%;transition:3s}.SearchInput::placeholder{color:var(--emw--color-white, #FFF);font-size:16px;font-weight:300}.SearchInput:focus{background:var(--emw--color-primary, #194127)}.SearchInput:focus-visible{outline-width:0}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchClearButton.WithoutCancel{right:18px}.SearchCancelButton{color:var(--emw--color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emw--color-contrast, #000000)}.SearchErrorIcon{height:170px;filter:drop-shadow(1px 5px 5px rgba(0, 0, 0, 0.1))}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}casino-game-thumbnail{z-index:5}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop .SearchWrap{width:50%;margin:auto}.Desktop.CasinoSearch{margin:10px auto;position:relative}.Desktop .ResultsContainerError{text-align:center;width:300px;color:var(--emw--color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);z-index:1;margin-top:120px}.Desktop .ResultsContainerError.WithIcon{top:60%}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}.Desktop .SearchErrorIcon{height:190px;margin-bottom:-70px}.Desktop .OverlayCancel{height:90vh;z-index:2}")}function $(n,t,a){const r=n.slice();return r[53]=t[a],r}function ee(n){let t,a=n[21]("cancel")+"",r,s,i,l;return{c(){t=e.element("small"),r=e.text(a),e.attr(t,"class",s="SearchCancelButton "+(n[13]?"NotVisible":""))},m(c,u){e.insert(c,t,u),e.append(t,r),i||(l=e.listen(t,"click",n[36]),i=!0)},p(c,u){u[0]&2097152&&a!==(a=c[21]("cancel")+"")&&e.set_data(r,a),u[0]&8192&&s!==(s="SearchCancelButton "+(c[13]?"NotVisible":""))&&e.attr(t,"class",s)},d(c){c&&e.detach(t),i=!1,l()}}}function Fe(n){let t,a,r,s;function i(d,m){if(d[17]==!0&&d[12].length<2)return Ie;if(d[15].length!=0)return Te}let l=i(n),c=l&&l(n),u=n[13]===!1&&re(n),f=n[12].length>=2&&n[15].length==0&&oe(n);return{c(){c&&c.c(),t=e.space(),a=e.element("div"),u&&u.c(),r=e.space(),f&&f.c(),e.attr(a,"class",s="SearchResultsContainer "+(n[17]==!0?"":"NotVisible"))},m(d,m){c&&c.m(d,m),e.insert(d,t,m),e.insert(d,a,m),u&&u.m(a,null),e.append(a,r),f&&f.m(a,null)},p(d,m){l===(l=i(d))&&c?c.p(d,m):(c&&c.d(1),c=l&&l(d),c&&(c.c(),c.m(t.parentNode,t))),d[13]===!1?u?u.p(d,m):(u=re(d),u.c(),u.m(a,r)):u&&(u.d(1),u=null),d[12].length>=2&&d[15].length==0?f?f.p(d,m):(f=oe(d),f.c(),f.m(a,null)):f&&(f.d(1),f=null),m[0]&131072&&s!==(s="SearchResultsContainer "+(d[17]==!0?"":"NotVisible"))&&e.attr(a,"class",s)},d(d){d&&(e.detach(t),e.detach(a)),c&&c.d(d),u&&u.d(),f&&f.d()}}}function Le(n){let t,a=n[21]("loading")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","LoadingContent")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("loading")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function Te(n){let t,a=n[21]("searchResult")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","SearchMessage")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("searchResult")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function Ie(n){let t,a,r=n[15].length!==0&&te(n),s=n[15].length==0&&ae(n);return{c(){r&&r.c(),t=e.space(),s&&s.c(),a=e.empty()},m(i,l){r&&r.m(i,l),e.insert(i,t,l),s&&s.m(i,l),e.insert(i,a,l)},p(i,l){i[15].length!==0?r?r.p(i,l):(r=te(i),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),i[15].length==0?s?s.p(i,l):(s=ae(i),s.c(),s.m(a.parentNode,a)):s&&(s.d(1),s=null)},d(i){i&&(e.detach(t),e.detach(a)),r&&r.d(i),s&&s.d(i)}}}function te(n){let t,a=n[21]("recentSearch")+"",r;return{c(){t=e.element("p"),r=e.text(a),e.attr(t,"class","SearchMessage")},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&2097152&&a!==(a=s[21]("recentSearch")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function ae(n){let t,a,r,s=n[21]("noRecentSearches")+"",i,l,c=n[11]==="true"&&ne();return{c(){t=e.element("div"),c&&c.c(),a=e.space(),r=e.element("p"),i=e.text(s),e.attr(r,"class","SearchMessage"),e.attr(t,"class",l="ResultsContainerError "+(n[11]=="true"?"WithIcon":""))},m(u,f){e.insert(u,t,f),c&&c.m(t,null),e.append(t,a),e.append(t,r),e.append(r,i)},p(u,f){u[11]==="true"?c||(c=ne(),c.c(),c.m(t,a)):c&&(c.d(1),c=null),f[0]&2097152&&s!==(s=u[21]("noRecentSearches")+"")&&e.set_data(i,s),f[0]&2048&&l!==(l="ResultsContainerError "+(u[11]=="true"?"WithIcon":""))&&e.attr(t,"class",l)},d(u){u&&e.detach(t),c&&c.d()}}}function ne(n){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(a,r){e.insert(a,t,r)},d(a){a&&e.detach(t)}}}function re(n){let t,a=e.ensure_array_like(n[15]),r=[];for(let s=0;s<a.length;s+=1)r[s]=se($(n,a,s));return{c(){for(let s=0;s<r.length;s+=1)r[s].c();t=e.empty()},m(s,i){for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(s,i);e.insert(s,t,i)},p(s,i){if(i[0]&35161087){a=e.ensure_array_like(s[15]);let l;for(l=0;l<a.length;l+=1){const c=$(s,a,l);r[l]?r[l].p(c,i):(r[l]=se(c),r[l].c(),r[l].m(t.parentNode,t))}for(;l<r.length;l+=1)r[l].d(1);r.length=a.length}},d(s){s&&e.detach(t),e.destroy_each(r,s)}}}function se(n){let t,a,r,s,i,l,c,u,f,d,m,S;return{c(){var h;t=e.element("casino-game-thumbnail-nd"),e.set_custom_element_data(t,"endpoint",n[0]),e.set_custom_element_data(t,"session",n[19]),e.set_custom_element_data(t,"userid",n[20]),e.set_custom_element_data(t,"favorites",n[9]),e.set_custom_element_data(t,"lang",n[1]),e.set_custom_element_data(t,"gamethumbnail",a=n[53].thumbnail),e.set_custom_element_data(t,"gamename",r=n[53].name),e.set_custom_element_data(t,"gamevendor",s=n[53].vendor.name),e.set_custom_element_data(t,"gameLaunchUrl",i=n[53].launchUrl),e.set_custom_element_data(t,"gameisnew",l=n[53].isNew),e.set_custom_element_data(t,"gametag",c=((h=n[53].advancedTags)==null?void 0:h.length)>0&&n[25](n[53].advancedTags)),e.set_custom_element_data(t,"gamecellsize",u=n[53].cellSize),e.set_custom_element_data(t,"gameid",f=n[53].id),e.set_custom_element_data(t,"showgamename",n[7]),e.set_custom_element_data(t,"gamefunmode",d=n[53].hasFunMode),e.set_custom_element_data(t,"gamefavorite",m=n[53].isFavorite),e.set_custom_element_data(t,"livelobbyendpoint",S=n[53].details?n[53].launchUrl:""),e.set_custom_element_data(t,"integratedgameframedesktop",n[5]),e.set_custom_element_data(t,"integratedgameframemobile",n[6]),e.set_custom_element_data(t,"clientstyling",n[3]),e.set_custom_element_data(t,"clientstylingurl",n[4]),e.set_custom_element_data(t,"gamepagemodalurl",n[8]),e.set_custom_element_data(t,"mbsource",n[2])},m(h,g){e.insert(h,t,g)},p(h,g){var j;g[0]&1&&e.set_custom_element_data(t,"endpoint",h[0]),g[0]&524288&&e.set_custom_element_data(t,"session",h[19]),g[0]&1048576&&e.set_custom_element_data(t,"userid",h[20]),g[0]&512&&e.set_custom_element_data(t,"favorites",h[9]),g[0]&2&&e.set_custom_element_data(t,"lang",h[1]),g[0]&32768&&a!==(a=h[53].thumbnail)&&e.set_custom_element_data(t,"gamethumbnail",a),g[0]&32768&&r!==(r=h[53].name)&&e.set_custom_element_data(t,"gamename",r),g[0]&32768&&s!==(s=h[53].vendor.name)&&e.set_custom_element_data(t,"gamevendor",s),g[0]&32768&&i!==(i=h[53].launchUrl)&&e.set_custom_element_data(t,"gameLaunchUrl",i),g[0]&32768&&l!==(l=h[53].isNew)&&e.set_custom_element_data(t,"gameisnew",l),g[0]&32768&&c!==(c=((j=h[53].advancedTags)==null?void 0:j.length)>0&&h[25](h[53].advancedTags))&&e.set_custom_element_data(t,"gametag",c),g[0]&32768&&u!==(u=h[53].cellSize)&&e.set_custom_element_data(t,"gamecellsize",u),g[0]&32768&&f!==(f=h[53].id)&&e.set_custom_element_data(t,"gameid",f),g[0]&128&&e.set_custom_element_data(t,"showgamename",h[7]),g[0]&32768&&d!==(d=h[53].hasFunMode)&&e.set_custom_element_data(t,"gamefunmode",d),g[0]&32768&&m!==(m=h[53].isFavorite)&&e.set_custom_element_data(t,"gamefavorite",m),g[0]&32768&&S!==(S=h[53].details?h[53].launchUrl:"")&&e.set_custom_element_data(t,"livelobbyendpoint",S),g[0]&32&&e.set_custom_element_data(t,"integratedgameframedesktop",h[5]),g[0]&64&&e.set_custom_element_data(t,"integratedgameframemobile",h[6]),g[0]&8&&e.set_custom_element_data(t,"clientstyling",h[3]),g[0]&16&&e.set_custom_element_data(t,"clientstylingurl",h[4]),g[0]&256&&e.set_custom_element_data(t,"gamepagemodalurl",h[8]),g[0]&4&&e.set_custom_element_data(t,"mbsource",h[2])},d(h){h&&e.detach(t)}}}function oe(n){let t,a,r,s=n[21]("notFound")+"",i,l,c,u=n[21]("notFoundText")+"",f,d,m=n[11]==="true"&&le();return{c(){t=e.element("div"),m&&m.c(),a=e.space(),r=e.element("p"),i=e.text(s),l=e.space(),c=e.element("p"),f=e.text(u),e.attr(r,"class","SearchMessage"),e.attr(t,"class",d="ResultsContainerError "+(n[11]=="true"?"WithIcon":""))},m(S,h){e.insert(S,t,h),m&&m.m(t,null),e.append(t,a),e.append(t,r),e.append(r,i),e.append(t,l),e.append(t,c),e.append(c,f)},p(S,h){S[11]==="true"?m||(m=le(),m.c(),m.m(t,a)):m&&(m.d(1),m=null),h[0]&2097152&&s!==(s=S[21]("notFound")+"")&&e.set_data(i,s),h[0]&2097152&&u!==(u=S[21]("notFoundText")+"")&&e.set_data(f,u),h[0]&2048&&d!==(d="ResultsContainerError "+(S[11]=="true"?"WithIcon":""))&&e.attr(t,"class",d)},d(S){S&&e.detach(t),m&&m.d()}}}function le(n){let t;return{c(){t=e.element("div"),t.innerHTML='<svg width="" height="" viewBox="0 0 240 160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="40" width="160" height="160" rx="80" fill="var(--emw--color-contrast, #E6E6E6)" fill-opacity="0.6"></rect><path d="M152 112L136 96" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="square" stroke-linejoin="round"></path><path d="M116 104C131.464 104 144 91.464 144 76C144 60.536 131.464 48 116 48C100.536 48 88 60.536 88 76C88 91.464 100.536 104 116 104Z" stroke="var(--emw--color-contrast, #131313)" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M116.001 78.1221L121.88 84.0009L124.001 81.8796L118.122 76.0008L124.002 70.1214L121.88 68L116.001 73.8795L110.121 68L108 70.1214L113.879 76.0008L108.001 81.8796L110.122 84.0009L116.001 78.1221Z" fill="var(--emw--color-contrast, #131313)"></path></svg>',e.attr(t,"class","SearchErrorIcon")},m(a,r){e.insert(a,t,r)},d(a){a&&e.detach(t)}}}function je(n){let t,a,r,s,i,l,c,u,f,d,m,S,h,g,j,T,G,N,P,D,w=n[10]==="true"&&ee(n);function F(_,R){return _[18]?Le:Fe}let E=F(n),v=E(n);return{c(){t=e.element("div"),a=e.element("div"),r=e.element("div"),s=e.element("div"),s.innerHTML='<svg width="14" height="15" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="#FFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" d="m10.48 10.985 2.21 2.373"></path><circle cx="6.5" cy="6.5" r="5.75" stroke="#FFF" stroke-width="1.5"></circle></svg>',i=e.space(),l=e.element("input"),u=e.space(),f=e.element("span"),d=e.svg_element("svg"),m=e.svg_element("path"),h=e.space(),w&&w.c(),j=e.space(),T=e.element("div"),N=e.space(),v.c(),e.attr(s,"class","SearchIcon"),e.attr(l,"class","SearchInput"),e.attr(l,"type","search"),e.attr(l,"placeholder",c=n[21]("placeHolderSearchGames")),e.attr(l,"maxlength",Ge),e.attr(m,"d","m1.45 1.5 8.1 8M1.45 9.5l8.1-8"),e.attr(m,"stroke","#717171"),e.attr(m,"stroke-width","2"),e.attr(m,"stroke-linecap","round"),e.attr(m,"stroke-linejoin","round"),e.attr(d,"width","11"),e.attr(d,"height","11"),e.attr(d,"fill","none"),e.attr(d,"xmlns","http://www.w3.org/2000/svg"),e.attr(f,"class",S="SearchClearButton "+(n[10]!="true"?"WithoutCancel":"")+" "+(n[12].length!=0?"":"NotVisible")),e.attr(r,"class",g="Search "+(n[13]?"":"SearchAnimation")),e.attr(a,"class","SearchWrap"),e.attr(T,"class",G=n[10]!="true"?"OverlayCancel":""),e.attr(t,"class",(e.getDevice(n[22])!=="PC"?"":"Desktop")+" CasinoSearch")},m(_,R){e.insert(_,t,R),e.append(t,a),e.append(a,r),e.append(r,s),e.append(r,i),e.append(r,l),e.set_input_value(l,n[12]),n[34](l),e.append(r,u),e.append(r,f),e.append(f,d),e.append(d,m),e.append(r,h),w&&w.m(r,null),e.append(t,j),e.append(t,T),e.append(t,N),v.m(t,null),n[37](t),P||(D=[e.listen(l,"input",n[33]),e.listen(l,"focus",n[23]),e.listen(f,"click",n[35]),e.listen(T,"click",n[24])],P=!0)},p(_,R){R[0]&2097152&&c!==(c=_[21]("placeHolderSearchGames"))&&e.attr(l,"placeholder",c),R[0]&4096&&l.value!==_[12]&&e.set_input_value(l,_[12]),R[0]&5120&&S!==(S="SearchClearButton "+(_[10]!="true"?"WithoutCancel":"")+" "+(_[12].length!=0?"":"NotVisible"))&&e.attr(f,"class",S),_[10]==="true"?w?w.p(_,R):(w=ee(_),w.c(),w.m(r,null)):w&&(w.d(1),w=null),R[0]&8192&&g!==(g="Search "+(_[13]?"":"SearchAnimation"))&&e.attr(r,"class",g),R[0]&1024&&G!==(G=_[10]!="true"?"OverlayCancel":"")&&e.attr(T,"class",G),E===(E=F(_))&&v?v.p(_,R):(v.d(1),v=E(_),v&&(v.c(),v.m(t,null)))},i:e.noop,o:e.noop,d(_){_&&e.detach(t),n[34](null),w&&w.d(),v.d(),n[37](null),P=!1,e.run_all(D)}}}let Ge=50;function Ee(n,t,a){let r;e.component_subscribe(n,e.$format,o=>a(21,r=o));let{endpoint:s=""}=t,{datasource:i=""}=t,{session:l=""}=t,{userid:c=""}=t,{lang:u="en"}=t,{mbsource:f}=t,{clientstyling:d=""}=t,{clientstylingurl:m=""}=t,{integratedgameframedesktop:S="false"}=t,{integratedgameframemobile:h="false"}=t,{showgamename:g=""}=t,{gamepagemodalurl:j="true"}=t,{translationurl:T=""}=t,{showfavorites:G=""}=t,{cancelbutton:N="true"}=t,{notfoundicon:P="false"}=t,D=window.navigator.userAgent,w=[],F=[],E={},v="",_,R=!0,x=!1,L=!1,I,A=!1,q,B,U=[];const ce=()=>{fetch(T).then(p=>p.json()).then(p=>{Object.keys(p).forEach(b=>{X(b,p[b])})}).catch(p=>{console.log(p)})};Object.keys(Q).forEach(o=>{X(o,Q[o])});const V=o=>{o.data&&o.data.type=="SearchedItemClicked"&&pe(o.data.gameId),o.data.type=="UserSessionID"&&(a(19,q=o.data.session),a(20,B=o.data.userid),a(32,A=!0)),o.data.type=="CategoryChange"&&H()},J=()=>{if(a(13,R=!1),a(17,x=!0),s&&i&&u&&v.length<2){a(15,w=[]);let o=localStorage.getItem("searchedGamesWds_casino"),p=[];o&&(p=o.split(","));let b=[],k=0,y=p.length;if(y>0){for(k=0;k<y;k++){let C=new URL(`${s}/v1/casino/games/${p[k]}`);C.searchParams.append("language",u),C.searchParams.append("datasource",i),C.searchParams.append("platform",e.getDevice(D)),b.push(he(C,p[k]))}Promise.all(b).then(C=>{C=C.filter(function(z){return!!z}),a(15,w=C.map(z=>(z.isFavorite=Z(z.id),z))),w.length?M("searchSuccess","SearchWidget"):M("searchFail","SearchWidget")}).catch(C=>{M("searchError","SearchWidget")})}}K(x),M("searchAttempt","SearchWidget"),M("SearchInitialized","SearchWidget")},M=(o,p)=>{typeof gtag=="function"&>ag("event",o,{context:p})},ue=()=>{N!="true"&&H()},de=o=>new Promise((p,b)=>{a(18,L=!0),fetch(o.href).then(k=>k.json()).then(k=>{a(18,L=!1),p(k)}).catch(k=>{a(18,L=!1),console.error(k),b(k)})}),he=(o,p)=>new Promise((b,k)=>{a(18,L=!0),p&&Object.keys(E).indexOf(p)>=0?(a(18,L=!1),b(E[p])):fetch(o).then(y=>y.json()).then(y=>{a(18,L=!1),y.error||(E[y[0].gameId]=y[0]),b(y[0])}).catch(y=>{a(18,L=!1),console.error(y),k(y)})}),me=()=>{const o=new URL(`${s}/v1/player/${B}/favorites/`);a(18,L=!0);let p={method:"GET",headers:{"X-SessionID":q}};fetch(o.href,p).then(b=>b.json()).then(b=>{a(18,L=!1),U=b.items.map(k=>k.id)})},fe=()=>{a(32,A=!0),a(19,q=l),a(20,B=c)},Z=o=>U.findIndex(p=>p==o)!==-1,ge=o=>{if((o==null?void 0:o.length)===0)return"";let p,b=99999999999,k;const y=new Date(Date.now());return o.forEach((C,z)=>{const ye=new Date(C.schedules[0].startTime),O=new Date(C.schedules[0].endTime);W.differenceInMilliseconds(new Date(O),new Date(y))<b&&(b=W.differenceInMilliseconds(new Date(O),new Date(y)),k=z),W.isAfter(new Date(y),new Date(ye))&&W.isBefore(new Date(y),new Date(O))&&(p=o[k].name)}),p},pe=o=>{if(F=localStorage.getItem("searchedGamesWds_casino"),F?F=F.split(","):F=[],F.indexOf(o)===-1){let p;F.unshift(o),p=F.join(","),localStorage.setItem("searchedGamesWds_casino",p)}},H=()=>{a(12,v=""),a(13,R=!0),a(18,L=!1),a(15,w=[]),a(17,x=!1),K(x)},Y=()=>{a(12,v=""),_.focus()},K=o=>{window.postMessage({type:o===!0?"searchActive":"searchCancelled",searchStatus:o},window.location.href)},_e=()=>{Re(u)};e.onMount(()=>(window.addEventListener("message",V,!1),()=>{window.removeEventListener("message",V)}));function Se(){v=this.value,a(12,v)}function we(o){e.binding_callbacks[o?"unshift":"push"](()=>{_=o,a(16,_)})}const be=()=>Y(),ve=()=>H();function ke(o){e.binding_callbacks[o?"unshift":"push"](()=>{I=o,a(14,I)})}return n.$$set=o=>{"endpoint"in o&&a(0,s=o.endpoint),"datasource"in o&&a(28,i=o.datasource),"session"in o&&a(29,l=o.session),"userid"in o&&a(30,c=o.userid),"lang"in o&&a(1,u=o.lang),"mbsource"in o&&a(2,f=o.mbsource),"clientstyling"in o&&a(3,d=o.clientstyling),"clientstylingurl"in o&&a(4,m=o.clientstylingurl),"integratedgameframedesktop"in o&&a(5,S=o.integratedgameframedesktop),"integratedgameframemobile"in o&&a(6,h=o.integratedgameframemobile),"showgamename"in o&&a(7,g=o.showgamename),"gamepagemodalurl"in o&&a(8,j=o.gamepagemodalurl),"translationurl"in o&&a(31,T=o.translationurl),"showfavorites"in o&&a(9,G=o.showfavorites),"cancelbutton"in o&&a(10,N=o.cancelbutton),"notfoundicon"in o&&a(11,P=o.notfoundicon)},n.$$.update=()=>{if(n.$$.dirty[0]&268447747)if(v.length>=2){const o=new URL(`${s}/v1/casino/games`);o.searchParams.append("datasource",i),o.searchParams.append("expand","vendor"),o.searchParams.append("platform",e.getDevice(D)),o.searchParams.append("language",u),o.searchParams.append("pagination","offset=0,limit=30"),o.searchParams.append("filter",`name=${v}`),de(o).then(p=>{a(15,w=p.items.map(b=>(b.isFavorite=Z(b.id),b)))})}else R||J();n.$$.dirty[0]&2&&u&&_e(),n.$$.dirty[1]&1&&T&&ce(),n.$$.dirty[0]&1610612736&&l&&c&&fe(),n.$$.dirty[0]&512|n.$$.dirty[1]&2&&G&&A&&me(),n.$$.dirty[0]&16392&&d&&I&&e.setClientStyling(I,d),n.$$.dirty[0]&16400&&m&&I&&e.setClientStylingURL(I,m),n.$$.dirty[0]&16388&&f&&I&&e.setStreamStyling(I,`${f}.Style`)},[s,u,f,d,m,S,h,g,j,G,N,P,v,R,I,w,_,x,L,q,B,r,D,J,ue,ge,H,Y,i,l,c,T,A,Se,we,be,ve,ke]}class ie extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Ee,je,e.safe_not_equal,{endpoint:0,datasource:28,session:29,userid:30,lang:1,mbsource:2,clientstyling:3,clientstylingurl:4,integratedgameframedesktop:5,integratedgameframemobile:6,showgamename:7,gamepagemodalurl:8,translationurl:31,showfavorites:9,cancelbutton:10,notfoundicon:11},Ce,[-1,-1])}get endpoint(){return this.$$.ctx[0]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get datasource(){return this.$$.ctx[28]}set datasource(t){this.$$set({datasource:t}),e.flush()}get session(){return this.$$.ctx[29]}set session(t){this.$$set({session:t}),e.flush()}get userid(){return this.$$.ctx[30]}set userid(t){this.$$set({userid:t}),e.flush()}get lang(){return this.$$.ctx[1]}set lang(t){this.$$set({lang:t}),e.flush()}get mbsource(){return this.$$.ctx[2]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get clientstyling(){return this.$$.ctx[3]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[4]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get integratedgameframedesktop(){return this.$$.ctx[5]}set integratedgameframedesktop(t){this.$$set({integratedgameframedesktop:t}),e.flush()}get integratedgameframemobile(){return this.$$.ctx[6]}set integratedgameframemobile(t){this.$$set({integratedgameframemobile:t}),e.flush()}get showgamename(){return this.$$.ctx[7]}set showgamename(t){this.$$set({showgamename:t}),e.flush()}get gamepagemodalurl(){return this.$$.ctx[8]}set gamepagemodalurl(t){this.$$set({gamepagemodalurl:t}),e.flush()}get translationurl(){return this.$$.ctx[31]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get showfavorites(){return this.$$.ctx[9]}set showfavorites(t){this.$$set({showfavorites:t}),e.flush()}get cancelbutton(){return this.$$.ctx[10]}set cancelbutton(t){this.$$set({cancelbutton:t}),e.flush()}get notfoundicon(){return this.$$.ctx[11]}set notfoundicon(t){this.$$set({notfoundicon:t}),e.flush()}}e.create_custom_element(ie,{endpoint:{},datasource:{},session:{},userid:{},lang:{},mbsource:{},clientstyling:{},clientstylingurl:{},integratedgameframedesktop:{},integratedgameframemobile:{},showgamename:{},gamepagemodalurl:{},translationurl:{},showfavorites:{},cancelbutton:{},notfoundicon:{}},[],[],!0);exports.default=ie;
|