@everymatrix/casino-header-controller 1.53.12 → 1.54.0
Sign up to get free protection for your applications and to get access to all the features.
- package/components/CasinoHamburgerMenu-Cf2TrArs.cjs +8 -0
- package/components/{CasinoHamburgerMenu-Didvw1sl.js → CasinoHamburgerMenu-qYeWUDPR.js} +1089 -1051
- package/components/{CasinoHeaderController-CFx6e2bY.js → CasinoHeaderController-BTm7ahEo.js} +353 -330
- package/components/CasinoHeaderController-BYZ7x9Ws.cjs +13 -0
- package/components/CasinoSlider-C4MiMF_z.cjs +1 -0
- package/components/{CasinoSlider-CTCcKhAJ.js → CasinoSlider-lJXP6bIe.js} +214 -208
- package/components/PlayerAccountBalanceModal-BaxHrMW5.cjs +13 -0
- package/components/{PlayerAccountBalanceModal-CljMbxpF.js → PlayerAccountBalanceModal-DdTG-RGU.js} +435 -406
- package/components/PlayerDeposit-64Q0JNEY.cjs +1 -0
- package/components/{PlayerDeposit-BDWEQLoE.js → PlayerDeposit-D67DkA6T.js} +1 -1
- package/es2015/casino-header-controller.cjs +1 -0
- package/es2015/casino-header-controller.js +16 -0
- package/package.json +15 -12
- package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
- package/stencil/{index-33f005e1-BLR6jtB3.js → index-33f005e1-C1RAKo1w.js} +239 -223
- package/stencil/index-33f005e1-DV6BM6vD.cjs +1 -0
- package/stencil/{user-deposit-withdrawal-DafvBY_z.js → user-deposit-withdrawal-CcI90qLW.js} +197 -175
- package/stencil/user-deposit-withdrawal-PVgJw2H0.cjs +59 -0
- package/esnext/casino-header-controller.js +0 -14
@@ -0,0 +1,59 @@
|
|
1
|
+
"use strict";var Q=(i,p,u)=>new Promise((l,g)=>{var L=c=>{try{m(u.next(c))}catch(D){g(D)}},w=c=>{try{m(u.throw(c))}catch(D){g(D)}},m=c=>c.done?l(c.value):Promise.resolve(c.value).then(L,w);m((u=u.apply(i,p)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("./index-33f005e1-DV6BM6vD.cjs"),oe=require("./app-globals-0f993ce5-sCt45RkC.cjs");var K=typeof document!="undefined"?document.currentScript:null,se=()=>{const i=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:K&&K.tagName.toUpperCase()==="SCRIPT"&&K.src||new URL("stencil/user-deposit-withdrawal-PVgJw2H0.cjs",document.baseURI).href,p={};return i!==""&&(p.resourcesUrl=new URL(".",i).href),v.promiseResolve(p)};se().then(i=>Q(exports,null,function*(){return yield oe.globalScripts(),v.bootstrapLazy([["user-deposit-withdrawal",[[1,"user-deposit-withdrawal",{clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],endpoint:[513],type:[513],channel:[513],language:[513],productType:[513,"product-type"],userId:[513,"user-id"],session:[513],successUrl:[513,"success-url"],cancelUrl:[513,"cancel-url"],failUrl:[513,"fail-url"],sportsUrl:[513,"sports-url"],casinoUrl:[513,"casino-url"],contactUrl:[513,"contact-url"],depositUrl:[513,"deposit-url"],currency:[513],showBonusSelectionInput:[513,"show-bonus-selection-input"],isShortCashier:[516,"is-short-cashier"],homeUrl:[513,"home-url"],beforeRedirect:[16],limitStylingAppends:[32],dynamicHeight:[32],cashierInfoUrl:[32]},null,{session:["watchLoadWidget"],userId:["watchLoadWidget"],isShortCashier:["watchLoadWidget"],currency:["watchLoadWidget"],showBonusSelectionInput:["watchLoadWidget"]}]]]],i)}));const de="en",ue=["ro","en","fr","hr","en-us","es-mx","pt-br","es","de","pt","tr"],ee={en:{Deposit:"Deposit",Withdraw:"Withdraw",denyDeposit:"Please be informed that currently you are not allowed to initiate depost transactions.",denyWithdrawal:"Please be informed that currently you are not allowed to initiate withdrawal transactions.",notFoundErrorCode:"Not found error code",errorCode21122:"Dear player! Please be informed that currently you are not allowed to initiate withdrawal transaction from your player account. Error Code: 21122",errorCode21123:"Dear player! Please be informed that currently you are not allowed to make a deposit to your player account. Error Code:21123"},"en-us":{Deposit:"Deposit",Withdraw:"Withdraw",denyDeposit:"Please be informed that currently you are not allowed to initiate depost transactions.",denyWithdrawal:"Please be informed that currently you are not allowed to initiate withdrawal transactions.",notFoundErrorCode:"Not found error code",errorCode21122:"Dear player! Please be informed that currently you are not allowed to initiate withdrawal transaction from your player account. Error Code: 21122",errorCode21123:"Dear player! Please be informed that currently you are not allowed to make a deposit to your player account. Error Code:21123"},ro:{Deposit:"Depunere",Withdraw:"Retragere",denyDeposit:"Vă informăm că în prezent nu aveți permisiunea de a iniția tranzacții de depunere.",denyWithdrawal:"Vă informăm că în prezent nu aveți permisiunea de a iniția tranzacții de retragere.",notFoundErrorCode:"Cod de eroare negăsit",errorCode21122:"Stimate jucător! Vă informăm că în prezent nu aveți permisiunea de a iniția o tranzacție de retragere din contul dvs. de jucător. Cod de eroare: 21122",errorCode21123:"Stimate jucător! Vă informăm că în prezent nu aveți permisiunea de a efectua o depunere în contul dvs. de jucător. Cod de eroare: 21123"},fr:{Deposit:"Dépôt",Withdraw:"Retrait",denyDeposit:"Veuillez noter qu’actuellement vous n’êtes pas autorisé à initier des transactions de dépôt.",denyWithdrawal:"Veuillez noter qu’actuellement vous n’êtes pas autorisé à initier des transactions de retrait.",notFoundErrorCode:"Code d’erreur introuvable",errorCode21122:"Cher joueur ! Veuillez noter qu’actuellement vous n’êtes pas autorisé à initier une transaction de retrait depuis votre compte joueur. Code d’erreur : 21122",errorCode21123:"Cher joueur ! Veuillez noter qu’actuellement vous n’êtes pas autorisé à effectuer un dépôt sur votre compte joueur. Code d’erreur : 21123"},hr:{Deposit:"Uplata",Withdraw:"Isplata",denyDeposit:"Obavještavamo Vas da trenutno nemate mogućnost uplata.",denyWithdrawal:"Obavještavamo vas da trenutno niste ovlašteni za pokretanje transakcija isplate.",notFoundErrorCode:"Not found error code",errorCode21122:"Poštovani, trenutno nije moguće izvršiti isplatu sa Vašeg računa. Error Code: 21122",errorCode21123:"Poštovani, trenutno nije moguće izvršiti uplatu na Vaš račun. Error Code:21123"},de:{Deposit:"Einzahlung",Withdraw:"Abhebung",denyDeposit:"Bitte beachten Sie, dass Sie derzeit keine Einzahlungs-Transaktionen durchführen dürfen.",denyWithdrawal:"Bitte beachten Sie, dass Sie derzeit keine Abhebungs-Transaktionen durchführen dürfen.",notFoundErrorCode:"Fehlercode nicht gefunden",errorCode21122:"Sehr geehrter Spieler! Bitte beachten Sie, dass Sie derzeit keine Abhebung von Ihrem Spielerkonto durchführen dürfen. Fehlercode: 21122",errorCode21123:"Sehr geehrter Spieler! Bitte beachten Sie, dass Sie derzeit keine Einzahlung auf Ihr Spielerkonto durchführen dürfen. Fehlercode: 21123"},es:{Deposit:"Depósito",Withdraw:"Retiro",denyDeposit:"Le informamos que actualmente no tiene permitido iniciar transacciones de depósito.",denyWithdrawal:"Le informamos que actualmente no tiene permitido iniciar transacciones de retiro.",notFoundErrorCode:"Código de error no encontrado",errorCode21122:"¡Estimado jugador! Le informamos que actualmente no tiene permitido iniciar una transacción de retiro desde su cuenta de jugador. Código de error: 21122",errorCode21123:"¡Estimado jugador! Le informamos que actualmente no tiene permitido realizar un depósito en su cuenta de jugador. Código de error: 21123"},pt:{Deposit:"Depósito",Withdraw:"Levantamento",denyDeposit:"Informamos que atualmente não tem permissão para iniciar transações de depósito.",denyWithdrawal:"Informamos que atualmente não tem permissão para iniciar transações de levantamento.",notFoundErrorCode:"Código de erro não encontrado",errorCode21122:"Caro jogador! Informamos que atualmente não tem permissão para iniciar uma transação de levantamento na sua conta de jogador. Código de erro: 21122",errorCode21123:"Caro jogador! Informamos que atualmente não tem permissão para realizar um depósito na sua conta de jogador. Código de erro: 21123"},"es-mx":{Deposit:"Depósito",Withdraw:"Retiro",denyDeposit:"Le informamos que actualmente no tiene permitido iniciar transacciones de depósito.",denyWithdrawal:"Le informamos que actualmente no tiene permitido iniciar transacciones de retiro.",notFoundErrorCode:"Código de error no encontrado",errorCode21122:"¡Estimado jugador! Le informamos que actualmente no tiene permitido iniciar una transacción de retiro desde su cuenta de jugador. Código de error: 21122",errorCode21123:"¡Estimado jugador! Le informamos que actualmente no tiene permitido realizar un depósito en su cuenta de jugador. Código de error: 21123"},"pt-br":{Deposit:"Depósito",Withdraw:"Saque",denyDeposit:"Informamos que atualmente você não tem permissão para iniciar transações de depósito.",denyWithdrawal:"Informamos que atualmente você não tem permissão para iniciar transações de saque.",notFoundErrorCode:"Código de erro não encontrado",errorCode21122:"Caro jogador! Informamos que atualmente você não tem permissão para iniciar uma transação de saque em sua conta de jogador. Código de erro: 21122",errorCode21123:"Caro jogador! Informamos que atualmente você não tem permissão para realizar um depósito em sua conta de jogador. Código de erro: 21123"},tr:{Deposit:"Para Yatırma",Withdraw:"Para Çekme",denyDeposit:"Lütfen şu anda para yatırma işlemi başlatamayacağınızı bilgilerinize sunarız.",denyWithdrawal:"Lütfen şu anda para çekme işlemi başlatamayacağınızı bilgilerinize sunarız.",notFoundErrorCode:"Hata kodu bulunamadı",errorCode21122:"Değerli oyuncumuz! Lütfen şu anda oyuncu hesabınızdan para çekme işlemi başlatamayacağınızı bilgilerinize sunarız. Hata Kodu: 21122",errorCode21123:"Değerli oyuncumuz! Lütfen şu anda oyuncu hesabınıza para yatırma işlemi yapamayacağınızı bilgilerinize sunarız. Hata Kodu: 21123"}},ce=i=>new Promise(p=>{fetch(i).then(u=>u.json()).then(u=>{Object.keys(u).forEach(l=>{for(let g in u[l])ee[l][g]=u[l][g]}),p(!0)})}),I=(i,p)=>{const u=p;return ee[u!==void 0&&ue.includes(u)?u:de][i]},le=i=>!!(i.toLowerCase().match(/android/i)||i.toLowerCase().match(/blackberry|bb/i)||i.toLowerCase().match(/iphone|ipad|ipod/i)||i.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));var te=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},re={exports:{}};(function(i,p){(function(u,l){i.exports=l()})(te,function(){var u=1e3,l=6e4,g=36e5,L="millisecond",w="second",m="minute",c="hour",D="day",q="week",M="month",N="quarter",k="year",O="date",o="Invalid Date",W=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,F=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,H={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(a){var r=["th","st","nd","rd"],e=a%100;return"["+a+(r[(e-20)%10]||r[e]||r[0])+"]"}},U=function(a,r,e){var n=String(a);return!n||n.length>=r?a:""+Array(r+1-n.length).join(e)+a},G={s:U,z:function(a){var r=-a.utcOffset(),e=Math.abs(r),n=Math.floor(e/60),t=e%60;return(r<=0?"+":"-")+U(n,2,"0")+":"+U(t,2,"0")},m:function a(r,e){if(r.date()<e.date())return-a(e,r);var n=12*(e.year()-r.year())+(e.month()-r.month()),t=r.clone().add(n,M),s=e-t<0,d=r.clone().add(n+(s?-1:1),M);return+(-(n+(e-t)/(s?t-d:d-t))||0)},a:function(a){return a<0?Math.ceil(a)||0:Math.floor(a)},p:function(a){return{M,y:k,w:q,d:D,D:O,h:c,m,s:w,ms:L,Q:N}[a]||String(a||"").toLowerCase().replace(/s$/,"")},u:function(a){return a===void 0}},j="en",z={};z[j]=H;var P="$isDayjsObject",A=function(a){return a instanceof Z||!(!a||!a[P])},E=function a(r,e,n){var t;if(!r)return j;if(typeof r=="string"){var s=r.toLowerCase();z[s]&&(t=s),e&&(z[s]=e,t=s);var d=r.split("-");if(!t&&d.length>1)return a(d[0])}else{var f=r.name;z[f]=r,t=f}return!n&&t&&(j=t),t||!n&&j},C=function(a,r){if(A(a))return a.clone();var e=typeof r=="object"?r:{};return e.date=a,e.args=arguments,new Z(e)},h=G;h.l=E,h.i=A,h.w=function(a,r){return C(a,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var Z=function(){function a(e){this.$L=E(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[P]=!0}var r=a.prototype;return r.parse=function(e){this.$d=function(n){var t=n.date,s=n.utc;if(t===null)return new Date(NaN);if(h.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t=="string"&&!/Z$/i.test(t)){var d=t.match(W);if(d){var f=d[2]-1||0,y=(d[7]||"0").substring(0,3);return s?new Date(Date.UTC(d[1],f,d[3]||1,d[4]||0,d[5]||0,d[6]||0,y)):new Date(d[1],f,d[3]||1,d[4]||0,d[5]||0,d[6]||0,y)}}return new Date(t)}(e),this.init()},r.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},r.$utils=function(){return h},r.isValid=function(){return this.$d.toString()!==o},r.isSame=function(e,n){var t=C(e);return this.startOf(n)<=t&&t<=this.endOf(n)},r.isAfter=function(e,n){return C(e)<this.startOf(n)},r.isBefore=function(e,n){return this.endOf(n)<C(e)},r.$g=function(e,n,t){return h.u(e)?this[n]:this.set(t,e)},r.unix=function(){return Math.floor(this.valueOf()/1e3)},r.valueOf=function(){return this.$d.getTime()},r.startOf=function(e,n){var t=this,s=!!h.u(n)||n,d=h.p(e),f=function(R,b){var x=h.w(t.$u?Date.UTC(t.$y,b,R):new Date(t.$y,b,R),t);return s?x:x.endOf(D)},y=function(R,b){return h.w(t.toDate()[R].apply(t.toDate("s"),(s?[0,0,0,0]:[23,59,59,999]).slice(b)),t)},$=this.$W,S=this.$M,T=this.$D,Y="set"+(this.$u?"UTC":"");switch(d){case k:return s?f(1,0):f(31,11);case M:return s?f(1,S):f(0,S+1);case q:var _=this.$locale().weekStart||0,B=($<_?$+7:$)-_;return f(s?T-B:T+(6-B),S);case D:case O:return y(Y+"Hours",0);case c:return y(Y+"Minutes",1);case m:return y(Y+"Seconds",2);case w:return y(Y+"Milliseconds",3);default:return this.clone()}},r.endOf=function(e){return this.startOf(e,!1)},r.$set=function(e,n){var t,s=h.p(e),d="set"+(this.$u?"UTC":""),f=(t={},t[D]=d+"Date",t[O]=d+"Date",t[M]=d+"Month",t[k]=d+"FullYear",t[c]=d+"Hours",t[m]=d+"Minutes",t[w]=d+"Seconds",t[L]=d+"Milliseconds",t)[s],y=s===D?this.$D+(n-this.$W):n;if(s===M||s===k){var $=this.clone().set(O,1);$.$d[f](y),$.init(),this.$d=$.set(O,Math.min(this.$D,$.daysInMonth())).$d}else f&&this.$d[f](y);return this.init(),this},r.set=function(e,n){return this.clone().$set(e,n)},r.get=function(e){return this[h.p(e)]()},r.add=function(e,n){var t,s=this;e=Number(e);var d=h.p(n),f=function(S){var T=C(s);return h.w(T.date(T.date()+Math.round(S*e)),s)};if(d===M)return this.set(M,this.$M+e);if(d===k)return this.set(k,this.$y+e);if(d===D)return f(1);if(d===q)return f(7);var y=(t={},t[m]=l,t[c]=g,t[w]=u,t)[d]||1,$=this.$d.getTime()+e*y;return h.w($,this)},r.subtract=function(e,n){return this.add(-1*e,n)},r.format=function(e){var n=this,t=this.$locale();if(!this.isValid())return t.invalidDate||o;var s=e||"YYYY-MM-DDTHH:mm:ssZ",d=h.z(this),f=this.$H,y=this.$m,$=this.$M,S=t.weekdays,T=t.months,Y=t.meridiem,_=function(b,x,V,J){return b&&(b[x]||b(n,s))||V[x].slice(0,J)},B=function(b){return h.s(f%12||12,b,"0")},R=Y||function(b,x,V){var J=b<12?"AM":"PM";return V?J.toLowerCase():J};return s.replace(F,function(b,x){return x||function(V){switch(V){case"YY":return String(n.$y).slice(-2);case"YYYY":return h.s(n.$y,4,"0");case"M":return $+1;case"MM":return h.s($+1,2,"0");case"MMM":return _(t.monthsShort,$,T,3);case"MMMM":return _(T,$);case"D":return n.$D;case"DD":return h.s(n.$D,2,"0");case"d":return String(n.$W);case"dd":return _(t.weekdaysMin,n.$W,S,2);case"ddd":return _(t.weekdaysShort,n.$W,S,3);case"dddd":return S[n.$W];case"H":return String(f);case"HH":return h.s(f,2,"0");case"h":return B(1);case"hh":return B(2);case"a":return R(f,y,!0);case"A":return R(f,y,!1);case"m":return String(y);case"mm":return h.s(y,2,"0");case"s":return String(n.$s);case"ss":return h.s(n.$s,2,"0");case"SSS":return h.s(n.$ms,3,"0");case"Z":return d}return null}(b)||d.replace(":","")})},r.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},r.diff=function(e,n,t){var s,d=this,f=h.p(n),y=C(e),$=(y.utcOffset()-this.utcOffset())*l,S=this-y,T=function(){return h.m(d,y)};switch(f){case k:s=T()/12;break;case M:s=T();break;case N:s=T()/3;break;case q:s=(S-$)/6048e5;break;case D:s=(S-$)/864e5;break;case c:s=S/g;break;case m:s=S/l;break;case w:s=S/u;break;default:s=S}return t?s:h.a(s)},r.daysInMonth=function(){return this.endOf(M).$D},r.$locale=function(){return z[this.$L]},r.locale=function(e,n){if(!e)return this.$L;var t=this.clone(),s=E(e,n,!0);return s&&(t.$L=s),t},r.clone=function(){return h.w(this.$d,this)},r.toDate=function(){return new Date(this.valueOf())},r.toJSON=function(){return this.isValid()?this.toISOString():null},r.toISOString=function(){return this.$d.toISOString()},r.toString=function(){return this.$d.toUTCString()},a}(),X=Z.prototype;return C.prototype=X,[["$ms",L],["$s",w],["$m",m],["$H",c],["$W",D],["$M",M],["$y",k],["$D",O]].forEach(function(a){X[a[1]]=function(r){return this.$g(r,a[0],a[1])}}),C.extend=function(a,r){return a.$i||(a(r,Z,C),a.$i=!0),C},C.locale=E,C.isDayjs=A,C.unix=function(a){return C(1e3*a)},C.en=z[j],C.Ls=z,C.p={},C})})(re);const ne=re.exports;var ie={exports:{}};(function(i,p){(function(u,l){i.exports=l()})(te,function(){var u="minute",l=/[+-]\d\d(?::?\d\d)?/g,g=/([+-]|\d\d)/g;return function(L,w,m){var c=w.prototype;m.utc=function(o){var W={date:o,utc:!0,args:arguments};return new w(W)},c.utc=function(o){var W=m(this.toDate(),{locale:this.$L,utc:!0});return o?W.add(this.utcOffset(),u):W},c.local=function(){return m(this.toDate(),{locale:this.$L,utc:!1})};var D=c.parse;c.parse=function(o){o.utc&&(this.$u=!0),this.$utils().u(o.$offset)||(this.$offset=o.$offset),D.call(this,o)};var q=c.init;c.init=function(){if(this.$u){var o=this.$d;this.$y=o.getUTCFullYear(),this.$M=o.getUTCMonth(),this.$D=o.getUTCDate(),this.$W=o.getUTCDay(),this.$H=o.getUTCHours(),this.$m=o.getUTCMinutes(),this.$s=o.getUTCSeconds(),this.$ms=o.getUTCMilliseconds()}else q.call(this)};var M=c.utcOffset;c.utcOffset=function(o,W){var F=this.$utils().u;if(F(o))return this.$u?0:F(this.$offset)?M.call(this):this.$offset;if(typeof o=="string"&&(o=function(j){j===void 0&&(j="");var z=j.match(l);if(!z)return null;var P=(""+z[0]).match(g)||["-",0,0],A=P[0],E=60*+P[1]+ +P[2];return E===0?0:A==="+"?E:-E}(o),o===null))return this;var H=Math.abs(o)<=16?60*o:o,U=this;if(W)return U.$offset=H,U.$u=o===0,U;if(o!==0){var G=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(U=this.local().add(H+G,u)).$offset=H,U.$x.$localOffset=G}else U=this.utc();return U};var N=c.format;c.format=function(o){var W=o||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return N.call(this,W)},c.valueOf=function(){var o=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*o},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var k=c.toDate;c.toDate=function(o){return o==="s"&&this.$offset?m(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():k.call(this)};var O=c.diff;c.diff=function(o,W,F){if(o&&this.$u===o.$u)return O.call(this,o,W,F);var H=this.local(),U=m(o).local();return O.call(H,U,W,F)}}})})(ie);const he=ie.exports,fe=`:host {
|
2
|
+
font: inherit;
|
3
|
+
display: block;
|
4
|
+
height: 100%;
|
5
|
+
overflow: hidden;
|
6
|
+
}
|
7
|
+
|
8
|
+
.CategoryTitle {
|
9
|
+
font-size: var(--emw--font-size-x-large, 26px);
|
10
|
+
color: var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));
|
11
|
+
}
|
12
|
+
|
13
|
+
.MenuReturnButton {
|
14
|
+
font: inherit;
|
15
|
+
color: var(--emw--color-gray-300, #58586B);
|
16
|
+
display: inline-flex;
|
17
|
+
align-items: center;
|
18
|
+
column-gap: 10px;
|
19
|
+
margin-bottom: 10px;
|
20
|
+
}
|
21
|
+
.MenuReturnButton svg {
|
22
|
+
fill: var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));
|
23
|
+
}
|
24
|
+
.MenuReturnButton h2.CategoryTitleMobile {
|
25
|
+
font-size: 16px;
|
26
|
+
color: var(--emw--pam-color-primary, var(--emw--color-primary, #D0046C));
|
27
|
+
}
|
28
|
+
|
29
|
+
.ErrorMessage {
|
30
|
+
color: var(--emw--pam-color-typography, var(--emw--color-typography, #FFFFFF));
|
31
|
+
}
|
32
|
+
|
33
|
+
.DepositWithdrawalWrapper {
|
34
|
+
width: 100%;
|
35
|
+
padding: 0;
|
36
|
+
margin: 0;
|
37
|
+
height: 100vh;
|
38
|
+
}
|
39
|
+
|
40
|
+
@container (max-width: 475px) {
|
41
|
+
.DepositWithdrawalWrapper {
|
42
|
+
height: 100vh;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
.ShortCashier.DepositWithdrawalWrapper {
|
46
|
+
height: 500px;
|
47
|
+
}
|
48
|
+
.ShortCashier.CategoryTitle.CategoryTitle {
|
49
|
+
margin-right: 20px;
|
50
|
+
padding-top: 20px;
|
51
|
+
color: ar(--emw--color-black, #000000);
|
52
|
+
}
|
53
|
+
.ShortCashier .ErrorMessage {
|
54
|
+
margin: auto;
|
55
|
+
width: 90%;
|
56
|
+
margin-top: 70px;
|
57
|
+
text-align: center;
|
58
|
+
color: var(--emw--color-black, #000000);
|
59
|
+
}`,pe=fe;ne.extend(he);const me=()=>{},ae=class{constructor(i){v.registerInstance(this,i),this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.currency="",this.showBonusSelectionInput="true",this.isShortCashier=!1,this.beforeRedirect=me,this.limitStylingAppends=!1,this.bindedHandler=this.handleMessage.bind(this),this.userAgent=window.navigator.userAgent,this.isMobile=le(this.userAgent),this.errorCodes=["21123","21122"],this.setClientStyling=()=>{let p=document.createElement("style");p.innerHTML=this.clientStyling,this.stylingContainer.prepend(p)},this.setClientStylingURL=()=>{let p=new URL(this.clientStylingUrl),u=document.createElement("style");fetch(p.href).then(l=>l.text()).then(l=>{u.innerHTML=l,setTimeout(()=>{this.stylingContainer.prepend(u)},1)}).catch(l=>{console.log("error ",l)})}}get typeParameter(){if(this.type==="deposit")return"Deposit";if(this.type==="withdraw")return"Withdraw"}watchLoadWidget(){this.loadWidget()}componentWillLoad(){return Q(this,null,function*(){if(yield this.loadWidget(),this.translationUrl)return ce(this.translationUrl)})}toggleScreen(i){window.postMessage({type:"PlayerAccountMenuActive",isMobile:i},window.location.href)}componentDidLoad(){window.addEventListener("message",this.bindedHandler,!1)}disconnectedCallback(){window.removeEventListener("message",this.bindedHandler,!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}render(){return v.h(v.Host,{key:"4c6783c9cccc65e31901eb8755729147da7c3771"},v.h("div",{key:"afbbc15e1210ef1ade3c094b84c12485ff94e438",ref:i=>this.stylingContainer=i},!(this.isMobile&&!this.isShortCashier)&&v.h("h2",{key:"99b64c5ef99e55335c4f3066f448dd19a4eeaad0",class:"CategoryTitle"},I(this.typeParameter==="Withdraw"?"Withdraw":"Deposit",this.language)),v.h("div",{key:"eba951ef1cb0f291a3a44fd89d8da8f70ee7eba8",class:`DepositWithdrawalWrapper ${this.isShortCashier?"ShortCashier":""}`,style:{height:this.dynamicHeight,marginTop:this.isShortCashier?"30px":"0"}},v.h("div",{key:"abd3d5958091437af76efb311a49a30f6ba4a7eb"},this.isMobile&&!this.isShortCashier?v.h("div",{class:"MenuReturnButton",onClick:()=>this.toggleScreen(this.isMobile)},v.h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},v.h("defs",null),v.h("g",{transform:"translate(-20 -158)"},v.h("g",{transform:"translate(20 158)"},v.h("path",{class:"aaa",d:"M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z",transform:"translate(15 15) rotate(180)"})))),v.h("h2",{class:"CategoryTitleMobile"},I(this.typeParameter==="Withdraw"?"Withdraw":"Deposit",this.language))):null),this.cashierInfoUrl?v.h("iframe",{width:"100%",height:"100%",src:this.cashierInfoUrl}):v.h("h3",{class:"ErrorMessage"},this.type==="deposit"?I("denyDeposit",this.language):I("denyWithdrawal",this.language)))))}loadWidget(){return Q(this,null,function*(){const i={Channel:this.channel,Type:this.typeParameter,SuccessUrl:this.successUrl,CancelUrl:this.cancelUrl,FailUrl:this.failUrl,Language:this.language,productType:this.productType,isShortCashier:this.isShortCashier,currency:this.currency,showBonusSelectionInput:this.showBonusSelectionInput};try{const p=`${this.endpoint}/v1/player/${this.userId}/payment/GetPaymentSession`,u=yield fetch(p,{method:"POST",headers:{"X-Sessionid":this.session,"Content-Type":"application/json","X-Client-Request-Timestamp":ne.utc().format("YYYY-MM-DD HH:mm:ss.SSS")},body:JSON.stringify(i)});if(!u.ok){const g=yield u.text();throw new Error(g)}const l=yield u.json();if(l.CashierInfo)this.cashierInfoUrl=l.CashierInfo.Url;else{let g;if(l.ResponseMessage){let w=this.errorCodes.find(m=>l.ResponseMessage.includes(m))||null;w?g=I(`errorCode${w}`,this.language):g=I("notFoundErrorCode",this.language)}else g=this.type==="deposit"?I("denyDeposit",this.language):I("denyWithdrawal",this.language);const L={type:"error",message:g};window.postMessage({type:"DenyDepositOrWithdrawal",data:L},window.location.href)}}catch(p){console.error(p)}})}handleMessage(i){var p,u,l,g,L,w,m,c;i.data["MMFE:openFullCashier"]==="true"&&(window.postMessage({type:"GoToDeposit"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href)),i.data["MMFE:setQuickDepositHeight"]&&this.isShortCashier&&(this.dynamicHeight=i.data["MMFE:setQuickDepositHeight"].toString()+"px"),i.data["MMFE:setIFrameHeight"]&&this.isShortCashier&&(this.dynamicHeight=i.data["MMFE:setIFrameHeight"].toString()+"px"),((p=i.data)===null||p===void 0?void 0:p.type)==="mm-hcback-to-merchant"&&this.doRedirect(i.data.type,this.homeUrl),((u=i.data)===null||u===void 0?void 0:u.redirect)==="mm-hc-back-tomerchant"&&this.doRedirect(i.data.redirect,this.homeUrl),((l=i.data)===null||l===void 0?void 0:l.redirect)==="mm-hc-sports"&&this.doRedirect((g=i.data)===null||g===void 0?void 0:g.redirect,this.sportsUrl),((L=i.data)===null||L===void 0?void 0:L.redirect)==="mm-hc-casino"&&this.doRedirect(window.location.href,this.casinoUrl),((w=i.data)===null||w===void 0?void 0:w.redirect)==="mm-hc-contact"&&(window.postMessage({type:"CloseShortCashier"},window.location.href),this.doRedirect(window.location.href,this.contactUrl)),(((m=i.data)===null||m===void 0?void 0:m.redirect)==="mm-wm-hc-init-deposit"||((c=i.data)===null||c===void 0?void 0:c.redirect)==="mm-wm-hc-init-deposit-quick")&&(window.postMessage({type:"CloseShortCashier"},window.location.href),this.doRedirect(window.location.href,this.depositUrl))}doRedirect(i,p){const u={reason:i,url:p,cancel:!1};if(this.beforeRedirect(u),!u.cancel){if(!u.url){window.location.href="/";return}window.location.href=u.url}}static get watchers(){return{session:["watchLoadWidget"],userId:["watchLoadWidget"],isShortCashier:["watchLoadWidget"],currency:["watchLoadWidget"],showBonusSelectionInput:["watchLoadWidget"]}}};ae.style=pe;exports.user_deposit_withdrawal=ae;
|
@@ -1,14 +0,0 @@
|
|
1
|
-
import { C as s } from "../components/CasinoHeaderController-CFx6e2bY.js";
|
2
|
-
function r(t) {
|
3
|
-
return function(...n) {
|
4
|
-
try {
|
5
|
-
return t.apply(this, n);
|
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 = r(customElements.define);
|
14
|
-
!customElements.get("casino-header-controller") && customElements.define("casino-header-controller", s.element);
|