@everymatrix/casino-header-controller-nd 1.45.0 → 1.45.3
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-BIyrZ5q3.cjs} +4 -4
- package/components/{CasinoHamburgerMenuNd-Chm6Qq82.js → CasinoHamburgerMenuNd-CDoFtsHC.js} +2031 -2042
- package/components/CasinoHeaderControllerNd-CLx6q3f6.cjs +1 -0
- package/components/CasinoHeaderControllerNd-yjawzjr9.js +2159 -0
- package/components/PlayerAccountBalanceModalNd-3GrgT2AS.js +1458 -0
- package/components/PlayerAccountBalanceModalNd-BXGagG9a.cjs +17 -0
- package/components/PlayerDeposit-GdDtZSA2.js +395 -0
- package/components/PlayerDeposit-pj1u5D-u.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
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";var at=Object.defineProperty,rt=Object.defineProperties;var ot=Object.getOwnPropertyDescriptors;var He=Object.getOwnPropertySymbols;var it=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable;var ze=(o,n,a)=>n in o?at(o,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):o[n]=a,Ue=(o,n)=>{for(var a in n||(n={}))it.call(n,a)&&ze(o,a,n[a]);if(He)for(var a of He(n))st.call(n,a)&&ze(o,a,n[a]);return o},Pe=(o,n)=>rt(o,ot(n));var Xe=(o,n,a)=>new Promise((s,u)=>{var d=w=>{try{g(a.next(w))}catch(B){u(B)}},v=w=>{try{g(a.throw(w))}catch(B){u(B)}},g=w=>w.done?s(w.value):Promise.resolve(w.value).then(d,v);g((a=a.apply(o,n)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHamburgerMenuNd-BIyrZ5q3.cjs");function Ge(o,n){e.addMessages(o,n)}function lt(o){e.$locale.set(o)}const We={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 Ve={exports:{}};/** @license
|
|
2
|
+
* eventsource.js
|
|
3
|
+
* Available under MIT License (MIT)
|
|
4
|
+
* https://github.com/Yaffle/EventSource/
|
|
5
|
+
*/(function(o,n){(function(a){var s=a.setTimeout,u=a.clearTimeout,d=a.XMLHttpRequest,v=a.XDomainRequest,g=a.ActiveXObject,w=a.EventSource,B=a.document,A=a.Promise,M=a.fetch,R=a.Response,N=a.TextDecoder,O=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(t){B.readyState="complete"},!1)),d==null&&g!=null&&(d=function(){return new g("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(t){function r(){}return r.prototype=t,new r}),Date.now||(Date.now=function(){return new Date().getTime()}),j==null){var x=M;M=function(t,r){var c=r.signal;return x(t,{headers:r.headers,credentials:r.credentials,cache:r.cache}).then(function(i){var h=i.body.getReader();return c._reader=h,c._aborted&&c._reader.cancel(),{status:i.status,statusText:i.statusText,headers:i.headers,body:{getReader:function(){return h}}}})},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(t){function r(E,D,y){if(y===1)return E>=128>>D&&E<<D<=2047;if(y===2)return E>=2048>>D&&E<<D<=55295||E>=57344>>D&&E<<D<=65535;if(y===3)return E>=65536>>D&&E<<D<=1114111;throw new Error}function c(E,D){if(E===6*1)return D>>6>15?3:D>31?2:1;if(E===6*2)return D>15?3:2;if(E===6*3)return 3;throw new Error}for(var i=65533,h="",f=this.bitsNeeded,m=this.codePoint,C=0;C<t.length;C+=1){var T=t[C];f!==0&&(T<128||T>191||!r(m<<6|T&63,f-6,c(f,m)))&&(f=0,m=i,h+=String.fromCharCode(m)),f===0?(T>=0&&T<=127?(f=0,m=T):T>=192&&T<=223?(f=6*1,m=T&31):T>=224&&T<=239?(f=6*2,m=T&15):T>=240&&T<=247?(f=6*3,m=T&7):(f=0,m=i),f!==0&&!r(m,f,c(f,m))&&(f=0,m=i)):(f-=6,m=m<<6|T&63),f===0&&(m<=65535?h+=String.fromCharCode(m):(h+=String.fromCharCode(55296+(m-65535-1>>10)),h+=String.fromCharCode(56320+(m-65535-1&1023))))}return this.bitsNeeded=f,this.codePoint=m,h};var F=function(){try{return new N().decode(new O().encode("test"),{stream:!0})==="test"}catch(t){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+t)}return!1};(N==null||O==null||!F())&&(N=H);var b=function(){};function S(t){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=t,this._sendTimeout=0,this._abort=b}S.prototype.open=function(t,r){this._abort(!0);var c=this,i=this._xhr,h=1,f=0;this._abort=function(y){c._sendTimeout!==0&&(u(c._sendTimeout),c._sendTimeout=0),(h===1||h===2||h===3)&&(h=4,i.onload=b,i.onerror=b,i.onabort=b,i.onprogress=b,i.onreadystatechange=b,i.abort(),f!==0&&(u(f),f=0),y||(c.readyState=4,c.onabort(null),c.onreadystatechange())),h=0};var m=function(){if(h===1){var y=0,V="",ie=void 0;if("contentType"in i)y=200,V="OK",ie=i.contentType;else try{y=i.status,V=i.statusText,ie=i.getResponseHeader("Content-Type")}catch(Te){y=0,V="",ie=void 0}y!==0&&(h=2,c.readyState=2,c.status=y,c.statusText=V,c._contentType=ie,c.onreadystatechange())}},C=function(){if(m(),h===2||h===3){h=3;var y="";try{y=i.responseText}catch(V){}c.readyState=3,c.responseText=y,c.onprogress()}},T=function(y,V){if((V==null||V.preventDefault==null)&&(V={preventDefault:b}),C(),h===1||h===2||h===3){if(h=4,f!==0&&(u(f),f=0),c.readyState=4,y==="load")c.onload(V);else if(y==="error")c.onerror(V);else if(y==="abort")c.onabort(V);else throw new TypeError;c.onreadystatechange()}},E=function(y){i!=null&&(i.readyState===4?(!("onload"in i)||!("onerror"in i)||!("onabort"in i))&&T(i.responseText===""?"error":"load",y):i.readyState===3?"onprogress"in i||C():i.readyState===2&&m())},D=function(){f=s(function(){D()},500),i.readyState===3&&C()};"onload"in i&&(i.onload=function(y){T("load",y)}),"onerror"in i&&(i.onerror=function(y){T("error",y)}),"onabort"in i&&(i.onabort=function(y){T("abort",y)}),"onprogress"in i&&(i.onprogress=C),"onreadystatechange"in i&&(i.onreadystatechange=function(y){E(y)}),("contentType"in i||!("ontimeout"in d.prototype))&&(r+=(r.indexOf("?")===-1?"?":"&")+"padding=true"),i.open(t,r,!0),"readyState"in i&&(f=s(function(){D()},0))},S.prototype.abort=function(){this._abort(!1)},S.prototype.getResponseHeader=function(t){return this._contentType},S.prototype.setRequestHeader=function(t,r){var c=this._xhr;"setRequestHeader"in c&&c.setRequestHeader(t,r)},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 t=this;t._sendTimeout=s(function(){t._sendTimeout=0,t.send()},4);return}var r=this._xhr;"withCredentials"in r&&(r.withCredentials=this.withCredentials);try{r.send(void 0)}catch(c){throw c}};function I(t){return t.replace(/[A-Z]/g,function(r){return String.fromCharCode(r.charCodeAt(0)+32)})}function ae(t){for(var r=Object.create(null),c=t.split(`\r
|
|
6
|
+
`),i=0;i<c.length;i+=1){var h=c[i],f=h.split(": "),m=f.shift(),C=f.join(": ");r[I(m)]=C}this._map=r}ae.prototype.get=function(t){return this._map[I(t)]},d!=null&&d.HEADERS_RECEIVED==null&&(d.HEADERS_RECEIVED=2);function q(){}q.prototype.open=function(t,r,c,i,h,f,m){t.open("GET",h);var C=0;t.onprogress=function(){var E=t.responseText,D=E.slice(C);C+=D.length,c(D)},t.onerror=function(E){E.preventDefault(),i(new Error("NetworkError"))},t.onload=function(){i(null)},t.onabort=function(){i(null)},t.onreadystatechange=function(){if(t.readyState===d.HEADERS_RECEIVED){var E=t.status,D=t.statusText,y=t.getResponseHeader("Content-Type"),V=t.getAllResponseHeaders();r(E,D,y,new ae(V))}},t.withCredentials=f;for(var T in m)Object.prototype.hasOwnProperty.call(m,T)&&t.setRequestHeader(T,m[T]);return t.send(),t};function L(t){this._headers=t}L.prototype.get=function(t){return this._headers.get(t)};function _(){}_.prototype.open=function(t,r,c,i,h,f,m){var C=null,T=new j,E=T.signal,D=new N;return M(h,{headers:m,credentials:f?"include":"same-origin",signal:E,cache:"no-store"}).then(function(y){return C=y.body.getReader(),r(y.status,y.statusText,y.headers.get("Content-Type"),new L(y.headers)),new A(function(V,ie){var Te=function(){C.read().then(function(Y){if(Y.done)V(void 0);else{var X=D.decode(Y.value,{stream:!0});c(X),Te()}}).catch(function(Y){ie(Y)})};Te()})}).catch(function(y){if(y.name!=="AbortError")return y}).then(function(y){i(y)}),{abort:function(){C!=null&&C.cancel(),T.abort()}}};function p(){this._listeners=Object.create(null)}function k(t){s(function(){throw t},0)}p.prototype.dispatchEvent=function(t){t.target=this;var r=this._listeners[t.type];if(r!=null)for(var c=r.length,i=0;i<c;i+=1){var h=r[i];try{typeof h.handleEvent=="function"?h.handleEvent(t):h.call(this,t)}catch(f){k(f)}}},p.prototype.addEventListener=function(t,r){t=String(t);var c=this._listeners,i=c[t];i==null&&(i=[],c[t]=i);for(var h=!1,f=0;f<i.length;f+=1)i[f]===r&&(h=!0);h||i.push(r)},p.prototype.removeEventListener=function(t,r){t=String(t);var c=this._listeners,i=c[t];if(i!=null){for(var h=[],f=0;f<i.length;f+=1)i[f]!==r&&h.push(i[f]);h.length===0?delete c[t]:c[t]=h}};function Z(t){this.type=t,this.target=void 0}function Ce(t,r){Z.call(this,t),this.data=r.data,this.lastEventId=r.lastEventId}Ce.prototype=Object.create(Z.prototype);function re(t,r){Z.call(this,t),this.status=r.status,this.statusText=r.statusText,this.headers=r.headers}re.prototype=Object.create(Z.prototype);function ge(t,r){Z.call(this,t),this.error=r.error}ge.prototype=Object.create(Z.prototype);var ve=-1,te=0,de=1,oe=2,pe=-1,ne=0,ye=1,we=2,Ae=3,Me=/^text\/event\-stream(;.*)?$/i,_e=1e3,De=18e6,Be=function(t,r){var c=t==null?r:parseInt(t,10);return c!==c&&(c=r),be(c)},be=function(t){return Math.min(Math.max(t,_e),De)},ue=function(t,r,c){try{typeof r=="function"&&r.call(t,c)}catch(i){k(i)}};function K(t,r){p.call(this),r=r||{},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,t,r)}function Oe(){return d!=null&&"withCredentials"in d.prototype||v==null?new d:new v}var ke=M!=null&&R!=null&&"body"in R.prototype;function Fe(t,r,c){r=String(r);var i=!!c.withCredentials,h=c.lastEventIdQueryParameterName||"lastEventId",f=be(1e3),m=Be(c.heartbeatTimeout,45e3),C="",T=f,E=!1,D=0,y=c.headers||{},V=c.Transport,ie=ke&&V==null?void 0:new S(V!=null?new V:Oe()),Te=V!=null&&typeof V!="string"?new V:ie==null?new _:new q,Y=void 0,X=0,$=ve,he="",Re="",se="",xe="",G=ne,Ie=0,fe=0,tt=function(U,z,J,Q){if($===te)if(U===200&&J!=null&&Me.test(J)){$=de,E=Date.now(),T=f,t.readyState=de;var W=new re("open",{status:U,statusText:z,headers:Q});t.dispatchEvent(W),ue(t,t.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: "+(J==null?"-":J.replace(/\s+/g," "))+". Aborting the connection.",Le();var W=new re("error",{status:U,statusText:z,headers:Q});t.dispatchEvent(W),ue(t,t.onerror,W),console.error(P)}},nt=function(U){if($===de){for(var z=-1,J=0;J<U.length;J+=1){var Q=U.charCodeAt(J);(Q===10||Q===13)&&(z=J)}var W=(z!==-1?xe:"")+U.slice(0,z+1);xe=(z===-1?xe:"")+U.slice(z+1),U!==""&&(E=Date.now(),D+=U.length);for(var P=0;P<W.length;P+=1){var Q=W.charCodeAt(P);if(G===pe&&Q===10)G=ne;else if(G===pe&&(G=ne),Q===13||Q===10){if(G!==ne){G===ye&&(fe=P+1);var le=W.slice(Ie,fe-1),ce=W.slice(fe+(fe<P&&W.charCodeAt(fe)===32?1:0),P);le==="data"?(he+=`
|
|
7
|
+
`,he+=ce):le==="id"?Re=ce:le==="event"?se=ce:le==="retry"?(f=Be(ce,f),T=f):le==="heartbeatTimeout"&&(m=Be(ce,m),X!==0&&(u(X),X=s(function(){Se()},m)))}if(G===ne){if(he!==""){C=Re,se===""&&(se="message");var me=new Ce(se,{data:he.slice(1),lastEventId:Re});if(t.dispatchEvent(me),se==="open"?ue(t,t.onopen,me):se==="message"?ue(t,t.onmessage,me):se==="error"&&ue(t,t.onerror,me),$===oe)return}he="",se=""}G=Q===13?pe:ne}else G===ne&&(Ie=P,G=ye),G===ye?Q===58&&(fe=P+1,G=we):G===we&&(G=Ae)}}},je=function(U){if($===de||$===te){$=ve,X!==0&&(u(X),X=0),X=s(function(){Se()},T),T=be(Math.min(f*16,T*2)),t.readyState=te;var z=new ge("error",{error:U});t.dispatchEvent(z),ue(t,t.onerror,z),U!=null&&console.error(U)}},Le=function(){$=oe,Y!=null&&(Y.abort(),Y=void 0),X!==0&&(u(X),X=0),t.readyState=oe},Se=function(){if(X=0,$!==ve){if(!E&&Y!=null)je(new Error("No activity within "+m+" milliseconds. "+($===te?"No response received.":D+" chars received.")+" Reconnecting.")),Y!=null&&(Y.abort(),Y=void 0);else{var U=Math.max((E||Date.now())+m-Date.now(),1);E=!1,X=s(function(){Se()},U)}return}E=!1,D=0,X=s(function(){Se()},m),$=te,he="",se="",Re=C,xe="",Ie=0,fe=0,G=ne;var z=r;if(r.slice(0,5)!=="data:"&&r.slice(0,5)!=="blob:"&&C!==""){var J=r.indexOf("?");z=J===-1?r:r.slice(0,J+1)+r.slice(J+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(ce,me){return me===h?"":ce}),z+=(r.indexOf("?")===-1?"?":"&")+h+"="+encodeURIComponent(C)}var Q=t.withCredentials,W={};W.Accept="text/event-stream";var P=t.headers;if(P!=null)for(var le in P)Object.prototype.hasOwnProperty.call(P,le)&&(W[le]=P[le]);try{Y=Te.open(ie,tt,nt,je,z,Q,W)}catch(ce){throw Le(),ce}};t.url=r,t.readyState=te,t.withCredentials=i,t.headers=y,t._close=Le,Se()}K.prototype=Object.create(p.prototype),K.prototype.CONNECTING=te,K.prototype.OPEN=de,K.prototype.CLOSED=oe,K.prototype.close=function(){this._close()},K.CONNECTING=te,K.OPEN=de,K.CLOSED=oe,K.prototype.withCredentials=void 0;var l=w;d!=null&&(w==null||!("withCredentials"in w.prototype))&&(l=K),function(t){{var r=t(n);r!==void 0&&(o.exports=r)}}(function(t){t.EventSourcePolyfill=K,t.NativeEventSource=w,t.EventSource=l})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:e.commonjsGlobal:globalThis)})(Ve,Ve.exports);var ct=Ve.exports;/*!
|
|
8
|
+
* currency.js - v2.0.4
|
|
9
|
+
* http://scurker.github.io/currency.js
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2021 Jason Wilson
|
|
12
|
+
* Released under MIT license
|
|
13
|
+
*/var dt={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:ht,fromCents:!1},$e=function(n){return Math.round(n)},Ne=function(n){return Math.pow(10,n)},ut=function(n,a){return $e(n/a)*a},ft=/(\d)(?=(\d{3})+\b)/g,pt=/(\d)(?=(\d\d)+\d\b)/g;function ee(o,n){var a=this;if(!(a instanceof ee))return new ee(o,n);var s=Object.assign({},dt,n),u=Ne(s.precision),d=Ee(o,s);a.intValue=d,a.value=d/u,s.increment=s.increment||1/u,s.useVedic?s.groups=pt:s.groups=ft,this.s=s,this.p=u}function Ee(o,n){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=0,u=n.decimal,d=n.errorOnInvalid,v=n.precision,g=n.fromCents,w=Ne(v),B=typeof o=="number",A=o instanceof ee;if(A&&g)return o.intValue;if(B||A)s=A?o.value:o;else if(typeof o=="string"){var M=new RegExp("[^-\\d"+u+"]","g"),R=new RegExp("\\"+u,"g");s=o.replace(/\((.*)\)/,"-$1").replace(M,"").replace(R,"."),s=s||0}else{if(d)throw Error("Invalid Input");s=0}return g||(s*=w,s=s.toFixed(4)),a?$e(s):s}function ht(o,n){var a=n.pattern,s=n.negativePattern,u=n.symbol,d=n.separator,v=n.decimal,g=n.groups,w=(""+o).replace(/^-/,"").split("."),B=w[0],A=w[1];return(o.value>=0?a:s).replace("!",u).replace("#",B.replace(g,"$1"+d)+(A?v+A:""))}ee.prototype={add:function(n){var a=this.intValue,s=this.s,u=this.p;return ee((a+=Ee(n,s))/(s.fromCents?1:u),s)},subtract:function(n){var a=this.intValue,s=this.s,u=this.p;return ee((a-=Ee(n,s))/(s.fromCents?1:u),s)},multiply:function(n){var a=this.intValue,s=this.s;return ee((a*=n)/(s.fromCents?1:Ne(s.precision)),s)},divide:function(n){var a=this.intValue,s=this.s;return ee(a/=Ee(n,s,!1),s)},distribute:function(n){for(var a=this.intValue,s=this.p,u=this.s,d=[],v=Math[a>=0?"floor":"ceil"](a/n),g=Math.abs(a-v*n),w=u.fromCents?1:s;n!==0;n--){var B=ee(v/w,u);g-- >0&&(B=B[a>=0?"add":"subtract"](1/w)),d.push(B)}return d},dollars:function(){return~~this.value},cents:function(){var n=this.intValue,a=this.p;return~~(n%a)},format:function(n){var a=this.s;return typeof n=="function"?n(this,a):a.format(this,Object.assign({},a,n))},toString:function(){var n=this.intValue,a=this.p,s=this.s;return ut(n/a,s.increment).toFixed(s.precision)},toJSON:function(){return this.value}};function mt(o){e.append_styles(o,"svelte-bn5dkz",'*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw-header-color-primary, var(--emw-color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw-color-secondary, var(--emw-color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw-color-secondary, var(--emw-color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw-header-contrast, var(--emw-color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw-color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw-header-contrast, var(--emw-color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw-header-contrast, var(--emw-color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw-color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw-color-primary);box-shadow:0px 0px 0px 2px inset var(--emw-color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}')}function qe(o,n,a){const s=o.slice();return s[48]=n[a],s}function Ke(o,n,a){const s=o.slice();return s[51]=n[a],s}function Ye(o){let n,a,s,u,d,v,g,w,B=o[5]("Title")+"",A,M,R,N,O,j,x=o[5]("DepositButton")+"",H,F,b,S,I,ae,q=e.ensure_array_like(Object.keys(o[1])),L=[];for(let _=0;_<q.length;_+=1)L[_]=Qe(qe(o,q,_));return{c(){n=e.element("div"),a=e.element("div"),u=e.space(),d=e.element("div"),v=e.element("div"),g=e.element("div"),w=e.element("p"),A=e.text(B),M=e.space(),R=e.element("div");for(let _=0;_<L.length;_+=1)L[_].c();N=e.space(),O=e.element("div"),j=e.element("button"),H=e.text(x),e.attr(a,"class",s="BalanceModalClose "+(o[3]?"Open":"")),e.attr(w,"class","BalanceModalTitle"),e.attr(g,"class","BalanceModalHeader"),e.attr(R,"class","BalanceModalBody"),e.attr(j,"class","BalanceModalAction"),e.attr(O,"class","BalanceModalFooter"),e.attr(v,"class",F="ModalContent "+(o[3]?"Open":"")),e.attr(d,"class",b="BalanceModal "+(o[3]?"Open":"")),e.attr(n,"class",S="BalanceModalWrapper "+(o[3]?"Open":""))},m(_,p){e.insert(_,n,p),e.append(n,a),e.append(n,u),e.append(n,d),e.append(d,v),e.append(v,g),e.append(g,w),e.append(w,A),e.append(v,M),e.append(v,R);for(let k=0;k<L.length;k+=1)L[k]&&L[k].m(R,null);e.append(v,N),e.append(v,O),e.append(O,j),e.append(j,H),I||(ae=[e.listen(a,"click",o[24]),e.listen(j,"click",o[25])],I=!0)},p(_,p){if(p[0]&8&&s!==(s="BalanceModalClose "+(_[3]?"Open":""))&&e.attr(a,"class",s),p[0]&32&&B!==(B=_[5]("Title")+"")&&e.set_data(A,B),p[0]&178){q=e.ensure_array_like(Object.keys(_[1]));let k;for(k=0;k<q.length;k+=1){const Z=qe(_,q,k);L[k]?L[k].p(Z,p):(L[k]=Qe(Z),L[k].c(),L[k].m(R,null))}for(;k<L.length;k+=1)L[k].d(1);L.length=q.length}p[0]&32&&x!==(x=_[5]("DepositButton")+"")&&e.set_data(H,x),p[0]&8&&F!==(F="ModalContent "+(_[3]?"Open":""))&&e.attr(v,"class",F),p[0]&8&&b!==(b="BalanceModal "+(_[3]?"Open":""))&&e.attr(d,"class",b),p[0]&8&&S!==(S="BalanceModalWrapper "+(_[3]?"Open":""))&&e.attr(n,"class",S)},d(_){_&&e.detach(n),e.destroy_each(L,_),I=!1,e.run_all(ae)}}}function Je(o){let n,a,s=o[5](o[48])+"",u,d,v=(o[51].productType?o[5](o[51].productType):"")+"",g,w,B,A,M=(o[51].amount?o[7](o[51].amount):"0")+"",R,N,O,j;return{c(){n=e.element("div"),a=e.element("p"),u=e.text(s),d=e.space(),g=e.text(v),w=e.space(),B=e.element("p"),A=e.element("span"),R=e.text(M),N=e.space(),O=e.element("span"),j=e.text(o[4]),e.attr(a,"class","BalanceModalText"),e.attr(A,"class","BalanceModalAmount"),e.attr(O,"class","BalanceModalCurrency"),e.attr(B,"class","BalanceModalValue"),e.attr(n,"class","BalanceModalRowLine")},m(x,H){e.insert(x,n,H),e.append(n,a),e.append(a,u),e.append(a,d),e.append(a,g),e.append(n,w),e.append(n,B),e.append(B,A),e.append(A,R),e.append(B,N),e.append(B,O),e.append(O,j)},p(x,H){H[0]&34&&s!==(s=x[5](x[48])+"")&&e.set_data(u,s),H[0]&34&&v!==(v=(x[51].productType?x[5](x[51].productType):"")+"")&&e.set_data(g,v),H[0]&2&&M!==(M=(x[51].amount?x[7](x[51].amount):"0")+"")&&e.set_data(R,M),H[0]&16&&e.set_data(j,x[4])},d(x){x&&e.detach(n)}}}function Qe(o){let n,a,s=e.ensure_array_like(o[1][o[48]]),u=[];for(let d=0;d<s.length;d+=1)u[d]=Je(Ke(o,s,d));return{c(){n=e.element("div");for(let d=0;d<u.length;d+=1)u[d].c();a=e.space(),e.attr(n,"class","BalanceModalRowBoth")},m(d,v){e.insert(d,n,v);for(let g=0;g<u.length;g+=1)u[g]&&u[g].m(n,null);e.append(n,a)},p(d,v){if(v[0]&178){s=e.ensure_array_like(d[1][d[48]]);let g;for(g=0;g<s.length;g+=1){const w=Ke(d,s,g);u[g]?u[g].p(w,v):(u[g]=Je(w),u[g].c(),u[g].m(n,a))}for(;g<u.length;g+=1)u[g].d(1);u.length=s.length}},d(d){d&&e.detach(n),e.destroy_each(u,d)}}}function Ze(o){let n,a,s;return{c(){n=e.element("div"),e.attr(n,"class","ShowBalanceModalOverlay")},m(u,d){e.insert(u,n,d),a||(s=e.listen(n,"click",o[26]),a=!0)},p:e.noop,d(u){u&&e.detach(n),a=!1,s()}}}function gt(o){let n,a,s,u,d=(o[1].Total?o[7](o[1].Total[0].amount):"0")+"",v,g,w,B,A,M,R,N,O,j,x,H,F=o[2]&&Ye(o),b=o[2]&&Ze(o);return{c(){n=e.element("div"),a=e.element("div"),s=e.element("div"),u=e.element("p"),v=e.text(d),g=e.space(),w=e.text(o[4]),B=e.space(),A=e.element("span"),M=e.svg_element("svg"),R=e.svg_element("path"),O=e.space(),F&&F.c(),j=e.space(),b&&b.c(),e.attr(R,"id","arrow"),e.attr(R,"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(R,"transform","translate(-274.511 -441.088)"),e.attr(R,"fill","#d1d1d1"),e.attr(M,"xmlns","http://www.w3.org/2000/svg"),e.attr(M,"width","14"),e.attr(M,"height","6.835"),e.attr(M,"viewBox","0 0 14 6.835"),e.attr(A,"class",N=o[3]?"TriangleActive":"TriangleInactive"),e.attr(s,"class","BalanceValue"),e.attr(a,"class","ShowBalance")},m(S,I){e.insert(S,n,I),e.append(n,a),e.append(a,s),e.append(s,u),e.append(u,v),e.append(u,g),e.append(u,w),e.append(s,B),e.append(s,A),e.append(A,M),e.append(M,R),e.append(a,O),F&&F.m(a,null),e.append(n,j),b&&b.m(n,null),o[27](n),x||(H=e.listen(s,"click",o[23]),x=!0)},p(S,I){I[0]&2&&d!==(d=(S[1].Total?S[7](S[1].Total[0].amount):"0")+"")&&e.set_data(v,d),I[0]&16&&e.set_data(w,S[4]),I[0]&8&&N!==(N=S[3]?"TriangleActive":"TriangleInactive")&&e.attr(A,"class",N),S[2]?F?F.p(S,I):(F=Ye(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(n,null)):b&&(b.d(1),b=null)},i:e.noop,o:e.noop,d(S){S&&e.detach(n),F&&F.d(),b&&b.d(),o[27](null),x=!1,H()}}}function vt(o,n,a){let s;e.component_subscribe(o,e.$format,l=>a(5,s=l));let{userid:u=""}=n,{session:d=""}=n,{endpoint:v=""}=n,{lang:g="en"}=n,{clientstyling:w=""}=n,{clientstylingurl:B=""}=n,{translationurl:A=""}=n,{customlocaleidentifier:M=""}=n,{gmversion:R=""}=n,{displaybalanceoption:N="All"}=n,{totalcalculationmode:O="totalRealAmount"}=n,{currencyseparator:j=""}=n,{currencydecimal:x=""}=n,{currencyprecision:H=""}=n,F,b,S,I=!1,ae=!1,q=!1,L="",_=[];const p={},k=["totalAmount","totalCashAmount","totalRealAmount","totalWithdrawableAmount"],Z=()=>{fetch(A).then(l=>l.json()).then(l=>Object.keys(l).forEach(t=>Ge(t,l[t]))).catch(l=>console.log(l))};Object.keys(We).forEach(l=>Ge(l,We[l]));const Ce=()=>{switch(O){case"totalAmount":return(l,t,r)=>r.walletType!=="CreditLine"&&r.affectedAmount?l+r.affectedAmount:l;case"totalCashAmount":return(l,t,r)=>r.walletType!=="CreditLine"&&(t==="Bonus"||t==="Real")&&r.affectedAmount?l+r.affectedAmount:l;case"totalRealAmount":return(l,t,r)=>r.walletType!=="CreditLine"&&t==="Real"&&r.affectedAmount?l+r.affectedAmount:r.walletType==="CreditLine"&&t==="Real"&&r.affectedAmount?l-Math.abs(r.affectedAmount):l;case"totalWithdrawableAmount":return(l,t,r)=>r.walletType!=="CreditLine"&&(t==="Real"||t==="RealNegativeRemainder")&&r.affectedAmount?l+r.affectedAmount:t==="DepositWagering"&&r.affectedAmount?l-r.affectedAmount:l}},re=l=>{switch(l){case"balance":window.postMessage({type:"BalanceModalStatus",status:"open"},window.location.href),a(2,ae=!0),setTimeout(()=>a(3,q=!0),150);break;case"closebalance":a(3,q=!1),window.postMessage({type:"BalanceModalStatus",status:"close"},window.location.href),setTimeout(()=>{a(2,ae=!1)},150);break}},ge=()=>{if(M.includes(g))return M},ve=l=>M?new Intl.NumberFormat(ge(),{useGrouping:!0}).format(l):j&&x?ee(l,{separator:j,decimal:x,symbol:"",precision:parseInt(H||"2",10)}).format():ee(l,{separator:".",decimal:",",symbol:"",precision:parseInt(H||"2",10)}).format(),te=()=>Xe(this,null,function*(){var t,r;const l=new URL(`${v}/v1/player/${u}/account`);try{I=!0;const c=yield fetch(l,{method:"GET",headers:{"X-SessionID":d}}),i=yield c.json();if(c.ok)I=!1,window.postMessage({type:"BalancedFetched"},window.location.href),_=i.items,a(4,L=Object.keys(i.totalAmount)[0]),a(1,p.Total=[{amount:i.totalAmount[L]}],p),a(1,p.Real=[{amount:(t=_.find(h=>h.displayName==="Casino"))==null?void 0:t.balanceAmount}],p),a(1,p.Bonus=[{amount:(r=_.find(h=>h.displayName==="UBS"))==null?void 0:r.balanceAmount}],p);else throw I=!1,new Error("Failed to fetch balance data !")}catch(c){I=!1,console.log("Balance error: ",c)}finally{I=!1}}),de=()=>{I=!0;const l=new URL(`${v}/v2/player/${u}/balance`),t=new Headers;t.append("X-SessionID",d),fetch(l,{method:"GET",headers:t}).then(c=>c.json()).then(c=>{I=!1;const[i,h]=Object.entries(c[O])[0];if(a(4,L=i),a(1,p.Total=[{amount:h}],p),a(1,p.Real=[],p),a(1,p.Bonus=[],p),a(1,p.Credit=[],p),!c.items[0].productType){O==="totalRealAmount"&&delete p.Real;const m=Object.values(c.totalBonusAmount)[0];p.Bonus.push({amount:m});for(const C of c.items)C.type==="Real"&&(C.creditLine&&p.Credit.length===0&&p.Credit.push({amount:C.creditLine}),O!=="totalRealAmount"&&(p.Real.length===0?p.Real.push({amount:C.amount}):a(1,p.Real[0].amount+=C.amount,p)));return}let f=c.items;N&&N!=="All"&&(f=c.items.filter(m=>m.productType===N));for(const m of f){if(m.type==="Real"){m.creditLine&&p.Credit.push({amount:m.creditLine,productType:m.productType});const C=p.Real.findIndex(T=>T.productType===m.productType);C>0?a(1,p.Real[C].amount+=m.amount,p):p.Real.push({amount:m.amount,productType:m.productType});continue}if(m.type==="Bonus"){const C=p.Bonus.findIndex(T=>T.productType===m.productType);C>0?a(1,p.Bonus[C].amount+=m.amount,p):p.Bonus.push({amount:m.amount,productType:m.productType})}}}).catch(c=>{throw I=!1,new Error("Failed to fetch balance data !")})},oe=()=>{if(S&&S.close(),d.length<1)return;let l,t;switch(R){case"gm16":l=new URL(`${v}/v2/player/${u}/information/updates`),t=i=>ye(i.data);break;case"gmcore":l=new URL(`${v}/v1/player/${u}/balance/updates`),t=i=>ne(i.data);break}const r={accept:"text/event-stream","X-SessionId":d},c=new ct.EventSourcePolyfill(l,{headers:r});S=c,c.addEventListener("message",t)},pe=l=>{let t;try{t=JSON.parse(l)}catch(r){console.log("Balance stream failed: ",r);return}return t},ne=l=>{var i,h;const t=pe(l);t||oe();let r="0";const c=t.balanceChange;_=_.map(f=>(c&&c[f.id]&&(f=Pe(Ue({},f),{balanceAmount:c[f.id].afterAmount})),r=(parseFloat(f==null?void 0:f.balanceAmount)+parseFloat(r)).toString(),f)),a(1,p.Real=[{amount:(i=_[0])==null?void 0:i.balanceAmount}],p),a(1,p.Bonus=[{amount:(h=_[1])==null?void 0:h.balanceAmount}],p),a(1,p.Total=[{amount:Number(r)}],p)},ye=l=>{const t=pe(l);(!t||t.type!=="BALANCE_UPDATE_V2")&&oe();const r=t.body.balanceChange;for(const[c,i]of Object.entries(r))if(a(1,p.Total[0].amount=F(p.Total[0].amount,c,i),p),!!p[c])for(const h of p[c])(!h.productType||i.productType&&i.productType===h.productType)&&(h.amount=i.afterAmount)},we=()=>{re("closebalance"),window.postMessage({type:"GoToDeposit"},window.location.href),typeof gtag=="function"&>ag("event","GoToDeposit",{context:"PlayerAccountBalanceModal"})},Ae=()=>{k.includes(O)||(console.error(`
|
|
14
|
+
Unsupported value ('${O}') for totalcalculationmode parameter.
|
|
15
|
+
Only the following values are supported ${k}.
|
|
16
|
+
Using default value ('${k[0]}').
|
|
17
|
+
`),a(9,O=k[0]))},Me=()=>{switch(lt(g),Ae(),F=Ce(),R){case"gmcore":te();break;case"gm16":de();break;default:throw Error(`Invalid apiversion attribute: ${R}`)}},_e=l=>l.data&&l.data.type==="LogoutSuccessfull"&&S.close(),De=()=>{const l=document.createElement("style");l.innerHTML=w,b.appendChild(l)},Be=()=>{const l=new URL(B),t=document.createElement("style");fetch(l.href).then(r=>r.text()).then(r=>{t.innerHTML=r,setTimeout(()=>{b.appendChild(t)},1)})},be=()=>{window.postMessage({type:"UpdateBalanceBackground"},window.location.href)};e.onMount(()=>(window.addEventListener("message",_e,!1),()=>{window.removeEventListener("message",_e),S&&S.close()}));const ue=()=>re("balance"),K=()=>re("closebalance"),Oe=()=>we(),ke=()=>re("closeBalance");function Fe(l){e.binding_callbacks[l?"unshift":"push"](()=>{b=l,a(0,b)})}return o.$$set=l=>{"userid"in l&&a(10,u=l.userid),"session"in l&&a(11,d=l.session),"endpoint"in l&&a(12,v=l.endpoint),"lang"in l&&a(13,g=l.lang),"clientstyling"in l&&a(14,w=l.clientstyling),"clientstylingurl"in l&&a(15,B=l.clientstylingurl),"translationurl"in l&&a(16,A=l.translationurl),"customlocaleidentifier"in l&&a(17,M=l.customlocaleidentifier),"gmversion"in l&&a(18,R=l.gmversion),"displaybalanceoption"in l&&a(19,N=l.displaybalanceoption),"totalcalculationmode"in l&&a(9,O=l.totalcalculationmode),"currencyseparator"in l&&a(20,j=l.currencyseparator),"currencydecimal"in l&&a(21,x=l.currencydecimal),"currencyprecision"in l&&a(22,H=l.currencyprecision)},o.$$.update=()=>{o.$$.dirty[0]&8192&&g&&ge(),o.$$.dirty[0]&801792&&v&&u&&d&&g&&R&&N&&Me(),o.$$.dirty[0]&269312&&v&&u&&d&&R&&oe(),o.$$.dirty[0]&16385&&w&&b&&De(),o.$$.dirty[0]&32769&&B&&b&&Be(),o.$$.dirty[0]&65536&&A&&Z(),o.$$.dirty[0]&2&&p.Total&&be()},[b,p,ae,q,L,s,re,ve,we,O,u,d,v,g,w,B,A,M,R,N,j,x,H,ue,K,Oe,ke,Fe]}class et extends e.SvelteComponent{constructor(n){super(),e.init(this,n,vt,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},mt,[-1,-1])}get userid(){return this.$$.ctx[10]}set userid(n){this.$$set({userid:n}),e.flush()}get session(){return this.$$.ctx[11]}set session(n){this.$$set({session:n}),e.flush()}get endpoint(){return this.$$.ctx[12]}set endpoint(n){this.$$set({endpoint:n}),e.flush()}get lang(){return this.$$.ctx[13]}set lang(n){this.$$set({lang:n}),e.flush()}get clientstyling(){return this.$$.ctx[14]}set clientstyling(n){this.$$set({clientstyling:n}),e.flush()}get clientstylingurl(){return this.$$.ctx[15]}set clientstylingurl(n){this.$$set({clientstylingurl:n}),e.flush()}get translationurl(){return this.$$.ctx[16]}set translationurl(n){this.$$set({translationurl:n}),e.flush()}get customlocaleidentifier(){return this.$$.ctx[17]}set customlocaleidentifier(n){this.$$set({customlocaleidentifier:n}),e.flush()}get gmversion(){return this.$$.ctx[18]}set gmversion(n){this.$$set({gmversion:n}),e.flush()}get displaybalanceoption(){return this.$$.ctx[19]}set displaybalanceoption(n){this.$$set({displaybalanceoption:n}),e.flush()}get totalcalculationmode(){return this.$$.ctx[9]}set totalcalculationmode(n){this.$$set({totalcalculationmode:n}),e.flush()}get currencyseparator(){return this.$$.ctx[20]}set currencyseparator(n){this.$$set({currencyseparator:n}),e.flush()}get currencydecimal(){return this.$$.ctx[21]}set currencydecimal(n){this.$$set({currencydecimal:n}),e.flush()}get currencyprecision(){return this.$$.ctx[22]}set currencyprecision(n){this.$$set({currencyprecision:n}),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;
|
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
import { b as V, $ as X, S as Z, i as J, f as D, c as $, s as ee, d as te, g as _, h as L, D as C, j as d, N as P, n as S, m as p, E, F as j, v as T, w as ie, L as ae, x as se, B as M, o as ne, H as re, k as A, K as oe } from "./CasinoHamburgerMenuNd-CDoFtsHC.js";
|
|
2
|
+
function W(a, e) {
|
|
3
|
+
V(a, e);
|
|
4
|
+
}
|
|
5
|
+
function le(a) {
|
|
6
|
+
X.set(a);
|
|
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(a) {
|
|
51
|
+
te(a, "svelte-141ijwb", "button{font-family:var(--emw--button-typography)}input,select,option{font-family:inherit}.DepositWrapper{background-color:var(--emw-color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px 50px 30px 50px;max-width:100%;height:var(--dynamic-height)}.DepositWrapper.DepositWrapperMobile{padding:20px 15px;max-width:unset;height:var(--dynamic-height)}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.DepositTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.DepositTitleMobile{font-size:var(--emw--size-standard, 16px)}.DepositTitleNone{display:none}.DepositIframeWrapper iframe{border:none;width:100%;height:85vh;border-radius:var(--emw--border-radius-large, 20px)}");
|
|
52
|
+
}
|
|
53
|
+
function de(a) {
|
|
54
|
+
let e, i, r, s, l, m, c, u, y, o, n = (
|
|
55
|
+
/*$_*/
|
|
56
|
+
a[4]("titleDeposit") + ""
|
|
57
|
+
), h, b, v;
|
|
58
|
+
return {
|
|
59
|
+
c() {
|
|
60
|
+
e = _("div"), i = M("svg"), r = M("defs"), s = M("style"), l = C(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), m = M("g"), c = M("g"), u = M("path"), y = L(), o = _("h2"), h = C(n), d(u, "class", "aaa"), d(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), d(u, "transform", "translate(15 15) rotate(180)"), d(c, "transform", "translate(20 158)"), d(m, "transform", "translate(-20 -158)"), d(i, "xmlns", "http://www.w3.org/2000/svg"), d(i, "width", "15"), d(i, "height", "15"), d(i, "viewBox", "0 0 15 15"), d(o, "class", "DepositTitleMobile"), d(e, "class", "MenuReturnButton");
|
|
61
|
+
},
|
|
62
|
+
m(g, k) {
|
|
63
|
+
S(g, e, k), p(e, i), p(i, r), p(r, s), p(s, l), p(i, m), p(m, c), p(c, u), p(e, y), p(e, o), p(o, h), b || (v = ne(
|
|
64
|
+
e,
|
|
65
|
+
"click",
|
|
66
|
+
/*click_handler*/
|
|
67
|
+
a[17]
|
|
68
|
+
), b = !0);
|
|
69
|
+
},
|
|
70
|
+
p(g, k) {
|
|
71
|
+
k & /*$_*/
|
|
72
|
+
16 && n !== (n = /*$_*/
|
|
73
|
+
g[4]("titleDeposit") + "") && E(h, n);
|
|
74
|
+
},
|
|
75
|
+
d(g) {
|
|
76
|
+
g && T(e), b = !1, v();
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function he(a) {
|
|
81
|
+
let e, i, r;
|
|
82
|
+
return {
|
|
83
|
+
c() {
|
|
84
|
+
e = _("div"), i = _("iframe"), A(i.src, r = /*iframeUrl*/
|
|
85
|
+
a[3]) || d(i, "src", r), d(i, "title", "Deposit Iframe"), d(e, "class", "DepositIframeWrapper");
|
|
86
|
+
},
|
|
87
|
+
m(s, l) {
|
|
88
|
+
S(s, e, l), p(e, i);
|
|
89
|
+
},
|
|
90
|
+
p(s, l) {
|
|
91
|
+
l & /*iframeUrl*/
|
|
92
|
+
8 && !A(i.src, r = /*iframeUrl*/
|
|
93
|
+
s[3]) && d(i, "src", r);
|
|
94
|
+
},
|
|
95
|
+
d(s) {
|
|
96
|
+
s && T(e);
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
function pe(a) {
|
|
101
|
+
let e, i = (
|
|
102
|
+
/*$_*/
|
|
103
|
+
a[4]("loading") + ""
|
|
104
|
+
), r;
|
|
105
|
+
return {
|
|
106
|
+
c() {
|
|
107
|
+
e = _("p"), r = C(i);
|
|
108
|
+
},
|
|
109
|
+
m(s, l) {
|
|
110
|
+
S(s, e, l), p(e, r);
|
|
111
|
+
},
|
|
112
|
+
p(s, l) {
|
|
113
|
+
l & /*$_*/
|
|
114
|
+
16 && i !== (i = /*$_*/
|
|
115
|
+
s[4]("loading") + "") && E(r, i);
|
|
116
|
+
},
|
|
117
|
+
d(s) {
|
|
118
|
+
s && T(e);
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
function ue(a) {
|
|
123
|
+
let e, i, r, s = (
|
|
124
|
+
/*$_*/
|
|
125
|
+
a[4]("titleDeposit") + ""
|
|
126
|
+
), l, m, c = (
|
|
127
|
+
/*isMobile*/
|
|
128
|
+
a[5] && de(a)
|
|
129
|
+
);
|
|
130
|
+
function u(n, h) {
|
|
131
|
+
return (
|
|
132
|
+
/*isLoading*/
|
|
133
|
+
n[1] ? pe : he
|
|
134
|
+
);
|
|
135
|
+
}
|
|
136
|
+
let y = u(a), o = y(a);
|
|
137
|
+
return {
|
|
138
|
+
c() {
|
|
139
|
+
e = _("div"), c && c.c(), i = L(), r = _("h2"), l = C(s), m = L(), o.c(), d(r, "class", "DepositTitle " + /*isMobile*/
|
|
140
|
+
(a[5] ? "DepositTitleNone" : "")), d(e, "class", "DepositWrapper " + /*isMobile*/
|
|
141
|
+
(a[5] ? "DepositWrapperMobile" : "")), P(
|
|
142
|
+
e,
|
|
143
|
+
"--dynamic-height",
|
|
144
|
+
/*dynamicHeight*/
|
|
145
|
+
a[2]
|
|
146
|
+
);
|
|
147
|
+
},
|
|
148
|
+
m(n, h) {
|
|
149
|
+
S(n, e, h), c && c.m(e, null), p(e, i), p(e, r), p(r, l), p(e, m), o.m(e, null), a[18](e);
|
|
150
|
+
},
|
|
151
|
+
p(n, [h]) {
|
|
152
|
+
/*isMobile*/
|
|
153
|
+
n[5] && c.p(n, h), h & /*$_*/
|
|
154
|
+
16 && s !== (s = /*$_*/
|
|
155
|
+
n[4]("titleDeposit") + "") && E(l, s), y === (y = u(n)) && o ? o.p(n, h) : (o.d(1), o = y(n), o && (o.c(), o.m(e, null))), h & /*dynamicHeight*/
|
|
156
|
+
4 && P(
|
|
157
|
+
e,
|
|
158
|
+
"--dynamic-height",
|
|
159
|
+
/*dynamicHeight*/
|
|
160
|
+
n[2]
|
|
161
|
+
);
|
|
162
|
+
},
|
|
163
|
+
i: j,
|
|
164
|
+
o: j,
|
|
165
|
+
d(n) {
|
|
166
|
+
n && T(e), c && c.d(), o.d(), a[18](null);
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
function ge(a, e, i) {
|
|
171
|
+
let r, s;
|
|
172
|
+
ie(a, oe, (t) => i(4, s = t));
|
|
173
|
+
let { endpoint: l = "" } = e, { session: m = "" } = e, { playerid: c = "" } = e, { lang: u = "en" } = e, { hasdefaultamount: y = "" } = e, { clientstyling: o = "" } = e, { clientstylingurl: n = "" } = e, { translationurl: h = "" } = e, { playercurrency: b = "" } = e, { shortcashierenabled: v = "false" } = e, g, k = window.navigator.userAgent, R = ae(k) !== "PC", B = !0, F, x = 0, H = "";
|
|
174
|
+
const G = () => {
|
|
175
|
+
fetch(h).then((w) => w.json()).then((w) => {
|
|
176
|
+
Object.keys(w).forEach((f) => {
|
|
177
|
+
W(f, w[f]);
|
|
178
|
+
});
|
|
179
|
+
}).catch((w) => {
|
|
180
|
+
console.log(w);
|
|
181
|
+
});
|
|
182
|
+
};
|
|
183
|
+
Object.keys(z).forEach((t) => {
|
|
184
|
+
W(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
|
+
i(7, b = t.data.profileDetails.currency);
|
|
193
|
+
break;
|
|
194
|
+
}
|
|
195
|
+
switch (t.data["MMFE:setQuickDepositHeight"] && i(2, F = t.data["MMFE:setQuickDepositHeight"].toString() + "px"), t.data["MMFE:openFullCashier"] === "true" && (window.postMessage({ type: "GoToDeposit" }, window.location.href), window.postMessage({ type: "CloseShortCashier" }, window.location.href)), t.data.redirect) {
|
|
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(`${l}/v1/player/${c}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);
|
|
223
|
+
if (t.searchParams.append("language", u), r && t.searchParams.append("isShortCashier", v), y)
|
|
224
|
+
switch (b) {
|
|
225
|
+
case "USD":
|
|
226
|
+
x = 0.4;
|
|
227
|
+
break;
|
|
228
|
+
case "CDF":
|
|
229
|
+
x = 1e3;
|
|
230
|
+
break;
|
|
231
|
+
}
|
|
232
|
+
let w = {
|
|
233
|
+
method: "POST",
|
|
234
|
+
headers: {
|
|
235
|
+
"X-SessionId": m,
|
|
236
|
+
currency: b || "EUR",
|
|
237
|
+
amount: x,
|
|
238
|
+
cashierMode: "Default",
|
|
239
|
+
IsShortCashier: v,
|
|
240
|
+
accept: "application/json"
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
fetch(t.href, w).then((f) => f.json()).then(
|
|
244
|
+
(f) => {
|
|
245
|
+
i(1, B = !1), i(3, H = f.CashierUrl);
|
|
246
|
+
},
|
|
247
|
+
(f) => {
|
|
248
|
+
console.error(f);
|
|
249
|
+
}
|
|
250
|
+
);
|
|
251
|
+
}, O = () => {
|
|
252
|
+
le(u);
|
|
253
|
+
}, q = () => {
|
|
254
|
+
let t = document.createElement("style");
|
|
255
|
+
t.innerHTML = o, g.appendChild(t);
|
|
256
|
+
}, Q = () => {
|
|
257
|
+
let t = new URL(n), w = document.createElement("style");
|
|
258
|
+
fetch(t.href).then((f) => f.text()).then((f) => {
|
|
259
|
+
w.innerHTML = f, setTimeout(
|
|
260
|
+
() => {
|
|
261
|
+
g.appendChild(w);
|
|
262
|
+
},
|
|
263
|
+
1
|
|
264
|
+
);
|
|
265
|
+
});
|
|
266
|
+
};
|
|
267
|
+
se(() => (window.addEventListener("message", I, !1), () => {
|
|
268
|
+
window.removeEventListener("message", I);
|
|
269
|
+
}));
|
|
270
|
+
const Y = () => U();
|
|
271
|
+
function K(t) {
|
|
272
|
+
re[t ? "unshift" : "push"](() => {
|
|
273
|
+
g = t, i(0, g);
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
return a.$$set = (t) => {
|
|
277
|
+
"endpoint" in t && i(8, l = t.endpoint), "session" in t && i(9, m = t.session), "playerid" in t && i(10, c = t.playerid), "lang" in t && i(11, u = t.lang), "hasdefaultamount" in t && i(12, y = t.hasdefaultamount), "clientstyling" in t && i(13, o = t.clientstyling), "clientstylingurl" in t && i(14, n = t.clientstylingurl), "translationurl" in t && i(15, h = t.translationurl), "playercurrency" in t && i(7, b = t.playercurrency), "shortcashierenabled" in t && i(16, v = t.shortcashierenabled);
|
|
278
|
+
}, a.$$.update = () => {
|
|
279
|
+
a.$$.dirty & /*lang*/
|
|
280
|
+
2048 && u && O(), a.$$.dirty & /*shortcashierenabled*/
|
|
281
|
+
65536 && (r = v.toLocaleLowerCase() === "true"), a.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
282
|
+
16385 && n && g && Q(), a.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
283
|
+
8193 && o && g && q(), a.$$.dirty & /*translationurl*/
|
|
284
|
+
32768 && h && G(), a.$$.dirty & /*session, playerid, endpoint, playercurrency, lang, shortcashierenabled*/
|
|
285
|
+
69504 && m && c && l && b && u && v && N();
|
|
286
|
+
}, [
|
|
287
|
+
g,
|
|
288
|
+
B,
|
|
289
|
+
F,
|
|
290
|
+
H,
|
|
291
|
+
s,
|
|
292
|
+
R,
|
|
293
|
+
U,
|
|
294
|
+
b,
|
|
295
|
+
l,
|
|
296
|
+
m,
|
|
297
|
+
c,
|
|
298
|
+
u,
|
|
299
|
+
y,
|
|
300
|
+
o,
|
|
301
|
+
n,
|
|
302
|
+
h,
|
|
303
|
+
v,
|
|
304
|
+
Y,
|
|
305
|
+
K
|
|
306
|
+
];
|
|
307
|
+
}
|
|
308
|
+
class me extends Z {
|
|
309
|
+
constructor(e) {
|
|
310
|
+
super(), J(
|
|
311
|
+
this,
|
|
312
|
+
e,
|
|
313
|
+
ge,
|
|
314
|
+
ue,
|
|
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 }), D();
|
|
336
|
+
}
|
|
337
|
+
get session() {
|
|
338
|
+
return this.$$.ctx[9];
|
|
339
|
+
}
|
|
340
|
+
set session(e) {
|
|
341
|
+
this.$$set({ session: e }), D();
|
|
342
|
+
}
|
|
343
|
+
get playerid() {
|
|
344
|
+
return this.$$.ctx[10];
|
|
345
|
+
}
|
|
346
|
+
set playerid(e) {
|
|
347
|
+
this.$$set({ playerid: e }), D();
|
|
348
|
+
}
|
|
349
|
+
get lang() {
|
|
350
|
+
return this.$$.ctx[11];
|
|
351
|
+
}
|
|
352
|
+
set lang(e) {
|
|
353
|
+
this.$$set({ lang: e }), D();
|
|
354
|
+
}
|
|
355
|
+
get hasdefaultamount() {
|
|
356
|
+
return this.$$.ctx[12];
|
|
357
|
+
}
|
|
358
|
+
set hasdefaultamount(e) {
|
|
359
|
+
this.$$set({ hasdefaultamount: e }), D();
|
|
360
|
+
}
|
|
361
|
+
get clientstyling() {
|
|
362
|
+
return this.$$.ctx[13];
|
|
363
|
+
}
|
|
364
|
+
set clientstyling(e) {
|
|
365
|
+
this.$$set({ clientstyling: e }), D();
|
|
366
|
+
}
|
|
367
|
+
get clientstylingurl() {
|
|
368
|
+
return this.$$.ctx[14];
|
|
369
|
+
}
|
|
370
|
+
set clientstylingurl(e) {
|
|
371
|
+
this.$$set({ clientstylingurl: e }), D();
|
|
372
|
+
}
|
|
373
|
+
get translationurl() {
|
|
374
|
+
return this.$$.ctx[15];
|
|
375
|
+
}
|
|
376
|
+
set translationurl(e) {
|
|
377
|
+
this.$$set({ translationurl: e }), D();
|
|
378
|
+
}
|
|
379
|
+
get playercurrency() {
|
|
380
|
+
return this.$$.ctx[7];
|
|
381
|
+
}
|
|
382
|
+
set playercurrency(e) {
|
|
383
|
+
this.$$set({ playercurrency: e }), D();
|
|
384
|
+
}
|
|
385
|
+
get shortcashierenabled() {
|
|
386
|
+
return this.$$.ctx[16];
|
|
387
|
+
}
|
|
388
|
+
set shortcashierenabled(e) {
|
|
389
|
+
this.$$set({ shortcashierenabled: e }), D();
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
$(me, { endpoint: {}, session: {}, playerid: {}, lang: {}, hasdefaultamount: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {}, shortcashierenabled: {} }, [], [], !0);
|
|
393
|
+
export {
|
|
394
|
+
me as default
|
|
395
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHamburgerMenuNd-BIyrZ5q3.cjs");function x(n,t){e.addMessages(n,t)}function j(n){e.$locale.set(n)}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 A(n){e.append_styles(n,"svelte-141ijwb","button{font-family:var(--emw--button-typography)}input,select,option{font-family:inherit}.DepositWrapper{background-color:var(--emw-color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px 50px 30px 50px;max-width:100%;height:var(--dynamic-height)}.DepositWrapper.DepositWrapperMobile{padding:20px 15px;max-width:unset;height:var(--dynamic-height)}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.DepositTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.DepositTitleMobile{font-size:var(--emw--size-standard, 16px)}.DepositTitleNone{display:none}.DepositIframeWrapper iframe{border:none;width:100%;height:85vh;border-radius:var(--emw--border-radius-large, 20px)}")}function W(n){let t,a,l,r,c,m,d,h,f,o,s=n[4]("titleDeposit")+"",p,w,b;return{c(){t=e.element("div"),a=e.svg_element("svg"),l=e.svg_element("defs"),r=e.svg_element("style"),c=e.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),m=e.svg_element("g"),d=e.svg_element("g"),h=e.svg_element("path"),f=e.space(),o=e.element("h2"),p=e.text(s),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(m,"transform","translate(-20 -158)"),e.attr(a,"xmlns","http://www.w3.org/2000/svg"),e.attr(a,"width","15"),e.attr(a,"height","15"),e.attr(a,"viewBox","0 0 15 15"),e.attr(o,"class","DepositTitleMobile"),e.attr(t,"class","MenuReturnButton")},m(u,D){e.insert(u,t,D),e.append(t,a),e.append(a,l),e.append(l,r),e.append(r,c),e.append(a,m),e.append(m,d),e.append(d,h),e.append(t,f),e.append(t,o),e.append(o,p),w||(b=e.listen(t,"click",n[17]),w=!0)},p(u,D){D&16&&s!==(s=u[4]("titleDeposit")+"")&&e.set_data(p,s)},d(u){u&&e.detach(t),w=!1,b()}}}function z(n){let t,a,l;return{c(){t=e.element("div"),a=e.element("iframe"),e.src_url_equal(a.src,l=n[3])||e.attr(a,"src",l),e.attr(a,"title","Deposit Iframe"),e.attr(t,"class","DepositIframeWrapper")},m(r,c){e.insert(r,t,c),e.append(t,a)},p(r,c){c&8&&!e.src_url_equal(a.src,l=r[3])&&e.attr(a,"src",l)},d(r){r&&e.detach(t)}}}function G(n){let t,a=n[4]("loading")+"",l;return{c(){t=e.element("p"),l=e.text(a)},m(r,c){e.insert(r,t,c),e.append(t,l)},p(r,c){c&16&&a!==(a=r[4]("loading")+"")&&e.set_data(l,a)},d(r){r&&e.detach(t)}}}function N(n){let t,a,l,r=n[4]("titleDeposit")+"",c,m,d=n[5]&&W(n);function h(s,p){return s[1]?G:z}let f=h(n),o=f(n);return{c(){t=e.element("div"),d&&d.c(),a=e.space(),l=e.element("h2"),c=e.text(r),m=e.space(),o.c(),e.attr(l,"class","DepositTitle "+(n[5]?"DepositTitleNone":"")),e.attr(t,"class","DepositWrapper "+(n[5]?"DepositWrapperMobile":"")),e.set_style(t,"--dynamic-height",n[2])},m(s,p){e.insert(s,t,p),d&&d.m(t,null),e.append(t,a),e.append(t,l),e.append(l,c),e.append(t,m),o.m(t,null),n[18](t)},p(s,[p]){s[5]&&d.p(s,p),p&16&&r!==(r=s[4]("titleDeposit")+"")&&e.set_data(c,r),f===(f=h(s))&&o?o.p(s,p):(o.d(1),o=f(s),o&&(o.c(),o.m(t,null))),p&4&&e.set_style(t,"--dynamic-height",s[2])},i:e.noop,o:e.noop,d(s){s&&e.detach(t),d&&d.d(),o.d(),n[18](null)}}}function q(n,t,a){let l,r;e.component_subscribe(n,e.$format,i=>a(4,r=i));let{endpoint:c=""}=t,{session:m=""}=t,{playerid:d=""}=t,{lang:h="en"}=t,{hasdefaultamount:f=""}=t,{clientstyling:o=""}=t,{clientstylingurl:s=""}=t,{translationurl:p=""}=t,{playercurrency:w=""}=t,{shortcashierenabled:b="false"}=t,u,D=window.navigator.userAgent,v=e.getDevice(D)!=="PC",M=!0,C,_=0,k="";const R=()=>{fetch(p).then(y=>y.json()).then(y=>{Object.keys(y).forEach(g=>{x(g,y[g])})}).catch(y=>{console.log(y)})};Object.keys(L).forEach(i=>{x(i,L[i])});const S=()=>{window.postMessage({type:"GoToPreviousRoute",isMobile:v},window.location.href)},T=i=>{if(i.data){switch(i.data.type){case"ProfileDetailsData":a(7,w=i.data.profileDetails.currency);break}switch(i.data["MMFE:setQuickDepositHeight"]&&a(2,C=i.data["MMFE:setQuickDepositHeight"].toString()+"px"),i.data["MMFE:openFullCashier"]==="true"&&(window.postMessage({type:"GoToDeposit"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href)),i.data.redirect){case"mm-hc-casino":window.postMessage({type:"GoToCasino"},window.location.href);break;case"mm-hc-sports":window.postMessage({type:"GoToSports"},window.location.href);break;case"mm-hc-contact":window.postMessage({type:"GoToCustomerSupport"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href);break;case"mm-hc-back-to-merchant":window.postMessage({type:"GoToHomepage"},window.location.href);break;case"mm-wm-hc-init-deposit":window.postMessage({type:"RedirectWithdrawDepositCloseModal"},window.location.href);break;case"mm-wm-hc-init-deposit-quick":window.postMessage({type:"CloseShortCashier"},window.location.href);break}}},B=()=>{let i=new URL(`${c}/v1/player/${d}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);if(i.searchParams.append("language",h),l&&i.searchParams.append("isShortCashier",b),f)switch(w){case"USD":_=.4;break;case"CDF":_=1e3;break}let y={method:"POST",headers:{"X-SessionId":m,currency:w||"EUR",amount:_,cashierMode:"Default",IsShortCashier:b,accept:"application/json"}};fetch(i.href,y).then(g=>g.json()).then(g=>{a(1,M=!1),a(3,k=g.CashierUrl)},g=>{console.error(g)})},H=()=>{j(h)},P=()=>{let i=document.createElement("style");i.innerHTML=o,u.appendChild(i)},U=()=>{let i=new URL(s),y=document.createElement("style");fetch(i.href).then(g=>g.text()).then(g=>{y.innerHTML=g,setTimeout(()=>{u.appendChild(y)},1)})};e.onMount(()=>(window.addEventListener("message",T,!1),()=>{window.removeEventListener("message",T)}));const F=()=>S();function I(i){e.binding_callbacks[i?"unshift":"push"](()=>{u=i,a(0,u)})}return n.$$set=i=>{"endpoint"in i&&a(8,c=i.endpoint),"session"in i&&a(9,m=i.session),"playerid"in i&&a(10,d=i.playerid),"lang"in i&&a(11,h=i.lang),"hasdefaultamount"in i&&a(12,f=i.hasdefaultamount),"clientstyling"in i&&a(13,o=i.clientstyling),"clientstylingurl"in i&&a(14,s=i.clientstylingurl),"translationurl"in i&&a(15,p=i.translationurl),"playercurrency"in i&&a(7,w=i.playercurrency),"shortcashierenabled"in i&&a(16,b=i.shortcashierenabled)},n.$$.update=()=>{n.$$.dirty&2048&&h&&H(),n.$$.dirty&65536&&(l=b.toLocaleLowerCase()==="true"),n.$$.dirty&16385&&s&&u&&U(),n.$$.dirty&8193&&o&&u&&P(),n.$$.dirty&32768&&p&&R(),n.$$.dirty&69504&&m&&d&&c&&w&&h&&b&&B()},[u,M,C,k,r,v,S,w,c,m,d,h,f,o,s,p,b,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},A)}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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoHeaderControllerNd-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoHeaderControllerNd-CLx6q3f6.cjs")).then(({default:t})=>{!customElements.get("casino-header-controller-nd")&&customElements.define("casino-header-controller-nd",t.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CasinoHeaderControllerNd-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoHeaderControllerNd-yjawzjr9.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("casino-header-controller-nd") && customElements.define("casino-header-controller-nd", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/casino-header-controller-nd",
|
|
3
|
-
"version": "1.45.
|
|
3
|
+
"version": "1.45.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "es2015/casino-header-controller-nd.cjs",
|
|
6
6
|
"module": "es2015/casino-header-controller-nd.js",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"./es2015/casino-header-controller-nd.cjs": "./es2015/casino-header-controller-nd.cjs"
|
|
13
13
|
},
|
|
14
|
-
|
|
14
|
+
"files": [
|
|
15
15
|
"es2015/",
|
|
16
16
|
"components"
|
|
17
17
|
],
|