@everymatrix/player-account-controller 1.87.27 → 1.87.28

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 (109) hide show
  1. package/components/{GeneralLogout-fKTKcCGJ.js → GeneralLogout-CEm1d9TV.js} +1 -1
  2. package/components/{GeneralLogout-CjFz6GhW.cjs → GeneralLogout-Cx-68AU-.cjs} +1 -1
  3. package/components/{GeneralLogout-B5j_vW4P.js → GeneralLogout-P3tigWsE.js} +1 -1
  4. package/components/{PlayerAccountBettingHistory-CPnTOt06.cjs → PlayerAccountBettingHistory-BTrKyG5c.cjs} +1 -1
  5. package/components/{PlayerAccountBettingHistory-QM3zfoYn.js → PlayerAccountBettingHistory-CumeIegs.js} +1 -1
  6. package/components/{PlayerAccountBettingHistory-CIzi9adW.js → PlayerAccountBettingHistory-V_ZXgT_m.js} +1 -1
  7. package/components/{PlayerAccountBiometrics-DemarL8b.cjs → PlayerAccountBiometrics-is5id3Pu.cjs} +1 -1
  8. package/components/{PlayerAccountBiometrics-DG4UZ7gJ.js → PlayerAccountBiometrics-kZejQke-.js} +2 -2
  9. package/components/{PlayerAccountBiometrics-CsgBvnb7.js → PlayerAccountBiometrics-nvw10pCK.js} +2 -2
  10. package/components/PlayerAccountBiometricsAction-CnzIUbKT.js +434 -0
  11. package/components/PlayerAccountBiometricsAction-DgA-1ZVp.js +451 -0
  12. package/components/PlayerAccountBiometricsAction-KVABAIgM.cjs +1 -0
  13. package/components/{PlayerAccountClosure-B-dMr1Jn.js → PlayerAccountClosure-BRWbN9CL.js} +1 -1
  14. package/components/{PlayerAccountClosure-CVfc0dYJ.js → PlayerAccountClosure-CMHJCKmw.js} +1 -1
  15. package/components/{PlayerAccountClosure-BWvJR3TO.cjs → PlayerAccountClosure-eMDaHm0s.cjs} +1 -1
  16. package/components/{PlayerAccountController-En_hyyNC.cjs → PlayerAccountController-BnmD5Ofx.cjs} +1 -1
  17. package/components/{PlayerAccountController-BAQQQd6f.js → PlayerAccountController-DuWNHRdy.js} +22 -22
  18. package/components/{PlayerAccountController-BLw_7Wxf.js → PlayerAccountController-j-NYynzq.js} +22 -22
  19. package/components/{PlayerAccountGamingLimits-Cow9pdbW.js → PlayerAccountGamingLimits-B4jiOpbe.js} +2 -2
  20. package/components/{PlayerAccountGamingLimits-CyI_jaC4.js → PlayerAccountGamingLimits-CKJ6b9fI.js} +2 -2
  21. package/components/{PlayerAccountGamingLimits-OyM5Opvb.cjs → PlayerAccountGamingLimits-CWozJexi.cjs} +1 -1
  22. package/components/{PlayerAccountGamingLimitsConfirmationModal-BrOtl3Gh.cjs → PlayerAccountGamingLimitsConfirmationModal-D7U-SETU.cjs} +1 -1
  23. package/components/{PlayerAccountGamingLimitsConfirmationModal-BaHYtGpR.js → PlayerAccountGamingLimitsConfirmationModal-DnrFMJHA.js} +1 -1
  24. package/components/{PlayerAccountGamingLimitsConfirmationModal-Dyp4qeUR.js → PlayerAccountGamingLimitsConfirmationModal-kEFYK5ek.js} +1 -1
  25. package/components/{PlayerAccountGamingLimitsGroupEdit-Dq7oKBvT.cjs → PlayerAccountGamingLimitsGroupEdit-Bxzv8N1q.cjs} +1 -1
  26. package/components/{PlayerAccountGamingLimitsGroupEdit-CtjRT5jg.js → PlayerAccountGamingLimitsGroupEdit-DE3NQvEw.js} +5 -5
  27. package/components/{PlayerAccountGamingLimitsGroupEdit-B-jxQbpZ.js → PlayerAccountGamingLimitsGroupEdit-e5InPcEl.js} +5 -5
  28. package/components/{PlayerAccountGamingLimitsHistory2-D2Pv9fHy.cjs → PlayerAccountGamingLimitsHistory2-COzxMqse.cjs} +1 -1
  29. package/components/{PlayerAccountGamingLimitsHistory2-B39ZuccZ.js → PlayerAccountGamingLimitsHistory2-CjyULSw7.js} +1 -1
  30. package/components/{PlayerAccountGamingLimitsHistory2-Bjh88L-r.js → PlayerAccountGamingLimitsHistory2-D77EY8P-.js} +1 -1
  31. package/components/{PlayerAccountGamingLimitsInfoCard-DX-5uUnY.js → PlayerAccountGamingLimitsInfoCard-8dFikYNs.js} +4 -4
  32. package/components/{PlayerAccountGamingLimitsInfoCard-C2iKiolC.cjs → PlayerAccountGamingLimitsInfoCard-BGpnQhkj.cjs} +1 -1
  33. package/components/{PlayerAccountGamingLimitsInfoCard-D_Hn3lLp.js → PlayerAccountGamingLimitsInfoCard-DOiKdkIk.js} +4 -4
  34. package/components/{PlayerAccountGamingLimitsPage2Gm16-De419B1o.cjs → PlayerAccountGamingLimitsPage2Gm16-B-ROLFTB.cjs} +1 -1
  35. package/components/{PlayerAccountGamingLimitsPage2Gm16-Crtu_pde.js → PlayerAccountGamingLimitsPage2Gm16-Bs5pGY8V.js} +1 -1
  36. package/components/{PlayerAccountGamingLimitsPage2Gm16-BXIgZHBA.js → PlayerAccountGamingLimitsPage2Gm16-CmV0jB0D.js} +1 -1
  37. package/components/{PlayerAccountGamingLimitsPopup-Be_S9ZcF.js → PlayerAccountGamingLimitsPopup-C9wKY91L.js} +1 -1
  38. package/components/{PlayerAccountGamingLimitsPopup-CNvTB9c2.cjs → PlayerAccountGamingLimitsPopup-Cpzn3X0n.cjs} +1 -1
  39. package/components/{PlayerAccountGamingLimitsPopup-BLbMRSf_.js → PlayerAccountGamingLimitsPopup-_AnjYuYf.js} +1 -1
  40. package/components/{PlayerAccountGamingLimitsWrapper2-Dzf9XPuV.js → PlayerAccountGamingLimitsWrapper2-DqAnX1Py.js} +3 -3
  41. package/components/{PlayerAccountGamingLimitsWrapper2-De2EL3tm.js → PlayerAccountGamingLimitsWrapper2-Dwknu3Cb.js} +3 -3
  42. package/components/{PlayerAccountGamingLimitsWrapper2-D1UYcvKH.cjs → PlayerAccountGamingLimitsWrapper2-y6bGvy33.cjs} +1 -1
  43. package/components/{PlayerAccountGeneralConfirmationModal-C-pUW7UE.js → PlayerAccountGeneralConfirmationModal-BiBU4e0n.js} +1 -1
  44. package/components/{PlayerAccountGeneralConfirmationModal-D0gnNBxN.js → PlayerAccountGeneralConfirmationModal-DA07qkhd.js} +1 -1
  45. package/components/{PlayerAccountGeneralConfirmationModal-sBWJGJ3j.cjs → PlayerAccountGeneralConfirmationModal-PNfL91mi.cjs} +1 -1
  46. package/components/{PlayerAccountMenu-DNy_Hk32.js → PlayerAccountMenu-BW2VbXTx.js} +2 -2
  47. package/components/{PlayerAccountMenu-5RiJxzF8.cjs → PlayerAccountMenu-CERrQlC7.cjs} +1 -1
  48. package/components/{PlayerAccountMenu-88qusOe1.js → PlayerAccountMenu-C_OETzKF.js} +2 -2
  49. package/components/{PlayerAccountModal-B6JKobGH.js → PlayerAccountModal-CL2SvpaJ.js} +1 -1
  50. package/components/{PlayerAccountModal-DacnysL5.js → PlayerAccountModal-CRzDk0do.js} +1 -1
  51. package/components/{PlayerAccountModal-BdVMgMM0.cjs → PlayerAccountModal-Dv3Yl1K_.cjs} +1 -1
  52. package/components/{PlayerAccountNotifications-Ca-yj1FW.js → PlayerAccountNotifications-BSwGy1iD.js} +1 -1
  53. package/components/{PlayerAccountNotifications-C30B-b67.js → PlayerAccountNotifications-BmE8XpGH.js} +1 -1
  54. package/components/{PlayerAccountNotifications-B8QW73lK.cjs → PlayerAccountNotifications-CevM0zeL.cjs} +1 -1
  55. package/components/{PlayerAccountProductRestriction-DQaf3YS6.js → PlayerAccountProductRestriction-Bnwnb-af.js} +3 -3
  56. package/components/{PlayerAccountProductRestriction-TK3PdIUq.cjs → PlayerAccountProductRestriction-CLH_YtYd.cjs} +1 -1
  57. package/components/{PlayerAccountProductRestriction-DMMlQ5x4.js → PlayerAccountProductRestriction-Cj9ofL_Q.js} +3 -3
  58. package/components/{PlayerAccountReviewFrequency-nChzMifu.js → PlayerAccountReviewFrequency-C8N1VIV5.js} +1 -1
  59. package/components/{PlayerAccountReviewFrequency-BX3lMYXn.js → PlayerAccountReviewFrequency-Cm4mwygx.js} +1 -1
  60. package/components/{PlayerAccountReviewFrequency-DVU5nmS6.cjs → PlayerAccountReviewFrequency-D2YmIGdB.cjs} +1 -1
  61. package/components/{PlayerAccountSelfExclusion-Bcr8vJib.js → PlayerAccountSelfExclusion-C3XJo3op.js} +2 -2
  62. package/components/{PlayerAccountSelfExclusion-CsZr8Rp-.js → PlayerAccountSelfExclusion-CRCAuW_I.js} +2 -2
  63. package/components/{PlayerAccountSelfExclusion-D1g-5SMn.cjs → PlayerAccountSelfExclusion-DIoBP-zp.cjs} +1 -1
  64. package/components/{PlayerAccountTimeout-Dm6G5s24.js → PlayerAccountTimeout-Be13_cTt.js} +3 -3
  65. package/components/{PlayerAccountTimeout-DUK2ndeT.cjs → PlayerAccountTimeout-DEpNYl-t.cjs} +2 -2
  66. package/components/{PlayerAccountTimeout-Hzpth7m_.js → PlayerAccountTimeout-H7G4ySPT.js} +3 -3
  67. package/components/{PlayerAccountTransactionsHistory-TpzDg4nW.js → PlayerAccountTransactionsHistory-BHDgStwb.js} +4 -4
  68. package/components/{PlayerAccountTransactionsHistory-DbcrevKR.js → PlayerAccountTransactionsHistory-CKfnF5YJ.js} +4 -4
  69. package/components/{PlayerAccountTransactionsHistory-aY0Baw7m.cjs → PlayerAccountTransactionsHistory-CgTmptks.cjs} +1 -1
  70. package/components/{PlayerActiveBonuses-BDw7e79b.js → PlayerActiveBonuses-BAevp5YH.js} +2 -2
  71. package/components/{PlayerActiveBonuses-HVGiWNOd.js → PlayerActiveBonuses-DRppY1vB.js} +2 -2
  72. package/components/{PlayerActiveBonuses-8Opx6dzV.cjs → PlayerActiveBonuses-M-vgtJjj.cjs} +1 -1
  73. package/components/{PlayerBonusCard-zjN36qJb.js → PlayerBonusCard-BBq4z62c.js} +2 -2
  74. package/components/{PlayerBonusCard-thh4vUMx.js → PlayerBonusCard-BWZ4o6Nm.js} +2 -2
  75. package/components/{PlayerBonusCard-DC_pKqNw.cjs → PlayerBonusCard-BenCFvw0.cjs} +1 -1
  76. package/components/{PlayerBonusHistory-Dkrv14z8.cjs → PlayerBonusHistory-CKhVhlwo.cjs} +1 -1
  77. package/components/{PlayerBonusHistory-vs9jxJhQ.js → PlayerBonusHistory-D1DkiHxv.js} +2 -2
  78. package/components/{PlayerBonusHistory-BcN0Ya_g.js → PlayerBonusHistory-DJdSfH1n.js} +2 -2
  79. package/components/{PlayerChangePassword-C6mFUw5u.js → PlayerChangePassword-DeoUbAd5.js} +1 -1
  80. package/components/{PlayerChangePassword-C8qYkJCx.js → PlayerChangePassword-OSahUgLo.js} +1 -1
  81. package/components/{PlayerChangePassword-BuJNikhz.cjs → PlayerChangePassword-WUgeBsFa.cjs} +1 -1
  82. package/components/{PlayerDeposit-DadV3-2W.js → PlayerDeposit-Du1nnR1u.js} +1 -1
  83. package/components/{PlayerDeposit-DemYa-nv.cjs → PlayerDeposit-Yd04zzeQ.cjs} +1 -1
  84. package/components/{PlayerDeposit-BJrNyzPW.js → PlayerDeposit-abPtD5hO.js} +1 -1
  85. package/components/{PlayerGamingHistory-D2s0Otth.cjs → PlayerGamingHistory-DyYqzcQv.cjs} +1 -1
  86. package/components/{PlayerGamingHistory-D3WjUHop.js → PlayerGamingHistory-PBFc5gs-.js} +3 -3
  87. package/components/{PlayerGamingHistory-BMEQFFwn.js → PlayerGamingHistory-XBIUqV4O.js} +3 -3
  88. package/components/{PlayerPendingWithdrawals-B7PgOP7F.js → PlayerPendingWithdrawals-6W2QUcnc.js} +1 -1
  89. package/components/{PlayerPendingWithdrawals-CY3g0w83.cjs → PlayerPendingWithdrawals-7YfYYSbo.cjs} +1 -1
  90. package/components/{PlayerPendingWithdrawals-CiS2VIJm.js → PlayerPendingWithdrawals-Dvufib_U.js} +1 -1
  91. package/components/{PlayerProfileInfo-B6L0INWX.cjs → PlayerProfileInfo-BTa1BRn8.cjs} +2 -2
  92. package/components/{PlayerProfileInfo-COpic9Sl.js → PlayerProfileInfo-BmqBm5DP.js} +3 -3
  93. package/components/{PlayerProfileInfo-DGwH1Xbb.js → PlayerProfileInfo-DtV65Pxq.js} +3 -3
  94. package/components/{PlayerRealityCheck-CXPnhtbt.cjs → PlayerRealityCheck-CqGAN5_L.cjs} +1 -1
  95. package/components/{PlayerRealityCheck-DPhiL4g2.js → PlayerRealityCheck-CziErfd6.js} +1 -1
  96. package/components/{PlayerRealityCheck-CRqlzifK.js → PlayerRealityCheck-lVnY8s1I.js} +1 -1
  97. package/components/{PlayerTransactionHistory-k-3KbRna.cjs → PlayerTransactionHistory-D5WIm27W.cjs} +1 -1
  98. package/components/{PlayerTransactionHistory-CblCTe3C.js → PlayerTransactionHistory-DZmR7K3t.js} +1 -1
  99. package/components/{PlayerTransactionHistory-CJVcCHMB.js → PlayerTransactionHistory-WpDMStju.js} +1 -1
  100. package/components/{PlayerWithdrawal-gngFCPKe.js → PlayerWithdrawal-BctNJ79f.js} +1 -1
  101. package/components/{PlayerWithdrawal-DDhF1YFQ.js → PlayerWithdrawal-BgFPB_ak.js} +1 -1
  102. package/components/{PlayerWithdrawal-pcXdzQpS.cjs → PlayerWithdrawal-rv6DLOa1.cjs} +1 -1
  103. package/es2015/player-account-controller.cjs +1 -1
  104. package/es2015/player-account-controller.js +1 -1
  105. package/esnext/player-account-controller.js +1 -1
  106. package/package.json +1 -1
  107. package/components/PlayerAccountBiometricsAction-BsW0OHhf.cjs +0 -1
  108. package/components/PlayerAccountBiometricsAction-D0v5Q9lm.js +0 -386
  109. package/components/PlayerAccountBiometricsAction-SyauJZ2U.js +0 -403
