@everymatrix/casino-game-thumb-view 1.14.0 → 1.15.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.
Files changed (25) hide show
  1. package/dist/casino-game-thumb-view/casino-game-thumb-view.esm.js +1 -1
  2. package/dist/casino-game-thumb-view/p-662bd2b5.entry.js +7 -0
  3. package/dist/casino-game-thumb-view/p-ef53c961.entry.js +1 -0
  4. package/dist/cjs/casino-game-thumb-view.cjs.js +1 -1
  5. package/dist/cjs/casino-game-thumb-view_2.cjs.entry.js +18 -13
  6. package/dist/cjs/casino-game-thumbnail-betlimit_2.cjs.entry.js +3 -0
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/collection/components/casino-game-thumb-view/casino-game-thumb-view.js +20 -16
  9. package/dist/collection/components/casino-game-thumbnail-extrainfo/casino-game-thumbnail-extrainfo.js +3 -0
  10. package/dist/collection/components/casino-game-thumbnail-overlay/casino-game-thumbnail-overlay.js +24 -23
  11. package/dist/components/casino-game-thumb-view.js +15 -11
  12. package/dist/components/casino-game-thumbnail-extrainfo2.js +3 -0
  13. package/dist/components/casino-game-thumbnail-overlay2.js +9 -8
  14. package/dist/esm/casino-game-thumb-view.js +1 -1
  15. package/dist/esm/casino-game-thumb-view_2.entry.js +18 -13
  16. package/dist/esm/casino-game-thumbnail-betlimit_2.entry.js +3 -0
  17. package/dist/esm/loader.js +1 -1
  18. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/casino-game-thumb-view/.stencil/packages/casino-game-thumb-view/stencil.config.d.ts +2 -0
  19. package/dist/types/components/casino-game-thumb-view/casino-game-thumb-view.d.ts +8 -8
  20. package/dist/types/components/casino-game-thumbnail-overlay/casino-game-thumbnail-overlay.d.ts +7 -6
  21. package/dist/types/components.d.ts +22 -22
  22. package/package.json +1 -1
  23. package/dist/casino-game-thumb-view/p-5e1c958a.entry.js +0 -7
  24. package/dist/casino-game-thumb-view/p-eb23569d.entry.js +0 -1
  25. package/dist/types/Users/adrian.pripon/Documents/Work/stencil/widgets-stencil/packages/casino-game-thumb-view/.stencil/packages/casino-game-thumb-view/stencil.config.d.ts +0 -2
@@ -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-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)));
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-ef53c961",[[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-662bd2b5",[[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"]]],[4,"casino-game-thumbnail-overlay",{gamepageModalurl:[1,"gamepage-modalurl"],integratedGameframeMobile:[4,"integrated-gameframe-mobile"],integratedGameframeDesktop:[4,"integrated-gameframe-desktop"],language:[1],gameName:[1,"game-name"],gameVendor:[1,"game-vendor"],gameId:[8,"game-id"],hasFunMode:[4,"has-fun-mode"]}]]]],e)));
@@ -0,0 +1,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&&this.getWidgetTypeByGameCategory(this.gameCategory)?`casino-extrainfo-${this.getWidgetTypeByGameCategory(this.gameCategory).toLowerCase()}`:"casino-normal-game-thumbnail",this.getGameContainerClass=()=>{let e="GameContainer ";return this.gameInfo&&this.gameInfo&&this.gameInfo.details&&(e+=" ListGame ",this.gameInfo.details.isOpen&&this.gameInfo.details.currentRouletteNumbers&&(e+=" GameBackdrop ")),e}}onSessionChanged(){this.isUserLoggedIn=!(!this.session||!this.userId)}onTableFullChanged(e,t){null!=t&&(this.containerClassWhenDetailChange=e&&!t?"PulsatingRedShadow":"PulsatingGreenShadow")}handleMouseOver(e){this.hover="mouseenter"===e.type}gameFavoritedHandler(e){this.gameInfo.isFavorite=e.detail[this.gameId],this.gameInfo=Object.assign({},this.gameInfo)}connectLiveHandler(){this.toggleConnect()}visibilityConnectHandler(){this.toggleVisibilityConnect()}gameDetailChangeHandler(e){var t,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 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,"false"===this.gameInfo.gameTag&&(this.gameInfo.gameTag=null),this.gameTag=this.gameInfo.gameTag,this.gameInfo.details&&(this.gameDetails=this.gameInfo.details,this.isDouble=!!this.gameDetails&&this.gameInfo.details.category.toLowerCase()===o.doubleballroulette,this.gameTag=this.gameDetails&&(null===(i=this.gameInfo.advancedTags)||void 0===i?void 0:i.length)>0?a(this.gameInfo.advancedTags):this.gameInfo.gameTag,this.betLimit=this.gameDetails?this.gameDetails.betLimit:null,this.initTimeProperties())}initTimeProperties(){var e,i,t,a,s;"Bounded"===(null===(i=null===(e=this.gameDetails)||void 0===e?void 0:e.openHours)||void 0===i?void 0:i.type)&&(this.gameStartTime=null===(a=null===(t=this.gameDetails)||void 0===t?void 0:t.openHours)||void 0===a?void 0:a.value.startTime,this.gameTimeFormat=null===(s=this.gameDetails)||void 0===s?void 0:s.openHours.value.originalTimeFormat)}async onGameDetailUpdated(e){this.gameInfo.details=this.gameDetails=e,this.gameDetails=Object.assign({},this.gameDetails),this.initTimeProperties()}render(){var e,t,a;return this.gameInfo?i("div",{class:"GameExtraInfo",part:"GameExtraInfo"},this.isNewGame&&i("span",{class:"GameExtraInfoLabel NewGameTag",part:"GameExtraInfoLabel NewGameTag"},n("new",this.language)),this.gameTag&&i("span",{class:"GameExtraInfoLabel PopularGameTag",part:"GameExtraInfoLabel PopularGameTag"},this.gameTag),this.gameDetails&&i("div",{class:`GameProp LiveProps ${r[this.gameDetails.category.toLowerCase()]} ${this.isDouble?" Double":""}`,part:`GameProp LiveProps ${r[this.gameDetails.category.toLowerCase()]} ${this.isDouble?" Double":""}`},this.gameDetails.isOpen?i("slot",{name:"category-details"}):this.gameStartTime&&this.gameTimeFormat&&i("div",{class:"ClosedGame",part:"ClosedGame"},n("opens",this.language),i("span",null," ",s.utc(this.gameStartTime).local().format(this.gameTimeFormat)," ")),(null===(e=this.gameDetails.dealer)||void 0===e?void 0:e.DealerName)&&i("p",{class:"LiveLimits"},i("span",{class:"DealerName"},n("dealer",this.language),":"," ",null===(t=this.gameDetails)||void 0===t?void 0:t.dealer.DealerName," ")),i("casino-game-thumbnail-betlimit",{betLimit:this.betLimit,numberOfPlayers:null===(a=this.gameDetails)||void 0===a?void 0:a.numberOfPlayers}))):""}};c.style=':host{display:block;font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.LiveProps{display:flex;flex-direction:column;position:absolute;bottom:8px;left:-8px;right:0;width:100%;padding:0;background:linear-gradient(to top, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.3) 80%, rgba(0, 0, 0, 0.99) 100%);color:var(--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}
@@ -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",{"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
+ 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-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"]]],[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"]}]]]], options);
19
19
  });
