@everymatrix/user-deposit-withdrawal 1.98.25 → 1.98.26

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.
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy([["player-step-up-auth_2.cjs",[[1,"user-deposit-withdrawal",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"endpoint":[513],"type":[513],"channel":[513],"language":[513],"productType":[513,"product-type"],"userId":[513,"user-id"],"session":[513],"successUrl":[513,"success-url"],"cancelUrl":[513,"cancel-url"],"failUrl":[513,"fail-url"],"sportsUrl":[513,"sports-url"],"casinoUrl":[513,"casino-url"],"contactUrl":[513,"contact-url"],"depositUrl":[513,"deposit-url"],"currency":[513],"showBonusSelectionInput":[513,"show-bonus-selection-input"],"isShortCashier":[516,"is-short-cashier"],"homeUrl":[513,"home-url"],"beforeRedirect":[16],"forwardCashierRedirects":[516,"forward-cashier-redirects"],"enableStepUpAuth":[516,"enable-step-up-auth"],"showApiErrorMessage":[516,"show-api-error-message"],"dynamicHeight":[32],"cashierInfoUrl":[32],"errorMessage":[32],"errorFromApi":[32]},[[8,"otpSuccess","handleOtpSuccess"],[8,"manualClosePopup","handleManualClosePopup"],[8,"otpResendRequested","handleOtpResendRequested"],[8,"otpSetTimeout","handleOtpSetTimeout"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"],"enableStepUpAuth":["handleEnableStepUpAuthChange"]}],[1,"player-step-up-auth",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"endpoint":[513],"userSession":[513,"user-session"],"translationUrl":[513,"translation-url"],"mode":[513],"showPopup":[32],"otp":[32],"isLoading":[32],"config":[32],"timeLeft":[32],"expirationTime":[32],"serverTime":[32],"hasErrors":[32],"hasConfigErrors":[32],"errorMessage":[32],"token":[32],"flow":[32],"showResendOtp":[32],"isLastWarning":[32],"inputDisabled":[32],"isValidating":[32],"isSuccess":[32],"shakeError":[32]},[[8,"stepUpAuthRequired","handleStepUpAuthEvent"],[8,"closePopup","handleCloseWidget"]],{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
11
+ return index.bootstrapLazy([["player-step-up-auth_2.cjs",[[1,"user-deposit-withdrawal",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"endpoint":[513],"type":[513],"channel":[513],"language":[513],"productType":[513,"product-type"],"userId":[513,"user-id"],"session":[513],"successUrl":[513,"success-url"],"cancelUrl":[513,"cancel-url"],"failUrl":[513,"fail-url"],"sportsUrl":[513,"sports-url"],"casinoUrl":[513,"casino-url"],"contactUrl":[513,"contact-url"],"depositUrl":[513,"deposit-url"],"currency":[513],"showBonusSelectionInput":[513,"show-bonus-selection-input"],"isShortCashier":[516,"is-short-cashier"],"homeUrl":[513,"home-url"],"beforeRedirect":[16],"forwardCashierRedirects":[516,"forward-cashier-redirects"],"enableStepUpAuth":[516,"enable-step-up-auth"],"showApiErrorMessage":[516,"show-api-error-message"],"dynamicHeight":[32],"cashierInfoUrl":[32],"errorMessage":[32],"errorFromApi":[32]},[[8,"otpSuccess","handleOtpSuccess"],[8,"manualClosePopup","handleManualClosePopup"],[8,"otpResendRequested","handleOtpResendRequested"],[8,"otpSetTimeout","handleOtpSetTimeout"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"],"language":["handleLanguageChange"],"translationUrl":["handleTranslationUrlChange"],"enableStepUpAuth":["handleEnableStepUpAuthChange"]}],[1,"player-step-up-auth",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"endpoint":[513],"userSession":[513,"user-session"],"translationUrl":[513,"translation-url"],"mode":[513],"showPopup":[32],"otp":[32],"isLoading":[32],"config":[32],"timeLeft":[32],"expirationTime":[32],"serverTime":[32],"hasErrors":[32],"hasConfigErrors":[32],"errorMessage":[32],"token":[32],"flow":[32],"showResendOtp":[32],"isLastWarning":[32],"inputDisabled":[32],"isValidating":[32],"isSuccess":[32],"shakeError":[32]},[[8,"stepUpAuthRequired","handleStepUpAuthEvent"],[8,"closePopup","handleCloseWidget"]],{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -929,6 +929,7 @@ const TRANSLATIONS = {
929
929
  denyDeposit: 'Informamos que atualmente não tem permissão para iniciar transações de depósito.',
930
930
  denyWithdrawal: 'Informamos que atualmente não tem permissão para iniciar transações de levantamento.',
931
931
  notFoundErrorCode: 'Código de erro não encontrado',
932
+ errorCode21121: "Caro jogador! Informamos que de momento só pode iniciar transações de levantamento na sua conta. Código de erro: 21121",
932
933
  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',
933
934
  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'
934
935
  },
@@ -2112,6 +2113,7 @@ dayjs.extend(utc);
2112
2113
  const UserDepositWithdrawal = class {
2113
2114
  constructor(hostRef) {
2114
2115
  index.registerInstance(this, hostRef);
2116
+ this.errorMessageKey = null;
2115
2117
  this.sseStream = null;
2116
2118
  this.selectedPaymentMethod = null;
2117
2119
  this.sseReconnectAttempts = 0;
@@ -2196,6 +2198,19 @@ const UserDepositWithdrawal = class {
2196
2198
  setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
2197
2199
  }
2198
2200
  }
2201
+ handleLanguageChange(newValue, oldValue) {
2202
+ if (newValue !== oldValue && this.errorMessageKey) {
2203
+ this.errorMessage = translate(this.errorMessageKey, newValue);
2204
+ }
2205
+ }
2206
+ async handleTranslationUrlChange(newValue, oldValue) {
2207
+ if (newValue && newValue !== oldValue) {
2208
+ await getTranslations(newValue);
2209
+ if (this.errorMessageKey) {
2210
+ this.errorMessage = translate(this.errorMessageKey, this.language);
2211
+ }
2212
+ }
2213
+ }
2199
2214
  async componentWillLoad() {
2200
2215
  if (this.translationUrl) {
2201
2216
  await getTranslations(this.translationUrl);
@@ -2222,7 +2237,7 @@ const UserDepositWithdrawal = class {
2222
2237
  this.closeSSEStream();
2223
2238
  }
2224
2239
  render() {
2225
- return (index.h(index.Host, { key: '338fa8bd00485e7d7c1a92ddbc7622e4eb6bd020' }, this.enableStepUpAuth && (index.h("player-step-up-auth", { key: 'b0076f39d95d35b3cae6d6bb0a039feb39764f47', endpoint: this.endpoint, userSession: this.session, language: this.language, "client-styling-url": this.clientStylingUrl, "translation-url": this.translationUrl })), index.h("div", { key: '00f02636ed279a41dd203bdaea54f41eacaa8f86', ref: el => this.stylingContainer = el, class: "" }, index.h("div", { key: '120c160a3f0729e5aae360e9fc7b99e33c93e01c', class: `DepositWithdrawalWrapper ${this.isShortCashier ? 'ShortCashier' : ''}` }, (!(this.isMobile && !this.isShortCashier) && (index.h("h2", { key: '664216161b01c6e49bc36b738eb02ae622eeda09', class: "CategoryTitle" }, translate(this.typeParameter === 'Withdraw' ? 'Withdraw' : 'Deposit', this.language)))), index.h("div", { key: 'f57113548723235044ac51485b37e2e9b6e3ee4c', style: { marginTop: this.isShortCashier ? '30px' : '0' } }, (this.isMobile && !this.isShortCashier ?
2240
+ return (index.h(index.Host, { key: 'c81d1d4ee68c09136853e395106baedbb49b4db5' }, this.enableStepUpAuth && (index.h("player-step-up-auth", { key: 'ddad8ca99ed6b1012a48dcf3ec00eaf66842e17c', endpoint: this.endpoint, userSession: this.session, language: this.language, "client-styling-url": this.clientStylingUrl, "translation-url": this.translationUrl })), index.h("div", { key: 'eeaeed0b00a1e130792b8871d130bfbcb9c9876c', ref: el => this.stylingContainer = el, class: "" }, index.h("div", { key: 'e792348abc087994792e6c9f8cbd0f4487477e8f', class: `DepositWithdrawalWrapper ${this.isShortCashier ? 'ShortCashier' : ''}` }, (!(this.isMobile && !this.isShortCashier) && (index.h("h2", { key: 'b1cf66df335ea3f764063cfbab14f461db12e644', class: "CategoryTitle" }, translate(this.typeParameter === 'Withdraw' ? 'Withdraw' : 'Deposit', this.language)))), index.h("div", { key: '4d7e164ec587b9c43fc77c02666bdeb775e98e46', style: { marginTop: this.isShortCashier ? '30px' : '0' } }, (this.isMobile && !this.isShortCashier ?
2226
2241
  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)))
2227
2242
  : null)), this.cashierInfoUrl ?
2228
2243
  index.h("iframe", { ref: el => this.cashierIframeRef = el, width: "100%", allow: "payment", height: this.dynamicHeight, src: this.cashierInfoUrl }) :
@@ -2272,6 +2287,7 @@ const UserDepositWithdrawal = class {
2272
2287
  }
2273
2288
  else {
2274
2289
  let apiMessage;
2290
+ let errorMessageKey = null;
2275
2291
  if (data.ResponseMessage) {
2276
2292
  let foundErrorCode = this.errorCodes.find(code => data.ResponseMessage.includes(code)) || null;
2277
2293
  const translatedMessage = foundErrorCode
@@ -2279,6 +2295,7 @@ const UserDepositWithdrawal = class {
2279
2295
  : undefined;
2280
2296
  if (translatedMessage) {
2281
2297
  apiMessage = translatedMessage;
2298
+ errorMessageKey = `errorCode${foundErrorCode}`;
2282
2299
  }
2283
2300
  else if (this.showApiErrorMessage) {
2284
2301
  apiMessage = data.ResponseMessage;
@@ -2286,14 +2303,15 @@ const UserDepositWithdrawal = class {
2286
2303
  }
2287
2304
  else {
2288
2305
  apiMessage = translate('notFoundErrorCode', this.language);
2306
+ errorMessageKey = 'notFoundErrorCode';
2289
2307
  }
2290
2308
  }
2291
2309
  else {
2292
- apiMessage = this.type === 'deposit'
2293
- ? translate('denyDeposit', this.language)
2294
- : translate('denyWithdrawal', this.language);
2310
+ errorMessageKey = this.type === 'deposit' ? 'denyDeposit' : 'denyWithdrawal';
2311
+ apiMessage = translate(errorMessageKey, this.language);
2295
2312
  }
2296
2313
  if (this.showApiErrorMessage) {
2314
+ this.errorMessageKey = errorMessageKey;
2297
2315
  this.errorMessage = apiMessage;
2298
2316
  }
2299
2317
  const messageOBj = { type: 'error', message: apiMessage };
@@ -2602,6 +2620,8 @@ const UserDepositWithdrawal = class {
2602
2620
  static get watchers() { return {
2603
2621
  "clientStyling": ["handleClientStylingChange"],
2604
2622
  "clientStylingUrl": ["handleClientStylingChangeURL"],
2623
+ "language": ["handleLanguageChange"],
2624
+ "translationUrl": ["handleTranslationUrlChange"],
2605
2625
  "enableStepUpAuth": ["handleEnableStepUpAuthChange"]
2606
2626
  }; }
2607
2627
  };
@@ -19,7 +19,7 @@ var patchBrowser = () => {
19
19
 
20
20
  patchBrowser().then(async (options) => {
21
21
  await appGlobals.globalScripts();
22
- return index.bootstrapLazy([["player-step-up-auth_2.cjs",[[1,"user-deposit-withdrawal",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"endpoint":[513],"type":[513],"channel":[513],"language":[513],"productType":[513,"product-type"],"userId":[513,"user-id"],"session":[513],"successUrl":[513,"success-url"],"cancelUrl":[513,"cancel-url"],"failUrl":[513,"fail-url"],"sportsUrl":[513,"sports-url"],"casinoUrl":[513,"casino-url"],"contactUrl":[513,"contact-url"],"depositUrl":[513,"deposit-url"],"currency":[513],"showBonusSelectionInput":[513,"show-bonus-selection-input"],"isShortCashier":[516,"is-short-cashier"],"homeUrl":[513,"home-url"],"beforeRedirect":[16],"forwardCashierRedirects":[516,"forward-cashier-redirects"],"enableStepUpAuth":[516,"enable-step-up-auth"],"showApiErrorMessage":[516,"show-api-error-message"],"dynamicHeight":[32],"cashierInfoUrl":[32],"errorMessage":[32],"errorFromApi":[32]},[[8,"otpSuccess","handleOtpSuccess"],[8,"manualClosePopup","handleManualClosePopup"],[8,"otpResendRequested","handleOtpResendRequested"],[8,"otpSetTimeout","handleOtpSetTimeout"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"],"enableStepUpAuth":["handleEnableStepUpAuthChange"]}],[1,"player-step-up-auth",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"endpoint":[513],"userSession":[513,"user-session"],"translationUrl":[513,"translation-url"],"mode":[513],"showPopup":[32],"otp":[32],"isLoading":[32],"config":[32],"timeLeft":[32],"expirationTime":[32],"serverTime":[32],"hasErrors":[32],"hasConfigErrors":[32],"errorMessage":[32],"token":[32],"flow":[32],"showResendOtp":[32],"isLastWarning":[32],"inputDisabled":[32],"isValidating":[32],"isSuccess":[32],"shakeError":[32]},[[8,"stepUpAuthRequired","handleStepUpAuthEvent"],[8,"closePopup","handleCloseWidget"]],{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
22
+ return index.bootstrapLazy([["player-step-up-auth_2.cjs",[[1,"user-deposit-withdrawal",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"endpoint":[513],"type":[513],"channel":[513],"language":[513],"productType":[513,"product-type"],"userId":[513,"user-id"],"session":[513],"successUrl":[513,"success-url"],"cancelUrl":[513,"cancel-url"],"failUrl":[513,"fail-url"],"sportsUrl":[513,"sports-url"],"casinoUrl":[513,"casino-url"],"contactUrl":[513,"contact-url"],"depositUrl":[513,"deposit-url"],"currency":[513],"showBonusSelectionInput":[513,"show-bonus-selection-input"],"isShortCashier":[516,"is-short-cashier"],"homeUrl":[513,"home-url"],"beforeRedirect":[16],"forwardCashierRedirects":[516,"forward-cashier-redirects"],"enableStepUpAuth":[516,"enable-step-up-auth"],"showApiErrorMessage":[516,"show-api-error-message"],"dynamicHeight":[32],"cashierInfoUrl":[32],"errorMessage":[32],"errorFromApi":[32]},[[8,"otpSuccess","handleOtpSuccess"],[8,"manualClosePopup","handleManualClosePopup"],[8,"otpResendRequested","handleOtpResendRequested"],[8,"otpSetTimeout","handleOtpSetTimeout"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"],"language":["handleLanguageChange"],"translationUrl":["handleTranslationUrlChange"],"enableStepUpAuth":["handleEnableStepUpAuthChange"]}],[1,"player-step-up-auth",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"endpoint":[513],"userSession":[513,"user-session"],"translationUrl":[513,"translation-url"],"mode":[513],"showPopup":[32],"otp":[32],"isLoading":[32],"config":[32],"timeLeft":[32],"expirationTime":[32],"serverTime":[32],"hasErrors":[32],"hasConfigErrors":[32],"errorMessage":[32],"token":[32],"flow":[32],"showResendOtp":[32],"isLastWarning":[32],"inputDisabled":[32],"isValidating":[32],"isSuccess":[32],"shakeError":[32]},[[8,"stepUpAuthRequired","handleStepUpAuthEvent"],[8,"closePopup","handleCloseWidget"]],{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
23
23
  });
24
24
 
25
25
  exports.setNonce = index.setNonce;
@@ -11,6 +11,7 @@ import { CASHIER_REDIRECT_REASONS, FORWARD_MESSAGE_PREFIX, MMFE, SESSION_EXPIRAT
11
11
  import { CASHIER_OTP } from "../../utils/user-deposit-withdrawal.types";
12
12
  export class UserDepositWithdrawal {
13
13
  constructor() {
14
+ this.errorMessageKey = null;
14
15
  this.sseStream = null;
15
16
  this.selectedPaymentMethod = null;
16
17
  this.sseReconnectAttempts = 0;
@@ -95,6 +96,19 @@ export class UserDepositWithdrawal {
95
96
  setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
96
97
  }
97
98
  }
99
+ handleLanguageChange(newValue, oldValue) {
100
+ if (newValue !== oldValue && this.errorMessageKey) {
101
+ this.errorMessage = translate(this.errorMessageKey, newValue);
102
+ }
103
+ }
104
+ async handleTranslationUrlChange(newValue, oldValue) {
105
+ if (newValue && newValue !== oldValue) {
106
+ await getTranslations(newValue);
107
+ if (this.errorMessageKey) {
108
+ this.errorMessage = translate(this.errorMessageKey, this.language);
109
+ }
110
+ }
111
+ }
98
112
  async componentWillLoad() {
99
113
  if (this.translationUrl) {
100
114
  await getTranslations(this.translationUrl);
@@ -121,7 +135,7 @@ export class UserDepositWithdrawal {
121
135
  this.closeSSEStream();
122
136
  }
123
137
  render() {
124
- return (h(Host, { key: '338fa8bd00485e7d7c1a92ddbc7622e4eb6bd020' }, this.enableStepUpAuth && (h("player-step-up-auth", { key: 'b0076f39d95d35b3cae6d6bb0a039feb39764f47', endpoint: this.endpoint, userSession: this.session, language: this.language, "client-styling-url": this.clientStylingUrl, "translation-url": this.translationUrl })), h("div", { key: '00f02636ed279a41dd203bdaea54f41eacaa8f86', ref: el => this.stylingContainer = el, class: "" }, h("div", { key: '120c160a3f0729e5aae360e9fc7b99e33c93e01c', class: `DepositWithdrawalWrapper ${this.isShortCashier ? 'ShortCashier' : ''}` }, (!(this.isMobile && !this.isShortCashier) && (h("h2", { key: '664216161b01c6e49bc36b738eb02ae622eeda09', class: "CategoryTitle" }, translate(this.typeParameter === 'Withdraw' ? 'Withdraw' : 'Deposit', this.language)))), h("div", { key: 'f57113548723235044ac51485b37e2e9b6e3ee4c', style: { marginTop: this.isShortCashier ? '30px' : '0' } }, (this.isMobile && !this.isShortCashier ?
138
+ return (h(Host, { key: 'c81d1d4ee68c09136853e395106baedbb49b4db5' }, this.enableStepUpAuth && (h("player-step-up-auth", { key: 'ddad8ca99ed6b1012a48dcf3ec00eaf66842e17c', endpoint: this.endpoint, userSession: this.session, language: this.language, "client-styling-url": this.clientStylingUrl, "translation-url": this.translationUrl })), h("div", { key: 'eeaeed0b00a1e130792b8871d130bfbcb9c9876c', ref: el => this.stylingContainer = el, class: "" }, h("div", { key: 'e792348abc087994792e6c9f8cbd0f4487477e8f', class: `DepositWithdrawalWrapper ${this.isShortCashier ? 'ShortCashier' : ''}` }, (!(this.isMobile && !this.isShortCashier) && (h("h2", { key: 'b1cf66df335ea3f764063cfbab14f461db12e644', class: "CategoryTitle" }, translate(this.typeParameter === 'Withdraw' ? 'Withdraw' : 'Deposit', this.language)))), h("div", { key: '4d7e164ec587b9c43fc77c02666bdeb775e98e46', style: { marginTop: this.isShortCashier ? '30px' : '0' } }, (this.isMobile && !this.isShortCashier ?
125
139
  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)))
126
140
  : null)), this.cashierInfoUrl ?
127
141
  h("iframe", { ref: el => this.cashierIframeRef = el, width: "100%", allow: "payment", height: this.dynamicHeight, src: this.cashierInfoUrl }) :
@@ -171,6 +185,7 @@ export class UserDepositWithdrawal {
171
185
  }
172
186
  else {
173
187
  let apiMessage;
188
+ let errorMessageKey = null;
174
189
  if (data.ResponseMessage) {
175
190
  let foundErrorCode = this.errorCodes.find(code => data.ResponseMessage.includes(code)) || null;
176
191
  const translatedMessage = foundErrorCode
@@ -178,6 +193,7 @@ export class UserDepositWithdrawal {
178
193
  : undefined;
179
194
  if (translatedMessage) {
180
195
  apiMessage = translatedMessage;
196
+ errorMessageKey = `errorCode${foundErrorCode}`;
181
197
  }
182
198
  else if (this.showApiErrorMessage) {
183
199
  apiMessage = data.ResponseMessage;
@@ -185,14 +201,15 @@ export class UserDepositWithdrawal {
185
201
  }
186
202
  else {
187
203
  apiMessage = translate('notFoundErrorCode', this.language);
204
+ errorMessageKey = 'notFoundErrorCode';
188
205
  }
189
206
  }
190
207
  else {
191
- apiMessage = this.type === 'deposit'
192
- ? translate('denyDeposit', this.language)
193
- : translate('denyWithdrawal', this.language);
208
+ errorMessageKey = this.type === 'deposit' ? 'denyDeposit' : 'denyWithdrawal';
209
+ apiMessage = translate(errorMessageKey, this.language);
194
210
  }
195
211
  if (this.showApiErrorMessage) {
212
+ this.errorMessageKey = errorMessageKey;
196
213
  this.errorMessage = apiMessage;
197
214
  }
198
215
  const messageOBj = { type: 'error', message: apiMessage };
@@ -986,6 +1003,12 @@ export class UserDepositWithdrawal {
986
1003
  }, {
987
1004
  "propName": "clientStylingUrl",
988
1005
  "methodName": "handleClientStylingChangeURL"
1006
+ }, {
1007
+ "propName": "language",
1008
+ "methodName": "handleLanguageChange"
1009
+ }, {
1010
+ "propName": "translationUrl",
1011
+ "methodName": "handleTranslationUrlChange"
989
1012
  }, {
990
1013
  "propName": "enableStepUpAuth",
991
1014
  "methodName": "handleEnableStepUpAuthChange"
@@ -72,6 +72,7 @@ const TRANSLATIONS = {
72
72
  denyDeposit: 'Informamos que atualmente não tem permissão para iniciar transações de depósito.',
73
73
  denyWithdrawal: 'Informamos que atualmente não tem permissão para iniciar transações de levantamento.',
74
74
  notFoundErrorCode: 'Código de erro não encontrado',
75
+ errorCode21121: "Caro jogador! Informamos que de momento só pode iniciar transações de levantamento na sua conta. Código de erro: 21121",
75
76
  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',
76
77
  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'
77
78
  },
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await globalScripts();
8
- return bootstrapLazy([["player-step-up-auth_2",[[1,"user-deposit-withdrawal",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"endpoint":[513],"type":[513],"channel":[513],"language":[513],"productType":[513,"product-type"],"userId":[513,"user-id"],"session":[513],"successUrl":[513,"success-url"],"cancelUrl":[513,"cancel-url"],"failUrl":[513,"fail-url"],"sportsUrl":[513,"sports-url"],"casinoUrl":[513,"casino-url"],"contactUrl":[513,"contact-url"],"depositUrl":[513,"deposit-url"],"currency":[513],"showBonusSelectionInput":[513,"show-bonus-selection-input"],"isShortCashier":[516,"is-short-cashier"],"homeUrl":[513,"home-url"],"beforeRedirect":[16],"forwardCashierRedirects":[516,"forward-cashier-redirects"],"enableStepUpAuth":[516,"enable-step-up-auth"],"showApiErrorMessage":[516,"show-api-error-message"],"dynamicHeight":[32],"cashierInfoUrl":[32],"errorMessage":[32],"errorFromApi":[32]},[[8,"otpSuccess","handleOtpSuccess"],[8,"manualClosePopup","handleManualClosePopup"],[8,"otpResendRequested","handleOtpResendRequested"],[8,"otpSetTimeout","handleOtpSetTimeout"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"],"enableStepUpAuth":["handleEnableStepUpAuthChange"]}],[1,"player-step-up-auth",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"endpoint":[513],"userSession":[513,"user-session"],"translationUrl":[513,"translation-url"],"mode":[513],"showPopup":[32],"otp":[32],"isLoading":[32],"config":[32],"timeLeft":[32],"expirationTime":[32],"serverTime":[32],"hasErrors":[32],"hasConfigErrors":[32],"errorMessage":[32],"token":[32],"flow":[32],"showResendOtp":[32],"isLastWarning":[32],"inputDisabled":[32],"isValidating":[32],"isSuccess":[32],"shakeError":[32]},[[8,"stepUpAuthRequired","handleStepUpAuthEvent"],[8,"closePopup","handleCloseWidget"]],{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
8
+ return bootstrapLazy([["player-step-up-auth_2",[[1,"user-deposit-withdrawal",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"endpoint":[513],"type":[513],"channel":[513],"language":[513],"productType":[513,"product-type"],"userId":[513,"user-id"],"session":[513],"successUrl":[513,"success-url"],"cancelUrl":[513,"cancel-url"],"failUrl":[513,"fail-url"],"sportsUrl":[513,"sports-url"],"casinoUrl":[513,"casino-url"],"contactUrl":[513,"contact-url"],"depositUrl":[513,"deposit-url"],"currency":[513],"showBonusSelectionInput":[513,"show-bonus-selection-input"],"isShortCashier":[516,"is-short-cashier"],"homeUrl":[513,"home-url"],"beforeRedirect":[16],"forwardCashierRedirects":[516,"forward-cashier-redirects"],"enableStepUpAuth":[516,"enable-step-up-auth"],"showApiErrorMessage":[516,"show-api-error-message"],"dynamicHeight":[32],"cashierInfoUrl":[32],"errorMessage":[32],"errorFromApi":[32]},[[8,"otpSuccess","handleOtpSuccess"],[8,"manualClosePopup","handleManualClosePopup"],[8,"otpResendRequested","handleOtpResendRequested"],[8,"otpSetTimeout","handleOtpSetTimeout"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"],"language":["handleLanguageChange"],"translationUrl":["handleTranslationUrlChange"],"enableStepUpAuth":["handleEnableStepUpAuthChange"]}],[1,"player-step-up-auth",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"endpoint":[513],"userSession":[513,"user-session"],"translationUrl":[513,"translation-url"],"mode":[513],"showPopup":[32],"otp":[32],"isLoading":[32],"config":[32],"timeLeft":[32],"expirationTime":[32],"serverTime":[32],"hasErrors":[32],"hasConfigErrors":[32],"errorMessage":[32],"token":[32],"flow":[32],"showResendOtp":[32],"isLastWarning":[32],"inputDisabled":[32],"isValidating":[32],"isSuccess":[32],"shakeError":[32]},[[8,"stepUpAuthRequired","handleStepUpAuthEvent"],[8,"closePopup","handleCloseWidget"]],{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
9
9
  };
10
10
 
11
11
  export { defineCustomElements };
@@ -925,6 +925,7 @@ const TRANSLATIONS = {
925
925
  denyDeposit: 'Informamos que atualmente não tem permissão para iniciar transações de depósito.',
926
926
  denyWithdrawal: 'Informamos que atualmente não tem permissão para iniciar transações de levantamento.',
927
927
  notFoundErrorCode: 'Código de erro não encontrado',
928
+ errorCode21121: "Caro jogador! Informamos que de momento só pode iniciar transações de levantamento na sua conta. Código de erro: 21121",
928
929
  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',
929
930
  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'
930
931
  },
@@ -2108,6 +2109,7 @@ dayjs.extend(utc);
2108
2109
  const UserDepositWithdrawal = class {
2109
2110
  constructor(hostRef) {
2110
2111
  registerInstance(this, hostRef);
2112
+ this.errorMessageKey = null;
2111
2113
  this.sseStream = null;
2112
2114
  this.selectedPaymentMethod = null;
2113
2115
  this.sseReconnectAttempts = 0;
@@ -2192,6 +2194,19 @@ const UserDepositWithdrawal = class {
2192
2194
  setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
2193
2195
  }
2194
2196
  }
2197
+ handleLanguageChange(newValue, oldValue) {
2198
+ if (newValue !== oldValue && this.errorMessageKey) {
2199
+ this.errorMessage = translate(this.errorMessageKey, newValue);
2200
+ }
2201
+ }
2202
+ async handleTranslationUrlChange(newValue, oldValue) {
2203
+ if (newValue && newValue !== oldValue) {
2204
+ await getTranslations(newValue);
2205
+ if (this.errorMessageKey) {
2206
+ this.errorMessage = translate(this.errorMessageKey, this.language);
2207
+ }
2208
+ }
2209
+ }
2195
2210
  async componentWillLoad() {
2196
2211
  if (this.translationUrl) {
2197
2212
  await getTranslations(this.translationUrl);
@@ -2218,7 +2233,7 @@ const UserDepositWithdrawal = class {
2218
2233
  this.closeSSEStream();
2219
2234
  }
2220
2235
  render() {
2221
- return (h(Host, { key: '338fa8bd00485e7d7c1a92ddbc7622e4eb6bd020' }, this.enableStepUpAuth && (h("player-step-up-auth", { key: 'b0076f39d95d35b3cae6d6bb0a039feb39764f47', endpoint: this.endpoint, userSession: this.session, language: this.language, "client-styling-url": this.clientStylingUrl, "translation-url": this.translationUrl })), h("div", { key: '00f02636ed279a41dd203bdaea54f41eacaa8f86', ref: el => this.stylingContainer = el, class: "" }, h("div", { key: '120c160a3f0729e5aae360e9fc7b99e33c93e01c', class: `DepositWithdrawalWrapper ${this.isShortCashier ? 'ShortCashier' : ''}` }, (!(this.isMobile && !this.isShortCashier) && (h("h2", { key: '664216161b01c6e49bc36b738eb02ae622eeda09', class: "CategoryTitle" }, translate(this.typeParameter === 'Withdraw' ? 'Withdraw' : 'Deposit', this.language)))), h("div", { key: 'f57113548723235044ac51485b37e2e9b6e3ee4c', style: { marginTop: this.isShortCashier ? '30px' : '0' } }, (this.isMobile && !this.isShortCashier ?
2236
+ return (h(Host, { key: 'c81d1d4ee68c09136853e395106baedbb49b4db5' }, this.enableStepUpAuth && (h("player-step-up-auth", { key: 'ddad8ca99ed6b1012a48dcf3ec00eaf66842e17c', endpoint: this.endpoint, userSession: this.session, language: this.language, "client-styling-url": this.clientStylingUrl, "translation-url": this.translationUrl })), h("div", { key: 'eeaeed0b00a1e130792b8871d130bfbcb9c9876c', ref: el => this.stylingContainer = el, class: "" }, h("div", { key: 'e792348abc087994792e6c9f8cbd0f4487477e8f', class: `DepositWithdrawalWrapper ${this.isShortCashier ? 'ShortCashier' : ''}` }, (!(this.isMobile && !this.isShortCashier) && (h("h2", { key: 'b1cf66df335ea3f764063cfbab14f461db12e644', class: "CategoryTitle" }, translate(this.typeParameter === 'Withdraw' ? 'Withdraw' : 'Deposit', this.language)))), h("div", { key: '4d7e164ec587b9c43fc77c02666bdeb775e98e46', style: { marginTop: this.isShortCashier ? '30px' : '0' } }, (this.isMobile && !this.isShortCashier ?
2222
2237
  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)))
2223
2238
  : null)), this.cashierInfoUrl ?
2224
2239
  h("iframe", { ref: el => this.cashierIframeRef = el, width: "100%", allow: "payment", height: this.dynamicHeight, src: this.cashierInfoUrl }) :
@@ -2268,6 +2283,7 @@ const UserDepositWithdrawal = class {
2268
2283
  }
2269
2284
  else {
2270
2285
  let apiMessage;
2286
+ let errorMessageKey = null;
2271
2287
  if (data.ResponseMessage) {
2272
2288
  let foundErrorCode = this.errorCodes.find(code => data.ResponseMessage.includes(code)) || null;
2273
2289
  const translatedMessage = foundErrorCode
@@ -2275,6 +2291,7 @@ const UserDepositWithdrawal = class {
2275
2291
  : undefined;
2276
2292
  if (translatedMessage) {
2277
2293
  apiMessage = translatedMessage;
2294
+ errorMessageKey = `errorCode${foundErrorCode}`;
2278
2295
  }
2279
2296
  else if (this.showApiErrorMessage) {
2280
2297
  apiMessage = data.ResponseMessage;
@@ -2282,14 +2299,15 @@ const UserDepositWithdrawal = class {
2282
2299
  }
2283
2300
  else {
2284
2301
  apiMessage = translate('notFoundErrorCode', this.language);
2302
+ errorMessageKey = 'notFoundErrorCode';
2285
2303
  }
2286
2304
  }
2287
2305
  else {
2288
- apiMessage = this.type === 'deposit'
2289
- ? translate('denyDeposit', this.language)
2290
- : translate('denyWithdrawal', this.language);
2306
+ errorMessageKey = this.type === 'deposit' ? 'denyDeposit' : 'denyWithdrawal';
2307
+ apiMessage = translate(errorMessageKey, this.language);
2291
2308
  }
2292
2309
  if (this.showApiErrorMessage) {
2310
+ this.errorMessageKey = errorMessageKey;
2293
2311
  this.errorMessage = apiMessage;
2294
2312
  }
2295
2313
  const messageOBj = { type: 'error', message: apiMessage };
@@ -2598,6 +2616,8 @@ const UserDepositWithdrawal = class {
2598
2616
  static get watchers() { return {
2599
2617
  "clientStyling": ["handleClientStylingChange"],
2600
2618
  "clientStylingUrl": ["handleClientStylingChangeURL"],
2619
+ "language": ["handleLanguageChange"],
2620
+ "translationUrl": ["handleTranslationUrlChange"],
2601
2621
  "enableStepUpAuth": ["handleEnableStepUpAuthChange"]
2602
2622
  }; }
2603
2623
  };
@@ -16,5 +16,5 @@ var patchBrowser = () => {
16
16
 
17
17
  patchBrowser().then(async (options) => {
18
18
  await globalScripts();
19
- return bootstrapLazy([["player-step-up-auth_2",[[1,"user-deposit-withdrawal",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"endpoint":[513],"type":[513],"channel":[513],"language":[513],"productType":[513,"product-type"],"userId":[513,"user-id"],"session":[513],"successUrl":[513,"success-url"],"cancelUrl":[513,"cancel-url"],"failUrl":[513,"fail-url"],"sportsUrl":[513,"sports-url"],"casinoUrl":[513,"casino-url"],"contactUrl":[513,"contact-url"],"depositUrl":[513,"deposit-url"],"currency":[513],"showBonusSelectionInput":[513,"show-bonus-selection-input"],"isShortCashier":[516,"is-short-cashier"],"homeUrl":[513,"home-url"],"beforeRedirect":[16],"forwardCashierRedirects":[516,"forward-cashier-redirects"],"enableStepUpAuth":[516,"enable-step-up-auth"],"showApiErrorMessage":[516,"show-api-error-message"],"dynamicHeight":[32],"cashierInfoUrl":[32],"errorMessage":[32],"errorFromApi":[32]},[[8,"otpSuccess","handleOtpSuccess"],[8,"manualClosePopup","handleManualClosePopup"],[8,"otpResendRequested","handleOtpResendRequested"],[8,"otpSetTimeout","handleOtpSetTimeout"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"],"enableStepUpAuth":["handleEnableStepUpAuthChange"]}],[1,"player-step-up-auth",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"endpoint":[513],"userSession":[513,"user-session"],"translationUrl":[513,"translation-url"],"mode":[513],"showPopup":[32],"otp":[32],"isLoading":[32],"config":[32],"timeLeft":[32],"expirationTime":[32],"serverTime":[32],"hasErrors":[32],"hasConfigErrors":[32],"errorMessage":[32],"token":[32],"flow":[32],"showResendOtp":[32],"isLastWarning":[32],"inputDisabled":[32],"isValidating":[32],"isSuccess":[32],"shakeError":[32]},[[8,"stepUpAuthRequired","handleStepUpAuthEvent"],[8,"closePopup","handleCloseWidget"]],{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
19
+ return bootstrapLazy([["player-step-up-auth_2",[[1,"user-deposit-withdrawal",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"endpoint":[513],"type":[513],"channel":[513],"language":[513],"productType":[513,"product-type"],"userId":[513,"user-id"],"session":[513],"successUrl":[513,"success-url"],"cancelUrl":[513,"cancel-url"],"failUrl":[513,"fail-url"],"sportsUrl":[513,"sports-url"],"casinoUrl":[513,"casino-url"],"contactUrl":[513,"contact-url"],"depositUrl":[513,"deposit-url"],"currency":[513],"showBonusSelectionInput":[513,"show-bonus-selection-input"],"isShortCashier":[516,"is-short-cashier"],"homeUrl":[513,"home-url"],"beforeRedirect":[16],"forwardCashierRedirects":[516,"forward-cashier-redirects"],"enableStepUpAuth":[516,"enable-step-up-auth"],"showApiErrorMessage":[516,"show-api-error-message"],"dynamicHeight":[32],"cashierInfoUrl":[32],"errorMessage":[32],"errorFromApi":[32]},[[8,"otpSuccess","handleOtpSuccess"],[8,"manualClosePopup","handleManualClosePopup"],[8,"otpResendRequested","handleOtpResendRequested"],[8,"otpSetTimeout","handleOtpSetTimeout"]],{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"],"language":["handleLanguageChange"],"translationUrl":["handleTranslationUrlChange"],"enableStepUpAuth":["handleEnableStepUpAuthChange"]}],[1,"player-step-up-auth",{"mbSource":[513,"mb-source"],"clientStyling":[513,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"language":[513],"endpoint":[513],"userSession":[513,"user-session"],"translationUrl":[513,"translation-url"],"mode":[513],"showPopup":[32],"otp":[32],"isLoading":[32],"config":[32],"timeLeft":[32],"expirationTime":[32],"serverTime":[32],"hasErrors":[32],"hasConfigErrors":[32],"errorMessage":[32],"token":[32],"flow":[32],"showResendOtp":[32],"isLastWarning":[32],"inputDisabled":[32],"isValidating":[32],"isSuccess":[32],"shakeError":[32]},[[8,"stepUpAuthRequired","handleStepUpAuthEvent"],[8,"closePopup","handleCloseWidget"]],{"translationUrl":["handleNewTranslations"],"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingUrlChange"]}]]]], options);
20
20
  });
@@ -50,6 +50,7 @@ export declare class UserDepositWithdrawal {
50
50
  private cashierInfoUrl;
51
51
  private errorMessage;
52
52
  private errorFromApi;
53
+ private errorMessageKey;
53
54
  private cashierIframeRef;
54
55
  private sseStream;
55
56
  private selectedPaymentMethod;
@@ -67,6 +68,8 @@ export declare class UserDepositWithdrawal {
67
68
  private errorCodes;
68
69
  handleClientStylingChange(newValue: any, oldValue: any): void;
69
70
  handleClientStylingChangeURL(newValue: any, oldValue: any): void;
71
+ handleLanguageChange(newValue: string, oldValue: string): void;
72
+ handleTranslationUrlChange(newValue: string, oldValue: string): Promise<void>;
70
73
  componentWillLoad(): Promise<void>;
71
74
  toggleScreen: () => void;
72
75
  componentDidLoad(): void;
@@ -1,6 +1,6 @@
1
- import{r as e,h as t,F as i,g as r,H as n}from"./index-2ff63899.js";const o="__WIDGET_GLOBAL_STYLE_CACHE__";function a(e,t){if(e){const i=document.createElement("style");i.innerHTML=t,e.appendChild(i)}}function s(e,t){if(!e||!t)return;const i=new URL(t);fetch(i.href).then((e=>e.text())).then((t=>{const i=document.createElement("style");i.innerHTML=t,e&&e.appendChild(i)})).catch((e=>{console.error("There was an error while trying to load client styling from URL",e)}))}function u(e,t,i,r=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!r)return i=function(e,t){const i=document.createElement("style");return window.emMessageBus.subscribe(t,(t=>{e&&(i.innerHTML=t,e.appendChild(i))}))}(e,t),i;window[o]||(window[o]={}),i=function(e,t){return window.emMessageBus.subscribe(t,(i=>{if(!e)return;const r=e.getRootNode(),n=window[o];let a=n[t]&&n[t].sheet;a?n[t].refCount=n[t].refCount+1:(a=new CSSStyleSheet,a.replaceSync(i),n[t]={sheet:a,refCount:1});const s=r.adoptedStyleSheets||[];s.includes(a)||(r.adoptedStyleSheets=[...s,a])}))}(e,t);const n=i.unsubscribe.bind(i);return i.unsubscribe=()=>{if(window[o][t]){const e=window[o][t];e.refCount>1?e.refCount=e.refCount-1:delete window[o][t]}n()},i}const d={en:{popupMessage:"Please enter the security code received on your email address to perform the update.",popupMessageLastWarning:"If the next validation attempt is failed, you will be logged out and blocked temporarily.",minutes:"minutes",errorHeader:"Error",configError:"Unable to load OTP data. Please try again later.",otpHeading:"Enter OTP",resendOtp:"Resend OTP",submit:"Submit",close:"Close",invalidOtp:"The code you've sent is not valid. Please try again.",accountBlocked:"Too many attempts for OTP. Your account has been blocked for one hour.",submissionError:"Something went wrong. Please try again.",otpExpiredMessage:"Validation code has expired, please request a new one to continue.",otpDigit:"OTP digit",verifying:"Verifying...",otpVerified:"OTP Verified Successfully!"},ro:{popupMessage:"Introduceți codul de securitate primit pe adresa dvs. de e-mail pentru a efectua actualizarea.",popupMessageLastWarning:"Dacă următoarea încercare de validare eșuează, veți fi delogat și blocat temporar.",minutes:"minute",errorHeader:"Eroare",configError:"Nu s-a putut încărca datele OTP. Vă rugăm să încercați din nou mai târziu.",otpHeading:"Introduceți OTP",resendOtp:"Retrimitere OTP",submit:"Trimite",close:"Închide",invalidOtp:"Codul introdus nu este valid. Vă rugăm să încercați din nou.",accountBlocked:"Prea multe încercări de OTP. Contul dvs. a fost blocat timp de o oră.",submissionError:"Ceva a mers prost. Vă rugăm să încercați din nou.",otpExpiredMessage:"Codul de validare a expirat, vă rugăm să solicitați unul nou pentru a continua.",otpDigit:"Cifră OTP",verifying:"Se verifică...",otpVerified:"OTP verificat cu succes!"},fr:{popupMessage:"Veuillez entrer le code de sécurité reçu sur votre adresse e-mail pour effectuer la mise à jour.",popupMessageLastWarning:"Si la prochaine tentative de validation échoue, vous serez déconnecté et temporairement bloqué.",minutes:"minutes",errorHeader:"Erreur",configError:"Impossible de charger les données OTP. Veuillez réessayer plus tard.",otpHeading:"Entrez OTP",resendOtp:"Renvoyer OTP",submit:"Soumettre",close:"Fermer",invalidOtp:"Le code que vous avez saisi n’est pas valide. Veuillez réessayer.",accountBlocked:"Trop de tentatives OTP. Votre compte a été bloqué pendant une heure.",submissionError:"Quelque chose s'est mal passé. Veuillez réessayer.",otpExpiredMessage:"Le code de validation a expiré, veuillez en demander un nouveau pour continuer.",otpDigit:"Chiffre OTP",verifying:"Vérification...",otpVerified:"OTP vérifié avec succès!"},hu:{popupMessage:"Kérjük, adja meg az e-mail címére küldött biztonsági kódot a frissítés végrehajtásához.",popupMessageLastWarning:"Ha a következő érvényesítési kísérlet sikertelen, ki lesz jelentkeztetve és ideiglenesen letiltva.",minutes:"perc",errorHeader:"Hiba",configError:"Nem sikerült betölteni az OTP adatokat. Kérjük, próbálja újra később.",otpHeading:"OTP megadása",resendOtp:"Újraküldés",submit:"Beküldés",close:"Bezárás",invalidOtp:"A megadott kód érvénytelen. Kérjük, próbálja újra.",accountBlocked:"Túl sok OTP próbálkozás. A fiókja egy órára zárolva lett.",submissionError:"Valami hiba történt. Kérjük, próbálja újra.",otpExpiredMessage:"A megerősítő kód lejárt, kérjük, kérjen egy újat a folytatáshoz.",otpDigit:"OTP számjegy",verifying:"Ellenőrzés...",otpVerified:"OTP sikeresen ellenőrizve!"},tr:{popupMessage:"Güncellemeyi gerçekleştirmek için e-posta adresinize gelen güvenlik kodunu girin.",popupMessageLastWarning:"Bir sonraki doğrulama girişimi başarısız olursa, oturumunuz kapatılacak ve geçici olarak engelleneceksiniz.",minutes:"dakika",errorHeader:"Hata",configError:"OTP verisi yüklenemedi. Lütfen daha sonra tekrar deneyin.",otpHeading:"OTP Girin",resendOtp:"OTP'yi Yeniden Gönder",submit:"Gönder",close:"Kapat",invalidOtp:"Gönderdiğiniz kod geçersiz. Lütfen tekrar deneyin.",accountBlocked:"Çok fazla OTP denemesi yapıldı. Hesabınız bir saat boyunca kilitlendi.",submissionError:"Bir şeyler yanlış gitti. Lütfen tekrar deneyin.",otpExpiredMessage:"Doğrulama kodunun süresi doldu, devam etmek için lütfen yeni bir tane isteyin.",otpDigit:"OTP rakamı",verifying:"Doğrulanıyor...",otpVerified:"OTP başarıyla doğrulandı!"},el:{popupMessage:"Παρακαλώ εισάγετε τον κωδικό ασφαλείας που λάβατε στο email σας για να ολοκληρώσετε την ενημέρωση.",popupMessageLastWarning:"Αν η επόμενη προσπάθεια επικύρωσης αποτύχει, θα αποσυνδεθείτε και θα αποκλειστείτε προσωρινά.",minutes:"λεπτά",errorHeader:"Σφάλμα",configError:"Δεν ήταν δυνατή η φόρτωση των δεδομένων OTP. Παρακαλούμε προσπαθήστε ξανά αργότερα.",otpHeading:"Εισαγωγή OTP",resendOtp:"Αποστολή ξανά OTP",submit:"Υποβολή",close:"Κλείσιμο",invalidOtp:"Ο κωδικός που εισαγάγατε δεν είναι έγκυρος. Παρακαλώ προσπαθήστε ξανά.",accountBlocked:"Πάρα πολλές προσπάθειες OTP. Ο λογαριασμός σας έχει αποκλειστεί για μία ώρα.",submissionError:"Κάτι πήγε στραβά. Παρακαλώ προσπαθήστε ξανά.",otpExpiredMessage:"Ο κωδικός επαλήθευσης έχει λήξει, παρακαλώ ζητήστε έναν νέο για να συνεχίσετε.",otpDigit:"Ψηφίο OTP",verifying:"Επαλήθευση...",otpVerified:"Το OTP επαληθεύτηκε με επιτυχία!"},es:{popupMessage:"Por favor, introduzca el código de seguridad recibido en su correo electrónico para realizar la actualización.",popupMessageLastWarning:"Si el siguiente intento de validación falla, se cerrará tu sesión y serás bloqueado temporalmente.",minutes:"minutos",errorHeader:"Error",configError:"No se pudo cargar los datos del OTP. Por favor, inténtelo de nuevo más tarde.",otpHeading:"Introducir OTP",resendOtp:"Reenviar OTP",submit:"Enviar",close:"Cerrar",invalidOtp:"El código que ingresaste no es válido. Por favor, inténtalo de nuevo.",accountBlocked:"Demasiados intentos de OTP. Su cuenta ha sido bloqueada por una hora.",submissionError:"Algo salió mal. Por favor, inténtelo de nuevo.",otpExpiredMessage:"El código de validación ha expirado, por favor solicite uno nuevo para continuar.",otpDigit:"Dígito OTP",verifying:"Verificando...",otpVerified:"¡OTP verificado exitosamente!"},pt:{popupMessage:"Por favor, insira o código de segurança recebido no seu e-mail para realizar a atualização.",popupMessageLastWarning:"Se a próxima tentativa de validação falhar, será desconectado e temporariamente bloqueado.",minutes:"minutos",errorHeader:"Erro",configError:"Não foi possível carregar os dados do OTP. Tente novamente mais tarde.",otpHeading:"Insira o OTP",resendOtp:"Reenviar OTP",submit:"Enviar",close:"Fechar",invalidOtp:"O código inserido não é válido. Por favor, tente novamente.",accountBlocked:"Muitas tentativas de OTP. Sua conta foi bloqueada por uma hora.",submissionError:"Algo deu errado. Por favor, tente novamente.",otpExpiredMessage:"O código de validação expirou, por favor solicite um novo para continuar.",otpDigit:"Dígito OTP",verifying:"Verificando...",otpVerified:"OTP verificado com sucesso!"},hr:{popupMessage:"Unesite sigurnosni kod primljen na vašu e-mail adresu kako biste izvršili ažuriranje.",popupMessageLastWarning:"Ako sljedeći pokušaj provjere ne uspije, bit ćete odjavljeni i privremeno blokirani.",minutes:"minute",errorHeader:"Greška",configError:"Nije moguće učitati OTP podatke. Pokušajte ponovno kasnije.",otpHeading:"Unesite OTP",resendOtp:"Ponovno pošalji OTP",submit:"Pošalji",close:"Zatvori",invalidOtp:"Uneseni kod nije valjan. Molimo pokušajte ponovo.",accountBlocked:"Previše pokušaja unosa OTP-a. Vaš račun je blokiran na jedan sat.",submissionError:"Nešto je pošlo po zlu. Molimo pokušajte ponovo.",otpExpiredMessage:"Kod za potvrdu je istekao, molimo zatražite novi kako biste nastavili.",otpDigit:"OTP znamenka",verifying:"Provjera...",otpVerified:"OTP uspješno potvrđen!"},de:{popupMessage:"Bitte geben Sie den Sicherheitscode ein, den Sie an Ihre E-Mail-Adresse erhalten haben, um das Update durchzuführen.",popupMessageLastWarning:"Wenn der nächste Validierungsversuch fehlschlägt, werden Sie abgemeldet und vorübergehend gesperrt.",minutes:"Minuten",errorHeader:"Fehler",configError:"OTP-Daten konnten nicht geladen werden. Bitte versuchen Sie es später erneut.",otpHeading:"OTP eingeben",resendOtp:"OTP erneut senden",submit:"Absenden",close:"Schließen",invalidOtp:"Der eingegebene Code ist ungültig. Bitte versuchen Sie es erneut.",accountBlocked:"Zu viele OTP-Versuche. Ihr Konto wurde für eine Stunde gesperrt.",submissionError:"Etwas ist schiefgelaufen. Bitte versuchen Sie es erneut.",otpExpiredMessage:"Der Bestätigungscode ist abgelaufen, bitte fordern Sie einen neuen an, um fortzufahren.",otpDigit:"OTP-Ziffer",verifying:"Wird geprüft...",otpVerified:"OTP erfolgreich verifiziert!"},"es-mx":{popupMessage:"Por favor, ingrese el código de seguridad recibido en su correo electrónico para realizar la actualización.",popupMessageLastWarning:"Si el siguiente intento de validación falla, se cerrará tu sesión y serás bloqueado temporalmente.",minutes:"minutos",errorHeader:"Error",configError:"No se pudieron cargar los datos del OTP. Inténtelo de nuevo más tarde.",otpHeading:"Ingrese OTP",resendOtp:"Reenviar OTP",submit:"Enviar",close:"Cerrar",invalidOtp:"El código que ingresó no es válido. Inténtelo de nuevo.",accountBlocked:"Demasiados intentos de OTP. Su cuenta ha sido bloqueada por una hora.",submissionError:"Algo salió mal. Por favor, inténtelo de nuevo.",otpExpiredMessage:"El código de validación ha expirado, por favor solicite uno nuevo para continuar.",otpDigit:"Dígito OTP",verifying:"Verificando...",otpVerified:"¡OTP verificado exitosamente!"},"pt-br":{popupMessage:"Por favor, digite o código de segurança recebido no seu e-mail para realizar a atualização.",popupMessageLastWarning:"Se a próxima tentativa de validação falhar, você será desconectado e bloqueado temporariamente.",minutes:"minutos",errorHeader:"Erro",configError:"Não foi possível carregar os dados do OTP. Tente novamente mais tarde.",otpHeading:"Digite o OTP",resendOtp:"Reenviar OTP",submit:"Enviar",close:"Fechar",invalidOtp:"O código informado não é válido. Tente novamente.",accountBlocked:"Muitas tentativas de OTP. Sua conta foi bloqueada por uma hora.",submissionError:"Algo deu errado. Por favor, tente novamente.",otpExpiredMessage:"O código de validação expirou, por favor solicite um novo para continuar.",otpDigit:"Dígito OTP",verifying:"Verificando...",otpVerified:"OTP verificado com sucesso!"}},l=e=>new Promise((t=>{fetch(e).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{for(let i in e[t])d[t][i]=e[t][i]})),t(!0)}))})),h=(e,t)=>d[void 0!==t?t:"en"][e],c=class{handleNewTranslations(){l(this.translationUrl)}handleClientStylingChange(e,t){e!==t&&a(this.el,this.clientStyling)}handleClientStylingUrlChange(e,t){e!=t&&this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl)}async handleStepUpAuthEvent(e){var t;if(null===(t=e.detail)||void 0===t?void 0:t["x-step-up-required"]){if(this.hasConfigErrors=!1,this.hasErrors=!1,this.errorMessage="",this.showPopup=!0,this.token=e.detail["x-step-up-token"],this.flow=e.detail.flow,!this.token||!this.flow)return this.isLoading=!1,this.hasConfigErrors=!0,void(this.errorMessage=h("configError",this.language));await this.getConfig()}}handleCloseWidget(){this.countdownTimer&&(clearInterval(this.countdownTimer),this.countdownTimer=null),this.hasErrors=!1,this.hasConfigErrors=!1,this.errorMessage="",this.showPopup=!1,this.isLastWarning=!1}constructor(t){e(this,t),this.otpInputs=[],this.countdownTimer=null,this.expirationTimestamp=0,this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.language="en",this.endpoint=void 0,this.userSession=void 0,this.translationUrl="",this.mode="numeric",this.showPopup=!1,this.otp=void 0,this.isLoading=!0,this.config=null,this.timeLeft=0,this.expirationTime="",this.serverTime="",this.hasErrors=!1,this.hasConfigErrors=!1,this.errorMessage="",this.token="",this.flow="",this.showResendOtp=!1,this.isLastWarning=!1,this.inputDisabled=!1,this.isValidating=!1,this.isSuccess=!1,this.shakeError=!1,this.handleResendOtp=this.handleResendOtp.bind(this),this.submitOtp=this.submitOtp.bind(this),this.handleCloseWidget=this.handleCloseWidget.bind(this),this.manualClosePopup=this.manualClosePopup.bind(this)}async getConfig(){if(this.endpoint)try{const e=new URL(`/api/v1/mfa/challenge/${this.token}/config`,this.endpoint);this.isLoading=!0;const t=await fetch(e.href),i=await t.json();if(t.ok)this.config=i,this.otp=Array(this.config.inputLength).fill(""),this.isLoading=!1,this.isValidating=!1,this.showResendOtp=!1,this.expirationTime=this.config.expirationTime,this.serverTime=this.config.serverTime,0!==this.config.numberOfValidateAttempts&&(this.hasErrors=!0,this.errorMessage=h("invalidOtp",this.language)),this.config.numberOfValidateAttempts===this.config.maxValidationAttempts-1&&(this.isLastWarning=!0),this.calculateTimeLeft(),this.startCountdown();else{if(!i||"gm.twofa.token_max_attempts_exceeded"!==i.details){const e=i&&i.message||`Failed to load config. Status: ${t.status}`;throw new Error(e)}this.handleCloseWidget()}}catch(e){this.isLoading=!1,this.isValidating=!1,this.hasConfigErrors=!0,this.errorMessage=h("configError",this.language),console.error("Error loading 2FA config:",e)}}calculateTimeLeft(){const e=new Date(this.expirationTime),t=new Date(this.serverTime),i=new Date,r=t.getTime()-i.getTime();this.expirationTimestamp=e.getTime()-r;const n=Date.now(),o=Math.max(0,Math.floor((this.expirationTimestamp-n)/1e3));this.timeLeft=o}startCountdown(){this.countdownTimer&&clearInterval(this.countdownTimer),this.countdownTimer=setInterval((()=>{const e=Date.now(),t=Math.max(0,Math.floor((this.expirationTimestamp-e)/1e3));this.timeLeft=t,this.inputDisabled=t<=0,t<=0&&(clearInterval(this.countdownTimer),this.countdownTimer=null,this.showResendOtp=!0,this.hasErrors=!1,this.isLastWarning=!1)}),1e3)}formatTime(e){const t=e%60;return`${Math.floor(e/60).toString().padStart(2,"0")}:${t.toString().padStart(2,"0")}`}setOtpInputRef(e,t){e&&(this.otpInputs[t]=e)}updateOtpState(e,t){const i=[...this.otp];i[e]=t.toUpperCase(),this.otp=i}handleOnPasteOtp(e){var t,i,r;e.preventDefault();const n=((null===(i=null===(t=e.clipboardData)||void 0===t?void 0:t.getData("text"))||void 0===i?void 0:i.trim())||"").slice(0,this.config.inputLength).split("");this.otp=[...n,...Array(this.config.inputLength-n.length).fill("")],null===(r=this.otpInputs[n.length])||void 0===r||r.focus(),n.length===this.config.inputLength&&this.submitOtp()}handleOtpInput(e,t){const i=e.target,r=i.value;if(/^[a-z0-9]$/i.test(r)){this.updateOtpState(t,r);const e=this.otpInputs[t+1];null==e||e.focus()}i.value=""}handleKeyDown(e,t){const i=e.key,r=e.ctrlKey||e.metaKey;if(/^[a-z0-9]$/i.test(i)){if(r&&"v"===i.toLowerCase())return;e.preventDefault(),this.updateOtpState(t,i);const n=this.otpInputs[t+1];null==n||n.focus()}else if("Backspace"===i){e.preventDefault(),""!==this.otp[t]&&this.updateOtpState(t,"");const i=this.otpInputs[t-1];null==i||i.focus()}}handleResendOtp(){const e=new CustomEvent("otpResendRequested");window.dispatchEvent(e)}async submitOtp(){if(this.otp.join("").length!==this.config.inputLength)return this.hasErrors=!0,this.errorMessage=h("invalidOtp",this.language),void this.triggerShakeAnimation();if(this.timeLeft<=0)return this.hasErrors=!0,this.errorMessage=h("otpExpiredMessage",this.language),this.triggerShakeAnimation(),void await this.getConfig();this.isLoading=!0,this.isValidating=!0,this.hasErrors=!1,this.errorMessage="";const e=this.otp.join("");"stateless"===this.flow&&this.handleOtpStateless(e),"stateful"===this.flow&&await this.handleOtpStateful(e)}handleOtpStateless(e){window.dispatchEvent(new CustomEvent("otpSubmitted",{detail:{code:e,maxAttempts:this.config.maxValidationAttempts,validatedAttempts:this.config.numberOfValidateAttempts}}))}async handleOtpStateful(e){const t=new URL(`/api/v1/mfa/challenge/${this.token}/validate`,this.endpoint);t.searchParams.append("input",e);try{const e=await fetch(t.href,{method:"POST"});if(200===e.status)return void this.handleSuccess();const i=(await e.json()).message||"";if(i.toLowerCase().includes("expired"))return this.hasErrors=!0,this.errorMessage=h("otpExpiredMessage",this.language),this.triggerShakeAnimation(),void await this.getConfig();throw new Error(i)}catch(e){if("gm.multifactorauthentication.challenge_internal_server_error"===e.message||"gm.multifactorauthentication.internal_server_error"===e.message)return this.config.numberOfValidateAttempts===this.config.maxValidationAttempts-1?(window.dispatchEvent(new CustomEvent("otpSetTimeout")),window.postMessage({type:"WidgetNotification",data:{type:"error",message:h("accountBlocked",this.language)}},window.location.href),void this.handleCloseWidget()):(this.hasErrors=!0,this.errorMessage=h("invalidOtp",this.language),this.triggerShakeAnimation(),void this.getConfig());console.error("OTP submission failed:",e),this.hasErrors=!0,this.errorMessage=h("submissionError",this.language),this.triggerShakeAnimation()}finally{this.isLoading=!1,this.isValidating=!1}}async handleSuccess(){this.isSuccess=!0,await new Promise((e=>setTimeout(e,1200))),window.dispatchEvent(new CustomEvent("otpSuccess",{detail:{message:"User successfully authenticated"}})),this.handleCloseWidget()}triggerShakeAnimation(){this.shakeError=!0,setTimeout((()=>{this.shakeError=!1}),650)}manualClosePopup(){window.dispatchEvent(new CustomEvent("manualClosePopup")),this.handleCloseWidget()}disconnectedCallback(){var e;this.countdownTimer&&clearInterval(this.countdownTimer),null===(e=this.stylingSubscription)||void 0===e||e.unsubscribe()}async componentWillLoad(){this.translationUrl.length>2&&await l(this.translationUrl)}componentDidLoad(){this.stylingContainer&&(null!=window.emMessageBuss?u(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription):(this.clientStyling&&a(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl)))}render(){return t("div",{key:"fda28b7364d091f4a13bfea34e5687756cb00b39",ref:e=>this.stylingContainer=e},this.showPopup&&t("div",{key:"0166357e829d1f6bc35b88ce1605ca72a691f447",class:"OtpPopupOverlay"},t("div",{key:"4c616fdeb7d5624a972865e93b0e84778e668995",class:"OtpPopupContent "+(this.shakeError?"shake":"")},this.isLoading?t("div",{class:"OtpLoaderContainer"},t("span",{class:"OtpLoader"})):this.hasConfigErrors?t("div",{class:"OtpError"},t("div",{class:"OtpErrorHeader"},t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},t("path",{d:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"})),t("h2",null,h("errorHeader",this.language))),t("p",null,this.errorMessage),t("button",{class:"OtpButton error",onClick:this.manualClosePopup,"aria-label":h("close",this.language)},h("close",this.language))):t(i,null,t("div",{class:"otp-description"},this.showResendOtp?t("p",{class:"OtpNoticeMessage",role:"alert"},h("otpExpiredMessage",this.language)):t(i,null,t("p",{class:this.isLastWarning?"LastWarningMessage":""},h(this.isLastWarning?"popupMessageLastWarning":"popupMessage",this.language)),this.hasErrors&&t("p",{class:"OtpErrorMessage",role:"alert"},this.errorMessage))),t("div",{class:"OtpFieldWrapper"},t("h2",null,h("otpHeading",this.language)),t("div",{class:"OtpField"},this.otp.map(((e,i)=>t("input",{key:i,ref:e=>this.setOtpInputRef(e,i),id:`otp-input-${i}`,type:"text",inputmode:this.mode,pattern:"numeric"===this.mode?"[0-9]":void 0,class:`otp-box ${this.config.inputLength%2==0&&i===this.config.inputLength/2-1?"space":""} ${e?"filled":""} ${this.hasErrors?"error":""}`,maxLength:1,value:e,onInput:e=>this.handleOtpInput(e,i),onKeyDown:e=>this.handleKeyDown(e,i),onPaste:e=>this.handleOnPasteOtp(e),disabled:this.inputDisabled,autoComplete:"off","aria-label":`${h("otpDigit",this.language)} ${i+1}`,"aria-invalid":this.hasErrors})))),t("div",{class:"OtpTimerContainer"},t("div",{class:`OtpTimer ${this.isLastWarning?"warning":""} ${this.timeLeft<60?"critical":""}`,role:"timer","aria-live":"polite"},t("svg",{class:"timer-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},t("path",{d:"M256 0a256 256 0 1 1 0 512A256 256 0 1 1 256 0zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"})),t("span",{class:"timer-text"},this.formatTime(this.timeLeft)," ",h("minutes",this.language))))),this.isSuccess&&t("div",{class:"OtpSuccessOverlay"},t("svg",{class:"success-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},t("path",{d:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"})),t("span",null,h("otpVerified",this.language))),t("div",{class:"OtpActionButtons"},this.showResendOtp?t("button",{class:"OtpButton primary",onClick:this.handleResendOtp,disabled:this.isLoading,"aria-label":h("resendOtp",this.language)},h("resendOtp",this.language)):t("button",{class:"OtpButton primary "+(this.isValidating?"loading":""),onClick:this.submitOtp,disabled:this.otp.join("").length!==this.config.inputLength||this.isValidating||this.isLoading,"aria-label":h("submit",this.language),"aria-busy":this.isValidating},this.isValidating?t(i,null,t("span",{class:"button-spinner"}),t("span",{class:"button-text"},h("verifying",this.language))):t("span",{class:"button-text"},h("submit",this.language))),t("button",{class:"OtpButton secondary",onClick:this.manualClosePopup,disabled:this.isValidating,"aria-label":h("close",this.language)},h("close",this.language)))))))}get el(){return r(this)}static get watchers(){return{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}}};c.style=".OtpPopupOverlay{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--emw--color-overlay, rgba(0, 0, 0, 0.5));display:flex;align-items:center;justify-content:center}.OtpButton{font-family:var(--emw--button-typography);border:var(--emw--button-border, none);border-radius:var(--emw--button-border-radius, 3px);border-color:var(--emw--button-border-color);background-color:var(--emw--button-background-color, var(--emw--color-primary, #007bff));color:var(--emw--button-typography, var(--emw--color-white, #fff));padding:10px 20px;cursor:pointer;font-size:16px}.OtpButton.error{background:var(--emw--color-error, #dd3434)}.OtpPopupContent{position:relative;background:var(--emw--color-white, #fff);padding:20px;border-radius:5px;text-align:center;min-width:25%;min-height:200px;display:flex;flex-direction:column;justify-content:center;gap:20px}.OtpPopupContent .OtpError{display:flex;flex-direction:column;gap:20px;align-items:center}.OtpPopupContent .OtpError .OtpErrorHeader{display:flex;justify-content:center;gap:5px}.OtpPopupContent .OtpError h2{margin:0}.OtpPopupContent .OtpError svg{width:25px;fill:var(--emw--color-error, #dd3434)}.OtpFieldWrapper{display:flex;flex-direction:column;gap:10px}.OtpFieldWrapper h2{margin:0}.OtpField{display:flex;justify-content:center}.OtpField input{width:24px;font-size:32px;padding:10px;text-align:center;border-radius:5px;margin:2px;border:2px solid var(--emw--otp-border-color, #55525c);font-weight:bold;outline:none;transition:all 0.1s}.OtpField input.space{margin-right:1rem !important}.OtpField input:focus{border:2px solid var(--emw--color-primary, #007bff);box-shadow:0 0 2px 2px var(--emw--color-primary, #007bff)}.OtpActionButtons{display:flex;justify-content:space-between}.OtpErrorMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpLoaderContainer{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.OtpLoader{width:48px;height:48px;border:5px solid var(--emw--color-secondary, #b3d8ff);border-bottom-color:var(--emw--color-primary, #007bff);border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotation 1s linear infinite}.OtpSuccessOverlay{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(var(--emw--color-green-rgb, 255, 255, 255), 0.95);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;z-index:10}@keyframes rotation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";const p=["ro","en","fr","hr","en-us","es-mx","pt-br","es","de","pt","tr"],f={en:{Deposit:"Deposit",Withdraw:"Withdraw",denyDeposit:"Please be informed that currently you are not allowed to initiate deposit transactions.",denyWithdrawal:"Please be informed that currently you are not allowed to initiate withdrawal transactions.",notFoundErrorCode:"Not found error code",errorCode21121:"Dear Player! Please be informed that currently you are allowed to initiate only withdrawal transactions from your player account. Error Code: 21121",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 deposit transactions.",denyWithdrawal:"Please be informed that currently you are not allowed to initiate withdrawal transactions.",notFoundErrorCode:"Not found error code",errorCode21121:"Dear Player! Please be informed that currently you are allowed to initiate only withdrawal transactions from your player account. Error Code: 21121",errorCode21122:"Dear player! Please be informed that currently you are not allowed to initiate withdrawal transaction from your player account. Error Code: 21122",errorCode21123:"Dear player! Please be informed that currently you are not allowed to make a deposit to your player account. Error Code:21123"},ro:{Deposit:"Depunere",Withdraw:"Retragere",denyDeposit:"Vă informăm că în prezent nu aveți permisiunea de a iniția tranzacții de depunere.",denyWithdrawal:"Vă informăm că în prezent nu aveți permisiunea de a iniția tranzacții de retragere.",notFoundErrorCode:"Cod de eroare negăsit",errorCode21122:"Stimate jucător! Vă informăm că în prezent nu aveți permisiunea de a iniția o tranzacție de retragere din contul dvs. de jucător. Cod de eroare: 21122",errorCode21123:"Stimate jucător! Vă informăm că în prezent nu aveți permisiunea de a efectua o depunere în contul dvs. de jucător. Cod de eroare: 21123"},fr:{Deposit:"Dépôt",Withdraw:"Retrait",denyDeposit:"Veuillez noter qu’actuellement vous n’êtes pas autorisé à initier des transactions de dépôt.",denyWithdrawal:"Veuillez noter qu’actuellement vous n’êtes pas autorisé à initier des transactions de retrait.",notFoundErrorCode:"Code d’erreur introuvable",errorCode21122:"Cher joueur ! Veuillez noter qu’actuellement vous n’êtes pas autorisé à initier une transaction de retrait depuis votre compte joueur. Code d’erreur : 21122",errorCode21123:"Cher joueur ! Veuillez noter qu’actuellement vous n’êtes pas autorisé à effectuer un dépôt sur votre compte joueur. Code d’erreur : 21123"},hr:{Deposit:"Uplata",Withdraw:"Isplata",denyDeposit:"Obavještavamo Vas da trenutno nemate mogućnost uplata.",denyWithdrawal:"Obavještavamo vas da trenutno niste ovlašteni za pokretanje transakcija isplate.",notFoundErrorCode:"Not found error code",errorCode21122:"Poštovani, trenutno nije moguće izvršiti isplatu sa Vašeg računa. Error Code: 21122",errorCode21123:"Poštovani, trenutno nije moguće izvršiti uplatu na Vaš račun. Error Code:21123"},de:{Deposit:"Einzahlung",Withdraw:"Abhebung",denyDeposit:"Bitte beachten Sie, dass Sie derzeit keine Einzahlungs-Transaktionen durchführen dürfen.",denyWithdrawal:"Bitte beachten Sie, dass Sie derzeit keine Abhebungs-Transaktionen durchführen dürfen.",notFoundErrorCode:"Fehlercode nicht gefunden",errorCode21122:"Sehr geehrter Spieler! Bitte beachten Sie, dass Sie derzeit keine Abhebung von Ihrem Spielerkonto durchführen dürfen. Fehlercode: 21122",errorCode21123:"Sehr geehrter Spieler! Bitte beachten Sie, dass Sie derzeit keine Einzahlung auf Ihr Spielerkonto durchführen dürfen. Fehlercode: 21123"},es:{Deposit:"Depósito",Withdraw:"Retiro",denyDeposit:"Le informamos que actualmente no tiene permitido iniciar transacciones de depósito.",denyWithdrawal:"Le informamos que actualmente no tiene permitido iniciar transacciones de retiro.",notFoundErrorCode:"Código de error no encontrado",errorCode21122:"¡Estimado jugador! Le informamos que actualmente no tiene permitido iniciar una transacción de retiro desde su cuenta de jugador. Código de error: 21122",errorCode21123:"¡Estimado jugador! Le informamos que actualmente no tiene permitido realizar un depósito en su cuenta de jugador. Código de error: 21123"},pt:{Deposit:"Depósito",Withdraw:"Levantamento",denyDeposit:"Informamos que atualmente não tem permissão para iniciar transações de depósito.",denyWithdrawal:"Informamos que atualmente não tem permissão para iniciar transações de levantamento.",notFoundErrorCode:"Código de erro não encontrado",errorCode21122:"Caro jogador! Informamos que atualmente não tem permissão para iniciar uma transação de levantamento na sua conta de jogador. Código de erro: 21122",errorCode21123:"Caro jogador! Informamos que atualmente não tem permissão para realizar um depósito na sua conta de jogador. Código de erro: 21123"},"es-mx":{Deposit:"Depósito",Withdraw:"Retiro",denyDeposit:"Le informamos que actualmente no tiene permitido iniciar transacciones de depósito.",denyWithdrawal:"Le informamos que actualmente no tiene permitido iniciar transacciones de retiro.",notFoundErrorCode:"Código de error no encontrado",errorCode21122:"¡Estimado jugador! Le informamos que actualmente no tiene permitido iniciar una transacción de retiro desde su cuenta de jugador. Código de error: 21122",errorCode21123:"¡Estimado jugador! Le informamos que actualmente no tiene permitido realizar un depósito en su cuenta de jugador. Código de error: 21123"},"pt-br":{Deposit:"Depósito",Withdraw:"Saque",denyDeposit:"Informamos que atualmente você não tem permissão para iniciar transações de depósito.",denyWithdrawal:"Informamos que atualmente você não tem permissão para iniciar transações de saque.",notFoundErrorCode:"Código de erro não encontrado",errorCode21122:"Caro jogador! Informamos que atualmente você não tem permissão para iniciar uma transação de saque em sua conta de jogador. Código de erro: 21122",errorCode21123:"Caro jogador! Informamos que atualmente você não tem permissão para realizar um depósito em sua conta de jogador. Código de erro: 21123"},tr:{Deposit:"Para Yatırma",Withdraw:"Para Çekme",denyDeposit:"Lütfen şu anda para yatırma işlemi başlatamayacağınızı bilgilerinize sunarız.",denyWithdrawal:"Lütfen şu anda para çekme işlemi başlatamayacağınızı bilgilerinize sunarız.",notFoundErrorCode:"Hata kodu bulunamadı",errorCode21122:"Değerli oyuncumuz! Lütfen şu anda oyuncu hesabınızdan para çekme işlemi başlatamayacağınızı bilgilerinize sunarız. Hata Kodu: 21122",errorCode21123:"Değerli oyuncumuz! Lütfen şu anda oyuncu hesabınıza para yatırma işlemi yapamayacağınızı bilgilerinize sunarız. Hata Kodu: 21123"}},m=(e,t)=>{const i=t;return f[void 0!==i&&p.includes(i)?i:"en"][e]};var v="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},g={exports:{}};g.exports=function(){var e=6e4,t=36e5,i="millisecond",r="second",n="minute",o="hour",a="day",s="week",u="month",d="quarter",l="year",h="date",c="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={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(e){var t=["th","st","nd","rd"],i=e%100;return"["+e+(t[(i-20)%10]||t[i]||t[0])+"]"}},v=function(e,t,i){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(i)+e},g={s:v,z:function(e){var t=-e.utcOffset(),i=Math.abs(t),r=Math.floor(i/60),n=i%60;return(t<=0?"+":"-")+v(r,2,"0")+":"+v(n,2,"0")},m:function e(t,i){if(t.date()<i.date())return-e(i,t);var r=12*(i.year()-t.year())+(i.month()-t.month()),n=t.clone().add(r,u),o=i-n<0,a=t.clone().add(r+(o?-1:1),u);return+(-(r+(i-n)/(o?n-a:a-n))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:u,y:l,w:s,d:a,D:h,h:o,m:n,s:r,ms:i,Q:d}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},w="en",y={};y[w]=m;var b="$isDayjsObject",O=function(e){return e instanceof k||!(!e||!e[b])},S=function e(t,i,r){var n;if(!t)return w;if("string"==typeof t){var o=t.toLowerCase();y[o]&&(n=o),i&&(y[o]=i,n=o);var a=t.split("-");if(!n&&a.length>1)return e(a[0])}else{var s=t.name;y[s]=t,n=s}return!r&&n&&(w=n),n||!r&&w},E=function(e,t){if(O(e))return e.clone();var i="object"==typeof t?t:{};return i.date=e,i.args=arguments,new k(i)},C=g;C.l=S,C.i=O,C.w=function(e,t){return E(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var k=function(){function m(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[b]=!0}var v=m.prototype;return v.parse=function(e){this.$d=function(e){var t=e.date,i=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var n=r[2]-1||0,o=(r[7]||"0").substring(0,3);return i?new Date(Date.UTC(r[1],n,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],n,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},v.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()},v.$utils=function(){return C},v.isValid=function(){return!(this.$d.toString()===c)},v.isSame=function(e,t){var i=E(e);return this.startOf(t)<=i&&i<=this.endOf(t)},v.isAfter=function(e,t){return E(e)<this.startOf(t)},v.isBefore=function(e,t){return this.endOf(t)<E(e)},v.$g=function(e,t,i){return C.u(e)?this[t]:this.set(i,e)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(e,t){var i=this,d=!!C.u(t)||t,c=C.p(e),p=function(e,t){var r=C.w(i.$u?Date.UTC(i.$y,t,e):new Date(i.$y,t,e),i);return d?r:r.endOf(a)},f=function(e,t){return C.w(i.toDate()[e].apply(i.toDate("s"),(d?[0,0,0,0]:[23,59,59,999]).slice(t)),i)},m=this.$W,v=this.$M,g=this.$D,w="set"+(this.$u?"UTC":"");switch(c){case l:return d?p(1,0):p(31,11);case u:return d?p(1,v):p(0,v+1);case s:var y=this.$locale().weekStart||0,b=(m<y?m+7:m)-y;return p(d?g-b:g+(6-b),v);case a:case h:return f(w+"Hours",0);case o:return f(w+"Minutes",1);case n:return f(w+"Seconds",2);case r:return f(w+"Milliseconds",3);default:return this.clone()}},v.endOf=function(e){return this.startOf(e,!1)},v.$set=function(e,t){var s,d=C.p(e),c="set"+(this.$u?"UTC":""),p=(s={},s[a]=c+"Date",s[h]=c+"Date",s[u]=c+"Month",s[l]=c+"FullYear",s[o]=c+"Hours",s[n]=c+"Minutes",s[r]=c+"Seconds",s[i]=c+"Milliseconds",s)[d],f=d===a?this.$D+(t-this.$W):t;if(d===u||d===l){var m=this.clone().set(h,1);m.$d[p](f),m.init(),this.$d=m.set(h,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](f);return this.init(),this},v.set=function(e,t){return this.clone().$set(e,t)},v.get=function(e){return this[C.p(e)]()},v.add=function(i,d){var h,c=this;i=Number(i);var p=C.p(d),f=function(e){var t=E(c);return C.w(t.date(t.date()+Math.round(e*i)),c)};if(p===u)return this.set(u,this.$M+i);if(p===l)return this.set(l,this.$y+i);if(p===a)return f(1);if(p===s)return f(7);var m=(h={},h[n]=e,h[o]=t,h[r]=1e3,h)[p]||1,v=this.$d.getTime()+i*m;return C.w(v,this)},v.subtract=function(e,t){return this.add(-1*e,t)},v.format=function(e){var t=this,i=this.$locale();if(!this.isValid())return i.invalidDate||c;var r=e||"YYYY-MM-DDTHH:mm:ssZ",n=C.z(this),o=this.$H,a=this.$m,s=this.$M,u=i.weekdays,d=i.months,l=function(e,i,n,o){return e&&(e[i]||e(t,r))||n[i].slice(0,o)},h=function(e){return C.s(o%12||12,e,"0")},p=i.meridiem||function(e,t,i){var r=e<12?"AM":"PM";return i?r.toLowerCase():r};return r.replace(f,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return C.s(t.$y,4,"0");case"M":return s+1;case"MM":return C.s(s+1,2,"0");case"MMM":return l(i.monthsShort,s,d,3);case"MMMM":return l(d,s);case"D":return t.$D;case"DD":return C.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return l(i.weekdaysMin,t.$W,u,2);case"ddd":return l(i.weekdaysShort,t.$W,u,3);case"dddd":return u[t.$W];case"H":return String(o);case"HH":return C.s(o,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return p(o,a,!0);case"A":return p(o,a,!1);case"m":return String(a);case"mm":return C.s(a,2,"0");case"s":return String(t.$s);case"ss":return C.s(t.$s,2,"0");case"SSS":return C.s(t.$ms,3,"0");case"Z":return n}return null}(e)||n.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(i,h,c){var p,f=this,m=C.p(h),v=E(i),g=(v.utcOffset()-this.utcOffset())*e,w=this-v,y=function(){return C.m(f,v)};switch(m){case l:p=y()/12;break;case u:p=y();break;case d:p=y()/3;break;case s:p=(w-g)/6048e5;break;case a:p=(w-g)/864e5;break;case o:p=w/t;break;case n:p=w/e;break;case r:p=w/1e3;break;default:p=w}return c?p:C.a(p)},v.daysInMonth=function(){return this.endOf(u).$D},v.$locale=function(){return y[this.$L]},v.locale=function(e,t){if(!e)return this.$L;var i=this.clone(),r=S(e,t,!0);return r&&(i.$L=r),i},v.clone=function(){return C.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},m}(),T=k.prototype;return E.prototype=T,[["$ms",i],["$s",r],["$m",n],["$H",o],["$W",a],["$M",u],["$y",l],["$D",h]].forEach((function(e){T[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),E.extend=function(e,t){return e.$i||(e(t,k,E),e.$i=!0),E},E.locale=S,E.isDayjs=O,E.unix=function(e){return E(1e3*e)},E.en=y[w],E.Ls=y,E.p={},E}();const w=g.exports;var y,b,O,S={exports:{}};S.exports=(y="minute",b=/[+-]\d\d(?::?\d\d)?/g,O=/([+-]|\d\d)/g,function(e,t,i){var r=t.prototype;i.utc=function(e){return new t({date:e,utc:!0,args:arguments})},r.utc=function(e){var t=i(this.toDate(),{locale:this.$L,utc:!0});return e?t.add(this.utcOffset(),y):t},r.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var n=r.parse;r.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),n.call(this,e)};var o=r.init;r.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else o.call(this)};var a=r.utcOffset;r.utcOffset=function(e,t){var i=this.$utils().u;if(i(e))return this.$u?0:i(this.$offset)?a.call(this):this.$offset;if("string"==typeof e&&(e=function(e){void 0===e&&(e="");var t=e.match(b);if(!t)return null;var i=(""+t[0]).match(O)||["-",0,0],r=60*+i[1]+ +i[2];return 0===r?0:"+"===i[0]?r:-r}(e),null===e))return this;var r=Math.abs(e)<=16?60*e:e,n=this;if(t)return n.$offset=r,n.$u=0===e,n;if(0!==e){var o=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(n=this.local().add(r+o,y)).$offset=r,n.$x.$localOffset=o}else n=this.utc();return n};var s=r.format;r.format=function(e){return s.call(this,e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":""))},r.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},r.isUTC=function(){return!!this.$u},r.toISOString=function(){return this.toDate().toISOString()},r.toString=function(){return this.toDate().toUTCString()};var u=r.toDate;r.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():u.call(this)};var d=r.diff;r.diff=function(e,t,r){if(e&&this.$u===e.$u)return d.call(this,e,t,r);var n=this.local(),o=i(e).local();return d.call(n,o,t,r)}});const E=S.exports;var C,k,T={exports:{}};
1
+ import{r as e,h as t,F as i,g as r,H as n}from"./index-2ff63899.js";const o="__WIDGET_GLOBAL_STYLE_CACHE__";function a(e,t){if(e){const i=document.createElement("style");i.innerHTML=t,e.appendChild(i)}}function s(e,t){if(!e||!t)return;const i=new URL(t);fetch(i.href).then((e=>e.text())).then((t=>{const i=document.createElement("style");i.innerHTML=t,e&&e.appendChild(i)})).catch((e=>{console.error("There was an error while trying to load client styling from URL",e)}))}function d(e,t,i,r=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!r)return i=function(e,t){const i=document.createElement("style");return window.emMessageBus.subscribe(t,(t=>{e&&(i.innerHTML=t,e.appendChild(i))}))}(e,t),i;window[o]||(window[o]={}),i=function(e,t){return window.emMessageBus.subscribe(t,(i=>{if(!e)return;const r=e.getRootNode(),n=window[o];let a=n[t]&&n[t].sheet;a?n[t].refCount=n[t].refCount+1:(a=new CSSStyleSheet,a.replaceSync(i),n[t]={sheet:a,refCount:1});const s=r.adoptedStyleSheets||[];s.includes(a)||(r.adoptedStyleSheets=[...s,a])}))}(e,t);const n=i.unsubscribe.bind(i);return i.unsubscribe=()=>{if(window[o][t]){const e=window[o][t];e.refCount>1?e.refCount=e.refCount-1:delete window[o][t]}n()},i}const u={en:{popupMessage:"Please enter the security code received on your email address to perform the update.",popupMessageLastWarning:"If the next validation attempt is failed, you will be logged out and blocked temporarily.",minutes:"minutes",errorHeader:"Error",configError:"Unable to load OTP data. Please try again later.",otpHeading:"Enter OTP",resendOtp:"Resend OTP",submit:"Submit",close:"Close",invalidOtp:"The code you've sent is not valid. Please try again.",accountBlocked:"Too many attempts for OTP. Your account has been blocked for one hour.",submissionError:"Something went wrong. Please try again.",otpExpiredMessage:"Validation code has expired, please request a new one to continue.",otpDigit:"OTP digit",verifying:"Verifying...",otpVerified:"OTP Verified Successfully!"},ro:{popupMessage:"Introduceți codul de securitate primit pe adresa dvs. de e-mail pentru a efectua actualizarea.",popupMessageLastWarning:"Dacă următoarea încercare de validare eșuează, veți fi delogat și blocat temporar.",minutes:"minute",errorHeader:"Eroare",configError:"Nu s-a putut încărca datele OTP. Vă rugăm să încercați din nou mai târziu.",otpHeading:"Introduceți OTP",resendOtp:"Retrimitere OTP",submit:"Trimite",close:"Închide",invalidOtp:"Codul introdus nu este valid. Vă rugăm să încercați din nou.",accountBlocked:"Prea multe încercări de OTP. Contul dvs. a fost blocat timp de o oră.",submissionError:"Ceva a mers prost. Vă rugăm să încercați din nou.",otpExpiredMessage:"Codul de validare a expirat, vă rugăm să solicitați unul nou pentru a continua.",otpDigit:"Cifră OTP",verifying:"Se verifică...",otpVerified:"OTP verificat cu succes!"},fr:{popupMessage:"Veuillez entrer le code de sécurité reçu sur votre adresse e-mail pour effectuer la mise à jour.",popupMessageLastWarning:"Si la prochaine tentative de validation échoue, vous serez déconnecté et temporairement bloqué.",minutes:"minutes",errorHeader:"Erreur",configError:"Impossible de charger les données OTP. Veuillez réessayer plus tard.",otpHeading:"Entrez OTP",resendOtp:"Renvoyer OTP",submit:"Soumettre",close:"Fermer",invalidOtp:"Le code que vous avez saisi n’est pas valide. Veuillez réessayer.",accountBlocked:"Trop de tentatives OTP. Votre compte a été bloqué pendant une heure.",submissionError:"Quelque chose s'est mal passé. Veuillez réessayer.",otpExpiredMessage:"Le code de validation a expiré, veuillez en demander un nouveau pour continuer.",otpDigit:"Chiffre OTP",verifying:"Vérification...",otpVerified:"OTP vérifié avec succès!"},hu:{popupMessage:"Kérjük, adja meg az e-mail címére küldött biztonsági kódot a frissítés végrehajtásához.",popupMessageLastWarning:"Ha a következő érvényesítési kísérlet sikertelen, ki lesz jelentkeztetve és ideiglenesen letiltva.",minutes:"perc",errorHeader:"Hiba",configError:"Nem sikerült betölteni az OTP adatokat. Kérjük, próbálja újra később.",otpHeading:"OTP megadása",resendOtp:"Újraküldés",submit:"Beküldés",close:"Bezárás",invalidOtp:"A megadott kód érvénytelen. Kérjük, próbálja újra.",accountBlocked:"Túl sok OTP próbálkozás. A fiókja egy órára zárolva lett.",submissionError:"Valami hiba történt. Kérjük, próbálja újra.",otpExpiredMessage:"A megerősítő kód lejárt, kérjük, kérjen egy újat a folytatáshoz.",otpDigit:"OTP számjegy",verifying:"Ellenőrzés...",otpVerified:"OTP sikeresen ellenőrizve!"},tr:{popupMessage:"Güncellemeyi gerçekleştirmek için e-posta adresinize gelen güvenlik kodunu girin.",popupMessageLastWarning:"Bir sonraki doğrulama girişimi başarısız olursa, oturumunuz kapatılacak ve geçici olarak engelleneceksiniz.",minutes:"dakika",errorHeader:"Hata",configError:"OTP verisi yüklenemedi. Lütfen daha sonra tekrar deneyin.",otpHeading:"OTP Girin",resendOtp:"OTP'yi Yeniden Gönder",submit:"Gönder",close:"Kapat",invalidOtp:"Gönderdiğiniz kod geçersiz. Lütfen tekrar deneyin.",accountBlocked:"Çok fazla OTP denemesi yapıldı. Hesabınız bir saat boyunca kilitlendi.",submissionError:"Bir şeyler yanlış gitti. Lütfen tekrar deneyin.",otpExpiredMessage:"Doğrulama kodunun süresi doldu, devam etmek için lütfen yeni bir tane isteyin.",otpDigit:"OTP rakamı",verifying:"Doğrulanıyor...",otpVerified:"OTP başarıyla doğrulandı!"},el:{popupMessage:"Παρακαλώ εισάγετε τον κωδικό ασφαλείας που λάβατε στο email σας για να ολοκληρώσετε την ενημέρωση.",popupMessageLastWarning:"Αν η επόμενη προσπάθεια επικύρωσης αποτύχει, θα αποσυνδεθείτε και θα αποκλειστείτε προσωρινά.",minutes:"λεπτά",errorHeader:"Σφάλμα",configError:"Δεν ήταν δυνατή η φόρτωση των δεδομένων OTP. Παρακαλούμε προσπαθήστε ξανά αργότερα.",otpHeading:"Εισαγωγή OTP",resendOtp:"Αποστολή ξανά OTP",submit:"Υποβολή",close:"Κλείσιμο",invalidOtp:"Ο κωδικός που εισαγάγατε δεν είναι έγκυρος. Παρακαλώ προσπαθήστε ξανά.",accountBlocked:"Πάρα πολλές προσπάθειες OTP. Ο λογαριασμός σας έχει αποκλειστεί για μία ώρα.",submissionError:"Κάτι πήγε στραβά. Παρακαλώ προσπαθήστε ξανά.",otpExpiredMessage:"Ο κωδικός επαλήθευσης έχει λήξει, παρακαλώ ζητήστε έναν νέο για να συνεχίσετε.",otpDigit:"Ψηφίο OTP",verifying:"Επαλήθευση...",otpVerified:"Το OTP επαληθεύτηκε με επιτυχία!"},es:{popupMessage:"Por favor, introduzca el código de seguridad recibido en su correo electrónico para realizar la actualización.",popupMessageLastWarning:"Si el siguiente intento de validación falla, se cerrará tu sesión y serás bloqueado temporalmente.",minutes:"minutos",errorHeader:"Error",configError:"No se pudo cargar los datos del OTP. Por favor, inténtelo de nuevo más tarde.",otpHeading:"Introducir OTP",resendOtp:"Reenviar OTP",submit:"Enviar",close:"Cerrar",invalidOtp:"El código que ingresaste no es válido. Por favor, inténtalo de nuevo.",accountBlocked:"Demasiados intentos de OTP. Su cuenta ha sido bloqueada por una hora.",submissionError:"Algo salió mal. Por favor, inténtelo de nuevo.",otpExpiredMessage:"El código de validación ha expirado, por favor solicite uno nuevo para continuar.",otpDigit:"Dígito OTP",verifying:"Verificando...",otpVerified:"¡OTP verificado exitosamente!"},pt:{popupMessage:"Por favor, insira o código de segurança recebido no seu e-mail para realizar a atualização.",popupMessageLastWarning:"Se a próxima tentativa de validação falhar, será desconectado e temporariamente bloqueado.",minutes:"minutos",errorHeader:"Erro",configError:"Não foi possível carregar os dados do OTP. Tente novamente mais tarde.",otpHeading:"Insira o OTP",resendOtp:"Reenviar OTP",submit:"Enviar",close:"Fechar",invalidOtp:"O código inserido não é válido. Por favor, tente novamente.",accountBlocked:"Muitas tentativas de OTP. Sua conta foi bloqueada por uma hora.",submissionError:"Algo deu errado. Por favor, tente novamente.",otpExpiredMessage:"O código de validação expirou, por favor solicite um novo para continuar.",otpDigit:"Dígito OTP",verifying:"Verificando...",otpVerified:"OTP verificado com sucesso!"},hr:{popupMessage:"Unesite sigurnosni kod primljen na vašu e-mail adresu kako biste izvršili ažuriranje.",popupMessageLastWarning:"Ako sljedeći pokušaj provjere ne uspije, bit ćete odjavljeni i privremeno blokirani.",minutes:"minute",errorHeader:"Greška",configError:"Nije moguće učitati OTP podatke. Pokušajte ponovno kasnije.",otpHeading:"Unesite OTP",resendOtp:"Ponovno pošalji OTP",submit:"Pošalji",close:"Zatvori",invalidOtp:"Uneseni kod nije valjan. Molimo pokušajte ponovo.",accountBlocked:"Previše pokušaja unosa OTP-a. Vaš račun je blokiran na jedan sat.",submissionError:"Nešto je pošlo po zlu. Molimo pokušajte ponovo.",otpExpiredMessage:"Kod za potvrdu je istekao, molimo zatražite novi kako biste nastavili.",otpDigit:"OTP znamenka",verifying:"Provjera...",otpVerified:"OTP uspješno potvrđen!"},de:{popupMessage:"Bitte geben Sie den Sicherheitscode ein, den Sie an Ihre E-Mail-Adresse erhalten haben, um das Update durchzuführen.",popupMessageLastWarning:"Wenn der nächste Validierungsversuch fehlschlägt, werden Sie abgemeldet und vorübergehend gesperrt.",minutes:"Minuten",errorHeader:"Fehler",configError:"OTP-Daten konnten nicht geladen werden. Bitte versuchen Sie es später erneut.",otpHeading:"OTP eingeben",resendOtp:"OTP erneut senden",submit:"Absenden",close:"Schließen",invalidOtp:"Der eingegebene Code ist ungültig. Bitte versuchen Sie es erneut.",accountBlocked:"Zu viele OTP-Versuche. Ihr Konto wurde für eine Stunde gesperrt.",submissionError:"Etwas ist schiefgelaufen. Bitte versuchen Sie es erneut.",otpExpiredMessage:"Der Bestätigungscode ist abgelaufen, bitte fordern Sie einen neuen an, um fortzufahren.",otpDigit:"OTP-Ziffer",verifying:"Wird geprüft...",otpVerified:"OTP erfolgreich verifiziert!"},"es-mx":{popupMessage:"Por favor, ingrese el código de seguridad recibido en su correo electrónico para realizar la actualización.",popupMessageLastWarning:"Si el siguiente intento de validación falla, se cerrará tu sesión y serás bloqueado temporalmente.",minutes:"minutos",errorHeader:"Error",configError:"No se pudieron cargar los datos del OTP. Inténtelo de nuevo más tarde.",otpHeading:"Ingrese OTP",resendOtp:"Reenviar OTP",submit:"Enviar",close:"Cerrar",invalidOtp:"El código que ingresó no es válido. Inténtelo de nuevo.",accountBlocked:"Demasiados intentos de OTP. Su cuenta ha sido bloqueada por una hora.",submissionError:"Algo salió mal. Por favor, inténtelo de nuevo.",otpExpiredMessage:"El código de validación ha expirado, por favor solicite uno nuevo para continuar.",otpDigit:"Dígito OTP",verifying:"Verificando...",otpVerified:"¡OTP verificado exitosamente!"},"pt-br":{popupMessage:"Por favor, digite o código de segurança recebido no seu e-mail para realizar a atualização.",popupMessageLastWarning:"Se a próxima tentativa de validação falhar, você será desconectado e bloqueado temporariamente.",minutes:"minutos",errorHeader:"Erro",configError:"Não foi possível carregar os dados do OTP. Tente novamente mais tarde.",otpHeading:"Digite o OTP",resendOtp:"Reenviar OTP",submit:"Enviar",close:"Fechar",invalidOtp:"O código informado não é válido. Tente novamente.",accountBlocked:"Muitas tentativas de OTP. Sua conta foi bloqueada por uma hora.",submissionError:"Algo deu errado. Por favor, tente novamente.",otpExpiredMessage:"O código de validação expirou, por favor solicite um novo para continuar.",otpDigit:"Dígito OTP",verifying:"Verificando...",otpVerified:"OTP verificado com sucesso!"}},l=e=>new Promise((t=>{fetch(e).then((e=>e.json())).then((e=>{Object.keys(e).forEach((t=>{for(let i in e[t])u[t][i]=e[t][i]})),t(!0)}))})),h=(e,t)=>u[void 0!==t?t:"en"][e],c=class{handleNewTranslations(){l(this.translationUrl)}handleClientStylingChange(e,t){e!==t&&a(this.el,this.clientStyling)}handleClientStylingUrlChange(e,t){e!=t&&this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl)}async handleStepUpAuthEvent(e){var t;if(null===(t=e.detail)||void 0===t?void 0:t["x-step-up-required"]){if(this.hasConfigErrors=!1,this.hasErrors=!1,this.errorMessage="",this.showPopup=!0,this.token=e.detail["x-step-up-token"],this.flow=e.detail.flow,!this.token||!this.flow)return this.isLoading=!1,this.hasConfigErrors=!0,void(this.errorMessage=h("configError",this.language));await this.getConfig()}}handleCloseWidget(){this.countdownTimer&&(clearInterval(this.countdownTimer),this.countdownTimer=null),this.hasErrors=!1,this.hasConfigErrors=!1,this.errorMessage="",this.showPopup=!1,this.isLastWarning=!1}constructor(t){e(this,t),this.otpInputs=[],this.countdownTimer=null,this.expirationTimestamp=0,this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.language="en",this.endpoint=void 0,this.userSession=void 0,this.translationUrl="",this.mode="numeric",this.showPopup=!1,this.otp=void 0,this.isLoading=!0,this.config=null,this.timeLeft=0,this.expirationTime="",this.serverTime="",this.hasErrors=!1,this.hasConfigErrors=!1,this.errorMessage="",this.token="",this.flow="",this.showResendOtp=!1,this.isLastWarning=!1,this.inputDisabled=!1,this.isValidating=!1,this.isSuccess=!1,this.shakeError=!1,this.handleResendOtp=this.handleResendOtp.bind(this),this.submitOtp=this.submitOtp.bind(this),this.handleCloseWidget=this.handleCloseWidget.bind(this),this.manualClosePopup=this.manualClosePopup.bind(this)}async getConfig(){if(this.endpoint)try{const e=new URL(`/api/v1/mfa/challenge/${this.token}/config`,this.endpoint);this.isLoading=!0;const t=await fetch(e.href),i=await t.json();if(t.ok)this.config=i,this.otp=Array(this.config.inputLength).fill(""),this.isLoading=!1,this.isValidating=!1,this.showResendOtp=!1,this.expirationTime=this.config.expirationTime,this.serverTime=this.config.serverTime,0!==this.config.numberOfValidateAttempts&&(this.hasErrors=!0,this.errorMessage=h("invalidOtp",this.language)),this.config.numberOfValidateAttempts===this.config.maxValidationAttempts-1&&(this.isLastWarning=!0),this.calculateTimeLeft(),this.startCountdown();else{if(!i||"gm.twofa.token_max_attempts_exceeded"!==i.details){const e=i&&i.message||`Failed to load config. Status: ${t.status}`;throw new Error(e)}this.handleCloseWidget()}}catch(e){this.isLoading=!1,this.isValidating=!1,this.hasConfigErrors=!0,this.errorMessage=h("configError",this.language),console.error("Error loading 2FA config:",e)}}calculateTimeLeft(){const e=new Date(this.expirationTime),t=new Date(this.serverTime),i=new Date,r=t.getTime()-i.getTime();this.expirationTimestamp=e.getTime()-r;const n=Date.now(),o=Math.max(0,Math.floor((this.expirationTimestamp-n)/1e3));this.timeLeft=o}startCountdown(){this.countdownTimer&&clearInterval(this.countdownTimer),this.countdownTimer=setInterval((()=>{const e=Date.now(),t=Math.max(0,Math.floor((this.expirationTimestamp-e)/1e3));this.timeLeft=t,this.inputDisabled=t<=0,t<=0&&(clearInterval(this.countdownTimer),this.countdownTimer=null,this.showResendOtp=!0,this.hasErrors=!1,this.isLastWarning=!1)}),1e3)}formatTime(e){const t=e%60;return`${Math.floor(e/60).toString().padStart(2,"0")}:${t.toString().padStart(2,"0")}`}setOtpInputRef(e,t){e&&(this.otpInputs[t]=e)}updateOtpState(e,t){const i=[...this.otp];i[e]=t.toUpperCase(),this.otp=i}handleOnPasteOtp(e){var t,i,r;e.preventDefault();const n=((null===(i=null===(t=e.clipboardData)||void 0===t?void 0:t.getData("text"))||void 0===i?void 0:i.trim())||"").slice(0,this.config.inputLength).split("");this.otp=[...n,...Array(this.config.inputLength-n.length).fill("")],null===(r=this.otpInputs[n.length])||void 0===r||r.focus(),n.length===this.config.inputLength&&this.submitOtp()}handleOtpInput(e,t){const i=e.target,r=i.value;if(/^[a-z0-9]$/i.test(r)){this.updateOtpState(t,r);const e=this.otpInputs[t+1];null==e||e.focus()}i.value=""}handleKeyDown(e,t){const i=e.key,r=e.ctrlKey||e.metaKey;if(/^[a-z0-9]$/i.test(i)){if(r&&"v"===i.toLowerCase())return;e.preventDefault(),this.updateOtpState(t,i);const n=this.otpInputs[t+1];null==n||n.focus()}else if("Backspace"===i){e.preventDefault(),""!==this.otp[t]&&this.updateOtpState(t,"");const i=this.otpInputs[t-1];null==i||i.focus()}}handleResendOtp(){const e=new CustomEvent("otpResendRequested");window.dispatchEvent(e)}async submitOtp(){if(this.otp.join("").length!==this.config.inputLength)return this.hasErrors=!0,this.errorMessage=h("invalidOtp",this.language),void this.triggerShakeAnimation();if(this.timeLeft<=0)return this.hasErrors=!0,this.errorMessage=h("otpExpiredMessage",this.language),this.triggerShakeAnimation(),void await this.getConfig();this.isLoading=!0,this.isValidating=!0,this.hasErrors=!1,this.errorMessage="";const e=this.otp.join("");"stateless"===this.flow&&this.handleOtpStateless(e),"stateful"===this.flow&&await this.handleOtpStateful(e)}handleOtpStateless(e){window.dispatchEvent(new CustomEvent("otpSubmitted",{detail:{code:e,maxAttempts:this.config.maxValidationAttempts,validatedAttempts:this.config.numberOfValidateAttempts}}))}async handleOtpStateful(e){const t=new URL(`/api/v1/mfa/challenge/${this.token}/validate`,this.endpoint);t.searchParams.append("input",e);try{const e=await fetch(t.href,{method:"POST"});if(200===e.status)return void this.handleSuccess();const i=(await e.json()).message||"";if(i.toLowerCase().includes("expired"))return this.hasErrors=!0,this.errorMessage=h("otpExpiredMessage",this.language),this.triggerShakeAnimation(),void await this.getConfig();throw new Error(i)}catch(e){if("gm.multifactorauthentication.challenge_internal_server_error"===e.message||"gm.multifactorauthentication.internal_server_error"===e.message)return this.config.numberOfValidateAttempts===this.config.maxValidationAttempts-1?(window.dispatchEvent(new CustomEvent("otpSetTimeout")),window.postMessage({type:"WidgetNotification",data:{type:"error",message:h("accountBlocked",this.language)}},window.location.href),void this.handleCloseWidget()):(this.hasErrors=!0,this.errorMessage=h("invalidOtp",this.language),this.triggerShakeAnimation(),void this.getConfig());console.error("OTP submission failed:",e),this.hasErrors=!0,this.errorMessage=h("submissionError",this.language),this.triggerShakeAnimation()}finally{this.isLoading=!1,this.isValidating=!1}}async handleSuccess(){this.isSuccess=!0,await new Promise((e=>setTimeout(e,1200))),window.dispatchEvent(new CustomEvent("otpSuccess",{detail:{message:"User successfully authenticated"}})),this.handleCloseWidget()}triggerShakeAnimation(){this.shakeError=!0,setTimeout((()=>{this.shakeError=!1}),650)}manualClosePopup(){window.dispatchEvent(new CustomEvent("manualClosePopup")),this.handleCloseWidget()}disconnectedCallback(){var e;this.countdownTimer&&clearInterval(this.countdownTimer),null===(e=this.stylingSubscription)||void 0===e||e.unsubscribe()}async componentWillLoad(){this.translationUrl.length>2&&await l(this.translationUrl)}componentDidLoad(){this.stylingContainer&&(null!=window.emMessageBuss?d(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription):(this.clientStyling&&a(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl)))}render(){return t("div",{key:"fda28b7364d091f4a13bfea34e5687756cb00b39",ref:e=>this.stylingContainer=e},this.showPopup&&t("div",{key:"0166357e829d1f6bc35b88ce1605ca72a691f447",class:"OtpPopupOverlay"},t("div",{key:"4c616fdeb7d5624a972865e93b0e84778e668995",class:"OtpPopupContent "+(this.shakeError?"shake":"")},this.isLoading?t("div",{class:"OtpLoaderContainer"},t("span",{class:"OtpLoader"})):this.hasConfigErrors?t("div",{class:"OtpError"},t("div",{class:"OtpErrorHeader"},t("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},t("path",{d:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"})),t("h2",null,h("errorHeader",this.language))),t("p",null,this.errorMessage),t("button",{class:"OtpButton error",onClick:this.manualClosePopup,"aria-label":h("close",this.language)},h("close",this.language))):t(i,null,t("div",{class:"otp-description"},this.showResendOtp?t("p",{class:"OtpNoticeMessage",role:"alert"},h("otpExpiredMessage",this.language)):t(i,null,t("p",{class:this.isLastWarning?"LastWarningMessage":""},h(this.isLastWarning?"popupMessageLastWarning":"popupMessage",this.language)),this.hasErrors&&t("p",{class:"OtpErrorMessage",role:"alert"},this.errorMessage))),t("div",{class:"OtpFieldWrapper"},t("h2",null,h("otpHeading",this.language)),t("div",{class:"OtpField"},this.otp.map(((e,i)=>t("input",{key:i,ref:e=>this.setOtpInputRef(e,i),id:`otp-input-${i}`,type:"text",inputmode:this.mode,pattern:"numeric"===this.mode?"[0-9]":void 0,class:`otp-box ${this.config.inputLength%2==0&&i===this.config.inputLength/2-1?"space":""} ${e?"filled":""} ${this.hasErrors?"error":""}`,maxLength:1,value:e,onInput:e=>this.handleOtpInput(e,i),onKeyDown:e=>this.handleKeyDown(e,i),onPaste:e=>this.handleOnPasteOtp(e),disabled:this.inputDisabled,autoComplete:"off","aria-label":`${h("otpDigit",this.language)} ${i+1}`,"aria-invalid":this.hasErrors})))),t("div",{class:"OtpTimerContainer"},t("div",{class:`OtpTimer ${this.isLastWarning?"warning":""} ${this.timeLeft<60?"critical":""}`,role:"timer","aria-live":"polite"},t("svg",{class:"timer-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},t("path",{d:"M256 0a256 256 0 1 1 0 512A256 256 0 1 1 256 0zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"})),t("span",{class:"timer-text"},this.formatTime(this.timeLeft)," ",h("minutes",this.language))))),this.isSuccess&&t("div",{class:"OtpSuccessOverlay"},t("svg",{class:"success-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},t("path",{d:"M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"})),t("span",null,h("otpVerified",this.language))),t("div",{class:"OtpActionButtons"},this.showResendOtp?t("button",{class:"OtpButton primary",onClick:this.handleResendOtp,disabled:this.isLoading,"aria-label":h("resendOtp",this.language)},h("resendOtp",this.language)):t("button",{class:"OtpButton primary "+(this.isValidating?"loading":""),onClick:this.submitOtp,disabled:this.otp.join("").length!==this.config.inputLength||this.isValidating||this.isLoading,"aria-label":h("submit",this.language),"aria-busy":this.isValidating},this.isValidating?t(i,null,t("span",{class:"button-spinner"}),t("span",{class:"button-text"},h("verifying",this.language))):t("span",{class:"button-text"},h("submit",this.language))),t("button",{class:"OtpButton secondary",onClick:this.manualClosePopup,disabled:this.isValidating,"aria-label":h("close",this.language)},h("close",this.language)))))))}get el(){return r(this)}static get watchers(){return{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}}};c.style=".OtpPopupOverlay{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--emw--color-overlay, rgba(0, 0, 0, 0.5));display:flex;align-items:center;justify-content:center}.OtpButton{font-family:var(--emw--button-typography);border:var(--emw--button-border, none);border-radius:var(--emw--button-border-radius, 3px);border-color:var(--emw--button-border-color);background-color:var(--emw--button-background-color, var(--emw--color-primary, #007bff));color:var(--emw--button-typography, var(--emw--color-white, #fff));padding:10px 20px;cursor:pointer;font-size:16px}.OtpButton.error{background:var(--emw--color-error, #dd3434)}.OtpPopupContent{position:relative;background:var(--emw--color-white, #fff);padding:20px;border-radius:5px;text-align:center;min-width:25%;min-height:200px;display:flex;flex-direction:column;justify-content:center;gap:20px}.OtpPopupContent .OtpError{display:flex;flex-direction:column;gap:20px;align-items:center}.OtpPopupContent .OtpError .OtpErrorHeader{display:flex;justify-content:center;gap:5px}.OtpPopupContent .OtpError h2{margin:0}.OtpPopupContent .OtpError svg{width:25px;fill:var(--emw--color-error, #dd3434)}.OtpFieldWrapper{display:flex;flex-direction:column;gap:10px}.OtpFieldWrapper h2{margin:0}.OtpField{display:flex;justify-content:center}.OtpField input{width:24px;font-size:32px;padding:10px;text-align:center;border-radius:5px;margin:2px;border:2px solid var(--emw--otp-border-color, #55525c);font-weight:bold;outline:none;transition:all 0.1s}.OtpField input.space{margin-right:1rem !important}.OtpField input:focus{border:2px solid var(--emw--color-primary, #007bff);box-shadow:0 0 2px 2px var(--emw--color-primary, #007bff)}.OtpActionButtons{display:flex;justify-content:space-between}.OtpErrorMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpLoaderContainer{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.OtpLoader{width:48px;height:48px;border:5px solid var(--emw--color-secondary, #b3d8ff);border-bottom-color:var(--emw--color-primary, #007bff);border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotation 1s linear infinite}.OtpSuccessOverlay{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(var(--emw--color-green-rgb, 255, 255, 255), 0.95);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;z-index:10}@keyframes rotation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";const p=["ro","en","fr","hr","en-us","es-mx","pt-br","es","de","pt","tr"],f={en:{Deposit:"Deposit",Withdraw:"Withdraw",denyDeposit:"Please be informed that currently you are not allowed to initiate deposit transactions.",denyWithdrawal:"Please be informed that currently you are not allowed to initiate withdrawal transactions.",notFoundErrorCode:"Not found error code",errorCode21121:"Dear Player! Please be informed that currently you are allowed to initiate only withdrawal transactions from your player account. Error Code: 21121",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 deposit transactions.",denyWithdrawal:"Please be informed that currently you are not allowed to initiate withdrawal transactions.",notFoundErrorCode:"Not found error code",errorCode21121:"Dear Player! Please be informed that currently you are allowed to initiate only withdrawal transactions from your player account. Error Code: 21121",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",errorCode21121:"Caro jogador! Informamos que de momento só pode iniciar transações de levantamento na sua conta. Código de erro: 21121",errorCode21122:"Caro jogador! Informamos que atualmente não tem permissão para iniciar uma transação de levantamento na sua conta de jogador. Código de erro: 21122",errorCode21123:"Caro jogador! Informamos que atualmente não tem permissão para realizar um depósito na sua conta de jogador. Código de erro: 21123"},"es-mx":{Deposit:"Depósito",Withdraw:"Retiro",denyDeposit:"Le informamos que actualmente no tiene permitido iniciar transacciones de depósito.",denyWithdrawal:"Le informamos que actualmente no tiene permitido iniciar transacciones de retiro.",notFoundErrorCode:"Código de error no encontrado",errorCode21122:"¡Estimado jugador! Le informamos que actualmente no tiene permitido iniciar una transacción de retiro desde su cuenta de jugador. Código de error: 21122",errorCode21123:"¡Estimado jugador! Le informamos que actualmente no tiene permitido realizar un depósito en su cuenta de jugador. Código de error: 21123"},"pt-br":{Deposit:"Depósito",Withdraw:"Saque",denyDeposit:"Informamos que atualmente você não tem permissão para iniciar transações de depósito.",denyWithdrawal:"Informamos que atualmente você não tem permissão para iniciar transações de saque.",notFoundErrorCode:"Código de erro não encontrado",errorCode21122:"Caro jogador! Informamos que atualmente você não tem permissão para iniciar uma transação de saque em sua conta de jogador. Código de erro: 21122",errorCode21123:"Caro jogador! Informamos que atualmente você não tem permissão para realizar um depósito em sua conta de jogador. Código de erro: 21123"},tr:{Deposit:"Para Yatırma",Withdraw:"Para Çekme",denyDeposit:"Lütfen şu anda para yatırma işlemi başlatamayacağınızı bilgilerinize sunarız.",denyWithdrawal:"Lütfen şu anda para çekme işlemi başlatamayacağınızı bilgilerinize sunarız.",notFoundErrorCode:"Hata kodu bulunamadı",errorCode21122:"Değerli oyuncumuz! Lütfen şu anda oyuncu hesabınızdan para çekme işlemi başlatamayacağınızı bilgilerinize sunarız. Hata Kodu: 21122",errorCode21123:"Değerli oyuncumuz! Lütfen şu anda oyuncu hesabınıza para yatırma işlemi yapamayacağınızı bilgilerinize sunarız. Hata Kodu: 21123"}},m=e=>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)}))})),g=(e,t)=>{const i=t;return f[void 0!==i&&p.includes(i)?i:"en"][e]};var v="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},w={exports:{}};w.exports=function(){var e=6e4,t=36e5,i="millisecond",r="second",n="minute",o="hour",a="day",s="week",d="month",u="quarter",l="year",h="date",c="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={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(e){var t=["th","st","nd","rd"],i=e%100;return"["+e+(t[(i-20)%10]||t[i]||t[0])+"]"}},g=function(e,t,i){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(i)+e},v={s:g,z:function(e){var t=-e.utcOffset(),i=Math.abs(t),r=Math.floor(i/60),n=i%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(n,2,"0")},m:function e(t,i){if(t.date()<i.date())return-e(i,t);var r=12*(i.year()-t.year())+(i.month()-t.month()),n=t.clone().add(r,d),o=i-n<0,a=t.clone().add(r+(o?-1:1),d);return+(-(r+(i-n)/(o?n-a:a-n))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:d,y:l,w:s,d:a,D:h,h:o,m:n,s:r,ms:i,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},w="en",y={};y[w]=m;var b="$isDayjsObject",O=function(e){return e instanceof T||!(!e||!e[b])},S=function e(t,i,r){var n;if(!t)return w;if("string"==typeof t){var o=t.toLowerCase();y[o]&&(n=o),i&&(y[o]=i,n=o);var a=t.split("-");if(!n&&a.length>1)return e(a[0])}else{var s=t.name;y[s]=t,n=s}return!r&&n&&(w=n),n||!r&&w},C=function(e,t){if(O(e))return e.clone();var i="object"==typeof t?t:{};return i.date=e,i.args=arguments,new T(i)},E=v;E.l=S,E.i=O,E.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var T=function(){function m(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[b]=!0}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,i=e.utc;if(null===t)return new Date(NaN);if(E.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var n=r[2]-1||0,o=(r[7]||"0").substring(0,3);return i?new Date(Date.UTC(r[1],n,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],n,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.init()},g.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()},g.$utils=function(){return E},g.isValid=function(){return!(this.$d.toString()===c)},g.isSame=function(e,t){var i=C(e);return this.startOf(t)<=i&&i<=this.endOf(t)},g.isAfter=function(e,t){return C(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<C(e)},g.$g=function(e,t,i){return E.u(e)?this[t]:this.set(i,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var i=this,u=!!E.u(t)||t,c=E.p(e),p=function(e,t){var r=E.w(i.$u?Date.UTC(i.$y,t,e):new Date(i.$y,t,e),i);return u?r:r.endOf(a)},f=function(e,t){return E.w(i.toDate()[e].apply(i.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),i)},m=this.$W,g=this.$M,v=this.$D,w="set"+(this.$u?"UTC":"");switch(c){case l:return u?p(1,0):p(31,11);case d:return u?p(1,g):p(0,g+1);case s:var y=this.$locale().weekStart||0,b=(m<y?m+7:m)-y;return p(u?v-b:v+(6-b),g);case a:case h:return f(w+"Hours",0);case o:return f(w+"Minutes",1);case n:return f(w+"Seconds",2);case r:return f(w+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var s,u=E.p(e),c="set"+(this.$u?"UTC":""),p=(s={},s[a]=c+"Date",s[h]=c+"Date",s[d]=c+"Month",s[l]=c+"FullYear",s[o]=c+"Hours",s[n]=c+"Minutes",s[r]=c+"Seconds",s[i]=c+"Milliseconds",s)[u],f=u===a?this.$D+(t-this.$W):t;if(u===d||u===l){var m=this.clone().set(h,1);m.$d[p](f),m.init(),this.$d=m.set(h,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](f);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[E.p(e)]()},g.add=function(i,u){var h,c=this;i=Number(i);var p=E.p(u),f=function(e){var t=C(c);return E.w(t.date(t.date()+Math.round(e*i)),c)};if(p===d)return this.set(d,this.$M+i);if(p===l)return this.set(l,this.$y+i);if(p===a)return f(1);if(p===s)return f(7);var m=(h={},h[n]=e,h[o]=t,h[r]=1e3,h)[p]||1,g=this.$d.getTime()+i*m;return E.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,i=this.$locale();if(!this.isValid())return i.invalidDate||c;var r=e||"YYYY-MM-DDTHH:mm:ssZ",n=E.z(this),o=this.$H,a=this.$m,s=this.$M,d=i.weekdays,u=i.months,l=function(e,i,n,o){return e&&(e[i]||e(t,r))||n[i].slice(0,o)},h=function(e){return E.s(o%12||12,e,"0")},p=i.meridiem||function(e,t,i){var r=e<12?"AM":"PM";return i?r.toLowerCase():r};return r.replace(f,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return E.s(t.$y,4,"0");case"M":return s+1;case"MM":return E.s(s+1,2,"0");case"MMM":return l(i.monthsShort,s,u,3);case"MMMM":return l(u,s);case"D":return t.$D;case"DD":return E.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return l(i.weekdaysMin,t.$W,d,2);case"ddd":return l(i.weekdaysShort,t.$W,d,3);case"dddd":return d[t.$W];case"H":return String(o);case"HH":return E.s(o,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return p(o,a,!0);case"A":return p(o,a,!1);case"m":return String(a);case"mm":return E.s(a,2,"0");case"s":return String(t.$s);case"ss":return E.s(t.$s,2,"0");case"SSS":return E.s(t.$ms,3,"0");case"Z":return n}return null}(e)||n.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(i,h,c){var p,f=this,m=E.p(h),g=C(i),v=(g.utcOffset()-this.utcOffset())*e,w=this-g,y=function(){return E.m(f,g)};switch(m){case l:p=y()/12;break;case d:p=y();break;case u:p=y()/3;break;case s:p=(w-v)/6048e5;break;case a:p=(w-v)/864e5;break;case o:p=w/t;break;case n:p=w/e;break;case r:p=w/1e3;break;default:p=w}return c?p:E.a(p)},g.daysInMonth=function(){return this.endOf(d).$D},g.$locale=function(){return y[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var i=this.clone(),r=S(e,t,!0);return r&&(i.$L=r),i},g.clone=function(){return E.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},m}(),k=T.prototype;return C.prototype=k,[["$ms",i],["$s",r],["$m",n],["$H",o],["$W",a],["$M",d],["$y",l],["$D",h]].forEach((function(e){k[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),C.extend=function(e,t){return e.$i||(e(t,T,C),e.$i=!0),C},C.locale=S,C.isDayjs=O,C.unix=function(e){return C(1e3*e)},C.en=y[w],C.Ls=y,C.p={},C}();const y=w.exports;var b,O,S,C={exports:{}};C.exports=(b="minute",O=/[+-]\d\d(?::?\d\d)?/g,S=/([+-]|\d\d)/g,function(e,t,i){var r=t.prototype;i.utc=function(e){return new t({date:e,utc:!0,args:arguments})},r.utc=function(e){var t=i(this.toDate(),{locale:this.$L,utc:!0});return e?t.add(this.utcOffset(),b):t},r.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var n=r.parse;r.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),n.call(this,e)};var o=r.init;r.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else o.call(this)};var a=r.utcOffset;r.utcOffset=function(e,t){var i=this.$utils().u;if(i(e))return this.$u?0:i(this.$offset)?a.call(this):this.$offset;if("string"==typeof e&&(e=function(e){void 0===e&&(e="");var t=e.match(O);if(!t)return null;var i=(""+t[0]).match(S)||["-",0,0],r=60*+i[1]+ +i[2];return 0===r?0:"+"===i[0]?r:-r}(e),null===e))return this;var r=Math.abs(e)<=16?60*e:e,n=this;if(t)return n.$offset=r,n.$u=0===e,n;if(0!==e){var o=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(n=this.local().add(r+o,b)).$offset=r,n.$x.$localOffset=o}else n=this.utc();return n};var s=r.format;r.format=function(e){return s.call(this,e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":""))},r.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},r.isUTC=function(){return!!this.$u},r.toISOString=function(){return this.toDate().toISOString()},r.toString=function(){return this.toDate().toUTCString()};var d=r.toDate;r.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var u=r.diff;r.diff=function(e,t,r){if(e&&this.$u===e.$u)return u.call(this,e,t,r);var n=this.local(),o=i(e).local();return u.call(n,o,t,r)}});const E=C.exports;var T,k,P={exports:{}};
2
2
  /** @license
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,u=e.Promise,d=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=d;d=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 u=e[s];0!==o&&(u<128||u>191||!t(a<<6|63&u,o-6,i(o,a)))&&(o=0,a=r,n+=String.fromCharCode(a)),0===o?(u>=0&&u<=127?(o=0,a=u):u>=192&&u<=223?(o=6,a=31&u):u>=224&&u<=239?(o=12,a=15&u):u>=240&&u<=247?(o=18,a=7&u):(o=0,a=r),0===o||t(a,o,i(o,a))||(o=0,a=r)):(o-=6,a=a<<6|63&u),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,u=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!==u&&(i(u),u=0),e||(o.readyState=4,o.onabort(null),o.onreadystatechange())),s=0};var d=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(d(),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!==u&&(i(u),u=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(){u=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&&d())}(e)}),!("contentType"in a)&&"ontimeout"in r.prototype||(n+=(-1===n.indexOf("?")?"?":"&")+"padding=true"),a.open(e,n,!0),"readyState"in a&&(u=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 u=0;for(var d in e.onprogress=function(){var t=e.responseText.slice(u);u+=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,d)&&e.setRequestHeader(d,s[d]);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 d(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 u((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),u=a.lastEventIdQueryParameterName||"lastEventId",d=W(1e3),l=j(a.heartbeatTimeout,45e3),h="",c=d,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=d,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)(u=r.charCodeAt(o))!=="\n".charCodeAt(0)&&u!=="\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 u=a.charCodeAt(s);if(-1===F&&u==="\n".charCodeAt(0))F=0;else if(-1===F&&(F=0),u==="\r".charCodeAt(0)||u==="\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?(d=j(v,d),c=d):"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=u==="\r".charCodeAt(0)?-1:0}else 0===F&&(B=s,F=1),1===F?u===":".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*d,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===u?"":e})),i+=(-1===o.indexOf("?")?"?":"&")+u+"="+encodeURIComponent(h)}var n=e.withCredentials,a={Accept:"text/event-stream"},s=e.headers;if(null!=s)for(var d in s)Object.prototype.hasOwnProperty.call(s,d)&&(a[d]=s[d]);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!=d&&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","100003","100007","100020","100102","100103","11010","11020","11100","11204","11408","11505","11506","11601","11704","11754","11755","11772","11776","11778","11779","11780","11781","11802","12006","12126","12127","12135","12136","12137","12138","12139","12140","12502","12503","13501","13502","13503","13504","13505","13506","13507","13550","13555","13573","13575","14006","14007","14008","14009","14010","14011","21050","21051","21052","21054","21056","21070","21073","21074","21077","21079","21082","21083","21104","21105","21108","21116","21117","21202","21289","21292","21293","21294","21295","21296","21297","21298","21299","21301","21302","21303","21304","21305","21306","21307","21308","22007","22011","22012","22013","22014","22015","22016","22017","22018","22021","22022","22023","22024","23601","29107","30100","40003","40004","50000","50001","50002","50003","50004","50005","50006","50007","50008","50009","50010","50011","50012","50013","50014","50015","50100","50101","50102","50103","50104","50105","50106"],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.showApiErrorMessage=!1,this.dynamicHeight=void 0,this.cashierInfoUrl=void 0,this.errorMessage="",this.errorFromApi=!1}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?u(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:"338fa8bd00485e7d7c1a92ddbc7622e4eb6bd020"},this.enableStepUpAuth&&t("player-step-up-auth",{key:"b0076f39d95d35b3cae6d6bb0a039feb39764f47",endpoint:this.endpoint,userSession:this.session,language:this.language,"client-styling-url":this.clientStylingUrl,"translation-url":this.translationUrl}),t("div",{key:"00f02636ed279a41dd203bdaea54f41eacaa8f86",ref:e=>this.stylingContainer=e,class:""},t("div",{key:"120c160a3f0729e5aae360e9fc7b99e33c93e01c",class:"DepositWithdrawalWrapper "+(this.isShortCashier?"ShortCashier":"")},!(this.isMobile&&!this.isShortCashier)&&t("h2",{key:"664216161b01c6e49bc36b738eb02ae622eeda09",class:"CategoryTitle"},m("Withdraw"===this.typeParameter?"Withdraw":"Deposit",this.language)),t("div",{key:"f57113548723235044ac51485b37e2e9b6e3ee4c",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}):this.errorFromApi?t("h3",{class:"ErrorMessage"},this.errorMessage):t("h3",{innerHTML:this.errorMessage||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)}),r=await i.json();if(!i.ok&&(console.error(r),!this.showApiErrorMessage))return;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;const i=t?m(`errorCode${t}`,this.language):void 0;i?e=i:this.showApiErrorMessage?(e=r.ResponseMessage,this.errorFromApi=!0):e=m("notFoundErrorCode",this.language)}else e=m("deposit"===this.type?"denyDeposit":"denyWithdrawal",this.language);this.showApiErrorMessage&&(this.errorMessage=e),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
+ */T=P,k=P.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 g=function(){};function v(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=g,this.onload=g,this.onerror=g,this.onreadystatechange=g,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=g}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 C(){this._listeners=Object.create(null)}function E(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}v.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=g,a.onerror=g,a.onabort=g,a.onprogress=g,a.onreadystatechange=g,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:g}),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))},v.prototype.abort=function(){this._abort(!1)},v.prototype.getResponseHeader=function(){return this._contentType},v.prototype.setRequestHeader=function(e,t){var i=this._xhr;"setRequestHeader"in i&&i.setRequestHeader(e,t)},v.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},v.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()}}},C.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){E(e)}}},C.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)},C.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){E(e)}};function H(e,o){C.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||{},g=a.Transport,w=A&&null==g?void 0:new v(null!=g?new g:null!=r&&"withCredentials"in r.prototype||null==n?new r:new n),y=null!=g&&"string"!=typeof g?new g:null==w?new S:new b,O=void 0,C=0,E=-1,T="",k="",P="",H="",F=0,B=0,I=0,R=function(t,i,r,n){if(0===E)if(200===t&&null!=r&&z.test(r)){E=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===E){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),g=a.slice(I+(I<s&&a.charCodeAt(I)===" ".charCodeAt(0)?1:0),s);"data"===m?(T+="\n",T+=g):"id"===m?k=g:"event"===m?P=g:"retry"===m?(u=j(g,u),c=u):"heartbeatTimeout"===m&&(l=j(g,l),0!==C&&(i(C),C=t((function(){$()}),l)))}if(0===F){if(""!==T){h=k,""===P&&(P="message");var v=new M(P,{data:T.slice(1),lastEventId:k});if(e.dispatchEvent(v),"open"===P?L(e,e.onopen,v):"message"===P?L(e,e.onmessage,v):"error"===P&&L(e,e.onerror,v),2===E)return}T="",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===E||0===E){E=-1,0!==C&&(i(C),C=0),C=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(){E=2,null!=O&&(O.abort(),O=void 0),0!==C&&(i(C),C=0),e.readyState=2},$=function(){if(C=0,-1===E){p=!1,f=0,C=t((function(){$()}),l),E=0,T="",P="",k=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,C=t((function(){$()}),c)}else V(new Error("No activity within "+l+" milliseconds. "+(0===E?"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(C.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&&(T.exports=F)}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:v:globalThis);const M="user-deposit-withdrawal",x=["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"],D="TWO_FACTOR_AUTH_NOTIFICATION",z="MMFE:setQuickDepositHeight",j="MMFE:setIFrameHeight",W="MMFE:selectedPaymentMethod",L="MMFE:proceedPayment",H="MMFE:cancelPayment",A="MMFE:ResetOTP",F=()=>{},B={PROCEED:{[L]:"true"},CANCEL:{[H]:"true"},RESET:{[A]:"true"},PROCEED_FALSE:{[L]:"false"}};y.extend(E);const I=class{constructor(t){var i;e(this,t),this.errorMessageKey=null,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","100003","100007","100020","100102","100103","11010","11020","11100","11204","11408","11505","11506","11601","11704","11754","11755","11772","11776","11778","11779","11780","11781","11802","12006","12126","12127","12135","12136","12137","12138","12139","12140","12502","12503","13501","13502","13503","13504","13505","13506","13507","13550","13555","13573","13575","14006","14007","14008","14009","14010","14011","21050","21051","21052","21054","21056","21070","21073","21074","21077","21079","21082","21083","21104","21105","21108","21116","21117","21202","21289","21292","21293","21294","21295","21296","21297","21298","21299","21301","21302","21303","21304","21305","21306","21307","21308","22007","22011","22012","22013","22014","22015","22016","22017","22018","22021","22022","22023","22024","23601","29107","30100","40003","40004","50000","50001","50002","50003","50004","50005","50006","50007","50008","50009","50010","50011","50012","50013","50014","50015","50100","50101","50102","50103","50104","50105","50106"],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=F,this.forwardCashierRedirects=!1,this.enableStepUpAuth=!1,this.showApiErrorMessage=!1,this.dynamicHeight=void 0,this.cashierInfoUrl=void 0,this.errorMessage="",this.errorFromApi=!1}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)}handleLanguageChange(e,t){e!==t&&this.errorMessageKey&&(this.errorMessage=g(this.errorMessageKey,e))}async handleTranslationUrlChange(e,t){e&&e!==t&&(await m(e),this.errorMessageKey&&(this.errorMessage=g(this.errorMessageKey,this.language)))}async componentWillLoad(){this.translationUrl&&await m(this.translationUrl),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:"c81d1d4ee68c09136853e395106baedbb49b4db5"},this.enableStepUpAuth&&t("player-step-up-auth",{key:"ddad8ca99ed6b1012a48dcf3ec00eaf66842e17c",endpoint:this.endpoint,userSession:this.session,language:this.language,"client-styling-url":this.clientStylingUrl,"translation-url":this.translationUrl}),t("div",{key:"eeaeed0b00a1e130792b8871d130bfbcb9c9876c",ref:e=>this.stylingContainer=e,class:""},t("div",{key:"e792348abc087994792e6c9f8cbd0f4487477e8f",class:"DepositWithdrawalWrapper "+(this.isShortCashier?"ShortCashier":"")},!(this.isMobile&&!this.isShortCashier)&&t("h2",{key:"b1cf66df335ea3f764063cfbab14f461db12e644",class:"CategoryTitle"},g("Withdraw"===this.typeParameter?"Withdraw":"Deposit",this.language)),t("div",{key:"4d7e164ec587b9c43fc77c02666bdeb775e98e46",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"},g("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}):this.errorFromApi?t("h3",{class:"ErrorMessage"},this.errorMessage):t("h3",{innerHTML:this.errorMessage||g("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":y.utc().format("YYYY-MM-DD HH:mm:ss.SSS")},body:JSON.stringify(e)}),r=await i.json();if(!i.ok&&(console.error(r),!this.showApiErrorMessage))return;if(r.CashierInfo)this.cashierInfoUrl=r.CashierInfo.Url;else{let e,t=null;if(r.ResponseMessage){let i=this.errorCodes.find((e=>r.ResponseMessage.includes(e)))||null;const n=i?g(`errorCode${i}`,this.language):void 0;n?(e=n,t=`errorCode${i}`):this.showApiErrorMessage?(e=r.ResponseMessage,this.errorFromApi=!0):(e=g("notFoundErrorCode",this.language),t="notFoundErrorCode")}else t="deposit"===this.type?"denyDeposit":"denyWithdrawal",e=g(t,this.language);this.showApiErrorMessage&&(this.errorMessageKey=t,this.errorMessage=e),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)&&x.includes(e.type)?e.type:"string"==typeof(null==e?void 0:e.redirect)&&x.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[z]&&this.isShortCashier&&(this.dynamicHeight=e[z].toString()+"px"),e[j]&&(this.dynamicHeight=e[j].toString()+"px"),e[W]){const t=e[W];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:`${M}: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:`${M}:${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!==P.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 P.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===D){const{body:{challengeId:e}={}}=t;e?this.triggerStepUpAuth(e):console.error(`${D} 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(B.PROCEED),this.closeSSEStream())}handleManualClosePopup(){this.enableStepUpAuth&&(this.sendMessageToCashier(B.CANCEL),this.closeSSEStream())}handleOtpResendRequested(){this.enableStepUpAuth&&(window.dispatchEvent(new CustomEvent("closePopup")),this.sendMessageToCashier(B.RESET))}handleOtpSetTimeout(){this.enableStepUpAuth&&this.sendMessageToCashier(B.PROCEED_FALSE)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"],language:["handleLanguageChange"],translationUrl:["handleTranslationUrlChange"],enableStepUpAuth:["handleEnableStepUpAuthChange"]}}};I.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,I as user_deposit_withdrawal}
@@ -1 +1 @@
1
- import{p as e,b as t}from"./index-2ff63899.js";export{s as setNonce}from"./index-2ff63899.js";import{g as n}from"./app-globals-0f993ce5.js";(()=>{const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),e(n)})().then((async e=>(await n(),t([["player-step-up-auth_2",[[1,"user-deposit-withdrawal",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],endpoint:[513],type:[513],channel:[513],language:[513],productType:[513,"product-type"],userId:[513,"user-id"],session:[513],successUrl:[513,"success-url"],cancelUrl:[513,"cancel-url"],failUrl:[513,"fail-url"],sportsUrl:[513,"sports-url"],casinoUrl:[513,"casino-url"],contactUrl:[513,"contact-url"],depositUrl:[513,"deposit-url"],currency:[513],showBonusSelectionInput:[513,"show-bonus-selection-input"],isShortCashier:[516,"is-short-cashier"],homeUrl:[513,"home-url"],beforeRedirect:[16],forwardCashierRedirects:[516,"forward-cashier-redirects"],enableStepUpAuth:[516,"enable-step-up-auth"],showApiErrorMessage:[516,"show-api-error-message"],dynamicHeight:[32],cashierInfoUrl:[32],errorMessage:[32],errorFromApi:[32]},[[8,"otpSuccess","handleOtpSuccess"],[8,"manualClosePopup","handleManualClosePopup"],[8,"otpResendRequested","handleOtpResendRequested"],[8,"otpSetTimeout","handleOtpSetTimeout"]],{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"],enableStepUpAuth:["handleEnableStepUpAuthChange"]}],[1,"player-step-up-auth",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],language:[513],endpoint:[513],userSession:[513,"user-session"],translationUrl:[513,"translation-url"],mode:[513],showPopup:[32],otp:[32],isLoading:[32],config:[32],timeLeft:[32],expirationTime:[32],serverTime:[32],hasErrors:[32],hasConfigErrors:[32],errorMessage:[32],token:[32],flow:[32],showResendOtp:[32],isLastWarning:[32],inputDisabled:[32],isValidating:[32],isSuccess:[32],shakeError:[32]},[[8,"stepUpAuthRequired","handleStepUpAuthEvent"],[8,"closePopup","handleCloseWidget"]],{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}]]]],e))));
1
+ import{p as e,b as n}from"./index-2ff63899.js";export{s as setNonce}from"./index-2ff63899.js";import{g as t}from"./app-globals-0f993ce5.js";(()=>{const n=import.meta.url,t={};return""!==n&&(t.resourcesUrl=new URL(".",n).href),e(t)})().then((async e=>(await t(),n([["player-step-up-auth_2",[[1,"user-deposit-withdrawal",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],translationUrl:[513,"translation-url"],endpoint:[513],type:[513],channel:[513],language:[513],productType:[513,"product-type"],userId:[513,"user-id"],session:[513],successUrl:[513,"success-url"],cancelUrl:[513,"cancel-url"],failUrl:[513,"fail-url"],sportsUrl:[513,"sports-url"],casinoUrl:[513,"casino-url"],contactUrl:[513,"contact-url"],depositUrl:[513,"deposit-url"],currency:[513],showBonusSelectionInput:[513,"show-bonus-selection-input"],isShortCashier:[516,"is-short-cashier"],homeUrl:[513,"home-url"],beforeRedirect:[16],forwardCashierRedirects:[516,"forward-cashier-redirects"],enableStepUpAuth:[516,"enable-step-up-auth"],showApiErrorMessage:[516,"show-api-error-message"],dynamicHeight:[32],cashierInfoUrl:[32],errorMessage:[32],errorFromApi:[32]},[[8,"otpSuccess","handleOtpSuccess"],[8,"manualClosePopup","handleManualClosePopup"],[8,"otpResendRequested","handleOtpResendRequested"],[8,"otpSetTimeout","handleOtpSetTimeout"]],{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"],language:["handleLanguageChange"],translationUrl:["handleTranslationUrlChange"],enableStepUpAuth:["handleEnableStepUpAuthChange"]}],[1,"player-step-up-auth",{mbSource:[513,"mb-source"],clientStyling:[513,"client-styling"],clientStylingUrl:[513,"client-styling-url"],language:[513],endpoint:[513],userSession:[513,"user-session"],translationUrl:[513,"translation-url"],mode:[513],showPopup:[32],otp:[32],isLoading:[32],config:[32],timeLeft:[32],expirationTime:[32],serverTime:[32],hasErrors:[32],hasConfigErrors:[32],errorMessage:[32],token:[32],flow:[32],showResendOtp:[32],isLastWarning:[32],inputDisabled:[32],isValidating:[32],isSuccess:[32],shakeError:[32]},[[8,"stepUpAuthRequired","handleStepUpAuthEvent"],[8,"closePopup","handleCloseWidget"]],{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}]]]],e))));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/user-deposit-withdrawal",
3
- "version": "1.98.25",
3
+ "version": "1.98.26",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",