@everymatrix/casino-header-controller-nd 1.61.0 → 1.62.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoHamburgerMenuNd-azOmHCTA.js → CasinoHamburgerMenuNd--v-LS_32.js} +888 -866
- package/components/{CasinoHamburgerMenuNd-CZA4sDmV.js → CasinoHamburgerMenuNd-CynOfgCi.js} +874 -852
- package/components/{CasinoHamburgerMenuNd-qmZhX_6z.cjs → CasinoHamburgerMenuNd-DWRsBVV8.cjs} +5 -5
- package/components/{CasinoHeaderControllerNd-BUea0Loe.js → CasinoHeaderControllerNd-BSXw10r3.js} +552 -570
- package/components/{CasinoHeaderControllerNd-MZvizOc8.cjs → CasinoHeaderControllerNd-CaGtPYb_.cjs} +1 -1
- package/components/{CasinoHeaderControllerNd-BmdC4fbv.js → CasinoHeaderControllerNd-DWovu05C.js} +550 -568
- package/components/PlayerAccountBalanceModalNd-DHS4EiDT.js +1556 -0
- package/components/PlayerAccountBalanceModalNd-Ngc7csLH.js +1585 -0
- package/components/PlayerAccountBalanceModalNd-rbgsZoYF.cjs +13 -0
- package/components/{PlayerDeposit-Dy0I1IiH.js → PlayerDeposit-BTUc7VwV.js} +77 -77
- package/components/{PlayerDeposit-DzcKfjiZ.js → PlayerDeposit-CIkwXyuE.js} +77 -77
- package/components/PlayerDeposit-DICh9OXT.cjs +1 -0
- package/es2015/casino-header-controller-nd.cjs +1 -1
- package/es2015/casino-header-controller-nd.js +1 -1
- package/esnext/casino-header-controller-nd.js +1 -1
- package/package.json +1 -1
- package/stencil/{gamification-dropdown-8eb8a896-B8CcqKs3.cjs → gamification-dropdown-8eb8a896-cKQI7KOv.cjs} +1 -1
- package/stencil/{gamification-dropdown-8eb8a896-CNDebAQo.js → gamification-dropdown-8eb8a896-txnj_mSw.js} +1 -1
- package/stencil/{gamification-dropdown-8eb8a896-B5TUPoPs.js → gamification-dropdown-8eb8a896-u5btxGNb.js} +1 -1
- package/stencil/{gamification-dropdown-ROV-YtuT.js → gamification-dropdown-AXnIBZGr.js} +1 -1
- package/stencil/{gamification-dropdown-DZcPN6so.js → gamification-dropdown-CThmjz5c.js} +1 -1
- package/stencil/{gamification-dropdown-DGdDiJCt.cjs → gamification-dropdown-CjOxbJA2.cjs} +1 -1
- package/stencil/{gamification-dropdown_4-C304wJye.js → gamification-dropdown_4-C3TSeQG8.js} +4 -4
- package/stencil/gamification-dropdown_4-CO7vZzDH.cjs +192 -0
- package/stencil/{gamification-dropdown_4-BskNa0nU.js → gamification-dropdown_4-DtHO1RaT.js} +4 -4
- package/stencil/{index-71b1bdfa-BNR9dJmZ.js → index-71b1bdfa-28u_D-DT.js} +268 -264
- package/stencil/index-71b1bdfa-CLy6cikP.js +757 -0
- package/stencil/index-71b1bdfa-CpwYbS6b.cjs +1 -0
- package/stencil/index-b7bbd57e-Cgb8WuPm.cjs +1 -0
- package/stencil/index-b7bbd57e-DHOmwG9M.js +550 -0
- package/stencil/index-b7bbd57e-vLItFRw3.js +534 -0
- package/stencil/{player-elevate-card-WtXwQ6BK.js → player-elevate-card-B002wYul.js} +2 -2
- package/stencil/{player-elevate-card-D_EV-YVW.js → player-elevate-card-DtTuAooa.js} +2 -2
- package/stencil/{player-elevate-card-Da18eACv.cjs → player-elevate-card-NVJ1tyn-.cjs} +1 -1
- package/stencil/{player-elevate-card-items-66be34fb-C8y5xd3m.js → player-elevate-card-items-66be34fb-C3fGBNsZ.js} +13 -11
- package/stencil/player-elevate-card-items-66be34fb-CFw6-30L.cjs +1 -0
- package/stencil/{player-elevate-card-items-66be34fb-Bl4Mdtm2.js → player-elevate-card-items-66be34fb-DIaZKUPZ.js} +13 -11
- package/stencil/{player-elevate-pointcard-Akuofz_v.cjs → player-elevate-pointcard-Ci6rphS3.cjs} +1 -1
- package/stencil/{player-elevate-pointcard-DEGlZBo6.js → player-elevate-pointcard-DZEaqOhV.js} +2 -2
- package/stencil/{player-elevate-pointcard-DGdQLOFe.js → player-elevate-pointcard-DpnCGgi8.js} +2 -2
- package/stencil/{player-rakeback-card-CHzbUYFI.js → player-rakeback-card-BpL3lkfi.js} +1 -1
- package/stencil/{player-rakeback-card-CNHOtnA1.cjs → player-rakeback-card-DBtdbjzD.cjs} +1 -1
- package/stencil/{player-rakeback-card-CMKK-24q.js → player-rakeback-card-DQhoczwz.js} +1 -1
- package/stencil/{ui-image-38c3c15f-CU1ywcHb.js → ui-image-38c3c15f-BMSjUaYN.js} +1 -1
- package/stencil/{ui-image-38c3c15f-CcD_UoUz.js → ui-image-38c3c15f-BmqlDnWt.js} +1 -1
- package/stencil/{ui-image-38c3c15f-DyocW4AI.cjs → ui-image-38c3c15f-CZmv085J.cjs} +1 -1
- package/stencil/{ui-image-DojtQOUU.cjs → ui-image-B7RTPzpA.cjs} +1 -1
- package/stencil/{ui-image-XwYuw0CU.js → ui-image-BRij37_c.js} +2 -2
- package/stencil/{ui-image-CJrl4zi3.js → ui-image-C_C-Wh69.js} +2 -2
- package/components/PlayerAccountBalanceModalNd-Bd1_bakH.js +0 -1585
- package/components/PlayerAccountBalanceModalNd-BtdiPM1c.js +0 -1556
- package/components/PlayerAccountBalanceModalNd-D1g7LThU.cjs +0 -13
- package/components/PlayerDeposit-bQDe9XqC.cjs +0 -1
- package/stencil/gamification-dropdown_4-Blt8-SSN.cjs +0 -192
- package/stencil/index-71b1bdfa-BcIWqICi.js +0 -753
- package/stencil/index-71b1bdfa-DJwBo2rv.cjs +0 -1
- package/stencil/index-b7bbd57e-BFgdpe0Q.js +0 -534
- package/stencil/index-b7bbd57e-BOZ0tl_c.js +0 -550
- package/stencil/index-b7bbd57e-DHSG1zh1.cjs +0 -1
- package/stencil/player-elevate-card-items-66be34fb-DARKYMdQ.cjs +0 -1
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";var at=Object.defineProperty,ot=Object.defineProperties;var rt=Object.getOwnPropertyDescriptors;var He=Object.getOwnPropertySymbols;var it=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable;var ze=(r,n,a)=>n in r?at(r,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[n]=a,Ue=(r,n)=>{for(var a in n||(n={}))it.call(n,a)&&ze(r,a,n[a]);if(He)for(var a of He(n))lt.call(n,a)&&ze(r,a,n[a]);return r},Pe=(r,n)=>ot(r,rt(n));var Xe=(r,n,a)=>new Promise((l,u)=>{var d=y=>{try{h(a.next(y))}catch(v){u(v)}},g=y=>{try{h(a.throw(y))}catch(v){u(v)}},h=y=>y.done?l(y.value):Promise.resolve(y.value).then(d,g);h((a=a.apply(r,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoHamburgerMenuNd-qmZhX_6z.cjs");function Ge(r,n){t.addMessages(r,n)}function st(r){t.$locale.set(r)}const qe={en:{Title:"Your Balance",Total:"Total Balance",Real:"Cash Balance",Bonus:"Bonus Balance",Credit:"Credit Balance",Casino:"Casino",Sports:"Sports",DepositButton:"Deposit",Loading:"Loading ..."},"zh-hk":{Title:"您的結餘",Total:"總結餘",Real:"現金結餘",Bonus:"紅利結餘",Credit:"信用結餘",Casino:"賭場",Sports:"體育",DepositButton:"存款",Loading:"載入中 ..."},de:{Title:"Ihr Guthaben",Total:"Gesamtguthaben",Real:"Barguthaben",Bonus:"Bonusguthaben",Credit:"Kreditguthaben",Casino:"Casino",Sports:"Sport",DepositButton:"Einzahlen",Loading:"Wird geladen ..."},it:{Title:"Il tuo saldo",Total:"Saldo totale",Real:"Saldo in contanti",Bonus:"Saldo bonus",Credit:"Saldo di credito",Casino:"Casinò",Sports:"Sport",DepositButton:"Deposita",Loading:"Caricamento ..."},fr:{Title:"Votre solde",Total:"Solde total",Real:"Solde en espèces",Bonus:"Solde bonus",Credit:"Solde de crédit",Casino:"Casino",Sports:"Sports",DepositButton:"Dépôt",Loading:"Chargement ..."},es:{Title:"Tu saldo",Total:"Saldo total",Real:"Saldo en efectivo",Bonus:"Saldo de bono",Credit:"Saldo de crédito",Casino:"Casino",Sports:"Deportes",DepositButton:"Depósito",Loading:"Cargando ..."},tr:{Title:"Bakiyeniz",Total:"Toplam Bakiye",Real:"Nakit Bakiye",Bonus:"Bonus Bakiyesi",Credit:"Kredi Bakiyesi",Casino:"Kumarhane",Sports:"Spor",DepositButton:"Yatır",Loading:"Yükleniyor ..."},ru:{Title:"Ваш баланс",Total:"Общий баланс",Real:"Денежный баланс",Bonus:"Бонусный баланс",Credit:"Кредитный баланс",Casino:"Казино",Sports:"Спорт",DepositButton:"Депозит",Loading:"Загружается ..."},ro:{Title:"Soldul tău",Total:"Sold total",Real:"Sold în numerar",Bonus:"Sold bonus",Credit:"Sold credit",Casino:"Cazinou",Sports:"Sporturi",DepositButton:"Depozit",Loading:"Se încarcă ..."},hr:{Title:"Vaš saldo",Total:"Ukupni saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Casino",Sports:"Sportovi",DepositButton:"Depozit",Loading:"Učitavanje ..."},hu:{Title:"Az egyenleged",Total:"Teljes egyenleg",Real:"Készpénz egyenleg",Bonus:"Bónusz egyenleg",Credit:"Hitel egyenleg",Casino:"Kaszinó",Sports:"Sport",DepositButton:"Befizetés",Loading:"Betöltés ..."},pl:{Title:"Twoje saldo",Total:"Całkowite saldo",Real:"Saldo gotówkowe",Bonus:"Saldo bonusowe",Credit:"Saldo kredytowe",Casino:"Kasyno",Sports:"Sport",DepositButton:"Wpłać",Loading:"Ładowanie ..."},pt:{Title:"Seu Saldo",Total:"Saldo Total",Real:"Saldo em Dinheiro",Bonus:"Saldo de Bônus",Credit:"Saldo de Crédito",Casino:"Cassino",Sports:"Esportes",DepositButton:"Depositar",Loading:"Carregando ..."},sl:{Title:"Vaš saldo",Total:"Skupni saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Kasino",Sports:"Šport",DepositButton:"Depozit",Loading:"Nalaganje ..."},sr:{Title:"Vaš saldo",Total:"Ukupan saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Kasino",Sports:"Sport",DepositButton:"Depozit",Loading:"Učitavanje ..."},"pt-br":{Title:"Seu Saldo",Total:"Saldo Total",Real:"Saldo em Dinheiro",Bonus:"Saldo de Bônus",Credit:"Saldo de Crédito",Casino:"Cassino",Sports:"Esportes",DepositButton:"Depositar",Loading:"Carregando ..."},"es-mx":{Title:"Tu saldo",Total:"Saldo total",Real:"Saldo en efectivo",Bonus:"Saldo de bono",Credit:"Saldo de crédito",Casino:"Casino",Sports:"Deportes",DepositButton:"Depósito",Loading:"Cargando ..."},"en-us":{Title:"Your Balance",Total:"Total Balance",Real:"Cash Balance",Bonus:"Bonus Balance",Credit:"Credit Balance",Casino:"Casino",Sports:"Sports",DepositButton:"Deposit",Loading:"Loading ..."}};var Ie={exports:{}};/** @license
|
|
2
|
-
* eventsource.js
|
|
3
|
-
* Available under MIT License (MIT)
|
|
4
|
-
* https://github.com/Yaffle/EventSource/
|
|
5
|
-
*/(function(r,n){(function(a){var l=a.setTimeout,u=a.clearTimeout,d=a.XMLHttpRequest,g=a.XDomainRequest,h=a.ActiveXObject,y=a.EventSource,v=a.document,_=a.Promise,M=a.fetch,D=a.Response,O=a.TextDecoder,F=a.TextEncoder,R=a.AbortController;if(typeof window!="undefined"&&typeof v!="undefined"&&!("readyState"in v)&&v.body==null&&(v.readyState="loading",window.addEventListener("load",function(e){v.readyState="complete"},!1)),d==null&&h!=null&&(d=function(){return new h("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(e){function i(){}return i.prototype=e,new i}),Date.now||(Date.now=function(){return new Date().getTime()}),R==null){var b=M;M=function(e,i){var s=i.signal;return b(e,{headers:i.headers,credentials:i.credentials,cache:i.cache}).then(function(o){var m=o.body.getReader();return s._reader=m,s._aborted&&s._reader.cancel(),{status:o.status,statusText:o.statusText,headers:o.headers,body:{getReader:function(){return m}}}})},R=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function T(){this.bitsNeeded=0,this.codePoint=0}T.prototype.decode=function(e){function i(A,E,w){if(w===1)return A>=128>>E&&A<<E<=2047;if(w===2)return A>=2048>>E&&A<<E<=55295||A>=57344>>E&&A<<E<=65535;if(w===3)return A>=65536>>E&&A<<E<=1114111;throw new Error}function s(A,E){if(A===6*1)return E>>6>15?3:E>31?2:1;if(A===6*2)return E>15?3:2;if(A===6*3)return 3;throw new Error}for(var o=65533,m="",p=this.bitsNeeded,c=this.codePoint,C=0;C<e.length;C+=1){var B=e[C];p!==0&&(B<128||B>191||!i(c<<6|B&63,p-6,s(p,c)))&&(p=0,c=o,m+=String.fromCharCode(c)),p===0?(B>=0&&B<=127?(p=0,c=B):B>=192&&B<=223?(p=6*1,c=B&31):B>=224&&B<=239?(p=6*2,c=B&15):B>=240&&B<=247?(p=6*3,c=B&7):(p=0,c=o),p!==0&&!i(c,p,s(p,c))&&(p=0,c=o)):(p-=6,c=c<<6|B&63),p===0&&(c<=65535?m+=String.fromCharCode(c):(m+=String.fromCharCode(55296+(c-65535-1>>10)),m+=String.fromCharCode(56320+(c-65535-1&1023))))}return this.bitsNeeded=p,this.codePoint=c,m};var j=function(){try{return new O().decode(new F().encode("test"),{stream:!0})==="test"}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}return!1};(O==null||F==null||!j())&&(O=T);var L=function(){};function I(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=L,this.onload=L,this.onerror=L,this.onreadystatechange=L,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=L}I.prototype.open=function(e,i){this._abort(!0);var s=this,o=this._xhr,m=1,p=0;this._abort=function(w){s._sendTimeout!==0&&(u(s._sendTimeout),s._sendTimeout=0),(m===1||m===2||m===3)&&(m=4,o.onload=L,o.onerror=L,o.onabort=L,o.onprogress=L,o.onreadystatechange=L,o.abort(),p!==0&&(u(p),p=0),w||(s.readyState=4,s.onabort(null),s.onreadystatechange())),m=0};var c=function(){if(m===1){var w=0,N="",ae=void 0;if("contentType"in o)w=200,N="OK",ae=o.contentType;else try{w=o.status,N=o.statusText,ae=o.getResponseHeader("Content-Type")}catch(Te){w=0,N="",ae=void 0}w!==0&&(m=2,s.readyState=2,s.status=w,s.statusText=N,s._contentType=ae,s.onreadystatechange())}},C=function(){if(c(),m===2||m===3){m=3;var w="";try{w=o.responseText}catch(N){}s.readyState=3,s.responseText=w,s.onprogress()}},B=function(w,N){if((N==null||N.preventDefault==null)&&(N={preventDefault:L}),C(),m===1||m===2||m===3){if(m=4,p!==0&&(u(p),p=0),s.readyState=4,w==="load")s.onload(N);else if(w==="error")s.onerror(N);else if(w==="abort")s.onabort(N);else throw new TypeError;s.onreadystatechange()}},A=function(w){o!=null&&(o.readyState===4?(!("onload"in o)||!("onerror"in o)||!("onabort"in o))&&B(o.responseText===""?"error":"load",w):o.readyState===3?"onprogress"in o||C():o.readyState===2&&c())},E=function(){p=l(function(){E()},500),o.readyState===3&&C()};"onload"in o&&(o.onload=function(w){B("load",w)}),"onerror"in o&&(o.onerror=function(w){B("error",w)}),"onabort"in o&&(o.onabort=function(w){B("abort",w)}),"onprogress"in o&&(o.onprogress=C),"onreadystatechange"in o&&(o.onreadystatechange=function(w){A(w)}),("contentType"in o||!("ontimeout"in d.prototype))&&(i+=(i.indexOf("?")===-1?"?":"&")+"padding=true"),o.open(e,i,!0),"readyState"in o&&(p=l(function(){E()},0))},I.prototype.abort=function(){this._abort(!1)},I.prototype.getResponseHeader=function(e){return this._contentType},I.prototype.setRequestHeader=function(e,i){var s=this._xhr;"setRequestHeader"in s&&s.setRequestHeader(e,i)},I.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},I.prototype.send=function(){if((!("ontimeout"in d.prototype)||!("sendAsBinary"in d.prototype)&&!("mozAnon"in d.prototype))&&v!=null&&v.readyState!=null&&v.readyState!=="complete"){var e=this;e._sendTimeout=l(function(){e._sendTimeout=0,e.send()},4);return}var i=this._xhr;"withCredentials"in i&&(i.withCredentials=this.withCredentials);try{i.send(void 0)}catch(s){throw s}};function te(e){return e.replace(/[A-Z]/g,function(i){return String.fromCharCode(i.charCodeAt(0)+32)})}function Q(e){for(var i=Object.create(null),s=e.split(`\r
|
|
6
|
-
`),o=0;o<s.length;o+=1){var m=s[o],p=m.split(": "),c=p.shift(),C=p.join(": ");i[te(c)]=C}this._map=i}Q.prototype.get=function(e){return this._map[te(e)]},d!=null&&d.HEADERS_RECEIVED==null&&(d.HEADERS_RECEIVED=2);function q(){}q.prototype.open=function(e,i,s,o,m,p,c){e.open("GET",m);var C=0;e.onprogress=function(){var A=e.responseText,E=A.slice(C);C+=E.length,s(E)},e.onerror=function(A){A.preventDefault(),o(new Error("NetworkError"))},e.onload=function(){o(null)},e.onabort=function(){o(null)},e.onreadystatechange=function(){if(e.readyState===d.HEADERS_RECEIVED){var A=e.status,E=e.statusText,w=e.getResponseHeader("Content-Type"),N=e.getAllResponseHeaders();i(A,E,w,new Q(N))}},e.withCredentials=p;for(var B in c)Object.prototype.hasOwnProperty.call(c,B)&&e.setRequestHeader(B,c[B]);return e.send(),e};function k(e){this._headers=e}k.prototype.get=function(e){return this._headers.get(e)};function S(){}S.prototype.open=function(e,i,s,o,m,p,c){var C=null,B=new R,A=B.signal,E=new O;return M(m,{headers:c,credentials:p?"include":"same-origin",signal:A,cache:"no-store"}).then(function(w){return C=w.body.getReader(),i(w.status,w.statusText,w.headers.get("Content-Type"),new k(w.headers)),new _(function(N,ae){var Te=function(){C.read().then(function(W){if(W.done)N(void 0);else{var P=E.decode(W.value,{stream:!0});s(P),Te()}}).catch(function(W){ae(W)})};Te()})}).catch(function(w){if(w.name!=="AbortError")return w}).then(function(w){o(w)}),{abort:function(){C!=null&&C.cancel(),B.abort()}}};function V(){this._listeners=Object.create(null)}function x(e){l(function(){throw e},0)}V.prototype.dispatchEvent=function(e){e.target=this;var i=this._listeners[e.type];if(i!=null)for(var s=i.length,o=0;o<s;o+=1){var m=i[o];try{typeof m.handleEvent=="function"?m.handleEvent(e):m.call(this,e)}catch(p){x(p)}}},V.prototype.addEventListener=function(e,i){e=String(e);var s=this._listeners,o=s[e];o==null&&(o=[],s[e]=o);for(var m=!1,p=0;p<o.length;p+=1)o[p]===i&&(m=!0);m||o.push(i)},V.prototype.removeEventListener=function(e,i){e=String(e);var s=this._listeners,o=s[e];if(o!=null){for(var m=[],p=0;p<o.length;p+=1)o[p]!==i&&m.push(o[p]);m.length===0?delete s[e]:s[e]=m}};function f(e){this.type=e,this.target=void 0}function le(e,i){f.call(this,e),this.data=i.data,this.lastEventId=i.lastEventId}le.prototype=Object.create(f.prototype);function we(e,i){f.call(this,e),this.status=i.status,this.statusText=i.statusText,this.headers=i.headers}we.prototype=Object.create(f.prototype);function se(e,i){f.call(this,e),this.error=i.error}se.prototype=Object.create(f.prototype);var he=-1,ne=0,ce=1,ue=2,fe=-1,Z=0,be=1,me=2,Ce=3,Me=/^text\/event\-stream(;.*)?$/i,_e=1e3,De=18e6,Be=function(e,i){var s=e==null?i:parseInt(e,10);return s!==s&&(s=i),ge(s)},ge=function(e){return Math.min(Math.max(e,_e),De)},de=function(e,i,s){try{typeof i=="function"&&i.call(e,s)}catch(o){x(o)}};function K(e,i){V.call(this),i=i||{},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,ke(this,e,i)}function Oe(){return d!=null&&"withCredentials"in d.prototype||g==null?new d:new g}var Le=M!=null&&D!=null&&"body"in D.prototype;function ke(e,i,s){i=String(i);var o=!!s.withCredentials,m=s.lastEventIdQueryParameterName||"lastEventId",p=ge(1e3),c=Be(s.heartbeatTimeout,45e3),C="",B=p,A=!1,E=0,w=s.headers||{},N=s.Transport,ae=Le&&N==null?void 0:new I(N!=null?new N:Oe()),Te=N!=null&&typeof N!="string"?new N:ae==null?new S:new q,W=void 0,P=0,$=he,ye="",Re="",oe="",xe="",X=Z,Fe=0,pe=0,tt=function(z,H,Y,J){if($===ne)if(z===200&&Y!=null&&Me.test(Y)){$=ce,A=Date.now(),B=p,e.readyState=ce;var G=new we("open",{status:z,statusText:H,headers:J});e.dispatchEvent(G),de(e,e.onopen,G)}else{var U="";z!==200?(H&&(H=H.replace(/\s+/g," ")),U="EventSource's response has a status "+z+" "+H+" that is not 200. Aborting the connection."):U="EventSource's response has a Content-Type specifying an unsupported type: "+(Y==null?"-":Y.replace(/\s+/g," "))+". Aborting the connection.",Ne();var G=new we("error",{status:z,statusText:H,headers:J});e.dispatchEvent(G),de(e,e.onerror,G),console.error(U)}},nt=function(z){if($===ce){for(var H=-1,Y=0;Y<z.length;Y+=1){var J=z.charCodeAt(Y);(J===10||J===13)&&(H=Y)}var G=(H!==-1?xe:"")+z.slice(0,H+1);xe=(H===-1?xe:"")+z.slice(H+1),z!==""&&(A=Date.now(),E+=z.length);for(var U=0;U<G.length;U+=1){var J=G.charCodeAt(U);if(X===fe&&J===10)X=Z;else if(X===fe&&(X=Z),J===13||J===10){if(X!==Z){X===be&&(pe=U+1);var re=G.slice(Fe,pe-1),ie=G.slice(pe+(pe<U&&G.charCodeAt(pe)===32?1:0),U);re==="data"?(ye+=`
|
|
7
|
-
`,ye+=ie):re==="id"?Re=ie:re==="event"?oe=ie:re==="retry"?(p=Be(ie,p),B=p):re==="heartbeatTimeout"&&(c=Be(ie,c),P!==0&&(u(P),P=l(function(){Se()},c)))}if(X===Z){if(ye!==""){C=Re,oe===""&&(oe="message");var ve=new le(oe,{data:ye.slice(1),lastEventId:Re});if(e.dispatchEvent(ve),oe==="open"?de(e,e.onopen,ve):oe==="message"?de(e,e.onmessage,ve):oe==="error"&&de(e,e.onerror,ve),$===ue)return}ye="",oe=""}X=J===13?fe:Z}else X===Z&&(Fe=U,X=be),X===be?J===58&&(pe=U+1,X=me):X===me&&(X=Ce)}}},je=function(z){if($===ce||$===ne){$=he,P!==0&&(u(P),P=0),P=l(function(){Se()},B),B=ge(Math.min(p*16,B*2)),e.readyState=ne;var H=new se("error",{error:z});e.dispatchEvent(H),de(e,e.onerror,H),z!=null&&console.error(z)}},Ne=function(){$=ue,W!=null&&(W.abort(),W=void 0),P!==0&&(u(P),P=0),e.readyState=ue},Se=function(){if(P=0,$!==he){if(!A&&W!=null)je(new Error("No activity within "+c+" milliseconds. "+($===ne?"No response received.":E+" chars received.")+" Reconnecting.")),W!=null&&(W.abort(),W=void 0);else{var z=Math.max((A||Date.now())+c-Date.now(),1);A=!1,P=l(function(){Se()},z)}return}A=!1,E=0,P=l(function(){Se()},c),$=ne,ye="",oe="",Re=C,xe="",Fe=0,pe=0,X=Z;var H=i;if(i.slice(0,5)!=="data:"&&i.slice(0,5)!=="blob:"&&C!==""){var Y=i.indexOf("?");H=Y===-1?i:i.slice(0,Y+1)+i.slice(Y+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(ie,ve){return ve===m?"":ie}),H+=(i.indexOf("?")===-1?"?":"&")+m+"="+encodeURIComponent(C)}var J=e.withCredentials,G={};G.Accept="text/event-stream";var U=e.headers;if(U!=null)for(var re in U)Object.prototype.hasOwnProperty.call(U,re)&&(G[re]=U[re]);try{W=Te.open(ae,tt,nt,je,H,J,G)}catch(ie){throw Ne(),ie}};e.url=i,e.readyState=ne,e.withCredentials=o,e.headers=w,e._close=Ne,Se()}K.prototype=Object.create(V.prototype),K.prototype.CONNECTING=ne,K.prototype.OPEN=ce,K.prototype.CLOSED=ue,K.prototype.close=function(){this._close()},K.CONNECTING=ne,K.OPEN=ce,K.CLOSED=ue,K.prototype.withCredentials=void 0;var Ae=y;d!=null&&(y==null||!("withCredentials"in y.prototype))&&(Ae=K),function(e){{var i=e(n);i!==void 0&&(r.exports=i)}}(function(e){e.EventSourcePolyfill=K,e.NativeEventSource=y,e.EventSource=Ae})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:t.commonjsGlobal:globalThis)})(Ie,Ie.exports);var ct=Ie.exports;/*!
|
|
8
|
-
* currency.js - v2.0.4
|
|
9
|
-
* http://scurker.github.io/currency.js
|
|
10
|
-
*
|
|
11
|
-
* Copyright (c) 2021 Jason Wilson
|
|
12
|
-
* Released under MIT license
|
|
13
|
-
*/var dt={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:ht,fromCents:!1},$e=function(n){return Math.round(n)},Ve=function(n){return Math.pow(10,n)},ut=function(n,a){return $e(n/a)*a},ft=/(\d)(?=(\d{3})+\b)/g,pt=/(\d)(?=(\d\d)+\d\b)/g;function ee(r,n){var a=this;if(!(a instanceof ee))return new ee(r,n);var l=Object.assign({},dt,n),u=Ve(l.precision),d=Ee(r,l);a.intValue=d,a.value=d/u,l.increment=l.increment||1/u,l.useVedic?l.groups=pt:l.groups=ft,this.s=l,this.p=u}function Ee(r,n){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=0,u=n.decimal,d=n.errorOnInvalid,g=n.precision,h=n.fromCents,y=Ve(g),v=typeof r=="number",_=r instanceof ee;if(_&&h)return r.intValue;if(v||_)l=_?r.value:r;else if(typeof r=="string"){var M=new RegExp("[^-\\d"+u+"]","g"),D=new RegExp("\\"+u,"g");l=r.replace(/\((.*)\)/,"-$1").replace(M,"").replace(D,"."),l=l||0}else{if(d)throw Error("Invalid Input");l=0}return h||(l*=y,l=l.toFixed(4)),a?$e(l):l}function ht(r,n){var a=n.pattern,l=n.negativePattern,u=n.symbol,d=n.separator,g=n.decimal,h=n.groups,y=(""+r).replace(/^-/,"").split("."),v=y[0],_=y[1];return(r.value>=0?a:l).replace("!",u).replace("#",v.replace(h,"$1"+d)+(_?g+_:""))}ee.prototype={add:function(n){var a=this.intValue,l=this.s,u=this.p;return ee((a+=Ee(n,l))/(l.fromCents?1:u),l)},subtract:function(n){var a=this.intValue,l=this.s,u=this.p;return ee((a-=Ee(n,l))/(l.fromCents?1:u),l)},multiply:function(n){var a=this.intValue,l=this.s;return ee((a*=n)/(l.fromCents?1:Ve(l.precision)),l)},divide:function(n){var a=this.intValue,l=this.s;return ee(a/=Ee(n,l,!1),l)},distribute:function(n){for(var a=this.intValue,l=this.p,u=this.s,d=[],g=Math[a>=0?"floor":"ceil"](a/n),h=Math.abs(a-g*n),y=u.fromCents?1:l;n!==0;n--){var v=ee(g/y,u);h-- >0&&(v=v[a>=0?"add":"subtract"](1/y)),d.push(v)}return d},dollars:function(){return~~this.value},cents:function(){var n=this.intValue,a=this.p;return~~(n%a)},format:function(n){var a=this.s;return typeof n=="function"?n(this,a):a.format(this,Object.assign({},a,n))},toString:function(){var n=this.intValue,a=this.p,l=this.s;return ut(n/a,l.increment).toFixed(l.precision)},toJSON:function(){return this.value}};function mt(r){t.append_styles(r,"svelte-1tsugyl",'*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}')}function Ke(r,n,a){const l=r.slice();return l[50]=n[a],l}function We(r,n,a){const l=r.slice();return l[53]=n[a],l}function gt(r){let n,a,l=(r[1].Total?r[8](r[1].Total[0].amount):"0")+"",u,d,g,h,y,v,_,M,D,O,F,R,b=r[4]&&Ye(r);return{c(){n=t.element("div"),a=t.element("p"),u=t.text(l),d=t.space(),g=t.text(r[5]),h=t.space(),y=t.element("span"),v=t.svg_element("svg"),_=t.svg_element("path"),D=t.space(),b&&b.c(),O=t.empty(),t.attr(_,"id","arrow"),t.attr(_,"d","M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"),t.attr(_,"transform","translate(-274.511 -441.088)"),t.attr(_,"fill","#d1d1d1"),t.attr(v,"xmlns","http://www.w3.org/2000/svg"),t.attr(v,"width","14"),t.attr(v,"height","6.835"),t.attr(v,"viewBox","0 0 14 6.835"),t.attr(y,"class",M=r[3]?"TriangleActive":"TriangleInactive"),t.attr(n,"class","BalanceValue")},m(T,j){t.insert(T,n,j),t.append(n,a),t.append(a,u),t.append(a,d),t.append(a,g),t.append(n,h),t.append(n,y),t.append(y,v),t.append(v,_),t.insert(T,D,j),b&&b.m(T,j),t.insert(T,O,j),F||(R=t.listen(n,"click",r[25]),F=!0)},p(T,j){j[0]&2&&l!==(l=(T[1].Total?T[8](T[1].Total[0].amount):"0")+"")&&t.set_data(u,l),j[0]&32&&t.set_data(g,T[5]),j[0]&8&&M!==(M=T[3]?"TriangleActive":"TriangleInactive")&&t.attr(y,"class",M),T[4]?b?b.p(T,j):(b=Ye(T),b.c(),b.m(O.parentNode,O)):b&&(b.d(1),b=null)},d(T){T&&(t.detach(n),t.detach(D),t.detach(O)),b&&b.d(T),F=!1,R()}}}function yt(r){let n,a=r[6]("Loading")+"",l;return{c(){n=t.element("p"),l=t.text(a),t.attr(n,"class","Loading")},m(u,d){t.insert(u,n,d),t.append(n,l)},p(u,d){d[0]&64&&a!==(a=u[6]("Loading")+"")&&t.set_data(l,a)},d(u){u&&t.detach(n)}}}function Ye(r){let n,a,l,u,d,g,h,y,v=r[6]("Title")+"",_,M,D,O,F,R,b=r[6]("DepositButton")+"",T,j,L,I,te,Q,q=t.ensure_array_like(Object.keys(r[1])),k=[];for(let S=0;S<q.length;S+=1)k[S]=Qe(Ke(r,q,S));return{c(){n=t.element("div"),a=t.element("div"),u=t.space(),d=t.element("div"),g=t.element("div"),h=t.element("div"),y=t.element("p"),_=t.text(v),M=t.space(),D=t.element("div");for(let S=0;S<k.length;S+=1)k[S].c();O=t.space(),F=t.element("div"),R=t.element("button"),T=t.text(b),t.attr(a,"class",l="BalanceModalClose "+(r[3]?"Open":"")),t.attr(y,"class","BalanceModalTitle"),t.attr(h,"class","BalanceModalHeader"),t.attr(D,"class","BalanceModalBody"),t.attr(R,"class","BalanceModalAction"),t.attr(F,"class","BalanceModalFooter"),t.attr(g,"class",j="ModalContent "+(r[3]?"Open":"")),t.attr(d,"class",L="BalanceModal "+(r[3]?"Open":"")),t.attr(n,"class",I="BalanceModalWrapper "+(r[3]?"Open":""))},m(S,V){t.insert(S,n,V),t.append(n,a),t.append(n,u),t.append(n,d),t.append(d,g),t.append(g,h),t.append(h,y),t.append(y,_),t.append(g,M),t.append(g,D);for(let x=0;x<k.length;x+=1)k[x]&&k[x].m(D,null);t.append(g,O),t.append(g,F),t.append(F,R),t.append(R,T),te||(Q=[t.listen(a,"click",r[26]),t.listen(R,"click",r[27])],te=!0)},p(S,V){if(V[0]&8&&l!==(l="BalanceModalClose "+(S[3]?"Open":""))&&t.attr(a,"class",l),V[0]&64&&v!==(v=S[6]("Title")+"")&&t.set_data(_,v),V[0]&354){q=t.ensure_array_like(Object.keys(S[1]));let x;for(x=0;x<q.length;x+=1){const f=Ke(S,q,x);k[x]?k[x].p(f,V):(k[x]=Qe(f),k[x].c(),k[x].m(D,null))}for(;x<k.length;x+=1)k[x].d(1);k.length=q.length}V[0]&64&&b!==(b=S[6]("DepositButton")+"")&&t.set_data(T,b),V[0]&8&&j!==(j="ModalContent "+(S[3]?"Open":""))&&t.attr(g,"class",j),V[0]&8&&L!==(L="BalanceModal "+(S[3]?"Open":""))&&t.attr(d,"class",L),V[0]&8&&I!==(I="BalanceModalWrapper "+(S[3]?"Open":""))&&t.attr(n,"class",I)},d(S){S&&t.detach(n),t.destroy_each(k,S),te=!1,t.run_all(Q)}}}function Je(r){let n,a,l=r[6](r[50])+"",u,d,g=(r[53].productType?r[6](r[53].productType):"")+"",h,y,v,_,M=(r[53].amount?r[8](r[53].amount):"0")+"",D,O,F,R;return{c(){n=t.element("div"),a=t.element("p"),u=t.text(l),d=t.space(),h=t.text(g),y=t.space(),v=t.element("p"),_=t.element("span"),D=t.text(M),O=t.space(),F=t.element("span"),R=t.text(r[5]),t.attr(a,"class","BalanceModalText"),t.attr(_,"class","BalanceModalAmount"),t.attr(F,"class","BalanceModalCurrency"),t.attr(v,"class","BalanceModalValue"),t.attr(n,"class","BalanceModalRowLine")},m(b,T){t.insert(b,n,T),t.append(n,a),t.append(a,u),t.append(a,d),t.append(a,h),t.append(n,y),t.append(n,v),t.append(v,_),t.append(_,D),t.append(v,O),t.append(v,F),t.append(F,R)},p(b,T){T[0]&66&&l!==(l=b[6](b[50])+"")&&t.set_data(u,l),T[0]&66&&g!==(g=(b[53].productType?b[6](b[53].productType):"")+"")&&t.set_data(h,g),T[0]&2&&M!==(M=(b[53].amount?b[8](b[53].amount):"0")+"")&&t.set_data(D,M),T[0]&32&&t.set_data(R,b[5])},d(b){b&&t.detach(n)}}}function Qe(r){let n,a,l=t.ensure_array_like(r[1][r[50]]),u=[];for(let d=0;d<l.length;d+=1)u[d]=Je(We(r,l,d));return{c(){n=t.element("div");for(let d=0;d<u.length;d+=1)u[d].c();a=t.space(),t.attr(n,"class","BalanceModalRowBoth")},m(d,g){t.insert(d,n,g);for(let h=0;h<u.length;h+=1)u[h]&&u[h].m(n,null);t.append(n,a)},p(d,g){if(g[0]&354){l=t.ensure_array_like(d[1][d[50]]);let h;for(h=0;h<l.length;h+=1){const y=We(d,l,h);u[h]?u[h].p(y,g):(u[h]=Je(y),u[h].c(),u[h].m(n,a))}for(;h<u.length;h+=1)u[h].d(1);u.length=l.length}},d(d){d&&t.detach(n),t.destroy_each(u,d)}}}function Ze(r){let n,a,l;return{c(){n=t.element("div"),t.attr(n,"class","ShowBalanceModalOverlay")},m(u,d){t.insert(u,n,d),a||(l=t.listen(n,"click",r[28]),a=!0)},p:t.noop,d(u){u&&t.detach(n),a=!1,l()}}}function vt(r){let n,a,l;function u(y,v){return y[2]?yt:gt}let d=u(r),g=d(r),h=r[4]&&Ze(r);return{c(){n=t.element("div"),a=t.element("div"),g.c(),l=t.space(),h&&h.c(),t.attr(a,"class","ShowBalance")},m(y,v){t.insert(y,n,v),t.append(n,a),g.m(a,null),t.append(n,l),h&&h.m(n,null),r[29](n)},p(y,v){d===(d=u(y))&&g?g.p(y,v):(g.d(1),g=d(y),g&&(g.c(),g.m(a,null))),y[4]?h?h.p(y,v):(h=Ze(y),h.c(),h.m(n,null)):h&&(h.d(1),h=null)},i:t.noop,o:t.noop,d(y){y&&t.detach(n),g.d(),h&&h.d(),r[29](null)}}}function wt(r,n,a){let l;t.component_subscribe(r,t.$format,e=>a(6,l=e));let{userid:u=""}=n,{session:d=""}=n,{endpoint:g=""}=n,{lang:h="en"}=n,{mbsource:y}=n,{clientstyling:v=""}=n,{clientstylingurl:_=""}=n,{translationurl:M=""}=n,{customlocaleidentifier:D=""}=n,{gmversion:O="gm16"}=n,{displaybalanceoption:F="All"}=n,{totalcalculationmode:R="totalCashAmount"}=n,{currencyseparator:b=""}=n,{currencydecimal:T=""}=n,{currencyprecision:j=""}=n,L,I,te,Q,q=!1,k="",S=[],V,x=!1;const f={},le=["totalCashAmount","totalRealAmount"],we=()=>{fetch(M).then(e=>e.json()).then(e=>Object.keys(e).forEach(i=>Ge(i,e[i]))).catch(e=>console.log(e))};Object.keys(qe).forEach(e=>Ge(e,qe[e]));const se=e=>{switch(e){case"balance":window.postMessage({type:"BalanceModalStatus",status:"open"},window.location.href),a(4,q=!0),setTimeout(()=>a(3,te=!0),150);break;case"closebalance":a(3,te=!1),window.postMessage({type:"BalanceModalStatus",status:"close"},window.location.href),setTimeout(()=>{a(4,q=!1)},150);break}},he=()=>{if(D.includes(h))return D},ne=e=>D?new Intl.NumberFormat(he(),{useGrouping:!0}).format(e):b&&T?ee(e,{separator:b,decimal:T,symbol:"",precision:parseInt(j||"2",10)}).format():ee(e,{separator:".",decimal:",",symbol:"",precision:parseInt(j||"2",10)}).format(),ce=()=>Xe(this,null,function*(){var i,s,o;a(2,L=!0);const e=new URL(`${g}/v1/player/${u}/account`);try{const m=yield fetch(e,{method:"GET",headers:{"X-SessionID":d}}),p=yield m.json();if(m.ok)window.postMessage({type:"BalancedFetched"},window.location.href),S=p.items,a(5,k=(i=S.find(c=>c.displayName==="Casino"))==null?void 0:i.currency),a(1,f.Total=[{amount:p.totalAmount[k]}],f),a(1,f.Real=[{amount:(s=S.find(c=>c.displayName==="Casino"))==null?void 0:s.balanceAmount}],f),a(1,f.Bonus=[{amount:(o=S.find(c=>c.displayName==="UBS"))==null?void 0:o.balanceAmount}],f);else throw new Error("Failed to fetch balance data !")}catch(m){console.log("Balance error: ",m)}finally{a(2,L=!1)}}),ue=()=>{a(2,L=!0);const e=new URL(`${g}/v2/player/${u}/balance`),i=new Headers;i.append("X-SessionID",d),fetch(e,{method:"GET",headers:i}).then(o=>o.json()).then(o=>{o[R]||a(10,R=le[0]);const m=o.items.find(c=>c.type==="Real"&&c.walletAccountType==="Ordinary");if(a(5,k=m.currency),x=!!m.productType,a(1,f.Total=[{amount:0}],f),a(1,f.Real=[],f),a(1,f.Bonus=[],f),a(1,f.Credit=[],f),!x){V={lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},a(1,f.Total[0].amount=o[R][k],f);for(const c of o.items)switch(c.type){case"Bonus":f.Bonus.length===0?f.Bonus.push({amount:c.amount}):a(1,f.Bonus[0].amount+=c.amount,f);break;case"Real":if(c.creditLine&&f.Credit.length===0&&f.Credit.push({amount:c.creditLine}),R==="totalRealAmount")continue;f.Real.length===0?f.Real.push({amount:c.amount}):a(1,f.Real[0].amount+=c.amount,f);break}for(const[c,C]of Object.entries(f))C.length<1&&delete f[c];a(2,L=!1);return}V={Casino:{lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},Sports:{lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1}};let p=o.items;F&&F!=="All"&&(p=o.items.filter(c=>c.productType===F));for(const c of p){let C;switch(c.type){case"Bonus":C=f.Bonus.findIndex(B=>B.productType===c.productType),C>0?a(1,f.Bonus[C].amount+=c.amount,f):f.Bonus.push({amount:c.amount,productType:c.productType});break;case"Real":c.creditLine&&f.Credit.push({amount:c.creditLine,productType:c.productType}),C=f.Real.findIndex(B=>B.productType===c.productType),C>0?a(1,f.Real[C].amount+=c.amount,f):f.Real.push({amount:c.amount,productType:c.productType});break}}Ce();for(const[c,C]of Object.entries(f))C.length<1&&delete f[c];a(2,L=!1)}).catch(o=>{throw a(2,L=!1),new Error("Failed to fetch balance data !")})},fe=()=>{if(Q&&Q.close(),d.length<1)return;let e,i;switch(O){case"gm16":e=new URL(`${g}/v2/player/${u}/information/updates`),i=m=>Me(m);break;case"gmcore":e=new URL(`${g}/v1/player/${u}/balance/updates`),i=m=>be(m);break}const s={accept:"text/event-stream","X-SessionId":d},o=new ct.EventSourcePolyfill(e,{headers:s});Q=o,o.addEventListener("message",i)},Z=e=>{let i;try{i=JSON.parse(e)}catch(s){console.log("Balance stream failed: ",s);return}return i},be=e=>{var m,p;const i=Z(e.data);if(!i){fe();return}let s="0";const o=i.balanceChange;S=S.map(c=>(o&&o[c.id]&&(c=Pe(Ue({},c),{balanceAmount:o[c.id].afterAmount})),s=(parseFloat(c==null?void 0:c.balanceAmount)+parseFloat(s)).toString(),c)),a(1,f.Real=[{amount:(m=S[0])==null?void 0:m.balanceAmount}],f),a(1,f.Bonus=[{amount:(p=S[1])==null?void 0:p.balanceAmount}],f),a(1,f.Total=[{amount:Number(s)}],f)},me=(e,i,s)=>{let o=null;switch(s.walletAccountType){case"Ordinary":s.afterAmount!==s.affectedAmount&&(i.lastOrdinaryAfterAmount=s.afterAmount,i.showCreditLineAfterAmount||(o=s.afterAmount));break;case"CreditLine":s.afterAmount!==0?(o=s.afterAmount,i.showCreditLineAfterAmount=!0):(o=i.lastOrdinaryAfterAmount,i.showCreditLineAfterAmount=!1);break;default:o=s.afterAmount}return o===null?e:o},Ce=()=>{switch(R){case"totalCashAmount":let e=0;for(const s of["Real","Bonus"])for(const o of f[s])e+=Math.max(o.amount,0);a(1,f.Total[0].amount=e,f);break;case"totalRealAmount":if(!x)return;let i=0;for(const s of f.Real)i+=s.amount;a(1,f.Total[0].amount=i,f)}},Me=e=>{const i=Z(e.data);if(!i){fe();return}if(i.type!=="BALANCE_UPDATE_V2")return;const s=i.body.balanceChange;for(const[o,m]of Object.entries(s))if(R==="totalRealAmount"&&o==="Real"&&!x&&a(1,f.Total[0].amount=me(f.Total[0].amount,V,m),f),!!f[o])for(const p of f[o]){if(!x){p.amount=o==="Real"?me(p.amount,V,m):m.afterAmount;continue}m.productType===p.productType&&(p.amount=o==="Real"?me(p.amount,V[p.productType],m):m.afterAmount)}Ce()},_e=()=>{se("closebalance"),window.postMessage({type:"GoToDeposit"},window.location.href),typeof gtag=="function"&>ag("event","GoToDeposit",{context:"PlayerAccountBalanceModal"})},De=()=>{le.includes(R)||(console.error(`Unsupported value ('${R}') for totalcalculationmode parameter. Only the following values are supported ${le}. Using default value ('${le[0]}').`),a(10,R=le[0]))},Be=()=>{switch(st(h),De(),O){case"gmcore":ce();break;case"gm16":ue();break;default:throw Error(`Invalid apiversion attribute: ${O}`)}},ge=e=>e.data&&e.data.type==="LogoutSuccessfull"&&Q.close(),de=()=>{window.postMessage({type:"UpdateBalanceBackground"},window.location.href)};t.onMount(()=>(window.addEventListener("message",ge,!1),()=>{window.removeEventListener("message",ge),Q&&Q.close()}));const K=()=>se("balance"),Oe=()=>se("closebalance"),Le=()=>_e(),ke=()=>se("closeBalance");function Ae(e){t.binding_callbacks[e?"unshift":"push"](()=>{I=e,a(0,I)})}return r.$$set=e=>{"userid"in e&&a(11,u=e.userid),"session"in e&&a(12,d=e.session),"endpoint"in e&&a(13,g=e.endpoint),"lang"in e&&a(14,h=e.lang),"mbsource"in e&&a(15,y=e.mbsource),"clientstyling"in e&&a(16,v=e.clientstyling),"clientstylingurl"in e&&a(17,_=e.clientstylingurl),"translationurl"in e&&a(18,M=e.translationurl),"customlocaleidentifier"in e&&a(19,D=e.customlocaleidentifier),"gmversion"in e&&a(20,O=e.gmversion),"displaybalanceoption"in e&&a(21,F=e.displaybalanceoption),"totalcalculationmode"in e&&a(10,R=e.totalcalculationmode),"currencyseparator"in e&&a(22,b=e.currencyseparator),"currencydecimal"in e&&a(23,T=e.currencydecimal),"currencyprecision"in e&&a(24,j=e.currencyprecision)},r.$$.update=()=>{r.$$.dirty[0]&16384&&h&&he(),r.$$.dirty[0]&3176448&&g&&u&&d&&h&&O&&F&&Be(),r.$$.dirty[0]&1062912&&g&&u&&d&&O&&fe(),r.$$.dirty[0]&262144&&M&&we(),r.$$.dirty[0]&2&&f.Total&&de(),r.$$.dirty[0]&65537&&v&&I&&t.setClientStyling(I,v),r.$$.dirty[0]&131073&&_&&I&&t.setClientStylingURL(I,_),r.$$.dirty[0]&32769&&y&&I&&t.setStreamStyling(I,`${y}.Style`)},[I,f,L,te,q,k,l,se,ne,_e,R,u,d,g,h,y,v,_,M,D,O,F,b,T,j,K,Oe,Le,ke,Ae]}class et extends t.SvelteComponent{constructor(n){super(),t.init(this,n,wt,vt,t.safe_not_equal,{userid:11,session:12,endpoint:13,lang:14,mbsource:15,clientstyling:16,clientstylingurl:17,translationurl:18,customlocaleidentifier:19,gmversion:20,displaybalanceoption:21,totalcalculationmode:10,currencyseparator:22,currencydecimal:23,currencyprecision:24},mt,[-1,-1])}get userid(){return this.$$.ctx[11]}set userid(n){this.$$set({userid:n}),t.flush()}get session(){return this.$$.ctx[12]}set session(n){this.$$set({session:n}),t.flush()}get endpoint(){return this.$$.ctx[13]}set endpoint(n){this.$$set({endpoint:n}),t.flush()}get lang(){return this.$$.ctx[14]}set lang(n){this.$$set({lang:n}),t.flush()}get mbsource(){return this.$$.ctx[15]}set mbsource(n){this.$$set({mbsource:n}),t.flush()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(n){this.$$set({clientstyling:n}),t.flush()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(n){this.$$set({clientstylingurl:n}),t.flush()}get translationurl(){return this.$$.ctx[18]}set translationurl(n){this.$$set({translationurl:n}),t.flush()}get customlocaleidentifier(){return this.$$.ctx[19]}set customlocaleidentifier(n){this.$$set({customlocaleidentifier:n}),t.flush()}get gmversion(){return this.$$.ctx[20]}set gmversion(n){this.$$set({gmversion:n}),t.flush()}get displaybalanceoption(){return this.$$.ctx[21]}set displaybalanceoption(n){this.$$set({displaybalanceoption:n}),t.flush()}get totalcalculationmode(){return this.$$.ctx[10]}set totalcalculationmode(n){this.$$set({totalcalculationmode:n}),t.flush()}get currencyseparator(){return this.$$.ctx[22]}set currencyseparator(n){this.$$set({currencyseparator:n}),t.flush()}get currencydecimal(){return this.$$.ctx[23]}set currencydecimal(n){this.$$set({currencydecimal:n}),t.flush()}get currencyprecision(){return this.$$.ctx[24]}set currencyprecision(n){this.$$set({currencyprecision:n}),t.flush()}}t.create_custom_element(et,{userid:{},session:{},endpoint:{},lang:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},customlocaleidentifier:{},gmversion:{},displaybalanceoption:{},totalcalculationmode:{},currencyseparator:{},currencydecimal:{},currencyprecision:{}},[],[],!0);exports.default=et;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHamburgerMenuNd-qmZhX_6z.cjs");function T(n,t){e.addMessages(n,t)}function F(n){e.$locale.set(n)}const E={en:{titleDeposit:"Deposit",loading:"Loading, please wait ..."},"zh-hk":{titleDeposit:"訂金",loading:"加載請稍候…"},fr:{titleDeposit:"Dépôt",loading:"Chargement, veuillez patienter ..."},tr:{titleDeposit:"PARA YATIR",loading:"Yükleniyor ..."},ro:{titleDeposit:"Depunere",loading:"Se încarcă..."},es:{titleDeposit:"Deposita",loading:"Cargando ..."},pt:{titleDeposit:"Depósito",loading:"Carregando, por favor espere ..."},hr:{titleDeposit:"Uplata",loading:"Učitavanje"},"pt-br":{titleDeposit:"Depositar",Loading:"Carregando, por favor espere..."},"es-mx":{titleDeposit:"Depositar",Loading:"Cargando, por favor espere..."}};function H(n){e.append_styles(n,"svelte-lvm6lo","button{font-family:var(--emw--button-typography)}input,select,option{font-family:inherit}.DepositWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px 50px 30px 50px;max-width:100%;height:var(--dynamic-height)}.DepositWrapper.DepositWrapperMobile{padding:20px 15px;max-width:unset;height:var(--dynamic-height)}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.DepositTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.DepositTitleMobile{font-size:var(--emw--size-standard, 16px)}.DepositTitleNone{display:none}.DepositIframeWrapper iframe{border:none;width:100%;height:85vh;border-radius:var(--emw--border-radius-large, 20px)}")}function W(n){let t,a,o,r,c,m,d,p,f,l,s=n[4]("titleDeposit")+"",u,y,D;return{c(){t=e.element("div"),a=e.svg_element("svg"),o=e.svg_element("defs"),r=e.svg_element("style"),c=e.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),m=e.svg_element("g"),d=e.svg_element("g"),p=e.svg_element("path"),f=e.space(),l=e.element("h2"),u=e.text(s),e.attr(p,"class","aaa"),e.attr(p,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),e.attr(p,"transform","translate(15 15) rotate(180)"),e.attr(d,"transform","translate(20 158)"),e.attr(m,"transform","translate(-20 -158)"),e.attr(a,"xmlns","http://www.w3.org/2000/svg"),e.attr(a,"width","15"),e.attr(a,"height","15"),e.attr(a,"viewBox","0 0 15 15"),e.attr(l,"class","DepositTitleMobile"),e.attr(t,"class","MenuReturnButton")},m(g,h){e.insert(g,t,h),e.append(t,a),e.append(a,o),e.append(o,r),e.append(r,c),e.append(a,m),e.append(m,d),e.append(d,p),e.append(t,f),e.append(t,l),e.append(l,u),y||(D=e.listen(t,"click",n[18]),y=!0)},p(g,h){h&16&&s!==(s=g[4]("titleDeposit")+"")&&e.set_data(u,s)},d(g){g&&e.detach(t),y=!1,D()}}}function j(n){let t,a,o;return{c(){t=e.element("div"),a=e.element("iframe"),e.src_url_equal(a.src,o=n[3])||e.attr(a,"src",o),e.attr(a,"title","Deposit Iframe"),e.attr(t,"class","DepositIframeWrapper")},m(r,c){e.insert(r,t,c),e.append(t,a)},p(r,c){c&8&&!e.src_url_equal(a.src,o=r[3])&&e.attr(a,"src",o)},d(r){r&&e.detach(t)}}}function z(n){let t,a=n[4]("loading")+"",o;return{c(){t=e.element("p"),o=e.text(a)},m(r,c){e.insert(r,t,c),e.append(t,o)},p(r,c){c&16&&a!==(a=r[4]("loading")+"")&&e.set_data(o,a)},d(r){r&&e.detach(t)}}}function G(n){let t,a,o,r=n[4]("titleDeposit")+"",c,m,d=n[5]&&W(n);function p(s,u){return s[1]?z:j}let f=p(n),l=f(n);return{c(){t=e.element("div"),d&&d.c(),a=e.space(),o=e.element("h2"),c=e.text(r),m=e.space(),l.c(),e.attr(o,"class","DepositTitle "+(n[5]?"DepositTitleNone":"")),e.attr(t,"class","DepositWrapper "+(n[5]?"DepositWrapperMobile":"")),e.set_style(t,"--dynamic-height",n[2])},m(s,u){e.insert(s,t,u),d&&d.m(t,null),e.append(t,a),e.append(t,o),e.append(o,c),e.append(t,m),l.m(t,null),n[19](t)},p(s,[u]){s[5]&&d.p(s,u),u&16&&r!==(r=s[4]("titleDeposit")+"")&&e.set_data(c,r),f===(f=p(s))&&l?l.p(s,u):(l.d(1),l=f(s),l&&(l.c(),l.m(t,null))),u&4&&e.set_style(t,"--dynamic-height",s[2])},i:e.noop,o:e.noop,d(s){s&&e.detach(t),d&&d.d(),l.d(),n[19](null)}}}function N(n,t,a){let o,r;e.component_subscribe(n,e.$format,i=>a(4,r=i));let{endpoint:c=""}=t,{session:m=""}=t,{playerid:d=""}=t,{lang:p="en"}=t,{hasdefaultamount:f=""}=t,{clientstyling:l=""}=t,{clientstylingurl:s=""}=t,{translationurl:u=""}=t,{currency:y=""}=t,{mbsource:D}=t,{shortcashierenabled:g="false"}=t,h,R=window.navigator.userAgent,v=e.getDevice(R)!=="PC",M=!0,k,_=0,C="";const B=()=>{fetch(u).then(w=>w.json()).then(w=>{Object.keys(w).forEach(b=>{T(b,w[b])})}).catch(w=>{console.log(w)})};Object.keys(E).forEach(i=>{T(i,E[i])});const S=()=>{window.postMessage({type:"GoToPreviousRoute",isMobile:v},window.location.href)},x=i=>{if(i.data){switch(i.data.type){case"ProfileDetailsData":a(7,y=i.data.profileDetails.currency);break}switch(i.data["MMFE:setQuickDepositHeight"]&&a(2,k=i.data["MMFE:setQuickDepositHeight"].toString()+"px"),i.data["MMFE:openFullCashier"]==="true"&&(window.postMessage({type:"GoToDeposit"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href)),i.data.redirect){case"mm-hc-casino":window.postMessage({type:"GoToCasino"},window.location.href);break;case"mm-hc-sports":window.postMessage({type:"GoToSports"},window.location.href);break;case"mm-hc-contact":window.postMessage({type:"GoToCustomerSupport"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href);break;case"mm-hc-back-to-merchant":window.postMessage({type:"GoToHomepage"},window.location.href);break;case"mm-wm-hc-init-deposit":window.postMessage({type:"RedirectWithdrawDepositCloseModal"},window.location.href);break;case"mm-wm-hc-init-deposit-quick":window.postMessage({type:"CloseShortCashier"},window.location.href);break}}},P=()=>{let i=new URL(`${c}/v1/player/${d}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);if(i.searchParams.append("language",p),o&&i.searchParams.append("isShortCashier",g),f)switch(y){case"USD":_=.4;break;case"CDF":_=1e3;break}let w={method:"POST",headers:{"X-SessionId":m,currency:y||"EUR",amount:_,cashierMode:"Default",IsShortCashier:g,accept:"application/json"}};fetch(i.href,w).then(b=>b.json()).then(b=>{a(1,M=!1),a(3,C=b.CashierUrl)},b=>{console.error(b)})},I=()=>{F(p)};e.onMount(()=>(window.addEventListener("message",x,!1),()=>{window.removeEventListener("message",x)}));const U=()=>S();function A(i){e.binding_callbacks[i?"unshift":"push"](()=>{h=i,a(0,h)})}return n.$$set=i=>{"endpoint"in i&&a(8,c=i.endpoint),"session"in i&&a(9,m=i.session),"playerid"in i&&a(10,d=i.playerid),"lang"in i&&a(11,p=i.lang),"hasdefaultamount"in i&&a(12,f=i.hasdefaultamount),"clientstyling"in i&&a(13,l=i.clientstyling),"clientstylingurl"in i&&a(14,s=i.clientstylingurl),"translationurl"in i&&a(15,u=i.translationurl),"currency"in i&&a(7,y=i.currency),"mbsource"in i&&a(16,D=i.mbsource),"shortcashierenabled"in i&&a(17,g=i.shortcashierenabled)},n.$$.update=()=>{n.$$.dirty&2048&&p&&I(),n.$$.dirty&131072&&(o=g.toLocaleLowerCase()==="true"),n.$$.dirty&8193&&l&&h&&e.setClientStyling(h,l),n.$$.dirty&16385&&s&&h&&e.setClientStylingURL(h,s),n.$$.dirty&65537&&D&&h&&e.setStreamStyling(h,`${D}.Style`),n.$$.dirty&32768&&u&&B(),n.$$.dirty&135040&&m&&d&&c&&y&&p&&g&&P()},[h,M,k,C,r,v,S,y,c,m,d,p,f,l,s,u,D,g,U,A]}class L extends e.SvelteComponent{constructor(t){super(),e.init(this,t,N,G,e.safe_not_equal,{endpoint:8,session:9,playerid:10,lang:11,hasdefaultamount:12,clientstyling:13,clientstylingurl:14,translationurl:15,currency:7,mbsource:16,shortcashierenabled:17},H)}get endpoint(){return this.$$.ctx[8]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[9]}set session(t){this.$$set({session:t}),e.flush()}get playerid(){return this.$$.ctx[10]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[11]}set lang(t){this.$$set({lang:t}),e.flush()}get hasdefaultamount(){return this.$$.ctx[12]}set hasdefaultamount(t){this.$$set({hasdefaultamount:t}),e.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get currency(){return this.$$.ctx[7]}set currency(t){this.$$set({currency:t}),e.flush()}get mbsource(){return this.$$.ctx[16]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get shortcashierenabled(){return this.$$.ctx[17]}set shortcashierenabled(t){this.$$set({shortcashierenabled:t}),e.flush()}}e.create_custom_element(L,{endpoint:{},session:{},playerid:{},lang:{},hasdefaultamount:{},clientstyling:{},clientstylingurl:{},translationurl:{},currency:{},mbsource:{},shortcashierenabled:{}},[],[],!0);exports.default=L;
|
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
"use strict";var x=(e,t,a)=>new Promise((n,l)=>{var i=d=>{try{s(a.next(d))}catch(p){l(p)}},c=d=>{try{s(a.throw(d))}catch(p){l(p)}},s=d=>d.done?n(d.value):Promise.resolve(d.value).then(i,c);s((a=a.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("./gamification-dropdown-8eb8a896-B8CcqKs3.cjs"),r=require("./index-71b1bdfa-DJwBo2rv.cjs"),y=require("./locale-DHn5ZpQu.cjs"),o=require("./player-elevate-card-items-66be34fb-DARKYMdQ.cjs"),M=(e,t)=>new Promise(a=>{fetch(e).then(n=>n.json()).then(n=>{Object.keys(n).forEach(l=>{t[l]=t[l]?t[l]:{};for(let i in n[l])t[l][i]=n[l][i]}),a(!0)})}),R=":host{display:block}",O=R,L=class{constructor(e){r.registerInstance(this,e),this.stylingAppends=!1,this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.el.prepend(t)},this.setClientStylingURL=()=>{let t=new URL(this.clientStylingUrl),a=document.createElement("style");fetch(t.href).then(n=>n.text()).then(n=>{a.innerHTML=n,setTimeout(()=>{this.el.prepend(a)},1)}).catch(n=>{console.log("error ",n)})},this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.targetTranslations=void 0}componentDidRender(){this.stylingAppends||(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.stylingAppends=!0)}componentWillLoad(){return x(this,null,function*(){const e=[];if(this.translationUrl){const t=M(this.translationUrl,this.targetTranslations);e.push(t)}return yield Promise.all(e)})}render(){return r.h("div",{key:"4d3414408c7662f88331dbe655966237f74d6958",class:"StyleShell"},r.h("slot",{key:"1d004644d84602c4314bdf5dfc26b55b160f57df",name:"mainContent"}))}get el(){return r.getElement(this)}};L.style=O;function m(e){o.requiredArgs(1,arguments);var t=o.toDate(e);return t.setHours(0,0,0,0),t}var q=864e5;function N(e,t){o.requiredArgs(2,arguments);var a=m(e),n=m(t),l=a.getTime()-o.getTimezoneOffsetInMilliseconds(a),i=n.getTime()-o.getTimezoneOffsetInMilliseconds(n);return Math.round((l-i)/q)}var W=6e4,$=36e5;function E(e,t){return o.requiredArgs(2,arguments),o.toDate(e).getTime()-o.toDate(t).getTime()}var b={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},z="trunc";function w(e){return e?b[e]:b[z]}function U(e,t,a){o.requiredArgs(2,arguments);var n=E(e,t)/$;return w(a==null?void 0:a.roundingMethod)(n)}function F(e,t,a){o.requiredArgs(2,arguments);var n=E(e,t)/W;return w(a==null?void 0:a.roundingMethod)(n)}function j(e,t){o.requiredArgs(2,arguments);var a=o.toDate(e),n=o.toDate(t);return a.getTime()<n.getTime()}function H(e,t){const a=e.querySelector("#total_level"),n=17,l=6.5,i=a.getBBox().width,c=t>1?1:t,s=c*i-n<0?0:c*i-n,d=e.querySelector("#current_level"),p=e.querySelector("#filter_current_level"),h=e.querySelector("#circle_current_level");a.setAttribute("viewbox",`0 0 ${s} 28`),d.setAttribute("width",`${s}`),h.setAttribute("cx",`${s<l?l:s}`),p.setAttribute("x",`${s-8}`);const g=e.querySelector("#lock"),S=e.querySelector("#filter_heart_ball"),C=e.querySelector("#filter_ball"),k=e.querySelector("#filter_heart"),T=e.querySelector("#filter_lock"),u=e.querySelector("#paint0_linear_ball"),f=e.querySelector("#paint1_linear_lock"),A=e.querySelector("#lock_box"),D=e.querySelector("#heart_box"),_=10,v=i-_;g.setAttribute("cx",`${v}`),f.setAttribute("x1",`${v}`),f.setAttribute("x2",`${v}`),u.setAttribute("x1",`${v-6}`),u.setAttribute("x2",`${v-6+11.2}`),T.setAttribute("x",`${v-6}`),k.setAttribute("x",`${v-6-2}`),C.setAttribute("x",`${v-6-2-2}`),S.setAttribute("x",`${v-6-2-2-4}`),A.setAttribute("x",`${v-6}`),D.setAttribute("x",`${v-6}`),a.parentElement.style.opacity="1"}const G=`:host {
|
|
2
|
-
display: block;
|
|
3
|
-
width: 360px;
|
|
4
|
-
height: 230px;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.ElevateCardWrapper {
|
|
8
|
-
contain: layout inline-size;
|
|
9
|
-
width: 100%;
|
|
10
|
-
height: fit-content;
|
|
11
|
-
min-height: 218px;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.Outer {
|
|
15
|
-
container-type: inline-size;
|
|
16
|
-
font-size: 12px;
|
|
17
|
-
background-size: cover;
|
|
18
|
-
background-repeat: no-repeat;
|
|
19
|
-
line-height: initial;
|
|
20
|
-
width: 100%;
|
|
21
|
-
height: 100%;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.Dark {
|
|
25
|
-
color: var(--emw--color-gray150, #efefef);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.Light {
|
|
29
|
-
color: var(--emw--color-black, #0e0e0e);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@container (min-width: 381px) {
|
|
33
|
-
.Outer {
|
|
34
|
-
background-size: cover;
|
|
35
|
-
}
|
|
36
|
-
.Outer .OuterCover {
|
|
37
|
-
min-height: 190px;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
@container (min-width: 260px) {
|
|
41
|
-
.Outer {
|
|
42
|
-
background-size: contain;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
.OuterCover {
|
|
46
|
-
width: 100%;
|
|
47
|
-
height: 100%;
|
|
48
|
-
content: "";
|
|
49
|
-
background-repeat: no-repeat;
|
|
50
|
-
background-size: cover;
|
|
51
|
-
border-radius: 15px;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.Inner {
|
|
55
|
-
display: flex;
|
|
56
|
-
flex-direction: column;
|
|
57
|
-
min-height: 158px;
|
|
58
|
-
}
|
|
59
|
-
.Inner .Content {
|
|
60
|
-
padding: 15px;
|
|
61
|
-
flex-wrap: wrap;
|
|
62
|
-
gap: 8px;
|
|
63
|
-
}
|
|
64
|
-
.Inner .Row {
|
|
65
|
-
display: flex;
|
|
66
|
-
flex-direction: row;
|
|
67
|
-
}
|
|
68
|
-
.Inner .CardCell {
|
|
69
|
-
display: flex;
|
|
70
|
-
}
|
|
71
|
-
.Inner .LevelProgress svg {
|
|
72
|
-
transition: opacity 0.4s;
|
|
73
|
-
}
|
|
74
|
-
.Inner .LevelInfo {
|
|
75
|
-
display: flex;
|
|
76
|
-
flex-direction: column;
|
|
77
|
-
}
|
|
78
|
-
.Inner .LevelInfo .ElevateLevel .LevelName {
|
|
79
|
-
height: 28px;
|
|
80
|
-
border-radius: 5px;
|
|
81
|
-
line-height: 28px;
|
|
82
|
-
overflow: hidden;
|
|
83
|
-
text-overflow: ellipsis;
|
|
84
|
-
white-space: nowrap;
|
|
85
|
-
}
|
|
86
|
-
.Inner .LevelInfo.Level0 .ElevateLevel .LevelName {
|
|
87
|
-
box-shadow: -2px -2px 7px 0px var(--emw--elevate-color-level0button-shadow, rgba(191, 84, 6, 0.75));
|
|
88
|
-
background: linear-gradient(180deg, var(--emw--elevate-color-level0-bg0, #E2792C) 0%, var(--emw--elevate-color-level0-bg1, rgba(242, 151, 99, 0)) 100%);
|
|
89
|
-
}
|
|
90
|
-
.Inner .LevelInfo.Level1 .ElevateLevel .LevelName {
|
|
91
|
-
box-shadow: -2px -2px 7px 0px var(--emw--elevate-color-level1button-shadow, rgba(151, 151, 151, 0.75));
|
|
92
|
-
background: linear-gradient(180deg, var(--emw--elevate-color-level1-bg0, #BEBFED) 0%, var(--emw--elevate-color-level1-bg1, rgba(216, 217, 233, 0)) 100%);
|
|
93
|
-
}
|
|
94
|
-
.Inner .LevelInfo.Level2 .ElevateLevel .LevelName {
|
|
95
|
-
box-shadow: -2px -2px 7px 0px var(--emw--elevate-color-level2button-shadow, rgba(191, 120, 6, 0.75));
|
|
96
|
-
background: linear-gradient(180deg, var(--emw--elevate-color-level2-bg0, #FCC410) 0%, var(--emw--elevate-color-level2-bg1, rgba(255, 189, 43, 0)) 100%);
|
|
97
|
-
}
|
|
98
|
-
.Inner .LevelInfo.Level3 .ElevateLevel .LevelName {
|
|
99
|
-
box-shadow: -2px -2px 7px 0px var(--emw--elevate-color-level3button-shadow, rgba(65, 6, 191, 0.75));
|
|
100
|
-
background: linear-gradient(180deg, var(--emw--elevate-color-level3-bg0, #B1A2DB) 0%, var(--emw--elevate-color-level3-bg1, rgba(203, 202, 245, 0)) 100%);
|
|
101
|
-
}
|
|
102
|
-
.Inner .LevelInfo.Level4 .ElevateLevel .LevelName {
|
|
103
|
-
box-shadow: -2px -2px 7px 0px var(--emw--elevate-color-level4button-shadow, rgba(65, 6, 191, 0.75));
|
|
104
|
-
background: linear-gradient(180deg, var(--emw--elevate-color-level4-bg0, #B1A2DB) 0%, var(--emw--elevate-color-level4-bg1, rgba(203, 202, 245, 0)) 100%);
|
|
105
|
-
}
|
|
106
|
-
.Inner .LevelInfo .ElevateLevel {
|
|
107
|
-
display: flex;
|
|
108
|
-
}
|
|
109
|
-
.Inner .LevelInfo {
|
|
110
|
-
flex: 1;
|
|
111
|
-
flex-grow: 1;
|
|
112
|
-
min-width: 150px;
|
|
113
|
-
}
|
|
114
|
-
.Inner .PlayerImg {
|
|
115
|
-
width: 29%;
|
|
116
|
-
margin: auto;
|
|
117
|
-
max-width: 100px;
|
|
118
|
-
min-width: 30px;
|
|
119
|
-
order: 0;
|
|
120
|
-
}
|
|
121
|
-
.Inner .PlayerAvatar {
|
|
122
|
-
max-width: 100px;
|
|
123
|
-
flex-basis: 100px;
|
|
124
|
-
height: auto;
|
|
125
|
-
margin: auto;
|
|
126
|
-
padding-top: 10px;
|
|
127
|
-
}
|
|
128
|
-
.Inner .PlayerAvatar .Avatar, .Inner .PlayerAvatar .Badge {
|
|
129
|
-
width: 100%;
|
|
130
|
-
height: 100%;
|
|
131
|
-
}
|
|
132
|
-
.Inner .PlayerAvatar .Avatar {
|
|
133
|
-
border-radius: 50%;
|
|
134
|
-
background-size: contain;
|
|
135
|
-
background-repeat: no-repeat;
|
|
136
|
-
}
|
|
137
|
-
.Inner .ElevateLevel .ExpirationDate {
|
|
138
|
-
max-width: 138px;
|
|
139
|
-
min-width: 118px;
|
|
140
|
-
}
|
|
141
|
-
.Inner .PlayerName, .Inner .RedeemButton, .Inner .ElevateLevel {
|
|
142
|
-
text-transform: capitalize;
|
|
143
|
-
width: 100%;
|
|
144
|
-
}
|
|
145
|
-
.Inner .PlayerName {
|
|
146
|
-
font-size: 16px;
|
|
147
|
-
}
|
|
148
|
-
.Inner .Row .PointsInfo {
|
|
149
|
-
display: table;
|
|
150
|
-
font-weight: 600;
|
|
151
|
-
}
|
|
152
|
-
.Inner .Row .Redeem {
|
|
153
|
-
justify-content: flex-end;
|
|
154
|
-
margin-left: auto;
|
|
155
|
-
}
|
|
156
|
-
.Inner .Row .Redeem:hover {
|
|
157
|
-
color: var(--emw--elevate-color-redeem-hover, #00ABA4);
|
|
158
|
-
cursor: pointer;
|
|
159
|
-
}
|
|
160
|
-
.Inner .Row .RedeemButton:hover span {
|
|
161
|
-
color: var(emfe-w-elevate-color-redeem-text-hover, #f1f1f1);
|
|
162
|
-
font-weight: bold;
|
|
163
|
-
}
|
|
164
|
-
.Inner .Row .RedeemButton {
|
|
165
|
-
width: 95px;
|
|
166
|
-
height: 35px;
|
|
167
|
-
display: flex;
|
|
168
|
-
align-items: center;
|
|
169
|
-
border-radius: 10px;
|
|
170
|
-
background: var(--emw--elevate-color-redeem-bg, linear-gradient(0deg, #26CC37, #26CC37)), linear-gradient(117.99deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.89%), linear-gradient(283.85deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 33.47%), linear-gradient(268.18deg, rgba(255, 255, 255, 0.6) -17.36%, rgba(239, 239, 239, 0) 15.78%);
|
|
171
|
-
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.2509803922);
|
|
172
|
-
}
|
|
173
|
-
.Inner .Row .RedeemButton span {
|
|
174
|
-
color: var(--emw--color-white, #fff);
|
|
175
|
-
line-height: 18px;
|
|
176
|
-
font-size: 15px;
|
|
177
|
-
text-align: center;
|
|
178
|
-
width: 100%;
|
|
179
|
-
}
|
|
180
|
-
.Inner .Row .Points {
|
|
181
|
-
font-size: large;
|
|
182
|
-
vertical-align: middle;
|
|
183
|
-
}
|
|
184
|
-
.Inner .Row .Points .XP {
|
|
185
|
-
font-size: x-small;
|
|
186
|
-
}
|
|
187
|
-
.Inner .Row .ExpirationPoints {
|
|
188
|
-
font-size: small;
|
|
189
|
-
text-align: right;
|
|
190
|
-
font-weight: bold;
|
|
191
|
-
color: var(--emw--color-red, #9e595f);
|
|
192
|
-
}`,X=G,I=class{constructor(e){r.registerInstance(this,e),this.playerElevateLeveLoaded=r.createEvent(this,"playerElevateLeveLoaded"),this.params=void 0,this.playerElevateLevel=void 0,this.pointExpireString=void 0}handleWindowResizs(){this.initLevelProgressbar()}onParamsChanged(){this.loadElevateInfo()}redeemGiftButtonHandler(){this.loadElevateInfo()}onRedeemClick(){window.postMessage({type:"BEERedeemClicked"},window.location.href)}loadLevels(){let e=new URL(`${this.params.endpoint}/v1/elevate/levels?language=${this.params.language}`);return new Promise((t,a)=>fetch(e.href,{method:"GET"}).then(n=>n.json()).then(n=>{this.levels=n.data,t(!0)}).catch(n=>{a(n)}))}calcuatePointsToBeExpired(e){let t="";if(!e||!e.aboutToExpire||e.aboutToExpire.length==0||e.aboutToExpire[0].points<=0)return t;e.aboutToExpire.sort((s,d)=>j(new Date(s.expireTime),new Date(d.expireTime))?-1:1);const a=e.aboutToExpire[0],n=N(new Date(a.expireTime),new Date);let l=0,i=0,c=n===0?"pointsToBeExpiredDay":"pointsToBeExpired";return n<=0&&(l=U(new Date(a.expireTime),new Date,{roundingMethod:"floor"}),c=l>1?"pointsToBeExpiredHours":"pointsToBeExpiredHour",l<=0&&(i=F(new Date(a.expireTime),new Date,{roundingMethod:"floor"}),c=i>1?"pointsToBeExpiredMinutes":"pointsToBeExpiredMinute")),t=y.translateWithParams(c,{expirationPoints:a.points,expireDay:Math.max(n,l,i)}),t}loadPlayerLevelInfo(){let e=new URL(`${this.params.endpoint}/v1/elevate/playerInfo?language=${this.params.language}`);return new Promise((t,a)=>fetch(e.href,{method:"GET",headers:{"X-Sessionid":this.params.session,"Content-Type":"application/json"}}).then(n=>n.json()).then(n=>{var l,i,c;if(!n.success){console.error("Exception when fetch user elevateinfo, ",n.errorCode,n.errorMessage),a(!0);return}let s=n.data;this.playerElevateLevel=s.level,this.playerElevateLevel.name=this.playerElevateLevel.presentation.displayName||this.playerElevateLevel.name,this.playerElevateLevel.spendablePoints=((l=s.spendableWallet)===null||l===void 0?void 0:l.total.points)||0,this.playerElevateLeveLoaded.emit({elevateLevel:this.playerElevateLevel});const d=(i=n.data.spendableWallet)===null||i===void 0?void 0:i.total,p=(c=n.data.loyaltyWallet)===null||c===void 0?void 0:c.total;this.playerElevateLeveLoaded.emit({elevateLevelWalletTotal:d,loyaltyWalletTotal:p});let h=this.calcuatePointsToBeExpired(d),g=this.calcuatePointsToBeExpired(p);(h||g)&&this.playerElevateLeveLoaded.emit({pointExpireString:h,xpExpireString:g}),t(this.playerElevateLevel)}).catch(n=>{console.log("error ",n),a(!0)}))}setLoyaltyProgress(e){H(this.loyaltyProgressEle,e)}initLevelProgressbar(){setTimeout(()=>{this.loyaltyProgressEle=this.elevateCardRef.parentElement.querySelector("#LevelProgress"),this.loyaltyProgressEle&&(this.setLoyaltyProgress(this.playerElevateLevel.nextLevel?this.playerElevateLevel.loyaltyPoints/this.playerElevateLevel.nextLevel.entryPoints:1),this.params.playerElevateLevel=this.playerElevateLevel)},80)}componentDidRender(){this.initLevelProgressbar()}loadElevateInfo(){if(!this.params.endpoint||!this.params.session)return;const e=[];e.push(this.loadPlayerLevelInfo()),this.params.calculateLevelFlag&&e.push(this.loadLevels()),Promise.all(e).then(t=>{if(console.log("elevate-init",t),this.initLevelProgressbar(),!this.levels)return;this.levels.sort((l,i)=>l.firstEntryPoints>i.firstEntryPoints?1:-1);const a=this.playerElevateLevel.loyaltyPoints;let n=0;this.levels.forEach((l,i)=>{a>l.firstEntryPoints&&(n=i)}),this.playerElevateLeveLoaded.emit({calculatedLevelFlag:n})})}componentWillLoad(){this.loadElevateInfo()}get elevateCardRef(){return r.getElement(this)}static get watchers(){return{params:["onParamsChanged"]}}};I.style=X;const K=":host{display:block}@media screen and (min-width: 501px){.LoyaltyCard .Inner .LevelInfo .ElevateLevel{flex-wrap:nowrap}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{padding-top:11px;margin-left:5px}}@media screen and (max-width: 500px){.LoyaltyCard .Inner .LevelInfo .ElevateLevel{flex-wrap:wrap}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{padding-top:0px;margin-left:0px}}.LoyaltyCard .Inner .LevelProgress{margin-left:0px}.LoyaltyCard .Inner .Row .PointsInfo.ExpirationPoints{text-align:left;color:var(--emw--color-red-50, red)}.LoyaltyCard .Inner .PlayerAvatar .Avatar{display:none}.LoyaltyCard .Inner .PlayerAvatar .Badge{border-radius:50%;background-size:contain;width:100%;height:100%}.LoyaltyCard .Inner .LevelInfo .ElevateLevel{display:flex;flex:1;align-items:center}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{position:relative;padding-left:5px}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate .ExpireTime{margin-left:5px}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .LevelName{padding-left:0;font-size:var(--emw--elevate-fontsize-2xlarge, 21px);position:relative;width:auto;color:var(--emw--elevate-color-levelname, #FFBD2B);font-weight:bold}.LoyaltyCard .PointsRange{display:flex;justify-content:space-between}.LoyaltyCard .PointsRange .PointsInfo{width:auto}.LoyaltyCard .NextLevelTip{text-align:right;font-size:11px;color:var(--emw--color-black, #000);opacity:0.8;font-weight:bold}",Y=K,P=class{constructor(e){r.registerInstance(this,e),this.endpoint=void 0,this.theme="Dark",this.session=void 0,this.playerAvatarUrl=void 0,this.language="en",this.playerName=void 0,this.dateFormat="yyyy-MM-dd",this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.pointExpireString=void 0,this.playerElevateLevel=void 0,this.elevateWalletTotal=void 0}onSessionOrEndpointChange(){this.paramProxy=Object.assign(Object.assign({},this.paramProxy),{session:this.session,endpoint:this.endpoint,language:this.language})}playerElevateLeveLoadedHandler(e){e.detail&&(e.detail.elevateLevelWalletTotal&&(this.elevateWalletTotal=e.detail.elevateLevelWalletTotal),e.detail.elevateLevel&&(this.playerElevateLevel=e.detail.elevateLevel),e.detail.pointExpireString&&(this.pointExpireString=e.detail.xpExpireString))}onRedeemClick(){window.postMessage({type:"BEERedeemClicked"},window.location.href)}componentWillLoad(){this.paramProxy={endpoint:this.endpoint,session:this.session,language:this.language}}getNextLevelPoints(){var e,t;return!((e=this.playerElevateLevel)===null||e===void 0)&&e.nextLevel?(t=this.playerElevateLevel)===null||t===void 0?void 0:t.nextLevel.entryPoints:-1}getNextLevelTips(){var e;let t=(e=this.playerElevateLevel)===null||e===void 0?void 0:e.nextLevel;if(this.playerElevateLevel&&t){const a=(t.entryPoints-this.playerElevateLevel.loyaltyPoints).toFixed(2);return y.translateWithParams("tipsForNextLevel",{pointsToReach:a,levelName:t.name,lang:this.language})}return""}render(){const e=r.getAssetPath("../static/card-ground.svg"),t=r.getAssetPath("../static/card-ground-over.svg");return r.h("div",{key:"39295a651da66747a20554699bba5f96b8ad5c35",class:`ElevateCardWrapper ${this.theme}`},r.h("div",{key:"78c34fe054fc2459f8af3354116cd21a68ce01be",class:"LoyaltyCard Outer",style:{backgroundImage:`url(${e}`}},r.h("general-styling-wrapper",{key:"be6efc6da4c3ccf4cc3ece8ecc73561bae75aa20",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:y.TRANSLATIONS,translationUrl:this.translationUrl}),r.h("player-elevate-card-data",{key:"b53e4b59d4ee55a2f567efa09afab3d72969e6e4",params:this.paramProxy}),r.h("div",{key:"1f3e504440bab2df3a181058fad7149c85c48c14",class:"OuterCover Inner",style:{backgroundImage:`url(${t}`}},r.h("div",{key:"a07c6cd95770dc1bfd3da78b1c7cc8e1367321b1",class:"Content Row"},this.playerElevateLevel&&r.h(r.Fragment,{key:"5c104f5ba1a018219c6ed5f6e50af99b035a0344"},r.h("div",{key:"bd94591e6ab9298ab7c769fa48efaf314dc1a63b",class:"PlayerImg"},r.h(o.PlayerAvatar,{key:"928849ce86d8c7a483eba7850efc83f8149bae43",onlyBadge:!0,loyaltyIconUrl:this.playerElevateLevel.presentation.asset})),r.h("div",{key:"37192c9b8502eb3c7d93914369df2d784c17e9f7",class:`LevelInfo ${this.playerElevateLevel.name}`},r.h(o.PlayerElevateLoyaltyLevel,{key:"2684a177f4bb1053c4587fd4158666fb35ca23f4",hideInfo:!0,level:this.playerElevateLevel.name,expireTime:this.playerElevateLevel.expireTime,dateFormat:this.dateFormat}),r.h("div",{key:"173a37c63868f2d900c12af3ffc2d9a4a57550e4",class:"PointsRange"},r.h(o.PlayerPoints,{key:"a7111154f7dc547e0b05c70d24508bdd75c5d882",loyaltyPoints:this.playerElevateLevel.loyaltyPoints,language:this.language}),r.h(o.PlayerPoints,{key:"ad31574e7db81a7ecb7a06b28b1d4968cbcab93e",loyaltyPoints:this.getNextLevelPoints(),language:this.language})),r.h(o.PlayerLoyaltyProcess,{key:"88ddfdb326edfb1de9519da6b3d0e5b514725e27"}),r.h("div",{key:"b9c79555a8001bd2c754d7573df04016da235c84",class:"NextLevelTip"},this.getNextLevelTips()),this.pointExpireString&&r.h("div",{key:"02da725060c9db4a8c1c2e8bad3426894d7f8f2c",class:"PointsInfo ExpirationPoints"},this.pointExpireString," ")))))))}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};P.style=Y;exports.gamification_dropdown=B.GamificationDropdown;exports.general_styling_wrapper=L;exports.player_elevate_card_data=I;exports.player_elevate_loyaltycard=P;
|