@everymatrix/user-login 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/dist/cjs/{index-abb69c35.js → index-bbecc5bd.js} +11 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{player-account-biometrics-action-3305afaf.js → player-account-biometrics-action-1bd8be5f.js} +44 -38
- package/dist/cjs/user-login.cjs.entry.js +46 -13
- package/dist/cjs/user-login.cjs.js +1 -1
- package/dist/collection/components/user-login/user-login.js +18 -5
- package/dist/collection/utils/locale.utils.js +9 -8
- package/dist/esm/{index-b943f0d9.js → index-1a58e188.js} +11 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{player-account-biometrics-action-84ade958.js → player-account-biometrics-action-de0c4e20.js} +44 -38
- package/dist/esm/user-login.entry.js +46 -13
- package/dist/esm/user-login.js +2 -2
- package/dist/types/components/user-login/user-login.d.ts +2 -0
- package/dist/types/utils/locale.utils.d.ts +1 -0
- package/dist/user-login/{index-b943f0d9.js → index-1a58e188.js} +2 -2
- package/dist/user-login/{player-account-biometrics-action-84ade958.js → player-account-biometrics-action-de0c4e20.js} +1 -1
- package/dist/user-login/user-login.entry.js +241 -241
- package/dist/user-login/user-login.esm.js +1 -1
- package/package.json +1 -1
|
@@ -112,11 +112,11 @@ function Kt(e) {
|
|
|
112
112
|
const $ = [], He = [];
|
|
113
113
|
let G = [];
|
|
114
114
|
const Ze = [], er = /* @__PURE__ */ Promise.resolve();
|
|
115
|
-
let
|
|
115
|
+
let Ae = !1;
|
|
116
116
|
function tr() {
|
|
117
|
-
|
|
117
|
+
Ae || (Ae = !0, er.then(S));
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function we(e) {
|
|
120
120
|
G.push(e);
|
|
121
121
|
}
|
|
122
122
|
const ye = /* @__PURE__ */ new Set();
|
|
@@ -144,13 +144,13 @@ function S() {
|
|
|
144
144
|
} while ($.length);
|
|
145
145
|
for (; Ze.length; )
|
|
146
146
|
Ze.pop()();
|
|
147
|
-
|
|
147
|
+
Ae = !1, ye.clear(), Y(e);
|
|
148
148
|
}
|
|
149
149
|
function rr(e) {
|
|
150
150
|
if (e.fragment !== null) {
|
|
151
151
|
e.update(), re(e.before_update);
|
|
152
152
|
const t = e.dirty;
|
|
153
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
153
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(we);
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
function nr(e) {
|
|
@@ -163,10 +163,10 @@ function sr(e, t) {
|
|
|
163
163
|
}
|
|
164
164
|
function or(e, t, r) {
|
|
165
165
|
const { fragment: n, after_update: i } = e.$$;
|
|
166
|
-
n && n.m(t, r),
|
|
166
|
+
n && n.m(t, r), we(() => {
|
|
167
167
|
const s = e.$$.on_mount.map(ht).filter($e);
|
|
168
168
|
e.$$.on_destroy ? e.$$.on_destroy.push(...s) : re(s), e.$$.on_mount = [];
|
|
169
|
-
}), i.forEach(
|
|
169
|
+
}), i.forEach(we);
|
|
170
170
|
}
|
|
171
171
|
function ar(e, t) {
|
|
172
172
|
const r = e.$$;
|
|
@@ -571,8 +571,8 @@ k.all = function(t, r) {
|
|
|
571
571
|
return k(n, i, r);
|
|
572
572
|
}, {});
|
|
573
573
|
};
|
|
574
|
-
var
|
|
575
|
-
const Nr = /* @__PURE__ */ br(
|
|
574
|
+
var Ar = k, wr = Ar;
|
|
575
|
+
const Nr = /* @__PURE__ */ br(wr);
|
|
576
576
|
var Ne = function(e, t) {
|
|
577
577
|
return Ne = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
578
578
|
r.__proto__ = n;
|
|
@@ -842,14 +842,14 @@ function jr(e) {
|
|
|
842
842
|
function Vr(e) {
|
|
843
843
|
return e.replace(/^(.*?)-/, "");
|
|
844
844
|
}
|
|
845
|
-
var qe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ht = /^(@+)?(\+|#+)?[rs]?$/g, Xr = /(\*)(0+)|(#+)(0+)|(0+)/g,
|
|
845
|
+
var qe = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Ht = /^(@+)?(\+|#+)?[rs]?$/g, Xr = /(\*)(0+)|(#+)(0+)|(0+)/g, At = /^(0+)$/;
|
|
846
846
|
function Ye(e) {
|
|
847
847
|
var t = {};
|
|
848
848
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Ht, function(r, n, i) {
|
|
849
849
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
850
850
|
}), t;
|
|
851
851
|
}
|
|
852
|
-
function
|
|
852
|
+
function wt(e) {
|
|
853
853
|
switch (e) {
|
|
854
854
|
case "sign-auto":
|
|
855
855
|
return {
|
|
@@ -897,14 +897,14 @@ function zr(e) {
|
|
|
897
897
|
notation: "scientific"
|
|
898
898
|
}, e = e.slice(1)), t) {
|
|
899
899
|
var r = e.slice(0, 2);
|
|
900
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
900
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !At.test(e))
|
|
901
901
|
throw new Error("Malformed concise eng/scientific notation");
|
|
902
902
|
t.minimumIntegerDigits = e.length;
|
|
903
903
|
}
|
|
904
904
|
return t;
|
|
905
905
|
}
|
|
906
906
|
function Ke(e) {
|
|
907
|
-
var t = {}, r =
|
|
907
|
+
var t = {}, r = wt(e);
|
|
908
908
|
return r || t;
|
|
909
909
|
}
|
|
910
910
|
function Wr(e) {
|
|
@@ -1006,7 +1006,7 @@ function Wr(e) {
|
|
|
1006
1006
|
});
|
|
1007
1007
|
continue;
|
|
1008
1008
|
}
|
|
1009
|
-
if (
|
|
1009
|
+
if (At.test(i.stem)) {
|
|
1010
1010
|
t.minimumIntegerDigits = i.stem.length;
|
|
1011
1011
|
continue;
|
|
1012
1012
|
}
|
|
@@ -1024,7 +1024,7 @@ function Wr(e) {
|
|
|
1024
1024
|
t = y(y({}, t), Ye(i.stem));
|
|
1025
1025
|
continue;
|
|
1026
1026
|
}
|
|
1027
|
-
var a =
|
|
1027
|
+
var a = wt(i.stem);
|
|
1028
1028
|
a && (t = y(y({}, t), a));
|
|
1029
1029
|
var o = zr(i.stem);
|
|
1030
1030
|
o && (t = y(y({}, t), o));
|
|
@@ -2807,13 +2807,13 @@ var ln = (
|
|
|
2807
2807
|
} else {
|
|
2808
2808
|
if (_.length === 0)
|
|
2809
2809
|
return this.error(m.EXPECT_DATE_TIME_SKELETON, x);
|
|
2810
|
-
var
|
|
2811
|
-
this.locale && (
|
|
2810
|
+
var A = _;
|
|
2811
|
+
this.locale && (A = Zr(_, this.locale));
|
|
2812
2812
|
var f = {
|
|
2813
2813
|
type: j.dateTime,
|
|
2814
|
-
pattern:
|
|
2814
|
+
pattern: A,
|
|
2815
2815
|
location: u.styleLocation,
|
|
2816
|
-
parsedOptions: this.shouldParseSkeletons ? Fr(
|
|
2816
|
+
parsedOptions: this.shouldParseSkeletons ? Fr(A) : {}
|
|
2817
2817
|
}, T = o === "date" ? g.date : g.time;
|
|
2818
2818
|
return {
|
|
2819
2819
|
val: { type: T, value: n, location: x, style: f },
|
|
@@ -3193,7 +3193,7 @@ function ae(e, t, r, n, i, s, a) {
|
|
|
3193
3193
|
var E = l.children, x = l.value, _ = i[x];
|
|
3194
3194
|
if (!En(_))
|
|
3195
3195
|
throw new dn(x, "function", a);
|
|
3196
|
-
var
|
|
3196
|
+
var A = ae(E, t, r, n, i, s), T = _(A.map(function(P) {
|
|
3197
3197
|
return P.value;
|
|
3198
3198
|
}));
|
|
3199
3199
|
Array.isArray(T) || (T = [T]), o.push.apply(o, T.map(function(P) {
|
|
@@ -3442,7 +3442,7 @@ function Hn(e, t) {
|
|
|
3442
3442
|
const r = Sn(e);
|
|
3443
3443
|
return Bn(r, t);
|
|
3444
3444
|
}
|
|
3445
|
-
function
|
|
3445
|
+
function An(e) {
|
|
3446
3446
|
if (e == null)
|
|
3447
3447
|
return;
|
|
3448
3448
|
const t = pe(e);
|
|
@@ -3461,7 +3461,7 @@ W(
|
|
|
3461
3461
|
);
|
|
3462
3462
|
ie.subscribe((e) => Ge = e);
|
|
3463
3463
|
const ue = {};
|
|
3464
|
-
function
|
|
3464
|
+
function wn(e, t) {
|
|
3465
3465
|
ue[e].delete(t), ue[e].size === 0 && delete ue[e];
|
|
3466
3466
|
}
|
|
3467
3467
|
function Ct(e) {
|
|
@@ -3483,7 +3483,7 @@ function Re(e) {
|
|
|
3483
3483
|
}
|
|
3484
3484
|
function On(e, t) {
|
|
3485
3485
|
return Promise.all(
|
|
3486
|
-
t.map((n) => (
|
|
3486
|
+
t.map((n) => (wn(e, n), n().then((i) => i.default || i)))
|
|
3487
3487
|
).then((n) => Mt(e, ...n));
|
|
3488
3488
|
}
|
|
3489
3489
|
const q = {};
|
|
@@ -3566,7 +3566,7 @@ ce.subscribe((e) => {
|
|
|
3566
3566
|
De = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3567
3567
|
});
|
|
3568
3568
|
const Fn = (e) => {
|
|
3569
|
-
if (e &&
|
|
3569
|
+
if (e && An(e) && Re(e)) {
|
|
3570
3570
|
const { loadingDelay: t } = X();
|
|
3571
3571
|
let r;
|
|
3572
3572
|
return typeof window < "u" && I() != null && t ? r = window.setTimeout(
|
|
@@ -3832,8 +3832,14 @@ function hi(e, t) {
|
|
|
3832
3832
|
a.includes(s) || (n.adoptedStyleSheets = [...a, s]);
|
|
3833
3833
|
});
|
|
3834
3834
|
}
|
|
3835
|
-
function li(e, t, r) {
|
|
3836
|
-
|
|
3835
|
+
function li(e, t, r, n = !1) {
|
|
3836
|
+
if (window.emMessageBus) {
|
|
3837
|
+
const i = n ? (s) => {
|
|
3838
|
+
!s || typeof s != "object" || Array.isArray(s) || Object.keys(s).forEach((a) => r(a, s[a]));
|
|
3839
|
+
} : r;
|
|
3840
|
+
t = window.emMessageBus.subscribe(e, i);
|
|
3841
|
+
}
|
|
3842
|
+
return t;
|
|
3837
3843
|
}
|
|
3838
3844
|
function ci(e) {
|
|
3839
3845
|
Xt(e, "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}');
|
|
@@ -4000,16 +4006,16 @@ function bi(e) {
|
|
|
4000
4006
|
function di(e, t, r) {
|
|
4001
4007
|
let n;
|
|
4002
4008
|
Vt(e, ti, (p) => r(7, n = p));
|
|
4003
|
-
let { lang: i = "en" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { mbsource: o } = t, { translationurl: h = "" } = t, { isNativeApp: u = !1 } = t, { mode: l = "button" } = t, { isFromLogin: c = !1 } = t, { isLoading: f = !1 } = t, d, E, x, _ = null,
|
|
4009
|
+
let { lang: i = "en" } = t, { clientstyling: s = "" } = t, { clientstylingurl: a = "" } = t, { mbsource: o } = t, { translationurl: h = "" } = t, { isNativeApp: u = !1 } = t, { mode: l = "button" } = t, { isFromLogin: c = !1 } = t, { isLoading: f = !1 } = t, d, E, x, _ = null, A = !1, T = !1, B = !1;
|
|
4004
4010
|
const O = (p) => {
|
|
4005
|
-
Object.keys(p).forEach((
|
|
4006
|
-
ri(
|
|
4011
|
+
Object.keys(p).forEach((w) => {
|
|
4012
|
+
ri(w, p[w]);
|
|
4007
4013
|
});
|
|
4008
4014
|
}, P = () => {
|
|
4009
|
-
fetch(h).then((
|
|
4010
|
-
O(
|
|
4011
|
-
}).catch((
|
|
4012
|
-
console.log(
|
|
4015
|
+
fetch(h).then((w) => w.json()).then((w) => {
|
|
4016
|
+
O(w);
|
|
4017
|
+
}).catch((w) => {
|
|
4018
|
+
console.log(w);
|
|
4013
4019
|
});
|
|
4014
4020
|
};
|
|
4015
4021
|
O(ii);
|
|
@@ -4037,22 +4043,22 @@ function di(e, t, r) {
|
|
|
4037
4043
|
}, je = async () => {
|
|
4038
4044
|
T || (r(5, T = !0), B = !0, window.postMessage({
|
|
4039
4045
|
type: "ToggleBiometrics",
|
|
4040
|
-
data: `${!
|
|
4046
|
+
data: `${!A}`,
|
|
4041
4047
|
isFromLogin: c
|
|
4042
4048
|
}), ke());
|
|
4043
4049
|
}, Ve = (p) => {
|
|
4044
|
-
p.data?.type === "NativeAppReady" && (r(0, u = !0), Xe()), p.data?.type === "BiometricsStatus" && (r(4,
|
|
4050
|
+
p.data?.type === "NativeAppReady" && (r(0, u = !0), Xe()), p.data?.type === "BiometricsStatus" && (r(4, A = p.data.status || !1), r(5, T = !1), _ && (clearTimeout(_), _ = null), B && (c || ze("success", n(A ? "successEnableBiometrics" : "successDisableBiometrics"))), B = !1);
|
|
4045
4051
|
}, Xe = () => {
|
|
4046
4052
|
r(5, T = !0), window.postMessage({ type: "GetBiometricsStatus" }), ke();
|
|
4047
4053
|
}, Gt = () => {
|
|
4048
4054
|
window.postMessage({ type: "CheckNativeApp" });
|
|
4049
|
-
}, ze = (p,
|
|
4055
|
+
}, ze = (p, w) => {
|
|
4050
4056
|
window.postMessage(
|
|
4051
4057
|
{
|
|
4052
4058
|
type: "WidgetNotification",
|
|
4053
4059
|
data: {
|
|
4054
4060
|
type: p,
|
|
4055
|
-
message:
|
|
4061
|
+
message: w,
|
|
4056
4062
|
config: { clearBefore: !0 }
|
|
4057
4063
|
}
|
|
4058
4064
|
},
|
|
@@ -4083,7 +4089,7 @@ function di(e, t, r) {
|
|
|
4083
4089
|
l,
|
|
4084
4090
|
f,
|
|
4085
4091
|
d,
|
|
4086
|
-
|
|
4092
|
+
A,
|
|
4087
4093
|
T,
|
|
4088
4094
|
Ee,
|
|
4089
4095
|
n,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, g as getElement, f as forceUpdate } from './index-1a58e188.js';
|
|
2
2
|
|
|
3
3
|
const DEFAULT_LANGUAGE = 'en';
|
|
4
4
|
const TRANSLATIONS = {
|
|
@@ -351,19 +351,20 @@ const TRANSLATIONS = {
|
|
|
351
351
|
"biometricLogin": "Login with FaceID/Fingerprint",
|
|
352
352
|
}
|
|
353
353
|
};
|
|
354
|
+
const setTranslation = (data) => {
|
|
355
|
+
Object.keys(data).forEach((locale) => {
|
|
356
|
+
TRANSLATIONS[locale] = TRANSLATIONS[locale] || {};
|
|
357
|
+
Object.keys(data[locale]).forEach((key) => {
|
|
358
|
+
TRANSLATIONS[locale][key] = data[locale][key];
|
|
359
|
+
});
|
|
360
|
+
});
|
|
361
|
+
};
|
|
354
362
|
const getTranslations = (url) => {
|
|
355
363
|
return new Promise((resolve) => {
|
|
356
364
|
fetch(url)
|
|
357
365
|
.then((res) => res.json())
|
|
358
366
|
.then((data) => {
|
|
359
|
-
|
|
360
|
-
if (!TRANSLATIONS[lang]) {
|
|
361
|
-
TRANSLATIONS[lang] = {};
|
|
362
|
-
}
|
|
363
|
-
for (let key in data[lang]) {
|
|
364
|
-
TRANSLATIONS[lang][key] = data[lang][key];
|
|
365
|
-
}
|
|
366
|
-
});
|
|
367
|
+
setTranslation(data);
|
|
367
368
|
resolve(true);
|
|
368
369
|
});
|
|
369
370
|
});
|
|
@@ -380,6 +381,26 @@ const translate = (key, customLang, values) => {
|
|
|
380
381
|
return translation;
|
|
381
382
|
};
|
|
382
383
|
|
|
384
|
+
/**
|
|
385
|
+
* Subscribe to translation updates from the message bus.
|
|
386
|
+
*
|
|
387
|
+
* @param {string} domain - Message bus topic, such as `MyWidget.Translation`.
|
|
388
|
+
* @param {object | undefined} subscription - Existing subscription returned if the message bus is unavailable.
|
|
389
|
+
* @param {Function} onChange - Callback receiving the payload or `(locale, messages)` when byLocale is true.
|
|
390
|
+
* @param {boolean} [byLocale=false] - Invoke the callback once per locale, ignoring invalid payloads.
|
|
391
|
+
* @returns {object | undefined} The new or existing subscription.
|
|
392
|
+
*/
|
|
393
|
+
function getStreamTranslations(domain, subscription, onChange, byLocale = false) {
|
|
394
|
+
if (window.emMessageBus) {
|
|
395
|
+
const callback = byLocale ? (data) => {
|
|
396
|
+
if (!data || typeof data !== 'object' || Array.isArray(data)) return;
|
|
397
|
+
Object.keys(data).forEach((locale) => onChange(locale, data[locale]));
|
|
398
|
+
} : onChange;
|
|
399
|
+
subscription = window.emMessageBus.subscribe(domain, callback);
|
|
400
|
+
}
|
|
401
|
+
return subscription;
|
|
402
|
+
}
|
|
403
|
+
|
|
383
404
|
const StyleCacheKey = '__WIDGET_GLOBAL_STYLE_CACHE__';
|
|
384
405
|
|
|
385
406
|
/**
|
|
@@ -7539,7 +7560,7 @@ const UserLogin = class {
|
|
|
7539
7560
|
if (((_a = e.data) === null || _a === void 0 ? void 0 : _a.type) === 'NativeAppReady') {
|
|
7540
7561
|
this.isNativeApp = true;
|
|
7541
7562
|
if (!this.biometricsLoaded) {
|
|
7542
|
-
await import('./player-account-biometrics-action-
|
|
7563
|
+
await import('./player-account-biometrics-action-de0c4e20.js');
|
|
7543
7564
|
this.biometricsLoaded = true;
|
|
7544
7565
|
}
|
|
7545
7566
|
}
|
|
@@ -7997,10 +8018,21 @@ const UserLogin = class {
|
|
|
7997
8018
|
if (this.clientStylingUrl)
|
|
7998
8019
|
setClientStylingURL(this.stylingContainer, this.clientStylingUrl);
|
|
7999
8020
|
}
|
|
8021
|
+
handleClientTranslations() {
|
|
8022
|
+
if (this.mbSource && !this.translationUrl) {
|
|
8023
|
+
this.translationSubscription = getStreamTranslations(`${this.mbSource}.Translation`, this.translationSubscription, (data) => {
|
|
8024
|
+
if (!data || typeof data !== 'object')
|
|
8025
|
+
return;
|
|
8026
|
+
setTranslation(data);
|
|
8027
|
+
forceUpdate(this.host);
|
|
8028
|
+
});
|
|
8029
|
+
}
|
|
8030
|
+
}
|
|
8000
8031
|
/**
|
|
8001
8032
|
* Lifecycle method: Set up event listeners after the component is rendered
|
|
8002
8033
|
*/
|
|
8003
8034
|
componentDidLoad() {
|
|
8035
|
+
this.handleClientTranslations();
|
|
8004
8036
|
this.handleClientStyling();
|
|
8005
8037
|
window.addEventListener('LoginCredentials', this.autofillCredentialsHandler);
|
|
8006
8038
|
window.postMessage({ type: 'UserLoginDidLoad' });
|
|
@@ -8082,12 +8114,13 @@ const UserLogin = class {
|
|
|
8082
8114
|
* Lifecycle method: Clean up event listeners when the component is removed
|
|
8083
8115
|
*/
|
|
8084
8116
|
disconnectedCallback() {
|
|
8085
|
-
var _a, _b;
|
|
8117
|
+
var _a, _b, _c;
|
|
8118
|
+
(_a = this.translationSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
8086
8119
|
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
8087
8120
|
window.removeEventListener('LoginCredentials', this.autofillCredentialsHandler);
|
|
8088
8121
|
window.removeEventListener('message', this.messageHandler);
|
|
8089
8122
|
if (this.turnstileSiteKey)
|
|
8090
|
-
(
|
|
8123
|
+
(_c = (_b = this.captchaInstance) === null || _b === void 0 ? void 0 : _b.cleanup) === null || _c === void 0 ? void 0 : _c.call(_b);
|
|
8091
8124
|
}
|
|
8092
8125
|
/**
|
|
8093
8126
|
* Send error notification as a post message
|
|
@@ -8170,7 +8203,7 @@ const UserLogin = class {
|
|
|
8170
8203
|
* Render function
|
|
8171
8204
|
*/
|
|
8172
8205
|
render() {
|
|
8173
|
-
return (h("section", { key: '
|
|
8206
|
+
return (h("section", { key: '9c89db60dc60d51a23be372c030f96842cfac9b0', ref: el => this.stylingContainer = el }, this.renderUserIdentification(), h("slot", { key: '41cfd006898fd028afb55314051d37954da71bde', name: CAPTCHA_CONTAINER_SLOT })));
|
|
8174
8207
|
}
|
|
8175
8208
|
get host() { return getElement(this); }
|
|
8176
8209
|
static get watchers() { return {
|
package/dist/esm/user-login.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-1a58e188.js';
|
|
2
|
+
export { s as setNonce } from './index-1a58e188.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
@@ -120,6 +120,7 @@ export declare class UserLogin {
|
|
|
120
120
|
private errorCode;
|
|
121
121
|
private stylingContainer?;
|
|
122
122
|
private stylingSubscription;
|
|
123
|
+
private translationSubscription;
|
|
123
124
|
private captchaInstance;
|
|
124
125
|
private captchaToken?;
|
|
125
126
|
private registrationPasswordValidator;
|
|
@@ -147,6 +148,7 @@ export declare class UserLogin {
|
|
|
147
148
|
*/
|
|
148
149
|
componentWillLoad(): Promise<void>;
|
|
149
150
|
handleClientStyling(): void;
|
|
151
|
+
handleClientTranslations(): void;
|
|
150
152
|
/**
|
|
151
153
|
* Lifecycle method: Set up event listeners after the component is rendered
|
|
152
154
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),p=!1,m=[],v=[],w=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&f.l?b($):f.raf($))},y=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},$=()=>{y(m),y(v),(p=m.length>0)&&f.raf($)},b=e=>h().then(e),g=w(v,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function O(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>E,map:()=>C,ok:()=>k,unwrap:()=>P,unwrapErr:()=>L});var k=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>k(e))):k(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x,P=e=>{if(e.isOk)return e.value;throw e.value},L=e=>{if(e.isErr)return e.value;throw e.value},R=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!j(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?T(null,l):l),r=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=T(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=o,u},T=(e,t)=>({l:0,m:e,i:t,v:null,h:null,u:null,p:null}),A={},F=e=>n(e).$hostElement$,N=new WeakMap,U=e=>"sc-"+e.$,W=(e,t,n,l,s,r)=>{if(n!==l){let i=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=H(n),s=H(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const o=j(l);if((i||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(q);t=t.replace(G,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},D=/\s/,H=e=>e?e.split(D):[],q="Capture",G=RegExp(q+"$"),V=(e,t,n)=>{const l=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.u||S,s=t.u||S;for(const e of _(Object.keys(o)))e in s||W(l,e,o[e],void 0,n,t.l);for(const e of _(Object.keys(s)))W(l,e,o[e],s[e],n,t.l)};function _(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var z=!1,B=!1,I=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.v=a.createTextNode(l.i);else{if(B||(B="svg"===l.m),o=l.v=a.createElementNS(B?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l.m),B&&"foreignObject"===l.m&&(B=!1),V(null,l,B),null!=M&&o["s-si"]!==M&&o.classList.add(o["s-si"]=M),l.h)for(r=0;r<l.h.length;++r)s=I(e,l,r),s&&o.appendChild(s);"svg"===l.m?B=!1:"foreignObject"===o.tagName&&(B=!0)}return o["s-hn"]=x,o},J=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===x&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=I(null,n,o),r&&(l[o].v=r,Z(i,r,t)))},K=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.v;Y(t),e&&e.remove()}}},Q=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),X=(e,t,n=!1)=>{const l=t.v=e.v,o=e.h,s=t.h,r=t.m,i=t.i;null===i?(B="svg"===r||"foreignObject"!==r&&B,("slot"!==r||z)&&V(e,t,B),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],p=l.length-1,m=l[0],v=l[p];for(;i<=f&&c<=p;)if(null==h)h=t[++i];else if(null==d)d=t[--f];else if(null==m)m=l[++c];else if(null==v)v=l[--p];else if(Q(h,m,o))X(h,m,o),h=t[++i],m=l[++c];else if(Q(d,v,o))X(d,v,o),d=t[--f],v=l[--p];else if(Q(h,v,o))X(h,v,o),Z(e,h.v,d.v.nextSibling),h=t[++i],v=l[--p];else if(Q(d,m,o))X(d,m,o),Z(e,d.v,h.v),d=t[--f],m=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(r=t[u],r.m!==m.m?s=I(t&&t[c],n,u):(X(r,m,o),t[u]=void 0,s=r.v),m=l[++c]):(s=I(t&&t[c],n,c),m=l[++c]),s&&Z(h.v.parentNode,s,h.v)}i>f?J(e,null==l[p+1]?null:l[p+1].v,n,l,c,p):c>p&&K(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),J(l,null,t,s,0,s.length-1)):null!==o&&K(o,0,o.length-1),B&&"svg"===r&&(B=!1)):e.i!==i&&(l.data=i)},Y=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(Y)},Z=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),ee=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},te=(e,t)=>{if(e.l|=16,!(4&e.l))return ee(e,e.j),g((()=>ne(e,t)));e.l|=512},ne=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(l=ue(n,"componentWillLoad")),le(l,(()=>se(e,n,t)))},le=(e,t)=>oe(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),oe=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,se=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=U(t),o=i.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,r=N.get(e=e.head||e);if(r||N.set(e,r=new Set),!r.has(l)){{s=a.createElement("style"),s.innerHTML=o;const t=null!=(n=f.k)?n:O(a);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}4&t.l&&(s.innerHTML+=c),r&&r.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);re(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>ie(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},re=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.O,s=e.C||T(null,null),r=(e=>e&&e.m===A)(t)?t:R(null,null,t);if(x=l.tagName,o.M&&(r.u=r.u||{},o.M.map((([e,t])=>r.u[t]=l[e]))),n&&r.u)for(const e of Object.keys(r.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=l[e]);r.m=null,r.l|=4,e.C=r,r.v=s.v=l.shadowRoot||l,M=l["s-sc"],z=!!(1&o.l),X(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},ie=e=>{const t=e.$hostElement$,n=e.t,l=e.j;64&e.l||(e.l|=64,ae(t),ue(n,"componentDidLoad"),e.P(t),l||ce()),e.L(t),e.S&&(e.S(),e.S=void 0),512&e.l&&b((()=>te(e,!1))),e.l&=-517},ce=()=>{ae(a.documentElement),b((()=>(e=>{const t=f.ce("appload",{detail:{namespace:"user-login"}});return e.dispatchEvent(t),t})(u)))},ue=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},ae=e=>e.classList.add("hydrated"),fe=(e,t,l)=>{var o,r;const i=e.prototype;if(t.R||t.T||e.watchers){e.watchers&&!t.T&&(t.T=e.watchers);const c=Object.entries(null!=(o=t.R)?o:{});if(c.map((([e,[o]])=>{31&o||2&l&&32&o?Object.defineProperty(i,e,{get(){return((e,t)=>n(this).A.get(t))(0,e)},set(l){((e,t,l,o)=>{const r=n(e);if(!r)throw Error(`Couldn't find host element for "${o.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=r.$hostElement$,c=r.A.get(t),u=r.l,a=r.t;if(l=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,o.R[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(r.A.set(t,l),a)){if(o.T&&128&u){const e=o.T[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){s(e,i)}}))}2==(18&u)&&te(r,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0}):1&l&&64&o&&Object.defineProperty(i,e,{value(...t){var l;const o=n(this);return null==(l=null==o?void 0:o.F)?void 0:l.then((()=>{var n;return null==(n=o.t)?void 0:n[e](...t)}))}})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var r;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&s!==o){const n=l.t,i=null==(r=t.T)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=t.T)?r:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.M)||o.push([e,s])),s}))]))}}return e},he=e=>{ue(e,"disconnectedCallback")},de=(e,l={})=>{var o;const h=[],p=l.exclude||[],m=u.customElements,v=a.head,w=v.querySelector("meta[charset]"),y=a.createElement("style"),$=[];let b,g=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],$:l[1],R:l[2],N:l[3]};4&c.l&&(S=!0),c.R=l[2],c.M=[],c.T=null!=(o=l[4])?o:{};const u=c.$,a=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,O:n,A:new Map};l.F=new Promise((e=>l.L=e)),l.U=new Promise((e=>l.P=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c),1&c.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),b&&(clearTimeout(b),b=null),g?$.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.O,o=()=>{};if(1&t.l)(null==t?void 0:t.t)||(null==t?void 0:t.U)&&t.U.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ee(t,t.j=n);break}}l.R&&Object.entries(l.R).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.W){const e=(e=>{const t=e.$.replace(/-/g,"_"),n=e.W;if(!n)return;const l=r.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),s)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.$}#${t.D}" was not found`);l.isProxied||(n.T=l.watchers,
|
|
1
|
+
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),p=!1,m=[],v=[],w=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&f.l?b($):f.raf($))},y=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},$=()=>{y(m),y(v),(p=m.length>0)&&f.raf($)},b=e=>h().then(e),g=w(v,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function O(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>E,map:()=>C,ok:()=>k,unwrap:()=>P,unwrapErr:()=>L});var k=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>k(e))):k(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x,P=e=>{if(e.isOk)return e.value;throw e.value},L=e=>{if(e.isErr)return e.value;throw e.value},R=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!j(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?T(null,l):l),r=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=T(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=o,u},T=(e,t)=>({l:0,m:e,i:t,v:null,h:null,u:null,p:null}),A={},F=e=>n(e).$hostElement$,N=new WeakMap,U=e=>"sc-"+e.$,W=(e,t,n,l,s,r)=>{if(n!==l){let i=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=H(n),s=H(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const o=j(l);if((i||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(q);t=t.replace(G,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},D=/\s/,H=e=>e?e.split(D):[],q="Capture",G=RegExp(q+"$"),V=(e,t,n)=>{const l=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.u||S,s=t.u||S;for(const e of _(Object.keys(o)))e in s||W(l,e,o[e],void 0,n,t.l);for(const e of _(Object.keys(s)))W(l,e,o[e],s[e],n,t.l)};function _(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var z=!1,B=!1,I=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.v=a.createTextNode(l.i);else{if(B||(B="svg"===l.m),o=l.v=a.createElementNS(B?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l.m),B&&"foreignObject"===l.m&&(B=!1),V(null,l,B),null!=M&&o["s-si"]!==M&&o.classList.add(o["s-si"]=M),l.h)for(r=0;r<l.h.length;++r)s=I(e,l,r),s&&o.appendChild(s);"svg"===l.m?B=!1:"foreignObject"===o.tagName&&(B=!0)}return o["s-hn"]=x,o},J=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===x&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=I(null,n,o),r&&(l[o].v=r,Z(i,r,t)))},K=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.v;Y(t),e&&e.remove()}}},Q=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),X=(e,t,n=!1)=>{const l=t.v=e.v,o=e.h,s=t.h,r=t.m,i=t.i;null===i?(B="svg"===r||"foreignObject"!==r&&B,("slot"!==r||z)&&V(e,t,B),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],d=t[f],p=l.length-1,m=l[0],v=l[p];for(;i<=f&&c<=p;)if(null==h)h=t[++i];else if(null==d)d=t[--f];else if(null==m)m=l[++c];else if(null==v)v=l[--p];else if(Q(h,m,o))X(h,m,o),h=t[++i],m=l[++c];else if(Q(d,v,o))X(d,v,o),d=t[--f],v=l[--p];else if(Q(h,v,o))X(h,v,o),Z(e,h.v,d.v.nextSibling),h=t[++i],v=l[--p];else if(Q(d,m,o))X(d,m,o),Z(e,d.v,h.v),d=t[--f],m=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(r=t[u],r.m!==m.m?s=I(t&&t[c],n,u):(X(r,m,o),t[u]=void 0,s=r.v),m=l[++c]):(s=I(t&&t[c],n,c),m=l[++c]),s&&Z(h.v.parentNode,s,h.v)}i>f?J(e,null==l[p+1]?null:l[p+1].v,n,l,c,p):c>p&&K(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),J(l,null,t,s,0,s.length-1)):null!==o&&K(o,0,o.length-1),B&&"svg"===r&&(B=!1)):e.i!==i&&(l.data=i)},Y=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(Y)},Z=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),ee=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},te=(e,t)=>{if(e.l|=16,!(4&e.l))return ee(e,e.j),g((()=>ne(e,t)));e.l|=512},ne=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(l=ae(n,"componentWillLoad")),le(l,(()=>se(e,n,t)))},le=(e,t)=>oe(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),oe=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,se=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=U(t),o=i.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,r=N.get(e=e.head||e);if(r||N.set(e,r=new Set),!r.has(l)){{s=a.createElement("style"),s.innerHTML=o;const t=null!=(n=f.k)?n:O(a);null!=t&&s.setAttribute("nonce",t),e.insertBefore(s,e.querySelector("link"))}4&t.l&&(s.innerHTML+=c),r&&r.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);re(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>ie(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},re=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.O,s=e.C||T(null,null),r=(e=>e&&e.m===A)(t)?t:R(null,null,t);if(x=l.tagName,o.M&&(r.u=r.u||{},o.M.map((([e,t])=>r.u[t]=l[e]))),n&&r.u)for(const e of Object.keys(r.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=l[e]);r.m=null,r.l|=4,e.C=r,r.v=s.v=l.shadowRoot||l,M=l["s-sc"],z=!!(1&o.l),X(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},ie=e=>{const t=e.$hostElement$,n=e.t,l=e.j;64&e.l||(e.l|=64,fe(t),ae(n,"componentDidLoad"),e.P(t),l||ue()),e.L(t),e.S&&(e.S(),e.S=void 0),512&e.l&&b((()=>te(e,!1))),e.l&=-517},ce=e=>{{const t=n(e),l=t.$hostElement$.isConnected;return l&&2==(18&t.l)&&te(t,!1),l}},ue=()=>{fe(a.documentElement),b((()=>(e=>{const t=f.ce("appload",{detail:{namespace:"user-login"}});return e.dispatchEvent(t),t})(u)))},ae=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},fe=e=>e.classList.add("hydrated"),he=(e,t,l)=>{var o,r;const i=e.prototype;if(t.R||t.T||e.watchers){e.watchers&&!t.T&&(t.T=e.watchers);const c=Object.entries(null!=(o=t.R)?o:{});if(c.map((([e,[o]])=>{31&o||2&l&&32&o?Object.defineProperty(i,e,{get(){return((e,t)=>n(this).A.get(t))(0,e)},set(l){((e,t,l,o)=>{const r=n(e);if(!r)throw Error(`Couldn't find host element for "${o.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=r.$hostElement$,c=r.A.get(t),u=r.l,a=r.t;if(l=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,o.R[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(r.A.set(t,l),a)){if(o.T&&128&u){const e=o.T[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){s(e,i)}}))}2==(18&u)&&te(r,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0}):1&l&&64&o&&Object.defineProperty(i,e,{value(...t){var l;const o=n(this);return null==(l=null==o?void 0:o.F)?void 0:l.then((()=>{var n;return null==(n=o.t)?void 0:n[e](...t)}))}})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var r;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&s!==o){const n=l.t,i=null==(r=t.T)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=t.T)?r:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.M)||o.push([e,s])),s}))]))}}return e},de=e=>{ae(e,"disconnectedCallback")},pe=(e,l={})=>{var o;const h=[],p=l.exclude||[],m=u.customElements,v=a.head,w=v.querySelector("meta[charset]"),y=a.createElement("style"),$=[];let b,g=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],$:l[1],R:l[2],N:l[3]};4&c.l&&(S=!0),c.R=l[2],c.M=[],c.T=null!=(o=l[4])?o:{};const u=c.$,a=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,O:n,A:new Map};l.F=new Promise((e=>l.L=e)),l.U=new Promise((e=>l.P=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c),1&c.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),b&&(clearTimeout(b),b=null),g?$.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.O,o=()=>{};if(1&t.l)(null==t?void 0:t.t)||(null==t?void 0:t.U)&&t.U.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){ee(t,t.j=n);break}}l.R&&Object.entries(l.R).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.W){const e=(e=>{const t=e.$.replace(/-/g,"_"),n=e.W;if(!n)return;const l=r.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),s)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.$}#${t.D}" was not found`);l.isProxied||(n.T=l.watchers,he(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,t.l|=128,o()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=U(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);d&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,i.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.j,c=()=>te(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);(null==e?void 0:e.t)?de(e.t):(null==e?void 0:e.U)&&e.U.then((()=>de(e.t)))}})()))}componentOnReady(){return n(this).U}};c.W=e[0],p.includes(u)||m.get(u)||(h.push(u),m.define(u,he(a,c,1)))}))})),h.length>0&&(S&&(y.textContent+=c),y.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",y.innerHTML.length)){y.setAttribute("data-styles","");const e=null!=(o=f.k)?o:O(a);null!=e&&y.setAttribute("nonce",e),v.insertBefore(y,w?w.nextSibling:v.firstChild)}g=!1,$.length?$.map((e=>e.connectedCallback())):f.jmp((()=>b=setTimeout(ue,30)))},me=e=>f.k=e;export{pe as b,ce as f,F as g,R as h,h as p,l as r,me as s}
|