@@ -1121,12 +1121,12 @@ const CasinoGameThumbView = class {
1121
1121
  /**
1122
1122
  * Widget Setting, show game in a frame when user clicked 'start'
1123
1123
  */
1124
- this.integratedGameFrameMobile = false;
1124
+ this.integratedGameframeMobile = false;
1125
1125
  /**
1126
1126
  * Widget Setting, show game in a frame when user clicked 'start', Open game aframe,
1127
- * gamepageModalUrl value should be set
1127
+ * gamepageModalurl value should be set
1128
1128
  */
1129
- this.integratedGameFrameDesktop = false;
1129
+ this.integratedGameframeDesktop = false;
1130
1130
  /**
1131
1131
  * Widget Setting, Load game details when set it as true, default value: false
1132
1132
  * When loadDetails is true and type=='live-casino-tables',
@@ -1172,7 +1172,9 @@ const CasinoGameThumbView = class {
1172
1172
  });
1173
1173
  };
1174
1174
  this.getGameCategoryType = () => {
1175
- if (this.isLiveCasino && this.gameCategory) {
1175
+ if (this.isLiveCasino &&
1176
+ this.gameCategory &&
1177
+ this.getWidgetTypeByGameCategory(this.gameCategory)) {
1176
1178
  return `casino-extrainfo-${this.getWidgetTypeByGameCategory(this.gameCategory).toLowerCase()}`;
1177
1179
  }
1178
1180
  return `casino-normal-game-thumbnail`;
@@ -1469,7 +1471,9 @@ const CasinoGameThumbView = class {
1469
1471
  triggerExtraInfoLoad() {
1470
1472
  var _a, _b;
1471
1473
  //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()));
1474
+ this.extraInfoRef =
1475
+ this.extraInfoRef ||
1476
+ ((_a = this.extraInfoSlotRef) === null || _a === void 0 ? void 0 : _a.querySelector(this.getGameCategoryType()));
1473
1477
  (_b = this.extraInfoRef) === null || _b === void 0 ? void 0 : _b.onGameLoaded(this.gameInfo);
1474
1478
  window.postMessage({
1475
1479
  type: 'casinoGameLoaded',
@@ -1536,9 +1540,9 @@ const CasinoGameThumbView = class {
1536
1540
  gameVendor: this.gameVendor || ((_b = (_a = this.gameInfo) === null || _a === void 0 ? void 0 : _a.vendor) === null || _b === void 0 ? void 0 : _b.name),
1537
1541
  hasFunMode: this.gameInfo.hasFunMode,
1538
1542
  language: this.language,
1539
- integratedGameFrameMobile: this.integratedGameFrameMobile,
1540
- integratedGameFrameDesktop: this.integratedGameFrameDesktop,
1541
- gamepageModalUrl: this.gamepageModalUrl,
1543
+ integratedGameframeMobile: this.integratedGameframeMobile,
1544
+ integratedGameframeDesktop: this.integratedGameframeDesktop,
1545
+ gamepageModalurl: this.gamepageModalurl,
1542
1546
  };
1543
1547
  }
1544
1548
  render() {
@@ -1571,13 +1575,14 @@ const CasinoGameThumbnailOverlay = class {
1571
1575
  index.registerInstance(this, hostRef);
1572
1576
  this.playClicked = index.createEvent(this, "playCasinoGame", 7);
1573
1577
  /**
1574
- * integratedGameFrameMobile
1578
+ * Widget Setting, show game in a frame when user clicked 'start', default: false
1575
1579
  */
1576
- this.integratedGameFrameMobile = false;
1580
+ this.integratedGameframeMobile = false;
1577
1581
  /**
1578
- * Open game a a frame, gamepagemodalurl value should be set
1582
+ * Widget Setting, show game in a frame when user clicked 'start', default: false
1583
+ * Open game in a frame, gamepageModalurl value should be set
1579
1584
  */
1580
- this.integratedGameFrameDesktop = false;
1585
+ this.integratedGameframeDesktop = false;
1581
1586
  /**
1582
1587
  * Language
1583
1588
  */
@@ -1590,7 +1595,7 @@ const CasinoGameThumbnailOverlay = class {
1590
1595
  gameId: this.gameId,
1591
1596
  isMobile: utils.isMobile(this.userAgent),
1592
1597
  };
1593
- let isFrameMode = this.integratedGameFrameMobile || this.integratedGameFrameDesktop;
1598
+ let isFrameMode = this.integratedGameframeMobile || this.integratedGameframeDesktop;
1594
1599
  window.postMessage({
1595
1600
  type: isFrameMode ? 'OpenGameFrame' : 'ShowGameModal',
1596
1601
  eventData: isFrameMode
@@ -224,6 +224,9 @@ const CasinoGameThumbnailExtrainfo = class {
224
224
  var _a;
225
225
  this.gameInfo = gameInfo;
226
226
  this.isNewGame = this.gameInfo.isNew;
227
+ if (this.gameInfo.gameTag === 'false') {
228
+ this.gameInfo.gameTag = null;
229
+ }
227
230
  this.gameTag = this.gameInfo.gameTag;
228
231
  if (!this.gameInfo.details) {
229
232
  return;
@@ -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",{"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);
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-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"]]],[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"]}]]]], options);
18
18
  });
