@everymatrix/casino-header-controller-nd 1.54.4 → 1.54.8

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 (39) hide show
  1. package/components/{CasinoHamburgerMenuNd-CkPg6ouB.js → CasinoHamburgerMenuNd-BN4YipjD.js} +829 -837
  2. package/components/CasinoHamburgerMenuNd-BRXAq9EB.js +5463 -0
  3. package/components/CasinoHamburgerMenuNd-DWivJdEW.cjs +5 -0
  4. package/components/CasinoHeaderControllerNd-Bcge1xWm.cjs +1 -0
  5. package/components/{CasinoHeaderControllerNd-BX0AvD48.js → CasinoHeaderControllerNd-DB6p0pM9.js} +85 -85
  6. package/components/CasinoHeaderControllerNd-y-KHL_bQ.js +2168 -0
  7. package/components/{PlayerAccountBalanceModalNd-K5u0ko-m.js → PlayerAccountBalanceModalNd-Cx1wys48.js} +93 -93
  8. package/components/PlayerAccountBalanceModalNd-DijTlCAM.js +1586 -0
  9. package/components/PlayerAccountBalanceModalNd-LPAeUZ5O.cjs +13 -0
  10. package/components/{PlayerDeposit-DsOspOgB.js → PlayerDeposit-DJtyV372.js} +46 -46
  11. package/components/PlayerDeposit-Dlc74zh3.js +395 -0
  12. package/components/PlayerDeposit-oYFoY9mr.cjs +1 -0
  13. package/es2015/casino-header-controller-nd.cjs +1 -0
  14. package/es2015/casino-header-controller-nd.js +16 -0
  15. package/esnext/casino-header-controller-nd.js +1 -1
  16. package/package.json +4 -1
  17. package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
  18. package/stencil/{gamification-dropdown-Rl66gqyp.js → gamification-dropdown-DSXwe6wL.js} +1 -1
  19. package/stencil/gamification-dropdown-DXwjfRK6.js +25 -0
  20. package/stencil/gamification-dropdown-DxQYaq9A.cjs +1 -0
  21. package/stencil/gamification-dropdown-dc081799-DhEx3oAW.js +121 -0
  22. package/stencil/{gamification-dropdown-ae7b7c69-C61VnAKy.js → gamification-dropdown-dc081799-DwwONu50.js} +1 -1
  23. package/stencil/gamification-dropdown-dc081799-grwre2mR.cjs +1 -0
  24. package/stencil/gamification-dropdown_4-DMyo0Cai.js +468 -0
  25. package/stencil/gamification-dropdown_4-Js76nmRP.cjs +192 -0
  26. package/stencil/{gamification-dropdown_4-AbKMnPZ5.js → gamification-dropdown_4-xIuhYShe.js} +3 -3
  27. package/stencil/index-5e36ea65-BYsPysDo.cjs +1 -0
  28. package/stencil/index-5e36ea65-COdY7Qod.js +859 -0
  29. package/stencil/index-5e36ea65-DT7tZRpo.js +832 -0
  30. package/stencil/{player-elevate-card-B4AMnqub.js → player-elevate-card-BcvihY18.js} +2 -2
  31. package/stencil/player-elevate-card-Ci_xja9l.js +105 -0
  32. package/stencil/player-elevate-card-DOMKpcd1.cjs +64 -0
  33. package/stencil/player-elevate-card-items-2a1dc5b5-B3hUJxjm.cjs +1 -0
  34. package/stencil/{player-elevate-card-items-9d490a3b-BxciIvXh.js → player-elevate-card-items-2a1dc5b5-R0FZQK7I.js} +1 -3
  35. package/stencil/player-elevate-card-items-2a1dc5b5-e_chraGM.js +1439 -0
  36. package/stencil/{player-elevate-pointcard-BeXukLE-.js → player-elevate-pointcard-BLdrrwJF.js} +2 -2
  37. package/stencil/player-elevate-pointcard-CZiVmETE.js +43 -0
  38. package/stencil/player-elevate-pointcard-DdN-6RUK.cjs +1 -0
  39. package/stencil/index-ea7720e4-FqoOOnHW.js +0 -826
