@everymatrix/casino-header-controller-nd 1.89.0 → 1.89.2

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.
Files changed (28) hide show
  1. package/components/{CasinoHamburgerMenuNd-C20WARcb.js → CasinoHamburgerMenuNd-C3GWQXmv.js} +1 -1
  2. package/components/{CasinoHamburgerMenuNd-B4QZvkD8.js → CasinoHamburgerMenuNd-Ctin9D1n.js} +1 -1
  3. package/components/{CasinoHamburgerMenuNd-v83ac_-t.cjs → CasinoHamburgerMenuNd-Dy_ZPbVP.cjs} +1 -1
  4. package/components/{CasinoHeaderControllerNd-KJVxZm0e.js → CasinoHeaderControllerNd-BNDsJ0W8.js} +1138 -1120
  5. package/components/{CasinoHeaderControllerNd-jRVeL-3S.cjs → CasinoHeaderControllerNd-BWivTr9J.cjs} +4 -4
  6. package/components/{CasinoHeaderControllerNd-C3_zgH0i.js → CasinoHeaderControllerNd-DwjT7tNR.js} +1110 -1092
  7. package/components/PlayerAccountBalanceModalNd-BcX135Ha.js +1653 -0
  8. package/components/PlayerAccountBalanceModalNd-DpqQtYYT.js +1624 -0
  9. package/components/PlayerAccountBalanceModalNd-yZ9YD5yq.cjs +7 -0
  10. package/components/{PlayerDeposit-D_tZ1EkN.js → PlayerDeposit-Bh1FyHgv.js} +1 -1
  11. package/components/{PlayerDeposit-L-iPr4Nc.cjs → PlayerDeposit-CYF8aGub.cjs} +1 -1
  12. package/components/{PlayerDeposit-C9ll9_Aq.js → PlayerDeposit-UutKx0XP.js} +1 -1
  13. package/es2015/casino-header-controller-nd.cjs +1 -1
  14. package/es2015/casino-header-controller-nd.js +1 -1
  15. package/esnext/casino-header-controller-nd.js +1 -1
  16. package/lazy/{casino-hamburger-menu-nd-B6tEilhI.js → casino-hamburger-menu-nd-3hvipqDm.js} +1 -1
  17. package/lazy/{casino-hamburger-menu-nd-YtFBUxZT.cjs → casino-hamburger-menu-nd-CmmwDN64.cjs} +1 -1
  18. package/lazy/{casino-hamburger-menu-nd-CDbuBSby.js → casino-hamburger-menu-nd-D4isZY0K.js} +1 -1
  19. package/lazy/{player-account-balance-modal-nd-DpMw9PYg.js → player-account-balance-modal-nd-5D0P7FGO.js} +1 -1
  20. package/lazy/{player-account-balance-modal-nd-DPKBYKS8.js → player-account-balance-modal-nd-Ci_Xhu6o.js} +1 -1
  21. package/lazy/{player-account-balance-modal-nd-CIfrSVe0.cjs → player-account-balance-modal-nd-D5Yd9Mmm.cjs} +1 -1
  22. package/lazy/{player-deposit-C9lyaeXY.js → player-deposit-CDrc20C1.js} +1 -1
  23. package/lazy/{player-deposit-CLHmEQX3.js → player-deposit-raELRvCH.js} +1 -1
  24. package/lazy/{player-deposit-DxKWGmMq.cjs → player-deposit-vTgh6aYY.cjs} +1 -1
  25. package/package.json +1 -1
  26. package/components/PlayerAccountBalanceModalNd-BiI31wNU.js +0 -1629
  27. package/components/PlayerAccountBalanceModalNd-DMdVVQbM.cjs +0 -7
  28. package/components/PlayerAccountBalanceModalNd-Dn8PgMqD.js +0 -1600
