@everymatrix/casino-header-controller 1.75.0 → 1.76.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/{CasinoHamburgerMenu-BhQwqDES.js → CasinoHamburgerMenu-BXmoYELH.js} +920 -899
- package/components/{CasinoHamburgerMenu-B2MD3MtF.js → CasinoHamburgerMenu-DFge6wNk.js} +867 -846
- package/components/CasinoHamburgerMenu-DzBitsDo.cjs +21 -0
- package/components/{CasinoHeaderController-DrNUWr21.js → CasinoHeaderController-CqJEUFU1.js} +72 -72
- package/components/{CasinoHeaderController-0F58MhJD.js → CasinoHeaderController-DqCbdev2.js} +74 -74
- package/components/{CasinoHeaderController-D3CRMDJO.cjs → CasinoHeaderController-tklzcbLB.cjs} +1 -1
- package/components/{CasinoSlider-CeIar2zF.js → CasinoSlider-5zRk3Nyr.js} +57 -57
- package/components/{CasinoSlider-DmHACRGm.js → CasinoSlider-sjpfJOOy.js} +55 -55
- package/components/{CasinoSlider-BFndmQiW.cjs → CasinoSlider-wXw8RHQe.cjs} +1 -1
- package/components/PlayerAccountBalanceModal-B9zCQZQg.js +1409 -0
- package/components/PlayerAccountBalanceModal-Cq-1fTb6.js +1380 -0
- package/components/PlayerAccountBalanceModal-ECuzDR7V.cjs +7 -0
- package/components/PlayerDeposit-BJEnlNvH.cjs +1 -0
- package/components/{PlayerDeposit-Blf-kZ4t.js → PlayerDeposit-CwH_m-vi.js} +71 -71
- package/components/{PlayerDeposit-DS6sQJMo.js → PlayerDeposit-gnIH-WO7.js} +71 -71
- package/es2015/casino-header-controller.cjs +1 -1
- package/es2015/casino-header-controller.js +1 -1
- package/esnext/casino-header-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/{gamification-dropdown-drtHPn9c.js → gamification-dropdown-0FYjENuC.js} +1 -1
- package/stencil/{gamification-dropdown-60536faa-fBm4KcQa.js → gamification-dropdown-60536faa-ByoQkowS.js} +1 -1
- package/stencil/{gamification-dropdown-60536faa-b2-gKj-C.js → gamification-dropdown-60536faa-CdoDh_iS.js} +1 -1
- package/stencil/{gamification-dropdown-60536faa-CkmaCt3Q.cjs → gamification-dropdown-60536faa-jADsXxs4.cjs} +1 -1
- package/stencil/{gamification-dropdown-edMbhxDe.cjs → gamification-dropdown-BEAgTdVm.cjs} +1 -1
- package/stencil/{gamification-dropdown-D5c135Qe.js → gamification-dropdown-BYwIF9Gl.js} +1 -1
- package/stencil/{gamification-dropdown_4-C-ULhaax.js → gamification-dropdown_4-0STJmTu3.js} +5 -5
- package/stencil/{gamification-dropdown_4-vZb_TDYi.js → gamification-dropdown_4-Cn2nDa12.js} +5 -5
- package/stencil/gamification-dropdown_4-wVf8PnId.cjs +192 -0
- package/stencil/index-1ef3a64c-B8rbe1el.cjs +1 -0
- package/stencil/index-1ef3a64c-BEUZTO5_.js +556 -0
- package/stencil/index-1ef3a64c-CbJ3YCKZ.js +572 -0
- package/stencil/{index-71b1bdfa-BwU-ZobY.js → index-71b1bdfa-CqsRB5Zq.js} +264 -268
- package/stencil/index-71b1bdfa-DWJfvSms.js +753 -0
- package/stencil/index-71b1bdfa-aT2URAOG.cjs +1 -0
- package/stencil/{player-elevate-card-DouGzeSQ.cjs → player-elevate-card-C_bGjWZ4.cjs} +1 -1
- package/stencil/{player-elevate-card-D2SUJfQQ.js → player-elevate-card-DV79k_97.js} +2 -2
- package/stencil/{player-elevate-card-BjqJ00gW.js → player-elevate-card-D_AqKh09.js} +2 -2
- package/stencil/{player-elevate-card-items-08c6fbd8-Xsq6w4LE.js → player-elevate-card-items-08c6fbd8-CKjKj8rt.js} +235 -237
- package/stencil/player-elevate-card-items-08c6fbd8-CkxD6Q5o.cjs +102 -0
- package/stencil/{player-elevate-card-items-08c6fbd8-DCezar0T.js → player-elevate-card-items-08c6fbd8-DDaPFpxz.js} +235 -237
- package/stencil/{player-elevate-pointcard-B1bT9eUy.js → player-elevate-pointcard-BAE3Vgzi.js} +2 -2
- package/stencil/{player-elevate-pointcard-Dh7dRbip.js → player-elevate-pointcard-BXLJdcos.js} +2 -2
- package/stencil/{player-elevate-pointcard-CGFluXIm.cjs → player-elevate-pointcard-vC-WI2he.cjs} +1 -1
- package/stencil/{player-rakeback-card-DRZs6TNO.js → player-rakeback-card-Ca3Pjwd4.js} +1 -1
- package/stencil/{player-rakeback-card-BfD7gcGR.js → player-rakeback-card-Cj3yH6EJ.js} +1 -1
- package/stencil/{player-rakeback-card-Dm2Xwe4V.cjs → player-rakeback-card-DZVQyKwK.cjs} +1 -1
- package/stencil/{user-deposit-withdrawal-BMH0p3pP.cjs → user-deposit-withdrawal-6OV5s5L0.cjs} +2 -2
- package/stencil/{user-deposit-withdrawal-MEriFskJ.js → user-deposit-withdrawal-BhBUsaq0.js} +1 -1
- package/stencil/{user-deposit-withdrawal-C0pUSCwu.js → user-deposit-withdrawal-BmCnXlz0.js} +1 -1
- package/components/CasinoHamburgerMenu-ClkbM37n.cjs +0 -21
- package/components/PlayerAccountBalanceModal-Cyd68GUD.js +0 -1380
- package/components/PlayerAccountBalanceModal-DF1D9Qn4.js +0 -1409
- package/components/PlayerAccountBalanceModal-DLnlf4pO.cjs +0 -7
- package/components/PlayerDeposit-qG_kO2Rh.cjs +0 -1
- package/stencil/gamification-dropdown_4-CNSh1h1d.cjs +0 -192
- package/stencil/index-1ef3a64c-BC8-LWK-.js +0 -572
- package/stencil/index-1ef3a64c-BTHG-6MK.js +0 -556
- package/stencil/index-1ef3a64c-DWSAxGlI.cjs +0 -1
- package/stencil/index-71b1bdfa-3q2dUmkJ.js +0 -757
- package/stencil/index-71b1bdfa-S-HUlbq9.cjs +0 -1
- package/stencil/player-elevate-card-items-08c6fbd8-B17ziILA.cjs +0 -102
@@ -1,7 +0,0 @@
|
|
1
|
-
"use strict";var et=Object.defineProperty,tt=Object.defineProperties;var nt=Object.getOwnPropertyDescriptors;var je=Object.getOwnPropertySymbols;var at=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable;var Oe=Math.pow,He=(c,n,a)=>n in c?et(c,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):c[n]=a,ze=(c,n)=>{for(var a in n||(n={}))at.call(n,a)&&He(c,a,n[a]);if(je)for(var a of je(n))ot.call(n,a)&&He(c,a,n[a]);return c},Ue=(c,n)=>tt(c,nt(n));var Pe=(c,n,a)=>new Promise((y,f)=>{var u=v=>{try{p(a.next(v))}catch(S){f(S)}},g=v=>{try{p(a.throw(v))}catch(S){f(S)}},p=v=>v.done?y(v.value):Promise.resolve(v.value).then(u,g);p((a=a.apply(c,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoHamburgerMenu-ClkbM37n.cjs");function Ve(c,n){t.addMessages(c,n)}function rt(c){t.$locale.set(c)}const Ge={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 Ne={exports:{}};/** @license
|
2
|
-
* eventsource.js
|
3
|
-
* Available under MIT License (MIT)
|
4
|
-
* https://github.com/Yaffle/EventSource/
|
5
|
-
*/(function(c,n){(function(a){var y=a.setTimeout,f=a.clearTimeout,u=a.XMLHttpRequest,g=a.XDomainRequest,p=a.ActiveXObject,v=a.EventSource,S=a.document,C=a.Promise,_=a.fetch,D=a.Response,x=a.TextDecoder,L=a.TextEncoder,K=a.AbortController;if(typeof window!="undefined"&&typeof S!="undefined"&&!("readyState"in S)&&S.body==null&&(S.readyState="loading",window.addEventListener("load",function(e){S.readyState="complete"},!1)),u==null&&p!=null&&(u=function(){return new p("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(e){function o(){}return o.prototype=e,new o}),Date.now||(Date.now=function(){return new Date().getTime()}),K==null){var ee=_;_=function(e,o){var i=o.signal;return ee(e,{headers:o.headers,credentials:o.credentials,cache:o.cache}).then(function(r){var d=r.body.getReader();return i._reader=d,i._aborted&&i._reader.cancel(),{status:r.status,statusText:r.statusText,headers:r.headers,body:{getReader:function(){return d}}}})},K=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function W(){this.bitsNeeded=0,this.codePoint=0}W.prototype.decode=function(e){function o(T,R,m){if(m===1)return T>=128>>R&&T<<R<=2047;if(m===2)return T>=2048>>R&&T<<R<=55295||T>=57344>>R&&T<<R<=65535;if(m===3)return T>=65536>>R&&T<<R<=1114111;throw new Error}function i(T,R){if(T===6*1)return R>>6>15?3:R>31?2:1;if(T===6*2)return R>15?3:2;if(T===6*3)return 3;throw new Error}for(var r=65533,d="",l=this.bitsNeeded,s=this.codePoint,w=0;w<e.length;w+=1){var b=e[w];l!==0&&(b<128||b>191||!o(s<<6|b&63,l-6,i(l,s)))&&(l=0,s=r,d+=String.fromCharCode(s)),l===0?(b>=0&&b<=127?(l=0,s=b):b>=192&&b<=223?(l=6*1,s=b&31):b>=224&&b<=239?(l=6*2,s=b&15):b>=240&&b<=247?(l=6*3,s=b&7):(l=0,s=r),l!==0&&!o(s,l,i(l,s))&&(l=0,s=r)):(l-=6,s=s<<6|b&63),l===0&&(s<=65535?d+=String.fromCharCode(s):(d+=String.fromCharCode(55296+(s-65535-1>>10)),d+=String.fromCharCode(56320+(s-65535-1&1023))))}return this.bitsNeeded=l,this.codePoint=s,d};var H=function(){try{return new x().decode(new L().encode("test"),{stream:!0})==="test"}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}return!1};(x==null||L==null||!H())&&(x=W);var A=function(){};function B(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=A,this.onload=A,this.onerror=A,this.onreadystatechange=A,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=A}B.prototype.open=function(e,o){this._abort(!0);var i=this,r=this._xhr,d=1,l=0;this._abort=function(m){i._sendTimeout!==0&&(f(i._sendTimeout),i._sendTimeout=0),(d===1||d===2||d===3)&&(d=4,r.onload=A,r.onerror=A,r.onabort=A,r.onprogress=A,r.onreadystatechange=A,r.abort(),l!==0&&(f(l),l=0),m||(i.readyState=4,i.onabort(null),i.onreadystatechange())),d=0};var s=function(){if(d===1){var m=0,M="",oe=void 0;if("contentType"in r)m=200,M="OK",oe=r.contentType;else try{m=r.status,M=r.statusText,oe=r.getResponseHeader("Content-Type")}catch(we){m=0,M="",oe=void 0}m!==0&&(d=2,i.readyState=2,i.status=m,i.statusText=M,i._contentType=oe,i.onreadystatechange())}},w=function(){if(s(),d===2||d===3){d=3;var m="";try{m=r.responseText}catch(M){}i.readyState=3,i.responseText=m,i.onprogress()}},b=function(m,M){if((M==null||M.preventDefault==null)&&(M={preventDefault:A}),w(),d===1||d===2||d===3){if(d=4,l!==0&&(f(l),l=0),i.readyState=4,m==="load")i.onload(M);else if(m==="error")i.onerror(M);else if(m==="abort")i.onabort(M);else throw new TypeError;i.onreadystatechange()}},T=function(m){r!=null&&(r.readyState===4?(!("onload"in r)||!("onerror"in r)||!("onabort"in r))&&b(r.responseText===""?"error":"load",m):r.readyState===3?"onprogress"in r||w():r.readyState===2&&s())},R=function(){l=y(function(){R()},500),r.readyState===3&&w()};"onload"in r&&(r.onload=function(m){b("load",m)}),"onerror"in r&&(r.onerror=function(m){b("error",m)}),"onabort"in r&&(r.onabort=function(m){b("abort",m)}),"onprogress"in r&&(r.onprogress=w),"onreadystatechange"in r&&(r.onreadystatechange=function(m){T(m)}),("contentType"in r||!("ontimeout"in u.prototype))&&(o+=(o.indexOf("?")===-1?"?":"&")+"padding=true"),r.open(e,o,!0),"readyState"in r&&(l=y(function(){R()},0))},B.prototype.abort=function(){this._abort(!1)},B.prototype.getResponseHeader=function(e){return this._contentType},B.prototype.setRequestHeader=function(e,o){var i=this._xhr;"setRequestHeader"in i&&i.setRequestHeader(e,o)},B.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},B.prototype.send=function(){if((!("ontimeout"in u.prototype)||!("sendAsBinary"in u.prototype)&&!("mozAnon"in u.prototype))&&S!=null&&S.readyState!=null&&S.readyState!=="complete"){var e=this;e._sendTimeout=y(function(){e._sendTimeout=0,e.send()},4);return}var o=this._xhr;"withCredentials"in o&&(o.withCredentials=this.withCredentials);try{o.send(void 0)}catch(i){throw i}};function G(e){return e.replace(/[A-Z]/g,function(o){return String.fromCharCode(o.charCodeAt(0)+32)})}function E(e){for(var o=Object.create(null),i=e.split(`\r
|
6
|
-
`),r=0;r<i.length;r+=1){var d=i[r],l=d.split(": "),s=l.shift(),w=l.join(": ");o[G(s)]=w}this._map=o}E.prototype.get=function(e){return this._map[G(e)]},u!=null&&u.HEADERS_RECEIVED==null&&(u.HEADERS_RECEIVED=2);function Y(){}Y.prototype.open=function(e,o,i,r,d,l,s){e.open("GET",d);var w=0;e.onprogress=function(){var T=e.responseText,R=T.slice(w);w+=R.length,i(R)},e.onerror=function(T){T.preventDefault(),r(new Error("NetworkError"))},e.onload=function(){r(null)},e.onabort=function(){r(null)},e.onreadystatechange=function(){if(e.readyState===u.HEADERS_RECEIVED){var T=e.status,R=e.statusText,m=e.getResponseHeader("Content-Type"),M=e.getAllResponseHeaders();o(T,R,m,new E(M))}},e.withCredentials=l;for(var b in s)Object.prototype.hasOwnProperty.call(s,b)&&e.setRequestHeader(b,s[b]);return e.send(),e};function le(e){this._headers=e}le.prototype.get=function(e){return this._headers.get(e)};function te(){}te.prototype.open=function(e,o,i,r,d,l,s){var w=null,b=new K,T=b.signal,R=new x;return _(d,{headers:s,credentials:l?"include":"same-origin",signal:T,cache:"no-store"}).then(function(m){return w=m.body.getReader(),o(m.status,m.statusText,m.headers.get("Content-Type"),new le(m.headers)),new C(function(M,oe){var we=function(){w.read().then(function(U){if(U.done)M(void 0);else{var N=R.decode(U.value,{stream:!0});i(N),we()}}).catch(function(U){oe(U)})};we()})}).catch(function(m){if(m.name!=="AbortError")return m}).then(function(m){r(m)}),{abort:function(){w!=null&&w.cancel(),b.abort()}}};function X(){this._listeners=Object.create(null)}function Q(e){y(function(){throw e},0)}X.prototype.dispatchEvent=function(e){e.target=this;var o=this._listeners[e.type];if(o!=null)for(var i=o.length,r=0;r<i;r+=1){var d=o[r];try{typeof d.handleEvent=="function"?d.handleEvent(e):d.call(this,e)}catch(l){Q(l)}}},X.prototype.addEventListener=function(e,o){e=String(e);var i=this._listeners,r=i[e];r==null&&(r=[],i[e]=r);for(var d=!1,l=0;l<r.length;l+=1)r[l]===o&&(d=!0);d||r.push(o)},X.prototype.removeEventListener=function(e,o){e=String(e);var i=this._listeners,r=i[e];if(r!=null){for(var d=[],l=0;l<r.length;l+=1)r[l]!==o&&d.push(r[l]);d.length===0?delete i[e]:i[e]=d}};function q(e){this.type=e,this.target=void 0}function h(e,o){q.call(this,e),this.data=o.data,this.lastEventId=o.lastEventId}h.prototype=Object.create(q.prototype);function ne(e,o){q.call(this,e),this.status=o.status,this.statusText=o.statusText,this.headers=o.headers}ne.prototype=Object.create(q.prototype);function Te(e,o){q.call(this,e),this.error=o.error}Te.prototype=Object.create(q.prototype);var ye=-1,$=0,ce=1,de=2,ue=-1,Z=0,ge=1,pe=2,Se=3,Re=/^text\/event\-stream(;.*)?$/i,Ce=1e3,Ee=18e6,ve=function(e,o){var i=e==null?o:parseInt(e,10);return i!==i&&(i=o),be(i)},be=function(e){return Math.min(Math.max(e,Ce),Ee)},ae=function(e,o,i){try{typeof o=="function"&&o.call(e,i)}catch(r){Q(r)}};function z(e,o){X.call(this),o=o||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,Me(this,e,o)}function De(){return u!=null&&"withCredentials"in u.prototype||g==null?new u:new g}var Le=_!=null&&D!=null&&"body"in D.prototype;function Me(e,o,i){o=String(o);var r=!!i.withCredentials,d=i.lastEventIdQueryParameterName||"lastEventId",l=be(1e3),s=ve(i.heartbeatTimeout,45e3),w="",b=l,T=!1,R=0,m=i.headers||{},M=i.Transport,oe=Le&&M==null?void 0:new B(M!=null?new M:De()),we=M!=null&&typeof M!="string"?new M:oe==null?new te:new Y,U=void 0,N=0,J=ye,he="",Ae="",re="",xe="",I=Z,Fe=0,fe=0,Je=function(k,F,P,V){if(J===$)if(k===200&&P!=null&&Re.test(P)){J=ce,T=Date.now(),b=l,e.readyState=ce;var j=new ne("open",{status:k,statusText:F,headers:V});e.dispatchEvent(j),ae(e,e.onopen,j)}else{var O="";k!==200?(F&&(F=F.replace(/\s+/g," ")),O="EventSource's response has a status "+k+" "+F+" that is not 200. Aborting the connection."):O="EventSource's response has a Content-Type specifying an unsupported type: "+(P==null?"-":P.replace(/\s+/g," "))+". Aborting the connection.",ke();var j=new ne("error",{status:k,statusText:F,headers:V});e.dispatchEvent(j),ae(e,e.onerror,j),console.error(O)}},$e=function(k){if(J===ce){for(var F=-1,P=0;P<k.length;P+=1){var V=k.charCodeAt(P);(V===10||V===13)&&(F=P)}var j=(F!==-1?xe:"")+k.slice(0,F+1);xe=(F===-1?xe:"")+k.slice(F+1),k!==""&&(T=Date.now(),R+=k.length);for(var O=0;O<j.length;O+=1){var V=j.charCodeAt(O);if(I===ue&&V===10)I=Z;else if(I===ue&&(I=Z),V===13||V===10){if(I!==Z){I===ge&&(fe=O+1);var ie=j.slice(Fe,fe-1),se=j.slice(fe+(fe<O&&j.charCodeAt(fe)===32?1:0),O);ie==="data"?(he+=`
|
7
|
-
`,he+=se):ie==="id"?Ae=se:ie==="event"?re=se:ie==="retry"?(l=ve(se,l),b=l):ie==="heartbeatTimeout"&&(s=ve(se,s),N!==0&&(f(N),N=y(function(){Be()},s)))}if(I===Z){if(he!==""){w=Ae,re===""&&(re="message");var me=new h(re,{data:he.slice(1),lastEventId:Ae});if(e.dispatchEvent(me),re==="open"?ae(e,e.onopen,me):re==="message"?ae(e,e.onmessage,me):re==="error"&&ae(e,e.onerror,me),J===de)return}he="",re=""}I=V===13?ue:Z}else I===Z&&(Fe=O,I=ge),I===ge?V===58&&(fe=O+1,I=pe):I===pe&&(I=Se)}}},Ie=function(k){if(J===ce||J===$){J=ye,N!==0&&(f(N),N=0),N=y(function(){Be()},b),b=be(Math.min(l*16,b*2)),e.readyState=$;var F=new Te("error",{error:k});e.dispatchEvent(F),ae(e,e.onerror,F),k!=null&&console.error(k)}},ke=function(){J=de,U!=null&&(U.abort(),U=void 0),N!==0&&(f(N),N=0),e.readyState=de},Be=function(){if(N=0,J!==ye){if(!T&&U!=null)Ie(new Error("No activity within "+s+" milliseconds. "+(J===$?"No response received.":R+" chars received.")+" Reconnecting.")),U!=null&&(U.abort(),U=void 0);else{var k=Math.max((T||Date.now())+s-Date.now(),1);T=!1,N=y(function(){Be()},k)}return}T=!1,R=0,N=y(function(){Be()},s),J=$,he="",re="",Ae=w,xe="",Fe=0,fe=0,I=Z;var F=o;if(o.slice(0,5)!=="data:"&&o.slice(0,5)!=="blob:"&&w!==""){var P=o.indexOf("?");F=P===-1?o:o.slice(0,P+1)+o.slice(P+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(se,me){return me===d?"":se}),F+=(o.indexOf("?")===-1?"?":"&")+d+"="+encodeURIComponent(w)}var V=e.withCredentials,j={};j.Accept="text/event-stream";var O=e.headers;if(O!=null)for(var ie in O)Object.prototype.hasOwnProperty.call(O,ie)&&(j[ie]=O[ie]);try{U=we.open(oe,Je,$e,Ie,F,V,j)}catch(se){throw ke(),se}};e.url=o,e.readyState=$,e.withCredentials=r,e.headers=m,e._close=ke,Be()}z.prototype=Object.create(X.prototype),z.prototype.CONNECTING=$,z.prototype.OPEN=ce,z.prototype.CLOSED=de,z.prototype.close=function(){this._close()},z.CONNECTING=$,z.OPEN=ce,z.CLOSED=de,z.prototype.withCredentials=void 0;var _e=v;u!=null&&(v==null||!("withCredentials"in v.prototype))&&(_e=z),function(e){{var o=e(n);o!==void 0&&(c.exports=o)}}(function(e){e.EventSourcePolyfill=z,e.NativeEventSource=v,e.EventSource=_e})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:t.commonjsGlobal:globalThis)})(Ne,Ne.exports);var it=Ne.exports;function st(c){t.append_styles(c,"svelte-gv6dm2",'*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}.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;background:transparent;border:none;font:inherit;color:inherit}.ShowBalance .BalanceValue svg{width:16px}.ShowBalance .BalanceValue span{padding-left:8px}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background-color:var(--emw--color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-60%);padding:10px;box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:"";background:var(--emw--color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:60%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;font:inherit}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));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, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.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, #07072A))}.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, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover,.BalanceModalFooter .BalanceModalActionactive{background:var(--emw--header-contrast, var(--emw--color-background, #07072A))}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}')}function Xe(c,n,a){const y=c.slice();return y[49]=n[a],y}function qe(c,n,a){const y=c.slice();return y[52]=n[a],y}function lt(c){let n,a=(c[3].Total?c[5](c[3].Total[0].amount):"0")+"",y,f,u,g,p,v,S,C=c[2]&&Ke(c);return{c(){n=t.element("button"),y=t.text(a),f=t.space(),u=t.element("span"),u.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>',g=t.space(),C&&C.c(),p=t.empty(),t.attr(n,"class","BalanceValue")},m(_,D){t.insert(_,n,D),t.append(n,y),t.append(n,f),t.append(n,u),t.insert(_,g,D),C&&C.m(_,D),t.insert(_,p,D),v||(S=t.listen(n,"click",c[23]),v=!0)},p(_,D){D[0]&8&&a!==(a=(_[3].Total?_[5](_[3].Total[0].amount):"0")+"")&&t.set_data(y,a),_[2]?C?C.p(_,D):(C=Ke(_),C.c(),C.m(p.parentNode,p)):C&&(C.d(1),C=null)},d(_){_&&(t.detach(n),t.detach(g),t.detach(p)),C&&C.d(_),v=!1,S()}}}function ct(c){let n,a=c[4]("Loading")+"",y;return{c(){n=t.element("p"),y=t.text(a)},m(f,u){t.insert(f,n,u),t.append(n,y)},p(f,u){u[0]&16&&a!==(a=f[4]("Loading")+"")&&t.set_data(y,a)},d(f){f&&t.detach(n)}}}function Ke(c){let n,a,y,f,u,g,p=c[4]("Title")+"",v,S,C,_,D,x,L=c[4]("DepositButton")+"",K,ee,W,H=t.ensure_array_like(Object.keys(c[3])),A=[];for(let B=0;B<H.length;B+=1)A[B]=Ye(Xe(c,H,B));return{c(){n=t.element("div"),a=t.element("button"),y=t.space(),f=t.element("div"),u=t.element("div"),g=t.element("p"),v=t.text(p),S=t.space(),C=t.element("div");for(let B=0;B<A.length;B+=1)A[B].c();_=t.space(),D=t.element("div"),x=t.element("button"),K=t.text(L),t.attr(a,"class","BalanceModalClose"),t.attr(g,"class","BalanceModalTitle"),t.attr(u,"class","BalanceModalHeader"),t.attr(C,"class","BalanceModalBody"),t.attr(x,"class","BalanceModalAction"),t.attr(D,"class","BalanceModalFooter"),t.attr(f,"class","BalanceModal"),t.attr(n,"class","BalanceModalWrapper")},m(B,G){t.insert(B,n,G),t.append(n,a),t.append(n,y),t.append(n,f),t.append(f,u),t.append(u,g),t.append(g,v),t.append(f,S),t.append(f,C);for(let E=0;E<A.length;E+=1)A[E]&&A[E].m(C,null);t.append(f,_),t.append(f,D),t.append(D,x),t.append(x,K),ee||(W=[t.listen(a,"click",c[24]),t.listen(x,"click",c[25])],ee=!0)},p(B,G){if(G[0]&16&&p!==(p=B[4]("Title")+"")&&t.set_data(v,p),G[0]&56){H=t.ensure_array_like(Object.keys(B[3]));let E;for(E=0;E<H.length;E+=1){const Y=Xe(B,H,E);A[E]?A[E].p(Y,G):(A[E]=Ye(Y),A[E].c(),A[E].m(C,null))}for(;E<A.length;E+=1)A[E].d(1);A.length=H.length}G[0]&16&&L!==(L=B[4]("DepositButton")+"")&&t.set_data(K,L)},d(B){B&&t.detach(n),t.destroy_each(A,B),ee=!1,t.run_all(W)}}}function We(c){let n,a,y=c[4](c[49])+"",f,u,g=(c[52].productType?c[4](c[52].productType):"")+"",p,v,S,C,_=c[5](c[52].amount)+"",D;return{c(){n=t.element("div"),a=t.element("p"),f=t.text(y),u=t.space(),p=t.text(g),v=t.space(),S=t.element("p"),C=t.element("span"),D=t.text(_),t.attr(a,"class","BalanceModalText"),t.attr(C,"class","BalanceModalAmount"),t.attr(S,"class","BalanceModalValue"),t.attr(n,"class","BalanceModalRowLine")},m(x,L){t.insert(x,n,L),t.append(n,a),t.append(a,f),t.append(a,u),t.append(a,p),t.append(n,v),t.append(n,S),t.append(S,C),t.append(C,D)},p(x,L){L[0]&24&&y!==(y=x[4](x[49])+"")&&t.set_data(f,y),L[0]&24&&g!==(g=(x[52].productType?x[4](x[52].productType):"")+"")&&t.set_data(p,g),L[0]&8&&_!==(_=x[5](x[52].amount)+"")&&t.set_data(D,_)},d(x){x&&t.detach(n)}}}function Ye(c){let n,a,y=t.ensure_array_like(c[3][c[49]]),f=[];for(let u=0;u<y.length;u+=1)f[u]=We(qe(c,y,u));return{c(){n=t.element("div");for(let u=0;u<f.length;u+=1)f[u].c();a=t.space(),t.attr(n,"class","BalanceModalRowBoth")},m(u,g){t.insert(u,n,g);for(let p=0;p<f.length;p+=1)f[p]&&f[p].m(n,null);t.append(n,a)},p(u,g){if(g[0]&56){y=t.ensure_array_like(u[3][u[49]]);let p;for(p=0;p<y.length;p+=1){const v=qe(u,y,p);f[p]?f[p].p(v,g):(f[p]=We(v),f[p].c(),f[p].m(n,a))}for(;p<f.length;p+=1)f[p].d(1);f.length=y.length}},d(u){u&&t.detach(n),t.destroy_each(f,u)}}}function Qe(c){let n,a,y;return{c(){n=t.element("button"),t.attr(n,"class","ShowBalanceModalOverlay")},m(f,u){t.insert(f,n,u),a||(y=t.listen(n,"click",c[26]),a=!0)},p:t.noop,d(f){f&&t.detach(n),a=!1,y()}}}function dt(c){let n,a,y;function f(v,S){return v[1]?ct:lt}let u=f(c),g=u(c),p=c[2]&&Qe(c);return{c(){n=t.element("div"),a=t.element("div"),g.c(),y=t.space(),p&&p.c(),t.attr(a,"class","ShowBalance")},m(v,S){t.insert(v,n,S),t.append(n,a),g.m(a,null),t.append(n,y),p&&p.m(n,null),c[27](n)},p(v,S){u===(u=f(v))&&g?g.p(v,S):(g.d(1),g=u(v),g&&(g.c(),g.m(a,null))),v[2]?p?p.p(v,S):(p=Qe(v),p.c(),p.m(n,null)):p&&(p.d(1),p=null)},i:t.noop,o:t.noop,d(v){v&&t.detach(n),g.d(),p&&p.d(),c[27](null)}}}function ut(c,n,a){let y;t.component_subscribe(c,t.$format,e=>a(4,y=e));let{userid:f=""}=n,{session:u=""}=n,{endpoint:g=""}=n,{lang:p="en"}=n,{mbsource:v}=n,{clientstyling:S=""}=n,{clientstylingurl:C=""}=n,{translationurl:_=""}=n,{gmversion:D="gm16"}=n,{displaybalanceoption:x="All"}=n,{totalcalculationmode:L="totalCashAmount"}=n,{currencylocale:K="en"}=n,{currencydisplay:ee="symbol"}=n,{maximumfractiondigits:W="2"}=n,{minimumfractiondigits:H="0"}=n,{customdisplayformat:A=""}=n,B,G,E=!0,Y=!1,le=!1,te,X="",Q=[],q;const h={},ne=["totalCashAmount","totalRealAmount"],Te=()=>{fetch(_).then(e=>e.json()).then(e=>Object.keys(e).forEach(o=>Ve(o,e[o]))).catch(e=>console.log(e))};Object.keys(Ge).forEach(e=>Ve(e,Ge[e]));const ye=e=>{if(A)return $(e);const o=K||p,i={style:"currency",currency:X,useGrouping:!0,currencyDisplay:ee||"code",maximumFractionDigits:W===""||isNaN(Number(W))?2:Number(W),minimumFractionDigits:H===""||isNaN(Number(H))?0:Number(H)};return new Intl.NumberFormat(o,i).format(e)},$=e=>{const o=[];let i="";for(const r of A)switch(r){default:i+=r;break;case"{":i&&o.push(i),i="";break;case"}":const[d,l]=i.split("|");if(i="",d.toLowerCase()==="currency")i=X;else if(d.toLowerCase()==="amount"){let s=",",w=".",b=2;l&&(l[0]!==" "&&(s=l[0]),l[1]!==" "&&(w=l[1]),l[2]!==" "&&!isNaN(Number(l[2]))&&(b=Number(l[2])));let[T,R]=String(Math.floor(e*Oe(10,b))/Oe(10,b)).split(".");i+=T[0];for(let m=1;m<T.length;++m)(T.length-m)%3===0?i+=s+T[m]:i+=T[m];R&&(i+=w+R)}i&&o.push(i),i="";break}return o.push(i),o.join("")},ce=()=>Pe(this,null,function*(){var o,i,r;a(1,E=!0);const e=new URL(`${g}/v1/player/${f}/account`);try{const d=yield fetch(e,{method:"GET",headers:{"X-SessionID":u}}),l=yield d.json();if(d.ok)Q=l.items,X=(o=Q.find(s=>s.displayName==="Casino"))==null?void 0:o.currency,a(3,h.Total=[{amount:l.totalAmount[X]}],h),a(3,h.Real=[{amount:(i=Q.find(s=>s.displayName==="Casino"))==null?void 0:i.balanceAmount}],h),a(3,h.Bonus=[{amount:(r=Q.find(s=>s.displayName==="UBS"))==null?void 0:r.balanceAmount}],h);else throw new Error("Failed to fetch balance data !")}catch(d){console.log("Balance error: ",d)}finally{a(1,E=!1)}}),de=()=>{a(1,E=!0);const e=new URL(`${g}/v2/player/${f}/balance`),o=new Headers;o.append("X-SessionID",u),fetch(e,{method:"GET",headers:o}).then(r=>r.json()).then(r=>{r[L]||a(7,L=ne[0]);const d=r.items.find(s=>s.type==="Real"&&s.walletAccountType==="Ordinary");if(X=d.currency,le=!!d.productType,a(3,h.Total=[{amount:0}],h),a(3,h.Real=[],h),a(3,h.Bonus=[],h),a(3,h.Credit=[],h),!le){q={lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},a(3,h.Total[0].amount=r[L][X],h);for(const s of r.items)switch(s.type){case"Bonus":h.Bonus.length===0?h.Bonus.push({amount:s.amount}):a(3,h.Bonus[0].amount+=s.amount,h);break;case"Real":if(s.creditLine&&h.Credit.length===0&&h.Credit.push({amount:s.creditLine}),L==="totalRealAmount")continue;h.Real.length===0?h.Real.push({amount:s.amount}):a(3,h.Real[0].amount+=s.amount,h);break}for(const[s,w]of Object.entries(h))w.length<1&&delete h[s];a(1,E=!1);return}q={Casino:{lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},Sports:{lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1}};let l=r.items;x&&x!=="All"&&(l=r.items.filter(s=>s.productType===x));for(const s of l){let w;switch(s.type){case"Bonus":w=h.Bonus.findIndex(b=>b.productType===s.productType),w>0?a(3,h.Bonus[w].amount+=s.amount,h):h.Bonus.push({amount:s.amount,productType:s.productType});break;case"Real":s.creditLine&&h.Credit.push({amount:s.creditLine,productType:s.productType}),w=h.Real.findIndex(b=>b.productType===s.productType),w>0?a(3,h.Real[w].amount+=s.amount,h):h.Real.push({amount:s.amount,productType:s.productType});break}}Se();for(const[s,w]of Object.entries(h))w.length<1&&delete h[s];a(1,E=!1)}).catch(()=>{throw a(1,E=!1),new Error("Failed to fetch balance data !")})},ue=()=>{if(te&&te.close(),u.length<1)return;let e,o;switch(D){case"gm16":e=new URL(`${g}/v2/player/${f}/information/updates`),o=d=>Re(d);break;case"gmcore":e=new URL(`${g}/v1/player/${f}/balance/updates`),o=d=>ge(d);break}const i={accept:"text/event-stream","X-SessionId":u},r=new it.EventSourcePolyfill(e,{headers:i});te=r,r.addEventListener("message",o)},Z=e=>{let o;try{o=JSON.parse(e)}catch(i){console.log("Balance stream failed: ",i);return}return o},ge=e=>{var d,l;const o=Z(e.data);if(!o){ue();return}let i="0";const r=o.balanceChange;Q=Q.map(s=>(r&&r[s.id]&&(s=Ue(ze({},s),{balanceAmount:r[s.id].afterAmount})),i=(parseFloat(s==null?void 0:s.balanceAmount)+parseFloat(i)).toString(),s)),a(3,h.Real=[{amount:(d=Q[0])==null?void 0:d.balanceAmount}],h),a(3,h.Bonus=[{amount:(l=Q[1])==null?void 0:l.balanceAmount}],h),a(3,h.Total=[{amount:Number(i)}],h)},pe=(e,o,i)=>{let r=null;switch(i.walletAccountType){case"Ordinary":(i.afterAmount!==i.affectedAmount||o.lastOrdinaryAfterAmount===0)&&(o.lastOrdinaryAfterAmount=i.afterAmount,o.showCreditLineAfterAmount||(r=i.afterAmount));break;case"CreditLine":i.afterAmount!==0?(r=i.afterAmount,o.showCreditLineAfterAmount=!0):(r=o.lastOrdinaryAfterAmount,o.showCreditLineAfterAmount=!1);break;default:r=i.afterAmount}return r===null?e:r},Se=()=>{switch(L){case"totalCashAmount":let e=0;for(const i of["Real","Bonus"])for(const r of h[i])e+=Math.max(r.amount,0);a(3,h.Total[0].amount=e,h);break;case"totalRealAmount":if(!le)return;let o=0;for(const i of h.Real)o+=i.amount;a(3,h.Total[0].amount=o,h)}},Re=e=>{const o=Z(e.data);if(!o){ue();return}if(Ee(o==null?void 0:o.type)||o.type!=="BALANCE_UPDATE_V2")return;const i=o.body.balanceChange;for(const[r,d]of Object.entries(i))if(L==="totalRealAmount"&&r==="Real"&&!le&&a(3,h.Total[0].amount=pe(h.Total[0].amount,q,d),h),!!h[r])for(const l of h[r]){if(!le){l.amount=r==="Real"?pe(l.amount,q,d):d.afterAmount;continue}d.productType===l.productType&&(l.amount=r==="Real"?pe(l.amount,q[l.productType],d):d.afterAmount)}Se()},Ce=()=>{a(2,Y=!1),window.postMessage({type:"GoToDeposit"},window.location.href),typeof gtag=="function"&>ag("event","GoToDeposit",{context:"PlayerAccountBalanceModal"})},Ee=e=>e==="SESSION_EXPIRATION"?(window.postMessage({type:"SessionExpiration"},window.location.href),!0):!1,ve=()=>{ne.includes(L)||(console.error(`Unsupported value ('${L}') for totalcalculationmode parameter. Only the following values are supported ${ne}. Using default value ('${ne[0]}').`),a(7,L=ne[0]))},be=()=>{switch(rt(p),ve(),D){case"gmcore":ce();break;case"gm16":de();break;default:throw Error(`Invalid apiversion attribute: ${D}`)}},ae=e=>e.data&&e.data.type==="LogoutSuccessfull"&&te.close();t.onMount(()=>(window.addEventListener("message",ae,!1),()=>{window.emMessageBus&&G&&G.unsubscribe(),window.removeEventListener("message",ae),te&&te.close()}));const z=()=>a(2,Y=!0),De=()=>a(2,Y=!1),Le=()=>Ce(),Me=()=>a(2,Y=!1);function _e(e){t.binding_callbacks[e?"unshift":"push"](()=>{B=e,a(0,B)})}return c.$$set=e=>{"userid"in e&&a(8,f=e.userid),"session"in e&&a(9,u=e.session),"endpoint"in e&&a(10,g=e.endpoint),"lang"in e&&a(11,p=e.lang),"mbsource"in e&&a(12,v=e.mbsource),"clientstyling"in e&&a(13,S=e.clientstyling),"clientstylingurl"in e&&a(14,C=e.clientstylingurl),"translationurl"in e&&a(15,_=e.translationurl),"gmversion"in e&&a(16,D=e.gmversion),"displaybalanceoption"in e&&a(17,x=e.displaybalanceoption),"totalcalculationmode"in e&&a(7,L=e.totalcalculationmode),"currencylocale"in e&&a(18,K=e.currencylocale),"currencydisplay"in e&&a(19,ee=e.currencydisplay),"maximumfractiondigits"in e&&a(20,W=e.maximumfractiondigits),"minimumfractiondigits"in e&&a(21,H=e.minimumfractiondigits),"customdisplayformat"in e&&a(22,A=e.customdisplayformat)},c.$$.update=()=>{c.$$.dirty[0]&200448&&g&&f&&u&&p&&D&&x&&be(),c.$$.dirty[0]&67328&&g&&f&&u&&D&&ue(),c.$$.dirty[0]&8193&&S&&B&&t.setClientStyling(B,S),c.$$.dirty[0]&16385&&C&&B&&t.setClientStylingURL(B,C),c.$$.dirty[0]&4097&&B&&t.setStreamStyling(B,`${v}.Style`),c.$$.dirty[0]&32768&&_&&Te()},[B,E,Y,h,y,ye,Ce,L,f,u,g,p,v,S,C,_,D,x,K,ee,W,H,A,z,De,Le,Me,_e]}class Ze extends t.SvelteComponent{constructor(n){super(),t.init(this,n,ut,dt,t.safe_not_equal,{userid:8,session:9,endpoint:10,lang:11,mbsource:12,clientstyling:13,clientstylingurl:14,translationurl:15,gmversion:16,displaybalanceoption:17,totalcalculationmode:7,currencylocale:18,currencydisplay:19,maximumfractiondigits:20,minimumfractiondigits:21,customdisplayformat:22},st,[-1,-1])}get userid(){return this.$$.ctx[8]}set userid(n){this.$$set({userid:n}),t.flush()}get session(){return this.$$.ctx[9]}set session(n){this.$$set({session:n}),t.flush()}get endpoint(){return this.$$.ctx[10]}set endpoint(n){this.$$set({endpoint:n}),t.flush()}get lang(){return this.$$.ctx[11]}set lang(n){this.$$set({lang:n}),t.flush()}get mbsource(){return this.$$.ctx[12]}set mbsource(n){this.$$set({mbsource:n}),t.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(n){this.$$set({clientstyling:n}),t.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(n){this.$$set({clientstylingurl:n}),t.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(n){this.$$set({translationurl:n}),t.flush()}get gmversion(){return this.$$.ctx[16]}set gmversion(n){this.$$set({gmversion:n}),t.flush()}get displaybalanceoption(){return this.$$.ctx[17]}set displaybalanceoption(n){this.$$set({displaybalanceoption:n}),t.flush()}get totalcalculationmode(){return this.$$.ctx[7]}set totalcalculationmode(n){this.$$set({totalcalculationmode:n}),t.flush()}get currencylocale(){return this.$$.ctx[18]}set currencylocale(n){this.$$set({currencylocale:n}),t.flush()}get currencydisplay(){return this.$$.ctx[19]}set currencydisplay(n){this.$$set({currencydisplay:n}),t.flush()}get maximumfractiondigits(){return this.$$.ctx[20]}set maximumfractiondigits(n){this.$$set({maximumfractiondigits:n}),t.flush()}get minimumfractiondigits(){return this.$$.ctx[21]}set minimumfractiondigits(n){this.$$set({minimumfractiondigits:n}),t.flush()}get customdisplayformat(){return this.$$.ctx[22]}set customdisplayformat(n){this.$$set({customdisplayformat:n}),t.flush()}}t.create_custom_element(Ze,{userid:{},session:{},endpoint:{},lang:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},gmversion:{},displaybalanceoption:{},totalcalculationmode:{},currencylocale:{},currencydisplay:{},maximumfractiondigits:{},minimumfractiondigits:{},customdisplayformat:{}},[],[],!0);exports.default=Ze;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHamburgerMenu-ClkbM37n.cjs");function E(s,t){e.addMessages(s,t)}function A(s){e.$locale.set(s)}const L={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 F(s){e.append_styles(s,"svelte-1hczjj2","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, 10px);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, 10px)}")}function H(s){let t,a,o,n,c,m,d,p,f,l,r=s[4]("titleDeposit")+"",u,w,D;return{c(){t=e.element("div"),a=e.svg_element("svg"),o=e.svg_element("defs"),n=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(r),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,n),e.append(n,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),w||(D=e.listen(t,"click",s[18]),w=!0)},p(g,h){h&16&&r!==(r=g[4]("titleDeposit")+"")&&e.set_data(u,r)},d(g){g&&e.detach(t),w=!1,D()}}}function W(s){let t,a,o;return{c(){t=e.element("div"),a=e.element("iframe"),e.src_url_equal(a.src,o=s[3])||e.attr(a,"src",o),e.attr(a,"title","Deposit Iframe"),e.attr(t,"class","DepositIframeWrapper")},m(n,c){e.insert(n,t,c),e.append(t,a)},p(n,c){c&8&&!e.src_url_equal(a.src,o=n[3])&&e.attr(a,"src",o)},d(n){n&&e.detach(t)}}}function G(s){let t,a=s[4]("loading")+"",o;return{c(){t=e.element("p"),o=e.text(a)},m(n,c){e.insert(n,t,c),e.append(t,o)},p(n,c){c&16&&a!==(a=n[4]("loading")+"")&&e.set_data(o,a)},d(n){n&&e.detach(t)}}}function q(s){let t,a,o,n=s[4]("titleDeposit")+"",c,m,d=s[5]&&H(s);function p(r,u){return r[1]?G:W}let f=p(s),l=f(s);return{c(){t=e.element("div"),d&&d.c(),a=e.space(),o=e.element("h2"),c=e.text(n),m=e.space(),l.c(),e.attr(o,"class","DepositTitle "+(s[5]?"DepositTitleNone":"")),e.attr(t,"class","DepositWrapper "+(s[5]?"DepositWrapperMobile":"")),e.set_style(t,"--dynamic-height",s[2])},m(r,u){e.insert(r,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),s[19](t)},p(r,[u]){r[5]&&d.p(r,u),u&16&&n!==(n=r[4]("titleDeposit")+"")&&e.set_data(c,n),f===(f=p(r))&&l?l.p(r,u):(l.d(1),l=f(r),l&&(l.c(),l.m(t,null))),u&4&&e.set_style(t,"--dynamic-height",r[2])},i:e.noop,o:e.noop,d(r){r&&e.detach(t),d&&d.d(),l.d(),s[19](null)}}}function N(s,t,a){let o,n;e.component_subscribe(s,e.$format,i=>a(4,n=i));let{endpoint:c=""}=t,{session:m=""}=t,{playerid:d=""}=t,{lang:p="en"}=t,{hasdefaultamount:f=""}=t,{clientstyling:l=""}=t,{clientstylingurl:r=""}=t,{translationurl:u=""}=t,{currency:w=""}=t,{mbsource:D}=t,{shortcashierenabled:g="false"}=t,h,B=window.navigator.userAgent,v=e.getDevice(B)!=="PC",M=!0,k,C,_=0,S="";const P=()=>{fetch(u).then(y=>y.json()).then(y=>{Object.keys(y).forEach(b=>{E(b,y[b])})}).catch(y=>{console.log(y)})};Object.keys(L).forEach(i=>{E(i,L[i])});const x=()=>{window.postMessage({type:"GoToPreviousRoute",isMobile:v},window.location.href)},T=i=>{if(i.data){switch(i.data.type){case"ProfileDetailsData":a(7,w=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}}},j=()=>{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(w){case"USD":_=.4;break;case"CDF":_=1e3;break}let y={method:"POST",headers:{"X-SessionId":m,currency:w||"EUR",amount:_,cashierMode:"Default",IsShortCashier:g,accept:"application/json"}};fetch(i.href,y).then(b=>b.json()).then(b=>{a(1,M=!1),a(3,S=b.CashierUrl)},b=>{console.error(b)})},I=()=>{A(p)};e.onMount(()=>(window.addEventListener("message",T,!1),()=>{window.emMessageBus&&C&&C.unsubscribe(),window.removeEventListener("message",T)}));const U=()=>x();function z(i){e.binding_callbacks[i?"unshift":"push"](()=>{h=i,a(0,h)})}return s.$$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,r=i.clientstylingurl),"translationurl"in i&&a(15,u=i.translationurl),"currency"in i&&a(7,w=i.currency),"mbsource"in i&&a(16,D=i.mbsource),"shortcashierenabled"in i&&a(17,g=i.shortcashierenabled)},s.$$.update=()=>{s.$$.dirty&2048&&p&&I(),s.$$.dirty&131072&&(o=g.toLocaleLowerCase()==="true"),s.$$.dirty&8193&&l&&h&&e.setClientStyling(h,l),s.$$.dirty&16385&&r&&h&&e.setClientStylingURL(h,r),s.$$.dirty&65537&&D&&h&&e.setStreamStyling(h,`${D}.Style`),s.$$.dirty&32768&&u&&P(),s.$$.dirty&135040&&m&&d&&c&&w&&p&&g&&j()},[h,M,k,S,n,v,x,w,c,m,d,p,f,l,r,u,D,g,U,z]}class R extends e.SvelteComponent{constructor(t){super(),e.init(this,t,N,q,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},F)}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(R,{endpoint:{},session:{},playerid:{},lang:{},hasdefaultamount:{},clientstyling:{},clientstylingurl:{},translationurl:{},currency:{},mbsource:{},shortcashierenabled:{}},[],[],!0);exports.default=R;
|
@@ -1,192 +0,0 @@
|
|
1
|
-
"use strict";var L=(e,t,a)=>new Promise((n,l)=>{var i=c=>{try{o(a.next(c))}catch(h){l(h)}},d=c=>{try{o(a.throw(c))}catch(h){l(h)}},o=c=>c.done?n(c.value):Promise.resolve(c.value).then(i,d);o((a=a.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./gamification-dropdown-60536faa-CkmaCt3Q.cjs"),r=require("./index-71b1bdfa-S-HUlbq9.cjs"),b=require("./locale-B_6Rn5-v.cjs"),s=require("./player-elevate-card-items-08c6fbd8-B17ziILA.cjs"),O=(e,t)=>new Promise(a=>{fetch(e).then(n=>n.json()).then(n=>{Object.keys(n).forEach(l=>{t[l]=t[l]||{},Object.keys(n[l]).forEach(i=>{if(!t.en[i])return;const d=t.en[i];typeof n[l][i]=="object"?(t[l][i]=t[l][i]||Object.assign({},d),Object.keys(n[l][i]).forEach(o=>{t[l][i][o]=n[l][i][o]})):t[l][i]=n[l][i]||Object.assign({},d)})}),a(!0)}).catch(n=>{console.error("Failed to load translations:",n),a(!1)})}),M=":host{display:block}",R=M,I=class{constructor(e){r.registerInstance(this,e),this.stylingAppends=!1,this.clientStyling="",this.clientStylingUrl="",this.mbSource=void 0,this.translationUrl="",this.targetTranslations=void 0}componentDidLoad(){this.el&&(window.emMessageBus!=null?p.setStreamStyling(this.el,`${this.mbSource}.Style`):(this.clientStyling&&p.setClientStyling(this.el,this.clientStyling),this.clientStylingUrl&&p.setClientStylingURL(this.el,this.clientStylingUrl),this.stylingAppends=!0))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}handleClientStylingChange(e,t){e!=t&&p.setClientStyling(this.el,this.clientStyling)}handleClientStylingUrlChange(e,t){e!=t&&this.clientStylingUrl&&p.setClientStylingURL(this.el,this.clientStylingUrl)}componentDidRender(){this.stylingAppends||(this.clientStyling&&p.setClientStyling(this.el,this.clientStyling),this.clientStylingUrl&&p.setClientStylingURL(this.el,this.clientStylingUrl),this.stylingAppends=!0)}componentWillLoad(){return L(this,null,function*(){const e=[];if(this.translationUrl){const t=O(this.translationUrl,this.targetTranslations);e.push(t)}return yield Promise.all(e)})}render(){return r.h("div",{key:"09ad83748bbad518743c8671b986c541c52bf3f0",class:"StyleShell"},r.h("slot",{key:"3b28b776d3944410c717b002b70946d274a4e8e7",name:"mainContent"}))}get el(){return r.getElement(this)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}}};I.style=R;function w(e){s.requiredArgs(1,arguments);var t=s.toDate(e);return t.setHours(0,0,0,0),t}var $=864e5;function U(e,t){s.requiredArgs(2,arguments);var a=w(e),n=w(t),l=a.getTime()-s.getTimezoneOffsetInMilliseconds(a),i=n.getTime()-s.getTimezoneOffsetInMilliseconds(n);return Math.round((l-i)/$)}var N=6e4,q=36e5;function S(e,t){return s.requiredArgs(2,arguments),s.toDate(e).getTime()-s.toDate(t).getTime()}var E={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},W="trunc";function P(e){return e?E[e]:E[W]}function z(e,t,a){s.requiredArgs(2,arguments);var n=S(e,t)/q;return P(a==null?void 0:a.roundingMethod)(n)}function j(e,t,a){s.requiredArgs(2,arguments);var n=S(e,t)/N;return P(a==null?void 0:a.roundingMethod)(n)}function F(e,t){s.requiredArgs(2,arguments);var a=s.toDate(e),n=s.toDate(t);return a.getTime()<n.getTime()}function G(e,t){const a=e.querySelector("#total_level"),n=17,l=6.5,i=a.getBBox().width,d=t>1?1:t,o=d*i-n<0?0:d*i-n,c=e.querySelector("#current_level"),h=e.querySelector("#filter_current_level"),g=e.querySelector("#circle_current_level");a.setAttribute("viewbox",`0 0 ${o} 28`),c.setAttribute("width",`${o}`),g.setAttribute("cx",`${o<l?l:o}`),h.setAttribute("x",`${o-8}`);const y=e.querySelector("#lock"),u=e.querySelector("#filter_heart_ball"),f=e.querySelector("#filter_ball"),T=e.querySelector("#filter_heart"),A=e.querySelector("#filter_lock"),x=e.querySelector("#paint0_linear_ball"),m=e.querySelector("#paint1_linear_lock"),D=e.querySelector("#lock_box"),_=e.querySelector("#heart_box"),B=10,v=i-B;y.setAttribute("cx",`${v}`),m.setAttribute("x1",`${v}`),m.setAttribute("x2",`${v}`),x.setAttribute("x1",`${v-6}`),x.setAttribute("x2",`${v-6+11.2}`),A.setAttribute("x",`${v-6}`),T.setAttribute("x",`${v-6-2}`),f.setAttribute("x",`${v-6-2-2}`),u.setAttribute("x",`${v-6-2-2-4}`),D.setAttribute("x",`${v-6}`),_.setAttribute("x",`${v-6}`),a.parentElement.style.opacity="1"}const H=`: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: var(--emw--border-radius-medium, 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=H,C=class{constructor(e){r.registerInstance(this,e),this.playerElevateLeveLoaded=r.createEvent(this,"playerElevateLeveLoaded",7),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,t){let a="";if(!e||!e.aboutToExpire||e.aboutToExpire.length==0||e.aboutToExpire[0].points<=0)return a;e.aboutToExpire.sort((c,h)=>F(new Date(c.expireTime),new Date(h.expireTime))?-1:1);const n=e.aboutToExpire[0],l=U(new Date(n.expireTime),new Date);let i=0,d=0,o=l===0?`${t}Day`:t;return l<=0&&(i=z(new Date(n.expireTime),new Date,{roundingMethod:"floor"}),o=i>1?`${t}Hours`:`${t}Hour`,i<=0&&(d=j(new Date(n.expireTime),new Date,{roundingMethod:"floor"}),o=d>1?`${t}Minutes`:`${t}Minute`)),a=b.translateWithParams(o,{expirationPoints:n.points,expireDay:Math.max(l,i,d),lang:this.params.language}),a}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,d,o,c;if(!n.success){console.error("Exception when fetch user elevateinfo, ",n.errorCode,n.errorMessage),a(!0);return}window.postMessage({type:"UpdateGamificationXp",points:(i=(l=n.data)===null||l===void 0?void 0:l.level)===null||i===void 0?void 0:i.loyaltyPoints},window.location.href);let h=n.data;this.playerElevateLevel=h.level,this.playerElevateLevel.name=this.playerElevateLevel.presentation.displayName||this.playerElevateLevel.name,this.playerElevateLevel.spendablePoints=((d=h.spendableWallet)===null||d===void 0?void 0:d.total.points)||0,this.playerElevateLeveLoaded.emit({elevateLevel:this.playerElevateLevel});const g=(o=n.data.spendableWallet)===null||o===void 0?void 0:o.total,y=(c=n.data.loyaltyWallet)===null||c===void 0?void 0:c.total;this.playerElevateLeveLoaded.emit({elevateLevelWalletTotal:g,loyaltyWalletTotal:y});let u=this.calcuatePointsToBeExpired(g,"coinsToBeExpired"),f=this.calcuatePointsToBeExpired(y,"pointsToBeExpired");(u||f)&&this.playerElevateLeveLoaded.emit({pointExpireString:u,xpExpireString:f}),t(this.playerElevateLevel)}).catch(n=>{console.log("error ",n),a(!0)}))}setLoyaltyProgress(e){G(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"]}}};C.style=X;const Y=":host{display:block}@media screen and (min-width: 501px){.LoyaltyCard .Inner .LevelInfo .ElevateLevel{flex-wrap:nowrap}.LoyaltyCard .Inner .LevelInfo .ElevateLevel .ExpirationDate{padding-top:6px;margin-left:0px}}@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:0px}.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}",J=Y,k=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 b.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:"aa8f0d13a1e1d26ea7307d05fc50cda507172949",class:`ElevateCardWrapper ${this.theme}`},r.h("div",{key:"485075740ced316bf89f69359bdc8642dbb2af8f",class:"LoyaltyCard Outer",style:{backgroundImage:`url(${e}`}},r.h("general-styling-wrapper",{key:"3648821972ac115a1c33705463cdc2cdb427a95b",clientStyling:this.clientStyling,clientStylingUrl:this.clientStylingUrl,targetTranslations:b.TRANSLATIONS,translationUrl:this.translationUrl,mbSource:this.mbSource}),r.h("player-elevate-card-data",{key:"7b36c46a869bd4b014d1f04dbb718445b23ec964",params:this.paramProxy}),r.h("div",{key:"f4e5aa453459f693e07c166028aec9b0b696c907",class:"OuterCover Inner",style:{backgroundImage:`url(${t}`}},r.h("div",{key:"d5f1894120cba3e7cf3c54b838a025f469bc445e",class:"Content Row"},this.playerElevateLevel&&r.h(r.Fragment,{key:"112ee04598b23dda6911f043101c0c1631454d7f"},r.h("div",{key:"7af4b6e937bbe73cc00aae0f27f8c93da47bb626",class:"PlayerImg"},r.h(s.PlayerAvatar,{key:"1b5037bfa196063f56cccd947c988a3aca0781b0",onlyBadge:!0,loyaltyIconUrl:this.playerElevateLevel.presentation.asset})),r.h("div",{key:"7b714e446f4e01edd4f4aefcc035d070b7d6a47b",class:`LevelInfo ${this.playerElevateLevel.name}`},r.h("div",{key:"37ad8ce5dae374685e74f6772d28e79d251932e3",class:"CardCell ElevateLevel"},r.h("span",{key:"2d9dcf4b08fcecc927d3e8bdca74c75ff4336480",class:"LevelName",title:this.playerElevateLevel.name},this.playerElevateLevel.name)),r.h("div",{key:"cc89cbaa70d9583b9626da15e98f9fd61d82f81f",class:"PointsRange"},r.h(s.PlayerPoints,{key:"32de4cac05a4fd5610af857b25e096a7cb9ba34d",loyaltyPoints:this.playerElevateLevel.loyaltyPoints,language:this.language}),r.h(s.PlayerPoints,{key:"298f492c8991384547c31396fc930b5c21f41501",loyaltyPoints:this.getNextLevelPoints(),language:this.language})),r.h(s.PlayerLoyaltyProcess,{key:"aca4f5642c41db1c4b7fa04411331a5c25c655dd"}),r.h("div",{key:"d841c5df319de105376c6eee24bc685757916aae",class:"NextLevelTip"},this.getNextLevelTips()),this.pointExpireString&&r.h("div",{key:"774279829f3f52ee5696550a855a833b39df8c81",class:"PointsInfo ExpirationPoints"},this.pointExpireString," "),this.playerElevateLevel.expireTime&&r.h(s.LoyaltyLevelExpireDay,{key:"3a4319e502e85b26cb220942492b161ad842be82",expireTime:this.playerElevateLevel.expireTime,dateFormat:this.dateFormat,language:this.language})))))))}static get watchers(){return{session:["onSessionOrEndpointChange"],endpoint:["onSessionOrEndpointChange"],language:["onSessionOrEndpointChange"]}}};k.style=J;exports.gamification_dropdown=p.GamificationDropdown;exports.general_styling_wrapper=I;exports.player_elevate_card_data=C;exports.player_elevate_loyaltycard=k;
|