@@ -1,4 +1,4 @@
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-BAQQQd6f.js";
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-DuWNHRdy.js";
2
2
  const it = (e, t = {}) => {
3
3
  const o = new CustomEvent("track-custom-event", {
4
4
  detail: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./PlayerAccountController-En_hyyNC.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-BnmD5Ofx.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,4 +1,4 @@
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-BLw_7Wxf.js";
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-j-NYynzq.js";
2
2
  const it = (e, t = {}) => {
3
3
  const o = new CustomEvent("track-custom-event", {
4
4
  detail: {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./PlayerAccountController-En_hyyNC.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-BnmD5Ofx.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,4 +1,4 @@
1
- import { a as U, $ as V, S as G, i as Z, s as F, f as k, b as J, n as C, d as q, w as K, u as D, t as o, r as v, e as z, p as l, x as N, g as M, q as A, v as L, N as Q, h as X, j as Y, o as $, y as E, k as tt, B as et, C as st, D as it, c as nt, A as lt } from "./PlayerAccountController-BLw_7Wxf.js";
1
+ import { a as U, $ as V, S as G, i as Z, s as F, f as k, b as J, n as C, d as q, w as K, u as D, t as o, r as v, e as z, p as l, x as N, g as M, q as A, v as L, N as Q, h as X, j as Y, o as $, y as E, k as tt, B as et, C as st, D as it, c as nt, A as lt } from "./PlayerAccountController-j-NYynzq.js";
2
2
  function R(s, t) {
3
3
  U(s, t);
4
4
  }
@@ -1,4 +1,4 @@
1
- import { a as U, $ as V, S as G, i as Z, s as F, f as k, b as J, n as C, d as W, v as K, t as D, r as o, q as v, c as q, m as l, w as N, e as M, p as A, u as L, N as Q, g as X, h as Y, o as $, x as E, j as tt, z as et, A as st, B as it, C as nt, D as lt } from "./PlayerAccountController-BAQQQd6f.js";
1
+ import { a as U, $ as V, S as G, i as Z, s as F, f as k, b as J, n as C, d as W, v as K, t as D, r as o, q as v, c as q, m as l, w as N, e as M, p as A, u as L, N as Q, g as X, h as Y, o as $, x as E, j as tt, z as et, A as st, B as it, C as nt, D as lt } from "./PlayerAccountController-DuWNHRdy.js";
2
2
  function R(s, t) {
3
3
  U(s, t);
4
4
  }
@@ -1 +1 @@
1
- "use strict";const t=require("./PlayerAccountController-En_hyyNC.cjs");function P(i,e){t.addMessages(i,e)}function D(i){t.$locale.set(i)}const E={en:{titleBiometrics:"Biometrics Authentication",descriptionParagraph1:"Use biometric login with your fingerprint or face for faster and easier access to your account.",descriptionParagraph2:"You can turn this feature on and off at any time",btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics"},"zh-hk":{titleBiometrics:"Biometrics Authentication",descriptionParagraph1:"Use biometric login with your fingerprint or face for faster and easier access to your account.",descriptionParagraph2:"You can turn this feature on and off at any time",btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics"},fr:{titleBiometrics:"Biometrics Authentication",descriptionParagraph1:"Use biometric login with your fingerprint or face for faster and easier access to your account.",descriptionParagraph2:"You can turn this feature on and off at any time",btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics"},tr:{titleBiometrics:"Biometrics Authentication",descriptionParagraph1:"Use biometric login with your fingerprint or face for faster and easier access to your account.",descriptionParagraph2:"You can turn this feature on and off at any time",btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics"},ro:{titleBiometrics:"Biometrics Authentication",descriptionParagraph1:"Use biometric login with your fingerprint or face for faster and easier access to your account.",descriptionParagraph2:"You can turn this feature on and off at any time",btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics"},es:{titleBiometrics:"Biometrics Authentication",descriptionParagraph1:"Use biometric login with your fingerprint or face for faster and easier access to your account.",descriptionParagraph2:"You can turn this feature on and off at any time",btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics"},pt:{titleBiometrics:"Biometrics Authentication",descriptionParagraph1:"Use biometric login with your fingerprint or face for faster and easier access to your account.",descriptionParagraph2:"You can turn this feature on and off at any time",btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics"},hr:{titleBiometrics:"Biometrijska autentifikacija",descriptionParagraph1:"Koristite biometrijsku prijavu otiskom prsta ili licem za brži i jednostavniji pristup svom računu.",descriptionParagraph2:"Ovu značajku možete uključiti i isključiti u bilo kojem trenutku",btnEnableBiometrics:"Omogući biometriju",btnDisableBiometrics:"Onemogući biometriju"},"pt-br":{titleBiometrics:"Biometrics Authentication",descriptionParagraph1:"Use biometric login with your fingerprint or face for faster and easier access to your account.",descriptionParagraph2:"You can turn this feature on and off at any time",btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics"},"es-mx":{titleBiometrics:"Biometrics Authentication",descriptionParagraph1:"Use biometric login with your fingerprint or face for faster and easier access to your account.",descriptionParagraph2:"You can turn this feature on and off at any time",btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics"},"en-us":{titleBiometrics:"Biometrics Authentication",descriptionParagraph1:"Use biometric login with your fingerprint or face for faster and easier access to your account.",descriptionParagraph2:"You can turn this feature on and off at any time",btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics"}};if(typeof window!="undefined"){let i=function(e){return function(...n){try{return e.apply(this,n)}catch(c){if(c instanceof DOMException&&c.message.includes("has already been used with this registry")||c.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw c}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountBiometricsAction-BsW0OHhf.cjs")).then(({default:e})=>{!customElements.get("player-account-biometrics-action")&&customElements.define("player-account-biometrics-action",e.element)})}const M=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));function j(i){t.append_styles(i,"svelte-1fepl4m",".BiometricsWrapper{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));padding:50px;max-width:760px}.BiometricsWrapper.BiometricsWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:20px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BiometricsTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.BiometricsTitleMobile{font-size:16px}.BiometricsTitleNone{display:none}.BiometricsDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px}.BiometricsDescription.BiometricsDescriptionMobile{font-size:12px;line-height:18px}.BiometricsActionButtons{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%}.BiometricsActionButtons.BiometricsActionButtonsMobile{width:100%;grid-template-columns:1fr}.BiometricsActionButtons.BiometricsActionButtonsMobile .BiometricsToggle{height:40px;font-size:12px}")}function k(i){let e,n,c,m,p,u,f,a,s,d,h=i[6]("titleBiometrics")+"",B,y,_;return{c(){e=t.element("div"),n=t.svg_element("svg"),c=t.svg_element("defs"),m=t.svg_element("style"),p=t.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),u=t.svg_element("g"),f=t.svg_element("g"),a=t.svg_element("path"),s=t.space(),d=t.element("h2"),B=t.text(h),t.attr(a,"class","aaa"),t.attr(a,"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(a,"transform","translate(15 15) rotate(180)"),t.attr(f,"transform","translate(20 158)"),t.attr(u,"transform","translate(-20 -158)"),t.attr(n,"xmlns","http://www.w3.org/2000/svg"),t.attr(n,"width","15"),t.attr(n,"height","15"),t.attr(n,"viewBox","0 0 15 15"),t.attr(d,"class","BiometricsTitleMobile"),t.attr(d,"part","BiometricsTitleMobile"),t.attr(e,"class","MenuReturnButton"),t.attr(e,"part","MenuReturnButton")},m(g,w){t.insert(g,e,w),t.append(e,n),t.append(n,c),t.append(c,m),t.append(m,p),t.append(n,u),t.append(u,f),t.append(f,a),t.append(e,s),t.append(e,d),t.append(d,B),y||(_=t.listen(e,"click",i[9]),y=!0)},p(g,w){w&64&&h!==(h=g[6]("titleBiometrics")+"")&&t.set_data(B,h)},d(g){g&&t.detach(e),y=!1,_()}}}function S(i){let e,n,c,m,p=i[6]("titleBiometrics")+"",u,f,a,s,d=i[6]("descriptionParagraph1")+"",h,B,y,_=i[6]("descriptionParagraph2")+"",g,w,v,r,l=i[7]&&k(i);return{c(){e=t.element("div"),n=t.element("div"),l&&l.c(),c=t.space(),m=t.element("h2"),u=t.text(p),f=t.space(),a=t.element("div"),s=t.element("p"),h=t.text(d),B=t.space(),y=t.element("p"),g=t.text(_),w=t.space(),v=t.element("div"),r=t.element("player-account-biometrics-action"),t.attr(m,"class","BiometricsTitle "+(i[7]?"BiometricsTitleNone":"")),t.attr(a,"class","BiometricsDescription "+(i[7]?"BiometricsDescriptionMobile":"")),t.set_custom_element_data(r,"lang",i[0]),t.set_custom_element_data(r,"translationurl",i[4]),t.set_custom_element_data(r,"clientstyling",i[1]),t.set_custom_element_data(r,"clientstylingurl",i[2]),t.set_custom_element_data(r,"mbsource",i[3]),t.attr(v,"class","BiometricsActionButtons "+(i[7]?"BiometricsActionButtonsMobile":"")),t.attr(n,"class","BiometricsWrapper "+(i[7]?"BiometricsWrapperMobile":""))},m(o,b){t.insert(o,e,b),t.append(e,n),l&&l.m(n,null),t.append(n,c),t.append(n,m),t.append(m,u),t.append(n,f),t.append(n,a),t.append(a,s),t.append(s,h),t.append(a,B),t.append(a,y),t.append(y,g),t.append(n,w),t.append(n,v),t.append(v,r),i[10](e)},p(o,[b]){o[7]&&l.p(o,b),b&64&&p!==(p=o[6]("titleBiometrics")+"")&&t.set_data(u,p),b&64&&d!==(d=o[6]("descriptionParagraph1")+"")&&t.set_data(h,d),b&64&&_!==(_=o[6]("descriptionParagraph2")+"")&&t.set_data(g,_),b&1&&t.set_custom_element_data(r,"lang",o[0]),b&16&&t.set_custom_element_data(r,"translationurl",o[4]),b&2&&t.set_custom_element_data(r,"clientstyling",o[1]),b&4&&t.set_custom_element_data(r,"clientstylingurl",o[2]),b&8&&t.set_custom_element_data(r,"mbsource",o[3])},i:t.noop,o:t.noop,d(o){o&&t.detach(e),l&&l.d(),i[10](null)}}}function T(i,e,n){let c;t.component_subscribe(i,t.$format,r=>n(6,c=r));let{lang:m="en"}=e,{clientstyling:p=""}=e,{clientstylingurl:u=""}=e,{mbsource:f}=e,{translationurl:a=""}=e,s,d,h=window.navigator.userAgent,B=t.getDevice(h)!=="PC";const y=()=>{fetch(a).then(l=>l.json()).then(l=>{Object.keys(l).forEach(o=>{P(o,l[o])})}).catch(l=>{console.log(l)})};Object.keys(E).forEach(r=>{P(r,E[r])});const _=()=>{D(m)},g=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:B},window.location.href)};t.onMount(()=>()=>{});const w=()=>g();function v(r){t.binding_callbacks[r?"unshift":"push"](()=>{s=r,n(5,s)})}return i.$$set=r=>{"lang"in r&&n(0,m=r.lang),"clientstyling"in r&&n(1,p=r.clientstyling),"clientstylingurl"in r&&n(2,u=r.clientstylingurl),"mbsource"in r&&n(3,f=r.mbsource),"translationurl"in r&&n(4,a=r.translationurl)},i.$$.update=()=>{i.$$.dirty&1&&m&&_(),i.$$.dirty&34&&p&&s&&t.setClientStyling(s,p),i.$$.dirty&36&&u&&s&&t.setClientStylingURL(s,u),i.$$.dirty&40&&f&&s&&t.setStreamStyling(s,`${f}.Style`,d),i.$$.dirty&16&&a&&y()},[m,p,u,f,a,s,c,B,g,w,v]}class A extends t.SvelteComponent{constructor(e){super(),t.init(this,e,T,S,t.safe_not_equal,{lang:0,clientstyling:1,clientstylingurl:2,mbsource:3,translationurl:4},j)}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),t.flush()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get mbsource(){return this.$$.ctx[3]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}get translationurl(){return this.$$.ctx[4]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}}t.create_custom_element(A,{lang:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{}},[],[],!0);const U=Object.freeze(Object.defineProperty({__proto__:null,default:A},Symbol.toStringTag,{value:"Module"}));exports.PlayerAccountBiometrics_ce=U;exports.index=M;
1
+ "use strict";const t=require("./PlayerAccountController-BnmD5Ofx.cjs");function P(i,e){t.addMessages(i,e)}function D(i){t.$locale.set(i)}const E={en:{titleBiometrics:"Biometrics Authentication",descriptionParagraph1:"Use biometric login with your fingerprint or face for faster and easier access to your account.",descriptionParagraph2:"You can turn this feature on and off at any time",btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics"},"zh-hk":{titleBiometrics:"Biometrics Authentication",descriptionParagraph1:"Use biometric login with your fingerprint or face for faster and easier access to your account.",descriptionParagraph2:"You can turn this feature on and off at any time",btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics"},fr:{titleBiometrics:"Biometrics Authentication",descriptionParagraph1:"Use biometric login with your fingerprint or face for faster and easier access to your account.",descriptionParagraph2:"You can turn this feature on and off at any time",btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics"},tr:{titleBiometrics:"Biometrics Authentication",descriptionParagraph1:"Use biometric login with your fingerprint or face for faster and easier access to your account.",descriptionParagraph2:"You can turn this feature on and off at any time",btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics"},ro:{titleBiometrics:"Biometrics Authentication",descriptionParagraph1:"Use biometric login with your fingerprint or face for faster and easier access to your account.",descriptionParagraph2:"You can turn this feature on and off at any time",btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics"},es:{titleBiometrics:"Biometrics Authentication",descriptionParagraph1:"Use biometric login with your fingerprint or face for faster and easier access to your account.",descriptionParagraph2:"You can turn this feature on and off at any time",btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics"},pt:{titleBiometrics:"Biometrics Authentication",descriptionParagraph1:"Use biometric login with your fingerprint or face for faster and easier access to your account.",descriptionParagraph2:"You can turn this feature on and off at any time",btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics"},hr:{titleBiometrics:"Biometrijska autentifikacija",descriptionParagraph1:"Koristite biometrijsku prijavu otiskom prsta ili licem za brži i jednostavniji pristup svom računu.",descriptionParagraph2:"Ovu značajku možete uključiti i isključiti u bilo kojem trenutku",btnEnableBiometrics:"Omogući biometriju",btnDisableBiometrics:"Onemogući biometriju"},"pt-br":{titleBiometrics:"Biometrics Authentication",descriptionParagraph1:"Use biometric login with your fingerprint or face for faster and easier access to your account.",descriptionParagraph2:"You can turn this feature on and off at any time",btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics"},"es-mx":{titleBiometrics:"Biometrics Authentication",descriptionParagraph1:"Use biometric login with your fingerprint or face for faster and easier access to your account.",descriptionParagraph2:"You can turn this feature on and off at any time",btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics"},"en-us":{titleBiometrics:"Biometrics Authentication",descriptionParagraph1:"Use biometric login with your fingerprint or face for faster and easier access to your account.",descriptionParagraph2:"You can turn this feature on and off at any time",btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics"}};if(typeof window!="undefined"){let i=function(e){return function(...n){try{return e.apply(this,n)}catch(c){if(c instanceof DOMException&&c.message.includes("has already been used with this registry")||c.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw c}}};customElements.define=i(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountBiometricsAction-KVABAIgM.cjs")).then(({default:e})=>{!customElements.get("player-account-biometrics-action")&&customElements.define("player-account-biometrics-action",e.element)})}const M=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));function j(i){t.append_styles(i,"svelte-1fepl4m",".BiometricsWrapper{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));padding:50px;max-width:760px}.BiometricsWrapper.BiometricsWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:20px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BiometricsTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.BiometricsTitleMobile{font-size:16px}.BiometricsTitleNone{display:none}.BiometricsDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px}.BiometricsDescription.BiometricsDescriptionMobile{font-size:12px;line-height:18px}.BiometricsActionButtons{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%}.BiometricsActionButtons.BiometricsActionButtonsMobile{width:100%;grid-template-columns:1fr}.BiometricsActionButtons.BiometricsActionButtonsMobile .BiometricsToggle{height:40px;font-size:12px}")}function k(i){let e,n,c,m,p,u,f,a,s,d,h=i[6]("titleBiometrics")+"",B,y,_;return{c(){e=t.element("div"),n=t.svg_element("svg"),c=t.svg_element("defs"),m=t.svg_element("style"),p=t.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),u=t.svg_element("g"),f=t.svg_element("g"),a=t.svg_element("path"),s=t.space(),d=t.element("h2"),B=t.text(h),t.attr(a,"class","aaa"),t.attr(a,"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(a,"transform","translate(15 15) rotate(180)"),t.attr(f,"transform","translate(20 158)"),t.attr(u,"transform","translate(-20 -158)"),t.attr(n,"xmlns","http://www.w3.org/2000/svg"),t.attr(n,"width","15"),t.attr(n,"height","15"),t.attr(n,"viewBox","0 0 15 15"),t.attr(d,"class","BiometricsTitleMobile"),t.attr(d,"part","BiometricsTitleMobile"),t.attr(e,"class","MenuReturnButton"),t.attr(e,"part","MenuReturnButton")},m(g,w){t.insert(g,e,w),t.append(e,n),t.append(n,c),t.append(c,m),t.append(m,p),t.append(n,u),t.append(u,f),t.append(f,a),t.append(e,s),t.append(e,d),t.append(d,B),y||(_=t.listen(e,"click",i[9]),y=!0)},p(g,w){w&64&&h!==(h=g[6]("titleBiometrics")+"")&&t.set_data(B,h)},d(g){g&&t.detach(e),y=!1,_()}}}function S(i){let e,n,c,m,p=i[6]("titleBiometrics")+"",u,f,a,s,d=i[6]("descriptionParagraph1")+"",h,B,y,_=i[6]("descriptionParagraph2")+"",g,w,v,r,l=i[7]&&k(i);return{c(){e=t.element("div"),n=t.element("div"),l&&l.c(),c=t.space(),m=t.element("h2"),u=t.text(p),f=t.space(),a=t.element("div"),s=t.element("p"),h=t.text(d),B=t.space(),y=t.element("p"),g=t.text(_),w=t.space(),v=t.element("div"),r=t.element("player-account-biometrics-action"),t.attr(m,"class","BiometricsTitle "+(i[7]?"BiometricsTitleNone":"")),t.attr(a,"class","BiometricsDescription "+(i[7]?"BiometricsDescriptionMobile":"")),t.set_custom_element_data(r,"lang",i[0]),t.set_custom_element_data(r,"translationurl",i[4]),t.set_custom_element_data(r,"clientstyling",i[1]),t.set_custom_element_data(r,"clientstylingurl",i[2]),t.set_custom_element_data(r,"mbsource",i[3]),t.attr(v,"class","BiometricsActionButtons "+(i[7]?"BiometricsActionButtonsMobile":"")),t.attr(n,"class","BiometricsWrapper "+(i[7]?"BiometricsWrapperMobile":""))},m(o,b){t.insert(o,e,b),t.append(e,n),l&&l.m(n,null),t.append(n,c),t.append(n,m),t.append(m,u),t.append(n,f),t.append(n,a),t.append(a,s),t.append(s,h),t.append(a,B),t.append(a,y),t.append(y,g),t.append(n,w),t.append(n,v),t.append(v,r),i[10](e)},p(o,[b]){o[7]&&l.p(o,b),b&64&&p!==(p=o[6]("titleBiometrics")+"")&&t.set_data(u,p),b&64&&d!==(d=o[6]("descriptionParagraph1")+"")&&t.set_data(h,d),b&64&&_!==(_=o[6]("descriptionParagraph2")+"")&&t.set_data(g,_),b&1&&t.set_custom_element_data(r,"lang",o[0]),b&16&&t.set_custom_element_data(r,"translationurl",o[4]),b&2&&t.set_custom_element_data(r,"clientstyling",o[1]),b&4&&t.set_custom_element_data(r,"clientstylingurl",o[2]),b&8&&t.set_custom_element_data(r,"mbsource",o[3])},i:t.noop,o:t.noop,d(o){o&&t.detach(e),l&&l.d(),i[10](null)}}}function T(i,e,n){let c;t.component_subscribe(i,t.$format,r=>n(6,c=r));let{lang:m="en"}=e,{clientstyling:p=""}=e,{clientstylingurl:u=""}=e,{mbsource:f}=e,{translationurl:a=""}=e,s,d,h=window.navigator.userAgent,B=t.getDevice(h)!=="PC";const y=()=>{fetch(a).then(l=>l.json()).then(l=>{Object.keys(l).forEach(o=>{P(o,l[o])})}).catch(l=>{console.log(l)})};Object.keys(E).forEach(r=>{P(r,E[r])});const _=()=>{D(m)},g=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:B},window.location.href)};t.onMount(()=>()=>{});const w=()=>g();function v(r){t.binding_callbacks[r?"unshift":"push"](()=>{s=r,n(5,s)})}return i.$$set=r=>{"lang"in r&&n(0,m=r.lang),"clientstyling"in r&&n(1,p=r.clientstyling),"clientstylingurl"in r&&n(2,u=r.clientstylingurl),"mbsource"in r&&n(3,f=r.mbsource),"translationurl"in r&&n(4,a=r.translationurl)},i.$$.update=()=>{i.$$.dirty&1&&m&&_(),i.$$.dirty&34&&p&&s&&t.setClientStyling(s,p),i.$$.dirty&36&&u&&s&&t.setClientStylingURL(s,u),i.$$.dirty&40&&f&&s&&t.setStreamStyling(s,`${f}.Style`,d),i.$$.dirty&16&&a&&y()},[m,p,u,f,a,s,c,B,g,w,v]}class A extends t.SvelteComponent{constructor(e){super(),t.init(this,e,T,S,t.safe_not_equal,{lang:0,clientstyling:1,clientstylingurl:2,mbsource:3,translationurl:4},j)}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),t.flush()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get mbsource(){return this.$$.ctx[3]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}get translationurl(){return this.$$.ctx[4]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}}t.create_custom_element(A,{lang:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{}},[],[],!0);const U=Object.freeze(Object.defineProperty({__proto__:null,default:A},Symbol.toStringTag,{value:"Module"}));exports.PlayerAccountBiometrics_ce=U;exports.index=M;
@@ -1,4 +1,4 @@
1
- import { a as x, $ as R, S as L, i as N, s as W, f as M, b as q, n as T, d as Y, u as S, r as y, e as z, p as n, g as w, q as j, v as k, t as s, h as H, j as I, o as K, x as V, y as A, k as Z, B as F, C as G, D as J, c as Q, A as X } from "./PlayerAccountController-BLw_7Wxf.js";
1
+ import { a as x, $ as R, S as L, i as N, s as W, f as M, b as q, n as T, d as Y, u as S, r as y, e as z, p as n, g as w, q as j, v as k, t as s, h as H, j as I, o as K, x as V, y as A, k as Z, B as F, C as G, D as J, c as Q, A as X } from "./PlayerAccountController-j-NYynzq.js";
2
2
  function U(e, t) {
3
3
  x(e, t);
4
4
  }