@@ -0,0 +1,13 @@
1
+ "use strict";var at=Object.defineProperty,ot=Object.defineProperties;var rt=Object.getOwnPropertyDescriptors;var He=Object.getOwnPropertySymbols;var it=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable;var ze=(r,t,n)=>t in r?at(r,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[t]=n,Ue=(r,t)=>{for(var n in t||(t={}))it.call(t,n)&&ze(r,n,t[n]);if(He)for(var n of He(t))lt.call(t,n)&&ze(r,n,t[n]);return r},Pe=(r,t)=>ot(r,rt(t));var Xe=(r,t,n)=>new Promise((s,f)=>{var u=y=>{try{m(n.next(y))}catch(w){f(w)}},g=y=>{try{m(n.throw(y))}catch(w){f(w)}},m=y=>y.done?s(y.value):Promise.resolve(y.value).then(u,g);m((n=n.apply(r,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHamburgerMenuNd-DWivJdEW.cjs");function Ge(r,t){e.addMessages(r,t)}function st(r){e.$locale.set(r)}const qe={en:{Title:"Your Balance",Total:"Total Balance",Real:"Cash Balance",Bonus:"Bonus Balance",Credit:"Credit Balance",Casino:"Casino",Sports:"Sports",DepositButton:"Deposit",Loading:"Loading ..."},"zh-hk":{Title:"您的結餘",Total:"總結餘",Real:"現金結餘",Bonus:"紅利結餘",Credit:"信用結餘",Casino:"賭場",Sports:"體育",DepositButton:"存款",Loading:"載入中 ..."},de:{Title:"Ihr Guthaben",Total:"Gesamtguthaben",Real:"Barguthaben",Bonus:"Bonusguthaben",Credit:"Kreditguthaben",Casino:"Casino",Sports:"Sport",DepositButton:"Einzahlen",Loading:"Wird geladen ..."},it:{Title:"Il tuo saldo",Total:"Saldo totale",Real:"Saldo in contanti",Bonus:"Saldo bonus",Credit:"Saldo di credito",Casino:"Casinò",Sports:"Sport",DepositButton:"Deposita",Loading:"Caricamento ..."},fr:{Title:"Votre solde",Total:"Solde total",Real:"Solde en espèces",Bonus:"Solde bonus",Credit:"Solde de crédit",Casino:"Casino",Sports:"Sports",DepositButton:"Dépôt",Loading:"Chargement ..."},es:{Title:"Tu saldo",Total:"Saldo total",Real:"Saldo en efectivo",Bonus:"Saldo de bono",Credit:"Saldo de crédito",Casino:"Casino",Sports:"Deportes",DepositButton:"Depósito",Loading:"Cargando ..."},tr:{Title:"Bakiyeniz",Total:"Toplam Bakiye",Real:"Nakit Bakiye",Bonus:"Bonus Bakiyesi",Credit:"Kredi Bakiyesi",Casino:"Kumarhane",Sports:"Spor",DepositButton:"Yatır",Loading:"Yükleniyor ..."},ru:{Title:"Ваш баланс",Total:"Общий баланс",Real:"Денежный баланс",Bonus:"Бонусный баланс",Credit:"Кредитный баланс",Casino:"Казино",Sports:"Спорт",DepositButton:"Депозит",Loading:"Загружается ..."},ro:{Title:"Soldul tău",Total:"Sold total",Real:"Sold în numerar",Bonus:"Sold bonus",Credit:"Sold credit",Casino:"Cazinou",Sports:"Sporturi",DepositButton:"Depozit",Loading:"Se încarcă ..."},hr:{Title:"Vaš saldo",Total:"Ukupni saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Casino",Sports:"Sportovi",DepositButton:"Depozit",Loading:"Učitavanje ..."},hu:{Title:"Az egyenleged",Total:"Teljes egyenleg",Real:"Készpénz egyenleg",Bonus:"Bónusz egyenleg",Credit:"Hitel egyenleg",Casino:"Kaszinó",Sports:"Sport",DepositButton:"Befizetés",Loading:"Betöltés ..."},pl:{Title:"Twoje saldo",Total:"Całkowite saldo",Real:"Saldo gotówkowe",Bonus:"Saldo bonusowe",Credit:"Saldo kredytowe",Casino:"Kasyno",Sports:"Sport",DepositButton:"Wpłać",Loading:"Ładowanie ..."},pt:{Title:"Seu Saldo",Total:"Saldo Total",Real:"Saldo em Dinheiro",Bonus:"Saldo de Bônus",Credit:"Saldo de Crédito",Casino:"Cassino",Sports:"Esportes",DepositButton:"Depositar",Loading:"Carregando ..."},sl:{Title:"Vaš saldo",Total:"Skupni saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Kasino",Sports:"Šport",DepositButton:"Depozit",Loading:"Nalaganje ..."},sr:{Title:"Vaš saldo",Total:"Ukupan saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Kasino",Sports:"Sport",DepositButton:"Depozit",Loading:"Učitavanje ..."},"pt-br":{Title:"Seu Saldo",Total:"Saldo Total",Real:"Saldo em Dinheiro",Bonus:"Saldo de Bônus",Credit:"Saldo de Crédito",Casino:"Cassino",Sports:"Esportes",DepositButton:"Depositar",Loading:"Carregando ..."},"es-mx":{Title:"Tu saldo",Total:"Saldo total",Real:"Saldo en efectivo",Bonus:"Saldo de bono",Credit:"Saldo de crédito",Casino:"Casino",Sports:"Deportes",DepositButton:"Depósito",Loading:"Cargando ..."},"en-us":{Title:"Your Balance",Total:"Total Balance",Real:"Cash Balance",Bonus:"Bonus Balance",Credit:"Credit Balance",Casino:"Casino",Sports:"Sports",DepositButton:"Deposit",Loading:"Loading ..."}};var Ie={exports:{}};/** @license
2
+ * eventsource.js
3
+ * Available under MIT License (MIT)
4
+ * https://github.com/Yaffle/EventSource/
5
+ */(function(r,t){(function(n){var s=n.setTimeout,f=n.clearTimeout,u=n.XMLHttpRequest,g=n.XDomainRequest,m=n.ActiveXObject,y=n.EventSource,w=n.document,A=n.Promise,D=n.fetch,E=n.Response,k=n.TextDecoder,R=n.TextEncoder,I=n.AbortController;if(typeof window!="undefined"&&typeof w!="undefined"&&!("readyState"in w)&&w.body==null&&(w.readyState="loading",window.addEventListener("load",function(o){w.readyState="complete"},!1)),u==null&&m!=null&&(u=function(){return new m("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(o){function a(){}return a.prototype=o,new a}),Date.now||(Date.now=function(){return new Date().getTime()}),I==null){var T=D;D=function(o,a){var l=a.signal;return T(o,{headers:a.headers,credentials:a.credentials,cache:a.cache}).then(function(i){var d=i.body.getReader();return l._reader=d,l._aborted&&l._reader.cancel(),{status:i.status,statusText:i.statusText,headers:i.headers,body:{getReader:function(){return d}}}})},I=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function C(){this.bitsNeeded=0,this.codePoint=0}C.prototype.decode=function(o){function a(S,M,B){if(B===1)return S>=128>>M&&S<<M<=2047;if(B===2)return S>=2048>>M&&S<<M<=55295||S>=57344>>M&&S<<M<=65535;if(B===3)return S>=65536>>M&&S<<M<=1114111;throw new Error}function l(S,M){if(S===6*1)return M>>6>15?3:M>31?2:1;if(S===6*2)return M>15?3:2;if(S===6*3)return 3;throw new Error}for(var i=65533,d="",p=this.bitsNeeded,v=this.codePoint,h=0;h<o.length;h+=1){var b=o[h];p!==0&&(b<128||b>191||!a(v<<6|b&63,p-6,l(p,v)))&&(p=0,v=i,d+=String.fromCharCode(v)),p===0?(b>=0&&b<=127?(p=0,v=b):b>=192&&b<=223?(p=6*1,v=b&31):b>=224&&b<=239?(p=6*2,v=b&15):b>=240&&b<=247?(p=6*3,v=b&7):(p=0,v=i),p!==0&&!a(v,p,l(p,v))&&(p=0,v=i)):(p-=6,v=v<<6|b&63),p===0&&(v<=65535?d+=String.fromCharCode(v):(d+=String.fromCharCode(55296+(v-65535-1>>10)),d+=String.fromCharCode(56320+(v-65535-1&1023))))}return this.bitsNeeded=p,this.codePoint=v,d};var L=function(){try{return new k().decode(new R().encode("test"),{stream:!0})==="test"}catch(o){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+o)}return!1};(k==null||R==null||!L())&&(k=C);var O=function(){};function z(o){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=O,this.onload=O,this.onerror=O,this.onreadystatechange=O,this._contentType="",this._xhr=o,this._sendTimeout=0,this._abort=O}z.prototype.open=function(o,a){this._abort(!0);var l=this,i=this._xhr,d=1,p=0;this._abort=function(B){l._sendTimeout!==0&&(f(l._sendTimeout),l._sendTimeout=0),(d===1||d===2||d===3)&&(d=4,i.onload=O,i.onerror=O,i.onabort=O,i.onprogress=O,i.onreadystatechange=O,i.abort(),p!==0&&(f(p),p=0),B||(l.readyState=4,l.onabort(null),l.onreadystatechange())),d=0};var v=function(){if(d===1){var B=0,F="",re=void 0;if("contentType"in i)B=200,F="OK",re=i.contentType;else try{B=i.status,F=i.statusText,re=i.getResponseHeader("Content-Type")}catch(Be){B=0,F="",re=void 0}B!==0&&(d=2,l.readyState=2,l.status=B,l.statusText=F,l._contentType=re,l.onreadystatechange())}},h=function(){if(v(),d===2||d===3){d=3;var B="";try{B=i.responseText}catch(F){}l.readyState=3,l.responseText=B,l.onprogress()}},b=function(B,F){if((F==null||F.preventDefault==null)&&(F={preventDefault:O}),h(),d===1||d===2||d===3){if(d=4,p!==0&&(f(p),p=0),l.readyState=4,B==="load")l.onload(F);else if(B==="error")l.onerror(F);else if(B==="abort")l.onabort(F);else throw new TypeError;l.onreadystatechange()}},S=function(B){i!=null&&(i.readyState===4?(!("onload"in i)||!("onerror"in i)||!("onabort"in i))&&b(i.responseText===""?"error":"load",B):i.readyState===3?"onprogress"in i||h():i.readyState===2&&v())},M=function(){p=s(function(){M()},500),i.readyState===3&&h()};"onload"in i&&(i.onload=function(B){b("load",B)}),"onerror"in i&&(i.onerror=function(B){b("error",B)}),"onabort"in i&&(i.onabort=function(B){b("abort",B)}),"onprogress"in i&&(i.onprogress=h),"onreadystatechange"in i&&(i.onreadystatechange=function(B){S(B)}),("contentType"in i||!("ontimeout"in u.prototype))&&(a+=(a.indexOf("?")===-1?"?":"&")+"padding=true"),i.open(o,a,!0),"readyState"in i&&(p=s(function(){M()},0))},z.prototype.abort=function(){this._abort(!1)},z.prototype.getResponseHeader=function(o){return this._contentType},z.prototype.setRequestHeader=function(o,a){var l=this._xhr;"setRequestHeader"in l&&l.setRequestHeader(o,a)},z.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},z.prototype.send=function(){if((!("ontimeout"in u.prototype)||!("sendAsBinary"in u.prototype)&&!("mozAnon"in u.prototype))&&w!=null&&w.readyState!=null&&w.readyState!=="complete"){var o=this;o._sendTimeout=s(function(){o._sendTimeout=0,o.send()},4);return}var a=this._xhr;"withCredentials"in a&&(a.withCredentials=this.withCredentials);try{a.send(void 0)}catch(l){throw l}};function K(o){return o.replace(/[A-Z]/g,function(a){return String.fromCharCode(a.charCodeAt(0)+32)})}function ne(o){for(var a=Object.create(null),l=o.split(`\r
6
+ `),i=0;i<l.length;i+=1){var d=l[i],p=d.split(": "),v=p.shift(),h=p.join(": ");a[K(v)]=h}this._map=a}ne.prototype.get=function(o){return this._map[K(o)]},u!=null&&u.HEADERS_RECEIVED==null&&(u.HEADERS_RECEIVED=2);function U(){}U.prototype.open=function(o,a,l,i,d,p,v){o.open("GET",d);var h=0;o.onprogress=function(){var S=o.responseText,M=S.slice(h);h+=M.length,l(M)},o.onerror=function(S){S.preventDefault(),i(new Error("NetworkError"))},o.onload=function(){i(null)},o.onabort=function(){i(null)},o.onreadystatechange=function(){if(o.readyState===u.HEADERS_RECEIVED){var S=o.status,M=o.statusText,B=o.getResponseHeader("Content-Type"),F=o.getAllResponseHeaders();a(S,M,B,new ne(F))}},o.withCredentials=p;for(var b in v)Object.prototype.hasOwnProperty.call(v,b)&&o.setRequestHeader(b,v[b]);return o.send(),o};function x(o){this._headers=o}x.prototype.get=function(o){return this._headers.get(o)};function _(){}_.prototype.open=function(o,a,l,i,d,p,v){var h=null,b=new I,S=b.signal,M=new k;return D(d,{headers:v,credentials:p?"include":"same-origin",signal:S,cache:"no-store"}).then(function(B){return h=B.body.getReader(),a(B.status,B.statusText,B.headers.get("Content-Type"),new x(B.headers)),new A(function(F,re){var Be=function(){h.read().then(function(Y){if(Y.done)F(void 0);else{var X=M.decode(Y.value,{stream:!0});l(X),Be()}}).catch(function(Y){re(Y)})};Be()})}).catch(function(B){if(B.name!=="AbortError")return B}).then(function(B){i(B)}),{abort:function(){h!=null&&h.cancel(),b.abort()}}};function N(){this._listeners=Object.create(null)}function c(o){s(function(){throw o},0)}N.prototype.dispatchEvent=function(o){o.target=this;var a=this._listeners[o.type];if(a!=null)for(var l=a.length,i=0;i<l;i+=1){var d=a[i];try{typeof d.handleEvent=="function"?d.handleEvent(o):d.call(this,o)}catch(p){c(p)}}},N.prototype.addEventListener=function(o,a){o=String(o);var l=this._listeners,i=l[o];i==null&&(i=[],l[o]=i);for(var d=!1,p=0;p<i.length;p+=1)i[p]===a&&(d=!0);d||i.push(a)},N.prototype.removeEventListener=function(o,a){o=String(o);var l=this._listeners,i=l[o];if(i!=null){for(var d=[],p=0;p<i.length;p+=1)i[p]!==a&&d.push(i[p]);d.length===0?delete l[o]:l[o]=d}};function P(o){this.type=o,this.target=void 0}function Ce(o,a){P.call(this,o),this.data=a.data,this.lastEventId=a.lastEventId}Ce.prototype=Object.create(P.prototype);function ae(o,a){P.call(this,o),this.status=a.status,this.statusText=a.statusText,this.headers=a.headers}ae.prototype=Object.create(P.prototype);function ye(o,a){P.call(this,o),this.error=a.error}ye.prototype=Object.create(P.prototype);var ve=-1,ee=0,ce=1,oe=2,pe=-1,te=0,ue=1,we=2,Ee=3,Se=/^text\/event\-stream(;.*)?$/i,Me=1e3,De=18e6,he=function(o,a){var l=o==null?a:parseInt(o,10);return l!==l&&(l=a),be(l)},be=function(o){return Math.min(Math.max(o,Me),De)},de=function(o,a,l){try{typeof a=="function"&&a.call(o,l)}catch(i){c(i)}};function W(o,a){N.call(this),a=a||{},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,o,a)}function Le(){return u!=null&&"withCredentials"in u.prototype||g==null?new u:new g}var Oe=D!=null&&E!=null&&"body"in E.prototype;function ke(o,a,l){a=String(a);var i=!!l.withCredentials,d=l.lastEventIdQueryParameterName||"lastEventId",p=be(1e3),v=he(l.heartbeatTimeout,45e3),h="",b=p,S=!1,M=0,B=l.headers||{},F=l.Transport,re=Oe&&F==null?void 0:new z(F!=null?new F:Le()),Be=F!=null&&typeof F!="string"?new F:re==null?new _:new U,Y=void 0,X=0,Z=ve,me="",Ae="",ie="",Re="",G=te,Fe=0,fe=0,tt=function(j,V,J,Q){if(Z===ee)if(j===200&&J!=null&&Se.test(J)){Z=ce,S=Date.now(),b=p,o.readyState=ce;var q=new ae("open",{status:j,statusText:V,headers:Q});o.dispatchEvent(q),de(o,o.onopen,q)}else{var H="";j!==200?(V&&(V=V.replace(/\s+/g," ")),H="EventSource's response has a status "+j+" "+V+" that is not 200. Aborting the connection."):H="EventSource's response has a Content-Type specifying an unsupported type: "+(J==null?"-":J.replace(/\s+/g," "))+". Aborting the connection.",Ne();var q=new ae("error",{status:j,statusText:V,headers:Q});o.dispatchEvent(q),de(o,o.onerror,q),console.error(H)}},nt=function(j){if(Z===ce){for(var V=-1,J=0;J<j.length;J+=1){var Q=j.charCodeAt(J);(Q===10||Q===13)&&(V=J)}var q=(V!==-1?Re:"")+j.slice(0,V+1);Re=(V===-1?Re:"")+j.slice(V+1),j!==""&&(S=Date.now(),M+=j.length);for(var H=0;H<q.length;H+=1){var Q=q.charCodeAt(H);if(G===pe&&Q===10)G=te;else if(G===pe&&(G=te),Q===13||Q===10){if(G!==te){G===ue&&(fe=H+1);var le=q.slice(Fe,fe-1),se=q.slice(fe+(fe<H&&q.charCodeAt(fe)===32?1:0),H);le==="data"?(me+=`
7
+ `,me+=se):le==="id"?Ae=se:le==="event"?ie=se:le==="retry"?(p=he(se,p),b=p):le==="heartbeatTimeout"&&(v=he(se,v),X!==0&&(f(X),X=s(function(){Te()},v)))}if(G===te){if(me!==""){h=Ae,ie===""&&(ie="message");var ge=new Ce(ie,{data:me.slice(1),lastEventId:Ae});if(o.dispatchEvent(ge),ie==="open"?de(o,o.onopen,ge):ie==="message"?de(o,o.onmessage,ge):ie==="error"&&de(o,o.onerror,ge),Z===oe)return}me="",ie=""}G=Q===13?pe:te}else G===te&&(Fe=H,G=ue),G===ue?Q===58&&(fe=H+1,G=we):G===we&&(G=Ee)}}},je=function(j){if(Z===ce||Z===ee){Z=ve,X!==0&&(f(X),X=0),X=s(function(){Te()},b),b=be(Math.min(p*16,b*2)),o.readyState=ee;var V=new ye("error",{error:j});o.dispatchEvent(V),de(o,o.onerror,V),j!=null&&console.error(j)}},Ne=function(){Z=oe,Y!=null&&(Y.abort(),Y=void 0),X!==0&&(f(X),X=0),o.readyState=oe},Te=function(){if(X=0,Z!==ve){if(!S&&Y!=null)je(new Error("No activity within "+v+" milliseconds. "+(Z===ee?"No response received.":M+" chars received.")+" Reconnecting.")),Y!=null&&(Y.abort(),Y=void 0);else{var j=Math.max((S||Date.now())+v-Date.now(),1);S=!1,X=s(function(){Te()},j)}return}S=!1,M=0,X=s(function(){Te()},v),Z=ee,me="",ie="",Ae=h,Re="",Fe=0,fe=0,G=te;var V=a;if(a.slice(0,5)!=="data:"&&a.slice(0,5)!=="blob:"&&h!==""){var J=a.indexOf("?");V=J===-1?a:a.slice(0,J+1)+a.slice(J+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(se,ge){return ge===d?"":se}),V+=(a.indexOf("?")===-1?"?":"&")+d+"="+encodeURIComponent(h)}var Q=o.withCredentials,q={};q.Accept="text/event-stream";var H=o.headers;if(H!=null)for(var le in H)Object.prototype.hasOwnProperty.call(H,le)&&(q[le]=H[le]);try{Y=Be.open(re,tt,nt,je,V,Q,q)}catch(se){throw Ne(),se}};o.url=a,o.readyState=ee,o.withCredentials=i,o.headers=B,o._close=Ne,Te()}W.prototype=Object.create(N.prototype),W.prototype.CONNECTING=ee,W.prototype.OPEN=ce,W.prototype.CLOSED=oe,W.prototype.close=function(){this._close()},W.CONNECTING=ee,W.OPEN=ce,W.CLOSED=oe,W.prototype.withCredentials=void 0;var _e=y;u!=null&&(y==null||!("withCredentials"in y.prototype))&&(_e=W),function(o){{var a=o(t);a!==void 0&&(r.exports=a)}}(function(o){o.EventSourcePolyfill=W,o.NativeEventSource=y,o.EventSource=_e})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:e.commonjsGlobal:globalThis)})(Ie,Ie.exports);var ct=Ie.exports;/*!
8
+ * currency.js - v2.0.4
9
+ * http://scurker.github.io/currency.js
10
+ *
11
+ * Copyright (c) 2021 Jason Wilson
12
+ * Released under MIT license
13
+ */var dt={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:ht,fromCents:!1},$e=function(t){return Math.round(t)},Ve=function(t){return Math.pow(10,t)},ut=function(t,n){return $e(t/n)*n},ft=/(\d)(?=(\d{3})+\b)/g,pt=/(\d)(?=(\d\d)+\d\b)/g;function $(r,t){var n=this;if(!(n instanceof $))return new $(r,t);var s=Object.assign({},dt,t),f=Ve(s.precision),u=xe(r,s);n.intValue=u,n.value=u/f,s.increment=s.increment||1/f,s.useVedic?s.groups=pt:s.groups=ft,this.s=s,this.p=f}function xe(r,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=0,f=t.decimal,u=t.errorOnInvalid,g=t.precision,m=t.fromCents,y=Ve(g),w=typeof r=="number",A=r instanceof $;if(A&&m)return r.intValue;if(w||A)s=A?r.value:r;else if(typeof r=="string"){var D=new RegExp("[^-\\d"+f+"]","g"),E=new RegExp("\\"+f,"g");s=r.replace(/\((.*)\)/,"-$1").replace(D,"").replace(E,"."),s=s||0}else{if(u)throw Error("Invalid Input");s=0}return m||(s*=y,s=s.toFixed(4)),n?$e(s):s}function ht(r,t){var n=t.pattern,s=t.negativePattern,f=t.symbol,u=t.separator,g=t.decimal,m=t.groups,y=(""+r).replace(/^-/,"").split("."),w=y[0],A=y[1];return(r.value>=0?n:s).replace("!",f).replace("#",w.replace(m,"$1"+u)+(A?g+A:""))}$.prototype={add:function(t){var n=this.intValue,s=this.s,f=this.p;return $((n+=xe(t,s))/(s.fromCents?1:f),s)},subtract:function(t){var n=this.intValue,s=this.s,f=this.p;return $((n-=xe(t,s))/(s.fromCents?1:f),s)},multiply:function(t){var n=this.intValue,s=this.s;return $((n*=t)/(s.fromCents?1:Ve(s.precision)),s)},divide:function(t){var n=this.intValue,s=this.s;return $(n/=xe(t,s,!1),s)},distribute:function(t){for(var n=this.intValue,s=this.p,f=this.s,u=[],g=Math[n>=0?"floor":"ceil"](n/t),m=Math.abs(n-g*t),y=f.fromCents?1:s;t!==0;t--){var w=$(g/y,f);m-- >0&&(w=w[n>=0?"add":"subtract"](1/y)),u.push(w)}return u},dollars:function(){return~~this.value},cents:function(){var t=this.intValue,n=this.p;return~~(t%n)},format:function(t){var n=this.s;return typeof t=="function"?t(this,n):n.format(this,Object.assign({},n,t))},toString:function(){var t=this.intValue,n=this.p,s=this.s;return ut(t/n,s.increment).toFixed(s.precision)},toJSON:function(){return this.value}};function mt(r){e.append_styles(r,"svelte-1tsugyl",'*,*::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;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, #D0046C));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;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}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}')}function Ke(r,t,n){const s=r.slice();return s[50]=t[n],s}function We(r,t,n){const s=r.slice();return s[53]=t[n],s}function gt(r){let t,n,s=(r[1].Total?r[8](r[1].Total[0].amount):"0")+"",f,u,g,m,y,w,A,D,E,k,R,I,T=r[4]&&Ye(r);return{c(){t=e.element("div"),n=e.element("p"),f=e.text(s),u=e.space(),g=e.text(r[5]),m=e.space(),y=e.element("span"),w=e.svg_element("svg"),A=e.svg_element("path"),E=e.space(),T&&T.c(),k=e.empty(),e.attr(A,"id","arrow"),e.attr(A,"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(A,"transform","translate(-274.511 -441.088)"),e.attr(A,"fill","#d1d1d1"),e.attr(w,"xmlns","http://www.w3.org/2000/svg"),e.attr(w,"width","14"),e.attr(w,"height","6.835"),e.attr(w,"viewBox","0 0 14 6.835"),e.attr(y,"class",D=r[3]?"TriangleActive":"TriangleInactive"),e.attr(t,"class","BalanceValue")},m(C,L){e.insert(C,t,L),e.append(t,n),e.append(n,f),e.append(n,u),e.append(n,g),e.append(t,m),e.append(t,y),e.append(y,w),e.append(w,A),e.insert(C,E,L),T&&T.m(C,L),e.insert(C,k,L),R||(I=e.listen(t,"click",r[24]),R=!0)},p(C,L){L[0]&2&&s!==(s=(C[1].Total?C[8](C[1].Total[0].amount):"0")+"")&&e.set_data(f,s),L[0]&32&&e.set_data(g,C[5]),L[0]&8&&D!==(D=C[3]?"TriangleActive":"TriangleInactive")&&e.attr(y,"class",D),C[4]?T?T.p(C,L):(T=Ye(C),T.c(),T.m(k.parentNode,k)):T&&(T.d(1),T=null)},d(C){C&&(e.detach(t),e.detach(E),e.detach(k)),T&&T.d(C),R=!1,I()}}}function yt(r){let t,n=r[6]("Loading")+"",s;return{c(){t=e.element("p"),s=e.text(n),e.attr(t,"class","Loading")},m(f,u){e.insert(f,t,u),e.append(t,s)},p(f,u){u[0]&64&&n!==(n=f[6]("Loading")+"")&&e.set_data(s,n)},d(f){f&&e.detach(t)}}}function Ye(r){let t,n,s,f,u,g,m,y,w=r[6]("Title")+"",A,D,E,k,R,I,T=r[6]("DepositButton")+"",C,L,O,z,K,ne,U=e.ensure_array_like(Object.keys(r[1])),x=[];for(let _=0;_<U.length;_+=1)x[_]=Qe(Ke(r,U,_));return{c(){t=e.element("div"),n=e.element("div"),f=e.space(),u=e.element("div"),g=e.element("div"),m=e.element("div"),y=e.element("p"),A=e.text(w),D=e.space(),E=e.element("div");for(let _=0;_<x.length;_+=1)x[_].c();k=e.space(),R=e.element("div"),I=e.element("button"),C=e.text(T),e.attr(n,"class",s="BalanceModalClose "+(r[3]?"Open":"")),e.attr(y,"class","BalanceModalTitle"),e.attr(m,"class","BalanceModalHeader"),e.attr(E,"class","BalanceModalBody"),e.attr(I,"class","BalanceModalAction"),e.attr(R,"class","BalanceModalFooter"),e.attr(g,"class",L="ModalContent "+(r[3]?"Open":"")),e.attr(u,"class",O="BalanceModal "+(r[3]?"Open":"")),e.attr(t,"class",z="BalanceModalWrapper "+(r[3]?"Open":""))},m(_,N){e.insert(_,t,N),e.append(t,n),e.append(t,f),e.append(t,u),e.append(u,g),e.append(g,m),e.append(m,y),e.append(y,A),e.append(g,D),e.append(g,E);for(let c=0;c<x.length;c+=1)x[c]&&x[c].m(E,null);e.append(g,k),e.append(g,R),e.append(R,I),e.append(I,C),K||(ne=[e.listen(n,"click",r[25]),e.listen(I,"click",r[26])],K=!0)},p(_,N){if(N[0]&8&&s!==(s="BalanceModalClose "+(_[3]?"Open":""))&&e.attr(n,"class",s),N[0]&64&&w!==(w=_[6]("Title")+"")&&e.set_data(A,w),N[0]&354){U=e.ensure_array_like(Object.keys(_[1]));let c;for(c=0;c<U.length;c+=1){const P=Ke(_,U,c);x[c]?x[c].p(P,N):(x[c]=Qe(P),x[c].c(),x[c].m(E,null))}for(;c<x.length;c+=1)x[c].d(1);x.length=U.length}N[0]&64&&T!==(T=_[6]("DepositButton")+"")&&e.set_data(C,T),N[0]&8&&L!==(L="ModalContent "+(_[3]?"Open":""))&&e.attr(g,"class",L),N[0]&8&&O!==(O="BalanceModal "+(_[3]?"Open":""))&&e.attr(u,"class",O),N[0]&8&&z!==(z="BalanceModalWrapper "+(_[3]?"Open":""))&&e.attr(t,"class",z)},d(_){_&&e.detach(t),e.destroy_each(x,_),K=!1,e.run_all(ne)}}}function Je(r){let t,n,s=r[6](r[50])+"",f,u,g=(r[53].productType?r[6](r[53].productType):"")+"",m,y,w,A,D=(r[53].amount?r[8](r[53].amount):"0")+"",E,k,R,I;return{c(){t=e.element("div"),n=e.element("p"),f=e.text(s),u=e.space(),m=e.text(g),y=e.space(),w=e.element("p"),A=e.element("span"),E=e.text(D),k=e.space(),R=e.element("span"),I=e.text(r[5]),e.attr(n,"class","BalanceModalText"),e.attr(A,"class","BalanceModalAmount"),e.attr(R,"class","BalanceModalCurrency"),e.attr(w,"class","BalanceModalValue"),e.attr(t,"class","BalanceModalRowLine")},m(T,C){e.insert(T,t,C),e.append(t,n),e.append(n,f),e.append(n,u),e.append(n,m),e.append(t,y),e.append(t,w),e.append(w,A),e.append(A,E),e.append(w,k),e.append(w,R),e.append(R,I)},p(T,C){C[0]&66&&s!==(s=T[6](T[50])+"")&&e.set_data(f,s),C[0]&66&&g!==(g=(T[53].productType?T[6](T[53].productType):"")+"")&&e.set_data(m,g),C[0]&2&&D!==(D=(T[53].amount?T[8](T[53].amount):"0")+"")&&e.set_data(E,D),C[0]&32&&e.set_data(I,T[5])},d(T){T&&e.detach(t)}}}function Qe(r){let t,n,s=e.ensure_array_like(r[1][r[50]]),f=[];for(let u=0;u<s.length;u+=1)f[u]=Je(We(r,s,u));return{c(){t=e.element("div");for(let u=0;u<f.length;u+=1)f[u].c();n=e.space(),e.attr(t,"class","BalanceModalRowBoth")},m(u,g){e.insert(u,t,g);for(let m=0;m<f.length;m+=1)f[m]&&f[m].m(t,null);e.append(t,n)},p(u,g){if(g[0]&354){s=e.ensure_array_like(u[1][u[50]]);let m;for(m=0;m<s.length;m+=1){const y=We(u,s,m);f[m]?f[m].p(y,g):(f[m]=Je(y),f[m].c(),f[m].m(t,n))}for(;m<f.length;m+=1)f[m].d(1);f.length=s.length}},d(u){u&&e.detach(t),e.destroy_each(f,u)}}}function Ze(r){let t,n,s;return{c(){t=e.element("div"),e.attr(t,"class","ShowBalanceModalOverlay")},m(f,u){e.insert(f,t,u),n||(s=e.listen(t,"click",r[27]),n=!0)},p:e.noop,d(f){f&&e.detach(t),n=!1,s()}}}function vt(r){let t,n,s;function f(y,w){return y[2]?yt:gt}let u=f(r),g=u(r),m=r[4]&&Ze(r);return{c(){t=e.element("div"),n=e.element("div"),g.c(),s=e.space(),m&&m.c(),e.attr(n,"class","ShowBalance")},m(y,w){e.insert(y,t,w),e.append(t,n),g.m(n,null),e.append(t,s),m&&m.m(t,null),r[28](t)},p(y,w){u===(u=f(y))&&g?g.p(y,w):(g.d(1),g=u(y),g&&(g.c(),g.m(n,null))),y[4]?m?m.p(y,w):(m=Ze(y),m.c(),m.m(t,null)):m&&(m.d(1),m=null)},i:e.noop,o:e.noop,d(y){y&&e.detach(t),g.d(),m&&m.d(),r[28](null)}}}function wt(r,t,n){let s;e.component_subscribe(r,e.$format,a=>n(6,s=a));let{userid:f=""}=t,{session:u=""}=t,{endpoint:g=""}=t,{lang:m="en"}=t,{clientstyling:y=""}=t,{clientstylingurl:w=""}=t,{translationurl:A=""}=t,{customlocaleidentifier:D=""}=t,{gmversion:E="gm16"}=t,{displaybalanceoption:k="All"}=t,{totalcalculationmode:R="totalCashAmount"}=t,{currencyseparator:I=""}=t,{currencydecimal:T=""}=t,{currencyprecision:C=""}=t,L,O,z,K,ne=!1,U="",x=[],_,N=!1;const c={},P=["totalCashAmount","totalRealAmount"],Ce=()=>{fetch(A).then(a=>a.json()).then(a=>Object.keys(a).forEach(l=>Ge(l,a[l]))).catch(a=>console.log(a))};Object.keys(qe).forEach(a=>Ge(a,qe[a]));const ae=a=>{switch(a){case"balance":window.postMessage({type:"BalanceModalStatus",status:"open"},window.location.href),n(4,ne=!0),setTimeout(()=>n(3,z=!0),150);break;case"closebalance":n(3,z=!1),window.postMessage({type:"BalanceModalStatus",status:"close"},window.location.href),setTimeout(()=>{n(4,ne=!1)},150);break}},ye=()=>{if(D.includes(m))return D},ve=a=>D?new Intl.NumberFormat(ye(),{useGrouping:!0}).format(a):I&&T?$(a,{separator:I,decimal:T,symbol:"",precision:parseInt(C||"2",10)}).format():$(a,{separator:".",decimal:",",symbol:"",precision:parseInt(C||"2",10)}).format(),ee=()=>Xe(this,null,function*(){var l,i,d;n(2,L=!0);const a=new URL(`${g}/v1/player/${f}/account`);try{const p=yield fetch(a,{method:"GET",headers:{"X-SessionID":u}}),v=yield p.json();if(p.ok)window.postMessage({type:"BalancedFetched"},window.location.href),x=v.items,n(5,U=(l=x.find(h=>h.displayName==="Casino"))==null?void 0:l.currency),n(1,c.Total=[{amount:v.totalAmount[U]}],c),n(1,c.Real=[{amount:(i=x.find(h=>h.displayName==="Casino"))==null?void 0:i.balanceAmount}],c),n(1,c.Bonus=[{amount:(d=x.find(h=>h.displayName==="UBS"))==null?void 0:d.balanceAmount}],c);else throw new Error("Failed to fetch balance data !")}catch(p){console.log("Balance error: ",p)}finally{n(2,L=!1)}}),ce=()=>{n(2,L=!0);const a=new URL(`${g}/v2/player/${f}/balance`),l=new Headers;l.append("X-SessionID",u),fetch(a,{method:"GET",headers:l}).then(d=>d.json()).then(d=>{d[R]||n(10,R=P[0]);const p=d.items.find(h=>h.type==="Real"&&h.walletAccountType==="Ordinary");if(n(5,U=p.currency),N=!!p.productType,n(1,c.Total=[{amount:0}],c),n(1,c.Real=[],c),n(1,c.Bonus=[],c),n(1,c.Credit=[],c),!N){_={lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},n(1,c.Total[0].amount=d[R][U],c);for(const h of d.items)switch(h.type){case"Bonus":c.Bonus.length===0?c.Bonus.push({amount:h.amount}):n(1,c.Bonus[0].amount+=h.amount,c);break;case"Real":if(h.creditLine&&c.Credit.length===0&&c.Credit.push({amount:h.creditLine}),R==="totalRealAmount")continue;c.Real.length===0?c.Real.push({amount:h.amount}):n(1,c.Real[0].amount+=h.amount,c);break}for(const[h,b]of Object.entries(c))b.length<1&&delete c[h];n(2,L=!1);return}_={Casino:{lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},Sports:{lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1}};let v=d.items;k&&k!=="All"&&(v=d.items.filter(h=>h.productType===k));for(const h of v){let b;switch(h.type){case"Bonus":b=c.Bonus.findIndex(S=>S.productType===h.productType),b>0?n(1,c.Bonus[b].amount+=h.amount,c):c.Bonus.push({amount:h.amount,productType:h.productType});break;case"Real":h.creditLine&&c.Credit.push({amount:h.creditLine,productType:h.productType}),b=c.Real.findIndex(S=>S.productType===h.productType),b>0?n(1,c.Real[b].amount+=h.amount,c):c.Real.push({amount:h.amount,productType:h.productType});break}}we();for(const[h,b]of Object.entries(c))b.length<1&&delete c[h];n(2,L=!1)}).catch(d=>{throw n(2,L=!1),new Error("Failed to fetch balance data !")})},oe=()=>{if(K&&K.close(),u.length<1)return;let a,l;switch(E){case"gm16":a=new URL(`${g}/v2/player/${f}/information/updates`),l=p=>Ee(p);break;case"gmcore":a=new URL(`${g}/v1/player/${f}/balance/updates`),l=p=>te(p);break}const i={accept:"text/event-stream","X-SessionId":u},d=new ct.EventSourcePolyfill(a,{headers:i});K=d,d.addEventListener("message",l)},pe=a=>{let l;try{l=JSON.parse(a)}catch(i){console.log("Balance stream failed: ",i);return}return l},te=a=>{var p,v;const l=pe(a.data);if(!l){oe();return}let i="0";const d=l.balanceChange;x=x.map(h=>(d&&d[h.id]&&(h=Pe(Ue({},h),{balanceAmount:d[h.id].afterAmount})),i=(parseFloat(h==null?void 0:h.balanceAmount)+parseFloat(i)).toString(),h)),n(1,c.Real=[{amount:(p=x[0])==null?void 0:p.balanceAmount}],c),n(1,c.Bonus=[{amount:(v=x[1])==null?void 0:v.balanceAmount}],c),n(1,c.Total=[{amount:Number(i)}],c)},ue=(a,l,i)=>{let d=null;switch(i.walletAccountType){case"Ordinary":i.afterAmount!==i.affectedAmount&&(l.lastOrdinaryAfterAmount=i.afterAmount,l.showCreditLineAfterAmount||(d=i.afterAmount));break;case"CreditLine":i.afterAmount!==0?(d=i.afterAmount,l.showCreditLineAfterAmount=!0):(d=l.lastOrdinaryAfterAmount,l.showCreditLineAfterAmount=!1);break;default:d=i.afterAmount}return d===null?a:d},we=()=>{switch(R){case"totalCashAmount":let a=0;for(const i of["Real","Bonus"])for(const d of c[i])a+=Math.max(d.amount,0);n(1,c.Total[0].amount=a,c);break;case"totalRealAmount":if(!N)return;let l=0;for(const i of c.Real)l+=i.amount;n(1,c.Total[0].amount=l,c)}},Ee=a=>{const l=pe(a.data);if(!l){oe();return}if(l.type!=="BALANCE_UPDATE_V2")return;const i=l.body.balanceChange;for(const[d,p]of Object.entries(i))if(R==="totalRealAmount"&&d==="Real"&&!N&&n(1,c.Total[0].amount=ue(c.Total[0].amount,_,p),c),!!c[d])for(const v of c[d]){if(!N){v.amount=d==="Real"?ue(v.amount,_,p):p.afterAmount;continue}p.productType===v.productType&&(v.amount=d==="Real"?ue(v.amount,_[v.productType],p):p.afterAmount)}we()},Se=()=>{ae("closebalance"),window.postMessage({type:"GoToDeposit"},window.location.href),typeof gtag=="function"&&gtag("event","GoToDeposit",{context:"PlayerAccountBalanceModal"})},Me=()=>{P.includes(R)||(console.error(`Unsupported value ('${R}') for totalcalculationmode parameter. Only the following values are supported ${P}. Using default value ('${P[0]}').`),n(10,R=P[0]))},De=()=>{switch(st(m),Me(),E){case"gmcore":ee();break;case"gm16":ce();break;default:throw Error(`Invalid apiversion attribute: ${E}`)}},he=a=>a.data&&a.data.type==="LogoutSuccessfull"&&K.close(),be=()=>{const a=document.createElement("style");a.innerHTML=y,O.appendChild(a)},de=()=>{const a=new URL(w),l=document.createElement("style");fetch(a.href).then(i=>i.text()).then(i=>{l.innerHTML=i,setTimeout(()=>{O.appendChild(l)},1)})},W=()=>{window.postMessage({type:"UpdateBalanceBackground"},window.location.href)};e.onMount(()=>(window.addEventListener("message",he,!1),()=>{window.removeEventListener("message",he),K&&K.close()}));const Le=()=>ae("balance"),Oe=()=>ae("closebalance"),ke=()=>Se(),_e=()=>ae("closeBalance");function o(a){e.binding_callbacks[a?"unshift":"push"](()=>{O=a,n(0,O)})}return r.$$set=a=>{"userid"in a&&n(11,f=a.userid),"session"in a&&n(12,u=a.session),"endpoint"in a&&n(13,g=a.endpoint),"lang"in a&&n(14,m=a.lang),"clientstyling"in a&&n(15,y=a.clientstyling),"clientstylingurl"in a&&n(16,w=a.clientstylingurl),"translationurl"in a&&n(17,A=a.translationurl),"customlocaleidentifier"in a&&n(18,D=a.customlocaleidentifier),"gmversion"in a&&n(19,E=a.gmversion),"displaybalanceoption"in a&&n(20,k=a.displaybalanceoption),"totalcalculationmode"in a&&n(10,R=a.totalcalculationmode),"currencyseparator"in a&&n(21,I=a.currencyseparator),"currencydecimal"in a&&n(22,T=a.currencydecimal),"currencyprecision"in a&&n(23,C=a.currencyprecision)},r.$$.update=()=>{r.$$.dirty[0]&16384&&m&&ye(),r.$$.dirty[0]&1603584&&g&&f&&u&&m&&E&&k&&De(),r.$$.dirty[0]&538624&&g&&f&&u&&E&&oe(),r.$$.dirty[0]&32769&&y&&O&&be(),r.$$.dirty[0]&65537&&w&&O&&de(),r.$$.dirty[0]&131072&&A&&Ce(),r.$$.dirty[0]&2&&c.Total&&W()},[O,c,L,z,ne,U,s,ae,ve,Se,R,f,u,g,m,y,w,A,D,E,k,I,T,C,Le,Oe,ke,_e,o]}class et extends e.SvelteComponent{constructor(t){super(),e.init(this,t,wt,vt,e.safe_not_equal,{userid:11,session:12,endpoint:13,lang:14,clientstyling:15,clientstylingurl:16,translationurl:17,customlocaleidentifier:18,gmversion:19,displaybalanceoption:20,totalcalculationmode:10,currencyseparator:21,currencydecimal:22,currencyprecision:23},mt,[-1,-1])}get userid(){return this.$$.ctx[11]}set userid(t){this.$$set({userid:t}),e.flush()}get session(){return this.$$.ctx[12]}set session(t){this.$$set({session:t}),e.flush()}get endpoint(){return this.$$.ctx[13]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get lang(){return this.$$.ctx[14]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[15]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[16]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[17]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get customlocaleidentifier(){return this.$$.ctx[18]}set customlocaleidentifier(t){this.$$set({customlocaleidentifier:t}),e.flush()}get gmversion(){return this.$$.ctx[19]}set gmversion(t){this.$$set({gmversion:t}),e.flush()}get displaybalanceoption(){return this.$$.ctx[20]}set displaybalanceoption(t){this.$$set({displaybalanceoption:t}),e.flush()}get totalcalculationmode(){return this.$$.ctx[10]}set totalcalculationmode(t){this.$$set({totalcalculationmode:t}),e.flush()}get currencyseparator(){return this.$$.ctx[21]}set currencyseparator(t){this.$$set({currencyseparator:t}),e.flush()}get currencydecimal(){return this.$$.ctx[22]}set currencydecimal(t){this.$$set({currencydecimal:t}),e.flush()}get currencyprecision(){return this.$$.ctx[23]}set currencyprecision(t){this.$$set({currencyprecision:t}),e.flush()}}e.create_custom_element(et,{userid:{},session:{},endpoint:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},customlocaleidentifier:{},gmversion:{},displaybalanceoption:{},totalcalculationmode:{},currencyseparator:{},currencydecimal:{},currencyprecision:{}},[],[],!0);exports.default=et;
@@ -1,9 +1,9 @@
1
- import { b as K, $ as V, S as X, i as Z, f as b, c as $, s as ee, d as te, g as _, h as L, B as k, j as d, M as P, l as S, m as p, C as E, D as z, r as T, v as ie, K as ae, w as se, z as M, n as re, F as ne, G as A, J as oe } from "./CasinoHamburgerMenuNd-CkPg6ouB.js";
1
+ import { b as V, $ as X, S as Z, i as J, s as $, f as b, d as ee, z as H, g as S, D as L, M as P, m as T, n as p, p as _, q as E, E as C, r as d, v as te, I as ie, w as ae, o as se, F as M, A as re, B as z, c as ne, K as oe } from "./CasinoHamburgerMenuNd-BN4YipjD.js";
2
2
  function W(a, e) {
3
- K(a, e);
3
+ V(a, e);
4
4
  }
5
5
  function le(a) {
6
- V.set(a);
6
+ X.set(a);
7
7
  }
8
8
  const j = {
9
9
  en: {
@@ -48,7 +48,7 @@ const j = {
48
48
  }
49
49
  };
50
50
  function ce(a) {
51
- te(a, "svelte-lvm6lo", "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, 20px);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, 20px)}");
51
+ ee(a, "svelte-lvm6lo", "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, 20px);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, 20px)}");
52
52
  }
53
53
  function de(a) {
54
54
  let e, i, n, s, l, m, c, u, y, o, r = (
@@ -57,23 +57,23 @@ function de(a) {
57
57
  ), h, D, v;
58
58
  return {
59
59
  c() {
60
- e = _("div"), i = M("svg"), n = M("defs"), s = M("style"), l = k(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), m = M("g"), c = M("g"), u = M("path"), y = L(), o = _("h2"), h = k(r), d(u, "class", "aaa"), d(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), d(u, "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");
60
+ e = _("div"), i = M("svg"), n = M("defs"), s = M("style"), l = C(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), m = M("g"), c = M("g"), u = M("path"), y = E(), o = _("h2"), h = C(r), d(u, "class", "aaa"), d(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), d(u, "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
- m(g, C) {
63
- S(g, e, C), p(e, i), p(i, n), p(n, s), p(s, l), p(i, m), p(m, c), p(c, u), p(e, y), p(e, o), p(o, h), D || (v = re(
62
+ m(g, k) {
63
+ T(g, e, k), p(e, i), p(i, n), p(n, s), p(s, l), p(i, m), p(m, c), p(c, u), p(e, y), p(e, o), p(o, h), D || (v = se(
64
64
  e,
65
65
  "click",
66
66
  /*click_handler*/
67
67
  a[17]
68
68
  ), D = !0);
69
69
  },
70
- p(g, C) {
71
- C & /*$_*/
70
+ p(g, k) {
71
+ k & /*$_*/
72
72
  16 && r !== (r = /*$_*/
73
- g[4]("titleDeposit") + "") && E(h, r);
73
+ g[4]("titleDeposit") + "") && L(h, r);
74
74
  },
75
75
  d(g) {
76
- g && T(e), D = !1, v();
76
+ g && S(e), D = !1, v();
77
77
  }
78
78
  };
79
79
  }
@@ -81,19 +81,19 @@ function he(a) {
81
81
  let e, i, n;
82
82
  return {
83
83
  c() {
84
- e = _("div"), i = _("iframe"), A(i.src, n = /*iframeUrl*/
84
+ e = _("div"), i = _("iframe"), z(i.src, n = /*iframeUrl*/
85
85
  a[3]) || d(i, "src", n), d(i, "title", "Deposit Iframe"), d(e, "class", "DepositIframeWrapper");
86
86
  },
87
87
  m(s, l) {
88
- S(s, e, l), p(e, i);
88
+ T(s, e, l), p(e, i);
89
89
  },
90
90
  p(s, l) {
91
91
  l & /*iframeUrl*/
92
- 8 && !A(i.src, n = /*iframeUrl*/
92
+ 8 && !z(i.src, n = /*iframeUrl*/
93
93
  s[3]) && d(i, "src", n);
94
94
  },
95
95
  d(s) {
96
- s && T(e);
96
+ s && S(e);
97
97
  }
98
98
  };
99
99
  }
@@ -104,18 +104,18 @@ function pe(a) {
104
104
  ), n;
105
105
  return {
106
106
  c() {
107
- e = _("p"), n = k(i);
107
+ e = _("p"), n = C(i);
108
108
  },
109
109
  m(s, l) {
110
- S(s, e, l), p(e, n);
110
+ T(s, e, l), p(e, n);
111
111
  },
112
112
  p(s, l) {
113
113
  l & /*$_*/
114
114
  16 && i !== (i = /*$_*/
115
- s[4]("loading") + "") && E(n, i);
115
+ s[4]("loading") + "") && L(n, i);
116
116
  },
117
117
  d(s) {
118
- s && T(e);
118
+ s && S(e);
119
119
  }
120
120
  };
121
121
  }
@@ -136,7 +136,7 @@ function ue(a) {
136
136
  let y = u(a), o = y(a);
137
137
  return {
138
138
  c() {
139
- e = _("div"), c && c.c(), i = L(), n = _("h2"), l = k(s), m = L(), o.c(), d(n, "class", "DepositTitle " + /*isMobile*/
139
+ e = _("div"), c && c.c(), i = E(), n = _("h2"), l = C(s), m = E(), o.c(), d(n, "class", "DepositTitle " + /*isMobile*/
140
140
  (a[5] ? "DepositTitleNone" : "")), d(e, "class", "DepositWrapper " + /*isMobile*/
141
141
  (a[5] ? "DepositWrapperMobile" : "")), P(
142
142
  e,
@@ -146,13 +146,13 @@ function ue(a) {
146
146
  );
147
147
  },
148
148
  m(r, h) {
149
- S(r, e, h), c && c.m(e, null), p(e, i), p(e, n), p(n, l), p(e, m), o.m(e, null), a[18](e);
149
+ T(r, e, h), c && c.m(e, null), p(e, i), p(e, n), p(n, l), p(e, m), o.m(e, null), a[18](e);
150
150
  },
151
151
  p(r, [h]) {
152
152
  /*isMobile*/
153
153
  r[5] && c.p(r, h), h & /*$_*/
154
154
  16 && s !== (s = /*$_*/
155
- r[4]("titleDeposit") + "") && E(l, s), y === (y = u(r)) && o ? o.p(r, h) : (o.d(1), o = y(r), o && (o.c(), o.m(e, null))), h & /*dynamicHeight*/
155
+ r[4]("titleDeposit") + "") && L(l, s), y === (y = u(r)) && o ? o.p(r, h) : (o.d(1), o = y(r), o && (o.c(), o.m(e, null))), h & /*dynamicHeight*/
156
156
  4 && P(
157
157
  e,
158
158
  "--dynamic-height",
@@ -160,17 +160,17 @@ function ue(a) {
160
160
  r[2]
161
161
  );
162
162
  },
163
- i: z,
164
- o: z,
163
+ i: H,
164
+ o: H,
165
165
  d(r) {
166
- r && T(e), c && c.d(), o.d(), a[18](null);
166
+ r && S(e), c && c.d(), o.d(), a[18](null);
167
167
  }
168
168
  };
169
169
  }
170
170
  function ge(a, e, i) {
171
171
  let n, s;
172
- ie(a, oe, (t) => i(4, s = t));
173
- let { endpoint: l = "" } = e, { session: m = "" } = e, { playerid: c = "" } = e, { lang: u = "en" } = e, { hasdefaultamount: y = "" } = e, { clientstyling: o = "" } = e, { clientstylingurl: r = "" } = e, { translationurl: h = "" } = e, { playercurrency: D = "" } = e, { shortcashierenabled: v = "false" } = e, g, C = window.navigator.userAgent, R = ae(C) !== "PC", B = !0, F, x = 0, U = "";
172
+ te(a, oe, (t) => i(4, s = t));
173
+ let { endpoint: l = "" } = e, { session: m = "" } = e, { playerid: c = "" } = e, { lang: u = "en" } = e, { hasdefaultamount: y = "" } = e, { clientstyling: o = "" } = e, { clientstylingurl: r = "" } = e, { translationurl: h = "" } = e, { playercurrency: D = "" } = e, { shortcashierenabled: v = "false" } = e, g, k = window.navigator.userAgent, R = ie(k) !== "PC", B = !0, F, x = 0, I = "";
174
174
  const G = () => {
175
175
  fetch(h).then((w) => w.json()).then((w) => {
176
176
  Object.keys(w).forEach((f) => {
@@ -183,9 +183,9 @@ function ge(a, e, i) {
183
183
  Object.keys(j).forEach((t) => {
184
184
  W(t, j[t]);
185
185
  });
186
- const H = () => {
186
+ const U = () => {
187
187
  window.postMessage({ type: "GoToPreviousRoute", isMobile: R }, window.location.href);
188
- }, I = (t) => {
188
+ }, A = (t) => {
189
189
  if (t.data) {
190
190
  switch (t.data.type) {
191
191
  case "ProfileDetailsData":
@@ -242,15 +242,15 @@ function ge(a, e, i) {
242
242
  };
243
243
  fetch(t.href, w).then((f) => f.json()).then(
244
244
  (f) => {
245
- i(1, B = !1), i(3, U = f.CashierUrl);
245
+ i(1, B = !1), i(3, I = f.CashierUrl);
246
246
  },
247
247
  (f) => {
248
248
  console.error(f);
249
249
  }
250
250
  );
251
- }, O = () => {
252
- le(u);
253
251
  }, q = () => {
252
+ le(u);
253
+ }, O = () => {
254
254
  let t = document.createElement("style");
255
255
  t.innerHTML = o, g.appendChild(t);
256
256
  }, Q = () => {
@@ -264,12 +264,12 @@ function ge(a, e, i) {
264
264
  );
265
265
  });
266
266
  };
267
- se(() => (window.addEventListener("message", I, !1), () => {
268
- window.removeEventListener("message", I);
267
+ ae(() => (window.addEventListener("message", A, !1), () => {
268
+ window.removeEventListener("message", A);
269
269
  }));
270
- const Y = () => H();
271
- function J(t) {
272
- ne[t ? "unshift" : "push"](() => {
270
+ const Y = () => U();
271
+ function K(t) {
272
+ re[t ? "unshift" : "push"](() => {
273
273
  g = t, i(0, g);
274
274
  });
275
275
  }
@@ -277,20 +277,20 @@ function ge(a, e, i) {
277
277
  "endpoint" in t && i(8, l = t.endpoint), "session" in t && i(9, m = t.session), "playerid" in t && i(10, c = t.playerid), "lang" in t && i(11, u = t.lang), "hasdefaultamount" in t && i(12, y = t.hasdefaultamount), "clientstyling" in t && i(13, o = t.clientstyling), "clientstylingurl" in t && i(14, r = t.clientstylingurl), "translationurl" in t && i(15, h = t.translationurl), "playercurrency" in t && i(7, D = t.playercurrency), "shortcashierenabled" in t && i(16, v = t.shortcashierenabled);
278
278
  }, a.$$.update = () => {
279
279
  a.$$.dirty & /*lang*/
280
- 2048 && u && O(), a.$$.dirty & /*shortcashierenabled*/
280
+ 2048 && u && q(), a.$$.dirty & /*shortcashierenabled*/
281
281
  65536 && (n = v.toLocaleLowerCase() === "true"), a.$$.dirty & /*clientstylingurl, customStylingContainer*/
282
282
  16385 && r && g && Q(), a.$$.dirty & /*clientstyling, customStylingContainer*/
283
- 8193 && o && g && q(), a.$$.dirty & /*translationurl*/
283
+ 8193 && o && g && O(), a.$$.dirty & /*translationurl*/
284
284
  32768 && h && G(), a.$$.dirty & /*session, playerid, endpoint, playercurrency, lang, shortcashierenabled*/
285
285
  69504 && m && c && l && D && u && v && N();
286
286
  }, [
287
287
  g,
288
288
  B,
289
289
  F,
290
- U,
290
+ I,
291
291
  s,
292
292
  R,
293
- H,
293
+ U,
294
294
  D,
295
295
  l,
296
296
  m,
@@ -302,17 +302,17 @@ function ge(a, e, i) {
302
302
  h,
303
303
  v,
304
304
  Y,
305
- J
305
+ K
306
306
  ];
307
307
  }
308
- class me extends X {
308
+ class me extends Z {
309
309
  constructor(e) {
310
- super(), Z(
310
+ super(), J(
311
311
  this,
312
312
  e,
313
313
  ge,
314
314
  ue,
315
- ee,
315
+ $,
316
316
  {
317
317
  endpoint: 8,
318
318
  session: 9,
@@ -389,7 +389,7 @@ class me extends X {
389
389
  this.$$set({ shortcashierenabled: e }), b();
390
390
  }
391
391
  }
392
- $(me, { endpoint: {}, session: {}, playerid: {}, lang: {}, hasdefaultamount: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {}, shortcashierenabled: {} }, [], [], !0);
392
+ ne(me, { endpoint: {}, session: {}, playerid: {}, lang: {}, hasdefaultamount: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {}, shortcashierenabled: {} }, [], [], !0);
393
393
  export {
394
394
  me as default
395
395
  };