@everymatrix/casino-header-controller-nd 1.54.12 → 1.56.0

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 (52) hide show
  1. package/components/CasinoHamburgerMenuNd-BXOxWDnU.js +5449 -0
  2. package/components/CasinoHamburgerMenuNd-CDprnR9N.cjs +5 -0
  3. package/components/CasinoHamburgerMenuNd-RHQhri2n.js +5487 -0
  4. package/components/CasinoHeaderControllerNd-CrjISN9T.cjs +1 -0
  5. package/components/{CasinoHeaderControllerNd-Bj0vkyt0.js → CasinoHeaderControllerNd-DdRHib4Y.js} +442 -390
  6. package/components/{CasinoHeaderControllerNd-DNfULXvS.js → CasinoHeaderControllerNd-DeFJQOBT.js} +469 -417
  7. package/components/PlayerAccountBalanceModalNd-BduIv2jr.js +1553 -0
  8. package/components/PlayerAccountBalanceModalNd-ClQUf9hu.js +1582 -0
  9. package/components/PlayerAccountBalanceModalNd-DB8OTdY6.cjs +13 -0
  10. package/components/PlayerDeposit-D4E7B0VM.cjs +1 -0
  11. package/components/{PlayerDeposit-C__xk64-.js → PlayerDeposit-Dn8OMUks.js} +121 -125
  12. package/components/{PlayerDeposit-CmyD00QS.js → PlayerDeposit-Owd9kBaC.js} +121 -125
  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/package.json +1 -1
  17. package/stencil/gamification-dropdown-12tdWeqm.cjs +1 -0
  18. package/stencil/gamification-dropdown-246b88da-BcsKYpR0.js +126 -0
  19. package/stencil/gamification-dropdown-246b88da-Dckk_dCi.js +144 -0
  20. package/stencil/gamification-dropdown-246b88da-ImWNLZys.cjs +1 -0
  21. package/stencil/gamification-dropdown-CGlt7V-H.js +7 -0
  22. package/stencil/gamification-dropdown-GR6HFAZA.js +25 -0
  23. package/stencil/{gamification-dropdown_4-BDv_Y1ow.cjs → gamification-dropdown_4-BwwlBsis.cjs} +2 -2
  24. package/stencil/{gamification-dropdown_4-DFXXWsNB.js → gamification-dropdown_4-Denu_YbM.js} +18 -18
  25. package/stencil/{gamification-dropdown_4-DgJc4ulv.js → gamification-dropdown_4-QRIgZIS5.js} +18 -18
  26. package/stencil/{index-1ed44842-Cv2DDELg.js → index-30fda5fb-CiEO4toK.js} +170 -169
  27. package/stencil/index-30fda5fb-DqSvPD7T.cjs +1 -0
  28. package/stencil/{index-1ed44842-Cv7p6OfM.js → index-30fda5fb-XWBRFzl0.js} +303 -302
  29. package/stencil/{player-elevate-card-l6Kpw4ym.js → player-elevate-card-BPyvJoKU.js} +2 -2
  30. package/stencil/{player-elevate-card-CdmFcZg6.js → player-elevate-card-CSXjQ70j.js} +2 -2
  31. package/stencil/{player-elevate-card-Btncg_vx.cjs → player-elevate-card-D5kbh1fR.cjs} +1 -1
  32. package/stencil/{player-elevate-card-items-4e46b4c8-BDoQLG1C.js → player-elevate-card-items-be1e68f1-C-idvDlE.js} +1 -1
  33. package/stencil/{player-elevate-card-items-4e46b4c8-CP-E64XG.js → player-elevate-card-items-be1e68f1-CF4tyvaU.js} +1 -1
  34. package/stencil/{player-elevate-card-items-4e46b4c8-aapR8B2m.cjs → player-elevate-card-items-be1e68f1-CxCehVul.cjs} +1 -1
  35. package/stencil/{player-elevate-pointcard-D8gCv0PA.js → player-elevate-pointcard-Baq8OlNX.js} +2 -2
  36. package/stencil/{player-elevate-pointcard-CcFdRk9Q.cjs → player-elevate-pointcard-DVXsZKCw.cjs} +1 -1
  37. package/stencil/{player-elevate-pointcard-DOd_C-CP.js → player-elevate-pointcard-jvw6Jdcf.js} +2 -2
  38. package/components/CasinoHamburgerMenuNd-ByOv9WYg.js +0 -5425
  39. package/components/CasinoHamburgerMenuNd-C0vs2463.js +0 -5463
  40. package/components/CasinoHamburgerMenuNd-C_mDzbID.cjs +0 -5
  41. package/components/CasinoHeaderControllerNd-C0iBDw78.cjs +0 -1
  42. package/components/PlayerAccountBalanceModalNd-B4Yp_9Au.js +0 -1557
  43. package/components/PlayerAccountBalanceModalNd-CjlZ6-7s.cjs +0 -13
  44. package/components/PlayerAccountBalanceModalNd-bDU8dGTK.js +0 -1586
  45. package/components/PlayerDeposit-DGMSukDR.cjs +0 -1
  46. package/stencil/gamification-dropdown-370424de-CedFjFMQ.js +0 -103
  47. package/stencil/gamification-dropdown-370424de-G0GDuoBY.js +0 -121
  48. package/stencil/gamification-dropdown-370424de-pf_jqgr1.cjs +0 -1
  49. package/stencil/gamification-dropdown-BhM9nF9V.js +0 -25
  50. package/stencil/gamification-dropdown-CnI6W6X-.js +0 -7
  51. package/stencil/gamification-dropdown-Dy-qtuaZ.cjs +0 -1
  52. package/stencil/index-1ed44842-Dr1nsipr.cjs +0 -1