@@ -96,7 +96,7 @@ if (typeof window < "u") {
96
96
  }
97
97
  };
98
98
  };
99
- customElements.define = e(customElements.define), import("./PlayerAccountBiometricsAction-D0v5Q9lm.js").then(({ default: t }) => {
99
+ customElements.define = e(customElements.define), import("./PlayerAccountBiometricsAction-CnzIUbKT.js").then(({ default: t }) => {
100
100
  !customElements.get("player-account-biometrics-action") && customElements.define("player-account-biometrics-action", t.element);
101
101
  });
102
102
  }
@@ -1,4 +1,4 @@
1
- import { a as x, $ as R, S as L, i as N, s as W, f as M, b as q, n as T, d as z, t as S, q as y, c as Y, m as n, e as w, p as j, u as k, r as s, g as H, h as I, o as K, w as V, x as A, j as Z, z as F, A as G, B as J, C as Q, D as X } from "./PlayerAccountController-BAQQQd6f.js";
1
+ import { a as x, $ as R, S as L, i as N, s as W, f as M, b as q, n as T, d as z, t as S, q as y, c as Y, m as n, e as w, p as j, u as k, r as s, g as H, h as I, o as K, w as V, x as A, j as Z, z as F, A as G, B as J, C as Q, D as X } from "./PlayerAccountController-DuWNHRdy.js";
2
2
  function U(e, t) {
3
3
  x(e, t);
4
4
  }
@@ -96,7 +96,7 @@ if (typeof window != "undefined") {
96
96
  }
97
97
  };
