@everymatrix/casino-header-controller-nd 1.86.1 → 1.86.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CasinoHamburgerMenuNd-Djtdm8EV.js → CasinoHamburgerMenuNd-BNAIOl2X.js} +998 -1019
- package/components/CasinoHamburgerMenuNd-Ca3ViCCa.cjs +18 -0
- package/components/{CasinoHamburgerMenuNd-DqSrTenb.js → CasinoHamburgerMenuNd-ESbaCJ67.js} +1007 -1028
- package/components/{CasinoHeaderControllerNd-sEiDpmDd.js → CasinoHeaderControllerNd-C1O-84Ak.js} +98 -98
- package/components/{CasinoHeaderControllerNd--WCWhMwa.js → CasinoHeaderControllerNd-CnCcafEj.js} +94 -94
- package/components/{CasinoHeaderControllerNd-DOLTMzh0.cjs → CasinoHeaderControllerNd-Doy6dpQ5.cjs} +1 -1
- package/components/PlayerAccountBalanceModalNd-BOVCsk2w.js +1564 -0
- package/components/PlayerAccountBalanceModalNd-CZjcJwul.js +1535 -0
- package/components/PlayerAccountBalanceModalNd-Cj7-G7Z3.cjs +7 -0
- package/components/PlayerDeposit-D4d7MVd3.cjs +1 -0
- package/components/{PlayerDeposit-qsZYITrf.js → PlayerDeposit-D_Pd3fvu.js} +74 -74
- package/components/{PlayerDeposit-C910Gf1y.js → PlayerDeposit-DmubnzW9.js} +77 -77
- package/es2015/casino-header-controller-nd.cjs +1 -1
- package/es2015/casino-header-controller-nd.js +1 -1
- package/esnext/casino-header-controller-nd.js +1 -1
- package/lazy/{casino-hamburger-menu-nd-CAOIXMkM.cjs → casino-hamburger-menu-nd-CMEc__oS.cjs} +1 -1
- package/lazy/{casino-hamburger-menu-nd-DrYJDNro.js → casino-hamburger-menu-nd-DlmawdHt.js} +1 -1
- package/lazy/{casino-hamburger-menu-nd-DWZz6hns.js → casino-hamburger-menu-nd-ouF1QHns.js} +1 -1
- package/lazy/{gamification-dropdown-P2zG2HBt.js → gamification-dropdown-0spy0_Jv.js} +271 -267
- package/lazy/gamification-dropdown-BCWzT1QK.js +758 -0
- package/lazy/gamification-dropdown-D0wAisNS.cjs +1 -0
- package/lazy/{player-account-balance-modal-nd-BY8xnPL2.js → player-account-balance-modal-nd-Ci4Zg6Hh.js} +1 -1
- package/lazy/{player-account-balance-modal-nd-D1AAY1_s.js → player-account-balance-modal-nd-rPH9AN9Y.js} +1 -1
- package/lazy/{player-account-balance-modal-nd-CWxFg0Rd.cjs → player-account-balance-modal-nd-zGnJas1c.cjs} +1 -1
- package/lazy/{player-deposit-Mn3IRhQ6.js → player-deposit-CaMa6djz.js} +1 -1
- package/lazy/{player-deposit-BZMECdu0.js → player-deposit-CaycmoDv.js} +1 -1
- package/lazy/{player-deposit-CgdF-jd5.cjs → player-deposit-MHWzbfWP.cjs} +1 -1
- package/lazy/user-deposit-withdrawal-AwhSDCus.js +557 -0
- package/lazy/user-deposit-withdrawal-B_Nv4rDM.js +573 -0
- package/lazy/user-deposit-withdrawal-d-w0__HO.cjs +1 -0
- package/package.json +1 -1
- package/stencil/{gamification-dropdown-92e6c856-B8vweing.js → gamification-dropdown-92e6c856-BAc7XsCF.js} +1 -1
- package/stencil/{gamification-dropdown-92e6c856-BZ8VQIG4.cjs → gamification-dropdown-92e6c856-Bcy-54uI.cjs} +1 -1
- package/stencil/{gamification-dropdown-92e6c856-AyLEePRL.js → gamification-dropdown-92e6c856-D4kHGze1.js} +1 -1
- package/stencil/{gamification-dropdown-CglkdhCZ.js → gamification-dropdown-BK7OkFdV.js} +2 -2
- package/stencil/{gamification-dropdown-HmEzwf9M.cjs → gamification-dropdown-BRlTQDui.cjs} +1 -1
- package/stencil/{gamification-dropdown-Chg7QhVL.js → gamification-dropdown-yJyqxtor.js} +2 -2
- package/stencil/{gamification-dropdown_4-CDqbYkpV.js → gamification-dropdown_4-B4cK84RN.js} +6 -6
- package/stencil/{gamification-dropdown_4-DxW8ztP7.js → gamification-dropdown_4-BLkHBk3K.js} +6 -6
- package/stencil/gamification-dropdown_4-D64dMPom.cjs +192 -0
- package/stencil/{locale-TxlOHoKi.js → locale-CIZHVMDe.js} +28 -22
- package/stencil/{locale-B_6Rn5-v.cjs → locale-m6IHPAzW.cjs} +1 -1
- package/stencil/{player-elevate-card-D61zzjoE.js → player-elevate-card-BA8G0Mqx.js} +3 -3
- package/stencil/{player-elevate-card-BbWKuYfj.js → player-elevate-card-BrJpawbF.js} +3 -3
- package/stencil/{player-elevate-card-BXMauXgU.cjs → player-elevate-card-DKW2eHTs.cjs} +1 -1
- package/stencil/{player-elevate-card-items-08c6fbd8-M94MmEsh.js → player-elevate-card-items-b4571def-B5YwItYc.js} +238 -236
- package/stencil/{player-elevate-card-items-08c6fbd8-BRpYa59u.js → player-elevate-card-items-b4571def-BCXN9g53.js} +238 -236
- package/stencil/player-elevate-card-items-b4571def-H9aHZjN2.cjs +102 -0
- package/stencil/{player-elevate-pointcard-CnJ1h4uy.js → player-elevate-pointcard-DJahPWy0.js} +3 -3
- package/stencil/{player-elevate-pointcard-BL1XZLER.js → player-elevate-pointcard-DP-ENbxI.js} +3 -3
- package/stencil/{player-elevate-pointcard-CIGh8PLS.cjs → player-elevate-pointcard-DyRqojWr.cjs} +1 -1
- package/stencil/{player-rakeback-card-B_-fQFE_.js → player-rakeback-card-5QTpE9MZ.js} +2 -2
- package/stencil/{player-rakeback-card-B3uCylZm.cjs → player-rakeback-card-CWJd5hs8.cjs} +1 -1
- package/stencil/{player-rakeback-card-C79YOrb9.js → player-rakeback-card-Cx54ZYxX.js} +2 -2
- package/stencil/{user-deposit-withdrawal-Bgmu_v3L.js → user-deposit-withdrawal-BxOnNff1.js} +1 -1
- package/stencil/{user-deposit-withdrawal-D-OTOuVZ.cjs → user-deposit-withdrawal-DeaqutF7.cjs} +1 -1
- package/stencil/{user-deposit-withdrawal-C1ZuOfGY.js → user-deposit-withdrawal-iO3aTWUP.js} +1 -1
- package/components/CasinoHamburgerMenuNd-BWhQR6n1.cjs +0 -18
- package/components/PlayerAccountBalanceModalNd-BxspHx1P.js +0 -1564
- package/components/PlayerAccountBalanceModalNd-C9GnwJNI.cjs +0 -7
- package/components/PlayerAccountBalanceModalNd-UlBTfRN6.js +0 -1535
- package/components/PlayerDeposit-BDPi60xU.cjs +0 -1
- package/lazy/gamification-dropdown-92gu40Vl.js +0 -754
- package/lazy/gamification-dropdown-CmhvGtFZ.cjs +0 -1
- package/lazy/user-deposit-withdrawal-CWhRaiMB.cjs +0 -1
- package/lazy/user-deposit-withdrawal-DS7RI4jZ.js +0 -573
- package/lazy/user-deposit-withdrawal-fYrP9plZ.js +0 -557
- package/stencil/gamification-dropdown_4-Dm2tmI-r.cjs +0 -192
- package/stencil/player-elevate-card-items-08c6fbd8-ChUSMyWt.cjs +0 -102
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";var tt=Object.defineProperty,at=Object.defineProperties;var nt=Object.getOwnPropertyDescriptors;var ze=Object.getOwnPropertySymbols;var ot=Object.prototype.hasOwnProperty,rt=Object.prototype.propertyIsEnumerable;var Ie=Math.pow,Ve=(r,t,a)=>t in r?tt(r,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[t]=a,Ue=(r,t)=>{for(var a in t||(t={}))ot.call(t,a)&&Ve(r,a,t[a]);if(ze)for(var a of ze(t))rt.call(t,a)&&Ve(r,a,t[a]);return r},Pe=(r,t)=>at(r,nt(t));var Ge=(r,t,a)=>new Promise((p,u)=>{var c=v=>{try{f(a.next(v))}catch(B){u(B)}},b=v=>{try{f(a.throw(v))}catch(B){u(B)}},f=v=>v.done?p(v.value):Promise.resolve(v.value).then(c,b);f((a=a.apply(r,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHamburgerMenuNd-Ca3ViCCa.cjs");function Xe(r,t){e.addMessages(r,t)}function it(r){e.$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",LimitsButton:"Limits",DepositButton:"Deposit",Loading:"Loading ..."},"zh-hk":{Title:"您的結餘",Total:"總結餘",Real:"現金結餘",Bonus:"紅利結餘",Credit:"信用結餘",Casino:"賭場",Sports:"體育",LimitsButton:"Limits",DepositButton:"存款",Loading:"載入中 ..."},de:{Title:"Ihr Guthaben",Total:"Gesamtguthaben",Real:"Barguthaben",Bonus:"Bonusguthaben",Credit:"Kreditguthaben",Casino:"Casino",Sports:"Sport",LimitsButton:"Limits",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",LimitsButton:"Limits",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",LimitsButton:"Limits",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",LimitsButton:"Limits",DepositButton:"Depósito",Loading:"Cargando ..."},tr:{Title:"Bakiyeniz",Total:"Toplam Bakiye",Real:"Nakit Bakiye",Bonus:"Bonus Bakiyesi",Credit:"Kredi Bakiyesi",Casino:"Kumarhane",Sports:"Spor",LimitsButton:"Limits",DepositButton:"Yatır",Loading:"Yükleniyor ..."},ru:{Title:"Ваш баланс",Total:"Общий баланс",Real:"Денежный баланс",Bonus:"Бонусный баланс",Credit:"Кредитный баланс",Casino:"Казино",Sports:"Спорт",LimitsButton:"Limits",DepositButton:"Депозит",Loading:"Загружается ..."},ro:{Title:"Soldul tău",Total:"Sold total",Real:"Sold în numerar",Bonus:"Sold bonus",Credit:"Sold credit",Casino:"Cazinou",Sports:"Sporturi",LimitsButton:"Limits",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",LimitsButton:"Limits",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",LimitsButton:"Limits",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",LimitsButton:"Limits",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",LimitsButton:"Limits",DepositButton:"Depositar",Loading:"Carregando ..."},sl:{Title:"Vaš saldo",Total:"Skupni saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Kasino",Sports:"Šport",LimitsButton:"Limits",DepositButton:"Depozit",Loading:"Nalaganje ..."},sr:{Title:"Vaš saldo",Total:"Ukupan saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Kasino",Sports:"Sport",LimitsButton:"Limits",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",LimitsButton:"Limits",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",LimitsButton:"Limits",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",LimitsButton:"Limits",DepositButton:"Deposit",Loading:"Loading ..."}};var je={exports:{}};/** @license
|
|
2
|
+
* eventsource.js
|
|
3
|
+
* Available under MIT License (MIT)
|
|
4
|
+
* https://github.com/Yaffle/EventSource/
|
|
5
|
+
*/(function(r,t){(function(a){var p=a.setTimeout,u=a.clearTimeout,c=a.XMLHttpRequest,b=a.XDomainRequest,f=a.ActiveXObject,v=a.EventSource,B=a.document,D=a.Promise,z=a.fetch,j=a.Response,_=a.TextDecoder,C=a.TextEncoder,H=a.AbortController;if(typeof window!="undefined"&&typeof B!="undefined"&&!("readyState"in B)&&B.body==null&&(B.readyState="loading",window.addEventListener("load",function(n){B.readyState="complete"},!1)),c==null&&f!=null&&(c=function(){return new f("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(n){function s(){}return s.prototype=n,new s}),Date.now||(Date.now=function(){return new Date().getTime()}),H==null){var ce=z;z=function(n,s){var d=s.signal;return ce(n,{headers:s.headers,credentials:s.credentials,cache:s.cache}).then(function(i){var T=i.body.getReader();return d._reader=T,d._aborted&&d._reader.cancel(),{status:i.status,statusText:i.statusText,headers:i.headers,body:{getReader:function(){return T}}}})},H=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function ie(){this.bitsNeeded=0,this.codePoint=0}ie.prototype.decode=function(n){function s(M,O,S){if(S===1)return M>=128>>O&&M<<O<=2047;if(S===2)return M>=2048>>O&&M<<O<=55295||M>=57344>>O&&M<<O<=65535;if(S===3)return M>=65536>>O&&M<<O<=1114111;throw new Error}function d(M,O){if(M===6*1)return O>>6>15?3:O>31?2:1;if(M===6*2)return O>15?3:2;if(M===6*3)return 3;throw new Error}for(var i=65533,T="",g=this.bitsNeeded,x=this.codePoint,N=0;N<n.length;N+=1){var L=n[N];g!==0&&(L<128||L>191||!s(x<<6|L&63,g-6,d(g,x)))&&(g=0,x=i,T+=String.fromCharCode(x)),g===0?(L>=0&&L<=127?(g=0,x=L):L>=192&&L<=223?(g=6*1,x=L&31):L>=224&&L<=239?(g=6*2,x=L&15):L>=240&&L<=247?(g=6*3,x=L&7):(g=0,x=i),g!==0&&!s(x,g,d(g,x))&&(g=0,x=i)):(g-=6,x=x<<6|L&63),g===0&&(x<=65535?T+=String.fromCharCode(x):(T+=String.fromCharCode(55296+(x-65535-1>>10)),T+=String.fromCharCode(56320+(x-65535-1&1023))))}return this.bitsNeeded=g,this.codePoint=x,T};var ye=function(){try{return new _().decode(new C().encode("test"),{stream:!0})==="test"}catch(n){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+n)}return!1};(_==null||C==null||!ye())&&(_=ie);var U=function(){};function P(n){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=U,this.onload=U,this.onerror=U,this.onreadystatechange=U,this._contentType="",this._xhr=n,this._sendTimeout=0,this._abort=U}P.prototype.open=function(n,s){this._abort(!0);var d=this,i=this._xhr,T=1,g=0;this._abort=function(S){d._sendTimeout!==0&&(u(d._sendTimeout),d._sendTimeout=0),(T===1||T===2||T===3)&&(T=4,i.onload=U,i.onerror=U,i.onabort=U,i.onprogress=U,i.onreadystatechange=U,i.abort(),g!==0&&(u(g),g=0),S||(d.readyState=4,d.onabort(null),d.onreadystatechange())),T=0};var x=function(){if(T===1){var S=0,o="",h=void 0;if("contentType"in i)S=200,o="OK",h=i.contentType;else try{S=i.status,o=i.statusText,h=i.getResponseHeader("Content-Type")}catch(w){S=0,o="",h=void 0}S!==0&&(T=2,d.readyState=2,d.status=S,d.statusText=o,d._contentType=h,d.onreadystatechange())}},N=function(){if(x(),T===2||T===3){T=3;var S="";try{S=i.responseText}catch(o){}d.readyState=3,d.responseText=S,d.onprogress()}},L=function(S,o){if((o==null||o.preventDefault==null)&&(o={preventDefault:U}),N(),T===1||T===2||T===3){if(T=4,g!==0&&(u(g),g=0),d.readyState=4,S==="load")d.onload(o);else if(S==="error")d.onerror(o);else if(S==="abort")d.onabort(o);else throw new TypeError;d.onreadystatechange()}},M=function(S){i!=null&&(i.readyState===4?(!("onload"in i)||!("onerror"in i)||!("onabort"in i))&&L(i.responseText===""?"error":"load",S):i.readyState===3?"onprogress"in i||N():i.readyState===2&&x())},O=function(){g=p(function(){O()},500),i.readyState===3&&N()};"onload"in i&&(i.onload=function(S){L("load",S)}),"onerror"in i&&(i.onerror=function(S){L("error",S)}),"onabort"in i&&(i.onabort=function(S){L("abort",S)}),"onprogress"in i&&(i.onprogress=N),"onreadystatechange"in i&&(i.onreadystatechange=function(S){M(S)}),("contentType"in i||!("ontimeout"in c.prototype))&&(s+=(s.indexOf("?")===-1?"?":"&")+"padding=true"),i.open(n,s,!0),"readyState"in i&&(g=p(function(){O()},0))},P.prototype.abort=function(){this._abort(!1)},P.prototype.getResponseHeader=function(n){return this._contentType},P.prototype.setRequestHeader=function(n,s){var d=this._xhr;"setRequestHeader"in d&&d.setRequestHeader(n,s)},P.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},P.prototype.send=function(){if((!("ontimeout"in c.prototype)||!("sendAsBinary"in c.prototype)&&!("mozAnon"in c.prototype))&&B!=null&&B.readyState!=null&&B.readyState!=="complete"){var n=this;n._sendTimeout=p(function(){n._sendTimeout=0,n.send()},4);return}var s=this._xhr;"withCredentials"in s&&(s.withCredentials=this.withCredentials);try{s.send(void 0)}catch(d){throw d}};function ee(n){return n.replace(/[A-Z]/g,function(s){return String.fromCharCode(s.charCodeAt(0)+32)})}function oe(n){for(var s=Object.create(null),d=n.split(`\r
|
|
6
|
+
`),i=0;i<d.length;i+=1){var T=d[i],g=T.split(": "),x=g.shift(),N=g.join(": ");s[ee(x)]=N}this._map=s}oe.prototype.get=function(n){return this._map[ee(n)]},c!=null&&c.HEADERS_RECEIVED==null&&(c.HEADERS_RECEIVED=2);function de(){}de.prototype.open=function(n,s,d,i,T,g,x){n.open("GET",T);var N=0;n.onprogress=function(){var M=n.responseText,O=M.slice(N);N+=O.length,d(O)},n.onerror=function(M){M.preventDefault(),i(new Error("NetworkError"))},n.onload=function(){i(null)},n.onabort=function(){i(null)},n.onreadystatechange=function(){if(n.readyState===c.HEADERS_RECEIVED){var M=n.status,O=n.statusText,S=n.getResponseHeader("Content-Type"),o=n.getAllResponseHeaders();s(M,O,S,new oe(o))}},n.withCredentials=g;for(var L in x)Object.prototype.hasOwnProperty.call(x,L)&&n.setRequestHeader(L,x[L]);return n.send(),n};function G(n){this._headers=n}G.prototype.get=function(n){return this._headers.get(n)};function V(){}V.prototype.open=function(n,s,d,i,T,g,x){var N=null,L=new H,M=L.signal,O=new _;return z(T,{headers:x,credentials:g?"include":"same-origin",signal:M,cache:"no-store"}).then(function(S){return N=S.body.getReader(),s(S.status,S.statusText,S.headers.get("Content-Type"),new G(S.headers)),new D(function(o,h){var w=function(){N.read().then(function(y){if(y.done)o(void 0);else{var A=O.decode(y.value,{stream:!0});d(A),w()}}).catch(function(y){h(y)})};w()})}).catch(function(S){if(S.name!=="AbortError")return S}).then(function(S){i(S)}),{abort:function(){N!=null&&N.cancel(),L.abort()}}};function k(){this._listeners=Object.create(null)}function E(n){p(function(){throw n},0)}k.prototype.dispatchEvent=function(n){n.target=this;var s=this._listeners[n.type];if(s!=null)for(var d=s.length,i=0;i<d;i+=1){var T=s[i];try{typeof T.handleEvent=="function"?T.handleEvent(n):T.call(this,n)}catch(g){E(g)}}},k.prototype.addEventListener=function(n,s){n=String(n);var d=this._listeners,i=d[n];i==null&&(i=[],d[n]=i);for(var T=!1,g=0;g<i.length;g+=1)i[g]===s&&(T=!0);T||i.push(s)},k.prototype.removeEventListener=function(n,s){n=String(n);var d=this._listeners,i=d[n];if(i!=null){for(var T=[],g=0;g<i.length;g+=1)i[g]!==s&&T.push(i[g]);T.length===0?delete d[n]:d[n]=T}};function F(n){this.type=n,this.target=void 0}function I(n,s){F.call(this,n),this.data=s.data,this.lastEventId=s.lastEventId}I.prototype=Object.create(F.prototype);function ue(n,s){F.call(this,n),this.status=s.status,this.statusText=s.statusText,this.headers=s.headers}ue.prototype=Object.create(F.prototype);function Re(n,s){F.call(this,n),this.error=s.error}Re.prototype=Object.create(F.prototype);var se=-1,Z=0,J=1,re=2,Te=-1,l=0,fe=1,Ee=2,be=3,_e=/^text\/event\-stream(;.*)?$/i,ke=1e3,Oe=18e6,Ae=function(n,s){var d=n==null?s:parseInt(n,10);return d!==d&&(d=s),ve(d)},ve=function(n){return Math.min(Math.max(n,ke),Oe)},pe=function(n,s,d){try{typeof s=="function"&&s.call(n,d)}catch(i){E(i)}};function te(n,s){k.call(this),s=s||{},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,Ne(this,n,s)}function xe(){return c!=null&&"withCredentials"in c.prototype||b==null?new c:new b}var Me=z!=null&&j!=null&&"body"in j.prototype;function Ne(n,s,d){s=String(s);var i=!!d.withCredentials,T=d.lastEventIdQueryParameterName||"lastEventId",g=ve(1e3),x=Ae(d.heartbeatTimeout,45e3),N="",L=g,M=!1,O=0,S=d.headers||{},o=d.Transport,h=Me&&o==null?void 0:new P(o!=null?new o:xe()),w=o!=null&&typeof o!="string"?new o:h==null?new V:new de,y=void 0,A=0,R=se,m="",q="",W="",le="",Y=l,we=0,he=0,De=function(K,X,ae,ne){if(R===Z)if(K===200&&ae!=null&&_e.test(ae)){R=J,M=Date.now(),L=g,n.readyState=J;var $=new ue("open",{status:K,statusText:X,headers:ne});n.dispatchEvent($),pe(n,n.onopen,$)}else{var Q="";K!==200?(X&&(X=X.replace(/\s+/g," ")),Q="EventSource's response has a status "+K+" "+X+" that is not 200. Aborting the connection."):Q="EventSource's response has a Content-Type specifying an unsupported type: "+(ae==null?"-":ae.replace(/\s+/g," "))+". Aborting the connection.",Fe();var $=new ue("error",{status:K,statusText:X,headers:ne});n.dispatchEvent($),pe(n,n.onerror,$),console.error(Q)}},Be=function(K){if(R===J){for(var X=-1,ae=0;ae<K.length;ae+=1){var ne=K.charCodeAt(ae);(ne===10||ne===13)&&(X=ae)}var $=(X!==-1?le:"")+K.slice(0,X+1);le=(X===-1?le:"")+K.slice(X+1),K!==""&&(M=Date.now(),O+=K.length);for(var Q=0;Q<$.length;Q+=1){var ne=$.charCodeAt(Q);if(Y===Te&&ne===10)Y=l;else if(Y===Te&&(Y=l),ne===13||ne===10){if(Y!==l){Y===fe&&(he=Q+1);var me=$.slice(we,he-1),ge=$.slice(he+(he<Q&&$.charCodeAt(he)===32?1:0),Q);me==="data"?(m+=`
|
|
7
|
+
`,m+=ge):me==="id"?q=ge:me==="event"?W=ge:me==="retry"?(g=Ae(ge,g),L=g):me==="heartbeatTimeout"&&(x=Ae(ge,x),A!==0&&(u(A),A=p(function(){Le()},x)))}if(Y===l){if(m!==""){N=q,W===""&&(W="message");var Ce=new I(W,{data:m.slice(1),lastEventId:q});if(n.dispatchEvent(Ce),W==="open"?pe(n,n.onopen,Ce):W==="message"?pe(n,n.onmessage,Ce):W==="error"&&pe(n,n.onerror,Ce),R===re)return}m="",W=""}Y=ne===13?Te:l}else Y===l&&(we=Q,Y=fe),Y===fe?ne===58&&(he=Q+1,Y=Ee):Y===Ee&&(Y=be)}}},He=function(K){if(R===J||R===Z){R=se,A!==0&&(u(A),A=0),A=p(function(){Le()},L),L=ve(Math.min(g*16,L*2)),n.readyState=Z;var X=new Re("error",{error:K});n.dispatchEvent(X),pe(n,n.onerror,X),K!=null&&console.error(K)}},Fe=function(){R=re,y!=null&&(y.abort(),y=void 0),A!==0&&(u(A),A=0),n.readyState=re},Le=function(){if(A=0,R!==se){if(!M&&y!=null)He(new Error("No activity within "+x+" milliseconds. "+(R===Z?"No response received.":O+" chars received.")+" Reconnecting.")),y!=null&&(y.abort(),y=void 0);else{var K=Math.max((M||Date.now())+x-Date.now(),1);M=!1,A=p(function(){Le()},K)}return}M=!1,O=0,A=p(function(){Le()},x),R=Z,m="",W="",q=N,le="",we=0,he=0,Y=l;var X=s;if(s.slice(0,5)!=="data:"&&s.slice(0,5)!=="blob:"&&N!==""){var ae=s.indexOf("?");X=ae===-1?s:s.slice(0,ae+1)+s.slice(ae+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(ge,Ce){return Ce===T?"":ge}),X+=(s.indexOf("?")===-1?"?":"&")+T+"="+encodeURIComponent(N)}var ne=n.withCredentials,$={};$.Accept="text/event-stream";var Q=n.headers;if(Q!=null)for(var me in Q)Object.prototype.hasOwnProperty.call(Q,me)&&($[me]=Q[me]);try{y=w.open(h,De,Be,He,X,ne,$)}catch(ge){throw Fe(),ge}};n.url=s,n.readyState=Z,n.withCredentials=i,n.headers=S,n._close=Fe,Le()}te.prototype=Object.create(k.prototype),te.prototype.CONNECTING=Z,te.prototype.OPEN=J,te.prototype.CLOSED=re,te.prototype.close=function(){this._close()},te.CONNECTING=Z,te.OPEN=J,te.CLOSED=re,te.prototype.withCredentials=void 0;var Se=v;c!=null&&(v==null||!("withCredentials"in v.prototype))&&(Se=te),function(n){{var s=n(t);s!==void 0&&(r.exports=s)}}(function(n){n.EventSourcePolyfill=te,n.NativeEventSource=v,n.EventSource=Se})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:e.commonjsGlobal:globalThis)})(je,je.exports);var st=je.exports;function lt(r){e.append_styles(r,"svelte-15fwckg",'*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;background:transparent;border:none;font:inherit;color:inherit;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;background:transparent;border:none;font:inherit;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px;gap:5px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}')}function Ke(r,t,a){const p=r.slice();return p[61]=t[a],p}function We(r,t,a){const p=r.slice();return p[64]=t[a],p}function ct(r){let t,a,p,u,c,b,f,v,B,D,z,j,_=r[5]&&Ye(r);return{c(){t=e.element("button"),a=e.element("p"),p=e.text(r[7]),u=e.space(),c=e.element("span"),b=e.svg_element("svg"),f=e.svg_element("path"),B=e.space(),_&&_.c(),D=e.empty(),e.attr(f,"id","arrow"),e.attr(f,"d","M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"),e.attr(f,"transform","translate(-274.511 -441.088)"),e.attr(f,"fill","#d1d1d1"),e.attr(b,"xmlns","http://www.w3.org/2000/svg"),e.attr(b,"width","14"),e.attr(b,"height","6.835"),e.attr(b,"viewBox","0 0 14 6.835"),e.attr(c,"class",v=r[4]?"TriangleActive":"TriangleInactive"),e.attr(t,"class","BalanceValue")},m(C,H){e.insert(C,t,H),e.append(t,a),e.append(a,p),e.append(t,u),e.append(t,c),e.append(c,b),e.append(b,f),e.insert(C,B,H),_&&_.m(C,H),e.insert(C,D,H),z||(j=e.listen(t,"click",r[32]),z=!0)},p(C,H){H[0]&128&&e.set_data(p,C[7]),H[0]&16&&v!==(v=C[4]?"TriangleActive":"TriangleInactive")&&e.attr(c,"class",v),C[5]?_?_.p(C,H):(_=Ye(C),_.c(),_.m(D.parentNode,D)):_&&(_.d(1),_=null)},d(C){C&&(e.detach(t),e.detach(B),e.detach(D)),_&&_.d(C),z=!1,j()}}}function dt(r){let t,a=r[8]("Loading")+"",p;return{c(){t=e.element("p"),p=e.text(a),e.attr(t,"class","Loading")},m(u,c){e.insert(u,t,c),e.append(t,p)},p(u,c){c[0]&256&&a!==(a=u[8]("Loading")+"")&&e.set_data(p,a)},d(u){u&&e.detach(t)}}}function Ye(r){let t,a,p,u,c,b,f,v,B=r[8]("Title")+"",D,z,j,_,C,H,ce=r[8]("DepositButton")+"",ie,ye,U,P,ee,oe,de,G=e.ensure_array_like(Object.keys(r[2])),V=[];for(let E=0;E<G.length;E+=1)V[E]=Ze(Ke(r,G,E));let k=r[0]==="true"&&Je(r);return{c(){t=e.element("div"),a=e.element("button"),u=e.space(),c=e.element("div"),b=e.element("div"),f=e.element("div"),v=e.element("p"),D=e.text(B),z=e.space(),j=e.element("div");for(let E=0;E<V.length;E+=1)V[E].c();_=e.space(),C=e.element("div"),H=e.element("button"),ie=e.text(ce),ye=e.space(),k&&k.c(),e.attr(a,"class",p="BalanceModalClose "+(r[4]?"Open":"")),e.attr(v,"class","BalanceModalTitle"),e.attr(f,"class","BalanceModalHeader"),e.attr(j,"class","BalanceModalBody"),e.attr(H,"class","BalanceModalAction DepositButton"),e.attr(C,"class","BalanceModalFooter"),e.attr(b,"class",U="ModalContent "+(r[4]?"Open":"")),e.attr(c,"class",P="BalanceModal "+(r[4]?"Open":"")),e.attr(t,"class",ee="BalanceModalWrapper "+(r[4]?"Open":""))},m(E,F){e.insert(E,t,F),e.append(t,a),e.append(t,u),e.append(t,c),e.append(c,b),e.append(b,f),e.append(f,v),e.append(v,D),e.append(b,z),e.append(b,j);for(let I=0;I<V.length;I+=1)V[I]&&V[I].m(j,null);e.append(b,_),e.append(b,C),e.append(C,H),e.append(H,ie),e.append(C,ye),k&&k.m(C,null),oe||(de=[e.listen(a,"click",r[33]),e.listen(H,"click",r[34])],oe=!0)},p(E,F){if(F[0]&16&&p!==(p="BalanceModalClose "+(E[4]?"Open":""))&&e.attr(a,"class",p),F[0]&256&&B!==(B=E[8]("Title")+"")&&e.set_data(D,B),F[0]&5380){G=e.ensure_array_like(Object.keys(E[2]));let I;for(I=0;I<G.length;I+=1){const ue=Ke(E,G,I);V[I]?V[I].p(ue,F):(V[I]=Ze(ue),V[I].c(),V[I].m(j,null))}for(;I<V.length;I+=1)V[I].d(1);V.length=G.length}F[0]&256&&ce!==(ce=E[8]("DepositButton")+"")&&e.set_data(ie,ce),E[0]==="true"?k?k.p(E,F):(k=Je(E),k.c(),k.m(C,null)):k&&(k.d(1),k=null),F[0]&16&&U!==(U="ModalContent "+(E[4]?"Open":""))&&e.attr(b,"class",U),F[0]&16&&P!==(P="BalanceModal "+(E[4]?"Open":""))&&e.attr(c,"class",P),F[0]&16&&ee!==(ee="BalanceModalWrapper "+(E[4]?"Open":""))&&e.attr(t,"class",ee)},d(E){E&&e.detach(t),e.destroy_each(V,E),k&&k.d(),oe=!1,e.run_all(de)}}}function Qe(r){let t,a,p=r[8](r[61])+"",u,c,b=r[12](r[64])+"",f,v,B,D,z=r[10](r[64].amount)+"",j;return{c(){t=e.element("div"),a=e.element("p"),u=e.text(p),c=e.space(),f=e.text(b),v=e.space(),B=e.element("p"),D=e.element("span"),j=e.text(z),e.attr(a,"class","BalanceModalText"),e.attr(D,"class","BalanceModalAmount"),e.attr(B,"class","BalanceModalValue"),e.attr(t,"class","BalanceModalRowLine")},m(_,C){e.insert(_,t,C),e.append(t,a),e.append(a,u),e.append(a,c),e.append(a,f),e.append(t,v),e.append(t,B),e.append(B,D),e.append(D,j)},p(_,C){C[0]&260&&p!==(p=_[8](_[61])+"")&&e.set_data(u,p),C[0]&4&&b!==(b=_[12](_[64])+"")&&e.set_data(f,b),C[0]&4&&z!==(z=_[10](_[64].amount)+"")&&e.set_data(j,z)},d(_){_&&e.detach(t)}}}function Ze(r){let t,a,p=e.ensure_array_like(r[2][r[61]]),u=[];for(let c=0;c<p.length;c+=1)u[c]=Qe(We(r,p,c));return{c(){t=e.element("div");for(let c=0;c<u.length;c+=1)u[c].c();a=e.space(),e.attr(t,"class","BalanceModalRowBoth")},m(c,b){e.insert(c,t,b);for(let f=0;f<u.length;f+=1)u[f]&&u[f].m(t,null);e.append(t,a)},p(c,b){if(b[0]&5380){p=e.ensure_array_like(c[2][c[61]]);let f;for(f=0;f<p.length;f+=1){const v=We(c,p,f);u[f]?u[f].p(v,b):(u[f]=Qe(v),u[f].c(),u[f].m(t,a))}for(;f<u.length;f+=1)u[f].d(1);u.length=p.length}},d(c){c&&e.detach(t),e.destroy_each(u,c)}}}function Je(r){let t,a=r[8]("LimitsButton")+"",p,u,c;return{c(){t=e.element("button"),p=e.text(a),e.attr(t,"class","BalanceModalAction LimitsButton")},m(b,f){e.insert(b,t,f),e.append(t,p),u||(c=e.listen(t,"click",r[35]),u=!0)},p(b,f){f[0]&256&&a!==(a=b[8]("LimitsButton")+"")&&e.set_data(p,a)},d(b){b&&e.detach(t),u=!1,c()}}}function $e(r){let t,a,p;return{c(){t=e.element("button"),e.attr(t,"class","ShowBalanceModalOverlay")},m(u,c){e.insert(u,t,c),a||(p=e.listen(t,"click",r[36]),a=!0)},p:e.noop,d(u){u&&e.detach(t),a=!1,p()}}}function ut(r){let t,a,p,u;function c(B,D){return B[3]?dt:ct}let b=c(r),f=b(r),v=r[5]&&$e(r);return{c(){t=e.element("div"),a=e.element("div"),f.c(),u=e.space(),v&&v.c(),e.attr(a,"class",p="ShowBalance "+(r[6]?"Mobile":""))},m(B,D){e.insert(B,t,D),e.append(t,a),f.m(a,null),e.append(t,u),v&&v.m(t,null),r[37](t)},p(B,D){b===(b=c(B))&&f?f.p(B,D):(f.d(1),f=b(B),f&&(f.c(),f.m(a,null))),D[0]&64&&p!==(p="ShowBalance "+(B[6]?"Mobile":""))&&e.attr(a,"class",p),B[5]?v?v.p(B,D):(v=$e(B),v.c(),v.m(t,null)):v&&(v.d(1),v=null)},i:e.noop,o:e.noop,d(B){B&&e.detach(t),f.d(),v&&v.d(),r[37](null)}}}function ft(r,t,a){let p;e.component_subscribe(r,e.$format,o=>a(8,p=o));let{userid:u=""}=t,{session:c=""}=t,{endpoint:b=""}=t,{lang:f="en"}=t,{mbsource:v=""}=t,{clientstyling:B=""}=t,{clientstylingurl:D=""}=t,{translationurl:z=""}=t,{gmversion:j="gm16"}=t,{displaybalanceoption:_="All"}=t,{totalcalculationmode:C="totalCashAmount"}=t,{primarybalancemode:H}=t,{balancelimitsbutton:ce="false"}=t,{hideproducttype:ie=""}=t,{currencylocale:ye="en"}=t,{currencydisplay:U="symbol"}=t,{maximumfractiondigits:P="2"}=t,{minimumfractiondigits:ee="0"}=t,{customdisplayformat:oe=""}=t,{alwaysshowdecimals:de="true"}=t,G,V,k=!0,E=!1,F=!1,I=!1,ue=!1,Re=window.navigator.userAgent,se,Z="",J=[],re,Te="0";const l={},fe=["totalCashAmount","totalRealAmount"],Ee=()=>{fetch(z).then(o=>o.json()).then(o=>Object.keys(o).forEach(h=>Xe(h,o[h]))).catch(o=>console.log(o))};Object.keys(qe).forEach(o=>Xe(o,qe[o]));const be=o=>{switch(o){case"balance":window.postMessage({type:"BalanceModalStatus",status:"open"},window.location.href),a(5,I=!0),setTimeout(()=>a(4,E=!0),150);break;case"closebalance":a(4,E=!1),window.postMessage({type:"BalanceModalStatus",status:"close"},window.location.href),setTimeout(()=>{a(5,I=!1)},150);break}},_e=o=>{if(oe)return ke(o);const h=ye||f,w={style:"currency",currency:Z,useGrouping:!0,currencyDisplay:U||"code",maximumFractionDigits:P===""||isNaN(Number(P))?2:Number(P),minimumFractionDigits:ee===""||isNaN(Number(ee))?0:Number(ee)};return new Intl.NumberFormat(h,w).format(o)},ke=o=>{const h=[];let w="";for(const y of oe)switch(y){default:w+=y;break;case"{":w&&h.push(w),w="";break;case"}":const[A,R]=w.split("|");if(w="",A.toLowerCase()==="currency")w=Z;else if(A.toLowerCase()==="amount"){let m=",",q=".",W=2;R&&(R[0]!==" "&&(m=R[0]),R[1]!==" "&&(q=R[1]),R[2]!==" "&&!isNaN(Number(R[2]))&&(W=Number(R[2])));let[le,Y]=String(Math.floor(o*Ie(10,W))/Ie(10,W)).split(".");w+=le[0];for(let Be=1;Be<le.length;++Be)(le.length-Be)%3===0?w+=m+le[Be]:w+=le[Be];let we=Y||"";const he=de==="true",De=Number(P);if(he)we=we.padEnd(De||2,"0").substring(0,De);else if(!we)break;w+=q+we}w&&h.push(w),w="";break}return h.push(w),h.join("")},Oe=()=>Ge(this,null,function*(){var h,w,y;a(3,k=!0);const o=new URL(`${b}/v1/player/${u}/account`);try{const A=yield fetch(o,{method:"GET",headers:{"X-SessionID":c}}),R=yield A.json();if(A.ok)window.postMessage({type:"BalancedFetched"},window.location.href),J=R.items,Z=(h=J.find(m=>m.displayName==="Casino"))==null?void 0:h.currency,a(2,l.Total=[{amount:R.totalAmount[Z]}],l),a(2,l.Real=[{amount:(w=J.find(m=>m.displayName==="Casino"))==null?void 0:w.balanceAmount}],l),a(2,l.Bonus=[{amount:(y=J.find(m=>m.displayName==="UBS"))==null?void 0:y.balanceAmount}],l);else throw new Error("Failed to fetch balance data !")}catch(A){console.log("Balance error: ",A)}finally{a(3,k=!1)}}),Ae=()=>{a(3,k=!0);const o=new URL(`${b}/v2/player/${u}/balance`),h=new Headers;h.append("X-SessionID",c),fetch(o,{method:"GET",headers:h}).then(y=>y.json()).then(y=>{y[C]||a(13,C=fe[0]);const A=y.items.find(m=>m.type==="Real"&&m.walletAccountType==="Ordinary");if(Z=A.currency,F=!!A.productType,a(2,l.Total=[{amount:0}],l),a(2,l.Real=[],l),a(2,l.Bonus=[],l),a(2,l.Credit=[],l),!F){re={lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},a(2,l.Total[0].amount=y[C][Z],l);for(const m of y.items)switch(m.type){case"Bonus":l.Bonus.length===0?l.Bonus.push({amount:m.amount}):a(2,l.Bonus[0].amount+=m.amount,l);break;case"Real":if(m.creditLine&&l.Credit.length===0&&l.Credit.push({amount:m.creditLine}),C==="totalRealAmount")continue;l.Real.length===0?l.Real.push({amount:m.amount}):a(2,l.Real[0].amount+=m.amount,l);break}for(const[m,q]of Object.entries(l))q.length<1&&delete l[m];a(3,k=!1);return}re={Casino:{lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},Sports:{lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1}};let R=y.items;_&&_!=="All"&&(R=y.items.filter(m=>m.productType===_));for(const m of R){let q;switch(m.type){case"Bonus":q=l.Bonus.findIndex(W=>W.productType===m.productType),q>0?a(2,l.Bonus[q].amount+=m.amount,l):l.Bonus.push({amount:m.amount,productType:m.productType});break;case"Real":m.creditLine&&l.Credit.push({amount:m.creditLine,productType:m.productType}),q=l.Real.findIndex(W=>W.productType===m.productType),q>0?a(2,l.Real[q].amount+=m.amount,l):l.Real.push({amount:m.amount,productType:m.productType});break}}Me();for(const[m,q]of Object.entries(l))q.length<1&&delete l[m];window.postMessage({type:"playerBalanceInfo",balance:y},window.location.href),a(3,k=!1)}).catch(y=>{throw a(3,k=!1),console.log("Balance fetch error",y),new Error("Failed to fetch balance data!")})},ve=()=>{if(se&&se.close(),c.length<1)return;let o,h;switch(j){case"gm16":o=new URL(`${b}/v2/player/${u}/information/updates`),h=A=>Ne(A);break;case"gmcore":o=new URL(`${b}/v1/player/${u}/balance/updates`),h=A=>te(A);break}const w={accept:"text/event-stream","X-SessionId":c},y=new st.EventSourcePolyfill(o,{headers:w});se=y,y.addEventListener("message",h)},pe=o=>{let h;try{h=JSON.parse(o)}catch(w){console.log("Balance stream failed: ",w);return}return h},te=o=>{var A,R;const h=pe(o.data);if(!h){ve();return}let w="0";const y=h.balanceChange;J=J.map(m=>(y&&y[m.id]&&(m=Pe(Ue({},m),{balanceAmount:y[m.id].afterAmount})),w=(parseFloat(m==null?void 0:m.balanceAmount)+parseFloat(w)).toString(),m)),a(2,l.Real=[{amount:(A=J[0])==null?void 0:A.balanceAmount}],l),a(2,l.Bonus=[{amount:(R=J[1])==null?void 0:R.balanceAmount}],l),a(2,l.Total=[{amount:Number(w)}],l)},xe=(o,h,w)=>{let y=null;switch(w.walletAccountType){case"Ordinary":(w.afterAmount!==w.affectedAmount||h.lastOrdinaryAfterAmount===0)&&(h.lastOrdinaryAfterAmount=w.afterAmount,h.showCreditLineAfterAmount||(y=w.afterAmount));break;case"CreditLine":w.afterAmount!==0?(y=w.afterAmount,h.showCreditLineAfterAmount=!0):(y=h.lastOrdinaryAfterAmount,h.showCreditLineAfterAmount=!1);break;default:y=w.afterAmount}return y===null?o:y},Me=()=>{switch(C){case"totalCashAmount":let o=0;for(const w of["Real","Bonus"])for(const y of l[w])o+=Math.max(y.amount,0);a(2,l.Total[0].amount=o,l);break;case"totalRealAmount":if(!F)return;let h=0;for(const w of l.Real)h+=w.amount;a(2,l.Total[0].amount=h,l)}},Ne=o=>{const h=pe(o.data);if(!h){ve();return}if(n(h==null?void 0:h.type)||h.type!=="BALANCE_UPDATE_V2")return;const w=h.body.balanceChange;for(const[y,A]of Object.entries(w))if(C==="totalRealAmount"&&y==="Real"&&!F&&a(2,l.Total[0].amount=xe(l.Total[0].amount,re,A),l),!!l[y])for(const R of l[y]){if(!F){R.amount=y==="Real"?xe(R.amount,re,A):A.afterAmount;continue}A.productType===R.productType&&(R.amount=y==="Real"?xe(R.amount,re[R.productType],A):A.afterAmount)}Me()},Se=o=>{switch(be("closebalance"),o){case"deposit":window.postMessage({type:"GoToDeposit"},window.location.href);break;case"limits":window.postMessage({type:"GoToLimits"},window.location.href);break}typeof gtag=="function"&>ag("event","GoToDeposit",{context:"PlayerAccountBalanceModal"})},n=o=>o==="SESSION_EXPIRATION"?(window.postMessage({type:"SessionExpiration"},window.location.href),!0):!1,s=()=>{fe.includes(C)||(console.error(`Unsupported value ('${C}') for totalcalculationmode parameter. Only the following values are supported ${fe}. Using default value ('${fe[0]}').`),a(13,C=fe[0]))},d=()=>{switch(it(f),s(),j){case"gmcore":Oe();break;case"gm16":Ae();break;default:throw Error(`Invalid apiversion attribute: ${j}`)}},i=o=>{const{data:{type:h}={}}=o||{};switch(h){case"LogoutSuccessfull":se.close();break;case"CloseBalance":be("closebalance");break}},T=()=>{window.postMessage({type:"UpdateBalanceBackground"},window.location.href)},g=o=>{const h=ie.split(",").map(w=>w.trim());return!o.productType||h.includes(o.productType)?"":p(o.productType)};e.onMount(()=>(window.addEventListener("message",i,!1),a(6,ue=e.isMobile(Re)),()=>{window.emMessageBus&&V&&V.unsubscribe(),window.removeEventListener("message",i),se&&se.close()}));const x=()=>be("balance"),N=()=>be("closebalance"),L=()=>Se("deposit"),M=()=>Se("limits"),O=()=>be("closebalance");function S(o){e.binding_callbacks[o?"unshift":"push"](()=>{G=o,a(1,G)})}return r.$$set=o=>{"userid"in o&&a(14,u=o.userid),"session"in o&&a(15,c=o.session),"endpoint"in o&&a(16,b=o.endpoint),"lang"in o&&a(17,f=o.lang),"mbsource"in o&&a(18,v=o.mbsource),"clientstyling"in o&&a(19,B=o.clientstyling),"clientstylingurl"in o&&a(20,D=o.clientstylingurl),"translationurl"in o&&a(21,z=o.translationurl),"gmversion"in o&&a(22,j=o.gmversion),"displaybalanceoption"in o&&a(23,_=o.displaybalanceoption),"totalcalculationmode"in o&&a(13,C=o.totalcalculationmode),"primarybalancemode"in o&&a(24,H=o.primarybalancemode),"balancelimitsbutton"in o&&a(0,ce=o.balancelimitsbutton),"hideproducttype"in o&&a(25,ie=o.hideproducttype),"currencylocale"in o&&a(26,ye=o.currencylocale),"currencydisplay"in o&&a(27,U=o.currencydisplay),"maximumfractiondigits"in o&&a(28,P=o.maximumfractiondigits),"minimumfractiondigits"in o&&a(29,ee=o.minimumfractiondigits),"customdisplayformat"in o&&a(30,oe=o.customdisplayformat),"alwaysshowdecimals"in o&&a(31,de=o.alwaysshowdecimals)},r.$$.update=()=>{r.$$.dirty[0]&12828672&&b&&u&&c&&f&&j&&_&&d(),r.$$.dirty[0]&4308992&&b&&u&&c&&j&&ve(),r.$$.dirty[0]&2097152&&z&&Ee(),r.$$.dirty[0]&4&&l.Total&&T(),r.$$.dirty[0]&524290&&B&&G&&e.setClientStyling(G,B),r.$$.dirty[0]&1048578&&D&&G&&e.setClientStylingURL(G,D),r.$$.dirty[0]&262146&&v&&G&&e.setStreamStyling(G,`${v}.Style`),r.$$.dirty[0]&16777220&&a(7,Te=(()=>{switch(H){case"Real":return l.Real?_e(l.Real[0].amount):"0";default:return l.Total?_e(l.Total[0].amount):"0"}})())},[ce,G,l,k,E,I,ue,Te,p,be,_e,Se,g,C,u,c,b,f,v,B,D,z,j,_,H,ie,ye,U,P,ee,oe,de,x,N,L,M,O,S]}class et extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ft,ut,e.safe_not_equal,{userid:14,session:15,endpoint:16,lang:17,mbsource:18,clientstyling:19,clientstylingurl:20,translationurl:21,gmversion:22,displaybalanceoption:23,totalcalculationmode:13,primarybalancemode:24,balancelimitsbutton:0,hideproducttype:25,currencylocale:26,currencydisplay:27,maximumfractiondigits:28,minimumfractiondigits:29,customdisplayformat:30,alwaysshowdecimals:31},lt,[-1,-1,-1])}get userid(){return this.$$.ctx[14]}set userid(t){this.$$set({userid:t}),e.flush()}get session(){return this.$$.ctx[15]}set session(t){this.$$set({session:t}),e.flush()}get endpoint(){return this.$$.ctx[16]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get lang(){return this.$$.ctx[17]}set lang(t){this.$$set({lang:t}),e.flush()}get mbsource(){return this.$$.ctx[18]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get clientstyling(){return this.$$.ctx[19]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[20]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[21]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get gmversion(){return this.$$.ctx[22]}set gmversion(t){this.$$set({gmversion:t}),e.flush()}get displaybalanceoption(){return this.$$.ctx[23]}set displaybalanceoption(t){this.$$set({displaybalanceoption:t}),e.flush()}get totalcalculationmode(){return this.$$.ctx[13]}set totalcalculationmode(t){this.$$set({totalcalculationmode:t}),e.flush()}get primarybalancemode(){return this.$$.ctx[24]}set primarybalancemode(t){this.$$set({primarybalancemode:t}),e.flush()}get balancelimitsbutton(){return this.$$.ctx[0]}set balancelimitsbutton(t){this.$$set({balancelimitsbutton:t}),e.flush()}get hideproducttype(){return this.$$.ctx[25]}set hideproducttype(t){this.$$set({hideproducttype:t}),e.flush()}get currencylocale(){return this.$$.ctx[26]}set currencylocale(t){this.$$set({currencylocale:t}),e.flush()}get currencydisplay(){return this.$$.ctx[27]}set currencydisplay(t){this.$$set({currencydisplay:t}),e.flush()}get maximumfractiondigits(){return this.$$.ctx[28]}set maximumfractiondigits(t){this.$$set({maximumfractiondigits:t}),e.flush()}get minimumfractiondigits(){return this.$$.ctx[29]}set minimumfractiondigits(t){this.$$set({minimumfractiondigits:t}),e.flush()}get customdisplayformat(){return this.$$.ctx[30]}set customdisplayformat(t){this.$$set({customdisplayformat:t}),e.flush()}get alwaysshowdecimals(){return this.$$.ctx[31]}set alwaysshowdecimals(t){this.$$set({alwaysshowdecimals:t}),e.flush()}}e.create_custom_element(et,{userid:{},session:{},endpoint:{},lang:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},gmversion:{},displaybalanceoption:{},totalcalculationmode:{},primarybalancemode:{},balancelimitsbutton:{},hideproducttype:{},currencylocale:{},currencydisplay:{},maximumfractiondigits:{},minimumfractiondigits:{},customdisplayformat:{},alwaysshowdecimals:{}},[],[],!0);exports.default=et;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHamburgerMenuNd-Ca3ViCCa.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 N(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 q(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,q,N,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,11 +1,11 @@
|
|
|
1
|
-
import { b as
|
|
2
|
-
function
|
|
3
|
-
|
|
1
|
+
import { b as X, $ as Z, S as J, i as K, s as $, f as y, c as ee, d as te, g as M, h as E, F as C, j as u, U as F, l as S, m as h, G as L, H as I, w as x, y as ie, Q as se, R as ae, z as re, N as ne, O as oe, A as le, D as k, n as ce, M as ue, P as H } from "./CasinoHamburgerMenuNd-ESbaCJ67.js";
|
|
2
|
+
function W(s, e) {
|
|
3
|
+
X(s, e);
|
|
4
4
|
}
|
|
5
5
|
function de(s) {
|
|
6
|
-
|
|
6
|
+
Z.set(s);
|
|
7
7
|
}
|
|
8
|
-
const
|
|
8
|
+
const G = {
|
|
9
9
|
en: {
|
|
10
10
|
titleDeposit: "Deposit",
|
|
11
11
|
loading: "Loading, please wait ..."
|
|
@@ -47,20 +47,20 @@ const W = {
|
|
|
47
47
|
Loading: "Cargando, por favor espere..."
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
|
-
function ue(s) {
|
|
51
|
-
$(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)}");
|
|
52
|
-
}
|
|
53
50
|
function he(s) {
|
|
51
|
+
te(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)}");
|
|
52
|
+
}
|
|
53
|
+
function pe(s) {
|
|
54
54
|
let e, i, n, a, l, m, c, p, w, o, r = (
|
|
55
55
|
/*$_*/
|
|
56
56
|
s[4]("titleDeposit") + ""
|
|
57
|
-
),
|
|
57
|
+
), d, b, _;
|
|
58
58
|
return {
|
|
59
59
|
c() {
|
|
60
|
-
e = M("div"), i = k("svg"), n = k("defs"), a = k("style"), l = C(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), m = k("g"), c = k("g"), p = k("path"), w = E(), o = M("h2"),
|
|
60
|
+
e = M("div"), i = k("svg"), n = k("defs"), a = k("style"), l = C(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), m = k("g"), c = k("g"), p = k("path"), w = E(), o = M("h2"), d = C(r), u(p, "class", "aaa"), u(p, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), u(p, "transform", "translate(15 15) rotate(180)"), u(c, "transform", "translate(20 158)"), u(m, "transform", "translate(-20 -158)"), u(i, "xmlns", "http://www.w3.org/2000/svg"), u(i, "width", "15"), u(i, "height", "15"), u(i, "viewBox", "0 0 15 15"), u(o, "class", "DepositTitleMobile"), u(e, "class", "MenuReturnButton");
|
|
61
61
|
},
|
|
62
62
|
m(f, g) {
|
|
63
|
-
|
|
63
|
+
S(f, e, g), h(e, i), h(i, n), h(n, a), h(a, l), h(i, m), h(m, c), h(c, p), h(e, w), h(e, o), h(o, d), b || (_ = ce(
|
|
64
64
|
e,
|
|
65
65
|
"click",
|
|
66
66
|
/*click_handler*/
|
|
@@ -70,34 +70,34 @@ function he(s) {
|
|
|
70
70
|
p(f, g) {
|
|
71
71
|
g & /*$_*/
|
|
72
72
|
16 && r !== (r = /*$_*/
|
|
73
|
-
f[4]("titleDeposit") + "") && L(
|
|
73
|
+
f[4]("titleDeposit") + "") && L(d, r);
|
|
74
74
|
},
|
|
75
75
|
d(f) {
|
|
76
|
-
f &&
|
|
76
|
+
f && x(e), b = !1, _();
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function ge(s) {
|
|
81
81
|
let e, i, n;
|
|
82
82
|
return {
|
|
83
83
|
c() {
|
|
84
|
-
e = M("div"), i = M("iframe"),
|
|
85
|
-
s[3]) ||
|
|
84
|
+
e = M("div"), i = M("iframe"), H(i.src, n = /*iframeUrl*/
|
|
85
|
+
s[3]) || u(i, "src", n), u(i, "title", "Deposit Iframe"), u(e, "class", "DepositIframeWrapper");
|
|
86
86
|
},
|
|
87
87
|
m(a, l) {
|
|
88
|
-
|
|
88
|
+
S(a, e, l), h(e, i);
|
|
89
89
|
},
|
|
90
90
|
p(a, l) {
|
|
91
91
|
l & /*iframeUrl*/
|
|
92
|
-
8 && !
|
|
93
|
-
a[3]) &&
|
|
92
|
+
8 && !H(i.src, n = /*iframeUrl*/
|
|
93
|
+
a[3]) && u(i, "src", n);
|
|
94
94
|
},
|
|
95
95
|
d(a) {
|
|
96
|
-
a &&
|
|
96
|
+
a && x(e);
|
|
97
97
|
}
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function me(s) {
|
|
101
101
|
let e, i = (
|
|
102
102
|
/*$_*/
|
|
103
103
|
s[4]("loading") + ""
|
|
@@ -107,7 +107,7 @@ function ge(s) {
|
|
|
107
107
|
e = M("p"), n = C(i);
|
|
108
108
|
},
|
|
109
109
|
m(a, l) {
|
|
110
|
-
|
|
110
|
+
S(a, e, l), h(e, n);
|
|
111
111
|
},
|
|
112
112
|
p(a, l) {
|
|
113
113
|
l & /*$_*/
|
|
@@ -115,84 +115,84 @@ function ge(s) {
|
|
|
115
115
|
a[4]("loading") + "") && L(n, i);
|
|
116
116
|
},
|
|
117
117
|
d(a) {
|
|
118
|
-
a &&
|
|
118
|
+
a && x(e);
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function fe(s) {
|
|
123
123
|
let e, i, n, a = (
|
|
124
124
|
/*$_*/
|
|
125
125
|
s[4]("titleDeposit") + ""
|
|
126
126
|
), l, m, c = (
|
|
127
127
|
/*isMobile*/
|
|
128
|
-
s[5] &&
|
|
128
|
+
s[5] && pe(s)
|
|
129
129
|
);
|
|
130
|
-
function p(r,
|
|
130
|
+
function p(r, d) {
|
|
131
131
|
return (
|
|
132
132
|
/*isLoading*/
|
|
133
|
-
r[1] ?
|
|
133
|
+
r[1] ? me : ge
|
|
134
134
|
);
|
|
135
135
|
}
|
|
136
136
|
let w = p(s), o = w(s);
|
|
137
137
|
return {
|
|
138
138
|
c() {
|
|
139
|
-
e = M("div"), c && c.c(), i = E(), n = M("h2"), l = C(a), m = E(), o.c(),
|
|
140
|
-
(s[5] ? "DepositTitleNone" : "")),
|
|
141
|
-
(s[5] ? "DepositWrapperMobile" : "")),
|
|
139
|
+
e = M("div"), c && c.c(), i = E(), n = M("h2"), l = C(a), m = E(), o.c(), u(n, "class", "DepositTitle " + /*isMobile*/
|
|
140
|
+
(s[5] ? "DepositTitleNone" : "")), u(e, "class", "DepositWrapper " + /*isMobile*/
|
|
141
|
+
(s[5] ? "DepositWrapperMobile" : "")), F(
|
|
142
142
|
e,
|
|
143
143
|
"--dynamic-height",
|
|
144
144
|
/*dynamicHeight*/
|
|
145
145
|
s[2]
|
|
146
146
|
);
|
|
147
147
|
},
|
|
148
|
-
m(r,
|
|
149
|
-
|
|
148
|
+
m(r, d) {
|
|
149
|
+
S(r, e, d), c && c.m(e, null), h(e, i), h(e, n), h(n, l), h(e, m), o.m(e, null), s[19](e);
|
|
150
150
|
},
|
|
151
|
-
p(r, [
|
|
151
|
+
p(r, [d]) {
|
|
152
152
|
/*isMobile*/
|
|
153
|
-
r[5] && c.p(r,
|
|
153
|
+
r[5] && c.p(r, d), d & /*$_*/
|
|
154
154
|
16 && a !== (a = /*$_*/
|
|
155
|
-
r[4]("titleDeposit") + "") && L(l, a), w === (w = p(r)) && o ? o.p(r,
|
|
156
|
-
4 &&
|
|
155
|
+
r[4]("titleDeposit") + "") && L(l, a), w === (w = p(r)) && o ? o.p(r, d) : (o.d(1), o = w(r), o && (o.c(), o.m(e, null))), d & /*dynamicHeight*/
|
|
156
|
+
4 && F(
|
|
157
157
|
e,
|
|
158
158
|
"--dynamic-height",
|
|
159
159
|
/*dynamicHeight*/
|
|
160
160
|
r[2]
|
|
161
161
|
);
|
|
162
162
|
},
|
|
163
|
-
i:
|
|
164
|
-
o:
|
|
163
|
+
i: I,
|
|
164
|
+
o: I,
|
|
165
165
|
d(r) {
|
|
166
|
-
r &&
|
|
166
|
+
r && x(e), c && c.d(), o.d(), s[19](null);
|
|
167
167
|
}
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function we(s, e, i) {
|
|
171
171
|
let n, a;
|
|
172
|
-
|
|
173
|
-
let { endpoint: l = "" } = e, { session: m = "" } = e, { playerid: c = "" } = e, { lang: p = "en" } = e, { hasdefaultamount: w = "" } = e, { clientstyling: o = "" } = e, { clientstylingurl: r = "" } = e, { translationurl:
|
|
174
|
-
const
|
|
175
|
-
fetch(
|
|
172
|
+
ie(s, se, (t) => i(4, a = t));
|
|
173
|
+
let { endpoint: l = "" } = e, { session: m = "" } = e, { playerid: c = "" } = e, { lang: p = "en" } = e, { hasdefaultamount: w = "" } = e, { clientstyling: o = "" } = e, { clientstylingurl: r = "" } = e, { translationurl: d = "" } = e, { currency: b = "" } = e, { mbsource: _ } = e, { shortcashierenabled: f = "false" } = e, g, N = window.navigator.userAgent, R = ae(N) !== "PC", B = !0, P, U, T = 0, j = "";
|
|
174
|
+
const O = () => {
|
|
175
|
+
fetch(d).then((D) => D.json()).then((D) => {
|
|
176
176
|
Object.keys(D).forEach((v) => {
|
|
177
|
-
|
|
177
|
+
W(v, D[v]);
|
|
178
178
|
});
|
|
179
179
|
}).catch((D) => {
|
|
180
180
|
console.log(D);
|
|
181
181
|
});
|
|
182
182
|
};
|
|
183
|
-
Object.keys(
|
|
184
|
-
|
|
183
|
+
Object.keys(G).forEach((t) => {
|
|
184
|
+
W(t, G[t]);
|
|
185
185
|
});
|
|
186
|
-
const
|
|
186
|
+
const z = () => {
|
|
187
187
|
window.postMessage({ type: "GoToPreviousRoute", isMobile: R }, window.location.href);
|
|
188
|
-
},
|
|
188
|
+
}, A = (t) => {
|
|
189
189
|
if (t.data) {
|
|
190
190
|
switch (t.data.type) {
|
|
191
191
|
case "ProfileDetailsData":
|
|
192
192
|
i(7, b = t.data.profileDetails.currency);
|
|
193
193
|
break;
|
|
194
194
|
}
|
|
195
|
-
switch (t.data["MMFE:setQuickDepositHeight"] && i(2,
|
|
195
|
+
switch (t.data["MMFE:setQuickDepositHeight"] && i(2, P = t.data["MMFE:setQuickDepositHeight"].toString() + "px"), t.data["MMFE:openFullCashier"] === "true" && (window.postMessage({ type: "GoToDeposit" }, window.location.href), window.postMessage({ type: "CloseShortCashier" }, window.location.href)), t.data.redirect) {
|
|
196
196
|
case "mm-hc-casino":
|
|
197
197
|
window.postMessage({ type: "GoToCasino" }, window.location.href);
|
|
198
198
|
break;
|
|
@@ -218,7 +218,7 @@ function fe(s, e, i) {
|
|
|
218
218
|
break;
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
-
},
|
|
221
|
+
}, q = () => {
|
|
222
222
|
let t = new URL(`${l}/v1/player/${c}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);
|
|
223
223
|
if (t.searchParams.append("language", p), n && t.searchParams.append("isShortCashier", f), w)
|
|
224
224
|
switch (b) {
|
|
@@ -242,43 +242,43 @@ function fe(s, e, i) {
|
|
|
242
242
|
};
|
|
243
243
|
fetch(t.href, D).then((v) => v.json()).then(
|
|
244
244
|
(v) => {
|
|
245
|
-
i(1, B = !1), i(3,
|
|
245
|
+
i(1, B = !1), i(3, j = v.CashierUrl);
|
|
246
246
|
},
|
|
247
247
|
(v) => {
|
|
248
248
|
console.error(v);
|
|
249
249
|
}
|
|
250
250
|
);
|
|
251
|
-
},
|
|
251
|
+
}, Q = () => {
|
|
252
252
|
de(p);
|
|
253
253
|
};
|
|
254
|
-
|
|
255
|
-
window.removeEventListener("message",
|
|
254
|
+
re(() => (window.addEventListener("message", A, !1), () => {
|
|
255
|
+
window.emMessageBus && U && U.unsubscribe(), window.removeEventListener("message", A);
|
|
256
256
|
}));
|
|
257
|
-
const
|
|
258
|
-
function
|
|
259
|
-
|
|
257
|
+
const Y = () => z();
|
|
258
|
+
function V(t) {
|
|
259
|
+
ue[t ? "unshift" : "push"](() => {
|
|
260
260
|
g = t, i(0, g);
|
|
261
261
|
});
|
|
262
262
|
}
|
|
263
263
|
return s.$$set = (t) => {
|
|
264
|
-
"endpoint" in t && i(8, l = t.endpoint), "session" in t && i(9, m = t.session), "playerid" in t && i(10, c = t.playerid), "lang" in t && i(11, p = t.lang), "hasdefaultamount" in t && i(12, w = t.hasdefaultamount), "clientstyling" in t && i(13, o = t.clientstyling), "clientstylingurl" in t && i(14, r = t.clientstylingurl), "translationurl" in t && i(15,
|
|
264
|
+
"endpoint" in t && i(8, l = t.endpoint), "session" in t && i(9, m = t.session), "playerid" in t && i(10, c = t.playerid), "lang" in t && i(11, p = t.lang), "hasdefaultamount" in t && i(12, w = t.hasdefaultamount), "clientstyling" in t && i(13, o = t.clientstyling), "clientstylingurl" in t && i(14, r = t.clientstylingurl), "translationurl" in t && i(15, d = t.translationurl), "currency" in t && i(7, b = t.currency), "mbsource" in t && i(16, _ = t.mbsource), "shortcashierenabled" in t && i(17, f = t.shortcashierenabled);
|
|
265
265
|
}, s.$$.update = () => {
|
|
266
266
|
s.$$.dirty & /*lang*/
|
|
267
|
-
2048 && p &&
|
|
267
|
+
2048 && p && Q(), s.$$.dirty & /*shortcashierenabled*/
|
|
268
268
|
131072 && (n = f.toLocaleLowerCase() === "true"), s.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
269
269
|
8193 && o && g && ne(g, o), s.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
270
270
|
16385 && r && g && oe(g, r), s.$$.dirty & /*mbsource, customStylingContainer*/
|
|
271
271
|
65537 && _ && g && le(g, `${_}.Style`), s.$$.dirty & /*translationurl*/
|
|
272
|
-
32768 &&
|
|
273
|
-
135040 && m && c && l && b && p && f &&
|
|
272
|
+
32768 && d && O(), s.$$.dirty & /*session, playerid, endpoint, currency, lang, shortcashierenabled*/
|
|
273
|
+
135040 && m && c && l && b && p && f && q();
|
|
274
274
|
}, [
|
|
275
275
|
g,
|
|
276
276
|
B,
|
|
277
|
-
I,
|
|
278
277
|
P,
|
|
278
|
+
j,
|
|
279
279
|
a,
|
|
280
280
|
R,
|
|
281
|
-
|
|
281
|
+
z,
|
|
282
282
|
b,
|
|
283
283
|
l,
|
|
284
284
|
m,
|
|
@@ -287,21 +287,21 @@ function fe(s, e, i) {
|
|
|
287
287
|
w,
|
|
288
288
|
o,
|
|
289
289
|
r,
|
|
290
|
-
|
|
290
|
+
d,
|
|
291
291
|
_,
|
|
292
292
|
f,
|
|
293
|
-
|
|
294
|
-
|
|
293
|
+
Y,
|
|
294
|
+
V
|
|
295
295
|
];
|
|
296
296
|
}
|
|
297
|
-
class
|
|
297
|
+
class ye extends J {
|
|
298
298
|
constructor(e) {
|
|
299
|
-
super(),
|
|
299
|
+
super(), K(
|
|
300
300
|
this,
|
|
301
301
|
e,
|
|
302
|
+
we,
|
|
302
303
|
fe,
|
|
303
|
-
|
|
304
|
-
K,
|
|
304
|
+
$,
|
|
305
305
|
{
|
|
306
306
|
endpoint: 8,
|
|
307
307
|
session: 9,
|
|
@@ -315,7 +315,7 @@ class we extends X {
|
|
|
315
315
|
mbsource: 16,
|
|
316
316
|
shortcashierenabled: 17
|
|
317
317
|
},
|
|
318
|
-
|
|
318
|
+
he
|
|
319
319
|
);
|
|
320
320
|
}
|
|
321
321
|
get endpoint() {
|
|
@@ -385,7 +385,7 @@ class we extends X {
|
|
|
385
385
|
this.$$set({ shortcashierenabled: e }), y();
|
|
386
386
|
}
|
|
387
387
|
}
|
|
388
|
-
|
|
388
|
+
ee(ye, { endpoint: {}, session: {}, playerid: {}, lang: {}, hasdefaultamount: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, currency: {}, mbsource: {}, shortcashierenabled: {} }, [], [], !0);
|
|
389
389
|
export {
|
|
390
|
-
|
|
390
|
+
ye as default
|
|
391
391
|
};
|