@everymatrix/casino-header-controller 1.45.0 → 1.45.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,13 @@
1
+ "use strict";var at=Object.defineProperty,rt=Object.defineProperties;var ot=Object.getOwnPropertyDescriptors;var je=Object.getOwnPropertySymbols;var it=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable;var ze=(r,e,a)=>e in r?at(r,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[e]=a,Ue=(r,e)=>{for(var a in e||(e={}))it.call(e,a)&&ze(r,a,e[a]);if(je)for(var a of je(e))st.call(e,a)&&ze(r,a,e[a]);return r},Pe=(r,e)=>rt(r,ot(e));var Ge=(r,e,a)=>new Promise((i,d)=>{var u=b=>{try{f(a.next(b))}catch(y){d(y)}},w=b=>{try{f(a.throw(b))}catch(y){d(y)}},f=b=>b.done?i(b.value):Promise.resolve(b.value).then(u,w);f((a=a.apply(r,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoHamburgerMenu-Bf5T77Ny.cjs");function Xe(r,e){t.addMessages(r,e)}function lt(r){t.$locale.set(r)}const qe={en:{Title:"Your Balance",Total:"Total Balance",Real:"Cash Balance",Bonus:"Bonus Balance",Credit:"Credit Balance",Casino:"Casino",Sports:"Sports",DepositButton:"Deposit"},"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 Ne={exports:{}};/** @license
2
+ * eventsource.js
3
+ * Available under MIT License (MIT)
4
+ * https://github.com/Yaffle/EventSource/
5
+ */(function(r,e){(function(a){var i=a.setTimeout,d=a.clearTimeout,u=a.XMLHttpRequest,w=a.XDomainRequest,f=a.ActiveXObject,b=a.EventSource,y=a.document,D=a.Promise,N=a.fetch,L=a.Response,V=a.TextDecoder,B=a.TextEncoder,x=a.AbortController;if(typeof window!="undefined"&&typeof y!="undefined"&&!("readyState"in y)&&y.body==null&&(y.readyState="loading",window.addEventListener("load",function(n){y.readyState="complete"},!1)),u==null&&f!=null&&(u=function(){return new f("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(n){function c(){}return c.prototype=n,new c}),Date.now||(Date.now=function(){return new Date().getTime()}),x==null){var g=N;N=function(n,c){var l=c.signal;return g(n,{headers:c.headers,credentials:c.credentials,cache:c.cache}).then(function(s){var h=s.body.getReader();return l._reader=h,l._aborted&&l._reader.cancel(),{status:s.status,statusText:s.statusText,headers:s.headers,body:{getReader:function(){return h}}}})},x=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function k(){this.bitsNeeded=0,this.codePoint=0}k.prototype.decode=function(n){function c(A,O,v){if(v===1)return A>=128>>O&&A<<O<=2047;if(v===2)return A>=2048>>O&&A<<O<=55295||A>=57344>>O&&A<<O<=65535;if(v===3)return A>=65536>>O&&A<<O<=1114111;throw new Error}function l(A,O){if(A===6*1)return O>>6>15?3:O>31?2:1;if(A===6*2)return O>15?3:2;if(A===6*3)return 3;throw new Error}for(var s=65533,h="",p=this.bitsNeeded,T=this.codePoint,H=0;H<n.length;H+=1){var _=n[H];p!==0&&(_<128||_>191||!c(T<<6|_&63,p-6,l(p,T)))&&(p=0,T=s,h+=String.fromCharCode(T)),p===0?(_>=0&&_<=127?(p=0,T=_):_>=192&&_<=223?(p=6*1,T=_&31):_>=224&&_<=239?(p=6*2,T=_&15):_>=240&&_<=247?(p=6*3,T=_&7):(p=0,T=s),p!==0&&!c(T,p,l(p,T))&&(p=0,T=s)):(p-=6,T=T<<6|_&63),p===0&&(T<=65535?h+=String.fromCharCode(T):(h+=String.fromCharCode(55296+(T-65535-1>>10)),h+=String.fromCharCode(56320+(T-65535-1&1023))))}return this.bitsNeeded=p,this.codePoint=T,h};var Z=function(){try{return new V().decode(new B().encode("test"),{stream:!0})==="test"}catch(n){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+n)}return!1};(V==null||B==null||!Z())&&(V=k);var C=function(){};function E(n){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=C,this.onload=C,this.onerror=C,this.onreadystatechange=C,this._contentType="",this._xhr=n,this._sendTimeout=0,this._abort=C}E.prototype.open=function(n,c){this._abort(!0);var l=this,s=this._xhr,h=1,p=0;this._abort=function(v){l._sendTimeout!==0&&(d(l._sendTimeout),l._sendTimeout=0),(h===1||h===2||h===3)&&(h=4,s.onload=C,s.onerror=C,s.onabort=C,s.onprogress=C,s.onreadystatechange=C,s.abort(),p!==0&&(d(p),p=0),v||(l.readyState=4,l.onabort(null),l.onreadystatechange())),h=0};var T=function(){if(h===1){var v=0,j="",oe=void 0;if("contentType"in s)v=200,j="OK",oe=s.contentType;else try{v=s.status,j=s.statusText,oe=s.getResponseHeader("Content-Type")}catch(Ce){v=0,j="",oe=void 0}v!==0&&(h=2,l.readyState=2,l.status=v,l.statusText=j,l._contentType=oe,l.onreadystatechange())}},H=function(){if(T(),h===2||h===3){h=3;var v="";try{v=s.responseText}catch(j){}l.readyState=3,l.responseText=v,l.onprogress()}},_=function(v,j){if((j==null||j.preventDefault==null)&&(j={preventDefault:C}),H(),h===1||h===2||h===3){if(h=4,p!==0&&(d(p),p=0),l.readyState=4,v==="load")l.onload(j);else if(v==="error")l.onerror(j);else if(v==="abort")l.onabort(j);else throw new TypeError;l.onreadystatechange()}},A=function(v){s!=null&&(s.readyState===4?(!("onload"in s)||!("onerror"in s)||!("onabort"in s))&&_(s.responseText===""?"error":"load",v):s.readyState===3?"onprogress"in s||H():s.readyState===2&&T())},O=function(){p=i(function(){O()},500),s.readyState===3&&H()};"onload"in s&&(s.onload=function(v){_("load",v)}),"onerror"in s&&(s.onerror=function(v){_("error",v)}),"onabort"in s&&(s.onabort=function(v){_("abort",v)}),"onprogress"in s&&(s.onprogress=H),"onreadystatechange"in s&&(s.onreadystatechange=function(v){A(v)}),("contentType"in s||!("ontimeout"in u.prototype))&&(c+=(c.indexOf("?")===-1?"?":"&")+"padding=true"),s.open(n,c,!0),"readyState"in s&&(p=i(function(){O()},0))},E.prototype.abort=function(){this._abort(!1)},E.prototype.getResponseHeader=function(n){return this._contentType},E.prototype.setRequestHeader=function(n,c){var l=this._xhr;"setRequestHeader"in l&&l.setRequestHeader(n,c)},E.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},E.prototype.send=function(){if((!("ontimeout"in u.prototype)||!("sendAsBinary"in u.prototype)&&!("mozAnon"in u.prototype))&&y!=null&&y.readyState!=null&&y.readyState!=="complete"){var n=this;n._sendTimeout=i(function(){n._sendTimeout=0,n.send()},4);return}var c=this._xhr;"withCredentials"in c&&(c.withCredentials=this.withCredentials);try{c.send(void 0)}catch(l){throw l}};function U(n){return n.replace(/[A-Z]/g,function(c){return String.fromCharCode(c.charCodeAt(0)+32)})}function F(n){for(var c=Object.create(null),l=n.split(`\r
6
+ `),s=0;s<l.length;s+=1){var h=l[s],p=h.split(": "),T=p.shift(),H=p.join(": ");c[U(T)]=H}this._map=c}F.prototype.get=function(n){return this._map[U(n)]},u!=null&&u.HEADERS_RECEIVED==null&&(u.HEADERS_RECEIVED=2);function te(){}te.prototype.open=function(n,c,l,s,h,p,T){n.open("GET",h);var H=0;n.onprogress=function(){var A=n.responseText,O=A.slice(H);H+=O.length,l(O)},n.onerror=function(A){A.preventDefault(),s(new Error("NetworkError"))},n.onload=function(){s(null)},n.onabort=function(){s(null)},n.onreadystatechange=function(){if(n.readyState===u.HEADERS_RECEIVED){var A=n.status,O=n.statusText,v=n.getResponseHeader("Content-Type"),j=n.getAllResponseHeaders();c(A,O,v,new F(j))}},n.withCredentials=p;for(var _ in T)Object.prototype.hasOwnProperty.call(T,_)&&n.setRequestHeader(_,T[_]);return n.send(),n};function ne(n){this._headers=n}ne.prototype.get=function(n){return this._headers.get(n)};function m(){}m.prototype.open=function(n,c,l,s,h,p,T){var H=null,_=new x,A=_.signal,O=new V;return N(h,{headers:T,credentials:p?"include":"same-origin",signal:A,cache:"no-store"}).then(function(v){return H=v.body.getReader(),c(v.status,v.statusText,v.headers.get("Content-Type"),new ne(v.headers)),new D(function(j,oe){var Ce=function(){H.read().then(function(W){if(W.done)j(void 0);else{var X=O.decode(W.value,{stream:!0});l(X),Ce()}}).catch(function(W){oe(W)})};Ce()})}).catch(function(v){if(v.name!=="AbortError")return v}).then(function(v){s(v)}),{abort:function(){H!=null&&H.cancel(),_.abort()}}};function ae(){this._listeners=Object.create(null)}function Ee(n){i(function(){throw n},0)}ae.prototype.dispatchEvent=function(n){n.target=this;var c=this._listeners[n.type];if(c!=null)for(var l=c.length,s=0;s<l;s+=1){var h=c[s];try{typeof h.handleEvent=="function"?h.handleEvent(n):h.call(this,n)}catch(p){Ee(p)}}},ae.prototype.addEventListener=function(n,c){n=String(n);var l=this._listeners,s=l[n];s==null&&(s=[],l[n]=s);for(var h=!1,p=0;p<s.length;p+=1)s[p]===c&&(h=!0);h||s.push(c)},ae.prototype.removeEventListener=function(n,c){n=String(n);var l=this._listeners,s=l[n];if(s!=null){for(var h=[],p=0;p<s.length;p+=1)s[p]!==c&&h.push(s[p]);h.length===0?delete l[n]:l[n]=h}};function ce(n){this.type=n,this.target=void 0}function ye(n,c){ce.call(this,n),this.data=c.data,this.lastEventId=c.lastEventId}ye.prototype=Object.create(ce.prototype);function ge(n,c){ce.call(this,n),this.status=c.status,this.statusText=c.statusText,this.headers=c.headers}ge.prototype=Object.create(ce.prototype);function Re(n,c){ce.call(this,n),this.error=c.error}Re.prototype=Object.create(ce.prototype);var we=-1,Y=0,de=1,fe=2,he=-1,re=0,be=1,Te=2,Me=3,Fe=/^text\/event\-stream(;.*)?$/i,Oe=1e3,Le=18e6,Be=function(n,c){var l=n==null?c:parseInt(n,10);return l!==l&&(l=c),Se(l)},Se=function(n){return Math.min(Math.max(n,Oe),Le)},ue=function(n,c,l){try{typeof c=="function"&&c.call(n,l)}catch(s){Ee(s)}};function o(n,c){ae.call(this),c=c||{},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,M(this,n,c)}function S(){return u!=null&&"withCredentials"in u.prototype||w==null?new u:new w}var R=N!=null&&L!=null&&"body"in L.prototype;function M(n,c,l){c=String(c);var s=!!l.withCredentials,h=l.lastEventIdQueryParameterName||"lastEventId",p=Se(1e3),T=Be(l.heartbeatTimeout,45e3),H="",_=p,A=!1,O=0,v=l.headers||{},j=l.Transport,oe=R&&j==null?void 0:new E(j!=null?new j:S()),Ce=j!=null&&typeof j!="string"?new j:oe==null?new m:new te,W=void 0,X=0,$=we,me="",xe="",ie="",Ae="",q=re,ke=0,pe=0,tt=function(P,z,J,Q){if($===Y)if(P===200&&J!=null&&Fe.test(J)){$=de,A=Date.now(),_=p,n.readyState=de;var K=new ge("open",{status:P,statusText:z,headers:Q});n.dispatchEvent(K),ue(n,n.onopen,K)}else{var G="";P!==200?(z&&(z=z.replace(/\s+/g," ")),G="EventSource's response has a status "+P+" "+z+" that is not 200. Aborting the connection."):G="EventSource's response has a Content-Type specifying an unsupported type: "+(J==null?"-":J.replace(/\s+/g," "))+". Aborting the connection.",Ie();var K=new ge("error",{status:P,statusText:z,headers:Q});n.dispatchEvent(K),ue(n,n.onerror,K),console.error(G)}},nt=function(P){if($===de){for(var z=-1,J=0;J<P.length;J+=1){var Q=P.charCodeAt(J);(Q===10||Q===13)&&(z=J)}var K=(z!==-1?Ae:"")+P.slice(0,z+1);Ae=(z===-1?Ae:"")+P.slice(z+1),P!==""&&(A=Date.now(),O+=P.length);for(var G=0;G<K.length;G+=1){var Q=K.charCodeAt(G);if(q===he&&Q===10)q=re;else if(q===he&&(q=re),Q===13||Q===10){if(q!==re){q===be&&(pe=G+1);var se=K.slice(ke,pe-1),le=K.slice(pe+(pe<G&&K.charCodeAt(pe)===32?1:0),G);se==="data"?(me+=`
7
+ `,me+=le):se==="id"?xe=le:se==="event"?ie=le:se==="retry"?(p=Be(le,p),_=p):se==="heartbeatTimeout"&&(T=Be(le,T),X!==0&&(d(X),X=i(function(){_e()},T)))}if(q===re){if(me!==""){H=xe,ie===""&&(ie="message");var ve=new ye(ie,{data:me.slice(1),lastEventId:xe});if(n.dispatchEvent(ve),ie==="open"?ue(n,n.onopen,ve):ie==="message"?ue(n,n.onmessage,ve):ie==="error"&&ue(n,n.onerror,ve),$===fe)return}me="",ie=""}q=Q===13?he:re}else q===re&&(ke=G,q=be),q===be?Q===58&&(pe=G+1,q=Te):q===Te&&(q=Me)}}},He=function(P){if($===de||$===Y){$=we,X!==0&&(d(X),X=0),X=i(function(){_e()},_),_=Se(Math.min(p*16,_*2)),n.readyState=Y;var z=new Re("error",{error:P});n.dispatchEvent(z),ue(n,n.onerror,z),P!=null&&console.error(P)}},Ie=function(){$=fe,W!=null&&(W.abort(),W=void 0),X!==0&&(d(X),X=0),n.readyState=fe},_e=function(){if(X=0,$!==we){if(!A&&W!=null)He(new Error("No activity within "+T+" milliseconds. "+($===Y?"No response received.":O+" chars received.")+" Reconnecting.")),W!=null&&(W.abort(),W=void 0);else{var P=Math.max((A||Date.now())+T-Date.now(),1);A=!1,X=i(function(){_e()},P)}return}A=!1,O=0,X=i(function(){_e()},T),$=Y,me="",ie="",xe=H,Ae="",ke=0,pe=0,q=re;var z=c;if(c.slice(0,5)!=="data:"&&c.slice(0,5)!=="blob:"&&H!==""){var J=c.indexOf("?");z=J===-1?c:c.slice(0,J+1)+c.slice(J+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(le,ve){return ve===h?"":le}),z+=(c.indexOf("?")===-1?"?":"&")+h+"="+encodeURIComponent(H)}var Q=n.withCredentials,K={};K.Accept="text/event-stream";var G=n.headers;if(G!=null)for(var se in G)Object.prototype.hasOwnProperty.call(G,se)&&(K[se]=G[se]);try{W=Ce.open(oe,tt,nt,He,z,Q,K)}catch(le){throw Ie(),le}};n.url=c,n.readyState=Y,n.withCredentials=s,n.headers=v,n._close=Ie,_e()}o.prototype=Object.create(ae.prototype),o.prototype.CONNECTING=Y,o.prototype.OPEN=de,o.prototype.CLOSED=fe,o.prototype.close=function(){this._close()},o.CONNECTING=Y,o.OPEN=de,o.CLOSED=fe,o.prototype.withCredentials=void 0;var I=b;u!=null&&(b==null||!("withCredentials"in b.prototype))&&(I=o),function(n){{var c=n(e);c!==void 0&&(r.exports=c)}}(function(n){n.EventSourcePolyfill=o,n.NativeEventSource=b,n.EventSource=I})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:t.commonjsGlobal:globalThis)})(Ne,Ne.exports);var ct=Ne.exports;/*!
8
+ * currency.js - v2.0.4
9
+ * http://scurker.github.io/currency.js
10
+ *
11
+ * Copyright (c) 2021 Jason Wilson
12
+ * Released under MIT license
13
+ */var dt={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:ht,fromCents:!1},$e=function(e){return Math.round(e)},Ve=function(e){return Math.pow(10,e)},ut=function(e,a){return $e(e/a)*a},ft=/(\d)(?=(\d{3})+\b)/g,pt=/(\d)(?=(\d\d)+\d\b)/g;function ee(r,e){var a=this;if(!(a instanceof ee))return new ee(r,e);var i=Object.assign({},dt,e),d=Ve(i.precision),u=De(r,i);a.intValue=u,a.value=u/d,i.increment=i.increment||1/d,i.useVedic?i.groups=pt:i.groups=ft,this.s=i,this.p=d}function De(r,e){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=0,d=e.decimal,u=e.errorOnInvalid,w=e.precision,f=e.fromCents,b=Ve(w),y=typeof r=="number",D=r instanceof ee;if(D&&f)return r.intValue;if(y||D)i=D?r.value:r;else if(typeof r=="string"){var N=new RegExp("[^-\\d"+d+"]","g"),L=new RegExp("\\"+d,"g");i=r.replace(/\((.*)\)/,"-$1").replace(N,"").replace(L,"."),i=i||0}else{if(u)throw Error("Invalid Input");i=0}return f||(i*=b,i=i.toFixed(4)),a?$e(i):i}function ht(r,e){var a=e.pattern,i=e.negativePattern,d=e.symbol,u=e.separator,w=e.decimal,f=e.groups,b=(""+r).replace(/^-/,"").split("."),y=b[0],D=b[1];return(r.value>=0?a:i).replace("!",d).replace("#",y.replace(f,"$1"+u)+(D?w+D:""))}ee.prototype={add:function(e){var a=this.intValue,i=this.s,d=this.p;return ee((a+=De(e,i))/(i.fromCents?1:d),i)},subtract:function(e){var a=this.intValue,i=this.s,d=this.p;return ee((a-=De(e,i))/(i.fromCents?1:d),i)},multiply:function(e){var a=this.intValue,i=this.s;return ee((a*=e)/(i.fromCents?1:Ve(i.precision)),i)},divide:function(e){var a=this.intValue,i=this.s;return ee(a/=De(e,i,!1),i)},distribute:function(e){for(var a=this.intValue,i=this.p,d=this.s,u=[],w=Math[a>=0?"floor":"ceil"](a/e),f=Math.abs(a-w*e),b=d.fromCents?1:i;e!==0;e--){var y=ee(w/b,d);f-- >0&&(y=y[a>=0?"add":"subtract"](1/b)),u.push(y)}return u},dollars:function(){return~~this.value},cents:function(){var e=this.intValue,a=this.p;return~~(e%a)},format:function(e){var a=this.s;return typeof e=="function"?e(this,a):a.format(this,Object.assign({},a,e))},toString:function(){var e=this.intValue,a=this.p,i=this.s;return ut(e/a,i.increment).toFixed(i.precision)},toJSON:function(){return this.value}};function mt(r){t.append_styles(r,"svelte-139zio6",'*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}.ShowBalance{position:relative}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px}.ShowBalance .BalanceValue span{padding-left:8px}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background-color:var(--emfe-w-color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-60%);padding:10px;box-shadow:0px 30px 30px var(--emfe-w-header-color-primary, var(--emfe-w-color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:"";background:var(--emfe-w-color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:60%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer}.BalanceModalClose:before{content:"";background:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emfe-w-header-contrast, var(--emfe-w-color-contrast, #07072A))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emfe-w-color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emfe-w-header-contrast, var(--emfe-w-color-contrast, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emfe-w-header-contrast, var(--emfe-w-color-contrast, #07072A))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emfe-w-header-color-primary, var(--emfe-w-color-primary, #D0046C));font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover,.BalanceModalFooter .BalanceModalActionactive{background:var(--emfe-w-header-contrast, var(--emfe-w-color-background, #07072A))}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}')}function Ke(r,e,a){const i=r.slice();return i[44]=e[a],i}function We(r,e,a){const i=r.slice();return i[47]=e[a],i}function Je(r){let e,a,i,d,u,w,f=r[4]("Title")+"",b,y,D,N,L,V,B=r[4]("DepositButton")+"",x,g,k,Z=t.ensure_array_like(Object.keys(r[3])),C=[];for(let E=0;E<Z.length;E+=1)C[E]=Ye(Ke(r,Z,E));return{c(){e=t.element("div"),a=t.element("div"),i=t.space(),d=t.element("div"),u=t.element("div"),w=t.element("p"),b=t.text(f),y=t.space(),D=t.element("div");for(let E=0;E<C.length;E+=1)C[E].c();N=t.space(),L=t.element("div"),V=t.element("button"),x=t.text(B),t.attr(a,"class","BalanceModalClose"),t.attr(w,"class","BalanceModalTitle"),t.attr(u,"class","BalanceModalHeader"),t.attr(D,"class","BalanceModalBody"),t.attr(V,"class","BalanceModalAction"),t.attr(L,"class","BalanceModalFooter"),t.attr(d,"class","BalanceModal"),t.attr(e,"class","BalanceModalWrapper")},m(E,U){t.insert(E,e,U),t.append(e,a),t.append(e,i),t.append(e,d),t.append(d,u),t.append(u,w),t.append(w,b),t.append(d,y),t.append(d,D);for(let F=0;F<C.length;F+=1)C[F]&&C[F].m(D,null);t.append(d,N),t.append(d,L),t.append(L,V),t.append(V,x),g||(k=[t.listen(a,"click",r[22]),t.listen(V,"click",r[23])],g=!0)},p(E,U){if(U[0]&16&&f!==(f=E[4]("Title")+"")&&t.set_data(b,f),U[0]&60){Z=t.ensure_array_like(Object.keys(E[3]));let F;for(F=0;F<Z.length;F+=1){const te=Ke(E,Z,F);C[F]?C[F].p(te,U):(C[F]=Ye(te),C[F].c(),C[F].m(D,null))}for(;F<C.length;F+=1)C[F].d(1);C.length=Z.length}U[0]&16&&B!==(B=E[4]("DepositButton")+"")&&t.set_data(x,B)},d(E){E&&t.detach(e),t.destroy_each(C,E),g=!1,t.run_all(k)}}}function Qe(r){let e,a,i=r[4](r[44])+"",d,u,w=(r[47].productType?r[4](r[47].productType):"")+"",f,b,y,D,N=(r[47].amount?r[5](r[47].amount):"0")+"",L,V,B,x;return{c(){e=t.element("div"),a=t.element("p"),d=t.text(i),u=t.space(),f=t.text(w),b=t.space(),y=t.element("p"),D=t.element("span"),L=t.text(N),V=t.space(),B=t.element("span"),x=t.text(r[2]),t.attr(a,"class","BalanceModalText"),t.attr(D,"class","BalanceModalAmount"),t.attr(B,"class","BalanceModalCurrency"),t.attr(y,"class","BalanceModalValue"),t.attr(e,"class","BalanceModalRowLine")},m(g,k){t.insert(g,e,k),t.append(e,a),t.append(a,d),t.append(a,u),t.append(a,f),t.append(e,b),t.append(e,y),t.append(y,D),t.append(D,L),t.append(y,V),t.append(y,B),t.append(B,x)},p(g,k){k[0]&24&&i!==(i=g[4](g[44])+"")&&t.set_data(d,i),k[0]&24&&w!==(w=(g[47].productType?g[4](g[47].productType):"")+"")&&t.set_data(f,w),k[0]&8&&N!==(N=(g[47].amount?g[5](g[47].amount):"0")+"")&&t.set_data(L,N),k[0]&4&&t.set_data(x,g[2])},d(g){g&&t.detach(e)}}}function Ye(r){let e,a,i=t.ensure_array_like(r[3][r[44]]),d=[];for(let u=0;u<i.length;u+=1)d[u]=Qe(We(r,i,u));return{c(){e=t.element("div");for(let u=0;u<d.length;u+=1)d[u].c();a=t.space(),t.attr(e,"class","BalanceModalRowBoth")},m(u,w){t.insert(u,e,w);for(let f=0;f<d.length;f+=1)d[f]&&d[f].m(e,null);t.append(e,a)},p(u,w){if(w[0]&60){i=t.ensure_array_like(u[3][u[44]]);let f;for(f=0;f<i.length;f+=1){const b=We(u,i,f);d[f]?d[f].p(b,w):(d[f]=Qe(b),d[f].c(),d[f].m(e,a))}for(;f<d.length;f+=1)d[f].d(1);d.length=i.length}},d(u){u&&t.detach(e),t.destroy_each(d,u)}}}function Ze(r){let e,a,i;return{c(){e=t.element("div"),t.attr(e,"class","ShowBalanceModalOverlay")},m(d,u){t.insert(d,e,u),a||(i=t.listen(e,"click",r[24]),a=!0)},p:t.noop,d(d){d&&t.detach(e),a=!1,i()}}}function vt(r){let e,a,i,d=(r[3].Total?r[5](r[3].Total[0].amount):"0")+"",u,w,f,b,y,D,N,L,V,B=r[1]&&Je(r),x=r[1]&&Ze(r);return{c(){e=t.element("div"),a=t.element("div"),i=t.element("p"),u=t.text(d),w=t.space(),f=t.text(r[2]),b=t.space(),y=t.element("span"),y.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emfe-w-color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>',D=t.space(),B&&B.c(),N=t.space(),x&&x.c(),t.attr(i,"class","BalanceValue"),t.attr(i,"part","BalanceValue"),t.attr(a,"class","ShowBalance"),t.attr(a,"part","ShowBalance")},m(g,k){t.insert(g,e,k),t.append(e,a),t.append(a,i),t.append(i,u),t.append(i,w),t.append(i,f),t.append(i,b),t.append(i,y),t.append(a,D),B&&B.m(a,null),t.append(e,N),x&&x.m(e,null),r[25](e),L||(V=t.listen(i,"click",r[21]),L=!0)},p(g,k){k[0]&8&&d!==(d=(g[3].Total?g[5](g[3].Total[0].amount):"0")+"")&&t.set_data(u,d),k[0]&4&&t.set_data(f,g[2]),g[1]?B?B.p(g,k):(B=Je(g),B.c(),B.m(a,null)):B&&(B.d(1),B=null),g[1]?x?x.p(g,k):(x=Ze(g),x.c(),x.m(e,null)):x&&(x.d(1),x=null)},i:t.noop,o:t.noop,d(g){g&&t.detach(e),B&&B.d(),x&&x.d(),r[25](null),L=!1,V()}}}function yt(r,e,a){let i;t.component_subscribe(r,t.$format,o=>a(4,i=o));let{userid:d=""}=e,{session:u=""}=e,{endpoint:w=""}=e,{lang:f="en"}=e,{clientstyling:b=""}=e,{clientstylingurl:y=""}=e,{translationurl:D=""}=e,{customlocaleidentifier:N=""}=e,{gmversion:L="gmcore"}=e,{displaybalanceoption:V="All"}=e,{totalcalculationmode:B=""}=e,{currencyseparator:x=""}=e,{currencydecimal:g=""}=e,{currencyprecision:k=""}=e,Z,C,E,U=!1,F=!1,te="",ne=[];const m={},ae=["totalAmount","totalCashAmount","totalRealAmount","totalWithdrawableAmount"],Ee=()=>{fetch(D).then(o=>o.json()).then(o=>Object.keys(o).forEach(S=>Xe(S,o[S]))).catch(o=>console.log(o))};Object.keys(qe).forEach(o=>Xe(o,qe[o]));const ce=()=>{switch(B){case"totalAmount":return(o,S,R)=>R.walletType!=="CreditLine"?o+R.affectedAmount:o;case"totalCashAmount":return(o,S,R)=>R.walletType!=="CreditLine"&&(S==="Bonus"||S==="Real")?o+R.affectedAmount:o;case"totalRealAmount":return(o,S,R)=>R.walletType!=="CreditLine"&&S==="Real"?o+R.affectedAmount:R.walletType==="CreditLine"&&S==="Real"?o-Math.abs(R.affectedAmount):o;case"totalWithdrawableAmount":return(o,S,R)=>R.walletType!=="CreditLine"&&(S==="Real"||S==="RealNegativeRemainder")?o+R.affectedAmount:S==="DepositWagering"?o-R.affectedAmount:o}},ye=()=>{if(N.includes(f))return N},ge=o=>N?new Intl.NumberFormat(ye(),{useGrouping:!0}).format(o):x&&g?ee(o,{separator:x,decimal:g,symbol:"",precision:parseInt(k||"2",10)}).format():ee(o,{separator:".",decimal:",",symbol:"",precision:parseInt(k||"2",10)}).format(),Re=()=>Ge(this,null,function*(){var S,R;const o=new URL(`${w}/v1/player/${d}/account`);try{U=!0;const M=yield fetch(o,{method:"GET",headers:{"X-SessionID":u}}),I=yield M.json();if(console.log("data :>> ",I),M.ok)U=!1,ne=I.items,a(2,te=Object.keys(I.totalAmount)[0]),a(3,m.Total=[{amount:I.totalAmount[te]}],m),a(3,m.Real=[{amount:(S=ne.find(n=>n.displayName==="Casino"))==null?void 0:S.balanceAmount}],m),a(3,m.Bonus=[{amount:(R=ne.find(n=>n.displayName==="UBS"))==null?void 0:R.balanceAmount}],m);else throw U=!1,new Error("Failed to fetch balance data !")}catch(M){U=!1,console.log("Balance error: ",M)}finally{U=!1}}),we=()=>{U=!0;const o=new URL(`${w}/v2/player/${d}/balance`),S=new Headers;S.append("X-SessionID",u),fetch(o,{method:"GET",headers:S}).then(M=>M.json()).then(M=>{U=!1;const[I,n]=Object.entries(M[B])[0];if(a(2,te=I),a(3,m.Total=[{amount:n}],m),!M.items[0].productType){const l=Object.values(M.totalBonusAmount)[0];a(3,m.Bonus=[{amount:l}],m);for(const s of M.items)s.type==="Real"&&(s.creditLine&&a(3,m.Credit=[{amount:s.creditLine}],m),m.Real?a(3,m.Real[0].amount+=s.amount,m):a(3,m.Real=[{amount:s.amount}],m));return}let c=M.items;a(3,m.Bonus=[],m),a(3,m.Real=[],m),a(3,m.Credit=[],m),V&&V!=="All"&&(c=M.items.filter(l=>l.productType===V));for(const l of c){if(l.type==="Real"){l.creditLine&&m.Credit.push({amount:l.creditLine,productType:l.productType});const s=m.Real.findIndex(h=>h.productType===l.productType);s>0?a(3,m.Real[s].amount+=l.amount,m):m.Real.push({amount:l.amount,productType:l.productType});continue}if(l.type==="Bonus"){const s=m.Bonus.findIndex(h=>h.productType===l.productType);s>0?a(3,m.Bonus[s].amount+=l.amount,m):m.Bonus.push({amount:l.amount,productType:l.productType})}}}).catch(M=>{throw U=!1,new Error("Failed to fetch balance data !")})},Y=()=>{if(E&&E.close(),u.length<1)return;let o,S;switch(L){case"gm16":o=new URL(`${w}/v2/player/${d}/information/updates`),S=I=>I.data&&I.data.type==="BALANCE_UPDATE_V2"&&fe(I.data.body);break;case"gmcore":o=new URL(`${w}/v1/player/${d}/balance/updates`),S=I=>I.data&&de(I.data.body);break}const R={accept:"text/event-stream","X-SessionId":u},M=new ct.EventSourcePolyfill(o,{headers:R});E=M,M.addEventListener("message",S)},de=o=>{var M,I;let S;try{S=JSON.parse(o)}catch(n){console.log("Balance stream failed: ",n),Y()}let R="0";ne=ne.map(n=>(S.balanceChange&&S.balanceChange[n.id]&&(n=Pe(Ue({},n),{balanceAmount:S.balanceChange[n.id].afterAmount})),R=(parseFloat(n==null?void 0:n.balanceAmount)+parseFloat(R)).toString(),n)),a(3,m.Real=[{amount:(M=ne[0])==null?void 0:M.balanceAmount}],m),a(3,m.Bonus=[{amount:(I=ne[1])==null?void 0:I.balanceAmount}],m),a(3,m.Total=[{amount:Number(R)}],m)},fe=o=>{let S;try{S=JSON.parse(o)}catch(M){console.log("Balance stream failed: ",M),Y()}const R=S.body;for(const[M,I]of Object.entries(R)){for(const n of m[M])!n.productType||I.productType&&I.productType===n.productType&&(n.amount=I.afterAmount);a(3,m.Total[0].amount=Z(m.Total[0].amount,M,I),m)}},he=()=>{a(1,F=!1),window.postMessage({type:"GoToDeposit"},window.location.href),typeof gtag=="function"&&gtag("event","GoToDeposit",{context:"PlayerAccountBalanceModal"})},re=()=>{ae.includes(B)||(console.error(`Unsupported value ('${B}') for totalcalculationmode parameter. Only the following values are supported ${ae}. Using default value ('${ae[2]}').`),a(7,B=ae[2]))},be=()=>{switch(lt(f),re(),Z=ce(),console.log("gmversion :>> ",L),L){case"gmcore":Re();break;case"gm16":we();break;default:throw Error(`Invalid apiversion attribute: ${L}`)}},Te=o=>o.data&&o.data.type==="LogoutSuccessfull"&&E.close(),Me=()=>{const o=document.createElement("style");o.innerHTML=b,C.appendChild(o)},Fe=()=>{const o=new URL(y),S=document.createElement("style");fetch(o.href).then(R=>R.text()).then(R=>{S.innerHTML=R,setTimeout(()=>{C.appendChild(S)},1)})};t.onMount(()=>(window.addEventListener("message",Te,!1),()=>{window.removeEventListener("message",Te),E&&E.close()}));const Oe=()=>a(1,F=!0),Le=()=>a(1,F=!1),Be=()=>he(),Se=()=>a(1,F=!1);function ue(o){t.binding_callbacks[o?"unshift":"push"](()=>{C=o,a(0,C)})}return r.$$set=o=>{"userid"in o&&a(8,d=o.userid),"session"in o&&a(9,u=o.session),"endpoint"in o&&a(10,w=o.endpoint),"lang"in o&&a(11,f=o.lang),"clientstyling"in o&&a(12,b=o.clientstyling),"clientstylingurl"in o&&a(13,y=o.clientstylingurl),"translationurl"in o&&a(14,D=o.translationurl),"customlocaleidentifier"in o&&a(15,N=o.customlocaleidentifier),"gmversion"in o&&a(16,L=o.gmversion),"displaybalanceoption"in o&&a(17,V=o.displaybalanceoption),"totalcalculationmode"in o&&a(7,B=o.totalcalculationmode),"currencyseparator"in o&&a(18,x=o.currencyseparator),"currencydecimal"in o&&a(19,g=o.currencydecimal),"currencyprecision"in o&&a(20,k=o.currencyprecision)},r.$$.update=()=>{r.$$.dirty[0]&2048&&f&&ye(),r.$$.dirty[0]&200448&&w&&d&&u&&f&&L&&V&&be(),r.$$.dirty[0]&1920&&w&&d&&u&&B&&Y(),r.$$.dirty[0]&4097&&b&&C&&Me(),r.$$.dirty[0]&8193&&y&&C&&Fe(),r.$$.dirty[0]&16384&&D&&Ee()},[C,F,te,m,i,ge,he,B,d,u,w,f,b,y,D,N,L,V,x,g,k,Oe,Le,Be,Se,ue]}class et extends t.SvelteComponent{constructor(e){super(),t.init(this,e,yt,vt,t.safe_not_equal,{userid:8,session:9,endpoint:10,lang:11,clientstyling:12,clientstylingurl:13,translationurl:14,customlocaleidentifier:15,gmversion:16,displaybalanceoption:17,totalcalculationmode:7,currencyseparator:18,currencydecimal:19,currencyprecision:20},mt,[-1,-1])}get userid(){return this.$$.ctx[8]}set userid(e){this.$$set({userid:e}),t.flush()}get session(){return this.$$.ctx[9]}set session(e){this.$$set({session:e}),t.flush()}get endpoint(){return this.$$.ctx[10]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get lang(){return this.$$.ctx[11]}set lang(e){this.$$set({lang:e}),t.flush()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[14]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get customlocaleidentifier(){return this.$$.ctx[15]}set customlocaleidentifier(e){this.$$set({customlocaleidentifier:e}),t.flush()}get gmversion(){return this.$$.ctx[16]}set gmversion(e){this.$$set({gmversion:e}),t.flush()}get displaybalanceoption(){return this.$$.ctx[17]}set displaybalanceoption(e){this.$$set({displaybalanceoption:e}),t.flush()}get totalcalculationmode(){return this.$$.ctx[7]}set totalcalculationmode(e){this.$$set({totalcalculationmode:e}),t.flush()}get currencyseparator(){return this.$$.ctx[18]}set currencyseparator(e){this.$$set({currencyseparator:e}),t.flush()}get currencydecimal(){return this.$$.ctx[19]}set currencydecimal(e){this.$$set({currencydecimal:e}),t.flush()}get currencyprecision(){return this.$$.ctx[20]}set currencyprecision(e){this.$$set({currencyprecision:e}),t.flush()}}t.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 X, $ as Z, S as J, i as K, f as D, c as $, s as ee, d as te, e as _, g as L, x as k, h as d, N as P, m as S, l as p, z as E, n as j, o as T, p as ie, G as ae, q as se, C as M, y as ne, u as re, j as z, F as oe } from "./CasinoHamburgerMenu-BNVeOJMg.js";
2
+ function A(a, e) {
3
+ X(a, e);
4
+ }
5
+ function le(a) {
6
+ Z.set(a);
7
+ }
8
+ const W = {
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 = k(".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 = k(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, C) {
63
+ S(g, e, C), 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, C) {
71
+ C & /*$_*/
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"), z(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 && !z(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 = k(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 = k(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, C = window.navigator.userAgent, R = ae(C) !== "PC", B = !0, F, x = 0, U = "";
174
+ const G = () => {
175
+ fetch(h).then((w) => w.json()).then((w) => {
176
+ Object.keys(w).forEach((f) => {
177
+ A(f, w[f]);
178
+ });
179
+ }).catch((w) => {
180
+ console.log(w);
181
+ });
182
+ };
183
+ Object.keys(W).forEach((t) => {
184
+ A(t, W[t]);
185
+ });
186
+ const H = () => {
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, U = f.CashierUrl);
246
+ },
247
+ (f) => {
248
+ console.error(f);
249
+ }
250
+ );
251
+ }, q = () => {
252
+ le(u);
253
+ }, O = () => {
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 = () => H();
271
+ function V(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 && q(), 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 && O(), 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
+ U,
291
+ s,
292
+ R,
293
+ H,
294
+ b,
295
+ l,
296
+ m,
297
+ c,
298
+ u,
299
+ y,
300
+ o,
301
+ n,
302
+ h,
303
+ v,
304
+ Y,
305
+ V
306
+ ];
307
+ }
308
+ class me extends J {
309
+ constructor(e) {
310
+ super(), K(
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("./CasinoHamburgerMenu-Bf5T77Ny.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,p,h,f,o,s=n[4]("titleDeposit")+"",d,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"),p=e.svg_element("g"),h=e.svg_element("path"),f=e.space(),o=e.element("h2"),d=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(p,"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,p),e.append(p,h),e.append(t,f),e.append(t,o),e.append(o,d),w||(b=e.listen(t,"click",n[17]),w=!0)},p(u,D){D&16&&s!==(s=u[4]("titleDeposit")+"")&&e.set_data(d,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 q(n){let t,a,l,r=n[4]("titleDeposit")+"",c,m,p=n[5]&&W(n);function h(s,d){return s[1]?G:z}let f=h(n),o=f(n);return{c(){t=e.element("div"),p&&p.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,d){e.insert(s,t,d),p&&p.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,[d]){s[5]&&p.p(s,d),d&16&&r!==(r=s[4]("titleDeposit")+"")&&e.set_data(c,r),f===(f=h(s))&&o?o.p(s,d):(o.d(1),o=f(s),o&&(o.c(),o.m(t,null))),d&4&&e.set_style(t,"--dynamic-height",s[2])},i:e.noop,o:e.noop,d(s){s&&e.detach(t),p&&p.d(),o.d(),n[18](null)}}}function N(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:p=""}=t,{lang:h="en"}=t,{hasdefaultamount:f=""}=t,{clientstyling:o=""}=t,{clientstylingurl:s=""}=t,{translationurl:d=""}=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(d).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/${p}/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,p=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,d=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&&d&&R(),n.$$.dirty&69504&&m&&p&&c&&w&&h&&b&&B()},[u,M,C,k,r,v,S,w,c,m,p,h,f,o,s,d,b,F,I]}class E extends e.SvelteComponent{constructor(t){super(),e.init(this,t,N,q,e.safe_not_equal,{endpoint:8,session:9,playerid:10,lang:11,hasdefaultamount:12,clientstyling:13,clientstylingurl:14,translationurl:15,playercurrency:7,shortcashierenabled:16},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/CasinoHeaderController-DPFozcw5.cjs")).then(({default:t})=>{!customElements.get("casino-header-controller")&&customElements.define("casino-header-controller",t.element)})}
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/CasinoHeaderController-DmDDQCWH.cjs")).then(({default:t})=>{!customElements.get("casino-header-controller")&&customElements.define("casino-header-controller",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CasinoHeaderController-C7smG_gA.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoHeaderController-BZWtNlWs.js").then(({ default: t }) => {
14
14
  !customElements.get("casino-header-controller") && customElements.define("casino-header-controller", t.element);
15
15
  });
16
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-header-controller",
3
- "version": "1.45.0",
3
+ "version": "1.45.2",
4
4
  "type": "module",
5
5
  "main": "es2015/casino-header-controller.cjs",
6
6
  "module": "es2015/casino-header-controller.js",
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "./es2015/casino-header-controller.cjs": "./es2015/casino-header-controller.cjs"
13
13
  },
14
- "files": [
14
+ "files": [
15
15
  "es2015/",
16
16
  "components"
17
17
  ],