@everymatrix/casino-header-controller 1.65.0 → 1.65.1
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-B1dY3jHB.js → CasinoHamburgerMenu-BMkeLxFw.js} +907 -886
- package/components/{CasinoHamburgerMenu-pBvrxlJy.js → CasinoHamburgerMenu-CTVc2-UF.js} +851 -830
- package/components/CasinoHamburgerMenu-CrZ5l9tM.cjs +21 -0
- package/components/{CasinoHeaderController-DOdeXoey.js → CasinoHeaderController-Bqi_UEZi.js} +88 -88
- package/components/{CasinoHeaderController-Bn2AwIyI.js → CasinoHeaderController-CvgFMlA6.js} +90 -90
- package/components/{CasinoHeaderController-B0cFJgaJ.cjs → CasinoHeaderController-DNNqI5-z.cjs} +1 -1
- package/components/{CasinoSlider-CKGPxibK.js → CasinoSlider-CTcAOyCp.js} +57 -57
- package/components/{CasinoSlider-BEx_hpVM.js → CasinoSlider-Deb0x84t.js} +88 -88
- package/components/{CasinoSlider-CL_Uac-c.cjs → CasinoSlider-DqTtsMWh.cjs} +1 -1
- package/components/PlayerAccountBalanceModal-BFDpI9Sy.cjs +13 -0
- package/components/PlayerAccountBalanceModal-CNXuqjqU.js +1539 -0
- package/components/PlayerAccountBalanceModal-DbULiu-f.js +1510 -0
- package/components/PlayerDeposit-BXwT7NVp.cjs +1 -0
- package/components/{PlayerDeposit-Byf7G3yu.js → PlayerDeposit-BZuTQSyp.js} +72 -72
- package/components/{PlayerDeposit-C-Fbg92q.js → PlayerDeposit-eY_YGhMJ.js} +72 -72
- 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-8eb8a896-DsjvIRRh.js → gamification-dropdown-8eb8a896-B80HjrXs.js} +1 -1
- package/stencil/{gamification-dropdown-8eb8a896-CxTBD8Oq.js → gamification-dropdown-8eb8a896-Dpy7kYRl.js} +1 -1
- package/stencil/{gamification-dropdown-8eb8a896-BXV0d81L.cjs → gamification-dropdown-8eb8a896-wUq7QkNM.cjs} +1 -1
- package/stencil/{gamification-dropdown-DG0vAJtO.js → gamification-dropdown-BKLERBkj.js} +1 -1
- package/stencil/{gamification-dropdown-C_xYxEL8.js → gamification-dropdown-Ctny0vqq.js} +1 -1
- package/stencil/{gamification-dropdown-DUk8bbFT.cjs → gamification-dropdown-DoTceze_.cjs} +1 -1
- package/stencil/gamification-dropdown_4-B2a2BjCo.cjs +192 -0
- package/stencil/{gamification-dropdown_4-zImC9hF9.js → gamification-dropdown_4-CcWOoutw.js} +4 -4
- package/stencil/{gamification-dropdown_4-Be_N4EeF.js → gamification-dropdown_4-CmDM3hBS.js} +4 -4
- package/stencil/index-1ef3a64c-AMSfdX4B.js +556 -0
- package/stencil/index-1ef3a64c-BlUWL6ud.cjs +1 -0
- package/stencil/index-1ef3a64c-CTdxbgr0.js +572 -0
- package/stencil/index-71b1bdfa-BWeAgaw2.js +753 -0
- package/stencil/index-71b1bdfa-BeszNvNP.cjs +1 -0
- package/stencil/{index-71b1bdfa-Dm7yvsrK.js → index-71b1bdfa-DBUT8z-D.js} +264 -268
- package/stencil/{player-elevate-card-DL6XwNnq.js → player-elevate-card-B70rn287.js} +2 -2
- package/stencil/{player-elevate-card-Cmxvkrge.js → player-elevate-card-DqZR4w--.js} +2 -2
- package/stencil/{player-elevate-card-C6V7VROS.cjs → player-elevate-card-W6LcGGe8.cjs} +1 -1
- package/stencil/{player-elevate-card-items-66be34fb-BUkxBwF8.js → player-elevate-card-items-66be34fb-D7zHppoa.js} +11 -13
- package/stencil/player-elevate-card-items-66be34fb-DBIZuvGZ.cjs +1 -0
- package/stencil/{player-elevate-card-items-66be34fb-BjQeJ-p9.js → player-elevate-card-items-66be34fb-aPLlnN0e.js} +11 -13
- package/stencil/{player-elevate-pointcard-dDiPwAiV.js → player-elevate-pointcard-CBapQeNI.js} +2 -2
- package/stencil/{player-elevate-pointcard-DYOUbwi3.js → player-elevate-pointcard-DREgIjCm.js} +2 -2
- package/stencil/{player-elevate-pointcard-CbCIvh8I.cjs → player-elevate-pointcard-DwDhlXwq.cjs} +1 -1
- package/stencil/{player-rakeback-card-BMHeEc3P.cjs → player-rakeback-card-B0P7gHIA.cjs} +1 -1
- package/stencil/{player-rakeback-card-CxD8OOP-.js → player-rakeback-card-tP823Fs8.js} +1 -1
- package/stencil/{player-rakeback-card-CixEJCwY.js → player-rakeback-card-z_ugBu0q.js} +1 -1
- package/stencil/{user-deposit-withdrawal-Ck524nr-.cjs → user-deposit-withdrawal-BRpNiBnR.cjs} +1 -1
- package/stencil/{user-deposit-withdrawal-CXMt1MVo.js → user-deposit-withdrawal-Dy3WkB23.js} +1 -1
- package/stencil/{user-deposit-withdrawal-DU6VQt9M.js → user-deposit-withdrawal-c_bH3eje.js} +1 -1
- package/components/CasinoHamburgerMenu-CaFkIr3d.cjs +0 -21
- package/components/PlayerAccountBalanceModal-BKMugmnm.js +0 -1539
- package/components/PlayerAccountBalanceModal-CK68FRSV.js +0 -1510
- package/components/PlayerAccountBalanceModal-iP2HDeoz.cjs +0 -13
- package/components/PlayerDeposit-BsUiL_LS.cjs +0 -1
- package/stencil/gamification-dropdown_4-DuMaGjcI.cjs +0 -192
- package/stencil/index-1ef3a64c-C31PLQx3.js +0 -572
- package/stencil/index-1ef3a64c-CkoGfMtU.cjs +0 -1
- package/stencil/index-1ef3a64c-WzZ9mlMM.js +0 -556
- package/stencil/index-71b1bdfa-DzyepuUf.js +0 -757
- package/stencil/index-71b1bdfa-urw3SgKF.cjs +0 -1
- package/stencil/player-elevate-card-items-66be34fb-DeUY02M2.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,st=Object.prototype.propertyIsEnumerable;var ze=(r,e,n)=>e in r?at(r,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[e]=n,Ue=(r,e)=>{for(var n in e||(e={}))it.call(e,n)&&ze(r,n,e[n]);if(He)for(var n of He(e))st.call(e,n)&&ze(r,n,e[n]);return r},Pe=(r,e)=>ot(r,rt(e));var Ge=(r,e,n)=>new Promise((i,d)=>{var u=g=>{try{p(n.next(g))}catch(v){d(v)}},y=g=>{try{p(n.throw(g))}catch(v){d(v)}},p=g=>g.done?i(g.value):Promise.resolve(g.value).then(u,y);p((n=n.apply(r,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoHamburgerMenu-CaFkIr3d.cjs");function Xe(r,e){t.addMessages(r,e)}function lt(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,e){(function(n){var i=n.setTimeout,d=n.clearTimeout,u=n.XMLHttpRequest,y=n.XDomainRequest,p=n.ActiveXObject,g=n.EventSource,v=n.document,x=n.Promise,F=n.fetch,C=n.Response,T=n.TextDecoder,A=n.TextEncoder,z=n.AbortController;if(typeof window!="undefined"&&typeof v!="undefined"&&!("readyState"in v)&&v.body==null&&(v.readyState="loading",window.addEventListener("load",function(a){v.readyState="complete"},!1)),u==null&&p!=null&&(u=function(){return new p("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(a){function o(){}return o.prototype=a,new o}),Date.now||(Date.now=function(){return new Date().getTime()}),z==null){var L=F;F=function(a,o){var c=o.signal;return L(a,{headers:o.headers,credentials:o.credentials,cache:o.cache}).then(function(s){var l=s.body.getReader();return c._reader=l,c._aborted&&c._reader.cancel(),{status:s.status,statusText:s.statusText,headers:s.headers,body:{getReader:function(){return l}}}})},z=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function V(){this.bitsNeeded=0,this.codePoint=0}V.prototype.decode=function(a){function o(E,M,b){if(b===1)return E>=128>>M&&E<<M<=2047;if(b===2)return E>=2048>>M&&E<<M<=55295||E>=57344>>M&&E<<M<=65535;if(b===3)return E>=65536>>M&&E<<M<=1114111;throw new Error}function c(E,M){if(E===6*1)return M>>6>15?3:M>31?2:1;if(E===6*2)return M>15?3:2;if(E===6*3)return 3;throw new Error}for(var s=65533,l="",m=this.bitsNeeded,w=this.codePoint,k=0;k<a.length;k+=1){var _=a[k];m!==0&&(_<128||_>191||!o(w<<6|_&63,m-6,c(m,w)))&&(m=0,w=s,l+=String.fromCharCode(w)),m===0?(_>=0&&_<=127?(m=0,w=_):_>=192&&_<=223?(m=6*1,w=_&31):_>=224&&_<=239?(m=6*2,w=_&15):_>=240&&_<=247?(m=6*3,w=_&7):(m=0,w=s),m!==0&&!o(w,m,c(m,w))&&(m=0,w=s)):(m-=6,w=w<<6|_&63),m===0&&(w<=65535?l+=String.fromCharCode(w):(l+=String.fromCharCode(55296+(w-65535-1>>10)),l+=String.fromCharCode(56320+(w-65535-1&1023))))}return this.bitsNeeded=m,this.codePoint=w,l};var J=function(){try{return new T().decode(new A().encode("test"),{stream:!0})==="test"}catch(a){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+a)}return!1};(T==null||A==null||!J())&&(T=V);var B=function(){};function R(a){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=B,this.onload=B,this.onerror=B,this.onreadystatechange=B,this._contentType="",this._xhr=a,this._sendTimeout=0,this._abort=B}R.prototype.open=function(a,o){this._abort(!0);var c=this,s=this._xhr,l=1,m=0;this._abort=function(b){c._sendTimeout!==0&&(d(c._sendTimeout),c._sendTimeout=0),(l===1||l===2||l===3)&&(l=4,s.onload=B,s.onerror=B,s.onabort=B,s.onprogress=B,s.onreadystatechange=B,s.abort(),m!==0&&(d(m),m=0),b||(c.readyState=4,c.onabort(null),c.onreadystatechange())),l=0};var w=function(){if(l===1){var b=0,O="",oe=void 0;if("contentType"in s)b=200,O="OK",oe=s.contentType;else try{b=s.status,O=s.statusText,oe=s.getResponseHeader("Content-Type")}catch(Se){b=0,O="",oe=void 0}b!==0&&(l=2,c.readyState=2,c.status=b,c.statusText=O,c._contentType=oe,c.onreadystatechange())}},k=function(){if(w(),l===2||l===3){l=3;var b="";try{b=s.responseText}catch(O){}c.readyState=3,c.responseText=b,c.onprogress()}},_=function(b,O){if((O==null||O.preventDefault==null)&&(O={preventDefault:B}),k(),l===1||l===2||l===3){if(l=4,m!==0&&(d(m),m=0),c.readyState=4,b==="load")c.onload(O);else if(b==="error")c.onerror(O);else if(b==="abort")c.onabort(O);else throw new TypeError;c.onreadystatechange()}},E=function(b){s!=null&&(s.readyState===4?(!("onload"in s)||!("onerror"in s)||!("onabort"in s))&&_(s.responseText===""?"error":"load",b):s.readyState===3?"onprogress"in s||k():s.readyState===2&&w())},M=function(){m=i(function(){M()},500),s.readyState===3&&k()};"onload"in s&&(s.onload=function(b){_("load",b)}),"onerror"in s&&(s.onerror=function(b){_("error",b)}),"onabort"in s&&(s.onabort=function(b){_("abort",b)}),"onprogress"in s&&(s.onprogress=k),"onreadystatechange"in s&&(s.onreadystatechange=function(b){E(b)}),("contentType"in s||!("ontimeout"in u.prototype))&&(o+=(o.indexOf("?")===-1?"?":"&")+"padding=true"),s.open(a,o,!0),"readyState"in s&&(m=i(function(){M()},0))},R.prototype.abort=function(){this._abort(!1)},R.prototype.getResponseHeader=function(a){return this._contentType},R.prototype.setRequestHeader=function(a,o){var c=this._xhr;"setRequestHeader"in c&&c.setRequestHeader(a,o)},R.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},R.prototype.send=function(){if((!("ontimeout"in u.prototype)||!("sendAsBinary"in u.prototype)&&!("mozAnon"in u.prototype))&&v!=null&&v.readyState!=null&&v.readyState!=="complete"){var a=this;a._sendTimeout=i(function(){a._sendTimeout=0,a.send()},4);return}var o=this._xhr;"withCredentials"in o&&(o.withCredentials=this.withCredentials);try{o.send(void 0)}catch(c){throw c}};function j(a){return a.replace(/[A-Z]/g,function(o){return String.fromCharCode(o.charCodeAt(0)+32)})}function D(a){for(var o=Object.create(null),c=a.split(`\r
|
6
|
-
`),s=0;s<c.length;s+=1){var l=c[s],m=l.split(": "),w=m.shift(),k=m.join(": ");o[j(w)]=k}this._map=o}D.prototype.get=function(a){return this._map[j(a)]},u!=null&&u.HEADERS_RECEIVED==null&&(u.HEADERS_RECEIVED=2);function Q(){}Q.prototype.open=function(a,o,c,s,l,m,w){a.open("GET",l);var k=0;a.onprogress=function(){var E=a.responseText,M=E.slice(k);k+=M.length,c(M)},a.onerror=function(E){E.preventDefault(),s(new Error("NetworkError"))},a.onload=function(){s(null)},a.onabort=function(){s(null)},a.onreadystatechange=function(){if(a.readyState===u.HEADERS_RECEIVED){var E=a.status,M=a.statusText,b=a.getResponseHeader("Content-Type"),O=a.getAllResponseHeaders();o(E,M,b,new D(O))}},a.withCredentials=m;for(var _ in w)Object.prototype.hasOwnProperty.call(w,_)&&a.setRequestHeader(_,w[_]);return a.send(),a};function ne(a){this._headers=a}ne.prototype.get=function(a){return this._headers.get(a)};function le(){}le.prototype.open=function(a,o,c,s,l,m,w){var k=null,_=new z,E=_.signal,M=new T;return F(l,{headers:w,credentials:m?"include":"same-origin",signal:E,cache:"no-store"}).then(function(b){return k=b.body.getReader(),o(b.status,b.statusText,b.headers.get("Content-Type"),new ne(b.headers)),new x(function(O,oe){var Se=function(){k.read().then(function(K){if(K.done)O(void 0);else{var U=M.decode(K.value,{stream:!0});c(U),Se()}}).catch(function(K){oe(K)})};Se()})}).catch(function(b){if(b.name!=="AbortError")return b}).then(function(b){s(b)}),{abort:function(){k!=null&&k.cancel(),_.abort()}}};function X(){this._listeners=Object.create(null)}function ce(a){i(function(){throw a},0)}X.prototype.dispatchEvent=function(a){a.target=this;var o=this._listeners[a.type];if(o!=null)for(var c=o.length,s=0;s<c;s+=1){var l=o[s];try{typeof l.handleEvent=="function"?l.handleEvent(a):l.call(this,a)}catch(m){ce(m)}}},X.prototype.addEventListener=function(a,o){a=String(a);var c=this._listeners,s=c[a];s==null&&(s=[],c[a]=s);for(var l=!1,m=0;m<s.length;m+=1)s[m]===o&&(l=!0);l||s.push(o)},X.prototype.removeEventListener=function(a,o){a=String(a);var c=this._listeners,s=c[a];if(s!=null){for(var l=[],m=0;m<s.length;m+=1)s[m]!==o&&l.push(s[m]);l.length===0?delete c[a]:c[a]=l}};function h(a){this.type=a,this.target=void 0}function de(a,o){h.call(this,a),this.data=o.data,this.lastEventId=o.lastEventId}de.prototype=Object.create(h.prototype);function be(a,o){h.call(this,a),this.status=o.status,this.statusText=o.statusText,this.headers=o.headers}be.prototype=Object.create(h.prototype);function we(a,o){h.call(this,a),this.error=o.error}we.prototype=Object.create(h.prototype);var Be=-1,ee=0,ue=1,ae=2,me=-1,te=0,pe=1,Ce=2,De=3,Ae=/^text\/event\-stream(;.*)?$/i,Me=1e3,Le=18e6,ge=function(a,o){var c=a==null?o:parseInt(a,10);return c!==c&&(c=o),Te(c)},Te=function(a){return Math.min(Math.max(a,Me),Le)},fe=function(a,o,c){try{typeof o=="function"&&o.call(a,c)}catch(s){ce(s)}};function q(a,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,f(this,a,o)}function Fe(){return u!=null&&"withCredentials"in u.prototype||y==null?new u:new y}var ke=F!=null&&C!=null&&"body"in C.prototype;function f(a,o,c){o=String(o);var s=!!c.withCredentials,l=c.lastEventIdQueryParameterName||"lastEventId",m=Te(1e3),w=ge(c.heartbeatTimeout,45e3),k="",_=m,E=!1,M=0,b=c.headers||{},O=c.Transport,oe=ke&&O==null?void 0:new R(O!=null?new O:Fe()),Se=O!=null&&typeof O!="string"?new O:oe==null?new le:new Q,K=void 0,U=0,Z=Be,ye="",Re="",re="",Ee="",P=te,Oe=0,he=0,tt=function(I,N,W,Y){if(Z===ee)if(I===200&&W!=null&&Ae.test(W)){Z=ue,E=Date.now(),_=m,a.readyState=ue;var G=new be("open",{status:I,statusText:N,headers:Y});a.dispatchEvent(G),fe(a,a.onopen,G)}else{var H="";I!==200?(N&&(N=N.replace(/\s+/g," ")),H="EventSource's response has a status "+I+" "+N+" that is not 200. Aborting the connection."):H="EventSource's response has a Content-Type specifying an unsupported type: "+(W==null?"-":W.replace(/\s+/g," "))+". Aborting the connection.",Ne();var G=new be("error",{status:I,statusText:N,headers:Y});a.dispatchEvent(G),fe(a,a.onerror,G),console.error(H)}},nt=function(I){if(Z===ue){for(var N=-1,W=0;W<I.length;W+=1){var Y=I.charCodeAt(W);(Y===10||Y===13)&&(N=W)}var G=(N!==-1?Ee:"")+I.slice(0,N+1);Ee=(N===-1?Ee:"")+I.slice(N+1),I!==""&&(E=Date.now(),M+=I.length);for(var H=0;H<G.length;H+=1){var Y=G.charCodeAt(H);if(P===me&&Y===10)P=te;else if(P===me&&(P=te),Y===13||Y===10){if(P!==te){P===pe&&(he=H+1);var ie=G.slice(Oe,he-1),se=G.slice(he+(he<H&&G.charCodeAt(he)===32?1:0),H);ie==="data"?(ye+=`
|
7
|
-
`,ye+=se):ie==="id"?Re=se:ie==="event"?re=se:ie==="retry"?(m=ge(se,m),_=m):ie==="heartbeatTimeout"&&(w=ge(se,w),U!==0&&(d(U),U=i(function(){_e()},w)))}if(P===te){if(ye!==""){k=Re,re===""&&(re="message");var ve=new de(re,{data:ye.slice(1),lastEventId:Re});if(a.dispatchEvent(ve),re==="open"?fe(a,a.onopen,ve):re==="message"?fe(a,a.onmessage,ve):re==="error"&&fe(a,a.onerror,ve),Z===ae)return}ye="",re=""}P=Y===13?me:te}else P===te&&(Oe=H,P=pe),P===pe?Y===58&&(he=H+1,P=Ce):P===Ce&&(P=De)}}},je=function(I){if(Z===ue||Z===ee){Z=Be,U!==0&&(d(U),U=0),U=i(function(){_e()},_),_=Te(Math.min(m*16,_*2)),a.readyState=ee;var N=new we("error",{error:I});a.dispatchEvent(N),fe(a,a.onerror,N),I!=null&&console.error(I)}},Ne=function(){Z=ae,K!=null&&(K.abort(),K=void 0),U!==0&&(d(U),U=0),a.readyState=ae},_e=function(){if(U=0,Z!==Be){if(!E&&K!=null)je(new Error("No activity within "+w+" milliseconds. "+(Z===ee?"No response received.":M+" chars received.")+" Reconnecting.")),K!=null&&(K.abort(),K=void 0);else{var I=Math.max((E||Date.now())+w-Date.now(),1);E=!1,U=i(function(){_e()},I)}return}E=!1,M=0,U=i(function(){_e()},w),Z=ee,ye="",re="",Re=k,Ee="",Oe=0,he=0,P=te;var N=o;if(o.slice(0,5)!=="data:"&&o.slice(0,5)!=="blob:"&&k!==""){var W=o.indexOf("?");N=W===-1?o:o.slice(0,W+1)+o.slice(W+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(se,ve){return ve===l?"":se}),N+=(o.indexOf("?")===-1?"?":"&")+l+"="+encodeURIComponent(k)}var Y=a.withCredentials,G={};G.Accept="text/event-stream";var H=a.headers;if(H!=null)for(var ie in H)Object.prototype.hasOwnProperty.call(H,ie)&&(G[ie]=H[ie]);try{K=Se.open(oe,tt,nt,je,N,Y,G)}catch(se){throw Ne(),se}};a.url=o,a.readyState=ee,a.withCredentials=s,a.headers=b,a._close=Ne,_e()}q.prototype=Object.create(X.prototype),q.prototype.CONNECTING=ee,q.prototype.OPEN=ue,q.prototype.CLOSED=ae,q.prototype.close=function(){this._close()},q.CONNECTING=ee,q.OPEN=ue,q.CLOSED=ae,q.prototype.withCredentials=void 0;var S=g;u!=null&&(g==null||!("withCredentials"in g.prototype))&&(S=q),function(a){{var o=a(e);o!==void 0&&(r.exports=o)}}(function(a){a.EventSourcePolyfill=q,a.NativeEventSource=g,a.EventSource=S})})(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(e){return Math.round(e)},Ve=function(e){return Math.pow(10,e)},ut=function(e,n){return $e(e/n)*n},ft=/(\d)(?=(\d{3})+\b)/g,pt=/(\d)(?=(\d\d)+\d\b)/g;function $(r,e){var n=this;if(!(n instanceof $))return new $(r,e);var i=Object.assign({},dt,e),d=Ve(i.precision),u=xe(r,i);n.intValue=u,n.value=u/d,i.increment=i.increment||1/d,i.useVedic?i.groups=pt:i.groups=ft,this.s=i,this.p=d}function xe(r,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=0,d=e.decimal,u=e.errorOnInvalid,y=e.precision,p=e.fromCents,g=Ve(y),v=typeof r=="number",x=r instanceof $;if(x&&p)return r.intValue;if(v||x)i=x?r.value:r;else if(typeof r=="string"){var F=new RegExp("[^-\\d"+d+"]","g"),C=new RegExp("\\"+d,"g");i=r.replace(/\((.*)\)/,"-$1").replace(F,"").replace(C,"."),i=i||0}else{if(u)throw Error("Invalid Input");i=0}return p||(i*=g,i=i.toFixed(4)),n?$e(i):i}function ht(r,e){var n=e.pattern,i=e.negativePattern,d=e.symbol,u=e.separator,y=e.decimal,p=e.groups,g=(""+r).replace(/^-/,"").split("."),v=g[0],x=g[1];return(r.value>=0?n:i).replace("!",d).replace("#",v.replace(p,"$1"+u)+(x?y+x:""))}$.prototype={add:function(e){var n=this.intValue,i=this.s,d=this.p;return $((n+=xe(e,i))/(i.fromCents?1:d),i)},subtract:function(e){var n=this.intValue,i=this.s,d=this.p;return $((n-=xe(e,i))/(i.fromCents?1:d),i)},multiply:function(e){var n=this.intValue,i=this.s;return $((n*=e)/(i.fromCents?1:Ve(i.precision)),i)},divide:function(e){var n=this.intValue,i=this.s;return $(n/=xe(e,i,!1),i)},distribute:function(e){for(var n=this.intValue,i=this.p,d=this.s,u=[],y=Math[n>=0?"floor":"ceil"](n/e),p=Math.abs(n-y*e),g=d.fromCents?1:i;e!==0;e--){var v=$(y/g,d);p-- >0&&(v=v[n>=0?"add":"subtract"](1/g)),u.push(v)}return u},dollars:function(){return~~this.value},cents:function(){var e=this.intValue,n=this.p;return~~(e%n)},format:function(e){var n=this.s;return typeof e=="function"?e(this,n):n.format(this,Object.assign({},n,e))},toString:function(){var e=this.intValue,n=this.p,i=this.s;return ut(e/n,i.increment).toFixed(i.precision)},toJSON:function(){return this.value}};function mt(r){t.append_styles(r,"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 Ke(r,e,n){const i=r.slice();return i[47]=e[n],i}function We(r,e,n){const i=r.slice();return i[50]=e[n],i}function gt(r){let e,n=(r[4].Total?r[6](r[4].Total[0].amount):"0")+"",i,d,u,y,p,g,v,x,F,C=r[2]&&Ye(r);return{c(){e=t.element("button"),i=t.text(n),d=t.space(),u=t.text(r[3]),y=t.space(),p=t.element("span"),p.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(),v=t.empty(),t.attr(e,"class","BalanceValue")},m(T,A){t.insert(T,e,A),t.append(e,i),t.append(e,d),t.append(e,u),t.append(e,y),t.append(e,p),t.insert(T,g,A),C&&C.m(T,A),t.insert(T,v,A),x||(F=t.listen(e,"click",r[23]),x=!0)},p(T,A){A[0]&16&&n!==(n=(T[4].Total?T[6](T[4].Total[0].amount):"0")+"")&&t.set_data(i,n),A[0]&8&&t.set_data(u,T[3]),T[2]?C?C.p(T,A):(C=Ye(T),C.c(),C.m(v.parentNode,v)):C&&(C.d(1),C=null)},d(T){T&&(t.detach(e),t.detach(g),t.detach(v)),C&&C.d(T),x=!1,F()}}}function yt(r){let e,n=r[5]("Loading")+"",i;return{c(){e=t.element("p"),i=t.text(n)},m(d,u){t.insert(d,e,u),t.append(e,i)},p(d,u){u[0]&32&&n!==(n=d[5]("Loading")+"")&&t.set_data(i,n)},d(d){d&&t.detach(e)}}}function Ye(r){let e,n,i,d,u,y,p=r[5]("Title")+"",g,v,x,F,C,T,A=r[5]("DepositButton")+"",z,L,V,J=t.ensure_array_like(Object.keys(r[4])),B=[];for(let R=0;R<J.length;R+=1)B[R]=Qe(Ke(r,J,R));return{c(){e=t.element("div"),n=t.element("button"),i=t.space(),d=t.element("div"),u=t.element("div"),y=t.element("p"),g=t.text(p),v=t.space(),x=t.element("div");for(let R=0;R<B.length;R+=1)B[R].c();F=t.space(),C=t.element("div"),T=t.element("button"),z=t.text(A),t.attr(n,"class","BalanceModalClose"),t.attr(y,"class","BalanceModalTitle"),t.attr(u,"class","BalanceModalHeader"),t.attr(x,"class","BalanceModalBody"),t.attr(T,"class","BalanceModalAction"),t.attr(C,"class","BalanceModalFooter"),t.attr(d,"class","BalanceModal"),t.attr(e,"class","BalanceModalWrapper")},m(R,j){t.insert(R,e,j),t.append(e,n),t.append(e,i),t.append(e,d),t.append(d,u),t.append(u,y),t.append(y,g),t.append(d,v),t.append(d,x);for(let D=0;D<B.length;D+=1)B[D]&&B[D].m(x,null);t.append(d,F),t.append(d,C),t.append(C,T),t.append(T,z),L||(V=[t.listen(n,"click",r[24]),t.listen(T,"click",r[25])],L=!0)},p(R,j){if(j[0]&32&&p!==(p=R[5]("Title")+"")&&t.set_data(g,p),j[0]&120){J=t.ensure_array_like(Object.keys(R[4]));let D;for(D=0;D<J.length;D+=1){const Q=Ke(R,J,D);B[D]?B[D].p(Q,j):(B[D]=Qe(Q),B[D].c(),B[D].m(x,null))}for(;D<B.length;D+=1)B[D].d(1);B.length=J.length}j[0]&32&&A!==(A=R[5]("DepositButton")+"")&&t.set_data(z,A)},d(R){R&&t.detach(e),t.destroy_each(B,R),L=!1,t.run_all(V)}}}function Je(r){let e,n,i=r[5](r[47])+"",d,u,y=(r[50].productType?r[5](r[50].productType):"")+"",p,g,v,x,F=(r[50].amount?r[6](r[50].amount):"0")+"",C,T,A,z;return{c(){e=t.element("div"),n=t.element("p"),d=t.text(i),u=t.space(),p=t.text(y),g=t.space(),v=t.element("p"),x=t.element("span"),C=t.text(F),T=t.space(),A=t.element("span"),z=t.text(r[3]),t.attr(n,"class","BalanceModalText"),t.attr(x,"class","BalanceModalAmount"),t.attr(A,"class","BalanceModalCurrency"),t.attr(v,"class","BalanceModalValue"),t.attr(e,"class","BalanceModalRowLine")},m(L,V){t.insert(L,e,V),t.append(e,n),t.append(n,d),t.append(n,u),t.append(n,p),t.append(e,g),t.append(e,v),t.append(v,x),t.append(x,C),t.append(v,T),t.append(v,A),t.append(A,z)},p(L,V){V[0]&48&&i!==(i=L[5](L[47])+"")&&t.set_data(d,i),V[0]&48&&y!==(y=(L[50].productType?L[5](L[50].productType):"")+"")&&t.set_data(p,y),V[0]&16&&F!==(F=(L[50].amount?L[6](L[50].amount):"0")+"")&&t.set_data(C,F),V[0]&8&&t.set_data(z,L[3])},d(L){L&&t.detach(e)}}}function Qe(r){let e,n,i=t.ensure_array_like(r[4][r[47]]),d=[];for(let u=0;u<i.length;u+=1)d[u]=Je(We(r,i,u));return{c(){e=t.element("div");for(let u=0;u<d.length;u+=1)d[u].c();n=t.space(),t.attr(e,"class","BalanceModalRowBoth")},m(u,y){t.insert(u,e,y);for(let p=0;p<d.length;p+=1)d[p]&&d[p].m(e,null);t.append(e,n)},p(u,y){if(y[0]&120){i=t.ensure_array_like(u[4][u[47]]);let p;for(p=0;p<i.length;p+=1){const g=We(u,i,p);d[p]?d[p].p(g,y):(d[p]=Je(g),d[p].c(),d[p].m(e,n))}for(;p<d.length;p+=1)d[p].d(1);d.length=i.length}},d(u){u&&t.detach(e),t.destroy_each(d,u)}}}function Ze(r){let e,n,i;return{c(){e=t.element("button"),t.attr(e,"class","ShowBalanceModalOverlay")},m(d,u){t.insert(d,e,u),n||(i=t.listen(e,"click",r[26]),n=!0)},p:t.noop,d(d){d&&t.detach(e),n=!1,i()}}}function vt(r){let e,n,i;function d(g,v){return g[1]?yt:gt}let u=d(r),y=u(r),p=r[2]&&Ze(r);return{c(){e=t.element("div"),n=t.element("div"),y.c(),i=t.space(),p&&p.c(),t.attr(n,"class","ShowBalance")},m(g,v){t.insert(g,e,v),t.append(e,n),y.m(n,null),t.append(e,i),p&&p.m(e,null),r[27](e)},p(g,v){u===(u=d(g))&&y?y.p(g,v):(y.d(1),y=u(g),y&&(y.c(),y.m(n,null))),g[2]?p?p.p(g,v):(p=Ze(g),p.c(),p.m(e,null)):p&&(p.d(1),p=null)},i:t.noop,o:t.noop,d(g){g&&t.detach(e),y.d(),p&&p.d(),r[27](null)}}}function bt(r,e,n){let i;t.component_subscribe(r,t.$format,f=>n(5,i=f));let{userid:d=""}=e,{session:u=""}=e,{endpoint:y=""}=e,{lang:p="en"}=e,{clientstyling:g=""}=e,{clientstylingurl:v=""}=e,{translationurl:x=""}=e,{customlocaleidentifier:F=""}=e,{gmversion:C="gm16"}=e,{displaybalanceoption:T="All"}=e,{totalcalculationmode:A="totalCashAmount"}=e,{currencyseparator:z=""}=e,{currencydecimal:L=""}=e,{currencyprecision:V=""}=e,{mbsource:J}=e,B,R,j=!0,D=!1,Q=!1,ne,le="",X=[],ce;const h={},de=["totalCashAmount","totalRealAmount"],be=()=>{fetch(x).then(f=>f.json()).then(f=>Object.keys(f).forEach(S=>Xe(S,f[S]))).catch(f=>console.log(f))};Object.keys(qe).forEach(f=>Xe(f,qe[f]));const we=()=>{if(F.includes(p))return F},Be=f=>F?new Intl.NumberFormat(we(),{useGrouping:!0}).format(f):z&&L?$(f,{separator:z,decimal:L,symbol:"",precision:parseInt(V||"2",10)}).format():$(f,{separator:".",decimal:",",symbol:"",precision:parseInt(V||"2",10)}).format(),ee=()=>Ge(this,null,function*(){var S,a,o;n(1,j=!0);const f=new URL(`${y}/v1/player/${d}/account`);try{const c=yield fetch(f,{method:"GET",headers:{"X-SessionID":u}}),s=yield c.json();if(c.ok)X=s.items,n(3,le=(S=X.find(l=>l.displayName==="Casino"))==null?void 0:S.currency),n(4,h.Total=[{amount:s.totalAmount[le]}],h),n(4,h.Real=[{amount:(a=X.find(l=>l.displayName==="Casino"))==null?void 0:a.balanceAmount}],h),n(4,h.Bonus=[{amount:(o=X.find(l=>l.displayName==="UBS"))==null?void 0:o.balanceAmount}],h);else throw new Error("Failed to fetch balance data !")}catch(c){console.log("Balance error: ",c)}finally{n(1,j=!1)}}),ue=()=>{n(1,j=!0);const f=new URL(`${y}/v2/player/${d}/balance`),S=new Headers;S.append("X-SessionID",u),fetch(f,{method:"GET",headers:S}).then(o=>o.json()).then(o=>{o[A]||n(8,A=de[0]);const c=o.items.find(l=>l.type==="Real"&&l.walletAccountType==="Ordinary");if(n(3,le=c.currency),Q=!!c.productType,n(4,h.Total=[{amount:0}],h),n(4,h.Real=[],h),n(4,h.Bonus=[],h),n(4,h.Credit=[],h),!Q){ce={lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},n(4,h.Total[0].amount=o[A][le],h);for(const l of o.items)switch(l.type){case"Bonus":h.Bonus.length===0?h.Bonus.push({amount:l.amount}):n(4,h.Bonus[0].amount+=l.amount,h);break;case"Real":if(l.creditLine&&h.Credit.length===0&&h.Credit.push({amount:l.creditLine}),A==="totalRealAmount")continue;h.Real.length===0?h.Real.push({amount:l.amount}):n(4,h.Real[0].amount+=l.amount,h);break}for(const[l,m]of Object.entries(h))m.length<1&&delete h[l];n(1,j=!1);return}ce={Casino:{lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},Sports:{lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1}};let s=o.items;T&&T!=="All"&&(s=o.items.filter(l=>l.productType===T));for(const l of s){let m;switch(l.type){case"Bonus":m=h.Bonus.findIndex(w=>w.productType===l.productType),m>0?n(4,h.Bonus[m].amount+=l.amount,h):h.Bonus.push({amount:l.amount,productType:l.productType});break;case"Real":l.creditLine&&h.Credit.push({amount:l.creditLine,productType:l.productType}),m=h.Real.findIndex(w=>w.productType===l.productType),m>0?n(4,h.Real[m].amount+=l.amount,h):h.Real.push({amount:l.amount,productType:l.productType});break}}Ce();for(const[l,m]of Object.entries(h))m.length<1&&delete h[l];n(1,j=!1)}).catch(()=>{throw n(1,j=!1),new Error("Failed to fetch balance data !")})},ae=()=>{if(ne&&ne.close(),u.length<1)return;let f,S;switch(C){case"gm16":f=new URL(`${y}/v2/player/${d}/information/updates`),S=c=>De(c);break;case"gmcore":f=new URL(`${y}/v1/player/${d}/balance/updates`),S=c=>te(c);break}const a={accept:"text/event-stream","X-SessionId":u},o=new ct.EventSourcePolyfill(f,{headers:a});ne=o,o.addEventListener("message",S)},me=f=>{let S;try{S=JSON.parse(f)}catch(a){console.log("Balance stream failed: ",a);return}return S},te=f=>{var c,s;const S=me(f.data);if(!S){ae();return}let a="0";const o=S.balanceChange;X=X.map(l=>(o&&o[l.id]&&(l=Pe(Ue({},l),{balanceAmount:o[l.id].afterAmount})),a=(parseFloat(l==null?void 0:l.balanceAmount)+parseFloat(a)).toString(),l)),n(4,h.Real=[{amount:(c=X[0])==null?void 0:c.balanceAmount}],h),n(4,h.Bonus=[{amount:(s=X[1])==null?void 0:s.balanceAmount}],h),n(4,h.Total=[{amount:Number(a)}],h)},pe=(f,S,a)=>{let o=null;switch(a.walletAccountType){case"Ordinary":(a.afterAmount!==a.affectedAmount||S.lastOrdinaryAfterAmount===0)&&(S.lastOrdinaryAfterAmount=a.afterAmount,S.showCreditLineAfterAmount||(o=a.afterAmount));break;case"CreditLine":a.afterAmount!==0?(o=a.afterAmount,S.showCreditLineAfterAmount=!0):(o=S.lastOrdinaryAfterAmount,S.showCreditLineAfterAmount=!1);break;default:o=a.afterAmount}return o===null?f:o},Ce=()=>{switch(A){case"totalCashAmount":let f=0;for(const a of["Real","Bonus"])for(const o of h[a])f+=Math.max(o.amount,0);n(4,h.Total[0].amount=f,h);break;case"totalRealAmount":if(!Q)return;let S=0;for(const a of h.Real)S+=a.amount;n(4,h.Total[0].amount=S,h)}},De=f=>{const S=me(f.data);if(!S){ae();return}if(S.type!=="BALANCE_UPDATE_V2")return;const a=S.body.balanceChange;for(const[o,c]of Object.entries(a))if(A==="totalRealAmount"&&o==="Real"&&!Q&&n(4,h.Total[0].amount=pe(h.Total[0].amount,ce,c),h),!!h[o])for(const s of h[o]){if(!Q){s.amount=o==="Real"?pe(s.amount,ce,c):c.afterAmount;continue}c.productType===s.productType&&(s.amount=o==="Real"?pe(s.amount,ce[s.productType],c):c.afterAmount)}Ce()},Ae=()=>{n(2,D=!1),window.postMessage({type:"GoToDeposit"},window.location.href),typeof gtag=="function"&>ag("event","GoToDeposit",{context:"PlayerAccountBalanceModal"})},Me=()=>{de.includes(A)||(console.error(`Unsupported value ('${A}') for totalcalculationmode parameter. Only the following values are supported ${de}. Using default value ('${de[0]}').`),n(8,A=de[0]))},Le=()=>{switch(lt(p),Me(),C){case"gmcore":ee();break;case"gm16":ue();break;default:throw Error(`Invalid apiversion attribute: ${C}`)}},ge=f=>f.data&&f.data.type==="LogoutSuccessfull"&&ne.close();t.onMount(()=>(window.addEventListener("message",ge,!1),()=>{window.emMessageBus&&R&&R.unsubscribe(),window.removeEventListener("message",ge),ne&&ne.close()}));const Te=()=>n(2,D=!0),fe=()=>n(2,D=!1),q=()=>Ae(),Fe=()=>n(2,D=!1);function ke(f){t.binding_callbacks[f?"unshift":"push"](()=>{B=f,n(0,B)})}return r.$$set=f=>{"userid"in f&&n(9,d=f.userid),"session"in f&&n(10,u=f.session),"endpoint"in f&&n(11,y=f.endpoint),"lang"in f&&n(12,p=f.lang),"clientstyling"in f&&n(13,g=f.clientstyling),"clientstylingurl"in f&&n(14,v=f.clientstylingurl),"translationurl"in f&&n(15,x=f.translationurl),"customlocaleidentifier"in f&&n(16,F=f.customlocaleidentifier),"gmversion"in f&&n(17,C=f.gmversion),"displaybalanceoption"in f&&n(18,T=f.displaybalanceoption),"totalcalculationmode"in f&&n(8,A=f.totalcalculationmode),"currencyseparator"in f&&n(19,z=f.currencyseparator),"currencydecimal"in f&&n(20,L=f.currencydecimal),"currencyprecision"in f&&n(21,V=f.currencyprecision),"mbsource"in f&&n(22,J=f.mbsource)},r.$$.update=()=>{r.$$.dirty[0]&4096&&p&&we(),r.$$.dirty[0]&400896&&y&&d&&u&&p&&C&&T&&Le(),r.$$.dirty[0]&134656&&y&&d&&u&&C&&ae(),r.$$.dirty[0]&8193&&g&&B&&t.setClientStyling(B,g),r.$$.dirty[0]&16385&&v&&B&&t.setClientStylingURL(B,v),r.$$.dirty[0]&4194305&&B&&t.setStreamStyling(B,`${J}.Style`),r.$$.dirty[0]&32768&&x&&be()},[B,j,D,le,h,i,Be,Ae,A,d,u,y,p,g,v,x,F,C,T,z,L,V,J,Te,fe,q,Fe,ke]}class et extends t.SvelteComponent{constructor(e){super(),t.init(this,e,bt,vt,t.safe_not_equal,{userid:9,session:10,endpoint:11,lang:12,clientstyling:13,clientstylingurl:14,translationurl:15,customlocaleidentifier:16,gmversion:17,displaybalanceoption:18,totalcalculationmode:8,currencyseparator:19,currencydecimal:20,currencyprecision:21,mbsource:22},mt,[-1,-1])}get userid(){return this.$$.ctx[9]}set userid(e){this.$$set({userid:e}),t.flush()}get session(){return this.$$.ctx[10]}set session(e){this.$$set({session:e}),t.flush()}get endpoint(){return this.$$.ctx[11]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),t.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get customlocaleidentifier(){return this.$$.ctx[16]}set customlocaleidentifier(e){this.$$set({customlocaleidentifier:e}),t.flush()}get gmversion(){return this.$$.ctx[17]}set gmversion(e){this.$$set({gmversion:e}),t.flush()}get displaybalanceoption(){return this.$$.ctx[18]}set displaybalanceoption(e){this.$$set({displaybalanceoption:e}),t.flush()}get totalcalculationmode(){return this.$$.ctx[8]}set totalcalculationmode(e){this.$$set({totalcalculationmode:e}),t.flush()}get currencyseparator(){return this.$$.ctx[19]}set currencyseparator(e){this.$$set({currencyseparator:e}),t.flush()}get currencydecimal(){return this.$$.ctx[20]}set currencydecimal(e){this.$$set({currencydecimal:e}),t.flush()}get currencyprecision(){return this.$$.ctx[21]}set currencyprecision(e){this.$$set({currencyprecision:e}),t.flush()}get mbsource(){return this.$$.ctx[22]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(et,{userid:{},session:{},endpoint:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},customlocaleidentifier:{},gmversion:{},displaybalanceoption:{},totalcalculationmode:{},currencyseparator:{},currencydecimal:{},currencyprecision:{},mbsource:{}},[],[],!0);exports.default=et;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHamburgerMenu-CaFkIr3d.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 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-BXV0d81L.cjs"),r=require("./index-71b1bdfa-urw3SgKF.cjs"),y=require("./locale-DHn5ZpQu.cjs"),o=require("./player-elevate-card-items-66be34fb-DeUY02M2.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: 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=G,I=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){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;
|