19
19
  };
20
20
 
@@ -21,12 +21,12 @@ export class CasinoGameThumbView {
21
21
  /**
22
22
  * Widget Setting, show game in a frame when user clicked 'start'
23
23
  */
24
- this.integratedGameFrameMobile = false;
24
+ this.integratedGameframeMobile = false;
25
25
  /**
26
26
  * Widget Setting, show game in a frame when user clicked 'start', Open game aframe,
27
- * gamepageModalUrl value should be set
27
+ * gamepageModalurl value should be set
28
28
  */
29
- this.integratedGameFrameDesktop = false;
29
+ this.integratedGameframeDesktop = false;
30
30
  /**
31
31
  * Widget Setting, Load game details when set it as true, default value: false
32
32
  * When loadDetails is true and type=='live-casino-tables',
@@ -72,7 +72,9 @@ export class CasinoGameThumbView {
72
72
  });
73
73
  };
74
74
  this.getGameCategoryType = () => {
75
- if (this.isLiveCasino && this.gameCategory) {
75
+ if (this.isLiveCasino &&
76
+ this.gameCategory &&
77
+ this.getWidgetTypeByGameCategory(this.gameCategory)) {
76
78
  return `casino-extrainfo-${this.getWidgetTypeByGameCategory(this.gameCategory).toLowerCase()}`;
77
79
  }
78
80
  return `casino-normal-game-thumbnail`;
@@ -369,7 +371,9 @@ export class CasinoGameThumbView {
369
371
  triggerExtraInfoLoad() {
370
372
  var _a, _b;
371
373
  //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()));
374
+ this.extraInfoRef =
375
+ this.extraInfoRef ||
376
+ ((_a = this.extraInfoSlotRef) === null || _a === void 0 ? void 0 : _a.querySelector(this.getGameCategoryType()));
373
377
  (_b = this.extraInfoRef) === null || _b === void 0 ? void 0 : _b.onGameLoaded(this.gameInfo);
374
378
  window.postMessage({
375
379
  type: 'casinoGameLoaded',
@@ -436,9 +440,9 @@ export class CasinoGameThumbView {
436
440
  gameVendor: this.gameVendor || ((_b = (_a = this.gameInfo) === null || _a === void 0 ? void 0 : _a.vendor) === null || _b === void 0 ? void 0 : _b.name),
437
441
  hasFunMode: this.gameInfo.hasFunMode,
438
442
  language: this.language,
439
- integratedGameFrameMobile: this.integratedGameFrameMobile,
440
- integratedGameFrameDesktop: this.integratedGameFrameDesktop,
441
- gamepageModalUrl: this.gamepageModalUrl,
443
+ integratedGameframeMobile: this.integratedGameframeMobile,
444
+ integratedGameframeDesktop: this.integratedGameframeDesktop,
445
+ gamepageModalurl: this.gamepageModalurl,
442
446
  };
443
447
  }
444
448
  render() {
@@ -614,7 +618,7 @@ export class CasinoGameThumbView {
614
618
  "reflect": false,
615
619
  "defaultValue": "''"
616
620
  },
617
- "integratedGameFrameMobile": {
621
+ "integratedGameframeMobile": {
618
622
  "type": "boolean",
619
623
  "mutable": false,
620
624
  "complexType": {
@@ -628,11 +632,11 @@ export class CasinoGameThumbView {
628
632
  "tags": [],
629
633
  "text": "Widget Setting, show game in a frame when user clicked 'start'"
630
634
  },
631
- "attribute": "integrated-game-frame-mobile",
635
+ "attribute": "integrated-gameframe-mobile",
632
636
  "reflect": false,
633
637
  "defaultValue": "false"
634
638
  },
635
- "gamepageModalUrl": {
639
+ "gamepageModalurl": {
636
640
  "type": "string",
637
641
  "mutable": false,
638
642
  "complexType": {
@@ -644,12 +648,12 @@ export class CasinoGameThumbView {
644
648
  "optional": false,
645
649
  "docs": {
646
650
  "tags": [],
647
- "text": "Widget Setting, show game in a frame when user clicked 'start'\nthe frame url when integratedGameFrameDesktop is true"
651
+ "text": "Widget Setting, show game in a frame when user clicked 'start'\nthe frame url when integratedGameframeDesktop is true"
648
652
  },
649
- "attribute": "gamepage-modal-url",
653
+ "attribute": "gamepage-modalurl",
650
654
  "reflect": false
651
655
  },
652
- "integratedGameFrameDesktop": {
656
+ "integratedGameframeDesktop": {
653
657
  "type": "boolean",
654
658
  "mutable": false,
655
659
  "complexType": {
@@ -661,9 +665,9 @@ export class CasinoGameThumbView {
661
665
  "optional": false,
662
666
  "docs": {
663
667
  "tags": [],
664
- "text": "Widget Setting, show game in a frame when user clicked 'start', Open game aframe,\ngamepageModalUrl value should be set"
668
+ "text": "Widget Setting, show game in a frame when user clicked 'start', Open game aframe,\ngamepageModalurl value should be set"
665
669
  },
666
- "attribute": "integrated-game-frame-desktop",
670
+ "attribute": "integrated-gameframe-desktop",
667
671
  "reflect": false,
668
672
  "defaultValue": "false"
669
673
  },
@@ -12,6 +12,9 @@ export class CasinoGameThumbnailExtrainfo {
12
12
  var _a;
13
13
  this.gameInfo = gameInfo;
14
14
  this.isNewGame = this.gameInfo.isNew;
15
+ if (this.gameInfo.gameTag === 'false') {
16
+ this.gameInfo.gameTag = null;
17
+ }
15
18
  this.gameTag = this.gameInfo.gameTag;
16
19
  if (!this.gameInfo.details) {
17
20
  return;
@@ -4,13 +4,14 @@ import { translate } from '../../utils/locale.utils';
4
4
  export class CasinoGameThumbnailOverlay {
5
5
  constructor() {
6
6
  /**
7
- * integratedGameFrameMobile
7
+ * Widget Setting, show game in a frame when user clicked 'start', default: false
8
8
  */
9
- this.integratedGameFrameMobile = false;
9
+ this.integratedGameframeMobile = false;
10
10
  /**
11
- * Open game a a frame, gamepagemodalurl value should be set
11
+ * Widget Setting, show game in a frame when user clicked 'start', default: false
12
+ * Open game in a frame, gamepageModalurl value should be set
12
13
  */
13
- this.integratedGameFrameDesktop = false;
14
+ this.integratedGameframeDesktop = false;
14
15
  /**
15
16
  * Language
16
17
  */
@@ -23,7 +24,7 @@ export class CasinoGameThumbnailOverlay {
23
24
  gameId: this.gameId,
24
25
  isMobile: isMobile(this.userAgent),
25
26
  };
26
- let isFrameMode = this.integratedGameFrameMobile || this.integratedGameFrameDesktop;
27
+ let isFrameMode = this.integratedGameframeMobile || this.integratedGameframeDesktop;
27
28
  window.postMessage({
28
29
  type: isFrameMode ? 'OpenGameFrame' : 'ShowGameModal',
29
30
  eventData: isFrameMode
@@ -49,42 +50,42 @@ export class CasinoGameThumbnailOverlay {
49
50
  "$": ["casino-game-thumbnail-overlay.css"]
50
51
  }; }
51
52
  static get properties() { return {
52
- "integratedGameFrameMobile": {
53
- "type": "boolean",
53
+ "gamepageModalurl": {
54
+ "type": "string",
54
55
  "mutable": false,
55
56
  "complexType": {
56
- "original": "boolean",
57
- "resolved": "boolean",
57
+ "original": "string",
58
+ "resolved": "string",
58
59
  "references": {}
59
60
  },
60
61
  "required": false,
61
62
  "optional": false,
62
63
  "docs": {
63
64
  "tags": [],
64
- "text": "integratedGameFrameMobile"
65
+ "text": "Widget Setting, the frame url when integratedGameframeDesktop is true"
65
66
  },
66
- "attribute": "integrated-game-frame-mobile",
67
- "reflect": false,
68
- "defaultValue": "false"
67
+ "attribute": "gamepage-modalurl",
68
+ "reflect": false
69
69
  },
70
- "gamepageModalUrl": {
71
- "type": "string",
70
+ "integratedGameframeMobile": {
71
+ "type": "boolean",
72
72
  "mutable": false,
73
73
  "complexType": {
74
- "original": "string",
75
- "resolved": "string",
74
+ "original": "boolean",
75
+ "resolved": "boolean",
76
76
  "references": {}
77
77
  },
78
78
  "required": false,
79
79
  "optional": false,
80
80
  "docs": {
81
81
  "tags": [],
82
- "text": "the frame url when integratedGameFrameDesktop is true"
82
+ "text": "Widget Setting, show game in a frame when user clicked 'start', default: false"
83
83
  },
84
- "attribute": "gamepage-modal-url",
85
- "reflect": false
84
+ "attribute": "integrated-gameframe-mobile",
85
+ "reflect": false,
86
+ "defaultValue": "false"
86
87
  },
87
- "integratedGameFrameDesktop": {
88
+ "integratedGameframeDesktop": {
88
89
  "type": "boolean",
89
90
  "mutable": false,
90
91
  "complexType": {
@@ -96,9 +97,9 @@ export class CasinoGameThumbnailOverlay {
96
97
  "optional": false,
97
98
  "docs": {
98
99
  "tags": [],
99
- "text": "Open game a a frame, gamepagemodalurl value should be set"
100
+ "text": "Widget Setting, show game in a frame when user clicked 'start', default: false\nOpen game in a frame, gamepageModalurl value should be set"
100
101
  },
101
- "attribute": "integrated-game-frame-desktop",
102
+ "attribute": "integrated-gameframe-desktop",
102
103
  "reflect": false,
103
104
  "defaultValue": "false"
104
105
  },
@@ -1119,12 +1119,12 @@ const CasinoGameThumbView$1 = /*@__PURE__*/ proxyCustomElement(class extends HTM
1119
1119
  /**
1120
1120
  * Widget Setting, show game in a frame when user clicked 'start'
1121
1121
  */
1122
- this.integratedGameFrameMobile = false;
1122
+ this.integratedGameframeMobile = false;
1123
1123
  /**
1124
1124
  * Widget Setting, show game in a frame when user clicked 'start', Open game aframe,
1125
- * gamepageModalUrl value should be set
1125
+ * gamepageModalurl value should be set
1126
1126
  */
1127
- this.integratedGameFrameDesktop = false;
1127
+ this.integratedGameframeDesktop = false;
1128
1128
  /**
1129
1129
  * Widget Setting, Load game details when set it as true, default value: false
1130
1130
  * When loadDetails is true and type=='live-casino-tables',
@@ -1170,7 +1170,9 @@ const CasinoGameThumbView$1 = /*@__PURE__*/ proxyCustomElement(class extends HTM
1170
1170
  });
1171
1171
  };
1172
1172
  this.getGameCategoryType = () => {
1173
- if (this.isLiveCasino && this.gameCategory) {
1173
+ if (this.isLiveCasino &&
1174
+ this.gameCategory &&
1175
+ this.getWidgetTypeByGameCategory(this.gameCategory)) {
1174
1176
  return `casino-extrainfo-${this.getWidgetTypeByGameCategory(this.gameCategory).toLowerCase()}`;
1175
1177
  }
1176
1178
  return `casino-normal-game-thumbnail`;
@@ -1467,7 +1469,9 @@ const CasinoGameThumbView$1 = /*@__PURE__*/ proxyCustomElement(class extends HTM
1467
1469
  triggerExtraInfoLoad() {
1468
1470
  var _a, _b;
1469
1471
  //Init this.extraInfoRef, prepare for data loader, this.gameInfo did not inited might
1470
- this.extraInfoRef = this.extraInfoRef || ((_a = this.extraInfoSlotRef) === null || _a === void 0 ? void 0 : _a.querySelector(this.getGameCategoryType()));
1472
+ this.extraInfoRef =
1473
+ this.extraInfoRef ||
1474
+ ((_a = this.extraInfoSlotRef) === null || _a === void 0 ? void 0 : _a.querySelector(this.getGameCategoryType()));
1471
1475
  (_b = this.extraInfoRef) === null || _b === void 0 ? void 0 : _b.onGameLoaded(this.gameInfo);
1472
1476
  window.postMessage({
1473
1477
  type: 'casinoGameLoaded',
@@ -1534,9 +1538,9 @@ const CasinoGameThumbView$1 = /*@__PURE__*/ proxyCustomElement(class extends HTM
1534
1538
  gameVendor: this.gameVendor || ((_b = (_a = this.gameInfo) === null || _a === void 0 ? void 0 : _a.vendor) === null || _b === void 0 ? void 0 : _b.name),
1535
1539
  hasFunMode: this.gameInfo.hasFunMode,
1536
1540
  language: this.language,
1537
- integratedGameFrameMobile: this.integratedGameFrameMobile,
1538
- integratedGameFrameDesktop: this.integratedGameFrameDesktop,
1539
- gamepageModalUrl: this.gamepageModalUrl,
1541
+ integratedGameframeMobile: this.integratedGameframeMobile,
1542
+ integratedGameframeDesktop: this.integratedGameframeDesktop,
1543
+ gamepageModalurl: this.gamepageModalurl,
1540
1544
  };
1541
1545
  }
1542
1546
  render() {
@@ -1569,9 +1573,9 @@ const CasinoGameThumbView$1 = /*@__PURE__*/ proxyCustomElement(class extends HTM
1569
1573
  "showFavoredCategory": [4, "show-favored-category"],
1570
1574
  "clientStyling": [1, "client-styling"],
1571
1575
  "clientStylingUrl": [1, "client-styling-url"],
1572
- "integratedGameFrameMobile": [4, "integrated-game-frame-mobile"],
1573
- "gamepageModalUrl": [1, "gamepage-modal-url"],
1574
- "integratedGameFrameDesktop": [4, "integrated-game-frame-desktop"],
1576
+ "integratedGameframeMobile": [4, "integrated-gameframe-mobile"],
1577
+ "gamepageModalurl": [1, "gamepage-modalurl"],
1578
+ "integratedGameframeDesktop": [4, "integrated-gameframe-desktop"],
1575
1579
  "loadDetails": [4, "load-details"],
1576
1580
  "showRoundBoard": [4, "show-round-board"],
1577
1581
  "visibilityConnect": [1, "visibility-connect"],
@@ -17,6 +17,9 @@ const CasinoGameThumbnailExtrainfo = /*@__PURE__*/ proxyCustomElement(class exte
17
17
  var _a;
18
18
  this.gameInfo = gameInfo;
19
19
  this.isNewGame = this.gameInfo.isNew;
20
+ if (this.gameInfo.gameTag === 'false') {
21
+ this.gameInfo.gameTag = null;
22
+ }
20
23
  this.gameTag = this.gameInfo.gameTag;
21
24
  if (!this.gameInfo.details) {
22
25
  return;
@@ -10,13 +10,14 @@ const CasinoGameThumbnailOverlay = /*@__PURE__*/ proxyCustomElement(class extend
10
10
  this.__registerHost();
11
11
  this.playClicked = createEvent(this, "playCasinoGame", 7);
12
12
  /**
13
- * integratedGameFrameMobile
13
+ * Widget Setting, show game in a frame when user clicked 'start', default: false
14
14
  */
15
- this.integratedGameFrameMobile = false;
15
+ this.integratedGameframeMobile = false;
16
16
  /**
17
- * Open game a a frame, gamepagemodalurl value should be set
17
+ * Widget Setting, show game in a frame when user clicked 'start', default: false
18
+ * Open game in a frame, gamepageModalurl value should be set
18
19
  */
19
- this.integratedGameFrameDesktop = false;
20
+ this.integratedGameframeDesktop = false;
20
21
  /**
21
22
  * Language
22
23
  */
@@ -29,7 +30,7 @@ const CasinoGameThumbnailOverlay = /*@__PURE__*/ proxyCustomElement(class extend
29
30
  gameId: this.gameId,
30
31
  isMobile: isMobile(this.userAgent),
31
32
  };
32
- let isFrameMode = this.integratedGameFrameMobile || this.integratedGameFrameDesktop;
33
+ let isFrameMode = this.integratedGameframeMobile || this.integratedGameframeDesktop;
33
34
  window.postMessage({
34
35
  type: isFrameMode ? 'OpenGameFrame' : 'ShowGameModal',
35
36
  eventData: isFrameMode
@@ -41,9 +42,9 @@ const CasinoGameThumbnailOverlay = /*@__PURE__*/ proxyCustomElement(class extend
41
42
  }
42
43
  static get style() { return casinoGameThumbnailOverlayCss; }
43
44
  }, [4, "casino-game-thumbnail-overlay", {
44
- "integratedGameFrameMobile": [4, "integrated-game-frame-mobile"],
45
- "gamepageModalUrl": [1, "gamepage-modal-url"],
46
- "integratedGameFrameDesktop": [4, "integrated-game-frame-desktop"],
45
+ "gamepageModalurl": [1, "gamepage-modalurl"],
46
+ "integratedGameframeMobile": [4, "integrated-gameframe-mobile"],
47
+ "integratedGameframeDesktop": [4, "integrated-gameframe-desktop"],
47
48
  "language": [1],
48
49
  "gameName": [1, "game-name"],
49
50
  "gameVendor": [1, "game-vendor"],
@@ -13,5 +13,5 @@ const patchBrowser = () => {
13
13
  };
14
14
 
15
15
  patchBrowser().then(options => {
16
- return bootstrapLazy([["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]}]]],["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-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);
16
+ return bootstrapLazy([["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]}]]],["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"]]],[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"]}]]]], options);
17
17
  });
@@ -1117,12 +1117,12 @@ const CasinoGameThumbView = class {
1117
1117
  /**
1118
1118
  * Widget Setting, show game in a frame when user clicked 'start'
1119
1119
  */
1120
- this.integratedGameFrameMobile = false;
1120
+ this.integratedGameframeMobile = false;
1121
1121
  /**
1122
1122
  * Widget Setting, show game in a frame when user clicked 'start', Open game aframe,
1123
- * gamepageModalUrl value should be set
1123
+ * gamepageModalurl value should be set
1124
1124
  */
1125
- this.integratedGameFrameDesktop = false;
1125
+ this.integratedGameframeDesktop = false;
1126
1126
  /**
1127
1127
  * Widget Setting, Load game details when set it as true, default value: false
1128
1128
  * When loadDetails is true and type=='live-casino-tables',
@@ -1168,7 +1168,9 @@ const CasinoGameThumbView = class {
1168
1168
  });
1169
1169
  };
1170
1170
  this.getGameCategoryType = () => {
1171
- if (this.isLiveCasino && this.gameCategory) {
1171
+ if (this.isLiveCasino &&
1172
+ this.gameCategory &&
1173
+ this.getWidgetTypeByGameCategory(this.gameCategory)) {
1172
1174
  return `casino-extrainfo-${this.getWidgetTypeByGameCategory(this.gameCategory).toLowerCase()}`;
1173
1175
  }
1174
1176
  return `casino-normal-game-thumbnail`;
@@ -1465,7 +1467,9 @@ const CasinoGameThumbView = class {
1465
1467
  triggerExtraInfoLoad() {
1466
1468
  var _a, _b;
1467
1469
  //Init this.extraInfoRef, prepare for data loader, this.gameInfo did not inited might
1468
- this.extraInfoRef = this.extraInfoRef || ((_a = this.extraInfoSlotRef) === null || _a === void 0 ? void 0 : _a.querySelector(this.getGameCategoryType()));
1470
+ this.extraInfoRef =
1471
+ this.extraInfoRef ||
1472
+ ((_a = this.extraInfoSlotRef) === null || _a === void 0 ? void 0 : _a.querySelector(this.getGameCategoryType()));
1469
1473
  (_b = this.extraInfoRef) === null || _b === void 0 ? void 0 : _b.onGameLoaded(this.gameInfo);
1470
1474
  window.postMessage({
1471
1475
  type: 'casinoGameLoaded',
@@ -1532,9 +1536,9 @@ const CasinoGameThumbView = class {
1532
1536
  gameVendor: this.gameVendor || ((_b = (_a = this.gameInfo) === null || _a === void 0 ? void 0 : _a.vendor) === null || _b === void 0 ? void 0 : _b.name),
1533
1537
  hasFunMode: this.gameInfo.hasFunMode,
1534
1538
  language: this.language,
1535
- integratedGameFrameMobile: this.integratedGameFrameMobile,
1536
- integratedGameFrameDesktop: this.integratedGameFrameDesktop,
1537
- gamepageModalUrl: this.gamepageModalUrl,
1539
+ integratedGameframeMobile: this.integratedGameframeMobile,
1540
+ integratedGameframeDesktop: this.integratedGameframeDesktop,
1541
+ gamepageModalurl: this.gamepageModalurl,
1538
1542
  };
1539
1543
  }
1540
1544
  render() {
@@ -1567,13 +1571,14 @@ const CasinoGameThumbnailOverlay = class {
1567
1571
  registerInstance(this, hostRef);
1568
1572
  this.playClicked = createEvent(this, "playCasinoGame", 7);
1569
1573
  /**
1570
- * integratedGameFrameMobile
1574
+ * Widget Setting, show game in a frame when user clicked 'start', default: false
1571
1575
  */
1572
- this.integratedGameFrameMobile = false;
1576
+ this.integratedGameframeMobile = false;
1573
1577
  /**
1574
- * Open game a a frame, gamepagemodalurl value should be set
1578
+ * Widget Setting, show game in a frame when user clicked 'start', default: false
1579
+ * Open game in a frame, gamepageModalurl value should be set
1575
1580
  */
1576
- this.integratedGameFrameDesktop = false;
1581
+ this.integratedGameframeDesktop = false;
1577
1582
  /**
1578
1583
  * Language
1579
1584
  */
@@ -1586,7 +1591,7 @@ const CasinoGameThumbnailOverlay = class {
1586
1591
  gameId: this.gameId,
1587
1592
  isMobile: isMobile(this.userAgent),
1588
1593
  };
1589
- let isFrameMode = this.integratedGameFrameMobile || this.integratedGameFrameDesktop;
1594
+ let isFrameMode = this.integratedGameframeMobile || this.integratedGameframeDesktop;
1590
1595
  window.postMessage({
1591
1596
  type: isFrameMode ? 'OpenGameFrame' : 'ShowGameModal',
1592
1597
  eventData: isFrameMode
@@ -220,6 +220,9 @@ const CasinoGameThumbnailExtrainfo = class {
220
220
  var _a;
221
221
  this.gameInfo = gameInfo;
222
222
  this.isNewGame = this.gameInfo.isNew;
223
+ if (this.gameInfo.gameTag === 'false') {
224
+ this.gameInfo.gameTag = null;
225
+ }
223
226
  this.gameTag = this.gameInfo.gameTag;
224
227
  if (!this.gameInfo.details) {
225
228
  return;
@@ -10,7 +10,7 @@ const patchEsm = () => {
10
10
  const defineCustomElements = (win, options) => {
11
11
  if (typeof window === 'undefined') return Promise.resolve();
12
12
  return patchEsm().then(() => {
13
- return bootstrapLazy([["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]}]]],["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-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);
13
+ return bootstrapLazy([["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]}]]],["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"]]],[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"]}]]]], options);
14
14
  });
15
15
  };
16
16
 
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -40,17 +40,17 @@ export declare class CasinoGameThumbView {
40
40
  /**
41
41
  * Widget Setting, show game in a frame when user clicked 'start'
42
42
  */
43
- integratedGameFrameMobile: boolean;
43
+ integratedGameframeMobile: boolean;
44
44
  /**
45
45
  * Widget Setting, show game in a frame when user clicked 'start'
46
- * the frame url when integratedGameFrameDesktop is true
46
+ * the frame url when integratedGameframeDesktop is true
47
47
  */
48
- gamepageModalUrl: string;
48
+ gamepageModalurl: string;
49
49
  /**
50
50
  * Widget Setting, show game in a frame when user clicked 'start', Open game aframe,
51
- * gamepageModalUrl value should be set
51
+ * gamepageModalurl value should be set
52
52
  */
53
- integratedGameFrameDesktop: boolean;
53
+ integratedGameframeDesktop: boolean;
54
54
  /**
55
55
  * Widget Setting, Load game details when set it as true, default value: false
56
56
  * When loadDetails is true and type=='live-casino-tables',
@@ -213,9 +213,9 @@ export declare class CasinoGameThumbView {
213
213
  gameVendor: string;
214
214
  hasFunMode: boolean;
215
215
  language: string;
216
- integratedGameFrameMobile: boolean;
217
- integratedGameFrameDesktop: boolean;
218
- gamepageModalUrl: string;
216
+ integratedGameframeMobile: boolean;
217
+ integratedGameframeDesktop: boolean;
218
+ gamepageModalurl: string;
219
219
  };
220
220
  render(): any;
221
221
  }
@@ -5,17 +5,18 @@ export declare class CasinoGameThumbnailOverlay {
5
5
  */
6
6
  playClicked: EventEmitter<string | number>;
7
7
  /**
8
- * integratedGameFrameMobile
8
+ * Widget Setting, the frame url when integratedGameframeDesktop is true
9
9
  */
10
- integratedGameFrameMobile: boolean;
10
+ gamepageModalurl: string;
11
11
  /**
12
- * the frame url when integratedGameFrameDesktop is true
12
+ * Widget Setting, show game in a frame when user clicked 'start', default: false
13
13
  */
14
- gamepageModalUrl: string;
14
+ integratedGameframeMobile: boolean;
15
15
  /**
16
- * Open game a a frame, gamepagemodalurl value should be set
16
+ * Widget Setting, show game in a frame when user clicked 'start', default: false
17
+ * Open game in a frame, gamepageModalurl value should be set
17
18
  */
18
- integratedGameFrameDesktop: boolean;
19
+ integratedGameframeDesktop: boolean;
19
20
  /**
20
21
  * Language
21
22
  */
@@ -82,9 +82,9 @@ export namespace Components {
82
82
  */
83
83
  "gameVendor": string;
84
84
  /**
85
- * Widget Setting, show game in a frame when user clicked 'start' the frame url when integratedGameFrameDesktop is true
85
+ * Widget Setting, show game in a frame when user clicked 'start' the frame url when integratedGameframeDesktop is true
86
86
  */
87
- "gamepageModalUrl": string;
87
+ "gamepageModalurl": string;
88
88
  /**
89
89
  * Game Property, hasAnonymousFunMode
90
90
  */
@@ -94,13 +94,13 @@ export namespace Components {
94
94
  */
95
95
  "hasFunMode": boolean;
96
96
  /**
97
- * Widget Setting, show game in a frame when user clicked 'start', Open game aframe, gamepageModalUrl value should be set
97
+ * Widget Setting, show game in a frame when user clicked 'start', Open game aframe, gamepageModalurl value should be set
98
98
  */
99
- "integratedGameFrameDesktop": boolean;
99
+ "integratedGameframeDesktop": boolean;
100
100
  /**
101
101
  * Widget Setting, show game in a frame when user clicked 'start'
102
102
  */
103
- "integratedGameFrameMobile": boolean;
103
+ "integratedGameframeMobile": boolean;
104
104
  /**
105
105
  * Game Property, is Game Favorited
106
106
  */
@@ -182,18 +182,18 @@ export namespace Components {
182
182
  "gameName": string;
183
183
  "gameVendor": string;
184
184
  /**
185
- * the frame url when integratedGameFrameDesktop is true
185
+ * Widget Setting, the frame url when integratedGameframeDesktop is true
186
186
  */
187
- "gamepageModalUrl": string;
187
+ "gamepageModalurl": string;
188
188
  "hasFunMode": boolean;
189
189
  /**
190
- * Open game a a frame, gamepagemodalurl value should be set
190
+ * Widget Setting, show game in a frame when user clicked 'start', default: false Open game in a frame, gamepageModalurl value should be set
191
191
  */
192
- "integratedGameFrameDesktop": boolean;
192
+ "integratedGameframeDesktop": boolean;
193
193
  /**
194
- * integratedGameFrameMobile
194
+ * Widget Setting, show game in a frame when user clicked 'start', default: false
195
195
  */
196
- "integratedGameFrameMobile": boolean;
196
+ "integratedGameframeMobile": boolean;
197
197
  /**
198
198
  * Language
199
199
  */
@@ -329,9 +329,9 @@ declare namespace LocalJSX {
329
329
  */
330
330
  "gameVendor"?: string;
331
331
  /**
332
- * Widget Setting, show game in a frame when user clicked 'start' the frame url when integratedGameFrameDesktop is true
332
+ * Widget Setting, show game in a frame when user clicked 'start' the frame url when integratedGameframeDesktop is true
333
333
  */
334
- "gamepageModalUrl"?: string;
334
+ "gamepageModalurl"?: string;
335
335
  /**
336
336
  * Game Property, hasAnonymousFunMode
337
337
  */
@@ -341,13 +341,13 @@ declare namespace LocalJSX {
341
341
  */
342
342
  "hasFunMode"?: boolean;
343
343
  /**
344
- * Widget Setting, show game in a frame when user clicked 'start', Open game aframe, gamepageModalUrl value should be set
344
+ * Widget Setting, show game in a frame when user clicked 'start', Open game aframe, gamepageModalurl value should be set
345
345
  */
346
- "integratedGameFrameDesktop"?: boolean;
346
+ "integratedGameframeDesktop"?: boolean;
347
347
  /**
348
348
  * Widget Setting, show game in a frame when user clicked 'start'
349
349
  */
350
- "integratedGameFrameMobile"?: boolean;
350
+ "integratedGameframeMobile"?: boolean;
351
351
  /**
352
352
  * Game Property, is Game Favorited
353
353
  */
@@ -428,18 +428,18 @@ declare namespace LocalJSX {
428
428
  "gameName"?: string;
429
429
  "gameVendor"?: string;
430
430
  /**
431
- * the frame url when integratedGameFrameDesktop is true
431
+ * Widget Setting, the frame url when integratedGameframeDesktop is true
432
432
  */
433
- "gamepageModalUrl"?: string;
433
+ "gamepageModalurl"?: string;
434
434
  "hasFunMode"?: boolean;
435
435
  /**
436
- * Open game a a frame, gamepagemodalurl value should be set
436
+ * Widget Setting, show game in a frame when user clicked 'start', default: false Open game in a frame, gamepageModalurl value should be set
437
437
  */
438
- "integratedGameFrameDesktop"?: boolean;
438
+ "integratedGameframeDesktop"?: boolean;
439
439
  /**
440
- * integratedGameFrameMobile
440
+ * Widget Setting, show game in a frame when user clicked 'start', default: false
441
441
  */
442
- "integratedGameFrameMobile"?: boolean;
442
+ "integratedGameframeMobile"?: boolean;
443
443
  /**
444
444
  * Language
445
445
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-game-thumb-view",
3
- "version": "1.14.0",
3
+ "version": "1.15.0",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -1,7 +0,0 @@
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}
@@ -1 +0,0 @@
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}
@@ -1,2 +0,0 @@
1
- import { Config } from '../../../../../../../../../../../stencil-public-runtime';
2
- export declare const config: Config;