@everymatrix/casino-header-controller 1.64.8 → 1.65.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.
- package/components/{CasinoHamburgerMenu-BMkeLxFw.js → CasinoHamburgerMenu-B1dY3jHB.js} +886 -907
- package/components/CasinoHamburgerMenu-CaFkIr3d.cjs +21 -0
- package/components/{CasinoHamburgerMenu-CTVc2-UF.js → CasinoHamburgerMenu-pBvrxlJy.js} +830 -851
- package/components/CasinoHeaderController-B0cFJgaJ.cjs +13 -0
- package/components/CasinoHeaderController-Bn2AwIyI.js +3246 -0
- package/components/CasinoHeaderController-DOdeXoey.js +3223 -0
- package/components/{CasinoSlider-Deb0x84t.js → CasinoSlider-BEx_hpVM.js} +88 -88
- package/components/{CasinoSlider-CTcAOyCp.js → CasinoSlider-CKGPxibK.js} +57 -57
- package/components/{CasinoSlider-DqTtsMWh.cjs → CasinoSlider-CL_Uac-c.cjs} +1 -1
- package/components/PlayerAccountBalanceModal-BKMugmnm.js +1539 -0
- package/components/PlayerAccountBalanceModal-CK68FRSV.js +1510 -0
- package/components/PlayerAccountBalanceModal-iP2HDeoz.cjs +13 -0
- package/components/PlayerDeposit-BsUiL_LS.cjs +1 -0
- package/components/{PlayerDeposit-BZuTQSyp.js → PlayerDeposit-Byf7G3yu.js} +72 -72
- package/components/{PlayerDeposit-eY_YGhMJ.js → PlayerDeposit-C-Fbg92q.js} +72 -72
- package/es2015/casino-header-controller.cjs +1 -1
- package/es2015/casino-header-controller.js +1 -1
- package/esnext/casino-header-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/app-globals-0f993ce5-B6nNHmA4.js +7 -0
- package/stencil/app-globals-0f993ce5-DgOnOgxM.cjs +1 -0
- package/stencil/gamification-dropdown-8eb8a896-BXV0d81L.cjs +1 -0
- package/stencil/gamification-dropdown-8eb8a896-CxTBD8Oq.js +144 -0
- package/stencil/gamification-dropdown-8eb8a896-DsjvIRRh.js +126 -0
- package/stencil/gamification-dropdown-C_xYxEL8.js +7 -0
- package/stencil/gamification-dropdown-DG0vAJtO.js +25 -0
- package/stencil/gamification-dropdown-DUk8bbFT.cjs +1 -0
- package/stencil/gamification-dropdown_4-Be_N4EeF.js +451 -0
- package/stencil/gamification-dropdown_4-DuMaGjcI.cjs +192 -0
- package/stencil/gamification-dropdown_4-zImC9hF9.js +469 -0
- package/stencil/index-1ef3a64c-C31PLQx3.js +572 -0
- package/stencil/index-1ef3a64c-CkoGfMtU.cjs +1 -0
- package/stencil/index-1ef3a64c-WzZ9mlMM.js +556 -0
- package/stencil/index-71b1bdfa-Dm7yvsrK.js +784 -0
- package/stencil/index-71b1bdfa-DzyepuUf.js +757 -0
- package/stencil/index-71b1bdfa-urw3SgKF.cjs +1 -0
- package/stencil/locale-DHn5ZpQu.cjs +1 -0
- package/stencil/locale-DuSXBQwH.js +215 -0
- package/stencil/player-elevate-card-C6V7VROS.cjs +64 -0
- package/stencil/player-elevate-card-Cmxvkrge.js +106 -0
- package/stencil/player-elevate-card-DL6XwNnq.js +106 -0
- package/stencil/player-elevate-card-items-66be34fb-BUkxBwF8.js +1292 -0
- package/stencil/player-elevate-card-items-66be34fb-BjQeJ-p9.js +1292 -0
- package/stencil/player-elevate-card-items-66be34fb-DeUY02M2.cjs +1 -0
- package/stencil/player-elevate-pointcard-CbCIvh8I.cjs +1 -0
- package/stencil/player-elevate-pointcard-DYOUbwi3.js +44 -0
- package/stencil/player-elevate-pointcard-dDiPwAiV.js +44 -0
- package/stencil/player-rakeback-card-BMHeEc3P.cjs +1 -0
- package/stencil/player-rakeback-card-CixEJCwY.js +137 -0
- package/stencil/player-rakeback-card-CxD8OOP-.js +111 -0
- package/stencil/{user-deposit-withdrawal-4aK-1zzW.js → user-deposit-withdrawal-CXMt1MVo.js} +2 -2
- package/stencil/user-deposit-withdrawal-Ck524nr-.cjs +68 -0
- package/stencil/{user-deposit-withdrawal-BhsnZiSd.js → user-deposit-withdrawal-DU6VQt9M.js} +2 -2
- package/components/CasinoHamburgerMenu-CrZ5l9tM.cjs +0 -21
- package/components/CasinoHeaderController-BIefUWQL.js +0 -3114
- package/components/CasinoHeaderController-DSyglpDF.cjs +0 -13
- package/components/CasinoHeaderController-KfLekr0Q.js +0 -3137
- package/components/PlayerAccountBalanceModal-BFDpI9Sy.cjs +0 -13
- package/components/PlayerAccountBalanceModal-CNXuqjqU.js +0 -1539
- package/components/PlayerAccountBalanceModal-DbULiu-f.js +0 -1510
- package/components/PlayerDeposit-BXwT7NVp.cjs +0 -1
- package/stencil/app-globals-0f993ce5-D-kw1sls.js +0 -5
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +0 -1
- package/stencil/index-1ef3a64c-B6t9gkO1.js +0 -556
- package/stencil/index-1ef3a64c-BdrVNGQe.cjs +0 -1
- package/stencil/index-1ef3a64c-BfGbBN_r.js +0 -572
- package/stencil/user-deposit-withdrawal-HQmDGKFu.cjs +0 -68
@@ -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,st=Object.prototype.propertyIsEnumerable;var ze=(r,e,n)=>e in r?at(r,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[e]=n,Ue=(r,e)=>{for(var n in e||(e={}))it.call(e,n)&&ze(r,n,e[n]);if(He)for(var n of He(e))st.call(e,n)&&ze(r,n,e[n]);return r},Pe=(r,e)=>ot(r,rt(e));var Ge=(r,e,n)=>new Promise((i,d)=>{var u=g=>{try{p(n.next(g))}catch(v){d(v)}},y=g=>{try{p(n.throw(g))}catch(v){d(v)}},p=g=>g.done?i(g.value):Promise.resolve(g.value).then(u,y);p((n=n.apply(r,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoHamburgerMenu-CaFkIr3d.cjs");function Xe(r,e){t.addMessages(r,e)}function lt(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,e){(function(n){var i=n.setTimeout,d=n.clearTimeout,u=n.XMLHttpRequest,y=n.XDomainRequest,p=n.ActiveXObject,g=n.EventSource,v=n.document,x=n.Promise,F=n.fetch,C=n.Response,T=n.TextDecoder,A=n.TextEncoder,z=n.AbortController;if(typeof window!="undefined"&&typeof v!="undefined"&&!("readyState"in v)&&v.body==null&&(v.readyState="loading",window.addEventListener("load",function(a){v.readyState="complete"},!1)),u==null&&p!=null&&(u=function(){return new p("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(a){function o(){}return o.prototype=a,new o}),Date.now||(Date.now=function(){return new Date().getTime()}),z==null){var L=F;F=function(a,o){var c=o.signal;return L(a,{headers:o.headers,credentials:o.credentials,cache:o.cache}).then(function(s){var l=s.body.getReader();return c._reader=l,c._aborted&&c._reader.cancel(),{status:s.status,statusText:s.statusText,headers:s.headers,body:{getReader:function(){return l}}}})},z=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function V(){this.bitsNeeded=0,this.codePoint=0}V.prototype.decode=function(a){function o(E,M,b){if(b===1)return E>=128>>M&&E<<M<=2047;if(b===2)return E>=2048>>M&&E<<M<=55295||E>=57344>>M&&E<<M<=65535;if(b===3)return E>=65536>>M&&E<<M<=1114111;throw new Error}function c(E,M){if(E===6*1)return M>>6>15?3:M>31?2:1;if(E===6*2)return M>15?3:2;if(E===6*3)return 3;throw new Error}for(var s=65533,l="",m=this.bitsNeeded,w=this.codePoint,k=0;k<a.length;k+=1){var _=a[k];m!==0&&(_<128||_>191||!o(w<<6|_&63,m-6,c(m,w)))&&(m=0,w=s,l+=String.fromCharCode(w)),m===0?(_>=0&&_<=127?(m=0,w=_):_>=192&&_<=223?(m=6*1,w=_&31):_>=224&&_<=239?(m=6*2,w=_&15):_>=240&&_<=247?(m=6*3,w=_&7):(m=0,w=s),m!==0&&!o(w,m,c(m,w))&&(m=0,w=s)):(m-=6,w=w<<6|_&63),m===0&&(w<=65535?l+=String.fromCharCode(w):(l+=String.fromCharCode(55296+(w-65535-1>>10)),l+=String.fromCharCode(56320+(w-65535-1&1023))))}return this.bitsNeeded=m,this.codePoint=w,l};var J=function(){try{return new T().decode(new A().encode("test"),{stream:!0})==="test"}catch(a){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+a)}return!1};(T==null||A==null||!J())&&(T=V);var B=function(){};function R(a){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=B,this.onload=B,this.onerror=B,this.onreadystatechange=B,this._contentType="",this._xhr=a,this._sendTimeout=0,this._abort=B}R.prototype.open=function(a,o){this._abort(!0);var c=this,s=this._xhr,l=1,m=0;this._abort=function(b){c._sendTimeout!==0&&(d(c._sendTimeout),c._sendTimeout=0),(l===1||l===2||l===3)&&(l=4,s.onload=B,s.onerror=B,s.onabort=B,s.onprogress=B,s.onreadystatechange=B,s.abort(),m!==0&&(d(m),m=0),b||(c.readyState=4,c.onabort(null),c.onreadystatechange())),l=0};var w=function(){if(l===1){var b=0,O="",oe=void 0;if("contentType"in s)b=200,O="OK",oe=s.contentType;else try{b=s.status,O=s.statusText,oe=s.getResponseHeader("Content-Type")}catch(Se){b=0,O="",oe=void 0}b!==0&&(l=2,c.readyState=2,c.status=b,c.statusText=O,c._contentType=oe,c.onreadystatechange())}},k=function(){if(w(),l===2||l===3){l=3;var b="";try{b=s.responseText}catch(O){}c.readyState=3,c.responseText=b,c.onprogress()}},_=function(b,O){if((O==null||O.preventDefault==null)&&(O={preventDefault:B}),k(),l===1||l===2||l===3){if(l=4,m!==0&&(d(m),m=0),c.readyState=4,b==="load")c.onload(O);else if(b==="error")c.onerror(O);else if(b==="abort")c.onabort(O);else throw new TypeError;c.onreadystatechange()}},E=function(b){s!=null&&(s.readyState===4?(!("onload"in s)||!("onerror"in s)||!("onabort"in s))&&_(s.responseText===""?"error":"load",b):s.readyState===3?"onprogress"in s||k():s.readyState===2&&w())},M=function(){m=i(function(){M()},500),s.readyState===3&&k()};"onload"in s&&(s.onload=function(b){_("load",b)}),"onerror"in s&&(s.onerror=function(b){_("error",b)}),"onabort"in s&&(s.onabort=function(b){_("abort",b)}),"onprogress"in s&&(s.onprogress=k),"onreadystatechange"in s&&(s.onreadystatechange=function(b){E(b)}),("contentType"in s||!("ontimeout"in u.prototype))&&(o+=(o.indexOf("?")===-1?"?":"&")+"padding=true"),s.open(a,o,!0),"readyState"in s&&(m=i(function(){M()},0))},R.prototype.abort=function(){this._abort(!1)},R.prototype.getResponseHeader=function(a){return this._contentType},R.prototype.setRequestHeader=function(a,o){var c=this._xhr;"setRequestHeader"in c&&c.setRequestHeader(a,o)},R.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},R.prototype.send=function(){if((!("ontimeout"in u.prototype)||!("sendAsBinary"in u.prototype)&&!("mozAnon"in u.prototype))&&v!=null&&v.readyState!=null&&v.readyState!=="complete"){var a=this;a._sendTimeout=i(function(){a._sendTimeout=0,a.send()},4);return}var o=this._xhr;"withCredentials"in o&&(o.withCredentials=this.withCredentials);try{o.send(void 0)}catch(c){throw c}};function j(a){return a.replace(/[A-Z]/g,function(o){return String.fromCharCode(o.charCodeAt(0)+32)})}function D(a){for(var o=Object.create(null),c=a.split(`\r
|
6
|
+
`),s=0;s<c.length;s+=1){var l=c[s],m=l.split(": "),w=m.shift(),k=m.join(": ");o[j(w)]=k}this._map=o}D.prototype.get=function(a){return this._map[j(a)]},u!=null&&u.HEADERS_RECEIVED==null&&(u.HEADERS_RECEIVED=2);function Q(){}Q.prototype.open=function(a,o,c,s,l,m,w){a.open("GET",l);var k=0;a.onprogress=function(){var E=a.responseText,M=E.slice(k);k+=M.length,c(M)},a.onerror=function(E){E.preventDefault(),s(new Error("NetworkError"))},a.onload=function(){s(null)},a.onabort=function(){s(null)},a.onreadystatechange=function(){if(a.readyState===u.HEADERS_RECEIVED){var E=a.status,M=a.statusText,b=a.getResponseHeader("Content-Type"),O=a.getAllResponseHeaders();o(E,M,b,new D(O))}},a.withCredentials=m;for(var _ in w)Object.prototype.hasOwnProperty.call(w,_)&&a.setRequestHeader(_,w[_]);return a.send(),a};function ne(a){this._headers=a}ne.prototype.get=function(a){return this._headers.get(a)};function le(){}le.prototype.open=function(a,o,c,s,l,m,w){var k=null,_=new z,E=_.signal,M=new T;return F(l,{headers:w,credentials:m?"include":"same-origin",signal:E,cache:"no-store"}).then(function(b){return k=b.body.getReader(),o(b.status,b.statusText,b.headers.get("Content-Type"),new ne(b.headers)),new x(function(O,oe){var Se=function(){k.read().then(function(K){if(K.done)O(void 0);else{var U=M.decode(K.value,{stream:!0});c(U),Se()}}).catch(function(K){oe(K)})};Se()})}).catch(function(b){if(b.name!=="AbortError")return b}).then(function(b){s(b)}),{abort:function(){k!=null&&k.cancel(),_.abort()}}};function X(){this._listeners=Object.create(null)}function ce(a){i(function(){throw a},0)}X.prototype.dispatchEvent=function(a){a.target=this;var o=this._listeners[a.type];if(o!=null)for(var c=o.length,s=0;s<c;s+=1){var l=o[s];try{typeof l.handleEvent=="function"?l.handleEvent(a):l.call(this,a)}catch(m){ce(m)}}},X.prototype.addEventListener=function(a,o){a=String(a);var c=this._listeners,s=c[a];s==null&&(s=[],c[a]=s);for(var l=!1,m=0;m<s.length;m+=1)s[m]===o&&(l=!0);l||s.push(o)},X.prototype.removeEventListener=function(a,o){a=String(a);var c=this._listeners,s=c[a];if(s!=null){for(var l=[],m=0;m<s.length;m+=1)s[m]!==o&&l.push(s[m]);l.length===0?delete c[a]:c[a]=l}};function h(a){this.type=a,this.target=void 0}function de(a,o){h.call(this,a),this.data=o.data,this.lastEventId=o.lastEventId}de.prototype=Object.create(h.prototype);function be(a,o){h.call(this,a),this.status=o.status,this.statusText=o.statusText,this.headers=o.headers}be.prototype=Object.create(h.prototype);function we(a,o){h.call(this,a),this.error=o.error}we.prototype=Object.create(h.prototype);var Be=-1,ee=0,ue=1,ae=2,me=-1,te=0,pe=1,Ce=2,De=3,Ae=/^text\/event\-stream(;.*)?$/i,Me=1e3,Le=18e6,ge=function(a,o){var c=a==null?o:parseInt(a,10);return c!==c&&(c=o),Te(c)},Te=function(a){return Math.min(Math.max(a,Me),Le)},fe=function(a,o,c){try{typeof o=="function"&&o.call(a,c)}catch(s){ce(s)}};function q(a,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,f(this,a,o)}function Fe(){return u!=null&&"withCredentials"in u.prototype||y==null?new u:new y}var ke=F!=null&&C!=null&&"body"in C.prototype;function f(a,o,c){o=String(o);var s=!!c.withCredentials,l=c.lastEventIdQueryParameterName||"lastEventId",m=Te(1e3),w=ge(c.heartbeatTimeout,45e3),k="",_=m,E=!1,M=0,b=c.headers||{},O=c.Transport,oe=ke&&O==null?void 0:new R(O!=null?new O:Fe()),Se=O!=null&&typeof O!="string"?new O:oe==null?new le:new Q,K=void 0,U=0,Z=Be,ye="",Re="",re="",Ee="",P=te,Oe=0,he=0,tt=function(I,N,W,Y){if(Z===ee)if(I===200&&W!=null&&Ae.test(W)){Z=ue,E=Date.now(),_=m,a.readyState=ue;var G=new be("open",{status:I,statusText:N,headers:Y});a.dispatchEvent(G),fe(a,a.onopen,G)}else{var H="";I!==200?(N&&(N=N.replace(/\s+/g," ")),H="EventSource's response has a status "+I+" "+N+" that is not 200. Aborting the connection."):H="EventSource's response has a Content-Type specifying an unsupported type: "+(W==null?"-":W.replace(/\s+/g," "))+". Aborting the connection.",Ne();var G=new be("error",{status:I,statusText:N,headers:Y});a.dispatchEvent(G),fe(a,a.onerror,G),console.error(H)}},nt=function(I){if(Z===ue){for(var N=-1,W=0;W<I.length;W+=1){var Y=I.charCodeAt(W);(Y===10||Y===13)&&(N=W)}var G=(N!==-1?Ee:"")+I.slice(0,N+1);Ee=(N===-1?Ee:"")+I.slice(N+1),I!==""&&(E=Date.now(),M+=I.length);for(var H=0;H<G.length;H+=1){var Y=G.charCodeAt(H);if(P===me&&Y===10)P=te;else if(P===me&&(P=te),Y===13||Y===10){if(P!==te){P===pe&&(he=H+1);var ie=G.slice(Oe,he-1),se=G.slice(he+(he<H&&G.charCodeAt(he)===32?1:0),H);ie==="data"?(ye+=`
|
7
|
+
`,ye+=se):ie==="id"?Re=se:ie==="event"?re=se:ie==="retry"?(m=ge(se,m),_=m):ie==="heartbeatTimeout"&&(w=ge(se,w),U!==0&&(d(U),U=i(function(){_e()},w)))}if(P===te){if(ye!==""){k=Re,re===""&&(re="message");var ve=new de(re,{data:ye.slice(1),lastEventId:Re});if(a.dispatchEvent(ve),re==="open"?fe(a,a.onopen,ve):re==="message"?fe(a,a.onmessage,ve):re==="error"&&fe(a,a.onerror,ve),Z===ae)return}ye="",re=""}P=Y===13?me:te}else P===te&&(Oe=H,P=pe),P===pe?Y===58&&(he=H+1,P=Ce):P===Ce&&(P=De)}}},je=function(I){if(Z===ue||Z===ee){Z=Be,U!==0&&(d(U),U=0),U=i(function(){_e()},_),_=Te(Math.min(m*16,_*2)),a.readyState=ee;var N=new we("error",{error:I});a.dispatchEvent(N),fe(a,a.onerror,N),I!=null&&console.error(I)}},Ne=function(){Z=ae,K!=null&&(K.abort(),K=void 0),U!==0&&(d(U),U=0),a.readyState=ae},_e=function(){if(U=0,Z!==Be){if(!E&&K!=null)je(new Error("No activity within "+w+" milliseconds. "+(Z===ee?"No response received.":M+" chars received.")+" Reconnecting.")),K!=null&&(K.abort(),K=void 0);else{var I=Math.max((E||Date.now())+w-Date.now(),1);E=!1,U=i(function(){_e()},I)}return}E=!1,M=0,U=i(function(){_e()},w),Z=ee,ye="",re="",Re=k,Ee="",Oe=0,he=0,P=te;var N=o;if(o.slice(0,5)!=="data:"&&o.slice(0,5)!=="blob:"&&k!==""){var W=o.indexOf("?");N=W===-1?o:o.slice(0,W+1)+o.slice(W+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(se,ve){return ve===l?"":se}),N+=(o.indexOf("?")===-1?"?":"&")+l+"="+encodeURIComponent(k)}var Y=a.withCredentials,G={};G.Accept="text/event-stream";var H=a.headers;if(H!=null)for(var ie in H)Object.prototype.hasOwnProperty.call(H,ie)&&(G[ie]=H[ie]);try{K=Se.open(oe,tt,nt,je,N,Y,G)}catch(se){throw Ne(),se}};a.url=o,a.readyState=ee,a.withCredentials=s,a.headers=b,a._close=Ne,_e()}q.prototype=Object.create(X.prototype),q.prototype.CONNECTING=ee,q.prototype.OPEN=ue,q.prototype.CLOSED=ae,q.prototype.close=function(){this._close()},q.CONNECTING=ee,q.OPEN=ue,q.CLOSED=ae,q.prototype.withCredentials=void 0;var S=g;u!=null&&(g==null||!("withCredentials"in g.prototype))&&(S=q),function(a){{var o=a(e);o!==void 0&&(r.exports=o)}}(function(a){a.EventSourcePolyfill=q,a.NativeEventSource=g,a.EventSource=S})})(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(e){return Math.round(e)},Ve=function(e){return Math.pow(10,e)},ut=function(e,n){return $e(e/n)*n},ft=/(\d)(?=(\d{3})+\b)/g,pt=/(\d)(?=(\d\d)+\d\b)/g;function $(r,e){var n=this;if(!(n instanceof $))return new $(r,e);var i=Object.assign({},dt,e),d=Ve(i.precision),u=xe(r,i);n.intValue=u,n.value=u/d,i.increment=i.increment||1/d,i.useVedic?i.groups=pt:i.groups=ft,this.s=i,this.p=d}function xe(r,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=0,d=e.decimal,u=e.errorOnInvalid,y=e.precision,p=e.fromCents,g=Ve(y),v=typeof r=="number",x=r instanceof $;if(x&&p)return r.intValue;if(v||x)i=x?r.value:r;else if(typeof r=="string"){var F=new RegExp("[^-\\d"+d+"]","g"),C=new RegExp("\\"+d,"g");i=r.replace(/\((.*)\)/,"-$1").replace(F,"").replace(C,"."),i=i||0}else{if(u)throw Error("Invalid Input");i=0}return p||(i*=g,i=i.toFixed(4)),n?$e(i):i}function ht(r,e){var n=e.pattern,i=e.negativePattern,d=e.symbol,u=e.separator,y=e.decimal,p=e.groups,g=(""+r).replace(/^-/,"").split("."),v=g[0],x=g[1];return(r.value>=0?n:i).replace("!",d).replace("#",v.replace(p,"$1"+u)+(x?y+x:""))}$.prototype={add:function(e){var n=this.intValue,i=this.s,d=this.p;return $((n+=xe(e,i))/(i.fromCents?1:d),i)},subtract:function(e){var n=this.intValue,i=this.s,d=this.p;return $((n-=xe(e,i))/(i.fromCents?1:d),i)},multiply:function(e){var n=this.intValue,i=this.s;return $((n*=e)/(i.fromCents?1:Ve(i.precision)),i)},divide:function(e){var n=this.intValue,i=this.s;return $(n/=xe(e,i,!1),i)},distribute:function(e){for(var n=this.intValue,i=this.p,d=this.s,u=[],y=Math[n>=0?"floor":"ceil"](n/e),p=Math.abs(n-y*e),g=d.fromCents?1:i;e!==0;e--){var v=$(y/g,d);p-- >0&&(v=v[n>=0?"add":"subtract"](1/g)),u.push(v)}return u},dollars:function(){return~~this.value},cents:function(){var e=this.intValue,n=this.p;return~~(e%n)},format:function(e){var n=this.s;return typeof e=="function"?e(this,n):n.format(this,Object.assign({},n,e))},toString:function(){var e=this.intValue,n=this.p,i=this.s;return ut(e/n,i.increment).toFixed(i.precision)},toJSON:function(){return this.value}};function mt(r){t.append_styles(r,"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 Ke(r,e,n){const i=r.slice();return i[47]=e[n],i}function We(r,e,n){const i=r.slice();return i[50]=e[n],i}function gt(r){let e,n=(r[4].Total?r[6](r[4].Total[0].amount):"0")+"",i,d,u,y,p,g,v,x,F,C=r[2]&&Ye(r);return{c(){e=t.element("button"),i=t.text(n),d=t.space(),u=t.text(r[3]),y=t.space(),p=t.element("span"),p.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(),v=t.empty(),t.attr(e,"class","BalanceValue")},m(T,A){t.insert(T,e,A),t.append(e,i),t.append(e,d),t.append(e,u),t.append(e,y),t.append(e,p),t.insert(T,g,A),C&&C.m(T,A),t.insert(T,v,A),x||(F=t.listen(e,"click",r[23]),x=!0)},p(T,A){A[0]&16&&n!==(n=(T[4].Total?T[6](T[4].Total[0].amount):"0")+"")&&t.set_data(i,n),A[0]&8&&t.set_data(u,T[3]),T[2]?C?C.p(T,A):(C=Ye(T),C.c(),C.m(v.parentNode,v)):C&&(C.d(1),C=null)},d(T){T&&(t.detach(e),t.detach(g),t.detach(v)),C&&C.d(T),x=!1,F()}}}function yt(r){let e,n=r[5]("Loading")+"",i;return{c(){e=t.element("p"),i=t.text(n)},m(d,u){t.insert(d,e,u),t.append(e,i)},p(d,u){u[0]&32&&n!==(n=d[5]("Loading")+"")&&t.set_data(i,n)},d(d){d&&t.detach(e)}}}function Ye(r){let e,n,i,d,u,y,p=r[5]("Title")+"",g,v,x,F,C,T,A=r[5]("DepositButton")+"",z,L,V,J=t.ensure_array_like(Object.keys(r[4])),B=[];for(let R=0;R<J.length;R+=1)B[R]=Qe(Ke(r,J,R));return{c(){e=t.element("div"),n=t.element("button"),i=t.space(),d=t.element("div"),u=t.element("div"),y=t.element("p"),g=t.text(p),v=t.space(),x=t.element("div");for(let R=0;R<B.length;R+=1)B[R].c();F=t.space(),C=t.element("div"),T=t.element("button"),z=t.text(A),t.attr(n,"class","BalanceModalClose"),t.attr(y,"class","BalanceModalTitle"),t.attr(u,"class","BalanceModalHeader"),t.attr(x,"class","BalanceModalBody"),t.attr(T,"class","BalanceModalAction"),t.attr(C,"class","BalanceModalFooter"),t.attr(d,"class","BalanceModal"),t.attr(e,"class","BalanceModalWrapper")},m(R,j){t.insert(R,e,j),t.append(e,n),t.append(e,i),t.append(e,d),t.append(d,u),t.append(u,y),t.append(y,g),t.append(d,v),t.append(d,x);for(let D=0;D<B.length;D+=1)B[D]&&B[D].m(x,null);t.append(d,F),t.append(d,C),t.append(C,T),t.append(T,z),L||(V=[t.listen(n,"click",r[24]),t.listen(T,"click",r[25])],L=!0)},p(R,j){if(j[0]&32&&p!==(p=R[5]("Title")+"")&&t.set_data(g,p),j[0]&120){J=t.ensure_array_like(Object.keys(R[4]));let D;for(D=0;D<J.length;D+=1){const Q=Ke(R,J,D);B[D]?B[D].p(Q,j):(B[D]=Qe(Q),B[D].c(),B[D].m(x,null))}for(;D<B.length;D+=1)B[D].d(1);B.length=J.length}j[0]&32&&A!==(A=R[5]("DepositButton")+"")&&t.set_data(z,A)},d(R){R&&t.detach(e),t.destroy_each(B,R),L=!1,t.run_all(V)}}}function Je(r){let e,n,i=r[5](r[47])+"",d,u,y=(r[50].productType?r[5](r[50].productType):"")+"",p,g,v,x,F=(r[50].amount?r[6](r[50].amount):"0")+"",C,T,A,z;return{c(){e=t.element("div"),n=t.element("p"),d=t.text(i),u=t.space(),p=t.text(y),g=t.space(),v=t.element("p"),x=t.element("span"),C=t.text(F),T=t.space(),A=t.element("span"),z=t.text(r[3]),t.attr(n,"class","BalanceModalText"),t.attr(x,"class","BalanceModalAmount"),t.attr(A,"class","BalanceModalCurrency"),t.attr(v,"class","BalanceModalValue"),t.attr(e,"class","BalanceModalRowLine")},m(L,V){t.insert(L,e,V),t.append(e,n),t.append(n,d),t.append(n,u),t.append(n,p),t.append(e,g),t.append(e,v),t.append(v,x),t.append(x,C),t.append(v,T),t.append(v,A),t.append(A,z)},p(L,V){V[0]&48&&i!==(i=L[5](L[47])+"")&&t.set_data(d,i),V[0]&48&&y!==(y=(L[50].productType?L[5](L[50].productType):"")+"")&&t.set_data(p,y),V[0]&16&&F!==(F=(L[50].amount?L[6](L[50].amount):"0")+"")&&t.set_data(C,F),V[0]&8&&t.set_data(z,L[3])},d(L){L&&t.detach(e)}}}function Qe(r){let e,n,i=t.ensure_array_like(r[4][r[47]]),d=[];for(let u=0;u<i.length;u+=1)d[u]=Je(We(r,i,u));return{c(){e=t.element("div");for(let u=0;u<d.length;u+=1)d[u].c();n=t.space(),t.attr(e,"class","BalanceModalRowBoth")},m(u,y){t.insert(u,e,y);for(let p=0;p<d.length;p+=1)d[p]&&d[p].m(e,null);t.append(e,n)},p(u,y){if(y[0]&120){i=t.ensure_array_like(u[4][u[47]]);let p;for(p=0;p<i.length;p+=1){const g=We(u,i,p);d[p]?d[p].p(g,y):(d[p]=Je(g),d[p].c(),d[p].m(e,n))}for(;p<d.length;p+=1)d[p].d(1);d.length=i.length}},d(u){u&&t.detach(e),t.destroy_each(d,u)}}}function Ze(r){let e,n,i;return{c(){e=t.element("button"),t.attr(e,"class","ShowBalanceModalOverlay")},m(d,u){t.insert(d,e,u),n||(i=t.listen(e,"click",r[26]),n=!0)},p:t.noop,d(d){d&&t.detach(e),n=!1,i()}}}function vt(r){let e,n,i;function d(g,v){return g[1]?yt:gt}let u=d(r),y=u(r),p=r[2]&&Ze(r);return{c(){e=t.element("div"),n=t.element("div"),y.c(),i=t.space(),p&&p.c(),t.attr(n,"class","ShowBalance")},m(g,v){t.insert(g,e,v),t.append(e,n),y.m(n,null),t.append(e,i),p&&p.m(e,null),r[27](e)},p(g,v){u===(u=d(g))&&y?y.p(g,v):(y.d(1),y=u(g),y&&(y.c(),y.m(n,null))),g[2]?p?p.p(g,v):(p=Ze(g),p.c(),p.m(e,null)):p&&(p.d(1),p=null)},i:t.noop,o:t.noop,d(g){g&&t.detach(e),y.d(),p&&p.d(),r[27](null)}}}function bt(r,e,n){let i;t.component_subscribe(r,t.$format,f=>n(5,i=f));let{userid:d=""}=e,{session:u=""}=e,{endpoint:y=""}=e,{lang:p="en"}=e,{clientstyling:g=""}=e,{clientstylingurl:v=""}=e,{translationurl:x=""}=e,{customlocaleidentifier:F=""}=e,{gmversion:C="gm16"}=e,{displaybalanceoption:T="All"}=e,{totalcalculationmode:A="totalCashAmount"}=e,{currencyseparator:z=""}=e,{currencydecimal:L=""}=e,{currencyprecision:V=""}=e,{mbsource:J}=e,B,R,j=!0,D=!1,Q=!1,ne,le="",X=[],ce;const h={},de=["totalCashAmount","totalRealAmount"],be=()=>{fetch(x).then(f=>f.json()).then(f=>Object.keys(f).forEach(S=>Xe(S,f[S]))).catch(f=>console.log(f))};Object.keys(qe).forEach(f=>Xe(f,qe[f]));const we=()=>{if(F.includes(p))return F},Be=f=>F?new Intl.NumberFormat(we(),{useGrouping:!0}).format(f):z&&L?$(f,{separator:z,decimal:L,symbol:"",precision:parseInt(V||"2",10)}).format():$(f,{separator:".",decimal:",",symbol:"",precision:parseInt(V||"2",10)}).format(),ee=()=>Ge(this,null,function*(){var S,a,o;n(1,j=!0);const f=new URL(`${y}/v1/player/${d}/account`);try{const c=yield fetch(f,{method:"GET",headers:{"X-SessionID":u}}),s=yield c.json();if(c.ok)X=s.items,n(3,le=(S=X.find(l=>l.displayName==="Casino"))==null?void 0:S.currency),n(4,h.Total=[{amount:s.totalAmount[le]}],h),n(4,h.Real=[{amount:(a=X.find(l=>l.displayName==="Casino"))==null?void 0:a.balanceAmount}],h),n(4,h.Bonus=[{amount:(o=X.find(l=>l.displayName==="UBS"))==null?void 0:o.balanceAmount}],h);else throw new Error("Failed to fetch balance data !")}catch(c){console.log("Balance error: ",c)}finally{n(1,j=!1)}}),ue=()=>{n(1,j=!0);const f=new URL(`${y}/v2/player/${d}/balance`),S=new Headers;S.append("X-SessionID",u),fetch(f,{method:"GET",headers:S}).then(o=>o.json()).then(o=>{o[A]||n(8,A=de[0]);const c=o.items.find(l=>l.type==="Real"&&l.walletAccountType==="Ordinary");if(n(3,le=c.currency),Q=!!c.productType,n(4,h.Total=[{amount:0}],h),n(4,h.Real=[],h),n(4,h.Bonus=[],h),n(4,h.Credit=[],h),!Q){ce={lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},n(4,h.Total[0].amount=o[A][le],h);for(const l of o.items)switch(l.type){case"Bonus":h.Bonus.length===0?h.Bonus.push({amount:l.amount}):n(4,h.Bonus[0].amount+=l.amount,h);break;case"Real":if(l.creditLine&&h.Credit.length===0&&h.Credit.push({amount:l.creditLine}),A==="totalRealAmount")continue;h.Real.length===0?h.Real.push({amount:l.amount}):n(4,h.Real[0].amount+=l.amount,h);break}for(const[l,m]of Object.entries(h))m.length<1&&delete h[l];n(1,j=!1);return}ce={Casino:{lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1},Sports:{lastOrdinaryAfterAmount:0,showCreditLineAfterAmount:!1}};let s=o.items;T&&T!=="All"&&(s=o.items.filter(l=>l.productType===T));for(const l of s){let m;switch(l.type){case"Bonus":m=h.Bonus.findIndex(w=>w.productType===l.productType),m>0?n(4,h.Bonus[m].amount+=l.amount,h):h.Bonus.push({amount:l.amount,productType:l.productType});break;case"Real":l.creditLine&&h.Credit.push({amount:l.creditLine,productType:l.productType}),m=h.Real.findIndex(w=>w.productType===l.productType),m>0?n(4,h.Real[m].amount+=l.amount,h):h.Real.push({amount:l.amount,productType:l.productType});break}}Ce();for(const[l,m]of Object.entries(h))m.length<1&&delete h[l];n(1,j=!1)}).catch(()=>{throw n(1,j=!1),new Error("Failed to fetch balance data !")})},ae=()=>{if(ne&&ne.close(),u.length<1)return;let f,S;switch(C){case"gm16":f=new URL(`${y}/v2/player/${d}/information/updates`),S=c=>De(c);break;case"gmcore":f=new URL(`${y}/v1/player/${d}/balance/updates`),S=c=>te(c);break}const a={accept:"text/event-stream","X-SessionId":u},o=new ct.EventSourcePolyfill(f,{headers:a});ne=o,o.addEventListener("message",S)},me=f=>{let S;try{S=JSON.parse(f)}catch(a){console.log("Balance stream failed: ",a);return}return S},te=f=>{var c,s;const S=me(f.data);if(!S){ae();return}let a="0";const o=S.balanceChange;X=X.map(l=>(o&&o[l.id]&&(l=Pe(Ue({},l),{balanceAmount:o[l.id].afterAmount})),a=(parseFloat(l==null?void 0:l.balanceAmount)+parseFloat(a)).toString(),l)),n(4,h.Real=[{amount:(c=X[0])==null?void 0:c.balanceAmount}],h),n(4,h.Bonus=[{amount:(s=X[1])==null?void 0:s.balanceAmount}],h),n(4,h.Total=[{amount:Number(a)}],h)},pe=(f,S,a)=>{let o=null;switch(a.walletAccountType){case"Ordinary":(a.afterAmount!==a.affectedAmount||S.lastOrdinaryAfterAmount===0)&&(S.lastOrdinaryAfterAmount=a.afterAmount,S.showCreditLineAfterAmount||(o=a.afterAmount));break;case"CreditLine":a.afterAmount!==0?(o=a.afterAmount,S.showCreditLineAfterAmount=!0):(o=S.lastOrdinaryAfterAmount,S.showCreditLineAfterAmount=!1);break;default:o=a.afterAmount}return o===null?f:o},Ce=()=>{switch(A){case"totalCashAmount":let f=0;for(const a of["Real","Bonus"])for(const o of h[a])f+=Math.max(o.amount,0);n(4,h.Total[0].amount=f,h);break;case"totalRealAmount":if(!Q)return;let S=0;for(const a of h.Real)S+=a.amount;n(4,h.Total[0].amount=S,h)}},De=f=>{const S=me(f.data);if(!S){ae();return}if(S.type!=="BALANCE_UPDATE_V2")return;const a=S.body.balanceChange;for(const[o,c]of Object.entries(a))if(A==="totalRealAmount"&&o==="Real"&&!Q&&n(4,h.Total[0].amount=pe(h.Total[0].amount,ce,c),h),!!h[o])for(const s of h[o]){if(!Q){s.amount=o==="Real"?pe(s.amount,ce,c):c.afterAmount;continue}c.productType===s.productType&&(s.amount=o==="Real"?pe(s.amount,ce[s.productType],c):c.afterAmount)}Ce()},Ae=()=>{n(2,D=!1),window.postMessage({type:"GoToDeposit"},window.location.href),typeof gtag=="function"&>ag("event","GoToDeposit",{context:"PlayerAccountBalanceModal"})},Me=()=>{de.includes(A)||(console.error(`Unsupported value ('${A}') for totalcalculationmode parameter. Only the following values are supported ${de}. Using default value ('${de[0]}').`),n(8,A=de[0]))},Le=()=>{switch(lt(p),Me(),C){case"gmcore":ee();break;case"gm16":ue();break;default:throw Error(`Invalid apiversion attribute: ${C}`)}},ge=f=>f.data&&f.data.type==="LogoutSuccessfull"&&ne.close();t.onMount(()=>(window.addEventListener("message",ge,!1),()=>{window.emMessageBus&&R&&R.unsubscribe(),window.removeEventListener("message",ge),ne&&ne.close()}));const Te=()=>n(2,D=!0),fe=()=>n(2,D=!1),q=()=>Ae(),Fe=()=>n(2,D=!1);function ke(f){t.binding_callbacks[f?"unshift":"push"](()=>{B=f,n(0,B)})}return r.$$set=f=>{"userid"in f&&n(9,d=f.userid),"session"in f&&n(10,u=f.session),"endpoint"in f&&n(11,y=f.endpoint),"lang"in f&&n(12,p=f.lang),"clientstyling"in f&&n(13,g=f.clientstyling),"clientstylingurl"in f&&n(14,v=f.clientstylingurl),"translationurl"in f&&n(15,x=f.translationurl),"customlocaleidentifier"in f&&n(16,F=f.customlocaleidentifier),"gmversion"in f&&n(17,C=f.gmversion),"displaybalanceoption"in f&&n(18,T=f.displaybalanceoption),"totalcalculationmode"in f&&n(8,A=f.totalcalculationmode),"currencyseparator"in f&&n(19,z=f.currencyseparator),"currencydecimal"in f&&n(20,L=f.currencydecimal),"currencyprecision"in f&&n(21,V=f.currencyprecision),"mbsource"in f&&n(22,J=f.mbsource)},r.$$.update=()=>{r.$$.dirty[0]&4096&&p&&we(),r.$$.dirty[0]&400896&&y&&d&&u&&p&&C&&T&&Le(),r.$$.dirty[0]&134656&&y&&d&&u&&C&&ae(),r.$$.dirty[0]&8193&&g&&B&&t.setClientStyling(B,g),r.$$.dirty[0]&16385&&v&&B&&t.setClientStylingURL(B,v),r.$$.dirty[0]&4194305&&B&&t.setStreamStyling(B,`${J}.Style`),r.$$.dirty[0]&32768&&x&&be()},[B,j,D,le,h,i,Be,Ae,A,d,u,y,p,g,v,x,F,C,T,z,L,V,J,Te,fe,q,Fe,ke]}class et extends t.SvelteComponent{constructor(e){super(),t.init(this,e,bt,vt,t.safe_not_equal,{userid:9,session:10,endpoint:11,lang:12,clientstyling:13,clientstylingurl:14,translationurl:15,customlocaleidentifier:16,gmversion:17,displaybalanceoption:18,totalcalculationmode:8,currencyseparator:19,currencydecimal:20,currencyprecision:21,mbsource:22},mt,[-1,-1])}get userid(){return this.$$.ctx[9]}set userid(e){this.$$set({userid:e}),t.flush()}get session(){return this.$$.ctx[10]}set session(e){this.$$set({session:e}),t.flush()}get endpoint(){return this.$$.ctx[11]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),t.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get customlocaleidentifier(){return this.$$.ctx[16]}set customlocaleidentifier(e){this.$$set({customlocaleidentifier:e}),t.flush()}get gmversion(){return this.$$.ctx[17]}set gmversion(e){this.$$set({gmversion:e}),t.flush()}get displaybalanceoption(){return this.$$.ctx[18]}set displaybalanceoption(e){this.$$set({displaybalanceoption:e}),t.flush()}get totalcalculationmode(){return this.$$.ctx[8]}set totalcalculationmode(e){this.$$set({totalcalculationmode:e}),t.flush()}get currencyseparator(){return this.$$.ctx[19]}set currencyseparator(e){this.$$set({currencyseparator:e}),t.flush()}get currencydecimal(){return this.$$.ctx[20]}set currencydecimal(e){this.$$set({currencydecimal:e}),t.flush()}get currencyprecision(){return this.$$.ctx[21]}set currencyprecision(e){this.$$set({currencyprecision:e}),t.flush()}get mbsource(){return this.$$.ctx[22]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(et,{userid:{},session:{},endpoint:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},customlocaleidentifier:{},gmversion:{},displaybalanceoption:{},totalcalculationmode:{},currencyseparator:{},currencydecimal:{},currencyprecision:{},mbsource:{}},[],[],!0);exports.default=et;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHamburgerMenu-CaFkIr3d.cjs");function E(s,t){e.addMessages(s,t)}function A(s){e.$locale.set(s)}const L={en:{titleDeposit:"Deposit",loading:"Loading, please wait ..."},"zh-hk":{titleDeposit:"訂金",loading:"加載請稍候…"},fr:{titleDeposit:"Dépôt",loading:"Chargement, veuillez patienter ..."},tr:{titleDeposit:"PARA YATIR",loading:"Yükleniyor ..."},ro:{titleDeposit:"Depunere",loading:"Se încarcă..."},es:{titleDeposit:"Deposita",loading:"Cargando ..."},pt:{titleDeposit:"Depósito",loading:"Carregando, por favor espere ..."},hr:{titleDeposit:"Uplata",loading:"Učitavanje"},"pt-br":{titleDeposit:"Depositar",Loading:"Carregando, por favor espere..."},"es-mx":{titleDeposit:"Depositar",Loading:"Cargando, por favor espere..."}};function F(s){e.append_styles(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)}")}function H(s){let t,a,o,n,c,m,d,p,f,l,r=s[4]("titleDeposit")+"",u,w,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"),p=e.svg_element("path"),f=e.space(),l=e.element("h2"),u=e.text(r),e.attr(p,"class","aaa"),e.attr(p,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),e.attr(p,"transform","translate(15 15) rotate(180)"),e.attr(d,"transform","translate(20 158)"),e.attr(m,"transform","translate(-20 -158)"),e.attr(a,"xmlns","http://www.w3.org/2000/svg"),e.attr(a,"width","15"),e.attr(a,"height","15"),e.attr(a,"viewBox","0 0 15 15"),e.attr(l,"class","DepositTitleMobile"),e.attr(t,"class","MenuReturnButton")},m(g,h){e.insert(g,t,h),e.append(t,a),e.append(a,o),e.append(o,n),e.append(n,c),e.append(a,m),e.append(m,d),e.append(d,p),e.append(t,f),e.append(t,l),e.append(l,u),w||(D=e.listen(t,"click",s[18]),w=!0)},p(g,h){h&16&&r!==(r=g[4]("titleDeposit")+"")&&e.set_data(u,r)},d(g){g&&e.detach(t),w=!1,D()}}}function W(s){let t,a,o;return{c(){t=e.element("div"),a=e.element("iframe"),e.src_url_equal(a.src,o=s[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 G(s){let t,a=s[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 q(s){let t,a,o,n=s[4]("titleDeposit")+"",c,m,d=s[5]&&H(s);function p(r,u){return r[1]?G:W}let f=p(s),l=f(s);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 "+(s[5]?"DepositTitleNone":"")),e.attr(t,"class","DepositWrapper "+(s[5]?"DepositWrapperMobile":"")),e.set_style(t,"--dynamic-height",s[2])},m(r,u){e.insert(r,t,u),d&&d.m(t,null),e.append(t,a),e.append(t,o),e.append(o,c),e.append(t,m),l.m(t,null),s[19](t)},p(r,[u]){r[5]&&d.p(r,u),u&16&&n!==(n=r[4]("titleDeposit")+"")&&e.set_data(c,n),f===(f=p(r))&&l?l.p(r,u):(l.d(1),l=f(r),l&&(l.c(),l.m(t,null))),u&4&&e.set_style(t,"--dynamic-height",r[2])},i:e.noop,o:e.noop,d(r){r&&e.detach(t),d&&d.d(),l.d(),s[19](null)}}}function N(s,t,a){let o,n;e.component_subscribe(s,e.$format,i=>a(4,n=i));let{endpoint:c=""}=t,{session:m=""}=t,{playerid:d=""}=t,{lang:p="en"}=t,{hasdefaultamount:f=""}=t,{clientstyling:l=""}=t,{clientstylingurl:r=""}=t,{translationurl:u=""}=t,{currency:w=""}=t,{mbsource:D}=t,{shortcashierenabled:g="false"}=t,h,B=window.navigator.userAgent,v=e.getDevice(B)!=="PC",M=!0,k,C,_=0,S="";const P=()=>{fetch(u).then(y=>y.json()).then(y=>{Object.keys(y).forEach(b=>{E(b,y[b])})}).catch(y=>{console.log(y)})};Object.keys(L).forEach(i=>{E(i,L[i])});const x=()=>{window.postMessage({type:"GoToPreviousRoute",isMobile:v},window.location.href)},T=i=>{if(i.data){switch(i.data.type){case"ProfileDetailsData":a(7,w=i.data.profileDetails.currency);break}switch(i.data["MMFE:setQuickDepositHeight"]&&a(2,k=i.data["MMFE:setQuickDepositHeight"].toString()+"px"),i.data["MMFE:openFullCashier"]==="true"&&(window.postMessage({type:"GoToDeposit"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href)),i.data.redirect){case"mm-hc-casino":window.postMessage({type:"GoToCasino"},window.location.href);break;case"mm-hc-sports":window.postMessage({type:"GoToSports"},window.location.href);break;case"mm-hc-contact":window.postMessage({type:"GoToCustomerSupport"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href);break;case"mm-hc-back-to-merchant":window.postMessage({type:"GoToHomepage"},window.location.href);break;case"mm-wm-hc-init-deposit":window.postMessage({type:"RedirectWithdrawDepositCloseModal"},window.location.href);break;case"mm-wm-hc-init-deposit-quick":window.postMessage({type:"CloseShortCashier"},window.location.href);break}}},j=()=>{let i=new URL(`${c}/v1/player/${d}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);if(i.searchParams.append("language",p),o&&i.searchParams.append("isShortCashier",g),f)switch(w){case"USD":_=.4;break;case"CDF":_=1e3;break}let y={method:"POST",headers:{"X-SessionId":m,currency:w||"EUR",amount:_,cashierMode:"Default",IsShortCashier:g,accept:"application/json"}};fetch(i.href,y).then(b=>b.json()).then(b=>{a(1,M=!1),a(3,S=b.CashierUrl)},b=>{console.error(b)})},I=()=>{A(p)};e.onMount(()=>(window.addEventListener("message",T,!1),()=>{window.emMessageBus&&C&&C.unsubscribe(),window.removeEventListener("message",T)}));const U=()=>x();function z(i){e.binding_callbacks[i?"unshift":"push"](()=>{h=i,a(0,h)})}return s.$$set=i=>{"endpoint"in i&&a(8,c=i.endpoint),"session"in i&&a(9,m=i.session),"playerid"in i&&a(10,d=i.playerid),"lang"in i&&a(11,p=i.lang),"hasdefaultamount"in i&&a(12,f=i.hasdefaultamount),"clientstyling"in i&&a(13,l=i.clientstyling),"clientstylingurl"in i&&a(14,r=i.clientstylingurl),"translationurl"in i&&a(15,u=i.translationurl),"currency"in i&&a(7,w=i.currency),"mbsource"in i&&a(16,D=i.mbsource),"shortcashierenabled"in i&&a(17,g=i.shortcashierenabled)},s.$$.update=()=>{s.$$.dirty&2048&&p&&I(),s.$$.dirty&131072&&(o=g.toLocaleLowerCase()==="true"),s.$$.dirty&8193&&l&&h&&e.setClientStyling(h,l),s.$$.dirty&16385&&r&&h&&e.setClientStylingURL(h,r),s.$$.dirty&65537&&D&&h&&e.setStreamStyling(h,`${D}.Style`),s.$$.dirty&32768&&u&&P(),s.$$.dirty&135040&&m&&d&&c&&w&&p&&g&&j()},[h,M,k,S,n,v,x,w,c,m,d,p,f,l,r,u,D,g,U,z]}class R extends e.SvelteComponent{constructor(t){super(),e.init(this,t,N,q,e.safe_not_equal,{endpoint:8,session:9,playerid:10,lang:11,hasdefaultamount:12,clientstyling:13,clientstylingurl:14,translationurl:15,currency:7,mbsource:16,shortcashierenabled:17},F)}get endpoint(){return this.$$.ctx[8]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[9]}set session(t){this.$$set({session:t}),e.flush()}get playerid(){return this.$$.ctx[10]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[11]}set lang(t){this.$$set({lang:t}),e.flush()}get hasdefaultamount(){return this.$$.ctx[12]}set hasdefaultamount(t){this.$$set({hasdefaultamount:t}),e.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get currency(){return this.$$.ctx[7]}set currency(t){this.$$set({currency:t}),e.flush()}get mbsource(){return this.$$.ctx[16]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get shortcashierenabled(){return this.$$.ctx[17]}set shortcashierenabled(t){this.$$set({shortcashierenabled:t}),e.flush()}}e.create_custom_element(R,{endpoint:{},session:{},playerid:{},lang:{},hasdefaultamount:{},clientstyling:{},clientstylingurl:{},translationurl:{},currency:{},mbsource:{},shortcashierenabled:{}},[],[],!0);exports.default=R;
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import { b as
|
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, x as u, P as U, j as S, y as h, A as L, n as F, k as x, l as ie, H as se, o as ae, m as re, u as ne, D as k, z as oe, q as le, t as ce, I as H, G as ue } from "./CasinoHamburgerMenu-pBvrxlJy.js";
|
2
2
|
function W(s, e) {
|
3
|
-
|
3
|
+
X(s, e);
|
4
4
|
}
|
5
5
|
function de(s) {
|
6
|
-
|
6
|
+
Z.set(s);
|
7
7
|
}
|
8
|
-
const
|
8
|
+
const G = {
|
9
9
|
en: {
|
10
10
|
titleDeposit: "Deposit",
|
11
11
|
loading: "Loading, please wait ..."
|
@@ -47,20 +47,20 @@ const H = {
|
|
47
47
|
Loading: "Cargando, por favor espere..."
|
48
48
|
}
|
49
49
|
};
|
50
|
-
function ue(s) {
|
51
|
-
$(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
|
-
),
|
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"),
|
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
|
-
|
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(
|
73
|
+
f[4]("titleDeposit") + "") && L(d, r);
|
74
74
|
},
|
75
75
|
d(f) {
|
76
|
-
f &&
|
76
|
+
f && x(e), b = !1, _();
|
77
77
|
}
|
78
78
|
};
|
79
79
|
}
|
80
|
-
function
|
80
|
+
function ge(s) {
|
81
81
|
let e, i, n;
|
82
82
|
return {
|
83
83
|
c() {
|
84
|
-
e = M("div"), i = M("iframe"),
|
85
|
-
s[3]) ||
|
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 && !
|
93
|
-
a[3]) &&
|
92
|
+
8 && !H(i.src, n = /*iframeUrl*/
|
93
|
+
a[3]) && u(i, "src", n);
|
94
94
|
},
|
95
95
|
d(a) {
|
96
|
-
a &&
|
96
|
+
a && x(e);
|
97
97
|
}
|
98
98
|
};
|
99
99
|
}
|
100
|
-
function
|
100
|
+
function me(s) {
|
101
101
|
let e, i = (
|
102
102
|
/*$_*/
|
103
103
|
s[4]("loading") + ""
|
@@ -107,7 +107,7 @@ function ge(s) {
|
|
107
107
|
e = M("p"), n = C(i);
|
108
108
|
},
|
109
109
|
m(a, l) {
|
110
|
-
|
110
|
+
S(a, e, l), h(e, n);
|
111
111
|
},
|
112
112
|
p(a, l) {
|
113
113
|
l & /*$_*/
|
@@ -115,64 +115,64 @@ function ge(s) {
|
|
115
115
|
a[4]("loading") + "") && L(n, i);
|
116
116
|
},
|
117
117
|
d(a) {
|
118
|
-
a &&
|
118
|
+
a && x(e);
|
119
119
|
}
|
120
120
|
};
|
121
121
|
}
|
122
|
-
function
|
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] &&
|
128
|
+
s[5] && pe(s)
|
129
129
|
);
|
130
|
-
function p(r,
|
130
|
+
function p(r, d) {
|
131
131
|
return (
|
132
132
|
/*isLoading*/
|
133
|
-
r[1] ?
|
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(),
|
140
|
-
(s[5] ? "DepositTitleNone" : "")),
|
141
|
-
(s[5] ? "DepositWrapperMobile" : "")),
|
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,
|
149
|
-
|
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, [
|
151
|
+
p(r, [d]) {
|
152
152
|
/*isMobile*/
|
153
|
-
r[5] && c.p(r,
|
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,
|
156
|
-
4 &&
|
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:
|
164
|
-
o:
|
163
|
+
i: F,
|
164
|
+
o: F,
|
165
165
|
d(r) {
|
166
|
-
r &&
|
166
|
+
r && x(e), c && c.d(), o.d(), s[19](null);
|
167
167
|
}
|
168
168
|
};
|
169
169
|
}
|
170
|
-
function
|
170
|
+
function we(s, e, i) {
|
171
171
|
let n, a;
|
172
|
-
|
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:
|
174
|
-
const
|
175
|
-
fetch(
|
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, P, T = 0, j = "";
|
174
|
+
const q = () => {
|
175
|
+
fetch(d).then((D) => D.json()).then((D) => {
|
176
176
|
Object.keys(D).forEach((v) => {
|
177
177
|
W(v, D[v]);
|
178
178
|
});
|
@@ -180,12 +180,12 @@ function fe(s, e, i) {
|
|
180
180
|
console.log(D);
|
181
181
|
});
|
182
182
|
};
|
183
|
-
Object.keys(
|
184
|
-
W(t,
|
183
|
+
Object.keys(G).forEach((t) => {
|
184
|
+
W(t, G[t]);
|
185
185
|
});
|
186
|
-
const
|
186
|
+
const z = () => {
|
187
187
|
window.postMessage({ type: "GoToPreviousRoute", isMobile: R }, window.location.href);
|
188
|
-
},
|
188
|
+
}, A = (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,
|
245
|
+
i(1, B = !1), i(3, j = v.CashierUrl);
|
246
246
|
},
|
247
247
|
(v) => {
|
248
248
|
console.error(v);
|
249
249
|
}
|
250
250
|
);
|
251
|
-
},
|
251
|
+
}, Q = () => {
|
252
252
|
de(p);
|
253
253
|
};
|
254
|
-
|
255
|
-
window.removeEventListener("message",
|
254
|
+
ae(() => (window.addEventListener("message", A, !1), () => {
|
255
|
+
window.emMessageBus && P && P.unsubscribe(), window.removeEventListener("message", A);
|
256
256
|
}));
|
257
|
-
const
|
258
|
-
function
|
259
|
-
|
257
|
+
const Y = () => z();
|
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,
|
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 &&
|
267
|
+
2048 && p && Q(), s.$$.dirty & /*shortcashierenabled*/
|
268
268
|
131072 && (n = f.toLocaleLowerCase() === "true"), s.$$.dirty & /*clientstyling, customStylingContainer*/
|
269
|
-
8193 && o && g &&
|
270
|
-
16385 && r && g &&
|
271
|
-
65537 && _ && g &&
|
272
|
-
32768 &&
|
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
|
-
|
278
|
+
j,
|
279
279
|
a,
|
280
280
|
R,
|
281
|
-
|
281
|
+
z,
|
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
|
-
|
290
|
+
d,
|
291
291
|
_,
|
292
292
|
f,
|
293
|
-
|
294
|
-
|
293
|
+
Y,
|
294
|
+
V
|
295
295
|
];
|
296
296
|
}
|
297
|
-
class
|
297
|
+
class ye extends J {
|
298
298
|
constructor(e) {
|
299
|
-
super(),
|
299
|
+
super(), K(
|
300
300
|
this,
|
301
301
|
e,
|
302
|
+
we,
|
302
303
|
fe,
|
303
|
-
|
304
|
-
Z,
|
304
|
+
ee,
|
305
305
|
{
|
306
306
|
endpoint: 8,
|
307
307
|
session: 9,
|
@@ -315,7 +315,7 @@ class we extends V {
|
|
315
315
|
mbsource: 16,
|
316
316
|
shortcashierenabled: 17
|
317
317
|
},
|
318
|
-
|
318
|
+
he
|
319
319
|
);
|
320
320
|
}
|
321
321
|
get endpoint() {
|
@@ -385,7 +385,7 @@ class we extends V {
|
|
385
385
|
this.$$set({ shortcashierenabled: e }), y();
|
386
386
|
}
|
387
387
|
}
|
388
|
-
|
388
|
+
$(ye, { endpoint: {}, session: {}, playerid: {}, lang: {}, hasdefaultamount: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, currency: {}, mbsource: {}, shortcashierenabled: {} }, [], [], !0);
|
389
389
|
export {
|
390
|
-
|
390
|
+
ye as default
|
391
391
|
};
|