@everymatrix/casino-game-thumb-view 1.52.6 → 1.53.10

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.
Files changed (42) hide show
  1. package/dist/casino-game-thumb-view/casino-game-thumb-view.esm.js +1 -1
  2. package/dist/casino-game-thumb-view/p-54779d54.entry.js +1 -0
  3. package/dist/casino-game-thumb-view/{p-c9da4e8b.entry.js → p-8849ee66.entry.js} +1 -1
  4. package/dist/casino-game-thumb-view/p-980e0858.entry.js +1 -0
  5. package/dist/casino-game-thumb-view/p-9811b6a0.entry.js +1 -0
  6. package/dist/casino-game-thumb-view/p-9c9196db.js +2 -0
  7. package/dist/casino-game-thumb-view/p-eba72e50.entry.js +7 -0
  8. package/dist/casino-game-thumb-view/p-f9b2c459.entry.js +1 -0
  9. package/dist/cjs/casino-extrainfo-baccarat.cjs.entry.js +1 -5
  10. package/dist/cjs/casino-extrainfo-blackjack.cjs.entry.js +1 -6
  11. package/dist/cjs/casino-extrainfo-roulette.cjs.entry.js +4 -4
  12. package/dist/cjs/casino-game-thumb-view.cjs.js +2 -2
  13. package/dist/cjs/casino-game-thumb-view_2.cjs.entry.js +51 -40
  14. package/dist/cjs/casino-game-thumbnail-betlimit_2.cjs.entry.js +2 -7
  15. package/dist/cjs/casino-normal-game-thumbnail.cjs.entry.js +1 -2
  16. package/dist/cjs/{index-0892a7c6.js → index-7128576b.js} +249 -145
  17. package/dist/cjs/loader.cjs.js +1 -1
  18. package/dist/collection/collection-manifest.json +1 -1
  19. package/dist/collection/components/casino-extrainfo-baccarat/casino-extrainfo-baccarat.js +4 -4
  20. package/dist/collection/components/casino-extrainfo-blackjack/casino-extrainfo-blackjack.js +2 -7
  21. package/dist/collection/components/casino-extrainfo-roulette/casino-extrainfo-roulette.js +5 -3
  22. package/dist/collection/components/casino-game-thumb-view/casino-game-thumb-view.js +99 -33
  23. package/dist/collection/components/casino-game-thumbnail-betlimit/casino-game-thumbnail-betlimit.js +5 -3
  24. package/dist/collection/components/casino-game-thumbnail-extrainfo/casino-game-thumbnail-extrainfo.js +3 -4
  25. package/dist/collection/components/casino-game-thumbnail-overlay/casino-game-thumbnail-overlay.js +27 -6
  26. package/dist/collection/components/casino-normal-game-thumbnail/casino-normal-game-thumbnail.js +2 -3
  27. package/dist/esm/casino-extrainfo-baccarat.entry.js +1 -5
  28. package/dist/esm/casino-extrainfo-blackjack.entry.js +1 -6
  29. package/dist/esm/casino-extrainfo-roulette.entry.js +4 -4
  30. package/dist/esm/casino-game-thumb-view.js +3 -3
  31. package/dist/esm/casino-game-thumb-view_2.entry.js +51 -40
  32. package/dist/esm/casino-game-thumbnail-betlimit_2.entry.js +2 -7
  33. package/dist/esm/casino-normal-game-thumbnail.entry.js +1 -2
  34. package/dist/esm/{index-bbccad17.js → index-93708583.js} +249 -145
  35. package/dist/esm/loader.js +2 -2
  36. package/package.json +1 -1
  37. package/dist/casino-game-thumb-view/p-3ac1ceb2.entry.js +0 -7
  38. package/dist/casino-game-thumb-view/p-6f25852e.entry.js +0 -1
  39. package/dist/casino-game-thumb-view/p-89d09251.js +0 -2
  40. package/dist/casino-game-thumb-view/p-c7ae1205.entry.js +0 -1
  41. package/dist/casino-game-thumb-view/p-cbb0566f.entry.js +0 -1
  42. package/dist/casino-game-thumb-view/p-cfd13ff8.entry.js +0 -1
