@everymatrix/casino-header-controller 1.0.69 → 1.0.70
Sign up to get free protection for your applications and to get access to all the features.
- package/components/CasinoHamburgerMenu-DCoSb--r.js +5350 -0
- package/components/CasinoHamburgerMenu-i3K3rvox.cjs +8 -0
- package/components/CasinoHeaderController-DFPJvf1F.js +2989 -0
- package/components/CasinoHeaderController-DpgbBFNH.cjs +13 -0
- package/components/CasinoSlider-NvJTt5bw.js +803 -0
- package/components/CasinoSlider-jx0uuO2O.cjs +1 -0
- package/components/PlayerAccountBalanceModal-Bx_en3me.js +1475 -0
- package/components/PlayerAccountBalanceModal-DASCIvqm.cjs +13 -0
- package/components/PlayerDeposit-Bq6A7wrj.cjs +1 -0
- package/components/PlayerDeposit-CCg5BqJq.js +395 -0
- package/package.json +8 -7
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";var $e=Object.defineProperty,et=Object.defineProperties;var tt=Object.getOwnPropertyDescriptors;var Pe=Object.getOwnPropertySymbols;var at=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable;var ze=(l,t,a)=>t in l?$e(l,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):l[t]=a,Ue=(l,t)=>{for(var a in t||(t={}))at.call(t,a)&&ze(l,a,t[a]);if(Pe)for(var a of Pe(t))nt.call(t,a)&&ze(l,a,t[a]);return l},Xe=(l,t)=>et(l,tt(t));var Ie=(l,t,a)=>new Promise((r,s)=>{var d=h=>{try{x(a.next(h))}catch(B){s(B)}},v=h=>{try{x(a.throw(h))}catch(B){s(B)}},x=h=>h.done?r(h.value):Promise.resolve(h.value).then(d,v);x((a=a.apply(l,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHamburgerMenu-i3K3rvox.cjs");function qe(l,t){e.addMessages(l,t)}function lt(l){e.$locale.set(l)}const Ge={en:{balanceTitle:"Your Balance",totalBalance:"Total Balance",cashBalance:"Cash Balance",bonusBalance:"Bonus Balance",depositButton:"Deposit"},"zh-hk":{balanceTitle:"您的餘額",totalBalance:"總餘額",cashBalance:"現金餘額",bonusBalance:"獎金餘額",depositButton:"訂金"},de:{balanceTitle:"Dein Kontostand",totalBalance:"Gesamtsaldo",cashBalance:"Barguthaben",bonusBalance:"Bonusguthaben",depositButton:"Anzahlung"},it:{balanceTitle:"Il tuo bilancio",totalBalance:"Saldo totale",cashBalance:"Saldo in contanti",bonusBalance:"Saldo bonus",depositButton:"Depositare"},fr:{balanceTitle:"Votre solde",totalBalance:"Solde total",cashBalance:"Encaisse",bonusBalance:"Solde du bonus",depositButton:"Dépôt"},es:{balanceTitle:"Saldos",totalBalance:"Saldo Total",cashBalance:"Saldo Disponible",bonusBalance:"Saldo de Bonos",depositButton:"Deposita"},tr:{balanceTitle:"Bakiyeniz",totalBalance:"Toplam Bakiye",cashBalance:"Nakit dengesi",bonusBalance:"Bonus Bakiyesi",depositButton:"Depozito"},ru:{balanceTitle:"Ваш баланс",totalBalance:"Итоговый баланс",cashBalance:"Денежных баланс",bonusBalance:"Бонусный баланс",depositButton:"Депозит"},ro:{balanceTitle:"Balanta Ta",totalBalance:"Balanta Totala",cashBalance:"Balanta Cash",bonusBalance:"Balanta Bonus",depositButton:"Depunere"},hr:{balanceTitle:"Vaše stanje",totalBalance:"Ukupno stanje",cashBalance:"Stanje novca",bonusBalance:"Stanje bonusa",depositButton:"Uplata"},hu:{balanceTitle:"Az egyensúlyod",totalBalance:"Teljes egyenleg",cashBalance:"Pénzforgalmi egyenleg",bonusBalance:"Bónuszegyenleg",depositButton:"Letét"},pl:{balanceTitle:"Twój balans",totalBalance:"Saldo całkowite",cashBalance:"Saldo środków pieniężnych",bonusBalance:"Saldo bonusowe",depositButton:"Depozyt"},pt:{balanceTitle:"Seu Saldo",totalBalance:"Saldo total",cashBalance:"Saldo de caixa",bonusBalance:"Saldo de bônus",depositButton:"Depósito"},sl:{balanceTitle:"Vaše stanje",totalBalance:"Skupno stanje",cashBalance:"Stanje gotovine",bonusBalance:"Bonus stanje",depositButton:"Polog"},sr:{balanceTitle:"Стање",totalBalance:"Укупно стање",cashBalance:"Новчано стање",bonusBalance:"Бонус Баланце",depositButton:"Депозит"},"pt-br":{balanceTitle:"Seu balanço",totalBalance:"Balanço total",cashBalance:"Saldo de caixa",bonusBalance:"Saldo em títulos",depositButton:"Depósito"},"es-mx":{balanceTitle:"Su saldo",totalBalance:"Saldo total",cashBalance:"Saldo en efectivo",bonusBalance:"Saldo en bonos",depositButton:"Depósito"}};var je={exports:{}};/** @license
|
2
|
+
* eventsource.js
|
3
|
+
* Available under MIT License (MIT)
|
4
|
+
* https://github.com/Yaffle/EventSource/
|
5
|
+
*/(function(l,t){(function(a){var r=a.setTimeout,s=a.clearTimeout,d=a.XMLHttpRequest,v=a.XDomainRequest,x=a.ActiveXObject,h=a.EventSource,B=a.document,C=a.Promise,M=a.fetch,k=a.Response,b=a.TextDecoder,m=a.TextEncoder,T=a.AbortController;if(typeof window!="undefined"&&typeof B!="undefined"&&!("readyState"in B)&&B.body==null&&(B.readyState="loading",window.addEventListener("load",function(n){B.readyState="complete"},!1)),d==null&&x!=null&&(d=function(){return new x("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(n){function o(){}return o.prototype=n,new o}),Date.now||(Date.now=function(){return new Date().getTime()}),T==null){var _=M;M=function(n,o){var p=o.signal;return _(n,{headers:o.headers,credentials:o.credentials,cache:o.cache}).then(function(i){var y=i.body.getReader();return p._reader=y,p._aborted&&p._reader.cancel(),{status:i.status,statusText:i.statusText,headers:i.headers,body:{getReader:function(){return y}}}})},T=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function U(){this.bitsNeeded=0,this.codePoint=0}U.prototype.decode=function(n){function o(N,z,g){if(g===1)return N>=128>>z&&N<<z<=2047;if(g===2)return N>=2048>>z&&N<<z<=55295||N>=57344>>z&&N<<z<=65535;if(g===3)return N>=65536>>z&&N<<z<=1114111;throw new Error}function p(N,z){if(N===6*1)return z>>6>15?3:z>31?2:1;if(N===6*2)return z>15?3:2;if(N===6*3)return 3;throw new Error}for(var i=65533,y="",f=this.bitsNeeded,u=this.codePoint,w=0;w<n.length;w+=1){var A=n[w];f!==0&&(A<128||A>191||!o(u<<6|A&63,f-6,p(f,u)))&&(f=0,u=i,y+=String.fromCharCode(u)),f===0?(A>=0&&A<=127?(f=0,u=A):A>=192&&A<=223?(f=6*1,u=A&31):A>=224&&A<=239?(f=6*2,u=A&15):A>=240&&A<=247?(f=6*3,u=A&7):(f=0,u=i),f!==0&&!o(u,f,p(f,u))&&(f=0,u=i)):(f-=6,u=u<<6|A&63),f===0&&(u<=65535?y+=String.fromCharCode(u):(y+=String.fromCharCode(55296+(u-65535-1>>10)),y+=String.fromCharCode(56320+(u-65535-1&1023))))}return this.bitsNeeded=f,this.codePoint=u,y};var J=function(){try{return new b().decode(new m().encode("test"),{stream:!0})==="test"}catch(n){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+n)}return!1};(b==null||m==null||!J())&&(b=U);var S=function(){};function R(n){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=S,this.onload=S,this.onerror=S,this.onreadystatechange=S,this._contentType="",this._xhr=n,this._sendTimeout=0,this._abort=S}R.prototype.open=function(n,o){this._abort(!0);var p=this,i=this._xhr,y=1,f=0;this._abort=function(g){p._sendTimeout!==0&&(s(p._sendTimeout),p._sendTimeout=0),(y===1||y===2||y===3)&&(y=4,i.onload=S,i.onerror=S,i.onabort=S,i.onprogress=S,i.onreadystatechange=S,i.abort(),f!==0&&(s(f),f=0),g||(p.readyState=4,p.onabort(null),p.onreadystatechange())),y=0};var u=function(){if(y===1){var g=0,W="",me=void 0;if("contentType"in i)g=200,W="OK",me=i.contentType;else try{g=i.status,W=i.statusText,me=i.getResponseHeader("Content-Type")}catch(Ae){g=0,W="",me=void 0}g!==0&&(y=2,p.readyState=2,p.status=g,p.statusText=W,p._contentType=me,p.onreadystatechange())}},w=function(){if(u(),y===2||y===3){y=3;var g="";try{g=i.responseText}catch(W){}p.readyState=3,p.responseText=g,p.onprogress()}},A=function(g,W){if((W==null||W.preventDefault==null)&&(W={preventDefault:S}),w(),y===1||y===2||y===3){if(y=4,f!==0&&(s(f),f=0),p.readyState=4,g==="load")p.onload(W);else if(g==="error")p.onerror(W);else if(g==="abort")p.onabort(W);else throw new TypeError;p.onreadystatechange()}},N=function(g){i!=null&&(i.readyState===4?(!("onload"in i)||!("onerror"in i)||!("onabort"in i))&&A(i.responseText===""?"error":"load",g):i.readyState===3?"onprogress"in i||w():i.readyState===2&&u())},z=function(){f=r(function(){z()},500),i.readyState===3&&w()};"onload"in i&&(i.onload=function(g){A("load",g)}),"onerror"in i&&(i.onerror=function(g){A("error",g)}),"onabort"in i&&(i.onabort=function(g){A("abort",g)}),"onprogress"in i&&(i.onprogress=w),"onreadystatechange"in i&&(i.onreadystatechange=function(g){N(g)}),("contentType"in i||!("ontimeout"in d.prototype))&&(o+=(o.indexOf("?")===-1?"?":"&")+"padding=true"),i.open(n,o,!0),"readyState"in i&&(f=r(function(){z()},0))},R.prototype.abort=function(){this._abort(!1)},R.prototype.getResponseHeader=function(n){return this._contentType},R.prototype.setRequestHeader=function(n,o){var p=this._xhr;"setRequestHeader"in p&&p.setRequestHeader(n,o)},R.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},R.prototype.send=function(){if((!("ontimeout"in d.prototype)||!("sendAsBinary"in d.prototype)&&!("mozAnon"in d.prototype))&&B!=null&&B.readyState!=null&&B.readyState!=="complete"){var n=this;n._sendTimeout=r(function(){n._sendTimeout=0,n.send()},4);return}var o=this._xhr;"withCredentials"in o&&(o.withCredentials=this.withCredentials);try{o.send(void 0)}catch(p){throw p}};function G(n){return n.replace(/[A-Z]/g,function(o){return String.fromCharCode(o.charCodeAt(0)+32)})}function X(n){for(var o=Object.create(null),p=n.split(`\r
|
6
|
+
`),i=0;i<p.length;i+=1){var y=p[i],f=y.split(": "),u=f.shift(),w=f.join(": ");o[G(u)]=w}this._map=o}X.prototype.get=function(n){return this._map[G(n)]},d!=null&&d.HEADERS_RECEIVED==null&&(d.HEADERS_RECEIVED=2);function q(){}q.prototype.open=function(n,o,p,i,y,f,u){n.open("GET",y);var w=0;n.onprogress=function(){var N=n.responseText,z=N.slice(w);w+=z.length,p(z)},n.onerror=function(N){N.preventDefault(),i(new Error("NetworkError"))},n.onload=function(){i(null)},n.onabort=function(){i(null)},n.onreadystatechange=function(){if(n.readyState===d.HEADERS_RECEIVED){var N=n.status,z=n.statusText,g=n.getResponseHeader("Content-Type"),W=n.getAllResponseHeaders();o(N,z,g,new X(W))}},n.withCredentials=f;for(var A in u)Object.prototype.hasOwnProperty.call(u,A)&&n.setRequestHeader(A,u[A]);return n.send(),n};function F(n){this._headers=n}F.prototype.get=function(n){return this._headers.get(n)};function O(){}O.prototype.open=function(n,o,p,i,y,f,u){var w=null,A=new T,N=A.signal,z=new b;return M(y,{headers:u,credentials:f?"include":"same-origin",signal:N,cache:"no-store"}).then(function(g){return w=g.body.getReader(),o(g.status,g.statusText,g.headers.get("Content-Type"),new F(g.headers)),new C(function(W,me){var Ae=function(){w.read().then(function(ie){if(ie.done)W(void 0);else{var re=z.decode(ie.value,{stream:!0});p(re),Ae()}}).catch(function(ie){me(ie)})};Ae()})}).catch(function(g){if(g.name!=="AbortError")return g}).then(function(g){i(g)}),{abort:function(){w!=null&&w.cancel(),A.abort()}}};function E(){this._listeners=Object.create(null)}function L(n){r(function(){throw n},0)}E.prototype.dispatchEvent=function(n){n.target=this;var o=this._listeners[n.type];if(o!=null)for(var p=o.length,i=0;i<p;i+=1){var y=o[i];try{typeof y.handleEvent=="function"?y.handleEvent(n):y.call(this,n)}catch(f){L(f)}}},E.prototype.addEventListener=function(n,o){n=String(n);var p=this._listeners,i=p[n];i==null&&(i=[],p[n]=i);for(var y=!1,f=0;f<i.length;f+=1)i[f]===o&&(y=!0);y||i.push(o)},E.prototype.removeEventListener=function(n,o){n=String(n);var p=this._listeners,i=p[n];if(i!=null){for(var y=[],f=0;f<i.length;f+=1)i[f]!==o&&y.push(i[f]);y.length===0?delete p[n]:p[n]=y}};function V(n){this.type=n,this.target=void 0}function K(n,o){V.call(this,n),this.data=o.data,this.lastEventId=o.lastEventId}K.prototype=Object.create(V.prototype);function Z(n,o){V.call(this,n),this.status=o.status,this.statusText=o.statusText,this.headers=o.headers}Z.prototype=Object.create(V.prototype);function Y(n,o){V.call(this,n),this.error=o.error}Y.prototype=Object.create(V.prototype);var Q=-1,I=0,P=1,ue=2,we=-1,ae=0,he=1,ye=2,Se=3,Te=/^text\/event\-stream(;.*)?$/i,_e=1e3,c=18e6,D=function(n,o){var p=n==null?o:parseInt(n,10);return p!==p&&(p=o),H(p)},H=function(n){return Math.min(Math.max(n,_e),c)},le=function(n,o,p){try{typeof o=="function"&&o.call(n,p)}catch(i){L(i)}};function j(n,o){E.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,Fe(this,n,o)}function pe(){return d!=null&&"withCredentials"in d.prototype||v==null?new d:new v}var $=M!=null&&k!=null&&"body"in k.prototype;function Fe(n,o,p){o=String(o);var i=!!p.withCredentials,y=p.lastEventIdQueryParameterName||"lastEventId",f=H(1e3),u=D(p.heartbeatTimeout,45e3),w="",A=f,N=!1,z=0,g=p.headers||{},W=p.Transport,me=$&&W==null?void 0:new R(W!=null?new W:pe()),Ae=W!=null&&typeof W!="string"?new W:me==null?new O:new q,ie=void 0,re=0,fe=Q,Ce="",De="",Be="",Oe="",se=ae,Le=0,Me=0,Ze=function(te,ee,de,ce){if(fe===I)if(te===200&&de!=null&&Te.test(de)){fe=P,N=Date.now(),A=f,n.readyState=P;var oe=new Z("open",{status:te,statusText:ee,headers:ce});n.dispatchEvent(oe),le(n,n.onopen,oe)}else{var ne="";te!==200?(ee&&(ee=ee.replace(/\s+/g," ")),ne="EventSource's response has a status "+te+" "+ee+" that is not 200. Aborting the connection."):ne="EventSource's response has a Content-Type specifying an unsupported type: "+(de==null?"-":de.replace(/\s+/g," "))+". Aborting the connection.",Ve();var oe=new Z("error",{status:te,statusText:ee,headers:ce});n.dispatchEvent(oe),le(n,n.onerror,oe),console.error(ne)}},Ye=function(te){if(fe===P){for(var ee=-1,de=0;de<te.length;de+=1){var ce=te.charCodeAt(de);(ce===10||ce===13)&&(ee=de)}var oe=(ee!==-1?Oe:"")+te.slice(0,ee+1);Oe=(ee===-1?Oe:"")+te.slice(ee+1),te!==""&&(N=Date.now(),z+=te.length);for(var ne=0;ne<oe.length;ne+=1){var ce=oe.charCodeAt(ne);if(se===we&&ce===10)se=ae;else if(se===we&&(se=ae),ce===13||ce===10){if(se!==ae){se===he&&(Me=ne+1);var ge=oe.slice(Le,Me-1),xe=oe.slice(Me+(Me<ne&&oe.charCodeAt(Me)===32?1:0),ne);ge==="data"?(Ce+=`
|
7
|
+
`,Ce+=xe):ge==="id"?De=xe:ge==="event"?Be=xe:ge==="retry"?(f=D(xe,f),A=f):ge==="heartbeatTimeout"&&(u=D(xe,u),re!==0&&(s(re),re=r(function(){Re()},u)))}if(se===ae){if(Ce!==""){w=De,Be===""&&(Be="message");var Ee=new K(Be,{data:Ce.slice(1),lastEventId:De});if(n.dispatchEvent(Ee),Be==="open"?le(n,n.onopen,Ee):Be==="message"?le(n,n.onmessage,Ee):Be==="error"&&le(n,n.onerror,Ee),fe===ue)return}Ce="",Be=""}se=ce===13?we:ae}else se===ae&&(Le=ne,se=he),se===he?ce===58&&(Me=ne+1,se=ye):se===ye&&(se=Se)}}},He=function(te){if(fe===P||fe===I){fe=Q,re!==0&&(s(re),re=0),re=r(function(){Re()},A),A=H(Math.min(f*16,A*2)),n.readyState=I;var ee=new Y("error",{error:te});n.dispatchEvent(ee),le(n,n.onerror,ee),te!=null&&console.error(te)}},Ve=function(){fe=ue,ie!=null&&(ie.abort(),ie=void 0),re!==0&&(s(re),re=0),n.readyState=ue},Re=function(){if(re=0,fe!==Q){if(!N&&ie!=null)He(new Error("No activity within "+u+" milliseconds. "+(fe===I?"No response received.":z+" chars received.")+" Reconnecting.")),ie!=null&&(ie.abort(),ie=void 0);else{var te=Math.max((N||Date.now())+u-Date.now(),1);N=!1,re=r(function(){Re()},te)}return}N=!1,z=0,re=r(function(){Re()},u),fe=I,Ce="",Be="",De=w,Oe="",Le=0,Me=0,se=ae;var ee=o;if(o.slice(0,5)!=="data:"&&o.slice(0,5)!=="blob:"&&w!==""){var de=o.indexOf("?");ee=de===-1?o:o.slice(0,de+1)+o.slice(de+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(xe,Ee){return Ee===y?"":xe}),ee+=(o.indexOf("?")===-1?"?":"&")+y+"="+encodeURIComponent(w)}var ce=n.withCredentials,oe={};oe.Accept="text/event-stream";var ne=n.headers;if(ne!=null)for(var ge in ne)Object.prototype.hasOwnProperty.call(ne,ge)&&(oe[ge]=ne[ge]);try{ie=Ae.open(me,Ze,Ye,He,ee,ce,oe)}catch(xe){throw Ve(),xe}};n.url=o,n.readyState=I,n.withCredentials=i,n.headers=g,n._close=Ve,Re()}j.prototype=Object.create(E.prototype),j.prototype.CONNECTING=I,j.prototype.OPEN=P,j.prototype.CLOSED=ue,j.prototype.close=function(){this._close()},j.CONNECTING=I,j.OPEN=P,j.CLOSED=ue,j.prototype.withCredentials=void 0;var be=h;d!=null&&(h==null||!("withCredentials"in h.prototype))&&(be=j),function(n){{var o=n(t);o!==void 0&&(l.exports=o)}}(function(n){n.EventSourcePolyfill=j,n.NativeEventSource=h,n.EventSource=be})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:e.commonjsGlobal:globalThis)})(je,je.exports);var rt=je.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 st={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:ct,fromCents:!1},Ke=function(t){return Math.round(t)},Ne=function(t){return Math.pow(10,t)},ot=function(t,a){return Ke(t/a)*a},it=/(\d)(?=(\d{3})+\b)/g,dt=/(\d)(?=(\d\d)+\d\b)/g;function ve(l,t){var a=this;if(!(a instanceof ve))return new ve(l,t);var r=Object.assign({},st,t),s=Ne(r.precision),d=ke(l,r);a.intValue=d,a.value=d/s,r.increment=r.increment||1/s,r.useVedic?r.groups=dt:r.groups=it,this.s=r,this.p=s}function ke(l,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=0,s=t.decimal,d=t.errorOnInvalid,v=t.precision,x=t.fromCents,h=Ne(v),B=typeof l=="number",C=l instanceof ve;if(C&&x)return l.intValue;if(B||C)r=C?l.value:l;else if(typeof l=="string"){var M=new RegExp("[^-\\d"+s+"]","g"),k=new RegExp("\\"+s,"g");r=l.replace(/\((.*)\)/,"-$1").replace(M,"").replace(k,"."),r=r||0}else{if(d)throw Error("Invalid Input");r=0}return x||(r*=h,r=r.toFixed(4)),a?Ke(r):r}function ct(l,t){var a=t.pattern,r=t.negativePattern,s=t.symbol,d=t.separator,v=t.decimal,x=t.groups,h=(""+l).replace(/^-/,"").split("."),B=h[0],C=h[1];return(l.value>=0?a:r).replace("!",s).replace("#",B.replace(x,"$1"+d)+(C?v+C:""))}ve.prototype={add:function(t){var a=this.intValue,r=this.s,s=this.p;return ve((a+=ke(t,r))/(r.fromCents?1:s),r)},subtract:function(t){var a=this.intValue,r=this.s,s=this.p;return ve((a-=ke(t,r))/(r.fromCents?1:s),r)},multiply:function(t){var a=this.intValue,r=this.s;return ve((a*=t)/(r.fromCents?1:Ne(r.precision)),r)},divide:function(t){var a=this.intValue,r=this.s;return ve(a/=ke(t,r,!1),r)},distribute:function(t){for(var a=this.intValue,r=this.p,s=this.s,d=[],v=Math[a>=0?"floor":"ceil"](a/t),x=Math.abs(a-v*t),h=s.fromCents?1:r;t!==0;t--){var B=ve(v/h,s);x-- >0&&(B=B[a>=0?"add":"subtract"](1/h)),d.push(B)}return d},dollars:function(){return~~this.value},cents:function(){var t=this.intValue,a=this.p;return~~(t%a)},format:function(t){var a=this.s;return typeof t=="function"?t(this,a):a.format(this,Object.assign({},a,t))},toString:function(){var t=this.intValue,a=this.p,r=this.s;return ot(t/a,r.increment).toFixed(r.precision)},toJSON:function(){return this.value}};function pt(l){e.append_styles(l,"svelte-1yd9b3x",'.svelte-1yd9b3x.svelte-1yd9b3x,.svelte-1yd9b3x.svelte-1yd9b3x::before,.svelte-1yd9b3x.svelte-1yd9b3x::after{font-family:inherit}:host{font-family:inherit}button.svelte-1yd9b3x.svelte-1yd9b3x{font-family:inherit}p.svelte-1yd9b3x.svelte-1yd9b3x{padding:0;margin:0}.ShowBalance.svelte-1yd9b3x.svelte-1yd9b3x{position:relative}.ShowBalance.svelte-1yd9b3x .BalanceValue.svelte-1yd9b3x{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance.svelte-1yd9b3x .BalanceValue svg.svelte-1yd9b3x{width:16px}.ShowBalance.svelte-1yd9b3x .BalanceValue span.svelte-1yd9b3x{padding-left:8px}@media only screen and (max-width: 360px){.ShowBalance.svelte-1yd9b3x .BalanceValue.svelte-1yd9b3x{font-size:12px}.ShowBalance.svelte-1yd9b3x .BalanceValue svg.svelte-1yd9b3x{width:12px}}.BalanceModalWrapper.svelte-1yd9b3x.svelte-1yd9b3x{background-color:var(--emfe-w-color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-60%);padding:10px;box-shadow:0px 30px 30px var(--emfe-w-header-color-primary, var(--emfe-w-color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper.svelte-1yd9b3x.svelte-1yd9b3x:before{content:"";background:var(--emfe-w-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.svelte-1yd9b3x.svelte-1yd9b3x{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer}.BalanceModalClose.svelte-1yd9b3x.svelte-1yd9b3x:before{content:"";background:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose.svelte-1yd9b3x.svelte-1yd9b3x:after{content:"";background:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal.svelte-1yd9b3x.svelte-1yd9b3x{position:relative;width:280px}.BalanceModalHeader.svelte-1yd9b3x.svelte-1yd9b3x{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader.svelte-1yd9b3x .BalanceModalTitle.svelte-1yd9b3x{font-size:16px;font-weight:bold;color:var(--emfe-w-header-contrast, var(--emfe-w-color-contrast, #07072A))}.BalanceModalRowBoth.svelte-1yd9b3x.svelte-1yd9b3x{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emfe-w-color-gray-100, #E6E6E6)}.BalanceModalRowBoth.svelte-1yd9b3x.svelte-1yd9b3x:last-child{border-bottom:none}.BalanceModalRowBoth.svelte-1yd9b3x .BalanceModalRowLine.svelte-1yd9b3x{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth.svelte-1yd9b3x .BalanceModalText.svelte-1yd9b3x{color:var(--emfe-w-header-contrast, var(--emfe-w-color-contrast, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth.svelte-1yd9b3x .BalanceModalValue.svelte-1yd9b3x{font-size:14px;font-weight:bold;color:var(--emfe-w-header-contrast, var(--emfe-w-color-contrast, #07072A))}.BalanceModalRow.svelte-1yd9b3x.svelte-1yd9b3x{display:flex;justify-content:space-between;align-items:center;padding:20px 0;border-bottom:1px solid var(--emfe-w-color-gray-100, #E6E6E6)}.BalanceModalRow.svelte-1yd9b3x.svelte-1yd9b3x:last-child{border-bottom:none}.BalanceModalRow.svelte-1yd9b3x .BalanceModalText.svelte-1yd9b3x{color:var(--emfe-w-header-contrast, var(--emfe-w-color-contrast, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRow.svelte-1yd9b3x .BalanceModalValue.svelte-1yd9b3x{font-size:14px;font-weight:bold;color:var(--emfe-w-header-contrast, var(--emfe-w-color-contrast, #07072A))}.BalanceModalFooter.svelte-1yd9b3x.svelte-1yd9b3x{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter.svelte-1yd9b3x .BalanceModalAction.svelte-1yd9b3x{background:var(--emfe-w-header-color-primary, var(--emfe-w-color-primary, #D0046C));font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter.svelte-1yd9b3x .BalanceModalAction.svelte-1yd9b3x:hover{background:var(--emfe-w-header-contrast, var(--emfe-w-color-background, #07072A))}.ShowBalanceModalOverlay.svelte-1yd9b3x.svelte-1yd9b3x{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}')}function We(l){let t,a,r,s,d,v,x=l[8]("balanceTitle")+"",h,B,C,M,k,b=l[8]("totalBalance")+"",m,T,_,U,J,S,R,G,X,q,F,O,E=l[8]("depositButton")+"",L,V,K;function Z(I,P){return I[0]=="gm16"?ft:ut}let Y=Z(l),Q=Y(l);return{c(){t=e.element("div"),a=e.element("div"),r=e.space(),s=e.element("div"),d=e.element("div"),v=e.element("p"),h=e.text(x),B=e.space(),C=e.element("div"),M=e.element("div"),k=e.element("p"),m=e.text(b),T=e.space(),_=e.element("p"),U=e.element("span"),J=e.text(l[4]),S=e.space(),R=e.element("span"),G=e.text(l[5]),X=e.space(),Q.c(),q=e.space(),F=e.element("div"),O=e.element("button"),L=e.text(E),e.attr(a,"class","BalanceModalClose svelte-1yd9b3x"),e.attr(v,"class","BalanceModalTitle svelte-1yd9b3x"),e.attr(d,"class","BalanceModalHeader svelte-1yd9b3x"),e.attr(k,"class","BalanceModalText svelte-1yd9b3x"),e.attr(U,"class","BalanceModalAmount svelte-1yd9b3x"),e.attr(R,"class","BalanceModalCurrency svelte-1yd9b3x"),e.attr(_,"class","BalanceModalValue svelte-1yd9b3x"),e.attr(M,"class","BalanceModalRow svelte-1yd9b3x"),e.attr(C,"class","BalanceModalBody svelte-1yd9b3x"),e.attr(O,"class","BalanceModalAction svelte-1yd9b3x"),e.attr(F,"class","BalanceModalFooter svelte-1yd9b3x"),e.attr(s,"class","BalanceModal svelte-1yd9b3x"),e.attr(t,"class","BalanceModalWrapper svelte-1yd9b3x")},m(I,P){e.insert(I,t,P),e.append(t,a),e.append(t,r),e.append(t,s),e.append(s,d),e.append(d,v),e.append(v,h),e.append(s,B),e.append(s,C),e.append(C,M),e.append(M,k),e.append(k,m),e.append(M,T),e.append(M,_),e.append(_,U),e.append(U,J),e.append(_,S),e.append(_,R),e.append(R,G),e.append(C,X),Q.m(C,null),e.append(s,q),e.append(s,F),e.append(F,O),e.append(O,L),V||(K=[e.listen(a,"click",l[24]),e.listen(O,"click",l[25])],V=!0)},p(I,P){P[0]&256&&x!==(x=I[8]("balanceTitle")+"")&&e.set_data(h,x),P[0]&256&&b!==(b=I[8]("totalBalance")+"")&&e.set_data(m,b),P[0]&16&&e.set_data(J,I[4]),P[0]&32&&e.set_data(G,I[5]),Y===(Y=Z(I))&&Q?Q.p(I,P):(Q.d(1),Q=Y(I),Q&&(Q.c(),Q.m(C,null))),P[0]&256&&E!==(E=I[8]("depositButton")+"")&&e.set_data(L,E)},d(I){I&&e.detach(t),Q.d(),V=!1,e.run_all(K)}}}function ut(l){var E,L;let t,a,r=l[8]("cashBalance")+"",s,d,v,x,h=l[11]((E=l[6][0])==null?void 0:E.balanceAmount)+"",B,C,M,k,b,m,T,_=l[8]("bonusBalance")+"",U,J,S,R,G=l[11]((L=l[6][1])==null?void 0:L.balanceAmount)+"",X,q,F,O;return{c(){t=e.element("div"),a=e.element("p"),s=e.text(r),d=e.space(),v=e.element("p"),x=e.element("span"),B=e.text(h),C=e.space(),M=e.element("span"),k=e.text(l[5]),b=e.space(),m=e.element("div"),T=e.element("p"),U=e.text(_),J=e.space(),S=e.element("p"),R=e.element("span"),X=e.text(G),q=e.space(),F=e.element("span"),O=e.text(l[5]),e.attr(a,"class","BalanceModalText svelte-1yd9b3x"),e.attr(x,"class","BalanceModalAmount svelte-1yd9b3x"),e.attr(M,"class","BalanceModalCurrency svelte-1yd9b3x"),e.attr(v,"class","BalanceModalValue svelte-1yd9b3x"),e.attr(t,"class","BalanceModalRow svelte-1yd9b3x"),e.attr(T,"class","BalanceModalText svelte-1yd9b3x"),e.attr(R,"class","BalanceModalAmount svelte-1yd9b3x"),e.attr(F,"class","BalanceModalCurrency svelte-1yd9b3x"),e.attr(S,"class","BalanceModalValue svelte-1yd9b3x"),e.attr(m,"class","BalanceModalRow svelte-1yd9b3x")},m(V,K){e.insert(V,t,K),e.append(t,a),e.append(a,s),e.append(t,d),e.append(t,v),e.append(v,x),e.append(x,B),e.append(v,C),e.append(v,M),e.append(M,k),e.insert(V,b,K),e.insert(V,m,K),e.append(m,T),e.append(T,U),e.append(m,J),e.append(m,S),e.append(S,R),e.append(R,X),e.append(S,q),e.append(S,F),e.append(F,O)},p(V,K){var Z,Y;K[0]&256&&r!==(r=V[8]("cashBalance")+"")&&e.set_data(s,r),K[0]&64&&h!==(h=V[11]((Z=V[6][0])==null?void 0:Z.balanceAmount)+"")&&e.set_data(B,h),K[0]&32&&e.set_data(k,V[5]),K[0]&256&&_!==(_=V[8]("bonusBalance")+"")&&e.set_data(U,_),K[0]&64&&G!==(G=V[11]((Y=V[6][1])==null?void 0:Y.balanceAmount)+"")&&e.set_data(X,G),K[0]&32&&e.set_data(O,V[5])},d(V){V&&(e.detach(t),e.detach(b),e.detach(m))}}}function ft(l){let t;function a(d,v){if(d[1]==="Casino"||d[1]==="Sports")return ht;if(d[1]==="All")return vt}let r=a(l),s=r&&r(l);return{c(){s&&s.c(),t=e.empty()},m(d,v){s&&s.m(d,v),e.insert(d,t,v)},p(d,v){r===(r=a(d))&&s?s.p(d,v):(s&&s.d(1),s=r&&r(d),s&&(s.c(),s.m(t.parentNode,t)))},d(d){d&&e.detach(t),s&&s.d(d)}}}function vt(l){let t,a,r,s=l[8]("cashBalance")+"",d,v,x,h,B,C=l[11](l[7].Casino.Real)+"",M,k,b,m,T,_,U,J=l[8]("cashBalance")+"",S,R,G,X,q,F=l[11](l[7].Sports.Real)+"",O,E,L,V,K,Z,Y,Q,I=l[8]("bonusBalance")+"",P,ue,we,ae,he,ye=l[11](l[7].Casino.Bonus)+"",Se,Te,_e,c,D,H,le,j=l[8]("bonusBalance")+"",pe,$,Fe,be,n,o=l[11](l[7].Sports.Bonus)+"",p,i,y,f;return{c(){t=e.element("div"),a=e.element("div"),r=e.element("p"),d=e.text(s),v=e.text(" Casino"),x=e.space(),h=e.element("p"),B=e.element("span"),M=e.text(C),k=e.space(),b=e.element("span"),m=e.text(l[5]),T=e.space(),_=e.element("div"),U=e.element("p"),S=e.text(J),R=e.text(" Sports"),G=e.space(),X=e.element("p"),q=e.element("span"),O=e.text(F),E=e.space(),L=e.element("span"),V=e.text(l[5]),K=e.space(),Z=e.element("div"),Y=e.element("div"),Q=e.element("p"),P=e.text(I),ue=e.text(" Casino"),we=e.space(),ae=e.element("p"),he=e.element("span"),Se=e.text(ye),Te=e.space(),_e=e.element("span"),c=e.text(l[5]),D=e.space(),H=e.element("div"),le=e.element("p"),pe=e.text(j),$=e.text(" Sports"),Fe=e.space(),be=e.element("p"),n=e.element("span"),p=e.text(o),i=e.space(),y=e.element("span"),f=e.text(l[5]),e.attr(r,"class","BalanceModalText svelte-1yd9b3x"),e.attr(B,"class","BalanceModalAmount svelte-1yd9b3x"),e.attr(b,"class","BalanceModalCurrency svelte-1yd9b3x"),e.attr(h,"class","BalanceModalValue svelte-1yd9b3x"),e.attr(a,"class","BalanceModalRowLine svelte-1yd9b3x"),e.attr(U,"class","BalanceModalText svelte-1yd9b3x"),e.attr(q,"class","BalanceModalAmount svelte-1yd9b3x"),e.attr(L,"class","BalanceModalCurrency svelte-1yd9b3x"),e.attr(X,"class","BalanceModalValue svelte-1yd9b3x"),e.attr(_,"class","BalanceModalRowLine svelte-1yd9b3x"),e.attr(t,"class","BalanceModalRowBoth svelte-1yd9b3x"),e.attr(Q,"class","BalanceModalText svelte-1yd9b3x"),e.attr(he,"class","BalanceModalAmount svelte-1yd9b3x"),e.attr(_e,"class","BalanceModalCurrency svelte-1yd9b3x"),e.attr(ae,"class","BalanceModalValue svelte-1yd9b3x"),e.attr(Y,"class","BalanceModalRowLine svelte-1yd9b3x"),e.attr(le,"class","BalanceModalText svelte-1yd9b3x"),e.attr(n,"class","BalanceModalAmount svelte-1yd9b3x"),e.attr(y,"class","BalanceModalCurrency svelte-1yd9b3x"),e.attr(be,"class","BalanceModalValue svelte-1yd9b3x"),e.attr(H,"class","BalanceModalRowLine svelte-1yd9b3x"),e.attr(Z,"class","BalanceModalRowBoth svelte-1yd9b3x")},m(u,w){e.insert(u,t,w),e.append(t,a),e.append(a,r),e.append(r,d),e.append(r,v),e.append(a,x),e.append(a,h),e.append(h,B),e.append(B,M),e.append(h,k),e.append(h,b),e.append(b,m),e.append(t,T),e.append(t,_),e.append(_,U),e.append(U,S),e.append(U,R),e.append(_,G),e.append(_,X),e.append(X,q),e.append(q,O),e.append(X,E),e.append(X,L),e.append(L,V),e.insert(u,K,w),e.insert(u,Z,w),e.append(Z,Y),e.append(Y,Q),e.append(Q,P),e.append(Q,ue),e.append(Y,we),e.append(Y,ae),e.append(ae,he),e.append(he,Se),e.append(ae,Te),e.append(ae,_e),e.append(_e,c),e.append(Z,D),e.append(Z,H),e.append(H,le),e.append(le,pe),e.append(le,$),e.append(H,Fe),e.append(H,be),e.append(be,n),e.append(n,p),e.append(be,i),e.append(be,y),e.append(y,f)},p(u,w){w[0]&256&&s!==(s=u[8]("cashBalance")+"")&&e.set_data(d,s),w[0]&128&&C!==(C=u[11](u[7].Casino.Real)+"")&&e.set_data(M,C),w[0]&32&&e.set_data(m,u[5]),w[0]&256&&J!==(J=u[8]("cashBalance")+"")&&e.set_data(S,J),w[0]&128&&F!==(F=u[11](u[7].Sports.Real)+"")&&e.set_data(O,F),w[0]&32&&e.set_data(V,u[5]),w[0]&256&&I!==(I=u[8]("bonusBalance")+"")&&e.set_data(P,I),w[0]&128&&ye!==(ye=u[11](u[7].Casino.Bonus)+"")&&e.set_data(Se,ye),w[0]&32&&e.set_data(c,u[5]),w[0]&256&&j!==(j=u[8]("bonusBalance")+"")&&e.set_data(pe,j),w[0]&128&&o!==(o=u[11](u[7].Sports.Bonus)+"")&&e.set_data(p,o),w[0]&32&&e.set_data(f,u[5])},d(u){u&&(e.detach(t),e.detach(K),e.detach(Z))}}}function ht(l){let t,a,r=l[8]("cashBalance")+"",s,d,v,x,h=l[7][l[1]?l[1]:"Casino"].Real+"",B,C,M,k,b,m,T,_=l[8]("bonusBalance")+"",U,J,S,R,G=l[7][l[1]?l[1]:"Casino"].Bonus+"",X,q,F,O;return{c(){t=e.element("div"),a=e.element("p"),s=e.text(r),d=e.space(),v=e.element("p"),x=e.element("span"),B=e.text(h),C=e.space(),M=e.element("span"),k=e.text(l[5]),b=e.space(),m=e.element("div"),T=e.element("p"),U=e.text(_),J=e.space(),S=e.element("p"),R=e.element("span"),X=e.text(G),q=e.space(),F=e.element("span"),O=e.text(l[5]),e.attr(a,"class","BalanceModalText svelte-1yd9b3x"),e.attr(x,"class","BalanceModalAmount svelte-1yd9b3x"),e.attr(M,"class","BalanceModalCurrency svelte-1yd9b3x"),e.attr(v,"class","BalanceModalValue svelte-1yd9b3x"),e.attr(t,"class","BalanceModalRow svelte-1yd9b3x"),e.attr(T,"class","BalanceModalText svelte-1yd9b3x"),e.attr(R,"class","BalanceModalAmount svelte-1yd9b3x"),e.attr(F,"class","BalanceModalCurrency svelte-1yd9b3x"),e.attr(S,"class","BalanceModalValue svelte-1yd9b3x"),e.attr(m,"class","BalanceModalRow svelte-1yd9b3x")},m(E,L){e.insert(E,t,L),e.append(t,a),e.append(a,s),e.append(t,d),e.append(t,v),e.append(v,x),e.append(x,B),e.append(v,C),e.append(v,M),e.append(M,k),e.insert(E,b,L),e.insert(E,m,L),e.append(m,T),e.append(T,U),e.append(m,J),e.append(m,S),e.append(S,R),e.append(R,X),e.append(S,q),e.append(S,F),e.append(F,O)},p(E,L){L[0]&256&&r!==(r=E[8]("cashBalance")+"")&&e.set_data(s,r),L[0]&130&&h!==(h=E[7][E[1]?E[1]:"Casino"].Real+"")&&e.set_data(B,h),L[0]&32&&e.set_data(k,E[5]),L[0]&256&&_!==(_=E[8]("bonusBalance")+"")&&e.set_data(U,_),L[0]&130&&G!==(G=E[7][E[1]?E[1]:"Casino"].Bonus+"")&&e.set_data(X,G),L[0]&32&&e.set_data(O,E[5])},d(E){E&&(e.detach(t),e.detach(b),e.detach(m))}}}function Je(l){let t,a,r;return{c(){t=e.element("div"),e.attr(t,"class","ShowBalanceModalOverlay svelte-1yd9b3x")},m(s,d){e.insert(s,t,d),a||(r=e.listen(t,"click",l[26]),a=!0)},p:e.noop,d(s){s&&e.detach(t),a=!1,r()}}}function yt(l){let t,a,r,s,d,v,x,h,B,C,M,k,b=l[3]&&We(l),m=l[3]&&Je(l);return{c(){t=e.element("div"),a=e.element("div"),r=e.element("p"),s=e.text(l[4]),d=e.space(),v=e.text(l[5]),x=e.space(),h=e.element("span"),h.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435" class="svelte-1yd9b3x"><defs class="svelte-1yd9b3x"><style class="svelte-1yd9b3x">.a{fill:var(--emfe-w-color-white, #FFFFFF);}</style></defs><path class="a svelte-1yd9b3x" 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>',B=e.space(),b&&b.c(),C=e.space(),m&&m.c(),e.attr(h,"class","svelte-1yd9b3x"),e.attr(r,"class","BalanceValue svelte-1yd9b3x"),e.attr(r,"part","BalanceValue"),e.attr(a,"class","ShowBalance svelte-1yd9b3x"),e.attr(a,"part","ShowBalance"),e.attr(t,"class","svelte-1yd9b3x")},m(T,_){e.insert(T,t,_),e.append(t,a),e.append(a,r),e.append(r,s),e.append(r,d),e.append(r,v),e.append(r,x),e.append(r,h),e.append(a,B),b&&b.m(a,null),e.append(t,C),m&&m.m(t,null),l[27](t),M||(k=e.listen(r,"click",l[23]),M=!0)},p(T,_){_[0]&16&&e.set_data(s,T[4]),_[0]&32&&e.set_data(v,T[5]),T[3]?b?b.p(T,_):(b=We(T),b.c(),b.m(a,null)):b&&(b.d(1),b=null),T[3]?m?m.p(T,_):(m=Je(T),m.c(),m.m(t,null)):m&&(m.d(1),m=null)},i:e.noop,o:e.noop,d(T){T&&e.detach(t),b&&b.d(),m&&m.d(),l[27](null),M=!1,k()}}}function bt(l,t){return Xe(Ue({},l),{balanceAmount:t})}function mt(l,t,a){let r;e.component_subscribe(l,e.$format,c=>a(8,r=c));let{userid:s=""}=t,{session:d=""}=t,{endpoint:v=""}=t,{lang:x="en"}=t,{clientstyling:h=""}=t,{clientstylingurl:B=""}=t,{translationurl:C=""}=t,{customlocaleidentifier:M=""}=t,{gmversion:k=""}=t,{displaybalanceoption:b="All"}=t,{currencyseparator:m=""}=t,{currencydecimal:T=""}=t,{currencyprecision:_=""}=t,U=!1,J="",S="",R,G=[],X="0",q,F=!1;const O={Casino:{Real:0,Bonus:0},Sports:{Real:0,Bonus:0}},E=()=>{fetch(C).then(D=>D.json()).then(D=>{Object.keys(D).forEach(H=>{qe(H,D[H])})}).catch(D=>{console.log(D)})};Object.keys(Ge).forEach(c=>{qe(c,Ge[c])});const L=c=>{switch(c){case"balance":a(3,U=!0);break;case"closebalance":a(3,U=!1);break}},V=c=>Ie(this,null,function*(){try{F=!0;const D=yield fetch(c,{method:"GET",headers:{"X-SessionID":d}}),H=yield D.json();if(D.ok)F=!1,a(6,G=H.items),a(5,S=Object.keys(H.totalAmount)[0]),a(4,J=P(H.totalAmount[S]));else throw F=!1,new Error("Failed to fetch balance data !")}catch(D){F=!1,console.log("Balance error: ",D)}finally{F=!1}}),K=c=>Ie(this,null,function*(){try{F=!0,b=="Casino"&&c.searchParams.append("productType","Casino"),b=="Sports"&&c.searchParams.append("productType","Sports"),b==="All"&&(c.searchParams.append("productType","Casino"),c.searchParams.append("productType","Sports"));const D=yield fetch(c,{method:"GET",headers:{"X-SessionID":d}}),H=yield D.json();if(D.ok){F=!1;for(const le of H.items){const{type:j,amount:pe,productType:$}=le;b==="Casino"?a(7,O.Casino[j]=pe,O):b==="Sports"?a(7,O.Sports[j]=pe,O):b==="All"&&$&&j&&a(7,O[$][j]=pe,O)}a(5,S=Object.keys(H.totalAmount)[0]),a(4,J=P(H.totalAmount[S]))}else throw F=!1,new Error("Failed to fetch balance data !")}catch(D){F=!1,console.log("Balance error: ",D)}finally{F=!1}}),Z=(c,D)=>{if(d.length>0){let H=new rt.EventSourcePolyfill(c,{headers:{accept:"text/event-stream","X-SessionId":D}});q&&q.close(),q=H,H.addEventListener("message",le=>{X="0";try{let{balanceChange:j,currency:pe}=JSON.parse(le.data);if(k==="gmcore")a(6,G=G.map($=>(j&&j[$.id]&&($=bt($,j[$.id].afterAmount)),X=(parseFloat($==null?void 0:$.balanceAmount)+parseFloat(X)).toString(),$))),a(4,J=P(Number(X)));else if(k==="gm16"){for(let $ in j)a(7,O.Casino[$]=j[$].afterAmount,O);a(4,J=P(O.Casino.Bonus+O.Casino.Real))}pe=pe}catch(j){console.log("Balance stream failed: ",j),Z(`${v}/v1/player/${s}/balance/updates`,d)}})}else q&&q.close()},Y=()=>{L("closebalance"),window.postMessage({type:"GoToDeposit"},window.location.href),typeof gtag=="function"&>ag("event","GoToDeposit",{context:"PlayerAccountBalanceModal"})},Q=()=>{switch(lt(x),k){case"gmcore":V(new URL(`${v}/v1/player/${s}/account`));break;case"gm16":K(new URL(`${v}/v1/player/${s}/balance`));break;default:throw Error(`Invalid apiversion attribute: ${k}`)}},I=()=>{let c;return M.includes(x)&&(c=M),c},P=c=>{let D;return M?D=new Intl.NumberFormat(I(),{useGrouping:!0}).format(c):m&&T?D=ve(c,{separator:m,decimal:T,symbol:"",precision:parseInt(_||"2",10)}).format():D=ve(c,{separator:".",decimal:",",symbol:"",precision:parseInt(_||"2",10)}).format(),D},ue=c=>{if(c.data)switch(c.data.type){case"LogoutSuccessfull":q.close();break}},we=()=>{let c=document.createElement("style");c.innerHTML=h,R.appendChild(c)},ae=()=>{let c=new URL(B),D=document.createElement("style");fetch(c.href).then(H=>H.text()).then(H=>{D.innerHTML=H,setTimeout(()=>{R.appendChild(D)},1)})};e.onMount(()=>(window.addEventListener("message",ue,!1),()=>{window.removeEventListener("message",ue),q&&q.close()}));const he=()=>L("balance"),ye=()=>L("closebalance"),Se=()=>Y(),Te=()=>L("closebalance");function _e(c){e.binding_callbacks[c?"unshift":"push"](()=>{R=c,a(2,R)})}return l.$$set=c=>{"userid"in c&&a(12,s=c.userid),"session"in c&&a(13,d=c.session),"endpoint"in c&&a(14,v=c.endpoint),"lang"in c&&a(15,x=c.lang),"clientstyling"in c&&a(16,h=c.clientstyling),"clientstylingurl"in c&&a(17,B=c.clientstylingurl),"translationurl"in c&&a(18,C=c.translationurl),"customlocaleidentifier"in c&&a(19,M=c.customlocaleidentifier),"gmversion"in c&&a(0,k=c.gmversion),"displaybalanceoption"in c&&a(1,b=c.displaybalanceoption),"currencyseparator"in c&&a(20,m=c.currencyseparator),"currencydecimal"in c&&a(21,T=c.currencydecimal),"currencyprecision"in c&&a(22,_=c.currencyprecision)},l.$$.update=()=>{l.$$.dirty[0]&32768&&x&&I(),l.$$.dirty[0]&61443&&v&&s&&d&&x&&k&&b&&Q(),l.$$.dirty[0]&28672&&v&&s&&d&&Z(`${v}/v1/player/${s}/balance/updates`,d),l.$$.dirty[0]&65540&&h&&R&&we(),l.$$.dirty[0]&131076&&B&&R&&ae(),l.$$.dirty[0]&262144&&C&&E()},[k,b,R,U,J,S,G,O,r,L,Y,P,s,d,v,x,h,B,C,M,m,T,_,he,ye,Se,Te,_e]}class Qe extends e.SvelteComponent{constructor(t){super(),e.init(this,t,mt,yt,e.safe_not_equal,{userid:12,session:13,endpoint:14,lang:15,clientstyling:16,clientstylingurl:17,translationurl:18,customlocaleidentifier:19,gmversion:0,displaybalanceoption:1,currencyseparator:20,currencydecimal:21,currencyprecision:22},pt,[-1,-1])}get userid(){return this.$$.ctx[12]}set userid(t){this.$$set({userid:t}),e.flush()}get session(){return this.$$.ctx[13]}set session(t){this.$$set({session:t}),e.flush()}get endpoint(){return this.$$.ctx[14]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get lang(){return this.$$.ctx[15]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[16]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[17]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[18]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get customlocaleidentifier(){return this.$$.ctx[19]}set customlocaleidentifier(t){this.$$set({customlocaleidentifier:t}),e.flush()}get gmversion(){return this.$$.ctx[0]}set gmversion(t){this.$$set({gmversion:t}),e.flush()}get displaybalanceoption(){return this.$$.ctx[1]}set displaybalanceoption(t){this.$$set({displaybalanceoption:t}),e.flush()}get currencyseparator(){return this.$$.ctx[20]}set currencyseparator(t){this.$$set({currencyseparator:t}),e.flush()}get currencydecimal(){return this.$$.ctx[21]}set currencydecimal(t){this.$$set({currencydecimal:t}),e.flush()}get currencyprecision(){return this.$$.ctx[22]}set currencyprecision(t){this.$$set({currencyprecision:t}),e.flush()}}e.create_custom_element(Qe,{userid:{},session:{},endpoint:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},customlocaleidentifier:{},gmversion:{},displaybalanceoption:{},currencyseparator:{},currencydecimal:{},currencyprecision:{}},[],[],!0);exports.default=Qe;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHamburgerMenu-i3K3rvox.cjs");function T(a,t){e.addMessages(a,t)}function A(a){e.$locale.set(a)}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 W(a){e.append_styles(a,"svelte-1dxvsb",".DepositWrapper.svelte-1dxvsb.svelte-1dxvsb{background-color:var(--emw-color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px 50px 30px 50px;max-width:100%;height:var(--dynamic-height)}.DepositWrapper.DepositWrapperMobile.svelte-1dxvsb.svelte-1dxvsb{padding:20px 15px;max-width:unset;height:var(--dynamic-height)}.MenuReturnButton.svelte-1dxvsb.svelte-1dxvsb{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton.svelte-1dxvsb svg.svelte-1dxvsb{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.DepositTitle.svelte-1dxvsb.svelte-1dxvsb{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.svelte-1dxvsb.svelte-1dxvsb{font-size:var(--emw--size-standard, 16px)}.DepositTitleNone.svelte-1dxvsb.svelte-1dxvsb{display:none}.DepositIframeWrapper.svelte-1dxvsb iframe.svelte-1dxvsb{border:none;width:100%;height:85vh;border-radius:var(--emw--border-radius-large, 20px)}")}function j(a){let t,i,l,n,c,g,d,h,f,o,r=a[4]("titleDeposit")+"",p,y,w;return{c(){t=e.element("div"),i=e.svg_element("svg"),l=e.svg_element("defs"),n=e.svg_element("style"),c=e.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),g=e.svg_element("g"),d=e.svg_element("g"),h=e.svg_element("path"),f=e.space(),o=e.element("h2"),p=e.text(r),e.attr(h,"class","aaa"),e.attr(h,"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(h,"transform","translate(15 15) rotate(180)"),e.attr(d,"transform","translate(20 158)"),e.attr(g,"transform","translate(-20 -158)"),e.attr(i,"xmlns","http://www.w3.org/2000/svg"),e.attr(i,"width","15"),e.attr(i,"height","15"),e.attr(i,"viewBox","0 0 15 15"),e.attr(i,"class","svelte-1dxvsb"),e.attr(o,"class","DepositTitleMobile svelte-1dxvsb"),e.attr(t,"class","MenuReturnButton svelte-1dxvsb")},m(u,b){e.insert(u,t,b),e.append(t,i),e.append(i,l),e.append(l,n),e.append(n,c),e.append(i,g),e.append(g,d),e.append(d,h),e.append(t,f),e.append(t,o),e.append(o,p),y||(w=e.listen(t,"click",a[17]),y=!0)},p(u,b){b&16&&r!==(r=u[4]("titleDeposit")+"")&&e.set_data(p,r)},d(u){u&&e.detach(t),y=!1,w()}}}function z(a){let t,i,l;return{c(){t=e.element("div"),i=e.element("iframe"),e.src_url_equal(i.src,l=a[3])||e.attr(i,"src",l),e.attr(i,"title","Deposit Iframe"),e.attr(i,"class","svelte-1dxvsb"),e.attr(t,"class","DepositIframeWrapper svelte-1dxvsb")},m(n,c){e.insert(n,t,c),e.append(t,i)},p(n,c){c&8&&!e.src_url_equal(i.src,l=n[3])&&e.attr(i,"src",l)},d(n){n&&e.detach(t)}}}function G(a){let t,i=a[4]("loading")+"",l;return{c(){t=e.element("p"),l=e.text(i)},m(n,c){e.insert(n,t,c),e.append(t,l)},p(n,c){c&16&&i!==(i=n[4]("loading")+"")&&e.set_data(l,i)},d(n){n&&e.detach(t)}}}function q(a){let t,i,l,n=a[4]("titleDeposit")+"",c,g,d=a[5]&&j(a);function h(r,p){return r[1]?G:z}let f=h(a),o=f(a);return{c(){t=e.element("div"),d&&d.c(),i=e.space(),l=e.element("h2"),c=e.text(n),g=e.space(),o.c(),e.attr(l,"class","DepositTitle "+(a[5]?"DepositTitleNone":"")+" svelte-1dxvsb"),e.attr(t,"class","DepositWrapper "+(a[5]?"DepositWrapperMobile":"")+" svelte-1dxvsb"),e.set_style(t,"--dynamic-height",a[2])},m(r,p){e.insert(r,t,p),d&&d.m(t,null),e.append(t,i),e.append(t,l),e.append(l,c),e.append(t,g),o.m(t,null),a[18](t)},p(r,[p]){r[5]&&d.p(r,p),p&16&&n!==(n=r[4]("titleDeposit")+"")&&e.set_data(c,n),f===(f=h(r))&&o?o.p(r,p):(o.d(1),o=f(r),o&&(o.c(),o.m(t,null))),p&4&&e.set_style(t,"--dynamic-height",r[2])},i:e.noop,o:e.noop,d(r){r&&e.detach(t),d&&d.d(),o.d(),a[18](null)}}}function N(a,t,i){let l,n;e.component_subscribe(a,e.$format,s=>i(4,n=s));let{endpoint:c=""}=t,{session:g=""}=t,{playerid:d=""}=t,{lang:h="en"}=t,{hasdefaultamount:f=""}=t,{clientstyling:o=""}=t,{clientstylingurl:r=""}=t,{translationurl:p=""}=t,{playercurrency:y=""}=t,{shortcashierenabled:w="false"}=t,u,b=window.navigator.userAgent,_=e.getDevice(b)!=="PC",x=!0,M,D=0,C="";const R=()=>{fetch(p).then(v=>v.json()).then(v=>{Object.keys(v).forEach(m=>{T(m,v[m])})}).catch(v=>{console.log(v)})};Object.keys(L).forEach(s=>{T(s,L[s])});const k=()=>{window.postMessage({type:"GoToPreviousRoute",isMobile:_},window.location.href)},S=s=>{if(s.data){switch(s.data.type){case"ProfileDetailsData":i(7,y=s.data.profileDetails.currency);break}switch(s.data["MMFE:setQuickDepositHeight"]&&i(2,M=s.data["MMFE:setQuickDepositHeight"].toString()+"px"),s.data["MMFE:openFullCashier"]==="true"&&(window.postMessage({type:"GoToDeposit"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href)),s.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}}},B=()=>{let s=new URL(`${c}/v1/player/${d}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);if(s.searchParams.append("language",h),l&&s.searchParams.append("isShortCashier",w),f)switch(y){case"USD":D=.4;break;case"CDF":D=1e3;break}let v={method:"POST",headers:{"X-SessionId":g,currency:y||"EUR",amount:D,cashierMode:"Default",IsShortCashier:w,accept:"application/json"}};fetch(s.href,v).then(m=>m.json()).then(m=>{i(1,x=!1),i(3,C=m.CashierUrl)},m=>{console.error(m)})},H=()=>{A(h)},P=()=>{let s=document.createElement("style");s.innerHTML=o,u.appendChild(s)},U=()=>{let s=new URL(r),v=document.createElement("style");fetch(s.href).then(m=>m.text()).then(m=>{v.innerHTML=m,setTimeout(()=>{u.appendChild(v)},1)})};e.onMount(()=>(window.addEventListener("message",S,!1),()=>{window.removeEventListener("message",S)}));const F=()=>k();function I(s){e.binding_callbacks[s?"unshift":"push"](()=>{u=s,i(0,u)})}return a.$$set=s=>{"endpoint"in s&&i(8,c=s.endpoint),"session"in s&&i(9,g=s.session),"playerid"in s&&i(10,d=s.playerid),"lang"in s&&i(11,h=s.lang),"hasdefaultamount"in s&&i(12,f=s.hasdefaultamount),"clientstyling"in s&&i(13,o=s.clientstyling),"clientstylingurl"in s&&i(14,r=s.clientstylingurl),"translationurl"in s&&i(15,p=s.translationurl),"playercurrency"in s&&i(7,y=s.playercurrency),"shortcashierenabled"in s&&i(16,w=s.shortcashierenabled)},a.$$.update=()=>{a.$$.dirty&2048&&h&&H(),a.$$.dirty&65536&&(l=w.toLocaleLowerCase()==="true"),a.$$.dirty&16385&&r&&u&&U(),a.$$.dirty&8193&&o&&u&&P(),a.$$.dirty&32768&&p&&R(),a.$$.dirty&69504&&g&&d&&c&&y&&h&&w&&B()},[u,x,M,C,n,_,k,y,c,g,d,h,f,o,r,p,w,F,I]}class E 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,playercurrency:7,shortcashierenabled:16},W)}get endpoint(){return this.$$.ctx[8]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[9]}set session(t){this.$$set({session:t}),e.flush()}get playerid(){return this.$$.ctx[10]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[11]}set lang(t){this.$$set({lang:t}),e.flush()}get hasdefaultamount(){return this.$$.ctx[12]}set hasdefaultamount(t){this.$$set({hasdefaultamount:t}),e.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get playercurrency(){return this.$$.ctx[7]}set playercurrency(t){this.$$set({playercurrency:t}),e.flush()}get shortcashierenabled(){return this.$$.ctx[16]}set shortcashierenabled(t){this.$$set({shortcashierenabled:t}),e.flush()}}e.create_custom_element(E,{endpoint:{},session:{},playerid:{},lang:{},hasdefaultamount:{},clientstyling:{},clientstylingurl:{},translationurl:{},playercurrency:{},shortcashierenabled:{}},[],[],!0);exports.default=E;
|
@@ -0,0 +1,395 @@
|
|
1
|
+
import { b as X, $ as Z, S as J, i as K, f as b, c as $, s as ee, d as te, g as x, e as E, t as k, u as c, N as I, j as C, v as u, x as L, n as P, k as S, l as se, E as ie, o as ae, A as _, w as re, p as ne, F as W, D as le } from "./CasinoHamburgerMenu-DCoSb--r.js";
|
2
|
+
function j(i, e) {
|
3
|
+
X(i, e);
|
4
|
+
}
|
5
|
+
function oe(i) {
|
6
|
+
Z.set(i);
|
7
|
+
}
|
8
|
+
const z = {
|
9
|
+
en: {
|
10
|
+
titleDeposit: "Deposit",
|
11
|
+
loading: "Loading, please wait ..."
|
12
|
+
},
|
13
|
+
"zh-hk": {
|
14
|
+
titleDeposit: "訂金",
|
15
|
+
loading: "加載請稍候…"
|
16
|
+
},
|
17
|
+
fr: {
|
18
|
+
titleDeposit: "Dépôt",
|
19
|
+
loading: "Chargement, veuillez patienter ..."
|
20
|
+
},
|
21
|
+
tr: {
|
22
|
+
titleDeposit: "PARA YATIR",
|
23
|
+
loading: "Yükleniyor ..."
|
24
|
+
},
|
25
|
+
ro: {
|
26
|
+
titleDeposit: "Depunere",
|
27
|
+
loading: "Se încarcă..."
|
28
|
+
},
|
29
|
+
es: {
|
30
|
+
titleDeposit: "Deposita",
|
31
|
+
loading: "Cargando ..."
|
32
|
+
},
|
33
|
+
pt: {
|
34
|
+
titleDeposit: "Depósito",
|
35
|
+
loading: "Carregando, por favor espere ..."
|
36
|
+
},
|
37
|
+
hr: {
|
38
|
+
titleDeposit: "Uplata",
|
39
|
+
loading: "Učitavanje"
|
40
|
+
},
|
41
|
+
"pt-br": {
|
42
|
+
titleDeposit: "Depositar",
|
43
|
+
Loading: "Carregando, por favor espere..."
|
44
|
+
},
|
45
|
+
"es-mx": {
|
46
|
+
titleDeposit: "Depositar",
|
47
|
+
Loading: "Cargando, por favor espere..."
|
48
|
+
}
|
49
|
+
};
|
50
|
+
function ce(i) {
|
51
|
+
te(i, "svelte-1dxvsb", ".DepositWrapper.svelte-1dxvsb.svelte-1dxvsb{background-color:var(--emw-color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px 50px 30px 50px;max-width:100%;height:var(--dynamic-height)}.DepositWrapper.DepositWrapperMobile.svelte-1dxvsb.svelte-1dxvsb{padding:20px 15px;max-width:unset;height:var(--dynamic-height)}.MenuReturnButton.svelte-1dxvsb.svelte-1dxvsb{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton.svelte-1dxvsb svg.svelte-1dxvsb{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.DepositTitle.svelte-1dxvsb.svelte-1dxvsb{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.svelte-1dxvsb.svelte-1dxvsb{font-size:var(--emw--size-standard, 16px)}.DepositTitleNone.svelte-1dxvsb.svelte-1dxvsb{display:none}.DepositIframeWrapper.svelte-1dxvsb iframe.svelte-1dxvsb{border:none;width:100%;height:85vh;border-radius:var(--emw--border-radius-large, 20px)}");
|
52
|
+
}
|
53
|
+
function de(i) {
|
54
|
+
let e, s, n, a, o, m, d, p, w, l, r = (
|
55
|
+
/*$_*/
|
56
|
+
i[4]("titleDeposit") + ""
|
57
|
+
), h, v, D;
|
58
|
+
return {
|
59
|
+
c() {
|
60
|
+
e = x("div"), s = _("svg"), n = _("defs"), a = _("style"), o = k(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), m = _("g"), d = _("g"), p = _("path"), w = E(), l = x("h2"), h = k(r), c(p, "class", "aaa"), c(p, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), c(p, "transform", "translate(15 15) rotate(180)"), c(d, "transform", "translate(20 158)"), c(m, "transform", "translate(-20 -158)"), c(s, "xmlns", "http://www.w3.org/2000/svg"), c(s, "width", "15"), c(s, "height", "15"), c(s, "viewBox", "0 0 15 15"), c(s, "class", "svelte-1dxvsb"), c(l, "class", "DepositTitleMobile svelte-1dxvsb"), c(e, "class", "MenuReturnButton svelte-1dxvsb");
|
61
|
+
},
|
62
|
+
m(g, M) {
|
63
|
+
C(g, e, M), u(e, s), u(s, n), u(n, a), u(a, o), u(s, m), u(m, d), u(d, p), u(e, w), u(e, l), u(l, h), v || (D = re(
|
64
|
+
e,
|
65
|
+
"click",
|
66
|
+
/*click_handler*/
|
67
|
+
i[17]
|
68
|
+
), v = !0);
|
69
|
+
},
|
70
|
+
p(g, M) {
|
71
|
+
M & /*$_*/
|
72
|
+
16 && r !== (r = /*$_*/
|
73
|
+
g[4]("titleDeposit") + "") && L(h, r);
|
74
|
+
},
|
75
|
+
d(g) {
|
76
|
+
g && S(e), v = !1, D();
|
77
|
+
}
|
78
|
+
};
|
79
|
+
}
|
80
|
+
function he(i) {
|
81
|
+
let e, s, n;
|
82
|
+
return {
|
83
|
+
c() {
|
84
|
+
e = x("div"), s = x("iframe"), W(s.src, n = /*iframeUrl*/
|
85
|
+
i[3]) || c(s, "src", n), c(s, "title", "Deposit Iframe"), c(s, "class", "svelte-1dxvsb"), c(e, "class", "DepositIframeWrapper svelte-1dxvsb");
|
86
|
+
},
|
87
|
+
m(a, o) {
|
88
|
+
C(a, e, o), u(e, s);
|
89
|
+
},
|
90
|
+
p(a, o) {
|
91
|
+
o & /*iframeUrl*/
|
92
|
+
8 && !W(s.src, n = /*iframeUrl*/
|
93
|
+
a[3]) && c(s, "src", n);
|
94
|
+
},
|
95
|
+
d(a) {
|
96
|
+
a && S(e);
|
97
|
+
}
|
98
|
+
};
|
99
|
+
}
|
100
|
+
function ue(i) {
|
101
|
+
let e, s = (
|
102
|
+
/*$_*/
|
103
|
+
i[4]("loading") + ""
|
104
|
+
), n;
|
105
|
+
return {
|
106
|
+
c() {
|
107
|
+
e = x("p"), n = k(s);
|
108
|
+
},
|
109
|
+
m(a, o) {
|
110
|
+
C(a, e, o), u(e, n);
|
111
|
+
},
|
112
|
+
p(a, o) {
|
113
|
+
o & /*$_*/
|
114
|
+
16 && s !== (s = /*$_*/
|
115
|
+
a[4]("loading") + "") && L(n, s);
|
116
|
+
},
|
117
|
+
d(a) {
|
118
|
+
a && S(e);
|
119
|
+
}
|
120
|
+
};
|
121
|
+
}
|
122
|
+
function pe(i) {
|
123
|
+
let e, s, n, a = (
|
124
|
+
/*$_*/
|
125
|
+
i[4]("titleDeposit") + ""
|
126
|
+
), o, m, d = (
|
127
|
+
/*isMobile*/
|
128
|
+
i[5] && de(i)
|
129
|
+
);
|
130
|
+
function p(r, h) {
|
131
|
+
return (
|
132
|
+
/*isLoading*/
|
133
|
+
r[1] ? ue : he
|
134
|
+
);
|
135
|
+
}
|
136
|
+
let w = p(i), l = w(i);
|
137
|
+
return {
|
138
|
+
c() {
|
139
|
+
e = x("div"), d && d.c(), s = E(), n = x("h2"), o = k(a), m = E(), l.c(), c(n, "class", "DepositTitle " + /*isMobile*/
|
140
|
+
(i[5] ? "DepositTitleNone" : "") + " svelte-1dxvsb"), c(e, "class", "DepositWrapper " + /*isMobile*/
|
141
|
+
(i[5] ? "DepositWrapperMobile" : "") + " svelte-1dxvsb"), I(
|
142
|
+
e,
|
143
|
+
"--dynamic-height",
|
144
|
+
/*dynamicHeight*/
|
145
|
+
i[2]
|
146
|
+
);
|
147
|
+
},
|
148
|
+
m(r, h) {
|
149
|
+
C(r, e, h), d && d.m(e, null), u(e, s), u(e, n), u(n, o), u(e, m), l.m(e, null), i[18](e);
|
150
|
+
},
|
151
|
+
p(r, [h]) {
|
152
|
+
/*isMobile*/
|
153
|
+
r[5] && d.p(r, h), h & /*$_*/
|
154
|
+
16 && a !== (a = /*$_*/
|
155
|
+
r[4]("titleDeposit") + "") && L(o, a), w === (w = p(r)) && l ? l.p(r, h) : (l.d(1), l = w(r), l && (l.c(), l.m(e, null))), h & /*dynamicHeight*/
|
156
|
+
4 && I(
|
157
|
+
e,
|
158
|
+
"--dynamic-height",
|
159
|
+
/*dynamicHeight*/
|
160
|
+
r[2]
|
161
|
+
);
|
162
|
+
},
|
163
|
+
i: P,
|
164
|
+
o: P,
|
165
|
+
d(r) {
|
166
|
+
r && S(e), d && d.d(), l.d(), i[18](null);
|
167
|
+
}
|
168
|
+
};
|
169
|
+
}
|
170
|
+
function ge(i, e, s) {
|
171
|
+
let n, a;
|
172
|
+
se(i, le, (t) => s(4, a = t));
|
173
|
+
let { endpoint: o = "" } = e, { session: m = "" } = e, { playerid: d = "" } = e, { lang: p = "en" } = e, { hasdefaultamount: w = "" } = e, { clientstyling: l = "" } = e, { clientstylingurl: r = "" } = e, { translationurl: h = "" } = e, { playercurrency: v = "" } = e, { shortcashierenabled: D = "false" } = e, g, M = window.navigator.userAgent, R = ie(M) !== "PC", B = !0, F, T = 0, U = "";
|
174
|
+
const G = () => {
|
175
|
+
fetch(h).then((y) => y.json()).then((y) => {
|
176
|
+
Object.keys(y).forEach((f) => {
|
177
|
+
j(f, y[f]);
|
178
|
+
});
|
179
|
+
}).catch((y) => {
|
180
|
+
console.log(y);
|
181
|
+
});
|
182
|
+
};
|
183
|
+
Object.keys(z).forEach((t) => {
|
184
|
+
j(t, z[t]);
|
185
|
+
});
|
186
|
+
const A = () => {
|
187
|
+
window.postMessage({ type: "GoToPreviousRoute", isMobile: R }, window.location.href);
|
188
|
+
}, H = (t) => {
|
189
|
+
if (t.data) {
|
190
|
+
switch (t.data.type) {
|
191
|
+
case "ProfileDetailsData":
|
192
|
+
s(7, v = t.data.profileDetails.currency);
|
193
|
+
break;
|
194
|
+
}
|
195
|
+
switch (t.data["MMFE:setQuickDepositHeight"] && s(2, F = t.data["MMFE:setQuickDepositHeight"].toString() + "px"), t.data["MMFE:openFullCashier"] === "true" && (window.postMessage({ type: "GoToDeposit" }, window.location.href), window.postMessage({ type: "CloseShortCashier" }, window.location.href)), t.data.redirect) {
|
196
|
+
case "mm-hc-casino":
|
197
|
+
window.postMessage({ type: "GoToCasino" }, window.location.href);
|
198
|
+
break;
|
199
|
+
case "mm-hc-sports":
|
200
|
+
window.postMessage({ type: "GoToSports" }, window.location.href);
|
201
|
+
break;
|
202
|
+
case "mm-hc-contact":
|
203
|
+
window.postMessage({ type: "GoToCustomerSupport" }, window.location.href), window.postMessage({ type: "CloseShortCashier" }, window.location.href);
|
204
|
+
break;
|
205
|
+
case "mm-hc-back-to-merchant":
|
206
|
+
window.postMessage({ type: "GoToHomepage" }, window.location.href);
|
207
|
+
break;
|
208
|
+
case "mm-wm-hc-init-deposit":
|
209
|
+
window.postMessage(
|
210
|
+
{
|
211
|
+
type: "RedirectWithdrawDepositCloseModal"
|
212
|
+
},
|
213
|
+
window.location.href
|
214
|
+
);
|
215
|
+
break;
|
216
|
+
case "mm-wm-hc-init-deposit-quick":
|
217
|
+
window.postMessage({ type: "CloseShortCashier" }, window.location.href);
|
218
|
+
break;
|
219
|
+
}
|
220
|
+
}
|
221
|
+
}, N = () => {
|
222
|
+
let t = new URL(`${o}/v1/player/${d}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);
|
223
|
+
if (t.searchParams.append("language", p), n && t.searchParams.append("isShortCashier", D), w)
|
224
|
+
switch (v) {
|
225
|
+
case "USD":
|
226
|
+
T = 0.4;
|
227
|
+
break;
|
228
|
+
case "CDF":
|
229
|
+
T = 1e3;
|
230
|
+
break;
|
231
|
+
}
|
232
|
+
let y = {
|
233
|
+
method: "POST",
|
234
|
+
headers: {
|
235
|
+
"X-SessionId": m,
|
236
|
+
currency: v || "EUR",
|
237
|
+
amount: T,
|
238
|
+
cashierMode: "Default",
|
239
|
+
IsShortCashier: D,
|
240
|
+
accept: "application/json"
|
241
|
+
}
|
242
|
+
};
|
243
|
+
fetch(t.href, y).then((f) => f.json()).then(
|
244
|
+
(f) => {
|
245
|
+
s(1, B = !1), s(3, U = f.CashierUrl);
|
246
|
+
},
|
247
|
+
(f) => {
|
248
|
+
console.error(f);
|
249
|
+
}
|
250
|
+
);
|
251
|
+
}, O = () => {
|
252
|
+
oe(p);
|
253
|
+
}, q = () => {
|
254
|
+
let t = document.createElement("style");
|
255
|
+
t.innerHTML = l, g.appendChild(t);
|
256
|
+
}, Q = () => {
|
257
|
+
let t = new URL(r), y = document.createElement("style");
|
258
|
+
fetch(t.href).then((f) => f.text()).then((f) => {
|
259
|
+
y.innerHTML = f, setTimeout(
|
260
|
+
() => {
|
261
|
+
g.appendChild(y);
|
262
|
+
},
|
263
|
+
1
|
264
|
+
);
|
265
|
+
});
|
266
|
+
};
|
267
|
+
ae(() => (window.addEventListener("message", H, !1), () => {
|
268
|
+
window.removeEventListener("message", H);
|
269
|
+
}));
|
270
|
+
const Y = () => A();
|
271
|
+
function V(t) {
|
272
|
+
ne[t ? "unshift" : "push"](() => {
|
273
|
+
g = t, s(0, g);
|
274
|
+
});
|
275
|
+
}
|
276
|
+
return i.$$set = (t) => {
|
277
|
+
"endpoint" in t && s(8, o = t.endpoint), "session" in t && s(9, m = t.session), "playerid" in t && s(10, d = t.playerid), "lang" in t && s(11, p = t.lang), "hasdefaultamount" in t && s(12, w = t.hasdefaultamount), "clientstyling" in t && s(13, l = t.clientstyling), "clientstylingurl" in t && s(14, r = t.clientstylingurl), "translationurl" in t && s(15, h = t.translationurl), "playercurrency" in t && s(7, v = t.playercurrency), "shortcashierenabled" in t && s(16, D = t.shortcashierenabled);
|
278
|
+
}, i.$$.update = () => {
|
279
|
+
i.$$.dirty & /*lang*/
|
280
|
+
2048 && p && O(), i.$$.dirty & /*shortcashierenabled*/
|
281
|
+
65536 && (n = D.toLocaleLowerCase() === "true"), i.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
282
|
+
16385 && r && g && Q(), i.$$.dirty & /*clientstyling, customStylingContainer*/
|
283
|
+
8193 && l && g && q(), i.$$.dirty & /*translationurl*/
|
284
|
+
32768 && h && G(), i.$$.dirty & /*session, playerid, endpoint, playercurrency, lang, shortcashierenabled*/
|
285
|
+
69504 && m && d && o && v && p && D && N();
|
286
|
+
}, [
|
287
|
+
g,
|
288
|
+
B,
|
289
|
+
F,
|
290
|
+
U,
|
291
|
+
a,
|
292
|
+
R,
|
293
|
+
A,
|
294
|
+
v,
|
295
|
+
o,
|
296
|
+
m,
|
297
|
+
d,
|
298
|
+
p,
|
299
|
+
w,
|
300
|
+
l,
|
301
|
+
r,
|
302
|
+
h,
|
303
|
+
D,
|
304
|
+
Y,
|
305
|
+
V
|
306
|
+
];
|
307
|
+
}
|
308
|
+
class me extends J {
|
309
|
+
constructor(e) {
|
310
|
+
super(), K(
|
311
|
+
this,
|
312
|
+
e,
|
313
|
+
ge,
|
314
|
+
pe,
|
315
|
+
ee,
|
316
|
+
{
|
317
|
+
endpoint: 8,
|
318
|
+
session: 9,
|
319
|
+
playerid: 10,
|
320
|
+
lang: 11,
|
321
|
+
hasdefaultamount: 12,
|
322
|
+
clientstyling: 13,
|
323
|
+
clientstylingurl: 14,
|
324
|
+
translationurl: 15,
|
325
|
+
playercurrency: 7,
|
326
|
+
shortcashierenabled: 16
|
327
|
+
},
|
328
|
+
ce
|
329
|
+
);
|
330
|
+
}
|
331
|
+
get endpoint() {
|
332
|
+
return this.$$.ctx[8];
|
333
|
+
}
|
334
|
+
set endpoint(e) {
|
335
|
+
this.$$set({ endpoint: e }), b();
|
336
|
+
}
|
337
|
+
get session() {
|
338
|
+
return this.$$.ctx[9];
|
339
|
+
}
|
340
|
+
set session(e) {
|
341
|
+
this.$$set({ session: e }), b();
|
342
|
+
}
|
343
|
+
get playerid() {
|
344
|
+
return this.$$.ctx[10];
|
345
|
+
}
|
346
|
+
set playerid(e) {
|
347
|
+
this.$$set({ playerid: e }), b();
|
348
|
+
}
|
349
|
+
get lang() {
|
350
|
+
return this.$$.ctx[11];
|
351
|
+
}
|
352
|
+
set lang(e) {
|
353
|
+
this.$$set({ lang: e }), b();
|
354
|
+
}
|
355
|
+
get hasdefaultamount() {
|
356
|
+
return this.$$.ctx[12];
|
357
|
+
}
|
358
|
+
set hasdefaultamount(e) {
|
359
|
+
this.$$set({ hasdefaultamount: e }), b();
|
360
|
+
}
|
361
|
+
get clientstyling() {
|
362
|
+
return this.$$.ctx[13];
|
363
|
+
}
|
364
|
+
set clientstyling(e) {
|
365
|
+
this.$$set({ clientstyling: e }), b();
|
366
|
+
}
|
367
|
+
get clientstylingurl() {
|
368
|
+
return this.$$.ctx[14];
|
369
|
+
}
|
370
|
+
set clientstylingurl(e) {
|
371
|
+
this.$$set({ clientstylingurl: e }), b();
|
372
|
+
}
|
373
|
+
get translationurl() {
|
374
|
+
return this.$$.ctx[15];
|
375
|
+
}
|
376
|
+
set translationurl(e) {
|
377
|
+
this.$$set({ translationurl: e }), b();
|
378
|
+
}
|
379
|
+
get playercurrency() {
|
380
|
+
return this.$$.ctx[7];
|
381
|
+
}
|
382
|
+
set playercurrency(e) {
|
383
|
+
this.$$set({ playercurrency: e }), b();
|
384
|
+
}
|
385
|
+
get shortcashierenabled() {
|
386
|
+
return this.$$.ctx[16];
|
387
|
+
}
|
388
|
+
set shortcashierenabled(e) {
|
389
|
+
this.$$set({ shortcashierenabled: e }), b();
|
390
|
+
}
|
391
|
+
}
|
392
|
+
$(me, { endpoint: {}, session: {}, playerid: {}, lang: {}, hasdefaultamount: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {}, shortcashierenabled: {} }, [], [], !0);
|
393
|
+
export {
|
394
|
+
me as default
|
395
|
+
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@everymatrix/casino-header-controller",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.70",
|
4
4
|
"type": "module",
|
5
5
|
"main": "es2015/casino-header-controller.cjs",
|
6
6
|
"module": "es2015/casino-header-controller.js",
|
@@ -11,17 +11,18 @@
|
|
11
11
|
},
|
12
12
|
"./es2015/casino-header-controller.cjs": "./es2015/casino-header-controller.cjs"
|
13
13
|
},
|
14
|
-
|
15
|
-
"es2015/"
|
14
|
+
"files": [
|
15
|
+
"es2015/",
|
16
|
+
"components"
|
16
17
|
],
|
17
18
|
"publishConfig": {
|
18
19
|
"access": "public"
|
19
20
|
},
|
20
21
|
"dependencies": {
|
21
|
-
"@everymatrix/casino-slider": "1.0.
|
22
|
-
"@everymatrix/casino-hamburger-menu": "1.0.
|
23
|
-
"@everymatrix/player-account-balance-modal": "1.0.
|
24
|
-
"@everymatrix/player-deposit": "1.0.
|
22
|
+
"@everymatrix/casino-slider": "1.0.78",
|
23
|
+
"@everymatrix/casino-hamburger-menu": "1.0.78",
|
24
|
+
"@everymatrix/player-account-balance-modal": "1.0.78",
|
25
|
+
"@everymatrix/player-deposit": "1.0.78",
|
25
26
|
"@everymatrix/user-deposit-withdrawal": "*"
|
26
27
|
}
|
27
28
|
}
|