@hotosm/hanko-auth 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hanko-auth.esm.js +917 -1027
- package/dist/hanko-auth.iife.js +29 -26
- package/dist/hanko-auth.umd.js +29 -26
- package/package.json +1 -1
- package/src/hanko-auth.ts +16 -18
- package/src/hanko-i18n-en.ts +2 -2
- package/src/hanko-i18n-es.ts +2 -2
- package/src/hanko-i18n-fr.ts +2 -2
- package/src/hanko-i18n-pt.ts +2 -2
- package/src/hanko-translations.ts +20 -5
package/dist/hanko-auth.esm.js
CHANGED
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const
|
|
7
|
-
let
|
|
6
|
+
const on = globalThis, Vn = on.ShadowRoot && (on.ShadyCSS === void 0 || on.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Bn = Symbol(), fo = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
let di = class {
|
|
8
8
|
constructor(t, e, o) {
|
|
9
|
-
if (this._$cssResult$ = !0, o !==
|
|
9
|
+
if (this._$cssResult$ = !0, o !== Bn) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
10
10
|
this.cssText = t, this.t = e;
|
|
11
11
|
}
|
|
12
12
|
get styleSheet() {
|
|
13
13
|
let t = this.o;
|
|
14
14
|
const e = this.t;
|
|
15
|
-
if (
|
|
15
|
+
if (Vn && t === void 0) {
|
|
16
16
|
const o = e !== void 0 && e.length === 1;
|
|
17
|
-
o && (t =
|
|
17
|
+
o && (t = fo.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), o && fo.set(e, t));
|
|
18
18
|
}
|
|
19
19
|
return t;
|
|
20
20
|
}
|
|
@@ -22,33 +22,33 @@ let oi = class {
|
|
|
22
22
|
return this.cssText;
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
const
|
|
25
|
+
const Wi = (n) => new di(typeof n == "string" ? n : n + "", void 0, Bn), Vi = (n, ...t) => {
|
|
26
26
|
const e = n.length === 1 ? n[0] : t.reduce((o, i, r) => 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[r + 1], n[0]);
|
|
31
|
-
return new
|
|
32
|
-
},
|
|
33
|
-
if (
|
|
31
|
+
return new di(e, n, Bn);
|
|
32
|
+
}, Bi = (n, t) => {
|
|
33
|
+
if (Vn) n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
34
34
|
else for (const e of t) {
|
|
35
|
-
const o = document.createElement("style"), i =
|
|
35
|
+
const o = document.createElement("style"), i = on.litNonce;
|
|
36
36
|
i !== void 0 && o.setAttribute("nonce", i), o.textContent = e.cssText, n.appendChild(o);
|
|
37
37
|
}
|
|
38
|
-
},
|
|
38
|
+
}, go = Vn ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
|
|
39
39
|
let e = "";
|
|
40
40
|
for (const o of t.cssRules) e += o.cssText;
|
|
41
|
-
return
|
|
41
|
+
return Wi(e);
|
|
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, tt = globalThis, vo = tt.trustedTypes, ea = vo ? vo.emptyScript : "", Tn = tt.reactiveElementPolyfillSupport, Rt = (n, t) => n, fn = { toAttribute(n, t) {
|
|
49
49
|
switch (t) {
|
|
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: Hi, defineProperty: qi, getOwnPropertyDescriptor: ji, getOwnProperty
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return e;
|
|
76
|
-
} },
|
|
76
|
+
} }, Zn = (n, t) => !Zi(n, t), _o = { attribute: !0, type: String, converter: fn, reflect: !1, useDefault: !1, hasChanged: Zn };
|
|
77
77
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), tt.litPropertyMetadata ?? (tt.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
78
|
let pt = class extends HTMLElement {
|
|
79
79
|
static addInitializer(t) {
|
|
@@ -82,14 +82,14 @@ let pt = class extends HTMLElement {
|
|
|
82
82
|
static get observedAttributes() {
|
|
83
83
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
84
84
|
}
|
|
85
|
-
static createProperty(t, e =
|
|
85
|
+
static createProperty(t, e = _o) {
|
|
86
86
|
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
87
87
|
const o = Symbol(), i = this.getPropertyDescriptor(t, o, e);
|
|
88
|
-
i !== void 0 &&
|
|
88
|
+
i !== void 0 && Ji(this.prototype, t, i);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
static getPropertyDescriptor(t, e, o) {
|
|
92
|
-
const { get: i, set: r } =
|
|
92
|
+
const { get: i, set: r } = Yi(this.prototype, t) ?? { get() {
|
|
93
93
|
return this[e];
|
|
94
94
|
}, set(s) {
|
|
95
95
|
this[e] = s;
|
|
@@ -100,17 +100,17 @@ let pt = class extends HTMLElement {
|
|
|
100
100
|
}, configurable: !0, enumerable: !0 };
|
|
101
101
|
}
|
|
102
102
|
static getPropertyOptions(t) {
|
|
103
|
-
return this.elementProperties.get(t) ??
|
|
103
|
+
return this.elementProperties.get(t) ?? _o;
|
|
104
104
|
}
|
|
105
105
|
static _$Ei() {
|
|
106
|
-
if (this.hasOwnProperty(
|
|
107
|
-
const t =
|
|
106
|
+
if (this.hasOwnProperty(Rt("elementProperties"))) return;
|
|
107
|
+
const t = Xi(this);
|
|
108
108
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
109
109
|
}
|
|
110
110
|
static finalize() {
|
|
111
|
-
if (this.hasOwnProperty(
|
|
112
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
113
|
-
const e = this.properties, o = [...
|
|
111
|
+
if (this.hasOwnProperty(Rt("finalized"))) return;
|
|
112
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Rt("properties"))) {
|
|
113
|
+
const e = this.properties, o = [...Qi(e), ...Gi(e)];
|
|
114
114
|
for (const i of o) this.createProperty(i, e[i]);
|
|
115
115
|
}
|
|
116
116
|
const t = this[Symbol.metadata];
|
|
@@ -129,8 +129,8 @@ let pt = class extends HTMLElement {
|
|
|
129
129
|
const e = [];
|
|
130
130
|
if (Array.isArray(t)) {
|
|
131
131
|
const o = new Set(t.flat(1 / 0).reverse());
|
|
132
|
-
for (const i of o) e.unshift(
|
|
133
|
-
} else t !== void 0 && e.push(
|
|
132
|
+
for (const i of o) e.unshift(go(i));
|
|
133
|
+
} else t !== void 0 && e.push(go(t));
|
|
134
134
|
return e;
|
|
135
135
|
}
|
|
136
136
|
static _$Eu(t, e) {
|
|
@@ -159,7 +159,7 @@ let pt = class extends HTMLElement {
|
|
|
159
159
|
}
|
|
160
160
|
createRenderRoot() {
|
|
161
161
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
162
|
-
return
|
|
162
|
+
return Bi(t, this.constructor.elementStyles), t;
|
|
163
163
|
}
|
|
164
164
|
connectedCallback() {
|
|
165
165
|
var t;
|
|
@@ -184,7 +184,7 @@ let pt = class extends HTMLElement {
|
|
|
184
184
|
var r;
|
|
185
185
|
const o = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, o);
|
|
186
186
|
if (i !== void 0 && o.reflect === !0) {
|
|
187
|
-
const s = (((r = o.converter) == null ? void 0 : r.toAttribute) !== void 0 ? o.converter :
|
|
187
|
+
const s = (((r = o.converter) == null ? void 0 : r.toAttribute) !== void 0 ? o.converter : fn).toAttribute(e, o.type);
|
|
188
188
|
this._$Em = t, s == null ? this.removeAttribute(i) : this.setAttribute(i, s), this._$Em = null;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
@@ -192,7 +192,7 @@ let pt = class extends HTMLElement {
|
|
|
192
192
|
var r, s;
|
|
193
193
|
const o = this.constructor, i = o._$Eh.get(t);
|
|
194
194
|
if (i !== void 0 && this._$Em !== i) {
|
|
195
|
-
const d = o.getPropertyOptions(i), u = typeof d.converter == "function" ? { fromAttribute: d.converter } : ((r = d.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? d.converter :
|
|
195
|
+
const d = o.getPropertyOptions(i), u = typeof d.converter == "function" ? { fromAttribute: d.converter } : ((r = d.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? d.converter : fn;
|
|
196
196
|
this._$Em = i;
|
|
197
197
|
const c = u.fromAttribute(e, d.type);
|
|
198
198
|
this[i] = c ?? ((s = this._$Ej) == null ? void 0 : s.get(i)) ?? c, this._$Em = null;
|
|
@@ -202,7 +202,7 @@ let pt = class extends HTMLElement {
|
|
|
202
202
|
var s;
|
|
203
203
|
if (t !== void 0) {
|
|
204
204
|
const d = this.constructor;
|
|
205
|
-
if (i === !1 && (r = this[t]), o ?? (o = d.getPropertyOptions(t)), !((o.hasChanged ??
|
|
205
|
+
if (i === !1 && (r = this[t]), o ?? (o = d.getPropertyOptions(t)), !((o.hasChanged ?? Zn)(r, e) || o.useDefault && o.reflect && r === ((s = this._$Ej) == null ? void 0 : s.get(t)) && !this.hasAttribute(d._$Eu(t, o)))) return;
|
|
206
206
|
this.C(t, e, o);
|
|
207
207
|
}
|
|
208
208
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
@@ -278,56 +278,56 @@ let pt = class extends HTMLElement {
|
|
|
278
278
|
firstUpdated(t) {
|
|
279
279
|
}
|
|
280
280
|
};
|
|
281
|
-
pt.elementStyles = [], pt.shadowRootOptions = { mode: "open" }, pt[
|
|
281
|
+
pt.elementStyles = [], pt.shadowRootOptions = { mode: "open" }, pt[Rt("elementProperties")] = /* @__PURE__ */ new Map(), pt[Rt("finalized")] = /* @__PURE__ */ new Map(), Tn == null || Tn({ ReactiveElement: pt }), (tt.reactiveElementVersions ?? (tt.reactiveElementVersions = [])).push("2.1.2");
|
|
282
282
|
/**
|
|
283
283
|
* @license
|
|
284
284
|
* Copyright 2017 Google LLC
|
|
285
285
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
286
286
|
*/
|
|
287
|
-
const
|
|
288
|
-
\f\r]`,
|
|
289
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
290
|
-
function
|
|
291
|
-
if (!
|
|
292
|
-
return
|
|
287
|
+
const zt = globalThis, yo = (n) => n, gn = zt.trustedTypes, bo = gn ? gn.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, ui = "$lit$", et = `lit$${Math.random().toFixed(9).slice(2)}$`, hi = "?" + et, ta = `<${hi}>`, dt = document, jt = () => dt.createComment(""), Ht = (n) => n === null || typeof n != "object" && typeof n != "function", Jn = Array.isArray, na = (n) => Jn(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", Un = `[
|
|
288
|
+
\f\r]`, Ct = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, wo = /-->/g, ko = />/g, st = RegExp(`>|${Un}(?:([^\\s"'>=/]+)(${Un}*=${Un}*(?:[^
|
|
289
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), So = /'/g, Co = /"/g, pi = /^(?:script|style|textarea|title)$/i, oa = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), ve = oa(1), gt = Symbol.for("lit-noChange"), Ae = Symbol.for("lit-nothing"), xo = /* @__PURE__ */ new WeakMap(), ct = dt.createTreeWalker(dt, 129);
|
|
290
|
+
function mi(n, t) {
|
|
291
|
+
if (!Jn(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
292
|
+
return bo !== void 0 ? bo.createHTML(t) : t;
|
|
293
293
|
}
|
|
294
|
-
const
|
|
294
|
+
const ia = (n, t) => {
|
|
295
295
|
const e = n.length - 1, o = [];
|
|
296
|
-
let i, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s =
|
|
296
|
+
let i, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = Ct;
|
|
297
297
|
for (let d = 0; d < e; d++) {
|
|
298
298
|
const u = n[d];
|
|
299
299
|
let c, l, m = -1, v = 0;
|
|
300
|
-
for (; v < u.length && (s.lastIndex = v, l = s.exec(u), l !== null); ) v = s.lastIndex, s ===
|
|
300
|
+
for (; v < u.length && (s.lastIndex = v, l = s.exec(u), l !== null); ) v = s.lastIndex, s === Ct ? l[1] === "!--" ? s = wo : l[1] !== void 0 ? s = ko : l[2] !== void 0 ? (pi.test(l[2]) && (i = RegExp("</" + l[2], "g")), s = st) : l[3] !== void 0 && (s = st) : s === st ? l[0] === ">" ? (s = i ?? Ct, m = -1) : l[1] === void 0 ? m = -2 : (m = s.lastIndex - l[2].length, c = l[1], s = l[3] === void 0 ? st : l[3] === '"' ? Co : So) : s === Co || s === So ? s = st : s === wo || s === ko ? s = Ct : (s = st, i = void 0);
|
|
301
301
|
const g = s === st && n[d + 1].startsWith("/>") ? " " : "";
|
|
302
|
-
r += s ===
|
|
302
|
+
r += s === Ct ? u + ta : m >= 0 ? (o.push(c), u.slice(0, m) + ui + u.slice(m) + et + g) : u + et + (m === -2 ? d : g);
|
|
303
303
|
}
|
|
304
|
-
return [
|
|
304
|
+
return [mi(n, r + (n[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), o];
|
|
305
305
|
};
|
|
306
|
-
let
|
|
306
|
+
let qn = class fi {
|
|
307
307
|
constructor({ strings: t, _$litType$: e }, o) {
|
|
308
308
|
let i;
|
|
309
309
|
this.parts = [];
|
|
310
310
|
let r = 0, s = 0;
|
|
311
|
-
const d = t.length - 1, u = this.parts, [c, l] =
|
|
312
|
-
if (this.el =
|
|
311
|
+
const d = t.length - 1, u = this.parts, [c, l] = ia(t, e);
|
|
312
|
+
if (this.el = fi.createElement(c, o), ct.currentNode = this.el.content, e === 2 || e === 3) {
|
|
313
313
|
const m = this.el.content.firstChild;
|
|
314
314
|
m.replaceWith(...m.childNodes);
|
|
315
315
|
}
|
|
316
316
|
for (; (i = ct.nextNode()) !== null && u.length < d; ) {
|
|
317
317
|
if (i.nodeType === 1) {
|
|
318
|
-
if (i.hasAttributes()) for (const m of i.getAttributeNames()) if (m.endsWith(
|
|
318
|
+
if (i.hasAttributes()) for (const m of i.getAttributeNames()) if (m.endsWith(ui)) {
|
|
319
319
|
const v = l[s++], g = i.getAttribute(m).split(et), k = /([.?@])?(.*)/.exec(v);
|
|
320
|
-
u.push({ type: 1, index: r, name: k[2], strings: g, ctor: k[1] === "." ?
|
|
320
|
+
u.push({ type: 1, index: r, name: k[2], strings: g, ctor: k[1] === "." ? ra : k[1] === "?" ? sa : k[1] === "@" ? ca : yn }), i.removeAttribute(m);
|
|
321
321
|
} else m.startsWith(et) && (u.push({ type: 6, index: r }), i.removeAttribute(m));
|
|
322
|
-
if (
|
|
322
|
+
if (pi.test(i.tagName)) {
|
|
323
323
|
const m = i.textContent.split(et), v = m.length - 1;
|
|
324
324
|
if (v > 0) {
|
|
325
|
-
i.textContent =
|
|
326
|
-
for (let g = 0; g < v; g++) i.append(m[g],
|
|
327
|
-
i.append(m[v],
|
|
325
|
+
i.textContent = gn ? gn.emptyScript : "";
|
|
326
|
+
for (let g = 0; g < v; g++) i.append(m[g], jt()), ct.nextNode(), u.push({ type: 2, index: ++r });
|
|
327
|
+
i.append(m[v], jt());
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
|
-
} else if (i.nodeType === 8) if (i.data ===
|
|
330
|
+
} else if (i.nodeType === 8) if (i.data === hi) u.push({ type: 2, index: r });
|
|
331
331
|
else {
|
|
332
332
|
let m = -1;
|
|
333
333
|
for (; (m = i.data.indexOf(et, m + 1)) !== -1; ) u.push({ type: 7, index: r }), m += et.length - 1;
|
|
@@ -344,10 +344,10 @@ function vt(n, t, e = n, o) {
|
|
|
344
344
|
var s, d;
|
|
345
345
|
if (t === gt) return t;
|
|
346
346
|
let i = o !== void 0 ? (s = e._$Co) == null ? void 0 : s[o] : e._$Cl;
|
|
347
|
-
const r =
|
|
347
|
+
const r = Ht(t) ? void 0 : t._$litDirective$;
|
|
348
348
|
return (i == null ? void 0 : i.constructor) !== r && ((d = i == null ? void 0 : i._$AO) == null || d.call(i, !1), r === void 0 ? i = void 0 : (i = new r(n), i._$AT(n, e, o)), o !== void 0 ? (e._$Co ?? (e._$Co = []))[o] = i : e._$Cl = i), i !== void 0 && (t = vt(n, i._$AS(n, t.values), i, o)), t;
|
|
349
349
|
}
|
|
350
|
-
let
|
|
350
|
+
let aa = class {
|
|
351
351
|
constructor(t, e) {
|
|
352
352
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
353
353
|
}
|
|
@@ -364,7 +364,7 @@ let Qi = class {
|
|
|
364
364
|
for (; u !== void 0; ) {
|
|
365
365
|
if (s === u.index) {
|
|
366
366
|
let c;
|
|
367
|
-
u.type === 2 ? c = new
|
|
367
|
+
u.type === 2 ? c = new Yn(r, r.nextSibling, this, t) : u.type === 1 ? c = new u.ctor(r, u.name, u.strings, this, t) : u.type === 6 && (c = new la(r, this, t)), this._$AV.push(c), u = o[++d];
|
|
368
368
|
}
|
|
369
369
|
s !== (u == null ? void 0 : u.index) && (r = ct.nextNode(), s++);
|
|
370
370
|
}
|
|
@@ -374,7 +374,7 @@ let Qi = class {
|
|
|
374
374
|
let e = 0;
|
|
375
375
|
for (const o of this._$AV) o !== void 0 && (o.strings !== void 0 ? (o._$AI(t, o, e), e += o.strings.length - 2) : o._$AI(t[e])), e++;
|
|
376
376
|
}
|
|
377
|
-
},
|
|
377
|
+
}, Yn = class gi {
|
|
378
378
|
get _$AU() {
|
|
379
379
|
var t;
|
|
380
380
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
@@ -394,7 +394,7 @@ let Qi = class {
|
|
|
394
394
|
return this._$AB;
|
|
395
395
|
}
|
|
396
396
|
_$AI(t, e = this) {
|
|
397
|
-
t = vt(this, t, e),
|
|
397
|
+
t = vt(this, t, e), Ht(t) ? t === Ae || t == null || t === "" ? (this._$AH !== Ae && this._$AR(), this._$AH = Ae) : t !== this._$AH && t !== gt && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : na(t) ? this.k(t) : this._(t);
|
|
398
398
|
}
|
|
399
399
|
O(t) {
|
|
400
400
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -403,40 +403,40 @@ let Qi = class {
|
|
|
403
403
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
404
404
|
}
|
|
405
405
|
_(t) {
|
|
406
|
-
this._$AH !== Ae &&
|
|
406
|
+
this._$AH !== Ae && Ht(this._$AH) ? this._$AA.nextSibling.data = t : this.T(dt.createTextNode(t)), this._$AH = t;
|
|
407
407
|
}
|
|
408
408
|
$(t) {
|
|
409
409
|
var r;
|
|
410
|
-
const { values: e, _$litType$: o } = t, i = typeof o == "number" ? this._$AC(t) : (o.el === void 0 && (o.el =
|
|
410
|
+
const { values: e, _$litType$: o } = t, i = typeof o == "number" ? this._$AC(t) : (o.el === void 0 && (o.el = qn.createElement(mi(o.h, o.h[0]), this.options)), o);
|
|
411
411
|
if (((r = this._$AH) == null ? void 0 : r._$AD) === i) this._$AH.p(e);
|
|
412
412
|
else {
|
|
413
|
-
const s = new
|
|
413
|
+
const s = new aa(i, this), d = s.u(this.options);
|
|
414
414
|
s.p(e), this.T(d), this._$AH = s;
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
417
|
_$AC(t) {
|
|
418
|
-
let e =
|
|
419
|
-
return e === void 0 &&
|
|
418
|
+
let e = xo.get(t.strings);
|
|
419
|
+
return e === void 0 && xo.set(t.strings, e = new qn(t)), e;
|
|
420
420
|
}
|
|
421
421
|
k(t) {
|
|
422
|
-
|
|
422
|
+
Jn(this._$AH) || (this._$AH = [], this._$AR());
|
|
423
423
|
const e = this._$AH;
|
|
424
424
|
let o, i = 0;
|
|
425
|
-
for (const r of t) i === e.length ? e.push(o = new
|
|
425
|
+
for (const r of t) i === e.length ? e.push(o = new gi(this.O(jt()), this.O(jt()), this, this.options)) : o = e[i], o._$AI(r), i++;
|
|
426
426
|
i < e.length && (this._$AR(o && o._$AB.nextSibling, i), e.length = i);
|
|
427
427
|
}
|
|
428
428
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
429
429
|
var o;
|
|
430
430
|
for ((o = this._$AP) == null ? void 0 : o.call(this, !1, !0, e); t !== this._$AB; ) {
|
|
431
|
-
const i =
|
|
432
|
-
|
|
431
|
+
const i = yo(t).nextSibling;
|
|
432
|
+
yo(t).remove(), t = i;
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
435
|
setConnected(t) {
|
|
436
436
|
var e;
|
|
437
437
|
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
|
438
438
|
}
|
|
439
|
-
},
|
|
439
|
+
}, yn = class {
|
|
440
440
|
get tagName() {
|
|
441
441
|
return this.element.tagName;
|
|
442
442
|
}
|
|
@@ -449,32 +449,32 @@ let Qi = class {
|
|
|
449
449
|
_$AI(t, e = this, o, i) {
|
|
450
450
|
const r = this.strings;
|
|
451
451
|
let s = !1;
|
|
452
|
-
if (r === void 0) t = vt(this, t, e, 0), s = !
|
|
452
|
+
if (r === void 0) t = vt(this, t, e, 0), s = !Ht(t) || t !== this._$AH && t !== gt, s && (this._$AH = t);
|
|
453
453
|
else {
|
|
454
454
|
const d = t;
|
|
455
455
|
let u, c;
|
|
456
|
-
for (t = r[0], u = 0; u < r.length - 1; u++) c = vt(this, d[o + u], e, u), c === gt && (c = this._$AH[u]), s || (s = !
|
|
456
|
+
for (t = r[0], u = 0; u < r.length - 1; u++) c = vt(this, d[o + u], e, u), c === gt && (c = this._$AH[u]), s || (s = !Ht(c) || c !== this._$AH[u]), c === Ae ? t = Ae : t !== Ae && (t += (c ?? "") + r[u + 1]), this._$AH[u] = c;
|
|
457
457
|
}
|
|
458
458
|
s && !i && this.j(t);
|
|
459
459
|
}
|
|
460
460
|
j(t) {
|
|
461
461
|
t === Ae ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
462
462
|
}
|
|
463
|
-
},
|
|
463
|
+
}, ra = class extends yn {
|
|
464
464
|
constructor() {
|
|
465
465
|
super(...arguments), this.type = 3;
|
|
466
466
|
}
|
|
467
467
|
j(t) {
|
|
468
468
|
this.element[this.name] = t === Ae ? void 0 : t;
|
|
469
469
|
}
|
|
470
|
-
},
|
|
470
|
+
}, sa = class extends yn {
|
|
471
471
|
constructor() {
|
|
472
472
|
super(...arguments), this.type = 4;
|
|
473
473
|
}
|
|
474
474
|
j(t) {
|
|
475
475
|
this.element.toggleAttribute(this.name, !!t && t !== Ae);
|
|
476
476
|
}
|
|
477
|
-
},
|
|
477
|
+
}, ca = class extends yn {
|
|
478
478
|
constructor(t, e, o, i, r) {
|
|
479
479
|
super(t, e, o, i, r), this.type = 5;
|
|
480
480
|
}
|
|
@@ -487,7 +487,7 @@ let Qi = class {
|
|
|
487
487
|
var e;
|
|
488
488
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
489
489
|
}
|
|
490
|
-
},
|
|
490
|
+
}, la = class {
|
|
491
491
|
constructor(t, e, o) {
|
|
492
492
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = o;
|
|
493
493
|
}
|
|
@@ -498,14 +498,14 @@ let Qi = class {
|
|
|
498
498
|
vt(this, t);
|
|
499
499
|
}
|
|
500
500
|
};
|
|
501
|
-
const
|
|
502
|
-
|
|
503
|
-
const
|
|
501
|
+
const $n = zt.litHtmlPolyfillSupport;
|
|
502
|
+
$n == null || $n(qn, Yn), (zt.litHtmlVersions ?? (zt.litHtmlVersions = [])).push("3.3.2");
|
|
503
|
+
const da = (n, t, e) => {
|
|
504
504
|
const o = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
505
505
|
let i = o._$litPart$;
|
|
506
506
|
if (i === void 0) {
|
|
507
507
|
const r = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
508
|
-
o._$litPart$ = i = new
|
|
508
|
+
o._$litPart$ = i = new Yn(t.insertBefore(jt(), r), r, void 0, e ?? {});
|
|
509
509
|
}
|
|
510
510
|
return i._$AI(n), i;
|
|
511
511
|
};
|
|
@@ -515,7 +515,7 @@ const na = (n, t, e) => {
|
|
|
515
515
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
516
516
|
*/
|
|
517
517
|
const lt = globalThis;
|
|
518
|
-
let
|
|
518
|
+
let qt = class extends pt {
|
|
519
519
|
constructor() {
|
|
520
520
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
521
521
|
}
|
|
@@ -526,7 +526,7 @@ let zt = class extends pt {
|
|
|
526
526
|
}
|
|
527
527
|
update(t) {
|
|
528
528
|
const e = this.render();
|
|
529
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
529
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = da(e, this.renderRoot, this.renderOptions);
|
|
530
530
|
}
|
|
531
531
|
connectedCallback() {
|
|
532
532
|
var t;
|
|
@@ -540,17 +540,17 @@ let zt = class extends pt {
|
|
|
540
540
|
return gt;
|
|
541
541
|
}
|
|
542
542
|
};
|
|
543
|
-
var
|
|
544
|
-
|
|
545
|
-
const
|
|
546
|
-
|
|
543
|
+
var li;
|
|
544
|
+
qt._$litElement$ = !0, qt.finalized = !0, (li = lt.litElementHydrateSupport) == null || li.call(lt, { LitElement: qt });
|
|
545
|
+
const Dn = lt.litElementPolyfillSupport;
|
|
546
|
+
Dn == null || Dn({ LitElement: qt });
|
|
547
547
|
(lt.litElementVersions ?? (lt.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) => (t, e) => {
|
|
554
554
|
e !== void 0 ? e.addInitializer(() => {
|
|
555
555
|
customElements.define(n, t);
|
|
556
556
|
}) : customElements.define(n, t);
|
|
@@ -560,7 +560,7 @@ const oa = (n) => (t, e) => {
|
|
|
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: Zn }, pa = (n = ha, t, e) => {
|
|
564
564
|
const { kind: o, metadata: i } = e;
|
|
565
565
|
let r = globalThis.litPropertyMetadata.get(i);
|
|
566
566
|
if (r === void 0 && globalThis.litPropertyMetadata.set(i, r = /* @__PURE__ */ new Map()), o === "setter" && ((n = Object.create(n)).wrapped = !0), r.set(e.name, n), o === "accessor") {
|
|
@@ -582,7 +582,7 @@ const ia = { attribute: !0, type: String, converter: mn, reflect: !1, hasChanged
|
|
|
582
582
|
throw Error("Unsupported decorator location: " + o);
|
|
583
583
|
};
|
|
584
584
|
function Pe(n) {
|
|
585
|
-
return (t, e) => typeof e == "object" ?
|
|
585
|
+
return (t, e) => typeof e == "object" ? pa(n, t, e) : ((o, i, r) => {
|
|
586
586
|
const s = i.hasOwnProperty(r);
|
|
587
587
|
return i.constructor.createProperty(r, o), s ? Object.getOwnPropertyDescriptor(i, r) : void 0;
|
|
588
588
|
})(n, t, e);
|
|
@@ -592,7 +592,7 @@ function Pe(n) {
|
|
|
592
592
|
* Copyright 2017 Google LLC
|
|
593
593
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
594
594
|
*/
|
|
595
|
-
function
|
|
595
|
+
function je(n) {
|
|
596
596
|
return Pe({ ...n, state: !0, attribute: !1 });
|
|
597
597
|
}
|
|
598
598
|
/**
|
|
@@ -600,8 +600,8 @@ function qe(n) {
|
|
|
600
600
|
* Copyright 2017 Google LLC
|
|
601
601
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
602
602
|
*/
|
|
603
|
-
const
|
|
604
|
-
let
|
|
603
|
+
const ma = (n) => (...t) => ({ _$litDirective$: n, values: t });
|
|
604
|
+
let fa = class {
|
|
605
605
|
constructor(t) {
|
|
606
606
|
}
|
|
607
607
|
get _$AU() {
|
|
@@ -622,13 +622,13 @@ let sa = class {
|
|
|
622
622
|
* Copyright 2020 Google LLC
|
|
623
623
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
624
624
|
*/
|
|
625
|
-
const
|
|
625
|
+
const ga = {}, va = (n, t = ga) => n._$AH = t;
|
|
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 fa {
|
|
632
632
|
constructor() {
|
|
633
633
|
super(...arguments), this.key = Ae;
|
|
634
634
|
}
|
|
@@ -636,11 +636,11 @@ const da = ra(class extends sa {
|
|
|
636
636
|
return this.key = n, t;
|
|
637
637
|
}
|
|
638
638
|
update(n, [t, e]) {
|
|
639
|
-
return t !== this.key && (
|
|
639
|
+
return t !== this.key && (va(n), this.key = t), e;
|
|
640
640
|
}
|
|
641
641
|
});
|
|
642
642
|
/*! For license information please see elements.js.LICENSE.txt */
|
|
643
|
-
var
|
|
643
|
+
var ya = { 7(n, t, e) {
|
|
644
644
|
(function(o, i, r) {
|
|
645
645
|
function s(w, E) {
|
|
646
646
|
return [w, !w || w.endsWith("/") ? "" : "/", E, ".json"].join("");
|
|
@@ -680,16 +680,16 @@ var ua = { 7(n, t, e) {
|
|
|
680
680
|
}, X = (N) => N.done ? M(N.value) : Promise.resolve(N.value).then(F, V);
|
|
681
681
|
X((I = I.apply(w, E)).next());
|
|
682
682
|
});
|
|
683
|
-
let
|
|
684
|
-
const
|
|
685
|
-
function
|
|
686
|
-
w = Object.assign({},
|
|
687
|
-
const [I, M] = r.useState(w.lang), [z, F] = r.useState(
|
|
683
|
+
let C = {};
|
|
684
|
+
const x = { root: "", lang: "en", fallbackLang: "en" };
|
|
685
|
+
function $(w, E) {
|
|
686
|
+
w = Object.assign({}, x, w), C = E || C;
|
|
687
|
+
const [I, M] = r.useState(w.lang), [z, F] = r.useState(C), [V, X] = r.useState(!1), N = r.useCallback((_e) => k(null, null, function* () {
|
|
688
688
|
if (!z[_e]) {
|
|
689
689
|
X(!1);
|
|
690
690
|
try {
|
|
691
691
|
const ue = s(w.root, _e), le = yield fetch(ue);
|
|
692
|
-
|
|
692
|
+
C[_e] = yield le.json();
|
|
693
693
|
} catch (ue) {
|
|
694
694
|
console.error(`Failed to load language data for ${_e}:`, ue);
|
|
695
695
|
} finally {
|
|
@@ -697,7 +697,7 @@ var ua = { 7(n, t, e) {
|
|
|
697
697
|
for (var re in le || (le = {})) m.call(le, re) && g(ue, re, le[re]);
|
|
698
698
|
if (l) for (var re of l(le)) v.call(le, re) && g(ue, re, le[re]);
|
|
699
699
|
return ue;
|
|
700
|
-
})({},
|
|
700
|
+
})({}, C)), X(!0);
|
|
701
701
|
}
|
|
702
702
|
}
|
|
703
703
|
}), [z, w.root]);
|
|
@@ -713,15 +713,15 @@ var ua = { 7(n, t, e) {
|
|
|
713
713
|
}, [z, I, w.fallbackLang]);
|
|
714
714
|
return { lang: I, setLang: M, t: fe, isReady: V };
|
|
715
715
|
}
|
|
716
|
-
const
|
|
717
|
-
o.TranslateContext =
|
|
718
|
-
const { t: E, setLang: I, lang: M, isReady: z } =
|
|
719
|
-
return i.h(
|
|
716
|
+
const K = i.createContext(null);
|
|
717
|
+
o.TranslateContext = K, o.TranslateProvider = (w) => {
|
|
718
|
+
const { t: E, setLang: I, lang: M, isReady: z } = $({ root: w.root || "assets", lang: w.lang || "en", fallbackLang: w.fallbackLang || "en" }, w.translations);
|
|
719
|
+
return i.h(K.Provider, { value: { t: E, setLang: I, lang: M, isReady: z } }, w.children);
|
|
720
720
|
}, o.format = d, o.getResourceUrl = s, o.getValue = u, Object.defineProperty(o, "__esModule", { value: !0 });
|
|
721
721
|
})(t, e(616), e(78));
|
|
722
722
|
}, 616(n, t, e) {
|
|
723
|
-
e.r(t), e.d(t, { Component: () => X, Fragment: () => V, cloneElement: () => Re, createContext: () =>
|
|
724
|
-
var o, i, r, s, d, u, c, l, m, v, g, k,
|
|
723
|
+
e.r(t), e.d(t, { Component: () => X, Fragment: () => V, cloneElement: () => Re, createContext: () => In, createElement: () => M, createRef: () => F, h: () => M, hydrate: () => wt, isValidElement: () => s, options: () => i, render: () => at, toChildArray: () => Ne });
|
|
724
|
+
var o, i, r, s, d, u, c, l, m, v, g, k, C, x = {}, $ = [], K = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, w = Array.isArray;
|
|
725
725
|
function E(p, h) {
|
|
726
726
|
for (var _ in h) p[_] = h[_];
|
|
727
727
|
return p;
|
|
@@ -767,18 +767,18 @@ var ua = { 7(n, t, e) {
|
|
|
767
767
|
(!p.__d && (p.__d = !0) && d.push(p) && !ue.__r++ || u != i.debounceRendering) && ((u = i.debounceRendering) || c)(ue);
|
|
768
768
|
}
|
|
769
769
|
function ue() {
|
|
770
|
-
for (var p, h, _, P, T, y, L,
|
|
770
|
+
for (var p, h, _, P, T, y, L, H = 1; d.length; ) d.length > H && d.sort(l), p = d.shift(), H = d.length, p.__d && (_ = void 0, P = void 0, T = (P = (h = p).__v).__e, y = [], L = [], h.__P && ((_ = E({}, P)).__v = P.__v + 1, i.vnode && i.vnode(_), D(h.__P, _, P, h.__n, h.__P.namespaceURI, 32 & P.__u ? [T] : null, y, T ?? N(P), !!(32 & P.__u), L), _.__v = P.__v, _.__.__k[_.__i] = _, j(y, _, L), P.__e = P.__ = null, _.__e != T && fe(_)));
|
|
771
771
|
ue.__r = 0;
|
|
772
772
|
}
|
|
773
|
-
function le(p, h, _, P, T, y, L,
|
|
774
|
-
var S, be, B, Oe,
|
|
775
|
-
for (he = re(_, h, pe, he, Xe), S = 0; S < Xe; S++) (B = _.__k[S]) != null && (be = B.__i == -1 ?
|
|
776
|
-
return _.__e =
|
|
773
|
+
function le(p, h, _, P, T, y, L, H, he, R, ie) {
|
|
774
|
+
var S, be, B, Oe, He, Ue, ge, pe = P && P.__k || $, Xe = h.length;
|
|
775
|
+
for (he = re(_, h, pe, he, Xe), S = 0; S < Xe; S++) (B = _.__k[S]) != null && (be = B.__i == -1 ? x : pe[B.__i] || x, B.__i = S, Ue = D(p, B, be, T, y, L, H, he, R, ie), Oe = B.__e, B.ref && be.ref != B.ref && (be.ref && se(be.ref, null, B), ie.push(B.ref, B.__c || Oe, B)), He == null && Oe != null && (He = Oe), (ge = !!(4 & B.__u)) || be.__k === B.__k ? he = ye(B, he, p, ge) : typeof B.type == "function" && Ue !== void 0 ? he = Ue : Oe && (he = Oe.nextSibling), B.__u &= -7);
|
|
776
|
+
return _.__e = He, he;
|
|
777
777
|
}
|
|
778
778
|
function re(p, h, _, P, T) {
|
|
779
|
-
var y, L,
|
|
780
|
-
for (p.__k = new Array(T), y = 0; y < T; y++) (L = h[y]) != null && typeof L != "boolean" && typeof L != "function" ? (typeof L == "string" || typeof L == "number" || typeof L == "bigint" || L.constructor == String ? L = p.__k[y] = z(null, L, null, null, null) : w(L) ? L = p.__k[y] = z(V, { children: L }, null, null, null) : L.constructor === void 0 && L.__b > 0 ? L = p.__k[y] = z(L.type, L.props, L.key, L.ref ? L.ref : null, L.__v) : p.__k[y] = L, he = y + be, L.__ = p, L.__b = p.__b + 1,
|
|
781
|
-
if (S) for (y = 0; y < ie; y++) (
|
|
779
|
+
var y, L, H, he, R, ie = _.length, S = ie, be = 0;
|
|
780
|
+
for (p.__k = new Array(T), y = 0; y < T; y++) (L = h[y]) != null && typeof L != "boolean" && typeof L != "function" ? (typeof L == "string" || typeof L == "number" || typeof L == "bigint" || L.constructor == String ? L = p.__k[y] = z(null, L, null, null, null) : w(L) ? L = p.__k[y] = z(V, { children: L }, null, null, null) : L.constructor === void 0 && L.__b > 0 ? L = p.__k[y] = z(L.type, L.props, L.key, L.ref ? L.ref : null, L.__v) : p.__k[y] = L, he = y + be, L.__ = p, L.__b = p.__b + 1, H = null, (R = L.__i = ot(L, _, he, S)) != -1 && (S--, (H = _[R]) && (H.__u |= 2)), H == null || H.__v == null ? (R == -1 && (T > ie ? be-- : T < ie && be++), typeof L.type != "function" && (L.__u |= 4)) : R != he && (R == he - 1 ? be-- : R == he + 1 ? be++ : (R > he ? be-- : be++, L.__u |= 4))) : p.__k[y] = null;
|
|
781
|
+
if (S) for (y = 0; y < ie; y++) (H = _[y]) != null && !(2 & H.__u) && (H.__e == P && (P = N(H)), Ie(H, H));
|
|
782
782
|
return P;
|
|
783
783
|
}
|
|
784
784
|
function ye(p, h, _, P) {
|
|
@@ -799,15 +799,15 @@ var ua = { 7(n, t, e) {
|
|
|
799
799
|
}) : h.push(p)), h;
|
|
800
800
|
}
|
|
801
801
|
function ot(p, h, _, P) {
|
|
802
|
-
var T, y, L,
|
|
803
|
-
if (R === null &&
|
|
802
|
+
var T, y, L, H = p.key, he = p.type, R = h[_], ie = R != null && !(2 & R.__u);
|
|
803
|
+
if (R === null && H == null || ie && H == R.key && he == R.type) return _;
|
|
804
804
|
if (P > (ie ? 1 : 0)) {
|
|
805
|
-
for (T = _ - 1, y = _ + 1; T >= 0 || y < h.length; ) if ((R = h[L = T >= 0 ? T-- : y++]) != null && !(2 & R.__u) &&
|
|
805
|
+
for (T = _ - 1, y = _ + 1; T >= 0 || y < h.length; ) if ((R = h[L = T >= 0 ? T-- : y++]) != null && !(2 & R.__u) && H == R.key && he == R.type) return L;
|
|
806
806
|
}
|
|
807
807
|
return -1;
|
|
808
808
|
}
|
|
809
809
|
function it(p, h, _) {
|
|
810
|
-
h[0] == "-" ? p.setProperty(h, _ ?? "") : p[h] = _ == null ? "" : typeof _ != "number" ||
|
|
810
|
+
h[0] == "-" ? p.setProperty(h, _ ?? "") : p[h] = _ == null ? "" : typeof _ != "number" || K.test(h) ? _ : _ + "px";
|
|
811
811
|
}
|
|
812
812
|
function A(p, h, _, P, T) {
|
|
813
813
|
var y, L;
|
|
@@ -837,49 +837,49 @@ var ua = { 7(n, t, e) {
|
|
|
837
837
|
}
|
|
838
838
|
};
|
|
839
839
|
}
|
|
840
|
-
function
|
|
841
|
-
var ie, S, be, B, Oe,
|
|
840
|
+
function D(p, h, _, P, T, y, L, H, he, R) {
|
|
841
|
+
var ie, S, be, B, Oe, He, Ue, ge, pe, Xe, rt, Zt, kt, mo, Jt, St, On, Ve = h.type;
|
|
842
842
|
if (h.constructor !== void 0) return null;
|
|
843
|
-
128 & _.__u && (he = !!(32 & _.__u), y = [
|
|
843
|
+
128 & _.__u && (he = !!(32 & _.__u), y = [H = h.__e = _.__e]), (ie = i.__b) && ie(h);
|
|
844
844
|
e: if (typeof Ve == "function") try {
|
|
845
|
-
if (ge = h.props, pe = "prototype" in Ve && Ve.prototype.render, Xe = (ie = Ve.contextType) && P[ie.__c], rt = ie ? Xe ? Xe.props.value : ie.__ : P, _.__c ?
|
|
845
|
+
if (ge = h.props, pe = "prototype" in Ve && Ve.prototype.render, Xe = (ie = Ve.contextType) && P[ie.__c], rt = ie ? Xe ? Xe.props.value : ie.__ : P, _.__c ? Ue = (S = h.__c = _.__c).__ = S.__E : (pe ? h.__c = S = new Ve(ge, rt) : (h.__c = S = new X(ge, rt), S.constructor = Ve, S.render = We), Xe && Xe.sub(S), S.state || (S.state = {}), S.__n = P, be = S.__d = !0, S.__h = [], S._sb = []), pe && S.__s == null && (S.__s = S.state), pe && Ve.getDerivedStateFromProps != null && (S.__s == S.state && (S.__s = E({}, S.__s)), E(S.__s, Ve.getDerivedStateFromProps(ge, S.__s))), B = S.props, Oe = S.state, S.__v = h, be) pe && Ve.getDerivedStateFromProps == null && S.componentWillMount != null && S.componentWillMount(), pe && S.componentDidMount != null && S.__h.push(S.componentDidMount);
|
|
846
846
|
else {
|
|
847
847
|
if (pe && Ve.getDerivedStateFromProps == null && ge !== B && S.componentWillReceiveProps != null && S.componentWillReceiveProps(ge, rt), h.__v == _.__v || !S.__e && S.shouldComponentUpdate != null && S.shouldComponentUpdate(ge, S.__s, rt) === !1) {
|
|
848
848
|
for (h.__v != _.__v && (S.props = ge, S.state = S.__s, S.__d = !1), h.__e = _.__e, h.__k = _.__k, h.__k.some(function(ht) {
|
|
849
849
|
ht && (ht.__ = h);
|
|
850
|
-
}),
|
|
850
|
+
}), Zt = 0; Zt < S._sb.length; Zt++) S.__h.push(S._sb[Zt]);
|
|
851
851
|
S._sb = [], S.__h.length && L.push(S);
|
|
852
852
|
break e;
|
|
853
853
|
}
|
|
854
854
|
S.componentWillUpdate != null && S.componentWillUpdate(ge, S.__s, rt), pe && S.componentDidUpdate != null && S.__h.push(function() {
|
|
855
|
-
S.componentDidUpdate(B, Oe,
|
|
855
|
+
S.componentDidUpdate(B, Oe, He);
|
|
856
856
|
});
|
|
857
857
|
}
|
|
858
|
-
if (S.context = rt, S.props = ge, S.__P = p, S.__e = !1,
|
|
859
|
-
for (S.state = S.__s, S.__d = !1,
|
|
858
|
+
if (S.context = rt, S.props = ge, S.__P = p, S.__e = !1, kt = i.__r, mo = 0, pe) {
|
|
859
|
+
for (S.state = S.__s, S.__d = !1, kt && kt(h), ie = S.render(S.props, S.state, S.context), Jt = 0; Jt < S._sb.length; Jt++) S.__h.push(S._sb[Jt]);
|
|
860
860
|
S._sb = [];
|
|
861
861
|
} else do
|
|
862
|
-
S.__d = !1,
|
|
863
|
-
while (S.__d && ++
|
|
864
|
-
S.state = S.__s, S.getChildContext != null && (P = E(E({}, P), S.getChildContext())), pe && !be && S.getSnapshotBeforeUpdate != null && (
|
|
862
|
+
S.__d = !1, kt && kt(h), ie = S.render(S.props, S.state, S.context), S.state = S.__s;
|
|
863
|
+
while (S.__d && ++mo < 25);
|
|
864
|
+
S.state = S.__s, S.getChildContext != null && (P = E(E({}, P), S.getChildContext())), pe && !be && S.getSnapshotBeforeUpdate != null && (He = S.getSnapshotBeforeUpdate(B, Oe)), St = ie, ie != null && ie.type === V && ie.key == null && (St = q(ie.props.children)), H = le(p, w(St) ? St : [St], h, _, P, T, y, L, H, he, R), S.base = h.__e, h.__u &= -161, S.__h.length && L.push(S), Ue && (S.__E = S.__ = null);
|
|
865
865
|
} catch (ht) {
|
|
866
866
|
if (h.__v = null, he || y != null) if (ht.then) {
|
|
867
|
-
for (h.__u |= he ? 160 : 128;
|
|
868
|
-
y[y.indexOf(
|
|
867
|
+
for (h.__u |= he ? 160 : 128; H && H.nodeType == 8 && H.nextSibling; ) H = H.nextSibling;
|
|
868
|
+
y[y.indexOf(H)] = null, h.__e = H;
|
|
869
869
|
} else {
|
|
870
|
-
for (
|
|
870
|
+
for (On = y.length; On--; ) I(y[On]);
|
|
871
871
|
Z(h);
|
|
872
872
|
}
|
|
873
873
|
else h.__e = _.__e, h.__k = _.__k, ht.then || Z(h);
|
|
874
874
|
i.__e(ht, h, _);
|
|
875
875
|
}
|
|
876
|
-
else y == null && h.__v == _.__v ? (h.__k = _.__k, h.__e = _.__e) :
|
|
877
|
-
return (ie = i.diffed) && ie(h), 128 & h.__u ? void 0 :
|
|
876
|
+
else y == null && h.__v == _.__v ? (h.__k = _.__k, h.__e = _.__e) : H = h.__e = xe(_.__e, h, _, P, T, y, L, he, R);
|
|
877
|
+
return (ie = i.diffed) && ie(h), 128 & h.__u ? void 0 : H;
|
|
878
878
|
}
|
|
879
879
|
function Z(p) {
|
|
880
880
|
p && p.__c && (p.__c.__e = !0), p && p.__k && p.__k.forEach(Z);
|
|
881
881
|
}
|
|
882
|
-
function
|
|
882
|
+
function j(p, h, _) {
|
|
883
883
|
for (var P = 0; P < _.length; P++) se(_[P], _[++P], _[++P]);
|
|
884
884
|
i.__c && i.__c(h, p), p.some(function(T) {
|
|
885
885
|
try {
|
|
@@ -891,11 +891,11 @@ var ua = { 7(n, t, e) {
|
|
|
891
891
|
}
|
|
892
892
|
});
|
|
893
893
|
}
|
|
894
|
-
function
|
|
895
|
-
return typeof p != "object" || p == null || p.__b && p.__b > 0 ? p : w(p) ? p.map(
|
|
894
|
+
function q(p) {
|
|
895
|
+
return typeof p != "object" || p == null || p.__b && p.__b > 0 ? p : w(p) ? p.map(q) : E({}, p);
|
|
896
896
|
}
|
|
897
|
-
function
|
|
898
|
-
var R, ie, S, be, B, Oe,
|
|
897
|
+
function xe(p, h, _, P, T, y, L, H, he) {
|
|
898
|
+
var R, ie, S, be, B, Oe, He, Ue = _.props || x, ge = h.props, pe = h.type;
|
|
899
899
|
if (pe == "svg" ? T = "http://www.w3.org/2000/svg" : pe == "math" ? T = "http://www.w3.org/1998/Math/MathML" : T || (T = "http://www.w3.org/1999/xhtml"), y != null) {
|
|
900
900
|
for (R = 0; R < y.length; R++) if ((B = y[R]) && "setAttribute" in B == !!pe && (pe ? B.localName == pe : B.nodeType == 3)) {
|
|
901
901
|
p = B, y[R] = null;
|
|
@@ -904,22 +904,22 @@ var ua = { 7(n, t, e) {
|
|
|
904
904
|
}
|
|
905
905
|
if (p == null) {
|
|
906
906
|
if (pe == null) return document.createTextNode(ge);
|
|
907
|
-
p = document.createElementNS(T, pe, ge.is && ge),
|
|
907
|
+
p = document.createElementNS(T, pe, ge.is && ge), H && (i.__m && i.__m(h, y), H = !1), y = null;
|
|
908
908
|
}
|
|
909
|
-
if (pe == null)
|
|
909
|
+
if (pe == null) Ue === ge || H && p.data == ge || (p.data = ge);
|
|
910
910
|
else {
|
|
911
|
-
if (y = y && o.call(p.childNodes), !
|
|
912
|
-
for (R in
|
|
911
|
+
if (y = y && o.call(p.childNodes), !H && y != null) for (Ue = {}, R = 0; R < p.attributes.length; R++) Ue[(B = p.attributes[R]).name] = B.value;
|
|
912
|
+
for (R in Ue) if (B = Ue[R], R != "children") {
|
|
913
913
|
if (R == "dangerouslySetInnerHTML") S = B;
|
|
914
914
|
else if (!(R in ge)) {
|
|
915
915
|
if (R == "value" && "defaultValue" in ge || R == "checked" && "defaultChecked" in ge) continue;
|
|
916
916
|
A(p, R, null, B, T);
|
|
917
917
|
}
|
|
918
918
|
}
|
|
919
|
-
for (R in ge) B = ge[R], R == "children" ? be = B : R == "dangerouslySetInnerHTML" ? ie = B : R == "value" ? Oe = B : R == "checked" ?
|
|
920
|
-
if (ie)
|
|
921
|
-
else if (S && (p.innerHTML = ""), le(h.type == "template" ? p.content : p, w(be) ? be : [be], h, _, P, pe == "foreignObject" ? "http://www.w3.org/1999/xhtml" : T, y, L, y ? y[0] : _.__k && N(_, 0),
|
|
922
|
-
|
|
919
|
+
for (R in ge) B = ge[R], R == "children" ? be = B : R == "dangerouslySetInnerHTML" ? ie = B : R == "value" ? Oe = B : R == "checked" ? He = B : H && typeof B != "function" || Ue[R] === B || A(p, R, B, Ue[R], T);
|
|
920
|
+
if (ie) H || S && (ie.__html == S.__html || ie.__html == p.innerHTML) || (p.innerHTML = ie.__html), h.__k = [];
|
|
921
|
+
else if (S && (p.innerHTML = ""), le(h.type == "template" ? p.content : p, w(be) ? be : [be], h, _, P, pe == "foreignObject" ? "http://www.w3.org/1999/xhtml" : T, y, L, y ? y[0] : _.__k && N(_, 0), H, he), y != null) for (R = y.length; R--; ) I(y[R]);
|
|
922
|
+
H || (R = "value", pe == "progress" && Oe == null ? p.removeAttribute("value") : Oe != null && (Oe !== p[R] || pe == "progress" && !Oe || pe == "option" && Oe != Ue[R]) && A(p, R, Oe, Ue[R], T), R = "checked", He != null && He != p[R] && A(p, R, He, Ue[R], T));
|
|
923
923
|
}
|
|
924
924
|
return p;
|
|
925
925
|
}
|
|
@@ -946,22 +946,22 @@ var ua = { 7(n, t, e) {
|
|
|
946
946
|
if (P = p.__k) for (T = 0; T < P.length; T++) P[T] && Ie(P[T], h, _ || typeof p.type != "function");
|
|
947
947
|
_ || I(p.__e), p.__c = p.__ = p.__e = void 0;
|
|
948
948
|
}
|
|
949
|
-
function
|
|
949
|
+
function We(p, h, _) {
|
|
950
950
|
return this.constructor(p, _);
|
|
951
951
|
}
|
|
952
952
|
function at(p, h, _) {
|
|
953
953
|
var P, T, y, L;
|
|
954
|
-
h == document && (h = document.documentElement), i.__ && i.__(p, h), T = (P = typeof _ == "function") ? null : _ && _.__k || h.__k, y = [], L = [],
|
|
954
|
+
h == document && (h = document.documentElement), i.__ && i.__(p, h), T = (P = typeof _ == "function") ? null : _ && _.__k || h.__k, y = [], L = [], D(h, p = (!P && _ || h).__k = M(V, null, [p]), T || x, x, h.namespaceURI, !P && _ ? [_] : T ? null : h.firstChild ? o.call(h.childNodes) : null, y, !P && _ ? _ : T ? T.__e : h.firstChild, P, L), j(y, p, L);
|
|
955
955
|
}
|
|
956
|
-
function
|
|
957
|
-
at(p, h,
|
|
956
|
+
function wt(p, h) {
|
|
957
|
+
at(p, h, wt);
|
|
958
958
|
}
|
|
959
959
|
function Re(p, h, _) {
|
|
960
|
-
var P, T, y, L,
|
|
961
|
-
for (y in p.type && p.type.defaultProps && (L = p.type.defaultProps), h) y == "key" ? P = h[y] : y == "ref" ? T = h[y] :
|
|
962
|
-
return arguments.length > 2 && (
|
|
960
|
+
var P, T, y, L, H = E({}, p.props);
|
|
961
|
+
for (y in p.type && p.type.defaultProps && (L = p.type.defaultProps), h) y == "key" ? P = h[y] : y == "ref" ? T = h[y] : H[y] = h[y] === void 0 && L != null ? L[y] : h[y];
|
|
962
|
+
return arguments.length > 2 && (H.children = arguments.length > 3 ? o.call(arguments, 2) : _), z(p.type, H, P || p.key, T || p.ref, null);
|
|
963
963
|
}
|
|
964
|
-
function
|
|
964
|
+
function In(p) {
|
|
965
965
|
function h(_) {
|
|
966
966
|
var P, T;
|
|
967
967
|
return this.getChildContext || (P = /* @__PURE__ */ new Set(), (T = {})[h.__c] = this, this.getChildContext = function() {
|
|
@@ -980,15 +980,15 @@ var ua = { 7(n, t, e) {
|
|
|
980
980
|
};
|
|
981
981
|
}), _.children;
|
|
982
982
|
}
|
|
983
|
-
return h.__c = "__cC" +
|
|
983
|
+
return h.__c = "__cC" + C++, h.__ = p, h.Provider = h.__l = (h.Consumer = function(_, P) {
|
|
984
984
|
return _.children(P);
|
|
985
985
|
}).contextType = h, h;
|
|
986
986
|
}
|
|
987
|
-
o =
|
|
987
|
+
o = $.slice, i = { __e: function(p, h, _, P) {
|
|
988
988
|
for (var T, y, L; h = h.__; ) if ((T = h.__c) && !T.__) try {
|
|
989
989
|
if ((y = T.constructor) && y.getDerivedStateFromError != null && (T.setState(y.getDerivedStateFromError(p)), L = T.__d), T.componentDidCatch != null && (T.componentDidCatch(p, P || {}), L = T.__d), L) return T.__E = T;
|
|
990
|
-
} catch (
|
|
991
|
-
p =
|
|
990
|
+
} catch (H) {
|
|
991
|
+
p = H;
|
|
992
992
|
}
|
|
993
993
|
throw p;
|
|
994
994
|
} }, r = 0, s = function(p) {
|
|
@@ -1000,66 +1000,66 @@ var ua = { 7(n, t, e) {
|
|
|
1000
1000
|
this.__v && (this.__e = !0, p && this.__h.push(p), _e(this));
|
|
1001
1001
|
}, X.prototype.render = V, d = [], c = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, l = function(p, h) {
|
|
1002
1002
|
return p.__v.__b - h.__v.__b;
|
|
1003
|
-
}, ue.__r = 0, m = /(PointerCapture)$|Capture$/i, v = 0, g = O(!1), k = O(!0),
|
|
1003
|
+
}, ue.__r = 0, m = /(PointerCapture)$|Capture$/i, v = 0, g = O(!1), k = O(!0), C = 0;
|
|
1004
1004
|
}, 78(n, t, e) {
|
|
1005
|
-
e.r(t), e.d(t, { useCallback: () => V, useContext: () => X, useDebugValue: () => N, useEffect: () => E, useErrorBoundary: () => fe, useId: () => _e, useImperativeHandle: () => z, useLayoutEffect: () => I, useMemo: () => F, useReducer: () => w, useRef: () => M, useState: () =>
|
|
1006
|
-
var o, i, r, s, d = e(616), u = 0, c = [], l = d.options, m = l.__b, v = l.__r, g = l.diffed, k = l.__c,
|
|
1007
|
-
function
|
|
1005
|
+
e.r(t), e.d(t, { useCallback: () => V, useContext: () => X, useDebugValue: () => N, useEffect: () => E, useErrorBoundary: () => fe, useId: () => _e, useImperativeHandle: () => z, useLayoutEffect: () => I, useMemo: () => F, useReducer: () => w, useRef: () => M, useState: () => K });
|
|
1006
|
+
var o, i, r, s, d = e(616), u = 0, c = [], l = d.options, m = l.__b, v = l.__r, g = l.diffed, k = l.__c, C = l.unmount, x = l.__;
|
|
1007
|
+
function $(A, O) {
|
|
1008
1008
|
l.__h && l.__h(i, A, u || O), u = 0;
|
|
1009
|
-
var
|
|
1010
|
-
return A >=
|
|
1009
|
+
var D = i.__H || (i.__H = { __: [], __h: [] });
|
|
1010
|
+
return A >= D.__.length && D.__.push({}), D.__[A];
|
|
1011
1011
|
}
|
|
1012
|
-
function
|
|
1012
|
+
function K(A) {
|
|
1013
1013
|
return u = 1, w(it, A);
|
|
1014
1014
|
}
|
|
1015
|
-
function w(A, O,
|
|
1016
|
-
var Z =
|
|
1017
|
-
if (Z.t = A, !Z.__c && (Z.__ = [
|
|
1018
|
-
var Ie = Z.__N ? Z.__N[0] : Z.__[0],
|
|
1019
|
-
Ie !==
|
|
1015
|
+
function w(A, O, D) {
|
|
1016
|
+
var Z = $(o++, 2);
|
|
1017
|
+
if (Z.t = A, !Z.__c && (Z.__ = [D ? D(O) : it(void 0, O), function(se) {
|
|
1018
|
+
var Ie = Z.__N ? Z.__N[0] : Z.__[0], We = Z.t(Ie, se);
|
|
1019
|
+
Ie !== We && (Z.__N = [We, Z.__[1]], Z.__c.setState({}));
|
|
1020
1020
|
}], Z.__c = i, !i.__f)) {
|
|
1021
|
-
var
|
|
1021
|
+
var j = function(se, Ie, We) {
|
|
1022
1022
|
if (!Z.__c.__H) return !0;
|
|
1023
1023
|
var at = Z.__c.__H.__.filter(function(Re) {
|
|
1024
1024
|
return !!Re.__c;
|
|
1025
1025
|
});
|
|
1026
1026
|
if (at.every(function(Re) {
|
|
1027
1027
|
return !Re.__N;
|
|
1028
|
-
})) return !
|
|
1029
|
-
var
|
|
1028
|
+
})) return !q || q.call(this, se, Ie, We);
|
|
1029
|
+
var wt = Z.__c.props !== se;
|
|
1030
1030
|
return at.forEach(function(Re) {
|
|
1031
1031
|
if (Re.__N) {
|
|
1032
|
-
var
|
|
1033
|
-
Re.__ = Re.__N, Re.__N = void 0,
|
|
1032
|
+
var In = Re.__[0];
|
|
1033
|
+
Re.__ = Re.__N, Re.__N = void 0, In !== Re.__[0] && (wt = !0);
|
|
1034
1034
|
}
|
|
1035
|
-
}),
|
|
1035
|
+
}), q && q.call(this, se, Ie, We) || wt;
|
|
1036
1036
|
};
|
|
1037
1037
|
i.__f = !0;
|
|
1038
|
-
var
|
|
1039
|
-
i.componentWillUpdate = function(se, Ie,
|
|
1038
|
+
var q = i.shouldComponentUpdate, xe = i.componentWillUpdate;
|
|
1039
|
+
i.componentWillUpdate = function(se, Ie, We) {
|
|
1040
1040
|
if (this.__e) {
|
|
1041
|
-
var at =
|
|
1042
|
-
|
|
1041
|
+
var at = q;
|
|
1042
|
+
q = void 0, j(se, Ie, We), q = at;
|
|
1043
1043
|
}
|
|
1044
|
-
|
|
1045
|
-
}, i.shouldComponentUpdate =
|
|
1044
|
+
xe && xe.call(this, se, Ie, We);
|
|
1045
|
+
}, i.shouldComponentUpdate = j;
|
|
1046
1046
|
}
|
|
1047
1047
|
return Z.__N || Z.__;
|
|
1048
1048
|
}
|
|
1049
1049
|
function E(A, O) {
|
|
1050
|
-
var
|
|
1051
|
-
!l.__s && ot(
|
|
1050
|
+
var D = $(o++, 3);
|
|
1051
|
+
!l.__s && ot(D.__H, O) && (D.__ = A, D.u = O, i.__H.__h.push(D));
|
|
1052
1052
|
}
|
|
1053
1053
|
function I(A, O) {
|
|
1054
|
-
var
|
|
1055
|
-
!l.__s && ot(
|
|
1054
|
+
var D = $(o++, 4);
|
|
1055
|
+
!l.__s && ot(D.__H, O) && (D.__ = A, D.u = O, i.__h.push(D));
|
|
1056
1056
|
}
|
|
1057
1057
|
function M(A) {
|
|
1058
1058
|
return u = 5, F(function() {
|
|
1059
1059
|
return { current: A };
|
|
1060
1060
|
}, []);
|
|
1061
1061
|
}
|
|
1062
|
-
function z(A, O,
|
|
1062
|
+
function z(A, O, D) {
|
|
1063
1063
|
u = 6, I(function() {
|
|
1064
1064
|
if (typeof A == "function") {
|
|
1065
1065
|
var Z = A(O());
|
|
@@ -1070,11 +1070,11 @@ var ua = { 7(n, t, e) {
|
|
|
1070
1070
|
if (A) return A.current = O(), function() {
|
|
1071
1071
|
return A.current = null;
|
|
1072
1072
|
};
|
|
1073
|
-
},
|
|
1073
|
+
}, D == null ? D : D.concat(A));
|
|
1074
1074
|
}
|
|
1075
1075
|
function F(A, O) {
|
|
1076
|
-
var
|
|
1077
|
-
return ot(
|
|
1076
|
+
var D = $(o++, 7);
|
|
1077
|
+
return ot(D.__H, O) && (D.__ = A(), D.__H = O, D.__h = A), D.__;
|
|
1078
1078
|
}
|
|
1079
1079
|
function V(A, O) {
|
|
1080
1080
|
return u = 8, F(function() {
|
|
@@ -1082,26 +1082,26 @@ var ua = { 7(n, t, e) {
|
|
|
1082
1082
|
}, O);
|
|
1083
1083
|
}
|
|
1084
1084
|
function X(A) {
|
|
1085
|
-
var O = i.context[A.__c],
|
|
1086
|
-
return
|
|
1085
|
+
var O = i.context[A.__c], D = $(o++, 9);
|
|
1086
|
+
return D.c = A, O ? (D.__ == null && (D.__ = !0, O.sub(i)), O.props.value) : A.__;
|
|
1087
1087
|
}
|
|
1088
1088
|
function N(A, O) {
|
|
1089
1089
|
l.useDebugValue && l.useDebugValue(O ? O(A) : A);
|
|
1090
1090
|
}
|
|
1091
1091
|
function fe(A) {
|
|
1092
|
-
var O =
|
|
1093
|
-
return O.__ = A, i.componentDidCatch || (i.componentDidCatch = function(Z,
|
|
1094
|
-
O.__ && O.__(Z,
|
|
1095
|
-
}), [
|
|
1096
|
-
|
|
1092
|
+
var O = $(o++, 10), D = K();
|
|
1093
|
+
return O.__ = A, i.componentDidCatch || (i.componentDidCatch = function(Z, j) {
|
|
1094
|
+
O.__ && O.__(Z, j), D[1](Z);
|
|
1095
|
+
}), [D[0], function() {
|
|
1096
|
+
D[1](void 0);
|
|
1097
1097
|
}];
|
|
1098
1098
|
}
|
|
1099
1099
|
function _e() {
|
|
1100
|
-
var A =
|
|
1100
|
+
var A = $(o++, 11);
|
|
1101
1101
|
if (!A.__) {
|
|
1102
1102
|
for (var O = i.__v; O !== null && !O.__m && O.__ !== null; ) O = O.__;
|
|
1103
|
-
var
|
|
1104
|
-
A.__ = "P" +
|
|
1103
|
+
var D = O.__m || (O.__m = [0, 0]);
|
|
1104
|
+
A.__ = "P" + D[0] + "-" + D[1]++;
|
|
1105
1105
|
}
|
|
1106
1106
|
return A.__;
|
|
1107
1107
|
}
|
|
@@ -1115,60 +1115,60 @@ var ua = { 7(n, t, e) {
|
|
|
1115
1115
|
l.__b = function(A) {
|
|
1116
1116
|
i = null, m && m(A);
|
|
1117
1117
|
}, l.__ = function(A, O) {
|
|
1118
|
-
A && O.__k && O.__k.__m && (A.__m = O.__k.__m),
|
|
1118
|
+
A && O.__k && O.__k.__m && (A.__m = O.__k.__m), x && x(A, O);
|
|
1119
1119
|
}, l.__r = function(A) {
|
|
1120
1120
|
v && v(A), o = 0;
|
|
1121
1121
|
var O = (i = A.__c).__H;
|
|
1122
|
-
O && (r === i ? (O.__h = [], i.__h = [], O.__.forEach(function(
|
|
1123
|
-
|
|
1122
|
+
O && (r === i ? (O.__h = [], i.__h = [], O.__.forEach(function(D) {
|
|
1123
|
+
D.__N && (D.__ = D.__N), D.u = D.__N = void 0;
|
|
1124
1124
|
})) : (O.__h.forEach(ye), O.__h.forEach(Ne), O.__h = [], o = 0)), r = i;
|
|
1125
1125
|
}, l.diffed = function(A) {
|
|
1126
1126
|
g && g(A);
|
|
1127
1127
|
var O = A.__c;
|
|
1128
|
-
O && O.__H && (O.__H.__h.length && (c.push(O) !== 1 && s === l.requestAnimationFrame || ((s = l.requestAnimationFrame) || re)(ue)), O.__H.__.forEach(function(
|
|
1129
|
-
|
|
1128
|
+
O && O.__H && (O.__H.__h.length && (c.push(O) !== 1 && s === l.requestAnimationFrame || ((s = l.requestAnimationFrame) || re)(ue)), O.__H.__.forEach(function(D) {
|
|
1129
|
+
D.u && (D.__H = D.u), D.u = void 0;
|
|
1130
1130
|
})), r = i = null;
|
|
1131
1131
|
}, l.__c = function(A, O) {
|
|
1132
|
-
O.some(function(
|
|
1132
|
+
O.some(function(D) {
|
|
1133
1133
|
try {
|
|
1134
|
-
|
|
1134
|
+
D.__h.forEach(ye), D.__h = D.__h.filter(function(Z) {
|
|
1135
1135
|
return !Z.__ || Ne(Z);
|
|
1136
1136
|
});
|
|
1137
1137
|
} catch (Z) {
|
|
1138
|
-
O.some(function(
|
|
1139
|
-
|
|
1140
|
-
}), O = [], l.__e(Z,
|
|
1138
|
+
O.some(function(j) {
|
|
1139
|
+
j.__h && (j.__h = []);
|
|
1140
|
+
}), O = [], l.__e(Z, D.__v);
|
|
1141
1141
|
}
|
|
1142
1142
|
}), k && k(A, O);
|
|
1143
1143
|
}, l.unmount = function(A) {
|
|
1144
|
-
|
|
1145
|
-
var O,
|
|
1146
|
-
|
|
1144
|
+
C && C(A);
|
|
1145
|
+
var O, D = A.__c;
|
|
1146
|
+
D && D.__H && (D.__H.__.forEach(function(Z) {
|
|
1147
1147
|
try {
|
|
1148
1148
|
ye(Z);
|
|
1149
|
-
} catch (
|
|
1150
|
-
O =
|
|
1149
|
+
} catch (j) {
|
|
1150
|
+
O = j;
|
|
1151
1151
|
}
|
|
1152
|
-
}),
|
|
1152
|
+
}), D.__H = void 0, O && l.__e(O, D.__v));
|
|
1153
1153
|
};
|
|
1154
1154
|
var le = typeof requestAnimationFrame == "function";
|
|
1155
1155
|
function re(A) {
|
|
1156
|
-
var O,
|
|
1156
|
+
var O, D = function() {
|
|
1157
1157
|
clearTimeout(Z), le && cancelAnimationFrame(O), setTimeout(A);
|
|
1158
|
-
}, Z = setTimeout(
|
|
1159
|
-
le && (O = requestAnimationFrame(
|
|
1158
|
+
}, Z = setTimeout(D, 35);
|
|
1159
|
+
le && (O = requestAnimationFrame(D));
|
|
1160
1160
|
}
|
|
1161
1161
|
function ye(A) {
|
|
1162
|
-
var O = i,
|
|
1163
|
-
typeof
|
|
1162
|
+
var O = i, D = A.__c;
|
|
1163
|
+
typeof D == "function" && (A.__c = void 0, D()), i = O;
|
|
1164
1164
|
}
|
|
1165
1165
|
function Ne(A) {
|
|
1166
1166
|
var O = i;
|
|
1167
1167
|
A.__c = A.__(), i = O;
|
|
1168
1168
|
}
|
|
1169
1169
|
function ot(A, O) {
|
|
1170
|
-
return !A || A.length !== O.length || O.some(function(
|
|
1171
|
-
return
|
|
1170
|
+
return !A || A.length !== O.length || O.some(function(D, Z) {
|
|
1171
|
+
return D !== A[Z];
|
|
1172
1172
|
});
|
|
1173
1173
|
}
|
|
1174
1174
|
function it(A, O) {
|
|
@@ -1187,11 +1187,11 @@ var ua = { 7(n, t, e) {
|
|
|
1187
1187
|
for (var d = {}, u = [], c = 0; c < r.length; c++) {
|
|
1188
1188
|
var l = r[c], m = s.base ? l[0] + s.base : l[0], v = d[m] || 0, g = "".concat(m, " ").concat(v);
|
|
1189
1189
|
d[m] = v + 1;
|
|
1190
|
-
var k = e(g),
|
|
1191
|
-
if (k !== -1) t[k].references++, t[k].updater(
|
|
1190
|
+
var k = e(g), C = { css: l[1], media: l[2], sourceMap: l[3], supports: l[4], layer: l[5] };
|
|
1191
|
+
if (k !== -1) t[k].references++, t[k].updater(C);
|
|
1192
1192
|
else {
|
|
1193
|
-
var
|
|
1194
|
-
s.byIndex = c, t.splice(c, 0, { identifier: g, updater:
|
|
1193
|
+
var x = i(C, s);
|
|
1194
|
+
s.byIndex = c, t.splice(c, 0, { identifier: g, updater: x, references: 1 });
|
|
1195
1195
|
}
|
|
1196
1196
|
u.push(g);
|
|
1197
1197
|
}
|
|
@@ -1367,12 +1367,12 @@ var ua = { 7(n, t, e) {
|
|
|
1367
1367
|
return i;
|
|
1368
1368
|
}).apply(t, [])) === void 0 || (n.exports = e);
|
|
1369
1369
|
})();
|
|
1370
|
-
} },
|
|
1370
|
+
} }, Ao = {};
|
|
1371
1371
|
function ee(n) {
|
|
1372
|
-
var t =
|
|
1372
|
+
var t = Ao[n];
|
|
1373
1373
|
if (t !== void 0) return t.exports;
|
|
1374
|
-
var e =
|
|
1375
|
-
return
|
|
1374
|
+
var e = Ao[n] = { id: n, exports: {} };
|
|
1375
|
+
return ya[n].call(e.exports, e, e.exports, ee), e.exports;
|
|
1376
1376
|
}
|
|
1377
1377
|
ee.n = (n) => {
|
|
1378
1378
|
var t = n && n.__esModule ? () => n.default : () => n;
|
|
@@ -1382,28 +1382,28 @@ ee.n = (n) => {
|
|
|
1382
1382
|
}, ee.o = (n, t) => Object.prototype.hasOwnProperty.call(n, t), ee.r = (n) => {
|
|
1383
1383
|
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(n, "__esModule", { value: !0 });
|
|
1384
1384
|
}, ee.nc = void 0;
|
|
1385
|
-
var
|
|
1386
|
-
ee.r(
|
|
1387
|
-
var b = ee(616),
|
|
1385
|
+
var jn = {};
|
|
1386
|
+
ee.r(jn), ee.d(jn, { apple: () => nr, checkmark: () => or, copy: () => ir, customProvider: () => ar, discord: () => rr, exclamation: () => sr, facebook: () => cr, github: () => lr, google: () => dr, linkedin: () => ur, mail: () => hr, microsoft: () => pr, passkey: () => mr, password: () => fr, qrCodeScanner: () => gr, securityKey: () => vr, spinner: () => _r });
|
|
1387
|
+
var b = ee(616), ba = 0;
|
|
1388
1388
|
function a(n, t, e, o, i, r) {
|
|
1389
1389
|
t || (t = {});
|
|
1390
1390
|
var s, d, u = t;
|
|
1391
1391
|
if ("ref" in u) for (d in u = {}, t) d == "ref" ? s = t[d] : u[d] = t[d];
|
|
1392
|
-
var c = { type: n, props: u, key: e, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --
|
|
1392
|
+
var c = { type: n, props: u, key: e, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --ba, __i: -1, __u: 0, __source: i, __self: r };
|
|
1393
1393
|
if (typeof n == "function" && (s = n.defaultProps)) for (d in s) u[d] === void 0 && (u[d] = s[d]);
|
|
1394
1394
|
return b.options.vnode && b.options.vnode(c), c;
|
|
1395
1395
|
}
|
|
1396
|
-
function
|
|
1397
|
-
return
|
|
1396
|
+
function vn() {
|
|
1397
|
+
return vn = Object.assign ? Object.assign.bind() : function(n) {
|
|
1398
1398
|
for (var t = 1; t < arguments.length; t++) {
|
|
1399
1399
|
var e = arguments[t];
|
|
1400
1400
|
for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (n[o] = e[o]);
|
|
1401
1401
|
}
|
|
1402
1402
|
return n;
|
|
1403
|
-
},
|
|
1403
|
+
}, vn.apply(this, arguments);
|
|
1404
1404
|
}
|
|
1405
|
-
var
|
|
1406
|
-
function
|
|
1405
|
+
var wa = ["context", "children"];
|
|
1406
|
+
function ka(n) {
|
|
1407
1407
|
this.getChildContext = function() {
|
|
1408
1408
|
return n.context;
|
|
1409
1409
|
};
|
|
@@ -1412,105 +1412,105 @@ function ma(n) {
|
|
|
1412
1412
|
var r, s, d = {}, u = Object.keys(o);
|
|
1413
1413
|
for (s = 0; s < u.length; s++) i.indexOf(r = u[s]) >= 0 || (d[r] = o[r]);
|
|
1414
1414
|
return d;
|
|
1415
|
-
}(n,
|
|
1415
|
+
}(n, wa);
|
|
1416
1416
|
return (0, b.cloneElement)(t, e);
|
|
1417
1417
|
}
|
|
1418
|
-
function
|
|
1418
|
+
function Sa() {
|
|
1419
1419
|
var n = new CustomEvent("_preact", { detail: {}, bubbles: !0, cancelable: !0 });
|
|
1420
|
-
this.dispatchEvent(n), this._vdom = (0, b.h)(
|
|
1420
|
+
this.dispatchEvent(n), this._vdom = (0, b.h)(ka, vn({}, this._props, { context: n.detail.context }), _i(this, this._vdomComponent)), (this.hasAttribute("hydrate") ? b.hydrate : b.render)(this._vdom, this._root);
|
|
1421
1421
|
}
|
|
1422
|
-
function
|
|
1422
|
+
function vi(n) {
|
|
1423
1423
|
return n.replace(/-(\w)/g, function(t, e) {
|
|
1424
1424
|
return e ? e.toUpperCase() : "";
|
|
1425
1425
|
});
|
|
1426
1426
|
}
|
|
1427
|
-
function
|
|
1427
|
+
function Ca(n, t, e) {
|
|
1428
1428
|
if (this._vdom) {
|
|
1429
1429
|
var o = {};
|
|
1430
|
-
o[n] = e = e ?? void 0, o[
|
|
1430
|
+
o[n] = e = e ?? void 0, o[vi(n)] = e, this._vdom = (0, b.cloneElement)(this._vdom, o), (0, b.render)(this._vdom, this._root);
|
|
1431
1431
|
}
|
|
1432
1432
|
}
|
|
1433
|
-
function
|
|
1433
|
+
function xa() {
|
|
1434
1434
|
(0, b.render)(this._vdom = null, this._root);
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1436
|
+
function Po(n, t) {
|
|
1437
1437
|
var e = this;
|
|
1438
|
-
return (0, b.h)("slot",
|
|
1438
|
+
return (0, b.h)("slot", vn({}, n, { ref: function(o) {
|
|
1439
1439
|
o ? (e.ref = o, e._listener || (e._listener = function(i) {
|
|
1440
1440
|
i.stopPropagation(), i.detail.context = t;
|
|
1441
1441
|
}, o.addEventListener("_preact", e._listener))) : e.ref.removeEventListener("_preact", e._listener);
|
|
1442
1442
|
} }));
|
|
1443
1443
|
}
|
|
1444
|
-
function
|
|
1444
|
+
function _i(n, t) {
|
|
1445
1445
|
if (n.nodeType === 3) return n.data;
|
|
1446
1446
|
if (n.nodeType !== 1) return null;
|
|
1447
1447
|
var e = [], o = {}, i = 0, r = n.attributes, s = n.childNodes;
|
|
1448
|
-
for (i = r.length; i--; ) r[i].name !== "slot" && (o[r[i].name] = r[i].value, o[
|
|
1448
|
+
for (i = r.length; i--; ) r[i].name !== "slot" && (o[r[i].name] = r[i].value, o[vi(r[i].name)] = r[i].value);
|
|
1449
1449
|
for (i = s.length; i--; ) {
|
|
1450
|
-
var d =
|
|
1451
|
-
u ? o[u] = (0, b.h)(
|
|
1450
|
+
var d = _i(s[i], null), u = s[i].slot;
|
|
1451
|
+
u ? o[u] = (0, b.h)(Po, { name: u }, d) : e[i] = d;
|
|
1452
1452
|
}
|
|
1453
|
-
var c = t ? (0, b.h)(
|
|
1453
|
+
var c = t ? (0, b.h)(Po, null, e) : e;
|
|
1454
1454
|
return (0, b.h)(t || n.nodeName.toLowerCase(), o, c);
|
|
1455
1455
|
}
|
|
1456
1456
|
var J = ee(7), f = ee(78);
|
|
1457
|
-
function
|
|
1457
|
+
function yi(n, t) {
|
|
1458
1458
|
for (var e in t) n[e] = t[e];
|
|
1459
1459
|
return n;
|
|
1460
1460
|
}
|
|
1461
|
-
function
|
|
1461
|
+
function Eo(n, t) {
|
|
1462
1462
|
for (var e in n) if (e !== "__source" && !(e in t)) return !0;
|
|
1463
1463
|
for (var o in t) if (o !== "__source" && n[o] !== t[o]) return !0;
|
|
1464
1464
|
return !1;
|
|
1465
1465
|
}
|
|
1466
1466
|
f.useLayoutEffect;
|
|
1467
|
-
function
|
|
1467
|
+
function Io(n, t) {
|
|
1468
1468
|
this.props = n, this.context = t;
|
|
1469
1469
|
}
|
|
1470
|
-
(
|
|
1471
|
-
return
|
|
1470
|
+
(Io.prototype = new b.Component()).isPureReactComponent = !0, Io.prototype.shouldComponentUpdate = function(n, t) {
|
|
1471
|
+
return Eo(this.props, n) || Eo(this.state, t);
|
|
1472
1472
|
};
|
|
1473
|
-
var
|
|
1473
|
+
var Oo = b.options.__b;
|
|
1474
1474
|
b.options.__b = function(n) {
|
|
1475
|
-
n.type && n.type.__f && n.ref && (n.props.ref = n.ref, n.ref = null),
|
|
1475
|
+
n.type && n.type.__f && n.ref && (n.props.ref = n.ref, n.ref = null), Oo && Oo(n);
|
|
1476
1476
|
};
|
|
1477
|
-
var
|
|
1477
|
+
var Aa = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911, Pa = (b.toChildArray, b.options.__e);
|
|
1478
1478
|
b.options.__e = function(n, t, e, o) {
|
|
1479
1479
|
if (n.then) {
|
|
1480
1480
|
for (var i, r = t; r = r.__; ) if ((i = r.__c) && i.__c) return t.__e == null && (t.__e = e.__e, t.__k = e.__k), i.__c(n, t);
|
|
1481
1481
|
}
|
|
1482
|
-
|
|
1482
|
+
Pa(n, t, e, o);
|
|
1483
1483
|
};
|
|
1484
|
-
var
|
|
1485
|
-
function
|
|
1484
|
+
var To = b.options.unmount;
|
|
1485
|
+
function bi(n, t, e) {
|
|
1486
1486
|
return n && (n.__c && n.__c.__H && (n.__c.__H.__.forEach(function(o) {
|
|
1487
1487
|
typeof o.__c == "function" && o.__c();
|
|
1488
|
-
}), n.__c.__H = null), (n =
|
|
1489
|
-
return
|
|
1488
|
+
}), n.__c.__H = null), (n = yi({}, n)).__c != null && (n.__c.__P === e && (n.__c.__P = t), n.__c.__e = !0, n.__c = null), n.__k = n.__k && n.__k.map(function(o) {
|
|
1489
|
+
return bi(o, t, e);
|
|
1490
1490
|
})), n;
|
|
1491
1491
|
}
|
|
1492
|
-
function
|
|
1492
|
+
function wi(n, t, e) {
|
|
1493
1493
|
return n && e && (n.__v = null, n.__k = n.__k && n.__k.map(function(o) {
|
|
1494
|
-
return
|
|
1494
|
+
return wi(o, t, e);
|
|
1495
1495
|
}), n.__c && n.__c.__P === t && (n.__e && e.appendChild(n.__e), n.__c.__e = !0, n.__c.__P = e)), n;
|
|
1496
1496
|
}
|
|
1497
|
-
function
|
|
1497
|
+
function Ln() {
|
|
1498
1498
|
this.__u = 0, this.o = null, this.__b = null;
|
|
1499
1499
|
}
|
|
1500
|
-
function
|
|
1500
|
+
function ki(n) {
|
|
1501
1501
|
var t = n.__.__c;
|
|
1502
1502
|
return t && t.__a && t.__a(n);
|
|
1503
1503
|
}
|
|
1504
|
-
function
|
|
1504
|
+
function Yt() {
|
|
1505
1505
|
this.i = null, this.l = null;
|
|
1506
1506
|
}
|
|
1507
1507
|
b.options.unmount = function(n) {
|
|
1508
1508
|
var t = n.__c;
|
|
1509
|
-
t && t.__R && t.__R(), t && 32 & n.__u && (n.type = null),
|
|
1510
|
-
}, (
|
|
1509
|
+
t && t.__R && t.__R(), t && 32 & n.__u && (n.type = null), To && To(n);
|
|
1510
|
+
}, (Ln.prototype = new b.Component()).__c = function(n, t) {
|
|
1511
1511
|
var e = t.__c, o = this;
|
|
1512
1512
|
o.o == null && (o.o = []), o.o.push(e);
|
|
1513
|
-
var i =
|
|
1513
|
+
var i = ki(o.__v), r = !1, s = function() {
|
|
1514
1514
|
r || (r = !0, e.__R = null, i ? i(d) : d());
|
|
1515
1515
|
};
|
|
1516
1516
|
e.__R = s;
|
|
@@ -1518,54 +1518,54 @@ b.options.unmount = function(n) {
|
|
|
1518
1518
|
if (!--o.__u) {
|
|
1519
1519
|
if (o.state.__a) {
|
|
1520
1520
|
var u = o.state.__a;
|
|
1521
|
-
o.__v.__k[0] =
|
|
1521
|
+
o.__v.__k[0] = wi(u, u.__c.__P, u.__c.__O);
|
|
1522
1522
|
}
|
|
1523
1523
|
var c;
|
|
1524
1524
|
for (o.setState({ __a: o.__b = null }); c = o.o.pop(); ) c.forceUpdate();
|
|
1525
1525
|
}
|
|
1526
1526
|
};
|
|
1527
1527
|
o.__u++ || 32 & t.__u || o.setState({ __a: o.__b = o.__v.__k[0] }), n.then(s, s);
|
|
1528
|
-
},
|
|
1528
|
+
}, Ln.prototype.componentWillUnmount = function() {
|
|
1529
1529
|
this.o = [];
|
|
1530
|
-
},
|
|
1530
|
+
}, Ln.prototype.render = function(n, t) {
|
|
1531
1531
|
if (this.__b) {
|
|
1532
1532
|
if (this.__v.__k) {
|
|
1533
1533
|
var e = document.createElement("div"), o = this.__v.__k[0].__c;
|
|
1534
|
-
this.__v.__k[0] =
|
|
1534
|
+
this.__v.__k[0] = bi(this.__b, e, o.__O = o.__P);
|
|
1535
1535
|
}
|
|
1536
1536
|
this.__b = null;
|
|
1537
1537
|
}
|
|
1538
1538
|
var i = t.__a && (0, b.createElement)(b.Fragment, null, n.fallback);
|
|
1539
1539
|
return i && (i.__u &= -33), [(0, b.createElement)(b.Fragment, null, t.__a ? null : n.children), i];
|
|
1540
1540
|
};
|
|
1541
|
-
var
|
|
1541
|
+
var Uo = function(n, t, e) {
|
|
1542
1542
|
if (++e[1] === e[0] && n.l.delete(t), n.props.revealOrder && (n.props.revealOrder[0] !== "t" || !n.l.size)) for (e = n.i; e; ) {
|
|
1543
1543
|
for (; e.length > 3; ) e.pop()();
|
|
1544
1544
|
if (e[1] < e[0]) break;
|
|
1545
1545
|
n.i = e = e[2];
|
|
1546
1546
|
}
|
|
1547
1547
|
};
|
|
1548
|
-
(
|
|
1549
|
-
var t = this, e =
|
|
1548
|
+
(Yt.prototype = new b.Component()).__a = function(n) {
|
|
1549
|
+
var t = this, e = ki(t.__v), o = t.l.get(n);
|
|
1550
1550
|
return o[0]++, function(i) {
|
|
1551
1551
|
var r = function() {
|
|
1552
|
-
t.props.revealOrder ? (o.push(i),
|
|
1552
|
+
t.props.revealOrder ? (o.push(i), Uo(t, n, o)) : i();
|
|
1553
1553
|
};
|
|
1554
1554
|
e ? e(r) : r();
|
|
1555
1555
|
};
|
|
1556
|
-
},
|
|
1556
|
+
}, Yt.prototype.render = function(n) {
|
|
1557
1557
|
this.i = null, this.l = /* @__PURE__ */ new Map();
|
|
1558
1558
|
var t = (0, b.toChildArray)(n.children);
|
|
1559
1559
|
n.revealOrder && n.revealOrder[0] === "b" && t.reverse();
|
|
1560
1560
|
for (var e = t.length; e--; ) this.l.set(t[e], this.i = [1, 0, this.i]);
|
|
1561
1561
|
return n.children;
|
|
1562
|
-
},
|
|
1562
|
+
}, Yt.prototype.componentDidUpdate = Yt.prototype.componentDidMount = function() {
|
|
1563
1563
|
var n = this;
|
|
1564
1564
|
this.l.forEach(function(t, e) {
|
|
1565
|
-
|
|
1565
|
+
Uo(n, e, t);
|
|
1566
1566
|
});
|
|
1567
1567
|
};
|
|
1568
|
-
var
|
|
1568
|
+
var Ea = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, Ia = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|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]/, Oa = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, Ta = /[A-Z0-9]/g, Ua = typeof document < "u", $a = function(n) {
|
|
1569
1569
|
return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(n);
|
|
1570
1570
|
};
|
|
1571
1571
|
b.Component.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(n) {
|
|
@@ -1575,58 +1575,58 @@ b.Component.prototype.isReactComponent = {}, ["componentWillMount", "componentWi
|
|
|
1575
1575
|
Object.defineProperty(this, n, { configurable: !0, writable: !0, value: t });
|
|
1576
1576
|
} });
|
|
1577
1577
|
});
|
|
1578
|
-
var
|
|
1579
|
-
function
|
|
1578
|
+
var $o = b.options.event;
|
|
1579
|
+
function Da() {
|
|
1580
1580
|
}
|
|
1581
|
-
function
|
|
1581
|
+
function La() {
|
|
1582
1582
|
return this.cancelBubble;
|
|
1583
1583
|
}
|
|
1584
|
-
function
|
|
1584
|
+
function Na() {
|
|
1585
1585
|
return this.defaultPrevented;
|
|
1586
1586
|
}
|
|
1587
1587
|
b.options.event = function(n) {
|
|
1588
|
-
return
|
|
1588
|
+
return $o && (n = $o(n)), n.persist = Da, n.isPropagationStopped = La, n.isDefaultPrevented = Na, n.nativeEvent = n;
|
|
1589
1589
|
};
|
|
1590
|
-
var
|
|
1590
|
+
var Ma = { enumerable: !1, configurable: !0, get: function() {
|
|
1591
1591
|
return this.class;
|
|
1592
|
-
} },
|
|
1592
|
+
} }, Do = b.options.vnode;
|
|
1593
1593
|
b.options.vnode = function(n) {
|
|
1594
1594
|
typeof n.type == "string" && function(t) {
|
|
1595
1595
|
var e = t.props, o = t.type, i = {}, r = o.indexOf("-") === -1;
|
|
1596
1596
|
for (var s in e) {
|
|
1597
1597
|
var d = e[s];
|
|
1598
|
-
if (!(s === "value" && "defaultValue" in e && d == null ||
|
|
1598
|
+
if (!(s === "value" && "defaultValue" in e && d == null || Ua && s === "children" && o === "noscript" || s === "class" || s === "className")) {
|
|
1599
1599
|
var u = s.toLowerCase();
|
|
1600
|
-
s === "defaultValue" && "value" in e && e.value == null ? s = "value" : s === "download" && d === !0 ? d = "" : u === "translate" && d === "no" ? d = !1 : u[0] === "o" && u[1] === "n" ? u === "ondoubleclick" ? s = "ondblclick" : u !== "onchange" || o !== "input" && o !== "textarea" ||
|
|
1600
|
+
s === "defaultValue" && "value" in e && e.value == null ? s = "value" : s === "download" && d === !0 ? d = "" : u === "translate" && d === "no" ? d = !1 : u[0] === "o" && u[1] === "n" ? u === "ondoubleclick" ? s = "ondblclick" : u !== "onchange" || o !== "input" && o !== "textarea" || $a(e.type) ? u === "onfocus" ? s = "onfocusin" : u === "onblur" ? s = "onfocusout" : Oa.test(s) && (s = u) : u = s = "oninput" : r && Ia.test(s) ? s = s.replace(Ta, "-$&").toLowerCase() : d === null && (d = void 0), u === "oninput" && i[s = u] && (s = "oninputCapture"), i[s] = d;
|
|
1601
1601
|
}
|
|
1602
1602
|
}
|
|
1603
1603
|
o == "select" && i.multiple && Array.isArray(i.value) && (i.value = (0, b.toChildArray)(e.children).forEach(function(c) {
|
|
1604
1604
|
c.props.selected = i.value.indexOf(c.props.value) != -1;
|
|
1605
1605
|
})), o == "select" && i.defaultValue != null && (i.value = (0, b.toChildArray)(e.children).forEach(function(c) {
|
|
1606
1606
|
c.props.selected = i.multiple ? i.defaultValue.indexOf(c.props.value) != -1 : i.defaultValue == c.props.value;
|
|
1607
|
-
})), e.class && !e.className ? (i.class = e.class, Object.defineProperty(i, "className",
|
|
1608
|
-
}(n), n.$$typeof =
|
|
1607
|
+
})), e.class && !e.className ? (i.class = e.class, Object.defineProperty(i, "className", Ma)) : (e.className && !e.class || e.class && e.className) && (i.class = i.className = e.className), t.props = i;
|
|
1608
|
+
}(n), n.$$typeof = Ea, Do && Do(n);
|
|
1609
1609
|
};
|
|
1610
|
-
var
|
|
1610
|
+
var Lo = b.options.__r;
|
|
1611
1611
|
b.options.__r = function(n) {
|
|
1612
|
-
|
|
1612
|
+
Lo && Lo(n), n.__c;
|
|
1613
1613
|
};
|
|
1614
|
-
var
|
|
1615
|
-
function
|
|
1616
|
-
return
|
|
1614
|
+
var No = b.options.diffed;
|
|
1615
|
+
function qe() {
|
|
1616
|
+
return qe = Object.assign ? Object.assign.bind() : function(n) {
|
|
1617
1617
|
for (var t = 1; t < arguments.length; t++) {
|
|
1618
1618
|
var e = arguments[t];
|
|
1619
1619
|
for (var o in e) ({}).hasOwnProperty.call(e, o) && (n[o] = e[o]);
|
|
1620
1620
|
}
|
|
1621
1621
|
return n;
|
|
1622
|
-
},
|
|
1622
|
+
}, qe.apply(null, arguments);
|
|
1623
1623
|
}
|
|
1624
1624
|
b.options.diffed = function(n) {
|
|
1625
|
-
|
|
1625
|
+
No && No(n);
|
|
1626
1626
|
var t = n.props, e = n.__e;
|
|
1627
1627
|
e != null && n.type === "textarea" && "value" in t && t.value !== e.value && (e.value = t.value == null ? "" : t.value);
|
|
1628
1628
|
}, f.useCallback, f.useContext, f.useDebugValue, f.useEffect, f.useId, f.useImperativeHandle, f.useLayoutEffect, f.useMemo, f.useReducer, f.useRef, f.useState, b.Fragment, f.useState, f.useId, f.useReducer, f.useEffect, f.useLayoutEffect, f.useRef, f.useImperativeHandle, f.useMemo, f.useCallback, f.useContext, f.useDebugValue, b.createElement, b.createContext, b.createRef, b.Fragment, b.Component;
|
|
1629
|
-
class
|
|
1629
|
+
class Ra {
|
|
1630
1630
|
static throttle(t, e, o = {}) {
|
|
1631
1631
|
const { leading: i = !0, trailing: r = !0 } = o;
|
|
1632
1632
|
let s, d, u, c = 0;
|
|
@@ -1641,15 +1641,15 @@ class Oa {
|
|
|
1641
1641
|
};
|
|
1642
1642
|
}
|
|
1643
1643
|
}
|
|
1644
|
-
const
|
|
1645
|
-
class
|
|
1644
|
+
const Qn = "hanko-session-created", Gn = "hanko-session-expired", Xn = "hanko-user-logged-out", eo = "hanko-user-deleted", Si = "hanko-after-state-change", Ci = "hanko-before-state-change";
|
|
1645
|
+
class xi extends CustomEvent {
|
|
1646
1646
|
constructor(t, e) {
|
|
1647
1647
|
super(t, { detail: e });
|
|
1648
1648
|
}
|
|
1649
1649
|
}
|
|
1650
|
-
class
|
|
1650
|
+
class bn {
|
|
1651
1651
|
constructor() {
|
|
1652
|
-
this.throttleLimit = 1e3, this._addEventListener = document.addEventListener.bind(document), this._removeEventListener = document.removeEventListener.bind(document), this._throttle =
|
|
1652
|
+
this.throttleLimit = 1e3, this._addEventListener = document.addEventListener.bind(document), this._removeEventListener = document.removeEventListener.bind(document), this._throttle = Ra.throttle;
|
|
1653
1653
|
}
|
|
1654
1654
|
wrapCallback(t, e) {
|
|
1655
1655
|
const o = (i) => {
|
|
@@ -1665,51 +1665,51 @@ class yn {
|
|
|
1665
1665
|
return { type: t, callback: o, once: e, throttle: i };
|
|
1666
1666
|
}
|
|
1667
1667
|
addEventListener(t, e, o) {
|
|
1668
|
-
return this.addEventListenerWithType(
|
|
1668
|
+
return this.addEventListenerWithType(bn.mapAddEventListenerParams(t, e, o));
|
|
1669
1669
|
}
|
|
1670
1670
|
onSessionCreated(t, e) {
|
|
1671
|
-
return this.addEventListener(
|
|
1671
|
+
return this.addEventListener(Qn, { callback: t, once: e }, !0);
|
|
1672
1672
|
}
|
|
1673
1673
|
onSessionExpired(t, e) {
|
|
1674
|
-
return this.addEventListener(
|
|
1674
|
+
return this.addEventListener(Gn, { callback: t, once: e }, !0);
|
|
1675
1675
|
}
|
|
1676
1676
|
onUserLoggedOut(t, e) {
|
|
1677
|
-
return this.addEventListener(
|
|
1677
|
+
return this.addEventListener(Xn, { callback: t, once: e });
|
|
1678
1678
|
}
|
|
1679
1679
|
onUserDeleted(t, e) {
|
|
1680
|
-
return this.addEventListener(
|
|
1680
|
+
return this.addEventListener(eo, { callback: t, once: e });
|
|
1681
1681
|
}
|
|
1682
1682
|
onAfterStateChange(t, e) {
|
|
1683
|
-
return this.addEventListener(
|
|
1683
|
+
return this.addEventListener(Si, { callback: t, once: e }, !1);
|
|
1684
1684
|
}
|
|
1685
1685
|
onBeforeStateChange(t, e) {
|
|
1686
|
-
return this.addEventListener(
|
|
1686
|
+
return this.addEventListener(Ci, { callback: t, once: e }, !1);
|
|
1687
1687
|
}
|
|
1688
1688
|
}
|
|
1689
|
-
class
|
|
1689
|
+
class Ai {
|
|
1690
1690
|
constructor() {
|
|
1691
1691
|
this._dispatchEvent = document.dispatchEvent.bind(document);
|
|
1692
1692
|
}
|
|
1693
1693
|
dispatch(t, e) {
|
|
1694
|
-
this._dispatchEvent(new
|
|
1694
|
+
this._dispatchEvent(new xi(t, e));
|
|
1695
1695
|
}
|
|
1696
1696
|
dispatchSessionCreatedEvent(t) {
|
|
1697
|
-
this.dispatch(
|
|
1697
|
+
this.dispatch(Qn, t);
|
|
1698
1698
|
}
|
|
1699
1699
|
dispatchSessionExpiredEvent() {
|
|
1700
|
-
this.dispatch(
|
|
1700
|
+
this.dispatch(Gn, null);
|
|
1701
1701
|
}
|
|
1702
1702
|
dispatchUserLoggedOutEvent() {
|
|
1703
|
-
this.dispatch(
|
|
1703
|
+
this.dispatch(Xn, null);
|
|
1704
1704
|
}
|
|
1705
1705
|
dispatchUserDeletedEvent() {
|
|
1706
|
-
this.dispatch(
|
|
1706
|
+
this.dispatch(eo, null);
|
|
1707
1707
|
}
|
|
1708
1708
|
dispatchAfterStateChangeEvent(t) {
|
|
1709
|
-
this.dispatch(
|
|
1709
|
+
this.dispatch(Si, t);
|
|
1710
1710
|
}
|
|
1711
1711
|
dispatchBeforeStateChangeEvent(t) {
|
|
1712
|
-
this.dispatch(
|
|
1712
|
+
this.dispatch(Ci, t);
|
|
1713
1713
|
}
|
|
1714
1714
|
}
|
|
1715
1715
|
class ut extends Error {
|
|
@@ -1717,14 +1717,14 @@ class ut extends Error {
|
|
|
1717
1717
|
super(t), this.code = void 0, this.cause = void 0, this.code = e, this.cause = o, Object.setPrototypeOf(this, ut.prototype);
|
|
1718
1718
|
}
|
|
1719
1719
|
}
|
|
1720
|
-
class
|
|
1720
|
+
class Ke extends ut {
|
|
1721
1721
|
constructor(t) {
|
|
1722
|
-
super("Technical error", "somethingWentWrong", t), Object.setPrototypeOf(this,
|
|
1722
|
+
super("Technical error", "somethingWentWrong", t), Object.setPrototypeOf(this, Ke.prototype);
|
|
1723
1723
|
}
|
|
1724
1724
|
}
|
|
1725
|
-
class
|
|
1725
|
+
class wn extends ut {
|
|
1726
1726
|
constructor(t) {
|
|
1727
|
-
super("Request timed out error", "requestTimeout", t), Object.setPrototypeOf(this,
|
|
1727
|
+
super("Request timed out error", "requestTimeout", t), Object.setPrototypeOf(this, wn.prototype);
|
|
1728
1728
|
}
|
|
1729
1729
|
}
|
|
1730
1730
|
class mt extends ut {
|
|
@@ -1732,17 +1732,17 @@ class mt extends ut {
|
|
|
1732
1732
|
super("Unauthorized error", "unauthorized", t), Object.setPrototypeOf(this, mt.prototype);
|
|
1733
1733
|
}
|
|
1734
1734
|
}
|
|
1735
|
-
function
|
|
1735
|
+
function Qt(n) {
|
|
1736
1736
|
for (var t = 1; t < arguments.length; t++) {
|
|
1737
1737
|
var e = arguments[t];
|
|
1738
1738
|
for (var o in e) n[o] = e[o];
|
|
1739
1739
|
}
|
|
1740
1740
|
return n;
|
|
1741
1741
|
}
|
|
1742
|
-
var
|
|
1742
|
+
var Nn = function n(t, e) {
|
|
1743
1743
|
function o(i, r, s) {
|
|
1744
1744
|
if (typeof document < "u") {
|
|
1745
|
-
typeof (s =
|
|
1745
|
+
typeof (s = Qt({}, e, s)).expires == "number" && (s.expires = new Date(Date.now() + 864e5 * s.expires)), s.expires && (s.expires = s.expires.toUTCString()), i = encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
1746
1746
|
var d = "";
|
|
1747
1747
|
for (var u in s) s[u] && (d += "; " + u, s[u] !== !0 && (d += "=" + s[u].split(";")[0]));
|
|
1748
1748
|
return document.cookie = i + "=" + t.write(r, i) + d;
|
|
@@ -1761,37 +1761,37 @@ var Dn = function n(t, e) {
|
|
|
1761
1761
|
return i ? s[i] : s;
|
|
1762
1762
|
}
|
|
1763
1763
|
}, remove: function(i, r) {
|
|
1764
|
-
o(i, "",
|
|
1764
|
+
o(i, "", Qt({}, r, { expires: -1 }));
|
|
1765
1765
|
}, withAttributes: function(i) {
|
|
1766
|
-
return n(this.converter,
|
|
1766
|
+
return n(this.converter, Qt({}, this.attributes, i));
|
|
1767
1767
|
}, withConverter: function(i) {
|
|
1768
|
-
return n(
|
|
1768
|
+
return n(Qt({}, this.converter, i), this.attributes);
|
|
1769
1769
|
} }, { attributes: { value: Object.freeze(e) }, converter: { value: Object.freeze(t) } });
|
|
1770
1770
|
}({ read: function(n) {
|
|
1771
1771
|
return n[0] === '"' && (n = n.slice(1, -1)), n.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
1772
1772
|
}, write: function(n) {
|
|
1773
1773
|
return encodeURIComponent(n).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent);
|
|
1774
1774
|
} }, { path: "/" });
|
|
1775
|
-
class
|
|
1775
|
+
class Pi {
|
|
1776
1776
|
constructor(t) {
|
|
1777
1777
|
var e, o;
|
|
1778
1778
|
this.authCookieName = void 0, this.authCookieDomain = void 0, this.authCookieSameSite = void 0, this.authCookieName = (e = t.cookieName) != null ? e : "hanko", this.authCookieDomain = t.cookieDomain, this.authCookieSameSite = (o = t.cookieSameSite) != null ? o : "lax";
|
|
1779
1779
|
}
|
|
1780
1780
|
getAuthCookie() {
|
|
1781
|
-
return
|
|
1781
|
+
return Nn.get(this.authCookieName);
|
|
1782
1782
|
}
|
|
1783
1783
|
setAuthCookie(t, e) {
|
|
1784
1784
|
const o = { secure: !0, sameSite: this.authCookieSameSite };
|
|
1785
1785
|
this.authCookieDomain !== void 0 && (o.domain = this.authCookieDomain);
|
|
1786
|
-
const i =
|
|
1787
|
-
if ((i.sameSite === "none" || i.sameSite === "None") && i.secure === !1) throw new
|
|
1788
|
-
|
|
1786
|
+
const i = qe({}, o, e);
|
|
1787
|
+
if ((i.sameSite === "none" || i.sameSite === "None") && i.secure === !1) throw new Ke(new Error("Secure attribute must be set when SameSite=None"));
|
|
1788
|
+
Nn.set(this.authCookieName, t, i);
|
|
1789
1789
|
}
|
|
1790
1790
|
removeAuthCookie() {
|
|
1791
|
-
|
|
1791
|
+
Nn.remove(this.authCookieName);
|
|
1792
1792
|
}
|
|
1793
1793
|
}
|
|
1794
|
-
class
|
|
1794
|
+
class za {
|
|
1795
1795
|
constructor(t) {
|
|
1796
1796
|
this.keyName = void 0, this.keyName = t.keyName;
|
|
1797
1797
|
}
|
|
@@ -1805,7 +1805,7 @@ class Ta {
|
|
|
1805
1805
|
sessionStorage.removeItem(this.keyName);
|
|
1806
1806
|
}
|
|
1807
1807
|
}
|
|
1808
|
-
class
|
|
1808
|
+
class qa {
|
|
1809
1809
|
constructor(t) {
|
|
1810
1810
|
this._xhr = void 0, this._xhr = t;
|
|
1811
1811
|
}
|
|
@@ -1813,9 +1813,9 @@ class $a {
|
|
|
1813
1813
|
return this._xhr.getResponseHeader(t);
|
|
1814
1814
|
}
|
|
1815
1815
|
}
|
|
1816
|
-
class
|
|
1816
|
+
class ja {
|
|
1817
1817
|
constructor(t) {
|
|
1818
|
-
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
|
|
1818
|
+
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 qa(t), this.ok = t.status >= 200 && t.status <= 299, this.status = t.status, this.statusText = t.statusText, this.url = t.responseURL, this.xhr = t;
|
|
1819
1819
|
}
|
|
1820
1820
|
json() {
|
|
1821
1821
|
return this._decodedJSON || (this._decodedJSON = JSON.parse(this.xhr.response)), this._decodedJSON;
|
|
@@ -1825,20 +1825,20 @@ class Da {
|
|
|
1825
1825
|
return isNaN(e) ? 0 : e;
|
|
1826
1826
|
}
|
|
1827
1827
|
}
|
|
1828
|
-
class
|
|
1828
|
+
class to {
|
|
1829
1829
|
constructor(t, e) {
|
|
1830
1830
|
var o;
|
|
1831
|
-
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 = t, this.timeout = (o = e.timeout) != null ? o : 13e3, this.dispatcher = new
|
|
1831
|
+
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 = t, this.timeout = (o = e.timeout) != null ? o : 13e3, this.dispatcher = new Ai(), this.cookie = new Pi(qe({}, e)), this.sessionTokenStorage = new za({ keyName: e.cookieName }), this.lang = e.lang, this.sessionTokenLocation = e.sessionTokenLocation;
|
|
1832
1832
|
}
|
|
1833
1833
|
_fetch(t, e, o = new XMLHttpRequest()) {
|
|
1834
1834
|
const i = this, r = this.api + t, s = this.timeout, d = this.getAuthToken(), u = this.lang;
|
|
1835
1835
|
return new Promise(function(c, l) {
|
|
1836
1836
|
o.open(e.method, r, !0), o.setRequestHeader("Accept", "application/json"), o.setRequestHeader("Content-Type", "application/json"), o.setRequestHeader("X-Language", u), d && o.setRequestHeader("Authorization", `Bearer ${d}`), o.timeout = s, o.withCredentials = !0, o.onload = () => {
|
|
1837
|
-
i.processHeaders(o), c(new
|
|
1837
|
+
i.processHeaders(o), c(new ja(o));
|
|
1838
1838
|
}, o.onerror = () => {
|
|
1839
|
-
l(new
|
|
1839
|
+
l(new Ke());
|
|
1840
1840
|
}, o.ontimeout = () => {
|
|
1841
|
-
l(new
|
|
1841
|
+
l(new wn());
|
|
1842
1842
|
}, o.send(e.body ? e.body.toString() : null);
|
|
1843
1843
|
});
|
|
1844
1844
|
}
|
|
@@ -1890,19 +1890,19 @@ class Qn {
|
|
|
1890
1890
|
}
|
|
1891
1891
|
}
|
|
1892
1892
|
}
|
|
1893
|
-
class
|
|
1893
|
+
class no {
|
|
1894
1894
|
constructor(t, e) {
|
|
1895
|
-
this.client = void 0, this.client = new
|
|
1895
|
+
this.client = void 0, this.client = new to(t, e);
|
|
1896
1896
|
}
|
|
1897
1897
|
}
|
|
1898
|
-
class
|
|
1898
|
+
class oo extends no {
|
|
1899
1899
|
async validate() {
|
|
1900
1900
|
const t = await this.client.get("/sessions/validate");
|
|
1901
|
-
if (!t.ok) throw new
|
|
1901
|
+
if (!t.ok) throw new Ke();
|
|
1902
1902
|
return await t.json();
|
|
1903
1903
|
}
|
|
1904
1904
|
}
|
|
1905
|
-
class
|
|
1905
|
+
class Ha {
|
|
1906
1906
|
constructor(t) {
|
|
1907
1907
|
this.storageKey = void 0, this.defaultState = { expiration: 0, lastCheck: 0 }, this.storageKey = t;
|
|
1908
1908
|
}
|
|
@@ -1914,7 +1914,7 @@ class Ua {
|
|
|
1914
1914
|
window.localStorage.setItem(this.storageKey, JSON.stringify(t || this.defaultState));
|
|
1915
1915
|
}
|
|
1916
1916
|
}
|
|
1917
|
-
class
|
|
1917
|
+
class Fa {
|
|
1918
1918
|
constructor(t, e) {
|
|
1919
1919
|
this.onActivityCallback = void 0, this.onInactivityCallback = void 0, this.handleFocus = () => {
|
|
1920
1920
|
this.onActivityCallback();
|
|
@@ -1925,7 +1925,7 @@ class La {
|
|
|
1925
1925
|
}, this.hasFocus = () => document.hasFocus(), this.onActivityCallback = t, this.onInactivityCallback = e, window.addEventListener("focus", this.handleFocus), window.addEventListener("blur", this.handleBlur), document.addEventListener("visibilitychange", this.handleVisibilityChange);
|
|
1926
1926
|
}
|
|
1927
1927
|
}
|
|
1928
|
-
class
|
|
1928
|
+
class Ka {
|
|
1929
1929
|
constructor(t, e, o) {
|
|
1930
1930
|
this.intervalID = null, this.timeoutID = null, this.checkInterval = void 0, this.checkSession = void 0, this.onSessionExpired = void 0, this.checkInterval = t, this.checkSession = e, this.onSessionExpired = o;
|
|
1931
1931
|
}
|
|
@@ -1966,7 +1966,7 @@ class Na {
|
|
|
1966
1966
|
return this.checkInterval >= e ? this.checkInterval - e % this.checkInterval : 0;
|
|
1967
1967
|
}
|
|
1968
1968
|
}
|
|
1969
|
-
class
|
|
1969
|
+
class Wa {
|
|
1970
1970
|
constructor(t = "hanko_session", e, o, i) {
|
|
1971
1971
|
this.channel = void 0, this.onSessionExpired = void 0, this.onSessionCreated = void 0, this.onLeadershipRequested = void 0, this.handleMessage = (r) => {
|
|
1972
1972
|
const s = r.data;
|
|
@@ -1986,9 +1986,9 @@ class Ma {
|
|
|
1986
1986
|
this.channel.postMessage(t);
|
|
1987
1987
|
}
|
|
1988
1988
|
}
|
|
1989
|
-
class
|
|
1989
|
+
class Ei extends Ai {
|
|
1990
1990
|
constructor(t, e) {
|
|
1991
|
-
super(), this.listener = new
|
|
1991
|
+
super(), this.listener = new bn(), 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 oo(t, e), e.sessionCheckInterval && (this.checkInterval = e.sessionCheckInterval < 3e3 ? 3e3 : e.sessionCheckInterval), this.sessionState = new Ha(`${e.cookieName}_session_state`), this.sessionChannel = new Wa(this.getSessionCheckChannelName(e.sessionTokenLocation, e.sessionCheckChannelName), () => this.onChannelSessionExpired(), (r) => this.onChannelSessionCreated(r), () => this.onChannelLeadershipRequested()), this.scheduler = new Ka(this.checkInterval, () => this.checkSession(), () => this.onSessionExpired()), this.windowActivityManager = new Fa(() => this.startSessionCheck(), () => this.scheduler.stop());
|
|
1992
1992
|
const o = Date.now(), { expiration: i } = this.sessionState.load();
|
|
1993
1993
|
this.isLoggedIn = o < i, this.initializeEventListeners(), this.startSessionCheck();
|
|
1994
1994
|
}
|
|
@@ -2042,12 +2042,12 @@ class ft {
|
|
|
2042
2042
|
return !(!window.PublicKeyCredential || !window.PublicKeyCredential.isConditionalMediationAvailable) && window.PublicKeyCredential.isConditionalMediationAvailable();
|
|
2043
2043
|
}
|
|
2044
2044
|
}
|
|
2045
|
-
function
|
|
2045
|
+
function Ii(n) {
|
|
2046
2046
|
const t = "==".slice(0, (4 - n.length % 4) % 4), e = n.replace(/-/g, "+").replace(/_/g, "/") + t, o = atob(e), i = new ArrayBuffer(o.length), r = new Uint8Array(i);
|
|
2047
2047
|
for (let s = 0; s < o.length; s++) r[s] = o.charCodeAt(s);
|
|
2048
2048
|
return i;
|
|
2049
2049
|
}
|
|
2050
|
-
function
|
|
2050
|
+
function Oi(n) {
|
|
2051
2051
|
const t = new Uint8Array(n);
|
|
2052
2052
|
let e = "";
|
|
2053
2053
|
for (const o of t) e += String.fromCharCode(o);
|
|
@@ -2071,7 +2071,7 @@ function _t(n, t, e) {
|
|
|
2071
2071
|
return o;
|
|
2072
2072
|
}
|
|
2073
2073
|
}
|
|
2074
|
-
function
|
|
2074
|
+
function Hn(n, t) {
|
|
2075
2075
|
return { required: !0, schema: n, derive: t };
|
|
2076
2076
|
}
|
|
2077
2077
|
function me(n) {
|
|
@@ -2080,16 +2080,16 @@ function me(n) {
|
|
|
2080
2080
|
function we(n) {
|
|
2081
2081
|
return { required: !1, schema: n };
|
|
2082
2082
|
}
|
|
2083
|
-
var
|
|
2083
|
+
var Ti = { type: me(ce), id: me(Me), transports: we(ce) }, Ui = { appid: we(ce), appidExclude: we(ce), credProps: we(ce) }, $i = { appid: we(ce), appidExclude: we(ce), credProps: we(ce) }, Va = { publicKey: me({ rp: me(ce), user: me({ id: me(Me), name: me(ce), displayName: me(ce) }), challenge: me(Me), pubKeyCredParams: me(ce), timeout: we(ce), excludeCredentials: we([Ti]), authenticatorSelection: we(ce), attestation: we(ce), extensions: we(Ui) }), signal: we(ce) }, Ba = { type: me(ce), id: me(ce), rawId: me(Me), authenticatorAttachment: we(ce), response: me({ clientDataJSON: me(Me), attestationObject: me(Me), transports: Hn(ce, (n) => {
|
|
2084
2084
|
var t;
|
|
2085
2085
|
return ((t = n.getTransports) == null ? void 0 : t.call(n)) || [];
|
|
2086
|
-
}) }), clientExtensionResults:
|
|
2087
|
-
async function
|
|
2086
|
+
}) }), clientExtensionResults: Hn($i, (n) => n.getClientExtensionResults()) }, Za = { mediation: we(ce), publicKey: me({ challenge: me(Me), timeout: we(ce), rpId: we(ce), allowCredentials: we([Ti]), userVerification: we(ce), extensions: we(Ui) }), signal: we(ce) }, Ja = { type: me(ce), id: me(ce), rawId: me(Me), authenticatorAttachment: we(ce), response: me({ clientDataJSON: me(Me), authenticatorData: me(Me), signature: me(Me), userHandle: me(Me) }), clientExtensionResults: Hn($i, (n) => n.getClientExtensionResults()) };
|
|
2087
|
+
async function Mo(n) {
|
|
2088
2088
|
const t = await navigator.credentials.get(function(e) {
|
|
2089
|
-
return _t(
|
|
2089
|
+
return _t(Ii, Za, e);
|
|
2090
2090
|
}(n));
|
|
2091
2091
|
return function(e) {
|
|
2092
|
-
return _t(
|
|
2092
|
+
return _t(Oi, Ja, e);
|
|
2093
2093
|
}(t);
|
|
2094
2094
|
}
|
|
2095
2095
|
class Ze {
|
|
@@ -2103,22 +2103,22 @@ class Ze {
|
|
|
2103
2103
|
return this.abortController.abort(), this.abortController = new AbortController(), this.abortController.signal;
|
|
2104
2104
|
}
|
|
2105
2105
|
async getWebauthnCredential(t) {
|
|
2106
|
-
return await
|
|
2106
|
+
return await Mo(qe({}, t, { signal: this.createAbortSignal() }));
|
|
2107
2107
|
}
|
|
2108
2108
|
async getConditionalWebauthnCredential(t) {
|
|
2109
|
-
return await
|
|
2109
|
+
return await Mo({ publicKey: t, mediation: "conditional", signal: this.createAbortSignal() });
|
|
2110
2110
|
}
|
|
2111
2111
|
async createWebauthnCredential(t) {
|
|
2112
2112
|
return await async function(e) {
|
|
2113
2113
|
return o = await navigator.credentials.create(function(i) {
|
|
2114
|
-
return _t(
|
|
2115
|
-
}(e)), _t(
|
|
2114
|
+
return _t(Ii, Va, i);
|
|
2115
|
+
}(e)), _t(Oi, Ba, o);
|
|
2116
2116
|
var o;
|
|
2117
|
-
}(
|
|
2117
|
+
}(qe({}, t, { signal: this.createAbortSignal() }));
|
|
2118
2118
|
}
|
|
2119
2119
|
}
|
|
2120
2120
|
Ze.instance = null;
|
|
2121
|
-
const
|
|
2121
|
+
const io = "hanko_pkce_code_verifier", kn = () => {
|
|
2122
2122
|
let n = "";
|
|
2123
2123
|
const t = new Uint8Array(1);
|
|
2124
2124
|
for (; n.length < 64; ) {
|
|
@@ -2127,12 +2127,12 @@ const eo = "hanko_pkce_code_verifier", wn = () => {
|
|
|
2127
2127
|
e < 198 && (n += "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~".charAt(e % 66));
|
|
2128
2128
|
}
|
|
2129
2129
|
return n;
|
|
2130
|
-
},
|
|
2131
|
-
typeof window < "u" && window.sessionStorage && window.sessionStorage.setItem(
|
|
2132
|
-
},
|
|
2133
|
-
typeof window < "u" && window.sessionStorage && window.sessionStorage.removeItem(
|
|
2130
|
+
}, Sn = (n) => {
|
|
2131
|
+
typeof window < "u" && window.sessionStorage && window.sessionStorage.setItem(io, n);
|
|
2132
|
+
}, Di = () => typeof window < "u" && window.sessionStorage ? window.sessionStorage.getItem(io) : null, nt = () => {
|
|
2133
|
+
typeof window < "u" && window.sessionStorage && window.sessionStorage.removeItem(io);
|
|
2134
2134
|
};
|
|
2135
|
-
async function
|
|
2135
|
+
async function Ro(n, t, e, o = "webauthn_credential_already_exists", i = "Webauthn credential already exists") {
|
|
2136
2136
|
try {
|
|
2137
2137
|
const r = await t.createWebauthnCredential(e);
|
|
2138
2138
|
return await n.actions.webauthn_verify_attestation_response.run({ public_key: r });
|
|
@@ -2141,7 +2141,7 @@ async function To(n, t, e, o = "webauthn_credential_already_exists", i = "Webaut
|
|
|
2141
2141
|
return s.error = { code: o, message: i }, s;
|
|
2142
2142
|
}
|
|
2143
2143
|
}
|
|
2144
|
-
const
|
|
2144
|
+
const zo = { preflight: async (n) => await n.actions.register_client_capabilities.run({ webauthn_available: ft.supported(), webauthn_conditional_mediation_available: await ft.isConditionalMediationAvailable(), webauthn_platform_authenticator_available: await ft.isPlatformAuthenticatorAvailable() }), login_passkey: async (n) => {
|
|
2145
2145
|
const t = Ze.getInstance();
|
|
2146
2146
|
try {
|
|
2147
2147
|
const e = await t.getWebauthnCredential(n.payload.request_options);
|
|
@@ -2150,7 +2150,7 @@ const $o = { preflight: async (n) => await n.actions.register_client_capabilitie
|
|
|
2150
2150
|
const o = await n.actions.back.run();
|
|
2151
2151
|
return n.error && (o.error = n.error), o;
|
|
2152
2152
|
}
|
|
2153
|
-
}, onboarding_verify_passkey_attestation: async (n) =>
|
|
2153
|
+
}, onboarding_verify_passkey_attestation: async (n) => Ro(n, Ze.getInstance(), n.payload.creation_options), webauthn_credential_verification: async (n) => Ro(n, Ze.getInstance(), n.payload.creation_options), async thirdparty(n) {
|
|
2154
2154
|
const t = new URLSearchParams(window.location.search), e = t.get("hanko_token"), o = t.get("error"), i = (r) => {
|
|
2155
2155
|
r.forEach((d) => t.delete(d));
|
|
2156
2156
|
const s = t.toString() ? `?${t.toString()}` : "";
|
|
@@ -2158,7 +2158,7 @@ const $o = { preflight: async (n) => await n.actions.register_client_capabilitie
|
|
|
2158
2158
|
};
|
|
2159
2159
|
if ((e == null ? void 0 : e.length) > 0) {
|
|
2160
2160
|
i(["hanko_token"]);
|
|
2161
|
-
const r =
|
|
2161
|
+
const r = Di();
|
|
2162
2162
|
try {
|
|
2163
2163
|
return await n.actions.exchange_token.run({ token: e, code_verifier: r || void 0 });
|
|
2164
2164
|
} finally {
|
|
@@ -2175,7 +2175,7 @@ const $o = { preflight: async (n) => await n.actions.register_client_capabilitie
|
|
|
2175
2175
|
}, success: async (n) => {
|
|
2176
2176
|
const { claims: t } = n.payload, e = Date.parse(t.expiration) - Date.now();
|
|
2177
2177
|
return n.removeFromLocalStorage(), n.hanko.relay.dispatchSessionCreatedEvent({ claims: t, expirationSeconds: e }), n;
|
|
2178
|
-
}, account_deleted: async (n) => (n.removeFromLocalStorage(), n.hanko.relay.dispatchUserDeletedEvent(), n) },
|
|
2178
|
+
}, account_deleted: async (n) => (n.removeFromLocalStorage(), n.hanko.relay.dispatchUserDeletedEvent(), n) }, qo = { login_init: async (n) => {
|
|
2179
2179
|
(async function() {
|
|
2180
2180
|
const t = Ze.getInstance();
|
|
2181
2181
|
if (n.payload.request_options) try {
|
|
@@ -2188,12 +2188,12 @@ const $o = { preflight: async (n) => await n.actions.register_client_capabilitie
|
|
|
2188
2188
|
} };
|
|
2189
2189
|
class ze {
|
|
2190
2190
|
constructor(t, e, o, i = {}) {
|
|
2191
|
-
if (this.name = void 0, this.flowName = void 0, this.error = void 0, this.payload = void 0, this.actions = void 0, this.csrfToken = void 0, this.status = void 0, this.previousAction = void 0, this.isCached = void 0, this.cacheKey = void 0, this.hanko = void 0, this.invokedAction = void 0, this.excludeAutoSteps = void 0, this.autoStep = void 0, this.passkeyAutofillActivation = void 0, this.flowName = e, this.name = o.name, this.error = o.error, this.payload = o.payload, this.csrfToken = o.csrf_token, this.status = o.status, this.hanko = t, this.actions = this.buildActionMap(o.actions), this.name in
|
|
2192
|
-
const l =
|
|
2191
|
+
if (this.name = void 0, this.flowName = void 0, this.error = void 0, this.payload = void 0, this.actions = void 0, this.csrfToken = void 0, this.status = void 0, this.previousAction = void 0, this.isCached = void 0, this.cacheKey = void 0, this.hanko = void 0, this.invokedAction = void 0, this.excludeAutoSteps = void 0, this.autoStep = void 0, this.passkeyAutofillActivation = void 0, this.flowName = e, this.name = o.name, this.error = o.error, this.payload = o.payload, this.csrfToken = o.csrf_token, this.status = o.status, this.hanko = t, this.actions = this.buildActionMap(o.actions), this.name in zo) {
|
|
2192
|
+
const l = zo[this.name];
|
|
2193
2193
|
this.autoStep = () => l(this);
|
|
2194
2194
|
}
|
|
2195
|
-
if (this.name in
|
|
2196
|
-
const l =
|
|
2195
|
+
if (this.name in qo) {
|
|
2196
|
+
const l = qo[this.name];
|
|
2197
2197
|
this.passkeyAutofillActivation = () => l(this);
|
|
2198
2198
|
}
|
|
2199
2199
|
const { dispatchAfterStateChangeEvent: r = !0, excludeAutoSteps: s = null, previousAction: d = null, isCached: u = !1, cacheKey: c = "hanko-flow-state" } = i;
|
|
@@ -2202,11 +2202,11 @@ class ze {
|
|
|
2202
2202
|
buildActionMap(t) {
|
|
2203
2203
|
const e = {};
|
|
2204
2204
|
return Object.keys(t).forEach((o) => {
|
|
2205
|
-
e[o] = new
|
|
2205
|
+
e[o] = new Ft(t[o], this);
|
|
2206
2206
|
}), new Proxy(e, { get: (o, i) => {
|
|
2207
2207
|
if (i in o) return o[i];
|
|
2208
2208
|
const r = typeof i == "string" ? i : i.toString();
|
|
2209
|
-
return
|
|
2209
|
+
return Ft.createDisabled(r, this);
|
|
2210
2210
|
} });
|
|
2211
2211
|
}
|
|
2212
2212
|
dispatchAfterStateChangeEvent() {
|
|
@@ -2216,7 +2216,7 @@ class ze {
|
|
|
2216
2216
|
return { flow_name: this.flowName, name: this.name, error: this.error, payload: this.payload, csrf_token: this.csrfToken, status: this.status, previous_action: this.previousAction, actions: Object.fromEntries(Object.entries(this.actions).map(([t, e]) => [t, { action: e.name, href: e.href, inputs: e.inputs, description: null }])) };
|
|
2217
2217
|
}
|
|
2218
2218
|
saveToLocalStorage() {
|
|
2219
|
-
localStorage.setItem(this.cacheKey, JSON.stringify(
|
|
2219
|
+
localStorage.setItem(this.cacheKey, JSON.stringify(qe({}, this.serialize(), { is_cached: !0 })));
|
|
2220
2220
|
}
|
|
2221
2221
|
removeFromLocalStorage() {
|
|
2222
2222
|
localStorage.removeItem(this.cacheKey);
|
|
@@ -2243,13 +2243,13 @@ class ze {
|
|
|
2243
2243
|
const { cacheKey: i = "hanko-flow-state", loadFromCache: r = !0 } = o;
|
|
2244
2244
|
if (r) {
|
|
2245
2245
|
const d = ze.readFromLocalStorage(i);
|
|
2246
|
-
if (d) return ze.deserialize(t, d,
|
|
2246
|
+
if (d) return ze.deserialize(t, d, qe({}, o, { cacheKey: i }));
|
|
2247
2247
|
}
|
|
2248
2248
|
const s = await ze.fetchState(t, `/${e}`);
|
|
2249
|
-
return ze.initializeFlowState(t, e, s,
|
|
2249
|
+
return ze.initializeFlowState(t, e, s, qe({}, o, { cacheKey: i }));
|
|
2250
2250
|
}
|
|
2251
2251
|
static async deserialize(t, e, o = {}) {
|
|
2252
|
-
return ze.initializeFlowState(t, e.flow_name, e,
|
|
2252
|
+
return ze.initializeFlowState(t, e.flow_name, e, qe({}, o, { previousAction: e.previous_action, isCached: e.is_cached }));
|
|
2253
2253
|
}
|
|
2254
2254
|
static async fetchState(t, e, o) {
|
|
2255
2255
|
try {
|
|
@@ -2262,51 +2262,51 @@ class ze {
|
|
|
2262
2262
|
return { actions: null, csrf_token: "", name: "error", payload: null, status: 0, error: t };
|
|
2263
2263
|
}
|
|
2264
2264
|
}
|
|
2265
|
-
class
|
|
2265
|
+
class Ft {
|
|
2266
2266
|
constructor(t, e, o = !0) {
|
|
2267
2267
|
this.enabled = void 0, this.href = void 0, this.name = void 0, this.inputs = void 0, this.parentState = void 0, this.enabled = o, this.href = t.href, this.name = t.action, this.inputs = t.inputs, this.parentState = e;
|
|
2268
2268
|
}
|
|
2269
2269
|
static createDisabled(t, e) {
|
|
2270
|
-
return new
|
|
2270
|
+
return new Ft({ action: t, href: "", inputs: {}, description: "Disabled action" }, e, !1);
|
|
2271
2271
|
}
|
|
2272
2272
|
async run(t = null, e = {}) {
|
|
2273
2273
|
const { name: o, hanko: i, flowName: r, csrfToken: s, invokedAction: d, excludeAutoSteps: u, cacheKey: c } = this.parentState, { dispatchAfterStateChangeEvent: l = !0 } = e;
|
|
2274
2274
|
if (!this.enabled) throw new Error(`Action '${this.name}' is not enabled in state '${o}'`);
|
|
2275
2275
|
if (d) throw new Error(`An action '${d.name}' has already been invoked on state '${d.relatedStateName}'. No further actions can be run.`);
|
|
2276
2276
|
this.parentState.invokedAction = { name: this.name, relatedStateName: o }, i.relay.dispatchBeforeStateChangeEvent({ state: this.parentState });
|
|
2277
|
-
const m = { input_data:
|
|
2278
|
-
const
|
|
2279
|
-
return
|
|
2277
|
+
const m = { input_data: qe({}, Object.keys(this.inputs).reduce((g, k) => {
|
|
2278
|
+
const C = this.inputs[k];
|
|
2279
|
+
return C.value !== void 0 && (g[k] = C.value), g;
|
|
2280
2280
|
}, {}), t), csrf_token: s }, v = await ze.fetchState(i, this.href, m);
|
|
2281
2281
|
return this.parentState.removeFromLocalStorage(), ze.initializeFlowState(i, r, v, { dispatchAfterStateChangeEvent: l, excludeAutoSteps: u, previousAction: d, cacheKey: c });
|
|
2282
2282
|
}
|
|
2283
2283
|
}
|
|
2284
|
-
class
|
|
2284
|
+
class Li extends no {
|
|
2285
2285
|
async getCurrent() {
|
|
2286
2286
|
const t = await this.client.get("/me");
|
|
2287
2287
|
if (t.status === 401) throw this.client.dispatcher.dispatchSessionExpiredEvent(), new mt();
|
|
2288
|
-
if (!t.ok) throw new
|
|
2288
|
+
if (!t.ok) throw new Ke();
|
|
2289
2289
|
const e = t.json(), o = await this.client.get(`/users/${e.id}`);
|
|
2290
2290
|
if (o.status === 401) throw this.client.dispatcher.dispatchSessionExpiredEvent(), new mt();
|
|
2291
|
-
if (!o.ok) throw new
|
|
2291
|
+
if (!o.ok) throw new Ke();
|
|
2292
2292
|
return o.json();
|
|
2293
2293
|
}
|
|
2294
2294
|
async getCurrentUser() {
|
|
2295
2295
|
const t = await this.client.get("/me");
|
|
2296
2296
|
if (t.status === 401) throw this.client.dispatcher.dispatchSessionExpiredEvent(), new mt();
|
|
2297
|
-
if (!t.ok) throw new
|
|
2297
|
+
if (!t.ok) throw new Ke();
|
|
2298
2298
|
return t.json();
|
|
2299
2299
|
}
|
|
2300
2300
|
async logout() {
|
|
2301
2301
|
const t = await this.client.post("/logout");
|
|
2302
|
-
if (this.client.sessionTokenStorage.removeSessionToken(), this.client.cookie.removeAuthCookie(), this.client.dispatcher.dispatchUserLoggedOutEvent(), t.status !== 401 && !t.ok) throw new
|
|
2302
|
+
if (this.client.sessionTokenStorage.removeSessionToken(), this.client.cookie.removeAuthCookie(), this.client.dispatcher.dispatchUserLoggedOutEvent(), t.status !== 401 && !t.ok) throw new Ke();
|
|
2303
2303
|
}
|
|
2304
2304
|
}
|
|
2305
|
-
class
|
|
2305
|
+
class Ni extends bn {
|
|
2306
2306
|
constructor(t, e) {
|
|
2307
2307
|
super(), this.session = void 0, this.user = void 0, this.cookie = void 0, this.client = void 0, this.relay = void 0;
|
|
2308
|
-
const o =
|
|
2309
|
-
this.client = new
|
|
2308
|
+
const o = qe({ timeout: 13e3, cookieName: "hanko", localStorageKey: "hanko", sessionCheckInterval: 3e4, sessionCheckChannelName: "hanko-session-check" }, e);
|
|
2309
|
+
this.client = new to(t, o), this.session = new oo(t, o), this.user = new Li(t, o), this.relay = new Ei(t, o), this.cookie = new Pi(o);
|
|
2310
2310
|
}
|
|
2311
2311
|
setLang(t) {
|
|
2312
2312
|
this.client.lang = t;
|
|
@@ -2330,73 +2330,73 @@ class Ii extends yn {
|
|
|
2330
2330
|
return this.user.logout();
|
|
2331
2331
|
}
|
|
2332
2332
|
}
|
|
2333
|
-
var
|
|
2333
|
+
var Ya = ee(292), Je = ee.n(Ya), Qa = ee(360), Ye = ee.n(Qa), Ga = ee(884), Qe = ee.n(Ga), Xa = ee(88), Ge = ee.n(Xa), an = ee(890), xt = {};
|
|
2334
2334
|
xt.setAttributes = Qe(), xt.insert = (n) => {
|
|
2335
2335
|
window._hankoStyle = n;
|
|
2336
|
-
}, xt.domAPI = Ye(), xt.insertStyleElement = Ge(), Je()(
|
|
2337
|
-
const
|
|
2336
|
+
}, xt.domAPI = Ye(), xt.insertStyleElement = Ge(), Je()(an.A, xt);
|
|
2337
|
+
const Kt = an.A && an.A.locals ? an.A.locals : void 0, er = function(n) {
|
|
2338
2338
|
function t(e) {
|
|
2339
|
-
var o =
|
|
2339
|
+
var o = yi({}, e);
|
|
2340
2340
|
return delete o.ref, n(o, e.ref || null);
|
|
2341
2341
|
}
|
|
2342
|
-
return t.$$typeof =
|
|
2342
|
+
return t.$$typeof = Aa, t.render = n, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (n.displayName || n.name) + ")", t;
|
|
2343
2343
|
}((n, t) => {
|
|
2344
|
-
const { lang: e, hanko: o, setHanko: i } = (0, f.useContext)(
|
|
2344
|
+
const { lang: e, hanko: o, setHanko: i } = (0, f.useContext)(De), { setLang: r } = (0, f.useContext)(J.TranslateContext);
|
|
2345
2345
|
return (0, f.useEffect)(() => {
|
|
2346
2346
|
r(e.replace(/[-]/, "")), i((s) => (s.setLang(e), s));
|
|
2347
|
-
}, [o, e, i, r]), a("section", { part: "container", className:
|
|
2347
|
+
}, [o, e, i, r]), a("section", { part: "container", className: Kt.container, ref: t, children: n.children });
|
|
2348
2348
|
});
|
|
2349
|
-
var
|
|
2350
|
-
|
|
2349
|
+
var rn = ee(313), At = {};
|
|
2350
|
+
At.setAttributes = Qe(), At.insert = (n) => {
|
|
2351
2351
|
window._hankoStyle = n;
|
|
2352
|
-
},
|
|
2353
|
-
const
|
|
2354
|
-
var
|
|
2355
|
-
const Za = ({ size: n, secondary: t, disabled: e }) => a("svg", { id: "icon-apple", xmlns: "http://www.w3.org/2000/svg", width: n, height: n, viewBox: "20.5 16 15 19", className: Q()($.icon, t && $.secondary, e && $.disabled), children: a("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" }) }), Ja = ({ secondary: n, size: t, fadeOut: e, disabled: o }) => a("svg", { id: "icon-checkmark", xmlns: "http://www.w3.org/2000/svg", viewBox: "4 4 40 40", width: t, height: t, className: Q()($.checkmark, n && $.secondary, e && $.fadeOut, o && $.disabled), children: a("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" }) }), Ya = ({ size: n, secondary: t, disabled: e }) => a("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 -960 960 960", width: n, height: n, className: Q()($.icon, t && $.secondary, e && $.disabled), children: a("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" }) }), Qa = ({ size: n, secondary: t, disabled: e }) => a("svg", { id: "icon-custom-provider", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: n, height: n, className: Q()($.icon, t && $.secondary, e && $.disabled), children: [a("path", { d: "M0 0h24v24H0z", fill: "none" }), a("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" })] }), Ga = ({ size: n, secondary: t, disabled: e }) => a("svg", { id: "icon-discord", fill: "#fff", xmlns: "http://www.w3.org/2000/svg", width: n, height: n, viewBox: "0 0 127.14 96.36", className: Q()($.icon, t && $.secondary, e && $.disabled), children: a("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" }) }), Xa = ({ size: n, secondary: t, disabled: e }) => a("svg", { id: "icon-exclamation", xmlns: "http://www.w3.org/2000/svg", viewBox: "5 2 13 20", width: n, height: n, className: Q()($.exclamationMark, t && $.secondary, e && $.disabled), children: a("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" }) }), er = ({ size: n, secondary: t, disabled: e }) => a("svg", { width: n, height: n, viewBox: "0 0 666.66668 666.66717", xmlns: "http://www.w3.org/2000/svg", children: [a("defs", { id: "defs13", children: a("clipPath", { clipPathUnits: "userSpaceOnUse", id: "clipPath25", children: a("path", { d: "M 0,700 H 700 V 0 H 0 Z", id: "path23" }) }) }), a("g", { id: "g17", transform: "matrix(1.3333333,0,0,-1.3333333,-133.33333,799.99999)", children: a("g", { id: "g19", children: a("g", { id: "g21", clipPath: "url(#clipPath25)", children: [a("g", { id: "g27", transform: "translate(600,350)", children: a("path", { className: Q()($.facebookIcon, e ? $.disabledOutline : $.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" }) }), a("g", { id: "g31", transform: "translate(447.9175,273.6036)", children: a("path", { className: Q()($.facebookIcon, e ? $.disabledLetter : $.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" }) })] }) }) })] }), tr = ({ size: n, secondary: t, disabled: e }) => a("svg", { id: "icon-github", xmlns: "http://www.w3.org/2000/svg", fill: "#fff", viewBox: "0 0 97.63 96", width: n, height: n, className: Q()($.icon, t && $.secondary, e && $.disabled), children: [a("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" }), " "] }), nr = ({ size: n, disabled: t }) => a("svg", { id: "icon-google", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: n, height: n, className: $.googleIcon, children: [a("path", { className: Q()($.googleIcon, t ? $.disabled : $.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" }), a("path", { className: Q()($.googleIcon, t ? $.disabled : $.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" }), a("path", { className: Q()($.googleIcon, t ? $.disabled : $.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" }), a("path", { className: Q()($.googleIcon, t ? $.disabled : $.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" }), a("path", { d: "M1 1h22v22H1z", fill: "none" })] }), or = ({ size: n, secondary: t, disabled: e }) => a("svg", { id: "icon-linkedin", fill: "#fff", xmlns: "http://www.w3.org/2000/svg", width: n, viewBox: "0 0 24 24", height: n, className: Q()($.icon, t && $.secondary, e && $.disabled), children: a("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" }) }), ir = ({ size: n, secondary: t, disabled: e }) => a("svg", { id: "icon-mail", xmlns: "http://www.w3.org/2000/svg", width: n, height: n, viewBox: "0 -960 960 960", className: Q()($.icon, t && $.secondary, e && $.disabled), children: a("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" }) }), ar = ({ size: n, disabled: t }) => a("svg", { id: "icon-microsoft", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: n, height: n, className: $.microsoftIcon, children: [a("rect", { className: Q()($.microsoftIcon, t ? $.disabled : $.blue), x: "1", y: "1", width: "9", height: "9" }), a("rect", { className: Q()($.microsoftIcon, t ? $.disabled : $.green), x: "1", y: "11", width: "9", height: "9" }), a("rect", { className: Q()($.microsoftIcon, t ? $.disabled : $.yellow), x: "11", y: "1", width: "9", height: "9" }), a("rect", { className: Q()($.microsoftIcon, t ? $.disabled : $.red), x: "11", y: "11", width: "9", height: "9" })] }), rr = ({ size: n, secondary: t, disabled: e }) => a("svg", { id: "icon-passkey", xmlns: "http://www.w3.org/2000/svg", viewBox: "3 1.5 19.5 19", width: n, height: n, className: Q()($.icon, t && $.secondary, e && $.disabled), children: a("g", { id: "icon-passkey-all", children: [a("circle", { id: "icon-passkey-head", cx: "10.5", cy: "6", r: "4.5" }), a("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" }), a("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" })] }) }), sr = ({ size: n, secondary: t, disabled: e }) => a("svg", { id: "icon-password", xmlns: "http://www.w3.org/2000/svg", width: n, height: n, viewBox: "0 -960 960 960", className: Q()($.icon, t && $.secondary, e && $.disabled), children: a("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" }) }), cr = ({ size: n, secondary: t, disabled: e }) => a("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 -960 960 960", width: n, height: n, className: Q()($.icon, t && $.secondary, e && $.disabled), children: a("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" }) }), lr = ({ size: n, secondary: t, disabled: e }) => a("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 -960 960 960", width: n, height: n, className: Q()($.icon, t && $.secondary, e && $.disabled), children: a("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" }) }), dr = ({ size: n, disabled: t }) => a("svg", { id: "icon-spinner", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: n, height: n, className: Q()($.loadingSpinner, t && $.disabled), children: [a("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" }), a("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" })] }), Wt = ({ name: n, secondary: t, size: e = 18, fadeOut: o, disabled: i }) => a(Rn[n], { size: e, secondary: t, fadeOut: o, disabled: i }), to = ({ children: n, isLoading: t, isSuccess: e, fadeOut: o, secondary: i, hasIcon: r, maxWidth: s }) => a(b.Fragment, { children: a("div", t ? { className: Q()($.loadingSpinnerWrapper, $.centerContent, s && $.maxWidth), children: a(Wt, { name: "spinner", secondary: i }) } : e ? { className: Q()($.loadingSpinnerWrapper, $.centerContent, s && $.maxWidth), children: a(Wt, { name: "checkmark", secondary: i, fadeOut: o }) } : { className: r ? $.loadingSpinnerWrapperIcon : $.loadingSpinnerWrapper, children: n }) }), ur = () => a(to, { isLoading: !0 }), Ee = (n) => {
|
|
2352
|
+
}, At.domAPI = Ye(), At.insertStyleElement = Ge(), Je()(rn.A, At);
|
|
2353
|
+
const U = rn.A && rn.A.locals ? rn.A.locals : void 0;
|
|
2354
|
+
var tr = ee(452), Q = ee.n(tr);
|
|
2355
|
+
const nr = ({ size: n, secondary: t, disabled: e }) => a("svg", { id: "icon-apple", xmlns: "http://www.w3.org/2000/svg", width: n, height: n, viewBox: "20.5 16 15 19", className: Q()(U.icon, t && U.secondary, e && U.disabled), children: a("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" }) }), or = ({ secondary: n, size: t, fadeOut: e, disabled: o }) => a("svg", { id: "icon-checkmark", xmlns: "http://www.w3.org/2000/svg", viewBox: "4 4 40 40", width: t, height: t, className: Q()(U.checkmark, n && U.secondary, e && U.fadeOut, o && U.disabled), children: a("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" }) }), ir = ({ size: n, secondary: t, disabled: e }) => a("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 -960 960 960", width: n, height: n, className: Q()(U.icon, t && U.secondary, e && U.disabled), children: a("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" }) }), ar = ({ size: n, secondary: t, disabled: e }) => a("svg", { id: "icon-custom-provider", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: n, height: n, className: Q()(U.icon, t && U.secondary, e && U.disabled), children: [a("path", { d: "M0 0h24v24H0z", fill: "none" }), a("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" })] }), rr = ({ size: n, secondary: t, disabled: e }) => a("svg", { id: "icon-discord", fill: "#fff", xmlns: "http://www.w3.org/2000/svg", width: n, height: n, viewBox: "0 0 127.14 96.36", className: Q()(U.icon, t && U.secondary, e && U.disabled), children: a("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" }) }), sr = ({ size: n, secondary: t, disabled: e }) => a("svg", { id: "icon-exclamation", xmlns: "http://www.w3.org/2000/svg", viewBox: "5 2 13 20", width: n, height: n, className: Q()(U.exclamationMark, t && U.secondary, e && U.disabled), children: a("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" }) }), cr = ({ size: n, secondary: t, disabled: e }) => a("svg", { width: n, height: n, viewBox: "0 0 666.66668 666.66717", xmlns: "http://www.w3.org/2000/svg", children: [a("defs", { id: "defs13", children: a("clipPath", { clipPathUnits: "userSpaceOnUse", id: "clipPath25", children: a("path", { d: "M 0,700 H 700 V 0 H 0 Z", id: "path23" }) }) }), a("g", { id: "g17", transform: "matrix(1.3333333,0,0,-1.3333333,-133.33333,799.99999)", children: a("g", { id: "g19", children: a("g", { id: "g21", clipPath: "url(#clipPath25)", children: [a("g", { id: "g27", transform: "translate(600,350)", children: a("path", { className: Q()(U.facebookIcon, e ? U.disabledOutline : U.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" }) }), a("g", { id: "g31", transform: "translate(447.9175,273.6036)", children: a("path", { className: Q()(U.facebookIcon, e ? U.disabledLetter : U.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" }) })] }) }) })] }), lr = ({ size: n, secondary: t, disabled: e }) => a("svg", { id: "icon-github", xmlns: "http://www.w3.org/2000/svg", fill: "#fff", viewBox: "0 0 97.63 96", width: n, height: n, className: Q()(U.icon, t && U.secondary, e && U.disabled), children: [a("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" }), " "] }), dr = ({ size: n, disabled: t }) => a("svg", { id: "icon-google", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: n, height: n, className: U.googleIcon, children: [a("path", { className: Q()(U.googleIcon, t ? U.disabled : U.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" }), a("path", { className: Q()(U.googleIcon, t ? U.disabled : U.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" }), a("path", { className: Q()(U.googleIcon, t ? U.disabled : U.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" }), a("path", { className: Q()(U.googleIcon, t ? U.disabled : U.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" }), a("path", { d: "M1 1h22v22H1z", fill: "none" })] }), ur = ({ size: n, secondary: t, disabled: e }) => a("svg", { id: "icon-linkedin", fill: "#fff", xmlns: "http://www.w3.org/2000/svg", width: n, viewBox: "0 0 24 24", height: n, className: Q()(U.icon, t && U.secondary, e && U.disabled), children: a("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" }) }), hr = ({ size: n, secondary: t, disabled: e }) => a("svg", { id: "icon-mail", xmlns: "http://www.w3.org/2000/svg", width: n, height: n, viewBox: "0 -960 960 960", className: Q()(U.icon, t && U.secondary, e && U.disabled), children: a("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" }) }), pr = ({ size: n, disabled: t }) => a("svg", { id: "icon-microsoft", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: n, height: n, className: U.microsoftIcon, children: [a("rect", { className: Q()(U.microsoftIcon, t ? U.disabled : U.blue), x: "1", y: "1", width: "9", height: "9" }), a("rect", { className: Q()(U.microsoftIcon, t ? U.disabled : U.green), x: "1", y: "11", width: "9", height: "9" }), a("rect", { className: Q()(U.microsoftIcon, t ? U.disabled : U.yellow), x: "11", y: "1", width: "9", height: "9" }), a("rect", { className: Q()(U.microsoftIcon, t ? U.disabled : U.red), x: "11", y: "11", width: "9", height: "9" })] }), mr = ({ size: n, secondary: t, disabled: e }) => a("svg", { id: "icon-passkey", xmlns: "http://www.w3.org/2000/svg", viewBox: "3 1.5 19.5 19", width: n, height: n, className: Q()(U.icon, t && U.secondary, e && U.disabled), children: a("g", { id: "icon-passkey-all", children: [a("circle", { id: "icon-passkey-head", cx: "10.5", cy: "6", r: "4.5" }), a("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" }), a("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" })] }) }), fr = ({ size: n, secondary: t, disabled: e }) => a("svg", { id: "icon-password", xmlns: "http://www.w3.org/2000/svg", width: n, height: n, viewBox: "0 -960 960 960", className: Q()(U.icon, t && U.secondary, e && U.disabled), children: a("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" }) }), gr = ({ size: n, secondary: t, disabled: e }) => a("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 -960 960 960", width: n, height: n, className: Q()(U.icon, t && U.secondary, e && U.disabled), children: a("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" }) }), vr = ({ size: n, secondary: t, disabled: e }) => a("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 -960 960 960", width: n, height: n, className: Q()(U.icon, t && U.secondary, e && U.disabled), children: a("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" }) }), _r = ({ size: n, disabled: t }) => a("svg", { id: "icon-spinner", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: n, height: n, className: Q()(U.loadingSpinner, t && U.disabled), children: [a("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" }), a("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" })] }), Wt = ({ name: n, secondary: t, size: e = 18, fadeOut: o, disabled: i }) => a(jn[n], { size: e, secondary: t, fadeOut: o, disabled: i }), ao = ({ children: n, isLoading: t, isSuccess: e, fadeOut: o, secondary: i, hasIcon: r, maxWidth: s }) => a(b.Fragment, { children: a("div", t ? { className: Q()(U.loadingSpinnerWrapper, U.centerContent, s && U.maxWidth), children: a(Wt, { name: "spinner", secondary: i }) } : e ? { className: Q()(U.loadingSpinnerWrapper, U.centerContent, s && U.maxWidth), children: a(Wt, { name: "checkmark", secondary: i, fadeOut: o }) } : { className: r ? U.loadingSpinnerWrapperIcon : U.loadingSpinnerWrapper, children: n }) }), yr = () => a(ao, { isLoading: !0 }), Ee = (n) => {
|
|
2356
2356
|
const [t, e] = (0, f.useState)(n);
|
|
2357
2357
|
return (0, f.useEffect)(() => {
|
|
2358
2358
|
n && e(n);
|
|
2359
2359
|
}, [n]), { flowState: t };
|
|
2360
2360
|
};
|
|
2361
|
-
var
|
|
2362
|
-
|
|
2361
|
+
var sn = ee(681), Pt = {};
|
|
2362
|
+
Pt.setAttributes = Qe(), Pt.insert = (n) => {
|
|
2363
2363
|
window._hankoStyle = n;
|
|
2364
|
-
},
|
|
2365
|
-
const
|
|
2366
|
-
const { hanko: o, setUIState: i, isOwnFlow: r } = (0, f.useContext)(
|
|
2364
|
+
}, Pt.domAPI = Ye(), Pt.insertStyleElement = Ge(), Je()(sn.A, Pt);
|
|
2365
|
+
const Ce = sn.A && sn.A.locals ? sn.A.locals : void 0, Mi = (n, t, e) => {
|
|
2366
|
+
const { hanko: o, setUIState: i, isOwnFlow: r } = (0, f.useContext)(De);
|
|
2367
2367
|
(0, f.useEffect)(() => o.onBeforeStateChange(({ state: s }) => {
|
|
2368
2368
|
n && r(s) && (i((d) => Object.assign(Object.assign({}, d), { isDisabled: !0, error: void 0 })), t(s.invokedAction.name == n.name));
|
|
2369
2369
|
}), [n, o, r, t, i]), (0, f.useEffect)(() => o.onAfterStateChange(({ state: s }) => {
|
|
2370
2370
|
var d;
|
|
2371
2371
|
n && r(s) && (e(((d = s.previousAction) === null || d === void 0 ? void 0 : d.name) == n.name), t(!1));
|
|
2372
2372
|
}), [o, e, t, n, r]);
|
|
2373
|
-
},
|
|
2373
|
+
}, Ri = (0, b.createContext)({}), te = ({ onSubmit: n, children: t, hidden: e = !1, maxWidth: o, flowAction: i }) => a(Ri.Provider, { value: { flowAction: i }, children: i && i.enabled && !e ? a("form", { onSubmit: n || ((r) => function(s, d, u, c) {
|
|
2374
2374
|
return new (u || (u = Promise))(function(l, m) {
|
|
2375
|
-
function v(
|
|
2375
|
+
function v(C) {
|
|
2376
2376
|
try {
|
|
2377
|
-
k(c.next(
|
|
2378
|
-
} catch (
|
|
2379
|
-
m(
|
|
2377
|
+
k(c.next(C));
|
|
2378
|
+
} catch (x) {
|
|
2379
|
+
m(x);
|
|
2380
2380
|
}
|
|
2381
2381
|
}
|
|
2382
|
-
function g(
|
|
2382
|
+
function g(C) {
|
|
2383
2383
|
try {
|
|
2384
|
-
k(c.throw(
|
|
2385
|
-
} catch (
|
|
2386
|
-
m(
|
|
2384
|
+
k(c.throw(C));
|
|
2385
|
+
} catch (x) {
|
|
2386
|
+
m(x);
|
|
2387
2387
|
}
|
|
2388
2388
|
}
|
|
2389
|
-
function k(
|
|
2390
|
-
var
|
|
2391
|
-
|
|
2392
|
-
|
|
2389
|
+
function k(C) {
|
|
2390
|
+
var x;
|
|
2391
|
+
C.done ? l(C.value) : (x = C.value, x instanceof u ? x : new u(function($) {
|
|
2392
|
+
$(x);
|
|
2393
2393
|
})).then(v, g);
|
|
2394
2394
|
}
|
|
2395
2395
|
k((c = c.apply(s, [])).next());
|
|
2396
2396
|
});
|
|
2397
2397
|
}(void 0, void 0, void 0, function* () {
|
|
2398
2398
|
return r.preventDefault(), yield i.run();
|
|
2399
|
-
})), className:
|
|
2399
|
+
})), className: Ce.form, children: a("ul", { className: Ce.ul, children: (0, b.toChildArray)(t).map((r, s) => a("li", { part: "form-item", className: Q()(Ce.li, o ? Ce.maxWidth : null), children: r }, s)) }) }) : null }), ne = (n) => {
|
|
2400
2400
|
var { title: t, children: e, secondary: o, dangerous: i, autofocus: r, showLastUsed: s, onClick: d, icon: u, showSuccessIcon: c } = n, l = function(I, M) {
|
|
2401
2401
|
var z = {};
|
|
2402
2402
|
for (var F in I) Object.prototype.hasOwnProperty.call(I, F) && M.indexOf(F) < 0 && (z[F] = I[F]);
|
|
@@ -2406,24 +2406,24 @@ const xe = rn.A && rn.A.locals ? rn.A.locals : void 0, Oi = (n, t, e) => {
|
|
|
2406
2406
|
}
|
|
2407
2407
|
return z;
|
|
2408
2408
|
}(n, ["title", "children", "secondary", "dangerous", "autofocus", "showLastUsed", "onClick", "icon", "showSuccessIcon"]);
|
|
2409
|
-
const m = (0, f.useRef)(null), { uiState: v } = (0, f.useContext)(
|
|
2410
|
-
|
|
2409
|
+
const m = (0, f.useRef)(null), { uiState: v } = (0, f.useContext)(De), { t: g } = (0, f.useContext)(J.TranslateContext), [k, C] = (0, f.useState)(!1), [x, $] = (0, f.useState)(!1), { flowAction: K } = (0, f.useContext)(Ri);
|
|
2410
|
+
Mi(K, C, $), (0, f.useEffect)(() => {
|
|
2411
2411
|
const { current: I } = m;
|
|
2412
2412
|
I && r && I.focus();
|
|
2413
2413
|
}, [r]);
|
|
2414
|
-
const w = (0, f.useMemo)(() => c && (
|
|
2415
|
-
return a("button", { part: i ? "button dangerous-button" : o ? "button secondary-button" : "button primary-button", title: t, ref: m, type: "submit", disabled: E, onClick: d, className: Q()(
|
|
2414
|
+
const w = (0, f.useMemo)(() => c && (x || l.isSuccess), [x, l, c]), E = (0, f.useMemo)(() => v.isDisabled || l.disabled, [l, v]);
|
|
2415
|
+
return a("button", { part: i ? "button dangerous-button" : o ? "button secondary-button" : "button primary-button", title: t, ref: m, type: "submit", disabled: E, onClick: d, className: Q()(Ce.button, i ? Ce.dangerous : o ? Ce.secondary : Ce.primary), "data-bubble": s ? g("labels.lastUsed") : void 0, children: a(ao, { isLoading: k, isSuccess: w, secondary: !0, hasIcon: !!u, maxWidth: !0, children: [u ? a(Wt, { name: u, secondary: o, disabled: E }) : null, a("div", { className: Ce.caption, children: a("span", { children: e }) })] }) });
|
|
2416
2416
|
}, Le = (n) => {
|
|
2417
2417
|
var t, e, o, i, r, { label: s } = n, d = function(g, k) {
|
|
2418
|
-
var
|
|
2419
|
-
for (var
|
|
2418
|
+
var C = {};
|
|
2419
|
+
for (var x in g) Object.prototype.hasOwnProperty.call(g, x) && k.indexOf(x) < 0 && (C[x] = g[x]);
|
|
2420
2420
|
if (g != null && typeof Object.getOwnPropertySymbols == "function") {
|
|
2421
|
-
var
|
|
2422
|
-
for (
|
|
2421
|
+
var $ = 0;
|
|
2422
|
+
for (x = Object.getOwnPropertySymbols(g); $ < x.length; $++) k.indexOf(x[$]) < 0 && Object.prototype.propertyIsEnumerable.call(g, x[$]) && (C[x[$]] = g[x[$]]);
|
|
2423
2423
|
}
|
|
2424
|
-
return
|
|
2424
|
+
return C;
|
|
2425
2425
|
}(n, ["label"]);
|
|
2426
|
-
const u = (0, f.useRef)(null), { uiState: c } = (0, f.useContext)(
|
|
2426
|
+
const u = (0, f.useRef)(null), { uiState: c } = (0, f.useContext)(De), { t: l } = (0, f.useContext)(J.TranslateContext), m = (0, f.useMemo)(() => c.isDisabled || d.disabled, [d, c]);
|
|
2427
2427
|
(0, f.useEffect)(() => {
|
|
2428
2428
|
const { current: g } = u;
|
|
2429
2429
|
g && d.autofocus && (g.focus(), g.select());
|
|
@@ -2432,20 +2432,20 @@ const xe = rn.A && rn.A.locals ? rn.A.locals : void 0, Oi = (n, t, e) => {
|
|
|
2432
2432
|
var g;
|
|
2433
2433
|
return d.markOptional && !(!((g = d.flowInput) === null || g === void 0) && g.required) ? `${d.placeholder} (${l("labels.optional")})` : d.placeholder;
|
|
2434
2434
|
}, [d.markOptional, d.placeholder, d.flowInput, l]);
|
|
2435
|
-
return a("div", { className:
|
|
2436
|
-
}, ke = ({ children: n }) => a("section", { className:
|
|
2437
|
-
var
|
|
2438
|
-
Pt.setAttributes = Qe(), Pt.insert = (n) => {
|
|
2439
|
-
window._hankoStyle = n;
|
|
2440
|
-
}, Pt.domAPI = Ye(), Pt.insertStyleElement = Ge(), Je()(sn.A, Pt);
|
|
2441
|
-
const Nt = sn.A && sn.A.locals ? sn.A.locals : void 0, no = ({ children: n, hidden: t }) => t ? null : a("section", { part: "divider", className: Nt.divider, children: [a("div", { part: "divider-line", className: Nt.line }), n ? a("div", { part: "divider-text", class: Nt.text, children: n }) : null, a("div", { part: "divider-line", className: Nt.line })] });
|
|
2442
|
-
var cn = ee(217), Et = {};
|
|
2435
|
+
return a("div", { className: Ce.inputWrapper, children: a("input", Object.assign({ part: "input text-input", required: (t = d.flowInput) === null || t === void 0 ? void 0 : t.required, maxLength: (e = d.flowInput) === null || e === void 0 ? void 0 : e.max_length, minLength: (o = d.flowInput) === null || o === void 0 ? void 0 : o.min_length, hidden: (i = d.flowInput) === null || i === void 0 ? void 0 : i.hidden }, d, { ref: u, "aria-label": v, placeholder: v, className: Q()(Ce.input, !!(!((r = d.flowInput) === null || r === void 0) && r.error) && d.markError && Ce.error), disabled: m })) });
|
|
2436
|
+
}, ke = ({ children: n }) => a("section", { className: Kt.content, children: n });
|
|
2437
|
+
var cn = ee(751), Et = {};
|
|
2443
2438
|
Et.setAttributes = Qe(), Et.insert = (n) => {
|
|
2444
2439
|
window._hankoStyle = n;
|
|
2445
2440
|
}, Et.domAPI = Ye(), Et.insertStyleElement = Ge(), Je()(cn.A, Et);
|
|
2446
|
-
const
|
|
2441
|
+
const Mt = cn.A && cn.A.locals ? cn.A.locals : void 0, ro = ({ children: n, hidden: t }) => t ? null : a("section", { part: "divider", className: Mt.divider, children: [a("div", { part: "divider-line", className: Mt.line }), n ? a("div", { part: "divider-text", class: Mt.text, children: n }) : null, a("div", { part: "divider-line", className: Mt.line })] });
|
|
2442
|
+
var ln = ee(217), It = {};
|
|
2443
|
+
It.setAttributes = Qe(), It.insert = (n) => {
|
|
2444
|
+
window._hankoStyle = n;
|
|
2445
|
+
}, It.domAPI = Ye(), It.insertStyleElement = Ge(), Je()(ln.A, It);
|
|
2446
|
+
const zi = ln.A && ln.A.locals ? ln.A.locals : void 0, Se = ({ state: n, error: t, flowError: e }) => {
|
|
2447
2447
|
var o, i;
|
|
2448
|
-
const { t: r } = (0, f.useContext)(J.TranslateContext), { uiState: s, setUIState: d } = (0, f.useContext)(
|
|
2448
|
+
const { t: r } = (0, f.useContext)(J.TranslateContext), { uiState: s, setUIState: d } = (0, f.useContext)(De);
|
|
2449
2449
|
return (0, f.useEffect)(() => {
|
|
2450
2450
|
var u, c;
|
|
2451
2451
|
if (((u = n == null ? void 0 : n.error) === null || u === void 0 ? void 0 : u.code) == "form_data_invalid_error") for (const l of Object.values(n == null ? void 0 : n.actions)) {
|
|
@@ -2454,18 +2454,18 @@ const $i = cn.A && cn.A.locals ? cn.A.locals : void 0, Se = ({ state: n, error:
|
|
|
2454
2454
|
m || d(Object.assign(Object.assign({}, s), { error: n.error }));
|
|
2455
2455
|
}
|
|
2456
2456
|
else n != null && n.error && d(Object.assign(Object.assign({}, s), { error: n == null ? void 0 : n.error }));
|
|
2457
|
-
}, [n]), a("section", { part: "error", className:
|
|
2457
|
+
}, [n]), a("section", { part: "error", className: zi.errorBox, hidden: !(!((o = s.error) === null || o === void 0) && o.code) && !(e != null && e.code) && !t, children: [a("span", { children: a(Wt, { name: "exclamation", size: 15 }) }), a("span", { id: "errorMessage", part: "error-text", children: r(t ? `errors.${t.code}` : `flowErrors.${((i = s.error) === null || i === void 0 ? void 0 : i.code) || (e == null ? void 0 : e.code)}`) })] });
|
|
2458
2458
|
};
|
|
2459
|
-
var
|
|
2460
|
-
It.setAttributes = Qe(), It.insert = (n) => {
|
|
2461
|
-
window._hankoStyle = n;
|
|
2462
|
-
}, It.domAPI = Ye(), It.insertStyleElement = Ge(), Je()(ln.A, It);
|
|
2463
|
-
const vn = ln.A && ln.A.locals ? ln.A.locals : void 0, de = ({ children: n }) => a("h1", { part: "headline1", className: Q()(vn.headline, vn.grade1), children: n });
|
|
2464
|
-
var dn = ee(579), Ot = {};
|
|
2459
|
+
var dn = ee(547), Ot = {};
|
|
2465
2460
|
Ot.setAttributes = Qe(), Ot.insert = (n) => {
|
|
2466
2461
|
window._hankoStyle = n;
|
|
2467
2462
|
}, Ot.domAPI = Ye(), Ot.insertStyleElement = Ge(), Je()(dn.A, Ot);
|
|
2468
|
-
const
|
|
2463
|
+
const _n = dn.A && dn.A.locals ? dn.A.locals : void 0, de = ({ children: n }) => a("h1", { part: "headline1", className: Q()(_n.headline, _n.grade1), children: n });
|
|
2464
|
+
var un = ee(579), Tt = {};
|
|
2465
|
+
Tt.setAttributes = Qe(), Tt.insert = (n) => {
|
|
2466
|
+
window._hankoStyle = n;
|
|
2467
|
+
}, Tt.domAPI = Ye(), Tt.insertStyleElement = Ge(), Je()(un.A, Tt);
|
|
2468
|
+
const Gt = un.A && un.A.locals ? un.A.locals : void 0, Fn = (n) => {
|
|
2469
2469
|
var { loadingSpinnerPosition: t, dangerous: e = !1, onClick: o, flowAction: i } = n, r = function(M, z) {
|
|
2470
2470
|
var F = {};
|
|
2471
2471
|
for (var V in M) Object.prototype.hasOwnProperty.call(M, V) && z.indexOf(V) < 0 && (F[V] = M[V]);
|
|
@@ -2475,7 +2475,7 @@ const Qt = dn.A && dn.A.locals ? dn.A.locals : void 0, Hn = (n) => {
|
|
|
2475
2475
|
}
|
|
2476
2476
|
return F;
|
|
2477
2477
|
}(n, ["loadingSpinnerPosition", "dangerous", "onClick", "flowAction"]);
|
|
2478
|
-
const { t: s } = (0, f.useContext)(J.TranslateContext), { uiState: d } = (0, f.useContext)(
|
|
2478
|
+
const { t: s } = (0, f.useContext)(J.TranslateContext), { uiState: d } = (0, f.useContext)(De), [u, c] = (0, f.useState)(), [l, m] = (0, f.useState)(!1), [v, g] = (0, f.useState)(!1);
|
|
2479
2479
|
let k;
|
|
2480
2480
|
o || (o = (M) => function(z, F, V, X) {
|
|
2481
2481
|
return new (V || (V = Promise))(function(N, fe) {
|
|
@@ -2503,22 +2503,22 @@ const Qt = dn.A && dn.A.locals ? dn.A.locals : void 0, Hn = (n) => {
|
|
|
2503
2503
|
});
|
|
2504
2504
|
}(void 0, void 0, void 0, function* () {
|
|
2505
2505
|
return M.preventDefault(), yield i == null ? void 0 : i.run();
|
|
2506
|
-
})),
|
|
2507
|
-
const
|
|
2506
|
+
})), Mi(i, m, g);
|
|
2507
|
+
const C = (M) => {
|
|
2508
2508
|
M.preventDefault(), c(!0);
|
|
2509
|
-
},
|
|
2509
|
+
}, x = (M) => {
|
|
2510
2510
|
M.preventDefault(), c(!1);
|
|
2511
|
-
},
|
|
2511
|
+
}, $ = (0, f.useMemo)(() => l || r.isLoading, [l, r]), K = (0, f.useMemo)(() => v || r.isSuccess, [v, r]), w = (0, f.useMemo)(() => i && !i.enabled || r.hidden, [i, r]), E = (0, f.useCallback)((M) => {
|
|
2512
2512
|
M.preventDefault(), c(!1), o(M);
|
|
2513
|
-
}, [o]), I = (0, f.useCallback)(() => w ? null : a(b.Fragment, { children: [u ? a(b.Fragment, { children: [a(
|
|
2514
|
-
return a(b.Fragment, { children: a("span", { className: Q()(
|
|
2513
|
+
}, [o]), I = (0, f.useCallback)(() => w ? null : a(b.Fragment, { children: [u ? a(b.Fragment, { children: [a(Fn, { onClick: E, children: s("labels.yes") }), " / ", a(Fn, { onClick: x, children: s("labels.no") }), " "] }) : null, a("button", Object.assign({}, r, { onClick: e ? C : o, disabled: u || r.disabled || d.isDisabled, part: "link", className: Q()(Gt.link, e ? Gt.danger : null), children: r.children }))] }), [w, d, u, e, o, E, r, s]);
|
|
2514
|
+
return a(b.Fragment, { children: a("span", { className: Q()(Gt.linkWrapper, t === "right" ? Gt.reverse : null), onMouseEnter: () => {
|
|
2515
2515
|
k && window.clearTimeout(k);
|
|
2516
2516
|
}, onMouseLeave: () => {
|
|
2517
2517
|
k = window.setTimeout(() => {
|
|
2518
2518
|
c(!1);
|
|
2519
2519
|
}, 1e3);
|
|
2520
|
-
}, children: a(b.Fragment, u ||
|
|
2521
|
-
}, G =
|
|
2520
|
+
}, children: a(b.Fragment, u || !$ && !K ? { children: I() } : { children: [a(ao, { isLoading: $, isSuccess: K, secondary: r.secondary, fadeOut: !0 }), I()] }) }) });
|
|
2521
|
+
}, G = Fn, Te = ({ children: n, hidden: t = !1 }) => t ? null : a("section", { className: Kt.footer, children: n }), so = (n) => {
|
|
2522
2522
|
var { label: t } = n, e = function(r, s) {
|
|
2523
2523
|
var d = {};
|
|
2524
2524
|
for (var u in r) Object.prototype.hasOwnProperty.call(r, u) && s.indexOf(u) < 0 && (d[u] = r[u]);
|
|
@@ -2528,15 +2528,15 @@ const Qt = dn.A && dn.A.locals ? dn.A.locals : void 0, Hn = (n) => {
|
|
|
2528
2528
|
}
|
|
2529
2529
|
return d;
|
|
2530
2530
|
}(n, ["label"]);
|
|
2531
|
-
const { uiState: o } = (0, f.useContext)(
|
|
2532
|
-
return a("div", { className:
|
|
2533
|
-
},
|
|
2534
|
-
var
|
|
2535
|
-
|
|
2531
|
+
const { uiState: o } = (0, f.useContext)(De), i = (0, f.useMemo)(() => o.isDisabled || e.disabled, [e, o]);
|
|
2532
|
+
return a("div", { className: Ce.inputWrapper, children: a("label", { className: Ce.checkboxWrapper, children: [a("input", Object.assign({ part: "input checkbox-input", type: "checkbox", "aria-label": t, className: Ce.checkbox }, e)), a("span", { className: Q()(Ce.label, i ? Ce.disabled : null), children: t })] }) });
|
|
2533
|
+
}, Cn = () => a("section", { className: Mt.spacer });
|
|
2534
|
+
var hn = ee(193), Ut = {};
|
|
2535
|
+
Ut.setAttributes = Qe(), Ut.insert = (n) => {
|
|
2536
2536
|
window._hankoStyle = n;
|
|
2537
|
-
},
|
|
2538
|
-
const
|
|
2539
|
-
var
|
|
2537
|
+
}, Ut.domAPI = Ye(), Ut.insertStyleElement = Ge(), Je()(hn.A, Ut);
|
|
2538
|
+
const Mn = hn.A && hn.A.locals ? hn.A.locals : void 0, W = ({ children: n, hidden: t, center: e }) => t ? null : a("p", { part: "paragraph", className: Q()(Mn.paragraph, e && Mn.center, e && Mn.column), children: n });
|
|
2539
|
+
var Xt = function(n, t, e, o) {
|
|
2540
2540
|
return new (e || (e = Promise))(function(i, r) {
|
|
2541
2541
|
function s(c) {
|
|
2542
2542
|
try {
|
|
@@ -2561,9 +2561,9 @@ var Gt = function(n, t, e, o) {
|
|
|
2561
2561
|
u((o = o.apply(n, [])).next());
|
|
2562
2562
|
});
|
|
2563
2563
|
};
|
|
2564
|
-
const
|
|
2564
|
+
const br = (n) => {
|
|
2565
2565
|
var t;
|
|
2566
|
-
const { t: e } = (0, f.useContext)(J.TranslateContext), { init: o, initialComponentName: i, uiState: r, setUIState: s, hidePasskeyButtonOnLogin: d, lastLogin: u } = (0, f.useContext)(
|
|
2566
|
+
const { t: e } = (0, f.useContext)(J.TranslateContext), { init: o, initialComponentName: i, uiState: r, setUIState: s, hidePasskeyButtonOnLogin: d, lastLogin: u } = (0, f.useContext)(De), [c, l] = (0, f.useState)(!1), [m, v] = (0, f.useState)(null), [g, k] = (0, f.useState)(null), { flowState: C } = Ee(n.state), x = ft.supported(), [$, K] = (0, f.useState)(void 0), [w, E] = (0, f.useState)(null), [I, M] = (0, f.useState)(!1), z = (N) => {
|
|
2567
2567
|
if (N.preventDefault(), N.target instanceof HTMLInputElement) {
|
|
2568
2568
|
const { value: fe } = N.target;
|
|
2569
2569
|
k(fe), F(fe);
|
|
@@ -2580,28 +2580,28 @@ const hr = (n) => {
|
|
|
2580
2580
|
case "identifier":
|
|
2581
2581
|
N.match(/^[^@]+@[^@]+\.[^@]+$/) ? fe() : _e();
|
|
2582
2582
|
}
|
|
2583
|
-
}, V = (0, f.useMemo)(() => (!!
|
|
2583
|
+
}, V = (0, f.useMemo)(() => (!!C.actions.webauthn_generate_request_options.enabled || !!C.actions.thirdparty_oauth.enabled) && C.actions.continue_with_login_identifier.enabled, [C.actions]), X = C.actions.continue_with_login_identifier.inputs;
|
|
2584
2584
|
return (0, f.useEffect)(() => {
|
|
2585
|
-
const N =
|
|
2585
|
+
const N = C.actions.continue_with_login_identifier.inputs;
|
|
2586
2586
|
N != null && N.email ? (v("email"), k(r.email)) : N != null && N.username ? (v("username"), k(r.username)) : (v("identifier"), k(r.email || r.username));
|
|
2587
|
-
}, [
|
|
2588
|
-
return N.preventDefault(), F(g),
|
|
2589
|
-
}), maxWidth: !0, children: [X.email ? a(Le, { type: "email", autoComplete: "username webauthn", autoCorrect: "off", flowInput: X.email, onInput: z, value: g, placeholder: e("labels.email"), pattern: "^[^@]+@[^@]+\\.[^@]+$" }) : X.username ? a(Le, { type: "text", autoComplete: "username webauthn", autoCorrect: "off", flowInput: X.username, onInput: z, value: g, placeholder: e("labels.username") }) : a(Le, { type: "text", autoComplete: "username webauthn", autoCorrect: "off", flowInput: X.identifier, onInput: z, value: g, placeholder: e("labels.emailOrUsername") }), a(ne, { children: e("labels.continue") })] }), a(
|
|
2587
|
+
}, [C, r.email, r.username]), a(b.Fragment, { children: [a(ke, { children: [a(de, { children: e("headlines.signIn") }), a(Se, { state: C, error: $ }), X ? a(b.Fragment, { children: [a(te, { flowAction: C.actions.continue_with_login_identifier, onSubmit: (N) => Xt(void 0, void 0, void 0, function* () {
|
|
2588
|
+
return N.preventDefault(), F(g), C.actions.continue_with_login_identifier.run({ [m]: g });
|
|
2589
|
+
}), maxWidth: !0, children: [X.email ? a(Le, { type: "email", autoComplete: "username webauthn", autoCorrect: "off", flowInput: X.email, onInput: z, value: g, placeholder: e("labels.email"), pattern: "^[^@]+@[^@]+\\.[^@]+$" }) : X.username ? a(Le, { type: "text", autoComplete: "username webauthn", autoCorrect: "off", flowInput: X.username, onInput: z, value: g, placeholder: e("labels.username") }) : a(Le, { type: "text", autoComplete: "username webauthn", autoCorrect: "off", flowInput: X.identifier, onInput: z, value: g, placeholder: e("labels.emailOrUsername") }), a(ne, { children: e("labels.continue") })] }), a(ro, { hidden: !V, children: e("labels.or") })] }) : null, C.actions.thirdparty_oauth.enabled ? (t = C.actions.thirdparty_oauth.inputs.provider.allowed_values) === null || t === void 0 ? void 0 : t.map((N) => a(te, { flowAction: C.actions.thirdparty_oauth, onSubmit: (fe) => ((_e, ue) => Xt(void 0, void 0, void 0, function* () {
|
|
2590
2590
|
_e.preventDefault(), E(ue);
|
|
2591
|
-
const le =
|
|
2592
|
-
|
|
2591
|
+
const le = kn();
|
|
2592
|
+
Sn(le);
|
|
2593
2593
|
try {
|
|
2594
|
-
const re = yield
|
|
2594
|
+
const re = yield C.actions.thirdparty_oauth.run({ provider: ue, redirect_to: window.location.toString(), code_verifier: le });
|
|
2595
2595
|
return re.error && (nt(), E(null)), re;
|
|
2596
2596
|
} catch (re) {
|
|
2597
2597
|
throw nt(), E(null), re;
|
|
2598
2598
|
}
|
|
2599
|
-
}))(fe, N.value), children: a(ne, { isLoading: N.value == w, secondary: !0, icon: N.value.startsWith("custom_") ? "customProvider" : N.value, showLastUsed: (u == null ? void 0 : u.login_method) == "third_party" && (u == null ? void 0 : u.third_party_provider) == N.value, children: e("labels.signInWith", { provider: N.name }) }) }, N.value)) : null,
|
|
2600
|
-
return M((fe) => !fe),
|
|
2601
|
-
}) })] })] }), a(Te, { hidden: i !== "auth", children: a(
|
|
2599
|
+
}))(fe, N.value), children: a(ne, { isLoading: N.value == w, secondary: !0, icon: N.value.startsWith("custom_") ? "customProvider" : N.value, showLastUsed: (u == null ? void 0 : u.login_method) == "third_party" && (u == null ? void 0 : u.third_party_provider) == N.value, children: e("labels.signInWith", { provider: N.name }) }) }, N.value)) : null, C.actions.webauthn_generate_request_options.enabled && !d ? a(te, { flowAction: C.actions.webauthn_generate_request_options, children: a(ne, { secondary: !0, title: x ? null : e("labels.webauthnUnsupported"), disabled: !x, children: e("labels.signInPasskey") }) }) : null, C.actions.remember_me.enabled && a(b.Fragment, { children: [a(Cn, {}), a(so, { required: !1, type: "checkbox", label: e("labels.staySignedIn"), checked: I, onChange: (N) => Xt(void 0, void 0, void 0, function* () {
|
|
2600
|
+
return M((fe) => !fe), C.actions.remember_me.run({ remember_me: !I });
|
|
2601
|
+
}) })] })] }), a(Te, { hidden: i !== "auth", children: a(W, { center: !0, children: [a("span", { children: e("labels.dontHaveAnAccount") }), a(G, { onClick: (N) => Xt(void 0, void 0, void 0, function* () {
|
|
2602
2602
|
N.preventDefault(), l(!0), o("registration");
|
|
2603
2603
|
}), loadingSpinnerPosition: "left", isLoading: c, children: e("labels.signUp") })] }) })] });
|
|
2604
|
-
},
|
|
2604
|
+
}, wr = (n) => {
|
|
2605
2605
|
var { index: t, focus: e, digit: o = "" } = n, i = function(c, l) {
|
|
2606
2606
|
var m = {};
|
|
2607
2607
|
for (var v in c) Object.prototype.hasOwnProperty.call(c, v) && l.indexOf(v) < 0 && (m[v] = c[v]);
|
|
@@ -2611,7 +2611,7 @@ const hr = (n) => {
|
|
|
2611
2611
|
}
|
|
2612
2612
|
return m;
|
|
2613
2613
|
}(n, ["index", "focus", "digit"]);
|
|
2614
|
-
const r = (0, f.useRef)(null), { uiState: s } = (0, f.useContext)(
|
|
2614
|
+
const r = (0, f.useRef)(null), { uiState: s } = (0, f.useContext)(De), d = () => {
|
|
2615
2615
|
const { current: c } = r;
|
|
2616
2616
|
c && (c.focus(), c.select());
|
|
2617
2617
|
}, u = (0, f.useMemo)(() => s.isDisabled || i.disabled, [i, s]);
|
|
@@ -2619,8 +2619,8 @@ const hr = (n) => {
|
|
|
2619
2619
|
t === 0 && d();
|
|
2620
2620
|
}, [t, i.disabled]), (0, f.useMemo)(() => {
|
|
2621
2621
|
e && d();
|
|
2622
|
-
}, [e]), a("div", { className:
|
|
2623
|
-
},
|
|
2622
|
+
}, [e]), a("div", { className: Ce.passcodeDigitWrapper, children: a("input", Object.assign({}, i, { part: "input passcode-input", "aria-label": `${i.name}-digit-${t + 1}`, name: i.name + t.toString(10), type: "text", inputMode: "numeric", maxLength: 1, ref: r, value: o.charAt(0), required: !0, className: Ce.input, disabled: u })) });
|
|
2623
|
+
}, co = ({ passcodeDigits: n = [], numberOfInputs: t = 6, onInput: e, disabled: o = !1 }) => {
|
|
2624
2624
|
const [i, r] = (0, f.useState)(0), s = () => n.slice(), d = () => {
|
|
2625
2625
|
i < t - 1 && r(i + 1);
|
|
2626
2626
|
}, u = () => {
|
|
@@ -2630,10 +2630,10 @@ const hr = (n) => {
|
|
|
2630
2630
|
k[i] = g.charAt(0), e(k);
|
|
2631
2631
|
}, l = (g) => {
|
|
2632
2632
|
if (g.preventDefault(), o) return;
|
|
2633
|
-
const k = g.clipboardData.getData("text/plain").slice(0, t - i).split(""),
|
|
2634
|
-
let
|
|
2635
|
-
for (let
|
|
2636
|
-
r(
|
|
2633
|
+
const k = g.clipboardData.getData("text/plain").slice(0, t - i).split(""), C = s();
|
|
2634
|
+
let x = i;
|
|
2635
|
+
for (let $ = 0; $ < t; ++$) $ >= i && k.length > 0 && (C[$] = k.shift(), x++);
|
|
2636
|
+
r(x), e(C);
|
|
2637
2637
|
}, m = (g) => {
|
|
2638
2638
|
g.key === "Backspace" ? (g.preventDefault(), c(""), u()) : g.key === "Delete" ? (g.preventDefault(), c("")) : g.key === "ArrowLeft" ? (g.preventDefault(), u()) : g.key === "ArrowRight" ? (g.preventDefault(), d()) : g.key !== " " && g.key !== "Spacebar" && g.key !== "Space" || g.preventDefault();
|
|
2639
2639
|
}, v = (g) => {
|
|
@@ -2641,11 +2641,11 @@ const hr = (n) => {
|
|
|
2641
2641
|
};
|
|
2642
2642
|
return (0, f.useEffect)(() => {
|
|
2643
2643
|
n.length === 0 && r(0);
|
|
2644
|
-
}, [n]), a("div", { className:
|
|
2645
|
-
r(
|
|
2644
|
+
}, [n]), a("div", { className: Ce.passcodeInputWrapper, children: Array.from(Array(t)).map((g, k) => a(wr, { name: "passcode", index: k, focus: i === k, digit: n[k], onKeyDown: m, onInput: v, onPaste: l, onFocus: () => ((C) => {
|
|
2645
|
+
r(C);
|
|
2646
2646
|
})(k), disabled: o }, k)) });
|
|
2647
2647
|
};
|
|
2648
|
-
var
|
|
2648
|
+
var jo = function(n, t, e, o) {
|
|
2649
2649
|
return new (e || (e = Promise))(function(i, r) {
|
|
2650
2650
|
function s(c) {
|
|
2651
2651
|
try {
|
|
@@ -2670,11 +2670,11 @@ var Uo = function(n, t, e, o) {
|
|
|
2670
2670
|
u((o = o.apply(n, [])).next());
|
|
2671
2671
|
});
|
|
2672
2672
|
};
|
|
2673
|
-
const
|
|
2674
|
-
const { t } = (0, f.useContext)(J.TranslateContext), { flowState: e } = Ee(n.state), { uiState: o, setUIState: i } = (0, f.useContext)(
|
|
2673
|
+
const kr = (n) => {
|
|
2674
|
+
const { t } = (0, f.useContext)(J.TranslateContext), { flowState: e } = Ee(n.state), { uiState: o, setUIState: i } = (0, f.useContext)(De), [r, s] = (0, f.useState)(), [d, u] = (0, f.useState)(e.payload.resend_after), [c, l] = (0, f.useState)([]), m = (0, f.useMemo)(() => {
|
|
2675
2675
|
var g;
|
|
2676
2676
|
return ((g = e.error) === null || g === void 0 ? void 0 : g.code) === "passcode_max_attempts_reached";
|
|
2677
|
-
}, [e]), v = (0, f.useCallback)((g) =>
|
|
2677
|
+
}, [e]), v = (0, f.useCallback)((g) => jo(void 0, void 0, void 0, function* () {
|
|
2678
2678
|
return yield e.actions.verify_passcode.run({ code: g });
|
|
2679
2679
|
}), [e]);
|
|
2680
2680
|
return (0, f.useEffect)(() => {
|
|
@@ -2690,16 +2690,16 @@ const mr = (n) => {
|
|
|
2690
2690
|
d == 0 && ((g = e.error) === null || g === void 0 ? void 0 : g.code) == "rate_limit_exceeded" && i((k) => Object.assign(Object.assign({}, k), { error: null }));
|
|
2691
2691
|
}, [d]), (0, f.useEffect)(() => {
|
|
2692
2692
|
l([]), e.payload.resend_after >= 0 && u(e.payload.resend_after);
|
|
2693
|
-
}, [e]), a(b.Fragment, { children: [a(ke, { children: [a(de, { children: t("headlines.loginPasscode") }), a(Se, { state: e }), a(
|
|
2693
|
+
}, [e]), a(b.Fragment, { children: [a(ke, { children: [a(de, { children: t("headlines.loginPasscode") }), a(Se, { state: e }), a(W, { children: o.email ? t("texts.enterPasscode") : t("texts.enterPasscodeNoEmail") }), a(W, { hidden: !o.email, children: a("b", { children: o.email }) }), a(te, { flowAction: e.actions.verify_passcode, onSubmit: (g) => jo(void 0, void 0, void 0, function* () {
|
|
2694
2694
|
return g.preventDefault(), v(c.join(""));
|
|
2695
|
-
}), children: [a(
|
|
2695
|
+
}), children: [a(co, { onInput: (g) => {
|
|
2696
2696
|
if (l(g), g.filter((k) => k !== "").length === 6) return v(g.join(""));
|
|
2697
2697
|
}, passcodeDigits: c, numberOfInputs: 6, disabled: r <= 0 || m }), a(ne, { disabled: r <= 0 || m, children: t("labels.continue") })] })] }), a(Te, { children: [a(G, { flowAction: e.actions.back, loadingSpinnerPosition: "right", children: t("labels.back") }), a(G, { disabled: d > 0, flowAction: e.actions.resend_passcode, loadingSpinnerPosition: "left", children: d > 0 ? t("labels.passcodeResendAfter", { passcodeResendAfter: d }) : t("labels.sendNewPasscode") })] })] });
|
|
2698
|
-
},
|
|
2698
|
+
}, Sr = (n) => {
|
|
2699
2699
|
const { t } = (0, f.useContext)(J.TranslateContext), { flowState: e } = Ee(n.state);
|
|
2700
|
-
return a(b.Fragment, { children: [a(ke, { children: [a(de, { children: t("headlines.registerAuthenticator") }), a(Se, { state: e }), a(
|
|
2700
|
+
return a(b.Fragment, { children: [a(ke, { children: [a(de, { children: t("headlines.registerAuthenticator") }), a(Se, { state: e }), a(W, { children: t("texts.setupPasskey") }), a(te, { flowAction: e.actions.webauthn_generate_creation_options, children: a(ne, { autofocus: !0, icon: "passkey", children: t("labels.registerAuthenticator") }) })] }), a(Te, { hidden: !e.actions.skip.enabled && !e.actions.back.enabled, children: [a(G, { loadingSpinnerPosition: "right", flowAction: e.actions.back, children: t("labels.back") }), a(G, { loadingSpinnerPosition: "left", flowAction: e.actions.skip, children: t("labels.skip") })] })] });
|
|
2701
2701
|
};
|
|
2702
|
-
var
|
|
2702
|
+
var Ho = function(n, t, e, o) {
|
|
2703
2703
|
return new (e || (e = Promise))(function(i, r) {
|
|
2704
2704
|
function s(c) {
|
|
2705
2705
|
try {
|
|
@@ -2724,18 +2724,18 @@ var Lo = function(n, t, e, o) {
|
|
|
2724
2724
|
u((o = o.apply(n, [])).next());
|
|
2725
2725
|
});
|
|
2726
2726
|
};
|
|
2727
|
-
const
|
|
2727
|
+
const Cr = (n) => {
|
|
2728
2728
|
const { t } = (0, f.useContext)(J.TranslateContext), { flowState: e } = Ee(n.state), [o, i] = (0, f.useState)(), [r, s] = (0, f.useState)(), d = (0, f.useMemo)(() => a(G, { flowAction: e.actions.continue_to_passcode_confirmation_recovery, loadingSpinnerPosition: "left", children: t("labels.forgotYourPassword") }), [e, t]), u = (0, f.useMemo)(() => a(G, { flowAction: e.actions.continue_to_login_method_chooser, loadingSpinnerPosition: "left", children: "Choose another method" }), [e]);
|
|
2729
2729
|
return (0, f.useEffect)(() => {
|
|
2730
2730
|
const c = r > 0 && setInterval(() => s(r - 1), 1e3);
|
|
2731
2731
|
return () => clearInterval(c);
|
|
2732
|
-
}, [r]), a(b.Fragment, { children: [a(ke, { children: [a(de, { children: t("headlines.loginPassword") }), a(Se, { state: e }), a(te, { flowAction: e.actions.password_login, onSubmit: (c) =>
|
|
2732
|
+
}, [r]), a(b.Fragment, { children: [a(ke, { children: [a(de, { children: t("headlines.loginPassword") }), a(Se, { state: e }), a(te, { flowAction: e.actions.password_login, onSubmit: (c) => Ho(void 0, void 0, void 0, function* () {
|
|
2733
2733
|
return c.preventDefault(), e.actions.password_login.run({ password: o });
|
|
2734
|
-
}), children: [a(Le, { type: "password", flowInput: e.actions.password_login.inputs.password, autocomplete: "current-password", placeholder: t("labels.password"), onInput: (c) =>
|
|
2734
|
+
}), children: [a(Le, { type: "password", flowInput: e.actions.password_login.inputs.password, autocomplete: "current-password", placeholder: t("labels.password"), onInput: (c) => Ho(void 0, void 0, void 0, function* () {
|
|
2735
2735
|
c.target instanceof HTMLInputElement && i(c.target.value);
|
|
2736
2736
|
}), autofocus: !0 }), a(ne, { disabled: r > 0, children: r > 0 ? t("labels.passwordRetryAfter", { passwordRetryAfter: r }) : t("labels.signIn") })] }), e.actions.continue_to_login_method_chooser.enabled ? d : null] }), a(Te, { children: [a(G, { flowAction: e.actions.back, loadingSpinnerPosition: "right", children: t("labels.back") }), e.actions.continue_to_login_method_chooser.enabled ? u : d] })] });
|
|
2737
2737
|
};
|
|
2738
|
-
var
|
|
2738
|
+
var Fo = function(n, t, e, o) {
|
|
2739
2739
|
return new (e || (e = Promise))(function(i, r) {
|
|
2740
2740
|
function s(c) {
|
|
2741
2741
|
try {
|
|
@@ -2760,18 +2760,18 @@ var No = function(n, t, e, o) {
|
|
|
2760
2760
|
u((o = o.apply(n, [])).next());
|
|
2761
2761
|
});
|
|
2762
2762
|
};
|
|
2763
|
-
const
|
|
2763
|
+
const xr = (n) => {
|
|
2764
2764
|
const { t } = (0, f.useContext)(J.TranslateContext), { flowState: e } = Ee(n.state), [o, i] = (0, f.useState)();
|
|
2765
|
-
return a(ke, { children: [a(de, { children: t("headlines.registerPassword") }), a(Se, { state: e }), a(
|
|
2765
|
+
return a(ke, { children: [a(de, { children: t("headlines.registerPassword") }), a(Se, { state: e }), a(W, { children: t("texts.passwordFormatHint", { minLength: e.actions.password_recovery.inputs.new_password.min_length, maxLength: 72 }) }), a(te, { flowAction: e.actions.password_recovery, onSubmit: (r) => Fo(void 0, void 0, void 0, function* () {
|
|
2766
2766
|
return r.preventDefault(), e.actions.password_recovery.run({ new_password: o });
|
|
2767
|
-
}), children: [a(Le, { type: "password", autocomplete: "new-password", flowInput: e.actions.password_recovery.inputs.new_password, placeholder: t("labels.newPassword"), onInput: (r) =>
|
|
2767
|
+
}), children: [a(Le, { type: "password", autocomplete: "new-password", flowInput: e.actions.password_recovery.inputs.new_password, placeholder: t("labels.newPassword"), onInput: (r) => Fo(void 0, void 0, void 0, function* () {
|
|
2768
2768
|
r.target instanceof HTMLInputElement && i(r.target.value);
|
|
2769
2769
|
}), autofocus: !0 }), a(ne, { children: t("labels.continue") })] })] });
|
|
2770
|
-
},
|
|
2770
|
+
}, Ar = (n) => {
|
|
2771
2771
|
const { t } = (0, f.useContext)(J.TranslateContext), { flowState: e } = Ee(n.state);
|
|
2772
|
-
return a(b.Fragment, { children: [a(ke, { children: [a(de, { children: t("headlines.selectLoginMethod") }), a(Se, { flowError: e == null ? void 0 : e.error }), a(
|
|
2772
|
+
return a(b.Fragment, { children: [a(ke, { children: [a(de, { children: t("headlines.selectLoginMethod") }), a(Se, { flowError: e == null ? void 0 : e.error }), a(W, { children: t("texts.howDoYouWantToLogin") }), a(te, { flowAction: e.actions.continue_to_passcode_confirmation, children: a(ne, { secondary: !0, icon: "mail", children: t("labels.passcode") }) }), a(te, { flowAction: e.actions.continue_to_password_login, children: a(ne, { secondary: !0, icon: "password", children: t("labels.password") }) }), a(te, { flowAction: e.actions.webauthn_generate_request_options, children: a(ne, { secondary: !0, icon: "passkey", children: t("labels.passkey") }) })] }), a(Te, { children: a(G, { flowAction: e.actions.back, loadingSpinnerPosition: "right", children: t("labels.back") }) })] });
|
|
2773
2773
|
};
|
|
2774
|
-
var
|
|
2774
|
+
var en = function(n, t, e, o) {
|
|
2775
2775
|
return new (e || (e = Promise))(function(i, r) {
|
|
2776
2776
|
function s(c) {
|
|
2777
2777
|
try {
|
|
@@ -2796,10 +2796,10 @@ var Xt = function(n, t, e, o) {
|
|
|
2796
2796
|
u((o = o.apply(n, [])).next());
|
|
2797
2797
|
});
|
|
2798
2798
|
};
|
|
2799
|
-
const
|
|
2799
|
+
const Pr = (n) => {
|
|
2800
2800
|
var t;
|
|
2801
|
-
const { t: e } = (0, f.useContext)(J.TranslateContext), { init: o, uiState: i, setUIState: r, initialComponentName: s } = (0, f.useContext)(
|
|
2802
|
-
return a(b.Fragment, { children: [a(ke, { children: [a(de, { children: e("headlines.signUp") }), a(Se, { state: d, error: l }), u ? a(b.Fragment, { children: [a(te, { flowAction: d.actions.register_login_identifier, onSubmit: (w) =>
|
|
2801
|
+
const { t: e } = (0, f.useContext)(J.TranslateContext), { init: o, uiState: i, setUIState: r, initialComponentName: s } = (0, f.useContext)(De), { flowState: d } = Ee(n.state), u = d.actions.register_login_identifier.inputs, c = !(!(u != null && u.email) || !(u != null && u.username)), [l, m] = (0, f.useState)(void 0), [v, g] = (0, f.useState)(null), [k, C] = (0, f.useState)(!1), [x, $] = (0, f.useState)(!1), K = (0, f.useMemo)(() => !!d.actions.thirdparty_oauth.enabled && d.actions.register_login_identifier.enabled, [d.actions]);
|
|
2802
|
+
return a(b.Fragment, { children: [a(ke, { children: [a(de, { children: e("headlines.signUp") }), a(Se, { state: d, error: l }), u ? a(b.Fragment, { children: [a(te, { flowAction: d.actions.register_login_identifier, onSubmit: (w) => en(void 0, void 0, void 0, function* () {
|
|
2803
2803
|
return w.preventDefault(), yield d.actions.register_login_identifier.run({ email: i.email, username: i.username });
|
|
2804
2804
|
}), maxWidth: !0, children: [u.username ? a(Le, { markOptional: c, markError: c, type: "text", autoComplete: "username", autoCorrect: "off", flowInput: u.username, onInput: (w) => {
|
|
2805
2805
|
if (w.preventDefault(), w.target instanceof HTMLInputElement) {
|
|
@@ -2811,25 +2811,25 @@ const yr = (n) => {
|
|
|
2811
2811
|
const { value: E } = w.target;
|
|
2812
2812
|
r((I) => Object.assign(Object.assign({}, I), { email: E }));
|
|
2813
2813
|
}
|
|
2814
|
-
}, value: i.email, placeholder: e("labels.email"), pattern: "^.*[^0-9]+$" }) : null, a(ne, { autofocus: !0, children: e("labels.continue") })] }), a(
|
|
2814
|
+
}, value: i.email, placeholder: e("labels.email"), pattern: "^.*[^0-9]+$" }) : null, a(ne, { autofocus: !0, children: e("labels.continue") })] }), a(ro, { hidden: !K, children: e("labels.or") })] }) : null, d.actions.thirdparty_oauth.enabled ? (t = d.actions.thirdparty_oauth.inputs.provider.allowed_values) === null || t === void 0 ? void 0 : t.map((w) => a(te, { flowAction: d.actions.thirdparty_oauth, onSubmit: (E) => ((I, M) => en(void 0, void 0, void 0, function* () {
|
|
2815
2815
|
I.preventDefault(), g(M);
|
|
2816
|
-
const z =
|
|
2817
|
-
|
|
2816
|
+
const z = kn();
|
|
2817
|
+
Sn(z);
|
|
2818
2818
|
try {
|
|
2819
2819
|
const F = yield d.actions.thirdparty_oauth.run({ provider: M, redirect_to: window.location.toString(), code_verifier: z }, { dispatchAfterStateChangeEvent: !1 });
|
|
2820
2820
|
F.error && (nt(), g(null)), F.dispatchAfterStateChangeEvent();
|
|
2821
2821
|
} catch (F) {
|
|
2822
2822
|
throw nt(), g(null), F;
|
|
2823
2823
|
}
|
|
2824
|
-
}))(E, w.value), children: a(ne, { isLoading: w.value == v, secondary: !0, icon: w.value.startsWith("custom_") ? "customProvider" : w.value, children: e("labels.signInWith", { provider: w.name }) }) }, w.value)) : null, d.actions.remember_me.enabled && a(b.Fragment, { children: [a(
|
|
2824
|
+
}))(E, w.value), children: a(ne, { isLoading: w.value == v, secondary: !0, icon: w.value.startsWith("custom_") ? "customProvider" : w.value, children: e("labels.signInWith", { provider: w.name }) }) }, w.value)) : null, d.actions.remember_me.enabled && a(b.Fragment, { children: [a(Cn, {}), a(so, { required: !1, type: "checkbox", label: e("labels.staySignedIn"), checked: k, onChange: (w) => en(void 0, void 0, void 0, function* () {
|
|
2825
2825
|
w.preventDefault();
|
|
2826
2826
|
const E = yield d.actions.remember_me.run({ remember_me: !k }, { dispatchAfterStateChangeEvent: !1 });
|
|
2827
|
-
|
|
2828
|
-
}) })] })] }), a(Te, { hidden: s !== "auth", children: a(
|
|
2829
|
-
w.preventDefault(),
|
|
2830
|
-
}), loadingSpinnerPosition: "left", isLoading:
|
|
2827
|
+
C((I) => !I), E.dispatchAfterStateChangeEvent();
|
|
2828
|
+
}) })] })] }), a(Te, { hidden: s !== "auth", children: a(W, { center: !0, children: [a("span", { children: e("labels.alreadyHaveAnAccount") }), a(G, { onClick: (w) => en(void 0, void 0, void 0, function* () {
|
|
2829
|
+
w.preventDefault(), $(!0), o("login");
|
|
2830
|
+
}), loadingSpinnerPosition: "left", isLoading: x, children: e("labels.signIn") })] }) })] });
|
|
2831
2831
|
};
|
|
2832
|
-
var
|
|
2832
|
+
var Ko = function(n, t, e, o) {
|
|
2833
2833
|
return new (e || (e = Promise))(function(i, r) {
|
|
2834
2834
|
function s(c) {
|
|
2835
2835
|
try {
|
|
@@ -2854,27 +2854,27 @@ var Mo = function(n, t, e, o) {
|
|
|
2854
2854
|
u((o = o.apply(n, [])).next());
|
|
2855
2855
|
});
|
|
2856
2856
|
};
|
|
2857
|
-
const
|
|
2857
|
+
const Er = (n) => {
|
|
2858
2858
|
const { t } = (0, f.useContext)(J.TranslateContext), { flowState: e } = Ee(n.state), [o, i] = (0, f.useState)();
|
|
2859
|
-
return a(b.Fragment, { children: [a(ke, { children: [a(de, { children: t("headlines.registerPassword") }), a(Se, { state: e }), a(
|
|
2859
|
+
return a(b.Fragment, { children: [a(ke, { children: [a(de, { children: t("headlines.registerPassword") }), a(Se, { state: e }), a(W, { children: t("texts.passwordFormatHint", { minLength: e.actions.register_password.inputs.new_password.min_length, maxLength: 72 }) }), a(te, { flowAction: e.actions.register_password, onSubmit: (r) => Ko(void 0, void 0, void 0, function* () {
|
|
2860
2860
|
return r.preventDefault(), e.actions.register_password.run({ new_password: o });
|
|
2861
|
-
}), children: [a(Le, { type: "password", autocomplete: "new-password", flowInput: e.actions.register_password.inputs.new_password, placeholder: t("labels.newPassword"), onInput: (r) =>
|
|
2861
|
+
}), children: [a(Le, { type: "password", autocomplete: "new-password", flowInput: e.actions.register_password.inputs.new_password, placeholder: t("labels.newPassword"), onInput: (r) => Ko(void 0, void 0, void 0, function* () {
|
|
2862
2862
|
r.target instanceof HTMLInputElement && i(r.target.value);
|
|
2863
2863
|
}), autofocus: !0 }), a(ne, { children: t("labels.continue") })] })] }), a(Te, { hidden: !e.actions.back.enabled && !e.actions.skip.enabled, children: [a(G, { loadingSpinnerPosition: "right", flowAction: e.actions.back, children: t("labels.back") }), a(G, { loadingSpinnerPosition: "left", flowAction: e.actions.skip, children: t("labels.skip") })] })] });
|
|
2864
2864
|
};
|
|
2865
|
-
var
|
|
2865
|
+
var pn = ee(597), $t = {};
|
|
2866
2866
|
$t.setAttributes = Qe(), $t.insert = (n) => {
|
|
2867
2867
|
window._hankoStyle = n;
|
|
2868
|
-
}, $t.domAPI = Ye(), $t.insertStyleElement = Ge(), Je()(
|
|
2869
|
-
const Fe =
|
|
2868
|
+
}, $t.domAPI = Ye(), $t.insertStyleElement = Ge(), Je()(pn.A, $t);
|
|
2869
|
+
const Fe = pn.A && pn.A.locals ? pn.A.locals : void 0, Vt = function({ name: n, columnSelector: t, contentSelector: e, data: o = [], checkedItemID: i, setCheckedItemID: r, dropdown: s = !1 }) {
|
|
2870
2870
|
const d = (0, f.useCallback)((l) => `${n}-${l}`, [n]), u = (0, f.useCallback)((l) => d(l) === i, [i, d]), c = (l) => {
|
|
2871
2871
|
if (!(l.target instanceof HTMLInputElement)) return;
|
|
2872
2872
|
const m = parseInt(l.target.value, 10), v = d(m);
|
|
2873
2873
|
r(v === i ? null : v);
|
|
2874
2874
|
};
|
|
2875
2875
|
return a("div", { className: Fe.accordion, children: o.map((l, m) => a("div", { className: Fe.accordionItem, children: [a("input", { type: "radio", className: Fe.accordionInput, id: `${n}-${m}`, name: n, onClick: c, value: m, checked: u(m) }), a("label", { className: Q()(Fe.label, s && Fe.dropdown), for: `${n}-${m}`, children: a("span", { className: Fe.labelText, children: t(l, m) }) }), a("div", { className: Q()(Fe.accordionContent, s && Fe.dropdownContent), children: e(l, m) })] }, m)) });
|
|
2876
|
-
},
|
|
2877
|
-
var
|
|
2876
|
+
}, $e = ({ children: n }) => a("h2", { part: "headline2", className: Q()(_n.headline, _n.grade2), children: n });
|
|
2877
|
+
var Rn = function(n, t, e, o) {
|
|
2878
2878
|
return new (e || (e = Promise))(function(i, r) {
|
|
2879
2879
|
function s(c) {
|
|
2880
2880
|
try {
|
|
@@ -2899,94 +2899,94 @@ var Ln = function(n, t, e, o) {
|
|
|
2899
2899
|
u((o = o.apply(n, [])).next());
|
|
2900
2900
|
});
|
|
2901
2901
|
};
|
|
2902
|
-
const
|
|
2902
|
+
const Ir = ({ checkedItemID: n, setCheckedItemID: t, flowState: e, onState: o }) => {
|
|
2903
2903
|
const { t: i } = (0, f.useContext)(J.TranslateContext), r = (0, f.useMemo)(() => !1, []);
|
|
2904
|
-
return a(
|
|
2904
|
+
return a(Vt, { name: "email-edit-dropdown", columnSelector: (s) => {
|
|
2905
2905
|
const d = a("span", { className: Fe.description, children: s.is_verified ? s.is_primary ? a(b.Fragment, { children: [" -", " ", i("labels.primaryEmail")] }) : null : a(b.Fragment, { children: [" -", " ", i("labels.unverifiedEmail")] }) });
|
|
2906
2906
|
return s.is_primary ? a(b.Fragment, { children: [a("b", { children: s.address }), d] }) : a(b.Fragment, { children: [s.address, d] });
|
|
2907
2907
|
}, data: e.payload.user.emails, contentSelector: (s) => {
|
|
2908
2908
|
var d, u;
|
|
2909
|
-
return a(b.Fragment, { children: [s.is_primary ? a(b.Fragment, { children: a(
|
|
2909
|
+
return a(b.Fragment, { children: [s.is_primary ? a(b.Fragment, { children: a(W, { children: [a($e, { children: i("headlines.isPrimaryEmail") }), i("texts.isPrimaryEmail")] }) }) : a(b.Fragment, { children: a(W, { children: [a($e, { children: i("headlines.setPrimaryEmail") }), i("texts.setPrimaryEmail"), a("br", {}), a(G, { flowAction: e.actions.email_set_primary, onClick: (c) => ((l, m) => Rn(void 0, void 0, void 0, function* () {
|
|
2910
2910
|
l.preventDefault();
|
|
2911
2911
|
const v = yield e.actions.email_set_primary.run({ email_id: m }, { dispatchAfterStateChangeEvent: !1 });
|
|
2912
2912
|
return o(v);
|
|
2913
|
-
}))(c, s.id), loadingSpinnerPosition: "right", children: i("labels.setAsPrimaryEmail") })] }) }), s.is_verified ? a(b.Fragment, { children: a(
|
|
2913
|
+
}))(c, s.id), loadingSpinnerPosition: "right", children: i("labels.setAsPrimaryEmail") })] }) }), s.is_verified ? a(b.Fragment, { children: a(W, { children: [a($e, { children: i("headlines.emailVerified") }), i("texts.emailVerified")] }) }) : a(b.Fragment, { children: a(W, { children: [a($e, { children: i("headlines.emailUnverified") }), i("texts.emailUnverified"), a("br", {}), a(G, { flowAction: e.actions.email_verify, onClick: (c) => ((l, m) => Rn(void 0, void 0, void 0, function* () {
|
|
2914
2914
|
l.preventDefault();
|
|
2915
2915
|
const v = yield e.actions.email_verify.run({ email_id: m }, { dispatchAfterStateChangeEvent: !1 });
|
|
2916
2916
|
return o(v);
|
|
2917
|
-
}))(c, s.id), loadingSpinnerPosition: "right", children: i("labels.verify") })] }) }), !((d = e.actions.email_delete.inputs.email_id.allowed_values) === null || d === void 0) && d.map((c) => c.value).includes(s.id) ? a(b.Fragment, { children: a(
|
|
2917
|
+
}))(c, s.id), loadingSpinnerPosition: "right", children: i("labels.verify") })] }) }), !((d = e.actions.email_delete.inputs.email_id.allowed_values) === null || d === void 0) && d.map((c) => c.value).includes(s.id) ? a(b.Fragment, { children: a(W, { children: [a($e, { children: i("headlines.emailDelete") }), i("texts.emailDelete"), a("br", {}), a(G, { dangerous: !0, flowAction: e.actions.email_delete, onClick: (c) => ((l, m) => Rn(void 0, void 0, void 0, function* () {
|
|
2918
2918
|
l.preventDefault();
|
|
2919
2919
|
const v = yield e.actions.email_delete.run({ email_id: m }, { dispatchAfterStateChangeEvent: !1 });
|
|
2920
2920
|
return o(v);
|
|
2921
|
-
}))(c, s.id), disabled: r, loadingSpinnerPosition: "right", children: i("labels.delete") })] }) }) : null, ((u = s.identities) === null || u === void 0 ? void 0 : u.length) > 0 ? a(b.Fragment, { children: a(
|
|
2921
|
+
}))(c, s.id), disabled: r, loadingSpinnerPosition: "right", children: i("labels.delete") })] }) }) : null, ((u = s.identities) === null || u === void 0 ? void 0 : u.length) > 0 ? a(b.Fragment, { children: a(W, { children: [a($e, { children: i("headlines.connectedAccounts") }), s.identities.map((c) => c.provider).join(", ")] }) }) : null] });
|
|
2922
2922
|
}, checkedItemID: n, setCheckedItemID: t });
|
|
2923
|
-
},
|
|
2923
|
+
}, Or = ({ onCredentialNameSubmit: n, oldName: t, onBack: e, credential: o, credentialType: i, flowState: r }) => {
|
|
2924
2924
|
const { t: s } = (0, f.useContext)(J.TranslateContext), [d, u] = (0, f.useState)(t);
|
|
2925
|
-
return a(b.Fragment, { children: [a(ke, { children: [a(de, { children: s(i === "security-key" ? "headlines.renameSecurityKey" : "headlines.renamePasskey") }), a(Se, { flowError: null }), a(
|
|
2926
|
-
return new (v || (v = Promise))(function(k,
|
|
2927
|
-
function
|
|
2925
|
+
return a(b.Fragment, { children: [a(ke, { children: [a(de, { children: s(i === "security-key" ? "headlines.renameSecurityKey" : "headlines.renamePasskey") }), a(Se, { flowError: null }), a(W, { children: s(i === "security-key" ? "texts.renameSecurityKey" : "texts.renamePasskey") }), a(te, { flowAction: r.actions.webauthn_credential_rename, onSubmit: (c) => n(c, o.id, d), children: [a(Le, { type: "text", name: i, value: d, minLength: 3, maxLength: 32, required: !0, placeholder: s(i === "security-key" ? "labels.newSecurityKeyName" : "labels.newPasskeyName"), onInput: (c) => function(l, m, v, g) {
|
|
2926
|
+
return new (v || (v = Promise))(function(k, C) {
|
|
2927
|
+
function x(w) {
|
|
2928
2928
|
try {
|
|
2929
|
-
|
|
2929
|
+
K(g.next(w));
|
|
2930
2930
|
} catch (E) {
|
|
2931
|
-
|
|
2931
|
+
C(E);
|
|
2932
2932
|
}
|
|
2933
2933
|
}
|
|
2934
|
-
function
|
|
2934
|
+
function $(w) {
|
|
2935
2935
|
try {
|
|
2936
|
-
|
|
2936
|
+
K(g.throw(w));
|
|
2937
2937
|
} catch (E) {
|
|
2938
|
-
|
|
2938
|
+
C(E);
|
|
2939
2939
|
}
|
|
2940
2940
|
}
|
|
2941
|
-
function
|
|
2941
|
+
function K(w) {
|
|
2942
2942
|
var E;
|
|
2943
2943
|
w.done ? k(w.value) : (E = w.value, E instanceof v ? E : new v(function(I) {
|
|
2944
2944
|
I(E);
|
|
2945
|
-
})).then(
|
|
2945
|
+
})).then(x, $);
|
|
2946
2946
|
}
|
|
2947
|
-
|
|
2947
|
+
K((g = g.apply(l, [])).next());
|
|
2948
2948
|
});
|
|
2949
2949
|
}(void 0, void 0, void 0, function* () {
|
|
2950
2950
|
c.target instanceof HTMLInputElement && u(c.target.value);
|
|
2951
2951
|
}), autofocus: !0 }), a(ne, { children: s("labels.save") })] })] }), a(Te, { children: a(G, { onClick: e, loadingSpinnerPosition: "right", children: s("labels.back") }) })] });
|
|
2952
|
-
},
|
|
2953
|
-
const { t: c } = (0, f.useContext)(J.TranslateContext), { setPage: l } = (0, f.useContext)(
|
|
2952
|
+
}, Wo = ({ credentials: n = [], checkedItemID: t, setCheckedItemID: e, onBack: o, onCredentialNameSubmit: i, allowCredentialDeletion: r, credentialType: s, onCredentialDelete: d, flowState: u }) => {
|
|
2953
|
+
const { t: c } = (0, f.useContext)(J.TranslateContext), { setPage: l } = (0, f.useContext)(De), m = (g) => {
|
|
2954
2954
|
if (g.name) return g.name;
|
|
2955
2955
|
const k = g.public_key.replace(/[\W_]/g, "");
|
|
2956
2956
|
return `${s === "security-key" ? "SecurityKey" : "Passkey"}-${k.substring(k.length - 7, k.length)}`;
|
|
2957
2957
|
}, v = (g) => new Date(g).toLocaleString();
|
|
2958
|
-
return a(
|
|
2959
|
-
|
|
2960
|
-
})(k, g, s), loadingSpinnerPosition: "right", children: c("labels.rename") })] }), a(
|
|
2961
|
-
}, yt = ({ name: n, title: t, children: e, checkedItemID: o, setCheckedItemID: i }) => a(
|
|
2958
|
+
return a(Vt, { name: s === "security-key" ? "security-key-edit-dropdown" : "passkey-edit-dropdown", columnSelector: (g) => m(g), data: n, contentSelector: (g) => a(b.Fragment, { children: [a(W, { children: [a($e, { children: c(s === "security-key" ? "headlines.renameSecurityKey" : "headlines.renamePasskey") }), c(s === "security-key" ? "texts.renameSecurityKey" : "texts.renamePasskey"), a("br", {}), a(G, { onClick: (k) => ((C, x, $) => {
|
|
2959
|
+
C.preventDefault(), l(a(Or, { oldName: m(x), credential: x, credentialType: $, onBack: o, onCredentialNameSubmit: i, flowState: u }));
|
|
2960
|
+
})(k, g, s), loadingSpinnerPosition: "right", children: c("labels.rename") })] }), a(W, { hidden: !r, children: [a($e, { children: c(s === "security-key" ? "headlines.deleteSecurityKey" : "headlines.deletePasskey") }), c(s === "security-key" ? "texts.deleteSecurityKey" : "texts.deletePasskey"), a("br", {}), a(G, { dangerous: !0, flowAction: u.actions.webauthn_credential_delete, onClick: (k) => d(k, g.id), loadingSpinnerPosition: "right", children: c("labels.delete") })] }), a(W, { children: [a($e, { children: c("headlines.lastUsedAt") }), g.last_used_at ? v(g.last_used_at) : "-"] }), a(W, { children: [a($e, { children: c("headlines.createdAt") }), v(g.created_at)] })] }), checkedItemID: t, setCheckedItemID: e });
|
|
2961
|
+
}, yt = ({ name: n, title: t, children: e, checkedItemID: o, setCheckedItemID: i }) => a(Vt, { dropdown: !0, name: n, columnSelector: () => t, contentSelector: () => a(b.Fragment, { children: e }), setCheckedItemID: i, checkedItemID: o, data: [{}] }), xn = ({ flowError: n }) => {
|
|
2962
2962
|
const { t } = (0, f.useContext)(J.TranslateContext);
|
|
2963
|
-
return a(b.Fragment, { children: n ? a("div", { className:
|
|
2964
|
-
},
|
|
2963
|
+
return a(b.Fragment, { children: n ? a("div", { className: zi.errorMessage, children: t(`flowErrors.${n == null ? void 0 : n.code}`) }) : null });
|
|
2964
|
+
}, Tr = ({ checkedItemID: n, setCheckedItemID: t, flowState: e, onState: o }) => {
|
|
2965
2965
|
var i;
|
|
2966
|
-
const { t: r } = (0, f.useContext)(J.TranslateContext), { setUIState: s } = (0, f.useContext)(
|
|
2967
|
-
return a(yt, { name: "email-create-dropdown", title: r("labels.addEmail"), checkedItemID: n, setCheckedItemID: t, children: [a(xn, { flowError: (i = e.actions.email_create.inputs.email) === null || i === void 0 ? void 0 : i.error }), a(te, { flowAction: e.actions.email_create, onSubmit: (c) => ((l, m) => function(v, g, k,
|
|
2968
|
-
return new (k || (k = Promise))(function(
|
|
2969
|
-
function
|
|
2966
|
+
const { t: r } = (0, f.useContext)(J.TranslateContext), { setUIState: s } = (0, f.useContext)(De), [d, u] = (0, f.useState)();
|
|
2967
|
+
return a(yt, { name: "email-create-dropdown", title: r("labels.addEmail"), checkedItemID: n, setCheckedItemID: t, children: [a(xn, { flowError: (i = e.actions.email_create.inputs.email) === null || i === void 0 ? void 0 : i.error }), a(te, { flowAction: e.actions.email_create, onSubmit: (c) => ((l, m) => function(v, g, k, C) {
|
|
2968
|
+
return new (k || (k = Promise))(function(x, $) {
|
|
2969
|
+
function K(I) {
|
|
2970
2970
|
try {
|
|
2971
|
-
E(
|
|
2971
|
+
E(C.next(I));
|
|
2972
2972
|
} catch (M) {
|
|
2973
|
-
|
|
2973
|
+
$(M);
|
|
2974
2974
|
}
|
|
2975
2975
|
}
|
|
2976
2976
|
function w(I) {
|
|
2977
2977
|
try {
|
|
2978
|
-
E(
|
|
2978
|
+
E(C.throw(I));
|
|
2979
2979
|
} catch (M) {
|
|
2980
|
-
|
|
2980
|
+
$(M);
|
|
2981
2981
|
}
|
|
2982
2982
|
}
|
|
2983
2983
|
function E(I) {
|
|
2984
2984
|
var M;
|
|
2985
|
-
I.done ?
|
|
2985
|
+
I.done ? x(I.value) : (M = I.value, M instanceof k ? M : new k(function(z) {
|
|
2986
2986
|
z(M);
|
|
2987
|
-
})).then(
|
|
2987
|
+
})).then(K, w);
|
|
2988
2988
|
}
|
|
2989
|
-
E((
|
|
2989
|
+
E((C = C.apply(v, [])).next());
|
|
2990
2990
|
});
|
|
2991
2991
|
}(void 0, void 0, void 0, function* () {
|
|
2992
2992
|
l.preventDefault(), s((g) => Object.assign(Object.assign({}, g), { email: m }));
|
|
@@ -2996,7 +2996,7 @@ const wr = ({ checkedItemID: n, setCheckedItemID: t, flowState: e, onState: o })
|
|
|
2996
2996
|
c.preventDefault(), c.target instanceof HTMLInputElement && u(c.target.value);
|
|
2997
2997
|
}, value: d, flowInput: e.actions.email_create.inputs.email }), a(ne, { children: r("labels.save") })] })] });
|
|
2998
2998
|
};
|
|
2999
|
-
var
|
|
2999
|
+
var Vo = function(n, t, e, o) {
|
|
3000
3000
|
return new (e || (e = Promise))(function(i, r) {
|
|
3001
3001
|
function s(c) {
|
|
3002
3002
|
try {
|
|
@@ -3021,45 +3021,45 @@ var zo = function(n, t, e, o) {
|
|
|
3021
3021
|
u((o = o.apply(n, [])).next());
|
|
3022
3022
|
});
|
|
3023
3023
|
};
|
|
3024
|
-
const
|
|
3024
|
+
const Ur = ({ checkedItemID: n, setCheckedItemID: t, onState: e, flowState: o }) => {
|
|
3025
3025
|
var i, r, s;
|
|
3026
3026
|
const { t: d } = (0, f.useContext)(J.TranslateContext), [u, c] = (0, f.useState)(""), l = o.actions.password_create.enabled ? o.actions.password_create : o.actions.password_update;
|
|
3027
|
-
return a(yt, { name: "password-edit-dropdown", title: d(o.actions.password_create.enabled ? "labels.setPassword" : "labels.changePassword"), checkedItemID: n, setCheckedItemID: t, children: [a(
|
|
3027
|
+
return a(yt, { name: "password-edit-dropdown", title: d(o.actions.password_create.enabled ? "labels.setPassword" : "labels.changePassword"), checkedItemID: n, setCheckedItemID: t, children: [a(W, { children: d("texts.passwordFormatHint", { minLength: (i = l.inputs.password.min_length) === null || i === void 0 ? void 0 : i.toString(10), maxLength: (r = l.inputs.password.max_length) === null || r === void 0 ? void 0 : r.toString(10) }) }), a(xn, { flowError: (s = o.actions.password_create.inputs.password) === null || s === void 0 ? void 0 : s.error }), a(te, { flowAction: l, onSubmit: (m) => ((v, g) => Vo(void 0, void 0, void 0, function* () {
|
|
3028
3028
|
v.preventDefault();
|
|
3029
3029
|
const k = yield l.run({ password: g }, { dispatchAfterStateChangeEvent: !1 });
|
|
3030
3030
|
return e(k);
|
|
3031
3031
|
}))(m, u).then(() => c("")), children: [a(Le, { markError: !0, autoComplete: "new-password", placeholder: d("labels.newPassword"), type: "password", onInput: (m) => {
|
|
3032
3032
|
m.preventDefault(), m.target instanceof HTMLInputElement && c(m.target.value);
|
|
3033
|
-
}, value: u, flowInput: l.inputs.password }), a(ne, { children: d("labels.save") })] }), a(G, { dangerous: !0, flowAction: o.actions.password_delete, onClick: (m) => ((v) =>
|
|
3033
|
+
}, value: u, flowInput: l.inputs.password }), a(ne, { children: d("labels.save") })] }), a(G, { dangerous: !0, flowAction: o.actions.password_delete, onClick: (m) => ((v) => Vo(void 0, void 0, void 0, function* () {
|
|
3034
3034
|
v.preventDefault();
|
|
3035
3035
|
const g = yield o.actions.password_delete.run(null, { dispatchAfterStateChangeEvent: !1 });
|
|
3036
3036
|
return e(g);
|
|
3037
3037
|
}))(m).then(() => c("")), loadingSpinnerPosition: "right", children: d("labels.delete") })] });
|
|
3038
|
-
},
|
|
3038
|
+
}, Bo = ({ checkedItemID: n, setCheckedItemID: t, credentialType: e, flowState: o, onState: i }) => {
|
|
3039
3039
|
const { t: r } = (0, f.useContext)(J.TranslateContext), s = ft.supported(), d = e == "passkey" ? o.actions.webauthn_credential_create : o.actions.security_key_create;
|
|
3040
|
-
return a(yt, { name: e === "security-key" ? "security-key-create-dropdown" : "passkey-create-dropdown", title: r(e === "security-key" ? "labels.createSecurityKey" : "labels.createPasskey"), checkedItemID: n, setCheckedItemID: t, children: [a(
|
|
3040
|
+
return a(yt, { name: e === "security-key" ? "security-key-create-dropdown" : "passkey-create-dropdown", title: r(e === "security-key" ? "labels.createSecurityKey" : "labels.createPasskey"), checkedItemID: n, setCheckedItemID: t, children: [a(W, { children: r(e === "security-key" ? "texts.securityKeySetUp" : "texts.setupPasskey") }), a(te, { onSubmit: (u) => function(c, l, m, v) {
|
|
3041
3041
|
return new (m || (m = Promise))(function(g, k) {
|
|
3042
|
-
function
|
|
3042
|
+
function C(K) {
|
|
3043
3043
|
try {
|
|
3044
|
-
|
|
3044
|
+
$(v.next(K));
|
|
3045
3045
|
} catch (w) {
|
|
3046
3046
|
k(w);
|
|
3047
3047
|
}
|
|
3048
3048
|
}
|
|
3049
|
-
function
|
|
3049
|
+
function x(K) {
|
|
3050
3050
|
try {
|
|
3051
|
-
|
|
3051
|
+
$(v.throw(K));
|
|
3052
3052
|
} catch (w) {
|
|
3053
3053
|
k(w);
|
|
3054
3054
|
}
|
|
3055
3055
|
}
|
|
3056
|
-
function
|
|
3056
|
+
function $(K) {
|
|
3057
3057
|
var w;
|
|
3058
|
-
|
|
3058
|
+
K.done ? g(K.value) : (w = K.value, w instanceof m ? w : new m(function(E) {
|
|
3059
3059
|
E(w);
|
|
3060
|
-
})).then(
|
|
3060
|
+
})).then(C, x);
|
|
3061
3061
|
}
|
|
3062
|
-
|
|
3062
|
+
$((v = v.apply(c, [])).next());
|
|
3063
3063
|
});
|
|
3064
3064
|
}(void 0, void 0, void 0, function* () {
|
|
3065
3065
|
u.preventDefault();
|
|
@@ -3067,7 +3067,7 @@ const xr = ({ checkedItemID: n, setCheckedItemID: t, onState: e, flowState: o })
|
|
|
3067
3067
|
return i(c);
|
|
3068
3068
|
}), flowAction: d, children: a(ne, { title: s ? null : r("labels.webauthnUnsupported"), children: r(e === "security-key" ? "labels.createSecurityKey" : "labels.createPasskey") }) })] });
|
|
3069
3069
|
};
|
|
3070
|
-
var
|
|
3070
|
+
var Zo = function(n, t, e, o) {
|
|
3071
3071
|
return new (e || (e = Promise))(function(i, r) {
|
|
3072
3072
|
function s(c) {
|
|
3073
3073
|
try {
|
|
@@ -3092,53 +3092,53 @@ var qo = function(n, t, e, o) {
|
|
|
3092
3092
|
u((o = o.apply(n, [])).next());
|
|
3093
3093
|
});
|
|
3094
3094
|
};
|
|
3095
|
-
const
|
|
3095
|
+
const $r = ({ checkedItemID: n, setCheckedItemID: t, flowState: e, onState: o }) => {
|
|
3096
3096
|
var i, r;
|
|
3097
3097
|
const { t: s } = (0, f.useContext)(J.TranslateContext), [d, u] = (0, f.useState)();
|
|
3098
|
-
return a(yt, { name: "username-edit-dropdown", title: s(e.payload.user.username ? "labels.changeUsername" : "labels.setUsername"), checkedItemID: n, setCheckedItemID: t, children: [a(xn, { flowError: e.payload.user.username ? (i = e.actions.username_update.inputs.username) === null || i === void 0 ? void 0 : i.error : (r = e.actions.username_create.inputs.username) === null || r === void 0 ? void 0 : r.error }), a(te, { flowAction: e.payload.user.username ? e.actions.username_update : e.actions.username_create, onSubmit: (c) =>
|
|
3098
|
+
return a(yt, { name: "username-edit-dropdown", title: s(e.payload.user.username ? "labels.changeUsername" : "labels.setUsername"), checkedItemID: n, setCheckedItemID: t, children: [a(xn, { flowError: e.payload.user.username ? (i = e.actions.username_update.inputs.username) === null || i === void 0 ? void 0 : i.error : (r = e.actions.username_create.inputs.username) === null || r === void 0 ? void 0 : r.error }), a(te, { flowAction: e.payload.user.username ? e.actions.username_update : e.actions.username_create, onSubmit: (c) => Zo(void 0, void 0, void 0, function* () {
|
|
3099
3099
|
c.preventDefault();
|
|
3100
3100
|
const l = e.payload.user.username ? e.actions.username_update : e.actions.username_create, m = yield l.run({ username: d }, { dispatchAfterStateChangeEvent: !1 });
|
|
3101
3101
|
return o(m).then(() => u(""));
|
|
3102
3102
|
}), children: [a(Le, { markError: !0, placeholder: s("labels.username"), type: "text", onInput: (c) => {
|
|
3103
3103
|
c.preventDefault(), c.target instanceof HTMLInputElement && u(c.target.value);
|
|
3104
|
-
}, value: d, flowInput: e.payload.user.username ? e.actions.username_update.inputs.username : e.actions.username_create.inputs.username }), a(ne, { children: s("labels.save") })] }), a(G, { flowAction: e.actions.username_delete, onClick: (c) =>
|
|
3104
|
+
}, value: d, flowInput: e.payload.user.username ? e.actions.username_update.inputs.username : e.actions.username_create.inputs.username }), a(ne, { children: s("labels.save") })] }), a(G, { flowAction: e.actions.username_delete, onClick: (c) => Zo(void 0, void 0, void 0, function* () {
|
|
3105
3105
|
c.preventDefault();
|
|
3106
3106
|
const l = yield e.actions.username_delete.run(null, { dispatchAfterStateChangeEvent: !1 });
|
|
3107
3107
|
return o(l).then(() => u(""));
|
|
3108
3108
|
}), dangerous: !0, loadingSpinnerPosition: "right", children: s("labels.delete") })] });
|
|
3109
|
-
},
|
|
3109
|
+
}, Dr = ({ state: n, onBack: t }) => {
|
|
3110
3110
|
const { t: e } = (0, f.useContext)(J.TranslateContext);
|
|
3111
|
-
return a(b.Fragment, { children: [a(ke, { children: [a(de, { children: e("headlines.deleteAccount") }), a(Se, { flowError: null }), a(
|
|
3112
|
-
},
|
|
3111
|
+
return a(b.Fragment, { children: [a(ke, { children: [a(de, { children: e("headlines.deleteAccount") }), a(Se, { flowError: null }), a(W, { children: e("texts.deleteAccount") }), a(te, { flowAction: n.actions.account_delete, children: [a(so, { required: !0, type: "checkbox", label: e("labels.deleteAccount") }), a(ne, { children: e("labels.delete") })] })] }), a(Te, { children: a(G, { onClick: t, children: e("labels.back") }) })] });
|
|
3112
|
+
}, Lr = ({ checkedItemID: n, setCheckedItemID: t, flowState: e, onState: o }) => {
|
|
3113
3113
|
const { t: i } = (0, f.useContext)(J.TranslateContext), r = (s) => new Date(s).toLocaleString();
|
|
3114
|
-
return a(
|
|
3114
|
+
return a(Vt, { name: "session-edit-dropdown", columnSelector: (s) => {
|
|
3115
3115
|
const d = a("b", { children: s.user_agent ? s.user_agent : s.id }), u = s.current ? a("span", { className: Fe.description, children: a(b.Fragment, { children: [" -", " ", i("labels.currentSession")] }) }) : null;
|
|
3116
3116
|
return a(b.Fragment, { children: [d, u] });
|
|
3117
3117
|
}, data: e.payload.sessions, contentSelector: (s) => {
|
|
3118
3118
|
var d, u, c;
|
|
3119
|
-
return a(b.Fragment, { children: [a(
|
|
3120
|
-
return new (
|
|
3119
|
+
return a(b.Fragment, { children: [a(W, { hidden: !s.ip_address, children: [a($e, { children: i("headlines.ipAddress") }), s.ip_address] }), a(W, { children: [a($e, { children: i("headlines.lastUsed") }), r(s.last_used)] }), a(W, { children: [a($e, { children: i("headlines.createdAt") }), r(s.created_at)] }), !((c = (u = (d = e.actions.session_delete.inputs.session_id) === null || d === void 0 ? void 0 : d.allowed_values) === null || u === void 0 ? void 0 : u.map((l) => l.value)) === null || c === void 0) && c.includes(s.id) ? a(W, { children: [a($e, { children: i("headlines.revokeSession") }), a(G, { dangerous: !0, onClick: (l) => ((m, v) => function(g, k, C, x) {
|
|
3120
|
+
return new (C || (C = Promise))(function($, K) {
|
|
3121
3121
|
function w(M) {
|
|
3122
3122
|
try {
|
|
3123
|
-
I(
|
|
3123
|
+
I(x.next(M));
|
|
3124
3124
|
} catch (z) {
|
|
3125
|
-
|
|
3125
|
+
K(z);
|
|
3126
3126
|
}
|
|
3127
3127
|
}
|
|
3128
3128
|
function E(M) {
|
|
3129
3129
|
try {
|
|
3130
|
-
I(
|
|
3130
|
+
I(x.throw(M));
|
|
3131
3131
|
} catch (z) {
|
|
3132
|
-
|
|
3132
|
+
K(z);
|
|
3133
3133
|
}
|
|
3134
3134
|
}
|
|
3135
3135
|
function I(M) {
|
|
3136
3136
|
var z;
|
|
3137
|
-
M.done ?
|
|
3137
|
+
M.done ? $(M.value) : (z = M.value, z instanceof C ? z : new C(function(F) {
|
|
3138
3138
|
F(z);
|
|
3139
3139
|
})).then(w, E);
|
|
3140
3140
|
}
|
|
3141
|
-
I((
|
|
3141
|
+
I((x = x.apply(g, [])).next());
|
|
3142
3142
|
});
|
|
3143
3143
|
}(void 0, void 0, void 0, function* () {
|
|
3144
3144
|
m.preventDefault();
|
|
@@ -3147,7 +3147,7 @@ const Cr = ({ checkedItemID: n, setCheckedItemID: t, flowState: e, onState: o })
|
|
|
3147
3147
|
}))(l, s.id), loadingSpinnerPosition: "right", children: i("labels.revoke") })] }) : null] });
|
|
3148
3148
|
}, checkedItemID: n, setCheckedItemID: t });
|
|
3149
3149
|
};
|
|
3150
|
-
var
|
|
3150
|
+
var Jo = function(n, t, e, o) {
|
|
3151
3151
|
return new (e || (e = Promise))(function(i, r) {
|
|
3152
3152
|
function s(c) {
|
|
3153
3153
|
try {
|
|
@@ -3172,83 +3172,83 @@ var jo = function(n, t, e, o) {
|
|
|
3172
3172
|
u((o = o.apply(n, [])).next());
|
|
3173
3173
|
});
|
|
3174
3174
|
};
|
|
3175
|
-
const
|
|
3175
|
+
const Nr = ({ checkedItemID: n, setCheckedItemID: t, flowState: e, onState: o }) => {
|
|
3176
3176
|
var i, r, s, d;
|
|
3177
3177
|
const { t: u } = (0, f.useContext)(J.TranslateContext), c = a("span", { className: Fe.description, children: !((i = e.payload.user.mfa_config) === null || i === void 0) && i.auth_app_set_up ? a(b.Fragment, { children: [" -", " ", u("labels.configured")] }) : null }), l = a(b.Fragment, { children: [u("labels.authenticatorAppManage"), " ", c] });
|
|
3178
|
-
return a(yt, { name: "authenticator-app-manage-dropdown", title: l, checkedItemID: n, setCheckedItemID: t, children: [a(
|
|
3178
|
+
return a(yt, { name: "authenticator-app-manage-dropdown", title: l, checkedItemID: n, setCheckedItemID: t, children: [a($e, { children: u(!((r = e.payload.user.mfa_config) === null || r === void 0) && r.auth_app_set_up ? "headlines.authenticatorAppAlreadySetUp" : "headlines.authenticatorAppNotSetUp") }), a(W, { children: [u(!((s = e.payload.user.mfa_config) === null || s === void 0) && s.auth_app_set_up ? "texts.authenticatorAppAlreadySetUp" : "texts.authenticatorAppNotSetUp"), a("br", {}), !((d = e.payload.user.mfa_config) === null || d === void 0) && d.auth_app_set_up ? a(G, { flowAction: e.actions.otp_secret_delete, onClick: (m) => Jo(void 0, void 0, void 0, function* () {
|
|
3179
3179
|
m.preventDefault();
|
|
3180
3180
|
const v = yield e.actions.otp_secret_delete.run(null, { dispatchAfterStateChangeEvent: !1 });
|
|
3181
3181
|
return o(v);
|
|
3182
|
-
}), loadingSpinnerPosition: "right", dangerous: !0, children: u("labels.delete") }) : a(G, { flowAction: e.actions.continue_to_otp_secret_creation, onClick: (m) =>
|
|
3182
|
+
}), loadingSpinnerPosition: "right", dangerous: !0, children: u("labels.delete") }) : a(G, { flowAction: e.actions.continue_to_otp_secret_creation, onClick: (m) => Jo(void 0, void 0, void 0, function* () {
|
|
3183
3183
|
m.preventDefault();
|
|
3184
3184
|
const v = yield e.actions.continue_to_otp_secret_creation.run(null, { dispatchAfterStateChangeEvent: !1 });
|
|
3185
3185
|
return o(v);
|
|
3186
3186
|
}), loadingSpinnerPosition: "right", children: u("labels.authenticatorAppAdd") })] })] });
|
|
3187
|
-
},
|
|
3187
|
+
}, Mr = ({ checkedItemID: n, setCheckedItemID: t, flowState: e, onState: o }) => {
|
|
3188
3188
|
const { t: i } = (0, f.useContext)(J.TranslateContext), r = (0, f.useMemo)(() => !1, []);
|
|
3189
|
-
return a(
|
|
3189
|
+
return a(Vt, { name: "connected-accounts", columnSelector: (s) => {
|
|
3190
3190
|
const d = a("b", { children: s.provider });
|
|
3191
3191
|
return a(b.Fragment, { children: d });
|
|
3192
|
-
}, contentSelector: (s) => a(b.Fragment, { children: a(b.Fragment, { children: a(
|
|
3193
|
-
return new (v || (v = Promise))(function(k,
|
|
3194
|
-
function
|
|
3192
|
+
}, contentSelector: (s) => a(b.Fragment, { children: a(b.Fragment, { children: a(W, { children: [a($e, { children: i("headlines.deleteIdentity") }), a(G, { dangerous: !0, flowAction: e.actions.disconnect_thirdparty_oauth_provider, onClick: (d) => ((u, c) => function(l, m, v, g) {
|
|
3193
|
+
return new (v || (v = Promise))(function(k, C) {
|
|
3194
|
+
function x(w) {
|
|
3195
3195
|
try {
|
|
3196
|
-
|
|
3196
|
+
K(g.next(w));
|
|
3197
3197
|
} catch (E) {
|
|
3198
|
-
|
|
3198
|
+
C(E);
|
|
3199
3199
|
}
|
|
3200
3200
|
}
|
|
3201
|
-
function
|
|
3201
|
+
function $(w) {
|
|
3202
3202
|
try {
|
|
3203
|
-
|
|
3203
|
+
K(g.throw(w));
|
|
3204
3204
|
} catch (E) {
|
|
3205
|
-
|
|
3205
|
+
C(E);
|
|
3206
3206
|
}
|
|
3207
3207
|
}
|
|
3208
|
-
function
|
|
3208
|
+
function K(w) {
|
|
3209
3209
|
var E;
|
|
3210
3210
|
w.done ? k(w.value) : (E = w.value, E instanceof v ? E : new v(function(I) {
|
|
3211
3211
|
I(E);
|
|
3212
|
-
})).then(
|
|
3212
|
+
})).then(x, $);
|
|
3213
3213
|
}
|
|
3214
|
-
|
|
3214
|
+
K((g = g.apply(l, [])).next());
|
|
3215
3215
|
});
|
|
3216
3216
|
}(void 0, void 0, void 0, function* () {
|
|
3217
3217
|
u.preventDefault();
|
|
3218
3218
|
const l = yield e.actions.disconnect_thirdparty_oauth_provider.run({ identity_id: c }, { dispatchAfterStateChangeEvent: !1 });
|
|
3219
3219
|
return o(l);
|
|
3220
3220
|
}))(d, s.identity_id), disabled: r, loadingSpinnerPosition: "right", children: i("labels.delete") })] }) }) }), checkedItemID: n, setCheckedItemID: t, data: e.payload.user.identities });
|
|
3221
|
-
},
|
|
3221
|
+
}, Rr = ({ checkedItemID: n, setCheckedItemID: t, flowState: e, onState: o }) => {
|
|
3222
3222
|
var i, r;
|
|
3223
3223
|
const { t: s } = (0, f.useContext)(J.TranslateContext);
|
|
3224
3224
|
return a(yt, { name: "connect-account-dropdown", title: s("labels.connectAccount"), checkedItemID: n, setCheckedItemID: t, children: [a(xn, { flowError: (i = e.actions.connect_thirdparty_oauth_provider.inputs.provider) === null || i === void 0 ? void 0 : i.error }), (r = e.actions.connect_thirdparty_oauth_provider.inputs.provider.allowed_values) === null || r === void 0 ? void 0 : r.map((d) => a(te, { flowAction: e.actions.connect_thirdparty_oauth_provider, onSubmit: (u) => ((c, l) => function(m, v, g, k) {
|
|
3225
|
-
return new (g || (g = Promise))(function(
|
|
3226
|
-
function
|
|
3225
|
+
return new (g || (g = Promise))(function(C, x) {
|
|
3226
|
+
function $(E) {
|
|
3227
3227
|
try {
|
|
3228
3228
|
w(k.next(E));
|
|
3229
3229
|
} catch (I) {
|
|
3230
|
-
|
|
3230
|
+
x(I);
|
|
3231
3231
|
}
|
|
3232
3232
|
}
|
|
3233
|
-
function
|
|
3233
|
+
function K(E) {
|
|
3234
3234
|
try {
|
|
3235
3235
|
w(k.throw(E));
|
|
3236
3236
|
} catch (I) {
|
|
3237
|
-
|
|
3237
|
+
x(I);
|
|
3238
3238
|
}
|
|
3239
3239
|
}
|
|
3240
3240
|
function w(E) {
|
|
3241
3241
|
var I;
|
|
3242
|
-
E.done ?
|
|
3242
|
+
E.done ? C(E.value) : (I = E.value, I instanceof g ? I : new g(function(M) {
|
|
3243
3243
|
M(I);
|
|
3244
|
-
})).then(
|
|
3244
|
+
})).then($, K);
|
|
3245
3245
|
}
|
|
3246
3246
|
w((k = k.apply(m, [])).next());
|
|
3247
3247
|
});
|
|
3248
3248
|
}(void 0, void 0, void 0, function* () {
|
|
3249
3249
|
c.preventDefault();
|
|
3250
|
-
const m =
|
|
3251
|
-
|
|
3250
|
+
const m = kn();
|
|
3251
|
+
Sn(m);
|
|
3252
3252
|
try {
|
|
3253
3253
|
const v = yield e.actions.connect_thirdparty_oauth_provider.run({ provider: l, redirect_to: window.location.href, code_verifier: m });
|
|
3254
3254
|
return v.error && nt(), o(v);
|
|
@@ -3257,7 +3257,7 @@ const Er = ({ checkedItemID: n, setCheckedItemID: t, flowState: e, onState: o })
|
|
|
3257
3257
|
}
|
|
3258
3258
|
}))(u, d.value), children: a(ne, { icon: d.value.startsWith("custom_") ? "customProvider" : d.value, children: d.name }, d) }, d.value))] });
|
|
3259
3259
|
};
|
|
3260
|
-
var
|
|
3260
|
+
var tn = function(n, t, e, o) {
|
|
3261
3261
|
return new (e || (e = Promise))(function(i, r) {
|
|
3262
3262
|
function s(c) {
|
|
3263
3263
|
try {
|
|
@@ -3282,33 +3282,33 @@ var en = function(n, t, e, o) {
|
|
|
3282
3282
|
u((o = o.apply(n, [])).next());
|
|
3283
3283
|
});
|
|
3284
3284
|
};
|
|
3285
|
-
const
|
|
3285
|
+
const qi = (n) => {
|
|
3286
3286
|
var t, e, o, i, r, s, d;
|
|
3287
|
-
const { t: u } = (0, f.useContext)(J.TranslateContext), { setPage: c } = (0, f.useContext)(
|
|
3288
|
-
|
|
3289
|
-
}), k = (
|
|
3290
|
-
|
|
3291
|
-
const w = yield l.actions.webauthn_credential_rename.run({ passkey_id:
|
|
3287
|
+
const { t: u } = (0, f.useContext)(J.TranslateContext), { setPage: c } = (0, f.useContext)(De), { flowState: l } = Ee(n.state), [m, v] = (0, f.useState)(""), g = (x) => tn(void 0, void 0, void 0, function* () {
|
|
3288
|
+
x != null && x.error || (v(null), yield new Promise(($) => setTimeout($, 360))), x.dispatchAfterStateChangeEvent();
|
|
3289
|
+
}), k = (x, $, K) => tn(void 0, void 0, void 0, function* () {
|
|
3290
|
+
x.preventDefault();
|
|
3291
|
+
const w = yield l.actions.webauthn_credential_rename.run({ passkey_id: $, passkey_name: K }, { dispatchAfterStateChangeEvent: !1 });
|
|
3292
3292
|
return g(w);
|
|
3293
|
-
}),
|
|
3294
|
-
return a(ke, { children: [a(Se, { state: ((t = l == null ? void 0 : l.error) === null || t === void 0 ? void 0 : t.code) !== "form_data_invalid_error" ? l : null }), l.actions.username_create.enabled || l.actions.username_update.enabled || l.actions.username_delete.enabled ? a(b.Fragment, { children: [a(de, { children: u("labels.username") }), l.payload.user.username ? a(
|
|
3295
|
-
|
|
3296
|
-
const
|
|
3297
|
-
return g(
|
|
3298
|
-
}), credentials: l.payload.user.passkeys, checkedItemID: m, setCheckedItemID: v, allowCredentialDeletion: !!l.actions.webauthn_credential_delete.enabled, credentialType: "passkey" }), l.actions.webauthn_credential_create.enabled ? a(
|
|
3299
|
-
|
|
3300
|
-
const
|
|
3301
|
-
return g(
|
|
3302
|
-
}), credentials: l.payload.user.security_keys, checkedItemID: m, setCheckedItemID: v, allowCredentialDeletion: !!l.actions.security_key_delete.enabled, credentialType: "security-key" }), l.actions.security_key_create.enabled ? a(
|
|
3303
|
-
},
|
|
3304
|
-
const { t: e } = (0, f.useContext)(J.TranslateContext), { init: o, componentName: i } = (0, f.useContext)(
|
|
3293
|
+
}), C = (x) => (x.preventDefault(), c(a(qi, { state: l, enablePasskeys: n.enablePasskeys })), Promise.resolve());
|
|
3294
|
+
return a(ke, { children: [a(Se, { state: ((t = l == null ? void 0 : l.error) === null || t === void 0 ? void 0 : t.code) !== "form_data_invalid_error" ? l : null }), l.actions.username_create.enabled || l.actions.username_update.enabled || l.actions.username_delete.enabled ? a(b.Fragment, { children: [a(de, { children: u("labels.username") }), l.payload.user.username ? a(W, { children: a("b", { children: l.payload.user.username.username }) }) : null, a(W, { children: l.actions.username_create.enabled || l.actions.username_update.enabled ? a($r, { onState: g, flowState: l, checkedItemID: m, setCheckedItemID: v }) : null })] }) : null, !((o = (e = l.payload) === null || e === void 0 ? void 0 : e.user) === null || o === void 0) && o.emails || l.actions.email_create.enabled ? a(b.Fragment, { children: [a(de, { children: u("headlines.profileEmails") }), a(W, { children: [a(Ir, { flowState: l, onState: g, checkedItemID: m, setCheckedItemID: v }), l.actions.email_create.enabled ? a(Tr, { flowState: l, onState: g, checkedItemID: m, setCheckedItemID: v }) : null] })] }) : null, l.actions.password_create.enabled || l.actions.password_update.enabled ? a(b.Fragment, { children: [a(de, { children: u("headlines.profilePassword") }), a(W, { children: a(Ur, { flowState: l, onState: g, checkedItemID: m, setCheckedItemID: v }) })] }) : null, n.enablePasskeys && (!((r = (i = l.payload) === null || i === void 0 ? void 0 : i.user) === null || r === void 0) && r.passkeys || l.actions.webauthn_credential_create.enabled) ? a(b.Fragment, { children: [a(de, { children: u("headlines.profilePasskeys") }), a(W, { children: [a(Wo, { flowState: l, onBack: C, onCredentialNameSubmit: k, onCredentialDelete: (x, $) => tn(void 0, void 0, void 0, function* () {
|
|
3295
|
+
x.preventDefault();
|
|
3296
|
+
const K = yield l.actions.webauthn_credential_delete.run({ passkey_id: $ }, { dispatchAfterStateChangeEvent: !1 });
|
|
3297
|
+
return g(K);
|
|
3298
|
+
}), credentials: l.payload.user.passkeys, checkedItemID: m, setCheckedItemID: v, allowCredentialDeletion: !!l.actions.webauthn_credential_delete.enabled, credentialType: "passkey" }), l.actions.webauthn_credential_create.enabled ? a(Bo, { flowState: l, onState: g, credentialType: "passkey", checkedItemID: m, setCheckedItemID: v }) : null] })] }) : null, !((s = l.payload.user.mfa_config) === null || s === void 0) && s.security_keys_enabled ? a(b.Fragment, { children: [a(de, { children: u("headlines.securityKeys") }), a(W, { children: [a(Wo, { onBack: C, flowState: l, onCredentialNameSubmit: k, onCredentialDelete: (x, $) => tn(void 0, void 0, void 0, function* () {
|
|
3299
|
+
x.preventDefault();
|
|
3300
|
+
const K = yield l.actions.security_key_delete.run({ security_key_id: $ }, { dispatchAfterStateChangeEvent: !1 });
|
|
3301
|
+
return g(K);
|
|
3302
|
+
}), credentials: l.payload.user.security_keys, checkedItemID: m, setCheckedItemID: v, allowCredentialDeletion: !!l.actions.security_key_delete.enabled, credentialType: "security-key" }), l.actions.security_key_create.enabled ? a(Bo, { flowState: l, onState: g, credentialType: "security-key", checkedItemID: m, setCheckedItemID: v }) : null] })] }) : null, !((d = l.payload.user.mfa_config) === null || d === void 0) && d.totp_enabled ? a(b.Fragment, { children: [a(de, { children: u("headlines.authenticatorApp") }), a(W, { children: a(Nr, { onState: g, flowState: l, checkedItemID: m, setCheckedItemID: v }) })] }) : null, l.actions.connect_thirdparty_oauth_provider.enabled || l.actions.disconnect_thirdparty_oauth_provider.enabled ? a(b.Fragment, { children: [a(de, { children: u("headlines.connectedAccounts") }), a(Mr, { flowState: l, onState: g, checkedItemID: m, setCheckedItemID: v }), l.actions.connect_thirdparty_oauth_provider.enabled ? a(Rr, { setCheckedItemID: v, flowState: l, onState: g, checkedItemID: m }) : null] }) : null, l.payload.sessions ? a(b.Fragment, { children: [a(de, { children: u("headlines.profileSessions") }), a(W, { children: a(Lr, { flowState: l, onState: g, checkedItemID: m, setCheckedItemID: v }) })] }) : null, l.actions.account_delete.enabled ? a(b.Fragment, { children: [a(Cn, {}), a(W, { children: a(ro, {}) }), a(W, { children: a(te, { onSubmit: (x) => (x.preventDefault(), c(a(Dr, { onBack: C, state: l })), Promise.resolve()), flowAction: l.actions.account_delete, children: a(ne, { dangerous: !0, children: u("headlines.deleteAccount") }) }) })] }) : null] });
|
|
3303
|
+
}, zr = qi, Yo = ({ state: n, error: t }) => {
|
|
3304
|
+
const { t: e } = (0, f.useContext)(J.TranslateContext), { init: o, componentName: i } = (0, f.useContext)(De), [r, s] = (0, f.useState)(!1), d = (0, f.useCallback)(() => o(i), [i, o]), { flowState: u } = Ee(n);
|
|
3305
3305
|
return (0, f.useEffect)(() => (addEventListener("hankoAuthSuccess", d), () => {
|
|
3306
3306
|
removeEventListener("hankoAuthSuccess", d);
|
|
3307
3307
|
}), [d]), a(ke, { children: [a(de, { children: e("headlines.error") }), a(Se, { state: u, error: t }), a(te, { onSubmit: (c) => {
|
|
3308
3308
|
c.preventDefault(), s(!0), d();
|
|
3309
3309
|
}, children: a(ne, { isLoading: r, children: e("labels.continue") }) })] });
|
|
3310
3310
|
};
|
|
3311
|
-
var
|
|
3311
|
+
var Qo = function(n, t, e, o) {
|
|
3312
3312
|
return new (e || (e = Promise))(function(i, r) {
|
|
3313
3313
|
function s(c) {
|
|
3314
3314
|
try {
|
|
@@ -3333,15 +3333,15 @@ var Wo = function(n, t, e, o) {
|
|
|
3333
3333
|
u((o = o.apply(n, [])).next());
|
|
3334
3334
|
});
|
|
3335
3335
|
};
|
|
3336
|
-
const
|
|
3336
|
+
const qr = (n) => {
|
|
3337
3337
|
const { t } = (0, f.useContext)(J.TranslateContext), { flowState: e } = Ee(n.state), [o, i] = (0, f.useState)();
|
|
3338
|
-
return a(b.Fragment, { children: [a(ke, { children: [a(de, { children: t("headlines.createEmail") }), a(Se, { state: e }), a(te, { onSubmit: (r) =>
|
|
3338
|
+
return a(b.Fragment, { children: [a(ke, { children: [a(de, { children: t("headlines.createEmail") }), a(Se, { state: e }), a(te, { onSubmit: (r) => Qo(void 0, void 0, void 0, function* () {
|
|
3339
3339
|
return r.preventDefault(), e.actions.email_address_set.run({ email: o });
|
|
3340
|
-
}), flowAction: e.actions.email_address_set, children: [a(Le, { type: "email", autoComplete: "email", autoCorrect: "off", flowInput: e.actions.email_address_set.inputs.email, onInput: (r) =>
|
|
3340
|
+
}), flowAction: e.actions.email_address_set, children: [a(Le, { type: "email", autoComplete: "email", autoCorrect: "off", flowInput: e.actions.email_address_set.inputs.email, onInput: (r) => Qo(void 0, void 0, void 0, function* () {
|
|
3341
3341
|
r.target instanceof HTMLInputElement && i(r.target.value);
|
|
3342
3342
|
}), placeholder: t("labels.email"), pattern: "^.*[^0-9]+$", value: o }), a(ne, { children: t("labels.continue") })] })] }), a(Te, { hidden: !e.actions.skip.enabled, children: [a("span", { hidden: !0 }), a(G, { flowAction: e.actions.skip, loadingSpinnerPosition: "left", children: t("labels.skip") })] })] });
|
|
3343
3343
|
};
|
|
3344
|
-
var
|
|
3344
|
+
var Go = function(n, t, e, o) {
|
|
3345
3345
|
return new (e || (e = Promise))(function(i, r) {
|
|
3346
3346
|
function s(c) {
|
|
3347
3347
|
try {
|
|
@@ -3366,18 +3366,18 @@ var Ko = function(n, t, e, o) {
|
|
|
3366
3366
|
u((o = o.apply(n, [])).next());
|
|
3367
3367
|
});
|
|
3368
3368
|
};
|
|
3369
|
-
const
|
|
3369
|
+
const jr = (n) => {
|
|
3370
3370
|
const { t } = (0, f.useContext)(J.TranslateContext), { flowState: e } = Ee(n.state), [o, i] = (0, f.useState)();
|
|
3371
|
-
return a(b.Fragment, { children: [a(ke, { children: [a(de, { children: t("headlines.createUsername") }), a(Se, { state: e }), a(te, { flowAction: e.actions.username_create, onSubmit: (r) =>
|
|
3371
|
+
return a(b.Fragment, { children: [a(ke, { children: [a(de, { children: t("headlines.createUsername") }), a(Se, { state: e }), a(te, { flowAction: e.actions.username_create, onSubmit: (r) => Go(void 0, void 0, void 0, function* () {
|
|
3372
3372
|
return r.preventDefault(), e.actions.username_create.run({ username: o });
|
|
3373
|
-
}), children: [a(Le, { type: "text", autoComplete: "username", autoCorrect: "off", flowInput: e.actions.username_create.inputs.username, onInput: (r) =>
|
|
3373
|
+
}), children: [a(Le, { type: "text", autoComplete: "username", autoCorrect: "off", flowInput: e.actions.username_create.inputs.username, onInput: (r) => Go(void 0, void 0, void 0, function* () {
|
|
3374
3374
|
r.target instanceof HTMLInputElement && i(r.target.value);
|
|
3375
3375
|
}), value: o, placeholder: t("labels.username") }), a(ne, { children: t("labels.continue") })] })] }), a(Te, { hidden: !e.actions.skip.enabled, children: [a("span", { hidden: !0 }), a(G, { flowAction: e.actions.skip, loadingSpinnerPosition: "left", children: t("labels.skip") })] })] });
|
|
3376
|
-
},
|
|
3376
|
+
}, Hr = (n) => {
|
|
3377
3377
|
const { t } = (0, f.useContext)(J.TranslateContext), { flowState: e } = Ee(n.state);
|
|
3378
|
-
return a(b.Fragment, { children: [a(ke, { children: [a(de, { children: t("headlines.setupLoginMethod") }), a(Se, { flowError: e == null ? void 0 : e.error }), a(
|
|
3378
|
+
return a(b.Fragment, { children: [a(ke, { children: [a(de, { children: t("headlines.setupLoginMethod") }), a(Se, { flowError: e == null ? void 0 : e.error }), a(W, { children: t("texts.selectLoginMethodForFutureLogins") }), a(te, { flowAction: e.actions.continue_to_passkey_registration, children: a(ne, { secondary: !0, icon: "passkey", children: t("labels.passkey") }) }), a(te, { flowAction: e.actions.continue_to_password_registration, children: a(ne, { secondary: !0, icon: "password", children: t("labels.password") }) })] }), a(Te, { hidden: !e.actions.back.enabled && !e.actions.skip.enabled, children: [a(G, { loadingSpinnerPosition: "right", flowAction: e.actions.back, children: t("labels.back") }), a(G, { loadingSpinnerPosition: "left", flowAction: e.actions.skip, children: t("labels.skip") })] })] });
|
|
3379
3379
|
};
|
|
3380
|
-
var
|
|
3380
|
+
var Xo = function(n, t, e, o) {
|
|
3381
3381
|
return new (e || (e = Promise))(function(i, r) {
|
|
3382
3382
|
function s(c) {
|
|
3383
3383
|
try {
|
|
@@ -3402,53 +3402,53 @@ var Vo = function(n, t, e, o) {
|
|
|
3402
3402
|
u((o = o.apply(n, [])).next());
|
|
3403
3403
|
});
|
|
3404
3404
|
};
|
|
3405
|
-
const
|
|
3406
|
-
const { t } = (0, f.useContext)(J.TranslateContext), { flowState: e } = Ee(n.state), [o, i] = (0, f.useState)([]), r = (0, f.useCallback)((s) =>
|
|
3405
|
+
const Fr = (n) => {
|
|
3406
|
+
const { t } = (0, f.useContext)(J.TranslateContext), { flowState: e } = Ee(n.state), [o, i] = (0, f.useState)([]), r = (0, f.useCallback)((s) => Xo(void 0, void 0, void 0, function* () {
|
|
3407
3407
|
return e.actions.otp_code_validate.run({ otp_code: s });
|
|
3408
3408
|
}), [e]);
|
|
3409
3409
|
return (0, f.useEffect)(() => {
|
|
3410
3410
|
i([]);
|
|
3411
|
-
}, [e]), a(b.Fragment, { children: [a(ke, { children: [a(de, { children: t("headlines.otpLogin") }), a(Se, { state: e }), a(
|
|
3411
|
+
}, [e]), a(b.Fragment, { children: [a(ke, { children: [a(de, { children: t("headlines.otpLogin") }), a(Se, { state: e }), a(W, { children: t("texts.otpLogin") }), a(te, { flowAction: e.actions.otp_code_validate, onSubmit: (s) => Xo(void 0, void 0, void 0, function* () {
|
|
3412
3412
|
return s.preventDefault(), r(o.join(""));
|
|
3413
|
-
}), children: [a(
|
|
3413
|
+
}), children: [a(co, { onInput: (s) => {
|
|
3414
3414
|
if (i(s), s.filter((d) => d !== "").length === 6) return r(s.join(""));
|
|
3415
3415
|
}, passcodeDigits: o, numberOfInputs: 6 }), a(ne, { children: t("labels.continue") })] })] }), a(Te, { hidden: !e.actions.continue_to_login_security_key.enabled, children: a(G, { loadingSpinnerPosition: "right", flowAction: e.actions.continue_to_login_security_key, children: t("labels.useAnotherMethod") }) })] });
|
|
3416
|
-
},
|
|
3416
|
+
}, Kr = (n) => {
|
|
3417
3417
|
const { t } = (0, f.useContext)(J.TranslateContext), { flowState: e } = Ee(n.state);
|
|
3418
|
-
return a(b.Fragment, { children: [a(ke, { children: [a(de, { children: t("headlines.securityKeyLogin") }), a(Se, { state: e }), a(
|
|
3419
|
-
},
|
|
3418
|
+
return a(b.Fragment, { children: [a(ke, { children: [a(de, { children: t("headlines.securityKeyLogin") }), a(Se, { state: e }), a(W, { children: t("texts.securityKeyLogin") }), a(te, { flowAction: e.actions.webauthn_generate_request_options, children: a(ne, { autofocus: !0, icon: "securityKey", children: t("labels.securityKeyUse") }) })] }), a(Te, { hidden: !e.actions.continue_to_login_otp.enabled, children: a(G, { loadingSpinnerPosition: "right", flowAction: e.actions.continue_to_login_otp, children: t("labels.useAnotherMethod") }) })] });
|
|
3419
|
+
}, Wr = (n) => {
|
|
3420
3420
|
const { t } = (0, f.useContext)(J.TranslateContext), { flowState: e } = Ee(n.state), o = (0, f.useMemo)(() => {
|
|
3421
3421
|
const { actions: i } = e;
|
|
3422
3422
|
return i.continue_to_security_key_creation.enabled && !i.continue_to_otp_secret_creation.enabled ? i.continue_to_security_key_creation : !i.continue_to_security_key_creation.enabled && i.continue_to_otp_secret_creation.enabled ? i.continue_to_otp_secret_creation : void 0;
|
|
3423
3423
|
}, [e]);
|
|
3424
|
-
return a(b.Fragment, { children: [a(ke, { children: [a(de, { children: t("headlines.mfaSetUp") }), a(Se, { flowError: e == null ? void 0 : e.error }), a(
|
|
3424
|
+
return a(b.Fragment, { children: [a(ke, { children: [a(de, { children: t("headlines.mfaSetUp") }), a(Se, { flowError: e == null ? void 0 : e.error }), a(W, { children: t("texts.mfaSetUp") }), o ? a(te, { flowAction: o, children: a(ne, { children: t("labels.continue") }) }) : a(b.Fragment, { children: [a(te, { flowAction: e.actions.continue_to_security_key_creation, children: a(ne, { secondary: !0, icon: "securityKey", children: t("labels.securityKey") }) }), a(te, { flowAction: e.actions.continue_to_otp_secret_creation, children: a(ne, { secondary: !0, icon: "qrCodeScanner", children: t("labels.authenticatorApp") }) })] })] }), a(Te, { children: [a(G, { loadingSpinnerPosition: "right", flowAction: e.actions.back, children: t("labels.back") }), a(G, { loadingSpinnerPosition: "left", flowAction: e.actions.skip, children: t("labels.skip") })] })] });
|
|
3425
3425
|
};
|
|
3426
|
-
var
|
|
3426
|
+
var mn = ee(8), Dt = {};
|
|
3427
3427
|
Dt.setAttributes = Qe(), Dt.insert = (n) => {
|
|
3428
3428
|
window._hankoStyle = n;
|
|
3429
|
-
}, Dt.domAPI = Ye(), Dt.insertStyleElement = Ge(), Je()(
|
|
3430
|
-
const
|
|
3429
|
+
}, Dt.domAPI = Ye(), Dt.insertStyleElement = Ge(), Je()(mn.A, Dt);
|
|
3430
|
+
const Vr = mn.A && mn.A.locals ? mn.A.locals : void 0, Br = ({ children: n, text: t }) => {
|
|
3431
3431
|
const { t: e } = (0, f.useContext)(J.TranslateContext), [o, i] = (0, f.useState)(!1);
|
|
3432
|
-
return a("section", { className:
|
|
3432
|
+
return a("section", { className: Kt.clipboardContainer, children: [a("div", { children: [n, " "] }), a("div", { className: Kt.clipboardIcon, onClick: (r) => function(s, d, u, c) {
|
|
3433
3433
|
return new (u || (u = Promise))(function(l, m) {
|
|
3434
|
-
function v(
|
|
3434
|
+
function v(C) {
|
|
3435
3435
|
try {
|
|
3436
|
-
k(c.next(
|
|
3437
|
-
} catch (
|
|
3438
|
-
m(
|
|
3436
|
+
k(c.next(C));
|
|
3437
|
+
} catch (x) {
|
|
3438
|
+
m(x);
|
|
3439
3439
|
}
|
|
3440
3440
|
}
|
|
3441
|
-
function g(
|
|
3441
|
+
function g(C) {
|
|
3442
3442
|
try {
|
|
3443
|
-
k(c.throw(
|
|
3444
|
-
} catch (
|
|
3445
|
-
m(
|
|
3443
|
+
k(c.throw(C));
|
|
3444
|
+
} catch (x) {
|
|
3445
|
+
m(x);
|
|
3446
3446
|
}
|
|
3447
3447
|
}
|
|
3448
|
-
function k(
|
|
3449
|
-
var
|
|
3450
|
-
|
|
3451
|
-
|
|
3448
|
+
function k(C) {
|
|
3449
|
+
var x;
|
|
3450
|
+
C.done ? l(C.value) : (x = C.value, x instanceof u ? x : new u(function($) {
|
|
3451
|
+
$(x);
|
|
3452
3452
|
})).then(v, g);
|
|
3453
3453
|
}
|
|
3454
3454
|
k((c = c.apply(s, [])).next());
|
|
@@ -3461,11 +3461,11 @@ const Rr = pn.A && pn.A.locals ? pn.A.locals : void 0, zr = ({ children: n, text
|
|
|
3461
3461
|
console.error("Failed to copy: ", s);
|
|
3462
3462
|
}
|
|
3463
3463
|
}), children: o ? a("span", { children: ["- ", e("labels.copied")] }) : a(Wt, { name: "copy", secondary: !0, size: 13 }) })] });
|
|
3464
|
-
},
|
|
3464
|
+
}, Zr = ({ src: n, secret: t }) => {
|
|
3465
3465
|
const { t: e } = (0, f.useContext)(J.TranslateContext);
|
|
3466
|
-
return a("div", { className:
|
|
3466
|
+
return a("div", { className: Vr.otpCreationDetails, children: [a("img", { alt: "QR-Code", src: n }), a(Cn, {}), a(Br, { text: t, children: e("texts.otpSecretKey") }), a("div", { children: t })] });
|
|
3467
3467
|
};
|
|
3468
|
-
var
|
|
3468
|
+
var ei = function(n, t, e, o) {
|
|
3469
3469
|
return new (e || (e = Promise))(function(i, r) {
|
|
3470
3470
|
function s(c) {
|
|
3471
3471
|
try {
|
|
@@ -3490,26 +3490,26 @@ var Bo = function(n, t, e, o) {
|
|
|
3490
3490
|
u((o = o.apply(n, [])).next());
|
|
3491
3491
|
});
|
|
3492
3492
|
};
|
|
3493
|
-
const
|
|
3494
|
-
const { t } = (0, f.useContext)(J.TranslateContext), { flowState: e } = Ee(n.state), [o, i] = (0, f.useState)([]), r = (0, f.useCallback)((s) =>
|
|
3493
|
+
const Jr = (n) => {
|
|
3494
|
+
const { t } = (0, f.useContext)(J.TranslateContext), { flowState: e } = Ee(n.state), [o, i] = (0, f.useState)([]), r = (0, f.useCallback)((s) => ei(void 0, void 0, void 0, function* () {
|
|
3495
3495
|
return e.actions.otp_code_verify.run({ otp_code: s });
|
|
3496
3496
|
}), [e]);
|
|
3497
3497
|
return (0, f.useEffect)(() => {
|
|
3498
3498
|
var s;
|
|
3499
3499
|
((s = e.error) === null || s === void 0 ? void 0 : s.code) === "passcode_invalid" && i([]);
|
|
3500
|
-
}, [e]), a(b.Fragment, { children: [a(ke, { children: [a(de, { children: t("headlines.otpSetUp") }), a(Se, { state: e }), a(
|
|
3500
|
+
}, [e]), a(b.Fragment, { children: [a(ke, { children: [a(de, { children: t("headlines.otpSetUp") }), a(Se, { state: e }), a(W, { children: t("texts.otpScanQRCode") }), a(Zr, { src: e.payload.otp_image_source, secret: e.payload.otp_secret }), a(W, { children: t("texts.otpEnterVerificationCode") }), a(te, { flowAction: e.actions.otp_code_verify, onSubmit: (s) => ei(void 0, void 0, void 0, function* () {
|
|
3501
3501
|
return s.preventDefault(), r(o.join(""));
|
|
3502
|
-
}), children: [a(
|
|
3502
|
+
}), children: [a(co, { onInput: (s) => {
|
|
3503
3503
|
if (i(s), s.filter((d) => d !== "").length === 6) return r(s.join(""));
|
|
3504
3504
|
}, passcodeDigits: o, numberOfInputs: 6 }), a(ne, { children: t("labels.continue") })] })] }), a(Te, { children: a(G, { flowAction: e.actions.back, loadingSpinnerPosition: "right", children: t("labels.back") }) })] });
|
|
3505
|
-
},
|
|
3505
|
+
}, Yr = (n) => {
|
|
3506
3506
|
const { t } = (0, f.useContext)(J.TranslateContext), { flowState: e } = Ee(n.state);
|
|
3507
|
-
return a(b.Fragment, { children: [a(ke, { children: [a(de, { children: t("headlines.securityKeySetUp") }), a(Se, { state: e }), a(
|
|
3508
|
-
},
|
|
3507
|
+
return a(b.Fragment, { children: [a(ke, { children: [a(de, { children: t("headlines.securityKeySetUp") }), a(Se, { state: e }), a(W, { children: t("texts.securityKeySetUp") }), a(te, { flowAction: e.actions.webauthn_generate_creation_options, children: a(ne, { autofocus: !0, icon: "securityKey", children: t("labels.createSecurityKey") }) })] }), a(Te, { hidden: !e.actions.back.enabled, children: a(G, { loadingSpinnerPosition: "right", flowAction: e.actions.back, children: t("labels.back") }) })] });
|
|
3508
|
+
}, Qr = (n) => {
|
|
3509
3509
|
const { t } = (0, f.useContext)(J.TranslateContext), { flowState: e } = Ee(n.state);
|
|
3510
|
-
return a(b.Fragment, { children: [a(ke, { children: [a(de, { children: t("headlines.trustDevice") }), a(Se, { flowError: e == null ? void 0 : e.error }), a(
|
|
3510
|
+
return a(b.Fragment, { children: [a(ke, { children: [a(de, { children: t("headlines.trustDevice") }), a(Se, { flowError: e == null ? void 0 : e.error }), a(W, { children: t("texts.trustDevice") }), a(te, { flowAction: e.actions.trust_device, children: a(ne, { children: t("labels.trustDevice") }) })] }), a(Te, { children: [a(G, { flowAction: e.actions.back, loadingSpinnerPosition: "right", children: t("labels.back") }), a(G, { flowAction: e.actions.skip, loadingSpinnerPosition: "left", children: t("labels.skip") })] })] });
|
|
3511
3511
|
};
|
|
3512
|
-
var
|
|
3512
|
+
var ti = function(n, t, e, o) {
|
|
3513
3513
|
return new (e || (e = Promise))(function(i, r) {
|
|
3514
3514
|
function s(c) {
|
|
3515
3515
|
try {
|
|
@@ -3534,141 +3534,141 @@ var Zo = function(n, t, e, o) {
|
|
|
3534
3534
|
u((o = o.apply(n, t || [])).next());
|
|
3535
3535
|
});
|
|
3536
3536
|
};
|
|
3537
|
-
const
|
|
3538
|
-
var t, { lang: e, prefilledEmail: o, prefilledUsername: i, globalOptions: r, createWebauthnAbortSignal: s, nonce: d } = n, u = function(
|
|
3539
|
-
var
|
|
3540
|
-
for (var se in
|
|
3541
|
-
if (
|
|
3537
|
+
const De = (0, b.createContext)(null), Gr = (n) => {
|
|
3538
|
+
var t, { lang: e, prefilledEmail: o, prefilledUsername: i, globalOptions: r, createWebauthnAbortSignal: s, nonce: d } = n, u = function(j, q) {
|
|
3539
|
+
var xe = {};
|
|
3540
|
+
for (var se in j) Object.prototype.hasOwnProperty.call(j, se) && q.indexOf(se) < 0 && (xe[se] = j[se]);
|
|
3541
|
+
if (j != null && typeof Object.getOwnPropertySymbols == "function") {
|
|
3542
3542
|
var Ie = 0;
|
|
3543
|
-
for (se = Object.getOwnPropertySymbols(
|
|
3543
|
+
for (se = Object.getOwnPropertySymbols(j); Ie < se.length; Ie++) q.indexOf(se[Ie]) < 0 && Object.prototype.propertyIsEnumerable.call(j, se[Ie]) && (xe[se[Ie]] = j[se[Ie]]);
|
|
3544
3544
|
}
|
|
3545
|
-
return
|
|
3545
|
+
return xe;
|
|
3546
3546
|
}(n, ["lang", "prefilledEmail", "prefilledUsername", "globalOptions", "createWebauthnAbortSignal", "nonce"]);
|
|
3547
3547
|
const { hanko: c, injectStyles: l, hidePasskeyButtonOnLogin: m, translations: v, translationsLocation: g, fallbackLanguage: k } = r;
|
|
3548
3548
|
c.setLang((e == null ? void 0 : e.toString()) || k);
|
|
3549
|
-
const
|
|
3550
|
-
var
|
|
3551
|
-
(
|
|
3552
|
-
}, Ne = (0, f.useCallback)((
|
|
3553
|
-
N(a(
|
|
3549
|
+
const C = (0, f.useRef)(null), x = (0, f.useMemo)(() => `${r.storageKey}_last_login`, [r.storageKey]), [$, K] = (0, f.useState)(u.componentName), [w, E] = (0, f.useState)((t = u.mode) !== null && t !== void 0 ? t : "login"), I = (0, f.useRef)(!1), [M, z] = (0, f.useState)(!1), F = (0, f.useMemo)(() => ({ auth: w, login: "login", registration: "registration", profile: "profile", events: null }), [w]), V = (0, f.useMemo)(() => a(yr, {}), []), [X, N] = (0, f.useState)(V), [, fe] = (0, f.useState)(c), [_e, ue] = (0, f.useState)(), [le, re] = (0, f.useState)({ email: o, username: i }), ye = function(j, q) {
|
|
3550
|
+
var xe;
|
|
3551
|
+
(xe = C.current) === null || xe === void 0 || xe.dispatchEvent(new CustomEvent(j, { detail: q, bubbles: !1, composed: !0 }));
|
|
3552
|
+
}, Ne = (0, f.useCallback)((j) => F[$] == j.flowName, [F, $, w]), ot = (j) => {
|
|
3553
|
+
N(a(Yo, { error: j instanceof ut ? j : new Ke(j) }));
|
|
3554
3554
|
};
|
|
3555
|
-
(0, f.useMemo)(() => c.onBeforeStateChange(({ state:
|
|
3556
|
-
Ne(
|
|
3555
|
+
(0, f.useMemo)(() => c.onBeforeStateChange(({ state: j }) => {
|
|
3556
|
+
Ne(j) && re((q) => Object.assign(Object.assign({}, q), { isDisabled: !0, error: void 0 }));
|
|
3557
3557
|
}), [c, Ne]), (0, f.useEffect)(() => {
|
|
3558
|
-
re((
|
|
3559
|
-
}, [o, i]), (0, f.useEffect)(() => c.onAfterStateChange((
|
|
3560
|
-
var
|
|
3561
|
-
if (Ne(
|
|
3558
|
+
re((j) => Object.assign(Object.assign(Object.assign({}, j), o && { email: o }), i && { username: i }));
|
|
3559
|
+
}, [o, i]), (0, f.useEffect)(() => c.onAfterStateChange((j) => ti(void 0, [j], void 0, function* ({ state: q }) {
|
|
3560
|
+
var xe;
|
|
3561
|
+
if (Ne(q)) switch (["onboarding_verify_passkey_attestation", "webauthn_credential_verification", "login_passkey", "thirdparty"].includes(q.name) || re((se) => Object.assign(Object.assign({}, se), { isDisabled: !1 })), q.name) {
|
|
3562
3562
|
case "login_init":
|
|
3563
|
-
N(a(
|
|
3563
|
+
N(a(br, { state: q })), q.passkeyAutofillActivation();
|
|
3564
3564
|
break;
|
|
3565
3565
|
case "passcode_confirmation":
|
|
3566
|
-
N(a(
|
|
3566
|
+
N(a(kr, { state: q }));
|
|
3567
3567
|
break;
|
|
3568
3568
|
case "login_otp":
|
|
3569
|
-
N(a(
|
|
3569
|
+
N(a(Fr, { state: q }));
|
|
3570
3570
|
break;
|
|
3571
3571
|
case "onboarding_create_passkey":
|
|
3572
|
-
N(a(
|
|
3572
|
+
N(a(Sr, { state: q }));
|
|
3573
3573
|
break;
|
|
3574
3574
|
case "login_password":
|
|
3575
|
-
N(a(
|
|
3575
|
+
N(a(Cr, { state: q }));
|
|
3576
3576
|
break;
|
|
3577
3577
|
case "login_password_recovery":
|
|
3578
|
-
N(a(
|
|
3578
|
+
N(a(xr, { state: q }));
|
|
3579
3579
|
break;
|
|
3580
3580
|
case "login_security_key":
|
|
3581
|
-
N(a(
|
|
3581
|
+
N(a(Kr, { state: q }));
|
|
3582
3582
|
break;
|
|
3583
3583
|
case "mfa_method_chooser":
|
|
3584
|
-
N(a(
|
|
3584
|
+
N(a(Wr, { state: q }));
|
|
3585
3585
|
break;
|
|
3586
3586
|
case "mfa_otp_secret_creation":
|
|
3587
|
-
N(a(
|
|
3587
|
+
N(a(Jr, { state: q }));
|
|
3588
3588
|
break;
|
|
3589
3589
|
case "mfa_security_key_creation":
|
|
3590
|
-
N(a(
|
|
3590
|
+
N(a(Yr, { state: q }));
|
|
3591
3591
|
break;
|
|
3592
3592
|
case "login_method_chooser":
|
|
3593
|
-
N(a(
|
|
3593
|
+
N(a(Ar, { state: q }));
|
|
3594
3594
|
break;
|
|
3595
3595
|
case "registration_init":
|
|
3596
|
-
N(a(
|
|
3596
|
+
N(a(Pr, { state: q }));
|
|
3597
3597
|
break;
|
|
3598
3598
|
case "password_creation":
|
|
3599
|
-
N(a(
|
|
3599
|
+
N(a(Er, { state: q }));
|
|
3600
3600
|
break;
|
|
3601
3601
|
case "success":
|
|
3602
|
-
!((
|
|
3602
|
+
!((xe = q.payload) === null || xe === void 0) && xe.last_login && localStorage.setItem(x, JSON.stringify(q.payload.last_login)), q.autoStep();
|
|
3603
3603
|
break;
|
|
3604
3604
|
case "profile_init":
|
|
3605
|
-
N(a(
|
|
3605
|
+
N(a(zr, { state: q, enablePasskeys: r.enablePasskeys }));
|
|
3606
3606
|
break;
|
|
3607
3607
|
case "error":
|
|
3608
|
-
N(a(
|
|
3608
|
+
N(a(Yo, { state: q }));
|
|
3609
3609
|
break;
|
|
3610
3610
|
case "onboarding_email":
|
|
3611
|
-
N(a(
|
|
3611
|
+
N(a(qr, { state: q }));
|
|
3612
3612
|
break;
|
|
3613
3613
|
case "onboarding_username":
|
|
3614
|
-
N(a(
|
|
3614
|
+
N(a(jr, { state: q }));
|
|
3615
3615
|
break;
|
|
3616
3616
|
case "credential_onboarding_chooser":
|
|
3617
|
-
N(a(
|
|
3617
|
+
N(a(Hr, { state: q }));
|
|
3618
3618
|
break;
|
|
3619
3619
|
case "device_trust":
|
|
3620
|
-
N(a(
|
|
3620
|
+
N(a(Qr, { state: q }));
|
|
3621
3621
|
}
|
|
3622
|
-
})), [
|
|
3623
|
-
const it = (0, f.useCallback)((
|
|
3622
|
+
})), [$, F]);
|
|
3623
|
+
const it = (0, f.useCallback)((j) => ti(void 0, void 0, void 0, function* () {
|
|
3624
3624
|
re((se) => Object.assign(Object.assign({}, se), { isDisabled: !0 }));
|
|
3625
|
-
const
|
|
3626
|
-
|
|
3627
|
-
const
|
|
3628
|
-
if (new URLSearchParams(window.location.search).get("saml_hint") === "idp_initiated") E("token_exchange"), yield c.createState("token_exchange", Object.assign(Object.assign({},
|
|
3625
|
+
const q = localStorage.getItem(x);
|
|
3626
|
+
q && ue(JSON.parse(q));
|
|
3627
|
+
const xe = { excludeAutoSteps: ["success"], cacheKey: "hanko-auth-flow-state", dispatchAfterStateChangeEvent: !1 };
|
|
3628
|
+
if (new URLSearchParams(window.location.search).get("saml_hint") === "idp_initiated") E("token_exchange"), yield c.createState("token_exchange", Object.assign(Object.assign({}, xe), { dispatchAfterStateChangeEvent: !0 }));
|
|
3629
3629
|
else {
|
|
3630
|
-
const se = yield c.createState(
|
|
3630
|
+
const se = yield c.createState(j, xe);
|
|
3631
3631
|
E(se.flowName), setTimeout(() => se.dispatchAfterStateChangeEvent(), 500);
|
|
3632
3632
|
}
|
|
3633
|
-
}), []), A = (0, f.useCallback)((
|
|
3634
|
-
|
|
3635
|
-
const
|
|
3636
|
-
|
|
3633
|
+
}), []), A = (0, f.useCallback)((j) => {
|
|
3634
|
+
K(j);
|
|
3635
|
+
const q = F[j];
|
|
3636
|
+
q && it(q).catch(ot);
|
|
3637
3637
|
}, [F]);
|
|
3638
3638
|
(0, f.useEffect)(() => {
|
|
3639
3639
|
if (!I.current) {
|
|
3640
|
-
const
|
|
3641
|
-
var
|
|
3642
|
-
E((
|
|
3640
|
+
const j = setTimeout(() => {
|
|
3641
|
+
var q;
|
|
3642
|
+
E((q = u.mode) !== null && q !== void 0 ? q : "login"), z(!0);
|
|
3643
3643
|
}, 0);
|
|
3644
|
-
return () => clearTimeout(
|
|
3644
|
+
return () => clearTimeout(j);
|
|
3645
3645
|
}
|
|
3646
3646
|
}, [u.mode]), (0, f.useEffect)(() => {
|
|
3647
|
-
M && !I.current && (I.current = !0, A(
|
|
3648
|
-
}, [M, w,
|
|
3647
|
+
M && !I.current && (I.current = !0, A($));
|
|
3648
|
+
}, [M, w, $, A]), (0, f.useEffect)(() => {
|
|
3649
3649
|
c.onUserDeleted(() => {
|
|
3650
3650
|
ye("onUserDeleted");
|
|
3651
|
-
}), c.onSessionCreated((
|
|
3652
|
-
ye("onSessionCreated",
|
|
3651
|
+
}), c.onSessionCreated((j) => {
|
|
3652
|
+
ye("onSessionCreated", j);
|
|
3653
3653
|
}), c.onSessionExpired(() => {
|
|
3654
3654
|
ye("onSessionExpired");
|
|
3655
3655
|
}), c.onUserLoggedOut(() => {
|
|
3656
3656
|
ye("onUserLoggedOut");
|
|
3657
|
-
}), c.onBeforeStateChange((
|
|
3658
|
-
ye("onBeforeStateChange",
|
|
3659
|
-
}), c.onAfterStateChange((
|
|
3660
|
-
ye("onAfterStateChange",
|
|
3657
|
+
}), c.onBeforeStateChange((j) => {
|
|
3658
|
+
ye("onBeforeStateChange", j);
|
|
3659
|
+
}), c.onAfterStateChange((j) => {
|
|
3660
|
+
ye("onAfterStateChange", j);
|
|
3661
3661
|
});
|
|
3662
3662
|
}, [c]), (0, f.useMemo)(() => {
|
|
3663
|
-
const
|
|
3664
|
-
A(
|
|
3663
|
+
const j = () => {
|
|
3664
|
+
A($);
|
|
3665
3665
|
};
|
|
3666
|
-
["auth", "login", "registration"].includes(
|
|
3667
|
-
}, [
|
|
3668
|
-
const O =
|
|
3669
|
-
return a(O, { value: { init: A, initialComponentName: u.componentName, setUIState: re, uiState: le, hanko: c, setHanko: fe, lang: (e == null ? void 0 : e.toString()) || k, prefilledEmail: o, prefilledUsername: i, componentName:
|
|
3670
|
-
},
|
|
3671
|
-
var
|
|
3666
|
+
["auth", "login", "registration"].includes($) ? (c.onUserLoggedOut(j), c.onSessionExpired(j), c.onUserDeleted(j)) : $ === "profile" && c.onSessionCreated(j);
|
|
3667
|
+
}, [$, c, A]);
|
|
3668
|
+
const O = De.Provider, D = J.TranslateProvider, Z = er;
|
|
3669
|
+
return a(O, { value: { init: A, initialComponentName: u.componentName, setUIState: re, uiState: le, hanko: c, setHanko: fe, lang: (e == null ? void 0 : e.toString()) || k, prefilledEmail: o, prefilledUsername: i, componentName: $, setComponentName: K, hidePasskeyButtonOnLogin: m, page: X, setPage: N, lastLogin: _e, isOwnFlow: Ne }, children: a(D, { translations: v, fallbackLang: k, root: g, children: a(Z, { ref: C, children: $ !== "events" ? a(b.Fragment, { children: [l ? a("style", { nonce: d || void 0, dangerouslySetInnerHTML: { __html: window._hankoStyle.innerHTML } }) : null, X] }) : null }) }) });
|
|
3670
|
+
}, Xr = { en: ee(6).en };
|
|
3671
|
+
var ji = function(n, t, e, o) {
|
|
3672
3672
|
return new (e || (e = Promise))(function(i, r) {
|
|
3673
3673
|
function s(c) {
|
|
3674
3674
|
try {
|
|
@@ -3693,19 +3693,19 @@ var Ui = function(n, t, e, o) {
|
|
|
3693
3693
|
u((o = o.apply(n, t || [])).next());
|
|
3694
3694
|
});
|
|
3695
3695
|
};
|
|
3696
|
-
const Be = {},
|
|
3696
|
+
const Be = {}, Bt = (n, t) => {
|
|
3697
3697
|
var e;
|
|
3698
3698
|
const o = (e = document.getElementsByTagName(`hanko-${n}`).item(0)) === null || e === void 0 ? void 0 : e.nonce;
|
|
3699
|
-
return a(
|
|
3700
|
-
},
|
|
3701
|
-
let
|
|
3702
|
-
const
|
|
3699
|
+
return a(Gr, Object.assign({ componentName: n, globalOptions: Be, createWebauthnAbortSignal: as }, t, { nonce: o }));
|
|
3700
|
+
}, es = (n) => Bt("auth", n), ts = (n) => Bt("login", n), ns = (n) => Bt("registration", n), os = (n) => Bt("profile", n), is = (n) => Bt("events", n);
|
|
3701
|
+
let nn = new AbortController();
|
|
3702
|
+
const as = () => (nn && nn.abort(), nn = new AbortController(), nn.signal), Lt = (n) => ji(void 0, [n], void 0, function* ({ tagName: t, entryComponent: e, shadow: o = !0, observedAttributes: i }) {
|
|
3703
3703
|
customElements.get(t) || function(r, s, d, u) {
|
|
3704
3704
|
function c() {
|
|
3705
3705
|
var l = Reflect.construct(HTMLElement, [], c);
|
|
3706
3706
|
return l._vdomComponent = r, l._root = u && u.shadow ? l.attachShadow({ mode: "open" }) : l, l;
|
|
3707
3707
|
}
|
|
3708
|
-
(c.prototype = Object.create(HTMLElement.prototype)).constructor = c, c.prototype.connectedCallback =
|
|
3708
|
+
(c.prototype = Object.create(HTMLElement.prototype)).constructor = c, c.prototype.connectedCallback = Sa, c.prototype.attributeChangedCallback = Ca, c.prototype.disconnectedCallback = xa, d = d || r.observedAttributes || Object.keys(r.propTypes || {}), c.observedAttributes = d, d.forEach(function(l) {
|
|
3709
3709
|
Object.defineProperty(c.prototype, l, { get: function() {
|
|
3710
3710
|
var m, v, g, k;
|
|
3711
3711
|
return (m = (v = this._vdom) == null || (g = v.props) == null ? void 0 : g[l]) != null ? m : (k = this._props) == null ? void 0 : k[l];
|
|
@@ -3716,35 +3716,35 @@ const Qr = () => (tn && tn.abort(), tn = new AbortController(), tn.signal), Ut =
|
|
|
3716
3716
|
} });
|
|
3717
3717
|
}), customElements.define(s || r.tagName || r.displayName || r.name, c);
|
|
3718
3718
|
}(e, t, i, { shadow: o });
|
|
3719
|
-
}),
|
|
3719
|
+
}), Hi = (n, ...t) => ji(void 0, [n, ...t], void 0, function* (e, o = {}) {
|
|
3720
3720
|
const i = ["api", "lang", "prefilled-email", "entry", "mode"];
|
|
3721
|
-
return o = Object.assign({ shadow: !0, injectStyles: !0, enablePasskeys: !0, hidePasskeyButtonOnLogin: !1, translations: null, translationsLocation: "/i18n", fallbackLanguage: "en", storageKey: "hanko", sessionCheckInterval: 3e4 }, o), Be.hanko = new
|
|
3722
|
-
}),
|
|
3721
|
+
return o = Object.assign({ shadow: !0, injectStyles: !0, enablePasskeys: !0, hidePasskeyButtonOnLogin: !1, translations: null, translationsLocation: "/i18n", fallbackLanguage: "en", storageKey: "hanko", sessionCheckInterval: 3e4 }, o), Be.hanko = new Ni(e, { cookieName: o.storageKey, cookieDomain: o.cookieDomain, cookieSameSite: o.cookieSameSite, localStorageKey: o.storageKey, sessionCheckInterval: o.sessionCheckInterval, sessionTokenLocation: o.sessionTokenLocation }), Be.injectStyles = o.injectStyles, Be.enablePasskeys = o.enablePasskeys, Be.hidePasskeyButtonOnLogin = o.hidePasskeyButtonOnLogin, Be.translations = o.translations || Xr, Be.translationsLocation = o.translationsLocation, Be.fallbackLanguage = o.fallbackLanguage, Be.storageKey = o.storageKey, yield Promise.all([Lt(Object.assign(Object.assign({}, o), { tagName: "hanko-auth", entryComponent: es, observedAttributes: i })), Lt(Object.assign(Object.assign({}, o), { tagName: "hanko-login", entryComponent: ts, observedAttributes: i })), Lt(Object.assign(Object.assign({}, o), { tagName: "hanko-registration", entryComponent: ns, observedAttributes: i })), Lt(Object.assign(Object.assign({}, o), { tagName: "hanko-profile", entryComponent: os, observedAttributes: i.filter((r) => ["api", "lang"].includes(r)) })), Lt(Object.assign(Object.assign({}, o), { tagName: "hanko-events", entryComponent: is, observedAttributes: [] }))]), { hanko: Be.hanko };
|
|
3722
|
+
}), rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3723
3723
|
__proto__: null,
|
|
3724
|
-
Action:
|
|
3725
|
-
Client:
|
|
3726
|
-
CustomEventWithDetail:
|
|
3727
|
-
Hanko:
|
|
3724
|
+
Action: Ft,
|
|
3725
|
+
Client: no,
|
|
3726
|
+
CustomEventWithDetail: xi,
|
|
3727
|
+
Hanko: Ni,
|
|
3728
3728
|
HankoError: ut,
|
|
3729
|
-
HttpClient:
|
|
3730
|
-
Relay:
|
|
3731
|
-
RequestTimeoutError:
|
|
3732
|
-
SessionClient:
|
|
3729
|
+
HttpClient: to,
|
|
3730
|
+
Relay: Ei,
|
|
3731
|
+
RequestTimeoutError: wn,
|
|
3732
|
+
SessionClient: oo,
|
|
3733
3733
|
State: ze,
|
|
3734
|
-
TechnicalError:
|
|
3734
|
+
TechnicalError: Ke,
|
|
3735
3735
|
UnauthorizedError: mt,
|
|
3736
|
-
UserClient:
|
|
3736
|
+
UserClient: Li,
|
|
3737
3737
|
WebauthnSupport: ft,
|
|
3738
3738
|
clearStoredCodeVerifier: nt,
|
|
3739
|
-
generateCodeVerifier:
|
|
3740
|
-
getStoredCodeVerifier:
|
|
3741
|
-
register:
|
|
3742
|
-
sessionCreatedType:
|
|
3743
|
-
sessionExpiredType:
|
|
3744
|
-
setStoredCodeVerifier:
|
|
3745
|
-
userDeletedType:
|
|
3746
|
-
userLoggedOutType:
|
|
3747
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3739
|
+
generateCodeVerifier: kn,
|
|
3740
|
+
getStoredCodeVerifier: Di,
|
|
3741
|
+
register: Hi,
|
|
3742
|
+
sessionCreatedType: Qn,
|
|
3743
|
+
sessionExpiredType: Gn,
|
|
3744
|
+
setStoredCodeVerifier: Sn,
|
|
3745
|
+
userDeletedType: eo,
|
|
3746
|
+
userLoggedOutType: Xn
|
|
3747
|
+
}, Symbol.toStringTag, { value: "Module" })), ss = Vi`
|
|
3748
3748
|
:host {
|
|
3749
3749
|
display: block;
|
|
3750
3750
|
font-family: var(--font-family, var(--hot-font-sans));
|
|
@@ -4271,23 +4271,28 @@ const Qr = () => (tn && tn.abort(), tn = new AbortController(), tn.signal), Ut =
|
|
|
4271
4271
|
text-decoration: underline;
|
|
4272
4272
|
}
|
|
4273
4273
|
`;
|
|
4274
|
-
var
|
|
4275
|
-
for (var e in t)
|
|
4276
|
-
}, o: (n, t) => Object.prototype.hasOwnProperty.call(n, t) },
|
|
4277
|
-
|
|
4278
|
-
const es = { 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?", deleteIdentity: "Delete connection" }, texts: { enterPasscode: "Enter the passcode sent to your email address.", 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: "Continue 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", connectAccount: "Connect account" }, 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.", third_party_access_denied: "Access denied. The request was cancelled by the user or the provider has denied access for other reasons." } }, Cn = Ni.en, ao = {
|
|
4274
|
+
var Kn = { d: (n, t) => {
|
|
4275
|
+
for (var e in t) Kn.o(t, e) && !Kn.o(n, e) && Object.defineProperty(n, e, { enumerable: !0, get: t[e] });
|
|
4276
|
+
}, o: (n, t) => Object.prototype.hasOwnProperty.call(n, t) }, Fi = {};
|
|
4277
|
+
Kn.d(Fi, { en: () => cs });
|
|
4278
|
+
const cs = { 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?", deleteIdentity: "Delete connection" }, texts: { enterPasscode: "Enter the passcode sent to your email address.", 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: "Continue 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", connectAccount: "Connect account" }, 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.", third_party_access_denied: "Access denied. The request was cancelled by the user or the provider has denied access for other reasons." } }, bt = Fi.en;
|
|
4279
|
+
var Wn = { d: (n, t) => {
|
|
4280
|
+
for (var e in t) Wn.o(t, e) && !Wn.o(n, e) && Object.defineProperty(n, e, { enumerable: !0, get: t[e] });
|
|
4281
|
+
}, o: (n, t) => Object.prototype.hasOwnProperty.call(n, t) }, Ki = {};
|
|
4282
|
+
Wn.d(Ki, { fr: () => ls });
|
|
4283
|
+
const ls = { headlines: { error: "Une erreur s'est produite", loginEmail: "Se connecter ou s'inscrire", loginEmailNoSignup: "Se connecter", loginFinished: "Connexion réussie", loginPasscode: "Entrez le code d'accès", loginPassword: "Entrez le mot de passe", registerAuthenticator: "Créer une clé d'identification", registerConfirm: "Créer un compte ?", registerPassword: "Définir un nouveau mot de passe", otpSetUp: "Configurer l'application d'authentification", profileEmails: "Adresses e-mail", profilePassword: "Mot de passe", profilePasskeys: "Clés d'identification", isPrimaryEmail: "Adresse e-mail principale", setPrimaryEmail: "Définir l'adresse e-mail principale", createEmail: "Entrer un nouvel e-mail", createUsername: "Entrer un nouveau nom d'utilisateur", emailVerified: "Vérifié", emailUnverified: "Non vérifié", emailDelete: "Supprimer", renamePasskey: "Renommer la clé d'identification", deletePasskey: "Supprimer la clé d'identification", lastUsedAt: "Dernière utilisation le", createdAt: "Créé le", connectedAccounts: "Comptes connectés", deleteAccount: "Supprimer le compte", accountNotFound: "Compte non trouvé", signIn: "Se connecter", signUp: "S'inscrire", selectLoginMethod: "Sélectionner la méthode de connexion", setupLoginMethod: "Configurer la méthode de connexion", lastUsed: "Dernière vue", ipAddress: "Adresse IP", revokeSession: "Révoquer la session", profileSessions: "Sessions", mfaSetUp: "Configurer MFA", securityKeySetUp: "Ajouter une clé de sécurité", securityKeyLogin: "Clé de sécurité", otpLogin: "Code d'authentification", renameSecurityKey: "Renommer la clé de sécurité", deleteSecurityKey: "Supprimer la clé de sécurité", securityKeys: "Clés de sécurité", authenticatorApp: "Application d'authentification", authenticatorAppAlreadySetUp: "L'application d'authentification est configurée", authenticatorAppNotSetUp: "Configurer l'application d'authentification", trustDevice: "Faire confiance à ce navigateur ?", deleteIdentity: "Supprimer la connexion" }, texts: { enterPasscode: "Saisissez le code d'accès envoyé à votre adresse e-mail.", enterPasscodeNoEmail: "Entrez le code envoyé à votre adresse e-mail principale.", setupPasskey: "Connectez-vous à votre compte facilement et en toute sécurité avec une clé d'identification. Remarque : Vos données biométriques sont uniquement stockées sur vos appareils et ne seront jamais partagées avec qui que ce soit.", createAccount: `Aucun compte n'existe pour "{emailAddress}". Voulez-vous créer un nouveau compte ?`, otpEnterVerificationCode: "Entrez le mot de passe à usage unique (OTP) obtenu à partir de votre application d'authentification ci-dessous :", otpScanQRCode: "Scannez le code QR en utilisant votre application d'authentification (comme Google Authenticator ou toute autre application TOTP). Alternativement, vous pouvez entrer manuellement la clé secrète OTP dans l'application.", otpSecretKey: "Clé secrète OTP", passwordFormatHint: "Doit contenir entre {minLength} et {maxLength} caractères.", setPrimaryEmail: "Définir cette adresse e-mail comme adresse de contact.", isPrimaryEmail: "Cette adresse e-mail sera utilisée pour vous contacter si nécessaire.", emailVerified: "Cette adresse e-mail a été vérifiée.", emailUnverified: "Cette adresse e-mail n'a pas été vérifiée.", emailDelete: "Si vous supprimez cette adresse e-mail, elle ne pourra plus être utilisée pour vous connecter à votre compte. Les clés d'identification qui ont pu être créées avec cette adresse e-mail resteront intactes.", renamePasskey: "Définissez un nom pour la clé d'identification qui vous aide à identifier où elle est stockée.", deletePasskey: "Supprimez cette clé d'identification de votre compte. Notez que la clé d'identification continuera d'exister sur vos appareils et devra également y être supprimée.", deleteAccount: "Êtes-vous sûr de vouloir supprimer ce compte ? Toutes les données seront supprimées immédiatement et ne pourront pas être récupérées.", noAccountExists: `Aucun compte n'existe pour "{emailAddress}".`, selectLoginMethodForFutureLogins: "Sélectionnez l'une des méthodes de connexion suivantes à utiliser pour les connexions futures.", howDoYouWantToLogin: "Comment souhaitez-vous vous connecter ?", mfaSetUp: "Protégez votre compte avec l'authentification à plusieurs facteurs (MFA). La MFA ajoute une étape supplémentaire à votre processus de connexion, garantissant que même si votre mot de passe ou votre compte e-mail est compromis, votre compte reste sécurisé.", securityKeyLogin: "Connectez ou activez votre clé de sécurité, puis cliquez sur le bouton ci-dessous. Une fois prêt, utilisez-le via USB, NFC ou votre téléphone mobile. Suivez les instructions pour terminer le processus de connexion.", otpLogin: "Ouvrez votre application d'authentification pour obtenir le mot de passe à usage unique (OTP). Entrez le code dans le champ ci-dessous pour terminer votre connexion.", renameSecurityKey: "Définissez un nom pour la clé de sécurité.", deleteSecurityKey: "Supprimez cette clé de sécurité de votre compte.", authenticatorAppAlreadySetUp: "Votre compte est sécurisé avec une application d'authentification qui génère des mots de passe à usage unique basés sur le temps (TOTP) pour l'authentification à plusieurs facteurs.", authenticatorAppNotSetUp: "Sécurisez votre compte avec une application d'authentification qui génère des mots de passe à usage unique basés sur le temps (TOTP) pour l'authentification à plusieurs facteurs.", securityKeySetUp: "Utilisez une clé de sécurité dédiée via USB, Bluetooth ou NFC, ou votre téléphone mobile. Connectez ou activez votre clé de sécurité, puis cliquez sur le bouton ci-dessous et suivez les instructions pour terminer l'enregistrement.", trustDevice: "Si vous faites confiance à ce navigateur, vous n'aurez pas besoin de saisir votre OTP (mot de passe à usage unique) ou d'utiliser votre clé de sécurité pour l'authentification à plusieurs facteurs (MFA) lors de votre prochaine connexion." }, labels: { or: "ou", no: "non", yes: "oui", email: "E-mail", continue: "Continuer", copied: "copié", skip: "Passer", save: "Enregistrer", password: "Mot de passe", passkey: "Clé d'identification", passcode: "Code d'accès", signInPassword: "Se connecter avec un mot de passe", signInPasscode: "Se connecter avec un code d'accès", forgotYourPassword: "Mot de passe oublié ?", back: "Retour", signInPasskey: "Se connecter avec une clé d'identification", registerAuthenticator: "Créer une clé d'identification", signIn: "Se connecter", signUp: "S'inscrire", sendNewPasscode: "Envoyer un nouveau code", passwordRetryAfter: "Réessayez dans {passwordRetryAfter}", passcodeResendAfter: "Demander un nouveau code dans {passcodeResendAfter}", unverifiedEmail: "non vérifiée", primaryEmail: "principale", setAsPrimaryEmail: "Définir comme principale", verify: "Vérifier", delete: "Supprimer", newEmailAddress: "Nouvelle adresse e-mail", newPassword: "Nouveau mot de passe", rename: "Renommer", newPasskeyName: "Nouveau nom de clé d'identification", addEmail: "Ajouter une adresse e-mail", createPasskey: "Créer une clé d'identification", webauthnUnsupported: "Les clés d'identification ne sont pas prises en charge par votre navigateur", signInWith: "Se connecter avec {provider}", deleteAccount: "Oui, supprimer ce compte.", emailOrUsername: "E-mail ou Nom d'utilisateur", username: "Nom d'utilisateur", optional: "facultatif", dontHaveAnAccount: "Vous n'avez pas de compte ?", alreadyHaveAnAccount: "Vous avez déjà un compte ?", changeUsername: "Changer le nom d'utilisateur", setUsername: "Définir le nom d'utilisateur", changePassword: "Changer le mot de passe", setPassword: "Définir le mot de passe", revoke: "Révoquer", currentSession: "Session en cours", authenticatorApp: "Application d'authentification", securityKey: "Clé de sécurité", securityKeyUse: "Utiliser la clé de sécurité", newSecurityKeyName: "Nouveau nom de clé de sécurité", createSecurityKey: "Ajouter une clé de sécurité", authenticatorAppManage: "Gérer l'application d'authentification", authenticatorAppAdd: "Configurer", configured: "configuré", useAnotherMethod: "Utiliser une autre méthode", lastUsed: "Dernière utilisation", trustDevice: "Faire confiance à ce navigateur", staySignedIn: "Rester connecté", connectAccount: "Connecter un compte" }, errors: { somethingWentWrong: "Une erreur technique s'est produite. Veuillez réessayer ultérieurement.", requestTimeout: "La demande a expiré.", invalidPassword: "Mauvais e-mail ou mot de passe.", invalidPasscode: "Le code d'accès fourni n'était pas correct.", passcodeAttemptsReached: "Le code d'accès a été saisi incorrectement trop de fois. Veuillez demander un nouveau code.", tooManyRequests: "Trop de demandes ont été effectuées. Veuillez attendre pour répéter l'opération demandée.", unauthorized: "Votre session a expiré. Veuillez vous connecter à nouveau.", invalidWebauthnCredential: "Cette clé d'identification ne peut plus être utilisée.", passcodeExpired: "Le code d'accès a expiré. Veuillez demander un nouveau code.", userVerification: "Vérification de l'utilisateur requise. Veuillez vous assurer que votre appareil d'authentification est protégé par un code PIN ou une biométrie.", emailAddressAlreadyExistsError: "L'adresse e-mail existe déjà.", maxNumOfEmailAddressesReached: "Aucune autre adresse e-mail ne peut être ajoutée.", thirdPartyAccessDenied: "Accès refusé. La demande a été annulée par l'utilisateur ou le fournisseur a refusé l'accès pour d'autres raisons.", thirdPartyMultipleAccounts: "Impossible d'identifier le compte. L'adresse e-mail est utilisée par plusieurs comptes.", thirdPartyUnverifiedEmail: "Vérification de l'adresse e-mail requise. Veuillez vérifier l'adresse e-mail utilisée avec votre fournisseur.", signupDisabled: "L'enregistrement du compte est désactivé.", handlerNotFoundError: "L'étape actuelle n'est pas prise en charge dans cette version de l'application. Veuillez réessayer plus tard ou contacter l'équipe d'assistance pour obtenir de l'aide." }, flowErrors: { technical_error: "Une erreur technique s'est produite. Veuillez réessayer ultérieurement.", flow_expired_error: "La session a expiré, veuillez cliquer sur le bouton pour redémarrer.", value_invalid_error: "La valeur saisie est invalide.", passcode_invalid: "Le code fourni n'était pas correct.", passkey_invalid: "Cette clé de passe ne peut plus être utilisée.", passcode_max_attempts_reached: "Le code a été entré incorrectement trop de fois. Veuillez demander un nouveau code.", rate_limit_exceeded: "Trop de demandes ont été effectuées. Veuillez patienter pour répéter l'opération demandée.", unknown_username_error: "Le nom d'utilisateur est inconnu.", unknown_email_error: "L'adresse e-mail est inconnue.", username_already_exists: "Le nom d'utilisateur est déjà pris.", invalid_username_error: "Le nom d'utilisateur ne doit contenir que des lettres, des chiffres et des traits de soulignement.", email_already_exists: "L'adresse e-mail est déjà utilisée.", not_found: "La ressource demandée n'a pas été trouvée.", operation_not_permitted_error: "L'opération n'est pas autorisée.", flow_discontinuity_error: "Le processus ne peut pas continuer en raison des paramètres utilisateur ou de la configuration du fournisseur.", form_data_invalid_error: "Les données du formulaire soumises contiennent des erreurs.", unauthorized: "Votre session a expiré. Veuillez vous connecter à nouveau.", value_missing_error: "La valeur est manquante.", value_too_long_error: "La valeur est trop longue.", value_too_short_error: "La valeur est trop courte.", webauthn_credential_invalid_mfa_only: "Cette identité peut être utilisée uniquement comme clé de sécurité de deuxième facteur.", webauthn_credential_already_exists: "La demande a expiré, a été annulée ou le dispositif est déjà enregistré. Veuillez réessayer ou essayer d'utiliser un autre dispositif.", platform_authenticator_required: "Votre compte est configuré pour utiliser des authentificateurs de plate-forme, mais votre appareil ou navigateur actuel ne prend pas en charge cette fonctionnalité. Veuillez réessayer avec un appareil ou un navigateur compatible.", third_party_access_denied: "Accès refusé. La demande a été annulée par l'utilisateur ou le fournisseur a refusé l'accès pour d'autres raisons." } }, ds = Ki.fr, lo = {
|
|
4279
4284
|
headlines: {
|
|
4280
4285
|
signUp: "Create an account"
|
|
4281
4286
|
},
|
|
4282
4287
|
labels: {
|
|
4283
|
-
signUp: "
|
|
4288
|
+
signUp: "Sign up here",
|
|
4284
4289
|
alreadyHaveAnAccount: "Already have a HOT account?",
|
|
4285
|
-
|
|
4290
|
+
dontHaveAnAccount: "Don't have a HOT account?"
|
|
4286
4291
|
},
|
|
4287
4292
|
texts: {
|
|
4288
4293
|
enterPasscode: "Please enter below the passcode we’ve sent to your email address:"
|
|
4289
4294
|
}
|
|
4290
|
-
},
|
|
4295
|
+
}, uo = {
|
|
4291
4296
|
headlines: {
|
|
4292
4297
|
error: "Ha ocurrido un error",
|
|
4293
4298
|
loginEmail: "Iniciar sesión o crear cuenta",
|
|
@@ -4385,7 +4390,7 @@ const es = { headlines: { error: "An error has occurred", loginEmail: "Sign in o
|
|
|
4385
4390
|
signInPasskey: "Iniciar sesión con llave de acceso",
|
|
4386
4391
|
registerAuthenticator: "Crear una llave de acceso",
|
|
4387
4392
|
signIn: "Iniciar sesión",
|
|
4388
|
-
signUp: "
|
|
4393
|
+
signUp: "Regístrese aquí",
|
|
4389
4394
|
sendNewPasscode: "Enviar nuevo código",
|
|
4390
4395
|
passwordRetryAfter: "Reintentar en {passwordRetryAfter}",
|
|
4391
4396
|
passcodeResendAfter: "Solicitar nuevo código en {passcodeResendAfter}",
|
|
@@ -4406,7 +4411,7 @@ const es = { headlines: { error: "An error has occurred", loginEmail: "Sign in o
|
|
|
4406
4411
|
emailOrUsername: "Correo o nombre de usuario",
|
|
4407
4412
|
username: "Nombre de usuario",
|
|
4408
4413
|
optional: "opcional",
|
|
4409
|
-
dontHaveAnAccount: "¿No tiene una cuenta?",
|
|
4414
|
+
dontHaveAnAccount: "¿No tiene una cuenta HOT?",
|
|
4410
4415
|
alreadyHaveAnAccount: "¿Ya tiene una cuenta?",
|
|
4411
4416
|
changeUsername: "Cambiar nombre de usuario",
|
|
4412
4417
|
setUsername: "Establecer nombre de usuario",
|
|
@@ -4426,53 +4431,8 @@ const es = { headlines: { error: "An error has occurred", loginEmail: "Sign in o
|
|
|
4426
4431
|
lastUsed: "Último uso",
|
|
4427
4432
|
trustDevice: "Confiar en este navegador",
|
|
4428
4433
|
staySignedIn: "Mantener sesión iniciada"
|
|
4429
|
-
}
|
|
4430
|
-
|
|
4431
|
-
somethingWentWrong: "Ha ocurrido un error técnico. Por favor, inténtelo de nuevo más tarde.",
|
|
4432
|
-
requestTimeout: "La solicitud ha expirado.",
|
|
4433
|
-
invalidPassword: "Correo o contraseña incorrectos.",
|
|
4434
|
-
invalidPasscode: "El código proporcionado no es correcto.",
|
|
4435
|
-
passcodeAttemptsReached: "El código se ha ingresado incorrectamente demasiadas veces. Por favor, solicite un nuevo código.",
|
|
4436
|
-
tooManyRequests: "Se han realizado demasiadas solicitudes. Por favor, espere para repetir la operación solicitada.",
|
|
4437
|
-
unauthorized: "Su sesión ha expirado. Por favor, inicie sesión nuevamente.",
|
|
4438
|
-
invalidWebauthnCredential: "Esta llave de acceso ya no se puede usar.",
|
|
4439
|
-
passcodeExpired: "El código ha expirado. Por favor, solicite uno nuevo.",
|
|
4440
|
-
userVerification: "Se requiere verificación de usuario. Asegúrese de que su dispositivo de autenticación esté protegido con un PIN o biometría.",
|
|
4441
|
-
emailAddressAlreadyExistsError: "La dirección de correo ya existe.",
|
|
4442
|
-
maxNumOfEmailAddressesReached: "No se pueden agregar más direcciones de correo.",
|
|
4443
|
-
thirdPartyAccessDenied: "Acceso denegado. La solicitud fue cancelada por el usuario o el proveedor ha denegado el acceso por otras razones.",
|
|
4444
|
-
thirdPartyMultipleAccounts: "No se puede identificar la cuenta. La dirección de correo es usada por múltiples cuentas.",
|
|
4445
|
-
thirdPartyUnverifiedEmail: "Se requiere verificación de correo. Por favor, verifique la dirección de correo usada con su proveedor.",
|
|
4446
|
-
signupDisabled: "El registro de cuentas está deshabilitado.",
|
|
4447
|
-
handlerNotFoundError: "El paso actual en su proceso no es compatible con esta versión de la aplicación. Inténtelo de nuevo más tarde o contacte al soporte si el problema persiste."
|
|
4448
|
-
},
|
|
4449
|
-
flowErrors: {
|
|
4450
|
-
technical_error: "Ha ocurrido un error técnico. Por favor, inténtelo de nuevo más tarde.",
|
|
4451
|
-
flow_expired_error: "La sesión ha expirado, haga clic en el botón para reiniciar.",
|
|
4452
|
-
value_invalid_error: "El valor ingresado no es válido.",
|
|
4453
|
-
passcode_invalid: "El código proporcionado no es correcto.",
|
|
4454
|
-
passkey_invalid: "Esta llave de acceso ya no se puede usar.",
|
|
4455
|
-
passcode_max_attempts_reached: "El código se ha ingresado incorrectamente demasiadas veces. Por favor, solicite un nuevo código.",
|
|
4456
|
-
rate_limit_exceeded: "Se han realizado demasiadas solicitudes. Por favor, espere para repetir la operación solicitada.",
|
|
4457
|
-
unknown_username_error: "El nombre de usuario es desconocido.",
|
|
4458
|
-
unknown_email_error: "La dirección de correo es desconocida.",
|
|
4459
|
-
username_already_exists: "El nombre de usuario ya está en uso.",
|
|
4460
|
-
invalid_username_error: "El nombre de usuario solo debe contener letras, números y guiones bajos.",
|
|
4461
|
-
email_already_exists: "El correo ya está en uso.",
|
|
4462
|
-
not_found: "No se encontró el recurso solicitado.",
|
|
4463
|
-
operation_not_permitted_error: "La operación no está permitida.",
|
|
4464
|
-
flow_discontinuity_error: "El proceso no se puede continuar debido a la configuración del usuario o del proveedor.",
|
|
4465
|
-
form_data_invalid_error: "Los datos del formulario enviados contienen errores.",
|
|
4466
|
-
unauthorized: "Su sesión ha expirado. Por favor, inicie sesión nuevamente.",
|
|
4467
|
-
value_missing_error: "Falta el valor.",
|
|
4468
|
-
value_too_long_error: "El valor es demasiado largo.",
|
|
4469
|
-
value_too_short_error: "El valor es demasiado corto.",
|
|
4470
|
-
webauthn_credential_invalid_mfa_only: "Esta credencial solo se puede usar como clave de seguridad de segundo factor.",
|
|
4471
|
-
webauthn_credential_already_exists: "La solicitud expiró, se canceló o el dispositivo ya está registrado. Inténtelo de nuevo o intente usar otro dispositivo.",
|
|
4472
|
-
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.",
|
|
4473
|
-
third_party_access_denied: "Acceso denegado por el proveedor de terceros. Por favor, inténtelo de nuevo."
|
|
4474
|
-
}
|
|
4475
|
-
}, ns = {
|
|
4434
|
+
}
|
|
4435
|
+
}, ho = {
|
|
4476
4436
|
headlines: {
|
|
4477
4437
|
error: "Une erreur s'est produite",
|
|
4478
4438
|
loginEmail: "Se connecter ou créer un compte",
|
|
@@ -4570,7 +4530,7 @@ const es = { headlines: { error: "An error has occurred", loginEmail: "Sign in o
|
|
|
4570
4530
|
signInPasskey: "Se connecter avec clé d'accès",
|
|
4571
4531
|
registerAuthenticator: "Créer une clé d'accès",
|
|
4572
4532
|
signIn: "Se connecter",
|
|
4573
|
-
signUp: "
|
|
4533
|
+
signUp: "S'inscrire ici",
|
|
4574
4534
|
sendNewPasscode: "Envoyer un nouveau code",
|
|
4575
4535
|
passwordRetryAfter: "Réessayer dans {passwordRetryAfter}",
|
|
4576
4536
|
passcodeResendAfter: "Demander un nouveau code dans {passcodeResendAfter}",
|
|
@@ -4591,7 +4551,7 @@ const es = { headlines: { error: "An error has occurred", loginEmail: "Sign in o
|
|
|
4591
4551
|
emailOrUsername: "E-mail ou nom d'utilisateur",
|
|
4592
4552
|
username: "Nom d'utilisateur",
|
|
4593
4553
|
optional: "optionnel",
|
|
4594
|
-
dontHaveAnAccount: "Vous n'avez pas de compte ?",
|
|
4554
|
+
dontHaveAnAccount: "Vous n'avez pas de compte HOT ?",
|
|
4595
4555
|
alreadyHaveAnAccount: "Vous avez déjà un compte ?",
|
|
4596
4556
|
changeUsername: "Changer le nom d'utilisateur",
|
|
4597
4557
|
setUsername: "Définir le nom d'utilisateur",
|
|
@@ -4611,53 +4571,8 @@ const es = { headlines: { error: "An error has occurred", loginEmail: "Sign in o
|
|
|
4611
4571
|
lastUsed: "Dernière utilisation",
|
|
4612
4572
|
trustDevice: "Faire confiance à ce navigateur",
|
|
4613
4573
|
staySignedIn: "Rester connecté"
|
|
4614
|
-
}
|
|
4615
|
-
|
|
4616
|
-
somethingWentWrong: "Une erreur technique s'est produite. Veuillez réessayer plus tard.",
|
|
4617
|
-
requestTimeout: "La demande a expiré.",
|
|
4618
|
-
invalidPassword: "E-mail ou mot de passe incorrect.",
|
|
4619
|
-
invalidPasscode: "Le code fourni n'est pas correct.",
|
|
4620
|
-
passcodeAttemptsReached: "Le code a été saisi incorrectement trop de fois. Veuillez demander un nouveau code.",
|
|
4621
|
-
tooManyRequests: "Trop de demandes ont été effectuées. Veuillez attendre avant de répéter l'opération demandée.",
|
|
4622
|
-
unauthorized: "Votre session a expiré. Veuillez vous reconnecter.",
|
|
4623
|
-
invalidWebauthnCredential: "Cette clé d'accès ne peut plus être utilisée.",
|
|
4624
|
-
passcodeExpired: "Le code a expiré. Veuillez en demander un nouveau.",
|
|
4625
|
-
userVerification: "Une vérification de l'utilisateur est requise. Assurez-vous que votre dispositif d'authentification est protégé par un code PIN ou une biométrie.",
|
|
4626
|
-
emailAddressAlreadyExistsError: "L'adresse e-mail existe déjà.",
|
|
4627
|
-
maxNumOfEmailAddressesReached: "Impossible d'ajouter plus d'adresses e-mail.",
|
|
4628
|
-
thirdPartyAccessDenied: "Accès refusé. La demande a été annulée par l'utilisateur ou le fournisseur a refusé l'accès pour d'autres raisons.",
|
|
4629
|
-
thirdPartyMultipleAccounts: "Impossible d'identifier le compte. L'adresse e-mail est utilisée par plusieurs comptes.",
|
|
4630
|
-
thirdPartyUnverifiedEmail: "Une vérification de l'e-mail est requise. Veuillez vérifier l'adresse e-mail utilisée avec votre fournisseur.",
|
|
4631
|
-
signupDisabled: "L'inscription de comptes est désactivée.",
|
|
4632
|
-
handlerNotFoundError: "L'étape actuelle de votre processus n'est pas compatible avec cette version de l'application. Réessayez plus tard ou contactez le support si le problème persiste."
|
|
4633
|
-
},
|
|
4634
|
-
flowErrors: {
|
|
4635
|
-
technical_error: "Une erreur technique s'est produite. Veuillez réessayer plus tard.",
|
|
4636
|
-
flow_expired_error: "La session a expiré, cliquez sur le bouton pour redémarrer.",
|
|
4637
|
-
value_invalid_error: "La valeur saisie n'est pas valide.",
|
|
4638
|
-
passcode_invalid: "Le code fourni n'est pas correct.",
|
|
4639
|
-
passkey_invalid: "Cette clé d'accès ne peut plus être utilisée.",
|
|
4640
|
-
passcode_max_attempts_reached: "Le code a été saisi incorrectement trop de fois. Veuillez demander un nouveau code.",
|
|
4641
|
-
rate_limit_exceeded: "Trop de demandes ont été effectuées. Veuillez attendre avant de répéter l'opération demandée.",
|
|
4642
|
-
unknown_username_error: "Le nom d'utilisateur est inconnu.",
|
|
4643
|
-
unknown_email_error: "L'adresse e-mail est inconnue.",
|
|
4644
|
-
username_already_exists: "Le nom d'utilisateur est déjà utilisé.",
|
|
4645
|
-
invalid_username_error: "Le nom d'utilisateur ne doit contenir que des lettres, des chiffres et des traits de soulignement.",
|
|
4646
|
-
email_already_exists: "L'e-mail est déjà utilisé.",
|
|
4647
|
-
not_found: "La ressource demandée n'a pas été trouvée.",
|
|
4648
|
-
operation_not_permitted_error: "L'opération n'est pas autorisée.",
|
|
4649
|
-
flow_discontinuity_error: "Le processus ne peut pas continuer en raison de la configuration de l'utilisateur ou du fournisseur.",
|
|
4650
|
-
form_data_invalid_error: "Les données du formulaire soumises contiennent des erreurs.",
|
|
4651
|
-
unauthorized: "Votre session a expiré. Veuillez vous reconnecter.",
|
|
4652
|
-
value_missing_error: "La valeur est manquante.",
|
|
4653
|
-
value_too_long_error: "La valeur est trop longue.",
|
|
4654
|
-
value_too_short_error: "La valeur est trop courte.",
|
|
4655
|
-
webauthn_credential_invalid_mfa_only: "Cette credential ne peut être utilisée que comme clé de sécurité de second facteur.",
|
|
4656
|
-
webauthn_credential_already_exists: "La demande a expiré, a été annulée ou l'appareil est déjà enregistré. Réessayez ou essayez d'utiliser un autre appareil.",
|
|
4657
|
-
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.",
|
|
4658
|
-
third_party_access_denied: "Accès refusé par le fournisseur tiers. Veuillez réessayer."
|
|
4659
|
-
}
|
|
4660
|
-
}, os = {
|
|
4574
|
+
}
|
|
4575
|
+
}, po = {
|
|
4661
4576
|
headlines: {
|
|
4662
4577
|
error: "Ocorreu um erro",
|
|
4663
4578
|
loginEmail: "Entrar ou criar conta",
|
|
@@ -4755,7 +4670,7 @@ const es = { headlines: { error: "An error has occurred", loginEmail: "Sign in o
|
|
|
4755
4670
|
signInPasskey: "Entrar com chave de acesso",
|
|
4756
4671
|
registerAuthenticator: "Criar uma chave de acesso",
|
|
4757
4672
|
signIn: "Entrar",
|
|
4758
|
-
signUp: "
|
|
4673
|
+
signUp: "Cadastre-se aqui",
|
|
4759
4674
|
sendNewPasscode: "Enviar novo código",
|
|
4760
4675
|
passwordRetryAfter: "Tentar novamente em {passwordRetryAfter}",
|
|
4761
4676
|
passcodeResendAfter: "Solicitar novo código em {passcodeResendAfter}",
|
|
@@ -4776,7 +4691,7 @@ const es = { headlines: { error: "An error has occurred", loginEmail: "Sign in o
|
|
|
4776
4691
|
emailOrUsername: "E-mail ou nome de usuário",
|
|
4777
4692
|
username: "Nome de usuário",
|
|
4778
4693
|
optional: "opcional",
|
|
4779
|
-
dontHaveAnAccount: "Não tem uma conta?",
|
|
4694
|
+
dontHaveAnAccount: "Não tem uma conta HOT?",
|
|
4780
4695
|
alreadyHaveAnAccount: "Já tem uma conta?",
|
|
4781
4696
|
changeUsername: "Alterar nome de usuário",
|
|
4782
4697
|
setUsername: "Definir nome de usuário",
|
|
@@ -4796,60 +4711,27 @@ const es = { headlines: { error: "An error has occurred", loginEmail: "Sign in o
|
|
|
4796
4711
|
lastUsed: "Último uso",
|
|
4797
4712
|
trustDevice: "Confiar neste navegador",
|
|
4798
4713
|
staySignedIn: "Permanecer conectado"
|
|
4799
|
-
},
|
|
4800
|
-
errors: {
|
|
4801
|
-
somethingWentWrong: "Ocorreu um erro técnico. Por favor, tente novamente mais tarde.",
|
|
4802
|
-
requestTimeout: "A solicitação expirou.",
|
|
4803
|
-
invalidPassword: "E-mail ou senha incorretos.",
|
|
4804
|
-
invalidPasscode: "O código fornecido não está correto.",
|
|
4805
|
-
passcodeAttemptsReached: "O código foi inserido incorretamente muitas vezes. Por favor, solicite um novo código.",
|
|
4806
|
-
tooManyRequests: "Muitas solicitações foram feitas. Por favor, aguarde antes de repetir a operação solicitada.",
|
|
4807
|
-
unauthorized: "Sua sessão expirou. Por favor, faça login novamente.",
|
|
4808
|
-
invalidWebauthnCredential: "Esta chave de acesso não pode mais ser usada.",
|
|
4809
|
-
passcodeExpired: "O código expirou. Por favor, solicite um novo.",
|
|
4810
|
-
userVerification: "É necessária verificação do usuário. Certifique-se de que seu dispositivo de autenticação esteja protegido com um PIN ou biometria.",
|
|
4811
|
-
emailAddressAlreadyExistsError: "O endereço de e-mail já existe.",
|
|
4812
|
-
maxNumOfEmailAddressesReached: "Não é possível adicionar mais endereços de e-mail.",
|
|
4813
|
-
thirdPartyAccessDenied: "Acesso negado. A solicitação foi cancelada pelo usuário ou o provedor negou o acesso por outros motivos.",
|
|
4814
|
-
thirdPartyMultipleAccounts: "Não é possível identificar a conta. O endereço de e-mail é usado por várias contas.",
|
|
4815
|
-
thirdPartyUnverifiedEmail: "É necessária verificação de e-mail. Por favor, verifique o endereço de e-mail usado com seu provedor.",
|
|
4816
|
-
signupDisabled: "O registro de contas está desativado.",
|
|
4817
|
-
handlerNotFoundError: "A etapa atual em seu processo não é compatível com esta versão do aplicativo. Tente novamente mais tarde ou entre em contato com o suporte se o problema persistir."
|
|
4818
|
-
},
|
|
4819
|
-
flowErrors: {
|
|
4820
|
-
technical_error: "Ocorreu um erro técnico. Por favor, tente novamente mais tarde.",
|
|
4821
|
-
flow_expired_error: "A sessão expirou, clique no botão para reiniciar.",
|
|
4822
|
-
value_invalid_error: "O valor inserido não é válido.",
|
|
4823
|
-
passcode_invalid: "O código fornecido não está correto.",
|
|
4824
|
-
passkey_invalid: "Esta chave de acesso não pode mais ser usada.",
|
|
4825
|
-
passcode_max_attempts_reached: "O código foi inserido incorretamente muitas vezes. Por favor, solicite um novo código.",
|
|
4826
|
-
rate_limit_exceeded: "Muitas solicitações foram feitas. Por favor, aguarde antes de repetir a operação solicitada.",
|
|
4827
|
-
unknown_username_error: "O nome de usuário é desconhecido.",
|
|
4828
|
-
unknown_email_error: "O endereço de e-mail é desconhecido.",
|
|
4829
|
-
username_already_exists: "O nome de usuário já está em uso.",
|
|
4830
|
-
invalid_username_error: "O nome de usuário deve conter apenas letras, números e sublinhados.",
|
|
4831
|
-
email_already_exists: "O e-mail já está em uso.",
|
|
4832
|
-
not_found: "O recurso solicitado não foi encontrado.",
|
|
4833
|
-
operation_not_permitted_error: "A operação não é permitida.",
|
|
4834
|
-
flow_discontinuity_error: "O processo não pode continuar devido à configuração do usuário ou do provedor.",
|
|
4835
|
-
form_data_invalid_error: "Os dados do formulário enviados contêm erros.",
|
|
4836
|
-
unauthorized: "Sua sessão expirou. Por favor, faça login novamente.",
|
|
4837
|
-
value_missing_error: "O valor está faltando.",
|
|
4838
|
-
value_too_long_error: "O valor é muito longo.",
|
|
4839
|
-
value_too_short_error: "O valor é muito curto.",
|
|
4840
|
-
webauthn_credential_invalid_mfa_only: "Esta credencial só pode ser usada como chave de segurança de segundo fator.",
|
|
4841
|
-
webauthn_credential_already_exists: "A solicitação expirou, foi cancelada ou o dispositivo já está registrado. Tente novamente ou tente usar outro dispositivo.",
|
|
4842
|
-
platform_authenticator_required: "Sua conta está configurada para usar autenticadores de plataforma, mas seu dispositivo ou navegador atual não suporta esse recurso. Tente novamente com um dispositivo ou navegador compatível.",
|
|
4843
|
-
third_party_access_denied: "Acesso negado pelo provedor de terceiros. Por favor, tente novamente."
|
|
4844
4714
|
}
|
|
4845
4715
|
};
|
|
4846
|
-
Object.assign(
|
|
4847
|
-
Object.assign(
|
|
4848
|
-
Object.assign(
|
|
4849
|
-
|
|
4850
|
-
|
|
4716
|
+
Object.assign(bt.headlines, lo.headlines);
|
|
4717
|
+
Object.assign(bt.labels, lo.labels);
|
|
4718
|
+
Object.assign(bt.texts, lo.texts);
|
|
4719
|
+
const An = JSON.parse(JSON.stringify(ds));
|
|
4720
|
+
Object.assign(An.headlines, ho.headlines);
|
|
4721
|
+
Object.assign(An.labels, ho.labels);
|
|
4722
|
+
Object.assign(An.texts, ho.texts);
|
|
4723
|
+
const Pn = JSON.parse(JSON.stringify(bt));
|
|
4724
|
+
Object.assign(Pn.headlines, uo.headlines);
|
|
4725
|
+
Object.assign(Pn.labels, uo.labels);
|
|
4726
|
+
Object.assign(Pn.texts, uo.texts);
|
|
4727
|
+
const En = JSON.parse(JSON.stringify(bt));
|
|
4728
|
+
Object.assign(En.headlines, po.headlines);
|
|
4729
|
+
Object.assign(En.labels, po.labels);
|
|
4730
|
+
Object.assign(En.texts, po.texts);
|
|
4731
|
+
function us() {
|
|
4732
|
+
return { en: bt, es: Pn, fr: An, pt: En };
|
|
4851
4733
|
}
|
|
4852
|
-
const
|
|
4734
|
+
const zn = {
|
|
4853
4735
|
en: {
|
|
4854
4736
|
logIn: "Log in",
|
|
4855
4737
|
logOut: "Log Out",
|
|
@@ -4922,28 +4804,28 @@ const Nn = {
|
|
|
4922
4804
|
signUpSubtitle: "Acesse todas as ferramentas e serviços HOT",
|
|
4923
4805
|
loginSubtitle: "Com a sua conta HOT"
|
|
4924
4806
|
}
|
|
4925
|
-
},
|
|
4926
|
-
var
|
|
4927
|
-
for (var i = o > 1 ? void 0 : o ?
|
|
4807
|
+
}, ni = "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", oi = "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", ii = "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", ai = "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", hs = "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", ps = "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";
|
|
4808
|
+
var ms = Object.defineProperty, fs = Object.getOwnPropertyDescriptor, ae = (n, t, e, o) => {
|
|
4809
|
+
for (var i = o > 1 ? void 0 : o ? fs(t, e) : t, r = n.length - 1, s; r >= 0; r--)
|
|
4928
4810
|
(s = n[r]) && (i = (o ? s(t, e, i) : s(i)) || i);
|
|
4929
|
-
return o && i &&
|
|
4811
|
+
return o && i && ms(t, e, i), i;
|
|
4930
4812
|
};
|
|
4931
|
-
let
|
|
4932
|
-
async function
|
|
4933
|
-
if (!
|
|
4934
|
-
return
|
|
4813
|
+
let ri = !1, Nt = null;
|
|
4814
|
+
async function gs(n) {
|
|
4815
|
+
if (!ri)
|
|
4816
|
+
return Nt || (Nt = (async () => {
|
|
4935
4817
|
console.log("[hanko-auth] Pre-registering Hanko translations...");
|
|
4936
4818
|
try {
|
|
4937
|
-
await
|
|
4819
|
+
await Hi(n, {
|
|
4938
4820
|
enablePasskeys: !1,
|
|
4939
4821
|
hidePasskeyButtonOnLogin: !0,
|
|
4940
|
-
translations:
|
|
4822
|
+
translations: us(),
|
|
4941
4823
|
fallbackLanguage: "en"
|
|
4942
|
-
}),
|
|
4824
|
+
}), ri = !0, console.log("[hanko-auth] Hanko registration complete");
|
|
4943
4825
|
} catch (t) {
|
|
4944
|
-
throw console.error("[hanko-auth] Hanko registration failed:", t),
|
|
4826
|
+
throw console.error("[hanko-auth] Hanko registration failed:", t), Nt = null, t;
|
|
4945
4827
|
}
|
|
4946
|
-
})(),
|
|
4828
|
+
})(), Nt);
|
|
4947
4829
|
}
|
|
4948
4830
|
const Y = {
|
|
4949
4831
|
primary: null,
|
|
@@ -4961,8 +4843,8 @@ const Y = {
|
|
|
4961
4843
|
// Shared profile picture URL
|
|
4962
4844
|
hankoReady: !1
|
|
4963
4845
|
// used for translations
|
|
4964
|
-
},
|
|
4965
|
-
let oe = class extends
|
|
4846
|
+
}, si = (n) => `hanko-verified-${n}`, ci = (n) => `hanko-onboarding-${n}`;
|
|
4847
|
+
let oe = class extends qt {
|
|
4966
4848
|
constructor() {
|
|
4967
4849
|
super(), 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.profilePictureUrl = "", this.hasAppMapping = !1, this.userProfileLanguage = null, this.isOpen = !1, this.handleOutsideClick = (n) => {
|
|
4968
4850
|
this.contains(n.target) || this.closeDropdown();
|
|
@@ -5025,12 +4907,12 @@ let oe = class extends zt {
|
|
|
5025
4907
|
return ve`
|
|
5026
4908
|
<div class="dropdown-content ${this.isOpen ? "open" : ""}">
|
|
5027
4909
|
<button data-action="profile" @click=${this.handleDropdownSelect}>
|
|
5028
|
-
<img src="${
|
|
4910
|
+
<img src="${ni}" class="icon" alt="Account icon" />
|
|
5029
4911
|
${this.t("myHotAccount")}
|
|
5030
4912
|
</button>
|
|
5031
4913
|
${this.osmRequired ? this.osmConnected ? ve`
|
|
5032
4914
|
<button class="osm-connected" disabled>
|
|
5033
|
-
<img src="${
|
|
4915
|
+
<img src="${ai}" alt="Check icon" class="icon" />
|
|
5034
4916
|
${this.t("connectedToOsm")} (@${(n = this.osmData) == null ? void 0 : n.osm_username})
|
|
5035
4917
|
</button>
|
|
5036
4918
|
` : ve`
|
|
@@ -5038,12 +4920,12 @@ let oe = class extends zt {
|
|
|
5038
4920
|
data-action="connect-osm"
|
|
5039
4921
|
@click=${this.handleDropdownSelect}
|
|
5040
4922
|
>
|
|
5041
|
-
<img src="${
|
|
4923
|
+
<img src="${ii}" alt="Check icon" class="icon" />
|
|
5042
4924
|
${this.t("connectToOsm")}
|
|
5043
4925
|
</button>
|
|
5044
4926
|
` : ""}
|
|
5045
4927
|
<button data-action="logout" @click=${this.handleDropdownSelect}>
|
|
5046
|
-
<img src="${
|
|
4928
|
+
<img src="${oi}" alt="Log out icon" class="icon" />
|
|
5047
4929
|
${this.t("logOut")}
|
|
5048
4930
|
</button>
|
|
5049
4931
|
</div>
|
|
@@ -5109,7 +4991,7 @@ let oe = class extends zt {
|
|
|
5109
4991
|
/* Translations */
|
|
5110
4992
|
t(n) {
|
|
5111
4993
|
const t = this.user && this.userProfileLanguage ? this.userProfileLanguage : this.lang;
|
|
5112
|
-
return (
|
|
4994
|
+
return (zn[t] || zn.en)[n] || zn.en[n] || n;
|
|
5113
4995
|
}
|
|
5114
4996
|
logError(...n) {
|
|
5115
4997
|
console.error(...n);
|
|
@@ -5143,8 +5025,8 @@ let oe = class extends zt {
|
|
|
5143
5025
|
try {
|
|
5144
5026
|
this.log(
|
|
5145
5027
|
"Ensuring Hanko is registered with translations for: en, es, fr, pt"
|
|
5146
|
-
), this.log("Current lang prop:", this.lang), await
|
|
5147
|
-
const { Hanko: n } = await Promise.resolve().then(() =>
|
|
5028
|
+
), this.log("Current lang prop:", this.lang), await gs(this.hankoUrl), this.hankoReady = !0, this._broadcastState();
|
|
5029
|
+
const { Hanko: n } = await Promise.resolve().then(() => rs), t = window.location.hostname, e = t === "localhost" || t === "127.0.0.1", o = t.split("."), i = o.length >= 2 ? `.${o.slice(-2).join(".")}` : t, r = e ? {} : {
|
|
5148
5030
|
cookieDomain: i,
|
|
5149
5031
|
cookieName: "hanko",
|
|
5150
5032
|
cookieSameSite: "lax"
|
|
@@ -5227,7 +5109,7 @@ let oe = class extends zt {
|
|
|
5227
5109
|
});
|
|
5228
5110
|
}
|
|
5229
5111
|
if (this.user) {
|
|
5230
|
-
const d =
|
|
5112
|
+
const d = si(window.location.hostname), u = sessionStorage.getItem(d);
|
|
5231
5113
|
if (this.verifySession && this.redirectAfterLogin && !u) {
|
|
5232
5114
|
this.log(
|
|
5233
5115
|
"verify-session enabled, redirecting to callback for app verification..."
|
|
@@ -5309,7 +5191,7 @@ let oe = class extends zt {
|
|
|
5309
5191
|
async checkAppMapping() {
|
|
5310
5192
|
if (!this.mappingCheckUrl || !this.user)
|
|
5311
5193
|
return !0;
|
|
5312
|
-
const n =
|
|
5194
|
+
const n = ci(window.location.hostname);
|
|
5313
5195
|
if (sessionStorage.getItem(n))
|
|
5314
5196
|
return this.log("Onboarding already completed this session, skipping check"), this.hasAppMapping = !0, !0;
|
|
5315
5197
|
this.log("Checking app mapping at:", this.mappingCheckUrl);
|
|
@@ -5354,34 +5236,42 @@ let oe = class extends zt {
|
|
|
5354
5236
|
}
|
|
5355
5237
|
}
|
|
5356
5238
|
updated(n) {
|
|
5357
|
-
super.updated(n), n.has("user") && this.user === null && this.showProfile
|
|
5239
|
+
super.updated(n), (n.has("user") && this.user === null && this.showProfile || n.has("lang")) && (this._currentHankoAuthElement = null, this.setupEventListeners());
|
|
5358
5240
|
}
|
|
5359
5241
|
setupEventListeners() {
|
|
5360
5242
|
this.updateComplete.then(() => {
|
|
5361
5243
|
var t;
|
|
5362
5244
|
const n = (t = this.shadowRoot) == null ? void 0 : t.querySelector("hanko-auth");
|
|
5363
|
-
if (n && n === this._currentHankoAuthElement) {
|
|
5364
|
-
this.
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
this.log("Skipping duplicate session event");
|
|
5373
|
-
return;
|
|
5245
|
+
if (!(n && n === this._currentHankoAuthElement) && n) {
|
|
5246
|
+
this._currentHankoAuthElement = n;
|
|
5247
|
+
const e = n.shadowRoot;
|
|
5248
|
+
if (e && !e.querySelector("#hot-hanko-overrides")) {
|
|
5249
|
+
const o = document.createElement("style");
|
|
5250
|
+
o.id = "hot-hanko-overrides", o.textContent = `
|
|
5251
|
+
.hanko_lastUsed { margin-left: 8px; }
|
|
5252
|
+
.hanko_form .hanko_li { min-width: 100%; }
|
|
5253
|
+
`, e.appendChild(o);
|
|
5374
5254
|
}
|
|
5375
|
-
this.
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
5255
|
+
this._setupSignUpSubtitleObserver(n), n.addEventListener("onSessionCreated", (o) => {
|
|
5256
|
+
var r, s;
|
|
5257
|
+
this.log("Hanko event: onSessionCreated", o.detail);
|
|
5258
|
+
const i = (s = (r = o.detail) == null ? void 0 : r.claims) == null ? void 0 : s.session_id;
|
|
5259
|
+
if (i && this._lastSessionId === i) {
|
|
5260
|
+
this.log("Skipping duplicate session event");
|
|
5261
|
+
return;
|
|
5262
|
+
}
|
|
5263
|
+
this._lastSessionId = i, this.handleHankoSuccess(o);
|
|
5264
|
+
}), n.addEventListener(
|
|
5265
|
+
"hankoAuthLogout",
|
|
5266
|
+
() => this.handleLogout()
|
|
5267
|
+
);
|
|
5268
|
+
}
|
|
5380
5269
|
});
|
|
5381
5270
|
}
|
|
5271
|
+
// subtitle handling
|
|
5382
5272
|
_setupSignUpSubtitleObserver(n) {
|
|
5383
5273
|
const t = () => {
|
|
5384
|
-
var m, v, g, k,
|
|
5274
|
+
var m, v, g, k, C;
|
|
5385
5275
|
const o = n.shadowRoot;
|
|
5386
5276
|
if (!o) return;
|
|
5387
5277
|
const i = o.querySelector("h1[part='headline1']"), r = ((m = i == null ? void 0 : i.textContent) == null ? void 0 : m.trim()) ?? "", s = o.querySelector(".hot-subtitle"), d = this._signUpHeadlines.has(r), u = this._loginHeadlines.has(r);
|
|
@@ -5393,7 +5283,7 @@ let oe = class extends zt {
|
|
|
5393
5283
|
if (s && s.textContent === c || !i) return;
|
|
5394
5284
|
(k = this._hankoObserver) == null || k.disconnect(), s && s.remove();
|
|
5395
5285
|
const l = document.createElement("p");
|
|
5396
|
-
l.className = "hot-subtitle", l.textContent = c, l.style.cssText = "margin: -4px 0 16px; text-align: center; font-size: var(--hot-font-size-
|
|
5286
|
+
l.className = "hot-subtitle", l.textContent = c, l.style.cssText = "margin: -4px 0 16px; text-align: center; font-size: var(--hot-font-size-large); color: var(--hot-color-gray-600, #6b7280); font-weight: normal;", i.insertAdjacentElement("afterend", l), (C = this._hankoObserver) == null || C.observe(o, { childList: !0, subtree: !0 });
|
|
5397
5287
|
};
|
|
5398
5288
|
this._hankoObserver && this._hankoObserver.disconnect();
|
|
5399
5289
|
const e = n.shadowRoot;
|
|
@@ -5556,7 +5446,7 @@ let oe = class extends zt {
|
|
|
5556
5446
|
_clearAuthState() {
|
|
5557
5447
|
const n = window.location.hostname;
|
|
5558
5448
|
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");
|
|
5559
|
-
const t =
|
|
5449
|
+
const t = si(n), e = ci(n);
|
|
5560
5450
|
sessionStorage.removeItem(t), sessionStorage.removeItem(e), this.log("Session flags cleared"), this.user = null, this.osmConnected = !1, this.osmData = null, this.hasAppMapping = !1, this.userProfileLanguage = null, this.profilePictureUrl = "", this._isPrimary && this._broadcastState(), this.dispatchEvent(
|
|
5561
5451
|
new CustomEvent("logout", {
|
|
5562
5452
|
bubbles: !0,
|
|
@@ -5736,7 +5626,7 @@ let oe = class extends zt {
|
|
|
5736
5626
|
>
|
|
5737
5627
|
</div>
|
|
5738
5628
|
<img
|
|
5739
|
-
src="${this.isOpen ?
|
|
5629
|
+
src="${this.isOpen ? ps : hs}"
|
|
5740
5630
|
class="bar-chevron"
|
|
5741
5631
|
alt=""
|
|
5742
5632
|
/>
|
|
@@ -5784,12 +5674,12 @@ let oe = class extends zt {
|
|
|
5784
5674
|
</div>
|
|
5785
5675
|
</div>
|
|
5786
5676
|
<button data-action="profile" @click=${this.handleDropdownSelect}>
|
|
5787
|
-
<img src="${
|
|
5677
|
+
<img src="${ni}" class="icon" alt="Account icon" />
|
|
5788
5678
|
${this.t("myHotAccount")}
|
|
5789
5679
|
</button>
|
|
5790
5680
|
${this.osmRequired ? this.osmConnected ? ve`
|
|
5791
5681
|
<button class="osm-connected" disabled>
|
|
5792
|
-
<img src="${
|
|
5682
|
+
<img src="${ai}" alt="Check icon" class="icon" />
|
|
5793
5683
|
${this.t("connectedToOsm")}
|
|
5794
5684
|
(@${(e = this.osmData) == null ? void 0 : e.osm_username})
|
|
5795
5685
|
</button>
|
|
@@ -5798,12 +5688,12 @@ let oe = class extends zt {
|
|
|
5798
5688
|
data-action="connect-osm"
|
|
5799
5689
|
@click=${this.handleDropdownSelect}
|
|
5800
5690
|
>
|
|
5801
|
-
<img src="${
|
|
5691
|
+
<img src="${ii}" alt="Check icon" class="icon" />
|
|
5802
5692
|
${this.t("connectToOsm")}
|
|
5803
5693
|
</button>
|
|
5804
5694
|
` : ""}
|
|
5805
5695
|
<button data-action="logout" @click=${this.handleDropdownSelect}>
|
|
5806
|
-
<img src="${
|
|
5696
|
+
<img src="${oi}" alt="Log out icon" class="icon" />
|
|
5807
5697
|
${this.t("logOut")}
|
|
5808
5698
|
</button>
|
|
5809
5699
|
</div>
|
|
@@ -5836,7 +5726,7 @@ let oe = class extends zt {
|
|
|
5836
5726
|
--headline2-font-weight: var(--hot-font-weight-semibold);
|
|
5837
5727
|
"
|
|
5838
5728
|
>
|
|
5839
|
-
${
|
|
5729
|
+
${_a(
|
|
5840
5730
|
this.lang,
|
|
5841
5731
|
ve`<hanko-auth lang="${this.lang}" exportparts="link"></hanko-auth>`
|
|
5842
5732
|
)}
|
|
@@ -5865,7 +5755,7 @@ let oe = class extends zt {
|
|
|
5865
5755
|
}
|
|
5866
5756
|
}
|
|
5867
5757
|
};
|
|
5868
|
-
oe.styles =
|
|
5758
|
+
oe.styles = ss;
|
|
5869
5759
|
ae([
|
|
5870
5760
|
Pe({ type: String, attribute: "hanko-url" })
|
|
5871
5761
|
], oe.prototype, "hankoUrlAttr", 2);
|
|
@@ -5921,45 +5811,45 @@ ae([
|
|
|
5921
5811
|
Pe({ type: String, reflect: !0 })
|
|
5922
5812
|
], oe.prototype, "display", 2);
|
|
5923
5813
|
ae([
|
|
5924
|
-
|
|
5814
|
+
je()
|
|
5925
5815
|
], oe.prototype, "user", 2);
|
|
5926
5816
|
ae([
|
|
5927
|
-
|
|
5817
|
+
je()
|
|
5928
5818
|
], oe.prototype, "osmConnected", 2);
|
|
5929
5819
|
ae([
|
|
5930
|
-
|
|
5820
|
+
je()
|
|
5931
5821
|
], oe.prototype, "osmData", 2);
|
|
5932
5822
|
ae([
|
|
5933
|
-
|
|
5823
|
+
je()
|
|
5934
5824
|
], oe.prototype, "osmLoading", 2);
|
|
5935
5825
|
ae([
|
|
5936
|
-
|
|
5826
|
+
je()
|
|
5937
5827
|
], oe.prototype, "loading", 2);
|
|
5938
5828
|
ae([
|
|
5939
|
-
|
|
5829
|
+
je()
|
|
5940
5830
|
], oe.prototype, "error", 2);
|
|
5941
5831
|
ae([
|
|
5942
|
-
|
|
5832
|
+
je()
|
|
5943
5833
|
], oe.prototype, "hankoReady", 2);
|
|
5944
5834
|
ae([
|
|
5945
|
-
|
|
5835
|
+
je()
|
|
5946
5836
|
], oe.prototype, "profileDisplayName", 2);
|
|
5947
5837
|
ae([
|
|
5948
|
-
|
|
5838
|
+
je()
|
|
5949
5839
|
], oe.prototype, "profilePictureUrl", 2);
|
|
5950
5840
|
ae([
|
|
5951
|
-
|
|
5841
|
+
je()
|
|
5952
5842
|
], oe.prototype, "hasAppMapping", 2);
|
|
5953
5843
|
ae([
|
|
5954
|
-
|
|
5844
|
+
je()
|
|
5955
5845
|
], oe.prototype, "userProfileLanguage", 2);
|
|
5956
5846
|
ae([
|
|
5957
|
-
|
|
5847
|
+
je()
|
|
5958
5848
|
], oe.prototype, "isOpen", 2);
|
|
5959
5849
|
oe = ae([
|
|
5960
|
-
|
|
5850
|
+
ua("hotosm-auth")
|
|
5961
5851
|
], oe);
|
|
5962
5852
|
export {
|
|
5963
5853
|
oe as HankoAuth,
|
|
5964
|
-
|
|
5854
|
+
us as getTranslations
|
|
5965
5855
|
};
|