@everymatrix/casino-most-played-section 1.33.1 → 1.33.3
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.
@@ -1362,96 +1362,96 @@ return e[14](/*sort*/e[23])}return{c(){t=p("li"),n=p("label"),r=p("input"),a=v()
|
|
1362
1362
|
locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(Ti).forEach((e=>{ki(e,Ti[e])}));const p={All:r("all"),name:r("az"),isNew:r("newest"),"advancedTags(name(hot))":r("hottest")},g=e=>{n(3,f=e);let t=localStorage.getItem("vendorSortingBy");m=e;for(let t in p)if(p[t]===e){m=t;break}null==t?localStorage.setItem("vendorSortingBy",JSON.stringify({[c]:m})):(t=JSON.parse(t),t[c]=m,localStorage.setItem("vendorSortingBy",JSON.stringify(t))),window.postMessage({type:"ApplySorter",sortBy:m,itemId:c},window.location.href),n(1,d=!d)},y=()=>{n(1,d=!d),window.postMessage({type:"SortingOpened"},window.location.href)},v=e=>{"FilterOpened"==e.data.type&&n(1,d=!1)};k((()=>(window.addEventListener("message",v,!1),()=>{window.removeEventListener("message",v)})));return e.$$set=e=>{"lang"in e&&n(8,a=e.lang),"translationurl"in e&&n(9,o=e.translationurl),"clientstyling"in e&&n(10,s=e.clientstyling),"clientstylingurl"in e&&n(11,l=e.clientstylingurl),"categoryid"in e&&n(12,c=e.categoryid)},e.$$.update=()=>{/*categoryid*/4096&e.$$.dirty&&c&&(()=>{var e;n(3,f="All"),n(2,h=!1),n(1,d=!1);let t=null===(e=JSON.parse(localStorage.getItem("vendorSortingBy")))||void 0===e?void 0:e[c];n(3,f=t||"All"),n(3,f=p[t])})(),/*clientstyling, customStylingContainer*/1025&e.$$.dirty&&s&&i&&(()=>{let e=document.createElement("style");e.innerHTML=s,i.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/2049&e.$$.dirty&&l&&i&&(()=>{let e=document.createElement("style");fetch(new URL(l)).then((e=>e.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{i.appendChild(e)}),1)}))})(),/*translationurl*/512&e.$$.dirty&&o&&fetch(o).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{ki(t,e[t])}))})).catch((e=>{console.log(e)}))},[i,d,h,f,r,p,g,y,a,o,s,l,c,()=>y(),e=>g(e),function(e){M[e?"unshift":"push"]((()=>{i=e,n(0,i)}))}]}
|
1363
1363
|
/* ../casino-games-category-section/src/CasinoGamesCategorySection.svelte generated by Svelte v3.59.2 */
|
1364
1364
|
function Oi(e,t,n){const r=e.slice();return r[83]=t[n],r[85]=n,r}function Pi(e,t,n){const r=e.slice();return r[83]=t[n],r[86]=t,r[85]=n,r}function Di(e,t,n){const r=e.slice();return r[83]=t[n],r[85]=n,r}
|
1365
|
-
// (
|
1365
|
+
// (670:4) {:else}
|
1366
1366
|
function Ni(e){let t;function n(e,t){/*categoryData*/
|
1367
1367
|
return e[25]?Ui:/*showFavGamesCategory*/e[36]?Bi:void 0}let r=n(e),i=r&&r(e);return{c(){t=p("div"),i&&i.c()},m(e,n){h(e,t,n),i&&i.m(t,null)},p(e,a){r===(r=n(e))&&i?i.p(e,a):(i&&i.d(1),i=r&&r(e),i&&(i.c(),i.m(t,null)))},d(e){e&&m(t),i&&i.d()}}}
|
1368
|
-
// (
|
1368
|
+
// (609:4) {#if searched}
|
1369
1369
|
function Ri(e){let t,n,r;function i(e,t){/*recentSearched*/
|
1370
1370
|
return e[29]?ma:/*shownCategoryData*/e[26].length?da:ha}let a=i(e),o=a(e);function s(e,t){/*shownCategoryData*/
|
1371
1371
|
return e[26]?pa:fa}let l=s(e),c=l(e);return{c(){t=p("div"),n=p("div"),o.c(),r=v(),c.c(),_(n,"class","CasinoGamesHeader Searched "+(Ar(/*userAgent*/e[41])?"CasinoGamesHeaderMobile":"")),_(t,"class","CasinoGamesContainer")},m(e,i){h(e,t,i),d(t,n),o.m(n,null),d(t,r),c.m(t,null)},p(e,r){a===(a=i(e))&&o?o.p(e,r):(o.d(1),o=a(e),o&&(o.c(),o.m(n,null))),l===(l=s(e))&&c?c.p(e,r):(c.d(1),c=l(e),c&&(c.c(),c.m(t,null)))},d(e){e&&m(t),o.d(),c.d()}}}
|
1372
|
-
// (
|
1372
|
+
// (601:2) {#if hasErrors}
|
1373
1373
|
function Hi(e){let t;function n(e,t){/*presentFilters*/
|
1374
1374
|
return e[31]?ba:va}let r=n(e),i=r(e);return{c(){i.c(),t=b()},m(e,n){i.m(e,n),h(e,t,n)},p(e,a){r!==(r=n(e))&&(i.d(1),i=r(e),i&&(i.c(),i.m(t.parentNode,t)))},d(e){i.d(e),e&&m(t)}}}
|
1375
|
-
// (
|
1375
|
+
// (761:39)
|
1376
1376
|
function Bi(e){let t,n,r,i,a=/*casinomygames*/"true"!==e[17]&&Yi(e);function o(e,t){/*isLoading*/
|
1377
1377
|
return e[22]&&!/*isLazyLoading*/e[33]?Wi:/*favoriteGamesData*/e[39]?ji:zi}let s=o(e),l=s(e);return{c(){t=p("div"),a&&a.c(),n=v(),r=p("ul"),l.c(),_(r,"class",i=/*favoriteGamesData*/(0!=e[39].items.length?"CasinoGamesGrid":"")+" 'GamesListIncreasedGap'}"),_(t,"class","CasinoGamesContainer")},m(i,o){h(i,t,o),a&&a.m(t,null),d(t,n),d(t,r),l.m(r,null),
|
1378
1378
|
/*ul_binding_1*/e[56](r)},p(e,c){/*casinomygames*/"true"!==e[17]?a?a.p(e,c):(a=Yi(e),a.c(),a.m(t,n)):a&&(a.d(1),a=null),s===(s=o(e))&&l?l.p(e,c):(l.d(1),l=s(e),l&&(l.c(),l.m(r,null))),/*favoriteGamesData*/256&c[1]&&i!==(i=/*favoriteGamesData*/(0!=e[39].items.length?"CasinoGamesGrid":"")+" 'GamesListIncreasedGap'}")&&_(r,"class",i)},d(n){n&&m(t),a&&a.d(),l.d(),
|
1379
1379
|
/*ul_binding_1*/e[56](null)}}}
|
1380
|
-
// (
|
1380
|
+
// (672:8) {#if categoryData}
|
1381
1381
|
function Ui(e){let t,n,r=/*casinomygames*/"true"!==e[17]&&na(e);function i(e,t){/*isLoading*/
|
1382
1382
|
return e[22]&&!/*isLazyLoading*/e[33]?ca:/*shownCategoryData*/0!==e[26].length?la:sa}let a=i(e),o=a(e);return{c(){t=p("div"),r&&r.c(),n=v(),o.c(),_(t,"class","CasinoGamesContainer")},m(e,i){h(e,t,i),r&&r.m(t,null),d(t,n),o.m(t,null)},p(e,s){/*casinomygames*/"true"!==e[17]?r?r.p(e,s):(r=na(e),r.c(),r.m(t,n)):r&&(r.d(1),r=null),a===(a=i(e))&&o?o.p(e,s):(o.d(1),o=a(e),o&&(o.c(),o.m(t,null)))},d(e){e&&m(t),r&&r.d(),o.d()}}}
|
1383
|
-
// (
|
1383
|
+
// (763:14) {#if casinomygames !== 'true'}
|
1384
1384
|
function Yi(e){let t,n,r,i,a,o,s,l,c=/*$_*/e[40]("favorites")+"",u=/*favoriteGamesData*/e[39].items.length+"";return{c(){t=p("div"),n=p("h3"),r=y(c),i=v(),a=p("span"),o=y("("),s=y(u),l=y(")"),_(a,"class","CategoryFavName"),_(n,"class","CategoryName"),_(t,"class","CasinoGamesHeader")},m(c,u){h(c,t,u),d(t,n),d(n,r),d(n,i),d(n,a),d(a,o),d(a,s),d(a,l),
|
1385
1385
|
/*h3_binding_1*/e[55](n)},p(e,t){/*$_*/512&t[1]&&c!==(c=/*$_*/e[40]("favorites")+"")&&S(r,c),/*favoriteGamesData*/256&t[1]&&u!==(u=/*favoriteGamesData*/e[39].items.length+"")&&S(s,u)},d(n){n&&m(t)
|
1386
1386
|
/*h3_binding_1*/,e[55](null)}}}
|
1387
|
-
// (
|
1387
|
+
// (870:18) {:else}
|
1388
1388
|
function zi(e){let t,n,r=/*$_*/e[40]("waiting")+"";return{c(){t=p("p"),n=y(r)},m(e,r){h(e,t,r),d(t,n)},p(e,t){/*$_*/512&t[1]&&r!==(r=/*$_*/e[40]("waiting")+"")&&S(n,r)},d(e){e&&m(t)}}}
|
1389
|
-
// (
|
1389
|
+
// (776:18) {#if favoriteGamesData}
|
1390
1390
|
function ji(e){let t,n=/*favoriteGamesData*/e[39].items,r=[];for(let t=0;t<n.length;t+=1)r[t]=ta(Oi(e,n,t));let i=null;return n.length||(i=Vi(e)),{c(){for(let e=0;e<r.length;e+=1)r[e].c();t=b(),i&&i.c()},m(e,n){for(let t=0;t<r.length;t+=1)r[t]&&r[t].m(e,n);h(e,t,n),i&&i.m(e,n)},p(e,a){if(/*session, userid, lang, favorites, showgamename, currency, clientstyling, clientstylingurl, endpoint, livecasino, gamepagemodalurl, integratedgameframedesktop, integratedgameframemobile*/131048&a[0]|/*favoriteGamesData, addGameTag, showFavGamesCategory, intersectingIndexes, visibilityconnect, userAgent, $_*/4064&a[1]){let o;for(n=/*favoriteGamesData*/e[39].items,o=0;o<n.length;o+=1){const i=Oi(e,n,o);r[o]?r[o].p(i,a):(r[o]=ta(i),r[o].c(),r[o].m(t.parentNode,t))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length,!n.length&&i?i.p(e,a):n.length?i&&(i.d(1),i=null):(i=Vi(e),i.c(),i.m(t.parentNode,t))}},d(e){f(r,e),e&&m(t),i&&i.d(e)}}}
|
1391
|
-
// (
|
1391
|
+
// (773:16) {#if isLoading && !isLazyLoading}
|
1392
1392
|
function Wi(t){let n;return{c(){n=p("div"),_(n,"class","lds-dual-ring")},m(e,t){h(e,n,t)},p:e,d(e){e&&m(n)}}}
|
1393
|
-
// (
|
1393
|
+
// (851:20) {:else}
|
1394
1394
|
function Vi(e){let t,n,r,i,a,o,s,l,c,u,f,b,w,x,F=/*$_*/e[40]("noFavoritesTitle")+"";let C=function(e,t){return Ar(/*userAgent*/e[41])?Ki:Zi}(e),E=C(e);return{c(){t=p("p"),n=g("svg"),r=g("rect"),i=g("rect"),a=g("circle"),o=g("path"),s=g("path"),l=g("path"),c=g("path"),u=v(),f=p("span"),b=y(F),w=v(),E.c(),x=v(),_(r,"x","1"),_(r,"y","18.053"),_(r,"width","90.263"),_(r,"height","90.263"),_(r,"rx","12"),_(r,"stroke","var(--emfe-w-color-gray-150, #828282)"),_(r,"stroke-width","1.5"),_(i,"x","106.737"),_(i,"y","56.737"),_(i,"width","90.263"),_(i,"height","90.263"),_(i,"rx","12"),_(i,"stroke","var(--emfe-w-color-gray-150, #828282)"),_(i,"stroke-width","1.5"),_(a,"cx","70.5"),_(a,"cy","32.237"),_(a,"r","31.487"),_(a,"stroke","var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))"),_(a,"stroke-width","1.5"),_(a,"stroke-dasharray","5 0"),_(o,"d","M153.909 81.631a.747.747 0 0 0-.166-1.046l-5.466-3.954a.751.751 0 0 0-.882 1.214l4.859 3.514-3.529 4.858a.75.75 0 1 0 1.215.878l3.969-5.464zm-.725-1.18c-.501.081-.999.159-1.493.233l.223 1.482c.498-.075 1-.153 1.506-.234l-.236-1.48zm-4.457.654c-1.006.133-1.996.253-2.97.36l.162 1.49c.985-.109 1.986-.23 3.002-.364l-.194-1.486zm-5.944.65c-1.01.085-2.002.155-2.978.209l.081 1.496c.991-.054 1.997-.125 3.021-.212l-.124-1.493zm-5.955.326c-1.009.022-2 .026-2.974.01l-.026 1.5c.994.015 2.003.011 3.031-.012l-.031-1.498zm-5.953-.099a61.03 61.03 0 0 1-2.961-.245l-.164 1.49c.995.107 2.006.19 3.035.251l.09-1.496zm-5.898-.641a49.97 49.97 0 0 1-2.907-.56l-.332 1.462c.983.22 1.98.412 2.995.577l.244-1.48zm-5.773-1.298a44.435 44.435 0 0 1-2.807-.92l-.518 1.407c.953.348 1.92.665 2.901.951l.424-1.438zm-5.546-2.027A44.285 44.285 0 0 1 111 76.73l-.702 1.326a45.9 45.9 0 0 0 2.748 1.331l.612-1.37zm-5.23-2.75a49.031 49.031 0 0 1-2.472-1.616l-.861 1.229a50.27 50.27 0 0 0 2.548 1.666l.785-1.278zm-4.851-3.378c-.767-.601-1.529-1.231-2.289-1.891l-.987 1.131c.778.676 1.56 1.322 2.348 1.94l.928-1.18zm-4.486-3.889a74.64 74.64 0 0 1-2.11-2.088l-1.078 1.044a76.17 76.17 0 0 0 2.152 2.13L99.091 68zm-4.143-4.259a97.17 97.17 0 0 1-1.965-2.239l-1.145.972a98.31 98.31 0 0 0 1.996 2.274l1.114-1.007zm-3.867-4.536a127.63 127.63 0 0 1-1.845-2.346l-1.192.914c.624.812 1.246 1.603 1.867 2.373l1.17-.94zm-3.64-4.733c-.58-.788-1.163-1.596-1.749-2.423l-1.225.867c.59.834 1.179 1.649 1.764 2.445l1.21-.89z"),_(o,"fill","var(--emfe-w-color-gray-150, #828282)"),_(s,"d","M78 43h11v13H78V43z"),_(s,"stroke","var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))"),_(l,"d","m180 65 2.021 6.219h6.539l-5.291 3.843 2.021 6.22-5.29-3.844-5.29 3.843 2.021-6.219-5.291-3.843h6.539L180 65z"),_(l,"fill","var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))"),_(l,"stroke","var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))"),_(l,"stroke-linecap","round"),_(l,"stroke-linejoin","round"),_(c,"d","m74 27 2.02 6.219h6.54l-5.29 3.843 2.02 6.22L74 39.437l-5.29 3.843 2.02-6.219-5.29-3.843h6.54L74 27z"),_(c,"stroke","var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C))"),_(c,"stroke-width","1.5"),_(c,"stroke-linecap","round"),_(c,"stroke-linejoin","round"),_(n,"width","198"),_(n,"height","148"),_(n,"viewBox","0 0 198 148"),_(n,"fill","none"),_(n,"xmlns","http://www.w3.org/2000/svg"),_(f,"class","NoFavoriteText NoFavoriteTextHighlight"),_(t,"class","NoFavoriteGames "+(Ar(/*userAgent*/e[41])?"NoFavoriteGamesMobile":""))},m(e,m){h(e,t,m),d(t,n),d(n,r),d(n,i),d(n,a),d(n,o),d(n,s),d(n,l),d(n,c),d(t,u),d(t,f),d(f,b),d(t,w),E.m(t,null),d(t,x)},p(e,t){/*$_*/512&t[1]&&F!==(F=/*$_*/e[40]("noFavoritesTitle")+"")&&S(b,F),E.p(e,t)},d(e){e&&m(t),E.d()}}}
|
1395
|
-
// (
|
1395
|
+
// (865:24) {:else}
|
1396
1396
|
function Zi(e){let t,n,r=/*$_*/e[40]("noFavorites")+"";return{c(){t=p("span"),n=y(r),_(t,"class","NoFavoriteText")},m(e,r){h(e,t,r),d(t,n)},p(e,t){/*$_*/512&t[1]&&r!==(r=/*$_*/e[40]("noFavorites")+"")&&S(n,r)},d(e){e&&m(t)}}}
|
1397
|
-
// (
|
1397
|
+
// (863:24) {#if isMobile(userAgent)}
|
1398
1398
|
function Ki(e){let t,n,r=/*$_*/e[40]("noFavoritesMobile")+"";return{c(){t=p("span"),n=y(r),_(t,"class","NoFavoriteText")},m(e,r){h(e,t,r),d(t,n)},p(e,t){/*$_*/512&t[1]&&r!==(r=/*$_*/e[40]("noFavoritesMobile")+"")&&S(n,r)},d(e){e&&m(t)}}}
|
1399
|
-
// (
|
1399
|
+
// (778:22) {#if gameprops.gameModel}
|
1400
1400
|
function Xi(e){let t,n=/*gameprops*/e[83].gameModel.isFavorite&&Ji(e);return{c(){n&&n.c(),t=b()},m(e,r){n&&n.m(e,r),h(e,t,r)},p(e,r){/*gameprops*/e[83].gameModel.isFavorite?n?n.p(e,r):(n=Ji(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&m(t)}}}
|
1401
|
-
// (
|
1401
|
+
// (779:24) {#if gameprops.gameModel.isFavorite}
|
1402
1402
|
function Ji(e){let t,n=
|
1403
|
-
// (
|
1403
|
+
// (780:26) {#if intersecting || nativeLoading}
|
1404
1404
|
function(e){let t,n,r;function i(e,r){/*favoriteGamesData*/
|
1405
1405
|
return 256&r[1]&&(n=null),null==t&&(t=!!Ar(/*userAgent*/e[41])),t?Qi:(null==n&&(n=!!/*gameprops*/e[83].gameModel.platform.includes("PC")),n?qi:void 0)}let a=i(e,[-1,-1,-1]),o=a&&a(e);return{c(){o&&o.c(),r=b()},m(e,t){o&&o.m(e,t),h(e,r,t)},p(e,t){a===(a=i(e,t))&&o?o.p(e,t):(o&&o.d(1),o=a&&a(e),o&&(o.c(),o.m(r.parentNode,r)))},d(e){o&&o.d(e),e&&m(r)}}}
|
1406
|
-
// (
|
1406
|
+
// (815:82)
|
1407
1407
|
(e);return{c(){n&&n.c(),t=b()},m(e,r){n&&n.m(e,r),h(e,t,r)},p(e,t){n.p(e,t)},d(e){n&&n.d(e),e&&m(t)}}}function qi(e){let t,n,r,i,a,o,s,l,c,u,d,f,g,y,v;return{c(){t=p("casino-game-thumbnail"),x(t,"class",n=""+(_a+(/*gameprops*/e[83].cellSize?/*gameprops*/e[83].cellSize:"1x1"))),x(t,"part",r=""+(_a+(/*gameprops*/e[83].cellSize?/*gameprops*/e[83].cellSize:"1x1"))),x(t,"session",/*session*/e[6]),x(t,"userid",/*userid*/e[7]),x(t,"lang",/*lang*/e[5]),x(t,"favorites",/*favorites*/e[8]),x(t,"gamethumbnail",i=/*gameprops*/e[83].gameModel.thumbnail),x(t,"gamename",a=/*gameprops*/e[83].gameModel.name),x(t,"gamevendor",o=/*gameprops*/e[83].gameModel.vendor.name),x(t,"gamelaunchurl",s=/*gameprops*/e[83].launchUrl),x(t,"gameisnew",l=/*gameprops*/e[83].gameModel.isNew),x(t,"gametag",c=/*gameprops*/e[83].gameModel.advancedTags?.length>0&&/*addGameTag*/e[42](/*gameprops*/e[83].gameModel.advancedTags)),x(t,"gamecellsize",u=/*gameprops*/e[83].cellSize),x(t,"gameid",d=/*gameprops*/e[83].gameModel.id),x(t,"gamefunmode",f=/*gameprops*/e[83].gameModel.hasFunMode),x(t,"showgamename",/*showgamename*/e[12]),x(t,"gamefavorite",g=/*gameprops*/e[83].gameModel.isFavorite),x(t,"showfavoredcategory",/*showFavGamesCategory*/e[36]),x(t,"connectlive",y=/*intersectingIndexes*/1==e[37][/*gameprops*/e[83].id]?"connect":"disconnect"),x(t,"visibilityconnect",/*visibilityconnect*/e[38]),x(t,"currency",/*currency*/e[11]),x(t,"livelobbyendpoint",v=/*gameprops*/e[83].gameModel.details?/*gameprops*/e[83].gameModel.launchUrl:""),x(t,"clientstyling",/*clientstyling*/e[9]),x(t,"clientstylingurl",/*clientstylingurl*/e[10]),x(t,"endpoint",/*endpoint*/e[3]),x(t,"livecasino",/*livecasino*/e[13]),x(t,"gamepagemodalurl",/*gamepagemodalurl*/e[14]),x(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[15]),x(t,"integratedgameframemobile",/*integratedgameframemobile*/e[16])},m(e,n){h(e,t,n)},p(e,h){/*favoriteGamesData*/256&h[1]&&n!==(n=""+(_a+(/*gameprops*/e[83].cellSize?/*gameprops*/e[83].cellSize:"1x1")))&&x(t,"class",n),/*favoriteGamesData*/256&h[1]&&r!==(r=""+(_a+(/*gameprops*/e[83].cellSize?/*gameprops*/e[83].cellSize:"1x1")))&&x(t,"part",r),/*session*/64&h[0]&&x(t,"session",/*session*/e[6]),/*userid*/128&h[0]&&x(t,"userid",/*userid*/e[7]),/*lang*/32&h[0]&&x(t,"lang",/*lang*/e[5]),/*favorites*/256&h[0]&&x(t,"favorites",/*favorites*/e[8]),/*favoriteGamesData*/256&h[1]&&i!==(i=/*gameprops*/e[83].gameModel.thumbnail)&&x(t,"gamethumbnail",i),/*favoriteGamesData*/256&h[1]&&a!==(a=/*gameprops*/e[83].gameModel.name)&&x(t,"gamename",a),/*favoriteGamesData*/256&h[1]&&o!==(o=/*gameprops*/e[83].gameModel.vendor.name)&&x(t,"gamevendor",o),/*favoriteGamesData*/256&h[1]&&s!==(s=/*gameprops*/e[83].launchUrl)&&x(t,"gamelaunchurl",s),/*favoriteGamesData*/256&h[1]&&l!==(l=/*gameprops*/e[83].gameModel.isNew)&&x(t,"gameisnew",l),/*favoriteGamesData*/256&h[1]&&c!==(c=/*gameprops*/e[83].gameModel.advancedTags?.length>0&&/*addGameTag*/e[42](/*gameprops*/e[83].gameModel.advancedTags))&&x(t,"gametag",c),/*favoriteGamesData*/256&h[1]&&u!==(u=/*gameprops*/e[83].cellSize)&&x(t,"gamecellsize",u),/*favoriteGamesData*/256&h[1]&&d!==(d=/*gameprops*/e[83].gameModel.id)&&x(t,"gameid",d),/*favoriteGamesData*/256&h[1]&&f!==(f=/*gameprops*/e[83].gameModel.hasFunMode)&&x(t,"gamefunmode",f),/*showgamename*/4096&h[0]&&x(t,"showgamename",/*showgamename*/e[12]),/*favoriteGamesData*/256&h[1]&&g!==(g=/*gameprops*/e[83].gameModel.isFavorite)&&x(t,"gamefavorite",g),/*showFavGamesCategory*/32&h[1]&&x(t,"showfavoredcategory",/*showFavGamesCategory*/e[36]),/*intersectingIndexes, favoriteGamesData*/320&h[1]&&y!==(y=/*intersectingIndexes*/1==e[37][/*gameprops*/e[83].id]?"connect":"disconnect")&&x(t,"connectlive",y),/*visibilityconnect*/128&h[1]&&x(t,"visibilityconnect",/*visibilityconnect*/e[38]),/*currency*/2048&h[0]&&x(t,"currency",/*currency*/e[11]),/*favoriteGamesData*/256&h[1]&&v!==(v=/*gameprops*/e[83].gameModel.details?/*gameprops*/e[83].gameModel.launchUrl:"")&&x(t,"livelobbyendpoint",v),/*clientstyling*/512&h[0]&&x(t,"clientstyling",/*clientstyling*/e[9]),/*clientstylingurl*/1024&h[0]&&x(t,"clientstylingurl",/*clientstylingurl*/e[10]),/*endpoint*/8&h[0]&&x(t,"endpoint",/*endpoint*/e[3]),/*livecasino*/8192&h[0]&&x(t,"livecasino",/*livecasino*/e[13]),/*gamepagemodalurl*/16384&h[0]&&x(t,"gamepagemodalurl",/*gamepagemodalurl*/e[14]),/*integratedgameframedesktop*/32768&h[0]&&x(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[15]),/*integratedgameframemobile*/65536&h[0]&&x(t,"integratedgameframemobile",/*integratedgameframemobile*/e[16])},d(e){e&&m(t)}}}
|
1408
|
-
// (
|
1408
|
+
// (781:28) {#if isMobile(userAgent)}
|
1409
1409
|
function Qi(e){let t,n=/*gameprops*/e[83].gameModel.platform.includes("iPad")||/*gameprops*/e[83].gameModel.platform.includes("iPhone")||/*gameprops*/e[83].gameModel.platform.includes("Android"),r=n&&ea(e);return{c(){r&&r.c(),t=b()},m(e,n){r&&r.m(e,n),h(e,t,n)},p(e,i){/*favoriteGamesData*/256&i[1]&&(n=/*gameprops*/e[83].gameModel.platform.includes("iPad")||/*gameprops*/e[83].gameModel.platform.includes("iPhone")||/*gameprops*/e[83].gameModel.platform.includes("Android")),n?r?r.p(e,i):(r=ea(e),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&m(t)}}}
|
1410
|
-
// (
|
1410
|
+
// (782:30) {#if (gameprops.gameModel.platform.includes("iPad") || gameprops.gameModel.platform.includes("iPhone") || gameprops.gameModel.platform.includes("Android"))}
|
1411
1411
|
function ea(e){let t,n,r,i,a,o,s,l,c,u,d,f,g,y,v;return{c(){t=p("casino-game-thumbnail"),x(t,"class",n=""+(_a+(/*gameprops*/e[83].cellSize?/*gameprops*/e[83].cellSize:"1x1"))),x(t,"part",r=""+(_a+(/*gameprops*/e[83].cellSize?/*gameprops*/e[83].cellSize:"1x1"))),x(t,"session",/*session*/e[6]),x(t,"userid",/*userid*/e[7]),x(t,"lang",/*lang*/e[5]),x(t,"favorites",/*favorites*/e[8]),x(t,"gamethumbnail",i=/*gameprops*/e[83].gameModel.thumbnail),x(t,"gamename",a=/*gameprops*/e[83].gameModel.name),x(t,"gamevendor",o=/*gameprops*/e[83].gameModel.vendor.name),x(t,"gamelaunchurl",s=/*gameprops*/e[83].launchUrl),x(t,"gameisnew",l=/*gameprops*/e[83].gameModel.isNew),x(t,"gametag",c=/*gameprops*/e[83].gameModel.advancedTags?.length>0&&/*addGameTag*/e[42](/*gameprops*/e[83].gameModel.advancedTags)),x(t,"gamecellsize",u=/*gameprops*/e[83].cellSize),x(t,"gameid",d=/*gameprops*/e[83].gameModel.id),x(t,"gamefunmode",f=/*gameprops*/e[83].gameModel.hasFunMode),x(t,"showgamename",/*showgamename*/e[12]),x(t,"gamefavorite",g=/*gameprops*/e[83].gameModel.isFavorite),x(t,"showfavoredcategory",/*showFavGamesCategory*/e[36]),x(t,"connectlive",y=/*intersectingIndexes*/1==e[37][/*gameprops*/e[83].id]?"connect":"disconnect"),x(t,"visibilityconnect",/*visibilityconnect*/e[38]),x(t,"currency",/*currency*/e[11]),x(t,"livelobbyendpoint",v=/*gameprops*/e[83].gameModel.details?/*gameprops*/e[83].gameModel.launchUrl:""),x(t,"clientstyling",/*clientstyling*/e[9]),x(t,"clientstylingurl",/*clientstylingurl*/e[10]),x(t,"endpoint",/*endpoint*/e[3]),x(t,"livecasino",/*livecasino*/e[13]),x(t,"gamepagemodalurl",/*gamepagemodalurl*/e[14]),x(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[15]),x(t,"integratedgameframemobile",/*integratedgameframemobile*/e[16])},m(e,n){h(e,t,n)},p(e,h){/*favoriteGamesData*/256&h[1]&&n!==(n=""+(_a+(/*gameprops*/e[83].cellSize?/*gameprops*/e[83].cellSize:"1x1")))&&x(t,"class",n),/*favoriteGamesData*/256&h[1]&&r!==(r=""+(_a+(/*gameprops*/e[83].cellSize?/*gameprops*/e[83].cellSize:"1x1")))&&x(t,"part",r),/*session*/64&h[0]&&x(t,"session",/*session*/e[6]),/*userid*/128&h[0]&&x(t,"userid",/*userid*/e[7]),/*lang*/32&h[0]&&x(t,"lang",/*lang*/e[5]),/*favorites*/256&h[0]&&x(t,"favorites",/*favorites*/e[8]),/*favoriteGamesData*/256&h[1]&&i!==(i=/*gameprops*/e[83].gameModel.thumbnail)&&x(t,"gamethumbnail",i),/*favoriteGamesData*/256&h[1]&&a!==(a=/*gameprops*/e[83].gameModel.name)&&x(t,"gamename",a),/*favoriteGamesData*/256&h[1]&&o!==(o=/*gameprops*/e[83].gameModel.vendor.name)&&x(t,"gamevendor",o),/*favoriteGamesData*/256&h[1]&&s!==(s=/*gameprops*/e[83].launchUrl)&&x(t,"gamelaunchurl",s),/*favoriteGamesData*/256&h[1]&&l!==(l=/*gameprops*/e[83].gameModel.isNew)&&x(t,"gameisnew",l),/*favoriteGamesData*/256&h[1]&&c!==(c=/*gameprops*/e[83].gameModel.advancedTags?.length>0&&/*addGameTag*/e[42](/*gameprops*/e[83].gameModel.advancedTags))&&x(t,"gametag",c),/*favoriteGamesData*/256&h[1]&&u!==(u=/*gameprops*/e[83].cellSize)&&x(t,"gamecellsize",u),/*favoriteGamesData*/256&h[1]&&d!==(d=/*gameprops*/e[83].gameModel.id)&&x(t,"gameid",d),/*favoriteGamesData*/256&h[1]&&f!==(f=/*gameprops*/e[83].gameModel.hasFunMode)&&x(t,"gamefunmode",f),/*showgamename*/4096&h[0]&&x(t,"showgamename",/*showgamename*/e[12]),/*favoriteGamesData*/256&h[1]&&g!==(g=/*gameprops*/e[83].gameModel.isFavorite)&&x(t,"gamefavorite",g),/*showFavGamesCategory*/32&h[1]&&x(t,"showfavoredcategory",/*showFavGamesCategory*/e[36]),/*intersectingIndexes, favoriteGamesData*/320&h[1]&&y!==(y=/*intersectingIndexes*/1==e[37][/*gameprops*/e[83].id]?"connect":"disconnect")&&x(t,"connectlive",y),/*visibilityconnect*/128&h[1]&&x(t,"visibilityconnect",/*visibilityconnect*/e[38]),/*currency*/2048&h[0]&&x(t,"currency",/*currency*/e[11]),/*favoriteGamesData*/256&h[1]&&v!==(v=/*gameprops*/e[83].gameModel.details?/*gameprops*/e[83].gameModel.launchUrl:"")&&x(t,"livelobbyendpoint",v),/*clientstyling*/512&h[0]&&x(t,"clientstyling",/*clientstyling*/e[9]),/*clientstylingurl*/1024&h[0]&&x(t,"clientstylingurl",/*clientstylingurl*/e[10]),/*endpoint*/8&h[0]&&x(t,"endpoint",/*endpoint*/e[3]),/*livecasino*/8192&h[0]&&x(t,"livecasino",/*livecasino*/e[13]),/*gamepagemodalurl*/16384&h[0]&&x(t,"gamepagemodalurl",/*gamepagemodalurl*/e[14]),/*integratedgameframedesktop*/32768&h[0]&&x(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[15]),/*integratedgameframemobile*/65536&h[0]&&x(t,"integratedgameframemobile",/*integratedgameframemobile*/e[16])},d(e){e&&m(t)}}}
|
1412
|
-
// (
|
1412
|
+
// (777:20) {#each favoriteGamesData.items as gameprops, index}
|
1413
1413
|
function ta(e){let t,n=/*gameprops*/e[83].gameModel&&Xi(e);return{c(){n&&n.c(),t=b()},m(e,r){n&&n.m(e,r),h(e,t,r)},p(e,r){/*gameprops*/e[83].gameModel?n?n.p(e,r):(n=Xi(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&m(t)}}}
|
1414
|
-
// (
|
1414
|
+
// (674:12) {#if casinomygames !== 'true'}
|
1415
1415
|
function na(e){let t,n,r,i,a=/*categoryData*/e[25].name+"";function o(e,t){/*showLoadCategory*/
|
1416
1416
|
return e[27]?ia:ra}let s=o(e),l=s(e);return{c(){t=p("div"),n=p("h3"),r=y(a),i=v(),l.c(),_(n,"class","CategoryName"),_(t,"class","CasinoGamesHeader")},m(a,o){h(a,t,o),d(t,n),d(n,r),
|
1417
1417
|
/*h3_binding*/e[51](n),d(t,i),l.m(t,null)},p(e,n){/*categoryData*/33554432&n[0]&&a!==(a=/*categoryData*/e[25].name+"")&&S(r,a),s===(s=o(e))&&l?l.p(e,n):(l.d(1),l=s(e),l&&(l.c(),l.m(t,null)))},d(n){n&&m(t)
|
1418
1418
|
/*h3_binding*/,e[51](null),l.d()}}}
|
1419
|
-
// (
|
1419
|
+
// (686:16) {:else}
|
1420
1420
|
function ra(e){let t,n,r,i=/*addfilterselector*/"true"==e[1]&&aa(e),a=/*addsortingselector*/"true"==e[2]&&oa(e);return{c(){t=p("div"),i&&i.c(),n=v(),a&&a.c(),_(t,"class",r=/*addfilterselector*/"true"==e[1]&&/*addsortingselector*/"true"==e[2]?"CategoryFilterContainer":"")},m(e,r){h(e,t,r),i&&i.m(t,null),d(t,n),a&&a.m(t,null)},p(e,o){/*addfilterselector*/"true"==e[1]?i?i.p(e,o):(i=aa(e),i.c(),i.m(t,n)):i&&(i.d(1),i=null),/*addsortingselector*/"true"==e[2]?a?a.p(e,o):(a=oa(e),a.c(),a.m(t,null)):a&&(a.d(1),a=null),/*addfilterselector, addsortingselector*/6&o[0]&&r!==(r=/*addfilterselector*/"true"==e[1]&&/*addsortingselector*/"true"==e[2]?"CategoryFilterContainer":"")&&_(t,"class",r)},d(e){e&&m(t),i&&i.d(),a&&a.d()}}}
|
1421
|
-
// (
|
1421
|
+
// (679:16) {#if showLoadCategory}
|
1422
1422
|
function ia(e){let t,n,r,i,a,o,s,l,c=/*$_*/e[40]("viewAll")+"",u=/*categoryData*/e[25].games.total+"";return{c(){t=p("a"),n=p("span"),r=y(c),i=y(" ("),a=y(u),o=y(")"),_(n,"class","CategoryLoadMore"),_(t,"class","CategoryNameLink")},m(c,u){h(c,t,u),d(t,n),d(n,r),d(n,i),d(n,a),d(n,o),s||(l=w(t,"click",/*click_handler*/e[52]),s=!0)},p(e,t){/*$_*/512&t[1]&&c!==(c=/*$_*/e[40]("viewAll")+"")&&S(r,c),/*categoryData*/33554432&t[0]&&u!==(u=/*categoryData*/e[25].games.total+"")&&S(a,u)},d(e){e&&m(t),s=!1,l()}}}
|
1423
|
-
// (
|
1423
|
+
// (688:22) {#if addfilterselector == "true"}
|
1424
1424
|
function aa(e){let t;return{c(){t=p("casino-filter"),x(t,"clientstylingurl",/*clientstylingurl*/e[10]),x(t,"clientstyling",/*clientstyling*/e[9]),x(t,"endpoint",/*endpoint*/e[3]),x(t,"datasource",/*datasource*/e[4]),x(t,"lang",/*lang*/e[5]),x(t,"categoryid",/*categoryid*/e[0]),x(t,"addfilterselector",/*addfilterselector*/e[1]),x(t,"addsortingselector",/*addsortingselector*/e[2]),x(t,"filterbylogo",/*filterbylogo*/e[18])},m(e,n){h(e,t,n)},p(e,n){/*clientstylingurl*/1024&n[0]&&x(t,"clientstylingurl",/*clientstylingurl*/e[10]),/*clientstyling*/512&n[0]&&x(t,"clientstyling",/*clientstyling*/e[9]),/*endpoint*/8&n[0]&&x(t,"endpoint",/*endpoint*/e[3]),/*datasource*/16&n[0]&&x(t,"datasource",/*datasource*/e[4]),/*lang*/32&n[0]&&x(t,"lang",/*lang*/e[5]),/*categoryid*/1&n[0]&&x(t,"categoryid",/*categoryid*/e[0]),/*addfilterselector*/2&n[0]&&x(t,"addfilterselector",/*addfilterselector*/e[1]),/*addsortingselector*/4&n[0]&&x(t,"addsortingselector",/*addsortingselector*/e[2]),/*filterbylogo*/262144&n[0]&&x(t,"filterbylogo",/*filterbylogo*/e[18])},d(e){e&&m(t)}}}
|
1425
|
-
// (
|
1425
|
+
// (701:22) {#if addsortingselector == "true"}
|
1426
1426
|
function oa(e){let t;return{c(){t=p("casino-sort"),x(t,"clientstylingurl",/*clientstylingurl*/e[10]),x(t,"clientstyling",/*clientstyling*/e[9]),x(t,"lang",/*lang*/e[5]),x(t,"categoryid",/*categoryid*/e[0]),x(t,"addsortingselector",/*addsortingselector*/e[2])},m(e,n){h(e,t,n)},p(e,n){/*clientstylingurl*/1024&n[0]&&x(t,"clientstylingurl",/*clientstylingurl*/e[10]),/*clientstyling*/512&n[0]&&x(t,"clientstyling",/*clientstyling*/e[9]),/*lang*/32&n[0]&&x(t,"lang",/*lang*/e[5]),/*categoryid*/1&n[0]&&x(t,"categoryid",/*categoryid*/e[0]),/*addsortingselector*/4&n[0]&&x(t,"addsortingselector",/*addsortingselector*/e[2])},d(e){e&&m(t)}}}
|
1427
|
-
// (
|
1427
|
+
// (756:14) {:else}
|
1428
1428
|
function sa(e){let t,n,r=/*$_*/e[40]("noResults")+"";return{c(){t=p("p"),n=y(r),_(t,"class","NoSearchResults")},m(e,r){h(e,t,r),d(t,n)},p(e,t){/*$_*/512&t[1]&&r!==(r=/*$_*/e[40]("noResults")+"")&&S(n,r)},d(e){e&&m(t)}}}
|
1429
|
-
// (
|
1429
|
+
// (717:14) {#if shownCategoryData.length !== 0 }
|
1430
1430
|
function la(e){let t,n,r=/*shownCategoryData*/e[26],i=[];for(let t=0;t<r.length;t+=1)i[t]=ua(Pi(e,r,t));return{c(){t=p("ul");for(let e=0;e<i.length;e+=1)i[e].c();_(t,"class",n=/*favoriteGamesData*/(0===e[39].items.length&&/*showFavGamesCategory*/e[36]?"":"CasinoGamesGrid")+" "+(/*lobbyView*/e[24]&&/*casinogamesgridslider*/"true"==e[19]?"CasinoGamesGridSlider CustomScroll":"")+" GamesListIncreasedGap")},m(n,r){h(n,t,r);for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,null);
|
1431
1431
|
/*ul_binding*/e[54](t)},p(e,a){if(/*session, userid, lang, shownCategoryData, favorites, showgamename, currency, clientstyling, clientstylingurl, endpoint, livecasino, gamepagemodalurl, integratedgameframedesktop, integratedgameframemobile, casinogamesgridslider, thumbnailContainer*/69861352&a[0]|/*addGameTag, intersectingIndexes, visibilityconnect*/2240&a[1]){let n;for(r=/*shownCategoryData*/e[26],n=0;n<r.length;n+=1){const o=Pi(e,r,n);i[n]?i[n].p(o,a):(i[n]=ua(o),i[n].c(),i[n].m(t,null))}for(;n<i.length;n+=1)i[n].d(1);i.length=r.length}/*lobbyView, casinogamesgridslider*/17301504&a[0]|/*favoriteGamesData, showFavGamesCategory*/288&a[1]&&n!==(n=/*favoriteGamesData*/(0===e[39].items.length&&/*showFavGamesCategory*/e[36]?"":"CasinoGamesGrid")+" "+(/*lobbyView*/e[24]&&/*casinogamesgridslider*/"true"==e[19]?"CasinoGamesGridSlider CustomScroll":"")+" GamesListIncreasedGap")&&_(t,"class",n)},d(n){n&&m(t),f(i,n),
|
1432
1432
|
/*ul_binding*/e[54](null)}}}
|
1433
|
-
// (
|
1433
|
+
// (714:12) {#if isLoading && !isLazyLoading}
|
1434
1434
|
function ca(t){let n;return{c(){n=p("div"),_(n,"class","lds-dual-ring"),_(n,"part","lds-dual-ring")},m(e,t){h(e,n,t)},p:e,d(e){e&&m(n)}}}
|
1435
|
-
// (
|
1436
|
-
// (
|
1435
|
+
// (720:18) {#if intersecting || nativeLoading}
|
1436
|
+
// (719:18) {#each shownCategoryData as gameprops, index}
|
1437
1437
|
function ua(e){let t,n=function(e){let t,n,r,i,a,o,s,l,c,u,d,f,g,y,v,b=/*index*/e[85];const w=()=>/*casino_game_thumbnail_binding*/e[53](t,b),_=()=>/*casino_game_thumbnail_binding*/e[53](null,b);return{c(){t=p("casino-game-thumbnail"),x(t,"session",/*session*/e[6]),x(t,"userid",/*userid*/e[7]),x(t,"lang",/*lang*/e[5]),x(t,"class",n=""+(_a+(/*gameprops*/e[83].cellSize?/*gameprops*/e[83].cellSize:"1x1"))),x(t,"part",r=""+(_a+(/*gameprops*/e[83].cellSize?/*gameprops*/e[83].cellSize:"1x1"))),x(t,"favorites",/*favorites*/e[8]),x(t,"gamethumbnail",i=/*gameprops*/e[83].thumbnail),x(t,"gamename",a=/*gameprops*/e[83].name),x(t,"gamevendor",o=/*gameprops*/e[83].vendor.name),x(t,"gamelaunchurl",s=/*gameprops*/e[83].launchUrl),x(t,"gameisnew",l=/*gameprops*/e[83].isNew),x(t,"gametag",c=/*gameprops*/e[83].advancedTags?.length>0&&/*addGameTag*/e[42](/*gameprops*/e[83].advancedTags)),x(t,"gamecellsize",u=/*gameprops*/e[83].cellSize),x(t,"gameid",d=/*gameprops*/e[83].id),x(t,"gamefunmode",f=/*gameprops*/e[83].hasFunMode),x(t,"gamefavorite",g=/*gameprops*/e[83].isFavorite),x(t,"showgamename",/*showgamename*/e[12]),x(t,"connectlive",y=/*intersectingIndexes*/1==e[37][/*gameprops*/e[83].id]?"connect":"disconnect"),x(t,"visibilityconnect",/*visibilityconnect*/e[38]),x(t,"currency",/*currency*/e[11]),x(t,"livelobbyendpoint",v=/*gameprops*/e[83].details?/*gameprops*/e[83].href:""),x(t,"clientstyling",/*clientstyling*/e[9]),x(t,"clientstylingurl",/*clientstylingurl*/e[10]),x(t,"endpoint",/*endpoint*/e[3]),x(t,"livecasino",/*livecasino*/e[13]),x(t,"gamepagemodalurl",/*gamepagemodalurl*/e[14]),x(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[15]),x(t,"integratedgameframemobile",/*integratedgameframemobile*/e[16]),x(t,"casinogamesgridslider",/*casinogamesgridslider*/e[19])},m(e,n){h(e,t,n),w()},p(h,m){e=h,/*session*/64&m[0]&&x(t,"session",/*session*/e[6]),/*userid*/128&m[0]&&x(t,"userid",/*userid*/e[7]),/*lang*/32&m[0]&&x(t,"lang",/*lang*/e[5]),/*shownCategoryData*/67108864&m[0]&&n!==(n=""+(_a+(/*gameprops*/e[83].cellSize?/*gameprops*/e[83].cellSize:"1x1")))&&x(t,"class",n),/*shownCategoryData*/67108864&m[0]&&r!==(r=""+(_a+(/*gameprops*/e[83].cellSize?/*gameprops*/e[83].cellSize:"1x1")))&&x(t,"part",r),/*favorites*/256&m[0]&&x(t,"favorites",/*favorites*/e[8]),/*shownCategoryData*/67108864&m[0]&&i!==(i=/*gameprops*/e[83].thumbnail)&&x(t,"gamethumbnail",i),/*shownCategoryData*/67108864&m[0]&&a!==(a=/*gameprops*/e[83].name)&&x(t,"gamename",a),/*shownCategoryData*/67108864&m[0]&&o!==(o=/*gameprops*/e[83].vendor.name)&&x(t,"gamevendor",o),/*shownCategoryData*/67108864&m[0]&&s!==(s=/*gameprops*/e[83].launchUrl)&&x(t,"gamelaunchurl",s),/*shownCategoryData*/67108864&m[0]&&l!==(l=/*gameprops*/e[83].isNew)&&x(t,"gameisnew",l),/*shownCategoryData*/67108864&m[0]&&c!==(c=/*gameprops*/e[83].advancedTags?.length>0&&/*addGameTag*/e[42](/*gameprops*/e[83].advancedTags))&&x(t,"gametag",c),/*shownCategoryData*/67108864&m[0]&&u!==(u=/*gameprops*/e[83].cellSize)&&x(t,"gamecellsize",u),/*shownCategoryData*/67108864&m[0]&&d!==(d=/*gameprops*/e[83].id)&&x(t,"gameid",d),/*shownCategoryData*/67108864&m[0]&&f!==(f=/*gameprops*/e[83].hasFunMode)&&x(t,"gamefunmode",f),/*shownCategoryData*/67108864&m[0]&&g!==(g=/*gameprops*/e[83].isFavorite)&&x(t,"gamefavorite",g),/*showgamename*/4096&m[0]&&x(t,"showgamename",/*showgamename*/e[12]),/*shownCategoryData*/67108864&m[0]|/*intersectingIndexes*/64&m[1]&&y!==(y=/*intersectingIndexes*/1==e[37][/*gameprops*/e[83].id]?"connect":"disconnect")&&x(t,"connectlive",y),/*visibilityconnect*/128&m[1]&&x(t,"visibilityconnect",/*visibilityconnect*/e[38]),/*currency*/2048&m[0]&&x(t,"currency",/*currency*/e[11]),/*shownCategoryData*/67108864&m[0]&&v!==(v=/*gameprops*/e[83].details?/*gameprops*/e[83].href:"")&&x(t,"livelobbyendpoint",v),/*clientstyling*/512&m[0]&&x(t,"clientstyling",/*clientstyling*/e[9]),/*clientstylingurl*/1024&m[0]&&x(t,"clientstylingurl",/*clientstylingurl*/e[10]),/*endpoint*/8&m[0]&&x(t,"endpoint",/*endpoint*/e[3]),/*livecasino*/8192&m[0]&&x(t,"livecasino",/*livecasino*/e[13]),/*gamepagemodalurl*/16384&m[0]&&x(t,"gamepagemodalurl",/*gamepagemodalurl*/e[14]),/*integratedgameframedesktop*/32768&m[0]&&x(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[15]),/*integratedgameframemobile*/65536&m[0]&&x(t,"integratedgameframemobile",/*integratedgameframemobile*/e[16]),/*casinogamesgridslider*/524288&m[0]&&x(t,"casinogamesgridslider",/*casinogamesgridslider*/e[19]),b!==/*index*/e[85]&&(_(),b=/*index*/e[85],w())},d(e){e&&m(t),_()}}}(e);return{c(){n&&n.c(),t=b()},m(e,r){n&&n.m(e,r),h(e,t,r)},p(e,t){n.p(e,t)},d(e){n&&n.d(e),e&&m(t)}}}
|
1438
|
-
// (
|
1438
|
+
// (621:12) {:else}
|
1439
1439
|
function da(e){let t,n,r=/*$_*/e[40]("searchedItems")+"";return{c(){t=p("h3"),n=y(r),_(t,"class","StatusText")},m(e,r){h(e,t,r),d(t,n)},p(e,t){/*$_*/512&t[1]&&r!==(r=/*$_*/e[40]("searchedItems")+"")&&S(n,r)},d(e){e&&m(t)}}}
|
1440
|
-
// (
|
1440
|
+
// (617:12) {#if !shownCategoryData.length}
|
1441
1441
|
function ha(e){let t,n,r=/*$_*/e[40]("noResults")+"";return{c(){t=p("h3"),n=y(r),_(t,"class","StatusText")},m(e,r){h(e,t,r),d(t,n)},p(e,t){/*$_*/512&t[1]&&r!==(r=/*$_*/e[40]("noResults")+"")&&S(n,r)},d(e){e&&m(t)}}}
|
1442
|
-
// (
|
1442
|
+
// (612:10) {#if recentSearched}
|
1443
1443
|
function ma(e){let t,n,r=/*$_*/e[40]("recentSearchedItems")+"";return{c(){t=p("h3"),n=y(r),_(t,"class","StatusText")},m(e,r){h(e,t,r),d(t,n)},p(e,t){/*$_*/512&t[1]&&r!==(r=/*$_*/e[40]("recentSearchedItems")+"")&&S(n,r)},d(e){e&&m(t)}}}
|
1444
|
-
// (
|
1444
|
+
// (666:8) {:else}
|
1445
1445
|
function fa(t){let n;return{c(){n=p("p"),n.textContent="Waiting",_(n,"class","SearchWaiting")},m(e,t){h(e,n,t)},p:e,d(e){e&&m(n)}}}
|
1446
|
-
// (
|
1446
|
+
// (628:8) {#if shownCategoryData}
|
1447
1447
|
function pa(e){let t,n,r=!/*showItems*/e[32]&&ga(e),i=/*shownCategoryData*/e[26],a=[];for(let t=0;t<i.length;t+=1)a[t]=ya(Di(e,i,t));return{c(){r&&r.c(),t=v(),n=p("ul");for(let e=0;e<a.length;e+=1)a[e].c();_(n,"class","CasinoGamesGrid SearchedGamesGrid GamesListIncreasedGap")},m(e,i){r&&r.m(e,i),h(e,t,i),h(e,n,i);for(let e=0;e<a.length;e+=1)a[e]&&a[e].m(n,null)},p(e,o){if(/*showItems*/e[32]?r&&(r.d(1),r=null):r?r.p(e,o):(r=ga(e),r.c(),r.m(t.parentNode,t)),/*shownCategoryData, session, userid, lang, searchItem, favorites, showgamename, currency, clientstyling, clientstylingurl, endpoint, livecasino, gamepagemodalurl, integratedgameframedesktop, integratedgameframemobile*/1140981736&o[0]|/*addGameTag*/2048&o[1]){let t;for(i=/*shownCategoryData*/e[26],t=0;t<i.length;t+=1){const r=Di(e,i,t);a[t]?a[t].p(r,o):(a[t]=ya(r),a[t].c(),a[t].m(n,null))}for(;t<a.length;t+=1)a[t].d(1);a.length=i.length}},d(e){r&&r.d(e),e&&m(t),e&&m(n),f(a,e)}}}
|
1448
|
-
// (
|
1448
|
+
// (630:10) {#if !showItems}
|
1449
1449
|
function ga(e){let t,n,r=/*$_*/e[40]("noRecentSearch")+"";return{c(){t=p("p"),n=y(r),_(t,"class","NoSearchResults NoRecentSearches NoRecentSearchesCenter "+(Ar(/*userAgent*/e[41])?"NoRecentSearchesMobile":""))},m(e,r){h(e,t,r),d(t,n)},p(e,t){/*$_*/512&t[1]&&r!==(r=/*$_*/e[40]("noRecentSearch")+"")&&S(n,r)},d(e){e&&m(t)}}}
|
1450
|
-
// (
|
1450
|
+
// (634:12) {#each shownCategoryData as gameprops, index}
|
1451
1451
|
function ya(e){let t,n,r,i,a,o,s,l,c,u,d,f,g,y;return{c(){t=p("casino-game-thumbnail"),x(t,"class",n=""+(_a+(/*gameprops*/e[83].cellSize?/*gameprops*/e[83].cellSize:"1x1"))),x(t,"part",r=""+(_a+(/*gameprops*/e[83].cellSize?/*gameprops*/e[83].cellSize:"1x1"))),x(t,"session",/*session*/e[6]),x(t,"userid",/*userid*/e[7]),x(t,"lang",/*lang*/e[5]),x(t,"searchitem",/*searchItem*/e[30]),x(t,"favorites",/*favorites*/e[8]),x(t,"gamethumbnail",i=/*gameprops*/e[83].thumbnail),x(t,"gamename",a=/*gameprops*/e[83].name),x(t,"gamevendor",o=/*gameprops*/e[83].vendor.name),x(t,"gamelaunchurl",s=/*gameprops*/e[83].launchUrl),x(t,"gameisnew",l=/*gameprops*/e[83].isNew),x(t,"gametag",c=/*gameprops*/e[83].advancedTags?.length>0&&/*addGameTag*/e[42](/*gameprops*/e[83].advancedTags)),x(t,"gamecellsize",u=/*gameprops*/e[83].cellSize),x(t,"gameid",d=/*gameprops*/e[83].id),x(t,"gamefunmode",f=/*gameprops*/e[83].hasFunMode),x(t,"showgamename",/*showgamename*/e[12]),x(t,"gamefavorite",g=/*gameprops*/e[83].isFavorite),x(t,"currency",/*currency*/e[11]),x(t,"livelobbyendpoint",y=/*gameprops*/e[83].details?/*gameprops*/e[83].href:""),x(t,"clientstyling",/*clientstyling*/e[9]),x(t,"clientstylingurl",/*clientstylingurl*/e[10]),x(t,"endpoint",/*endpoint*/e[3]),x(t,"livecasino",/*livecasino*/e[13]),x(t,"gamepagemodalurl",/*gamepagemodalurl*/e[14]),x(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[15]),x(t,"integratedgameframemobile",/*integratedgameframemobile*/e[16])},m(e,n){h(e,t,n)},p(e,h){/*shownCategoryData*/67108864&h[0]&&n!==(n=""+(_a+(/*gameprops*/e[83].cellSize?/*gameprops*/e[83].cellSize:"1x1")))&&x(t,"class",n),/*shownCategoryData*/67108864&h[0]&&r!==(r=""+(_a+(/*gameprops*/e[83].cellSize?/*gameprops*/e[83].cellSize:"1x1")))&&x(t,"part",r),/*session*/64&h[0]&&x(t,"session",/*session*/e[6]),/*userid*/128&h[0]&&x(t,"userid",/*userid*/e[7]),/*lang*/32&h[0]&&x(t,"lang",/*lang*/e[5]),/*searchItem*/1073741824&h[0]&&x(t,"searchitem",/*searchItem*/e[30]),/*favorites*/256&h[0]&&x(t,"favorites",/*favorites*/e[8]),/*shownCategoryData*/67108864&h[0]&&i!==(i=/*gameprops*/e[83].thumbnail)&&x(t,"gamethumbnail",i),/*shownCategoryData*/67108864&h[0]&&a!==(a=/*gameprops*/e[83].name)&&x(t,"gamename",a),/*shownCategoryData*/67108864&h[0]&&o!==(o=/*gameprops*/e[83].vendor.name)&&x(t,"gamevendor",o),/*shownCategoryData*/67108864&h[0]&&s!==(s=/*gameprops*/e[83].launchUrl)&&x(t,"gamelaunchurl",s),/*shownCategoryData*/67108864&h[0]&&l!==(l=/*gameprops*/e[83].isNew)&&x(t,"gameisnew",l),/*shownCategoryData*/67108864&h[0]&&c!==(c=/*gameprops*/e[83].advancedTags?.length>0&&/*addGameTag*/e[42](/*gameprops*/e[83].advancedTags))&&x(t,"gametag",c),/*shownCategoryData*/67108864&h[0]&&u!==(u=/*gameprops*/e[83].cellSize)&&x(t,"gamecellsize",u),/*shownCategoryData*/67108864&h[0]&&d!==(d=/*gameprops*/e[83].id)&&x(t,"gameid",d),/*shownCategoryData*/67108864&h[0]&&f!==(f=/*gameprops*/e[83].hasFunMode)&&x(t,"gamefunmode",f),/*showgamename*/4096&h[0]&&x(t,"showgamename",/*showgamename*/e[12]),/*shownCategoryData*/67108864&h[0]&&g!==(g=/*gameprops*/e[83].isFavorite)&&x(t,"gamefavorite",g),/*currency*/2048&h[0]&&x(t,"currency",/*currency*/e[11]),/*shownCategoryData*/67108864&h[0]&&y!==(y=/*gameprops*/e[83].details?/*gameprops*/e[83].href:"")&&x(t,"livelobbyendpoint",y),/*clientstyling*/512&h[0]&&x(t,"clientstyling",/*clientstyling*/e[9]),/*clientstylingurl*/1024&h[0]&&x(t,"clientstylingurl",/*clientstylingurl*/e[10]),/*endpoint*/8&h[0]&&x(t,"endpoint",/*endpoint*/e[3]),/*livecasino*/8192&h[0]&&x(t,"livecasino",/*livecasino*/e[13]),/*gamepagemodalurl*/16384&h[0]&&x(t,"gamepagemodalurl",/*gamepagemodalurl*/e[14]),/*integratedgameframedesktop*/32768&h[0]&&x(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[15]),/*integratedgameframemobile*/65536&h[0]&&x(t,"integratedgameframemobile",/*integratedgameframemobile*/e[16])},d(e){e&&m(t)}}}
|
1452
|
-
// (
|
1452
|
+
// (605:4) {:else}
|
1453
1453
|
function va(e){let t;return{c(){t=p("p"),t.textContent="500 Error - Internal Server Error.",_(t,"class","SearchLoading")},m(e,n){h(e,t,n)},d(e){e&&m(t)}}}
|
1454
|
-
// (
|
1454
|
+
// (603:4) {#if presentFilters}
|
1455
1455
|
function ba(e){let t;return{c(){t=p("p"),t.textContent="404 Error - No result found.",_(t,"class","SearchLoading")},m(e,n){h(e,t,n)},d(e){e&&m(t)}}}function wa(t){let n;function r(e,t){/*hasErrors*/
|
1456
1456
|
return e[23]?Hi:/*searched*/e[28]?Ri:Ni}let i=r(t),a=i(t);return{c(){n=p("div"),a.c(),this.c=e,_(n,"class","CasinoGamesCategorySectionContainer")},m(e,r){h(e,n,r),a.m(n,null),
|
1457
1457
|
/*div_binding*/t[57](n)},p(e,t){i===(i=r(e))&&a?a.p(e,t):(a.d(1),a=i(e),a&&(a.c(),a.m(n,null)))},i:e,o:e,d(e){e&&m(n),a.d(),
|
@@ -1461,31 +1461,31 @@ m="hidden":void 0!==document.msHidden?m="msHidden":void 0!==document.webkitHidde
|
|
1461
1461
|
// IntersectionObserver used for loading more games
|
1462
1462
|
let ue=new IntersectionObserver((e=>{e.forEach((async e=>{let t=e.target.gameid,r=e.target.elems_index;// eslint-disable-line
|
1463
1463
|
// eslint-disable-line
|
1464
|
-
e.isIntersecting?(1.2*r>K&&
|
1464
|
+
e.isIntersecting?(1.2*r>K&&fe(C),n(37,oe[t]=1,oe)):n(37,oe[t]=0,oe)}))}));
|
1465
1465
|
// Start favored games section
|
1466
|
-
const de=(e,t,r)=>{n(22,Y=!0);let i="",a="",o=JSON.parse(localStorage.getItem("vendorFiltersByCategory")),s=JSON.parse(localStorage.getItem("vendorSortingBy"));return(C.match(/\$/g)||[]).length>1?(i=C.split("$").slice(0,2).join("$"),a=new URL(`${p}/v1/casino/groups/${g}/${i}/subGroups`)):a=new URL(`${p}/v1/casino/groups/${g}/${C}`),new Promise(((e,i)=>{if(a.searchParams.delete("pagination"),a.searchParams.append("expand","games(vendor)"),a.searchParams.append("fields","id,name,games"),a.searchParams.append("platform",Or(W)),a.searchParams.append("pagination",`games(offset=${t},limit=${r})`),a.searchParams.append("language",y),
|
1466
|
+
const de=(e,t)=>{let r=`${p}/v1/player/${t}/favorites/`;n(22,Y=!0);let a={method:"GET",headers:{"X-SessionID":i}};return new Promise(((e,t)=>{fetch(r,a).then((e=>e.json())).then((t=>{n(22,Y=!1),d=t?t.items:[],V.forEach((e=>{e.isFavorite=pe(e.id)}));let r=V;n(26,V=void 0),n(26,V=r),e(d)})).catch((e=>{console.error(e),t(e)}))}))},he=(e,t,r)=>{n(22,Y=!0);let i="",a="",o=JSON.parse(localStorage.getItem("vendorFiltersByCategory")),s=JSON.parse(localStorage.getItem("vendorSortingBy"));return(C.match(/\$/g)||[]).length>1?(i=C.split("$").slice(0,2).join("$"),a=new URL(`${p}/v1/casino/groups/${g}/${i}/subGroups`)):a=new URL(`${p}/v1/casino/groups/${g}/${C}`),new Promise(((e,i)=>{if(a.searchParams.delete("pagination"),a.searchParams.append("expand","games(vendor)"),a.searchParams.append("fields","id,name,games"),a.searchParams.append("platform",Or(W)),a.searchParams.append("pagination",`games(offset=${t},limit=${r})`),a.searchParams.append("language",y),
|
1467
1467
|
// if vendor filters are active, get filtered games
|
1468
|
-
window.postMessage({type:"CategoryVendors",categoryid:C},window.location.href),o&&o[C])if(o[C].length&&!1===j&&!1===re){let e="";n(31,ee=!0),o[C].forEach((t=>{e+=e?`,games(vendor(id=${t}))`:`games(vendor(id=${t}))`})),a.searchParams.append("filter",`${e}`)}else n(31,ee=!1);s&&(s[C]?s[C]&&"All"!=s[C]&&("isNew"==s[C]||"advancedTags(name(hot))"==s[C]?(a.searchParams.append("sortedField",`games(${s[C]})`),a.searchParams.append("orderBy","DES")):a.searchParams.append("sortedField",`games(${s[C]})`)):le&&"All"!=le&&("advancedTags(name(hot))"==le||"isNew"==le?(a.searchParams.append("sortedField",`games(${le})`),a.searchParams.append("orderBy","DES")):a.searchParams.append("sortedField",`games(${le})`))),fetch(a).then((e=>e.json())).then((t=>{n(22,Y=!1),(C.match(/\$/g)||[]).length>1&&(t=t.items.filter((e=>{if(e.id==C)return e}))[0]),n(50,f=!0),n(23,z=!1),l=t.games.total,e(t)}),(e=>{n(23,z=!0),console.error(e),i(e)}))}))},
|
1468
|
+
window.postMessage({type:"CategoryVendors",categoryid:C},window.location.href),o&&o[C])if(o[C].length&&!1===j&&!1===re){let e="";n(31,ee=!0),o[C].forEach((t=>{e+=e?`,games(vendor(id=${t}))`:`games(vendor(id=${t}))`})),a.searchParams.append("filter",`${e}`)}else n(31,ee=!1);s&&(s[C]?s[C]&&"All"!=s[C]&&("isNew"==s[C]||"advancedTags(name(hot))"==s[C]?(a.searchParams.append("sortedField",`games(${s[C]})`),a.searchParams.append("orderBy","DES")):a.searchParams.append("sortedField",`games(${s[C]})`)):le&&"All"!=le&&("advancedTags(name(hot))"==le||"isNew"==le?(a.searchParams.append("sortedField",`games(${le})`),a.searchParams.append("orderBy","DES")):a.searchParams.append("sortedField",`games(${le})`))),fetch(a).then((e=>e.json())).then((t=>{n(22,Y=!1),(C.match(/\$/g)||[]).length>1&&(t=t.items.filter((e=>{if(e.id==C)return e}))[0]),n(50,f=!0),n(23,z=!1),l=t.games.total,e(t)}),(e=>{n(23,z=!0),console.error(e),i(e)}))}))},me=e=>{if(e.data)switch(e.data.type){case"MostPlayedData":"MOSTPLAYED"==C&&(n(28,X=!1),n(24,j=!1),n(27,Z=!1),n(26,V=e.data.mostPlayedGames),n(25,o={id:"MOSTPLAYED",name:"Most Played Games",games:{count:e.data.mostPlayedGames.length,total:e.data.mostPlayedGames.length,items:e.data.mostPlayedGames}})),n(22,Y=!1);break;case"LastPlayedData":"LASTPLAYED"==C&&(n(28,X=!1),n(24,j=!1),n(27,Z=!1),n(26,V=e.data.lastPlayedGames),n(25,o={id:"LASTPLAYED",name:"Last Played Games",games:{count:e.data.lastPlayedGames.length,total:e.data.lastPlayedGames.length,items:e.data.lastPlayedGames}})),n(22,Y=!1);break;case"CustomOperatorData":e.data.operatordetail;break;case"RecentSearchData":n(28,X=!0),n(29,J=!0),e.data.searchData.length>0?(n(26,V=e.data.searchData),n(32,te=!0),V&&V.forEach((e=>{e.isFavorite=pe(e.id)}))):(n(26,V=[]),n(32,te=!1));break;case"OutOfRecentSearches":n(28,X=!1),n(29,J=!1);break;case"SearchData":n(28,X=!0),n(29,J=!1),n(26,V=e.data.searchData.items||[]),n(30,Q=!0),e.data.receivedFavoriteResults&&(d=e.data.receivedFavoriteResults.items),V&&V.forEach((e=>{e.isFavorite=pe(e.id)}));break;case`CategoryData_${C}`:n(28,X=!1),n(24,j=!0),n(1,A="false"),n(2,O="false"),n(27,Z=!0),n(30,Q=!1),ie=!1,e.data.receivedFavoriteResults&&(d=e.data.receivedFavoriteResults.items),he(e.data.categoryId,0,e.data.visiblegames).then((e=>{n(25,o=e),n(26,V=o.games.items),V&&V.forEach((e=>{e.isFavorite=pe(e.id)}))}));break;case"CategoryChange":K=20;break;case"ApplySorter":n(0,C=e.data.itemId),le=e.data.sortBy,he(0,0,K).then((e=>{n(25,o=e),n(26,V=o.games.items),n(27,Z=!1)}));break;case"CategoryUpdate":n(28,X=!1),n(24,j=!1),n(30,Q=!1),ie=!0,n(0,C=e.data.itemId),"MOSTPLAYED"!==C&&n(27,Z=!1),"true"!==I&&he(0,0,K).then((t=>{n(25,o=t),o.games.items.forEach((e=>{e.isFavorite=pe(e.id)})),n(26,V=o.games.items),n(27,Z=!1),
|
1469
1469
|
// @TODO: replace this quick fix - when there are only a few category games, the view scrolls to the footer
|
1470
|
-
V.length<10&&0==e.data.origin&&(q=!0,setTimeout((()=>{window.postMessage({type:"WidgetTopReference",scrollTop:q},window.location.href)}),500))}));break;case"FavoriteUpdate":o&&(n(26,V=o.games.items),V.forEach((e=>{e.isFavorite=
|
1470
|
+
V.length<10&&0==e.data.origin&&(q=!0,setTimeout((()=>{window.postMessage({type:"WidgetTopReference",scrollTop:q},window.location.href)}),500))}));break;case"FavoriteUpdate":o&&(n(26,V=o.games.items),V.forEach((e=>{e.isFavorite=pe(e.id)}))),e.data.lobbyScreen&&n(24,j=!0);break;case"UpdateCategoryFavoriteGames":if(e.data.receivedFavoriteResults){if(d=e.data.receivedFavoriteResults.items,e.data.favStadalone)return;re?j||window.postMessage({type:"CategoryUpdate",itemId:C},window.location.href):window.postMessage({type:"FavoriteUpdate",lobbyScreen:e.data.lobbyScreen},window.location.href)}break;case"ShowFavoriteSection":let t;n(24,j=!1),e.data&&(t=e.data.receivedFavoriteResults.items,t.length&&t.forEach((e=>{e.gameModel&&(e.gameModel.isFavorite=!!e.gameModel)})),n(39,ce.items=
|
1471
1471
|
// separate favorites array into mobile and desktop favorites
|
1472
1472
|
function(e,t){let n=window.navigator.userAgent;
|
1473
1473
|
// make sure to display favored games specific to the platform used
|
1474
|
-
return Ar(n)?e.filter((e=>{if(e.gameModel&&(e.gameModel.platform.includes("iPad")||e.gameModel.platform.includes("iPhone")||e.gameModel.platform.includes("Android")))return e})):e.filter((e=>{if(e.gameModel&&e.gameModel.platform.includes("PC"))return e}))}(t,ce.items),ce),n(39,ce.name="Favorites",ce),n(36,re=!0),n(22,Y=!1));break;case"UserSessionID":i=e.data.session,a=e.data.userID,"true"==w&&a&&a.length&&i&&i.length>0&&(
|
1474
|
+
return Ar(n)?e.filter((e=>{if(e.gameModel&&(e.gameModel.platform.includes("iPad")||e.gameModel.platform.includes("iPhone")||e.gameModel.platform.includes("Android")))return e})):e.filter((e=>{if(e.gameModel&&e.gameModel.platform.includes("PC"))return e}))}(t,ce.items),ce),n(39,ce.name="Favorites",ce),n(36,re=!0),n(22,Y=!1));break;case"UserSessionID":i=e.data.session,a=e.data.userID,"true"==w&&a&&a.length&&i&&i.length>0&&de(0,a)}},fe=e=>{K+=1,n(33,ne=!0),K<=l&&he(0,0,K).then((e=>{n(25,o=e),
|
1475
1475
|
// @TODO categoryData type fix
|
1476
1476
|
/**
|
1477
1477
|
* This check is needed to prevent requests with less items
|
1478
1478
|
* that started before but ended after the last request to add items to list
|
1479
1479
|
* This could also use abort controller instead but refactoring is needed
|
1480
1480
|
*/
|
1481
|
-
o.games.items.length>V.length&&(n(26,V=o.games.items),V.forEach((e=>{e.isFavorite=
|
1481
|
+
o.games.items.length>V.length&&(n(26,V=o.games.items),V.forEach((e=>{e.isFavorite=pe(e.id)}))),n(33,ne=!1)}))},pe=e=>!!d&&-1!==d.findIndex((t=>t.id==e)),ge=e=>{window.postMessage({type:`${H}`,itemId:e,showallpage:R},window.location.href)},ye=()=>{var e;e=y,mr.set(e)};
|
1482
1482
|
// @TODO categoryId type
|
1483
|
-
k((()=>{if("true"===N)return window.addEventListener("visibilitychange",(e=>{document[m]?n(38,se="disconnect"):n(38,se="connect")})),window.addEventListener("message",
|
1483
|
+
k((()=>{if("true"===N)return window.addEventListener("visibilitychange",(e=>{document[m]?n(38,se="disconnect"):n(38,se="connect")})),window.addEventListener("message",me,!1),"FAVORITES"===C&&window.postMessage({type:"GetFavoredGame"},window.location.href),()=>{window.removeEventListener("message",me),window.removeEventListener("visibilitychange",me)}}));return e.$$set=e=>{"endpoint"in e&&n(3,p=e.endpoint),"datasource"in e&&n(4,g=e.datasource),"lang"in e&&n(5,y=e.lang),"session"in e&&n(6,v=e.session),"userid"in e&&n(7,b=e.userid),"favorites"in e&&n(8,w=e.favorites),"clientstyling"in e&&n(9,_=e.clientstyling),"clientstylingurl"in e&&n(10,x=e.clientstylingurl),"translationurl"in e&&n(44,S=e.translationurl),"currency"in e&&n(11,F=e.currency),"categoryid"in e&&n(0,C=e.categoryid),"showgamename"in e&&n(12,E=e.showgamename),"livecasino"in e&&n(13,G=e.livecasino),"gamepagemodalurl"in e&&n(14,T=e.gamepagemodalurl),"integratedgameframedesktop"in e&&n(15,$=e.integratedgameframedesktop),"integratedgameframemobile"in e&&n(16,L=e.integratedgameframemobile),"casinomygames"in e&&n(17,I=e.casinomygames),"addfilterselector"in e&&n(1,A=e.addfilterselector),"addsortingselector"in e&&n(2,O=e.addsortingselector),"filterbylogo"in e&&n(18,P=e.filterbylogo),"casinogamesgridslider"in e&&n(19,D=e.casinogamesgridslider),"fetchviaevent"in e&&n(45,N=e.fetchviaevent),"showallpage"in e&&n(46,R=e.showallpage),"actionevent"in e&&n(47,H=e.actionevent),"displayedgamecount"in e&&n(48,B=e.displayedgamecount),"showallbuttongamescount"in e&&n(49,U=e.showallbuttongamescount)},e.$$.update=()=>{/*lang*/32&e.$$.dirty[0]&&y&&ye(),/*endpoint, lang, categoryid, datasource*/57&e.$$.dirty[0]|/*fetchviaevent, displayedgamecount, showallbuttongamescount*/409600&e.$$.dirty[1]&&("false"===N||""===N)&&p&&y&&C&&g&&B&&U&&((e,t,r)=>{""!==e&&(n(28,X=!1),n(24,j=!0),n(1,A="false"),n(2,O="false"),n(30,Q=!1),ie=!1,n(27,Z=+t>+r),he(0,0,+t).then((e=>{n(25,o=e),n(26,V=o.games.items),V&&V.forEach((e=>{e.isFavorite=pe(e.id)}))})))})(C,B,U),/*favorites, session, userid*/448&e.$$.dirty[0]&&"true"===w&&v&&b&&de(0,b),/*thumbnailContainer*/2097152&e.$$.dirty[0]|/*dataloaded*/524288&e.$$.dirty[1]&&f&&ae&&ie&&ae.forEach(((e,t)=>{e&&(
|
1484
1484
|
// Hack to make sure that I can identify the thumbnail index
|
1485
1485
|
e.elems_index=t,ue.observe(e))})),/*lang, categoryid*/33&e.$$.dirty[0]&&y&&C&&(()=>{
|
1486
1486
|
// showFavGamesCategory vs categoryData
|
1487
1487
|
// favoriteGamesData vs shownCategoryData
|
1488
|
-
switch(C){case"FAVORITES":n(36,re=!0);break;case"MOSTPLAYED":case"LASTPLAYED":"false"===I&&n(36,re=!1)}})(),/*translationurl*/8192&e.$$.dirty[1]&&S&&fetch(S).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Nr(t,e[t])}))})).catch((e=>{console.log(e)})),/*clientstyling, customStylingContainer*/1049088&e.$$.dirty[0]&&_&&h&&(()=>{let e=document.createElement("style");e.innerHTML=_,h.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/1049600&e.$$.dirty[0]&&x&&h&&(()=>{let e=new URL(x),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{h.appendChild(t)}),1)}))})()},[C,A,O,p,g,y,v,b,w,_,x,F,E,G,T,$,L,I,P,D,h,ae,Y,z,j,o,V,Z,X,J,Q,ee,te,ne,s,c,re,oe,se,ce,r,W,e=>{if(0===(null==e?void 0:e.length))return"";let t,n="",r=999999999999;const i=new Date(Date.now());return e.forEach(((a,o)=>{const s=new Date(a.schedules[0].startTime),l=new Date(a.schedules[0].endTime);Hr(l).diff(i)<r&&(r=Hr(l).diff(i),t=o),Hr(i).isAfter(s)&&Hr(i).isBefore(l)&&(n=e[t].name)})),n},
|
1488
|
+
switch(C){case"FAVORITES":n(36,re=!0);break;case"MOSTPLAYED":case"LASTPLAYED":"false"===I&&n(36,re=!1)}})(),/*translationurl*/8192&e.$$.dirty[1]&&S&&fetch(S).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Nr(t,e[t])}))})).catch((e=>{console.log(e)})),/*clientstyling, customStylingContainer*/1049088&e.$$.dirty[0]&&_&&h&&(()=>{let e=document.createElement("style");e.innerHTML=_,h.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/1049600&e.$$.dirty[0]&&x&&h&&(()=>{let e=new URL(x),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{h.appendChild(t)}),1)}))})()},[C,A,O,p,g,y,v,b,w,_,x,F,E,G,T,$,L,I,P,D,h,ae,Y,z,j,o,V,Z,X,J,Q,ee,te,ne,s,c,re,oe,se,ce,r,W,e=>{if(0===(null==e?void 0:e.length))return"";let t,n="",r=999999999999;const i=new Date(Date.now());return e.forEach(((a,o)=>{const s=new Date(a.schedules[0].startTime),l=new Date(a.schedules[0].endTime);Hr(l).diff(i)<r&&(r=Hr(l).diff(i),t=o),Hr(i).isAfter(s)&&Hr(i).isBefore(l)&&(n=e[t].name)})),n},ge,S,N,R,H,B,U,f,function(e){M[e?"unshift":"push"]((()=>{c=e,n(35,c)}))},e=>ge(o.id),function(e,t){M[e?"unshift":"push"]((()=>{ae[t]=e,n(21,ae)}))},function(e){M[e?"unshift":"push"]((()=>{s=e,n(34,s)}))},function(e){M[e?"unshift":"push"]((()=>{c=e,n(35,c)}))},function(e){M[e?"unshift":"push"]((()=>{s=e,n(34,s)}))},function(e){M[e?"unshift":"push"]((()=>{h=e,n(20,h)}))}]}
|
1489
1489
|
/* src/CasinoMostPlayedSection.svelte generated by Svelte v3.59.2 */
|
1490
1490
|
function Sa(e){let t;return{c(){t=p("casino-games-category-section"),x(t,"session",/*session*/e[4]),x(t,"userid",/*userid*/e[5]),x(t,"endpoint",/*endpoint*/e[0]),x(t,"datasource",/*datasource*/e[1]),x(t,"lang",/*lang*/e[3]),x(t,"currency",/*currency*/e[2]),x(t,"favorites",/*favorites*/e[14]),x(t,"fetchviaevent",/*fetchviaevent*/e[16]),x(t,"categoryid","MOSTPLAYED"),x(t,"categoryindex","1"),x(t,"categorygames","9"),x(t,"class","CategoryContainer"),x(t,"showgamename",/*showgamename*/e[12]),x(t,"clientstyling",/*clientstyling*/e[6]),x(t,"clientstylingurl",/*clientstylingurl*/e[7]),x(t,"livecasino",/*livecasino*/e[8]),x(t,"visiblegames",/*visiblegames*/e[13]),x(t,"gamepagemodalurl",/*gamepagemodalurl*/e[11]),x(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[10]),x(t,"integratedgameframemobile",/*integratedgameframemobile*/e[9]),x(t,"casinomygames",/*casinomygames*/e[15])},m(e,n){h(e,t,n)},p(e,n){/*session*/16&n[0]&&x(t,"session",/*session*/e[4]),/*userid*/32&n[0]&&x(t,"userid",/*userid*/e[5]),/*endpoint*/1&n[0]&&x(t,"endpoint",/*endpoint*/e[0]),/*datasource*/2&n[0]&&x(t,"datasource",/*datasource*/e[1]),/*lang*/8&n[0]&&x(t,"lang",/*lang*/e[3]),/*currency*/4&n[0]&&x(t,"currency",/*currency*/e[2]),/*favorites*/16384&n[0]&&x(t,"favorites",/*favorites*/e[14]),/*fetchviaevent*/65536&n[0]&&x(t,"fetchviaevent",/*fetchviaevent*/e[16]),/*showgamename*/4096&n[0]&&x(t,"showgamename",/*showgamename*/e[12]),/*clientstyling*/64&n[0]&&x(t,"clientstyling",/*clientstyling*/e[6]),/*clientstylingurl*/128&n[0]&&x(t,"clientstylingurl",/*clientstylingurl*/e[7]),/*livecasino*/256&n[0]&&x(t,"livecasino",/*livecasino*/e[8]),/*visiblegames*/8192&n[0]&&x(t,"visiblegames",/*visiblegames*/e[13]),/*gamepagemodalurl*/2048&n[0]&&x(t,"gamepagemodalurl",/*gamepagemodalurl*/e[11]),/*integratedgameframedesktop*/1024&n[0]&&x(t,"integratedgameframedesktop",/*integratedgameframedesktop*/e[10]),/*integratedgameframemobile*/512&n[0]&&x(t,"integratedgameframemobile",/*integratedgameframemobile*/e[9]),/*casinomygames*/32768&n[0]&&x(t,"casinomygames",/*casinomygames*/e[15])},d(e){e&&m(t)}}}
|
1491
1491
|
// (154:4) {#if mostPlayedEmpty}
|