@everymatrix/casino-header-controller 1.74.10 → 1.75.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 (60) hide show
  1. package/components/{CasinoHamburgerMenu-CoN5AQhy.js → CasinoHamburgerMenu-B2MD3MtF.js} +771 -757
  2. package/components/{CasinoHamburgerMenu-CJvz-6v8.js → CasinoHamburgerMenu-BhQwqDES.js} +788 -774
  3. package/components/CasinoHamburgerMenu-ClkbM37n.cjs +21 -0
  4. package/components/{CasinoHeaderController-4RP64UER.js → CasinoHeaderController-0F58MhJD.js} +9 -9
  5. package/components/{CasinoHeaderController-5SOMU0mr.cjs → CasinoHeaderController-D3CRMDJO.cjs} +1 -1
  6. package/components/{CasinoHeaderController-nHwZBFh1.js → CasinoHeaderController-DrNUWr21.js} +220 -220
  7. package/components/{CasinoSlider-SIfbXA_S.cjs → CasinoSlider-BFndmQiW.cjs} +1 -1
  8. package/components/{CasinoSlider-Cz_SY5te.js → CasinoSlider-CeIar2zF.js} +22 -22
  9. package/components/{CasinoSlider-D-gB23jc.js → CasinoSlider-DmHACRGm.js} +21 -21
  10. package/components/PlayerAccountBalanceModal-Cyd68GUD.js +1380 -0
  11. package/components/PlayerAccountBalanceModal-DF1D9Qn4.js +1409 -0
  12. package/components/PlayerAccountBalanceModal-DLnlf4pO.cjs +7 -0
  13. package/components/{PlayerDeposit-DKiaKiSX.js → PlayerDeposit-Blf-kZ4t.js} +68 -68
  14. package/components/{PlayerDeposit-VFOktlR5.js → PlayerDeposit-DS6sQJMo.js} +68 -68
  15. package/components/PlayerDeposit-qG_kO2Rh.cjs +1 -0
  16. package/es2015/casino-header-controller.cjs +1 -1
  17. package/es2015/casino-header-controller.js +1 -1
  18. package/esnext/casino-header-controller.js +1 -1
  19. package/package.json +1 -1
  20. package/stencil/{gamification-dropdown-60536faa-DASClLsG.cjs → gamification-dropdown-60536faa-CkmaCt3Q.cjs} +1 -1
  21. package/stencil/{gamification-dropdown-60536faa-C4Bt9SsA.js → gamification-dropdown-60536faa-b2-gKj-C.js} +1 -1
  22. package/stencil/{gamification-dropdown-60536faa-a9fhneJS.js → gamification-dropdown-60536faa-fBm4KcQa.js} +1 -1
  23. package/stencil/{gamification-dropdown-Cn5QbhyS.js → gamification-dropdown-D5c135Qe.js} +1 -1
  24. package/stencil/{gamification-dropdown-C6ERMVuc.js → gamification-dropdown-drtHPn9c.js} +1 -1
  25. package/stencil/{gamification-dropdown-DCP5M16U.cjs → gamification-dropdown-edMbhxDe.cjs} +1 -1
  26. package/stencil/{gamification-dropdown_4-DcfTNvW3.js → gamification-dropdown_4-C-ULhaax.js} +5 -5
  27. package/stencil/gamification-dropdown_4-CNSh1h1d.cjs +192 -0
  28. package/stencil/{gamification-dropdown_4-DxutrN1l.js → gamification-dropdown_4-vZb_TDYi.js} +5 -5
  29. package/stencil/{index-1ef3a64c-B1d9e5pW.js → index-1ef3a64c-BC8-LWK-.js} +201 -201
  30. package/stencil/index-1ef3a64c-BTHG-6MK.js +556 -0
  31. package/stencil/index-1ef3a64c-DWSAxGlI.cjs +1 -0
  32. package/stencil/index-71b1bdfa-3q2dUmkJ.js +757 -0
  33. package/stencil/index-71b1bdfa-BwU-ZobY.js +784 -0
  34. package/stencil/index-71b1bdfa-S-HUlbq9.cjs +1 -0
  35. package/stencil/{player-elevate-card-Dk8IKGFM.js → player-elevate-card-BjqJ00gW.js} +2 -2
  36. package/stencil/{player-elevate-card-CV-QotRL.js → player-elevate-card-D2SUJfQQ.js} +2 -2
  37. package/stencil/{player-elevate-card-DGldgGzV.cjs → player-elevate-card-DouGzeSQ.cjs} +1 -1
  38. package/stencil/{player-elevate-card-items-08c6fbd8-jkH5ihgE.cjs → player-elevate-card-items-08c6fbd8-B17ziILA.cjs} +3 -3
  39. package/stencil/{player-elevate-card-items-08c6fbd8-D2InzLdw.js → player-elevate-card-items-08c6fbd8-DCezar0T.js} +82 -82
  40. package/stencil/{player-elevate-card-items-08c6fbd8-DWYJG2Sw.js → player-elevate-card-items-08c6fbd8-Xsq6w4LE.js} +82 -82
  41. package/stencil/{player-elevate-pointcard-BZEQfMrQ.js → player-elevate-pointcard-B1bT9eUy.js} +2 -2
  42. package/stencil/{player-elevate-pointcard-Kd_hq4Sx.cjs → player-elevate-pointcard-CGFluXIm.cjs} +1 -1
  43. package/stencil/{player-elevate-pointcard-CFB0v64P.js → player-elevate-pointcard-Dh7dRbip.js} +2 -2
  44. package/stencil/{player-rakeback-card-BLuEtn4-.js → player-rakeback-card-BfD7gcGR.js} +1 -1
  45. package/stencil/{player-rakeback-card-DV2irTYH.js → player-rakeback-card-DRZs6TNO.js} +1 -1
  46. package/stencil/{player-rakeback-card-B_0uBE6g.cjs → player-rakeback-card-Dm2Xwe4V.cjs} +1 -1
  47. package/stencil/{user-deposit-withdrawal-CnTB5Htu.cjs → user-deposit-withdrawal-BMH0p3pP.cjs} +2 -2
  48. package/stencil/{user-deposit-withdrawal-D3SYJSWx.js → user-deposit-withdrawal-C0pUSCwu.js} +45 -45
  49. package/stencil/{user-deposit-withdrawal-DIQiW7CO.js → user-deposit-withdrawal-MEriFskJ.js} +45 -45
  50. package/components/CasinoHamburgerMenu-DbcCsL_F.cjs +0 -21
  51. package/components/PlayerAccountBalanceModal-B8M587Ck.cjs +0 -7
  52. package/components/PlayerAccountBalanceModal-C1IAqTOW.js +0 -1409
  53. package/components/PlayerAccountBalanceModal-DpIFaPjO.js +0 -1380
  54. package/components/PlayerDeposit-DpJ5OKSd.cjs +0 -1
  55. package/stencil/gamification-dropdown_4-DvpNN67k.cjs +0 -192
  56. package/stencil/index-1ef3a64c-C4G-G36U.cjs +0 -1
  57. package/stencil/index-1ef3a64c-GG7QM-1r.js +0 -556
  58. package/stencil/index-71b1bdfa-BF1FhHvP.js +0 -753
  59. package/stencil/index-71b1bdfa-CsAz1pRT.js +0 -780
  60. package/stencil/index-71b1bdfa-CvQLI6L6.cjs +0 -1
