@everymatrix/player-account-controller-nd 1.45.0 → 1.45.3

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 (104) hide show
  1. package/components/{GeneralLogout-Dur72yyv.js → GeneralLogout-DI0_2Ld2.js} +245 -245
  2. package/components/{GeneralLogout-WbaN9lE3.cjs → GeneralLogout-bc8vhI_H.cjs} +5 -5
  3. package/components/PlayerAccountBettingHistory-BK6xPWSw.cjs +1 -0
  4. package/components/PlayerAccountBettingHistory-p8-C5d_q.js +328 -0
  5. package/components/PlayerAccountBiometrics-36-jzvmv.js +300 -0
  6. package/components/PlayerAccountBiometrics-C-3zrtyy.cjs +1 -0
  7. package/components/PlayerAccountClosureNd-DWE1BQjS.cjs +1 -0
  8. package/components/PlayerAccountClosureNd-DpV3ccPJ.js +339 -0
  9. package/components/PlayerAccountControllerNd-B2whVamd.cjs +1 -0
  10. package/components/{PlayerAccountControllerNd-DCbqnbg6.js → PlayerAccountControllerNd-Cn1L8BfZ.js} +2011 -2011
  11. package/components/{PlayerAccountGamingLimits-C2xXDjZV.js → PlayerAccountGamingLimits-X6i1dxNz.js} +183 -183
  12. package/components/PlayerAccountGamingLimits-a_ERECbs.cjs +1 -0
  13. package/components/PlayerAccountGamingLimitsConfirmationModal-_s70hpGn.js +306 -0
  14. package/components/PlayerAccountGamingLimitsConfirmationModal-l6qA-tGo.cjs +1 -0
  15. package/components/{PlayerAccountGamingLimitsGroupEdit-DmQ9XuZB.js → PlayerAccountGamingLimitsGroupEdit-BQ82HYJY.js} +966 -966
  16. package/components/PlayerAccountGamingLimitsGroupEdit-C0TmN9tW.cjs +10 -0
  17. package/components/{PlayerAccountGamingLimitsHistory2-_p2IXses.cjs → PlayerAccountGamingLimitsHistory2-BQABSfo3.cjs} +1 -1
  18. package/components/{PlayerAccountGamingLimitsHistory2-fOH4qSJR.js → PlayerAccountGamingLimitsHistory2-BkYPsgPu.js} +1 -1
  19. package/components/PlayerAccountGamingLimitsInfoCard-0xDp-CBL.cjs +1 -0
  20. package/components/{PlayerAccountGamingLimitsInfoCard-DTrLCGCx.js → PlayerAccountGamingLimitsInfoCard-DQkGickX.js} +351 -351
  21. package/components/PlayerAccountGamingLimitsPage2Gm16-DSOYjGfv.cjs +21 -0
  22. package/components/{PlayerAccountGamingLimitsPage2Gm16-1ZR10Ej8.js → PlayerAccountGamingLimitsPage2Gm16-DoQKbVDC.js} +851 -851
  23. package/components/{PlayerAccountGamingLimitsPopup-Bss_FRfq.js → PlayerAccountGamingLimitsPopup-BRVwX_uG.js} +79 -77
  24. package/components/PlayerAccountGamingLimitsPopup-CRCoJtQR.cjs +1 -0
  25. package/components/{PlayerAccountGamingLimitsWrapper2Nd-DqM8a5cp.js → PlayerAccountGamingLimitsWrapper2Nd-Bww6zBy7.js} +140 -140
  26. package/components/PlayerAccountGamingLimitsWrapper2Nd-LjReoru-.cjs +1 -0
  27. package/components/PlayerAccountMenuNd-BdhvWQDA.js +587 -0
  28. package/components/PlayerAccountMenuNd-uyqoX0xo.cjs +1 -0
  29. package/components/{PlayerAccountModal-BQ2N-DK2.js → PlayerAccountModal-BK_133rp.js} +49 -49
  30. package/components/PlayerAccountModal-CIR41mpM.cjs +1 -0
  31. package/components/PlayerAccountNotifications-COx0wvVZ.js +261 -0
  32. package/components/PlayerAccountNotifications-DNWMsUnC.cjs +1 -0
  33. package/components/{PlayerAccountSelfExclusionNd-Bx9an6cr.js → PlayerAccountSelfExclusionNd-B1PSYs3p.js} +1778 -1778
  34. package/components/{PlayerAccountSelfExclusionNd-BuzzsS0G.cjs → PlayerAccountSelfExclusionNd-CUN7qWEA.cjs} +125 -125
  35. package/components/PlayerAccountTimeout-C0nlqzAC.cjs +1 -0
  36. package/components/{PlayerAccountTimeout-DAzcm92_.js → PlayerAccountTimeout-DMvUsWoq.js} +106 -106
  37. package/components/PlayerActiveBonuses-CpEieMUG.js +986 -0
  38. package/components/PlayerActiveBonuses-bY0Y51Al.cjs +1 -0
  39. package/components/PlayerBonusCard-DGoTFlMq.js +565 -0
  40. package/components/PlayerBonusCard-DdxYH7lf.cjs +1 -0
  41. package/components/PlayerBonusHistory-DdGgXcKX.cjs +1 -0
  42. package/components/PlayerBonusHistory-rFWrF_Pj.js +840 -0
  43. package/components/PlayerChangePassword-BDyXZ2_q.cjs +3 -0
  44. package/components/PlayerChangePassword-BkRFX3fB.js +1161 -0
  45. package/components/PlayerDeposit-CYpXuZIT.cjs +1 -0
  46. package/components/PlayerDeposit-T-QxU0tF.js +395 -0
  47. package/components/PlayerGamingHistory-DCOFqQCz.js +920 -0
  48. package/components/PlayerGamingHistory-DXX4_ApI.cjs +1 -0
  49. package/components/PlayerPendingWithdrawals-DR9D_EFU.js +307 -0
  50. package/components/PlayerPendingWithdrawals-Dn63yKxo.cjs +1 -0
  51. package/components/PlayerProfileInfo-CmcXF1Sx.js +1707 -0
  52. package/components/PlayerProfileInfo-CsWD1vK0.cjs +1 -0
  53. package/components/PlayerRealityCheck-BaBE_tNE.cjs +1 -0
  54. package/components/PlayerRealityCheck-CRHHpeWT.js +587 -0
  55. package/components/PlayerTransactionHistory-DJICk5qY.cjs +1 -0
  56. package/components/PlayerTransactionHistory-HQMXVkZj.js +311 -0
  57. package/components/PlayerWithdrawal-BToCctRz.js +365 -0
  58. package/components/PlayerWithdrawal-DuxGAxKs.cjs +1 -0
  59. package/es2015/player-account-controller-nd.cjs +1 -1
  60. package/es2015/player-account-controller-nd.js +1 -1
  61. package/package.json +2 -2
  62. package/components/PlayerAccountBettingHistory-BWMEGhv1.js +0 -328
  63. package/components/PlayerAccountBettingHistory-CvFzGDm4.cjs +0 -1
  64. package/components/PlayerAccountBiometrics--Rc4hXU1.cjs +0 -1
  65. package/components/PlayerAccountBiometrics-ByG3_I95.js +0 -300
  66. package/components/PlayerAccountClosureNd-034rDNz4.cjs +0 -1
  67. package/components/PlayerAccountClosureNd-DZTrmidg.js +0 -339
  68. package/components/PlayerAccountControllerNd-BAD6QpiV.cjs +0 -1
  69. package/components/PlayerAccountGamingLimits-Dtw0RzGI.cjs +0 -1
  70. package/components/PlayerAccountGamingLimitsConfirmationModal-CL8VasWX.js +0 -306
  71. package/components/PlayerAccountGamingLimitsConfirmationModal-Cvsvauqa.cjs +0 -1
  72. package/components/PlayerAccountGamingLimitsGroupEdit-tfKhIo7R.cjs +0 -10
  73. package/components/PlayerAccountGamingLimitsInfoCard--AbjEx7s.cjs +0 -1
  74. package/components/PlayerAccountGamingLimitsPage2Gm16-Dymt7LmL.cjs +0 -21
  75. package/components/PlayerAccountGamingLimitsPopup-DVEuryoE.cjs +0 -1
  76. package/components/PlayerAccountGamingLimitsWrapper2Nd-D3v3WC8t.cjs +0 -1
  77. package/components/PlayerAccountMenuNd-CBH9HOGY.js +0 -587
  78. package/components/PlayerAccountMenuNd-CvdxB7NH.cjs +0 -1
  79. package/components/PlayerAccountModal-DpMfe1gv.cjs +0 -1
  80. package/components/PlayerAccountNotifications-Dwb_RDr0.cjs +0 -1
  81. package/components/PlayerAccountNotifications-QmKY9-B0.js +0 -261
  82. package/components/PlayerAccountTimeout-dxzuaoP9.cjs +0 -1
  83. package/components/PlayerActiveBonuses-BcPMSj2n.js +0 -986
  84. package/components/PlayerActiveBonuses-D0-qI8iz.cjs +0 -1
  85. package/components/PlayerBonusCard-BoENnXsd.cjs +0 -1
  86. package/components/PlayerBonusCard-DhNWEP3Y.js +0 -565
  87. package/components/PlayerBonusHistory-CKKn9KgY.js +0 -840
  88. package/components/PlayerBonusHistory-DoxmVui6.cjs +0 -1
  89. package/components/PlayerChangePassword-BC6buQCz.js +0 -1161
  90. package/components/PlayerChangePassword-RpQIhFff.cjs +0 -3
  91. package/components/PlayerDeposit-B7M0Rg-o.js +0 -395
  92. package/components/PlayerDeposit-COhpfcRx.cjs +0 -1
  93. package/components/PlayerGamingHistory-DIk73kDr.js +0 -920
  94. package/components/PlayerGamingHistory-Dbafpt79.cjs +0 -1
  95. package/components/PlayerPendingWithdrawals-CVBvRj42.cjs +0 -1
  96. package/components/PlayerPendingWithdrawals-CxklAVTc.js +0 -307
  97. package/components/PlayerProfileInfo-BeD6hzPW.cjs +0 -1
  98. package/components/PlayerProfileInfo-CoKc-eaN.js +0 -1707
  99. package/components/PlayerRealityCheck-B37H9_Rn.cjs +0 -1
  100. package/components/PlayerRealityCheck-DekJHe9F.js +0 -587
  101. package/components/PlayerTransactionHistory-CxYO3lnm.cjs +0 -1
  102. package/components/PlayerTransactionHistory-D7Tba-Nn.js +0 -311
  103. package/components/PlayerWithdrawal-BQyz5UQ7.js +0 -365
  104. package/components/PlayerWithdrawal-DYkzBPcQ.cjs +0 -1
