@everymatrix/player-account-controller 1.87.27 → 1.87.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/components/{GeneralLogout-B5j_vW4P.js → GeneralLogout-B29__rpa.js} +1 -1
  2. package/components/{GeneralLogout-CjFz6GhW.cjs → GeneralLogout-BXT6Vu6B.cjs} +1 -1
  3. package/components/{GeneralLogout-fKTKcCGJ.js → GeneralLogout-BgQNMeTO.js} +1 -1
  4. package/components/{PlayerAccountBettingHistory-CPnTOt06.cjs → PlayerAccountBettingHistory-BJAXH8Xo.cjs} +1 -1
  5. package/components/{PlayerAccountBettingHistory-CIzi9adW.js → PlayerAccountBettingHistory-DKwdaKDt.js} +1 -1
  6. package/components/{PlayerAccountBettingHistory-QM3zfoYn.js → PlayerAccountBettingHistory-I0nmHqEN.js} +1 -1
  7. package/components/{PlayerAccountBiometrics-DG4UZ7gJ.js → PlayerAccountBiometrics-B-ECMtsQ.js} +2 -2
  8. package/components/{PlayerAccountBiometrics-DemarL8b.cjs → PlayerAccountBiometrics-DRq5Xepy.cjs} +1 -1
  9. package/components/{PlayerAccountBiometrics-CsgBvnb7.js → PlayerAccountBiometrics-DmfgTs4K.js} +2 -2
  10. package/components/PlayerAccountBiometricsAction-4Yy9Wt3_.js +434 -0
  11. package/components/PlayerAccountBiometricsAction-DKzhAslm.js +451 -0
  12. package/components/PlayerAccountBiometricsAction-YYKYJ-Vd.cjs +1 -0
  13. package/components/{PlayerAccountClosure-B-dMr1Jn.js → PlayerAccountClosure-DE-E_V_w.js} +1 -1
  14. package/components/{PlayerAccountClosure-BWvJR3TO.cjs → PlayerAccountClosure-DKOlGvTX.cjs} +1 -1
  15. package/components/{PlayerAccountClosure-CVfc0dYJ.js → PlayerAccountClosure-DYxvOiRg.js} +1 -1
  16. package/components/{PlayerAccountController-BAQQQd6f.js → PlayerAccountController-DNb9Imkv.js} +22 -22
  17. package/components/{PlayerAccountController-BLw_7Wxf.js → PlayerAccountController-DT8mB4Kw.js} +22 -22
  18. package/components/{PlayerAccountController-En_hyyNC.cjs → PlayerAccountController-q2E-Ys0M.cjs} +1 -1
  19. package/components/{PlayerAccountGamingLimits-OyM5Opvb.cjs → PlayerAccountGamingLimits-DHxnwsGK.cjs} +1 -1
  20. package/components/{PlayerAccountGamingLimits-CyI_jaC4.js → PlayerAccountGamingLimits-DXoXjst7.js} +2 -2
  21. package/components/{PlayerAccountGamingLimits-Cow9pdbW.js → PlayerAccountGamingLimits-j6Gp7RkK.js} +2 -2
  22. package/components/{PlayerAccountGamingLimitsConfirmationModal-BrOtl3Gh.cjs → PlayerAccountGamingLimitsConfirmationModal-BHlrokFh.cjs} +1 -1
  23. package/components/{PlayerAccountGamingLimitsConfirmationModal-Dyp4qeUR.js → PlayerAccountGamingLimitsConfirmationModal-BcqZIS9H.js} +1 -1
  24. package/components/{PlayerAccountGamingLimitsConfirmationModal-BaHYtGpR.js → PlayerAccountGamingLimitsConfirmationModal-Bysmb7F3.js} +1 -1
  25. package/components/{PlayerAccountGamingLimitsGroupEdit-Dq7oKBvT.cjs → PlayerAccountGamingLimitsGroupEdit-BHxNAgGb.cjs} +1 -1
  26. package/components/{PlayerAccountGamingLimitsGroupEdit-CtjRT5jg.js → PlayerAccountGamingLimitsGroupEdit-D32h3dN7.js} +5 -5
  27. package/components/{PlayerAccountGamingLimitsGroupEdit-B-jxQbpZ.js → PlayerAccountGamingLimitsGroupEdit-tpihDZRM.js} +5 -5
  28. package/components/{PlayerAccountGamingLimitsHistory2-Bjh88L-r.js → PlayerAccountGamingLimitsHistory2-BV5YAD-K.js} +1 -1
  29. package/components/{PlayerAccountGamingLimitsHistory2-B39ZuccZ.js → PlayerAccountGamingLimitsHistory2-DJBZiBDQ.js} +1 -1
  30. package/components/{PlayerAccountGamingLimitsHistory2-D2Pv9fHy.cjs → PlayerAccountGamingLimitsHistory2-DpEFv8jG.cjs} +1 -1
  31. package/components/{PlayerAccountGamingLimitsInfoCard-D_Hn3lLp.js → PlayerAccountGamingLimitsInfoCard-BImIJRhG.js} +4 -4
  32. package/components/{PlayerAccountGamingLimitsInfoCard-C2iKiolC.cjs → PlayerAccountGamingLimitsInfoCard-CY8nPlUf.cjs} +1 -1
  33. package/components/{PlayerAccountGamingLimitsInfoCard-DX-5uUnY.js → PlayerAccountGamingLimitsInfoCard-DGQdDsec.js} +4 -4
  34. package/components/{PlayerAccountGamingLimitsPage2Gm16-Crtu_pde.js → PlayerAccountGamingLimitsPage2Gm16-Boff86oJ.js} +1 -1
  35. package/components/{PlayerAccountGamingLimitsPage2Gm16-BXIgZHBA.js → PlayerAccountGamingLimitsPage2Gm16-DyCcw-Nt.js} +1 -1
  36. package/components/{PlayerAccountGamingLimitsPage2Gm16-De419B1o.cjs → PlayerAccountGamingLimitsPage2Gm16-M6zC8chB.cjs} +1 -1
  37. package/components/{PlayerAccountGamingLimitsPopup-BLbMRSf_.js → PlayerAccountGamingLimitsPopup-Cx_AuaXf.js} +1 -1
  38. package/components/{PlayerAccountGamingLimitsPopup-Be_S9ZcF.js → PlayerAccountGamingLimitsPopup-Dh-KXVK0.js} +1 -1
  39. package/components/{PlayerAccountGamingLimitsPopup-CNvTB9c2.cjs → PlayerAccountGamingLimitsPopup-MEp4C6Ow.cjs} +1 -1
  40. package/components/{PlayerAccountGamingLimitsWrapper2-D1UYcvKH.cjs → PlayerAccountGamingLimitsWrapper2-BJ-yO4-n.cjs} +1 -1
  41. package/components/{PlayerAccountGamingLimitsWrapper2-De2EL3tm.js → PlayerAccountGamingLimitsWrapper2-D3HEi9pX.js} +3 -3
  42. package/components/{PlayerAccountGamingLimitsWrapper2-Dzf9XPuV.js → PlayerAccountGamingLimitsWrapper2-YnonJxCU.js} +3 -3
  43. package/components/{PlayerAccountGeneralConfirmationModal-D0gnNBxN.js → PlayerAccountGeneralConfirmationModal-Bbex22Yo.js} +1 -1
  44. package/components/{PlayerAccountGeneralConfirmationModal-C-pUW7UE.js → PlayerAccountGeneralConfirmationModal-CDoGNofo.js} +1 -1
  45. package/components/{PlayerAccountGeneralConfirmationModal-sBWJGJ3j.cjs → PlayerAccountGeneralConfirmationModal-KbKNE6wZ.cjs} +1 -1
  46. package/components/{PlayerAccountMenu-DNy_Hk32.js → PlayerAccountMenu-CnHAUgBA.js} +2 -2
  47. package/components/{PlayerAccountMenu-88qusOe1.js → PlayerAccountMenu-Dh0It-kw.js} +2 -2
  48. package/components/{PlayerAccountMenu-5RiJxzF8.cjs → PlayerAccountMenu-TifkV-5q.cjs} +1 -1
  49. package/components/{PlayerAccountModal-DacnysL5.js → PlayerAccountModal-BL2hUwdv.js} +1 -1
  50. package/components/{PlayerAccountModal-BdVMgMM0.cjs → PlayerAccountModal-CXwiFP1T.cjs} +1 -1
  51. package/components/{PlayerAccountModal-B6JKobGH.js → PlayerAccountModal-kpapnAOC.js} +1 -1
  52. package/components/{PlayerAccountNotifications-C30B-b67.js → PlayerAccountNotifications-BsJlndPH.js} +1 -1
  53. package/components/{PlayerAccountNotifications-Ca-yj1FW.js → PlayerAccountNotifications-CDBf-z7k.js} +1 -1
  54. package/components/{PlayerAccountNotifications-B8QW73lK.cjs → PlayerAccountNotifications-Dg6ZBVQO.cjs} +1 -1
  55. package/components/{PlayerAccountProductRestriction-DQaf3YS6.js → PlayerAccountProductRestriction-7H_p_NH3.js} +3 -3
  56. package/components/{PlayerAccountProductRestriction-TK3PdIUq.cjs → PlayerAccountProductRestriction-B73nHM4p.cjs} +1 -1
  57. package/components/{PlayerAccountProductRestriction-DMMlQ5x4.js → PlayerAccountProductRestriction-BoPzyX6U.js} +3 -3
  58. package/components/{PlayerAccountReviewFrequency-nChzMifu.js → PlayerAccountReviewFrequency-BF2jh_T5.js} +1 -1
  59. package/components/{PlayerAccountReviewFrequency-DVU5nmS6.cjs → PlayerAccountReviewFrequency-BbL3qvU_.cjs} +1 -1
  60. package/components/{PlayerAccountReviewFrequency-BX3lMYXn.js → PlayerAccountReviewFrequency-MaWB57PB.js} +1 -1
  61. package/components/{PlayerAccountSelfExclusion-D1g-5SMn.cjs → PlayerAccountSelfExclusion-BN7uRrl4.cjs} +1 -1
  62. package/components/{PlayerAccountSelfExclusion-CsZr8Rp-.js → PlayerAccountSelfExclusion-Bi82Ie-O.js} +2 -2
  63. package/components/{PlayerAccountSelfExclusion-Bcr8vJib.js → PlayerAccountSelfExclusion-D54kBJFe.js} +2 -2
  64. package/components/{PlayerAccountTimeout-DUK2ndeT.cjs → PlayerAccountTimeout-B8sKFltn.cjs} +2 -2
  65. package/components/{PlayerAccountTimeout-Hzpth7m_.js → PlayerAccountTimeout-CSa0u1kX.js} +3 -3
  66. package/components/{PlayerAccountTimeout-Dm6G5s24.js → PlayerAccountTimeout-K2FWOrTk.js} +3 -3
  67. package/components/{PlayerAccountTransactionsHistory-aY0Baw7m.cjs → PlayerAccountTransactionsHistory-5tb8SKHu.cjs} +1 -1
  68. package/components/{PlayerAccountTransactionsHistory-DbcrevKR.js → PlayerAccountTransactionsHistory-Bu4OfFgM.js} +4 -4
  69. package/components/{PlayerAccountTransactionsHistory-TpzDg4nW.js → PlayerAccountTransactionsHistory-Z1HQpCJP.js} +4 -4
  70. package/components/{PlayerActiveBonuses-HVGiWNOd.js → PlayerActiveBonuses-BmN7s2iD.js} +2 -2
  71. package/components/{PlayerActiveBonuses-8Opx6dzV.cjs → PlayerActiveBonuses-DgKSd24T.cjs} +1 -1
  72. package/components/{PlayerActiveBonuses-BDw7e79b.js → PlayerActiveBonuses-teupPcEp.js} +2 -2
  73. package/components/{PlayerBonusCard-zjN36qJb.js → PlayerBonusCard-BLRAUkxA.js} +2 -2
  74. package/components/{PlayerBonusCard-DC_pKqNw.cjs → PlayerBonusCard-DKymW3np.cjs} +1 -1
  75. package/components/{PlayerBonusCard-thh4vUMx.js → PlayerBonusCard-V27QkO_e.js} +2 -2
  76. package/components/{PlayerBonusHistory-BcN0Ya_g.js → PlayerBonusHistory-B2rXHayg.js} +2 -2
  77. package/components/{PlayerBonusHistory-vs9jxJhQ.js → PlayerBonusHistory-BWOGSfiH.js} +2 -2
  78. package/components/{PlayerBonusHistory-Dkrv14z8.cjs → PlayerBonusHistory-BdLQMCy6.cjs} +1 -1
  79. package/components/{PlayerChangePassword-BuJNikhz.cjs → PlayerChangePassword-CFP5bgFU.cjs} +1 -1
  80. package/components/{PlayerChangePassword-C6mFUw5u.js → PlayerChangePassword-D49x9rxu.js} +1 -1
  81. package/components/{PlayerChangePassword-C8qYkJCx.js → PlayerChangePassword-Haz3s5or.js} +1 -1
  82. package/components/{PlayerDeposit-DadV3-2W.js → PlayerDeposit-CCl5lgyP.js} +1 -1
  83. package/components/{PlayerDeposit-BJrNyzPW.js → PlayerDeposit-D4C6552a.js} +1 -1
  84. package/components/{PlayerDeposit-DemYa-nv.cjs → PlayerDeposit-DHzrZgZ1.cjs} +1 -1
  85. package/components/{PlayerGamingHistory-D2s0Otth.cjs → PlayerGamingHistory-CrMoejRf.cjs} +1 -1
  86. package/components/{PlayerGamingHistory-D3WjUHop.js → PlayerGamingHistory-DIx_zhN5.js} +3 -3
  87. package/components/{PlayerGamingHistory-BMEQFFwn.js → PlayerGamingHistory-IJSKHkbl.js} +3 -3
  88. package/components/{PlayerPendingWithdrawals-CY3g0w83.cjs → PlayerPendingWithdrawals-6Dx1B8QS.cjs} +1 -1
  89. package/components/{PlayerPendingWithdrawals-CiS2VIJm.js → PlayerPendingWithdrawals-DuduzyBl.js} +1 -1
  90. package/components/{PlayerPendingWithdrawals-B7PgOP7F.js → PlayerPendingWithdrawals-LMmvlbqk.js} +1 -1
  91. package/components/{PlayerProfileInfo-B6L0INWX.cjs → PlayerProfileInfo-CtU3MQxZ.cjs} +2 -2
  92. package/components/{PlayerProfileInfo-COpic9Sl.js → PlayerProfileInfo-j3GWgWVQ.js} +1022 -987
  93. package/components/{PlayerProfileInfo-DGwH1Xbb.js → PlayerProfileInfo-zSqxfWgH.js} +967 -932
  94. package/components/{PlayerRealityCheck-DPhiL4g2.js → PlayerRealityCheck-CAMwFuLS.js} +1 -1
  95. package/components/{PlayerRealityCheck-CRqlzifK.js → PlayerRealityCheck-CBoqZJPM.js} +1 -1
  96. package/components/{PlayerRealityCheck-CXPnhtbt.cjs → PlayerRealityCheck-CfvYiy1N.cjs} +1 -1
  97. package/components/{PlayerTransactionHistory-CblCTe3C.js → PlayerTransactionHistory-BBeMcL4B.js} +1 -1
  98. package/components/{PlayerTransactionHistory-CJVcCHMB.js → PlayerTransactionHistory-BcGwdUmK.js} +1 -1
  99. package/components/{PlayerTransactionHistory-k-3KbRna.cjs → PlayerTransactionHistory-C1PNjdmO.cjs} +1 -1
  100. package/components/{PlayerWithdrawal-gngFCPKe.js → PlayerWithdrawal-BPhxNi0P.js} +1 -1
  101. package/components/{PlayerWithdrawal-pcXdzQpS.cjs → PlayerWithdrawal-BrRqbErs.cjs} +1 -1
  102. package/components/{PlayerWithdrawal-DDhF1YFQ.js → PlayerWithdrawal-nAu70aCq.js} +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,403 +0,0 @@
