@everymatrix/casino-header-controller 1.44.0 → 1.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,13 @@
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=(r,t,a)=>t in r?at(r,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[t]=a,Ue=(r,t)=>{for(var a in t||(t={}))it.call(t,a)&&ze(r,a,t[a]);if(He)for(var a of He(t))st.call(t,a)&&ze(r,a,t[a]);return r},Pe=(r,t)=>rt(r,ot(t));var Ge=(r,t,a)=>new Promise((i,d)=>{var u=x=>{try{f(a.next(x))}catch(y){d(y)}},w=x=>{try{f(a.throw(x))}catch(y){d(y)}},f=x=>x.done?i(x.value):Promise.resolve(x.value).then(u,w);f((a=a.apply(r,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHamburgerMenu-C7-gBE2I.cjs");function Xe(r,t){e.addMessages(r,t)}function lt(r){e.$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 Ie={exports:{}};/** @license
2
+ * eventsource.js
3
+ * Available under MIT License (MIT)
4
+ * https://github.com/Yaffle/EventSource/
5
+ */(function(r,t){(function(a){var i=a.setTimeout,d=a.clearTimeout,u=a.XMLHttpRequest,w=a.XDomainRequest,f=a.ActiveXObject,x=a.EventSource,y=a.document,A=a.Promise,I=a.fetch,O=a.Response,N=a.TextDecoder,T=a.TextEncoder,E=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()}),E==null){var g=I;I=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}}}})},E=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function L(){this.bitsNeeded=0,this.codePoint=0}L.prototype.decode=function(n){function c(R,F,m){if(m===1)return R>=128>>F&&R<<F<=2047;if(m===2)return R>=2048>>F&&R<<F<=55295||R>=57344>>F&&R<<F<=65535;if(m===3)return R>=65536>>F&&R<<F<=1114111;throw new Error}function l(R,F){if(R===6*1)return F>>6>15?3:F>31?2:1;if(R===6*2)return F>15?3:2;if(R===6*3)return 3;throw new Error}for(var s=65533,h="",p=this.bitsNeeded,b=this.codePoint,V=0;V<n.length;V+=1){var C=n[V];p!==0&&(C<128||C>191||!c(b<<6|C&63,p-6,l(p,b)))&&(p=0,b=s,h+=String.fromCharCode(b)),p===0?(C>=0&&C<=127?(p=0,b=C):C>=192&&C<=223?(p=6*1,b=C&31):C>=224&&C<=239?(p=6*2,b=C&15):C>=240&&C<=247?(p=6*3,b=C&7):(p=0,b=s),p!==0&&!c(b,p,l(p,b))&&(p=0,b=s)):(p-=6,b=b<<6|C&63),p===0&&(b<=65535?h+=String.fromCharCode(b):(h+=String.fromCharCode(55296+(b-65535-1>>10)),h+=String.fromCharCode(56320+(b-65535-1&1023))))}return this.bitsNeeded=p,this.codePoint=b,h};var Z=function(){try{return new N().decode(new T().encode("test"),{stream:!0})==="test"}catch(n){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+n)}return!1};(N==null||T==null||!Z())&&(N=L);var B=function(){};function _(n){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=B,this.onload=B,this.onerror=B,this.onreadystatechange=B,this._contentType="",this._xhr=n,this._sendTimeout=0,this._abort=B}_.prototype.open=function(n,c){this._abort(!0);var l=this,s=this._xhr,h=1,p=0;this._abort=function(m){l._sendTimeout!==0&&(d(l._sendTimeout),l._sendTimeout=0),(h===1||h===2||h===3)&&(h=4,s.onload=B,s.onerror=B,s.onabort=B,s.onprogress=B,s.onreadystatechange=B,s.abort(),p!==0&&(d(p),p=0),m||(l.readyState=4,l.onabort(null),l.onreadystatechange())),h=0};var b=function(){if(h===1){var m=0,H="",oe=void 0;if("contentType"in s)m=200,H="OK",oe=s.contentType;else try{m=s.status,H=s.statusText,oe=s.getResponseHeader("Content-Type")}catch(Be){m=0,H="",oe=void 0}m!==0&&(h=2,l.readyState=2,l.status=m,l.statusText=H,l._contentType=oe,l.onreadystatechange())}},V=function(){if(b(),h===2||h===3){h=3;var m="";try{m=s.responseText}catch(H){}l.readyState=3,l.responseText=m,l.onprogress()}},C=function(m,H){if((H==null||H.preventDefault==null)&&(H={preventDefault:B}),V(),h===1||h===2||h===3){if(h=4,p!==0&&(d(p),p=0),l.readyState=4,m==="load")l.onload(H);else if(m==="error")l.onerror(H);else if(m==="abort")l.onabort(H);else throw new TypeError;l.onreadystatechange()}},R=function(m){s!=null&&(s.readyState===4?(!("onload"in s)||!("onerror"in s)||!("onabort"in s))&&C(s.responseText===""?"error":"load",m):s.readyState===3?"onprogress"in s||V():s.readyState===2&&b())},F=function(){p=i(function(){F()},500),s.readyState===3&&V()};"onload"in s&&(s.onload=function(m){C("load",m)}),"onerror"in s&&(s.onerror=function(m){C("error",m)}),"onabort"in s&&(s.onabort=function(m){C("abort",m)}),"onprogress"in s&&(s.onprogress=V),"onreadystatechange"in s&&(s.onreadystatechange=function(m){R(m)}),("contentType"in s||!("ontimeout"in u.prototype))&&(c+=(c.indexOf("?")===-1?"?":"&")+"padding=true"),s.open(n,c,!0),"readyState"in s&&(p=i(function(){F()},0))},_.prototype.abort=function(){this._abort(!1)},_.prototype.getResponseHeader=function(n){return this._contentType},_.prototype.setRequestHeader=function(n,c){var l=this._xhr;"setRequestHeader"in l&&l.setRequestHeader(n,c)},_.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},_.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 M(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(": "),b=p.shift(),V=p.join(": ");c[U(b)]=V}this._map=c}M.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,b){n.open("GET",h);var V=0;n.onprogress=function(){var R=n.responseText,F=R.slice(V);V+=F.length,l(F)},n.onerror=function(R){R.preventDefault(),s(new Error("NetworkError"))},n.onload=function(){s(null)},n.onabort=function(){s(null)},n.onreadystatechange=function(){if(n.readyState===u.HEADERS_RECEIVED){var R=n.status,F=n.statusText,m=n.getResponseHeader("Content-Type"),H=n.getAllResponseHeaders();c(R,F,m,new M(H))}},n.withCredentials=p;for(var C in b)Object.prototype.hasOwnProperty.call(b,C)&&n.setRequestHeader(C,b[C]);return n.send(),n};function ne(n){this._headers=n}ne.prototype.get=function(n){return this._headers.get(n)};function v(){}v.prototype.open=function(n,c,l,s,h,p,b){var V=null,C=new E,R=C.signal,F=new N;return I(h,{headers:b,credentials:p?"include":"same-origin",signal:R,cache:"no-store"}).then(function(m){return V=m.body.getReader(),c(m.status,m.statusText,m.headers.get("Content-Type"),new ne(m.headers)),new A(function(H,oe){var Be=function(){V.read().then(function(W){if(W.done)H(void 0);else{var X=F.decode(W.value,{stream:!0});l(X),Be()}}).catch(function(W){oe(W)})};Be()})}).catch(function(m){if(m.name!=="AbortError")return m}).then(function(m){s(m)}),{abort:function(){V!=null&&V.cancel(),C.abort()}}};function ae(){this._listeners=Object.create(null)}function _e(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){_e(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 je(n,c){ce.call(this,n),this.error=c.error}je.prototype=Object.create(ce.prototype);var we=-1,Y=0,de=1,fe=2,he=-1,re=0,xe=1,be=2,De=3,Me=/^text\/event\-stream(;.*)?$/i,Fe=1e3,Oe=18e6,Te=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,Fe),Oe)},ue=function(n,c,l){try{typeof c=="function"&&c.call(n,l)}catch(s){_e(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,D(this,n,c)}function S(){return u!=null&&"withCredentials"in u.prototype||w==null?new u:new w}var j=I!=null&&O!=null&&"body"in O.prototype;function D(n,c,l){c=String(c);var s=!!l.withCredentials,h=l.lastEventIdQueryParameterName||"lastEventId",p=Se(1e3),b=Te(l.heartbeatTimeout,45e3),V="",C=p,R=!1,F=0,m=l.headers||{},H=l.Transport,oe=j&&H==null?void 0:new _(H!=null?new H:S()),Be=H!=null&&typeof H!="string"?new H:oe==null?new v:new te,W=void 0,X=0,$=we,ve="",Ee="",ie="",Re="",q=re,Le=0,pe=0,tt=function(P,z,J,Q){if($===Y)if(P===200&&J!=null&&Me.test(J)){$=de,R=Date.now(),C=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.",ke();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?Re:"")+P.slice(0,z+1);Re=(z===-1?Re:"")+P.slice(z+1),P!==""&&(R=Date.now(),F+=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===xe&&(pe=G+1);var se=K.slice(Le,pe-1),le=K.slice(pe+(pe<G&&K.charCodeAt(pe)===32?1:0),G);se==="data"?(ve+=`
7
+ `,ve+=le):se==="id"?Ee=le:se==="event"?ie=le:se==="retry"?(p=Te(le,p),C=p):se==="heartbeatTimeout"&&(b=Te(le,b),X!==0&&(d(X),X=i(function(){Ce()},b)))}if(q===re){if(ve!==""){V=Ee,ie===""&&(ie="message");var me=new ye(ie,{data:ve.slice(1),lastEventId:Ee});if(n.dispatchEvent(me),ie==="open"?ue(n,n.onopen,me):ie==="message"?ue(n,n.onmessage,me):ie==="error"&&ue(n,n.onerror,me),$===fe)return}ve="",ie=""}q=Q===13?he:re}else q===re&&(Le=G,q=xe),q===xe?Q===58&&(pe=G+1,q=be):q===be&&(q=De)}}},Ve=function(P){if($===de||$===Y){$=we,X!==0&&(d(X),X=0),X=i(function(){Ce()},C),C=Se(Math.min(p*16,C*2)),n.readyState=Y;var z=new je("error",{error:P});n.dispatchEvent(z),ue(n,n.onerror,z),P!=null&&console.error(P)}},ke=function(){$=fe,W!=null&&(W.abort(),W=void 0),X!==0&&(d(X),X=0),n.readyState=fe},Ce=function(){if(X=0,$!==we){if(!R&&W!=null)Ve(new Error("No activity within "+b+" milliseconds. "+($===Y?"No response received.":F+" chars received.")+" Reconnecting.")),W!=null&&(W.abort(),W=void 0);else{var P=Math.max((R||Date.now())+b-Date.now(),1);R=!1,X=i(function(){Ce()},P)}return}R=!1,F=0,X=i(function(){Ce()},b),$=Y,ve="",ie="",Ee=V,Re="",Le=0,pe=0,q=re;var z=c;if(c.slice(0,5)!=="data:"&&c.slice(0,5)!=="blob:"&&V!==""){var J=c.indexOf("?");z=J===-1?c:c.slice(0,J+1)+c.slice(J+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(le,me){return me===h?"":le}),z+=(c.indexOf("?")===-1?"?":"&")+h+"="+encodeURIComponent(V)}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=Be.open(oe,tt,nt,Ve,z,Q,K)}catch(le){throw ke(),le}};n.url=c,n.readyState=Y,n.withCredentials=s,n.headers=m,n._close=ke,Ce()}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 k=x;u!=null&&(x==null||!("withCredentials"in x.prototype))&&(k=o),function(n){{var c=n(t);c!==void 0&&(r.exports=c)}}(function(n){n.EventSourcePolyfill=o,n.NativeEventSource=x,n.EventSource=k})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:e.commonjsGlobal:globalThis)})(Ie,Ie.exports);var ct=Ie.exports;/*!
8
+ * currency.js - v2.0.4
9
+ * http://scurker.github.io/currency.js
10
+ *
11
+ * Copyright (c) 2021 Jason Wilson
12
+ * Released under MIT license
13
+ */var dt={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:ht,fromCents:!1},$e=function(t){return Math.round(t)},Ne=function(t){return Math.pow(10,t)},ut=function(t,a){return $e(t/a)*a},ft=/(\d)(?=(\d{3})+\b)/g,pt=/(\d)(?=(\d\d)+\d\b)/g;function ee(r,t){var a=this;if(!(a instanceof ee))return new ee(r,t);var i=Object.assign({},dt,t),d=Ne(i.precision),u=Ae(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 Ae(r,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,i=0,d=t.decimal,u=t.errorOnInvalid,w=t.precision,f=t.fromCents,x=Ne(w),y=typeof r=="number",A=r instanceof ee;if(A&&f)return r.intValue;if(y||A)i=A?r.value:r;else if(typeof r=="string"){var I=new RegExp("[^-\\d"+d+"]","g"),O=new RegExp("\\"+d,"g");i=r.replace(/\((.*)\)/,"-$1").replace(I,"").replace(O,"."),i=i||0}else{if(u)throw Error("Invalid Input");i=0}return f||(i*=x,i=i.toFixed(4)),a?$e(i):i}function ht(r,t){var a=t.pattern,i=t.negativePattern,d=t.symbol,u=t.separator,w=t.decimal,f=t.groups,x=(""+r).replace(/^-/,"").split("."),y=x[0],A=x[1];return(r.value>=0?a:i).replace("!",d).replace("#",y.replace(f,"$1"+u)+(A?w+A:""))}ee.prototype={add:function(t){var a=this.intValue,i=this.s,d=this.p;return ee((a+=Ae(t,i))/(i.fromCents?1:d),i)},subtract:function(t){var a=this.intValue,i=this.s,d=this.p;return ee((a-=Ae(t,i))/(i.fromCents?1:d),i)},multiply:function(t){var a=this.intValue,i=this.s;return ee((a*=t)/(i.fromCents?1:Ne(i.precision)),i)},divide:function(t){var a=this.intValue,i=this.s;return ee(a/=Ae(t,i,!1),i)},distribute:function(t){for(var a=this.intValue,i=this.p,d=this.s,u=[],w=Math[a>=0?"floor":"ceil"](a/t),f=Math.abs(a-w*t),x=d.fromCents?1:i;t!==0;t--){var y=ee(w/x,d);f-- >0&&(y=y[a>=0?"add":"subtract"](1/x)),u.push(y)}return u},dollars:function(){return~~this.value},cents:function(){var t=this.intValue,a=this.p;return~~(t%a)},format:function(t){var a=this.s;return typeof t=="function"?t(this,a):a.format(this,Object.assign({},a,t))},toString:function(){var t=this.intValue,a=this.p,i=this.s;return ut(t/a,i.increment).toFixed(i.precision)},toJSON:function(){return this.value}};function vt(r){e.append_styles(r,"svelte-18xjifw",'.svelte-18xjifw.svelte-18xjifw,.svelte-18xjifw.svelte-18xjifw::before,.svelte-18xjifw.svelte-18xjifw::after{font-family:inherit}:host{font-family:inherit}button.svelte-18xjifw.svelte-18xjifw{font-family:inherit}p.svelte-18xjifw.svelte-18xjifw{padding:0;margin:0}.ShowBalance.svelte-18xjifw.svelte-18xjifw{position:relative}.ShowBalance.svelte-18xjifw .BalanceValue.svelte-18xjifw{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance.svelte-18xjifw .BalanceValue svg.svelte-18xjifw{width:16px}.ShowBalance.svelte-18xjifw .BalanceValue span.svelte-18xjifw{padding-left:8px}@media only screen and (max-width: 360px){.ShowBalance.svelte-18xjifw .BalanceValue.svelte-18xjifw{font-size:12px}.ShowBalance.svelte-18xjifw .BalanceValue svg.svelte-18xjifw{width:12px}}.BalanceModalWrapper.svelte-18xjifw.svelte-18xjifw{background-color:var(--emfe-w-color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-60%);padding:10px;box-shadow:0px 30px 30px var(--emfe-w-header-color-primary, var(--emfe-w-color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper.svelte-18xjifw.svelte-18xjifw:before{content:"";background:var(--emfe-w-color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:60%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose.svelte-18xjifw.svelte-18xjifw{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer}.BalanceModalClose.svelte-18xjifw.svelte-18xjifw:before{content:"";background:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose.svelte-18xjifw.svelte-18xjifw:after{content:"";background:var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal.svelte-18xjifw.svelte-18xjifw{position:relative;width:280px}.BalanceModalHeader.svelte-18xjifw.svelte-18xjifw{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader.svelte-18xjifw .BalanceModalTitle.svelte-18xjifw{font-size:16px;font-weight:bold;color:var(--emfe-w-header-contrast, var(--emfe-w-color-contrast, #07072A))}.BalanceModalRowBoth.svelte-18xjifw.svelte-18xjifw{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emfe-w-color-gray-100, #E6E6E6)}.BalanceModalRowBoth.svelte-18xjifw.svelte-18xjifw:last-child{border-bottom:none}.BalanceModalRowBoth.svelte-18xjifw .BalanceModalRowLine.svelte-18xjifw{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth.svelte-18xjifw .BalanceModalText.svelte-18xjifw{color:var(--emfe-w-header-contrast, var(--emfe-w-color-contrast, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth.svelte-18xjifw .BalanceModalValue.svelte-18xjifw{font-size:14px;font-weight:bold;color:var(--emfe-w-header-contrast, var(--emfe-w-color-contrast, #07072A))}.BalanceModalFooter.svelte-18xjifw.svelte-18xjifw{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter.svelte-18xjifw .BalanceModalAction.svelte-18xjifw{background:var(--emfe-w-header-color-primary, var(--emfe-w-color-primary, #D0046C));font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter.svelte-18xjifw .BalanceModalAction.svelte-18xjifw:hover{background:var(--emfe-w-header-contrast, var(--emfe-w-color-background, #07072A))}.ShowBalanceModalOverlay.svelte-18xjifw.svelte-18xjifw{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}')}function Ke(r,t,a){const i=r.slice();return i[44]=t[a],i}function We(r,t,a){const i=r.slice();return i[47]=t[a],i}function Je(r){let t,a,i,d,u,w,f=r[4]("Title")+"",x,y,A,I,O,N,T=r[4]("DepositButton")+"",E,g,L,Z=e.ensure_array_like(Object.keys(r[3])),B=[];for(let _=0;_<Z.length;_+=1)B[_]=Ye(Ke(r,Z,_));return{c(){t=e.element("div"),a=e.element("div"),i=e.space(),d=e.element("div"),u=e.element("div"),w=e.element("p"),x=e.text(f),y=e.space(),A=e.element("div");for(let _=0;_<B.length;_+=1)B[_].c();I=e.space(),O=e.element("div"),N=e.element("button"),E=e.text(T),e.attr(a,"class","BalanceModalClose svelte-18xjifw"),e.attr(w,"class","BalanceModalTitle svelte-18xjifw"),e.attr(u,"class","BalanceModalHeader svelte-18xjifw"),e.attr(A,"class","BalanceModalBody svelte-18xjifw"),e.attr(N,"class","BalanceModalAction svelte-18xjifw"),e.attr(O,"class","BalanceModalFooter svelte-18xjifw"),e.attr(d,"class","BalanceModal svelte-18xjifw"),e.attr(t,"class","BalanceModalWrapper svelte-18xjifw")},m(_,U){e.insert(_,t,U),e.append(t,a),e.append(t,i),e.append(t,d),e.append(d,u),e.append(u,w),e.append(w,x),e.append(d,y),e.append(d,A);for(let M=0;M<B.length;M+=1)B[M]&&B[M].m(A,null);e.append(d,I),e.append(d,O),e.append(O,N),e.append(N,E),g||(L=[e.listen(a,"click",r[22]),e.listen(N,"click",r[23])],g=!0)},p(_,U){if(U[0]&16&&f!==(f=_[4]("Title")+"")&&e.set_data(x,f),U[0]&60){Z=e.ensure_array_like(Object.keys(_[3]));let M;for(M=0;M<Z.length;M+=1){const te=Ke(_,Z,M);B[M]?B[M].p(te,U):(B[M]=Ye(te),B[M].c(),B[M].m(A,null))}for(;M<B.length;M+=1)B[M].d(1);B.length=Z.length}U[0]&16&&T!==(T=_[4]("DepositButton")+"")&&e.set_data(E,T)},d(_){_&&e.detach(t),e.destroy_each(B,_),g=!1,e.run_all(L)}}}function Qe(r){let t,a,i=r[4](r[44])+"",d,u,w=(r[47].productType?r[4](r[47].productType):"")+"",f,x,y,A,I=(r[47].amount?r[5](r[47].amount):"0")+"",O,N,T,E;return{c(){t=e.element("div"),a=e.element("p"),d=e.text(i),u=e.space(),f=e.text(w),x=e.space(),y=e.element("p"),A=e.element("span"),O=e.text(I),N=e.space(),T=e.element("span"),E=e.text(r[2]),e.attr(a,"class","BalanceModalText svelte-18xjifw"),e.attr(A,"class","BalanceModalAmount svelte-18xjifw"),e.attr(T,"class","BalanceModalCurrency svelte-18xjifw"),e.attr(y,"class","BalanceModalValue svelte-18xjifw"),e.attr(t,"class","BalanceModalRowLine svelte-18xjifw")},m(g,L){e.insert(g,t,L),e.append(t,a),e.append(a,d),e.append(a,u),e.append(a,f),e.append(t,x),e.append(t,y),e.append(y,A),e.append(A,O),e.append(y,N),e.append(y,T),e.append(T,E)},p(g,L){L[0]&24&&i!==(i=g[4](g[44])+"")&&e.set_data(d,i),L[0]&24&&w!==(w=(g[47].productType?g[4](g[47].productType):"")+"")&&e.set_data(f,w),L[0]&8&&I!==(I=(g[47].amount?g[5](g[47].amount):"0")+"")&&e.set_data(O,I),L[0]&4&&e.set_data(E,g[2])},d(g){g&&e.detach(t)}}}function Ye(r){let t,a,i=e.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(){t=e.element("div");for(let u=0;u<d.length;u+=1)d[u].c();a=e.space(),e.attr(t,"class","BalanceModalRowBoth svelte-18xjifw")},m(u,w){e.insert(u,t,w);for(let f=0;f<d.length;f+=1)d[f]&&d[f].m(t,null);e.append(t,a)},p(u,w){if(w[0]&60){i=e.ensure_array_like(u[3][u[44]]);let f;for(f=0;f<i.length;f+=1){const x=We(u,i,f);d[f]?d[f].p(x,w):(d[f]=Qe(x),d[f].c(),d[f].m(t,a))}for(;f<d.length;f+=1)d[f].d(1);d.length=i.length}},d(u){u&&e.detach(t),e.destroy_each(d,u)}}}function Ze(r){let t,a,i;return{c(){t=e.element("div"),e.attr(t,"class","ShowBalanceModalOverlay svelte-18xjifw")},m(d,u){e.insert(d,t,u),a||(i=e.listen(t,"click",r[24]),a=!0)},p:e.noop,d(d){d&&e.detach(t),a=!1,i()}}}function mt(r){let t,a,i,d=(r[3].Total?r[5](r[3].Total[0].amount):"0")+"",u,w,f,x,y,A,I,O,N,T=r[1]&&Je(r),E=r[1]&&Ze(r);return{c(){t=e.element("div"),a=e.element("div"),i=e.element("p"),u=e.text(d),w=e.space(),f=e.text(r[2]),x=e.space(),y=e.element("span"),y.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435" class="svelte-18xjifw"><defs class="svelte-18xjifw"><style class="svelte-18xjifw">.a{fill:var(--emfe-w-color-white, #FFFFFF);}</style></defs><path class="a svelte-18xjifw" 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>',A=e.space(),T&&T.c(),I=e.space(),E&&E.c(),e.attr(y,"class","svelte-18xjifw"),e.attr(i,"class","BalanceValue svelte-18xjifw"),e.attr(i,"part","BalanceValue"),e.attr(a,"class","ShowBalance svelte-18xjifw"),e.attr(a,"part","ShowBalance"),e.attr(t,"class","svelte-18xjifw")},m(g,L){e.insert(g,t,L),e.append(t,a),e.append(a,i),e.append(i,u),e.append(i,w),e.append(i,f),e.append(i,x),e.append(i,y),e.append(a,A),T&&T.m(a,null),e.append(t,I),E&&E.m(t,null),r[25](t),O||(N=e.listen(i,"click",r[21]),O=!0)},p(g,L){L[0]&8&&d!==(d=(g[3].Total?g[5](g[3].Total[0].amount):"0")+"")&&e.set_data(u,d),L[0]&4&&e.set_data(f,g[2]),g[1]?T?T.p(g,L):(T=Je(g),T.c(),T.m(a,null)):T&&(T.d(1),T=null),g[1]?E?E.p(g,L):(E=Ze(g),E.c(),E.m(t,null)):E&&(E.d(1),E=null)},i:e.noop,o:e.noop,d(g){g&&e.detach(t),T&&T.d(),E&&E.d(),r[25](null),O=!1,N()}}}function yt(r,t,a){let i;e.component_subscribe(r,e.$format,o=>a(4,i=o));let{userid:d=""}=t,{session:u=""}=t,{endpoint:w=""}=t,{lang:f="en"}=t,{clientstyling:x=""}=t,{clientstylingurl:y=""}=t,{translationurl:A=""}=t,{customlocaleidentifier:I=""}=t,{gmversion:O="gmcore"}=t,{displaybalanceoption:N="All"}=t,{totalcalculationmode:T=""}=t,{currencyseparator:E=""}=t,{currencydecimal:g=""}=t,{currencyprecision:L=""}=t,Z,B,_,U=!1,M=!1,te="",ne=[];const v={},ae=["totalAmount","totalCashAmount","totalRealAmount","totalWithdrawableAmount"],_e=()=>{fetch(A).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(T){case"totalAmount":return(o,S,j)=>j.walletType!=="CreditLine"?o+j.affectedAmount:o;case"totalCashAmount":return(o,S,j)=>j.walletType!=="CreditLine"&&(S==="Bonus"||S==="Real")?o+j.affectedAmount:o;case"totalRealAmount":return(o,S,j)=>j.walletType!=="CreditLine"&&S==="Real"?o+j.affectedAmount:j.walletType==="CreditLine"&&S==="Real"?o-Math.abs(j.affectedAmount):o;case"totalWithdrawableAmount":return(o,S,j)=>j.walletType!=="CreditLine"&&(S==="Real"||S==="RealNegativeRemainder")?o+j.affectedAmount:S==="DepositWagering"?o-j.affectedAmount:o}},ye=()=>{if(I.includes(f))return I},ge=o=>I?new Intl.NumberFormat(ye(),{useGrouping:!0}).format(o):E&&g?ee(o,{separator:E,decimal:g,symbol:"",precision:parseInt(L||"2",10)}).format():ee(o,{separator:".",decimal:",",symbol:"",precision:parseInt(L||"2",10)}).format(),je=()=>Ge(this,null,function*(){var S,j;const o=new URL(`${w}/v1/player/${d}/account`);try{U=!0;const D=yield fetch(o,{method:"GET",headers:{"X-SessionID":u}}),k=yield D.json();if(console.log("data :>> ",k),D.ok)U=!1,ne=k.items,a(2,te=Object.keys(k.totalAmount)[0]),a(3,v.Total=[{amount:k.totalAmount[te]}],v),a(3,v.Real=[{amount:(S=ne.find(n=>n.displayName==="Casino"))==null?void 0:S.balanceAmount}],v),a(3,v.Bonus=[{amount:(j=ne.find(n=>n.displayName==="UBS"))==null?void 0:j.balanceAmount}],v);else throw U=!1,new Error("Failed to fetch balance data !")}catch(D){U=!1,console.log("Balance error: ",D)}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(D=>D.json()).then(D=>{U=!1;const[k,n]=Object.entries(D[T])[0];if(a(2,te=k),a(3,v.Total=[{amount:n}],v),!D.items[0].productType){const l=Object.values(D.totalBonusAmount)[0];a(3,v.Bonus=[{amount:l}],v);for(const s of D.items)s.type==="Real"&&(s.creditLine&&a(3,v.Credit=[{amount:s.creditLine}],v),v.Real?a(3,v.Real[0].amount+=s.amount,v):a(3,v.Real=[{amount:s.amount}],v));return}let c=D.items;a(3,v.Bonus=[],v),a(3,v.Real=[],v),a(3,v.Credit=[],v),N&&N!=="All"&&(c=D.items.filter(l=>l.productType===N));for(const l of c){if(l.type==="Real"){l.creditLine&&v.Credit.push({amount:l.creditLine,productType:l.productType});const s=v.Real.findIndex(h=>h.productType===l.productType);s>0?a(3,v.Real[s].amount+=l.amount,v):v.Real.push({amount:l.amount,productType:l.productType});continue}if(l.type==="Bonus"){const s=v.Bonus.findIndex(h=>h.productType===l.productType);s>0?a(3,v.Bonus[s].amount+=l.amount,v):v.Bonus.push({amount:l.amount,productType:l.productType})}}}).catch(D=>{throw U=!1,new Error("Failed to fetch balance data !")})},Y=()=>{if(_&&_.close(),u.length<1)return;let o,S;switch(O){case"gm16":o=new URL(`${w}/v2/player/${d}/information/updates`),S=k=>k.data&&k.data.type==="BALANCE_UPDATE_V2"&&fe(k.data.body);break;case"gmcore":o=new URL(`${w}/v1/player/${d}/balance/updates`),S=k=>k.data&&de(k.data.body);break}const j={accept:"text/event-stream","X-SessionId":u},D=new ct.EventSourcePolyfill(o,{headers:j});_=D,D.addEventListener("message",S)},de=o=>{var D,k;let S;try{S=JSON.parse(o)}catch(n){console.log("Balance stream failed: ",n),Y()}let j="0";ne=ne.map(n=>(S.balanceChange&&S.balanceChange[n.id]&&(n=Pe(Ue({},n),{balanceAmount:S.balanceChange[n.id].afterAmount})),j=(parseFloat(n==null?void 0:n.balanceAmount)+parseFloat(j)).toString(),n)),a(3,v.Real=[{amount:(D=ne[0])==null?void 0:D.balanceAmount}],v),a(3,v.Bonus=[{amount:(k=ne[1])==null?void 0:k.balanceAmount}],v),a(3,v.Total=[{amount:Number(j)}],v)},fe=o=>{let S;try{S=JSON.parse(o)}catch(D){console.log("Balance stream failed: ",D),Y()}const j=S.body;for(const[D,k]of Object.entries(j)){for(const n of v[D])!n.productType||k.productType&&k.productType===n.productType&&(n.amount=k.afterAmount);a(3,v.Total[0].amount=Z(v.Total[0].amount,D,k),v)}},he=()=>{a(1,M=!1),window.postMessage({type:"GoToDeposit"},window.location.href),typeof gtag=="function"&&gtag("event","GoToDeposit",{context:"PlayerAccountBalanceModal"})},re=()=>{ae.includes(T)||(console.error(`Unsupported value ('${T}') for totalcalculationmode parameter. Only the following values are supported ${ae}. Using default value ('${ae[2]}').`),a(7,T=ae[2]))},xe=()=>{switch(lt(f),re(),Z=ce(),console.log("gmversion :>> ",O),O){case"gmcore":je();break;case"gm16":we();break;default:throw Error(`Invalid apiversion attribute: ${O}`)}},be=o=>o.data&&o.data.type==="LogoutSuccessfull"&&_.close(),De=()=>{const o=document.createElement("style");o.innerHTML=x,B.appendChild(o)},Me=()=>{const o=new URL(y),S=document.createElement("style");fetch(o.href).then(j=>j.text()).then(j=>{S.innerHTML=j,setTimeout(()=>{B.appendChild(S)},1)})};e.onMount(()=>(window.addEventListener("message",be,!1),()=>{window.removeEventListener("message",be),_&&_.close()}));const Fe=()=>a(1,M=!0),Oe=()=>a(1,M=!1),Te=()=>he(),Se=()=>a(1,M=!1);function ue(o){e.binding_callbacks[o?"unshift":"push"](()=>{B=o,a(0,B)})}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,x=o.clientstyling),"clientstylingurl"in o&&a(13,y=o.clientstylingurl),"translationurl"in o&&a(14,A=o.translationurl),"customlocaleidentifier"in o&&a(15,I=o.customlocaleidentifier),"gmversion"in o&&a(16,O=o.gmversion),"displaybalanceoption"in o&&a(17,N=o.displaybalanceoption),"totalcalculationmode"in o&&a(7,T=o.totalcalculationmode),"currencyseparator"in o&&a(18,E=o.currencyseparator),"currencydecimal"in o&&a(19,g=o.currencydecimal),"currencyprecision"in o&&a(20,L=o.currencyprecision)},r.$$.update=()=>{r.$$.dirty[0]&2048&&f&&ye(),r.$$.dirty[0]&200448&&w&&d&&u&&f&&O&&N&&xe(),r.$$.dirty[0]&1920&&w&&d&&u&&T&&Y(),r.$$.dirty[0]&4097&&x&&B&&De(),r.$$.dirty[0]&8193&&y&&B&&Me(),r.$$.dirty[0]&16384&&A&&_e()},[B,M,te,v,i,ge,he,T,d,u,w,f,x,y,A,I,O,N,E,g,L,Fe,Oe,Te,Se,ue]}class et extends e.SvelteComponent{constructor(t){super(),e.init(this,t,yt,mt,e.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},vt,[-1,-1])}get userid(){return this.$$.ctx[8]}set userid(t){this.$$set({userid:t}),e.flush()}get session(){return this.$$.ctx[9]}set session(t){this.$$set({session:t}),e.flush()}get endpoint(){return this.$$.ctx[10]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get lang(){return this.$$.ctx[11]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[14]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get customlocaleidentifier(){return this.$$.ctx[15]}set customlocaleidentifier(t){this.$$set({customlocaleidentifier:t}),e.flush()}get gmversion(){return this.$$.ctx[16]}set gmversion(t){this.$$set({gmversion:t}),e.flush()}get displaybalanceoption(){return this.$$.ctx[17]}set displaybalanceoption(t){this.$$set({displaybalanceoption:t}),e.flush()}get totalcalculationmode(){return this.$$.ctx[7]}set totalcalculationmode(t){this.$$set({totalcalculationmode:t}),e.flush()}get currencyseparator(){return this.$$.ctx[18]}set currencyseparator(t){this.$$set({currencyseparator:t}),e.flush()}get currencydecimal(){return this.$$.ctx[19]}set currencydecimal(t){this.$$set({currencydecimal:t}),e.flush()}get currencyprecision(){return this.$$.ctx[20]}set currencyprecision(t){this.$$set({currencyprecision:t}),e.flush()}}e.create_custom_element(et,{userid:{},session:{},endpoint:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},customlocaleidentifier:{},gmversion:{},displaybalanceoption:{},totalcalculationmode:{},currencyseparator:{},currencydecimal:{},currencyprecision:{}},[],[],!0);exports.default=et;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoHamburgerMenu-C7-gBE2I.cjs");function T(a,t){e.addMessages(a,t)}function A(a){e.$locale.set(a)}const L={en:{titleDeposit:"Deposit",loading:"Loading, please wait ..."},"zh-hk":{titleDeposit:"訂金",loading:"加載請稍候…"},fr:{titleDeposit:"Dépôt",loading:"Chargement, veuillez patienter ..."},tr:{titleDeposit:"PARA YATIR",loading:"Yükleniyor ..."},ro:{titleDeposit:"Depunere",loading:"Se încarcă..."},es:{titleDeposit:"Deposita",loading:"Cargando ..."},pt:{titleDeposit:"Depósito",loading:"Carregando, por favor espere ..."},hr:{titleDeposit:"Uplata",loading:"Učitavanje"},"pt-br":{titleDeposit:"Depositar",Loading:"Carregando, por favor espere..."},"es-mx":{titleDeposit:"Depositar",Loading:"Cargando, por favor espere..."}};function W(a){e.append_styles(a,"svelte-1dxvsb",".DepositWrapper.svelte-1dxvsb.svelte-1dxvsb{background-color:var(--emw-color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px 50px 30px 50px;max-width:100%;height:var(--dynamic-height)}.DepositWrapper.DepositWrapperMobile.svelte-1dxvsb.svelte-1dxvsb{padding:20px 15px;max-width:unset;height:var(--dynamic-height)}.MenuReturnButton.svelte-1dxvsb.svelte-1dxvsb{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton.svelte-1dxvsb svg.svelte-1dxvsb{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.DepositTitle.svelte-1dxvsb.svelte-1dxvsb{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.DepositTitleMobile.svelte-1dxvsb.svelte-1dxvsb{font-size:var(--emw--size-standard, 16px)}.DepositTitleNone.svelte-1dxvsb.svelte-1dxvsb{display:none}.DepositIframeWrapper.svelte-1dxvsb iframe.svelte-1dxvsb{border:none;width:100%;height:85vh;border-radius:var(--emw--border-radius-large, 20px)}")}function j(a){let t,i,l,n,c,g,d,h,f,o,r=a[4]("titleDeposit")+"",p,y,w;return{c(){t=e.element("div"),i=e.svg_element("svg"),l=e.svg_element("defs"),n=e.svg_element("style"),c=e.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),g=e.svg_element("g"),d=e.svg_element("g"),h=e.svg_element("path"),f=e.space(),o=e.element("h2"),p=e.text(r),e.attr(h,"class","aaa"),e.attr(h,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),e.attr(h,"transform","translate(15 15) rotate(180)"),e.attr(d,"transform","translate(20 158)"),e.attr(g,"transform","translate(-20 -158)"),e.attr(i,"xmlns","http://www.w3.org/2000/svg"),e.attr(i,"width","15"),e.attr(i,"height","15"),e.attr(i,"viewBox","0 0 15 15"),e.attr(i,"class","svelte-1dxvsb"),e.attr(o,"class","DepositTitleMobile svelte-1dxvsb"),e.attr(t,"class","MenuReturnButton svelte-1dxvsb")},m(u,b){e.insert(u,t,b),e.append(t,i),e.append(i,l),e.append(l,n),e.append(n,c),e.append(i,g),e.append(g,d),e.append(d,h),e.append(t,f),e.append(t,o),e.append(o,p),y||(w=e.listen(t,"click",a[17]),y=!0)},p(u,b){b&16&&r!==(r=u[4]("titleDeposit")+"")&&e.set_data(p,r)},d(u){u&&e.detach(t),y=!1,w()}}}function z(a){let t,i,l;return{c(){t=e.element("div"),i=e.element("iframe"),e.src_url_equal(i.src,l=a[3])||e.attr(i,"src",l),e.attr(i,"title","Deposit Iframe"),e.attr(i,"class","svelte-1dxvsb"),e.attr(t,"class","DepositIframeWrapper svelte-1dxvsb")},m(n,c){e.insert(n,t,c),e.append(t,i)},p(n,c){c&8&&!e.src_url_equal(i.src,l=n[3])&&e.attr(i,"src",l)},d(n){n&&e.detach(t)}}}function G(a){let t,i=a[4]("loading")+"",l;return{c(){t=e.element("p"),l=e.text(i)},m(n,c){e.insert(n,t,c),e.append(t,l)},p(n,c){c&16&&i!==(i=n[4]("loading")+"")&&e.set_data(l,i)},d(n){n&&e.detach(t)}}}function q(a){let t,i,l,n=a[4]("titleDeposit")+"",c,g,d=a[5]&&j(a);function h(r,p){return r[1]?G:z}let f=h(a),o=f(a);return{c(){t=e.element("div"),d&&d.c(),i=e.space(),l=e.element("h2"),c=e.text(n),g=e.space(),o.c(),e.attr(l,"class","DepositTitle "+(a[5]?"DepositTitleNone":"")+" svelte-1dxvsb"),e.attr(t,"class","DepositWrapper "+(a[5]?"DepositWrapperMobile":"")+" svelte-1dxvsb"),e.set_style(t,"--dynamic-height",a[2])},m(r,p){e.insert(r,t,p),d&&d.m(t,null),e.append(t,i),e.append(t,l),e.append(l,c),e.append(t,g),o.m(t,null),a[18](t)},p(r,[p]){r[5]&&d.p(r,p),p&16&&n!==(n=r[4]("titleDeposit")+"")&&e.set_data(c,n),f===(f=h(r))&&o?o.p(r,p):(o.d(1),o=f(r),o&&(o.c(),o.m(t,null))),p&4&&e.set_style(t,"--dynamic-height",r[2])},i:e.noop,o:e.noop,d(r){r&&e.detach(t),d&&d.d(),o.d(),a[18](null)}}}function N(a,t,i){let l,n;e.component_subscribe(a,e.$format,s=>i(4,n=s));let{endpoint:c=""}=t,{session:g=""}=t,{playerid:d=""}=t,{lang:h="en"}=t,{hasdefaultamount:f=""}=t,{clientstyling:o=""}=t,{clientstylingurl:r=""}=t,{translationurl:p=""}=t,{playercurrency:y=""}=t,{shortcashierenabled:w="false"}=t,u,b=window.navigator.userAgent,_=e.getDevice(b)!=="PC",x=!0,M,D=0,C="";const R=()=>{fetch(p).then(v=>v.json()).then(v=>{Object.keys(v).forEach(m=>{T(m,v[m])})}).catch(v=>{console.log(v)})};Object.keys(L).forEach(s=>{T(s,L[s])});const k=()=>{window.postMessage({type:"GoToPreviousRoute",isMobile:_},window.location.href)},S=s=>{if(s.data){switch(s.data.type){case"ProfileDetailsData":i(7,y=s.data.profileDetails.currency);break}switch(s.data["MMFE:setQuickDepositHeight"]&&i(2,M=s.data["MMFE:setQuickDepositHeight"].toString()+"px"),s.data["MMFE:openFullCashier"]==="true"&&(window.postMessage({type:"GoToDeposit"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href)),s.data.redirect){case"mm-hc-casino":window.postMessage({type:"GoToCasino"},window.location.href);break;case"mm-hc-sports":window.postMessage({type:"GoToSports"},window.location.href);break;case"mm-hc-contact":window.postMessage({type:"GoToCustomerSupport"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href);break;case"mm-hc-back-to-merchant":window.postMessage({type:"GoToHomepage"},window.location.href);break;case"mm-wm-hc-init-deposit":window.postMessage({type:"RedirectWithdrawDepositCloseModal"},window.location.href);break;case"mm-wm-hc-init-deposit-quick":window.postMessage({type:"CloseShortCashier"},window.location.href);break}}},B=()=>{let s=new URL(`${c}/v1/player/${d}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);if(s.searchParams.append("language",h),l&&s.searchParams.append("isShortCashier",w),f)switch(y){case"USD":D=.4;break;case"CDF":D=1e3;break}let v={method:"POST",headers:{"X-SessionId":g,currency:y||"EUR",amount:D,cashierMode:"Default",IsShortCashier:w,accept:"application/json"}};fetch(s.href,v).then(m=>m.json()).then(m=>{i(1,x=!1),i(3,C=m.CashierUrl)},m=>{console.error(m)})},H=()=>{A(h)},P=()=>{let s=document.createElement("style");s.innerHTML=o,u.appendChild(s)},U=()=>{let s=new URL(r),v=document.createElement("style");fetch(s.href).then(m=>m.text()).then(m=>{v.innerHTML=m,setTimeout(()=>{u.appendChild(v)},1)})};e.onMount(()=>(window.addEventListener("message",S,!1),()=>{window.removeEventListener("message",S)}));const F=()=>k();function I(s){e.binding_callbacks[s?"unshift":"push"](()=>{u=s,i(0,u)})}return a.$$set=s=>{"endpoint"in s&&i(8,c=s.endpoint),"session"in s&&i(9,g=s.session),"playerid"in s&&i(10,d=s.playerid),"lang"in s&&i(11,h=s.lang),"hasdefaultamount"in s&&i(12,f=s.hasdefaultamount),"clientstyling"in s&&i(13,o=s.clientstyling),"clientstylingurl"in s&&i(14,r=s.clientstylingurl),"translationurl"in s&&i(15,p=s.translationurl),"playercurrency"in s&&i(7,y=s.playercurrency),"shortcashierenabled"in s&&i(16,w=s.shortcashierenabled)},a.$$.update=()=>{a.$$.dirty&2048&&h&&H(),a.$$.dirty&65536&&(l=w.toLocaleLowerCase()==="true"),a.$$.dirty&16385&&r&&u&&U(),a.$$.dirty&8193&&o&&u&&P(),a.$$.dirty&32768&&p&&R(),a.$$.dirty&69504&&g&&d&&c&&y&&h&&w&&B()},[u,x,M,C,n,_,k,y,c,g,d,h,f,o,r,p,w,F,I]}class E extends e.SvelteComponent{constructor(t){super(),e.init(this,t,N,q,e.safe_not_equal,{endpoint:8,session:9,playerid:10,lang:11,hasdefaultamount:12,clientstyling:13,clientstylingurl:14,translationurl:15,playercurrency:7,shortcashierenabled:16},W)}get endpoint(){return this.$$.ctx[8]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[9]}set session(t){this.$$set({session:t}),e.flush()}get playerid(){return this.$$.ctx[10]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[11]}set lang(t){this.$$set({lang:t}),e.flush()}get hasdefaultamount(){return this.$$.ctx[12]}set hasdefaultamount(t){this.$$set({hasdefaultamount:t}),e.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get playercurrency(){return this.$$.ctx[7]}set playercurrency(t){this.$$set({playercurrency:t}),e.flush()}get shortcashierenabled(){return this.$$.ctx[16]}set shortcashierenabled(t){this.$$set({shortcashierenabled:t}),e.flush()}}e.create_custom_element(E,{endpoint:{},session:{},playerid:{},lang:{},hasdefaultamount:{},clientstyling:{},clientstylingurl:{},translationurl:{},playercurrency:{},shortcashierenabled:{}},[],[],!0);exports.default=E;
@@ -0,0 +1,395 @@
1
+ import { b as X, $ as Z, S as J, i as K, f as b, c as $, s as ee, d as te, e as x, g as L, x as C, h as c, O as P, m as k, l as u, z as E, n as z, o as S, p as se, G as ie, q as ae, C as _, y as re, u as ne, j as A, F as le } from "./CasinoHamburgerMenu-BIvzNNkE.js";
2
+ function W(i, e) {
3
+ X(i, e);
4
+ }
5
+ function oe(i) {
6
+ Z.set(i);
7
+ }
8
+ const j = {
9
+ en: {
10
+ titleDeposit: "Deposit",
11
+ loading: "Loading, please wait ..."
12
+ },
13
+ "zh-hk": {
14
+ titleDeposit: "訂金",
15
+ loading: "加載請稍候…"
16
+ },
17
+ fr: {
18
+ titleDeposit: "Dépôt",
19
+ loading: "Chargement, veuillez patienter ..."
20
+ },
21
+ tr: {
22
+ titleDeposit: "PARA YATIR",
23
+ loading: "Yükleniyor ..."
24
+ },
25
+ ro: {
26
+ titleDeposit: "Depunere",
27
+ loading: "Se încarcă..."
28
+ },
29
+ es: {
30
+ titleDeposit: "Deposita",
31
+ loading: "Cargando ..."
32
+ },
33
+ pt: {
34
+ titleDeposit: "Depósito",
35
+ loading: "Carregando, por favor espere ..."
36
+ },
37
+ hr: {
38
+ titleDeposit: "Uplata",
39
+ loading: "Učitavanje"
40
+ },
41
+ "pt-br": {
42
+ titleDeposit: "Depositar",
43
+ Loading: "Carregando, por favor espere..."
44
+ },
45
+ "es-mx": {
46
+ titleDeposit: "Depositar",
47
+ Loading: "Cargando, por favor espere..."
48
+ }
49
+ };
50
+ function ce(i) {
51
+ te(i, "svelte-1dxvsb", ".DepositWrapper.svelte-1dxvsb.svelte-1dxvsb{background-color:var(--emw-color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px 50px 30px 50px;max-width:100%;height:var(--dynamic-height)}.DepositWrapper.DepositWrapperMobile.svelte-1dxvsb.svelte-1dxvsb{padding:20px 15px;max-width:unset;height:var(--dynamic-height)}.MenuReturnButton.svelte-1dxvsb.svelte-1dxvsb{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton.svelte-1dxvsb svg.svelte-1dxvsb{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.DepositTitle.svelte-1dxvsb.svelte-1dxvsb{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.DepositTitleMobile.svelte-1dxvsb.svelte-1dxvsb{font-size:var(--emw--size-standard, 16px)}.DepositTitleNone.svelte-1dxvsb.svelte-1dxvsb{display:none}.DepositIframeWrapper.svelte-1dxvsb iframe.svelte-1dxvsb{border:none;width:100%;height:85vh;border-radius:var(--emw--border-radius-large, 20px)}");
52
+ }
53
+ function de(i) {
54
+ let e, s, n, a, o, m, d, p, y, l, r = (
55
+ /*$_*/
56
+ i[4]("titleDeposit") + ""
57
+ ), h, v, D;
58
+ return {
59
+ c() {
60
+ e = x("div"), s = _("svg"), n = _("defs"), a = _("style"), o = C(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), m = _("g"), d = _("g"), p = _("path"), y = L(), l = x("h2"), h = C(r), c(p, "class", "aaa"), c(p, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), c(p, "transform", "translate(15 15) rotate(180)"), c(d, "transform", "translate(20 158)"), c(m, "transform", "translate(-20 -158)"), c(s, "xmlns", "http://www.w3.org/2000/svg"), c(s, "width", "15"), c(s, "height", "15"), c(s, "viewBox", "0 0 15 15"), c(s, "class", "svelte-1dxvsb"), c(l, "class", "DepositTitleMobile svelte-1dxvsb"), c(e, "class", "MenuReturnButton svelte-1dxvsb");
61
+ },
62
+ m(g, M) {
63
+ k(g, e, M), u(e, s), u(s, n), u(n, a), u(a, o), u(s, m), u(m, d), u(d, p), u(e, y), u(e, l), u(l, h), v || (D = re(
64
+ e,
65
+ "click",
66
+ /*click_handler*/
67
+ i[17]
68
+ ), v = !0);
69
+ },
70
+ p(g, M) {
71
+ M & /*$_*/
72
+ 16 && r !== (r = /*$_*/
73
+ g[4]("titleDeposit") + "") && E(h, r);
74
+ },
75
+ d(g) {
76
+ g && S(e), v = !1, D();
77
+ }
78
+ };
79
+ }
80
+ function he(i) {
81
+ let e, s, n;
82
+ return {
83
+ c() {
84
+ e = x("div"), s = x("iframe"), A(s.src, n = /*iframeUrl*/
85
+ i[3]) || c(s, "src", n), c(s, "title", "Deposit Iframe"), c(s, "class", "svelte-1dxvsb"), c(e, "class", "DepositIframeWrapper svelte-1dxvsb");
86
+ },
87
+ m(a, o) {
88
+ k(a, e, o), u(e, s);
89
+ },
90
+ p(a, o) {
91
+ o & /*iframeUrl*/
92
+ 8 && !A(s.src, n = /*iframeUrl*/
93
+ a[3]) && c(s, "src", n);
94
+ },
95
+ d(a) {
96
+ a && S(e);
97
+ }
98
+ };
99
+ }
100
+ function ue(i) {
101
+ let e, s = (
102
+ /*$_*/
103
+ i[4]("loading") + ""
104
+ ), n;
105
+ return {
106
+ c() {
107
+ e = x("p"), n = C(s);
108
+ },
109
+ m(a, o) {
110
+ k(a, e, o), u(e, n);
111
+ },
112
+ p(a, o) {
113
+ o & /*$_*/
114
+ 16 && s !== (s = /*$_*/
115
+ a[4]("loading") + "") && E(n, s);
116
+ },
117
+ d(a) {
118
+ a && S(e);
119
+ }
120
+ };
121
+ }
122
+ function pe(i) {
123
+ let e, s, n, a = (
124
+ /*$_*/
125
+ i[4]("titleDeposit") + ""
126
+ ), o, m, d = (
127
+ /*isMobile*/
128
+ i[5] && de(i)
129
+ );
130
+ function p(r, h) {
131
+ return (
132
+ /*isLoading*/
133
+ r[1] ? ue : he
134
+ );
135
+ }
136
+ let y = p(i), l = y(i);
137
+ return {
138
+ c() {
139
+ e = x("div"), d && d.c(), s = L(), n = x("h2"), o = C(a), m = L(), l.c(), c(n, "class", "DepositTitle " + /*isMobile*/
140
+ (i[5] ? "DepositTitleNone" : "") + " svelte-1dxvsb"), c(e, "class", "DepositWrapper " + /*isMobile*/
141
+ (i[5] ? "DepositWrapperMobile" : "") + " svelte-1dxvsb"), P(
142
+ e,
143
+ "--dynamic-height",
144
+ /*dynamicHeight*/
145
+ i[2]
146
+ );
147
+ },
148
+ m(r, h) {
149
+ k(r, e, h), d && d.m(e, null), u(e, s), u(e, n), u(n, o), u(e, m), l.m(e, null), i[18](e);
150
+ },
151
+ p(r, [h]) {
152
+ /*isMobile*/
153
+ r[5] && d.p(r, h), h & /*$_*/
154
+ 16 && a !== (a = /*$_*/
155
+ r[4]("titleDeposit") + "") && E(o, a), y === (y = p(r)) && l ? l.p(r, h) : (l.d(1), l = y(r), l && (l.c(), l.m(e, null))), h & /*dynamicHeight*/
156
+ 4 && P(
157
+ e,
158
+ "--dynamic-height",
159
+ /*dynamicHeight*/
160
+ r[2]
161
+ );
162
+ },
163
+ i: z,
164
+ o: z,
165
+ d(r) {
166
+ r && S(e), d && d.d(), l.d(), i[18](null);
167
+ }
168
+ };
169
+ }
170
+ function ge(i, e, s) {
171
+ let n, a;
172
+ se(i, le, (t) => s(4, a = t));
173
+ let { endpoint: o = "" } = e, { session: m = "" } = e, { playerid: d = "" } = e, { lang: p = "en" } = e, { hasdefaultamount: y = "" } = e, { clientstyling: l = "" } = e, { clientstylingurl: r = "" } = e, { translationurl: h = "" } = e, { playercurrency: v = "" } = e, { shortcashierenabled: D = "false" } = e, g, M = window.navigator.userAgent, R = ie(M) !== "PC", B = !0, F, T = 0, U = "";
174
+ const G = () => {
175
+ fetch(h).then((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(j).forEach((t) => {
184
+ W(t, j[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
+ s(7, v = t.data.profileDetails.currency);
193
+ break;
194
+ }
195
+ switch (t.data["MMFE:setQuickDepositHeight"] && s(2, F = t.data["MMFE:setQuickDepositHeight"].toString() + "px"), t.data["MMFE:openFullCashier"] === "true" && (window.postMessage({ type: "GoToDeposit" }, window.location.href), window.postMessage({ type: "CloseShortCashier" }, window.location.href)), t.data.redirect) {
196
+ case "mm-hc-casino":
197
+ window.postMessage({ type: "GoToCasino" }, window.location.href);
198
+ break;
199
+ case "mm-hc-sports":
200
+ window.postMessage({ type: "GoToSports" }, window.location.href);
201
+ break;
202
+ case "mm-hc-contact":
203
+ window.postMessage({ type: "GoToCustomerSupport" }, window.location.href), window.postMessage({ type: "CloseShortCashier" }, window.location.href);
204
+ break;
205
+ case "mm-hc-back-to-merchant":
206
+ window.postMessage({ type: "GoToHomepage" }, window.location.href);
207
+ break;
208
+ case "mm-wm-hc-init-deposit":
209
+ window.postMessage(
210
+ {
211
+ type: "RedirectWithdrawDepositCloseModal"
212
+ },
213
+ window.location.href
214
+ );
215
+ break;
216
+ case "mm-wm-hc-init-deposit-quick":
217
+ window.postMessage({ type: "CloseShortCashier" }, window.location.href);
218
+ break;
219
+ }
220
+ }
221
+ }, N = () => {
222
+ let t = new URL(`${o}/v1/player/${d}/hostedcashier/initializedeposit?showBonusSelectionInput=true`);
223
+ if (t.searchParams.append("language", p), n && t.searchParams.append("isShortCashier", D), y)
224
+ switch (v) {
225
+ case "USD":
226
+ T = 0.4;
227
+ break;
228
+ case "CDF":
229
+ T = 1e3;
230
+ break;
231
+ }
232
+ let w = {
233
+ method: "POST",
234
+ headers: {
235
+ "X-SessionId": m,
236
+ currency: v || "EUR",
237
+ amount: T,
238
+ cashierMode: "Default",
239
+ IsShortCashier: D,
240
+ accept: "application/json"
241
+ }
242
+ };
243
+ fetch(t.href, w).then((f) => f.json()).then(
244
+ (f) => {
245
+ s(1, B = !1), s(3, U = f.CashierUrl);
246
+ },
247
+ (f) => {
248
+ console.error(f);
249
+ }
250
+ );
251
+ }, O = () => {
252
+ oe(p);
253
+ }, q = () => {
254
+ let t = document.createElement("style");
255
+ t.innerHTML = l, g.appendChild(t);
256
+ }, Q = () => {
257
+ let t = new URL(r), 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
+ ae(() => (window.addEventListener("message", I, !1), () => {
268
+ window.removeEventListener("message", I);
269
+ }));
270
+ const Y = () => H();
271
+ function V(t) {
272
+ ne[t ? "unshift" : "push"](() => {
273
+ g = t, s(0, g);
274
+ });
275
+ }
276
+ return i.$$set = (t) => {
277
+ "endpoint" in t && s(8, o = t.endpoint), "session" in t && s(9, m = t.session), "playerid" in t && s(10, d = t.playerid), "lang" in t && s(11, p = t.lang), "hasdefaultamount" in t && s(12, y = t.hasdefaultamount), "clientstyling" in t && s(13, l = t.clientstyling), "clientstylingurl" in t && s(14, r = t.clientstylingurl), "translationurl" in t && s(15, h = t.translationurl), "playercurrency" in t && s(7, v = t.playercurrency), "shortcashierenabled" in t && s(16, D = t.shortcashierenabled);
278
+ }, i.$$.update = () => {
279
+ i.$$.dirty & /*lang*/
280
+ 2048 && p && O(), i.$$.dirty & /*shortcashierenabled*/
281
+ 65536 && (n = D.toLocaleLowerCase() === "true"), i.$$.dirty & /*clientstylingurl, customStylingContainer*/
282
+ 16385 && r && g && Q(), i.$$.dirty & /*clientstyling, customStylingContainer*/
283
+ 8193 && l && g && q(), i.$$.dirty & /*translationurl*/
284
+ 32768 && h && G(), i.$$.dirty & /*session, playerid, endpoint, playercurrency, lang, shortcashierenabled*/
285
+ 69504 && m && d && o && v && p && D && N();
286
+ }, [
287
+ g,
288
+ B,
289
+ F,
290
+ U,
291
+ a,
292
+ R,
293
+ H,
294
+ v,
295
+ o,
296
+ m,
297
+ d,
298
+ p,
299
+ y,
300
+ l,
301
+ r,
302
+ h,
303
+ D,
304
+ Y,
305
+ V
306
+ ];
307
+ }
308
+ class me extends J {
309
+ constructor(e) {
310
+ super(), K(
311
+ this,
312
+ e,
313
+ ge,
314
+ pe,
315
+ ee,
316
+ {
317
+ endpoint: 8,
318
+ session: 9,
319
+ playerid: 10,
320
+ lang: 11,
321
+ hasdefaultamount: 12,
322
+ clientstyling: 13,
323
+ clientstylingurl: 14,
324
+ translationurl: 15,
325
+ playercurrency: 7,
326
+ shortcashierenabled: 16
327
+ },
328
+ ce
329
+ );
330
+ }
331
+ get endpoint() {
332
+ return this.$$.ctx[8];
333
+ }
334
+ set endpoint(e) {
335
+ this.$$set({ endpoint: e }), b();
336
+ }
337
+ get session() {
338
+ return this.$$.ctx[9];
339
+ }
340
+ set session(e) {
341
+ this.$$set({ session: e }), b();
342
+ }
343
+ get playerid() {
344
+ return this.$$.ctx[10];
345
+ }
346
+ set playerid(e) {
347
+ this.$$set({ playerid: e }), b();
348
+ }
349
+ get lang() {
350
+ return this.$$.ctx[11];
351
+ }
352
+ set lang(e) {
353
+ this.$$set({ lang: e }), b();
354
+ }
355
+ get hasdefaultamount() {
356
+ return this.$$.ctx[12];
357
+ }
358
+ set hasdefaultamount(e) {
359
+ this.$$set({ hasdefaultamount: e }), b();
360
+ }
361
+ get clientstyling() {
362
+ return this.$$.ctx[13];
363
+ }
364
+ set clientstyling(e) {
365
+ this.$$set({ clientstyling: e }), b();
366
+ }
367
+ get clientstylingurl() {
368
+ return this.$$.ctx[14];
369
+ }
370
+ set clientstylingurl(e) {
371
+ this.$$set({ clientstylingurl: e }), b();
372
+ }
373
+ get translationurl() {
374
+ return this.$$.ctx[15];
375
+ }
376
+ set translationurl(e) {
377
+ this.$$set({ translationurl: e }), b();
378
+ }
379
+ get playercurrency() {
380
+ return this.$$.ctx[7];
381
+ }
382
+ set playercurrency(e) {
383
+ this.$$set({ playercurrency: e }), b();
384
+ }
385
+ get shortcashierenabled() {
386
+ return this.$$.ctx[16];
387
+ }
388
+ set shortcashierenabled(e) {
389
+ this.$$set({ shortcashierenabled: e }), b();
390
+ }
391
+ }
392
+ $(me, { endpoint: {}, session: {}, playerid: {}, lang: {}, hasdefaultamount: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {}, shortcashierenabled: {} }, [], [], !0);
393
+ export {
394
+ me as default
395
+ };
@@ -0,0 +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)})}
@@ -0,0 +1,16 @@
1
+ if (typeof window != "undefined") {
2
+ let n = function(t) {
3
+ return function(...s) {
4
+ try {
5
+ return t.apply(this, s);
6
+ } catch (e) {
7
+ 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"))
8
+ return !1;
9
+ throw e;
10
+ }
11
+ };
12
+ };
13
+ customElements.define = n(customElements.define), import("../components/CasinoHeaderController-C7smG_gA.js").then(({ default: t }) => {
14
+ !customElements.get("casino-header-controller") && customElements.define("casino-header-controller", t.element);
15
+ });
16
+ }
package/package.json CHANGED
@@ -1,41 +1,28 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-header-controller",
3
- "version": "1.44.0",
4
- "main": "dist/casino-header-controller.js",
5
- "svelte": "src/index.ts",
6
- "scripts": {
7
- "start": "sirv public",
8
- "build": "cross-env NODE_ENV=production rollup -c",
9
- "dev": "cross-env NODE_ENV=\"development\" rollup -c -w",
10
- "validate": "svelte-check",
11
- "test": "echo"
12
- },
13
- "devDependencies": {
14
- "@rollup/plugin-babel": "^5.3.0",
15
- "@rollup/plugin-commonjs": "^16.0.0",
16
- "@rollup/plugin-image": "2.1.0",
17
- "@rollup/plugin-node-resolve": "^10.0.0",
18
- "@rollup/plugin-typescript": "^6.0.0",
19
- "@tsconfig/svelte": "^1.0.0",
20
- "rollup": "^2.3.4",
21
- "rollup-plugin-dev-server": "^0.4.3",
22
- "rollup-plugin-livereload": "^2.0.0",
23
- "rollup-plugin-svelte": "^7.0.0",
24
- "rollup-plugin-terser": "^7.0.0",
25
- "rollup-plugin-uglify": "^6.0.4",
26
- "svelte-check": "^1.0.0",
27
- "svelte-preprocess": "^5.0.0",
28
- "tslib": "^2.0.0",
29
- "typescript": "^3.9.3"
30
- },
31
- "dependencies": {
32
- "cross-env": "^7.0.3",
33
- "event-source-polyfill": "^1.0.25",
34
- "sirv-cli": "^1.0.0",
35
- "svelte": "^3.0.0"
3
+ "version": "1.45.0",
4
+ "type": "module",
5
+ "main": "es2015/casino-header-controller.cjs",
6
+ "module": "es2015/casino-header-controller.js",
7
+ "exports": {
8
+ ".": {
9
+ "import": "./es2015/casino-header-controller.js",
10
+ "require": "./es2015/casino-header-controller.cjs"
11
+ },
12
+ "./es2015/casino-header-controller.cjs": "./es2015/casino-header-controller.cjs"
36
13
  },
14
+ "files": [
15
+ "es2015/",
16
+ "components"
17
+ ],
37
18
  "publishConfig": {
38
19
  "access": "public"
39
20
  },
40
- "gitHead": "701410f2b76dfe1ee4038f799b1e8e340c85cdb5"
21
+ "dependencies": {
22
+ "@everymatrix/casino-slider": "1.0.72",
23
+ "@everymatrix/casino-hamburger-menu": "1.0.72",
24
+ "@everymatrix/player-account-balance-modal": "1.0.72",
25
+ "@everymatrix/player-deposit": "1.0.72",
26
+ "@everymatrix/user-deposit-withdrawal": "*"
27
+ }
41
28
  }
package/CHANGELOG.md DELETED
@@ -1,12 +0,0 @@
1
-
2
- ## casino-header-controller widget changelogs
3
-
4
- | Version | Release date | Impacted areas | Changes |
5
- | ------- | ------------ | ----------------------------- | --------------------------------------- |
6
- | 1.40.0 | Mon Sep 16 2024 | casino-header-controller | feat(EMFE-32624)(casino-header-controller): integrate gamification dropdown |
7
- | 1.37.9 | Tue Aug 20 2024 | casino-header-controller | fix(EMFE-32284)(casino-header-controller,casino-integrated-game-page,player-account-controller): pass attributes for custom styling from svelte wigets to stencil widget |
8
- | 1.31.0 | Wed May 22 2024 | casino-header-controller | fix(EMFE-31064)(casino-header-controller,casino-slider,player-account-balance-modal,player-accound-menu,player-deposit): Change deposit TR translation from DEPOZITO to PARA YATIR |
9
- | 1.29.4 | Wed Apr 17 2024 | casino-header-controller | fix(EMFE-30724)(casino-header-controller,casino-hamburger-menu): corelate the... |
10
- | 1.26.0 | Fri Feb 02 2024 | casino-header-controller | fix(EMFE-28286)(casino-header-controller): change condition for properly flow |
11
- | 1.23.0 | Thu Dec 21 2023 | casino-header-controller | chore(EMFE-28286)(casino-header-controller,player-deposit): add option to deposit in small cashier <br /> fix(EMFE-28542)(casino-header-controller): add two way communication for... |
12
- | 1.13.20 | Thu Aug 10 2023 | casino-header-controller | 1: chore(EMFE-20670)(all svelte widgets): cleanup /* 2: chore(EMFE-20670)(all svelte widgets): add changelogs /* 3: chore(EMFE-20670)(all svelte widgets): add changelogs /* 4: chore(EMFE-20670)(casino-header-controller): regenerate changelogs.md /* 5: chore(EMFE-20670): regenerate changelogs.md /* 6: fix(EMFE-20670)(casino-lobby): changelogs work |
package/README.md DELETED
File without changes