@everymatrix/casino-header-controller 1.50.0 → 1.51.0
Sign up to get free protection for your applications and to get access to all the features.
- package/components/{CasinoHamburgerMenu-CmcbY3lm.js → CasinoHamburgerMenu-1MgwMavL.js} +318 -309
- package/components/CasinoHamburgerMenu-CX83WE31.cjs +8 -0
- package/components/{CasinoHeaderController-0pAb2v-X.cjs → CasinoHeaderController-B-WU2bPf.cjs} +5 -5
- package/components/{CasinoHeaderController-BBDCq4qg.js → CasinoHeaderController-Bv6EXaHk.js} +12 -6
- package/components/{CasinoSlider-C1KJ8ahx.js → CasinoSlider-DonAdyJx.js} +202 -197
- package/components/CasinoSlider-DsD-Fhk7.cjs +1 -0
- package/components/{PlayerAccountBalanceModal-BJjukMsQ.js → PlayerAccountBalanceModal-CwDfcNRi.js} +96 -85
- package/components/{PlayerAccountBalanceModal-C9Hfbr7e.cjs → PlayerAccountBalanceModal-D_BA3ijd.cjs} +5 -5
- package/components/{PlayerDeposit-ltqY6iH2.cjs → PlayerDeposit-C2Ku0XLf.cjs} +1 -1
- package/components/{PlayerDeposit-CZL4yy_-.js → PlayerDeposit-Dstpbsls.js} +1 -1
- package/es2015/casino-header-controller.cjs +1 -1
- package/es2015/casino-header-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/index-657e7a14-6spLHDf6.cjs +1 -0
- package/stencil/{index-04d3e726-7SC-B1hF.js → index-657e7a14-DDXA_k23.js} +248 -240
- package/stencil/user-deposit-withdrawal-CXzHd7L7.cjs +59 -0
- package/stencil/user-deposit-withdrawal-DGyUXAvB.js +597 -0
- package/components/CasinoHamburgerMenu-e8fY_qcG.cjs +0 -8
- package/components/CasinoSlider-CYAQLH4u.cjs +0 -1
- package/stencil/index-04d3e726-Bulen1Dl.cjs +0 -1
- package/stencil/user-deposit-withdrawal-CDH6LRSU.cjs +0 -59
- package/stencil/user-deposit-withdrawal-D7hnzB7y.js +0 -242
@@ -0,0 +1,59 @@
|
|
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;
|