@everymatrix/casino-most-played-section 1.19.6 → 1.20.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.
@@ -1307,7 +1307,7 @@ return 65541&t[0]&&(E=null),/*gamefavorite, isLoggedIn, favorites*/65541&t[0]&&(
|
|
1307
1307
|
// Case mobile
|
1308
1308
|
Ir(ce)&&"true"==ie?window.postMessage({type:"OpenGameFrame",gameId:e,gamefunmode:W,gamepagemodalurl:q,isMobile:Ir(ce),source:"GameThumbnail",identifier:"Lobby"},window.location.href):Ir(ce)&&"false"==ie&&window.postMessage({type:"ShowGameModal",gameId:e,isMobile:Ir(ce)},window.location.href),
|
1309
1309
|
// Case desktop
|
1310
|
-
Ir(ce)||"true"!=re?Ir(ce)||"false"!=re||window.postMessage({type:"ShowGameModal",gameId:e,isMobile:Ir(ce)},window.location.href):window.postMessage({type:"OpenGameFrame",gameId:e,gamefunmode:W,gamepagemodalurl:q,isMobile:Ir(ce),identifier:"Lobby"},window.location.href)},_e=e=>{let t="thumbnail";V?window.postMessage({type:"SetUnfavoredGame",id:e,triggerFactor:t},window.location.href):window.postMessage({type:"SetFavoredGame",id:e,triggerFactor:t},window.location.href)},xe=()=>{var e;e=A,hr.set(e)},Se=()=>{ee&&EventSource&&!l&&U&&Y&&(l=new EventSource(`${Q}/encoder/lobby/updates/${U}/${Y}`),l.addEventListener("message",Ge))},Fe=()=>{l&&(l.close(),l=void 0)},Ge=async e=>{const{type:t,data:r}=e;let i;if("message"===t){if(r)try{i=JSON.parse(r)}catch(e){
|
1310
|
+
Ir(ce)||"true"!=re?Ir(ce)||"false"!=re||window.postMessage({type:"ShowGameModal",gameId:e,isMobile:Ir(ce)},window.location.href):window.postMessage({type:"OpenGameFrame",gameId:e,gamefunmode:W,gamepagemodalurl:q,isMobile:Ir(ce),identifier:"Lobby"},window.location.href)},_e=e=>{let t="thumbnail";V?window.postMessage({type:"SetUnfavoredGame",id:e,triggerFactor:t},window.location.href):window.postMessage({type:"SetFavoredGame",id:e,triggerFactor:t},window.location.href)},xe=()=>{var e;e=A,hr.set(e)},Se=()=>{ee&&EventSource&&!l&&U&&Y&&(l=new EventSource(`${Q}/v1/encoder/lobby/updates/${U}/${Y}`),l.addEventListener("message",Ge))},Fe=()=>{l&&(l.close(),l=void 0)},Ge=async e=>{const{type:t,data:r}=e;let i;if("message"===t){if(r)try{i=JSON.parse(r)}catch(e){
|
1311
1311
|
// eslint-disable-next-line no-console
|
1312
1312
|
console.error("MESSAGE PARSING ERROR: ",e)}if(i){const{InternalTableId:e,MessageType:t,Results:// TakenSeats,
|
1313
1313
|
r,Seats:// Roads, // for baccarat
|
@@ -1350,7 +1350,7 @@ return e[10]?_i:/*isLoading*/e[9]?void 0:wi}let i=r(t),a=i&&i(t);return{c(){n=p(
|
|
1350
1350
|
// end custom styling area
|
1351
1351
|
w[h]&&(w={[h]:[]});const G=()=>{n(4,g=!g),window.postMessage({type:"FilterOpened"},window.location.href)},C=e=>{let t=localStorage.getItem("vendorFiltersByCategory");e.isFilterSelected=!e.isFilterSelected,b.length&&0!=b.filter((t=>t.name===e.name)).length?n(6,b=b.filter((t=>t.name!==e.name))):b.push(e),null==t?localStorage.setItem("vendorFiltersByCategory",JSON.stringify(w={[h]:b.map((e=>e.id))})):(t=JSON.parse(t),t[h]=b.map((e=>e.id)),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(t))),window.postMessage({type:"ApplyFilters",origin:"filters"},window.location.href),k()},k=()=>{
|
1352
1352
|
// update filters value
|
1353
|
-
n(7,_=b.length===v.length||0==b.length),n(8,x=b.length)},M=()=>{const e=new URL(`${a}/casino/vendors`);n(4,g=!1),e.searchParams.append("fields","id,name,logo,subVendors,games"),e.searchParams.append("language",s),e.searchParams.append("datasource",o),e.searchParams.append("platform",Ar(y)),(h.match(/\$/g)||[]).length>1?(e.searchParams.append("filter",`games(subGroups=${h})`),e.searchParams.append("subVendors",`games(subGroups=${h})`)):e.searchParams.append("filter",`games(groups=${h})`),(e=>{n(9,S=!0),new Promise(((t,r)=>{fetch(e).then((e=>e.json())).then((e=>{e=e.items,t(e.items),n(6,b=[]);let r=JSON.parse(localStorage.getItem("vendorFiltersByCategory"));e.forEach((e=>{var t;r||(r={currentCategoryId:[]}),(null===(t=r[h])||void 0===t?void 0:t.indexOf(e.id))>=0?(e.isFilterSelected=!0,b.push(e)):e.isFilterSelected=!1})),n(5,v=e),
|
1353
|
+
n(7,_=b.length===v.length||0==b.length),n(8,x=b.length)},M=()=>{const e=new URL(`${a}/v1/casino/vendors`);n(4,g=!1),e.searchParams.append("fields","id,name,logo,subVendors,games"),e.searchParams.append("language",s),e.searchParams.append("datasource",o),e.searchParams.append("platform",Ar(y)),(h.match(/\$/g)||[]).length>1?(e.searchParams.append("filter",`games(subGroups=${h})`),e.searchParams.append("subVendors",`games(subGroups=${h})`)):e.searchParams.append("filter",`games(groups=${h})`),(e=>{n(9,S=!0),new Promise(((t,r)=>{fetch(e).then((e=>e.json())).then((e=>{e=e.items,t(e.items),n(6,b=[]);let r=JSON.parse(localStorage.getItem("vendorFiltersByCategory"));e.forEach((e=>{var t;r||(r={currentCategoryId:[]}),(null===(t=r[h])||void 0===t?void 0:t.indexOf(e.id))>=0?(e.isFilterSelected=!0,b.push(e)):e.isFilterSelected=!1})),n(5,v=e),
|
1354
1354
|
// needed to force the update of the filters value
|
1355
1355
|
k()})).catch((e=>{console.error(e),n(10,F=!0),r(e)})).finally((()=>{n(9,S=!1)}))}))})(e)},L=()=>{n(6,b=[]),localStorage.setItem("vendorFiltersByCategory",JSON.stringify(w={[h]:b.map((e=>e.id))})),v.forEach((e=>e.isFilterSelected=!1)),
|
1356
1356
|
// this reassignation of the pointer value is required in order to have Svelte trigger a re-render
|
@@ -1469,7 +1469,7 @@ let he=new IntersectionObserver((e=>{e.forEach((async e=>{let t=e.target.gameid,
|
|
1469
1469
|
e.isIntersecting?(1.2*r>J&&pe(C),n(36,le[t]=1,le)):n(36,le[t]=0,le)}))}));
|
1470
1470
|
// Start favored games section
|
1471
1471
|
const me=(e,t,r)=>{n(21,j=!0);let i="",a="",o=JSON.parse(localStorage.getItem("vendorFiltersByCategory")),s=JSON.parse(localStorage.getItem("vendorSortingBy")),c=g.replace(/.$/,"2");// @TODO remove after we migrate with all endpoints to v2 - hack for the endpoint since the filtering of categories functionality was developed only for the v2 api
|
1472
|
-
return(C.match(/\$/g)||[]).length>1?(i=C.split("$").slice(0,2).join("$"),a=new URL(`${c}/casino/groups/${y}/${i}/subGroups`)):a=new URL(`${c}/casino/groups/${y}/${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",Ar(Z)),a.searchParams.append("pagination",`games(offset=${t},limit=${r})`),a.searchParams.append("language",v),
|
1472
|
+
return(C.match(/\$/g)||[]).length>1?(i=C.split("$").slice(0,2).join("$"),a=new URL(`${c}/v2/casino/groups/${y}/${i}/subGroups`)):a=new URL(`${c}/v2/casino/groups/${y}/${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",Ar(Z)),a.searchParams.append("pagination",`games(offset=${t},limit=${r})`),a.searchParams.append("language",v),
|
1473
1473
|
// if vendor filters are active, get filtered games
|
1474
1474
|
window.postMessage({type:"CategoryVendors",categoryid:C},window.location.href),o&&o[C])if(o[C].length&&!1===V&&!1===ae){let e="";n(30,ne=!0),o[C].forEach((t=>{e+=e?`,games(vendor(id=${t}))`:`games(vendor(id=${t}))`})),a.searchParams.append("filter",(o&&o[C].length<2?"$and":"$or")+`(${e})`)}else n(30,ne=!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]})`)):ue&&"All"!=ue&&("advancedTags(name(hot))"==ue||"isNew"==ue?(a.searchParams.append("sortedField",`games(${ue})`),a.searchParams.append("orderBy","DES")):a.searchParams.append("sortedField",`games(${ue})`))),fetch(a).then((e=>e.json())).then((t=>{n(21,j=!1),(C.match(/\$/g)||[]).length>1&&(t=t.items.filter((e=>{if(e.id==C)return e}))[0]),n(52,f=!0),n(22,W=!1),l=t.games.total,e(t)}),(e=>{n(22,W=!0),console.error(e),i(e)}))}))},fe=e=>{if(e.data)switch(e.data.type){case"MostPlayedData":"MOSTPLAYED"==C&&(n(27,q=!1),n(23,V=!1),n(26,X=!1),n(25,K=e.data.mostPlayedGames),n(24,o={id:"MOSTPLAYED",name:"Most Played Games",games:{count:e.data.mostPlayedGames.length,total:e.data.mostPlayedGames.length,items:e.data.mostPlayedGames}})),n(21,j=!1);break;case"LastPlayedData":"LASTPLAYED"==C&&(n(27,q=!1),n(23,V=!1),n(26,X=!1),n(25,K=e.data.lastPlayedGames),n(24,o={id:"LASTPLAYED",name:"Last Played Games",games:{count:e.data.lastPlayedGames.length,total:e.data.lastPlayedGames.length,items:e.data.lastPlayedGames}})),n(21,j=!1);break;case"CustomOperatorData":e.data.operatordetail;break;case"RecentSearchData":n(27,q=!0),n(28,Q=!0),e.data.searchData.length>0?(n(25,K=e.data.searchData),n(31,re=!0),K&&K.forEach((e=>{e.isFavorite=ge(e.id)}))):(n(25,K=[]),n(31,re=!1));break;case"OutOfRecentSearches":n(27,q=!1),n(28,Q=!1);break;case"SearchData":n(27,q=!0),n(28,Q=!1),n(25,K=e.data.searchData.items||[]),n(29,te=!0),e.data.receivedFavoriteResults&&(d=e.data.receivedFavoriteResults.items),K&&K.forEach((e=>{e.isFavorite=ge(e.id)}));break;case`CategoryData_${C}`:n(27,q=!1),n(23,V=!0),n(1,P="false"),n(2,D="false"),n(26,X=!0),n(29,te=!1),oe=!1,e.data.receivedFavoriteResults&&(d=e.data.receivedFavoriteResults.items),me(e.data.categoryId,0,e.data.visiblegames).then((e=>{n(24,o=e),n(25,K=o.games.items),K&&K.forEach((e=>{e.isFavorite=ge(e.id)}))}));break;case"CategoryChange":J=20;break;case"ApplySorter":n(0,C=e.data.itemId),ue=e.data.sortBy,me(0,0,J).then((e=>{n(24,o=e),n(25,K=o.games.items),n(26,X=!1)}));break;case"CategoryUpdate":n(27,q=!1),n(23,V=!1),n(29,te=!1),oe=!0,n(0,C=e.data.itemId),"MOSTPLAYED"!==C&&n(26,X=!1),"true"!==O&&me(0,0,J).then((t=>{n(24,o=t),o.games.items.forEach((e=>{e.isFavorite=ge(e.id)})),n(25,K=o.games.items),n(26,X=!1),
|
1475
1475
|
// @TODO: replace this quick fix - when there are only a few category games, the view scrolls to the footer
|
@@ -1477,7 +1477,7 @@ K.length<10&&0==e.data.origin&&(ee=!0,setTimeout((()=>{window.postMessage({type:
|
|
1477
1477
|
// separate favorites array into mobile and desktop favorites
|
1478
1478
|
function(e,t){let n=window.navigator.userAgent;
|
1479
1479
|
// make sure to display favored games specific to the platform used
|
1480
|
-
return Ir(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,de.items),de),n(38,de.name="Favorites",de),n(35,ae=!0),n(21,j=!1));break;case"UserSessionID":i=e.data.session,a=e.data.userID,"true"==_&&a&&a.length&&i&&i.length>0&&((e,t)=>{n(21,j=!0);let r={method:"GET",headers:{"X-SessionID":t}};new Promise(((t,i)=>{fetch(e,r).then((e=>e.json())).then((e=>{n(21,j=!1),d=e?e.items:[],K.forEach((e=>{e.isFavorite=ge(e.id)}));let r=K;n(25,K=void 0),n(25,K=r),t(d)})).catch((e=>{console.error(e),i(e)}))}))})(`${g}/player/${a}/favorites/`,i)}},pe=e=>{J+=1,n(32,ie=!0),J<=l&&me(0,0,J).then((e=>{n(24,o=e),
|
1480
|
+
return Ir(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,de.items),de),n(38,de.name="Favorites",de),n(35,ae=!0),n(21,j=!1));break;case"UserSessionID":i=e.data.session,a=e.data.userID,"true"==_&&a&&a.length&&i&&i.length>0&&((e,t)=>{n(21,j=!0);let r={method:"GET",headers:{"X-SessionID":t}};new Promise(((t,i)=>{fetch(e,r).then((e=>e.json())).then((e=>{n(21,j=!1),d=e?e.items:[],K.forEach((e=>{e.isFavorite=ge(e.id)}));let r=K;n(25,K=void 0),n(25,K=r),t(d)})).catch((e=>{console.error(e),i(e)}))}))})(`${g}/v1/player/${a}/favorites/`,i)}},pe=e=>{J+=1,n(32,ie=!0),J<=l&&me(0,0,J).then((e=>{n(24,o=e),
|
1481
1481
|
// @TODO categoryData type fix
|
1482
1482
|
/**
|
1483
1483
|
* This check is needed to prevent requests with less items
|
@@ -1498,5 +1498,5 @@ function Fa(e){let t;return{c(){t=p("casino-games-category-section"),x(t,"sessio
|
|
1498
1498
|
function Ga(e){let t,n,r=/*$_*/e[17]("noGames")+"";return{c(){t=p("p"),n=y(r),_(t,"class","SearchLoading")},m(e,r){h(e,t,r),d(t,n)},p(e,t){/*$_*/131072&t[0]&&r!==(r=/*$_*/e[17]("noGames")+"")&&S(n,r)},d(e){e&&m(t)}}}function Ca(t){let n,r;function i(e,t){/*mostPlayedEmpty*/
|
1499
1499
|
return e[16]?Ga:Fa}let a=i(t),o=a(t);return{c(){n=p("div"),r=p("div"),o.c(),this.c=e,_(r,"class","casino-most-played-section"),_(n,"class","CasinoGamesCategorySectionContainer")},m(e,i){h(e,n,i),d(n,r),o.m(r,null),
|
1500
1500
|
/*div1_binding*/t[22](n)},p(e,t){a===(a=i(e))&&o?o.p(e,t):(o.d(1),o=a(e),o&&(o.c(),o.m(r,null)))},i:e,o:e,d(e){e&&m(n),o.d(),
|
1501
|
-
/*div1_binding*/t[22](null)}}}function Ea(e,t,n){let r;u(e,$r,(e=>n(17,r=e)));let{endpoint:i=""}=t,{datasource:a=""}=t,{currency:o=""}=t,{lang:s=""}=t,{session:l=""}=t,{userid:c=""}=t,{clientstyling:d=""}=t,{clientstylingurl:h=""}=t,{livecasino:m="false"}=t,{integratedgameframemobile:f="false"}=t,{integratedgameframedesktop:p="false"}=t,{gamepagemodalurl:g="false"}=t,{visiblegames:y}=t,{favorites:v=""}=t,{lastPlayedEmpty:b=""}=t,{translationurl:w=""}=t,{casinomygames:_="false"}=t,{mostplayedperiod:x="Last30Days"}=t,{mostplayedrounds:S="10"}=t,F=window.navigator.userAgent;Object.keys(Pr).forEach((e=>{Or(e,Pr[e])}));let G,C,E=[],k=!1;const M=()=>{(e=>{let t=new URL(`${i}/player/${c}/games/most-played`);e.limit&&t.searchParams.append("limit",e.limit),e.order&&t.searchParams.append("order",e.order),t.searchParams.append("expand","games"),t.searchParams.append("period",x);let n=e.device;return n?"PC"===n?t.searchParams.append("device","Desktop"):t.searchParams.append("device","Mobile"):t.searchParams.append("device","All"),e.rounds&&t.searchParams.append("rounds",e.rounds),G=m?t:t.href,new Promise(((e,t)=>{fetch(G).then((e=>e.json())).then((t=>{t.items=t.items.filter((e=>{let n=!0;return"OddsMatrix2"==e.gameCode&&(t.count--,n=!1),n})),e(t)})).catch((e=>{console.error(e),t(e)}))}))})({limit:100,device:Ar(F),rounds:S}).then((e=>{if(window.postMessage({type:"GetFavoredGame"},window.location.href),e.count>0){let t=[];e.items.forEach((e=>{let n=new URL(`${i}/casino/games/${e.gameId}`);n.searchParams.append("datasource",a),t.push(fetch(n.href).then((e=>e.json())))})),Promise.all(t).then((e=>{E=e.filter((e=>!("error"in e))).map((e=>e[0])),"true"===_&&(E=E.slice(0,JSON.parse(y))),window.postMessage({type:"MostPlayedData",mostPlayedGames:E},window.location.href)}))}else n(16,k=!0)}))},L=()=>{var e;e=s,hr.set(e)};return e.$$set=e=>{"endpoint"in e&&n(0,i=e.endpoint),"datasource"in e&&n(1,a=e.datasource),"currency"in e&&n(2,o=e.currency),"lang"in e&&n(3,s=e.lang),"session"in e&&n(4,l=e.session),"userid"in e&&n(5,c=e.userid),"clientstyling"in e&&n(6,d=e.clientstyling),"clientstylingurl"in e&&n(7,h=e.clientstylingurl),"livecasino"in e&&n(8,m=e.livecasino),"integratedgameframemobile"in e&&n(9,f=e.integratedgameframemobile),"integratedgameframedesktop"in e&&n(10,p=e.integratedgameframedesktop),"gamepagemodalurl"in e&&n(11,g=e.gamepagemodalurl),"visiblegames"in e&&n(12,y=e.visiblegames),"favorites"in e&&n(13,v=e.favorites),"lastPlayedEmpty"in e&&n(18,b=e.lastPlayedEmpty),"translationurl"in e&&n(19,w=e.translationurl),"casinomygames"in e&&n(14,_=e.casinomygames),"mostplayedperiod"in e&&n(20,x=e.mostplayedperiod),"mostplayedrounds"in e&&n(21,S=e.mostplayedrounds)},e.$$.update=()=>{/*endpoint, userid, lang*/41&e.$$.dirty[0]&&i&&c&&s&&M(),/*clientstyling, customStylingContainer*/32832&e.$$.dirty[0]&&d&&C&&(()=>{let e=document.createElement("style");e.innerHTML=d,C.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/32896&e.$$.dirty[0]&&h&&C&&(()=>{let e=document.createElement("style");fetch(new URL(h)).then((e=>e.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{C.appendChild(e)}),1)}))})(),/*translationurl*/524288&e.$$.dirty[0]&&w&&fetch(w).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Or(t,e[t])}))})).catch((e=>{console.log(e)})),/*lang*/8&e.$$.dirty[0]&&s&&L()},[i,a,o,s,l,c,d,h,m,f,p,g,y,v,_,C,k,r,b,w,x,S,function(e){T[e?"unshift":"push"]((()=>{C=e,n(15,C)}))}]}!customElements.get("casino-games-category-section")&&customElements.define("casino-games-category-section",class extends z{constructor(e){super();const t=document.createElement("style");t.textContent='*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CasinoGamesCategorySectionContainer{container-type:inline-size}.CustomScroll:-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0, 0, 0, 0.3);border-radius:5px;background-color:transparent}.CustomScroll::-webkit-scrollbar{height:5px;background-color:transparent}.CustomScroll::-webkit-scrollbar-thumb{border-radius:5px;height:5px;-webkit-box-shadow:inset 0 0 6px rgba(0, 0, 0, 0.3);background-color:rgba(255, 255, 255, 0.3)}.CategoryName,.StatusText{color:var(--emfe-w-casino-typography, var(--emfe-w-color-contrast, #FFFFFF));font-size:22px;font-weight:500}.CategoryLoadMore{font-size:14px;color:var(--emfe-w-casino-typography, var(--emfe-w-color-contrast, #FFFFFF))}.NoSearchResults{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));text-align:center;width:100%;padding-left:5px;font-size:16px}.NoRecentSearches{padding-bottom:30px}.NoRecentSearchesCenter{text-align:center}.NoFavoriteGames{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));font-size:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 20px;height:20vh}.NoFavoriteGames .NoFavoriteText{text-align:center}.NoFavoriteGames .NoFavoriteTextHighlight{font-weight:600;font-size:18px;padding:15px 0}.NoFavoriteGamesMobile{height:50vh}.SearchWaiting{grid-column:1/-1;color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));font-size:13px;text-align:center}.CasinoGamesHeader{width:100%;display:flex;align-items:center;justify-content:space-between;padding:8px 0 0;margin-bottom:16px}.CasinoGamesHeader .CategoryNameLink{display:block;cursor:pointer}.CasinoGamesHeader .CategoryLoadMore{font-weight:normal}.CasinoGamesHeader.Searched{justify-content:center}.CasinoGamesContainer{width:100%;margin-top:24px;padding-bottom:16px}.CasinoGamesGrid{display:grid;gap:16px;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}.CasinoGamesGrid .game-tile-2x1{grid-row:span 2}@container (max-width: 375px){.CasinoGamesGrid .game-tile-2x1{grid-row:span 1}}.CasinoGamesGrid .game-tile-2x2{grid-row:span 2;grid-column:span 2}@container (max-width: 375px){.CasinoGamesGrid .game-tile-2x2{grid-row:span 1;grid-column:span 1}}.CasinoGamesGrid .game-tile-1x2{grid-column:span 2}@container (max-width: 375px){.CasinoGamesGrid .game-tile-1x2{grid-column:span 1}}.CasinoGamesGrid.GamesListIncreasedGap{gap:28px}.CasinoGamesGridSlider{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(182px, 46%), 2fr));grid-template-rows:repeat(auto-fill, 182px);grid-auto-rows:182px;grid-auto-columns:182px;grid-auto-flow:column;overflow-x:auto;overflow-y:hidden;padding-bottom:5px}.CasinoGamesGridSlider .game-tile-2x1{grid-row:span 2}@container (max-width: 375px){.CasinoGamesGridSlider .game-tile-2x1{grid-row:span 1}}.CasinoGamesGridSlider .game-tile-2x2{grid-row:span 2;grid-column:span 2}@container (max-width: 375px){.CasinoGamesGridSlider .game-tile-2x2{grid-row:span 2;grid-column:span 2}}.CasinoGamesGridSlider .game-tile-1x2{grid-column:span 2}@container (max-width: 375px){.CasinoGamesGridSlider .game-tile-1x2{grid-column:span 1}}.CasinoGamesGridSlider.GamesListIncreasedGap{gap:28px}.CategoryFilterContainer{display:grid;grid-template-columns:1fr 1fr;gap:20px}@container (max-width: 768px){.CasinoGamesHeader{align-items:unset;flex-direction:row;flex-wrap:wrap}.CategoryName{margin-bottom:20px}.CategoryFilterContainer{width:100%}}@container (min-width: 1100px){.CasinoGamesGrid{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}.SearchLoading{display:block;padding:50px;color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.lds-dual-ring{display:block;width:80px;height:80px;margin:0 auto}.lds-dual-ring:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));border-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));animation:lds-dual-ring 1.2s linear infinite}@keyframes lds-dual-ring{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@container (max-width: 385px){.CasinoGamesGrid{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}.CasinoGamesGrid.GamesListIncreasedGap{gap:16px}.CasinoGamesGridSlider{display:grid;gap:16px !important;grid-template-columns:repeat(auto-fill, minmax(min(100px, 46%), 2fr));grid-template-rows:repeat(auto-fill, 100px);grid-auto-rows:100px;grid-auto-columns:100px;grid-auto-flow:column;overflow-x:auto;overflow-y:hidden;padding-bottom:5px}.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoName{font-size:10px !important}.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoVendor{font-size:10px !important}}@container (max-width: 410px){.CasinoGamesGridSlider{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(100px, 46%), 2fr));grid-template-rows:repeat(auto-fill, 100px);grid-auto-rows:100px;grid-auto-columns:100px;grid-auto-flow:column;overflow-x:auto;overflow-y:hidden;padding-bottom:5px}.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoName{font-size:10px !important}.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoVendor{font-size:10px !important}}@container (max-width: 480px){.CasinoGamesGrid{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}.CasinoGamesGrid.GamesListIncreasedGap{gap:16px}.CasinoGamesGridSlider{display:grid;gap:16px !important;grid-template-columns:repeat(auto-fill, minmax(min(105px, 46%), 2fr));grid-template-rows:repeat(auto-fill, 105px);grid-auto-rows:105px;grid-auto-columns:105px;grid-auto-flow:column;overflow-x:auto;overflow-y:hidden;padding-bottom:5px}.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoName{font-size:10px !important}.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoVendor{font-size:10px !important}}',this.shadowRoot.appendChild(t),Y(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},Sa,_a,a,{categoryindex:43,endpoint:3,datasource:4,lang:5,session:6,userid:7,favorites:8,clientstyling:9,clientstylingurl:10,translationurl:44,currency:11,categoryid:0,categorygames:45,livecasino:12,visiblegames:46,gamepagemodalurl:13,integratedgameframedesktop:14,integratedgameframemobile:15,casinomygames:16,addfilterselector:1,addsortingselector:2,filterbylogo:17,casinogamesgridslider:18,once:47,top:48,bottom:49,left:50,right:51},null,[-1,-1,-1]),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),R()))}static get observedAttributes(){return["categoryindex","endpoint","datasource","lang","session","userid","favorites","clientstyling","clientstylingurl","translationurl","currency","categoryid","categorygames","livecasino","visiblegames","gamepagemodalurl","integratedgameframedesktop","integratedgameframemobile","casinomygames","addfilterselector","addsortingselector","filterbylogo","casinogamesgridslider","once","top","bottom","left","right"]}get categoryindex(){return this.$$.ctx[43]}set categoryindex(e){this.$$set({categoryindex:e}),R()}get endpoint(){return this.$$.ctx[3]}set endpoint(e){this.$$set({endpoint:e}),R()}get datasource(){return this.$$.ctx[4]}set datasource(e){this.$$set({datasource:e}),R()}get lang(){return this.$$.ctx[5]}set lang(e){this.$$set({lang:e}),R()}get session(){return this.$$.ctx[6]}set session(e){this.$$set({session:e}),R()}get userid(){return this.$$.ctx[7]}set userid(e){this.$$set({userid:e}),R()}get favorites(){return this.$$.ctx[8]}set favorites(e){this.$$set({favorites:e}),R()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),R()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),R()}get translationurl(){return this.$$.ctx[44]}set translationurl(e){this.$$set({translationurl:e}),R()}get currency(){return this.$$.ctx[11]}set currency(e){this.$$set({currency:e}),R()}get categoryid(){return this.$$.ctx[0]}set categoryid(e){this.$$set({categoryid:e}),R()}get categorygames(){return this.$$.ctx[45]}set categorygames(e){this.$$set({categorygames:e}),R()}get livecasino(){return this.$$.ctx[12]}set livecasino(e){this.$$set({livecasino:e}),R()}get visiblegames(){return this.$$.ctx[46]}set visiblegames(e){this.$$set({visiblegames:e}),R()}get gamepagemodalurl(){return this.$$.ctx[13]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),R()}get integratedgameframedesktop(){return this.$$.ctx[14]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),R()}get integratedgameframemobile(){return this.$$.ctx[15]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),R()}get casinomygames(){return this.$$.ctx[16]}set casinomygames(e){this.$$set({casinomygames:e}),R()}get addfilterselector(){return this.$$.ctx[1]}set addfilterselector(e){this.$$set({addfilterselector:e}),R()}get addsortingselector(){return this.$$.ctx[2]}set addsortingselector(e){this.$$set({addsortingselector:e}),R()}get filterbylogo(){return this.$$.ctx[17]}set filterbylogo(e){this.$$set({filterbylogo:e}),R()}get casinogamesgridslider(){return this.$$.ctx[18]}set casinogamesgridslider(e){this.$$set({casinogamesgridslider:e}),R()}get once(){return this.$$.ctx[47]}set once(e){this.$$set({once:e}),R()}get top(){return this.$$.ctx[48]}set top(e){this.$$set({top:e}),R()}get bottom(){return this.$$.ctx[49]}set bottom(e){this.$$set({bottom:e}),R()}get left(){return this.$$.ctx[50]}set left(e){this.$$set({left:e}),R()}get right(){return this.$$.ctx[51]}set right(e){this.$$set({right:e}),R()}});class ka extends z{constructor(e){super();const t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-most-played-section{background:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}",this.shadowRoot.appendChild(t),Y(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},Ea,Ca,a,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,clientstyling:6,clientstylingurl:7,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,gamepagemodalurl:11,visiblegames:12,favorites:13,lastPlayedEmpty:18,translationurl:19,casinomygames:14,mostplayedperiod:20,mostplayedrounds:21},null,[-1,-1]),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),R()))}static get observedAttributes(){return["endpoint","datasource","currency","lang","session","userid","clientstyling","clientstylingurl","livecasino","integratedgameframemobile","integratedgameframedesktop","gamepagemodalurl","visiblegames","favorites","lastPlayedEmpty","translationurl","casinomygames","mostplayedperiod","mostplayedrounds"]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),R()}get datasource(){return this.$$.ctx[1]}set datasource(e){this.$$set({datasource:e}),R()}get currency(){return this.$$.ctx[2]}set currency(e){this.$$set({currency:e}),R()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),R()}get session(){return this.$$.ctx[4]}set session(e){this.$$set({session:e}),R()}get userid(){return this.$$.ctx[5]}set userid(e){this.$$set({userid:e}),R()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),R()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),R()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),R()}get integratedgameframemobile(){return this.$$.ctx[9]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),R()}get integratedgameframedesktop(){return this.$$.ctx[10]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),R()}get gamepagemodalurl(){return this.$$.ctx[11]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),R()}get visiblegames(){return this.$$.ctx[12]}set visiblegames(e){this.$$set({visiblegames:e}),R()}get favorites(){return this.$$.ctx[13]}set favorites(e){this.$$set({favorites:e}),R()}get lastPlayedEmpty(){return this.$$.ctx[18]}set lastPlayedEmpty(e){this.$$set({lastPlayedEmpty:e}),R()}get translationurl(){return this.$$.ctx[19]}set translationurl(e){this.$$set({translationurl:e}),R()}get casinomygames(){return this.$$.ctx[14]}set casinomygames(e){this.$$set({casinomygames:e}),R()}get mostplayedperiod(){return this.$$.ctx[20]}set mostplayedperiod(e){this.$$set({mostplayedperiod:e}),R()}get mostplayedrounds(){return this.$$.ctx[21]}set mostplayedrounds(e){this.$$set({mostplayedrounds:e}),R()}}return!customElements.get("casino-most-played-section")&&customElements.define("casino-most-played-section",ka),ka}));
|
1501
|
+
/*div1_binding*/t[22](null)}}}function Ea(e,t,n){let r;u(e,$r,(e=>n(17,r=e)));let{endpoint:i=""}=t,{datasource:a=""}=t,{currency:o=""}=t,{lang:s=""}=t,{session:l=""}=t,{userid:c=""}=t,{clientstyling:d=""}=t,{clientstylingurl:h=""}=t,{livecasino:m="false"}=t,{integratedgameframemobile:f="false"}=t,{integratedgameframedesktop:p="false"}=t,{gamepagemodalurl:g="false"}=t,{visiblegames:y}=t,{favorites:v=""}=t,{lastPlayedEmpty:b=""}=t,{translationurl:w=""}=t,{casinomygames:_="false"}=t,{mostplayedperiod:x="Last30Days"}=t,{mostplayedrounds:S="10"}=t,F=window.navigator.userAgent;Object.keys(Pr).forEach((e=>{Or(e,Pr[e])}));let G,C,E=[],k=!1;const M=()=>{(e=>{let t=new URL(`${i}/v1/player/${c}/games/most-played`);e.limit&&t.searchParams.append("limit",e.limit),e.order&&t.searchParams.append("order",e.order),t.searchParams.append("expand","games"),t.searchParams.append("period",x);let n=e.device;return n?"PC"===n?t.searchParams.append("device","Desktop"):t.searchParams.append("device","Mobile"):t.searchParams.append("device","All"),e.rounds&&t.searchParams.append("rounds",e.rounds),G=m?t:t.href,new Promise(((e,t)=>{fetch(G).then((e=>e.json())).then((t=>{t.items=t.items.filter((e=>{let n=!0;return"OddsMatrix2"==e.gameCode&&(t.count--,n=!1),n})),e(t)})).catch((e=>{console.error(e),t(e)}))}))})({limit:100,device:Ar(F),rounds:S}).then((e=>{if(window.postMessage({type:"GetFavoredGame"},window.location.href),e.count>0){let t=[];e.items.forEach((e=>{let n=new URL(`${i}/v1/casino/games/${e.gameId}`);n.searchParams.append("datasource",a),t.push(fetch(n.href).then((e=>e.json())))})),Promise.all(t).then((e=>{E=e.filter((e=>!("error"in e))).map((e=>e[0])),"true"===_&&(E=E.slice(0,JSON.parse(y))),window.postMessage({type:"MostPlayedData",mostPlayedGames:E},window.location.href)}))}else n(16,k=!0)}))},L=()=>{var e;e=s,hr.set(e)};return e.$$set=e=>{"endpoint"in e&&n(0,i=e.endpoint),"datasource"in e&&n(1,a=e.datasource),"currency"in e&&n(2,o=e.currency),"lang"in e&&n(3,s=e.lang),"session"in e&&n(4,l=e.session),"userid"in e&&n(5,c=e.userid),"clientstyling"in e&&n(6,d=e.clientstyling),"clientstylingurl"in e&&n(7,h=e.clientstylingurl),"livecasino"in e&&n(8,m=e.livecasino),"integratedgameframemobile"in e&&n(9,f=e.integratedgameframemobile),"integratedgameframedesktop"in e&&n(10,p=e.integratedgameframedesktop),"gamepagemodalurl"in e&&n(11,g=e.gamepagemodalurl),"visiblegames"in e&&n(12,y=e.visiblegames),"favorites"in e&&n(13,v=e.favorites),"lastPlayedEmpty"in e&&n(18,b=e.lastPlayedEmpty),"translationurl"in e&&n(19,w=e.translationurl),"casinomygames"in e&&n(14,_=e.casinomygames),"mostplayedperiod"in e&&n(20,x=e.mostplayedperiod),"mostplayedrounds"in e&&n(21,S=e.mostplayedrounds)},e.$$.update=()=>{/*endpoint, userid, lang*/41&e.$$.dirty[0]&&i&&c&&s&&M(),/*clientstyling, customStylingContainer*/32832&e.$$.dirty[0]&&d&&C&&(()=>{let e=document.createElement("style");e.innerHTML=d,C.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/32896&e.$$.dirty[0]&&h&&C&&(()=>{let e=document.createElement("style");fetch(new URL(h)).then((e=>e.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{C.appendChild(e)}),1)}))})(),/*translationurl*/524288&e.$$.dirty[0]&&w&&fetch(w).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Or(t,e[t])}))})).catch((e=>{console.log(e)})),/*lang*/8&e.$$.dirty[0]&&s&&L()},[i,a,o,s,l,c,d,h,m,f,p,g,y,v,_,C,k,r,b,w,x,S,function(e){T[e?"unshift":"push"]((()=>{C=e,n(15,C)}))}]}!customElements.get("casino-games-category-section")&&customElements.define("casino-games-category-section",class extends z{constructor(e){super();const t=document.createElement("style");t.textContent='*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CasinoGamesCategorySectionContainer{container-type:inline-size}.CustomScroll:-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0, 0, 0, 0.3);border-radius:5px;background-color:transparent}.CustomScroll::-webkit-scrollbar{height:5px;background-color:transparent}.CustomScroll::-webkit-scrollbar-thumb{border-radius:5px;height:5px;-webkit-box-shadow:inset 0 0 6px rgba(0, 0, 0, 0.3);background-color:rgba(255, 255, 255, 0.3)}.CategoryName,.StatusText{color:var(--emfe-w-casino-typography, var(--emfe-w-color-contrast, #FFFFFF));font-size:22px;font-weight:500}.CategoryLoadMore{font-size:14px;color:var(--emfe-w-casino-typography, var(--emfe-w-color-contrast, #FFFFFF))}.NoSearchResults{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));text-align:center;width:100%;padding-left:5px;font-size:16px}.NoRecentSearches{padding-bottom:30px}.NoRecentSearchesCenter{text-align:center}.NoFavoriteGames{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));font-size:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 20px;height:20vh}.NoFavoriteGames .NoFavoriteText{text-align:center}.NoFavoriteGames .NoFavoriteTextHighlight{font-weight:600;font-size:18px;padding:15px 0}.NoFavoriteGamesMobile{height:50vh}.SearchWaiting{grid-column:1/-1;color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF));font-size:13px;text-align:center}.CasinoGamesHeader{width:100%;display:flex;align-items:center;justify-content:space-between;padding:8px 0 0;margin-bottom:16px}.CasinoGamesHeader .CategoryNameLink{display:block;cursor:pointer}.CasinoGamesHeader .CategoryLoadMore{font-weight:normal}.CasinoGamesHeader.Searched{justify-content:center}.CasinoGamesContainer{width:100%;margin-top:24px;padding-bottom:16px}.CasinoGamesGrid{display:grid;gap:16px;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}.CasinoGamesGrid .game-tile-2x1{grid-row:span 2}@container (max-width: 375px){.CasinoGamesGrid .game-tile-2x1{grid-row:span 1}}.CasinoGamesGrid .game-tile-2x2{grid-row:span 2;grid-column:span 2}@container (max-width: 375px){.CasinoGamesGrid .game-tile-2x2{grid-row:span 1;grid-column:span 1}}.CasinoGamesGrid .game-tile-1x2{grid-column:span 2}@container (max-width: 375px){.CasinoGamesGrid .game-tile-1x2{grid-column:span 1}}.CasinoGamesGrid.GamesListIncreasedGap{gap:28px}.CasinoGamesGridSlider{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(182px, 46%), 2fr));grid-template-rows:repeat(auto-fill, 182px);grid-auto-rows:182px;grid-auto-columns:182px;grid-auto-flow:column;overflow-x:auto;overflow-y:hidden;padding-bottom:5px}.CasinoGamesGridSlider .game-tile-2x1{grid-row:span 2}@container (max-width: 375px){.CasinoGamesGridSlider .game-tile-2x1{grid-row:span 1}}.CasinoGamesGridSlider .game-tile-2x2{grid-row:span 2;grid-column:span 2}@container (max-width: 375px){.CasinoGamesGridSlider .game-tile-2x2{grid-row:span 2;grid-column:span 2}}.CasinoGamesGridSlider .game-tile-1x2{grid-column:span 2}@container (max-width: 375px){.CasinoGamesGridSlider .game-tile-1x2{grid-column:span 1}}.CasinoGamesGridSlider.GamesListIncreasedGap{gap:28px}.CategoryFilterContainer{display:grid;grid-template-columns:1fr 1fr;gap:20px}@container (max-width: 768px){.CasinoGamesHeader{align-items:unset;flex-direction:row;flex-wrap:wrap}.CategoryName{margin-bottom:20px}.CategoryFilterContainer{width:100%}}@container (min-width: 1100px){.CasinoGamesGrid{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}.SearchLoading{display:block;padding:50px;color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.lds-dual-ring{display:block;width:80px;height:80px;margin:0 auto}.lds-dual-ring:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));border-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C)) transparent var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));animation:lds-dual-ring 1.2s linear infinite}@keyframes lds-dual-ring{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@container (max-width: 385px){.CasinoGamesGrid{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}.CasinoGamesGrid.GamesListIncreasedGap{gap:16px}.CasinoGamesGridSlider{display:grid;gap:16px !important;grid-template-columns:repeat(auto-fill, minmax(min(100px, 46%), 2fr));grid-template-rows:repeat(auto-fill, 100px);grid-auto-rows:100px;grid-auto-columns:100px;grid-auto-flow:column;overflow-x:auto;overflow-y:hidden;padding-bottom:5px}.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoName{font-size:10px !important}.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoVendor{font-size:10px !important}}@container (max-width: 410px){.CasinoGamesGridSlider{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(100px, 46%), 2fr));grid-template-rows:repeat(auto-fill, 100px);grid-auto-rows:100px;grid-auto-columns:100px;grid-auto-flow:column;overflow-x:auto;overflow-y:hidden;padding-bottom:5px}.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoName{font-size:10px !important}.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoVendor{font-size:10px !important}}@container (max-width: 480px){.CasinoGamesGrid{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}.CasinoGamesGrid.GamesListIncreasedGap{gap:16px}.CasinoGamesGridSlider{display:grid;gap:16px !important;grid-template-columns:repeat(auto-fill, minmax(min(105px, 46%), 2fr));grid-template-rows:repeat(auto-fill, 105px);grid-auto-rows:105px;grid-auto-columns:105px;grid-auto-flow:column;overflow-x:auto;overflow-y:hidden;padding-bottom:5px}.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoName{font-size:10px !important}.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoVendor{font-size:10px !important}}',this.shadowRoot.appendChild(t),Y(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},Sa,_a,a,{categoryindex:43,endpoint:3,datasource:4,lang:5,session:6,userid:7,favorites:8,clientstyling:9,clientstylingurl:10,translationurl:44,currency:11,categoryid:0,categorygames:45,livecasino:12,visiblegames:46,gamepagemodalurl:13,integratedgameframedesktop:14,integratedgameframemobile:15,casinomygames:16,addfilterselector:1,addsortingselector:2,filterbylogo:17,casinogamesgridslider:18,once:47,top:48,bottom:49,left:50,right:51},null,[-1,-1,-1]),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),R()))}static get observedAttributes(){return["categoryindex","endpoint","datasource","lang","session","userid","favorites","clientstyling","clientstylingurl","translationurl","currency","categoryid","categorygames","livecasino","visiblegames","gamepagemodalurl","integratedgameframedesktop","integratedgameframemobile","casinomygames","addfilterselector","addsortingselector","filterbylogo","casinogamesgridslider","once","top","bottom","left","right"]}get categoryindex(){return this.$$.ctx[43]}set categoryindex(e){this.$$set({categoryindex:e}),R()}get endpoint(){return this.$$.ctx[3]}set endpoint(e){this.$$set({endpoint:e}),R()}get datasource(){return this.$$.ctx[4]}set datasource(e){this.$$set({datasource:e}),R()}get lang(){return this.$$.ctx[5]}set lang(e){this.$$set({lang:e}),R()}get session(){return this.$$.ctx[6]}set session(e){this.$$set({session:e}),R()}get userid(){return this.$$.ctx[7]}set userid(e){this.$$set({userid:e}),R()}get favorites(){return this.$$.ctx[8]}set favorites(e){this.$$set({favorites:e}),R()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),R()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),R()}get translationurl(){return this.$$.ctx[44]}set translationurl(e){this.$$set({translationurl:e}),R()}get currency(){return this.$$.ctx[11]}set currency(e){this.$$set({currency:e}),R()}get categoryid(){return this.$$.ctx[0]}set categoryid(e){this.$$set({categoryid:e}),R()}get categorygames(){return this.$$.ctx[45]}set categorygames(e){this.$$set({categorygames:e}),R()}get livecasino(){return this.$$.ctx[12]}set livecasino(e){this.$$set({livecasino:e}),R()}get visiblegames(){return this.$$.ctx[46]}set visiblegames(e){this.$$set({visiblegames:e}),R()}get gamepagemodalurl(){return this.$$.ctx[13]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),R()}get integratedgameframedesktop(){return this.$$.ctx[14]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),R()}get integratedgameframemobile(){return this.$$.ctx[15]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),R()}get casinomygames(){return this.$$.ctx[16]}set casinomygames(e){this.$$set({casinomygames:e}),R()}get addfilterselector(){return this.$$.ctx[1]}set addfilterselector(e){this.$$set({addfilterselector:e}),R()}get addsortingselector(){return this.$$.ctx[2]}set addsortingselector(e){this.$$set({addsortingselector:e}),R()}get filterbylogo(){return this.$$.ctx[17]}set filterbylogo(e){this.$$set({filterbylogo:e}),R()}get casinogamesgridslider(){return this.$$.ctx[18]}set casinogamesgridslider(e){this.$$set({casinogamesgridslider:e}),R()}get once(){return this.$$.ctx[47]}set once(e){this.$$set({once:e}),R()}get top(){return this.$$.ctx[48]}set top(e){this.$$set({top:e}),R()}get bottom(){return this.$$.ctx[49]}set bottom(e){this.$$set({bottom:e}),R()}get left(){return this.$$.ctx[50]}set left(e){this.$$set({left:e}),R()}get right(){return this.$$.ctx[51]}set right(e){this.$$set({right:e}),R()}});class ka extends z{constructor(e){super();const t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.casino-most-played-section{background:var(--emfe-w-casino-color-bg, var(--emfe-w-color-background, #07072A));color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}",this.shadowRoot.appendChild(t),Y(this,{target:this.shadowRoot,props:G(this.attributes),customElement:!0},Ea,Ca,a,{endpoint:0,datasource:1,currency:2,lang:3,session:4,userid:5,clientstyling:6,clientstylingurl:7,livecasino:8,integratedgameframemobile:9,integratedgameframedesktop:10,gamepagemodalurl:11,visiblegames:12,favorites:13,lastPlayedEmpty:18,translationurl:19,casinomygames:14,mostplayedperiod:20,mostplayedrounds:21},null,[-1,-1]),e&&(e.target&&h(e.target,this,e.anchor),e.props&&(this.$set(e.props),R()))}static get observedAttributes(){return["endpoint","datasource","currency","lang","session","userid","clientstyling","clientstylingurl","livecasino","integratedgameframemobile","integratedgameframedesktop","gamepagemodalurl","visiblegames","favorites","lastPlayedEmpty","translationurl","casinomygames","mostplayedperiod","mostplayedrounds"]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),R()}get datasource(){return this.$$.ctx[1]}set datasource(e){this.$$set({datasource:e}),R()}get currency(){return this.$$.ctx[2]}set currency(e){this.$$set({currency:e}),R()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),R()}get session(){return this.$$.ctx[4]}set session(e){this.$$set({session:e}),R()}get userid(){return this.$$.ctx[5]}set userid(e){this.$$set({userid:e}),R()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(e){this.$$set({clientstyling:e}),R()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),R()}get livecasino(){return this.$$.ctx[8]}set livecasino(e){this.$$set({livecasino:e}),R()}get integratedgameframemobile(){return this.$$.ctx[9]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),R()}get integratedgameframedesktop(){return this.$$.ctx[10]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),R()}get gamepagemodalurl(){return this.$$.ctx[11]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),R()}get visiblegames(){return this.$$.ctx[12]}set visiblegames(e){this.$$set({visiblegames:e}),R()}get favorites(){return this.$$.ctx[13]}set favorites(e){this.$$set({favorites:e}),R()}get lastPlayedEmpty(){return this.$$.ctx[18]}set lastPlayedEmpty(e){this.$$set({lastPlayedEmpty:e}),R()}get translationurl(){return this.$$.ctx[19]}set translationurl(e){this.$$set({translationurl:e}),R()}get casinomygames(){return this.$$.ctx[14]}set casinomygames(e){this.$$set({casinomygames:e}),R()}get mostplayedperiod(){return this.$$.ctx[20]}set mostplayedperiod(e){this.$$set({mostplayedperiod:e}),R()}get mostplayedrounds(){return this.$$.ctx[21]}set mostplayedrounds(e){this.$$set({mostplayedrounds:e}),R()}}return!customElements.get("casino-most-played-section")&&customElements.define("casino-most-played-section",ka),ka}));
|
1502
1502
|
//# sourceMappingURL=casino-most-played-section.js.map
|