@everymatrix/casino-header-controller 1.52.4 → 1.52.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,59 @@
1
+ "use strict";var Q=(o,p,c)=>new Promise((h,y)=>{var T=u=>{try{m(c.next(u))}catch(D){y(D)}},w=u=>{try{m(c.throw(u))}catch(D){y(D)}},m=u=>u.done?h(u.value):Promise.resolve(u.value).then(T,w);m((c=c.apply(o,p)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("./index-657e7a14-Dej0SYE9.cjs"),oe=require("./app-globals-0f993ce5-sCt45RkC.cjs");var X=typeof document!="undefined"?document.currentScript:null,ae=()=>{const o=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:X&&X.tagName.toUpperCase()==="SCRIPT"&&X.src||new URL("stencil/user-deposit-withdrawal-RpW35qPG.cjs",document.baseURI).href,p={};return o!==""&&(p.resourcesUrl=new URL(".",o).href),$.promiseResolve(p)};ae().then(o=>Q(exports,null,function*(){return yield oe.globalScripts(),$.bootstrapLazy([["user-deposit-withdrawal",[[1,"user-deposit-withdrawal",{clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-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"]}]]]],o)}));const se="en",de=["ro","en","fr","hr"],ue={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"}},F=(o,p)=>{const c=p;return ue[c!==void 0&&de.includes(c)?c:se][o]},ce=o=>!!(o.toLowerCase().match(/android/i)||o.toLowerCase().match(/blackberry|bb/i)||o.toLowerCase().match(/iphone|ipad|ipod/i)||o.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));var ee=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},te={exports:{}};(function(o,p){(function(c,h){o.exports=h()})(ee,function(){var c=1e3,h=6e4,y=36e5,T="millisecond",w="second",m="minute",u="hour",D="day",q="week",b="month",N="quarter",O="year",j="date",a="Invalid Date",U=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|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(n){var r=["th","st","nd","rd"],e=n%100;return"["+n+(r[(e-20)%10]||r[e]||r[0])+"]"}},W=function(n,r,e){var i=String(n);return!i||i.length>=r?n:""+Array(r+1-i.length).join(e)+n},G={s:W,z:function(n){var r=-n.utcOffset(),e=Math.abs(r),i=Math.floor(e/60),t=e%60;return(r<=0?"+":"-")+W(i,2,"0")+":"+W(t,2,"0")},m:function n(r,e){if(r.date()<e.date())return-n(e,r);var i=12*(e.year()-r.year())+(e.month()-r.month()),t=r.clone().add(i,b),s=e-t<0,d=r.clone().add(i+(s?-1:1),b);return+(-(i+(e-t)/(s?t-d:d-t))||0)},a:function(n){return n<0?Math.ceil(n)||0:Math.floor(n)},p:function(n){return{M:b,y:O,w:q,d:D,D:j,h:u,m,s:w,ms:T,Q:N}[n]||String(n||"").toLowerCase().replace(/s$/,"")},u:function(n){return n===void 0}},E="en",k={};k[E]=H;var Y="$isDayjsObject",P=function(n){return n instanceof Z||!(!n||!n[Y])},I=function n(r,e,i){var t;if(!r)return E;if(typeof r=="string"){var s=r.toLowerCase();k[s]&&(t=s),e&&(k[s]=e,t=s);var d=r.split("-");if(!t&&d.length>1)return n(d[0])}else{var f=r.name;k[f]=r,t=f}return!i&&t&&(E=t),t||!i&&E},v=function(n,r){if(P(n))return n.clone();var e=typeof r=="object"?r:{};return e.date=n,e.args=arguments,new Z(e)},l=G;l.l=I,l.i=P,l.w=function(n,r){return v(n,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var Z=function(){function n(e){this.$L=I(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[Y]=!0}var r=n.prototype;return r.parse=function(e){this.$d=function(i){var t=i.date,s=i.utc;if(t===null)return new Date(NaN);if(l.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(U);if(d){var f=d[2]-1||0,g=(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,g)):new Date(d[1],f,d[3]||1,d[4]||0,d[5]||0,d[6]||0,g)}}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 l},r.isValid=function(){return this.$d.toString()!==a},r.isSame=function(e,i){var t=v(e);return this.startOf(i)<=t&&t<=this.endOf(i)},r.isAfter=function(e,i){return v(e)<this.startOf(i)},r.isBefore=function(e,i){return this.endOf(i)<v(e)},r.$g=function(e,i,t){return l.u(e)?this[i]:this.set(t,e)},r.unix=function(){return Math.floor(this.valueOf()/1e3)},r.valueOf=function(){return this.$d.getTime()},r.startOf=function(e,i){var t=this,s=!!l.u(i)||i,d=l.p(e),f=function(R,M){var x=l.w(t.$u?Date.UTC(t.$y,M,R):new Date(t.$y,M,R),t);return s?x:x.endOf(D)},g=function(R,M){return l.w(t.toDate()[R].apply(t.toDate("s"),(s?[0,0,0,0]:[23,59,59,999]).slice(M)),t)},C=this.$W,S=this.$M,L=this.$D,A="set"+(this.$u?"UTC":"");switch(d){case O:return s?f(1,0):f(31,11);case b:return s?f(1,S):f(0,S+1);case q:var z=this.$locale().weekStart||0,B=(C<z?C+7:C)-z;return f(s?L-B:L+(6-B),S);case D:case j:return g(A+"Hours",0);case u:return g(A+"Minutes",1);case m:return g(A+"Seconds",2);case w:return g(A+"Milliseconds",3);default:return this.clone()}},r.endOf=function(e){return this.startOf(e,!1)},r.$set=function(e,i){var t,s=l.p(e),d="set"+(this.$u?"UTC":""),f=(t={},t[D]=d+"Date",t[j]=d+"Date",t[b]=d+"Month",t[O]=d+"FullYear",t[u]=d+"Hours",t[m]=d+"Minutes",t[w]=d+"Seconds",t[T]=d+"Milliseconds",t)[s],g=s===D?this.$D+(i-this.$W):i;if(s===b||s===O){var C=this.clone().set(j,1);C.$d[f](g),C.init(),this.$d=C.set(j,Math.min(this.$D,C.daysInMonth())).$d}else f&&this.$d[f](g);return this.init(),this},r.set=function(e,i){return this.clone().$set(e,i)},r.get=function(e){return this[l.p(e)]()},r.add=function(e,i){var t,s=this;e=Number(e);var d=l.p(i),f=function(S){var L=v(s);return l.w(L.date(L.date()+Math.round(S*e)),s)};if(d===b)return this.set(b,this.$M+e);if(d===O)return this.set(O,this.$y+e);if(d===D)return f(1);if(d===q)return f(7);var g=(t={},t[m]=h,t[u]=y,t[w]=c,t)[d]||1,C=this.$d.getTime()+e*g;return l.w(C,this)},r.subtract=function(e,i){return this.add(-1*e,i)},r.format=function(e){var i=this,t=this.$locale();if(!this.isValid())return t.invalidDate||a;var s=e||"YYYY-MM-DDTHH:mm:ssZ",d=l.z(this),f=this.$H,g=this.$m,C=this.$M,S=t.weekdays,L=t.months,A=t.meridiem,z=function(M,x,V,J){return M&&(M[x]||M(i,s))||V[x].slice(0,J)},B=function(M){return l.s(f%12||12,M,"0")},R=A||function(M,x,V){var J=M<12?"AM":"PM";return V?J.toLowerCase():J};return s.replace(_,function(M,x){return x||function(V){switch(V){case"YY":return String(i.$y).slice(-2);case"YYYY":return l.s(i.$y,4,"0");case"M":return C+1;case"MM":return l.s(C+1,2,"0");case"MMM":return z(t.monthsShort,C,L,3);case"MMMM":return z(L,C);case"D":return i.$D;case"DD":return l.s(i.$D,2,"0");case"d":return String(i.$W);case"dd":return z(t.weekdaysMin,i.$W,S,2);case"ddd":return z(t.weekdaysShort,i.$W,S,3);case"dddd":return S[i.$W];case"H":return String(f);case"HH":return l.s(f,2,"0");case"h":return B(1);case"hh":return B(2);case"a":return R(f,g,!0);case"A":return R(f,g,!1);case"m":return String(g);case"mm":return l.s(g,2,"0");case"s":return String(i.$s);case"ss":return l.s(i.$s,2,"0");case"SSS":return l.s(i.$ms,3,"0");case"Z":return d}return null}(M)||d.replace(":","")})},r.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},r.diff=function(e,i,t){var s,d=this,f=l.p(i),g=v(e),C=(g.utcOffset()-this.utcOffset())*h,S=this-g,L=function(){return l.m(d,g)};switch(f){case O:s=L()/12;break;case b:s=L();break;case N:s=L()/3;break;case q:s=(S-C)/6048e5;break;case D:s=(S-C)/864e5;break;case u:s=S/y;break;case m:s=S/h;break;case w:s=S/c;break;default:s=S}return t?s:l.a(s)},r.daysInMonth=function(){return this.endOf(b).$D},r.$locale=function(){return k[this.$L]},r.locale=function(e,i){if(!e)return this.$L;var t=this.clone(),s=I(e,i,!0);return s&&(t.$L=s),t},r.clone=function(){return l.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()},n}(),K=Z.prototype;return v.prototype=K,[["$ms",T],["$s",w],["$m",m],["$H",u],["$W",D],["$M",b],["$y",O],["$D",j]].forEach(function(n){K[n[1]]=function(r){return this.$g(r,n[0],n[1])}}),v.extend=function(n,r){return n.$i||(n(r,Z,v),n.$i=!0),v},v.locale=I,v.isDayjs=P,v.unix=function(n){return v(1e3*n)},v.en=k[E],v.Ls=k,v.p={},v})})(te);const re=te.exports;var ie={exports:{}};(function(o,p){(function(c,h){o.exports=h()})(ee,function(){var c="minute",h=/[+-]\d\d(?::?\d\d)?/g,y=/([+-]|\d\d)/g;return function(T,w,m){var u=w.prototype;m.utc=function(a){var U={date:a,utc:!0,args:arguments};return new w(U)},u.utc=function(a){var U=m(this.toDate(),{locale:this.$L,utc:!0});return a?U.add(this.utcOffset(),c):U},u.local=function(){return m(this.toDate(),{locale:this.$L,utc:!1})};var D=u.parse;u.parse=function(a){a.utc&&(this.$u=!0),this.$utils().u(a.$offset)||(this.$offset=a.$offset),D.call(this,a)};var q=u.init;u.init=function(){if(this.$u){var a=this.$d;this.$y=a.getUTCFullYear(),this.$M=a.getUTCMonth(),this.$D=a.getUTCDate(),this.$W=a.getUTCDay(),this.$H=a.getUTCHours(),this.$m=a.getUTCMinutes(),this.$s=a.getUTCSeconds(),this.$ms=a.getUTCMilliseconds()}else q.call(this)};var b=u.utcOffset;u.utcOffset=function(a,U){var _=this.$utils().u;if(_(a))return this.$u?0:_(this.$offset)?b.call(this):this.$offset;if(typeof a=="string"&&(a=function(E){E===void 0&&(E="");var k=E.match(h);if(!k)return null;var Y=(""+k[0]).match(y)||["-",0,0],P=Y[0],I=60*+Y[1]+ +Y[2];return I===0?0:P==="+"?I:-I}(a),a===null))return this;var H=Math.abs(a)<=16?60*a:a,W=this;if(U)return W.$offset=H,W.$u=a===0,W;if(a!==0){var G=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(W=this.local().add(H+G,c)).$offset=H,W.$x.$localOffset=G}else W=this.utc();return W};var N=u.format;u.format=function(a){var U=a||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return N.call(this,U)},u.valueOf=function(){var a=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*a},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var O=u.toDate;u.toDate=function(a){return a==="s"&&this.$offset?m(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():O.call(this)};var j=u.diff;u.diff=function(a,U,_){if(a&&this.$u===a.$u)return j.call(this,a,U,_);var H=this.local(),W=m(a).local();return j.call(H,W,U,_)}}})})(ie);const le=ie.exports,he=`: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
+ }`,fe=he;re.extend(le);const pe=()=>{},ne=class{constructor(o){$.registerInstance(this,o),this.bindedHandler=this.handleMessage.bind(this),this.userAgent=window.navigator.userAgent,this.isMobile=ce(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),c=document.createElement("style");fetch(p.href).then(h=>h.text()).then(h=>{c.innerHTML=h,setTimeout(()=>{this.stylingContainer.prepend(c)},1)}).catch(h=>{console.log("error ",h)})},this.clientStyling="",this.clientStylingUrl="",this.endpoint=void 0,this.type=void 0,this.channel=void 0,this.language=void 0,this.productType=void 0,this.userId=void 0,this.session=void 0,this.successUrl=void 0,this.cancelUrl=void 0,this.failUrl=void 0,this.sportsUrl=void 0,this.casinoUrl=void 0,this.contactUrl=void 0,this.depositUrl=void 0,this.currency="",this.showBonusSelectionInput="true",this.isShortCashier=!1,this.homeUrl=void 0,this.beforeRedirect=pe,this.limitStylingAppends=!1,this.dynamicHeight=void 0,this.cashierInfoUrl=void 0}get typeParameter(){if(this.type==="deposit")return"Deposit";if(this.type==="withdraw")return"Withdraw"}watchLoadWidget(){this.loadWidget()}componentWillLoad(){return Q(this,null,function*(){yield this.loadWidget()})}toggleScreen(o){window.postMessage({type:"PlayerAccountMenuActive",isMobile:o},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 $.h($.Host,{key:"1f639ee63c3d7973e2c800bb313338c7b9496b81"},$.h("div",{key:"2102e30049f5ec4fae2ad67d151bafddfe0bd2e9",ref:o=>this.stylingContainer=o},!(this.isMobile&&!this.isShortCashier)&&$.h("h2",{key:"58f7fe9cfe649cfb0ca835fd51eed8e1ba25ab8a",class:"CategoryTitle"},F(this.typeParameter==="Withdraw"?"Withdraw":"Deposit",this.language)),$.h("div",{key:"8a8cdeec14cfb847ed49cd452e201c20ff143b33",class:`DepositWithdrawalWrapper ${this.isShortCashier?"ShortCashier":""}`,style:{height:this.dynamicHeight,marginTop:this.isShortCashier?"30px":"0"}},$.h("div",{key:"5bc1b8cc97fbe3d73f04f9159a813e9dc6705e52"},this.isMobile&&!this.isShortCashier?$.h("div",{class:"MenuReturnButton",onClick:()=>this.toggleScreen(this.isMobile)},$.h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},$.h("defs",null),$.h("g",{transform:"translate(-20 -158)"},$.h("g",{transform:"translate(20 158)"},$.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)"})))),$.h("h2",{class:"CategoryTitleMobile"},F(this.typeParameter==="Withdraw"?"Withdraw":"Deposit",this.language))):null),this.cashierInfoUrl?$.h("iframe",{width:"100%",height:"100%",src:this.cashierInfoUrl}):$.h("h3",{class:"ErrorMessage"},this.type==="deposit"?F("denyDeposit",this.language):F("denyWithdrawal",this.language)))))}loadWidget(){return Q(this,null,function*(){const o={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`,c=yield fetch(p,{method:"POST",headers:{"X-Sessionid":this.session,"Content-Type":"application/json","X-Client-Request-Timestamp":re.utc().format("YYYY-MM-DD HH:mm:ss.SSS")},body:JSON.stringify(o)});if(!c.ok){const y=yield c.text();throw new Error(y)}const h=yield c.json();if(h.CashierInfo)this.cashierInfoUrl=h.CashierInfo.Url;else{let y;if(h.ResponseMessage){let w=this.errorCodes.find(m=>h.ResponseMessage.includes(m))||null;w?y=F(`errorCode${w}`,this.language):y=F("notFoundErrorCode",this.language)}else y=this.type==="deposit"?F("denyDeposit",this.language):F("denyWithdrawal",this.language);const T={type:"error",message:y};window.postMessage({type:"DenyDepositOrWithdrawal",data:T},window.location.href)}}catch(p){console.error(p)}})}handleMessage(o){var p,c,h,y,T,w,m,u;o.data["MMFE:openFullCashier"]==="true"&&(window.postMessage({type:"GoToDeposit"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href)),o.data["MMFE:setQuickDepositHeight"]&&this.isShortCashier&&(this.dynamicHeight=o.data["MMFE:setQuickDepositHeight"].toString()+"px"),o.data["MMFE:setIFrameHeight"]&&this.isShortCashier&&(this.dynamicHeight=o.data["MMFE:setIFrameHeight"].toString()+"px"),((p=o.data)===null||p===void 0?void 0:p.type)==="mm-hcback-to-merchant"&&this.doRedirect(o.data.type,this.homeUrl),((c=o.data)===null||c===void 0?void 0:c.redirect)==="mm-hc-back-tomerchant"&&this.doRedirect(o.data.redirect,this.homeUrl),((h=o.data)===null||h===void 0?void 0:h.redirect)==="mm-hc-sports"&&this.doRedirect((y=o.data)===null||y===void 0?void 0:y.redirect,this.sportsUrl),((T=o.data)===null||T===void 0?void 0:T.redirect)==="mm-hc-casino"&&this.doRedirect(window.location.href,this.casinoUrl),((w=o.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=o.data)===null||m===void 0?void 0:m.redirect)==="mm-wm-hc-init-deposit"||((u=o.data)===null||u===void 0?void 0:u.redirect)==="mm-wm-hc-init-deposit-quick")&&(window.postMessage({type:"CloseShortCashier"},window.location.href),this.doRedirect(window.location.href,this.depositUrl))}doRedirect(o,p){const c={reason:o,url:p,cancel:!1};if(this.beforeRedirect(c),!c.cancel){if(!c.url){window.location.href="/";return}window.location.href=c.url}}static get watchers(){return{session:["watchLoadWidget"],userId:["watchLoadWidget"],isShortCashier:["watchLoadWidget"],currency:["watchLoadWidget"],showBonusSelectionInput:["watchLoadWidget"]}}};ne.style=fe;exports.user_deposit_withdrawal=ne;
@@ -1,59 +0,0 @@
1
- "use strict";var Q=(o,p,d)=>new Promise((h,m)=>{var T=u=>{try{y(d.next(u))}catch(C){m(C)}},w=u=>{try{y(d.throw(u))}catch(C){m(C)}},y=u=>u.done?h(u.value):Promise.resolve(u.value).then(T,w);y((d=d.apply(o,p)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("./index-657e7a14-6spLHDf6.cjs"),ot=require("./app-globals-0f993ce5-sCt45RkC.cjs");var X=typeof document!="undefined"?document.currentScript:null,st=()=>{const o=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:X&&X.tagName.toUpperCase()==="SCRIPT"&&X.src||new URL("stencil/user-deposit-withdrawal-CXzHd7L7.cjs",document.baseURI).href,p={};return o!==""&&(p.resourcesUrl=new URL(".",o).href),S.promiseResolve(p)};st().then(o=>Q(exports,null,function*(){return yield ot.globalScripts(),S.bootstrapLazy([["user-deposit-withdrawal",[[1,"user-deposit-withdrawal",{clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-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"]}]]]],o)}));const at="en",ct=["ro","en","fr","hr"],ut={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"},ro:{Deposit:"Depozit",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:"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"},fr:{Deposit:"Deposit",Withdraw:"Withdraw",denyDeposit:"Veuillez être informé que vous n'êtes actuellement pas autorisé à initier des transactions de dépôt.",denyWithdrawal:"Veuillez être informé que vous n'êtes actuellement pas autorisé à initier des transactions de retrait.",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"},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"}},E=(o,p)=>{const d=p;return ut[d!==void 0&&ct.includes(d)?d:at][o]},dt=o=>!!(o.toLowerCase().match(/android/i)||o.toLowerCase().match(/blackberry|bb/i)||o.toLowerCase().match(/iphone|ipad|ipod/i)||o.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));var tt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},et={exports:{}};(function(o,p){(function(d,h){o.exports=h()})(tt,function(){var d=1e3,h=6e4,m=36e5,T="millisecond",w="second",y="minute",u="hour",C="day",A="week",b="month",q="quarter",L="year",k="date",s="Invalid Date",U=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,R=/\[([^\]]+)]|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,F={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(n){var r=["th","st","nd","rd"],t=n%100;return"["+n+(r[(t-20)%10]||r[t]||r[0])+"]"}},W=function(n,r,t){var i=String(n);return!i||i.length>=r?n:""+Array(r+1-i.length).join(t)+n},G={s:W,z:function(n){var r=-n.utcOffset(),t=Math.abs(r),i=Math.floor(t/60),e=t%60;return(r<=0?"+":"-")+W(i,2,"0")+":"+W(e,2,"0")},m:function n(r,t){if(r.date()<t.date())return-n(t,r);var i=12*(t.year()-r.year())+(t.month()-r.month()),e=r.clone().add(i,b),a=t-e<0,c=r.clone().add(i+(a?-1:1),b);return+(-(i+(t-e)/(a?e-c:c-e))||0)},a:function(n){return n<0?Math.ceil(n)||0:Math.floor(n)},p:function(n){return{M:b,y:L,w:A,d:C,D:k,h:u,m:y,s:w,ms:T,Q:q}[n]||String(n||"").toLowerCase().replace(/s$/,"")},u:function(n){return n===void 0}},_="en",x={};x[_]=F;var j="$isDayjsObject",B=function(n){return n instanceof Z||!(!n||!n[j])},H=function n(r,t,i){var e;if(!r)return _;if(typeof r=="string"){var a=r.toLowerCase();x[a]&&(e=a),t&&(x[a]=t,e=a);var c=r.split("-");if(!e&&c.length>1)return n(c[0])}else{var f=r.name;x[f]=r,e=f}return!i&&e&&(_=e),e||!i&&_},$=function(n,r){if(B(n))return n.clone();var t=typeof r=="object"?r:{};return t.date=n,t.args=arguments,new Z(t)},l=G;l.l=H,l.i=B,l.w=function(n,r){return $(n,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var Z=function(){function n(t){this.$L=H(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[j]=!0}var r=n.prototype;return r.parse=function(t){this.$d=function(i){var e=i.date,a=i.utc;if(e===null)return new Date(NaN);if(l.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var c=e.match(U);if(c){var f=c[2]-1||0,g=(c[7]||"0").substring(0,3);return a?new Date(Date.UTC(c[1],f,c[3]||1,c[4]||0,c[5]||0,c[6]||0,g)):new Date(c[1],f,c[3]||1,c[4]||0,c[5]||0,c[6]||0,g)}}return new Date(e)}(t),this.init()},r.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},r.$utils=function(){return l},r.isValid=function(){return this.$d.toString()!==s},r.isSame=function(t,i){var e=$(t);return this.startOf(i)<=e&&e<=this.endOf(i)},r.isAfter=function(t,i){return $(t)<this.startOf(i)},r.isBefore=function(t,i){return this.endOf(i)<$(t)},r.$g=function(t,i,e){return l.u(t)?this[i]:this.set(e,t)},r.unix=function(){return Math.floor(this.valueOf()/1e3)},r.valueOf=function(){return this.$d.getTime()},r.startOf=function(t,i){var e=this,a=!!l.u(i)||i,c=l.p(t),f=function(P,D){var I=l.w(e.$u?Date.UTC(e.$y,D,P):new Date(e.$y,D,P),e);return a?I:I.endOf(C)},g=function(P,D){return l.w(e.toDate()[P].apply(e.toDate("s"),(a?[0,0,0,0]:[23,59,59,999]).slice(D)),e)},v=this.$W,M=this.$M,O=this.$D,z="set"+(this.$u?"UTC":"");switch(c){case L:return a?f(1,0):f(31,11);case b:return a?f(1,M):f(0,M+1);case A:var Y=this.$locale().weekStart||0,N=(v<Y?v+7:v)-Y;return f(a?O-N:O+(6-N),M);case C:case k:return g(z+"Hours",0);case u:return g(z+"Minutes",1);case y:return g(z+"Seconds",2);case w:return g(z+"Milliseconds",3);default:return this.clone()}},r.endOf=function(t){return this.startOf(t,!1)},r.$set=function(t,i){var e,a=l.p(t),c="set"+(this.$u?"UTC":""),f=(e={},e[C]=c+"Date",e[k]=c+"Date",e[b]=c+"Month",e[L]=c+"FullYear",e[u]=c+"Hours",e[y]=c+"Minutes",e[w]=c+"Seconds",e[T]=c+"Milliseconds",e)[a],g=a===C?this.$D+(i-this.$W):i;if(a===b||a===L){var v=this.clone().set(k,1);v.$d[f](g),v.init(),this.$d=v.set(k,Math.min(this.$D,v.daysInMonth())).$d}else f&&this.$d[f](g);return this.init(),this},r.set=function(t,i){return this.clone().$set(t,i)},r.get=function(t){return this[l.p(t)]()},r.add=function(t,i){var e,a=this;t=Number(t);var c=l.p(i),f=function(M){var O=$(a);return l.w(O.date(O.date()+Math.round(M*t)),a)};if(c===b)return this.set(b,this.$M+t);if(c===L)return this.set(L,this.$y+t);if(c===C)return f(1);if(c===A)return f(7);var g=(e={},e[y]=h,e[u]=m,e[w]=d,e)[c]||1,v=this.$d.getTime()+t*g;return l.w(v,this)},r.subtract=function(t,i){return this.add(-1*t,i)},r.format=function(t){var i=this,e=this.$locale();if(!this.isValid())return e.invalidDate||s;var a=t||"YYYY-MM-DDTHH:mm:ssZ",c=l.z(this),f=this.$H,g=this.$m,v=this.$M,M=e.weekdays,O=e.months,z=e.meridiem,Y=function(D,I,V,J){return D&&(D[I]||D(i,a))||V[I].slice(0,J)},N=function(D){return l.s(f%12||12,D,"0")},P=z||function(D,I,V){var J=D<12?"AM":"PM";return V?J.toLowerCase():J};return a.replace(R,function(D,I){return I||function(V){switch(V){case"YY":return String(i.$y).slice(-2);case"YYYY":return l.s(i.$y,4,"0");case"M":return v+1;case"MM":return l.s(v+1,2,"0");case"MMM":return Y(e.monthsShort,v,O,3);case"MMMM":return Y(O,v);case"D":return i.$D;case"DD":return l.s(i.$D,2,"0");case"d":return String(i.$W);case"dd":return Y(e.weekdaysMin,i.$W,M,2);case"ddd":return Y(e.weekdaysShort,i.$W,M,3);case"dddd":return M[i.$W];case"H":return String(f);case"HH":return l.s(f,2,"0");case"h":return N(1);case"hh":return N(2);case"a":return P(f,g,!0);case"A":return P(f,g,!1);case"m":return String(g);case"mm":return l.s(g,2,"0");case"s":return String(i.$s);case"ss":return l.s(i.$s,2,"0");case"SSS":return l.s(i.$ms,3,"0");case"Z":return c}return null}(D)||c.replace(":","")})},r.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},r.diff=function(t,i,e){var a,c=this,f=l.p(i),g=$(t),v=(g.utcOffset()-this.utcOffset())*h,M=this-g,O=function(){return l.m(c,g)};switch(f){case L:a=O()/12;break;case b:a=O();break;case q:a=O()/3;break;case A:a=(M-v)/6048e5;break;case C:a=(M-v)/864e5;break;case u:a=M/m;break;case y:a=M/h;break;case w:a=M/d;break;default:a=M}return e?a:l.a(a)},r.daysInMonth=function(){return this.endOf(b).$D},r.$locale=function(){return x[this.$L]},r.locale=function(t,i){if(!t)return this.$L;var e=this.clone(),a=H(t,i,!0);return a&&(e.$L=a),e},r.clone=function(){return l.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()},n}(),K=Z.prototype;return $.prototype=K,[["$ms",T],["$s",w],["$m",y],["$H",u],["$W",C],["$M",b],["$y",L],["$D",k]].forEach(function(n){K[n[1]]=function(r){return this.$g(r,n[0],n[1])}}),$.extend=function(n,r){return n.$i||(n(r,Z,$),n.$i=!0),$},$.locale=H,$.isDayjs=B,$.unix=function(n){return $(1e3*n)},$.en=x[_],$.Ls=x,$.p={},$})})(et);const rt=et.exports;var it={exports:{}};(function(o,p){(function(d,h){o.exports=h()})(tt,function(){var d="minute",h=/[+-]\d\d(?::?\d\d)?/g,m=/([+-]|\d\d)/g;return function(T,w,y){var u=w.prototype;y.utc=function(s){var U={date:s,utc:!0,args:arguments};return new w(U)},u.utc=function(s){var U=y(this.toDate(),{locale:this.$L,utc:!0});return s?U.add(this.utcOffset(),d):U},u.local=function(){return y(this.toDate(),{locale:this.$L,utc:!1})};var C=u.parse;u.parse=function(s){s.utc&&(this.$u=!0),this.$utils().u(s.$offset)||(this.$offset=s.$offset),C.call(this,s)};var A=u.init;u.init=function(){if(this.$u){var s=this.$d;this.$y=s.getUTCFullYear(),this.$M=s.getUTCMonth(),this.$D=s.getUTCDate(),this.$W=s.getUTCDay(),this.$H=s.getUTCHours(),this.$m=s.getUTCMinutes(),this.$s=s.getUTCSeconds(),this.$ms=s.getUTCMilliseconds()}else A.call(this)};var b=u.utcOffset;u.utcOffset=function(s,U){var R=this.$utils().u;if(R(s))return this.$u?0:R(this.$offset)?b.call(this):this.$offset;if(typeof s=="string"&&(s=function(_){_===void 0&&(_="");var x=_.match(h);if(!x)return null;var j=(""+x[0]).match(m)||["-",0,0],B=j[0],H=60*+j[1]+ +j[2];return H===0?0:B==="+"?H:-H}(s),s===null))return this;var F=Math.abs(s)<=16?60*s:s,W=this;if(U)return W.$offset=F,W.$u=s===0,W;if(s!==0){var G=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(W=this.local().add(F+G,d)).$offset=F,W.$x.$localOffset=G}else W=this.utc();return W};var q=u.format;u.format=function(s){var U=s||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return q.call(this,U)},u.valueOf=function(){var s=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*s},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var L=u.toDate;u.toDate=function(s){return s==="s"&&this.$offset?y(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():L.call(this)};var k=u.diff;u.diff=function(s,U,R){if(s&&this.$u===s.$u)return k.call(this,s,U,R);var F=this.local(),W=y(s).local();return k.call(F,W,U,R)}}})})(it);const lt=it.exports,ht=`: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
- }`,ft=ht;rt.extend(lt);const pt=()=>{},nt=class{constructor(o){S.registerInstance(this,o),this.bindedHandler=this.handleMessage.bind(this),this.userAgent=window.navigator.userAgent,this.isMobile=dt(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),d=document.createElement("style");fetch(p.href).then(h=>h.text()).then(h=>{d.innerHTML=h,setTimeout(()=>{this.stylingContainer.prepend(d)},1)}).catch(h=>{console.log("error ",h)})},this.clientStyling="",this.clientStylingUrl="",this.endpoint=void 0,this.type=void 0,this.channel=void 0,this.language=void 0,this.productType=void 0,this.userId=void 0,this.session=void 0,this.successUrl=void 0,this.cancelUrl=void 0,this.failUrl=void 0,this.sportsUrl=void 0,this.casinoUrl=void 0,this.contactUrl=void 0,this.depositUrl=void 0,this.currency="",this.showBonusSelectionInput="true",this.isShortCashier=!1,this.homeUrl=void 0,this.beforeRedirect=pt,this.limitStylingAppends=!1,this.dynamicHeight=void 0,this.cashierInfoUrl=void 0}get typeParameter(){if(this.type==="deposit")return"Deposit";if(this.type==="withdraw")return"Withdraw"}watchLoadWidget(){this.loadWidget()}componentWillLoad(){return Q(this,null,function*(){yield this.loadWidget()})}toggleScreen(o){window.postMessage({type:"PlayerAccountMenuActive",isMobile:o},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 S.h(S.Host,{key:"1f639ee63c3d7973e2c800bb313338c7b9496b81"},S.h("div",{key:"2102e30049f5ec4fae2ad67d151bafddfe0bd2e9",ref:o=>this.stylingContainer=o},!(this.isMobile&&!this.isShortCashier)&&S.h("h2",{key:"58f7fe9cfe649cfb0ca835fd51eed8e1ba25ab8a",class:"CategoryTitle"},E(this.typeParameter==="Withdraw"?"Withdraw":"Deposit",this.language)),S.h("div",{key:"8a8cdeec14cfb847ed49cd452e201c20ff143b33",class:`DepositWithdrawalWrapper ${this.isShortCashier?"ShortCashier":""}`,style:{height:this.dynamicHeight,marginTop:this.isShortCashier?"30px":"0"}},S.h("div",{key:"5bc1b8cc97fbe3d73f04f9159a813e9dc6705e52"},this.isMobile&&!this.isShortCashier?S.h("div",{class:"MenuReturnButton",onClick:()=>this.toggleScreen(this.isMobile)},S.h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},S.h("defs",null),S.h("g",{transform:"translate(-20 -158)"},S.h("g",{transform:"translate(20 158)"},S.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)"})))),S.h("h2",{class:"CategoryTitleMobile"},E(this.typeParameter==="Withdraw"?"Withdraw":"Deposit",this.language))):null),this.cashierInfoUrl?S.h("iframe",{width:"100%",height:"100%",src:this.cashierInfoUrl}):S.h("h3",{class:"ErrorMessage"},this.type==="deposit"?E("denyDeposit",this.language):E("denyWithdrawal",this.language)))))}loadWidget(){return Q(this,null,function*(){const o={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`,d=yield fetch(p,{method:"POST",headers:{"X-Sessionid":this.session,"Content-Type":"application/json","X-Client-Request-Timestamp":rt.utc().format("YYYY-MM-DD HH:mm:ss.SSS")},body:JSON.stringify(o)});if(!d.ok){const m=yield d.text();throw new Error(m)}const h=yield d.json();if(h.CashierInfo)this.cashierInfoUrl=h.CashierInfo.Url;else{let m;if(h.ResponseMessage){let w=this.errorCodes.find(y=>h.ResponseMessage.includes(y))||null;w?m=E(`errorCode${w}`,this.language):m=E("notFoundErrorCode",this.language)}else m=this.type==="deposit"?E("denyDeposit",this.language):E("denyWithdrawal",this.language);const T={type:"error",message:m};window.postMessage({type:"DenyDepositOrWithdrawal",data:T},window.location.href)}}catch(p){console.error(p)}})}handleMessage(o){var p,d,h,m,T,w,y,u;o.data["MMFE:openFullCashier"]==="true"&&(window.postMessage({type:"GoToDeposit"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href)),o.data["MMFE:setQuickDepositHeight"]&&this.isShortCashier&&(this.dynamicHeight=o.data["MMFE:setQuickDepositHeight"].toString()+"px"),o.data["MMFE:setIFrameHeight"]&&this.isShortCashier&&(this.dynamicHeight=o.data["MMFE:setIFrameHeight"].toString()+"px"),((p=o.data)===null||p===void 0?void 0:p.type)==="mm-hcback-to-merchant"&&this.doRedirect(o.data.type,this.homeUrl),((d=o.data)===null||d===void 0?void 0:d.redirect)==="mm-hc-back-tomerchant"&&this.doRedirect(o.data.redirect,this.homeUrl),((h=o.data)===null||h===void 0?void 0:h.redirect)==="mm-hc-sports"&&this.doRedirect((m=o.data)===null||m===void 0?void 0:m.redirect,this.sportsUrl),((T=o.data)===null||T===void 0?void 0:T.redirect)==="mm-hc-casino"&&this.doRedirect(window.location.href,this.casinoUrl),((w=o.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)),(((y=o.data)===null||y===void 0?void 0:y.redirect)==="mm-wm-hc-init-deposit"||((u=o.data)===null||u===void 0?void 0:u.redirect)==="mm-wm-hc-init-deposit-quick")&&(window.postMessage({type:"CloseShortCashier"},window.location.href),this.doRedirect(window.location.href,this.depositUrl))}doRedirect(o,p){const d={reason:o,url:p,cancel:!1};if(this.beforeRedirect(d),!d.cancel){if(!d.url){window.location.href="/";return}window.location.href=d.url}}static get watchers(){return{session:["watchLoadWidget"],userId:["watchLoadWidget"],isShortCashier:["watchLoadWidget"],currency:["watchLoadWidget"],showBonusSelectionInput:["watchLoadWidget"]}}};nt.style=ft;exports.user_deposit_withdrawal=nt;