@everymatrix/casino-header-controller 1.88.21 → 1.88.23

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.
Files changed (28) hide show
  1. package/components/{CasinoHamburgerMenu-BmnetgcJ.js → CasinoHamburgerMenu-1h9VmGK8.js} +1 -1
  2. package/components/{CasinoHamburgerMenu-0iO-OlQf.js → CasinoHamburgerMenu-BjgKdAIE.js} +1 -1
  3. package/components/{CasinoHamburgerMenu-C0RFV0vZ.cjs → CasinoHamburgerMenu-DxoYwBJ2.cjs} +1 -1
  4. package/components/{CasinoHeaderController-PC0oE62i.js → CasinoHeaderController-C2cEg8qx.js} +5 -5
  5. package/components/{CasinoHeaderController-BetzsGaF.js → CasinoHeaderController-C_gjQ-3F.js} +5 -5
  6. package/components/{CasinoHeaderController-D3YbZNYP.cjs → CasinoHeaderController-CtwapTII.cjs} +2 -2
  7. package/components/{CasinoSlider-DEooiEjy.cjs → CasinoSlider-62icBZ87.cjs} +1 -1
  8. package/components/{CasinoSlider-BabFvkIj.js → CasinoSlider-DBLmid7F.js} +1 -1
  9. package/components/{CasinoSlider-CjkGjLwD.js → CasinoSlider-W9YXgnPd.js} +1 -1
  10. package/components/{PlayerAccountBalanceModal-BFBq4CXs.cjs → PlayerAccountBalanceModal-BuVS80Li.cjs} +1 -1
  11. package/components/{PlayerAccountBalanceModal-BuVc27aT.js → PlayerAccountBalanceModal-BwzHfy7e.js} +1 -1
  12. package/components/{PlayerAccountBalanceModal-xfxkfcqQ.js → PlayerAccountBalanceModal-C6t_uAkm.js} +1 -1
  13. package/components/{PlayerDeposit-CMIok5l3.cjs → PlayerDeposit-BCh24ib-.cjs} +1 -1
  14. package/components/{PlayerDeposit-PAs7v1Sm.js → PlayerDeposit-CQ1kL1ix.js} +1 -1
  15. package/components/{PlayerDeposit-B-_SI5sw.js → PlayerDeposit-DnwNVm5e.js} +1 -1
  16. package/es2015/casino-header-controller.cjs +1 -1
  17. package/es2015/casino-header-controller.js +1 -1
  18. package/esnext/casino-header-controller.js +1 -1
  19. package/package.json +1 -1
  20. package/stencil/{index-2ff63899-BsECgNzX.js → index-2ff63899-BweANwnC.js} +1 -1
  21. package/stencil/{index-2ff63899-XAPDAvql.js → index-2ff63899-C95JGHvF.js} +1 -1
  22. package/stencil/{index-2ff63899-DXZPV76B.cjs → index-2ff63899-CATMSVBc.cjs} +1 -1
  23. package/stencil/{player-step-up-auth_2-Bimf6Luo.js → player-step-up-auth_2-9FyTgEar.js} +4 -4
  24. package/stencil/{player-step-up-auth_2-CwF0H8Wx.cjs → player-step-up-auth_2-BIU9XpGU.cjs} +1 -1
  25. package/stencil/{player-step-up-auth_2-CIfpwOl9.js → player-step-up-auth_2-C3w1nfzy.js} +4 -4
  26. package/stencil/{user-deposit-withdrawal-Cgxt3DY_.js → user-deposit-withdrawal-Bc62UoK-.js} +2 -2
  27. package/stencil/{user-deposit-withdrawal-C0vLyEL_.cjs → user-deposit-withdrawal-Dwhtkpqf.cjs} +1 -1
  28. package/stencil/{user-deposit-withdrawal-BhCQsoBi.js → user-deposit-withdrawal-LbF-UNC8.js} +2 -2