1
- var O = (i, e, t) => new Promise((r, s) => {
2
- var n = (c) => {
3
- try {
4
- l(t.next(c));
5
- } catch (u) {
6
- s(u);
7
- }
8
- }, o = (c) => {
9
- try {
10
- l(t.throw(c));
11
- } catch (u) {
12
- s(u);
13
- }
14
- }, l = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(n, o);
15
- l((t = t.apply(i, e)).next());
16
- });
17
- import { a as K, $ as G, S as W, i as F, s as J, f, b as Q, n as z, d as w, c as B, O as V, g as Y, o as Z, e as y, j as $, t as ee, m as R, w as C, u as te, r as D, N as p, z as ie, A as se, B as re, C as ne, D as oe } from "./PlayerAccountController-BAQQQd6f.js";
18
- function ae(i, e) {
19
- K(i, e);
20
- }
21
- function le(i) {
22
- G.set(i);
23
- }
24
- const ce = {
25
- en: {
26
- btnEnableBiometrics: "Enable biometrics",
27
- btnDisableBiometrics: "Disable biometrics",
28
- errorMessage: "Biometrics update failed"
29
- },
30
- "zh-hk": {
31
- btnEnableBiometrics: "Enable biometrics",
32
- btnDisableBiometrics: "Disable biometrics",
33
- errorMessage: "Biometrics update failed"
34
- },
35
- fr: {
36
- btnEnableBiometrics: "Enable biometrics",
37
- btnDisableBiometrics: "Disable biometrics",
38
- errorMessage: "Biometrics update failed"
39
- },
40
- tr: {
41
- btnEnableBiometrics: "Enable biometrics",
42
- btnDisableBiometrics: "Disable biometrics",
43
- errorMessage: "Biometrics update failed"
44
- },
45
- ro: {
46
- btnEnableBiometrics: "Enable biometrics",
47
- btnDisableBiometrics: "Disable biometrics",
48
- errorMessage: "Biometrics update failed"
49
- },
50
- es: {
51
- btnEnableBiometrics: "Enable biometrics",
52
- btnDisableBiometrics: "Disable biometrics",
53
- errorMessage: "Biometrics update failed"
54
- },
55
- pt: {
56
- btnEnableBiometrics: "Enable biometrics",
57
- btnDisableBiometrics: "Disable biometrics",
58
- errorMessage: "Biometrics update failed"
59
- },
60
- hr: {
61
- btnEnableBiometrics: "Omogući biometriju",
62
- btnDisableBiometrics: "Onemogući biometriju",
63
- errorMessage: "Biometrics update failed"
64
- },
65
- "pt-br": {
66
- btnEnableBiometrics: "Enable biometrics",
67
- btnDisableBiometrics: "Disable biometrics",
68
- errorMessage: "Biometrics update failed"
69
- },
70
- "es-mx": {
71
- btnEnableBiometrics: "Enable biometrics",
72
- btnDisableBiometrics: "Disable biometrics",
73
- errorMessage: "Biometrics update failed"
74
- },
75
- "en-us": {
76
- btnEnableBiometrics: "Enable biometrics",
77
- btnDisableBiometrics: "Disable biometrics",
78
- errorMessage: "Biometrics update failed"
79
- }
80
- };
81
- function be(i, e, t) {
82
- return window.emMessageBus && (e = window.emMessageBus.subscribe(i, t)), e;
83
- }
84
- function me(i) {
85
- Q(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}');
86
- }
87
- function I(i) {
88
- let e;
89
- function t(n, o) {
90
- if (
91
- /*mode*/
92
- n[1] === "button"
93
- )
94
- return de;
95
- if (
96
- /*mode*/
97
- n[1] === "switch"
98
- )
99
- return ue;
100
- }
101
- let r = t(i), s = r && r(i);
102
- return {
103
- c() {
104
- e = y("div"), s && s.c();
105
- },
106
- m(n, o) {
107
- B(n, e, o), s && s.m(e, null), i[15](e);
108
- },
109
- p(n, o) {
110
- r === (r = t(n)) && s ? s.p(n, o) : (s && s.d(1), s = r && r(n), s && (s.c(), s.m(e, null)));
111
- },
112
- d(n) {
113
- n && w(e), s && s.d(), i[15](null);
114
- }
115
- };
116
- }
117
- function ue(i) {
118
- let e, t, r, s;
119
- return {
120
- c() {
121
- 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"), p(
122
- t,
123
- "checked",
124
- /*biometricsEnabled*/
125
- i[3]
126
- ), p(
127
- t,
128
- "disabled",
129
- /*isUpdatingBiometrics*/
130
- i[4]
131
- ), p(
132
- t,
133
- "shake",
134
- /*shake*/
135
- i[5]
136
- ), D(e, "class", "toggle-content"), e.disabled = /*isUpdatingBiometrics*/
137
- i[4];
138
- },
139
- m(n, o) {
140
- B(n, e, o), R(e, t), r || (s = C(
141
- e,
142
- "click",
143
- /*toggleBiometrics*/
144
- i[7]
145
- ), r = !0);
146
- },
147
- p(n, o) {
148
- o & /*biometricsEnabled*/
149
- 8 && p(
150
- t,
151
- "checked",
152
- /*biometricsEnabled*/
153
- n[3]
154
- ), o & /*isUpdatingBiometrics*/
155
- 16 && p(
156
- t,
157
- "disabled",
158
- /*isUpdatingBiometrics*/
159
- n[4]
160
- ), o & /*shake*/
161
- 32 && p(
162
- t,
163
- "shake",
164
- /*shake*/
165
- n[5]
166
- ), o & /*isUpdatingBiometrics*/
167
- 16 && (e.disabled = /*isUpdatingBiometrics*/
168
- n[4]);
169
- },
170
- d(n) {
171
- n && w(e), r = !1, s();
172
- }
173
- };
174
- }
175
- function de(i) {
176
- let e, t = (
177
- /*biometricsEnabled*/
178
- (i[3] ? (
179
- /*$_*/
180
- i[6]("btnDisableBiometrics")
181
- ) : (
182
- /*$_*/
183
- i[6]("btnEnableBiometrics")
184
- )) + ""
185
- ), r, s, n;
186
- return {
187
- c() {
188
- e = y("button"), r = te(t), D(e, "class", "BiometricsToggle"), e.disabled = /*isUpdatingBiometrics*/
189
- i[4];
190
- },
191
- m(o, l) {
192
- B(o, e, l), R(e, r), s || (n = C(
193
- e,
194
- "click",
195
- /*click_handler*/
196
- i[14]
197
- ), s = !0);
198
- },
199
- p(o, l) {
200
- l & /*biometricsEnabled, $_*/
201
- 72 && t !== (t = /*biometricsEnabled*/
202
- (o[3] ? (
203
- /*$_*/
204
- o[6]("btnDisableBiometrics")
205
- ) : (
206
- /*$_*/
207
- o[6]("btnEnableBiometrics")
208
- )) + "") && ee(r, t), l & /*isUpdatingBiometrics*/
209
- 16 && (e.disabled = /*isUpdatingBiometrics*/
210
- o[4]);
211
- },
212
- d(o) {
213
- o && w(e), s = !1, n();
214
- }
215
- };
216
- }
217
- function fe(i) {
218
- let e, t = (
219
- /*isNativeApp*/
220
- i[0] && I(i)
221
- );
222
- return {
223
- c() {
224
- t && t.c(), e = V();
225
- },
226
- m(r, s) {
227
- t && t.m(r, s), B(r, e, s);
228
- },
229
- p(r, [s]) {
230
- /*isNativeApp*/
231
- r[0] ? t ? t.p(r, s) : (t = I(r), t.c(), t.m(e.parentNode, e)) : t && (t.d(1), t = null);
232
- },
233
- i: z,
234
- o: z,
235
- d(r) {
236
- r && w(e), t && t.d(r);
237
- }
238
- };
239
- }
240
- function ge(i, e, t) {
241
- let r;
242
- Y(i, oe, (a) => t(6, r = a));
243
- let { lang: s = "en" } = e, { clientstyling: n = "" } = e, { clientstylingurl: o = "" } = e, { mbsource: l } = e, { translationurl: c = "" } = e, { isNativeApp: u = !1 } = e, { mode: M = "button" } = e, m, X, h, d = null, k = !1, g = !1;
244
- const E = (a) => {
245
- Object.keys(a).forEach((b) => {
246
- ae(b, a[b]);
247
- });
248
- }, j = () => {
249
- fetch(c).then((b) => b.json()).then((b) => {
250
- E(b);
251
- }).catch((b) => {
252
- console.log(b);
253
- });
254
- };
255
- E(ce);
256
- const L = () => {
257
- le(s);
258
- }, S = {
259
- BIOMETRICS_RESPONSE: 3e3,
260
- SHAKE_DURATION: 500
261
- };
262
- let _ = !1;
263
- const U = () => {
264
- t(5, _ = !0), setTimeout(
265
- () => {
266
- t(5, _ = !1);
267
- },
268
- S.SHAKE_DURATION
269
- );
270
- }, T = () => {
271
- d && clearTimeout(d), d = setTimeout(
272
- () => {
273
- t(4, g = !1), U(), window.postMessage(
274
- {
275
- type: "WidgetNotification",
276
- data: {
277
- type: "error",
278
- message: r("errorMessage")
279
- }
280
- },
281
- window.location.href
282
- );
283
- },
284
- S.BIOMETRICS_RESPONSE
285
- );
286
- }, A = () => O(this, null, function* () {
287
- g || (t(4, g = !0), window.postMessage({
288
- type: "ToggleBiometrics",
289
- data: `${!k}`
290
- }), T());
291
- }), N = (a) => {
292
- var b, v;
293
- ((b = a.data) == null ? void 0 : b.type) === "NativeAppReady" && (t(0, u = !0), x()), ((v = a.data) == null ? void 0 : v.type) === "BiometricsStatus" && (t(3, k = a.data.status || !1), t(4, g = !1), d && (clearTimeout(d), d = null));
294
- }, x = () => {
295
- t(4, g = !0), window.postMessage({ type: "GetBiometricsStatus" }), T();
296
- }, H = () => {
297
- window.postMessage({ type: "CheckNativeApp" });
298
- };
299
- Z(() => (window.addEventListener("message", N), u === !0 ? x() : H(), () => {
300
- window.removeEventListener("message", N), h && h.unsubscribe(), d && clearTimeout(d);
301
- }));
302
- const P = () => A();
303
- function q(a) {
304
- $[a ? "unshift" : "push"](() => {
305
- m = a, t(2, m);
306
- });
307
- }
308
- return i.$$set = (a) => {
309
- "lang" in a && t(8, s = a.lang), "clientstyling" in a && t(9, n = a.clientstyling), "clientstylingurl" in a && t(10, o = a.clientstylingurl), "mbsource" in a && t(11, l = a.mbsource), "translationurl" in a && t(12, c = a.translationurl), "isNativeApp" in a && t(0, u = a.isNativeApp), "mode" in a && t(1, M = a.mode);
310
- }, i.$$.update = () => {
311
- i.$$.dirty & /*lang*/
312
- 256 && s && L(), i.$$.dirty & /*clientstyling, customStylingContainer*/
313
- 516 && n && m && ie(m, n), i.$$.dirty & /*clientstylingurl, customStylingContainer*/
314
- 1028 && o && m && se(m, o), i.$$.dirty & /*mbsource, customStylingContainer*/
315
- 2052 && l && m && re(m, `${l}.Style`, X), i.$$.dirty & /*translationurl*/
316
- 4096 && c && j(), i.$$.dirty & /*mbsource, translationurl, translationSubscription*/
317
- 14336 && l && !c && t(13, h = be(`${l}.Translation`, h, E));
318
- }, [
319
- u,
320
- M,
321
- m,
322
- k,
323
- g,
324
- _,
325
- r,
326
- A,
327
- s,
328
- n,
329
- o,
330
- l,
331
- c,
332
- h,
333
- P,
334
- q
335
- ];
336
- }
337
- class pe extends W {
338
- constructor(e) {
339
- super(), F(
340
- this,
341
- e,
342
- ge,
343
- fe,
344
- J,
345
- {
346
- lang: 8,
347
- clientstyling: 9,
348
- clientstylingurl: 10,
349
- mbsource: 11,
350
- translationurl: 12,
351
- isNativeApp: 0,
352
- mode: 1
353
- },
354
- me
355
- );
356
- }
357
- get lang() {
358
- return this.$$.ctx[8];
359
- }
360
- set lang(e) {
361
- this.$$set({ lang: e }), f();
362
- }
363
- get clientstyling() {
364
- return this.$$.ctx[9];
365
- }
366
- set clientstyling(e) {
367
- this.$$set({ clientstyling: e }), f();
368
- }
369
- get clientstylingurl() {
370
- return this.$$.ctx[10];
371
- }
372
- set clientstylingurl(e) {
373
- this.$$set({ clientstylingurl: e }), f();
374
- }
375
- get mbsource() {
376
- return this.$$.ctx[11];
377
- }
378
- set mbsource(e) {
379
- this.$$set({ mbsource: e }), f();
380
- }
381
- get translationurl() {
382
- return this.$$.ctx[12];
383
- }
384
- set translationurl(e) {
385
- this.$$set({ translationurl: e }), f();
386
- }
387
- get isNativeApp() {
388
- return this.$$.ctx[0];
389
- }
390
- set isNativeApp(e) {
391
- this.$$set({ isNativeApp: e }), f();
392
- }
393
- get mode() {
394
- return this.$$.ctx[1];
395
- }
396
- set mode(e) {
397
- this.$$set({ mode: e }), f();
398
- }
399
- }
400
- ne(pe, { lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, isNativeApp: { type: "Boolean" }, mode: {} }, [], [], !0);
401
- export {
402
- pe as default
403
- };