@everymatrix/casino-header-controller 1.88.6 → 1.88.8
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.
- package/components/{CasinoHamburgerMenu-UB4lUK8a.js → CasinoHamburgerMenu-BKeVVSh0.js} +1 -1
- package/components/{CasinoHamburgerMenu-DPAWsxcB.cjs → CasinoHamburgerMenu-BapU8EZf.cjs} +1 -1
- package/components/{CasinoHamburgerMenu-DqghAECH.js → CasinoHamburgerMenu-CgpqxPWm.js} +1 -1
- package/components/{CasinoHeaderController-Zo5oR6Ny.cjs → CasinoHeaderController-BxGv7wlb.cjs} +2 -2
- package/components/{CasinoHeaderController-BHdOQzEB.js → CasinoHeaderController-DKfMCuk2.js} +7 -8
- package/components/{CasinoHeaderController-mDxkeseY.js → CasinoHeaderController-DOnYD0OY.js} +7 -7
- package/components/{CasinoSlider-BwBiBR0J.cjs → CasinoSlider-2LmHZHis.cjs} +1 -1
- package/components/{CasinoSlider-vs-a69B5.js → CasinoSlider-Bwlk7Ot8.js} +1 -1
- package/components/{CasinoSlider-DhfUAihw.js → CasinoSlider-DFOGZdId.js} +1 -1
- package/components/{PlayerAccountBalanceModal-DMJZhpHI.js → PlayerAccountBalanceModal-BUzUnZsW.js} +1 -1
- package/components/{PlayerAccountBalanceModal-Cn5Akbrr.js → PlayerAccountBalanceModal-CAJ8Ft2p.js} +1 -1
- package/components/{PlayerAccountBalanceModal-DidSHQxn.cjs → PlayerAccountBalanceModal-DPHvPctg.cjs} +1 -1
- package/components/{PlayerDeposit-Ca_XbeKW.cjs → PlayerDeposit-6XYC15K4.cjs} +1 -1
- package/components/{PlayerDeposit-Ccb-sS7P.js → PlayerDeposit-eagO8LSv.js} +1 -1
- package/components/{PlayerDeposit-DWN32Dbz.js → PlayerDeposit-lajscDRy.js} +1 -1
- package/es2015/casino-header-controller.cjs +1 -1
- package/es2015/casino-header-controller.js +1 -1
- package/esnext/casino-header-controller.js +1 -1
- package/package.json +1 -1
- package/stencil/{gamification-dropdown-Bror5k2q.cjs → gamification-dropdown-CZF5qed-.cjs} +1 -1
- package/stencil/{gamification-dropdown-DgiKrpLV.js → gamification-dropdown-D9jqVo7w.js} +1 -1
- package/stencil/{gamification-dropdown-Crg-YDth.js → gamification-dropdown-DSE_lpH9.js} +1 -1
- package/stencil/gamification-dropdown-f0760153-CRhTFG-Y.cjs +1 -0
- package/stencil/{gamification-dropdown-f2984ee4-DHVTr8ZG.js → gamification-dropdown-f0760153-K-eenscf.js} +2 -2
- package/stencil/{gamification-dropdown-f2984ee4-BMoEV6k7.js → gamification-dropdown-f0760153-zJC8b1gN.js} +2 -3
- package/stencil/{gamification-dropdown_4-C3zsyE_m.cjs → gamification-dropdown_4-C1S-kug8.cjs} +1 -1
- package/stencil/{gamification-dropdown_4-91E9LYZ7.js → gamification-dropdown_4-CSakqeKb.js} +4 -4
- package/stencil/{gamification-dropdown_4-EZ437fKd.js → gamification-dropdown_4-Sh5SD8AV.js} +4 -4
- package/stencil/{index-2ff63899-yh4FXjFo.js → index-2ff63899-BVVddQHZ.js} +1 -1
- package/stencil/{index-2ff63899-COoMiIKA.cjs → index-2ff63899-CUfFeSdi.cjs} +1 -1
- package/stencil/{index-2ff63899-DRkp431j.js → index-2ff63899-CxlsRFEC.js} +1 -1
- package/stencil/{index-71b1bdfa-DzRPLnAJ.js → index-71b1bdfa-B-OeN7nu.js} +4 -4
- package/stencil/{index-71b1bdfa-CzLMxSAA.cjs → index-71b1bdfa-CtRJq3ig.cjs} +1 -1
- package/stencil/{index-71b1bdfa-BcS2siXd.js → index-71b1bdfa-l3Xk4raZ.js} +4 -4
- package/stencil/{player-elevate-card-DVTCzmU5.cjs → player-elevate-card-BFbPL87o.cjs} +1 -1
- package/stencil/{player-elevate-card-CfjXYnxk.js → player-elevate-card-BJ-LV6F8.js} +2 -2
- package/stencil/{player-elevate-card-WlZbXPxT.js → player-elevate-card-L8ZqnVBk.js} +2 -2
- package/stencil/{player-elevate-card-items-b4571def-DwP_rzfI.js → player-elevate-card-items-b4571def-BgDj5KLs.js} +1 -1
- package/stencil/{player-elevate-card-items-b4571def-BguVSqj-.cjs → player-elevate-card-items-b4571def-CgOcC8Y3.cjs} +1 -1
- package/stencil/{player-elevate-card-items-b4571def-D64puWBR.js → player-elevate-card-items-b4571def-D4w0PDog.js} +1 -1
- package/stencil/{player-elevate-pointcard-we5zexJh.js → player-elevate-pointcard-CBsoo3XH.js} +2 -2
- package/stencil/{player-elevate-pointcard-D3Uhr8yw.cjs → player-elevate-pointcard-CO-lIs9Y.cjs} +1 -1
- package/stencil/{player-elevate-pointcard-BbUTo49l.js → player-elevate-pointcard-Dh4qmcOc.js} +2 -2
- package/stencil/{player-rakeback-card-D8_GaQ9C.js → player-rakeback-card-BSQ9O-U9.js} +1 -1
- package/stencil/{player-rakeback-card-DOsgRtwi.js → player-rakeback-card-CWDB_bNr.js} +1 -1
- package/stencil/{player-rakeback-card-BntkMugV.cjs → player-rakeback-card-CzlkKaxP.cjs} +1 -1
- package/stencil/player-step-up-auth_2-B0Ya0RCH.cjs +78 -0
- package/stencil/{player-step-up-auth_2-DW3kilOn.js → player-step-up-auth_2-BAMz2k7_.js} +2 -2
- package/stencil/{player-step-up-auth_2-CdVoyTBA.js → player-step-up-auth_2-VW-Vue4F.js} +45 -46
- package/stencil/{user-deposit-withdrawal-Bmlp014M.cjs → user-deposit-withdrawal-D8t_j49U.cjs} +1 -1
- package/stencil/{user-deposit-withdrawal-DkjH5Bnt.js → user-deposit-withdrawal-DGPHMrWO.js} +1 -1
- package/stencil/{user-deposit-withdrawal-Cady9MLS.js → user-deposit-withdrawal-DHK3f2R9.js} +1 -1
- package/stencil/gamification-dropdown-f2984ee4-Dn0wCW-j.cjs +0 -1
- package/stencil/player-step-up-auth_2-Dj9m4nvm.cjs +0 -78
|
@@ -0,0 +1,78 @@
|
|
|
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-CUfFeSdi.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:"76ac4d8968da87098db7f2b7f78b27edb7928185",ref:e=>this.stylingContainer=e},this.showPopup&&c.h("div",{key:"44909cc96a9b5e86cab28aa7fdca261d0b749253",class:"OtpPopupOverlay"},c.h("div",{key:"6e424d5ae5dedae3f83782c9a4c9e483c88357aa",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:"numeric",pattern:"[0-9]",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
|
+
* eventsource.js
|
|
3
|
+
* Available under MIT License (MIT)
|
|
4
|
+
* https://github.com/Yaffle/EventSource/
|
|
5
|
+
*/(function(e,t){(function(r){var n=r.setTimeout,p=r.clearTimeout,E=r.XMLHttpRequest,U=r.XDomainRequest,x=r.ActiveXObject,b=r.EventSource,L=r.document,we=r.Promise,W=r.fetch,Te=r.Response,q=r.TextDecoder,re=r.TextEncoder,v=r.AbortController;if(typeof window!="undefined"&&typeof L!="undefined"&&!("readyState"in L)&&L.body==null&&(L.readyState="loading",window.addEventListener("load",function(i){L.readyState="complete"},!1)),E==null&&x!=null&&(E=function(){return new x("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(i){function d(){}return d.prototype=i,new d}),Date.now||(Date.now=function(){return new Date().getTime()}),v==null){var Y=W;W=function(i,d){var h=d.signal;return Y(i,{headers:d.headers,credentials:d.credentials,cache:d.cache}).then(function(o){var S=o.body.getReader();return h._reader=S,h._aborted&&h._reader.cancel(),{status:o.status,statusText:o.statusText,headers:o.headers,body:{getReader:function(){return S}}}})},v=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function ue(){this.bitsNeeded=0,this.codePoint=0}ue.prototype.decode=function(i){function d(D,P,w){if(w===1)return D>=128>>P&&D<<P<=2047;if(w===2)return D>=2048>>P&&D<<P<=55295||D>=57344>>P&&D<<P<=65535;if(w===3)return D>=65536>>P&&D<<P<=1114111;throw new Error}function h(D,P){if(D===6*1)return P>>6>15?3:P>31?2:1;if(D===6*2)return P>15?3:2;if(D===6*3)return 3;throw new Error}for(var o=65533,S="",f=this.bitsNeeded,C=this.codePoint,$=0;$<i.length;$+=1){var O=i[$];f!==0&&(O<128||O>191||!d(C<<6|O&63,f-6,h(f,C)))&&(f=0,C=o,S+=String.fromCharCode(C)),f===0?(O>=0&&O<=127?(f=0,C=O):O>=192&&O<=223?(f=6*1,C=O&31):O>=224&&O<=239?(f=6*2,C=O&15):O>=240&&O<=247?(f=6*3,C=O&7):(f=0,C=o),f!==0&&!d(C,f,h(f,C))&&(f=0,C=o)):(f-=6,C=C<<6|O&63),f===0&&(C<=65535?S+=String.fromCharCode(C):(S+=String.fromCharCode(55296+(C-65535-1>>10)),S+=String.fromCharCode(56320+(C-65535-1&1023))))}return this.bitsNeeded=f,this.codePoint=C,S};var ce=function(){try{return new q().decode(new re().encode("test"),{stream:!0})==="test"}catch(i){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+i)}return!1};(q==null||re==null||!ce())&&(q=ue);var A=function(){};function ie(i){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=A,this.onload=A,this.onerror=A,this.onreadystatechange=A,this._contentType="",this._xhr=i,this._sendTimeout=0,this._abort=A}ie.prototype.open=function(i,d){this._abort(!0);var h=this,o=this._xhr,S=1,f=0;this._abort=function(w){h._sendTimeout!==0&&(p(h._sendTimeout),h._sendTimeout=0),(S===1||S===2||S===3)&&(S=4,o.onload=A,o.onerror=A,o.onabort=A,o.onprogress=A,o.onreadystatechange=A,o.abort(),f!==0&&(p(f),f=0),w||(h.readyState=4,h.onabort(null),h.onreadystatechange())),S=0};var C=function(){if(S===1){var w=0,I="",ge=void 0;if("contentType"in o)w=200,I="OK",ge=o.contentType;else try{w=o.status,I=o.statusText,ge=o.getResponseHeader("Content-Type")}catch(_e){w=0,I="",ge=void 0}w!==0&&(S=2,h.readyState=2,h.status=w,h.statusText=I,h._contentType=ge,h.onreadystatechange())}},$=function(){if(C(),S===2||S===3){S=3;var w="";try{w=o.responseText}catch(I){}h.readyState=3,h.responseText=w,h.onprogress()}},O=function(w,I){if((I==null||I.preventDefault==null)&&(I={preventDefault:A}),$(),S===1||S===2||S===3){if(S=4,f!==0&&(p(f),f=0),h.readyState=4,w==="load")h.onload(I);else if(w==="error")h.onerror(I);else if(w==="abort")h.onabort(I);else throw new TypeError;h.onreadystatechange()}},D=function(w){o!=null&&(o.readyState===4?(!("onload"in o)||!("onerror"in o)||!("onabort"in o))&&O(o.responseText===""?"error":"load",w):o.readyState===3?"onprogress"in o||$():o.readyState===2&&C())},P=function(){f=n(function(){P()},500),o.readyState===3&&$()};"onload"in o&&(o.onload=function(w){O("load",w)}),"onerror"in o&&(o.onerror=function(w){O("error",w)}),"onabort"in o&&(o.onabort=function(w){O("abort",w)}),"onprogress"in o&&(o.onprogress=$),"onreadystatechange"in o&&(o.onreadystatechange=function(w){D(w)}),("contentType"in o||!("ontimeout"in E.prototype))&&(d+=(d.indexOf("?")===-1?"?":"&")+"padding=true"),o.open(i,d,!0),"readyState"in o&&(f=n(function(){P()},0))},ie.prototype.abort=function(){this._abort(!1)},ie.prototype.getResponseHeader=function(i){return this._contentType},ie.prototype.setRequestHeader=function(i,d){var h=this._xhr;"setRequestHeader"in h&&h.setRequestHeader(i,d)},ie.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},ie.prototype.send=function(){if((!("ontimeout"in E.prototype)||!("sendAsBinary"in E.prototype)&&!("mozAnon"in E.prototype))&&L!=null&&L.readyState!=null&&L.readyState!=="complete"){var i=this;i._sendTimeout=n(function(){i._sendTimeout=0,i.send()},4);return}var d=this._xhr;"withCredentials"in d&&(d.withCredentials=this.withCredentials);try{d.send(void 0)}catch(h){throw h}};function ne(i){return i.replace(/[A-Z]/g,function(d){return String.fromCharCode(d.charCodeAt(0)+32)})}function Q(i){for(var d=Object.create(null),h=i.split(`\r
|
|
6
|
+
`),o=0;o<h.length;o+=1){var S=h[o],f=S.split(": "),C=f.shift(),$=f.join(": ");d[ne(C)]=$}this._map=d}Q.prototype.get=function(i){return this._map[ne(i)]},E!=null&&E.HEADERS_RECEIVED==null&&(E.HEADERS_RECEIVED=2);function he(){}he.prototype.open=function(i,d,h,o,S,f,C){i.open("GET",S);var $=0;i.onprogress=function(){var D=i.responseText,P=D.slice($);$+=P.length,h(P)},i.onerror=function(D){D.preventDefault(),o(new Error("NetworkError"))},i.onload=function(){o(null)},i.onabort=function(){o(null)},i.onreadystatechange=function(){if(i.readyState===E.HEADERS_RECEIVED){var D=i.status,P=i.statusText,w=i.getResponseHeader("Content-Type"),I=i.getAllResponseHeaders();d(D,P,w,new Q(I))}},i.withCredentials=f;for(var O in C)Object.prototype.hasOwnProperty.call(C,O)&&i.setRequestHeader(O,C[O]);return i.send(),i};function Ee(i){this._headers=i}Ee.prototype.get=function(i){return this._headers.get(i)};function ae(){}ae.prototype.open=function(i,d,h,o,S,f,C){var $=null,O=new v,D=O.signal,P=new q;return W(S,{headers:C,credentials:f?"include":"same-origin",signal:D,cache:"no-store"}).then(function(w){return $=w.body.getReader(),d(w.status,w.statusText,w.headers.get("Content-Type"),new Ee(w.headers)),new we(function(I,ge){var _e=function(){$.read().then(function(J){if(J.done)I(void 0);else{var G=P.decode(J.value,{stream:!0});h(G),_e()}}).catch(function(J){ge(J)})};_e()})}).catch(function(w){if(w.name!=="AbortError")return w}).then(function(w){o(w)}),{abort:function(){$!=null&&$.cancel(),O.abort()}}};function k(){this._listeners=Object.create(null)}function M(i){n(function(){throw i},0)}k.prototype.dispatchEvent=function(i){i.target=this;var d=this._listeners[i.type];if(d!=null)for(var h=d.length,o=0;o<h;o+=1){var S=d[o];try{typeof S.handleEvent=="function"?S.handleEvent(i):S.call(this,i)}catch(f){M(f)}}},k.prototype.addEventListener=function(i,d){i=String(i);var h=this._listeners,o=h[i];o==null&&(o=[],h[i]=o);for(var S=!1,f=0;f<o.length;f+=1)o[f]===d&&(S=!0);S||o.push(d)},k.prototype.removeEventListener=function(i,d){i=String(i);var h=this._listeners,o=h[i];if(o!=null){for(var S=[],f=0;f<o.length;f+=1)o[f]!==d&&S.push(o[f]);S.length===0?delete h[i]:h[i]=S}};function oe(i){this.type=i,this.target=void 0}function Re(i,d){oe.call(this,i),this.data=d.data,this.lastEventId=d.lastEventId}Re.prototype=Object.create(oe.prototype);function g(i,d){oe.call(this,i),this.status=d.status,this.statusText=d.statusText,this.headers=d.headers}g.prototype=Object.create(oe.prototype);function l(i,d){oe.call(this,i),this.error=d.error}l.prototype=Object.create(oe.prototype);var a=-1,u=0,s=1,m=2,y=-1,T=0,R=1,j=2,N=3,Z=/^text\/event\-stream(;.*)?$/i,be=1e3,pe=18e6,fe=function(i,d){var h=i==null?d:parseInt(i,10);return h!==h&&(h=d),se(h)},se=function(i){return Math.min(Math.max(i,be),pe)},H=function(i,d,h){try{typeof d=="function"&&d.call(i,h)}catch(o){M(o)}};function z(i,d){k.call(this),d=d||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,it(this,i,d)}function Oe(){return E!=null&&"withCredentials"in E.prototype||U==null?new E:new U}var De=W!=null&&Te!=null&&"body"in Te.prototype;function it(i,d,h){d=String(d);var o=!!h.withCredentials,S=h.lastEventIdQueryParameterName||"lastEventId",f=se(1e3),C=fe(h.heartbeatTimeout,45e3),$="",O=f,D=!1,P=0,w=h.headers||{},I=h.Transport,ge=De&&I==null?void 0:new ie(I!=null?new I:Oe()),_e=I!=null&&typeof I!="string"?new I:ge==null?new ae:new he,J=void 0,G=0,de=a,Pe="",Le="",me="",$e="",X=T,ze=0,Me=0,nt=function(V,F,ee,te){if(de===u)if(V===200&&ee!=null&&Z.test(ee)){de=s,D=Date.now(),O=f,i.readyState=s;var K=new g("open",{status:V,statusText:F,headers:te});i.dispatchEvent(K),H(i,i.onopen,K)}else{var B="";V!==200?(F&&(F=F.replace(/\s+/g," ")),B="EventSource's response has a status "+V+" "+F+" that is not 200. Aborting the connection."):B="EventSource's response has a Content-Type specifying an unsupported type: "+(ee==null?"-":ee.replace(/\s+/g," "))+". Aborting the connection.",Fe();var K=new g("error",{status:V,statusText:F,headers:te});i.dispatchEvent(K),H(i,i.onerror,K),console.error(B)}},at=function(V){if(de===s){for(var F=-1,ee=0;ee<V.length;ee+=1){var te=V.charCodeAt(ee);(te===10||te===13)&&(F=ee)}var K=(F!==-1?$e:"")+V.slice(0,F+1);$e=(F===-1?$e:"")+V.slice(F+1),V!==""&&(D=Date.now(),P+=V.length);for(var B=0;B<K.length;B+=1){var te=K.charCodeAt(B);if(X===y&&te===10)X=T;else if(X===y&&(X=T),te===13||te===10){if(X!==T){X===R&&(Me=B+1);var ve=K.slice(ze,Me-1),ye=K.slice(Me+(Me<B&&K.charCodeAt(Me)===32?1:0),B);ve==="data"?(Pe+=`
|
|
7
|
+
`,Pe+=ye):ve==="id"?Le=ye:ve==="event"?me=ye:ve==="retry"?(f=fe(ye,f),O=f):ve==="heartbeatTimeout"&&(C=fe(ye,C),G!==0&&(p(G),G=n(function(){ke()},C)))}if(X===T){if(Pe!==""){$=Le,me===""&&(me="message");var xe=new Re(me,{data:Pe.slice(1),lastEventId:Le});if(i.dispatchEvent(xe),me==="open"?H(i,i.onopen,xe):me==="message"?H(i,i.onmessage,xe):me==="error"&&H(i,i.onerror,xe),de===m)return}Pe="",me=""}X=te===13?y:T}else X===T&&(ze=B,X=R),X===R?te===58&&(Me=B+1,X=j):X===j&&(X=N)}}},Be=function(V){if(de===s||de===u){de=a,G!==0&&(p(G),G=0),G=n(function(){ke()},O),O=se(Math.min(f*16,O*2)),i.readyState=u;var F=new l("error",{error:V});i.dispatchEvent(F),H(i,i.onerror,F),V!=null&&console.error(V)}},Fe=function(){de=m,J!=null&&(J.abort(),J=void 0),G!==0&&(p(G),G=0),i.readyState=m},ke=function(){if(G=0,de!==a){if(!D&&J!=null)Be(new Error("No activity within "+C+" milliseconds. "+(de===u?"No response received.":P+" chars received.")+" Reconnecting.")),J!=null&&(J.abort(),J=void 0);else{var V=Math.max((D||Date.now())+C-Date.now(),1);D=!1,G=n(function(){ke()},V)}return}D=!1,P=0,G=n(function(){ke()},C),de=u,Pe="",me="",Le=$,$e="",ze=0,Me=0,X=T;var F=d;if(d.slice(0,5)!=="data:"&&d.slice(0,5)!=="blob:"&&$!==""){var ee=d.indexOf("?");F=ee===-1?d:d.slice(0,ee+1)+d.slice(ee+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(ye,xe){return xe===S?"":ye}),F+=(d.indexOf("?")===-1?"?":"&")+S+"="+encodeURIComponent($)}var te=i.withCredentials,K={};K.Accept="text/event-stream";var B=i.headers;if(B!=null)for(var ve in B)Object.prototype.hasOwnProperty.call(B,ve)&&(K[ve]=B[ve]);try{J=_e.open(ge,nt,at,Be,F,te,K)}catch(ye){throw Fe(),ye}};i.url=d,i.readyState=u,i.withCredentials=o,i.headers=w,i._close=Fe,ke()}z.prototype=Object.create(k.prototype),z.prototype.CONNECTING=u,z.prototype.OPEN=s,z.prototype.CLOSED=m,z.prototype.close=function(){this._close()},z.CONNECTING=u,z.OPEN=s,z.CLOSED=m,z.prototype.withCredentials=void 0;var Ve=b;E!=null&&(b==null||!("withCredentials"in b.prototype))&&(Ve=z),function(i){{var d=i(t);d!==void 0&&(e.exports=d)}}(function(i){i.EventSourcePolyfill=z,i.NativeEventSource=b,i.EventSource=Ve})})(typeof globalThis=="undefined"?typeof window!="undefined"?window:typeof self!="undefined"?self:Ne:globalThis)})(He,He.exports);const Ye="user-deposit-withdrawal",Ge=["mm-hcback-to-merchant","mm-hc-back-tomerchant","mm-hc-sports","mm-hc-casino","mm-hc-contact","mm-wm-hc-init-deposit","mm-wm-hc-init-deposit-quick"],We={TWO_FACTOR_AUTH:"TWO_FACTOR_AUTH_NOTIFICATION",SESSION_EXPIRATION:"SESSION_EXPIRATION"},vt={FAILED_2FA:"failed2FA"},le={OPEN_FULL_CASHIER:"MMFE:openFullCashier",SET_QUICK_DEPOSIT_HEIGHT:"MMFE:setQuickDepositHeight",SET_IFRAME_HEIGHT:"MMFE:setIFrameHeight",SELECTED_PAYMENT_METHOD:"MMFE:selectedPaymentMethod",PROCEED_PAYMENT:"MMFE:proceedPayment",CANCEL_PAYMENT:"MMFE:cancelPayment",RESET_OTP:"MMFE:ResetOTP"},yt=()=>{},Ie={PROCEED:{[le.PROCEED_PAYMENT]:"true"},CANCEL:{[le.CANCEL_PAYMENT]:"true"},RESET:{[le.RESET_OTP]:"true"},PROCEED_FALSE:{[le.PROCEED_PAYMENT]:"false"}},St=`:host {
|
|
8
|
+
font: inherit;
|
|
9
|
+
display: block;
|
|
10
|
+
height: 100%;
|
|
11
|
+
container-type: inline-size;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.DepositWithdrawalContainer {
|
|
15
|
+
container-type: inline-size;
|
|
16
|
+
container-name: deposit-container;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.CategoryTitle {
|
|
20
|
+
font-size: var(--emw--font-size-x-large, 26px);
|
|
21
|
+
color: var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.MenuReturnButton {
|
|
25
|
+
font: inherit;
|
|
26
|
+
color: var(--emw--color-gray-300, #58586B);
|
|
27
|
+
display: inline-flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
column-gap: 10px;
|
|
30
|
+
margin-bottom: 10px;
|
|
31
|
+
}
|
|
32
|
+
.MenuReturnButton svg {
|
|
33
|
+
fill: var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));
|
|
34
|
+
}
|
|
35
|
+
.MenuReturnButton h2.CategoryTitleMobile {
|
|
36
|
+
font-size: 16px;
|
|
37
|
+
color: var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.ErrorMessage {
|
|
41
|
+
color: var(--emw--pam-color-typography, var(--emw--color-typography, #FFFFFF));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.DepositWithdrawalWrapper {
|
|
45
|
+
width: 100%;
|
|
46
|
+
margin: 0;
|
|
47
|
+
padding: 50px;
|
|
48
|
+
box-sizing: border-box;
|
|
49
|
+
overflow-y: scroll;
|
|
50
|
+
}
|
|
51
|
+
.DepositWithdrawalWrapper iframe {
|
|
52
|
+
border-width: 0;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.ShortCashier.DepositWithdrawalWrapper {
|
|
56
|
+
height: 500px;
|
|
57
|
+
}
|
|
58
|
+
.ShortCashier.CategoryTitle.CategoryTitle {
|
|
59
|
+
margin-right: 20px;
|
|
60
|
+
padding-top: 20px;
|
|
61
|
+
color: var(--emw--color-black, #000000);
|
|
62
|
+
}
|
|
63
|
+
.ShortCashier .ErrorMessage {
|
|
64
|
+
margin: auto;
|
|
65
|
+
width: 90%;
|
|
66
|
+
margin-top: 70px;
|
|
67
|
+
text-align: center;
|
|
68
|
+
color: var(--emw--color-black, #000000);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@container (max-width: 768px) {
|
|
72
|
+
.DepositWithdrawalWrapper {
|
|
73
|
+
padding: 20px 15px;
|
|
74
|
+
}
|
|
75
|
+
.DepositWithdrawalWrapper:not(.ShortCashier) {
|
|
76
|
+
overflow: visible;
|
|
77
|
+
}
|
|
78
|
+
}`,wt=St;et.extend(mt);const rt=class{constructor(e){c.registerInstance(this,e),this.sseStream=null,this.selectedPaymentMethod=null,this.sseReconnectAttempts=0,this.sseReconnectTimer=null,this.sseShouldStayConnected=!1,this.SSE_MAX_RECONNECT_ATTEMPTS=5,this.SSE_RECONNECT_DELAY_BASE_MS=1e3,this.bindedHandler=this.handleMessage.bind(this),this.userAgent=window.navigator.userAgent,this.isMobile=ft(this.userAgent),this.errorCodes=["21123","21122","21121"],this.toggleScreen=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:this.isMobile},window.location.href)},this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.endpoint=void 0,this.type=void 0,this.channel=void 0,this.language=void 0,this.productType="",this.userId=void 0,this.session=void 0,this.successUrl=void 0,this.cancelUrl=void 0,this.failUrl=void 0,this.sportsUrl=void 0,this.casinoUrl=void 0,this.contactUrl=void 0,this.depositUrl=void 0,this.currency="",this.showBonusSelectionInput="true",this.isShortCashier=!1,this.homeUrl=void 0,this.beforeRedirect=yt,this.forwardCashierRedirects=!1,this.enableStepUpAuth=!1,this.dynamicHeight=void 0,this.cashierInfoUrl=void 0}get typeParameter(){if(this.type==="deposit")return"Deposit";if(this.type==="withdraw")return"Withdraw"}handleClientStylingChange(e,t){e!=t&&Ue(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(e,t){e!=t&&this.clientStylingUrl&&je(this.stylingContainer,this.clientStylingUrl)}componentWillLoad(){return Se(this,null,function*(){if(yield this.loadWidget(),this.translationUrl)return pt(this.translationUrl)})}componentDidLoad(){this.stylingContainer&&(window.emMessageBus!=null?Xe(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription):(this.clientStyling&&Ue(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&je(this.stylingContainer,this.clientStylingUrl))),window.addEventListener("message",this.bindedHandler,!1)}disconnectedCallback(){window.removeEventListener("message",this.bindedHandler,!1),this.stylingSubscription&&this.stylingSubscription.unsubscribe(),this.closeSSEStream()}render(){return c.h(c.Host,{key:"8bcf85e10168473086c2fc396d6e765ab83b7327"},this.enableStepUpAuth&&c.h("player-step-up-auth",{key:"8ebf6cde613402070345c2263466e1d533c76887",endpoint:this.endpoint,userSession:this.session,language:this.language,"client-styling-url":this.clientStylingUrl,"translation-url":this.translationUrl}),c.h("div",{key:"b8f01c9a533ad6609f4db2d0981a716930e21b52",ref:e=>this.stylingContainer=e,class:""},c.h("div",{key:"74c808658271934aee5bc125f0663e56dfcf47b8",class:`DepositWithdrawalWrapper ${this.isShortCashier?"ShortCashier":""}`},!(this.isMobile&&!this.isShortCashier)&&c.h("h2",{key:"70f1afb63dd6fec358b864063123f7910ac25906",class:"CategoryTitle"},Ce(this.typeParameter==="Withdraw"?"Withdraw":"Deposit",this.language)),c.h("div",{key:"83f0175347d8ab1260fa21dafeba9a4692a01b74",style:{marginTop:this.isShortCashier?"30px":"0"}},this.isMobile&&!this.isShortCashier?c.h("div",{class:"MenuReturnButton",onClick:this.toggleScreen},c.h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15"},c.h("defs",null),c.h("g",{transform:"translate(-20 -158)"},c.h("g",{transform:"translate(20 158)"},c.h("path",{class:"aaa",d:"M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z",transform:"translate(15 15) rotate(180)"})))),c.h("h2",{class:"CategoryTitleMobile"},Ce(this.typeParameter==="Withdraw"?"Withdraw":"Deposit",this.language))):null),this.cashierInfoUrl?c.h("iframe",{ref:e=>this.cashierIframeRef=e,width:"100%",allow:"payment",height:this.dynamicHeight,src:this.cashierInfoUrl}):c.h("h3",{innerHTML:this.type==="deposit"?Ce("denyDeposit",this.language):Ce("denyWithdrawal",this.language),class:"ErrorMessage"}))))}loadWidget(){return Se(this,null,function*(){const e={Channel:this.channel,Type:this.typeParameter,SuccessUrl:this.successUrl,CancelUrl:this.cancelUrl,FailUrl:this.failUrl,Language:this.language,productType:this.productType,isShortCashier:this.isShortCashier,currency:this.currency,showBonusSelectionInput:this.showBonusSelectionInput};if(!(Object.values(e).some(t=>t===void 0)||!this.endpoint))try{const t=`${this.endpoint}/v1/player/${this.userId}/payment/GetPaymentSession`,r=yield fetch(t,{method:"POST",headers:{"X-Sessionid":this.session,"Content-Type":"application/json","X-Client-Request-Timestamp":et.utc().format("YYYY-MM-DD HH:mm:ss.SSS")},body:JSON.stringify(e)});if(!r.ok){const p=yield r.text();throw new Error(p)}const n=yield r.json();if(n.CashierInfo)this.cashierInfoUrl=n.CashierInfo.Url;else{let p;if(n.ResponseMessage){let U=this.errorCodes.find(x=>n.ResponseMessage.includes(x))||null;U?p=Ce(`errorCode${U}`,this.language):p=Ce("notFoundErrorCode",this.language)}else p=this.type==="deposit"?Ce("denyDeposit",this.language):Ce("denyWithdrawal",this.language);const E={type:"error",message:p};window.postMessage({type:"DenyDepositOrWithdrawal",data:E},window.location.href)}}catch(t){console.error(t)}})}handleEnableStepUpAuthChange(e){!e&&this.sseStream&&this.closeSSEStream()}handleMessage(e){const t=this.extractPayload(e);if(!t)return;this.applyLayoutHints(t);const r=this.extractCashierRedirectReason(t);if(!r||this.emitForwardedRedirect(e,r))return;const n=this.resolveRedirectPlan(r);n&&this.doRedirect(n.reason,n.targetUrl)}extractCashierRedirectReason(e){if(typeof(e==null?void 0:e.type)=="string"&&Ge.includes(e.type))return e.type;if(typeof(e==null?void 0:e.redirect)=="string"&&Ge.includes(e.redirect))return e.redirect}extractPayload(e){if(!(!(e!=null&&e.data)||typeof e.data!="object"))return e.data}applyLayoutHints(e){if(e[le.OPEN_FULL_CASHIER]==="true"&&(window.postMessage({type:"GoToDeposit"},window.location.href),window.postMessage({type:"CloseShortCashier"},window.location.href)),e[le.SET_QUICK_DEPOSIT_HEIGHT]&&this.isShortCashier&&(this.dynamicHeight=e[le.SET_QUICK_DEPOSIT_HEIGHT].toString()+"px"),e[le.SET_IFRAME_HEIGHT]&&(this.dynamicHeight=e[le.SET_IFRAME_HEIGHT].toString()+"px"),e[le.SELECTED_PAYMENT_METHOD]){const t=e[le.SELECTED_PAYMENT_METHOD];this.selectedPaymentMethod!==t&&(this.selectedPaymentMethod=t,this.sseStream&&this.closeSSEStream(),this.type==="withdraw"&>(t)&&this.enableStepUpAuth&&this.initializeSSE())}if(e["MMFE:vendorRedirect"]){const t=e["MMFE:vendorRedirect"];window.postMessage({type:`${Ye}:mm-open-vendor`,url:t},window.location.href)}}resolveRedirectPlan(e){switch(e){case"mm-hcback-to-merchant":case"mm-hc-back-tomerchant":return this.buildRedirectPlan(e,this.homeUrl);case"mm-hc-sports":return this.buildRedirectPlan(e,this.sportsUrl);case"mm-hc-casino":return this.buildRedirectPlan(window.location.href,this.casinoUrl);case"mm-hc-contact":return window.postMessage({type:"CloseShortCashier"},window.location.href),this.buildRedirectPlan(window.location.href,this.contactUrl);case"mm-wm-hc-init-deposit":case"mm-wm-hc-init-deposit-quick":return window.postMessage({type:"CloseShortCashier"},window.location.href),this.buildRedirectPlan(window.location.href,this.depositUrl);default:return}}buildRedirectPlan(e,t){if(t)return{reason:e,targetUrl:t}}emitForwardedRedirect(e,t){if(!this.forwardCashierRedirects)return!1;const r={type:`${Ye}:${t}`,originalType:t,payload:e.data,origin:e.origin};return window.postMessage(r,window.location.href),!0}doRedirect(e,t){const r={reason:e,url:t,cancel:!1};if(this.beforeRedirect(r),!r.cancel){if(!r.url){window.location.href="/";return}window.location.href=r.url}}initializeSSE(){if(!(this.sseStream&&this.sseStream.readyState!==He.exports.EventSourcePolyfill.CLOSED)){if(!this.endpoint||!this.userId||!this.session||this.type!=="withdraw"){console.warn("[SSE] initializeSSE - missing required props, cannot initialize");return}this.sseShouldStayConnected=!0,this.sseReconnectAttempts=0,this.connectSSE()}}connectSSE(){if(this.sseStream){try{this.sseStream.close()}catch(e){console.warn("[SSE] closeSSEStream - error closing stream:",e)}this.sseStream=null}if(this.sseShouldStayConnected)try{const e=new URL(`/v1/player/${this.userId}/information/updates`,this.endpoint),t={accept:"text/event-stream","X-SessionId":this.session};this.sseStream=new He.exports.EventSourcePolyfill(e,{headers:t}),this.sseStream.addEventListener("open",this.handleSSEOpen.bind(this)),this.sseStream.addEventListener("message",this.handleSSEMessage.bind(this)),this.sseStream.addEventListener("error",this.handleSSEError.bind(this))}catch(e){console.error("[SSE] connectSSE - Failed to create EventSourcePolyfill:",e),this.scheduleReconnect()}}handleSSEOpen(e){console.info("[SSE] handleSSEOpen - connection opened successfully"),this.sseReconnectAttempts=0,this.sseReconnectTimer&&(clearTimeout(this.sseReconnectTimer),this.sseReconnectTimer=null)}handleSSEMessage(e){if(this.enableStepUpAuth)try{const t=JSON.parse(e.data),r=t.type;if(r===We.TWO_FACTOR_AUTH){const{body:{challengeId:n}={}}=t;n?this.triggerStepUpAuth(n):console.error(`${We.TWO_FACTOR_AUTH} received but challengeId not found in body`)}else r===We.SESSION_EXPIRATION&&(console.info("[SSE] SESSION_EXPIRATION received, closing connection"),window.postMessage({type:"SessionExpiration",reason:vt.FAILED_2FA},window.location.href),this.closeSSEStream())}catch(t){console.error("Error parsing SSE message:",t)}}handleSSEError(e){console.warn("[SSE] connection error"),this.sseShouldStayConnected&&this.sseReconnectAttempts<this.SSE_MAX_RECONNECT_ATTEMPTS?this.scheduleReconnect():this.sseReconnectAttempts>=this.SSE_MAX_RECONNECT_ATTEMPTS&&(console.error("[SSE] handleSSEError - max reconnection attempts reached, giving up"),this.closeSSEStream())}scheduleReconnect(){if(!this.sseShouldStayConnected)return;this.sseReconnectTimer&&clearTimeout(this.sseReconnectTimer),this.sseReconnectAttempts++;const e=this.SSE_RECONNECT_DELAY_BASE_MS*Math.pow(2,this.sseReconnectAttempts-1);this.sseReconnectTimer=setTimeout(()=>{this.sseReconnectTimer=null,this.sseShouldStayConnected&&this.connectSSE()},e)}closeSSEStream(){if(this.sseShouldStayConnected=!1,this.sseReconnectTimer&&(clearTimeout(this.sseReconnectTimer),this.sseReconnectTimer=null),this.sseStream){try{this.sseStream.close()}catch(e){console.warn("[SSE] closeSSEStream - error closing stream:",e)}this.sseStream=null}this.sseReconnectAttempts=0}triggerStepUpAuth(e){this.enableStepUpAuth&&window.dispatchEvent(new CustomEvent("stepUpAuthRequired",{detail:{"x-step-up-required":!0,"x-step-up-token":e,flow:"stateful"}}))}getCashierOrigin(){if(!this.cashierInfoUrl)return"*";try{return new URL(this.cashierInfoUrl).origin}catch(e){return console.warn("Failed to parse cashier URL origin, using wildcard:",e),"*"}}sendMessageToCashier(e){var t;if(!(!((t=this.cashierIframeRef)===null||t===void 0)&&t.contentWindow)){console.warn("Cashier iframe not available for postMessage");return}const r=this.getCashierOrigin();this.cashierIframeRef.contentWindow.postMessage(e,r)}handleOtpSuccess(){this.enableStepUpAuth&&(this.sendMessageToCashier(Ie.PROCEED),this.closeSSEStream())}handleManualClosePopup(){this.enableStepUpAuth&&(this.sendMessageToCashier(Ie.CANCEL),this.closeSSEStream())}handleOtpResendRequested(){this.enableStepUpAuth&&(window.dispatchEvent(new CustomEvent("closePopup")),this.sendMessageToCashier(Ie.RESET))}handleOtpSetTimeout(){this.enableStepUpAuth&&this.sendMessageToCashier(Ie.PROCEED_FALSE)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"],enableStepUpAuth:["handleEnableStepUpAuthChange"]}}};rt.style=wt;exports.player_step_up_auth=Ze;exports.user_deposit_withdrawal=rt;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as Xe, h, F as Fe, g as at, H as ot } from "./index-2ff63899-
|
|
1
|
+
import { r as Xe, h, F as Fe, g as at, H as ot } from "./index-2ff63899-CxlsRFEC.js";
|
|
2
2
|
const xe = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
3
3
|
function Ie(e, t) {
|
|
4
4
|
if (e) {
|
|
@@ -43,7 +43,7 @@ function dt(e, t) {
|
|
|
43
43
|
if (!e)
|
|
44
44
|
return;
|
|
45
45
|
const o = e.getRootNode(), p = window[xe];
|
|
46
|
-
let E = p[t]
|
|
46
|
+
let E = p[t] && p[t].sheet;
|
|
47
47
|
E ? p[t].refCount = p[t].refCount + 1 : (E = new CSSStyleSheet(), E.replaceSync(i), p[t] = {
|
|
48
48
|
sheet: E,
|
|
49
49
|
refCount: 1
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
var Se = (e, t, r) => new Promise((n, h) => {
|
|
2
2
|
var E = (b) => {
|
|
3
3
|
try {
|
|
4
|
-
|
|
4
|
+
x(r.next(b));
|
|
5
5
|
} catch (L) {
|
|
6
6
|
h(L);
|
|
7
7
|
}
|
|
8
8
|
}, U = (b) => {
|
|
9
9
|
try {
|
|
10
|
-
|
|
10
|
+
x(r.throw(b));
|
|
11
11
|
} catch (L) {
|
|
12
12
|
h(L);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
14
|
+
}, x = (b) => b.done ? n(b.value) : Promise.resolve(b.value).then(E, U);
|
|
15
|
+
x((r = r.apply(e, t)).next());
|
|
16
16
|
});
|
|
17
|
-
import { r as Ke, h as p, F as We, g as ot, H as st } from "./index-2ff63899-
|
|
17
|
+
import { r as Ke, h as p, F as We, g as ot, H as st } from "./index-2ff63899-BVVddQHZ.js";
|
|
18
18
|
const Ae = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
19
19
|
function Ue(e, t) {
|
|
20
20
|
if (e) {
|
|
@@ -41,8 +41,8 @@ function Ze(e, t, r, n = !1) {
|
|
|
41
41
|
window[Ae] || (window[Ae] = {}), r = lt(e, t);
|
|
42
42
|
const E = r.unsubscribe.bind(r), U = () => {
|
|
43
43
|
if (window[Ae][t]) {
|
|
44
|
-
const
|
|
45
|
-
|
|
44
|
+
const x = window[Ae][t];
|
|
45
|
+
x.refCount > 1 ? x.refCount = x.refCount - 1 : delete window[Ae][t];
|
|
46
46
|
}
|
|
47
47
|
E();
|
|
48
48
|
};
|
|
@@ -56,11 +56,10 @@ function dt(e, t) {
|
|
|
56
56
|
}
|
|
57
57
|
function lt(e, t) {
|
|
58
58
|
return window.emMessageBus.subscribe(t, (r) => {
|
|
59
|
-
var P;
|
|
60
59
|
if (!e)
|
|
61
60
|
return;
|
|
62
61
|
const n = e.getRootNode(), h = window[Ae];
|
|
63
|
-
let E =
|
|
62
|
+
let E = h[t] && h[t].sheet;
|
|
64
63
|
E ? h[t].refCount = h[t].refCount + 1 : (E = new CSSStyleSheet(), E.replaceSync(r), h[t] = {
|
|
65
64
|
sheet: E,
|
|
66
65
|
refCount: 1
|
|
@@ -755,7 +754,7 @@ var Ve = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
755
754
|
(function(r, n) {
|
|
756
755
|
e.exports = n();
|
|
757
756
|
})(Ve, function() {
|
|
758
|
-
var r = 1e3, n = 6e4, h = 36e5, E = "millisecond", U = "second",
|
|
757
|
+
var r = 1e3, n = 6e4, h = 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) {
|
|
759
758
|
var l = ["th", "st", "nd", "rd"], a = g % 100;
|
|
760
759
|
return "[" + g + (l[(a - 20) % 10] || l[a] || l[0]) + "]";
|
|
761
760
|
} }, A = function(g, l, a) {
|
|
@@ -772,7 +771,7 @@ var Ve = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
772
771
|
}, a: function(g) {
|
|
773
772
|
return g < 0 ? Math.ceil(g) || 0 : Math.floor(g);
|
|
774
773
|
}, p: function(g) {
|
|
775
|
-
return { M: W, y: q, w: we, d: L, D: re, h: b, m:
|
|
774
|
+
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$/, "");
|
|
776
775
|
}, u: function(g) {
|
|
777
776
|
return g === void 0;
|
|
778
777
|
} }, ne = "en", Q = {};
|
|
@@ -866,7 +865,7 @@ var Ve = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
866
865
|
return R(be + "Hours", 0);
|
|
867
866
|
case b:
|
|
868
867
|
return R(be + "Minutes", 1);
|
|
869
|
-
case
|
|
868
|
+
case x:
|
|
870
869
|
return R(be + "Seconds", 2);
|
|
871
870
|
case U:
|
|
872
871
|
return R(be + "Milliseconds", 3);
|
|
@@ -876,7 +875,7 @@ var Ve = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
876
875
|
}, l.endOf = function(a) {
|
|
877
876
|
return this.startOf(a, !1);
|
|
878
877
|
}, l.$set = function(a, u) {
|
|
879
|
-
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[
|
|
878
|
+
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;
|
|
880
879
|
if (m === W || m === q) {
|
|
881
880
|
var H = this.clone().set(re, 1);
|
|
882
881
|
H.$d[T](R), H.init(), this.$d = H.set(re, Math.min(this.$D, H.daysInMonth())).$d;
|
|
@@ -902,7 +901,7 @@ var Ve = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
902
901
|
return T(1);
|
|
903
902
|
if (y === we)
|
|
904
903
|
return T(7);
|
|
905
|
-
var R = (s = {}, s[
|
|
904
|
+
var R = (s = {}, s[x] = n, s[b] = h, s[U] = r, s)[y] || 1, H = this.$d.getTime() + a * R;
|
|
906
905
|
return M.w(H, this);
|
|
907
906
|
}, l.subtract = function(a, u) {
|
|
908
907
|
return this.add(-1 * a, u);
|
|
@@ -998,7 +997,7 @@ var Ve = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
998
997
|
case b:
|
|
999
998
|
m = N / h;
|
|
1000
999
|
break;
|
|
1001
|
-
case
|
|
1000
|
+
case x:
|
|
1002
1001
|
m = N / n;
|
|
1003
1002
|
break;
|
|
1004
1003
|
case U:
|
|
@@ -1029,7 +1028,7 @@ var Ve = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1029
1028
|
return this.$d.toUTCString();
|
|
1030
1029
|
}, g;
|
|
1031
1030
|
}(), Re = oe.prototype;
|
|
1032
|
-
return _.prototype = Re, [["$ms", E], ["$s", U], ["$m",
|
|
1031
|
+
return _.prototype = Re, [["$ms", E], ["$s", U], ["$m", x], ["$H", b], ["$W", L], ["$M", W], ["$y", q], ["$D", re]].forEach(function(g) {
|
|
1033
1032
|
Re[g[1]] = function(l) {
|
|
1034
1033
|
return this.$g(l, g[0], g[1]);
|
|
1035
1034
|
};
|
|
@@ -1047,16 +1046,16 @@ var rt = { exports: {} };
|
|
|
1047
1046
|
e.exports = n();
|
|
1048
1047
|
})(Ve, function() {
|
|
1049
1048
|
var r = "minute", n = /[+-]\d\d(?::?\d\d)?/g, h = /([+-]|\d\d)/g;
|
|
1050
|
-
return function(E, U,
|
|
1049
|
+
return function(E, U, x) {
|
|
1051
1050
|
var b = U.prototype;
|
|
1052
|
-
|
|
1051
|
+
x.utc = function(v) {
|
|
1053
1052
|
var Y = { date: v, utc: !0, args: arguments };
|
|
1054
1053
|
return new U(Y);
|
|
1055
1054
|
}, b.utc = function(v) {
|
|
1056
|
-
var Y =
|
|
1055
|
+
var Y = x(this.toDate(), { locale: this.$L, utc: !0 });
|
|
1057
1056
|
return v ? Y.add(this.utcOffset(), r) : Y;
|
|
1058
1057
|
}, b.local = function() {
|
|
1059
|
-
return
|
|
1058
|
+
return x(this.toDate(), { locale: this.$L, utc: !1 });
|
|
1060
1059
|
};
|
|
1061
1060
|
var L = b.parse;
|
|
1062
1061
|
b.parse = function(v) {
|
|
@@ -1110,13 +1109,13 @@ var rt = { exports: {} };
|
|
|
1110
1109
|
};
|
|
1111
1110
|
var q = b.toDate;
|
|
1112
1111
|
b.toDate = function(v) {
|
|
1113
|
-
return v === "s" && this.$offset ?
|
|
1112
|
+
return v === "s" && this.$offset ? x(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : q.call(this);
|
|
1114
1113
|
};
|
|
1115
1114
|
var re = b.diff;
|
|
1116
1115
|
b.diff = function(v, Y, ue) {
|
|
1117
1116
|
if (v && this.$u === v.$u)
|
|
1118
1117
|
return re.call(this, v, Y, ue);
|
|
1119
|
-
var ce = this.local(), A =
|
|
1118
|
+
var ce = this.local(), A = x(v).local();
|
|
1120
1119
|
return re.call(ce, A, Y, ue);
|
|
1121
1120
|
};
|
|
1122
1121
|
};
|
|
@@ -1131,11 +1130,11 @@ var je = { exports: {} };
|
|
|
1131
1130
|
*/
|
|
1132
1131
|
(function(e, t) {
|
|
1133
1132
|
(function(r) {
|
|
1134
|
-
var n = r.setTimeout, h = r.clearTimeout, E = r.XMLHttpRequest, U = r.XDomainRequest,
|
|
1133
|
+
var n = r.setTimeout, h = r.clearTimeout, E = r.XMLHttpRequest, U = r.XDomainRequest, x = r.ActiveXObject, b = r.EventSource, L = r.document, we = r.Promise, W = r.fetch, Te = r.Response, q = r.TextDecoder, re = r.TextEncoder, v = r.AbortController;
|
|
1135
1134
|
if (typeof window != "undefined" && typeof L != "undefined" && !("readyState" in L) && L.body == null && (L.readyState = "loading", window.addEventListener("load", function(i) {
|
|
1136
1135
|
L.readyState = "complete";
|
|
1137
|
-
}, !1)), E == null &&
|
|
1138
|
-
return new
|
|
1136
|
+
}, !1)), E == null && x != null && (E = function() {
|
|
1137
|
+
return new x("Microsoft.XMLHTTP");
|
|
1139
1138
|
}), Object.create == null && (Object.create = function(i) {
|
|
1140
1139
|
function d() {
|
|
1141
1140
|
}
|
|
@@ -1172,20 +1171,20 @@ var je = { exports: {} };
|
|
|
1172
1171
|
this.bitsNeeded = 0, this.codePoint = 0;
|
|
1173
1172
|
}
|
|
1174
1173
|
ue.prototype.decode = function(i) {
|
|
1175
|
-
function d(D,
|
|
1174
|
+
function d(D, P, w) {
|
|
1176
1175
|
if (w === 1)
|
|
1177
|
-
return D >= 128 >>
|
|
1176
|
+
return D >= 128 >> P && D << P <= 2047;
|
|
1178
1177
|
if (w === 2)
|
|
1179
|
-
return D >= 2048 >>
|
|
1178
|
+
return D >= 2048 >> P && D << P <= 55295 || D >= 57344 >> P && D << P <= 65535;
|
|
1180
1179
|
if (w === 3)
|
|
1181
|
-
return D >= 65536 >>
|
|
1180
|
+
return D >= 65536 >> P && D << P <= 1114111;
|
|
1182
1181
|
throw new Error();
|
|
1183
1182
|
}
|
|
1184
|
-
function c(D,
|
|
1183
|
+
function c(D, P) {
|
|
1185
1184
|
if (D === 6 * 1)
|
|
1186
|
-
return
|
|
1185
|
+
return P >> 6 > 15 ? 3 : P > 31 ? 2 : 1;
|
|
1187
1186
|
if (D === 6 * 2)
|
|
1188
|
-
return
|
|
1187
|
+
return P > 15 ? 3 : 2;
|
|
1189
1188
|
if (D === 6 * 3)
|
|
1190
1189
|
return 3;
|
|
1191
1190
|
throw new Error();
|
|
@@ -1255,9 +1254,9 @@ var je = { exports: {} };
|
|
|
1255
1254
|
}
|
|
1256
1255
|
}, D = function(w) {
|
|
1257
1256
|
o != null && (o.readyState === 4 ? (!("onload" in o) || !("onerror" in o) || !("onabort" in o)) && O(o.responseText === "" ? "error" : "load", w) : o.readyState === 3 ? "onprogress" in o || $() : o.readyState === 2 && C());
|
|
1258
|
-
},
|
|
1257
|
+
}, P = function() {
|
|
1259
1258
|
f = n(function() {
|
|
1260
|
-
|
|
1259
|
+
P();
|
|
1261
1260
|
}, 500), o.readyState === 3 && $();
|
|
1262
1261
|
};
|
|
1263
1262
|
"onload" in o && (o.onload = function(w) {
|
|
@@ -1269,7 +1268,7 @@ var je = { exports: {} };
|
|
|
1269
1268
|
}), "onprogress" in o && (o.onprogress = $), "onreadystatechange" in o && (o.onreadystatechange = function(w) {
|
|
1270
1269
|
D(w);
|
|
1271
1270
|
}), ("contentType" in o || !("ontimeout" in E.prototype)) && (d += (d.indexOf("?") === -1 ? "?" : "&") + "padding=true"), o.open(i, d, !0), "readyState" in o && (f = n(function() {
|
|
1272
|
-
|
|
1271
|
+
P();
|
|
1273
1272
|
}, 0));
|
|
1274
1273
|
}, ie.prototype.abort = function() {
|
|
1275
1274
|
this._abort(!1);
|
|
@@ -1318,8 +1317,8 @@ var je = { exports: {} };
|
|
|
1318
1317
|
i.open("GET", S);
|
|
1319
1318
|
var $ = 0;
|
|
1320
1319
|
i.onprogress = function() {
|
|
1321
|
-
var D = i.responseText,
|
|
1322
|
-
$ +=
|
|
1320
|
+
var D = i.responseText, P = D.slice($);
|
|
1321
|
+
$ += P.length, c(P);
|
|
1323
1322
|
}, i.onerror = function(D) {
|
|
1324
1323
|
D.preventDefault(), o(new Error("NetworkError"));
|
|
1325
1324
|
}, i.onload = function() {
|
|
@@ -1328,8 +1327,8 @@ var je = { exports: {} };
|
|
|
1328
1327
|
o(null);
|
|
1329
1328
|
}, i.onreadystatechange = function() {
|
|
1330
1329
|
if (i.readyState === E.HEADERS_RECEIVED) {
|
|
1331
|
-
var D = i.status,
|
|
1332
|
-
d(D,
|
|
1330
|
+
var D = i.status, P = i.statusText, w = i.getResponseHeader("Content-Type"), I = i.getAllResponseHeaders();
|
|
1331
|
+
d(D, P, w, new Q(I));
|
|
1333
1332
|
}
|
|
1334
1333
|
}, i.withCredentials = f;
|
|
1335
1334
|
for (var O in C)
|
|
@@ -1345,7 +1344,7 @@ var je = { exports: {} };
|
|
|
1345
1344
|
function ae() {
|
|
1346
1345
|
}
|
|
1347
1346
|
ae.prototype.open = function(i, d, c, o, S, f, C) {
|
|
1348
|
-
var $ = null, O = new v(), D = O.signal,
|
|
1347
|
+
var $ = null, O = new v(), D = O.signal, P = new q();
|
|
1349
1348
|
return W(S, {
|
|
1350
1349
|
headers: C,
|
|
1351
1350
|
credentials: f ? "include" : "same-origin",
|
|
@@ -1358,7 +1357,7 @@ var je = { exports: {} };
|
|
|
1358
1357
|
if (J.done)
|
|
1359
1358
|
I(void 0);
|
|
1360
1359
|
else {
|
|
1361
|
-
var G =
|
|
1360
|
+
var G = P.decode(J.value, { stream: !0 });
|
|
1362
1361
|
c(G), ke();
|
|
1363
1362
|
}
|
|
1364
1363
|
}).catch(function(J) {
|
|
@@ -1450,7 +1449,7 @@ var je = { exports: {} };
|
|
|
1450
1449
|
var De = W != null && Te != null && "body" in Te.prototype;
|
|
1451
1450
|
function it(i, d, c) {
|
|
1452
1451
|
d = String(d);
|
|
1453
|
-
var o = !!c.withCredentials, S = c.lastEventIdQueryParameterName || "lastEventId", f = se(1e3), C = fe(c.heartbeatTimeout, 45e3), $ = "", O = f, D = !1,
|
|
1452
|
+
var o = !!c.withCredentials, S = c.lastEventIdQueryParameterName || "lastEventId", f = se(1e3), C = fe(c.heartbeatTimeout, 45e3), $ = "", O = f, D = !1, P = 0, w = c.headers || {}, I = c.Transport, ge = De && I == null ? void 0 : new ie(I != null ? new I() : Oe()), ke = I != null && typeof I != "string" ? new I() : ge == null ? new ae() : new he(), J = void 0, G = 0, de = a, Pe = "", Le = "", me = "", $e = "", X = T, ze = 0, Me = 0, nt = function(V, F, ee, te) {
|
|
1454
1453
|
if (de === u)
|
|
1455
1454
|
if (V === 200 && ee != null && Z.test(ee)) {
|
|
1456
1455
|
de = s, D = Date.now(), O = f, i.readyState = s;
|
|
@@ -1477,7 +1476,7 @@ var je = { exports: {} };
|
|
|
1477
1476
|
(te === 10 || te === 13) && (F = ee);
|
|
1478
1477
|
}
|
|
1479
1478
|
var K = (F !== -1 ? $e : "") + V.slice(0, F + 1);
|
|
1480
|
-
$e = (F === -1 ? $e : "") + V.slice(F + 1), V !== "" && (D = Date.now(),
|
|
1479
|
+
$e = (F === -1 ? $e : "") + V.slice(F + 1), V !== "" && (D = Date.now(), P += V.length);
|
|
1481
1480
|
for (var B = 0; B < K.length; B += 1) {
|
|
1482
1481
|
var te = K.charCodeAt(B);
|
|
1483
1482
|
if (X === y && te === 10)
|
|
@@ -1521,7 +1520,7 @@ var je = { exports: {} };
|
|
|
1521
1520
|
}, _e = function() {
|
|
1522
1521
|
if (G = 0, de !== a) {
|
|
1523
1522
|
if (!D && J != null)
|
|
1524
|
-
qe(new Error("No activity within " + C + " milliseconds. " + (de === u ? "No response received." :
|
|
1523
|
+
qe(new Error("No activity within " + C + " milliseconds. " + (de === u ? "No response received." : P + " chars received.") + " Reconnecting.")), J != null && (J.abort(), J = void 0);
|
|
1525
1524
|
else {
|
|
1526
1525
|
var V = Math.max((D || Date.now()) + C - Date.now(), 1);
|
|
1527
1526
|
D = !1, G = n(function() {
|
|
@@ -1530,7 +1529,7 @@ var je = { exports: {} };
|
|
|
1530
1529
|
}
|
|
1531
1530
|
return;
|
|
1532
1531
|
}
|
|
1533
|
-
D = !1,
|
|
1532
|
+
D = !1, P = 0, G = n(function() {
|
|
1534
1533
|
_e();
|
|
1535
1534
|
}, C), de = u, Pe = "", me = "", Le = $, $e = "", ze = 0, Me = 0, X = T;
|
|
1536
1535
|
var F = d;
|
|
@@ -1736,7 +1735,7 @@ const Tt = class {
|
|
|
1736
1735
|
else {
|
|
1737
1736
|
let h;
|
|
1738
1737
|
if (n.ResponseMessage) {
|
|
1739
|
-
let U = this.errorCodes.find((
|
|
1738
|
+
let U = this.errorCodes.find((x) => n.ResponseMessage.includes(x)) || null;
|
|
1740
1739
|
U ? h = Ce(`errorCode${U}`, this.language) : h = Ce("notFoundErrorCode", this.language);
|
|
1741
1740
|
} else
|
|
1742
1741
|
h = this.type === "deposit" ? Ce("denyDeposit", this.language) : Ce("denyWithdrawal", this.language);
|
package/stencil/{user-deposit-withdrawal-Bmlp014M.cjs → user-deposit-withdrawal-D8t_j49U.cjs}
RENAMED
|
@@ -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-
|
|
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-CUfFeSdi.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-D8t_j49U.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)}));
|
|
@@ -14,7 +14,7 @@ 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-
|
|
17
|
+
import { b as c, p as h } from "./index-2ff63899-BVVddQHZ.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 = {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var u=(e,t,i)=>new Promise((n,s)=>{var o=c=>{try{a(i.next(c))}catch(p){s(p)}},l=c=>{try{a(i.throw(c))}catch(p){s(p)}},a=c=>c.done?n(c.value):Promise.resolve(c.value).then(o,l);a((i=i.apply(e,t)).next())});const r=require("./index-71b1bdfa-CzLMxSAA.cjs"),S="en";let d={en:{gamificationNoPoints:"No points"},de:{gamificationNoPoints:"No points"},ro:{gamificationNoPoints:"No points"},fr:{gamificationNoPoints:"No points"},ar:{gamificationNoPoints:"No points"},hr:{gamificationNoPoints:"No points"}};const y=e=>new Promise(t=>{fetch(e).then(i=>i.json()).then(i=>{Object.keys(i).forEach(n=>{d[n]||(d[n]={});for(let s in i[n])d[n][s]=i[n][s]}),t(!0)})}),v=(e,t)=>{const i=t;return d[i!==void 0&&i in d?i:S][e]},h="__WIDGET_GLOBAL_STYLE_CACHE__";function f(e,t){if(e){const i=document.createElement("style");i.innerHTML=t,e.appendChild(i)}}function g(e,t){if(!e||!t)return;const i=new URL(t);fetch(i.href).then(n=>n.text()).then(n=>{const s=document.createElement("style");s.innerHTML=n,e&&e.appendChild(s)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function w(e,t,i,n=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!n)return i=C(e,t),i;window[h]||(window[h]={}),i=b(e,t);const o=i.unsubscribe.bind(i),l=()=>{if(window[h][t]){const a=window[h][t];a.refCount>1?a.refCount=a.refCount-1:delete window[h][t]}o()};return i.unsubscribe=l,i}function C(e,t){const i=document.createElement("style");return window.emMessageBus.subscribe(t,n=>{e&&(i.innerHTML=n,e.appendChild(i))})}function b(e,t){return window.emMessageBus.subscribe(t,i=>{var a;if(!e)return;const n=e.getRootNode(),s=window[h];let o=(a=s[t])==null?void 0:a.sheet;o?s[t].refCount=s[t].refCount+1:(o=new CSSStyleSheet,o.replaceSync(i),s[t]={sheet:o,refCount:1});const l=n.adoptedStyleSheets||[];l.includes(o)||(n.adoptedStyleSheets=[...l,o])})}const L=":host{display:block}.GamificationDropdownContainer{position:relative}.GamificationDropdownContainer .GamificationDropdown{position:absolute;left:0;z-index:200;overflow:hidden;cursor:pointer}.GamificationDropdownButton{cursor:pointer;font-size:14px;height:20px;background-color:unset;color:var(--emw--color-typography, #FFFFFF);padding:0;border:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:flex;align-items:center;justify-content:center;line-height:0}.GamificationDropdownButton:hover{color:var(--emw--color-primary, #52d004)}.GamificationDropdownButton:hover svg{fill:var(--emw--color-primary, #52d004)}.GamificationDropdownButton.IsOpen{color:var(--emw--color-primary, #52d004)}.GamificationDropdownButton.IsOpen svg{fill:var(--emw--color-primary, #52d004)}.GamificationDropdownButton .TriangleActive,.GamificationDropdownButton .TriangleInactive{display:block;transition:all 0.2s}.GamificationDropdownButton .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px);fill:var(--emw--color-primary, #52d004);margin-top:4px}.GamificationDropdownButton svg{fill:var(--emw--color-typography, #FFFFFF);margin-left:8px;width:16px}",D=L,m=class{constructor(e){r.registerInstance(this,e),this.messageHandler=t=>{t.data&&t.data.type==="UpdateGamificationXp"&&(this.loyaltyPoints=t.data.points)},this.navigateToGamification=()=>{window.postMessage({type:"NavigateToGamification"},window.location.href),this.isOpen=!1},this.handleOutsideClick=t=>{t.composedPath().includes(this.el)||(this.isOpen=!1,document.removeEventListener("click",this.handleOutsideClick))},this.handleDropdownClick=t=>{t.stopPropagation(),this.isOpen=!this.isOpen,this.isOpen?document.addEventListener("click",this.handleOutsideClick):document.removeEventListener("click",this.handleOutsideClick)},this.endpoint=void 0,this.language="en",this.session="",this.mbSource=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.isOpen=!1,this.isLoading=!1,this.loyaltyPoints=void 0}handleNewTranslations(){this.isLoading=!0,y(this.translationUrl).then(()=>{this.isLoading=!1})}handleClientStylingChange(e,t){e!=t&&f(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(e,t){e!=t&&this.clientStylingUrl&&g(this.stylingContainer,this.clientStylingUrl)}componentWillLoad(){return u(this,null,function*(){if(this.translationUrl.length>2&&(yield y(this.translationUrl)),this.endpoint&&this.language)return this.fetchPointsData()})}componentDidLoad(){window.addEventListener("message",this.messageHandler),this.stylingContainer&&(window.emMessageBus!=null?w(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription):(this.clientStyling&&f(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&g(this.stylingContainer,this.clientStylingUrl)))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe(),window.removeEventListener("message",this.messageHandler)}fetchPointsData(){let e=new URL(`${this.endpoint}/v1/elevate/playerInfo`);e.searchParams.append("language",this.language);const t=new Headers;t.append("X-SessionId",this.session);const i={method:"GET",headers:t};return new Promise((n,s)=>{this.isLoading=!0,fetch(e.href,i).then(o=>o.json()).then(o=>{var l,a;this.loyaltyPoints=(a=(l=o==null?void 0:o.data)===null||l===void 0?void 0:l.level)===null||a===void 0?void 0:a.loyaltyPoints,n(!0)}).catch(o=>{console.error(o),s(o)}).finally(()=>{this.isLoading=!1})})}render(){return this.isLoading?null:r.h("div",{ref:e=>this.stylingContainer=e,class:"GamificationDropdownContainer"},r.h("button",{class:`GamificationDropdownButton ${this.isOpen?"IsOpen":""}`,type:"button",onClick:e=>this.handleDropdownClick(e),title:typeof this.loyaltyPoints=="number"?String(this.loyaltyPoints):v("gamificationNoPoints",this.language)},typeof this.loyaltyPoints=="number"?`${this.loyaltyPoints} XP`:"...",r.h("span",{class:this.isOpen?"TriangleActive":"TriangleInactive"},r.h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"6.835",viewBox:"0 0 14 6.835"},r.h("path",{id:"arrow",d:"M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z",transform:"translate(-274.511 -441.088)"})))),this.isOpen&&r.h("div",{class:"GamificationDropdown",onClick:this.navigateToGamification},r.h("player-elevate-loyaltycard",{endpoint:this.endpoint,session:this.session,language:this.language,"client-styling-url":this.clientStylingUrl,"client-styling":this.clientStyling,"mb-source":this.mbSource})))}get el(){return r.getElement(this)}static get watchers(){return{translationUrl:["handleNewTranslations"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};m.style=D;exports.GamificationDropdown=m;exports.setClientStyling=f;exports.setClientStylingURL=g;exports.setStreamStyling=w;
|