@@ -1,4 +1,4 @@
1
- "use strict";var Se=(e,t,r)=>new Promise((n,p)=>{var E=b=>{try{x(r.next(b))}catch(L){p(L)}},U=b=>{try{x(r.throw(b))}catch(L){p(L)}},x=b=>b.done?n(b.value):Promise.resolve(b.value).then(E,U);x((r=r.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-2ff63899-DXZPV76B.cjs"),Ae="__WIDGET_GLOBAL_STYLE_CACHE__";function Ue(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function je(e,t){if(!e||!t)return;const r=new URL(t);fetch(r.href).then(n=>n.text()).then(n=>{const p=document.createElement("style");p.innerHTML=n,e&&e.appendChild(p)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function Xe(e,t,r,n=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!n)return r=ot(e,t),r;window[Ae]||(window[Ae]={}),r=st(e,t);const E=r.unsubscribe.bind(r),U=()=>{if(window[Ae][t]){const x=window[Ae][t];x.refCount>1?x.refCount=x.refCount-1:delete window[Ae][t]}E()};return r.unsubscribe=U,r}function ot(e,t){const r=document.createElement("style");return window.emMessageBus.subscribe(t,n=>{e&&(r.innerHTML=n,e.appendChild(r))})}function st(e,t){return window.emMessageBus.subscribe(t,r=>{if(!e)return;const n=e.getRootNode(),p=window[Ae];let E=p[t]&&p[t].sheet;E?p[t].refCount=p[t].refCount+1:(E=new CSSStyleSheet,E.replaceSync(r),p[t]={sheet:E,refCount:1});const U=n.adoptedStyleSheets||[];U.includes(E)||(n.adoptedStyleSheets=[...U,E])})}const dt="en",Ke={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!"}},qe=e=>new Promise(t=>{fetch(e).then(r=>r.json()).then(r=>{Object.keys(r).forEach(n=>{for(let p in r[n])Ke[n][p]=r[n][p]}),t(!0)})}),_=(e,t)=>{const r=t;return Ke[r!==void 0?r:dt][e]},lt=".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)}}",ut=lt,Ze=class{handleNewTranslations(){qe(this.translationUrl)}handleClientStylingChange(e,t){e!==t&&Ue(this.el,this.clientStyling)}handleClientStylingUrlChange(e,t){e!=t&&this.clientStylingUrl&&je(this.stylingContainer,this.clientStylingUrl)}handleStepUpAuthEvent(e){return Se(this,null,function*(){var t;if(!((t=e.detail)===null||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){this.isLoading=!1,this.hasConfigErrors=!0,this.errorMessage=_("configError",this.language);return}yield 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(e){c.registerInstance(this,e),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.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)}getConfig(){return Se(this,null,function*(){if(this.endpoint)try{const e=new URL(`/api/v1/mfa/challenge/${this.token}/config`,this.endpoint);this.isLoading=!0;const t=yield fetch(e.href),r=yield t.json();if(t.ok)this.config=r,this.otp=Array(this.config.inputLength).fill(""),this.isLoading=!1,this.showResendOtp=!1,this.expirationTime=this.config.expirationTime,this.serverTime=this.config.serverTime,this.config.numberOfValidateAttempts!==0&&(this.hasErrors=!0,this.errorMessage=_("invalidOtp",this.language)),this.config.numberOfValidateAttempts===this.config.maxValidationAttempts-1&&(this.isLastWarning=!0),this.calculateTimeLeft(),this.startCountdown();else if(r&&r.details==="gm.twofa.token_max_attempts_exceeded")this.handleCloseWidget();else{const n=r&&r.message||`Failed to load config. Status: ${t.status}`;throw new Error(n)}}catch(e){this.isLoading=!1,this.hasConfigErrors=!0,this.errorMessage=_("configError",this.language),console.error("Error loading 2FA config:",e)}})}calculateTimeLeft(){const e=new Date(this.expirationTime),t=new Date(this.serverTime),r=new Date,n=t.getTime()-r.getTime();this.expirationTimestamp=e.getTime()-n;const p=Date.now(),E=Math.max(0,Math.floor((this.expirationTimestamp-p)/1e3));this.timeLeft=E}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=Math.floor(e/60),r=e%60;return`${t.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}`}setOtpInputRef(e,t){e&&(this.otpInputs[t]=e)}updateOtpState(e,t){const r=[...this.otp];r[e]=t.toUpperCase(),this.otp=r}handleOnPasteOtp(e){var t,r,n;e.preventDefault();const E=(((r=(t=e.clipboardData)===null||t===void 0?void 0:t.getData("text"))===null||r===void 0?void 0:r.trim())||"").slice(0,this.config.inputLength).split("");this.otp=[...E,...Array(this.config.inputLength-E.length).fill("")],(n=this.otpInputs[E.length])===null||n===void 0||n.focus(),E.length===this.config.inputLength&&this.submitOtp()}handleOtpInput(e,t){const r=e.target,n=r.value;if(/^[a-z0-9]$/i.test(n)){this.updateOtpState(t,n);const p=this.otpInputs[t+1];p==null||p.focus()}r.value=""}handleKeyDown(e,t){const r=e.key,n=e.ctrlKey||e.metaKey;if(/^[a-z0-9]$/i.test(r)){if(n&&r.toLowerCase()==="v")return;e.preventDefault(),this.updateOtpState(t,r);const p=this.otpInputs[t+1];p==null||p.focus()}else if(r==="Backspace"){e.preventDefault(),this.otp[t]!==""&&this.updateOtpState(t,"");const p=this.otpInputs[t-1];p==null||p.focus()}}handleResendOtp(){const e=new CustomEvent("otpResendRequested");window.dispatchEvent(e)}submitOtp(){return Se(this,null,function*(){if(this.otp.join("").length!==this.config.inputLength){this.hasErrors=!0,this.errorMessage=_("invalidOtp",this.language),this.triggerShakeAnimation();return}if(this.timeLeft<=0){this.hasErrors=!0,this.errorMessage=_("otpExpiredMessage",this.language),this.triggerShakeAnimation(),yield this.getConfig();return}this.isLoading=!0,this.isValidating=!0,this.hasErrors=!1,this.errorMessage="";const e=this.otp.join("");this.flow==="stateless"&&this.handleOtpStateless(e),this.flow==="stateful"&&(yield this.handleOtpStateful(e))})}handleOtpStateless(e){window.dispatchEvent(new CustomEvent("otpSubmitted",{detail:{code:e,maxAttempts:this.config.maxValidationAttempts,validatedAttempts:this.config.numberOfValidateAttempts}}))}handleOtpStateful(e){return Se(this,null,function*(){const t=new URL(`/api/v1/mfa/challenge/${this.token}/validate`,this.endpoint);t.searchParams.append("input",e);try{const r=yield fetch(t.href,{method:"POST"});if(r.status===200){this.handleSuccess();return}const p=(yield r.json()).message||"";if(p.toLowerCase().includes("expired")){this.hasErrors=!0,this.errorMessage=_("otpExpiredMessage",this.language),this.triggerShakeAnimation(),yield this.getConfig();return}throw new Error(p)}catch(r){if(r.message==="gm.multifactorauthentication.challenge_internal_server_error"||r.message==="gm.multifactorauthentication.internal_server_error"){if(this.config.numberOfValidateAttempts===this.config.maxValidationAttempts-1){window.dispatchEvent(new CustomEvent("otpSetTimeout")),window.postMessage({type:"WidgetNotification",data:{type:"error",message:_("accountBlocked",this.language)}},window.location.href),this.handleCloseWidget();return}this.hasErrors=!0,this.errorMessage=_("invalidOtp",this.language),this.triggerShakeAnimation(),this.getConfig();return}console.error("OTP submission failed:",r),this.hasErrors=!0,this.errorMessage=_("submissionError",this.language),this.triggerShakeAnimation()}finally{this.isLoading=!1,this.isValidating=!1}})}handleSuccess(){return Se(this,null,function*(){this.isSuccess=!0,yield 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),(e=this.stylingSubscription)===null||e===void 0||e.unsubscribe()}componentWillLoad(){return Se(this,null,function*(){this.translationUrl.length>2&&(yield qe(this.translationUrl))})}componentDidLoad(){this.stylingContainer&&(window.emMessageBuss!=null?Xe(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription):(this.clientStyling&&Ue(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&je(this.stylingContainer,this.clientStylingUrl)))}render(){return c.h("div",{key:"31703a17e1f7b44ca4ebe5520f2fe129a309671a",ref:e=>this.stylingContainer=e},this.showPopup&&c.h("div",{key:"3e1f12aa2eccd8494268f03b53aaa9411a52c7be",class:"OtpPopupOverlay"},c.h("div",{key:"7ebfaab2f0798ea661d8a8a9021a7c2e14da1896",class:`OtpPopupContent ${this.shakeError?"shake":""}`},this.isLoading?c.h("div",{class:"OtpLoaderContainer"},c.h("span",{class:"OtpLoader"})):this.hasConfigErrors?c.h("div",{class:"OtpError"},c.h("div",{class:"OtpErrorHeader"},c.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},c.h("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"})),c.h("h2",null,_("errorHeader",this.language))),c.h("p",null,this.errorMessage),c.h("button",{class:"OtpButton error",onClick:this.manualClosePopup,"aria-label":_("close",this.language)},_("close",this.language))):c.h(c.Fragment,null,c.h("div",{class:"otp-description"},this.showResendOtp?c.h("p",{class:"OtpNoticeMessage",role:"alert"},_("otpExpiredMessage",this.language)):c.h(c.Fragment,null,c.h("p",{class:this.isLastWarning?"LastWarningMessage":""},_(this.isLastWarning?"popupMessageLastWarning":"popupMessage",this.language)),this.hasErrors&&c.h("p",{class:"OtpErrorMessage",role:"alert"},this.errorMessage))),c.h("div",{class:"OtpFieldWrapper"},c.h("h2",null,_("otpHeading",this.language)),c.h("div",{class:"OtpField"},this.otp.map((e,t)=>{const r=this.config.inputLength%2===0&&t===this.config.inputLength/2-1;return c.h("input",{key:t,ref:n=>this.setOtpInputRef(n,t),id:`otp-input-${t}`,type:"text",class:`otp-box ${r?"space":""} ${e?"filled":""} ${this.hasErrors?"error":""}`,maxLength:1,value:e,onInput:n=>this.handleOtpInput(n,t),onKeyDown:n=>this.handleKeyDown(n,t),onPaste:n=>this.handleOnPasteOtp(n),disabled:this.inputDisabled,autoComplete:"off","aria-label":`${_("otpDigit",this.language)} ${t+1}`,"aria-invalid":this.hasErrors})})),c.h("div",{class:"OtpTimerContainer"},c.h("div",{class:`OtpTimer ${this.isLastWarning?"warning":""} ${this.timeLeft<60?"critical":""}`,role:"timer","aria-live":"polite"},c.h("svg",{class:"timer-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},c.h("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"})),c.h("span",{class:"timer-text"},this.formatTime(this.timeLeft)," ",_("minutes",this.language))))),this.isSuccess&&c.h("div",{class:"OtpSuccessOverlay"},c.h("svg",{class:"success-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},c.h("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"})),c.h("span",null,_("otpVerified",this.language))),c.h("div",{class:"OtpActionButtons"},this.showResendOtp?c.h("button",{class:"OtpButton primary",onClick:this.handleResendOtp,disabled:this.isLoading,"aria-label":_("resendOtp",this.language)},_("resendOtp",this.language)):c.h("button",{class:`OtpButton primary ${this.isValidating?"loading":""}`,onClick:this.submitOtp,disabled:this.otp.join("").length!==this.config.inputLength||this.isValidating||this.isLoading,"aria-label":_("submit",this.language),"aria-busy":this.isValidating},this.isValidating?c.h(c.Fragment,null,c.h("span",{class:"button-spinner"}),c.h("span",{class:"button-text"},_("verifying",this.language))):c.h("span",{class:"button-text"},_("submit",this.language))),c.h("button",{class:"OtpButton secondary",onClick:this.manualClosePopup,disabled:this.isValidating,"aria-label":_("close",this.language)},_("close",this.language)))))))}get el(){return c.getElement(this)}static get watchers(){return{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}}};Ze.style=ut;const ct="en",ht=["ro","en","fr","hr","en-us","es-mx","pt-br","es","de","pt","tr"],Qe={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"}},pt=e=>new Promise(t=>{fetch(e).then(r=>r.json()).then(r=>{Object.keys(r).forEach(n=>{for(let p in r[n])Qe[n][p]=r[n][p]}),t(!0)})}),Ce=(e,t)=>{const r=t;return Qe[r!==void 0&&ht.includes(r)?r:ct][e]},ft=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),gt=e=>{if(!e||typeof e!="string")return!1;const t=e.toLowerCase();return t.includes("voucher")||t.includes("offline")};var Ne=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Je={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Ne,function(){var r=1e3,n=6e4,p=36e5,E="millisecond",U="second",x="minute",b="hour",L="day",we="week",W="month",Te="quarter",q="year",re="date",v="Invalid Date",Y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ue=/\[([^\]]+)]|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,ce={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(g){var l=["th","st","nd","rd"],a=g%100;return"["+g+(l[(a-20)%10]||l[a]||l[0])+"]"}},A=function(g,l,a){var u=String(g);return!u||u.length>=l?g:""+Array(l+1-u.length).join(a)+g},ie={s:A,z:function(g){var l=-g.utcOffset(),a=Math.abs(l),u=Math.floor(a/60),s=a%60;return(l<=0?"+":"-")+A(u,2,"0")+":"+A(s,2,"0")},m:function g(l,a){if(l.date()<a.date())return-g(a,l);var u=12*(a.year()-l.year())+(a.month()-l.month()),s=l.clone().add(u,W),m=a-s<0,y=l.clone().add(u+(m?-1:1),W);return+(-(u+(a-s)/(m?s-y:y-s))||0)},a:function(g){return g<0?Math.ceil(g)||0:Math.floor(g)},p:function(g){return{M:W,y:q,w:we,d:L,D:re,h:b,m:x,s:U,ms:E,Q:Te}[g]||String(g||"").toLowerCase().replace(/s$/,"")},u:function(g){return g===void 0}},ne="en",Q={};Q[ne]=ce;var he="$isDayjsObject",Ee=function(g){return g instanceof oe||!(!g||!g[he])},ae=function g(l,a,u){var s;if(!l)return ne;if(typeof l=="string"){var m=l.toLowerCase();Q[m]&&(s=m),a&&(Q[m]=a,s=m);var y=l.split("-");if(!s&&y.length>1)return g(y[0])}else{var T=l.name;Q[T]=l,s=T}return!u&&s&&(ne=s),s||!u&&ne},k=function(g,l){if(Ee(g))return g.clone();var a=typeof l=="object"?l:{};return a.date=g,a.args=arguments,new oe(a)},M=ie;M.l=ae,M.i=Ee,M.w=function(g,l){return k(g,{locale:l.$L,utc:l.$u,x:l.$x,$offset:l.$offset})};var oe=function(){function g(a){this.$L=ae(a.locale,null,!0),this.parse(a),this.$x=this.$x||a.x||{},this[he]=!0}var l=g.prototype;return l.parse=function(a){this.$d=function(u){var s=u.date,m=u.utc;if(s===null)return new Date(NaN);if(M.u(s))return new Date;if(s instanceof Date)return new Date(s);if(typeof s=="string"&&!/Z$/i.test(s)){var y=s.match(Y);if(y){var T=y[2]-1||0,R=(y[7]||"0").substring(0,3);return m?new Date(Date.UTC(y[1],T,y[3]||1,y[4]||0,y[5]||0,y[6]||0,R)):new Date(y[1],T,y[3]||1,y[4]||0,y[5]||0,y[6]||0,R)}}return new Date(s)}(a),this.init()},l.init=function(){var a=this.$d;this.$y=a.getFullYear(),this.$M=a.getMonth(),this.$D=a.getDate(),this.$W=a.getDay(),this.$H=a.getHours(),this.$m=a.getMinutes(),this.$s=a.getSeconds(),this.$ms=a.getMilliseconds()},l.$utils=function(){return M},l.isValid=function(){return this.$d.toString()!==v},l.isSame=function(a,u){var s=k(a);return this.startOf(u)<=s&&s<=this.endOf(u)},l.isAfter=function(a,u){return k(a)<this.startOf(u)},l.isBefore=function(a,u){return this.endOf(u)<k(a)},l.$g=function(a,u,s){return M.u(a)?this[u]:this.set(s,a)},l.unix=function(){return Math.floor(this.valueOf()/1e3)},l.valueOf=function(){return this.$d.getTime()},l.startOf=function(a,u){var s=this,m=!!M.u(u)||u,y=M.p(a),T=function(se,H){var z=M.w(s.$u?Date.UTC(s.$y,H,se):new Date(s.$y,H,se),s);return m?z:z.endOf(L)},R=function(se,H){return M.w(s.toDate()[se].apply(s.toDate("s"),(m?[0,0,0,0]:[23,59,59,999]).slice(H)),s)},j=this.$W,N=this.$M,Z=this.$D,be="set"+(this.$u?"UTC":"");switch(y){case q:return m?T(1,0):T(31,11);case W:return m?T(1,N):T(0,N+1);case we:var pe=this.$locale().weekStart||0,fe=(j<pe?j+7:j)-pe;return T(m?Z-fe:Z+(6-fe),N);case L:case re:return R(be+"Hours",0);case b:return R(be+"Minutes",1);case x:return R(be+"Seconds",2);case U:return R(be+"Milliseconds",3);default:return this.clone()}},l.endOf=function(a){return this.startOf(a,!1)},l.$set=function(a,u){var s,m=M.p(a),y="set"+(this.$u?"UTC":""),T=(s={},s[L]=y+"Date",s[re]=y+"Date",s[W]=y+"Month",s[q]=y+"FullYear",s[b]=y+"Hours",s[x]=y+"Minutes",s[U]=y+"Seconds",s[E]=y+"Milliseconds",s)[m],R=m===L?this.$D+(u-this.$W):u;if(m===W||m===q){var j=this.clone().set(re,1);j.$d[T](R),j.init(),this.$d=j.set(re,Math.min(this.$D,j.daysInMonth())).$d}else T&&this.$d[T](R);return this.init(),this},l.set=function(a,u){return this.clone().$set(a,u)},l.get=function(a){return this[M.p(a)]()},l.add=function(a,u){var s,m=this;a=Number(a);var y=M.p(u),T=function(N){var Z=k(m);return M.w(Z.date(Z.date()+Math.round(N*a)),m)};if(y===W)return this.set(W,this.$M+a);if(y===q)return this.set(q,this.$y+a);if(y===L)return T(1);if(y===we)return T(7);var R=(s={},s[x]=n,s[b]=p,s[U]=r,s)[y]||1,j=this.$d.getTime()+a*R;return M.w(j,this)},l.subtract=function(a,u){return this.add(-1*a,u)},l.format=function(a){var u=this,s=this.$locale();if(!this.isValid())return s.invalidDate||v;var m=a||"YYYY-MM-DDTHH:mm:ssZ",y=M.z(this),T=this.$H,R=this.$m,j=this.$M,N=s.weekdays,Z=s.months,be=s.meridiem,pe=function(H,z,Oe,De){return H&&(H[z]||H(u,m))||Oe[z].slice(0,De)},fe=function(H){return M.s(T%12||12,H,"0")},se=be||function(H,z,Oe){var De=H<12?"AM":"PM";return Oe?De.toLowerCase():De};return m.replace(ue,function(H,z){return z||function(Oe){switch(Oe){case"YY":return String(u.$y).slice(-2);case"YYYY":return M.s(u.$y,4,"0");case"M":return j+1;case"MM":return M.s(j+1,2,"0");case"MMM":return pe(s.monthsShort,j,Z,3);case"MMMM":return pe(Z,j);case"D":return u.$D;case"DD":return M.s(u.$D,2,"0");case"d":return String(u.$W);case"dd":return pe(s.weekdaysMin,u.$W,N,2);case"ddd":return pe(s.weekdaysShort,u.$W,N,3);case"dddd":return N[u.$W];case"H":return String(T);case"HH":return M.s(T,2,"0");case"h":return fe(1);case"hh":return fe(2);case"a":return se(T,R,!0);case"A":return se(T,R,!1);case"m":return String(R);case"mm":return M.s(R,2,"0");case"s":return String(u.$s);case"ss":return M.s(u.$s,2,"0");case"SSS":return M.s(u.$ms,3,"0");case"Z":return y}return null}(H)||y.replace(":","")})},l.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},l.diff=function(a,u,s){var m,y=this,T=M.p(u),R=k(a),j=(R.utcOffset()-this.utcOffset())*n,N=this-R,Z=function(){return M.m(y,R)};switch(T){case q:m=Z()/12;break;case W:m=Z();break;case Te:m=Z()/3;break;case we:m=(N-j)/6048e5;break;case L:m=(N-j)/864e5;break;case b:m=N/p;break;case x:m=N/n;break;case U:m=N/r;break;default:m=N}return s?m:M.a(m)},l.daysInMonth=function(){return this.endOf(W).$D},l.$locale=function(){return Q[this.$L]},l.locale=function(a,u){if(!a)return this.$L;var s=this.clone(),m=ae(a,u,!0);return m&&(s.$L=m),s},l.clone=function(){return M.w(this.$d,this)},l.toDate=function(){return new Date(this.valueOf())},l.toJSON=function(){return this.isValid()?this.toISOString():null},l.toISOString=function(){return this.$d.toISOString()},l.toString=function(){return this.$d.toUTCString()},g}(),Re=oe.prototype;return k.prototype=Re,[["$ms",E],["$s",U],["$m",x],["$H",b],["$W",L],["$M",W],["$y",q],["$D",re]].forEach(function(g){Re[g[1]]=function(l){return this.$g(l,g[0],g[1])}}),k.extend=function(g,l){return g.$i||(g(l,oe,k),g.$i=!0),k},k.locale=ae,k.isDayjs=Ee,k.unix=function(g){return k(1e3*g)},k.en=Q[ne],k.Ls=Q,k.p={},k})})(Je);const et=Je.exports;var tt={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Ne,function(){var r="minute",n=/[+-]\d\d(?::?\d\d)?/g,p=/([+-]|\d\d)/g;return function(E,U,x){var b=U.prototype;x.utc=function(v){var Y={date:v,utc:!0,args:arguments};return new U(Y)},b.utc=function(v){var Y=x(this.toDate(),{locale:this.$L,utc:!0});return v?Y.add(this.utcOffset(),r):Y},b.local=function(){return x(this.toDate(),{locale:this.$L,utc:!1})};var L=b.parse;b.parse=function(v){v.utc&&(this.$u=!0),this.$utils().u(v.$offset)||(this.$offset=v.$offset),L.call(this,v)};var we=b.init;b.init=function(){if(this.$u){var v=this.$d;this.$y=v.getUTCFullYear(),this.$M=v.getUTCMonth(),this.$D=v.getUTCDate(),this.$W=v.getUTCDay(),this.$H=v.getUTCHours(),this.$m=v.getUTCMinutes(),this.$s=v.getUTCSeconds(),this.$ms=v.getUTCMilliseconds()}else we.call(this)};var W=b.utcOffset;b.utcOffset=function(v,Y){var ue=this.$utils().u;if(ue(v))return this.$u?0:ue(this.$offset)?W.call(this):this.$offset;if(typeof v=="string"&&(v=function(ne){ne===void 0&&(ne="");var Q=ne.match(n);if(!Q)return null;var he=(""+Q[0]).match(p)||["-",0,0],Ee=he[0],ae=60*+he[1]+ +he[2];return ae===0?0:Ee==="+"?ae:-ae}(v),v===null))return this;var ce=Math.abs(v)<=16?60*v:v,A=this;if(Y)return A.$offset=ce,A.$u=v===0,A;if(v!==0){var ie=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(A=this.local().add(ce+ie,r)).$offset=ce,A.$x.$localOffset=ie}else A=this.utc();return A};var Te=b.format;b.format=function(v){var Y=v||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return Te.call(this,Y)},b.valueOf=function(){var v=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*v},b.isUTC=function(){return!!this.$u},b.toISOString=function(){return this.toDate().toISOString()},b.toString=function(){return this.toDate().toUTCString()};var q=b.toDate;b.toDate=function(v){return v==="s"&&this.$offset?x(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():q.call(this)};var re=b.diff;b.diff=function(v,Y,ue){if(v&&this.$u===v.$u)return re.call(this,v,Y,ue);var ce=this.local(),A=x(v).local();return re.call(ce,A,Y,ue)}}})})(tt);const mt=tt.exports;var He={exports:{}};/** @license
1
+ "use strict";var Se=(e,t,r)=>new Promise((n,p)=>{var E=b=>{try{x(r.next(b))}catch(L){p(L)}},U=b=>{try{x(r.throw(b))}catch(L){p(L)}},x=b=>b.done?n(b.value):Promise.resolve(b.value).then(E,U);x((r=r.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-2ff63899-CATMSVBc.cjs"),Ae="__WIDGET_GLOBAL_STYLE_CACHE__";function Ue(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function je(e,t){if(!e||!t)return;const r=new URL(t);fetch(r.href).then(n=>n.text()).then(n=>{const p=document.createElement("style");p.innerHTML=n,e&&e.appendChild(p)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function Xe(e,t,r,n=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!n)return r=ot(e,t),r;window[Ae]||(window[Ae]={}),r=st(e,t);const E=r.unsubscribe.bind(r),U=()=>{if(window[Ae][t]){const x=window[Ae][t];x.refCount>1?x.refCount=x.refCount-1:delete window[Ae][t]}E()};return r.unsubscribe=U,r}function ot(e,t){const r=document.createElement("style");return window.emMessageBus.subscribe(t,n=>{e&&(r.innerHTML=n,e.appendChild(r))})}function st(e,t){return window.emMessageBus.subscribe(t,r=>{if(!e)return;const n=e.getRootNode(),p=window[Ae];let E=p[t]&&p[t].sheet;E?p[t].refCount=p[t].refCount+1:(E=new CSSStyleSheet,E.replaceSync(r),p[t]={sheet:E,refCount:1});const U=n.adoptedStyleSheets||[];U.includes(E)||(n.adoptedStyleSheets=[...U,E])})}const dt="en",Ke={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!"}},qe=e=>new Promise(t=>{fetch(e).then(r=>r.json()).then(r=>{Object.keys(r).forEach(n=>{for(let p in r[n])Ke[n][p]=r[n][p]}),t(!0)})}),_=(e,t)=>{const r=t;return Ke[r!==void 0?r:dt][e]},lt=".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)}}",ut=lt,Ze=class{handleNewTranslations(){qe(this.translationUrl)}handleClientStylingChange(e,t){e!==t&&Ue(this.el,this.clientStyling)}handleClientStylingUrlChange(e,t){e!=t&&this.clientStylingUrl&&je(this.stylingContainer,this.clientStylingUrl)}handleStepUpAuthEvent(e){return Se(this,null,function*(){var t;if(!((t=e.detail)===null||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){this.isLoading=!1,this.hasConfigErrors=!0,this.errorMessage=_("configError",this.language);return}yield 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(e){c.registerInstance(this,e),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)}getConfig(){return Se(this,null,function*(){if(this.endpoint)try{const e=new URL(`/api/v1/mfa/challenge/${this.token}/config`,this.endpoint);this.isLoading=!0;const t=yield fetch(e.href),r=yield t.json();if(t.ok)this.config=r,this.otp=Array(this.config.inputLength).fill(""),this.isLoading=!1,this.showResendOtp=!1,this.expirationTime=this.config.expirationTime,this.serverTime=this.config.serverTime,this.config.numberOfValidateAttempts!==0&&(this.hasErrors=!0,this.errorMessage=_("invalidOtp",this.language)),this.config.numberOfValidateAttempts===this.config.maxValidationAttempts-1&&(this.isLastWarning=!0),this.calculateTimeLeft(),this.startCountdown();else if(r&&r.details==="gm.twofa.token_max_attempts_exceeded")this.handleCloseWidget();else{const n=r&&r.message||`Failed to load config. Status: ${t.status}`;throw new Error(n)}}catch(e){this.isLoading=!1,this.hasConfigErrors=!0,this.errorMessage=_("configError",this.language),console.error("Error loading 2FA config:",e)}})}calculateTimeLeft(){const e=new Date(this.expirationTime),t=new Date(this.serverTime),r=new Date,n=t.getTime()-r.getTime();this.expirationTimestamp=e.getTime()-n;const p=Date.now(),E=Math.max(0,Math.floor((this.expirationTimestamp-p)/1e3));this.timeLeft=E}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=Math.floor(e/60),r=e%60;return`${t.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}`}setOtpInputRef(e,t){e&&(this.otpInputs[t]=e)}updateOtpState(e,t){const r=[...this.otp];r[e]=t.toUpperCase(),this.otp=r}handleOnPasteOtp(e){var t,r,n;e.preventDefault();const E=(((r=(t=e.clipboardData)===null||t===void 0?void 0:t.getData("text"))===null||r===void 0?void 0:r.trim())||"").slice(0,this.config.inputLength).split("");this.otp=[...E,...Array(this.config.inputLength-E.length).fill("")],(n=this.otpInputs[E.length])===null||n===void 0||n.focus(),E.length===this.config.inputLength&&this.submitOtp()}handleOtpInput(e,t){const r=e.target,n=r.value;if(/^[a-z0-9]$/i.test(n)){this.updateOtpState(t,n);const p=this.otpInputs[t+1];p==null||p.focus()}r.value=""}handleKeyDown(e,t){const r=e.key,n=e.ctrlKey||e.metaKey;if(/^[a-z0-9]$/i.test(r)){if(n&&r.toLowerCase()==="v")return;e.preventDefault(),this.updateOtpState(t,r);const p=this.otpInputs[t+1];p==null||p.focus()}else if(r==="Backspace"){e.preventDefault(),this.otp[t]!==""&&this.updateOtpState(t,"");const p=this.otpInputs[t-1];p==null||p.focus()}}handleResendOtp(){const e=new CustomEvent("otpResendRequested");window.dispatchEvent(e)}submitOtp(){return Se(this,null,function*(){if(this.otp.join("").length!==this.config.inputLength){this.hasErrors=!0,this.errorMessage=_("invalidOtp",this.language),this.triggerShakeAnimation();return}if(this.timeLeft<=0){this.hasErrors=!0,this.errorMessage=_("otpExpiredMessage",this.language),this.triggerShakeAnimation(),yield this.getConfig();return}this.isLoading=!0,this.isValidating=!0,this.hasErrors=!1,this.errorMessage="";const e=this.otp.join("");this.flow==="stateless"&&this.handleOtpStateless(e),this.flow==="stateful"&&(yield this.handleOtpStateful(e))})}handleOtpStateless(e){window.dispatchEvent(new CustomEvent("otpSubmitted",{detail:{code:e,maxAttempts:this.config.maxValidationAttempts,validatedAttempts:this.config.numberOfValidateAttempts}}))}handleOtpStateful(e){return Se(this,null,function*(){const t=new URL(`/api/v1/mfa/challenge/${this.token}/validate`,this.endpoint);t.searchParams.append("input",e);try{const r=yield fetch(t.href,{method:"POST"});if(r.status===200){this.handleSuccess();return}const p=(yield r.json()).message||"";if(p.toLowerCase().includes("expired")){this.hasErrors=!0,this.errorMessage=_("otpExpiredMessage",this.language),this.triggerShakeAnimation(),yield this.getConfig();return}throw new Error(p)}catch(r){if(r.message==="gm.multifactorauthentication.challenge_internal_server_error"||r.message==="gm.multifactorauthentication.internal_server_error"){if(this.config.numberOfValidateAttempts===this.config.maxValidationAttempts-1){window.dispatchEvent(new CustomEvent("otpSetTimeout")),window.postMessage({type:"WidgetNotification",data:{type:"error",message:_("accountBlocked",this.language)}},window.location.href),this.handleCloseWidget();return}this.hasErrors=!0,this.errorMessage=_("invalidOtp",this.language),this.triggerShakeAnimation(),this.getConfig();return}console.error("OTP submission failed:",r),this.hasErrors=!0,this.errorMessage=_("submissionError",this.language),this.triggerShakeAnimation()}finally{this.isLoading=!1,this.isValidating=!1}})}handleSuccess(){return Se(this,null,function*(){this.isSuccess=!0,yield 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),(e=this.stylingSubscription)===null||e===void 0||e.unsubscribe()}componentWillLoad(){return Se(this,null,function*(){this.translationUrl.length>2&&(yield qe(this.translationUrl))})}componentDidLoad(){this.stylingContainer&&(window.emMessageBuss!=null?Xe(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription):(this.clientStyling&&Ue(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&je(this.stylingContainer,this.clientStylingUrl)))}render(){return c.h("div",{key:"767f774b7244dbe264590e32364f17d7fcde0fa5",ref:e=>this.stylingContainer=e},this.showPopup&&c.h("div",{key:"ed8bd21c48b9afa91bca17568bd90dcb26d1d171",class:"OtpPopupOverlay"},c.h("div",{key:"2047ade4a5f2d62576f15368c86359c0c88014f7",class:`OtpPopupContent ${this.shakeError?"shake":""}`},this.isLoading?c.h("div",{class:"OtpLoaderContainer"},c.h("span",{class:"OtpLoader"})):this.hasConfigErrors?c.h("div",{class:"OtpError"},c.h("div",{class:"OtpErrorHeader"},c.h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},c.h("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"})),c.h("h2",null,_("errorHeader",this.language))),c.h("p",null,this.errorMessage),c.h("button",{class:"OtpButton error",onClick:this.manualClosePopup,"aria-label":_("close",this.language)},_("close",this.language))):c.h(c.Fragment,null,c.h("div",{class:"otp-description"},this.showResendOtp?c.h("p",{class:"OtpNoticeMessage",role:"alert"},_("otpExpiredMessage",this.language)):c.h(c.Fragment,null,c.h("p",{class:this.isLastWarning?"LastWarningMessage":""},_(this.isLastWarning?"popupMessageLastWarning":"popupMessage",this.language)),this.hasErrors&&c.h("p",{class:"OtpErrorMessage",role:"alert"},this.errorMessage))),c.h("div",{class:"OtpFieldWrapper"},c.h("h2",null,_("otpHeading",this.language)),c.h("div",{class:"OtpField"},this.otp.map((e,t)=>{const r=this.config.inputLength%2===0&&t===this.config.inputLength/2-1;return c.h("input",{key:t,ref:n=>this.setOtpInputRef(n,t),id:`otp-input-${t}`,type:"text",inputmode:this.mode,pattern:this.mode==="numeric"?"[0-9]":void 0,class:`otp-box ${r?"space":""} ${e?"filled":""} ${this.hasErrors?"error":""}`,maxLength:1,value:e,onInput:n=>this.handleOtpInput(n,t),onKeyDown:n=>this.handleKeyDown(n,t),onPaste:n=>this.handleOnPasteOtp(n),disabled:this.inputDisabled,autoComplete:"off","aria-label":`${_("otpDigit",this.language)} ${t+1}`,"aria-invalid":this.hasErrors})})),c.h("div",{class:"OtpTimerContainer"},c.h("div",{class:`OtpTimer ${this.isLastWarning?"warning":""} ${this.timeLeft<60?"critical":""}`,role:"timer","aria-live":"polite"},c.h("svg",{class:"timer-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},c.h("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"})),c.h("span",{class:"timer-text"},this.formatTime(this.timeLeft)," ",_("minutes",this.language))))),this.isSuccess&&c.h("div",{class:"OtpSuccessOverlay"},c.h("svg",{class:"success-icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},c.h("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"})),c.h("span",null,_("otpVerified",this.language))),c.h("div",{class:"OtpActionButtons"},this.showResendOtp?c.h("button",{class:"OtpButton primary",onClick:this.handleResendOtp,disabled:this.isLoading,"aria-label":_("resendOtp",this.language)},_("resendOtp",this.language)):c.h("button",{class:`OtpButton primary ${this.isValidating?"loading":""}`,onClick:this.submitOtp,disabled:this.otp.join("").length!==this.config.inputLength||this.isValidating||this.isLoading,"aria-label":_("submit",this.language),"aria-busy":this.isValidating},this.isValidating?c.h(c.Fragment,null,c.h("span",{class:"button-spinner"}),c.h("span",{class:"button-text"},_("verifying",this.language))):c.h("span",{class:"button-text"},_("submit",this.language))),c.h("button",{class:"OtpButton secondary",onClick:this.manualClosePopup,disabled:this.isValidating,"aria-label":_("close",this.language)},_("close",this.language)))))))}get el(){return c.getElement(this)}static get watchers(){return{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"]}}};Ze.style=ut;const ct="en",ht=["ro","en","fr","hr","en-us","es-mx","pt-br","es","de","pt","tr"],Qe={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"}},pt=e=>new Promise(t=>{fetch(e).then(r=>r.json()).then(r=>{Object.keys(r).forEach(n=>{for(let p in r[n])Qe[n][p]=r[n][p]}),t(!0)})}),Ce=(e,t)=>{const r=t;return Qe[r!==void 0&&ht.includes(r)?r:ct][e]},ft=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),gt=e=>{if(!e||typeof e!="string")return!1;const t=e.toLowerCase();return t.includes("voucher")||t.includes("offline")};var Ne=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Je={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Ne,function(){var r=1e3,n=6e4,p=36e5,E="millisecond",U="second",x="minute",b="hour",L="day",we="week",W="month",Te="quarter",q="year",re="date",v="Invalid Date",Y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ue=/\[([^\]]+)]|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,ce={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(g){var l=["th","st","nd","rd"],a=g%100;return"["+g+(l[(a-20)%10]||l[a]||l[0])+"]"}},A=function(g,l,a){var u=String(g);return!u||u.length>=l?g:""+Array(l+1-u.length).join(a)+g},ie={s:A,z:function(g){var l=-g.utcOffset(),a=Math.abs(l),u=Math.floor(a/60),s=a%60;return(l<=0?"+":"-")+A(u,2,"0")+":"+A(s,2,"0")},m:function g(l,a){if(l.date()<a.date())return-g(a,l);var u=12*(a.year()-l.year())+(a.month()-l.month()),s=l.clone().add(u,W),m=a-s<0,y=l.clone().add(u+(m?-1:1),W);return+(-(u+(a-s)/(m?s-y:y-s))||0)},a:function(g){return g<0?Math.ceil(g)||0:Math.floor(g)},p:function(g){return{M:W,y:q,w:we,d:L,D:re,h:b,m:x,s:U,ms:E,Q:Te}[g]||String(g||"").toLowerCase().replace(/s$/,"")},u:function(g){return g===void 0}},ne="en",Q={};Q[ne]=ce;var he="$isDayjsObject",Ee=function(g){return g instanceof oe||!(!g||!g[he])},ae=function g(l,a,u){var s;if(!l)return ne;if(typeof l=="string"){var m=l.toLowerCase();Q[m]&&(s=m),a&&(Q[m]=a,s=m);var y=l.split("-");if(!s&&y.length>1)return g(y[0])}else{var T=l.name;Q[T]=l,s=T}return!u&&s&&(ne=s),s||!u&&ne},k=function(g,l){if(Ee(g))return g.clone();var a=typeof l=="object"?l:{};return a.date=g,a.args=arguments,new oe(a)},M=ie;M.l=ae,M.i=Ee,M.w=function(g,l){return k(g,{locale:l.$L,utc:l.$u,x:l.$x,$offset:l.$offset})};var oe=function(){function g(a){this.$L=ae(a.locale,null,!0),this.parse(a),this.$x=this.$x||a.x||{},this[he]=!0}var l=g.prototype;return l.parse=function(a){this.$d=function(u){var s=u.date,m=u.utc;if(s===null)return new Date(NaN);if(M.u(s))return new Date;if(s instanceof Date)return new Date(s);if(typeof s=="string"&&!/Z$/i.test(s)){var y=s.match(Y);if(y){var T=y[2]-1||0,R=(y[7]||"0").substring(0,3);return m?new Date(Date.UTC(y[1],T,y[3]||1,y[4]||0,y[5]||0,y[6]||0,R)):new Date(y[1],T,y[3]||1,y[4]||0,y[5]||0,y[6]||0,R)}}return new Date(s)}(a),this.init()},l.init=function(){var a=this.$d;this.$y=a.getFullYear(),this.$M=a.getMonth(),this.$D=a.getDate(),this.$W=a.getDay(),this.$H=a.getHours(),this.$m=a.getMinutes(),this.$s=a.getSeconds(),this.$ms=a.getMilliseconds()},l.$utils=function(){return M},l.isValid=function(){return this.$d.toString()!==v},l.isSame=function(a,u){var s=k(a);return this.startOf(u)<=s&&s<=this.endOf(u)},l.isAfter=function(a,u){return k(a)<this.startOf(u)},l.isBefore=function(a,u){return this.endOf(u)<k(a)},l.$g=function(a,u,s){return M.u(a)?this[u]:this.set(s,a)},l.unix=function(){return Math.floor(this.valueOf()/1e3)},l.valueOf=function(){return this.$d.getTime()},l.startOf=function(a,u){var s=this,m=!!M.u(u)||u,y=M.p(a),T=function(se,H){var z=M.w(s.$u?Date.UTC(s.$y,H,se):new Date(s.$y,H,se),s);return m?z:z.endOf(L)},R=function(se,H){return M.w(s.toDate()[se].apply(s.toDate("s"),(m?[0,0,0,0]:[23,59,59,999]).slice(H)),s)},j=this.$W,N=this.$M,Z=this.$D,be="set"+(this.$u?"UTC":"");switch(y){case q:return m?T(1,0):T(31,11);case W:return m?T(1,N):T(0,N+1);case we:var pe=this.$locale().weekStart||0,fe=(j<pe?j+7:j)-pe;return T(m?Z-fe:Z+(6-fe),N);case L:case re:return R(be+"Hours",0);case b:return R(be+"Minutes",1);case x:return R(be+"Seconds",2);case U:return R(be+"Milliseconds",3);default:return this.clone()}},l.endOf=function(a){return this.startOf(a,!1)},l.$set=function(a,u){var s,m=M.p(a),y="set"+(this.$u?"UTC":""),T=(s={},s[L]=y+"Date",s[re]=y+"Date",s[W]=y+"Month",s[q]=y+"FullYear",s[b]=y+"Hours",s[x]=y+"Minutes",s[U]=y+"Seconds",s[E]=y+"Milliseconds",s)[m],R=m===L?this.$D+(u-this.$W):u;if(m===W||m===q){var j=this.clone().set(re,1);j.$d[T](R),j.init(),this.$d=j.set(re,Math.min(this.$D,j.daysInMonth())).$d}else T&&this.$d[T](R);return this.init(),this},l.set=function(a,u){return this.clone().$set(a,u)},l.get=function(a){return this[M.p(a)]()},l.add=function(a,u){var s,m=this;a=Number(a);var y=M.p(u),T=function(N){var Z=k(m);return M.w(Z.date(Z.date()+Math.round(N*a)),m)};if(y===W)return this.set(W,this.$M+a);if(y===q)return this.set(q,this.$y+a);if(y===L)return T(1);if(y===we)return T(7);var R=(s={},s[x]=n,s[b]=p,s[U]=r,s)[y]||1,j=this.$d.getTime()+a*R;return M.w(j,this)},l.subtract=function(a,u){return this.add(-1*a,u)},l.format=function(a){var u=this,s=this.$locale();if(!this.isValid())return s.invalidDate||v;var m=a||"YYYY-MM-DDTHH:mm:ssZ",y=M.z(this),T=this.$H,R=this.$m,j=this.$M,N=s.weekdays,Z=s.months,be=s.meridiem,pe=function(H,z,Oe,De){return H&&(H[z]||H(u,m))||Oe[z].slice(0,De)},fe=function(H){return M.s(T%12||12,H,"0")},se=be||function(H,z,Oe){var De=H<12?"AM":"PM";return Oe?De.toLowerCase():De};return m.replace(ue,function(H,z){return z||function(Oe){switch(Oe){case"YY":return String(u.$y).slice(-2);case"YYYY":return M.s(u.$y,4,"0");case"M":return j+1;case"MM":return M.s(j+1,2,"0");case"MMM":return pe(s.monthsShort,j,Z,3);case"MMMM":return pe(Z,j);case"D":return u.$D;case"DD":return M.s(u.$D,2,"0");case"d":return String(u.$W);case"dd":return pe(s.weekdaysMin,u.$W,N,2);case"ddd":return pe(s.weekdaysShort,u.$W,N,3);case"dddd":return N[u.$W];case"H":return String(T);case"HH":return M.s(T,2,"0");case"h":return fe(1);case"hh":return fe(2);case"a":return se(T,R,!0);case"A":return se(T,R,!1);case"m":return String(R);case"mm":return M.s(R,2,"0");case"s":return String(u.$s);case"ss":return M.s(u.$s,2,"0");case"SSS":return M.s(u.$ms,3,"0");case"Z":return y}return null}(H)||y.replace(":","")})},l.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},l.diff=function(a,u,s){var m,y=this,T=M.p(u),R=k(a),j=(R.utcOffset()-this.utcOffset())*n,N=this-R,Z=function(){return M.m(y,R)};switch(T){case q:m=Z()/12;break;case W:m=Z();break;case Te:m=Z()/3;break;case we:m=(N-j)/6048e5;break;case L:m=(N-j)/864e5;break;case b:m=N/p;break;case x:m=N/n;break;case U:m=N/r;break;default:m=N}return s?m:M.a(m)},l.daysInMonth=function(){return this.endOf(W).$D},l.$locale=function(){return Q[this.$L]},l.locale=function(a,u){if(!a)return this.$L;var s=this.clone(),m=ae(a,u,!0);return m&&(s.$L=m),s},l.clone=function(){return M.w(this.$d,this)},l.toDate=function(){return new Date(this.valueOf())},l.toJSON=function(){return this.isValid()?this.toISOString():null},l.toISOString=function(){return this.$d.toISOString()},l.toString=function(){return this.$d.toUTCString()},g}(),Re=oe.prototype;return k.prototype=Re,[["$ms",E],["$s",U],["$m",x],["$H",b],["$W",L],["$M",W],["$y",q],["$D",re]].forEach(function(g){Re[g[1]]=function(l){return this.$g(l,g[0],g[1])}}),k.extend=function(g,l){return g.$i||(g(l,oe,k),g.$i=!0),k},k.locale=ae,k.isDayjs=Ee,k.unix=function(g){return k(1e3*g)},k.en=Q[ne],k.Ls=Q,k.p={},k})})(Je);const et=Je.exports;var tt={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Ne,function(){var r="minute",n=/[+-]\d\d(?::?\d\d)?/g,p=/([+-]|\d\d)/g;return function(E,U,x){var b=U.prototype;x.utc=function(v){var Y={date:v,utc:!0,args:arguments};return new U(Y)},b.utc=function(v){var Y=x(this.toDate(),{locale:this.$L,utc:!0});return v?Y.add(this.utcOffset(),r):Y},b.local=function(){return x(this.toDate(),{locale:this.$L,utc:!1})};var L=b.parse;b.parse=function(v){v.utc&&(this.$u=!0),this.$utils().u(v.$offset)||(this.$offset=v.$offset),L.call(this,v)};var we=b.init;b.init=function(){if(this.$u){var v=this.$d;this.$y=v.getUTCFullYear(),this.$M=v.getUTCMonth(),this.$D=v.getUTCDate(),this.$W=v.getUTCDay(),this.$H=v.getUTCHours(),this.$m=v.getUTCMinutes(),this.$s=v.getUTCSeconds(),this.$ms=v.getUTCMilliseconds()}else we.call(this)};var W=b.utcOffset;b.utcOffset=function(v,Y){var ue=this.$utils().u;if(ue(v))return this.$u?0:ue(this.$offset)?W.call(this):this.$offset;if(typeof v=="string"&&(v=function(ne){ne===void 0&&(ne="");var Q=ne.match(n);if(!Q)return null;var he=(""+Q[0]).match(p)||["-",0,0],Ee=he[0],ae=60*+he[1]+ +he[2];return ae===0?0:Ee==="+"?ae:-ae}(v),v===null))return this;var ce=Math.abs(v)<=16?60*v:v,A=this;if(Y)return A.$offset=ce,A.$u=v===0,A;if(v!==0){var ie=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(A=this.local().add(ce+ie,r)).$offset=ce,A.$x.$localOffset=ie}else A=this.utc();return A};var Te=b.format;b.format=function(v){var Y=v||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return Te.call(this,Y)},b.valueOf=function(){var v=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*v},b.isUTC=function(){return!!this.$u},b.toISOString=function(){return this.toDate().toISOString()},b.toString=function(){return this.toDate().toUTCString()};var q=b.toDate;b.toDate=function(v){return v==="s"&&this.$offset?x(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():q.call(this)};var re=b.diff;b.diff=function(v,Y,ue){if(v&&this.$u===v.$u)return re.call(this,v,Y,ue);var ce=this.local(),A=x(v).local();return re.call(ce,A,Y,ue)}}})})(tt);const mt=tt.exports;var He={exports:{}};/** @license
2
2
  * eventsource.js
3
3
  * Available under MIT License (MIT)
4
4
  * https://github.com/Yaffle/EventSource/
@@ -1,4 +1,4 @@
1
- import { r as Xe, h, F as Fe, g as at, H as ot } from "./index-2ff63899-BsECgNzX.js";
1
+ import { r as Xe, h, F as Fe, g as at, H as ot } from "./index-2ff63899-BweANwnC.js";
2
2
  const xe = "__WIDGET_GLOBAL_STYLE_CACHE__";
3
3
  function Ie(e, t) {
4
4
  if (e) {
@@ -337,7 +337,7 @@ const lt = "en", Ze = {
337
337
  * Class constructor
338
338
  */
339
339
  constructor(e) {
340
- Xe(this, e), 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.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);
340
+ Xe(this, e), 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);
341
341
  }
342
342
  /**
343
343
  * Fetches OTP configuration from the endpoint.
@@ -586,9 +586,9 @@ const lt = "en", Ze = {
586
586
  * Displays the OTP popup, input fields, timer, and action buttons.
587
587
  */
588
588
  render() {
589
- return h("div", { key: "31703a17e1f7b44ca4ebe5520f2fe129a309671a", ref: (e) => this.stylingContainer = e }, this.showPopup && h("div", { key: "3e1f12aa2eccd8494268f03b53aaa9411a52c7be", class: "OtpPopupOverlay" }, h("div", { key: "7ebfaab2f0798ea661d8a8a9021a7c2e14da1896", class: `OtpPopupContent ${this.shakeError ? "shake" : ""}` }, this.isLoading ? h("div", { class: "OtpLoaderContainer" }, h("span", { class: "OtpLoader" })) : this.hasConfigErrors ? h("div", { class: "OtpError" }, h("div", { class: "OtpErrorHeader" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, h("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" })), h("h2", null, R("errorHeader", this.language))), h("p", null, this.errorMessage), h("button", { class: "OtpButton error", onClick: this.manualClosePopup, "aria-label": R("close", this.language) }, R("close", this.language))) : h(Fe, null, h("div", { class: "otp-description" }, this.showResendOtp ? h("p", { class: "OtpNoticeMessage", role: "alert" }, R("otpExpiredMessage", this.language)) : h(Fe, null, h("p", { class: this.isLastWarning ? "LastWarningMessage" : "" }, R(this.isLastWarning ? "popupMessageLastWarning" : "popupMessage", this.language)), this.hasErrors && h("p", { class: "OtpErrorMessage", role: "alert" }, this.errorMessage))), h("div", { class: "OtpFieldWrapper" }, h("h2", null, R("otpHeading", this.language)), h("div", { class: "OtpField" }, this.otp.map((e, t) => {
589
+ return h("div", { key: "767f774b7244dbe264590e32364f17d7fcde0fa5", ref: (e) => this.stylingContainer = e }, this.showPopup && h("div", { key: "ed8bd21c48b9afa91bca17568bd90dcb26d1d171", class: "OtpPopupOverlay" }, h("div", { key: "2047ade4a5f2d62576f15368c86359c0c88014f7", class: `OtpPopupContent ${this.shakeError ? "shake" : ""}` }, this.isLoading ? h("div", { class: "OtpLoaderContainer" }, h("span", { class: "OtpLoader" })) : this.hasConfigErrors ? h("div", { class: "OtpError" }, h("div", { class: "OtpErrorHeader" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, h("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" })), h("h2", null, R("errorHeader", this.language))), h("p", null, this.errorMessage), h("button", { class: "OtpButton error", onClick: this.manualClosePopup, "aria-label": R("close", this.language) }, R("close", this.language))) : h(Fe, null, h("div", { class: "otp-description" }, this.showResendOtp ? h("p", { class: "OtpNoticeMessage", role: "alert" }, R("otpExpiredMessage", this.language)) : h(Fe, null, h("p", { class: this.isLastWarning ? "LastWarningMessage" : "" }, R(this.isLastWarning ? "popupMessageLastWarning" : "popupMessage", this.language)), this.hasErrors && h("p", { class: "OtpErrorMessage", role: "alert" }, this.errorMessage))), h("div", { class: "OtpFieldWrapper" }, h("h2", null, R("otpHeading", this.language)), h("div", { class: "OtpField" }, this.otp.map((e, t) => {
590
590
  const i = this.config.inputLength % 2 === 0 && t === this.config.inputLength / 2 - 1;
591
- return h("input", { key: t, ref: (o) => this.setOtpInputRef(o, t), id: `otp-input-${t}`, type: "text", class: `otp-box ${i ? "space" : ""} ${e ? "filled" : ""} ${this.hasErrors ? "error" : ""}`, maxLength: 1, value: e, onInput: (o) => this.handleOtpInput(o, t), onKeyDown: (o) => this.handleKeyDown(o, t), onPaste: (o) => this.handleOnPasteOtp(o), disabled: this.inputDisabled, autoComplete: "off", "aria-label": `${R("otpDigit", this.language)} ${t + 1}`, "aria-invalid": this.hasErrors });
591
+ return h("input", { key: t, ref: (o) => this.setOtpInputRef(o, t), id: `otp-input-${t}`, type: "text", inputmode: this.mode, pattern: this.mode === "numeric" ? "[0-9]" : void 0, class: `otp-box ${i ? "space" : ""} ${e ? "filled" : ""} ${this.hasErrors ? "error" : ""}`, maxLength: 1, value: e, onInput: (o) => this.handleOtpInput(o, t), onKeyDown: (o) => this.handleKeyDown(o, t), onPaste: (o) => this.handleOnPasteOtp(o), disabled: this.inputDisabled, autoComplete: "off", "aria-label": `${R("otpDigit", this.language)} ${t + 1}`, "aria-invalid": this.hasErrors });
592
592
  })), h("div", { class: "OtpTimerContainer" }, h("div", { class: `OtpTimer ${this.isLastWarning ? "warning" : ""} ${this.timeLeft < 60 ? "critical" : ""}`, role: "timer", "aria-live": "polite" }, h("svg", { class: "timer-icon", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, h("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" })), h("span", { class: "timer-text" }, this.formatTime(this.timeLeft), " ", R("minutes", this.language))))), this.isSuccess && h("div", { class: "OtpSuccessOverlay" }, h("svg", { class: "success-icon", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" }, h("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" })), h("span", null, R("otpVerified", this.language))), h("div", { class: "OtpActionButtons" }, this.showResendOtp ? h("button", { class: "OtpButton primary", onClick: this.handleResendOtp, disabled: this.isLoading, "aria-label": R("resendOtp", this.language) }, R("resendOtp", this.language)) : h("button", { class: `OtpButton primary ${this.isValidating ? "loading" : ""}`, onClick: this.submitOtp, disabled: this.otp.join("").length !== this.config.inputLength || this.isValidating || this.isLoading, "aria-label": R("submit", this.language), "aria-busy": this.isValidating }, this.isValidating ? h(Fe, null, h("span", { class: "button-spinner" }), h("span", { class: "button-text" }, R("verifying", this.language))) : h("span", { class: "button-text" }, R("submit", this.language))), h("button", { class: "OtpButton secondary", onClick: this.manualClosePopup, disabled: this.isValidating, "aria-label": R("close", this.language) }, R("close", this.language)))))));
593
593
  }
594
594
  get el() {
@@ -1,7 +1,7 @@
1
- import { b as n, p as l } from "./index-2ff63899-BsECgNzX.js";
1
+ import { b as n, p as l } from "./index-2ff63899-BweANwnC.js";
2
2
  import { g as r } from "./app-globals-0f993ce5-Cgk0KVAu.js";
3
3
  var s = () => {
4
4
  const e = import.meta.url, t = {};
5
5
  return e !== "" && (t.resourcesUrl = new URL(".", e).href), l(t);
6
6
  };
7
- s().then(async (e) => (await r(), 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"], dynamicHeight: [32], cashierInfoUrl: [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"], 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)));
7
+ s().then(async (e) => (await r(), 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"], dynamicHeight: [32], cashierInfoUrl: [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 +1 @@
1
- "use strict";var o=(t,n,r)=>new Promise((c,a)=>{var p=e=>{try{l(r.next(e))}catch(s){a(s)}},h=e=>{try{l(r.throw(e))}catch(s){a(s)}},l=e=>e.done?c(e.value):Promise.resolve(e.value).then(p,h);l((r=r.apply(t,n)).next())});const u=require("./index-2ff63899-DXZPV76B.cjs"),d=require("./app-globals-0f993ce5-BD-Q0C8R.cjs");var i=typeof document!="undefined"?document.currentScript:null,g=()=>{const t=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:i&&i.tagName.toUpperCase()==="SCRIPT"&&i.src||new URL("stencil/user-deposit-withdrawal-C0vLyEL_.cjs",document.baseURI).href,n={};return t!==""&&(n.resourcesUrl=new URL(".",t).href),u.promiseResolve(n)};g().then(t=>o(exports,null,function*(){return yield d.globalScripts(),u.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"],dynamicHeight:[32],cashierInfoUrl:[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"],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"]}]]]],t)}));
1
+ "use strict";var o=(t,n,r)=>new Promise((c,a)=>{var p=e=>{try{l(r.next(e))}catch(s){a(s)}},d=e=>{try{l(r.throw(e))}catch(s){a(s)}},l=e=>e.done?c(e.value):Promise.resolve(e.value).then(p,d);l((r=r.apply(t,n)).next())});const u=require("./index-2ff63899-CATMSVBc.cjs"),h=require("./app-globals-0f993ce5-BD-Q0C8R.cjs");var i=typeof document!="undefined"?document.currentScript:null,g=()=>{const t=typeof document=="undefined"?require("url").pathToFileURL(__filename).href:i&&i.tagName.toUpperCase()==="SCRIPT"&&i.src||new URL("stencil/user-deposit-withdrawal-Dwhtkpqf.cjs",document.baseURI).href,n={};return t!==""&&(n.resourcesUrl=new URL(".",t).href),u.promiseResolve(n)};g().then(t=>o(exports,null,function*(){return yield h.globalScripts(),u.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"],dynamicHeight:[32],cashierInfoUrl:[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"]}]]]],t)}));
@@ -14,12 +14,12 @@ var a = (t, n, l) => new Promise((o, i) => {
14
14
  }, r = (e) => e.done ? o(e.value) : Promise.resolve(e.value).then(u, p);
15
15
  r((l = l.apply(t, n)).next());
16
16
  });
17
- import { b as c, p as h } from "./index-2ff63899-XAPDAvql.js";
17
+ import { b as c, p as h } from "./index-2ff63899-C95JGHvF.js";
18
18
  import { g as d } from "./app-globals-0f993ce5-Cgk0KVAu.js";
19
19
  var g = () => {
20
20
  const t = import.meta.url, n = {};
21
21
  return t !== "" && (n.resourcesUrl = new URL(".", t).href), h(n);
22
22
  };
23
23
  g().then((t) => a(void 0, null, function* () {
24
- return yield d(), c([["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"], dynamicHeight: [32], cashierInfoUrl: [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"], 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"] }]]]], t);
24
+ return yield d(), c([["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"], dynamicHeight: [32], cashierInfoUrl: [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"] }]]]], t);
25
25
  }));