@@ -0,0 +1,7 @@
1
+ "use strict";var et=Object.defineProperty,tt=Object.defineProperties;var nt=Object.getOwnPropertyDescriptors;var je=Object.getOwnPropertySymbols;var at=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable;var Oe=Math.pow,He=(c,n,a)=>n in c?et(c,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):c[n]=a,ze=(c,n)=>{for(var a in n||(n={}))at.call(n,a)&&He(c,a,n[a]);if(je)for(var a of je(n))ot.call(n,a)&&He(c,a,n[a]);return c},Ue=(c,n)=>tt(c,nt(n));var Pe=(c,n,a)=>new Promise((y,f)=>{var u=v=>{try{p(a.next(v))}catch(S){f(S)}},g=v=>{try{p(a.throw(v))}catch(S){f(S)}},p=v=>v.done?y(v.value):Promise.resolve(v.value).then(u,g);p((a=a.apply(c,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoHamburgerMenu-ClkbM37n.cjs");function Ve(c,n){t.addMessages(c,n)}function rt(c){t.$locale.set(c)}const Ge={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 Ne={exports:{}};/** @license
2
+ * eventsource.js
3
+ * Available under MIT License (MIT)
4
+ * https://github.com/Yaffle/EventSource/
5
+ */(function(c,n){(function(a){var y=a.setTimeout,f=a.clearTimeout,u=a.XMLHttpRequest,g=a.XDomainRequest,p=a.ActiveXObject,v=a.EventSource,S=a.document,C=a.Promise,_=a.fetch,D=a.Response,x=a.TextDecoder,L=a.TextEncoder,K=a.AbortController;if(typeof window!="undefined"&&typeof S!="undefined"&&!("readyState"in S)&&S.body==null&&(S.readyState="loading",window.addEventListener("load",function(e){S.readyState="complete"},!1)),u==null&&p!=null&&(u=function(){return new p("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(e){function o(){}return o.prototype=e,new o}),Date.now||(Date.now=function(){return new Date().getTime()}),K==null){var ee=_;_=function(e,o){var i=o.signal;return ee(e,{headers:o.headers,credentials:o.credentials,cache:o.cache}).then(function(r){var d=r.body.getReader();return i._reader=d,i._aborted&&i._reader.cancel(),{status:r.status,statusText:r.statusText,headers:r.headers,body:{getReader:function(){return d}}}})},K=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function W(){this.bitsNeeded=0,this.codePoint=0}W.prototype.decode=function(e){function o(T,R,m){if(m===1)return T>=128>>R&&T<<R<=2047;if(m===2)return T>=2048>>R&&T<<R<=55295||T>=57344>>R&&T<<R<=65535;if(m===3)return T>=65536>>R&&T<<R<=1114111;throw new Error}function i(T,R){if(T===6*1)return R>>6>15?3:R>31?2:1;if(T===6*2)return R>15?3:2;if(T===6*3)return 3;throw new Error}for(var r=65533,d="",l=this.bitsNeeded,s=this.codePoint,w=0;w<e.length;w+=1){var b=e[w];l!==0&&(b<128||b>191||!o(s<<6|b&63,l-6,i(l,s)))&&(l=0,s=r,d+=String.fromCharCode(s)),l===0?(b>=0&&b<=127?(l=0,s=b):b>=192&&b<=223?(l=6*1,s=b&31):b>=224&&b<=239?(l=6*2,s=b&15):b>=240&&b<=247?(l=6*3,s=b&7):(l=0,s=r),l!==0&&!o(s,l,i(l,s))&&(l=0,s=r)):(l-=6,s=s<<6|b&63),l===0&&(s<=65535?d+=String.fromCharCode(s):(d+=String.fromCharCode(55296+(s-65535-1>>10)),d+=String.fromCharCode(56320+(s-65535-1&1023))))}return this.bitsNeeded=l,this.codePoint=s,d};var H=function(){try{return new x().decode(new L().encode("test"),{stream:!0})==="test"}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}return!1};(x==null||L==null||!H())&&(x=W);var A=function(){};function B(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=A,this.onload=A,this.onerror=A,this.onreadystatechange=A,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=A}B.prototype.open=function(e,o){this._abort(!0);var i=this,r=this._xhr,d=1,l=0;this._abort=function(m){i._sendTimeout!==0&&(f(i._sendTimeout),i._sendTimeout=0),(d===1||d===2||d===3)&&(d=4,r.onload=A,r.onerror=A,r.onabort=A,r.onprogress=A,r.onreadystatechange=A,r.abort(),l!==0&&(f(l),l=0),m||(i.readyState=4,i.onabort(null),i.onreadystatechange())),d=0};var s=function(){if(d===1){var m=0,M="",oe=void 0;if("contentType"in r)m=200,M="OK",oe=r.contentType;else try{m=r.status,M=r.statusText,oe=r.getResponseHeader("Content-Type")}catch(we){m=0,M="",oe=void 0}m!==0&&(d=2,i.readyState=2,i.status=m,i.statusText=M,i._contentType=oe,i.onreadystatechange())}},w=function(){if(s(),d===2||d===3){d=3;var m="";try{m=r.responseText}catch(M){}i.readyState=3,i.responseText=m,i.onprogress()}},b=function(m,M){if((M==null||M.preventDefault==null)&&(M={preventDefault:A}),w(),d===1||d===2||d===3){if(d=4,l!==0&&(f(l),l=0),i.readyState=4,m==="load")i.onload(M);else if(m==="error")i.onerror(M);else if(m==="abort")i.onabort(M);else throw new TypeError;i.onreadystatechange()}},T=function(m){r!=null&&(r.readyState===4?(!("onload"in r)||!("onerror"in r)||!("onabort"in r))&&b(r.responseText===""?"error":"load",m):r.readyState===3?"onprogress"in r||w():r.readyState===2&&s())},R=function(){l=y(function(){R()},500),r.readyState===3&&w()};"onload"in r&&(r.onload=function(m){b("load",m)}),"onerror"in r&&(r.onerror=function(m){b("error",m)}),"onabort"in r&&(r.onabort=function(m){b("abort",m)}),"onprogress"in r&&(r.onprogress=w),"onreadystatechange"in r&&(r.onreadystatechange=function(m){T(m)}),("contentType"in r||!("ontimeout"in u.prototype))&&(o+=(o.indexOf("?")===-1?"?":"&")+"padding=true"),r.open(e,o,!0),"readyState"in r&&(l=y(function(){R()},0))},B.prototype.abort=function(){this._abort(!1)},B.prototype.getResponseHeader=function(e){return this._contentType},B.prototype.setRequestHeader=function(e,o){var i=this._xhr;"setRequestHeader"in i&&i.setRequestHeader(e,o)},B.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},B.prototype.send=function(){if((!("ontimeout"in u.prototype)||!("sendAsBinary"in u.prototype)&&!("mozAnon"in u.prototype))&&S!=null&&S.readyState!=null&&S.readyState!=="complete"){var e=this;e._sendTimeout=y(function(){e._sendTimeout=0,e.send()},4);return}var o=this._xhr;"withCredentials"in o&&(o.withCredentials=this.withCredentials);try{o.send(void 0)}catch(i){throw i}};function G(e){return e.replace(/[A-Z]/g,function(o){return String.fromCharCode(o.charCodeAt(0)+32)})}function E(e){for(var o=Object.create(null),i=e.split(`\r
6
+ `),r=0;r<i.length;r+=1){var d=i[r],l=d.split(": "),s=l.shift(),w=l.join(": ");o[G(s)]=w}this._map=o}E.prototype.get=function(e){return this._map[G(e)]},u!=null&&u.HEADERS_RECEIVED==null&&(u.HEADERS_RECEIVED=2);function Y(){}Y.prototype.open=function(e,o,i,r,d,l,s){e.open("GET",d);var w=0;e.onprogress=function(){var T=e.responseText,R=T.slice(w);w+=R.length,i(R)},e.onerror=function(T){T.preventDefault(),r(new Error("NetworkError"))},e.onload=function(){r(null)},e.onabort=function(){r(null)},e.onreadystatechange=function(){if(e.readyState===u.HEADERS_RECEIVED){var T=e.status,R=e.statusText,m=e.getResponseHeader("Content-Type"),M=e.getAllResponseHeaders();o(T,R,m,new E(M))}},e.withCredentials=l;for(var b in s)Object.prototype.hasOwnProperty.call(s,b)&&e.setRequestHeader(b,s[b]);return e.send(),e};function le(e){this._headers=e}le.prototype.get=function(e){return this._headers.get(e)};function te(){}te.prototype.open=function(e,o,i,r,d,l,s){var w=null,b=new K,T=b.signal,R=new x;return _(d,{headers:s,credentials:l?"include":"same-origin",signal:T,cache:"no-store"}).then(function(m){return w=m.body.getReader(),o(m.status,m.statusText,m.headers.get("Content-Type"),new le(m.headers)),new C(function(M,oe){var we=function(){w.read().then(function(U){if(U.done)M(void 0);else{var N=R.decode(U.value,{stream:!0});i(N),we()}}).catch(function(U){oe(U)})};we()})}).catch(function(m){if(m.name!=="AbortError")return m}).then(function(m){r(m)}),{abort:function(){w!=null&&w.cancel(),b.abort()}}};function X(){this._listeners=Object.create(null)}function Q(e){y(function(){throw e},0)}X.prototype.dispatchEvent=function(e){e.target=this;var o=this._listeners[e.type];if(o!=null)for(var i=o.length,r=0;r<i;r+=1){var d=o[r];try{typeof d.handleEvent=="function"?d.handleEvent(e):d.call(this,e)}catch(l){Q(l)}}},X.prototype.addEventListener=function(e,o){e=String(e);var i=this._listeners,r=i[e];r==null&&(r=[],i[e]=r);for(var d=!1,l=0;l<r.length;l+=1)r[l]===o&&(d=!0);d||r.push(o)},X.prototype.removeEventListener=function(e,o){e=String(e);var i=this._listeners,r=i[e];if(r!=null){for(var d=[],l=0;l<r.length;l+=1)r[l]!==o&&d.push(r[l]);d.length===0?delete i[e]:i[e]=d}};function q(e){this.type=e,this.target=void 0}function h(e,o){q.call(this,e),this.data=o.data,this.lastEventId=o.lastEventId}h.prototype=Object.create(q.prototype);function ne(e,o){q.call(this,e),this.status=o.status,this.statusText=o.statusText,this.headers=o.headers}ne.prototype=Object.create(q.prototype);function Te(e,o){q.call(this,e),this.error=o.error}Te.prototype=Object.create(q.prototype);var ye=-1,$=0,ce=1,de=2,ue=-1,Z=0,ge=1,pe=2,Se=3,Re=/^text\/event\-stream(;.*)?$/i,Ce=1e3,Ee=18e6,ve=function(e,o){var i=e==null?o:parseInt(e,10);return i!==i&&(i=o),be(i)},be=function(e){return Math.min(Math.max(e,Ce),Ee)},ae=function(e,o,i){try{typeof o=="function"&&o.call(e,i)}catch(r){Q(r)}};function z(e,o){X.call(this),o=o||{},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,Me(this,e,o)}function De(){return u!=null&&"withCredentials"in u.prototype||g==null?new u:new g}var Le=_!=null&&D!=null&&"body"in D.prototype;function Me(e,o,i){o=String(o);var r=!!i.withCredentials,d=i.lastEventIdQueryParameterName||"lastEventId",l=be(1e3),s=ve(i.heartbeatTimeout,45e3),w="",b=l,T=!1,R=0,m=i.headers||{},M=i.Transport,oe=Le&&M==null?void 0:new B(M!=null?new M:De()),we=M!=null&&typeof M!="string"?new M:oe==null?new te:new Y,U=void 0,N=0,J=ye,he="",Ae="",re="",xe="",I=Z,Fe=0,fe=0,Je=function(k,F,P,V){if(J===$)if(k===200&&P!=null&&Re.test(P)){J=ce,T=Date.now(),b=l,e.readyState=ce;var j=new ne("open",{status:k,statusText:F,headers:V});e.dispatchEvent(j),ae(e,e.onopen,j)}else{var O="";k!==200?(F&&(F=F.replace(/\s+/g," ")),O="EventSource's response has a status "+k+" "+F+" that is not 200. Aborting the connection."):O="EventSource's response has a Content-Type specifying an unsupported type: "+(P==null?"-":P.replace(/\s+/g," "))+". Aborting the connection.",ke();var j=new ne("error",{status:k,statusText:F,headers:V});e.dispatchEvent(j),ae(e,e.onerror,j),console.error(O)}},$e=function(k){if(J===ce){for(var F=-1,P=0;P<k.length;P+=1){var V=k.charCodeAt(P);(V===10||V===13)&&(F=P)}var j=(F!==-1?xe:"")+k.slice(0,F+1);xe=(F===-1?xe:"")+k.slice(F+1),k!==""&&(T=Date.now(),R+=k.length);for(var O=0;O<j.length;O+=1){var V=j.charCodeAt(O);if(I===ue&&V===10)I=Z;else if(I===ue&&(I=Z),V===13||V===10){if(I!==Z){I===ge&&(fe=O+1);var ie=j.slice(Fe,fe-1),se=j.slice(fe+(fe<O&&j.charCodeAt(fe)===32?1:0),O);ie==="data"?(he+=`
7
+ `,he+=se):ie==="id"?Ae=se:ie==="event"?re=se:ie==="retry"?(l=ve(se,l),b=l):ie==="heartbeatTimeout"&&(s=ve(se,s),N!==0&&(f(N),N=y(function(){Be()},s)))}if(I===Z){if(he!==""){w=Ae,re===""&&(re="message");var me=new h(re,{data:he.slice(1),lastEventId:Ae});if(e.dispatchEvent(me),re==="open"?ae(e,e.onopen,me):re==="message"?ae(e,e.onmessage,me):re==="error"&&ae(e,e.onerror,me),J===de)return}he="",re=""}I=V===13?ue:Z}else I===Z&&(Fe=O,I=ge),I===ge?V===58&&(fe=O+1,I=pe):I===pe&&(I=Se)}}},Ie=function(k){if(J===ce||J===$){J=ye,N!==0&&(f(N),N=0),N=y(function(){Be()},b),b=be(Math.min(l*16,b*2)),e.readyState=$;var F=new Te("error",{error:k});e.dispatchEvent(F),ae(e,e.onerror,F),k!=null&&console.error(k)}},ke=function(){J=de,U!=null&&(U.abort(),U=void 0),N!==0&&(f(N),N=0),e.readyState=de},Be=function(){if(N=0,J!==ye){if(!T&&U!=null)Ie(new Error("No activity within "+s+" milliseconds. "+(J===$?"No response received.":R+" chars received.")+" Reconnecting.")),U!=null&&(U.abort(),U=void 0);else{var k=Math.max((T||Date.now())+s-Date.now(),1);T=!1,N=y(function(){Be()},k)}return}T=!1,R=0,N=y(function(){Be()},s),J=$,he="",re="",Ae=w,xe="",Fe=0,fe=0,I=Z;var F=o;if(o.slice(0,5)!=="data:"&&o.slice(0,5)!=="blob:"&&w!==""){var P=o.indexOf("?");F=P===-1?o:o.slice(0,P+1)+o.slice(P+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(se,me){return me===d?"":se}),F+=(o.indexOf("?")===-1?"?":"&")+d+"="+encodeURIComponent(w)}var V=e.withCredentials,j={};j.Accept="text/event-stream";var O=e.headers;if(O!=null)for(var ie in O)Object.prototype.hasOwnProperty.call(O,ie)&&(j[ie]=O[ie]);try{U=we.open(oe,Je,$e,Ie,F,V,j)}catch(se){throw ke(),se}};e.url=o,e.readyState=$,e.withCredentials=r,e.headers=m,e._close=ke,Be()}z.prototype=Object.create(X.prototype),z.prototype.CONNECTING=$,z.prototype.OPEN=ce,z.prototype.CLOSED=de,z.prototype.close=function(){this._close()},z.CONNECTING=$,z.OPEN=ce,z.CLOSED=de,z.prototype.withCredentials=void 0;var _e=v;u!=null&&(v==null||!("withCredentials"in v.prototype))&&(_e=z),function(e){{var o=e(n);o!==void 0&&(c.exports=o)}}(function(e){e.EventSourcePolyfill=z,e.NativeEventSource=v,e.EventSource=_e})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:t.commonjsGlobal:globalThis)})(Ne,Ne.exports);var it=Ne.exports;function st(c){t.append_styles(c,"svelte-gv6dm2",'*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}.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;background:transparent;border:none;font:inherit;color:inherit}.ShowBalance .BalanceValue svg{width:16px}.ShowBalance .BalanceValue span{padding-left:8px}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background-color:var(--emw--color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-60%);padding:10px;box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:"";background:var(--emw--color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:60%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;font:inherit}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));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, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.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, #07072A))}.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, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover,.BalanceModalFooter .BalanceModalActionactive{background:var(--emw--header-contrast, var(--emw--color-background, #07072A))}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}')}function Xe(c,n,a){const y=c.slice();return y[49]=n[a],y}function qe(c,n,a){const y=c.slice();return y[52]=n[a],y}function lt(c){let n,a=(c[3].Total?c[5](c[3].Total[0].amount):"0")+"",y,f,u,g,p,v,S,C=c[2]&&Ke(c);return{c(){n=t.element("button"),y=t.text(a),f=t.space(),u=t.element("span"),u.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>',g=t.space(),C&&C.c(),p=t.empty(),t.attr(n,"class","BalanceValue")},m(_,D){t.insert(_,n,D),t.append(n,y),t.append(n,f),t.append(n,u),t.insert(_,g,D),C&&C.m(_,D),t.insert(_,p,D),v||(S=t.listen(n,"click",c[23]),v=!0)},p(_,D){D[0]&8&&a!==(a=(_[3].Total?_[5](_[3].Total[0].amount):"0")+"")&&t.set_data(y,a),_[2]?C?C.p(_,D):(C=Ke(_),C.c(),C.m(p.parentNode,p)):C&&(C.d(1),C=null)},d(_){_&&(t.detach(n),t.detach(g),t.detach(p)),C&&C.d(_),v=!1,S()}}}function ct(c){let n,a=c[4]("Loading")+"",y;return{c(){n=t.element("p"),y=t.text(a)},m(f,u){t.insert(f,n,u),t.append(n,y)},p(f,u){u[0]&16&&a!==(a=f[4]("Loading")+"")&&t.set_data(y,a)},d(f){f&&t.detach(n)}}}function Ke(c){let n,a,y,f,u,g,p=c[4]("Title")+"",v,S,C,_,D,x,L=c[4]("DepositButton")+"",K,ee,W,H=t.ensure_array_like(Object.keys(c[3])),A=[];for(let B=0;B<H.length;B+=1)A[B]=Ye(Xe(c,H,B));return{c(){n=t.element("div"),a=t.element("button"),y=t.space(),f=t.element("div"),u=t.element("div"),g=t.element("p"),v=t.text(p),S=t.space(),C=t.element("div");for(let B=0;B<A.length;B+=1)A[B].c();_=t.space(),D=t.element("div"),x=t.element("button"),K=t.text(L),t.attr(a,"class","BalanceModalClose"),t.attr(g,"class","BalanceModalTitle"),t.attr(u,"class","BalanceModalHeader"),t.attr(C,"class","BalanceModalBody"),t.attr(x,"class","BalanceModalAction"),t.attr(D,"class","BalanceModalFooter"),t.attr(f,"class","BalanceModal"),t.attr(n,"class","BalanceModalWrapper")},m(B,G){t.insert(B,n,G),t.append(n,a),t.append(n,y),t.append(n,f),t.append(f,u),t.append(u,g),t.append(g,v),t.append(f,S),t.append(f,C);for(let E=0;E<A.length;E+=1)A[E]&&A[E].m(C,null);t.append(f,_),t.append(f,D),t.append(D,x),t.append(x,K),ee||(W=[t.listen(a,"click",c[24]),t.listen(x,"click",c[25])],ee=!0)},p(B,G){if(G[0]&16&&p!==(p=B[4]("Title")+"")&&t.set_data(v,p),G[0]&56){H=t.ensure_array_like(Object.keys(B[3]));let E;for(E=0;E<H.length;E+=1){const Y=Xe(B,H,E);A[E]?A[E].p(Y,G):(A[E]=Ye(Y),A[E].c(),A[E].m(C,null))}for(;E<A.length;E+=1)A[E].d(1);A.length=H.length}G[0]&16&&L!==(L=B[4]("DepositButton")+"")&&t.set_data(K,L)},d(B){B&&t.detach(n),t.destroy_each(A,B),ee=!1,t.run_all(W)}}}function We(c){let n,a,y=c[4](c[49])+"",f,u,g=(c[52].productType?c[4](c[52].productType):"")+"",p,v,S,C,_=c[5](c[52].amount)+"",D;return{c(){n=t.element("div"),a=t.element("p"),f=t.text(y),u=t.space(),p=t.text(g),v=t.space(),S=t.element("p"),C=t.element("span"),D=t.text(_),t.attr(a,"class","BalanceModalText"),t.attr(C,"class","BalanceModalAmount"),t.attr(S,"class","BalanceModalValue"),t.attr(n,"class","BalanceModalRowLine")},m(x,L){t.insert(x,n,L),t.append(n,a),t.append(a,f),t.append(a,u),t.append(a,p),t.append(n,v),t.append(n,S),t.append(S,C),t.append(C,D)},p(x,L){L[0]&24&&y!==(y=x[4](x[49])+"")&&t.set_data(f,y),L[0]&24&&g!==(g=(x[52].productType?x[4](x[52].productType):"")+"")&&t.set_data(p,g),L[0]&8&&_!==(_=x[5](x[52].amount)+"")&&t.set_data(D,_)},d(x){x&&t.detach(n)}}}function Ye(c){let n,a,y=t.ensure_array_like(c[3][c[49]]),f=[];for(let u=0;u<y.length;u+=1)f[u]=We(qe(c,y,u));return{c(){n=t.element("div");for(let u=0;u<f.length;u+=1)f[u].c();a=t.space(),t.attr(n,"class","BalanceModalRowBoth")},m(u,g){t.insert(u,n,g);for(let p=0;p<f.length;p+=1)f[p]&&f[p].m(n,null);t.append(n,a)},p(u,g){if(g[0]&56){y=t.ensure_array_like(u[3][u[49]]);let p;for(p=0;p<y.length;p+=1){const v=qe(u,y,p);f[p]?f[p].p(v,g):(f[p]=We(v),f[p].c(),f[p].m(n,a))}for(;p<f.length;p+=1)f[p].d(1);f.length=y.length}},d(u){u&&t.detach(n),t.destroy_each(f,u)}}}function Qe(c){let n,a,y;return{c(){n=t.element("button"),t.attr(n,"class","ShowBalanceModalOverlay")},m(f,u){t.insert(f,n,u),a||(y=t.listen(n,"click",c[26]),a=!0)},p:t.noop,d(f){f&&t.detach(n),a=!1,y()}}}function dt(c){let n,a,y;function f(v,S){return v[1]?ct:lt}let u=f(c),g=u(c),p=c[2]&&Qe(c);return{c(){n=t.element("div"),a=t.element("div"),g.c(),y=t.space(),p&&p.c(),t.attr(a,"class","ShowBalance")},m(v,S){t.insert(v,n,S),t.append(n,a),g.m(a,null),t.append(n,y),p&&p.m(n,null),c[27](n)},p(v,S){u===(u=f(v))&&g?g.p(v,S):(g.d(1),g=u(v),g&&(g.c(),g.m(a,null))),v[2]?p?p.p(v,S):(p=Qe(v),p.c(),p.m(n,null)):p&&(p.d(1),p=null)},i:t.noop,o:t.noop,d(v){v&&t.detach(n),g.d(),p&&p.d(),c[27](null)}}}function ut(c,n,a){let y;t.component_subscribe(c,t.$format,e=>a(4,y=e));let{userid:f=""}=n,{session:u=""}=n,{endpoint:g=""}=n,{lang:p="en"}=n,{mbsource:v}=n,{clientstyling:S=""}=n,{clientstylingurl:C=""}=n,{translationurl:_=""}=n,{gmversion:D="gm16"}=n,{displaybalanceoption:x="All"}=n,{totalcalculationmode:L="totalCashAmount"}=n,{currencylocale:K="en"}=n,{currencydisplay:ee="symbol"}=n,{maximumfractiondigits:W="2"}=n,{minimumfractiondigits:H="0"}=n,{customdisplayformat:A=""}=n,B,G,E=!0,Y=!1,le=!1,te,X="",Q=[],q;const h={},ne=["totalCashAmount","totalRealAmount"],Te=()=>{fetch(_).then(e=>e.json()).then(e=>Object.keys(e).forEach(o=>Ve(o,e[o]))).catch(e=>console.log(e))};Object.keys(Ge).forEach(e=>Ve(e,Ge[e]));const ye=e=>{if(A)return $(e);const o=K||p,i={style:"currency",currency:X,useGrouping:!0,currencyDisplay:ee||"code",maximumFractionDigits:W===""||isNaN(Number(W))?2:Number(W),minimumFractionDigits:H===""||isNaN(Number(H))?0:Number(H)};return new Intl.NumberFormat(o,i).format(e)},$=e=>{const o=[];let i="";for(const r of A)switch(r){default:i+=r;break;case"{":i&&o.push(i),i="";break;case"}":const[d,l]=i.split("|");if(i="",d.toLowerCase()==="currency")i=X;else if(d.toLowerCase()==="amount"){let s=",",w=".",b=2;l&&(l[0]!==" "&&(s=l[0]),l[1]!==" "&&(w=l[1]),l[2]!==" "&&!isNaN(Number(l[2]))&&(b=Number(l[2])));let[T,R]=String(Math.floor(e*Oe(10,b))/Oe(10,b)).split(".");i+=T[0];for(let m=1;m<T.length;++m)(T.length-m)%3===0?i+=s+T[m]:i+=T[m];R&&(i+=w+R)}i&&o.push(i),i="";break}return o.push(i),o.join("")},ce=()=>Pe(this,null,function*(){var o,i,r;a(1,E=!0);const e=new URL(`${g}/v1/player/${f}/account`);try{const d=yield fetch(e,{method:"GET",headers:{"X-SessionID":u}}),l=yield d.json();if(d.ok)Q=l.items,X=(o=Q.find(s=>s.displayName==="Casino"))==null?void 0:o.currency,a(3,h.Total=[{amount:l.totalAmount[X]}],h),a(3,h.Real=[{amount:(i=Q.find(s=>s.displayName==="Casino"))==null?void 0:i.balanceAmount}],h),a(3,h.Bonus=[{amount:(r=Q.find(s=>s.displayName==="UBS"))==null?void 0:r.balanceAmount}],h);else throw new Error("Failed to fetch balance data !")}catch(d){console.log("Balance error: ",d)}finally{a(1,E=!1)}}),de=()=>{a(1,E=!0);const e=new URL(`${g}/v2/player/${f}/balance`),o=new Headers;o.append("X-SessionID",u),fetch(e,{method:"GET",headers:o}).then(r=>r.json()).then(r=>{r[L]||a(7,L=ne[0]);const d=r.items.find(s=>s.type==="Real"&&s.walletAccountType==="Ordinary");if(X=d.currency,le=!!d.productType,a(3,h.Total=[{amount:0}],h),a(3,h.Real=[],h),a(3,h.Bonus=[],h),a(3,h.Credit=[],h),!le){q={lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},a(3,h.Total[0].amount=r[L][X],h);for(const s of r.items)switch(s.type){case"Bonus":h.Bonus.length===0?h.Bonus.push({amount:s.amount}):a(3,h.Bonus[0].amount+=s.amount,h);break;case"Real":if(s.creditLine&&h.Credit.length===0&&h.Credit.push({amount:s.creditLine}),L==="totalRealAmount")continue;h.Real.length===0?h.Real.push({amount:s.amount}):a(3,h.Real[0].amount+=s.amount,h);break}for(const[s,w]of Object.entries(h))w.length<1&&delete h[s];a(1,E=!1);return}q={Casino:{lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},Sports:{lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1}};let l=r.items;x&&x!=="All"&&(l=r.items.filter(s=>s.productType===x));for(const s of l){let w;switch(s.type){case"Bonus":w=h.Bonus.findIndex(b=>b.productType===s.productType),w>0?a(3,h.Bonus[w].amount+=s.amount,h):h.Bonus.push({amount:s.amount,productType:s.productType});break;case"Real":s.creditLine&&h.Credit.push({amount:s.creditLine,productType:s.productType}),w=h.Real.findIndex(b=>b.productType===s.productType),w>0?a(3,h.Real[w].amount+=s.amount,h):h.Real.push({amount:s.amount,productType:s.productType});break}}Se();for(const[s,w]of Object.entries(h))w.length<1&&delete h[s];a(1,E=!1)}).catch(()=>{throw a(1,E=!1),new Error("Failed to fetch balance data !")})},ue=()=>{if(te&&te.close(),u.length<1)return;let e,o;switch(D){case"gm16":e=new URL(`${g}/v2/player/${f}/information/updates`),o=d=>Re(d);break;case"gmcore":e=new URL(`${g}/v1/player/${f}/balance/updates`),o=d=>ge(d);break}const i={accept:"text/event-stream","X-SessionId":u},r=new it.EventSourcePolyfill(e,{headers:i});te=r,r.addEventListener("message",o)},Z=e=>{let o;try{o=JSON.parse(e)}catch(i){console.log("Balance stream failed: ",i);return}return o},ge=e=>{var d,l;const o=Z(e.data);if(!o){ue();return}let i="0";const r=o.balanceChange;Q=Q.map(s=>(r&&r[s.id]&&(s=Ue(ze({},s),{balanceAmount:r[s.id].afterAmount})),i=(parseFloat(s==null?void 0:s.balanceAmount)+parseFloat(i)).toString(),s)),a(3,h.Real=[{amount:(d=Q[0])==null?void 0:d.balanceAmount}],h),a(3,h.Bonus=[{amount:(l=Q[1])==null?void 0:l.balanceAmount}],h),a(3,h.Total=[{amount:Number(i)}],h)},pe=(e,o,i)=>{let r=null;switch(i.walletAccountType){case"Ordinary":(i.afterAmount!==i.affectedAmount||o.lastOrdinaryAfterAmount===0)&&(o.lastOrdinaryAfterAmount=i.afterAmount,o.showCreditLineAfterAmount||(r=i.afterAmount));break;case"CreditLine":i.afterAmount!==0?(r=i.afterAmount,o.showCreditLineAfterAmount=!0):(r=o.lastOrdinaryAfterAmount,o.showCreditLineAfterAmount=!1);break;default:r=i.afterAmount}return r===null?e:r},Se=()=>{switch(L){case"totalCashAmount":let e=0;for(const i of["Real","Bonus"])for(const r of h[i])e+=Math.max(r.amount,0);a(3,h.Total[0].amount=e,h);break;case"totalRealAmount":if(!le)return;let o=0;for(const i of h.Real)o+=i.amount;a(3,h.Total[0].amount=o,h)}},Re=e=>{const o=Z(e.data);if(!o){ue();return}if(Ee(o==null?void 0:o.type)||o.type!=="BALANCE_UPDATE_V2")return;const i=o.body.balanceChange;for(const[r,d]of Object.entries(i))if(L==="totalRealAmount"&&r==="Real"&&!le&&a(3,h.Total[0].amount=pe(h.Total[0].amount,q,d),h),!!h[r])for(const l of h[r]){if(!le){l.amount=r==="Real"?pe(l.amount,q,d):d.afterAmount;continue}d.productType===l.productType&&(l.amount=r==="Real"?pe(l.amount,q[l.productType],d):d.afterAmount)}Se()},Ce=()=>{a(2,Y=!1),window.postMessage({type:"GoToDeposit"},window.location.href),typeof gtag=="function"&&gtag("event","GoToDeposit",{context:"PlayerAccountBalanceModal"})},Ee=e=>e==="SESSION_EXPIRATION"?(window.postMessage({type:"SessionExpiration"},window.location.href),!0):!1,ve=()=>{ne.includes(L)||(console.error(`Unsupported value ('${L}') for totalcalculationmode parameter. Only the following values are supported ${ne}. Using default value ('${ne[0]}').`),a(7,L=ne[0]))},be=()=>{switch(rt(p),ve(),D){case"gmcore":ce();break;case"gm16":de();break;default:throw Error(`Invalid apiversion attribute: ${D}`)}},ae=e=>e.data&&e.data.type==="LogoutSuccessfull"&&te.close();t.onMount(()=>(window.addEventListener("message",ae,!1),()=>{window.emMessageBus&&G&&G.unsubscribe(),window.removeEventListener("message",ae),te&&te.close()}));const z=()=>a(2,Y=!0),De=()=>a(2,Y=!1),Le=()=>Ce(),Me=()=>a(2,Y=!1);function _e(e){t.binding_callbacks[e?"unshift":"push"](()=>{B=e,a(0,B)})}return c.$$set=e=>{"userid"in e&&a(8,f=e.userid),"session"in e&&a(9,u=e.session),"endpoint"in e&&a(10,g=e.endpoint),"lang"in e&&a(11,p=e.lang),"mbsource"in e&&a(12,v=e.mbsource),"clientstyling"in e&&a(13,S=e.clientstyling),"clientstylingurl"in e&&a(14,C=e.clientstylingurl),"translationurl"in e&&a(15,_=e.translationurl),"gmversion"in e&&a(16,D=e.gmversion),"displaybalanceoption"in e&&a(17,x=e.displaybalanceoption),"totalcalculationmode"in e&&a(7,L=e.totalcalculationmode),"currencylocale"in e&&a(18,K=e.currencylocale),"currencydisplay"in e&&a(19,ee=e.currencydisplay),"maximumfractiondigits"in e&&a(20,W=e.maximumfractiondigits),"minimumfractiondigits"in e&&a(21,H=e.minimumfractiondigits),"customdisplayformat"in e&&a(22,A=e.customdisplayformat)},c.$$.update=()=>{c.$$.dirty[0]&200448&&g&&f&&u&&p&&D&&x&&be(),c.$$.dirty[0]&67328&&g&&f&&u&&D&&ue(),c.$$.dirty[0]&8193&&S&&B&&t.setClientStyling(B,S),c.$$.dirty[0]&16385&&C&&B&&t.setClientStylingURL(B,C),c.$$.dirty[0]&4097&&B&&t.setStreamStyling(B,`${v}.Style`),c.$$.dirty[0]&32768&&_&&Te()},[B,E,Y,h,y,ye,Ce,L,f,u,g,p,v,S,C,_,D,x,K,ee,W,H,A,z,De,Le,Me,_e]}class Ze extends t.SvelteComponent{constructor(n){super(),t.init(this,n,ut,dt,t.safe_not_equal,{userid:8,session:9,endpoint:10,lang:11,mbsource:12,clientstyling:13,clientstylingurl:14,translationurl:15,gmversion:16,displaybalanceoption:17,totalcalculationmode:7,currencylocale:18,currencydisplay:19,maximumfractiondigits:20,minimumfractiondigits:21,customdisplayformat:22},st,[-1,-1])}get userid(){return this.$$.ctx[8]}set userid(n){this.$$set({userid:n}),t.flush()}get session(){return this.$$.ctx[9]}set session(n){this.$$set({session:n}),t.flush()}get endpoint(){return this.$$.ctx[10]}set endpoint(n){this.$$set({endpoint:n}),t.flush()}get lang(){return this.$$.ctx[11]}set lang(n){this.$$set({lang:n}),t.flush()}get mbsource(){return this.$$.ctx[12]}set mbsource(n){this.$$set({mbsource:n}),t.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(n){this.$$set({clientstyling:n}),t.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(n){this.$$set({clientstylingurl:n}),t.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(n){this.$$set({translationurl:n}),t.flush()}get gmversion(){return this.$$.ctx[16]}set gmversion(n){this.$$set({gmversion:n}),t.flush()}get displaybalanceoption(){return this.$$.ctx[17]}set displaybalanceoption(n){this.$$set({displaybalanceoption:n}),t.flush()}get totalcalculationmode(){return this.$$.ctx[7]}set totalcalculationmode(n){this.$$set({totalcalculationmode:n}),t.flush()}get currencylocale(){return this.$$.ctx[18]}set currencylocale(n){this.$$set({currencylocale:n}),t.flush()}get currencydisplay(){return this.$$.ctx[19]}set currencydisplay(n){this.$$set({currencydisplay:n}),t.flush()}get maximumfractiondigits(){return this.$$.ctx[20]}set maximumfractiondigits(n){this.$$set({maximumfractiondigits:n}),t.flush()}get minimumfractiondigits(){return this.$$.ctx[21]}set minimumfractiondigits(n){this.$$set({minimumfractiondigits:n}),t.flush()}get customdisplayformat(){return this.$$.ctx[22]}set customdisplayformat(n){this.$$set({customdisplayformat:n}),t.flush()}}t.create_custom_element(Ze,{userid:{},session:{},endpoint:{},lang:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{},gmversion:{},displaybalanceoption:{},totalcalculationmode:{},currencylocale:{},currencydisplay:{},maximumfractiondigits:{},minimumfractiondigits:{},customdisplayformat:{}},[],[],!0);exports.default=Ze;
@@ -1,11 +1,11 @@
1
- import { b as V, $ as X, S as Z, i as J, f as y, c as K, s as $, d as ee, g as M, e as E, w as C, y as d, R as P, j as S, z as h, B as L, n as U, k as x, l as te, I as ie, o as se, E as k, A as ae, p as re, r as ne, t as oe, u as le, x as F, H as ce } from "./CasinoHamburgerMenu-CoN5AQhy.js";
2
- function H(s, e) {
3
- V(s, e);
1
+ import { b as X, $ as Z, S as J, i as K, f as y, c as $, s as ee, d as te, g as M, e as E, w as C, y as u, R as U, j as S, z as h, B as L, n as F, k as x, l as ie, I as se, o as ae, m as re, u as ne, E as k, A as oe, q as le, t as ce, x as H, H as ue } from "./CasinoHamburgerMenu-BhQwqDES.js";
2
+ function W(s, e) {
3
+ X(s, e);
4
4
  }
5
5
  function de(s) {
6
- X.set(s);
6
+ Z.set(s);
7
7
  }
8
- const W = {
8
+ const G = {
9
9
  en: {
10
10
  titleDeposit: "Deposit",
11
11
  loading: "Loading, please wait ..."
@@ -47,20 +47,20 @@ const W = {
47
47
  Loading: "Cargando, por favor espere..."
48
48
  }
49
49
  };
50
- function ue(s) {
51
- ee(s, "svelte-1hczjj2", "button{font-family:var(--emw--button-typography)}input,select,option{font-family:inherit}.DepositWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 10px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px 50px 30px 50px;max-width:100%;height:var(--dynamic-height)}.DepositWrapper.DepositWrapperMobile{padding:20px 15px;max-width:unset;height:var(--dynamic-height)}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.DepositTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.DepositTitleMobile{font-size:var(--emw--size-standard, 16px)}.DepositTitleNone{display:none}.DepositIframeWrapper iframe{border:none;width:100%;height:85vh;border-radius:var(--emw--border-radius-large, 10px)}");
52
- }
53
50
  function he(s) {
51
+ te(s, "svelte-1hczjj2", "button{font-family:var(--emw--button-typography)}input,select,option{font-family:inherit}.DepositWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 10px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px 50px 30px 50px;max-width:100%;height:var(--dynamic-height)}.DepositWrapper.DepositWrapperMobile{padding:20px 15px;max-width:unset;height:var(--dynamic-height)}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.DepositTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.DepositTitleMobile{font-size:var(--emw--size-standard, 16px)}.DepositTitleNone{display:none}.DepositIframeWrapper iframe{border:none;width:100%;height:85vh;border-radius:var(--emw--border-radius-large, 10px)}");
52
+ }
53
+ function pe(s) {
54
54
  let e, i, n, a, l, m, c, p, w, o, r = (
55
55
  /*$_*/
56
56
  s[4]("titleDeposit") + ""
57
- ), u, b, _;
57
+ ), d, b, _;
58
58
  return {
59
59
  c() {
60
- e = M("div"), i = k("svg"), n = k("defs"), a = k("style"), l = C(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), m = k("g"), c = k("g"), p = k("path"), w = 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");
60
+ e = M("div"), i = k("svg"), n = k("defs"), a = k("style"), l = C(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), m = k("g"), c = k("g"), p = k("path"), w = E(), o = M("h2"), d = C(r), u(p, "class", "aaa"), u(p, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), u(p, "transform", "translate(15 15) rotate(180)"), u(c, "transform", "translate(20 158)"), u(m, "transform", "translate(-20 -158)"), u(i, "xmlns", "http://www.w3.org/2000/svg"), u(i, "width", "15"), u(i, "height", "15"), u(i, "viewBox", "0 0 15 15"), u(o, "class", "DepositTitleMobile"), u(e, "class", "MenuReturnButton");
61
61
  },
62
62
  m(f, g) {
63
- S(f, e, g), h(e, i), h(i, n), h(n, a), h(a, l), h(i, m), h(m, c), h(c, p), h(e, w), h(e, o), h(o, u), b || (_ = ae(
63
+ S(f, e, g), h(e, i), h(i, n), h(n, a), h(a, l), h(i, m), h(m, c), h(c, p), h(e, w), h(e, o), h(o, d), b || (_ = oe(
64
64
  e,
65
65
  "click",
66
66
  /*click_handler*/
@@ -70,34 +70,34 @@ function he(s) {
70
70
  p(f, g) {
71
71
  g & /*$_*/
72
72
  16 && r !== (r = /*$_*/
73
- f[4]("titleDeposit") + "") && L(u, r);
73
+ f[4]("titleDeposit") + "") && L(d, r);
74
74
  },
75
75
  d(f) {
76
76
  f && x(e), b = !1, _();
77
77
  }
78
78
  };
79
79
  }
80
- function pe(s) {
80
+ function ge(s) {
81
81
  let e, i, n;
82
82
  return {
83
83
  c() {
84
- e = M("div"), i = M("iframe"), F(i.src, n = /*iframeUrl*/
85
- s[3]) || d(i, "src", n), d(i, "title", "Deposit Iframe"), d(e, "class", "DepositIframeWrapper");
84
+ e = M("div"), i = M("iframe"), H(i.src, n = /*iframeUrl*/
85
+ s[3]) || u(i, "src", n), u(i, "title", "Deposit Iframe"), u(e, "class", "DepositIframeWrapper");
86
86
  },
87
87
  m(a, l) {
88
88
  S(a, e, l), h(e, i);
89
89
  },
90
90
  p(a, l) {
91
91
  l & /*iframeUrl*/
92
- 8 && !F(i.src, n = /*iframeUrl*/
93
- a[3]) && d(i, "src", n);
92
+ 8 && !H(i.src, n = /*iframeUrl*/
93
+ a[3]) && u(i, "src", n);
94
94
  },
95
95
  d(a) {
96
96
  a && x(e);
97
97
  }
98
98
  };
99
99
  }
100
- function ge(s) {
100
+ function me(s) {
101
101
  let e, i = (
102
102
  /*$_*/
103
103
  s[4]("loading") + ""
@@ -119,73 +119,73 @@ function ge(s) {
119
119
  }
120
120
  };
121
121
  }
122
- function me(s) {
122
+ function fe(s) {
123
123
  let e, i, n, a = (
124
124
  /*$_*/
125
125
  s[4]("titleDeposit") + ""
126
126
  ), l, m, c = (
127
127
  /*isMobile*/
128
- s[5] && he(s)
128
+ s[5] && pe(s)
129
129
  );
130
- function p(r, u) {
130
+ function p(r, d) {
131
131
  return (
132
132
  /*isLoading*/
133
- r[1] ? ge : pe
133
+ r[1] ? me : ge
134
134
  );
135
135
  }
136
136
  let w = p(s), o = w(s);
137
137
  return {
138
138
  c() {
139
- e = M("div"), c && c.c(), i = E(), n = M("h2"), l = C(a), m = E(), o.c(), d(n, "class", "DepositTitle " + /*isMobile*/
140
- (s[5] ? "DepositTitleNone" : "")), d(e, "class", "DepositWrapper " + /*isMobile*/
141
- (s[5] ? "DepositWrapperMobile" : "")), P(
139
+ e = M("div"), c && c.c(), i = E(), n = M("h2"), l = C(a), m = E(), o.c(), u(n, "class", "DepositTitle " + /*isMobile*/
140
+ (s[5] ? "DepositTitleNone" : "")), u(e, "class", "DepositWrapper " + /*isMobile*/
141
+ (s[5] ? "DepositWrapperMobile" : "")), U(
142
142
  e,
143
143
  "--dynamic-height",
144
144
  /*dynamicHeight*/
145
145
  s[2]
146
146
  );
147
147
  },
148
- m(r, u) {
149
- S(r, e, u), c && c.m(e, null), h(e, i), h(e, n), h(n, l), h(e, m), o.m(e, null), s[19](e);
148
+ m(r, d) {
149
+ S(r, e, d), c && c.m(e, null), h(e, i), h(e, n), h(n, l), h(e, m), o.m(e, null), s[19](e);
150
150
  },
151
- p(r, [u]) {
151
+ p(r, [d]) {
152
152
  /*isMobile*/
153
- r[5] && c.p(r, u), u & /*$_*/
153
+ r[5] && c.p(r, d), d & /*$_*/
154
154
  16 && a !== (a = /*$_*/
155
- r[4]("titleDeposit") + "") && L(l, a), w === (w = p(r)) && o ? o.p(r, u) : (o.d(1), o = w(r), o && (o.c(), o.m(e, null))), u & /*dynamicHeight*/
156
- 4 && P(
155
+ r[4]("titleDeposit") + "") && L(l, a), w === (w = p(r)) && o ? o.p(r, d) : (o.d(1), o = w(r), o && (o.c(), o.m(e, null))), d & /*dynamicHeight*/
156
+ 4 && U(
157
157
  e,
158
158
  "--dynamic-height",
159
159
  /*dynamicHeight*/
160
160
  r[2]
161
161
  );
162
162
  },
163
- i: U,
164
- o: U,
163
+ i: F,
164
+ o: F,
165
165
  d(r) {
166
166
  r && x(e), c && c.d(), o.d(), s[19](null);
167
167
  }
168
168
  };
169
169
  }
170
- function fe(s, e, i) {
170
+ function we(s, e, i) {
171
171
  let n, a;
172
- te(s, ce, (t) => i(4, a = t));
173
- let { endpoint: l = "" } = e, { session: m = "" } = e, { playerid: c = "" } = e, { lang: p = "en" } = e, { hasdefaultamount: w = "" } = e, { clientstyling: o = "" } = e, { clientstylingurl: r = "" } = e, { translationurl: u = "" } = e, { currency: b = "" } = e, { mbsource: _ } = e, { shortcashierenabled: f = "false" } = e, g, G = window.navigator.userAgent, R = ie(G) !== "PC", B = !0, I, T = 0, j = "";
174
- const N = () => {
175
- fetch(u).then((D) => D.json()).then((D) => {
172
+ ie(s, ue, (t) => i(4, a = t));
173
+ let { endpoint: l = "" } = e, { session: m = "" } = e, { playerid: c = "" } = e, { lang: p = "en" } = e, { hasdefaultamount: w = "" } = e, { clientstyling: o = "" } = e, { clientstylingurl: r = "" } = e, { translationurl: d = "" } = e, { currency: b = "" } = e, { mbsource: _ } = e, { shortcashierenabled: f = "false" } = e, g, N = window.navigator.userAgent, R = se(N) !== "PC", B = !0, I, j, T = 0, z = "";
174
+ const q = () => {
175
+ fetch(d).then((D) => D.json()).then((D) => {
176
176
  Object.keys(D).forEach((v) => {
177
- H(v, D[v]);
177
+ W(v, D[v]);
178
178
  });
179
179
  }).catch((D) => {
180
180
  console.log(D);
181
181
  });
182
182
  };
183
- Object.keys(W).forEach((t) => {
184
- H(t, W[t]);
183
+ Object.keys(G).forEach((t) => {
184
+ W(t, G[t]);
185
185
  });
186
- const z = () => {
186
+ const A = () => {
187
187
  window.postMessage({ type: "GoToPreviousRoute", isMobile: R }, window.location.href);
188
- }, A = (t) => {
188
+ }, P = (t) => {
189
189
  if (t.data) {
190
190
  switch (t.data.type) {
191
191
  case "ProfileDetailsData":
@@ -242,43 +242,43 @@ function fe(s, e, i) {
242
242
  };
243
243
  fetch(t.href, D).then((v) => v.json()).then(
244
244
  (v) => {
245
- i(1, B = !1), i(3, j = v.CashierUrl);
245
+ i(1, B = !1), i(3, z = v.CashierUrl);
246
246
  },
247
247
  (v) => {
248
248
  console.error(v);
249
249
  }
250
250
  );
251
- }, q = () => {
251
+ }, Q = () => {
252
252
  de(p);
253
253
  };
254
- se(() => (window.addEventListener("message", A, !1), () => {
255
- window.removeEventListener("message", A);
254
+ ae(() => (window.addEventListener("message", P, !1), () => {
255
+ window.emMessageBus && j && j.unsubscribe(), window.removeEventListener("message", P);
256
256
  }));
257
- const Q = () => z();
258
- function Y(t) {
259
- re[t ? "unshift" : "push"](() => {
257
+ const Y = () => A();
258
+ function V(t) {
259
+ le[t ? "unshift" : "push"](() => {
260
260
  g = t, i(0, g);
261
261
  });
262
262
  }
263
263
  return s.$$set = (t) => {
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, w = 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), "currency" in t && i(7, b = t.currency), "mbsource" in t && i(16, _ = t.mbsource), "shortcashierenabled" in t && i(17, f = 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, w = t.hasdefaultamount), "clientstyling" in t && i(13, o = t.clientstyling), "clientstylingurl" in t && i(14, r = t.clientstylingurl), "translationurl" in t && i(15, d = t.translationurl), "currency" in t && i(7, b = t.currency), "mbsource" in t && i(16, _ = t.mbsource), "shortcashierenabled" in t && i(17, f = t.shortcashierenabled);
265
265
  }, s.$$.update = () => {
266
266
  s.$$.dirty & /*lang*/
267
- 2048 && p && q(), s.$$.dirty & /*shortcashierenabled*/
267
+ 2048 && p && Q(), s.$$.dirty & /*shortcashierenabled*/
268
268
  131072 && (n = f.toLocaleLowerCase() === "true"), s.$$.dirty & /*clientstyling, customStylingContainer*/
269
- 8193 && o && g && ne(g, o), s.$$.dirty & /*clientstylingurl, customStylingContainer*/
270
- 16385 && r && g && oe(g, r), s.$$.dirty & /*mbsource, customStylingContainer*/
271
- 65537 && _ && g && le(g, `${_}.Style`), s.$$.dirty & /*translationurl*/
272
- 32768 && u && N(), s.$$.dirty & /*session, playerid, endpoint, currency, lang, shortcashierenabled*/
269
+ 8193 && o && g && ce(g, o), s.$$.dirty & /*clientstylingurl, customStylingContainer*/
270
+ 16385 && r && g && re(g, r), s.$$.dirty & /*mbsource, customStylingContainer*/
271
+ 65537 && _ && g && ne(g, `${_}.Style`), s.$$.dirty & /*translationurl*/
272
+ 32768 && d && q(), s.$$.dirty & /*session, playerid, endpoint, currency, lang, shortcashierenabled*/
273
273
  135040 && m && c && l && b && p && f && O();
274
274
  }, [
275
275
  g,
276
276
  B,
277
277
  I,
278
- j,
278
+ z,
279
279
  a,
280
280
  R,
281
- z,
281
+ A,
282
282
  b,
283
283
  l,
284
284
  m,
@@ -287,21 +287,21 @@ function fe(s, e, i) {
287
287
  w,
288
288
  o,
289
289
  r,
290
- u,
290
+ d,
291
291
  _,
292
292
  f,
293
- Q,
294
- Y
293
+ Y,
294
+ V
295
295
  ];
296
296
  }
297
- class we extends Z {
297
+ class ye extends J {
298
298
  constructor(e) {
299
- super(), J(
299
+ super(), K(
300
300
  this,
301
301
  e,
302
+ we,
302
303
  fe,
303
- me,
304
- $,
304
+ ee,
305
305
  {
306
306
  endpoint: 8,
307
307
  session: 9,
@@ -315,7 +315,7 @@ class we extends Z {
315
315
  mbsource: 16,
316
316
  shortcashierenabled: 17
317
317
  },
318
- ue
318
+ he
319
319
  );
320
320
  }
321
321
  get endpoint() {
@@ -385,7 +385,7 @@ class we extends Z {
385
385
  this.$$set({ shortcashierenabled: e }), y();
386
386
  }
387
387
  }
388
- K(we, { endpoint: {}, session: {}, playerid: {}, lang: {}, hasdefaultamount: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, currency: {}, mbsource: {}, shortcashierenabled: {} }, [], [], !0);
388
+ $(ye, { endpoint: {}, session: {}, playerid: {}, lang: {}, hasdefaultamount: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, currency: {}, mbsource: {}, shortcashierenabled: {} }, [], [], !0);
389
389
  export {
390
- we as default
390
+ ye as default
391
391
  };