@everymatrix/player-profile-info 1.99.49 → 1.99.50
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.
- package/components/{PlayerAccountBiometricsAction-BGt2ohk9.js → PlayerAccountBiometricsAction-6C8-N-Rb.js} +79 -73
- package/components/{PlayerAccountBiometricsAction-D7Golvhs.js → PlayerAccountBiometricsAction-D8SW_CvC.js} +90 -84
- package/components/PlayerAccountBiometricsAction-DG2p2NxA.cjs +1 -0
- package/components/{PlayerProfileInfo-D7e4R_w2.js → PlayerProfileInfo-BX4Crs2a.js} +2 -2
- package/components/{PlayerProfileInfo-DAIfaeim.cjs → PlayerProfileInfo-D_PnWTXT.cjs} +1 -1
- package/components/{PlayerProfileInfo-guA6QCDZ.js → PlayerProfileInfo-Diy46A-k.js} +2 -2
- package/components/{QrSessionGenerator-DJxXz86j.js → QrSessionGenerator--mW_LkVF.js} +1 -1
- package/components/{QrSessionGenerator-DVz2cd8o.cjs → QrSessionGenerator-CbBAkgJp.cjs} +1 -1
- package/components/{QrSessionGenerator-CnSsGPsC.js → QrSessionGenerator-D8ScvypJ.js} +1 -1
- package/es2015/player-profile-info.cjs +1 -1
- package/es2015/player-profile-info.js +1 -1
- package/esnext/player-profile-info.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountBiometricsAction-9Jx-pm_l.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as W, $ as G, S as J, i as Q, f as u, s as V, c as Y, b as Z, n as
|
|
1
|
+
import { a as W, $ as G, S as J, i as Q, f as u, s as V, c as Y, b as Z, n as I, d as k, e as E, g as $, h as ee, o as ie, j as w, k as te, l as se, m as z, p as X, t as ne, q as S, r as f, u as oe, v as re, w as ae, x as ce } from "./PlayerProfileInfo-BX4Crs2a.js";
|
|
2
2
|
function le(t, e) {
|
|
3
3
|
W(t, e);
|
|
4
4
|
}
|
|
@@ -84,44 +84,50 @@ const me = {
|
|
|
84
84
|
errorMessage: "Biometrics update failed"
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
|
-
function ue(t, e, i) {
|
|
88
|
-
|
|
87
|
+
function ue(t, e, i, n = !1) {
|
|
88
|
+
if (window.emMessageBus) {
|
|
89
|
+
const s = n ? (r) => {
|
|
90
|
+
!r || typeof r != "object" || Array.isArray(r) || Object.keys(r).forEach((a) => i(a, r[a]));
|
|
91
|
+
} : i;
|
|
92
|
+
e = window.emMessageBus.subscribe(t, s);
|
|
93
|
+
}
|
|
94
|
+
return e;
|
|
89
95
|
}
|
|
90
96
|
function de(t) {
|
|
91
97
|
Z(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
98
|
}
|
|
93
|
-
function
|
|
99
|
+
function R(t) {
|
|
94
100
|
let e;
|
|
95
|
-
function i(
|
|
101
|
+
function i(r, a) {
|
|
96
102
|
if (
|
|
97
103
|
/*mode*/
|
|
98
|
-
|
|
104
|
+
r[1] === "button"
|
|
99
105
|
)
|
|
100
106
|
return fe;
|
|
101
107
|
if (
|
|
102
108
|
/*mode*/
|
|
103
|
-
|
|
109
|
+
r[1] === "switch"
|
|
104
110
|
)
|
|
105
111
|
return ge;
|
|
106
112
|
}
|
|
107
|
-
let
|
|
113
|
+
let n = i(t), s = n && n(t);
|
|
108
114
|
return {
|
|
109
115
|
c() {
|
|
110
116
|
e = w("div"), s && s.c();
|
|
111
117
|
},
|
|
112
|
-
m(
|
|
113
|
-
E(
|
|
118
|
+
m(r, a) {
|
|
119
|
+
E(r, e, a), s && s.m(e, null), t[17](e);
|
|
114
120
|
},
|
|
115
|
-
p(
|
|
116
|
-
|
|
121
|
+
p(r, a) {
|
|
122
|
+
n === (n = i(r)) && s ? s.p(r, a) : (s && s.d(1), s = n && n(r), s && (s.c(), s.m(e, null)));
|
|
117
123
|
},
|
|
118
|
-
d(
|
|
119
|
-
|
|
124
|
+
d(r) {
|
|
125
|
+
r && k(e), s && s.d(), t[17](null);
|
|
120
126
|
}
|
|
121
127
|
};
|
|
122
128
|
}
|
|
123
129
|
function ge(t) {
|
|
124
|
-
let e, i,
|
|
130
|
+
let e, i, n, s, r;
|
|
125
131
|
return {
|
|
126
132
|
c() {
|
|
127
133
|
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(
|
|
@@ -140,45 +146,45 @@ function ge(t) {
|
|
|
140
146
|
"shake",
|
|
141
147
|
/*shake*/
|
|
142
148
|
t[6]
|
|
143
|
-
), S(e, "class", "toggle-content"), e.disabled =
|
|
149
|
+
), S(e, "class", "toggle-content"), e.disabled = n = /*isUpdatingBiometrics*/
|
|
144
150
|
t[5] || /*isLoading*/
|
|
145
151
|
t[2];
|
|
146
152
|
},
|
|
147
|
-
m(a,
|
|
148
|
-
E(a, e,
|
|
153
|
+
m(a, c) {
|
|
154
|
+
E(a, e, c), z(e, i), s || (r = X(
|
|
149
155
|
e,
|
|
150
156
|
"click",
|
|
151
157
|
/*toggleBiometrics*/
|
|
152
158
|
t[8]
|
|
153
159
|
), s = !0);
|
|
154
160
|
},
|
|
155
|
-
p(a,
|
|
156
|
-
|
|
161
|
+
p(a, c) {
|
|
162
|
+
c & /*biometricsEnabled*/
|
|
157
163
|
16 && f(
|
|
158
164
|
i,
|
|
159
165
|
"checked",
|
|
160
166
|
/*biometricsEnabled*/
|
|
161
167
|
a[4]
|
|
162
|
-
),
|
|
168
|
+
), c & /*isUpdatingBiometrics, isLoading*/
|
|
163
169
|
36 && f(
|
|
164
170
|
i,
|
|
165
171
|
"disabled",
|
|
166
172
|
/*isUpdatingBiometrics*/
|
|
167
173
|
a[5] || /*isLoading*/
|
|
168
174
|
a[2]
|
|
169
|
-
),
|
|
175
|
+
), c & /*shake*/
|
|
170
176
|
64 && f(
|
|
171
177
|
i,
|
|
172
178
|
"shake",
|
|
173
179
|
/*shake*/
|
|
174
180
|
a[6]
|
|
175
|
-
),
|
|
176
|
-
36 &&
|
|
181
|
+
), c & /*isUpdatingBiometrics, isLoading*/
|
|
182
|
+
36 && n !== (n = /*isUpdatingBiometrics*/
|
|
177
183
|
a[5] || /*isLoading*/
|
|
178
|
-
a[2]) && (e.disabled =
|
|
184
|
+
a[2]) && (e.disabled = n);
|
|
179
185
|
},
|
|
180
186
|
d(a) {
|
|
181
|
-
a && k(e), s = !1,
|
|
187
|
+
a && k(e), s = !1, r();
|
|
182
188
|
}
|
|
183
189
|
};
|
|
184
190
|
}
|
|
@@ -192,72 +198,72 @@ function fe(t) {
|
|
|
192
198
|
/*$_*/
|
|
193
199
|
t[7]("btnEnableBiometrics")
|
|
194
200
|
)) + ""
|
|
195
|
-
),
|
|
201
|
+
), n, s, r, a;
|
|
196
202
|
return {
|
|
197
203
|
c() {
|
|
198
|
-
e = w("button"),
|
|
204
|
+
e = w("button"), n = ne(i), S(e, "class", "BiometricsToggle"), e.disabled = s = /*isUpdatingBiometrics*/
|
|
199
205
|
t[5] || /*isLoading*/
|
|
200
206
|
t[2];
|
|
201
207
|
},
|
|
202
|
-
m(
|
|
203
|
-
E(
|
|
208
|
+
m(c, l) {
|
|
209
|
+
E(c, e, l), z(e, n), r || (a = X(
|
|
204
210
|
e,
|
|
205
211
|
"click",
|
|
206
212
|
/*click_handler*/
|
|
207
213
|
t[16]
|
|
208
|
-
),
|
|
214
|
+
), r = !0);
|
|
209
215
|
},
|
|
210
|
-
p(
|
|
216
|
+
p(c, l) {
|
|
211
217
|
l & /*biometricsEnabled, $_*/
|
|
212
218
|
144 && i !== (i = /*biometricsEnabled*/
|
|
213
|
-
(
|
|
219
|
+
(c[4] ? (
|
|
214
220
|
/*$_*/
|
|
215
|
-
|
|
221
|
+
c[7]("btnDisableBiometrics")
|
|
216
222
|
) : (
|
|
217
223
|
/*$_*/
|
|
218
|
-
|
|
219
|
-
)) + "") && se(
|
|
224
|
+
c[7]("btnEnableBiometrics")
|
|
225
|
+
)) + "") && se(n, i), l & /*isUpdatingBiometrics, isLoading*/
|
|
220
226
|
36 && s !== (s = /*isUpdatingBiometrics*/
|
|
221
|
-
|
|
222
|
-
|
|
227
|
+
c[5] || /*isLoading*/
|
|
228
|
+
c[2]) && (e.disabled = s);
|
|
223
229
|
},
|
|
224
|
-
d(
|
|
225
|
-
|
|
230
|
+
d(c) {
|
|
231
|
+
c && k(e), r = !1, a();
|
|
226
232
|
}
|
|
227
233
|
};
|
|
228
234
|
}
|
|
229
235
|
function he(t) {
|
|
230
236
|
let e, i = (
|
|
231
237
|
/*isNativeApp*/
|
|
232
|
-
t[0] &&
|
|
238
|
+
t[0] && R(t)
|
|
233
239
|
);
|
|
234
240
|
return {
|
|
235
241
|
c() {
|
|
236
242
|
i && i.c(), e = $();
|
|
237
243
|
},
|
|
238
|
-
m(
|
|
239
|
-
i && i.m(
|
|
244
|
+
m(n, s) {
|
|
245
|
+
i && i.m(n, s), E(n, e, s);
|
|
240
246
|
},
|
|
241
|
-
p(
|
|
247
|
+
p(n, [s]) {
|
|
242
248
|
/*isNativeApp*/
|
|
243
|
-
|
|
249
|
+
n[0] ? i ? i.p(n, s) : (i = R(n), i.c(), i.m(e.parentNode, e)) : i && (i.d(1), i = null);
|
|
244
250
|
},
|
|
245
|
-
i:
|
|
246
|
-
o:
|
|
247
|
-
d(
|
|
248
|
-
|
|
251
|
+
i: I,
|
|
252
|
+
o: I,
|
|
253
|
+
d(n) {
|
|
254
|
+
n && k(e), i && i.d(n);
|
|
249
255
|
}
|
|
250
256
|
};
|
|
251
257
|
}
|
|
252
258
|
function Be(t, e, i) {
|
|
253
|
-
let
|
|
254
|
-
ee(t, oe, (
|
|
255
|
-
let { lang: s = "en" } = e, { clientstyling:
|
|
256
|
-
const D = (
|
|
257
|
-
Object.keys(
|
|
258
|
-
le(b,
|
|
259
|
+
let n;
|
|
260
|
+
ee(t, oe, (o) => i(7, n = o));
|
|
261
|
+
let { lang: s = "en" } = e, { clientstyling: r = "" } = e, { clientstylingurl: a = "" } = e, { mbsource: c } = e, { translationurl: l = "" } = e, { isNativeApp: B = !1 } = e, { mode: T = "button" } = e, { isFromLogin: p = !1 } = e, { isLoading: A = !1 } = e, m, F, h, d = null, y = !1, g = !1, _ = !1;
|
|
262
|
+
const D = (o) => {
|
|
263
|
+
Object.keys(o).forEach((b) => {
|
|
264
|
+
le(b, o[b]);
|
|
259
265
|
});
|
|
260
|
-
},
|
|
266
|
+
}, C = () => {
|
|
261
267
|
fetch(l).then((b) => b.json()).then((b) => {
|
|
262
268
|
D(b);
|
|
263
269
|
}).catch((b) => {
|
|
@@ -267,7 +273,7 @@ function Be(t, e, i) {
|
|
|
267
273
|
D(me);
|
|
268
274
|
const U = () => {
|
|
269
275
|
be(s);
|
|
270
|
-
},
|
|
276
|
+
}, L = {
|
|
271
277
|
BIOMETRICS_RESPONSE: 3e3,
|
|
272
278
|
SHAKE_DURATION: 500
|
|
273
279
|
};
|
|
@@ -277,33 +283,33 @@ function Be(t, e, i) {
|
|
|
277
283
|
() => {
|
|
278
284
|
i(6, M = !1);
|
|
279
285
|
},
|
|
280
|
-
|
|
286
|
+
L.SHAKE_DURATION
|
|
281
287
|
);
|
|
282
|
-
},
|
|
288
|
+
}, N = () => {
|
|
283
289
|
d && clearTimeout(d), d = setTimeout(
|
|
284
290
|
() => {
|
|
285
|
-
i(5, g = !1), H(),
|
|
291
|
+
i(5, g = !1), H(), j("error", n("errorMessage"));
|
|
286
292
|
},
|
|
287
|
-
|
|
293
|
+
L.BIOMETRICS_RESPONSE
|
|
288
294
|
);
|
|
289
|
-
},
|
|
295
|
+
}, v = async () => {
|
|
290
296
|
g || (i(5, g = !0), _ = !0, window.postMessage({
|
|
291
297
|
type: "ToggleBiometrics",
|
|
292
298
|
data: `${!y}`,
|
|
293
299
|
isFromLogin: p
|
|
294
|
-
}),
|
|
295
|
-
}, x = (
|
|
296
|
-
|
|
300
|
+
}), N());
|
|
301
|
+
}, x = (o) => {
|
|
302
|
+
o.data?.type === "NativeAppReady" && (i(0, B = !0), O()), o.data?.type === "BiometricsStatus" && (i(4, y = o.data.status || !1), i(5, g = !1), d && (clearTimeout(d), d = null), _ && (p || j("success", n(y ? "successEnableBiometrics" : "successDisableBiometrics"))), _ = !1);
|
|
297
303
|
}, O = () => {
|
|
298
|
-
i(5, g = !0), window.postMessage({ type: "GetBiometricsStatus" }),
|
|
304
|
+
i(5, g = !0), window.postMessage({ type: "GetBiometricsStatus" }), N();
|
|
299
305
|
}, q = () => {
|
|
300
306
|
window.postMessage({ type: "CheckNativeApp" });
|
|
301
|
-
},
|
|
307
|
+
}, j = (o, b) => {
|
|
302
308
|
window.postMessage(
|
|
303
309
|
{
|
|
304
310
|
type: "WidgetNotification",
|
|
305
311
|
data: {
|
|
306
|
-
type:
|
|
312
|
+
type: o,
|
|
307
313
|
message: b,
|
|
308
314
|
config: { clearBefore: !0 }
|
|
309
315
|
}
|
|
@@ -314,36 +320,36 @@ function Be(t, e, i) {
|
|
|
314
320
|
ie(() => (window.addEventListener("message", x), B === !0 ? O() : q(), () => {
|
|
315
321
|
window.removeEventListener("message", x), h && h.unsubscribe(), d && clearTimeout(d);
|
|
316
322
|
}));
|
|
317
|
-
const P = () =>
|
|
318
|
-
function K(
|
|
319
|
-
te[
|
|
320
|
-
m =
|
|
323
|
+
const P = () => v();
|
|
324
|
+
function K(o) {
|
|
325
|
+
te[o ? "unshift" : "push"](() => {
|
|
326
|
+
m = o, i(3, m);
|
|
321
327
|
});
|
|
322
328
|
}
|
|
323
|
-
return t.$$set = (
|
|
324
|
-
"lang" in
|
|
329
|
+
return t.$$set = (o) => {
|
|
330
|
+
"lang" in o && i(9, s = o.lang), "clientstyling" in o && i(10, r = o.clientstyling), "clientstylingurl" in o && i(11, a = o.clientstylingurl), "mbsource" in o && i(12, c = o.mbsource), "translationurl" in o && i(13, l = o.translationurl), "isNativeApp" in o && i(0, B = o.isNativeApp), "mode" in o && i(1, T = o.mode), "isFromLogin" in o && i(14, p = o.isFromLogin), "isLoading" in o && i(2, A = o.isLoading);
|
|
325
331
|
}, t.$$.update = () => {
|
|
326
332
|
t.$$.dirty & /*lang*/
|
|
327
333
|
512 && s && U(), t.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
328
|
-
1032 &&
|
|
329
|
-
2056 && a && m &&
|
|
330
|
-
4104 &&
|
|
331
|
-
8192 && l &&
|
|
332
|
-
45056 &&
|
|
334
|
+
1032 && r && m && re(m, r), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
335
|
+
2056 && a && m && ae(m, a), t.$$.dirty & /*mbsource, customStylingContainer*/
|
|
336
|
+
4104 && c && m && ce(m, `${c}.Style`, F), t.$$.dirty & /*translationurl*/
|
|
337
|
+
8192 && l && C(), t.$$.dirty & /*mbsource, translationurl, translationSubscription*/
|
|
338
|
+
45056 && c && !l && i(15, h = ue(`${c}.Translation`, h, D));
|
|
333
339
|
}, [
|
|
334
340
|
B,
|
|
335
341
|
T,
|
|
336
|
-
|
|
342
|
+
A,
|
|
337
343
|
m,
|
|
338
344
|
y,
|
|
339
345
|
g,
|
|
340
346
|
M,
|
|
341
|
-
|
|
342
|
-
|
|
347
|
+
n,
|
|
348
|
+
v,
|
|
343
349
|
s,
|
|
344
|
-
c,
|
|
345
|
-
a,
|
|
346
350
|
r,
|
|
351
|
+
a,
|
|
352
|
+
c,
|
|
347
353
|
l,
|
|
348
354
|
p,
|
|
349
355
|
h,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var v=(s,e,t)=>new Promise((o,n)=>{var a=b=>{try{l(t.next(b))}catch(d){n(d)}},c=b=>{try{l(t.throw(b))}catch(d){n(d)}},l=b=>b.done?o(b.value):Promise.resolve(b.value).then(a,c);l((t=t.apply(s,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./PlayerProfileInfo-D_PnWTXT.cjs");function P(s,e){i.addMessages(s,e)}function U(s){i.$locale.set(s)}const H={en:{btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics",successEnableBiometrics:"Biometric authentication enabled.",successDisableBiometrics:"Biometric authentication disabled.",errorMessage:"Biometrics update failed"},"zh-hk":{btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics",successEnableBiometrics:"Biometric authentication enabled.",successDisableBiometrics:"Biometric authentication disabled.",errorMessage:"Biometrics update failed"},fr:{btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics",successEnableBiometrics:"Biometric authentication enabled.",successDisableBiometrics:"Biometric authentication disabled.",errorMessage:"Biometrics update failed"},tr:{btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics",successEnableBiometrics:"Biometric authentication enabled.",successDisableBiometrics:"Biometric authentication disabled.",errorMessage:"Biometrics update failed"},ro:{btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics",successEnableBiometrics:"Biometric authentication enabled.",successDisableBiometrics:"Biometric authentication disabled.",errorMessage:"Biometrics update failed"},es:{btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics",successEnableBiometrics:"Biometric authentication enabled.",successDisableBiometrics:"Biometric authentication disabled.",errorMessage:"Biometrics update failed"},pt:{btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics",successEnableBiometrics:"Biometric authentication enabled.",successDisableBiometrics:"Biometric authentication disabled.",errorMessage:"Biometrics update failed"},hr:{btnEnableBiometrics:"Omogući biometriju",btnDisableBiometrics:"Onemogući biometriju",successEnableBiometrics:"Biometric authentication enabled.",successDisableBiometrics:"Biometric authentication disabled.",errorMessage:"Biometrics update failed"},"pt-br":{btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics",successEnableBiometrics:"Biometric authentication enabled.",successDisableBiometrics:"Biometric authentication disabled.",errorMessage:"Biometrics update failed"},"es-mx":{btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics",successEnableBiometrics:"Biometric authentication enabled.",successDisableBiometrics:"Biometric authentication disabled.",errorMessage:"Biometrics update failed"},"en-us":{btnEnableBiometrics:"Enable biometrics",btnDisableBiometrics:"Disable biometrics",successEnableBiometrics:"Biometric authentication enabled.",successDisableBiometrics:"Biometric authentication disabled.",errorMessage:"Biometrics update failed"}};function q(s,e,t,o=!1){if(window.emMessageBus){const n=o?a=>{!a||typeof a!="object"||Array.isArray(a)||Object.keys(a).forEach(c=>t(c,a[c]))}:t;e=window.emMessageBus.subscribe(s,n)}return e}function K(s){i.append_styles(s,"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}')}function x(s){let e;function t(a,c){if(a[1]==="button")return G;if(a[1]==="switch")return W}let o=t(s),n=o&&o(s);return{c(){e=i.element("div"),n&&n.c()},m(a,c){i.insert(a,e,c),n&&n.m(e,null),s[17](e)},p(a,c){o===(o=t(a))&&n?n.p(a,c):(n&&n.d(1),n=o&&o(a),n&&(n.c(),n.m(e,null)))},d(a){a&&i.detach(e),n&&n.d(),s[17](null)}}}function W(s){let e,t,o,n,a;return{c(){e=i.element("button"),t=i.element("div"),t.innerHTML='<input type="checkbox" class="skip-switch-input"/> <span class="skip-switch-core"></span>',i.attr(t,"class","skip-switch"),i.toggle_class(t,"checked",s[4]),i.toggle_class(t,"disabled",s[5]||s[2]),i.toggle_class(t,"shake",s[6]),i.attr(e,"class","toggle-content"),e.disabled=o=s[5]||s[2]},m(c,l){i.insert(c,e,l),i.append(e,t),n||(a=i.listen(e,"click",s[8]),n=!0)},p(c,l){l&16&&i.toggle_class(t,"checked",c[4]),l&36&&i.toggle_class(t,"disabled",c[5]||c[2]),l&64&&i.toggle_class(t,"shake",c[6]),l&36&&o!==(o=c[5]||c[2])&&(e.disabled=o)},d(c){c&&i.detach(e),n=!1,a()}}}function G(s){let e,t=(s[4]?s[7]("btnDisableBiometrics"):s[7]("btnEnableBiometrics"))+"",o,n,a,c;return{c(){e=i.element("button"),o=i.text(t),i.attr(e,"class","BiometricsToggle"),e.disabled=n=s[5]||s[2]},m(l,b){i.insert(l,e,b),i.append(e,o),a||(c=i.listen(e,"click",s[16]),a=!0)},p(l,b){b&144&&t!==(t=(l[4]?l[7]("btnDisableBiometrics"):l[7]("btnEnableBiometrics"))+"")&&i.set_data(o,t),b&36&&n!==(n=l[5]||l[2])&&(e.disabled=n)},d(l){l&&i.detach(e),a=!1,c()}}}function J(s){let e,t=s[0]&&x(s);return{c(){t&&t.c(),e=i.empty()},m(o,n){t&&t.m(o,n),i.insert(o,e,n)},p(o,[n]){o[0]?t?t.p(o,n):(t=x(o),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:i.noop,o:i.noop,d(o){o&&i.detach(e),t&&t.d(o)}}}function Q(s,e,t){let o;i.component_subscribe(s,i.$format,r=>t(7,o=r));let{lang:n="en"}=e,{clientstyling:a=""}=e,{clientstylingurl:c=""}=e,{mbsource:l}=e,{translationurl:b=""}=e,{isNativeApp:d=!1}=e,{mode:E="button"}=e,{isFromLogin:B=!1}=e,{isLoading:_=!1}=e,m,I,h,g=null,p=!1,f=!1,y=!1;const w=r=>{Object.keys(r).forEach(u=>{P(u,r[u])})},j=()=>{fetch(b).then(u=>u.json()).then(u=>{w(u)}).catch(u=>{console.log(u)})};w(H);const R=()=>{U(n)},D={BIOMETRICS_RESPONSE:3e3,SHAKE_DURATION:500};let k=!1;const z=()=>{t(6,k=!0),setTimeout(()=>{t(6,k=!1)},D.SHAKE_DURATION)},M=()=>{g&&clearTimeout(g),g=setTimeout(()=>{t(5,f=!1),z(),L("error",o("errorMessage"))},D.BIOMETRICS_RESPONSE)},S=()=>v(this,null,function*(){f||(t(5,f=!0),y=!0,window.postMessage({type:"ToggleBiometrics",data:`${!p}`,isFromLogin:B}),M())}),T=r=>{var u,N;((u=r.data)==null?void 0:u.type)==="NativeAppReady"&&(t(0,d=!0),A()),((N=r.data)==null?void 0:N.type)==="BiometricsStatus"&&(t(4,p=r.data.status||!1),t(5,f=!1),g&&(clearTimeout(g),g=null),y&&(B||L("success",o(p?"successEnableBiometrics":"successDisableBiometrics"))),y=!1)},A=()=>{t(5,f=!0),window.postMessage({type:"GetBiometricsStatus"}),M()},X=()=>{window.postMessage({type:"CheckNativeApp"})},L=(r,u)=>{window.postMessage({type:"WidgetNotification",data:{type:r,message:u,config:{clearBefore:!0}}},window.location.href)};i.onMount(()=>(window.addEventListener("message",T),d===!0?A():X(),()=>{window.removeEventListener("message",T),h&&h.unsubscribe(),g&&clearTimeout(g)}));const F=()=>S();function C(r){i.binding_callbacks[r?"unshift":"push"](()=>{m=r,t(3,m)})}return s.$$set=r=>{"lang"in r&&t(9,n=r.lang),"clientstyling"in r&&t(10,a=r.clientstyling),"clientstylingurl"in r&&t(11,c=r.clientstylingurl),"mbsource"in r&&t(12,l=r.mbsource),"translationurl"in r&&t(13,b=r.translationurl),"isNativeApp"in r&&t(0,d=r.isNativeApp),"mode"in r&&t(1,E=r.mode),"isFromLogin"in r&&t(14,B=r.isFromLogin),"isLoading"in r&&t(2,_=r.isLoading)},s.$$.update=()=>{s.$$.dirty&512&&n&&R(),s.$$.dirty&1032&&a&&m&&i.setClientStyling(m,a),s.$$.dirty&2056&&c&&m&&i.setClientStylingURL(m,c),s.$$.dirty&4104&&l&&m&&i.setStreamStyling(m,`${l}.Style`,I),s.$$.dirty&8192&&b&&j(),s.$$.dirty&45056&&l&&!b&&t(15,h=q(`${l}.Translation`,h,w))},[d,E,_,m,p,f,k,o,S,n,a,c,l,b,B,h,F,C]}class O extends i.SvelteComponent{constructor(e){super(),i.init(this,e,Q,J,i.safe_not_equal,{lang:9,clientstyling:10,clientstylingurl:11,mbsource:12,translationurl:13,isNativeApp:0,mode:1,isFromLogin:14,isLoading:2},K)}get lang(){return this.$$.ctx[9]}set lang(e){this.$$set({lang:e}),i.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),i.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),i.flush()}get mbsource(){return this.$$.ctx[12]}set mbsource(e){this.$$set({mbsource:e}),i.flush()}get translationurl(){return this.$$.ctx[13]}set translationurl(e){this.$$set({translationurl:e}),i.flush()}get isNativeApp(){return this.$$.ctx[0]}set isNativeApp(e){this.$$set({isNativeApp:e}),i.flush()}get mode(){return this.$$.ctx[1]}set mode(e){this.$$set({mode:e}),i.flush()}get isFromLogin(){return this.$$.ctx[14]}set isFromLogin(e){this.$$set({isFromLogin:e}),i.flush()}get isLoading(){return this.$$.ctx[2]}set isLoading(e){this.$$set({isLoading:e}),i.flush()}}i.create_custom_element(O,{lang:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},isNativeApp:{type:"Boolean"},mode:{},isFromLogin:{type:"Boolean"},isLoading:{type:"Boolean"}},[],[],!0);exports.default=O;
|
|
@@ -5177,7 +5177,7 @@ if (typeof window < "u") {
|
|
|
5177
5177
|
}
|
|
5178
5178
|
};
|
|
5179
5179
|
};
|
|
5180
|
-
customElements.define = e(customElements.define), import("./PlayerAccountBiometricsAction-
|
|
5180
|
+
customElements.define = e(customElements.define), import("./PlayerAccountBiometricsAction-D8SW_CvC.js").then(({ default: t }) => {
|
|
5181
5181
|
!customElements.get("player-account-biometrics-action") && customElements.define("player-account-biometrics-action", t.element);
|
|
5182
5182
|
});
|
|
5183
5183
|
}
|
|
@@ -5193,7 +5193,7 @@ if (typeof window < "u") {
|
|
|
5193
5193
|
}
|
|
5194
5194
|
};
|
|
5195
5195
|
};
|
|
5196
|
-
customElements.define = e(customElements.define), import("./QrSessionGenerator-
|
|
5196
|
+
customElements.define = e(customElements.define), import("./QrSessionGenerator-D8ScvypJ.js").then(({ default: t }) => {
|
|
5197
5197
|
!customElements.get("qr-session-generator") && customElements.define("qr-session-generator", t.element);
|
|
5198
5198
|
});
|
|
5199
5199
|
}
|