@everymatrix/player-account-controller 1.94.20 → 1.94.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/components/{GeneralLogout-BQJRUNwp.cjs → GeneralLogout-C4zscfCx.cjs} +1 -1
  2. package/components/{GeneralLogout-CwC7hmDR.js → GeneralLogout-CXb7OdeA.js} +69 -69
  3. package/components/{GeneralLogout-BzreXekz.js → GeneralLogout-CpE101GN.js} +53 -53
  4. package/components/{PlayerAccountBettingHistory-iBgxnZ1z.cjs → PlayerAccountBettingHistory-BEC5Dbk4.cjs} +1 -1
  5. package/components/{PlayerAccountBettingHistory-CpObxK27.js → PlayerAccountBettingHistory-D2UOjGmQ.js} +27 -27
  6. package/components/{PlayerAccountBettingHistory-t0Tk_p0g.js → PlayerAccountBettingHistory-DdxkAioI.js} +24 -24
  7. package/components/{PlayerAccountBiometrics-C5OncfaU.js → PlayerAccountBiometrics-BoITt8OK.js} +29 -29
  8. package/components/{PlayerAccountBiometrics-WqGiexBI.cjs → PlayerAccountBiometrics-CkHgmfP_.cjs} +1 -1
  9. package/components/{PlayerAccountBiometrics-D7yEbrsq.js → PlayerAccountBiometrics-DufGqDU4.js} +29 -29
  10. package/components/{PlayerAccountBiometricsAction-uCYyRh_C.js → PlayerAccountBiometricsAction-B5FkZd-r.js} +29 -29
  11. package/components/{PlayerAccountBiometricsAction-DGkhc1cZ.cjs → PlayerAccountBiometricsAction-CrfbCZc0.cjs} +1 -1
  12. package/components/{PlayerAccountBiometricsAction-BCPPui38.js → PlayerAccountBiometricsAction-Dpgb3qw8.js} +20 -20
  13. package/components/{PlayerAccountClosure-Ct4tBOGU.js → PlayerAccountClosure-BkZo4ds8.js} +8 -8
  14. package/components/{PlayerAccountClosure-CNXw7Sjx.cjs → PlayerAccountClosure-CTVdrvUs.cjs} +1 -1
  15. package/components/{PlayerAccountClosure-DLFNaf_2.js → PlayerAccountClosure-Rn4rUpUm.js} +24 -24
  16. package/components/{PlayerAccountController-KqshAWe2.cjs → PlayerAccountController-BBk-9TOg.cjs} +1 -1
  17. package/components/{PlayerAccountController-BHq1U_O6.js → PlayerAccountController-CO8cZYgr.js} +86 -86
  18. package/components/{PlayerAccountController-CKZCKQpN.js → PlayerAccountController-DgE57QwT.js} +86 -86
  19. package/components/{PlayerAccountGamingLimits-BdlTSpsU.cjs → PlayerAccountGamingLimits-B-5nWzRS.cjs} +1 -1
  20. package/components/{PlayerAccountGamingLimits-C3wWWcGH.js → PlayerAccountGamingLimits-CxpBIVY6.js} +32 -32
  21. package/components/{PlayerAccountGamingLimits-Z6Ce0MoG.js → PlayerAccountGamingLimits-V927kAz2.js} +30 -30
  22. package/components/{PlayerAccountGamingLimitsConfirmationModal-Cfk6gWz8.js → PlayerAccountGamingLimitsConfirmationModal-BveODcSU.js} +34 -34
  23. package/components/{PlayerAccountGamingLimitsConfirmationModal-B7CUyyZF.js → PlayerAccountGamingLimitsConfirmationModal-CG7r6PIK.js} +25 -25
  24. package/components/{PlayerAccountGamingLimitsConfirmationModal-DI6j94DD.cjs → PlayerAccountGamingLimitsConfirmationModal-CJgeqRLo.cjs} +1 -1
  25. package/components/{PlayerAccountGamingLimitsGroupEdit-qUGWNtii.cjs → PlayerAccountGamingLimitsGroupEdit-Cyu-XItn.cjs} +1 -1
  26. package/components/{PlayerAccountGamingLimitsGroupEdit-aCJcxI7C.js → PlayerAccountGamingLimitsGroupEdit-DXbMOl6-.js} +47 -47
  27. package/components/{PlayerAccountGamingLimitsGroupEdit-CoF5dXFM.js → PlayerAccountGamingLimitsGroupEdit-vujLn0t-.js} +47 -47
  28. package/components/{PlayerAccountGamingLimitsHistory2-D4p6d8iD.js → PlayerAccountGamingLimitsHistory2-C1J6OpLl.js} +35 -35
  29. package/components/{PlayerAccountGamingLimitsHistory2-5ux43rb0.cjs → PlayerAccountGamingLimitsHistory2-C6HksI_l.cjs} +1 -1
  30. package/components/{PlayerAccountGamingLimitsHistory2-D6yYPKgO.js → PlayerAccountGamingLimitsHistory2-ch2erx5S.js} +45 -45
  31. package/components/{PlayerAccountGamingLimitsInfoCard-DBbFlq2N.cjs → PlayerAccountGamingLimitsInfoCard-C-DFY5Ok.cjs} +1 -1
  32. package/components/{PlayerAccountGamingLimitsInfoCard-DD4VF0x7.js → PlayerAccountGamingLimitsInfoCard-C17cmXa_.js} +4 -4
  33. package/components/{PlayerAccountGamingLimitsInfoCard-DimpOAgW.js → PlayerAccountGamingLimitsInfoCard-g7I5qkLj.js} +4 -4
  34. package/components/{PlayerAccountGamingLimitsPage2Gm16-ByAD5XkL.js → PlayerAccountGamingLimitsPage2Gm16-5DbisV99.js} +105 -105
  35. package/components/{PlayerAccountGamingLimitsPage2Gm16-Cd6aLvED.cjs → PlayerAccountGamingLimitsPage2Gm16-BD2PAPr7.cjs} +1 -1
  36. package/components/{PlayerAccountGamingLimitsPage2Gm16-39Ko_0bM.js → PlayerAccountGamingLimitsPage2Gm16-vkWd1ihI.js} +1 -1
  37. package/components/{PlayerAccountGamingLimitsPopup-DpKQITZC.js → PlayerAccountGamingLimitsPopup-7JDTXTtQ.js} +19 -19
  38. package/components/{PlayerAccountGamingLimitsPopup-BLjM3dul.js → PlayerAccountGamingLimitsPopup-CBrl659u.js} +15 -15
  39. package/components/{PlayerAccountGamingLimitsPopup-BIRVIt7t.cjs → PlayerAccountGamingLimitsPopup-CvgPjhi-.cjs} +1 -1
  40. package/components/{PlayerAccountGamingLimitsWrapper2-o3uvZC1a.cjs → PlayerAccountGamingLimitsWrapper2-Bm2vuvTx.cjs} +1 -1
  41. package/components/{PlayerAccountGamingLimitsWrapper2-Bxh1v-ks.js → PlayerAccountGamingLimitsWrapper2-DWD-0F-D.js} +58 -58
  42. package/components/{PlayerAccountGamingLimitsWrapper2-D0oOCM5A.js → PlayerAccountGamingLimitsWrapper2-jQr15q3J.js} +54 -54
  43. package/components/{PlayerAccountGeneralConfirmationModal-Dbpjs0ok.cjs → PlayerAccountGeneralConfirmationModal-B_cFWoG1.cjs} +1 -1
  44. package/components/{PlayerAccountGeneralConfirmationModal-v1VPRGeY.js → PlayerAccountGeneralConfirmationModal-Bnwi7Hps.js} +38 -38
  45. package/components/{PlayerAccountGeneralConfirmationModal-XrxuJU94.js → PlayerAccountGeneralConfirmationModal-D7km7Zog.js} +35 -35
  46. package/components/{PlayerAccountMenu-D3ydI3e0.js → PlayerAccountMenu-7UYVqYH-.js} +23 -23
  47. package/components/{PlayerAccountMenu-p1bTKU9o.cjs → PlayerAccountMenu-CBhFGN5v.cjs} +1 -1
  48. package/components/{PlayerAccountMenu-DOwnMfBp.js → PlayerAccountMenu-D-jM_PCb.js} +23 -23
  49. package/components/{PlayerAccountModal-nLc5W2X1.cjs → PlayerAccountModal-BQZExMfG.cjs} +1 -1
  50. package/components/{PlayerAccountModal-DM8MYI4c.js → PlayerAccountModal-BxFPmZIg.js} +51 -51
  51. package/components/{PlayerAccountModal-CPowwN-K.js → PlayerAccountModal-InDwj5CZ.js} +55 -55
  52. package/components/{PlayerAccountNotifications-D2o0B9mY.js → PlayerAccountNotifications-BKQa6iL8.js} +29 -29
  53. package/components/{PlayerAccountNotifications-Bclx6LlP.cjs → PlayerAccountNotifications-C7bklpfG.cjs} +1 -1
  54. package/components/{PlayerAccountNotifications-BLDWrrxI.js → PlayerAccountNotifications-kDZBI187.js} +88 -88
  55. package/components/{PlayerAccountProductRestriction-DcrSkVJ-.cjs → PlayerAccountProductRestriction-B2pinL7l.cjs} +1 -1
  56. package/components/{PlayerAccountProductRestriction-CArQTQHH.js → PlayerAccountProductRestriction-CFIjlnOX.js} +3 -3
  57. package/components/{PlayerAccountProductRestriction-DHxrM48h.js → PlayerAccountProductRestriction-DbEkMKO3.js} +3 -3
  58. package/components/{PlayerAccountReviewFrequency-210Gkzzk.js → PlayerAccountReviewFrequency-BYWEOhzw.js} +30 -30
  59. package/components/{PlayerAccountReviewFrequency-maIKojuS.cjs → PlayerAccountReviewFrequency-DMwFO_R2.cjs} +1 -1
  60. package/components/{PlayerAccountReviewFrequency-BmQDh8wI.js → PlayerAccountReviewFrequency-DjERKwb7.js} +31 -31
  61. package/components/{PlayerAccountSelfExclusion-CPbHgqgm.js → PlayerAccountSelfExclusion-BM_tkQy1.js} +99 -99
  62. package/components/{PlayerAccountSelfExclusion-QhkNBndX.js → PlayerAccountSelfExclusion-Byk2bLi5.js} +86 -86
  63. package/components/{PlayerAccountSelfExclusion-BbGponGq.cjs → PlayerAccountSelfExclusion-CMk-HM8u.cjs} +1 -1
  64. package/components/{PlayerAccountTimeout-CQadGV2a.js → PlayerAccountTimeout-B52QzMyN.js} +3 -3
  65. package/components/{PlayerAccountTimeout-CbSDcsVh.cjs → PlayerAccountTimeout-BKqM9z9S.cjs} +2 -2
  66. package/components/{PlayerAccountTimeout-BEQ_XL2r.js → PlayerAccountTimeout-CvNSJCuP.js} +3 -3
  67. package/components/{PlayerAccountTransactionsHistory-BcG6cSUz.js → PlayerAccountTransactionsHistory-Ct9bbtaS.js} +36 -36
  68. package/components/{PlayerAccountTransactionsHistory-BgeA2OaG.js → PlayerAccountTransactionsHistory-DfYoqbPR.js} +35 -35
  69. package/components/{PlayerAccountTransactionsHistory-DLYk17GI.cjs → PlayerAccountTransactionsHistory-vlF8HWQr.cjs} +1 -1
  70. package/components/{PlayerActiveBonuses-Dg7d3EXi.js → PlayerActiveBonuses-C5pOksPm.js} +539 -509
  71. package/components/{PlayerActiveBonuses-DVytvabF.js → PlayerActiveBonuses-DYEcrFhQ.js} +544 -514
  72. package/components/PlayerActiveBonuses-iTkyXHsD.cjs +5 -0
  73. package/components/{PlayerBonusCard-C-E_7PSB.js → PlayerBonusCard-Bggf2jM-.js} +252 -238
  74. package/components/{PlayerBonusCard-CSj1XzDi.js → PlayerBonusCard-CVByVySk.js} +249 -235
  75. package/components/PlayerBonusCard-DgHQKXJE.cjs +1 -0
  76. package/components/{PlayerBonusHistory-BSDft0iY.js → PlayerBonusHistory-A1LztGVe.js} +1941 -1910
  77. package/components/{PlayerBonusHistory-BNlbASad.cjs → PlayerBonusHistory-Cvq_m9mr.cjs} +252 -252
  78. package/components/{PlayerBonusHistory-CMGvjo7T.js → PlayerBonusHistory-vvCROk6P.js} +1924 -1893
  79. package/components/{PlayerChangePassword-CDPtd1y2.js → PlayerChangePassword-BpW3ZGPE.js} +71 -71
  80. package/components/{PlayerChangePassword-CN2nSbTu.cjs → PlayerChangePassword-Ck2ADweJ.cjs} +1 -1
  81. package/components/{PlayerChangePassword-CjdAhIqW.js → PlayerChangePassword-DfLb_jZA.js} +71 -71
  82. package/components/{PlayerDeposit-BtS34PMd.cjs → PlayerDeposit-CCzkiEdB.cjs} +1 -1
  83. package/components/{PlayerDeposit-C9DlPi5i.js → PlayerDeposit-CpU80gtj.js} +28 -28
  84. package/components/{PlayerDeposit-BOHnESfn.js → PlayerDeposit-HbzBoc73.js} +24 -24
  85. package/components/{PlayerGamingHistory-BDVH_6B8.cjs → PlayerGamingHistory-C-1-WJwY.cjs} +1 -1
  86. package/components/{PlayerGamingHistory-C6WWw2cc.js → PlayerGamingHistory-D7i_K4mx.js} +94 -94
  87. package/components/{PlayerGamingHistory-Da-Wan4y.js → PlayerGamingHistory-DpSeY1cI.js} +114 -114
  88. package/components/{PlayerPendingWithdrawals-CgdF4Q07.cjs → PlayerPendingWithdrawals-BubG3Pn4.cjs} +1 -1
  89. package/components/{PlayerPendingWithdrawals-BH2fv9D2.js → PlayerPendingWithdrawals-BwdyTHVG.js} +30 -30
  90. package/components/{PlayerPendingWithdrawals-Bbokp3YM.js → PlayerPendingWithdrawals-C9gR_Y0d.js} +34 -34
  91. package/components/{PlayerProfileInfo-CtQg5U2I.js → PlayerProfileInfo-C5By7H5W.js} +364 -364
  92. package/components/{PlayerProfileInfo-BrN8d1L_.cjs → PlayerProfileInfo-DNlp4qra.cjs} +1 -1
  93. package/components/{PlayerProfileInfo-Cl33NXNc.js → PlayerProfileInfo-DerxJF3S.js} +342 -342
  94. package/components/{PlayerRealityCheck-maFkRSmz.js → PlayerRealityCheck-1wRbKOda.js} +55 -55
  95. package/components/{PlayerRealityCheck-CH6yW7w0.js → PlayerRealityCheck-CQS6Dta8.js} +54 -54
  96. package/components/{PlayerRealityCheck-DFyTdthH.cjs → PlayerRealityCheck-DrzWTJ0l.cjs} +1 -1
  97. package/components/{PlayerTransactionHistory-jPhM6ytU.js → PlayerTransactionHistory-BIxhXd3Y.js} +44 -44
  98. package/components/{PlayerTransactionHistory-BxyX6ai9.js → PlayerTransactionHistory-DSCZ7OVe.js} +31 -31
  99. package/components/{PlayerTransactionHistory-B8UFaIzM.cjs → PlayerTransactionHistory-DlRKQ_LH.cjs} +1 -1
  100. package/components/{PlayerWithdrawal-Crv6enga.cjs → PlayerWithdrawal-B5lYxcpO.cjs} +1 -1
  101. package/components/{PlayerWithdrawal-CKHK7F5l.js → PlayerWithdrawal-B8PG-Cig.js} +25 -25
  102. package/components/{PlayerWithdrawal-D2BakJra.js → PlayerWithdrawal-zFpUyw_q.js} +25 -25
  103. package/components/{QrSessionGenerator-DHB2Qsq3.cjs → QrSessionGenerator-BeNaNuyX.cjs} +1 -1
  104. package/components/{QrSessionGenerator-CYedw5yt.js → QrSessionGenerator-ChEh7Qwb.js} +37 -37
  105. package/components/{QrSessionGenerator-DiPVWwLx.js → QrSessionGenerator-DuxpFDzg.js} +48 -48
  106. package/es2015/player-account-controller.cjs +1 -1
  107. package/es2015/player-account-controller.js +1 -1
  108. package/esnext/player-account-controller.js +1 -1
  109. package/package.json +1 -1
  110. package/stencil/{checkbox-group-input_16-BMVEaVtV.js → checkbox-group-input_16-BzEg4TpU.js} +3 -3
  111. package/stencil/{checkbox-group-input_16-C6fU4lxi.js → checkbox-group-input_16-nRSc7WyI.js} +3 -3
  112. package/stencil/{index-7469517b-BFmBiraV.js → index-7469517b-B-IR-z1N.js} +1 -1
  113. package/stencil/{index-7469517b-CCwm-ipO.js → index-7469517b-C42JdpYE.js} +1 -1
  114. package/stencil/{pam-change-password-259289fa-DJ_lsyvr.js → pam-change-password-259289fa-CkW8tAwL.js} +3 -3
  115. package/stencil/{pam-change-password-259289fa-B_ApylOR.js → pam-change-password-259289fa-DS0Y7TKw.js} +3 -3
  116. package/stencil/{pam-change-password-DH0owsL8.js → pam-change-password-Cd7FdKp2.js} +1 -1
  117. package/stencil/{pam-change-password-BOIp7Ttz.js → pam-change-password-Fz6dpHWP.js} +1 -1
  118. package/components/PlayerActiveBonuses-B0BbnzpT.cjs +0 -5
  119. package/components/PlayerBonusCard-CI-sAhBx.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./PlayerAccountController-KqshAWe2.cjs"),C=(n,e={})=>{const l=new CustomEvent("track-custom-event",{detail:{type:n,data:e},bubbles:!0,composed:!0});document.dispatchEvent(l)};function v(n,e){t.addMessages(n,e)}function T(n){t.$locale.set(n)}const x={en:{logoutButton:"Logout"},"zh-hk":{logoutButton:"登出"},fr:{logoutButton:"Déconnexion"},tr:{logoutButton:"Çıkış Yap"},ro:{logoutButton:"Iesire"},es:{logoutButton:"Cerrar sesión"},pt:{logoutButton:"Sair"},hr:{logoutButton:"Odjava"},"pt-br":{logoutButton:"Fechar Sessão"},"es-mx":{logoutButton:"Cerrar sesión"},"en-us":{logoutButton:"Logout"}};function O(n){t.append_styles(n,"svelte-xtnqa3","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}")}function j(n){let e,l,a,o=n[2]("logoutButton")+"",s,r,d;return{c(){e=t.element("div"),l=t.element("button"),a=t.element("span"),s=t.text(o),t.attr(e,"class","GeneralLogout")},m(u,g){t.insert(u,e,g),t.append(e,l),t.append(l,a),t.append(a,s),r||(d=t.listen(l,"click",n[14]),r=!0)},p(u,g){g&4&&o!==(o=u[2]("logoutButton")+"")&&t.set_data(s,o)},d(u){u&&t.detach(e),r=!1,d()}}}function H(n){let e,l,a,o,s,r,d,u,g,m,y,f=!n[3]&&G(n);return{c(){e=t.element("p"),l=t.element("span"),a=t.svg_element("svg"),o=t.svg_element("defs"),s=t.svg_element("style"),r=t.text(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"),d=t.svg_element("path"),u=t.svg_element("path"),g=t.space(),f&&f.c(),t.attr(d,"class","a88316b4-2478-4a69-b2eb-d32a5fb419dd"),t.attr(d,"d","M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"),t.attr(u,"class","a88316b4-2478-4a69-b2eb-d32a5fb419dd"),t.attr(u,"d","M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"),t.attr(a,"id","bbfaf345-72af-4296-bf4b-2fd41fc03d5d"),t.attr(a,"data-name","Layer 1"),t.attr(a,"xmlns","http://www.w3.org/2000/svg"),t.attr(a,"viewBox","0 0 150 150"),t.set_style(l,"width",n[3]?n[4].matches?"20px":"24px":"20px"),t.attr(e,"class","PlayerAccountMenuItemBox "+(n[3]?"PlayerAccountMenuItemBoxMobile":"")+" "+(n[4].matches&&n[3]?"PlayerAccountMenuItemBoxTablet":""))},m(h,c){t.insert(h,e,c),t.append(e,l),t.append(l,a),t.append(a,o),t.append(o,s),t.append(s,r),t.append(a,d),t.append(a,u),t.append(e,g),f&&f.m(e,null),m||(y=t.listen(e,"click",n[13]),m=!0)},p(h,c){h[3]||f.p(h,c)},d(h){h&&t.detach(e),f&&f.d(),m=!1,y()}}}function G(n){let e,l=n[2]("logoutButton")+"",a;return{c(){e=t.element("span"),a=t.text(l),t.attr(e,"class","PlayerLogoutText")},m(o,s){t.insert(o,e,s),t.append(e,a)},p(o,s){s&4&&l!==(l=o[2]("logoutButton")+"")&&t.set_data(a,l)},d(o){o&&t.detach(e)}}}function N(n){let e;function l(s,r){return s[0]==="PlayerAccountMenu"?H:j}let a=l(n),o=a(n);return{c(){e=t.element("div"),o.c()},m(s,r){t.insert(s,e,r),o.m(e,null),n[15](e)},p(s,[r]){a===(a=l(s))&&o?o.p(s,r):(o.d(1),o=a(s),o&&(o.c(),o.m(e,null)))},i:t.noop,o:t.noop,d(s){s&&t.detach(e),o.d(),n[15](null)}}}function R(n,e,l){let a;t.component_subscribe(n,t.$format,i=>l(2,a=i));let{endpoint:o=""}=e,{session:s=""}=e,{buttonlocation:r=""}=e,{lang:d=""}=e,{mbsource:u}=e,{clientstyling:g=""}=e,{clientstylingurl:m=""}=e,{translationurl:y=""}=e,f="",h=!1,c,B,M=window.navigator.userAgent,A=t.getDevice(M)!=="PC";const F=window.matchMedia("(min-width: 768px)"),L=()=>{fetch(y).then(b=>b.json()).then(b=>{Object.keys(b).forEach(_=>{v(_,b[_])})}).catch(b=>{console.log(b)})};Object.keys(x).forEach(i=>{v(i,x[i])});const p=()=>{let i=new Headers;i.append("Content-type","application/json"),i.append("X-SessionID",s);let b={method:"DELETE",headers:i};fetch(`${o}/v1/player/session/player`,b).then(_=>{window.postMessage({type:"LogoutSuccessfull"},window.location.href),C("logged_out",{})})},k=()=>(o||(f="GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.",h=!0,console.error(f)),s||(f="GENERAL-LOGOUT - Session is missing! Please provide a valid session.",h=!0,console.error(f)),h),P=()=>{T(d)};t.onMount(()=>()=>{});const S=()=>p(),E=()=>p();function I(i){t.binding_callbacks[i?"unshift":"push"](()=>{c=i,l(1,c)})}return n.$$set=i=>{"endpoint"in i&&l(6,o=i.endpoint),"session"in i&&l(7,s=i.session),"buttonlocation"in i&&l(0,r=i.buttonlocation),"lang"in i&&l(8,d=i.lang),"mbsource"in i&&l(9,u=i.mbsource),"clientstyling"in i&&l(10,g=i.clientstyling),"clientstylingurl"in i&&l(11,m=i.clientstylingurl),"translationurl"in i&&l(12,y=i.translationurl)},n.$$.update=()=>{n.$$.dirty&193&&o&&s&&r&&k(),n.$$.dirty&256&&d&&P(),n.$$.dirty&1026&&g&&c&&t.setClientStyling(),n.$$.dirty&1026&&g&&c&&t.setClientStyling(c,g),n.$$.dirty&2050&&m&&c&&t.setClientStylingURL(c,m),n.$$.dirty&514&&u&&c&&t.setStreamStyling(c,`${u}.Style`,B),n.$$.dirty&4096&&y&&L()},[r,c,a,A,F,p,o,s,d,u,g,m,y,S,E,I]}class w extends t.SvelteComponent{constructor(e){super(),t.init(this,e,R,N,t.safe_not_equal,{endpoint:6,session:7,buttonlocation:0,lang:8,mbsource:9,clientstyling:10,clientstylingurl:11,translationurl:12},O)}get endpoint(){return this.$$.ctx[6]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get session(){return this.$$.ctx[7]}set session(e){this.$$set({session:e}),t.flush()}get buttonlocation(){return this.$$.ctx[0]}set buttonlocation(e){this.$$set({buttonlocation:e}),t.flush()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),t.flush()}get mbsource(){return this.$$.ctx[9]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[12]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}}t.create_custom_element(w,{endpoint:{},session:{},buttonlocation:{},lang:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=w;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./PlayerAccountController-BBk-9TOg.cjs"),C=(n,e={})=>{const l=new CustomEvent("track-custom-event",{detail:{type:n,data:e},bubbles:!0,composed:!0});document.dispatchEvent(l)};function v(n,e){t.addMessages(n,e)}function T(n){t.$locale.set(n)}const x={en:{logoutButton:"Logout"},"zh-hk":{logoutButton:"登出"},fr:{logoutButton:"Déconnexion"},tr:{logoutButton:"Çıkış Yap"},ro:{logoutButton:"Iesire"},es:{logoutButton:"Cerrar sesión"},pt:{logoutButton:"Sair"},hr:{logoutButton:"Odjava"},"pt-br":{logoutButton:"Fechar Sessão"},"es-mx":{logoutButton:"Cerrar sesión"},"en-us":{logoutButton:"Logout"}};function O(n){t.append_styles(n,"svelte-xtnqa3","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}")}function j(n){let e,l,a,o=n[2]("logoutButton")+"",s,r,d;return{c(){e=t.element("div"),l=t.element("button"),a=t.element("span"),s=t.text(o),t.attr(e,"class","GeneralLogout")},m(u,g){t.insert(u,e,g),t.append(e,l),t.append(l,a),t.append(a,s),r||(d=t.listen(l,"click",n[14]),r=!0)},p(u,g){g&4&&o!==(o=u[2]("logoutButton")+"")&&t.set_data(s,o)},d(u){u&&t.detach(e),r=!1,d()}}}function H(n){let e,l,a,o,s,r,d,u,g,m,y,f=!n[3]&&G(n);return{c(){e=t.element("p"),l=t.element("span"),a=t.svg_element("svg"),o=t.svg_element("defs"),s=t.svg_element("style"),r=t.text(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"),d=t.svg_element("path"),u=t.svg_element("path"),g=t.space(),f&&f.c(),t.attr(d,"class","a88316b4-2478-4a69-b2eb-d32a5fb419dd"),t.attr(d,"d","M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"),t.attr(u,"class","a88316b4-2478-4a69-b2eb-d32a5fb419dd"),t.attr(u,"d","M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"),t.attr(a,"id","bbfaf345-72af-4296-bf4b-2fd41fc03d5d"),t.attr(a,"data-name","Layer 1"),t.attr(a,"xmlns","http://www.w3.org/2000/svg"),t.attr(a,"viewBox","0 0 150 150"),t.set_style(l,"width",n[3]?n[4].matches?"20px":"24px":"20px"),t.attr(e,"class","PlayerAccountMenuItemBox "+(n[3]?"PlayerAccountMenuItemBoxMobile":"")+" "+(n[4].matches&&n[3]?"PlayerAccountMenuItemBoxTablet":""))},m(h,c){t.insert(h,e,c),t.append(e,l),t.append(l,a),t.append(a,o),t.append(o,s),t.append(s,r),t.append(a,d),t.append(a,u),t.append(e,g),f&&f.m(e,null),m||(y=t.listen(e,"click",n[13]),m=!0)},p(h,c){h[3]||f.p(h,c)},d(h){h&&t.detach(e),f&&f.d(),m=!1,y()}}}function G(n){let e,l=n[2]("logoutButton")+"",a;return{c(){e=t.element("span"),a=t.text(l),t.attr(e,"class","PlayerLogoutText")},m(o,s){t.insert(o,e,s),t.append(e,a)},p(o,s){s&4&&l!==(l=o[2]("logoutButton")+"")&&t.set_data(a,l)},d(o){o&&t.detach(e)}}}function N(n){let e;function l(s,r){return s[0]==="PlayerAccountMenu"?H:j}let a=l(n),o=a(n);return{c(){e=t.element("div"),o.c()},m(s,r){t.insert(s,e,r),o.m(e,null),n[15](e)},p(s,[r]){a===(a=l(s))&&o?o.p(s,r):(o.d(1),o=a(s),o&&(o.c(),o.m(e,null)))},i:t.noop,o:t.noop,d(s){s&&t.detach(e),o.d(),n[15](null)}}}function R(n,e,l){let a;t.component_subscribe(n,t.$format,i=>l(2,a=i));let{endpoint:o=""}=e,{session:s=""}=e,{buttonlocation:r=""}=e,{lang:d=""}=e,{mbsource:u}=e,{clientstyling:g=""}=e,{clientstylingurl:m=""}=e,{translationurl:y=""}=e,f="",h=!1,c,B,M=window.navigator.userAgent,A=t.getDevice(M)!=="PC";const F=window.matchMedia("(min-width: 768px)"),L=()=>{fetch(y).then(b=>b.json()).then(b=>{Object.keys(b).forEach(_=>{v(_,b[_])})}).catch(b=>{console.log(b)})};Object.keys(x).forEach(i=>{v(i,x[i])});const p=()=>{let i=new Headers;i.append("Content-type","application/json"),i.append("X-SessionID",s);let b={method:"DELETE",headers:i};fetch(`${o}/v1/player/session/player`,b).then(_=>{window.postMessage({type:"LogoutSuccessfull"},window.location.href),C("logged_out",{})})},k=()=>(o||(f="GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.",h=!0,console.error(f)),s||(f="GENERAL-LOGOUT - Session is missing! Please provide a valid session.",h=!0,console.error(f)),h),P=()=>{T(d)};t.onMount(()=>()=>{});const S=()=>p(),E=()=>p();function I(i){t.binding_callbacks[i?"unshift":"push"](()=>{c=i,l(1,c)})}return n.$$set=i=>{"endpoint"in i&&l(6,o=i.endpoint),"session"in i&&l(7,s=i.session),"buttonlocation"in i&&l(0,r=i.buttonlocation),"lang"in i&&l(8,d=i.lang),"mbsource"in i&&l(9,u=i.mbsource),"clientstyling"in i&&l(10,g=i.clientstyling),"clientstylingurl"in i&&l(11,m=i.clientstylingurl),"translationurl"in i&&l(12,y=i.translationurl)},n.$$.update=()=>{n.$$.dirty&193&&o&&s&&r&&k(),n.$$.dirty&256&&d&&P(),n.$$.dirty&1026&&g&&c&&t.setClientStyling(),n.$$.dirty&1026&&g&&c&&t.setClientStyling(c,g),n.$$.dirty&2050&&m&&c&&t.setClientStylingURL(c,m),n.$$.dirty&514&&u&&c&&t.setStreamStyling(c,`${u}.Style`,B),n.$$.dirty&4096&&y&&L()},[r,c,a,A,F,p,o,s,d,u,g,m,y,S,E,I]}class w extends t.SvelteComponent{constructor(e){super(),t.init(this,e,R,N,t.safe_not_equal,{endpoint:6,session:7,buttonlocation:0,lang:8,mbsource:9,clientstyling:10,clientstylingurl:11,translationurl:12},O)}get endpoint(){return this.$$.ctx[6]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get session(){return this.$$.ctx[7]}set session(e){this.$$set({session:e}),t.flush()}get buttonlocation(){return this.$$.ctx[0]}set buttonlocation(e){this.$$set({buttonlocation:e}),t.flush()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),t.flush()}get mbsource(){return this.$$.ctx[9]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[12]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}}t.create_custom_element(w,{endpoint:{},session:{},buttonlocation:{},lang:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=w;
@@ -1,5 +1,5 @@
1
- import { c as q, b as z, S as V, B as Q, Q as Y, t as p, f as Z, J as F, p as v, D as B, q as w, k as J, w as W, M as X, h as K, e as f, I as E, a2 as x, a3 as k, a0 as $, g as b, _ as tt, Y as I, U as L, V as et, W as nt, m as ot, a as st } from "./PlayerAccountController-CKZCKQpN.js";
2
- const lt = (e, t = {}) => {
1
+ import { a as q, $ as z, S as V, i as Z, s as Q, f as p, b as X, n as F, d as w, e as B, g as x, h as Y, j as J, o as K, k as W, p as f, x as E, y as v, v as k, q as $, t as b, E as tt, u as I, B as L, C as et, D as nt, c as ot, A as st } from "./PlayerAccountController-DgE57QwT.js";
2
+ const it = (e, t = {}) => {
3
3
  const o = new CustomEvent("track-custom-event", {
4
4
  detail: {
5
5
  type: e,
@@ -13,7 +13,7 @@ const lt = (e, t = {}) => {
13
13
  function P(e, t) {
14
14
  q(e, t);
15
15
  }
16
- function it(e) {
16
+ function lt(e) {
17
17
  z.set(e);
18
18
  }
19
19
  const S = {
@@ -52,19 +52,19 @@ const S = {
52
52
  }
53
53
  };
54
54
  function at(e) {
55
- Z(e, "svelte-xtnqa3", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}");
55
+ X(e, "svelte-xtnqa3", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}");
56
56
  }
57
57
  function rt(e) {
58
- let t, o, i, n = (
58
+ let t, o, l, n = (
59
59
  /*$_*/
60
60
  e[2]("logoutButton") + ""
61
- ), l, a, c;
61
+ ), i, a, c;
62
62
  return {
63
63
  c() {
64
- t = w("div"), o = w("button"), i = w("span"), l = k(n), b(t, "class", "GeneralLogout");
64
+ t = x("div"), o = x("button"), l = x("span"), i = k(n), b(t, "class", "GeneralLogout");
65
65
  },
66
66
  m(r, d) {
67
- B(r, t, d), f(t, o), f(o, i), f(i, l), a || (c = E(
67
+ B(r, t, d), f(t, o), f(o, l), f(l, i), a || (c = E(
68
68
  o,
69
69
  "click",
70
70
  /*click_handler_1*/
@@ -74,19 +74,19 @@ function rt(e) {
74
74
  p(r, d) {
75
75
  d & /*$_*/
76
76
  4 && n !== (n = /*$_*/
77
- r[2]("logoutButton") + "") && I(l, n);
77
+ r[2]("logoutButton") + "") && I(i, n);
78
78
  },
79
79
  d(r) {
80
- r && v(t), a = !1, c();
80
+ r && w(t), a = !1, c();
81
81
  }
82
82
  };
83
83
  }
84
84
  function ut(e) {
85
- let t, o, i, n, l, a, c, r, d, m, _, g = !/*isMobile*/
85
+ let t, o, l, n, i, a, c, r, d, h, _, g = !/*isMobile*/
86
86
  e[3] && ct(e);
87
87
  return {
88
88
  c() {
89
- t = w("p"), o = w("span"), i = x("svg"), n = x("defs"), l = x("style"), a = k(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), c = x("path"), r = x("path"), d = $(), g && g.c(), b(c, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), b(c, "d", "M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"), b(r, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), b(r, "d", "M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"), b(i, "id", "bbfaf345-72af-4296-bf4b-2fd41fc03d5d"), b(i, "data-name", "Layer 1"), b(i, "xmlns", "http://www.w3.org/2000/svg"), b(i, "viewBox", "0 0 150 150"), tt(o, "width", /*isMobile*/
89
+ t = x("p"), o = x("span"), l = v("svg"), n = v("defs"), i = v("style"), a = k(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), c = v("path"), r = v("path"), d = $(), g && g.c(), b(c, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), b(c, "d", "M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"), b(r, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), b(r, "d", "M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"), b(l, "id", "bbfaf345-72af-4296-bf4b-2fd41fc03d5d"), b(l, "data-name", "Layer 1"), b(l, "xmlns", "http://www.w3.org/2000/svg"), b(l, "viewBox", "0 0 150 150"), tt(o, "width", /*isMobile*/
90
90
  e[3] ? (
91
91
  /*mediaQuery*/
92
92
  e[4].matches ? "20px" : "24px"
@@ -95,20 +95,20 @@ function ut(e) {
95
95
  (e[4].matches && /*isMobile*/
96
96
  e[3] ? "PlayerAccountMenuItemBoxTablet" : ""));
97
97
  },
98
- m(h, u) {
99
- B(h, t, u), f(t, o), f(o, i), f(i, n), f(n, l), f(l, a), f(i, c), f(i, r), f(t, d), g && g.m(t, null), m || (_ = E(
98
+ m(y, u) {
99
+ B(y, t, u), f(t, o), f(o, l), f(l, n), f(n, i), f(i, a), f(l, c), f(l, r), f(t, d), g && g.m(t, null), h || (_ = E(
100
100
  t,
101
101
  "click",
102
102
  /*click_handler*/
103
103
  e[13]
104
- ), m = !0);
104
+ ), h = !0);
105
105
  },
106
- p(h, u) {
106
+ p(y, u) {
107
107
  /*isMobile*/
108
- h[3] || g.p(h, u);
108
+ y[3] || g.p(y, u);
109
109
  },
110
- d(h) {
111
- h && v(t), g && g.d(), m = !1, _();
110
+ d(y) {
111
+ y && w(t), g && g.d(), h = !1, _();
112
112
  }
113
113
  };
114
114
  }
@@ -116,61 +116,61 @@ function ct(e) {
116
116
  let t, o = (
117
117
  /*$_*/
118
118
  e[2]("logoutButton") + ""
119
- ), i;
119
+ ), l;
120
120
  return {
121
121
  c() {
122
- t = w("span"), i = k(o), b(t, "class", "PlayerLogoutText");
122
+ t = x("span"), l = k(o), b(t, "class", "PlayerLogoutText");
123
123
  },
124
- m(n, l) {
125
- B(n, t, l), f(t, i);
124
+ m(n, i) {
125
+ B(n, t, i), f(t, l);
126
126
  },
127
- p(n, l) {
128
- l & /*$_*/
127
+ p(n, i) {
128
+ i & /*$_*/
129
129
  4 && o !== (o = /*$_*/
130
- n[2]("logoutButton") + "") && I(i, o);
130
+ n[2]("logoutButton") + "") && I(l, o);
131
131
  },
132
132
  d(n) {
133
- n && v(t);
133
+ n && w(t);
134
134
  }
135
135
  };
136
136
  }
137
137
  function dt(e) {
138
138
  let t;
139
- function o(l, a) {
139
+ function o(i, a) {
140
140
  return (
141
141
  /*buttonlocation*/
142
- l[0] === "PlayerAccountMenu" ? ut : rt
142
+ i[0] === "PlayerAccountMenu" ? ut : rt
143
143
  );
144
144
  }
145
- let i = o(e), n = i(e);
145
+ let l = o(e), n = l(e);
146
146
  return {
147
147
  c() {
148
- t = w("div"), n.c();
148
+ t = x("div"), n.c();
149
149
  },
150
- m(l, a) {
151
- B(l, t, a), n.m(t, null), e[15](t);
150
+ m(i, a) {
151
+ B(i, t, a), n.m(t, null), e[15](t);
152
152
  },
153
- p(l, [a]) {
154
- i === (i = o(l)) && n ? n.p(l, a) : (n.d(1), n = i(l), n && (n.c(), n.m(t, null)));
153
+ p(i, [a]) {
154
+ l === (l = o(i)) && n ? n.p(i, a) : (n.d(1), n = l(i), n && (n.c(), n.m(t, null)));
155
155
  },
156
156
  i: F,
157
157
  o: F,
158
- d(l) {
159
- l && v(t), n.d(), e[15](null);
158
+ d(i) {
159
+ i && w(t), n.d(), e[15](null);
160
160
  }
161
161
  };
162
162
  }
163
163
  function gt(e, t, o) {
164
- let i;
165
- J(e, st, (s) => o(2, i = s));
166
- let { endpoint: n = "" } = t, { session: l = "" } = t, { buttonlocation: a = "" } = t, { lang: c = "" } = t, { mbsource: r } = t, { clientstyling: d = "" } = t, { clientstylingurl: m = "" } = t, { translationurl: _ = "" } = t, g = "", h = !1, u, C, T = window.navigator.userAgent, O = W(T) !== "PC";
167
- const H = window.matchMedia("(min-width: 768px)"), j = () => {
168
- fetch(_).then((y) => y.json()).then((y) => {
169
- Object.keys(y).forEach((A) => {
170
- P(A, y[A]);
164
+ let l;
165
+ Y(e, st, (s) => o(2, l = s));
166
+ let { endpoint: n = "" } = t, { session: i = "" } = t, { buttonlocation: a = "" } = t, { lang: c = "" } = t, { mbsource: r } = t, { clientstyling: d = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: _ = "" } = t, g = "", y = !1, u, C, T = window.navigator.userAgent, O = J(T) !== "PC";
167
+ const j = window.matchMedia("(min-width: 768px)"), H = () => {
168
+ fetch(_).then((m) => m.json()).then((m) => {
169
+ Object.keys(m).forEach((A) => {
170
+ P(A, m[A]);
171
171
  });
172
- }).catch((y) => {
173
- console.log(y);
172
+ }).catch((m) => {
173
+ console.log(m);
174
174
  });
175
175
  };
176
176
  Object.keys(S).forEach((s) => {
@@ -178,60 +178,60 @@ function gt(e, t, o) {
178
178
  });
179
179
  const M = () => {
180
180
  let s = new Headers();
181
- s.append("Content-type", "application/json"), s.append("X-SessionID", l);
182
- let y = { method: "DELETE", headers: s };
183
- fetch(`${n}/v1/player/session/player`, y).then((A) => {
184
- window.postMessage({ type: "LogoutSuccessfull" }, window.location.href), lt("logged_out", {});
181
+ s.append("Content-type", "application/json"), s.append("X-SessionID", i);
182
+ let m = { method: "DELETE", headers: s };
183
+ fetch(`${n}/v1/player/session/player`, m).then((A) => {
184
+ window.postMessage({ type: "LogoutSuccessfull" }, window.location.href), it("logged_out", {});
185
185
  });
186
- }, G = () => (n || (g = "GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.", h = !0, console.error(g)), l || (g = "GENERAL-LOGOUT - Session is missing! Please provide a valid session.", h = !0, console.error(g)), h), U = () => {
187
- it(c);
186
+ }, G = () => (n || (g = "GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.", y = !0, console.error(g)), i || (g = "GENERAL-LOGOUT - Session is missing! Please provide a valid session.", y = !0, console.error(g)), y), D = () => {
187
+ lt(c);
188
188
  };
189
- X(() => () => {
189
+ K(() => () => {
190
190
  });
191
- const D = () => M(), N = () => M();
192
- function R(s) {
193
- K[s ? "unshift" : "push"](() => {
191
+ const N = () => M(), R = () => M();
192
+ function U(s) {
193
+ W[s ? "unshift" : "push"](() => {
194
194
  u = s, o(1, u);
195
195
  });
196
196
  }
197
197
  return e.$$set = (s) => {
198
- "endpoint" in s && o(6, n = s.endpoint), "session" in s && o(7, l = s.session), "buttonlocation" in s && o(0, a = s.buttonlocation), "lang" in s && o(8, c = s.lang), "mbsource" in s && o(9, r = s.mbsource), "clientstyling" in s && o(10, d = s.clientstyling), "clientstylingurl" in s && o(11, m = s.clientstylingurl), "translationurl" in s && o(12, _ = s.translationurl);
198
+ "endpoint" in s && o(6, n = s.endpoint), "session" in s && o(7, i = s.session), "buttonlocation" in s && o(0, a = s.buttonlocation), "lang" in s && o(8, c = s.lang), "mbsource" in s && o(9, r = s.mbsource), "clientstyling" in s && o(10, d = s.clientstyling), "clientstylingurl" in s && o(11, h = s.clientstylingurl), "translationurl" in s && o(12, _ = s.translationurl);
199
199
  }, e.$$.update = () => {
200
200
  e.$$.dirty & /*endpoint, session, buttonlocation*/
201
- 193 && n && l && a && G(), e.$$.dirty & /*lang*/
202
- 256 && c && U(), e.$$.dirty & /*clientstyling, customStylingContainer*/
201
+ 193 && n && i && a && G(), e.$$.dirty & /*lang*/
202
+ 256 && c && D(), e.$$.dirty & /*clientstyling, customStylingContainer*/
203
203
  1026 && d && u && L(), e.$$.dirty & /*clientstyling, customStylingContainer*/
204
204
  1026 && d && u && L(u, d), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
205
- 2050 && m && u && et(u, m), e.$$.dirty & /*mbsource, customStylingContainer*/
205
+ 2050 && h && u && et(u, h), e.$$.dirty & /*mbsource, customStylingContainer*/
206
206
  514 && r && u && nt(u, `${r}.Style`, C), e.$$.dirty & /*translationurl*/
207
- 4096 && _ && j();
207
+ 4096 && _ && H();
208
208
  }, [
209
209
  a,
210
210
  u,
211
- i,
211
+ l,
212
212
  O,
213
- H,
213
+ j,
214
214
  M,
215
215
  n,
216
- l,
216
+ i,
217
217
  c,
218
218
  r,
219
219
  d,
220
- m,
220
+ h,
221
221
  _,
222
- D,
223
222
  N,
224
- R
223
+ R,
224
+ U
225
225
  ];
226
226
  }
227
227
  class ft extends V {
228
228
  constructor(t) {
229
- super(), Q(
229
+ super(), Z(
230
230
  this,
231
231
  t,
232
232
  gt,
233
233
  dt,
234
- Y,
234
+ Q,
235
235
  {
236
236
  endpoint: 6,
237
237
  session: 7,
@@ -1,5 +1,5 @@
1
- import { c as q, b as z, S as V, B as Q, Q as Y, t as p, f as Z, J as F, p as v, D as B, q as w, k as J, w as W, M as X, h as K, e as f, I as E, a2 as x, a3 as k, a0 as $, g as b, _ as tt, Y as I, U as L, V as et, W as nt, m as ot, a as st } from "./PlayerAccountController-BHq1U_O6.js";
2
- const lt = (e, t = {}) => {
1
+ import { a as U, $ as q, S as V, i as Z, s as Q, f as p, b as X, n as L, d as v, c as B, e as w, g as Y, h as J, o as K, j as W, m as f, w as E, x, u as F, p as $, r as b, E as tt, t as I, z as k, A as et, B as nt, C as ot, D as st } from "./PlayerAccountController-CO8cZYgr.js";
2
+ const it = (e, t = {}) => {
3
3
  const o = new CustomEvent("track-custom-event", {
4
4
  detail: {
5
5
  type: e,
@@ -11,10 +11,10 @@ const lt = (e, t = {}) => {
11
11
  document.dispatchEvent(o);
12
12
  };
13
13
  function P(e, t) {
14
- q(e, t);
14
+ U(e, t);
15
15
  }
16
- function it(e) {
17
- z.set(e);
16
+ function lt(e) {
17
+ q.set(e);
18
18
  }
19
19
  const S = {
20
20
  en: {
@@ -52,19 +52,19 @@ const S = {
52
52
  }
53
53
  };
54
54
  function at(e) {
55
- Z(e, "svelte-xtnqa3", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}");
55
+ X(e, "svelte-xtnqa3", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}");
56
56
  }
57
57
  function rt(e) {
58
- let t, o, i, n = (
58
+ let t, o, l, n = (
59
59
  /*$_*/
60
60
  e[2]("logoutButton") + ""
61
- ), l, a, c;
61
+ ), i, a, c;
62
62
  return {
63
63
  c() {
64
- t = w("div"), o = w("button"), i = w("span"), l = k(n), b(t, "class", "GeneralLogout");
64
+ t = w("div"), o = w("button"), l = w("span"), i = F(n), b(t, "class", "GeneralLogout");
65
65
  },
66
66
  m(r, d) {
67
- B(r, t, d), f(t, o), f(o, i), f(i, l), a || (c = E(
67
+ B(r, t, d), f(t, o), f(o, l), f(l, i), a || (c = E(
68
68
  o,
69
69
  "click",
70
70
  /*click_handler_1*/
@@ -74,7 +74,7 @@ function rt(e) {
74
74
  p(r, d) {
75
75
  d & /*$_*/
76
76
  4 && n !== (n = /*$_*/
77
- r[2]("logoutButton") + "") && I(l, n);
77
+ r[2]("logoutButton") + "") && I(i, n);
78
78
  },
79
79
  d(r) {
80
80
  r && v(t), a = !1, c();
@@ -82,11 +82,11 @@ function rt(e) {
82
82
  };
83
83
  }
84
84
  function ut(e) {
85
- let t, o, i, n, l, a, c, r, d, m, _, g = !/*isMobile*/
85
+ let t, o, l, n, i, a, c, r, d, m, _, g = !/*isMobile*/
86
86
  e[3] && ct(e);
87
87
  return {
88
88
  c() {
89
- t = w("p"), o = w("span"), i = x("svg"), n = x("defs"), l = x("style"), a = k(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), c = x("path"), r = x("path"), d = $(), g && g.c(), b(c, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), b(c, "d", "M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"), b(r, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), b(r, "d", "M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"), b(i, "id", "bbfaf345-72af-4296-bf4b-2fd41fc03d5d"), b(i, "data-name", "Layer 1"), b(i, "xmlns", "http://www.w3.org/2000/svg"), b(i, "viewBox", "0 0 150 150"), tt(o, "width", /*isMobile*/
89
+ t = w("p"), o = w("span"), l = x("svg"), n = x("defs"), i = x("style"), a = F(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), c = x("path"), r = x("path"), d = $(), g && g.c(), b(c, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), b(c, "d", "M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"), b(r, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), b(r, "d", "M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"), b(l, "id", "bbfaf345-72af-4296-bf4b-2fd41fc03d5d"), b(l, "data-name", "Layer 1"), b(l, "xmlns", "http://www.w3.org/2000/svg"), b(l, "viewBox", "0 0 150 150"), tt(o, "width", /*isMobile*/
90
90
  e[3] ? (
91
91
  /*mediaQuery*/
92
92
  e[4].matches ? "20px" : "24px"
@@ -96,7 +96,7 @@ function ut(e) {
96
96
  e[3] ? "PlayerAccountMenuItemBoxTablet" : ""));
97
97
  },
98
98
  m(h, u) {
99
- B(h, t, u), f(t, o), f(o, i), f(i, n), f(n, l), f(l, a), f(i, c), f(i, r), f(t, d), g && g.m(t, null), m || (_ = E(
99
+ B(h, t, u), f(t, o), f(o, l), f(l, n), f(n, i), f(i, a), f(l, c), f(l, r), f(t, d), g && g.m(t, null), m || (_ = E(
100
100
  t,
101
101
  "click",
102
102
  /*click_handler*/
@@ -116,18 +116,18 @@ function ct(e) {
116
116
  let t, o = (
117
117
  /*$_*/
118
118
  e[2]("logoutButton") + ""
119
- ), i;
119
+ ), l;
120
120
  return {
121
121
  c() {
122
- t = w("span"), i = k(o), b(t, "class", "PlayerLogoutText");
122
+ t = w("span"), l = F(o), b(t, "class", "PlayerLogoutText");
123
123
  },
124
- m(n, l) {
125
- B(n, t, l), f(t, i);
124
+ m(n, i) {
125
+ B(n, t, i), f(t, l);
126
126
  },
127
- p(n, l) {
128
- l & /*$_*/
127
+ p(n, i) {
128
+ i & /*$_*/
129
129
  4 && o !== (o = /*$_*/
130
- n[2]("logoutButton") + "") && I(i, o);
130
+ n[2]("logoutButton") + "") && I(l, o);
131
131
  },
132
132
  d(n) {
133
133
  n && v(t);
@@ -136,35 +136,35 @@ function ct(e) {
136
136
  }
137
137
  function dt(e) {
138
138
  let t;
139
- function o(l, a) {
139
+ function o(i, a) {
140
140
  return (
141
141
  /*buttonlocation*/
142
- l[0] === "PlayerAccountMenu" ? ut : rt
142
+ i[0] === "PlayerAccountMenu" ? ut : rt
143
143
  );
144
144
  }
145
- let i = o(e), n = i(e);
145
+ let l = o(e), n = l(e);
146
146
  return {
147
147
  c() {
148
148
  t = w("div"), n.c();
149
149
  },
150
- m(l, a) {
151
- B(l, t, a), n.m(t, null), e[15](t);
150
+ m(i, a) {
151
+ B(i, t, a), n.m(t, null), e[15](t);
152
152
  },
153
- p(l, [a]) {
154
- i === (i = o(l)) && n ? n.p(l, a) : (n.d(1), n = i(l), n && (n.c(), n.m(t, null)));
153
+ p(i, [a]) {
154
+ l === (l = o(i)) && n ? n.p(i, a) : (n.d(1), n = l(i), n && (n.c(), n.m(t, null)));
155
155
  },
156
- i: F,
157
- o: F,
158
- d(l) {
159
- l && v(t), n.d(), e[15](null);
156
+ i: L,
157
+ o: L,
158
+ d(i) {
159
+ i && v(t), n.d(), e[15](null);
160
160
  }
161
161
  };
162
162
  }
163
163
  function gt(e, t, o) {
164
- let i;
165
- J(e, st, (s) => o(2, i = s));
166
- let { endpoint: n = "" } = t, { session: l = "" } = t, { buttonlocation: a = "" } = t, { lang: c = "" } = t, { mbsource: r } = t, { clientstyling: d = "" } = t, { clientstylingurl: m = "" } = t, { translationurl: _ = "" } = t, g = "", h = !1, u, C, T = window.navigator.userAgent, O = W(T) !== "PC";
167
- const H = window.matchMedia("(min-width: 768px)"), j = () => {
164
+ let l;
165
+ Y(e, st, (s) => o(2, l = s));
166
+ let { endpoint: n = "" } = t, { session: i = "" } = t, { buttonlocation: a = "" } = t, { lang: c = "" } = t, { mbsource: r } = t, { clientstyling: d = "" } = t, { clientstylingurl: m = "" } = t, { translationurl: _ = "" } = t, g = "", h = !1, u, C, T = window.navigator.userAgent, O = J(T) !== "PC";
167
+ const j = window.matchMedia("(min-width: 768px)"), H = () => {
168
168
  fetch(_).then((y) => y.json()).then((y) => {
169
169
  Object.keys(y).forEach((A) => {
170
170
  P(A, y[A]);
@@ -178,42 +178,42 @@ function gt(e, t, o) {
178
178
  });
179
179
  const M = () => {
180
180
  let s = new Headers();
181
- s.append("Content-type", "application/json"), s.append("X-SessionID", l);
181
+ s.append("Content-type", "application/json"), s.append("X-SessionID", i);
182
182
  let y = { method: "DELETE", headers: s };
183
183
  fetch(`${n}/v1/player/session/player`, y).then((A) => {
184
- window.postMessage({ type: "LogoutSuccessfull" }, window.location.href), lt("logged_out", {});
184
+ window.postMessage({ type: "LogoutSuccessfull" }, window.location.href), it("logged_out", {});
185
185
  });
186
- }, G = () => (n || (g = "GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.", h = !0, console.error(g)), l || (g = "GENERAL-LOGOUT - Session is missing! Please provide a valid session.", h = !0, console.error(g)), h), U = () => {
187
- it(c);
186
+ }, G = () => (n || (g = "GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.", h = !0, console.error(g)), i || (g = "GENERAL-LOGOUT - Session is missing! Please provide a valid session.", h = !0, console.error(g)), h), z = () => {
187
+ lt(c);
188
188
  };
189
- X(() => () => {
189
+ K(() => () => {
190
190
  });
191
191
  const D = () => M(), N = () => M();
192
192
  function R(s) {
193
- K[s ? "unshift" : "push"](() => {
193
+ W[s ? "unshift" : "push"](() => {
194
194
  u = s, o(1, u);
195
195
  });
196
196
  }
197
197
  return e.$$set = (s) => {
198
- "endpoint" in s && o(6, n = s.endpoint), "session" in s && o(7, l = s.session), "buttonlocation" in s && o(0, a = s.buttonlocation), "lang" in s && o(8, c = s.lang), "mbsource" in s && o(9, r = s.mbsource), "clientstyling" in s && o(10, d = s.clientstyling), "clientstylingurl" in s && o(11, m = s.clientstylingurl), "translationurl" in s && o(12, _ = s.translationurl);
198
+ "endpoint" in s && o(6, n = s.endpoint), "session" in s && o(7, i = s.session), "buttonlocation" in s && o(0, a = s.buttonlocation), "lang" in s && o(8, c = s.lang), "mbsource" in s && o(9, r = s.mbsource), "clientstyling" in s && o(10, d = s.clientstyling), "clientstylingurl" in s && o(11, m = s.clientstylingurl), "translationurl" in s && o(12, _ = s.translationurl);
199
199
  }, e.$$.update = () => {
200
200
  e.$$.dirty & /*endpoint, session, buttonlocation*/
201
- 193 && n && l && a && G(), e.$$.dirty & /*lang*/
202
- 256 && c && U(), e.$$.dirty & /*clientstyling, customStylingContainer*/
203
- 1026 && d && u && L(), e.$$.dirty & /*clientstyling, customStylingContainer*/
204
- 1026 && d && u && L(u, d), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
201
+ 193 && n && i && a && G(), e.$$.dirty & /*lang*/
202
+ 256 && c && z(), e.$$.dirty & /*clientstyling, customStylingContainer*/
203
+ 1026 && d && u && k(), e.$$.dirty & /*clientstyling, customStylingContainer*/
204
+ 1026 && d && u && k(u, d), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
205
205
  2050 && m && u && et(u, m), e.$$.dirty & /*mbsource, customStylingContainer*/
206
206
  514 && r && u && nt(u, `${r}.Style`, C), e.$$.dirty & /*translationurl*/
207
- 4096 && _ && j();
207
+ 4096 && _ && H();
208
208
  }, [
209
209
  a,
210
210
  u,
211
- i,
211
+ l,
212
212
  O,
213
- H,
213
+ j,
214
214
  M,
215
215
  n,
216
- l,
216
+ i,
217
217
  c,
218
218
  r,
219
219
  d,
@@ -226,12 +226,12 @@ function gt(e, t, o) {
226
226
  }
227
227
  class ft extends V {
228
228
  constructor(t) {
229
- super(), Q(
229
+ super(), Z(
230
230
  this,
231
231
  t,
232
232
  gt,
233
233
  dt,
234
- Y,
234
+ Q,
235
235
  {
236
236
  endpoint: 6,
237
237
  session: 7,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./PlayerAccountController-KqshAWe2.cjs");function T(n,e){t.addMessages(n,e)}function j(n){t.$locale.set(n)}const C={en:{titleBettingHistory:"Betting History",settledBets:"Settled Bets",openBets:"Open Bets"},ro:{titleBettingHistory:"Istoric Pariuri",settledBets:"Pariuri Decise",openBets:"Pariuri Deschise"},es:{titleBettingHistory:"Historial de Apuestas",settledBets:"Apuestas cerradas",openBets:"Apuestas abiertas"},hr:{titleBettingHistory:"Povijest klađenja",settledBets:"Obračunate oklade",openBets:"Otvorene oklade"},"pt-br":{titleBettingHistory:"Histórico de apostas",settledBets:"Apostas liquidadas",openBets:"apostas abertas"},"es-mx":{titleBettingHistory:"Historial de apuesta",settledBets:"Apuestas liquidadas",openBets:"Apuestas abiertas"},tr:{titleBettingHistory:"Bahis Geçmişi",settledBets:"Sonuçlandırılmış Bahisler",openBets:"Açık Bahisler"},"en-us":{titleBettingHistory:"Betting History",settledBets:"Settled Bets",openBets:"Open Bets"}};function P(n){t.append_styles(n,"svelte-1kgy21f",`@import 'https://static.everymatrix.com/omfe-widgets/s/widgets/1.2.0-alpha.0/widgets.min.css';:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}.BettingHistoryTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.BettingHistoryTitle.BettingHistoryTitleMobile{font-size:16px}.BettingHistoryTitle.BettingHistoryTitleNone{display:none}.BettingHistoryWrapper{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px 50px 30px 50px;max-width:100%}.BettingHistoryWrapper.BettingHistoryWrapperMobile{padding:20px 15px;max-width:unset}.BettingHistoryTabs{width:100%;display:flex;justify-content:center}.BettingHistoryButton{margin:0;width:100%;padding:20px;border:none;font-size:24px;color:var(--emw--color-black, #000);background:var(--emw--color-white, #fff);border:2px solid var(--emw--color-black, #000)}.BettingHistoryButton.BettingHistoryButtonMobile{padding:20px;font-size:12px}.BettingHistoryButton.BettingHistoryButtonSelected{color:var(--emw--color-white, #fff);background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border: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))}.OM-MatchScore,.OM-MatchScore__List{display:flex;align-items:center;justify-content:center;list-style-type:none;margin:0;padding:0}`)}function x(n){let e,l,p,m,f,_,r,o,y,u,d=n[4]("titleBettingHistory")+"",w,g,a;return{c(){e=t.element("div"),l=t.svg_element("svg"),p=t.svg_element("defs"),m=t.svg_element("style"),f=t.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),_=t.svg_element("g"),r=t.svg_element("g"),o=t.svg_element("path"),y=t.space(),u=t.element("h2"),w=t.text(d),t.attr(o,"class","aaa"),t.attr(o,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),t.attr(o,"transform","translate(15 15) rotate(180)"),t.attr(r,"transform","translate(20 158)"),t.attr(_,"transform","translate(-20 -158)"),t.attr(l,"xmlns","http://www.w3.org/2000/svg"),t.attr(l,"width","15"),t.attr(l,"height","15"),t.attr(l,"viewBox","0 0 15 15"),t.attr(u,"class","BettingHistoryTitleMobile"),t.attr(e,"class","MenuReturnButton")},m(b,h){t.insert(b,e,h),t.append(e,l),t.append(l,p),t.append(p,m),t.append(m,f),t.append(l,_),t.append(_,r),t.append(r,o),t.append(e,y),t.append(e,u),t.append(u,w),g||(a=t.listen(e,"click",n[14]),g=!0)},p(b,h){h&16&&d!==(d=b[4]("titleBettingHistory")+"")&&t.set_data(w,d)},d(b){b&&t.detach(e),g=!1,a()}}}function E(n){return{c:t.noop,m:t.noop,d:t.noop}}function L(n){let e,l,p,m=n[4]("bettingHistory.title")+"",f,_,r,o,y=n[4]("bettingHistory.openBets")+"",u,d,w,g,a=n[4]("bettingHistory.settledBets")+"",b,h,v,c,A,M,S,k,I,H=n[5]&&x(n),s=n[3]==="true"&&n[1]&&E();return{c(){e=t.element("div"),H&&H.c(),l=t.space(),p=t.element("h2"),f=t.text(m),_=t.space(),r=t.element("div"),o=t.element("button"),u=t.text(y),w=t.space(),g=t.element("button"),b=t.text(a),v=t.space(),c=t.element("om-betting-history-list"),A=t.space(),s&&s.c(),M=t.space(),S=t.element("div"),t.attr(p,"class","BettingHistoryTitle "+(n[5]?"BettingHistoryTitleNone":"")),t.attr(p,"part","`BettingHistoryTitleMobile"),t.attr(o,"class",d=`BettingHistoryButton ${n[5]?"BettingHistoryButtonMobile":""} ${n[0]==="openBets"?"BettingHistoryButtonSelected":""}`),t.attr(g,"class",h=`BettingHistoryButton ${n[5]?"BettingHistoryButtonMobile":""} ${n[0]==="settledBets"?"BettingHistoryButtonSelected":""}`),t.attr(r,"class","BettingHistoryTabs"),t.set_custom_element_data(c,"bet-status",n[0]),t.set_custom_element_data(c,"item-layout","V2"),t.set_custom_element_data(c,"match-score-layout","v2"),t.set_custom_element_data(c,"match-score-scope","BHDetailed"),t.set_custom_element_data(c,"date-format","dd.mm.yyyy"),t.set_custom_element_data(c,"time-format","HH:MM"),t.set_custom_element_data(c,"tournament-route",":sportId/:tournamentId"),t.set_custom_element_data(c,"match-route",":betId"),t.attr(S,"class","OM-MatchScore OM-MatchScore__List"),t.attr(e,"class","BettingHistoryWrapper"),t.toggle_class(e,"BettingHistoryWrapperMobile",n[5])},m(i,B){t.insert(i,e,B),H&&H.m(e,null),t.append(e,l),t.append(e,p),t.append(p,f),t.append(e,_),t.append(e,r),t.append(r,o),t.append(o,u),t.append(r,w),t.append(r,g),t.append(g,b),t.append(e,v),t.append(e,c),t.append(e,A),s&&s.m(e,null),t.append(e,M),t.append(e,S),n[17](e),k||(I=[t.listen(o,"click",n[15]),t.listen(g,"click",n[16]),t.listen(c,"routeChange",n[8])],k=!0)},p(i,[B]){i[5]&&H.p(i,B),B&16&&m!==(m=i[4]("bettingHistory.title")+"")&&t.set_data(f,m),B&16&&y!==(y=i[4]("bettingHistory.openBets")+"")&&t.set_data(u,y),B&1&&d!==(d=`BettingHistoryButton ${i[5]?"BettingHistoryButtonMobile":""} ${i[0]==="openBets"?"BettingHistoryButtonSelected":""}`)&&t.attr(o,"class",d),B&16&&a!==(a=i[4]("bettingHistory.settledBets")+"")&&t.set_data(b,a),B&1&&h!==(h=`BettingHistoryButton ${i[5]?"BettingHistoryButtonMobile":""} ${i[0]==="settledBets"?"BettingHistoryButtonSelected":""}`)&&t.attr(g,"class",h),B&1&&t.set_custom_element_data(c,"bet-status",i[0]),i[3]==="true"&&i[1]?s||(s=E(),s.c(),s.m(e,M)):s&&(s.d(1),s=null)},i:t.noop,o:t.noop,d(i){i&&t.detach(e),H&&H.d(),s&&s.d(),n[17](null),k=!1,t.run_all(I)}}}function R(n,e,l){let p;t.component_subscribe(n,t.$format,s=>l(4,p=s));let{betstatus:m="openBets"}=e,{lang:f="en"}=e,{selectedBetId:_=null}=e,{clientstyling:r=""}=e,{clientstylingurl:o=""}=e,{mbsource:y}=e,{translationurl:u=""}=e,d="false",w=window.navigator.userAgent,g=t.getDevice(w)!=="PC",a,b;const h=()=>{fetch(u).then(i=>i.json()).then(i=>{Object.keys(i).forEach(B=>{T(B,i[B])})}).catch(i=>{console.log(i)})};Object.entries(C).forEach(([s,i])=>{T(s,i)});const v=s=>{l(0,m=s)},c=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:g},window.location.href)},A=s=>{const{betId:i}=s.detail.params;l(1,_=i),l(3,d="true")},M=s=>{var i;((i=s.data)==null?void 0:i.type)==="ModalClosed"&&l(3,d="false")};t.onMount(()=>(window.addEventListener("message",M,!1),()=>{window.removeEventListener("message",M)}));const S=()=>c(),k=()=>v("openBets"),I=()=>v("settledBets");function H(s){t.binding_callbacks[s?"unshift":"push"](()=>{a=s,l(2,a)})}return n.$$set=s=>{"betstatus"in s&&l(0,m=s.betstatus),"lang"in s&&l(9,f=s.lang),"selectedBetId"in s&&l(1,_=s.selectedBetId),"clientstyling"in s&&l(10,r=s.clientstyling),"clientstylingurl"in s&&l(11,o=s.clientstylingurl),"mbsource"in s&&l(12,y=s.mbsource),"translationurl"in s&&l(13,u=s.translationurl)},n.$$.update=()=>{n.$$.dirty&512&&f&&j(f),n.$$.dirty&1028&&r&&a&&t.setClientStyling(a,r),n.$$.dirty&2052&&o&&a&&t.setClientStylingURL(a,o),n.$$.dirty&4100&&y&&a&&t.setStreamStyling(a,`${y}.Style`,b),n.$$.dirty&8192&&u&&h()},[m,_,a,d,p,g,v,c,A,f,r,o,y,u,S,k,I,H]}class O extends t.SvelteComponent{constructor(e){super(),t.init(this,e,R,L,t.safe_not_equal,{betstatus:0,lang:9,selectedBetId:1,clientstyling:10,clientstylingurl:11,mbsource:12,translationurl:13},P)}get betstatus(){return this.$$.ctx[0]}set betstatus(e){this.$$set({betstatus:e}),t.flush()}get lang(){return this.$$.ctx[9]}set lang(e){this.$$set({lang:e}),t.flush()}get selectedBetId(){return this.$$.ctx[1]}set selectedBetId(e){this.$$set({selectedBetId:e}),t.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get mbsource(){return this.$$.ctx[12]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}get translationurl(){return this.$$.ctx[13]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}}t.create_custom_element(O,{betstatus:{},lang:{},selectedBetId:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{}},[],[],!0);exports.default=O;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./PlayerAccountController-BBk-9TOg.cjs");function T(n,e){t.addMessages(n,e)}function j(n){t.$locale.set(n)}const C={en:{titleBettingHistory:"Betting History",settledBets:"Settled Bets",openBets:"Open Bets"},ro:{titleBettingHistory:"Istoric Pariuri",settledBets:"Pariuri Decise",openBets:"Pariuri Deschise"},es:{titleBettingHistory:"Historial de Apuestas",settledBets:"Apuestas cerradas",openBets:"Apuestas abiertas"},hr:{titleBettingHistory:"Povijest klađenja",settledBets:"Obračunate oklade",openBets:"Otvorene oklade"},"pt-br":{titleBettingHistory:"Histórico de apostas",settledBets:"Apostas liquidadas",openBets:"apostas abertas"},"es-mx":{titleBettingHistory:"Historial de apuesta",settledBets:"Apuestas liquidadas",openBets:"Apuestas abiertas"},tr:{titleBettingHistory:"Bahis Geçmişi",settledBets:"Sonuçlandırılmış Bahisler",openBets:"Açık Bahisler"},"en-us":{titleBettingHistory:"Betting History",settledBets:"Settled Bets",openBets:"Open Bets"}};function P(n){t.append_styles(n,"svelte-1kgy21f",`@import 'https://static.everymatrix.com/omfe-widgets/s/widgets/1.2.0-alpha.0/widgets.min.css';:host{font-family:system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}.BettingHistoryTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.BettingHistoryTitle.BettingHistoryTitleMobile{font-size:16px}.BettingHistoryTitle.BettingHistoryTitleNone{display:none}.BettingHistoryWrapper{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px 50px 30px 50px;max-width:100%}.BettingHistoryWrapper.BettingHistoryWrapperMobile{padding:20px 15px;max-width:unset}.BettingHistoryTabs{width:100%;display:flex;justify-content:center}.BettingHistoryButton{margin:0;width:100%;padding:20px;border:none;font-size:24px;color:var(--emw--color-black, #000);background:var(--emw--color-white, #fff);border:2px solid var(--emw--color-black, #000)}.BettingHistoryButton.BettingHistoryButtonMobile{padding:20px;font-size:12px}.BettingHistoryButton.BettingHistoryButtonSelected{color:var(--emw--color-white, #fff);background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border: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))}.OM-MatchScore,.OM-MatchScore__List{display:flex;align-items:center;justify-content:center;list-style-type:none;margin:0;padding:0}`)}function x(n){let e,l,p,m,f,_,r,o,y,u,d=n[4]("titleBettingHistory")+"",w,g,a;return{c(){e=t.element("div"),l=t.svg_element("svg"),p=t.svg_element("defs"),m=t.svg_element("style"),f=t.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),_=t.svg_element("g"),r=t.svg_element("g"),o=t.svg_element("path"),y=t.space(),u=t.element("h2"),w=t.text(d),t.attr(o,"class","aaa"),t.attr(o,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),t.attr(o,"transform","translate(15 15) rotate(180)"),t.attr(r,"transform","translate(20 158)"),t.attr(_,"transform","translate(-20 -158)"),t.attr(l,"xmlns","http://www.w3.org/2000/svg"),t.attr(l,"width","15"),t.attr(l,"height","15"),t.attr(l,"viewBox","0 0 15 15"),t.attr(u,"class","BettingHistoryTitleMobile"),t.attr(e,"class","MenuReturnButton")},m(b,h){t.insert(b,e,h),t.append(e,l),t.append(l,p),t.append(p,m),t.append(m,f),t.append(l,_),t.append(_,r),t.append(r,o),t.append(e,y),t.append(e,u),t.append(u,w),g||(a=t.listen(e,"click",n[14]),g=!0)},p(b,h){h&16&&d!==(d=b[4]("titleBettingHistory")+"")&&t.set_data(w,d)},d(b){b&&t.detach(e),g=!1,a()}}}function E(n){return{c:t.noop,m:t.noop,d:t.noop}}function L(n){let e,l,p,m=n[4]("bettingHistory.title")+"",f,_,r,o,y=n[4]("bettingHistory.openBets")+"",u,d,w,g,a=n[4]("bettingHistory.settledBets")+"",b,h,v,c,A,M,S,k,I,H=n[5]&&x(n),s=n[3]==="true"&&n[1]&&E();return{c(){e=t.element("div"),H&&H.c(),l=t.space(),p=t.element("h2"),f=t.text(m),_=t.space(),r=t.element("div"),o=t.element("button"),u=t.text(y),w=t.space(),g=t.element("button"),b=t.text(a),v=t.space(),c=t.element("om-betting-history-list"),A=t.space(),s&&s.c(),M=t.space(),S=t.element("div"),t.attr(p,"class","BettingHistoryTitle "+(n[5]?"BettingHistoryTitleNone":"")),t.attr(p,"part","`BettingHistoryTitleMobile"),t.attr(o,"class",d=`BettingHistoryButton ${n[5]?"BettingHistoryButtonMobile":""} ${n[0]==="openBets"?"BettingHistoryButtonSelected":""}`),t.attr(g,"class",h=`BettingHistoryButton ${n[5]?"BettingHistoryButtonMobile":""} ${n[0]==="settledBets"?"BettingHistoryButtonSelected":""}`),t.attr(r,"class","BettingHistoryTabs"),t.set_custom_element_data(c,"bet-status",n[0]),t.set_custom_element_data(c,"item-layout","V2"),t.set_custom_element_data(c,"match-score-layout","v2"),t.set_custom_element_data(c,"match-score-scope","BHDetailed"),t.set_custom_element_data(c,"date-format","dd.mm.yyyy"),t.set_custom_element_data(c,"time-format","HH:MM"),t.set_custom_element_data(c,"tournament-route",":sportId/:tournamentId"),t.set_custom_element_data(c,"match-route",":betId"),t.attr(S,"class","OM-MatchScore OM-MatchScore__List"),t.attr(e,"class","BettingHistoryWrapper"),t.toggle_class(e,"BettingHistoryWrapperMobile",n[5])},m(i,B){t.insert(i,e,B),H&&H.m(e,null),t.append(e,l),t.append(e,p),t.append(p,f),t.append(e,_),t.append(e,r),t.append(r,o),t.append(o,u),t.append(r,w),t.append(r,g),t.append(g,b),t.append(e,v),t.append(e,c),t.append(e,A),s&&s.m(e,null),t.append(e,M),t.append(e,S),n[17](e),k||(I=[t.listen(o,"click",n[15]),t.listen(g,"click",n[16]),t.listen(c,"routeChange",n[8])],k=!0)},p(i,[B]){i[5]&&H.p(i,B),B&16&&m!==(m=i[4]("bettingHistory.title")+"")&&t.set_data(f,m),B&16&&y!==(y=i[4]("bettingHistory.openBets")+"")&&t.set_data(u,y),B&1&&d!==(d=`BettingHistoryButton ${i[5]?"BettingHistoryButtonMobile":""} ${i[0]==="openBets"?"BettingHistoryButtonSelected":""}`)&&t.attr(o,"class",d),B&16&&a!==(a=i[4]("bettingHistory.settledBets")+"")&&t.set_data(b,a),B&1&&h!==(h=`BettingHistoryButton ${i[5]?"BettingHistoryButtonMobile":""} ${i[0]==="settledBets"?"BettingHistoryButtonSelected":""}`)&&t.attr(g,"class",h),B&1&&t.set_custom_element_data(c,"bet-status",i[0]),i[3]==="true"&&i[1]?s||(s=E(),s.c(),s.m(e,M)):s&&(s.d(1),s=null)},i:t.noop,o:t.noop,d(i){i&&t.detach(e),H&&H.d(),s&&s.d(),n[17](null),k=!1,t.run_all(I)}}}function R(n,e,l){let p;t.component_subscribe(n,t.$format,s=>l(4,p=s));let{betstatus:m="openBets"}=e,{lang:f="en"}=e,{selectedBetId:_=null}=e,{clientstyling:r=""}=e,{clientstylingurl:o=""}=e,{mbsource:y}=e,{translationurl:u=""}=e,d="false",w=window.navigator.userAgent,g=t.getDevice(w)!=="PC",a,b;const h=()=>{fetch(u).then(i=>i.json()).then(i=>{Object.keys(i).forEach(B=>{T(B,i[B])})}).catch(i=>{console.log(i)})};Object.entries(C).forEach(([s,i])=>{T(s,i)});const v=s=>{l(0,m=s)},c=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:g},window.location.href)},A=s=>{const{betId:i}=s.detail.params;l(1,_=i),l(3,d="true")},M=s=>{var i;((i=s.data)==null?void 0:i.type)==="ModalClosed"&&l(3,d="false")};t.onMount(()=>(window.addEventListener("message",M,!1),()=>{window.removeEventListener("message",M)}));const S=()=>c(),k=()=>v("openBets"),I=()=>v("settledBets");function H(s){t.binding_callbacks[s?"unshift":"push"](()=>{a=s,l(2,a)})}return n.$$set=s=>{"betstatus"in s&&l(0,m=s.betstatus),"lang"in s&&l(9,f=s.lang),"selectedBetId"in s&&l(1,_=s.selectedBetId),"clientstyling"in s&&l(10,r=s.clientstyling),"clientstylingurl"in s&&l(11,o=s.clientstylingurl),"mbsource"in s&&l(12,y=s.mbsource),"translationurl"in s&&l(13,u=s.translationurl)},n.$$.update=()=>{n.$$.dirty&512&&f&&j(f),n.$$.dirty&1028&&r&&a&&t.setClientStyling(a,r),n.$$.dirty&2052&&o&&a&&t.setClientStylingURL(a,o),n.$$.dirty&4100&&y&&a&&t.setStreamStyling(a,`${y}.Style`,b),n.$$.dirty&8192&&u&&h()},[m,_,a,d,p,g,v,c,A,f,r,o,y,u,S,k,I,H]}class O extends t.SvelteComponent{constructor(e){super(),t.init(this,e,R,L,t.safe_not_equal,{betstatus:0,lang:9,selectedBetId:1,clientstyling:10,clientstylingurl:11,mbsource:12,translationurl:13},P)}get betstatus(){return this.$$.ctx[0]}set betstatus(e){this.$$set({betstatus:e}),t.flush()}get lang(){return this.$$.ctx[9]}set lang(e){this.$$set({lang:e}),t.flush()}get selectedBetId(){return this.$$.ctx[1]}set selectedBetId(e){this.$$set({selectedBetId:e}),t.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get mbsource(){return this.$$.ctx[12]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}get translationurl(){return this.$$.ctx[13]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}}t.create_custom_element(O,{betstatus:{},lang:{},selectedBetId:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{}},[],[],!0);exports.default=O;