@@ -0,0 +1,7 @@
1
+ "use strict";var nt=Object.defineProperty,at=Object.defineProperties;var ot=Object.getOwnPropertyDescriptors;var ze=Object.getOwnPropertySymbols;var it=Object.prototype.hasOwnProperty,rt=Object.prototype.propertyIsEnumerable;var je=Math.pow,Ve=(i,t,n)=>t in i?nt(i,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):i[t]=n,Ue=(i,t)=>{for(var n in t||(t={}))it.call(t,n)&&Ve(i,n,t[n]);if(ze)for(var n of ze(t))rt.call(t,n)&&Ve(i,n,t[n]);return i},Pe=(i,t)=>at(i,ot(t));var Ge=(i,t,n)=>new Promise((m,y)=>{var u=f=>{try{B(n.next(f))}catch(b){y(b)}},c=f=>{try{B(n.throw(f))}catch(b){y(b)}},B=f=>f.done?m(f.value):Promise.resolve(f.value).then(u,c);B((n=n.apply(i,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHeaderControllerNd-BWivTr9J.cjs");function Xe(i,t){e.addMessages(i,t)}function st(i){e.$locale.set(i)}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",ActiveBonusesButton:"Active Bonuses",Loading:"Loading ..."},"zh-hk":{Title:"您的結餘",Total:"總結餘",Real:"現金結餘",Bonus:"紅利結餘",Credit:"信用結餘",Casino:"賭場",Sports:"體育",LimitsButton:"Limits",DepositButton:"存款",ActiveBonusesButton:"活躍獎金",Loading:"載入中 ..."},de:{Title:"Ihr Guthaben",Total:"Gesamtguthaben",Real:"Barguthaben",Bonus:"Bonusguthaben",Credit:"Kreditguthaben",Casino:"Casino",Sports:"Sport",LimitsButton:"Limits",DepositButton:"Einzahlen",ActiveBonusesButton:"Aktive Boni",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",ActiveBonusesButton:"Bonus Attivi",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",ActiveBonusesButton:"Bonus Actifs",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",ActiveBonusesButton:"Bonos Activos",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",ActiveBonusesButton:"Aktif Bonuslar",Loading:"Yükleniyor ..."},ru:{Title:"Ваш баланс",Total:"Общий баланс",Real:"Денежный баланс",Bonus:"Бонусный баланс",Credit:"Кредитный баланс",Casino:"Казино",Sports:"Спорт",LimitsButton:"Limits",DepositButton:"Депозит",ActiveBonusesButton:"Активные Бонусы",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",ActiveBonusesButton:"Bonusuri Active",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",ActiveBonusesButton:"Aktivni Bonusi",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",ActiveBonusesButton:"Aktív Bónuszok",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ć",ActiveBonusesButton:"Aktywne Bonusy",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",ActiveBonusesButton:"Bônus Ativos",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",ActiveBonusesButton:"Aktivni Bonusi",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",ActiveBonusesButton:"Aktivni Bonusi",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",ActiveBonusesButton:"Bônus Ativos",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",ActiveBonusesButton:"Bonos Activos",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",ActiveBonusesButton:"Active Bonuses",Loading:"Loading ..."}};var He={exports:{}};/** @license
2
+ * eventsource.js
3
+ * Available under MIT License (MIT)
4
+ * https://github.com/Yaffle/EventSource/
5
+ */(function(i,t){(function(n){var m=n.setTimeout,y=n.clearTimeout,u=n.XMLHttpRequest,c=n.XDomainRequest,B=n.ActiveXObject,f=n.EventSource,b=n.document,N=n.Promise,P=n.fetch,z=n.Response,C=n.TextDecoder,T=n.TextEncoder,V=n.AbortController;if(typeof window!="undefined"&&typeof b!="undefined"&&!("readyState"in b)&&b.body==null&&(b.readyState="loading",window.addEventListener("load",function(a){b.readyState="complete"},!1)),u==null&&B!=null&&(u=function(){return new B("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(a){function r(){}return r.prototype=a,new r}),Date.now||(Date.now=function(){return new Date().getTime()}),V==null){var he=P;P=function(a,r){var p=r.signal;return he(a,{headers:r.headers,credentials:r.credentials,cache:r.cache}).then(function(l){var S=l.body.getReader();return p._reader=S,p._aborted&&p._reader.cancel(),{status:l.status,statusText:l.statusText,headers:l.headers,body:{getReader:function(){return S}}}})},V=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function me(){this.bitsNeeded=0,this.codePoint=0}me.prototype.decode=function(a){function r(M,F,A){if(A===1)return M>=128>>F&&M<<F<=2047;if(A===2)return M>=2048>>F&&M<<F<=55295||M>=57344>>F&&M<<F<=65535;if(A===3)return M>=65536>>F&&M<<F<=1114111;throw new Error}function p(M,F){if(M===6*1)return F>>6>15?3:F>31?2:1;if(M===6*2)return F>15?3:2;if(M===6*3)return 3;throw new Error}for(var l=65533,S="",v=this.bitsNeeded,_=this.codePoint,I=0;I<a.length;I+=1){var R=a[I];v!==0&&(R<128||R>191||!r(_<<6|R&63,v-6,p(v,_)))&&(v=0,_=l,S+=String.fromCharCode(_)),v===0?(R>=0&&R<=127?(v=0,_=R):R>=192&&R<=223?(v=6*1,_=R&31):R>=224&&R<=239?(v=6*2,_=R&15):R>=240&&R<=247?(v=6*3,_=R&7):(v=0,_=l),v!==0&&!r(_,v,p(v,_))&&(v=0,_=l)):(v-=6,_=_<<6|R&63),v===0&&(_<=65535?S+=String.fromCharCode(_):(S+=String.fromCharCode(55296+(_-65535-1>>10)),S+=String.fromCharCode(56320+(_-65535-1&1023))))}return this.bitsNeeded=v,this.codePoint=_,S};var Be=function(){try{return new C().decode(new T().encode("test"),{stream:!0})==="test"}catch(a){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+a)}return!1};(C==null||T==null||!Be())&&(C=me);var G=function(){};function Y(a){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=G,this.onload=G,this.onerror=G,this.onreadystatechange=G,this._contentType="",this._xhr=a,this._sendTimeout=0,this._abort=G}Y.prototype.open=function(a,r){this._abort(!0);var p=this,l=this._xhr,S=1,v=0;this._abort=function(A){p._sendTimeout!==0&&(y(p._sendTimeout),p._sendTimeout=0),(S===1||S===2||S===3)&&(S=4,l.onload=G,l.onerror=G,l.onabort=G,l.onprogress=G,l.onreadystatechange=G,l.abort(),v!==0&&(y(v),v=0),A||(p.readyState=4,p.onabort(null),p.onreadystatechange())),S=0};var _=function(){if(S===1){var A=0,j="",ue=void 0;if("contentType"in l)A=200,j="OK",ue=l.contentType;else try{A=l.status,j=l.statusText,ue=l.getResponseHeader("Content-Type")}catch(Se){A=0,j="",ue=void 0}A!==0&&(S=2,p.readyState=2,p.status=A,p.statusText=j,p._contentType=ue,p.onreadystatechange())}},I=function(){if(_(),S===2||S===3){S=3;var A="";try{A=l.responseText}catch(j){}p.readyState=3,p.responseText=A,p.onprogress()}},R=function(A,j){if((j==null||j.preventDefault==null)&&(j={preventDefault:G}),I(),S===1||S===2||S===3){if(S=4,v!==0&&(y(v),v=0),p.readyState=4,A==="load")p.onload(j);else if(A==="error")p.onerror(j);else if(A==="abort")p.onabort(j);else throw new TypeError;p.onreadystatechange()}},M=function(A){l!=null&&(l.readyState===4?(!("onload"in l)||!("onerror"in l)||!("onabort"in l))&&R(l.responseText===""?"error":"load",A):l.readyState===3?"onprogress"in l||I():l.readyState===2&&_())},F=function(){v=m(function(){F()},500),l.readyState===3&&I()};"onload"in l&&(l.onload=function(A){R("load",A)}),"onerror"in l&&(l.onerror=function(A){R("error",A)}),"onabort"in l&&(l.onabort=function(A){R("abort",A)}),"onprogress"in l&&(l.onprogress=I),"onreadystatechange"in l&&(l.onreadystatechange=function(A){M(A)}),("contentType"in l||!("ontimeout"in u.prototype))&&(r+=(r.indexOf("?")===-1?"?":"&")+"padding=true"),l.open(a,r,!0),"readyState"in l&&(v=m(function(){F()},0))},Y.prototype.abort=function(){this._abort(!1)},Y.prototype.getResponseHeader=function(a){return this._contentType},Y.prototype.setRequestHeader=function(a,r){var p=this._xhr;"setRequestHeader"in p&&p.setRequestHeader(a,r)},Y.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},Y.prototype.send=function(){if((!("ontimeout"in u.prototype)||!("sendAsBinary"in u.prototype)&&!("mozAnon"in u.prototype))&&b!=null&&b.readyState!=null&&b.readyState!=="complete"){var a=this;a._sendTimeout=m(function(){a._sendTimeout=0,a.send()},4);return}var r=this._xhr;"withCredentials"in r&&(r.withCredentials=this.withCredentials);try{r.send(void 0)}catch(p){throw p}};function ce(a){return a.replace(/[A-Z]/g,function(r){return String.fromCharCode(r.charCodeAt(0)+32)})}function J(a){for(var r=Object.create(null),p=a.split(`\r
6
+ `),l=0;l<p.length;l+=1){var S=p[l],v=S.split(": "),_=v.shift(),I=v.join(": ");r[ce(_)]=I}this._map=r}J.prototype.get=function(a){return this._map[ce(a)]},u!=null&&u.HEADERS_RECEIVED==null&&(u.HEADERS_RECEIVED=2);function re(){}re.prototype.open=function(a,r,p,l,S,v,_){a.open("GET",S);var I=0;a.onprogress=function(){var M=a.responseText,F=M.slice(I);I+=F.length,p(F)},a.onerror=function(M){M.preventDefault(),l(new Error("NetworkError"))},a.onload=function(){l(null)},a.onabort=function(){l(null)},a.onreadystatechange=function(){if(a.readyState===u.HEADERS_RECEIVED){var M=a.status,F=a.statusText,A=a.getResponseHeader("Content-Type"),j=a.getAllResponseHeaders();r(M,F,A,new J(j))}},a.withCredentials=v;for(var R in _)Object.prototype.hasOwnProperty.call(_,R)&&a.setRequestHeader(R,_[R]);return a.send(),a};function fe(a){this._headers=a}fe.prototype.get=function(a){return this._headers.get(a)};function ee(){}ee.prototype.open=function(a,r,p,l,S,v,_){var I=null,R=new V,M=R.signal,F=new C;return P(S,{headers:_,credentials:v?"include":"same-origin",signal:M,cache:"no-store"}).then(function(A){return I=A.body.getReader(),r(A.status,A.statusText,A.headers.get("Content-Type"),new fe(A.headers)),new N(function(j,ue){var Se=function(){I.read().then(function(o){if(o.done)j(void 0);else{var h=F.decode(o.value,{stream:!0});p(h),Se()}}).catch(function(o){ue(o)})};Se()})}).catch(function(A){if(A.name!=="AbortError")return A}).then(function(A){l(A)}),{abort:function(){I!=null&&I.cancel(),R.abort()}}};function k(){this._listeners=Object.create(null)}function X(a){m(function(){throw a},0)}k.prototype.dispatchEvent=function(a){a.target=this;var r=this._listeners[a.type];if(r!=null)for(var p=r.length,l=0;l<p;l+=1){var S=r[l];try{typeof S.handleEvent=="function"?S.handleEvent(a):S.call(this,a)}catch(v){X(v)}}},k.prototype.addEventListener=function(a,r){a=String(a);var p=this._listeners,l=p[a];l==null&&(l=[],p[a]=l);for(var S=!1,v=0;v<l.length;v+=1)l[v]===r&&(S=!0);S||l.push(r)},k.prototype.removeEventListener=function(a,r){a=String(a);var p=this._listeners,l=p[a];if(l!=null){for(var S=[],v=0;v<l.length;v+=1)l[v]!==r&&S.push(l[v]);S.length===0?delete p[a]:p[a]=S}};function D(a){this.type=a,this.target=void 0}function L(a,r){D.call(this,a),this.data=r.data,this.lastEventId=r.lastEventId}L.prototype=Object.create(D.prototype);function U(a,r){D.call(this,a),this.status=r.status,this.statusText=r.statusText,this.headers=r.headers}U.prototype=Object.create(D.prototype);function H(a,r){D.call(this,a),this.error=r.error}H.prototype=Object.create(D.prototype);var ge=-1,pe=0,te=1,se=2,le=-1,$=0,Ae=1,s=2,Te=3,Ne=/^text\/event\-stream(;.*)?$/i,be=1e3,Le=18e6,xe=function(a,r){var p=a==null?r:parseInt(a,10);return p!==p&&(p=r),Ee(p)},Ee=function(a){return Math.min(Math.max(a,be),Le)},we=function(a,r,p){try{typeof r=="function"&&r.call(a,p)}catch(l){X(l)}};function Q(a,r){k.call(this),r=r||{},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,ke(this,a,r)}function De(){return u!=null&&"withCredentials"in u.prototype||c==null?new u:new c}var Fe=P!=null&&z!=null&&"body"in z.prototype;function ke(a,r,p){r=String(r);var l=!!p.withCredentials,S=p.lastEventIdQueryParameterName||"lastEventId",v=Ee(1e3),_=xe(p.heartbeatTimeout,45e3),I="",R=v,M=!1,F=0,A=p.headers||{},j=p.Transport,ue=Fe&&j==null?void 0:new Y(j!=null?new j:De()),Se=j!=null&&typeof j!="string"?new j:ue==null?new ee:new re,o=void 0,h=0,g=ge,w="",O="",x="",d="",E=$,ne=0,ae=0,Ie=function(K,q,oe,ie){if(g===pe)if(K===200&&oe!=null&&Ne.test(oe)){g=te,M=Date.now(),R=v,a.readyState=te;var Z=new U("open",{status:K,statusText:q,headers:ie});a.dispatchEvent(Z),we(a,a.onopen,Z)}else{var W="";K!==200?(q&&(q=q.replace(/\s+/g," ")),W="EventSource's response has a status "+K+" "+q+" that is not 200. Aborting the connection."):W="EventSource's response has a Content-Type specifying an unsupported type: "+(oe==null?"-":oe.replace(/\s+/g," "))+". Aborting the connection.",_e();var Z=new U("error",{status:K,statusText:q,headers:ie});a.dispatchEvent(Z),we(a,a.onerror,Z),console.error(W)}},Ce=function(K){if(g===te){for(var q=-1,oe=0;oe<K.length;oe+=1){var ie=K.charCodeAt(oe);(ie===10||ie===13)&&(q=oe)}var Z=(q!==-1?d:"")+K.slice(0,q+1);d=(q===-1?d:"")+K.slice(q+1),K!==""&&(M=Date.now(),F+=K.length);for(var W=0;W<Z.length;W+=1){var ie=Z.charCodeAt(W);if(E===le&&ie===10)E=$;else if(E===le&&(E=$),ie===13||ie===10){if(E!==$){E===Ae&&(ae=W+1);var ye=Z.slice(ne,ae-1),ve=Z.slice(ae+(ae<W&&Z.charCodeAt(ae)===32?1:0),W);ye==="data"?(w+=`
7
+ `,w+=ve):ye==="id"?O=ve:ye==="event"?x=ve:ye==="retry"?(v=xe(ve,v),R=v):ye==="heartbeatTimeout"&&(_=xe(ve,_),h!==0&&(y(h),h=m(function(){de()},_)))}if(E===$){if(w!==""){I=O,x===""&&(x="message");var Re=new L(x,{data:w.slice(1),lastEventId:O});if(a.dispatchEvent(Re),x==="open"?we(a,a.onopen,Re):x==="message"?we(a,a.onmessage,Re):x==="error"&&we(a,a.onerror,Re),g===se)return}w="",x=""}E=ie===13?le:$}else E===$&&(ne=W,E=Ae),E===Ae?ie===58&&(ae=W+1,E=s):E===s&&(E=Te)}}},Oe=function(K){if(g===te||g===pe){g=ge,h!==0&&(y(h),h=0),h=m(function(){de()},R),R=Ee(Math.min(v*16,R*2)),a.readyState=pe;var q=new H("error",{error:K});a.dispatchEvent(q),we(a,a.onerror,q),K!=null&&console.error(K)}},_e=function(){g=se,o!=null&&(o.abort(),o=void 0),h!==0&&(y(h),h=0),a.readyState=se},de=function(){if(h=0,g!==ge){if(!M&&o!=null)Oe(new Error("No activity within "+_+" milliseconds. "+(g===pe?"No response received.":F+" chars received.")+" Reconnecting.")),o!=null&&(o.abort(),o=void 0);else{var K=Math.max((M||Date.now())+_-Date.now(),1);M=!1,h=m(function(){de()},K)}return}M=!1,F=0,h=m(function(){de()},_),g=pe,w="",x="",O=I,d="",ne=0,ae=0,E=$;var q=r;if(r.slice(0,5)!=="data:"&&r.slice(0,5)!=="blob:"&&I!==""){var oe=r.indexOf("?");q=oe===-1?r:r.slice(0,oe+1)+r.slice(oe+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(ve,Re){return Re===S?"":ve}),q+=(r.indexOf("?")===-1?"?":"&")+S+"="+encodeURIComponent(I)}var ie=a.withCredentials,Z={};Z.Accept="text/event-stream";var W=a.headers;if(W!=null)for(var ye in W)Object.prototype.hasOwnProperty.call(W,ye)&&(Z[ye]=W[ye]);try{o=Se.open(ue,Ie,Ce,Oe,q,ie,Z)}catch(ve){throw _e(),ve}};a.url=r,a.readyState=pe,a.withCredentials=l,a.headers=A,a._close=_e,de()}Q.prototype=Object.create(k.prototype),Q.prototype.CONNECTING=pe,Q.prototype.OPEN=te,Q.prototype.CLOSED=se,Q.prototype.close=function(){this._close()},Q.CONNECTING=pe,Q.OPEN=te,Q.CLOSED=se,Q.prototype.withCredentials=void 0;var Me=f;u!=null&&(f==null||!("withCredentials"in f.prototype))&&(Me=Q),function(a){{var r=a(t);r!==void 0&&(i.exports=r)}}(function(a){a.EventSourcePolyfill=Q,a.NativeEventSource=f,a.EventSource=Me})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:e.commonjsGlobal:globalThis)})(He,He.exports);var lt=He.exports;function ct(i){e.append_styles(i,"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(i,t,n){const m=i.slice();return m[64]=t[n],m}function We(i,t,n){const m=i.slice();return m[67]=t[n],m}function ut(i){let t,n,m,y,u,c,B,f,b,N,P,z,C=i[6]&&Ye(i);return{c(){t=e.element("button"),n=e.element("p"),m=e.text(i[8]),y=e.space(),u=e.element("span"),c=e.svg_element("svg"),B=e.svg_element("path"),b=e.space(),C&&C.c(),N=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(c,"xmlns","http://www.w3.org/2000/svg"),e.attr(c,"width","14"),e.attr(c,"height","6.835"),e.attr(c,"viewBox","0 0 14 6.835"),e.attr(u,"class",f=i[5]?"TriangleActive":"TriangleInactive"),e.attr(t,"class","BalanceValue")},m(T,V){e.insert(T,t,V),e.append(t,n),e.append(n,m),e.append(t,y),e.append(t,u),e.append(u,c),e.append(c,B),e.insert(T,b,V),C&&C.m(T,V),e.insert(T,N,V),P||(z=e.listen(t,"click",i[34]),P=!0)},p(T,V){V[0]&256&&e.set_data(m,T[8]),V[0]&32&&f!==(f=T[5]?"TriangleActive":"TriangleInactive")&&e.attr(u,"class",f),T[6]?C?C.p(T,V):(C=Ye(T),C.c(),C.m(N.parentNode,N)):C&&(C.d(1),C=null)},d(T){T&&(e.detach(t),e.detach(b),e.detach(N)),C&&C.d(T),P=!1,z()}}}function dt(i){let t,n=i[9]("Loading")+"",m;return{c(){t=e.element("p"),m=e.text(n),e.attr(t,"class","Loading")},m(y,u){e.insert(y,t,u),e.append(t,m)},p(y,u){u[0]&512&&n!==(n=y[9]("Loading")+"")&&e.set_data(m,n)},d(y){y&&e.detach(t)}}}function Ye(i){let t,n,m,y,u,c,B,f,b=i[9]("Title")+"",N,P,z,C,T,V,he=i[9]("DepositButton")+"",me,Be,G,Y,ce,J,re,fe,ee=e.ensure_array_like(Object.keys(i[3])),k=[];for(let L=0;L<ee.length;L+=1)k[L]=Ze(Ke(i,ee,L));let X=i[0]==="true"&&Je(i),D=i[1]==="true"&&$e(i);return{c(){t=e.element("div"),n=e.element("button"),y=e.space(),u=e.element("div"),c=e.element("div"),B=e.element("div"),f=e.element("p"),N=e.text(b),P=e.space(),z=e.element("div");for(let L=0;L<k.length;L+=1)k[L].c();C=e.space(),T=e.element("div"),V=e.element("button"),me=e.text(he),Be=e.space(),X&&X.c(),G=e.space(),D&&D.c(),e.attr(n,"class",m="BalanceModalClose "+(i[5]?"Open":"")),e.attr(f,"class","BalanceModalTitle"),e.attr(B,"class","BalanceModalHeader"),e.attr(z,"class","BalanceModalBody"),e.attr(V,"class","BalanceModalAction DepositButton"),e.attr(T,"class","BalanceModalFooter"),e.attr(c,"class",Y="ModalContent "+(i[5]?"Open":"")),e.attr(u,"class",ce="BalanceModal "+(i[5]?"Open":"")),e.attr(t,"class",J="BalanceModalWrapper "+(i[5]?"Open":""))},m(L,U){e.insert(L,t,U),e.append(t,n),e.append(t,y),e.append(t,u),e.append(u,c),e.append(c,B),e.append(B,f),e.append(f,N),e.append(c,P),e.append(c,z);for(let H=0;H<k.length;H+=1)k[H]&&k[H].m(z,null);e.append(c,C),e.append(c,T),e.append(T,V),e.append(V,me),e.append(T,Be),X&&X.m(T,null),e.append(T,G),D&&D.m(T,null),re||(fe=[e.listen(n,"click",i[35]),e.listen(V,"click",i[36])],re=!0)},p(L,U){if(U[0]&32&&m!==(m="BalanceModalClose "+(L[5]?"Open":""))&&e.attr(n,"class",m),U[0]&512&&b!==(b=L[9]("Title")+"")&&e.set_data(N,b),U[0]&10760){ee=e.ensure_array_like(Object.keys(L[3]));let H;for(H=0;H<ee.length;H+=1){const ge=Ke(L,ee,H);k[H]?k[H].p(ge,U):(k[H]=Ze(ge),k[H].c(),k[H].m(z,null))}for(;H<k.length;H+=1)k[H].d(1);k.length=ee.length}U[0]&512&&he!==(he=L[9]("DepositButton")+"")&&e.set_data(me,he),L[0]==="true"?X?X.p(L,U):(X=Je(L),X.c(),X.m(T,G)):X&&(X.d(1),X=null),L[1]==="true"?D?D.p(L,U):(D=$e(L),D.c(),D.m(T,null)):D&&(D.d(1),D=null),U[0]&32&&Y!==(Y="ModalContent "+(L[5]?"Open":""))&&e.attr(c,"class",Y),U[0]&32&&ce!==(ce="BalanceModal "+(L[5]?"Open":""))&&e.attr(u,"class",ce),U[0]&32&&J!==(J="BalanceModalWrapper "+(L[5]?"Open":""))&&e.attr(t,"class",J)},d(L){L&&e.detach(t),e.destroy_each(k,L),X&&X.d(),D&&D.d(),re=!1,e.run_all(fe)}}}function Qe(i){let t,n,m=i[9](i[64])+"",y,u,c=i[13](i[67])+"",B,f,b,N,P=i[11](i[67].amount)+"",z;return{c(){t=e.element("div"),n=e.element("p"),y=e.text(m),u=e.space(),B=e.text(c),f=e.space(),b=e.element("p"),N=e.element("span"),z=e.text(P),e.attr(n,"class","BalanceModalText"),e.attr(N,"class","BalanceModalAmount"),e.attr(b,"class","BalanceModalValue"),e.attr(t,"class","BalanceModalRowLine")},m(C,T){e.insert(C,t,T),e.append(t,n),e.append(n,y),e.append(n,u),e.append(n,B),e.append(t,f),e.append(t,b),e.append(b,N),e.append(N,z)},p(C,T){T[0]&520&&m!==(m=C[9](C[64])+"")&&e.set_data(y,m),T[0]&8&&c!==(c=C[13](C[67])+"")&&e.set_data(B,c),T[0]&8&&P!==(P=C[11](C[67].amount)+"")&&e.set_data(z,P)},d(C){C&&e.detach(t)}}}function Ze(i){let t,n,m,y=e.ensure_array_like(i[3][i[64]]),u=[];for(let c=0;c<y.length;c+=1)u[c]=Qe(We(i,y,c));return{c(){t=e.element("div");for(let c=0;c<u.length;c+=1)u[c].c();n=e.space(),e.attr(t,"class",m="BalanceModalRowBoth "+i[64])},m(c,B){e.insert(c,t,B);for(let f=0;f<u.length;f+=1)u[f]&&u[f].m(t,null);e.append(t,n)},p(c,B){if(B[0]&10760){y=e.ensure_array_like(c[3][c[64]]);let f;for(f=0;f<y.length;f+=1){const b=We(c,y,f);u[f]?u[f].p(b,B):(u[f]=Qe(b),u[f].c(),u[f].m(t,n))}for(;f<u.length;f+=1)u[f].d(1);u.length=y.length}B[0]&8&&m!==(m="BalanceModalRowBoth "+c[64])&&e.attr(t,"class",m)},d(c){c&&e.detach(t),e.destroy_each(u,c)}}}function Je(i){let t,n=i[9]("LimitsButton")+"",m,y,u;return{c(){t=e.element("button"),m=e.text(n),e.attr(t,"class","BalanceModalAction LimitsButton")},m(c,B){e.insert(c,t,B),e.append(t,m),y||(u=e.listen(t,"click",i[37]),y=!0)},p(c,B){B[0]&512&&n!==(n=c[9]("LimitsButton")+"")&&e.set_data(m,n)},d(c){c&&e.detach(t),y=!1,u()}}}function $e(i){let t,n=i[9]("ActiveBonusesButton")+"",m,y,u;return{c(){t=e.element("button"),m=e.text(n),e.attr(t,"class","BalanceModalAction ActiveBonusesButton")},m(c,B){e.insert(c,t,B),e.append(t,m),y||(u=e.listen(t,"click",i[38]),y=!0)},p(c,B){B[0]&512&&n!==(n=c[9]("ActiveBonusesButton")+"")&&e.set_data(m,n)},d(c){c&&e.detach(t),y=!1,u()}}}function et(i){let t,n,m;return{c(){t=e.element("button"),e.attr(t,"class","ShowBalanceModalOverlay")},m(y,u){e.insert(y,t,u),n||(m=e.listen(t,"click",i[39]),n=!0)},p:e.noop,d(y){y&&e.detach(t),n=!1,m()}}}function ft(i){let t,n,m,y;function u(b,N){return b[4]?dt:ut}let c=u(i),B=c(i),f=i[6]&&et(i);return{c(){t=e.element("div"),n=e.element("div"),B.c(),y=e.space(),f&&f.c(),e.attr(n,"class",m="ShowBalance "+(i[7]?"Mobile":""))},m(b,N){e.insert(b,t,N),e.append(t,n),B.m(n,null),e.append(t,y),f&&f.m(t,null),i[40](t)},p(b,N){c===(c=u(b))&&B?B.p(b,N):(B.d(1),B=c(b),B&&(B.c(),B.m(n,null))),N[0]&128&&m!==(m="ShowBalance "+(b[7]?"Mobile":""))&&e.attr(n,"class",m),b[6]?f?f.p(b,N):(f=et(b),f.c(),f.m(t,null)):f&&(f.d(1),f=null)},i:e.noop,o:e.noop,d(b){b&&e.detach(t),B.d(),f&&f.d(),i[40](null)}}}function pt(i,t,n){let m;e.component_subscribe(i,e.$format,o=>n(9,m=o));let{userid:y=""}=t,{session:u=""}=t,{endpoint:c=""}=t,{lang:B="en"}=t,{mbsource:f=""}=t,{clientstyling:b=""}=t,{clientstylingurl:N=""}=t,{translationurl:P=""}=t,{gmversion:z="gm16"}=t,{displaybalanceoption:C="All"}=t,{totalcalculationmode:T="totalCashAmount"}=t,{primarybalancemode:V}=t,{balancelimitsbutton:he="false"}=t,{activebonusesbutton:me="false"}=t,{hideproducttype:Be=""}=t,{shownegativebalance:G="false"}=t,{currencylocale:Y="en"}=t,{currencydisplay:ce="symbol"}=t,{maximumfractiondigits:J="2"}=t,{minimumfractiondigits:re="0"}=t,{customdisplayformat:fe=""}=t,{alwaysshowdecimals:ee="true"}=t,k,X,D=!0,L=!1,U=!1,H=!1,ge=!1,pe=window.navigator.userAgent,te,se="",le=[],$,Ae="0";const s={},Te=["totalCashAmount","totalRealAmount"],Ne=()=>{fetch(P).then(o=>o.json()).then(o=>Object.keys(o).forEach(h=>Xe(h,o[h]))).catch(o=>console.log(o))};Object.keys(qe).forEach(o=>Xe(o,qe[o]));const be=o=>{switch(o){case"balance":window.postMessage({type:"BalanceModalStatus",status:"open"},window.location.href),n(6,H=!0),setTimeout(()=>n(5,L=!0),150);break;case"closebalance":n(5,L=!1),window.postMessage({type:"BalanceModalStatus",status:"close"},window.location.href),setTimeout(()=>{n(6,H=!1)},150);break}},Le=o=>{if(fe)return xe(o);const h=Y||B,g={style:"currency",currency:se,useGrouping:!0,currencyDisplay:ce||"code",maximumFractionDigits:J===""||isNaN(Number(J))?2:Number(J),minimumFractionDigits:re===""||isNaN(Number(re))?0:Number(re)};return new Intl.NumberFormat(h,g).format(o)},xe=o=>{const h=[];let g="";for(const w of fe)switch(w){default:g+=w;break;case"{":g&&h.push(g),g="";break;case"}":const[O,x]=g.split("|");if(g="",O.toLowerCase()==="currency")g=se;else if(O.toLowerCase()==="amount"){let d=",",E=".",ne=2;x&&(x[0]!==" "&&(d=x[0]),x[1]!==" "&&(E=x[1]),x[2]!==" "&&!isNaN(Number(x[2]))&&(ne=Number(x[2])));let[ae,Ie]=String(Math.floor(o*je(10,ne))/je(10,ne)).split(".");g+=ae[0];for(let de=1;de<ae.length;++de)(ae.length-de)%3===0?g+=d+ae[de]:g+=ae[de];let Ce=Ie||"";const Oe=ee==="true",_e=Number(J);if(Oe)Ce=Ce.padEnd(_e||2,"0").substring(0,_e);else if(!Ce)break;g+=E+Ce}g&&h.push(g),g="";break}return h.push(g),h.join("")},Ee=()=>Ge(this,null,function*(){var h,g,w;n(4,D=!0);const o=new URL(`${c}/v1/player/${y}/account`);try{const O=yield fetch(o,{method:"GET",headers:{"X-SessionID":u}}),x=yield O.json();if(O.ok)window.postMessage({type:"BalancedFetched"},window.location.href),le=x.items,se=(h=le.find(d=>d.displayName==="Casino"))==null?void 0:h.currency,n(3,s.Total=[{amount:x.totalAmount[se]}],s),n(3,s.Real=[{amount:(g=le.find(d=>d.displayName==="Casino"))==null?void 0:g.balanceAmount}],s),n(3,s.Bonus=[{amount:(w=le.find(d=>d.displayName==="UBS"))==null?void 0:w.balanceAmount}],s);else throw new Error("Failed to fetch balance data !")}catch(O){console.log("Balance error: ",O)}finally{n(4,D=!1)}}),we=()=>{n(4,D=!0);const o=new URL(`${c}/v2/player/${y}/balance`),h=new Headers;h.append("X-SessionID",u),fetch(o,{method:"GET",headers:h}).then(w=>w.json()).then(w=>{w[T]||n(14,T=Te[0]);const O=w.items.find(d=>d.type==="Real"&&d.walletAccountType==="Ordinary");if(se=O.currency,U=!!O.productType,n(3,s.Total=[{amount:0}],s),n(3,s.Real=[],s),n(3,s.Bonus=[],s),n(3,s.Credit=[],s),!U){$={lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},n(3,s.Total[0].amount=w[T][se],s);for(const d of w.items)switch(d.type){case"Bonus":s.Bonus.length===0?s.Bonus.push({amount:d.amount}):n(3,s.Bonus[0].amount+=d.amount,s);break;case"Real":if(d.creditLine&&s.Credit.length===0&&s.Credit.push({amount:d.creditLine}),T==="totalRealAmount")continue;s.Real.length===0?s.Real.push({amount:d.amount}):n(3,s.Real[0].amount+=d.amount,s);break;case"RealNegativeRemainder":if(d.type==="RealNegativeRemainder"&&G!=="true"||(d.creditLine&&s.Credit.length===0&&s.Credit.push({amount:d.creditLine}),T==="totalRealAmount"))continue;s.Real.length===0?s.Real.push({amount:d.amount}):n(3,s.Real[0].amount+=d.amount,s);break}for(const[d,E]of Object.entries(s))E.length<1&&delete s[d];n(4,D=!1);return}$={Casino:{lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},Sports:{lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1}};let x=w.items;C&&C!=="All"&&(x=w.items.filter(d=>d.productType===C));for(const d of x){let E;switch(d.type){case"Bonus":E=s.Bonus.findIndex(ne=>ne.productType===d.productType),E>0?n(3,s.Bonus[E].amount+=d.amount,s):s.Bonus.push({amount:d.amount,productType:d.productType});break;case"Real":d.creditLine&&s.Credit.push({amount:d.creditLine,productType:d.productType}),E=s.Real.findIndex(ne=>ne.productType===d.productType),E>0?n(3,s.Real[E].amount+=d.amount,s):s.Real.push({amount:d.amount,productType:d.productType});break;case"RealNegativeRemainder":if(d.type==="RealNegativeRemainder"&&G!=="true")continue;d.creditLine&&s.Credit.push({amount:d.creditLine,productType:d.productType}),E=s.Real.findIndex(ne=>ne.productType===d.productType),E>=0?n(3,s.Real[E].amount+=d.amount,s):s.Real.push({amount:d.amount,productType:d.productType});break}}Me();for(const[d,E]of Object.entries(s))E.length<1&&delete s[d];window.postMessage({type:"playerBalanceInfo",balance:w},window.location.href),n(4,D=!1)}).catch(w=>{throw n(4,D=!1),console.log("Balance fetch error",w),new Error("Failed to fetch balance data!")})},Q=()=>{if(te&&te.close(),u.length<1)return;let o,h;switch(z){case"gm16":o=new URL(`${c}/v2/player/${y}/information/updates`),h=O=>a(O);break;case"gmcore":o=new URL(`${c}/v1/player/${y}/balance/updates`),h=O=>Fe(O);break}const g={accept:"text/event-stream","X-SessionId":u},w=new lt.EventSourcePolyfill(o,{headers:g});te=w,w.addEventListener("message",h)},De=o=>{let h;try{h=JSON.parse(o)}catch(g){console.log("Balance stream failed: ",g);return}return h},Fe=o=>{var O,x;const h=De(o.data);if(!h){Q();return}let g="0";const w=h.balanceChange;le=le.map(d=>(w&&w[d.id]&&(d=Pe(Ue({},d),{balanceAmount:w[d.id].afterAmount})),g=(parseFloat(d==null?void 0:d.balanceAmount)+parseFloat(g)).toString(),d)),n(3,s.Real=[{amount:(O=le[0])==null?void 0:O.balanceAmount}],s),n(3,s.Bonus=[{amount:(x=le[1])==null?void 0:x.balanceAmount}],s),n(3,s.Total=[{amount:Number(g)}],s)},ke=(o,h,g)=>{let w=null;switch(g.walletAccountType){case"Ordinary":(g.afterAmount!==g.affectedAmount||h.lastOrdinaryAfterAmount===0)&&(h.lastOrdinaryAfterAmount=g.afterAmount,h.showCreditLineAfterAmount||(w=g.afterAmount));break;case"CreditLine":g.afterAmount!==0?(w=g.afterAmount,h.showCreditLineAfterAmount=!0):(w=h.lastOrdinaryAfterAmount,h.showCreditLineAfterAmount=!1);break;default:w=g.afterAmount}return w===null?o:w},Me=()=>{switch(T){case"totalCashAmount":let o=0;for(const g of["Real","Bonus"])for(const w of s[g])G==="true"?o+=w.amount:o+=Math.max(w.amount,0);n(3,s.Total[0].amount=o,s);break;case"totalRealAmount":if(!U)return;let h=0;for(const g of s.Real)h+=g.amount;n(3,s.Total[0].amount=h,s)}},a=o=>{const h=De(o.data);if(!h){Q();return}if(p(h==null?void 0:h.type)||h.type!=="BALANCE_UPDATE_V2")return;const g=h.body.balanceChange;for(const[w,O]of Object.entries(g))if(T==="totalRealAmount"&&w==="Real"&&!U&&n(3,s.Total[0].amount=ke(s.Total[0].amount,$,O),s),!!s[w])for(const x of s[w]){if(!U){x.amount=w==="Real"?ke(x.amount,$,O):O.afterAmount;continue}O.productType===x.productType&&(x.amount=w==="Real"?ke(x.amount,$[x.productType],O):O.afterAmount)}Me()},r=o=>{switch(be("closebalance"),o){case"deposit":window.postMessage({type:"GoToDeposit"},window.location.href);break;case"limits":window.postMessage({type:"GoToLimits"},window.location.href);break;case"activebonuses":window.postMessage({type:"GoToActiveBonuses"},window.location.href);break}typeof gtag=="function"&&gtag("event","GoToDeposit",{context:"PlayerAccountBalanceModal"})},p=o=>o==="SESSION_EXPIRATION"?(window.postMessage({type:"SessionExpiration"},window.location.href),!0):!1,l=()=>{Te.includes(T)||(console.error(`Unsupported value ('${T}') for totalcalculationmode parameter. Only the following values are supported ${Te}. Using default value ('${Te[0]}').`),n(14,T=Te[0]))},S=()=>{switch(st(B),l(),z){case"gmcore":Ee();break;case"gm16":we();break;default:throw Error(`Invalid apiversion attribute: ${z}`)}},v=o=>{const{data:{type:h}={}}=o||{};switch(h){case"LogoutSuccessfull":te.close();break;case"CloseBalance":be("closebalance");break}},_=()=>{window.postMessage({type:"UpdateBalanceBackground"},window.location.href)},I=o=>{const h=Be.split(",").map(g=>g.trim());return!o.productType||h.includes(o.productType)?"":m(o.productType)};e.onMount(()=>(window.addEventListener("message",v,!1),n(7,ge=e.isMobile(pe)),()=>{window.removeEventListener("message",v),te&&te.close()}));const R=()=>be("balance"),M=()=>be("closebalance"),F=()=>r("deposit"),A=()=>r("limits"),j=()=>r("activebonuses"),ue=()=>be("closebalance");function Se(o){e.binding_callbacks[o?"unshift":"push"](()=>{k=o,n(2,k)})}return i.$$set=o=>{"userid"in o&&n(15,y=o.userid),"session"in o&&n(16,u=o.session),"endpoint"in o&&n(17,c=o.endpoint),"lang"in o&&n(18,B=o.lang),"mbsource"in o&&n(19,f=o.mbsource),"clientstyling"in o&&n(20,b=o.clientstyling),"clientstylingurl"in o&&n(21,N=o.clientstylingurl),"translationurl"in o&&n(22,P=o.translationurl),"gmversion"in o&&n(23,z=o.gmversion),"displaybalanceoption"in o&&n(24,C=o.displaybalanceoption),"totalcalculationmode"in o&&n(14,T=o.totalcalculationmode),"primarybalancemode"in o&&n(25,V=o.primarybalancemode),"balancelimitsbutton"in o&&n(0,he=o.balancelimitsbutton),"activebonusesbutton"in o&&n(1,me=o.activebonusesbutton),"hideproducttype"in o&&n(26,Be=o.hideproducttype),"shownegativebalance"in o&&n(27,G=o.shownegativebalance),"currencylocale"in o&&n(28,Y=o.currencylocale),"currencydisplay"in o&&n(29,ce=o.currencydisplay),"maximumfractiondigits"in o&&n(30,J=o.maximumfractiondigits),"minimumfractiondigits"in o&&n(31,re=o.minimumfractiondigits),"customdisplayformat"in o&&n(32,fe=o.customdisplayformat),"alwaysshowdecimals"in o&&n(33,ee=o.alwaysshowdecimals)},i.$$.update=()=>{i.$$.dirty[0]&25657344&&c&&y&&u&&B&&z&&C&&S(),i.$$.dirty[0]&8617984&&c&&y&&u&&z&&Q(),i.$$.dirty[0]&4194304&&P&&Ne(),i.$$.dirty[0]&8&&s.Total&&_(),i.$$.dirty[0]&1048580&&b&&k&&e.setClientStyling(k,b),i.$$.dirty[0]&2097156&&N&&k&&e.setClientStylingURL(k,N),i.$$.dirty[0]&524292&&f&&k&&e.setStreamStyling(k,`${f}.Style`,X),i.$$.dirty[0]&33554440&&n(8,Ae=(()=>{switch(V){case"Real":return s.Real?Le(s.Real[0].amount):"0";default:return s.Total?Le(s.Total[0].amount):"0"}})())},[he,me,k,s,D,L,H,ge,Ae,m,be,Le,r,I,T,y,u,c,B,f,b,N,P,z,C,V,Be,G,Y,ce,J,re,fe,ee,R,M,F,A,j,ue,Se]}class tt extends e.SvelteComponent{constructor(t){super(),e.init(this,t,pt,ft,e.safe_not_equal,{userid:15,session:16,endpoint:17,lang:18,mbsource:19,clientstyling:20,clientstylingurl:21,translationurl:22,gmversion:23,displaybalanceoption:24,totalcalculationmode:14,primarybalancemode:25,balancelimitsbutton:0,activebonusesbutton:1,hideproducttype:26,shownegativebalance:27,currencylocale:28,currencydisplay:29,maximumfractiondigits:30,minimumfractiondigits:31,customdisplayformat:32,alwaysshowdecimals:33},ct,[-1,-1,-1])}get userid(){return this.$$.ctx[15]}set userid(t){this.$$set({userid:t}),e.flush()}get session(){return this.$$.ctx[16]}set session(t){this.$$set({session:t}),e.flush()}get endpoint(){return this.$$.ctx[17]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get lang(){return this.$$.ctx[18]}set lang(t){this.$$set({lang:t}),e.flush()}get mbsource(){return this.$$.ctx[19]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get clientstyling(){return this.$$.ctx[20]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[21]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[22]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get gmversion(){return this.$$.ctx[23]}set gmversion(t){this.$$set({gmversion:t}),e.flush()}get displaybalanceoption(){return this.$$.ctx[24]}set displaybalanceoption(t){this.$$set({displaybalanceoption:t}),e.flush()}get totalcalculationmode(){return this.$$.ctx[14]}set totalcalculationmode(t){this.$$set({totalcalculationmode:t}),e.flush()}get primarybalancemode(){return this.$$.ctx[25]}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 activebonusesbutton(){return this.$$.ctx[1]}set activebonusesbutton(t){this.$$set({activebonusesbutton:t}),e.flush()}get hideproducttype(){return this.$$.ctx[26]}set hideproducttype(t){this.$$set({hideproducttype:t}),e.flush()}get shownegativebalance(){return this.$$.ctx[27]}set shownegativebalance(t){this.$$set({shownegativebalance:t}),e.flush()}get currencylocale(){return this.$$.ctx[28]}set currencylocale(t){this.$$set({currencylocale:t}),e.flush()}get currencydisplay(){return this.$$.ctx[29]}set currencydisplay(t){this.$$set({currencydisplay:t}),e.flush()}get maximumfractiondigits(){return this.$$.ctx[30]}set maximumfractiondigits(t){this.$$set({maximumfractiondigits:t}),e.flush()}get minimumfractiondigits(){return this.$$.ctx[31]}set minimumfractiondigits(t){this.$$set({minimumfractiondigits:t}),e.flush()}get customdisplayformat(){return this.$$.ctx[32]}set customdisplayformat(t){this.$$set({customdisplayformat:t}),e.flush()}get alwaysshowdecimals(){return this.$$.ctx[33]}set alwaysshowdecimals(t){this.$$set({alwaysshowdecimals:t}),e.flush()}}e.create_custom_element(tt,{userid:{},session:{},endpoint:{},lang:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},gmversion:{},displaybalanceoption:{},totalcalculationmode:{},primarybalancemode:{},balancelimitsbutton:{},activebonusesbutton:{},hideproducttype:{},shownegativebalance:{},currencylocale:{},currencydisplay:{},maximumfractiondigits:{},minimumfractiondigits:{},customdisplayformat:{},alwaysshowdecimals:{}},[],[],!0);exports.default=tt;
@@ -1,4 +1,4 @@
1
- import { a as V, $ as X, S as Z, i as J, s as $, f as y, b as ee, A, d as S, B as L, W as P, h as T, u as h, j as M, w as E, D as C, r as u, k as te, l as ie, I as se, o as ae, v as re, O as k, z as ne, K as W, Q as oe, R as le, T as ce, U as ue } from "./CasinoHeaderControllerNd-C3_zgH0i.js";
1
+ import { a as V, $ as X, S as Z, i as J, s as $, f as y, b as ee, A, d as S, B as L, W as P, h as T, u as h, j as M, w as E, D as C, r as u, k as te, l as ie, I as se, o as ae, v as re, O as k, z as ne, K as W, Q as oe, R as le, T as ce, U as ue } from "./CasinoHeaderControllerNd-DwjT7tNR.js";
2
2
  function F(s, e) {
3
3
  V(s, e);
4
4
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHeaderControllerNd-jRVeL-3S.cjs");function T(n,t){e.addMessages(n,t)}function A(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 F(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 H(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 W(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 G(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 N(n){let t,a,o,r=n[4]("titleDeposit")+"",c,m,d=n[5]&&H(n);function p(s,u){return s[1]?G:W}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 q(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,B,_=0,C="";const P=()=>{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}}},j=()=>{let i=new URL(`${c}/v1/player/${d}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);if(i.searchParams.append("language",p),o&&i.searchParams.append("isShortCashier",g),f)switch(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)})},I=()=>{A(p)};e.onMount(()=>(window.addEventListener("message",x,!1),()=>{window.removeEventListener("message",x)}));const U=()=>S();function z(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&&I(),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`,B),n.$$.dirty&32768&&u&&P(),n.$$.dirty&135040&&m&&d&&c&&y&&p&&g&&j()},[h,M,k,C,r,v,S,y,c,m,d,p,f,l,s,u,D,g,U,z]}class L extends e.SvelteComponent{constructor(t){super(),e.init(this,t,q,N,e.safe_not_equal,{endpoint:8,session:9,playerid:10,lang:11,hasdefaultamount:12,clientstyling:13,clientstylingurl:14,translationurl:15,currency:7,mbsource:16,shortcashierenabled:17},F)}get endpoint(){return this.$$.ctx[8]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[9]}set session(t){this.$$set({session:t}),e.flush()}get playerid(){return this.$$.ctx[10]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[11]}set lang(t){this.$$set({lang:t}),e.flush()}get hasdefaultamount(){return this.$$.ctx[12]}set hasdefaultamount(t){this.$$set({hasdefaultamount:t}),e.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get currency(){return this.$$.ctx[7]}set currency(t){this.$$set({currency:t}),e.flush()}get mbsource(){return this.$$.ctx[16]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get shortcashierenabled(){return this.$$.ctx[17]}set shortcashierenabled(t){this.$$set({shortcashierenabled:t}),e.flush()}}e.create_custom_element(L,{endpoint:{},session:{},playerid:{},lang:{},hasdefaultamount:{},clientstyling:{},clientstylingurl:{},translationurl:{},currency:{},mbsource:{},shortcashierenabled:{}},[],[],!0);exports.default=L;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHeaderControllerNd-BWivTr9J.cjs");function T(n,t){e.addMessages(n,t)}function A(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 F(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 H(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 W(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 G(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 N(n){let t,a,o,r=n[4]("titleDeposit")+"",c,m,d=n[5]&&H(n);function p(s,u){return s[1]?G:W}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 q(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,B,_=0,C="";const P=()=>{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}}},j=()=>{let i=new URL(`${c}/v1/player/${d}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);if(i.searchParams.append("language",p),o&&i.searchParams.append("isShortCashier",g),f)switch(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)})},I=()=>{A(p)};e.onMount(()=>(window.addEventListener("message",x,!1),()=>{window.removeEventListener("message",x)}));const U=()=>S();function z(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&&I(),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`,B),n.$$.dirty&32768&&u&&P(),n.$$.dirty&135040&&m&&d&&c&&y&&p&&g&&j()},[h,M,k,C,r,v,S,y,c,m,d,p,f,l,s,u,D,g,U,z]}class L extends e.SvelteComponent{constructor(t){super(),e.init(this,t,q,N,e.safe_not_equal,{endpoint:8,session:9,playerid:10,lang:11,hasdefaultamount:12,clientstyling:13,clientstylingurl:14,translationurl:15,currency:7,mbsource:16,shortcashierenabled:17},F)}get endpoint(){return this.$$.ctx[8]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[9]}set session(t){this.$$set({session:t}),e.flush()}get playerid(){return this.$$.ctx[10]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[11]}set lang(t){this.$$set({lang:t}),e.flush()}get hasdefaultamount(){return this.$$.ctx[12]}set hasdefaultamount(t){this.$$set({hasdefaultamount:t}),e.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get currency(){return this.$$.ctx[7]}set currency(t){this.$$set({currency:t}),e.flush()}get mbsource(){return this.$$.ctx[16]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get shortcashierenabled(){return this.$$.ctx[17]}set shortcashierenabled(t){this.$$set({shortcashierenabled:t}),e.flush()}}e.create_custom_element(L,{endpoint:{},session:{},playerid:{},lang:{},hasdefaultamount:{},clientstyling:{},clientstylingurl:{},translationurl:{},currency:{},mbsource:{},shortcashierenabled:{}},[],[],!0);exports.default=L;
@@ -1,4 +1,4 @@
1
- import { a as X, $ as Z, S as J, i as K, s as $, f as y, b as ee, z as A, d as S, A as L, V as U, h as T, r as h, j as M, v as E, B as C, q as u, k as te, G as ie, o as se, u as ae, M as k, y as re, I as F, O as ne, P as oe, Q as le, R as ce, T as ue } from "./CasinoHeaderControllerNd-KJVxZm0e.js";
1
+ import { a as X, $ as Z, S as J, i as K, s as $, f as y, b as ee, z as A, d as S, A as L, V as U, h as T, r as h, j as M, v as E, B as C, q as u, k as te, G as ie, o as se, u as ae, M as k, y as re, I as F, O as ne, P as oe, Q as le, R as ce, T as ue } from "./CasinoHeaderControllerNd-BNDsJ0W8.js";
2
2
  function W(s, e) {
3
3
  X(s, e);
4
4
  }
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoHeaderControllerNd-jRVeL-3S.cjs")).then(e=>e.CasinoHeaderControllerNd_ce).then(({default:e})=>{!customElements.get("casino-header-controller-nd")&&customElements.define("casino-header-controller-nd",e.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoHeaderControllerNd-BWivTr9J.cjs")).then(e=>e.CasinoHeaderControllerNd_ce).then(({default:e})=>{!customElements.get("casino-header-controller-nd")&&customElements.define("casino-header-controller-nd",e.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CasinoHeaderControllerNd-KJVxZm0e.js").then((e) => e.W).then(({ default: e }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoHeaderControllerNd-BNDsJ0W8.js").then((e) => e.W).then(({ default: e }) => {
14
14
  !customElements.get("casino-header-controller-nd") && customElements.define("casino-header-controller-nd", e.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { C as s } from "../components/CasinoHeaderControllerNd-C3_zgH0i.js";
1
+ import { C as s } from "../components/CasinoHeaderControllerNd-DwjT7tNR.js";
2
2
  function r(t) {
3
3
  return function(...n) {
4
4
  try {
@@ -10,7 +10,7 @@ if (typeof window < "u") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CasinoHamburgerMenuNd-B4QZvkD8.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoHamburgerMenuNd-Ctin9D1n.js").then(({ default: t }) => {
14
14
  !customElements.get("casino-hamburger-menu-nd") && customElements.define("casino-hamburger-menu-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/CasinoHamburgerMenuNd-v83ac_-t.cjs")).then(({default:t})=>{!customElements.get("casino-hamburger-menu-nd")&&customElements.define("casino-hamburger-menu-nd",t.element)})}
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/CasinoHamburgerMenuNd-Dy_ZPbVP.cjs")).then(({default:t})=>{!customElements.get("casino-hamburger-menu-nd")&&customElements.define("casino-hamburger-menu-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/CasinoHamburgerMenuNd-C20WARcb.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoHamburgerMenuNd-C3GWQXmv.js").then(({ default: t }) => {
14
14
  !customElements.get("casino-hamburger-menu-nd") && customElements.define("casino-hamburger-menu-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/PlayerAccountBalanceModalNd-BiI31wNU.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/PlayerAccountBalanceModalNd-BcX135Ha.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 < "u") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/PlayerAccountBalanceModalNd-Dn8PgMqD.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/PlayerAccountBalanceModalNd-DpqQtYYT.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-DMdVVQbM.cjs")).then(({default:t})=>{!customElements.get("player-account-balance-modal-nd")&&customElements.define("player-account-balance-modal-nd",t.element)})}
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-yZ9YD5yq.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/PlayerDeposit-C9ll9_Aq.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/PlayerDeposit-UutKx0XP.js").then(({ default: t }) => {
14
14
  !customElements.get("player-deposit") && customElements.define("player-deposit", t.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/PlayerDeposit-D_tZ1EkN.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/PlayerDeposit-Bh1FyHgv.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-L-iPr4Nc.cjs")).then(({default:t})=>{!customElements.get("player-deposit")&&customElements.define("player-deposit",t.element)})}
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-CYF8aGub.cjs")).then(({default:t})=>{!customElements.get("player-deposit")&&customElements.define("player-deposit",t.element)})}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-header-controller-nd",
3
- "version": "1.89.0",
3
+ "version": "1.89.2",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-header-controller-nd.cjs",
6
6
  "module": "esnext/casino-header-controller-nd.js",