@@ -0,0 +1,328 @@
1
+ import { a as V, $ as F, S as G, i as Z, f as C, c as J, s as K, b as Q, e as M, d as S, t as O, g as r, h as I, j as v, k as q, l as i, m as R, n as N, o as x, p as z, r as X, q as Y, u as $, v as tt, w as D, x as et, y as st } from "./GeneralLogout-DI0_2Ld2.js";
2
+ function U(s, t) {
3
+ V(s, t);
4
+ }
5
+ function it(s) {
6
+ F.set(s);
7
+ }
8
+ const nt = {
9
+ en: {
10
+ titleBettingHistory: "Betting History",
11
+ settledBets: "Settled Bets",
12
+ openBets: "Open Bets"
13
+ },
14
+ ro: {
15
+ titleBettingHistory: "Istoric Pariuri",
16
+ settledBets: "Pariuri Decise",
17
+ openBets: "Pariuri Deschise"
18
+ },
19
+ es: {
20
+ titleBettingHistory: "Historial de Apuestas",
21
+ settledBets: "Apuestas cerradas",
22
+ openBets: "Apuestas abiertas"
23
+ },
24
+ hr: {
25
+ titleBettingHistory: "Povijest klađenja",
26
+ settledBets: "Obračunate oklade",
27
+ openBets: "Otvorene oklade"
28
+ },
29
+ "pt-br": {
30
+ titleBettingHistory: "Histórico de apostas",
31
+ settledBets: "Apostas liquidadas",
32
+ openBets: "apostas abertas"
33
+ },
34
+ "es-mx": {
35
+ titleBettingHistory: "Historial de apuesta",
36
+ settledBets: "Apuestas liquidadas",
37
+ openBets: "Apuestas abiertas"
38
+ },
39
+ tr: {
40
+ titleBettingHistory: "Bahis Geçmişi",
41
+ settledBets: "Sonuçlandırılmış Bahisler",
42
+ openBets: "Açık Bahisler"
43
+ }
44
+ };
45
+ function lt(s) {
46
+ Q(s, "svelte-pk11g7", `@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(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.BettingHistoryTitle.BettingHistoryTitleMobile{font-size:16px}.BettingHistoryTitle.BettingHistoryTitleNone{display:none}.BettingHistoryWrapper{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));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(--emfe-w-color-black, #000);background:var(--emfe-w-color-white, #fff);border:2px solid var(--emfe-w-color-black, #000)}.BettingHistoryButton.BettingHistoryButtonMobile{padding:20px;font-size:12px}.BettingHistoryButton.BettingHistoryButtonSelected{color:var(--emfe-w-color-white, #fff);background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:none}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.OM-MatchScore,.OM-MatchScore__List{display:flex;align-items:center;justify-content:center;list-style-type:none;margin:0;padding:0}`);
47
+ }
48
+ function ot(s) {
49
+ let t, n, f, y, b, H, a, o, B, p, w = (
50
+ /*$_*/
51
+ s[4]("titleBettingHistory") + ""
52
+ ), g, c, k;
53
+ return {
54
+ c() {
55
+ t = M("div"), n = D("svg"), f = D("defs"), y = D("style"), b = O(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"), H = D("g"), a = D("g"), o = D("path"), B = S(), p = M("h2"), g = O(w), r(o, "class", "aaa"), r(o, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), r(o, "transform", "translate(15 15) rotate(180)"), r(a, "transform", "translate(20 158)"), r(H, "transform", "translate(-20 -158)"), r(n, "xmlns", "http://www.w3.org/2000/svg"), r(n, "width", "15"), r(n, "height", "15"), r(n, "viewBox", "0 0 15 15"), r(p, "class", "BettingHistoryTitleMobile"), r(t, "class", "MenuReturnButton");
56
+ },
57
+ m(h, l) {
58
+ q(h, t, l), i(t, n), i(n, f), i(f, y), i(y, b), i(n, H), i(H, a), i(a, o), i(t, B), i(t, p), i(p, g), c || (k = R(
59
+ t,
60
+ "click",
61
+ /*click_handler*/
62
+ s[13]
63
+ ), c = !0);
64
+ },
65
+ p(h, l) {
66
+ l & /*$_*/
67
+ 16 && w !== (w = /*$_*/
68
+ h[4]("titleBettingHistory") + "") && N(g, w);
69
+ },
70
+ d(h) {
71
+ h && z(t), c = !1, k();
72
+ }
73
+ };
74
+ }
75
+ function W(s) {
76
+ return { c: x, m: x, d: x };
77
+ }
78
+ function rt(s) {
79
+ let t, n, f, y = (
80
+ /*$_*/
81
+ s[4]("bettingHistory.title") + ""
82
+ ), b, H, a, o, B = (
83
+ /*$_*/
84
+ s[4]("bettingHistory.openBets") + ""
85
+ ), p, w, g, c = (
86
+ /*$_*/
87
+ s[4]("bettingHistory.settledBets") + ""
88
+ ), k, h, l, E, T, L, j, P, _ = (
89
+ /*isMobile*/
90
+ s[5] && ot(s)
91
+ ), m = (
92
+ /*showModal*/
93
+ s[3] === "true" && /*selectedBetId*/
94
+ s[1] && W()
95
+ );
96
+ return {
97
+ c() {
98
+ t = M("div"), _ && _.c(), n = S(), f = M("h2"), b = O(y), H = S(), a = M("div"), o = M("button"), p = O(B), w = S(), g = M("button"), k = O(c), h = S(), l = M("om-betting-history-list"), E = S(), m && m.c(), T = S(), L = M("div"), r(f, "class", "BettingHistoryTitle " + /*isMobile*/
99
+ (s[5] ? "BettingHistoryTitleNone" : "")), r(f, "part", "`BettingHistoryTitleMobile"), r(o, "class", "BettingHistoryButton " + /*isMobile*/
100
+ (s[5] ? "BettingHistoryButtonMobile" : "")), I(
101
+ o,
102
+ "BettingHistoryButtonSelected",
103
+ /*betstatus*/
104
+ s[0] === "openBets"
105
+ ), r(g, "class", "BettingHistoryButton"), I(
106
+ g,
107
+ "BettingHistoryButtonSelected",
108
+ /*betstatus*/
109
+ s[0] === "settledBets"
110
+ ), I(
111
+ g,
112
+ "mobile",
113
+ /*isMobile*/
114
+ s[5]
115
+ ), r(a, "class", "BettingHistoryTabs"), v(
116
+ l,
117
+ "bet-status",
118
+ /*betstatus*/
119
+ s[0]
120
+ ), v(l, "item-layout", "V2"), v(l, "match-score-layout", "v2"), v(l, "match-score-scope", "BHDetailed"), v(l, "date-format", "dd.mm.yyyy"), v(l, "time-format", "HH:MM"), v(l, "tournament-route", ":sportId/:tournamentId"), v(l, "match-route", ":betId"), r(L, "class", "OM-MatchScore OM-MatchScore__List"), r(t, "class", "BettingHistoryWrapper"), I(
121
+ t,
122
+ "BettingHistoryWrapperMobile",
123
+ /*isMobile*/
124
+ s[5]
125
+ );
126
+ },
127
+ m(u, e) {
128
+ q(u, t, e), _ && _.m(t, null), i(t, n), i(t, f), i(f, b), i(t, H), i(t, a), i(a, o), i(o, p), i(a, w), i(a, g), i(g, k), i(t, h), i(t, l), i(t, E), m && m.m(t, null), i(t, T), i(t, L), s[16](t), j || (P = [
129
+ R(
130
+ o,
131
+ "click",
132
+ /*click_handler_1*/
133
+ s[14]
134
+ ),
135
+ R(
136
+ g,
137
+ "click",
138
+ /*click_handler_2*/
139
+ s[15]
140
+ ),
141
+ R(
142
+ l,
143
+ "routeChange",
144
+ /*handleMoreDetails*/
145
+ s[8]
146
+ )
147
+ ], j = !0);
148
+ },
149
+ p(u, [e]) {
150
+ /*isMobile*/
151
+ u[5] && _.p(u, e), e & /*$_*/
152
+ 16 && y !== (y = /*$_*/
153
+ u[4]("bettingHistory.title") + "") && N(b, y), e & /*$_*/
154
+ 16 && B !== (B = /*$_*/
155
+ u[4]("bettingHistory.openBets") + "") && N(p, B), e & /*betstatus*/
156
+ 1 && I(
157
+ o,
158
+ "BettingHistoryButtonSelected",
159
+ /*betstatus*/
160
+ u[0] === "openBets"
161
+ ), e & /*$_*/
162
+ 16 && c !== (c = /*$_*/
163
+ u[4]("bettingHistory.settledBets") + "") && N(k, c), e & /*betstatus*/
164
+ 1 && I(
165
+ g,
166
+ "BettingHistoryButtonSelected",
167
+ /*betstatus*/
168
+ u[0] === "settledBets"
169
+ ), e & /*betstatus*/
170
+ 1 && v(
171
+ l,
172
+ "bet-status",
173
+ /*betstatus*/
174
+ u[0]
175
+ ), /*showModal*/
176
+ u[3] === "true" && /*selectedBetId*/
177
+ u[1] ? m || (m = W(), m.c(), m.m(t, T)) : m && (m.d(1), m = null);
178
+ },
179
+ i: x,
180
+ o: x,
181
+ d(u) {
182
+ u && z(t), _ && _.d(), m && m.d(), s[16](null), j = !1, X(P);
183
+ }
184
+ };
185
+ }
186
+ function at(s, t, n) {
187
+ let f;
188
+ Y(s, st, (e) => n(4, f = e));
189
+ let { betstatus: y = "openBets" } = t, { lang: b = "en" } = t, { selectedBetId: H = null } = t, { clientstyling: a = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: B = "" } = t, p = "false", w = window.navigator.userAgent, g = $(w) !== "PC", c;
190
+ const k = () => {
191
+ fetch(B).then((d) => d.json()).then((d) => {
192
+ Object.keys(d).forEach((A) => {
193
+ U(A, d[A]);
194
+ });
195
+ }).catch((d) => {
196
+ console.log(d);
197
+ });
198
+ };
199
+ Object.entries(nt).forEach(([e, d]) => {
200
+ U(e, d);
201
+ });
202
+ const h = (e) => {
203
+ n(0, y = e);
204
+ }, l = () => {
205
+ window.postMessage(
206
+ {
207
+ type: "PlayerAccountMenuActive",
208
+ isMobile: g
209
+ },
210
+ window.location.href
211
+ );
212
+ }, E = (e) => {
213
+ const { betId: d } = e.detail.params;
214
+ n(1, H = d), n(3, p = "true");
215
+ }, T = (e) => {
216
+ var d;
217
+ ((d = e.data) == null ? void 0 : d.type) === "ModalClosed" && n(3, p = "false");
218
+ }, L = () => {
219
+ let e = document.createElement("style");
220
+ e.innerHTML = a, c.appendChild(e);
221
+ }, j = () => {
222
+ let e = new URL(o), d = document.createElement("style");
223
+ fetch(e.href).then((A) => A.text()).then((A) => {
224
+ d.innerHTML = A, setTimeout(
225
+ () => {
226
+ c.appendChild(d);
227
+ },
228
+ 1
229
+ );
230
+ });
231
+ };
232
+ tt(() => (window.addEventListener("message", T, !1), () => {
233
+ window.removeEventListener("message", T);
234
+ }));
235
+ const P = () => l(), _ = () => h("openBets"), m = () => h("settledBets");
236
+ function u(e) {
237
+ et[e ? "unshift" : "push"](() => {
238
+ c = e, n(2, c);
239
+ });
240
+ }
241
+ return s.$$set = (e) => {
242
+ "betstatus" in e && n(0, y = e.betstatus), "lang" in e && n(9, b = e.lang), "selectedBetId" in e && n(1, H = e.selectedBetId), "clientstyling" in e && n(10, a = e.clientstyling), "clientstylingurl" in e && n(11, o = e.clientstylingurl), "translationurl" in e && n(12, B = e.translationurl);
243
+ }, s.$$.update = () => {
244
+ s.$$.dirty & /*lang*/
245
+ 512 && b && it(b), s.$$.dirty & /*clientstyling, customStylingContainer*/
246
+ 1028 && a && c && L(), s.$$.dirty & /*clientstylingurl, customStylingContainer*/
247
+ 2052 && o && c && j(), s.$$.dirty & /*translationurl*/
248
+ 4096 && B && k();
249
+ }, [
250
+ y,
251
+ H,
252
+ c,
253
+ p,
254
+ f,
255
+ g,
256
+ h,
257
+ l,
258
+ E,
259
+ b,
260
+ a,
261
+ o,
262
+ B,
263
+ P,
264
+ _,
265
+ m,
266
+ u
267
+ ];
268
+ }
269
+ class ct extends G {
270
+ constructor(t) {
271
+ super(), Z(
272
+ this,
273
+ t,
274
+ at,
275
+ rt,
276
+ K,
277
+ {
278
+ betstatus: 0,
279
+ lang: 9,
280
+ selectedBetId: 1,
281
+ clientstyling: 10,
282
+ clientstylingurl: 11,
283
+ translationurl: 12
284
+ },
285
+ lt
286
+ );
287
+ }
288
+ get betstatus() {
289
+ return this.$$.ctx[0];
290
+ }
291
+ set betstatus(t) {
292
+ this.$$set({ betstatus: t }), C();
293
+ }
294
+ get lang() {
295
+ return this.$$.ctx[9];
296
+ }
297
+ set lang(t) {
298
+ this.$$set({ lang: t }), C();
299
+ }
300
+ get selectedBetId() {
301
+ return this.$$.ctx[1];
302
+ }
303
+ set selectedBetId(t) {
304
+ this.$$set({ selectedBetId: t }), C();
305
+ }
306
+ get clientstyling() {
307
+ return this.$$.ctx[10];
308
+ }
309
+ set clientstyling(t) {
310
+ this.$$set({ clientstyling: t }), C();
311
+ }
312
+ get clientstylingurl() {
313
+ return this.$$.ctx[11];
314
+ }
315
+ set clientstylingurl(t) {
316
+ this.$$set({ clientstylingurl: t }), C();
317
+ }
318
+ get translationurl() {
319
+ return this.$$.ctx[12];
320
+ }
321
+ set translationurl(t) {
322
+ this.$$set({ translationurl: t }), C();
323
+ }
324
+ }
325
+ J(ct, { betstatus: {}, lang: {}, selectedBetId: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
326
+ export {
327
+ ct as default
328
+ };
@@ -0,0 +1,300 @@
1
+ import { a as O, $ as N, S as W, i as H, f as x, c as q, s as I, b as K, e as B, d as C, t as j, g as a, k as S, l as o, m as F, n as U, o as z, p as R, q as V, u as Z, w as k, x as G, y as J } from "./GeneralLogout-DI0_2Ld2.js";
2
+ function Y(e, t) {
3
+ O(e, t);
4
+ }
5
+ function Q(e) {
6
+ N.set(e);
7
+ }
8
+ const L = {
9
+ en: {
10
+ titleBiometrics: "Biometrics Authentication",
11
+ descriptionParagraph1: "Use biometric login with your fingerprint or face for faster and easier access to your account.",
12
+ descriptionParagraph2: "You can turn this feature on and off at any time",
13
+ btnEnableBiometrics: "Enable biometrics",
14
+ btnDisableBiometrics: "Disable biometrics"
15
+ },
16
+ "zh-hk": {
17
+ titleBiometrics: "Biometrics Authentication",
18
+ descriptionParagraph1: "Use biometric login with your fingerprint or face for faster and easier access to your account.",
19
+ descriptionParagraph2: "You can turn this feature on and off at any time",
20
+ btnEnableBiometrics: "Enable biometrics",
21
+ btnDisableBiometrics: "Disable biometrics"
22
+ },
23
+ fr: {
24
+ titleBiometrics: "Biometrics Authentication",
25
+ descriptionParagraph1: "Use biometric login with your fingerprint or face for faster and easier access to your account.",
26
+ descriptionParagraph2: "You can turn this feature on and off at any time",
27
+ btnEnableBiometrics: "Enable biometrics",
28
+ btnDisableBiometrics: "Disable biometrics"
29
+ },
30
+ tr: {
31
+ titleBiometrics: "Biometrics Authentication",
32
+ descriptionParagraph1: "Use biometric login with your fingerprint or face for faster and easier access to your account.",
33
+ descriptionParagraph2: "You can turn this feature on and off at any time",
34
+ btnEnableBiometrics: "Enable biometrics",
35
+ btnDisableBiometrics: "Disable biometrics"
36
+ },
37
+ ro: {
38
+ titleBiometrics: "Biometrics Authentication",
39
+ descriptionParagraph1: "Use biometric login with your fingerprint or face for faster and easier access to your account.",
40
+ descriptionParagraph2: "You can turn this feature on and off at any time",
41
+ btnEnableBiometrics: "Enable biometrics",
42
+ btnDisableBiometrics: "Disable biometrics"
43
+ },
44
+ es: {
45
+ titleBiometrics: "Biometrics Authentication",
46
+ descriptionParagraph1: "Use biometric login with your fingerprint or face for faster and easier access to your account.",
47
+ descriptionParagraph2: "You can turn this feature on and off at any time",
48
+ btnEnableBiometrics: "Enable biometrics",
49
+ btnDisableBiometrics: "Disable biometrics"
50
+ },
51
+ pt: {
52
+ titleBiometrics: "Biometrics Authentication",
53
+ descriptionParagraph1: "Use biometric login with your fingerprint or face for faster and easier access to your account.",
54
+ descriptionParagraph2: "You can turn this feature on and off at any time",
55
+ btnEnableBiometrics: "Enable biometrics",
56
+ btnDisableBiometrics: "Disable biometrics"
57
+ },
58
+ hr: {
59
+ titleBiometrics: "Biometrijska autentifikacija",
60
+ descriptionParagraph1: "Koristite biometrijsku prijavu otiskom prsta ili licem za brži i jednostavniji pristup svom računu.",
61
+ descriptionParagraph2: "Ovu značajku možete uključiti i isključiti u bilo kojem trenutku",
62
+ btnEnableBiometrics: "Omogući biometriju",
63
+ btnDisableBiometrics: "Onemogući biometriju"
64
+ },
65
+ "pt-br": {
66
+ titleBiometrics: "Biometrics Authentication",
67
+ descriptionParagraph1: "Use biometric login with your fingerprint or face for faster and easier access to your account.",
68
+ descriptionParagraph2: "You can turn this feature on and off at any time",
69
+ btnEnableBiometrics: "Enable biometrics",
70
+ btnDisableBiometrics: "Disable biometrics"
71
+ },
72
+ "es-mx": {
73
+ titleBiometrics: "Biometrics Authentication",
74
+ descriptionParagraph1: "Use biometric login with your fingerprint or face for faster and easier access to your account.",
75
+ descriptionParagraph2: "You can turn this feature on and off at any time",
76
+ btnEnableBiometrics: "Enable biometrics",
77
+ btnDisableBiometrics: "Disable biometrics"
78
+ }
79
+ };
80
+ function X(e) {
81
+ K(e, "svelte-19j3uvf", ".BiometricsWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));padding:50px;max-width:760px}.BiometricsWrapper.BiometricsWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:20px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.BiometricsTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.BiometricsTitleMobile{font-size:16px}.BiometricsTitleNone{display:none}.BiometricsDescription{color:var(--emfe-w-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 .BiometricsToggle{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-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}.BiometricsActionButtons.BiometricsActionButtonsMobile{width:100%;grid-template-columns:1fr}.BiometricsActionButtons.BiometricsActionButtonsMobile .BiometricsToggle{height:40px;font-size:12px}");
82
+ }
83
+ function $(e) {
84
+ let t, i, y, s, u, m, f, n, c, p, d = (
85
+ /*$_*/
86
+ e[2]("titleBiometrics") + ""
87
+ ), P, w, v;
88
+ return {
89
+ c() {
90
+ t = B("div"), i = k("svg"), y = k("defs"), s = k("style"), u = j(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"), m = k("g"), f = k("g"), n = k("path"), c = C(), p = B("h2"), P = j(d), a(n, "class", "aaa"), a(n, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), a(n, "transform", "translate(15 15) rotate(180)"), a(f, "transform", "translate(20 158)"), a(m, "transform", "translate(-20 -158)"), a(i, "xmlns", "http://www.w3.org/2000/svg"), a(i, "width", "15"), a(i, "height", "15"), a(i, "viewBox", "0 0 15 15"), a(p, "class", "BiometricsTitleMobile"), a(p, "part", "BiometricsTitleMobile"), a(t, "class", "MenuReturnButton"), a(t, "part", "MenuReturnButton");
91
+ },
92
+ m(h, D) {
93
+ S(h, t, D), o(t, i), o(i, y), o(y, s), o(s, u), o(i, m), o(m, f), o(f, n), o(t, c), o(t, p), o(p, P), w || (v = F(
94
+ t,
95
+ "click",
96
+ /*click_handler*/
97
+ e[10]
98
+ ), w = !0);
99
+ },
100
+ p(h, D) {
101
+ D & /*$_*/
102
+ 4 && d !== (d = /*$_*/
103
+ h[2]("titleBiometrics") + "") && U(P, d);
104
+ },
105
+ d(h) {
106
+ h && R(t), w = !1, v();
107
+ }
108
+ };
109
+ }
110
+ function tt(e) {
111
+ let t, i, y, s, u = (
112
+ /*$_*/
113
+ e[2]("titleBiometrics") + ""
114
+ ), m, f, n, c, p = (
115
+ /*$_*/
116
+ e[2]("descriptionParagraph1") + ""
117
+ ), d, P, w, v = (
118
+ /*$_*/
119
+ e[2]("descriptionParagraph2") + ""
120
+ ), h, D, A, E, M = (
121
+ /*biometricsenabled*/
122
+ (e[0] === "true" ? (
123
+ /*$_*/
124
+ e[2]("btnDisableBiometrics")
125
+ ) : (
126
+ /*$_*/
127
+ e[2]("btnEnableBiometrics")
128
+ )) + ""
129
+ ), T, r, b, l = (
130
+ /*isMobile*/
131
+ e[3] && $(e)
132
+ );
133
+ return {
134
+ c() {
135
+ t = B("div"), i = B("div"), l && l.c(), y = C(), s = B("h2"), m = j(u), f = C(), n = B("div"), c = B("p"), d = j(p), P = C(), w = B("p"), h = j(v), D = C(), A = B("div"), E = B("button"), T = j(M), a(s, "class", "BiometricsTitle " + /*isMobile*/
136
+ (e[3] ? "BiometricsTitleNone" : "")), a(n, "class", "BiometricsDescription " + /*isMobile*/
137
+ (e[3] ? "BiometricsDescriptionMobile" : "")), a(E, "class", "BiometricsToggle"), a(A, "class", "BiometricsActionButtons " + /*isMobile*/
138
+ (e[3] ? "BiometricsActionButtonsMobile" : "")), a(i, "class", "BiometricsWrapper " + /*isMobile*/
139
+ (e[3] ? "BiometricsWrapperMobile" : ""));
140
+ },
141
+ m(g, _) {
142
+ S(g, t, _), o(t, i), l && l.m(i, null), o(i, y), o(i, s), o(s, m), o(i, f), o(i, n), o(n, c), o(c, d), o(n, P), o(n, w), o(w, h), o(i, D), o(i, A), o(A, E), o(E, T), e[12](t), r || (b = F(
143
+ E,
144
+ "click",
145
+ /*click_handler_1*/
146
+ e[11]
147
+ ), r = !0);
148
+ },
149
+ p(g, [_]) {
150
+ /*isMobile*/
151
+ g[3] && l.p(g, _), _ & /*$_*/
152
+ 4 && u !== (u = /*$_*/
153
+ g[2]("titleBiometrics") + "") && U(m, u), _ & /*$_*/
154
+ 4 && p !== (p = /*$_*/
155
+ g[2]("descriptionParagraph1") + "") && U(d, p), _ & /*$_*/
156
+ 4 && v !== (v = /*$_*/
157
+ g[2]("descriptionParagraph2") + "") && U(h, v), _ & /*biometricsenabled, $_*/
158
+ 5 && M !== (M = /*biometricsenabled*/
159
+ (g[0] === "true" ? (
160
+ /*$_*/
161
+ g[2]("btnDisableBiometrics")
162
+ ) : (
163
+ /*$_*/
164
+ g[2]("btnEnableBiometrics")
165
+ )) + "") && U(T, M);
166
+ },
167
+ i: z,
168
+ o: z,
169
+ d(g) {
170
+ g && R(t), l && l.d(), e[12](null), r = !1, b();
171
+ }
172
+ };
173
+ }
174
+ function et(e, t, i) {
175
+ let y;
176
+ V(e, J, (r) => i(2, y = r));
177
+ let { biometricsenabled: s = "false" } = t, { lang: u = "en" } = t, { clientstyling: m = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: n = "" } = t, c, p = window.navigator.userAgent, d = Z(p) !== "PC";
178
+ const P = () => {
179
+ fetch(n).then((b) => b.json()).then((b) => {
180
+ Object.keys(b).forEach((l) => {
181
+ Y(l, b[l]);
182
+ });
183
+ }).catch((b) => {
184
+ console.log(b);
185
+ });
186
+ };
187
+ Object.keys(L).forEach((r) => {
188
+ Y(r, L[r]);
189
+ });
190
+ const w = () => {
191
+ let r = document.createElement("style");
192
+ r.innerHTML = m, c.appendChild(r);
193
+ }, v = () => {
194
+ let r = new URL(f), b = document.createElement("style");
195
+ fetch(r.href).then((l) => l.text()).then((l) => {
196
+ b.innerHTML = l, setTimeout(
197
+ () => {
198
+ c.appendChild(b);
199
+ },
200
+ 1
201
+ );
202
+ });
203
+ }, h = () => {
204
+ Q(u);
205
+ }, D = () => {
206
+ window.postMessage(
207
+ {
208
+ type: "PlayerAccountMenuActive",
209
+ isMobile: d
210
+ },
211
+ window.location.href
212
+ );
213
+ }, A = () => {
214
+ s === "true" ? i(0, s = "false") : s === "false" && i(0, s = "true"), window.postMessage({
215
+ type: "ToggleBiometrics",
216
+ data: s
217
+ });
218
+ }, E = () => D(), M = () => A();
219
+ function T(r) {
220
+ G[r ? "unshift" : "push"](() => {
221
+ c = r, i(1, c);
222
+ });
223
+ }
224
+ return e.$$set = (r) => {
225
+ "biometricsenabled" in r && i(0, s = r.biometricsenabled), "lang" in r && i(6, u = r.lang), "clientstyling" in r && i(7, m = r.clientstyling), "clientstylingurl" in r && i(8, f = r.clientstylingurl), "translationurl" in r && i(9, n = r.translationurl);
226
+ }, e.$$.update = () => {
227
+ e.$$.dirty & /*lang*/
228
+ 64 && u && h(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
229
+ 258 && f && c && v(), e.$$.dirty & /*clientstyling, customStylingContainer*/
230
+ 130 && m && c && w(), e.$$.dirty & /*translationurl*/
231
+ 512 && n && P();
232
+ }, [
233
+ s,
234
+ c,
235
+ y,
236
+ d,
237
+ D,
238
+ A,
239
+ u,
240
+ m,
241
+ f,
242
+ n,
243
+ E,
244
+ M,
245
+ T
246
+ ];
247
+ }
248
+ class it extends W {
249
+ constructor(t) {
250
+ super(), H(
251
+ this,
252
+ t,
253
+ et,
254
+ tt,
255
+ I,
256
+ {
257
+ biometricsenabled: 0,
258
+ lang: 6,
259
+ clientstyling: 7,
260
+ clientstylingurl: 8,
261
+ translationurl: 9
262
+ },
263
+ X
264
+ );
265
+ }
266
+ get biometricsenabled() {
267
+ return this.$$.ctx[0];
268
+ }
269
+ set biometricsenabled(t) {
270
+ this.$$set({ biometricsenabled: t }), x();
271
+ }
272
+ get lang() {
273
+ return this.$$.ctx[6];
274
+ }
275
+ set lang(t) {
276
+ this.$$set({ lang: t }), x();
277
+ }
278
+ get clientstyling() {
279
+ return this.$$.ctx[7];
280
+ }
281
+ set clientstyling(t) {
282
+ this.$$set({ clientstyling: t }), x();
283
+ }
284
+ get clientstylingurl() {
285
+ return this.$$.ctx[8];
286
+ }
287
+ set clientstylingurl(t) {
288
+ this.$$set({ clientstylingurl: t }), x();
289
+ }
290
+ get translationurl() {
291
+ return this.$$.ctx[9];
292
+ }
293
+ set translationurl(t) {
294
+ this.$$set({ translationurl: t }), x();
295
+ }
296
+ }
297
+ q(it, { biometricsenabled: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
298
+ export {
299
+ it as default
300
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-bc8vhI_H.cjs");function M(i,t){e.addMessages(i,t)}function j(i){e.$locale.set(i)}const k={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"}};function T(i){e.append_styles(i,"svelte-19j3uvf",".BiometricsWrapper{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));padding:50px;max-width:760px}.BiometricsWrapper.BiometricsWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:20px}.MenuReturnButton svg{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.BiometricsTitle{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.BiometricsTitleMobile{font-size:16px}.BiometricsTitleNone{display:none}.BiometricsDescription{color:var(--emfe-w-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 .BiometricsToggle{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-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}.BiometricsActionButtons.BiometricsActionButtonsMobile{width:100%;grid-template-columns:1fr}.BiometricsActionButtons.BiometricsActionButtonsMobile .BiometricsToggle{height:40px;font-size:12px}")}function C(i){let t,r,h,o,m,c,p,a,s,u,b=i[2]("titleBiometrics")+"",v,B,y;return{c(){t=e.element("div"),r=e.svg_element("svg"),h=e.svg_element("defs"),o=e.svg_element("style"),m=e.text(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"),c=e.svg_element("g"),p=e.svg_element("g"),a=e.svg_element("path"),s=e.space(),u=e.element("h2"),v=e.text(b),e.attr(a,"class","aaa"),e.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"),e.attr(a,"transform","translate(15 15) rotate(180)"),e.attr(p,"transform","translate(20 158)"),e.attr(c,"transform","translate(-20 -158)"),e.attr(r,"xmlns","http://www.w3.org/2000/svg"),e.attr(r,"width","15"),e.attr(r,"height","15"),e.attr(r,"viewBox","0 0 15 15"),e.attr(u,"class","BiometricsTitleMobile"),e.attr(u,"part","BiometricsTitleMobile"),e.attr(t,"class","MenuReturnButton"),e.attr(t,"part","MenuReturnButton")},m(g,w){e.insert(g,t,w),e.append(t,r),e.append(r,h),e.append(h,o),e.append(o,m),e.append(r,c),e.append(c,p),e.append(p,a),e.append(t,s),e.append(t,u),e.append(u,v),B||(y=e.listen(t,"click",i[10]),B=!0)},p(g,w){w&4&&b!==(b=g[2]("titleBiometrics")+"")&&e.set_data(v,b)},d(g){g&&e.detach(t),B=!1,y()}}}function U(i){let t,r,h,o,m=i[2]("titleBiometrics")+"",c,p,a,s,u=i[2]("descriptionParagraph1")+"",b,v,B,y=i[2]("descriptionParagraph2")+"",g,w,_,D,A=(i[0]==="true"?i[2]("btnDisableBiometrics"):i[2]("btnEnableBiometrics"))+"",E,n,f,l=i[3]&&C(i);return{c(){t=e.element("div"),r=e.element("div"),l&&l.c(),h=e.space(),o=e.element("h2"),c=e.text(m),p=e.space(),a=e.element("div"),s=e.element("p"),b=e.text(u),v=e.space(),B=e.element("p"),g=e.text(y),w=e.space(),_=e.element("div"),D=e.element("button"),E=e.text(A),e.attr(o,"class","BiometricsTitle "+(i[3]?"BiometricsTitleNone":"")),e.attr(a,"class","BiometricsDescription "+(i[3]?"BiometricsDescriptionMobile":"")),e.attr(D,"class","BiometricsToggle"),e.attr(_,"class","BiometricsActionButtons "+(i[3]?"BiometricsActionButtonsMobile":"")),e.attr(r,"class","BiometricsWrapper "+(i[3]?"BiometricsWrapperMobile":""))},m(d,P){e.insert(d,t,P),e.append(t,r),l&&l.m(r,null),e.append(r,h),e.append(r,o),e.append(o,c),e.append(r,p),e.append(r,a),e.append(a,s),e.append(s,b),e.append(a,v),e.append(a,B),e.append(B,g),e.append(r,w),e.append(r,_),e.append(_,D),e.append(D,E),i[12](t),n||(f=e.listen(D,"click",i[11]),n=!0)},p(d,[P]){d[3]&&l.p(d,P),P&4&&m!==(m=d[2]("titleBiometrics")+"")&&e.set_data(c,m),P&4&&u!==(u=d[2]("descriptionParagraph1")+"")&&e.set_data(b,u),P&4&&y!==(y=d[2]("descriptionParagraph2")+"")&&e.set_data(g,y),P&5&&A!==(A=(d[0]==="true"?d[2]("btnDisableBiometrics"):d[2]("btnEnableBiometrics"))+"")&&e.set_data(E,A)},i:e.noop,o:e.noop,d(d){d&&e.detach(t),l&&l.d(),i[12](null),n=!1,f()}}}function z(i,t,r){let h;e.component_subscribe(i,e.$format,n=>r(2,h=n));let{biometricsenabled:o="false"}=t,{lang:m="en"}=t,{clientstyling:c=""}=t,{clientstylingurl:p=""}=t,{translationurl:a=""}=t,s,u=window.navigator.userAgent,b=e.getDevice(u)!=="PC";const v=()=>{fetch(a).then(f=>f.json()).then(f=>{Object.keys(f).forEach(l=>{M(l,f[l])})}).catch(f=>{console.log(f)})};Object.keys(k).forEach(n=>{M(n,k[n])});const B=()=>{let n=document.createElement("style");n.innerHTML=c,s.appendChild(n)},y=()=>{let n=new URL(p),f=document.createElement("style");fetch(n.href).then(l=>l.text()).then(l=>{f.innerHTML=l,setTimeout(()=>{s.appendChild(f)},1)})},g=()=>{j(m)},w=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:b},window.location.href)},_=()=>{o==="true"?r(0,o="false"):o==="false"&&r(0,o="true"),window.postMessage({type:"ToggleBiometrics",data:o})},D=()=>w(),A=()=>_();function E(n){e.binding_callbacks[n?"unshift":"push"](()=>{s=n,r(1,s)})}return i.$$set=n=>{"biometricsenabled"in n&&r(0,o=n.biometricsenabled),"lang"in n&&r(6,m=n.lang),"clientstyling"in n&&r(7,c=n.clientstyling),"clientstylingurl"in n&&r(8,p=n.clientstylingurl),"translationurl"in n&&r(9,a=n.translationurl)},i.$$.update=()=>{i.$$.dirty&64&&m&&g(),i.$$.dirty&258&&p&&s&&y(),i.$$.dirty&130&&c&&s&&B(),i.$$.dirty&512&&a&&v()},[o,s,h,b,w,_,m,c,p,a,D,A,E]}class x extends e.SvelteComponent{constructor(t){super(),e.init(this,t,z,U,e.safe_not_equal,{biometricsenabled:0,lang:6,clientstyling:7,clientstylingurl:8,translationurl:9},T)}get biometricsenabled(){return this.$$.ctx[0]}set biometricsenabled(t){this.$$set({biometricsenabled:t}),e.flush()}get lang(){return this.$$.ctx[6]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[7]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[8]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[9]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}}e.create_custom_element(x,{biometricsenabled:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=x;