98
98
  };
99
- customElements.define = e(customElements.define), import("./PlayerAccountBiometricsAction-SyauJZ2U.js").then(({ default: t }) => {
99
+ customElements.define = e(customElements.define), import("./PlayerAccountBiometricsAction-DgA-1ZVp.js").then(({ default: t }) => {
100
100
  !customElements.get("player-account-biometrics-action") && customElements.define("player-account-biometrics-action", t.element);
101
101
  });
102
102
  }
@@ -0,0 +1,434 @@
1
+ import { a as W, $ as G, S as J, i as Q, s as V, f as u, b as Y, n as R, d as k, e as E, O as Z, h as $, o as ee, g as w, k as ie, u as te, p as C, x as X, v as se, t as S, N as f, B as ne, C as oe, D as ae, c as re, A as ce } from "./PlayerAccountController-j-NYynzq.js";
2
+ function le(t, e) {
3
+ W(t, e);
4
+ }
5
+ function be(t) {
6
+ G.set(t);
7
+ }
8
+ const me = {
9
+ en: {
10
+ btnEnableBiometrics: "Enable biometrics",
11
+ btnDisableBiometrics: "Disable biometrics",
12
+ successEnableBiometrics: "Biometric authentication enabled.",
13
+ successDisableBiometrics: "Biometric authentication disabled.",
14
+ errorMessage: "Biometrics update failed"
15
+ },
16
+ "zh-hk": {
17
+ btnEnableBiometrics: "Enable biometrics",
18
+ btnDisableBiometrics: "Disable biometrics",
19
+ successEnableBiometrics: "Biometric authentication enabled.",
20
+ successDisableBiometrics: "Biometric authentication disabled.",
21
+ errorMessage: "Biometrics update failed"
22
+ },
23
+ fr: {
24
+ btnEnableBiometrics: "Enable biometrics",
25
+ btnDisableBiometrics: "Disable biometrics",
26
+ successEnableBiometrics: "Biometric authentication enabled.",
27
+ successDisableBiometrics: "Biometric authentication disabled.",
28
+ errorMessage: "Biometrics update failed"
29
+ },
30
+ tr: {
31
+ btnEnableBiometrics: "Enable biometrics",
32
+ btnDisableBiometrics: "Disable biometrics",
33
+ successEnableBiometrics: "Biometric authentication enabled.",
34
+ successDisableBiometrics: "Biometric authentication disabled.",
35
+ errorMessage: "Biometrics update failed"
36
+ },
37
+ ro: {
38
+ btnEnableBiometrics: "Enable biometrics",
39
+ btnDisableBiometrics: "Disable biometrics",
40
+ successEnableBiometrics: "Biometric authentication enabled.",
41
+ successDisableBiometrics: "Biometric authentication disabled.",
42
+ errorMessage: "Biometrics update failed"
43
+ },
44
+ es: {
45
+ btnEnableBiometrics: "Enable biometrics",
46
+ btnDisableBiometrics: "Disable biometrics",
47
+ successEnableBiometrics: "Biometric authentication enabled.",
48
+ successDisableBiometrics: "Biometric authentication disabled.",
49
+ errorMessage: "Biometrics update failed"
50
+ },
51
+ pt: {
52
+ btnEnableBiometrics: "Enable biometrics",
53
+ btnDisableBiometrics: "Disable biometrics",
54
+ successEnableBiometrics: "Biometric authentication enabled.",
55
+ successDisableBiometrics: "Biometric authentication disabled.",
56
+ errorMessage: "Biometrics update failed"
57
+ },
58
+ hr: {
59
+ btnEnableBiometrics: "Omogući biometriju",
60
+ btnDisableBiometrics: "Onemogući biometriju",
61
+ successEnableBiometrics: "Biometric authentication enabled.",
62
+ successDisableBiometrics: "Biometric authentication disabled.",
63
+ errorMessage: "Biometrics update failed"
64
+ },
65
+ "pt-br": {
66
+ btnEnableBiometrics: "Enable biometrics",
67
+ btnDisableBiometrics: "Disable biometrics",
68
+ successEnableBiometrics: "Biometric authentication enabled.",
69
+ successDisableBiometrics: "Biometric authentication disabled.",
70
+ errorMessage: "Biometrics update failed"
71
+ },
72
+ "es-mx": {
73
+ btnEnableBiometrics: "Enable biometrics",
74
+ btnDisableBiometrics: "Disable biometrics",
75
+ successEnableBiometrics: "Biometric authentication enabled.",
76
+ successDisableBiometrics: "Biometric authentication disabled.",
77
+ errorMessage: "Biometrics update failed"
78
+ },
79
+ "en-us": {
80
+ btnEnableBiometrics: "Enable biometrics",
81
+ btnDisableBiometrics: "Disable biometrics",
82
+ successEnableBiometrics: "Biometric authentication enabled.",
83
+ successDisableBiometrics: "Biometric authentication disabled.",
84
+ errorMessage: "Biometrics update failed"
85
+ }
86
+ };
87
+ function ue(t, e, i) {
88
+ return window.emMessageBus && (e = window.emMessageBus.subscribe(t, i)), e;
89
+ }
90
+ function de(t) {
91
+ Y(t, "svelte-4r3z7g", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.toggle-content{display:flex;flex-direction:row;align-items:center;justify-content:center;background-color:transparent;border:none;border-radius:20px;cursor:pointer;gap:10px}.toggle-content:disabled{cursor:not-allowed}.toggle-content .skip-switch{display:inline-flex;align-items:center;position:relative;height:20px;vertical-align:middle;transition:opacity 0.2s}.toggle-content .skip-switch.disabled{opacity:0.5;cursor:not-allowed;pointer-events:none}.toggle-content .skip-switch.checked .skip-switch-core{border-color:var(--emw--color-primary, #22b04e);background:var(--emw--color-primary, #22b04e)}.toggle-content .skip-switch.checked .skip-switch-core::after{transform:translateX(14px)}.toggle-content .skip-switch .skip-switch-input{position:absolute;width:0;height:0;opacity:0;margin:0}.toggle-content .skip-switch .skip-switch-core{width:34px;height:20px;border-radius:20px;border:1px solid var(--emw--color-gray-300, #ababab);background:var(--emw--color-gray-300, #ababab);position:relative;cursor:pointer;transition:background-color 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s cubic-bezier(0.22, 1, 0.36, 1)}.toggle-content .skip-switch .skip-switch-core::after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;background:#fff;border-radius:50%;transform:translateX(0);transition:transform 0.25s cubic-bezier(0.22, 1, 0.36, 1)}.skip-switch.shake{animation:shake 0.4s ease}@keyframes shake{0%{transform:translateX(0)}20%{transform:translateX(-3px)}40%{transform:translateX(3px)}60%{transform:translateX(-3px)}80%{transform:translateX(3px)}100%{transform:translateX(0)}}.BiometricsToggle{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));cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.BiometricsToggle:disabled{opacity:0.6;cursor:not-allowed}');
92
+ }
93
+ function z(t) {
94
+ let e;
95
+ function i(c, a) {
96
+ if (
97
+ /*mode*/
98
+ c[1] === "button"
99
+ )
100
+ return fe;
101
+ if (
102
+ /*mode*/
103
+ c[1] === "switch"
104
+ )
105
+ return ge;
106
+ }
107
+ let o = i(t), s = o && o(t);
108
+ return {
109
+ c() {
110
+ e = w("div"), s && s.c();
111
+ },
112
+ m(c, a) {
113
+ E(c, e, a), s && s.m(e, null), t[17](e);
114
+ },
115
+ p(c, a) {
116
+ o === (o = i(c)) && s ? s.p(c, a) : (s && s.d(1), s = o && o(c), s && (s.c(), s.m(e, null)));
117
+ },
118
+ d(c) {
119
+ c && k(e), s && s.d(), t[17](null);
120
+ }
121
+ };
122
+ }
123
+ function ge(t) {
124
+ let e, i, o, s, c;
125
+ return {
126
+ c() {
127
+ e = w("button"), i = w("div"), i.innerHTML = '<input type="checkbox" class="skip-switch-input"/> <span class="skip-switch-core"></span>', S(i, "class", "skip-switch"), f(
128
+ i,
129
+ "checked",
130
+ /*biometricsEnabled*/
131
+ t[4]
132
+ ), f(
133
+ i,
134
+ "disabled",
135
+ /*isUpdatingBiometrics*/
136
+ t[5] || /*isLoading*/
137
+ t[2]
138
+ ), f(
139
+ i,
140
+ "shake",
141
+ /*shake*/
142
+ t[6]
143
+ ), S(e, "class", "toggle-content"), e.disabled = o = /*isUpdatingBiometrics*/
144
+ t[5] || /*isLoading*/
145
+ t[2];
146
+ },
147
+ m(a, r) {
148
+ E(a, e, r), C(e, i), s || (c = X(
149
+ e,
150
+ "click",
151
+ /*toggleBiometrics*/
152
+ t[8]
153
+ ), s = !0);
154
+ },
155
+ p(a, r) {
156
+ r & /*biometricsEnabled*/
157
+ 16 && f(
158
+ i,
159
+ "checked",
160
+ /*biometricsEnabled*/
161
+ a[4]
162
+ ), r & /*isUpdatingBiometrics, isLoading*/
163
+ 36 && f(
164
+ i,
165
+ "disabled",
166
+ /*isUpdatingBiometrics*/
167
+ a[5] || /*isLoading*/
168
+ a[2]
169
+ ), r & /*shake*/
170
+ 64 && f(
171
+ i,
172
+ "shake",
173
+ /*shake*/
174
+ a[6]
175
+ ), r & /*isUpdatingBiometrics, isLoading*/
176
+ 36 && o !== (o = /*isUpdatingBiometrics*/
177
+ a[5] || /*isLoading*/
178
+ a[2]) && (e.disabled = o);
179
+ },
180
+ d(a) {
181
+ a && k(e), s = !1, c();
182
+ }
183
+ };
184
+ }
185
+ function fe(t) {
186
+ let e, i = (
187
+ /*biometricsEnabled*/
188
+ (t[4] ? (
189
+ /*$_*/
190
+ t[7]("btnDisableBiometrics")
191
+ ) : (
192
+ /*$_*/
193
+ t[7]("btnEnableBiometrics")
194
+ )) + ""
195
+ ), o, s, c, a;
196
+ return {
197
+ c() {
198
+ e = w("button"), o = se(i), S(e, "class", "BiometricsToggle"), e.disabled = s = /*isUpdatingBiometrics*/
199
+ t[5] || /*isLoading*/
200
+ t[2];
201
+ },
202
+ m(r, l) {
203
+ E(r, e, l), C(e, o), c || (a = X(
204
+ e,
205
+ "click",
206
+ /*click_handler*/
207
+ t[16]
208
+ ), c = !0);
209
+ },
210
+ p(r, l) {
211
+ l & /*biometricsEnabled, $_*/
212
+ 144 && i !== (i = /*biometricsEnabled*/
213
+ (r[4] ? (
214
+ /*$_*/
215
+ r[7]("btnDisableBiometrics")
216
+ ) : (
217
+ /*$_*/
218
+ r[7]("btnEnableBiometrics")
219
+ )) + "") && te(o, i), l & /*isUpdatingBiometrics, isLoading*/
220
+ 36 && s !== (s = /*isUpdatingBiometrics*/
221
+ r[5] || /*isLoading*/
222
+ r[2]) && (e.disabled = s);
223
+ },
224
+ d(r) {
225
+ r && k(e), c = !1, a();
226
+ }
227
+ };
228
+ }
229
+ function he(t) {
230
+ let e, i = (
231
+ /*isNativeApp*/
232
+ t[0] && z(t)
233
+ );
234
+ return {
235
+ c() {
236
+ i && i.c(), e = Z();
237
+ },
238
+ m(o, s) {
239
+ i && i.m(o, s), E(o, e, s);
240
+ },
241
+ p(o, [s]) {
242
+ /*isNativeApp*/
243
+ o[0] ? i ? i.p(o, s) : (i = z(o), i.c(), i.m(e.parentNode, e)) : i && (i.d(1), i = null);
244
+ },
245
+ i: R,
246
+ o: R,
247
+ d(o) {
248
+ o && k(e), i && i.d(o);
249
+ }
250
+ };
251
+ }
252
+ function Be(t, e, i) {
253
+ let o;
254
+ $(t, ce, (n) => i(7, o = n));
255
+ let { lang: s = "en" } = e, { clientstyling: c = "" } = e, { clientstylingurl: a = "" } = e, { mbsource: r } = e, { translationurl: l = "" } = e, { isNativeApp: B = !1 } = e, { mode: T = "button" } = e, { isFromLogin: p = !1 } = e, { isLoading: L = !1 } = e, m, F, h, d = null, y = !1, g = !1, _ = !1;
256
+ const D = (n) => {
257
+ Object.keys(n).forEach((b) => {
258
+ le(b, n[b]);
259
+ });
260
+ }, j = () => {
261
+ fetch(l).then((b) => b.json()).then((b) => {
262
+ D(b);
263
+ }).catch((b) => {
264
+ console.log(b);
265
+ });
266
+ };
267
+ D(me);
268
+ const U = () => {
269
+ be(s);
270
+ }, N = {
271
+ BIOMETRICS_RESPONSE: 3e3,
272
+ SHAKE_DURATION: 500
273
+ };
274
+ let M = !1;
275
+ const H = () => {
276
+ i(6, M = !0), setTimeout(
277
+ () => {
278
+ i(6, M = !1);
279
+ },
280
+ N.SHAKE_DURATION
281
+ );
282
+ }, A = () => {
283
+ d && clearTimeout(d), d = setTimeout(
284
+ () => {
285
+ i(5, g = !1), H(), I("error", o("errorMessage"));
286
+ },
287
+ N.BIOMETRICS_RESPONSE
288
+ );
289
+ }, v = async () => {
290
+ g || (i(5, g = !0), _ = !0, window.postMessage({
291
+ type: "ToggleBiometrics",
292
+ data: `${!y}`,
293
+ isFromLogin: p
294
+ }), A());
295
+ }, x = (n) => {
296
+ n.data?.type === "NativeAppReady" && (i(0, B = !0), O()), n.data?.type === "BiometricsStatus" && (i(4, y = n.data.status || !1), i(5, g = !1), d && (clearTimeout(d), d = null), _ && (p || I("success", o(y ? "successEnableBiometrics" : "successDisableBiometrics"))), _ = !1);
297
+ }, O = () => {
298
+ i(5, g = !0), window.postMessage({ type: "GetBiometricsStatus" }), A();
299
+ }, P = () => {
300
+ window.postMessage({ type: "CheckNativeApp" });
301
+ }, I = (n, b) => {
302
+ window.postMessage(
303
+ {
304
+ type: "WidgetNotification",
305
+ data: {
306
+ type: n,
307
+ message: b,
308
+ config: { clearBefore: !0 }
309
+ }
310
+ },
311
+ window.location.href
312
+ );
313
+ };
314
+ ee(() => (window.addEventListener("message", x), B === !0 ? O() : P(), () => {
315
+ window.removeEventListener("message", x), h && h.unsubscribe(), d && clearTimeout(d);
316
+ }));
317
+ const q = () => v();
318
+ function K(n) {
319
+ ie[n ? "unshift" : "push"](() => {
320
+ m = n, i(3, m);
321
+ });
322
+ }
323
+ return t.$$set = (n) => {
324
+ "lang" in n && i(9, s = n.lang), "clientstyling" in n && i(10, c = n.clientstyling), "clientstylingurl" in n && i(11, a = n.clientstylingurl), "mbsource" in n && i(12, r = n.mbsource), "translationurl" in n && i(13, l = n.translationurl), "isNativeApp" in n && i(0, B = n.isNativeApp), "mode" in n && i(1, T = n.mode), "isFromLogin" in n && i(14, p = n.isFromLogin), "isLoading" in n && i(2, L = n.isLoading);
325
+ }, t.$$.update = () => {
326
+ t.$$.dirty & /*lang*/
327
+ 512 && s && U(), t.$$.dirty & /*clientstyling, customStylingContainer*/
328
+ 1032 && c && m && ne(m, c), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
329
+ 2056 && a && m && oe(m, a), t.$$.dirty & /*mbsource, customStylingContainer*/
330
+ 4104 && r && m && ae(m, `${r}.Style`, F), t.$$.dirty & /*translationurl*/
331
+ 8192 && l && j(), t.$$.dirty & /*mbsource, translationurl, translationSubscription*/
332
+ 45056 && r && !l && i(15, h = ue(`${r}.Translation`, h, D));
333
+ }, [
334
+ B,
335
+ T,
336
+ L,
337
+ m,
338
+ y,
339
+ g,
340
+ M,
341
+ o,
342
+ v,
343
+ s,
344
+ c,
345
+ a,
346
+ r,
347
+ l,
348
+ p,
349
+ h,
350
+ q,
351
+ K
352
+ ];
353
+ }
354
+ class pe extends J {
355
+ constructor(e) {
356
+ super(), Q(
357
+ this,
358
+ e,
359
+ Be,
360
+ he,
361
+ V,
362
+ {
363
+ lang: 9,
364
+ clientstyling: 10,
365
+ clientstylingurl: 11,
366
+ mbsource: 12,
367
+ translationurl: 13,
368
+ isNativeApp: 0,
369
+ mode: 1,
370
+ isFromLogin: 14,
371
+ isLoading: 2
372
+ },
373
+ de
374
+ );
375
+ }
376
+ get lang() {
377
+ return this.$$.ctx[9];
378
+ }
379
+ set lang(e) {
380
+ this.$$set({ lang: e }), u();
381
+ }
382
+ get clientstyling() {
383
+ return this.$$.ctx[10];
384
+ }
385
+ set clientstyling(e) {
386
+ this.$$set({ clientstyling: e }), u();
387
+ }
388
+ get clientstylingurl() {
389
+ return this.$$.ctx[11];
390
+ }
391
+ set clientstylingurl(e) {
392
+ this.$$set({ clientstylingurl: e }), u();
393
+ }
394
+ get mbsource() {
395
+ return this.$$.ctx[12];
396
+ }
397
+ set mbsource(e) {
398
+ this.$$set({ mbsource: e }), u();
399
+ }
400
+ get translationurl() {
401
+ return this.$$.ctx[13];
402
+ }
403
+ set translationurl(e) {
404
+ this.$$set({ translationurl: e }), u();
405
+ }
406
+ get isNativeApp() {
407
+ return this.$$.ctx[0];
408
+ }
409
+ set isNativeApp(e) {
410
+ this.$$set({ isNativeApp: e }), u();
411
+ }
412
+ get mode() {
413
+ return this.$$.ctx[1];
414
+ }
415
+ set mode(e) {
416
+ this.$$set({ mode: e }), u();
417
+ }
418
+ get isFromLogin() {
419
+ return this.$$.ctx[14];
420
+ }
421
+ set isFromLogin(e) {
422
+ this.$$set({ isFromLogin: e }), u();
423
+ }
424
+ get isLoading() {
425
+ return this.$$.ctx[2];
426
+ }
427
+ set isLoading(e) {
428
+ this.$$set({ isLoading: e }), u();
429
+ }
430
+ }
431
+ re(pe, { lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, isNativeApp: { type: "Boolean" }, mode: {}, isFromLogin: { type: "Boolean" }, isLoading: { type: "Boolean" } }, [], [], !0);
432
+ export {
433
+ pe as default
434
+ };