@everymatrix/casino-header-controller-nd 1.88.24 → 1.89.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/{CasinoHamburgerMenuNd-B6yCxu2l.js → CasinoHamburgerMenuNd-C3GWQXmv.js} +1 -1
- package/components/{CasinoHamburgerMenuNd-CbF8J9xF.js → CasinoHamburgerMenuNd-Ctin9D1n.js} +1 -1
- package/components/{CasinoHamburgerMenuNd-DZYQtVF7.cjs → CasinoHamburgerMenuNd-Dy_ZPbVP.cjs} +1 -1
- package/components/{CasinoHeaderControllerNd-CLuSRXwW.js → CasinoHeaderControllerNd-BNDsJ0W8.js} +1240 -1203
- package/components/{CasinoHeaderControllerNd-CltYrq-z.cjs → CasinoHeaderControllerNd-BWivTr9J.cjs} +4 -4
- package/components/{CasinoHeaderControllerNd-B0h0Sl5e.js → CasinoHeaderControllerNd-DwjT7tNR.js} +1198 -1161
- package/components/PlayerAccountBalanceModalNd-BcX135Ha.js +1653 -0
- package/components/PlayerAccountBalanceModalNd-DpqQtYYT.js +1624 -0
- package/components/PlayerAccountBalanceModalNd-yZ9YD5yq.cjs +7 -0
- package/components/{PlayerDeposit-Ck7MOwuh.js → PlayerDeposit-Bh1FyHgv.js} +1 -1
- package/components/{PlayerDeposit-L0lq5cG2.cjs → PlayerDeposit-CYF8aGub.cjs} +1 -1
- package/components/{PlayerDeposit-BDa9CPYe.js → PlayerDeposit-UutKx0XP.js} +1 -1
- 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-v4JicA9I.js → casino-hamburger-menu-nd-3hvipqDm.js} +1 -1
- package/lazy/{casino-hamburger-menu-nd-B6WowFSF.cjs → casino-hamburger-menu-nd-CmmwDN64.cjs} +1 -1
- package/lazy/{casino-hamburger-menu-nd-DfVPkFxI.js → casino-hamburger-menu-nd-D4isZY0K.js} +1 -1
- package/lazy/{player-account-balance-modal-nd-BucucUwJ.js → player-account-balance-modal-nd-5D0P7FGO.js} +1 -1
- package/lazy/{player-account-balance-modal-nd-ZcqlgEY3.js → player-account-balance-modal-nd-Ci_Xhu6o.js} +1 -1
- package/lazy/{player-account-balance-modal-nd-CbmnUlxO.cjs → player-account-balance-modal-nd-D5Yd9Mmm.cjs} +1 -1
- package/lazy/{player-deposit-RcgNgfhi.js → player-deposit-CDrc20C1.js} +1 -1
- package/lazy/{player-deposit-J4bV5NZL.js → player-deposit-raELRvCH.js} +1 -1
- package/lazy/{player-deposit-DhHxNXb-.cjs → player-deposit-vTgh6aYY.cjs} +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountBalanceModalNd-CPc_ift9.js +0 -1568
- package/components/PlayerAccountBalanceModalNd-DKCLK_VU.js +0 -1539
- package/components/PlayerAccountBalanceModalNd-DWGZNa-v.cjs +0 -7
|
@@ -1,7 +0,0 @@
|
|
|
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((h,v)=>{var c=u=>{try{b(a.next(u))}catch(B){v(B)}},d=u=>{try{b(a.throw(u))}catch(B){v(B)}},b=u=>u.done?h(u.value):Promise.resolve(u.value).then(c,d);b((a=a.apply(r,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHeaderControllerNd-CltYrq-z.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 h=a.setTimeout,v=a.clearTimeout,c=a.XMLHttpRequest,d=a.XDomainRequest,b=a.ActiveXObject,u=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&&b!=null&&(c=function(){return new b("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(n){function l(){}return l.prototype=n,new l}),Date.now||(Date.now=function(){return new Date().getTime()}),H==null){var ce=z;z=function(n,l){var f=l.signal;return ce(n,{headers:l.headers,credentials:l.credentials,cache:l.cache}).then(function(i){var T=i.body.getReader();return f._reader=T,f._aborted&&f._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 l(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 f(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||!l(x<<6|L&63,g-6,f(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&&!l(x,g,f(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 V=function(){};function P(n){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=V,this.onload=V,this.onerror=V,this.onreadystatechange=V,this._contentType="",this._xhr=n,this._sendTimeout=0,this._abort=V}P.prototype.open=function(n,l){this._abort(!0);var f=this,i=this._xhr,T=1,g=0;this._abort=function(S){f._sendTimeout!==0&&(v(f._sendTimeout),f._sendTimeout=0),(T===1||T===2||T===3)&&(T=4,i.onload=V,i.onerror=V,i.onabort=V,i.onprogress=V,i.onreadystatechange=V,i.abort(),g!==0&&(v(g),g=0),S||(f.readyState=4,f.onabort(null),f.onreadystatechange())),T=0};var x=function(){if(T===1){var S=0,o="",p=void 0;if("contentType"in i)S=200,o="OK",p=i.contentType;else try{S=i.status,o=i.statusText,p=i.getResponseHeader("Content-Type")}catch(w){S=0,o="",p=void 0}S!==0&&(T=2,f.readyState=2,f.status=S,f.statusText=o,f._contentType=p,f.onreadystatechange())}},N=function(){if(x(),T===2||T===3){T=3;var S="";try{S=i.responseText}catch(o){}f.readyState=3,f.responseText=S,f.onprogress()}},L=function(S,o){if((o==null||o.preventDefault==null)&&(o={preventDefault:V}),N(),T===1||T===2||T===3){if(T=4,g!==0&&(v(g),g=0),f.readyState=4,S==="load")f.onload(o);else if(S==="error")f.onerror(o);else if(S==="abort")f.onabort(o);else throw new TypeError;f.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=h(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))&&(l+=(l.indexOf("?")===-1?"?":"&")+"padding=true"),i.open(n,l,!0),"readyState"in i&&(g=h(function(){O()},0))},P.prototype.abort=function(){this._abort(!1)},P.prototype.getResponseHeader=function(n){return this._contentType},P.prototype.setRequestHeader=function(n,l){var f=this._xhr;"setRequestHeader"in f&&f.setRequestHeader(n,l)},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=h(function(){n._sendTimeout=0,n.send()},4);return}var l=this._xhr;"withCredentials"in l&&(l.withCredentials=this.withCredentials);try{l.send(void 0)}catch(f){throw f}};function ee(n){return n.replace(/[A-Z]/g,function(l){return String.fromCharCode(l.charCodeAt(0)+32)})}function oe(n){for(var l=Object.create(null),f=n.split(`\r
|
|
6
|
-
`),i=0;i<f.length;i+=1){var T=f[i],g=T.split(": "),x=g.shift(),N=g.join(": ");l[ee(x)]=N}this._map=l}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,l,f,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,f(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();l(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 U(){}U.prototype.open=function(n,l,f,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(),l(S.status,S.statusText,S.headers.get("Content-Type"),new G(S.headers)),new D(function(o,p){var w=function(){N.read().then(function(y){if(y.done)o(void 0);else{var A=O.decode(y.value,{stream:!0});f(A),w()}}).catch(function(y){p(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){h(function(){throw n},0)}k.prototype.dispatchEvent=function(n){n.target=this;var l=this._listeners[n.type];if(l!=null)for(var f=l.length,i=0;i<f;i+=1){var T=l[i];try{typeof T.handleEvent=="function"?T.handleEvent(n):T.call(this,n)}catch(g){E(g)}}},k.prototype.addEventListener=function(n,l){n=String(n);var f=this._listeners,i=f[n];i==null&&(i=[],f[n]=i);for(var T=!1,g=0;g<i.length;g+=1)i[g]===l&&(T=!0);T||i.push(l)},k.prototype.removeEventListener=function(n,l){n=String(n);var f=this._listeners,i=f[n];if(i!=null){for(var T=[],g=0;g<i.length;g+=1)i[g]!==l&&T.push(i[g]);T.length===0?delete f[n]:f[n]=T}};function F(n){this.type=n,this.target=void 0}function I(n,l){F.call(this,n),this.data=l.data,this.lastEventId=l.lastEventId}I.prototype=Object.create(F.prototype);function ue(n,l){F.call(this,n),this.status=l.status,this.statusText=l.statusText,this.headers=l.headers}ue.prototype=Object.create(F.prototype);function Re(n,l){F.call(this,n),this.error=l.error}Re.prototype=Object.create(F.prototype);var le=-1,Z=0,J=1,re=2,Te=-1,s=0,fe=1,Ee=2,ve=3,_e=/^text\/event\-stream(;.*)?$/i,ke=1e3,Oe=18e6,Ae=function(n,l){var f=n==null?l:parseInt(n,10);return f!==f&&(f=l),be(f)},be=function(n){return Math.min(Math.max(n,ke),Oe)},pe=function(n,l,f){try{typeof l=="function"&&l.call(n,f)}catch(i){E(i)}};function te(n,l){k.call(this),l=l||{},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,l)}function xe(){return c!=null&&"withCredentials"in c.prototype||d==null?new c:new d}var Me=z!=null&&j!=null&&"body"in j.prototype;function Ne(n,l,f){l=String(l);var i=!!f.withCredentials,T=f.lastEventIdQueryParameterName||"lastEventId",g=be(1e3),x=Ae(f.heartbeatTimeout,45e3),N="",L=g,M=!1,O=0,S=f.headers||{},o=f.Transport,p=Me&&o==null?void 0:new P(o!=null?new o:xe()),w=o!=null&&typeof o!="string"?new o:p==null?new U:new de,y=void 0,A=0,R=le,m="",q="",W="",se="",Y=s,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?se:"")+K.slice(0,X+1);se=(X===-1?se:"")+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=s;else if(Y===Te&&(Y=s),ne===13||ne===10){if(Y!==s){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&&(v(A),A=h(function(){Le()},x)))}if(Y===s){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:s}else Y===s&&(we=Q,Y=fe),Y===fe?ne===58&&(he=Q+1,Y=Ee):Y===Ee&&(Y=ve)}}},He=function(K){if(R===J||R===Z){R=le,A!==0&&(v(A),A=0),A=h(function(){Le()},L),L=be(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&&(v(A),A=0),n.readyState=re},Le=function(){if(A=0,R!==le){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=h(function(){Le()},K)}return}M=!1,O=0,A=h(function(){Le()},x),R=Z,m="",W="",q=N,se="",we=0,he=0,Y=s;var X=l;if(l.slice(0,5)!=="data:"&&l.slice(0,5)!=="blob:"&&N!==""){var ae=l.indexOf("?");X=ae===-1?l:l.slice(0,ae+1)+l.slice(ae+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(ge,Ce){return Ce===T?"":ge}),X+=(l.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(p,De,Be,He,X,ne,$)}catch(ge){throw Fe(),ge}};n.url=l,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=u;c!=null&&(u==null||!("withCredentials"in u.prototype))&&(Se=te),function(n){{var l=n(t);l!==void 0&&(r.exports=l)}}(function(n){n.EventSourcePolyfill=te,n.NativeEventSource=u,n.EventSource=Se})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:e.commonjsGlobal:globalThis)})(je,je.exports);var lt=je.exports;function st(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 h=r.slice();return h[61]=t[a],h}function We(r,t,a){const h=r.slice();return h[64]=t[a],h}function ct(r){let t,a,h,v,c,d,b,u,B,D,z,j,_=r[5]&&Ye(r);return{c(){t=e.element("button"),a=e.element("p"),h=e.text(r[7]),v=e.space(),c=e.element("span"),d=e.svg_element("svg"),b=e.svg_element("path"),B=e.space(),_&&_.c(),D=e.empty(),e.attr(b,"id","arrow"),e.attr(b,"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(b,"transform","translate(-274.511 -441.088)"),e.attr(b,"fill","#d1d1d1"),e.attr(d,"xmlns","http://www.w3.org/2000/svg"),e.attr(d,"width","14"),e.attr(d,"height","6.835"),e.attr(d,"viewBox","0 0 14 6.835"),e.attr(c,"class",u=r[4]?"TriangleActive":"TriangleInactive"),e.attr(t,"class","BalanceValue")},m(C,H){e.insert(C,t,H),e.append(t,a),e.append(a,h),e.append(t,v),e.append(t,c),e.append(c,d),e.append(d,b),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(h,C[7]),H[0]&16&&u!==(u=C[4]?"TriangleActive":"TriangleInactive")&&e.attr(c,"class",u),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")+"",h;return{c(){t=e.element("p"),h=e.text(a),e.attr(t,"class","Loading")},m(v,c){e.insert(v,t,c),e.append(t,h)},p(v,c){c[0]&256&&a!==(a=v[8]("Loading")+"")&&e.set_data(h,a)},d(v){v&&e.detach(t)}}}function Ye(r){let t,a,h,v,c,d,b,u,B=r[8]("Title")+"",D,z,j,_,C,H,ce=r[8]("DepositButton")+"",ie,ye,V,P,ee,oe,de,G=e.ensure_array_like(Object.keys(r[2])),U=[];for(let E=0;E<G.length;E+=1)U[E]=Ze(Ke(r,G,E));let k=r[0]==="true"&&Je(r);return{c(){t=e.element("div"),a=e.element("button"),v=e.space(),c=e.element("div"),d=e.element("div"),b=e.element("div"),u=e.element("p"),D=e.text(B),z=e.space(),j=e.element("div");for(let E=0;E<U.length;E+=1)U[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",h="BalanceModalClose "+(r[4]?"Open":"")),e.attr(u,"class","BalanceModalTitle"),e.attr(b,"class","BalanceModalHeader"),e.attr(j,"class","BalanceModalBody"),e.attr(H,"class","BalanceModalAction DepositButton"),e.attr(C,"class","BalanceModalFooter"),e.attr(d,"class",V="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,v),e.append(t,c),e.append(c,d),e.append(d,b),e.append(b,u),e.append(u,D),e.append(d,z),e.append(d,j);for(let I=0;I<U.length;I+=1)U[I]&&U[I].m(j,null);e.append(d,_),e.append(d,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&&h!==(h="BalanceModalClose "+(E[4]?"Open":""))&&e.attr(a,"class",h),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);U[I]?U[I].p(ue,F):(U[I]=Ze(ue),U[I].c(),U[I].m(j,null))}for(;I<U.length;I+=1)U[I].d(1);U.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&&V!==(V="ModalContent "+(E[4]?"Open":""))&&e.attr(d,"class",V),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(U,E),k&&k.d(),oe=!1,e.run_all(de)}}}function Qe(r){let t,a,h=r[8](r[61])+"",v,c,d=r[12](r[64])+"",b,u,B,D,z=r[10](r[64].amount)+"",j;return{c(){t=e.element("div"),a=e.element("p"),v=e.text(h),c=e.space(),b=e.text(d),u=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,v),e.append(a,c),e.append(a,b),e.append(t,u),e.append(t,B),e.append(B,D),e.append(D,j)},p(_,C){C[0]&260&&h!==(h=_[8](_[61])+"")&&e.set_data(v,h),C[0]&4&&d!==(d=_[12](_[64])+"")&&e.set_data(b,d),C[0]&4&&z!==(z=_[10](_[64].amount)+"")&&e.set_data(j,z)},d(_){_&&e.detach(t)}}}function Ze(r){let t,a,h,v=e.ensure_array_like(r[2][r[61]]),c=[];for(let d=0;d<v.length;d+=1)c[d]=Qe(We(r,v,d));return{c(){t=e.element("div");for(let d=0;d<c.length;d+=1)c[d].c();a=e.space(),e.attr(t,"class",h="BalanceModalRowBoth "+r[61])},m(d,b){e.insert(d,t,b);for(let u=0;u<c.length;u+=1)c[u]&&c[u].m(t,null);e.append(t,a)},p(d,b){if(b[0]&5380){v=e.ensure_array_like(d[2][d[61]]);let u;for(u=0;u<v.length;u+=1){const B=We(d,v,u);c[u]?c[u].p(B,b):(c[u]=Qe(B),c[u].c(),c[u].m(t,a))}for(;u<c.length;u+=1)c[u].d(1);c.length=v.length}b[0]&4&&h!==(h="BalanceModalRowBoth "+d[61])&&e.attr(t,"class",h)},d(d){d&&e.detach(t),e.destroy_each(c,d)}}}function Je(r){let t,a=r[8]("LimitsButton")+"",h,v,c;return{c(){t=e.element("button"),h=e.text(a),e.attr(t,"class","BalanceModalAction LimitsButton")},m(d,b){e.insert(d,t,b),e.append(t,h),v||(c=e.listen(t,"click",r[35]),v=!0)},p(d,b){b[0]&256&&a!==(a=d[8]("LimitsButton")+"")&&e.set_data(h,a)},d(d){d&&e.detach(t),v=!1,c()}}}function $e(r){let t,a,h;return{c(){t=e.element("button"),e.attr(t,"class","ShowBalanceModalOverlay")},m(v,c){e.insert(v,t,c),a||(h=e.listen(t,"click",r[36]),a=!0)},p:e.noop,d(v){v&&e.detach(t),a=!1,h()}}}function ut(r){let t,a,h,v;function c(B,D){return B[3]?dt:ct}let d=c(r),b=d(r),u=r[5]&&$e(r);return{c(){t=e.element("div"),a=e.element("div"),b.c(),v=e.space(),u&&u.c(),e.attr(a,"class",h="ShowBalance "+(r[6]?"Mobile":""))},m(B,D){e.insert(B,t,D),e.append(t,a),b.m(a,null),e.append(t,v),u&&u.m(t,null),r[37](t)},p(B,D){d===(d=c(B))&&b?b.p(B,D):(b.d(1),b=d(B),b&&(b.c(),b.m(a,null))),D[0]&64&&h!==(h="ShowBalance "+(B[6]?"Mobile":""))&&e.attr(a,"class",h),B[5]?u?u.p(B,D):(u=$e(B),u.c(),u.m(t,null)):u&&(u.d(1),u=null)},i:e.noop,o:e.noop,d(B){B&&e.detach(t),b.d(),u&&u.d(),r[37](null)}}}function ft(r,t,a){let h;e.component_subscribe(r,e.$format,o=>a(8,h=o));let{userid:v=""}=t,{session:c=""}=t,{endpoint:d=""}=t,{lang:b="en"}=t,{mbsource:u=""}=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:V="symbol"}=t,{maximumfractiondigits:P="2"}=t,{minimumfractiondigits:ee="0"}=t,{customdisplayformat:oe=""}=t,{alwaysshowdecimals:de="true"}=t,G,U,k=!0,E=!1,F=!1,I=!1,ue=!1,Re=window.navigator.userAgent,le,Z="",J=[],re,Te="0";const s={},fe=["totalCashAmount","totalRealAmount"],Ee=()=>{fetch(z).then(o=>o.json()).then(o=>Object.keys(o).forEach(p=>Xe(p,o[p]))).catch(o=>console.log(o))};Object.keys(qe).forEach(o=>Xe(o,qe[o]));const ve=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 p=ye||b,w={style:"currency",currency:Z,useGrouping:!0,currencyDisplay:V||"code",maximumFractionDigits:P===""||isNaN(Number(P))?2:Number(P),minimumFractionDigits:ee===""||isNaN(Number(ee))?0:Number(ee)};return new Intl.NumberFormat(p,w).format(o)},ke=o=>{const p=[];let w="";for(const y of oe)switch(y){default:w+=y;break;case"{":w&&p.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[se,Y]=String(Math.floor(o*Ie(10,W))/Ie(10,W)).split(".");w+=se[0];for(let Be=1;Be<se.length;++Be)(se.length-Be)%3===0?w+=m+se[Be]:w+=se[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&&p.push(w),w="";break}return p.push(w),p.join("")},Oe=()=>Ge(this,null,function*(){var p,w,y;a(3,k=!0);const o=new URL(`${d}/v1/player/${v}/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=(p=J.find(m=>m.displayName==="Casino"))==null?void 0:p.currency,a(2,s.Total=[{amount:R.totalAmount[Z]}],s),a(2,s.Real=[{amount:(w=J.find(m=>m.displayName==="Casino"))==null?void 0:w.balanceAmount}],s),a(2,s.Bonus=[{amount:(y=J.find(m=>m.displayName==="UBS"))==null?void 0:y.balanceAmount}],s);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(`${d}/v2/player/${v}/balance`),p=new Headers;p.append("X-SessionID",c),fetch(o,{method:"GET",headers:p}).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,s.Total=[{amount:0}],s),a(2,s.Real=[],s),a(2,s.Bonus=[],s),a(2,s.Credit=[],s),!F){re={lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},a(2,s.Total[0].amount=y[C][Z],s);for(const m of y.items)switch(m.type){case"Bonus":s.Bonus.length===0?s.Bonus.push({amount:m.amount}):a(2,s.Bonus[0].amount+=m.amount,s);break;case"Real":if(m.creditLine&&s.Credit.length===0&&s.Credit.push({amount:m.creditLine}),C==="totalRealAmount")continue;s.Real.length===0?s.Real.push({amount:m.amount}):a(2,s.Real[0].amount+=m.amount,s);break}for(const[m,q]of Object.entries(s))q.length<1&&delete s[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=s.Bonus.findIndex(W=>W.productType===m.productType),q>0?a(2,s.Bonus[q].amount+=m.amount,s):s.Bonus.push({amount:m.amount,productType:m.productType});break;case"Real":m.creditLine&&s.Credit.push({amount:m.creditLine,productType:m.productType}),q=s.Real.findIndex(W=>W.productType===m.productType),q>0?a(2,s.Real[q].amount+=m.amount,s):s.Real.push({amount:m.amount,productType:m.productType});break}}Me();for(const[m,q]of Object.entries(s))q.length<1&&delete s[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!")})},be=()=>{if(le&&le.close(),c.length<1)return;let o,p;switch(j){case"gm16":o=new URL(`${d}/v2/player/${v}/information/updates`),p=A=>Ne(A);break;case"gmcore":o=new URL(`${d}/v1/player/${v}/balance/updates`),p=A=>te(A);break}const w={accept:"text/event-stream","X-SessionId":c},y=new lt.EventSourcePolyfill(o,{headers:w});le=y,y.addEventListener("message",p)},pe=o=>{let p;try{p=JSON.parse(o)}catch(w){console.log("Balance stream failed: ",w);return}return p},te=o=>{var A,R;const p=pe(o.data);if(!p){be();return}let w="0";const y=p.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,s.Real=[{amount:(A=J[0])==null?void 0:A.balanceAmount}],s),a(2,s.Bonus=[{amount:(R=J[1])==null?void 0:R.balanceAmount}],s),a(2,s.Total=[{amount:Number(w)}],s)},xe=(o,p,w)=>{let y=null;switch(w.walletAccountType){case"Ordinary":(w.afterAmount!==w.affectedAmount||p.lastOrdinaryAfterAmount===0)&&(p.lastOrdinaryAfterAmount=w.afterAmount,p.showCreditLineAfterAmount||(y=w.afterAmount));break;case"CreditLine":w.afterAmount!==0?(y=w.afterAmount,p.showCreditLineAfterAmount=!0):(y=p.lastOrdinaryAfterAmount,p.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 s[w])o+=Math.max(y.amount,0);a(2,s.Total[0].amount=o,s);break;case"totalRealAmount":if(!F)return;let p=0;for(const w of s.Real)p+=w.amount;a(2,s.Total[0].amount=p,s)}},Ne=o=>{const p=pe(o.data);if(!p){be();return}if(n(p==null?void 0:p.type)||p.type!=="BALANCE_UPDATE_V2")return;const w=p.body.balanceChange;for(const[y,A]of Object.entries(w))if(C==="totalRealAmount"&&y==="Real"&&!F&&a(2,s.Total[0].amount=xe(s.Total[0].amount,re,A),s),!!s[y])for(const R of s[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(ve("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,l=()=>{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]))},f=()=>{switch(it(b),l(),j){case"gmcore":Oe();break;case"gm16":Ae();break;default:throw Error(`Invalid apiversion attribute: ${j}`)}},i=o=>{const{data:{type:p}={}}=o||{};switch(p){case"LogoutSuccessfull":le.close();break;case"CloseBalance":ve("closebalance");break}},T=()=>{window.postMessage({type:"UpdateBalanceBackground"},window.location.href)},g=o=>{const p=ie.split(",").map(w=>w.trim());return!o.productType||p.includes(o.productType)?"":h(o.productType)};e.onMount(()=>(window.addEventListener("message",i,!1),a(6,ue=e.isMobile(Re)),()=>{window.removeEventListener("message",i),le&&le.close()}));const x=()=>ve("balance"),N=()=>ve("closebalance"),L=()=>Se("deposit"),M=()=>Se("limits"),O=()=>ve("closebalance");function S(o){e.binding_callbacks[o?"unshift":"push"](()=>{G=o,a(1,G)})}return r.$$set=o=>{"userid"in o&&a(14,v=o.userid),"session"in o&&a(15,c=o.session),"endpoint"in o&&a(16,d=o.endpoint),"lang"in o&&a(17,b=o.lang),"mbsource"in o&&a(18,u=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,V=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&&d&&v&&c&&b&&j&&_&&f(),r.$$.dirty[0]&4308992&&d&&v&&c&&j&&be(),r.$$.dirty[0]&2097152&&z&&Ee(),r.$$.dirty[0]&4&&s.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&&u&&G&&e.setStreamStyling(G,`${u}.Style`,U),r.$$.dirty[0]&16777220&&a(7,Te=(()=>{switch(H){case"Real":return s.Real?_e(s.Real[0].amount):"0";default:return s.Total?_e(s.Total[0].amount):"0"}})())},[ce,G,s,k,E,I,ue,Te,h,ve,_e,Se,g,C,v,c,d,b,u,B,D,z,j,_,H,ie,ye,V,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},st,[-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;
|