@everymatrix/casino-game-thumb-view 1.66.1 → 1.66.2

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.
@@ -0,0 +1 @@
1
+ import{r as t,h as i,H as s}from"./index-8058a16f.js";import{b as n}from"./game-thumbnail-035e97e2.js";var e,a;!function(t){t.ROULETTE="ROULETTE",t.POKER="POKER",t.BLACKJACK="BLACKJACK"}(e||(e={})),function(t){t.PLAYER="Player",t.WINNER="Banker",t.TIE="Tie"}(a||(a={}));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"}),e=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(e),t.replaceChildren(s),this.svgGroupObj=e}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 e=this.getCenterPoint(t,i),h=this.createTag("g",{class:`Round ${n?"NewRound":""} ${s.winner===a.TIE?"Tie":""}`,part:"Round "+(n?"NewRound":""),opacity:n?.1:1});if(s.winner!==a.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:e.cx-1.5,y:e.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:e.cx-1.5,y:e.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 e=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(e),this.svgGroupObj.appendChild(e)}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 e=s.cx+n*Math.cos(135*Math.PI/180),a=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:e,y1:a,x2:h,y2:o,class:"Tie",stroke:"green",opacity:"0.8","stroke-width":"1.8px"})}createPairDot(t,i,s,n){let e=this.getCenterPoint(t,i),a=this.getRadius()+this.markGroupExtraClass.pairDotR;const h=e.cx+a*Math.cos(n*Math.PI/180),o=e.cy+a*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 e=this.getCenterPoint(t,i),a=this.getRadius()+this.markGroupExtraClass.pairDotR;const h=e.cx+a*Math.cos(n*Math.PI/180),o=e.cy+a*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==a.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,e)=>{if(s.winner==a.TIE){if(e==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:a.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 i,h as e,H as t}from"./index-8058a16f.js";import{D as a}from"./game-thumbnail-035e97e2.js";import{t as s}from"./locale.utils-0c514ca8.js";const l=class{constructor(e){i(this,e),this.language=void 0,this.gameInfo=void 0,this.gameDetails=void 0,this.seatsStatus=void 0,this.isTableFull=void 0}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 @@
1
+ import{r as e,h as t,H as s}from"./index-8058a16f.js";import{R as o,W as i}from"./game-thumbnail-035e97e2.js";const a=class{constructor(t){e(this,t),this.language="en",this.gameInfo=void 0,this.gameDetails=void 0,this.showLiveClass=void 0}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,a,l;const r=!!this.gameDetails&&this.gameDetails.category.toLowerCase()===i.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===(a=this.gameDetails)||void 0===a?void 0:a.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))))))}};a.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{a as casino_extrainfo_roulette}
@@ -1 +1 @@
1
- import{p as e,b as a}from"./p-b5a64db5.js";export{s as setNonce}from"./p-b5a64db5.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-9d4688f7",[[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-0f03c743",[[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-a0c26052",[[0,"casino-extrainfo-blackjack",{language:[1],gameInfo:[32],gameDetails:[32],seatsStatus:[32],isTableFull:[32],onGameLoaded:[64],onGameDetailUpdated:[64]}]]],["p-fd38189d",[[0,"casino-extrainfo-roulette",{language:[1],gameInfo:[32],gameDetails:[32],showLiveClass:[32],onGameLoaded:[64],onGameDetailUpdated:[64]}]]],["p-d6ec6d6a",[[0,"casino-normal-game-thumbnail",{language:[1],onGameLoaded:[64]}]]],["p-553cb7a3",[[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"./index-8058a16f.js";export{s as setNonce}from"./index-8058a16f.js";import{g as n}from"./app-globals-0f993ce5.js";(()=>{const a=import.meta.url,n={};return""!==a&&(n.resourcesUrl=new URL(".",a).href),e(n)})().then((async e=>(await n(),a([["casino-game-thumbnail-betlimit_2",[[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"]}]]],["casino-extrainfo-baccarat",[[0,"casino-extrainfo-baccarat",{language:[1],showRoundBoard:[4,"show-round-board"],gameInfo:[32],gameDetails:[32],onGameLoaded:[64],onGameDetailUpdated:[64],onBaccaratResultChanged:[64]},null,{gameDetails:["gameDetailsHandler"]}]]],["casino-extrainfo-blackjack",[[0,"casino-extrainfo-blackjack",{language:[1],gameInfo:[32],gameDetails:[32],seatsStatus:[32],isTableFull:[32],onGameLoaded:[64],onGameDetailUpdated:[64]}]]],["casino-extrainfo-roulette",[[0,"casino-extrainfo-roulette",{language:[1],gameInfo:[32],gameDetails:[32],showLiveClass:[32],onGameLoaded:[64],onGameDetailUpdated:[64]}]]],["casino-normal-game-thumbnail",[[0,"casino-normal-game-thumbnail",{language:[1],onGameLoaded:[64]}]]],["casino-game-thumb-view_2",[[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,4 +1,4 @@
1
- import{r as t,c as e,h as i}from"./p-b5a64db5.js";import{c as n,i as a}from"./p-62abf08e.js";import{G as o,a as s,W as r}from"./p-2d02adb1.js";import{t as h}from"./p-59ceeaaa.js";var l,c,d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},m={exports:{}};
1
+ import{r as t,c as e,h as i}from"./index-8058a16f.js";import{c as n,i as a}from"./utils-0ac47409.js";import{G as o,a as s,W as r}from"./game-thumbnail-035e97e2.js";import{t as h}from"./locale.utils-0c514ca8.js";var l,c,d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},m={exports:{}};
2
2
  /** @license
3
3
  * eventsource.js
4
4
  * Available under MIT License (MIT)
@@ -0,0 +1 @@
1
+ import{r as t,h as e}from"./index-8058a16f.js";import{r as n,t as r,_ as i,n as a,a as o}from"./utils-0ac47409.js";import{t as s}from"./locale.utils-0c514ca8.js";import{W as u,c as d}from"./game-thumbnail-035e97e2.js";function c(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}var l={};function h(){return l}function m(t){n(1,arguments);var e=r(t),i=e.getUTCDay(),a=(i<1?7:0)+i-1;return e.setUTCDate(e.getUTCDate()-a),e.setUTCHours(0,0,0,0),e}function f(t){n(1,arguments);var e=r(t),i=e.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(i+1,0,4),a.setUTCHours(0,0,0,0);var o=m(a),s=new Date(0);s.setUTCFullYear(i,0,4),s.setUTCHours(0,0,0,0);var u=m(s);return e.getTime()>=o.getTime()?i+1:e.getTime()>=u.getTime()?i:i-1}function v(t,e){var i,a,o,s,u,d,l,m;n(1,arguments);var f=h(),v=c(null!==(i=null!==(a=null!==(o=null!==(s=null==e?void 0:e.weekStartsOn)&&void 0!==s?s:null==e||null===(u=e.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==o?o:f.weekStartsOn)&&void 0!==a?a:null===(l=f.locale)||void 0===l||null===(m=l.options)||void 0===m?void 0:m.weekStartsOn)&&void 0!==i?i:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var w=r(t),g=w.getUTCDay(),b=(g<v?7:0)+g-v;return w.setUTCDate(w.getUTCDate()-b),w.setUTCHours(0,0,0,0),w}function w(t,e){var i,a,o,s,u,d,l,m;n(1,arguments);var f=r(t),w=f.getUTCFullYear(),g=h(),b=c(null!==(i=null!==(a=null!==(o=null!==(s=null==e?void 0:e.firstWeekContainsDate)&&void 0!==s?s:null==e||null===(u=e.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==o?o:g.firstWeekContainsDate)&&void 0!==a?a:null===(l=g.locale)||void 0===l||null===(m=l.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==i?i:1);if(!(b>=1&&b<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(w+1,0,b),p.setUTCHours(0,0,0,0);var L=v(p,e),G=new Date(0);G.setUTCFullYear(w,0,b),G.setUTCHours(0,0,0,0);var y=v(G,e);return f.getTime()>=L.getTime()?w+1:f.getTime()>=y.getTime()?w:w-1}function g(t,e){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length<e;)r="0"+r;return n+r}const b=function(t,e){var n=t.getUTCFullYear(),r=n>0?n:1-n;return g("yy"===e?r%100:r,e.length)},p=function(t,e){var n=t.getUTCMonth();return"M"===e?String(n+1):g(n+1,2)},L=function(t,e){return g(t.getUTCDate(),e.length)},G=function(t,e){return g(t.getUTCHours()%12||12,e.length)},y=function(t,e){return g(t.getUTCHours(),e.length)},x=function(t,e){return g(t.getUTCMinutes(),e.length)},M=function(t,e){return g(t.getUTCSeconds(),e.length)},D=function(t,e){var n=e.length,r=t.getUTCMilliseconds();return g(Math.floor(r*Math.pow(10,n-3)),e.length)};var F={G:function(t,e,n){var r=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if("yo"===e){var r=t.getUTCFullYear();return n.ordinalNumber(r>0?r:1-r,{unit:"year"})}return b(t,e)},Y:function(t,e,n,r){var i=w(t,r),a=i>0?i:1-i;return"YY"===e?g(a%100,2):"Yo"===e?n.ordinalNumber(a,{unit:"year"}):g(a,e.length)},R:function(t,e){return g(f(t),e.length)},u:function(t,e){return g(t.getUTCFullYear(),e.length)},Q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return g(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return g(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){var r=t.getUTCMonth();switch(e){case"M":case"MM":return p(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){var r=t.getUTCMonth();switch(e){case"L":return String(r+1);case"LL":return g(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,i,a){var o=function(t,e){n(1,arguments);var i=r(t),a=v(i,e).getTime()-function(t,e){var r,i,a,o,s,u,d,l;n(1,arguments);var m=h(),f=c(null!==(r=null!==(i=null!==(a=null!==(o=null==e?void 0:e.firstWeekContainsDate)&&void 0!==o?o:null==e||null===(s=e.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==a?a:m.firstWeekContainsDate)&&void 0!==i?i:null===(d=m.locale)||void 0===d||null===(l=d.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==r?r:1),g=w(t,e),b=new Date(0);return b.setUTCFullYear(g,0,f),b.setUTCHours(0,0,0,0),v(b,e)}(i,e).getTime();return Math.round(a/6048e5)+1}(t,a);return"wo"===e?i.ordinalNumber(o,{unit:"week"}):g(o,e.length)},I:function(t,e,i){var a=function(t){n(1,arguments);var e=r(t),i=m(e).getTime()-function(t){n(1,arguments);var e=f(t),r=new Date(0);return r.setUTCFullYear(e,0,4),r.setUTCHours(0,0,0,0),m(r)}(e).getTime();return Math.round(i/6048e5)+1}(t);return"Io"===e?i.ordinalNumber(a,{unit:"week"}):g(a,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):L(t,e)},D:function(t,e,i){var a=function(t){n(1,arguments);var e=r(t),i=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var a=e.getTime();return Math.floor((i-a)/864e5)+1}(t);return"Do"===e?i.ordinalNumber(a,{unit:"dayOfYear"}):g(a,e.length)},E:function(t,e,n){var r=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){var i=t.getUTCDay(),a=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(a);case"ee":return g(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){var i=t.getUTCDay(),a=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(a);case"cc":return g(a,e.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,n){var r=t.getUTCDay(),i=0===r?7:r;switch(e){case"i":return String(i);case"ii":return g(i,e.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,e,n){var r,i=t.getUTCHours();switch(r=12===i?"noon":0===i?"midnight":i/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,n){var r,i=t.getUTCHours();switch(r=i>=17?"evening":i>=12?"afternoon":i>=4?"morning":"night",e){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,n){if("ho"===e){var r=t.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return G(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):y(t,e)},K:function(t,e,n){var r=t.getUTCHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):g(r,e.length)},k:function(t,e,n){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===e?n.ordinalNumber(r,{unit:"hour"}):g(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):x(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):M(t,e)},S:function(t,e){return D(t,e)},X:function(t,e,n,r){var i=(r._originalDate||t).getTimezoneOffset();if(0===i)return"Z";switch(e){case"X":return P(i);case"XXXX":case"XX":return R(i);default:return R(i,":")}},x:function(t,e,n,r){var i=(r._originalDate||t).getTimezoneOffset();switch(e){case"x":return P(i);case"xxxx":case"xx":return R(i);default:return R(i,":")}},O:function(t,e,n,r){var i=(r._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+I(i,":");default:return"GMT"+R(i,":")}},z:function(t,e,n,r){var i=(r._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+I(i,":");default:return"GMT"+R(i,":")}},t:function(t,e,n,r){return g(Math.floor((r._originalDate||t).getTime()/1e3),e.length)},T:function(t,e,n,r){return g((r._originalDate||t).getTime(),e.length)}};function I(t,e){var n=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),a=r%60;if(0===a)return n+String(i);var o=e||"";return n+String(i)+o+g(a,2)}function P(t,e){return t%60==0?(t>0?"-":"+")+g(Math.abs(t)/60,2):R(t,e)}function R(t,e){var n=e||"",r=t>0?"-":"+",i=Math.abs(t);return r+g(Math.floor(i/60),2)+n+g(i%60,2)}const S=F;var C=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},E=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},T={p:E,P:function(t,e){var n,r=t.match(/(P+)(p+)?/)||[],i=r[1],a=r[2];if(!a)return C(t,e);switch(i){case"P":n=e.dateTime({width:"short"});break;case"PP":n=e.dateTime({width:"medium"});break;case"PPP":n=e.dateTime({width:"long"});break;default:n=e.dateTime({width:"full"})}return n.replace("{{date}}",C(i,e)).replace("{{time}}",E(a,e))}};const k=T;var B=["D","DD"],A=["YY","YYYY"];function N(t,e,n){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var $={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function W(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}var Y,K={date:W({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:W({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:W({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},O={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function z(t){return function(e,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&t.formattingValues){var i=t.defaultFormattingWidth||t.defaultWidth,a=null!=n&&n.width?String(n.width):i;r=t.formattingValues[a]||t.formattingValues[i]}else{var o=t.defaultWidth,s=null!=n&&n.width?String(n.width):t.defaultWidth;r=t.values[s]||t.values[o]}return r[t.argumentCallback?t.argumentCallback(e):e]}}function j(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=e.match(r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth]);if(!i)return null;var a,o=i[0],s=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],u=Array.isArray(s)?function(t){for(var e=0;e<t.length;e++)if(t[e].test(o))return e}(s):function(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e].test(o))return e}(s);return a=t.valueCallback?t.valueCallback(u):u,{value:a=n.valueCallback?n.valueCallback(a):a,rest:e.slice(o.length)}}}const U={code:"en-US",formatDistance:function(t,e,n){var r,i=$[t];return r="string"==typeof i?i:1===e?i.one:i.other.replace("{{count}}",e.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:K,formatRelative:function(t){return O[t]},localize:{ordinalNumber:function(t){var e=Number(t),n=e%100;if(n>20||n<10)switch(n%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},era:z({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:z({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:z({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:z({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:z({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(Y={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(Y.matchPattern);if(!n)return null;var r=n[0],i=t.match(Y.parsePattern);if(!i)return null;var a=Y.valueCallback?Y.valueCallback(i[0]):i[0];return{value:a=e.valueCallback?e.valueCallback(a):a,rest:t.slice(r.length)}}),era:j({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:j({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:j({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:j({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:j({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var q=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,H=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,X=/^'([^]*?)'?$/,Q=/''/g,J=/[a-zA-Z]/;function Z(t,e,a){var o,s,u,d,l,m,f,v,w,g,b,p,L,G,y,x,M,D;n(2,arguments);var F=String(e),I=h(),P=null!==(o=null!==(s=null==a?void 0:a.locale)&&void 0!==s?s:I.locale)&&void 0!==o?o:U,R=c(null!==(u=null!==(d=null!==(l=null!==(m=null==a?void 0:a.firstWeekContainsDate)&&void 0!==m?m:null==a||null===(f=a.locale)||void 0===f||null===(v=f.options)||void 0===v?void 0:v.firstWeekContainsDate)&&void 0!==l?l:I.firstWeekContainsDate)&&void 0!==d?d:null===(w=I.locale)||void 0===w||null===(g=w.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==u?u:1);if(!(R>=1&&R<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=c(null!==(b=null!==(p=null!==(L=null!==(G=null==a?void 0:a.weekStartsOn)&&void 0!==G?G:null==a||null===(y=a.locale)||void 0===y||null===(x=y.options)||void 0===x?void 0:x.weekStartsOn)&&void 0!==L?L:I.weekStartsOn)&&void 0!==p?p:null===(M=I.locale)||void 0===M||null===(D=M.options)||void 0===D?void 0:D.weekStartsOn)&&void 0!==b?b:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!P.localize)throw new RangeError("locale must contain localize property");if(!P.formatLong)throw new RangeError("locale must contain formatLong property");var E=r(t);if(!function(t){if(n(1,arguments),!function(t){return n(1,arguments),t instanceof Date||"object"===i(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var e=r(t);return!isNaN(Number(e))}(E))throw new RangeError("Invalid time value");var T=function(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}(E),$=function(t,e){return n(2,arguments),function(t,e){n(2,arguments);var i=r(t).getTime(),a=c(e);return new Date(i+a)}(t,-c(e))}(E,T),W={firstWeekContainsDate:R,weekStartsOn:C,locale:P,_originalDate:E};return F.match(H).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,k[e])(t,P.formatLong):t})).join("").match(q).map((function(n){if("''"===n)return"'";var r,i,o=n[0];if("'"===o)return(i=(r=n).match(X))?i[1].replace(Q,"'"):r;var s=S[o];if(s)return null!=a&&a.useAdditionalWeekYearTokens||-1===A.indexOf(n)||N(n,e,String(t)),null!=a&&a.useAdditionalDayOfYearTokens||!(-1!==B.indexOf(n))||N(n,e,String(t)),s($,n,P.localize,W);if(o.match(J))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return n})).join("")}const V={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$"},_=class{constructor(e){t(this,e),this.defaultCurrency="EUR",this.isBetLimitAvailable=!1,this.betLimit=void 0,this.numberOfPlayers=void 0}getCurrencySymbols(t){return V[t]}componentWillRender(){if(this.betLimit){const t=this.betLimit.max?this.betLimit.max:this.betLimit.min||{};this.isBetLimitAvailable=1===Object.keys(t).length,this.currency=this.isBetLimitAvailable?Object.keys(t)[0]:this.defaultCurrency}}render(){return this.isBetLimitAvailable?e("p",{class:"LiveLimits"},e("span",{class:"BetLimitLeft"},this.getCurrencySymbols(this.currency)," ",a(this.betLimit.min[this.currency])," -"," ",a(this.betLimit.max[this.currency])),(this.numberOfPlayers||0==this.numberOfPlayers)&&e("span",{class:"BetLimitRight"},e("svg",{fill:"white",width:"13",height:"13",viewBox:"0 0 13 14",xmlns:"http://www.w3.org/2000/svg"},e("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"})),e("span",{class:"NrOfPlayers"},this.numberOfPlayers))):""}};_.style=":host{display:block}";const tt=class{constructor(e){t(this,e),this.isNewGame=!1,this.language="en",this.betLimit=void 0,this.gameInfo=void 0,this.gameDetails=void 0}async onGameLoaded(t){var e;this.gameInfo=t,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()===u.doubleballroulette,this.gameTag=this.gameDetails&&(null===(e=this.gameInfo.advancedTags)||void 0===e?void 0:e.length)>0?o(this.gameInfo.advancedTags):this.gameInfo.gameTag,this.betLimit=this.gameDetails?this.gameDetails.betLimit:null,this.initTimeProperties())}initTimeProperties(){var t,e,n,r,i;"Bounded"===(null===(e=null===(t=this.gameDetails)||void 0===t?void 0:t.openHours)||void 0===e?void 0:e.type)&&(this.gameStartTime=null===(r=null===(n=this.gameDetails)||void 0===n?void 0:n.openHours)||void 0===r?void 0:r.value.startTime,this.gameTimeFormat=null===(i=this.gameDetails)||void 0===i?void 0:i.openHours.value.originalTimeFormat)}async onGameDetailUpdated(t){this.gameInfo.details=this.gameDetails=t,this.gameDetails=Object.assign({},this.gameDetails),this.initTimeProperties()}render(){var t,n,r;return this.gameInfo?e("div",{class:"GameExtraInfo",part:"GameExtraInfo"},this.isNewGame&&e("span",{class:"GameExtraInfoLabel NewGameTag",part:"GameExtraInfoLabel NewGameTag"},s("new",this.language)),this.gameTag&&e("span",{class:"GameExtraInfoLabel PopularGameTag",part:"GameExtraInfoLabel PopularGameTag"},this.gameTag),this.gameDetails&&e("div",{class:`GameProp LiveProps ${d[this.gameDetails.category.toLowerCase()]} ${this.isDouble?" Double":""}`,part:`GameProp LiveProps ${d[this.gameDetails.category.toLowerCase()]} ${this.isDouble?" Double":""}`},this.gameDetails.isOpen?e("slot",{name:"category-details"}):this.gameStartTime&&this.gameTimeFormat&&e("div",{class:"ClosedGame",part:"ClosedGame"},s("opens",this.language),e("span",null," ",Z(new Date(this.gameStartTime),Intl.DateTimeFormat().resolvedOptions().timeZone)," ")),(null===(t=this.gameDetails.dealer)||void 0===t?void 0:t.DealerName)&&e("p",{class:"LiveLimits"},e("span",{class:"DealerName"},s("dealer",this.language),":"," ",null===(n=this.gameDetails)||void 0===n?void 0:n.dealer.DealerName," ")),e("casino-game-thumbnail-betlimit",{betLimit:this.betLimit,numberOfPlayers:null===(r=this.gameDetails)||void 0===r?void 0:r.numberOfPlayers}))):""}};tt.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, #22B04E);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{_ as casino_game_thumbnail_betlimit,tt as casino_game_thumbnail_extrainfo}
@@ -0,0 +1 @@
1
+ import{r as a,h as e,H as s}from"./index-8058a16f.js";const o=class{constructor(e){a(this,e),this.language=void 0}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}
@@ -5,6 +5,7 @@ export const config = {
5
5
  taskQueue: 'async',
6
6
  sourceMap: false,
7
7
  minifyJs: true,
8
+ hashFileNames: false,
8
9
  extras: {
9
10
  experimentalImportInjection: true
10
11
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-game-thumb-view",
3
- "version": "1.66.1",
3
+ "version": "1.66.2",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -1 +0,0 @@
1
- import{r as t,h as i,H as s}from"./p-b5a64db5.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 +0,0 @@
1
- import{r as t,h as e}from"./p-b5a64db5.js";import{r as n,t as r,_ as i,n as a,a as o}from"./p-62abf08e.js";import{t as s}from"./p-59ceeaaa.js";import{W as u,c as d}from"./p-2d02adb1.js";function c(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}var l={};function h(){return l}function m(t){n(1,arguments);var e=r(t),i=e.getUTCDay(),a=(i<1?7:0)+i-1;return e.setUTCDate(e.getUTCDate()-a),e.setUTCHours(0,0,0,0),e}function f(t){n(1,arguments);var e=r(t),i=e.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(i+1,0,4),a.setUTCHours(0,0,0,0);var o=m(a),s=new Date(0);s.setUTCFullYear(i,0,4),s.setUTCHours(0,0,0,0);var u=m(s);return e.getTime()>=o.getTime()?i+1:e.getTime()>=u.getTime()?i:i-1}function v(t,e){var i,a,o,s,u,d,l,m;n(1,arguments);var f=h(),v=c(null!==(i=null!==(a=null!==(o=null!==(s=null==e?void 0:e.weekStartsOn)&&void 0!==s?s:null==e||null===(u=e.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==o?o:f.weekStartsOn)&&void 0!==a?a:null===(l=f.locale)||void 0===l||null===(m=l.options)||void 0===m?void 0:m.weekStartsOn)&&void 0!==i?i:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var w=r(t),g=w.getUTCDay(),b=(g<v?7:0)+g-v;return w.setUTCDate(w.getUTCDate()-b),w.setUTCHours(0,0,0,0),w}function w(t,e){var i,a,o,s,u,d,l,m;n(1,arguments);var f=r(t),w=f.getUTCFullYear(),g=h(),b=c(null!==(i=null!==(a=null!==(o=null!==(s=null==e?void 0:e.firstWeekContainsDate)&&void 0!==s?s:null==e||null===(u=e.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==o?o:g.firstWeekContainsDate)&&void 0!==a?a:null===(l=g.locale)||void 0===l||null===(m=l.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==i?i:1);if(!(b>=1&&b<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(w+1,0,b),p.setUTCHours(0,0,0,0);var L=v(p,e),G=new Date(0);G.setUTCFullYear(w,0,b),G.setUTCHours(0,0,0,0);var y=v(G,e);return f.getTime()>=L.getTime()?w+1:f.getTime()>=y.getTime()?w:w-1}function g(t,e){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length<e;)r="0"+r;return n+r}const b=function(t,e){var n=t.getUTCFullYear(),r=n>0?n:1-n;return g("yy"===e?r%100:r,e.length)},p=function(t,e){var n=t.getUTCMonth();return"M"===e?String(n+1):g(n+1,2)},L=function(t,e){return g(t.getUTCDate(),e.length)},G=function(t,e){return g(t.getUTCHours()%12||12,e.length)},y=function(t,e){return g(t.getUTCHours(),e.length)},x=function(t,e){return g(t.getUTCMinutes(),e.length)},M=function(t,e){return g(t.getUTCSeconds(),e.length)},D=function(t,e){var n=e.length,r=t.getUTCMilliseconds();return g(Math.floor(r*Math.pow(10,n-3)),e.length)};var F={G:function(t,e,n){var r=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if("yo"===e){var r=t.getUTCFullYear();return n.ordinalNumber(r>0?r:1-r,{unit:"year"})}return b(t,e)},Y:function(t,e,n,r){var i=w(t,r),a=i>0?i:1-i;return"YY"===e?g(a%100,2):"Yo"===e?n.ordinalNumber(a,{unit:"year"}):g(a,e.length)},R:function(t,e){return g(f(t),e.length)},u:function(t,e){return g(t.getUTCFullYear(),e.length)},Q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return g(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return g(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){var r=t.getUTCMonth();switch(e){case"M":case"MM":return p(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){var r=t.getUTCMonth();switch(e){case"L":return String(r+1);case"LL":return g(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,i,a){var o=function(t,e){n(1,arguments);var i=r(t),a=v(i,e).getTime()-function(t,e){var r,i,a,o,s,u,d,l;n(1,arguments);var m=h(),f=c(null!==(r=null!==(i=null!==(a=null!==(o=null==e?void 0:e.firstWeekContainsDate)&&void 0!==o?o:null==e||null===(s=e.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==a?a:m.firstWeekContainsDate)&&void 0!==i?i:null===(d=m.locale)||void 0===d||null===(l=d.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==r?r:1),g=w(t,e),b=new Date(0);return b.setUTCFullYear(g,0,f),b.setUTCHours(0,0,0,0),v(b,e)}(i,e).getTime();return Math.round(a/6048e5)+1}(t,a);return"wo"===e?i.ordinalNumber(o,{unit:"week"}):g(o,e.length)},I:function(t,e,i){var a=function(t){n(1,arguments);var e=r(t),i=m(e).getTime()-function(t){n(1,arguments);var e=f(t),r=new Date(0);return r.setUTCFullYear(e,0,4),r.setUTCHours(0,0,0,0),m(r)}(e).getTime();return Math.round(i/6048e5)+1}(t);return"Io"===e?i.ordinalNumber(a,{unit:"week"}):g(a,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):L(t,e)},D:function(t,e,i){var a=function(t){n(1,arguments);var e=r(t),i=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var a=e.getTime();return Math.floor((i-a)/864e5)+1}(t);return"Do"===e?i.ordinalNumber(a,{unit:"dayOfYear"}):g(a,e.length)},E:function(t,e,n){var r=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){var i=t.getUTCDay(),a=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(a);case"ee":return g(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){var i=t.getUTCDay(),a=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(a);case"cc":return g(a,e.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,n){var r=t.getUTCDay(),i=0===r?7:r;switch(e){case"i":return String(i);case"ii":return g(i,e.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,e,n){var r,i=t.getUTCHours();switch(r=12===i?"noon":0===i?"midnight":i/12>=1?"pm":"am",e){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,n){var r,i=t.getUTCHours();switch(r=i>=17?"evening":i>=12?"afternoon":i>=4?"morning":"night",e){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,n){if("ho"===e){var r=t.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return G(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):y(t,e)},K:function(t,e,n){var r=t.getUTCHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):g(r,e.length)},k:function(t,e,n){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===e?n.ordinalNumber(r,{unit:"hour"}):g(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):x(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):M(t,e)},S:function(t,e){return D(t,e)},X:function(t,e,n,r){var i=(r._originalDate||t).getTimezoneOffset();if(0===i)return"Z";switch(e){case"X":return P(i);case"XXXX":case"XX":return R(i);default:return R(i,":")}},x:function(t,e,n,r){var i=(r._originalDate||t).getTimezoneOffset();switch(e){case"x":return P(i);case"xxxx":case"xx":return R(i);default:return R(i,":")}},O:function(t,e,n,r){var i=(r._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+I(i,":");default:return"GMT"+R(i,":")}},z:function(t,e,n,r){var i=(r._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+I(i,":");default:return"GMT"+R(i,":")}},t:function(t,e,n,r){return g(Math.floor((r._originalDate||t).getTime()/1e3),e.length)},T:function(t,e,n,r){return g((r._originalDate||t).getTime(),e.length)}};function I(t,e){var n=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),a=r%60;if(0===a)return n+String(i);var o=e||"";return n+String(i)+o+g(a,2)}function P(t,e){return t%60==0?(t>0?"-":"+")+g(Math.abs(t)/60,2):R(t,e)}function R(t,e){var n=e||"",r=t>0?"-":"+",i=Math.abs(t);return r+g(Math.floor(i/60),2)+n+g(i%60,2)}const S=F;var C=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},E=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},T={p:E,P:function(t,e){var n,r=t.match(/(P+)(p+)?/)||[],i=r[1],a=r[2];if(!a)return C(t,e);switch(i){case"P":n=e.dateTime({width:"short"});break;case"PP":n=e.dateTime({width:"medium"});break;case"PPP":n=e.dateTime({width:"long"});break;default:n=e.dateTime({width:"full"})}return n.replace("{{date}}",C(i,e)).replace("{{time}}",E(a,e))}};const k=T;var B=["D","DD"],A=["YY","YYYY"];function N(t,e,n){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var $={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function W(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}var Y,K={date:W({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:W({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:W({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},O={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function z(t){return function(e,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&t.formattingValues){var i=t.defaultFormattingWidth||t.defaultWidth,a=null!=n&&n.width?String(n.width):i;r=t.formattingValues[a]||t.formattingValues[i]}else{var o=t.defaultWidth,s=null!=n&&n.width?String(n.width):t.defaultWidth;r=t.values[s]||t.values[o]}return r[t.argumentCallback?t.argumentCallback(e):e]}}function j(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=e.match(r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth]);if(!i)return null;var a,o=i[0],s=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],u=Array.isArray(s)?function(t){for(var e=0;e<t.length;e++)if(t[e].test(o))return e}(s):function(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e].test(o))return e}(s);return a=t.valueCallback?t.valueCallback(u):u,{value:a=n.valueCallback?n.valueCallback(a):a,rest:e.slice(o.length)}}}const U={code:"en-US",formatDistance:function(t,e,n){var r,i=$[t];return r="string"==typeof i?i:1===e?i.one:i.other.replace("{{count}}",e.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:K,formatRelative:function(t){return O[t]},localize:{ordinalNumber:function(t){var e=Number(t),n=e%100;if(n>20||n<10)switch(n%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},era:z({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:z({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:z({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:z({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:z({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(Y={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(Y.matchPattern);if(!n)return null;var r=n[0],i=t.match(Y.parsePattern);if(!i)return null;var a=Y.valueCallback?Y.valueCallback(i[0]):i[0];return{value:a=e.valueCallback?e.valueCallback(a):a,rest:t.slice(r.length)}}),era:j({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:j({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:j({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:j({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:j({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var q=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,H=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,X=/^'([^]*?)'?$/,Q=/''/g,J=/[a-zA-Z]/;function Z(t,e,a){var o,s,u,d,l,m,f,v,w,g,b,p,L,G,y,x,M,D;n(2,arguments);var F=String(e),I=h(),P=null!==(o=null!==(s=null==a?void 0:a.locale)&&void 0!==s?s:I.locale)&&void 0!==o?o:U,R=c(null!==(u=null!==(d=null!==(l=null!==(m=null==a?void 0:a.firstWeekContainsDate)&&void 0!==m?m:null==a||null===(f=a.locale)||void 0===f||null===(v=f.options)||void 0===v?void 0:v.firstWeekContainsDate)&&void 0!==l?l:I.firstWeekContainsDate)&&void 0!==d?d:null===(w=I.locale)||void 0===w||null===(g=w.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==u?u:1);if(!(R>=1&&R<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=c(null!==(b=null!==(p=null!==(L=null!==(G=null==a?void 0:a.weekStartsOn)&&void 0!==G?G:null==a||null===(y=a.locale)||void 0===y||null===(x=y.options)||void 0===x?void 0:x.weekStartsOn)&&void 0!==L?L:I.weekStartsOn)&&void 0!==p?p:null===(M=I.locale)||void 0===M||null===(D=M.options)||void 0===D?void 0:D.weekStartsOn)&&void 0!==b?b:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!P.localize)throw new RangeError("locale must contain localize property");if(!P.formatLong)throw new RangeError("locale must contain formatLong property");var E=r(t);if(!function(t){if(n(1,arguments),!function(t){return n(1,arguments),t instanceof Date||"object"===i(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var e=r(t);return!isNaN(Number(e))}(E))throw new RangeError("Invalid time value");var T=function(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}(E),$=function(t,e){return n(2,arguments),function(t,e){n(2,arguments);var i=r(t).getTime(),a=c(e);return new Date(i+a)}(t,-c(e))}(E,T),W={firstWeekContainsDate:R,weekStartsOn:C,locale:P,_originalDate:E};return F.match(H).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,k[e])(t,P.formatLong):t})).join("").match(q).map((function(n){if("''"===n)return"'";var r,i,o=n[0];if("'"===o)return(i=(r=n).match(X))?i[1].replace(Q,"'"):r;var s=S[o];if(s)return null!=a&&a.useAdditionalWeekYearTokens||-1===A.indexOf(n)||N(n,e,String(t)),null!=a&&a.useAdditionalDayOfYearTokens||!(-1!==B.indexOf(n))||N(n,e,String(t)),s($,n,P.localize,W);if(o.match(J))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return n})).join("")}const V={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$"},_=class{constructor(e){t(this,e),this.defaultCurrency="EUR",this.isBetLimitAvailable=!1,this.betLimit=void 0,this.numberOfPlayers=void 0}getCurrencySymbols(t){return V[t]}componentWillRender(){if(this.betLimit){const t=this.betLimit.max?this.betLimit.max:this.betLimit.min||{};this.isBetLimitAvailable=1===Object.keys(t).length,this.currency=this.isBetLimitAvailable?Object.keys(t)[0]:this.defaultCurrency}}render(){return this.isBetLimitAvailable?e("p",{class:"LiveLimits"},e("span",{class:"BetLimitLeft"},this.getCurrencySymbols(this.currency)," ",a(this.betLimit.min[this.currency])," -"," ",a(this.betLimit.max[this.currency])),(this.numberOfPlayers||0==this.numberOfPlayers)&&e("span",{class:"BetLimitRight"},e("svg",{fill:"white",width:"13",height:"13",viewBox:"0 0 13 14",xmlns:"http://www.w3.org/2000/svg"},e("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"})),e("span",{class:"NrOfPlayers"},this.numberOfPlayers))):""}};_.style=":host{display:block}";const tt=class{constructor(e){t(this,e),this.isNewGame=!1,this.language="en",this.betLimit=void 0,this.gameInfo=void 0,this.gameDetails=void 0}async onGameLoaded(t){var e;this.gameInfo=t,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()===u.doubleballroulette,this.gameTag=this.gameDetails&&(null===(e=this.gameInfo.advancedTags)||void 0===e?void 0:e.length)>0?o(this.gameInfo.advancedTags):this.gameInfo.gameTag,this.betLimit=this.gameDetails?this.gameDetails.betLimit:null,this.initTimeProperties())}initTimeProperties(){var t,e,n,r,i;"Bounded"===(null===(e=null===(t=this.gameDetails)||void 0===t?void 0:t.openHours)||void 0===e?void 0:e.type)&&(this.gameStartTime=null===(r=null===(n=this.gameDetails)||void 0===n?void 0:n.openHours)||void 0===r?void 0:r.value.startTime,this.gameTimeFormat=null===(i=this.gameDetails)||void 0===i?void 0:i.openHours.value.originalTimeFormat)}async onGameDetailUpdated(t){this.gameInfo.details=this.gameDetails=t,this.gameDetails=Object.assign({},this.gameDetails),this.initTimeProperties()}render(){var t,n,r;return this.gameInfo?e("div",{class:"GameExtraInfo",part:"GameExtraInfo"},this.isNewGame&&e("span",{class:"GameExtraInfoLabel NewGameTag",part:"GameExtraInfoLabel NewGameTag"},s("new",this.language)),this.gameTag&&e("span",{class:"GameExtraInfoLabel PopularGameTag",part:"GameExtraInfoLabel PopularGameTag"},this.gameTag),this.gameDetails&&e("div",{class:`GameProp LiveProps ${d[this.gameDetails.category.toLowerCase()]} ${this.isDouble?" Double":""}`,part:`GameProp LiveProps ${d[this.gameDetails.category.toLowerCase()]} ${this.isDouble?" Double":""}`},this.gameDetails.isOpen?e("slot",{name:"category-details"}):this.gameStartTime&&this.gameTimeFormat&&e("div",{class:"ClosedGame",part:"ClosedGame"},s("opens",this.language),e("span",null," ",Z(new Date(this.gameStartTime),Intl.DateTimeFormat().resolvedOptions().timeZone)," ")),(null===(t=this.gameDetails.dealer)||void 0===t?void 0:t.DealerName)&&e("p",{class:"LiveLimits"},e("span",{class:"DealerName"},s("dealer",this.language),":"," ",null===(n=this.gameDetails)||void 0===n?void 0:n.dealer.DealerName," ")),e("casino-game-thumbnail-betlimit",{betLimit:this.betLimit,numberOfPlayers:null===(r=this.gameDetails)||void 0===r?void 0:r.numberOfPlayers}))):""}};tt.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, #22B04E);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{_ as casino_game_thumbnail_betlimit,tt as casino_game_thumbnail_extrainfo}
@@ -1 +0,0 @@
1
- import{r as i,h as t,H as e}from"./p-b5a64db5.js";import{D as a}from"./p-2d02adb1.js";import{t as s}from"./p-59ceeaaa.js";const o=class{constructor(t){i(this,t),this.language=void 0,this.gameInfo=void 0,this.gameDetails=void 0,this.seatsStatus=void 0,this.isTableFull=void 0}generateBlackJackSeats(i=a,t=[]){let e=[];for(let a=0;a<i;a++)e.push({seatNo:a,isClosed:t.indexOf((a+1).toString())>-1});return this.isTableFull=i==t.length,e}async onGameLoaded(i){var t,e,a;this.gameInfo=i,this.gameDetails=this.gameInfo.details,this.seatsStatus=this.generateBlackJackSeats(null===(t=this.gameDetails)||void 0===t?void 0:t.totalSeats,null===(e=this.gameDetails)||void 0===e?void 0:e.currentOccupiedSeats),null===(a=this.infoWrapperRef)||void 0===a||a.onGameLoaded(i)}async onGameDetailUpdated(i){var t,e;this.gameInfo.details=this.gameDetails=i,this.seatsStatus=this.generateBlackJackSeats(null===(t=this.gameDetails)||void 0===t?void 0:t.totalSeats,null===(e=this.gameDetails)||void 0===e?void 0:e.currentOccupiedSeats),this.gameDetails=Object.assign({},this.gameDetails)}render(){return t(e,{key:"e75d57ebd1f5827facafd15ffc6631cc84d7ca52"},t("casino-game-thumbnail-extrainfo",{key:"e861149d6e01ef11ecc92d8f3606e9406ca68238",ref:i=>this.infoWrapperRef=i,language:this.language},this.gameDetails&&this.gameDetails.isOpen&&t("div",{key:"e157039d431369c6e9b419cde52e3045765fb6c6",slot:"category-details",class:"LiveIcons",part:"LiveIcons"},this.isTableFull?t("span",{class:"FullTable",part:"FullTable"},s("full",this.language)):this.seatsStatus.map((i=>t("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"}))))))}};o.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{o as casino_extrainfo_blackjack}
@@ -1 +0,0 @@
1
- import{r as a,h as s,H as e}from"./p-b5a64db5.js";const o=class{constructor(s){a(this,s),this.language=void 0}async onGameLoaded(a){var s;null===(s=this.infoWrapperRef)||void 0===s||s.onGameLoaded(a)}render(){return s(e,{key:"65ecbdb989b2b98974bbe60db24f31032e2e10a7"},s("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 +0,0 @@
1
- import{r as e,h as t,H as s}from"./p-b5a64db5.js";import{R as o,W as i}from"./p-2d02adb1.js";const a=class{constructor(t){e(this,t),this.language="en",this.gameInfo=void 0,this.gameDetails=void 0,this.showLiveClass=void 0}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,a,l;const r=!!this.gameDetails&&this.gameDetails.category.toLowerCase()===i.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===(a=this.gameDetails)||void 0===a?void 0:a.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))))))}};a.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{a as casino_extrainfo_roulette}