@everymatrix/casino-navigation-search 1.17.3 → 1.17.4
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.
|
@@ -1298,7 +1298,7 @@ return 65541&t[0]&&(L=null),/*gamefavorite, isLoggedIn, favorites*/65541&t[0]&&(
|
|
|
1298
1298
|
// Case mobile
|
|
1299
1299
|
Fr(ce)&&"true"==ie?window.postMessage({type:"OpenGameFrame",gameId:e,gamefunmode:z,gamepagemodalurl:q,isMobile:Fr(ce),source:"GameThumbnail",identifier:"Lobby"},window.location.href):Fr(ce)&&"false"==ie&&window.postMessage({type:"ShowGameModal",gameId:e,isMobile:Fr(ce)},window.location.href),
|
|
1300
1300
|
// Case desktop
|
|
1301
|
-
Fr(ce)||"true"!=re?Fr(ce)||"false"!=re||window.postMessage({type:"ShowGameModal",gameId:e,isMobile:Fr(ce)},window.location.href):window.postMessage({type:"OpenGameFrame",gameId:e,gamefunmode:z,gamepagemodalurl:q,isMobile:Fr(ce),identifier:"Lobby"},window.location.href)},_e=e=>{let t="thumbnail";W?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=I,on.set(e)},Se=()=>{ee&&EventSource&&!l&&U&&Y&&(l=new EventSource(`${Q}/
|
|
1301
|
+
Fr(ce)||"true"!=re?Fr(ce)||"false"!=re||window.postMessage({type:"ShowGameModal",gameId:e,isMobile:Fr(ce)},window.location.href):window.postMessage({type:"OpenGameFrame",gameId:e,gamefunmode:z,gamepagemodalurl:q,isMobile:Fr(ce),identifier:"Lobby"},window.location.href)},_e=e=>{let t="thumbnail";W?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=I,on.set(e)},Se=()=>{ee&&EventSource&&!l&&U&&Y&&(l=new EventSource(`${Q}/encoder/lobby/updates/${U}/${Y}`),l.addEventListener("message",Ce))},Ee=()=>{l&&(l.close(),l=void 0)},Ce=async e=>{const{type:t,data:r}=e;let i;if("message"===t){if(r)try{i=JSON.parse(r)}catch(e){
|
|
1302
1302
|
// eslint-disable-next-line no-console
|
|
1303
1303
|
console.error("MESSAGE PARSING ERROR: ",e)}if(i){const{InternalTableId:e,MessageType:t,Results:// TakenSeats,
|
|
1304
1304
|
r,Seats:// Roads, // for baccarat
|
|
@@ -1335,9 +1335,9 @@ return e[14]?vi:yi}let D=I(t),F=D(t);return{c(){n=m("div"),i=m("div"),a=m("div")
|
|
|
1335
1335
|
/*input_binding*/t[29](s),h(i,c),h(i,u),h(u,p),h(p,b),h(i,C),h(i,T),h(T,L),h(n,G),F.m(n,null),
|
|
1336
1336
|
/*div2_binding*/t[32](n),P||(O=[w(s,"input",/*input_input_handler*/t[28]),w(s,"focus",/*onFocus*/t[19]),w(u,"click",/*click_handler*/t[30]),w(T,"click",/*click_handler_1*/t[31])],P=!0)},p(e,t){/*$_*/131072&t[0]&&l!==(l=/*$_*/e[17]("placeHolderSearchGames"))&&_(s,"placeholder",l),/*searchValue*/256&t[0]&&s.value!==/*searchValue*/e[8]&&E(s,/*searchValue*/e[8]),/*searchValue*/256&t[0]&&x!==(x="SearchClearButton "+(/*searchValue*/0!=e[8].length?"":"NotVisible"))&&_(u,"class",x),/*$_*/131072&t[0]&&M!==(M=/*$_*/e[17]("cancel")+"")&&S(L,M),/*searchCancelled*/512&t[0]&&$!==($="SearchCancelButton "+(/*searchCancelled*/e[9]?"NotVisible":""))&&_(T,"class",$),/*searchCancelled*/512&t[0]&&k!==(k="Search "+(/*searchCancelled*/e[9]?"":"SearchAnimation"))&&_(i,"class",k),D===(D=I(e))&&F?F.p(e,t):(F.d(1),F=D(e),F&&(F.c(),F.m(n,null)))},i:e,o:e,d(e){e&&f(n)
|
|
1337
1337
|
/*input_binding*/,t[29](null),F.d(),
|
|
1338
|
-
/*div2_binding*/t[32](null),P=!1,r(O)}}}!customElements.get("casino-game-thumbnail")&&customElements.define("casino-game-thumbnail",class extends V{constructor(e){super();const t=document.createElement("style");t.textContent='*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GameContainer{width:100%;height:100%;position:relative}.GameInnerContainer{position:relative;width:100%;height:100%;overflow:hidden;border-radius:5px}.GameInnerContainer .GameBg{width:100%;height:100%;object-fit:unset;transition:all 150ms ease-in-out}.GameInnerContainer .GameBg.GameBg-1x2,.GameInnerContainer .GameBg.GameBg-2x1,.GameInnerContainer .GameBg.GameBg-2x2{object-fit:cover}.GameInnerContainer .GameInfoWrapper{display:none;position:absolute;width:100%;height:100%;top:0;right:0;bottom:0;left:0;background:rgba(0, 0, 0, 0.65);z-index:15}.GameInnerContainer .GameInfoWrapper .GameInfo{display:flex;width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center}.GameInnerContainer .GameInfoWrapper .GameInfoName{color:white;margin-bottom:10px;text-align:center;font-size:14px}.GameInnerContainer .GameInfoWrapper .GameInfoBtn{appearance:none;padding:6px;background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));font-size:16px;border:2px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));border-radius:5px;cursor:pointer;transition:border 150ms ease-in-out}.GameInnerContainer .GameInfoWrapper .GameInfoBtn:hover{border:2px solid var(--emfe-w-color-primary-100, #F1BED9)}.GameInnerContainer .GameInfoWrapper .GameInfoVendor{display:block;position:absolute;bottom:8px;right:8px;color:white;font-size:12px;font-weight:normal}.GameInnerContainer .GameExtraInfo{display:block;position:absolute;width:100%;height:100%;top:8px;left:8px;z-index:0}.GameInnerContainer .GameExtraInfoLabel{font-size:11px;padding:3px;background-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));font-weight:bold;text-transform:uppercase;border-radius:5px}.GameInnerContainer:hover,.GameInnerContainer:active{cursor:pointer}.GameInnerContainer:hover .GameInfoWrapper,.GameInnerContainer:active .GameInfoWrapper{display:block}.GameInnerContainer:hover .GameBg,.GameInnerContainer:active .GameBg{filter:blur(5px) grayscale(1)}.GameNameBelow{color:var(--emfe-w-color-white, #FFFFFF);position:relative;bottom:-5px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.FavoredIcon,.UnfavoredIcon{width:20px;height:20px}.FavIconContainer{position:absolute;top:10px;right:10px;cursor:pointer;z-index:15}@media(min-width: 1100px){.GamesWrapper .ListGame:hover .GamePlayNowText{z-index:4}}.ListGame:hover .OpenSeat,.ListGame:hover .ClosedSeat,.ListGame:hover .LiveLimits,.ListGame:hover .LatestResult,.ListGame:hover .FullTable,.ListGame:active .OpenSeat,.ListGame:active .ClosedSeat,.ListGame:active .LiveLimits,.ListGame:active .LatestResult,.ListGame:active .FullTable{opacity:0.2}.ListGame.GameBackdrop .GameInnerContainer::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(0deg, rgb(0, 0, 0) 15%, rgba(0, 0, 0, 0) 100%)}.ListGame .GameInnerContainer{z-index:0}.ListGame .GameInnerContainer .GameBg{z-index:5}.ListGame .GameInnerContainer .GameExtraInfo{z-index:10}.ListGame .GameInnerContainer::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0}.ListGame .GameInnerContainer.GameInnerContainerUnavailable::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:rgba(0, 0, 0, 0.9)}.ListGame .GameInnerContainer .ListGame.GameContainerDimmed:before{display:block;content:" ";width:100%;height:100%;position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;background:rgba(0, 0, 0, 0.4);color:var(--emfe-w-color-white, #FFFFFF);fill:var(--emfe-w-color-white, #FFFFFF);opacity:1;border-radius:4px}.ListGame .GameInnerContainer .ListGame.GameContainerFullyDimmed:before{display:block;content:" ";width:100%;height:100%;position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;background:rgba(0, 0, 0, 0.8);color:var(--emfe-w-color-white, #FFFFFF);fill:var(--emfe-w-color-white, #FFFFFF);opacity:1;border-radius:4px}.ListGame .GameInnerContainer .LiveProps{display:flex;flex-direction:column;position:absolute;bottom:8px;left:-8px;right:0;width:100%;padding:0;background:linear-gradient(to top, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.3) 80%, rgba(0, 0, 0, 0.99) 100%);color:var(--emfe-w-color-white, #FFFFFF);opacity:1;font-size:14px}.ListGame .GameInnerContainer .ListGame:hover .LiveProps,.ListGame .GameInnerContainer .ListGameLink:hover .LiveProps{opacity:0}@keyframes red-pulse{0%{box-shadow:0 0 2px 0 rgba(255, 0, 0, 0.75)}15%{box-shadow:0 0 10px 2px rgba(255, 0, 0, 0.75)}30%{box-shadow:0 0 2px 0 rgba(255, 0, 0, 0.75)}50%{box-shadow:0 0 10px 2px rgba(255, 0, 0, 0.75)}65%{box-shadow:0 0 2px 0 rgba(255, 0, 0, 0.75)}80%{box-shadow:0 0 10px 2px rgba(255, 0, 0, 0.75)}100%{box-shadow:0 0 0 0 rgba(255, 0, 0, 0.75)}}@keyframes green-pulse{0%{box-shadow:0 0 2px 0 rgba(86, 168, 10, 0.75)}15%{box-shadow:0 0 10px 2px rgba(86, 168, 10, 0.75)}30%{box-shadow:0 0 2px 0 rgba(86, 168, 10, 0.75)}50%{box-shadow:0 0 10px 2px rgba(86, 168, 10, 0.75)}65%{box-shadow:0 0 2px 0 rgba(86, 168, 10, 0.75)}80%{box-shadow:0 0 10px 2px rgba(86, 168, 10, 0.75)}100%{box-shadow:0 0 0 0 rgba(86, 168, 10, 0.75)}}@keyframes flip-open{0%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 90deg);transform:perspective(400px) rotate3d(0, 1, 0, 90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -20deg);transform:perspective(400px) rotate3d(0, 1, 0, -20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 10deg);transform:perspective(400px) rotate3d(0, 1, 0, 10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -5deg);transform:perspective(400px) rotate3d(0, 1, 0, -5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}.ListGame .GameInnerContainer .silde-in-from-left{-webkit-animation-name:silde-in-from-left;animation-name:silde-in-from-left;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}@-webkit-keyframes silde-in-from-left{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%);visibility:visible}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes silde-in-from-left{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%);visibility:visible}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes flip-closed-seat{0%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 90deg);transform:perspective(400px) rotate3d(0, 1, 0, 90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -20deg);transform:perspective(400px) rotate3d(0, 1, 0, -20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 10deg);transform:perspective(400px) rotate3d(0, 1, 0, 10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -5deg);transform:perspective(400px) rotate3d(0, 1, 0, -5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}.ListGame .GameInnerContainer .ListGame.PulsatingGreenShadow,.ListGame .GameInnerContainer .ListGame.PulsatingRedShadow{overflow:auto}.ListGame .GameInnerContainer .ListGame.PulsatingGreenShadow{animation:green-pulse 2s linear}.ListGame .GameInnerContainer .ListGame.PulsatingRedShadow{animation:red-pulse 2s linear}.ListGame .GameInnerContainer .LiveIcons{position:relative;display:flex;padding:0 16px;box-sizing:border-box;flex-direction:row;align-items:center;justify-content:flex-start;min-height:auto;margin-bottom:5px}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveIcons{min-height:auto}}.ListGame .GameInnerContainer .LiveIcons:first-child{margin-left:0}.ListGame .GameInnerContainer .LiveIcons:last-child{margin-right:0}.ListGame .GameInnerContainer .LiveIcons.Black,.ListGame .GameInnerContainer .LiveIcons.Red,.ListGame .GameInnerContainer .LiveIcons.Green{color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .LatestResult{min-width:12px;padding:2px;margin:0 1px;margin-right:6px;font-size:14px;text-align:center}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveIcons .LatestResult{min-width:12px;font-size:14px;margin:0 2px;margin-right:5px;padding:2px}}.ListGame .GameInnerContainer .LiveIcons .LatestResult.FirstElementAnimated{animation:flip-open 2s both;-webkit-animation:flip-open 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First{min-width:24px;padding:4px}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Black,.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Red,.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Green{color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Black{background:var(--emfe-w-color-black, #000000)}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Red{background:red}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Green{background:#56A80A}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveIcons .LatestResult.First{padding:4px}}.ListGame .GameInnerContainer .LiveIcons .Double{display:flex;flex-direction:column}.ListGame .GameInnerContainer .LiveIcons .Double .LatestResult:first-child{margin-bottom:10px}.ListGame .GameInnerContainer .LiveIcons .Double:first-child .LatestResult{margin-left:0;margin-bottom:0}.ListGame .GameInnerContainer .LiveIcons .Double:last-child .LatestResult{margin-right:0}.ListGame .GameInnerContainer .LiveIcons .Black,.ListGame .GameInnerContainer .LiveIcons .Red,.ListGame .GameInnerContainer .LiveIcons .Green{background-color:transparent}.ListGame .GameInnerContainer .LiveIcons .Black{color:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .Red{color:red}.ListGame .GameInnerContainer .LiveIcons .Green{color:#56A80A}.ListGame .GameInnerContainer .Blue{color:#4d90a7}.ListGame .GameInnerContainer .Red{background-color:red}.ListGame .GameInnerContainer .Black{background-color:var(--emfe-w-color-black, #000000)}.ListGame .GameInnerContainer .Green{background-color:#56A80A}.ListGame .GameInnerContainer .White{background-color:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .Yellow{background-color:#eeca3d}.ListGame .GameInnerContainer .Gold{background-color:#866d0c}.ListGame .GameInnerContainer .Orange{background-color:#574708}.ListGame .GameInnerContainer .Purple{background-color:#330033}.ListGame .GameInnerContainer .Tie{background-color:var(--emfe-w-color-white, #FFFFFF);background-image:linear-gradient(135deg, var(--emfe-w-color-white, #FFFFFF) 25%, transparent 25%, transparent 50%, #212121 50%, var(--emfe-w-color-white, #FFFFFF) 75%, transparent 75%, var(--emfe-w-color-white, #FFFFFF))}.ListGame .GameInnerContainer .OpenSeat,.ListGame .GameInnerContainer .ClosedSeat{display:inline-block;width:16px;height:16px;margin-right:4px}@media(min-width: 768px){.ListGame .GameInnerContainer .OpenSeat,.ListGame .GameInnerContainer .ClosedSeat{width:16px;height:16px}}@media(min-width: 1100px){.ListGame .GameInnerContainer .OpenSeat,.ListGame .GameInnerContainer .ClosedSeat{width:16px;height:16px}}.ListGame .GameInnerContainer .OpenSeat svg,.ListGame .GameInnerContainer .ClosedSeat svg{width:100%;height:100%}.ListGame .GameInnerContainer .OpenSeat{animation:flip-closed-seat 2s both;-webkit-animation:flip-closed-seat 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.ListGame .GameInnerContainer .ClosedSeat{animation:flip-open 2s both;-webkit-animation:flip-open 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.ListGame .GameInnerContainer .OpenSeat svg{fill:transparent;stroke:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .ClosedSeat svg{fill:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .FullTable{display:flex;position:relative;z-index:10;height:20px;padding:1px 4px 1px 0;align-items:center;border-radius:3px;font-size:12px;white-space:normal;text-transform:uppercase;-webkit-animation-name:silde-in-from-left;animation-name:silde-in-from-left;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.ListGame .GameInnerContainer .FullTable svg{width:100%;height:100%;fill:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .FullTable.ClosedSeat{margin-right:-3px}.ListGame .GameInnerContainer .PlayersDisplay{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;padding:2px 10px;background:linear-gradient(to bottom, rgba(33, 33, 33, 0.9) 0%, rgba(33, 33, 33, 0.1) 100%);color:var(--emfe-w-color-white, #FFFFFF)}@media(min-width: 1100px){.ListGame .GameInnerContainer .PlayersDisplay{padding:2px 16px}}.ListGame .GameInnerContainer .PlayersDisplay .PlayersIcon{width:14px;height:14px;margin-right:4px}.ListGame .GameInnerContainer .PlayersDisplay .PlayersIcon svg{fill:var(--emfe-w-color-white, #FFFFFF);width:100%;height:100%}.ListGame .GameInnerContainer .ClosedGame{opacity:1;z-index:10;padding:8px 10px;color:var(--emfe-w-color-white, #FFFFFF);font-size:18px}@media(min-width: 1100px){.ListGame .GameInnerContainer .ClosedGame{padding:8px 16px}}.ListGame .GameInnerContainer .ClosedGame span{font-size:18px}.ListGame .GameInnerContainer .LiveLimits{opacity:1;display:flex;flex-direction:row;justify-content:space-between;padding:2px 20px 5px 20px;background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-color-white, #FFFFFF);font-weight:normal;font-size:12px}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveLimits{padding:2px 18px 5px 18px}}.ListGame .GameInnerContainer .LiveLimits span{font-size:12px}.ListGame .GameInnerContainer .Players{display:inline-block;width:19px;height:19px}.LoaderRipple{width:80px;height:80px;position:absolute;top:40px;left:-8px}.LoaderRipple div{position:absolute;border:4px solid #fff;opacity:1;border-radius:50%;animation:ripple-effect 1s cubic-bezier(0, 0.2, 0.8, 1) infinite}.LoaderRipple div:nth-child(2){animation-delay:-0.5s}@keyframes ripple-effect{0%{top:36px;left:36px;width:0;height:0;opacity:0}4.9%{top:36px;left:36px;width:0;height:0;opacity:0}5%{top:36px;left:36px;width:0;height:0;opacity:1}100%{top:0px;left:0px;width:72px;height:72px;opacity:0}}@container (max-width: 375px){.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoName{margin-bottom:5px;font-size:12px}.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoBtn{font-size:14px;padding:4px}.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoVendor{font-size:10px}}@container (max-width: 410px){.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoName{font-size:12px;margin-bottom:5px}.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoBtn{font-size:14px;padding:4px}.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoVendor{font-size:10px}}@container (max-width: 480px){.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoName{font-size:12px;margin-bottom:5px}.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoBtn{font-size:14px;padding:4px}.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoVendor{font-size:10px}}',this.shadowRoot.appendChild(t),j(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},mi,ui,a,{session:44,userid:45,lang:1,clientstyling:46,clientstylingurl:47,translationurl:48,favorites:2,gamethumbnail:3,gamename:4,gamevendor:5,gameid:6,gameisnew:7,gametag:8,gamefunmode:49,gamefavorite:0,gamecellsize:9,showfavoredcategory:50,showgamename:10,currency:51,gamepagemodalurl:52,endpoint:53,livelobbyendpoint:54,connectlive:55,visibilityconnect:56,integratedgameframedesktop:57,integratedgameframemobile:58,casinogamesgridslider:11,MONEY_WHEEL_COLOR_MAP:59,ROULETTE_COLOR_MAP:60},null,[-1,-1,-1,-1]),e&&(e.target&&d(e.target,this,e.anchor),e.props&&(this.$set(e.props),H()))}static get observedAttributes(){return["session","userid","lang","clientstyling","clientstylingurl","translationurl","favorites","gamethumbnail","gamename","gamevendor","gameid","gameisnew","gametag","gamefunmode","gamefavorite","gamecellsize","showfavoredcategory","showgamename","currency","gamepagemodalurl","endpoint","livelobbyendpoint","connectlive","visibilityconnect","integratedgameframedesktop","integratedgameframemobile","casinogamesgridslider","MONEY_WHEEL_COLOR_MAP","ROULETTE_COLOR_MAP"]}get session(){return this.$$.ctx[44]}set session(e){this.$$set({session:e}),H()}get userid(){return this.$$.ctx[45]}set userid(e){this.$$set({userid:e}),H()}get lang(){return this.$$.ctx[1]}set lang(e){this.$$set({lang:e}),H()}get clientstyling(){return this.$$.ctx[46]}set clientstyling(e){this.$$set({clientstyling:e}),H()}get clientstylingurl(){return this.$$.ctx[47]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),H()}get translationurl(){return this.$$.ctx[48]}set translationurl(e){this.$$set({translationurl:e}),H()}get favorites(){return this.$$.ctx[2]}set favorites(e){this.$$set({favorites:e}),H()}get gamethumbnail(){return this.$$.ctx[3]}set gamethumbnail(e){this.$$set({gamethumbnail:e}),H()}get gamename(){return this.$$.ctx[4]}set gamename(e){this.$$set({gamename:e}),H()}get gamevendor(){return this.$$.ctx[5]}set gamevendor(e){this.$$set({gamevendor:e}),H()}get gameid(){return this.$$.ctx[6]}set gameid(e){this.$$set({gameid:e}),H()}get gameisnew(){return this.$$.ctx[7]}set gameisnew(e){this.$$set({gameisnew:e}),H()}get gametag(){return this.$$.ctx[8]}set gametag(e){this.$$set({gametag:e}),H()}get gamefunmode(){return this.$$.ctx[49]}set gamefunmode(e){this.$$set({gamefunmode:e}),H()}get gamefavorite(){return this.$$.ctx[0]}set gamefavorite(e){this.$$set({gamefavorite:e}),H()}get gamecellsize(){return this.$$.ctx[9]}set gamecellsize(e){this.$$set({gamecellsize:e}),H()}get showfavoredcategory(){return this.$$.ctx[50]}set showfavoredcategory(e){this.$$set({showfavoredcategory:e}),H()}get showgamename(){return this.$$.ctx[10]}set showgamename(e){this.$$set({showgamename:e}),H()}get currency(){return this.$$.ctx[51]}set currency(e){this.$$set({currency:e}),H()}get gamepagemodalurl(){return this.$$.ctx[52]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),H()}get endpoint(){return this.$$.ctx[53]}set endpoint(e){this.$$set({endpoint:e}),H()}get livelobbyendpoint(){return this.$$.ctx[54]}set livelobbyendpoint(e){this.$$set({livelobbyendpoint:e}),H()}get connectlive(){return this.$$.ctx[55]}set connectlive(e){this.$$set({connectlive:e}),H()}get visibilityconnect(){return this.$$.ctx[56]}set visibilityconnect(e){this.$$set({visibilityconnect:e}),H()}get integratedgameframedesktop(){return this.$$.ctx[57]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),H()}get integratedgameframemobile(){return this.$$.ctx[58]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),H()}get casinogamesgridslider(){return this.$$.ctx[11]}set casinogamesgridslider(e){this.$$set({casinogamesgridslider:e}),H()}get MONEY_WHEEL_COLOR_MAP(){return this.$$.ctx[59]}get ROULETTE_COLOR_MAP(){return this.$$.ctx[60]}});let Ti=50;function Li(e,t,n){let r;u(e,Tn,(e=>n(17,r=e)));let i,a,o,s,{endpoint:l=""}=t,{datasource:c=""}=t,{session:h=""}=t,{userid:d=""}=t,{lang:f="en"}=t,{clientstyling:p=""}=t,{clientstylingurl:m=""}=t,{integratedgameframedesktop:g="false"}=t,{integratedgameframemobile:y="false"}=t,{gamepagemodalurl:v="true"}=t,{translationurl:b=""}=t,{showfavorites:w=""}=t,_=window.navigator.userAgent,x=[],S=[],E={},C="",T=!0,L=!1,k=!1,P=!1,O=[];Object.keys($n).forEach((e=>{Ln(e,$n[e])}));const M=e=>{e.data&&"SearchedItemClicked"==e.data.type&&R(e.data.gameId),"UserSessionID"==e.data.type&&(n(15,o=e.data.session),n(16,s=e.data.userid),n(27,P=!0)),"CategoryChange"==e.data.type&&A()},I=()=>{if(n(9,T=!1),n(13,L=!0),l&&c&&f&&C.length<2){n(11,x=[]);let e=localStorage.getItem("searchedGamesWds_casino"),t=[];e&&(t=e.split(","));let r=[],i=0,a=t.length;if(a>0){for(i=0;i<a;i++){let e=new URL(`${l}/v1/casino/games/${t[i]}`);e.searchParams.append("language",f),e.searchParams.append("datasource",c),e.searchParams.append("platform",Rr(_)),r.push(D(e,t[i]))}Promise.all(r).then((e=>{e=e.filter((function(e){return!!e})),n(11,x=e.map((e=>(e.isFavorite=F(e.id),e))))}))}}H(L),
|
|
1338
|
+
/*div2_binding*/t[32](null),P=!1,r(O)}}}!customElements.get("casino-game-thumbnail")&&customElements.define("casino-game-thumbnail",class extends V{constructor(e){super();const t=document.createElement("style");t.textContent='*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GameContainer{width:100%;height:100%;position:relative}.GameInnerContainer{position:relative;width:100%;height:100%;overflow:hidden;border-radius:5px}.GameInnerContainer .GameBg{width:100%;height:100%;object-fit:unset;transition:all 150ms ease-in-out}.GameInnerContainer .GameBg.GameBg-1x2,.GameInnerContainer .GameBg.GameBg-2x1,.GameInnerContainer .GameBg.GameBg-2x2{object-fit:cover}.GameInnerContainer .GameInfoWrapper{display:none;position:absolute;width:100%;height:100%;top:0;right:0;bottom:0;left:0;background:rgba(0, 0, 0, 0.65);z-index:15}.GameInnerContainer .GameInfoWrapper .GameInfo{display:flex;width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center}.GameInnerContainer .GameInfoWrapper .GameInfoName{color:white;margin-bottom:10px;text-align:center;font-size:14px}.GameInnerContainer .GameInfoWrapper .GameInfoBtn{appearance:none;padding:6px;background:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));font-size:16px;border:2px solid var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));border-radius:5px;cursor:pointer;transition:border 150ms ease-in-out}.GameInnerContainer .GameInfoWrapper .GameInfoBtn:hover{border:2px solid var(--emfe-w-color-primary-100, #F1BED9)}.GameInnerContainer .GameInfoWrapper .GameInfoVendor{display:block;position:absolute;bottom:8px;right:8px;color:white;font-size:12px;font-weight:normal}.GameInnerContainer .GameExtraInfo{display:block;position:absolute;width:100%;height:100%;top:8px;left:8px;z-index:0}.GameInnerContainer .GameExtraInfoLabel{font-size:11px;padding:3px;background-color:var(--emfe-w-casino-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF));font-weight:bold;text-transform:uppercase;border-radius:5px}.GameInnerContainer:hover,.GameInnerContainer:active{cursor:pointer}.GameInnerContainer:hover .GameInfoWrapper,.GameInnerContainer:active .GameInfoWrapper{display:block}.GameInnerContainer:hover .GameBg,.GameInnerContainer:active .GameBg{filter:blur(5px) grayscale(1)}.GameNameBelow{color:var(--emfe-w-color-white, #FFFFFF);position:relative;bottom:-5px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.FavoredIcon,.UnfavoredIcon{width:20px;height:20px}.FavIconContainer{position:absolute;top:10px;right:10px;cursor:pointer;z-index:15}@media(min-width: 1100px){.GamesWrapper .ListGame:hover .GamePlayNowText{z-index:4}}.ListGame:hover .OpenSeat,.ListGame:hover .ClosedSeat,.ListGame:hover .LiveLimits,.ListGame:hover .LatestResult,.ListGame:hover .FullTable,.ListGame:active .OpenSeat,.ListGame:active .ClosedSeat,.ListGame:active .LiveLimits,.ListGame:active .LatestResult,.ListGame:active .FullTable{opacity:0.2}.ListGame.GameBackdrop .GameInnerContainer::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(0deg, rgb(0, 0, 0) 15%, rgba(0, 0, 0, 0) 100%)}.ListGame .GameInnerContainer{z-index:0}.ListGame .GameInnerContainer .GameBg{z-index:5}.ListGame .GameInnerContainer .GameExtraInfo{z-index:10}.ListGame .GameInnerContainer::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0}.ListGame .GameInnerContainer.GameInnerContainerUnavailable::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:rgba(0, 0, 0, 0.9)}.ListGame .GameInnerContainer .ListGame.GameContainerDimmed:before{display:block;content:" ";width:100%;height:100%;position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;background:rgba(0, 0, 0, 0.4);color:var(--emfe-w-color-white, #FFFFFF);fill:var(--emfe-w-color-white, #FFFFFF);opacity:1;border-radius:4px}.ListGame .GameInnerContainer .ListGame.GameContainerFullyDimmed:before{display:block;content:" ";width:100%;height:100%;position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;background:rgba(0, 0, 0, 0.8);color:var(--emfe-w-color-white, #FFFFFF);fill:var(--emfe-w-color-white, #FFFFFF);opacity:1;border-radius:4px}.ListGame .GameInnerContainer .LiveProps{display:flex;flex-direction:column;position:absolute;bottom:8px;left:-8px;right:0;width:100%;padding:0;background:linear-gradient(to top, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.3) 80%, rgba(0, 0, 0, 0.99) 100%);color:var(--emfe-w-color-white, #FFFFFF);opacity:1;font-size:14px}.ListGame .GameInnerContainer .ListGame:hover .LiveProps,.ListGame .GameInnerContainer .ListGameLink:hover .LiveProps{opacity:0}@keyframes red-pulse{0%{box-shadow:0 0 2px 0 rgba(255, 0, 0, 0.75)}15%{box-shadow:0 0 10px 2px rgba(255, 0, 0, 0.75)}30%{box-shadow:0 0 2px 0 rgba(255, 0, 0, 0.75)}50%{box-shadow:0 0 10px 2px rgba(255, 0, 0, 0.75)}65%{box-shadow:0 0 2px 0 rgba(255, 0, 0, 0.75)}80%{box-shadow:0 0 10px 2px rgba(255, 0, 0, 0.75)}100%{box-shadow:0 0 0 0 rgba(255, 0, 0, 0.75)}}@keyframes green-pulse{0%{box-shadow:0 0 2px 0 rgba(86, 168, 10, 0.75)}15%{box-shadow:0 0 10px 2px rgba(86, 168, 10, 0.75)}30%{box-shadow:0 0 2px 0 rgba(86, 168, 10, 0.75)}50%{box-shadow:0 0 10px 2px rgba(86, 168, 10, 0.75)}65%{box-shadow:0 0 2px 0 rgba(86, 168, 10, 0.75)}80%{box-shadow:0 0 10px 2px rgba(86, 168, 10, 0.75)}100%{box-shadow:0 0 0 0 rgba(86, 168, 10, 0.75)}}@keyframes flip-open{0%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 90deg);transform:perspective(400px) rotate3d(0, 1, 0, 90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -20deg);transform:perspective(400px) rotate3d(0, 1, 0, -20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 10deg);transform:perspective(400px) rotate3d(0, 1, 0, 10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -5deg);transform:perspective(400px) rotate3d(0, 1, 0, -5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}.ListGame .GameInnerContainer .silde-in-from-left{-webkit-animation-name:silde-in-from-left;animation-name:silde-in-from-left;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}@-webkit-keyframes silde-in-from-left{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%);visibility:visible}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes silde-in-from-left{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%);visibility:visible}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes flip-closed-seat{0%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 90deg);transform:perspective(400px) rotate3d(0, 1, 0, 90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -20deg);transform:perspective(400px) rotate3d(0, 1, 0, -20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 10deg);transform:perspective(400px) rotate3d(0, 1, 0, 10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -5deg);transform:perspective(400px) rotate3d(0, 1, 0, -5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}.ListGame .GameInnerContainer .ListGame.PulsatingGreenShadow,.ListGame .GameInnerContainer .ListGame.PulsatingRedShadow{overflow:auto}.ListGame .GameInnerContainer .ListGame.PulsatingGreenShadow{animation:green-pulse 2s linear}.ListGame .GameInnerContainer .ListGame.PulsatingRedShadow{animation:red-pulse 2s linear}.ListGame .GameInnerContainer .LiveIcons{position:relative;display:flex;padding:0 16px;box-sizing:border-box;flex-direction:row;align-items:center;justify-content:flex-start;min-height:auto;margin-bottom:5px}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveIcons{min-height:auto}}.ListGame .GameInnerContainer .LiveIcons:first-child{margin-left:0}.ListGame .GameInnerContainer .LiveIcons:last-child{margin-right:0}.ListGame .GameInnerContainer .LiveIcons.Black,.ListGame .GameInnerContainer .LiveIcons.Red,.ListGame .GameInnerContainer .LiveIcons.Green{color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .LatestResult{min-width:12px;padding:2px;margin:0 1px;margin-right:6px;font-size:14px;text-align:center}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveIcons .LatestResult{min-width:12px;font-size:14px;margin:0 2px;margin-right:5px;padding:2px}}.ListGame .GameInnerContainer .LiveIcons .LatestResult.FirstElementAnimated{animation:flip-open 2s both;-webkit-animation:flip-open 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First{min-width:24px;padding:4px}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Black,.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Red,.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Green{color:var(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Black{background:var(--emfe-w-color-black, #000000)}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Red{background:red}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Green{background:#56A80A}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveIcons .LatestResult.First{padding:4px}}.ListGame .GameInnerContainer .LiveIcons .Double{display:flex;flex-direction:column}.ListGame .GameInnerContainer .LiveIcons .Double .LatestResult:first-child{margin-bottom:10px}.ListGame .GameInnerContainer .LiveIcons .Double:first-child .LatestResult{margin-left:0;margin-bottom:0}.ListGame .GameInnerContainer .LiveIcons .Double:last-child .LatestResult{margin-right:0}.ListGame .GameInnerContainer .LiveIcons .Black,.ListGame .GameInnerContainer .LiveIcons .Red,.ListGame .GameInnerContainer .LiveIcons .Green{background-color:transparent}.ListGame .GameInnerContainer .LiveIcons .Black{color:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .Red{color:red}.ListGame .GameInnerContainer .LiveIcons .Green{color:#56A80A}.ListGame .GameInnerContainer .Blue{color:#4d90a7}.ListGame .GameInnerContainer .Red{background-color:red}.ListGame .GameInnerContainer .Black{background-color:var(--emfe-w-color-black, #000000)}.ListGame .GameInnerContainer .Green{background-color:#56A80A}.ListGame .GameInnerContainer .White{background-color:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .Yellow{background-color:#eeca3d}.ListGame .GameInnerContainer .Gold{background-color:#866d0c}.ListGame .GameInnerContainer .Orange{background-color:#574708}.ListGame .GameInnerContainer .Purple{background-color:#330033}.ListGame .GameInnerContainer .Tie{background-color:var(--emfe-w-color-white, #FFFFFF);background-image:linear-gradient(135deg, var(--emfe-w-color-white, #FFFFFF) 25%, transparent 25%, transparent 50%, #212121 50%, var(--emfe-w-color-white, #FFFFFF) 75%, transparent 75%, var(--emfe-w-color-white, #FFFFFF))}.ListGame .GameInnerContainer .OpenSeat,.ListGame .GameInnerContainer .ClosedSeat{display:inline-block;width:16px;height:16px;margin-right:4px}@media(min-width: 768px){.ListGame .GameInnerContainer .OpenSeat,.ListGame .GameInnerContainer .ClosedSeat{width:16px;height:16px}}@media(min-width: 1100px){.ListGame .GameInnerContainer .OpenSeat,.ListGame .GameInnerContainer .ClosedSeat{width:16px;height:16px}}.ListGame .GameInnerContainer .OpenSeat svg,.ListGame .GameInnerContainer .ClosedSeat svg{width:100%;height:100%}.ListGame .GameInnerContainer .OpenSeat{animation:flip-closed-seat 2s both;-webkit-animation:flip-closed-seat 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.ListGame .GameInnerContainer .ClosedSeat{animation:flip-open 2s both;-webkit-animation:flip-open 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.ListGame .GameInnerContainer .OpenSeat svg{fill:transparent;stroke:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .ClosedSeat svg{fill:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .FullTable{display:flex;position:relative;z-index:10;height:20px;padding:1px 4px 1px 0;align-items:center;border-radius:3px;font-size:12px;white-space:normal;text-transform:uppercase;-webkit-animation-name:silde-in-from-left;animation-name:silde-in-from-left;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.ListGame .GameInnerContainer .FullTable svg{width:100%;height:100%;fill:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .FullTable.ClosedSeat{margin-right:-3px}.ListGame .GameInnerContainer .PlayersDisplay{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;padding:2px 10px;background:linear-gradient(to bottom, rgba(33, 33, 33, 0.9) 0%, rgba(33, 33, 33, 0.1) 100%);color:var(--emfe-w-color-white, #FFFFFF)}@media(min-width: 1100px){.ListGame .GameInnerContainer .PlayersDisplay{padding:2px 16px}}.ListGame .GameInnerContainer .PlayersDisplay .PlayersIcon{width:14px;height:14px;margin-right:4px}.ListGame .GameInnerContainer .PlayersDisplay .PlayersIcon svg{fill:var(--emfe-w-color-white, #FFFFFF);width:100%;height:100%}.ListGame .GameInnerContainer .ClosedGame{opacity:1;z-index:10;padding:8px 10px;color:var(--emfe-w-color-white, #FFFFFF);font-size:18px}@media(min-width: 1100px){.ListGame .GameInnerContainer .ClosedGame{padding:8px 16px}}.ListGame .GameInnerContainer .ClosedGame span{font-size:18px}.ListGame .GameInnerContainer .LiveLimits{opacity:1;display:flex;flex-direction:row;justify-content:space-between;padding:2px 20px 5px 20px;background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-color-white, #FFFFFF);font-weight:normal;font-size:12px}@media(min-width: 1100px){.ListGame .GameInnerContainer .LiveLimits{padding:2px 18px 5px 18px}}.ListGame .GameInnerContainer .LiveLimits span{font-size:12px}.ListGame .GameInnerContainer .Players{display:inline-block;width:19px;height:19px}.LoaderRipple{width:80px;height:80px;position:absolute;top:40px;left:-8px}.LoaderRipple div{position:absolute;border:4px solid #fff;opacity:1;border-radius:50%;animation:ripple-effect 1s cubic-bezier(0, 0.2, 0.8, 1) infinite}.LoaderRipple div:nth-child(2){animation-delay:-0.5s}@keyframes ripple-effect{0%{top:36px;left:36px;width:0;height:0;opacity:0}4.9%{top:36px;left:36px;width:0;height:0;opacity:0}5%{top:36px;left:36px;width:0;height:0;opacity:1}100%{top:0px;left:0px;width:72px;height:72px;opacity:0}}@container (max-width: 375px){.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoName{margin-bottom:5px;font-size:12px}.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoBtn{font-size:14px;padding:4px}.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoVendor{font-size:10px}}@container (max-width: 410px){.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoName{font-size:12px;margin-bottom:5px}.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoBtn{font-size:14px;padding:4px}.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoVendor{font-size:10px}}@container (max-width: 480px){.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoName{font-size:12px;margin-bottom:5px}.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoBtn{font-size:14px;padding:4px}.CasinoGamesGridSlider .GameInnerContainer .GameInfoWrapper .GameInfoVendor{font-size:10px}}',this.shadowRoot.appendChild(t),j(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},mi,ui,a,{session:44,userid:45,lang:1,clientstyling:46,clientstylingurl:47,translationurl:48,favorites:2,gamethumbnail:3,gamename:4,gamevendor:5,gameid:6,gameisnew:7,gametag:8,gamefunmode:49,gamefavorite:0,gamecellsize:9,showfavoredcategory:50,showgamename:10,currency:51,gamepagemodalurl:52,endpoint:53,livelobbyendpoint:54,connectlive:55,visibilityconnect:56,integratedgameframedesktop:57,integratedgameframemobile:58,casinogamesgridslider:11,MONEY_WHEEL_COLOR_MAP:59,ROULETTE_COLOR_MAP:60},null,[-1,-1,-1,-1]),e&&(e.target&&d(e.target,this,e.anchor),e.props&&(this.$set(e.props),H()))}static get observedAttributes(){return["session","userid","lang","clientstyling","clientstylingurl","translationurl","favorites","gamethumbnail","gamename","gamevendor","gameid","gameisnew","gametag","gamefunmode","gamefavorite","gamecellsize","showfavoredcategory","showgamename","currency","gamepagemodalurl","endpoint","livelobbyendpoint","connectlive","visibilityconnect","integratedgameframedesktop","integratedgameframemobile","casinogamesgridslider","MONEY_WHEEL_COLOR_MAP","ROULETTE_COLOR_MAP"]}get session(){return this.$$.ctx[44]}set session(e){this.$$set({session:e}),H()}get userid(){return this.$$.ctx[45]}set userid(e){this.$$set({userid:e}),H()}get lang(){return this.$$.ctx[1]}set lang(e){this.$$set({lang:e}),H()}get clientstyling(){return this.$$.ctx[46]}set clientstyling(e){this.$$set({clientstyling:e}),H()}get clientstylingurl(){return this.$$.ctx[47]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),H()}get translationurl(){return this.$$.ctx[48]}set translationurl(e){this.$$set({translationurl:e}),H()}get favorites(){return this.$$.ctx[2]}set favorites(e){this.$$set({favorites:e}),H()}get gamethumbnail(){return this.$$.ctx[3]}set gamethumbnail(e){this.$$set({gamethumbnail:e}),H()}get gamename(){return this.$$.ctx[4]}set gamename(e){this.$$set({gamename:e}),H()}get gamevendor(){return this.$$.ctx[5]}set gamevendor(e){this.$$set({gamevendor:e}),H()}get gameid(){return this.$$.ctx[6]}set gameid(e){this.$$set({gameid:e}),H()}get gameisnew(){return this.$$.ctx[7]}set gameisnew(e){this.$$set({gameisnew:e}),H()}get gametag(){return this.$$.ctx[8]}set gametag(e){this.$$set({gametag:e}),H()}get gamefunmode(){return this.$$.ctx[49]}set gamefunmode(e){this.$$set({gamefunmode:e}),H()}get gamefavorite(){return this.$$.ctx[0]}set gamefavorite(e){this.$$set({gamefavorite:e}),H()}get gamecellsize(){return this.$$.ctx[9]}set gamecellsize(e){this.$$set({gamecellsize:e}),H()}get showfavoredcategory(){return this.$$.ctx[50]}set showfavoredcategory(e){this.$$set({showfavoredcategory:e}),H()}get showgamename(){return this.$$.ctx[10]}set showgamename(e){this.$$set({showgamename:e}),H()}get currency(){return this.$$.ctx[51]}set currency(e){this.$$set({currency:e}),H()}get gamepagemodalurl(){return this.$$.ctx[52]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),H()}get endpoint(){return this.$$.ctx[53]}set endpoint(e){this.$$set({endpoint:e}),H()}get livelobbyendpoint(){return this.$$.ctx[54]}set livelobbyendpoint(e){this.$$set({livelobbyendpoint:e}),H()}get connectlive(){return this.$$.ctx[55]}set connectlive(e){this.$$set({connectlive:e}),H()}get visibilityconnect(){return this.$$.ctx[56]}set visibilityconnect(e){this.$$set({visibilityconnect:e}),H()}get integratedgameframedesktop(){return this.$$.ctx[57]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),H()}get integratedgameframemobile(){return this.$$.ctx[58]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),H()}get casinogamesgridslider(){return this.$$.ctx[11]}set casinogamesgridslider(e){this.$$set({casinogamesgridslider:e}),H()}get MONEY_WHEEL_COLOR_MAP(){return this.$$.ctx[59]}get ROULETTE_COLOR_MAP(){return this.$$.ctx[60]}});let Ti=50;function Li(e,t,n){let r;u(e,Tn,(e=>n(17,r=e)));let i,a,o,s,{endpoint:l=""}=t,{datasource:c=""}=t,{session:h=""}=t,{userid:d=""}=t,{lang:f="en"}=t,{clientstyling:p=""}=t,{clientstylingurl:m=""}=t,{integratedgameframedesktop:g="false"}=t,{integratedgameframemobile:y="false"}=t,{gamepagemodalurl:v="true"}=t,{translationurl:b=""}=t,{showfavorites:w=""}=t,_=window.navigator.userAgent,x=[],S=[],E={},C="",T=!0,L=!1,k=!1,P=!1,O=[];Object.keys($n).forEach((e=>{Ln(e,$n[e])}));const M=e=>{e.data&&"SearchedItemClicked"==e.data.type&&R(e.data.gameId),"UserSessionID"==e.data.type&&(n(15,o=e.data.session),n(16,s=e.data.userid),n(27,P=!0)),"CategoryChange"==e.data.type&&A()},I=()=>{if(n(9,T=!1),n(13,L=!0),l&&c&&f&&C.length<2){n(11,x=[]);let e=localStorage.getItem("searchedGamesWds_casino"),t=[];e&&(t=e.split(","));let r=[],i=0,a=t.length;if(a>0){for(i=0;i<a;i++){let e=new URL(`${l}/casino/games/${t[i]}`);e.searchParams.append("language",f),e.searchParams.append("datasource",c),e.searchParams.append("platform",Rr(_)),r.push(D(e,t[i]))}Promise.all(r).then((e=>{e=e.filter((function(e){return!!e})),n(11,x=e.map((e=>(e.isFavorite=F(e.id),e))))}))}}H(L),
|
|
1339
1339
|
//Analytics event
|
|
1340
|
-
"function"==typeof gtag&>ag("event","SearchInitialized",{context:"SearchWidget"})},D=(e,t)=>new Promise(((r,i)=>{n(14,k=!0),t&&Object.keys(E).indexOf(t)>=0?(n(14,k=!1),r(E[t])):fetch(e).then((e=>e.json())).then((e=>{n(14,k=!1),e.error||(E[e[0].gameId]=e[0]),r(e[0])})).catch((e=>{n(14,k=!1),console.error(e),i(e)}))})),F=e=>-1!==O.findIndex((t=>t==e)),R=e=>{if(S=localStorage.getItem("searchedGamesWds_casino"),S=S?S.split(","):[],-1===S.indexOf(e)){let t;S.unshift(e),t=S.join(","),localStorage.setItem("searchedGamesWds_casino",t)}},A=()=>{n(8,C=""),n(9,T=!0),n(14,k=!1),n(11,x=[]),n(13,L=!1),H(L)},N=()=>{n(8,C=""),i.focus()},H=e=>{window.postMessage({type:!0===e?"searchActive":"searchCancelled",searchStatus:e},window.location.href)},B=()=>{var e;e=f,on.set(e)};$((()=>(window.addEventListener("message",M,!1),()=>{window.removeEventListener("message",M)})));return e.$$set=e=>{"endpoint"in e&&n(0,l=e.endpoint),"datasource"in e&&n(23,c=e.datasource),"session"in e&&n(24,h=e.session),"userid"in e&&n(25,d=e.userid),"lang"in e&&n(1,f=e.lang),"clientstyling"in e&&n(2,p=e.clientstyling),"clientstylingurl"in e&&n(3,m=e.clientstylingurl),"integratedgameframedesktop"in e&&n(4,g=e.integratedgameframedesktop),"integratedgameframemobile"in e&&n(5,y=e.integratedgameframemobile),"gamepagemodalurl"in e&&n(6,v=e.gamepagemodalurl),"translationurl"in e&&n(26,b=e.translationurl),"showfavorites"in e&&n(7,w=e.showfavorites)},e.$$.update=()=>{if(/*searchValue, endpoint, datasource, lang, searchCancelled*/8389379&e.$$.dirty[0])if(C.length>=2){const e=new URL(`${l}/v1/casino/games`);e.searchParams.append("datasource",c),e.searchParams.append("expand","vendor"),e.searchParams.append("platform",Rr(_)),e.searchParams.append("language",f),e.searchParams.append("pagination","offset=0,limit=30"),e.searchParams.append("filter",`name=${C}`),(t=e,new Promise(((e,r)=>{n(14,k=!0),fetch(t.href).then((e=>e.json())).then((t=>{n(14,k=!1),e(t)})).catch((e=>{n(14,k=!1),console.error(e),r(e)}))}))).then((e=>{n(11,x=e.items.map((e=>(e.isFavorite=F(e.id),e))))}))}else T||I();var t;/*lang*/2&e.$$.dirty[0]&&f&&B(),/*translationurl*/67108864&e.$$.dirty[0]&&b&&fetch(b).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Ln(t,e[t])}))})).catch((e=>{console.log(e)})),/*session, userid*/50331648&e.$$.dirty[0]&&h&&d&&(n(27,P=!0),n(15,o=h),n(16,s=d)),/*showfavorites, isLoggedIn*/134217856&e.$$.dirty[0]&&w&&P&&(()=>{const e=new URL(`${l}/v1/player/${s}/favorites/`);n(14,k=!0);let t={method:"GET",headers:{"X-SessionID":o}};fetch(e.href,t).then((e=>e.json())).then((e=>{n(14,k=!1),O=e.items.map((e=>e.id))}))})(),/*clientstyling, customStylingContainer*/1028&e.$$.dirty[0]&&p&&a&&(()=>{let e=document.createElement("style");e.innerHTML=p,a.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/1032&e.$$.dirty[0]&&m&&a&&(()=>{let e=new URL(m),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{a.appendChild(t)}),1)}))})()},[l,f,p,m,g,y,v,w,C,T,a,x,i,L,k,o,s,r,_,I,e=>{if(0===(null==e?void 0:e.length))return"";let t,n,r=99999999999;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);Ar(l).diff(i)<r&&(r=Ar(l).diff(i),n=o),Ar(i).isAfter(s)&&Ar(i).isBefore(l)&&(t=e[n].name)})),t},A,N,c,h,d,b,P,function(){C=this.value,n(8,C)},function(e){G[e?"unshift":"push"]((()=>{i=e,n(12,i)}))},()=>N(),()=>A(),function(e){G[e?"unshift":"push"]((()=>{a=e,n(10,a)}))}]}function $i(e,t){Rt(e,t)}!customElements.get("casino-search")&&customElements.define("casino-search",class extends V{constructor(e){super();const t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input{font-family:inherit}.CasinoSearch{margin:30px 16px}.LoadingContent{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;margin-bottom:20px}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;border:1px solid var(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-color-gray-100, #E6E6E6);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%}.SearchInput::placeholder{color:var(--emfe-w-color-gray-150, #828282);font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid var(--emfe-w-color-gray-300, #58586B)}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchCancelButton{color:var(--emfe-w-color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emfe-w-color-contrast, #000000)}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emfe-w-color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop.CasinoSearch{margin:30px auto}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchInput{width:50%}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchAnimation{transform:scaleX(110%)}.Desktop .SearchAnimation Input{outline:none;box-shadow:0 5px 7px rgba(0, 0, 0, 0.25);background-color:rgba(255, 255, 255, 0.2)}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}",this.shadowRoot.appendChild(t),j(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},Li,Ci,a,{endpoint:0,datasource:23,session:24,userid:25,lang:1,clientstyling:2,clientstylingurl:3,integratedgameframedesktop:4,integratedgameframemobile:5,gamepagemodalurl:6,translationurl:26,showfavorites:7},null,[-1,-1]),e&&(e.target&&d(e.target,this,e.anchor),e.props&&(this.$set(e.props),H()))}static get observedAttributes(){return["endpoint","datasource","session","userid","lang","clientstyling","clientstylingurl","integratedgameframedesktop","integratedgameframemobile","gamepagemodalurl","translationurl","showfavorites"]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),H()}get datasource(){return this.$$.ctx[23]}set datasource(e){this.$$set({datasource:e}),H()}get session(){return this.$$.ctx[24]}set session(e){this.$$set({session:e}),H()}get userid(){return this.$$.ctx[25]}set userid(e){this.$$set({userid:e}),H()}get lang(){return this.$$.ctx[1]}set lang(e){this.$$set({lang:e}),H()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(e){this.$$set({clientstyling:e}),H()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),H()}get integratedgameframedesktop(){return this.$$.ctx[4]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),H()}get integratedgameframemobile(){return this.$$.ctx[5]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),H()}get gamepagemodalurl(){return this.$$.ctx[6]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),H()}get translationurl(){return this.$$.ctx[26]}set translationurl(e){this.$$set({translationurl:e}),H()}get showfavorites(){return this.$$.ctx[7]}set showfavorites(e){this.$$set({showfavorites:e}),H()}});const ki={en:{categories:"Categories",providers:"Suppliers"},"zh-hk":{categories:"类别",providers:"供应商"},de:{categories:"Kategorien",providers:"Anbieter"},it:{categories:"Categories",providers:"Suppliers"},fr:{categories:"Catégories",providers:"Fournisseurs"},es:{categories:"Categorias",providers:"Proveedores"},tr:{categories:"Categories",providers:"Suppliers"},ru:{categories:"Categories",providers:"Suppliers"},ro:{categories:"Categorii",providers:"Furnizori"},hr:{categories:"Kategorije",providers:"Dobavljači"},hu:{categories:"Categories",providers:"Suppliers"},pl:{categories:"Categories",providers:"Suppliers"},pt:{categories:"Categories",providers:"Suppliers"},sl:{categories:"Categories",providers:"Suppliers"},sr:{categories:"Categories",providers:"Suppliers"}};function Gi(e,t){Rt(e,t)}const Pi={en:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},"zh-hk":{topCategories:"热门类别",otherCategories:"其他类别",loading:"加载请稍候...",games:"游戏"},de:{topCategories:"Top Kategorien",otherCategories:"Andere Kategorien",loading:"Es lädt, bitte warten...",games:"Spiele"},it:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},fr:{topCategories:"Catégories principales",otherCategories:"Autres catégories",loading:"Chargement, veuillez patienter...",games:"jeux"},es:{topCategories:"Categorias Top",otherCategories:"Otras Categorias",loading:"Cargando...",games:"juegos"},tr:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},ru:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},ro:{topCategories:"Categorii de top",otherCategories:"Alte categorii",loading:"Se incarca, te rugam asteapta…",games:"jocuri"},hr:{topCategories:"Glavne kategorije",otherCategories:"Druge kategorije",loading:"Učitavanje, molimo čekajte.",games:"Igre"},hu:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},pl:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},pt:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},sl:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},sr:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"}};
|
|
1340
|
+
"function"==typeof gtag&>ag("event","SearchInitialized",{context:"SearchWidget"})},D=(e,t)=>new Promise(((r,i)=>{n(14,k=!0),t&&Object.keys(E).indexOf(t)>=0?(n(14,k=!1),r(E[t])):fetch(e).then((e=>e.json())).then((e=>{n(14,k=!1),e.error||(E[e[0].gameId]=e[0]),r(e[0])})).catch((e=>{n(14,k=!1),console.error(e),i(e)}))})),F=e=>-1!==O.findIndex((t=>t==e)),R=e=>{if(S=localStorage.getItem("searchedGamesWds_casino"),S=S?S.split(","):[],-1===S.indexOf(e)){let t;S.unshift(e),t=S.join(","),localStorage.setItem("searchedGamesWds_casino",t)}},A=()=>{n(8,C=""),n(9,T=!0),n(14,k=!1),n(11,x=[]),n(13,L=!1),H(L)},N=()=>{n(8,C=""),i.focus()},H=e=>{window.postMessage({type:!0===e?"searchActive":"searchCancelled",searchStatus:e},window.location.href)},B=()=>{var e;e=f,on.set(e)};$((()=>(window.addEventListener("message",M,!1),()=>{window.removeEventListener("message",M)})));return e.$$set=e=>{"endpoint"in e&&n(0,l=e.endpoint),"datasource"in e&&n(23,c=e.datasource),"session"in e&&n(24,h=e.session),"userid"in e&&n(25,d=e.userid),"lang"in e&&n(1,f=e.lang),"clientstyling"in e&&n(2,p=e.clientstyling),"clientstylingurl"in e&&n(3,m=e.clientstylingurl),"integratedgameframedesktop"in e&&n(4,g=e.integratedgameframedesktop),"integratedgameframemobile"in e&&n(5,y=e.integratedgameframemobile),"gamepagemodalurl"in e&&n(6,v=e.gamepagemodalurl),"translationurl"in e&&n(26,b=e.translationurl),"showfavorites"in e&&n(7,w=e.showfavorites)},e.$$.update=()=>{if(/*searchValue, endpoint, datasource, lang, searchCancelled*/8389379&e.$$.dirty[0])if(C.length>=2){const e=new URL(`${l}/casino/games`);e.searchParams.append("datasource",c),e.searchParams.append("expand","vendor"),e.searchParams.append("platform",Rr(_)),e.searchParams.append("language",f),e.searchParams.append("pagination","offset=0,limit=30"),e.searchParams.append("filter",`name=${C}`),(t=e,new Promise(((e,r)=>{n(14,k=!0),fetch(t.href).then((e=>e.json())).then((t=>{n(14,k=!1),e(t)})).catch((e=>{n(14,k=!1),console.error(e),r(e)}))}))).then((e=>{n(11,x=e.items.map((e=>(e.isFavorite=F(e.id),e))))}))}else T||I();var t;/*lang*/2&e.$$.dirty[0]&&f&&B(),/*translationurl*/67108864&e.$$.dirty[0]&&b&&fetch(b).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Ln(t,e[t])}))})).catch((e=>{console.log(e)})),/*session, userid*/50331648&e.$$.dirty[0]&&h&&d&&(n(27,P=!0),n(15,o=h),n(16,s=d)),/*showfavorites, isLoggedIn*/134217856&e.$$.dirty[0]&&w&&P&&(()=>{const e=new URL(`${l}/player/${s}/favorites/`);n(14,k=!0);let t={method:"GET",headers:{"X-SessionID":o}};fetch(e.href,t).then((e=>e.json())).then((e=>{n(14,k=!1),O=e.items.map((e=>e.id))}))})(),/*clientstyling, customStylingContainer*/1028&e.$$.dirty[0]&&p&&a&&(()=>{let e=document.createElement("style");e.innerHTML=p,a.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/1032&e.$$.dirty[0]&&m&&a&&(()=>{let e=new URL(m),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{a.appendChild(t)}),1)}))})()},[l,f,p,m,g,y,v,w,C,T,a,x,i,L,k,o,s,r,_,I,e=>{if(0===(null==e?void 0:e.length))return"";let t,n,r=99999999999;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);Ar(l).diff(i)<r&&(r=Ar(l).diff(i),n=o),Ar(i).isAfter(s)&&Ar(i).isBefore(l)&&(t=e[n].name)})),t},A,N,c,h,d,b,P,function(){C=this.value,n(8,C)},function(e){G[e?"unshift":"push"]((()=>{i=e,n(12,i)}))},()=>N(),()=>A(),function(e){G[e?"unshift":"push"]((()=>{a=e,n(10,a)}))}]}function $i(e,t){Rt(e,t)}!customElements.get("casino-search")&&customElements.define("casino-search",class extends V{constructor(e){super();const t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;font-family:inherit}:host{font-family:inherit}input{font-family:inherit}.CasinoSearch{margin:30px 16px}.LoadingContent{color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.Search{display:flex;align-items:center;position:relative;margin-bottom:20px}.SearchIcon{position:absolute;left:15px;top:50%;z-index:1;transform:translateY(-50%)}.SearchIcon svg{height:14px;width:13px}.SearchInput{border-radius:4px;border:1px solid var(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-color-gray-100, #E6E6E6);display:block;font-size:16px;font-weight:300;padding:14px 5px 14px 46px;width:100%}.SearchInput::placeholder{color:var(--emfe-w-color-gray-150, #828282);font-size:16px;font-weight:300}.SearchInput:focus{outline:1px solid var(--emfe-w-color-gray-300, #58586B)}.SearchInput::-webkit-search-decoration,.SearchInput::-webkit-search-cancel-button,.SearchInput::-webkit-search-results-button,.SearchInput::-webkit-search-results-decoration{-webkit-appearance:none}.SearchClearButton{position:absolute;top:30%;right:65px;cursor:pointer}.SearchCancelButton{color:var(--emfe-w-color-contrast, #E6E6E6);font-weight:300;margin-left:8px;cursor:pointer}.SearchMessage{font-size:18px;font-weight:600;margin:24px 0;color:var(--emfe-w-color-contrast, #000000)}.SearchResultsContainer{display:grid;gap:28px;grid-template-columns:repeat(auto-fill, minmax(min(192px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 192px);grid-auto-rows:192px;grid-auto-columns:192px;grid-auto-flow:row dense}@media screen and (max-width: 480px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(122px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 122px);grid-auto-rows:122px;grid-auto-columns:122px}}@media screen and (max-width: 385px){.SearchResultsContainer{display:grid;gap:16px;grid-template-columns:repeat(auto-fill, minmax(min(110px, 46%), 1fr));grid-template-rows:repeat(auto-fill, 110px);grid-auto-rows:110px;grid-auto-columns:110px}}@media screen and (min-width: 1100px){.SearchResultsContainer{grid-template-rows:repeat(auto-fill, 142px);grid-auto-rows:142px}}@media screen and (max-width: 1300px){.SearchResultsContainer{padding:0 2.4%}}.ResultsContainerError{text-align:center;width:300px;color:var(--emfe-w-color-contrast, #828282);font-weight:300;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.NotVisible{display:none}.Desktop .NotVisible{opacity:0;visibility:hidden;display:inline}.Desktop.CasinoSearch{margin:30px auto}.Desktop .Search{display:flex;align-items:center;justify-content:center;transition:all 0.2s cubic-bezier(1, 0, 0.46, 1.03)}.Desktop .SearchIcon{position:relative;top:0;left:0;transform:translateY(0);margin-right:-28px}.Desktop .SearchInput{width:50%}.Desktop .SearchClearButton{position:relative;top:0;right:0;margin-left:-23px}.Desktop .SearchCancelButton{margin-left:20px}.Desktop .SearchAnimation{transform:scaleX(110%)}.Desktop .SearchAnimation Input{outline:none;box-shadow:0 5px 7px rgba(0, 0, 0, 0.25);background-color:rgba(255, 255, 255, 0.2)}.Desktop .SearchMessage{font-size:18px;font-weight:600;margin:24px 0;margin-top:90px}",this.shadowRoot.appendChild(t),j(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},Li,Ci,a,{endpoint:0,datasource:23,session:24,userid:25,lang:1,clientstyling:2,clientstylingurl:3,integratedgameframedesktop:4,integratedgameframemobile:5,gamepagemodalurl:6,translationurl:26,showfavorites:7},null,[-1,-1]),e&&(e.target&&d(e.target,this,e.anchor),e.props&&(this.$set(e.props),H()))}static get observedAttributes(){return["endpoint","datasource","session","userid","lang","clientstyling","clientstylingurl","integratedgameframedesktop","integratedgameframemobile","gamepagemodalurl","translationurl","showfavorites"]}get endpoint(){return this.$$.ctx[0]}set endpoint(e){this.$$set({endpoint:e}),H()}get datasource(){return this.$$.ctx[23]}set datasource(e){this.$$set({datasource:e}),H()}get session(){return this.$$.ctx[24]}set session(e){this.$$set({session:e}),H()}get userid(){return this.$$.ctx[25]}set userid(e){this.$$set({userid:e}),H()}get lang(){return this.$$.ctx[1]}set lang(e){this.$$set({lang:e}),H()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(e){this.$$set({clientstyling:e}),H()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),H()}get integratedgameframedesktop(){return this.$$.ctx[4]}set integratedgameframedesktop(e){this.$$set({integratedgameframedesktop:e}),H()}get integratedgameframemobile(){return this.$$.ctx[5]}set integratedgameframemobile(e){this.$$set({integratedgameframemobile:e}),H()}get gamepagemodalurl(){return this.$$.ctx[6]}set gamepagemodalurl(e){this.$$set({gamepagemodalurl:e}),H()}get translationurl(){return this.$$.ctx[26]}set translationurl(e){this.$$set({translationurl:e}),H()}get showfavorites(){return this.$$.ctx[7]}set showfavorites(e){this.$$set({showfavorites:e}),H()}});const ki={en:{categories:"Categories",providers:"Suppliers"},"zh-hk":{categories:"类别",providers:"供应商"},de:{categories:"Kategorien",providers:"Anbieter"},it:{categories:"Categories",providers:"Suppliers"},fr:{categories:"Catégories",providers:"Fournisseurs"},es:{categories:"Categorias",providers:"Proveedores"},tr:{categories:"Categories",providers:"Suppliers"},ru:{categories:"Categories",providers:"Suppliers"},ro:{categories:"Categorii",providers:"Furnizori"},hr:{categories:"Kategorije",providers:"Dobavljači"},hu:{categories:"Categories",providers:"Suppliers"},pl:{categories:"Categories",providers:"Suppliers"},pt:{categories:"Categories",providers:"Suppliers"},sl:{categories:"Categories",providers:"Suppliers"},sr:{categories:"Categories",providers:"Suppliers"}};function Gi(e,t){Rt(e,t)}const Pi={en:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},"zh-hk":{topCategories:"热门类别",otherCategories:"其他类别",loading:"加载请稍候...",games:"游戏"},de:{topCategories:"Top Kategorien",otherCategories:"Andere Kategorien",loading:"Es lädt, bitte warten...",games:"Spiele"},it:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},fr:{topCategories:"Catégories principales",otherCategories:"Autres catégories",loading:"Chargement, veuillez patienter...",games:"jeux"},es:{topCategories:"Categorias Top",otherCategories:"Otras Categorias",loading:"Cargando...",games:"juegos"},tr:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},ru:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},ro:{topCategories:"Categorii de top",otherCategories:"Alte categorii",loading:"Se incarca, te rugam asteapta…",games:"jocuri"},hr:{topCategories:"Glavne kategorije",otherCategories:"Druge kategorije",loading:"Učitavanje, molimo čekajte.",games:"Igre"},hu:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},pl:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},pt:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},sl:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"},sr:{topCategories:"Top Categories",otherCategories:"Other Categories",loading:"Loading, please wait...",games:"games"}};
|
|
1341
1341
|
/* ../casino-categories/src/CasinoCategories.svelte generated by Svelte v3.59.2 */function Oi(e,t,n){const r=e.slice();return r[24]=t[n],r}function Mi(e,t,n){const r=e.slice();return r[24]=t[n],r}
|
|
1342
1342
|
// (80:2) {:else}
|
|
1343
1343
|
function Ii(e){let t,n,r,i,a,o,s,l,c=/*$_*/e[5]("topCategories")+"",u=/*$_*/e[5]("otherCategories")+"",g=/*topCategories*/e[3],b=[];for(let t=0;t<g.length;t+=1)b[t]=Fi(Mi(e,g,t));let w=/*otherCategories*/e[4],x=[];for(let t=0;t<w.length;t+=1)x[t]=Ri(Oi(e,w,t));return{c(){t=m("div"),n=m("h4"),r=y(c),i=v();for(let e=0;e<b.length;e+=1)b[e].c();a=v(),o=m("h4"),s=y(u),l=v();for(let e=0;e<x.length;e+=1)x[e].c();_(n,"class","CategoryTitle"),_(o,"class","CategoryTitle"),_(t,"class","CasinoCategories")},m(e,c){d(e,t,c),h(t,n),h(n,r),h(t,i);for(let e=0;e<b.length;e+=1)b[e]&&b[e].m(t,null);h(t,a),h(t,o),h(o,s),h(t,l);for(let e=0;e<x.length;e+=1)x[e]&&x[e].m(t,null)},p(e,n){if(/*$_*/32&n&&c!==(c=/*$_*/e[5]("topCategories")+"")&&S(r,c),/*activecategory, topCategories, openGameCategory, $_*/105&n){let r;for(g=/*topCategories*/e[3],r=0;r<g.length;r+=1){const i=Mi(e,g,r);b[r]?b[r].p(i,n):(b[r]=Fi(i),b[r].c(),b[r].m(t,a))}for(;r<b.length;r+=1)b[r].d(1);b.length=g.length}if(/*$_*/32&n&&u!==(u=/*$_*/e[5]("otherCategories")+"")&&S(s,u),/*activecategory, otherCategories, openGameCategory, $_*/113&n){let r;for(w=/*otherCategories*/e[4],r=0;r<w.length;r+=1){const i=Oi(e,w,r);x[r]?x[r].p(i,n):(x[r]=Ri(i),x[r].c(),x[r].m(t,null))}for(;r<x.length;r+=1)x[r].d(1);x.length=w.length}},d(e){e&&f(t),p(b,e),p(x,e)}}}
|
|
@@ -1351,7 +1351,7 @@ function Ri(e){let t,n,r,i,a,o,s,c,u,p,g,b,x,E,C,T,L,$=/*category*/e[24].name+""
|
|
|
1351
1351
|
return e[15](/*category*/e[24])}return{c(){t=m("div"),n=m("img"),a=v(),o=m("div"),s=m("p"),c=y($),u=v(),p=m("p"),g=y(k),b=v(),x=y(G),E=v(),l(n.src,r=/*category*/e[24].icon)||_(n,"src",r),_(n,"alt",i=/*category*/e[24].name),_(n,"class","CategoryImage"),_(o,"class","CategoryTextContainer"),_(t,"class",C="Category "+(/*activecategory*/e[0]===/*category*/e[24].id?"Active":""))},m(e,r){d(e,t,r),h(t,n),h(t,a),h(t,o),h(o,s),h(s,c),h(o,u),h(o,p),h(p,g),h(p,b),h(p,x),h(t,E),T||(L=w(t,"click",P),T=!0)},p(a,o){e=a,/*otherCategories*/16&o&&!l(n.src,r=/*category*/e[24].icon)&&_(n,"src",r),/*otherCategories*/16&o&&i!==(i=/*category*/e[24].name)&&_(n,"alt",i),/*otherCategories*/16&o&&$!==($=/*category*/e[24].name+"")&&S(c,$),/*otherCategories*/16&o&&k!==(k=/*category*/e[24].games.count+"")&&S(g,k),/*$_*/32&o&&G!==(G=/*$_*/e[5]("games")+"")&&S(x,G),/*activecategory, otherCategories*/17&o&&C!==(C="Category "+(/*activecategory*/e[0]===/*category*/e[24].id?"Active":""))&&_(t,"class",C)},d(e){e&&f(t),T=!1,L()}}}function Ai(t){let n;function r(e,t){/*isLoading*/
|
|
1352
1352
|
return e[2]?Di:Ii}let i=r(t),a=i(t);return{c(){n=m("div"),a.c(),this.c=e},m(e,r){d(e,n,r),a.m(n,null),
|
|
1353
1353
|
/*div_binding*/t[16](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&&f(n),a.d(),
|
|
1354
|
-
/*div_binding*/t[16](null)}}}function Ni(e,t,n){let r;u(e,Tn,(e=>n(5,r=e)));let i,{endpoint:a=""}=t,{datasource:o=""}=t,{lang:s="en"}=t,{activecategory:l=""}=t,{excludedflags:c=""}=t,{clientstyling:h=""}=t,{clientstylingurl:d=""}=t,{translationurl:f=""}=t,p=!1;const m=[];let g=[],y=[];Object.keys(Pi).forEach((e=>{Gi(e,Pi[e])}));const v=e=>{window.postMessage({type:"OpenGameCategory",categoryId:e},window.location.href)},b=()=>{var e;e=s,on.set(e)};return e.$$set=e=>{"endpoint"in e&&n(7,a=e.endpoint),"datasource"in e&&n(8,o=e.datasource),"lang"in e&&n(9,s=e.lang),"activecategory"in e&&n(0,l=e.activecategory),"excludedflags"in e&&n(10,c=e.excludedflags),"clientstyling"in e&&n(11,h=e.clientstyling),"clientstylingurl"in e&&n(12,d=e.clientstylingurl),"translationurl"in e&&n(13,f=e.translationurl)},e.$$.update=()=>{/*endpoint, datasource*/384&e.$$.dirty&&a&&o&&(()=>{n(2,p=!0);const e=new URL(`${a}/
|
|
1354
|
+
/*div_binding*/t[16](null)}}}function Ni(e,t,n){let r;u(e,Tn,(e=>n(5,r=e)));let i,{endpoint:a=""}=t,{datasource:o=""}=t,{lang:s="en"}=t,{activecategory:l=""}=t,{excludedflags:c=""}=t,{clientstyling:h=""}=t,{clientstylingurl:d=""}=t,{translationurl:f=""}=t,p=!1;const m=[];let g=[],y=[];Object.keys(Pi).forEach((e=>{Gi(e,Pi[e])}));const v=e=>{window.postMessage({type:"OpenGameCategory",categoryId:e},window.location.href)},b=()=>{var e;e=s,on.set(e)};return e.$$set=e=>{"endpoint"in e&&n(7,a=e.endpoint),"datasource"in e&&n(8,o=e.datasource),"lang"in e&&n(9,s=e.lang),"activecategory"in e&&n(0,l=e.activecategory),"excludedflags"in e&&n(10,c=e.excludedflags),"clientstyling"in e&&n(11,h=e.clientstyling),"clientstylingurl"in e&&n(12,d=e.clientstylingurl),"translationurl"in e&&n(13,f=e.translationurl)},e.$$.update=()=>{/*endpoint, datasource*/384&e.$$.dirty&&a&&o&&(()=>{n(2,p=!0);const e=new URL(`${a}/casino/groups/${o}`);e.searchParams.append("language",s),fetch(e).then((e=>e.json())).then((e=>{n(2,p=!1);const t=c.split(",").map((e=>e.trim()));m.push(...e.items);
|
|
1355
1355
|
// remove those items which have a flag matching the excluded flags
|
|
1356
1356
|
const r=m.filter((e=>!t.some((t=>{var n;return(null===(n=e.flags)||void 0===n?void 0:n.indexOf(t))>=0}))));n(3,g=r.filter((e=>!0===e.isTopCategory))),n(4,y=r.filter((e=>!1===e.isTopCategory)))}))})(),/*translationurl*/8192&e.$$.dirty&&f&&fetch(f).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Gi(t,e[t])}))})).catch((e=>{console.log(e)})),/*lang*/512&e.$$.dirty&&s&&b(),/*clientstyling, customStylingContainer*/2050&e.$$.dirty&&h&&i&&(()=>{let e=document.createElement("style");e.innerHTML=h,i.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/4098&e.$$.dirty&&d&&i&&(()=>{let e=new URL(d),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{i.appendChild(t)}),1),setTimeout((()=>{}),500)}))})()},[l,i,p,g,y,r,v,a,o,s,c,h,d,f,e=>v(e.id),e=>v(e.id),function(e){G[e?"unshift":"push"]((()=>{i=e,n(1,i)}))}]}!customElements.get("casino-categories")&&customElements.define("casino-categories",class extends V{constructor(e){super();const t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.CasinoCategories{display:flex;flex-direction:column;gap:1rem;padding:10px 60px}.CategoryTitle{font-weight:500;position:relative;right:30px;margin:10px 0;font-size:18px;color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.Category{border-radius:7px;display:flex;align-items:center;gap:16px;max-width:300px}.Category.Active{box-shadow:15px 15px 30px var(--emfe-w-color-gray-100, #E6E6E6)}.CategoryTextContainer{display:flex;flex-direction:column;justify-content:center;gap:10px;font-size:15px;color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.CategoryTextContainer p:first-child{font-weight:600;color:var(--emfe-w-casino-typography, var(--emfe-w-color-white, #FFFFFF))}.CategoryTextContainer p:last-child{color:var(--emfe-w-color-gray-150, #828282);font-weight:300}.CategoryImage{border-radius:4px;object-fit:cover;height:64px;width:64px;font-weight:100}.Message{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);font-weight:600}",this.shadowRoot.appendChild(t),j(this,{target:this.shadowRoot,props:T(this.attributes),customElement:!0},Ni,Ai,a,{endpoint:7,datasource:8,lang:9,activecategory:0,excludedflags:10,clientstyling:11,clientstylingurl:12,translationurl:13},null),e&&(e.target&&d(e.target,this,e.anchor),e.props&&(this.$set(e.props),H()))}static get observedAttributes(){return["endpoint","datasource","lang","activecategory","excludedflags","clientstyling","clientstylingurl","translationurl"]}get endpoint(){return this.$$.ctx[7]}set endpoint(e){this.$$set({endpoint:e}),H()}get datasource(){return this.$$.ctx[8]}set datasource(e){this.$$set({datasource:e}),H()}get lang(){return this.$$.ctx[9]}set lang(e){this.$$set({lang:e}),H()}get activecategory(){return this.$$.ctx[0]}set activecategory(e){this.$$set({activecategory:e}),H()}get excludedflags(){return this.$$.ctx[10]}set excludedflags(e){this.$$set({excludedflags:e}),H()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(e){this.$$set({clientstyling:e}),H()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),H()}get translationurl(){return this.$$.ctx[13]}set translationurl(e){this.$$set({translationurl:e}),H()}});const Hi={en:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait...",games:"games"},"zh-hk":{popularProviders:"热门供应商",otherProviders:"其他供应商",loading:"加载请稍候...",games:"游戏"},de:{popularProviders:"Beliebte Anbieter",otherProviders:"Andere Anbieter",loading:"Es lädt, bitte warten...",games:"Spiele"},it:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait",games:"games"},fr:{popularProviders:"Fournisseurs populaires",otherProviders:"Autres fournisseurs",loading:"Chargement, veuillez patienter...",games:"jeux"},es:{popularProviders:"Proveedores Populares",otherProviders:"Otros Proveedores",loading:"Cargando",games:"juegos"},tr:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait",games:"games"},ru:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait",games:"games"},ro:{popularProviders:"Furnizori de top",otherProviders:"Alti furnizori",loading:"Se incarca, te rugam asteapta…",games:"jocuri"},hr:{popularProviders:"popularni proizvođači",otherProviders:"ostali proizvođači",loading:"učitavanje, molimo pričekajte",games:"Igre"},hu:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait",games:"games"},pl:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait",games:"games"},pt:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait",games:"games"},sl:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait",games:"games"},sr:{popularProviders:"Popular Suppliers",otherProviders:"Other Suppliers",loading:"Loading, please wait",games:"games"}};function Bi(e,t){Rt(e,t)}
|
|
1357
1357
|
/* ../casino-providers/src/CasinoProviders.svelte generated by Svelte v3.59.2 */
|
|
@@ -1368,7 +1368,7 @@ function Wi(e){let t,n,r,i,a,o,s,c,u,p,g,b,x,E,C,T,L=/*provider*/e[21].name+"",$
|
|
|
1368
1368
|
return e[13](/*provider*/e[21])}return{c(){t=m("div"),n=m("img"),a=v(),o=m("div"),s=m("p"),c=y(L),u=v(),p=m("p"),g=y($),b=v(),x=y(k),E=v(),l(n.src,r=/*provider*/e[21].logo)||_(n,"src",r),_(n,"alt",i=/*provider*/e[21].name),_(n,"class","ProviderImage"),_(o,"class","ProviderTextContainer"),_(t,"class","Provider")},m(e,r){d(e,t,r),h(t,n),h(t,a),h(t,o),h(o,s),h(s,c),h(o,u),h(o,p),h(p,g),h(p,b),h(p,x),h(t,E),C||(T=w(t,"click",G),C=!0)},p(t,a){e=t,/*otherProviders*/4&a&&!l(n.src,r=/*provider*/e[21].logo)&&_(n,"src",r),/*otherProviders*/4&a&&i!==(i=/*provider*/e[21].name)&&_(n,"alt",i),/*otherProviders*/4&a&&L!==(L=/*provider*/e[21].name+"")&&S(c,L),/*otherProviders*/4&a&&$!==($=/*provider*/e[21].games.count+"")&&S(g,$),/*$_*/16&a&&k!==(k=/*$_*/e[4]("games")+"")&&S(x,k)},d(e){e&&f(t),C=!1,T()}}}function Ki(t){let n;function r(e,t){/*isLoading*/
|
|
1369
1369
|
return!0===e[3]?Vi:ji}let i=r(t),a=i(t);return{c(){n=m("div"),a.c(),this.c=e,_(n,"class","CasinoProviders")},m(e,r){d(e,n,r),a.m(n,null),
|
|
1370
1370
|
/*div_binding*/t[14](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&&f(n),a.d(),
|
|
1371
|
-
/*div_binding*/t[14](null)}}}function Zi(e,t,n){let r;u(e,Tn,(e=>n(4,r=e)));let i,{endpoint:a=""}=t,{datasource:o=""}=t,{lang:s="en"}=t,{clientstyling:l=""}=t,{clientstylingurl:c=""}=t,{translationurl:h=""}=t,d=[],f=[],p=[],m=!1;Object.keys(Hi).forEach((e=>{Bi(e,Hi[e])}));const g=(e,t,n)=>{window.postMessage({type:"OpenGameProvider",providerId:e,providerName:t,providerLogo:n},window.location.href)},y=()=>{var e;e=s,on.set(e)};return e.$$set=e=>{"endpoint"in e&&n(6,a=e.endpoint),"datasource"in e&&n(7,o=e.datasource),"lang"in e&&n(8,s=e.lang),"clientstyling"in e&&n(9,l=e.clientstyling),"clientstylingurl"in e&&n(10,c=e.clientstylingurl),"translationurl"in e&&n(11,h=e.translationurl)},e.$$.update=()=>{/*endpoint, lang, datasource*/448&e.$$.dirty&&a&&s&&o&&(()=>{n(3,m=!0);const e=new URL(`${a}/
|
|
1371
|
+
/*div_binding*/t[14](null)}}}function Zi(e,t,n){let r;u(e,Tn,(e=>n(4,r=e)));let i,{endpoint:a=""}=t,{datasource:o=""}=t,{lang:s="en"}=t,{clientstyling:l=""}=t,{clientstylingurl:c=""}=t,{translationurl:h=""}=t,d=[],f=[],p=[],m=!1;Object.keys(Hi).forEach((e=>{Bi(e,Hi[e])}));const g=(e,t,n)=>{window.postMessage({type:"OpenGameProvider",providerId:e,providerName:t,providerLogo:n},window.location.href)},y=()=>{var e;e=s,on.set(e)};return e.$$set=e=>{"endpoint"in e&&n(6,a=e.endpoint),"datasource"in e&&n(7,o=e.datasource),"lang"in e&&n(8,s=e.lang),"clientstyling"in e&&n(9,l=e.clientstyling),"clientstylingurl"in e&&n(10,c=e.clientstylingurl),"translationurl"in e&&n(11,h=e.translationurl)},e.$$.update=()=>{/*endpoint, lang, datasource*/448&e.$$.dirty&&a&&s&&o&&(()=>{n(3,m=!0);const e=new URL(`${a}/casino/vendors`);e.searchParams.append("datasource",o),e.searchParams.append("language",s),e.searchParams.append("fields","id,name,displayName,subVendors,isTopVendor,logo,games"),fetch(e).then((e=>e.json())).then((e=>{n(3,m=!1),d=e.items.map((e=>e)),n(1,f=d.filter((e=>!0===e.isTopVendor))),n(2,p=d.filter((e=>!1===e.isTopVendor)));let t=[];t=d.flatMap((e=>e.subVendors)),p.push(...t.filter((e=>e.games.count>0)))}))})(),/*lang*/256&e.$$.dirty&&s&&y(),/*translationurl*/2048&e.$$.dirty&&h&&fetch(h).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{Bi(t,e[t])}))})).catch((e=>{console.log(e)})),/*clientstyling, customStylingContainer*/513&e.$$.dirty&&l&&i&&(()=>{let e=document.createElement("style");e.innerHTML=l,i.appendChild(e)})(),/*clientstylingurl, customStylingContainer*/1025&e.$$.dirty&&c&&i&&(()=>{let e=new URL(c),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{i.appendChild(t)}),1)}))})()},[i,f,p,m,r,g,a,o,s,l,c,h,e=>g(e.id,e.name,e.logo),e=>g(e.id,e.name,e.logo),function(e){G[e?"unshift":"push"]((()=>{i=e,n(0,i)}))}]}
|
|
1372
1372
|
/* ../casino-categories-providers/src/CasinoCategoriesProviders.svelte generated by Svelte v3.59.2 */
|
|
1373
1373
|
function Xi(t){let n,i,a,o,s,l,c,u,p,g,b,E,C,T,L,$,k,G,P,O,M=/*$_*/t[11]("categories")+"",I=/*$_*/t[11]("providers")+"";return{c(){n=m("div"),i=m("div"),a=m("div"),o=m("button"),s=y(M),c=v(),u=m("button"),p=y(I),b=v(),E=m("div"),C=m("casino-categories"),L=v(),$=m("div"),k=m("casino-providers"),this.c=e,_(o,"class",l="HeaderButton "+(/*activeTab*/"categories"===t[10]?"Active":"")),_(u,"class",g="HeaderButton "+(/*activeTab*/"providers"===t[10]?"Active":"")),_(a,"class","Header"),x(C,"endpoint",/*endpointcategories*/t[0]),x(C,"datasource",/*datasourcecategories*/t[1]),x(C,"activecategory",/*activecategory*/t[2]),x(C,"excludedflags",/*excludedflags*/t[5]),x(C,"lang",/*lang*/t[6]),x(C,"clientstyling",/*clientstyling*/t[7]),x(C,"clientstylingurl",/*clientstylingurl*/t[8]),_(E,"class",T=/*activeTab*/"providers"===t[10]?"NotVisible":""),x(k,"endpoint",/*endpointproviders*/t[3]),x(k,"datasource",/*datasourceproviders*/t[4]),x(k,"lang",/*lang*/t[6]),x(k,"clientstyling",/*clientstyling*/t[7]),x(k,"clientstylingurl",/*clientstylingurl*/t[8]),_($,"class",G=/*activeTab*/"categories"===t[10]?"NotVisible":""),_(i,"class","CasinoCategoriesProviders")},m(e,r){d(e,n,r),h(n,i),h(i,a),h(a,o),h(o,s),h(a,c),h(a,u),h(u,p),h(i,b),h(i,E),h(E,C),h(i,L),h(i,$),h($,k),
|
|
1374
1374
|
/*div4_binding*/t[16](n),P||(O=[w(o,"click",/*click_handler*/t[14]),w(u,"click",/*click_handler_1*/t[15])],P=!0)},p(e,[t]){/*$_*/2048&t&&M!==(M=/*$_*/e[11]("categories")+"")&&S(s,M),/*activeTab*/1024&t&&l!==(l="HeaderButton "+(/*activeTab*/"categories"===e[10]?"Active":""))&&_(o,"class",l),/*$_*/2048&t&&I!==(I=/*$_*/e[11]("providers")+"")&&S(p,I),/*activeTab*/1024&t&&g!==(g="HeaderButton "+(/*activeTab*/"providers"===e[10]?"Active":""))&&_(u,"class",g),/*endpointcategories*/1&t&&x(C,"endpoint",/*endpointcategories*/e[0]),/*datasourcecategories*/2&t&&x(C,"datasource",/*datasourcecategories*/e[1]),/*activecategory*/4&t&&x(C,"activecategory",/*activecategory*/e[2]),/*excludedflags*/32&t&&x(C,"excludedflags",/*excludedflags*/e[5]),/*lang*/64&t&&x(C,"lang",/*lang*/e[6]),/*clientstyling*/128&t&&x(C,"clientstyling",/*clientstyling*/e[7]),/*clientstylingurl*/256&t&&x(C,"clientstylingurl",/*clientstylingurl*/e[8]),/*activeTab*/1024&t&&T!==(T=/*activeTab*/"providers"===e[10]?"NotVisible":"")&&_(E,"class",T),/*endpointproviders*/8&t&&x(k,"endpoint",/*endpointproviders*/e[3]),/*datasourceproviders*/16&t&&x(k,"datasource",/*datasourceproviders*/e[4]),/*lang*/64&t&&x(k,"lang",/*lang*/e[6]),/*clientstyling*/128&t&&x(k,"clientstyling",/*clientstyling*/e[7]),/*clientstylingurl*/256&t&&x(k,"clientstylingurl",/*clientstylingurl*/e[8]),/*activeTab*/1024&t&&G!==(G=/*activeTab*/"categories"===e[10]?"NotVisible":"")&&_($,"class",G)},i:e,o:e,d(e){e&&f(n)
|