@everymatrix/player-profile-info 1.88.18 → 1.88.20
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-BoBlfgC6.js → PlayerAccountBiometricsAction-BRUlfF_m.js} +10 -10
- package/components/{PlayerAccountBiometricsAction-6xD0JSaM.cjs → PlayerAccountBiometricsAction-C8lOWyzJ.cjs} +1 -1
- package/components/{PlayerAccountBiometricsAction-DVWAf53V.js → PlayerAccountBiometricsAction-CLLphgZa.js} +8 -8
- package/components/{PlayerProfileInfo-CWz7SnbN.cjs → PlayerProfileInfo-BHv5dDZH.cjs} +5 -5
- package/components/{PlayerProfileInfo-CxPCKM1W.js → PlayerProfileInfo-Ciw8RH-a.js} +881 -865
- package/components/{PlayerProfileInfo-DMZ9fjyl.js → PlayerProfileInfo-DrL5cABV.js} +1183 -1167
- 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
|
@@ -14,7 +14,7 @@ var z = (t, e, i) => new Promise((n, s) => {
|
|
|
14
14
|
}, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(c, r);
|
|
15
15
|
a((i = i.apply(t, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import { a as J, $ as Q, S as V, i as Y, s as Z, f as u, b as $, n as X, d as k, c as E, e as ee, g as ie,
|
|
17
|
+
import { a as J, $ as Q, S as V, i as Y, s as Z, f as u, b as $, n as X, d as k, c as E, e as ee, g as ie, o as te, h as w, j as se, k as ne, l as C, m as F, t as oe, p as S, q as h, r as ae, u as re, v as ce, w as le, x as be } from "./PlayerProfileInfo-DrL5cABV.js";
|
|
18
18
|
function me(t, e) {
|
|
19
19
|
J(t, e);
|
|
20
20
|
}
|
|
@@ -211,7 +211,7 @@ function Be(t) {
|
|
|
211
211
|
), n, s, c, r;
|
|
212
212
|
return {
|
|
213
213
|
c() {
|
|
214
|
-
e = w("button"), n =
|
|
214
|
+
e = w("button"), n = oe(i), S(e, "class", "BiometricsToggle"), e.disabled = s = /*isUpdatingBiometrics*/
|
|
215
215
|
t[5] || /*isLoading*/
|
|
216
216
|
t[2];
|
|
217
217
|
},
|
|
@@ -232,7 +232,7 @@ function Be(t) {
|
|
|
232
232
|
) : (
|
|
233
233
|
/*$_*/
|
|
234
234
|
a[7]("btnEnableBiometrics")
|
|
235
|
-
)) + "") &&
|
|
235
|
+
)) + "") && ne(n, i), l & /*isUpdatingBiometrics, isLoading*/
|
|
236
236
|
36 && s !== (s = /*isUpdatingBiometrics*/
|
|
237
237
|
a[5] || /*isLoading*/
|
|
238
238
|
a[2]) && (e.disabled = s);
|
|
@@ -267,7 +267,7 @@ function pe(t) {
|
|
|
267
267
|
}
|
|
268
268
|
function ye(t, e, i) {
|
|
269
269
|
let n;
|
|
270
|
-
ie(t,
|
|
270
|
+
ie(t, be, (o) => i(7, n = o));
|
|
271
271
|
let { lang: s = "en" } = e, { clientstyling: c = "" } = e, { clientstylingurl: r = "" } = e, { mbsource: a } = e, { translationurl: l = "" } = e, { isNativeApp: d = !1 } = e, { mode: T = "button" } = e, { isFromLogin: p = !1 } = e, { isLoading: L = !1 } = e, m, U, B, g = null, y = !1, f = !1, _ = !1;
|
|
272
272
|
const D = (o) => {
|
|
273
273
|
Object.keys(o).forEach((b) => {
|
|
@@ -328,12 +328,12 @@ function ye(t, e, i) {
|
|
|
328
328
|
window.location.href
|
|
329
329
|
);
|
|
330
330
|
};
|
|
331
|
-
|
|
331
|
+
te(() => (window.addEventListener("message", x), d === !0 ? O() : K(), () => {
|
|
332
332
|
window.removeEventListener("message", x), B && B.unsubscribe(), g && clearTimeout(g);
|
|
333
333
|
}));
|
|
334
334
|
const W = () => A();
|
|
335
335
|
function G(o) {
|
|
336
|
-
|
|
336
|
+
se[o ? "unshift" : "push"](() => {
|
|
337
337
|
m = o, i(3, m);
|
|
338
338
|
});
|
|
339
339
|
}
|
|
@@ -342,9 +342,9 @@ function ye(t, e, i) {
|
|
|
342
342
|
}, t.$$.update = () => {
|
|
343
343
|
t.$$.dirty & /*lang*/
|
|
344
344
|
512 && s && q(), t.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
345
|
-
1032 && c && m &&
|
|
346
|
-
2056 && r && m &&
|
|
347
|
-
4104 && a && m &&
|
|
345
|
+
1032 && c && m && ae(m, c), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
346
|
+
2056 && r && m && re(m, r), t.$$.dirty & /*mbsource, customStylingContainer*/
|
|
347
|
+
4104 && a && m && ce(m, `${a}.Style`, U), t.$$.dirty & /*translationurl*/
|
|
348
348
|
8192 && l && H(), t.$$.dirty & /*mbsource, translationurl, translationSubscription*/
|
|
349
349
|
45056 && a && !l && i(15, B = ge(`${a}.Translation`, B, D));
|
|
350
350
|
}, [
|
|
@@ -445,7 +445,7 @@ class we extends V {
|
|
|
445
445
|
this.$$set({ isLoading: e }), u();
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
|
-
|
|
448
|
+
le(we, { lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, isNativeApp: { type: "Boolean" }, mode: {}, isFromLogin: { type: "Boolean" }, isLoading: { type: "Boolean" } }, [], [], !0);
|
|
449
449
|
export {
|
|
450
450
|
we as default
|
|
451
451
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var A=(s,e,t)=>new Promise((o,n)=>{var l=b=>{try{a(t.next(b))}catch(d){n(d)}},c=b=>{try{a(t.throw(b))}catch(d){n(d)}},a=b=>b.done?o(b.value):Promise.resolve(b.value).then(l,c);a((t=t.apply(s,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./PlayerProfileInfo-CWz7SnbN.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){return window.emMessageBus&&(e=window.emMessageBus.subscribe(s,t)),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(l,c){if(l[1]==="button")return G;if(l[1]==="switch")return W}let o=t(s),n=o&&o(s);return{c(){e=i.element("div"),n&&n.c()},m(l,c){i.insert(l,e,c),n&&n.m(e,null),s[17](e)},p(l,c){o===(o=t(l))&&n?n.p(l,c):(n&&n.d(1),n=o&&o(l),n&&(n.c(),n.m(e,null)))},d(l){l&&i.detach(e),n&&n.d(),s[17](null)}}}function W(s){let e,t,o,n,l;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,a){i.insert(c,e,a),i.append(e,t),n||(l=i.listen(e,"click",s[8]),n=!0)},p(c,a){a&16&&i.toggle_class(t,"checked",c[4]),a&36&&i.toggle_class(t,"disabled",c[5]||c[2]),a&64&&i.toggle_class(t,"shake",c[6]),a&36&&o!==(o=c[5]||c[2])&&(e.disabled=o)},d(c){c&&i.detach(e),n=!1,l()}}}function G(s){let e,t=(s[4]?s[7]("btnDisableBiometrics"):s[7]("btnEnableBiometrics"))+"",o,n,l,c;return{c(){e=i.element("button"),o=i.text(t),i.attr(e,"class","BiometricsToggle"),e.disabled=n=s[5]||s[2]},m(a,b){i.insert(a,e,b),i.append(e,o),l||(c=i.listen(e,"click",s[16]),l=!0)},p(a,b){b&144&&t!==(t=(a[4]?a[7]("btnDisableBiometrics"):a[7]("btnEnableBiometrics"))+"")&&i.set_data(o,t),b&36&&n!==(n=a[5]||a[2])&&(e.disabled=n)},d(a){a&&i.detach(e),l=!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:l=""}=e,{clientstylingurl:c=""}=e,{mbsource:a}=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])})},R=()=>{fetch(b).then(u=>u.json()).then(u=>{w(u)}).catch(u=>{console.log(u)})};w(H);const z=()=>{U(n)},D={BIOMETRICS_RESPONSE:3e3,SHAKE_DURATION:500};let k=!1;const X=()=>{t(6,k=!0),setTimeout(()=>{t(6,k=!1)},D.SHAKE_DURATION)},M=()=>{g&&clearTimeout(g),g=setTimeout(()=>{t(5,f=!1),X(),N("error",o("errorMessage"))},D.BIOMETRICS_RESPONSE)},S=()=>A(this,null,function*(){f||(t(5,f=!0),y=!0,window.postMessage({type:"ToggleBiometrics",data:`${!p}`,isFromLogin:B}),M())}),T=r=>{var u,v;((u=r.data)==null?void 0:u.type)==="NativeAppReady"&&(t(0,d=!0),L()),((v=r.data)==null?void 0:v.type)==="BiometricsStatus"&&(t(4,p=r.data.status||!1),t(5,f=!1),g&&(clearTimeout(g),g=null),y&&(B||N("success",o(p?"successEnableBiometrics":"successDisableBiometrics"))),y=!1)},L=()=>{t(5,f=!0),window.postMessage({type:"GetBiometricsStatus"}),M()},j=()=>{window.postMessage({type:"CheckNativeApp"})},N=(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?L():j(),()=>{window.removeEventListener("message",T),h&&h.unsubscribe(),g&&clearTimeout(g)}));const C=()=>S();function F(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,l=r.clientstyling),"clientstylingurl"in r&&t(11,c=r.clientstylingurl),"mbsource"in r&&t(12,a=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&&z(),s.$$.dirty&1032&&l&&m&&i.setClientStyling(m,l),s.$$.dirty&2056&&c&&m&&i.setClientStylingURL(m,c),s.$$.dirty&4104&&a&&m&&i.setStreamStyling(m,`${a}.Style`,I),s.$$.dirty&8192&&b&&R(),s.$$.dirty&45056&&a&&!b&&t(15,h=q(`${a}.Translation`,h,w))},[d,E,_,m,p,f,k,o,S,n,l,c,a,b,B,h,C,F]}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;
|
|
1
|
+
"use strict";var A=(s,e,t)=>new Promise((o,n)=>{var l=b=>{try{a(t.next(b))}catch(d){n(d)}},c=b=>{try{a(t.throw(b))}catch(d){n(d)}},a=b=>b.done?o(b.value):Promise.resolve(b.value).then(l,c);a((t=t.apply(s,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./PlayerProfileInfo-BHv5dDZH.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){return window.emMessageBus&&(e=window.emMessageBus.subscribe(s,t)),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(l,c){if(l[1]==="button")return G;if(l[1]==="switch")return W}let o=t(s),n=o&&o(s);return{c(){e=i.element("div"),n&&n.c()},m(l,c){i.insert(l,e,c),n&&n.m(e,null),s[17](e)},p(l,c){o===(o=t(l))&&n?n.p(l,c):(n&&n.d(1),n=o&&o(l),n&&(n.c(),n.m(e,null)))},d(l){l&&i.detach(e),n&&n.d(),s[17](null)}}}function W(s){let e,t,o,n,l;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,a){i.insert(c,e,a),i.append(e,t),n||(l=i.listen(e,"click",s[8]),n=!0)},p(c,a){a&16&&i.toggle_class(t,"checked",c[4]),a&36&&i.toggle_class(t,"disabled",c[5]||c[2]),a&64&&i.toggle_class(t,"shake",c[6]),a&36&&o!==(o=c[5]||c[2])&&(e.disabled=o)},d(c){c&&i.detach(e),n=!1,l()}}}function G(s){let e,t=(s[4]?s[7]("btnDisableBiometrics"):s[7]("btnEnableBiometrics"))+"",o,n,l,c;return{c(){e=i.element("button"),o=i.text(t),i.attr(e,"class","BiometricsToggle"),e.disabled=n=s[5]||s[2]},m(a,b){i.insert(a,e,b),i.append(e,o),l||(c=i.listen(e,"click",s[16]),l=!0)},p(a,b){b&144&&t!==(t=(a[4]?a[7]("btnDisableBiometrics"):a[7]("btnEnableBiometrics"))+"")&&i.set_data(o,t),b&36&&n!==(n=a[5]||a[2])&&(e.disabled=n)},d(a){a&&i.detach(e),l=!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:l=""}=e,{clientstylingurl:c=""}=e,{mbsource:a}=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])})},R=()=>{fetch(b).then(u=>u.json()).then(u=>{w(u)}).catch(u=>{console.log(u)})};w(H);const z=()=>{U(n)},D={BIOMETRICS_RESPONSE:3e3,SHAKE_DURATION:500};let k=!1;const X=()=>{t(6,k=!0),setTimeout(()=>{t(6,k=!1)},D.SHAKE_DURATION)},M=()=>{g&&clearTimeout(g),g=setTimeout(()=>{t(5,f=!1),X(),N("error",o("errorMessage"))},D.BIOMETRICS_RESPONSE)},S=()=>A(this,null,function*(){f||(t(5,f=!0),y=!0,window.postMessage({type:"ToggleBiometrics",data:`${!p}`,isFromLogin:B}),M())}),T=r=>{var u,v;((u=r.data)==null?void 0:u.type)==="NativeAppReady"&&(t(0,d=!0),L()),((v=r.data)==null?void 0:v.type)==="BiometricsStatus"&&(t(4,p=r.data.status||!1),t(5,f=!1),g&&(clearTimeout(g),g=null),y&&(B||N("success",o(p?"successEnableBiometrics":"successDisableBiometrics"))),y=!1)},L=()=>{t(5,f=!0),window.postMessage({type:"GetBiometricsStatus"}),M()},j=()=>{window.postMessage({type:"CheckNativeApp"})},N=(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?L():j(),()=>{window.removeEventListener("message",T),h&&h.unsubscribe(),g&&clearTimeout(g)}));const C=()=>S();function F(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,l=r.clientstyling),"clientstylingurl"in r&&t(11,c=r.clientstylingurl),"mbsource"in r&&t(12,a=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&&z(),s.$$.dirty&1032&&l&&m&&i.setClientStyling(m,l),s.$$.dirty&2056&&c&&m&&i.setClientStylingURL(m,c),s.$$.dirty&4104&&a&&m&&i.setStreamStyling(m,`${a}.Style`,I),s.$$.dirty&8192&&b&&R(),s.$$.dirty&45056&&a&&!b&&t(15,h=q(`${a}.Translation`,h,w))},[d,E,_,m,p,f,k,o,S,n,l,c,a,b,B,h,C,F]}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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as W, $ as G, S as J, i as Q, s as V,
|
|
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 R, 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 X, p as j, t as ne, q as S, r as f, u as oe, v as ae, w as re, x as ce } from "./PlayerProfileInfo-Ciw8RH-a.js";
|
|
2
2
|
function le(t, e) {
|
|
3
3
|
W(t, e);
|
|
4
4
|
}
|
|
@@ -88,7 +88,7 @@ function ue(t, e, i) {
|
|
|
88
88
|
return window.emMessageBus && (e = window.emMessageBus.subscribe(t, i)), e;
|
|
89
89
|
}
|
|
90
90
|
function de(t) {
|
|
91
|
-
|
|
91
|
+
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
92
|
}
|
|
93
93
|
function z(t) {
|
|
94
94
|
let e;
|
|
@@ -233,7 +233,7 @@ function he(t) {
|
|
|
233
233
|
);
|
|
234
234
|
return {
|
|
235
235
|
c() {
|
|
236
|
-
i && i.c(), e =
|
|
236
|
+
i && i.c(), e = $();
|
|
237
237
|
},
|
|
238
238
|
m(o, s) {
|
|
239
239
|
i && i.m(o, s), E(o, e, s);
|
|
@@ -251,7 +251,7 @@ function he(t) {
|
|
|
251
251
|
}
|
|
252
252
|
function Be(t, e, i) {
|
|
253
253
|
let o;
|
|
254
|
-
|
|
254
|
+
ee(t, oe, (n) => i(7, o = n));
|
|
255
255
|
let { lang: s = "en" } = e, { clientstyling: c = "" } = e, { clientstylingurl: a = "" } = e, { mbsource: r } = e, { translationurl: l = "" } = e, { isNativeApp: B = !1 } = e, { mode: T = "button" } = e, { isFromLogin: p = !1 } = e, { isLoading: L = !1 } = e, m, C, h, d = null, y = !1, g = !1, _ = !1;
|
|
256
256
|
const D = (n) => {
|
|
257
257
|
Object.keys(n).forEach((b) => {
|
|
@@ -325,9 +325,9 @@ function Be(t, e, i) {
|
|
|
325
325
|
}, t.$$.update = () => {
|
|
326
326
|
t.$$.dirty & /*lang*/
|
|
327
327
|
512 && s && U(), t.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
328
|
-
1032 && c && m &&
|
|
329
|
-
2056 && a && m &&
|
|
330
|
-
4104 && r && m &&
|
|
328
|
+
1032 && c && m && ae(m, c), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
329
|
+
2056 && a && m && re(m, a), t.$$.dirty & /*mbsource, customStylingContainer*/
|
|
330
|
+
4104 && r && m && ce(m, `${r}.Style`, C), t.$$.dirty & /*translationurl*/
|
|
331
331
|
8192 && l && F(), t.$$.dirty & /*mbsource, translationurl, translationSubscription*/
|
|
332
332
|
45056 && r && !l && i(15, h = ue(`${r}.Translation`, h, D));
|
|
333
333
|
}, [
|
|
@@ -428,7 +428,7 @@ class pe extends J {
|
|
|
428
428
|
this.$$set({ isLoading: e }), u();
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
|
-
|
|
431
|
+
Y(pe, { lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, isNativeApp: { type: "Boolean" }, mode: {}, isFromLogin: { type: "Boolean" }, isLoading: { type: "Boolean" } }, [], [], !0);
|
|
432
432
|
export {
|
|
433
433
|
pe as default
|
|
434
434
|
};
|