@@ -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,n,a)=>n in r?at(r,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[n]=a,Ue=(r,n)=>{for(var a in n||(n={}))it.call(n,a)&&ze(r,a,n[a]);if(He)for(var a of He(n))lt.call(n,a)&&ze(r,a,n[a]);return r},Pe=(r,n)=>ot(r,rt(n));var Xe=(r,n,a)=>new Promise((l,u)=>{var d=y=>{try{h(a.next(y))}catch(v){u(v)}},g=y=>{try{h(a.throw(y))}catch(v){u(v)}},h=y=>y.done?l(y.value):Promise.resolve(y.value).then(d,g);h((a=a.apply(r,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoHamburgerMenuNd-CDprnR9N.cjs");function Ge(r,n){t.addMessages(r,n)}function st(r){t.$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,n){(function(a){var l=a.setTimeout,u=a.clearTimeout,d=a.XMLHttpRequest,g=a.XDomainRequest,h=a.ActiveXObject,y=a.EventSource,v=a.document,_=a.Promise,M=a.fetch,D=a.Response,O=a.TextDecoder,F=a.TextEncoder,R=a.AbortController;if(typeof window!="undefined"&&typeof v!="undefined"&&!("readyState"in v)&&v.body==null&&(v.readyState="loading",window.addEventListener("load",function(e){v.readyState="complete"},!1)),d==null&&h!=null&&(d=function(){return new h("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(e){function i(){}return i.prototype=e,new i}),Date.now||(Date.now=function(){return new Date().getTime()}),R==null){var b=M;M=function(e,i){var s=i.signal;return b(e,{headers:i.headers,credentials:i.credentials,cache:i.cache}).then(function(o){var m=o.body.getReader();return s._reader=m,s._aborted&&s._reader.cancel(),{status:o.status,statusText:o.statusText,headers:o.headers,body:{getReader:function(){return m}}}})},R=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function T(){this.bitsNeeded=0,this.codePoint=0}T.prototype.decode=function(e){function i(A,E,w){if(w===1)return A>=128>>E&&A<<E<=2047;if(w===2)return A>=2048>>E&&A<<E<=55295||A>=57344>>E&&A<<E<=65535;if(w===3)return A>=65536>>E&&A<<E<=1114111;throw new Error}function s(A,E){if(A===6*1)return E>>6>15?3:E>31?2:1;if(A===6*2)return E>15?3:2;if(A===6*3)return 3;throw new Error}for(var o=65533,m="",p=this.bitsNeeded,c=this.codePoint,C=0;C<e.length;C+=1){var B=e[C];p!==0&&(B<128||B>191||!i(c<<6|B&63,p-6,s(p,c)))&&(p=0,c=o,m+=String.fromCharCode(c)),p===0?(B>=0&&B<=127?(p=0,c=B):B>=192&&B<=223?(p=6*1,c=B&31):B>=224&&B<=239?(p=6*2,c=B&15):B>=240&&B<=247?(p=6*3,c=B&7):(p=0,c=o),p!==0&&!i(c,p,s(p,c))&&(p=0,c=o)):(p-=6,c=c<<6|B&63),p===0&&(c<=65535?m+=String.fromCharCode(c):(m+=String.fromCharCode(55296+(c-65535-1>>10)),m+=String.fromCharCode(56320+(c-65535-1&1023))))}return this.bitsNeeded=p,this.codePoint=c,m};var j=function(){try{return new O().decode(new F().encode("test"),{stream:!0})==="test"}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}return!1};(O==null||F==null||!j())&&(O=T);var L=function(){};function I(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=L,this.onload=L,this.onerror=L,this.onreadystatechange=L,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=L}I.prototype.open=function(e,i){this._abort(!0);var s=this,o=this._xhr,m=1,p=0;this._abort=function(w){s._sendTimeout!==0&&(u(s._sendTimeout),s._sendTimeout=0),(m===1||m===2||m===3)&&(m=4,o.onload=L,o.onerror=L,o.onabort=L,o.onprogress=L,o.onreadystatechange=L,o.abort(),p!==0&&(u(p),p=0),w||(s.readyState=4,s.onabort(null),s.onreadystatechange())),m=0};var c=function(){if(m===1){var w=0,N="",ae=void 0;if("contentType"in o)w=200,N="OK",ae=o.contentType;else try{w=o.status,N=o.statusText,ae=o.getResponseHeader("Content-Type")}catch(Te){w=0,N="",ae=void 0}w!==0&&(m=2,s.readyState=2,s.status=w,s.statusText=N,s._contentType=ae,s.onreadystatechange())}},C=function(){if(c(),m===2||m===3){m=3;var w="";try{w=o.responseText}catch(N){}s.readyState=3,s.responseText=w,s.onprogress()}},B=function(w,N){if((N==null||N.preventDefault==null)&&(N={preventDefault:L}),C(),m===1||m===2||m===3){if(m=4,p!==0&&(u(p),p=0),s.readyState=4,w==="load")s.onload(N);else if(w==="error")s.onerror(N);else if(w==="abort")s.onabort(N);else throw new TypeError;s.onreadystatechange()}},A=function(w){o!=null&&(o.readyState===4?(!("onload"in o)||!("onerror"in o)||!("onabort"in o))&&B(o.responseText===""?"error":"load",w):o.readyState===3?"onprogress"in o||C():o.readyState===2&&c())},E=function(){p=l(function(){E()},500),o.readyState===3&&C()};"onload"in o&&(o.onload=function(w){B("load",w)}),"onerror"in o&&(o.onerror=function(w){B("error",w)}),"onabort"in o&&(o.onabort=function(w){B("abort",w)}),"onprogress"in o&&(o.onprogress=C),"onreadystatechange"in o&&(o.onreadystatechange=function(w){A(w)}),("contentType"in o||!("ontimeout"in d.prototype))&&(i+=(i.indexOf("?")===-1?"?":"&")+"padding=true"),o.open(e,i,!0),"readyState"in o&&(p=l(function(){E()},0))},I.prototype.abort=function(){this._abort(!1)},I.prototype.getResponseHeader=function(e){return this._contentType},I.prototype.setRequestHeader=function(e,i){var s=this._xhr;"setRequestHeader"in s&&s.setRequestHeader(e,i)},I.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},I.prototype.send=function(){if((!("ontimeout"in d.prototype)||!("sendAsBinary"in d.prototype)&&!("mozAnon"in d.prototype))&&v!=null&&v.readyState!=null&&v.readyState!=="complete"){var e=this;e._sendTimeout=l(function(){e._sendTimeout=0,e.send()},4);return}var i=this._xhr;"withCredentials"in i&&(i.withCredentials=this.withCredentials);try{i.send(void 0)}catch(s){throw s}};function te(e){return e.replace(/[A-Z]/g,function(i){return String.fromCharCode(i.charCodeAt(0)+32)})}function Q(e){for(var i=Object.create(null),s=e.split(`\r
6
+ `),o=0;o<s.length;o+=1){var m=s[o],p=m.split(": "),c=p.shift(),C=p.join(": ");i[te(c)]=C}this._map=i}Q.prototype.get=function(e){return this._map[te(e)]},d!=null&&d.HEADERS_RECEIVED==null&&(d.HEADERS_RECEIVED=2);function q(){}q.prototype.open=function(e,i,s,o,m,p,c){e.open("GET",m);var C=0;e.onprogress=function(){var A=e.responseText,E=A.slice(C);C+=E.length,s(E)},e.onerror=function(A){A.preventDefault(),o(new Error("NetworkError"))},e.onload=function(){o(null)},e.onabort=function(){o(null)},e.onreadystatechange=function(){if(e.readyState===d.HEADERS_RECEIVED){var A=e.status,E=e.statusText,w=e.getResponseHeader("Content-Type"),N=e.getAllResponseHeaders();i(A,E,w,new Q(N))}},e.withCredentials=p;for(var B in c)Object.prototype.hasOwnProperty.call(c,B)&&e.setRequestHeader(B,c[B]);return e.send(),e};function k(e){this._headers=e}k.prototype.get=function(e){return this._headers.get(e)};function S(){}S.prototype.open=function(e,i,s,o,m,p,c){var C=null,B=new R,A=B.signal,E=new O;return M(m,{headers:c,credentials:p?"include":"same-origin",signal:A,cache:"no-store"}).then(function(w){return C=w.body.getReader(),i(w.status,w.statusText,w.headers.get("Content-Type"),new k(w.headers)),new _(function(N,ae){var Te=function(){C.read().then(function(W){if(W.done)N(void 0);else{var P=E.decode(W.value,{stream:!0});s(P),Te()}}).catch(function(W){ae(W)})};Te()})}).catch(function(w){if(w.name!=="AbortError")return w}).then(function(w){o(w)}),{abort:function(){C!=null&&C.cancel(),B.abort()}}};function V(){this._listeners=Object.create(null)}function x(e){l(function(){throw e},0)}V.prototype.dispatchEvent=function(e){e.target=this;var i=this._listeners[e.type];if(i!=null)for(var s=i.length,o=0;o<s;o+=1){var m=i[o];try{typeof m.handleEvent=="function"?m.handleEvent(e):m.call(this,e)}catch(p){x(p)}}},V.prototype.addEventListener=function(e,i){e=String(e);var s=this._listeners,o=s[e];o==null&&(o=[],s[e]=o);for(var m=!1,p=0;p<o.length;p+=1)o[p]===i&&(m=!0);m||o.push(i)},V.prototype.removeEventListener=function(e,i){e=String(e);var s=this._listeners,o=s[e];if(o!=null){for(var m=[],p=0;p<o.length;p+=1)o[p]!==i&&m.push(o[p]);m.length===0?delete s[e]:s[e]=m}};function f(e){this.type=e,this.target=void 0}function le(e,i){f.call(this,e),this.data=i.data,this.lastEventId=i.lastEventId}le.prototype=Object.create(f.prototype);function we(e,i){f.call(this,e),this.status=i.status,this.statusText=i.statusText,this.headers=i.headers}we.prototype=Object.create(f.prototype);function se(e,i){f.call(this,e),this.error=i.error}se.prototype=Object.create(f.prototype);var he=-1,ne=0,ce=1,ue=2,fe=-1,Z=0,be=1,me=2,Ce=3,Me=/^text\/event\-stream(;.*)?$/i,_e=1e3,De=18e6,Be=function(e,i){var s=e==null?i:parseInt(e,10);return s!==s&&(s=i),ge(s)},ge=function(e){return Math.min(Math.max(e,_e),De)},de=function(e,i,s){try{typeof i=="function"&&i.call(e,s)}catch(o){x(o)}};function K(e,i){V.call(this),i=i||{},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,e,i)}function Oe(){return d!=null&&"withCredentials"in d.prototype||g==null?new d:new g}var Le=M!=null&&D!=null&&"body"in D.prototype;function ke(e,i,s){i=String(i);var o=!!s.withCredentials,m=s.lastEventIdQueryParameterName||"lastEventId",p=ge(1e3),c=Be(s.heartbeatTimeout,45e3),C="",B=p,A=!1,E=0,w=s.headers||{},N=s.Transport,ae=Le&&N==null?void 0:new I(N!=null?new N:Oe()),Te=N!=null&&typeof N!="string"?new N:ae==null?new S:new q,W=void 0,P=0,$=he,ye="",Re="",oe="",xe="",X=Z,Fe=0,pe=0,tt=function(z,H,Y,J){if($===ne)if(z===200&&Y!=null&&Me.test(Y)){$=ce,A=Date.now(),B=p,e.readyState=ce;var G=new we("open",{status:z,statusText:H,headers:J});e.dispatchEvent(G),de(e,e.onopen,G)}else{var U="";z!==200?(H&&(H=H.replace(/\s+/g," ")),U="EventSource's response has a status "+z+" "+H+" that is not 200. Aborting the connection."):U="EventSource's response has a Content-Type specifying an unsupported type: "+(Y==null?"-":Y.replace(/\s+/g," "))+". Aborting the connection.",Ne();var G=new we("error",{status:z,statusText:H,headers:J});e.dispatchEvent(G),de(e,e.onerror,G),console.error(U)}},nt=function(z){if($===ce){for(var H=-1,Y=0;Y<z.length;Y+=1){var J=z.charCodeAt(Y);(J===10||J===13)&&(H=Y)}var G=(H!==-1?xe:"")+z.slice(0,H+1);xe=(H===-1?xe:"")+z.slice(H+1),z!==""&&(A=Date.now(),E+=z.length);for(var U=0;U<G.length;U+=1){var J=G.charCodeAt(U);if(X===fe&&J===10)X=Z;else if(X===fe&&(X=Z),J===13||J===10){if(X!==Z){X===be&&(pe=U+1);var re=G.slice(Fe,pe-1),ie=G.slice(pe+(pe<U&&G.charCodeAt(pe)===32?1:0),U);re==="data"?(ye+=`
7
+ `,ye+=ie):re==="id"?Re=ie:re==="event"?oe=ie:re==="retry"?(p=Be(ie,p),B=p):re==="heartbeatTimeout"&&(c=Be(ie,c),P!==0&&(u(P),P=l(function(){Se()},c)))}if(X===Z){if(ye!==""){C=Re,oe===""&&(oe="message");var ve=new le(oe,{data:ye.slice(1),lastEventId:Re});if(e.dispatchEvent(ve),oe==="open"?de(e,e.onopen,ve):oe==="message"?de(e,e.onmessage,ve):oe==="error"&&de(e,e.onerror,ve),$===ue)return}ye="",oe=""}X=J===13?fe:Z}else X===Z&&(Fe=U,X=be),X===be?J===58&&(pe=U+1,X=me):X===me&&(X=Ce)}}},je=function(z){if($===ce||$===ne){$=he,P!==0&&(u(P),P=0),P=l(function(){Se()},B),B=ge(Math.min(p*16,B*2)),e.readyState=ne;var H=new se("error",{error:z});e.dispatchEvent(H),de(e,e.onerror,H),z!=null&&console.error(z)}},Ne=function(){$=ue,W!=null&&(W.abort(),W=void 0),P!==0&&(u(P),P=0),e.readyState=ue},Se=function(){if(P=0,$!==he){if(!A&&W!=null)je(new Error("No activity within "+c+" milliseconds. "+($===ne?"No response received.":E+" chars received.")+" Reconnecting.")),W!=null&&(W.abort(),W=void 0);else{var z=Math.max((A||Date.now())+c-Date.now(),1);A=!1,P=l(function(){Se()},z)}return}A=!1,E=0,P=l(function(){Se()},c),$=ne,ye="",oe="",Re=C,xe="",Fe=0,pe=0,X=Z;var H=i;if(i.slice(0,5)!=="data:"&&i.slice(0,5)!=="blob:"&&C!==""){var Y=i.indexOf("?");H=Y===-1?i:i.slice(0,Y+1)+i.slice(Y+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(ie,ve){return ve===m?"":ie}),H+=(i.indexOf("?")===-1?"?":"&")+m+"="+encodeURIComponent(C)}var J=e.withCredentials,G={};G.Accept="text/event-stream";var U=e.headers;if(U!=null)for(var re in U)Object.prototype.hasOwnProperty.call(U,re)&&(G[re]=U[re]);try{W=Te.open(ae,tt,nt,je,H,J,G)}catch(ie){throw Ne(),ie}};e.url=i,e.readyState=ne,e.withCredentials=o,e.headers=w,e._close=Ne,Se()}K.prototype=Object.create(V.prototype),K.prototype.CONNECTING=ne,K.prototype.OPEN=ce,K.prototype.CLOSED=ue,K.prototype.close=function(){this._close()},K.CONNECTING=ne,K.OPEN=ce,K.CLOSED=ue,K.prototype.withCredentials=void 0;var Ae=y;d!=null&&(y==null||!("withCredentials"in y.prototype))&&(Ae=K),function(e){{var i=e(n);i!==void 0&&(r.exports=i)}}(function(e){e.EventSourcePolyfill=K,e.NativeEventSource=y,e.EventSource=Ae})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:t.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(n){return Math.round(n)},Ve=function(n){return Math.pow(10,n)},ut=function(n,a){return $e(n/a)*a},ft=/(\d)(?=(\d{3})+\b)/g,pt=/(\d)(?=(\d\d)+\d\b)/g;function ee(r,n){var a=this;if(!(a instanceof ee))return new ee(r,n);var l=Object.assign({},dt,n),u=Ve(l.precision),d=Ee(r,l);a.intValue=d,a.value=d/u,l.increment=l.increment||1/u,l.useVedic?l.groups=pt:l.groups=ft,this.s=l,this.p=u}function Ee(r,n){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=0,u=n.decimal,d=n.errorOnInvalid,g=n.precision,h=n.fromCents,y=Ve(g),v=typeof r=="number",_=r instanceof ee;if(_&&h)return r.intValue;if(v||_)l=_?r.value:r;else if(typeof r=="string"){var M=new RegExp("[^-\\d"+u+"]","g"),D=new RegExp("\\"+u,"g");l=r.replace(/\((.*)\)/,"-$1").replace(M,"").replace(D,"."),l=l||0}else{if(d)throw Error("Invalid Input");l=0}return h||(l*=y,l=l.toFixed(4)),a?$e(l):l}function ht(r,n){var a=n.pattern,l=n.negativePattern,u=n.symbol,d=n.separator,g=n.decimal,h=n.groups,y=(""+r).replace(/^-/,"").split("."),v=y[0],_=y[1];return(r.value>=0?a:l).replace("!",u).replace("#",v.replace(h,"$1"+d)+(_?g+_:""))}ee.prototype={add:function(n){var a=this.intValue,l=this.s,u=this.p;return ee((a+=Ee(n,l))/(l.fromCents?1:u),l)},subtract:function(n){var a=this.intValue,l=this.s,u=this.p;return ee((a-=Ee(n,l))/(l.fromCents?1:u),l)},multiply:function(n){var a=this.intValue,l=this.s;return ee((a*=n)/(l.fromCents?1:Ve(l.precision)),l)},divide:function(n){var a=this.intValue,l=this.s;return ee(a/=Ee(n,l,!1),l)},distribute:function(n){for(var a=this.intValue,l=this.p,u=this.s,d=[],g=Math[a>=0?"floor":"ceil"](a/n),h=Math.abs(a-g*n),y=u.fromCents?1:l;n!==0;n--){var v=ee(g/y,u);h-- >0&&(v=v[a>=0?"add":"subtract"](1/y)),d.push(v)}return d},dollars:function(){return~~this.value},cents:function(){var n=this.intValue,a=this.p;return~~(n%a)},format:function(n){var a=this.s;return typeof n=="function"?n(this,a):a.format(this,Object.assign({},a,n))},toString:function(){var n=this.intValue,a=this.p,l=this.s;return ut(n/a,l.increment).toFixed(l.precision)},toJSON:function(){return this.value}};function mt(r){t.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,n,a){const l=r.slice();return l[50]=n[a],l}function We(r,n,a){const l=r.slice();return l[53]=n[a],l}function gt(r){let n,a,l=(r[1].Total?r[8](r[1].Total[0].amount):"0")+"",u,d,g,h,y,v,_,M,D,O,F,R,b=r[4]&&Ye(r);return{c(){n=t.element("div"),a=t.element("p"),u=t.text(l),d=t.space(),g=t.text(r[5]),h=t.space(),y=t.element("span"),v=t.svg_element("svg"),_=t.svg_element("path"),D=t.space(),b&&b.c(),O=t.empty(),t.attr(_,"id","arrow"),t.attr(_,"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"),t.attr(_,"transform","translate(-274.511 -441.088)"),t.attr(_,"fill","#d1d1d1"),t.attr(v,"xmlns","http://www.w3.org/2000/svg"),t.attr(v,"width","14"),t.attr(v,"height","6.835"),t.attr(v,"viewBox","0 0 14 6.835"),t.attr(y,"class",M=r[3]?"TriangleActive":"TriangleInactive"),t.attr(n,"class","BalanceValue")},m(T,j){t.insert(T,n,j),t.append(n,a),t.append(a,u),t.append(a,d),t.append(a,g),t.append(n,h),t.append(n,y),t.append(y,v),t.append(v,_),t.insert(T,D,j),b&&b.m(T,j),t.insert(T,O,j),F||(R=t.listen(n,"click",r[25]),F=!0)},p(T,j){j[0]&2&&l!==(l=(T[1].Total?T[8](T[1].Total[0].amount):"0")+"")&&t.set_data(u,l),j[0]&32&&t.set_data(g,T[5]),j[0]&8&&M!==(M=T[3]?"TriangleActive":"TriangleInactive")&&t.attr(y,"class",M),T[4]?b?b.p(T,j):(b=Ye(T),b.c(),b.m(O.parentNode,O)):b&&(b.d(1),b=null)},d(T){T&&(t.detach(n),t.detach(D),t.detach(O)),b&&b.d(T),F=!1,R()}}}function yt(r){let n,a=r[6]("Loading")+"",l;return{c(){n=t.element("p"),l=t.text(a),t.attr(n,"class","Loading")},m(u,d){t.insert(u,n,d),t.append(n,l)},p(u,d){d[0]&64&&a!==(a=u[6]("Loading")+"")&&t.set_data(l,a)},d(u){u&&t.detach(n)}}}function Ye(r){let n,a,l,u,d,g,h,y,v=r[6]("Title")+"",_,M,D,O,F,R,b=r[6]("DepositButton")+"",T,j,L,I,te,Q,q=t.ensure_array_like(Object.keys(r[1])),k=[];for(let S=0;S<q.length;S+=1)k[S]=Qe(Ke(r,q,S));return{c(){n=t.element("div"),a=t.element("div"),u=t.space(),d=t.element("div"),g=t.element("div"),h=t.element("div"),y=t.element("p"),_=t.text(v),M=t.space(),D=t.element("div");for(let S=0;S<k.length;S+=1)k[S].c();O=t.space(),F=t.element("div"),R=t.element("button"),T=t.text(b),t.attr(a,"class",l="BalanceModalClose "+(r[3]?"Open":"")),t.attr(y,"class","BalanceModalTitle"),t.attr(h,"class","BalanceModalHeader"),t.attr(D,"class","BalanceModalBody"),t.attr(R,"class","BalanceModalAction"),t.attr(F,"class","BalanceModalFooter"),t.attr(g,"class",j="ModalContent "+(r[3]?"Open":"")),t.attr(d,"class",L="BalanceModal "+(r[3]?"Open":"")),t.attr(n,"class",I="BalanceModalWrapper "+(r[3]?"Open":""))},m(S,V){t.insert(S,n,V),t.append(n,a),t.append(n,u),t.append(n,d),t.append(d,g),t.append(g,h),t.append(h,y),t.append(y,_),t.append(g,M),t.append(g,D);for(let x=0;x<k.length;x+=1)k[x]&&k[x].m(D,null);t.append(g,O),t.append(g,F),t.append(F,R),t.append(R,T),te||(Q=[t.listen(a,"click",r[26]),t.listen(R,"click",r[27])],te=!0)},p(S,V){if(V[0]&8&&l!==(l="BalanceModalClose "+(S[3]?"Open":""))&&t.attr(a,"class",l),V[0]&64&&v!==(v=S[6]("Title")+"")&&t.set_data(_,v),V[0]&354){q=t.ensure_array_like(Object.keys(S[1]));let x;for(x=0;x<q.length;x+=1){const f=Ke(S,q,x);k[x]?k[x].p(f,V):(k[x]=Qe(f),k[x].c(),k[x].m(D,null))}for(;x<k.length;x+=1)k[x].d(1);k.length=q.length}V[0]&64&&b!==(b=S[6]("DepositButton")+"")&&t.set_data(T,b),V[0]&8&&j!==(j="ModalContent "+(S[3]?"Open":""))&&t.attr(g,"class",j),V[0]&8&&L!==(L="BalanceModal "+(S[3]?"Open":""))&&t.attr(d,"class",L),V[0]&8&&I!==(I="BalanceModalWrapper "+(S[3]?"Open":""))&&t.attr(n,"class",I)},d(S){S&&t.detach(n),t.destroy_each(k,S),te=!1,t.run_all(Q)}}}function Je(r){let n,a,l=r[6](r[50])+"",u,d,g=(r[53].productType?r[6](r[53].productType):"")+"",h,y,v,_,M=(r[53].amount?r[8](r[53].amount):"0")+"",D,O,F,R;return{c(){n=t.element("div"),a=t.element("p"),u=t.text(l),d=t.space(),h=t.text(g),y=t.space(),v=t.element("p"),_=t.element("span"),D=t.text(M),O=t.space(),F=t.element("span"),R=t.text(r[5]),t.attr(a,"class","BalanceModalText"),t.attr(_,"class","BalanceModalAmount"),t.attr(F,"class","BalanceModalCurrency"),t.attr(v,"class","BalanceModalValue"),t.attr(n,"class","BalanceModalRowLine")},m(b,T){t.insert(b,n,T),t.append(n,a),t.append(a,u),t.append(a,d),t.append(a,h),t.append(n,y),t.append(n,v),t.append(v,_),t.append(_,D),t.append(v,O),t.append(v,F),t.append(F,R)},p(b,T){T[0]&66&&l!==(l=b[6](b[50])+"")&&t.set_data(u,l),T[0]&66&&g!==(g=(b[53].productType?b[6](b[53].productType):"")+"")&&t.set_data(h,g),T[0]&2&&M!==(M=(b[53].amount?b[8](b[53].amount):"0")+"")&&t.set_data(D,M),T[0]&32&&t.set_data(R,b[5])},d(b){b&&t.detach(n)}}}function Qe(r){let n,a,l=t.ensure_array_like(r[1][r[50]]),u=[];for(let d=0;d<l.length;d+=1)u[d]=Je(We(r,l,d));return{c(){n=t.element("div");for(let d=0;d<u.length;d+=1)u[d].c();a=t.space(),t.attr(n,"class","BalanceModalRowBoth")},m(d,g){t.insert(d,n,g);for(let h=0;h<u.length;h+=1)u[h]&&u[h].m(n,null);t.append(n,a)},p(d,g){if(g[0]&354){l=t.ensure_array_like(d[1][d[50]]);let h;for(h=0;h<l.length;h+=1){const y=We(d,l,h);u[h]?u[h].p(y,g):(u[h]=Je(y),u[h].c(),u[h].m(n,a))}for(;h<u.length;h+=1)u[h].d(1);u.length=l.length}},d(d){d&&t.detach(n),t.destroy_each(u,d)}}}function Ze(r){let n,a,l;return{c(){n=t.element("div"),t.attr(n,"class","ShowBalanceModalOverlay")},m(u,d){t.insert(u,n,d),a||(l=t.listen(n,"click",r[28]),a=!0)},p:t.noop,d(u){u&&t.detach(n),a=!1,l()}}}function vt(r){let n,a,l;function u(y,v){return y[2]?yt:gt}let d=u(r),g=d(r),h=r[4]&&Ze(r);return{c(){n=t.element("div"),a=t.element("div"),g.c(),l=t.space(),h&&h.c(),t.attr(a,"class","ShowBalance")},m(y,v){t.insert(y,n,v),t.append(n,a),g.m(a,null),t.append(n,l),h&&h.m(n,null),r[29](n)},p(y,v){d===(d=u(y))&&g?g.p(y,v):(g.d(1),g=d(y),g&&(g.c(),g.m(a,null))),y[4]?h?h.p(y,v):(h=Ze(y),h.c(),h.m(n,null)):h&&(h.d(1),h=null)},i:t.noop,o:t.noop,d(y){y&&t.detach(n),g.d(),h&&h.d(),r[29](null)}}}function wt(r,n,a){let l;t.component_subscribe(r,t.$format,e=>a(6,l=e));let{userid:u=""}=n,{session:d=""}=n,{endpoint:g=""}=n,{lang:h="en"}=n,{mbsource:y}=n,{clientstyling:v=""}=n,{clientstylingurl:_=""}=n,{translationurl:M=""}=n,{customlocaleidentifier:D=""}=n,{gmversion:O="gm16"}=n,{displaybalanceoption:F="All"}=n,{totalcalculationmode:R="totalCashAmount"}=n,{currencyseparator:b=""}=n,{currencydecimal:T=""}=n,{currencyprecision:j=""}=n,L,I,te,Q,q=!1,k="",S=[],V,x=!1;const f={},le=["totalCashAmount","totalRealAmount"],we=()=>{fetch(M).then(e=>e.json()).then(e=>Object.keys(e).forEach(i=>Ge(i,e[i]))).catch(e=>console.log(e))};Object.keys(qe).forEach(e=>Ge(e,qe[e]));const se=e=>{switch(e){case"balance":window.postMessage({type:"BalanceModalStatus",status:"open"},window.location.href),a(4,q=!0),setTimeout(()=>a(3,te=!0),150);break;case"closebalance":a(3,te=!1),window.postMessage({type:"BalanceModalStatus",status:"close"},window.location.href),setTimeout(()=>{a(4,q=!1)},150);break}},he=()=>{if(D.includes(h))return D},ne=e=>D?new Intl.NumberFormat(he(),{useGrouping:!0}).format(e):b&&T?ee(e,{separator:b,decimal:T,symbol:"",precision:parseInt(j||"2",10)}).format():ee(e,{separator:".",decimal:",",symbol:"",precision:parseInt(j||"2",10)}).format(),ce=()=>Xe(this,null,function*(){var i,s,o;a(2,L=!0);const e=new URL(`${g}/v1/player/${u}/account`);try{const m=yield fetch(e,{method:"GET",headers:{"X-SessionID":d}}),p=yield m.json();if(m.ok)window.postMessage({type:"BalancedFetched"},window.location.href),S=p.items,a(5,k=(i=S.find(c=>c.displayName==="Casino"))==null?void 0:i.currency),a(1,f.Total=[{amount:p.totalAmount[k]}],f),a(1,f.Real=[{amount:(s=S.find(c=>c.displayName==="Casino"))==null?void 0:s.balanceAmount}],f),a(1,f.Bonus=[{amount:(o=S.find(c=>c.displayName==="UBS"))==null?void 0:o.balanceAmount}],f);else throw new Error("Failed to fetch balance data !")}catch(m){console.log("Balance error: ",m)}finally{a(2,L=!1)}}),ue=()=>{a(2,L=!0);const e=new URL(`${g}/v2/player/${u}/balance`),i=new Headers;i.append("X-SessionID",d),fetch(e,{method:"GET",headers:i}).then(o=>o.json()).then(o=>{o[R]||a(10,R=le[0]);const m=o.items.find(c=>c.type==="Real"&&c.walletAccountType==="Ordinary");if(a(5,k=m.currency),x=!!m.productType,a(1,f.Total=[{amount:0}],f),a(1,f.Real=[],f),a(1,f.Bonus=[],f),a(1,f.Credit=[],f),!x){V={lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},a(1,f.Total[0].amount=o[R][k],f);for(const c of o.items)switch(c.type){case"Bonus":f.Bonus.length===0?f.Bonus.push({amount:c.amount}):a(1,f.Bonus[0].amount+=c.amount,f);break;case"Real":if(c.creditLine&&f.Credit.length===0&&f.Credit.push({amount:c.creditLine}),R==="totalRealAmount")continue;f.Real.length===0?f.Real.push({amount:c.amount}):a(1,f.Real[0].amount+=c.amount,f);break}for(const[c,C]of Object.entries(f))C.length<1&&delete f[c];a(2,L=!1);return}V={Casino:{lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},Sports:{lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1}};let p=o.items;F&&F!=="All"&&(p=o.items.filter(c=>c.productType===F));for(const c of p){let C;switch(c.type){case"Bonus":C=f.Bonus.findIndex(B=>B.productType===c.productType),C>0?a(1,f.Bonus[C].amount+=c.amount,f):f.Bonus.push({amount:c.amount,productType:c.productType});break;case"Real":c.creditLine&&f.Credit.push({amount:c.creditLine,productType:c.productType}),C=f.Real.findIndex(B=>B.productType===c.productType),C>0?a(1,f.Real[C].amount+=c.amount,f):f.Real.push({amount:c.amount,productType:c.productType});break}}Ce();for(const[c,C]of Object.entries(f))C.length<1&&delete f[c];a(2,L=!1)}).catch(o=>{throw a(2,L=!1),new Error("Failed to fetch balance data !")})},fe=()=>{if(Q&&Q.close(),d.length<1)return;let e,i;switch(O){case"gm16":e=new URL(`${g}/v2/player/${u}/information/updates`),i=m=>Me(m);break;case"gmcore":e=new URL(`${g}/v1/player/${u}/balance/updates`),i=m=>be(m);break}const s={accept:"text/event-stream","X-SessionId":d},o=new ct.EventSourcePolyfill(e,{headers:s});Q=o,o.addEventListener("message",i)},Z=e=>{let i;try{i=JSON.parse(e)}catch(s){console.log("Balance stream failed: ",s);return}return i},be=e=>{var m,p;const i=Z(e.data);if(!i){fe();return}let s="0";const o=i.balanceChange;S=S.map(c=>(o&&o[c.id]&&(c=Pe(Ue({},c),{balanceAmount:o[c.id].afterAmount})),s=(parseFloat(c==null?void 0:c.balanceAmount)+parseFloat(s)).toString(),c)),a(1,f.Real=[{amount:(m=S[0])==null?void 0:m.balanceAmount}],f),a(1,f.Bonus=[{amount:(p=S[1])==null?void 0:p.balanceAmount}],f),a(1,f.Total=[{amount:Number(s)}],f)},me=(e,i,s)=>{let o=null;switch(s.walletAccountType){case"Ordinary":s.afterAmount!==s.affectedAmount&&(i.lastOrdinaryAfterAmount=s.afterAmount,i.showCreditLineAfterAmount||(o=s.afterAmount));break;case"CreditLine":s.afterAmount!==0?(o=s.afterAmount,i.showCreditLineAfterAmount=!0):(o=i.lastOrdinaryAfterAmount,i.showCreditLineAfterAmount=!1);break;default:o=s.afterAmount}return o===null?e:o},Ce=()=>{switch(R){case"totalCashAmount":let e=0;for(const s of["Real","Bonus"])for(const o of f[s])e+=Math.max(o.amount,0);a(1,f.Total[0].amount=e,f);break;case"totalRealAmount":if(!x)return;let i=0;for(const s of f.Real)i+=s.amount;a(1,f.Total[0].amount=i,f)}},Me=e=>{const i=Z(e.data);if(!i){fe();return}if(i.type!=="BALANCE_UPDATE_V2")return;const s=i.body.balanceChange;for(const[o,m]of Object.entries(s))if(R==="totalRealAmount"&&o==="Real"&&!x&&a(1,f.Total[0].amount=me(f.Total[0].amount,V,m),f),!!f[o])for(const p of f[o]){if(!x){p.amount=o==="Real"?me(p.amount,V,m):m.afterAmount;continue}m.productType===p.productType&&(p.amount=o==="Real"?me(p.amount,V[p.productType],m):m.afterAmount)}Ce()},_e=()=>{se("closebalance"),window.postMessage({type:"GoToDeposit"},window.location.href),typeof gtag=="function"&&gtag("event","GoToDeposit",{context:"PlayerAccountBalanceModal"})},De=()=>{le.includes(R)||(console.error(`Unsupported value ('${R}') for totalcalculationmode parameter. Only the following values are supported ${le}. Using default value ('${le[0]}').`),a(10,R=le[0]))},Be=()=>{switch(st(h),De(),O){case"gmcore":ce();break;case"gm16":ue();break;default:throw Error(`Invalid apiversion attribute: ${O}`)}},ge=e=>e.data&&e.data.type==="LogoutSuccessfull"&&Q.close(),de=()=>{window.postMessage({type:"UpdateBalanceBackground"},window.location.href)};t.onMount(()=>(window.addEventListener("message",ge,!1),()=>{window.removeEventListener("message",ge),Q&&Q.close()}));const K=()=>se("balance"),Oe=()=>se("closebalance"),Le=()=>_e(),ke=()=>se("closeBalance");function Ae(e){t.binding_callbacks[e?"unshift":"push"](()=>{I=e,a(0,I)})}return r.$$set=e=>{"userid"in e&&a(11,u=e.userid),"session"in e&&a(12,d=e.session),"endpoint"in e&&a(13,g=e.endpoint),"lang"in e&&a(14,h=e.lang),"mbsource"in e&&a(15,y=e.mbsource),"clientstyling"in e&&a(16,v=e.clientstyling),"clientstylingurl"in e&&a(17,_=e.clientstylingurl),"translationurl"in e&&a(18,M=e.translationurl),"customlocaleidentifier"in e&&a(19,D=e.customlocaleidentifier),"gmversion"in e&&a(20,O=e.gmversion),"displaybalanceoption"in e&&a(21,F=e.displaybalanceoption),"totalcalculationmode"in e&&a(10,R=e.totalcalculationmode),"currencyseparator"in e&&a(22,b=e.currencyseparator),"currencydecimal"in e&&a(23,T=e.currencydecimal),"currencyprecision"in e&&a(24,j=e.currencyprecision)},r.$$.update=()=>{r.$$.dirty[0]&16384&&h&&he(),r.$$.dirty[0]&3176448&&g&&u&&d&&h&&O&&F&&Be(),r.$$.dirty[0]&1062912&&g&&u&&d&&O&&fe(),r.$$.dirty[0]&262144&&M&&we(),r.$$.dirty[0]&2&&f.Total&&de(),r.$$.dirty[0]&65537&&v&&I&&t.setClientStyling(I,v),r.$$.dirty[0]&131073&&_&&I&&t.setClientStylingURL(I,_),r.$$.dirty[0]&32769&&y&&I&&t.setStreamStyling(I,`${y}.Style`)},[I,f,L,te,q,k,l,se,ne,_e,R,u,d,g,h,y,v,_,M,D,O,F,b,T,j,K,Oe,Le,ke,Ae]}class et extends t.SvelteComponent{constructor(n){super(),t.init(this,n,wt,vt,t.safe_not_equal,{userid:11,session:12,endpoint:13,lang:14,mbsource:15,clientstyling:16,clientstylingurl:17,translationurl:18,customlocaleidentifier:19,gmversion:20,displaybalanceoption:21,totalcalculationmode:10,currencyseparator:22,currencydecimal:23,currencyprecision:24},mt,[-1,-1])}get userid(){return this.$$.ctx[11]}set userid(n){this.$$set({userid:n}),t.flush()}get session(){return this.$$.ctx[12]}set session(n){this.$$set({session:n}),t.flush()}get endpoint(){return this.$$.ctx[13]}set endpoint(n){this.$$set({endpoint:n}),t.flush()}get lang(){return this.$$.ctx[14]}set lang(n){this.$$set({lang:n}),t.flush()}get mbsource(){return this.$$.ctx[15]}set mbsource(n){this.$$set({mbsource:n}),t.flush()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(n){this.$$set({clientstyling:n}),t.flush()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(n){this.$$set({clientstylingurl:n}),t.flush()}get translationurl(){return this.$$.ctx[18]}set translationurl(n){this.$$set({translationurl:n}),t.flush()}get customlocaleidentifier(){return this.$$.ctx[19]}set customlocaleidentifier(n){this.$$set({customlocaleidentifier:n}),t.flush()}get gmversion(){return this.$$.ctx[20]}set gmversion(n){this.$$set({gmversion:n}),t.flush()}get displaybalanceoption(){return this.$$.ctx[21]}set displaybalanceoption(n){this.$$set({displaybalanceoption:n}),t.flush()}get totalcalculationmode(){return this.$$.ctx[10]}set totalcalculationmode(n){this.$$set({totalcalculationmode:n}),t.flush()}get currencyseparator(){return this.$$.ctx[22]}set currencyseparator(n){this.$$set({currencyseparator:n}),t.flush()}get currencydecimal(){return this.$$.ctx[23]}set currencydecimal(n){this.$$set({currencydecimal:n}),t.flush()}get currencyprecision(){return this.$$.ctx[24]}set currencyprecision(n){this.$$set({currencyprecision:n}),t.flush()}}t.create_custom_element(et,{userid:{},session:{},endpoint:{},lang:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},customlocaleidentifier:{},gmversion:{},displaybalanceoption:{},totalcalculationmode:{},currencyseparator:{},currencydecimal:{},currencyprecision:{}},[],[],!0);exports.default=et;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHamburgerMenuNd-CDprnR9N.cjs");function T(r,t){e.addMessages(r,t)}function F(r){e.$locale.set(r)}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 H(r){e.append_styles(r,"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)}")}function W(r){let t,a,o,n,c,m,d,u,f,l,s=r[4]("titleDeposit")+"",p,y,D;return{c(){t=e.element("div"),a=e.svg_element("svg"),o=e.svg_element("defs"),n=e.svg_element("style"),c=e.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),m=e.svg_element("g"),d=e.svg_element("g"),u=e.svg_element("path"),f=e.space(),l=e.element("h2"),p=e.text(s),e.attr(u,"class","aaa"),e.attr(u,"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(u,"transform","translate(15 15) rotate(180)"),e.attr(d,"transform","translate(20 158)"),e.attr(m,"transform","translate(-20 -158)"),e.attr(a,"xmlns","http://www.w3.org/2000/svg"),e.attr(a,"width","15"),e.attr(a,"height","15"),e.attr(a,"viewBox","0 0 15 15"),e.attr(l,"class","DepositTitleMobile"),e.attr(t,"class","MenuReturnButton")},m(g,h){e.insert(g,t,h),e.append(t,a),e.append(a,o),e.append(o,n),e.append(n,c),e.append(a,m),e.append(m,d),e.append(d,u),e.append(t,f),e.append(t,l),e.append(l,p),y||(D=e.listen(t,"click",r[18]),y=!0)},p(g,h){h&16&&s!==(s=g[4]("titleDeposit")+"")&&e.set_data(p,s)},d(g){g&&e.detach(t),y=!1,D()}}}function j(r){let t,a,o;return{c(){t=e.element("div"),a=e.element("iframe"),e.src_url_equal(a.src,o=r[3])||e.attr(a,"src",o),e.attr(a,"title","Deposit Iframe"),e.attr(t,"class","DepositIframeWrapper")},m(n,c){e.insert(n,t,c),e.append(t,a)},p(n,c){c&8&&!e.src_url_equal(a.src,o=n[3])&&e.attr(a,"src",o)},d(n){n&&e.detach(t)}}}function z(r){let t,a=r[4]("loading")+"",o;return{c(){t=e.element("p"),o=e.text(a)},m(n,c){e.insert(n,t,c),e.append(t,o)},p(n,c){c&16&&a!==(a=n[4]("loading")+"")&&e.set_data(o,a)},d(n){n&&e.detach(t)}}}function G(r){let t,a,o,n=r[4]("titleDeposit")+"",c,m,d=r[5]&&W(r);function u(s,p){return s[1]?z:j}let f=u(r),l=f(r);return{c(){t=e.element("div"),d&&d.c(),a=e.space(),o=e.element("h2"),c=e.text(n),m=e.space(),l.c(),e.attr(o,"class","DepositTitle "+(r[5]?"DepositTitleNone":"")),e.attr(t,"class","DepositWrapper "+(r[5]?"DepositWrapperMobile":"")),e.set_style(t,"--dynamic-height",r[2])},m(s,p){e.insert(s,t,p),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),r[19](t)},p(s,[p]){s[5]&&d.p(s,p),p&16&&n!==(n=s[4]("titleDeposit")+"")&&e.set_data(c,n),f===(f=u(s))&&l?l.p(s,p):(l.d(1),l=f(s),l&&(l.c(),l.m(t,null))),p&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(),r[19](null)}}}function N(r,t,a){let o,n;e.component_subscribe(r,e.$format,i=>a(4,n=i));let{endpoint:c=""}=t,{session:m=""}=t,{playerid:d=""}=t,{lang:u="en"}=t,{hasdefaultamount:f=""}=t,{clientstyling:l=""}=t,{clientstylingurl:s=""}=t,{translationurl:p=""}=t,{playercurrency:y=""}=t,{mbsource:D}=t,{shortcashierenabled:g="false"}=t,h,R=window.navigator.userAgent,v=e.getDevice(R)!=="PC",M=!0,k,_=0,C="";const B=()=>{fetch(p).then(w=>w.json()).then(w=>{Object.keys(w).forEach(b=>{T(b,w[b])})}).catch(w=>{console.log(w)})};Object.keys(E).forEach(i=>{T(i,E[i])});const S=()=>{window.postMessage({type:"GoToPreviousRoute",isMobile:v},window.location.href)},x=i=>{if(i.data){switch(i.data.type){case"ProfileDetailsData":a(7,y=i.data.profileDetails.currency);break}switch(i.data["MMFE:setQuickDepositHeight"]&&a(2,k=i.data["MMFE:setQuickDepositHeight"].toString()+"px"),i.data["MMFE:openFullCashier"]==="true"&&(window.postMessage({type:"GoToDeposit"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href)),i.data.redirect){case"mm-hc-casino":window.postMessage({type:"GoToCasino"},window.location.href);break;case"mm-hc-sports":window.postMessage({type:"GoToSports"},window.location.href);break;case"mm-hc-contact":window.postMessage({type:"GoToCustomerSupport"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href);break;case"mm-hc-back-to-merchant":window.postMessage({type:"GoToHomepage"},window.location.href);break;case"mm-wm-hc-init-deposit":window.postMessage({type:"RedirectWithdrawDepositCloseModal"},window.location.href);break;case"mm-wm-hc-init-deposit-quick":window.postMessage({type:"CloseShortCashier"},window.location.href);break}}},P=()=>{let i=new URL(`${c}/v1/player/${d}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);if(i.searchParams.append("language",u),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=()=>{F(u)};e.onMount(()=>(window.addEventListener("message",x,!1),()=>{window.removeEventListener("message",x)}));const U=()=>S();function A(i){e.binding_callbacks[i?"unshift":"push"](()=>{h=i,a(0,h)})}return r.$$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,u=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,p=i.translationurl),"playercurrency"in i&&a(7,y=i.playercurrency),"mbsource"in i&&a(16,D=i.mbsource),"shortcashierenabled"in i&&a(17,g=i.shortcashierenabled)},r.$$.update=()=>{r.$$.dirty&2048&&u&&I(),r.$$.dirty&131072&&(o=g.toLocaleLowerCase()==="true"),r.$$.dirty&8193&&l&&h&&e.setClientStyling(h,l),r.$$.dirty&16385&&s&&h&&e.setClientStylingURL(h,s),r.$$.dirty&65537&&D&&h&&e.setStreamStyling(h,`${D}.Style`),r.$$.dirty&32768&&p&&B(),r.$$.dirty&135040&&m&&d&&c&&y&&u&&g&&P()},[h,M,k,C,n,v,S,y,c,m,d,u,f,l,s,p,D,g,U,A]}class L extends e.SvelteComponent{constructor(t){super(),e.init(this,t,N,G,e.safe_not_equal,{endpoint:8,session:9,playerid:10,lang:11,hasdefaultamount:12,clientstyling:13,clientstylingurl:14,translationurl:15,playercurrency:7,mbsource:16,shortcashierenabled:17},H)}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 playercurrency(){return this.$$.ctx[7]}set playercurrency(t){this.$$set({playercurrency: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:{},playercurrency:{},mbsource:{},shortcashierenabled:{}},[],[],!0);exports.default=L;
@@ -1,9 +1,9 @@
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-ByOv9WYg.js";
2
- function W(a, e) {
3
- V(a, e);
1
+ import { b as K, $ as V, S as X, i as Z, s as J, f as w, d as $, z as U, g as S, D as L, P as z, m as x, n as h, p as M, q as E, E as C, r as d, v as ee, I as te, w as ie, o as ae, F as k, A as se, B as W, L as re, M as ne, N as oe, c as le, K as ce } from "./CasinoHamburgerMenuNd-BXOxWDnU.js";
2
+ function H(a, e) {
3
+ K(a, e);
4
4
  }
5
- function le(a) {
6
- X.set(a);
5
+ function de(a) {
6
+ V.set(a);
7
7
  }
8
8
  const j = {
9
9
  en: {
@@ -47,49 +47,49 @@ const j = {
47
47
  Loading: "Cargando, por favor espere..."
48
48
  }
49
49
  };
50
- function ce(a) {
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)}");
50
+ function ue(a) {
51
+ $(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
- function de(a) {
54
- let e, i, n, s, l, m, c, u, y, o, r = (
53
+ function he(a) {
54
+ let e, i, n, s, l, m, c, p, y, o, r = (
55
55
  /*$_*/
56
56
  a[4]("titleDeposit") + ""
57
- ), h, D, v;
57
+ ), u, b, _;
58
58
  return {
59
59
  c() {
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");
60
+ e = M("div"), i = k("svg"), n = k("defs"), s = k("style"), l = C(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), m = k("g"), c = k("g"), p = k("path"), y = E(), o = M("h2"), u = C(r), d(p, "class", "aaa"), d(p, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), d(p, "transform", "translate(15 15) rotate(180)"), d(c, "transform", "translate(20 158)"), d(m, "transform", "translate(-20 -158)"), d(i, "xmlns", "http://www.w3.org/2000/svg"), d(i, "width", "15"), d(i, "height", "15"), d(i, "viewBox", "0 0 15 15"), d(o, "class", "DepositTitleMobile"), d(e, "class", "MenuReturnButton");
61
61
  },
62
- 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(
62
+ m(f, g) {
63
+ x(f, e, g), h(e, i), h(i, n), h(n, s), h(s, l), h(i, m), h(m, c), h(c, p), h(e, y), h(e, o), h(o, u), b || (_ = ae(
64
64
  e,
65
65
  "click",
66
66
  /*click_handler*/
67
- a[17]
68
- ), D = !0);
67
+ a[18]
68
+ ), b = !0);
69
69
  },
70
- p(g, k) {
71
- k & /*$_*/
70
+ p(f, g) {
71
+ g & /*$_*/
72
72
  16 && r !== (r = /*$_*/
73
- g[4]("titleDeposit") + "") && L(h, r);
73
+ f[4]("titleDeposit") + "") && L(u, r);
74
74
  },
75
- d(g) {
76
- g && S(e), D = !1, v();
75
+ d(f) {
76
+ f && S(e), b = !1, _();
77
77
  }
78
78
  };
79
79
  }
80
- function he(a) {
80
+ function pe(a) {
81
81
  let e, i, n;
82
82
  return {
83
83
  c() {
84
- e = _("div"), i = _("iframe"), z(i.src, n = /*iframeUrl*/
84
+ e = M("div"), i = M("iframe"), W(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
- T(s, e, l), p(e, i);
88
+ x(s, e, l), h(e, i);
89
89
  },
90
90
  p(s, l) {
91
91
  l & /*iframeUrl*/
92
- 8 && !z(i.src, n = /*iframeUrl*/
92
+ 8 && !W(i.src, n = /*iframeUrl*/
93
93
  s[3]) && d(i, "src", n);
94
94
  },
95
95
  d(s) {
@@ -97,17 +97,17 @@ function he(a) {
97
97
  }
98
98
  };
99
99
  }
100
- function pe(a) {
100
+ function ge(a) {
101
101
  let e, i = (
102
102
  /*$_*/
103
103
  a[4]("loading") + ""
104
104
  ), n;
105
105
  return {
106
106
  c() {
107
- e = _("p"), n = C(i);
107
+ e = M("p"), n = C(i);
108
108
  },
109
109
  m(s, l) {
110
- T(s, e, l), p(e, n);
110
+ x(s, e, l), h(e, n);
111
111
  },
112
112
  p(s, l) {
113
113
  l & /*$_*/
@@ -119,80 +119,80 @@ function pe(a) {
119
119
  }
120
120
  };
121
121
  }
122
- function ue(a) {
122
+ function me(a) {
123
123
  let e, i, n, s = (
124
124
  /*$_*/
125
125
  a[4]("titleDeposit") + ""
126
126
  ), l, m, c = (
127
127
  /*isMobile*/
128
- a[5] && de(a)
128
+ a[5] && he(a)
129
129
  );
130
- function u(r, h) {
130
+ function p(r, u) {
131
131
  return (
132
132
  /*isLoading*/
133
- r[1] ? pe : he
133
+ r[1] ? ge : pe
134
134
  );
135
135
  }
136
- let y = u(a), o = y(a);
136
+ let y = p(a), o = y(a);
137
137
  return {
138
138
  c() {
139
- e = _("div"), c && c.c(), i = E(), n = _("h2"), l = C(s), m = E(), o.c(), d(n, "class", "DepositTitle " + /*isMobile*/
139
+ e = M("div"), c && c.c(), i = E(), n = M("h2"), l = C(s), m = E(), o.c(), d(n, "class", "DepositTitle " + /*isMobile*/
140
140
  (a[5] ? "DepositTitleNone" : "")), d(e, "class", "DepositWrapper " + /*isMobile*/
141
- (a[5] ? "DepositWrapperMobile" : "")), P(
141
+ (a[5] ? "DepositWrapperMobile" : "")), z(
142
142
  e,
143
143
  "--dynamic-height",
144
144
  /*dynamicHeight*/
145
145
  a[2]
146
146
  );
147
147
  },
148
- m(r, h) {
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);
148
+ m(r, u) {
149
+ x(r, e, u), c && c.m(e, null), h(e, i), h(e, n), h(n, l), h(e, m), o.m(e, null), a[19](e);
150
150
  },
151
- p(r, [h]) {
151
+ p(r, [u]) {
152
152
  /*isMobile*/
153
- r[5] && c.p(r, h), h & /*$_*/
153
+ r[5] && c.p(r, u), u & /*$_*/
154
154
  16 && s !== (s = /*$_*/
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
- 4 && P(
155
+ r[4]("titleDeposit") + "") && L(l, s), y === (y = p(r)) && o ? o.p(r, u) : (o.d(1), o = y(r), o && (o.c(), o.m(e, null))), u & /*dynamicHeight*/
156
+ 4 && z(
157
157
  e,
158
158
  "--dynamic-height",
159
159
  /*dynamicHeight*/
160
160
  r[2]
161
161
  );
162
162
  },
163
- i: H,
164
- o: H,
163
+ i: U,
164
+ o: U,
165
165
  d(r) {
166
- r && S(e), c && c.d(), o.d(), a[18](null);
166
+ r && S(e), c && c.d(), o.d(), a[19](null);
167
167
  }
168
168
  };
169
169
  }
170
- function ge(a, e, i) {
170
+ function fe(a, e, i) {
171
171
  let n, s;
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
- const G = () => {
175
- fetch(h).then((w) => w.json()).then((w) => {
176
- Object.keys(w).forEach((f) => {
177
- W(f, w[f]);
172
+ ee(a, ce, (t) => i(4, s = t));
173
+ let { endpoint: l = "" } = e, { session: m = "" } = e, { playerid: c = "" } = e, { lang: p = "en" } = e, { hasdefaultamount: y = "" } = e, { clientstyling: o = "" } = e, { clientstylingurl: r = "" } = e, { translationurl: u = "" } = e, { playercurrency: b = "" } = e, { mbsource: _ } = e, { shortcashierenabled: f = "false" } = e, g, G = window.navigator.userAgent, R = te(G) !== "PC", B = !0, I, T = 0, P = "";
174
+ const N = () => {
175
+ fetch(u).then((D) => D.json()).then((D) => {
176
+ Object.keys(D).forEach((v) => {
177
+ H(v, D[v]);
178
178
  });
179
- }).catch((w) => {
180
- console.log(w);
179
+ }).catch((D) => {
180
+ console.log(D);
181
181
  });
182
182
  };
183
183
  Object.keys(j).forEach((t) => {
184
- W(t, j[t]);
184
+ H(t, j[t]);
185
185
  });
186
- const U = () => {
186
+ const A = () => {
187
187
  window.postMessage({ type: "GoToPreviousRoute", isMobile: R }, window.location.href);
188
- }, A = (t) => {
188
+ }, F = (t) => {
189
189
  if (t.data) {
190
190
  switch (t.data.type) {
191
191
  case "ProfileDetailsData":
192
- i(7, D = t.data.profileDetails.currency);
192
+ i(7, b = t.data.profileDetails.currency);
193
193
  break;
194
194
  }
195
- switch (t.data["MMFE:setQuickDepositHeight"] && i(2, F = t.data["MMFE:setQuickDepositHeight"].toString() + "px"), t.data["MMFE:openFullCashier"] === "true" && (window.postMessage({ type: "GoToDeposit" }, window.location.href), window.postMessage({ type: "CloseShortCashier" }, window.location.href)), t.data.redirect) {
195
+ switch (t.data["MMFE:setQuickDepositHeight"] && i(2, I = t.data["MMFE:setQuickDepositHeight"].toString() + "px"), t.data["MMFE:openFullCashier"] === "true" && (window.postMessage({ type: "GoToDeposit" }, window.location.href), window.postMessage({ type: "CloseShortCashier" }, window.location.href)), t.data.redirect) {
196
196
  case "mm-hc-casino":
197
197
  window.postMessage({ type: "GoToCasino" }, window.location.href);
198
198
  break;
@@ -218,101 +218,90 @@ function ge(a, e, i) {
218
218
  break;
219
219
  }
220
220
  }
221
- }, N = () => {
221
+ }, q = () => {
222
222
  let t = new URL(`${l}/v1/player/${c}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);
223
- if (t.searchParams.append("language", u), n && t.searchParams.append("isShortCashier", v), y)
224
- switch (D) {
223
+ if (t.searchParams.append("language", p), n && t.searchParams.append("isShortCashier", f), y)
224
+ switch (b) {
225
225
  case "USD":
226
- x = 0.4;
226
+ T = 0.4;
227
227
  break;
228
228
  case "CDF":
229
- x = 1e3;
229
+ T = 1e3;
230
230
  break;
231
231
  }
232
- let w = {
232
+ let D = {
233
233
  method: "POST",
234
234
  headers: {
235
235
  "X-SessionId": m,
236
- currency: D || "EUR",
237
- amount: x,
236
+ currency: b || "EUR",
237
+ amount: T,
238
238
  cashierMode: "Default",
239
- IsShortCashier: v,
239
+ IsShortCashier: f,
240
240
  accept: "application/json"
241
241
  }
242
242
  };
243
- fetch(t.href, w).then((f) => f.json()).then(
244
- (f) => {
245
- i(1, B = !1), i(3, I = f.CashierUrl);
243
+ fetch(t.href, D).then((v) => v.json()).then(
244
+ (v) => {
245
+ i(1, B = !1), i(3, P = v.CashierUrl);
246
246
  },
247
- (f) => {
248
- console.error(f);
247
+ (v) => {
248
+ console.error(v);
249
249
  }
250
250
  );
251
- }, q = () => {
252
- le(u);
253
251
  }, O = () => {
254
- let t = document.createElement("style");
255
- t.innerHTML = o, g.appendChild(t);
256
- }, Q = () => {
257
- let t = new URL(r), w = document.createElement("style");
258
- fetch(t.href).then((f) => f.text()).then((f) => {
259
- w.innerHTML = f, setTimeout(
260
- () => {
261
- g.appendChild(w);
262
- },
263
- 1
264
- );
265
- });
252
+ de(p);
266
253
  };
267
- ae(() => (window.addEventListener("message", A, !1), () => {
268
- window.removeEventListener("message", A);
254
+ ie(() => (window.addEventListener("message", F, !1), () => {
255
+ window.removeEventListener("message", F);
269
256
  }));
270
- const Y = () => U();
271
- function K(t) {
272
- re[t ? "unshift" : "push"](() => {
257
+ const Q = () => A();
258
+ function Y(t) {
259
+ se[t ? "unshift" : "push"](() => {
273
260
  g = t, i(0, g);
274
261
  });
275
262
  }
276
263
  return a.$$set = (t) => {
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);
264
+ "endpoint" in t && i(8, l = t.endpoint), "session" in t && i(9, m = t.session), "playerid" in t && i(10, c = t.playerid), "lang" in t && i(11, p = t.lang), "hasdefaultamount" in t && i(12, y = t.hasdefaultamount), "clientstyling" in t && i(13, o = t.clientstyling), "clientstylingurl" in t && i(14, r = t.clientstylingurl), "translationurl" in t && i(15, u = t.translationurl), "playercurrency" in t && i(7, b = t.playercurrency), "mbsource" in t && i(16, _ = t.mbsource), "shortcashierenabled" in t && i(17, f = t.shortcashierenabled);
278
265
  }, a.$$.update = () => {
279
266
  a.$$.dirty & /*lang*/
280
- 2048 && u && q(), a.$$.dirty & /*shortcashierenabled*/
281
- 65536 && (n = v.toLocaleLowerCase() === "true"), a.$$.dirty & /*clientstylingurl, customStylingContainer*/
282
- 16385 && r && g && Q(), a.$$.dirty & /*clientstyling, customStylingContainer*/
283
- 8193 && o && g && O(), a.$$.dirty & /*translationurl*/
284
- 32768 && h && G(), a.$$.dirty & /*session, playerid, endpoint, playercurrency, lang, shortcashierenabled*/
285
- 69504 && m && c && l && D && u && v && N();
267
+ 2048 && p && O(), a.$$.dirty & /*shortcashierenabled*/
268
+ 131072 && (n = f.toLocaleLowerCase() === "true"), a.$$.dirty & /*clientstyling, customStylingContainer*/
269
+ 8193 && o && g && re(g, o), a.$$.dirty & /*clientstylingurl, customStylingContainer*/
270
+ 16385 && r && g && ne(g, r), a.$$.dirty & /*mbsource, customStylingContainer*/
271
+ 65537 && _ && g && oe(g, `${_}.Style`), a.$$.dirty & /*translationurl*/
272
+ 32768 && u && N(), a.$$.dirty & /*session, playerid, endpoint, playercurrency, lang, shortcashierenabled*/
273
+ 135040 && m && c && l && b && p && f && q();
286
274
  }, [
287
275
  g,
288
276
  B,
289
- F,
290
277
  I,
278
+ P,
291
279
  s,
292
280
  R,
293
- U,
294
- D,
281
+ A,
282
+ b,
295
283
  l,
296
284
  m,
297
285
  c,
298
- u,
286
+ p,
299
287
  y,
300
288
  o,
301
289
  r,
302
- h,
303
- v,
304
- Y,
305
- K
290
+ u,
291
+ _,
292
+ f,
293
+ Q,
294
+ Y
306
295
  ];
307
296
  }
308
- class me extends Z {
297
+ class ye extends X {
309
298
  constructor(e) {
310
- super(), J(
299
+ super(), Z(
311
300
  this,
312
301
  e,
313
- ge,
314
- ue,
315
- $,
302
+ fe,
303
+ me,
304
+ J,
316
305
  {
317
306
  endpoint: 8,
318
307
  session: 9,
@@ -323,73 +312,80 @@ class me extends Z {
323
312
  clientstylingurl: 14,
324
313
  translationurl: 15,
325
314
  playercurrency: 7,
326
- shortcashierenabled: 16
315
+ mbsource: 16,
316
+ shortcashierenabled: 17
327
317
  },
328
- ce
318
+ ue
329
319
  );
330
320
  }
331
321
  get endpoint() {
332
322
  return this.$$.ctx[8];
333
323
  }
334
324
  set endpoint(e) {
335
- this.$$set({ endpoint: e }), b();
325
+ this.$$set({ endpoint: e }), w();
336
326
  }
337
327
  get session() {
338
328
  return this.$$.ctx[9];
339
329
  }
340
330
  set session(e) {
341
- this.$$set({ session: e }), b();
331
+ this.$$set({ session: e }), w();
342
332
  }
343
333
  get playerid() {
344
334
  return this.$$.ctx[10];
345
335
  }
346
336
  set playerid(e) {
347
- this.$$set({ playerid: e }), b();
337
+ this.$$set({ playerid: e }), w();
348
338
  }
349
339
  get lang() {
350
340
  return this.$$.ctx[11];
351
341
  }
352
342
  set lang(e) {
353
- this.$$set({ lang: e }), b();
343
+ this.$$set({ lang: e }), w();
354
344
  }
355
345
  get hasdefaultamount() {
356
346
  return this.$$.ctx[12];
357
347
  }
358
348
  set hasdefaultamount(e) {
359
- this.$$set({ hasdefaultamount: e }), b();
349
+ this.$$set({ hasdefaultamount: e }), w();
360
350
  }
361
351
  get clientstyling() {
362
352
  return this.$$.ctx[13];
363
353
  }
364
354
  set clientstyling(e) {
365
- this.$$set({ clientstyling: e }), b();
355
+ this.$$set({ clientstyling: e }), w();
366
356
  }
367
357
  get clientstylingurl() {
368
358
  return this.$$.ctx[14];
369
359
  }
370
360
  set clientstylingurl(e) {
371
- this.$$set({ clientstylingurl: e }), b();
361
+ this.$$set({ clientstylingurl: e }), w();
372
362
  }
373
363
  get translationurl() {
374
364
  return this.$$.ctx[15];
375
365
  }
376
366
  set translationurl(e) {
377
- this.$$set({ translationurl: e }), b();
367
+ this.$$set({ translationurl: e }), w();
378
368
  }
379
369
  get playercurrency() {
380
370
  return this.$$.ctx[7];
381
371
  }
382
372
  set playercurrency(e) {
383
- this.$$set({ playercurrency: e }), b();
373
+ this.$$set({ playercurrency: e }), w();
384
374
  }
385
- get shortcashierenabled() {
375
+ get mbsource() {
386
376
  return this.$$.ctx[16];
387
377
  }
378
+ set mbsource(e) {
379
+ this.$$set({ mbsource: e }), w();
380
+ }
381
+ get shortcashierenabled() {
382
+ return this.$$.ctx[17];
383
+ }
388
384
  set shortcashierenabled(e) {
389
- this.$$set({ shortcashierenabled: e }), b();
385
+ this.$$set({ shortcashierenabled: e }), w();
390
386
  }
391
387
  }
392
- ne(me, { endpoint: {}, session: {}, playerid: {}, lang: {}, hasdefaultamount: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {}, shortcashierenabled: {} }, [], [], !0);
388
+ le(ye, { endpoint: {}, session: {}, playerid: {}, lang: {}, hasdefaultamount: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {}, mbsource: {}, shortcashierenabled: {} }, [], [], !0);
393
389
  export {
394
- me as default
390
+ ye as default
395
391
  };