@@ -1 +1 @@
1
- import{p as e,b as a}from"./p-89d09251.js";export{s as setNonce}from"./p-89d09251.js";import{g as n}from"./p-e1255160.js";(()=>{const a=import.meta.url,n={};return""!==a&&(n.resourcesUrl=new URL(".",a).href),e(n)})().then((async e=>(await n(),a([["p-6f25852e",[[4,"casino-game-thumbnail-extrainfo",{language:[1],betLimit:[32],gameInfo:[32],gameDetails:[32],onGameLoaded:[64],onGameDetailUpdated:[64]}],[0,"casino-game-thumbnail-betlimit",{betLimit:[16],numberOfPlayers:[2,"number-of-players"]}]]],["p-c9da4e8b",[[0,"casino-extrainfo-baccarat",{language:[1],showRoundBoard:[4,"show-round-board"],gameInfo:[32],gameDetails:[32],onGameLoaded:[64],onGameDetailUpdated:[64],onBaccaratResultChanged:[64]},null,{gameDetails:["gameDetailsHandler"]}]]],["p-cbb0566f",[[0,"casino-extrainfo-blackjack",{language:[1],gameInfo:[32],gameDetails:[32],seatsStatus:[32],isTableFull:[32],onGameLoaded:[64],onGameDetailUpdated:[64]}]]],["p-cfd13ff8",[[0,"casino-extrainfo-roulette",{language:[1],gameInfo:[32],gameDetails:[32],showLiveClass:[32],onGameLoaded:[64],onGameDetailUpdated:[64]}]]],["p-c7ae1205",[[0,"casino-normal-game-thumbnail",{language:[1],onGameLoaded:[64]}]]],["p-3ac1ceb2",[[1,"casino-game-thumb-view",{language:[1],endpoint:[1],userId:[8,"user-id"],showGameName:[4,"show-game-name"],session:[1],showFavoredCategory:[4,"show-favored-category"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],integratedGameframeMobile:[4,"integrated-gameframe-mobile"],gamepageModalurl:[1,"gamepage-modalurl"],integratedGameframeDesktop:[4,"integrated-gameframe-desktop"],loadDetails:[4,"load-details"],showRoundBoard:[4,"show-round-board"],visibilityConnect:[1,"visibility-connect"],connectLive:[1,"connect-live"],gameCategory:[1,"game-category"],livelobbyEndpoint:[1,"livelobby-endpoint"],gameId:[8,"game-id"],gameName:[1,"game-name"],subVendor:[1,"sub-vendor"],gameVendor:[1,"game-vendor"],hasFunMode:[4,"has-fun-mode"],hasAnonymousFunMode:[4,"has-anonymous-fun-mode"],platform:[1],thumbnail:[1],isFavorite:[4,"is-favorite"],isNew:[4,"is-new"],cellSize:[1,"cell-size"],gameTag:[1,"game-tag"],type:[1],gameInfo:[32],isTableFull:[32],hover:[32]},[[1,"mouseenter","handleMouseOver"],[1,"mouseleave","handleMouseOver"],[4,"gameFavorited","gameFavoritedHandler"],[0,"gameDetailChange","gameDetailChangeHandler"]],{session:["onSessionChanged"],userId:["onSessionChanged"],isTableFull:["onTableFullChanged"],connectLive:["connectLiveHandler"],visibilityConnect:["visibilityConnectHandler"]}],[4,"casino-game-thumbnail-overlay",{gamepageModalurl:[1,"gamepage-modalurl"],integratedGameframeMobile:[4,"integrated-gameframe-mobile"],integratedGameframeDesktop:[4,"integrated-gameframe-desktop"],language:[1],gameName:[1,"game-name"],gameVendor:[1,"game-vendor"],gameId:[8,"game-id"],hasFunMode:[4,"has-fun-mode"]}]]]],e))));
1
+ import{p as e,b as a}from"./p-9c9196db.js";export{s as setNonce}from"./p-9c9196db.js";import{g as n}from"./p-e1255160.js";(()=>{const a=import.meta.url,n={};return""!==a&&(n.resourcesUrl=new URL(".",a).href),e(n)})().then((async e=>(await n(),a([["p-980e0858",[[4,"casino-game-thumbnail-extrainfo",{language:[1],betLimit:[32],gameInfo:[32],gameDetails:[32],onGameLoaded:[64],onGameDetailUpdated:[64]}],[0,"casino-game-thumbnail-betlimit",{betLimit:[16],numberOfPlayers:[2,"number-of-players"]}]]],["p-8849ee66",[[0,"casino-extrainfo-baccarat",{language:[1],showRoundBoard:[4,"show-round-board"],gameInfo:[32],gameDetails:[32],onGameLoaded:[64],onGameDetailUpdated:[64],onBaccaratResultChanged:[64]},null,{gameDetails:["gameDetailsHandler"]}]]],["p-9811b6a0",[[0,"casino-extrainfo-blackjack",{language:[1],gameInfo:[32],gameDetails:[32],seatsStatus:[32],isTableFull:[32],onGameLoaded:[64],onGameDetailUpdated:[64]}]]],["p-f9b2c459",[[0,"casino-extrainfo-roulette",{language:[1],gameInfo:[32],gameDetails:[32],showLiveClass:[32],onGameLoaded:[64],onGameDetailUpdated:[64]}]]],["p-54779d54",[[0,"casino-normal-game-thumbnail",{language:[1],onGameLoaded:[64]}]]],["p-eba72e50",[[1,"casino-game-thumb-view",{language:[1],endpoint:[1],userId:[8,"user-id"],showGameName:[4,"show-game-name"],session:[1],showFavoredCategory:[4,"show-favored-category"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],integratedGameframeMobile:[4,"integrated-gameframe-mobile"],gamepageModalurl:[1,"gamepage-modalurl"],integratedGameframeDesktop:[4,"integrated-gameframe-desktop"],loadDetails:[4,"load-details"],showRoundBoard:[4,"show-round-board"],visibilityConnect:[1,"visibility-connect"],connectLive:[1,"connect-live"],gameCategory:[1,"game-category"],livelobbyEndpoint:[1,"livelobby-endpoint"],gameId:[8,"game-id"],gameName:[1,"game-name"],subVendor:[1,"sub-vendor"],gameVendor:[1,"game-vendor"],hasFunMode:[4,"has-fun-mode"],hasAnonymousFunMode:[4,"has-anonymous-fun-mode"],platform:[1],thumbnail:[1],isFavorite:[4,"is-favorite"],isNew:[4,"is-new"],cellSize:[1,"cell-size"],gameTag:[1,"game-tag"],type:[1],gameInfo:[32],isTableFull:[32],hover:[32]},[[1,"mouseenter","handleMouseOver"],[1,"mouseleave","handleMouseOver"],[4,"gameFavorited","gameFavoritedHandler"],[0,"gameDetailChange","gameDetailChangeHandler"]],{session:["onSessionChanged"],userId:["onSessionChanged"],isTableFull:["onTableFullChanged"],connectLive:["connectLiveHandler"],visibilityConnect:["visibilityConnectHandler"]}],[4,"casino-game-thumbnail-overlay",{gamepageModalurl:[1,"gamepage-modalurl"],integratedGameframeMobile:[4,"integrated-gameframe-mobile"],integratedGameframeDesktop:[4,"integrated-gameframe-desktop"],language:[1],gameName:[1,"game-name"],gameVendor:[1,"game-vendor"],gameId:[8,"game-id"],hasFunMode:[4,"has-fun-mode"]}]]]],e))));
@@ -0,0 +1 @@
1
+ import{r as a,h as e,H as s}from"./p-9c9196db.js";const o=class{constructor(e){a(this,e)}async onGameLoaded(a){var e;null===(e=this.infoWrapperRef)||void 0===e||e.onGameLoaded(a)}render(){return e(s,{key:"65ecbdb989b2b98974bbe60db24f31032e2e10a7"},e("casino-game-thumbnail-extrainfo",{key:"3633837b728bc4f18745cd87180b73359a403816",ref:a=>this.infoWrapperRef=a,language:this.language}))}};o.style=":host{display:block}";export{o as casino_normal_game_thumbnail}
@@ -1 +1 @@
1
- import{r as t,h as i,H as s}from"./p-89d09251.js";import{b as n}from"./p-2d02adb1.js";var a,e;!function(t){t.ROULETTE="ROULETTE",t.POKER="POKER",t.BLACKJACK="BLACKJACK"}(a||(a={})),function(t){t.PLAYER="Player",t.WINNER="Banker",t.TIE="Tie"}(e||(e={}));class h{constructor(){this.svgNS="http://www.w3.org/2000/svg",this.svgVersion="1.1",this.markGroupExtraClass={name:"",strokeWidth:1.8,cellPadding:6}}resetSvg(){this.svgGroupObj.innerHTML=""}createTag(t,i){let s=document.createElementNS(this.svgNS,t);return Object.keys(i).forEach((t=>{s.setAttribute(t,i[t])})),s}createHLine(t){return this.createTag("line",{x1:0,x2:this.svgWidth,y1:t*this.cellHeight,y2:t*this.cellHeight})}createVLine(t){return this.createTag("line",{x1:t*this.cellWidth,x2:t*this.cellWidth,y1:0,y2:this.svgHeight})}createBaccaratBoard(t){this.parentEle=t,this.svgWidth=t.clientWidth,this.cellWidth=this.svgWidth/40,this.cellHeight=this.cellWidth,this.svgHeight=6*this.cellHeight;let i={};this.svgWidth<300?i={name:"Min",strokeWidth:.8,cellPadding:2}:this.svgWidth>=300&&this.svgWidth<500&&(i={name:"Mid",strokeWidth:1.5,cellPadding:3.8}),this.markGroupExtraClass=Object.assign(Object.assign({},this.markGroupExtraClass),i),this.markGroupExtraClass.fontSize=this.cellWidth-.8*this.markGroupExtraClass.cellPadding,this.markGroupExtraClass.pairDotR=this.markGroupExtraClass.strokeWidth/2,this.markGroupExtraClass.pairBackDotR=this.markGroupExtraClass.pairDotR+.4;let s=this.createTag("svg",{xmlns:this.svgNS,version:this.svgVersion,width:"100%"}),n=this.createTag("g",{style:"cursor: pointer",stroke:"#a1acb696","stroke-width":"0.6px",fill:"transparent"}),a=this.createTag("g",{style:"cursor: pointer",class:`BoardRoundsGroup ${this.markGroupExtraClass.name}`,"stroke-width":this.markGroupExtraClass.strokeWidth,fill:"transparent"});for(let t=0;t<7;t++)n.appendChild(this.createHLine(t));for(let t=0;t<41;t++)n.appendChild(this.createVLine(t));t.setAttribute("style",`height: ${this.svgHeight}px`),s.appendChild(n),s.appendChild(a),t.replaceChildren(s),this.svgGroupObj=a}getRadius(){return(this.cellHeight-this.markGroupExtraClass.cellPadding)/2}addAnimate(t){let i=this.createTag("animate",{attributeName:"opacity",attributeType:"XML",from:"0",to:.8,repeatCount:"5",begin:"0s",dur:"1.5s",calcMode:"spline",keySplines:"0.1 0.8 0.9 0.1",fill:"freeze"});t.appendChild(i)}markNewRound(t,i,s,n=!1){let a=this.getCenterPoint(t,i),h=this.createTag("g",{class:`Round ${n?"NewRound":""} ${s.winner===e.TIE?"Tie":""}`,part:"Round "+(n?"NewRound":""),opacity:n?.1:1});if(s.winner!==e.TIE){if(h.appendChild(this.createTag("circle",{r:this.getRadius(),class:"Round",stroke:s.color,cx:t*this.cellHeight+this.cellHeight/2,cy:i*this.cellHeight+this.cellHeight/2})),s.ties){if(h.appendChild(this.createTieSvg(t,i)),s.ties>1){let t=this.createTag("text",{x:a.cx-1.5,y:a.cy+this.markGroupExtraClass.fontSize/2-1.1,fill:"#12153d",class:"TieNumber","font-size":`${this.markGroupExtraClass.fontSize}px`,"font-weight":this.markGroupExtraClass.fontSize>7?"bold":""});t.innerHTML=s.ties,h.appendChild(t)}this.svgGroupObj.appendChild(h)}s.bankerPair&&this.createPairDot(t,i,s.pairColor.banker,225).forEach((t=>h.appendChild(t))),s.playerPair&&this.createPairDot(t,i,s.pairColor.player,45).forEach((t=>h.appendChild(t))),s.includeAnimate&&this.addAnimate(h),this.svgGroupObj.appendChild(h)}else{if(h.appendChild(this.createTieSvg(t,i)),this.svgGroupObj.appendChild(h),s.ties&&s.ties>1){let t=this.createTag("text",{x:a.cx-1.5,y:a.cy+this.markGroupExtraClass.fontSize/2-1.1,fill:"#12153d",class:"TieNumber","font-size":`${this.markGroupExtraClass.fontSize}px`,"font-weight":this.markGroupExtraClass.fontSize>7?"bold":""});t.innerHTML=s.ties,h.appendChild(t)}this.svgGroupObj.appendChild(h)}}markRound(t,i,s,n=!1){let a=this.createTag("circle",{r:this.getRadius(),class:"Round",stroke:s,cx:t*this.cellHeight+this.cellHeight/2,cy:i*this.cellHeight+this.cellHeight/2});n&&this.addAnimate(a),this.svgGroupObj.appendChild(a)}getCenterPoint(t,i){return{cx:t*this.cellHeight+this.cellHeight/2,cy:i*this.cellHeight+this.cellHeight/2}}createTieSvg(t,i){let s=this.getCenterPoint(t,i),n=this.cellHeight/2;const a=s.cx+n*Math.cos(135*Math.PI/180),e=s.cy+n*Math.sin(135*Math.PI/180),h=s.cx+n*Math.cos(315*Math.PI/180),o=s.cy+n*Math.sin(315*Math.PI/180);return this.createTag("line",{x1:a,y1:e,x2:h,y2:o,class:"Tie",stroke:"green",opacity:"0.8","stroke-width":"1.8px"})}createPairDot(t,i,s,n){let a=this.getCenterPoint(t,i),e=this.getRadius()+this.markGroupExtraClass.pairDotR;const h=a.cx+e*Math.cos(n*Math.PI/180),o=a.cy+e*Math.sin(n*Math.PI/180);return[this.createTag("circle",{cx:h,cy:o,r:this.markGroupExtraClass.pairBackDotR,class:"DotBack",stroke:"#fff"}),this.createTag("circle",{cx:h,cy:o,r:this.markGroupExtraClass.pairDotR,class:"Dot",stroke:s,"stroke-width":"0.8px",fill:s})]}markTie(t,i,s=!1){let n=this.createTieSvg(t,i);s&&this.addAnimate(n),this.svgGroupObj.appendChild(n)}markPair(t,i,s,n){let a=this.getCenterPoint(t,i),e=this.getRadius()+this.markGroupExtraClass.pairDotR;const h=a.cx+e*Math.cos(n*Math.PI/180),o=a.cy+e*Math.sin(n*Math.PI/180);this.svgGroupObj.appendChild(this.createTag("circle",{cx:h,cy:o,r:this.markGroupExtraClass.pairBackDotR,class:"DotBack",stroke:"#fff"})),this.svgGroupObj.appendChild(this.createTag("circle",{cx:h,cy:o,r:this.markGroupExtraClass.pairDotR,class:"Dot",stroke:s,"stroke-width":"0.8px",fill:s}))}markBankerPair(t,i,s){this.markPair(t,i,s,225)}markPlayerPair(t,i,s){this.markPair(t,i,s,45)}}const o=class{constructor(i){t(this,i),this.baccaratSvg=new h,this.isBoardInited=!1,this.filledCells=[],this.language=void 0,this.showRoundBoard=void 0,this.gameInfo=void 0,this.gameDetails=void 0}gameDetailsHandler(t,i){!t.isOpen||i&&i.isOpen||this.showRoundBoard&&setTimeout((()=>{this.initBaccaratRoundsBoard()}),100)}async onGameLoaded(t){var i;this.gameInfo=t,this.gameDetails=this.gameInfo.details,null===(i=this.infoWrapperRef)||void 0===i||i.onGameLoaded(this.gameInfo)}async onGameDetailUpdated(t){var i;this.gameInfo.details=this.gameDetails=t,this.gameDetails=Object.assign({},this.gameDetails),null===(i=this.infoWrapperRef)||void 0===i||i.onGameDetailUpdated(t),setTimeout((()=>{this.isBoardInited=!0}),200)}async onBaccaratResultChanged(t){if(!t||!this.baccaratRef||this.isResetingRoundBoard)return;let i;this.isBoardInited&&(0==t.length||1==t.length&&(t[0].winner==e.TIE||0==t[0].location.column&&0==t[0].location.row))&&(this.isResetingRoundBoard=!0,(()=>{console.log("Reset Baccarat Board."),this.filledCells=[],this.baccaratSvg.resetSvg(),i=null})(),setTimeout((()=>{this.isResetingRoundBoard=!1}),1e3)),t.forEach(((s,a)=>{if(s.winner==e.TIE){if(a==t.length-1&&(!i||i&&0==i.location.column&&0==i.location.row)){let t="0-0-T";-1==this.filledCells.indexOf(t)&&(this.baccaratSvg.markNewRound(0,0,Object.assign(Object.assign({},s),{pairColor:n}),this.isBoardInited),this.filledCells.push(t))}return}const h=`${s.location.column}-${s.location.row}`,o=`${h}-T`;s.ties>0&&-1==this.filledCells.indexOf(o)&&(this.baccaratSvg.markNewRound(s.location.column,s.location.row,Object.assign(Object.assign({},s),{winner:e.TIE}),this.isBoardInited),this.filledCells.push(o)),i=s,-1==this.filledCells.indexOf(h)&&(this.baccaratSvg.markNewRound(s.location.column,s.location.row,Object.assign(Object.assign({},s),{pairColor:n}),this.isBoardInited),this.filledCells.push(h))}))}initBaccaratRoundsBoard(){var t;this.baccaratSvg.createBaccaratBoard(this.baccaratRef),(null===(t=this.gameDetails.results)||void 0===t?void 0:t.length)>0&&this.onBaccaratResultChanged(this.gameDetails.results)}render(){var t;return i(s,{key:"88be397ce6762f3a57c76c84b40f48dc2ba23db7"},i("casino-game-thumbnail-extrainfo",{key:"177c57f40ef84d7dfa0f458336e558e195aa9ac6",ref:t=>this.infoWrapperRef=t,language:this.language},(null===(t=this.gameDetails)||void 0===t?void 0:t.isOpen)&&this.showRoundBoard&&i("div",{key:"7b2db6ad68e6d9bcac9b97785b2c05b05d146836",slot:"category-details",class:"LiveIcons",part:"LiveIcons"},i("div",{key:"004301f9c4f9bb574757e4eace077bd9fac57472",id:"boardContainer",part:"BaccaratBoard",class:"BaccaratBoard",ref:t=>this.baccaratRef=t}))))}static get watchers(){return{gameDetails:["gameDetailsHandler"]}}};o.style=":host {\n display: block;\n}\n\n.BaccaratBoard {\n container-type: inline-size;\n min-height: 30px;\n width: 100%;\n}\n.BaccaratBoard svg {\n background: #fff;\n opacity: 0.99;\n height: 100%;\n}\n\n.LiveProps.BaccaratProps div.LiveIcons {\n margin-bottom: 0px;\n padding: 0px;\n width: 100%;\n}\n\nsvg circle {\n transition: stroke-dashoffset 0s ease 2s;\n}\n\ng.BoardRoundsGroup {\n stroke-width: 1.8px;\n}\n\n@container (max-width: 300px) {\n g.BoardRoundsGroup {\n stroke-width: 0.9px;\n }\n}\nsvg .Round.NewRound {\n opacity: 1;\n -webkit-animation-name: fadeInFromNone;\n animation-name: fadeInFromNone;\n -webkit-animation-duration: 1.5s;\n animation-duration: 1.5s;\n -webkit-animation-fill-mode: both;\n animation-fill-mode: both;\n}\n\n@-webkit-keyframes fadeInFromNone {\n 0% {\n display: none;\n opacity: 0;\n }\n 1% {\n display: block;\n opacity: 0;\n }\n 100% {\n display: block;\n opacity: 1;\n }\n}\n@-moz-keyframes fadeInFromNone {\n 0% {\n display: none;\n opacity: 0;\n }\n 1% {\n display: block;\n opacity: 0;\n }\n 100% {\n display: block;\n opacity: 1;\n }\n}\n@-o-keyframes fadeInFromNone {\n 0% {\n display: none;\n opacity: 0;\n }\n 1% {\n display: block;\n opacity: 0;\n }\n 30% {\n display: block;\n opacity: 1;\n }\n 60% {\n display: block;\n opacity: 0;\n }\n 100% {\n display: block;\n opacity: 1;\n }\n}\n@keyframes fadeInFromNone {\n 0% {\n display: none;\n opacity: 0;\n }\n 1% {\n display: block;\n opacity: 0;\n }\n 30% {\n display: block;\n opacity: 1;\n }\n 60% {\n display: block;\n opacity: 0;\n }\n 100% {\n display: block;\n opacity: 1;\n }\n}";export{o as casino_extrainfo_baccarat}
1
+ import{r as t,h as i,H as s}from"./p-9c9196db.js";import{b as n}from"./p-2d02adb1.js";var a,e;!function(t){t.ROULETTE="ROULETTE",t.POKER="POKER",t.BLACKJACK="BLACKJACK"}(a||(a={})),function(t){t.PLAYER="Player",t.WINNER="Banker",t.TIE="Tie"}(e||(e={}));class h{constructor(){this.svgNS="http://www.w3.org/2000/svg",this.svgVersion="1.1",this.markGroupExtraClass={name:"",strokeWidth:1.8,cellPadding:6}}resetSvg(){this.svgGroupObj.innerHTML=""}createTag(t,i){let s=document.createElementNS(this.svgNS,t);return Object.keys(i).forEach((t=>{s.setAttribute(t,i[t])})),s}createHLine(t){return this.createTag("line",{x1:0,x2:this.svgWidth,y1:t*this.cellHeight,y2:t*this.cellHeight})}createVLine(t){return this.createTag("line",{x1:t*this.cellWidth,x2:t*this.cellWidth,y1:0,y2:this.svgHeight})}createBaccaratBoard(t){this.parentEle=t,this.svgWidth=t.clientWidth,this.cellWidth=this.svgWidth/40,this.cellHeight=this.cellWidth,this.svgHeight=6*this.cellHeight;let i={};this.svgWidth<300?i={name:"Min",strokeWidth:.8,cellPadding:2}:this.svgWidth>=300&&this.svgWidth<500&&(i={name:"Mid",strokeWidth:1.5,cellPadding:3.8}),this.markGroupExtraClass=Object.assign(Object.assign({},this.markGroupExtraClass),i),this.markGroupExtraClass.fontSize=this.cellWidth-.8*this.markGroupExtraClass.cellPadding,this.markGroupExtraClass.pairDotR=this.markGroupExtraClass.strokeWidth/2,this.markGroupExtraClass.pairBackDotR=this.markGroupExtraClass.pairDotR+.4;let s=this.createTag("svg",{xmlns:this.svgNS,version:this.svgVersion,width:"100%"}),n=this.createTag("g",{style:"cursor: pointer",stroke:"#a1acb696","stroke-width":"0.6px",fill:"transparent"}),a=this.createTag("g",{style:"cursor: pointer",class:`BoardRoundsGroup ${this.markGroupExtraClass.name}`,"stroke-width":this.markGroupExtraClass.strokeWidth,fill:"transparent"});for(let t=0;t<7;t++)n.appendChild(this.createHLine(t));for(let t=0;t<41;t++)n.appendChild(this.createVLine(t));t.setAttribute("style",`height: ${this.svgHeight}px`),s.appendChild(n),s.appendChild(a),t.replaceChildren(s),this.svgGroupObj=a}getRadius(){return(this.cellHeight-this.markGroupExtraClass.cellPadding)/2}addAnimate(t){let i=this.createTag("animate",{attributeName:"opacity",attributeType:"XML",from:"0",to:.8,repeatCount:"5",begin:"0s",dur:"1.5s",calcMode:"spline",keySplines:"0.1 0.8 0.9 0.1",fill:"freeze"});t.appendChild(i)}markNewRound(t,i,s,n=!1){let a=this.getCenterPoint(t,i),h=this.createTag("g",{class:`Round ${n?"NewRound":""} ${s.winner===e.TIE?"Tie":""}`,part:"Round "+(n?"NewRound":""),opacity:n?.1:1});if(s.winner!==e.TIE){if(h.appendChild(this.createTag("circle",{r:this.getRadius(),class:"Round",stroke:s.color,cx:t*this.cellHeight+this.cellHeight/2,cy:i*this.cellHeight+this.cellHeight/2})),s.ties){if(h.appendChild(this.createTieSvg(t,i)),s.ties>1){let t=this.createTag("text",{x:a.cx-1.5,y:a.cy+this.markGroupExtraClass.fontSize/2-1.1,fill:"#12153d",class:"TieNumber","font-size":`${this.markGroupExtraClass.fontSize}px`,"font-weight":this.markGroupExtraClass.fontSize>7?"bold":""});t.innerHTML=s.ties,h.appendChild(t)}this.svgGroupObj.appendChild(h)}s.bankerPair&&this.createPairDot(t,i,s.pairColor.banker,225).forEach((t=>h.appendChild(t))),s.playerPair&&this.createPairDot(t,i,s.pairColor.player,45).forEach((t=>h.appendChild(t))),s.includeAnimate&&this.addAnimate(h),this.svgGroupObj.appendChild(h)}else{if(h.appendChild(this.createTieSvg(t,i)),this.svgGroupObj.appendChild(h),s.ties&&s.ties>1){let t=this.createTag("text",{x:a.cx-1.5,y:a.cy+this.markGroupExtraClass.fontSize/2-1.1,fill:"#12153d",class:"TieNumber","font-size":`${this.markGroupExtraClass.fontSize}px`,"font-weight":this.markGroupExtraClass.fontSize>7?"bold":""});t.innerHTML=s.ties,h.appendChild(t)}this.svgGroupObj.appendChild(h)}}markRound(t,i,s,n=!1){let a=this.createTag("circle",{r:this.getRadius(),class:"Round",stroke:s,cx:t*this.cellHeight+this.cellHeight/2,cy:i*this.cellHeight+this.cellHeight/2});n&&this.addAnimate(a),this.svgGroupObj.appendChild(a)}getCenterPoint(t,i){return{cx:t*this.cellHeight+this.cellHeight/2,cy:i*this.cellHeight+this.cellHeight/2}}createTieSvg(t,i){let s=this.getCenterPoint(t,i),n=this.cellHeight/2;const a=s.cx+n*Math.cos(135*Math.PI/180),e=s.cy+n*Math.sin(135*Math.PI/180),h=s.cx+n*Math.cos(315*Math.PI/180),o=s.cy+n*Math.sin(315*Math.PI/180);return this.createTag("line",{x1:a,y1:e,x2:h,y2:o,class:"Tie",stroke:"green",opacity:"0.8","stroke-width":"1.8px"})}createPairDot(t,i,s,n){let a=this.getCenterPoint(t,i),e=this.getRadius()+this.markGroupExtraClass.pairDotR;const h=a.cx+e*Math.cos(n*Math.PI/180),o=a.cy+e*Math.sin(n*Math.PI/180);return[this.createTag("circle",{cx:h,cy:o,r:this.markGroupExtraClass.pairBackDotR,class:"DotBack",stroke:"#fff"}),this.createTag("circle",{cx:h,cy:o,r:this.markGroupExtraClass.pairDotR,class:"Dot",stroke:s,"stroke-width":"0.8px",fill:s})]}markTie(t,i,s=!1){let n=this.createTieSvg(t,i);s&&this.addAnimate(n),this.svgGroupObj.appendChild(n)}markPair(t,i,s,n){let a=this.getCenterPoint(t,i),e=this.getRadius()+this.markGroupExtraClass.pairDotR;const h=a.cx+e*Math.cos(n*Math.PI/180),o=a.cy+e*Math.sin(n*Math.PI/180);this.svgGroupObj.appendChild(this.createTag("circle",{cx:h,cy:o,r:this.markGroupExtraClass.pairBackDotR,class:"DotBack",stroke:"#fff"})),this.svgGroupObj.appendChild(this.createTag("circle",{cx:h,cy:o,r:this.markGroupExtraClass.pairDotR,class:"Dot",stroke:s,"stroke-width":"0.8px",fill:s}))}markBankerPair(t,i,s){this.markPair(t,i,s,225)}markPlayerPair(t,i,s){this.markPair(t,i,s,45)}}const o=class{constructor(i){t(this,i),this.baccaratSvg=new h,this.isBoardInited=!1,this.filledCells=[]}gameDetailsHandler(t,i){!t.isOpen||i&&i.isOpen||this.showRoundBoard&&setTimeout((()=>{this.initBaccaratRoundsBoard()}),100)}async onGameLoaded(t){var i;this.gameInfo=t,this.gameDetails=this.gameInfo.details,null===(i=this.infoWrapperRef)||void 0===i||i.onGameLoaded(this.gameInfo)}async onGameDetailUpdated(t){var i;this.gameInfo.details=this.gameDetails=t,this.gameDetails=Object.assign({},this.gameDetails),null===(i=this.infoWrapperRef)||void 0===i||i.onGameDetailUpdated(t),setTimeout((()=>{this.isBoardInited=!0}),200)}async onBaccaratResultChanged(t){if(!t||!this.baccaratRef||this.isResetingRoundBoard)return;let i;this.isBoardInited&&(0==t.length||1==t.length&&(t[0].winner==e.TIE||0==t[0].location.column&&0==t[0].location.row))&&(this.isResetingRoundBoard=!0,(()=>{console.log("Reset Baccarat Board."),this.filledCells=[],this.baccaratSvg.resetSvg(),i=null})(),setTimeout((()=>{this.isResetingRoundBoard=!1}),1e3)),t.forEach(((s,a)=>{if(s.winner==e.TIE){if(a==t.length-1&&(!i||i&&0==i.location.column&&0==i.location.row)){let t="0-0-T";-1==this.filledCells.indexOf(t)&&(this.baccaratSvg.markNewRound(0,0,Object.assign(Object.assign({},s),{pairColor:n}),this.isBoardInited),this.filledCells.push(t))}return}const h=`${s.location.column}-${s.location.row}`,o=`${h}-T`;s.ties>0&&-1==this.filledCells.indexOf(o)&&(this.baccaratSvg.markNewRound(s.location.column,s.location.row,Object.assign(Object.assign({},s),{winner:e.TIE}),this.isBoardInited),this.filledCells.push(o)),i=s,-1==this.filledCells.indexOf(h)&&(this.baccaratSvg.markNewRound(s.location.column,s.location.row,Object.assign(Object.assign({},s),{pairColor:n}),this.isBoardInited),this.filledCells.push(h))}))}initBaccaratRoundsBoard(){var t;this.baccaratSvg.createBaccaratBoard(this.baccaratRef),(null===(t=this.gameDetails.results)||void 0===t?void 0:t.length)>0&&this.onBaccaratResultChanged(this.gameDetails.results)}render(){var t;return i(s,{key:"88be397ce6762f3a57c76c84b40f48dc2ba23db7"},i("casino-game-thumbnail-extrainfo",{key:"177c57f40ef84d7dfa0f458336e558e195aa9ac6",ref:t=>this.infoWrapperRef=t,language:this.language},(null===(t=this.gameDetails)||void 0===t?void 0:t.isOpen)&&this.showRoundBoard&&i("div",{key:"7b2db6ad68e6d9bcac9b97785b2c05b05d146836",slot:"category-details",class:"LiveIcons",part:"LiveIcons"},i("div",{key:"004301f9c4f9bb574757e4eace077bd9fac57472",id:"boardContainer",part:"BaccaratBoard",class:"BaccaratBoard",ref:t=>this.baccaratRef=t}))))}static get watchers(){return{gameDetails:["gameDetailsHandler"]}}};o.style=":host {\n display: block;\n}\n\n.BaccaratBoard {\n container-type: inline-size;\n min-height: 30px;\n width: 100%;\n}\n.BaccaratBoard svg {\n background: #fff;\n opacity: 0.99;\n height: 100%;\n}\n\n.LiveProps.BaccaratProps div.LiveIcons {\n margin-bottom: 0px;\n padding: 0px;\n width: 100%;\n}\n\nsvg circle {\n transition: stroke-dashoffset 0s ease 2s;\n}\n\ng.BoardRoundsGroup {\n stroke-width: 1.8px;\n}\n\n@container (max-width: 300px) {\n g.BoardRoundsGroup {\n stroke-width: 0.9px;\n }\n}\nsvg .Round.NewRound {\n opacity: 1;\n -webkit-animation-name: fadeInFromNone;\n animation-name: fadeInFromNone;\n -webkit-animation-duration: 1.5s;\n animation-duration: 1.5s;\n -webkit-animation-fill-mode: both;\n animation-fill-mode: both;\n}\n\n@-webkit-keyframes fadeInFromNone {\n 0% {\n display: none;\n opacity: 0;\n }\n 1% {\n display: block;\n opacity: 0;\n }\n 100% {\n display: block;\n opacity: 1;\n }\n}\n@-moz-keyframes fadeInFromNone {\n 0% {\n display: none;\n opacity: 0;\n }\n 1% {\n display: block;\n opacity: 0;\n }\n 100% {\n display: block;\n opacity: 1;\n }\n}\n@-o-keyframes fadeInFromNone {\n 0% {\n display: none;\n opacity: 0;\n }\n 1% {\n display: block;\n opacity: 0;\n }\n 30% {\n display: block;\n opacity: 1;\n }\n 60% {\n display: block;\n opacity: 0;\n }\n 100% {\n display: block;\n opacity: 1;\n }\n}\n@keyframes fadeInFromNone {\n 0% {\n display: none;\n opacity: 0;\n }\n 1% {\n display: block;\n opacity: 0;\n }\n 30% {\n display: block;\n opacity: 1;\n }\n 60% {\n display: block;\n opacity: 0;\n }\n 100% {\n display: block;\n opacity: 1;\n }\n}";export{o as casino_extrainfo_baccarat}
@@ -0,0 +1 @@
1
+ import{r as e,h as i}from"./p-9c9196db.js";import{n as t,a,h as s}from"./p-d2580653.js";import{t as n}from"./p-59ceeaaa.js";import{W as o,c as r}from"./p-2d02adb1.js";const l={AED:"د.إ",AFN:"؋",ALL:"L",AMD:"֏",ANG:"ƒ",AOA:"Kz",ARS:"$",AUD:"$",AWG:"ƒ",AZN:"ман",BAM:"KM",BBD:"$",BDT:"৳",BGN:"лв",BHD:".د.ب",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BRL:"R$",BSD:"$",BTC:"฿",BTN:"Nu.",BWP:"P",BYR:"p.",BZD:"BZ$",CAD:"$",CDF:"FC",CHF:"CHF",CLP:"$",CNY:"¥",COP:"$",CRC:"₡",CUC:"$",CUP:"₱",CVE:"$",CZK:"Kč",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"دج",EEK:"kr",EGP:"£",ERN:"Nfk",ETB:"Br",ETH:"Ξ",EUR:"€",FJD:"$",FKP:"£",GBP:"£",GEL:"₾",GGP:"£",GHC:"₵",GHS:"GH₵",GIP:"£",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"₪",IMP:"£",INR:"₹",IQD:"ع.د",IRR:"﷼",ISK:"kr",JEP:"£",JMD:"J$",JOD:"JD",JPY:"¥",KES:"KSh",KGS:"лв",KHR:"៛",KMF:"CF",KPW:"₩",KRW:"₩",KWD:"KD",KYD:"$",KZT:"лв",LAK:"₭",LBP:"£",LKR:"₨",LRD:"$",LSL:"M",LTC:"Ł",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"ден",MMK:"K",MNT:"₮",MOP:"MOP$",MRO:"UM",MUR:"₨",MVR:"Rf",MWK:"MK",MXN:"$",MYR:"RM",MZN:"MT",NAD:"$",NGN:"₦",NIO:"C$",NOK:"kr",NPR:"₨",NZD:"$",OMR:"﷼",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"₱",PKR:"₨",PLN:"zł",PYG:"Gs",QAR:"﷼",RMB:"¥",RON:"lei",RSD:"Дин.",RUB:"₽",RWF:"R₣",SAR:"﷼",SBD:"$",SCR:"₨",SDG:"ج.س.",SEK:"kr",SGD:"$",SHP:"£",SLL:"Le",SOS:"S",SRD:"$",SSP:"£",STD:"Db",SVC:"$",SYP:"£",SZL:"E",THB:"฿",TJS:"SM",TMT:"T",TND:"د.ت",TOP:"T$",TRL:"₤",TRY:"₺",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"₴",UGX:"USh",USD:"$",UYU:"$U",UZS:"лв",VEF:"Bs",VND:"₫",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"Ƀ",XCD:"$",XOF:"CFA",XPF:"₣",YER:"﷼",ZAR:"R",ZWD:"Z$"},m=class{constructor(i){e(this,i),this.defaultCurrency="EUR",this.isBetLimitAvailable=!1}getCurrencySymbols(e){return l[e]}componentWillRender(){if(this.betLimit){const e=this.betLimit.max?this.betLimit.max:this.betLimit.min||{};this.isBetLimitAvailable=1===Object.keys(e).length,this.currency=this.isBetLimitAvailable?Object.keys(e)[0]:this.defaultCurrency}}render(){return this.isBetLimitAvailable?i("p",{class:"LiveLimits"},i("span",{class:"BetLimitLeft"},this.getCurrencySymbols(this.currency)," ",t(this.betLimit.min[this.currency])," -"," ",t(this.betLimit.max[this.currency])),(this.numberOfPlayers||0==this.numberOfPlayers)&&i("span",{class:"BetLimitRight"},i("svg",{fill:"white",width:"13",height:"13",viewBox:"0 0 13 14",xmlns:"http://www.w3.org/2000/svg"},i("path",{d:"M4 8.2a4.6 4.6 0 0 0 5 0c2.7.8 4 2.6 4 4.8H0c0-2.2 1.3-4 4-4.8zM6.6 8c2 0 3.8-1.7 3.8-4 0-2.1-1.7-4-3.8-4a3.9 3.9 0 0 0-3.8 4c0 2.2 1.7 4 3.8 4z"})),i("span",{class:"NrOfPlayers"},this.numberOfPlayers))):""}};m.style=":host{display:block}";const c=class{constructor(i){e(this,i),this.language="en",this.isNewGame=!1}async onGameLoaded(e){var i;this.gameInfo=e,this.isNewGame=this.gameInfo.isNew,"false"===this.gameInfo.gameTag&&(this.gameInfo.gameTag=null),this.gameTag=this.gameInfo.gameTag,this.gameInfo.details&&(this.gameDetails=this.gameInfo.details,this.isDouble=!!this.gameDetails&&this.gameInfo.details.category.toLowerCase()===o.doubleballroulette,this.gameTag=this.gameDetails&&(null===(i=this.gameInfo.advancedTags)||void 0===i?void 0:i.length)>0?a(this.gameInfo.advancedTags):this.gameInfo.gameTag,this.betLimit=this.gameDetails?this.gameDetails.betLimit:null,this.initTimeProperties())}initTimeProperties(){var e,i,t,a,s;"Bounded"===(null===(i=null===(e=this.gameDetails)||void 0===e?void 0:e.openHours)||void 0===i?void 0:i.type)&&(this.gameStartTime=null===(a=null===(t=this.gameDetails)||void 0===t?void 0:t.openHours)||void 0===a?void 0:a.value.startTime,this.gameTimeFormat=null===(s=this.gameDetails)||void 0===s?void 0:s.openHours.value.originalTimeFormat)}async onGameDetailUpdated(e){this.gameInfo.details=this.gameDetails=e,this.gameDetails=Object.assign({},this.gameDetails),this.initTimeProperties()}render(){var e,t,a;return this.gameInfo?i("div",{class:"GameExtraInfo",part:"GameExtraInfo"},this.isNewGame&&i("span",{class:"GameExtraInfoLabel NewGameTag",part:"GameExtraInfoLabel NewGameTag"},n("new",this.language)),this.gameTag&&i("span",{class:"GameExtraInfoLabel PopularGameTag",part:"GameExtraInfoLabel PopularGameTag"},this.gameTag),this.gameDetails&&i("div",{class:`GameProp LiveProps ${r[this.gameDetails.category.toLowerCase()]} ${this.isDouble?" Double":""}`,part:`GameProp LiveProps ${r[this.gameDetails.category.toLowerCase()]} ${this.isDouble?" Double":""}`},this.gameDetails.isOpen?i("slot",{name:"category-details"}):this.gameStartTime&&this.gameTimeFormat&&i("div",{class:"ClosedGame",part:"ClosedGame"},n("opens",this.language),i("span",null," ",s.utc(this.gameStartTime).local().format(this.gameTimeFormat)," ")),(null===(e=this.gameDetails.dealer)||void 0===e?void 0:e.DealerName)&&i("p",{class:"LiveLimits"},i("span",{class:"DealerName"},n("dealer",this.language),":"," ",null===(t=this.gameDetails)||void 0===t?void 0:t.dealer.DealerName," ")),i("casino-game-thumbnail-betlimit",{betLimit:this.betLimit,numberOfPlayers:null===(a=this.gameDetails)||void 0===a?void 0:a.numberOfPlayers}))):""}};c.style=':host{display:block;font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.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(--emw--color-white, #FFFFFF);opacity:1;font-size:14px}.GameExtraInfo{display:block;position:absolute;width:100%;height:100%;top:8px;left:8px;z-index:0}.GameExtraInfoLabel{font-size:11px;padding:3px;background-color:var(--emw--color-primary, #D0046C);color:var(--emw--color-primary-50, #FBECF4);font-weight:bold;text-transform:uppercase;border-radius:5px}.ListGame .GameInnerContainer .GameExtraInfo{z-index:10}.ListGame .GameInnerContainer .ClosedGame{opacity:1;z-index:10;padding:8px 10px;color:var(--emw--color-white, #FFFFFF);font-size:18px}.ListGame .GameInnerContainer .ClosedGame span{font-size:18px}.ListGame .GameInnerContainer .LiveIcons{position:relative;display:flex;padding:0 10px;box-sizing:border-box;flex-direction:row;align-items:center;justify-content:flex-start;min-height:auto;margin-bottom:5px}.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(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .LatestResult{min-width:12px;padding:2px;margin:0 6px 0 1px;font-size:14px;text-align:center}.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(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Black{background:var(--emw--color-black, #000000)}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Red{background:red}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Green{background:#56A80A}.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(--emw--color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .Red{color:red}.ListGame .GameInnerContainer .LiveIcons .Green{color:#56A80A}.ListGame .GameInnerContainer .LiveLimits{opacity:1;display:flex;flex-direction:row;justify-content:space-between;padding:2px 10px 5px;background:var(--emw--color-black, #000000);color:var(--emw--color-white, #FFFFFF);font-weight:normal;font-size:12px}.ListGame .GameInnerContainer .LiveLimits span{font-size:12px;vertical-align:top}';export{m as casino_game_thumbnail_betlimit,c as casino_game_thumbnail_extrainfo}
@@ -0,0 +1 @@
1
+ import{r as i,h as e,H as t}from"./p-9c9196db.js";import{D as a}from"./p-2d02adb1.js";import{t as s}from"./p-59ceeaaa.js";const l=class{constructor(e){i(this,e)}generateBlackJackSeats(i=a,e=[]){let t=[];for(let a=0;a<i;a++)t.push({seatNo:a,isClosed:e.indexOf((a+1).toString())>-1});return this.isTableFull=i==e.length,t}async onGameLoaded(i){var e,t,a;this.gameInfo=i,this.gameDetails=this.gameInfo.details,this.seatsStatus=this.generateBlackJackSeats(null===(e=this.gameDetails)||void 0===e?void 0:e.totalSeats,null===(t=this.gameDetails)||void 0===t?void 0:t.currentOccupiedSeats),null===(a=this.infoWrapperRef)||void 0===a||a.onGameLoaded(i)}async onGameDetailUpdated(i){var e,t;this.gameInfo.details=this.gameDetails=i,this.seatsStatus=this.generateBlackJackSeats(null===(e=this.gameDetails)||void 0===e?void 0:e.totalSeats,null===(t=this.gameDetails)||void 0===t?void 0:t.currentOccupiedSeats),this.gameDetails=Object.assign({},this.gameDetails)}render(){return e(t,{key:"e75d57ebd1f5827facafd15ffc6631cc84d7ca52"},e("casino-game-thumbnail-extrainfo",{key:"e861149d6e01ef11ecc92d8f3606e9406ca68238",ref:i=>this.infoWrapperRef=i,language:this.language},this.gameDetails&&this.gameDetails.isOpen&&e("div",{key:"e157039d431369c6e9b419cde52e3045765fb6c6",slot:"category-details",class:"LiveIcons",part:"LiveIcons"},this.isTableFull?e("span",{class:"FullTable",part:"FullTable"},s("full",this.language)):this.seatsStatus.map((i=>e("span",{class:(i.isClosed?"ClosedSeat":"OpenSeat")+" svg-container",id:`s${i.seatNo}`,part:(i.isClosed?"ClosedSeat":"OpenSeat")+" svg-container",innerHTML:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMyIgaGVpZ2h0PSIxNCIgdmlld0JveD0iMCAwIDEzIDE0Ij4KICA8cGF0aAogICAgZD0iTTExLjU4IDZjLTEuMTcgMC0yLjEzLjk1LTIuMTMgMi4xMnYuNGE4LjgyIDguODIgMCAwMC0yLjkyLS40Yy0xLjU0IDAtMi40NS4yMi0yLjkyLjR2LS40QTIuMTM2IDIuMTM2IDAgMDAxLjQ4IDZhMS4zMyAxLjMzIDAgMDAtLjUgMi41NWMuMTQuMDcuMjQuMjEuMjQuMzdsLjI2IDEuMDZjMCAuOTYuNzMgMS43NSAxLjY1IDEuODVhLjY1LjY1IDAgMDAuMjggMS4yMy42NS42NSAwIDAwLjMtMS4yMmg1LjY0YS42NS42NSAwIDAwLjMgMS4yMi42NS42NSAwIDAwLjI4LTEuMjNjLjkzLS4xIDEuNjUtLjkgMS42NS0xLjg1bC4yNy0xLjA2YzAtLjE2LjEtLjMuMjQtLjM3QTEuMzMgMS4zMyAwIDAwMTEuNTggNnoiLz4KICA8cGF0aAogICAgZD0iTTQuMzQgNy41Yy41NS0uMSAxLjI3LS4xNyAyLjItLjE3LjkxIDAgMS42My4wNyAyLjE4LjE3LjIxLS45Ni45LTEuNzQgMS44LTIuMVY0YTMuOTkgMy45OSAwIDAwLTcuOTcgMHYxLjRjLjkuMzYgMS41OCAxLjE0IDEuNzkgMi4xeiIvPgo8L3N2Zz4K"}))))))}};l.style=":host{display:block}.OpenSeat,.ClosedSeat{display:inline-block;width:16px;height:16px;margin-right:4px}.OpenSeat svg,.ClosedSeat svg{width:100%;height:100%}.OpenSeat{animation:flip-closed-seat 2s both;-webkit-animation:flip-closed-seat 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.ClosedSeat{animation:flip-open 2s both;-webkit-animation:flip-open 2s both;-webkit-backface-visibility:visible;backface-visibility:visible}.OpenSeat svg{fill:transparent;stroke:var(--emw--color-white, #FFFFFF)}.ClosedSeat svg{fill:var(--emw--color-white, #FFFFFF)}.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}.FullTable svg{width:100%;height:100%;fill:var(--emw--color-white, #FFFFFF)}.FullTable.ClosedSeat{margin-right:-3px}";export{l as casino_extrainfo_blackjack}
@@ -0,0 +1,2 @@
1
+ var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>{e.set(n.t=t,n)},l=(t,e)=>e in t,s=(t,e)=>(0,console.error)(t,e),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="http://www.w3.org/1999/xlink",f="undefined"!=typeof window?window:{},a=f.document||{head:{}},d={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},h=t=>Promise.resolve(t),v=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),p=!1,m=[],y=[],w=(t,e)=>n=>{t.push(n),p||(p=!0,e&&4&d.o?g($):d.raf($))},b=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},$=()=>{b(m),b(y),(p=m.length>0)&&d.raf($)},g=t=>h().then(t),S=w(y,!0),j=t=>"object"==(t=typeof t)||"function"===t;function O(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>E,map:()=>C,ok:()=>k,unwrap:()=>x,unwrapErr:()=>M});var k=t=>({isOk:!0,isErr:!1,value:t}),E=t=>({isOk:!1,isErr:!0,value:t});function C(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>k(t))):k(n)}if(t.isErr)return E(t.value);throw"should never get here"}var x=t=>{if(t.isOk)return t.value;throw t.value},M=t=>{if(t.isErr)return t.value;throw t.value},R=t=>{const e=t.__childNodes||t.childNodes;t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&T(e,t.tagName).forEach((t=>{var e;1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!(null==(e=A(t,t["s-sn"],!1))?void 0:e.length))}));for(const t of e)1===t.nodeType&&(t.__childNodes||t.childNodes).length&&R(t)};function T(t,e,n){let o,l=0,s=[];for(;l<t.length;l++){if(o=t[l],o["s-sr"]&&o["s-hn"]===e&&(void 0===n||o["s-sn"]===n)&&(s.push(o),void 0!==n))return s;s=[...s,...T(o.childNodes,e,n)]}return s}var P,L,A=(t,e,n=!0)=>{const o=[];for((n&&t["s-sr"]||!t["s-sr"])&&o.push(t);(t=t.nextSibling)&&t["s-sn"]===e;)o.push(t);return o},F=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,D=(t,e,...n)=>{let o=null,l=null,s=null,i=!1,r=!1;const c=[],u=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?u(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof t&&!j(o))&&(o+=""),i&&r?c[c.length-1].i+=o:c.push(i?H(null,o):o),r=i)};if(u(n),e){e.key&&(l=e.key),e.name&&(s=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,c,W);const f=H(t,null);return f.u=e,c.length>0&&(f.h=c),f.v=l,f.p=s,f},H=(t,e)=>({o:0,m:t,i:e,$:null,h:null,u:null,v:null,p:null}),N={},W={forEach:(t,e)=>t.map(B).forEach(e),map:(t,e)=>t.map(B).map(e).map(U)},B=t=>({vattrs:t.u,vchildren:t.h,vkey:t.v,vname:t.p,vtag:t.m,vtext:t.i}),U=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),D(t.vtag,e,...t.vchildren||[])}const e=H(t.vtag,t.vtext);return e.u=t.vattrs,e.h=t.vchildren,e.v=t.vkey,e.p=t.vname,e},V=(t,e)=>null==t||j(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?t+"":t,q=(t,e,o)=>{const l=(t=>n(t).$hostElement$)(t);return{emit:t=>G(l,e,{bubbles:!!(4&o),composed:!!(2&o),cancelable:!!(1&o),detail:t})}},G=(t,e,n)=>{const o=d.ce(e,n);return t.dispatchEvent(o),o},_=new WeakMap,z=t=>"sc-"+t.S,I=(t,e,n,o,s,i)=>{if(n!==o){let r=l(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,l=K(n);let s=K(o);e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t))))}else if("style"===e){for(const e in n)o&&null!=o[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in o)n&&o[e]===n[e]||(e.includes("-")?t.style.setProperty(e,o[e]):t.style[e]=o[e])}else if("key"===e);else if("ref"===e)o&&o(t);else if(r||"o"!==e[0]||"n"!==e[1]){const l=j(o);if((r||l&&null!==o)&&!s)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const l=null==o?"":o;"list"===e?r=!1:null!=n&&t[e]==l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}let f=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(e=c,f=!0),null==o||!1===o?!1===o&&""!==t.getAttribute(e)||(f?t.removeAttributeNS(u,e):t.removeAttribute(e)):(!r||4&i||s)&&!l&&(o=!0===o?"":o,f?t.setAttributeNS(u,e,o):t.setAttribute(e,o))}else if(e="-"===e[2]?e.slice(3):l(f,c)?c.slice(2):c[2]+e.slice(3),n||o){const l=e.endsWith(Q);e=e.replace(X,""),n&&d.rel(t,e,n,l),o&&d.ael(t,e,o,l)}}},J=/\s/,K=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(J):[]),Q="Capture",X=RegExp(Q+"$"),Y=(t,e,n)=>{const o=11===e.$.nodeType&&e.$.host?e.$.host:e.$,l=t&&t.u||{},s=e.u||{};for(const t of Z(Object.keys(l)))t in s||I(o,t,l[t],void 0,n,e.o);for(const t of Z(Object.keys(s)))I(o,t,l[t],s[t],n,e.o)};function Z(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var tt=!1,et=!1,nt=!1,ot=!1,lt=(t,e,n)=>{var o;const l=e.h[n];let s,i,r,c=0;if(tt||(nt=!0,"slot"===l.m&&(l.o|=l.h?2:1)),null!==l.i)s=l.$=a.createTextNode(l.i);else if(1&l.o)s=l.$=a.createTextNode("");else{if(ot||(ot="svg"===l.m),s=l.$=a.createElementNS(ot?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!tt&&2&l.o?"slot-fb":l.m),ot&&"foreignObject"===l.m&&(ot=!1),Y(null,l,ot),l.h)for(c=0;c<l.h.length;++c)i=lt(t,l,c),i&&s.appendChild(i);"svg"===l.m?ot=!1:"foreignObject"===s.tagName&&(ot=!0)}return s["s-hn"]=L,3&l.o&&(s["s-sr"]=!0,s["s-cr"]=P,s["s-sn"]=l.p||"",s["s-rf"]=null==(o=l.u)?void 0:o.ref,r=t&&t.h&&t.h[n],r&&r.m===l.m&&t.$&&st(t.$,!1)),s},st=(t,e)=>{d.o|=1;const n=Array.from(t.__childNodes||t.childNodes);for(let t=n.length-1;t>=0;t--){const o=n[t];o["s-hn"]!==L&&o["s-ol"]&&(vt(ut(o).parentNode,o,ut(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,nt=!0),e&&st(o,e)}d.o&=-2},it=(t,e,n,o,l,s)=>{let i,r=t["s-cr"]&&t["s-cr"].parentNode||t;for(r.shadowRoot&&r.tagName===L&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=lt(null,n,l),i&&(o[l].$=i,vt(r,i,ut(e))))},rt=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.$;ht(e),t&&(et=!0,t["s-ol"]?t["s-ol"].remove():st(t,!0),t.remove())}}},ct=(t,e,n=!1)=>t.m===e.m&&("slot"===t.m?t.p===e.p:n?(n&&!t.v&&e.v&&(t.v=e.v),!0):t.v===e.v),ut=t=>t&&t["s-ol"]||t,ft=(t,e,n=!1)=>{const o=e.$=t.$,l=t.h,s=e.h,i=e.m,r=e.i;let c;null===r?(ot="svg"===i||"foreignObject"!==i&&ot,("slot"!==i||tt)&&Y(t,e,ot),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=e.length-1,d=e[0],h=e[a],v=o.length-1,p=o[0],m=o[v];for(;r<=a&&c<=v;)if(null==d)d=e[++r];else if(null==h)h=e[--a];else if(null==p)p=o[++c];else if(null==m)m=o[--v];else if(ct(d,p,l))ft(d,p,l),d=e[++r],p=o[++c];else if(ct(h,m,l))ft(h,m,l),h=e[--a],m=o[--v];else if(ct(d,m,l))"slot"!==d.m&&"slot"!==m.m||st(d.$.parentNode,!1),ft(d,m,l),vt(t,d.$,h.$.nextSibling),d=e[++r],m=o[--v];else if(ct(h,p,l))"slot"!==d.m&&"slot"!==m.m||st(h.$.parentNode,!1),ft(h,p,l),vt(t,h.$,d.$),h=e[--a],p=o[++c];else{for(u=-1,f=r;f<=a;++f)if(e[f]&&null!==e[f].v&&e[f].v===p.v){u=f;break}u>=0?(i=e[u],i.m!==p.m?s=lt(e&&e[c],n,u):(ft(i,p,l),e[u]=void 0,s=i.$),p=o[++c]):(s=lt(e&&e[c],n,c),p=o[++c]),s&&vt(ut(d.$).parentNode,s,ut(d.$))}r>a?it(t,null==o[v+1]?null:o[v+1].$,n,o,c,v):c>v&&rt(e,r,a)})(o,l,e,s,n):null!==s?(null!==t.i&&(o.textContent=""),it(o,null,e,s,0,s.length-1)):!n&&null!==l&&rt(l,0,l.length-1),ot&&"svg"===i&&(ot=!1)):(c=o["s-cr"])?c.parentNode.textContent=r:t.i!==r&&(o.data=r)},at=[],dt=t=>{let e,n,o;const l=t.__childNodes||t.childNodes;for(const t of l){if(t["s-sr"]&&(e=t["s-cr"])&&e.parentNode){n=e.parentNode.__childNodes||e.parentNode.childNodes;const l=t["s-sn"];for(o=n.length-1;o>=0;o--)if(e=n[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==t["s-hn"])if(F(e,l)){let n=at.find((t=>t.j===e));et=!0,e["s-sn"]=e["s-sn"]||l,n?(n.j["s-sh"]=t["s-hn"],n.O=t):(e["s-sh"]=t["s-hn"],at.push({O:t,j:e})),e["s-sr"]&&at.map((t=>{F(t.j,e["s-sn"])&&(n=at.find((t=>t.j===e)),n&&!t.O&&(t.O=n.O))}))}else at.some((t=>t.j===e))||at.push({j:e})}1===t.nodeType&&dt(t)}},ht=t=>{t.u&&t.u.ref&&t.u.ref(null),t.h&&t.h.map(ht)},vt=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),pt=(t,e)=>{if(e&&!t.k&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.k=()=>{e["s-p"].splice(n-1,1),o()})))}},mt=(t,e)=>{if(t.o|=16,!(4&t.o))return pt(t,t.C),S((()=>yt(t,e)));t.o|=512},yt=(t,e)=>{const n=t.$hostElement$,o=t.t;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return e&&(t.o|=256,t.M&&(t.M.map((([t,e])=>Ot(o,t,e,n))),t.M=void 0),l=Ot(o,"componentWillLoad",void 0,n)),l=wt(l,(()=>Ot(o,"componentWillRender",void 0,n))),wt(l,(()=>$t(t,o,e)))},wt=(t,e)=>bt(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),bt=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,$t=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.R,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=z(e),l=r.get(o);if(t=11===t.nodeType?t:a,l)if("string"==typeof l){let s,i=_.get(t=t.head||t);if(i||_.set(t,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||a.createElement("style"),s.innerHTML=l;const i=null!=(n=d.T)?n:O(a);if(null!=i&&s.setAttribute("nonce",i),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(v){const e=new CSSStyleSheet;e.replaceSync(l),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(s)}else t.append(s);1&e.o&&"HEAD"!==t.nodeName&&t.insertBefore(s,null)}4&e.o&&(s.innerHTML+=c),i&&i.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&2&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);gt(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>St(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},gt=(t,e,n,o)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{var o,l,s,i;const r=t.$hostElement$,c=t.R,u=t.P||H(null,null),f=(t=>t&&t.m===N)(e)?e:D(null,null,e);if(L=r.tagName,n&&f.u)for(const t of Object.keys(f.u))r.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(f.u[t]=r[t]);if(f.m=null,f.o|=4,t.P=f,f.$=u.$=r.shadowRoot||r,tt=!!(1&c.o),P=r["s-cr"],et=!1,ft(u,f,n),d.o|=1,nt){dt(f.$);for(const t of at){const e=t.j;if(!e["s-ol"]){const t=a.createTextNode("");t["s-nr"]=e,vt(e.parentNode,e["s-ol"]=t,e)}}for(const t of at){const e=t.j,r=t.O;if(r){const t=r.parentNode;let n=r.nextSibling;{let s=null==(o=e["s-ol"])?void 0:o.previousSibling;for(;s;){let o=null!=(l=s["s-nr"])?l:null;if(o&&o["s-sn"]===e["s-sn"]&&t===(o.__parentNode||o.parentNode)){for(o=o.nextSibling;o===e||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){n=o;break}}s=s.previousSibling}}(!n&&t!==(e.__parentNode||e.parentNode)||(e.__nextSibling||e.nextSibling)!==n)&&e!==n&&(!e["s-hn"]&&e["s-ol"]&&(e["s-hn"]=e["s-ol"].parentNode.nodeName),vt(t,e,n),1===e.nodeType&&"SLOT-FB"!==e.tagName&&(e.hidden=null!=(s=e["s-ih"])&&s)),e&&"function"==typeof r["s-rf"]&&r["s-rf"](e)}else 1===e.nodeType&&(n&&(e["s-ih"]=null!=(i=e.hidden)&&i),e.hidden=!0)}}et&&R(f.$),d.o&=-2,at.length=0,P=void 0})(t,e,o)}catch(e){s(e,t.$hostElement$)}return null},St=t=>{const e=t.$hostElement$,n=t.t,o=t.C;Ot(n,"componentDidRender",void 0,e),64&t.o||(t.o|=64,kt(e),Ot(n,"componentDidLoad",void 0,e),t.L(e),o||jt()),t.A(e),t.k&&(t.k(),t.k=void 0),512&t.o&&g((()=>mt(t,!1))),t.o&=-517},jt=()=>{kt(a.documentElement),g((()=>G(f,"appload",{detail:{namespace:"casino-game-thumb-view"}})))},Ot=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t,o)}},kt=t=>t.classList.add("hydrated"),Et=(t,e,o,l)=>{const i=n(t);if(!i)throw Error(`Couldn't find host element for "${l.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=i.$hostElement$,c=i.F.get(e),u=i.o,f=i.t;if(o=V(o,l.D[e][0]),(!(8&u)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(i.F.set(e,o),f)){if(l.H&&128&u){const t=l.H[e];t&&t.map((t=>{try{f[t](o,c,e)}catch(t){s(t,r)}}))}2==(18&u)&&mt(i,!1)}},Ct=(t,e,o)=>{var l,s;const i=t.prototype;if(e.D||e.H||t.watchers){t.watchers&&!e.H&&(e.H=t.watchers);const r=Object.entries(null!=(l=e.D)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(e.D[t][0]|=2048),r&&(e.D[t][0]|=4096),(1&o||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&e.D[t][0]))return((t,e)=>n(this).F.get(e))(0,t);const o=n(this),l=o?o.t:i;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(s){const i=n(this);if(r){const n=32&l?this[t]:i.$hostElement$[t];return void 0===n&&i.F.get(t)?s=i.F.get(t):!i.F.get(t)&&n&&i.F.set(t,n),r.call(this,V(s,l)),void Et(this,t,s=32&l?this[t]:i.$hostElement$[t],e)}{if(!(1&o&&4096&e.D[t][0]))return Et(this,t,s,e),void(1&o&&!i.t&&i.N.then((()=>{4096&e.D[t][0]&&i.t[t]!==i.F.get(t)&&(i.t[t]=s)})));const n=()=>{const n=i.t[t];!i.F.get(t)&&n&&i.F.set(t,n),i.t[t]=V(s,l),Et(this,t,i.t[t],e)};i.t?n():i.N.then((()=>n()))}}})}else 1&o&&64&l&&Object.defineProperty(i,t,{value(...e){var o;const l=n(this);return null==(o=null==l?void 0:l.W)?void 0:o.then((()=>{var n;return null==(n=l.t)?void 0:n[t](...e)}))}})})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){d.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=e.H)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,s,l,t)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.H)?s:{}),...r.filter((([t,e])=>15&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},xt=(t,e)=>{Ot(t,"disconnectedCallback",void 0,e||t)},Mt=(t,o={})=>{var l;const u=[],h=o.exclude||[],p=f.customElements,m=a.head,y=m.querySelector("meta[charset]"),w=a.createElement("style"),b=[];let $,g=!0;Object.assign(d,o),d.l=new URL(o.resourcesUrl||"./",a.baseURI).href;let S=!1;if(t.map((t=>{t[1].map((o=>{var l;const c={o:o[0],S:o[1],D:o[2],B:o[3]};4&c.o&&(S=!0),c.D=o[2],c.B=o[3],c.H=null!=(l=o[4])?l:{};const f=c.S,m=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,R:n,F:new Map};o.W=new Promise((t=>o.A=t)),o.N=new Promise((t=>o.L=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,c),1&c.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.S}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){const t=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,Rt(this,t,c.B)),$&&(clearTimeout($),$=null),g?b.push(this):d.jmp((()=>(t=>{if(!(1&d.o)){const e=n(t),o=e.R,l=()=>{};if(1&e.o)Rt(t,e,o.B),(null==e?void 0:e.t)||(null==e?void 0:e.N)&&e.N.then((()=>{}));else{e.o|=1,12&o.o&&(t=>{const e=t["s-cr"]=a.createComment("");e["s-cn"]=!0,vt(t,e,t.firstChild)})(t);{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){pt(e,e.C=n);break}}o.D&&Object.entries(o.D).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){e.o|=32;{const l=((t,e)=>{const n=t.S.replace(/-/g,"_"),o=t.U;if(!o)return;const l=i.get(o);return l?l[n]:import(`./${o}.entry.js`).then((t=>(i.set(o,t),t[n])),(t=>{s(t,e.$hostElement$)}))
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(l&&"then"in l){const t=()=>{};o=await l,t()}else o=l;if(!o)throw Error(`Constructor for "${n.S}#${e.V}" was not found`);o.isProxied||(n.H=o.watchers,Ct(o,n,2),o.isProxied=!0);const r=()=>{};e.o|=8;try{new o(e)}catch(e){s(e,t)}e.o&=-9,e.o|=128,r()}if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=z(n);if(!r.has(e)){const o=()=>{};((t,e,n)=>{let o=r.get(t);v&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,r.set(t,o)})(e,t,!!(1&n.o)),o()}}}const l=e.C,c=()=>mt(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(t,e,o)}l()}})(this)))}disconnectedCallback(){d.jmp((()=>(async t=>{if(!(1&d.o)){const e=n(t);e.q&&(e.q.map((t=>t())),e.q=void 0),(null==e?void 0:e.t)?xt(e.t,t):(null==e?void 0:e.N)&&e.N.then((()=>xt(e.t,t)))}_.has(t)&&_.delete(t),t.shadowRoot&&_.has(t.shadowRoot)&&_.delete(t.shadowRoot)})(this))),d.raf((()=>{var t;const e=n(this);(null==(t=null==e?void 0:e.P)?void 0:t.$)instanceof Node&&!e.P.$.isConnected&&delete e.P.$}))}componentOnReady(){return n(this).N}};c.U=t[0],h.includes(f)||p.get(f)||(u.push(f),p.define(f,Ct(m,c,1)))}))})),u.length>0&&(S&&(w.textContent+=c),w.textContent+=u.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const t=null!=(l=d.T)?l:O(a);null!=t&&w.setAttribute("nonce",t),m.insertBefore(w,y?y.nextSibling:m.firstChild)}g=!1,b.length?b.map((t=>t.connectedCallback())):d.jmp((()=>$=setTimeout(jt,30)))},Rt=(t,e,n)=>{n&&n.map((([n,o,l])=>{const s=Pt(t,n),i=Tt(e,l),r=Lt(n);d.ael(s,o,i,r),(e.q=e.q||[]).push((()=>d.rel(s,o,i,r)))}))},Tt=(t,e)=>n=>{var o;try{256&t.o?null==(o=t.t)||o[e](n):(t.M=t.M||[]).push([e,n])}catch(e){s(e,t.$hostElement$)}},Pt=(t,e)=>4&e?a:t,Lt=t=>({passive:!!(1&t),capture:!!(2&t)}),At=t=>d.T=t;export{N as H,Mt as b,q as c,D as h,h as p,o as r,At as s}
@@ -0,0 +1,7 @@
1
+ import{r as e,c as t,h as i}from"./p-9c9196db.js";import{c as n,i as a}from"./p-d2580653.js";import{G as o,a as r,W as s}from"./p-2d02adb1.js";import{t as l}from"./p-59ceeaaa.js";var h,c,d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},m={exports:{}};
2
+ /** @license
3
+ * eventsource.js
4
+ * Available under MIT License (MIT)
5
+ * https://github.com/Yaffle/EventSource/
6
+ */
7
+ h=m,c=m.exports,function(e){var t=e.setTimeout,i=e.clearTimeout,n=e.XMLHttpRequest,a=e.XDomainRequest,o=e.ActiveXObject,r=e.EventSource,s=e.document,l=e.Promise,d=e.fetch,m=e.Response,u=e.TextDecoder,g=e.TextEncoder,f=e.AbortController;if("undefined"==typeof window||void 0===s||"readyState"in s||null!=s.body||(s.readyState="loading",window.addEventListener("load",(function(){s.readyState="complete"}),!1)),null==n&&null!=o&&(n=function(){return new o("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==f){var p=d;d=function(e,t){var i=t.signal;return p(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then((function(e){var t=e.body.getReader();return i._reader=t,i._aborted&&i._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}}))},f=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function v(){this.bitsNeeded=0,this.codePoint=0}v.prototype.decode=function(e){function t(e,t,i){if(1===i)return e>=128>>t&&e<<t<=2047;if(2===i)return e>=2048>>t&&e<<t<=55295||e>=57344>>t&&e<<t<=65535;if(3===i)return e>=65536>>t&&e<<t<=1114111;throw new Error}function i(e,t){if(6===e)return t>>6>15?3:t>31?2:1;if(12===e)return t>15?3:2;if(18===e)return 3;throw new Error}for(var n=65533,a="",o=this.bitsNeeded,r=this.codePoint,s=0;s<e.length;s+=1){var l=e[s];0!==o&&(l<128||l>191||!t(r<<6|63&l,o-6,i(o,r)))&&(o=0,r=n,a+=String.fromCharCode(r)),0===o?(l>=0&&l<=127?(o=0,r=l):l>=192&&l<=223?(o=6,r=31&l):l>=224&&l<=239?(o=12,r=15&l):l>=240&&l<=247?(o=18,r=7&l):(o=0,r=n),0===o||t(r,o,i(o,r))||(o=0,r=n)):(o-=6,r=r<<6|63&l),0===o&&(r<=65535?a+=String.fromCharCode(r):(a+=String.fromCharCode(55296+(r-65535-1>>10)),a+=String.fromCharCode(56320+(r-65535-1&1023))))}return this.bitsNeeded=o,this.codePoint=r,a},null!=u&&null!=g&&function(){try{return"test"===(new u).decode((new g).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}return!1}()||(u=v);var w=function(){};function b(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=w,this.onload=w,this.onerror=w,this.onreadystatechange=w,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=w}function I(e){return e.replace(/[A-Z]/g,(function(e){return String.fromCharCode(e.charCodeAt(0)+32)}))}function C(e){for(var t=Object.create(null),i=e.split("\r\n"),n=0;n<i.length;n+=1){var a=i[n].split(": "),o=a.shift(),r=a.join(": ");t[I(o)]=r}this._map=t}function M(){}function L(e){this._headers=e}function G(){}function y(){this._listeners=Object.create(null)}function x(e){t((function(){throw e}),0)}function T(e){this.type=e,this.target=void 0}function j(e,t){T.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function N(e,t){T.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function A(e,t){T.call(this,e),this.error=t.error}b.prototype.open=function(e,a){this._abort(!0);var o=this,r=this._xhr,s=1,l=0;this._abort=function(e){0!==o._sendTimeout&&(i(o._sendTimeout),o._sendTimeout=0),1!==s&&2!==s&&3!==s||(s=4,r.onload=w,r.onerror=w,r.onabort=w,r.onprogress=w,r.onreadystatechange=w,r.abort(),0!==l&&(i(l),l=0),e||(o.readyState=4,o.onabort(null),o.onreadystatechange())),s=0};var h=function(){if(1===s){var e=0,t="",i=void 0;if("contentType"in r)e=200,t="OK",i=r.contentType;else try{e=r.status,t=r.statusText,i=r.getResponseHeader("Content-Type")}catch(n){e=0,t="",i=void 0}0!==e&&(s=2,o.readyState=2,o.status=e,o.statusText=t,o._contentType=i,o.onreadystatechange())}},c=function(){if(h(),2===s||3===s){s=3;var e="";try{e=r.responseText}catch(e){}o.readyState=3,o.responseText=e,o.onprogress()}},d=function(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:w}),c(),1===s||2===s||3===s){if(s=4,0!==l&&(i(l),l=0),o.readyState=4,"load"===e)o.onload(t);else if("error"===e)o.onerror(t);else{if("abort"!==e)throw new TypeError;o.onabort(t)}o.onreadystatechange()}},m=function(){l=t((function(){m()}),500),3===r.readyState&&c()};"onload"in r&&(r.onload=function(e){d("load",e)}),"onerror"in r&&(r.onerror=function(e){d("error",e)}),"onabort"in r&&(r.onabort=function(e){d("abort",e)}),"onprogress"in r&&(r.onprogress=c),"onreadystatechange"in r&&(r.onreadystatechange=function(e){!function(e){null!=r&&(4===r.readyState?"onload"in r&&"onerror"in r&&"onabort"in r||d(""===r.responseText?"error":"load",e):3===r.readyState?"onprogress"in r||c():2===r.readyState&&h())}(e)}),!("contentType"in r)&&"ontimeout"in n.prototype||(a+=(-1===a.indexOf("?")?"?":"&")+"padding=true"),r.open(e,a,!0),"readyState"in r&&(l=t((function(){m()}),0))},b.prototype.abort=function(){this._abort(!1)},b.prototype.getResponseHeader=function(){return this._contentType},b.prototype.setRequestHeader=function(e,t){var i=this._xhr;"setRequestHeader"in i&&i.setRequestHeader(e,t)},b.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},b.prototype.send=function(){if("ontimeout"in n.prototype&&("sendAsBinary"in n.prototype||"mozAnon"in n.prototype)||null==s||null==s.readyState||"complete"===s.readyState){var e=this._xhr;"withCredentials"in e&&(e.withCredentials=this.withCredentials);try{e.send(void 0)}catch(e){throw e}}else{var i=this;i._sendTimeout=t((function(){i._sendTimeout=0,i.send()}),4)}},C.prototype.get=function(e){return this._map[I(e)]},null!=n&&null==n.HEADERS_RECEIVED&&(n.HEADERS_RECEIVED=2),M.prototype.open=function(e,t,i,a,o,r,s){e.open("GET",o);var l=0;for(var h in e.onprogress=function(){var t=e.responseText.slice(l);l+=t.length,i(t)},e.onerror=function(e){e.preventDefault(),a(new Error("NetworkError"))},e.onload=function(){a(null)},e.onabort=function(){a(null)},e.onreadystatechange=function(){if(e.readyState===n.HEADERS_RECEIVED){var i=e.status,a=e.statusText,o=e.getResponseHeader("Content-Type"),r=e.getAllResponseHeaders();t(i,a,o,new C(r))}},e.withCredentials=r,s)Object.prototype.hasOwnProperty.call(s,h)&&e.setRequestHeader(h,s[h]);return e.send(),e},L.prototype.get=function(e){return this._headers.get(e)},G.prototype.open=function(e,t,i,n,a,o,r){var s=null,h=new f,c=h.signal,m=new u;return d(a,{headers:r,credentials:o?"include":"same-origin",signal:c,cache:"no-store"}).then((function(e){return s=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new L(e.headers)),new l((function(e,t){var n=function(){s.read().then((function(t){if(t.done)e(void 0);else{var a=m.decode(t.value,{stream:!0});i(a),n()}})).catch((function(e){t(e)}))};n()}))})).catch((function(e){return"AbortError"===e.name?void 0:e})).then((function(e){n(e)})),{abort:function(){null!=s&&s.cancel(),h.abort()}}},y.prototype.dispatchEvent=function(e){e.target=this;var t=this._listeners[e.type];if(null!=t)for(var i=t.length,n=0;n<i;n+=1){var a=t[n];try{"function"==typeof a.handleEvent?a.handleEvent(e):a.call(this,e)}catch(e){x(e)}}},y.prototype.addEventListener=function(e,t){e=String(e);var i=this._listeners,n=i[e];null==n&&(i[e]=n=[]);for(var a=!1,o=0;o<n.length;o+=1)n[o]===t&&(a=!0);a||n.push(t)},y.prototype.removeEventListener=function(e,t){e=String(e);var i=this._listeners,n=i[e];if(null!=n){for(var a=[],o=0;o<n.length;o+=1)n[o]!==t&&a.push(n[o]);0===a.length?delete i[e]:i[e]=a}},j.prototype=Object.create(T.prototype),N.prototype=Object.create(T.prototype),A.prototype=Object.create(T.prototype);var F=/^text\/event\-stream(;.*)?$/i,D=function(e,t){var i=null==e?t:parseInt(e,10);return i!=i&&(i=t),k(i)},k=function(e){return Math.min(Math.max(e,1e3),18e6)},z=function(e,t,i){try{"function"==typeof t&&t.call(e,i)}catch(e){x(e)}};function O(e,o){y.call(this),o=o||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,function(e,o,r){o=String(o);var s=Boolean(r.withCredentials),l=r.lastEventIdQueryParameterName||"lastEventId",h=k(1e3),c=D(r.heartbeatTimeout,45e3),d="",m=h,u=!1,g=0,f=r.headers||{},p=r.Transport,v=S&&null==p?void 0:new b(null!=p?new p:null!=n&&"withCredentials"in n.prototype||null==a?new n:new a),w=null!=p&&"string"!=typeof p?new p:null==v?new G:new M,I=void 0,C=0,L=-1,y="",x="",T="",O="",E=0,B=0,U=0,Q=function(t,i,n,a){if(0===L)if(200===t&&null!=n&&F.test(n)){L=1,u=Date.now(),m=h,e.readyState=1;var o=new N("open",{status:t,statusText:i,headers:a});e.dispatchEvent(o),z(e,e.onopen,o)}else{var r="";200!==t?(i&&(i=i.replace(/\s+/g," ")),r="EventSource's response has a status "+t+" "+i+" that is not 200. Aborting the connection."):r="EventSource's response has a Content-Type specifying an unsupported type: "+(null==n?"-":n.replace(/\s+/g," "))+". Aborting the connection.",W(),o=new N("error",{status:t,statusText:i,headers:a}),e.dispatchEvent(o),z(e,e.onerror,o),console.error(r)}},Y=function(n){if(1===L){for(var a=-1,o=0;o<n.length;o+=1)(l=n.charCodeAt(o))!=="\n".charCodeAt(0)&&l!=="\r".charCodeAt(0)||(a=o);var r=(-1!==a?O:"")+n.slice(0,a+1);O=(-1===a?O:"")+n.slice(a+1),""!==n&&(u=Date.now(),g+=n.length);for(var s=0;s<r.length;s+=1){var l=r.charCodeAt(s);if(-1===E&&l==="\n".charCodeAt(0))E=0;else if(-1===E&&(E=0),l==="\r".charCodeAt(0)||l==="\n".charCodeAt(0)){if(0!==E){1===E&&(U=s+1);var f=r.slice(B,U-1),p=r.slice(U+(U<s&&r.charCodeAt(U)===" ".charCodeAt(0)?1:0),s);"data"===f?(y+="\n",y+=p):"id"===f?x=p:"event"===f?T=p:"retry"===f?(h=D(p,h),m=h):"heartbeatTimeout"===f&&(c=D(p,c),0!==C&&(i(C),C=t((function(){R()}),c)))}if(0===E){if(""!==y){d=x,""===T&&(T="message");var v=new j(T,{data:y.slice(1),lastEventId:x});if(e.dispatchEvent(v),"open"===T?z(e,e.onopen,v):"message"===T?z(e,e.onmessage,v):"error"===T&&z(e,e.onerror,v),2===L)return}y="",T=""}E=l==="\r".charCodeAt(0)?-1:0}else 0===E&&(B=s,E=1),1===E?l===":".charCodeAt(0)&&(U=s+1,E=2):2===E&&(E=3)}}},P=function(n){if(1===L||0===L){L=-1,0!==C&&(i(C),C=0),C=t((function(){R()}),m),m=k(Math.min(16*h,2*m)),e.readyState=0;var a=new A("error",{error:n});e.dispatchEvent(a),z(e,e.onerror,a),null!=n&&console.error(n)}},W=function(){L=2,null!=I&&(I.abort(),I=void 0),0!==C&&(i(C),C=0),e.readyState=2},R=function(){if(C=0,-1===L){u=!1,g=0,C=t((function(){R()}),c),L=0,y="",T="",x=d,O="",B=0,U=0,E=0;var i=o;if("data:"!==o.slice(0,5)&&"blob:"!==o.slice(0,5)&&""!==d){var n=o.indexOf("?");i=-1===n?o:o.slice(0,n+1)+o.slice(n+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,(function(e,t){return t===l?"":e})),i+=(-1===o.indexOf("?")?"?":"&")+l+"="+encodeURIComponent(d)}var a=e.withCredentials,r={Accept:"text/event-stream"},s=e.headers;if(null!=s)for(var h in s)Object.prototype.hasOwnProperty.call(s,h)&&(r[h]=s[h]);try{I=w.open(v,Q,Y,P,i,a,r)}catch(e){throw W(),e}}else if(u||null==I){var m=Math.max((u||Date.now())+c-Date.now(),1);u=!1,C=t((function(){R()}),m)}else P(new Error("No activity within "+c+" milliseconds. "+(0===L?"No response received.":g+" chars received.")+" Reconnecting.")),null!=I&&(I.abort(),I=void 0)};e.url=o,e.readyState=0,e.withCredentials=s,e.headers=f,e._close=W,R()}(this,e,o)}var S=null!=d&&null!=m&&"body"in m.prototype;(O.prototype=Object.create(y.prototype)).CONNECTING=0,O.prototype.OPEN=1,O.prototype.CLOSED=2,O.prototype.close=function(){this._close()},O.CONNECTING=0,O.OPEN=1,O.CLOSED=2,O.prototype.withCredentials=void 0;var E,B=r;null==n||null!=r&&"withCredentials"in r.prototype||(B=O),E=function(e){e.EventSourcePolyfill=O,e.NativeEventSource=r,e.EventSource=B}(c),void 0!==E&&(h.exports=E)}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:d:globalThis);const u=class{constructor(i){e(this,i),this.toggleFavoriteCasinoGameEvent=t(this,"toggleCasinoGameFavorite",7),this.language="en",this.clientStyling="",this.clientStylingUrl="",this.integratedGameframeMobile=!1,this.integratedGameframeDesktop=!1,this.loadDetails=!1,this.showRoundBoard=!1,this.gameCategory="",this.platform="PC",this.thumbnailLoaded=!1,this.containerClassWhenDetailChange="",this.isUserLoggedIn=!1,this.limitStylingAppends=!1,this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.setClientStylingURL=()=>{let e=new URL(this.clientStylingUrl),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{this.stylingContainer.prepend(t)}),1)})).catch((e=>{console.error("error ",e)}))},this.getGameCategoryType=()=>this.isLiveCasino&&this.gameCategory&&this.getWidgetTypeByGameCategory(this.gameCategory)?`casino-extrainfo-${this.getWidgetTypeByGameCategory(this.gameCategory).toLowerCase()}`:"casino-normal-game-thumbnail",this.getGameContainerClass=()=>{let e="GameContainer ";return this.gameInfo&&this.gameInfo&&this.gameInfo.details&&(e+=" ListGame ",this.gameInfo.details.isOpen&&this.gameInfo.details.currentRouletteNumbers&&(e+=" GameBackdrop ")),e}}onSessionChanged(){this.isUserLoggedIn=!(!this.session||!this.userId)}onTableFullChanged(e,t){null!=t&&(this.containerClassWhenDetailChange=e&&!t?"PulsatingRedShadow":"PulsatingGreenShadow")}handleMouseOver(e){this.hover="mouseenter"===e.type}gameFavoritedHandler(e){this.gameInfo.isFavorite=e.detail[this.gameId],this.gameInfo=Object.assign({},this.gameInfo)}connectLiveHandler(){this.toggleConnect()}visibilityConnectHandler(){this.toggleVisibilityConnect()}gameDetailChangeHandler(e){var t,i;let a=JSON.parse(e.data);if(a.needReconnect&&this.liveLobbyConnection)return this.liveLobbyConnection.close(),this.liveLobbyConnection=null,void this.connectGameToLiveLobby();if(!a||a.InternalTableId!=this.gameId)return;let o=a.MessageType;switch(o){case"TableOpened":case"TableClosed":this.gameInfo.details.isOpen=a.Open;break;case"PlayersUpdated":this.gameInfo.details.numberOfPlayers=a.Players;break;case"RouletteResultsUpdated":this.gameInfo.details.currentRouletteNumbers=a.Results;break;case"DoubleBallRouletteResultsUpdated":this.gameInfo.details.currentDoubleBallRouletteNumbers=a.Results;break;case"SeatsUpdated":this.gameInfo.details.currentOccupiedSeats=a.Seats;break;case"DealerChanged":this.gameInfo.details.dealer=a.Dealer;break;case"BaccaratResultsUpdated":if(this.showRoundBoard){const e=a.Results;this.gameInfo.details.results=[],e.forEach((e=>{this.gameInfo.details.results.push(n(e))})),null===(t=this.extraInfoRef)||void 0===t||t.onBaccaratResultChanged(this.gameInfo.details.results)}}this.resetLiveProperties(),null===(i=this.extraInfoRef)||void 0===i||i.onGameDetailUpdated(this.gameInfo.details),window.postMessage({messageType:o,value:e.data})}messageHandler(e){e.data.type!==`AddFavoriteThumbnail_${this.gameId}`||this.showFavoredCategory||(this.gameInfo.isFavorite=!0),e.data.type!==`RemoveFavoriteThumbnail_${this.gameId}`||this.showFavoredCategory||(this.gameInfo.isFavorite=!1),"UserSessionID"===e.data.type&&(this.isUserLoggedIn=!0,this.session=e.data.session,this.userId=e.data.userID)}resetLiveProperties(){var e,t;const i=this.gameInfo.details;this.isBlackJack(this.gameCategory.toLowerCase())?this.isTableFull=i.totalSeats==(null===(e=i.currentOccupiedSeats)||void 0===e?void 0:e.length):this.isBaccarat(this.gameCategory.toLowerCase())&&(null===(t=i.baccaratResults)||void 0===t?void 0:t.length)>0&&(this.gameInfo.details.results=[],i.baccaratResults.forEach((e=>{this.gameInfo.details.results.push(n(e))})),delete i.baccaratResults)}isBlackJack(e){return e.toLowerCase()===o.BLACKJACK}isBaccarat(e){return e.toLowerCase()===o.BACCARAT}initCtrlProperties(){var e;this.isLiveCasino&&(null===(e=this.gameInfo)||void 0===e?void 0:e.details)&&this.resetLiveProperties(),this.gameInfo=Object.assign({},this.gameInfo),this.triggerExtraInfoLoad(),this.isLiveCasino&&"connect"===this.connectLive&&this.connectGameToLiveLobby()}parseGameResponse(e){1==e.length&&(this.gameInfo=e[0],this.isLiveCasino?this.gameInfo.details?this.parseGameDetailsResponse():this.loadGameDetailInfo():this.initCtrlProperties())}parseGameDetailsResponse(){this.initCtrlProperties()}connectGameToLiveLobby(){EventSource&&!this.liveLobbyConnection&&(this.liveLobbyConnection=new m.exports.EventSourcePolyfill(`${this.endpoint}/v1/encoder/lobby/updates/${this.gameInfo.vendor.name}/${this.gameInfo.id}`),this.liveLobbyConnection.addEventListener("message",(e=>{this.gameDetailChangeHandler(e)})))}disconnectGameFromLiveLobby(){this.liveLobbyConnection&&(this.liveLobbyConnection.removeEventListener("message"),this.liveLobbyConnection.close(),this.liveLobbyConnection=void 0)}toggleConnect(){this.isLiveCasino&&("disconnect"===this.connectLive?this.disconnectGameFromLiveLobby():"connect"===this.connectLive&&this.connectGameToLiveLobby())}toggleVisibilityConnect(){this.isLiveCasino&&("disconnect"===this.visibilityConnect?this.disconnectGameFromLiveLobby():"connect"===this.visibilityConnect&&"connect"===this.connectLive&&this.connectGameToLiveLobby())}loadGameById(){fetch(`${this.endpoint}/v1/casino/games/${this.gameId}?expand=vendor&platform=${this.platform}&language=${this.language}`).then((e=>e.json())).then((e=>this.parseGameResponse(e))).catch((e=>{console.error(e)}))}loadGameInfoByLobbyEndpoint(){let e=new URL(`${this.livelobbyEndpoint.split("?")[0]}`);e.searchParams.append("expand","vendor"),e.searchParams.append("platform",this.platform),e.searchParams.append("language",this.language),fetch(e.toString()).then((e=>e.json())).then((e=>this.parseGameResponse(e))).catch((e=>console.error(e)))}loadGameDetailInfo(){let e=new URL(`${this.endpoint}/v1/lobby/tables/${this.gameId}`);e.searchParams.append("platform",this.platform),e.searchParams.append("language",this.language),fetch(e.toString()).then((e=>e.json())).then((e=>{(null==e?void 0:e.category)&&(this.gameInfo.details=e,this.parseGameDetailsResponse())})).catch((e=>{console.error(e),setTimeout((()=>this.loadGameDetailInfo()),1e3)}))}toggleFavoriteGame(e){let t="thumbnail";this.gameInfo.isFavorite?window.postMessage({type:"SetUnfavoredGame",gameId:e,triggerFactor:t},window.location.href):window.postMessage({type:"SetFavoredGame",gameId:e,triggerFactor:t},window.location.href),this.toggleFavoriteCasinoGameEvent.emit(e)}generateGameInfoByProps(){return{id:this.gameId,name:this.gameName,subVendor:this.subVendor,hasFunMode:this.hasFunMode,hasAnonymousFunMode:this.hasAnonymousFunMode,thumbnail:this.thumbnail,cellSize:this.cellSize,gameTag:this.gameTag,vendor:{href:"",name:this.gameVendor},isFavorite:this.isFavorite,isNew:this.isNew,type:this.type,liveCasinoCategory:this.gameCategory||""}}triggerExtraInfoLoad(){var e,t;this.extraInfoRef=this.extraInfoRef||(null===(e=this.extraInfoSlotRef)||void 0===e?void 0:e.querySelector(this.getGameCategoryType())),null===(t=this.extraInfoRef)||void 0===t||t.onGameLoaded(this.gameInfo),window.postMessage({type:"casinoGameLoaded",gameInfo:this.gameInfo})}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0),this.gameInfo&&this.triggerExtraInfoLoad()}componentDidLoad(){window.addEventListener("message",this.messageHandler)}componentWillLoad(){if(this.isLiveCasino=this.type==r.LIVE_CASINO,this.extraInfoWidget=this.getGameCategoryType(),this.isUserLoggedIn=!(!this.session||!this.userId),!this.isLiveCasino||!this.livelobbyEndpoint)return this.thumbnail?(this.gameInfo=this.generateGameInfoByProps(),void(this.isLiveCasino&&this.endpoint&&this.loadDetails&&this.gameId&&this.loadGameDetailInfo())):void(this.gameId&&this.endpoint&&this.loadGameById());this.loadGameInfoByLobbyEndpoint()}disconnectedCallback(){this.liveLobbyConnection&&this.liveLobbyConnection.removeEventListener("message",this.gameDetailChangeHandler),window.removeEventListener("message",this.messageHandler)}getWidgetTypeByGameCategory(e){return s[e.toLowerCase()]}getGameOverlayProps(){var e,t;return{gameName:this.gameInfo.name,gameId:this.gameInfo.gameId,gameVendor:this.gameVendor||(null===(t=null===(e=this.gameInfo)||void 0===e?void 0:e.vendor)||void 0===t?void 0:t.name),hasFunMode:this.gameInfo.hasFunMode,language:this.language,integratedGameframeMobile:this.integratedGameframeMobile,integratedGameframeDesktop:this.integratedGameframeDesktop,gamepageModalurl:this.gamepageModalurl}}render(){var e,t;if(!this.gameInfo)return i("div",{class:"GameInnerContainer",part:"GameInnerContainer",slot:"Game-Inner"},i("img",{src:this.thumbnail,alt:"",loading:"lazy",part:"GameContainer",class:"GameContainer",onLoad:()=>this.thumbnailLoaded=!0}));const n=this.getGameOverlayProps(),o=(null===(e=this.gameInfo)||void 0===e?void 0:e.thumbnail)||(null===(t=this.gameInfo)||void 0===t?void 0:t.defaultThumbnail),r=this.getGameContainerClass(),s=`GameBg ${this.cellSize?"GameBg-"+this.cellSize:""}\n ${this.hover?" GameContainerHovered":""} ${this.thumbnailLoaded?" Loaded":""}`;return i("div",{class:`${r} ${this.containerClassWhenDetailChange}`,part:`${r} ${this.containerClassWhenDetailChange}`,ref:e=>this.stylingContainer=e,"client-styling":this.clientStyling,"client-styling-url-content":this.clientStylingUrl},i("div",{class:"GameInnerContainer "+(this.hover?"Hovered":""),part:"GameInnerContainer "+(this.hover?"Hovered":"")},i("img",{src:o,alt:"Game Thumbnail ",loading:"lazy",part:s,class:s,onLoad:()=>this.thumbnailLoaded=!0}),this.isUserLoggedIn&&i("div",{class:"FavIconContainer "+(this.gameInfo.isFavorite?"Favorited":""),part:"FavIconContainer "+(this.gameInfo.isFavorite?"Favorited":""),onClick:()=>this.toggleFavoriteGame(this.gameId)},this.gameInfo.isFavorite?i("slot",{name:"fav-icon"},i("span",{class:"FavoredIcon",part:"FavoredIcon",innerHTML:"data:image/svg+xml;base64,PHN2ZwogIHZlcnNpb249IjEuMSIKICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgdmlld0JveD0iMCAwIDE5LjQ4MSAxOS40ODEiCiAgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTkuNDgxIDE5LjQ4MSIKPgogIDxwYXRoCiAgICBkPSJtMTAuMjAxLC43NThsMi40NzgsNS44NjUgNi4zNDQsLjU0NWMwLjQ0LDAuMDM4IDAuNjE5LDAuNTg3IDAuMjg1LDAuODc2bC00LjgxMiw0LjE2OSAxLjQ0Miw2LjIwMmMwLjEsMC40MzEtMC4zNjcsMC43Ny0wLjc0NSwwLjU0MWwtNS40NTItMy4yODgtNS40NTIsMy4yODhjLTAuMzc5LDAuMjI4LTAuODQ1LTAuMTExLTAuNzQ1LTAuNTQxbDEuNDQyLTYuMjAyLTQuODEzLTQuMTdjLTAuMzM0LTAuMjg5LTAuMTU2LTAuODM4IDAuMjg1LTAuODc2bDYuMzQ0LS41NDUgMi40NzgtNS44NjRjMC4xNzItMC40MDggMC43NDktMC40MDggMC45MjEsMHoiLz4KPC9zdmc+Cg=="})):i("slot",{name:"UnFavIcon"},!a(window.navigator.userAgent)&&i("span",{class:"UnfavoredIcon",part:"UnfavoredIcon",innerHTML:"data:image/svg+xml;base64,PHN2ZwogIHZlcnNpb249IjEuMSIKICBjbGFzcz0iVW5mYXZvcmVkSWNvbiIKICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgeD0iMjBweCIKICB5PSIyMHB4IgogIHZpZXdCb3g9IjAgMCA1MTIuMDAxIDUxMi4wMDEiCj4KICA8cGF0aAogICAgZD0iTTUxMS4yNjYsMTk3LjI1NmMtMS43NjQtNS40MzEtNi40NTgtOS4zODgtMTIuMTA4LTEwLjIwOWwtMTU4LjcyMi0yMy4wNjVMMjY5LjQ1MiwyMC4xNTUKICAgICAgICAgICAgICAgICAgICAgIGMtMi41MjctNS4xMi03Ljc0MS04LjM2MS0xMy40NTEtOC4zNjFjLTUuNzA5LDAtMTAuOTI0LDMuMjQyLTEzLjQ1MSw4LjM2MWwtNzAuOTg4LDE0My44MjhMMTIuODQzLDE4Ny4wNDcKICAgICAgICAgICAgICAgICAgICAgIGMtNS42NSwwLjgyMS0xMC4zNDQsNC43NzktMTIuMTA4LDEwLjIwOWMtMS43NjUsNS40My0wLjI5MywxMS4zOTEsMy43OTUsMTUuMzc2bDExNC44NDgsMTExLjk1NUw5Mi4yNyw0ODIuNjcKICAgICAgICAgICAgICAgICAgICAgIGMtMC45NjUsNS42MjcsMS4zNDksMTEuMzE1LDUuOTY4LDE0LjY3YzQuNjE4LDMuMzU1LDEwLjc0LDMuNzk4LDE1Ljc5NywxLjE0MkwyNTYsNDIzLjg0NmwxNDEuOTYxLDc0LjYzNwogICAgICAgICAgICAgICAgICAgICAgYzIuMTk1LDEuMTU0LDQuNTkxLDEuNzIzLDYuOTc5LDEuNzIzYzMuMTEsMCw2LjIwNi0wLjk2Niw4LjgxOC0yLjg2NWM0LjYxOS0zLjM1Niw2LjkzMy05LjA0Myw1Ljk2OC0xNC42NzFMMzkyLjYxLDMyNC41ODcKICAgICAgICAgICAgICAgICAgICAgIGwxMTQuODYtMTExLjk1NEM1MTEuNTU5LDIwOC42NDcsNTEzLjAzMSwyMDIuNjg2LDUxMS4yNjYsMTk3LjI1NnogTTM2Ni4wMjMsMzA4LjYwOGMtMy41MzYsMy40NDYtNS4xNSw4LjQxMi00LjMxNCwxMy4yNzgKICAgICAgICAgICAgICAgICAgICAgIGwyMy4zMTEsMTM1Ljg5OGwtMTIyLjAzOC02NC4xNjJjLTQuMzctMi4yOTctOS41OTEtMi4yOTctMTMuOTYxLDBsLTEyMi4wNDUsNjQuMTYzbDIzLjMwNC0xMzUuOQogICAgICAgICAgICAgICAgICAgICAgYzAuODM0LTQuODY2LTAuNzc5LTkuODMtNC4zMTMtMTMuMjc2bC05OC43MzEtOTYuMjQ0bDEzNi40NDUtMTkuODI5YzQuODg2LTAuNzEsOS4xMDgtMy43NzgsMTEuMjk0LTguMjA1TDI1Niw2MC42ODUKICAgICAgICAgICAgICAgICAgICAgIGw2MS4wMjMsMTIzLjY0NWMyLjE4Niw0LjQyNyw2LjQwOCw3LjQ5NiwxMS4yOTQsOC4yMDZsMTM2LjQ0NywxOS44MjhMMzY2LjAyMywzMDguNjA4eiIKICAvPgo8L3N2Zz4K"}))),i("slot",{name:"game-overlay"},i("casino-game-thumbnail-overlay",Object.assign({language:this.language},n))),i("slot",{name:"extra-info",ref:e=>this.extraInfoSlotRef=e},i(this.extraInfoWidget,{language:this.language,"show-round-board":this.showRoundBoard})),i("slot",{name:"game-property-slot"})),this.showGameName&&i("slot",{name:"game-name"},i("p",{class:"GameNameBelow",part:"GameNameBelow",title:n.gameName},n.gameName)))}static get assetsDirs(){return["static"]}static get watchers(){return{session:["onSessionChanged"],userId:["onSessionChanged"],isTableFull:["onTableFullChanged"],connectLive:["connectLiveHandler"],visibilityConnect:["visibilityConnectHandler"]}}};u.style=':host{display:block}*,*::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:hover{cursor:pointer}.GameInnerContainer:hover .GameInfoWrapper{display:block}.GameInnerContainer:hover .GameBg{filter:blur(5px) grayscale(1)}.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::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:hover .OpenSeat,.ListGame .GameInnerContainer .ListGame:hover .ClosedSeat,.ListGame .GameInnerContainer .ListGame:hover .LiveLimits,.ListGame .GameInnerContainer .ListGame:hover .LatestResult,.ListGame .GameInnerContainer .ListGame:hover .FullTable,.ListGame .GameInnerContainer .ListGame:active .OpenSeat,.ListGame .GameInnerContainer .ListGame:active .ClosedSeat,.ListGame .GameInnerContainer .ListGame:active .LiveLimits,.ListGame .GameInnerContainer .ListGame:active .LatestResult,.ListGame .GameInnerContainer .ListGame:active .FullTable{opacity:0.2}.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(--emw--color-white, #FFFFFF);fill:var(--emw--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(--emw--color-white, #FFFFFF);fill:var(--emw--color-white, #FFFFFF);opacity:1;border-radius:4px}.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{animation:green-pulse 2s linear}.ListGame .GameInnerContainer .ListGame.PulsatingRedShadow{animation:red-pulse 2s linear}.ListGame .GameInnerContainer .Blue{color:#4d90a7}.ListGame .GameInnerContainer .Red{background-color:red}.ListGame .GameInnerContainer .Black{background-color:var(--emw--color-black, #000000)}.ListGame .GameInnerContainer .Green{background-color:#56A80A}.ListGame .GameInnerContainer .White{background-color:var(--emw--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(--emw--color-white, #FFFFFF);background-image:linear-gradient(135deg, var(--emw--color-white, #FFFFFF) 25%, transparent 25%, transparent 50%, #212121 50%, var(--emw--color-white, #FFFFFF) 75%, transparent 75%, var(--emw--color-white, #FFFFFF))}.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(--emw--color-white, #FFFFFF)}.ListGame .GameInnerContainer .PlayersDisplay .PlayersIcon{width:14px;height:14px;margin-right:4px}.ListGame .GameInnerContainer .PlayersDisplay .PlayersIcon svg{fill:var(--emw--color-white, #FFFFFF);width:100%;height:100%}.ListGame .GameInnerContainer .ClosedGame{opacity:1;z-index:10;padding:8px 10px;color:var(--emw--color-white, #FFFFFF);font-size:18px}.ListGame .GameInnerContainer .ClosedGame span{font-size:18px}.ListGame .GameInnerContainer .Players{display:inline-block;width:19px;height:19px}.FavIconContainer{position:absolute;top:10px;right:10px;cursor:pointer;z-index:16;width:15px;height:15px;opacity:0}.FavIconContainer.Favorited{opacity:1}.FavIconContainer svg path{fill:#fff}.Hovered .FavIconContainer{opacity:1}.GameNameBelow{color:var(--emw--color-white, #FFFFFF);position:relative;bottom:-5px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}';const g=class{constructor(i){e(this,i),this.playClicked=t(this,"playCasinoGame",7),this.integratedGameframeMobile=!1,this.integratedGameframeDesktop=!1,this.language="en",this.userAgent=window.navigator.userAgent}onPlayNowClicked(){this.playClicked.emit(this.gameId);let e={gameId:this.gameId,isMobile:a(this.userAgent)},t=this.integratedGameframeMobile||this.integratedGameframeDesktop;window.postMessage({type:t?"OpenGameFrame":"ShowGameModal",eventData:t?Object.assign(Object.assign({},e),{gamefunmode:this.hasFunMode,source:"GameThumbnail",identifier:"Lobby"}):e},window.location.href)}render(){return i("div",{key:"b552e85f9652d467595f9603e564387148d81417",class:"GameInfoWrapper",part:"GameInfoWrapper"},i("div",{key:"c8ad8953997fa38e46f076be71c8a26a5a47afcd",class:"GameInfo ",part:"GameInfo "},i("p",{key:"7477d68d364589d8fd2ef80ec15f4457a0f8c69d",class:"GameInfoName",part:"GameInfoName",title:this.gameName}," ",this.gameName," "),i("button",{key:"280a36956cf541b909c8c6269f2bfd0e51ebf07b",class:"GameInfoBtn",part:"GameInfoBtn",onClick:()=>this.onPlayNowClicked()},l("playNow",this.language))),i("slot",{key:"79c3e4ceb605025b5b25be04339a63096cd36e28",name:"vendor-name"},i("span",{key:"fdb2ebaa6eaf1f3e11356aff6c043ed6a0c41a35",class:"GameInfoVendor",part:"GameInfoVendor"},this.gameVendor)))}};g.style=":host{display:block}.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}.GameInfoWrapper .GameInfo{display:flex;width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center}.GameInfoWrapper .GameInfoName{color:white;margin-bottom:10px;text-align:center;font-size:14px}.GameInfoWrapper .GameInfoBtn{appearance:none;padding:6px;background:var(--emw--color-primary, #D0046C);color:var(--emw--color-primary-50, #FBECF4);font-size:16px;border:2px solid var(--emw--color-primary-600, #99034F);border-radius:5px;cursor:pointer;transition:border 150ms ease-in-out}.GameInfoWrapper .GameInfoBtn:hover{border:2px solid var(--emw--color-primary-100, #F1BED9)}.GameInfoVendor{display:block;position:absolute;bottom:8px;right:8px;color:white;font-size:12px;font-weight:normal}.GameInfoWrapper:hover{display:block !important}";export{u as casino_game_thumb_view,g as casino_game_thumbnail_overlay}
@@ -0,0 +1 @@
1
+ import{r as e,h as t,H as s}from"./p-9c9196db.js";import{R as o,W as a}from"./p-2d02adb1.js";const i=class{constructor(t){e(this,t),this.language="en"}async onGameLoaded(e){var t;this.gameInfo=Object.assign({},e),this.gameDetails=this.gameInfo.details?Object.assign({},this.gameInfo.details):null,null===(t=this.infoWrapperRef)||void 0===t||t.onGameLoaded(e)}async onGameDetailUpdated(e){this.gameInfo.details=this.gameDetails=e,this.gameInfo=Object.assign({},this.gameInfo),this.gameDetails=Object.assign({},this.gameDetails)}getRouletteNumberColor(e){return o[e]}render(){var e,o,i,l;const r=!!this.gameDetails&&this.gameDetails.category.toLowerCase()===a.doubleballroulette;let c=(r?null===(e=this.gameDetails)||void 0===e?void 0:e.currentDoubleBallRouletteNumbers:null===(o=this.gameDetails)||void 0===o?void 0:o.currentRouletteNumbers)||[];return t(s,{key:"c7c66e8f51bc9a09b78856342203ebe24fd09231"},t("casino-game-thumbnail-extrainfo",{key:"380e499260501a6126ab6944eed0ea1e1ce3877d",ref:e=>this.infoWrapperRef=e,language:this.language},t("div",{key:"233bbf1c16b1d36ac463a4178ef1724124817890",slot:"category-details",class:"LiveIcons "+((null===(i=this.gameDetails)||void 0===i?void 0:i.isOpen)?"GameBackdrop":""),part:"LiveIcons "+((null===(l=this.gameDetails)||void 0===l?void 0:l.isOpen)?"GameBackdrop":"")},c.slice(0,5).map(((e,s)=>!0===r?t("div",{class:"Double",part:"Double"},t("span",{id:`s${s}0`,class:`LatestResult ${0==s?"First":""} ${this.showLiveClass?"FirstElementAnimated":""} ${this.getRouletteNumberColor(e[0])}`}," ",e[0]),t("span",{id:`s${s}1`,class:`LatestResult ${0==s?"First":""} ${this.showLiveClass?"FirstElementAnimated":""} ${this.getRouletteNumberColor(e[1])}`}," ",e[1])):t("span",{id:`s${s}`,class:`LatestResult ${0==s?"First":""} ${this.showLiveClass?"FirstElementAnimated":""} ${this.getRouletteNumberColor(e)}`}," ",e))))))}};i.style=':host{display:block;font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}.Blue{color:#4d90a7}.Red{background-color:red}.Black{background-color:var(--emw--color-black, #000000)}.Green{background-color:#56A80A}.White{background-color:var(--emw--color-white, #FFFFFF)}.Yellow{background-color:#eeca3d}.Gold{background-color:#866d0c}.Orange{background-color:#574708}.Purple{background-color:#330033}';export{i as casino_extrainfo_roulette}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-0892a7c6.js');
5
+ const index = require('./index-7128576b.js');
6
6
  const gameThumbnail = require('./game-thumbnail-5a34c727.js');
7
7
 
8
8
  var CasinoGameCategory;
@@ -261,10 +261,6 @@ const CasinoExtrainfoBaccarat = class {
261
261
  this.baccaratSvg = new BaccaratSvg();
262
262
  this.isBoardInited = false;
263
263
  this.filledCells = [];
264
- this.language = undefined;
265
- this.showRoundBoard = undefined;
266
- this.gameInfo = undefined;
267
- this.gameDetails = undefined;
268
264
  }
269
265
  gameDetailsHandler(newVal, oldVal) {
270
266
  if (newVal.isOpen && (!oldVal || !oldVal.isOpen)) {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-0892a7c6.js');
5
+ const index = require('./index-7128576b.js');
6
6
  const gameThumbnail = require('./game-thumbnail-5a34c727.js');
7
7
  const locale_utils = require('./locale.utils-53bf703a.js');
8
8
 
@@ -14,11 +14,6 @@ const CasinoExtrainfoBlackjackStyle0 = casinoExtrainfoBlackjackCss;
14
14
  const CasinoExtrainfoBlackjack = class {
15
15
  constructor(hostRef) {
16
16
  index.registerInstance(this, hostRef);
17
- this.language = undefined;
18
- this.gameInfo = undefined;
19
- this.gameDetails = undefined;
20
- this.seatsStatus = undefined;
21
- this.isTableFull = undefined;
22
17
  }
23
18
  /**
24
19
  * Generate Jackpot live seats info
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-0892a7c6.js');
5
+ const index = require('./index-7128576b.js');
6
6
  const gameThumbnail = require('./game-thumbnail-5a34c727.js');
7
7
 
8
8
  const casinoExtrainfoRouletteCss = ":host{display:block;font-family:system-ui, -apple-system, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\"}.Blue{color:#4d90a7}.Red{background-color:red}.Black{background-color:var(--emw--color-black, #000000)}.Green{background-color:#56A80A}.White{background-color:var(--emw--color-white, #FFFFFF)}.Yellow{background-color:#eeca3d}.Gold{background-color:#866d0c}.Orange{background-color:#574708}.Purple{background-color:#330033}";
@@ -11,10 +11,10 @@ const CasinoExtrainfoRouletteStyle0 = casinoExtrainfoRouletteCss;
11
11
  const CasinoExtrainfoRoulette = class {
12
12
  constructor(hostRef) {
13
13
  index.registerInstance(this, hostRef);
14
+ /**
15
+ * Language
16
+ */
14
17
  this.language = 'en';
15
- this.gameInfo = undefined;
16
- this.gameDetails = undefined;
17
- this.showLiveClass = undefined;
18
18
  }
19
19
  async onGameLoaded(gameInfo) {
20
20
  var _a;
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-0892a7c6.js');
5
+ const index = require('./index-7128576b.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.25.1 | MIT Licensed | https://stenciljs.com
10
10
  */
11
11
  var patchBrowser = () => {
12
12
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('casino-game-thumb-view.cjs.js', document.baseURI).href));
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-0892a7c6.js');
5
+ const index = require('./index-7128576b.js');
6
6
  const utils = require('./utils-c4ed3adc.js');
7
7
  const gameThumbnail = require('./game-thumbnail-5a34c727.js');
8
8
  const locale_utils = require('./locale.utils-53bf703a.js');
@@ -1066,6 +1066,45 @@ const CasinoGameThumbView = class {
1066
1066
  constructor(hostRef) {
1067
1067
  index.registerInstance(this, hostRef);
1068
1068
  this.toggleFavoriteCasinoGameEvent = index.createEvent(this, "toggleCasinoGameFavorite", 7);
1069
+ /**
1070
+ * Widget Setting, Game language
1071
+ */
1072
+ this.language = 'en';
1073
+ /**
1074
+ * Widget Setting, Client custom styling via string
1075
+ */
1076
+ this.clientStyling = '';
1077
+ /**
1078
+ * Widget Setting, Client custom styling via url content
1079
+ */
1080
+ this.clientStylingUrl = '';
1081
+ /**
1082
+ * Widget Setting, show game in a frame when user clicked 'start'
1083
+ */
1084
+ this.integratedGameframeMobile = false;
1085
+ /**
1086
+ * Widget Setting, show game in a frame when user clicked 'start', Open game aframe,
1087
+ * gamepageModalurl value should be set
1088
+ */
1089
+ this.integratedGameframeDesktop = false;
1090
+ /**
1091
+ * Widget Setting, Load game details when set it as true, default value: false
1092
+ * When loadDetails is true and type=='live-casino-tables',
1093
+ * Load gameDetails by endpoint/vendor/gameId if livelobbyEndpoint is null
1094
+ */
1095
+ this.loadDetails = false;
1096
+ /**
1097
+ * Widget Setting, showRoundBoard, default value: false
1098
+ */
1099
+ this.showRoundBoard = false;
1100
+ /**
1101
+ * Game Property, default ''
1102
+ */
1103
+ this.gameCategory = '';
1104
+ /**
1105
+ * Game Property, Game lunch platform
1106
+ */
1107
+ this.platform = 'PC';
1069
1108
  this.thumbnailLoaded = false;
1070
1109
  this.containerClassWhenDetailChange = '';
1071
1110
  this.isUserLoggedIn = false;
@@ -1113,39 +1152,6 @@ const CasinoGameThumbView = class {
1113
1152
  }
1114
1153
  return gameContainerClass;
1115
1154
  };
1116
- this.language = 'en';
1117
- this.endpoint = undefined;
1118
- this.userId = undefined;
1119
- this.showGameName = undefined;
1120
- this.session = undefined;
1121
- this.showFavoredCategory = undefined;
1122
- this.clientStyling = '';
1123
- this.clientStylingUrl = '';
1124
- this.integratedGameframeMobile = false;
1125
- this.gamepageModalurl = undefined;
1126
- this.integratedGameframeDesktop = false;
1127
- this.loadDetails = false;
1128
- this.showRoundBoard = false;
1129
- this.visibilityConnect = undefined;
1130
- this.connectLive = undefined;
1131
- this.gameCategory = '';
1132
- this.livelobbyEndpoint = undefined;
1133
- this.gameId = undefined;
1134
- this.gameName = undefined;
1135
- this.subVendor = undefined;
1136
- this.gameVendor = undefined;
1137
- this.hasFunMode = undefined;
1138
- this.hasAnonymousFunMode = undefined;
1139
- this.platform = 'PC';
1140
- this.thumbnail = undefined;
1141
- this.isFavorite = undefined;
1142
- this.isNew = undefined;
1143
- this.cellSize = undefined;
1144
- this.gameTag = undefined;
1145
- this.type = undefined;
1146
- this.gameInfo = undefined;
1147
- this.isTableFull = undefined;
1148
- this.hover = undefined;
1149
1155
  }
1150
1156
  onSessionChanged() {
1151
1157
  this.isUserLoggedIn = !!(this.session && this.userId);
@@ -1529,15 +1535,20 @@ const CasinoGameThumbnailOverlay = class {
1529
1535
  constructor(hostRef) {
1530
1536
  index.registerInstance(this, hostRef);
1531
1537
  this.playClicked = index.createEvent(this, "playCasinoGame", 7);
1532
- this.userAgent = window.navigator.userAgent;
1533
- this.gamepageModalurl = undefined;
1538
+ /**
1539
+ * Widget Setting, show game in a frame when user clicked 'start', default: false
1540
+ */
1534
1541
  this.integratedGameframeMobile = false;
1542
+ /**
1543
+ * Widget Setting, show game in a frame when user clicked 'start', default: false
1544
+ * Open game in a frame, gamepageModalurl value should be set
1545
+ */
1535
1546
  this.integratedGameframeDesktop = false;
1547
+ /**
1548
+ * Language
1549
+ */
1536
1550
  this.language = 'en';
1537
- this.gameName = undefined;
1538
- this.gameVendor = undefined;
1539
- this.gameId = undefined;
1540
- this.hasFunMode = undefined;
1551
+ this.userAgent = window.navigator.userAgent;
1541
1552
  }
1542
1553
  onPlayNowClicked() {
1543
1554
  this.playClicked.emit(this.gameId);
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-0892a7c6.js');
5
+ const index = require('./index-7128576b.js');
6
6
  const utils = require('./utils-c4ed3adc.js');
7
7
  const locale_utils = require('./locale.utils-53bf703a.js');
8
8
  const gameThumbnail = require('./game-thumbnail-5a34c727.js');
@@ -189,8 +189,6 @@ const CasinoGameThumbnailBetlimit = class {
189
189
  index.registerInstance(this, hostRef);
190
190
  this.defaultCurrency = 'EUR';
191
191
  this.isBetLimitAvailable = false;
192
- this.betLimit = undefined;
193
- this.numberOfPlayers = undefined;
194
192
  }
195
193
  getCurrencySymbols(currency) {
196
194
  return currenciesSymbols[currency];
@@ -221,11 +219,8 @@ const CasinoGameThumbnailExtrainfoStyle0 = casinoGameThumbnailExtrainfoCss;
221
219
  const CasinoGameThumbnailExtrainfo = class {
222
220
  constructor(hostRef) {
223
221
  index.registerInstance(this, hostRef);
224
- this.isNewGame = false;
225
222
  this.language = 'en';
226
- this.betLimit = undefined;
227
- this.gameInfo = undefined;
228
- this.gameDetails = undefined;
223
+ this.isNewGame = false;
229
224
  }
230
225
  async onGameLoaded(gameInfo) {
231
226
  var _a;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-0892a7c6.js');
5
+ const index = require('./index-7128576b.js');
6
6
 
7
7
  const casinoNormalGameThumbnailCss = ":host{display:block}";
8
8
  const CasinoNormalGameThumbnailStyle0 = casinoNormalGameThumbnailCss;
@@ -10,7 +10,6 @@ const CasinoNormalGameThumbnailStyle0 = casinoNormalGameThumbnailCss;
10
10
  const CasinoNormalGameThumbnail = class {
11
11
  constructor(hostRef) {
12
12
  index.registerInstance(this, hostRef);
13
- this.language = undefined;
14
13
  }
15
14
  async onGameLoaded(gameInfo) {
16
15
  var _a;