@hotosm/hanko-auth 0.4.5 → 0.4.6
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/README.md +13 -0
- package/dist/hanko-auth.esm.js +773 -646
- package/dist/hanko-auth.iife.js +163 -44
- package/dist/hanko-auth.umd.js +164 -45
- package/package.json +1 -1
- package/src/hanko-auth.styles.ts +77 -6
- package/src/hanko-auth.ts +89 -2
package/dist/hanko-auth.esm.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
6
|
const an = globalThis, Gn = an.ShadowRoot && (an.ShadyCSS === void 0 || an.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Xn = Symbol(), So = /* @__PURE__ */ new WeakMap();
|
|
7
|
-
let
|
|
7
|
+
let ui = class {
|
|
8
8
|
constructor(e, t, o) {
|
|
9
9
|
if (this._$cssResult$ = !0, o !== Xn) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
10
10
|
this.cssText = e, this.t = t;
|
|
@@ -22,14 +22,14 @@ let si = class {
|
|
|
22
22
|
return this.cssText;
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
const
|
|
25
|
+
const Ki = (n) => new ui(typeof n == "string" ? n : n + "", void 0, Xn), Vi = (n, ...e) => {
|
|
26
26
|
const t = n.length === 1 ? n[0] : e.reduce((o, i, a) => o + ((s) => {
|
|
27
27
|
if (s._$cssResult$ === !0) return s.cssText;
|
|
28
28
|
if (typeof s == "number") return s;
|
|
29
29
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + s + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
30
30
|
})(i) + n[a + 1], n[0]);
|
|
31
|
-
return new
|
|
32
|
-
},
|
|
31
|
+
return new ui(t, n, Xn);
|
|
32
|
+
}, Bi = (n, e) => {
|
|
33
33
|
if (Gn) n.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
|
|
34
34
|
else for (const t of e) {
|
|
35
35
|
const o = document.createElement("style"), i = an.litNonce;
|
|
@@ -38,17 +38,17 @@ const zi = (n) => new si(typeof n == "string" ? n : n + "", void 0, Xn), Hi = (n
|
|
|
38
38
|
}, xo = Gn ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((e) => {
|
|
39
39
|
let t = "";
|
|
40
40
|
for (const o of e.cssRules) t += o.cssText;
|
|
41
|
-
return
|
|
41
|
+
return Ki(t);
|
|
42
42
|
})(n) : n;
|
|
43
43
|
/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
47
|
*/
|
|
48
|
-
const { is:
|
|
48
|
+
const { is: Zi, defineProperty: Ji, getOwnPropertyDescriptor: Yi, getOwnPropertyNames: Qi, getOwnPropertySymbols: Gi, getPrototypeOf: Xi } = Object, st = globalThis, Ao = st.trustedTypes, ea = Ao ? Ao.emptyScript : "", Dn = st.reactiveElementPolyfillSupport, Ut = (n, e) => n, fn = { toAttribute(n, e) {
|
|
49
49
|
switch (e) {
|
|
50
50
|
case Boolean:
|
|
51
|
-
n = n ?
|
|
51
|
+
n = n ? ea : null;
|
|
52
52
|
break;
|
|
53
53
|
case Object:
|
|
54
54
|
case Array:
|
|
@@ -73,7 +73,7 @@ const { is: Fi, defineProperty: Ki, getOwnPropertyDescriptor: Vi, getOwnProperty
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return t;
|
|
76
|
-
} }, eo = (n, e) => !
|
|
76
|
+
} }, eo = (n, e) => !Zi(n, e), Co = { attribute: !0, type: String, converter: fn, reflect: !1, useDefault: !1, hasChanged: eo };
|
|
77
77
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), st.litPropertyMetadata ?? (st.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
78
|
let pt = class extends HTMLElement {
|
|
79
79
|
static addInitializer(e) {
|
|
@@ -85,11 +85,11 @@ let pt = class extends HTMLElement {
|
|
|
85
85
|
static createProperty(e, t = Co) {
|
|
86
86
|
if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) {
|
|
87
87
|
const o = Symbol(), i = this.getPropertyDescriptor(e, o, t);
|
|
88
|
-
i !== void 0 &&
|
|
88
|
+
i !== void 0 && Ji(this.prototype, e, i);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
static getPropertyDescriptor(e, t, o) {
|
|
92
|
-
const { get: i, set: a } =
|
|
92
|
+
const { get: i, set: a } = Yi(this.prototype, e) ?? { get() {
|
|
93
93
|
return this[t];
|
|
94
94
|
}, set(s) {
|
|
95
95
|
this[t] = s;
|
|
@@ -104,13 +104,13 @@ let pt = class extends HTMLElement {
|
|
|
104
104
|
}
|
|
105
105
|
static _$Ei() {
|
|
106
106
|
if (this.hasOwnProperty(Ut("elementProperties"))) return;
|
|
107
|
-
const e =
|
|
107
|
+
const e = Xi(this);
|
|
108
108
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
109
109
|
}
|
|
110
110
|
static finalize() {
|
|
111
111
|
if (this.hasOwnProperty(Ut("finalized"))) return;
|
|
112
112
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Ut("properties"))) {
|
|
113
|
-
const t = this.properties, o = [...
|
|
113
|
+
const t = this.properties, o = [...Qi(t), ...Gi(t)];
|
|
114
114
|
for (const i of o) this.createProperty(i, t[i]);
|
|
115
115
|
}
|
|
116
116
|
const e = this[Symbol.metadata];
|
|
@@ -159,7 +159,7 @@ let pt = class extends HTMLElement {
|
|
|
159
159
|
}
|
|
160
160
|
createRenderRoot() {
|
|
161
161
|
const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
162
|
-
return
|
|
162
|
+
return Bi(e, this.constructor.elementStyles), e;
|
|
163
163
|
}
|
|
164
164
|
connectedCallback() {
|
|
165
165
|
var e;
|
|
@@ -284,42 +284,42 @@ pt.elementStyles = [], pt.shadowRootOptions = { mode: "open" }, pt[Ut("elementPr
|
|
|
284
284
|
* Copyright 2017 Google LLC
|
|
285
285
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
286
286
|
*/
|
|
287
|
-
const Nt = globalThis, Oo = (n) => n, vn = Nt.trustedTypes, Po = vn ? vn.createPolicy("lit-html", { createHTML: (n) => n }) : void 0,
|
|
287
|
+
const Nt = globalThis, Oo = (n) => n, vn = Nt.trustedTypes, Po = vn ? vn.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, hi = "$lit$", rt = `lit$${Math.random().toFixed(9).slice(2)}$`, pi = "?" + rt, ta = `<${pi}>`, ht = document, Rt = () => ht.createComment(""), qt = (n) => n === null || typeof n != "object" && typeof n != "function", to = Array.isArray, na = (n) => to(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", jn = `[
|
|
288
288
|
\f\r]`, yt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Eo = /-->/g, Io = />/g, ct = RegExp(`>|${jn}(?:([^\\s"'>=/]+)(${jn}*=${jn}*(?:[^
|
|
289
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Do = /'/g, jo = /"/g,
|
|
290
|
-
function
|
|
289
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Do = /'/g, jo = /"/g, mi = /^(?:script|style|textarea|title)$/i, oa = (n) => (e, ...t) => ({ _$litType$: n, strings: e, values: t }), xe = oa(1), ft = Symbol.for("lit-noChange"), $e = Symbol.for("lit-nothing"), Lo = /* @__PURE__ */ new WeakMap(), dt = ht.createTreeWalker(ht, 129);
|
|
290
|
+
function gi(n, e) {
|
|
291
291
|
if (!to(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
292
292
|
return Po !== void 0 ? Po.createHTML(e) : e;
|
|
293
293
|
}
|
|
294
|
-
const
|
|
294
|
+
const ia = (n, e) => {
|
|
295
295
|
const t = n.length - 1, o = [];
|
|
296
296
|
let i, a = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", s = yt;
|
|
297
297
|
for (let c = 0; c < t; c++) {
|
|
298
298
|
const d = n[c];
|
|
299
299
|
let l, u, h = -1, f = 0;
|
|
300
|
-
for (; f < d.length && (s.lastIndex = f, u = s.exec(d), u !== null); ) f = s.lastIndex, s === yt ? u[1] === "!--" ? s = Eo : u[1] !== void 0 ? s = Io : u[2] !== void 0 ? (
|
|
300
|
+
for (; f < d.length && (s.lastIndex = f, u = s.exec(d), u !== null); ) f = s.lastIndex, s === yt ? u[1] === "!--" ? s = Eo : u[1] !== void 0 ? s = Io : u[2] !== void 0 ? (mi.test(u[2]) && (i = RegExp("</" + u[2], "g")), s = ct) : u[3] !== void 0 && (s = ct) : s === ct ? u[0] === ">" ? (s = i ?? yt, h = -1) : u[1] === void 0 ? h = -2 : (h = s.lastIndex - u[2].length, l = u[1], s = u[3] === void 0 ? ct : u[3] === '"' ? jo : Do) : s === jo || s === Do ? s = ct : s === Eo || s === Io ? s = yt : (s = ct, i = void 0);
|
|
301
301
|
const m = s === ct && n[c + 1].startsWith("/>") ? " " : "";
|
|
302
|
-
a += s === yt ? d +
|
|
302
|
+
a += s === yt ? d + ta : h >= 0 ? (o.push(l), d.slice(0, h) + hi + d.slice(h) + rt + m) : d + rt + (h === -2 ? c : m);
|
|
303
303
|
}
|
|
304
|
-
return [
|
|
304
|
+
return [gi(n, a + (n[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), o];
|
|
305
305
|
};
|
|
306
|
-
let Bn = class
|
|
306
|
+
let Bn = class fi {
|
|
307
307
|
constructor({ strings: e, _$litType$: t }, o) {
|
|
308
308
|
let i;
|
|
309
309
|
this.parts = [];
|
|
310
310
|
let a = 0, s = 0;
|
|
311
|
-
const c = e.length - 1, d = this.parts, [l, u] =
|
|
312
|
-
if (this.el =
|
|
311
|
+
const c = e.length - 1, d = this.parts, [l, u] = ia(e, t);
|
|
312
|
+
if (this.el = fi.createElement(l, o), dt.currentNode = this.el.content, t === 2 || t === 3) {
|
|
313
313
|
const h = this.el.content.firstChild;
|
|
314
314
|
h.replaceWith(...h.childNodes);
|
|
315
315
|
}
|
|
316
316
|
for (; (i = dt.nextNode()) !== null && d.length < c; ) {
|
|
317
317
|
if (i.nodeType === 1) {
|
|
318
|
-
if (i.hasAttributes()) for (const h of i.getAttributeNames()) if (h.endsWith(
|
|
318
|
+
if (i.hasAttributes()) for (const h of i.getAttributeNames()) if (h.endsWith(hi)) {
|
|
319
319
|
const f = u[s++], m = i.getAttribute(h).split(rt), x = /([.?@])?(.*)/.exec(f);
|
|
320
|
-
d.push({ type: 1, index: a, name: x[2], strings: m, ctor: x[1] === "." ?
|
|
320
|
+
d.push({ type: 1, index: a, name: x[2], strings: m, ctor: x[1] === "." ? ra : x[1] === "?" ? sa : x[1] === "@" ? la : kn }), i.removeAttribute(h);
|
|
321
321
|
} else h.startsWith(rt) && (d.push({ type: 6, index: a }), i.removeAttribute(h));
|
|
322
|
-
if (
|
|
322
|
+
if (mi.test(i.tagName)) {
|
|
323
323
|
const h = i.textContent.split(rt), f = h.length - 1;
|
|
324
324
|
if (f > 0) {
|
|
325
325
|
i.textContent = vn ? vn.emptyScript : "";
|
|
@@ -327,7 +327,7 @@ let Bn = class hi {
|
|
|
327
327
|
i.append(h[f], Rt());
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
|
-
} else if (i.nodeType === 8) if (i.data ===
|
|
330
|
+
} else if (i.nodeType === 8) if (i.data === pi) d.push({ type: 2, index: a });
|
|
331
331
|
else {
|
|
332
332
|
let h = -1;
|
|
333
333
|
for (; (h = i.data.indexOf(rt, h + 1)) !== -1; ) d.push({ type: 7, index: a }), h += rt.length - 1;
|
|
@@ -347,7 +347,7 @@ function vt(n, e, t = n, o) {
|
|
|
347
347
|
const a = qt(e) ? void 0 : e._$litDirective$;
|
|
348
348
|
return (i == null ? void 0 : i.constructor) !== a && ((c = i == null ? void 0 : i._$AO) == null || c.call(i, !1), a === void 0 ? i = void 0 : (i = new a(n), i._$AT(n, t, o)), o !== void 0 ? (t._$Co ?? (t._$Co = []))[o] = i : t._$Cl = i), i !== void 0 && (e = vt(n, i._$AS(n, e.values), i, o)), e;
|
|
349
349
|
}
|
|
350
|
-
let
|
|
350
|
+
let aa = class {
|
|
351
351
|
constructor(e, t) {
|
|
352
352
|
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
|
|
353
353
|
}
|
|
@@ -364,7 +364,7 @@ let ta = class {
|
|
|
364
364
|
for (; d !== void 0; ) {
|
|
365
365
|
if (s === d.index) {
|
|
366
366
|
let l;
|
|
367
|
-
d.type === 2 ? l = new no(a, a.nextSibling, this, e) : d.type === 1 ? l = new d.ctor(a, d.name, d.strings, this, e) : d.type === 6 && (l = new
|
|
367
|
+
d.type === 2 ? l = new no(a, a.nextSibling, this, e) : d.type === 1 ? l = new d.ctor(a, d.name, d.strings, this, e) : d.type === 6 && (l = new ca(a, this, e)), this._$AV.push(l), d = o[++c];
|
|
368
368
|
}
|
|
369
369
|
s !== (d == null ? void 0 : d.index) && (a = dt.nextNode(), s++);
|
|
370
370
|
}
|
|
@@ -374,13 +374,13 @@ let ta = class {
|
|
|
374
374
|
let t = 0;
|
|
375
375
|
for (const o of this._$AV) o !== void 0 && (o.strings !== void 0 ? (o._$AI(e, o, t), t += o.strings.length - 2) : o._$AI(e[t])), t++;
|
|
376
376
|
}
|
|
377
|
-
}, no = class
|
|
377
|
+
}, no = class vi {
|
|
378
378
|
get _$AU() {
|
|
379
379
|
var e;
|
|
380
380
|
return ((e = this._$AM) == null ? void 0 : e._$AU) ?? this._$Cv;
|
|
381
381
|
}
|
|
382
382
|
constructor(e, t, o, i) {
|
|
383
|
-
this.type = 2, this._$AH =
|
|
383
|
+
this.type = 2, this._$AH = $e, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = o, this.options = i, this._$Cv = (i == null ? void 0 : i.isConnected) ?? !0;
|
|
384
384
|
}
|
|
385
385
|
get parentNode() {
|
|
386
386
|
let e = this._$AA.parentNode;
|
|
@@ -394,7 +394,7 @@ let ta = class {
|
|
|
394
394
|
return this._$AB;
|
|
395
395
|
}
|
|
396
396
|
_$AI(e, t = this) {
|
|
397
|
-
e = vt(this, e, t), qt(e) ? e ===
|
|
397
|
+
e = vt(this, e, t), qt(e) ? e === $e || e == null || e === "" ? (this._$AH !== $e && this._$AR(), this._$AH = $e) : e !== this._$AH && e !== ft && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : na(e) ? this.k(e) : this._(e);
|
|
398
398
|
}
|
|
399
399
|
O(e) {
|
|
400
400
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -403,14 +403,14 @@ let ta = class {
|
|
|
403
403
|
this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
|
|
404
404
|
}
|
|
405
405
|
_(e) {
|
|
406
|
-
this._$AH !==
|
|
406
|
+
this._$AH !== $e && qt(this._$AH) ? this._$AA.nextSibling.data = e : this.T(ht.createTextNode(e)), this._$AH = e;
|
|
407
407
|
}
|
|
408
408
|
$(e) {
|
|
409
409
|
var a;
|
|
410
|
-
const { values: t, _$litType$: o } = e, i = typeof o == "number" ? this._$AC(e) : (o.el === void 0 && (o.el = Bn.createElement(
|
|
410
|
+
const { values: t, _$litType$: o } = e, i = typeof o == "number" ? this._$AC(e) : (o.el === void 0 && (o.el = Bn.createElement(gi(o.h, o.h[0]), this.options)), o);
|
|
411
411
|
if (((a = this._$AH) == null ? void 0 : a._$AD) === i) this._$AH.p(t);
|
|
412
412
|
else {
|
|
413
|
-
const s = new
|
|
413
|
+
const s = new aa(i, this), c = s.u(this.options);
|
|
414
414
|
s.p(t), this.T(c), this._$AH = s;
|
|
415
415
|
}
|
|
416
416
|
}
|
|
@@ -422,7 +422,7 @@ let ta = class {
|
|
|
422
422
|
to(this._$AH) || (this._$AH = [], this._$AR());
|
|
423
423
|
const t = this._$AH;
|
|
424
424
|
let o, i = 0;
|
|
425
|
-
for (const a of e) i === t.length ? t.push(o = new
|
|
425
|
+
for (const a of e) i === t.length ? t.push(o = new vi(this.O(Rt()), this.O(Rt()), this, this.options)) : o = t[i], o._$AI(a), i++;
|
|
426
426
|
i < t.length && (this._$AR(o && o._$AB.nextSibling, i), t.length = i);
|
|
427
427
|
}
|
|
428
428
|
_$AR(e = this._$AA.nextSibling, t) {
|
|
@@ -444,7 +444,7 @@ let ta = class {
|
|
|
444
444
|
return this._$AM._$AU;
|
|
445
445
|
}
|
|
446
446
|
constructor(e, t, o, i, a) {
|
|
447
|
-
this.type = 1, this._$AH =
|
|
447
|
+
this.type = 1, this._$AH = $e, this._$AN = void 0, this.element = e, this.name = t, this._$AM = i, this.options = a, o.length > 2 || o[0] !== "" || o[1] !== "" ? (this._$AH = Array(o.length - 1).fill(new String()), this.strings = o) : this._$AH = $e;
|
|
448
448
|
}
|
|
449
449
|
_$AI(e, t = this, o, i) {
|
|
450
450
|
const a = this.strings;
|
|
@@ -453,41 +453,41 @@ let ta = class {
|
|
|
453
453
|
else {
|
|
454
454
|
const c = e;
|
|
455
455
|
let d, l;
|
|
456
|
-
for (e = a[0], d = 0; d < a.length - 1; d++) l = vt(this, c[o + d], t, d), l === ft && (l = this._$AH[d]), s || (s = !qt(l) || l !== this._$AH[d]), l ===
|
|
456
|
+
for (e = a[0], d = 0; d < a.length - 1; d++) l = vt(this, c[o + d], t, d), l === ft && (l = this._$AH[d]), s || (s = !qt(l) || l !== this._$AH[d]), l === $e ? e = $e : e !== $e && (e += (l ?? "") + a[d + 1]), this._$AH[d] = l;
|
|
457
457
|
}
|
|
458
458
|
s && !i && this.j(e);
|
|
459
459
|
}
|
|
460
460
|
j(e) {
|
|
461
|
-
e ===
|
|
461
|
+
e === $e ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
462
462
|
}
|
|
463
|
-
},
|
|
463
|
+
}, ra = class extends kn {
|
|
464
464
|
constructor() {
|
|
465
465
|
super(...arguments), this.type = 3;
|
|
466
466
|
}
|
|
467
467
|
j(e) {
|
|
468
|
-
this.element[this.name] = e ===
|
|
468
|
+
this.element[this.name] = e === $e ? void 0 : e;
|
|
469
469
|
}
|
|
470
|
-
},
|
|
470
|
+
}, sa = class extends kn {
|
|
471
471
|
constructor() {
|
|
472
472
|
super(...arguments), this.type = 4;
|
|
473
473
|
}
|
|
474
474
|
j(e) {
|
|
475
|
-
this.element.toggleAttribute(this.name, !!e && e !==
|
|
475
|
+
this.element.toggleAttribute(this.name, !!e && e !== $e);
|
|
476
476
|
}
|
|
477
|
-
},
|
|
477
|
+
}, la = class extends kn {
|
|
478
478
|
constructor(e, t, o, i, a) {
|
|
479
479
|
super(e, t, o, i, a), this.type = 5;
|
|
480
480
|
}
|
|
481
481
|
_$AI(e, t = this) {
|
|
482
|
-
if ((e = vt(this, e, t, 0) ??
|
|
483
|
-
const o = this._$AH, i = e ===
|
|
482
|
+
if ((e = vt(this, e, t, 0) ?? $e) === ft) return;
|
|
483
|
+
const o = this._$AH, i = e === $e && o !== $e || e.capture !== o.capture || e.once !== o.once || e.passive !== o.passive, a = e !== $e && (o === $e || i);
|
|
484
484
|
i && this.element.removeEventListener(this.name, this, o), a && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
485
485
|
}
|
|
486
486
|
handleEvent(e) {
|
|
487
487
|
var t;
|
|
488
488
|
typeof this._$AH == "function" ? this._$AH.call(((t = this.options) == null ? void 0 : t.host) ?? this.element, e) : this._$AH.handleEvent(e);
|
|
489
489
|
}
|
|
490
|
-
},
|
|
490
|
+
}, ca = class {
|
|
491
491
|
constructor(e, t, o) {
|
|
492
492
|
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = o;
|
|
493
493
|
}
|
|
@@ -500,7 +500,7 @@ let ta = class {
|
|
|
500
500
|
};
|
|
501
501
|
const Ln = Nt.litHtmlPolyfillSupport;
|
|
502
502
|
Ln == null || Ln(Bn, no), (Nt.litHtmlVersions ?? (Nt.litHtmlVersions = [])).push("3.3.2");
|
|
503
|
-
const
|
|
503
|
+
const da = (n, e, t) => {
|
|
504
504
|
const o = (t == null ? void 0 : t.renderBefore) ?? e;
|
|
505
505
|
let i = o._$litPart$;
|
|
506
506
|
if (i === void 0) {
|
|
@@ -526,7 +526,7 @@ let Mt = class extends pt {
|
|
|
526
526
|
}
|
|
527
527
|
update(e) {
|
|
528
528
|
const t = this.render();
|
|
529
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do =
|
|
529
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = da(t, this.renderRoot, this.renderOptions);
|
|
530
530
|
}
|
|
531
531
|
connectedCallback() {
|
|
532
532
|
var e;
|
|
@@ -540,17 +540,17 @@ let Mt = class extends pt {
|
|
|
540
540
|
return ft;
|
|
541
541
|
}
|
|
542
542
|
};
|
|
543
|
-
var
|
|
544
|
-
Mt._$litElement$ = !0, Mt.finalized = !0, (
|
|
545
|
-
const
|
|
546
|
-
|
|
543
|
+
var di;
|
|
544
|
+
Mt._$litElement$ = !0, Mt.finalized = !0, (di = ut.litElementHydrateSupport) == null || di.call(ut, { LitElement: Mt });
|
|
545
|
+
const $n = ut.litElementPolyfillSupport;
|
|
546
|
+
$n == null || $n({ LitElement: Mt });
|
|
547
547
|
(ut.litElementVersions ?? (ut.litElementVersions = [])).push("4.2.2");
|
|
548
548
|
/**
|
|
549
549
|
* @license
|
|
550
550
|
* Copyright 2017 Google LLC
|
|
551
551
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
552
552
|
*/
|
|
553
|
-
const
|
|
553
|
+
const ua = (n) => (e, t) => {
|
|
554
554
|
t !== void 0 ? t.addInitializer(() => {
|
|
555
555
|
customElements.define(n, e);
|
|
556
556
|
}) : customElements.define(n, e);
|
|
@@ -560,7 +560,7 @@ const sa = (n) => (e, t) => {
|
|
|
560
560
|
* Copyright 2017 Google LLC
|
|
561
561
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
562
562
|
*/
|
|
563
|
-
const
|
|
563
|
+
const ha = { attribute: !0, type: String, converter: fn, reflect: !1, hasChanged: eo }, pa = (n = ha, e, t) => {
|
|
564
564
|
const { kind: o, metadata: i } = t;
|
|
565
565
|
let a = globalThis.litPropertyMetadata.get(i);
|
|
566
566
|
if (a === void 0 && globalThis.litPropertyMetadata.set(i, a = /* @__PURE__ */ new Map()), o === "setter" && ((n = Object.create(n)).wrapped = !0), a.set(t.name, n), o === "accessor") {
|
|
@@ -581,8 +581,8 @@ const la = { attribute: !0, type: String, converter: fn, reflect: !1, hasChanged
|
|
|
581
581
|
}
|
|
582
582
|
throw Error("Unsupported decorator location: " + o);
|
|
583
583
|
};
|
|
584
|
-
function
|
|
585
|
-
return (e, t) => typeof t == "object" ?
|
|
584
|
+
function Te(n) {
|
|
585
|
+
return (e, t) => typeof t == "object" ? pa(n, e, t) : ((o, i, a) => {
|
|
586
586
|
const s = i.hasOwnProperty(a);
|
|
587
587
|
return i.constructor.createProperty(a, o), s ? Object.getOwnPropertyDescriptor(i, a) : void 0;
|
|
588
588
|
})(n, e, t);
|
|
@@ -593,15 +593,15 @@ function Ne(n) {
|
|
|
593
593
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
594
594
|
*/
|
|
595
595
|
function Ye(n) {
|
|
596
|
-
return
|
|
596
|
+
return Te({ ...n, state: !0, attribute: !1 });
|
|
597
597
|
}
|
|
598
598
|
/**
|
|
599
599
|
* @license
|
|
600
600
|
* Copyright 2017 Google LLC
|
|
601
601
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
602
602
|
*/
|
|
603
|
-
const
|
|
604
|
-
let
|
|
603
|
+
const ma = (n) => (...e) => ({ _$litDirective$: n, values: e });
|
|
604
|
+
let ga = class {
|
|
605
605
|
constructor(e) {
|
|
606
606
|
}
|
|
607
607
|
get _$AU() {
|
|
@@ -622,25 +622,25 @@ let ua = class {
|
|
|
622
622
|
* Copyright 2020 Google LLC
|
|
623
623
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
624
624
|
*/
|
|
625
|
-
const
|
|
625
|
+
const fa = {}, va = (n, e = fa) => n._$AH = e;
|
|
626
626
|
/**
|
|
627
627
|
* @license
|
|
628
628
|
* Copyright 2021 Google LLC
|
|
629
629
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
630
630
|
*/
|
|
631
|
-
const
|
|
631
|
+
const _a = ma(class extends ga {
|
|
632
632
|
constructor() {
|
|
633
|
-
super(...arguments), this.key =
|
|
633
|
+
super(...arguments), this.key = $e;
|
|
634
634
|
}
|
|
635
635
|
render(n, e) {
|
|
636
636
|
return this.key = n, e;
|
|
637
637
|
}
|
|
638
638
|
update(n, [e, t]) {
|
|
639
|
-
return e !== this.key && (
|
|
639
|
+
return e !== this.key && (va(n), this.key = e), t;
|
|
640
640
|
}
|
|
641
641
|
});
|
|
642
642
|
/*! For license information please see elements.js.LICENSE.txt */
|
|
643
|
-
var
|
|
643
|
+
var ya = { 7: function(n, e, t) {
|
|
644
644
|
(function(o, i, a) {
|
|
645
645
|
var s = function() {
|
|
646
646
|
return s = Object.assign || function(x) {
|
|
@@ -689,26 +689,26 @@ var ga = { 7: function(n, e, t) {
|
|
|
689
689
|
o.TranslateContext = m, o.TranslateProvider = function(x) {
|
|
690
690
|
var O = function(U, N) {
|
|
691
691
|
U = Object.assign({}, f, U), h = N || h;
|
|
692
|
-
var ae = c(a.useState(U.lang), 2), be = ae[0],
|
|
693
|
-
if (!M.hasOwnProperty(
|
|
694
|
-
|
|
695
|
-
var
|
|
696
|
-
fetch(
|
|
692
|
+
var ae = c(a.useState(U.lang), 2), be = ae[0], se = ae[1], we = c(a.useState(h), 2), M = we[0], H = we[1], _e = c(a.useState(!1), 2), Ue = _e[0], Ie = _e[1], Ne = function(le) {
|
|
693
|
+
if (!M.hasOwnProperty(le)) {
|
|
694
|
+
Ie(!1);
|
|
695
|
+
var ce = d(U.root, le);
|
|
696
|
+
fetch(ce).then(function(me) {
|
|
697
697
|
return me.json();
|
|
698
698
|
}).then(function(me) {
|
|
699
|
-
h[
|
|
699
|
+
h[le] = me, H(s({}, h)), Ie(!0);
|
|
700
700
|
}).catch(function(me) {
|
|
701
|
-
console.log("Aww, snap.", me), H(s({}, h)),
|
|
701
|
+
console.log("Aww, snap.", me), H(s({}, h)), Ie(!0);
|
|
702
702
|
});
|
|
703
703
|
}
|
|
704
704
|
};
|
|
705
705
|
return a.useEffect(function() {
|
|
706
|
-
|
|
707
|
-
}, [be]), { lang: be, setLang:
|
|
708
|
-
if (!M.hasOwnProperty(be)) return
|
|
709
|
-
var me = u(M, be,
|
|
710
|
-
return me ===
|
|
711
|
-
}, isReady:
|
|
706
|
+
Ne(U.fallbackLang), Ne(be);
|
|
707
|
+
}, [be]), { lang: be, setLang: se, t: function(le, ce) {
|
|
708
|
+
if (!M.hasOwnProperty(be)) return le;
|
|
709
|
+
var me = u(M, be, le);
|
|
710
|
+
return me === le && be !== U.fallbackLang && (me = u(M, U.fallbackLang, le)), l(me, ce);
|
|
711
|
+
}, isReady: Ue };
|
|
712
712
|
}({ root: x.root || "assets", lang: x.lang || "en", fallbackLang: x.fallbackLang || "en" }, x.translations), A = O.t, S = O.setLang, P = O.lang, j = O.isReady;
|
|
713
713
|
return i.h(m.Provider, { value: { t: A, setLang: S, lang: P, isReady: j } }, x.children);
|
|
714
714
|
}, o.format = l, o.getResourceUrl = d, o.getValue = u, Object.defineProperty(o, "__esModule", { value: !0 });
|
|
@@ -830,14 +830,14 @@ var ga = { 7: function(n, e, t) {
|
|
|
830
830
|
v && v.removeChild(g);
|
|
831
831
|
}
|
|
832
832
|
function S(g, v, b) {
|
|
833
|
-
var D,
|
|
834
|
-
for (I in v) I == "key" ? D = v[I] : I == "ref" ?
|
|
833
|
+
var D, T, I, z = {};
|
|
834
|
+
for (I in v) I == "key" ? D = v[I] : I == "ref" ? T = v[I] : z[I] = v[I];
|
|
835
835
|
if (arguments.length > 2 && (z.children = arguments.length > 3 ? o.call(arguments, 2) : b), typeof g == "function" && g.defaultProps != null) for (I in g.defaultProps) z[I] === void 0 && (z[I] = g.defaultProps[I]);
|
|
836
|
-
return P(g, z, D,
|
|
836
|
+
return P(g, z, D, T, null);
|
|
837
837
|
}
|
|
838
|
-
function P(g, v, b, D,
|
|
839
|
-
var I = { type: g, props: v, key: b, ref: D, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v:
|
|
840
|
-
return
|
|
838
|
+
function P(g, v, b, D, T) {
|
|
839
|
+
var I = { type: g, props: v, key: b, ref: D, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: T ?? ++a };
|
|
840
|
+
return T == null && i.vnode != null && i.vnode(I), I;
|
|
841
841
|
}
|
|
842
842
|
function j() {
|
|
843
843
|
return { current: null };
|
|
@@ -863,15 +863,15 @@ var ga = { 7: function(n, e, t) {
|
|
|
863
863
|
return be(g);
|
|
864
864
|
}
|
|
865
865
|
}
|
|
866
|
-
function
|
|
866
|
+
function se(g) {
|
|
867
867
|
(!g.__d && (g.__d = !0) && c.push(g) && !we.__r++ || d !== i.debounceRendering) && ((d = i.debounceRendering) || l)(we);
|
|
868
868
|
}
|
|
869
869
|
function we() {
|
|
870
|
-
var g, v, b, D,
|
|
871
|
-
for (c.sort(u); g = c.shift(); ) g.__d && (v = c.length, D = void 0,
|
|
870
|
+
var g, v, b, D, T, I, z, X;
|
|
871
|
+
for (c.sort(u); g = c.shift(); ) g.__d && (v = c.length, D = void 0, T = void 0, z = (I = (b = g).__v).__e, (X = b.__P) && (D = [], (T = O({}, I)).__v = I.__v + 1, De(X, I, T, b.__n, X.ownerSVGElement !== void 0, I.__h != null ? [z] : null, D, z ?? ae(I), I.__h), k(D, I), I.__e != z && be(I)), c.length > v && c.sort(u));
|
|
872
872
|
we.__r = 0;
|
|
873
873
|
}
|
|
874
|
-
function M(g, v, b, D,
|
|
874
|
+
function M(g, v, b, D, T, I, z, X, Q, ye) {
|
|
875
875
|
var w, ke, J, R, E, Se, V, F = D && D.__k || m, qe = F.length;
|
|
876
876
|
for (b.__k = [], w = 0; w < v.length; w++) if ((R = b.__k[w] = (R = v[w]) == null || typeof R == "boolean" || typeof R == "function" ? null : typeof R == "string" || typeof R == "number" || typeof R == "bigint" ? P(null, R, null, null, R) : Array.isArray(R) ? P(U, { children: R }, null, null, null) : R.__b > 0 ? P(R.type, R.props, R.key, R.ref ? R.ref : null, R.__v) : R) != null) {
|
|
877
877
|
if (R.__ = b, R.__b = b.__b + 1, (J = F[w]) === null || J && R.key == J.key && R.type === J.type) F[w] = void 0;
|
|
@@ -882,13 +882,13 @@ var ga = { 7: function(n, e, t) {
|
|
|
882
882
|
}
|
|
883
883
|
J = null;
|
|
884
884
|
}
|
|
885
|
-
|
|
885
|
+
De(g, R, J = J || f, T, I, z, X, Q, ye), E = R.__e, (ke = R.ref) && J.ref != ke && (V || (V = []), J.ref && V.push(J.ref, null, R), V.push(ke, R.__c || E, R)), E != null ? (Se == null && (Se = E), typeof R.type == "function" && R.__k === J.__k ? R.__d = Q = H(R, Q, g) : Q = Ue(g, R, J, F, E, Q), typeof b.type == "function" && (b.__d = Q)) : Q && J.__e == Q && Q.parentNode != g && (Q = ae(J));
|
|
886
886
|
}
|
|
887
|
-
for (b.__e = Se, w = qe; w--; ) F[w] != null && (typeof b.type == "function" && F[w].__e != null && F[w].__e == b.__d && (b.__d =
|
|
887
|
+
for (b.__e = Se, w = qe; w--; ) F[w] != null && (typeof b.type == "function" && F[w].__e != null && F[w].__e == b.__d && (b.__d = Ie(D).nextSibling), $(F[w], F[w]));
|
|
888
888
|
if (V) for (w = 0; w < V.length; w++) y(V[w], V[++w], V[++w]);
|
|
889
889
|
}
|
|
890
890
|
function H(g, v, b) {
|
|
891
|
-
for (var D,
|
|
891
|
+
for (var D, T = g.__k, I = 0; T && I < T.length; I++) (D = T[I]) && (D.__ = g, v = typeof D.type == "function" ? H(D, v, b) : Ue(b, D, D, T, D.__e, v));
|
|
892
892
|
return v;
|
|
893
893
|
}
|
|
894
894
|
function _e(g, v) {
|
|
@@ -896,37 +896,37 @@ var ga = { 7: function(n, e, t) {
|
|
|
896
896
|
_e(b, v);
|
|
897
897
|
}) : v.push(g)), v;
|
|
898
898
|
}
|
|
899
|
-
function
|
|
899
|
+
function Ue(g, v, b, D, T, I) {
|
|
900
900
|
var z, X, Q;
|
|
901
901
|
if (v.__d !== void 0) z = v.__d, v.__d = void 0;
|
|
902
|
-
else if (b == null ||
|
|
902
|
+
else if (b == null || T != I || T.parentNode == null) e: if (I == null || I.parentNode !== g) g.appendChild(T), z = null;
|
|
903
903
|
else {
|
|
904
|
-
for (X = I, Q = 0; (X = X.nextSibling) && Q < D.length; Q += 1) if (X ==
|
|
905
|
-
g.insertBefore(
|
|
904
|
+
for (X = I, Q = 0; (X = X.nextSibling) && Q < D.length; Q += 1) if (X == T) break e;
|
|
905
|
+
g.insertBefore(T, I), z = I;
|
|
906
906
|
}
|
|
907
|
-
return z !== void 0 ? z :
|
|
907
|
+
return z !== void 0 ? z : T.nextSibling;
|
|
908
908
|
}
|
|
909
|
-
function
|
|
909
|
+
function Ie(g) {
|
|
910
910
|
var v, b, D;
|
|
911
911
|
if (g.type == null || typeof g.type == "string") return g.__e;
|
|
912
912
|
if (g.__k) {
|
|
913
|
-
for (v = g.__k.length - 1; v >= 0; v--) if ((b = g.__k[v]) && (D =
|
|
913
|
+
for (v = g.__k.length - 1; v >= 0; v--) if ((b = g.__k[v]) && (D = Ie(b))) return D;
|
|
914
914
|
}
|
|
915
915
|
return null;
|
|
916
916
|
}
|
|
917
|
-
function
|
|
917
|
+
function Ne(g, v, b) {
|
|
918
918
|
v[0] === "-" ? g.setProperty(v, b ?? "") : g[v] = b == null ? "" : typeof b != "number" || x.test(v) ? b : b + "px";
|
|
919
919
|
}
|
|
920
|
-
function
|
|
920
|
+
function le(g, v, b, D, T) {
|
|
921
921
|
var I;
|
|
922
922
|
e: if (v === "style") if (typeof b == "string") g.style.cssText = b;
|
|
923
923
|
else {
|
|
924
|
-
if (typeof D == "string" && (g.style.cssText = D = ""), D) for (v in D) b && v in b ||
|
|
925
|
-
if (b) for (v in b) D && b[v] === D[v] ||
|
|
924
|
+
if (typeof D == "string" && (g.style.cssText = D = ""), D) for (v in D) b && v in b || Ne(g.style, v, "");
|
|
925
|
+
if (b) for (v in b) D && b[v] === D[v] || Ne(g.style, v, b[v]);
|
|
926
926
|
}
|
|
927
|
-
else if (v[0] === "o" && v[1] === "n") I = v !== (v = v.replace(/Capture$/, "")), v = v.toLowerCase() in g ? v.toLowerCase().slice(2) : v.slice(2), g.l || (g.l = {}), g.l[v + I] = b, b ? D || g.addEventListener(v, I ? me :
|
|
927
|
+
else if (v[0] === "o" && v[1] === "n") I = v !== (v = v.replace(/Capture$/, "")), v = v.toLowerCase() in g ? v.toLowerCase().slice(2) : v.slice(2), g.l || (g.l = {}), g.l[v + I] = b, b ? D || g.addEventListener(v, I ? me : ce, I) : g.removeEventListener(v, I ? me : ce, I);
|
|
928
928
|
else if (v !== "dangerouslySetInnerHTML") {
|
|
929
|
-
if (
|
|
929
|
+
if (T) v = v.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
930
930
|
else if (v !== "width" && v !== "height" && v !== "href" && v !== "list" && v !== "form" && v !== "tabIndex" && v !== "download" && v in g) try {
|
|
931
931
|
g[v] = b ?? "";
|
|
932
932
|
break e;
|
|
@@ -935,13 +935,13 @@ var ga = { 7: function(n, e, t) {
|
|
|
935
935
|
typeof b == "function" || (b == null || b === !1 && v.indexOf("-") == -1 ? g.removeAttribute(v) : g.setAttribute(v, b));
|
|
936
936
|
}
|
|
937
937
|
}
|
|
938
|
-
function
|
|
938
|
+
function ce(g) {
|
|
939
939
|
return this.l[g.type + !1](i.event ? i.event(g) : g);
|
|
940
940
|
}
|
|
941
941
|
function me(g) {
|
|
942
942
|
return this.l[g.type + !0](i.event ? i.event(g) : g);
|
|
943
943
|
}
|
|
944
|
-
function
|
|
944
|
+
function De(g, v, b, D, T, I, z, X, Q) {
|
|
945
945
|
var ye, w, ke, J, R, E, Se, V, F, qe, it, fe, Vt, at, q, B = v.type;
|
|
946
946
|
if (v.constructor !== void 0) return null;
|
|
947
947
|
b.__h != null && (Q = b.__h, X = v.__e = b.__e, v.__h = null, I = [X]), (ye = i.__b) && ye(v);
|
|
@@ -966,8 +966,8 @@ var ga = { 7: function(n, e, t) {
|
|
|
966
966
|
} else do
|
|
967
967
|
w.__d = !1, fe && fe(v), ye = w.render(w.props, w.state, w.context), w.state = w.__s;
|
|
968
968
|
while (w.__d && ++Vt < 25);
|
|
969
|
-
w.state = w.__s, w.getChildContext != null && (D = O(O({}, D), w.getChildContext())), ke || w.getSnapshotBeforeUpdate == null || (E = w.getSnapshotBeforeUpdate(J, R)), q = ye != null && ye.type === U && ye.key == null ? ye.props.children : ye, M(g, Array.isArray(q) ? q : [q], v, b, D,
|
|
970
|
-
} else I == null && v.__v === b.__v ? (v.__k = b.__k, v.__e = b.__e) : v.__e = p(b.__e, v, b, D,
|
|
969
|
+
w.state = w.__s, w.getChildContext != null && (D = O(O({}, D), w.getChildContext())), ke || w.getSnapshotBeforeUpdate == null || (E = w.getSnapshotBeforeUpdate(J, R)), q = ye != null && ye.type === U && ye.key == null ? ye.props.children : ye, M(g, Array.isArray(q) ? q : [q], v, b, D, T, I, z, X, Q), w.base = v.__e, v.__h = null, w.__h.length && z.push(w), Se && (w.__E = w.__ = null), w.__e = !1;
|
|
970
|
+
} else I == null && v.__v === b.__v ? (v.__k = b.__k, v.__e = b.__e) : v.__e = p(b.__e, v, b, D, T, I, z, Q);
|
|
971
971
|
(ye = i.diffed) && ye(v);
|
|
972
972
|
} catch (Qe) {
|
|
973
973
|
v.__v = null, (Q || I != null) && (v.__e = X, v.__h = !!Q, I[I.indexOf(X)] = null), i.__e(Qe, v, b);
|
|
@@ -984,9 +984,9 @@ var ga = { 7: function(n, e, t) {
|
|
|
984
984
|
}
|
|
985
985
|
});
|
|
986
986
|
}
|
|
987
|
-
function p(g, v, b, D,
|
|
987
|
+
function p(g, v, b, D, T, I, z, X) {
|
|
988
988
|
var Q, ye, w, ke = b.props, J = v.props, R = v.type, E = 0;
|
|
989
|
-
if (R === "svg" && (
|
|
989
|
+
if (R === "svg" && (T = !0), I != null) {
|
|
990
990
|
for (; E < I.length; E++) if ((Q = I[E]) && "setAttribute" in Q == !!R && (R ? Q.localName === R : Q.nodeType === 3)) {
|
|
991
991
|
g = Q, I[E] = null;
|
|
992
992
|
break;
|
|
@@ -994,7 +994,7 @@ var ga = { 7: function(n, e, t) {
|
|
|
994
994
|
}
|
|
995
995
|
if (g == null) {
|
|
996
996
|
if (R === null) return document.createTextNode(J);
|
|
997
|
-
g =
|
|
997
|
+
g = T ? document.createElementNS("http://www.w3.org/2000/svg", R) : document.createElement(R, J.is && J), I = null, X = !1;
|
|
998
998
|
}
|
|
999
999
|
if (R === null) ke === J || X && g.data === J || (g.data = J);
|
|
1000
1000
|
else {
|
|
@@ -1004,11 +1004,11 @@ var ga = { 7: function(n, e, t) {
|
|
|
1004
1004
|
}
|
|
1005
1005
|
if (function(Se, V, F, qe, it) {
|
|
1006
1006
|
var fe;
|
|
1007
|
-
for (fe in F) fe === "children" || fe === "key" || fe in V ||
|
|
1008
|
-
for (fe in V) it && typeof V[fe] != "function" || fe === "children" || fe === "key" || fe === "value" || fe === "checked" || F[fe] === V[fe] ||
|
|
1009
|
-
}(g, J, ke,
|
|
1010
|
-
else if (E = v.props.children, M(g, Array.isArray(E) ? E : [E], v, b, D,
|
|
1011
|
-
X || ("value" in J && (E = J.value) !== void 0 && (E !== g.value || R === "progress" && !E || R === "option" && E !== ke.value) &&
|
|
1007
|
+
for (fe in F) fe === "children" || fe === "key" || fe in V || le(Se, fe, null, F[fe], qe);
|
|
1008
|
+
for (fe in V) it && typeof V[fe] != "function" || fe === "children" || fe === "key" || fe === "value" || fe === "checked" || F[fe] === V[fe] || le(Se, fe, V[fe], F[fe], qe);
|
|
1009
|
+
}(g, J, ke, T, X), w) v.__k = [];
|
|
1010
|
+
else if (E = v.props.children, M(g, Array.isArray(E) ? E : [E], v, b, D, T && R !== "foreignObject", I, z, I ? I[0] : b.__k && ae(b, 0), X), I != null) for (E = I.length; E--; ) I[E] != null && A(I[E]);
|
|
1011
|
+
X || ("value" in J && (E = J.value) !== void 0 && (E !== g.value || R === "progress" && !E || R === "option" && E !== ke.value) && le(g, "value", E, ke.value, !1), "checked" in J && (E = J.checked) !== void 0 && E !== g.checked && le(g, "checked", E, ke.checked, !1));
|
|
1012
1012
|
}
|
|
1013
1013
|
return g;
|
|
1014
1014
|
}
|
|
@@ -1019,8 +1019,8 @@ var ga = { 7: function(n, e, t) {
|
|
|
1019
1019
|
i.__e(D, b);
|
|
1020
1020
|
}
|
|
1021
1021
|
}
|
|
1022
|
-
function
|
|
1023
|
-
var D,
|
|
1022
|
+
function $(g, v, b) {
|
|
1023
|
+
var D, T;
|
|
1024
1024
|
if (i.unmount && i.unmount(g), (D = g.ref) && (D.current && D.current !== g.__e || y(D, null, v)), (D = g.__c) != null) {
|
|
1025
1025
|
if (D.componentWillUnmount) try {
|
|
1026
1026
|
D.componentWillUnmount();
|
|
@@ -1029,48 +1029,48 @@ var ga = { 7: function(n, e, t) {
|
|
|
1029
1029
|
}
|
|
1030
1030
|
D.base = D.__P = null, g.__c = void 0;
|
|
1031
1031
|
}
|
|
1032
|
-
if (D = g.__k) for (
|
|
1032
|
+
if (D = g.__k) for (T = 0; T < D.length; T++) D[T] && $(D[T], v, b || typeof g.type != "function");
|
|
1033
1033
|
b || g.__e == null || A(g.__e), g.__ = g.__e = g.__d = void 0;
|
|
1034
1034
|
}
|
|
1035
1035
|
function K(g, v, b) {
|
|
1036
1036
|
return this.constructor(g, b);
|
|
1037
1037
|
}
|
|
1038
1038
|
function ge(g, v, b) {
|
|
1039
|
-
var D,
|
|
1040
|
-
i.__ && i.__(g, v),
|
|
1039
|
+
var D, T, I;
|
|
1040
|
+
i.__ && i.__(g, v), T = (D = typeof b == "function") ? null : b && b.__k || v.__k, I = [], De(v, g = (!D && b || v).__k = S(U, null, [g]), T || f, f, v.ownerSVGElement !== void 0, !D && b ? [b] : T ? null : v.firstChild ? o.call(v.childNodes) : null, I, !D && b ? b : T ? T.__e : v.firstChild, D), k(I, g);
|
|
1041
1041
|
}
|
|
1042
1042
|
function He(g, v) {
|
|
1043
1043
|
ge(g, v, He);
|
|
1044
1044
|
}
|
|
1045
1045
|
function We(g, v, b) {
|
|
1046
|
-
var D,
|
|
1047
|
-
for (I in v) I == "key" ? D = v[I] : I == "ref" ?
|
|
1048
|
-
return arguments.length > 2 && (z.children = arguments.length > 3 ? o.call(arguments, 2) : b), P(g.type, z, D || g.key,
|
|
1046
|
+
var D, T, I, z = O({}, g.props);
|
|
1047
|
+
for (I in v) I == "key" ? D = v[I] : I == "ref" ? T = v[I] : z[I] = v[I];
|
|
1048
|
+
return arguments.length > 2 && (z.children = arguments.length > 3 ? o.call(arguments, 2) : b), P(g.type, z, D || g.key, T || g.ref, null);
|
|
1049
1049
|
}
|
|
1050
1050
|
function Fe(g, v) {
|
|
1051
|
-
var b = { __c: v = "__cC" + h++, __: g, Consumer: function(D,
|
|
1052
|
-
return D.children(
|
|
1051
|
+
var b = { __c: v = "__cC" + h++, __: g, Consumer: function(D, T) {
|
|
1052
|
+
return D.children(T);
|
|
1053
1053
|
}, Provider: function(D) {
|
|
1054
|
-
var
|
|
1055
|
-
return this.getChildContext || (
|
|
1054
|
+
var T, I;
|
|
1055
|
+
return this.getChildContext || (T = [], (I = {})[v] = this, this.getChildContext = function() {
|
|
1056
1056
|
return I;
|
|
1057
1057
|
}, this.shouldComponentUpdate = function(z) {
|
|
1058
|
-
this.props.value !== z.value &&
|
|
1059
|
-
X.__e = !0,
|
|
1058
|
+
this.props.value !== z.value && T.some(function(X) {
|
|
1059
|
+
X.__e = !0, se(X);
|
|
1060
1060
|
});
|
|
1061
1061
|
}, this.sub = function(z) {
|
|
1062
|
-
|
|
1062
|
+
T.push(z);
|
|
1063
1063
|
var X = z.componentWillUnmount;
|
|
1064
1064
|
z.componentWillUnmount = function() {
|
|
1065
|
-
|
|
1065
|
+
T.splice(T.indexOf(z), 1), X && X.call(z);
|
|
1066
1066
|
};
|
|
1067
1067
|
}), D.children;
|
|
1068
1068
|
} };
|
|
1069
1069
|
return b.Provider.__ = b.Consumer.contextType = b;
|
|
1070
1070
|
}
|
|
1071
1071
|
o = m.slice, i = { __e: function(g, v, b, D) {
|
|
1072
|
-
for (var
|
|
1073
|
-
if ((I =
|
|
1072
|
+
for (var T, I, z; v = v.__; ) if ((T = v.__c) && !T.__) try {
|
|
1073
|
+
if ((I = T.constructor) && I.getDerivedStateFromError != null && (T.setState(I.getDerivedStateFromError(g)), z = T.__d), T.componentDidCatch != null && (T.componentDidCatch(g, D || {}), z = T.__d), z) return T.__E = T;
|
|
1074
1074
|
} catch (X) {
|
|
1075
1075
|
g = X;
|
|
1076
1076
|
}
|
|
@@ -1079,14 +1079,14 @@ var ga = { 7: function(n, e, t) {
|
|
|
1079
1079
|
return g != null && g.constructor === void 0;
|
|
1080
1080
|
}, N.prototype.setState = function(g, v) {
|
|
1081
1081
|
var b;
|
|
1082
|
-
b = this.__s != null && this.__s !== this.state ? this.__s : this.__s = O({}, this.state), typeof g == "function" && (g = g(O({}, b), this.props)), g && O(b, g), g != null && this.__v && (v && this._sb.push(v),
|
|
1082
|
+
b = this.__s != null && this.__s !== this.state ? this.__s : this.__s = O({}, this.state), typeof g == "function" && (g = g(O({}, b), this.props)), g && O(b, g), g != null && this.__v && (v && this._sb.push(v), se(this));
|
|
1083
1083
|
}, N.prototype.forceUpdate = function(g) {
|
|
1084
|
-
this.__v && (this.__e = !0, g && this.__h.push(g),
|
|
1084
|
+
this.__v && (this.__e = !0, g && this.__h.push(g), se(this));
|
|
1085
1085
|
}, N.prototype.render = U, c = [], l = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, u = function(g, v) {
|
|
1086
1086
|
return g.__v.__b - v.__v.__b;
|
|
1087
1087
|
}, we.__r = 0, h = 0;
|
|
1088
1088
|
}, 78: (n, e, t) => {
|
|
1089
|
-
t.r(e), t.d(e, { useCallback: () =>
|
|
1089
|
+
t.r(e), t.d(e, { useCallback: () => se, useContext: () => we, useDebugValue: () => M, useEffect: () => j, useErrorBoundary: () => H, useId: () => _e, useImperativeHandle: () => ae, useLayoutEffect: () => U, useMemo: () => be, useReducer: () => P, useRef: () => N, useState: () => S });
|
|
1090
1090
|
var o, i, a, s, c = t(616), d = 0, l = [], u = [], h = c.options.__b, f = c.options.__r, m = c.options.diffed, x = c.options.__c, O = c.options.unmount;
|
|
1091
1091
|
function A(k, p) {
|
|
1092
1092
|
c.options.__h && c.options.__h(i, k, d || p), d = 0;
|
|
@@ -1094,17 +1094,17 @@ var ga = { 7: function(n, e, t) {
|
|
|
1094
1094
|
return k >= y.__.length && y.__.push({ __V: u }), y.__[k];
|
|
1095
1095
|
}
|
|
1096
1096
|
function S(k) {
|
|
1097
|
-
return d = 1, P(
|
|
1097
|
+
return d = 1, P(De, k);
|
|
1098
1098
|
}
|
|
1099
1099
|
function P(k, p, y) {
|
|
1100
|
-
var
|
|
1101
|
-
if (
|
|
1102
|
-
var Fe =
|
|
1103
|
-
Fe !== g && (
|
|
1104
|
-
}],
|
|
1100
|
+
var $ = A(o++, 2);
|
|
1101
|
+
if ($.t = k, !$.__c && ($.__ = [y ? y(p) : De(void 0, p), function(We) {
|
|
1102
|
+
var Fe = $.__N ? $.__N[0] : $.__[0], g = $.t(Fe, We);
|
|
1103
|
+
Fe !== g && ($.__N = [g, $.__[1]], $.__c.setState({}));
|
|
1104
|
+
}], $.__c = i, !i.u)) {
|
|
1105
1105
|
var K = function(We, Fe, g) {
|
|
1106
|
-
if (
|
|
1107
|
-
var v =
|
|
1106
|
+
if (!$.__c.__H) return !0;
|
|
1107
|
+
var v = $.__c.__H.__.filter(function(D) {
|
|
1108
1108
|
return D.__c;
|
|
1109
1109
|
});
|
|
1110
1110
|
if (v.every(function(D) {
|
|
@@ -1113,10 +1113,10 @@ var ga = { 7: function(n, e, t) {
|
|
|
1113
1113
|
var b = !1;
|
|
1114
1114
|
return v.forEach(function(D) {
|
|
1115
1115
|
if (D.__N) {
|
|
1116
|
-
var
|
|
1117
|
-
D.__ = D.__N, D.__N = void 0,
|
|
1116
|
+
var T = D.__[0];
|
|
1117
|
+
D.__ = D.__N, D.__N = void 0, T !== D.__[0] && (b = !0);
|
|
1118
1118
|
}
|
|
1119
|
-
}), !(!b &&
|
|
1119
|
+
}), !(!b && $.__c.props === We) && (!ge || ge.call(this, We, Fe, g));
|
|
1120
1120
|
};
|
|
1121
1121
|
i.u = !0;
|
|
1122
1122
|
var ge = i.shouldComponentUpdate, He = i.componentWillUpdate;
|
|
@@ -1128,7 +1128,7 @@ var ga = { 7: function(n, e, t) {
|
|
|
1128
1128
|
He && He.call(this, We, Fe, g);
|
|
1129
1129
|
}, i.shouldComponentUpdate = K;
|
|
1130
1130
|
}
|
|
1131
|
-
return
|
|
1131
|
+
return $.__N || $.__;
|
|
1132
1132
|
}
|
|
1133
1133
|
function j(k, p) {
|
|
1134
1134
|
var y = A(o++, 3);
|
|
@@ -1156,7 +1156,7 @@ var ga = { 7: function(n, e, t) {
|
|
|
1156
1156
|
var y = A(o++, 7);
|
|
1157
1157
|
return me(y.__H, p) ? (y.__V = k(), y.i = p, y.__h = k, y.__V) : y.__;
|
|
1158
1158
|
}
|
|
1159
|
-
function
|
|
1159
|
+
function se(k, p) {
|
|
1160
1160
|
return d = 8, be(function() {
|
|
1161
1161
|
return k;
|
|
1162
1162
|
}, p);
|
|
@@ -1170,8 +1170,8 @@ var ga = { 7: function(n, e, t) {
|
|
|
1170
1170
|
}
|
|
1171
1171
|
function H(k) {
|
|
1172
1172
|
var p = A(o++, 10), y = S();
|
|
1173
|
-
return p.__ = k, i.componentDidCatch || (i.componentDidCatch = function(
|
|
1174
|
-
p.__ && p.__(
|
|
1173
|
+
return p.__ = k, i.componentDidCatch || (i.componentDidCatch = function($, K) {
|
|
1174
|
+
p.__ && p.__($, K), y[1]($);
|
|
1175
1175
|
}), [y[0], function() {
|
|
1176
1176
|
y[1](void 0);
|
|
1177
1177
|
}];
|
|
@@ -1185,9 +1185,9 @@ var ga = { 7: function(n, e, t) {
|
|
|
1185
1185
|
}
|
|
1186
1186
|
return k.__;
|
|
1187
1187
|
}
|
|
1188
|
-
function
|
|
1188
|
+
function Ue() {
|
|
1189
1189
|
for (var k; k = l.shift(); ) if (k.__P && k.__H) try {
|
|
1190
|
-
k.__H.__h.forEach(
|
|
1190
|
+
k.__H.__h.forEach(le), k.__H.__h.forEach(ce), k.__H.__h = [];
|
|
1191
1191
|
} catch (p) {
|
|
1192
1192
|
k.__H.__h = [], c.options.__e(p, k.__v);
|
|
1193
1193
|
}
|
|
@@ -1199,57 +1199,57 @@ var ga = { 7: function(n, e, t) {
|
|
|
1199
1199
|
var p = (i = k.__c).__H;
|
|
1200
1200
|
p && (a === i ? (p.__h = [], i.__h = [], p.__.forEach(function(y) {
|
|
1201
1201
|
y.__N && (y.__ = y.__N), y.__V = u, y.__N = y.i = void 0;
|
|
1202
|
-
})) : (p.__h.forEach(
|
|
1202
|
+
})) : (p.__h.forEach(le), p.__h.forEach(ce), p.__h = [])), a = i;
|
|
1203
1203
|
}, c.options.diffed = function(k) {
|
|
1204
1204
|
m && m(k);
|
|
1205
1205
|
var p = k.__c;
|
|
1206
|
-
p && p.__H && (p.__H.__h.length && (l.push(p) !== 1 && s === c.options.requestAnimationFrame || ((s = c.options.requestAnimationFrame) ||
|
|
1206
|
+
p && p.__H && (p.__H.__h.length && (l.push(p) !== 1 && s === c.options.requestAnimationFrame || ((s = c.options.requestAnimationFrame) || Ne)(Ue)), p.__H.__.forEach(function(y) {
|
|
1207
1207
|
y.i && (y.__H = y.i), y.__V !== u && (y.__ = y.__V), y.i = void 0, y.__V = u;
|
|
1208
1208
|
})), a = i = null;
|
|
1209
1209
|
}, c.options.__c = function(k, p) {
|
|
1210
1210
|
p.some(function(y) {
|
|
1211
1211
|
try {
|
|
1212
|
-
y.__h.forEach(
|
|
1213
|
-
return
|
|
1212
|
+
y.__h.forEach(le), y.__h = y.__h.filter(function($) {
|
|
1213
|
+
return !$.__ || ce($);
|
|
1214
1214
|
});
|
|
1215
|
-
} catch (
|
|
1215
|
+
} catch ($) {
|
|
1216
1216
|
p.some(function(K) {
|
|
1217
1217
|
K.__h && (K.__h = []);
|
|
1218
|
-
}), p = [], c.options.__e(
|
|
1218
|
+
}), p = [], c.options.__e($, y.__v);
|
|
1219
1219
|
}
|
|
1220
1220
|
}), x && x(k, p);
|
|
1221
1221
|
}, c.options.unmount = function(k) {
|
|
1222
1222
|
O && O(k);
|
|
1223
1223
|
var p, y = k.__c;
|
|
1224
|
-
y && y.__H && (y.__H.__.forEach(function(
|
|
1224
|
+
y && y.__H && (y.__H.__.forEach(function($) {
|
|
1225
1225
|
try {
|
|
1226
|
-
|
|
1226
|
+
le($);
|
|
1227
1227
|
} catch (K) {
|
|
1228
1228
|
p = K;
|
|
1229
1229
|
}
|
|
1230
1230
|
}), y.__H = void 0, p && c.options.__e(p, y.__v));
|
|
1231
1231
|
};
|
|
1232
|
-
var
|
|
1233
|
-
function
|
|
1232
|
+
var Ie = typeof requestAnimationFrame == "function";
|
|
1233
|
+
function Ne(k) {
|
|
1234
1234
|
var p, y = function() {
|
|
1235
|
-
clearTimeout(
|
|
1236
|
-
},
|
|
1237
|
-
|
|
1235
|
+
clearTimeout($), Ie && cancelAnimationFrame(p), setTimeout(k);
|
|
1236
|
+
}, $ = setTimeout(y, 100);
|
|
1237
|
+
Ie && (p = requestAnimationFrame(y));
|
|
1238
1238
|
}
|
|
1239
|
-
function
|
|
1239
|
+
function le(k) {
|
|
1240
1240
|
var p = i, y = k.__c;
|
|
1241
1241
|
typeof y == "function" && (k.__c = void 0, y()), i = p;
|
|
1242
1242
|
}
|
|
1243
|
-
function
|
|
1243
|
+
function ce(k) {
|
|
1244
1244
|
var p = i;
|
|
1245
1245
|
k.__c = k.__(), i = p;
|
|
1246
1246
|
}
|
|
1247
1247
|
function me(k, p) {
|
|
1248
|
-
return !k || k.length !== p.length || p.some(function(y,
|
|
1249
|
-
return y !== k[
|
|
1248
|
+
return !k || k.length !== p.length || p.some(function(y, $) {
|
|
1249
|
+
return y !== k[$];
|
|
1250
1250
|
});
|
|
1251
1251
|
}
|
|
1252
|
-
function
|
|
1252
|
+
function De(k, p) {
|
|
1253
1253
|
return typeof p == "function" ? p(k) : p;
|
|
1254
1254
|
}
|
|
1255
1255
|
}, 292: (n) => {
|
|
@@ -1343,12 +1343,12 @@ var ga = { 7: function(n, e, t) {
|
|
|
1343
1343
|
}, 6: (n, e, t) => {
|
|
1344
1344
|
t.d(e, { en: () => o });
|
|
1345
1345
|
const o = { headlines: { error: "An error has occurred", loginEmail: "Sign in or create account", loginEmailNoSignup: "Sign in", loginFinished: "Login successful", loginPasscode: "Enter passcode", loginPassword: "Enter password", registerAuthenticator: "Create a passkey", registerConfirm: "Create account?", registerPassword: "Set new password", otpSetUp: "Set up authenticator app", profileEmails: "Emails", profilePassword: "Password", profilePasskeys: "Passkeys", isPrimaryEmail: "Primary email address", setPrimaryEmail: "Set primary email address", createEmail: "Enter a new email", createUsername: "Enter a new username", emailVerified: "Verified", emailUnverified: "Unverified", emailDelete: "Delete", renamePasskey: "Rename passkey", deletePasskey: "Delete passkey", lastUsedAt: "Last used at", createdAt: "Created at", connectedAccounts: "Connected accounts", deleteAccount: "Delete account", accountNotFound: "Account not found", signIn: "Sign in", signUp: "Create account", selectLoginMethod: "Select login method", setupLoginMethod: "Set up login method", lastUsed: "Last seen", ipAddress: "IP address", revokeSession: "Revoke session", profileSessions: "Sessions", mfaSetUp: "Set up MFA", securityKeySetUp: "Add security key", securityKeyLogin: "Security key", otpLogin: "Authentication code", renameSecurityKey: "Rename security key", deleteSecurityKey: "Delete security key", securityKeys: "Security keys", authenticatorApp: "Authenticator app", authenticatorAppAlreadySetUp: "Authenticator app is set up", authenticatorAppNotSetUp: "Set up authenticator app", trustDevice: "Trust this browser?" }, texts: { enterPasscode: 'Enter the passcode that was sent to "{emailAddress}".', enterPasscodeNoEmail: "Enter the passcode that was sent to your primary email address.", setupPasskey: "Sign in to your account easily and securely with a passkey. Note: Your biometric data is only stored on your devices and will never be shared with anyone.", createAccount: 'No account exists for "{emailAddress}". Do you want to create a new account?', otpEnterVerificationCode: "Enter the one-time password (OTP) obtained from your authenticator app below:", otpScanQRCode: "Scan the QR code using your authenticator app (such as Google Authenticator or any other TOTP app). Alternatively, you can manually enter the OTP secret key into the app.", otpSecretKey: "OTP secret key", passwordFormatHint: "Must be between {minLength} and {maxLength} characters long.", securityKeySetUp: "Use a dedicated security key via USB, Bluetooth, or NFC, or your mobile phone. Connect or activate your security key, then click the button below and follow the prompts to complete the registration.", setPrimaryEmail: "Set this email address to be used for contacting you.", isPrimaryEmail: "This email address will be used to contact you if necessary.", emailVerified: "This email address has been verified.", emailUnverified: "This email address has not been verified.", emailDelete: "If you delete this email address, it can no longer be used to sign in.", renamePasskey: "Set a name for the passkey.", deletePasskey: "Delete this passkey from your account.", deleteAccount: "Are you sure you want to delete this account? All data will be deleted immediately and cannot be recovered.", noAccountExists: 'No account exists for "{emailAddress}".', selectLoginMethodForFutureLogins: "Select one of the following login methods to use for future logins.", howDoYouWantToLogin: "How do you want to login?", mfaSetUp: "Protect your account with Multi-Factor Authentication (MFA). MFA adds an additional step to your login process, ensuring that even if your password or email account is compromised, your account stays secure.", securityKeyLogin: "Connect or activate your security key, then click the button below. Once ready, use it via USB, NFC, your mobile phone. Follow the prompts to complete the login process.", otpLogin: "Open your authenticator app to obtain the one-time password (OTP). Enter the code in the field below to complete your login.", renameSecurityKey: "Set a name for the security key.", deleteSecurityKey: "Delete this security key from your account.", authenticatorAppAlreadySetUp: "Your account is secured with an authenticator app that generates time-based one-time passwords (TOTP) for multi-factor authentication.", authenticatorAppNotSetUp: "Secure your account with an authenticator app that generates time-based one-time passwords (TOTP) for multi-factor authentication.", trustDevice: "If you trust this browser, you won’t need to enter your OTP (One-Time-Password) or use your security key for multi-factor authentication (MFA) the next time you log in." }, labels: { or: "or", no: "no", yes: "yes", email: "Email", continue: "Continue", copied: "copied", skip: "Skip", save: "Save", password: "Password", passkey: "Passkey", passcode: "Passcode", signInPassword: "Sign in with a password", signInPasscode: "Sign in with a passcode", forgotYourPassword: "Forgot your password?", back: "Back", signInPasskey: "Sign in with a passkey", registerAuthenticator: "Create a passkey", signIn: "Sign in", signUp: "Create account", sendNewPasscode: "Send new code", passwordRetryAfter: "Retry in {passwordRetryAfter}", passcodeResendAfter: "Request a new code in {passcodeResendAfter}", unverifiedEmail: "unverified", primaryEmail: "primary", setAsPrimaryEmail: "Set as primary", verify: "Verify", delete: "Delete", newEmailAddress: "New email address", newPassword: "New password", rename: "Rename", newPasskeyName: "New passkey name", addEmail: "Add email", createPasskey: "Create a passkey", webauthnUnsupported: "Passkeys are not supported by your browser", signInWith: "Sign in with {provider}", deleteAccount: "Yes, delete this account.", emailOrUsername: "Email or username", username: "Username", optional: "optional", dontHaveAnAccount: "Don't have an account?", alreadyHaveAnAccount: "Already have an account?", changeUsername: "Change username", setUsername: "Set username", changePassword: "Change password", setPassword: "Set password", revoke: "Revoke", currentSession: "Current session", authenticatorApp: "Authenticator app", securityKey: "Security key", securityKeyUse: "Use security key", newSecurityKeyName: "New security key name", createSecurityKey: "Add a security key", authenticatorAppManage: "Manage authenticator app", authenticatorAppAdd: "Set up", configured: "configured", useAnotherMethod: "Use another method", lastUsed: "Last used", trustDevice: "Trust this browser", staySignedIn: "Stay signed in" }, errors: { somethingWentWrong: "A technical error has occurred. Please try again later.", requestTimeout: "The request timed out.", invalidPassword: "Wrong email or password.", invalidPasscode: "The passcode provided was not correct.", passcodeAttemptsReached: "The passcode was entered incorrectly too many times. Please request a new code.", tooManyRequests: "Too many requests have been made. Please wait to repeat the requested operation.", unauthorized: "Your session has expired. Please log in again.", invalidWebauthnCredential: "This passkey cannot be used anymore.", passcodeExpired: "The passcode has expired. Please request a new one.", userVerification: "User verification required. Please ensure your authenticator device is protected with a PIN or biometric.", emailAddressAlreadyExistsError: "The email address already exists.", maxNumOfEmailAddressesReached: "No further email addresses can be added.", thirdPartyAccessDenied: "Access denied. The request was cancelled by the user or the provider has denied access for other reasons.", thirdPartyMultipleAccounts: "Cannot identify account. The email address is used by multiple accounts.", thirdPartyUnverifiedEmail: "Email verification required. Please verify the used email address with your provider.", signupDisabled: "Account registration is disabled.", handlerNotFoundError: "The current step in your process is not supported by this application version. Please try again later or contact support if the issue persists." }, flowErrors: { technical_error: "A technical error has occurred. Please try again later.", flow_expired_error: "The session has expired, please click the button to restart.", value_invalid_error: "The entered value is invalid.", passcode_invalid: "The passcode provided was not correct.", passkey_invalid: "This passkey cannot be used anymore", passcode_max_attempts_reached: "The passcode was entered incorrectly too many times. Please request a new code.", rate_limit_exceeded: "Too many requests have been made. Please wait to repeat the requested operation.", unknown_username_error: "The username is unknown.", unknown_email_error: "The email address is unknown.", username_already_exists: "The username is already taken.", invalid_username_error: "The username must contain only letters, numbers, and underscores.", email_already_exists: "The email is already taken.", not_found: "The requested resource was not found.", operation_not_permitted_error: "The operation is not permitted.", flow_discontinuity_error: "The process cannot be continued due to user settings or the provider's configuration.", form_data_invalid_error: "The submitted form data contains errors.", unauthorized: "Your session has expired. Please log in again.", value_missing_error: "The value is missing.", value_too_long_error: "Value is too long.", value_too_short_error: "The value is too short.", webauthn_credential_invalid_mfa_only: "This credential can be used as a second factor security key only.", webauthn_credential_already_exists: "The request either timed out, was canceled or the device is already registered. Please try again or try using another device.", platform_authenticator_required: "Your account is configured to use platform authenticators, but your current device or browser does not support this feature. Please try again with a compatible device or browser." } };
|
|
1346
|
-
} },
|
|
1346
|
+
} }, $o = {};
|
|
1347
1347
|
function G(n) {
|
|
1348
|
-
var e =
|
|
1348
|
+
var e = $o[n];
|
|
1349
1349
|
if (e !== void 0) return e.exports;
|
|
1350
|
-
var t =
|
|
1351
|
-
return
|
|
1350
|
+
var t = $o[n] = { id: n, exports: {} };
|
|
1351
|
+
return ya[n].call(t.exports, t, t.exports, G), t.exports;
|
|
1352
1352
|
}
|
|
1353
1353
|
G.n = (n) => {
|
|
1354
1354
|
var e = n && n.__esModule ? () => n.default : () => n;
|
|
@@ -1359,14 +1359,14 @@ G.n = (n) => {
|
|
|
1359
1359
|
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(n, "__esModule", { value: !0 });
|
|
1360
1360
|
}, G.nc = void 0;
|
|
1361
1361
|
var ie = {};
|
|
1362
|
-
G.d(ie, { fK: () => wn, tJ: () =>
|
|
1362
|
+
G.d(ie, { fK: () => wn, tJ: () => Ii, Z7: () => Cn, Q9: () => $i, Lv: () => ji, qQ: () => xn, I4: () => Mi, O8: () => Ce, ku: () => ao, ls: () => io, bO: () => ro, yv: () => An, AT: () => lo, m_: () => Wt, KG: () => so, DH: () => Sn, kf: () => fo, oY: () => Le, xg: () => Ti, Wg: () => Je, J: () => Ui, AC: () => co, D_: () => Xe, jx: () => Li, nX: () => uo, Nx: () => oo, Sd: () => gt, kz: () => us, fX: () => ho, qA: () => po, tz: () => go, gN: () => mo });
|
|
1363
1363
|
var Zn = {};
|
|
1364
|
-
G.r(Zn), G.d(Zn, { apple: () =>
|
|
1365
|
-
var C = G(616),
|
|
1364
|
+
G.r(Zn), G.d(Zn, { apple: () => cr, checkmark: () => dr, copy: () => ur, customProvider: () => hr, discord: () => pr, exclamation: () => mr, facebook: () => gr, github: () => fr, google: () => vr, linkedin: () => _r, mail: () => yr, microsoft: () => br, passkey: () => kr, password: () => wr, qrCodeScanner: () => Sr, securityKey: () => xr, spinner: () => Ar });
|
|
1365
|
+
var C = G(616), ba = 0;
|
|
1366
1366
|
function r(n, e, t, o, i, a) {
|
|
1367
1367
|
var s, c, d = {};
|
|
1368
1368
|
for (c in e) c == "ref" ? s = e[c] : d[c] = e[c];
|
|
1369
|
-
var l = { type: n, props: d, key: t, ref: s, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: --
|
|
1369
|
+
var l = { type: n, props: d, key: t, ref: s, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: --ba, __source: i, __self: a };
|
|
1370
1370
|
if (typeof n == "function" && (s = n.defaultProps)) for (c in s) d[c] === void 0 && (d[c] = s[c]);
|
|
1371
1371
|
return C.options.vnode && C.options.vnode(l), l;
|
|
1372
1372
|
}
|
|
@@ -1379,8 +1379,8 @@ function _n() {
|
|
|
1379
1379
|
return n;
|
|
1380
1380
|
}, _n.apply(this, arguments);
|
|
1381
1381
|
}
|
|
1382
|
-
var
|
|
1383
|
-
function
|
|
1382
|
+
var ka = ["context", "children"];
|
|
1383
|
+
function wa(n) {
|
|
1384
1384
|
this.getChildContext = function() {
|
|
1385
1385
|
return n.context;
|
|
1386
1386
|
};
|
|
@@ -1389,28 +1389,28 @@ function _a(n) {
|
|
|
1389
1389
|
var a, s, c = {}, d = Object.keys(o);
|
|
1390
1390
|
for (s = 0; s < d.length; s++) i.indexOf(a = d[s]) >= 0 || (c[a] = o[a]);
|
|
1391
1391
|
return c;
|
|
1392
|
-
}(n,
|
|
1392
|
+
}(n, ka);
|
|
1393
1393
|
return (0, C.cloneElement)(e, t);
|
|
1394
1394
|
}
|
|
1395
|
-
function
|
|
1395
|
+
function Sa() {
|
|
1396
1396
|
var n = new CustomEvent("_preact", { detail: {}, bubbles: !0, cancelable: !0 });
|
|
1397
|
-
this.dispatchEvent(n), this._vdom = (0, C.h)(
|
|
1397
|
+
this.dispatchEvent(n), this._vdom = (0, C.h)(wa, _n({}, this._props, { context: n.detail.context }), yi(this, this._vdomComponent)), (this.hasAttribute("hydrate") ? C.hydrate : C.render)(this._vdom, this._root);
|
|
1398
1398
|
}
|
|
1399
|
-
function
|
|
1399
|
+
function _i(n) {
|
|
1400
1400
|
return n.replace(/-(\w)/g, function(e, t) {
|
|
1401
1401
|
return t ? t.toUpperCase() : "";
|
|
1402
1402
|
});
|
|
1403
1403
|
}
|
|
1404
|
-
function
|
|
1404
|
+
function xa(n, e, t) {
|
|
1405
1405
|
if (this._vdom) {
|
|
1406
1406
|
var o = {};
|
|
1407
|
-
o[n] = t = t ?? void 0, o[
|
|
1407
|
+
o[n] = t = t ?? void 0, o[_i(n)] = t, this._vdom = (0, C.cloneElement)(this._vdom, o), (0, C.render)(this._vdom, this._root);
|
|
1408
1408
|
}
|
|
1409
1409
|
}
|
|
1410
|
-
function
|
|
1410
|
+
function Aa() {
|
|
1411
1411
|
(0, C.render)(this._vdom = null, this._root);
|
|
1412
1412
|
}
|
|
1413
|
-
function
|
|
1413
|
+
function To(n, e) {
|
|
1414
1414
|
var t = this;
|
|
1415
1415
|
return (0, C.h)("slot", _n({}, n, { ref: function(o) {
|
|
1416
1416
|
o ? (t.ref = o, t._listener || (t._listener = function(i) {
|
|
@@ -1418,20 +1418,20 @@ function $o(n, e) {
|
|
|
1418
1418
|
}, o.addEventListener("_preact", t._listener))) : t.ref.removeEventListener("_preact", t._listener);
|
|
1419
1419
|
} }));
|
|
1420
1420
|
}
|
|
1421
|
-
function
|
|
1421
|
+
function yi(n, e) {
|
|
1422
1422
|
if (n.nodeType === 3) return n.data;
|
|
1423
1423
|
if (n.nodeType !== 1) return null;
|
|
1424
1424
|
var t = [], o = {}, i = 0, a = n.attributes, s = n.childNodes;
|
|
1425
|
-
for (i = a.length; i--; ) a[i].name !== "slot" && (o[a[i].name] = a[i].value, o[
|
|
1425
|
+
for (i = a.length; i--; ) a[i].name !== "slot" && (o[a[i].name] = a[i].value, o[_i(a[i].name)] = a[i].value);
|
|
1426
1426
|
for (i = s.length; i--; ) {
|
|
1427
|
-
var c =
|
|
1428
|
-
d ? o[d] = (0, C.h)(
|
|
1427
|
+
var c = yi(s[i], null), d = s[i].slot;
|
|
1428
|
+
d ? o[d] = (0, C.h)(To, { name: d }, c) : t[i] = c;
|
|
1429
1429
|
}
|
|
1430
|
-
var l = e ? (0, C.h)(
|
|
1430
|
+
var l = e ? (0, C.h)(To, null, t) : t;
|
|
1431
1431
|
return (0, C.h)(e || n.nodeName.toLowerCase(), o, l);
|
|
1432
1432
|
}
|
|
1433
1433
|
var Z = G(7), _ = G(78);
|
|
1434
|
-
function
|
|
1434
|
+
function bi(n, e) {
|
|
1435
1435
|
for (var t in e) n[t] = e[t];
|
|
1436
1436
|
return n;
|
|
1437
1437
|
}
|
|
@@ -1450,30 +1450,30 @@ var Mo = C.options.__b;
|
|
|
1450
1450
|
C.options.__b = function(n) {
|
|
1451
1451
|
n.type && n.type.__f && n.ref && (n.props.ref = n.ref, n.ref = null), Mo && Mo(n);
|
|
1452
1452
|
};
|
|
1453
|
-
var
|
|
1453
|
+
var Ca = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911, Oa = (C.toChildArray, C.options.__e);
|
|
1454
1454
|
C.options.__e = function(n, e, t, o) {
|
|
1455
1455
|
if (n.then) {
|
|
1456
1456
|
for (var i, a = e; a = a.__; ) if ((i = a.__c) && i.__c) return e.__e == null && (e.__e = t.__e, e.__k = t.__k), i.__c(n, e);
|
|
1457
1457
|
}
|
|
1458
|
-
|
|
1458
|
+
Oa(n, e, t, o);
|
|
1459
1459
|
};
|
|
1460
1460
|
var Ro = C.options.unmount;
|
|
1461
|
-
function
|
|
1461
|
+
function ki(n, e, t) {
|
|
1462
1462
|
return n && (n.__c && n.__c.__H && (n.__c.__H.__.forEach(function(o) {
|
|
1463
1463
|
typeof o.__c == "function" && o.__c();
|
|
1464
|
-
}), n.__c.__H = null), (n =
|
|
1465
|
-
return
|
|
1464
|
+
}), n.__c.__H = null), (n = bi({}, n)).__c != null && (n.__c.__P === t && (n.__c.__P = e), n.__c = null), n.__k = n.__k && n.__k.map(function(o) {
|
|
1465
|
+
return ki(o, e, t);
|
|
1466
1466
|
})), n;
|
|
1467
1467
|
}
|
|
1468
|
-
function
|
|
1468
|
+
function wi(n, e, t) {
|
|
1469
1469
|
return n && (n.__v = null, n.__k = n.__k && n.__k.map(function(o) {
|
|
1470
|
-
return
|
|
1470
|
+
return wi(o, e, t);
|
|
1471
1471
|
}), n.__c && n.__c.__P === e && (n.__e && t.insertBefore(n.__e, n.__d), n.__c.__e = !0, n.__c.__P = t)), n;
|
|
1472
1472
|
}
|
|
1473
|
-
function
|
|
1473
|
+
function Tn() {
|
|
1474
1474
|
this.__u = 0, this.t = null, this.__b = null;
|
|
1475
1475
|
}
|
|
1476
|
-
function
|
|
1476
|
+
function Si(n) {
|
|
1477
1477
|
var e = n.__.__c;
|
|
1478
1478
|
return e && e.__a && e.__a(n);
|
|
1479
1479
|
}
|
|
@@ -1483,10 +1483,10 @@ function Bt() {
|
|
|
1483
1483
|
C.options.unmount = function(n) {
|
|
1484
1484
|
var e = n.__c;
|
|
1485
1485
|
e && e.__R && e.__R(), e && n.__h === !0 && (n.type = null), Ro && Ro(n);
|
|
1486
|
-
}, (
|
|
1486
|
+
}, (Tn.prototype = new C.Component()).__c = function(n, e) {
|
|
1487
1487
|
var t = e.__c, o = this;
|
|
1488
1488
|
o.t == null && (o.t = []), o.t.push(t);
|
|
1489
|
-
var i =
|
|
1489
|
+
var i = Si(o.__v), a = !1, s = function() {
|
|
1490
1490
|
a || (a = !0, t.__R = null, i ? i(c) : c());
|
|
1491
1491
|
};
|
|
1492
1492
|
t.__R = s;
|
|
@@ -1494,20 +1494,20 @@ C.options.unmount = function(n) {
|
|
|
1494
1494
|
if (!--o.__u) {
|
|
1495
1495
|
if (o.state.__a) {
|
|
1496
1496
|
var l = o.state.__a;
|
|
1497
|
-
o.__v.__k[0] =
|
|
1497
|
+
o.__v.__k[0] = wi(l, l.__c.__P, l.__c.__O);
|
|
1498
1498
|
}
|
|
1499
1499
|
var u;
|
|
1500
1500
|
for (o.setState({ __a: o.__b = null }); u = o.t.pop(); ) u.forceUpdate();
|
|
1501
1501
|
}
|
|
1502
1502
|
}, d = e.__h === !0;
|
|
1503
1503
|
o.__u++ || d || o.setState({ __a: o.__b = o.__v.__k[0] }), n.then(s, s);
|
|
1504
|
-
},
|
|
1504
|
+
}, Tn.prototype.componentWillUnmount = function() {
|
|
1505
1505
|
this.t = [];
|
|
1506
|
-
},
|
|
1506
|
+
}, Tn.prototype.render = function(n, e) {
|
|
1507
1507
|
if (this.__b) {
|
|
1508
1508
|
if (this.__v.__k) {
|
|
1509
1509
|
var t = document.createElement("div"), o = this.__v.__k[0].__c;
|
|
1510
|
-
this.__v.__k[0] =
|
|
1510
|
+
this.__v.__k[0] = ki(this.__b, t, o.__O = o.__P);
|
|
1511
1511
|
}
|
|
1512
1512
|
this.__b = null;
|
|
1513
1513
|
}
|
|
@@ -1522,7 +1522,7 @@ var qo = function(n, e, t) {
|
|
|
1522
1522
|
}
|
|
1523
1523
|
};
|
|
1524
1524
|
(Bt.prototype = new C.Component()).__a = function(n) {
|
|
1525
|
-
var e = this, t =
|
|
1525
|
+
var e = this, t = Si(e.__v), o = e.o.get(n);
|
|
1526
1526
|
return o[0]++, function(i) {
|
|
1527
1527
|
var a = function() {
|
|
1528
1528
|
e.props.revealOrder ? (o.push(i), qo(e, n, o)) : i();
|
|
@@ -1541,7 +1541,7 @@ var qo = function(n, e, t) {
|
|
|
1541
1541
|
qo(n, t, e);
|
|
1542
1542
|
});
|
|
1543
1543
|
};
|
|
1544
|
-
var
|
|
1544
|
+
var Pa = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Ea = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, Ia = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Da = /[A-Z0-9]/g, ja = typeof document < "u", La = function(n) {
|
|
1545
1545
|
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(n);
|
|
1546
1546
|
};
|
|
1547
1547
|
C.Component.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(n) {
|
|
@@ -1552,16 +1552,16 @@ C.Component.prototype.isReactComponent = {}, ["componentWillMount", "componentWi
|
|
|
1552
1552
|
} });
|
|
1553
1553
|
});
|
|
1554
1554
|
var zo = C.options.event;
|
|
1555
|
-
function
|
|
1555
|
+
function $a() {
|
|
1556
1556
|
}
|
|
1557
|
-
function
|
|
1557
|
+
function Ta() {
|
|
1558
1558
|
return this.cancelBubble;
|
|
1559
1559
|
}
|
|
1560
|
-
function
|
|
1560
|
+
function Ua() {
|
|
1561
1561
|
return this.defaultPrevented;
|
|
1562
1562
|
}
|
|
1563
1563
|
C.options.event = function(n) {
|
|
1564
|
-
return zo && (n = zo(n)), n.persist =
|
|
1564
|
+
return zo && (n = zo(n)), n.persist = $a, n.isPropagationStopped = Ta, n.isDefaultPrevented = Ua, n.nativeEvent = n;
|
|
1565
1565
|
};
|
|
1566
1566
|
var Ho = { configurable: !0, get: function() {
|
|
1567
1567
|
return this.class;
|
|
@@ -1571,9 +1571,9 @@ C.options.vnode = function(n) {
|
|
|
1571
1571
|
if (typeof e == "string") {
|
|
1572
1572
|
for (var i in o = {}, t) {
|
|
1573
1573
|
var a = t[i];
|
|
1574
|
-
if (!(i === "value" && "defaultValue" in t && a == null ||
|
|
1574
|
+
if (!(i === "value" && "defaultValue" in t && a == null || ja && i === "children" && e === "noscript")) {
|
|
1575
1575
|
var s = i.toLowerCase();
|
|
1576
|
-
i === "defaultValue" && "value" in t && t.value == null ? i = "value" : i === "download" && a === !0 ? a = "" : s === "ondoubleclick" ? i = "ondblclick" : s !== "onchange" || e !== "input" && e !== "textarea" ||
|
|
1576
|
+
i === "defaultValue" && "value" in t && t.value == null ? i = "value" : i === "download" && a === !0 ? a = "" : s === "ondoubleclick" ? i = "ondblclick" : s !== "onchange" || e !== "input" && e !== "textarea" || La(t.type) ? s === "onfocus" ? i = "onfocusin" : s === "onblur" ? i = "onfocusout" : Ia.test(i) ? i = s : e.indexOf("-") === -1 && Ea.test(i) ? i = i.replace(Da, "-$&").toLowerCase() : a === null && (a = void 0) : s = i = "oninput", s === "oninput" && o[i = s] && (i = "oninputCapture"), o[i] = a;
|
|
1577
1577
|
}
|
|
1578
1578
|
}
|
|
1579
1579
|
e == "select" && o.multiple && Array.isArray(o.value) && (o.value = (0, C.toChildArray)(t.children).forEach(function(c) {
|
|
@@ -1582,19 +1582,19 @@ C.options.vnode = function(n) {
|
|
|
1582
1582
|
c.props.selected = o.multiple ? o.defaultValue.indexOf(c.props.value) != -1 : o.defaultValue == c.props.value;
|
|
1583
1583
|
})), n.props = o, t.class != t.className && (Ho.enumerable = "className" in t, t.className != null && (o.class = t.className), Object.defineProperty(o, "className", Ho));
|
|
1584
1584
|
}
|
|
1585
|
-
n.$$typeof =
|
|
1585
|
+
n.$$typeof = Pa, Wo && Wo(n);
|
|
1586
1586
|
};
|
|
1587
1587
|
var Fo = C.options.__r;
|
|
1588
1588
|
C.options.__r = function(n) {
|
|
1589
1589
|
Fo && Fo(n), n.__c;
|
|
1590
1590
|
};
|
|
1591
1591
|
var Ko = C.options.diffed;
|
|
1592
|
-
function
|
|
1592
|
+
function xi(n) {
|
|
1593
1593
|
const e = "==".slice(0, (4 - n.length % 4) % 4), t = n.replace(/-/g, "+").replace(/_/g, "/") + e, o = atob(t), i = new ArrayBuffer(o.length), a = new Uint8Array(i);
|
|
1594
1594
|
for (let s = 0; s < o.length; s++) a[s] = o.charCodeAt(s);
|
|
1595
1595
|
return i;
|
|
1596
1596
|
}
|
|
1597
|
-
function
|
|
1597
|
+
function Ai(n) {
|
|
1598
1598
|
const e = new Uint8Array(n);
|
|
1599
1599
|
let t = "";
|
|
1600
1600
|
for (const o of e) t += String.fromCharCode(o);
|
|
@@ -1605,9 +1605,9 @@ C.options.diffed = function(n) {
|
|
|
1605
1605
|
var e = n.props, t = n.__e;
|
|
1606
1606
|
t != null && n.type === "textarea" && "value" in e && e.value !== t.value && (t.value = e.value == null ? "" : e.value);
|
|
1607
1607
|
}, C.Fragment, _.useLayoutEffect, _.useState, _.useId, _.useReducer, _.useEffect, _.useLayoutEffect, _.useRef, _.useImperativeHandle, _.useMemo, _.useCallback, _.useContext, _.useDebugValue, C.createElement, C.createContext, C.createRef, C.Fragment, C.Component;
|
|
1608
|
-
var
|
|
1608
|
+
var ue = "copy", Be = "convert";
|
|
1609
1609
|
function _t(n, e, t) {
|
|
1610
|
-
if (e ===
|
|
1610
|
+
if (e === ue) return t;
|
|
1611
1611
|
if (e === Be) return n(t);
|
|
1612
1612
|
if (e instanceof Array) return t.map((o) => _t(n, e[0], o));
|
|
1613
1613
|
if (e instanceof Object) {
|
|
@@ -1629,27 +1629,27 @@ function Jn(n, e) {
|
|
|
1629
1629
|
function ve(n) {
|
|
1630
1630
|
return { required: !0, schema: n };
|
|
1631
1631
|
}
|
|
1632
|
-
function
|
|
1632
|
+
function Ae(n) {
|
|
1633
1633
|
return { required: !1, schema: n };
|
|
1634
1634
|
}
|
|
1635
|
-
var
|
|
1635
|
+
var Ci = { type: ve(ue), id: ve(Be), transports: Ae(ue) }, Oi = { appid: Ae(ue), appidExclude: Ae(ue), credProps: Ae(ue) }, Pi = { appid: Ae(ue), appidExclude: Ae(ue), credProps: Ae(ue) }, Na = { publicKey: ve({ rp: ve(ue), user: ve({ id: ve(Be), name: ve(ue), displayName: ve(ue) }), challenge: ve(Be), pubKeyCredParams: ve(ue), timeout: Ae(ue), excludeCredentials: Ae([Ci]), authenticatorSelection: Ae(ue), attestation: Ae(ue), extensions: Ae(Oi) }), signal: Ae(ue) }, Ma = { type: ve(ue), id: ve(ue), rawId: ve(Be), authenticatorAttachment: Ae(ue), response: ve({ clientDataJSON: ve(Be), attestationObject: ve(Be), transports: Jn(ue, (n) => {
|
|
1636
1636
|
var e;
|
|
1637
1637
|
return ((e = n.getTransports) == null ? void 0 : e.call(n)) || [];
|
|
1638
|
-
}) }), clientExtensionResults: Jn(
|
|
1638
|
+
}) }), clientExtensionResults: Jn(Pi, (n) => n.getClientExtensionResults()) }, Ra = { mediation: Ae(ue), publicKey: ve({ challenge: ve(Be), timeout: Ae(ue), rpId: Ae(ue), allowCredentials: Ae([Ci]), userVerification: Ae(ue), extensions: Ae(Oi) }), signal: Ae(ue) }, qa = { type: ve(ue), id: ve(ue), rawId: ve(Be), authenticatorAttachment: Ae(ue), response: ve({ clientDataJSON: ve(Be), authenticatorData: ve(Be), signature: ve(Be), userHandle: ve(Be) }), clientExtensionResults: Jn(Pi, (n) => n.getClientExtensionResults()) };
|
|
1639
1639
|
async function Vo(n) {
|
|
1640
1640
|
const e = await navigator.credentials.create(function(t) {
|
|
1641
|
-
return _t(
|
|
1641
|
+
return _t(xi, Na, t);
|
|
1642
1642
|
}(n));
|
|
1643
1643
|
return function(t) {
|
|
1644
|
-
return _t(
|
|
1644
|
+
return _t(Ai, Ma, t);
|
|
1645
1645
|
}(e);
|
|
1646
1646
|
}
|
|
1647
1647
|
async function Bo(n) {
|
|
1648
1648
|
const e = await navigator.credentials.get(function(t) {
|
|
1649
|
-
return _t(
|
|
1649
|
+
return _t(xi, Ra, t);
|
|
1650
1650
|
}(n));
|
|
1651
1651
|
return function(t) {
|
|
1652
|
-
return _t(
|
|
1652
|
+
return _t(Ai, qa, t);
|
|
1653
1653
|
}(e);
|
|
1654
1654
|
}
|
|
1655
1655
|
function yn() {
|
|
@@ -1661,116 +1661,116 @@ function yn() {
|
|
|
1661
1661
|
return n;
|
|
1662
1662
|
}, yn.apply(this, arguments);
|
|
1663
1663
|
}
|
|
1664
|
-
var
|
|
1665
|
-
function
|
|
1666
|
-
return "__private_" +
|
|
1664
|
+
var za = 0;
|
|
1665
|
+
function Ei(n) {
|
|
1666
|
+
return "__private_" + za++ + "_" + n;
|
|
1667
1667
|
}
|
|
1668
1668
|
function Un(n, e) {
|
|
1669
1669
|
if (!Object.prototype.hasOwnProperty.call(n, e)) throw new TypeError("attempted to use private field on non-instance");
|
|
1670
1670
|
return n;
|
|
1671
1671
|
}
|
|
1672
|
-
class
|
|
1672
|
+
class Ce extends Error {
|
|
1673
1673
|
constructor(e, t, o) {
|
|
1674
|
-
super(e), this.code = void 0, this.cause = void 0, this.code = t, this.cause = o, Object.setPrototypeOf(this,
|
|
1674
|
+
super(e), this.code = void 0, this.cause = void 0, this.code = t, this.cause = o, Object.setPrototypeOf(this, Ce.prototype);
|
|
1675
1675
|
}
|
|
1676
1676
|
}
|
|
1677
|
-
class
|
|
1677
|
+
class Le extends Ce {
|
|
1678
1678
|
constructor(e) {
|
|
1679
|
-
super("Technical error", "somethingWentWrong", e), Object.setPrototypeOf(this,
|
|
1679
|
+
super("Technical error", "somethingWentWrong", e), Object.setPrototypeOf(this, Le.prototype);
|
|
1680
1680
|
}
|
|
1681
1681
|
}
|
|
1682
|
-
class wn extends
|
|
1682
|
+
class wn extends Ce {
|
|
1683
1683
|
constructor(e, t) {
|
|
1684
1684
|
super("Conflict error", "conflict", t), Object.setPrototypeOf(this, wn.prototype);
|
|
1685
1685
|
}
|
|
1686
1686
|
}
|
|
1687
|
-
class Sn extends
|
|
1687
|
+
class Sn extends Ce {
|
|
1688
1688
|
constructor(e) {
|
|
1689
1689
|
super("Request timed out error", "requestTimeout", e), Object.setPrototypeOf(this, Sn.prototype);
|
|
1690
1690
|
}
|
|
1691
1691
|
}
|
|
1692
|
-
class oo extends
|
|
1692
|
+
class oo extends Ce {
|
|
1693
1693
|
constructor(e) {
|
|
1694
1694
|
super("Request cancelled error", "requestCancelled", e), Object.setPrototypeOf(this, oo.prototype);
|
|
1695
1695
|
}
|
|
1696
1696
|
}
|
|
1697
|
-
class io extends
|
|
1697
|
+
class io extends Ce {
|
|
1698
1698
|
constructor(e) {
|
|
1699
1699
|
super("Invalid password error", "invalidPassword", e), Object.setPrototypeOf(this, io.prototype);
|
|
1700
1700
|
}
|
|
1701
1701
|
}
|
|
1702
|
-
class ao extends
|
|
1702
|
+
class ao extends Ce {
|
|
1703
1703
|
constructor(e) {
|
|
1704
1704
|
super("Invalid Passcode error", "invalidPasscode", e), Object.setPrototypeOf(this, ao.prototype);
|
|
1705
1705
|
}
|
|
1706
1706
|
}
|
|
1707
|
-
class ro extends
|
|
1707
|
+
class ro extends Ce {
|
|
1708
1708
|
constructor(e) {
|
|
1709
1709
|
super("Invalid WebAuthn credential error", "invalidWebauthnCredential", e), Object.setPrototypeOf(this, ro.prototype);
|
|
1710
1710
|
}
|
|
1711
1711
|
}
|
|
1712
|
-
class so extends
|
|
1712
|
+
class so extends Ce {
|
|
1713
1713
|
constructor(e) {
|
|
1714
1714
|
super("Passcode expired error", "passcodeExpired", e), Object.setPrototypeOf(this, so.prototype);
|
|
1715
1715
|
}
|
|
1716
1716
|
}
|
|
1717
|
-
class lo extends
|
|
1717
|
+
class lo extends Ce {
|
|
1718
1718
|
constructor(e) {
|
|
1719
1719
|
super("Maximum number of Passcode attempts reached error", "passcodeAttemptsReached", e), Object.setPrototypeOf(this, lo.prototype);
|
|
1720
1720
|
}
|
|
1721
1721
|
}
|
|
1722
|
-
class Wt extends
|
|
1722
|
+
class Wt extends Ce {
|
|
1723
1723
|
constructor(e) {
|
|
1724
1724
|
super("Not found error", "notFound", e), Object.setPrototypeOf(this, Wt.prototype);
|
|
1725
1725
|
}
|
|
1726
1726
|
}
|
|
1727
|
-
class co extends
|
|
1727
|
+
class co extends Ce {
|
|
1728
1728
|
constructor(e, t) {
|
|
1729
1729
|
super("Too many requests error", "tooManyRequests", t), this.retryAfter = void 0, this.retryAfter = e, Object.setPrototypeOf(this, co.prototype);
|
|
1730
1730
|
}
|
|
1731
1731
|
}
|
|
1732
|
-
class Xe extends
|
|
1732
|
+
class Xe extends Ce {
|
|
1733
1733
|
constructor(e) {
|
|
1734
1734
|
super("Unauthorized error", "unauthorized", e), Object.setPrototypeOf(this, Xe.prototype);
|
|
1735
1735
|
}
|
|
1736
1736
|
}
|
|
1737
|
-
class xn extends
|
|
1737
|
+
class xn extends Ce {
|
|
1738
1738
|
constructor(e) {
|
|
1739
1739
|
super("Forbidden error", "forbidden", e), Object.setPrototypeOf(this, xn.prototype);
|
|
1740
1740
|
}
|
|
1741
1741
|
}
|
|
1742
|
-
class uo extends
|
|
1742
|
+
class uo extends Ce {
|
|
1743
1743
|
constructor(e) {
|
|
1744
1744
|
super("User verification error", "userVerification", e), Object.setPrototypeOf(this, uo.prototype);
|
|
1745
1745
|
}
|
|
1746
1746
|
}
|
|
1747
|
-
class An extends
|
|
1747
|
+
class An extends Ce {
|
|
1748
1748
|
constructor(e) {
|
|
1749
1749
|
super("Maximum number of email addresses reached error", "maxNumOfEmailAddressesReached", e), Object.setPrototypeOf(this, An.prototype);
|
|
1750
1750
|
}
|
|
1751
1751
|
}
|
|
1752
|
-
class Cn extends
|
|
1752
|
+
class Cn extends Ce {
|
|
1753
1753
|
constructor(e) {
|
|
1754
1754
|
super("The email address already exists", "emailAddressAlreadyExistsError", e), Object.setPrototypeOf(this, Cn.prototype);
|
|
1755
1755
|
}
|
|
1756
1756
|
}
|
|
1757
|
-
class Je extends
|
|
1757
|
+
class Je extends Ce {
|
|
1758
1758
|
constructor(e, t) {
|
|
1759
1759
|
super("An error occurred during third party sign up/sign in", e, t), Object.setPrototypeOf(this, Je.prototype);
|
|
1760
1760
|
}
|
|
1761
1761
|
}
|
|
1762
1762
|
const ho = "hanko-session-created", po = "hanko-session-expired", mo = "hanko-user-logged-out", go = "hanko-user-deleted";
|
|
1763
|
-
class
|
|
1763
|
+
class Ii extends CustomEvent {
|
|
1764
1764
|
constructor(e, t) {
|
|
1765
1765
|
super(e, { detail: t });
|
|
1766
1766
|
}
|
|
1767
1767
|
}
|
|
1768
|
-
class
|
|
1768
|
+
class Di {
|
|
1769
1769
|
constructor() {
|
|
1770
1770
|
this._dispatchEvent = document.dispatchEvent.bind(document);
|
|
1771
1771
|
}
|
|
1772
1772
|
dispatch(e, t) {
|
|
1773
|
-
this._dispatchEvent(new
|
|
1773
|
+
this._dispatchEvent(new Ii(e, t));
|
|
1774
1774
|
}
|
|
1775
1775
|
dispatchSessionCreatedEvent(e) {
|
|
1776
1776
|
this.dispatch(ho, e);
|
|
@@ -1825,7 +1825,7 @@ var Nn = function n(e, t) {
|
|
|
1825
1825
|
}, write: function(n) {
|
|
1826
1826
|
return encodeURIComponent(n).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent);
|
|
1827
1827
|
} }, { path: "/" });
|
|
1828
|
-
class
|
|
1828
|
+
class Ha {
|
|
1829
1829
|
constructor(e) {
|
|
1830
1830
|
var t;
|
|
1831
1831
|
this.authCookieName = void 0, this.authCookieDomain = void 0, this.authCookieSameSite = void 0, this.authCookieName = e.cookieName, this.authCookieDomain = e.cookieDomain, this.authCookieSameSite = (t = e.cookieSameSite) != null ? t : "lax";
|
|
@@ -1837,14 +1837,14 @@ class Ma {
|
|
|
1837
1837
|
const o = { secure: !0, sameSite: this.authCookieSameSite };
|
|
1838
1838
|
this.authCookieDomain !== void 0 && (o.domain = this.authCookieDomain);
|
|
1839
1839
|
const i = yn({}, o, t);
|
|
1840
|
-
if ((i.sameSite === "none" || i.sameSite === "None") && i.secure === !1) throw new
|
|
1840
|
+
if ((i.sameSite === "none" || i.sameSite === "None") && i.secure === !1) throw new Le(new Error("Secure attribute must be set when SameSite=None"));
|
|
1841
1841
|
Nn.set(this.authCookieName, e, i);
|
|
1842
1842
|
}
|
|
1843
1843
|
removeAuthCookie() {
|
|
1844
1844
|
Nn.remove(this.authCookieName);
|
|
1845
1845
|
}
|
|
1846
1846
|
}
|
|
1847
|
-
class
|
|
1847
|
+
class Wa {
|
|
1848
1848
|
constructor(e) {
|
|
1849
1849
|
this.keyName = void 0, this.keyName = e.keyName;
|
|
1850
1850
|
}
|
|
@@ -1858,7 +1858,7 @@ class Ra {
|
|
|
1858
1858
|
sessionStorage.removeItem(this.keyName);
|
|
1859
1859
|
}
|
|
1860
1860
|
}
|
|
1861
|
-
class
|
|
1861
|
+
class Fa {
|
|
1862
1862
|
constructor(e) {
|
|
1863
1863
|
this._xhr = void 0, this._xhr = e;
|
|
1864
1864
|
}
|
|
@@ -1866,9 +1866,9 @@ class qa {
|
|
|
1866
1866
|
return this._xhr.getResponseHeader(e);
|
|
1867
1867
|
}
|
|
1868
1868
|
}
|
|
1869
|
-
class
|
|
1869
|
+
class Ka {
|
|
1870
1870
|
constructor(e) {
|
|
1871
|
-
this.headers = void 0, this.ok = void 0, this.status = void 0, this.statusText = void 0, this.url = void 0, this._decodedJSON = void 0, this.xhr = void 0, this.headers = new
|
|
1871
|
+
this.headers = void 0, this.ok = void 0, this.status = void 0, this.statusText = void 0, this.url = void 0, this._decodedJSON = void 0, this.xhr = void 0, this.headers = new Fa(e), this.ok = e.status >= 200 && e.status <= 299, this.status = e.status, this.statusText = e.statusText, this.url = e.responseURL, this.xhr = e;
|
|
1872
1872
|
}
|
|
1873
1873
|
json() {
|
|
1874
1874
|
return this._decodedJSON || (this._decodedJSON = JSON.parse(this.xhr.response)), this._decodedJSON;
|
|
@@ -1878,17 +1878,17 @@ class za {
|
|
|
1878
1878
|
return isNaN(t) ? 0 : t;
|
|
1879
1879
|
}
|
|
1880
1880
|
}
|
|
1881
|
-
class
|
|
1881
|
+
class Va {
|
|
1882
1882
|
constructor(e, t) {
|
|
1883
|
-
this.timeout = void 0, this.api = void 0, this.dispatcher = void 0, this.cookie = void 0, this.sessionTokenStorage = void 0, this.lang = void 0, this.sessionTokenLocation = void 0, this.api = e, this.timeout = t.timeout, this.dispatcher = new
|
|
1883
|
+
this.timeout = void 0, this.api = void 0, this.dispatcher = void 0, this.cookie = void 0, this.sessionTokenStorage = void 0, this.lang = void 0, this.sessionTokenLocation = void 0, this.api = e, this.timeout = t.timeout, this.dispatcher = new Di(), this.cookie = new Ha(yn({}, t)), this.sessionTokenStorage = new Wa({ keyName: t.cookieName }), this.lang = t.lang, this.sessionTokenLocation = t.sessionTokenLocation;
|
|
1884
1884
|
}
|
|
1885
1885
|
_fetch(e, t, o = new XMLHttpRequest()) {
|
|
1886
1886
|
const i = this, a = this.api + e, s = this.timeout, c = this.getAuthToken(), d = this.lang;
|
|
1887
1887
|
return new Promise(function(l, u) {
|
|
1888
1888
|
o.open(t.method, a, !0), o.setRequestHeader("Accept", "application/json"), o.setRequestHeader("Content-Type", "application/json"), o.setRequestHeader("X-Language", d), c && o.setRequestHeader("Authorization", `Bearer ${c}`), o.timeout = s, o.withCredentials = !0, o.onload = () => {
|
|
1889
|
-
i.processHeaders(o), l(new
|
|
1889
|
+
i.processHeaders(o), l(new Ka(o));
|
|
1890
1890
|
}, o.onerror = () => {
|
|
1891
|
-
u(new
|
|
1891
|
+
u(new Le());
|
|
1892
1892
|
}, o.ontimeout = () => {
|
|
1893
1893
|
u(new Sn());
|
|
1894
1894
|
}, o.send(t.body ? t.body.toString() : null);
|
|
@@ -1946,10 +1946,10 @@ class Ha {
|
|
|
1946
1946
|
}
|
|
1947
1947
|
class lt {
|
|
1948
1948
|
constructor(e, t) {
|
|
1949
|
-
this.client = void 0, this.client = new
|
|
1949
|
+
this.client = void 0, this.client = new Va(e, t);
|
|
1950
1950
|
}
|
|
1951
1951
|
}
|
|
1952
|
-
class
|
|
1952
|
+
class ji extends lt {
|
|
1953
1953
|
getDomain(e) {
|
|
1954
1954
|
if (!e) throw new Je("somethingWentWrong", new Error("email missing from request"));
|
|
1955
1955
|
const t = e.split("@");
|
|
@@ -1962,7 +1962,7 @@ class Pi extends lt {
|
|
|
1962
1962
|
const t = this.getDomain(e);
|
|
1963
1963
|
return this.client.get(`/saml/provider?domain=${t}`).then((o) => {
|
|
1964
1964
|
if (o.status == 404) throw new Wt(new Error("provider not found"));
|
|
1965
|
-
if (!o.ok) throw new
|
|
1965
|
+
if (!o.ok) throw new Le(new Error("unable to fetch provider"));
|
|
1966
1966
|
return o.ok;
|
|
1967
1967
|
});
|
|
1968
1968
|
}
|
|
@@ -1998,63 +1998,63 @@ class Pi extends lt {
|
|
|
1998
1998
|
}
|
|
1999
1999
|
}
|
|
2000
2000
|
}
|
|
2001
|
-
class
|
|
2001
|
+
class Li extends lt {
|
|
2002
2002
|
async getInfo(e) {
|
|
2003
2003
|
const t = await this.client.post("/user", { email: e });
|
|
2004
2004
|
if (t.status === 404) throw new Wt();
|
|
2005
|
-
if (!t.ok) throw new
|
|
2005
|
+
if (!t.ok) throw new Le();
|
|
2006
2006
|
return t.json();
|
|
2007
2007
|
}
|
|
2008
2008
|
async create(e) {
|
|
2009
2009
|
const t = await this.client.post("/users", { email: e });
|
|
2010
2010
|
if (t.status === 409) throw new wn();
|
|
2011
2011
|
if (t.status === 403) throw new xn();
|
|
2012
|
-
if (!t.ok) throw new
|
|
2012
|
+
if (!t.ok) throw new Le();
|
|
2013
2013
|
return t.json();
|
|
2014
2014
|
}
|
|
2015
2015
|
async getCurrent() {
|
|
2016
2016
|
const e = await this.client.get("/me");
|
|
2017
2017
|
if (e.status === 401) throw this.client.dispatcher.dispatchSessionExpiredEvent(), new Xe();
|
|
2018
|
-
if (!e.ok) throw new
|
|
2018
|
+
if (!e.ok) throw new Le();
|
|
2019
2019
|
const t = e.json(), o = await this.client.get(`/users/${t.id}`);
|
|
2020
2020
|
if (o.status === 401) throw this.client.dispatcher.dispatchSessionExpiredEvent(), new Xe();
|
|
2021
|
-
if (!o.ok) throw new
|
|
2021
|
+
if (!o.ok) throw new Le();
|
|
2022
2022
|
return o.json();
|
|
2023
2023
|
}
|
|
2024
2024
|
async delete() {
|
|
2025
2025
|
const e = await this.client.delete("/user");
|
|
2026
2026
|
if (e.ok) return this.client.sessionTokenStorage.removeSessionToken(), this.client.cookie.removeAuthCookie(), void this.client.dispatcher.dispatchUserDeletedEvent();
|
|
2027
|
-
throw e.status === 401 ? (this.client.dispatcher.dispatchSessionExpiredEvent(), new Xe()) : new
|
|
2027
|
+
throw e.status === 401 ? (this.client.dispatcher.dispatchSessionExpiredEvent(), new Xe()) : new Le();
|
|
2028
2028
|
}
|
|
2029
2029
|
async logout() {
|
|
2030
2030
|
const e = await this.client.post("/logout");
|
|
2031
|
-
if (this.client.sessionTokenStorage.removeSessionToken(), this.client.cookie.removeAuthCookie(), this.client.dispatcher.dispatchUserLoggedOutEvent(), e.status !== 401 && !e.ok) throw new
|
|
2031
|
+
if (this.client.sessionTokenStorage.removeSessionToken(), this.client.cookie.removeAuthCookie(), this.client.dispatcher.dispatchUserLoggedOutEvent(), e.status !== 401 && !e.ok) throw new Le();
|
|
2032
2032
|
}
|
|
2033
2033
|
}
|
|
2034
|
-
class
|
|
2034
|
+
class $i extends lt {
|
|
2035
2035
|
async list() {
|
|
2036
2036
|
const e = await this.client.get("/emails");
|
|
2037
2037
|
if (e.status === 401) throw this.client.dispatcher.dispatchSessionExpiredEvent(), new Xe();
|
|
2038
|
-
if (!e.ok) throw new
|
|
2038
|
+
if (!e.ok) throw new Le();
|
|
2039
2039
|
return e.json();
|
|
2040
2040
|
}
|
|
2041
2041
|
async create(e) {
|
|
2042
2042
|
const t = await this.client.post("/emails", { address: e });
|
|
2043
2043
|
if (t.ok) return t.json();
|
|
2044
|
-
throw t.status === 400 ? new Cn() : t.status === 401 ? (this.client.dispatcher.dispatchSessionExpiredEvent(), new Xe()) : t.status === 409 ? new An() : new
|
|
2044
|
+
throw t.status === 400 ? new Cn() : t.status === 401 ? (this.client.dispatcher.dispatchSessionExpiredEvent(), new Xe()) : t.status === 409 ? new An() : new Le();
|
|
2045
2045
|
}
|
|
2046
2046
|
async setPrimaryEmail(e) {
|
|
2047
2047
|
const t = await this.client.post(`/emails/${e}/set_primary`);
|
|
2048
2048
|
if (t.status === 401) throw this.client.dispatcher.dispatchSessionExpiredEvent(), new Xe();
|
|
2049
|
-
if (!t.ok) throw new
|
|
2049
|
+
if (!t.ok) throw new Le();
|
|
2050
2050
|
}
|
|
2051
2051
|
async delete(e) {
|
|
2052
2052
|
const t = await this.client.delete(`/emails/${e}`);
|
|
2053
2053
|
if (t.status === 401) throw this.client.dispatcher.dispatchSessionExpiredEvent(), new Xe();
|
|
2054
|
-
if (!t.ok) throw new
|
|
2054
|
+
if (!t.ok) throw new Le();
|
|
2055
2055
|
}
|
|
2056
2056
|
}
|
|
2057
|
-
class
|
|
2057
|
+
class Ti extends lt {
|
|
2058
2058
|
async auth(e, t) {
|
|
2059
2059
|
const o = new URL("/thirdparty/auth", this.client.api);
|
|
2060
2060
|
if (!e) throw new Je("somethingWentWrong", new Error("provider missing from request"));
|
|
@@ -2091,17 +2091,17 @@ class Di extends lt {
|
|
|
2091
2091
|
}
|
|
2092
2092
|
}
|
|
2093
2093
|
}
|
|
2094
|
-
class
|
|
2094
|
+
class Ui extends lt {
|
|
2095
2095
|
async validate() {
|
|
2096
2096
|
const e = new URLSearchParams(window.location.search).get("hanko_token");
|
|
2097
2097
|
if (!e) return;
|
|
2098
2098
|
window.history.replaceState(null, null, window.location.pathname);
|
|
2099
2099
|
const t = await this.client.post("/token", { value: e });
|
|
2100
|
-
if (!t.ok) throw new
|
|
2100
|
+
if (!t.ok) throw new Le();
|
|
2101
2101
|
return t.json();
|
|
2102
2102
|
}
|
|
2103
2103
|
}
|
|
2104
|
-
class
|
|
2104
|
+
class Ba {
|
|
2105
2105
|
static throttle(e, t, o = {}) {
|
|
2106
2106
|
const { leading: i = !0, trailing: a = !0 } = o;
|
|
2107
2107
|
let s, c, d, l = 0;
|
|
@@ -2118,7 +2118,7 @@ class Wa {
|
|
|
2118
2118
|
}
|
|
2119
2119
|
class On {
|
|
2120
2120
|
constructor() {
|
|
2121
|
-
this.throttleLimit = 1e3, this._addEventListener = document.addEventListener.bind(document), this._removeEventListener = document.removeEventListener.bind(document), this._throttle =
|
|
2121
|
+
this.throttleLimit = 1e3, this._addEventListener = document.addEventListener.bind(document), this._removeEventListener = document.removeEventListener.bind(document), this._throttle = Ba.throttle;
|
|
2122
2122
|
}
|
|
2123
2123
|
wrapCallback(e, t) {
|
|
2124
2124
|
const o = (i) => {
|
|
@@ -2152,23 +2152,23 @@ class On {
|
|
|
2152
2152
|
class fo extends lt {
|
|
2153
2153
|
async validate() {
|
|
2154
2154
|
const e = await this.client.get("/sessions/validate");
|
|
2155
|
-
if (!e.ok) throw new
|
|
2155
|
+
if (!e.ok) throw new Le();
|
|
2156
2156
|
return await e.json();
|
|
2157
2157
|
}
|
|
2158
2158
|
}
|
|
2159
|
-
class
|
|
2159
|
+
class Za extends lt {
|
|
2160
2160
|
isValid() {
|
|
2161
2161
|
let e;
|
|
2162
2162
|
try {
|
|
2163
2163
|
const t = this.client._fetch_blocking("/sessions/validate", { method: "GET" });
|
|
2164
2164
|
e = JSON.parse(t);
|
|
2165
2165
|
} catch (t) {
|
|
2166
|
-
throw new
|
|
2166
|
+
throw new Le(t);
|
|
2167
2167
|
}
|
|
2168
2168
|
return !!e && e.is_valid;
|
|
2169
2169
|
}
|
|
2170
2170
|
}
|
|
2171
|
-
class
|
|
2171
|
+
class Ja {
|
|
2172
2172
|
constructor(e) {
|
|
2173
2173
|
this.storageKey = void 0, this.defaultState = { expiration: 0, lastCheck: 0 }, this.storageKey = e;
|
|
2174
2174
|
}
|
|
@@ -2180,7 +2180,7 @@ class Ka {
|
|
|
2180
2180
|
window.localStorage.setItem(this.storageKey, JSON.stringify(e || this.defaultState));
|
|
2181
2181
|
}
|
|
2182
2182
|
}
|
|
2183
|
-
class
|
|
2183
|
+
class Ya {
|
|
2184
2184
|
constructor(e, t) {
|
|
2185
2185
|
this.onActivityCallback = void 0, this.onInactivityCallback = void 0, this.handleFocus = () => {
|
|
2186
2186
|
this.onActivityCallback();
|
|
@@ -2191,7 +2191,7 @@ class Va {
|
|
|
2191
2191
|
}, this.hasFocus = () => document.hasFocus(), this.onActivityCallback = e, this.onInactivityCallback = t, window.addEventListener("focus", this.handleFocus), window.addEventListener("blur", this.handleBlur), document.addEventListener("visibilitychange", this.handleVisibilityChange);
|
|
2192
2192
|
}
|
|
2193
2193
|
}
|
|
2194
|
-
class
|
|
2194
|
+
class Qa {
|
|
2195
2195
|
constructor(e, t, o) {
|
|
2196
2196
|
this.intervalID = null, this.timeoutID = null, this.checkInterval = void 0, this.checkSession = void 0, this.onSessionExpired = void 0, this.checkInterval = e, this.checkSession = t, this.onSessionExpired = o;
|
|
2197
2197
|
}
|
|
@@ -2228,7 +2228,7 @@ class Ba {
|
|
|
2228
2228
|
return this.checkInterval >= t ? this.checkInterval - t % this.checkInterval : 0;
|
|
2229
2229
|
}
|
|
2230
2230
|
}
|
|
2231
|
-
class
|
|
2231
|
+
class Ga {
|
|
2232
2232
|
constructor(e = "hanko_session", t, o, i) {
|
|
2233
2233
|
this.channel = void 0, this.onSessionExpired = void 0, this.onSessionCreated = void 0, this.onLeadershipRequested = void 0, this.handleMessage = (a) => {
|
|
2234
2234
|
const s = a.data;
|
|
@@ -2248,9 +2248,9 @@ class Za {
|
|
|
2248
2248
|
this.channel.postMessage(e);
|
|
2249
2249
|
}
|
|
2250
2250
|
}
|
|
2251
|
-
class
|
|
2251
|
+
class Xa extends Di {
|
|
2252
2252
|
constructor(e, t) {
|
|
2253
|
-
super(), this.listener = new On(), this.checkInterval = 3e4, this.client = void 0, this.sessionState = void 0, this.windowActivityManager = void 0, this.scheduler = void 0, this.sessionChannel = void 0, this.isLoggedIn = void 0, this.client = new fo(e, t), this.checkInterval = t.sessionCheckInterval, this.sessionState = new
|
|
2253
|
+
super(), this.listener = new On(), this.checkInterval = 3e4, this.client = void 0, this.sessionState = void 0, this.windowActivityManager = void 0, this.scheduler = void 0, this.sessionChannel = void 0, this.isLoggedIn = void 0, this.client = new fo(e, t), this.checkInterval = t.sessionCheckInterval, this.sessionState = new Ja(`${t.cookieName}_session_state`), this.sessionChannel = new Ga(this.getSessionCheckChannelName(t.sessionTokenLocation, t.sessionCheckChannelName), () => this.onChannelSessionExpired(), (a) => this.onChannelSessionCreated(a), () => this.onChannelLeadershipRequested()), this.scheduler = new Qa(this.checkInterval, () => this.checkSession(), () => this.onSessionExpired()), this.windowActivityManager = new Ya(() => this.startSessionCheck(), () => this.scheduler.stop());
|
|
2254
2254
|
const o = Date.now(), { expiration: i } = this.sessionState.load();
|
|
2255
2255
|
this.isLoggedIn = o < i, this.initializeEventListeners(), this.startSessionCheck();
|
|
2256
2256
|
}
|
|
@@ -2290,13 +2290,13 @@ class Ja extends Oi {
|
|
|
2290
2290
|
return o != null && o !== "" || (o = `${t}-${Math.floor(100 * Math.random()) + 1}`, sessionStorage.setItem("sessionCheckChannelName", o)), o;
|
|
2291
2291
|
}
|
|
2292
2292
|
}
|
|
2293
|
-
var mt, bt =
|
|
2293
|
+
var mt, bt = Ei("actionDefinitions"), Mn = Ei("createActionsProxy");
|
|
2294
2294
|
class Rn {
|
|
2295
2295
|
toJSON() {
|
|
2296
2296
|
return { name: this.name, payload: this.payload, error: this.error, status: this.status, csrf_token: this.csrf_token, actions: Un(this, bt)[bt] };
|
|
2297
2297
|
}
|
|
2298
2298
|
constructor({ name: e, payload: t, error: o, status: i, actions: a, csrf_token: s }, c) {
|
|
2299
|
-
Object.defineProperty(this, Mn, { value:
|
|
2299
|
+
Object.defineProperty(this, Mn, { value: er }), this.name = void 0, this.payload = void 0, this.error = void 0, this.status = void 0, this.csrf_token = void 0, Object.defineProperty(this, bt, { writable: !0, value: void 0 }), this.actions = void 0, this.fetchNextState = void 0, this.name = e, this.payload = t, this.error = o, this.status = i, this.csrf_token = s, Un(this, bt)[bt] = a, this.actions = Un(this, Mn)[Mn](a, s), this.fetchNextState = c;
|
|
2300
2300
|
}
|
|
2301
2301
|
runAction(e, t) {
|
|
2302
2302
|
const o = {};
|
|
@@ -2312,14 +2312,14 @@ class Rn {
|
|
|
2312
2312
|
validateAction(e) {
|
|
2313
2313
|
if ("inputs" in e) for (const t in e.inputs) {
|
|
2314
2314
|
let i = function(s, c, d, l) {
|
|
2315
|
-
throw new
|
|
2315
|
+
throw new Ni({ reason: s, inputName: t, wanted: d, actual: l, message: c });
|
|
2316
2316
|
};
|
|
2317
2317
|
const o = e.inputs[t], a = o.value;
|
|
2318
2318
|
o.required && !a && i(mt.Required, "is required"), (o.min_length != null || o.max_length != null) && ("length" in a || i(mt.InvalidInputDefinition, 'has min/max length requirement, but is missing "length" property', "string", typeof a), o.min_length != null && a < o.min_length && i(mt.MinLength, `too short (min ${o.min_length})`, o.min_length, a.length), o.max_length != null && a > o.max_length && i(mt.MaxLength, `too long (max ${o.max_length})`, o.max_length, a.length));
|
|
2319
2319
|
}
|
|
2320
2320
|
}
|
|
2321
2321
|
}
|
|
2322
|
-
function
|
|
2322
|
+
function er(n, e) {
|
|
2323
2323
|
const t = (i) => this.runAction(i, e), o = (i) => this.validateAction(i);
|
|
2324
2324
|
return new Proxy(n, { get(i, a) {
|
|
2325
2325
|
if (typeof a == "symbol") return i[a];
|
|
@@ -2329,7 +2329,7 @@ function Ya(n, e) {
|
|
|
2329
2329
|
try {
|
|
2330
2330
|
o(d);
|
|
2331
2331
|
} catch (l) {
|
|
2332
|
-
if (l instanceof
|
|
2332
|
+
if (l instanceof Ni) return l;
|
|
2333
2333
|
throw l;
|
|
2334
2334
|
}
|
|
2335
2335
|
}, run: () => t(d) });
|
|
@@ -2344,7 +2344,7 @@ function Ya(n, e) {
|
|
|
2344
2344
|
(function(n) {
|
|
2345
2345
|
n[n.InvalidInputDefinition = 0] = "InvalidInputDefinition", n[n.MinLength = 1] = "MinLength", n[n.MaxLength = 2] = "MaxLength", n[n.Required = 3] = "Required";
|
|
2346
2346
|
})(mt || (mt = {}));
|
|
2347
|
-
class
|
|
2347
|
+
class Ni extends Error {
|
|
2348
2348
|
constructor(e) {
|
|
2349
2349
|
super(`"${e.inputName}" ${e.message}`), this.reason = void 0, this.inputName = void 0, this.wanted = void 0, this.actual = void 0, this.name = "ValidationError", this.reason = e.reason, this.inputName = e.inputName, this.wanted = e.wanted, this.actual = e.actual;
|
|
2350
2350
|
}
|
|
@@ -2352,12 +2352,12 @@ class Li extends Error {
|
|
|
2352
2352
|
function Zo(n) {
|
|
2353
2353
|
return typeof n == "object" && n !== null && "status" in n && "error" in n && "name" in n && !!n.name && !!n.status;
|
|
2354
2354
|
}
|
|
2355
|
-
class
|
|
2355
|
+
class tr extends lt {
|
|
2356
2356
|
constructor(...e) {
|
|
2357
2357
|
var t;
|
|
2358
2358
|
super(...e), t = this, this.run = async function(o, i) {
|
|
2359
2359
|
try {
|
|
2360
|
-
if (!Zo(o)) throw new
|
|
2360
|
+
if (!Zo(o)) throw new nr(o);
|
|
2361
2361
|
const s = i[o.name];
|
|
2362
2362
|
if (!s) throw new vo(o);
|
|
2363
2363
|
let c = await s(o);
|
|
@@ -2393,21 +2393,21 @@ class Qa extends lt {
|
|
|
2393
2393
|
await this.run(i, t);
|
|
2394
2394
|
}
|
|
2395
2395
|
}
|
|
2396
|
-
class vo extends
|
|
2396
|
+
class vo extends Ce {
|
|
2397
2397
|
constructor(e) {
|
|
2398
2398
|
super("No handler found for state: " + (typeof e.name == "string" ? `"${e.name}"` : `(${typeof e.name})`), "handlerNotFoundError"), this.state = void 0, this.state = e, Object.setPrototypeOf(this, vo.prototype);
|
|
2399
2399
|
}
|
|
2400
2400
|
}
|
|
2401
|
-
class
|
|
2401
|
+
class nr extends Error {
|
|
2402
2402
|
constructor(e) {
|
|
2403
2403
|
super("Invalid state: " + (typeof e.name == "string" ? `"${e.name}"` : `(${typeof e.name})`)), this.state = void 0, this.state = e;
|
|
2404
2404
|
}
|
|
2405
2405
|
}
|
|
2406
|
-
class
|
|
2406
|
+
class Mi extends On {
|
|
2407
2407
|
constructor(e, t) {
|
|
2408
2408
|
super(), this.api = void 0, this.user = void 0, this.email = void 0, this.thirdParty = void 0, this.enterprise = void 0, this.token = void 0, this.sessionClient = void 0, this.session = void 0, this.relay = void 0, this.flow = void 0;
|
|
2409
2409
|
const o = { timeout: 13e3, cookieName: "hanko", localStorageKey: "hanko", sessionCheckInterval: 3e4, sessionCheckChannelName: "hanko-session-check", sessionTokenLocation: "cookie" };
|
|
2410
|
-
(t == null ? void 0 : t.cookieName) !== void 0 && (o.cookieName = t.cookieName), (t == null ? void 0 : t.timeout) !== void 0 && (o.timeout = t.timeout), (t == null ? void 0 : t.localStorageKey) !== void 0 && (o.localStorageKey = t.localStorageKey), (t == null ? void 0 : t.cookieDomain) !== void 0 && (o.cookieDomain = t.cookieDomain), (t == null ? void 0 : t.cookieSameSite) !== void 0 && (o.cookieSameSite = t.cookieSameSite), (t == null ? void 0 : t.lang) !== void 0 && (o.lang = t.lang), (t == null ? void 0 : t.sessionCheckInterval) !== void 0 && (o.sessionCheckInterval = t.sessionCheckInterval < 3e3 ? 3e3 : t.sessionCheckInterval), (t == null ? void 0 : t.sessionCheckChannelName) !== void 0 && (o.sessionCheckChannelName = t.sessionCheckChannelName), (t == null ? void 0 : t.sessionTokenLocation) !== void 0 && (o.sessionTokenLocation = t.sessionTokenLocation), this.api = e, this.user = new
|
|
2410
|
+
(t == null ? void 0 : t.cookieName) !== void 0 && (o.cookieName = t.cookieName), (t == null ? void 0 : t.timeout) !== void 0 && (o.timeout = t.timeout), (t == null ? void 0 : t.localStorageKey) !== void 0 && (o.localStorageKey = t.localStorageKey), (t == null ? void 0 : t.cookieDomain) !== void 0 && (o.cookieDomain = t.cookieDomain), (t == null ? void 0 : t.cookieSameSite) !== void 0 && (o.cookieSameSite = t.cookieSameSite), (t == null ? void 0 : t.lang) !== void 0 && (o.lang = t.lang), (t == null ? void 0 : t.sessionCheckInterval) !== void 0 && (o.sessionCheckInterval = t.sessionCheckInterval < 3e3 ? 3e3 : t.sessionCheckInterval), (t == null ? void 0 : t.sessionCheckChannelName) !== void 0 && (o.sessionCheckChannelName = t.sessionCheckChannelName), (t == null ? void 0 : t.sessionTokenLocation) !== void 0 && (o.sessionTokenLocation = t.sessionTokenLocation), this.api = e, this.user = new Li(e, o), this.email = new $i(e, o), this.thirdParty = new Ti(e, o), this.enterprise = new ji(e, o), this.token = new Ui(e, o), this.sessionClient = new fo(e, o), this.session = new Za(e, o), this.relay = new Xa(e, o), this.flow = new tr(e, o);
|
|
2411
2411
|
}
|
|
2412
2412
|
setLang(e) {
|
|
2413
2413
|
this.flow.client.lang = e;
|
|
@@ -2427,16 +2427,16 @@ class gt {
|
|
|
2427
2427
|
return !(!window.PublicKeyCredential || !window.PublicKeyCredential.isConditionalMediationAvailable) && window.PublicKeyCredential.isConditionalMediationAvailable();
|
|
2428
2428
|
}
|
|
2429
2429
|
}
|
|
2430
|
-
var
|
|
2430
|
+
var or = G(292), et = G.n(or), ir = G(360), tt = G.n(ir), ar = G(884), nt = G.n(ar), rr = G(88), ot = G.n(rr), rn = G(914), kt = {};
|
|
2431
2431
|
kt.setAttributes = nt(), kt.insert = (n) => {
|
|
2432
2432
|
window._hankoStyle = n;
|
|
2433
2433
|
}, kt.domAPI = tt(), kt.insertStyleElement = ot(), et()(rn.A, kt);
|
|
2434
|
-
const zt = rn.A && rn.A.locals ? rn.A.locals : void 0,
|
|
2434
|
+
const zt = rn.A && rn.A.locals ? rn.A.locals : void 0, sr = function(n) {
|
|
2435
2435
|
function e(t) {
|
|
2436
|
-
var o =
|
|
2436
|
+
var o = bi({}, t);
|
|
2437
2437
|
return delete o.ref, n(o, t.ref || null);
|
|
2438
2438
|
}
|
|
2439
|
-
return e.$$typeof =
|
|
2439
|
+
return e.$$typeof = Ca, e.render = e, e.prototype.isReactComponent = e.__f = !0, e.displayName = "ForwardRef(" + (n.displayName || n.name) + ")", e;
|
|
2440
2440
|
}((n, e) => {
|
|
2441
2441
|
const { lang: t, hanko: o, setHanko: i } = (0, _.useContext)(pe), { setLang: a } = (0, _.useContext)(Z.TranslateContext);
|
|
2442
2442
|
return (0, _.useEffect)(() => {
|
|
@@ -2448,8 +2448,8 @@ wt.setAttributes = nt(), wt.insert = (n) => {
|
|
|
2448
2448
|
window._hankoStyle = n;
|
|
2449
2449
|
}, wt.domAPI = tt(), wt.insertStyleElement = ot(), et()(sn.A, wt);
|
|
2450
2450
|
const L = sn.A && sn.A.locals ? sn.A.locals : void 0;
|
|
2451
|
-
var
|
|
2452
|
-
const ar = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ id: "icon-apple", xmlns: "http://www.w3.org/2000/svg", width: n, height: n, viewBox: "20.5 16 15 19", className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: r("path", { d: "M28.2226562,20.3846154 C29.0546875,20.3846154 30.0976562,19.8048315 30.71875,19.0317864 C31.28125,18.3312142 31.6914062,17.352829 31.6914062,16.3744437 C31.6914062,16.2415766 31.6796875,16.1087095 31.65625,16 C30.7304687,16.0362365 29.6171875,16.640178 28.9492187,17.4494596 C28.421875,18.06548 27.9414062,19.0317864 27.9414062,20.0222505 C27.9414062,20.1671964 27.9648438,20.3121424 27.9765625,20.3604577 C28.0351562,20.3725366 28.1289062,20.3846154 28.2226562,20.3846154 Z M25.2929688,35 C26.4296875,35 26.9335938,34.214876 28.3515625,34.214876 C29.7929688,34.214876 30.109375,34.9758423 31.375,34.9758423 C32.6171875,34.9758423 33.4492188,33.792117 34.234375,32.6325493 C35.1132812,31.3038779 35.4765625,29.9993643 35.5,29.9389701 C35.4179688,29.9148125 33.0390625,28.9122695 33.0390625,26.0979021 C33.0390625,23.6579784 34.9140625,22.5588048 35.0195312,22.474253 C33.7773438,20.6382708 31.890625,20.5899555 31.375,20.5899555 C29.9804688,20.5899555 28.84375,21.4596313 28.1289062,21.4596313 C27.3554688,21.4596313 26.3359375,20.6382708 25.1289062,20.6382708 C22.8320312,20.6382708 20.5,22.5950413 20.5,26.2911634 C20.5,28.5861411 21.3671875,31.013986 22.4335938,32.5842339 C23.3476562,33.9129053 24.1445312,35 25.2929688,35 Z" }) })), rr = ({ secondary: n, size: e, fadeOut: t, disabled: o }) => r("svg", Object.assign({ id: "icon-checkmark", xmlns: "http://www.w3.org/2000/svg", viewBox: "4 4 40 40", width: e, height: e, className: Y()(L.checkmark, n && L.secondary, t && L.fadeOut, o && L.disabled) }, { children: r("path", { d: "M21.05 33.1 35.2 18.95l-2.3-2.25-11.85 11.85-6-6-2.25 2.25ZM24 44q-4.1 0-7.75-1.575-3.65-1.575-6.375-4.3-2.725-2.725-4.3-6.375Q4 28.1 4 24q0-4.15 1.575-7.8 1.575-3.65 4.3-6.35 2.725-2.7 6.375-4.275Q19.9 4 24 4q4.15 0 7.8 1.575 3.65 1.575 6.35 4.275 2.7 2.7 4.275 6.35Q44 19.85 44 24q0 4.1-1.575 7.75-1.575 3.65-4.275 6.375t-6.35 4.3Q28.15 44 24 44Zm0-3q7.1 0 12.05-4.975Q41 31.05 41 24q0-7.1-4.95-12.05Q31.1 7 24 7q-7.05 0-12.025 4.95Q7 16.9 7 24q0 7.05 4.975 12.025Q16.95 41 24 41Zm0-17Z" }) })), sr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 -960 960 960", width: n, height: n, className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: r("path", { d: "M360-240q-33 0-56.5-23.5T280-320v-480q0-33 23.5-56.5T360-880h360q33 0 56.5 23.5T800-800v480q0 33-23.5 56.5T720-240H360Zm0-80h360v-480H360v480ZM200-80q-33 0-56.5-23.5T120-160v-560h80v560h440v80H200Zm160-240v-480 480Z" }) })), lr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ id: "icon-custom-provider", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: n, height: n, className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: [r("path", { d: "M0 0h24v24H0z", fill: "none" }), r("path", { d: "M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z" })] })), cr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ id: "icon-discord", fill: "#fff", xmlns: "http://www.w3.org/2000/svg", width: n, height: n, viewBox: "0 0 127.14 96.36", className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: r("path", { d: "M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z" }) })), dr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ id: "icon-exclamation", xmlns: "http://www.w3.org/2000/svg", viewBox: "5 2 13 20", width: n, height: n, className: Y()(L.exclamationMark, e && L.secondary, t && L.disabled) }, { children: r("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z" }) })), ur = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ width: n, height: n, viewBox: "0 0 666.66668 666.66717", xmlns: "http://www.w3.org/2000/svg" }, { children: [r("defs", Object.assign({ id: "defs13" }, { children: r("clipPath", Object.assign({ clipPathUnits: "userSpaceOnUse", id: "clipPath25" }, { children: r("path", { d: "M 0,700 H 700 V 0 H 0 Z", id: "path23" }) })) })), r("g", Object.assign({ id: "g17", transform: "matrix(1.3333333,0,0,-1.3333333,-133.33333,799.99999)" }, { children: r("g", Object.assign({ id: "g19" }, { children: r("g", Object.assign({ id: "g21", clipPath: "url(#clipPath25)" }, { children: [r("g", Object.assign({ id: "g27", transform: "translate(600,350)" }, { children: r("path", { className: Y()(L.facebookIcon, t ? L.disabledOutline : L.outline), d: "m 0,0 c 0,138.071 -111.929,250 -250,250 -138.071,0 -250,-111.929 -250,-250 0,-117.245 80.715,-215.622 189.606,-242.638 v 166.242 h -51.552 V 0 h 51.552 v 32.919 c 0,85.092 38.508,124.532 122.048,124.532 15.838,0 43.167,-3.105 54.347,-6.211 V 81.986 c -5.901,0.621 -16.149,0.932 -28.882,0.932 -40.993,0 -56.832,-15.528 -56.832,-55.9 V 0 h 81.659 l -14.028,-76.396 h -67.631 V -248.169 C -95.927,-233.218 0,-127.818 0,0", id: "path29" }) })), r("g", Object.assign({ id: "g31", transform: "translate(447.9175,273.6036)" }, { children: r("path", { className: Y()(L.facebookIcon, t ? L.disabledLetter : L.letter), d: "M 0,0 14.029,76.396 H -67.63 v 27.019 c 0,40.372 15.838,55.899 56.831,55.899 12.733,0 22.981,-0.31 28.882,-0.931 v 69.253 c -11.18,3.106 -38.509,6.212 -54.347,6.212 -83.539,0 -122.048,-39.441 -122.048,-124.533 V 76.396 h -51.552 V 0 h 51.552 v -166.242 c 19.343,-4.798 39.568,-7.362 60.394,-7.362 10.254,0 20.358,0.632 30.288,1.831 L -67.63,0 Z", id: "path33" }) }))] })) })) }))] })), hr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ id: "icon-github", xmlns: "http://www.w3.org/2000/svg", fill: "#fff", viewBox: "0 0 97.63 96", width: n, height: n, className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: [r("path", { d: "M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z" }), " "] })), pr = ({ size: n, disabled: e }) => r("svg", Object.assign({ id: "icon-google", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: n, height: n, className: L.googleIcon }, { children: [r("path", { className: Y()(L.googleIcon, e ? L.disabled : L.blue), d: "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z" }), r("path", { className: Y()(L.googleIcon, e ? L.disabled : L.green), d: "M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z" }), r("path", { className: Y()(L.googleIcon, e ? L.disabled : L.yellow), d: "M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z" }), r("path", { className: Y()(L.googleIcon, e ? L.disabled : L.red), d: "M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z" }), r("path", { d: "M1 1h22v22H1z", fill: "none" })] })), mr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ id: "icon-linkedin", fill: "#fff", xmlns: "http://www.w3.org/2000/svg", width: n, viewBox: "0 0 24 24", height: n, className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: r("path", { d: "M20.5 2h-17A1.5 1.5 0 002 3.5v17A1.5 1.5 0 003.5 22h17a1.5 1.5 0 001.5-1.5v-17A1.5 1.5 0 0020.5 2zM8 19H5v-9h3zM6.5 8.25A1.75 1.75 0 118.3 6.5a1.78 1.78 0 01-1.8 1.75zM19 19h-3v-4.74c0-1.42-.6-1.93-1.38-1.93A1.74 1.74 0 0013 14.19a.66.66 0 000 .14V19h-3v-9h2.9v1.3a3.11 3.11 0 012.7-1.4c1.55 0 3.36.86 3.36 3.66z" }) })), gr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ id: "icon-mail", xmlns: "http://www.w3.org/2000/svg", width: n, height: n, viewBox: "0 -960 960 960", className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: r("path", { d: "M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm320-280L160-640v400h640v-400L480-440Zm0-80 320-200H160l320 200ZM160-640v-80 480-400Z" }) })), fr = ({ size: n, disabled: e }) => r("svg", Object.assign({ id: "icon-microsoft", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: n, height: n, className: L.microsoftIcon }, { children: [r("rect", { className: Y()(L.microsoftIcon, e ? L.disabled : L.blue), x: "1", y: "1", width: "9", height: "9" }), r("rect", { className: Y()(L.microsoftIcon, e ? L.disabled : L.green), x: "1", y: "11", width: "9", height: "9" }), r("rect", { className: Y()(L.microsoftIcon, e ? L.disabled : L.yellow), x: "11", y: "1", width: "9", height: "9" }), r("rect", { className: Y()(L.microsoftIcon, e ? L.disabled : L.red), x: "11", y: "11", width: "9", height: "9" })] })), vr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ id: "icon-passkey", xmlns: "http://www.w3.org/2000/svg", viewBox: "3 1.5 19.5 19", width: n, height: n, className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: r("g", Object.assign({ id: "icon-passkey-all" }, { children: [r("circle", { id: "icon-passkey-head", cx: "10.5", cy: "6", r: "4.5" }), r("path", { id: "icon-passkey-key", d: "M22.5,10.5a3.5,3.5,0,1,0-5,3.15V19L19,20.5,21.5,18,20,16.5,21.5,15l-1.24-1.24A3.5,3.5,0,0,0,22.5,10.5Zm-3.5,0a1,1,0,1,1,1-1A1,1,0,0,1,19,10.5Z" }), r("path", { id: "icon-passkey-body", d: "M14.44,12.52A6,6,0,0,0,12,12H9a6,6,0,0,0-6,6v2H16V14.49A5.16,5.16,0,0,1,14.44,12.52Z" })] })) })), _r = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ id: "icon-password", xmlns: "http://www.w3.org/2000/svg", width: n, height: n, viewBox: "0 -960 960 960", className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: r("path", { d: "M80-200v-80h800v80H80Zm46-242-52-30 34-60H40v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Zm320 0-52-30 34-60h-68v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Zm320 0-52-30 34-60h-68v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Z" }) })), yr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 -960 960 960", width: n, height: n, className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: r("path", { d: "M80-680v-200h200v80H160v120H80Zm0 600v-200h80v120h120v80H80Zm600 0v-80h120v-120h80v200H680Zm120-600v-120H680v-80h200v200h-80ZM700-260h60v60h-60v-60Zm0-120h60v60h-60v-60Zm-60 60h60v60h-60v-60Zm-60 60h60v60h-60v-60Zm-60-60h60v60h-60v-60Zm120-120h60v60h-60v-60Zm-60 60h60v60h-60v-60Zm-60-60h60v60h-60v-60Zm240-320v240H520v-240h240ZM440-440v240H200v-240h240Zm0-320v240H200v-240h240Zm-60 500v-120H260v120h120Zm0-320v-120H260v120h120Zm320 0v-120H580v120h120Z" }) })), br = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 -960 960 960", width: n, height: n, className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: r("path", { d: "M280-240q-100 0-170-70T40-480q0-100 70-170t170-70q66 0 121 33t87 87h432v240h-80v120H600v-120H488q-32 54-87 87t-121 33Zm0-80q66 0 106-40.5t48-79.5h246v120h80v-120h80v-80H434q-8-39-48-79.5T280-640q-66 0-113 47t-47 113q0 66 47 113t113 47Zm0-80q33 0 56.5-23.5T360-480q0-33-23.5-56.5T280-560q-33 0-56.5 23.5T200-480q0 33 23.5 56.5T280-400Zm0-80Z" }) })), kr = ({ size: n, disabled: e }) => r("svg", Object.assign({ id: "icon-spinner", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: n, height: n, className: Y()(L.loadingSpinner, e && L.disabled) }, { children: [r("path", { d: "M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z", opacity: ".25" }), r("path", { d: "M10.72,19.9a8,8,0,0,1-6.5-9.79A7.77,7.77,0,0,1,10.4,4.16a8,8,0,0,1,9.49,6.52A1.54,1.54,0,0,0,21.38,12h.13a1.37,1.37,0,0,0,1.38-1.54,11,11,0,1,0-12.7,12.39A1.54,1.54,0,0,0,12,21.34h0A1.47,1.47,0,0,0,10.72,19.9Z" })] })), Ht = ({ name: n, secondary: e, size: t = 18, fadeOut: o, disabled: i }) => r(Zn[n], { size: t, secondary: e, fadeOut: o, disabled: i }), _o = ({ children: n, isLoading: e, isSuccess: t, fadeOut: o, secondary: i, hasIcon: a, maxWidth: s }) => r(C.Fragment, { children: r("div", e ? Object.assign({ className: Y()(L.loadingSpinnerWrapper, L.centerContent, s && L.maxWidth) }, { children: r(Ht, { name: "spinner", secondary: i }) }) : t ? Object.assign({ className: Y()(L.loadingSpinnerWrapper, L.centerContent, s && L.maxWidth) }, { children: r(Ht, { name: "checkmark", secondary: i, fadeOut: o }) }) : Object.assign({ className: a ? L.loadingSpinnerWrapperIcon : L.loadingSpinnerWrapper }, { children: n })) }), wr = () => {
|
|
2451
|
+
var lr = G(633), Y = G.n(lr);
|
|
2452
|
+
const cr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ id: "icon-apple", xmlns: "http://www.w3.org/2000/svg", width: n, height: n, viewBox: "20.5 16 15 19", className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: r("path", { d: "M28.2226562,20.3846154 C29.0546875,20.3846154 30.0976562,19.8048315 30.71875,19.0317864 C31.28125,18.3312142 31.6914062,17.352829 31.6914062,16.3744437 C31.6914062,16.2415766 31.6796875,16.1087095 31.65625,16 C30.7304687,16.0362365 29.6171875,16.640178 28.9492187,17.4494596 C28.421875,18.06548 27.9414062,19.0317864 27.9414062,20.0222505 C27.9414062,20.1671964 27.9648438,20.3121424 27.9765625,20.3604577 C28.0351562,20.3725366 28.1289062,20.3846154 28.2226562,20.3846154 Z M25.2929688,35 C26.4296875,35 26.9335938,34.214876 28.3515625,34.214876 C29.7929688,34.214876 30.109375,34.9758423 31.375,34.9758423 C32.6171875,34.9758423 33.4492188,33.792117 34.234375,32.6325493 C35.1132812,31.3038779 35.4765625,29.9993643 35.5,29.9389701 C35.4179688,29.9148125 33.0390625,28.9122695 33.0390625,26.0979021 C33.0390625,23.6579784 34.9140625,22.5588048 35.0195312,22.474253 C33.7773438,20.6382708 31.890625,20.5899555 31.375,20.5899555 C29.9804688,20.5899555 28.84375,21.4596313 28.1289062,21.4596313 C27.3554688,21.4596313 26.3359375,20.6382708 25.1289062,20.6382708 C22.8320312,20.6382708 20.5,22.5950413 20.5,26.2911634 C20.5,28.5861411 21.3671875,31.013986 22.4335938,32.5842339 C23.3476562,33.9129053 24.1445312,35 25.2929688,35 Z" }) })), dr = ({ secondary: n, size: e, fadeOut: t, disabled: o }) => r("svg", Object.assign({ id: "icon-checkmark", xmlns: "http://www.w3.org/2000/svg", viewBox: "4 4 40 40", width: e, height: e, className: Y()(L.checkmark, n && L.secondary, t && L.fadeOut, o && L.disabled) }, { children: r("path", { d: "M21.05 33.1 35.2 18.95l-2.3-2.25-11.85 11.85-6-6-2.25 2.25ZM24 44q-4.1 0-7.75-1.575-3.65-1.575-6.375-4.3-2.725-2.725-4.3-6.375Q4 28.1 4 24q0-4.15 1.575-7.8 1.575-3.65 4.3-6.35 2.725-2.7 6.375-4.275Q19.9 4 24 4q4.15 0 7.8 1.575 3.65 1.575 6.35 4.275 2.7 2.7 4.275 6.35Q44 19.85 44 24q0 4.1-1.575 7.75-1.575 3.65-4.275 6.375t-6.35 4.3Q28.15 44 24 44Zm0-3q7.1 0 12.05-4.975Q41 31.05 41 24q0-7.1-4.95-12.05Q31.1 7 24 7q-7.05 0-12.025 4.95Q7 16.9 7 24q0 7.05 4.975 12.025Q16.95 41 24 41Zm0-17Z" }) })), ur = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 -960 960 960", width: n, height: n, className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: r("path", { d: "M360-240q-33 0-56.5-23.5T280-320v-480q0-33 23.5-56.5T360-880h360q33 0 56.5 23.5T800-800v480q0 33-23.5 56.5T720-240H360Zm0-80h360v-480H360v480ZM200-80q-33 0-56.5-23.5T120-160v-560h80v560h440v80H200Zm160-240v-480 480Z" }) })), hr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ id: "icon-custom-provider", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: n, height: n, className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: [r("path", { d: "M0 0h24v24H0z", fill: "none" }), r("path", { d: "M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z" })] })), pr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ id: "icon-discord", fill: "#fff", xmlns: "http://www.w3.org/2000/svg", width: n, height: n, viewBox: "0 0 127.14 96.36", className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: r("path", { d: "M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z" }) })), mr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ id: "icon-exclamation", xmlns: "http://www.w3.org/2000/svg", viewBox: "5 2 13 20", width: n, height: n, className: Y()(L.exclamationMark, e && L.secondary, t && L.disabled) }, { children: r("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z" }) })), gr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ width: n, height: n, viewBox: "0 0 666.66668 666.66717", xmlns: "http://www.w3.org/2000/svg" }, { children: [r("defs", Object.assign({ id: "defs13" }, { children: r("clipPath", Object.assign({ clipPathUnits: "userSpaceOnUse", id: "clipPath25" }, { children: r("path", { d: "M 0,700 H 700 V 0 H 0 Z", id: "path23" }) })) })), r("g", Object.assign({ id: "g17", transform: "matrix(1.3333333,0,0,-1.3333333,-133.33333,799.99999)" }, { children: r("g", Object.assign({ id: "g19" }, { children: r("g", Object.assign({ id: "g21", clipPath: "url(#clipPath25)" }, { children: [r("g", Object.assign({ id: "g27", transform: "translate(600,350)" }, { children: r("path", { className: Y()(L.facebookIcon, t ? L.disabledOutline : L.outline), d: "m 0,0 c 0,138.071 -111.929,250 -250,250 -138.071,0 -250,-111.929 -250,-250 0,-117.245 80.715,-215.622 189.606,-242.638 v 166.242 h -51.552 V 0 h 51.552 v 32.919 c 0,85.092 38.508,124.532 122.048,124.532 15.838,0 43.167,-3.105 54.347,-6.211 V 81.986 c -5.901,0.621 -16.149,0.932 -28.882,0.932 -40.993,0 -56.832,-15.528 -56.832,-55.9 V 0 h 81.659 l -14.028,-76.396 h -67.631 V -248.169 C -95.927,-233.218 0,-127.818 0,0", id: "path29" }) })), r("g", Object.assign({ id: "g31", transform: "translate(447.9175,273.6036)" }, { children: r("path", { className: Y()(L.facebookIcon, t ? L.disabledLetter : L.letter), d: "M 0,0 14.029,76.396 H -67.63 v 27.019 c 0,40.372 15.838,55.899 56.831,55.899 12.733,0 22.981,-0.31 28.882,-0.931 v 69.253 c -11.18,3.106 -38.509,6.212 -54.347,6.212 -83.539,0 -122.048,-39.441 -122.048,-124.533 V 76.396 h -51.552 V 0 h 51.552 v -166.242 c 19.343,-4.798 39.568,-7.362 60.394,-7.362 10.254,0 20.358,0.632 30.288,1.831 L -67.63,0 Z", id: "path33" }) }))] })) })) }))] })), fr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ id: "icon-github", xmlns: "http://www.w3.org/2000/svg", fill: "#fff", viewBox: "0 0 97.63 96", width: n, height: n, className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: [r("path", { d: "M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z" }), " "] })), vr = ({ size: n, disabled: e }) => r("svg", Object.assign({ id: "icon-google", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: n, height: n, className: L.googleIcon }, { children: [r("path", { className: Y()(L.googleIcon, e ? L.disabled : L.blue), d: "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z" }), r("path", { className: Y()(L.googleIcon, e ? L.disabled : L.green), d: "M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z" }), r("path", { className: Y()(L.googleIcon, e ? L.disabled : L.yellow), d: "M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z" }), r("path", { className: Y()(L.googleIcon, e ? L.disabled : L.red), d: "M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z" }), r("path", { d: "M1 1h22v22H1z", fill: "none" })] })), _r = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ id: "icon-linkedin", fill: "#fff", xmlns: "http://www.w3.org/2000/svg", width: n, viewBox: "0 0 24 24", height: n, className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: r("path", { d: "M20.5 2h-17A1.5 1.5 0 002 3.5v17A1.5 1.5 0 003.5 22h17a1.5 1.5 0 001.5-1.5v-17A1.5 1.5 0 0020.5 2zM8 19H5v-9h3zM6.5 8.25A1.75 1.75 0 118.3 6.5a1.78 1.78 0 01-1.8 1.75zM19 19h-3v-4.74c0-1.42-.6-1.93-1.38-1.93A1.74 1.74 0 0013 14.19a.66.66 0 000 .14V19h-3v-9h2.9v1.3a3.11 3.11 0 012.7-1.4c1.55 0 3.36.86 3.36 3.66z" }) })), yr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ id: "icon-mail", xmlns: "http://www.w3.org/2000/svg", width: n, height: n, viewBox: "0 -960 960 960", className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: r("path", { d: "M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm320-280L160-640v400h640v-400L480-440Zm0-80 320-200H160l320 200ZM160-640v-80 480-400Z" }) })), br = ({ size: n, disabled: e }) => r("svg", Object.assign({ id: "icon-microsoft", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: n, height: n, className: L.microsoftIcon }, { children: [r("rect", { className: Y()(L.microsoftIcon, e ? L.disabled : L.blue), x: "1", y: "1", width: "9", height: "9" }), r("rect", { className: Y()(L.microsoftIcon, e ? L.disabled : L.green), x: "1", y: "11", width: "9", height: "9" }), r("rect", { className: Y()(L.microsoftIcon, e ? L.disabled : L.yellow), x: "11", y: "1", width: "9", height: "9" }), r("rect", { className: Y()(L.microsoftIcon, e ? L.disabled : L.red), x: "11", y: "11", width: "9", height: "9" })] })), kr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ id: "icon-passkey", xmlns: "http://www.w3.org/2000/svg", viewBox: "3 1.5 19.5 19", width: n, height: n, className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: r("g", Object.assign({ id: "icon-passkey-all" }, { children: [r("circle", { id: "icon-passkey-head", cx: "10.5", cy: "6", r: "4.5" }), r("path", { id: "icon-passkey-key", d: "M22.5,10.5a3.5,3.5,0,1,0-5,3.15V19L19,20.5,21.5,18,20,16.5,21.5,15l-1.24-1.24A3.5,3.5,0,0,0,22.5,10.5Zm-3.5,0a1,1,0,1,1,1-1A1,1,0,0,1,19,10.5Z" }), r("path", { id: "icon-passkey-body", d: "M14.44,12.52A6,6,0,0,0,12,12H9a6,6,0,0,0-6,6v2H16V14.49A5.16,5.16,0,0,1,14.44,12.52Z" })] })) })), wr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ id: "icon-password", xmlns: "http://www.w3.org/2000/svg", width: n, height: n, viewBox: "0 -960 960 960", className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: r("path", { d: "M80-200v-80h800v80H80Zm46-242-52-30 34-60H40v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Zm320 0-52-30 34-60h-68v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Zm320 0-52-30 34-60h-68v-60h68l-34-58 52-30 34 58 34-58 52 30-34 58h68v60h-68l34 60-52 30-34-60-34 60Z" }) })), Sr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 -960 960 960", width: n, height: n, className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: r("path", { d: "M80-680v-200h200v80H160v120H80Zm0 600v-200h80v120h120v80H80Zm600 0v-80h120v-120h80v200H680Zm120-600v-120H680v-80h200v200h-80ZM700-260h60v60h-60v-60Zm0-120h60v60h-60v-60Zm-60 60h60v60h-60v-60Zm-60 60h60v60h-60v-60Zm-60-60h60v60h-60v-60Zm120-120h60v60h-60v-60Zm-60 60h60v60h-60v-60Zm-60-60h60v60h-60v-60Zm240-320v240H520v-240h240ZM440-440v240H200v-240h240Zm0-320v240H200v-240h240Zm-60 500v-120H260v120h120Zm0-320v-120H260v120h120Zm320 0v-120H580v120h120Z" }) })), xr = ({ size: n, secondary: e, disabled: t }) => r("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", viewBox: "0 -960 960 960", width: n, height: n, className: Y()(L.icon, e && L.secondary, t && L.disabled) }, { children: r("path", { d: "M280-240q-100 0-170-70T40-480q0-100 70-170t170-70q66 0 121 33t87 87h432v240h-80v120H600v-120H488q-32 54-87 87t-121 33Zm0-80q66 0 106-40.5t48-79.5h246v120h80v-120h80v-80H434q-8-39-48-79.5T280-640q-66 0-113 47t-47 113q0 66 47 113t113 47Zm0-80q33 0 56.5-23.5T360-480q0-33-23.5-56.5T280-560q-33 0-56.5 23.5T200-480q0 33 23.5 56.5T280-400Zm0-80Z" }) })), Ar = ({ size: n, disabled: e }) => r("svg", Object.assign({ id: "icon-spinner", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: n, height: n, className: Y()(L.loadingSpinner, e && L.disabled) }, { children: [r("path", { d: "M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z", opacity: ".25" }), r("path", { d: "M10.72,19.9a8,8,0,0,1-6.5-9.79A7.77,7.77,0,0,1,10.4,4.16a8,8,0,0,1,9.49,6.52A1.54,1.54,0,0,0,21.38,12h.13a1.37,1.37,0,0,0,1.38-1.54,11,11,0,1,0-12.7,12.39A1.54,1.54,0,0,0,12,21.34h0A1.47,1.47,0,0,0,10.72,19.9Z" })] })), Ht = ({ name: n, secondary: e, size: t = 18, fadeOut: o, disabled: i }) => r(Zn[n], { size: t, secondary: e, fadeOut: o, disabled: i }), _o = ({ children: n, isLoading: e, isSuccess: t, fadeOut: o, secondary: i, hasIcon: a, maxWidth: s }) => r(C.Fragment, { children: r("div", e ? Object.assign({ className: Y()(L.loadingSpinnerWrapper, L.centerContent, s && L.maxWidth) }, { children: r(Ht, { name: "spinner", secondary: i }) }) : t ? Object.assign({ className: Y()(L.loadingSpinnerWrapper, L.centerContent, s && L.maxWidth) }, { children: r(Ht, { name: "checkmark", secondary: i, fadeOut: o }) }) : Object.assign({ className: a ? L.loadingSpinnerWrapperIcon : L.loadingSpinnerWrapper }, { children: n })) }), Cr = () => {
|
|
2453
2453
|
const { setLoadingAction: n } = (0, _.useContext)(pe);
|
|
2454
2454
|
return (0, _.useEffect)(() => {
|
|
2455
2455
|
n(null);
|
|
@@ -2464,9 +2464,9 @@ var ln = G(577), St = {};
|
|
|
2464
2464
|
St.setAttributes = nt(), St.insert = (n) => {
|
|
2465
2465
|
window._hankoStyle = n;
|
|
2466
2466
|
}, St.domAPI = tt(), St.insertStyleElement = ot(), et()(ln.A, St);
|
|
2467
|
-
const
|
|
2467
|
+
const Oe = ln.A && ln.A.locals ? ln.A.locals : void 0, Or = () => {
|
|
2468
2468
|
const { t: n } = (0, _.useContext)(Z.TranslateContext);
|
|
2469
|
-
return r("span", Object.assign({ className: Y()(
|
|
2469
|
+
return r("span", Object.assign({ className: Y()(Oe.lastUsed) }, { children: n("labels.lastUsed") }));
|
|
2470
2470
|
}, ne = (n) => {
|
|
2471
2471
|
var { uiAction: e, title: t, children: o, secondary: i, dangerous: a, autofocus: s, showLastUsed: c, onClick: d, icon: l } = n, u = function(S, P) {
|
|
2472
2472
|
var j = {};
|
|
@@ -2483,7 +2483,7 @@ const Ce = ln.A && ln.A.locals ? ln.A.locals : void 0, Sr = () => {
|
|
|
2483
2483
|
S && s && S.focus();
|
|
2484
2484
|
}, [s]);
|
|
2485
2485
|
const x = (0, _.useMemo)(() => e && f.loadingAction === e || u.isLoading, [u, e, f]), O = (0, _.useMemo)(() => e && f.succeededAction === e || u.isSuccess, [u, e, f]), A = (0, _.useMemo)(() => m || u.disabled, [u, m]);
|
|
2486
|
-
return r("button", Object.assign({ part: a ? "button dangerous-button" : i ? "button secondary-button" : "button primary-button", title: t, ref: h, type: "submit", disabled: A, onClick: d, className: Y()(
|
|
2486
|
+
return r("button", Object.assign({ part: a ? "button dangerous-button" : i ? "button secondary-button" : "button primary-button", title: t, ref: h, type: "submit", disabled: A, onClick: d, className: Y()(Oe.button, a ? Oe.dangerous : i ? Oe.secondary : Oe.primary) }, { children: r(_o, Object.assign({ isLoading: x, isSuccess: O, secondary: !0, hasIcon: !!l, maxWidth: !0 }, { children: [l ? r(Ht, { name: l, secondary: i, disabled: A }) : null, r("div", Object.assign({ className: Oe.caption }, { children: [r("span", { children: o }), c ? r(Or, {}) : null] }))] })) }));
|
|
2487
2487
|
}, Ve = (n) => {
|
|
2488
2488
|
var e, t, o, i, a, { label: s } = n, c = function(m, x) {
|
|
2489
2489
|
var O = {};
|
|
@@ -2503,18 +2503,18 @@ const Ce = ln.A && ln.A.locals ? ln.A.locals : void 0, Sr = () => {
|
|
|
2503
2503
|
var m;
|
|
2504
2504
|
return c.markOptional && !(!((m = c.flowInput) === null || m === void 0) && m.required) ? `${c.placeholder} (${u("labels.optional")})` : c.placeholder;
|
|
2505
2505
|
}, [c.markOptional, c.placeholder, c.flowInput, u]);
|
|
2506
|
-
return r("div", Object.assign({ className:
|
|
2507
|
-
},
|
|
2506
|
+
return r("div", Object.assign({ className: Oe.inputWrapper }, { children: r("input", Object.assign({ part: "input text-input", required: (e = c.flowInput) === null || e === void 0 ? void 0 : e.required, maxLength: (t = c.flowInput) === null || t === void 0 ? void 0 : t.max_length, minLength: (o = c.flowInput) === null || o === void 0 ? void 0 : o.min_length, hidden: (i = c.flowInput) === null || i === void 0 ? void 0 : i.hidden }, c, { ref: d, "aria-label": f, placeholder: f, className: Y()(Oe.input, !!(!((a = c.flowInput) === null || a === void 0) && a.error) && c.markError && Oe.error), disabled: h })) }));
|
|
2507
|
+
}, Pe = ({ children: n }) => r("section", Object.assign({ className: zt.content }, { children: n })), oe = ({ onSubmit: n, children: e, hidden: t, maxWidth: o }) => t ? null : r("form", Object.assign({ onSubmit: n, className: Oe.form }, { children: r("ul", Object.assign({ className: Oe.ul }, { children: (0, C.toChildArray)(e).map((i, a) => r("li", Object.assign({ part: "form-item", className: Y()(Oe.li, o ? Oe.maxWidth : null) }, { children: i }), a)) })) }));
|
|
2508
2508
|
var cn = G(111), xt = {};
|
|
2509
2509
|
xt.setAttributes = nt(), xt.insert = (n) => {
|
|
2510
2510
|
window._hankoStyle = n;
|
|
2511
2511
|
}, xt.domAPI = tt(), xt.insertStyleElement = ot(), et()(cn.A, xt);
|
|
2512
|
-
const
|
|
2512
|
+
const Tt = cn.A && cn.A.locals ? cn.A.locals : void 0, yo = ({ children: n, hidden: e }) => e ? null : r("section", Object.assign({ part: "divider", className: Tt.divider }, { children: [r("div", { part: "divider-line", className: Tt.line }), n ? r("div", Object.assign({ part: "divider-text", class: Tt.text }, { children: n })) : null, r("div", { part: "divider-line", className: Tt.line })] }));
|
|
2513
2513
|
var dn = G(905), At = {};
|
|
2514
2514
|
At.setAttributes = nt(), At.insert = (n) => {
|
|
2515
2515
|
window._hankoStyle = n;
|
|
2516
2516
|
}, At.domAPI = tt(), At.insertStyleElement = ot(), et()(dn.A, At);
|
|
2517
|
-
const
|
|
2517
|
+
const Ri = dn.A && dn.A.locals ? dn.A.locals : void 0, Ee = ({ state: n, error: e, flowError: t }) => {
|
|
2518
2518
|
var o, i;
|
|
2519
2519
|
const { t: a } = (0, _.useContext)(Z.TranslateContext), { uiState: s, setUIState: c } = (0, _.useContext)(pe);
|
|
2520
2520
|
return (0, _.useEffect)(() => {
|
|
@@ -2526,7 +2526,7 @@ const $i = dn.A && dn.A.locals ? dn.A.locals : void 0, Pe = ({ state: n, error:
|
|
|
2526
2526
|
f || c(Object.assign(Object.assign({}, s), { error: n.error }));
|
|
2527
2527
|
}
|
|
2528
2528
|
else n != null && n.error && c(Object.assign(Object.assign({}, s), { error: n == null ? void 0 : n.error }));
|
|
2529
|
-
}, [n]), r("section", Object.assign({ part: "error", className:
|
|
2529
|
+
}, [n]), r("section", Object.assign({ part: "error", className: Ri.errorBox, hidden: !(!((o = s.error) === null || o === void 0) && o.code) && !(t != null && t.code) && !e }, { children: [r("span", { children: r(Ht, { name: "exclamation", size: 15 }) }), r("span", Object.assign({ id: "errorMessage", part: "error-text" }, { children: a(e ? `errors.${e.code}` : `flowErrors.${((i = s.error) === null || i === void 0 ? void 0 : i.code) || (t == null ? void 0 : t.code)}`) }))] }));
|
|
2530
2530
|
};
|
|
2531
2531
|
var un = G(619), Ct = {};
|
|
2532
2532
|
Ct.setAttributes = nt(), Ct.insert = (n) => {
|
|
@@ -2573,8 +2573,8 @@ const Jt = hn.A && hn.A.locals ? hn.A.locals : void 0, Yn = (n) => {
|
|
|
2573
2573
|
}
|
|
2574
2574
|
return a;
|
|
2575
2575
|
}(n, ["label"]);
|
|
2576
|
-
return r("div", Object.assign({ className:
|
|
2577
|
-
}, Pn = () => r("section", { className:
|
|
2576
|
+
return r("div", Object.assign({ className: Oe.inputWrapper }, { children: r("label", Object.assign({ className: Oe.checkboxWrapper }, { children: [r("input", Object.assign({ part: "input checkbox-input", type: "checkbox", "aria-label": e, className: Oe.checkbox }, t)), r("span", Object.assign({ className: Y()(Oe.label, t.disabled ? Oe.disabled : null) }, { children: e }))] })) }));
|
|
2577
|
+
}, Pn = () => r("section", { className: Tt.spacer });
|
|
2578
2578
|
var Pt = function(n, e, t, o) {
|
|
2579
2579
|
return new (t || (t = Promise))(function(i, a) {
|
|
2580
2580
|
function s(l) {
|
|
@@ -2600,15 +2600,15 @@ var Pt = function(n, e, t, o) {
|
|
|
2600
2600
|
d((o = o.apply(n, [])).next());
|
|
2601
2601
|
});
|
|
2602
2602
|
};
|
|
2603
|
-
const
|
|
2603
|
+
const Pr = (n) => {
|
|
2604
2604
|
var e, t, o, i, a, s, c, d, l;
|
|
2605
|
-
const { t: u } = (0, _.useContext)(Z.TranslateContext), { init: h, hanko: f, initialComponentName: m, setLoadingAction: x, uiState: O, setUIState: A, stateHandler: S, hidePasskeyButtonOnLogin: P, lastLogin: j } = (0, _.useContext)(pe), [U, N] = (0, _.useState)(null), [ae, be] = (0, _.useState)(O.username || O.email), { flowState:
|
|
2605
|
+
const { t: u } = (0, _.useContext)(Z.TranslateContext), { init: h, hanko: f, initialComponentName: m, setLoadingAction: x, uiState: O, setUIState: A, stateHandler: S, hidePasskeyButtonOnLogin: P, lastLogin: j } = (0, _.useContext)(pe), [U, N] = (0, _.useState)(null), [ae, be] = (0, _.useState)(O.username || O.email), { flowState: se } = Me(n.state), we = gt.supported(), [M, H] = (0, _.useState)(void 0), [_e, Ue] = (0, _.useState)(null), [Ie, Ne] = (0, _.useState)(!1), le = (k) => {
|
|
2606
2606
|
if (k.preventDefault(), k.target instanceof HTMLInputElement) {
|
|
2607
2607
|
const { value: p } = k.target;
|
|
2608
|
-
be(p),
|
|
2608
|
+
be(p), ce(p);
|
|
2609
2609
|
}
|
|
2610
|
-
},
|
|
2611
|
-
const p = () => A((
|
|
2610
|
+
}, ce = (k) => {
|
|
2611
|
+
const p = () => A(($) => Object.assign(Object.assign({}, $), { email: k, username: null })), y = () => A(($) => Object.assign(Object.assign({}, $), { email: null, username: k }));
|
|
2612
2612
|
switch (U) {
|
|
2613
2613
|
case "email":
|
|
2614
2614
|
p();
|
|
@@ -2620,39 +2620,39 @@ const xr = (n) => {
|
|
|
2620
2620
|
k.match(/^[^@]+@[^@]+\.[^@]+$/) ? p() : y();
|
|
2621
2621
|
}
|
|
2622
2622
|
}, me = (0, _.useMemo)(() => {
|
|
2623
|
-
var k, p, y,
|
|
2624
|
-
return !!(!((p = (k =
|
|
2625
|
-
}, [
|
|
2623
|
+
var k, p, y, $;
|
|
2624
|
+
return !!(!((p = (k = se.actions).webauthn_generate_request_options) === null || p === void 0) && p.call(k, null)) || !!(!(($ = (y = se.actions).thirdparty_oauth) === null || $ === void 0) && $.call(y, null));
|
|
2625
|
+
}, [se.actions]), De = (t = (e = se.actions).continue_with_login_identifier) === null || t === void 0 ? void 0 : t.call(e, null).inputs;
|
|
2626
2626
|
return (0, _.useEffect)(() => {
|
|
2627
2627
|
var k, p;
|
|
2628
|
-
const y = (p = (k =
|
|
2628
|
+
const y = (p = (k = se.actions).continue_with_login_identifier) === null || p === void 0 ? void 0 : p.call(k, null).inputs;
|
|
2629
2629
|
N(y != null && y.email ? "email" : y != null && y.username ? "username" : "identifier");
|
|
2630
|
-
}, [
|
|
2630
|
+
}, [se]), (0, _.useEffect)(() => {
|
|
2631
2631
|
const k = new URLSearchParams(window.location.search);
|
|
2632
2632
|
if (k.get("error") == null || k.get("error").length === 0) return;
|
|
2633
2633
|
let p = "";
|
|
2634
2634
|
p = k.get("error") === "access_denied" ? "thirdPartyAccessDenied" : "somethingWentWrong";
|
|
2635
2635
|
const y = { name: p, code: p, message: k.get("error_description") };
|
|
2636
2636
|
H(y), k.delete("error"), k.delete("error_description"), history.replaceState(null, null, window.location.pathname + (k.size < 1 ? "" : `?${k.toString()}`));
|
|
2637
|
-
}, []), r(C.Fragment, { children: [r(
|
|
2637
|
+
}, []), r(C.Fragment, { children: [r(Pe, { children: [r(he, { children: u("headlines.signIn") }), r(Ee, { state: se, error: M }), De ? r(C.Fragment, { children: [r(oe, Object.assign({ onSubmit: (k) => Pt(void 0, void 0, void 0, function* () {
|
|
2638
2638
|
k.preventDefault(), x("email-submit");
|
|
2639
|
-
const p = yield
|
|
2640
|
-
|
|
2641
|
-
}), maxWidth: !0 }, { children: [
|
|
2639
|
+
const p = yield se.actions.continue_with_login_identifier({ [U]: ae }).run();
|
|
2640
|
+
ce(ae), x(null), yield f.flow.run(p, S);
|
|
2641
|
+
}), maxWidth: !0 }, { children: [De.email ? r(Ve, { type: "email", autoComplete: "username webauthn", autoCorrect: "off", flowInput: De.email, onInput: le, value: ae, placeholder: u("labels.email"), pattern: "^[^@]+@[^@]+\\.[^@]+$" }) : De.username ? r(Ve, { type: "text", autoComplete: "username webauthn", autoCorrect: "off", flowInput: De.username, onInput: le, value: ae, placeholder: u("labels.username") }) : r(Ve, { type: "text", autoComplete: "username webauthn", autoCorrect: "off", flowInput: De.identifier, onInput: le, value: ae, placeholder: u("labels.emailOrUsername") }), r(ne, Object.assign({ uiAction: "email-submit" }, { children: u("labels.continue") }))] })), r(yo, Object.assign({ hidden: !me }, { children: u("labels.or") }))] }) : null, !((i = (o = se.actions).webauthn_generate_request_options) === null || i === void 0) && i.call(o, null) && !P ? r(oe, Object.assign({ onSubmit: (k) => ((p) => Pt(void 0, void 0, void 0, function* () {
|
|
2642
2642
|
p.preventDefault(), x("passkey-submit");
|
|
2643
|
-
const y = yield
|
|
2643
|
+
const y = yield se.actions.webauthn_generate_request_options(null).run();
|
|
2644
2644
|
yield f.flow.run(y, S);
|
|
2645
|
-
}))(k) }, { children: r(ne, Object.assign({ uiAction: "passkey-submit", secondary: !0, title: we ? null : u("labels.webauthnUnsupported"), disabled: !we, icon: "passkey" }, { children: u("labels.signInPasskey") })) })) : null, !((s = (a =
|
|
2646
|
-
y.preventDefault(),
|
|
2647
|
-
const K = yield
|
|
2648
|
-
K.error &&
|
|
2649
|
-
}))(p, k.value) }, { children: r(ne, Object.assign({ isLoading: k.value == _e, secondary: !0, icon: k.value.startsWith("custom_") ? "customProvider" : k.value, showLastUsed: (j == null ? void 0 : j.login_method) == "third_party" && (j == null ? void 0 : j.third_party_provider) == k.value }, { children: u("labels.signInWith", { provider: k.name }) })) }), k.value)) : null, ((l = (d =
|
|
2650
|
-
const p = yield
|
|
2651
|
-
|
|
2645
|
+
}))(k) }, { children: r(ne, Object.assign({ uiAction: "passkey-submit", secondary: !0, title: we ? null : u("labels.webauthnUnsupported"), disabled: !we, icon: "passkey" }, { children: u("labels.signInPasskey") })) })) : null, !((s = (a = se.actions).thirdparty_oauth) === null || s === void 0) && s.call(a, null) ? (c = se.actions.thirdparty_oauth(null).inputs.provider.allowed_values) === null || c === void 0 ? void 0 : c.map((k) => r(oe, Object.assign({ onSubmit: (p) => ((y, $) => Pt(void 0, void 0, void 0, function* () {
|
|
2646
|
+
y.preventDefault(), Ue($);
|
|
2647
|
+
const K = yield se.actions.thirdparty_oauth({ provider: $, redirect_to: window.location.toString() }).run();
|
|
2648
|
+
K.error && Ue(null), yield f.flow.run(K, S);
|
|
2649
|
+
}))(p, k.value) }, { children: r(ne, Object.assign({ isLoading: k.value == _e, secondary: !0, icon: k.value.startsWith("custom_") ? "customProvider" : k.value, showLastUsed: (j == null ? void 0 : j.login_method) == "third_party" && (j == null ? void 0 : j.third_party_provider) == k.value }, { children: u("labels.signInWith", { provider: k.name }) })) }), k.value)) : null, ((l = (d = se.actions).remember_me) === null || l === void 0 ? void 0 : l.call(d, null)) && r(C.Fragment, { children: [r(Pn, {}), r(bo, { required: !1, type: "checkbox", label: u("labels.staySignedIn"), checked: Ie, onChange: (k) => Pt(void 0, void 0, void 0, function* () {
|
|
2650
|
+
const p = yield se.actions.remember_me({ remember_me: !Ie }).run();
|
|
2651
|
+
Ne((y) => !y), yield f.flow.run(p, S);
|
|
2652
2652
|
}) })] })] }), r(Re, Object.assign({ hidden: m !== "auth" }, { children: [r("span", { hidden: !0 }), r(ee, Object.assign({ uiAction: "switch-flow", onClick: (k) => Pt(void 0, void 0, void 0, function* () {
|
|
2653
2653
|
k.preventDefault(), h("registration");
|
|
2654
2654
|
}), loadingSpinnerPosition: "left" }, { children: u("labels.dontHaveAnAccount") }))] }))] });
|
|
2655
|
-
},
|
|
2655
|
+
}, Er = (n) => {
|
|
2656
2656
|
var { index: e, focus: t, digit: o = "" } = n, i = function(l, u) {
|
|
2657
2657
|
var h = {};
|
|
2658
2658
|
for (var f in l) Object.prototype.hasOwnProperty.call(l, f) && u.indexOf(f) < 0 && (h[f] = l[f]);
|
|
@@ -2670,7 +2670,7 @@ const xr = (n) => {
|
|
|
2670
2670
|
e === 0 && c();
|
|
2671
2671
|
}, [e, i.disabled]), (0, _.useMemo)(() => {
|
|
2672
2672
|
t && c();
|
|
2673
|
-
}, [t]), r("div", Object.assign({ className:
|
|
2673
|
+
}, [t]), r("div", Object.assign({ className: Oe.passcodeDigitWrapper }, { children: r("input", Object.assign({}, i, { part: "input passcode-input", "aria-label": `${i.name}-digit-${e + 1}`, name: i.name + e.toString(10), type: "text", inputMode: "numeric", maxLength: 1, ref: a, value: o.charAt(0), required: !0, className: Oe.input, disabled: d })) }));
|
|
2674
2674
|
}, ko = ({ passcodeDigits: n = [], numberOfInputs: e = 6, onInput: t, disabled: o = !1 }) => {
|
|
2675
2675
|
const [i, a] = (0, _.useState)(0), s = () => n.slice(), c = () => {
|
|
2676
2676
|
i < e - 1 && a(i + 1);
|
|
@@ -2692,7 +2692,7 @@ const xr = (n) => {
|
|
|
2692
2692
|
};
|
|
2693
2693
|
return (0, _.useEffect)(() => {
|
|
2694
2694
|
n.length === 0 && a(0);
|
|
2695
|
-
}, [n]), r("div", Object.assign({ className:
|
|
2695
|
+
}, [n]), r("div", Object.assign({ className: Oe.passcodeInputWrapper }, { children: Array.from(Array(e)).map((m, x) => r(Er, { name: "passcode", index: x, focus: i === x, digit: n[x], onKeyDown: h, onInput: f, onPaste: u, onFocus: () => ((O) => {
|
|
2696
2696
|
a(O);
|
|
2697
2697
|
})(x), disabled: o }, x)) }));
|
|
2698
2698
|
};
|
|
@@ -2700,7 +2700,7 @@ var pn = G(489), Et = {};
|
|
|
2700
2700
|
Et.setAttributes = nt(), Et.insert = (n) => {
|
|
2701
2701
|
window._hankoStyle = n;
|
|
2702
2702
|
}, Et.domAPI = tt(), Et.insertStyleElement = ot(), et()(pn.A, Et);
|
|
2703
|
-
const
|
|
2703
|
+
const Ir = pn.A && pn.A.locals ? pn.A.locals : void 0, W = ({ children: n, hidden: e }) => e ? null : r("p", Object.assign({ part: "paragraph", className: Ir.paragraph }, { children: n }));
|
|
2704
2704
|
var Yt = function(n, e, t, o) {
|
|
2705
2705
|
return new (t || (t = Promise))(function(i, a) {
|
|
2706
2706
|
function s(l) {
|
|
@@ -2726,7 +2726,7 @@ var Yt = function(n, e, t, o) {
|
|
|
2726
2726
|
d((o = o.apply(n, [])).next());
|
|
2727
2727
|
});
|
|
2728
2728
|
};
|
|
2729
|
-
const
|
|
2729
|
+
const Dr = (n) => {
|
|
2730
2730
|
var e, t;
|
|
2731
2731
|
const { t: o } = (0, _.useContext)(Z.TranslateContext), { flowState: i } = Me(n.state), { hanko: a, uiState: s, setUIState: c, setLoadingAction: d, setSucceededAction: l, stateHandler: u } = (0, _.useContext)(pe), [h, f] = (0, _.useState)(), [m, x] = (0, _.useState)(i.payload.resend_after), [O, A] = (0, _.useState)([]), S = (0, _.useMemo)(() => {
|
|
2732
2732
|
var j;
|
|
@@ -2754,7 +2754,7 @@ const Or = (n) => {
|
|
|
2754
2754
|
}, [m]), (0, _.useEffect)(() => {
|
|
2755
2755
|
var j;
|
|
2756
2756
|
((j = i.error) === null || j === void 0 ? void 0 : j.code) === "passcode_invalid" && A([]), i.payload.resend_after >= 0 && x(i.payload.resend_after);
|
|
2757
|
-
}, [i]), r(C.Fragment, { children: [r(
|
|
2757
|
+
}, [i]), r(C.Fragment, { children: [r(Pe, { children: [r(he, { children: o("headlines.loginPasscode") }), r(Ee, { state: i }), r(W, { children: s.email ? o("texts.enterPasscode", { emailAddress: s.email }) : o("texts.enterPasscodeNoEmail") }), r(oe, Object.assign({ onSubmit: (j) => Yt(void 0, void 0, void 0, function* () {
|
|
2758
2758
|
return j.preventDefault(), P(O.join(""));
|
|
2759
2759
|
}) }, { children: [r(ko, { onInput: (j) => {
|
|
2760
2760
|
if (A(j), j.filter((U) => U !== "").length === 6) return P(j.join(""));
|
|
@@ -2793,10 +2793,10 @@ var qn = function(n, e, t, o) {
|
|
|
2793
2793
|
d((o = o.apply(n, [])).next());
|
|
2794
2794
|
});
|
|
2795
2795
|
};
|
|
2796
|
-
const
|
|
2796
|
+
const jr = (n) => {
|
|
2797
2797
|
var e, t, o, i, a, s, c, d;
|
|
2798
2798
|
const { t: l } = (0, _.useContext)(Z.TranslateContext), { hanko: u, setLoadingAction: h, stateHandler: f } = (0, _.useContext)(pe), { flowState: m } = Me(n.state);
|
|
2799
|
-
return r(C.Fragment, { children: [r(
|
|
2799
|
+
return r(C.Fragment, { children: [r(Pe, { children: [r(he, { children: l("headlines.registerAuthenticator") }), r(Ee, { state: m }), r(W, { children: l("texts.setupPasskey") }), r(oe, Object.assign({ onSubmit: (x) => qn(void 0, void 0, void 0, function* () {
|
|
2800
2800
|
x.preventDefault(), h("passkey-submit");
|
|
2801
2801
|
const O = yield m.actions.webauthn_generate_creation_options(null).run();
|
|
2802
2802
|
yield u.flow.run(O, f);
|
|
@@ -2835,7 +2835,7 @@ var It = function(n, e, t, o) {
|
|
|
2835
2835
|
d((o = o.apply(n, [])).next());
|
|
2836
2836
|
});
|
|
2837
2837
|
};
|
|
2838
|
-
const
|
|
2838
|
+
const Lr = (n) => {
|
|
2839
2839
|
var e, t, o, i;
|
|
2840
2840
|
const { t: a } = (0, _.useContext)(Z.TranslateContext), { hanko: s, stateHandler: c, setLoadingAction: d } = (0, _.useContext)(pe), { flowState: l } = Me(n.state), [u, h] = (0, _.useState)(), [f, m] = (0, _.useState)(), x = (P) => It(void 0, void 0, void 0, function* () {
|
|
2841
2841
|
P.preventDefault(), d("password-recovery");
|
|
@@ -2852,7 +2852,7 @@ const Er = (n) => {
|
|
|
2852
2852
|
return (0, _.useEffect)(() => {
|
|
2853
2853
|
const P = f > 0 && setInterval(() => m(f - 1), 1e3);
|
|
2854
2854
|
return () => clearInterval(P);
|
|
2855
|
-
}, [f]), r(C.Fragment, { children: [r(
|
|
2855
|
+
}, [f]), r(C.Fragment, { children: [r(Pe, { children: [r(he, { children: a("headlines.loginPassword") }), r(Ee, { state: l }), r(oe, Object.assign({ onSubmit: (P) => It(void 0, void 0, void 0, function* () {
|
|
2856
2856
|
P.preventDefault(), d("password-submit");
|
|
2857
2857
|
const j = yield l.actions.password_login({ password: u }).run();
|
|
2858
2858
|
d(null), yield s.flow.run(j, c);
|
|
@@ -2889,9 +2889,9 @@ var Jo = function(n, e, t, o) {
|
|
|
2889
2889
|
d((o = o.apply(n, [])).next());
|
|
2890
2890
|
});
|
|
2891
2891
|
};
|
|
2892
|
-
const
|
|
2892
|
+
const $r = (n) => {
|
|
2893
2893
|
const { t: e } = (0, _.useContext)(Z.TranslateContext), { hanko: t, stateHandler: o, setLoadingAction: i } = (0, _.useContext)(pe), { flowState: a } = Me(n.state), [s, c] = (0, _.useState)();
|
|
2894
|
-
return r(
|
|
2894
|
+
return r(Pe, { children: [r(he, { children: e("headlines.registerPassword") }), r(Ee, { state: a }), r(W, { children: e("texts.passwordFormatHint", { minLength: a.actions.password_recovery(null).inputs.new_password.min_length, maxLength: 72 }) }), r(oe, Object.assign({ onSubmit: (d) => Jo(void 0, void 0, void 0, function* () {
|
|
2895
2895
|
d.preventDefault(), i("password-submit");
|
|
2896
2896
|
const l = yield a.actions.password_recovery({ new_password: s }).run();
|
|
2897
2897
|
i(null), yield t.flow.run(l, o);
|
|
@@ -2924,10 +2924,10 @@ var Qt = function(n, e, t, o) {
|
|
|
2924
2924
|
d((o = o.apply(n, [])).next());
|
|
2925
2925
|
});
|
|
2926
2926
|
};
|
|
2927
|
-
const
|
|
2927
|
+
const Tr = (n) => {
|
|
2928
2928
|
var e, t, o, i, a, s;
|
|
2929
2929
|
const { t: c } = (0, _.useContext)(Z.TranslateContext), { hanko: d, setLoadingAction: l, stateHandler: u, lastLogin: h } = (0, _.useContext)(pe), { flowState: f } = Me(n.state);
|
|
2930
|
-
return r(C.Fragment, { children: [r(
|
|
2930
|
+
return r(C.Fragment, { children: [r(Pe, { children: [r(he, { children: c("headlines.selectLoginMethod") }), r(Ee, { flowError: f == null ? void 0 : f.error }), r(W, { children: c("texts.howDoYouWantToLogin") }), r(oe, Object.assign({ hidden: !(!((t = (e = f.actions).continue_to_passcode_confirmation) === null || t === void 0) && t.call(e, null)), onSubmit: (m) => Qt(void 0, void 0, void 0, function* () {
|
|
2931
2931
|
m.preventDefault(), l("passcode-submit");
|
|
2932
2932
|
const x = yield f.actions.continue_to_passcode_confirmation(null).run();
|
|
2933
2933
|
l(null), yield d.flow.run(x, u);
|
|
@@ -2970,9 +2970,9 @@ var Gt = function(n, e, t, o) {
|
|
|
2970
2970
|
d((o = o.apply(n, [])).next());
|
|
2971
2971
|
});
|
|
2972
2972
|
};
|
|
2973
|
-
const
|
|
2973
|
+
const Ur = (n) => {
|
|
2974
2974
|
var e, t, o, i, a, s, c;
|
|
2975
|
-
const { t: d } = (0, _.useContext)(Z.TranslateContext), { init: l, hanko: u, uiState: h, setUIState: f, stateHandler: m, setLoadingAction: x, initialComponentName: O } = (0, _.useContext)(pe), { flowState: A } = Me(n.state), S = (t = (e = A.actions).register_login_identifier) === null || t === void 0 ? void 0 : t.call(e, null).inputs, P = !(!(S != null && S.email) || !(S != null && S.username)), [j, U] = (0, _.useState)(void 0), [N, ae] = (0, _.useState)(null), [be,
|
|
2975
|
+
const { t: d } = (0, _.useContext)(Z.TranslateContext), { init: l, hanko: u, uiState: h, setUIState: f, stateHandler: m, setLoadingAction: x, initialComponentName: O } = (0, _.useContext)(pe), { flowState: A } = Me(n.state), S = (t = (e = A.actions).register_login_identifier) === null || t === void 0 ? void 0 : t.call(e, null).inputs, P = !(!(S != null && S.email) || !(S != null && S.username)), [j, U] = (0, _.useState)(void 0), [N, ae] = (0, _.useState)(null), [be, se] = (0, _.useState)(!1), we = (0, _.useMemo)(() => {
|
|
2976
2976
|
var M, H;
|
|
2977
2977
|
return !!(!((H = (M = A.actions).thirdparty_oauth) === null || H === void 0) && H.call(M, null));
|
|
2978
2978
|
}, [A.actions]);
|
|
@@ -2983,7 +2983,7 @@ const jr = (n) => {
|
|
|
2983
2983
|
H = M.get("error") === "access_denied" ? "thirdPartyAccessDenied" : "somethingWentWrong";
|
|
2984
2984
|
const _e = { name: H, code: H, message: M.get("error_description") };
|
|
2985
2985
|
U(_e), M.delete("error"), M.delete("error_description"), history.replaceState(null, null, window.location.pathname + (M.size < 1 ? "" : `?${M.toString()}`));
|
|
2986
|
-
}, []), r(C.Fragment, { children: [r(
|
|
2986
|
+
}, []), r(C.Fragment, { children: [r(Pe, { children: [r(he, { children: d("headlines.signUp") }), r(Ee, { state: A, error: j }), S ? r(C.Fragment, { children: [r(oe, Object.assign({ onSubmit: (M) => Gt(void 0, void 0, void 0, function* () {
|
|
2987
2987
|
M.preventDefault(), x("email-submit");
|
|
2988
2988
|
const H = yield A.actions.register_login_identifier({ email: h.email, username: h.username }).run();
|
|
2989
2989
|
x(null), yield u.flow.run(H, m);
|
|
@@ -2997,13 +2997,13 @@ const jr = (n) => {
|
|
|
2997
2997
|
const { value: H } = M.target;
|
|
2998
2998
|
f((_e) => Object.assign(Object.assign({}, _e), { email: H }));
|
|
2999
2999
|
}
|
|
3000
|
-
}, value: h.email, placeholder: d("labels.email"), pattern: "^.*[^0-9]+$" }) : null, r(ne, Object.assign({ uiAction: "email-submit", autofocus: !0 }, { children: d("labels.continue") }))] })), r(yo, Object.assign({ hidden: !we }, { children: d("labels.or") }))] }) : null, !((i = (o = A.actions).thirdparty_oauth) === null || i === void 0) && i.call(o, null) ? (a = A.actions.thirdparty_oauth(null).inputs.provider.allowed_values) === null || a === void 0 ? void 0 : a.map((M) => r(oe, Object.assign({ onSubmit: (H) => ((_e,
|
|
3001
|
-
_e.preventDefault(), ae(
|
|
3002
|
-
const
|
|
3003
|
-
ae(null), yield u.flow.run(
|
|
3000
|
+
}, value: h.email, placeholder: d("labels.email"), pattern: "^.*[^0-9]+$" }) : null, r(ne, Object.assign({ uiAction: "email-submit", autofocus: !0 }, { children: d("labels.continue") }))] })), r(yo, Object.assign({ hidden: !we }, { children: d("labels.or") }))] }) : null, !((i = (o = A.actions).thirdparty_oauth) === null || i === void 0) && i.call(o, null) ? (a = A.actions.thirdparty_oauth(null).inputs.provider.allowed_values) === null || a === void 0 ? void 0 : a.map((M) => r(oe, Object.assign({ onSubmit: (H) => ((_e, Ue) => Gt(void 0, void 0, void 0, function* () {
|
|
3001
|
+
_e.preventDefault(), ae(Ue);
|
|
3002
|
+
const Ie = yield A.actions.thirdparty_oauth({ provider: Ue, redirect_to: window.location.toString() }).run();
|
|
3003
|
+
ae(null), yield u.flow.run(Ie, m);
|
|
3004
3004
|
}))(H, M.value) }, { children: r(ne, Object.assign({ isLoading: M.value == N, secondary: !0, icon: M.value.startsWith("custom_") ? "customProvider" : M.value }, { children: d("labels.signInWith", { provider: M.name }) })) }), M.value)) : null, ((c = (s = A.actions).remember_me) === null || c === void 0 ? void 0 : c.call(s, null)) && r(C.Fragment, { children: [r(Pn, {}), r(bo, { required: !1, type: "checkbox", label: d("labels.staySignedIn"), checked: be, onChange: (M) => Gt(void 0, void 0, void 0, function* () {
|
|
3005
3005
|
const H = yield A.actions.remember_me({ remember_me: !be }).run();
|
|
3006
|
-
|
|
3006
|
+
se((_e) => !_e), yield u.flow.run(H, m);
|
|
3007
3007
|
}) })] })] }), r(Re, Object.assign({ hidden: O !== "auth" }, { children: [r("span", { hidden: !0 }), r(ee, Object.assign({ uiAction: "switch-flow", onClick: (M) => Gt(void 0, void 0, void 0, function* () {
|
|
3008
3008
|
M.preventDefault(), l("login");
|
|
3009
3009
|
}), loadingSpinnerPosition: "left" }, { children: d("labels.alreadyHaveAnAccount") }))] }))] });
|
|
@@ -3033,10 +3033,10 @@ var Xt = function(n, e, t, o) {
|
|
|
3033
3033
|
d((o = o.apply(n, [])).next());
|
|
3034
3034
|
});
|
|
3035
3035
|
};
|
|
3036
|
-
const
|
|
3036
|
+
const Nr = (n) => {
|
|
3037
3037
|
var e, t, o, i, a, s, c, d;
|
|
3038
3038
|
const { t: l } = (0, _.useContext)(Z.TranslateContext), { hanko: u, stateHandler: h, setLoadingAction: f } = (0, _.useContext)(pe), { flowState: m } = Me(n.state), [x, O] = (0, _.useState)();
|
|
3039
|
-
return r(C.Fragment, { children: [r(
|
|
3039
|
+
return r(C.Fragment, { children: [r(Pe, { children: [r(he, { children: l("headlines.registerPassword") }), r(Ee, { state: m }), r(W, { children: l("texts.passwordFormatHint", { minLength: m.actions.register_password(null).inputs.new_password.min_length, maxLength: 72 }) }), r(oe, Object.assign({ onSubmit: (A) => Xt(void 0, void 0, void 0, function* () {
|
|
3040
3040
|
A.preventDefault(), f("password-submit");
|
|
3041
3041
|
const S = yield m.actions.register_password({ new_password: x }).run();
|
|
3042
3042
|
f(null), yield u.flow.run(S, h);
|
|
@@ -3063,7 +3063,7 @@ const Ze = mn.A && mn.A.locals ? mn.A.locals : void 0, En = function({ name: n,
|
|
|
3063
3063
|
a(f === i ? null : f);
|
|
3064
3064
|
};
|
|
3065
3065
|
return r("div", Object.assign({ className: Ze.accordion }, { children: o.map((u, h) => r("div", Object.assign({ className: Ze.accordionItem }, { children: [r("input", { type: "radio", className: Ze.accordionInput, id: `${n}-${h}`, name: n, onClick: l, value: h, checked: d(h) }), r("label", Object.assign({ className: Y()(Ze.label, s && Ze.dropdown), for: `${n}-${h}` }, { children: r("span", Object.assign({ className: Ze.labelText }, { children: e(u, h) })) })), r("div", Object.assign({ className: Y()(Ze.accordionContent, s && Ze.dropdownContent) }, { children: t(u, h) }))] }), h)) }));
|
|
3066
|
-
}, ze = ({ children: n }) => r("h2", Object.assign({ part: "headline2", className: Y()(bn.headline, bn.grade2) }, { children: n })),
|
|
3066
|
+
}, ze = ({ children: n }) => r("h2", Object.assign({ part: "headline2", className: Y()(bn.headline, bn.grade2) }, { children: n })), Mr = ({ onEmailDelete: n, onEmailSetPrimary: e, onEmailVerify: t, checkedItemID: o, setCheckedItemID: i, emails: a = [], deletableEmailIDs: s = [] }) => {
|
|
3067
3067
|
const { t: c } = (0, _.useContext)(Z.TranslateContext), d = (0, _.useMemo)(() => !1, []);
|
|
3068
3068
|
return r(En, { name: "email-edit-dropdown", columnSelector: (l) => {
|
|
3069
3069
|
const u = r("span", Object.assign({ className: Ze.description }, { children: l.is_verified ? l.is_primary ? r(C.Fragment, { children: [" -", " ", c("labels.primaryEmail")] }) : null : r(C.Fragment, { children: [" -", " ", c("labels.unverifiedEmail")] }) }));
|
|
@@ -3072,9 +3072,9 @@ const Ze = mn.A && mn.A.locals ? mn.A.locals : void 0, En = function({ name: n,
|
|
|
3072
3072
|
var u;
|
|
3073
3073
|
return r(C.Fragment, { children: [l.is_primary ? r(C.Fragment, { children: r(W, { children: [r(ze, { children: c("headlines.isPrimaryEmail") }), c("texts.isPrimaryEmail")] }) }) : r(C.Fragment, { children: r(W, { children: [r(ze, { children: c("headlines.setPrimaryEmail") }), c("texts.setPrimaryEmail"), r("br", {}), r(ee, Object.assign({ uiAction: "email-set-primary", onClick: (h) => e(h, l.id), loadingSpinnerPosition: "right" }, { children: c("labels.setAsPrimaryEmail") }))] }) }), l.is_verified ? r(C.Fragment, { children: r(W, { children: [r(ze, { children: c("headlines.emailVerified") }), c("texts.emailVerified")] }) }) : r(C.Fragment, { children: r(W, { children: [r(ze, { children: c("headlines.emailUnverified") }), c("texts.emailUnverified"), r("br", {}), r(ee, Object.assign({ uiAction: "email-verify", onClick: (h) => t(h, l.id), loadingSpinnerPosition: "right" }, { children: c("labels.verify") }))] }) }), s.includes(l.id) ? r(C.Fragment, { children: r(W, { children: [r(ze, { children: c("headlines.emailDelete") }), c("texts.emailDelete"), r("br", {}), r(ee, Object.assign({ uiAction: "email-delete", dangerous: !0, onClick: (h) => n(h, l.id), disabled: d, loadingSpinnerPosition: "right" }, { children: c("labels.delete") }))] }) }) : null, ((u = l.identities) === null || u === void 0 ? void 0 : u.length) > 0 ? r(C.Fragment, { children: r(W, { children: [r(ze, { children: c("headlines.connectedAccounts") }), l.identities.map((h) => h.provider).join(", ")] }) }) : null] });
|
|
3074
3074
|
}, checkedItemID: o, setCheckedItemID: i });
|
|
3075
|
-
},
|
|
3075
|
+
}, Rr = ({ onCredentialNameSubmit: n, oldName: e, onBack: t, credential: o, credentialType: i }) => {
|
|
3076
3076
|
const { t: a } = (0, _.useContext)(Z.TranslateContext), [s, c] = (0, _.useState)(e);
|
|
3077
|
-
return r(C.Fragment, { children: [r(
|
|
3077
|
+
return r(C.Fragment, { children: [r(Pe, { children: [r(he, { children: a(i === "security-key" ? "headlines.renameSecurityKey" : "headlines.renamePasskey") }), r(Ee, { flowError: null }), r(W, { children: a(i === "security-key" ? "texts.renameSecurityKey" : "texts.renamePasskey") }), r(oe, Object.assign({ onSubmit: (d) => n(d, o.id, s) }, { children: [r(Ve, { type: "text", name: i, value: s, minLength: 3, maxLength: 32, required: !0, placeholder: a(i === "security-key" ? "labels.newSecurityKeyName" : "labels.newPasskeyName"), onInput: (d) => {
|
|
3078
3078
|
return l = void 0, u = void 0, f = function* () {
|
|
3079
3079
|
d.target instanceof HTMLInputElement && c(d.target.value);
|
|
3080
3080
|
}, new ((h = void 0) || (h = Promise))(function(m, x) {
|
|
@@ -3109,12 +3109,12 @@ const Ze = mn.A && mn.A.locals ? mn.A.locals : void 0, En = function({ name: n,
|
|
|
3109
3109
|
return `${c === "security-key" ? "SecurityKey" : "Passkey"}-${m.substring(m.length - 7, m.length)}`;
|
|
3110
3110
|
}, h = (f) => new Date(f).toLocaleString();
|
|
3111
3111
|
return r(En, { name: c === "security-key" ? "security-key-edit-dropdown" : "passkey-edit-dropdown", columnSelector: (f) => u(f), data: n, contentSelector: (f) => r(C.Fragment, { children: [r(W, { children: [r(ze, { children: d(c === "security-key" ? "headlines.renameSecurityKey" : "headlines.renamePasskey") }), d(c === "security-key" ? "texts.renameSecurityKey" : "texts.renamePasskey"), r("br", {}), r(ee, Object.assign({ onClick: (m) => ((x, O, A) => {
|
|
3112
|
-
x.preventDefault(), l(r(
|
|
3112
|
+
x.preventDefault(), l(r(Rr, { oldName: u(O), credential: O, credentialType: A, onBack: o, onCredentialNameSubmit: i }));
|
|
3113
3113
|
})(m, f, c), loadingSpinnerPosition: "right" }, { children: d("labels.rename") }))] }), r(W, Object.assign({ hidden: !s }, { children: [r(ze, { children: d(c === "security-key" ? "headlines.deleteSecurityKey" : "headlines.deletePasskey") }), d(c === "security-key" ? "texts.deleteSecurityKey" : "texts.deletePasskey"), r("br", {}), r(ee, Object.assign({ uiAction: "password-delete", dangerous: !0, onClick: (m) => a(m, f.id), loadingSpinnerPosition: "right" }, { children: d("labels.delete") }))] })), r(W, { children: [r(ze, { children: d("headlines.lastUsedAt") }), f.last_used_at ? h(f.last_used_at) : "-"] }), r(W, { children: [r(ze, { children: d("headlines.createdAt") }), h(f.created_at)] })] }), checkedItemID: e, setCheckedItemID: t });
|
|
3114
3114
|
}, Ft = ({ name: n, title: e, children: t, checkedItemID: o, setCheckedItemID: i }) => r(En, { dropdown: !0, name: n, columnSelector: () => e, contentSelector: () => r(C.Fragment, { children: t }), setCheckedItemID: i, checkedItemID: o, data: [{}] }), wo = ({ flowError: n }) => {
|
|
3115
3115
|
const { t: e } = (0, _.useContext)(Z.TranslateContext);
|
|
3116
|
-
return r(C.Fragment, { children: n ? r("div", Object.assign({ className:
|
|
3117
|
-
},
|
|
3116
|
+
return r(C.Fragment, { children: n ? r("div", Object.assign({ className: Ri.errorMessage }, { children: e(`flowErrors.${n == null ? void 0 : n.code}`) })) : null });
|
|
3117
|
+
}, qr = ({ inputs: n, onEmailSubmit: e, checkedItemID: t, setCheckedItemID: o }) => {
|
|
3118
3118
|
var i;
|
|
3119
3119
|
const { t: a } = (0, _.useContext)(Z.TranslateContext), [s, c] = (0, _.useState)();
|
|
3120
3120
|
return r(Ft, Object.assign({ name: "email-create-dropdown", title: a("labels.addEmail"), checkedItemID: t, setCheckedItemID: o }, { children: [r(wo, { flowError: (i = n.email) === null || i === void 0 ? void 0 : i.error }), r(oe, Object.assign({ onSubmit: (d) => e(d, s).then(() => c("")) }, { children: [r(Ve, { markError: !0, type: "email", placeholder: a("labels.newEmailAddress"), onInput: (d) => {
|
|
@@ -3135,20 +3135,20 @@ const Ze = mn.A && mn.A.locals ? mn.A.locals : void 0, En = function({ name: n,
|
|
|
3135
3135
|
return r(Ft, Object.assign({ name: "username-edit-dropdown", title: d(a ? "labels.changeUsername" : "labels.setUsername"), checkedItemID: e, setCheckedItemID: t }, { children: [r(wo, { flowError: (c = n.username) === null || c === void 0 ? void 0 : c.error }), r(oe, Object.assign({ onSubmit: (h) => o(h, l).then(() => u("")) }, { children: [r(Ve, { markError: !0, placeholder: d("labels.username"), type: "text", onInput: (h) => {
|
|
3136
3136
|
h.preventDefault(), h.target instanceof HTMLInputElement && u(h.target.value);
|
|
3137
3137
|
}, value: l, flowInput: n.username }), r(ne, Object.assign({ uiAction: "username-set" }, { children: d("labels.save") }))] })), r(ee, Object.assign({ hidden: !s, uiAction: "username-delete", dangerous: !0, onClick: (h) => i(h).then(() => u("")), loadingSpinnerPosition: "right" }, { children: d("labels.delete") }))] }));
|
|
3138
|
-
},
|
|
3138
|
+
}, zr = ({ onBack: n, onAccountDelete: e }) => {
|
|
3139
3139
|
const { t } = (0, _.useContext)(Z.TranslateContext);
|
|
3140
|
-
return r(C.Fragment, { children: [r(
|
|
3141
|
-
},
|
|
3140
|
+
return r(C.Fragment, { children: [r(Pe, { children: [r(he, { children: t("headlines.deleteAccount") }), r(Ee, { flowError: null }), r(W, { children: t("texts.deleteAccount") }), r(oe, Object.assign({ onSubmit: e }, { children: [r(bo, { required: !0, type: "checkbox", label: t("labels.deleteAccount") }), r(ne, Object.assign({ uiAction: "account_delete" }, { children: t("labels.delete") }))] }))] }), r(Re, { children: r(ee, Object.assign({ onClick: n }, { children: t("labels.back") })) })] });
|
|
3141
|
+
}, Hr = ({ sessions: n = [], checkedItemID: e, setCheckedItemID: t, onSessionDelete: o, deletableSessionIDs: i }) => {
|
|
3142
3142
|
const { t: a } = (0, _.useContext)(Z.TranslateContext), s = (c) => new Date(c).toLocaleString();
|
|
3143
3143
|
return r(En, { name: "session-edit-dropdown", columnSelector: (c) => {
|
|
3144
3144
|
const d = r("b", { children: c.user_agent ? c.user_agent : c.id }), l = c.current ? r("span", Object.assign({ className: Ze.description }, { children: r(C.Fragment, { children: [" -", " ", a("labels.currentSession")] }) })) : null;
|
|
3145
3145
|
return r(C.Fragment, { children: [d, l] });
|
|
3146
3146
|
}, data: n, contentSelector: (c) => r(C.Fragment, { children: [r(W, Object.assign({ hidden: !c.ip_address }, { children: [r(ze, { children: a("headlines.ipAddress") }), c.ip_address] })), r(W, { children: [r(ze, { children: a("headlines.lastUsed") }), s(c.last_used)] }), r(W, { children: [r(ze, { children: a("headlines.createdAt") }), s(c.created_at)] }), i != null && i.includes(c.id) ? r(W, { children: [r(ze, { children: a("headlines.revokeSession") }), r(ee, Object.assign({ uiAction: "session-delete", dangerous: !0, onClick: (d) => o(d, c.id), loadingSpinnerPosition: "right" }, { children: a("labels.revoke") }))] }) : null] }), checkedItemID: e, setCheckedItemID: t });
|
|
3147
|
-
},
|
|
3147
|
+
}, Wr = ({ checkedItemID: n, setCheckedItemID: e, onDelete: t, onConnect: o, authAppSetUp: i, allowDeletion: a }) => {
|
|
3148
3148
|
const { t: s } = (0, _.useContext)(Z.TranslateContext), c = r("span", Object.assign({ className: Ze.description }, { children: i ? r(C.Fragment, { children: [" -", " ", s("labels.configured")] }) : null })), d = r(C.Fragment, { children: [s("labels.authenticatorAppManage"), " ", c] });
|
|
3149
3149
|
return r(Ft, Object.assign({ name: "authenticator-app-manage-dropdown", title: d, checkedItemID: n, setCheckedItemID: e }, { children: [r(ze, { children: s(i ? "headlines.authenticatorAppAlreadySetUp" : "headlines.authenticatorAppNotSetUp") }), r(W, { children: [s(i ? "texts.authenticatorAppAlreadySetUp" : "texts.authenticatorAppNotSetUp"), r("br", {}), r(ee, i ? Object.assign({ hidden: !a, uiAction: "auth-app-remove", onClick: (l) => t(l), loadingSpinnerPosition: "right", dangerous: !0 }, { children: s("labels.delete") }) : Object.assign({ uiAction: "auth-app-add", onClick: (l) => o(l), loadingSpinnerPosition: "right" }, { children: s("labels.authenticatorAppAdd") }))] })] }));
|
|
3150
3150
|
};
|
|
3151
|
-
var
|
|
3151
|
+
var je = function(n, e, t, o) {
|
|
3152
3152
|
return new (t || (t = Promise))(function(i, a) {
|
|
3153
3153
|
function s(l) {
|
|
3154
3154
|
try {
|
|
@@ -3173,57 +3173,57 @@ var De = function(n, e, t, o) {
|
|
|
3173
3173
|
d((o = o.apply(n, [])).next());
|
|
3174
3174
|
});
|
|
3175
3175
|
};
|
|
3176
|
-
const
|
|
3177
|
-
var e, t, o, i, a, s, c, d, l, u, h, f, m, x, O, A, S, P, j, U, N, ae, be,
|
|
3178
|
-
const { t: Q } = (0, _.useContext)(Z.TranslateContext), { hanko: ye, setLoadingAction: w, stateHandler: ke, setUIState: J, setPage: R } = (0, _.useContext)(pe), { flowState: E } = Me(n.state), [Se, V] = (0, _.useState)(""), F = (q, B, Qe) =>
|
|
3176
|
+
const qi = (n) => {
|
|
3177
|
+
var e, t, o, i, a, s, c, d, l, u, h, f, m, x, O, A, S, P, j, U, N, ae, be, se, we, M, H, _e, Ue, Ie, Ne, le, ce, me, De, k, p, y, $, K, ge, He, We, Fe, g, v, b, D, T, I, z, X;
|
|
3178
|
+
const { t: Q } = (0, _.useContext)(Z.TranslateContext), { hanko: ye, setLoadingAction: w, stateHandler: ke, setUIState: J, setPage: R } = (0, _.useContext)(pe), { flowState: E } = Me(n.state), [Se, V] = (0, _.useState)(""), F = (q, B, Qe) => je(void 0, void 0, void 0, function* () {
|
|
3179
3179
|
q.preventDefault(), w(B);
|
|
3180
3180
|
const In = yield Qe();
|
|
3181
|
-
In != null && In.error || (V(null), yield new Promise((
|
|
3182
|
-
}), qe = (q) =>
|
|
3181
|
+
In != null && In.error || (V(null), yield new Promise((Fi) => setTimeout(Fi, 360))), w(null), yield ye.flow.run(In, ke);
|
|
3182
|
+
}), qe = (q) => je(void 0, void 0, void 0, function* () {
|
|
3183
3183
|
return F(q, "password-delete", E.actions.password_delete(null).run);
|
|
3184
|
-
}), it = (q) =>
|
|
3184
|
+
}), it = (q) => je(void 0, void 0, void 0, function* () {
|
|
3185
3185
|
return F(q, "username-delete", E.actions.username_delete(null).run);
|
|
3186
|
-
}), fe = (q, B, Qe) =>
|
|
3186
|
+
}), fe = (q, B, Qe) => je(void 0, void 0, void 0, function* () {
|
|
3187
3187
|
return F(q, "webauthn-credential-rename", E.actions.webauthn_credential_rename({ passkey_id: B, passkey_name: Qe }).run);
|
|
3188
|
-
}), Vt = (q) =>
|
|
3188
|
+
}), Vt = (q) => je(void 0, void 0, void 0, function* () {
|
|
3189
3189
|
return F(q, "account_delete", E.actions.account_delete(null).run);
|
|
3190
|
-
}), at = (q) => (q.preventDefault(), R(r(
|
|
3191
|
-
return r(
|
|
3190
|
+
}), at = (q) => (q.preventDefault(), R(r(qi, { state: E, enablePasskeys: n.enablePasskeys })), Promise.resolve());
|
|
3191
|
+
return r(Pe, { children: [r(Ee, { state: ((e = E == null ? void 0 : E.error) === null || e === void 0 ? void 0 : e.code) !== "form_data_invalid_error" ? E : null }), !((o = (t = E.actions).username_create) === null || o === void 0) && o.call(t, null) || !((a = (i = E.actions).username_update) === null || a === void 0) && a.call(i, null) || !((c = (s = E.actions).username_delete) === null || c === void 0) && c.call(s, null) ? r(C.Fragment, { children: [r(he, { children: Q("labels.username") }), E.payload.user.username ? r(W, { children: r("b", { children: E.payload.user.username.username }) }) : null, r(W, { children: [!((l = (d = E.actions).username_create) === null || l === void 0) && l.call(d, null) ? r(Xo, { inputs: E.actions.username_create(null).inputs, hasUsername: !!E.payload.user.username, allowUsernameDeletion: !!(!((h = (u = E.actions).username_delete) === null || h === void 0) && h.call(u, null)), onUsernameSubmit: (q, B) => je(void 0, void 0, void 0, function* () {
|
|
3192
3192
|
return F(q, "username-set", E.actions.username_create({ username: B }).run);
|
|
3193
|
-
}), onUsernameDelete: it, checkedItemID: Se, setCheckedItemID: V }) : null, !((m = (f = E.actions).username_update) === null || m === void 0) && m.call(f, null) ? r(Xo, { inputs: E.actions.username_update(null).inputs, hasUsername: !!E.payload.user.username, allowUsernameDeletion: !!(!((O = (x = E.actions).username_delete) === null || O === void 0) && O.call(x, null)), onUsernameSubmit: (q, B) =>
|
|
3193
|
+
}), onUsernameDelete: it, checkedItemID: Se, setCheckedItemID: V }) : null, !((m = (f = E.actions).username_update) === null || m === void 0) && m.call(f, null) ? r(Xo, { inputs: E.actions.username_update(null).inputs, hasUsername: !!E.payload.user.username, allowUsernameDeletion: !!(!((O = (x = E.actions).username_delete) === null || O === void 0) && O.call(x, null)), onUsernameSubmit: (q, B) => je(void 0, void 0, void 0, function* () {
|
|
3194
3194
|
return F(q, "username-set", E.actions.username_update({ username: B }).run);
|
|
3195
|
-
}), onUsernameDelete: it, checkedItemID: Se, setCheckedItemID: V }) : null] })] }) : null, !((S = (A = E.payload) === null || A === void 0 ? void 0 : A.user) === null || S === void 0) && S.emails || !((j = (P = E.actions).email_create) === null || j === void 0) && j.call(P, null) ? r(C.Fragment, { children: [r(he, { children: Q("headlines.profileEmails") }), r(W, { children: [r(
|
|
3195
|
+
}), onUsernameDelete: it, checkedItemID: Se, setCheckedItemID: V }) : null] })] }) : null, !((S = (A = E.payload) === null || A === void 0 ? void 0 : A.user) === null || S === void 0) && S.emails || !((j = (P = E.actions).email_create) === null || j === void 0) && j.call(P, null) ? r(C.Fragment, { children: [r(he, { children: Q("headlines.profileEmails") }), r(W, { children: [r(Mr, { emails: E.payload.user.emails, onEmailDelete: (q, B) => je(void 0, void 0, void 0, function* () {
|
|
3196
3196
|
return F(q, "email-delete", E.actions.email_delete({ email_id: B }).run);
|
|
3197
|
-
}), onEmailSetPrimary: (q, B) =>
|
|
3197
|
+
}), onEmailSetPrimary: (q, B) => je(void 0, void 0, void 0, function* () {
|
|
3198
3198
|
return F(q, "email-set-primary", E.actions.email_set_primary({ email_id: B }).run);
|
|
3199
|
-
}), onEmailVerify: (q, B) =>
|
|
3199
|
+
}), onEmailVerify: (q, B) => je(void 0, void 0, void 0, function* () {
|
|
3200
3200
|
return F(q, "email-verify", E.actions.email_verify({ email_id: B }).run);
|
|
3201
|
-
}), checkedItemID: Se, setCheckedItemID: V, deletableEmailIDs: (ae = (N = (U = E.actions).email_delete) === null || N === void 0 ? void 0 : N.call(U, null).inputs.email_id.allowed_values) === null || ae === void 0 ? void 0 : ae.map((q) => q.value) }), !((
|
|
3201
|
+
}), checkedItemID: Se, setCheckedItemID: V, deletableEmailIDs: (ae = (N = (U = E.actions).email_delete) === null || N === void 0 ? void 0 : N.call(U, null).inputs.email_id.allowed_values) === null || ae === void 0 ? void 0 : ae.map((q) => q.value) }), !((se = (be = E.actions).email_create) === null || se === void 0) && se.call(be, null) ? r(qr, { inputs: E.actions.email_create(null).inputs, onEmailSubmit: (q, B) => je(void 0, void 0, void 0, function* () {
|
|
3202
3202
|
return J((Qe) => Object.assign(Object.assign({}, Qe), { email: B })), F(q, "email-submit", E.actions.email_create({ email: B }).run);
|
|
3203
|
-
}), checkedItemID: Se, setCheckedItemID: V }) : null] })] }) : null, !((M = (we = E.actions).password_create) === null || M === void 0) && M.call(we, null) ? r(C.Fragment, { children: [r(he, { children: Q("headlines.profilePassword") }), r(W, { children: r(Qo, { inputs: E.actions.password_create(null).inputs, onPasswordSubmit: (q, B) =>
|
|
3203
|
+
}), checkedItemID: Se, setCheckedItemID: V }) : null] })] }) : null, !((M = (we = E.actions).password_create) === null || M === void 0) && M.call(we, null) ? r(C.Fragment, { children: [r(he, { children: Q("headlines.profilePassword") }), r(W, { children: r(Qo, { inputs: E.actions.password_create(null).inputs, onPasswordSubmit: (q, B) => je(void 0, void 0, void 0, function* () {
|
|
3204
3204
|
return F(q, "password-submit", E.actions.password_create({ password: B }).run);
|
|
3205
|
-
}), onPasswordDelete: qe, checkedItemID: Se, setCheckedItemID: V }) })] }) : null, !((_e = (H = E.actions).password_update) === null || _e === void 0) && _e.call(H, null) ? r(C.Fragment, { children: [r(he, { children: Q("headlines.profilePassword") }), r(W, { children: r(Qo, { allowPasswordDelete: !!(!((
|
|
3205
|
+
}), onPasswordDelete: qe, checkedItemID: Se, setCheckedItemID: V }) })] }) : null, !((_e = (H = E.actions).password_update) === null || _e === void 0) && _e.call(H, null) ? r(C.Fragment, { children: [r(he, { children: Q("headlines.profilePassword") }), r(W, { children: r(Qo, { allowPasswordDelete: !!(!((Ie = (Ue = E.actions).password_delete) === null || Ie === void 0) && Ie.call(Ue, null)), inputs: E.actions.password_update(null).inputs, onPasswordSubmit: (q, B) => je(void 0, void 0, void 0, function* () {
|
|
3206
3206
|
return F(q, "password-submit", E.actions.password_update({ password: B }).run);
|
|
3207
|
-
}), onPasswordDelete: qe, checkedItemID: Se, setCheckedItemID: V, passwordExists: !0 }) })] }) : null, n.enablePasskeys && (!((
|
|
3207
|
+
}), onPasswordDelete: qe, checkedItemID: Se, setCheckedItemID: V, passwordExists: !0 }) })] }) : null, n.enablePasskeys && (!((le = (Ne = E.payload) === null || Ne === void 0 ? void 0 : Ne.user) === null || le === void 0) && le.passkeys || !((me = (ce = E.actions).webauthn_credential_create) === null || me === void 0) && me.call(ce, null)) ? r(C.Fragment, { children: [r(he, { children: Q("headlines.profilePasskeys") }), r(W, { children: [r(Yo, { onBack: at, onCredentialNameSubmit: fe, onCredentialDelete: (q, B) => je(void 0, void 0, void 0, function* () {
|
|
3208
3208
|
return F(q, "passkey-delete", E.actions.webauthn_credential_delete({ passkey_id: B }).run);
|
|
3209
|
-
}), credentials: E.payload.user.passkeys, setError: null, checkedItemID: Se, setCheckedItemID: V, allowCredentialDeletion: !!(!((k = (
|
|
3209
|
+
}), credentials: E.payload.user.passkeys, setError: null, checkedItemID: Se, setCheckedItemID: V, allowCredentialDeletion: !!(!((k = (De = E.actions).webauthn_credential_delete) === null || k === void 0) && k.call(De, null)), credentialType: "passkey" }), !((y = (p = E.actions).webauthn_credential_create) === null || y === void 0) && y.call(p, null) ? r(Go, { credentialType: "passkey", onCredentialSubmit: (q) => je(void 0, void 0, void 0, function* () {
|
|
3210
3210
|
return F(q, "passkey-submit", E.actions.webauthn_credential_create(null).run);
|
|
3211
|
-
}), setError: null, checkedItemID: Se, setCheckedItemID: V }) : null] })] }) : null, !((
|
|
3211
|
+
}), setError: null, checkedItemID: Se, setCheckedItemID: V }) : null] })] }) : null, !(($ = E.payload.user.mfa_config) === null || $ === void 0) && $.security_keys_enabled ? r(C.Fragment, { children: [r(he, { children: Q("headlines.securityKeys") }), r(W, { children: [r(Yo, { onBack: at, onCredentialNameSubmit: fe, onCredentialDelete: (q, B) => je(void 0, void 0, void 0, function* () {
|
|
3212
3212
|
return F(q, "security-key-delete", E.actions.security_key_delete({ security_key_id: B }).run);
|
|
3213
|
-
}), credentials: E.payload.user.security_keys, setError: null, checkedItemID: Se, setCheckedItemID: V, allowCredentialDeletion: !!(!((ge = (K = E.actions).security_key_delete) === null || ge === void 0) && ge.call(K, null)), credentialType: "security-key" }), !((We = (He = E.actions).security_key_create) === null || We === void 0) && We.call(He, null) ? r(Go, { credentialType: "security-key", onCredentialSubmit: (q) =>
|
|
3213
|
+
}), credentials: E.payload.user.security_keys, setError: null, checkedItemID: Se, setCheckedItemID: V, allowCredentialDeletion: !!(!((ge = (K = E.actions).security_key_delete) === null || ge === void 0) && ge.call(K, null)), credentialType: "security-key" }), !((We = (He = E.actions).security_key_create) === null || We === void 0) && We.call(He, null) ? r(Go, { credentialType: "security-key", onCredentialSubmit: (q) => je(void 0, void 0, void 0, function* () {
|
|
3214
3214
|
return F(q, "security-key-submit", E.actions.security_key_create(null).run);
|
|
3215
|
-
}), setError: null, checkedItemID: Se, setCheckedItemID: V }) : null] })] }) : null, !((Fe = E.payload.user.mfa_config) === null || Fe === void 0) && Fe.totp_enabled ? r(C.Fragment, { children: [r(he, { children: Q("headlines.authenticatorApp") }), r(W, { children: r(
|
|
3215
|
+
}), setError: null, checkedItemID: Se, setCheckedItemID: V }) : null] })] }) : null, !((Fe = E.payload.user.mfa_config) === null || Fe === void 0) && Fe.totp_enabled ? r(C.Fragment, { children: [r(he, { children: Q("headlines.authenticatorApp") }), r(W, { children: r(Wr, { onConnect: (q) => je(void 0, void 0, void 0, function* () {
|
|
3216
3216
|
return F(q, "auth-app-add", E.actions.continue_to_otp_secret_creation(null).run);
|
|
3217
|
-
}), onDelete: (q) =>
|
|
3217
|
+
}), onDelete: (q) => je(void 0, void 0, void 0, function* () {
|
|
3218
3218
|
return F(q, "auth-app-remove", E.actions.otp_secret_delete(null).run);
|
|
3219
|
-
}), allowDeletion: !!(!((v = (g = E.actions).otp_secret_delete) === null || v === void 0) && v.call(g, null)), authAppSetUp: (b = E.payload.user.mfa_config) === null || b === void 0 ? void 0 : b.auth_app_set_up, checkedItemID: Se, setCheckedItemID: V }) })] }) : null, E.payload.sessions ? r(C.Fragment, { children: [r(he, { children: Q("headlines.profileSessions") }), r(W, { children: r(
|
|
3219
|
+
}), allowDeletion: !!(!((v = (g = E.actions).otp_secret_delete) === null || v === void 0) && v.call(g, null)), authAppSetUp: (b = E.payload.user.mfa_config) === null || b === void 0 ? void 0 : b.auth_app_set_up, checkedItemID: Se, setCheckedItemID: V }) })] }) : null, E.payload.sessions ? r(C.Fragment, { children: [r(he, { children: Q("headlines.profileSessions") }), r(W, { children: r(Hr, { sessions: E.payload.sessions, setError: null, checkedItemID: Se, setCheckedItemID: V, onSessionDelete: (q, B) => je(void 0, void 0, void 0, function* () {
|
|
3220
3220
|
return F(q, "session-delete", E.actions.session_delete({ session_id: B }).run);
|
|
3221
|
-
}), deletableSessionIDs: (I = (
|
|
3222
|
-
},
|
|
3221
|
+
}), deletableSessionIDs: (I = (T = (D = E.actions).session_delete) === null || T === void 0 ? void 0 : T.call(D, null).inputs.session_id.allowed_values) === null || I === void 0 ? void 0 : I.map((q) => q.value) }) })] }) : null, !((X = (z = E.actions).account_delete) === null || X === void 0) && X.call(z, null) ? r(C.Fragment, { children: [r(Pn, {}), r(W, { children: r(yo, {}) }), r(W, { children: r(oe, Object.assign({ onSubmit: (q) => (q.preventDefault(), R(r(zr, { onBack: at, onAccountDelete: Vt })), Promise.resolve()) }, { children: r(ne, Object.assign({ dangerous: !0 }, { children: Q("headlines.deleteAccount") })) })) })] }) : null] });
|
|
3222
|
+
}, Fr = qi, ei = ({ state: n, error: e }) => {
|
|
3223
3223
|
const { t } = (0, _.useContext)(Z.TranslateContext), { init: o, componentName: i } = (0, _.useContext)(pe), a = (0, _.useCallback)(() => o(i), [i, o]);
|
|
3224
3224
|
return (0, _.useEffect)(() => (addEventListener("hankoAuthSuccess", a), () => {
|
|
3225
3225
|
removeEventListener("hankoAuthSuccess", a);
|
|
3226
|
-
}), [a]), r(
|
|
3226
|
+
}), [a]), r(Pe, { children: [r(he, { children: t("headlines.error") }), r(Ee, { state: n, error: e }), r(oe, Object.assign({ onSubmit: (s) => {
|
|
3227
3227
|
s.preventDefault(), a();
|
|
3228
3228
|
} }, { children: r(ne, Object.assign({ uiAction: "retry" }, { children: t("labels.continue") })) }))] });
|
|
3229
3229
|
};
|
|
@@ -3252,10 +3252,10 @@ var zn = function(n, e, t, o) {
|
|
|
3252
3252
|
d((o = o.apply(n, [])).next());
|
|
3253
3253
|
});
|
|
3254
3254
|
};
|
|
3255
|
-
const
|
|
3255
|
+
const Kr = (n) => {
|
|
3256
3256
|
var e, t, o, i;
|
|
3257
3257
|
const { t: a } = (0, _.useContext)(Z.TranslateContext), { hanko: s, stateHandler: c, setLoadingAction: d } = (0, _.useContext)(pe), { flowState: l } = Me(n.state), [u, h] = (0, _.useState)();
|
|
3258
|
-
return r(C.Fragment, { children: [r(
|
|
3258
|
+
return r(C.Fragment, { children: [r(Pe, { children: [r(he, { children: a("headlines.createEmail") }), r(Ee, { state: l }), r(oe, Object.assign({ onSubmit: (f) => zn(void 0, void 0, void 0, function* () {
|
|
3259
3259
|
f.preventDefault(), d("email-submit");
|
|
3260
3260
|
const m = yield l.actions.email_address_set({ email: u }).run();
|
|
3261
3261
|
d(null), yield s.flow.run(m, c);
|
|
@@ -3292,10 +3292,10 @@ var Hn = function(n, e, t, o) {
|
|
|
3292
3292
|
d((o = o.apply(n, [])).next());
|
|
3293
3293
|
});
|
|
3294
3294
|
};
|
|
3295
|
-
const
|
|
3295
|
+
const Vr = (n) => {
|
|
3296
3296
|
var e, t, o, i;
|
|
3297
3297
|
const { t: a } = (0, _.useContext)(Z.TranslateContext), { hanko: s, stateHandler: c, setLoadingAction: d } = (0, _.useContext)(pe), { flowState: l } = Me(n.state), [u, h] = (0, _.useState)();
|
|
3298
|
-
return r(C.Fragment, { children: [r(
|
|
3298
|
+
return r(C.Fragment, { children: [r(Pe, { children: [r(he, { children: a("headlines.createUsername") }), r(Ee, { state: l }), r(oe, Object.assign({ onSubmit: (f) => Hn(void 0, void 0, void 0, function* () {
|
|
3299
3299
|
f.preventDefault(), d("username-set");
|
|
3300
3300
|
const m = yield l.actions.username_create({ username: u }).run();
|
|
3301
3301
|
d(null), yield s.flow.run(m, c);
|
|
@@ -3332,10 +3332,10 @@ var en = function(n, e, t, o) {
|
|
|
3332
3332
|
d((o = o.apply(n, [])).next());
|
|
3333
3333
|
});
|
|
3334
3334
|
};
|
|
3335
|
-
const
|
|
3335
|
+
const Br = (n) => {
|
|
3336
3336
|
var e, t, o, i, a, s, c, d, l, u, h, f;
|
|
3337
3337
|
const { t: m } = (0, _.useContext)(Z.TranslateContext), { hanko: x, setLoadingAction: O, stateHandler: A } = (0, _.useContext)(pe), { flowState: S } = Me(n.state);
|
|
3338
|
-
return r(C.Fragment, { children: [r(
|
|
3338
|
+
return r(C.Fragment, { children: [r(Pe, { children: [r(he, { children: m("headlines.setupLoginMethod") }), r(Ee, { flowError: S == null ? void 0 : S.error }), r(W, { children: m("texts.selectLoginMethodForFutureLogins") }), r(oe, Object.assign({ hidden: !(!((t = (e = S.actions).continue_to_passkey_registration) === null || t === void 0) && t.call(e, null)), onSubmit: (P) => en(void 0, void 0, void 0, function* () {
|
|
3339
3339
|
P.preventDefault(), O("passkey-submit");
|
|
3340
3340
|
const j = yield S.actions.continue_to_passkey_registration(null).run();
|
|
3341
3341
|
O(null), yield x.flow.run(j, A);
|
|
@@ -3378,7 +3378,7 @@ var Wn = function(n, e, t, o) {
|
|
|
3378
3378
|
d((o = o.apply(n, [])).next());
|
|
3379
3379
|
});
|
|
3380
3380
|
};
|
|
3381
|
-
const
|
|
3381
|
+
const Zr = (n) => {
|
|
3382
3382
|
var e, t, o, i;
|
|
3383
3383
|
const { t: a } = (0, _.useContext)(Z.TranslateContext), { flowState: s } = Me(n.state), { hanko: c, setLoadingAction: d, stateHandler: l } = (0, _.useContext)(pe), [u, h] = (0, _.useState)([]), f = (0, _.useCallback)((m) => Wn(void 0, void 0, void 0, function* () {
|
|
3384
3384
|
d("passcode-submit");
|
|
@@ -3388,7 +3388,7 @@ const Fr = (n) => {
|
|
|
3388
3388
|
return (0, _.useEffect)(() => {
|
|
3389
3389
|
var m;
|
|
3390
3390
|
((m = s.error) === null || m === void 0 ? void 0 : m.code) === "passcode_invalid" && h([]);
|
|
3391
|
-
}, [s]), r(C.Fragment, { children: [r(
|
|
3391
|
+
}, [s]), r(C.Fragment, { children: [r(Pe, { children: [r(he, { children: a("headlines.otpLogin") }), r(Ee, { state: s }), r(W, { children: a("texts.otpLogin") }), r(oe, Object.assign({ onSubmit: (m) => Wn(void 0, void 0, void 0, function* () {
|
|
3392
3392
|
return m.preventDefault(), f(u.join(""));
|
|
3393
3393
|
}) }, { children: [r(ko, { onInput: (m) => {
|
|
3394
3394
|
if (h(m), m.filter((x) => x !== "").length === 6) return f(m.join(""));
|
|
@@ -3423,10 +3423,10 @@ var ti = function(n, e, t, o) {
|
|
|
3423
3423
|
d((o = o.apply(n, [])).next());
|
|
3424
3424
|
});
|
|
3425
3425
|
};
|
|
3426
|
-
const
|
|
3426
|
+
const Jr = (n) => {
|
|
3427
3427
|
var e, t, o, i;
|
|
3428
3428
|
const { t: a } = (0, _.useContext)(Z.TranslateContext), { hanko: s, setLoadingAction: c, stateHandler: d } = (0, _.useContext)(pe), { flowState: l } = Me(n.state);
|
|
3429
|
-
return r(C.Fragment, { children: [r(
|
|
3429
|
+
return r(C.Fragment, { children: [r(Pe, { children: [r(he, { children: a("headlines.securityKeyLogin") }), r(Ee, { state: l }), r(W, { children: a("texts.securityKeyLogin") }), r(oe, Object.assign({ onSubmit: (u) => ti(void 0, void 0, void 0, function* () {
|
|
3430
3430
|
u.preventDefault(), c("passkey-submit");
|
|
3431
3431
|
const h = yield l.actions.webauthn_generate_request_options(null).run();
|
|
3432
3432
|
yield s.flow.run(h, d);
|
|
@@ -3461,7 +3461,7 @@ var tn = function(n, e, t, o) {
|
|
|
3461
3461
|
d((o = o.apply(n, [])).next());
|
|
3462
3462
|
});
|
|
3463
3463
|
};
|
|
3464
|
-
const
|
|
3464
|
+
const Yr = (n) => {
|
|
3465
3465
|
var e, t, o, i, a, s, c, d;
|
|
3466
3466
|
const { t: l } = (0, _.useContext)(Z.TranslateContext), { hanko: u, setLoadingAction: h, stateHandler: f } = (0, _.useContext)(pe), { flowState: m } = Me(n.state), x = (S) => tn(void 0, void 0, void 0, function* () {
|
|
3467
3467
|
S.preventDefault(), h("passcode-submit");
|
|
@@ -3475,7 +3475,7 @@ const Vr = (n) => {
|
|
|
3475
3475
|
const { actions: S } = m;
|
|
3476
3476
|
return S.continue_to_security_key_creation && !S.continue_to_otp_secret_creation ? x : !S.continue_to_security_key_creation && S.continue_to_otp_secret_creation ? O : void 0;
|
|
3477
3477
|
}, [m, x, O]);
|
|
3478
|
-
return r(C.Fragment, { children: [r(
|
|
3478
|
+
return r(C.Fragment, { children: [r(Pe, { children: [r(he, { children: l("headlines.mfaSetUp") }), r(Ee, { flowError: m == null ? void 0 : m.error }), r(W, { children: l("texts.mfaSetUp") }), A ? r(oe, Object.assign({ onSubmit: A }, { children: r(ne, Object.assign({ uiAction: "passcode-submit" }, { children: l("labels.continue") })) })) : r(C.Fragment, { children: [r(oe, Object.assign({ hidden: !(!((t = (e = m.actions).continue_to_security_key_creation) === null || t === void 0) && t.call(e, null)), onSubmit: x }, { children: r(ne, Object.assign({ secondary: !0, uiAction: "passcode-submit", icon: "securityKey" }, { children: l("labels.securityKey") })) })), r(oe, Object.assign({ hidden: !(!((i = (o = m.actions).continue_to_otp_secret_creation) === null || i === void 0) && i.call(o, null)), onSubmit: O }, { children: r(ne, Object.assign({ secondary: !0, uiAction: "password-submit", icon: "qrCodeScanner" }, { children: l("labels.authenticatorApp") })) }))] })] }), r(Re, { children: [r(ee, Object.assign({ uiAction: "back", onClick: (S) => tn(void 0, void 0, void 0, function* () {
|
|
3479
3479
|
S.preventDefault(), h("back");
|
|
3480
3480
|
const P = yield m.actions.back(null).run();
|
|
3481
3481
|
h(null), yield u.flow.run(P, f);
|
|
@@ -3489,7 +3489,7 @@ var gn = G(560), jt = {};
|
|
|
3489
3489
|
jt.setAttributes = nt(), jt.insert = (n) => {
|
|
3490
3490
|
window._hankoStyle = n;
|
|
3491
3491
|
}, jt.domAPI = tt(), jt.insertStyleElement = ot(), et()(gn.A, jt);
|
|
3492
|
-
const
|
|
3492
|
+
const Qr = gn.A && gn.A.locals ? gn.A.locals : void 0, Gr = ({ children: n, text: e }) => {
|
|
3493
3493
|
const { t } = (0, _.useContext)(Z.TranslateContext), [o, i] = (0, _.useState)(!1);
|
|
3494
3494
|
return r("section", Object.assign({ className: zt.clipboardContainer }, { children: [r("div", { children: [n, " "] }), r("div", Object.assign({ className: zt.clipboardIcon, onClick: (a) => {
|
|
3495
3495
|
return s = void 0, c = void 0, l = function* () {
|
|
@@ -3524,9 +3524,9 @@ const Br = gn.A && gn.A.locals ? gn.A.locals : void 0, Zr = ({ children: n, text
|
|
|
3524
3524
|
});
|
|
3525
3525
|
var s, c, d, l;
|
|
3526
3526
|
} }, { children: o ? r("span", { children: ["- ", t("labels.copied")] }) : r(Ht, { name: "copy", secondary: !0, size: 13 }) }))] }));
|
|
3527
|
-
},
|
|
3527
|
+
}, Xr = ({ src: n, secret: e }) => {
|
|
3528
3528
|
const { t } = (0, _.useContext)(Z.TranslateContext);
|
|
3529
|
-
return r("div", Object.assign({ className:
|
|
3529
|
+
return r("div", Object.assign({ className: Qr.otpCreationDetails }, { children: [r("img", { alt: "QR-Code", src: n }), r(Pn, {}), r(Gr, Object.assign({ text: e }, { children: t("texts.otpSecretKey") })), r("div", { children: e })] }));
|
|
3530
3530
|
};
|
|
3531
3531
|
var Fn = function(n, e, t, o) {
|
|
3532
3532
|
return new (t || (t = Promise))(function(i, a) {
|
|
@@ -3553,7 +3553,7 @@ var Fn = function(n, e, t, o) {
|
|
|
3553
3553
|
d((o = o.apply(n, [])).next());
|
|
3554
3554
|
});
|
|
3555
3555
|
};
|
|
3556
|
-
const
|
|
3556
|
+
const es = (n) => {
|
|
3557
3557
|
const { t: e } = (0, _.useContext)(Z.TranslateContext), { flowState: t } = Me(n.state), { hanko: o, uiState: i, setLoadingAction: a, stateHandler: s } = (0, _.useContext)(pe), [c, d] = (0, _.useState)([]), l = (0, _.useCallback)((u) => Fn(void 0, void 0, void 0, function* () {
|
|
3558
3558
|
a("passcode-submit");
|
|
3559
3559
|
const h = yield t.actions.otp_code_verify({ otp_code: u }).run();
|
|
@@ -3562,7 +3562,7 @@ const Yr = (n) => {
|
|
|
3562
3562
|
return (0, _.useEffect)(() => {
|
|
3563
3563
|
var u;
|
|
3564
3564
|
((u = t.error) === null || u === void 0 ? void 0 : u.code) === "passcode_invalid" && d([]);
|
|
3565
|
-
}, [t]), r(C.Fragment, { children: [r(
|
|
3565
|
+
}, [t]), r(C.Fragment, { children: [r(Pe, { children: [r(he, { children: e("headlines.otpSetUp") }), r(Ee, { state: t }), r(W, { children: e("texts.otpScanQRCode") }), r(Xr, { src: t.payload.otp_image_source, secret: t.payload.otp_secret }), r(W, { children: e("texts.otpEnterVerificationCode") }), r(oe, Object.assign({ onSubmit: (u) => Fn(void 0, void 0, void 0, function* () {
|
|
3566
3566
|
return u.preventDefault(), l(c.join(""));
|
|
3567
3567
|
}) }, { children: [r(ko, { onInput: (u) => {
|
|
3568
3568
|
if (d(u), u.filter((h) => h !== "").length === 6) return l(u.join(""));
|
|
@@ -3597,10 +3597,10 @@ var ni = function(n, e, t, o) {
|
|
|
3597
3597
|
d((o = o.apply(n, [])).next());
|
|
3598
3598
|
});
|
|
3599
3599
|
};
|
|
3600
|
-
const
|
|
3600
|
+
const ts = (n) => {
|
|
3601
3601
|
var e, t, o, i;
|
|
3602
3602
|
const { t: a } = (0, _.useContext)(Z.TranslateContext), { hanko: s, setLoadingAction: c, stateHandler: d } = (0, _.useContext)(pe), { flowState: l } = Me(n.state);
|
|
3603
|
-
return r(C.Fragment, { children: [r(
|
|
3603
|
+
return r(C.Fragment, { children: [r(Pe, { children: [r(he, { children: a("headlines.securityKeySetUp") }), r(Ee, { state: l }), r(W, { children: a("texts.securityKeySetUp") }), r(oe, Object.assign({ onSubmit: (u) => ni(void 0, void 0, void 0, function* () {
|
|
3604
3604
|
u.preventDefault(), c("passkey-submit");
|
|
3605
3605
|
const h = yield l.actions.webauthn_generate_creation_options(null).run();
|
|
3606
3606
|
yield s.flow.run(h, d);
|
|
@@ -3635,10 +3635,10 @@ var Kn = function(n, e, t, o) {
|
|
|
3635
3635
|
d((o = o.apply(n, [])).next());
|
|
3636
3636
|
});
|
|
3637
3637
|
};
|
|
3638
|
-
const
|
|
3638
|
+
const ns = (n) => {
|
|
3639
3639
|
var e, t, o, i;
|
|
3640
3640
|
const { t: a } = (0, _.useContext)(Z.TranslateContext), { hanko: s, setLoadingAction: c, stateHandler: d } = (0, _.useContext)(pe), { flowState: l } = Me(n.state);
|
|
3641
|
-
return r(C.Fragment, { children: [r(
|
|
3641
|
+
return r(C.Fragment, { children: [r(Pe, { children: [r(he, { children: a("headlines.trustDevice") }), r(Ee, { flowError: l == null ? void 0 : l.error }), r(W, { children: a("texts.trustDevice") }), r(oe, Object.assign({ onSubmit: (u) => Kn(void 0, void 0, void 0, function* () {
|
|
3642
3642
|
u.preventDefault(), c("trust-device-submit");
|
|
3643
3643
|
const h = yield l.actions.trust_device(null).run();
|
|
3644
3644
|
c(null), yield s.flow.run(h, d);
|
|
@@ -3677,39 +3677,39 @@ var Ke = function(n, e, t, o) {
|
|
|
3677
3677
|
d((o = o.apply(n, [])).next());
|
|
3678
3678
|
});
|
|
3679
3679
|
};
|
|
3680
|
-
const nn = "flow-state", pe = (0, C.createContext)(null),
|
|
3680
|
+
const nn = "flow-state", pe = (0, C.createContext)(null), os = (n) => {
|
|
3681
3681
|
var { lang: e, experimental: t = "", prefilledEmail: o, prefilledUsername: i, globalOptions: a, createWebauthnAbortSignal: s } = n, c = function(p, y) {
|
|
3682
|
-
var
|
|
3683
|
-
for (var K in p) Object.prototype.hasOwnProperty.call(p, K) && y.indexOf(K) < 0 && (
|
|
3682
|
+
var $ = {};
|
|
3683
|
+
for (var K in p) Object.prototype.hasOwnProperty.call(p, K) && y.indexOf(K) < 0 && ($[K] = p[K]);
|
|
3684
3684
|
if (p != null && typeof Object.getOwnPropertySymbols == "function") {
|
|
3685
3685
|
var ge = 0;
|
|
3686
|
-
for (K = Object.getOwnPropertySymbols(p); ge < K.length; ge++) y.indexOf(K[ge]) < 0 && Object.prototype.propertyIsEnumerable.call(p, K[ge]) && (
|
|
3686
|
+
for (K = Object.getOwnPropertySymbols(p); ge < K.length; ge++) y.indexOf(K[ge]) < 0 && Object.prototype.propertyIsEnumerable.call(p, K[ge]) && ($[K[ge]] = p[K[ge]]);
|
|
3687
3687
|
}
|
|
3688
|
-
return
|
|
3688
|
+
return $;
|
|
3689
3689
|
}(n, ["lang", "experimental", "prefilledEmail", "prefilledUsername", "globalOptions", "createWebauthnAbortSignal"]);
|
|
3690
3690
|
const { hanko: d, injectStyles: l, hidePasskeyButtonOnLogin: u, translations: h, translationsLocation: f, fallbackLanguage: m } = a;
|
|
3691
3691
|
d.setLang((e == null ? void 0 : e.toString()) || m);
|
|
3692
|
-
const x = (0, _.useRef)(null), O = (0, _.useMemo)(() => `${a.storageKey}_last_login`, [a.storageKey]), [A, S] = (0, _.useState)(c.componentName), P = (0, _.useMemo)(() => t.split(" ").filter((p) => p.length).map((p) => p), [t]), j = (0, _.useMemo)(() => r(
|
|
3692
|
+
const x = (0, _.useRef)(null), O = (0, _.useMemo)(() => `${a.storageKey}_last_login`, [a.storageKey]), [A, S] = (0, _.useState)(c.componentName), P = (0, _.useMemo)(() => t.split(" ").filter((p) => p.length).map((p) => p), [t]), j = (0, _.useMemo)(() => r(Cr, {}), []), [U, N] = (0, _.useState)(j), [, ae] = (0, _.useState)(d), [be, se] = (0, _.useState)(), [we, M] = (0, _.useState)({ email: o, username: i }), H = (0, _.useCallback)((p) => {
|
|
3693
3693
|
M((y) => Object.assign(Object.assign({}, y), { loadingAction: p, succeededAction: null, error: null, lastAction: p || y.lastAction }));
|
|
3694
3694
|
}, []), _e = (0, _.useCallback)((p) => {
|
|
3695
3695
|
M((y) => Object.assign(Object.assign({}, y), { succeededAction: p, loadingAction: null }));
|
|
3696
|
-
}, []),
|
|
3696
|
+
}, []), Ue = (0, _.useCallback)(() => {
|
|
3697
3697
|
M((p) => Object.assign(Object.assign({}, p), { succeededAction: p.lastAction, loadingAction: null, error: null }));
|
|
3698
|
-
}, []),
|
|
3699
|
-
var
|
|
3700
|
-
(
|
|
3701
|
-
},
|
|
3702
|
-
H(null), N(r(ei, { error: p instanceof
|
|
3703
|
-
},
|
|
3704
|
-
|
|
3698
|
+
}, []), Ie = (0, _.useMemo)(() => !!we.loadingAction || !!we.succeededAction, [we]), Ne = function(p, y) {
|
|
3699
|
+
var $;
|
|
3700
|
+
($ = x.current) === null || $ === void 0 || $.dispatchEvent(new CustomEvent(p, { detail: y, bubbles: !1, composed: !0 }));
|
|
3701
|
+
}, le = (p) => {
|
|
3702
|
+
H(null), N(r(ei, { error: p instanceof Ce ? p : new Le(p) }));
|
|
3703
|
+
}, ce = (0, _.useMemo)(() => ({ onError: (p) => {
|
|
3704
|
+
le(p);
|
|
3705
3705
|
}, preflight(p) {
|
|
3706
3706
|
return Ke(this, void 0, void 0, function* () {
|
|
3707
|
-
const y = yield gt.isConditionalMediationAvailable(),
|
|
3708
|
-
return d.flow.run(K,
|
|
3707
|
+
const y = yield gt.isConditionalMediationAvailable(), $ = yield gt.isPlatformAuthenticatorAvailable(), K = yield p.actions.register_client_capabilities({ webauthn_available: k, webauthn_conditional_mediation_available: y, webauthn_platform_authenticator_available: $ }).run();
|
|
3708
|
+
return d.flow.run(K, ce);
|
|
3709
3709
|
});
|
|
3710
3710
|
}, login_init(p) {
|
|
3711
3711
|
return Ke(this, void 0, void 0, function* () {
|
|
3712
|
-
N(r(
|
|
3712
|
+
N(r(Pr, { state: p })), function() {
|
|
3713
3713
|
Ke(this, void 0, void 0, function* () {
|
|
3714
3714
|
if (p.payload.request_options) {
|
|
3715
3715
|
let y;
|
|
@@ -3719,17 +3719,17 @@ const nn = "flow-state", pe = (0, C.createContext)(null), Xr = (n) => {
|
|
|
3719
3719
|
return;
|
|
3720
3720
|
}
|
|
3721
3721
|
H("passkey-submit");
|
|
3722
|
-
const
|
|
3723
|
-
H(null), yield d.flow.run(
|
|
3722
|
+
const $ = yield p.actions.webauthn_verify_assertion_response({ assertion_response: y }).run();
|
|
3723
|
+
H(null), yield d.flow.run($, ce);
|
|
3724
3724
|
}
|
|
3725
3725
|
});
|
|
3726
3726
|
}();
|
|
3727
3727
|
});
|
|
3728
3728
|
}, passcode_confirmation(p) {
|
|
3729
|
-
N(r(
|
|
3729
|
+
N(r(Dr, { state: p }));
|
|
3730
3730
|
}, login_otp(p) {
|
|
3731
3731
|
return Ke(this, void 0, void 0, function* () {
|
|
3732
|
-
N(r(
|
|
3732
|
+
N(r(Zr, { state: p }));
|
|
3733
3733
|
});
|
|
3734
3734
|
}, login_passkey(p) {
|
|
3735
3735
|
return Ke(this, void 0, void 0, function* () {
|
|
@@ -3739,13 +3739,13 @@ const nn = "flow-state", pe = (0, C.createContext)(null), Xr = (n) => {
|
|
|
3739
3739
|
y = yield Bo(Object.assign(Object.assign({}, p.payload.request_options), { signal: s() }));
|
|
3740
3740
|
} catch {
|
|
3741
3741
|
const ge = yield p.actions.back(null).run();
|
|
3742
|
-
return M((He) => Object.assign(Object.assign({}, He), { error: p.error, loadingAction: null })), d.flow.run(ge,
|
|
3742
|
+
return M((He) => Object.assign(Object.assign({}, He), { error: p.error, loadingAction: null })), d.flow.run(ge, ce);
|
|
3743
3743
|
}
|
|
3744
|
-
const
|
|
3745
|
-
H(null), yield d.flow.run(
|
|
3744
|
+
const $ = yield p.actions.webauthn_verify_assertion_response({ assertion_response: y }).run();
|
|
3745
|
+
H(null), yield d.flow.run($, ce);
|
|
3746
3746
|
});
|
|
3747
3747
|
}, onboarding_create_passkey(p) {
|
|
3748
|
-
N(r(
|
|
3748
|
+
N(r(jr, { state: p }));
|
|
3749
3749
|
}, onboarding_verify_passkey_attestation(p) {
|
|
3750
3750
|
return Ke(this, void 0, void 0, function* () {
|
|
3751
3751
|
let y;
|
|
@@ -3753,10 +3753,10 @@ const nn = "flow-state", pe = (0, C.createContext)(null), Xr = (n) => {
|
|
|
3753
3753
|
y = yield Vo(Object.assign(Object.assign({}, p.payload.creation_options), { signal: s() }));
|
|
3754
3754
|
} catch {
|
|
3755
3755
|
const ge = yield p.actions.back(null).run();
|
|
3756
|
-
return H(null), yield d.flow.run(ge,
|
|
3756
|
+
return H(null), yield d.flow.run(ge, ce), void M((He) => Object.assign(Object.assign({}, He), { error: { code: "webauthn_credential_already_exists", message: "Webauthn credential already exists" } }));
|
|
3757
3757
|
}
|
|
3758
|
-
const
|
|
3759
|
-
H(null), yield d.flow.run(
|
|
3758
|
+
const $ = yield p.actions.webauthn_verify_attestation_response({ public_key: y }).run();
|
|
3759
|
+
H(null), yield d.flow.run($, ce);
|
|
3760
3760
|
});
|
|
3761
3761
|
}, webauthn_credential_verification(p) {
|
|
3762
3762
|
return Ke(this, void 0, void 0, function* () {
|
|
@@ -3765,105 +3765,105 @@ const nn = "flow-state", pe = (0, C.createContext)(null), Xr = (n) => {
|
|
|
3765
3765
|
y = yield Vo(Object.assign(Object.assign({}, p.payload.creation_options), { signal: s() }));
|
|
3766
3766
|
} catch {
|
|
3767
3767
|
const ge = yield p.actions.back(null).run();
|
|
3768
|
-
return H(null), yield d.flow.run(ge,
|
|
3768
|
+
return H(null), yield d.flow.run(ge, ce), void M((He) => Object.assign(Object.assign({}, He), { error: { code: "webauthn_credential_already_exists", message: "Webauthn credential already exists" } }));
|
|
3769
3769
|
}
|
|
3770
|
-
const
|
|
3771
|
-
yield d.flow.run(
|
|
3770
|
+
const $ = yield p.actions.webauthn_verify_attestation_response({ public_key: y }).run();
|
|
3771
|
+
yield d.flow.run($, ce);
|
|
3772
3772
|
});
|
|
3773
3773
|
}, login_password(p) {
|
|
3774
|
-
N(r(
|
|
3774
|
+
N(r(Lr, { state: p }));
|
|
3775
3775
|
}, login_password_recovery(p) {
|
|
3776
|
-
N(r(
|
|
3776
|
+
N(r($r, { state: p }));
|
|
3777
3777
|
}, login_security_key(p) {
|
|
3778
3778
|
return Ke(this, void 0, void 0, function* () {
|
|
3779
|
-
N(r(
|
|
3779
|
+
N(r(Jr, { state: p }));
|
|
3780
3780
|
});
|
|
3781
3781
|
}, mfa_method_chooser(p) {
|
|
3782
3782
|
return Ke(this, void 0, void 0, function* () {
|
|
3783
|
-
N(r(
|
|
3783
|
+
N(r(Yr, { state: p }));
|
|
3784
3784
|
});
|
|
3785
3785
|
}, mfa_otp_secret_creation(p) {
|
|
3786
3786
|
return Ke(this, void 0, void 0, function* () {
|
|
3787
|
-
N(r(
|
|
3787
|
+
N(r(es, { state: p }));
|
|
3788
3788
|
});
|
|
3789
3789
|
}, mfa_security_key_creation(p) {
|
|
3790
3790
|
return Ke(this, void 0, void 0, function* () {
|
|
3791
|
-
N(r(
|
|
3791
|
+
N(r(ts, { state: p }));
|
|
3792
3792
|
});
|
|
3793
3793
|
}, login_method_chooser(p) {
|
|
3794
|
-
N(r(
|
|
3794
|
+
N(r(Tr, { state: p }));
|
|
3795
3795
|
}, registration_init(p) {
|
|
3796
|
-
N(r(
|
|
3796
|
+
N(r(Ur, { state: p }));
|
|
3797
3797
|
}, password_creation(p) {
|
|
3798
|
-
N(r(
|
|
3798
|
+
N(r(Nr, { state: p }));
|
|
3799
3799
|
}, success(p) {
|
|
3800
3800
|
var y;
|
|
3801
3801
|
!((y = p.payload) === null || y === void 0) && y.last_login && localStorage.setItem(O, JSON.stringify(p.payload.last_login));
|
|
3802
|
-
const { claims:
|
|
3803
|
-
d.relay.dispatchSessionCreatedEvent({ claims:
|
|
3802
|
+
const { claims: $ } = p.payload, K = Date.parse($.expiration) - Date.now();
|
|
3803
|
+
d.relay.dispatchSessionCreatedEvent({ claims: $, expirationSeconds: K }), Ue();
|
|
3804
3804
|
}, profile_init(p) {
|
|
3805
|
-
N(r(
|
|
3805
|
+
N(r(Fr, { state: p, enablePasskeys: a.enablePasskeys }));
|
|
3806
3806
|
}, thirdparty(p) {
|
|
3807
3807
|
return Ke(this, void 0, void 0, function* () {
|
|
3808
3808
|
const y = new URLSearchParams(window.location.search).get("hanko_token");
|
|
3809
3809
|
if (y && y.length > 0) {
|
|
3810
|
-
const
|
|
3811
|
-
|
|
3812
|
-
} else M((
|
|
3810
|
+
const $ = new URLSearchParams(window.location.search), K = yield p.actions.exchange_token({ token: $.get("hanko_token") }).run();
|
|
3811
|
+
$.delete("hanko_token"), $.delete("saml_hint"), history.replaceState(null, null, window.location.pathname + ($.size < 1 ? "" : `?${$.toString()}`)), yield d.flow.run(K, ce);
|
|
3812
|
+
} else M(($) => Object.assign(Object.assign({}, $), { lastAction: null })), localStorage.setItem(nn, JSON.stringify(p.toJSON())), window.location.assign(p.payload.redirect_url);
|
|
3813
3813
|
});
|
|
3814
3814
|
}, error(p) {
|
|
3815
3815
|
H(null), N(r(ei, { state: p }));
|
|
3816
3816
|
}, onboarding_email(p) {
|
|
3817
|
-
N(r(
|
|
3817
|
+
N(r(Kr, { state: p }));
|
|
3818
3818
|
}, onboarding_username(p) {
|
|
3819
|
-
N(r(
|
|
3819
|
+
N(r(Vr, { state: p }));
|
|
3820
3820
|
}, credential_onboarding_chooser(p) {
|
|
3821
|
-
N(r(
|
|
3821
|
+
N(r(Br, { state: p }));
|
|
3822
3822
|
}, account_deleted(p) {
|
|
3823
3823
|
return Ke(this, void 0, void 0, function* () {
|
|
3824
3824
|
yield d.user.logout(), d.relay.dispatchUserDeletedEvent();
|
|
3825
3825
|
});
|
|
3826
3826
|
}, device_trust(p) {
|
|
3827
|
-
N(r(
|
|
3828
|
-
} }), [a.enablePasskeys, d,
|
|
3827
|
+
N(r(ns, { state: p }));
|
|
3828
|
+
} }), [a.enablePasskeys, d, Ue, H]), me = (0, _.useCallback)((p) => Ke(void 0, void 0, void 0, function* () {
|
|
3829
3829
|
H("switch-flow");
|
|
3830
3830
|
const y = localStorage.getItem(O);
|
|
3831
|
-
y &&
|
|
3832
|
-
const
|
|
3833
|
-
new URLSearchParams(window.location.search).get("saml_hint") === "idp_initiated" ? yield d.flow.init("/token_exchange", Object.assign({},
|
|
3834
|
-
}), [
|
|
3831
|
+
y && se(JSON.parse(y));
|
|
3832
|
+
const $ = new URLSearchParams(window.location.search).get("hanko_token"), K = localStorage.getItem(nn);
|
|
3833
|
+
new URLSearchParams(window.location.search).get("saml_hint") === "idp_initiated" ? yield d.flow.init("/token_exchange", Object.assign({}, ce)) : K && K.length > 0 && $ && $.length > 0 ? (yield d.flow.fromString(localStorage.getItem(nn), Object.assign({}, ce)), localStorage.removeItem(nn)) : yield d.flow.init(p, Object.assign({}, ce)), H(null);
|
|
3834
|
+
}), [ce]), De = (0, _.useCallback)((p) => {
|
|
3835
3835
|
switch (p) {
|
|
3836
3836
|
case "auth":
|
|
3837
3837
|
case "login":
|
|
3838
|
-
me("/login").catch(
|
|
3838
|
+
me("/login").catch(le);
|
|
3839
3839
|
break;
|
|
3840
3840
|
case "registration":
|
|
3841
|
-
me("/registration").catch(
|
|
3841
|
+
me("/registration").catch(le);
|
|
3842
3842
|
break;
|
|
3843
3843
|
case "profile":
|
|
3844
|
-
me("/profile").catch(
|
|
3844
|
+
me("/profile").catch(le);
|
|
3845
3845
|
}
|
|
3846
3846
|
}, [me]);
|
|
3847
|
-
(0, _.useEffect)(() =>
|
|
3847
|
+
(0, _.useEffect)(() => De(A), []), (0, _.useEffect)(() => {
|
|
3848
3848
|
d.onUserDeleted(() => {
|
|
3849
|
-
|
|
3849
|
+
Ne("onUserDeleted");
|
|
3850
3850
|
}), d.onSessionCreated((p) => {
|
|
3851
|
-
|
|
3851
|
+
Ne("onSessionCreated", p);
|
|
3852
3852
|
}), d.onSessionExpired(() => {
|
|
3853
|
-
|
|
3853
|
+
Ne("onSessionExpired");
|
|
3854
3854
|
}), d.onUserLoggedOut(() => {
|
|
3855
|
-
|
|
3855
|
+
Ne("onUserLoggedOut");
|
|
3856
3856
|
});
|
|
3857
3857
|
}, [d]), (0, _.useMemo)(() => {
|
|
3858
3858
|
const p = () => {
|
|
3859
|
-
|
|
3859
|
+
De(A);
|
|
3860
3860
|
};
|
|
3861
3861
|
["auth", "login", "registration"].includes(A) ? (d.onUserLoggedOut(p), d.onSessionExpired(p), d.onUserDeleted(p)) : A === "profile" && d.onSessionCreated(p);
|
|
3862
3862
|
}, []);
|
|
3863
3863
|
const k = gt.supported();
|
|
3864
|
-
return r(pe.Provider, Object.assign({ value: { init:
|
|
3865
|
-
},
|
|
3866
|
-
var
|
|
3864
|
+
return r(pe.Provider, Object.assign({ value: { init: De, initialComponentName: c.componentName, isDisabled: Ie, setUIState: M, setLoadingAction: H, setSucceededAction: _e, uiState: we, hanko: d, setHanko: ae, lang: (e == null ? void 0 : e.toString()) || m, prefilledEmail: o, prefilledUsername: i, componentName: A, setComponentName: S, experimentalFeatures: P, hidePasskeyButtonOnLogin: u, page: U, setPage: N, stateHandler: ce, lastLogin: be } }, { children: r(Z.TranslateProvider, Object.assign({ translations: h, fallbackLang: m, root: f }, { children: r(sr, Object.assign({ ref: x }, { children: A !== "events" ? r(C.Fragment, { children: [l ? r("style", { dangerouslySetInnerHTML: { __html: window._hankoStyle.innerHTML } }) : null, U] }) : null })) })) }));
|
|
3865
|
+
}, is = { en: G(6).en };
|
|
3866
|
+
var zi = function(n, e, t, o) {
|
|
3867
3867
|
return new (t || (t = Promise))(function(i, a) {
|
|
3868
3868
|
function s(l) {
|
|
3869
3869
|
try {
|
|
@@ -3888,15 +3888,15 @@ var Ni = function(n, e, t, o) {
|
|
|
3888
3888
|
d((o = o.apply(n, [])).next());
|
|
3889
3889
|
});
|
|
3890
3890
|
};
|
|
3891
|
-
const Ge = {}, Kt = (n, e) => r(
|
|
3891
|
+
const Ge = {}, Kt = (n, e) => r(os, Object.assign({ componentName: n, globalOptions: Ge, createWebauthnAbortSignal: ds }, e)), as = (n) => Kt("auth", n), rs = (n) => Kt("login", n), ss = (n) => Kt("registration", n), ls = (n) => Kt("profile", n), cs = (n) => Kt("events", n);
|
|
3892
3892
|
let on = new AbortController();
|
|
3893
|
-
const
|
|
3893
|
+
const ds = () => (on && on.abort(), on = new AbortController(), on.signal), Lt = ({ tagName: n, entryComponent: e, shadow: t = !0, observedAttributes: o }) => zi(void 0, void 0, void 0, function* () {
|
|
3894
3894
|
customElements.get(n) || function(i, a, s, c) {
|
|
3895
3895
|
function d() {
|
|
3896
3896
|
var l = Reflect.construct(HTMLElement, [], d);
|
|
3897
3897
|
return l._vdomComponent = i, l._root = c && c.shadow ? l.attachShadow({ mode: "open" }) : l, l;
|
|
3898
3898
|
}
|
|
3899
|
-
(d.prototype = Object.create(HTMLElement.prototype)).constructor = d, d.prototype.connectedCallback =
|
|
3899
|
+
(d.prototype = Object.create(HTMLElement.prototype)).constructor = d, d.prototype.connectedCallback = Sa, d.prototype.attributeChangedCallback = xa, d.prototype.disconnectedCallback = Aa, s = s || i.observedAttributes || Object.keys(i.propTypes || {}), d.observedAttributes = s, s.forEach(function(l) {
|
|
3900
3900
|
Object.defineProperty(d.prototype, l, { get: function() {
|
|
3901
3901
|
var u, h, f, m;
|
|
3902
3902
|
return (u = (h = this._vdom) == null || (f = h.props) == null ? void 0 : f[l]) != null ? u : (m = this._props) == null ? void 0 : m[l];
|
|
@@ -3907,9 +3907,9 @@ const rs = () => (on && on.abort(), on = new AbortController(), on.signal), Lt =
|
|
|
3907
3907
|
} });
|
|
3908
3908
|
}), customElements.define(a || i.tagName || i.displayName || i.name, d);
|
|
3909
3909
|
}(e, n, o, { shadow: t });
|
|
3910
|
-
}),
|
|
3910
|
+
}), us = (n, e = {}) => zi(void 0, void 0, void 0, function* () {
|
|
3911
3911
|
const t = ["api", "lang", "experimental", "prefilled-email", "entry"];
|
|
3912
|
-
return e = Object.assign({ shadow: !0, injectStyles: !0, enablePasskeys: !0, hidePasskeyButtonOnLogin: !1, translations: null, translationsLocation: "/i18n", fallbackLanguage: "en", storageKey: "hanko", sessionCheckInterval: 3e4 }, e), Ge.hanko = new
|
|
3912
|
+
return e = Object.assign({ shadow: !0, injectStyles: !0, enablePasskeys: !0, hidePasskeyButtonOnLogin: !1, translations: null, translationsLocation: "/i18n", fallbackLanguage: "en", storageKey: "hanko", sessionCheckInterval: 3e4 }, e), Ge.hanko = new Mi(n, { cookieName: e.storageKey, cookieDomain: e.cookieDomain, cookieSameSite: e.cookieSameSite, localStorageKey: e.storageKey, sessionCheckInterval: e.sessionCheckInterval, sessionTokenLocation: e.sessionTokenLocation }), Ge.injectStyles = e.injectStyles, Ge.enablePasskeys = e.enablePasskeys, Ge.hidePasskeyButtonOnLogin = e.hidePasskeyButtonOnLogin, Ge.translations = e.translations || is, Ge.translationsLocation = e.translationsLocation, Ge.fallbackLanguage = e.fallbackLanguage, Ge.storageKey = e.storageKey, yield Promise.all([Lt(Object.assign(Object.assign({}, e), { tagName: "hanko-auth", entryComponent: as, observedAttributes: t })), Lt(Object.assign(Object.assign({}, e), { tagName: "hanko-login", entryComponent: rs, observedAttributes: t })), Lt(Object.assign(Object.assign({}, e), { tagName: "hanko-registration", entryComponent: ss, observedAttributes: t })), Lt(Object.assign(Object.assign({}, e), { tagName: "hanko-profile", entryComponent: ls, observedAttributes: t.filter((o) => ["api", "lang"].includes(o)) })), Lt(Object.assign(Object.assign({}, e), { tagName: "hanko-events", entryComponent: cs, observedAttributes: [] }))]), { hanko: Ge.hanko };
|
|
3913
3913
|
});
|
|
3914
3914
|
ie.fK;
|
|
3915
3915
|
ie.tJ;
|
|
@@ -3917,7 +3917,7 @@ ie.Z7;
|
|
|
3917
3917
|
ie.Q9;
|
|
3918
3918
|
ie.Lv;
|
|
3919
3919
|
ie.qQ;
|
|
3920
|
-
var
|
|
3920
|
+
var hs = ie.I4;
|
|
3921
3921
|
ie.O8;
|
|
3922
3922
|
ie.ku;
|
|
3923
3923
|
ie.ls;
|
|
@@ -3938,16 +3938,16 @@ ie.jx;
|
|
|
3938
3938
|
ie.nX;
|
|
3939
3939
|
ie.Nx;
|
|
3940
3940
|
ie.Sd;
|
|
3941
|
-
var
|
|
3941
|
+
var Hi = ie.kz;
|
|
3942
3942
|
ie.fX;
|
|
3943
3943
|
ie.qA;
|
|
3944
3944
|
ie.tz;
|
|
3945
3945
|
ie.gN;
|
|
3946
|
-
const
|
|
3946
|
+
const ps = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3947
3947
|
__proto__: null,
|
|
3948
|
-
Hanko:
|
|
3949
|
-
register:
|
|
3950
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3948
|
+
Hanko: hs,
|
|
3949
|
+
register: Hi
|
|
3950
|
+
}, Symbol.toStringTag, { value: "Module" })), ms = Vi`
|
|
3951
3951
|
:host {
|
|
3952
3952
|
display: block;
|
|
3953
3953
|
font-family: var(--hot-font-sans);
|
|
@@ -3990,11 +3990,17 @@ const cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3990
3990
|
display: inline-grid;
|
|
3991
3991
|
place-items: center;
|
|
3992
3992
|
/* Use same styling as login-link button */
|
|
3993
|
-
padding: var(
|
|
3993
|
+
padding: var(
|
|
3994
|
+
--login-btn-padding,
|
|
3995
|
+
var(--hot-spacing-x-small) var(--hot-spacing-medium)
|
|
3996
|
+
);
|
|
3994
3997
|
margin: var(--login-btn-margin, 0);
|
|
3995
3998
|
font-size: var(--login-btn-text-size, var(--hot-font-size-medium));
|
|
3996
3999
|
font-family: var(--login-btn-font-family, inherit);
|
|
3997
|
-
border-radius: var(
|
|
4000
|
+
border-radius: var(
|
|
4001
|
+
--login-btn-border-radius,
|
|
4002
|
+
var(--hot-border-radius-medium)
|
|
4003
|
+
);
|
|
3998
4004
|
}
|
|
3999
4005
|
|
|
4000
4006
|
/* Invisible text to reserve button width */
|
|
@@ -4202,9 +4208,15 @@ const cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4202
4208
|
.login-link {
|
|
4203
4209
|
color: var(--login-btn-text-color, white);
|
|
4204
4210
|
font-size: var(--login-btn-text-size, var(--hot-font-size-medium));
|
|
4205
|
-
border-radius: var(
|
|
4211
|
+
border-radius: var(
|
|
4212
|
+
--login-btn-border-radius,
|
|
4213
|
+
var(--hot-border-radius-medium)
|
|
4214
|
+
);
|
|
4206
4215
|
text-decoration: none;
|
|
4207
|
-
padding: var(
|
|
4216
|
+
padding: var(
|
|
4217
|
+
--login-btn-padding,
|
|
4218
|
+
var(--hot-spacing-x-small) var(--hot-spacing-medium)
|
|
4219
|
+
);
|
|
4208
4220
|
margin: var(--login-btn-margin, 0);
|
|
4209
4221
|
display: inline-block;
|
|
4210
4222
|
cursor: pointer;
|
|
@@ -4312,7 +4324,6 @@ const cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4312
4324
|
position: absolute;
|
|
4313
4325
|
right: 0;
|
|
4314
4326
|
background: white;
|
|
4315
|
-
border: 1px solid var(--hot-color-gray-100);
|
|
4316
4327
|
border-radius: var(--hot-border-radius-medium);
|
|
4317
4328
|
z-index: 1000;
|
|
4318
4329
|
opacity: 0;
|
|
@@ -4333,7 +4344,7 @@ const cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4333
4344
|
.dropdown-content.open {
|
|
4334
4345
|
opacity: 1;
|
|
4335
4346
|
visibility: visible;
|
|
4336
|
-
transform: translateY(
|
|
4347
|
+
transform: translateY(-1);
|
|
4337
4348
|
}
|
|
4338
4349
|
|
|
4339
4350
|
.dropdown-content button {
|
|
@@ -4374,14 +4385,74 @@ const cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4374
4385
|
width: 20px;
|
|
4375
4386
|
height: 20px;
|
|
4376
4387
|
}
|
|
4388
|
+
|
|
4389
|
+
/* Bar display mode */
|
|
4390
|
+
|
|
4391
|
+
:host([display="bar"]) {
|
|
4392
|
+
width: 100%;
|
|
4393
|
+
}
|
|
4394
|
+
|
|
4395
|
+
:host([display="bar"]) .dropdown {
|
|
4396
|
+
display: block;
|
|
4397
|
+
width: 100%;
|
|
4398
|
+
}
|
|
4399
|
+
|
|
4400
|
+
.bar-trigger {
|
|
4401
|
+
display: flex;
|
|
4402
|
+
align-items: center;
|
|
4403
|
+
width: 100%;
|
|
4404
|
+
padding: var(--hot-spacing-small) var(--hot-spacing-medium);
|
|
4405
|
+
background: none;
|
|
4406
|
+
border: none;
|
|
4407
|
+
cursor: pointer;
|
|
4408
|
+
gap: var(--hot-spacing-small);
|
|
4409
|
+
}
|
|
4410
|
+
|
|
4411
|
+
.bar-trigger:hover,
|
|
4412
|
+
.bar-trigger:active,
|
|
4413
|
+
.bar-trigger:focus {
|
|
4414
|
+
background: none;
|
|
4415
|
+
outline: none;
|
|
4416
|
+
}
|
|
4417
|
+
|
|
4418
|
+
.bar-info {
|
|
4419
|
+
display: flex;
|
|
4420
|
+
align-items: center;
|
|
4421
|
+
gap: var(--hot-spacing-small);
|
|
4422
|
+
flex: 1;
|
|
4423
|
+
min-width: 0;
|
|
4424
|
+
}
|
|
4425
|
+
|
|
4426
|
+
.bar-email {
|
|
4427
|
+
font-size: var(--hot-font-size-medium);
|
|
4428
|
+
color: var(--hot-color-gray-900);
|
|
4429
|
+
overflow: hidden;
|
|
4430
|
+
text-overflow: ellipsis;
|
|
4431
|
+
white-space: nowrap;
|
|
4432
|
+
}
|
|
4433
|
+
|
|
4434
|
+
.bar-chevron {
|
|
4435
|
+
width: 16px;
|
|
4436
|
+
height: 16px;
|
|
4437
|
+
flex-shrink: 0;
|
|
4438
|
+
color: var(--hot-color-gray-900);
|
|
4439
|
+
}
|
|
4440
|
+
|
|
4441
|
+
/* When bar-trigger is used as a login-link, override width behavior */
|
|
4442
|
+
a.bar-trigger.login-link {
|
|
4443
|
+
display: flex;
|
|
4444
|
+
width: 100%;
|
|
4445
|
+
box-sizing: border-box;
|
|
4446
|
+
text-decoration: none;
|
|
4447
|
+
}
|
|
4377
4448
|
`;
|
|
4378
4449
|
var Qn = { d: (n, e) => {
|
|
4379
4450
|
for (var t in e) Qn.o(e, t) && !Qn.o(n, t) && Object.defineProperty(n, t, { enumerable: !0, get: e[t] });
|
|
4380
|
-
}, o: (n, e) => Object.prototype.hasOwnProperty.call(n, e) },
|
|
4381
|
-
Qn.d(
|
|
4382
|
-
const
|
|
4383
|
-
var
|
|
4384
|
-
const
|
|
4451
|
+
}, o: (n, e) => Object.prototype.hasOwnProperty.call(n, e) }, Wi = {};
|
|
4452
|
+
Qn.d(Wi, { en: () => gs });
|
|
4453
|
+
const gs = { headlines: { error: "An error has occurred", loginEmail: "Sign in or create account", loginEmailNoSignup: "Sign in", loginFinished: "Login successful", loginPasscode: "Enter passcode", loginPassword: "Enter password", registerAuthenticator: "Create a passkey", registerConfirm: "Create account?", registerPassword: "Set new password", otpSetUp: "Set up authenticator app", profileEmails: "Emails", profilePassword: "Password", profilePasskeys: "Passkeys", isPrimaryEmail: "Primary email address", setPrimaryEmail: "Set primary email address", createEmail: "Enter a new email", createUsername: "Enter a new username", emailVerified: "Verified", emailUnverified: "Unverified", emailDelete: "Delete", renamePasskey: "Rename passkey", deletePasskey: "Delete passkey", lastUsedAt: "Last used at", createdAt: "Created at", connectedAccounts: "Connected accounts", deleteAccount: "Delete account", accountNotFound: "Account not found", signIn: "Sign in", signUp: "Create account", selectLoginMethod: "Select login method", setupLoginMethod: "Set up login method", lastUsed: "Last seen", ipAddress: "IP address", revokeSession: "Revoke session", profileSessions: "Sessions", mfaSetUp: "Set up MFA", securityKeySetUp: "Add security key", securityKeyLogin: "Security key", otpLogin: "Authentication code", renameSecurityKey: "Rename security key", deleteSecurityKey: "Delete security key", securityKeys: "Security keys", authenticatorApp: "Authenticator app", authenticatorAppAlreadySetUp: "Authenticator app is set up", authenticatorAppNotSetUp: "Set up authenticator app", trustDevice: "Trust this browser?" }, texts: { enterPasscode: 'Enter the passcode that was sent to "{emailAddress}".', enterPasscodeNoEmail: "Enter the passcode that was sent to your primary email address.", setupPasskey: "Sign in to your account easily and securely with a passkey. Note: Your biometric data is only stored on your devices and will never be shared with anyone.", createAccount: 'No account exists for "{emailAddress}". Do you want to create a new account?', otpEnterVerificationCode: "Enter the one-time password (OTP) obtained from your authenticator app below:", otpScanQRCode: "Scan the QR code using your authenticator app (such as Google Authenticator or any other TOTP app). Alternatively, you can manually enter the OTP secret key into the app.", otpSecretKey: "OTP secret key", passwordFormatHint: "Must be between {minLength} and {maxLength} characters long.", securityKeySetUp: "Use a dedicated security key via USB, Bluetooth, or NFC, or your mobile phone. Connect or activate your security key, then click the button below and follow the prompts to complete the registration.", setPrimaryEmail: "Set this email address to be used for contacting you.", isPrimaryEmail: "This email address will be used to contact you if necessary.", emailVerified: "This email address has been verified.", emailUnverified: "This email address has not been verified.", emailDelete: "If you delete this email address, it can no longer be used to sign in.", renamePasskey: "Set a name for the passkey.", deletePasskey: "Delete this passkey from your account.", deleteAccount: "Are you sure you want to delete this account? All data will be deleted immediately and cannot be recovered.", noAccountExists: 'No account exists for "{emailAddress}".', selectLoginMethodForFutureLogins: "Select one of the following login methods to use for future logins.", howDoYouWantToLogin: "How do you want to login?", mfaSetUp: "Protect your account with Multi-Factor Authentication (MFA). MFA adds an additional step to your login process, ensuring that even if your password or email account is compromised, your account stays secure.", securityKeyLogin: "Connect or activate your security key, then click the button below. Once ready, use it via USB, NFC, your mobile phone. Follow the prompts to complete the login process.", otpLogin: "Open your authenticator app to obtain the one-time password (OTP). Enter the code in the field below to complete your login.", renameSecurityKey: "Set a name for the security key.", deleteSecurityKey: "Delete this security key from your account.", authenticatorAppAlreadySetUp: "Your account is secured with an authenticator app that generates time-based one-time passwords (TOTP) for multi-factor authentication.", authenticatorAppNotSetUp: "Secure your account with an authenticator app that generates time-based one-time passwords (TOTP) for multi-factor authentication.", trustDevice: "If you trust this browser, you won’t need to enter your OTP (One-Time-Password) or use your security key for multi-factor authentication (MFA) the next time you log in." }, labels: { or: "or", no: "no", yes: "yes", email: "Email", continue: "Continue", copied: "copied", skip: "Skip", save: "Save", password: "Password", passkey: "Passkey", passcode: "Passcode", signInPassword: "Sign in with a password", signInPasscode: "Sign in with a passcode", forgotYourPassword: "Forgot your password?", back: "Back", signInPasskey: "Sign in with a passkey", registerAuthenticator: "Create a passkey", signIn: "Sign in", signUp: "Create account", sendNewPasscode: "Send new code", passwordRetryAfter: "Retry in {passwordRetryAfter}", passcodeResendAfter: "Request a new code in {passcodeResendAfter}", unverifiedEmail: "unverified", primaryEmail: "primary", setAsPrimaryEmail: "Set as primary", verify: "Verify", delete: "Delete", newEmailAddress: "New email address", newPassword: "New password", rename: "Rename", newPasskeyName: "New passkey name", addEmail: "Add email", createPasskey: "Create a passkey", webauthnUnsupported: "Passkeys are not supported by your browser", signInWith: "Sign in with {provider}", deleteAccount: "Yes, delete this account.", emailOrUsername: "Email or username", username: "Username", optional: "optional", dontHaveAnAccount: "Don't have an account?", alreadyHaveAnAccount: "Already have an account?", changeUsername: "Change username", setUsername: "Set username", changePassword: "Change password", setPassword: "Set password", revoke: "Revoke", currentSession: "Current session", authenticatorApp: "Authenticator app", securityKey: "Security key", securityKeyUse: "Use security key", newSecurityKeyName: "New security key name", createSecurityKey: "Add a security key", authenticatorAppManage: "Manage authenticator app", authenticatorAppAdd: "Set up", configured: "configured", useAnotherMethod: "Use another method", lastUsed: "Last used", trustDevice: "Trust this browser", staySignedIn: "Stay signed in" }, errors: { somethingWentWrong: "A technical error has occurred. Please try again later.", requestTimeout: "The request timed out.", invalidPassword: "Wrong email or password.", invalidPasscode: "The passcode provided was not correct.", passcodeAttemptsReached: "The passcode was entered incorrectly too many times. Please request a new code.", tooManyRequests: "Too many requests have been made. Please wait to repeat the requested operation.", unauthorized: "Your session has expired. Please log in again.", invalidWebauthnCredential: "This passkey cannot be used anymore.", passcodeExpired: "The passcode has expired. Please request a new one.", userVerification: "User verification required. Please ensure your authenticator device is protected with a PIN or biometric.", emailAddressAlreadyExistsError: "The email address already exists.", maxNumOfEmailAddressesReached: "No further email addresses can be added.", thirdPartyAccessDenied: "Access denied. The request was cancelled by the user or the provider has denied access for other reasons.", thirdPartyMultipleAccounts: "Cannot identify account. The email address is used by multiple accounts.", thirdPartyUnverifiedEmail: "Email verification required. Please verify the used email address with your provider.", signupDisabled: "Account registration is disabled.", handlerNotFoundError: "The current step in your process is not supported by this application version. Please try again later or contact support if the issue persists." }, flowErrors: { technical_error: "A technical error has occurred. Please try again later.", flow_expired_error: "The session has expired, please click the button to restart.", value_invalid_error: "The entered value is invalid.", passcode_invalid: "The passcode provided was not correct.", passkey_invalid: "This passkey cannot be used anymore", passcode_max_attempts_reached: "The passcode was entered incorrectly too many times. Please request a new code.", rate_limit_exceeded: "Too many requests have been made. Please wait to repeat the requested operation.", unknown_username_error: "The username is unknown.", unknown_email_error: "The email address is unknown.", username_already_exists: "The username is already taken.", invalid_username_error: "The username must contain only letters, numbers, and underscores.", email_already_exists: "The email is already taken.", not_found: "The requested resource was not found.", operation_not_permitted_error: "The operation is not permitted.", flow_discontinuity_error: "The process cannot be continued due to user settings or the provider's configuration.", form_data_invalid_error: "The submitted form data contains errors.", unauthorized: "Your session has expired. Please log in again.", value_missing_error: "The value is missing.", value_too_long_error: "Value is too long.", value_too_short_error: "The value is too short.", webauthn_credential_invalid_mfa_only: "This credential can be used as a second factor security key only.", webauthn_credential_already_exists: "The request either timed out, was canceled or the device is already registered. Please try again or try using another device.", platform_authenticator_required: "Your account is configured to use platform authenticators, but your current device or browser does not support this feature. Please try again with a compatible device or browser." } };
|
|
4454
|
+
var fs = Wi.en;
|
|
4455
|
+
const vs = {
|
|
4385
4456
|
headlines: {
|
|
4386
4457
|
error: "Ha ocurrido un error",
|
|
4387
4458
|
loginEmail: "Iniciar sesión o crear cuenta",
|
|
@@ -4566,7 +4637,7 @@ const ps = {
|
|
|
4566
4637
|
platform_authenticator_required: "Su cuenta está configurada para usar autenticadores de plataforma, pero su dispositivo o navegador actual no admite esta función. Inténtelo de nuevo con un dispositivo o navegador compatible.",
|
|
4567
4638
|
third_party_access_denied: "Acceso denegado por el proveedor de terceros. Por favor, inténtelo de nuevo."
|
|
4568
4639
|
}
|
|
4569
|
-
},
|
|
4640
|
+
}, _s = {
|
|
4570
4641
|
headlines: {
|
|
4571
4642
|
error: "Une erreur s'est produite",
|
|
4572
4643
|
loginEmail: "Se connecter ou créer un compte",
|
|
@@ -4751,7 +4822,7 @@ const ps = {
|
|
|
4751
4822
|
platform_authenticator_required: "Votre compte est configuré pour utiliser des authentificateurs de plateforme, mais votre appareil ou navigateur actuel ne prend pas en charge cette fonctionnalité. Réessayez avec un appareil ou navigateur compatible.",
|
|
4752
4823
|
third_party_access_denied: "Accès refusé par le fournisseur tiers. Veuillez réessayer."
|
|
4753
4824
|
}
|
|
4754
|
-
},
|
|
4825
|
+
}, ys = {
|
|
4755
4826
|
headlines: {
|
|
4756
4827
|
error: "Ocorreu um erro",
|
|
4757
4828
|
loginEmail: "Entrar ou criar conta",
|
|
@@ -5001,28 +5072,28 @@ const ps = {
|
|
|
5001
5072
|
connectedToOsmAs: "Conectado ao OSM como",
|
|
5002
5073
|
osmConnectionRequired: "Conexão OSM necessária"
|
|
5003
5074
|
}
|
|
5004
|
-
},
|
|
5005
|
-
var
|
|
5006
|
-
for (var i = o > 1 ? void 0 : o ?
|
|
5075
|
+
}, oi = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20fill='currentColor'%20class='bi%20bi-person-vcard'%20viewBox='0%200%2016%2016'%3e%3cpath%20d='M5%208a2%202%200%201%200%200-4%202%202%200%200%200%200%204m4-2.5a.5.5%200%200%201%20.5-.5h4a.5.5%200%200%201%200%201h-4a.5.5%200%200%201-.5-.5M9%208a.5.5%200%200%201%20.5-.5h4a.5.5%200%200%201%200%201h-4A.5.5%200%200%201%209%208m1%202.5a.5.5%200%200%201%20.5-.5h3a.5.5%200%200%201%200%201h-3a.5.5%200%200%201-.5-.5'/%3e%3cpath%20d='M2%202a2%202%200%200%200-2%202v8a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2V4a2%202%200%200%200-2-2zM1%204a1%201%200%200%201%201-1h12a1%201%200%200%201%201%201v8a1%201%200%200%201-1%201H8.96q.04-.245.04-.5C9%2010.567%207.21%209%205%209c-2.086%200-3.8%201.398-3.984%203.181A1%201%200%200%201%201%2012z'/%3e%3c/svg%3e", ii = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20fill='currentColor'%20class='bi%20bi-box-arrow-right'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill-rule='evenodd'%20d='M10%2012.5a.5.5%200%200%201-.5.5h-8a.5.5%200%200%201-.5-.5v-9a.5.5%200%200%201%20.5-.5h8a.5.5%200%200%201%20.5.5v2a.5.5%200%200%200%201%200v-2A1.5%201.5%200%200%200%209.5%202h-8A1.5%201.5%200%200%200%200%203.5v9A1.5%201.5%200%200%200%201.5%2014h8a1.5%201.5%200%200%200%201.5-1.5v-2a.5.5%200%200%200-1%200z'/%3e%3cpath%20fill-rule='evenodd'%20d='M15.854%208.354a.5.5%200%200%200%200-.708l-3-3a.5.5%200%200%200-.708.708L14.293%207.5H5.5a.5.5%200%200%200%200%201h8.793l-2.147%202.146a.5.5%200%200%200%20.708.708z'/%3e%3c/svg%3e", ai = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20fill='currentColor'%20class='bi%20bi-map'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill-rule='evenodd'%20d='M15.817.113A.5.5%200%200%201%2016%20.5v14a.5.5%200%200%201-.402.49l-5%201a.5.5%200%200%201-.196%200L5.5%2015.01l-4.902.98A.5.5%200%200%201%200%2015.5v-14a.5.5%200%200%201%20.402-.49l5-1a.5.5%200%200%201%20.196%200L10.5.99l4.902-.98a.5.5%200%200%201%20.415.103M10%201.91l-4-.8v12.98l4%20.8zm1%2012.98%204-.8V1.11l-4%20.8zm-6-.8V1.11l-4%20.8v12.98z'/%3e%3c/svg%3e", ri = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20fill='currentColor'%20class='bi%20bi-person-check'%20viewBox='0%200%2016%2016'%3e%3cpath%20d='M12.5%2016a3.5%203.5%200%201%200%200-7%203.5%203.5%200%200%200%200%207m1.679-4.493-1.335%202.226a.75.75%200%200%201-1.174.144l-.774-.773a.5.5%200%200%201%20.708-.708l.547.548%201.17-1.951a.5.5%200%201%201%20.858.514M11%205a3%203%200%201%201-6%200%203%203%200%200%201%206%200M8%207a2%202%200%201%200%200-4%202%202%200%200%200%200%204'/%3e%3cpath%20d='M8.256%2014a4.5%204.5%200%200%201-.229-1.004H3c.001-.246.154-.986.832-1.664C4.484%2010.68%205.711%2010%208%2010q.39%200%20.74.025c.226-.341.496-.65.804-.918Q8.844%209.002%208%209c-5%200-6%203-6%204s1%201%201%201z'/%3e%3c/svg%3e", bs = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20fill='currentColor'%20class='bi%20bi-chevron-down'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill-rule='evenodd'%20d='M1.646%204.646a.5.5%200%200%201%20.708%200L8%2010.293l5.646-5.647a.5.5%200%200%201%20.708.708l-6%206a.5.5%200%200%201-.708%200l-6-6a.5.5%200%200%201%200-.708'/%3e%3c/svg%3e", ks = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20fill='currentColor'%20class='bi%20bi-chevron-up'%20viewBox='0%200%2016%2016'%3e%3cpath%20fill-rule='evenodd'%20d='M7.646%204.646a.5.5%200%200%201%20.708%200l6%206a.5.5%200%200%201-.708.708L8%205.707l-5.646%205.647a.5.5%200%200%201-.708-.708z'/%3e%3c/svg%3e";
|
|
5076
|
+
var ws = Object.defineProperty, Ss = Object.getOwnPropertyDescriptor, de = (n, e, t, o) => {
|
|
5077
|
+
for (var i = o > 1 ? void 0 : o ? Ss(e, t) : e, a = n.length - 1, s; a >= 0; a--)
|
|
5007
5078
|
(s = n[a]) && (i = (o ? s(e, t, i) : s(i)) || i);
|
|
5008
|
-
return o && i &&
|
|
5079
|
+
return o && i && ws(e, t, i), i;
|
|
5009
5080
|
};
|
|
5010
|
-
let
|
|
5011
|
-
async function
|
|
5012
|
-
if (!
|
|
5013
|
-
return
|
|
5081
|
+
let si = !1, $t = null;
|
|
5082
|
+
async function xs(n) {
|
|
5083
|
+
if (!si)
|
|
5084
|
+
return $t || ($t = (async () => {
|
|
5014
5085
|
console.log("[hanko-auth] Pre-registering Hanko translations...");
|
|
5015
5086
|
try {
|
|
5016
|
-
await
|
|
5087
|
+
await Hi(n, {
|
|
5017
5088
|
enablePasskeys: !1,
|
|
5018
5089
|
hidePasskeyButtonOnLogin: !0,
|
|
5019
|
-
translations: { en:
|
|
5090
|
+
translations: { en: fs, es: vs, fr: _s, pt: ys },
|
|
5020
5091
|
fallbackLanguage: "en"
|
|
5021
|
-
}),
|
|
5092
|
+
}), si = !0, console.log("[hanko-auth] Hanko registration complete");
|
|
5022
5093
|
} catch (e) {
|
|
5023
|
-
throw console.error("[hanko-auth] Hanko registration failed:", e),
|
|
5094
|
+
throw console.error("[hanko-auth] Hanko registration failed:", e), $t = null, e;
|
|
5024
5095
|
}
|
|
5025
|
-
})(),
|
|
5096
|
+
})(), $t);
|
|
5026
5097
|
}
|
|
5027
5098
|
const te = {
|
|
5028
5099
|
primary: null,
|
|
@@ -5038,10 +5109,10 @@ const te = {
|
|
|
5038
5109
|
// Shared profile display name
|
|
5039
5110
|
hankoReady: !1
|
|
5040
5111
|
// used for translations
|
|
5041
|
-
},
|
|
5042
|
-
let
|
|
5112
|
+
}, li = (n) => `hanko-verified-${n}`, ci = (n) => `hanko-onboarding-${n}`;
|
|
5113
|
+
let re = class extends Mt {
|
|
5043
5114
|
constructor() {
|
|
5044
|
-
super(...arguments), this.hankoUrlAttr = "", this.basePath = "", this.authPath = "/api/auth/osm", this.osmRequired = !1, this.osmScopes = "read_prefs", this.showProfile = !1, this.redirectAfterLogin = "", this.autoConnect = !1, this.verifySession = !1, this.redirectAfterLogout = "", this.displayNameAttr = "", this.mappingCheckUrl = "", this.appId = "", this.loginUrl = "", this.lang = "en", this.buttonVariant = "plain", this.buttonColor = "primary", this.user = null, this.osmConnected = !1, this.osmData = null, this.osmLoading = !1, this.loading = !0, this.error = null, this.hankoReady = !1, this.profileDisplayName = "", this.hasAppMapping = !1, this.userProfileLanguage = null, this.isOpen = !1, this.handleOutsideClick = (n) => {
|
|
5115
|
+
super(...arguments), this.hankoUrlAttr = "", this.basePath = "", this.authPath = "/api/auth/osm", this.osmRequired = !1, this.osmScopes = "read_prefs", this.showProfile = !1, this.redirectAfterLogin = "", this.autoConnect = !1, this.verifySession = !1, this.redirectAfterLogout = "", this.displayNameAttr = "", this.mappingCheckUrl = "", this.appId = "", this.loginUrl = "", this.lang = "en", this.buttonVariant = "plain", this.buttonColor = "primary", this.display = "default", this.user = null, this.osmConnected = !1, this.osmData = null, this.osmLoading = !1, this.loading = !0, this.error = null, this.hankoReady = !1, this.profileDisplayName = "", this.hasAppMapping = !1, this.userProfileLanguage = null, this.isOpen = !1, this.handleOutsideClick = (n) => {
|
|
5045
5116
|
this.contains(n.target) || this.closeDropdown();
|
|
5046
5117
|
}, this._trailingSlashCache = {}, this._debugMode = !1, this._lastSessionId = null, this._hanko = null, this._isPrimary = !1, this._handleVisibilityChange = () => {
|
|
5047
5118
|
this._isPrimary && !document.hidden && !this.showProfile && !this.user && (this.log("👁️ Page visible, re-checking session..."), this.checkSession());
|
|
@@ -5062,6 +5133,36 @@ let ce = class extends Mt {
|
|
|
5062
5133
|
closeDropdown() {
|
|
5063
5134
|
this.isOpen = !1, document.removeEventListener("click", this.handleOutsideClick);
|
|
5064
5135
|
}
|
|
5136
|
+
/** Dropdown menu content for bar display mode (no email, only action links) */
|
|
5137
|
+
renderBarDropdownContent() {
|
|
5138
|
+
var n;
|
|
5139
|
+
return xe`
|
|
5140
|
+
<div class="dropdown-content ${this.isOpen ? "open" : ""}">
|
|
5141
|
+
<button data-action="profile" @click=${this.handleDropdownSelect}>
|
|
5142
|
+
<img src="${oi}" class="icon" alt="Account icon" />
|
|
5143
|
+
${this.t("myHotAccount")}
|
|
5144
|
+
</button>
|
|
5145
|
+
${this.osmRequired ? this.osmConnected ? xe`
|
|
5146
|
+
<button class="osm-connected" disabled>
|
|
5147
|
+
<img src="${ri}" alt="Check icon" class="icon" />
|
|
5148
|
+
${this.t("connectedToOsm")} (@${(n = this.osmData) == null ? void 0 : n.osm_username})
|
|
5149
|
+
</button>
|
|
5150
|
+
` : xe`
|
|
5151
|
+
<button
|
|
5152
|
+
data-action="connect-osm"
|
|
5153
|
+
@click=${this.handleDropdownSelect}
|
|
5154
|
+
>
|
|
5155
|
+
<img src="${ai}" alt="Check icon" class="icon" />
|
|
5156
|
+
${this.t("connectToOsm")}
|
|
5157
|
+
</button>
|
|
5158
|
+
` : ""}
|
|
5159
|
+
<button data-action="logout" @click=${this.handleDropdownSelect}>
|
|
5160
|
+
<img src="${ii}" alt="Log out icon" class="icon" />
|
|
5161
|
+
${this.t("logOut")}
|
|
5162
|
+
</button>
|
|
5163
|
+
</div>
|
|
5164
|
+
`;
|
|
5165
|
+
}
|
|
5065
5166
|
// Is this the primary instance?
|
|
5066
5167
|
// Get computed hankoUrl (priority: attribute > meta tag > window.HANKO_URL > origin)
|
|
5067
5168
|
get hankoUrl() {
|
|
@@ -5168,8 +5269,8 @@ let ce = class extends Mt {
|
|
|
5168
5269
|
try {
|
|
5169
5270
|
this.log(
|
|
5170
5271
|
"Ensuring Hanko is registered with translations for: en, es, fr, pt"
|
|
5171
|
-
), this.log("Current lang prop:", this.lang), await
|
|
5172
|
-
const { Hanko: n } = await Promise.resolve().then(() =>
|
|
5272
|
+
), this.log("Current lang prop:", this.lang), await xs(this.hankoUrl), this.hankoReady = !0, this._broadcastState();
|
|
5273
|
+
const { Hanko: n } = await Promise.resolve().then(() => ps), e = window.location.hostname, t = e === "localhost" || e === "127.0.0.1", o = e.split("."), i = o.length >= 2 ? `.${o.slice(-2).join(".")}` : e, a = t ? {} : {
|
|
5173
5274
|
cookieDomain: i,
|
|
5174
5275
|
cookieName: "hanko",
|
|
5175
5276
|
cookieSameSite: "lax"
|
|
@@ -5249,7 +5350,7 @@ let ce = class extends Mt {
|
|
|
5249
5350
|
});
|
|
5250
5351
|
}
|
|
5251
5352
|
if (this.user) {
|
|
5252
|
-
const t =
|
|
5353
|
+
const t = li(window.location.hostname), o = sessionStorage.getItem(t);
|
|
5253
5354
|
if (this.verifySession && this.redirectAfterLogin && !o) {
|
|
5254
5355
|
this.log(
|
|
5255
5356
|
"🔄 verify-session enabled, redirecting to callback for app verification..."
|
|
@@ -5331,7 +5432,7 @@ let ce = class extends Mt {
|
|
|
5331
5432
|
async checkAppMapping() {
|
|
5332
5433
|
if (!this.mappingCheckUrl || !this.user)
|
|
5333
5434
|
return !0;
|
|
5334
|
-
const n =
|
|
5435
|
+
const n = ci(window.location.hostname);
|
|
5335
5436
|
if (sessionStorage.getItem(n))
|
|
5336
5437
|
return this.log("✅ Onboarding already completed this session, skipping check"), this.hasAppMapping = !0, !0;
|
|
5337
5438
|
this.log("🔍 Checking app mapping at:", this.mappingCheckUrl);
|
|
@@ -5560,7 +5661,7 @@ let ce = class extends Mt {
|
|
|
5560
5661
|
_clearAuthState() {
|
|
5561
5662
|
const n = window.location.hostname;
|
|
5562
5663
|
document.cookie = `hanko=; path=/; domain=${n}; max-age=0`, document.cookie = "hanko=; path=/; max-age=0", document.cookie = `osm_connection=; path=/; domain=${n}; max-age=0`, document.cookie = "osm_connection=; path=/; max-age=0", this.log("🍪 Cookies cleared");
|
|
5563
|
-
const e =
|
|
5664
|
+
const e = li(n), t = ci(n);
|
|
5564
5665
|
sessionStorage.removeItem(e), sessionStorage.removeItem(t), this.log("🔄 Session flags cleared"), this.user = null, this.osmConnected = !1, this.osmData = null, this.hasAppMapping = !1, this.userProfileLanguage = null, this._isPrimary && this._broadcastState(), this.dispatchEvent(
|
|
5565
5666
|
new CustomEvent("logout", {
|
|
5566
5667
|
bubbles: !0,
|
|
@@ -5644,19 +5745,19 @@ let ce = class extends Mt {
|
|
|
5644
5745
|
"lang:",
|
|
5645
5746
|
this.lang
|
|
5646
5747
|
), this.loading)
|
|
5647
|
-
return
|
|
5748
|
+
return xe`<span class="loading-placeholder"
|
|
5648
5749
|
><span class="loading-placeholder-text">${this.t("logIn")}</span
|
|
5649
5750
|
><span class="spinner-small"></span
|
|
5650
5751
|
></span>`;
|
|
5651
5752
|
if (this.error)
|
|
5652
|
-
return
|
|
5753
|
+
return xe`
|
|
5653
5754
|
<div class="container">
|
|
5654
5755
|
<div class="error">${this.error}</div>
|
|
5655
5756
|
</div>
|
|
5656
5757
|
`;
|
|
5657
5758
|
if (this.user) {
|
|
5658
5759
|
const o = this.osmRequired && !this.osmConnected && !this.osmLoading, i = this.displayNameAttr || this.profileDisplayName || this.user.username || this.user.email || this.user.id, a = i ? i[0].toUpperCase() : "U";
|
|
5659
|
-
return this.showProfile ?
|
|
5760
|
+
return this.showProfile ? xe`
|
|
5660
5761
|
<div class="container">
|
|
5661
5762
|
<div class="profile">
|
|
5662
5763
|
<div class="profile-header">
|
|
@@ -5668,20 +5769,20 @@ let ce = class extends Mt {
|
|
|
5668
5769
|
</div>
|
|
5669
5770
|
</div>
|
|
5670
5771
|
|
|
5671
|
-
${this.osmRequired && this.osmLoading ?
|
|
5772
|
+
${this.osmRequired && this.osmLoading ? xe`
|
|
5672
5773
|
<div class="osm-section">
|
|
5673
5774
|
<div class="loading">
|
|
5674
5775
|
${this.t("checkingOsmConnection")}
|
|
5675
5776
|
</div>
|
|
5676
5777
|
</div>
|
|
5677
|
-
` : this.osmRequired && this.osmConnected ?
|
|
5778
|
+
` : this.osmRequired && this.osmConnected ? xe`
|
|
5678
5779
|
<div class="osm-section">
|
|
5679
5780
|
<div class="osm-connected">
|
|
5680
5781
|
<div class="osm-badge">
|
|
5681
5782
|
<span class="osm-badge-icon">🗺️</span>
|
|
5682
5783
|
<div>
|
|
5683
5784
|
<div>${this.t("connectedToOpenStreetMap")}</div>
|
|
5684
|
-
${(n = this.osmData) != null && n.osm_username ?
|
|
5785
|
+
${(n = this.osmData) != null && n.osm_username ? xe`
|
|
5685
5786
|
<div class="osm-username">
|
|
5686
5787
|
@${this.osmData.osm_username}
|
|
5687
5788
|
</div>
|
|
@@ -5691,16 +5792,16 @@ let ce = class extends Mt {
|
|
|
5691
5792
|
</div>
|
|
5692
5793
|
</div>
|
|
5693
5794
|
` : ""}
|
|
5694
|
-
${o ?
|
|
5795
|
+
${o ? xe`
|
|
5695
5796
|
<div class="osm-section">
|
|
5696
|
-
${this.autoConnect ?
|
|
5797
|
+
${this.autoConnect ? xe`
|
|
5697
5798
|
<div class="osm-connecting">
|
|
5698
5799
|
<div class="spinner"></div>
|
|
5699
5800
|
<div class="connecting-text">
|
|
5700
5801
|
🗺️ ${this.t("connectingToOpenStreetMap")}
|
|
5701
5802
|
</div>
|
|
5702
5803
|
</div>
|
|
5703
|
-
` :
|
|
5804
|
+
` : xe`
|
|
5704
5805
|
<div class="osm-prompt-title">
|
|
5705
5806
|
🌍 ${this.t("osmRequired")}
|
|
5706
5807
|
</div>
|
|
@@ -5722,7 +5823,30 @@ let ce = class extends Mt {
|
|
|
5722
5823
|
</button>
|
|
5723
5824
|
</div>
|
|
5724
5825
|
</div>
|
|
5725
|
-
` :
|
|
5826
|
+
` : this.display === "bar" ? xe`
|
|
5827
|
+
<div class="dropdown">
|
|
5828
|
+
<button
|
|
5829
|
+
@click=${this.toggleDropdown}
|
|
5830
|
+
aria-label="${this.t("openAccountMenu")}"
|
|
5831
|
+
aria-expanded=${this.isOpen}
|
|
5832
|
+
aria-haspopup="true"
|
|
5833
|
+
class="bar-trigger"
|
|
5834
|
+
>
|
|
5835
|
+
<div class="bar-info">
|
|
5836
|
+
<span class="header-avatar">${a}</span>
|
|
5837
|
+
<span class="bar-email"
|
|
5838
|
+
>${this.user.email || this.user.id}</span
|
|
5839
|
+
>
|
|
5840
|
+
</div>
|
|
5841
|
+
<img
|
|
5842
|
+
src="${this.isOpen ? ks : bs}"
|
|
5843
|
+
class="bar-chevron"
|
|
5844
|
+
alt=""
|
|
5845
|
+
/>
|
|
5846
|
+
</button>
|
|
5847
|
+
${this.renderBarDropdownContent()}
|
|
5848
|
+
</div>
|
|
5849
|
+
` : xe`
|
|
5726
5850
|
<div class="dropdown">
|
|
5727
5851
|
<button
|
|
5728
5852
|
@click=${this.toggleDropdown}
|
|
@@ -5733,13 +5857,13 @@ let ce = class extends Mt {
|
|
|
5733
5857
|
>
|
|
5734
5858
|
<span class="header-avatar">${a}</span>
|
|
5735
5859
|
|
|
5736
|
-
${this.osmConnected ?
|
|
5860
|
+
${this.osmConnected ? xe`
|
|
5737
5861
|
<span
|
|
5738
5862
|
class="osm-status-badge connected"
|
|
5739
5863
|
title="${this.t("connectedToOsmAs")} @${(e = this.osmData) == null ? void 0 : e.osm_username}"
|
|
5740
5864
|
>✓</span
|
|
5741
5865
|
>
|
|
5742
|
-
` : this.osmRequired ?
|
|
5866
|
+
` : this.osmRequired ? xe`
|
|
5743
5867
|
<span
|
|
5744
5868
|
class="osm-status-badge required"
|
|
5745
5869
|
title="${this.t("osmConnectionRequired")}"
|
|
@@ -5754,26 +5878,26 @@ let ce = class extends Mt {
|
|
|
5754
5878
|
</div>
|
|
5755
5879
|
</div>
|
|
5756
5880
|
<button data-action="profile" @click=${this.handleDropdownSelect}>
|
|
5757
|
-
<img src="${
|
|
5881
|
+
<img src="${oi}" class="icon" alt="Account icon" />
|
|
5758
5882
|
${this.t("myHotAccount")}
|
|
5759
5883
|
</button>
|
|
5760
|
-
${this.osmRequired ? this.osmConnected ?
|
|
5884
|
+
${this.osmRequired ? this.osmConnected ? xe`
|
|
5761
5885
|
<button class="osm-connected" disabled>
|
|
5762
|
-
<img src="${
|
|
5886
|
+
<img src="${ri}" alt="Check icon" class="icon" />
|
|
5763
5887
|
${this.t("connectedToOsm")}
|
|
5764
5888
|
(@${(t = this.osmData) == null ? void 0 : t.osm_username})
|
|
5765
5889
|
</button>
|
|
5766
|
-
` :
|
|
5890
|
+
` : xe`
|
|
5767
5891
|
<button
|
|
5768
5892
|
data-action="connect-osm"
|
|
5769
5893
|
@click=${this.handleDropdownSelect}
|
|
5770
5894
|
>
|
|
5771
|
-
<img src="${
|
|
5895
|
+
<img src="${ai}" alt="Check icon" class="icon" />
|
|
5772
5896
|
${this.t("connectToOsm")}
|
|
5773
5897
|
</button>
|
|
5774
5898
|
` : ""}
|
|
5775
5899
|
<button data-action="logout" @click=${this.handleDropdownSelect}>
|
|
5776
|
-
<img src="${
|
|
5900
|
+
<img src="${ii}" alt="Log out icon" class="icon" />
|
|
5777
5901
|
${this.t("logOut")}
|
|
5778
5902
|
</button>
|
|
5779
5903
|
</div>
|
|
@@ -5781,7 +5905,7 @@ let ce = class extends Mt {
|
|
|
5781
5905
|
`;
|
|
5782
5906
|
} else {
|
|
5783
5907
|
if (this.showProfile)
|
|
5784
|
-
return this.hankoReady ?
|
|
5908
|
+
return this.hankoReady ? xe`
|
|
5785
5909
|
<div
|
|
5786
5910
|
class="container"
|
|
5787
5911
|
style="
|
|
@@ -5806,14 +5930,14 @@ let ce = class extends Mt {
|
|
|
5806
5930
|
--headline2-font-weight: var(--hot-font-weight-semibold);
|
|
5807
5931
|
"
|
|
5808
5932
|
>
|
|
5809
|
-
${
|
|
5933
|
+
${_a(
|
|
5810
5934
|
this.lang,
|
|
5811
|
-
|
|
5935
|
+
xe`<hanko-auth lang="${this.lang}"></hanko-auth>`
|
|
5812
5936
|
)}
|
|
5813
5937
|
</div>
|
|
5814
5938
|
` : (this.log(
|
|
5815
5939
|
"⏳ Waiting for Hanko registration before rendering form..."
|
|
5816
|
-
),
|
|
5940
|
+
), xe`<span class="loading-placeholder"
|
|
5817
5941
|
><span class="loading-placeholder-text">${this.t("logIn")}</span
|
|
5818
5942
|
><span class="spinner-small"></span
|
|
5819
5943
|
></span>`);
|
|
@@ -5823,7 +5947,7 @@ let ce = class extends Mt {
|
|
|
5823
5947
|
const u = `${this.loginUrl || `${d}/app`}?return_to=${encodeURIComponent(
|
|
5824
5948
|
a
|
|
5825
5949
|
)}${this.osmRequired ? "&osm_required=true" : ""}${c}&lang=${this.lang}`;
|
|
5826
|
-
return
|
|
5950
|
+
return xe`<a
|
|
5827
5951
|
class="login-link ${this.buttonVariant} ${this.buttonColor}"
|
|
5828
5952
|
href="${u}"
|
|
5829
5953
|
@click=${(h) => {
|
|
@@ -5835,98 +5959,101 @@ let ce = class extends Mt {
|
|
|
5835
5959
|
}
|
|
5836
5960
|
}
|
|
5837
5961
|
};
|
|
5838
|
-
|
|
5839
|
-
|
|
5840
|
-
|
|
5841
|
-
],
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
],
|
|
5845
|
-
|
|
5846
|
-
|
|
5847
|
-
],
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
],
|
|
5851
|
-
|
|
5852
|
-
|
|
5853
|
-
],
|
|
5854
|
-
|
|
5855
|
-
|
|
5856
|
-
],
|
|
5857
|
-
|
|
5858
|
-
|
|
5859
|
-
],
|
|
5860
|
-
|
|
5861
|
-
|
|
5862
|
-
],
|
|
5863
|
-
|
|
5864
|
-
|
|
5865
|
-
],
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
],
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
],
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
],
|
|
5875
|
-
|
|
5876
|
-
|
|
5877
|
-
],
|
|
5878
|
-
|
|
5879
|
-
|
|
5880
|
-
],
|
|
5881
|
-
|
|
5882
|
-
|
|
5883
|
-
],
|
|
5884
|
-
|
|
5885
|
-
|
|
5886
|
-
],
|
|
5887
|
-
|
|
5888
|
-
|
|
5889
|
-
],
|
|
5890
|
-
|
|
5962
|
+
re.styles = ms;
|
|
5963
|
+
de([
|
|
5964
|
+
Te({ type: String, attribute: "hanko-url" })
|
|
5965
|
+
], re.prototype, "hankoUrlAttr", 2);
|
|
5966
|
+
de([
|
|
5967
|
+
Te({ type: String, attribute: "base-path" })
|
|
5968
|
+
], re.prototype, "basePath", 2);
|
|
5969
|
+
de([
|
|
5970
|
+
Te({ type: String, attribute: "auth-path" })
|
|
5971
|
+
], re.prototype, "authPath", 2);
|
|
5972
|
+
de([
|
|
5973
|
+
Te({ type: Boolean, attribute: "osm-required" })
|
|
5974
|
+
], re.prototype, "osmRequired", 2);
|
|
5975
|
+
de([
|
|
5976
|
+
Te({ type: String, attribute: "osm-scopes" })
|
|
5977
|
+
], re.prototype, "osmScopes", 2);
|
|
5978
|
+
de([
|
|
5979
|
+
Te({ type: Boolean, attribute: "show-profile" })
|
|
5980
|
+
], re.prototype, "showProfile", 2);
|
|
5981
|
+
de([
|
|
5982
|
+
Te({ type: String, attribute: "redirect-after-login" })
|
|
5983
|
+
], re.prototype, "redirectAfterLogin", 2);
|
|
5984
|
+
de([
|
|
5985
|
+
Te({ type: Boolean, attribute: "auto-connect" })
|
|
5986
|
+
], re.prototype, "autoConnect", 2);
|
|
5987
|
+
de([
|
|
5988
|
+
Te({ type: Boolean, attribute: "verify-session" })
|
|
5989
|
+
], re.prototype, "verifySession", 2);
|
|
5990
|
+
de([
|
|
5991
|
+
Te({ type: String, attribute: "redirect-after-logout" })
|
|
5992
|
+
], re.prototype, "redirectAfterLogout", 2);
|
|
5993
|
+
de([
|
|
5994
|
+
Te({ type: String, attribute: "display-name" })
|
|
5995
|
+
], re.prototype, "displayNameAttr", 2);
|
|
5996
|
+
de([
|
|
5997
|
+
Te({ type: String, attribute: "mapping-check-url" })
|
|
5998
|
+
], re.prototype, "mappingCheckUrl", 2);
|
|
5999
|
+
de([
|
|
6000
|
+
Te({ type: String, attribute: "app-id" })
|
|
6001
|
+
], re.prototype, "appId", 2);
|
|
6002
|
+
de([
|
|
6003
|
+
Te({ type: String, attribute: "login-url" })
|
|
6004
|
+
], re.prototype, "loginUrl", 2);
|
|
6005
|
+
de([
|
|
6006
|
+
Te({ type: String, reflect: !0 })
|
|
6007
|
+
], re.prototype, "lang", 2);
|
|
6008
|
+
de([
|
|
6009
|
+
Te({ type: String, attribute: "button-variant" })
|
|
6010
|
+
], re.prototype, "buttonVariant", 2);
|
|
6011
|
+
de([
|
|
6012
|
+
Te({ type: String, attribute: "button-color" })
|
|
6013
|
+
], re.prototype, "buttonColor", 2);
|
|
6014
|
+
de([
|
|
6015
|
+
Te({ type: String, reflect: !0 })
|
|
6016
|
+
], re.prototype, "display", 2);
|
|
6017
|
+
de([
|
|
5891
6018
|
Ye()
|
|
5892
|
-
],
|
|
5893
|
-
|
|
6019
|
+
], re.prototype, "user", 2);
|
|
6020
|
+
de([
|
|
5894
6021
|
Ye()
|
|
5895
|
-
],
|
|
5896
|
-
|
|
6022
|
+
], re.prototype, "osmConnected", 2);
|
|
6023
|
+
de([
|
|
5897
6024
|
Ye()
|
|
5898
|
-
],
|
|
5899
|
-
|
|
6025
|
+
], re.prototype, "osmData", 2);
|
|
6026
|
+
de([
|
|
5900
6027
|
Ye()
|
|
5901
|
-
],
|
|
5902
|
-
|
|
6028
|
+
], re.prototype, "osmLoading", 2);
|
|
6029
|
+
de([
|
|
5903
6030
|
Ye()
|
|
5904
|
-
],
|
|
5905
|
-
|
|
6031
|
+
], re.prototype, "loading", 2);
|
|
6032
|
+
de([
|
|
5906
6033
|
Ye()
|
|
5907
|
-
],
|
|
5908
|
-
|
|
6034
|
+
], re.prototype, "error", 2);
|
|
6035
|
+
de([
|
|
5909
6036
|
Ye()
|
|
5910
|
-
],
|
|
5911
|
-
|
|
6037
|
+
], re.prototype, "hankoReady", 2);
|
|
6038
|
+
de([
|
|
5912
6039
|
Ye()
|
|
5913
|
-
],
|
|
5914
|
-
|
|
6040
|
+
], re.prototype, "profileDisplayName", 2);
|
|
6041
|
+
de([
|
|
5915
6042
|
Ye()
|
|
5916
|
-
],
|
|
5917
|
-
|
|
6043
|
+
], re.prototype, "hasAppMapping", 2);
|
|
6044
|
+
de([
|
|
5918
6045
|
Ye()
|
|
5919
|
-
],
|
|
5920
|
-
|
|
6046
|
+
], re.prototype, "userProfileLanguage", 2);
|
|
6047
|
+
de([
|
|
5921
6048
|
Ye()
|
|
5922
|
-
],
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
],
|
|
6049
|
+
], re.prototype, "isOpen", 2);
|
|
6050
|
+
re = de([
|
|
6051
|
+
ua("hotosm-auth")
|
|
6052
|
+
], re);
|
|
5926
6053
|
export {
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
6054
|
+
re as HankoAuth,
|
|
6055
|
+
fs as en,
|
|
6056
|
+
vs as es,
|
|
6057
|
+
_s as fr,
|
|
6058
|
+
ys as pt
|
|
5932
6059
|
};
|