@everymatrix/casino-game-thumb-view 1.13.5 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/casino-game-thumb-view/casino-game-thumb-view.esm.js +1 -1
- package/dist/casino-game-thumb-view/p-1bbf4b70.entry.js +1 -0
- package/dist/casino-game-thumb-view/p-5e1c958a.entry.js +7 -0
- package/dist/casino-game-thumb-view/p-9cbfffbc.entry.js +1 -0
- package/dist/casino-game-thumb-view/p-eb23569d.entry.js +1 -0
- package/dist/cjs/casino-extrainfo-roulette.cjs.entry.js +8 -7
- package/dist/cjs/casino-game-thumb-view.cjs.js +1 -1
- package/dist/cjs/casino-game-thumb-view_2.cjs.entry.js +29 -20
- package/dist/cjs/casino-game-thumbnail-betlimit_2.cjs.entry.js +3 -2
- package/dist/cjs/casino-normal-game-thumbnail.cjs.entry.js +5 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/casino-extrainfo-roulette/casino-extrainfo-roulette.js +8 -7
- package/dist/collection/components/casino-game-thumb-view/casino-game-thumb-view.js +29 -20
- package/dist/collection/components/casino-game-thumbnail-extrainfo/casino-game-thumbnail-extrainfo.js +3 -2
- package/dist/collection/components/casino-normal-game-thumbnail/casino-normal-game-thumbnail.js +51 -2
- package/dist/components/casino-extrainfo-roulette.js +8 -7
- package/dist/components/casino-game-thumb-view.js +29 -20
- package/dist/components/casino-game-thumbnail-extrainfo2.js +3 -2
- package/dist/components/casino-normal-game-thumbnail.js +22 -3
- package/dist/esm/casino-extrainfo-roulette.entry.js +8 -7
- package/dist/esm/casino-game-thumb-view.js +1 -1
- package/dist/esm/casino-game-thumb-view_2.entry.js +29 -20
- package/dist/esm/casino-game-thumbnail-betlimit_2.entry.js +3 -2
- package/dist/esm/casino-normal-game-thumbnail.entry.js +5 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/casino-game-thumb-view/casino-game-thumb-view.d.ts +1 -0
- package/dist/types/components/casino-normal-game-thumbnail/casino-normal-game-thumbnail.d.ts +4 -0
- package/dist/types/components.d.ts +3 -0
- package/package.json +1 -1
- package/dist/casino-game-thumb-view/p-33e707bf.entry.js +0 -1
- package/dist/casino-game-thumb-view/p-45836b67.entry.js +0 -7
- package/dist/casino-game-thumb-view/p-b153f943.entry.js +0 -1
- package/dist/casino-game-thumb-view/p-fc7672a9.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as a}from"./p-46dbb1cb.js";(()=>{const a=import.meta.url,o={};return""!==a&&(o.resourcesUrl=new URL(".",a).href),e(o)})().then((e=>a([["p-
|
|
1
|
+
import{p as e,b as a}from"./p-46dbb1cb.js";(()=>{const a=import.meta.url,o={};return""!==a&&(o.resourcesUrl=new URL(".",a).href),e(o)})().then((e=>a([["p-eb23569d",[[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-d961aec4",[[0,"casino-extrainfo-baccarat",{language:[1],showRoundBoard:[4,"show-round-board"],gameInfo:[32],gameDetails:[32],onGameLoaded:[64],onGameDetailUpdated:[64],onBaccaratResultChanged:[64]}]]],["p-0bd6266b",[[0,"casino-extrainfo-blackjack",{language:[1],gameInfo:[32],gameDetails:[32],seatsStatus:[32],isTableFull:[32],onGameLoaded:[64],onGameDetailUpdated:[64]}]]],["p-9cbfffbc",[[0,"casino-extrainfo-roulette",{language:[1],gameInfo:[32],gameDetails:[32],showLiveClass:[32],onGameLoaded:[64],onGameDetailUpdated:[64]}]]],["p-1bbf4b70",[[0,"casino-normal-game-thumbnail",{language:[1],onGameLoaded:[64]}]]],["p-5e1c958a",[[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-game-frame-mobile"],gamepageModalUrl:[1,"gamepage-modal-url"],integratedGameFrameDesktop:[4,"integrated-game-frame-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"]]],[4,"casino-game-thumbnail-overlay",{integratedGameFrameMobile:[4,"integrated-game-frame-mobile"],gamepageModalUrl:[1,"gamepage-modal-url"],integratedGameFrameDesktop:[4,"integrated-game-frame-desktop"],language:[1],gameName:[1,"game-name"],gameVendor:[1,"game-vendor"],gameId:[8,"game-id"],hasFunMode:[4,"has-fun-mode"]}]]]],e)));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as a,h as s,H as n}from"./p-46dbb1cb.js";const o=class{constructor(s){a(this,s)}async onGameLoaded(a){var s;null===(s=this.infoWrapperRef)||void 0===s||s.onGameLoaded(a)}render(){return s(n,null,s("casino-game-thumbnail-extrainfo",{ref:a=>this.infoWrapperRef=a,language:this.language}))}};o.style=":host{display:block}";export{o as casino_normal_game_thumbnail}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{r as e,c as t,h as n}from"./p-46dbb1cb.js";import{c as i,i as a}from"./p-6a6b2a78.js";import{G as o,a as r,W as s}from"./p-2d5f59fe.js";import{t as l}from"./p-2b51ea79.js";var h,c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},d=(function(e,t){
|
|
2
|
+
/** @license
|
|
3
|
+
* eventsource.js
|
|
4
|
+
* Available under MIT License (MIT)
|
|
5
|
+
* https://github.com/Yaffle/EventSource/
|
|
6
|
+
*/
|
|
7
|
+
!function(n){var i=n.setTimeout,a=n.clearTimeout,o=n.XMLHttpRequest,r=n.XDomainRequest,s=n.ActiveXObject,l=n.EventSource,h=n.document,c=n.Promise,d=n.fetch,m=n.Response,u=n.TextDecoder,f=n.TextEncoder,p=n.AbortController;if("undefined"==typeof window||void 0===h||"readyState"in h||null!=h.body||(h.readyState="loading",window.addEventListener("load",(function(){h.readyState="complete"}),!1)),null==o&&null!=s&&(o=function(){return new s("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==p){var v=d;d=function(e,t){var n=t.signal;return v(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then((function(e){var t=e.body.getReader();return n._reader=t,n._aborted&&n._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}}))},p=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function g(){this.bitsNeeded=0,this.codePoint=0}g.prototype.decode=function(e){function t(e,t,n){if(1===n)return e>=128>>t&&e<<t<=2047;if(2===n)return e>=2048>>t&&e<<t<=55295||e>=57344>>t&&e<<t<=65535;if(3===n)return e>=65536>>t&&e<<t<=1114111;throw new Error}function n(e,t){if(6===e)return t>>6>15?3:t>31?2:1;if(12===e)return t>15?3:2;if(18===e)return 3;throw new Error}for(var i=65533,a="",o=this.bitsNeeded,r=this.codePoint,s=0;s<e.length;s+=1){var l=e[s];0!==o&&(l<128||l>191||!t(r<<6|63&l,o-6,n(o,r)))&&(o=0,r=i,a+=String.fromCharCode(r)),0===o?(l>=0&&l<=127?(o=0,r=l):l>=192&&l<=223?(o=6,r=31&l):l>=224&&l<=239?(o=12,r=15&l):l>=240&&l<=247?(o=18,r=7&l):(o=0,r=i),0===o||t(r,o,n(o,r))||(o=0,r=i)):(o-=6,r=r<<6|63&l),0===o&&(r<=65535?a+=String.fromCharCode(r):(a+=String.fromCharCode(55296+(r-65535-1>>10)),a+=String.fromCharCode(56320+(r-65535-1&1023))))}return this.bitsNeeded=o,this.codePoint=r,a},null!=u&&null!=f&&function(){try{return"test"===(new u).decode((new f).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}return!1}()||(u=g);var b=function(){};function w(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=b,this.onload=b,this.onerror=b,this.onreadystatechange=b,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=b}function G(e){return e.replace(/[A-Z]/g,(function(e){return String.fromCharCode(e.charCodeAt(0)+32)}))}function y(e){for(var t=Object.create(null),n=e.split("\r\n"),i=0;i<n.length;i+=1){var a=n[i].split(": "),o=a.shift(),r=a.join(": ");t[G(o)]=r}this._map=t}function x(){}function F(e){this._headers=e}function I(){}function C(){this._listeners=Object.create(null)}function L(e){i((function(){throw e}),0)}function k(e){this.type=e,this.target=void 0}function T(e,t){k.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function B(e,t){k.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function S(e,t){k.call(this,e),this.error=t.error}w.prototype.open=function(e,t){this._abort(!0);var n=this,r=this._xhr,s=1,l=0;this._abort=function(e){0!==n._sendTimeout&&(a(n._sendTimeout),n._sendTimeout=0),1!==s&&2!==s&&3!==s||(s=4,r.onload=b,r.onerror=b,r.onabort=b,r.onprogress=b,r.onreadystatechange=b,r.abort(),0!==l&&(a(l),l=0),e||(n.readyState=4,n.onabort(null),n.onreadystatechange())),s=0};var h=function(){if(1===s){var e=0,t="",i=void 0;if("contentType"in r)e=200,t="OK",i=r.contentType;else try{e=r.status,t=r.statusText,i=r.getResponseHeader("Content-Type")}catch(n){e=0,t="",i=void 0}0!==e&&(s=2,n.readyState=2,n.status=e,n.statusText=t,n._contentType=i,n.onreadystatechange())}},c=function(){if(h(),2===s||3===s){s=3;var e="";try{e=r.responseText}catch(e){}n.readyState=3,n.responseText=e,n.onprogress()}},d=function(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:b}),c(),1===s||2===s||3===s){if(s=4,0!==l&&(a(l),l=0),n.readyState=4,"load"===e)n.onload(t);else if("error"===e)n.onerror(t);else{if("abort"!==e)throw new TypeError;n.onabort(t)}n.onreadystatechange()}},m=function(){l=i((function(){m()}),500),3===r.readyState&&c()};"onload"in r&&(r.onload=function(e){d("load",e)}),"onerror"in r&&(r.onerror=function(e){d("error",e)}),"onabort"in r&&(r.onabort=function(e){d("abort",e)}),"onprogress"in r&&(r.onprogress=c),"onreadystatechange"in r&&(r.onreadystatechange=function(e){!function(e){null!=r&&(4===r.readyState?"onload"in r&&"onerror"in r&&"onabort"in r||d(""===r.responseText?"error":"load",e):3===r.readyState?"onprogress"in r||c():2===r.readyState&&h())}(e)}),!("contentType"in r)&&"ontimeout"in o.prototype||(t+=(-1===t.indexOf("?")?"?":"&")+"padding=true"),r.open(e,t,!0),"readyState"in r&&(l=i((function(){m()}),0))},w.prototype.abort=function(){this._abort(!1)},w.prototype.getResponseHeader=function(){return this._contentType},w.prototype.setRequestHeader=function(e,t){var n=this._xhr;"setRequestHeader"in n&&n.setRequestHeader(e,t)},w.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},w.prototype.send=function(){if("ontimeout"in o.prototype&&("sendAsBinary"in o.prototype||"mozAnon"in o.prototype)||null==h||null==h.readyState||"complete"===h.readyState){var e=this._xhr;"withCredentials"in e&&(e.withCredentials=this.withCredentials);try{e.send(void 0)}catch(e){throw e}}else{var t=this;t._sendTimeout=i((function(){t._sendTimeout=0,t.send()}),4)}},y.prototype.get=function(e){return this._map[G(e)]},null!=o&&null==o.HEADERS_RECEIVED&&(o.HEADERS_RECEIVED=2),x.prototype.open=function(e,t,n,i,a,r,s){e.open("GET",a);var l=0;for(var h in e.onprogress=function(){var t=e.responseText.slice(l);l+=t.length,n(t)},e.onerror=function(e){e.preventDefault(),i(new Error("NetworkError"))},e.onload=function(){i(null)},e.onabort=function(){i(null)},e.onreadystatechange=function(){if(e.readyState===o.HEADERS_RECEIVED){var n=e.status,i=e.statusText,a=e.getResponseHeader("Content-Type"),r=e.getAllResponseHeaders();t(n,i,a,new y(r))}},e.withCredentials=r,s)Object.prototype.hasOwnProperty.call(s,h)&&e.setRequestHeader(h,s[h]);return e.send(),e},F.prototype.get=function(e){return this._headers.get(e)},I.prototype.open=function(e,t,n,i,a,o,r){var s=null,l=new p,h=l.signal,m=new u;return d(a,{headers:r,credentials:o?"include":"same-origin",signal:h,cache:"no-store"}).then((function(e){return s=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new F(e.headers)),new c((function(e,t){var i=function(){s.read().then((function(t){if(t.done)e(void 0);else{var a=m.decode(t.value,{stream:!0});n(a),i()}})).catch((function(e){t(e)}))};i()}))})).catch((function(e){return"AbortError"===e.name?void 0:e})).then((function(e){i(e)})),{abort:function(){null!=s&&s.cancel(),l.abort()}}},C.prototype.dispatchEvent=function(e){e.target=this;var t=this._listeners[e.type];if(null!=t)for(var n=t.length,i=0;i<n;i+=1){var a=t[i];try{"function"==typeof a.handleEvent?a.handleEvent(e):a.call(this,e)}catch(e){L(e)}}},C.prototype.addEventListener=function(e,t){e=String(e);var n=this._listeners,i=n[e];null==i&&(n[e]=i=[]);for(var a=!1,o=0;o<i.length;o+=1)i[o]===t&&(a=!0);a||i.push(t)},C.prototype.removeEventListener=function(e,t){e=String(e);var n=this._listeners,i=n[e];if(null!=i){for(var a=[],o=0;o<i.length;o+=1)i[o]!==t&&a.push(i[o]);0===a.length?delete n[e]:n[e]=a}},T.prototype=Object.create(k.prototype),B.prototype=Object.create(k.prototype),S.prototype=Object.create(k.prototype);var D=/^text\/event\-stream(;.*)?$/i,O=function(e,t){var n=null==e?t:parseInt(e,10);return n!=n&&(n=t),j(n)},j=function(e){return Math.min(Math.max(e,1e3),18e6)},P=function(e,t,n){try{"function"==typeof t&&t.call(e,n)}catch(e){L(e)}};function R(e,t){C.call(this),t=t||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,function(e,t,n){t=String(t);var s=Boolean(n.withCredentials),l=n.lastEventIdQueryParameterName||"lastEventId",h=j(1e3),c=O(n.heartbeatTimeout,45e3),d="",m=h,u=!1,f=0,p=n.headers||{},v=n.Transport,g=$&&null==v?void 0:new w(null!=v?new v:null!=o&&"withCredentials"in o.prototype||null==r?new o:new r),b=null!=v&&"string"!=typeof v?new v:null==g?new I:new x,G=void 0,y=0,F=-1,C="",L="",k="",R="",z=0,E=0,M=0,U=function(t,n,i,a){if(0===F)if(200===t&&null!=i&&D.test(i)){F=1,u=Date.now(),m=h,e.readyState=1;var o=new B("open",{status:t,statusText:n,headers:a});e.dispatchEvent(o),P(e,e.onopen,o)}else{var r="";200!==t?(n&&(n=n.replace(/\s+/g," ")),r="EventSource's response has a status "+t+" "+n+" that is not 200. Aborting the connection."):r="EventSource's response has a Content-Type specifying an unsupported type: "+(null==i?"-":i.replace(/\s+/g," "))+". Aborting the connection.",W(),o=new B("error",{status:t,statusText:n,headers:a}),e.dispatchEvent(o),P(e,e.onerror,o),console.error(r)}},H=function(t){if(1===F){for(var n=-1,o=0;o<t.length;o+=1)(l=t.charCodeAt(o))!=="\n".charCodeAt(0)&&l!=="\r".charCodeAt(0)||(n=o);var r=(-1!==n?R:"")+t.slice(0,n+1);R=(-1===n?R:"")+t.slice(n+1),""!==t&&(u=Date.now(),f+=t.length);for(var s=0;s<r.length;s+=1){var l=r.charCodeAt(s);if(-1===z&&l==="\n".charCodeAt(0))z=0;else if(-1===z&&(z=0),l==="\r".charCodeAt(0)||l==="\n".charCodeAt(0)){if(0!==z){1===z&&(M=s+1);var p=r.slice(E,M-1),v=r.slice(M+(M<s&&r.charCodeAt(M)===" ".charCodeAt(0)?1:0),s);"data"===p?(C+="\n",C+=v):"id"===p?L=v:"event"===p?k=v:"retry"===p?(h=O(v,h),m=h):"heartbeatTimeout"===p&&(c=O(v,c),0!==y&&(a(y),y=i((function(){A()}),c)))}if(0===z){if(""!==C){d=L,""===k&&(k="message");var g=new T(k,{data:C.slice(1),lastEventId:L});if(e.dispatchEvent(g),"open"===k?P(e,e.onopen,g):"message"===k?P(e,e.onmessage,g):"error"===k&&P(e,e.onerror,g),2===F)return}C="",k=""}z=l==="\r".charCodeAt(0)?-1:0}else 0===z&&(E=s,z=1),1===z?l===":".charCodeAt(0)&&(M=s+1,z=2):2===z&&(z=3)}}},N=function(t){if(1===F||0===F){F=-1,0!==y&&(a(y),y=0),y=i((function(){A()}),m),m=j(Math.min(16*h,2*m)),e.readyState=0;var n=new S("error",{error:t});e.dispatchEvent(n),P(e,e.onerror,n),null!=t&&console.error(t)}},W=function(){F=2,null!=G&&(G.abort(),G=void 0),0!==y&&(a(y),y=0),e.readyState=2},A=function(){if(y=0,-1===F){u=!1,f=0,y=i((function(){A()}),c),F=0,C="",k="",L=d,R="",E=0,M=0,z=0;var n=t;if("data:"!==t.slice(0,5)&&"blob:"!==t.slice(0,5)&&""!==d){var a=t.indexOf("?");n=-1===a?t:t.slice(0,a+1)+t.slice(a+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,(function(e,t){return t===l?"":e})),n+=(-1===t.indexOf("?")?"?":"&")+l+"="+encodeURIComponent(d)}var o=e.withCredentials,r={Accept:"text/event-stream"},s=e.headers;if(null!=s)for(var h in s)Object.prototype.hasOwnProperty.call(s,h)&&(r[h]=s[h]);try{G=b.open(g,U,H,N,n,o,r)}catch(e){throw W(),e}}else if(u||null==G){var m=Math.max((u||Date.now())+c-Date.now(),1);u=!1,y=i((function(){A()}),m)}else N(new Error("No activity within "+c+" milliseconds. "+(0===F?"No response received.":f+" chars received.")+" Reconnecting.")),null!=G&&(G.abort(),G=void 0)};e.url=t,e.readyState=0,e.withCredentials=s,e.headers=p,e._close=W,A()}(this,e,t)}var $=null!=d&&null!=m&&"body"in m.prototype;(R.prototype=Object.create(C.prototype)).CONNECTING=0,R.prototype.OPEN=1,R.prototype.CLOSED=2,R.prototype.close=function(){this._close()},R.CONNECTING=0,R.OPEN=1,R.CLOSED=2,R.prototype.withCredentials=void 0;var z,E=l;null==o||null!=l&&"withCredentials"in l.prototype||(E=R),void 0!==(z=function(e){e.EventSourcePolyfill=R,e.NativeEventSource=l,e.EventSource=E}(t))&&(e.exports=z)}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:c:globalThis)}(h={path:undefined,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},h.exports),h.exports);const m=class{constructor(n){e(this,n),this.toggleFavoriteCasinoGameEvent=t(this,"toggleCasinoGameFavorite",7),this.language="en",this.clientStyling="",this.clientStylingUrl="",this.integratedGameFrameMobile=!1,this.integratedGameFrameDesktop=!1,this.loadDetails=!1,this.showRoundBoard=!1,this.gameCategory="",this.platform="PC",this.thumbnailLoaded=!1,this.containerClassWhenDetailChange="",this.isUserLoggedIn=!1,this.limitStylingAppends=!1,this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},this.setClientStylingURL=()=>{let e=new URL(this.clientStylingUrl),t=document.createElement("style");fetch(e.href).then((e=>e.text())).then((e=>{t.innerHTML=e,setTimeout((()=>{this.stylingContainer.prepend(t)}),1)})).catch((e=>{console.error("error ",e)}))},this.getGameCategoryType=()=>this.isLiveCasino&&this.gameCategory?`casino-extrainfo-${this.getWidgetTypeByGameCategory(this.gameCategory).toLowerCase()}`:"casino-normal-game-thumbnail",this.getGameContainerClass=()=>{let e="GameContainer ";return this.gameInfo&&this.gameInfo&&this.gameInfo.details&&(e+=" ListGame ",this.gameInfo.details.isOpen&&this.gameInfo.details.currentRouletteNumbers&&(e+=" GameBackdrop ")),e}}onSessionChanged(){this.isUserLoggedIn=!(!this.session||!this.userId)}onTableFullChanged(e,t){null!=t&&(this.containerClassWhenDetailChange=e&&!t?"PulsatingRedShadow":"PulsatingGreenShadow")}handleMouseOver(e){this.hover="mouseenter"===e.type}gameFavoritedHandler(e){this.gameInfo.isFavorite=e.detail[this.gameId],this.gameInfo=Object.assign({},this.gameInfo)}connectLiveHandler(){this.toggleConnect()}visibilityConnectHandler(){this.toggleVisibilityConnect()}gameDetailChangeHandler(e){var t,n;let a=JSON.parse(e.data);if(a.needReconnect&&this.liveLobbyConnection)return this.liveLobbyConnection.close(),this.liveLobbyConnection=null,void this.connectGameToLiveLobby();if(!a||a.InternalTableId!=this.gameId)return;let o=a.MessageType;switch(o){case"TableOpened":case"TableClosed":this.gameInfo.details.isOpen=a.Open;break;case"PlayersUpdated":this.gameInfo.details.numberOfPlayers=a.Players;break;case"RouletteResultsUpdated":this.gameInfo.details.currentRouletteNumbers=a.Results;break;case"DoubleBallRouletteResultsUpdated":this.gameInfo.details.currentDoubleBallRouletteNumbers=a.Results;break;case"SeatsUpdated":this.gameInfo.details.currentOccupiedSeats=a.Seats;break;case"DealerChanged":this.gameInfo.details.dealer=a.Dealer;break;case"BaccaratResultsUpdated":if(this.showRoundBoard){const e=a.Results;this.gameInfo.details.results=[],e.forEach((e=>{this.gameInfo.details.results.push(i(e))})),null===(t=this.extraInfoRef)||void 0===t||t.onBaccaratResultChanged(this.gameInfo.details.results)}}this.resetLiveProperties(),null===(n=this.extraInfoRef)||void 0===n||n.onGameDetailUpdated(this.gameInfo.details),window.postMessage({messageType:o,value:e.data})}messageHandler(e){e.data.type!==`AddFavoriteThumbnail_${this.gameId}`||this.showFavoredCategory||(this.gameInfo.isFavorite=!0),e.data.type!==`RemoveFavoriteThumbnail_${this.gameId}`||this.showFavoredCategory||(this.gameInfo.isFavorite=!1),"UserSessionID"===e.data.type&&(this.isUserLoggedIn=!0,this.session=e.data.session,this.userId=e.data.userID)}resetLiveProperties(){var e,t;const n=this.gameInfo.details;this.isBlackJack(this.gameCategory.toLowerCase())?this.isTableFull=n.totalSeats==(null===(e=n.currentOccupiedSeats)||void 0===e?void 0:e.length):this.isBaccarat(this.gameCategory.toLowerCase())&&(null===(t=n.baccaratResults)||void 0===t?void 0:t.length)>0&&(this.gameInfo.details.results=[],n.baccaratResults.forEach((e=>{this.gameInfo.details.results.push(i(e))})),delete n.baccaratResults)}isBlackJack(e){return e.toLowerCase()===o.BLACKJACK}isBaccarat(e){return e.toLowerCase()===o.BACCARAT}initCtrlProperties(){var e;this.isLiveCasino&&(null===(e=this.gameInfo)||void 0===e?void 0:e.details)&&this.resetLiveProperties(),this.gameInfo=Object.assign({},this.gameInfo),this.triggerExtraInfoLoad(),this.isLiveCasino&&"connect"===this.connectLive&&this.connectGameToLiveLobby()}parseGameResponse(e){1==e.length&&(this.gameInfo=e[0],this.isLiveCasino?this.gameInfo.details?this.parseGameDetailsResponse():this.loadGameDetailInfo():this.initCtrlProperties())}parseGameDetailsResponse(){this.initCtrlProperties()}connectGameToLiveLobby(){EventSource&&!this.liveLobbyConnection&&(this.liveLobbyConnection=new d.EventSourcePolyfill(`${this.endpoint}/encoder/lobby/updates/${this.gameInfo.vendor.name}/${this.gameInfo.id}`),this.liveLobbyConnection.addEventListener("message",(e=>{this.gameDetailChangeHandler(e)})))}disconnectGameFromLiveLobby(){this.liveLobbyConnection&&(this.liveLobbyConnection.removeEventListener("message"),this.liveLobbyConnection.close(),this.liveLobbyConnection=void 0)}toggleConnect(){this.isLiveCasino&&("disconnect"===this.connectLive?this.disconnectGameFromLiveLobby():"connect"===this.connectLive&&this.connectGameToLiveLobby())}toggleVisibilityConnect(){this.isLiveCasino&&("disconnect"===this.visibilityConnect?this.disconnectGameFromLiveLobby():"connect"===this.visibilityConnect&&"connect"===this.connectLive&&this.connectGameToLiveLobby())}loadGameById(){fetch(`${this.endpoint}/casino/games/${this.gameId}?expand=vendor&platform=${this.platform}&language=${this.language}`).then((e=>e.json())).then((e=>this.parseGameResponse(e))).catch((e=>{console.error(e)}))}loadGameInfoByLobbyEndpoint(){let e=new URL(`${this.livelobbyEndpoint.split("?")[0]}`);e.searchParams.append("expand","vendor"),e.searchParams.append("platform",this.platform),e.searchParams.append("language",this.language),fetch(e.toString()).then((e=>e.json())).then((e=>this.parseGameResponse(e))).catch((e=>console.error(e)))}loadGameDetailInfo(){let e=new URL(`${this.endpoint}/lobby/tables/${this.gameId}`);e.searchParams.append("platform",this.platform),e.searchParams.append("language",this.language),fetch(e.toString()).then((e=>e.json())).then((e=>{(null==e?void 0:e.category)&&(this.gameInfo.details=e,this.parseGameDetailsResponse())})).catch((e=>{console.error(e),setTimeout((()=>this.loadGameDetailInfo()),1e3)}))}toggleFavoriteGame(e){let t="thumbnail";this.gameInfo.isFavorite?window.postMessage({type:"SetUnfavoredGame",gameId:e,triggerFactor:t},window.location.href):window.postMessage({type:"SetFavoredGame",gameId:e,triggerFactor:t},window.location.href),this.toggleFavoriteCasinoGameEvent.emit(e)}generateGameInfoByProps(){return{id:this.gameId,name:this.gameName,subVendor:this.subVendor,hasFunMode:this.hasFunMode,hasAnonymousFunMode:this.hasAnonymousFunMode,thumbnail:this.thumbnail,cellSize:this.cellSize,gameTag:this.gameTag,vendor:{href:"",name:this.gameVendor},isFavorite:this.isFavorite,isNew:this.isNew,type:this.type,liveCasinoCategory:this.gameCategory||""}}triggerExtraInfoLoad(){var e,t;this.extraInfoRef=this.extraInfoRef||(null===(e=this.extraInfoSlotRef)||void 0===e?void 0:e.querySelector(this.getGameCategoryType())),null===(t=this.extraInfoRef)||void 0===t||t.onGameLoaded(this.gameInfo),window.postMessage({type:"casinoGameLoaded",gameInfo:this.gameInfo})}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0),this.gameInfo&&this.triggerExtraInfoLoad()}componentDidLoad(){window.addEventListener("message",this.messageHandler)}componentWillLoad(){if(this.isLiveCasino=this.type==r.LIVE_CASINO,this.extraInfoWidget=this.getGameCategoryType(),this.isUserLoggedIn=!(!this.session||!this.userId),!this.isLiveCasino||!this.livelobbyEndpoint)return this.thumbnail?(this.gameInfo=this.generateGameInfoByProps(),void(this.isLiveCasino&&this.endpoint&&this.loadDetails&&this.gameId&&this.loadGameDetailInfo())):void(this.gameId&&this.endpoint&&this.loadGameById());this.loadGameInfoByLobbyEndpoint()}disconnectedCallback(){this.liveLobbyConnection&&this.liveLobbyConnection.removeEventListener("message",this.gameDetailChangeHandler),window.removeEventListener("message",this.messageHandler)}getWidgetTypeByGameCategory(e){return s[e.toLowerCase()]}getGameOverlayProps(){var e,t;return{gameName:this.gameInfo.name,gameId:this.gameInfo.gameId,gameVendor:this.gameVendor||(null===(t=null===(e=this.gameInfo)||void 0===e?void 0:e.vendor)||void 0===t?void 0:t.name),hasFunMode:this.gameInfo.hasFunMode,language:this.language,integratedGameFrameMobile:this.integratedGameFrameMobile,integratedGameFrameDesktop:this.integratedGameFrameDesktop,gamepageModalUrl:this.gamepageModalUrl}}render(){var e,t;if(!this.gameInfo)return n("div",{class:"GameInnerContainer",part:"GameInnerContainer",slot:"Game-Inner"},n("img",{src:this.thumbnail,alt:"",loading:"lazy",part:"GameContainer",class:"GameContainer",onLoad:()=>this.thumbnailLoaded=!0}));const i=this.getGameOverlayProps(),o=(null===(e=this.gameInfo)||void 0===e?void 0:e.thumbnail)||(null===(t=this.gameInfo)||void 0===t?void 0:t.defaultThumbnail),r=this.getGameContainerClass(),s=`GameBg ${this.cellSize?"GameBg-"+this.cellSize:""}\n ${this.hover?" GameContainerHovered":""} ${this.thumbnailLoaded?" Loaded":""}`;return n("div",{class:`${r} ${this.containerClassWhenDetailChange}`,part:`${r} ${this.containerClassWhenDetailChange}`,ref:e=>this.stylingContainer=e,"client-styling":this.clientStyling,"client-styling-url-content":this.clientStylingUrl},n("div",{class:"GameInnerContainer "+(this.hover?"Hovered":""),part:"GameInnerContainer "+(this.hover?"Hovered":"")},n("img",{src:o,alt:"Game Thumbnail ",loading:"lazy",part:s,class:s,onLoad:()=>this.thumbnailLoaded=!0}),this.isUserLoggedIn&&n("div",{class:"FavIconContainer "+(this.gameInfo.isFavorite?"Favorited":""),part:"FavIconContainer "+(this.gameInfo.isFavorite?"Favorited":""),onClick:()=>this.toggleFavoriteGame(this.gameId)},this.gameInfo.isFavorite?n("slot",{name:"fav-icon"},n("span",{class:"FavoredIcon",part:"FavoredIcon",innerHTML:'<svg\n version="1.1"\n xmlns="http://www.w3.org/2000/svg"\n viewBox="0 0 19.481 19.481"\n enable-background="new 0 0 19.481 19.481"\n>\n <path\n d="m10.201,.758l2.478,5.865 6.344,.545c0.44,0.038 0.619,0.587 0.285,0.876l-4.812,4.169 1.442,6.202c0.1,0.431-0.367,0.77-0.745,0.541l-5.452-3.288-5.452,3.288c-0.379,0.228-0.845-0.111-0.745-0.541l1.442-6.202-4.813-4.17c-0.334-0.289-0.156-0.838 0.285-0.876l6.344-.545 2.478-5.864c0.172-0.408 0.749-0.408 0.921,0z"/>\n</svg>\n'})):n("slot",{name:"UnFavIcon"},!a(window.navigator.userAgent)&&n("span",{class:"UnfavoredIcon",part:"UnfavoredIcon",innerHTML:'<svg\n version="1.1"\n class="UnfavoredIcon"\n xmlns="http://www.w3.org/2000/svg"\n x="20px"\n y="20px"\n viewBox="0 0 512.001 512.001"\n>\n <path\n d="M511.266,197.256c-1.764-5.431-6.458-9.388-12.108-10.209l-158.722-23.065L269.452,20.155\n c-2.527-5.12-7.741-8.361-13.451-8.361c-5.709,0-10.924,3.242-13.451,8.361l-70.988,143.828L12.843,187.047\n c-5.65,0.821-10.344,4.779-12.108,10.209c-1.765,5.43-0.293,11.391,3.795,15.376l114.848,111.955L92.27,482.67\n c-0.965,5.627,1.349,11.315,5.968,14.67c4.618,3.355,10.74,3.798,15.797,1.142L256,423.846l141.961,74.637\n c2.195,1.154,4.591,1.723,6.979,1.723c3.11,0,6.206-0.966,8.818-2.865c4.619-3.356,6.933-9.043,5.968-14.671L392.61,324.587\n l114.86-111.954C511.559,208.647,513.031,202.686,511.266,197.256z M366.023,308.608c-3.536,3.446-5.15,8.412-4.314,13.278\n l23.311,135.898l-122.038-64.162c-4.37-2.297-9.591-2.297-13.961,0l-122.045,64.163l23.304-135.9\n c0.834-4.866-0.779-9.83-4.313-13.276l-98.731-96.244l136.445-19.829c4.886-0.71,9.108-3.778,11.294-8.205L256,60.685\n l61.023,123.645c2.186,4.427,6.408,7.496,11.294,8.206l136.447,19.828L366.023,308.608z"\n />\n</svg>\n'}))),n("slot",{name:"game-overlay"},n("casino-game-thumbnail-overlay",Object.assign({language:this.language},i))),n("slot",{name:"extra-info",ref:e=>this.extraInfoSlotRef=e},n(this.extraInfoWidget,{language:this.language,"show-round-board":this.showRoundBoard})),n("slot",{name:"game-property-slot"})),this.showGameName&&n("slot",{name:"game-name"},n("p",{class:"GameNameBelow",part:"GameNameBelow",title:i.gameName},i.gameName)))}static get assetsDirs(){return["static"]}static get watchers(){return{session:["onSessionChanged"],userId:["onSessionChanged"],isTableFull:["onTableFullChanged"],connectLive:["connectLiveHandler"],visibilityConnect:["visibilityConnectHandler"]}}};m.style=':host{display:block}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GameContainer{width:100%;height:100%;position:relative}.GameInnerContainer{position:relative;width:100%;height:100%;overflow:hidden;border-radius:5px}.GameInnerContainer .GameBg{width:100%;height:100%;object-fit:unset;transition:all 150ms ease-in-out}.GameInnerContainer .GameBg.GameBg-1x2,.GameInnerContainer .GameBg.GameBg-2x1,.GameInnerContainer .GameBg.GameBg-2x2{object-fit:cover}.GameInnerContainer:hover{cursor:pointer}.GameInnerContainer:hover .GameInfoWrapper{display:block}.GameInnerContainer:hover .GameBg{filter:blur(5px) grayscale(1)}.ListGame.GameBackdrop .GameInnerContainer::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(0deg, black 15%, rgba(0, 0, 0, 0) 100%)}.ListGame .GameInnerContainer{z-index:0}.ListGame .GameInnerContainer .GameBg{z-index:5}.ListGame .GameInnerContainer::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0}.ListGame .GameInnerContainer.GameInnerContainerUnavailable::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:rgba(0, 0, 0, 0.9)}.ListGame .GameInnerContainer .ListGame:hover .OpenSeat,.ListGame .GameInnerContainer .ListGame:hover .ClosedSeat,.ListGame .GameInnerContainer .ListGame:hover .LiveLimits,.ListGame .GameInnerContainer .ListGame:hover .LatestResult,.ListGame .GameInnerContainer .ListGame:hover .FullTable,.ListGame .GameInnerContainer .ListGame:active .OpenSeat,.ListGame .GameInnerContainer .ListGame:active .ClosedSeat,.ListGame .GameInnerContainer .ListGame:active .LiveLimits,.ListGame .GameInnerContainer .ListGame:active .LatestResult,.ListGame .GameInnerContainer .ListGame:active .FullTable{opacity:0.2}.ListGame .GameInnerContainer .ListGame.GameContainerDimmed:before{display:block;content:" ";width:100%;height:100%;position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;background:rgba(0, 0, 0, 0.4);color:var(--emfe-w-color-white, #FFFFFF);fill:var(--emfe-w-color-white, #FFFFFF);opacity:1;border-radius:4px}.ListGame .GameInnerContainer .ListGame.GameContainerFullyDimmed:before{display:block;content:" ";width:100%;height:100%;position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;background:rgba(0, 0, 0, 0.8);color:var(--emfe-w-color-white, #FFFFFF);fill:var(--emfe-w-color-white, #FFFFFF);opacity:1;border-radius:4px}.ListGame .GameInnerContainer .ListGame:hover .LiveProps,.ListGame .GameInnerContainer .ListGameLink:hover .LiveProps{opacity:0}@keyframes red-pulse{0%{box-shadow:0 0 2px 0 rgba(255, 0, 0, 0.75)}15%{box-shadow:0 0 10px 2px rgba(255, 0, 0, 0.75)}30%{box-shadow:0 0 2px 0 rgba(255, 0, 0, 0.75)}50%{box-shadow:0 0 10px 2px rgba(255, 0, 0, 0.75)}65%{box-shadow:0 0 2px 0 rgba(255, 0, 0, 0.75)}80%{box-shadow:0 0 10px 2px rgba(255, 0, 0, 0.75)}100%{box-shadow:0 0 0 0 rgba(255, 0, 0, 0.75)}}@keyframes green-pulse{0%{box-shadow:0 0 2px 0 rgba(86, 168, 10, 0.75)}15%{box-shadow:0 0 10px 2px rgba(86, 168, 10, 0.75)}30%{box-shadow:0 0 2px 0 rgba(86, 168, 10, 0.75)}50%{box-shadow:0 0 10px 2px rgba(86, 168, 10, 0.75)}65%{box-shadow:0 0 2px 0 rgba(86, 168, 10, 0.75)}80%{box-shadow:0 0 10px 2px rgba(86, 168, 10, 0.75)}100%{box-shadow:0 0 0 0 rgba(86, 168, 10, 0.75)}}@keyframes flip-open{0%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 90deg);transform:perspective(400px) rotate3d(0, 1, 0, 90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -20deg);transform:perspective(400px) rotate3d(0, 1, 0, -20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 10deg);transform:perspective(400px) rotate3d(0, 1, 0, 10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -5deg);transform:perspective(400px) rotate3d(0, 1, 0, -5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}.ListGame .GameInnerContainer .silde-in-from-left{-webkit-animation-name:silde-in-from-left;animation-name:silde-in-from-left;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}@-webkit-keyframes silde-in-from-left{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%);visibility:visible}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes silde-in-from-left{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%);visibility:visible}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes flip-closed-seat{0%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 90deg);transform:perspective(400px) rotate3d(0, 1, 0, 90deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in;opacity:0}40%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -20deg);transform:perspective(400px) rotate3d(0, 1, 0, -20deg);-webkit-transition-timing-function:ease-in;transition-timing-function:ease-in}60%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, 10deg);transform:perspective(400px) rotate3d(0, 1, 0, 10deg);opacity:1}80%{-webkit-transform:perspective(400px) rotate3d(0, 1, 0, -5deg);transform:perspective(400px) rotate3d(0, 1, 0, -5deg)}100%{-webkit-transform:perspective(400px);transform:perspective(400px)}}.ListGame .GameInnerContainer .ListGame.PulsatingGreenShadow{animation:green-pulse 2s linear}.ListGame .GameInnerContainer .ListGame.PulsatingRedShadow{animation:red-pulse 2s linear}.ListGame .GameInnerContainer .Blue{color:#4d90a7}.ListGame .GameInnerContainer .Red{background-color:red}.ListGame .GameInnerContainer .Black{background-color:var(--emfe-w-color-black, #000000)}.ListGame .GameInnerContainer .Green{background-color:#56A80A}.ListGame .GameInnerContainer .White{background-color:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .Yellow{background-color:#eeca3d}.ListGame .GameInnerContainer .Gold{background-color:#866d0c}.ListGame .GameInnerContainer .Orange{background-color:#574708}.ListGame .GameInnerContainer .Purple{background-color:#330033}.ListGame .GameInnerContainer .Tie{background-color:var(--emfe-w-color-white, #FFFFFF);background-image:linear-gradient(135deg, var(--emfe-w-color-white, #FFFFFF) 25%, transparent 25%, transparent 50%, #212121 50%, var(--emfe-w-color-white, #FFFFFF) 75%, transparent 75%, var(--emfe-w-color-white, #FFFFFF))}.ListGame .GameInnerContainer .PlayersDisplay{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;padding:2px 10px;background:linear-gradient(to bottom, rgba(33, 33, 33, 0.9) 0%, rgba(33, 33, 33, 0.1) 100%);color:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .PlayersDisplay .PlayersIcon{width:14px;height:14px;margin-right:4px}.ListGame .GameInnerContainer .PlayersDisplay .PlayersIcon svg{fill:var(--emfe-w-color-white, #FFFFFF);width:100%;height:100%}.ListGame .GameInnerContainer .ClosedGame{opacity:1;z-index:10;padding:8px 10px;color:var(--emfe-w-color-white, #FFFFFF);font-size:18px}.ListGame .GameInnerContainer .ClosedGame span{font-size:18px}.ListGame .GameInnerContainer .Players{display:inline-block;width:19px;height:19px}.FavIconContainer{position:absolute;top:10px;right:10px;cursor:pointer;z-index:16;width:15px;height:15px;opacity:0}.FavIconContainer.Favorited{opacity:1}.FavIconContainer svg path{fill:#fff}.Hovered .FavIconContainer{opacity:1}.GameNameBelow{color:var(--emfe-w-color-white, #FFFFFF);position:relative;bottom:-5px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}';const u=class{constructor(n){e(this,n),this.playClicked=t(this,"playCasinoGame",7),this.integratedGameFrameMobile=!1,this.integratedGameFrameDesktop=!1,this.language="en",this.userAgent=window.navigator.userAgent}onPlayNowClicked(){this.playClicked.emit(this.gameId);let e={gameId:this.gameId,isMobile:a(this.userAgent)},t=this.integratedGameFrameMobile||this.integratedGameFrameDesktop;window.postMessage({type:t?"OpenGameFrame":"ShowGameModal",eventData:t?Object.assign(Object.assign({},e),{gamefunmode:this.hasFunMode,source:"GameThumbnail",identifier:"Lobby"}):e},window.location.href)}render(){return n("div",{class:"GameInfoWrapper",part:"GameInfoWrapper"},n("div",{class:"GameInfo ",part:"GameInfo "},n("p",{class:"GameInfoName",part:"GameInfoName",title:this.gameName}," ",this.gameName," "),n("button",{class:"GameInfoBtn",part:"GameInfoBtn",onClick:()=>this.onPlayNowClicked()},l("playNow",this.language))),n("slot",{name:"vendor-name"},n("span",{class:"GameInfoVendor",part:"GameInfoVendor"},this.gameVendor)))}};u.style=":host{display:block}.GameInfoWrapper{display:none;position:absolute;width:100%;height:100%;top:0;right:0;bottom:0;left:0;background:rgba(0, 0, 0, 0.65);z-index:15}.GameInfoWrapper .GameInfo{display:flex;width:100%;height:100%;flex-direction:column;align-items:center;justify-content:center}.GameInfoWrapper .GameInfoName{color:white;margin-bottom:10px;text-align:center;font-size:14px}.GameInfoWrapper .GameInfoBtn{appearance:none;padding:6px;background:var(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-color-primary-50, #FBECF4);font-size:16px;border:2px solid var(--emfe-w-color-primary-600, #99034F);border-radius:5px;cursor:pointer;transition:border 150ms ease-in-out}.GameInfoWrapper .GameInfoBtn:hover{border:2px solid var(--emfe-w-color-primary-100, #F1BED9)}.GameInfoVendor{display:block;position:absolute;bottom:8px;right:8px;color:white;font-size:12px;font-weight:normal}.GameInfoWrapper:hover{display:block !important}";export{m as casino_game_thumb_view,u as casino_game_thumbnail_overlay}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as s,H as o}from"./p-46dbb1cb.js";import{R as e,W as i}from"./p-2d5f59fe.js";const a=class{constructor(s){t(this,s),this.language="en"}async onGameLoaded(t){var s;this.gameInfo=Object.assign({},t),this.gameDetails=this.gameInfo.details?Object.assign({},this.gameInfo.details):null,null===(s=this.infoWrapperRef)||void 0===s||s.onGameLoaded(t)}async onGameDetailUpdated(t){this.gameInfo.details=this.gameDetails=t,this.gameInfo=Object.assign({},this.gameInfo),this.gameDetails=Object.assign({},this.gameDetails)}getRouletteNumberColor(t){return e[t]}render(){var t,e,a,l;const r=!!this.gameDetails&&this.gameDetails.category.toLowerCase()===i.doubleballroulette;let c=(r?null===(t=this.gameDetails)||void 0===t?void 0:t.currentDoubleBallRouletteNumbers:null===(e=this.gameDetails)||void 0===e?void 0:e.currentRouletteNumbers)||[];return s(o,null,s("casino-game-thumbnail-extrainfo",{ref:t=>this.infoWrapperRef=t,language:this.language},s("div",{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(((t,o)=>!0===r?s("div",{class:"Double",part:"Double"},s("span",{id:`s${o}0`,class:`LatestResult ${0==o?"First":""} ${this.showLiveClass?"FirstElementAnimated":""} ${this.getRouletteNumberColor(t[0])}`}," ",t[0]),s("span",{id:`s${o}1`,class:`LatestResult ${0==o?"First":""} ${this.showLiveClass?"FirstElementAnimated":""} ${this.getRouletteNumberColor(t[1])}`}," ",t[1])):s("span",{id:`s${o}`,class:`LatestResult ${0==o?"First":""} ${this.showLiveClass?"FirstElementAnimated":""} ${this.getRouletteNumberColor(t)}`}," ",t))))))}};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(--emfe-w-color-black, #000000)}.Green{background-color:#56A80A}.White{background-color:var(--emfe-w-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}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as i}from"./p-46dbb1cb.js";import{n as t,a,h as s}from"./p-6a6b2a78.js";import{t as n}from"./p-2b51ea79.js";import{W as o,c as r}from"./p-2d5f59fe.js";const l={AED:"د.إ",AFN:"؋",ALL:"L",AMD:"֏",ANG:"ƒ",AOA:"Kz",ARS:"$",AUD:"$",AWG:"ƒ",AZN:"ман",BAM:"KM",BBD:"$",BDT:"৳",BGN:"лв",BHD:".د.ب",BIF:"FBu",BMD:"$",BND:"$",BOB:"$b",BRL:"R$",BSD:"$",BTC:"฿",BTN:"Nu.",BWP:"P",BYR:"p.",BZD:"BZ$",CAD:"$",CDF:"FC",CHF:"CHF",CLP:"$",CNY:"¥",COP:"$",CRC:"₡",CUC:"$",CUP:"₱",CVE:"$",CZK:"Kč",DJF:"Fdj",DKK:"kr",DOP:"RD$",DZD:"دج",EEK:"kr",EGP:"£",ERN:"Nfk",ETB:"Br",ETH:"Ξ",EUR:"€",FJD:"$",FKP:"£",GBP:"£",GEL:"₾",GGP:"£",GHC:"₵",GHS:"GH₵",GIP:"£",GMD:"D",GNF:"FG",GTQ:"Q",GYD:"$",HKD:"$",HNL:"L",HRK:"kn",HTG:"G",HUF:"Ft",IDR:"Rp",ILS:"₪",IMP:"£",INR:"₹",IQD:"ع.د",IRR:"﷼",ISK:"kr",JEP:"£",JMD:"J$",JOD:"JD",JPY:"¥",KES:"KSh",KGS:"лв",KHR:"៛",KMF:"CF",KPW:"₩",KRW:"₩",KWD:"KD",KYD:"$",KZT:"лв",LAK:"₭",LBP:"£",LKR:"₨",LRD:"$",LSL:"M",LTC:"Ł",LTL:"Lt",LVL:"Ls",LYD:"LD",MAD:"MAD",MDL:"lei",MGA:"Ar",MKD:"ден",MMK:"K",MNT:"₮",MOP:"MOP$",MRO:"UM",MUR:"₨",MVR:"Rf",MWK:"MK",MXN:"$",MYR:"RM",MZN:"MT",NAD:"$",NGN:"₦",NIO:"C$",NOK:"kr",NPR:"₨",NZD:"$",OMR:"﷼",PAB:"B/.",PEN:"S/.",PGK:"K",PHP:"₱",PKR:"₨",PLN:"zł",PYG:"Gs",QAR:"﷼",RMB:"¥",RON:"lei",RSD:"Дин.",RUB:"₽",RWF:"R₣",SAR:"﷼",SBD:"$",SCR:"₨",SDG:"ج.س.",SEK:"kr",SGD:"$",SHP:"£",SLL:"Le",SOS:"S",SRD:"$",SSP:"£",STD:"Db",SVC:"$",SYP:"£",SZL:"E",THB:"฿",TJS:"SM",TMT:"T",TND:"د.ت",TOP:"T$",TRL:"₤",TRY:"₺",TTD:"TT$",TVD:"$",TWD:"NT$",TZS:"TSh",UAH:"₴",UGX:"USh",USD:"$",UYU:"$U",UZS:"лв",VEF:"Bs",VND:"₫",VUV:"VT",WST:"WS$",XAF:"FCFA",XBT:"Ƀ",XCD:"$",XOF:"CFA",XPF:"₣",YER:"﷼",ZAR:"R",ZWD:"Z$"},m=class{constructor(i){e(this,i),this.defaultCurrency="EUR",this.isBetLimitAvailable=!1}getCurrencySymbols(e){return l[e]}componentWillRender(){if(this.betLimit){const e=this.betLimit.max?this.betLimit.max:this.betLimit.min||{};this.isBetLimitAvailable=1===Object.keys(e).length,this.currency=this.isBetLimitAvailable?Object.keys(e)[0]:this.defaultCurrency}}render(){return this.isBetLimitAvailable?i("p",{class:"LiveLimits"},i("span",{class:"BetLimitLeft"},this.getCurrencySymbols(this.currency)," ",t(this.betLimit.min[this.currency])," -"," ",t(this.betLimit.max[this.currency])),(this.numberOfPlayers||0==this.numberOfPlayers)&&i("span",{class:"BetLimitRight"},i("svg",{fill:"white",width:"13",height:"13",viewBox:"0 0 13 14",xmlns:"http://www.w3.org/2000/svg"},i("path",{d:"M4 8.2a4.6 4.6 0 0 0 5 0c2.7.8 4 2.6 4 4.8H0c0-2.2 1.3-4 4-4.8zM6.6 8c2 0 3.8-1.7 3.8-4 0-2.1-1.7-4-3.8-4a3.9 3.9 0 0 0-3.8 4c0 2.2 1.7 4 3.8 4z"})),i("span",{class:"NrOfPlayers"},this.numberOfPlayers))):""}};m.style=":host{display:block}";const c=class{constructor(i){e(this,i),this.language="en",this.isNewGame=!1}async onGameLoaded(e){var i;this.gameInfo=e,this.isNewGame=this.gameInfo.isNew,this.gameTag=this.gameInfo.gameTag,this.gameInfo.details&&(this.gameDetails=this.gameInfo.details,this.isDouble=!!this.gameDetails&&this.gameInfo.details.category.toLowerCase()===o.doubleballroulette,this.gameTag=this.gameDetails&&(null===(i=this.gameInfo.advancedTags)||void 0===i?void 0:i.length)>0?a(this.gameInfo.advancedTags):this.gameInfo.gameTag,this.betLimit=this.gameDetails?this.gameDetails.betLimit:null,this.initTimeProperties())}initTimeProperties(){var e,i,t,a,s;"Bounded"===(null===(i=null===(e=this.gameDetails)||void 0===e?void 0:e.openHours)||void 0===i?void 0:i.type)&&(this.gameStartTime=null===(a=null===(t=this.gameDetails)||void 0===t?void 0:t.openHours)||void 0===a?void 0:a.value.startTime,this.gameTimeFormat=null===(s=this.gameDetails)||void 0===s?void 0:s.openHours.value.originalTimeFormat)}async onGameDetailUpdated(e){this.gameInfo.details=this.gameDetails=e,this.gameDetails=Object.assign({},this.gameDetails),this.initTimeProperties()}render(){var e,t,a;return this.gameInfo?i("div",{class:"GameExtraInfo",part:"GameExtraInfo"},this.isNewGame&&i("span",{class:"GameExtraInfoLabel NewGameTag",part:"GameExtraInfoLabel NewGameTag"},n("new",this.language)),this.gameTag&&i("span",{class:"GameExtraInfoLabel PopularGameTag",part:"GameExtraInfoLabel PopularGameTag"},this.gameTag),this.gameDetails&&i("div",{class:`GameProp LiveProps ${r[this.gameDetails.category.toLowerCase()]} ${this.isDouble?" Double":""}`,part:`GameProp LiveProps ${r[this.gameDetails.category.toLowerCase()]} ${this.isDouble?" Double":""}`},this.gameDetails.isOpen?i("slot",{name:"category-details"}):this.gameStartTime&&this.gameTimeFormat&&i("div",{class:"ClosedGame",part:"ClosedGame"},n("opens",this.language),i("span",null," ",s.utc(this.gameStartTime).local().format(this.gameTimeFormat)," ")),(null===(e=this.gameDetails.dealer)||void 0===e?void 0:e.DealerName)&&i("p",{class:"LiveLimits"},i("span",{class:"DealerName"},n("dealer",this.language),":"," ",null===(t=this.gameDetails)||void 0===t?void 0:t.dealer.DealerName," ")),i("casino-game-thumbnail-betlimit",{betLimit:this.betLimit,numberOfPlayers:null===(a=this.gameDetails)||void 0===a?void 0:a.numberOfPlayers}))):""}};c.style=':host{display:block;font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.LiveProps{display:flex;flex-direction:column;position:absolute;bottom:8px;left:-8px;right:0;width:100%;padding:0;background:linear-gradient(to top, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.3) 80%, rgba(0, 0, 0, 0.99) 100%);color:var(--emfe-w-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(--emfe-w-color-primary, #D0046C);color:var(--emfe-w-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(--emfe-w-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(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .LatestResult{min-width:12px;padding:2px;margin:0 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(--emfe-w-color-white, #FFFFFF);border:1px solid var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Black{background:var(--emfe-w-color-black, #000000)}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Red{background:red}.ListGame .GameInnerContainer .LiveIcons .LatestResult.First.Green{background:#56A80A}.ListGame .GameInnerContainer .LiveIcons .Double{display:flex;flex-direction:column}.ListGame .GameInnerContainer .LiveIcons .Double .LatestResult:first-child{margin-bottom:10px}.ListGame .GameInnerContainer .LiveIcons .Double:first-child .LatestResult{margin-left:0;margin-bottom:0}.ListGame .GameInnerContainer .LiveIcons .Double:last-child .LatestResult{margin-right:0}.ListGame .GameInnerContainer .LiveIcons .Black,.ListGame .GameInnerContainer .LiveIcons .Red,.ListGame .GameInnerContainer .LiveIcons .Green{background-color:transparent}.ListGame .GameInnerContainer .LiveIcons .Black{color:var(--emfe-w-color-white, #FFFFFF)}.ListGame .GameInnerContainer .LiveIcons .Red{color:red}.ListGame .GameInnerContainer .LiveIcons .Green{color:#56A80A}.ListGame .GameInnerContainer .LiveLimits{opacity:1;display:flex;flex-direction:row;justify-content:space-between;padding:2px 10px 5px;background:var(--emfe-w-color-black, #000000);color:var(--emfe-w-color-white, #FFFFFF);font-weight:normal;font-size:12px}.ListGame .GameInnerContainer .LiveLimits span{font-size:12px;vertical-align:top}';export{m as casino_game_thumbnail_betlimit,c as casino_game_thumbnail_extrainfo}
|
|
@@ -18,7 +18,7 @@ const CasinoExtrainfoRoulette = class {
|
|
|
18
18
|
async onGameLoaded(gameInfo) {
|
|
19
19
|
var _a;
|
|
20
20
|
this.gameInfo = Object.assign({}, gameInfo);
|
|
21
|
-
this.gameDetails = Object.assign({}, this.gameInfo.details);
|
|
21
|
+
this.gameDetails = this.gameInfo.details ? Object.assign({}, this.gameInfo.details) : null;
|
|
22
22
|
(_a = this.infoWrapperRef) === null || _a === void 0 ? void 0 : _a.onGameLoaded(gameInfo);
|
|
23
23
|
}
|
|
24
24
|
async onGameDetailUpdated(details) {
|
|
@@ -30,13 +30,14 @@ const CasinoExtrainfoRoulette = class {
|
|
|
30
30
|
return gameThumbnail.ROULETTE_COLOR_MAP[value];
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
|
-
var _a, _b, _c, _d
|
|
34
|
-
const isDouble =
|
|
35
|
-
|
|
33
|
+
var _a, _b, _c, _d;
|
|
34
|
+
const isDouble = this.gameDetails ?
|
|
35
|
+
this.gameDetails.category.toLowerCase() ===
|
|
36
|
+
gameThumbnail.WIDGETTYPE_GAMECATEGORY.doubleballroulette : false;
|
|
36
37
|
let rouletteNumbers = (isDouble
|
|
37
|
-
? (
|
|
38
|
-
: (
|
|
39
|
-
return (index.h(index.Host, null, index.h("casino-game-thumbnail-extrainfo", { ref: (el) => (this.infoWrapperRef = el), language: this.language }, index.h("div", { slot: "category-details", class: `LiveIcons ${((
|
|
38
|
+
? (_a = this.gameDetails) === null || _a === void 0 ? void 0 : _a.currentDoubleBallRouletteNumbers
|
|
39
|
+
: (_b = this.gameDetails) === null || _b === void 0 ? void 0 : _b.currentRouletteNumbers) || [];
|
|
40
|
+
return (index.h(index.Host, null, index.h("casino-game-thumbnail-extrainfo", { ref: (el) => (this.infoWrapperRef = el), language: this.language }, index.h("div", { slot: "category-details", class: `LiveIcons ${((_c = this.gameDetails) === null || _c === void 0 ? void 0 : _c.isOpen) ? 'GameBackdrop' : ''}`, part: `LiveIcons ${((_d = this.gameDetails) === null || _d === void 0 ? void 0 : _d.isOpen) ? 'GameBackdrop' : ''}` }, rouletteNumbers.slice(0, 5).map((rNum, idx) => isDouble === true ? (index.h("div", { class: "Double", part: "Double" }, index.h("span", { id: `s${idx}0`, class: `LatestResult ${idx == 0 ? 'First' : ''} ${this.showLiveClass ? 'FirstElementAnimated' : ''} ${this.getRouletteNumberColor(rNum[0])}` }, ' ', rNum[0]), index.h("span", { id: `s${idx}1`, class: `LatestResult ${idx == 0 ? 'First' : ''} ${this.showLiveClass ? 'FirstElementAnimated' : ''} ${this.getRouletteNumberColor(rNum[1])}` }, ' ', rNum[1]))) : (index.h("span", { id: `s${idx}`, class: `LatestResult ${idx == 0 ? 'First' : ''} ${this.showLiveClass ? 'FirstElementAnimated' : ''} ${this.getRouletteNumberColor(rNum)}` }, ' ', rNum)))))));
|
|
40
41
|
}
|
|
41
42
|
};
|
|
42
43
|
CasinoExtrainfoRoulette.style = casinoExtrainfoRouletteCss;
|
|
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy([["casino-game-thumbnail-betlimit_2.cjs",[[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.cjs",[[0,"casino-extrainfo-baccarat",{"language":[1],"showRoundBoard":[4,"show-round-board"],"gameInfo":[32],"gameDetails":[32],"onGameLoaded":[64],"onGameDetailUpdated":[64],"onBaccaratResultChanged":[64]}]]],["casino-extrainfo-blackjack.cjs",[[0,"casino-extrainfo-blackjack",{"language":[1],"gameInfo":[32],"gameDetails":[32],"seatsStatus":[32],"isTableFull":[32],"onGameLoaded":[64],"onGameDetailUpdated":[64]}]]],["casino-extrainfo-roulette.cjs",[[0,"casino-extrainfo-roulette",{"language":[1],"gameInfo":[32],"gameDetails":[32],"showLiveClass":[32],"onGameLoaded":[64],"onGameDetailUpdated":[64]}]]],["casino-normal-game-thumbnail.cjs",[[0,"casino-normal-game-thumbnail"]]],["casino-game-thumb-view_2.cjs",[[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-game-frame-mobile"],"gamepageModalUrl":[1,"gamepage-modal-url"],"integratedGameFrameDesktop":[4,"integrated-game-frame-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"]]],[4,"casino-game-thumbnail-overlay",{"integratedGameFrameMobile":[4,"integrated-game-frame-mobile"],"gamepageModalUrl":[1,"gamepage-modal-url"],"integratedGameFrameDesktop":[4,"integrated-game-frame-desktop"],"language":[1],"gameName":[1,"game-name"],"gameVendor":[1,"game-vendor"],"gameId":[8,"game-id"],"hasFunMode":[4,"has-fun-mode"]}]]]], options);
|
|
18
|
+
return index.bootstrapLazy([["casino-game-thumbnail-betlimit_2.cjs",[[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.cjs",[[0,"casino-extrainfo-baccarat",{"language":[1],"showRoundBoard":[4,"show-round-board"],"gameInfo":[32],"gameDetails":[32],"onGameLoaded":[64],"onGameDetailUpdated":[64],"onBaccaratResultChanged":[64]}]]],["casino-extrainfo-blackjack.cjs",[[0,"casino-extrainfo-blackjack",{"language":[1],"gameInfo":[32],"gameDetails":[32],"seatsStatus":[32],"isTableFull":[32],"onGameLoaded":[64],"onGameDetailUpdated":[64]}]]],["casino-extrainfo-roulette.cjs",[[0,"casino-extrainfo-roulette",{"language":[1],"gameInfo":[32],"gameDetails":[32],"showLiveClass":[32],"onGameLoaded":[64],"onGameDetailUpdated":[64]}]]],["casino-normal-game-thumbnail.cjs",[[0,"casino-normal-game-thumbnail",{"language":[1],"onGameLoaded":[64]}]]],["casino-game-thumb-view_2.cjs",[[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-game-frame-mobile"],"gamepageModalUrl":[1,"gamepage-modal-url"],"integratedGameFrameDesktop":[4,"integrated-game-frame-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"]]],[4,"casino-game-thumbnail-overlay",{"integratedGameFrameMobile":[4,"integrated-game-frame-mobile"],"gamepageModalUrl":[1,"gamepage-modal-url"],"integratedGameFrameDesktop":[4,"integrated-game-frame-desktop"],"language":[1],"gameName":[1,"game-name"],"gameVendor":[1,"game-vendor"],"gameId":[8,"game-id"],"hasFunMode":[4,"has-fun-mode"]}]]]], options);
|
|
19
19
|
});
|
|
@@ -1145,7 +1145,6 @@ const CasinoGameThumbView = class {
|
|
|
1145
1145
|
* Game Property, Game lunch platform
|
|
1146
1146
|
*/
|
|
1147
1147
|
this.platform = 'PC';
|
|
1148
|
-
this.gameInfo = {};
|
|
1149
1148
|
this.thumbnailLoaded = false;
|
|
1150
1149
|
this.containerClassWhenDetailChange = '';
|
|
1151
1150
|
this.isUserLoggedIn = false;
|
|
@@ -1221,6 +1220,7 @@ const CasinoGameThumbView = class {
|
|
|
1221
1220
|
let message = JSON.parse(e.data);
|
|
1222
1221
|
if (message.needReconnect && this.liveLobbyConnection) {
|
|
1223
1222
|
this.liveLobbyConnection.close();
|
|
1223
|
+
this.liveLobbyConnection = null;
|
|
1224
1224
|
this.connectGameToLiveLobby();
|
|
1225
1225
|
return;
|
|
1226
1226
|
}
|
|
@@ -1265,10 +1265,12 @@ const CasinoGameThumbView = class {
|
|
|
1265
1265
|
window.postMessage({ messageType: MessageType, value: e.data });
|
|
1266
1266
|
}
|
|
1267
1267
|
messageHandler(e) {
|
|
1268
|
-
if (e.data.type === `AddFavoriteThumbnail_${this.gameId}` &&
|
|
1268
|
+
if (e.data.type === `AddFavoriteThumbnail_${this.gameId}` &&
|
|
1269
|
+
!this.showFavoredCategory) {
|
|
1269
1270
|
this.gameInfo.isFavorite = true;
|
|
1270
1271
|
}
|
|
1271
|
-
if (e.data.type === `RemoveFavoriteThumbnail_${this.gameId}` &&
|
|
1272
|
+
if (e.data.type === `RemoveFavoriteThumbnail_${this.gameId}` &&
|
|
1273
|
+
!this.showFavoredCategory) {
|
|
1272
1274
|
this.gameInfo.isFavorite = false;
|
|
1273
1275
|
}
|
|
1274
1276
|
if (e.data.type === 'UserSessionID') {
|
|
@@ -1309,14 +1311,10 @@ const CasinoGameThumbView = class {
|
|
|
1309
1311
|
this.resetLiveProperties();
|
|
1310
1312
|
}
|
|
1311
1313
|
this.gameInfo = Object.assign({}, this.gameInfo);
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
type: 'casinoGameLoaded',
|
|
1317
|
-
gameInfo: this.gameInfo,
|
|
1318
|
-
});
|
|
1319
|
-
}, 200);
|
|
1314
|
+
this.triggerExtraInfoLoad();
|
|
1315
|
+
if (this.isLiveCasino && this.connectLive === 'connect') {
|
|
1316
|
+
this.connectGameToLiveLobby();
|
|
1317
|
+
}
|
|
1320
1318
|
}
|
|
1321
1319
|
/**
|
|
1322
1320
|
* Parse game info by game info api response
|
|
@@ -1378,7 +1376,8 @@ const CasinoGameThumbView = class {
|
|
|
1378
1376
|
if (this.visibilityConnect === 'disconnect') {
|
|
1379
1377
|
this.disconnectGameFromLiveLobby();
|
|
1380
1378
|
}
|
|
1381
|
-
else if (this.visibilityConnect === 'connect' &&
|
|
1379
|
+
else if (this.visibilityConnect === 'connect' &&
|
|
1380
|
+
this.connectLive === 'connect') {
|
|
1382
1381
|
this.connectGameToLiveLobby();
|
|
1383
1382
|
}
|
|
1384
1383
|
}
|
|
@@ -1467,6 +1466,16 @@ const CasinoGameThumbView = class {
|
|
|
1467
1466
|
liveCasinoCategory: this.gameCategory || '',
|
|
1468
1467
|
};
|
|
1469
1468
|
}
|
|
1469
|
+
triggerExtraInfoLoad() {
|
|
1470
|
+
var _a, _b;
|
|
1471
|
+
//Init this.extraInfoRef, prepare for data loader, this.gameInfo did not inited might
|
|
1472
|
+
this.extraInfoRef = this.extraInfoRef || ((_a = this.extraInfoSlotRef) === null || _a === void 0 ? void 0 : _a.querySelector(this.getGameCategoryType()));
|
|
1473
|
+
(_b = this.extraInfoRef) === null || _b === void 0 ? void 0 : _b.onGameLoaded(this.gameInfo);
|
|
1474
|
+
window.postMessage({
|
|
1475
|
+
type: 'casinoGameLoaded',
|
|
1476
|
+
gameInfo: this.gameInfo,
|
|
1477
|
+
});
|
|
1478
|
+
}
|
|
1470
1479
|
componentDidRender() {
|
|
1471
1480
|
// start custom styling area
|
|
1472
1481
|
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
@@ -1476,13 +1485,13 @@ const CasinoGameThumbView = class {
|
|
|
1476
1485
|
this.setClientStylingURL();
|
|
1477
1486
|
this.limitStylingAppends = true;
|
|
1478
1487
|
}
|
|
1479
|
-
// end custom styling area
|
|
1488
|
+
// end custom styling area 500)
|
|
1489
|
+
if (this.gameInfo) {
|
|
1490
|
+
this.triggerExtraInfoLoad();
|
|
1491
|
+
}
|
|
1480
1492
|
}
|
|
1481
1493
|
componentDidLoad() {
|
|
1482
|
-
|
|
1483
|
-
//Init this.extraInfoRef, prepare for data loader, this.gameInfo did not inited might
|
|
1484
|
-
this.extraInfoRef = (_a = this.extraInfoSlotRef) === null || _a === void 0 ? void 0 : _a.querySelector(this.getGameCategoryType());
|
|
1485
|
-
window.addEventListener("message", this.messageHandler);
|
|
1494
|
+
window.addEventListener('message', this.messageHandler);
|
|
1486
1495
|
}
|
|
1487
1496
|
componentWillLoad() {
|
|
1488
1497
|
this.isLiveCasino = this.type == gameThumbnail.GAME_TYPE.LIVE_CASINO;
|
|
@@ -1501,7 +1510,6 @@ const CasinoGameThumbView = class {
|
|
|
1501
1510
|
this.loadDetails &&
|
|
1502
1511
|
this.gameId) {
|
|
1503
1512
|
this.loadGameDetailInfo();
|
|
1504
|
-
return;
|
|
1505
1513
|
}
|
|
1506
1514
|
return;
|
|
1507
1515
|
}
|
|
@@ -1514,17 +1522,18 @@ const CasinoGameThumbView = class {
|
|
|
1514
1522
|
if (this.liveLobbyConnection) {
|
|
1515
1523
|
this.liveLobbyConnection.removeEventListener('message', this.gameDetailChangeHandler);
|
|
1516
1524
|
}
|
|
1517
|
-
window.removeEventListener(
|
|
1525
|
+
window.removeEventListener('message', this.messageHandler);
|
|
1518
1526
|
}
|
|
1519
1527
|
// end custom styling area
|
|
1520
1528
|
getWidgetTypeByGameCategory(gameCategory) {
|
|
1521
1529
|
return gameThumbnail.WIDGETTYPE_GAMECATEGORY[gameCategory.toLowerCase()];
|
|
1522
1530
|
}
|
|
1523
1531
|
getGameOverlayProps() {
|
|
1532
|
+
var _a, _b;
|
|
1524
1533
|
return {
|
|
1525
1534
|
gameName: this.gameInfo.name,
|
|
1526
1535
|
gameId: this.gameInfo.gameId,
|
|
1527
|
-
gameVendor: this.gameVendor || this.gameInfo.vendor.name,
|
|
1536
|
+
gameVendor: this.gameVendor || ((_b = (_a = this.gameInfo) === null || _a === void 0 ? void 0 : _a.vendor) === null || _b === void 0 ? void 0 : _b.name),
|
|
1528
1537
|
hasFunMode: this.gameInfo.hasFunMode,
|
|
1529
1538
|
language: this.language,
|
|
1530
1539
|
integratedGameFrameMobile: this.integratedGameFrameMobile,
|
|
@@ -223,17 +223,18 @@ const CasinoGameThumbnailExtrainfo = class {
|
|
|
223
223
|
async onGameLoaded(gameInfo) {
|
|
224
224
|
var _a;
|
|
225
225
|
this.gameInfo = gameInfo;
|
|
226
|
+
this.isNewGame = this.gameInfo.isNew;
|
|
227
|
+
this.gameTag = this.gameInfo.gameTag;
|
|
226
228
|
if (!this.gameInfo.details) {
|
|
227
229
|
return;
|
|
228
230
|
}
|
|
229
231
|
this.gameDetails = this.gameInfo.details;
|
|
230
|
-
this.isNewGame = this.gameInfo.isNew;
|
|
231
232
|
this.isDouble = !this.gameDetails
|
|
232
233
|
? false
|
|
233
234
|
: this.gameInfo.details.category.toLowerCase() ===
|
|
234
235
|
gameThumbnail.WIDGETTYPE_GAMECATEGORY.doubleballroulette;
|
|
235
236
|
this.gameTag = !this.gameDetails
|
|
236
|
-
?
|
|
237
|
+
? this.gameInfo.gameTag
|
|
237
238
|
: ((_a = this.gameInfo.advancedTags) === null || _a === void 0 ? void 0 : _a.length) > 0
|
|
238
239
|
? utils.addGameTag(this.gameInfo.advancedTags)
|
|
239
240
|
: this.gameInfo.gameTag;
|
|
@@ -10,8 +10,12 @@ const CasinoNormalGameThumbnail = class {
|
|
|
10
10
|
constructor(hostRef) {
|
|
11
11
|
index.registerInstance(this, hostRef);
|
|
12
12
|
}
|
|
13
|
+
async onGameLoaded(gameInfo) {
|
|
14
|
+
var _a;
|
|
15
|
+
(_a = this.infoWrapperRef) === null || _a === void 0 ? void 0 : _a.onGameLoaded(gameInfo);
|
|
16
|
+
}
|
|
13
17
|
render() {
|
|
14
|
-
return index.h(index.Host, null);
|
|
18
|
+
return (index.h(index.Host, null, index.h("casino-game-thumbnail-extrainfo", { ref: (el) => (this.infoWrapperRef = el), language: this.language })));
|
|
15
19
|
}
|
|
16
20
|
};
|
|
17
21
|
CasinoNormalGameThumbnail.style = casinoNormalGameThumbnailCss;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["casino-game-thumbnail-betlimit_2.cjs",[[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.cjs",[[0,"casino-extrainfo-baccarat",{"language":[1],"showRoundBoard":[4,"show-round-board"],"gameInfo":[32],"gameDetails":[32],"onGameLoaded":[64],"onGameDetailUpdated":[64],"onBaccaratResultChanged":[64]}]]],["casino-extrainfo-blackjack.cjs",[[0,"casino-extrainfo-blackjack",{"language":[1],"gameInfo":[32],"gameDetails":[32],"seatsStatus":[32],"isTableFull":[32],"onGameLoaded":[64],"onGameDetailUpdated":[64]}]]],["casino-extrainfo-roulette.cjs",[[0,"casino-extrainfo-roulette",{"language":[1],"gameInfo":[32],"gameDetails":[32],"showLiveClass":[32],"onGameLoaded":[64],"onGameDetailUpdated":[64]}]]],["casino-normal-game-thumbnail.cjs",[[0,"casino-normal-game-thumbnail"]]],["casino-game-thumb-view_2.cjs",[[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-game-frame-mobile"],"gamepageModalUrl":[1,"gamepage-modal-url"],"integratedGameFrameDesktop":[4,"integrated-game-frame-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"]]],[4,"casino-game-thumbnail-overlay",{"integratedGameFrameMobile":[4,"integrated-game-frame-mobile"],"gamepageModalUrl":[1,"gamepage-modal-url"],"integratedGameFrameDesktop":[4,"integrated-game-frame-desktop"],"language":[1],"gameName":[1,"game-name"],"gameVendor":[1,"game-vendor"],"gameId":[8,"game-id"],"hasFunMode":[4,"has-fun-mode"]}]]]], options);
|
|
17
|
+
return index.bootstrapLazy([["casino-game-thumbnail-betlimit_2.cjs",[[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.cjs",[[0,"casino-extrainfo-baccarat",{"language":[1],"showRoundBoard":[4,"show-round-board"],"gameInfo":[32],"gameDetails":[32],"onGameLoaded":[64],"onGameDetailUpdated":[64],"onBaccaratResultChanged":[64]}]]],["casino-extrainfo-blackjack.cjs",[[0,"casino-extrainfo-blackjack",{"language":[1],"gameInfo":[32],"gameDetails":[32],"seatsStatus":[32],"isTableFull":[32],"onGameLoaded":[64],"onGameDetailUpdated":[64]}]]],["casino-extrainfo-roulette.cjs",[[0,"casino-extrainfo-roulette",{"language":[1],"gameInfo":[32],"gameDetails":[32],"showLiveClass":[32],"onGameLoaded":[64],"onGameDetailUpdated":[64]}]]],["casino-normal-game-thumbnail.cjs",[[0,"casino-normal-game-thumbnail",{"language":[1],"onGameLoaded":[64]}]]],["casino-game-thumb-view_2.cjs",[[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-game-frame-mobile"],"gamepageModalUrl":[1,"gamepage-modal-url"],"integratedGameFrameDesktop":[4,"integrated-game-frame-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"]]],[4,"casino-game-thumbnail-overlay",{"integratedGameFrameMobile":[4,"integrated-game-frame-mobile"],"gamepageModalUrl":[1,"gamepage-modal-url"],"integratedGameFrameDesktop":[4,"integrated-game-frame-desktop"],"language":[1],"gameName":[1,"game-name"],"gameVendor":[1,"game-vendor"],"gameId":[8,"game-id"],"hasFunMode":[4,"has-fun-mode"]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -10,7 +10,7 @@ export class CasinoExtrainfoRoulette {
|
|
|
10
10
|
async onGameLoaded(gameInfo) {
|
|
11
11
|
var _a;
|
|
12
12
|
this.gameInfo = Object.assign({}, gameInfo);
|
|
13
|
-
this.gameDetails = Object.assign({}, this.gameInfo.details);
|
|
13
|
+
this.gameDetails = this.gameInfo.details ? Object.assign({}, this.gameInfo.details) : null;
|
|
14
14
|
(_a = this.infoWrapperRef) === null || _a === void 0 ? void 0 : _a.onGameLoaded(gameInfo);
|
|
15
15
|
}
|
|
16
16
|
async onGameDetailUpdated(details) {
|
|
@@ -22,14 +22,15 @@ export class CasinoExtrainfoRoulette {
|
|
|
22
22
|
return ROULETTE_COLOR_MAP[value];
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
var _a, _b, _c, _d
|
|
26
|
-
const isDouble =
|
|
27
|
-
|
|
25
|
+
var _a, _b, _c, _d;
|
|
26
|
+
const isDouble = this.gameDetails ?
|
|
27
|
+
this.gameDetails.category.toLowerCase() ===
|
|
28
|
+
WIDGETTYPE_GAMECATEGORY.doubleballroulette : false;
|
|
28
29
|
let rouletteNumbers = (isDouble
|
|
29
|
-
? (
|
|
30
|
-
: (
|
|
30
|
+
? (_a = this.gameDetails) === null || _a === void 0 ? void 0 : _a.currentDoubleBallRouletteNumbers
|
|
31
|
+
: (_b = this.gameDetails) === null || _b === void 0 ? void 0 : _b.currentRouletteNumbers) || [];
|
|
31
32
|
return (h(Host, null,
|
|
32
|
-
h("casino-game-thumbnail-extrainfo", { ref: (el) => (this.infoWrapperRef = el), language: this.language }, h("div", { slot: "category-details", class: `LiveIcons ${((
|
|
33
|
+
h("casino-game-thumbnail-extrainfo", { ref: (el) => (this.infoWrapperRef = el), language: this.language }, h("div", { slot: "category-details", class: `LiveIcons ${((_c = this.gameDetails) === null || _c === void 0 ? void 0 : _c.isOpen) ? 'GameBackdrop' : ''}`, part: `LiveIcons ${((_d = this.gameDetails) === null || _d === void 0 ? void 0 : _d.isOpen) ? 'GameBackdrop' : ''}` }, rouletteNumbers.slice(0, 5).map((rNum, idx) => isDouble === true ? (h("div", { class: "Double", part: "Double" },
|
|
33
34
|
h("span", { id: `s${idx}0`, class: `LatestResult ${idx == 0 ? 'First' : ''} ${this.showLiveClass ? 'FirstElementAnimated' : ''} ${this.getRouletteNumberColor(rNum[0])}` },
|
|
34
35
|
' ',
|
|
35
36
|
rNum[0]),
|
|
@@ -45,7 +45,6 @@ export class CasinoGameThumbView {
|
|
|
45
45
|
* Game Property, Game lunch platform
|
|
46
46
|
*/
|
|
47
47
|
this.platform = 'PC';
|
|
48
|
-
this.gameInfo = {};
|
|
49
48
|
this.thumbnailLoaded = false;
|
|
50
49
|
this.containerClassWhenDetailChange = '';
|
|
51
50
|
this.isUserLoggedIn = false;
|
|
@@ -121,6 +120,7 @@ export class CasinoGameThumbView {
|
|
|
121
120
|
let message = JSON.parse(e.data);
|
|
122
121
|
if (message.needReconnect && this.liveLobbyConnection) {
|
|
123
122
|
this.liveLobbyConnection.close();
|
|
123
|
+
this.liveLobbyConnection = null;
|
|
124
124
|
this.connectGameToLiveLobby();
|
|
125
125
|
return;
|
|
126
126
|
}
|
|
@@ -165,10 +165,12 @@ export class CasinoGameThumbView {
|
|
|
165
165
|
window.postMessage({ messageType: MessageType, value: e.data });
|
|
166
166
|
}
|
|
167
167
|
messageHandler(e) {
|
|
168
|
-
if (e.data.type === `AddFavoriteThumbnail_${this.gameId}` &&
|
|
168
|
+
if (e.data.type === `AddFavoriteThumbnail_${this.gameId}` &&
|
|
169
|
+
!this.showFavoredCategory) {
|
|
169
170
|
this.gameInfo.isFavorite = true;
|
|
170
171
|
}
|
|
171
|
-
if (e.data.type === `RemoveFavoriteThumbnail_${this.gameId}` &&
|
|
172
|
+
if (e.data.type === `RemoveFavoriteThumbnail_${this.gameId}` &&
|
|
173
|
+
!this.showFavoredCategory) {
|
|
172
174
|
this.gameInfo.isFavorite = false;
|
|
173
175
|
}
|
|
174
176
|
if (e.data.type === 'UserSessionID') {
|
|
@@ -209,14 +211,10 @@ export class CasinoGameThumbView {
|
|
|
209
211
|
this.resetLiveProperties();
|
|
210
212
|
}
|
|
211
213
|
this.gameInfo = Object.assign({}, this.gameInfo);
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
type: 'casinoGameLoaded',
|
|
217
|
-
gameInfo: this.gameInfo,
|
|
218
|
-
});
|
|
219
|
-
}, 200);
|
|
214
|
+
this.triggerExtraInfoLoad();
|
|
215
|
+
if (this.isLiveCasino && this.connectLive === 'connect') {
|
|
216
|
+
this.connectGameToLiveLobby();
|
|
217
|
+
}
|
|
220
218
|
}
|
|
221
219
|
/**
|
|
222
220
|
* Parse game info by game info api response
|
|
@@ -278,7 +276,8 @@ export class CasinoGameThumbView {
|
|
|
278
276
|
if (this.visibilityConnect === 'disconnect') {
|
|
279
277
|
this.disconnectGameFromLiveLobby();
|
|
280
278
|
}
|
|
281
|
-
else if (this.visibilityConnect === 'connect' &&
|
|
279
|
+
else if (this.visibilityConnect === 'connect' &&
|
|
280
|
+
this.connectLive === 'connect') {
|
|
282
281
|
this.connectGameToLiveLobby();
|
|
283
282
|
}
|
|
284
283
|
}
|
|
@@ -367,6 +366,16 @@ export class CasinoGameThumbView {
|
|
|
367
366
|
liveCasinoCategory: this.gameCategory || '',
|
|
368
367
|
};
|
|
369
368
|
}
|
|
369
|
+
triggerExtraInfoLoad() {
|
|
370
|
+
var _a, _b;
|
|
371
|
+
//Init this.extraInfoRef, prepare for data loader, this.gameInfo did not inited might
|
|
372
|
+
this.extraInfoRef = this.extraInfoRef || ((_a = this.extraInfoSlotRef) === null || _a === void 0 ? void 0 : _a.querySelector(this.getGameCategoryType()));
|
|
373
|
+
(_b = this.extraInfoRef) === null || _b === void 0 ? void 0 : _b.onGameLoaded(this.gameInfo);
|
|
374
|
+
window.postMessage({
|
|
375
|
+
type: 'casinoGameLoaded',
|
|
376
|
+
gameInfo: this.gameInfo,
|
|
377
|
+
});
|
|
378
|
+
}
|
|
370
379
|
componentDidRender() {
|
|
371
380
|
// start custom styling area
|
|
372
381
|
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
@@ -376,13 +385,13 @@ export class CasinoGameThumbView {
|
|
|
376
385
|
this.setClientStylingURL();
|
|
377
386
|
this.limitStylingAppends = true;
|
|
378
387
|
}
|
|
379
|
-
// end custom styling area
|
|
388
|
+
// end custom styling area 500)
|
|
389
|
+
if (this.gameInfo) {
|
|
390
|
+
this.triggerExtraInfoLoad();
|
|
391
|
+
}
|
|
380
392
|
}
|
|
381
393
|
componentDidLoad() {
|
|
382
|
-
|
|
383
|
-
//Init this.extraInfoRef, prepare for data loader, this.gameInfo did not inited might
|
|
384
|
-
this.extraInfoRef = (_a = this.extraInfoSlotRef) === null || _a === void 0 ? void 0 : _a.querySelector(this.getGameCategoryType());
|
|
385
|
-
window.addEventListener("message", this.messageHandler);
|
|
394
|
+
window.addEventListener('message', this.messageHandler);
|
|
386
395
|
}
|
|
387
396
|
componentWillLoad() {
|
|
388
397
|
this.isLiveCasino = this.type == GAME_TYPE.LIVE_CASINO;
|
|
@@ -401,7 +410,6 @@ export class CasinoGameThumbView {
|
|
|
401
410
|
this.loadDetails &&
|
|
402
411
|
this.gameId) {
|
|
403
412
|
this.loadGameDetailInfo();
|
|
404
|
-
return;
|
|
405
413
|
}
|
|
406
414
|
return;
|
|
407
415
|
}
|
|
@@ -414,17 +422,18 @@ export class CasinoGameThumbView {
|
|
|
414
422
|
if (this.liveLobbyConnection) {
|
|
415
423
|
this.liveLobbyConnection.removeEventListener('message', this.gameDetailChangeHandler);
|
|
416
424
|
}
|
|
417
|
-
window.removeEventListener(
|
|
425
|
+
window.removeEventListener('message', this.messageHandler);
|
|
418
426
|
}
|
|
419
427
|
// end custom styling area
|
|
420
428
|
getWidgetTypeByGameCategory(gameCategory) {
|
|
421
429
|
return WIDGETTYPE_GAMECATEGORY[gameCategory.toLowerCase()];
|
|
422
430
|
}
|
|
423
431
|
getGameOverlayProps() {
|
|
432
|
+
var _a, _b;
|
|
424
433
|
return {
|
|
425
434
|
gameName: this.gameInfo.name,
|
|
426
435
|
gameId: this.gameInfo.gameId,
|
|
427
|
-
gameVendor: this.gameVendor || this.gameInfo.vendor.name,
|
|
436
|
+
gameVendor: this.gameVendor || ((_b = (_a = this.gameInfo) === null || _a === void 0 ? void 0 : _a.vendor) === null || _b === void 0 ? void 0 : _b.name),
|
|
428
437
|
hasFunMode: this.gameInfo.hasFunMode,
|
|
429
438
|
language: this.language,
|
|
430
439
|
integratedGameFrameMobile: this.integratedGameFrameMobile,
|
|
@@ -11,17 +11,18 @@ export class CasinoGameThumbnailExtrainfo {
|
|
|
11
11
|
async onGameLoaded(gameInfo) {
|
|
12
12
|
var _a;
|
|
13
13
|
this.gameInfo = gameInfo;
|
|
14
|
+
this.isNewGame = this.gameInfo.isNew;
|
|
15
|
+
this.gameTag = this.gameInfo.gameTag;
|
|
14
16
|
if (!this.gameInfo.details) {
|
|
15
17
|
return;
|
|
16
18
|
}
|
|
17
19
|
this.gameDetails = this.gameInfo.details;
|
|
18
|
-
this.isNewGame = this.gameInfo.isNew;
|
|
19
20
|
this.isDouble = !this.gameDetails
|
|
20
21
|
? false
|
|
21
22
|
: this.gameInfo.details.category.toLowerCase() ===
|
|
22
23
|
WIDGETTYPE_GAMECATEGORY.doubleballroulette;
|
|
23
24
|
this.gameTag = !this.gameDetails
|
|
24
|
-
?
|
|
25
|
+
? this.gameInfo.gameTag
|
|
25
26
|
: ((_a = this.gameInfo.advancedTags) === null || _a === void 0 ? void 0 : _a.length) > 0
|
|
26
27
|
? addGameTag(this.gameInfo.advancedTags)
|
|
27
28
|
: this.gameInfo.gameTag;
|