@everymatrix/player-account-controller 1.87.27 → 1.87.29
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/{GeneralLogout-B5j_vW4P.js → GeneralLogout-B29__rpa.js} +1 -1
- package/components/{GeneralLogout-CjFz6GhW.cjs → GeneralLogout-BXT6Vu6B.cjs} +1 -1
- package/components/{GeneralLogout-fKTKcCGJ.js → GeneralLogout-BgQNMeTO.js} +1 -1
- package/components/{PlayerAccountBettingHistory-CPnTOt06.cjs → PlayerAccountBettingHistory-BJAXH8Xo.cjs} +1 -1
- package/components/{PlayerAccountBettingHistory-CIzi9adW.js → PlayerAccountBettingHistory-DKwdaKDt.js} +1 -1
- package/components/{PlayerAccountBettingHistory-QM3zfoYn.js → PlayerAccountBettingHistory-I0nmHqEN.js} +1 -1
- package/components/{PlayerAccountBiometrics-DG4UZ7gJ.js → PlayerAccountBiometrics-B-ECMtsQ.js} +2 -2
- package/components/{PlayerAccountBiometrics-DemarL8b.cjs → PlayerAccountBiometrics-DRq5Xepy.cjs} +1 -1
- package/components/{PlayerAccountBiometrics-CsgBvnb7.js → PlayerAccountBiometrics-DmfgTs4K.js} +2 -2
- package/components/PlayerAccountBiometricsAction-4Yy9Wt3_.js +434 -0
- package/components/PlayerAccountBiometricsAction-DKzhAslm.js +451 -0
- package/components/PlayerAccountBiometricsAction-YYKYJ-Vd.cjs +1 -0
- package/components/{PlayerAccountClosure-B-dMr1Jn.js → PlayerAccountClosure-DE-E_V_w.js} +1 -1
- package/components/{PlayerAccountClosure-BWvJR3TO.cjs → PlayerAccountClosure-DKOlGvTX.cjs} +1 -1
- package/components/{PlayerAccountClosure-CVfc0dYJ.js → PlayerAccountClosure-DYxvOiRg.js} +1 -1
- package/components/{PlayerAccountController-BAQQQd6f.js → PlayerAccountController-DNb9Imkv.js} +22 -22
- package/components/{PlayerAccountController-BLw_7Wxf.js → PlayerAccountController-DT8mB4Kw.js} +22 -22
- package/components/{PlayerAccountController-En_hyyNC.cjs → PlayerAccountController-q2E-Ys0M.cjs} +1 -1
- package/components/{PlayerAccountGamingLimits-OyM5Opvb.cjs → PlayerAccountGamingLimits-DHxnwsGK.cjs} +1 -1
- package/components/{PlayerAccountGamingLimits-CyI_jaC4.js → PlayerAccountGamingLimits-DXoXjst7.js} +2 -2
- package/components/{PlayerAccountGamingLimits-Cow9pdbW.js → PlayerAccountGamingLimits-j6Gp7RkK.js} +2 -2
- package/components/{PlayerAccountGamingLimitsConfirmationModal-BrOtl3Gh.cjs → PlayerAccountGamingLimitsConfirmationModal-BHlrokFh.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-Dyp4qeUR.js → PlayerAccountGamingLimitsConfirmationModal-BcqZIS9H.js} +1 -1
- package/components/{PlayerAccountGamingLimitsConfirmationModal-BaHYtGpR.js → PlayerAccountGamingLimitsConfirmationModal-Bysmb7F3.js} +1 -1
- package/components/{PlayerAccountGamingLimitsGroupEdit-Dq7oKBvT.cjs → PlayerAccountGamingLimitsGroupEdit-BHxNAgGb.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsGroupEdit-CtjRT5jg.js → PlayerAccountGamingLimitsGroupEdit-D32h3dN7.js} +5 -5
- package/components/{PlayerAccountGamingLimitsGroupEdit-B-jxQbpZ.js → PlayerAccountGamingLimitsGroupEdit-tpihDZRM.js} +5 -5
- package/components/{PlayerAccountGamingLimitsHistory2-Bjh88L-r.js → PlayerAccountGamingLimitsHistory2-BV5YAD-K.js} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2-B39ZuccZ.js → PlayerAccountGamingLimitsHistory2-DJBZiBDQ.js} +1 -1
- package/components/{PlayerAccountGamingLimitsHistory2-D2Pv9fHy.cjs → PlayerAccountGamingLimitsHistory2-DpEFv8jG.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-D_Hn3lLp.js → PlayerAccountGamingLimitsInfoCard-BImIJRhG.js} +4 -4
- package/components/{PlayerAccountGamingLimitsInfoCard-C2iKiolC.cjs → PlayerAccountGamingLimitsInfoCard-CY8nPlUf.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsInfoCard-DX-5uUnY.js → PlayerAccountGamingLimitsInfoCard-DGQdDsec.js} +4 -4
- package/components/{PlayerAccountGamingLimitsPage2Gm16-Crtu_pde.js → PlayerAccountGamingLimitsPage2Gm16-Boff86oJ.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16-BXIgZHBA.js → PlayerAccountGamingLimitsPage2Gm16-DyCcw-Nt.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPage2Gm16-De419B1o.cjs → PlayerAccountGamingLimitsPage2Gm16-M6zC8chB.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-BLbMRSf_.js → PlayerAccountGamingLimitsPopup-Cx_AuaXf.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-Be_S9ZcF.js → PlayerAccountGamingLimitsPopup-Dh-KXVK0.js} +1 -1
- package/components/{PlayerAccountGamingLimitsPopup-CNvTB9c2.cjs → PlayerAccountGamingLimitsPopup-MEp4C6Ow.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2-D1UYcvKH.cjs → PlayerAccountGamingLimitsWrapper2-BJ-yO4-n.cjs} +1 -1
- package/components/{PlayerAccountGamingLimitsWrapper2-De2EL3tm.js → PlayerAccountGamingLimitsWrapper2-D3HEi9pX.js} +3 -3
- package/components/{PlayerAccountGamingLimitsWrapper2-Dzf9XPuV.js → PlayerAccountGamingLimitsWrapper2-YnonJxCU.js} +3 -3
- package/components/{PlayerAccountGeneralConfirmationModal-D0gnNBxN.js → PlayerAccountGeneralConfirmationModal-Bbex22Yo.js} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-C-pUW7UE.js → PlayerAccountGeneralConfirmationModal-CDoGNofo.js} +1 -1
- package/components/{PlayerAccountGeneralConfirmationModal-sBWJGJ3j.cjs → PlayerAccountGeneralConfirmationModal-KbKNE6wZ.cjs} +1 -1
- package/components/{PlayerAccountMenu-DNy_Hk32.js → PlayerAccountMenu-CnHAUgBA.js} +2 -2
- package/components/{PlayerAccountMenu-88qusOe1.js → PlayerAccountMenu-Dh0It-kw.js} +2 -2
- package/components/{PlayerAccountMenu-5RiJxzF8.cjs → PlayerAccountMenu-TifkV-5q.cjs} +1 -1
- package/components/{PlayerAccountModal-DacnysL5.js → PlayerAccountModal-BL2hUwdv.js} +1 -1
- package/components/{PlayerAccountModal-BdVMgMM0.cjs → PlayerAccountModal-CXwiFP1T.cjs} +1 -1
- package/components/{PlayerAccountModal-B6JKobGH.js → PlayerAccountModal-kpapnAOC.js} +1 -1
- package/components/{PlayerAccountNotifications-C30B-b67.js → PlayerAccountNotifications-BsJlndPH.js} +1 -1
- package/components/{PlayerAccountNotifications-Ca-yj1FW.js → PlayerAccountNotifications-CDBf-z7k.js} +1 -1
- package/components/{PlayerAccountNotifications-B8QW73lK.cjs → PlayerAccountNotifications-Dg6ZBVQO.cjs} +1 -1
- package/components/{PlayerAccountProductRestriction-DQaf3YS6.js → PlayerAccountProductRestriction-7H_p_NH3.js} +3 -3
- package/components/{PlayerAccountProductRestriction-TK3PdIUq.cjs → PlayerAccountProductRestriction-B73nHM4p.cjs} +1 -1
- package/components/{PlayerAccountProductRestriction-DMMlQ5x4.js → PlayerAccountProductRestriction-BoPzyX6U.js} +3 -3
- package/components/{PlayerAccountReviewFrequency-nChzMifu.js → PlayerAccountReviewFrequency-BF2jh_T5.js} +1 -1
- package/components/{PlayerAccountReviewFrequency-DVU5nmS6.cjs → PlayerAccountReviewFrequency-BbL3qvU_.cjs} +1 -1
- package/components/{PlayerAccountReviewFrequency-BX3lMYXn.js → PlayerAccountReviewFrequency-MaWB57PB.js} +1 -1
- package/components/{PlayerAccountSelfExclusion-D1g-5SMn.cjs → PlayerAccountSelfExclusion-BN7uRrl4.cjs} +1 -1
- package/components/{PlayerAccountSelfExclusion-CsZr8Rp-.js → PlayerAccountSelfExclusion-Bi82Ie-O.js} +2 -2
- package/components/{PlayerAccountSelfExclusion-Bcr8vJib.js → PlayerAccountSelfExclusion-D54kBJFe.js} +2 -2
- package/components/{PlayerAccountTimeout-DUK2ndeT.cjs → PlayerAccountTimeout-B8sKFltn.cjs} +2 -2
- package/components/{PlayerAccountTimeout-Hzpth7m_.js → PlayerAccountTimeout-CSa0u1kX.js} +3 -3
- package/components/{PlayerAccountTimeout-Dm6G5s24.js → PlayerAccountTimeout-K2FWOrTk.js} +3 -3
- package/components/{PlayerAccountTransactionsHistory-aY0Baw7m.cjs → PlayerAccountTransactionsHistory-5tb8SKHu.cjs} +1 -1
- package/components/{PlayerAccountTransactionsHistory-DbcrevKR.js → PlayerAccountTransactionsHistory-Bu4OfFgM.js} +4 -4
- package/components/{PlayerAccountTransactionsHistory-TpzDg4nW.js → PlayerAccountTransactionsHistory-Z1HQpCJP.js} +4 -4
- package/components/{PlayerActiveBonuses-HVGiWNOd.js → PlayerActiveBonuses-BmN7s2iD.js} +2 -2
- package/components/{PlayerActiveBonuses-8Opx6dzV.cjs → PlayerActiveBonuses-DgKSd24T.cjs} +1 -1
- package/components/{PlayerActiveBonuses-BDw7e79b.js → PlayerActiveBonuses-teupPcEp.js} +2 -2
- package/components/{PlayerBonusCard-zjN36qJb.js → PlayerBonusCard-BLRAUkxA.js} +2 -2
- package/components/{PlayerBonusCard-DC_pKqNw.cjs → PlayerBonusCard-DKymW3np.cjs} +1 -1
- package/components/{PlayerBonusCard-thh4vUMx.js → PlayerBonusCard-V27QkO_e.js} +2 -2
- package/components/{PlayerBonusHistory-BcN0Ya_g.js → PlayerBonusHistory-B2rXHayg.js} +2 -2
- package/components/{PlayerBonusHistory-vs9jxJhQ.js → PlayerBonusHistory-BWOGSfiH.js} +2 -2
- package/components/{PlayerBonusHistory-Dkrv14z8.cjs → PlayerBonusHistory-BdLQMCy6.cjs} +1 -1
- package/components/{PlayerChangePassword-BuJNikhz.cjs → PlayerChangePassword-CFP5bgFU.cjs} +1 -1
- package/components/{PlayerChangePassword-C6mFUw5u.js → PlayerChangePassword-D49x9rxu.js} +1 -1
- package/components/{PlayerChangePassword-C8qYkJCx.js → PlayerChangePassword-Haz3s5or.js} +1 -1
- package/components/{PlayerDeposit-DadV3-2W.js → PlayerDeposit-CCl5lgyP.js} +1 -1
- package/components/{PlayerDeposit-BJrNyzPW.js → PlayerDeposit-D4C6552a.js} +1 -1
- package/components/{PlayerDeposit-DemYa-nv.cjs → PlayerDeposit-DHzrZgZ1.cjs} +1 -1
- package/components/{PlayerGamingHistory-D2s0Otth.cjs → PlayerGamingHistory-CrMoejRf.cjs} +1 -1
- package/components/{PlayerGamingHistory-D3WjUHop.js → PlayerGamingHistory-DIx_zhN5.js} +3 -3
- package/components/{PlayerGamingHistory-BMEQFFwn.js → PlayerGamingHistory-IJSKHkbl.js} +3 -3
- package/components/{PlayerPendingWithdrawals-CY3g0w83.cjs → PlayerPendingWithdrawals-6Dx1B8QS.cjs} +1 -1
- package/components/{PlayerPendingWithdrawals-CiS2VIJm.js → PlayerPendingWithdrawals-DuduzyBl.js} +1 -1
- package/components/{PlayerPendingWithdrawals-B7PgOP7F.js → PlayerPendingWithdrawals-LMmvlbqk.js} +1 -1
- package/components/{PlayerProfileInfo-B6L0INWX.cjs → PlayerProfileInfo-CtU3MQxZ.cjs} +2 -2
- package/components/{PlayerProfileInfo-COpic9Sl.js → PlayerProfileInfo-j3GWgWVQ.js} +1022 -987
- package/components/{PlayerProfileInfo-DGwH1Xbb.js → PlayerProfileInfo-zSqxfWgH.js} +967 -932
- package/components/{PlayerRealityCheck-DPhiL4g2.js → PlayerRealityCheck-CAMwFuLS.js} +1 -1
- package/components/{PlayerRealityCheck-CRqlzifK.js → PlayerRealityCheck-CBoqZJPM.js} +1 -1
- package/components/{PlayerRealityCheck-CXPnhtbt.cjs → PlayerRealityCheck-CfvYiy1N.cjs} +1 -1
- package/components/{PlayerTransactionHistory-CblCTe3C.js → PlayerTransactionHistory-BBeMcL4B.js} +1 -1
- package/components/{PlayerTransactionHistory-CJVcCHMB.js → PlayerTransactionHistory-BcGwdUmK.js} +1 -1
- package/components/{PlayerTransactionHistory-k-3KbRna.cjs → PlayerTransactionHistory-C1PNjdmO.cjs} +1 -1
- package/components/{PlayerWithdrawal-gngFCPKe.js → PlayerWithdrawal-BPhxNi0P.js} +1 -1
- package/components/{PlayerWithdrawal-pcXdzQpS.cjs → PlayerWithdrawal-BrRqbErs.cjs} +1 -1
- package/components/{PlayerWithdrawal-DDhF1YFQ.js → PlayerWithdrawal-nAu70aCq.js} +1 -1
- package/es2015/player-account-controller.cjs +1 -1
- package/es2015/player-account-controller.js +1 -1
- package/esnext/player-account-controller.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountBiometricsAction-BsW0OHhf.cjs +0 -1
- package/components/PlayerAccountBiometricsAction-D0v5Q9lm.js +0 -386
- package/components/PlayerAccountBiometricsAction-SyauJZ2U.js +0 -403
package/components/{PlayerAccountGamingLimits-OyM5Opvb.cjs → PlayerAccountGamingLimits-DHxnwsGK.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PlayerAccountController-En_hyyNC.cjs");function B(i,t){e.addMessages(i,t)}function z(i){e.$locale.set(i)}const j={en:{returnToMenu:"Return to menu",gamingLimitsText:"Gaming limits",depositLimit:"Deposit Limit",timeLimit:"Time Limit",wageringLimit:"Wagering Limit",lossLimit:"Loss Limit"},"zh-hk":{returnToMenu:"返回菜單",gamingLimitsText:"遊戲限制",depositLimit:"存款限額",timeLimit:"時限t",wageringLimit:"投注限額",lossLimit:"損失限額"},fr:{returnToMenu:"Retour au menu",gamingLimitsText:"Limites de jeu",depositLimit:"Limite de dépôt",timeLimit:"Limite de temps",wageringLimit:"Limite de mise",lossLimit:"Limite de perte"},ro:{returnToMenu:"Înapoi la meniu",gamingLimitsText:"Limite de joc",depositLimit:"Limită de depunere",timeLimit:"Limită de timp",wageringLimit:"Limită de pariere",lossLimit:"Limită de pierdere"},es:{returnToMenu:"Regresar al menu",gamingLimitsText:"Límites de juego",depositLimit:"Límite de depósito",timeLimit:"Límite de tiempo",wageringLimit:"Límite de apuestas",lossLimit:"Límite de pérdida"},pt:{returnToMenu:"Voltar ao Menu",gamingLimitsText:"Limites de jogos",depositLimit:"Limite de Depósito",timeLimit:"Limite de tempo",wageringLimit:"Limite de apostas",lossLimit:"Limite de Perda"},hr:{returnToMenu:"Povratak na izbornik",gamingLimitsText:"Ograničenja igranja",depositLimit:"Ograničenje uplate",timeLimit:"Vremensko ograničenje",wageringLimit:"Ograničenje igranja",lossLimit:"Ograničenje gubitka"},"pt-br":{returnToMenu:"Voltar ao cardápio",gamingLimitsText:"Limites do jogo",depositLimit:"Limites de depósito",timeLimit:"Limite de tempo",wageringLimit:"Limite de aposta",lossLimit:"Limite de perda"},"es-mx":{returnToMenu:"Regresar al menú",gamingLimitsText:"Límites de juego",depositLimit:"Límites de depósito",timeLimit:"Límite de tiempo",wageringLimit:"Límite de apuesta",lossLimit:"Límite de pérdidas"},tr:{returnToMenu:"Menüye dön",gamingLimitsText:"Oyun sınırları",depositLimit:"Para Yatırma Limiti",timeLimit:"Zaman sınırı",wageringLimit:"Bahis Limiti",lossLimit:"Kayıp Limiti"},"en-us":{returnToMenu:"Return to menu",gamingLimitsText:"Gaming limits",depositLimit:"Deposit Limit",timeLimit:"Time Limit",wageringLimit:"Wagering Limit",lossLimit:"Loss Limit"}};if(typeof window!="undefined"){let i=function(t){return function(...a){try{return t.apply(this,a)}catch(m){if(m instanceof DOMException&&m.message.includes("has already been used with this registry")||m.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw m}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountGamingLimitsInfoCard-C2iKiolC.cjs")).then(({default:t})=>{!customElements.get("player-account-gaming-limits-info-card")&&customElements.define("player-account-gaming-limits-info-card",t.element)})}function F(i){e.append_styles(i,"svelte-pgwzq8",'.PlayerAccountGamingLimitsWrapper{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px;max-width:760px}.PlayerAccountGamingLimitsWrapper .PlayerAccountGamingLimitsHeader h3{font-size:24px;font-weight:400;text-transform:capitalize}.PlayerAccountGamingLimitsWrapper .PlayerAccountGamingLimitsHeader .PlayerAccountGamingLimitsMobileTitle{font-size:16px;font-weight:400}.PlayerGamingLimitsTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.PlayerGamingLimitsTitleMobile{font-size:16px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerGamingLimitsTitleNone{display:none}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerAccountMobileGamingLimitsWrapper{padding:20px 15px;background:var(--emw--color-white, #FFFFFF);max-width:unset}.PlayerAccountGamingLimitsContainer{width:100%;display:grid;grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));row-gap:30px;column-gap:30px}.PlayerAccountSuccessfulRemoveContainer{background:var(--emw--color-primary-50, #FBECF4);border:1px solid var(--emw--color-primary-100, #F1BED9);font-size:16px;font-weight:300;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;padding:10px;margin-bottom:20px}.PlayerAccountSuccessfulRemoveContainer p{margin:0}.ModalLoader{position:absolute;left:0;right:0;top:50%;width:300px;height:300px;margin:0 auto;display:flex;align-items:center;justify-content:center}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:5px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:Loader 1.2s linear infinite}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function W(i){let t;return{c(){t=e.element("player-account-gaming-limits-group-edit"),e.set_custom_element_data(t,"limitsdata",i[14]),e.set_custom_element_data(t,"limitname",i[15]),e.set_custom_element_data(t,"showsuccessnotification",i[7]),e.set_custom_element_data(t,"showdeletenotification",i[6]),e.set_custom_element_data(t,"currency",i[5]),e.set_custom_element_data(t,"lang",i[0]),e.set_custom_element_data(t,"separatelimits",i[8]),e.set_custom_element_data(t,"clientstyling",i[9]),e.set_custom_element_data(t,"clientstylingurl",i[10]),e.set_custom_element_data(t,"mbsource",i[11])},m(a,m){e.insert(a,t,m)},p(a,m){m&16384&&e.set_custom_element_data(t,"limitsdata",a[14]),m&32768&&e.set_custom_element_data(t,"limitname",a[15]),m&128&&e.set_custom_element_data(t,"showsuccessnotification",a[7]),m&64&&e.set_custom_element_data(t,"showdeletenotification",a[6]),m&32&&e.set_custom_element_data(t,"currency",a[5]),m&1&&e.set_custom_element_data(t,"lang",a[0]),m&256&&e.set_custom_element_data(t,"separatelimits",a[8]),m&512&&e.set_custom_element_data(t,"clientstyling",a[9]),m&1024&&e.set_custom_element_data(t,"clientstylingurl",a[10]),m&2048&&e.set_custom_element_data(t,"mbsource",a[11])},d(a){a&&e.detach(t)}}}function V(i){let t,a,m,c=i[17]("gamingLimitsText")+"",g,p,d,r,w,o,L,_,y,u,f=i[18]&&q(i);return{c(){t=e.element("div"),f&&f.c(),a=e.space(),m=e.element("h2"),g=e.text(c),p=e.space(),d=e.element("div"),r=e.element("player-account-gaming-limits-info-card"),w=e.space(),o=e.element("player-account-gaming-limits-info-card"),L=e.space(),_=e.element("player-account-gaming-limits-info-card"),y=e.space(),u=e.element("player-account-gaming-limits-info-card"),e.attr(m,"class","PlayerGamingLimitsTitle "+(i[18]?"PlayerGamingLimitsTitleNone":"")),e.set_custom_element_data(r,"limitsdata",i[1]),e.set_custom_element_data(r,"limitname",Z),e.set_custom_element_data(r,"currency",i[5]),e.set_custom_element_data(r,"lang",i[0]),e.set_custom_element_data(r,"clientstyling",i[9]),e.set_custom_element_data(r,"clientstylingurl",i[10]),e.set_custom_element_data(r,"mbsource",i[11]),e.set_custom_element_data(o,"limitsdata",i[2]),e.set_custom_element_data(o,"limitname",I),e.set_custom_element_data(o,"currency",i[5]),e.set_custom_element_data(o,"lang",i[0]),e.set_custom_element_data(o,"clientstyling",i[9]),e.set_custom_element_data(o,"clientstylingurl",i[10]),e.set_custom_element_data(o,"mbsource",i[11]),e.set_custom_element_data(_,"limitsdata",i[3]),e.set_custom_element_data(_,"limitname",K),e.set_custom_element_data(_,"currency",i[5]),e.set_custom_element_data(_,"lang",i[0]),e.set_custom_element_data(_,"clientstyling",i[9]),e.set_custom_element_data(_,"clientstylingurl",i[10]),e.set_custom_element_data(_,"mbsource",i[11]),e.set_custom_element_data(u,"limitsdata",i[4]),e.set_custom_element_data(u,"limitname",Y),e.set_custom_element_data(u,"currency",i[5]),e.set_custom_element_data(u,"lang",i[0]),e.set_custom_element_data(u,"clientstyling",i[9]),e.set_custom_element_data(u,"clientstylingurl",i[10]),e.set_custom_element_data(u,"mbsource",i[11]),e.attr(d,"class","PlayerAccountGamingLimitsContainer"),e.attr(t,"class","PlayerAccountGamingLimitsWrapper "+(i[18]?"PlayerAccountMobileGamingLimitsWrapper":""))},m(s,l){e.insert(s,t,l),f&&f.m(t,null),e.append(t,a),e.append(t,m),e.append(m,g),e.append(t,p),e.append(t,d),e.append(d,r),e.append(d,w),e.append(d,o),e.append(d,L),e.append(d,_),e.append(d,y),e.append(d,u)},p(s,l){s[18]&&f.p(s,l),l&131072&&c!==(c=s[17]("gamingLimitsText")+"")&&e.set_data(g,c),l&2&&e.set_custom_element_data(r,"limitsdata",s[1]),l&32&&e.set_custom_element_data(r,"currency",s[5]),l&1&&e.set_custom_element_data(r,"lang",s[0]),l&512&&e.set_custom_element_data(r,"clientstyling",s[9]),l&1024&&e.set_custom_element_data(r,"clientstylingurl",s[10]),l&2048&&e.set_custom_element_data(r,"mbsource",s[11]),l&4&&e.set_custom_element_data(o,"limitsdata",s[2]),l&32&&e.set_custom_element_data(o,"currency",s[5]),l&1&&e.set_custom_element_data(o,"lang",s[0]),l&512&&e.set_custom_element_data(o,"clientstyling",s[9]),l&1024&&e.set_custom_element_data(o,"clientstylingurl",s[10]),l&2048&&e.set_custom_element_data(o,"mbsource",s[11]),l&8&&e.set_custom_element_data(_,"limitsdata",s[3]),l&32&&e.set_custom_element_data(_,"currency",s[5]),l&1&&e.set_custom_element_data(_,"lang",s[0]),l&512&&e.set_custom_element_data(_,"clientstyling",s[9]),l&1024&&e.set_custom_element_data(_,"clientstylingurl",s[10]),l&2048&&e.set_custom_element_data(_,"mbsource",s[11]),l&16&&e.set_custom_element_data(u,"limitsdata",s[4]),l&32&&e.set_custom_element_data(u,"currency",s[5]),l&1&&e.set_custom_element_data(u,"lang",s[0]),l&512&&e.set_custom_element_data(u,"clientstyling",s[9]),l&1024&&e.set_custom_element_data(u,"clientstylingurl",s[10]),l&2048&&e.set_custom_element_data(u,"mbsource",s[11])},d(s){s&&e.detach(t),f&&f.d()}}}function H(i){let t;return{c(){t=e.element("div"),e.attr(t,"class","ModalLoader")},m(a,m){e.insert(a,t,m)},p:e.noop,d(a){a&&e.detach(t)}}}function q(i){let t,a,m,c,g,p,d,r,w,o,L=i[17]("gamingLimitsText")+"",_,y,u;return{c(){t=e.element("div"),a=e.svg_element("svg"),m=e.svg_element("defs"),c=e.svg_element("style"),g=e.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),p=e.svg_element("g"),d=e.svg_element("g"),r=e.svg_element("path"),w=e.space(),o=e.element("h2"),_=e.text(L),e.attr(r,"class","aaa"),e.attr(r,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),e.attr(r,"transform","translate(15 15) rotate(180)"),e.attr(d,"transform","translate(20 158)"),e.attr(p,"transform","translate(-20 -158)"),e.attr(a,"xmlns","http://www.w3.org/2000/svg"),e.attr(a,"width","15"),e.attr(a,"height","15"),e.attr(a,"viewBox","0 0 15 15"),e.attr(o,"class","PlayerGamingLimitsTitleMobile"),e.attr(t,"class","MenuReturnButton")},m(f,s){e.insert(f,t,s),e.append(t,a),e.append(a,m),e.append(m,c),e.append(c,g),e.append(a,p),e.append(p,d),e.append(d,r),e.append(t,w),e.append(t,o),e.append(o,_),y||(u=e.listen(t,"click",i[21]),y=!0)},p(f,s){s&131072&&L!==(L=f[17]("gamingLimitsText")+"")&&e.set_data(_,L)},d(f){f&&e.detach(t),y=!1,u()}}}function U(i){let t;function a(g,p){return g[13]?H:g[16]?V:W}let m=a(i),c=m(i);return{c(){t=e.element("div"),c.c()},m(g,p){e.insert(g,t,p),c.m(t,null),i[22](t)},p(g,[p]){m===(m=a(g))&&c?c.p(g,p):(c.d(1),c=m(g),c&&(c.c(),c.m(t,null)))},i:e.noop,o:e.noop,d(g){g&&e.detach(t),c.d(),i[22](null)}}}let Z="Deposit Limit",I="Wagering Limit",K="Loss Limit",Y="Time Limit";function J(i,t,a){let m;e.component_subscribe(i,e.$format,n=>a(17,m=n));let{depositlimit:c}=t,{wageringlimit:g}=t,{losslimit:p}=t,{timelimit:d}=t,{showdeletenotification:r=!1}=t,{showsuccessnotification:w=!1}=t,{lang:o="en"}=t,{currency:L=""}=t,{separatelimits:_="true"}=t,{clientstyling:y=""}=t,{clientstylingurl:u=""}=t,{mbsource:f}=t,{translationurl:s=""}=t;const l=()=>{fetch(s).then(b=>b.json()).then(b=>{Object.keys(b).forEach(G=>{B(G,b[G])})}).catch(b=>{console.log(b)})};Object.keys(j).forEach(n=>{B(n,j[n])});let h,D,v=!0,C=window.navigator.userAgent,P=e.getDevice(C)!=="PC",k,T="",M=!0;window.matchMedia("(min-width: 768px)");const A=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:P},window.location.href)},R=()=>{z(o)},E=n=>{if(n.data)switch(n.data.type){case"PlayerLimitsData":a(0,o=n.data.limits.lang),a(1,c=n.data.limits.depositlimit),a(2,g=n.data.limits.wageringlimit),a(3,p=n.data.limits.losslimit),a(4,d=n.data.limits.timelimit),a(13,v=!1);break;case"EditPlayerAccountGamingLimits":a(14,k=n.data.edit),a(15,T=n.data.name),a(16,M=!1),window.postMessage({type:"EditPlayerLimit",name:T},window.location.href),window.postMessage({type:"ScrollToTop"},window.location.href);break;case"PlayerAccountBackToLimitsView":a(16,M=!0);break;case"ProfileDetailsData":let b=n.data.profileDetails;a(5,L=b.currency);break}};e.onMount(()=>(window.addEventListener("message",E,!1),()=>{window.removeEventListener("message",E)}));const N=()=>A();function O(n){e.binding_callbacks[n?"unshift":"push"](()=>{h=n,a(12,h)})}return i.$$set=n=>{"depositlimit"in n&&a(1,c=n.depositlimit),"wageringlimit"in n&&a(2,g=n.wageringlimit),"losslimit"in n&&a(3,p=n.losslimit),"timelimit"in n&&a(4,d=n.timelimit),"showdeletenotification"in n&&a(6,r=n.showdeletenotification),"showsuccessnotification"in n&&a(7,w=n.showsuccessnotification),"lang"in n&&a(0,o=n.lang),"currency"in n&&a(5,L=n.currency),"separatelimits"in n&&a(8,_=n.separatelimits),"clientstyling"in n&&a(9,y=n.clientstyling),"clientstylingurl"in n&&a(10,u=n.clientstylingurl),"mbsource"in n&&a(11,f=n.mbsource),"translationurl"in n&&a(20,s=n.translationurl)},i.$$.update=()=>{i.$$.dirty&1&&o&&R(),i.$$.dirty&4608&&y&&h&&e.setClientStyling(h,y),i.$$.dirty&5120&&u&&h&&e.setClientStylingURL(h,u),i.$$.dirty&6144&&f&&h&&e.setStreamStyling(h,`${f}.Style`,D),i.$$.dirty&1048576&&s&&l()},[o,c,g,p,d,L,r,w,_,y,u,f,h,v,k,T,M,m,P,A,s,N,O]}class S extends e.SvelteComponent{constructor(t){super(),e.init(this,t,J,U,e.safe_not_equal,{depositlimit:1,wageringlimit:2,losslimit:3,timelimit:4,showdeletenotification:6,showsuccessnotification:7,lang:0,currency:5,separatelimits:8,clientstyling:9,clientstylingurl:10,mbsource:11,translationurl:20},F)}get depositlimit(){return this.$$.ctx[1]}set depositlimit(t){this.$$set({depositlimit:t}),e.flush()}get wageringlimit(){return this.$$.ctx[2]}set wageringlimit(t){this.$$set({wageringlimit:t}),e.flush()}get losslimit(){return this.$$.ctx[3]}set losslimit(t){this.$$set({losslimit:t}),e.flush()}get timelimit(){return this.$$.ctx[4]}set timelimit(t){this.$$set({timelimit:t}),e.flush()}get showdeletenotification(){return this.$$.ctx[6]}set showdeletenotification(t){this.$$set({showdeletenotification:t}),e.flush()}get showsuccessnotification(){return this.$$.ctx[7]}set showsuccessnotification(t){this.$$set({showsuccessnotification:t}),e.flush()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get currency(){return this.$$.ctx[5]}set currency(t){this.$$set({currency:t}),e.flush()}get separatelimits(){return this.$$.ctx[8]}set separatelimits(t){this.$$set({separatelimits:t}),e.flush()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get mbsource(){return this.$$.ctx[11]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get translationurl(){return this.$$.ctx[20]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}}e.create_custom_element(S,{depositlimit:{},wageringlimit:{},losslimit:{},timelimit:{},showdeletenotification:{type:"Boolean"},showsuccessnotification:{type:"Boolean"},lang:{},currency:{},separatelimits:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{}},[],[],!0);exports.default=S;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PlayerAccountController-q2E-Ys0M.cjs");function B(i,t){e.addMessages(i,t)}function z(i){e.$locale.set(i)}const j={en:{returnToMenu:"Return to menu",gamingLimitsText:"Gaming limits",depositLimit:"Deposit Limit",timeLimit:"Time Limit",wageringLimit:"Wagering Limit",lossLimit:"Loss Limit"},"zh-hk":{returnToMenu:"返回菜單",gamingLimitsText:"遊戲限制",depositLimit:"存款限額",timeLimit:"時限t",wageringLimit:"投注限額",lossLimit:"損失限額"},fr:{returnToMenu:"Retour au menu",gamingLimitsText:"Limites de jeu",depositLimit:"Limite de dépôt",timeLimit:"Limite de temps",wageringLimit:"Limite de mise",lossLimit:"Limite de perte"},ro:{returnToMenu:"Înapoi la meniu",gamingLimitsText:"Limite de joc",depositLimit:"Limită de depunere",timeLimit:"Limită de timp",wageringLimit:"Limită de pariere",lossLimit:"Limită de pierdere"},es:{returnToMenu:"Regresar al menu",gamingLimitsText:"Límites de juego",depositLimit:"Límite de depósito",timeLimit:"Límite de tiempo",wageringLimit:"Límite de apuestas",lossLimit:"Límite de pérdida"},pt:{returnToMenu:"Voltar ao Menu",gamingLimitsText:"Limites de jogos",depositLimit:"Limite de Depósito",timeLimit:"Limite de tempo",wageringLimit:"Limite de apostas",lossLimit:"Limite de Perda"},hr:{returnToMenu:"Povratak na izbornik",gamingLimitsText:"Ograničenja igranja",depositLimit:"Ograničenje uplate",timeLimit:"Vremensko ograničenje",wageringLimit:"Ograničenje igranja",lossLimit:"Ograničenje gubitka"},"pt-br":{returnToMenu:"Voltar ao cardápio",gamingLimitsText:"Limites do jogo",depositLimit:"Limites de depósito",timeLimit:"Limite de tempo",wageringLimit:"Limite de aposta",lossLimit:"Limite de perda"},"es-mx":{returnToMenu:"Regresar al menú",gamingLimitsText:"Límites de juego",depositLimit:"Límites de depósito",timeLimit:"Límite de tiempo",wageringLimit:"Límite de apuesta",lossLimit:"Límite de pérdidas"},tr:{returnToMenu:"Menüye dön",gamingLimitsText:"Oyun sınırları",depositLimit:"Para Yatırma Limiti",timeLimit:"Zaman sınırı",wageringLimit:"Bahis Limiti",lossLimit:"Kayıp Limiti"},"en-us":{returnToMenu:"Return to menu",gamingLimitsText:"Gaming limits",depositLimit:"Deposit Limit",timeLimit:"Time Limit",wageringLimit:"Wagering Limit",lossLimit:"Loss Limit"}};if(typeof window!="undefined"){let i=function(t){return function(...a){try{return t.apply(this,a)}catch(m){if(m instanceof DOMException&&m.message.includes("has already been used with this registry")||m.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw m}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountGamingLimitsInfoCard-CY8nPlUf.cjs")).then(({default:t})=>{!customElements.get("player-account-gaming-limits-info-card")&&customElements.define("player-account-gaming-limits-info-card",t.element)})}function F(i){e.append_styles(i,"svelte-pgwzq8",'.PlayerAccountGamingLimitsWrapper{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px;max-width:760px}.PlayerAccountGamingLimitsWrapper .PlayerAccountGamingLimitsHeader h3{font-size:24px;font-weight:400;text-transform:capitalize}.PlayerAccountGamingLimitsWrapper .PlayerAccountGamingLimitsHeader .PlayerAccountGamingLimitsMobileTitle{font-size:16px;font-weight:400}.PlayerGamingLimitsTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.PlayerGamingLimitsTitleMobile{font-size:16px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerGamingLimitsTitleNone{display:none}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerAccountMobileGamingLimitsWrapper{padding:20px 15px;background:var(--emw--color-white, #FFFFFF);max-width:unset}.PlayerAccountGamingLimitsContainer{width:100%;display:grid;grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));row-gap:30px;column-gap:30px}.PlayerAccountSuccessfulRemoveContainer{background:var(--emw--color-primary-50, #FBECF4);border:1px solid var(--emw--color-primary-100, #F1BED9);font-size:16px;font-weight:300;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;padding:10px;margin-bottom:20px}.PlayerAccountSuccessfulRemoveContainer p{margin:0}.ModalLoader{position:absolute;left:0;right:0;top:50%;width:300px;height:300px;margin:0 auto;display:flex;align-items:center;justify-content:center}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:5px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:Loader 1.2s linear infinite}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function W(i){let t;return{c(){t=e.element("player-account-gaming-limits-group-edit"),e.set_custom_element_data(t,"limitsdata",i[14]),e.set_custom_element_data(t,"limitname",i[15]),e.set_custom_element_data(t,"showsuccessnotification",i[7]),e.set_custom_element_data(t,"showdeletenotification",i[6]),e.set_custom_element_data(t,"currency",i[5]),e.set_custom_element_data(t,"lang",i[0]),e.set_custom_element_data(t,"separatelimits",i[8]),e.set_custom_element_data(t,"clientstyling",i[9]),e.set_custom_element_data(t,"clientstylingurl",i[10]),e.set_custom_element_data(t,"mbsource",i[11])},m(a,m){e.insert(a,t,m)},p(a,m){m&16384&&e.set_custom_element_data(t,"limitsdata",a[14]),m&32768&&e.set_custom_element_data(t,"limitname",a[15]),m&128&&e.set_custom_element_data(t,"showsuccessnotification",a[7]),m&64&&e.set_custom_element_data(t,"showdeletenotification",a[6]),m&32&&e.set_custom_element_data(t,"currency",a[5]),m&1&&e.set_custom_element_data(t,"lang",a[0]),m&256&&e.set_custom_element_data(t,"separatelimits",a[8]),m&512&&e.set_custom_element_data(t,"clientstyling",a[9]),m&1024&&e.set_custom_element_data(t,"clientstylingurl",a[10]),m&2048&&e.set_custom_element_data(t,"mbsource",a[11])},d(a){a&&e.detach(t)}}}function V(i){let t,a,m,c=i[17]("gamingLimitsText")+"",g,p,d,r,w,o,L,_,y,u,f=i[18]&&q(i);return{c(){t=e.element("div"),f&&f.c(),a=e.space(),m=e.element("h2"),g=e.text(c),p=e.space(),d=e.element("div"),r=e.element("player-account-gaming-limits-info-card"),w=e.space(),o=e.element("player-account-gaming-limits-info-card"),L=e.space(),_=e.element("player-account-gaming-limits-info-card"),y=e.space(),u=e.element("player-account-gaming-limits-info-card"),e.attr(m,"class","PlayerGamingLimitsTitle "+(i[18]?"PlayerGamingLimitsTitleNone":"")),e.set_custom_element_data(r,"limitsdata",i[1]),e.set_custom_element_data(r,"limitname",Z),e.set_custom_element_data(r,"currency",i[5]),e.set_custom_element_data(r,"lang",i[0]),e.set_custom_element_data(r,"clientstyling",i[9]),e.set_custom_element_data(r,"clientstylingurl",i[10]),e.set_custom_element_data(r,"mbsource",i[11]),e.set_custom_element_data(o,"limitsdata",i[2]),e.set_custom_element_data(o,"limitname",I),e.set_custom_element_data(o,"currency",i[5]),e.set_custom_element_data(o,"lang",i[0]),e.set_custom_element_data(o,"clientstyling",i[9]),e.set_custom_element_data(o,"clientstylingurl",i[10]),e.set_custom_element_data(o,"mbsource",i[11]),e.set_custom_element_data(_,"limitsdata",i[3]),e.set_custom_element_data(_,"limitname",K),e.set_custom_element_data(_,"currency",i[5]),e.set_custom_element_data(_,"lang",i[0]),e.set_custom_element_data(_,"clientstyling",i[9]),e.set_custom_element_data(_,"clientstylingurl",i[10]),e.set_custom_element_data(_,"mbsource",i[11]),e.set_custom_element_data(u,"limitsdata",i[4]),e.set_custom_element_data(u,"limitname",Y),e.set_custom_element_data(u,"currency",i[5]),e.set_custom_element_data(u,"lang",i[0]),e.set_custom_element_data(u,"clientstyling",i[9]),e.set_custom_element_data(u,"clientstylingurl",i[10]),e.set_custom_element_data(u,"mbsource",i[11]),e.attr(d,"class","PlayerAccountGamingLimitsContainer"),e.attr(t,"class","PlayerAccountGamingLimitsWrapper "+(i[18]?"PlayerAccountMobileGamingLimitsWrapper":""))},m(s,l){e.insert(s,t,l),f&&f.m(t,null),e.append(t,a),e.append(t,m),e.append(m,g),e.append(t,p),e.append(t,d),e.append(d,r),e.append(d,w),e.append(d,o),e.append(d,L),e.append(d,_),e.append(d,y),e.append(d,u)},p(s,l){s[18]&&f.p(s,l),l&131072&&c!==(c=s[17]("gamingLimitsText")+"")&&e.set_data(g,c),l&2&&e.set_custom_element_data(r,"limitsdata",s[1]),l&32&&e.set_custom_element_data(r,"currency",s[5]),l&1&&e.set_custom_element_data(r,"lang",s[0]),l&512&&e.set_custom_element_data(r,"clientstyling",s[9]),l&1024&&e.set_custom_element_data(r,"clientstylingurl",s[10]),l&2048&&e.set_custom_element_data(r,"mbsource",s[11]),l&4&&e.set_custom_element_data(o,"limitsdata",s[2]),l&32&&e.set_custom_element_data(o,"currency",s[5]),l&1&&e.set_custom_element_data(o,"lang",s[0]),l&512&&e.set_custom_element_data(o,"clientstyling",s[9]),l&1024&&e.set_custom_element_data(o,"clientstylingurl",s[10]),l&2048&&e.set_custom_element_data(o,"mbsource",s[11]),l&8&&e.set_custom_element_data(_,"limitsdata",s[3]),l&32&&e.set_custom_element_data(_,"currency",s[5]),l&1&&e.set_custom_element_data(_,"lang",s[0]),l&512&&e.set_custom_element_data(_,"clientstyling",s[9]),l&1024&&e.set_custom_element_data(_,"clientstylingurl",s[10]),l&2048&&e.set_custom_element_data(_,"mbsource",s[11]),l&16&&e.set_custom_element_data(u,"limitsdata",s[4]),l&32&&e.set_custom_element_data(u,"currency",s[5]),l&1&&e.set_custom_element_data(u,"lang",s[0]),l&512&&e.set_custom_element_data(u,"clientstyling",s[9]),l&1024&&e.set_custom_element_data(u,"clientstylingurl",s[10]),l&2048&&e.set_custom_element_data(u,"mbsource",s[11])},d(s){s&&e.detach(t),f&&f.d()}}}function H(i){let t;return{c(){t=e.element("div"),e.attr(t,"class","ModalLoader")},m(a,m){e.insert(a,t,m)},p:e.noop,d(a){a&&e.detach(t)}}}function q(i){let t,a,m,c,g,p,d,r,w,o,L=i[17]("gamingLimitsText")+"",_,y,u;return{c(){t=e.element("div"),a=e.svg_element("svg"),m=e.svg_element("defs"),c=e.svg_element("style"),g=e.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),p=e.svg_element("g"),d=e.svg_element("g"),r=e.svg_element("path"),w=e.space(),o=e.element("h2"),_=e.text(L),e.attr(r,"class","aaa"),e.attr(r,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),e.attr(r,"transform","translate(15 15) rotate(180)"),e.attr(d,"transform","translate(20 158)"),e.attr(p,"transform","translate(-20 -158)"),e.attr(a,"xmlns","http://www.w3.org/2000/svg"),e.attr(a,"width","15"),e.attr(a,"height","15"),e.attr(a,"viewBox","0 0 15 15"),e.attr(o,"class","PlayerGamingLimitsTitleMobile"),e.attr(t,"class","MenuReturnButton")},m(f,s){e.insert(f,t,s),e.append(t,a),e.append(a,m),e.append(m,c),e.append(c,g),e.append(a,p),e.append(p,d),e.append(d,r),e.append(t,w),e.append(t,o),e.append(o,_),y||(u=e.listen(t,"click",i[21]),y=!0)},p(f,s){s&131072&&L!==(L=f[17]("gamingLimitsText")+"")&&e.set_data(_,L)},d(f){f&&e.detach(t),y=!1,u()}}}function U(i){let t;function a(g,p){return g[13]?H:g[16]?V:W}let m=a(i),c=m(i);return{c(){t=e.element("div"),c.c()},m(g,p){e.insert(g,t,p),c.m(t,null),i[22](t)},p(g,[p]){m===(m=a(g))&&c?c.p(g,p):(c.d(1),c=m(g),c&&(c.c(),c.m(t,null)))},i:e.noop,o:e.noop,d(g){g&&e.detach(t),c.d(),i[22](null)}}}let Z="Deposit Limit",I="Wagering Limit",K="Loss Limit",Y="Time Limit";function J(i,t,a){let m;e.component_subscribe(i,e.$format,n=>a(17,m=n));let{depositlimit:c}=t,{wageringlimit:g}=t,{losslimit:p}=t,{timelimit:d}=t,{showdeletenotification:r=!1}=t,{showsuccessnotification:w=!1}=t,{lang:o="en"}=t,{currency:L=""}=t,{separatelimits:_="true"}=t,{clientstyling:y=""}=t,{clientstylingurl:u=""}=t,{mbsource:f}=t,{translationurl:s=""}=t;const l=()=>{fetch(s).then(b=>b.json()).then(b=>{Object.keys(b).forEach(G=>{B(G,b[G])})}).catch(b=>{console.log(b)})};Object.keys(j).forEach(n=>{B(n,j[n])});let h,D,v=!0,C=window.navigator.userAgent,P=e.getDevice(C)!=="PC",k,T="",M=!0;window.matchMedia("(min-width: 768px)");const A=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:P},window.location.href)},R=()=>{z(o)},E=n=>{if(n.data)switch(n.data.type){case"PlayerLimitsData":a(0,o=n.data.limits.lang),a(1,c=n.data.limits.depositlimit),a(2,g=n.data.limits.wageringlimit),a(3,p=n.data.limits.losslimit),a(4,d=n.data.limits.timelimit),a(13,v=!1);break;case"EditPlayerAccountGamingLimits":a(14,k=n.data.edit),a(15,T=n.data.name),a(16,M=!1),window.postMessage({type:"EditPlayerLimit",name:T},window.location.href),window.postMessage({type:"ScrollToTop"},window.location.href);break;case"PlayerAccountBackToLimitsView":a(16,M=!0);break;case"ProfileDetailsData":let b=n.data.profileDetails;a(5,L=b.currency);break}};e.onMount(()=>(window.addEventListener("message",E,!1),()=>{window.removeEventListener("message",E)}));const N=()=>A();function O(n){e.binding_callbacks[n?"unshift":"push"](()=>{h=n,a(12,h)})}return i.$$set=n=>{"depositlimit"in n&&a(1,c=n.depositlimit),"wageringlimit"in n&&a(2,g=n.wageringlimit),"losslimit"in n&&a(3,p=n.losslimit),"timelimit"in n&&a(4,d=n.timelimit),"showdeletenotification"in n&&a(6,r=n.showdeletenotification),"showsuccessnotification"in n&&a(7,w=n.showsuccessnotification),"lang"in n&&a(0,o=n.lang),"currency"in n&&a(5,L=n.currency),"separatelimits"in n&&a(8,_=n.separatelimits),"clientstyling"in n&&a(9,y=n.clientstyling),"clientstylingurl"in n&&a(10,u=n.clientstylingurl),"mbsource"in n&&a(11,f=n.mbsource),"translationurl"in n&&a(20,s=n.translationurl)},i.$$.update=()=>{i.$$.dirty&1&&o&&R(),i.$$.dirty&4608&&y&&h&&e.setClientStyling(h,y),i.$$.dirty&5120&&u&&h&&e.setClientStylingURL(h,u),i.$$.dirty&6144&&f&&h&&e.setStreamStyling(h,`${f}.Style`,D),i.$$.dirty&1048576&&s&&l()},[o,c,g,p,d,L,r,w,_,y,u,f,h,v,k,T,M,m,P,A,s,N,O]}class S extends e.SvelteComponent{constructor(t){super(),e.init(this,t,J,U,e.safe_not_equal,{depositlimit:1,wageringlimit:2,losslimit:3,timelimit:4,showdeletenotification:6,showsuccessnotification:7,lang:0,currency:5,separatelimits:8,clientstyling:9,clientstylingurl:10,mbsource:11,translationurl:20},F)}get depositlimit(){return this.$$.ctx[1]}set depositlimit(t){this.$$set({depositlimit:t}),e.flush()}get wageringlimit(){return this.$$.ctx[2]}set wageringlimit(t){this.$$set({wageringlimit:t}),e.flush()}get losslimit(){return this.$$.ctx[3]}set losslimit(t){this.$$set({losslimit:t}),e.flush()}get timelimit(){return this.$$.ctx[4]}set timelimit(t){this.$$set({timelimit:t}),e.flush()}get showdeletenotification(){return this.$$.ctx[6]}set showdeletenotification(t){this.$$set({showdeletenotification:t}),e.flush()}get showsuccessnotification(){return this.$$.ctx[7]}set showsuccessnotification(t){this.$$set({showsuccessnotification:t}),e.flush()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get currency(){return this.$$.ctx[5]}set currency(t){this.$$set({currency:t}),e.flush()}get separatelimits(){return this.$$.ctx[8]}set separatelimits(t){this.$$set({separatelimits:t}),e.flush()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get mbsource(){return this.$$.ctx[11]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get translationurl(){return this.$$.ctx[20]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}}e.create_custom_element(S,{depositlimit:{},wageringlimit:{},losslimit:{},timelimit:{},showdeletenotification:{type:"Boolean"},showsuccessnotification:{type:"Boolean"},lang:{},currency:{},separatelimits:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{}},[],[],!0);exports.default=S;
|
package/components/{PlayerAccountGamingLimits-CyI_jaC4.js → PlayerAccountGamingLimits-DXoXjst7.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Y, $ as J, S as Q, i as X, s as x, f as h, b as $, n as D, d as E, c as G, e as _, g as ii, h as ei, o as ti, j as ni, r as w, t as H, q as e, m as f, p as A, u as S, w as ai, x as k, z as si, A as li, B as ri, C as mi, D as oi } from "./PlayerAccountController-
|
|
1
|
+
import { a as Y, $ as J, S as Q, i as X, s as x, f as h, b as $, n as D, d as E, c as G, e as _, g as ii, h as ei, o as ti, j as ni, r as w, t as H, q as e, m as f, p as A, u as S, w as ai, x as k, z as si, A as li, B as ri, C as mi, D as oi } from "./PlayerAccountController-DNb9Imkv.js";
|
|
2
2
|
function W(t, i) {
|
|
3
3
|
Y(t, i);
|
|
4
4
|
}
|
|
@@ -107,7 +107,7 @@ if (typeof window != "undefined") {
|
|
|
107
107
|
}
|
|
108
108
|
};
|
|
109
109
|
};
|
|
110
|
-
customElements.define = t(customElements.define), import("./PlayerAccountGamingLimitsInfoCard-
|
|
110
|
+
customElements.define = t(customElements.define), import("./PlayerAccountGamingLimitsInfoCard-DGQdDsec.js").then(({ default: i }) => {
|
|
111
111
|
!customElements.get("player-account-gaming-limits-info-card") && customElements.define(
|
|
112
112
|
"player-account-gaming-limits-info-card",
|
|
113
113
|
i.element
|
package/components/{PlayerAccountGamingLimits-Cow9pdbW.js → PlayerAccountGamingLimits-j6Gp7RkK.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as Y, $ as J, S as Q, i as X, s as x, f as h, b as $, n as D, d as E, e as G, g as _, h as ii, j as ei, o as ti, k as ni, t as w, u as H, r as e, p as f, q as A, v as S, x as ai, y as k, B as si, C as li, D as ri, c as mi, A as oi } from "./PlayerAccountController-
|
|
1
|
+
import { a as Y, $ as J, S as Q, i as X, s as x, f as h, b as $, n as D, d as E, e as G, g as _, h as ii, j as ei, o as ti, k as ni, t as w, u as H, r as e, p as f, q as A, v as S, x as ai, y as k, B as si, C as li, D as ri, c as mi, A as oi } from "./PlayerAccountController-DT8mB4Kw.js";
|
|
2
2
|
function W(t, i) {
|
|
3
3
|
Y(t, i);
|
|
4
4
|
}
|
|
@@ -107,7 +107,7 @@ if (typeof window < "u") {
|
|
|
107
107
|
}
|
|
108
108
|
};
|
|
109
109
|
};
|
|
110
|
-
customElements.define = t(customElements.define), import("./PlayerAccountGamingLimitsInfoCard-
|
|
110
|
+
customElements.define = t(customElements.define), import("./PlayerAccountGamingLimitsInfoCard-BImIJRhG.js").then(({ default: i }) => {
|
|
111
111
|
!customElements.get("player-account-gaming-limits-info-card") && customElements.define(
|
|
112
112
|
"player-account-gaming-limits-info-card",
|
|
113
113
|
i.element
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./PlayerAccountController-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./PlayerAccountController-q2E-Ys0M.cjs");function A(n,e){t.addMessages(n,e)}function D(n){t.$locale.set(n)}const F={en:{cancel:"Cancel",confirm:"Confirm"},fr:{cancel:"Annuler",confirm:"Confirmer"},ro:{cancel:"Anulează",confirm:"Confirmă"},es:{cancel:"Cancelar",confirm:"Confirmar"},pt:{cancel:"Cancelar",confirm:"Confirmar"},"zh-hk":{cancel:"取消",confirm:"確認"},hr:{cancel:"Otkaži",confirm:"Potvrdi"},"pt-br":{cancel:"Cancelar",confirm:"confirme"},"es-mx":{cancel:"Cancelar",confirm:"Confirmar"},tr:{cancel:"İptal etmek",confirm:"Onaylamak"},"en-us":{cancel:"Cancel",confirm:"Confirm"}};function N(n){t.append_styles(n,"svelte-n224ff",'*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}.GamingLimitsConfirmationWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:300;color:var(--emw--color-typography, #FFFFFF)}.GamingLimitsConfirmationContainer{position:relative;background:linear-gradient(to right, var(--emw--color-primary-variant, #184026), var(--emw--color-secondary-variant, #013E5C));border:5px solid transparent;padding:60px 30px 30px;background-clip:padding-box;border-radius:var(--emw--border-radius-medium, 10px)}.GamingLimitsConfirmationContainer::before{content:"";position:absolute;top:-4px;left:-8px;width:103%;height:105%;z-index:-1;background:linear-gradient(to right, var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-secondary, #E98B0F) 80%, black 20%), #22B04E);opacity:0.5;border-radius:inherit;filter:blur(6px)}.GamingLimitsConfirmationContainer::after{position:absolute;top:-4px;bottom:-4px;left:-4px;right:-4px;background:linear-gradient(to right, color-mix(in srgb, var(--emw--color-primary-variant, #184026) 80%, white 10%), color-mix(in srgb, var(--emw--color-secondary-variant, #013E5C) 80%, white 10%));content:"";z-index:-1;border-radius:var(--emw--border-radius-medium, 10px)}.GamingLimitsConfirmationContainerMobile{padding:40px;max-width:330px}.GamingLimitsConfirmationContainerMobile .GamingLimitsConfirmationControlAreaMobile .GamingLimitsCancelButton,.GamingLimitsConfirmationContainerMobile .GamingLimitsConfirmationControlAreaMobile .GamingLimitsConfirmButton{width:120px;height:auto;font-size:var(--emw--font-size-x-small, 12px)}.GamingLimitsConfirmationContent{font-size:18px;font-weight:300}.GamingLimitsConfirmationControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:10px;direction:ltr;margin-top:30px}.GamingLimitsConfirmationControlArea .GamingLimitsCancelButton,.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{background:transparent;border:1px solid #BFCBC3;color:#BFCBC3;cursor:pointer;border-radius:var(--emw--button-border-radius, 10px);width:200px;height:50px;font-size:var(--emw--font-size-medium, 16px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.GamingLimitsConfirmationControlArea .GamingLimitsConfirmButton{background-color:var(--emw--color-primary, #22B04E);border:2px solid var(--emw--button-border-color, #063B17);border-radius:var(--emw--button-border-radius, 10px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF))}.ModalCloseBtn{position:absolute;display:flex;align-items:center;justify-content:center;top:5px;right:5px;padding:8px;border-radius:50%;cursor:pointer;transition:all 150ms ease-in-out}.ModalCloseBtn svg{width:35px;height:40px}.ModalCloseBtn:hover{background:rgba(255, 255, 255, 0.2)}.GamingLimitsConfirmationMobileWrapper{border:none;padding:0}')}const O=n=>({}),S=n=>({});function P(n){let e,o;return{c(){e=t.svg_element("svg"),o=t.svg_element("path"),t.attr(o,"stroke-linecap","round"),t.attr(o,"stroke-linejoin","round"),t.attr(o,"stroke-width","2"),t.attr(o,"d","M6 18L18 6M6 6l12 12"),t.attr(e,"class","w-6 h-6"),t.attr(e,"fill","none"),t.attr(e,"stroke","currentColor"),t.attr(e,"viewBox","0 0 24 24"),t.attr(e,"xmlns","http://www.w3.org/2000/svg")},m(l,y){t.insert(l,e,y),t.append(e,o)},p:t.noop,d(l){l&&t.detach(e)}}}function T(n){let e,o,l,y,C,b,c,s,d,u=n[2]("cancel")+"",p,h,w,a=n[2]("confirm")+"",v,m,G,M;const x=n[14].close,L=t.create_slot(x,n,n[13],S),g=L||P();return{c(){e=t.element("div"),o=t.element("div"),l=t.element("span"),g&&g.c(),y=t.space(),C=t.element("div"),b=t.text(n[0]),c=t.space(),s=t.element("div"),d=t.element("button"),p=t.text(u),h=t.space(),w=t.element("button"),v=t.text(a),t.attr(l,"class","ModalCloseBtn"),t.attr(l,"role","button"),t.attr(C,"class","GamingLimitsConfirmationContent"),t.attr(d,"class","GamingLimitsCancelButton"),t.attr(w,"class","GamingLimitsConfirmButton"),t.attr(s,"class","GamingLimitsConfirmationControlArea "+(n[3]?"GamingLimitsConfirmationControlAreaMobile":"")),t.attr(o,"class","GamingLimitsConfirmationContainer "+(n[3]?"GamingLimitsConfirmationContainerMobile":"")),t.attr(e,"class","GamingLimitsConfirmationWrapper "+(n[3]?"GamingLimitsConfirmationMobileWrapper":""))},m(r,f){t.insert(r,e,f),t.append(e,o),t.append(o,l),g&&g.m(l,null),t.append(o,y),t.append(o,C),t.append(C,b),t.append(o,c),t.append(o,s),t.append(s,d),t.append(d,p),t.append(s,h),t.append(s,w),t.append(w,v),n[15](e),m=!0,G||(M=[t.listen(l,"click",n[4]),t.listen(d,"click",n[6]),t.listen(w,"click",n[5])],G=!0)},p(r,[f]){L&&L.p&&(!m||f&8192)&&t.update_slot_base(L,x,r,r[13],m?t.get_slot_changes(x,r[13],f,O):t.get_all_dirty_from_scope(r[13]),S),(!m||f&1)&&t.set_data(b,r[0]),(!m||f&4)&&u!==(u=r[2]("cancel")+"")&&t.set_data(p,u),(!m||f&4)&&a!==(a=r[2]("confirm")+"")&&t.set_data(v,a)},i(r){m||(t.transition_in(g,r),m=!0)},o(r){t.transition_out(g,r),m=!1},d(r){r&&t.detach(e),g&&g.d(r),n[15](null),G=!1,t.run_all(M)}}}function W(n,e,o){let l;t.component_subscribe(n,t.$format,i=>o(2,l=i));let{$$slots:y={},$$scope:C}=e,{modaltext:b="Are you sure that you want to perform this action?"}=e,{modalsource:c=""}=e,{lang:s="en"}=e,{clientstyling:d=""}=e,{clientstylingurl:u=""}=e,{mbsource:p}=e,{translationurl:h=""}=e;const w=()=>{fetch(h).then(_=>_.json()).then(_=>{Object.keys(_).forEach(B=>{A(B,_[B])})}).catch(_=>{console.log(_)})};Object.keys(F).forEach(i=>{A(i,F[i])});let a,v,m=window.navigator.userAgent,G=t.getDevice(m)!=="PC",M={},x="";const L=()=>{window.postMessage({type:"ModalClosed"},window.location.href)},g=()=>{c==="groupEdit"?window.postMessage({type:"GamingLimitsConfirmChanges"},window.location.href):c==="infoCard"&&window.postMessage({type:"PlayerAccountGamingLimitDelete",limit:M,name:x},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href)},r=()=>{c==="groupEdit"?window.postMessage({type:"CancelGamingLimitsChanges"},window.location.href):c==="infoCard"&&window.postMessage({type:"CancelGamingLimitsRemove"},window.location.href),window.postMessage({type:"ModalClosed"},window.location.href)},f=i=>i==="Time Limit"?"cumulativeSessionLimits":i==="Deposit Limit"?"depositLimits":i==="Wagering Limit"?"wageringLimit":"lossLimit",k=i=>{if(i.data)switch(i.data.type){case"DeleteLimitsItem":M=i.data.removeData,x=f(i.data.removeName);break}},E=()=>{D(s)};t.onMount(()=>(window.addEventListener("message",k,!1),()=>{window.removeEventListener("message",k)}));function j(i){t.binding_callbacks[i?"unshift":"push"](()=>{a=i,o(1,a)})}return n.$$set=i=>{"modaltext"in i&&o(0,b=i.modaltext),"modalsource"in i&&o(7,c=i.modalsource),"lang"in i&&o(8,s=i.lang),"clientstyling"in i&&o(9,d=i.clientstyling),"clientstylingurl"in i&&o(10,u=i.clientstylingurl),"mbsource"in i&&o(11,p=i.mbsource),"translationurl"in i&&o(12,h=i.translationurl),"$$scope"in i&&o(13,C=i.$$scope)},n.$$.update=()=>{n.$$.dirty&385&&b&&c&&s&&E(),n.$$.dirty&514&&d&&a&&t.setClientStyling(a,d),n.$$.dirty&1026&&u&&a&&t.setClientStylingURL(a,u),n.$$.dirty&2050&&p&&a&&t.setStreamStyling(a,`${p}.Style`,v),n.$$.dirty&4096&&h&&w()},[b,a,l,G,L,g,r,c,s,d,u,p,h,C,y,j]}class z extends t.SvelteComponent{constructor(e){super(),t.init(this,e,W,T,t.safe_not_equal,{modaltext:0,modalsource:7,lang:8,clientstyling:9,clientstylingurl:10,mbsource:11,translationurl:12},N)}get modaltext(){return this.$$.ctx[0]}set modaltext(e){this.$$set({modaltext:e}),t.flush()}get modalsource(){return this.$$.ctx[7]}set modalsource(e){this.$$set({modalsource:e}),t.flush()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),t.flush()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get mbsource(){return this.$$.ctx[11]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}get translationurl(){return this.$$.ctx[12]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}}t.create_custom_element(z,{modaltext:{},modalsource:{},lang:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{}},["close"],[],!0);exports.default=z;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as q, $ as H, S as V, i as Z, s as J, f as y, b as K, Z as Q, d as T, v as X, U as Y, V as $, _ as tt, a0 as it, a1 as et, t as F, c as I, m as l, w as z, e as L, p as E, u as S, r as a, g as nt, h as ot, o as at, n as rt, x as N, j as st, z as lt, A as mt, B as ct, C as dt, D as gt } from "./PlayerAccountController-
|
|
1
|
+
import { a as q, $ as H, S as V, i as Z, s as J, f as y, b as K, Z as Q, d as T, v as X, U as Y, V as $, _ as tt, a0 as it, a1 as et, t as F, c as I, m as l, w as z, e as L, p as E, u as S, r as a, g as nt, h as ot, o as at, n as rt, x as N, j as st, z as lt, A as mt, B as ct, C as dt, D as gt } from "./PlayerAccountController-DNb9Imkv.js";
|
|
2
2
|
function O(e, t) {
|
|
3
3
|
q(e, t);
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as q, $ as H, S as V, i as Z, s as J, f as x, b as K, Z as Q, d as T, w as X, U as Y, V as $, _ as tt, a0 as it, a1 as et, u as F, e as I, p as l, x as z, g as L, q as E, v as S, t as a, h as nt, j as ot, o as at, n as rt, y as N, k as st, B as lt, C as mt, D as ct, c as dt, A as gt } from "./PlayerAccountController-
|
|
1
|
+
import { a as q, $ as H, S as V, i as Z, s as J, f as x, b as K, Z as Q, d as T, w as X, U as Y, V as $, _ as tt, a0 as it, a1 as et, u as F, e as I, p as l, x as z, g as L, q as E, v as S, t as a, h as nt, j as ot, o as at, n as rt, y as N, k as st, B as lt, C as mt, D as ct, c as dt, A as gt } from "./PlayerAccountController-DT8mB4Kw.js";
|
|
2
2
|
function O(e, t) {
|
|
3
3
|
q(e, t);
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PlayerAccountController-En_hyyNC.cjs");require("./PlayerAccountGamingLimitsInfoCard-C2iKiolC.cjs");require("./PlayerAccountTimeout-DUK2ndeT.cjs");const $=require("./PlayerBonusHistory-Dkrv14z8.cjs");function ne(t,i){e.addMessages(t,i)}function Ie(t){e.$locale.set(t)}const oe={en:{back:"Back to Gaming Limits",limit:"Limit",amount:"Amount",noLimit:"No limit",changeLimitsText:"Are you sure you want to change the {limit}s?",success:"Success lorem Ipsum is simply dummy text of the printing and typesetting industry.",remove:"You have requested to remove this limit. This will be applied on",invalidInputMessageLimit:"The amount needs to be between 1 and 99,999,999.",invalidInputMessageTime:"The time amount needs to be greater than {minTime} and below {maxTime} minutes.",expirationDate:"Expiration Date:",save:"Save",changedLimitTextBefore:"Your limit has been changed or increased:",changedLimitTextAfter:"You will have to wait for the expiration date for your new limit to take effect.",daily:"Daily",weekly:"Weekly",monthly:"Monthly",depositLimit:"Deposit Limit",timeLimit:"Time Limit",wageringLimit:"Wagering Limit",lossLimit:"Loss Limit"},"zh-hk":{back:"返回游戲限制",limit:"限制",amount:"數量",noLimit:"沒有限制t",changeLimitsText:"您確定要更改 {limit} 嗎?",success:"您的遊戲限制已成功設置。",remove:"您已請求取消此限制。 這將應用於",invalidInputMessageLimit:"金額需要在 0 到 99,999,999 之間",invalidInputMessageTime:"時間量需要大於 {minTime} 且低於 {maxTime} 分鐘",expirationDate:"截止日期:",save:"節省",changedLimitTextBefore:"您的限額已更改或增加:",changedLimitTextAfter:"您必須等待到期日期才能使新限制生效",daily:"日常的",weekly:"每周",monthly:"月刊",depositLimit:"存款限额",timeLimit:"时限",wageringLimit:"投注限额",lossLimit:"损失限额"},fr:{back:"Retour aux limites de jeu",daily:"Quotidiennement",weekly:"Hebdomadaire",monthly:"Mensuel",limit:"Limite",amount:"Montant",noLimit:"Aucune limite",changeLimitsText:"Etes-vous sûr de vouloir changer les {limit}s??",success:"Vos limites de jeu ont été respectées.",remove:"Vous avez demandé à ce que cette limite soit supprimée,elle sera appliquée",invalidInputMessageLimit:"Le montant doit être compris entre 1 et 99,999,999.",invalidInputMessageTime:"La durée doit être supérieure au {minTime} et inférieur au {maxTime} minutes .",expirationDate:"Date d'expiration:",save:"Sauvez",changedLimitTextBefore:"Votre limit a été modifiée ou augmentée:",changedLimitTextAfter:"Vous devrez attendre la date d'expiration pour que votre nouvelle limite prenne effet",depositLimit:"Limite de dépôt",timeLimit:"Limite de temps",wageringLimit:"Limite de mise",lossLimit:"Limite de perte"},ro:{back:"Înapoi la limite de joc",limit:"Limită",amount:"Sumă",noLimit:"Fără Limită",changeLimitsText:"Ești sigur că vrei să modifici {limit}?",success:"Limitele tale de joc au fost configurate cu success.",remove:"Ai solicitat eliminarea acestei limite. Acest lucru va avea loc la data expirării limitei",invalidInputMessageLimit:"Trebuie să setezi o sumă intre 1 și 99,999,999.",invalidInputMessageTime:"Trebuie să setezi o limită intre {minTime} minute și {maxTime} minute",expirationDate:"Dată Expirare:",save:"Salvează",changedLimitTextBefore:"Limita ta a fost schimbată sau a crescut:",changedLimitTextAfter:". Trebuie să aștepți până la data de expirare pentru ca noua ta limită să intre în vigoare.",daily:"Zilnic",weekly:"Săptămânal",monthly:"Lunar",depositLimit:"Limită de depunere",timeLimit:"Limită de timp",wageringLimit:"Limită de pariere",lossLimit:"Limite de pierdere"},es:{back:"Regresa a límites de juego",limit:"Límite",amount:"Monto",noLimit:"Sin Límite",changeLimitsText:"Esta seguro que desea cambiar los {limit}es?",success:"Limite actualizado satisfactoriamente",remove:"Ha solicitado retirar este limite. Esto será aplicado",invalidInputMessageLimit:"El monto debe ser entre 1 y 99",invalidInputMessageTime:"La cantidad de tiempo debe ser superior a {minTime} y por debajo de {maxTime} minutos.",expirationDate:"Fecha de expiración:",save:"Guardar",changedLimitTextBefore:"Tú limite ha sido cambiado o incrementado:",changedLimitTextAfter:"Tendrás que esperar a la fecha de expiración para que tu nuevo límite entre en vigencia.",daily:"Diario",weekly:"Semanal",monthly:"Mensual",depositLimit:"Límite de depósito",timeLimit:"Límite de tiempo",wageringLimit:"Límite de apuestas",lossLimit:"Límite de pérdida"},pt:{back:"Voltar para Limites de jogos",limit:"Limite",amount:"Montante",noLimit:"Sem limite",changeLimitsText:"Tem certeza de que deseja alterar os {limite}s?",success:"Seus limites de jogo foram definidos com sucesso.",remove:"Você solicitou a remoção deste limite. Isso será aplicado em",invalidInputMessageLimit:"O valor precisa estar entre 1 e 99.999.999",invalidInputMessageTime:"A quantidade de tempo precisa ser maior que {1} e menor que {99999999} minutos",expirationDate:"Data de Validade",save:"Guardar",changedLimitTextBefore:"Seu limite foi alterado ou aumentado:",changedLimitTextAfter:"Você terá que aguardar a data de expiração para que seu novo limite entre em vigor",daily:"Diariamente",weekly:"Semanalmente",monthly:"Mensalmente",depositLimit:"Limite de Depósito",timeLimit:"Limite de Tempo",wageringLimit:"Limite de Apostas",lossLimit:"Limite de Perda"},hr:{back:"Povratak na ograničenja igranja",limit:"Limit",amount:"Iznos",noLimit:"Nema ograničenja",changeLimitsText:"Jeste li sigurni da želite promijeniti {limit}e?",success:"Uspješno",remove:"Zatražili ste uklanjanje ovog ograničenja. Ovo će se primijeniti na",invalidInputMessageLimit:"Iznos mora biti između 1 i 99",invalidInputMessageTime:"Vremenski iznos mora biti veći od {minTime} i manji od {maxTime} minuta.",expirationDate:"Datum isteka:",save:"Spremi",changedLimitTextBefore:"Vaše ograničenje je promijenjeno ili povećano:",changedLimitTextAfter:"Morat ćete pričekati datum isteka da bi vaše novo ograničenje stupilo na snagu.",daily:"Dnevno",weekly:"Tjedno",monthly:"Mjesečno",depositLimit:"Ograničenje uplate",timeLimit:"Vremensko ograničenje",wageringLimit:"Ograničenje igranja",lossLimit:"Ograničenje gubitka"},"pt-br":{back:"Retornar aos limites do jogo",limit:"Limite",amount:"Quantidade",noLimit:"Sem limite",changeLimitsText:"Tem certeza de que deseja alterar o(s) limite(s)?",success:"A operação bem-sucedida lorem Ipsum é simplesmente um texto fictício da indústria de impressão e composição tipográfica.",remove:"Você solicitou a remoção deste limite. Isto será aplicado a partir de",invalidInputMessageLimit:"A Quantia deve estar entre 1 e 99",invalidInputMessageTime:"A quantidade de tempo precisa ser maior que {minTime} e menor que {maxTime} minutos.",expirationDate:"Data de expiração:",save:"Manter",changedLimitTextBefore:"Seu limite de tempo foi alterado ou aumentado:",changedLimitTextAfter:"Você deve aguardar a data de expiração para que seu novo limite entre em vigor.",daily:"Diário",weekly:"Semanalmente",monthly:"Por mês",depositLimit:"Limite de depósito",timeLimit:"Limite de tempo",wageringLimit:"Limite de aposta",lossLimit:"Limite de perda"},"es-mx":{back:"Regresar a límites de juego",limit:"Límite",amount:"Monto",noLimit:"Sin límite",changeLimitsText:"¿Está seguro que quiere cambiar el/los límite(s)?",success:"Operación exitosa lorem Ipsum is simply dummy text of the printing and typesetting industry.",remove:"Ha solicitado remover este límite. Esto se aplicará a partir de",invalidInputMessageLimit:"El monto debe ser entre 1 y 99,999,999",invalidInputMessageTime:"El monto de tiempo necesita ser mayor a {minTime} y menor a {maxTime} minutos.",expirationDate:"Fecha de expiración:",save:"Guardar",changedLimitTextBefore:"Tú límite de tiempo ha sido cambiado o aumentado:",changedLimitTextAfter:"Tiene que esperar a la fecha de expiración para que su nuevo límite entre en efecto.",daily:"Diario",weekly:"Semanal",monthly:"Mensual",depositLimit:"Límite de depósito",timeLimit:"Límite de tiempo",wageringLimit:"Límite de apuesta",lossLimit:"Límite de pérdida"},tr:{back:"Oyun Sınırlarına Geri Dön",limit:"Sınır",amount:"Miktar",noLimit:"Limit yok",changeLimitsText:"{limit}'leri değiştirmek istediğinizden emin misiniz?",success:"Başarı lorem Ipsum, basım ve dizgi endüstrisinin sahte metnidir.",remove:"Bu sınırın kaldırılmasını talep ettiniz. Bu şu tarihte uygulanacaktır:",invalidInputMessageLimit:"Tutarın 1 ile 99.999.999 arasında olması gerekir.",invalidInputMessageTime:"Süre miktarının {minTime} değerinden büyük ve {maxTime} dakikanın altında olması gerekir.",expirationDate:"Son kullanma tarihi:",save:"Kaydetmek",changedLimitTextBefore:"Limitiniz değiştirildi veya artırıldı:",changedLimitTextAfter:"Yeni limitinizin geçerlilik kazanması için son kullanma tarihini beklemeniz gerekecektir.",daily:"Günlük",weekly:"Haftalık",monthly:"Aylık",depositLimit:"Para Yatırma Limiti",timeLimit:"Zaman sınırı",wageringLimit:"Bahis Limiti",lossLimit:"Kayıp Limiti"},"en-us":{back:"Back to Gaming Limits",limit:"Limit",amount:"Amount",noLimit:"No limit",changeLimitsText:"Are you sure you want to change the {limit}s?",success:"Success lorem Ipsum is simply dummy text of the printing and typesetting industry.",remove:"You have requested to remove this limit. This will be applied on",invalidInputMessageLimit:"The amount needs to be between 1 and 99,999,999.",invalidInputMessageTime:"The time amount needs to be greater than {minTime} and below {maxTime} minutes.",expirationDate:"Expiration Date:",save:"Save",changedLimitTextBefore:"Your limit has been changed or increased:",changedLimitTextAfter:"You will have to wait for the expiration date for your new limit to take effect.",daily:"Daily",weekly:"Weekly",monthly:"Monthly",depositLimit:"Deposit Limit",timeLimit:"Time Limit",wageringLimit:"Wagering Limit",lossLimit:"Loss Limit"}};if(typeof window!="undefined"){let t=function(i){return function(...a){try{return i.apply(this,a)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=t(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountGamingLimitsConfirmationModal-BrOtl3Gh.cjs")).then(({default:i})=>{!customElements.get("player-account-gaming-limits-confirmation-modal")&&customElements.define("player-account-gaming-limits-confirmation-modal",i.element)})}function Ne(t){e.append_styles(t,"svelte-5vl9hz",".MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px;cursor:pointer}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.MyAccountCategoryTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.MyAccountCategoryTitleMobile{font-size:16px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.MyAccountCategoryTitleNone{display:none !important}.AccountEditLimitsWrapper{padding:50px;max-width:760px}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper{padding:20px}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper .AccountEditLimitsControlArea{grid-template-columns:1fr}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper .AccountEditLimitsControlArea .AccountEditLimitsSaveButton{width:100%}.AccountEditBackButton{display:inline-block;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-size:26px;font-weight:300;cursor:pointer;margin-bottom:30px}.AccountEditBackButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.AccountEditLimitsHeader{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:5px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.AccountEditLimitsHeader h6{margin:0;font-weight:normal;font-size:16px;line-height:20px}.AccountEditLimitsHeader .AccountEditLimitsIcon{display:flex;width:20px;height:20px;background:transparent;border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));align-items:center;justify-content:center;border-radius:30px;cursor:pointer}.AccountEditLimitChangePeriodIcon{display:flex;width:20px;height:20px;color:var(--emw--color-gray-300, #58586B);background:transparent;border:1px solid var(--emw--color-gray-300, #58586B);align-items:center;justify-content:center;border-radius:30px;cursor:pointer;margin-right:10px}.AccountEditLimitSuccessfulChangeContainer{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--color-primary-100, #F1BED9);font-size:16px;font-weight:300;color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));border-radius:5px;padding:10px}.AccountEditLimitSuccessfulChangeContainer p{margin:0}.AccountEditLimitsIconWrapper{position:relative;display:inline-block;padding:5px 0 5px 15px;cursor:pointer}.AccountEditLimitsTitle{font-size:16px;font-weight:300;color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));margin:0;padding:10px 0 10px}.AccountEditLimitsExpiryDate{font-size:12px;font-weight:300;color:var(--emw--color-black, #000000)}.AccountEditLimitsContainer{display:grid;grid-template-columns:1fr 1fr;grid-gap:30px;direction:ltr}@media only screen and (max-width: 1024px){.AccountEditLimitsContainer{grid-template-columns:1fr;grid-gap:20px}}.AccountEditField{width:100%;font-size:14px;font-weight:300;color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A));padding:10px;line-height:16px;background:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;outline:none;transition-duration:0.3s}.AccountEditField:focus,.AccountEditField :focus-within,.AccountEditField :focus-visible,.AccountEditField :visited{border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.AccountEditFieldCustom{padding:3%}.AccountEditLimitsPeriodChangeContainer{background:var(--emw--color-gray-50, #F9F8F8);border-radius:5px}.AccountEditLimitsPeriodChangeContainer p{max-width:290px;display:-webkit-box;padding:10px 35px 15px 10px;color:var(--emw--color-gray-300, #58586B);font-size:12px;font-weight:300}.AccountEditLimitsPeriodChangeContainer p .AccountEditLimitChangePeriodIcon{font-size:14px;font-weight:400}.AccountEditLimitsControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:40px;margin-top:35px}.AccountEditLimitsControlArea .AccountEditLimitsSaveButton{padding:12px;cursor:pointer;border-radius:5px;display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--emw--color-black, #000000);text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF))}.AccountEditLimitsControlArea .AccountEditLimitsSaveButton.AccountEditLimitsButtonDisabled{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));cursor:not-allowed;opacity:0.6}.AccountEditLimitsBox{position:relative}.AccountEditWarningText{position:relative;margin:0}.InvalidInput{color:var(--emw--color-error, var(--emw--color-red, #FD2839));font-size:10px;position:absolute;top:6px;margin:0;line-height:10px}.AccountEditLimitsInputContainer{position:relative;padding-top:10px;width:94%}")}function le(t,i,a){const n=t.slice();return n[56]=i[a],n[57]=i,n[58]=a,n}function se(t,i,a){const n=t.slice();return n[59]=i[a],n}function re(t,i,a){const n=t.slice();return n[56]=i[a],n[58]=a,n}function je(t){let i,a,n,o,l,u,s,r,d,f,k=t[18]("back")+"",v,h,N;return{c(){i=e.element("div"),a=e.svg_element("svg"),n=e.svg_element("defs"),o=e.svg_element("style"),l=e.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),u=e.svg_element("g"),s=e.svg_element("g"),r=e.svg_element("path"),d=e.space(),f=e.element("h2"),v=e.text(k),e.attr(r,"class","aaa"),e.attr(r,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),e.attr(r,"transform","translate(15 15) rotate(180)"),e.attr(s,"transform","translate(20 158)"),e.attr(u,"transform","translate(-20 -158)"),e.attr(a,"xmlns","http://www.w3.org/2000/svg"),e.attr(a,"width","15"),e.attr(a,"height","15"),e.attr(a,"viewBox","0 0 15 15"),e.attr(f,"class","MyAccountCategoryTitleMobile"),e.attr(i,"class","MenuReturnButton")},m(p,g){e.insert(p,i,g),e.append(i,a),e.append(a,n),e.append(n,o),e.append(o,l),e.append(a,u),e.append(u,s),e.append(s,r),e.append(i,d),e.append(i,f),e.append(f,v),h||(N=e.listen(i,"click",t[22]),h=!0)},p(p,g){g[0]&262144&&k!==(k=p[18]("back")+"")&&e.set_data(v,k)},d(p){p&&e.detach(i),h=!1,N()}}}function me(t){let i,a,n=t[18]("success")+"",o;return{c(){i=e.element("div"),a=e.element("p"),o=e.text(n),e.attr(i,"class","AccountEditLimitSuccessfulChangeContainer")},m(l,u){e.insert(l,i,u),e.append(i,a),e.append(a,o)},p(l,u){u[0]&262144&&n!==(n=l[18]("success")+"")&&e.set_data(o,n)},d(l){l&&e.detach(i)}}}function ue(t){let i,a=e.ensure_array_like(t[14]),n=[];for(let o=0;o<a.length;o+=1)n[o]=pe(re(t,a,o));return{c(){i=e.element("div");for(let o=0;o<n.length;o+=1)n[o].c();e.attr(i,"class","AccountEditLimitSuccessfulChangeContainer")},m(o,l){e.insert(o,i,l);for(let u=0;u<n.length;u+=1)n[u]&&n[u].m(i,null)},p(o,l){if(l[0]&409600){a=e.ensure_array_like(o[14]);let u;for(u=0;u<a.length;u+=1){const s=re(o,a,u);n[u]?n[u].p(s,l):(n[u]=pe(s),n[u].c(),n[u].m(i,null))}for(;u<n.length;u+=1)n[u].d(1);n.length=a.length}},d(o){o&&e.detach(i),e.destroy_each(n,o)}}}function de(t){let i,a=t[18]("remove")+"",n,o,l=(t[56].expiryDate?$.format(new Date(t[56].expiryDate),"d/M/yyyy - h:mm a"):"N/A")+"",u;return{c(){i=e.element("p"),n=e.text(a),o=e.space(),u=e.text(l)},m(s,r){e.insert(s,i,r),e.append(i,n),e.append(i,o),e.append(i,u)},p(s,r){r[0]&262144&&a!==(a=s[18]("remove")+"")&&e.set_data(n,a),r[0]&16384&&l!==(l=(s[56].expiryDate?$.format(new Date(s[56].expiryDate),"d/M/yyyy - h:mm a"):"N/A")+"")&&e.set_data(u,l)},d(s){s&&e.detach(i)}}}function pe(t){let i,a=t[56].period==t[17][t[58]].period&&de(t);return{c(){a&&a.c(),i=e.empty()},m(n,o){a&&a.m(n,o),e.insert(n,i,o)},p(n,o){n[56].period==n[17][n[58]].period?a?a.p(n,o):(a=de(n),a.c(),a.m(i.parentNode,i)):a&&(a.d(1),a=null)},d(n){n&&e.detach(i),a&&a.d(n)}}}function ce(t){let i,a,n=e.ensure_array_like(t[14]),o=[];for(let l=0;l<n.length;l+=1)o[l]=be(le(t,n,l));return{c(){i=e.element("div"),a=e.element("div");for(let l=0;l<o.length;l+=1)o[l].c();e.attr(a,"class","AccountEditLimitsContainer"),e.attr(i,"class","AccountEditContent")},m(l,u){e.insert(l,i,u),e.append(i,a);for(let s=0;s<o.length;s+=1)o[s]&&o[s].m(a,null)},p(l,u){if(u[0]&18836560){n=e.ensure_array_like(l[14]);let s;for(s=0;s<n.length;s+=1){const r=le(l,n,s);o[s]?o[s].p(r,u):(o[s]=be(r),o[s].c(),o[s].m(a,null))}for(;s<o.length;s+=1)o[s].d(1);o.length=n.length}},d(l){l&&e.detach(i),e.destroy_each(o,l)}}}function fe(t){let i,a,n=t[18]("noLimit")+"",o,l,u,s,r,d,f,k,v=e.ensure_array_like(t[20].get(t[6])[t[58]].values),h=[];for(let L=0;L<v.length;L+=1)h[L]=he(se(t,v,L));function N(){t[30].call(i,t[58])}let p=t[17][t[58]].amount==="Custom"&&Le(t),g=t[56].isModified===!0&&ye(t);return{c(){i=e.element("select"),a=e.element("option"),o=e.text(n);for(let L=0;L<h.length;L+=1)h[L].c();u=e.space(),s=e.element("div"),p&&p.c(),r=e.space(),g&&g.c(),d=e.empty(),a.__value="",e.set_input_value(a,a.__value),a.disabled=!0,a.selected=!0,a.hidden=!0,e.attr(i,"class","AccountEditField "+(t[19]?"TimeoutSelectMobile":"")),i.disabled=l=t[56].isModified===!0,t[17][t[58]].amount===void 0&&e.add_render_callback(N),e.attr(s,"class","AccountEditLimitsInputContainer")},m(L,b){e.insert(L,i,b),e.append(i,a),e.append(a,o);for(let _=0;_<h.length;_+=1)h[_]&&h[_].m(i,null);e.select_option(i,t[17][t[58]].amount,!0),e.insert(L,u,b),e.insert(L,s,b),p&&p.m(s,null),e.insert(L,r,b),g&&g.m(L,b),e.insert(L,d,b),f||(k=[e.listen(i,"change",N),e.listen(i,"change",function(){e.is_function(t[24](t[17][t[58]],t[58],!1,t[16]))&&t[24](t[17][t[58]],t[58],!1,t[16]).apply(this,arguments)})],f=!0)},p(L,b){if(t=L,b[0]&262144&&n!==(n=t[18]("noLimit")+"")&&e.set_data(o,n),b[0]&1048656){v=e.ensure_array_like(t[20].get(t[6])[t[58]].values);let _;for(_=0;_<v.length;_+=1){const W=se(t,v,_);h[_]?h[_].p(W,b):(h[_]=he(W),h[_].c(),h[_].m(i,null))}for(;_<h.length;_+=1)h[_].d(1);h.length=v.length}b[0]&16384&&l!==(l=t[56].isModified===!0)&&(i.disabled=l),b[0]&1179712&&e.select_option(i,t[17][t[58]].amount),t[17][t[58]].amount==="Custom"?p?p.p(t,b):(p=Le(t),p.c(),p.m(s,null)):p&&(p.d(1),p=null),t[56].isModified===!0?g?g.p(t,b):(g=ye(t),g.c(),g.m(d.parentNode,d)):g&&(g.d(1),g=null)},d(L){L&&(e.detach(i),e.detach(u),e.detach(s),e.detach(r),e.detach(d)),e.destroy_each(h,L),p&&p.d(),g&&g.d(L),f=!1,e.run_all(k)}}}function ge(t){let i=(t[6]!=="Time Limit"?t[4]:" minutes")+"",a;return{c(){a=e.text(i)},m(n,o){e.insert(n,a,o)},p(n,o){o[0]&80&&i!==(i=(n[6]!=="Time Limit"?n[4]:" minutes")+"")&&e.set_data(a,i)},d(n){n&&e.detach(a)}}}function he(t){let i,a=t[59]+"",n,o,l,u,s=t[59]!=="No limit"&&t[59]!=="Custom"&&ge(t);return{c(){i=e.element("option"),n=e.text(a),o=e.space(),s&&s.c(),l=e.space(),i.__value=u=t[59],e.set_input_value(i,i.__value)},m(r,d){e.insert(r,i,d),e.append(i,n),e.append(i,o),s&&s.m(i,null),e.append(i,l)},p(r,d){d[0]&64&&a!==(a=r[59]+"")&&e.set_data(n,a),r[59]!=="No limit"&&r[59]!=="Custom"?s?s.p(r,d):(s=ge(r),s.c(),s.m(i,l)):s&&(s.d(1),s=null),d[0]&64&&u!==(u=r[59])&&(i.__value=u,e.set_input_value(i,i.__value))},d(r){r&&e.detach(i),s&&s.d()}}}function Le(t){let i;function a(l,u){return l[6]!=="Time Limit"?ze:Se}let n=a(t),o=n(t);return{c(){o.c(),i=e.empty()},m(l,u){o.m(l,u),e.insert(l,i,u)},p(l,u){n===(n=a(l))&&o?o.p(l,u):(o.d(1),o=n(l),o&&(o.c(),o.m(i.parentNode,i)))},d(l){l&&e.detach(i),o.d(l)}}}function Se(t){let i,a,n,o,l,u;function s(){t[32].call(i,t[58])}let r=t[13][t[58]]==1&&_e(t);return{c(){i=e.element("input"),n=e.space(),o=e.element("p"),r&&r.c(),e.attr(i,"type","number"),e.attr(i,"class","AccountEditField AccountEditFieldCustom"),i.disabled=a=t[56].isModified===!0,e.attr(o,"class","AccountEditWarningText")},m(d,f){e.insert(d,i,f),e.set_input_value(i,t[17][t[58]].value),e.insert(d,n,f),e.insert(d,o,f),r&&r.m(o,null),l||(u=[e.listen(i,"keyup",function(){e.is_function(t[24](t[17][t[58]],t[58],!0,t[16]))&&t[24](t[17][t[58]],t[58],!0,t[16]).apply(this,arguments)}),e.listen(i,"input",s)],l=!0)},p(d,f){t=d,f[0]&16384&&a!==(a=t[56].isModified===!0)&&(i.disabled=a),f[0]&1179712&&e.to_number(i.value)!==t[17][t[58]].value&&e.set_input_value(i,t[17][t[58]].value),t[13][t[58]]==1?r?r.p(t,f):(r=_e(t),r.c(),r.m(o,null)):r&&(r.d(1),r=null)},d(d){d&&(e.detach(i),e.detach(n),e.detach(o)),r&&r.d(),l=!1,e.run_all(u)}}}function ze(t){let i,a,n,o,l,u;function s(){t[31].call(i,t[58])}let r=t[13][t[58]]==1&&ve(t);return{c(){i=e.element("input"),n=e.space(),o=e.element("p"),r&&r.c(),e.attr(i,"type","number"),e.attr(i,"class","AccountEditField AccountEditFieldCustom"),i.disabled=a=t[56].isModified===!0,e.attr(o,"class","AccountEditWarningText")},m(d,f){e.insert(d,i,f),e.set_input_value(i,t[17][t[58]].value),e.insert(d,n,f),e.insert(d,o,f),r&&r.m(o,null),l||(u=[e.listen(i,"keyup",function(){e.is_function(t[24](t[17][t[58]],t[58],!1,t[16]))&&t[24](t[17][t[58]],t[58],!1,t[16]).apply(this,arguments)}),e.listen(i,"input",s)],l=!0)},p(d,f){t=d,f[0]&16384&&a!==(a=t[56].isModified===!0)&&(i.disabled=a),f[0]&1179712&&e.to_number(i.value)!==t[17][t[58]].value&&e.set_input_value(i,t[17][t[58]].value),t[13][t[58]]==1?r?r.p(t,f):(r=ve(t),r.c(),r.m(o,null)):r&&(r.d(1),r=null)},d(d){d&&(e.detach(i),e.detach(n),e.detach(o)),r&&r.d(),l=!1,e.run_all(u)}}}function _e(t){let i,a=t[18]("invalidInputMessageTime",{values:{minTime:t[10],maxTime:t[11]}})+"",n;return{c(){i=e.element("p"),n=e.text(a),e.attr(i,"class","InvalidInput")},m(o,l){e.insert(o,i,l),e.append(i,n)},p(o,l){l[0]&265216&&a!==(a=o[18]("invalidInputMessageTime",{values:{minTime:o[10],maxTime:o[11]}})+"")&&e.set_data(n,a)},d(o){o&&e.detach(i)}}}function ve(t){let i,a=t[18]("invalidInputMessageLimit")+"",n;return{c(){i=e.element("p"),n=e.text(a),e.attr(i,"class","InvalidInput")},m(o,l){e.insert(o,i,l),e.append(i,n)},p(o,l){l[0]&262144&&a!==(a=o[18]("invalidInputMessageLimit")+"")&&e.set_data(n,a)},d(o){o&&e.detach(i)}}}function ye(t){let i,a=t[18]("expirationDate")+"",n,o,l,u=(t[56].expiryDate?$.format(new Date(t[56].expiryDate),"d/M/yyyy - h:mm a"):"N/A")+"",s,r,d,f,k,v,h=t[18]("changedLimitTextBefore")+"",N,p,g=(t[56].updateAmount>0?t[56].updateAmount:0)+"",L,b,_=(t[56].minutes!==void 0?" minutes":t[4])+"",W,F,j=t[18]("changedLimitTextAfter")+"",S;return{c(){i=e.element("p"),n=e.text(a),o=e.space(),l=e.element("span"),s=e.text(u),r=e.space(),d=e.element("div"),f=e.element("p"),k=e.element("span"),k.textContent="i",v=e.element("span"),N=e.text(h),p=e.space(),L=e.text(g),b=e.space(),W=e.text(_),F=e.text(". "),S=e.text(j),e.attr(i,"class","AccountEditLimitsExpiryDate"),e.attr(k,"class","AccountEditLimitChangePeriodIcon"),e.attr(d,"class","AccountEditLimitsPeriodChangeContainer")},m(w,z){e.insert(w,i,z),e.append(i,n),e.append(i,o),e.append(i,l),e.append(l,s),e.insert(w,r,z),e.insert(w,d,z),e.append(d,f),e.append(f,k),e.append(f,v),e.append(v,N),e.append(v,p),e.append(v,L),e.append(v,b),e.append(v,W),e.append(v,F),e.append(v,S)},p(w,z){z[0]&262144&&a!==(a=w[18]("expirationDate")+"")&&e.set_data(n,a),z[0]&16384&&u!==(u=(w[56].expiryDate?$.format(new Date(w[56].expiryDate),"d/M/yyyy - h:mm a"):"N/A")+"")&&e.set_data(s,u),z[0]&262144&&h!==(h=w[18]("changedLimitTextBefore")+"")&&e.set_data(N,h),z[0]&16384&&g!==(g=(w[56].updateAmount>0?w[56].updateAmount:0)+"")&&e.set_data(L,g),z[0]&16400&&_!==(_=(w[56].minutes!==void 0?" minutes":w[4])+"")&&e.set_data(W,_),z[0]&262144&&j!==(j=w[18]("changedLimitTextAfter")+"")&&e.set_data(S,j)},d(w){w&&(e.detach(i),e.detach(r),e.detach(d))}}}function be(t){let i,a,n=t[18](""+t[56].period.charAt(0).toLowerCase()+t[56].period.substring(1))+"",o,l,u,s=t[56].period==t[17][t[58]].period&&fe(t);return{c(){i=e.element("div"),a=e.element("p"),o=e.text(n),l=e.space(),s&&s.c(),u=e.space(),e.attr(a,"class","AccountEditLimitsTitle"),e.attr(i,"class","AccountEditLimitsBox")},m(r,d){e.insert(r,i,d),e.append(i,a),e.append(a,o),e.append(i,l),s&&s.m(i,null),e.append(i,u)},p(r,d){d[0]&278528&&n!==(n=r[18](""+r[56].period.charAt(0).toLowerCase()+r[56].period.substring(1))+"")&&e.set_data(o,n),r[56].period==r[17][r[58]].period?s?s.p(r,d):(s=fe(r),s.c(),s.m(i,u)):s&&(s.d(1),s=null)},d(r){r&&e.detach(i),s&&s.d()}}}function Fe(t){let i,a,n,o,l,u,s,r,d,f,k,v,h=t[18]("back")+"",N,p,g,L,b=(t[1]?t[9]:"")+"",_,W,F,j,S,w,z,X,q,G,J,V,E=t[18]("save")+"",Y,R,C,Z,U,H,K,Q,O=t[19]&&je(t),D=t[2]&&me(t),I=t[3]&&ue(t),B=t[8]&&ce(t);return{c(){i=e.element("div"),O&&O.c(),a=e.space(),n=e.element("div"),o=e.svg_element("svg"),l=e.svg_element("defs"),u=e.svg_element("style"),s=e.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),r=e.svg_element("g"),d=e.svg_element("g"),f=e.svg_element("path"),k=e.space(),v=e.element("h2"),N=e.text(h),p=e.space(),g=e.element("div"),L=e.element("h6"),_=e.text(b),W=e.space(),F=e.element("div"),j=e.element("span"),j.textContent="i",S=e.space(),w=e.element("player-account-gaming-limits-popup"),z=e.space(),D&&D.c(),X=e.space(),I&&I.c(),q=e.space(),B&&B.c(),G=e.space(),J=e.element("div"),V=e.element("button"),Y=e.text(E),Z=e.space(),U=e.element("player-account-modal"),H=e.element("player-account-gaming-limits-confirmation-modal"),e.attr(f,"class","aaa"),e.attr(f,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),e.attr(f,"transform","translate(15 15) rotate(180)"),e.attr(d,"transform","translate(20 158)"),e.attr(r,"transform","translate(-20 -158)"),e.attr(o,"xmlns","http://www.w3.org/2000/svg"),e.attr(o,"width","20"),e.attr(o,"height","20"),e.attr(o,"viewBox","0 0 15 15"),e.attr(v,"class","MyAccountCategoryTitle "+(t[19]?"MyAccountCategoryTitleNone":"")),e.attr(n,"class","MenuReturnButton "+(t[19]?"MyAccountCategoryTitleNone":"")),e.attr(j,"class","AccountEditLimitsIcon"),e.set_custom_element_data(w,"showpopup",t[7]),e.set_custom_element_data(w,"lang",t[0]),e.attr(F,"class","AccountEditLimitsIconWrapper"),e.attr(g,"class","AccountEditLimitsHeader"),e.attr(V,"class",R="AccountEditLimitsSaveButton "+(t[15]?"":"AccountEditLimitsButtonDisabled")),V.disabled=C=!t[15],e.attr(J,"class","AccountEditLimitsControlArea"),e.attr(i,"class","AccountEditLimitsWrapper "+(t[19]?"AccountEditLimitsMobileWrapper":"")),e.set_custom_element_data(H,"modaltext",t[12]),e.set_custom_element_data(H,"modalsource","groupEdit"),e.set_custom_element_data(H,"lang",t[0])},m(y,A){e.insert(y,i,A),O&&O.m(i,null),e.append(i,a),e.append(i,n),e.append(n,o),e.append(o,l),e.append(l,u),e.append(u,s),e.append(o,r),e.append(r,d),e.append(d,f),e.append(n,k),e.append(n,v),e.append(v,N),e.append(i,p),e.append(i,g),e.append(g,L),e.append(L,_),e.append(g,W),e.append(g,F),e.append(F,j),e.append(F,S),e.append(F,w),e.append(i,z),D&&D.m(i,null),e.append(i,X),I&&I.m(i,null),e.append(i,q),B&&B.m(i,null),e.append(i,G),e.append(i,J),e.append(J,V),e.append(V,Y),t[34](i),e.insert(y,Z,A),e.insert(y,U,A),e.append(U,H),K||(Q=[e.listen(n,"click",t[22]),e.listen(j,"click",e.prevent_default(t[21])),e.listen(V,"click",t[33])],K=!0)},p(y,A){y[19]&&O.p(y,A),A[0]&262144&&h!==(h=y[18]("back")+"")&&e.set_data(N,h),A[0]&514&&b!==(b=(y[1]?y[9]:"")+"")&&e.set_data(_,b),A[0]&128&&e.set_custom_element_data(w,"showpopup",y[7]),A[0]&1&&e.set_custom_element_data(w,"lang",y[0]),y[2]?D?D.p(y,A):(D=me(y),D.c(),D.m(i,X)):D&&(D.d(1),D=null),y[3]?I?I.p(y,A):(I=ue(y),I.c(),I.m(i,q)):I&&(I.d(1),I=null),y[8]?B?B.p(y,A):(B=ce(y),B.c(),B.m(i,G)):B&&(B.d(1),B=null),A[0]&262144&&E!==(E=y[18]("save")+"")&&e.set_data(Y,E),A[0]&32768&&R!==(R="AccountEditLimitsSaveButton "+(y[15]?"":"AccountEditLimitsButtonDisabled"))&&e.attr(V,"class",R),A[0]&32768&&C!==(C=!y[15])&&(V.disabled=C),A[0]&4096&&e.set_custom_element_data(H,"modaltext",y[12]),A[0]&1&&e.set_custom_element_data(H,"lang",y[0])},i:e.noop,o:e.noop,d(y){y&&(e.detach(i),e.detach(Z),e.detach(U)),O&&O.d(),D&&D.d(),I&&I.d(),B&&B.d(),t[34](null),K=!1,e.run_all(Q)}}}function qe(t,i,a){let n;e.component_subscribe(t,e.$format,m=>a(18,n=m));let{limitsdata:o=[]}=i,{showsuccessnotification:l=!1}=i,{showdeletenotification:u=!1}=i,{currency:s=""}=i,{lang:r="en"}=i,{separatelimits:d="true"}=i,{clientstyling:f=""}=i,{clientstylingurl:k=""}=i,{mbsource:v}=i,{translationurl:h=""}=i;const N=()=>{fetch(h).then(c=>c.json()).then(c=>{Object.keys(c).forEach(T=>{ne(T,c[T])})}).catch(c=>{console.log(c)})};Object.keys(oe).forEach(m=>{ne(m,oe[m])});let p,g,L,b=!1,_=!1,W="",F=!1,j=0,S=0,w="",z=window.navigator.userAgent,X=e.getDevice(z)!=="PC",q=new Array(3).fill(0),G={},J=[],V=[],E=!1,Y=[];const R={amount:/^[0-9]{0,8}$/,time:/^[1-9]\d*$/};let C=[{period:"Daily",amount:"No limit",value:0},{period:"Weekly",amount:"No limit",value:0},{period:"Monthly",amount:"No limit",value:0}],Z=[{period:"Daily",values:["10000","20000","50000","No limit","Custom"]},{period:"Weekly",values:["10000","50000","100000","No limit","Custom"]},{period:"Monthly",values:["50000","100000","200000","No limit","Custom"]}],U=[{period:"Daily",values:["5000","7000","10000","No limit","Custom"]},{period:"Weekly",values:["25000","50000","100000","No limit","Custom"]},{period:"Monthly",values:["125000","175000","200000","No limit","Custom"]}],H=[{period:"Daily",values:["5000","7000","10000","No limit","Custom"]},{period:"Weekly",values:["25000","50000","100000","No limit","Custom"]},{period:"Monthly",values:["125000","175000","200000","No limit","Custom"]}],K=[{period:"Daily",values:["500","1000","1430","No limit","Custom"]},{period:"Weekly",values:["5000","7000","10000","No limit","Custom"]},{period:"Monthly",values:["20000","30000","43000","No limit","Custom"]}];const Q=new Map([["Deposit Limit","depositLimits"],["Time Limit","cumulativeSessionLimits"],["Wagering Limit","wageringLimits"],["Loss Limit","lossLimits"]]),O=new Map([["Deposit Limit",Z],["Time Limit",K],["Wagering Limit",U],["Loss Limit",H]]),D=()=>{a(7,b=!0)},I=()=>{window.postMessage({type:"PlayerAccountBackToLimitsView"},window.location.href)},B=()=>{window.postMessage({type:"ShowLimitsConfirmationModal"},window.location.href)},y=()=>{if(F){p==="Time Limit"?C.forEach(c=>{if(d=="true"){if(c.value!=0){let T={period:c.period,minutes:c.value};J.push(T)}}else G.forEach(T=>{T.period===c.period&&(T.minutes=c.value)})}):C.forEach(c=>{if(d=="true"){if(c.value!=0){let T={period:c.period,amount:c.value,currency:s};J.push(T)}}else G.forEach(T=>{T.period===c.period&&(T.amount=c.value,T.currency=s)})});let m={};d=="true"?m={[Q.get(p)]:[...J]}:m={[Q.get(p)]:[...G]},J.length=0,window.postMessage({type:"PlayerAccountGamingLimitsUpdate",payload:m,limitsCategory:Q.get(p)},window.location.href),a(15,E=!1)}},A=(m,c,T,M)=>{switch(m.amount){case"Custom":if(p=="Time Limit")if(a(10,j=60),m.period==="Daily"?a(11,S=1440):m.period=="Weekly"?a(11,S=10080):a(11,S=43200),m.value&&R.time.test(m.value)&&m.value>j&&m.value<=S){a(13,q[c]=0,q);let P=M[c];m.period==P.period&&m.value==P.amount?(a(15,E=!1),ee(m,M)):a(15,E=!0)}else a(13,q[c]=1,q),a(15,E=!1);else m.value&&R.amount.test(m.value)?(a(13,q[c]=0,q),m.period==M[c].period&&m.value==M[c].amount?(a(15,E=!!E),ee(m,M)):a(15,E=!0),d!="true"&&C.forEach(P=>{P.value==0&&a(15,E=!1)})):(a(13,q[c]=1,q),a(15,E=!1));break;default:m.period==M[c].period?(ee(m,M),a(15,E=m.value!=M[c].amount)):a(15,E=!0),C.forEach(P=>{(P.value==0&&d!="true"||P.amount=="Custom"&&!R.amount.test(P.value.toString()))&&a(15,E=!1)});break}},ee=(m,c)=>{let T=JSON.parse(JSON.stringify(c));C.forEach(M=>{T.forEach(P=>{M.period==m.period&&(M.amount!=="Custom"&&M.amount!=="No limit"?M.value=JSON.parse(M.amount):M.amount==="No limit"&&(M.value=0)),P.period===M.period&&(P.amount=M.value)})})},ke=(m,c,T,M)=>{let P=m.values;!c.amount||c.amount==="No limit"?T.forEach(x=>{x.period===c.period&&(x.amount=c.amount,x.value=0)}):P.includes(JSON.stringify(c.amount))?T.forEach(x=>{x.period===c.period&&(x.amount=JSON.stringify(c.amount),x.value=c.amount)}):T.forEach(x=>{x.period===c.period&&(x.amount="Custom",x.value=c.amount)})},Te=m=>{V.forEach(c=>{m.period===c.period&&(p==="Time Limit"&&(a(10,j=60),m.period==="Daily"?a(11,S=1440):m.period=="Weekly"?a(11,S=10080):a(11,S=43200)),c.values.indexOf(m.amount)>-1&&(m.amount==="No limit"?m.amount=0:m.amount=JSON.parse(m.amount)))})},Ee=()=>{Y.forEach(m=>{Te(m)}),G.forEach(m=>{V.forEach(c=>{m.period===c.period&&ke(c,m,C)})})},ie=()=>{let m="";m=p==="Time Limit"?"time limit":p==="Deposit Limit"?"deposit limit":p==="Wagering Limit"?"wagering limit":"loss limit",a(12,w=n("changeLimitsText",{values:{limit:m}}))},te=()=>{Ie(r),ie(),a(16,Y=JSON.parse(JSON.stringify(o))),a(14,G=JSON.parse(JSON.stringify(o))),V=p==="Wagering Limit"?U:p==="Loss Limit"?H:p==="Deposit Limit"?Z:p==="Time Limit"?K:[],Ee()},ae=m=>{if(m.data)switch(m.data.type){case"LanguageChanged":a(0,r=m.data.lang),ie();break;case"EditPlayerLimit":a(6,p=m.data.name),a(9,W=n(p.charAt(0).toLowerCase()+p.substring(1).replace(/\s/g,""))),te(),a(8,_=!0);break;case"ClosePlayerAccountGamingLimitsPopup":a(7,b=!1);break;case"GamingLimitsConfirmChanges":F=!0,y();break;case"CancelGamingLimitsChanges":a(8,_=!1),setTimeout(()=>{a(8,_=!0)},10),te(),a(15,E=!1),F=!1;break}};e.onMount(()=>(window.addEventListener("message",ae,!1),()=>{window.removeEventListener("message",ae)}));function Ae(m){C[m].amount=e.select_value(this),a(17,C),a(20,O),a(6,p)}function Me(m){C[m].value=e.to_number(this.value),a(17,C),a(20,O),a(6,p)}function Ce(m){C[m].value=e.to_number(this.value),a(17,C),a(20,O),a(6,p)}const Be=()=>B();function De(m){e.binding_callbacks[m?"unshift":"push"](()=>{g=m,a(5,g)})}return t.$$set=m=>{"limitsdata"in m&&a(1,o=m.limitsdata),"showsuccessnotification"in m&&a(2,l=m.showsuccessnotification),"showdeletenotification"in m&&a(3,u=m.showdeletenotification),"currency"in m&&a(4,s=m.currency),"lang"in m&&a(0,r=m.lang),"separatelimits"in m&&a(25,d=m.separatelimits),"clientstyling"in m&&a(26,f=m.clientstyling),"clientstylingurl"in m&&a(27,k=m.clientstylingurl),"mbsource"in m&&a(28,v=m.mbsource),"translationurl"in m&&a(29,h=m.translationurl)},t.$$.update=()=>{t.$$.dirty[0]&12&&l&&u&&te(),t.$$.dirty[0]&3,t.$$.dirty[0]&67108896&&f&&g&&e.setClientStyling(g,f),t.$$.dirty[0]&134217760&&k&&g&&e.setClientStylingURL(g,k),t.$$.dirty[0]&268435488&&v&&g&&e.setStreamStyling(g,`${v}.Style`,L),t.$$.dirty[0]&536870912&&h&&N()},[r,o,l,u,s,g,p,b,_,W,j,S,w,q,G,E,Y,C,n,X,O,D,I,B,A,d,f,k,v,h,Ae,Me,Ce,Be,De]}class we extends e.SvelteComponent{constructor(i){super(),e.init(this,i,qe,Fe,e.safe_not_equal,{limitsdata:1,showsuccessnotification:2,showdeletenotification:3,currency:4,lang:0,separatelimits:25,clientstyling:26,clientstylingurl:27,mbsource:28,translationurl:29},Ne,[-1,-1,-1])}get limitsdata(){return this.$$.ctx[1]}set limitsdata(i){this.$$set({limitsdata:i}),e.flush()}get showsuccessnotification(){return this.$$.ctx[2]}set showsuccessnotification(i){this.$$set({showsuccessnotification:i}),e.flush()}get showdeletenotification(){return this.$$.ctx[3]}set showdeletenotification(i){this.$$set({showdeletenotification:i}),e.flush()}get currency(){return this.$$.ctx[4]}set currency(i){this.$$set({currency:i}),e.flush()}get lang(){return this.$$.ctx[0]}set lang(i){this.$$set({lang:i}),e.flush()}get separatelimits(){return this.$$.ctx[25]}set separatelimits(i){this.$$set({separatelimits:i}),e.flush()}get clientstyling(){return this.$$.ctx[26]}set clientstyling(i){this.$$set({clientstyling:i}),e.flush()}get clientstylingurl(){return this.$$.ctx[27]}set clientstylingurl(i){this.$$set({clientstylingurl:i}),e.flush()}get mbsource(){return this.$$.ctx[28]}set mbsource(i){this.$$set({mbsource:i}),e.flush()}get translationurl(){return this.$$.ctx[29]}set translationurl(i){this.$$set({translationurl:i}),e.flush()}}e.create_custom_element(we,{limitsdata:{},showsuccessnotification:{type:"Boolean"},showdeletenotification:{type:"Boolean"},currency:{},lang:{},separatelimits:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{}},[],[],!0);exports.default=we;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PlayerAccountController-q2E-Ys0M.cjs");require("./PlayerAccountGamingLimitsInfoCard-CY8nPlUf.cjs");require("./PlayerAccountTimeout-B8sKFltn.cjs");const $=require("./PlayerBonusHistory-BdLQMCy6.cjs");function ne(t,i){e.addMessages(t,i)}function Ie(t){e.$locale.set(t)}const oe={en:{back:"Back to Gaming Limits",limit:"Limit",amount:"Amount",noLimit:"No limit",changeLimitsText:"Are you sure you want to change the {limit}s?",success:"Success lorem Ipsum is simply dummy text of the printing and typesetting industry.",remove:"You have requested to remove this limit. This will be applied on",invalidInputMessageLimit:"The amount needs to be between 1 and 99,999,999.",invalidInputMessageTime:"The time amount needs to be greater than {minTime} and below {maxTime} minutes.",expirationDate:"Expiration Date:",save:"Save",changedLimitTextBefore:"Your limit has been changed or increased:",changedLimitTextAfter:"You will have to wait for the expiration date for your new limit to take effect.",daily:"Daily",weekly:"Weekly",monthly:"Monthly",depositLimit:"Deposit Limit",timeLimit:"Time Limit",wageringLimit:"Wagering Limit",lossLimit:"Loss Limit"},"zh-hk":{back:"返回游戲限制",limit:"限制",amount:"數量",noLimit:"沒有限制t",changeLimitsText:"您確定要更改 {limit} 嗎?",success:"您的遊戲限制已成功設置。",remove:"您已請求取消此限制。 這將應用於",invalidInputMessageLimit:"金額需要在 0 到 99,999,999 之間",invalidInputMessageTime:"時間量需要大於 {minTime} 且低於 {maxTime} 分鐘",expirationDate:"截止日期:",save:"節省",changedLimitTextBefore:"您的限額已更改或增加:",changedLimitTextAfter:"您必須等待到期日期才能使新限制生效",daily:"日常的",weekly:"每周",monthly:"月刊",depositLimit:"存款限额",timeLimit:"时限",wageringLimit:"投注限额",lossLimit:"损失限额"},fr:{back:"Retour aux limites de jeu",daily:"Quotidiennement",weekly:"Hebdomadaire",monthly:"Mensuel",limit:"Limite",amount:"Montant",noLimit:"Aucune limite",changeLimitsText:"Etes-vous sûr de vouloir changer les {limit}s??",success:"Vos limites de jeu ont été respectées.",remove:"Vous avez demandé à ce que cette limite soit supprimée,elle sera appliquée",invalidInputMessageLimit:"Le montant doit être compris entre 1 et 99,999,999.",invalidInputMessageTime:"La durée doit être supérieure au {minTime} et inférieur au {maxTime} minutes .",expirationDate:"Date d'expiration:",save:"Sauvez",changedLimitTextBefore:"Votre limit a été modifiée ou augmentée:",changedLimitTextAfter:"Vous devrez attendre la date d'expiration pour que votre nouvelle limite prenne effet",depositLimit:"Limite de dépôt",timeLimit:"Limite de temps",wageringLimit:"Limite de mise",lossLimit:"Limite de perte"},ro:{back:"Înapoi la limite de joc",limit:"Limită",amount:"Sumă",noLimit:"Fără Limită",changeLimitsText:"Ești sigur că vrei să modifici {limit}?",success:"Limitele tale de joc au fost configurate cu success.",remove:"Ai solicitat eliminarea acestei limite. Acest lucru va avea loc la data expirării limitei",invalidInputMessageLimit:"Trebuie să setezi o sumă intre 1 și 99,999,999.",invalidInputMessageTime:"Trebuie să setezi o limită intre {minTime} minute și {maxTime} minute",expirationDate:"Dată Expirare:",save:"Salvează",changedLimitTextBefore:"Limita ta a fost schimbată sau a crescut:",changedLimitTextAfter:". Trebuie să aștepți până la data de expirare pentru ca noua ta limită să intre în vigoare.",daily:"Zilnic",weekly:"Săptămânal",monthly:"Lunar",depositLimit:"Limită de depunere",timeLimit:"Limită de timp",wageringLimit:"Limită de pariere",lossLimit:"Limite de pierdere"},es:{back:"Regresa a límites de juego",limit:"Límite",amount:"Monto",noLimit:"Sin Límite",changeLimitsText:"Esta seguro que desea cambiar los {limit}es?",success:"Limite actualizado satisfactoriamente",remove:"Ha solicitado retirar este limite. Esto será aplicado",invalidInputMessageLimit:"El monto debe ser entre 1 y 99",invalidInputMessageTime:"La cantidad de tiempo debe ser superior a {minTime} y por debajo de {maxTime} minutos.",expirationDate:"Fecha de expiración:",save:"Guardar",changedLimitTextBefore:"Tú limite ha sido cambiado o incrementado:",changedLimitTextAfter:"Tendrás que esperar a la fecha de expiración para que tu nuevo límite entre en vigencia.",daily:"Diario",weekly:"Semanal",monthly:"Mensual",depositLimit:"Límite de depósito",timeLimit:"Límite de tiempo",wageringLimit:"Límite de apuestas",lossLimit:"Límite de pérdida"},pt:{back:"Voltar para Limites de jogos",limit:"Limite",amount:"Montante",noLimit:"Sem limite",changeLimitsText:"Tem certeza de que deseja alterar os {limite}s?",success:"Seus limites de jogo foram definidos com sucesso.",remove:"Você solicitou a remoção deste limite. Isso será aplicado em",invalidInputMessageLimit:"O valor precisa estar entre 1 e 99.999.999",invalidInputMessageTime:"A quantidade de tempo precisa ser maior que {1} e menor que {99999999} minutos",expirationDate:"Data de Validade",save:"Guardar",changedLimitTextBefore:"Seu limite foi alterado ou aumentado:",changedLimitTextAfter:"Você terá que aguardar a data de expiração para que seu novo limite entre em vigor",daily:"Diariamente",weekly:"Semanalmente",monthly:"Mensalmente",depositLimit:"Limite de Depósito",timeLimit:"Limite de Tempo",wageringLimit:"Limite de Apostas",lossLimit:"Limite de Perda"},hr:{back:"Povratak na ograničenja igranja",limit:"Limit",amount:"Iznos",noLimit:"Nema ograničenja",changeLimitsText:"Jeste li sigurni da želite promijeniti {limit}e?",success:"Uspješno",remove:"Zatražili ste uklanjanje ovog ograničenja. Ovo će se primijeniti na",invalidInputMessageLimit:"Iznos mora biti između 1 i 99",invalidInputMessageTime:"Vremenski iznos mora biti veći od {minTime} i manji od {maxTime} minuta.",expirationDate:"Datum isteka:",save:"Spremi",changedLimitTextBefore:"Vaše ograničenje je promijenjeno ili povećano:",changedLimitTextAfter:"Morat ćete pričekati datum isteka da bi vaše novo ograničenje stupilo na snagu.",daily:"Dnevno",weekly:"Tjedno",monthly:"Mjesečno",depositLimit:"Ograničenje uplate",timeLimit:"Vremensko ograničenje",wageringLimit:"Ograničenje igranja",lossLimit:"Ograničenje gubitka"},"pt-br":{back:"Retornar aos limites do jogo",limit:"Limite",amount:"Quantidade",noLimit:"Sem limite",changeLimitsText:"Tem certeza de que deseja alterar o(s) limite(s)?",success:"A operação bem-sucedida lorem Ipsum é simplesmente um texto fictício da indústria de impressão e composição tipográfica.",remove:"Você solicitou a remoção deste limite. Isto será aplicado a partir de",invalidInputMessageLimit:"A Quantia deve estar entre 1 e 99",invalidInputMessageTime:"A quantidade de tempo precisa ser maior que {minTime} e menor que {maxTime} minutos.",expirationDate:"Data de expiração:",save:"Manter",changedLimitTextBefore:"Seu limite de tempo foi alterado ou aumentado:",changedLimitTextAfter:"Você deve aguardar a data de expiração para que seu novo limite entre em vigor.",daily:"Diário",weekly:"Semanalmente",monthly:"Por mês",depositLimit:"Limite de depósito",timeLimit:"Limite de tempo",wageringLimit:"Limite de aposta",lossLimit:"Limite de perda"},"es-mx":{back:"Regresar a límites de juego",limit:"Límite",amount:"Monto",noLimit:"Sin límite",changeLimitsText:"¿Está seguro que quiere cambiar el/los límite(s)?",success:"Operación exitosa lorem Ipsum is simply dummy text of the printing and typesetting industry.",remove:"Ha solicitado remover este límite. Esto se aplicará a partir de",invalidInputMessageLimit:"El monto debe ser entre 1 y 99,999,999",invalidInputMessageTime:"El monto de tiempo necesita ser mayor a {minTime} y menor a {maxTime} minutos.",expirationDate:"Fecha de expiración:",save:"Guardar",changedLimitTextBefore:"Tú límite de tiempo ha sido cambiado o aumentado:",changedLimitTextAfter:"Tiene que esperar a la fecha de expiración para que su nuevo límite entre en efecto.",daily:"Diario",weekly:"Semanal",monthly:"Mensual",depositLimit:"Límite de depósito",timeLimit:"Límite de tiempo",wageringLimit:"Límite de apuesta",lossLimit:"Límite de pérdida"},tr:{back:"Oyun Sınırlarına Geri Dön",limit:"Sınır",amount:"Miktar",noLimit:"Limit yok",changeLimitsText:"{limit}'leri değiştirmek istediğinizden emin misiniz?",success:"Başarı lorem Ipsum, basım ve dizgi endüstrisinin sahte metnidir.",remove:"Bu sınırın kaldırılmasını talep ettiniz. Bu şu tarihte uygulanacaktır:",invalidInputMessageLimit:"Tutarın 1 ile 99.999.999 arasında olması gerekir.",invalidInputMessageTime:"Süre miktarının {minTime} değerinden büyük ve {maxTime} dakikanın altında olması gerekir.",expirationDate:"Son kullanma tarihi:",save:"Kaydetmek",changedLimitTextBefore:"Limitiniz değiştirildi veya artırıldı:",changedLimitTextAfter:"Yeni limitinizin geçerlilik kazanması için son kullanma tarihini beklemeniz gerekecektir.",daily:"Günlük",weekly:"Haftalık",monthly:"Aylık",depositLimit:"Para Yatırma Limiti",timeLimit:"Zaman sınırı",wageringLimit:"Bahis Limiti",lossLimit:"Kayıp Limiti"},"en-us":{back:"Back to Gaming Limits",limit:"Limit",amount:"Amount",noLimit:"No limit",changeLimitsText:"Are you sure you want to change the {limit}s?",success:"Success lorem Ipsum is simply dummy text of the printing and typesetting industry.",remove:"You have requested to remove this limit. This will be applied on",invalidInputMessageLimit:"The amount needs to be between 1 and 99,999,999.",invalidInputMessageTime:"The time amount needs to be greater than {minTime} and below {maxTime} minutes.",expirationDate:"Expiration Date:",save:"Save",changedLimitTextBefore:"Your limit has been changed or increased:",changedLimitTextAfter:"You will have to wait for the expiration date for your new limit to take effect.",daily:"Daily",weekly:"Weekly",monthly:"Monthly",depositLimit:"Deposit Limit",timeLimit:"Time Limit",wageringLimit:"Wagering Limit",lossLimit:"Loss Limit"}};if(typeof window!="undefined"){let t=function(i){return function(...a){try{return i.apply(this,a)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=t(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountGamingLimitsConfirmationModal-BHlrokFh.cjs")).then(({default:i})=>{!customElements.get("player-account-gaming-limits-confirmation-modal")&&customElements.define("player-account-gaming-limits-confirmation-modal",i.element)})}function Ne(t){e.append_styles(t,"svelte-5vl9hz",".MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px;cursor:pointer}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.MyAccountCategoryTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.MyAccountCategoryTitleMobile{font-size:16px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.MyAccountCategoryTitleNone{display:none !important}.AccountEditLimitsWrapper{padding:50px;max-width:760px}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper{padding:20px}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper .AccountEditLimitsControlArea{grid-template-columns:1fr}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper .AccountEditLimitsControlArea .AccountEditLimitsSaveButton{width:100%}.AccountEditBackButton{display:inline-block;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-size:26px;font-weight:300;cursor:pointer;margin-bottom:30px}.AccountEditBackButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.AccountEditLimitsHeader{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:5px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.AccountEditLimitsHeader h6{margin:0;font-weight:normal;font-size:16px;line-height:20px}.AccountEditLimitsHeader .AccountEditLimitsIcon{display:flex;width:20px;height:20px;background:transparent;border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));align-items:center;justify-content:center;border-radius:30px;cursor:pointer}.AccountEditLimitChangePeriodIcon{display:flex;width:20px;height:20px;color:var(--emw--color-gray-300, #58586B);background:transparent;border:1px solid var(--emw--color-gray-300, #58586B);align-items:center;justify-content:center;border-radius:30px;cursor:pointer;margin-right:10px}.AccountEditLimitSuccessfulChangeContainer{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--color-primary-100, #F1BED9);font-size:16px;font-weight:300;color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));border-radius:5px;padding:10px}.AccountEditLimitSuccessfulChangeContainer p{margin:0}.AccountEditLimitsIconWrapper{position:relative;display:inline-block;padding:5px 0 5px 15px;cursor:pointer}.AccountEditLimitsTitle{font-size:16px;font-weight:300;color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));margin:0;padding:10px 0 10px}.AccountEditLimitsExpiryDate{font-size:12px;font-weight:300;color:var(--emw--color-black, #000000)}.AccountEditLimitsContainer{display:grid;grid-template-columns:1fr 1fr;grid-gap:30px;direction:ltr}@media only screen and (max-width: 1024px){.AccountEditLimitsContainer{grid-template-columns:1fr;grid-gap:20px}}.AccountEditField{width:100%;font-size:14px;font-weight:300;color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A));padding:10px;line-height:16px;background:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;outline:none;transition-duration:0.3s}.AccountEditField:focus,.AccountEditField :focus-within,.AccountEditField :focus-visible,.AccountEditField :visited{border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.AccountEditFieldCustom{padding:3%}.AccountEditLimitsPeriodChangeContainer{background:var(--emw--color-gray-50, #F9F8F8);border-radius:5px}.AccountEditLimitsPeriodChangeContainer p{max-width:290px;display:-webkit-box;padding:10px 35px 15px 10px;color:var(--emw--color-gray-300, #58586B);font-size:12px;font-weight:300}.AccountEditLimitsPeriodChangeContainer p .AccountEditLimitChangePeriodIcon{font-size:14px;font-weight:400}.AccountEditLimitsControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:40px;margin-top:35px}.AccountEditLimitsControlArea .AccountEditLimitsSaveButton{padding:12px;cursor:pointer;border-radius:5px;display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--emw--color-black, #000000);text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF))}.AccountEditLimitsControlArea .AccountEditLimitsSaveButton.AccountEditLimitsButtonDisabled{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));cursor:not-allowed;opacity:0.6}.AccountEditLimitsBox{position:relative}.AccountEditWarningText{position:relative;margin:0}.InvalidInput{color:var(--emw--color-error, var(--emw--color-red, #FD2839));font-size:10px;position:absolute;top:6px;margin:0;line-height:10px}.AccountEditLimitsInputContainer{position:relative;padding-top:10px;width:94%}")}function le(t,i,a){const n=t.slice();return n[56]=i[a],n[57]=i,n[58]=a,n}function se(t,i,a){const n=t.slice();return n[59]=i[a],n}function re(t,i,a){const n=t.slice();return n[56]=i[a],n[58]=a,n}function je(t){let i,a,n,o,l,u,s,r,d,f,k=t[18]("back")+"",v,h,N;return{c(){i=e.element("div"),a=e.svg_element("svg"),n=e.svg_element("defs"),o=e.svg_element("style"),l=e.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),u=e.svg_element("g"),s=e.svg_element("g"),r=e.svg_element("path"),d=e.space(),f=e.element("h2"),v=e.text(k),e.attr(r,"class","aaa"),e.attr(r,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),e.attr(r,"transform","translate(15 15) rotate(180)"),e.attr(s,"transform","translate(20 158)"),e.attr(u,"transform","translate(-20 -158)"),e.attr(a,"xmlns","http://www.w3.org/2000/svg"),e.attr(a,"width","15"),e.attr(a,"height","15"),e.attr(a,"viewBox","0 0 15 15"),e.attr(f,"class","MyAccountCategoryTitleMobile"),e.attr(i,"class","MenuReturnButton")},m(p,g){e.insert(p,i,g),e.append(i,a),e.append(a,n),e.append(n,o),e.append(o,l),e.append(a,u),e.append(u,s),e.append(s,r),e.append(i,d),e.append(i,f),e.append(f,v),h||(N=e.listen(i,"click",t[22]),h=!0)},p(p,g){g[0]&262144&&k!==(k=p[18]("back")+"")&&e.set_data(v,k)},d(p){p&&e.detach(i),h=!1,N()}}}function me(t){let i,a,n=t[18]("success")+"",o;return{c(){i=e.element("div"),a=e.element("p"),o=e.text(n),e.attr(i,"class","AccountEditLimitSuccessfulChangeContainer")},m(l,u){e.insert(l,i,u),e.append(i,a),e.append(a,o)},p(l,u){u[0]&262144&&n!==(n=l[18]("success")+"")&&e.set_data(o,n)},d(l){l&&e.detach(i)}}}function ue(t){let i,a=e.ensure_array_like(t[14]),n=[];for(let o=0;o<a.length;o+=1)n[o]=pe(re(t,a,o));return{c(){i=e.element("div");for(let o=0;o<n.length;o+=1)n[o].c();e.attr(i,"class","AccountEditLimitSuccessfulChangeContainer")},m(o,l){e.insert(o,i,l);for(let u=0;u<n.length;u+=1)n[u]&&n[u].m(i,null)},p(o,l){if(l[0]&409600){a=e.ensure_array_like(o[14]);let u;for(u=0;u<a.length;u+=1){const s=re(o,a,u);n[u]?n[u].p(s,l):(n[u]=pe(s),n[u].c(),n[u].m(i,null))}for(;u<n.length;u+=1)n[u].d(1);n.length=a.length}},d(o){o&&e.detach(i),e.destroy_each(n,o)}}}function de(t){let i,a=t[18]("remove")+"",n,o,l=(t[56].expiryDate?$.format(new Date(t[56].expiryDate),"d/M/yyyy - h:mm a"):"N/A")+"",u;return{c(){i=e.element("p"),n=e.text(a),o=e.space(),u=e.text(l)},m(s,r){e.insert(s,i,r),e.append(i,n),e.append(i,o),e.append(i,u)},p(s,r){r[0]&262144&&a!==(a=s[18]("remove")+"")&&e.set_data(n,a),r[0]&16384&&l!==(l=(s[56].expiryDate?$.format(new Date(s[56].expiryDate),"d/M/yyyy - h:mm a"):"N/A")+"")&&e.set_data(u,l)},d(s){s&&e.detach(i)}}}function pe(t){let i,a=t[56].period==t[17][t[58]].period&&de(t);return{c(){a&&a.c(),i=e.empty()},m(n,o){a&&a.m(n,o),e.insert(n,i,o)},p(n,o){n[56].period==n[17][n[58]].period?a?a.p(n,o):(a=de(n),a.c(),a.m(i.parentNode,i)):a&&(a.d(1),a=null)},d(n){n&&e.detach(i),a&&a.d(n)}}}function ce(t){let i,a,n=e.ensure_array_like(t[14]),o=[];for(let l=0;l<n.length;l+=1)o[l]=be(le(t,n,l));return{c(){i=e.element("div"),a=e.element("div");for(let l=0;l<o.length;l+=1)o[l].c();e.attr(a,"class","AccountEditLimitsContainer"),e.attr(i,"class","AccountEditContent")},m(l,u){e.insert(l,i,u),e.append(i,a);for(let s=0;s<o.length;s+=1)o[s]&&o[s].m(a,null)},p(l,u){if(u[0]&18836560){n=e.ensure_array_like(l[14]);let s;for(s=0;s<n.length;s+=1){const r=le(l,n,s);o[s]?o[s].p(r,u):(o[s]=be(r),o[s].c(),o[s].m(a,null))}for(;s<o.length;s+=1)o[s].d(1);o.length=n.length}},d(l){l&&e.detach(i),e.destroy_each(o,l)}}}function fe(t){let i,a,n=t[18]("noLimit")+"",o,l,u,s,r,d,f,k,v=e.ensure_array_like(t[20].get(t[6])[t[58]].values),h=[];for(let L=0;L<v.length;L+=1)h[L]=he(se(t,v,L));function N(){t[30].call(i,t[58])}let p=t[17][t[58]].amount==="Custom"&&Le(t),g=t[56].isModified===!0&&ye(t);return{c(){i=e.element("select"),a=e.element("option"),o=e.text(n);for(let L=0;L<h.length;L+=1)h[L].c();u=e.space(),s=e.element("div"),p&&p.c(),r=e.space(),g&&g.c(),d=e.empty(),a.__value="",e.set_input_value(a,a.__value),a.disabled=!0,a.selected=!0,a.hidden=!0,e.attr(i,"class","AccountEditField "+(t[19]?"TimeoutSelectMobile":"")),i.disabled=l=t[56].isModified===!0,t[17][t[58]].amount===void 0&&e.add_render_callback(N),e.attr(s,"class","AccountEditLimitsInputContainer")},m(L,b){e.insert(L,i,b),e.append(i,a),e.append(a,o);for(let _=0;_<h.length;_+=1)h[_]&&h[_].m(i,null);e.select_option(i,t[17][t[58]].amount,!0),e.insert(L,u,b),e.insert(L,s,b),p&&p.m(s,null),e.insert(L,r,b),g&&g.m(L,b),e.insert(L,d,b),f||(k=[e.listen(i,"change",N),e.listen(i,"change",function(){e.is_function(t[24](t[17][t[58]],t[58],!1,t[16]))&&t[24](t[17][t[58]],t[58],!1,t[16]).apply(this,arguments)})],f=!0)},p(L,b){if(t=L,b[0]&262144&&n!==(n=t[18]("noLimit")+"")&&e.set_data(o,n),b[0]&1048656){v=e.ensure_array_like(t[20].get(t[6])[t[58]].values);let _;for(_=0;_<v.length;_+=1){const W=se(t,v,_);h[_]?h[_].p(W,b):(h[_]=he(W),h[_].c(),h[_].m(i,null))}for(;_<h.length;_+=1)h[_].d(1);h.length=v.length}b[0]&16384&&l!==(l=t[56].isModified===!0)&&(i.disabled=l),b[0]&1179712&&e.select_option(i,t[17][t[58]].amount),t[17][t[58]].amount==="Custom"?p?p.p(t,b):(p=Le(t),p.c(),p.m(s,null)):p&&(p.d(1),p=null),t[56].isModified===!0?g?g.p(t,b):(g=ye(t),g.c(),g.m(d.parentNode,d)):g&&(g.d(1),g=null)},d(L){L&&(e.detach(i),e.detach(u),e.detach(s),e.detach(r),e.detach(d)),e.destroy_each(h,L),p&&p.d(),g&&g.d(L),f=!1,e.run_all(k)}}}function ge(t){let i=(t[6]!=="Time Limit"?t[4]:" minutes")+"",a;return{c(){a=e.text(i)},m(n,o){e.insert(n,a,o)},p(n,o){o[0]&80&&i!==(i=(n[6]!=="Time Limit"?n[4]:" minutes")+"")&&e.set_data(a,i)},d(n){n&&e.detach(a)}}}function he(t){let i,a=t[59]+"",n,o,l,u,s=t[59]!=="No limit"&&t[59]!=="Custom"&&ge(t);return{c(){i=e.element("option"),n=e.text(a),o=e.space(),s&&s.c(),l=e.space(),i.__value=u=t[59],e.set_input_value(i,i.__value)},m(r,d){e.insert(r,i,d),e.append(i,n),e.append(i,o),s&&s.m(i,null),e.append(i,l)},p(r,d){d[0]&64&&a!==(a=r[59]+"")&&e.set_data(n,a),r[59]!=="No limit"&&r[59]!=="Custom"?s?s.p(r,d):(s=ge(r),s.c(),s.m(i,l)):s&&(s.d(1),s=null),d[0]&64&&u!==(u=r[59])&&(i.__value=u,e.set_input_value(i,i.__value))},d(r){r&&e.detach(i),s&&s.d()}}}function Le(t){let i;function a(l,u){return l[6]!=="Time Limit"?ze:Se}let n=a(t),o=n(t);return{c(){o.c(),i=e.empty()},m(l,u){o.m(l,u),e.insert(l,i,u)},p(l,u){n===(n=a(l))&&o?o.p(l,u):(o.d(1),o=n(l),o&&(o.c(),o.m(i.parentNode,i)))},d(l){l&&e.detach(i),o.d(l)}}}function Se(t){let i,a,n,o,l,u;function s(){t[32].call(i,t[58])}let r=t[13][t[58]]==1&&_e(t);return{c(){i=e.element("input"),n=e.space(),o=e.element("p"),r&&r.c(),e.attr(i,"type","number"),e.attr(i,"class","AccountEditField AccountEditFieldCustom"),i.disabled=a=t[56].isModified===!0,e.attr(o,"class","AccountEditWarningText")},m(d,f){e.insert(d,i,f),e.set_input_value(i,t[17][t[58]].value),e.insert(d,n,f),e.insert(d,o,f),r&&r.m(o,null),l||(u=[e.listen(i,"keyup",function(){e.is_function(t[24](t[17][t[58]],t[58],!0,t[16]))&&t[24](t[17][t[58]],t[58],!0,t[16]).apply(this,arguments)}),e.listen(i,"input",s)],l=!0)},p(d,f){t=d,f[0]&16384&&a!==(a=t[56].isModified===!0)&&(i.disabled=a),f[0]&1179712&&e.to_number(i.value)!==t[17][t[58]].value&&e.set_input_value(i,t[17][t[58]].value),t[13][t[58]]==1?r?r.p(t,f):(r=_e(t),r.c(),r.m(o,null)):r&&(r.d(1),r=null)},d(d){d&&(e.detach(i),e.detach(n),e.detach(o)),r&&r.d(),l=!1,e.run_all(u)}}}function ze(t){let i,a,n,o,l,u;function s(){t[31].call(i,t[58])}let r=t[13][t[58]]==1&&ve(t);return{c(){i=e.element("input"),n=e.space(),o=e.element("p"),r&&r.c(),e.attr(i,"type","number"),e.attr(i,"class","AccountEditField AccountEditFieldCustom"),i.disabled=a=t[56].isModified===!0,e.attr(o,"class","AccountEditWarningText")},m(d,f){e.insert(d,i,f),e.set_input_value(i,t[17][t[58]].value),e.insert(d,n,f),e.insert(d,o,f),r&&r.m(o,null),l||(u=[e.listen(i,"keyup",function(){e.is_function(t[24](t[17][t[58]],t[58],!1,t[16]))&&t[24](t[17][t[58]],t[58],!1,t[16]).apply(this,arguments)}),e.listen(i,"input",s)],l=!0)},p(d,f){t=d,f[0]&16384&&a!==(a=t[56].isModified===!0)&&(i.disabled=a),f[0]&1179712&&e.to_number(i.value)!==t[17][t[58]].value&&e.set_input_value(i,t[17][t[58]].value),t[13][t[58]]==1?r?r.p(t,f):(r=ve(t),r.c(),r.m(o,null)):r&&(r.d(1),r=null)},d(d){d&&(e.detach(i),e.detach(n),e.detach(o)),r&&r.d(),l=!1,e.run_all(u)}}}function _e(t){let i,a=t[18]("invalidInputMessageTime",{values:{minTime:t[10],maxTime:t[11]}})+"",n;return{c(){i=e.element("p"),n=e.text(a),e.attr(i,"class","InvalidInput")},m(o,l){e.insert(o,i,l),e.append(i,n)},p(o,l){l[0]&265216&&a!==(a=o[18]("invalidInputMessageTime",{values:{minTime:o[10],maxTime:o[11]}})+"")&&e.set_data(n,a)},d(o){o&&e.detach(i)}}}function ve(t){let i,a=t[18]("invalidInputMessageLimit")+"",n;return{c(){i=e.element("p"),n=e.text(a),e.attr(i,"class","InvalidInput")},m(o,l){e.insert(o,i,l),e.append(i,n)},p(o,l){l[0]&262144&&a!==(a=o[18]("invalidInputMessageLimit")+"")&&e.set_data(n,a)},d(o){o&&e.detach(i)}}}function ye(t){let i,a=t[18]("expirationDate")+"",n,o,l,u=(t[56].expiryDate?$.format(new Date(t[56].expiryDate),"d/M/yyyy - h:mm a"):"N/A")+"",s,r,d,f,k,v,h=t[18]("changedLimitTextBefore")+"",N,p,g=(t[56].updateAmount>0?t[56].updateAmount:0)+"",L,b,_=(t[56].minutes!==void 0?" minutes":t[4])+"",W,F,j=t[18]("changedLimitTextAfter")+"",S;return{c(){i=e.element("p"),n=e.text(a),o=e.space(),l=e.element("span"),s=e.text(u),r=e.space(),d=e.element("div"),f=e.element("p"),k=e.element("span"),k.textContent="i",v=e.element("span"),N=e.text(h),p=e.space(),L=e.text(g),b=e.space(),W=e.text(_),F=e.text(". "),S=e.text(j),e.attr(i,"class","AccountEditLimitsExpiryDate"),e.attr(k,"class","AccountEditLimitChangePeriodIcon"),e.attr(d,"class","AccountEditLimitsPeriodChangeContainer")},m(w,z){e.insert(w,i,z),e.append(i,n),e.append(i,o),e.append(i,l),e.append(l,s),e.insert(w,r,z),e.insert(w,d,z),e.append(d,f),e.append(f,k),e.append(f,v),e.append(v,N),e.append(v,p),e.append(v,L),e.append(v,b),e.append(v,W),e.append(v,F),e.append(v,S)},p(w,z){z[0]&262144&&a!==(a=w[18]("expirationDate")+"")&&e.set_data(n,a),z[0]&16384&&u!==(u=(w[56].expiryDate?$.format(new Date(w[56].expiryDate),"d/M/yyyy - h:mm a"):"N/A")+"")&&e.set_data(s,u),z[0]&262144&&h!==(h=w[18]("changedLimitTextBefore")+"")&&e.set_data(N,h),z[0]&16384&&g!==(g=(w[56].updateAmount>0?w[56].updateAmount:0)+"")&&e.set_data(L,g),z[0]&16400&&_!==(_=(w[56].minutes!==void 0?" minutes":w[4])+"")&&e.set_data(W,_),z[0]&262144&&j!==(j=w[18]("changedLimitTextAfter")+"")&&e.set_data(S,j)},d(w){w&&(e.detach(i),e.detach(r),e.detach(d))}}}function be(t){let i,a,n=t[18](""+t[56].period.charAt(0).toLowerCase()+t[56].period.substring(1))+"",o,l,u,s=t[56].period==t[17][t[58]].period&&fe(t);return{c(){i=e.element("div"),a=e.element("p"),o=e.text(n),l=e.space(),s&&s.c(),u=e.space(),e.attr(a,"class","AccountEditLimitsTitle"),e.attr(i,"class","AccountEditLimitsBox")},m(r,d){e.insert(r,i,d),e.append(i,a),e.append(a,o),e.append(i,l),s&&s.m(i,null),e.append(i,u)},p(r,d){d[0]&278528&&n!==(n=r[18](""+r[56].period.charAt(0).toLowerCase()+r[56].period.substring(1))+"")&&e.set_data(o,n),r[56].period==r[17][r[58]].period?s?s.p(r,d):(s=fe(r),s.c(),s.m(i,u)):s&&(s.d(1),s=null)},d(r){r&&e.detach(i),s&&s.d()}}}function Fe(t){let i,a,n,o,l,u,s,r,d,f,k,v,h=t[18]("back")+"",N,p,g,L,b=(t[1]?t[9]:"")+"",_,W,F,j,S,w,z,X,q,G,J,V,E=t[18]("save")+"",Y,R,C,Z,U,H,K,Q,O=t[19]&&je(t),D=t[2]&&me(t),I=t[3]&&ue(t),B=t[8]&&ce(t);return{c(){i=e.element("div"),O&&O.c(),a=e.space(),n=e.element("div"),o=e.svg_element("svg"),l=e.svg_element("defs"),u=e.svg_element("style"),s=e.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),r=e.svg_element("g"),d=e.svg_element("g"),f=e.svg_element("path"),k=e.space(),v=e.element("h2"),N=e.text(h),p=e.space(),g=e.element("div"),L=e.element("h6"),_=e.text(b),W=e.space(),F=e.element("div"),j=e.element("span"),j.textContent="i",S=e.space(),w=e.element("player-account-gaming-limits-popup"),z=e.space(),D&&D.c(),X=e.space(),I&&I.c(),q=e.space(),B&&B.c(),G=e.space(),J=e.element("div"),V=e.element("button"),Y=e.text(E),Z=e.space(),U=e.element("player-account-modal"),H=e.element("player-account-gaming-limits-confirmation-modal"),e.attr(f,"class","aaa"),e.attr(f,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),e.attr(f,"transform","translate(15 15) rotate(180)"),e.attr(d,"transform","translate(20 158)"),e.attr(r,"transform","translate(-20 -158)"),e.attr(o,"xmlns","http://www.w3.org/2000/svg"),e.attr(o,"width","20"),e.attr(o,"height","20"),e.attr(o,"viewBox","0 0 15 15"),e.attr(v,"class","MyAccountCategoryTitle "+(t[19]?"MyAccountCategoryTitleNone":"")),e.attr(n,"class","MenuReturnButton "+(t[19]?"MyAccountCategoryTitleNone":"")),e.attr(j,"class","AccountEditLimitsIcon"),e.set_custom_element_data(w,"showpopup",t[7]),e.set_custom_element_data(w,"lang",t[0]),e.attr(F,"class","AccountEditLimitsIconWrapper"),e.attr(g,"class","AccountEditLimitsHeader"),e.attr(V,"class",R="AccountEditLimitsSaveButton "+(t[15]?"":"AccountEditLimitsButtonDisabled")),V.disabled=C=!t[15],e.attr(J,"class","AccountEditLimitsControlArea"),e.attr(i,"class","AccountEditLimitsWrapper "+(t[19]?"AccountEditLimitsMobileWrapper":"")),e.set_custom_element_data(H,"modaltext",t[12]),e.set_custom_element_data(H,"modalsource","groupEdit"),e.set_custom_element_data(H,"lang",t[0])},m(y,A){e.insert(y,i,A),O&&O.m(i,null),e.append(i,a),e.append(i,n),e.append(n,o),e.append(o,l),e.append(l,u),e.append(u,s),e.append(o,r),e.append(r,d),e.append(d,f),e.append(n,k),e.append(n,v),e.append(v,N),e.append(i,p),e.append(i,g),e.append(g,L),e.append(L,_),e.append(g,W),e.append(g,F),e.append(F,j),e.append(F,S),e.append(F,w),e.append(i,z),D&&D.m(i,null),e.append(i,X),I&&I.m(i,null),e.append(i,q),B&&B.m(i,null),e.append(i,G),e.append(i,J),e.append(J,V),e.append(V,Y),t[34](i),e.insert(y,Z,A),e.insert(y,U,A),e.append(U,H),K||(Q=[e.listen(n,"click",t[22]),e.listen(j,"click",e.prevent_default(t[21])),e.listen(V,"click",t[33])],K=!0)},p(y,A){y[19]&&O.p(y,A),A[0]&262144&&h!==(h=y[18]("back")+"")&&e.set_data(N,h),A[0]&514&&b!==(b=(y[1]?y[9]:"")+"")&&e.set_data(_,b),A[0]&128&&e.set_custom_element_data(w,"showpopup",y[7]),A[0]&1&&e.set_custom_element_data(w,"lang",y[0]),y[2]?D?D.p(y,A):(D=me(y),D.c(),D.m(i,X)):D&&(D.d(1),D=null),y[3]?I?I.p(y,A):(I=ue(y),I.c(),I.m(i,q)):I&&(I.d(1),I=null),y[8]?B?B.p(y,A):(B=ce(y),B.c(),B.m(i,G)):B&&(B.d(1),B=null),A[0]&262144&&E!==(E=y[18]("save")+"")&&e.set_data(Y,E),A[0]&32768&&R!==(R="AccountEditLimitsSaveButton "+(y[15]?"":"AccountEditLimitsButtonDisabled"))&&e.attr(V,"class",R),A[0]&32768&&C!==(C=!y[15])&&(V.disabled=C),A[0]&4096&&e.set_custom_element_data(H,"modaltext",y[12]),A[0]&1&&e.set_custom_element_data(H,"lang",y[0])},i:e.noop,o:e.noop,d(y){y&&(e.detach(i),e.detach(Z),e.detach(U)),O&&O.d(),D&&D.d(),I&&I.d(),B&&B.d(),t[34](null),K=!1,e.run_all(Q)}}}function qe(t,i,a){let n;e.component_subscribe(t,e.$format,m=>a(18,n=m));let{limitsdata:o=[]}=i,{showsuccessnotification:l=!1}=i,{showdeletenotification:u=!1}=i,{currency:s=""}=i,{lang:r="en"}=i,{separatelimits:d="true"}=i,{clientstyling:f=""}=i,{clientstylingurl:k=""}=i,{mbsource:v}=i,{translationurl:h=""}=i;const N=()=>{fetch(h).then(c=>c.json()).then(c=>{Object.keys(c).forEach(T=>{ne(T,c[T])})}).catch(c=>{console.log(c)})};Object.keys(oe).forEach(m=>{ne(m,oe[m])});let p,g,L,b=!1,_=!1,W="",F=!1,j=0,S=0,w="",z=window.navigator.userAgent,X=e.getDevice(z)!=="PC",q=new Array(3).fill(0),G={},J=[],V=[],E=!1,Y=[];const R={amount:/^[0-9]{0,8}$/,time:/^[1-9]\d*$/};let C=[{period:"Daily",amount:"No limit",value:0},{period:"Weekly",amount:"No limit",value:0},{period:"Monthly",amount:"No limit",value:0}],Z=[{period:"Daily",values:["10000","20000","50000","No limit","Custom"]},{period:"Weekly",values:["10000","50000","100000","No limit","Custom"]},{period:"Monthly",values:["50000","100000","200000","No limit","Custom"]}],U=[{period:"Daily",values:["5000","7000","10000","No limit","Custom"]},{period:"Weekly",values:["25000","50000","100000","No limit","Custom"]},{period:"Monthly",values:["125000","175000","200000","No limit","Custom"]}],H=[{period:"Daily",values:["5000","7000","10000","No limit","Custom"]},{period:"Weekly",values:["25000","50000","100000","No limit","Custom"]},{period:"Monthly",values:["125000","175000","200000","No limit","Custom"]}],K=[{period:"Daily",values:["500","1000","1430","No limit","Custom"]},{period:"Weekly",values:["5000","7000","10000","No limit","Custom"]},{period:"Monthly",values:["20000","30000","43000","No limit","Custom"]}];const Q=new Map([["Deposit Limit","depositLimits"],["Time Limit","cumulativeSessionLimits"],["Wagering Limit","wageringLimits"],["Loss Limit","lossLimits"]]),O=new Map([["Deposit Limit",Z],["Time Limit",K],["Wagering Limit",U],["Loss Limit",H]]),D=()=>{a(7,b=!0)},I=()=>{window.postMessage({type:"PlayerAccountBackToLimitsView"},window.location.href)},B=()=>{window.postMessage({type:"ShowLimitsConfirmationModal"},window.location.href)},y=()=>{if(F){p==="Time Limit"?C.forEach(c=>{if(d=="true"){if(c.value!=0){let T={period:c.period,minutes:c.value};J.push(T)}}else G.forEach(T=>{T.period===c.period&&(T.minutes=c.value)})}):C.forEach(c=>{if(d=="true"){if(c.value!=0){let T={period:c.period,amount:c.value,currency:s};J.push(T)}}else G.forEach(T=>{T.period===c.period&&(T.amount=c.value,T.currency=s)})});let m={};d=="true"?m={[Q.get(p)]:[...J]}:m={[Q.get(p)]:[...G]},J.length=0,window.postMessage({type:"PlayerAccountGamingLimitsUpdate",payload:m,limitsCategory:Q.get(p)},window.location.href),a(15,E=!1)}},A=(m,c,T,M)=>{switch(m.amount){case"Custom":if(p=="Time Limit")if(a(10,j=60),m.period==="Daily"?a(11,S=1440):m.period=="Weekly"?a(11,S=10080):a(11,S=43200),m.value&&R.time.test(m.value)&&m.value>j&&m.value<=S){a(13,q[c]=0,q);let P=M[c];m.period==P.period&&m.value==P.amount?(a(15,E=!1),ee(m,M)):a(15,E=!0)}else a(13,q[c]=1,q),a(15,E=!1);else m.value&&R.amount.test(m.value)?(a(13,q[c]=0,q),m.period==M[c].period&&m.value==M[c].amount?(a(15,E=!!E),ee(m,M)):a(15,E=!0),d!="true"&&C.forEach(P=>{P.value==0&&a(15,E=!1)})):(a(13,q[c]=1,q),a(15,E=!1));break;default:m.period==M[c].period?(ee(m,M),a(15,E=m.value!=M[c].amount)):a(15,E=!0),C.forEach(P=>{(P.value==0&&d!="true"||P.amount=="Custom"&&!R.amount.test(P.value.toString()))&&a(15,E=!1)});break}},ee=(m,c)=>{let T=JSON.parse(JSON.stringify(c));C.forEach(M=>{T.forEach(P=>{M.period==m.period&&(M.amount!=="Custom"&&M.amount!=="No limit"?M.value=JSON.parse(M.amount):M.amount==="No limit"&&(M.value=0)),P.period===M.period&&(P.amount=M.value)})})},ke=(m,c,T,M)=>{let P=m.values;!c.amount||c.amount==="No limit"?T.forEach(x=>{x.period===c.period&&(x.amount=c.amount,x.value=0)}):P.includes(JSON.stringify(c.amount))?T.forEach(x=>{x.period===c.period&&(x.amount=JSON.stringify(c.amount),x.value=c.amount)}):T.forEach(x=>{x.period===c.period&&(x.amount="Custom",x.value=c.amount)})},Te=m=>{V.forEach(c=>{m.period===c.period&&(p==="Time Limit"&&(a(10,j=60),m.period==="Daily"?a(11,S=1440):m.period=="Weekly"?a(11,S=10080):a(11,S=43200)),c.values.indexOf(m.amount)>-1&&(m.amount==="No limit"?m.amount=0:m.amount=JSON.parse(m.amount)))})},Ee=()=>{Y.forEach(m=>{Te(m)}),G.forEach(m=>{V.forEach(c=>{m.period===c.period&&ke(c,m,C)})})},ie=()=>{let m="";m=p==="Time Limit"?"time limit":p==="Deposit Limit"?"deposit limit":p==="Wagering Limit"?"wagering limit":"loss limit",a(12,w=n("changeLimitsText",{values:{limit:m}}))},te=()=>{Ie(r),ie(),a(16,Y=JSON.parse(JSON.stringify(o))),a(14,G=JSON.parse(JSON.stringify(o))),V=p==="Wagering Limit"?U:p==="Loss Limit"?H:p==="Deposit Limit"?Z:p==="Time Limit"?K:[],Ee()},ae=m=>{if(m.data)switch(m.data.type){case"LanguageChanged":a(0,r=m.data.lang),ie();break;case"EditPlayerLimit":a(6,p=m.data.name),a(9,W=n(p.charAt(0).toLowerCase()+p.substring(1).replace(/\s/g,""))),te(),a(8,_=!0);break;case"ClosePlayerAccountGamingLimitsPopup":a(7,b=!1);break;case"GamingLimitsConfirmChanges":F=!0,y();break;case"CancelGamingLimitsChanges":a(8,_=!1),setTimeout(()=>{a(8,_=!0)},10),te(),a(15,E=!1),F=!1;break}};e.onMount(()=>(window.addEventListener("message",ae,!1),()=>{window.removeEventListener("message",ae)}));function Ae(m){C[m].amount=e.select_value(this),a(17,C),a(20,O),a(6,p)}function Me(m){C[m].value=e.to_number(this.value),a(17,C),a(20,O),a(6,p)}function Ce(m){C[m].value=e.to_number(this.value),a(17,C),a(20,O),a(6,p)}const Be=()=>B();function De(m){e.binding_callbacks[m?"unshift":"push"](()=>{g=m,a(5,g)})}return t.$$set=m=>{"limitsdata"in m&&a(1,o=m.limitsdata),"showsuccessnotification"in m&&a(2,l=m.showsuccessnotification),"showdeletenotification"in m&&a(3,u=m.showdeletenotification),"currency"in m&&a(4,s=m.currency),"lang"in m&&a(0,r=m.lang),"separatelimits"in m&&a(25,d=m.separatelimits),"clientstyling"in m&&a(26,f=m.clientstyling),"clientstylingurl"in m&&a(27,k=m.clientstylingurl),"mbsource"in m&&a(28,v=m.mbsource),"translationurl"in m&&a(29,h=m.translationurl)},t.$$.update=()=>{t.$$.dirty[0]&12&&l&&u&&te(),t.$$.dirty[0]&3,t.$$.dirty[0]&67108896&&f&&g&&e.setClientStyling(g,f),t.$$.dirty[0]&134217760&&k&&g&&e.setClientStylingURL(g,k),t.$$.dirty[0]&268435488&&v&&g&&e.setStreamStyling(g,`${v}.Style`,L),t.$$.dirty[0]&536870912&&h&&N()},[r,o,l,u,s,g,p,b,_,W,j,S,w,q,G,E,Y,C,n,X,O,D,I,B,A,d,f,k,v,h,Ae,Me,Ce,Be,De]}class we extends e.SvelteComponent{constructor(i){super(),e.init(this,i,qe,Fe,e.safe_not_equal,{limitsdata:1,showsuccessnotification:2,showdeletenotification:3,currency:4,lang:0,separatelimits:25,clientstyling:26,clientstylingurl:27,mbsource:28,translationurl:29},Ne,[-1,-1,-1])}get limitsdata(){return this.$$.ctx[1]}set limitsdata(i){this.$$set({limitsdata:i}),e.flush()}get showsuccessnotification(){return this.$$.ctx[2]}set showsuccessnotification(i){this.$$set({showsuccessnotification:i}),e.flush()}get showdeletenotification(){return this.$$.ctx[3]}set showdeletenotification(i){this.$$set({showdeletenotification:i}),e.flush()}get currency(){return this.$$.ctx[4]}set currency(i){this.$$set({currency:i}),e.flush()}get lang(){return this.$$.ctx[0]}set lang(i){this.$$set({lang:i}),e.flush()}get separatelimits(){return this.$$.ctx[25]}set separatelimits(i){this.$$set({separatelimits:i}),e.flush()}get clientstyling(){return this.$$.ctx[26]}set clientstyling(i){this.$$set({clientstyling:i}),e.flush()}get clientstylingurl(){return this.$$.ctx[27]}set clientstylingurl(i){this.$$set({clientstylingurl:i}),e.flush()}get mbsource(){return this.$$.ctx[28]}set mbsource(i){this.$$set({mbsource:i}),e.flush()}get translationurl(){return this.$$.ctx[29]}set translationurl(i){this.$$set({translationurl:i}),e.flush()}}e.create_custom_element(we,{limitsdata:{},showsuccessnotification:{type:"Boolean"},showdeletenotification:{type:"Boolean"},currency:{},lang:{},separatelimits:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{}},[],[],!0);exports.default=we;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as Qe, $ as Xe, S as xe, i as $e, s as ei, f as $, b as ii, n as be, d as k, v as fe, t as S, q as te, r as d, c as T, m as u, w as ee, a5 as ti, e as L, p as M, x as K, u as C, g as oi, h as ai, o as ni, k as ue, l as Le, J as li, a6 as de, j as si, O as ve, K as ke, Q as ye, M as le, L as ri, z as mi, A as ui, B as ci, C as di, D as pi } from "./PlayerAccountController-
|
|
2
|
-
import "./PlayerAccountGamingLimitsInfoCard-
|
|
3
|
-
import "./PlayerAccountTimeout-
|
|
4
|
-
import { f as pe } from "./PlayerBonusHistory-
|
|
1
|
+
import { a as Qe, $ as Xe, S as xe, i as $e, s as ei, f as $, b as ii, n as be, d as k, v as fe, t as S, q as te, r as d, c as T, m as u, w as ee, a5 as ti, e as L, p as M, x as K, u as C, g as oi, h as ai, o as ni, k as ue, l as Le, J as li, a6 as de, j as si, O as ve, K as ke, Q as ye, M as le, L as ri, z as mi, A as ui, B as ci, C as di, D as pi } from "./PlayerAccountController-DNb9Imkv.js";
|
|
2
|
+
import "./PlayerAccountGamingLimitsInfoCard-DGQdDsec.js";
|
|
3
|
+
import "./PlayerAccountTimeout-K2FWOrTk.js";
|
|
4
|
+
import { f as pe } from "./PlayerBonusHistory-BWOGSfiH.js";
|
|
5
5
|
function Te(e, i) {
|
|
6
6
|
Qe(e, i);
|
|
7
7
|
}
|
|
@@ -264,7 +264,7 @@ if (typeof window != "undefined") {
|
|
|
264
264
|
}
|
|
265
265
|
};
|
|
266
266
|
};
|
|
267
|
-
customElements.define = e(customElements.define), import("./PlayerAccountGamingLimitsConfirmationModal-
|
|
267
|
+
customElements.define = e(customElements.define), import("./PlayerAccountGamingLimitsConfirmationModal-BcqZIS9H.js").then(
|
|
268
268
|
({ default: i }) => {
|
|
269
269
|
!customElements.get("player-account-gaming-limits-confirmation-modal") && customElements.define(
|
|
270
270
|
"player-account-gaming-limits-confirmation-modal",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as Qe, $ as Xe, S as xe, i as $e, s as ei, f as $, b as ii, n as be, d as k, w as fe, u as S, r as te, t as d, e as T, p as u, x as ee, a5 as ti, g as L, q as M, y as K, v as C, h as oi, j as ai, o as ni, l as ue, m as Le, J as li, a6 as de, k as si, O as ve, K as ke, Q as ye, M as le, L as ri, B as mi, C as ui, D as ci, c as di, A as pi } from "./PlayerAccountController-
|
|
2
|
-
import "./PlayerAccountGamingLimitsInfoCard-
|
|
3
|
-
import "./PlayerAccountTimeout-
|
|
4
|
-
import { f as pe } from "./PlayerBonusHistory-
|
|
1
|
+
import { a as Qe, $ as Xe, S as xe, i as $e, s as ei, f as $, b as ii, n as be, d as k, w as fe, u as S, r as te, t as d, e as T, p as u, x as ee, a5 as ti, g as L, q as M, y as K, v as C, h as oi, j as ai, o as ni, l as ue, m as Le, J as li, a6 as de, k as si, O as ve, K as ke, Q as ye, M as le, L as ri, B as mi, C as ui, D as ci, c as di, A as pi } from "./PlayerAccountController-DT8mB4Kw.js";
|
|
2
|
+
import "./PlayerAccountGamingLimitsInfoCard-BImIJRhG.js";
|
|
3
|
+
import "./PlayerAccountTimeout-CSa0u1kX.js";
|
|
4
|
+
import { f as pe } from "./PlayerBonusHistory-B2rXHayg.js";
|
|
5
5
|
function Te(e, i) {
|
|
6
6
|
Qe(e, i);
|
|
7
7
|
}
|
|
@@ -264,7 +264,7 @@ if (typeof window < "u") {
|
|
|
264
264
|
}
|
|
265
265
|
};
|
|
266
266
|
};
|
|
267
|
-
customElements.define = e(customElements.define), import("./PlayerAccountGamingLimitsConfirmationModal-
|
|
267
|
+
customElements.define = e(customElements.define), import("./PlayerAccountGamingLimitsConfirmationModal-Bysmb7F3.js").then(
|
|
268
268
|
({ default: i }) => {
|
|
269
269
|
!customElements.get("player-account-gaming-limits-confirmation-modal") && customElements.define(
|
|
270
270
|
"player-account-gaming-limits-confirmation-modal",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as he, $ as Le, S as fe, i as ve, s as Te, f as A, b as Se, n as D, d as x, e as R, g as w, t as a, h as we, P as be, o as _e, k as J, u as I, p as g, v as E, l as Z, m as Ae, N, x as Pe, q as X, y as K, a7 as $, B as ke, C as Ce, D as Ie, c as Ee, A as De } from "./PlayerAccountController-
|
|
1
|
+
import { a as he, $ as Le, S as fe, i as ve, s as Te, f as A, b as Se, n as D, d as x, e as R, g as w, t as a, h as we, P as be, o as _e, k as J, u as I, p as g, v as E, l as Z, m as Ae, N, x as Pe, q as X, y as K, a7 as $, B as ke, C as Ce, D as Ie, c as Ee, A as De } from "./PlayerAccountController-DT8mB4Kw.js";
|
|
2
2
|
function ee(t, e) {
|
|
3
3
|
he(t, e);
|
|
4
4
|
}
|
|
@@ -9,7 +9,7 @@ var $ = (t, e, i) => e in t ? ve(t, e, { enumerable: !0, configurable: !0, writa
|
|
|
9
9
|
Se.call(e, i) && $(t, i, e[i]);
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
|
-
import { a as we, $ as be, S as _e, i as Ae, s as Pe, f as A, b as ke, n as D, d as x, c as R, e as w, r as a, g as Ce, P as Ie, o as Ee, j as ee, t as I, m as g, u as E, k as te, l as De, N, w as xe, p as J, x as Q, a7 as ie, z as Re, A as Oe, B as je, C as We, D as ze } from "./PlayerAccountController-
|
|
12
|
+
import { a as we, $ as be, S as _e, i as Ae, s as Pe, f as A, b as ke, n as D, d as x, c as R, e as w, r as a, g as Ce, P as Ie, o as Ee, j as ee, t as I, m as g, u as E, k as te, l as De, N, w as xe, p as J, x as Q, a7 as ie, z as Re, A as Oe, B as je, C as We, D as ze } from "./PlayerAccountController-DNb9Imkv.js";
|
|
13
13
|
function se(t, e) {
|
|
14
14
|
we(t, e);
|
|
15
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var ne=Object.defineProperty;var N=Object.getOwnPropertySymbols;var le=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable;var U=(i,t,s)=>t in i?ne(i,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[t]=s,M=(i,t)=>{for(var s in t||(t={}))le.call(t,s)&&U(i,s,t[s]);if(N)for(var s of N(t))ae.call(t,s)&&U(i,s,t[s]);return i};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PlayerAccountController-En_hyyNC.cjs");function B(i,t){e.addMessages(i,t)}function me(i){e.$locale.set(i)}const H={en:{expandLimits:"LIMIT HISTORY",daily:"per day",weekly:"per week",monthly:"per month",loss:"Loss Limit",deposit:"Deposit Limit",wagering:"Wagering Limit",max:"Stake limit",wageringSports:"Stake Limit",loading:"Loading limits history...",error:"Something went wrong. Please try again.",limitRemoved:"Limit removed",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},de:{expandLimits:"LIMIT-VERLAUF",daily:"pro Tag",weekly:"pro Woche",monthly:"pro Monat",loss:"Verlustlimit",deposit:"Einzahlungslimit",wagering:"Einsatzlimit",max:"Einsatzlimit",loading:"Lädt ...",error:"Etwas ist schiefgelaufen. Bitte nochmal versuchen!",limitRemoved:"Limit entfernt",historyProductTypeSports:"Sport",historyProductTypeAll:"Alle",historyProductTypeCasino:"Slots",historyLimitTypeDeposit:"Einzahlungslimit",historyLimitTypeWagering:"Einsatzlimit",historyLimitTypeLoss:"Verlustlimit"},hr:{expandLimits:"POVIJEST OGRANIČENJA",daily:"dnevno",weekly:"tjedno",monthly:"mjesečno",loss:"Ograničenje gubitka",deposit:"Ograničenje uplate",wagering:"Ograničenje igranja",max:"Ograničenje uloga",loading:"Učitavanje povijesti ograničenja...",error:"Nešto je pošlo po zlu. Molimo vas pokušajte ponovno.",limitRemoved:"Ograničenje uklonjeno",historyProductTypeSports:"Sportovi",historyProductTypeAll:"Sve",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Ograničenje uplate",historyLimitTypeWagering:"Ograničenje igranja",historyLimitTypeLoss:"Ograničenje gubitka",wageringSports:"Ograničenje uloga"},sl:{expandLimits:"LIMIT ZGODOVINA",daily:"na dan",weekly:"na teden",monthly:"na mesec",loss:"Limit izgube",deposit:"Limit vplačila",wagering:"Limit na vložek",max:"Limit vložkov",loading:"Nalaga...",error:"Nekaj je šlo narobe. Prosim poskusite ponovno.",limitRemoved:"Limit odstranjen",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},pl:{expandLimits:"HISTORIA LIMITU",daily:"na dzień",weekly:"na tydzień",monthly:"na miesiąc",loss:"Limit Strat",deposit:"Limit depozytów",wagering:"Limit Stawek",max:"Limit stawek",loading:"Ładowanie...",error:"Coś poszło nie tak. Proszę spróbuj ponownie.",limitRemoved:"Usunięty limit",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},"zh-hk":{expandLimits:"极限历史",daily:"每天",weekly:"每个星期",monthly:"每月",loss:"损失限额",deposit:"存款限额",wagering:"投注限额",loading:"加载请稍候...",error:"500 - 服务器错误",limitRemoved:"移除限制",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},fr:{expandLimits:"LIMITER L'HISTORIQUE",daily:"par jour",weekly:"par semaine",monthly:"par mois",loss:"Limite de perte",deposit:"Limite de dépôt",wagering:"Limite de mise",loading:"Chargement, veuillez patienter...",error:"500 - Erreur de serveur",limitRemoved:"Limite supprimée",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},ro:{expandLimits:"ISTORIC LIMITE",daily:"pe zi",weekly:"pe saptamana",monthly:"pe luna",loss:"Limita de pierdere",deposit:"Limita de incarcare",loading:"Se incarca, va rugam asteptati...",error:"500 - Eroare de server",limitRemoved:"Limita eliminata",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Limita depunere",historyLimitTypeWagering:"Limita pariere",historyLimitTypeLoss:"Limita pierdere"},es:{expandLimits:"HISTORIAL DE LÍMITES",daily:"por día",weekly:"por semana",monthly:"por mes",loss:"Límite de pérdida",deposit:"Límite de depósito",wagering:"Límite de apuestas",max:"Límite de apuesta",loading:"Cargando historial de límites…",error:"Algo salió mal. Por favor inténtalo de nuevo.",limitRemoved:"Límite eliminado",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},"pt-br":{expandLimits:"HISTÓRICO DE LIMITE",daily:"Por dia",weekly:"por semana",monthly:"por mês",loss:"Limite de perda",deposit:"Limite de depósito",wagering:"Limite de Quantidade de Apostas",max:"Limite de apostas",wageringSports:"Limite de Quantidade de Apostas Esportivas",Loading:"Carregando histórico de limite...",error:"Algo deu errado. Por favor, tente novamente",limitRemoved:"Limite removido",historyProductTypeSports:"Esportes",historyProductTypeAll:"Todos",historyProductTypeCasino:"casino",historyLimitTypeDeposit:"Limite de depósito",historyLimitTypeWagering:"Limite de valor da aposta",historyLimitTypeLoss:"Limite de perda"},"es-mx":{expandLimits:"HISTORIAL DE LÍMITES",daily:"Por día",weekly:"por semana",monthly:"por mes",loss:"Límite de pérdidas",deposit:"Límite de depósito",wagering:"Límite de monto de apuestas",max:"Límite de apuestas",wageringSports:"Límite de monto de apuestas deportivas",Loading:"Cargando historial de límites...",error:"Algo salió mal. Por favor intente de nuevo",limitRemoved:"Límite removido",historyProductTypeSports:"Deportes",historyProductTypeAll:"Todo",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Límite de depósito",historyLimitTypeWagering:"Límite de monto de apuesta",historyLimitTypeLoss:"Límite de pérdida"},tr:{expandLimits:"SINIR GEÇMİŞİ",daily:"günlük",weekly:"haftada",monthly:"her ay",loss:"Kayıp Limiti",deposit:"Para Yatırma Limiti",wagering:"Bahis Limiti",max:"Bahis limiti",wageringSports:"Bahis Limiti",loading:"Limit geçmişi yükleniyor...",error:"Bir şeyler yanlış gitti. Lütfen tekrar deneyin.",limitRemoved:"Sınır kaldırıldı",historyProductTypeSports:"Spor Dalları",historyProductTypeAll:"Tüm",historyProductTypeCasino:"Kumarhane",historyLimitTypeDeposit:"Para Yatırma Limiti",historyLimitTypeWagering:"Bahis Limiti",historyLimitTypeLoss:"Kayıp Limiti"},"en-us":{expandLimits:"LIMIT HISTORY",daily:"per day",weekly:"per week",monthly:"per month",loss:"Loss Limit",deposit:"Deposit Limit",wagering:"Wagering Limit",max:"Stake limit",wageringSports:"Stake Limit",loading:"Loading limits history...",error:"Something went wrong. Please try again.",limitRemoved:"Limit removed",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"}};function ye(i){e.append_styles(i,"svelte-19ml84y",':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:1.3rem}.svelte-19ml84y.svelte-19ml84y,.svelte-19ml84y.svelte-19ml84y::before,.svelte-19ml84y.svelte-19ml84y::after{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.player-account-gaming-limits-history-2.svelte-19ml84y.svelte-19ml84y{color:var(--emw--color-white, #FFFFFF)}button.svelte-19ml84y.svelte-19ml84y{font-size:1rem;border:0;padding:0}.ExpandButton.svelte-19ml84y.svelte-19ml84y{color:#999;display:flex;justify-content:center;align-items:center;margin-right:-14px;background:transparent}.ExpandButton.svelte-19ml84y svg.svelte-19ml84y{width:28px;height:auto;margin-left:-4px}.extended.svelte-19ml84y.svelte-19ml84y{transform:rotate(180deg)}.HistoryWrapper.svelte-19ml84y.svelte-19ml84y{display:flex;flex-direction:column}.HistoryWrapper.Desktop.svelte-19ml84y.svelte-19ml84y{width:320px;padding:0 12px;margin:12px auto}.hidden.svelte-19ml84y.svelte-19ml84y{display:none}.HistoryRow.svelte-19ml84y.svelte-19ml84y{padding:12px 0;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.GeneralLimitInformation.svelte-19ml84y.svelte-19ml84y{display:flex;flex-direction:column;gap:4px}.LimitType.svelte-19ml84y.svelte-19ml84y{font-size:1.3rem}.LimitAmountPeriod.svelte-19ml84y.svelte-19ml84y{color:#999}.LimitContainer.svelte-19ml84y.svelte-19ml84y{animation:svelte-19ml84y-animateEntry 0.7s ease-in}@keyframes svelte-19ml84y-animateEntry{0%{opacity:0;transform:translateX(500px)}100%{opacity:1;transform:translateX(0)}}')}function G(i,t,s){const o=i.slice();return o[37]=t[s],o[38]=t,o[39]=s,o}function de(i){let t,s,o,n=i[9]("expandLimits")+"",a,m,l,f,h,d,p,u,L,w=e.ensure_array_like(i[7]),v=[];for(let g=0;g<w.length;g+=1)v[g]=V(G(i,w,g));return{c(){t=e.element("div"),s=e.element("div"),o=e.element("button"),a=e.text(n),m=e.space(),l=e.svg_element("svg"),f=e.svg_element("path"),h=e.svg_element("path"),d=e.space(),p=e.element("div");for(let g=0;g<v.length;g+=1)v[g].c();e.attr(f,"d","M10.5 15l7.5 7.5 7.5-7.5z"),e.attr(f,"class","svelte-19ml84y"),e.attr(h,"d","M0 0h36v36h-36z"),e.attr(h,"fill","none"),e.attr(h,"class","svelte-19ml84y"),e.attr(l,"class","ExpandArrow svelte-19ml84y"),e.attr(l,"xmlns","http://www.w3.org/2000/svg"),e.attr(l,"width","36"),e.attr(l,"height","36"),e.attr(l,"viewBox","0 0 36 36"),e.attr(l,"fill","#999"),e.toggle_class(l,"extended",i[8]),e.attr(o,"class","ExpandButton svelte-19ml84y"),e.attr(p,"class","HistoryDisplayArea svelte-19ml84y"),e.toggle_class(p,"hidden",i[5]),e.attr(s,"class","HistoryWrapper "+(i[10]?"Desktop":"")+" svelte-19ml84y"),e.attr(t,"class","player-account-gaming-limits-history-2 svelte-19ml84y")},m(g,S){e.insert(g,t,S),e.append(t,s),e.append(s,o),e.append(o,a),e.append(o,m),e.append(o,l),e.append(l,f),e.append(l,h),e.append(s,d),e.append(s,p);for(let y=0;y<v.length;y+=1)v[y]&&v[y].m(p,null);u||(L=e.listen(o,"click",i[11]),u=!0)},p(g,S){if(S[0]&512&&n!==(n=g[9]("expandLimits")+"")&&e.set_data(a,n),S[0]&256&&e.toggle_class(l,"extended",g[8]),S[0]&650){w=e.ensure_array_like(g[7]);let y;for(y=0;y<w.length;y+=1){const k=G(g,w,y);v[y]?v[y].p(k,S):(v[y]=V(k),v[y].c(),v[y].m(p,null))}for(;y<v.length;y+=1)v[y].d(1);v.length=w.length}S[0]&32&&e.toggle_class(p,"hidden",g[5])},d(g){g&&e.detach(t),e.destroy_each(v,g),u=!1,L()}}}function pe(i){return{c:e.noop,m:e.noop,p:e.noop,d:e.noop}}function ue(i){let t,s=(i[0]?i[9]("error"):"500 Server Error")+"",o;return{c(){t=e.element("p"),o=e.text(s),e.attr(t,"class","svelte-19ml84y")},m(n,a){e.insert(n,t,a),e.append(t,o)},p(n,a){a[0]&513&&s!==(s=(n[0]?n[9]("error"):"500 Server Error")+"")&&e.set_data(o,s)},d(n){n&&e.detach(t)}}}function ce(i){let t,s,o,n=i[37].type+"",a,m,l=i[37].amount+"",f,h,d=i[37].date+"",p;return{c(){t=e.element("div"),s=e.element("span"),o=e.element("span"),a=e.text(n),m=e.element("span"),f=e.text(l),h=e.element("span"),p=e.text(d),e.attr(o,"class","LimitType svelte-19ml84y"),e.attr(m,"class","LimitAmountPeriod svelte-19ml84y"),e.attr(s,"class","GeneralLimitInformation svelte-19ml84y"),e.attr(h,"class","DateLimitInformation svelte-19ml84y"),e.attr(t,"class","HistoryRow svelte-19ml84y")},m(u,L){e.insert(u,t,L),e.append(t,s),e.append(s,o),e.append(o,a),e.append(s,m),e.append(m,f),e.append(t,h),e.append(h,p)},p(u,L){L[0]&128&&n!==(n=u[37].type+"")&&e.set_data(a,n),L[0]&128&&l!==(l=u[37].amount+"")&&e.set_data(f,l),L[0]&128&&d!==(d=u[37].date+"")&&e.set_data(p,d)},d(u){u&&e.detach(t)}}}function ge(i){let t,s,o,n=i[37].type+"",a,m,l=i[9]("limitRemoved")+"",f,h,d=i[37].date+"",p;return{c(){t=e.element("div"),s=e.element("span"),o=e.element("span"),a=e.text(n),m=e.element("span"),f=e.text(l),h=e.element("span"),p=e.text(d),e.attr(o,"class","LimitType svelte-19ml84y"),e.attr(m,"class","LimitAmountPeriod svelte-19ml84y"),e.attr(s,"class","GeneralLimitInformation svelte-19ml84y"),e.attr(h,"class","DateLimitInformation svelte-19ml84y"),e.attr(t,"class","HistoryRow svelte-19ml84y")},m(u,L){e.insert(u,t,L),e.append(t,s),e.append(s,o),e.append(o,a),e.append(s,m),e.append(m,f),e.append(t,h),e.append(h,p)},p(u,L){L[0]&128&&n!==(n=u[37].type+"")&&e.set_data(a,n),L[0]&512&&l!==(l=u[9]("limitRemoved")+"")&&e.set_data(f,l),L[0]&128&&d!==(d=u[37].date+"")&&e.set_data(p,d)},d(u){u&&e.detach(t)}}}function V(i){let t,s,o,n=i[39];function a(d,p){return d[37].removed?ge:ce}let m=a(i),l=m(i);const f=()=>i[22](t,n),h=()=>i[22](null,n);return{c(){t=e.element("div"),l.c(),s=e.space(),e.attr(t,"class",o=e.null_to_empty(i[39]>+i[1]?"LimitContainer":"")+" svelte-19ml84y")},m(d,p){e.insert(d,t,p),l.m(t,null),e.append(t,s),f()},p(d,p){i=d,m===(m=a(i))&&l?l.p(i,p):(l.d(1),l=m(i),l&&(l.c(),l.m(t,s))),p[0]&2&&o!==(o=e.null_to_empty(i[39]>+i[1]?"LimitContainer":"")+" svelte-19ml84y")&&e.attr(t,"class",o),n!==i[39]&&(h(),n=i[39],f())},d(d){d&&e.detach(t),l.d(),h()}}}function he(i){let t;function s(a,m){return a[6]?ue:a[4]?pe:de}let o=s(i),n=o(i);return{c(){t=e.element("div"),n.c(),e.attr(t,"class","svelte-19ml84y")},m(a,m){e.insert(a,t,m),n.m(t,null),i[23](t)},p(a,m){o===(o=s(a))&&n?n.p(a,m):(n.d(1),n=o(a),n&&(n.c(),n.m(t,null)))},i:e.noop,o:e.noop,d(a){a&&e.detach(t),n.d(),i[23](null)}}}function Le(i,t,s){let o;e.component_subscribe(i,e.$format,r=>s(9,o=r));let n=window.navigator.userAgent,a=!e.isMobile(n),{lang:m=""}=t,{userid:l=""}=t,{session:f=""}=t,{endpoint:h=""}=t,{apiversion:d=""}=t,{numberofentries:p="10"}=t,{customcurrencysymbols:u=""}=t,{limitformat:L=""}=t,{clientstyling:w=""}=t,{clientstylingurl:v=""}=t,{mbsource:g}=t,{translationurl:S=""}=t,y,k,P=new Array,R=parseInt(p,10),O=!1,C=!0,I=[],E=[],x=!0,j=!1,A={EUR:"€",RON:"lei",TRY:"₺"};const K=()=>{fetch(S).then(c=>c.json()).then(c=>{Object.keys(c).forEach(_=>{B(_,c[_])})}).catch(c=>{console.log(c)})};Object.keys(H).forEach(r=>{B(r,H[r])});const Q=()=>{let r=d==="gmcore"?`/v2/player/${l}/transactions/limit`:`/v1/player/${l}/limits/monetary/history`,c=new URL(r,h);c.searchParams.append("startDate",`${new Date("2022").toISOString()}`),c.searchParams.append("endDate",`${new Date("2099").toISOString()}`),c.searchParams.append("limit","10000");let _={method:"GET",headers:{"X-SessionID":f}};fetch(c.href,_).then(T=>{if(T.status>=300)throw s(4,C=!1),s(6,O=!0),new Error("There was an error fetching the limits");return T.json()}).then(T=>{T.length&&(I=X(T),s(7,E=I.slice(0,R))),s(4,C=!1)},T=>{console.error("There was an error",T),s(6,O=!0)})},X=r=>{const c=!!H[m];return r.map(T=>{let b={amount:"",currency:"",date:"",period:"",type:"",removed:!1};return b.amount=q(T),b.currency=c?A[T.limitCurrencyCode]:T.limitCurrencyCode,b.date=new Intl.DateTimeFormat("de",{dateStyle:"medium"}).format(new Date(T.limitDate)),b.period=o(`${T.limitPeriod.toLowerCase()}`),b.type=d==="gmcore"?o(`historyLimitType${T.limitType.split(" ")[0]}`):o(`historyLimitType${T.limitType.split(" ")[0]}`)+" "+o(`historyProductType${T.limitProductType}`),b.removed=T.limitAmount===-1,b})},q=r=>{let c=L||Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(r.limitAmount);if(!L){let oe=A[r.limitCurrencyCode]||r.limitCurrencyCode;return`${c}${oe}`}typeof r.limitAmount=="string"&&r.limitAmount.includes(",")&&(r.limitAmount=r.limitAmount.replaceAll(",",""));const _=c.match(/\{(\d+)decimals\}/),T=_?parseInt(_[1],10):2,b=_?new RegExp("\\{\\d+decimals\\}","g"):"{decimals}";let D=parseFloat(r.limitAmount).toFixed(T);const[se,W]=L.includes(".")?[",","."]:[".",","];let[z,re]=D.split(".");return z=z.replace(/\B(?=(\d{3})+(?!\d))/g,se),D=`${z}${W}${re}`,c=c.replace("{currency}",A[r.limitCurrencyCode]||r.limitCurrencyCode).replace("{amount}",D.split(W)[0]).replace(b,D.split(W)[1]),c},J=()=>{s(5,x=!x),s(8,j=!j)};let F=new IntersectionObserver(r=>{r.forEach(c=>{c.isIntersecting&&(R+=parseInt(p,10)||10,E.length<I.length&&s(7,E=I.slice(0,R)))})});const Z=()=>{F.observe(P[P.length-1])},$=()=>{if(!u)return;let r={};u.split(",").forEach(c=>{let _=c.split(":");r[_[0].trim()]=_[1].trim()}),A=M(M({},A),r)},ee=()=>{me(m)};e.onMount(()=>()=>{F.unobserve(P[P.length-1])});function te(r,c){e.binding_callbacks[r?"unshift":"push"](()=>{P[c]=r,s(3,P)})}function ie(r){e.binding_callbacks[r?"unshift":"push"](()=>{y=r,s(2,y)})}return i.$$set=r=>{"lang"in r&&s(0,m=r.lang),"userid"in r&&s(12,l=r.userid),"session"in r&&s(13,f=r.session),"endpoint"in r&&s(14,h=r.endpoint),"apiversion"in r&&s(15,d=r.apiversion),"numberofentries"in r&&s(1,p=r.numberofentries),"customcurrencysymbols"in r&&s(16,u=r.customcurrencysymbols),"limitformat"in r&&s(17,L=r.limitformat),"clientstyling"in r&&s(18,w=r.clientstyling),"clientstylingurl"in r&&s(19,v=r.clientstylingurl),"mbsource"in r&&s(20,g=r.mbsource),"translationurl"in r&&s(21,S=r.translationurl)},i.$$.update=()=>{i.$$.dirty[0]&65536&&u&&$(),i.$$.dirty[0]&61440&&h&&l&&f&&d&&Q(),i.$$.dirty[0]&56&&P[0]&&!C&&!x&&Z(),i.$$.dirty[0]&1&&m&&ee(),i.$$.dirty[0]&262148&&w&&y&&e.setClientStyling(y,w),i.$$.dirty[0]&524292&&v&&y&&e.setClientStylingURL(y,v),i.$$.dirty[0]&1048580&&g&&y&&e.setStreamStyling(y,`${g}.Style`,k),i.$$.dirty[0]&2097156&&S&&y&&K()},[m,p,y,P,C,x,O,E,j,o,a,J,l,f,h,d,u,L,w,v,g,S,te,ie]}class Y extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Le,he,e.safe_not_equal,{lang:0,userid:12,session:13,endpoint:14,apiversion:15,numberofentries:1,customcurrencysymbols:16,limitformat:17,clientstyling:18,clientstylingurl:19,mbsource:20,translationurl:21},ye,[-1,-1])}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get userid(){return this.$$.ctx[12]}set userid(t){this.$$set({userid:t}),e.flush()}get session(){return this.$$.ctx[13]}set session(t){this.$$set({session:t}),e.flush()}get endpoint(){return this.$$.ctx[14]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get apiversion(){return this.$$.ctx[15]}set apiversion(t){this.$$set({apiversion:t}),e.flush()}get numberofentries(){return this.$$.ctx[1]}set numberofentries(t){this.$$set({numberofentries:t}),e.flush()}get customcurrencysymbols(){return this.$$.ctx[16]}set customcurrencysymbols(t){this.$$set({customcurrencysymbols:t}),e.flush()}get limitformat(){return this.$$.ctx[17]}set limitformat(t){this.$$set({limitformat:t}),e.flush()}get clientstyling(){return this.$$.ctx[18]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[19]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get mbsource(){return this.$$.ctx[20]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get translationurl(){return this.$$.ctx[21]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}}e.create_custom_element(Y,{lang:{},userid:{},session:{},endpoint:{},apiversion:{},numberofentries:{},customcurrencysymbols:{},limitformat:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{}},[],[],!0);exports.default=Y;
|
|
1
|
+
"use strict";var ne=Object.defineProperty;var N=Object.getOwnPropertySymbols;var le=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable;var U=(i,t,s)=>t in i?ne(i,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[t]=s,M=(i,t)=>{for(var s in t||(t={}))le.call(t,s)&&U(i,s,t[s]);if(N)for(var s of N(t))ae.call(t,s)&&U(i,s,t[s]);return i};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./PlayerAccountController-q2E-Ys0M.cjs");function B(i,t){e.addMessages(i,t)}function me(i){e.$locale.set(i)}const H={en:{expandLimits:"LIMIT HISTORY",daily:"per day",weekly:"per week",monthly:"per month",loss:"Loss Limit",deposit:"Deposit Limit",wagering:"Wagering Limit",max:"Stake limit",wageringSports:"Stake Limit",loading:"Loading limits history...",error:"Something went wrong. Please try again.",limitRemoved:"Limit removed",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},de:{expandLimits:"LIMIT-VERLAUF",daily:"pro Tag",weekly:"pro Woche",monthly:"pro Monat",loss:"Verlustlimit",deposit:"Einzahlungslimit",wagering:"Einsatzlimit",max:"Einsatzlimit",loading:"Lädt ...",error:"Etwas ist schiefgelaufen. Bitte nochmal versuchen!",limitRemoved:"Limit entfernt",historyProductTypeSports:"Sport",historyProductTypeAll:"Alle",historyProductTypeCasino:"Slots",historyLimitTypeDeposit:"Einzahlungslimit",historyLimitTypeWagering:"Einsatzlimit",historyLimitTypeLoss:"Verlustlimit"},hr:{expandLimits:"POVIJEST OGRANIČENJA",daily:"dnevno",weekly:"tjedno",monthly:"mjesečno",loss:"Ograničenje gubitka",deposit:"Ograničenje uplate",wagering:"Ograničenje igranja",max:"Ograničenje uloga",loading:"Učitavanje povijesti ograničenja...",error:"Nešto je pošlo po zlu. Molimo vas pokušajte ponovno.",limitRemoved:"Ograničenje uklonjeno",historyProductTypeSports:"Sportovi",historyProductTypeAll:"Sve",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Ograničenje uplate",historyLimitTypeWagering:"Ograničenje igranja",historyLimitTypeLoss:"Ograničenje gubitka",wageringSports:"Ograničenje uloga"},sl:{expandLimits:"LIMIT ZGODOVINA",daily:"na dan",weekly:"na teden",monthly:"na mesec",loss:"Limit izgube",deposit:"Limit vplačila",wagering:"Limit na vložek",max:"Limit vložkov",loading:"Nalaga...",error:"Nekaj je šlo narobe. Prosim poskusite ponovno.",limitRemoved:"Limit odstranjen",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},pl:{expandLimits:"HISTORIA LIMITU",daily:"na dzień",weekly:"na tydzień",monthly:"na miesiąc",loss:"Limit Strat",deposit:"Limit depozytów",wagering:"Limit Stawek",max:"Limit stawek",loading:"Ładowanie...",error:"Coś poszło nie tak. Proszę spróbuj ponownie.",limitRemoved:"Usunięty limit",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},"zh-hk":{expandLimits:"极限历史",daily:"每天",weekly:"每个星期",monthly:"每月",loss:"损失限额",deposit:"存款限额",wagering:"投注限额",loading:"加载请稍候...",error:"500 - 服务器错误",limitRemoved:"移除限制",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},fr:{expandLimits:"LIMITER L'HISTORIQUE",daily:"par jour",weekly:"par semaine",monthly:"par mois",loss:"Limite de perte",deposit:"Limite de dépôt",wagering:"Limite de mise",loading:"Chargement, veuillez patienter...",error:"500 - Erreur de serveur",limitRemoved:"Limite supprimée",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},ro:{expandLimits:"ISTORIC LIMITE",daily:"pe zi",weekly:"pe saptamana",monthly:"pe luna",loss:"Limita de pierdere",deposit:"Limita de incarcare",loading:"Se incarca, va rugam asteptati...",error:"500 - Eroare de server",limitRemoved:"Limita eliminata",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Limita depunere",historyLimitTypeWagering:"Limita pariere",historyLimitTypeLoss:"Limita pierdere"},es:{expandLimits:"HISTORIAL DE LÍMITES",daily:"por día",weekly:"por semana",monthly:"por mes",loss:"Límite de pérdida",deposit:"Límite de depósito",wagering:"Límite de apuestas",max:"Límite de apuesta",loading:"Cargando historial de límites…",error:"Algo salió mal. Por favor inténtalo de nuevo.",limitRemoved:"Límite eliminado",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"},"pt-br":{expandLimits:"HISTÓRICO DE LIMITE",daily:"Por dia",weekly:"por semana",monthly:"por mês",loss:"Limite de perda",deposit:"Limite de depósito",wagering:"Limite de Quantidade de Apostas",max:"Limite de apostas",wageringSports:"Limite de Quantidade de Apostas Esportivas",Loading:"Carregando histórico de limite...",error:"Algo deu errado. Por favor, tente novamente",limitRemoved:"Limite removido",historyProductTypeSports:"Esportes",historyProductTypeAll:"Todos",historyProductTypeCasino:"casino",historyLimitTypeDeposit:"Limite de depósito",historyLimitTypeWagering:"Limite de valor da aposta",historyLimitTypeLoss:"Limite de perda"},"es-mx":{expandLimits:"HISTORIAL DE LÍMITES",daily:"Por día",weekly:"por semana",monthly:"por mes",loss:"Límite de pérdidas",deposit:"Límite de depósito",wagering:"Límite de monto de apuestas",max:"Límite de apuestas",wageringSports:"Límite de monto de apuestas deportivas",Loading:"Cargando historial de límites...",error:"Algo salió mal. Por favor intente de nuevo",limitRemoved:"Límite removido",historyProductTypeSports:"Deportes",historyProductTypeAll:"Todo",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Límite de depósito",historyLimitTypeWagering:"Límite de monto de apuesta",historyLimitTypeLoss:"Límite de pérdida"},tr:{expandLimits:"SINIR GEÇMİŞİ",daily:"günlük",weekly:"haftada",monthly:"her ay",loss:"Kayıp Limiti",deposit:"Para Yatırma Limiti",wagering:"Bahis Limiti",max:"Bahis limiti",wageringSports:"Bahis Limiti",loading:"Limit geçmişi yükleniyor...",error:"Bir şeyler yanlış gitti. Lütfen tekrar deneyin.",limitRemoved:"Sınır kaldırıldı",historyProductTypeSports:"Spor Dalları",historyProductTypeAll:"Tüm",historyProductTypeCasino:"Kumarhane",historyLimitTypeDeposit:"Para Yatırma Limiti",historyLimitTypeWagering:"Bahis Limiti",historyLimitTypeLoss:"Kayıp Limiti"},"en-us":{expandLimits:"LIMIT HISTORY",daily:"per day",weekly:"per week",monthly:"per month",loss:"Loss Limit",deposit:"Deposit Limit",wagering:"Wagering Limit",max:"Stake limit",wageringSports:"Stake Limit",loading:"Loading limits history...",error:"Something went wrong. Please try again.",limitRemoved:"Limit removed",historyProductTypeSports:"Sports",historyProductTypeAll:"All",historyProductTypeCasino:"Casino",historyLimitTypeDeposit:"Deposit Limit",historyLimitTypeWagering:"Wagering Limit",historyLimitTypeLoss:"Loss Limit"}};function ye(i){e.append_styles(i,"svelte-19ml84y",':host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";font-size:1.3rem}.svelte-19ml84y.svelte-19ml84y,.svelte-19ml84y.svelte-19ml84y::before,.svelte-19ml84y.svelte-19ml84y::after{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.player-account-gaming-limits-history-2.svelte-19ml84y.svelte-19ml84y{color:var(--emw--color-white, #FFFFFF)}button.svelte-19ml84y.svelte-19ml84y{font-size:1rem;border:0;padding:0}.ExpandButton.svelte-19ml84y.svelte-19ml84y{color:#999;display:flex;justify-content:center;align-items:center;margin-right:-14px;background:transparent}.ExpandButton.svelte-19ml84y svg.svelte-19ml84y{width:28px;height:auto;margin-left:-4px}.extended.svelte-19ml84y.svelte-19ml84y{transform:rotate(180deg)}.HistoryWrapper.svelte-19ml84y.svelte-19ml84y{display:flex;flex-direction:column}.HistoryWrapper.Desktop.svelte-19ml84y.svelte-19ml84y{width:320px;padding:0 12px;margin:12px auto}.hidden.svelte-19ml84y.svelte-19ml84y{display:none}.HistoryRow.svelte-19ml84y.svelte-19ml84y{padding:12px 0;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.GeneralLimitInformation.svelte-19ml84y.svelte-19ml84y{display:flex;flex-direction:column;gap:4px}.LimitType.svelte-19ml84y.svelte-19ml84y{font-size:1.3rem}.LimitAmountPeriod.svelte-19ml84y.svelte-19ml84y{color:#999}.LimitContainer.svelte-19ml84y.svelte-19ml84y{animation:svelte-19ml84y-animateEntry 0.7s ease-in}@keyframes svelte-19ml84y-animateEntry{0%{opacity:0;transform:translateX(500px)}100%{opacity:1;transform:translateX(0)}}')}function G(i,t,s){const o=i.slice();return o[37]=t[s],o[38]=t,o[39]=s,o}function de(i){let t,s,o,n=i[9]("expandLimits")+"",a,m,l,f,h,d,p,u,L,w=e.ensure_array_like(i[7]),v=[];for(let g=0;g<w.length;g+=1)v[g]=V(G(i,w,g));return{c(){t=e.element("div"),s=e.element("div"),o=e.element("button"),a=e.text(n),m=e.space(),l=e.svg_element("svg"),f=e.svg_element("path"),h=e.svg_element("path"),d=e.space(),p=e.element("div");for(let g=0;g<v.length;g+=1)v[g].c();e.attr(f,"d","M10.5 15l7.5 7.5 7.5-7.5z"),e.attr(f,"class","svelte-19ml84y"),e.attr(h,"d","M0 0h36v36h-36z"),e.attr(h,"fill","none"),e.attr(h,"class","svelte-19ml84y"),e.attr(l,"class","ExpandArrow svelte-19ml84y"),e.attr(l,"xmlns","http://www.w3.org/2000/svg"),e.attr(l,"width","36"),e.attr(l,"height","36"),e.attr(l,"viewBox","0 0 36 36"),e.attr(l,"fill","#999"),e.toggle_class(l,"extended",i[8]),e.attr(o,"class","ExpandButton svelte-19ml84y"),e.attr(p,"class","HistoryDisplayArea svelte-19ml84y"),e.toggle_class(p,"hidden",i[5]),e.attr(s,"class","HistoryWrapper "+(i[10]?"Desktop":"")+" svelte-19ml84y"),e.attr(t,"class","player-account-gaming-limits-history-2 svelte-19ml84y")},m(g,S){e.insert(g,t,S),e.append(t,s),e.append(s,o),e.append(o,a),e.append(o,m),e.append(o,l),e.append(l,f),e.append(l,h),e.append(s,d),e.append(s,p);for(let y=0;y<v.length;y+=1)v[y]&&v[y].m(p,null);u||(L=e.listen(o,"click",i[11]),u=!0)},p(g,S){if(S[0]&512&&n!==(n=g[9]("expandLimits")+"")&&e.set_data(a,n),S[0]&256&&e.toggle_class(l,"extended",g[8]),S[0]&650){w=e.ensure_array_like(g[7]);let y;for(y=0;y<w.length;y+=1){const k=G(g,w,y);v[y]?v[y].p(k,S):(v[y]=V(k),v[y].c(),v[y].m(p,null))}for(;y<v.length;y+=1)v[y].d(1);v.length=w.length}S[0]&32&&e.toggle_class(p,"hidden",g[5])},d(g){g&&e.detach(t),e.destroy_each(v,g),u=!1,L()}}}function pe(i){return{c:e.noop,m:e.noop,p:e.noop,d:e.noop}}function ue(i){let t,s=(i[0]?i[9]("error"):"500 Server Error")+"",o;return{c(){t=e.element("p"),o=e.text(s),e.attr(t,"class","svelte-19ml84y")},m(n,a){e.insert(n,t,a),e.append(t,o)},p(n,a){a[0]&513&&s!==(s=(n[0]?n[9]("error"):"500 Server Error")+"")&&e.set_data(o,s)},d(n){n&&e.detach(t)}}}function ce(i){let t,s,o,n=i[37].type+"",a,m,l=i[37].amount+"",f,h,d=i[37].date+"",p;return{c(){t=e.element("div"),s=e.element("span"),o=e.element("span"),a=e.text(n),m=e.element("span"),f=e.text(l),h=e.element("span"),p=e.text(d),e.attr(o,"class","LimitType svelte-19ml84y"),e.attr(m,"class","LimitAmountPeriod svelte-19ml84y"),e.attr(s,"class","GeneralLimitInformation svelte-19ml84y"),e.attr(h,"class","DateLimitInformation svelte-19ml84y"),e.attr(t,"class","HistoryRow svelte-19ml84y")},m(u,L){e.insert(u,t,L),e.append(t,s),e.append(s,o),e.append(o,a),e.append(s,m),e.append(m,f),e.append(t,h),e.append(h,p)},p(u,L){L[0]&128&&n!==(n=u[37].type+"")&&e.set_data(a,n),L[0]&128&&l!==(l=u[37].amount+"")&&e.set_data(f,l),L[0]&128&&d!==(d=u[37].date+"")&&e.set_data(p,d)},d(u){u&&e.detach(t)}}}function ge(i){let t,s,o,n=i[37].type+"",a,m,l=i[9]("limitRemoved")+"",f,h,d=i[37].date+"",p;return{c(){t=e.element("div"),s=e.element("span"),o=e.element("span"),a=e.text(n),m=e.element("span"),f=e.text(l),h=e.element("span"),p=e.text(d),e.attr(o,"class","LimitType svelte-19ml84y"),e.attr(m,"class","LimitAmountPeriod svelte-19ml84y"),e.attr(s,"class","GeneralLimitInformation svelte-19ml84y"),e.attr(h,"class","DateLimitInformation svelte-19ml84y"),e.attr(t,"class","HistoryRow svelte-19ml84y")},m(u,L){e.insert(u,t,L),e.append(t,s),e.append(s,o),e.append(o,a),e.append(s,m),e.append(m,f),e.append(t,h),e.append(h,p)},p(u,L){L[0]&128&&n!==(n=u[37].type+"")&&e.set_data(a,n),L[0]&512&&l!==(l=u[9]("limitRemoved")+"")&&e.set_data(f,l),L[0]&128&&d!==(d=u[37].date+"")&&e.set_data(p,d)},d(u){u&&e.detach(t)}}}function V(i){let t,s,o,n=i[39];function a(d,p){return d[37].removed?ge:ce}let m=a(i),l=m(i);const f=()=>i[22](t,n),h=()=>i[22](null,n);return{c(){t=e.element("div"),l.c(),s=e.space(),e.attr(t,"class",o=e.null_to_empty(i[39]>+i[1]?"LimitContainer":"")+" svelte-19ml84y")},m(d,p){e.insert(d,t,p),l.m(t,null),e.append(t,s),f()},p(d,p){i=d,m===(m=a(i))&&l?l.p(i,p):(l.d(1),l=m(i),l&&(l.c(),l.m(t,s))),p[0]&2&&o!==(o=e.null_to_empty(i[39]>+i[1]?"LimitContainer":"")+" svelte-19ml84y")&&e.attr(t,"class",o),n!==i[39]&&(h(),n=i[39],f())},d(d){d&&e.detach(t),l.d(),h()}}}function he(i){let t;function s(a,m){return a[6]?ue:a[4]?pe:de}let o=s(i),n=o(i);return{c(){t=e.element("div"),n.c(),e.attr(t,"class","svelte-19ml84y")},m(a,m){e.insert(a,t,m),n.m(t,null),i[23](t)},p(a,m){o===(o=s(a))&&n?n.p(a,m):(n.d(1),n=o(a),n&&(n.c(),n.m(t,null)))},i:e.noop,o:e.noop,d(a){a&&e.detach(t),n.d(),i[23](null)}}}function Le(i,t,s){let o;e.component_subscribe(i,e.$format,r=>s(9,o=r));let n=window.navigator.userAgent,a=!e.isMobile(n),{lang:m=""}=t,{userid:l=""}=t,{session:f=""}=t,{endpoint:h=""}=t,{apiversion:d=""}=t,{numberofentries:p="10"}=t,{customcurrencysymbols:u=""}=t,{limitformat:L=""}=t,{clientstyling:w=""}=t,{clientstylingurl:v=""}=t,{mbsource:g}=t,{translationurl:S=""}=t,y,k,P=new Array,R=parseInt(p,10),O=!1,C=!0,I=[],E=[],x=!0,j=!1,A={EUR:"€",RON:"lei",TRY:"₺"};const K=()=>{fetch(S).then(c=>c.json()).then(c=>{Object.keys(c).forEach(_=>{B(_,c[_])})}).catch(c=>{console.log(c)})};Object.keys(H).forEach(r=>{B(r,H[r])});const Q=()=>{let r=d==="gmcore"?`/v2/player/${l}/transactions/limit`:`/v1/player/${l}/limits/monetary/history`,c=new URL(r,h);c.searchParams.append("startDate",`${new Date("2022").toISOString()}`),c.searchParams.append("endDate",`${new Date("2099").toISOString()}`),c.searchParams.append("limit","10000");let _={method:"GET",headers:{"X-SessionID":f}};fetch(c.href,_).then(T=>{if(T.status>=300)throw s(4,C=!1),s(6,O=!0),new Error("There was an error fetching the limits");return T.json()}).then(T=>{T.length&&(I=X(T),s(7,E=I.slice(0,R))),s(4,C=!1)},T=>{console.error("There was an error",T),s(6,O=!0)})},X=r=>{const c=!!H[m];return r.map(T=>{let b={amount:"",currency:"",date:"",period:"",type:"",removed:!1};return b.amount=q(T),b.currency=c?A[T.limitCurrencyCode]:T.limitCurrencyCode,b.date=new Intl.DateTimeFormat("de",{dateStyle:"medium"}).format(new Date(T.limitDate)),b.period=o(`${T.limitPeriod.toLowerCase()}`),b.type=d==="gmcore"?o(`historyLimitType${T.limitType.split(" ")[0]}`):o(`historyLimitType${T.limitType.split(" ")[0]}`)+" "+o(`historyProductType${T.limitProductType}`),b.removed=T.limitAmount===-1,b})},q=r=>{let c=L||Intl.NumberFormat("en-US",{maximumFractionDigits:0}).format(r.limitAmount);if(!L){let oe=A[r.limitCurrencyCode]||r.limitCurrencyCode;return`${c}${oe}`}typeof r.limitAmount=="string"&&r.limitAmount.includes(",")&&(r.limitAmount=r.limitAmount.replaceAll(",",""));const _=c.match(/\{(\d+)decimals\}/),T=_?parseInt(_[1],10):2,b=_?new RegExp("\\{\\d+decimals\\}","g"):"{decimals}";let D=parseFloat(r.limitAmount).toFixed(T);const[se,W]=L.includes(".")?[",","."]:[".",","];let[z,re]=D.split(".");return z=z.replace(/\B(?=(\d{3})+(?!\d))/g,se),D=`${z}${W}${re}`,c=c.replace("{currency}",A[r.limitCurrencyCode]||r.limitCurrencyCode).replace("{amount}",D.split(W)[0]).replace(b,D.split(W)[1]),c},J=()=>{s(5,x=!x),s(8,j=!j)};let F=new IntersectionObserver(r=>{r.forEach(c=>{c.isIntersecting&&(R+=parseInt(p,10)||10,E.length<I.length&&s(7,E=I.slice(0,R)))})});const Z=()=>{F.observe(P[P.length-1])},$=()=>{if(!u)return;let r={};u.split(",").forEach(c=>{let _=c.split(":");r[_[0].trim()]=_[1].trim()}),A=M(M({},A),r)},ee=()=>{me(m)};e.onMount(()=>()=>{F.unobserve(P[P.length-1])});function te(r,c){e.binding_callbacks[r?"unshift":"push"](()=>{P[c]=r,s(3,P)})}function ie(r){e.binding_callbacks[r?"unshift":"push"](()=>{y=r,s(2,y)})}return i.$$set=r=>{"lang"in r&&s(0,m=r.lang),"userid"in r&&s(12,l=r.userid),"session"in r&&s(13,f=r.session),"endpoint"in r&&s(14,h=r.endpoint),"apiversion"in r&&s(15,d=r.apiversion),"numberofentries"in r&&s(1,p=r.numberofentries),"customcurrencysymbols"in r&&s(16,u=r.customcurrencysymbols),"limitformat"in r&&s(17,L=r.limitformat),"clientstyling"in r&&s(18,w=r.clientstyling),"clientstylingurl"in r&&s(19,v=r.clientstylingurl),"mbsource"in r&&s(20,g=r.mbsource),"translationurl"in r&&s(21,S=r.translationurl)},i.$$.update=()=>{i.$$.dirty[0]&65536&&u&&$(),i.$$.dirty[0]&61440&&h&&l&&f&&d&&Q(),i.$$.dirty[0]&56&&P[0]&&!C&&!x&&Z(),i.$$.dirty[0]&1&&m&&ee(),i.$$.dirty[0]&262148&&w&&y&&e.setClientStyling(y,w),i.$$.dirty[0]&524292&&v&&y&&e.setClientStylingURL(y,v),i.$$.dirty[0]&1048580&&g&&y&&e.setStreamStyling(y,`${g}.Style`,k),i.$$.dirty[0]&2097156&&S&&y&&K()},[m,p,y,P,C,x,O,E,j,o,a,J,l,f,h,d,u,L,w,v,g,S,te,ie]}class Y extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Le,he,e.safe_not_equal,{lang:0,userid:12,session:13,endpoint:14,apiversion:15,numberofentries:1,customcurrencysymbols:16,limitformat:17,clientstyling:18,clientstylingurl:19,mbsource:20,translationurl:21},ye,[-1,-1])}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get userid(){return this.$$.ctx[12]}set userid(t){this.$$set({userid:t}),e.flush()}get session(){return this.$$.ctx[13]}set session(t){this.$$set({session:t}),e.flush()}get endpoint(){return this.$$.ctx[14]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get apiversion(){return this.$$.ctx[15]}set apiversion(t){this.$$set({apiversion:t}),e.flush()}get numberofentries(){return this.$$.ctx[1]}set numberofentries(t){this.$$set({numberofentries:t}),e.flush()}get customcurrencysymbols(){return this.$$.ctx[16]}set customcurrencysymbols(t){this.$$set({customcurrencysymbols:t}),e.flush()}get limitformat(){return this.$$.ctx[17]}set limitformat(t){this.$$set({limitformat:t}),e.flush()}get clientstyling(){return this.$$.ctx[18]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[19]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get mbsource(){return this.$$.ctx[20]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get translationurl(){return this.$$.ctx[21]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}}e.create_custom_element(Y,{lang:{},userid:{},session:{},endpoint:{},apiversion:{},numberofentries:{},customcurrencysymbols:{},limitformat:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{}},[],[],!0);exports.default=Y;
|