@everymatrix/casino-header-controller-nd 1.45.0 → 1.45.2
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/{CasinoHamburgerMenuNd-f3rZ1DDe.cjs → CasinoHamburgerMenuNd-BXEsfn-s.cjs} +4 -4
- package/components/{CasinoHamburgerMenuNd-Chm6Qq82.js → CasinoHamburgerMenuNd-CIrTtpDp.js} +2033 -2044
- package/components/CasinoHeaderControllerNd-B2ZZN_uT.cjs +1 -0
- package/components/CasinoHeaderControllerNd-BoPK_uwo.js +2159 -0
- package/components/PlayerAccountBalanceModalNd-BtrIUvyR.js +1452 -0
- package/components/PlayerAccountBalanceModalNd-Xb8oFGyL.cjs +13 -0
- package/components/PlayerDeposit-4LdQJefg.js +395 -0
- package/components/PlayerDeposit-8f9SmwNq.cjs +1 -0
- package/es2015/casino-header-controller-nd.cjs +1 -1
- package/es2015/casino-header-controller-nd.js +1 -1
- package/package.json +2 -2
- package/components/CasinoHeaderControllerNd-BH6aLDbo.js +0 -2159
- package/components/CasinoHeaderControllerNd-BjLsJchb.cjs +0 -1
- package/components/PlayerAccountBalanceModalNd-CXBwmnpN.js +0 -1452
- package/components/PlayerAccountBalanceModalNd-mdrs-ate.cjs +0 -13
- package/components/PlayerDeposit-Bs81h8-F.js +0 -395
- package/components/PlayerDeposit-CzyZjMhH.cjs +0 -1
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";var at=Object.defineProperty,rt=Object.defineProperties;var ot=Object.getOwnPropertyDescriptors;var je=Object.getOwnPropertySymbols;var st=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable;var He=(r,t,a)=>t in r?at(r,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[t]=a,ze=(r,t)=>{for(var a in t||(t={}))st.call(t,a)&&He(r,a,t[a]);if(je)for(var a of je(t))it.call(t,a)&&He(r,a,t[a]);return r},Ue=(r,t)=>rt(r,ot(t));var Pe=(r,t,a)=>new Promise((i,f)=>{var d=y=>{try{v(a.next(y))}catch(B){f(B)}},m=y=>{try{v(a.throw(y))}catch(B){f(B)}},v=y=>y.done?i(y.value):Promise.resolve(y.value).then(d,m);v((a=a.apply(r,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHamburgerMenuNd-f3rZ1DDe.cjs");function Xe(r,t){e.addMessages(r,t)}function lt(r){e.$locale.set(r)}const Ge={en:{Title:"Your Balance",Total:"Total Balance",Real:"Cash Balance",Bonus:"Bonus Balance",Credit:"Credit Balance",Casino:"Casino",Sports:"Sports",DepositButton:"Deposit"},"zh-hk":{Title:"您的結餘",Total:"總結餘",Real:"現金結餘",Bonus:"紅利結餘",Credit:"信用結餘",Casino:"賭場",Sports:"體育",DepositButton:"存款"},de:{Title:"Ihr Guthaben",Total:"Gesamtguthaben",Real:"Barguthaben",Bonus:"Bonusguthaben",Credit:"Kreditguthaben",Casino:"Casino",Sports:"Sport",DepositButton:"Einzahlen"},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"},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"},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"},tr:{Title:"Bakiyeniz",Total:"Toplam Bakiye",Real:"Nakit Bakiye",Bonus:"Bonus Bakiyesi",Credit:"Kredi Bakiyesi",Casino:"Kumarhane",Sports:"Spor",DepositButton:"Yatır"},ru:{Title:"Ваш баланс",Total:"Общий баланс",Real:"Денежный баланс",Bonus:"Бонусный баланс",Credit:"Кредитный баланс",Casino:"Казино",Sports:"Спорт",DepositButton:"Депозит"},ro:{Title:"Soldul tău",Total:"Sold total",Real:"Sold în numerar",Bonus:"Sold bonus",Credit:"Sold credit",Casino:"Cazinou",Sports:"Sporturi",DepositButton:"Depozit"},hr:{Title:"Vaš saldo",Total:"Ukupni saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Casino",Sports:"Sportovi",DepositButton:"Depozit"},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"},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ć"},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"},sl:{Title:"Vaš saldo",Total:"Skupni saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Kasino",Sports:"Šport",DepositButton:"Depozit"},sr:{Title:"Vaš saldo",Total:"Ukupan saldo",Real:"Gotovinski saldo",Bonus:"Bonus saldo",Credit:"Kreditni saldo",Casino:"Kasino",Sports:"Sport",DepositButton:"Depozit"},"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"},"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"}};var Le={exports:{}};/** @license
|
|
2
|
-
* eventsource.js
|
|
3
|
-
* Available under MIT License (MIT)
|
|
4
|
-
* https://github.com/Yaffle/EventSource/
|
|
5
|
-
*/(function(r,t){(function(a){var i=a.setTimeout,f=a.clearTimeout,d=a.XMLHttpRequest,m=a.XDomainRequest,v=a.ActiveXObject,y=a.EventSource,B=a.document,A=a.Promise,q=a.fetch,x=a.Response,V=a.TextDecoder,k=a.TextEncoder,j=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&&v!=null&&(d=function(){return new v("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()}),j==null){var E=q;q=function(n,o){var c=o.signal;return E(n,{headers:o.headers,credentials:o.credentials,cache:o.cache}).then(function(s){var g=s.body.getReader();return c._reader=g,c._aborted&&c._reader.cancel(),{status:s.status,statusText:s.statusText,headers:s.headers,body:{getReader:function(){return g}}}})},j=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function H(){this.bitsNeeded=0,this.codePoint=0}H.prototype.decode=function(n){function o(R,D,w){if(w===1)return R>=128>>D&&R<<D<=2047;if(w===2)return R>=2048>>D&&R<<D<=55295||R>=57344>>D&&R<<D<=65535;if(w===3)return R>=65536>>D&&R<<D<=1114111;throw new Error}function c(R,D){if(R===6*1)return D>>6>15?3:D>31?2:1;if(R===6*2)return D>15?3:2;if(R===6*3)return 3;throw new Error}for(var s=65533,g="",u=this.bitsNeeded,h=this.codePoint,M=0;M<n.length;M+=1){var C=n[M];u!==0&&(C<128||C>191||!o(h<<6|C&63,u-6,c(u,h)))&&(u=0,h=s,g+=String.fromCharCode(h)),u===0?(C>=0&&C<=127?(u=0,h=C):C>=192&&C<=223?(u=6*1,h=C&31):C>=224&&C<=239?(u=6*2,h=C&15):C>=240&&C<=247?(u=6*3,h=C&7):(u=0,h=s),u!==0&&!o(h,u,c(u,h))&&(u=0,h=s)):(u-=6,h=h<<6|C&63),u===0&&(h<=65535?g+=String.fromCharCode(h):(g+=String.fromCharCode(55296+(h-65535-1>>10)),g+=String.fromCharCode(56320+(h-65535-1&1023))))}return this.bitsNeeded=u,this.codePoint=h,g};var F=function(){try{return new V().decode(new k().encode("test"),{stream:!0})==="test"}catch(n){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+n)}return!1};(V==null||k==null||!F())&&(V=H);var b=function(){};function S(n){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=n,this._sendTimeout=0,this._abort=b}S.prototype.open=function(n,o){this._abort(!0);var c=this,s=this._xhr,g=1,u=0;this._abort=function(w){c._sendTimeout!==0&&(f(c._sendTimeout),c._sendTimeout=0),(g===1||g===2||g===3)&&(g=4,s.onload=b,s.onerror=b,s.onabort=b,s.onprogress=b,s.onreadystatechange=b,s.abort(),u!==0&&(f(u),u=0),w||(c.readyState=4,c.onabort(null),c.onreadystatechange())),g=0};var h=function(){if(g===1){var w=0,N="",ie=void 0;if("contentType"in s)w=200,N="OK",ie=s.contentType;else try{w=s.status,N=s.statusText,ie=s.getResponseHeader("Content-Type")}catch(Te){w=0,N="",ie=void 0}w!==0&&(g=2,c.readyState=2,c.status=w,c.statusText=N,c._contentType=ie,c.onreadystatechange())}},M=function(){if(h(),g===2||g===3){g=3;var w="";try{w=s.responseText}catch(N){}c.readyState=3,c.responseText=w,c.onprogress()}},C=function(w,N){if((N==null||N.preventDefault==null)&&(N={preventDefault:b}),M(),g===1||g===2||g===3){if(g=4,u!==0&&(f(u),u=0),c.readyState=4,w==="load")c.onload(N);else if(w==="error")c.onerror(N);else if(w==="abort")c.onabort(N);else throw new TypeError;c.onreadystatechange()}},R=function(w){s!=null&&(s.readyState===4?(!("onload"in s)||!("onerror"in s)||!("onabort"in s))&&C(s.responseText===""?"error":"load",w):s.readyState===3?"onprogress"in s||M():s.readyState===2&&h())},D=function(){u=i(function(){D()},500),s.readyState===3&&M()};"onload"in s&&(s.onload=function(w){C("load",w)}),"onerror"in s&&(s.onerror=function(w){C("error",w)}),"onabort"in s&&(s.onabort=function(w){C("abort",w)}),"onprogress"in s&&(s.onprogress=M),"onreadystatechange"in s&&(s.onreadystatechange=function(w){R(w)}),("contentType"in s||!("ontimeout"in d.prototype))&&(o+=(o.indexOf("?")===-1?"?":"&")+"padding=true"),s.open(n,o,!0),"readyState"in s&&(u=i(function(){D()},0))},S.prototype.abort=function(){this._abort(!1)},S.prototype.getResponseHeader=function(n){return this._contentType},S.prototype.setRequestHeader=function(n,o){var c=this._xhr;"setRequestHeader"in c&&c.setRequestHeader(n,o)},S.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},S.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=i(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(c){throw c}};function I(n){return n.replace(/[A-Z]/g,function(o){return String.fromCharCode(o.charCodeAt(0)+32)})}function re(n){for(var o=Object.create(null),c=n.split(`\r
|
|
6
|
-
`),s=0;s<c.length;s+=1){var g=c[s],u=g.split(": "),h=u.shift(),M=u.join(": ");o[I(h)]=M}this._map=o}re.prototype.get=function(n){return this._map[I(n)]},d!=null&&d.HEADERS_RECEIVED==null&&(d.HEADERS_RECEIVED=2);function K(){}K.prototype.open=function(n,o,c,s,g,u,h){n.open("GET",g);var M=0;n.onprogress=function(){var R=n.responseText,D=R.slice(M);M+=D.length,c(D)},n.onerror=function(R){R.preventDefault(),s(new Error("NetworkError"))},n.onload=function(){s(null)},n.onabort=function(){s(null)},n.onreadystatechange=function(){if(n.readyState===d.HEADERS_RECEIVED){var R=n.status,D=n.statusText,w=n.getResponseHeader("Content-Type"),N=n.getAllResponseHeaders();o(R,D,w,new re(N))}},n.withCredentials=u;for(var C in h)Object.prototype.hasOwnProperty.call(h,C)&&n.setRequestHeader(C,h[C]);return n.send(),n};function L(n){this._headers=n}L.prototype.get=function(n){return this._headers.get(n)};function _(){}_.prototype.open=function(n,o,c,s,g,u,h){var M=null,C=new j,R=C.signal,D=new V;return q(g,{headers:h,credentials:u?"include":"same-origin",signal:R,cache:"no-store"}).then(function(w){return M=w.body.getReader(),o(w.status,w.statusText,w.headers.get("Content-Type"),new L(w.headers)),new A(function(N,ie){var Te=function(){M.read().then(function(Y){if(Y.done)N(void 0);else{var X=D.decode(Y.value,{stream:!0});c(X),Te()}}).catch(function(Y){ie(Y)})};Te()})}).catch(function(w){if(w.name!=="AbortError")return w}).then(function(w){s(w)}),{abort:function(){M!=null&&M.cancel(),C.abort()}}};function p(){this._listeners=Object.create(null)}function O(n){i(function(){throw n},0)}p.prototype.dispatchEvent=function(n){n.target=this;var o=this._listeners[n.type];if(o!=null)for(var c=o.length,s=0;s<c;s+=1){var g=o[s];try{typeof g.handleEvent=="function"?g.handleEvent(n):g.call(this,n)}catch(u){O(u)}}},p.prototype.addEventListener=function(n,o){n=String(n);var c=this._listeners,s=c[n];s==null&&(s=[],c[n]=s);for(var g=!1,u=0;u<s.length;u+=1)s[u]===o&&(g=!0);g||s.push(o)},p.prototype.removeEventListener=function(n,o){n=String(n);var c=this._listeners,s=c[n];if(s!=null){for(var g=[],u=0;u<s.length;u+=1)s[u]!==o&&g.push(s[u]);g.length===0?delete c[n]:c[n]=g}};function $(n){this.type=n,this.target=void 0}function Ce(n,o){$.call(this,n),this.data=o.data,this.lastEventId=o.lastEventId}Ce.prototype=Object.create($.prototype);function oe(n,o){$.call(this,n),this.status=o.status,this.statusText=o.statusText,this.headers=o.headers}oe.prototype=Object.create($.prototype);function me(n,o){$.call(this,n),this.error=o.error}me.prototype=Object.create($.prototype);var we=-1,ne=0,ue=1,se=2,ye=-1,ae=0,ve=1,_e=2,Ae=3,qe=/^text\/event\-stream(;.*)?$/i,Me=1e3,De=18e6,Be=function(n,o){var c=n==null?o:parseInt(n,10);return c!==c&&(c=o),be(c)},be=function(n){return Math.min(Math.max(n,Me),De)},fe=function(n,o,c){try{typeof o=="function"&&o.call(n,c)}catch(s){O(s)}};function J(n,o){p.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,l(this,n,o)}function Oe(){return d!=null&&"withCredentials"in d.prototype||m==null?new d:new m}var ke=q!=null&&x!=null&&"body"in x.prototype;function l(n,o,c){o=String(o);var s=!!c.withCredentials,g=c.lastEventIdQueryParameterName||"lastEventId",u=be(1e3),h=Be(c.heartbeatTimeout,45e3),M="",C=u,R=!1,D=0,w=c.headers||{},N=c.Transport,ie=ke&&N==null?void 0:new S(N!=null?new N:Oe()),Te=N!=null&&typeof N!="string"?new N:ie==null?new _:new K,Y=void 0,X=0,ee=we,he="",xe="",le="",Ee="",G=ae,Fe=0,pe=0,tt=function(U,z,Q,Z){if(ee===ne)if(U===200&&Q!=null&&qe.test(Q)){ee=ue,R=Date.now(),C=u,n.readyState=ue;var W=new oe("open",{status:U,statusText:z,headers:Z});n.dispatchEvent(W),fe(n,n.onopen,W)}else{var P="";U!==200?(z&&(z=z.replace(/\s+/g," ")),P="EventSource's response has a status "+U+" "+z+" that is not 200. Aborting the connection."):P="EventSource's response has a Content-Type specifying an unsupported type: "+(Q==null?"-":Q.replace(/\s+/g," "))+". Aborting the connection.",Ie();var W=new oe("error",{status:U,statusText:z,headers:Z});n.dispatchEvent(W),fe(n,n.onerror,W),console.error(P)}},nt=function(U){if(ee===ue){for(var z=-1,Q=0;Q<U.length;Q+=1){var Z=U.charCodeAt(Q);(Z===10||Z===13)&&(z=Q)}var W=(z!==-1?Ee:"")+U.slice(0,z+1);Ee=(z===-1?Ee:"")+U.slice(z+1),U!==""&&(R=Date.now(),D+=U.length);for(var P=0;P<W.length;P+=1){var Z=W.charCodeAt(P);if(G===ye&&Z===10)G=ae;else if(G===ye&&(G=ae),Z===13||Z===10){if(G!==ae){G===ve&&(pe=P+1);var ce=W.slice(Fe,pe-1),de=W.slice(pe+(pe<P&&W.charCodeAt(pe)===32?1:0),P);ce==="data"?(he+=`
|
|
7
|
-
`,he+=de):ce==="id"?xe=de:ce==="event"?le=de:ce==="retry"?(u=Be(de,u),C=u):ce==="heartbeatTimeout"&&(h=Be(de,h),X!==0&&(f(X),X=i(function(){Se()},h)))}if(G===ae){if(he!==""){M=xe,le===""&&(le="message");var ge=new Ce(le,{data:he.slice(1),lastEventId:xe});if(n.dispatchEvent(ge),le==="open"?fe(n,n.onopen,ge):le==="message"?fe(n,n.onmessage,ge):le==="error"&&fe(n,n.onerror,ge),ee===se)return}he="",le=""}G=Z===13?ye:ae}else G===ae&&(Fe=P,G=ve),G===ve?Z===58&&(pe=P+1,G=_e):G===_e&&(G=Ae)}}},Ve=function(U){if(ee===ue||ee===ne){ee=we,X!==0&&(f(X),X=0),X=i(function(){Se()},C),C=be(Math.min(u*16,C*2)),n.readyState=ne;var z=new me("error",{error:U});n.dispatchEvent(z),fe(n,n.onerror,z),U!=null&&console.error(U)}},Ie=function(){ee=se,Y!=null&&(Y.abort(),Y=void 0),X!==0&&(f(X),X=0),n.readyState=se},Se=function(){if(X=0,ee!==we){if(!R&&Y!=null)Ve(new Error("No activity within "+h+" milliseconds. "+(ee===ne?"No response received.":D+" chars received.")+" Reconnecting.")),Y!=null&&(Y.abort(),Y=void 0);else{var U=Math.max((R||Date.now())+h-Date.now(),1);R=!1,X=i(function(){Se()},U)}return}R=!1,D=0,X=i(function(){Se()},h),ee=ne,he="",le="",xe=M,Ee="",Fe=0,pe=0,G=ae;var z=o;if(o.slice(0,5)!=="data:"&&o.slice(0,5)!=="blob:"&&M!==""){var Q=o.indexOf("?");z=Q===-1?o:o.slice(0,Q+1)+o.slice(Q+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(de,ge){return ge===g?"":de}),z+=(o.indexOf("?")===-1?"?":"&")+g+"="+encodeURIComponent(M)}var Z=n.withCredentials,W={};W.Accept="text/event-stream";var P=n.headers;if(P!=null)for(var ce in P)Object.prototype.hasOwnProperty.call(P,ce)&&(W[ce]=P[ce]);try{Y=Te.open(ie,tt,nt,Ve,z,Z,W)}catch(de){throw Ie(),de}};n.url=o,n.readyState=ne,n.withCredentials=s,n.headers=w,n._close=Ie,Se()}J.prototype=Object.create(p.prototype),J.prototype.CONNECTING=ne,J.prototype.OPEN=ue,J.prototype.CLOSED=se,J.prototype.close=function(){this._close()},J.CONNECTING=ne,J.OPEN=ue,J.CLOSED=se,J.prototype.withCredentials=void 0;var T=y;d!=null&&(y==null||!("withCredentials"in y.prototype))&&(T=J),function(n){{var o=n(t);o!==void 0&&(r.exports=o)}}(function(n){n.EventSourcePolyfill=J,n.NativeEventSource=y,n.EventSource=T})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:e.commonjsGlobal:globalThis)})(Le,Le.exports);var ct=Le.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:vt,fromCents:!1},$e=function(t){return Math.round(t)},Ne=function(t){return Math.pow(10,t)},ut=function(t,a){return $e(t/a)*a},ft=/(\d)(?=(\d{3})+\b)/g,pt=/(\d)(?=(\d\d)+\d\b)/g;function te(r,t){var a=this;if(!(a instanceof te))return new te(r,t);var i=Object.assign({},dt,t),f=Ne(i.precision),d=Re(r,i);a.intValue=d,a.value=d/f,i.increment=i.increment||1/f,i.useVedic?i.groups=pt:i.groups=ft,this.s=i,this.p=f}function Re(r,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=0,f=t.decimal,d=t.errorOnInvalid,m=t.precision,v=t.fromCents,y=Ne(m),B=typeof r=="number",A=r instanceof te;if(A&&v)return r.intValue;if(B||A)i=A?r.value:r;else if(typeof r=="string"){var q=new RegExp("[^-\\d"+f+"]","g"),x=new RegExp("\\"+f,"g");i=r.replace(/\((.*)\)/,"-$1").replace(q,"").replace(x,"."),i=i||0}else{if(d)throw Error("Invalid Input");i=0}return v||(i*=y,i=i.toFixed(4)),a?$e(i):i}function vt(r,t){var a=t.pattern,i=t.negativePattern,f=t.symbol,d=t.separator,m=t.decimal,v=t.groups,y=(""+r).replace(/^-/,"").split("."),B=y[0],A=y[1];return(r.value>=0?a:i).replace("!",f).replace("#",B.replace(v,"$1"+d)+(A?m+A:""))}te.prototype={add:function(t){var a=this.intValue,i=this.s,f=this.p;return te((a+=Re(t,i))/(i.fromCents?1:f),i)},subtract:function(t){var a=this.intValue,i=this.s,f=this.p;return te((a-=Re(t,i))/(i.fromCents?1:f),i)},multiply:function(t){var a=this.intValue,i=this.s;return te((a*=t)/(i.fromCents?1:Ne(i.precision)),i)},divide:function(t){var a=this.intValue,i=this.s;return te(a/=Re(t,i,!1),i)},distribute:function(t){for(var a=this.intValue,i=this.p,f=this.s,d=[],m=Math[a>=0?"floor":"ceil"](a/t),v=Math.abs(a-m*t),y=f.fromCents?1:i;t!==0;t--){var B=te(m/y,f);v-- >0&&(B=B[a>=0?"add":"subtract"](1/y)),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,i=this.s;return ut(t/a,i.increment).toFixed(i.precision)},toJSON:function(){return this.value}};function ht(r){e.append_styles(r,"svelte-wgtvsq",'.svelte-wgtvsq.svelte-wgtvsq,.svelte-wgtvsq.svelte-wgtvsq::before,.svelte-wgtvsq.svelte-wgtvsq::after{font-family:inherit}:host{font-family:inherit}button.svelte-wgtvsq.svelte-wgtvsq{font-family:inherit}p.svelte-wgtvsq.svelte-wgtvsq{padding:0;margin:0}@keyframes svelte-wgtvsq-growWidthPercent{from{height:0}to{height:100%}}.ShowBalance.svelte-wgtvsq.svelte-wgtvsq{position:relative}.ShowBalance.svelte-wgtvsq .BalanceValue.svelte-wgtvsq{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance.svelte-wgtvsq .BalanceValue svg.svelte-wgtvsq{width:16px;fill:black}.ShowBalance.svelte-wgtvsq .BalanceValue span.svelte-wgtvsq{padding-left:5px}.ShowBalance.svelte-wgtvsq .BalanceValue .TriangleActive.svelte-wgtvsq,.ShowBalance.svelte-wgtvsq .BalanceValue .TriangleInactive.svelte-wgtvsq{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance.svelte-wgtvsq .BalanceValue .TriangleActive.svelte-wgtvsq:hover,.ShowBalance.svelte-wgtvsq .BalanceValue .TriangleInactive.svelte-wgtvsq:hover{transform:scale(1.2)}.ShowBalance.svelte-wgtvsq .BalanceValue .TriangleActive svg.svelte-wgtvsq,.ShowBalance.svelte-wgtvsq .BalanceValue .TriangleInactive svg.svelte-wgtvsq{margin:2px 0px}.ShowBalance.svelte-wgtvsq .BalanceValue .TriangleActive.svelte-wgtvsq{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance.svelte-wgtvsq .BalanceValue .TriangleActive.svelte-wgtvsq:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance.svelte-wgtvsq .BalanceValue.svelte-wgtvsq{font-size:12px}.ShowBalance.svelte-wgtvsq .BalanceValue svg.svelte-wgtvsq{width:12px}}.BalanceModalWrapper.svelte-wgtvsq.svelte-wgtvsq{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw-header-color-primary, var(--emw-color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper.svelte-wgtvsq.svelte-wgtvsq:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open.svelte-wgtvsq.svelte-wgtvsq{opacity:1}.BalanceModalClose.svelte-wgtvsq.svelte-wgtvsq{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;opacity:0}.BalanceModalClose.svelte-wgtvsq.svelte-wgtvsq:before{content:"";background:var(--emw-color-secondary, var(--emw-color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose.svelte-wgtvsq.svelte-wgtvsq:after{content:"";background:var(--emw-color-secondary, var(--emw-color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose.svelte-wgtvsq.svelte-wgtvsq:hover{transform:scale(1.1)}.BalanceModalClose.Open.svelte-wgtvsq.svelte-wgtvsq{opacity:1}.BalanceModal.svelte-wgtvsq.svelte-wgtvsq{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader.svelte-wgtvsq.svelte-wgtvsq{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader.svelte-wgtvsq .BalanceModalTitle.svelte-wgtvsq{font-size:16px;font-weight:bold;color:var(--emw-header-contrast, var(--emw-color-contrast, white))}.BalanceModalRowBoth.svelte-wgtvsq.svelte-wgtvsq{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw-color-gray-100, #E6E6E6)}.BalanceModalRowBoth.svelte-wgtvsq.svelte-wgtvsq:last-child{border-bottom:none}.BalanceModalRowBoth.svelte-wgtvsq .BalanceModalRowLine.svelte-wgtvsq{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth.svelte-wgtvsq .BalanceModalText.svelte-wgtvsq{color:var(--emw-header-contrast, var(--emw-color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth.svelte-wgtvsq .BalanceModalValue.svelte-wgtvsq{font-size:14px;font-weight:bold;color:var(--emw-header-contrast, var(--emw-color-contrast, white))}.BalanceModalFooter.svelte-wgtvsq.svelte-wgtvsq{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter.svelte-wgtvsq .BalanceModalAction.svelte-wgtvsq{background:var(--emw-color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter.svelte-wgtvsq .BalanceModalAction.svelte-wgtvsq:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw-color-primary);box-shadow:0px 0px 0px 2px inset var(--emw-color-primary);font-size:14px}.BalanceModalFooter.svelte-wgtvsq .BalanceModalAction.svelte-wgtvsq:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay.svelte-wgtvsq.svelte-wgtvsq{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}')}function We(r,t,a){const i=r.slice();return i[47]=t[a],i}function Ke(r,t,a){const i=r.slice();return i[50]=t[a],i}function Je(r){let t,a,i,f,d,m,v,y,B=r[5]("Title")+"",A,q,x,V,k,j,E=r[5]("DepositButton")+"",H,F,b,S,I,re,K=e.ensure_array_like(Object.keys(r[1])),L=[];for(let _=0;_<K.length;_+=1)L[_]=Qe(We(r,K,_));return{c(){t=e.element("div"),a=e.element("div"),f=e.space(),d=e.element("div"),m=e.element("div"),v=e.element("div"),y=e.element("p"),A=e.text(B),q=e.space(),x=e.element("div");for(let _=0;_<L.length;_+=1)L[_].c();V=e.space(),k=e.element("div"),j=e.element("button"),H=e.text(E),e.attr(a,"class",i="BalanceModalClose "+(r[3]?"Open":"")+" svelte-wgtvsq"),e.attr(y,"class","BalanceModalTitle svelte-wgtvsq"),e.attr(v,"class","BalanceModalHeader svelte-wgtvsq"),e.attr(x,"class","BalanceModalBody svelte-wgtvsq"),e.attr(j,"class","BalanceModalAction svelte-wgtvsq"),e.attr(k,"class","BalanceModalFooter svelte-wgtvsq"),e.attr(m,"class",F="ModalContent "+(r[3]?"Open":"")+" svelte-wgtvsq"),e.attr(d,"class",b="BalanceModal "+(r[3]?"Open":"")+" svelte-wgtvsq"),e.attr(t,"class",S="BalanceModalWrapper "+(r[3]?"Open":"")+" svelte-wgtvsq")},m(_,p){e.insert(_,t,p),e.append(t,a),e.append(t,f),e.append(t,d),e.append(d,m),e.append(m,v),e.append(v,y),e.append(y,A),e.append(m,q),e.append(m,x);for(let O=0;O<L.length;O+=1)L[O]&&L[O].m(x,null);e.append(m,V),e.append(m,k),e.append(k,j),e.append(j,H),I||(re=[e.listen(a,"click",r[24]),e.listen(j,"click",r[25])],I=!0)},p(_,p){if(p[0]&8&&i!==(i="BalanceModalClose "+(_[3]?"Open":"")+" svelte-wgtvsq")&&e.attr(a,"class",i),p[0]&32&&B!==(B=_[5]("Title")+"")&&e.set_data(A,B),p[0]&178){K=e.ensure_array_like(Object.keys(_[1]));let O;for(O=0;O<K.length;O+=1){const $=We(_,K,O);L[O]?L[O].p($,p):(L[O]=Qe($),L[O].c(),L[O].m(x,null))}for(;O<L.length;O+=1)L[O].d(1);L.length=K.length}p[0]&32&&E!==(E=_[5]("DepositButton")+"")&&e.set_data(H,E),p[0]&8&&F!==(F="ModalContent "+(_[3]?"Open":"")+" svelte-wgtvsq")&&e.attr(m,"class",F),p[0]&8&&b!==(b="BalanceModal "+(_[3]?"Open":"")+" svelte-wgtvsq")&&e.attr(d,"class",b),p[0]&8&&S!==(S="BalanceModalWrapper "+(_[3]?"Open":"")+" svelte-wgtvsq")&&e.attr(t,"class",S)},d(_){_&&e.detach(t),e.destroy_each(L,_),I=!1,e.run_all(re)}}}function Ye(r){let t,a,i=r[5](r[47])+"",f,d,m=(r[50].productType?r[5](r[50].productType):"")+"",v,y,B,A,q=(r[50].amount?r[7](r[50].amount):"0")+"",x,V,k,j;return{c(){t=e.element("div"),a=e.element("p"),f=e.text(i),d=e.space(),v=e.text(m),y=e.space(),B=e.element("p"),A=e.element("span"),x=e.text(q),V=e.space(),k=e.element("span"),j=e.text(r[4]),e.attr(a,"class","BalanceModalText svelte-wgtvsq"),e.attr(A,"class","BalanceModalAmount svelte-wgtvsq"),e.attr(k,"class","BalanceModalCurrency svelte-wgtvsq"),e.attr(B,"class","BalanceModalValue svelte-wgtvsq"),e.attr(t,"class","BalanceModalRowLine svelte-wgtvsq")},m(E,H){e.insert(E,t,H),e.append(t,a),e.append(a,f),e.append(a,d),e.append(a,v),e.append(t,y),e.append(t,B),e.append(B,A),e.append(A,x),e.append(B,V),e.append(B,k),e.append(k,j)},p(E,H){H[0]&34&&i!==(i=E[5](E[47])+"")&&e.set_data(f,i),H[0]&34&&m!==(m=(E[50].productType?E[5](E[50].productType):"")+"")&&e.set_data(v,m),H[0]&2&&q!==(q=(E[50].amount?E[7](E[50].amount):"0")+"")&&e.set_data(x,q),H[0]&16&&e.set_data(j,E[4])},d(E){E&&e.detach(t)}}}function Qe(r){let t,a,i=e.ensure_array_like(r[1][r[47]]),f=[];for(let d=0;d<i.length;d+=1)f[d]=Ye(Ke(r,i,d));return{c(){t=e.element("div");for(let d=0;d<f.length;d+=1)f[d].c();a=e.space(),e.attr(t,"class","BalanceModalRowBoth svelte-wgtvsq")},m(d,m){e.insert(d,t,m);for(let v=0;v<f.length;v+=1)f[v]&&f[v].m(t,null);e.append(t,a)},p(d,m){if(m[0]&178){i=e.ensure_array_like(d[1][d[47]]);let v;for(v=0;v<i.length;v+=1){const y=Ke(d,i,v);f[v]?f[v].p(y,m):(f[v]=Ye(y),f[v].c(),f[v].m(t,a))}for(;v<f.length;v+=1)f[v].d(1);f.length=i.length}},d(d){d&&e.detach(t),e.destroy_each(f,d)}}}function Ze(r){let t,a,i;return{c(){t=e.element("div"),e.attr(t,"class","ShowBalanceModalOverlay svelte-wgtvsq")},m(f,d){e.insert(f,t,d),a||(i=e.listen(t,"click",r[26]),a=!0)},p:e.noop,d(f){f&&e.detach(t),a=!1,i()}}}function gt(r){let t,a,i,f,d=(r[1].Total?r[7](r[1].Total[0].amount):"0")+"",m,v,y,B,A,q,x,V,k,j,E,H,F=r[2]&&Je(r),b=r[2]&&Ze(r);return{c(){t=e.element("div"),a=e.element("div"),i=e.element("div"),f=e.element("p"),m=e.text(d),v=e.space(),y=e.text(r[4]),B=e.space(),A=e.element("span"),q=e.svg_element("svg"),x=e.svg_element("path"),k=e.space(),F&&F.c(),j=e.space(),b&&b.c(),e.attr(f,"class","svelte-wgtvsq"),e.attr(x,"id","arrow"),e.attr(x,"d","M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"),e.attr(x,"transform","translate(-274.511 -441.088)"),e.attr(x,"fill","#d1d1d1"),e.attr(x,"class","svelte-wgtvsq"),e.attr(q,"xmlns","http://www.w3.org/2000/svg"),e.attr(q,"width","14"),e.attr(q,"height","6.835"),e.attr(q,"viewBox","0 0 14 6.835"),e.attr(q,"class","svelte-wgtvsq"),e.attr(A,"class",V=(r[3]?"TriangleActive":"TriangleInactive")+" svelte-wgtvsq"),e.attr(i,"class","BalanceValue svelte-wgtvsq"),e.attr(a,"class","ShowBalance svelte-wgtvsq"),e.attr(t,"class","svelte-wgtvsq")},m(S,I){e.insert(S,t,I),e.append(t,a),e.append(a,i),e.append(i,f),e.append(f,m),e.append(f,v),e.append(f,y),e.append(i,B),e.append(i,A),e.append(A,q),e.append(q,x),e.append(a,k),F&&F.m(a,null),e.append(t,j),b&&b.m(t,null),r[27](t),E||(H=e.listen(i,"click",r[23]),E=!0)},p(S,I){I[0]&2&&d!==(d=(S[1].Total?S[7](S[1].Total[0].amount):"0")+"")&&e.set_data(m,d),I[0]&16&&e.set_data(y,S[4]),I[0]&8&&V!==(V=(S[3]?"TriangleActive":"TriangleInactive")+" svelte-wgtvsq")&&e.attr(A,"class",V),S[2]?F?F.p(S,I):(F=Je(S),F.c(),F.m(a,null)):F&&(F.d(1),F=null),S[2]?b?b.p(S,I):(b=Ze(S),b.c(),b.m(t,null)):b&&(b.d(1),b=null)},i:e.noop,o:e.noop,d(S){S&&e.detach(t),F&&F.d(),b&&b.d(),r[27](null),E=!1,H()}}}function mt(r,t,a){let i;e.component_subscribe(r,e.$format,l=>a(5,i=l));let{userid:f=""}=t,{session:d=""}=t,{endpoint:m=""}=t,{lang:v="en"}=t,{clientstyling:y=""}=t,{clientstylingurl:B=""}=t,{translationurl:A=""}=t,{customlocaleidentifier:q=""}=t,{gmversion:x=""}=t,{displaybalanceoption:V="All"}=t,{totalcalculationmode:k="totalRealAmount"}=t,{currencyseparator:j=""}=t,{currencydecimal:E=""}=t,{currencyprecision:H=""}=t,F,b,S,I=!1,re=!1,K=!1,L="",_=[];const p={},O=["totalAmount","totalCashAmount","totalRealAmount","totalWithdrawableAmount"],$=()=>{fetch(A).then(l=>l.json()).then(l=>Object.keys(l).forEach(T=>Xe(T,l[T]))).catch(l=>console.log(l))};Object.keys(Ge).forEach(l=>Xe(l,Ge[l]));const Ce=()=>{switch(k){case"totalAmount":return(l,T,n)=>n.walletType!=="CreditLine"?l+n.affectedAmount:l;case"totalCashAmount":return(l,T,n)=>n.walletType!=="CreditLine"&&(T==="Bonus"||T==="Real")?l+n.affectedAmount:l;case"totalRealAmount":return(l,T,n)=>n.walletType!=="CreditLine"&&T==="Real"?l+n.affectedAmount:n.walletType==="CreditLine"&&T==="Real"?l-Math.abs(n.affectedAmount):l;case"totalWithdrawableAmount":return(l,T,n)=>n.walletType!=="CreditLine"&&(T==="Real"||T==="RealNegativeRemainder")?l+n.affectedAmount:T==="DepositWagering"?l-n.affectedAmount:l}},oe=l=>{switch(l){case"balance":window.postMessage({type:"BalanceModalStatus",status:"open"},window.location.href),a(2,re=!0),setTimeout(()=>a(3,K=!0),150);break;case"closebalance":a(3,K=!1),window.postMessage({type:"BalanceModalStatus",status:"close"},window.location.href),setTimeout(()=>{a(2,re=!1)},150);break}},me=()=>{if(q.includes(v))return q},we=l=>q?new Intl.NumberFormat(me(),{useGrouping:!0}).format(l):j&&E?te(l,{separator:j,decimal:E,symbol:"",precision:parseInt(H||"2",10)}).format():te(l,{separator:".",decimal:",",symbol:"",precision:parseInt(H||"2",10)}).format(),ne=()=>Pe(this,null,function*(){var T,n;const l=new URL(`${m}/v1/player/${f}/account`);try{I=!0;const o=yield fetch(l,{method:"GET",headers:{"X-SessionID":d}}),c=yield o.json();if(o.ok)I=!1,window.postMessage({type:"BalancedFetched"},window.location.href),_=c.items,a(4,L=Object.keys(c.totalAmount)[0]),a(1,p.Total=[{amount:c.totalAmount[L]}],p),a(1,p.Real=[{amount:(T=_.find(s=>s.displayName==="Casino"))==null?void 0:T.balanceAmount}],p),a(1,p.Bonus=[{amount:(n=_.find(s=>s.displayName==="UBS"))==null?void 0:n.balanceAmount}],p);else throw I=!1,new Error("Failed to fetch balance data !")}catch(o){I=!1,console.log("Balance error: ",o)}finally{I=!1}}),ue=()=>{I=!0;const l=new URL(`${m}/v2/player/${f}/balance`),T=new Headers;T.append("X-SessionID",d),fetch(l,{method:"GET",headers:T}).then(o=>o.json()).then(o=>{I=!1;const[c,s]=Object.entries(o[k])[0];if(a(4,L=c),a(1,p.Total=[{amount:s}],p),!o.items[0].productType){const u=Object.values(o.totalBonusAmount)[0];a(1,p.Bonus=[{amount:u}],p);for(const h of o.items)h.type==="Real"&&(h.creditLine&&a(1,p.Credit=[{amount:h.creditLine}],p),p.Real?a(1,p.Real[0].amount+=h.amount,p):a(1,p.Real=[{amount:h.amount}],p));return}let g=o.items;a(1,p.Bonus=[],p),a(1,p.Real=[],p),a(1,p.Credit=[],p),V&&V!=="All"&&(g=o.items.filter(u=>u.productType===V));for(const u of g){if(u.type==="Real"){u.creditLine&&p.Credit.push({amount:u.creditLine,productType:u.productType});const h=p.Real.findIndex(M=>M.productType===u.productType);h>0?a(1,p.Real[h].amount+=u.amount,p):p.Real.push({amount:u.amount,productType:u.productType});continue}if(u.type==="Bonus"){const h=p.Bonus.findIndex(M=>M.productType===u.productType);h>0?a(1,p.Bonus[h].amount+=u.amount,p):p.Bonus.push({amount:u.amount,productType:u.productType})}}}).catch(o=>{throw I=!1,new Error("Failed to fetch balance data !")})},se=()=>{if(S&&S.close(),d.length<1)return;let l,T;switch(x){case"gm16":l=new URL(`${m}/v2/player/${f}/information/updates`),T=c=>c.data&&c.data.type==="BALANCE_UPDATE_V2"&&ae(c.data.body);break;case"gmcore":l=new URL(`${m}/v1/player/${f}/balance/updates`),T=c=>c.data&&ye(c.data.body);break}const n={accept:"text/event-stream","X-SessionId":d},o=new ct.EventSourcePolyfill(l,{headers:n});S=o,o.addEventListener("message",T)},ye=l=>{var o,c;let T;try{T=JSON.parse(l)}catch(s){console.log("Balance stream failed: ",s),se()}let n="0";_=_.map(s=>(T.balanceChange&&T.balanceChange[s.id]&&(s=Ue(ze({},s),{balanceAmount:T.balanceChange[s.id].afterAmount})),n=(parseFloat(s==null?void 0:s.balanceAmount)+parseFloat(n)).toString(),s)),a(1,p.Real=[{amount:(o=_[0])==null?void 0:o.balanceAmount}],p),a(1,p.Bonus=[{amount:(c=_[1])==null?void 0:c.balanceAmount}],p),a(1,p.Total=[{amount:Number(n)}],p)},ae=l=>{let T;try{T=JSON.parse(l)}catch(o){console.log("Balance stream failed: ",o),se()}const n=T.body;for(const[o,c]of Object.entries(n)){for(const s of p[o])!s.productType||c.productType&&c.productType===s.productType&&(s.amount=c.afterAmount);a(1,p.Total[0].amount=F(p.Total[0].amount,o,c),p)}},ve=()=>{oe("closebalance"),window.postMessage({type:"GoToDeposit"},window.location.href),typeof gtag=="function"&>ag("event","GoToDeposit",{context:"PlayerAccountBalanceModal"})},_e=()=>{O.includes(k)||(console.error(`Unsupported value ('${k}') for totalcalculationmode parameter. Only the following values are supported ${O}. Using default value ('${O[2]}').`),a(9,k=O[2]))},Ae=()=>{switch(lt(v),_e(),F=Ce(),x){case"gmcore":ne();break;case"gm16":ue();break;default:throw Error(`Invalid apiversion attribute: ${x}`)}},qe=l=>l.data&&l.data.type==="LogoutSuccessfull"&&S.close(),Me=()=>{const l=document.createElement("style");l.innerHTML=y,b.appendChild(l)},De=()=>{const l=new URL(B),T=document.createElement("style");fetch(l.href).then(n=>n.text()).then(n=>{T.innerHTML=n,setTimeout(()=>{b.appendChild(T)},1)})},Be=()=>{window.postMessage({type:"UpdateBalanceBackground"},window.location.href)};e.onMount(()=>(window.addEventListener("message",qe,!1),()=>{window.removeEventListener("message",qe),S&&S.close()}));const be=()=>oe("balance"),fe=()=>oe("closebalance"),J=()=>ve(),Oe=()=>oe("closeBalance");function ke(l){e.binding_callbacks[l?"unshift":"push"](()=>{b=l,a(0,b)})}return r.$$set=l=>{"userid"in l&&a(10,f=l.userid),"session"in l&&a(11,d=l.session),"endpoint"in l&&a(12,m=l.endpoint),"lang"in l&&a(13,v=l.lang),"clientstyling"in l&&a(14,y=l.clientstyling),"clientstylingurl"in l&&a(15,B=l.clientstylingurl),"translationurl"in l&&a(16,A=l.translationurl),"customlocaleidentifier"in l&&a(17,q=l.customlocaleidentifier),"gmversion"in l&&a(18,x=l.gmversion),"displaybalanceoption"in l&&a(19,V=l.displaybalanceoption),"totalcalculationmode"in l&&a(9,k=l.totalcalculationmode),"currencyseparator"in l&&a(20,j=l.currencyseparator),"currencydecimal"in l&&a(21,E=l.currencydecimal),"currencyprecision"in l&&a(22,H=l.currencyprecision)},r.$$.update=()=>{r.$$.dirty[0]&8192&&v&&me(),r.$$.dirty[0]&801792&&m&&f&&d&&v&&x&&V&&Ae(),r.$$.dirty[0]&7680&&m&&f&&d&&k&&se(),r.$$.dirty[0]&16385&&y&&b&&Me(),r.$$.dirty[0]&32769&&B&&b&&De(),r.$$.dirty[0]&65536&&A&&$(),r.$$.dirty[0]&2&&p.Total&&Be()},[b,p,re,K,L,i,oe,we,ve,k,f,d,m,v,y,B,A,q,x,V,j,E,H,be,fe,J,Oe,ke]}class et extends e.SvelteComponent{constructor(t){super(),e.init(this,t,mt,gt,e.safe_not_equal,{userid:10,session:11,endpoint:12,lang:13,clientstyling:14,clientstylingurl:15,translationurl:16,customlocaleidentifier:17,gmversion:18,displaybalanceoption:19,totalcalculationmode:9,currencyseparator:20,currencydecimal:21,currencyprecision:22},ht,[-1,-1])}get userid(){return this.$$.ctx[10]}set userid(t){this.$$set({userid:t}),e.flush()}get session(){return this.$$.ctx[11]}set session(t){this.$$set({session:t}),e.flush()}get endpoint(){return this.$$.ctx[12]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get lang(){return this.$$.ctx[13]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[14]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[15]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[16]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get customlocaleidentifier(){return this.$$.ctx[17]}set customlocaleidentifier(t){this.$$set({customlocaleidentifier:t}),e.flush()}get gmversion(){return this.$$.ctx[18]}set gmversion(t){this.$$set({gmversion:t}),e.flush()}get displaybalanceoption(){return this.$$.ctx[19]}set displaybalanceoption(t){this.$$set({displaybalanceoption:t}),e.flush()}get totalcalculationmode(){return this.$$.ctx[9]}set totalcalculationmode(t){this.$$set({totalcalculationmode: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(et,{userid:{},session:{},endpoint:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},customlocaleidentifier:{},gmversion:{},displaybalanceoption:{},totalcalculationmode:{},currencyseparator:{},currencydecimal:{},currencyprecision:{}},[],[],!0);exports.default=et;
|
|
@@ -1,395 +0,0 @@
|
|
|
1
|
-
import { b as V, $ as X, S as Z, i as J, f as b, c as $, s as ee, d as te, g as x, h as L, D as k, j as c, N as P, n as C, m as u, E, F as A, v as S, w as se, L as ie, x as ae, B as _, o as re, H as ne, k as W, K as le } from "./CasinoHamburgerMenuNd-Chm6Qq82.js";
|
|
2
|
-
function j(i, e) {
|
|
3
|
-
V(i, e);
|
|
4
|
-
}
|
|
5
|
-
function oe(i) {
|
|
6
|
-
X.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 = L(), 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") + "") && E(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") + "") && E(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 = L(), n = x("h2"), o = k(a), m = L(), l.c(), c(n, "class", "DepositTitle " + /*isMobile*/
|
|
140
|
-
(i[5] ? "DepositTitleNone" : "") + " svelte-1dxvsb"), c(e, "class", "DepositWrapper " + /*isMobile*/
|
|
141
|
-
(i[5] ? "DepositWrapperMobile" : "") + " svelte-1dxvsb"), P(
|
|
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") + "") && E(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 && P(
|
|
157
|
-
e,
|
|
158
|
-
"--dynamic-height",
|
|
159
|
-
/*dynamicHeight*/
|
|
160
|
-
r[2]
|
|
161
|
-
);
|
|
162
|
-
},
|
|
163
|
-
i: A,
|
|
164
|
-
o: A,
|
|
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, H = "";
|
|
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 U = () => {
|
|
187
|
-
window.postMessage({ type: "GoToPreviousRoute", isMobile: R }, window.location.href);
|
|
188
|
-
}, I = (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, H = 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", I, !1), () => {
|
|
268
|
-
window.removeEventListener("message", I);
|
|
269
|
-
}));
|
|
270
|
-
const Y = () => U();
|
|
271
|
-
function K(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
|
-
H,
|
|
291
|
-
a,
|
|
292
|
-
R,
|
|
293
|
-
U,
|
|
294
|
-
v,
|
|
295
|
-
o,
|
|
296
|
-
m,
|
|
297
|
-
d,
|
|
298
|
-
p,
|
|
299
|
-
w,
|
|
300
|
-
l,
|
|
301
|
-
r,
|
|
302
|
-
h,
|
|
303
|
-
D,
|
|
304
|
-
Y,
|
|
305
|
-
K
|
|
306
|
-
];
|
|
307
|
-
}
|
|
308
|
-
class me extends Z {
|
|
309
|
-
constructor(e) {
|
|
310
|
-
super(), J(
|
|
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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHamburgerMenuNd-f3rZ1DDe.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 N(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 q(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,q,N,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;
|