@everymatrix/casino-header-controller 1.53.0 → 1.53.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,59 +0,0 @@
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;