@everymatrix/casino-header-controller-nd 1.80.12 → 1.80.14
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-Bvwv47IV.js → CasinoHamburgerMenuNd-CNHcuKgb.js} +90 -88
- package/components/{CasinoHamburgerMenuNd-DslPLpON.cjs → CasinoHamburgerMenuNd-CO_etjfF.cjs} +3 -3
- package/components/{CasinoHamburgerMenuNd-CkpB3LjN.js → CasinoHamburgerMenuNd-D_F3LqqU.js} +33 -31
- package/components/CasinoHeaderControllerNd-BRHxlpWH.js +2561 -0
- package/components/CasinoHeaderControllerNd-DbEj7WbE.js +2587 -0
- package/components/CasinoHeaderControllerNd-KMtnoFkv.cjs +1 -0
- package/components/PlayerAccountBalanceModalNd-D2FhbpGW.js +1536 -0
- package/components/PlayerAccountBalanceModalNd-D4AuGgJt.js +1507 -0
- package/components/PlayerAccountBalanceModalNd-DgUAkV_P.cjs +7 -0
- package/components/{PlayerDeposit-R2KgNT4p.js → PlayerDeposit-B16OcHzg.js} +20 -20
- package/components/{PlayerDeposit-Bp82pg7V.js → PlayerDeposit-Dz8S_7Op.js} +20 -20
- package/components/{PlayerDeposit-D076Vp1g.cjs → PlayerDeposit-R4l3tFgV.cjs} +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-BKbleOqu.js → casino-hamburger-menu-nd-B7nNEYx3.js} +1 -1
- package/lazy/{casino-hamburger-menu-nd-D0fSaYaM.cjs → casino-hamburger-menu-nd-DQ47l6Ct.cjs} +1 -1
- package/lazy/{casino-hamburger-menu-nd-1DrfDZmJ.js → casino-hamburger-menu-nd-SLBF88fX.js} +1 -1
- package/lazy/{player-account-balance-modal-nd-D-oQzLDl.js → player-account-balance-modal-nd-CZt6OrSf.js} +1 -1
- package/lazy/{player-account-balance-modal-nd-Bh_izKRf.cjs → player-account-balance-modal-nd-Dc_5osXi.cjs} +1 -1
- package/lazy/{player-account-balance-modal-nd--5yIBIRl.js → player-account-balance-modal-nd-uXBGnYRe.js} +1 -1
- package/lazy/{player-deposit-emHtRwQ2.js → player-deposit-BqFt7czR.js} +1 -1
- package/lazy/{player-deposit-B_k6nE7k.cjs → player-deposit-DAZgrywg.cjs} +1 -1
- package/lazy/{player-deposit-CIHdGBaZ.js → player-deposit-UR7BJTim.js} +1 -1
- package/lazy/{user-deposit-withdrawal-D0rShkq5.js → user-deposit-withdrawal-B31dqZSp.js} +1 -1
- package/lazy/{user-deposit-withdrawal-Dpqnwy_H.js → user-deposit-withdrawal-DDYHKGEr.js} +1 -1
- package/lazy/{user-deposit-withdrawal-bNF3b4Ug.cjs → user-deposit-withdrawal-DjYOuPj2.cjs} +1 -1
- package/package.json +1 -1
- package/stencil/{user-deposit-withdrawal-6wE6l893.js → user-deposit-withdrawal-B3gYtP8t.js} +71 -71
- package/stencil/{user-deposit-withdrawal-B_d-ipGD.js → user-deposit-withdrawal-Bcg5KS8a.js} +69 -69
- package/stencil/{user-deposit-withdrawal-Div9Us4I.cjs → user-deposit-withdrawal-C07LUztI.cjs} +2 -2
- package/components/CasinoHeaderControllerNd-B7xQ-UIG.js +0 -2445
- package/components/CasinoHeaderControllerNd-CSLVTbGK.cjs +0 -1
- package/components/CasinoHeaderControllerNd-ghWC0yFx.js +0 -2471
- package/components/PlayerAccountBalanceModalNd-C4Dwr0dD.js +0 -1440
- package/components/PlayerAccountBalanceModalNd-JX7NjRSy.js +0 -1469
- package/components/PlayerAccountBalanceModalNd-UopfVqmk.cjs +0 -7
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";var tt=Object.defineProperty,nt=Object.defineProperties;var at=Object.getOwnPropertyDescriptors;var je=Object.getOwnPropertySymbols;var ot=Object.prototype.hasOwnProperty,rt=Object.prototype.propertyIsEnumerable;var Ne=Math.pow,He=(r,t,n)=>t in r?tt(r,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[t]=n,ze=(r,t)=>{for(var n in t||(t={}))ot.call(t,n)&&He(r,n,t[n]);if(je)for(var n of je(t))rt.call(t,n)&&He(r,n,t[n]);return r},Ve=(r,t)=>nt(r,at(t));var Ue=(r,t,n)=>new Promise((v,h)=>{var p=T=>{try{m(n.next(T))}catch(S){h(S)}},B=T=>{try{m(n.throw(T))}catch(S){h(S)}},m=T=>T.done?v(T.value):Promise.resolve(T.value).then(p,B);m((n=n.apply(r,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHamburgerMenuNd-CO_etjfF.cjs");function Pe(r,t){e.addMessages(r,t)}function it(r){e.$locale.set(r)}const Ge={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 Fe={exports:{}};/** @license
|
|
2
|
+
* eventsource.js
|
|
3
|
+
* Available under MIT License (MIT)
|
|
4
|
+
* https://github.com/Yaffle/EventSource/
|
|
5
|
+
*/(function(r,t){(function(n){var v=n.setTimeout,h=n.clearTimeout,p=n.XMLHttpRequest,B=n.XDomainRequest,m=n.ActiveXObject,T=n.EventSource,S=n.document,E=n.Promise,k=n.fetch,D=n.Response,L=n.TextDecoder,_=n.TextEncoder,x=n.AbortController;if(typeof window!="undefined"&&typeof S!="undefined"&&!("readyState"in S)&&S.body==null&&(S.readyState="loading",window.addEventListener("load",function(a){S.readyState="complete"},!1)),p==null&&m!=null&&(p=function(){return new m("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(a){function s(){}return s.prototype=a,new s}),Date.now||(Date.now=function(){return new Date().getTime()}),x==null){var j=k;k=function(a,s){var y=s.signal;return j(a,{headers:s.headers,credentials:s.credentials,cache:s.cache}).then(function(l){var C=l.body.getReader();return y._reader=C,y._aborted&&y._reader.cancel(),{status:l.status,statusText:l.statusText,headers:l.headers,body:{getReader:function(){return C}}}})},x=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function oe(){this.bitsNeeded=0,this.codePoint=0}oe.prototype.decode=function(a){function s(u,w,f){if(f===1)return u>=128>>w&&u<<w<=2047;if(f===2)return u>=2048>>w&&u<<w<=55295||u>=57344>>w&&u<<w<=65535;if(f===3)return u>=65536>>w&&u<<w<=1114111;throw new Error}function y(u,w){if(u===6*1)return w>>6>15?3:w>31?2:1;if(u===6*2)return w>15?3:2;if(u===6*3)return 3;throw new Error}for(var l=65533,C="",b=this.bitsNeeded,o=this.codePoint,d=0;d<a.length;d+=1){var i=a[d];b!==0&&(i<128||i>191||!s(o<<6|i&63,b-6,y(b,o)))&&(b=0,o=l,C+=String.fromCharCode(o)),b===0?(i>=0&&i<=127?(b=0,o=i):i>=192&&i<=223?(b=6*1,o=i&31):i>=224&&i<=239?(b=6*2,o=i&15):i>=240&&i<=247?(b=6*3,o=i&7):(b=0,o=l),b!==0&&!s(o,b,y(b,o))&&(b=0,o=l)):(b-=6,o=o<<6|i&63),b===0&&(o<=65535?C+=String.fromCharCode(o):(C+=String.fromCharCode(55296+(o-65535-1>>10)),C+=String.fromCharCode(56320+(o-65535-1&1023))))}return this.bitsNeeded=b,this.codePoint=o,C};var re=function(){try{return new L().decode(new _().encode("test"),{stream:!0})==="test"}catch(a){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+a)}return!1};(L==null||_==null||!re())&&(L=oe);var F=function(){};function P(a){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=F,this.onload=F,this.onerror=F,this.onreadystatechange=F,this._contentType="",this._xhr=a,this._sendTimeout=0,this._abort=F}P.prototype.open=function(a,s){this._abort(!0);var y=this,l=this._xhr,C=1,b=0;this._abort=function(f){y._sendTimeout!==0&&(h(y._sendTimeout),y._sendTimeout=0),(C===1||C===2||C===3)&&(C=4,l.onload=F,l.onerror=F,l.onabort=F,l.onprogress=F,l.onreadystatechange=F,l.abort(),b!==0&&(h(b),b=0),f||(y.readyState=4,y.onabort(null),y.onreadystatechange())),C=0};var o=function(){if(C===1){var f=0,c="",N=void 0;if("contentType"in l)f=200,c="OK",N=l.contentType;else try{f=l.status,c=l.statusText,N=l.getResponseHeader("Content-Type")}catch(ee){f=0,c="",N=void 0}f!==0&&(C=2,y.readyState=2,y.status=f,y.statusText=c,y._contentType=N,y.onreadystatechange())}},d=function(){if(o(),C===2||C===3){C=3;var f="";try{f=l.responseText}catch(c){}y.readyState=3,y.responseText=f,y.onprogress()}},i=function(f,c){if((c==null||c.preventDefault==null)&&(c={preventDefault:F}),d(),C===1||C===2||C===3){if(C=4,b!==0&&(h(b),b=0),y.readyState=4,f==="load")y.onload(c);else if(f==="error")y.onerror(c);else if(f==="abort")y.onabort(c);else throw new TypeError;y.onreadystatechange()}},u=function(f){l!=null&&(l.readyState===4?(!("onload"in l)||!("onerror"in l)||!("onabort"in l))&&i(l.responseText===""?"error":"load",f):l.readyState===3?"onprogress"in l||d():l.readyState===2&&o())},w=function(){b=v(function(){w()},500),l.readyState===3&&d()};"onload"in l&&(l.onload=function(f){i("load",f)}),"onerror"in l&&(l.onerror=function(f){i("error",f)}),"onabort"in l&&(l.onabort=function(f){i("abort",f)}),"onprogress"in l&&(l.onprogress=d),"onreadystatechange"in l&&(l.onreadystatechange=function(f){u(f)}),("contentType"in l||!("ontimeout"in p.prototype))&&(s+=(s.indexOf("?")===-1?"?":"&")+"padding=true"),l.open(a,s,!0),"readyState"in l&&(b=v(function(){w()},0))},P.prototype.abort=function(){this._abort(!1)},P.prototype.getResponseHeader=function(a){return this._contentType},P.prototype.setRequestHeader=function(a,s){var y=this._xhr;"setRequestHeader"in y&&y.setRequestHeader(a,s)},P.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},P.prototype.send=function(){if((!("ontimeout"in p.prototype)||!("sendAsBinary"in p.prototype)&&!("mozAnon"in p.prototype))&&S!=null&&S.readyState!=null&&S.readyState!=="complete"){var a=this;a._sendTimeout=v(function(){a._sendTimeout=0,a.send()},4);return}var s=this._xhr;"withCredentials"in s&&(s.withCredentials=this.withCredentials);try{s.send(void 0)}catch(y){throw y}};function G(a){return a.replace(/[A-Z]/g,function(s){return String.fromCharCode(s.charCodeAt(0)+32)})}function Z(a){for(var s=Object.create(null),y=a.split(`\r
|
|
6
|
+
`),l=0;l<y.length;l+=1){var C=y[l],b=C.split(": "),o=b.shift(),d=b.join(": ");s[G(o)]=d}this._map=s}Z.prototype.get=function(a){return this._map[G(a)]},p!=null&&p.HEADERS_RECEIVED==null&&(p.HEADERS_RECEIVED=2);function se(){}se.prototype.open=function(a,s,y,l,C,b,o){a.open("GET",C);var d=0;a.onprogress=function(){var u=a.responseText,w=u.slice(d);d+=w.length,y(w)},a.onerror=function(u){u.preventDefault(),l(new Error("NetworkError"))},a.onload=function(){l(null)},a.onabort=function(){l(null)},a.onreadystatechange=function(){if(a.readyState===p.HEADERS_RECEIVED){var u=a.status,w=a.statusText,f=a.getResponseHeader("Content-Type"),c=a.getAllResponseHeaders();s(u,w,f,new Z(c))}},a.withCredentials=b;for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&a.setRequestHeader(i,o[i]);return a.send(),a};function K(a){this._headers=a}K.prototype.get=function(a){return this._headers.get(a)};function I(){}I.prototype.open=function(a,s,y,l,C,b,o){var d=null,i=new x,u=i.signal,w=new L;return k(C,{headers:o,credentials:b?"include":"same-origin",signal:u,cache:"no-store"}).then(function(f){return d=f.body.getReader(),s(f.status,f.statusText,f.headers.get("Content-Type"),new K(f.headers)),new E(function(c,N){var ee=function(){d.read().then(function(H){if(H.done)c(void 0);else{var V=w.decode(H.value,{stream:!0});y(V),ee()}}).catch(function(H){N(H)})};ee()})}).catch(function(f){if(f.name!=="AbortError")return f}).then(function(f){l(f)}),{abort:function(){d!=null&&d.cancel(),i.abort()}}};function O(){this._listeners=Object.create(null)}function A(a){v(function(){throw a},0)}O.prototype.dispatchEvent=function(a){a.target=this;var s=this._listeners[a.type];if(s!=null)for(var y=s.length,l=0;l<y;l+=1){var C=s[l];try{typeof C.handleEvent=="function"?C.handleEvent(a):C.call(this,a)}catch(b){A(b)}}},O.prototype.addEventListener=function(a,s){a=String(a);var y=this._listeners,l=y[a];l==null&&(l=[],y[a]=l);for(var C=!1,b=0;b<l.length;b+=1)l[b]===s&&(C=!0);C||l.push(s)},O.prototype.removeEventListener=function(a,s){a=String(a);var y=this._listeners,l=y[a];if(l!=null){for(var C=[],b=0;b<l.length;b+=1)l[b]!==s&&C.push(l[b]);C.length===0?delete y[a]:y[a]=C}};function M(a){this.type=a,this.target=void 0}function R(a,s){M.call(this,a),this.data=s.data,this.lastEventId=s.lastEventId}R.prototype=Object.create(M.prototype);function W(a,s){M.call(this,a),this.status=s.status,this.statusText=s.statusText,this.headers=s.headers}W.prototype=Object.create(M.prototype);function fe(a,s){M.call(this,a),this.error=s.error}fe.prototype=Object.create(M.prototype);var g=-1,J=0,pe=1,ae=2,ve=-1,ie=0,be=1,Ce=2,we=3,_e=/^text\/event\-stream(;.*)?$/i,Ee=1e3,Be=18e6,me=function(a,s){var y=a==null?s:parseInt(a,10);return y!==y&&(y=s),Te(y)},Te=function(a){return Math.min(Math.max(a,Ee),Be)},le=function(a,s,y){try{typeof s=="function"&&s.call(a,y)}catch(l){A(l)}};function $(a,s){O.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,Ae(this,a,s)}function Me(){return p!=null&&"withCredentials"in p.prototype||B==null?new p:new B}var De=k!=null&&D!=null&&"body"in D.prototype;function Ae(a,s,y){s=String(s);var l=!!y.withCredentials,C=y.lastEventIdQueryParameterName||"lastEventId",b=Te(1e3),o=me(y.heartbeatTimeout,45e3),d="",i=b,u=!1,w=0,f=y.headers||{},c=y.Transport,N=De&&c==null?void 0:new P(c!=null?new c:Me()),ee=c!=null&&typeof c!="string"?new c:N==null?new I:new se,H=void 0,V=0,X=g,ge="",xe="",ce="",Re="",Y=ie,ke=0,he=0,$e=function(U,z,te,ne){if(X===J)if(U===200&&te!=null&&_e.test(te)){X=pe,u=Date.now(),i=b,a.readyState=pe;var Q=new W("open",{status:U,statusText:z,headers:ne});a.dispatchEvent(Q),le(a,a.onopen,Q)}else{var q="";U!==200?(z&&(z=z.replace(/\s+/g," ")),q="EventSource's response has a status "+U+" "+z+" that is not 200. Aborting the connection."):q="EventSource's response has a Content-Type specifying an unsupported type: "+(te==null?"-":te.replace(/\s+/g," "))+". Aborting the connection.",Oe();var Q=new W("error",{status:U,statusText:z,headers:ne});a.dispatchEvent(Q),le(a,a.onerror,Q),console.error(q)}},et=function(U){if(X===pe){for(var z=-1,te=0;te<U.length;te+=1){var ne=U.charCodeAt(te);(ne===10||ne===13)&&(z=te)}var Q=(z!==-1?Re:"")+U.slice(0,z+1);Re=(z===-1?Re:"")+U.slice(z+1),U!==""&&(u=Date.now(),w+=U.length);for(var q=0;q<Q.length;q+=1){var ne=Q.charCodeAt(q);if(Y===ve&&ne===10)Y=ie;else if(Y===ve&&(Y=ie),ne===13||ne===10){if(Y!==ie){Y===be&&(he=q+1);var de=Q.slice(ke,he-1),ue=Q.slice(he+(he<q&&Q.charCodeAt(he)===32?1:0),q);de==="data"?(ge+=`
|
|
7
|
+
`,ge+=ue):de==="id"?xe=ue:de==="event"?ce=ue:de==="retry"?(b=me(ue,b),i=b):de==="heartbeatTimeout"&&(o=me(ue,o),V!==0&&(h(V),V=v(function(){Se()},o)))}if(Y===ie){if(ge!==""){d=xe,ce===""&&(ce="message");var ye=new R(ce,{data:ge.slice(1),lastEventId:xe});if(a.dispatchEvent(ye),ce==="open"?le(a,a.onopen,ye):ce==="message"?le(a,a.onmessage,ye):ce==="error"&&le(a,a.onerror,ye),X===ae)return}ge="",ce=""}Y=ne===13?ve:ie}else Y===ie&&(ke=q,Y=be),Y===be?ne===58&&(he=q+1,Y=Ce):Y===Ce&&(Y=we)}}},Ie=function(U){if(X===pe||X===J){X=g,V!==0&&(h(V),V=0),V=v(function(){Se()},i),i=Te(Math.min(b*16,i*2)),a.readyState=J;var z=new fe("error",{error:U});a.dispatchEvent(z),le(a,a.onerror,z),U!=null&&console.error(U)}},Oe=function(){X=ae,H!=null&&(H.abort(),H=void 0),V!==0&&(h(V),V=0),a.readyState=ae},Se=function(){if(V=0,X!==g){if(!u&&H!=null)Ie(new Error("No activity within "+o+" milliseconds. "+(X===J?"No response received.":w+" chars received.")+" Reconnecting.")),H!=null&&(H.abort(),H=void 0);else{var U=Math.max((u||Date.now())+o-Date.now(),1);u=!1,V=v(function(){Se()},U)}return}u=!1,w=0,V=v(function(){Se()},o),X=J,ge="",ce="",xe=d,Re="",ke=0,he=0,Y=ie;var z=s;if(s.slice(0,5)!=="data:"&&s.slice(0,5)!=="blob:"&&d!==""){var te=s.indexOf("?");z=te===-1?s:s.slice(0,te+1)+s.slice(te+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(ue,ye){return ye===C?"":ue}),z+=(s.indexOf("?")===-1?"?":"&")+C+"="+encodeURIComponent(d)}var ne=a.withCredentials,Q={};Q.Accept="text/event-stream";var q=a.headers;if(q!=null)for(var de in q)Object.prototype.hasOwnProperty.call(q,de)&&(Q[de]=q[de]);try{H=ee.open(N,$e,et,Ie,z,ne,Q)}catch(ue){throw Oe(),ue}};a.url=s,a.readyState=J,a.withCredentials=l,a.headers=f,a._close=Oe,Se()}$.prototype=Object.create(O.prototype),$.prototype.CONNECTING=J,$.prototype.OPEN=pe,$.prototype.CLOSED=ae,$.prototype.close=function(){this._close()},$.CONNECTING=J,$.OPEN=pe,$.CLOSED=ae,$.prototype.withCredentials=void 0;var Le=T;p!=null&&(T==null||!("withCredentials"in T.prototype))&&(Le=$),function(a){{var s=a(t);s!==void 0&&(r.exports=s)}}(function(a){a.EventSourcePolyfill=$,a.NativeEventSource=T,a.EventSource=Le})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:e.commonjsGlobal:globalThis)})(Fe,Fe.exports);var lt=Fe.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 Xe(r,t,n){const v=r.slice();return v[56]=t[n],v}function qe(r,t,n){const v=r.slice();return v[59]=t[n],v}function ct(r){let t,n,v=(r[2].Total?r[9](r[2].Total[0].amount):"0")+"",h,p,B,m,T,S,E,k,D,L,_=r[5]&&Ke(r);return{c(){t=e.element("button"),n=e.element("p"),h=e.text(v),p=e.space(),B=e.element("span"),m=e.svg_element("svg"),T=e.svg_element("path"),E=e.space(),_&&_.c(),k=e.empty(),e.attr(T,"id","arrow"),e.attr(T,"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(T,"transform","translate(-274.511 -441.088)"),e.attr(T,"fill","#d1d1d1"),e.attr(m,"xmlns","http://www.w3.org/2000/svg"),e.attr(m,"width","14"),e.attr(m,"height","6.835"),e.attr(m,"viewBox","0 0 14 6.835"),e.attr(B,"class",S=r[4]?"TriangleActive":"TriangleInactive"),e.attr(t,"class","BalanceValue")},m(x,j){e.insert(x,t,j),e.append(t,n),e.append(n,h),e.append(t,p),e.append(t,B),e.append(B,m),e.append(m,T),e.insert(x,E,j),_&&_.m(x,j),e.insert(x,k,j),D||(L=e.listen(t,"click",r[27]),D=!0)},p(x,j){j[0]&4&&v!==(v=(x[2].Total?x[9](x[2].Total[0].amount):"0")+"")&&e.set_data(h,v),j[0]&16&&S!==(S=x[4]?"TriangleActive":"TriangleInactive")&&e.attr(B,"class",S),x[5]?_?_.p(x,j):(_=Ke(x),_.c(),_.m(k.parentNode,k)):_&&(_.d(1),_=null)},d(x){x&&(e.detach(t),e.detach(E),e.detach(k)),_&&_.d(x),D=!1,L()}}}function dt(r){let t,n=r[7]("Loading")+"",v;return{c(){t=e.element("p"),v=e.text(n),e.attr(t,"class","Loading")},m(h,p){e.insert(h,t,p),e.append(t,v)},p(h,p){p[0]&128&&n!==(n=h[7]("Loading")+"")&&e.set_data(v,n)},d(h){h&&e.detach(t)}}}function Ke(r){let t,n,v,h,p,B,m,T,S=r[7]("Title")+"",E,k,D,L,_,x,j=r[7]("DepositButton")+"",oe,re,F,P,G,Z,se,K=e.ensure_array_like(Object.keys(r[2])),I=[];for(let A=0;A<K.length;A+=1)I[A]=Ye(Xe(r,K,A));let O=r[0]==="true"&&Qe(r);return{c(){t=e.element("div"),n=e.element("button"),h=e.space(),p=e.element("div"),B=e.element("div"),m=e.element("div"),T=e.element("p"),E=e.text(S),k=e.space(),D=e.element("div");for(let A=0;A<I.length;A+=1)I[A].c();L=e.space(),_=e.element("div"),x=e.element("button"),oe=e.text(j),re=e.space(),O&&O.c(),e.attr(n,"class",v="BalanceModalClose "+(r[4]?"Open":"")),e.attr(T,"class","BalanceModalTitle"),e.attr(m,"class","BalanceModalHeader"),e.attr(D,"class","BalanceModalBody"),e.attr(x,"class","BalanceModalAction DepositButton"),e.attr(_,"class","BalanceModalFooter"),e.attr(B,"class",F="ModalContent "+(r[4]?"Open":"")),e.attr(p,"class",P="BalanceModal "+(r[4]?"Open":"")),e.attr(t,"class",G="BalanceModalWrapper "+(r[4]?"Open":""))},m(A,M){e.insert(A,t,M),e.append(t,n),e.append(t,h),e.append(t,p),e.append(p,B),e.append(B,m),e.append(m,T),e.append(T,E),e.append(B,k),e.append(B,D);for(let R=0;R<I.length;R+=1)I[R]&&I[R].m(D,null);e.append(B,L),e.append(B,_),e.append(_,x),e.append(x,oe),e.append(_,re),O&&O.m(_,null),Z||(se=[e.listen(n,"click",r[28]),e.listen(x,"click",r[29])],Z=!0)},p(A,M){if(M[0]&16&&v!==(v="BalanceModalClose "+(A[4]?"Open":""))&&e.attr(n,"class",v),M[0]&128&&S!==(S=A[7]("Title")+"")&&e.set_data(E,S),M[0]&644){K=e.ensure_array_like(Object.keys(A[2]));let R;for(R=0;R<K.length;R+=1){const W=Xe(A,K,R);I[R]?I[R].p(W,M):(I[R]=Ye(W),I[R].c(),I[R].m(D,null))}for(;R<I.length;R+=1)I[R].d(1);I.length=K.length}M[0]&128&&j!==(j=A[7]("DepositButton")+"")&&e.set_data(oe,j),A[0]==="true"?O?O.p(A,M):(O=Qe(A),O.c(),O.m(_,null)):O&&(O.d(1),O=null),M[0]&16&&F!==(F="ModalContent "+(A[4]?"Open":""))&&e.attr(B,"class",F),M[0]&16&&P!==(P="BalanceModal "+(A[4]?"Open":""))&&e.attr(p,"class",P),M[0]&16&&G!==(G="BalanceModalWrapper "+(A[4]?"Open":""))&&e.attr(t,"class",G)},d(A){A&&e.detach(t),e.destroy_each(I,A),O&&O.d(),Z=!1,e.run_all(se)}}}function We(r){let t,n,v=r[7](r[56])+"",h,p,B=(r[59].productType?r[7](r[59].productType):"")+"",m,T,S,E,k=r[9](r[59].amount)+"",D;return{c(){t=e.element("div"),n=e.element("p"),h=e.text(v),p=e.space(),m=e.text(B),T=e.space(),S=e.element("p"),E=e.element("span"),D=e.text(k),e.attr(n,"class","BalanceModalText"),e.attr(E,"class","BalanceModalAmount"),e.attr(S,"class","BalanceModalValue"),e.attr(t,"class","BalanceModalRowLine")},m(L,_){e.insert(L,t,_),e.append(t,n),e.append(n,h),e.append(n,p),e.append(n,m),e.append(t,T),e.append(t,S),e.append(S,E),e.append(E,D)},p(L,_){_[0]&132&&v!==(v=L[7](L[56])+"")&&e.set_data(h,v),_[0]&132&&B!==(B=(L[59].productType?L[7](L[59].productType):"")+"")&&e.set_data(m,B),_[0]&4&&k!==(k=L[9](L[59].amount)+"")&&e.set_data(D,k)},d(L){L&&e.detach(t)}}}function Ye(r){let t,n,v=e.ensure_array_like(r[2][r[56]]),h=[];for(let p=0;p<v.length;p+=1)h[p]=We(qe(r,v,p));return{c(){t=e.element("div");for(let p=0;p<h.length;p+=1)h[p].c();n=e.space(),e.attr(t,"class","BalanceModalRowBoth")},m(p,B){e.insert(p,t,B);for(let m=0;m<h.length;m+=1)h[m]&&h[m].m(t,null);e.append(t,n)},p(p,B){if(B[0]&644){v=e.ensure_array_like(p[2][p[56]]);let m;for(m=0;m<v.length;m+=1){const T=qe(p,v,m);h[m]?h[m].p(T,B):(h[m]=We(T),h[m].c(),h[m].m(t,n))}for(;m<h.length;m+=1)h[m].d(1);h.length=v.length}},d(p){p&&e.detach(t),e.destroy_each(h,p)}}}function Qe(r){let t,n=r[7]("LimitsButton")+"",v,h,p;return{c(){t=e.element("button"),v=e.text(n),e.attr(t,"class","BalanceModalAction LimitsButton")},m(B,m){e.insert(B,t,m),e.append(t,v),h||(p=e.listen(t,"click",r[30]),h=!0)},p(B,m){m[0]&128&&n!==(n=B[7]("LimitsButton")+"")&&e.set_data(v,n)},d(B){B&&e.detach(t),h=!1,p()}}}function Ze(r){let t,n,v;return{c(){t=e.element("button"),e.attr(t,"class","ShowBalanceModalOverlay")},m(h,p){e.insert(h,t,p),n||(v=e.listen(t,"click",r[31]),n=!0)},p:e.noop,d(h){h&&e.detach(t),n=!1,v()}}}function ut(r){let t,n,v,h;function p(S,E){return S[3]?dt:ct}let B=p(r),m=B(r),T=r[5]&&Ze(r);return{c(){t=e.element("div"),n=e.element("div"),m.c(),h=e.space(),T&&T.c(),e.attr(n,"class",v="ShowBalance "+(r[6]?"Mobile":""))},m(S,E){e.insert(S,t,E),e.append(t,n),m.m(n,null),e.append(t,h),T&&T.m(t,null),r[32](t)},p(S,E){B===(B=p(S))&&m?m.p(S,E):(m.d(1),m=B(S),m&&(m.c(),m.m(n,null))),E[0]&64&&v!==(v="ShowBalance "+(S[6]?"Mobile":""))&&e.attr(n,"class",v),S[5]?T?T.p(S,E):(T=Ze(S),T.c(),T.m(t,null)):T&&(T.d(1),T=null)},i:e.noop,o:e.noop,d(S){S&&e.detach(t),m.d(),T&&T.d(),r[32](null)}}}function ft(r,t,n){let v;e.component_subscribe(r,e.$format,o=>n(7,v=o));let{userid:h=""}=t,{session:p=""}=t,{endpoint:B=""}=t,{lang:m="en"}=t,{mbsource:T}=t,{clientstyling:S=""}=t,{clientstylingurl:E=""}=t,{translationurl:k=""}=t,{gmversion:D="gm16"}=t,{displaybalanceoption:L="All"}=t,{totalcalculationmode:_="totalCashAmount"}=t,{balancelimitsbutton:x="false"}=t,{currencylocale:j="en"}=t,{currencydisplay:oe="symbol"}=t,{maximumfractiondigits:re="2"}=t,{minimumfractiondigits:F="0"}=t,{customdisplayformat:P=""}=t,G,Z=!0,se=!1,K=!1,I=!1,O=!1,A=window.navigator.userAgent,M,R="",W=[],fe;const g={},J=["totalCashAmount","totalRealAmount"],pe=()=>{fetch(k).then(o=>o.json()).then(o=>Object.keys(o).forEach(d=>Pe(d,o[d]))).catch(o=>console.log(o))};Object.keys(Ge).forEach(o=>Pe(o,Ge[o]));const ae=o=>{switch(o){case"balance":window.postMessage({type:"BalanceModalStatus",status:"open"},window.location.href),n(5,I=!0),setTimeout(()=>n(4,se=!0),150);break;case"closebalance":n(4,se=!1),window.postMessage({type:"BalanceModalStatus",status:"close"},window.location.href),setTimeout(()=>{n(5,I=!1)},150);break}},ve=o=>{if(P)return ie(o);const d=j||m,i={style:"currency",currency:R,useGrouping:!0,currencyDisplay:oe||"code",maximumFractionDigits:re===""||isNaN(Number(re))?2:Number(re),minimumFractionDigits:F===""||isNaN(Number(F))?0:Number(F)};return new Intl.NumberFormat(d,i).format(o)},ie=o=>{const d=[];let i="";for(const u of P)switch(u){default:i+=u;break;case"{":i&&d.push(i),i="";break;case"}":const[w,f]=i.split("|");if(i="",w.toLowerCase()==="currency")i=R;else if(w.toLowerCase()==="amount"){let c=",",N=".",ee=2;f&&(f[0]!==" "&&(c=f[0]),f[1]!==" "&&(N=f[1]),f[2]!==" "&&!isNaN(Number(f[2]))&&(ee=Number(f[2])));let[H,V]=String(Math.floor(o*Ne(10,ee))/Ne(10,ee)).split(".");i+=H[0];for(let X=1;X<H.length;++X)(H.length-X)%3===0?i+=c+H[X]:i+=H[X];V&&(i+=N+V)}i&&d.push(i),i="";break}return d.push(i),d.join("")},be=()=>Ue(this,null,function*(){var d,i,u;n(3,Z=!0);const o=new URL(`${B}/v1/player/${h}/account`);try{const w=yield fetch(o,{method:"GET",headers:{"X-SessionID":p}}),f=yield w.json();if(w.ok)window.postMessage({type:"BalancedFetched"},window.location.href),W=f.items,R=(d=W.find(c=>c.displayName==="Casino"))==null?void 0:d.currency,n(2,g.Total=[{amount:f.totalAmount[R]}],g),n(2,g.Real=[{amount:(i=W.find(c=>c.displayName==="Casino"))==null?void 0:i.balanceAmount}],g),n(2,g.Bonus=[{amount:(u=W.find(c=>c.displayName==="UBS"))==null?void 0:u.balanceAmount}],g);else throw new Error("Failed to fetch balance data !")}catch(w){console.log("Balance error: ",w)}finally{n(3,Z=!1)}}),Ce=()=>{n(3,Z=!0);const o=new URL(`${B}/v2/player/${h}/balance`),d=new Headers;d.append("X-SessionID",p),fetch(o,{method:"GET",headers:d}).then(u=>u.json()).then(u=>{u[_]||n(11,_=J[0]);const w=u.items.find(c=>c.type==="Real"&&c.walletAccountType==="Ordinary");if(R=w.currency,K=!!w.productType,n(2,g.Total=[{amount:0}],g),n(2,g.Real=[],g),n(2,g.Bonus=[],g),n(2,g.Credit=[],g),!K){fe={lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},n(2,g.Total[0].amount=u[_][R],g);for(const c of u.items)switch(c.type){case"Bonus":g.Bonus.length===0?g.Bonus.push({amount:c.amount}):n(2,g.Bonus[0].amount+=c.amount,g);break;case"Real":if(c.creditLine&&g.Credit.length===0&&g.Credit.push({amount:c.creditLine}),_==="totalRealAmount")continue;g.Real.length===0?g.Real.push({amount:c.amount}):n(2,g.Real[0].amount+=c.amount,g);break}for(const[c,N]of Object.entries(g))N.length<1&&delete g[c];n(3,Z=!1);return}fe={Casino:{lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},Sports:{lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1}};let f=u.items;L&&L!=="All"&&(f=u.items.filter(c=>c.productType===L));for(const c of f){let N;switch(c.type){case"Bonus":N=g.Bonus.findIndex(ee=>ee.productType===c.productType),N>0?n(2,g.Bonus[N].amount+=c.amount,g):g.Bonus.push({amount:c.amount,productType:c.productType});break;case"Real":c.creditLine&&g.Credit.push({amount:c.creditLine,productType:c.productType}),N=g.Real.findIndex(ee=>ee.productType===c.productType),N>0?n(2,g.Real[N].amount+=c.amount,g):g.Real.push({amount:c.amount,productType:c.productType});break}}me();for(const[c,N]of Object.entries(g))N.length<1&&delete g[c];n(3,Z=!1)}).catch(u=>{throw n(3,Z=!1),console.log("Balance fetch error",u),new Error("Failed to fetch balance data!")})},we=()=>{if(M&&M.close(),p.length<1)return;let o,d;switch(D){case"gm16":o=new URL(`${B}/v2/player/${h}/information/updates`),d=w=>Te(w);break;case"gmcore":o=new URL(`${B}/v1/player/${h}/balance/updates`),d=w=>Ee(w);break}const i={accept:"text/event-stream","X-SessionId":p},u=new lt.EventSourcePolyfill(o,{headers:i});M=u,u.addEventListener("message",d)},_e=o=>{let d;try{d=JSON.parse(o)}catch(i){console.log("Balance stream failed: ",i);return}return d},Ee=o=>{var w,f;const d=_e(o.data);if(!d){we();return}let i="0";const u=d.balanceChange;W=W.map(c=>(u&&u[c.id]&&(c=Ve(ze({},c),{balanceAmount:u[c.id].afterAmount})),i=(parseFloat(c==null?void 0:c.balanceAmount)+parseFloat(i)).toString(),c)),n(2,g.Real=[{amount:(w=W[0])==null?void 0:w.balanceAmount}],g),n(2,g.Bonus=[{amount:(f=W[1])==null?void 0:f.balanceAmount}],g),n(2,g.Total=[{amount:Number(i)}],g)},Be=(o,d,i)=>{let u=null;switch(i.walletAccountType){case"Ordinary":(i.afterAmount!==i.affectedAmount||d.lastOrdinaryAfterAmount===0)&&(d.lastOrdinaryAfterAmount=i.afterAmount,d.showCreditLineAfterAmount||(u=i.afterAmount));break;case"CreditLine":i.afterAmount!==0?(u=i.afterAmount,d.showCreditLineAfterAmount=!0):(u=d.lastOrdinaryAfterAmount,d.showCreditLineAfterAmount=!1);break;default:u=i.afterAmount}return u===null?o:u},me=()=>{switch(_){case"totalCashAmount":let o=0;for(const i of["Real","Bonus"])for(const u of g[i])o+=Math.max(u.amount,0);n(2,g.Total[0].amount=o,g);break;case"totalRealAmount":if(!K)return;let d=0;for(const i of g.Real)d+=i.amount;n(2,g.Total[0].amount=d,g)}},Te=o=>{const d=_e(o.data);if(!d){we();return}if($(d==null?void 0:d.type)||d.type!=="BALANCE_UPDATE_V2")return;const i=d.body.balanceChange;for(const[u,w]of Object.entries(i))if(_==="totalRealAmount"&&u==="Real"&&!K&&n(2,g.Total[0].amount=Be(g.Total[0].amount,fe,w),g),!!g[u])for(const f of g[u]){if(!K){f.amount=u==="Real"?Be(f.amount,fe,w):w.afterAmount;continue}w.productType===f.productType&&(f.amount=u==="Real"?Be(f.amount,fe[f.productType],w):w.afterAmount)}me()},le=o=>{switch(ae("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"})},$=o=>o==="SESSION_EXPIRATION"?(window.postMessage({type:"SessionExpiration"},window.location.href),!0):!1,Me=()=>{J.includes(_)||(console.error(`Unsupported value ('${_}') for totalcalculationmode parameter. Only the following values are supported ${J}. Using default value ('${J[0]}').`),n(11,_=J[0]))},De=()=>{switch(it(m),Me(),D){case"gmcore":be();break;case"gm16":Ce();break;default:throw Error(`Invalid apiversion attribute: ${D}`)}},Ae=o=>{const{data:{type:d}={}}=o||{};switch(d){case"LogoutSuccessfull":M.close();break;case"CloseBalance":ae("closebalance");break}},Le=()=>{window.postMessage({type:"UpdateBalanceBackground"},window.location.href)};e.onMount(()=>(window.addEventListener("message",Ae,!1),n(6,O=e.isMobile(A)),()=>{window.removeEventListener("message",Ae),M&&M.close()}));const a=()=>ae("balance"),s=()=>ae("closebalance"),y=()=>le("deposit"),l=()=>le("limits"),C=()=>ae("closebalance");function b(o){e.binding_callbacks[o?"unshift":"push"](()=>{G=o,n(1,G)})}return r.$$set=o=>{"userid"in o&&n(12,h=o.userid),"session"in o&&n(13,p=o.session),"endpoint"in o&&n(14,B=o.endpoint),"lang"in o&&n(15,m=o.lang),"mbsource"in o&&n(16,T=o.mbsource),"clientstyling"in o&&n(17,S=o.clientstyling),"clientstylingurl"in o&&n(18,E=o.clientstylingurl),"translationurl"in o&&n(19,k=o.translationurl),"gmversion"in o&&n(20,D=o.gmversion),"displaybalanceoption"in o&&n(21,L=o.displaybalanceoption),"totalcalculationmode"in o&&n(11,_=o.totalcalculationmode),"balancelimitsbutton"in o&&n(0,x=o.balancelimitsbutton),"currencylocale"in o&&n(22,j=o.currencylocale),"currencydisplay"in o&&n(23,oe=o.currencydisplay),"maximumfractiondigits"in o&&n(24,re=o.maximumfractiondigits),"minimumfractiondigits"in o&&n(25,F=o.minimumfractiondigits),"customdisplayformat"in o&&n(26,P=o.customdisplayformat)},r.$$.update=()=>{r.$$.dirty[0]&3207168&&B&&h&&p&&m&&D&&L&&De(),r.$$.dirty[0]&1077248&&B&&h&&p&&D&&we(),r.$$.dirty[0]&524288&&k&&pe(),r.$$.dirty[0]&4&&g.Total&&Le(),r.$$.dirty[0]&131074&&S&&G&&e.setClientStyling(G,S),r.$$.dirty[0]&262146&&E&&G&&e.setClientStylingURL(G,E),r.$$.dirty[0]&65538&&T&&G&&e.setStreamStyling(G,`${T}.Style`)},[x,G,g,Z,se,I,O,v,ae,ve,le,_,h,p,B,m,T,S,E,k,D,L,j,oe,re,F,P,a,s,y,l,C,b]}class Je extends e.SvelteComponent{constructor(t){super(),e.init(this,t,ft,ut,e.safe_not_equal,{userid:12,session:13,endpoint:14,lang:15,mbsource:16,clientstyling:17,clientstylingurl:18,translationurl:19,gmversion:20,displaybalanceoption:21,totalcalculationmode:11,balancelimitsbutton:0,currencylocale:22,currencydisplay:23,maximumfractiondigits:24,minimumfractiondigits:25,customdisplayformat:26},st,[-1,-1])}get userid(){return this.$$.ctx[12]}set userid(t){this.$$set({userid:t}),e.flush()}get session(){return this.$$.ctx[13]}set session(t){this.$$set({session:t}),e.flush()}get endpoint(){return this.$$.ctx[14]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get lang(){return this.$$.ctx[15]}set lang(t){this.$$set({lang:t}),e.flush()}get mbsource(){return this.$$.ctx[16]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get clientstyling(){return this.$$.ctx[17]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[18]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[19]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get gmversion(){return this.$$.ctx[20]}set gmversion(t){this.$$set({gmversion:t}),e.flush()}get displaybalanceoption(){return this.$$.ctx[21]}set displaybalanceoption(t){this.$$set({displaybalanceoption:t}),e.flush()}get totalcalculationmode(){return this.$$.ctx[11]}set totalcalculationmode(t){this.$$set({totalcalculationmode:t}),e.flush()}get balancelimitsbutton(){return this.$$.ctx[0]}set balancelimitsbutton(t){this.$$set({balancelimitsbutton:t}),e.flush()}get currencylocale(){return this.$$.ctx[22]}set currencylocale(t){this.$$set({currencylocale:t}),e.flush()}get currencydisplay(){return this.$$.ctx[23]}set currencydisplay(t){this.$$set({currencydisplay:t}),e.flush()}get maximumfractiondigits(){return this.$$.ctx[24]}set maximumfractiondigits(t){this.$$set({maximumfractiondigits:t}),e.flush()}get minimumfractiondigits(){return this.$$.ctx[25]}set minimumfractiondigits(t){this.$$set({minimumfractiondigits:t}),e.flush()}get customdisplayformat(){return this.$$.ctx[26]}set customdisplayformat(t){this.$$set({customdisplayformat:t}),e.flush()}}e.create_custom_element(Je,{userid:{},session:{},endpoint:{},lang:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},gmversion:{},displaybalanceoption:{},totalcalculationmode:{},balancelimitsbutton:{},currencylocale:{},currencydisplay:{},maximumfractiondigits:{},minimumfractiondigits:{},customdisplayformat:{}},[],[],!0);exports.default=Je;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { b as
|
|
1
|
+
import { b as J, $ as V, S as X, i as Z, s as K, f as y, d as $, A, g as S, B as L, U as j, o as x, p as h, w as M, x as E, C, m as d, y as ee, O as te, M as ie, z as se, q as ae, J as k, H as re, I as F, P as ne, Q as oe, R as le, c as ce } from "./CasinoHamburgerMenuNd-CNHcuKgb.js";
|
|
2
2
|
function H(s, e) {
|
|
3
|
-
|
|
3
|
+
J(s, e);
|
|
4
4
|
}
|
|
5
5
|
function de(s) {
|
|
6
|
-
|
|
6
|
+
V.set(s);
|
|
7
7
|
}
|
|
8
8
|
const W = {
|
|
9
9
|
en: {
|
|
@@ -57,7 +57,7 @@ function he(s) {
|
|
|
57
57
|
), u, 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 =
|
|
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"), u = C(r), d(p, "class", "aaa"), d(p, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), d(p, "transform", "translate(15 15) rotate(180)"), d(c, "transform", "translate(20 158)"), d(m, "transform", "translate(-20 -158)"), d(i, "xmlns", "http://www.w3.org/2000/svg"), d(i, "width", "15"), d(i, "height", "15"), d(i, "viewBox", "0 0 15 15"), d(o, "class", "DepositTitleMobile"), d(e, "class", "MenuReturnButton");
|
|
61
61
|
},
|
|
62
62
|
m(f, g) {
|
|
63
63
|
x(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, u), b || (_ = ae(
|
|
@@ -70,7 +70,7 @@ function he(s) {
|
|
|
70
70
|
p(f, g) {
|
|
71
71
|
g & /*$_*/
|
|
72
72
|
16 && r !== (r = /*$_*/
|
|
73
|
-
f[4]("titleDeposit") + "") &&
|
|
73
|
+
f[4]("titleDeposit") + "") && L(u, r);
|
|
74
74
|
},
|
|
75
75
|
d(f) {
|
|
76
76
|
f && S(e), b = !1, _();
|
|
@@ -81,7 +81,7 @@ function pe(s) {
|
|
|
81
81
|
let e, i, n;
|
|
82
82
|
return {
|
|
83
83
|
c() {
|
|
84
|
-
e = M("div"), i = M("iframe"),
|
|
84
|
+
e = M("div"), i = M("iframe"), F(i.src, n = /*iframeUrl*/
|
|
85
85
|
s[3]) || d(i, "src", n), d(i, "title", "Deposit Iframe"), d(e, "class", "DepositIframeWrapper");
|
|
86
86
|
},
|
|
87
87
|
m(a, l) {
|
|
@@ -89,7 +89,7 @@ function pe(s) {
|
|
|
89
89
|
},
|
|
90
90
|
p(a, l) {
|
|
91
91
|
l & /*iframeUrl*/
|
|
92
|
-
8 && !
|
|
92
|
+
8 && !F(i.src, n = /*iframeUrl*/
|
|
93
93
|
a[3]) && d(i, "src", n);
|
|
94
94
|
},
|
|
95
95
|
d(a) {
|
|
@@ -112,7 +112,7 @@ function ge(s) {
|
|
|
112
112
|
p(a, l) {
|
|
113
113
|
l & /*$_*/
|
|
114
114
|
16 && i !== (i = /*$_*/
|
|
115
|
-
a[4]("loading") + "") &&
|
|
115
|
+
a[4]("loading") + "") && L(n, i);
|
|
116
116
|
},
|
|
117
117
|
d(a) {
|
|
118
118
|
a && S(e);
|
|
@@ -136,7 +136,7 @@ function me(s) {
|
|
|
136
136
|
let w = p(s), o = w(s);
|
|
137
137
|
return {
|
|
138
138
|
c() {
|
|
139
|
-
e = M("div"), c && c.c(), i =
|
|
139
|
+
e = M("div"), c && c.c(), i = E(), n = M("h2"), l = C(a), m = E(), o.c(), d(n, "class", "DepositTitle " + /*isMobile*/
|
|
140
140
|
(s[5] ? "DepositTitleNone" : "")), d(e, "class", "DepositWrapper " + /*isMobile*/
|
|
141
141
|
(s[5] ? "DepositWrapperMobile" : "")), j(
|
|
142
142
|
e,
|
|
@@ -152,7 +152,7 @@ function me(s) {
|
|
|
152
152
|
/*isMobile*/
|
|
153
153
|
r[5] && c.p(r, u), u & /*$_*/
|
|
154
154
|
16 && a !== (a = /*$_*/
|
|
155
|
-
r[4]("titleDeposit") + "") &&
|
|
155
|
+
r[4]("titleDeposit") + "") && L(l, a), w === (w = p(r)) && o ? o.p(r, u) : (o.d(1), o = w(r), o && (o.c(), o.m(e, null))), u & /*dynamicHeight*/
|
|
156
156
|
4 && j(
|
|
157
157
|
e,
|
|
158
158
|
"--dynamic-height",
|
|
@@ -160,8 +160,8 @@ function me(s) {
|
|
|
160
160
|
r[2]
|
|
161
161
|
);
|
|
162
162
|
},
|
|
163
|
-
i:
|
|
164
|
-
o:
|
|
163
|
+
i: A,
|
|
164
|
+
o: A,
|
|
165
165
|
d(r) {
|
|
166
166
|
r && S(e), c && c.d(), o.d(), s[19](null);
|
|
167
167
|
}
|
|
@@ -183,9 +183,9 @@ function fe(s, e, i) {
|
|
|
183
183
|
Object.keys(W).forEach((t) => {
|
|
184
184
|
H(t, W[t]);
|
|
185
185
|
});
|
|
186
|
-
const
|
|
186
|
+
const U = () => {
|
|
187
187
|
window.postMessage({ type: "GoToPreviousRoute", isMobile: R }, window.location.href);
|
|
188
|
-
},
|
|
188
|
+
}, z = (t) => {
|
|
189
189
|
if (t.data) {
|
|
190
190
|
switch (t.data.type) {
|
|
191
191
|
case "ProfileDetailsData":
|
|
@@ -251,10 +251,10 @@ function fe(s, e, i) {
|
|
|
251
251
|
}, q = () => {
|
|
252
252
|
de(p);
|
|
253
253
|
};
|
|
254
|
-
se(() => (window.addEventListener("message",
|
|
255
|
-
window.removeEventListener("message",
|
|
254
|
+
se(() => (window.addEventListener("message", z, !1), () => {
|
|
255
|
+
window.removeEventListener("message", z);
|
|
256
256
|
}));
|
|
257
|
-
const Q = () =>
|
|
257
|
+
const Q = () => U();
|
|
258
258
|
function Y(t) {
|
|
259
259
|
re[t ? "unshift" : "push"](() => {
|
|
260
260
|
g = t, i(0, g);
|
|
@@ -278,7 +278,7 @@ function fe(s, e, i) {
|
|
|
278
278
|
P,
|
|
279
279
|
a,
|
|
280
280
|
R,
|
|
281
|
-
|
|
281
|
+
U,
|
|
282
282
|
b,
|
|
283
283
|
l,
|
|
284
284
|
m,
|
|
@@ -294,9 +294,9 @@ function fe(s, e, i) {
|
|
|
294
294
|
Y
|
|
295
295
|
];
|
|
296
296
|
}
|
|
297
|
-
class we extends
|
|
297
|
+
class we extends X {
|
|
298
298
|
constructor(e) {
|
|
299
|
-
super(),
|
|
299
|
+
super(), Z(
|
|
300
300
|
this,
|
|
301
301
|
e,
|
|
302
302
|
fe,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { b as
|
|
1
|
+
import { b as J, $ as V, S as X, i as Z, s as K, f as y, d as $, A, g as S, B as L, U as j, o as x, p as h, w as M, x as E, C, m as d, y as ee, M as te, z as ie, q as se, J as k, H as ae, I as F, P as re, Q as ne, R as oe, c as le, O as ce } from "./CasinoHamburgerMenuNd-D_F3LqqU.js";
|
|
2
2
|
function H(s, e) {
|
|
3
|
-
|
|
3
|
+
J(s, e);
|
|
4
4
|
}
|
|
5
5
|
function de(s) {
|
|
6
|
-
|
|
6
|
+
V.set(s);
|
|
7
7
|
}
|
|
8
8
|
const W = {
|
|
9
9
|
en: {
|
|
@@ -57,7 +57,7 @@ function he(s) {
|
|
|
57
57
|
), u, 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 =
|
|
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"), u = C(r), d(p, "class", "aaa"), d(p, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), d(p, "transform", "translate(15 15) rotate(180)"), d(c, "transform", "translate(20 158)"), d(m, "transform", "translate(-20 -158)"), d(i, "xmlns", "http://www.w3.org/2000/svg"), d(i, "width", "15"), d(i, "height", "15"), d(i, "viewBox", "0 0 15 15"), d(o, "class", "DepositTitleMobile"), d(e, "class", "MenuReturnButton");
|
|
61
61
|
},
|
|
62
62
|
m(f, g) {
|
|
63
63
|
x(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, u), b || (_ = se(
|
|
@@ -70,7 +70,7 @@ function he(s) {
|
|
|
70
70
|
p(f, g) {
|
|
71
71
|
g & /*$_*/
|
|
72
72
|
16 && r !== (r = /*$_*/
|
|
73
|
-
f[4]("titleDeposit") + "") &&
|
|
73
|
+
f[4]("titleDeposit") + "") && L(u, r);
|
|
74
74
|
},
|
|
75
75
|
d(f) {
|
|
76
76
|
f && S(e), b = !1, _();
|
|
@@ -81,7 +81,7 @@ function pe(s) {
|
|
|
81
81
|
let e, i, n;
|
|
82
82
|
return {
|
|
83
83
|
c() {
|
|
84
|
-
e = M("div"), i = M("iframe"),
|
|
84
|
+
e = M("div"), i = M("iframe"), F(i.src, n = /*iframeUrl*/
|
|
85
85
|
s[3]) || d(i, "src", n), d(i, "title", "Deposit Iframe"), d(e, "class", "DepositIframeWrapper");
|
|
86
86
|
},
|
|
87
87
|
m(a, l) {
|
|
@@ -89,7 +89,7 @@ function pe(s) {
|
|
|
89
89
|
},
|
|
90
90
|
p(a, l) {
|
|
91
91
|
l & /*iframeUrl*/
|
|
92
|
-
8 && !
|
|
92
|
+
8 && !F(i.src, n = /*iframeUrl*/
|
|
93
93
|
a[3]) && d(i, "src", n);
|
|
94
94
|
},
|
|
95
95
|
d(a) {
|
|
@@ -112,7 +112,7 @@ function ge(s) {
|
|
|
112
112
|
p(a, l) {
|
|
113
113
|
l & /*$_*/
|
|
114
114
|
16 && i !== (i = /*$_*/
|
|
115
|
-
a[4]("loading") + "") &&
|
|
115
|
+
a[4]("loading") + "") && L(n, i);
|
|
116
116
|
},
|
|
117
117
|
d(a) {
|
|
118
118
|
a && S(e);
|
|
@@ -136,7 +136,7 @@ function me(s) {
|
|
|
136
136
|
let w = p(s), o = w(s);
|
|
137
137
|
return {
|
|
138
138
|
c() {
|
|
139
|
-
e = M("div"), c && c.c(), i =
|
|
139
|
+
e = M("div"), c && c.c(), i = E(), n = M("h2"), l = C(a), m = E(), o.c(), d(n, "class", "DepositTitle " + /*isMobile*/
|
|
140
140
|
(s[5] ? "DepositTitleNone" : "")), d(e, "class", "DepositWrapper " + /*isMobile*/
|
|
141
141
|
(s[5] ? "DepositWrapperMobile" : "")), j(
|
|
142
142
|
e,
|
|
@@ -152,7 +152,7 @@ function me(s) {
|
|
|
152
152
|
/*isMobile*/
|
|
153
153
|
r[5] && c.p(r, u), u & /*$_*/
|
|
154
154
|
16 && a !== (a = /*$_*/
|
|
155
|
-
r[4]("titleDeposit") + "") &&
|
|
155
|
+
r[4]("titleDeposit") + "") && L(l, a), w === (w = p(r)) && o ? o.p(r, u) : (o.d(1), o = w(r), o && (o.c(), o.m(e, null))), u & /*dynamicHeight*/
|
|
156
156
|
4 && j(
|
|
157
157
|
e,
|
|
158
158
|
"--dynamic-height",
|
|
@@ -160,8 +160,8 @@ function me(s) {
|
|
|
160
160
|
r[2]
|
|
161
161
|
);
|
|
162
162
|
},
|
|
163
|
-
i:
|
|
164
|
-
o:
|
|
163
|
+
i: A,
|
|
164
|
+
o: A,
|
|
165
165
|
d(r) {
|
|
166
166
|
r && S(e), c && c.d(), o.d(), s[19](null);
|
|
167
167
|
}
|
|
@@ -183,9 +183,9 @@ function fe(s, e, i) {
|
|
|
183
183
|
Object.keys(W).forEach((t) => {
|
|
184
184
|
H(t, W[t]);
|
|
185
185
|
});
|
|
186
|
-
const
|
|
186
|
+
const U = () => {
|
|
187
187
|
window.postMessage({ type: "GoToPreviousRoute", isMobile: R }, window.location.href);
|
|
188
|
-
},
|
|
188
|
+
}, z = (t) => {
|
|
189
189
|
if (t.data) {
|
|
190
190
|
switch (t.data.type) {
|
|
191
191
|
case "ProfileDetailsData":
|
|
@@ -251,10 +251,10 @@ function fe(s, e, i) {
|
|
|
251
251
|
}, q = () => {
|
|
252
252
|
de(p);
|
|
253
253
|
};
|
|
254
|
-
ie(() => (window.addEventListener("message",
|
|
255
|
-
window.removeEventListener("message",
|
|
254
|
+
ie(() => (window.addEventListener("message", z, !1), () => {
|
|
255
|
+
window.removeEventListener("message", z);
|
|
256
256
|
}));
|
|
257
|
-
const Q = () =>
|
|
257
|
+
const Q = () => U();
|
|
258
258
|
function Y(t) {
|
|
259
259
|
ae[t ? "unshift" : "push"](() => {
|
|
260
260
|
g = t, i(0, g);
|
|
@@ -278,7 +278,7 @@ function fe(s, e, i) {
|
|
|
278
278
|
P,
|
|
279
279
|
a,
|
|
280
280
|
R,
|
|
281
|
-
|
|
281
|
+
U,
|
|
282
282
|
b,
|
|
283
283
|
l,
|
|
284
284
|
m,
|
|
@@ -294,9 +294,9 @@ function fe(s, e, i) {
|
|
|
294
294
|
Y
|
|
295
295
|
];
|
|
296
296
|
}
|
|
297
|
-
class we extends
|
|
297
|
+
class we extends X {
|
|
298
298
|
constructor(e) {
|
|
299
|
-
super(),
|
|
299
|
+
super(), Z(
|
|
300
300
|
this,
|
|
301
301
|
e,
|
|
302
302
|
fe,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHamburgerMenuNd-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHamburgerMenuNd-CO_etjfF.cjs");function T(n,t){e.addMessages(n,t)}function z(n){e.$locale.set(n)}const E={en:{titleDeposit:"Deposit",loading:"Loading, please wait ..."},"zh-hk":{titleDeposit:"訂金",loading:"加載請稍候…"},fr:{titleDeposit:"Dépôt",loading:"Chargement, veuillez patienter ..."},tr:{titleDeposit:"PARA YATIR",loading:"Yükleniyor ..."},ro:{titleDeposit:"Depunere",loading:"Se încarcă..."},es:{titleDeposit:"Deposita",loading:"Cargando ..."},pt:{titleDeposit:"Depósito",loading:"Carregando, por favor espere ..."},hr:{titleDeposit:"Uplata",loading:"Učitavanje"},"pt-br":{titleDeposit:"Depositar",Loading:"Carregando, por favor espere..."},"es-mx":{titleDeposit:"Depositar",Loading:"Cargando, por favor espere..."}};function A(n){e.append_styles(n,"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 F(n){let t,a,o,r,c,m,d,p,f,l,s=n[4]("titleDeposit")+"",u,y,D;return{c(){t=e.element("div"),a=e.svg_element("svg"),o=e.svg_element("defs"),r=e.svg_element("style"),c=e.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),m=e.svg_element("g"),d=e.svg_element("g"),p=e.svg_element("path"),f=e.space(),l=e.element("h2"),u=e.text(s),e.attr(p,"class","aaa"),e.attr(p,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),e.attr(p,"transform","translate(15 15) rotate(180)"),e.attr(d,"transform","translate(20 158)"),e.attr(m,"transform","translate(-20 -158)"),e.attr(a,"xmlns","http://www.w3.org/2000/svg"),e.attr(a,"width","15"),e.attr(a,"height","15"),e.attr(a,"viewBox","0 0 15 15"),e.attr(l,"class","DepositTitleMobile"),e.attr(t,"class","MenuReturnButton")},m(g,h){e.insert(g,t,h),e.append(t,a),e.append(a,o),e.append(o,r),e.append(r,c),e.append(a,m),e.append(m,d),e.append(d,p),e.append(t,f),e.append(t,l),e.append(l,u),y||(D=e.listen(t,"click",n[18]),y=!0)},p(g,h){h&16&&s!==(s=g[4]("titleDeposit")+"")&&e.set_data(u,s)},d(g){g&&e.detach(t),y=!1,D()}}}function H(n){let t,a,o;return{c(){t=e.element("div"),a=e.element("iframe"),e.src_url_equal(a.src,o=n[3])||e.attr(a,"src",o),e.attr(a,"title","Deposit Iframe"),e.attr(t,"class","DepositIframeWrapper")},m(r,c){e.insert(r,t,c),e.append(t,a)},p(r,c){c&8&&!e.src_url_equal(a.src,o=r[3])&&e.attr(a,"src",o)},d(r){r&&e.detach(t)}}}function W(n){let t,a=n[4]("loading")+"",o;return{c(){t=e.element("p"),o=e.text(a)},m(r,c){e.insert(r,t,c),e.append(t,o)},p(r,c){c&16&&a!==(a=r[4]("loading")+"")&&e.set_data(o,a)},d(r){r&&e.detach(t)}}}function G(n){let t,a,o,r=n[4]("titleDeposit")+"",c,m,d=n[5]&&F(n);function p(s,u){return s[1]?W:H}let f=p(n),l=f(n);return{c(){t=e.element("div"),d&&d.c(),a=e.space(),o=e.element("h2"),c=e.text(r),m=e.space(),l.c(),e.attr(o,"class","DepositTitle "+(n[5]?"DepositTitleNone":"")),e.attr(t,"class","DepositWrapper "+(n[5]?"DepositWrapperMobile":"")),e.set_style(t,"--dynamic-height",n[2])},m(s,u){e.insert(s,t,u),d&&d.m(t,null),e.append(t,a),e.append(t,o),e.append(o,c),e.append(t,m),l.m(t,null),n[19](t)},p(s,[u]){s[5]&&d.p(s,u),u&16&&r!==(r=s[4]("titleDeposit")+"")&&e.set_data(c,r),f===(f=p(s))&&l?l.p(s,u):(l.d(1),l=f(s),l&&(l.c(),l.m(t,null))),u&4&&e.set_style(t,"--dynamic-height",s[2])},i:e.noop,o:e.noop,d(s){s&&e.detach(t),d&&d.d(),l.d(),n[19](null)}}}function N(n,t,a){let o,r;e.component_subscribe(n,e.$format,i=>a(4,r=i));let{endpoint:c=""}=t,{session:m=""}=t,{playerid:d=""}=t,{lang:p="en"}=t,{hasdefaultamount:f=""}=t,{clientstyling:l=""}=t,{clientstylingurl:s=""}=t,{translationurl:u=""}=t,{currency:y=""}=t,{mbsource:D}=t,{shortcashierenabled:g="false"}=t,h,R=window.navigator.userAgent,v=e.getDevice(R)!=="PC",M=!0,k,_=0,C="";const B=()=>{fetch(u).then(w=>w.json()).then(w=>{Object.keys(w).forEach(b=>{T(b,w[b])})}).catch(w=>{console.log(w)})};Object.keys(E).forEach(i=>{T(i,E[i])});const S=()=>{window.postMessage({type:"GoToPreviousRoute",isMobile:v},window.location.href)},x=i=>{if(i.data){switch(i.data.type){case"ProfileDetailsData":a(7,y=i.data.profileDetails.currency);break}switch(i.data["MMFE:setQuickDepositHeight"]&&a(2,k=i.data["MMFE:setQuickDepositHeight"].toString()+"px"),i.data["MMFE:openFullCashier"]==="true"&&(window.postMessage({type:"GoToDeposit"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href)),i.data.redirect){case"mm-hc-casino":window.postMessage({type:"GoToCasino"},window.location.href);break;case"mm-hc-sports":window.postMessage({type:"GoToSports"},window.location.href);break;case"mm-hc-contact":window.postMessage({type:"GoToCustomerSupport"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href);break;case"mm-hc-back-to-merchant":window.postMessage({type:"GoToHomepage"},window.location.href);break;case"mm-wm-hc-init-deposit":window.postMessage({type:"RedirectWithdrawDepositCloseModal"},window.location.href);break;case"mm-wm-hc-init-deposit-quick":window.postMessage({type:"CloseShortCashier"},window.location.href);break}}},P=()=>{let i=new URL(`${c}/v1/player/${d}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);if(i.searchParams.append("language",p),o&&i.searchParams.append("isShortCashier",g),f)switch(y){case"USD":_=.4;break;case"CDF":_=1e3;break}let w={method:"POST",headers:{"X-SessionId":m,currency:y||"EUR",amount:_,cashierMode:"Default",IsShortCashier:g,accept:"application/json"}};fetch(i.href,w).then(b=>b.json()).then(b=>{a(1,M=!1),a(3,C=b.CashierUrl)},b=>{console.error(b)})},j=()=>{z(p)};e.onMount(()=>(window.addEventListener("message",x,!1),()=>{window.removeEventListener("message",x)}));const I=()=>S();function U(i){e.binding_callbacks[i?"unshift":"push"](()=>{h=i,a(0,h)})}return n.$$set=i=>{"endpoint"in i&&a(8,c=i.endpoint),"session"in i&&a(9,m=i.session),"playerid"in i&&a(10,d=i.playerid),"lang"in i&&a(11,p=i.lang),"hasdefaultamount"in i&&a(12,f=i.hasdefaultamount),"clientstyling"in i&&a(13,l=i.clientstyling),"clientstylingurl"in i&&a(14,s=i.clientstylingurl),"translationurl"in i&&a(15,u=i.translationurl),"currency"in i&&a(7,y=i.currency),"mbsource"in i&&a(16,D=i.mbsource),"shortcashierenabled"in i&&a(17,g=i.shortcashierenabled)},n.$$.update=()=>{n.$$.dirty&2048&&p&&j(),n.$$.dirty&131072&&(o=g.toLocaleLowerCase()==="true"),n.$$.dirty&8193&&l&&h&&e.setClientStyling(h,l),n.$$.dirty&16385&&s&&h&&e.setClientStylingURL(h,s),n.$$.dirty&65537&&D&&h&&e.setStreamStyling(h,`${D}.Style`),n.$$.dirty&32768&&u&&B(),n.$$.dirty&135040&&m&&d&&c&&y&&p&&g&&P()},[h,M,k,C,r,v,S,y,c,m,d,p,f,l,s,u,D,g,I,U]}class L extends e.SvelteComponent{constructor(t){super(),e.init(this,t,N,G,e.safe_not_equal,{endpoint:8,session:9,playerid:10,lang:11,hasdefaultamount:12,clientstyling:13,clientstylingurl:14,translationurl:15,currency:7,mbsource:16,shortcashierenabled:17},A)}get endpoint(){return this.$$.ctx[8]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[9]}set session(t){this.$$set({session:t}),e.flush()}get playerid(){return this.$$.ctx[10]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[11]}set lang(t){this.$$set({lang:t}),e.flush()}get hasdefaultamount(){return this.$$.ctx[12]}set hasdefaultamount(t){this.$$set({hasdefaultamount:t}),e.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get currency(){return this.$$.ctx[7]}set currency(t){this.$$set({currency:t}),e.flush()}get mbsource(){return this.$$.ctx[16]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get shortcashierenabled(){return this.$$.ctx[17]}set shortcashierenabled(t){this.$$set({shortcashierenabled:t}),e.flush()}}e.create_custom_element(L,{endpoint:{},session:{},playerid:{},lang:{},hasdefaultamount:{},clientstyling:{},clientstylingurl:{},translationurl:{},currency:{},mbsource:{},shortcashierenabled:{}},[],[],!0);exports.default=L;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoHeaderControllerNd-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoHeaderControllerNd-KMtnoFkv.cjs")).then(({default:t})=>{!customElements.get("casino-header-controller-nd")&&customElements.define("casino-header-controller-nd",t.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CasinoHeaderControllerNd-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoHeaderControllerNd-DbEj7WbE.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("casino-header-controller-nd") && customElements.define("casino-header-controller-nd", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CasinoHamburgerMenuNd-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoHamburgerMenuNd-D_F3LqqU.js").then((e) => e.V).then(({ default: e }) => {
|
|
14
14
|
!customElements.get("casino-hamburger-menu-nd") && customElements.define("casino-hamburger-menu-nd", e.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/lazy/{casino-hamburger-menu-nd-D0fSaYaM.cjs → casino-hamburger-menu-nd-DQ47l6Ct.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let t=function(e){return function(...s){try{return e.apply(this,s)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=t(customElements.define),Promise.resolve().then(()=>require("../components/CasinoHamburgerMenuNd-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let t=function(e){return function(...s){try{return e.apply(this,s)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=t(customElements.define),Promise.resolve().then(()=>require("../components/CasinoHamburgerMenuNd-CO_etjfF.cjs")).then(e=>e.CasinoHamburgerMenuNd_ce).then(({default:e})=>{!customElements.get("casino-hamburger-menu-nd")&&customElements.define("casino-hamburger-menu-nd",e.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window < "u") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CasinoHamburgerMenuNd-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoHamburgerMenuNd-CNHcuKgb.js").then((e) => e.V).then(({ default: e }) => {
|
|
14
14
|
!customElements.get("casino-hamburger-menu-nd") && customElements.define("casino-hamburger-menu-nd", e.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
|
@@ -10,7 +10,7 @@ if (typeof window < "u") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/PlayerAccountBalanceModalNd-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/PlayerAccountBalanceModalNd-D4AuGgJt.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("player-account-balance-modal-nd") && customElements.define("player-account-balance-modal-nd", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerAccountBalanceModalNd-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerAccountBalanceModalNd-DgUAkV_P.cjs")).then(({default:t})=>{!customElements.get("player-account-balance-modal-nd")&&customElements.define("player-account-balance-modal-nd",t.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/PlayerAccountBalanceModalNd-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/PlayerAccountBalanceModalNd-D2FhbpGW.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("player-account-balance-modal-nd") && customElements.define("player-account-balance-modal-nd", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/PlayerDeposit-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/PlayerDeposit-Dz8S_7Op.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("player-deposit") && customElements.define("player-deposit", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerDeposit-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerDeposit-R4l3tFgV.cjs")).then(({default:t})=>{!customElements.get("player-deposit")&&customElements.define("player-deposit",t.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window < "u") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/PlayerDeposit-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/PlayerDeposit-B16OcHzg.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("player-deposit") && customElements.define("player-deposit", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
|
@@ -26,7 +26,7 @@ var pe = Object.defineProperty, he = (e, t) => {
|
|
|
26
26
|
case "user-deposit-withdrawal":
|
|
27
27
|
return import(
|
|
28
28
|
/* webpackMode: "lazy" */
|
|
29
|
-
"../stencil/user-deposit-withdrawal-
|
|
29
|
+
"../stencil/user-deposit-withdrawal-Bcg5KS8a.js"
|
|
30
30
|
).then((o) => o.a).then(l, b);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -42,7 +42,7 @@ var he = Object.defineProperty, ye = (e, t) => {
|
|
|
42
42
|
case "user-deposit-withdrawal":
|
|
43
43
|
return import(
|
|
44
44
|
/* webpackMode: "lazy" */
|
|
45
|
-
"../stencil/user-deposit-withdrawal-
|
|
45
|
+
"../stencil/user-deposit-withdrawal-B3gYtP8t.js"
|
|
46
46
|
).then((o) => o.a).then(l, b);
|
|
47
47
|
}
|
|
48
48
|
}
|