@everymatrix/user-deposit-withdrawal 1.90.4 → 1.90.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2172,11 +2172,10 @@ const UserDepositWithdrawal = class {
2172
2172
  }
2173
2173
  }
2174
2174
  async componentWillLoad() {
2175
- await this.loadWidget();
2176
2175
  if (this.translationUrl) {
2177
- const translationPromise = getTranslations(this.translationUrl);
2178
- return translationPromise;
2176
+ await getTranslations(this.translationUrl);
2179
2177
  }
2178
+ await this.loadWidget();
2180
2179
  }
2181
2180
  componentDidLoad() {
2182
2181
  if (this.stylingContainer) {
@@ -2198,7 +2197,7 @@ const UserDepositWithdrawal = class {
2198
2197
  this.closeSSEStream();
2199
2198
  }
2200
2199
  render() {
2201
- return (index.h(index.Host, { key: '8bcf85e10168473086c2fc396d6e765ab83b7327' }, this.enableStepUpAuth && (index.h("player-step-up-auth", { key: '8ebf6cde613402070345c2263466e1d533c76887', endpoint: this.endpoint, userSession: this.session, language: this.language, "client-styling-url": this.clientStylingUrl, "translation-url": this.translationUrl })), index.h("div", { key: 'b8f01c9a533ad6609f4db2d0981a716930e21b52', ref: el => this.stylingContainer = el, class: "" }, index.h("div", { key: '74c808658271934aee5bc125f0663e56dfcf47b8', class: `DepositWithdrawalWrapper ${this.isShortCashier ? 'ShortCashier' : ''}` }, (!(this.isMobile && !this.isShortCashier) && (index.h("h2", { key: '70f1afb63dd6fec358b864063123f7910ac25906', class: "CategoryTitle" }, translate(this.typeParameter === 'Withdraw' ? 'Withdraw' : 'Deposit', this.language)))), index.h("div", { key: '83f0175347d8ab1260fa21dafeba9a4692a01b74', style: { marginTop: this.isShortCashier ? '30px' : '0' } }, (this.isMobile && !this.isShortCashier ?
2200
+ return (index.h(index.Host, { key: 'c6ee3b34fc4ef7174b2ff07ff246b4d38f8a4cf3' }, this.enableStepUpAuth && (index.h("player-step-up-auth", { key: 'dfaf2909e9f1028b9fd740f0fe612b0a82a30d57', endpoint: this.endpoint, userSession: this.session, language: this.language, "client-styling-url": this.clientStylingUrl, "translation-url": this.translationUrl })), index.h("div", { key: '70866c997fd1430dc827dac013fe5eeb5e205aa6', ref: el => this.stylingContainer = el, class: "" }, index.h("div", { key: 'f22a066bded11894ecc6b40452e91408bfaba461', class: `DepositWithdrawalWrapper ${this.isShortCashier ? 'ShortCashier' : ''}` }, (!(this.isMobile && !this.isShortCashier) && (index.h("h2", { key: 'e16eff42a179895d192584f51bdcb01cfb940911', class: "CategoryTitle" }, translate(this.typeParameter === 'Withdraw' ? 'Withdraw' : 'Deposit', this.language)))), index.h("div", { key: 'be8524a9a7a7f9f7735fd8703563159e207901c4', style: { marginTop: this.isShortCashier ? '30px' : '0' } }, (this.isMobile && !this.isShortCashier ?
2202
2201
  index.h("div", { class: "MenuReturnButton", onClick: this.toggleScreen }, index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15" }, index.h("defs", null), index.h("g", { transform: "translate(-20 -158)" }, index.h("g", { transform: "translate(20 158)" }, index.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)" })))), index.h("h2", { class: "CategoryTitleMobile" }, translate(this.typeParameter === 'Withdraw' ? 'Withdraw' : 'Deposit', this.language)))
2203
2202
  : null)), this.cashierInfoUrl ?
2204
2203
  index.h("iframe", { ref: el => this.cashierIframeRef = el, width: "100%", allow: "payment", height: this.dynamicHeight, src: this.cashierInfoUrl }) :
@@ -73,11 +73,10 @@ export class UserDepositWithdrawal {
73
73
  }
74
74
  }
75
75
  async componentWillLoad() {
76
- await this.loadWidget();
77
76
  if (this.translationUrl) {
78
- const translationPromise = getTranslations(this.translationUrl);
79
- return translationPromise;
77
+ await getTranslations(this.translationUrl);
80
78
  }
79
+ await this.loadWidget();
81
80
  }
82
81
  componentDidLoad() {
83
82
  if (this.stylingContainer) {
@@ -99,7 +98,7 @@ export class UserDepositWithdrawal {
99
98
  this.closeSSEStream();
100
99
  }
101
100
  render() {
102
- return (h(Host, { key: '8bcf85e10168473086c2fc396d6e765ab83b7327' }, this.enableStepUpAuth && (h("player-step-up-auth", { key: '8ebf6cde613402070345c2263466e1d533c76887', endpoint: this.endpoint, userSession: this.session, language: this.language, "client-styling-url": this.clientStylingUrl, "translation-url": this.translationUrl })), h("div", { key: 'b8f01c9a533ad6609f4db2d0981a716930e21b52', ref: el => this.stylingContainer = el, class: "" }, h("div", { key: '74c808658271934aee5bc125f0663e56dfcf47b8', class: `DepositWithdrawalWrapper ${this.isShortCashier ? 'ShortCashier' : ''}` }, (!(this.isMobile && !this.isShortCashier) && (h("h2", { key: '70f1afb63dd6fec358b864063123f7910ac25906', class: "CategoryTitle" }, translate(this.typeParameter === 'Withdraw' ? 'Withdraw' : 'Deposit', this.language)))), h("div", { key: '83f0175347d8ab1260fa21dafeba9a4692a01b74', style: { marginTop: this.isShortCashier ? '30px' : '0' } }, (this.isMobile && !this.isShortCashier ?
101
+ return (h(Host, { key: 'c6ee3b34fc4ef7174b2ff07ff246b4d38f8a4cf3' }, this.enableStepUpAuth && (h("player-step-up-auth", { key: 'dfaf2909e9f1028b9fd740f0fe612b0a82a30d57', endpoint: this.endpoint, userSession: this.session, language: this.language, "client-styling-url": this.clientStylingUrl, "translation-url": this.translationUrl })), h("div", { key: '70866c997fd1430dc827dac013fe5eeb5e205aa6', ref: el => this.stylingContainer = el, class: "" }, h("div", { key: 'f22a066bded11894ecc6b40452e91408bfaba461', class: `DepositWithdrawalWrapper ${this.isShortCashier ? 'ShortCashier' : ''}` }, (!(this.isMobile && !this.isShortCashier) && (h("h2", { key: 'e16eff42a179895d192584f51bdcb01cfb940911', class: "CategoryTitle" }, translate(this.typeParameter === 'Withdraw' ? 'Withdraw' : 'Deposit', this.language)))), h("div", { key: 'be8524a9a7a7f9f7735fd8703563159e207901c4', style: { marginTop: this.isShortCashier ? '30px' : '0' } }, (this.isMobile && !this.isShortCashier ?
103
102
  h("div", { class: "MenuReturnButton", onClick: this.toggleScreen }, 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" }, translate(this.typeParameter === 'Withdraw' ? 'Withdraw' : 'Deposit', this.language)))
104
103
  : null)), this.cashierInfoUrl ?
105
104
  h("iframe", { ref: el => this.cashierIframeRef = el, width: "100%", allow: "payment", height: this.dynamicHeight, src: this.cashierInfoUrl }) :
@@ -2168,11 +2168,10 @@ const UserDepositWithdrawal = class {
2168
2168
  }
2169
2169
  }
2170
2170
  async componentWillLoad() {
2171
- await this.loadWidget();
2172
2171
  if (this.translationUrl) {
2173
- const translationPromise = getTranslations(this.translationUrl);
2174
- return translationPromise;
2172
+ await getTranslations(this.translationUrl);
2175
2173
  }
2174
+ await this.loadWidget();
2176
2175
  }
2177
2176
  componentDidLoad() {
2178
2177
  if (this.stylingContainer) {
@@ -2194,7 +2193,7 @@ const UserDepositWithdrawal = class {
2194
2193
  this.closeSSEStream();
2195
2194
  }
2196
2195
  render() {
2197
- return (h(Host, { key: '8bcf85e10168473086c2fc396d6e765ab83b7327' }, this.enableStepUpAuth && (h("player-step-up-auth", { key: '8ebf6cde613402070345c2263466e1d533c76887', endpoint: this.endpoint, userSession: this.session, language: this.language, "client-styling-url": this.clientStylingUrl, "translation-url": this.translationUrl })), h("div", { key: 'b8f01c9a533ad6609f4db2d0981a716930e21b52', ref: el => this.stylingContainer = el, class: "" }, h("div", { key: '74c808658271934aee5bc125f0663e56dfcf47b8', class: `DepositWithdrawalWrapper ${this.isShortCashier ? 'ShortCashier' : ''}` }, (!(this.isMobile && !this.isShortCashier) && (h("h2", { key: '70f1afb63dd6fec358b864063123f7910ac25906', class: "CategoryTitle" }, translate(this.typeParameter === 'Withdraw' ? 'Withdraw' : 'Deposit', this.language)))), h("div", { key: '83f0175347d8ab1260fa21dafeba9a4692a01b74', style: { marginTop: this.isShortCashier ? '30px' : '0' } }, (this.isMobile && !this.isShortCashier ?
2196
+ return (h(Host, { key: 'c6ee3b34fc4ef7174b2ff07ff246b4d38f8a4cf3' }, this.enableStepUpAuth && (h("player-step-up-auth", { key: 'dfaf2909e9f1028b9fd740f0fe612b0a82a30d57', endpoint: this.endpoint, userSession: this.session, language: this.language, "client-styling-url": this.clientStylingUrl, "translation-url": this.translationUrl })), h("div", { key: '70866c997fd1430dc827dac013fe5eeb5e205aa6', ref: el => this.stylingContainer = el, class: "" }, h("div", { key: 'f22a066bded11894ecc6b40452e91408bfaba461', class: `DepositWithdrawalWrapper ${this.isShortCashier ? 'ShortCashier' : ''}` }, (!(this.isMobile && !this.isShortCashier) && (h("h2", { key: 'e16eff42a179895d192584f51bdcb01cfb940911', class: "CategoryTitle" }, translate(this.typeParameter === 'Withdraw' ? 'Withdraw' : 'Deposit', this.language)))), h("div", { key: 'be8524a9a7a7f9f7735fd8703563159e207901c4', style: { marginTop: this.isShortCashier ? '30px' : '0' } }, (this.isMobile && !this.isShortCashier ?
2198
2197
  h("div", { class: "MenuReturnButton", onClick: this.toggleScreen }, 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" }, translate(this.typeParameter === 'Withdraw' ? 'Withdraw' : 'Deposit', this.language)))
2199
2198
  : null)), this.cashierInfoUrl ?
2200
2199
  h("iframe", { ref: el => this.cashierIframeRef = el, width: "100%", allow: "payment", height: this.dynamicHeight, src: this.cashierInfoUrl }) :
@@ -63,7 +63,7 @@ export declare class UserDepositWithdrawal {
63
63
  private errorCodes;
64
64
  handleClientStylingChange(newValue: any, oldValue: any): void;
65
65
  handleClientStylingChangeURL(newValue: any, oldValue: any): void;
66
- componentWillLoad(): Promise<unknown>;
66
+ componentWillLoad(): Promise<void>;
67
67
  toggleScreen: () => void;
68
68
  componentDidLoad(): void;
69
69
  disconnectedCallback(): void;
@@ -3,4 +3,4 @@ import{r as e,h as t,F as i,g as r,H as n}from"./index-2ff63899.js";const o="__W
3
3
  * eventsource.js
4
4
  * Available under MIT License (MIT)
5
5
  * https://github.com/Yaffle/EventSource/
6
- */C=T,k=T.exports,function(e){var t=e.setTimeout,i=e.clearTimeout,r=e.XMLHttpRequest,n=e.XDomainRequest,o=e.ActiveXObject,a=e.EventSource,s=e.document,d=e.Promise,u=e.fetch,l=e.Response,h=e.TextDecoder,c=e.TextEncoder,p=e.AbortController;if("undefined"==typeof window||void 0===s||"readyState"in s||null!=s.body||(s.readyState="loading",window.addEventListener("load",(function(){s.readyState="complete"}),!1)),null==r&&null!=o&&(r=function(){return new o("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==p){var f=u;u=function(e,t){var i=t.signal;return f(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then((function(e){var t=e.body.getReader();return i._reader=t,i._aborted&&i._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}}))},p=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function m(){this.bitsNeeded=0,this.codePoint=0}m.prototype.decode=function(e){function t(e,t,i){if(1===i)return e>=128>>t&&e<<t<=2047;if(2===i)return e>=2048>>t&&e<<t<=55295||e>=57344>>t&&e<<t<=65535;if(3===i)return e>=65536>>t&&e<<t<=1114111;throw new Error}function i(e,t){if(6===e)return t>>6>15?3:t>31?2:1;if(12===e)return t>15?3:2;if(18===e)return 3;throw new Error}for(var r=65533,n="",o=this.bitsNeeded,a=this.codePoint,s=0;s<e.length;s+=1){var d=e[s];0!==o&&(d<128||d>191||!t(a<<6|63&d,o-6,i(o,a)))&&(o=0,a=r,n+=String.fromCharCode(a)),0===o?(d>=0&&d<=127?(o=0,a=d):d>=192&&d<=223?(o=6,a=31&d):d>=224&&d<=239?(o=12,a=15&d):d>=240&&d<=247?(o=18,a=7&d):(o=0,a=r),0===o||t(a,o,i(o,a))||(o=0,a=r)):(o-=6,a=a<<6|63&d),0===o&&(a<=65535?n+=String.fromCharCode(a):(n+=String.fromCharCode(55296+(a-65535-1>>10)),n+=String.fromCharCode(56320+(a-65535-1&1023))))}return this.bitsNeeded=o,this.codePoint=a,n},null!=h&&null!=c&&function(){try{return"test"===(new h).decode((new c).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}return!1}()||(h=m);var v=function(){};function g(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=v,this.onload=v,this.onerror=v,this.onreadystatechange=v,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=v}function w(e){return e.replace(/[A-Z]/g,(function(e){return String.fromCharCode(e.charCodeAt(0)+32)}))}function y(e){for(var t=Object.create(null),i=e.split("\r\n"),r=0;r<i.length;r+=1){var n=i[r].split(": "),o=n.shift(),a=n.join(": ");t[w(o)]=a}this._map=t}function b(){}function O(e){this._headers=e}function S(){}function E(){this._listeners=Object.create(null)}function T(e){t((function(){throw e}),0)}function P(e){this.type=e,this.target=void 0}function M(e,t){P.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function x(e,t){P.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function D(e,t){P.call(this,e),this.error=t.error}g.prototype.open=function(e,n){this._abort(!0);var o=this,a=this._xhr,s=1,d=0;this._abort=function(e){0!==o._sendTimeout&&(i(o._sendTimeout),o._sendTimeout=0),1!==s&&2!==s&&3!==s||(s=4,a.onload=v,a.onerror=v,a.onabort=v,a.onprogress=v,a.onreadystatechange=v,a.abort(),0!==d&&(i(d),d=0),e||(o.readyState=4,o.onabort(null),o.onreadystatechange())),s=0};var u=function(){if(1===s){var e=0,t="",i=void 0;if("contentType"in a)e=200,t="OK",i=a.contentType;else try{e=a.status,t=a.statusText,i=a.getResponseHeader("Content-Type")}catch(r){e=0,t="",i=void 0}0!==e&&(s=2,o.readyState=2,o.status=e,o.statusText=t,o._contentType=i,o.onreadystatechange())}},l=function(){if(u(),2===s||3===s){s=3;var e="";try{e=a.responseText}catch(e){}o.readyState=3,o.responseText=e,o.onprogress()}},h=function(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:v}),l(),1===s||2===s||3===s){if(s=4,0!==d&&(i(d),d=0),o.readyState=4,"load"===e)o.onload(t);else if("error"===e)o.onerror(t);else{if("abort"!==e)throw new TypeError;o.onabort(t)}o.onreadystatechange()}},c=function(){d=t((function(){c()}),500),3===a.readyState&&l()};"onload"in a&&(a.onload=function(e){h("load",e)}),"onerror"in a&&(a.onerror=function(e){h("error",e)}),"onabort"in a&&(a.onabort=function(e){h("abort",e)}),"onprogress"in a&&(a.onprogress=l),"onreadystatechange"in a&&(a.onreadystatechange=function(e){!function(e){null!=a&&(4===a.readyState?"onload"in a&&"onerror"in a&&"onabort"in a||h(""===a.responseText?"error":"load",e):3===a.readyState?"onprogress"in a||l():2===a.readyState&&u())}(e)}),!("contentType"in a)&&"ontimeout"in r.prototype||(n+=(-1===n.indexOf("?")?"?":"&")+"padding=true"),a.open(e,n,!0),"readyState"in a&&(d=t((function(){c()}),0))},g.prototype.abort=function(){this._abort(!1)},g.prototype.getResponseHeader=function(){return this._contentType},g.prototype.setRequestHeader=function(e,t){var i=this._xhr;"setRequestHeader"in i&&i.setRequestHeader(e,t)},g.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},g.prototype.send=function(){if("ontimeout"in r.prototype&&("sendAsBinary"in r.prototype||"mozAnon"in r.prototype)||null==s||null==s.readyState||"complete"===s.readyState){var e=this._xhr;"withCredentials"in e&&(e.withCredentials=this.withCredentials);try{e.send(void 0)}catch(e){throw e}}else{var i=this;i._sendTimeout=t((function(){i._sendTimeout=0,i.send()}),4)}},y.prototype.get=function(e){return this._map[w(e)]},null!=r&&null==r.HEADERS_RECEIVED&&(r.HEADERS_RECEIVED=2),b.prototype.open=function(e,t,i,n,o,a,s){e.open("GET",o);var d=0;for(var u in e.onprogress=function(){var t=e.responseText.slice(d);d+=t.length,i(t)},e.onerror=function(e){e.preventDefault(),n(new Error("NetworkError"))},e.onload=function(){n(null)},e.onabort=function(){n(null)},e.onreadystatechange=function(){if(e.readyState===r.HEADERS_RECEIVED){var i=e.status,n=e.statusText,o=e.getResponseHeader("Content-Type"),a=e.getAllResponseHeaders();t(i,n,o,new y(a))}},e.withCredentials=a,s)Object.prototype.hasOwnProperty.call(s,u)&&e.setRequestHeader(u,s[u]);return e.send(),e},O.prototype.get=function(e){return this._headers.get(e)},S.prototype.open=function(e,t,i,r,n,o,a){var s=null,l=new p,c=l.signal,f=new h;return u(n,{headers:a,credentials:o?"include":"same-origin",signal:c,cache:"no-store"}).then((function(e){return s=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new O(e.headers)),new d((function(e,t){var r=function(){s.read().then((function(t){if(t.done)e(void 0);else{var n=f.decode(t.value,{stream:!0});i(n),r()}})).catch((function(e){t(e)}))};r()}))})).catch((function(e){return"AbortError"===e.name?void 0:e})).then((function(e){r(e)})),{abort:function(){null!=s&&s.cancel(),l.abort()}}},E.prototype.dispatchEvent=function(e){e.target=this;var t=this._listeners[e.type];if(null!=t)for(var i=t.length,r=0;r<i;r+=1){var n=t[r];try{"function"==typeof n.handleEvent?n.handleEvent(e):n.call(this,e)}catch(e){T(e)}}},E.prototype.addEventListener=function(e,t){e=String(e);var i=this._listeners,r=i[e];null==r&&(i[e]=r=[]);for(var n=!1,o=0;o<r.length;o+=1)r[o]===t&&(n=!0);n||r.push(t)},E.prototype.removeEventListener=function(e,t){e=String(e);var i=this._listeners,r=i[e];if(null!=r){for(var n=[],o=0;o<r.length;o+=1)r[o]!==t&&n.push(r[o]);0===n.length?delete i[e]:i[e]=n}},M.prototype=Object.create(P.prototype),x.prototype=Object.create(P.prototype),D.prototype=Object.create(P.prototype);var z=/^text\/event\-stream(;.*)?$/i,j=function(e,t){var i=null==e?t:parseInt(e,10);return i!=i&&(i=t),W(i)},W=function(e){return Math.min(Math.max(e,1e3),18e6)},L=function(e,t,i){try{"function"==typeof t&&t.call(e,i)}catch(e){T(e)}};function H(e,o){E.call(this),o=o||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,function(e,o,a){o=String(o);var s=Boolean(a.withCredentials),d=a.lastEventIdQueryParameterName||"lastEventId",u=W(1e3),l=j(a.heartbeatTimeout,45e3),h="",c=u,p=!1,f=0,m=a.headers||{},v=a.Transport,w=A&&null==v?void 0:new g(null!=v?new v:null!=r&&"withCredentials"in r.prototype||null==n?new r:new n),y=null!=v&&"string"!=typeof v?new v:null==w?new S:new b,O=void 0,E=0,C=-1,k="",T="",P="",H="",F=0,B=0,I=0,R=function(t,i,r,n){if(0===C)if(200===t&&null!=r&&z.test(r)){C=1,p=Date.now(),c=u,e.readyState=1;var o=new x("open",{status:t,statusText:i,headers:n});e.dispatchEvent(o),L(e,e.onopen,o)}else{var a="";200!==t?(i&&(i=i.replace(/\s+/g," ")),a="EventSource's response has a status "+t+" "+i+" that is not 200. Aborting the connection."):a="EventSource's response has a Content-Type specifying an unsupported type: "+(null==r?"-":r.replace(/\s+/g," "))+". Aborting the connection.",_(),o=new x("error",{status:t,statusText:i,headers:n}),e.dispatchEvent(o),L(e,e.onerror,o),console.error(a)}},q=function(r){if(1===C){for(var n=-1,o=0;o<r.length;o+=1)(d=r.charCodeAt(o))!=="\n".charCodeAt(0)&&d!=="\r".charCodeAt(0)||(n=o);var a=(-1!==n?H:"")+r.slice(0,n+1);H=(-1===n?H:"")+r.slice(n+1),""!==r&&(p=Date.now(),f+=r.length);for(var s=0;s<a.length;s+=1){var d=a.charCodeAt(s);if(-1===F&&d==="\n".charCodeAt(0))F=0;else if(-1===F&&(F=0),d==="\r".charCodeAt(0)||d==="\n".charCodeAt(0)){if(0!==F){1===F&&(I=s+1);var m=a.slice(B,I-1),v=a.slice(I+(I<s&&a.charCodeAt(I)===" ".charCodeAt(0)?1:0),s);"data"===m?(k+="\n",k+=v):"id"===m?T=v:"event"===m?P=v:"retry"===m?(u=j(v,u),c=u):"heartbeatTimeout"===m&&(l=j(v,l),0!==E&&(i(E),E=t((function(){$()}),l)))}if(0===F){if(""!==k){h=T,""===P&&(P="message");var g=new M(P,{data:k.slice(1),lastEventId:T});if(e.dispatchEvent(g),"open"===P?L(e,e.onopen,g):"message"===P?L(e,e.onmessage,g):"error"===P&&L(e,e.onerror,g),2===C)return}k="",P=""}F=d==="\r".charCodeAt(0)?-1:0}else 0===F&&(B=s,F=1),1===F?d===":".charCodeAt(0)&&(I=s+1,F=2):2===F&&(F=3)}}},V=function(r){if(1===C||0===C){C=-1,0!==E&&(i(E),E=0),E=t((function(){$()}),c),c=W(Math.min(16*u,2*c)),e.readyState=0;var n=new D("error",{error:r});e.dispatchEvent(n),L(e,e.onerror,n),null!=r&&console.error(r)}},_=function(){C=2,null!=O&&(O.abort(),O=void 0),0!==E&&(i(E),E=0),e.readyState=2},$=function(){if(E=0,-1===C){p=!1,f=0,E=t((function(){$()}),l),C=0,k="",P="",T=h,H="",B=0,I=0,F=0;var i=o;if("data:"!==o.slice(0,5)&&"blob:"!==o.slice(0,5)&&""!==h){var r=o.indexOf("?");i=-1===r?o:o.slice(0,r+1)+o.slice(r+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,(function(e,t){return t===d?"":e})),i+=(-1===o.indexOf("?")?"?":"&")+d+"="+encodeURIComponent(h)}var n=e.withCredentials,a={Accept:"text/event-stream"},s=e.headers;if(null!=s)for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(a[u]=s[u]);try{O=y.open(w,R,q,V,i,n,a)}catch(e){throw _(),e}}else if(p||null==O){var c=Math.max((p||Date.now())+l-Date.now(),1);p=!1,E=t((function(){$()}),c)}else V(new Error("No activity within "+l+" milliseconds. "+(0===C?"No response received.":f+" chars received.")+" Reconnecting.")),null!=O&&(O.abort(),O=void 0)};e.url=o,e.readyState=0,e.withCredentials=s,e.headers=m,e._close=_,$()}(this,e,o)}var A=null!=u&&null!=l&&"body"in l.prototype;(H.prototype=Object.create(E.prototype)).CONNECTING=0,H.prototype.OPEN=1,H.prototype.CLOSED=2,H.prototype.close=function(){this._close()},H.CONNECTING=0,H.OPEN=1,H.CLOSED=2,H.prototype.withCredentials=void 0;var F,B=a;null==r||null!=a&&"withCredentials"in a.prototype||(B=H),F=function(e){e.EventSourcePolyfill=H,e.NativeEventSource=a,e.EventSource=B}(k),void 0!==F&&(C.exports=F)}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:v:globalThis);const P="user-deposit-withdrawal",M=["mm-hcback-to-merchant","mm-hc-back-tomerchant","mm-hc-sports","mm-hc-casino","mm-hc-contact","mm-wm-hc-init-deposit","mm-wm-hc-init-deposit-quick"],x="TWO_FACTOR_AUTH_NOTIFICATION",D="MMFE:setQuickDepositHeight",z="MMFE:setIFrameHeight",j="MMFE:selectedPaymentMethod",W="MMFE:proceedPayment",L="MMFE:cancelPayment",H="MMFE:ResetOTP",A=()=>{},F={PROCEED:{[W]:"true"},CANCEL:{[L]:"true"},RESET:{[H]:"true"},PROCEED_FALSE:{[W]:"false"}};w.extend(E);const B=class{constructor(t){var i;e(this,t),this.sseStream=null,this.selectedPaymentMethod=null,this.sseReconnectAttempts=0,this.sseReconnectTimer=null,this.sseShouldStayConnected=!1,this.SSE_MAX_RECONNECT_ATTEMPTS=5,this.SSE_RECONNECT_DELAY_BASE_MS=1e3,this.bindedHandler=this.handleMessage.bind(this),this.userAgent=window.navigator.userAgent,this.isMobile=!!((i=this.userAgent).toLowerCase().match(/android/i)||i.toLowerCase().match(/blackberry|bb/i)||i.toLowerCase().match(/iphone|ipad|ipod/i)||i.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),this.errorCodes=["21123","21122","21121"],this.toggleScreen=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:this.isMobile},window.location.href)},this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.endpoint=void 0,this.type=void 0,this.channel=void 0,this.language=void 0,this.productType="",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=A,this.forwardCashierRedirects=!1,this.enableStepUpAuth=!1,this.dynamicHeight=void 0,this.cashierInfoUrl=void 0}get typeParameter(){return"deposit"===this.type?"Deposit":"withdraw"===this.type?"Withdraw":void 0}handleClientStylingChange(e,t){e!=t&&a(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(e,t){e!=t&&this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl)}async componentWillLoad(){if(await this.loadWidget(),this.translationUrl)return e=this.translationUrl,new Promise((t=>{fetch(e).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{for(let i in e[t])f[t][i]=e[t][i]})),t(!0)}))}));var e}componentDidLoad(){this.stylingContainer&&(null!=window.emMessageBus?d(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription):(this.clientStyling&&a(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl))),window.addEventListener("message",this.bindedHandler,!1)}disconnectedCallback(){window.removeEventListener("message",this.bindedHandler,!1),this.stylingSubscription&&this.stylingSubscription.unsubscribe(),this.closeSSEStream()}render(){return t(n,{key:"8bcf85e10168473086c2fc396d6e765ab83b7327"},this.enableStepUpAuth&&t("player-step-up-auth",{key:"8ebf6cde613402070345c2263466e1d533c76887",endpoint:this.endpoint,userSession:this.session,language:this.language,"client-styling-url":this.clientStylingUrl,"translation-url":this.translationUrl}),t("div",{key:"b8f01c9a533ad6609f4db2d0981a716930e21b52",ref:e=>this.stylingContainer=e,class:""},t("div",{key:"74c808658271934aee5bc125f0663e56dfcf47b8",class:"DepositWithdrawalWrapper "+(this.isShortCashier?"ShortCashier":"")},!(this.isMobile&&!this.isShortCashier)&&t("h2",{key:"70f1afb63dd6fec358b864063123f7910ac25906",class:"CategoryTitle"},m("Withdraw"===this.typeParameter?"Withdraw":"Deposit",this.language)),t("div",{key:"83f0175347d8ab1260fa21dafeba9a4692a01b74",style:{marginTop:this.isShortCashier?"30px":"0"}},this.isMobile&&!this.isShortCashier?t("div",{class:"MenuReturnButton",onClick:this.toggleScreen},t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},t("defs",null),t("g",{transform:"translate(-20 -158)"},t("g",{transform:"translate(20 158)"},t("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)"})))),t("h2",{class:"CategoryTitleMobile"},m("Withdraw"===this.typeParameter?"Withdraw":"Deposit",this.language))):null),this.cashierInfoUrl?t("iframe",{ref:e=>this.cashierIframeRef=e,width:"100%",allow:"payment",height:this.dynamicHeight,src:this.cashierInfoUrl}):t("h3",{innerHTML:m("deposit"===this.type?"denyDeposit":"denyWithdrawal",this.language),class:"ErrorMessage"}))))}async loadWidget(){const e={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};if(!Object.values(e).some((e=>void 0===e))&&this.endpoint)try{const t=`${this.endpoint}/v1/player/${this.userId}/payment/GetPaymentSession`,i=await fetch(t,{method:"POST",headers:{"X-Sessionid":this.session,"Content-Type":"application/json","X-Client-Request-Timestamp":w.utc().format("YYYY-MM-DD HH:mm:ss.SSS")},body:JSON.stringify(e)});if(!i.ok){const e=await i.text();throw new Error(e)}const r=await i.json();if(r.CashierInfo)this.cashierInfoUrl=r.CashierInfo.Url;else{let e;if(r.ResponseMessage){let t=this.errorCodes.find((e=>r.ResponseMessage.includes(e)))||null;e=m(t?`errorCode${t}`:"notFoundErrorCode",this.language)}else e=m("deposit"===this.type?"denyDeposit":"denyWithdrawal",this.language);window.postMessage({type:"DenyDepositOrWithdrawal",data:{type:"error",message:e}},window.location.href)}}catch(e){console.error(e)}}handleEnableStepUpAuthChange(e){!e&&this.sseStream&&this.closeSSEStream()}handleMessage(e){const t=this.extractPayload(e);if(!t)return;this.applyLayoutHints(t);const i=this.extractCashierRedirectReason(t);if(!i)return;if(this.emitForwardedRedirect(e,i))return;const r=this.resolveRedirectPlan(i);r&&this.doRedirect(r.reason,r.targetUrl)}extractCashierRedirectReason(e){return"string"==typeof(null==e?void 0:e.type)&&M.includes(e.type)?e.type:"string"==typeof(null==e?void 0:e.redirect)&&M.includes(e.redirect)?e.redirect:void 0}extractPayload(e){if((null==e?void 0:e.data)&&"object"==typeof e.data)return e.data}applyLayoutHints(e){if("true"===e["MMFE:openFullCashier"]&&(window.postMessage({type:"GoToDeposit"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href)),e[D]&&this.isShortCashier&&(this.dynamicHeight=e[D].toString()+"px"),e[z]&&(this.dynamicHeight=e[z].toString()+"px"),e[j]){const t=e[j];this.selectedPaymentMethod!==t&&(this.selectedPaymentMethod=t,this.sseStream&&this.closeSSEStream(),"withdraw"===this.type&&(e=>{if(!e||"string"!=typeof e)return!1;const t=e.toLowerCase();return t.includes("voucher")||t.includes("offline")})(t)&&this.enableStepUpAuth&&this.initializeSSE())}e["MMFE:vendorRedirect"]&&window.postMessage({type:`${P}:mm-open-vendor`,url:e["MMFE:vendorRedirect"]},window.location.href)}resolveRedirectPlan(e){switch(e){case"mm-hcback-to-merchant":case"mm-hc-back-tomerchant":return this.buildRedirectPlan(e,this.homeUrl);case"mm-hc-sports":return this.buildRedirectPlan(e,this.sportsUrl);case"mm-hc-casino":return this.buildRedirectPlan(window.location.href,this.casinoUrl);case"mm-hc-contact":return window.postMessage({type:"CloseShortCashier"},window.location.href),this.buildRedirectPlan(window.location.href,this.contactUrl);case"mm-wm-hc-init-deposit":case"mm-wm-hc-init-deposit-quick":return window.postMessage({type:"CloseShortCashier"},window.location.href),this.buildRedirectPlan(window.location.href,this.depositUrl);default:return}}buildRedirectPlan(e,t){if(t)return{reason:e,targetUrl:t}}emitForwardedRedirect(e,t){return!!this.forwardCashierRedirects&&(window.postMessage({type:`${P}:${t}`,originalType:t,payload:e.data,origin:e.origin},window.location.href),!0)}doRedirect(e,t){const i={reason:e,url:t,cancel:!1};this.beforeRedirect(i),i.cancel||(window.location.href=i.url?i.url:"/")}initializeSSE(){this.sseStream&&this.sseStream.readyState!==T.exports.EventSourcePolyfill.CLOSED||(this.endpoint&&this.userId&&this.session&&"withdraw"===this.type?(this.sseShouldStayConnected=!0,this.sseReconnectAttempts=0,this.connectSSE()):console.warn("[SSE] initializeSSE - missing required props, cannot initialize"))}connectSSE(){if(this.sseStream){try{this.sseStream.close()}catch(e){console.warn("[SSE] closeSSEStream - error closing stream:",e)}this.sseStream=null}if(this.sseShouldStayConnected)try{const e=new URL(`/v1/player/${this.userId}/information/updates`,this.endpoint);this.sseStream=new T.exports.EventSourcePolyfill(e,{headers:{accept:"text/event-stream","X-SessionId":this.session}}),this.sseStream.addEventListener("open",this.handleSSEOpen.bind(this)),this.sseStream.addEventListener("message",this.handleSSEMessage.bind(this)),this.sseStream.addEventListener("error",this.handleSSEError.bind(this))}catch(e){console.error("[SSE] connectSSE - Failed to create EventSourcePolyfill:",e),this.scheduleReconnect()}}handleSSEOpen(e){console.info("[SSE] handleSSEOpen - connection opened successfully"),this.sseReconnectAttempts=0,this.sseReconnectTimer&&(clearTimeout(this.sseReconnectTimer),this.sseReconnectTimer=null)}handleSSEMessage(e){if(this.enableStepUpAuth)try{const t=JSON.parse(e.data),i=t.type;if(i===x){const{body:{challengeId:e}={}}=t;e?this.triggerStepUpAuth(e):console.error(`${x} received but challengeId not found in body`)}else"SESSION_EXPIRATION"===i&&(console.info("[SSE] SESSION_EXPIRATION received, closing connection"),window.postMessage({type:"SessionExpiration",reason:"failed2FA"},window.location.href),this.closeSSEStream())}catch(e){console.error("Error parsing SSE message:",e)}}handleSSEError(e){console.warn("[SSE] connection error"),this.sseShouldStayConnected&&this.sseReconnectAttempts<this.SSE_MAX_RECONNECT_ATTEMPTS?this.scheduleReconnect():this.sseReconnectAttempts>=this.SSE_MAX_RECONNECT_ATTEMPTS&&(console.error("[SSE] handleSSEError - max reconnection attempts reached, giving up"),this.closeSSEStream())}scheduleReconnect(){if(!this.sseShouldStayConnected)return;this.sseReconnectTimer&&clearTimeout(this.sseReconnectTimer),this.sseReconnectAttempts++;const e=this.SSE_RECONNECT_DELAY_BASE_MS*Math.pow(2,this.sseReconnectAttempts-1);this.sseReconnectTimer=setTimeout((()=>{this.sseReconnectTimer=null,this.sseShouldStayConnected&&this.connectSSE()}),e)}closeSSEStream(){if(this.sseShouldStayConnected=!1,this.sseReconnectTimer&&(clearTimeout(this.sseReconnectTimer),this.sseReconnectTimer=null),this.sseStream){try{this.sseStream.close()}catch(e){console.warn("[SSE] closeSSEStream - error closing stream:",e)}this.sseStream=null}this.sseReconnectAttempts=0}triggerStepUpAuth(e){this.enableStepUpAuth&&window.dispatchEvent(new CustomEvent("stepUpAuthRequired",{detail:{"x-step-up-required":!0,"x-step-up-token":e,flow:"stateful"}}))}getCashierOrigin(){if(!this.cashierInfoUrl)return"*";try{return new URL(this.cashierInfoUrl).origin}catch(e){return console.warn("Failed to parse cashier URL origin, using wildcard:",e),"*"}}sendMessageToCashier(e){var t;if(!(null===(t=this.cashierIframeRef)||void 0===t?void 0:t.contentWindow))return void console.warn("Cashier iframe not available for postMessage");const i=this.getCashierOrigin();this.cashierIframeRef.contentWindow.postMessage(e,i)}handleOtpSuccess(){this.enableStepUpAuth&&(this.sendMessageToCashier(F.PROCEED),this.closeSSEStream())}handleManualClosePopup(){this.enableStepUpAuth&&(this.sendMessageToCashier(F.CANCEL),this.closeSSEStream())}handleOtpResendRequested(){this.enableStepUpAuth&&(window.dispatchEvent(new CustomEvent("closePopup")),this.sendMessageToCashier(F.RESET))}handleOtpSetTimeout(){this.enableStepUpAuth&&this.sendMessageToCashier(F.PROCEED_FALSE)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"],enableStepUpAuth:["handleEnableStepUpAuthChange"]}}};B.style=":host {\n font: inherit;\n display: block;\n height: 100%;\n container-type: inline-size;\n}\n\n.DepositWithdrawalContainer {\n container-type: inline-size;\n container-name: deposit-container;\n}\n\n.CategoryTitle {\n font-size: var(--emw--font-size-x-large, 26px);\n color: var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));\n}\n\n.MenuReturnButton {\n font: inherit;\n color: var(--emw--color-gray-300, #58586B);\n display: inline-flex;\n align-items: center;\n column-gap: 10px;\n margin-bottom: 10px;\n}\n.MenuReturnButton svg {\n fill: var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));\n}\n.MenuReturnButton h2.CategoryTitleMobile {\n font-size: 16px;\n color: var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));\n}\n\n.ErrorMessage {\n color: var(--emw--pam-color-typography, var(--emw--color-typography, #FFFFFF));\n}\n\n.DepositWithdrawalWrapper {\n width: 100%;\n margin: 0;\n padding: 50px;\n box-sizing: border-box;\n overflow-y: scroll;\n}\n.DepositWithdrawalWrapper iframe {\n border-width: 0;\n}\n\n.ShortCashier.DepositWithdrawalWrapper {\n height: 500px;\n}\n.ShortCashier.CategoryTitle.CategoryTitle {\n margin-right: 20px;\n padding-top: 20px;\n color: var(--emw--color-black, #000000);\n}\n.ShortCashier .ErrorMessage {\n margin: auto;\n width: 90%;\n margin-top: 70px;\n text-align: center;\n color: var(--emw--color-black, #000000);\n}\n\n@container (max-width: 768px) {\n .DepositWithdrawalWrapper {\n padding: 20px 15px;\n }\n .DepositWithdrawalWrapper:not(.ShortCashier) {\n overflow: visible;\n }\n}";export{c as player_step_up_auth,B as user_deposit_withdrawal}
6
+ */C=T,k=T.exports,function(e){var t=e.setTimeout,i=e.clearTimeout,r=e.XMLHttpRequest,n=e.XDomainRequest,o=e.ActiveXObject,a=e.EventSource,s=e.document,d=e.Promise,u=e.fetch,l=e.Response,h=e.TextDecoder,c=e.TextEncoder,p=e.AbortController;if("undefined"==typeof window||void 0===s||"readyState"in s||null!=s.body||(s.readyState="loading",window.addEventListener("load",(function(){s.readyState="complete"}),!1)),null==r&&null!=o&&(r=function(){return new o("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==p){var f=u;u=function(e,t){var i=t.signal;return f(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then((function(e){var t=e.body.getReader();return i._reader=t,i._aborted&&i._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}}))},p=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function m(){this.bitsNeeded=0,this.codePoint=0}m.prototype.decode=function(e){function t(e,t,i){if(1===i)return e>=128>>t&&e<<t<=2047;if(2===i)return e>=2048>>t&&e<<t<=55295||e>=57344>>t&&e<<t<=65535;if(3===i)return e>=65536>>t&&e<<t<=1114111;throw new Error}function i(e,t){if(6===e)return t>>6>15?3:t>31?2:1;if(12===e)return t>15?3:2;if(18===e)return 3;throw new Error}for(var r=65533,n="",o=this.bitsNeeded,a=this.codePoint,s=0;s<e.length;s+=1){var d=e[s];0!==o&&(d<128||d>191||!t(a<<6|63&d,o-6,i(o,a)))&&(o=0,a=r,n+=String.fromCharCode(a)),0===o?(d>=0&&d<=127?(o=0,a=d):d>=192&&d<=223?(o=6,a=31&d):d>=224&&d<=239?(o=12,a=15&d):d>=240&&d<=247?(o=18,a=7&d):(o=0,a=r),0===o||t(a,o,i(o,a))||(o=0,a=r)):(o-=6,a=a<<6|63&d),0===o&&(a<=65535?n+=String.fromCharCode(a):(n+=String.fromCharCode(55296+(a-65535-1>>10)),n+=String.fromCharCode(56320+(a-65535-1&1023))))}return this.bitsNeeded=o,this.codePoint=a,n},null!=h&&null!=c&&function(){try{return"test"===(new h).decode((new c).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}return!1}()||(h=m);var v=function(){};function g(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=v,this.onload=v,this.onerror=v,this.onreadystatechange=v,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=v}function w(e){return e.replace(/[A-Z]/g,(function(e){return String.fromCharCode(e.charCodeAt(0)+32)}))}function y(e){for(var t=Object.create(null),i=e.split("\r\n"),r=0;r<i.length;r+=1){var n=i[r].split(": "),o=n.shift(),a=n.join(": ");t[w(o)]=a}this._map=t}function b(){}function O(e){this._headers=e}function S(){}function E(){this._listeners=Object.create(null)}function T(e){t((function(){throw e}),0)}function P(e){this.type=e,this.target=void 0}function M(e,t){P.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function x(e,t){P.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function D(e,t){P.call(this,e),this.error=t.error}g.prototype.open=function(e,n){this._abort(!0);var o=this,a=this._xhr,s=1,d=0;this._abort=function(e){0!==o._sendTimeout&&(i(o._sendTimeout),o._sendTimeout=0),1!==s&&2!==s&&3!==s||(s=4,a.onload=v,a.onerror=v,a.onabort=v,a.onprogress=v,a.onreadystatechange=v,a.abort(),0!==d&&(i(d),d=0),e||(o.readyState=4,o.onabort(null),o.onreadystatechange())),s=0};var u=function(){if(1===s){var e=0,t="",i=void 0;if("contentType"in a)e=200,t="OK",i=a.contentType;else try{e=a.status,t=a.statusText,i=a.getResponseHeader("Content-Type")}catch(r){e=0,t="",i=void 0}0!==e&&(s=2,o.readyState=2,o.status=e,o.statusText=t,o._contentType=i,o.onreadystatechange())}},l=function(){if(u(),2===s||3===s){s=3;var e="";try{e=a.responseText}catch(e){}o.readyState=3,o.responseText=e,o.onprogress()}},h=function(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:v}),l(),1===s||2===s||3===s){if(s=4,0!==d&&(i(d),d=0),o.readyState=4,"load"===e)o.onload(t);else if("error"===e)o.onerror(t);else{if("abort"!==e)throw new TypeError;o.onabort(t)}o.onreadystatechange()}},c=function(){d=t((function(){c()}),500),3===a.readyState&&l()};"onload"in a&&(a.onload=function(e){h("load",e)}),"onerror"in a&&(a.onerror=function(e){h("error",e)}),"onabort"in a&&(a.onabort=function(e){h("abort",e)}),"onprogress"in a&&(a.onprogress=l),"onreadystatechange"in a&&(a.onreadystatechange=function(e){!function(e){null!=a&&(4===a.readyState?"onload"in a&&"onerror"in a&&"onabort"in a||h(""===a.responseText?"error":"load",e):3===a.readyState?"onprogress"in a||l():2===a.readyState&&u())}(e)}),!("contentType"in a)&&"ontimeout"in r.prototype||(n+=(-1===n.indexOf("?")?"?":"&")+"padding=true"),a.open(e,n,!0),"readyState"in a&&(d=t((function(){c()}),0))},g.prototype.abort=function(){this._abort(!1)},g.prototype.getResponseHeader=function(){return this._contentType},g.prototype.setRequestHeader=function(e,t){var i=this._xhr;"setRequestHeader"in i&&i.setRequestHeader(e,t)},g.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},g.prototype.send=function(){if("ontimeout"in r.prototype&&("sendAsBinary"in r.prototype||"mozAnon"in r.prototype)||null==s||null==s.readyState||"complete"===s.readyState){var e=this._xhr;"withCredentials"in e&&(e.withCredentials=this.withCredentials);try{e.send(void 0)}catch(e){throw e}}else{var i=this;i._sendTimeout=t((function(){i._sendTimeout=0,i.send()}),4)}},y.prototype.get=function(e){return this._map[w(e)]},null!=r&&null==r.HEADERS_RECEIVED&&(r.HEADERS_RECEIVED=2),b.prototype.open=function(e,t,i,n,o,a,s){e.open("GET",o);var d=0;for(var u in e.onprogress=function(){var t=e.responseText.slice(d);d+=t.length,i(t)},e.onerror=function(e){e.preventDefault(),n(new Error("NetworkError"))},e.onload=function(){n(null)},e.onabort=function(){n(null)},e.onreadystatechange=function(){if(e.readyState===r.HEADERS_RECEIVED){var i=e.status,n=e.statusText,o=e.getResponseHeader("Content-Type"),a=e.getAllResponseHeaders();t(i,n,o,new y(a))}},e.withCredentials=a,s)Object.prototype.hasOwnProperty.call(s,u)&&e.setRequestHeader(u,s[u]);return e.send(),e},O.prototype.get=function(e){return this._headers.get(e)},S.prototype.open=function(e,t,i,r,n,o,a){var s=null,l=new p,c=l.signal,f=new h;return u(n,{headers:a,credentials:o?"include":"same-origin",signal:c,cache:"no-store"}).then((function(e){return s=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new O(e.headers)),new d((function(e,t){var r=function(){s.read().then((function(t){if(t.done)e(void 0);else{var n=f.decode(t.value,{stream:!0});i(n),r()}})).catch((function(e){t(e)}))};r()}))})).catch((function(e){return"AbortError"===e.name?void 0:e})).then((function(e){r(e)})),{abort:function(){null!=s&&s.cancel(),l.abort()}}},E.prototype.dispatchEvent=function(e){e.target=this;var t=this._listeners[e.type];if(null!=t)for(var i=t.length,r=0;r<i;r+=1){var n=t[r];try{"function"==typeof n.handleEvent?n.handleEvent(e):n.call(this,e)}catch(e){T(e)}}},E.prototype.addEventListener=function(e,t){e=String(e);var i=this._listeners,r=i[e];null==r&&(i[e]=r=[]);for(var n=!1,o=0;o<r.length;o+=1)r[o]===t&&(n=!0);n||r.push(t)},E.prototype.removeEventListener=function(e,t){e=String(e);var i=this._listeners,r=i[e];if(null!=r){for(var n=[],o=0;o<r.length;o+=1)r[o]!==t&&n.push(r[o]);0===n.length?delete i[e]:i[e]=n}},M.prototype=Object.create(P.prototype),x.prototype=Object.create(P.prototype),D.prototype=Object.create(P.prototype);var z=/^text\/event\-stream(;.*)?$/i,j=function(e,t){var i=null==e?t:parseInt(e,10);return i!=i&&(i=t),W(i)},W=function(e){return Math.min(Math.max(e,1e3),18e6)},L=function(e,t,i){try{"function"==typeof t&&t.call(e,i)}catch(e){T(e)}};function H(e,o){E.call(this),o=o||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,function(e,o,a){o=String(o);var s=Boolean(a.withCredentials),d=a.lastEventIdQueryParameterName||"lastEventId",u=W(1e3),l=j(a.heartbeatTimeout,45e3),h="",c=u,p=!1,f=0,m=a.headers||{},v=a.Transport,w=A&&null==v?void 0:new g(null!=v?new v:null!=r&&"withCredentials"in r.prototype||null==n?new r:new n),y=null!=v&&"string"!=typeof v?new v:null==w?new S:new b,O=void 0,E=0,C=-1,k="",T="",P="",H="",F=0,B=0,I=0,R=function(t,i,r,n){if(0===C)if(200===t&&null!=r&&z.test(r)){C=1,p=Date.now(),c=u,e.readyState=1;var o=new x("open",{status:t,statusText:i,headers:n});e.dispatchEvent(o),L(e,e.onopen,o)}else{var a="";200!==t?(i&&(i=i.replace(/\s+/g," ")),a="EventSource's response has a status "+t+" "+i+" that is not 200. Aborting the connection."):a="EventSource's response has a Content-Type specifying an unsupported type: "+(null==r?"-":r.replace(/\s+/g," "))+". Aborting the connection.",_(),o=new x("error",{status:t,statusText:i,headers:n}),e.dispatchEvent(o),L(e,e.onerror,o),console.error(a)}},q=function(r){if(1===C){for(var n=-1,o=0;o<r.length;o+=1)(d=r.charCodeAt(o))!=="\n".charCodeAt(0)&&d!=="\r".charCodeAt(0)||(n=o);var a=(-1!==n?H:"")+r.slice(0,n+1);H=(-1===n?H:"")+r.slice(n+1),""!==r&&(p=Date.now(),f+=r.length);for(var s=0;s<a.length;s+=1){var d=a.charCodeAt(s);if(-1===F&&d==="\n".charCodeAt(0))F=0;else if(-1===F&&(F=0),d==="\r".charCodeAt(0)||d==="\n".charCodeAt(0)){if(0!==F){1===F&&(I=s+1);var m=a.slice(B,I-1),v=a.slice(I+(I<s&&a.charCodeAt(I)===" ".charCodeAt(0)?1:0),s);"data"===m?(k+="\n",k+=v):"id"===m?T=v:"event"===m?P=v:"retry"===m?(u=j(v,u),c=u):"heartbeatTimeout"===m&&(l=j(v,l),0!==E&&(i(E),E=t((function(){$()}),l)))}if(0===F){if(""!==k){h=T,""===P&&(P="message");var g=new M(P,{data:k.slice(1),lastEventId:T});if(e.dispatchEvent(g),"open"===P?L(e,e.onopen,g):"message"===P?L(e,e.onmessage,g):"error"===P&&L(e,e.onerror,g),2===C)return}k="",P=""}F=d==="\r".charCodeAt(0)?-1:0}else 0===F&&(B=s,F=1),1===F?d===":".charCodeAt(0)&&(I=s+1,F=2):2===F&&(F=3)}}},V=function(r){if(1===C||0===C){C=-1,0!==E&&(i(E),E=0),E=t((function(){$()}),c),c=W(Math.min(16*u,2*c)),e.readyState=0;var n=new D("error",{error:r});e.dispatchEvent(n),L(e,e.onerror,n),null!=r&&console.error(r)}},_=function(){C=2,null!=O&&(O.abort(),O=void 0),0!==E&&(i(E),E=0),e.readyState=2},$=function(){if(E=0,-1===C){p=!1,f=0,E=t((function(){$()}),l),C=0,k="",P="",T=h,H="",B=0,I=0,F=0;var i=o;if("data:"!==o.slice(0,5)&&"blob:"!==o.slice(0,5)&&""!==h){var r=o.indexOf("?");i=-1===r?o:o.slice(0,r+1)+o.slice(r+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,(function(e,t){return t===d?"":e})),i+=(-1===o.indexOf("?")?"?":"&")+d+"="+encodeURIComponent(h)}var n=e.withCredentials,a={Accept:"text/event-stream"},s=e.headers;if(null!=s)for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(a[u]=s[u]);try{O=y.open(w,R,q,V,i,n,a)}catch(e){throw _(),e}}else if(p||null==O){var c=Math.max((p||Date.now())+l-Date.now(),1);p=!1,E=t((function(){$()}),c)}else V(new Error("No activity within "+l+" milliseconds. "+(0===C?"No response received.":f+" chars received.")+" Reconnecting.")),null!=O&&(O.abort(),O=void 0)};e.url=o,e.readyState=0,e.withCredentials=s,e.headers=m,e._close=_,$()}(this,e,o)}var A=null!=u&&null!=l&&"body"in l.prototype;(H.prototype=Object.create(E.prototype)).CONNECTING=0,H.prototype.OPEN=1,H.prototype.CLOSED=2,H.prototype.close=function(){this._close()},H.CONNECTING=0,H.OPEN=1,H.CLOSED=2,H.prototype.withCredentials=void 0;var F,B=a;null==r||null!=a&&"withCredentials"in a.prototype||(B=H),F=function(e){e.EventSourcePolyfill=H,e.NativeEventSource=a,e.EventSource=B}(k),void 0!==F&&(C.exports=F)}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:v:globalThis);const P="user-deposit-withdrawal",M=["mm-hcback-to-merchant","mm-hc-back-tomerchant","mm-hc-sports","mm-hc-casino","mm-hc-contact","mm-wm-hc-init-deposit","mm-wm-hc-init-deposit-quick"],x="TWO_FACTOR_AUTH_NOTIFICATION",D="MMFE:setQuickDepositHeight",z="MMFE:setIFrameHeight",j="MMFE:selectedPaymentMethod",W="MMFE:proceedPayment",L="MMFE:cancelPayment",H="MMFE:ResetOTP",A=()=>{},F={PROCEED:{[W]:"true"},CANCEL:{[L]:"true"},RESET:{[H]:"true"},PROCEED_FALSE:{[W]:"false"}};w.extend(E);const B=class{constructor(t){var i;e(this,t),this.sseStream=null,this.selectedPaymentMethod=null,this.sseReconnectAttempts=0,this.sseReconnectTimer=null,this.sseShouldStayConnected=!1,this.SSE_MAX_RECONNECT_ATTEMPTS=5,this.SSE_RECONNECT_DELAY_BASE_MS=1e3,this.bindedHandler=this.handleMessage.bind(this),this.userAgent=window.navigator.userAgent,this.isMobile=!!((i=this.userAgent).toLowerCase().match(/android/i)||i.toLowerCase().match(/blackberry|bb/i)||i.toLowerCase().match(/iphone|ipad|ipod/i)||i.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),this.errorCodes=["21123","21122","21121"],this.toggleScreen=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:this.isMobile},window.location.href)},this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.endpoint=void 0,this.type=void 0,this.channel=void 0,this.language=void 0,this.productType="",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=A,this.forwardCashierRedirects=!1,this.enableStepUpAuth=!1,this.dynamicHeight=void 0,this.cashierInfoUrl=void 0}get typeParameter(){return"deposit"===this.type?"Deposit":"withdraw"===this.type?"Withdraw":void 0}handleClientStylingChange(e,t){e!=t&&a(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(e,t){e!=t&&this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl)}async componentWillLoad(){var e;this.translationUrl&&await(e=this.translationUrl,new Promise((t=>{fetch(e).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{for(let i in e[t])f[t][i]=e[t][i]})),t(!0)}))}))),await this.loadWidget()}componentDidLoad(){this.stylingContainer&&(null!=window.emMessageBus?d(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription):(this.clientStyling&&a(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl))),window.addEventListener("message",this.bindedHandler,!1)}disconnectedCallback(){window.removeEventListener("message",this.bindedHandler,!1),this.stylingSubscription&&this.stylingSubscription.unsubscribe(),this.closeSSEStream()}render(){return t(n,{key:"c6ee3b34fc4ef7174b2ff07ff246b4d38f8a4cf3"},this.enableStepUpAuth&&t("player-step-up-auth",{key:"dfaf2909e9f1028b9fd740f0fe612b0a82a30d57",endpoint:this.endpoint,userSession:this.session,language:this.language,"client-styling-url":this.clientStylingUrl,"translation-url":this.translationUrl}),t("div",{key:"70866c997fd1430dc827dac013fe5eeb5e205aa6",ref:e=>this.stylingContainer=e,class:""},t("div",{key:"f22a066bded11894ecc6b40452e91408bfaba461",class:"DepositWithdrawalWrapper "+(this.isShortCashier?"ShortCashier":"")},!(this.isMobile&&!this.isShortCashier)&&t("h2",{key:"e16eff42a179895d192584f51bdcb01cfb940911",class:"CategoryTitle"},m("Withdraw"===this.typeParameter?"Withdraw":"Deposit",this.language)),t("div",{key:"be8524a9a7a7f9f7735fd8703563159e207901c4",style:{marginTop:this.isShortCashier?"30px":"0"}},this.isMobile&&!this.isShortCashier?t("div",{class:"MenuReturnButton",onClick:this.toggleScreen},t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},t("defs",null),t("g",{transform:"translate(-20 -158)"},t("g",{transform:"translate(20 158)"},t("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)"})))),t("h2",{class:"CategoryTitleMobile"},m("Withdraw"===this.typeParameter?"Withdraw":"Deposit",this.language))):null),this.cashierInfoUrl?t("iframe",{ref:e=>this.cashierIframeRef=e,width:"100%",allow:"payment",height:this.dynamicHeight,src:this.cashierInfoUrl}):t("h3",{innerHTML:m("deposit"===this.type?"denyDeposit":"denyWithdrawal",this.language),class:"ErrorMessage"}))))}async loadWidget(){const e={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};if(!Object.values(e).some((e=>void 0===e))&&this.endpoint)try{const t=`${this.endpoint}/v1/player/${this.userId}/payment/GetPaymentSession`,i=await fetch(t,{method:"POST",headers:{"X-Sessionid":this.session,"Content-Type":"application/json","X-Client-Request-Timestamp":w.utc().format("YYYY-MM-DD HH:mm:ss.SSS")},body:JSON.stringify(e)});if(!i.ok){const e=await i.text();throw new Error(e)}const r=await i.json();if(r.CashierInfo)this.cashierInfoUrl=r.CashierInfo.Url;else{let e;if(r.ResponseMessage){let t=this.errorCodes.find((e=>r.ResponseMessage.includes(e)))||null;e=m(t?`errorCode${t}`:"notFoundErrorCode",this.language)}else e=m("deposit"===this.type?"denyDeposit":"denyWithdrawal",this.language);window.postMessage({type:"DenyDepositOrWithdrawal",data:{type:"error",message:e}},window.location.href)}}catch(e){console.error(e)}}handleEnableStepUpAuthChange(e){!e&&this.sseStream&&this.closeSSEStream()}handleMessage(e){const t=this.extractPayload(e);if(!t)return;this.applyLayoutHints(t);const i=this.extractCashierRedirectReason(t);if(!i)return;if(this.emitForwardedRedirect(e,i))return;const r=this.resolveRedirectPlan(i);r&&this.doRedirect(r.reason,r.targetUrl)}extractCashierRedirectReason(e){return"string"==typeof(null==e?void 0:e.type)&&M.includes(e.type)?e.type:"string"==typeof(null==e?void 0:e.redirect)&&M.includes(e.redirect)?e.redirect:void 0}extractPayload(e){if((null==e?void 0:e.data)&&"object"==typeof e.data)return e.data}applyLayoutHints(e){if("true"===e["MMFE:openFullCashier"]&&(window.postMessage({type:"GoToDeposit"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href)),e[D]&&this.isShortCashier&&(this.dynamicHeight=e[D].toString()+"px"),e[z]&&(this.dynamicHeight=e[z].toString()+"px"),e[j]){const t=e[j];this.selectedPaymentMethod!==t&&(this.selectedPaymentMethod=t,this.sseStream&&this.closeSSEStream(),"withdraw"===this.type&&(e=>{if(!e||"string"!=typeof e)return!1;const t=e.toLowerCase();return t.includes("voucher")||t.includes("offline")})(t)&&this.enableStepUpAuth&&this.initializeSSE())}e["MMFE:vendorRedirect"]&&window.postMessage({type:`${P}:mm-open-vendor`,url:e["MMFE:vendorRedirect"]},window.location.href)}resolveRedirectPlan(e){switch(e){case"mm-hcback-to-merchant":case"mm-hc-back-tomerchant":return this.buildRedirectPlan(e,this.homeUrl);case"mm-hc-sports":return this.buildRedirectPlan(e,this.sportsUrl);case"mm-hc-casino":return this.buildRedirectPlan(window.location.href,this.casinoUrl);case"mm-hc-contact":return window.postMessage({type:"CloseShortCashier"},window.location.href),this.buildRedirectPlan(window.location.href,this.contactUrl);case"mm-wm-hc-init-deposit":case"mm-wm-hc-init-deposit-quick":return window.postMessage({type:"CloseShortCashier"},window.location.href),this.buildRedirectPlan(window.location.href,this.depositUrl);default:return}}buildRedirectPlan(e,t){if(t)return{reason:e,targetUrl:t}}emitForwardedRedirect(e,t){return!!this.forwardCashierRedirects&&(window.postMessage({type:`${P}:${t}`,originalType:t,payload:e.data,origin:e.origin},window.location.href),!0)}doRedirect(e,t){const i={reason:e,url:t,cancel:!1};this.beforeRedirect(i),i.cancel||(window.location.href=i.url?i.url:"/")}initializeSSE(){this.sseStream&&this.sseStream.readyState!==T.exports.EventSourcePolyfill.CLOSED||(this.endpoint&&this.userId&&this.session&&"withdraw"===this.type?(this.sseShouldStayConnected=!0,this.sseReconnectAttempts=0,this.connectSSE()):console.warn("[SSE] initializeSSE - missing required props, cannot initialize"))}connectSSE(){if(this.sseStream){try{this.sseStream.close()}catch(e){console.warn("[SSE] closeSSEStream - error closing stream:",e)}this.sseStream=null}if(this.sseShouldStayConnected)try{const e=new URL(`/v1/player/${this.userId}/information/updates`,this.endpoint);this.sseStream=new T.exports.EventSourcePolyfill(e,{headers:{accept:"text/event-stream","X-SessionId":this.session}}),this.sseStream.addEventListener("open",this.handleSSEOpen.bind(this)),this.sseStream.addEventListener("message",this.handleSSEMessage.bind(this)),this.sseStream.addEventListener("error",this.handleSSEError.bind(this))}catch(e){console.error("[SSE] connectSSE - Failed to create EventSourcePolyfill:",e),this.scheduleReconnect()}}handleSSEOpen(e){console.info("[SSE] handleSSEOpen - connection opened successfully"),this.sseReconnectAttempts=0,this.sseReconnectTimer&&(clearTimeout(this.sseReconnectTimer),this.sseReconnectTimer=null)}handleSSEMessage(e){if(this.enableStepUpAuth)try{const t=JSON.parse(e.data),i=t.type;if(i===x){const{body:{challengeId:e}={}}=t;e?this.triggerStepUpAuth(e):console.error(`${x} received but challengeId not found in body`)}else"SESSION_EXPIRATION"===i&&(console.info("[SSE] SESSION_EXPIRATION received, closing connection"),window.postMessage({type:"SessionExpiration",reason:"failed2FA"},window.location.href),this.closeSSEStream())}catch(e){console.error("Error parsing SSE message:",e)}}handleSSEError(e){console.warn("[SSE] connection error"),this.sseShouldStayConnected&&this.sseReconnectAttempts<this.SSE_MAX_RECONNECT_ATTEMPTS?this.scheduleReconnect():this.sseReconnectAttempts>=this.SSE_MAX_RECONNECT_ATTEMPTS&&(console.error("[SSE] handleSSEError - max reconnection attempts reached, giving up"),this.closeSSEStream())}scheduleReconnect(){if(!this.sseShouldStayConnected)return;this.sseReconnectTimer&&clearTimeout(this.sseReconnectTimer),this.sseReconnectAttempts++;const e=this.SSE_RECONNECT_DELAY_BASE_MS*Math.pow(2,this.sseReconnectAttempts-1);this.sseReconnectTimer=setTimeout((()=>{this.sseReconnectTimer=null,this.sseShouldStayConnected&&this.connectSSE()}),e)}closeSSEStream(){if(this.sseShouldStayConnected=!1,this.sseReconnectTimer&&(clearTimeout(this.sseReconnectTimer),this.sseReconnectTimer=null),this.sseStream){try{this.sseStream.close()}catch(e){console.warn("[SSE] closeSSEStream - error closing stream:",e)}this.sseStream=null}this.sseReconnectAttempts=0}triggerStepUpAuth(e){this.enableStepUpAuth&&window.dispatchEvent(new CustomEvent("stepUpAuthRequired",{detail:{"x-step-up-required":!0,"x-step-up-token":e,flow:"stateful"}}))}getCashierOrigin(){if(!this.cashierInfoUrl)return"*";try{return new URL(this.cashierInfoUrl).origin}catch(e){return console.warn("Failed to parse cashier URL origin, using wildcard:",e),"*"}}sendMessageToCashier(e){var t;if(!(null===(t=this.cashierIframeRef)||void 0===t?void 0:t.contentWindow))return void console.warn("Cashier iframe not available for postMessage");const i=this.getCashierOrigin();this.cashierIframeRef.contentWindow.postMessage(e,i)}handleOtpSuccess(){this.enableStepUpAuth&&(this.sendMessageToCashier(F.PROCEED),this.closeSSEStream())}handleManualClosePopup(){this.enableStepUpAuth&&(this.sendMessageToCashier(F.CANCEL),this.closeSSEStream())}handleOtpResendRequested(){this.enableStepUpAuth&&(window.dispatchEvent(new CustomEvent("closePopup")),this.sendMessageToCashier(F.RESET))}handleOtpSetTimeout(){this.enableStepUpAuth&&this.sendMessageToCashier(F.PROCEED_FALSE)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"],enableStepUpAuth:["handleEnableStepUpAuthChange"]}}};B.style=":host {\n font: inherit;\n display: block;\n height: 100%;\n container-type: inline-size;\n}\n\n.DepositWithdrawalContainer {\n container-type: inline-size;\n container-name: deposit-container;\n}\n\n.CategoryTitle {\n font-size: var(--emw--font-size-x-large, 26px);\n color: var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));\n}\n\n.MenuReturnButton {\n font: inherit;\n color: var(--emw--color-gray-300, #58586B);\n display: inline-flex;\n align-items: center;\n column-gap: 10px;\n margin-bottom: 10px;\n}\n.MenuReturnButton svg {\n fill: var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));\n}\n.MenuReturnButton h2.CategoryTitleMobile {\n font-size: 16px;\n color: var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));\n}\n\n.ErrorMessage {\n color: var(--emw--pam-color-typography, var(--emw--color-typography, #FFFFFF));\n}\n\n.DepositWithdrawalWrapper {\n width: 100%;\n margin: 0;\n padding: 50px;\n box-sizing: border-box;\n overflow-y: scroll;\n}\n.DepositWithdrawalWrapper iframe {\n border-width: 0;\n}\n\n.ShortCashier.DepositWithdrawalWrapper {\n height: 500px;\n}\n.ShortCashier.CategoryTitle.CategoryTitle {\n margin-right: 20px;\n padding-top: 20px;\n color: var(--emw--color-black, #000000);\n}\n.ShortCashier .ErrorMessage {\n margin: auto;\n width: 90%;\n margin-top: 70px;\n text-align: center;\n color: var(--emw--color-black, #000000);\n}\n\n@container (max-width: 768px) {\n .DepositWithdrawalWrapper {\n padding: 20px 15px;\n }\n .DepositWithdrawalWrapper:not(.ShortCashier) {\n overflow: visible;\n }\n}";export{c as player_step_up_auth,B as user_deposit_withdrawal}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/user-deposit-withdrawal",
3
- "version": "1.90.4",
3
+ "version": "1.90.5",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",