@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,386 +0,0 @@
1
- import { a as P, $ as q, S as K, i as G, s as W, f as u, b as F, n as v, d as w, e as B, O as J, h as Q, o as V, g as y, k as Y, u as Z, p as I, x as R, v as $, t as D, N as f, B as ee, C as te, D as ie, c as se, A as re } from "./PlayerAccountController-BLw_7Wxf.js";
2
- function ne(i, e) {
3
- P(i, e);
4
- }
5
- function oe(i) {
6
- q.set(i);
7
- }
8
- const ae = {
9
- en: {
10
- btnEnableBiometrics: "Enable biometrics",
11
- btnDisableBiometrics: "Disable biometrics",
12
- errorMessage: "Biometrics update failed"
13
- },
14
- "zh-hk": {
15
- btnEnableBiometrics: "Enable biometrics",
16
- btnDisableBiometrics: "Disable biometrics",
17
- errorMessage: "Biometrics update failed"
18
- },
19
- fr: {
20
- btnEnableBiometrics: "Enable biometrics",
21
- btnDisableBiometrics: "Disable biometrics",
22
- errorMessage: "Biometrics update failed"
23
- },
24
- tr: {
25
- btnEnableBiometrics: "Enable biometrics",
26
- btnDisableBiometrics: "Disable biometrics",
27
- errorMessage: "Biometrics update failed"
28
- },
29
- ro: {
30
- btnEnableBiometrics: "Enable biometrics",
31
- btnDisableBiometrics: "Disable biometrics",
32
- errorMessage: "Biometrics update failed"
33
- },
34
- es: {
35
- btnEnableBiometrics: "Enable biometrics",
36
- btnDisableBiometrics: "Disable biometrics",
37
- errorMessage: "Biometrics update failed"
38
- },
39
- pt: {
40
- btnEnableBiometrics: "Enable biometrics",
41
- btnDisableBiometrics: "Disable biometrics",
42
- errorMessage: "Biometrics update failed"
43
- },
44
- hr: {
45
- btnEnableBiometrics: "Omogući biometriju",
46
- btnDisableBiometrics: "Onemogući biometriju",
47
- errorMessage: "Biometrics update failed"
48
- },
49
- "pt-br": {
50
- btnEnableBiometrics: "Enable biometrics",
51
- btnDisableBiometrics: "Disable biometrics",
52
- errorMessage: "Biometrics update failed"
53
- },
54
- "es-mx": {
55
- btnEnableBiometrics: "Enable biometrics",
56
- btnDisableBiometrics: "Disable biometrics",
57
- errorMessage: "Biometrics update failed"
58
- },
59
- "en-us": {
60
- btnEnableBiometrics: "Enable biometrics",
61
- btnDisableBiometrics: "Disable biometrics",
62
- errorMessage: "Biometrics update failed"
63
- }
64
- };
65
- function le(i, e, t) {
66
- return window.emMessageBus && (e = window.emMessageBus.subscribe(i, t)), e;
67
- }
68
- function ce(i) {
69
- F(i, "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}');
70
- }
71
- function O(i) {
72
- let e;
73
- function t(n, a) {
74
- if (
75
- /*mode*/
76
- n[1] === "button"
77
- )
78
- return me;
79
- if (
80
- /*mode*/
81
- n[1] === "switch"
82
- )
83
- return be;
84
- }
85
- let r = t(i), s = r && r(i);
86
- return {
87
- c() {
88
- e = y("div"), s && s.c();
89
- },
90
- m(n, a) {
91
- B(n, e, a), s && s.m(e, null), i[15](e);
92
- },
93
- p(n, a) {
94
- r === (r = t(n)) && s ? s.p(n, a) : (s && s.d(1), s = r && r(n), s && (s.c(), s.m(e, null)));
95
- },
96
- d(n) {
97
- n && w(e), s && s.d(), i[15](null);
98
- }
99
- };
100
- }
101
- function be(i) {
102
- let e, t, r, s;
103
- return {
104
- c() {
105
- e = y("button"), t = y("div"), t.innerHTML = '<input type="checkbox" class="skip-switch-input"/> <span class="skip-switch-core"></span>', D(t, "class", "skip-switch"), f(
106
- t,
107
- "checked",
108
- /*biometricsEnabled*/
109
- i[3]
110
- ), f(
111
- t,
112
- "disabled",
113
- /*isUpdatingBiometrics*/
114
- i[4]
115
- ), f(
116
- t,
117
- "shake",
118
- /*shake*/
119
- i[5]
120
- ), D(e, "class", "toggle-content"), e.disabled = /*isUpdatingBiometrics*/
121
- i[4];
122
- },
123
- m(n, a) {
124
- B(n, e, a), I(e, t), r || (s = R(
125
- e,
126
- "click",
127
- /*toggleBiometrics*/
128
- i[7]
129
- ), r = !0);
130
- },
131
- p(n, a) {
132
- a & /*biometricsEnabled*/
133
- 8 && f(
134
- t,
135
- "checked",
136
- /*biometricsEnabled*/
137
- n[3]
138
- ), a & /*isUpdatingBiometrics*/
139
- 16 && f(
140
- t,
141
- "disabled",
142
- /*isUpdatingBiometrics*/
143
- n[4]
144
- ), a & /*shake*/
145
- 32 && f(
146
- t,
147
- "shake",
148
- /*shake*/
149
- n[5]
150
- ), a & /*isUpdatingBiometrics*/
151
- 16 && (e.disabled = /*isUpdatingBiometrics*/
152
- n[4]);
153
- },
154
- d(n) {
155
- n && w(e), r = !1, s();
156
- }
157
- };
158
- }
159
- function me(i) {
160
- let e, t = (
161
- /*biometricsEnabled*/
162
- (i[3] ? (
163
- /*$_*/
164
- i[6]("btnDisableBiometrics")
165
- ) : (
166
- /*$_*/
167
- i[6]("btnEnableBiometrics")
168
- )) + ""
169
- ), r, s, n;
170
- return {
171
- c() {
172
- e = y("button"), r = $(t), D(e, "class", "BiometricsToggle"), e.disabled = /*isUpdatingBiometrics*/
173
- i[4];
174
- },
175
- m(a, l) {
176
- B(a, e, l), I(e, r), s || (n = R(
177
- e,
178
- "click",
179
- /*click_handler*/
180
- i[14]
181
- ), s = !0);
182
- },
183
- p(a, l) {
184
- l & /*biometricsEnabled, $_*/
185
- 72 && t !== (t = /*biometricsEnabled*/
186
- (a[3] ? (
187
- /*$_*/
188
- a[6]("btnDisableBiometrics")
189
- ) : (
190
- /*$_*/
191
- a[6]("btnEnableBiometrics")
192
- )) + "") && Z(r, t), l & /*isUpdatingBiometrics*/
193
- 16 && (e.disabled = /*isUpdatingBiometrics*/
194
- a[4]);
195
- },
196
- d(a) {
197
- a && w(e), s = !1, n();
198
- }
199
- };
200
- }
201
- function ue(i) {
202
- let e, t = (
203
- /*isNativeApp*/
204
- i[0] && O(i)
205
- );
206
- return {
207
- c() {
208
- t && t.c(), e = J();
209
- },
210
- m(r, s) {
211
- t && t.m(r, s), B(r, e, s);
212
- },
213
- p(r, [s]) {
214
- /*isNativeApp*/
215
- r[0] ? t ? t.p(r, s) : (t = O(r), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
216
- },
217
- i: v,
218
- o: v,
219
- d(r) {
220
- r && w(e), t && t.d(r);
221
- }
222
- };
223
- }
224
- function de(i, e, t) {
225
- let r;
226
- Q(i, re, (o) => t(6, r = o));
227
- let { lang: s = "en" } = e, { clientstyling: n = "" } = e, { clientstylingurl: a = "" } = e, { mbsource: l } = e, { translationurl: g = "" } = e, { isNativeApp: h = !1 } = e, { mode: M = "button" } = e, c, z, p, b = null, k = !1, d = !1;
228
- const E = (o) => {
229
- Object.keys(o).forEach((m) => {
230
- ne(m, o[m]);
231
- });
232
- }, C = () => {
233
- fetch(g).then((m) => m.json()).then((m) => {
234
- E(m);
235
- }).catch((m) => {
236
- console.log(m);
237
- });
238
- };
239
- E(ae);
240
- const X = () => {
241
- oe(s);
242
- }, S = {
243
- BIOMETRICS_RESPONSE: 3e3,
244
- SHAKE_DURATION: 500
245
- };
246
- let _ = !1;
247
- const L = () => {
248
- t(5, _ = !0), setTimeout(
249
- () => {
250
- t(5, _ = !1);
251
- },
252
- S.SHAKE_DURATION
253
- );
254
- }, T = () => {
255
- b && clearTimeout(b), b = setTimeout(
256
- () => {
257
- t(4, d = !1), L(), window.postMessage(
258
- {
259
- type: "WidgetNotification",
260
- data: {
261
- type: "error",
262
- message: r("errorMessage")
263
- }
264
- },
265
- window.location.href
266
- );
267
- },
268
- S.BIOMETRICS_RESPONSE
269
- );
270
- }, x = async () => {
271
- d || (t(4, d = !0), window.postMessage({
272
- type: "ToggleBiometrics",
273
- data: `${!k}`
274
- }), T());
275
- }, A = (o) => {
276
- o.data?.type === "NativeAppReady" && (t(0, h = !0), N()), o.data?.type === "BiometricsStatus" && (t(3, k = o.data.status || !1), t(4, d = !1), b && (clearTimeout(b), b = null));
277
- }, N = () => {
278
- t(4, d = !0), window.postMessage({ type: "GetBiometricsStatus" }), T();
279
- }, j = () => {
280
- window.postMessage({ type: "CheckNativeApp" });
281
- };
282
- V(() => (window.addEventListener("message", A), h === !0 ? N() : j(), () => {
283
- window.removeEventListener("message", A), p && p.unsubscribe(), b && clearTimeout(b);
284
- }));
285
- const U = () => x();
286
- function H(o) {
287
- Y[o ? "unshift" : "push"](() => {
288
- c = o, t(2, c);
289
- });
290
- }
291
- return i.$$set = (o) => {
292
- "lang" in o && t(8, s = o.lang), "clientstyling" in o && t(9, n = o.clientstyling), "clientstylingurl" in o && t(10, a = o.clientstylingurl), "mbsource" in o && t(11, l = o.mbsource), "translationurl" in o && t(12, g = o.translationurl), "isNativeApp" in o && t(0, h = o.isNativeApp), "mode" in o && t(1, M = o.mode);
293
- }, i.$$.update = () => {
294
- i.$$.dirty & /*lang*/
295
- 256 && s && X(), i.$$.dirty & /*clientstyling, customStylingContainer*/
296
- 516 && n && c && ee(c, n), i.$$.dirty & /*clientstylingurl, customStylingContainer*/
297
- 1028 && a && c && te(c, a), i.$$.dirty & /*mbsource, customStylingContainer*/
298
- 2052 && l && c && ie(c, `${l}.Style`, z), i.$$.dirty & /*translationurl*/
299
- 4096 && g && C(), i.$$.dirty & /*mbsource, translationurl, translationSubscription*/
300
- 14336 && l && !g && t(13, p = le(`${l}.Translation`, p, E));
301
- }, [
302
- h,
303
- M,
304
- c,
305
- k,
306
- d,
307
- _,
308
- r,
309
- x,
310
- s,
311
- n,
312
- a,
313
- l,
314
- g,
315
- p,
316
- U,
317
- H
318
- ];
319
- }
320
- class fe extends K {
321
- constructor(e) {
322
- super(), G(
323
- this,
324
- e,
325
- de,
326
- ue,
327
- W,
328
- {
329
- lang: 8,
330
- clientstyling: 9,
331
- clientstylingurl: 10,
332
- mbsource: 11,
333
- translationurl: 12,
334
- isNativeApp: 0,
335
- mode: 1
336
- },
337
- ce
338
- );
339
- }
340
- get lang() {
341
- return this.$$.ctx[8];
342
- }
343
- set lang(e) {
344
- this.$$set({ lang: e }), u();
345
- }
346
- get clientstyling() {
347
- return this.$$.ctx[9];
348
- }
349
- set clientstyling(e) {
350
- this.$$set({ clientstyling: e }), u();
351
- }
352
- get clientstylingurl() {
353
- return this.$$.ctx[10];
354
- }
355
- set clientstylingurl(e) {
356
- this.$$set({ clientstylingurl: e }), u();
357
- }
358
- get mbsource() {
359
- return this.$$.ctx[11];
360
- }
361
- set mbsource(e) {
362
- this.$$set({ mbsource: e }), u();
363
- }
364
- get translationurl() {
365
- return this.$$.ctx[12];
366
- }
367
- set translationurl(e) {
368
- this.$$set({ translationurl: e }), u();
369
- }
370
- get isNativeApp() {
371
- return this.$$.ctx[0];
372
- }
373
- set isNativeApp(e) {
374
- this.$$set({ isNativeApp: e }), u();
375
- }
376
- get mode() {
377
- return this.$$.ctx[1];
378
- }
379
- set mode(e) {
380
- this.$$set({ mode: e }), u();
381
- }
382
- }
383
- se(fe, { lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, isNativeApp: { type: "Boolean" }, mode: {} }, [], [], !0);
384
- export {
385
- fe as default
386
- };