@hotosm/hanko-auth 0.4.10 → 0.5.0

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.
@@ -296,8 +296,8 @@ const ir = (n, e) => {
296
296
  let i, r = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", s = _t;
297
297
  for (let c = 0; c < t; c++) {
298
298
  const d = n[c];
299
- let l, u, h = -1, g = 0;
300
- for (; g < d.length && (s.lastIndex = g, u = s.exec(d), u !== null); ) g = s.lastIndex, s === _t ? u[1] === "!--" ? s = Eo : u[1] !== void 0 ? s = Io : u[2] !== void 0 ? (mi.test(u[2]) && (i = RegExp("</" + u[2], "g")), s = ct) : u[3] !== void 0 && (s = ct) : s === ct ? u[0] === ">" ? (s = i ?? _t, h = -1) : u[1] === void 0 ? h = -2 : (h = s.lastIndex - u[2].length, l = u[1], s = u[3] === void 0 ? ct : u[3] === '"' ? jo : Do) : s === jo || s === Do ? s = ct : s === Eo || s === Io ? s = _t : (s = ct, i = void 0);
299
+ let l, u, h = -1, f = 0;
300
+ for (; f < d.length && (s.lastIndex = f, u = s.exec(d), u !== null); ) f = s.lastIndex, s === _t ? u[1] === "!--" ? s = Eo : u[1] !== void 0 ? s = Io : u[2] !== void 0 ? (mi.test(u[2]) && (i = RegExp("</" + u[2], "g")), s = ct) : u[3] !== void 0 && (s = ct) : s === ct ? u[0] === ">" ? (s = i ?? _t, h = -1) : u[1] === void 0 ? h = -2 : (h = s.lastIndex - u[2].length, l = u[1], s = u[3] === void 0 ? ct : u[3] === '"' ? jo : Do) : s === jo || s === Do ? s = ct : s === Eo || s === Io ? s = _t : (s = ct, i = void 0);
301
301
  const m = s === ct && n[c + 1].startsWith("/>") ? " " : "";
302
302
  r += s === _t ? d + tr : h >= 0 ? (o.push(l), d.slice(0, h) + hi + d.slice(h) + at + m) : d + at + (h === -2 ? c : m);
303
303
  }
@@ -316,15 +316,15 @@ let Bn = class gi {
316
316
  for (; (i = dt.nextNode()) !== null && d.length < c; ) {
317
317
  if (i.nodeType === 1) {
318
318
  if (i.hasAttributes()) for (const h of i.getAttributeNames()) if (h.endsWith(hi)) {
319
- const g = u[s++], m = i.getAttribute(h).split(at), x = /([.?@])?(.*)/.exec(g);
319
+ const f = u[s++], m = i.getAttribute(h).split(at), x = /([.?@])?(.*)/.exec(f);
320
320
  d.push({ type: 1, index: r, name: x[2], strings: m, ctor: x[1] === "." ? ar : x[1] === "?" ? sr : x[1] === "@" ? lr : kn }), i.removeAttribute(h);
321
321
  } else h.startsWith(at) && (d.push({ type: 6, index: r }), i.removeAttribute(h));
322
322
  if (mi.test(i.tagName)) {
323
- const h = i.textContent.split(at), g = h.length - 1;
324
- if (g > 0) {
323
+ const h = i.textContent.split(at), f = h.length - 1;
324
+ if (f > 0) {
325
325
  i.textContent = vn ? vn.emptyScript : "";
326
- for (let m = 0; m < g; m++) i.append(h[m], Rt()), dt.nextNode(), d.push({ type: 2, index: ++r });
327
- i.append(h[g], Rt());
326
+ for (let m = 0; m < f; m++) i.append(h[m], Rt()), dt.nextNode(), d.push({ type: 2, index: ++r });
327
+ i.append(h[f], Rt());
328
328
  }
329
329
  }
330
330
  } else if (i.nodeType === 8) if (i.data === pi) d.push({ type: 2, index: r });
@@ -685,10 +685,10 @@ var _r = { 7: function(n, e, t) {
685
685
  } while (O.length);
686
686
  return S;
687
687
  }
688
- var h = {}, g = { root: "", lang: "en", fallbackLang: "en" }, m = i.createContext(null);
688
+ var h = {}, f = { root: "", lang: "en", fallbackLang: "en" }, m = i.createContext(null);
689
689
  o.TranslateContext = m, o.TranslateProvider = function(x) {
690
690
  var P = function(U, N) {
691
- U = Object.assign({}, g, U), h = N || h;
691
+ U = Object.assign({}, f, U), h = N || h;
692
692
  var ae = c(r.useState(U.lang), 2), ke = ae[0], se = ae[1], Se = c(r.useState(h), 2), M = Se[0], H = Se[1], ye = c(r.useState(!1), 2), Ue = ye[0], Ie = ye[1], Ne = function(le) {
693
693
  if (!M.hasOwnProperty(le)) {
694
694
  Ie(!1);
@@ -809,8 +809,8 @@ var _r = { 7: function(n, e, t) {
809
809
  u != null && (d[u] = !0);
810
810
  }
811
811
  for (var h = 0; h < o.length; h++) {
812
- var g = [].concat(o[h]);
813
- r && d[g[0]] || (c !== void 0 && (g[5] === void 0 || (g[1] = "@layer".concat(g[5].length > 0 ? " ".concat(g[5]) : "", " {").concat(g[1], "}")), g[5] = c), i && (g[2] && (g[1] = "@media ".concat(g[2], " {").concat(g[1], "}")), g[2] = i), s && (g[4] ? (g[1] = "@supports (".concat(g[4], ") {").concat(g[1], "}"), g[4] = s) : g[4] = "".concat(s)), t.push(g));
812
+ var f = [].concat(o[h]);
813
+ r && d[f[0]] || (c !== void 0 && (f[5] === void 0 || (f[1] = "@layer".concat(f[5].length > 0 ? " ".concat(f[5]) : "", " {").concat(f[1], "}")), f[5] = c), i && (f[2] && (f[1] = "@media ".concat(f[2], " {").concat(f[1], "}")), f[2] = i), s && (f[4] ? (f[1] = "@supports (".concat(f[4], ") {").concat(f[1], "}"), f[4] = s) : f[4] = "".concat(s)), t.push(f));
814
814
  }
815
815
  }, t;
816
816
  };
@@ -820,58 +820,58 @@ var _r = { 7: function(n, e, t) {
820
820
  };
821
821
  }, 616: (n, e, t) => {
822
822
  t.r(e), t.d(e, { Component: () => N, Fragment: () => U, cloneElement: () => We, createContext: () => Fe, createElement: () => S, createRef: () => j, h: () => S, hydrate: () => He, isValidElement: () => s, options: () => i, render: () => fe, toChildArray: () => ye });
823
- var o, i, r, s, c, d, l, u, h, g = {}, m = [], x = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
824
- function P(f, v) {
825
- for (var b in v) f[b] = v[b];
826
- return f;
823
+ var o, i, r, s, c, d, l, u, h, f = {}, m = [], x = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;
824
+ function P(g, v) {
825
+ for (var b in v) g[b] = v[b];
826
+ return g;
827
827
  }
828
- function A(f) {
829
- var v = f.parentNode;
830
- v && v.removeChild(f);
828
+ function A(g) {
829
+ var v = g.parentNode;
830
+ v && v.removeChild(g);
831
831
  }
832
- function S(f, v, b) {
832
+ function S(g, v, b) {
833
833
  var D, T, I, z = {};
834
834
  for (I in v) I == "key" ? D = v[I] : I == "ref" ? T = v[I] : z[I] = v[I];
835
- if (arguments.length > 2 && (z.children = arguments.length > 3 ? o.call(arguments, 2) : b), typeof f == "function" && f.defaultProps != null) for (I in f.defaultProps) z[I] === void 0 && (z[I] = f.defaultProps[I]);
836
- return O(f, z, D, T, null);
835
+ if (arguments.length > 2 && (z.children = arguments.length > 3 ? o.call(arguments, 2) : b), typeof g == "function" && g.defaultProps != null) for (I in g.defaultProps) z[I] === void 0 && (z[I] = g.defaultProps[I]);
836
+ return O(g, z, D, T, null);
837
837
  }
838
- function O(f, v, b, D, T) {
839
- var I = { type: f, props: v, key: b, ref: D, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: T ?? ++r };
838
+ function O(g, v, b, D, T) {
839
+ var I = { type: g, props: v, key: b, ref: D, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: T ?? ++r };
840
840
  return T == null && i.vnode != null && i.vnode(I), I;
841
841
  }
842
842
  function j() {
843
843
  return { current: null };
844
844
  }
845
- function U(f) {
846
- return f.children;
845
+ function U(g) {
846
+ return g.children;
847
847
  }
848
- function N(f, v) {
849
- this.props = f, this.context = v;
848
+ function N(g, v) {
849
+ this.props = g, this.context = v;
850
850
  }
851
- function ae(f, v) {
852
- if (v == null) return f.__ ? ae(f.__, f.__.__k.indexOf(f) + 1) : null;
853
- for (var b; v < f.__k.length; v++) if ((b = f.__k[v]) != null && b.__e != null) return b.__e;
854
- return typeof f.type == "function" ? ae(f) : null;
851
+ function ae(g, v) {
852
+ if (v == null) return g.__ ? ae(g.__, g.__.__k.indexOf(g) + 1) : null;
853
+ for (var b; v < g.__k.length; v++) if ((b = g.__k[v]) != null && b.__e != null) return b.__e;
854
+ return typeof g.type == "function" ? ae(g) : null;
855
855
  }
856
- function ke(f) {
856
+ function ke(g) {
857
857
  var v, b;
858
- if ((f = f.__) != null && f.__c != null) {
859
- for (f.__e = f.__c.base = null, v = 0; v < f.__k.length; v++) if ((b = f.__k[v]) != null && b.__e != null) {
860
- f.__e = f.__c.base = b.__e;
858
+ if ((g = g.__) != null && g.__c != null) {
859
+ for (g.__e = g.__c.base = null, v = 0; v < g.__k.length; v++) if ((b = g.__k[v]) != null && b.__e != null) {
860
+ g.__e = g.__c.base = b.__e;
861
861
  break;
862
862
  }
863
- return ke(f);
863
+ return ke(g);
864
864
  }
865
865
  }
866
- function se(f) {
867
- (!f.__d && (f.__d = !0) && c.push(f) && !Se.__r++ || d !== i.debounceRendering) && ((d = i.debounceRendering) || l)(Se);
866
+ function se(g) {
867
+ (!g.__d && (g.__d = !0) && c.push(g) && !Se.__r++ || d !== i.debounceRendering) && ((d = i.debounceRendering) || l)(Se);
868
868
  }
869
869
  function Se() {
870
- var f, v, b, D, T, I, z, ee;
871
- for (c.sort(u); f = c.shift(); ) f.__d && (v = c.length, D = void 0, T = void 0, z = (I = (b = f).__v).__e, (ee = b.__P) && (D = [], (T = P({}, I)).__v = I.__v + 1, De(ee, I, T, b.__n, ee.ownerSVGElement !== void 0, I.__h != null ? [z] : null, D, z ?? ae(I), I.__h), k(D, I), I.__e != z && ke(I)), c.length > v && c.sort(u));
870
+ var g, v, b, D, T, I, z, ee;
871
+ for (c.sort(u); g = c.shift(); ) g.__d && (v = c.length, D = void 0, T = void 0, z = (I = (b = g).__v).__e, (ee = b.__P) && (D = [], (T = P({}, I)).__v = I.__v + 1, De(ee, I, T, b.__n, ee.ownerSVGElement !== void 0, I.__h != null ? [z] : null, D, z ?? ae(I), I.__h), k(D, I), I.__e != z && ke(I)), c.length > v && c.sort(u));
872
872
  Se.__r = 0;
873
873
  }
874
- function M(f, v, b, D, T, I, z, ee, G, be) {
874
+ function M(g, v, b, D, T, I, z, ee, G, be) {
875
875
  var w, we, J, R, E, xe, V, F = D && D.__k || m, qe = F.length;
876
876
  for (b.__k = [], w = 0; w < v.length; w++) if ((R = b.__k[w] = (R = v[w]) == null || typeof R == "boolean" || typeof R == "function" ? null : typeof R == "string" || typeof R == "number" || typeof R == "bigint" ? O(null, R, null, null, R) : Array.isArray(R) ? O(U, { children: R }, null, null, null) : R.__b > 0 ? O(R.type, R.props, R.key, R.ref ? R.ref : null, R.__v) : R) != null) {
877
877
  if (R.__ = b, R.__b = b.__b + 1, (J = F[w]) === null || J && R.key == J.key && R.type === J.type) F[w] = void 0;
@@ -882,66 +882,66 @@ var _r = { 7: function(n, e, t) {
882
882
  }
883
883
  J = null;
884
884
  }
885
- De(f, R, J = J || g, T, I, z, ee, G, be), E = R.__e, (we = R.ref) && J.ref != we && (V || (V = []), J.ref && V.push(J.ref, null, R), V.push(we, R.__c || E, R)), E != null ? (xe == null && (xe = E), typeof R.type == "function" && R.__k === J.__k ? R.__d = G = H(R, G, f) : G = Ue(f, R, J, F, E, G), typeof b.type == "function" && (b.__d = G)) : G && J.__e == G && G.parentNode != f && (G = ae(J));
885
+ De(g, R, J = J || f, T, I, z, ee, G, be), E = R.__e, (we = R.ref) && J.ref != we && (V || (V = []), J.ref && V.push(J.ref, null, R), V.push(we, R.__c || E, R)), E != null ? (xe == null && (xe = E), typeof R.type == "function" && R.__k === J.__k ? R.__d = G = H(R, G, g) : G = Ue(g, R, J, F, E, G), typeof b.type == "function" && (b.__d = G)) : G && J.__e == G && G.parentNode != g && (G = ae(J));
886
886
  }
887
887
  for (b.__e = xe, w = qe; w--; ) F[w] != null && (typeof b.type == "function" && F[w].__e != null && F[w].__e == b.__d && (b.__d = Ie(D).nextSibling), L(F[w], F[w]));
888
888
  if (V) for (w = 0; w < V.length; w++) _(V[w], V[++w], V[++w]);
889
889
  }
890
- function H(f, v, b) {
891
- for (var D, T = f.__k, I = 0; T && I < T.length; I++) (D = T[I]) && (D.__ = f, v = typeof D.type == "function" ? H(D, v, b) : Ue(b, D, D, T, D.__e, v));
890
+ function H(g, v, b) {
891
+ for (var D, T = g.__k, I = 0; T && I < T.length; I++) (D = T[I]) && (D.__ = g, v = typeof D.type == "function" ? H(D, v, b) : Ue(b, D, D, T, D.__e, v));
892
892
  return v;
893
893
  }
894
- function ye(f, v) {
895
- return v = v || [], f == null || typeof f == "boolean" || (Array.isArray(f) ? f.some(function(b) {
894
+ function ye(g, v) {
895
+ return v = v || [], g == null || typeof g == "boolean" || (Array.isArray(g) ? g.some(function(b) {
896
896
  ye(b, v);
897
- }) : v.push(f)), v;
897
+ }) : v.push(g)), v;
898
898
  }
899
- function Ue(f, v, b, D, T, I) {
899
+ function Ue(g, v, b, D, T, I) {
900
900
  var z, ee, G;
901
901
  if (v.__d !== void 0) z = v.__d, v.__d = void 0;
902
- else if (b == null || T != I || T.parentNode == null) e: if (I == null || I.parentNode !== f) f.appendChild(T), z = null;
902
+ else if (b == null || T != I || T.parentNode == null) e: if (I == null || I.parentNode !== g) g.appendChild(T), z = null;
903
903
  else {
904
904
  for (ee = I, G = 0; (ee = ee.nextSibling) && G < D.length; G += 1) if (ee == T) break e;
905
- f.insertBefore(T, I), z = I;
905
+ g.insertBefore(T, I), z = I;
906
906
  }
907
907
  return z !== void 0 ? z : T.nextSibling;
908
908
  }
909
- function Ie(f) {
909
+ function Ie(g) {
910
910
  var v, b, D;
911
- if (f.type == null || typeof f.type == "string") return f.__e;
912
- if (f.__k) {
913
- for (v = f.__k.length - 1; v >= 0; v--) if ((b = f.__k[v]) && (D = Ie(b))) return D;
911
+ if (g.type == null || typeof g.type == "string") return g.__e;
912
+ if (g.__k) {
913
+ for (v = g.__k.length - 1; v >= 0; v--) if ((b = g.__k[v]) && (D = Ie(b))) return D;
914
914
  }
915
915
  return null;
916
916
  }
917
- function Ne(f, v, b) {
918
- v[0] === "-" ? f.setProperty(v, b ?? "") : f[v] = b == null ? "" : typeof b != "number" || x.test(v) ? b : b + "px";
917
+ function Ne(g, v, b) {
918
+ v[0] === "-" ? g.setProperty(v, b ?? "") : g[v] = b == null ? "" : typeof b != "number" || x.test(v) ? b : b + "px";
919
919
  }
920
- function le(f, v, b, D, T) {
920
+ function le(g, v, b, D, T) {
921
921
  var I;
922
- e: if (v === "style") if (typeof b == "string") f.style.cssText = b;
922
+ e: if (v === "style") if (typeof b == "string") g.style.cssText = b;
923
923
  else {
924
- if (typeof D == "string" && (f.style.cssText = D = ""), D) for (v in D) b && v in b || Ne(f.style, v, "");
925
- if (b) for (v in b) D && b[v] === D[v] || Ne(f.style, v, b[v]);
924
+ if (typeof D == "string" && (g.style.cssText = D = ""), D) for (v in D) b && v in b || Ne(g.style, v, "");
925
+ if (b) for (v in b) D && b[v] === D[v] || Ne(g.style, v, b[v]);
926
926
  }
927
- else if (v[0] === "o" && v[1] === "n") I = v !== (v = v.replace(/Capture$/, "")), v = v.toLowerCase() in f ? v.toLowerCase().slice(2) : v.slice(2), f.l || (f.l = {}), f.l[v + I] = b, b ? D || f.addEventListener(v, I ? me : ce, I) : f.removeEventListener(v, I ? me : ce, I);
927
+ else if (v[0] === "o" && v[1] === "n") I = v !== (v = v.replace(/Capture$/, "")), v = v.toLowerCase() in g ? v.toLowerCase().slice(2) : v.slice(2), g.l || (g.l = {}), g.l[v + I] = b, b ? D || g.addEventListener(v, I ? me : ce, I) : g.removeEventListener(v, I ? me : ce, I);
928
928
  else if (v !== "dangerouslySetInnerHTML") {
929
929
  if (T) v = v.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
930
- else if (v !== "width" && v !== "height" && v !== "href" && v !== "list" && v !== "form" && v !== "tabIndex" && v !== "download" && v in f) try {
931
- f[v] = b ?? "";
930
+ else if (v !== "width" && v !== "height" && v !== "href" && v !== "list" && v !== "form" && v !== "tabIndex" && v !== "download" && v in g) try {
931
+ g[v] = b ?? "";
932
932
  break e;
933
933
  } catch {
934
934
  }
935
- typeof b == "function" || (b == null || b === !1 && v.indexOf("-") == -1 ? f.removeAttribute(v) : f.setAttribute(v, b));
935
+ typeof b == "function" || (b == null || b === !1 && v.indexOf("-") == -1 ? g.removeAttribute(v) : g.setAttribute(v, b));
936
936
  }
937
937
  }
938
- function ce(f) {
939
- return this.l[f.type + !1](i.event ? i.event(f) : f);
938
+ function ce(g) {
939
+ return this.l[g.type + !1](i.event ? i.event(g) : g);
940
940
  }
941
- function me(f) {
942
- return this.l[f.type + !0](i.event ? i.event(f) : f);
941
+ function me(g) {
942
+ return this.l[g.type + !0](i.event ? i.event(g) : g);
943
943
  }
944
- function De(f, v, b, D, T, I, z, ee, G) {
944
+ function De(g, v, b, D, T, I, z, ee, G) {
945
945
  var be, w, we, J, R, E, xe, V, F, qe, it, ge, Vt, rt, q, B = v.type;
946
946
  if (v.constructor !== void 0) return null;
947
947
  b.__h != null && (G = b.__h, ee = v.__e = b.__e, v.__h = null, I = [ee]), (be = i.__b) && be(v);
@@ -960,23 +960,23 @@ var _r = { 7: function(n, e, t) {
960
960
  w.componentDidUpdate(J, R, E);
961
961
  });
962
962
  }
963
- if (w.context = qe, w.props = V, w.__P = f, ge = i.__r, Vt = 0, "prototype" in B && B.prototype.render) {
963
+ if (w.context = qe, w.props = V, w.__P = g, ge = i.__r, Vt = 0, "prototype" in B && B.prototype.render) {
964
964
  for (w.state = w.__s, w.__d = !1, ge && ge(v), be = w.render(w.props, w.state, w.context), rt = 0; rt < w._sb.length; rt++) w.__h.push(w._sb[rt]);
965
965
  w._sb = [];
966
966
  } else do
967
967
  w.__d = !1, ge && ge(v), be = w.render(w.props, w.state, w.context), w.state = w.__s;
968
968
  while (w.__d && ++Vt < 25);
969
- w.state = w.__s, w.getChildContext != null && (D = P(P({}, D), w.getChildContext())), we || w.getSnapshotBeforeUpdate == null || (E = w.getSnapshotBeforeUpdate(J, R)), q = be != null && be.type === U && be.key == null ? be.props.children : be, M(f, Array.isArray(q) ? q : [q], v, b, D, T, I, z, ee, G), w.base = v.__e, v.__h = null, w.__h.length && z.push(w), xe && (w.__E = w.__ = null), w.__e = !1;
969
+ w.state = w.__s, w.getChildContext != null && (D = P(P({}, D), w.getChildContext())), we || w.getSnapshotBeforeUpdate == null || (E = w.getSnapshotBeforeUpdate(J, R)), q = be != null && be.type === U && be.key == null ? be.props.children : be, M(g, Array.isArray(q) ? q : [q], v, b, D, T, I, z, ee, G), w.base = v.__e, v.__h = null, w.__h.length && z.push(w), xe && (w.__E = w.__ = null), w.__e = !1;
970
970
  } else I == null && v.__v === b.__v ? (v.__k = b.__k, v.__e = b.__e) : v.__e = p(b.__e, v, b, D, T, I, z, G);
971
971
  (be = i.diffed) && be(v);
972
972
  } catch (Qe) {
973
973
  v.__v = null, (G || I != null) && (v.__e = ee, v.__h = !!G, I[I.indexOf(ee)] = null), i.__e(Qe, v, b);
974
974
  }
975
975
  }
976
- function k(f, v) {
977
- i.__c && i.__c(v, f), f.some(function(b) {
976
+ function k(g, v) {
977
+ i.__c && i.__c(v, g), g.some(function(b) {
978
978
  try {
979
- f = b.__h, b.__h = [], f.some(function(D) {
979
+ g = b.__h, b.__h = [], g.some(function(D) {
980
980
  D.call(b);
981
981
  });
982
982
  } catch (D) {
@@ -984,71 +984,71 @@ var _r = { 7: function(n, e, t) {
984
984
  }
985
985
  });
986
986
  }
987
- function p(f, v, b, D, T, I, z, ee) {
987
+ function p(g, v, b, D, T, I, z, ee) {
988
988
  var G, be, w, we = b.props, J = v.props, R = v.type, E = 0;
989
989
  if (R === "svg" && (T = !0), I != null) {
990
990
  for (; E < I.length; E++) if ((G = I[E]) && "setAttribute" in G == !!R && (R ? G.localName === R : G.nodeType === 3)) {
991
- f = G, I[E] = null;
991
+ g = G, I[E] = null;
992
992
  break;
993
993
  }
994
994
  }
995
- if (f == null) {
995
+ if (g == null) {
996
996
  if (R === null) return document.createTextNode(J);
997
- f = T ? document.createElementNS("http://www.w3.org/2000/svg", R) : document.createElement(R, J.is && J), I = null, ee = !1;
997
+ g = T ? document.createElementNS("http://www.w3.org/2000/svg", R) : document.createElement(R, J.is && J), I = null, ee = !1;
998
998
  }
999
- if (R === null) we === J || ee && f.data === J || (f.data = J);
999
+ if (R === null) we === J || ee && g.data === J || (g.data = J);
1000
1000
  else {
1001
- if (I = I && o.call(f.childNodes), be = (we = b.props || g).dangerouslySetInnerHTML, w = J.dangerouslySetInnerHTML, !ee) {
1002
- if (I != null) for (we = {}, E = 0; E < f.attributes.length; E++) we[f.attributes[E].name] = f.attributes[E].value;
1003
- (w || be) && (w && (be && w.__html == be.__html || w.__html === f.innerHTML) || (f.innerHTML = w && w.__html || ""));
1001
+ if (I = I && o.call(g.childNodes), be = (we = b.props || f).dangerouslySetInnerHTML, w = J.dangerouslySetInnerHTML, !ee) {
1002
+ if (I != null) for (we = {}, E = 0; E < g.attributes.length; E++) we[g.attributes[E].name] = g.attributes[E].value;
1003
+ (w || be) && (w && (be && w.__html == be.__html || w.__html === g.innerHTML) || (g.innerHTML = w && w.__html || ""));
1004
1004
  }
1005
1005
  if (function(xe, V, F, qe, it) {
1006
1006
  var ge;
1007
1007
  for (ge in F) ge === "children" || ge === "key" || ge in V || le(xe, ge, null, F[ge], qe);
1008
1008
  for (ge in V) it && typeof V[ge] != "function" || ge === "children" || ge === "key" || ge === "value" || ge === "checked" || F[ge] === V[ge] || le(xe, ge, V[ge], F[ge], qe);
1009
- }(f, J, we, T, ee), w) v.__k = [];
1010
- else if (E = v.props.children, M(f, Array.isArray(E) ? E : [E], v, b, D, T && R !== "foreignObject", I, z, I ? I[0] : b.__k && ae(b, 0), ee), I != null) for (E = I.length; E--; ) I[E] != null && A(I[E]);
1011
- ee || ("value" in J && (E = J.value) !== void 0 && (E !== f.value || R === "progress" && !E || R === "option" && E !== we.value) && le(f, "value", E, we.value, !1), "checked" in J && (E = J.checked) !== void 0 && E !== f.checked && le(f, "checked", E, we.checked, !1));
1009
+ }(g, J, we, T, ee), w) v.__k = [];
1010
+ else if (E = v.props.children, M(g, Array.isArray(E) ? E : [E], v, b, D, T && R !== "foreignObject", I, z, I ? I[0] : b.__k && ae(b, 0), ee), I != null) for (E = I.length; E--; ) I[E] != null && A(I[E]);
1011
+ ee || ("value" in J && (E = J.value) !== void 0 && (E !== g.value || R === "progress" && !E || R === "option" && E !== we.value) && le(g, "value", E, we.value, !1), "checked" in J && (E = J.checked) !== void 0 && E !== g.checked && le(g, "checked", E, we.checked, !1));
1012
1012
  }
1013
- return f;
1013
+ return g;
1014
1014
  }
1015
- function _(f, v, b) {
1015
+ function _(g, v, b) {
1016
1016
  try {
1017
- typeof f == "function" ? f(v) : f.current = v;
1017
+ typeof g == "function" ? g(v) : g.current = v;
1018
1018
  } catch (D) {
1019
1019
  i.__e(D, b);
1020
1020
  }
1021
1021
  }
1022
- function L(f, v, b) {
1022
+ function L(g, v, b) {
1023
1023
  var D, T;
1024
- if (i.unmount && i.unmount(f), (D = f.ref) && (D.current && D.current !== f.__e || _(D, null, v)), (D = f.__c) != null) {
1024
+ if (i.unmount && i.unmount(g), (D = g.ref) && (D.current && D.current !== g.__e || _(D, null, v)), (D = g.__c) != null) {
1025
1025
  if (D.componentWillUnmount) try {
1026
1026
  D.componentWillUnmount();
1027
1027
  } catch (I) {
1028
1028
  i.__e(I, v);
1029
1029
  }
1030
- D.base = D.__P = null, f.__c = void 0;
1030
+ D.base = D.__P = null, g.__c = void 0;
1031
1031
  }
1032
- if (D = f.__k) for (T = 0; T < D.length; T++) D[T] && L(D[T], v, b || typeof f.type != "function");
1033
- b || f.__e == null || A(f.__e), f.__ = f.__e = f.__d = void 0;
1032
+ if (D = g.__k) for (T = 0; T < D.length; T++) D[T] && L(D[T], v, b || typeof g.type != "function");
1033
+ b || g.__e == null || A(g.__e), g.__ = g.__e = g.__d = void 0;
1034
1034
  }
1035
- function K(f, v, b) {
1036
- return this.constructor(f, b);
1035
+ function K(g, v, b) {
1036
+ return this.constructor(g, b);
1037
1037
  }
1038
- function fe(f, v, b) {
1038
+ function fe(g, v, b) {
1039
1039
  var D, T, I;
1040
- i.__ && i.__(f, v), T = (D = typeof b == "function") ? null : b && b.__k || v.__k, I = [], De(v, f = (!D && b || v).__k = S(U, null, [f]), T || g, g, v.ownerSVGElement !== void 0, !D && b ? [b] : T ? null : v.firstChild ? o.call(v.childNodes) : null, I, !D && b ? b : T ? T.__e : v.firstChild, D), k(I, f);
1040
+ i.__ && i.__(g, v), T = (D = typeof b == "function") ? null : b && b.__k || v.__k, I = [], De(v, g = (!D && b || v).__k = S(U, null, [g]), T || f, f, v.ownerSVGElement !== void 0, !D && b ? [b] : T ? null : v.firstChild ? o.call(v.childNodes) : null, I, !D && b ? b : T ? T.__e : v.firstChild, D), k(I, g);
1041
1041
  }
1042
- function He(f, v) {
1043
- fe(f, v, He);
1042
+ function He(g, v) {
1043
+ fe(g, v, He);
1044
1044
  }
1045
- function We(f, v, b) {
1046
- var D, T, I, z = P({}, f.props);
1045
+ function We(g, v, b) {
1046
+ var D, T, I, z = P({}, g.props);
1047
1047
  for (I in v) I == "key" ? D = v[I] : I == "ref" ? T = v[I] : z[I] = v[I];
1048
- return arguments.length > 2 && (z.children = arguments.length > 3 ? o.call(arguments, 2) : b), O(f.type, z, D || f.key, T || f.ref, null);
1048
+ return arguments.length > 2 && (z.children = arguments.length > 3 ? o.call(arguments, 2) : b), O(g.type, z, D || g.key, T || g.ref, null);
1049
1049
  }
1050
- function Fe(f, v) {
1051
- var b = { __c: v = "__cC" + h++, __: f, Consumer: function(D, T) {
1050
+ function Fe(g, v) {
1051
+ var b = { __c: v = "__cC" + h++, __: g, Consumer: function(D, T) {
1052
1052
  return D.children(T);
1053
1053
  }, Provider: function(D) {
1054
1054
  var T, I;
@@ -1068,26 +1068,26 @@ var _r = { 7: function(n, e, t) {
1068
1068
  } };
1069
1069
  return b.Provider.__ = b.Consumer.contextType = b;
1070
1070
  }
1071
- o = m.slice, i = { __e: function(f, v, b, D) {
1071
+ o = m.slice, i = { __e: function(g, v, b, D) {
1072
1072
  for (var T, I, z; v = v.__; ) if ((T = v.__c) && !T.__) try {
1073
- if ((I = T.constructor) && I.getDerivedStateFromError != null && (T.setState(I.getDerivedStateFromError(f)), z = T.__d), T.componentDidCatch != null && (T.componentDidCatch(f, D || {}), z = T.__d), z) return T.__E = T;
1073
+ if ((I = T.constructor) && I.getDerivedStateFromError != null && (T.setState(I.getDerivedStateFromError(g)), z = T.__d), T.componentDidCatch != null && (T.componentDidCatch(g, D || {}), z = T.__d), z) return T.__E = T;
1074
1074
  } catch (ee) {
1075
- f = ee;
1075
+ g = ee;
1076
1076
  }
1077
- throw f;
1078
- } }, r = 0, s = function(f) {
1079
- return f != null && f.constructor === void 0;
1080
- }, N.prototype.setState = function(f, v) {
1077
+ throw g;
1078
+ } }, r = 0, s = function(g) {
1079
+ return g != null && g.constructor === void 0;
1080
+ }, N.prototype.setState = function(g, v) {
1081
1081
  var b;
1082
- b = this.__s != null && this.__s !== this.state ? this.__s : this.__s = P({}, this.state), typeof f == "function" && (f = f(P({}, b), this.props)), f && P(b, f), f != null && this.__v && (v && this._sb.push(v), se(this));
1083
- }, N.prototype.forceUpdate = function(f) {
1084
- this.__v && (this.__e = !0, f && this.__h.push(f), se(this));
1085
- }, N.prototype.render = U, c = [], l = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, u = function(f, v) {
1086
- return f.__v.__b - v.__v.__b;
1082
+ b = this.__s != null && this.__s !== this.state ? this.__s : this.__s = P({}, this.state), typeof g == "function" && (g = g(P({}, b), this.props)), g && P(b, g), g != null && this.__v && (v && this._sb.push(v), se(this));
1083
+ }, N.prototype.forceUpdate = function(g) {
1084
+ this.__v && (this.__e = !0, g && this.__h.push(g), se(this));
1085
+ }, N.prototype.render = U, c = [], l = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, u = function(g, v) {
1086
+ return g.__v.__b - v.__v.__b;
1087
1087
  }, Se.__r = 0, h = 0;
1088
1088
  }, 78: (n, e, t) => {
1089
1089
  t.r(e), t.d(e, { useCallback: () => se, useContext: () => Se, useDebugValue: () => M, useEffect: () => j, useErrorBoundary: () => H, useId: () => ye, useImperativeHandle: () => ae, useLayoutEffect: () => U, useMemo: () => ke, useReducer: () => O, useRef: () => N, useState: () => S });
1090
- var o, i, r, s, c = t(616), d = 0, l = [], u = [], h = c.options.__b, g = c.options.__r, m = c.options.diffed, x = c.options.__c, P = c.options.unmount;
1090
+ var o, i, r, s, c = t(616), d = 0, l = [], u = [], h = c.options.__b, f = c.options.__r, m = c.options.diffed, x = c.options.__c, P = c.options.unmount;
1091
1091
  function A(k, p) {
1092
1092
  c.options.__h && c.options.__h(i, k, d || p), d = 0;
1093
1093
  var _ = i.__H || (i.__H = { __: [], __h: [] });
@@ -1099,33 +1099,33 @@ var _r = { 7: function(n, e, t) {
1099
1099
  function O(k, p, _) {
1100
1100
  var L = A(o++, 2);
1101
1101
  if (L.t = k, !L.__c && (L.__ = [_ ? _(p) : De(void 0, p), function(We) {
1102
- var Fe = L.__N ? L.__N[0] : L.__[0], f = L.t(Fe, We);
1103
- Fe !== f && (L.__N = [f, L.__[1]], L.__c.setState({}));
1102
+ var Fe = L.__N ? L.__N[0] : L.__[0], g = L.t(Fe, We);
1103
+ Fe !== g && (L.__N = [g, L.__[1]], L.__c.setState({}));
1104
1104
  }], L.__c = i, !i.u)) {
1105
- var K = function(We, Fe, f) {
1105
+ var K = function(We, Fe, g) {
1106
1106
  if (!L.__c.__H) return !0;
1107
1107
  var v = L.__c.__H.__.filter(function(D) {
1108
1108
  return D.__c;
1109
1109
  });
1110
1110
  if (v.every(function(D) {
1111
1111
  return !D.__N;
1112
- })) return !fe || fe.call(this, We, Fe, f);
1112
+ })) return !fe || fe.call(this, We, Fe, g);
1113
1113
  var b = !1;
1114
1114
  return v.forEach(function(D) {
1115
1115
  if (D.__N) {
1116
1116
  var T = D.__[0];
1117
1117
  D.__ = D.__N, D.__N = void 0, T !== D.__[0] && (b = !0);
1118
1118
  }
1119
- }), !(!b && L.__c.props === We) && (!fe || fe.call(this, We, Fe, f));
1119
+ }), !(!b && L.__c.props === We) && (!fe || fe.call(this, We, Fe, g));
1120
1120
  };
1121
1121
  i.u = !0;
1122
1122
  var fe = i.shouldComponentUpdate, He = i.componentWillUpdate;
1123
- i.componentWillUpdate = function(We, Fe, f) {
1123
+ i.componentWillUpdate = function(We, Fe, g) {
1124
1124
  if (this.__e) {
1125
1125
  var v = fe;
1126
- fe = void 0, K(We, Fe, f), fe = v;
1126
+ fe = void 0, K(We, Fe, g), fe = v;
1127
1127
  }
1128
- He && He.call(this, We, Fe, f);
1128
+ He && He.call(this, We, Fe, g);
1129
1129
  }, i.shouldComponentUpdate = K;
1130
1130
  }
1131
1131
  return L.__N || L.__;
@@ -1195,7 +1195,7 @@ var _r = { 7: function(n, e, t) {
1195
1195
  c.options.__b = function(k) {
1196
1196
  i = null, h && h(k);
1197
1197
  }, c.options.__r = function(k) {
1198
- g && g(k), o = 0;
1198
+ f && f(k), o = 0;
1199
1199
  var p = (i = k.__c).__H;
1200
1200
  p && (r === i ? (p.__h = [], i.__h = [], p.__.forEach(function(_) {
1201
1201
  _.__N && (_.__ = _.__N), _.__V = u, _.__N = _.i = void 0;
@@ -1263,8 +1263,8 @@ var _r = { 7: function(n, e, t) {
1263
1263
  }
1264
1264
  function o(r, s) {
1265
1265
  for (var c = {}, d = [], l = 0; l < r.length; l++) {
1266
- var u = r[l], h = s.base ? u[0] + s.base : u[0], g = c[h] || 0, m = "".concat(h, " ").concat(g);
1267
- c[h] = g + 1;
1266
+ var u = r[l], h = s.base ? u[0] + s.base : u[0], f = c[h] || 0, m = "".concat(h, " ").concat(f);
1267
+ c[h] = f + 1;
1268
1268
  var x = t(m), P = { css: u[1], media: u[2], sourceMap: u[3], supports: u[4], layer: u[5] };
1269
1269
  if (x !== -1) e[x].references++, e[x].updater(P);
1270
1270
  else {
@@ -1292,8 +1292,8 @@ var _r = { 7: function(n, e, t) {
1292
1292
  var u = t(c[l]);
1293
1293
  e[u].references--;
1294
1294
  }
1295
- for (var h = o(d, s), g = 0; g < c.length; g++) {
1296
- var m = t(c[g]);
1295
+ for (var h = o(d, s), f = 0; f < c.length; f++) {
1296
+ var m = t(c[f]);
1297
1297
  e[m].references === 0 && (e[m].updater(), e.splice(m, 1));
1298
1298
  }
1299
1299
  c = h;
@@ -1324,8 +1324,8 @@ var _r = { 7: function(n, e, t) {
1324
1324
  }
1325
1325
  if (r.styleSheet) r.styleSheet.cssText = t(s, l);
1326
1326
  else {
1327
- var h = document.createTextNode(l), g = r.childNodes;
1328
- g[s] && r.removeChild(g[s]), g.length ? r.insertBefore(h, g[s]) : r.appendChild(h);
1327
+ var h = document.createTextNode(l), f = r.childNodes;
1328
+ f[s] && r.removeChild(f[s]), f.length ? r.insertBefore(h, f[s]) : r.appendChild(h);
1329
1329
  }
1330
1330
  }
1331
1331
  var i = { singleton: null, singletonCounter: 0 };
@@ -2109,10 +2109,10 @@ class Br {
2109
2109
  l = i === !1 ? 0 : Date.now(), d = null, e.apply(s, c);
2110
2110
  };
2111
2111
  return function(...h) {
2112
- const g = Date.now();
2113
- l || i !== !1 || (l = g);
2114
- const m = t - (g - l);
2115
- s = this, c = h, m <= 0 || m > t ? (d && (window.clearTimeout(d), d = null), l = g, e.apply(s, c)) : d || r === !1 || (d = window.setTimeout(u, m));
2112
+ const f = Date.now();
2113
+ l || i !== !1 || (l = f);
2114
+ const m = t - (f - l);
2115
+ s = this, c = h, m <= 0 || m > t ? (d && (window.clearTimeout(d), d = null), l = f, e.apply(s, c)) : d || r === !1 || (d = window.setTimeout(u, m));
2116
2116
  };
2117
2117
  }
2118
2118
  }
@@ -2477,12 +2477,12 @@ const Pe = ln.A && ln.A.locals ? ln.A.locals : void 0, Pa = () => {
2477
2477
  }
2478
2478
  return j;
2479
2479
  }(n, ["uiAction", "title", "children", "secondary", "dangerous", "autofocus", "showLastUsed", "onClick", "icon"]);
2480
- const h = (0, y.useRef)(null), { uiState: g, isDisabled: m } = (0, y.useContext)(pe);
2480
+ const h = (0, y.useRef)(null), { uiState: f, isDisabled: m } = (0, y.useContext)(pe);
2481
2481
  (0, y.useEffect)(() => {
2482
2482
  const { current: S } = h;
2483
2483
  S && s && S.focus();
2484
2484
  }, [s]);
2485
- const x = (0, y.useMemo)(() => e && g.loadingAction === e || u.isLoading, [u, e, g]), P = (0, y.useMemo)(() => e && g.succeededAction === e || u.isSuccess, [u, e, g]), A = (0, y.useMemo)(() => m || u.disabled, [u, m]);
2485
+ const x = (0, y.useMemo)(() => e && f.loadingAction === e || u.isLoading, [u, e, f]), P = (0, y.useMemo)(() => e && f.succeededAction === e || u.isSuccess, [u, e, f]), A = (0, y.useMemo)(() => m || u.disabled, [u, m]);
2486
2486
  return a("button", Object.assign({ part: r ? "button dangerous-button" : i ? "button secondary-button" : "button primary-button", title: t, ref: h, type: "submit", disabled: A, onClick: d, className: Q()(Pe.button, r ? Pe.dangerous : i ? Pe.secondary : Pe.primary) }, { children: a(yo, Object.assign({ isLoading: x, isSuccess: P, secondary: !0, hasIcon: !!l, maxWidth: !0 }, { children: [l ? a(Ht, { name: l, secondary: i, disabled: A }) : null, a("div", Object.assign({ className: Pe.caption }, { children: [a("span", { children: o }), c ? a(Pa, {}) : null] }))] })) }));
2487
2487
  }, Ve = (n) => {
2488
2488
  var e, t, o, i, r, { label: s } = n, c = function(m, x) {
@@ -2499,11 +2499,11 @@ const Pe = ln.A && ln.A.locals ? ln.A.locals : void 0, Pa = () => {
2499
2499
  const { current: m } = d;
2500
2500
  m && c.autofocus && (m.focus(), m.select());
2501
2501
  }, [c.autofocus]);
2502
- const g = (0, y.useMemo)(() => {
2502
+ const f = (0, y.useMemo)(() => {
2503
2503
  var m;
2504
2504
  return c.markOptional && !(!((m = c.flowInput) === null || m === void 0) && m.required) ? `${c.placeholder} (${u("labels.optional")})` : c.placeholder;
2505
2505
  }, [c.markOptional, c.placeholder, c.flowInput, u]);
2506
- return a("div", Object.assign({ className: Pe.inputWrapper }, { children: a("input", Object.assign({ part: "input text-input", required: (e = c.flowInput) === null || e === void 0 ? void 0 : e.required, maxLength: (t = c.flowInput) === null || t === void 0 ? void 0 : t.max_length, minLength: (o = c.flowInput) === null || o === void 0 ? void 0 : o.min_length, hidden: (i = c.flowInput) === null || i === void 0 ? void 0 : i.hidden }, c, { ref: d, "aria-label": g, placeholder: g, className: Q()(Pe.input, !!(!((r = c.flowInput) === null || r === void 0) && r.error) && c.markError && Pe.error), disabled: h })) }));
2506
+ return a("div", Object.assign({ className: Pe.inputWrapper }, { children: a("input", Object.assign({ part: "input text-input", required: (e = c.flowInput) === null || e === void 0 ? void 0 : e.required, maxLength: (t = c.flowInput) === null || t === void 0 ? void 0 : t.max_length, minLength: (o = c.flowInput) === null || o === void 0 ? void 0 : o.min_length, hidden: (i = c.flowInput) === null || i === void 0 ? void 0 : i.hidden }, c, { ref: d, "aria-label": f, placeholder: f, className: Q()(Pe.input, !!(!((r = c.flowInput) === null || r === void 0) && r.error) && c.markError && Pe.error), disabled: h })) }));
2507
2507
  }, Oe = ({ children: n }) => a("section", Object.assign({ className: zt.content }, { children: n })), oe = ({ onSubmit: n, children: e, hidden: t, maxWidth: o }) => t ? null : a("form", Object.assign({ onSubmit: n, className: Pe.form }, { children: a("ul", Object.assign({ className: Pe.ul }, { children: (0, C.toChildArray)(e).map((i, r) => a("li", Object.assign({ part: "form-item", className: Q()(Pe.li, o ? Pe.maxWidth : null) }, { children: i }), r)) })) }));
2508
2508
  var cn = X(111), xt = {};
2509
2509
  xt.setAttributes = nt(), xt.insert = (n) => {
@@ -2521,9 +2521,9 @@ const Ri = dn.A && dn.A.locals ? dn.A.locals : void 0, Ee = ({ state: n, error:
2521
2521
  var d, l;
2522
2522
  if (((d = n == null ? void 0 : n.error) === null || d === void 0 ? void 0 : d.code) == "form_data_invalid_error") for (const u of Object.values(n == null ? void 0 : n.actions)) {
2523
2523
  const h = u == null ? void 0 : u(null);
2524
- let g = !1;
2525
- for (const m of Object.values(h == null ? void 0 : h.inputs)) if (!((l = m.error) === null || l === void 0) && l.code) return c(Object.assign(Object.assign({}, s), { error: m.error })), void (g = !0);
2526
- g || c(Object.assign(Object.assign({}, s), { error: n.error }));
2524
+ let f = !1;
2525
+ for (const m of Object.values(h == null ? void 0 : h.inputs)) if (!((l = m.error) === null || l === void 0) && l.code) return c(Object.assign(Object.assign({}, s), { error: m.error })), void (f = !0);
2526
+ f || c(Object.assign(Object.assign({}, s), { error: n.error }));
2527
2527
  }
2528
2528
  else n != null && n.error && c(Object.assign(Object.assign({}, s), { error: n == null ? void 0 : n.error }));
2529
2529
  }, [n]), a("section", Object.assign({ part: "error", className: Ri.errorBox, hidden: !(!((o = s.error) === null || o === void 0) && o.code) && !(t != null && t.code) && !e }, { children: [a("span", { children: a(Ht, { name: "exclamation", size: 15 }) }), a("span", Object.assign({ id: "errorMessage", part: "error-text" }, { children: r(e ? `errors.${e.code}` : `flowErrors.${((i = s.error) === null || i === void 0 ? void 0 : i.code) || (t == null ? void 0 : t.code)}`) }))] }));
@@ -2549,13 +2549,13 @@ const Jt = hn.A && hn.A.locals ? hn.A.locals : void 0, Yn = (n) => {
2549
2549
  }(n, ["loadingSpinnerPosition", "dangerous", "onClick", "uiAction"]);
2550
2550
  const { t: s } = (0, y.useContext)(Z.TranslateContext), { uiState: c, isDisabled: d } = (0, y.useContext)(pe), [l, u] = (0, y.useState)();
2551
2551
  let h;
2552
- const g = (O) => {
2552
+ const f = (O) => {
2553
2553
  O.preventDefault(), u(!0);
2554
2554
  }, m = (O) => {
2555
2555
  O.preventDefault(), u(!1);
2556
2556
  }, x = (0, y.useMemo)(() => i && c.loadingAction === i || r.isLoading, [r, i, c]), P = (0, y.useMemo)(() => i && c.succeededAction === i || r.isSuccess, [r, i, c]), A = (0, y.useCallback)((O) => {
2557
2557
  O.preventDefault(), u(!1), o(O);
2558
- }, [o]), S = (0, y.useCallback)(() => a(C.Fragment, { children: [l ? a(C.Fragment, { children: [a(Yn, Object.assign({ onClick: A }, { children: s("labels.yes") })), " / ", a(Yn, Object.assign({ onClick: m }, { children: s("labels.no") })), " "] }) : null, a("button", Object.assign({}, r, { onClick: t ? g : o, disabled: l || r.disabled || d, part: "link", className: Q()(Jt.link, t ? Jt.danger : null) }, { children: r.children }))] }), [l, t, o, A, r, s, d]);
2558
+ }, [o]), S = (0, y.useCallback)(() => a(C.Fragment, { children: [l ? a(C.Fragment, { children: [a(Yn, Object.assign({ onClick: A }, { children: s("labels.yes") })), " / ", a(Yn, Object.assign({ onClick: m }, { children: s("labels.no") })), " "] }) : null, a("button", Object.assign({}, r, { onClick: t ? f : o, disabled: l || r.disabled || d, part: "link", className: Q()(Jt.link, t ? Jt.danger : null) }, { children: r.children }))] }), [l, t, o, A, r, s, d]);
2559
2559
  return a(C.Fragment, { children: a("span", Object.assign({ className: Q()(Jt.linkWrapper, e === "right" ? Jt.reverse : null), hidden: r.hidden, onMouseEnter: () => {
2560
2560
  h && window.clearTimeout(h);
2561
2561
  }, onMouseLeave: () => {
@@ -2602,7 +2602,7 @@ var Ot = function(n, e, t, o) {
2602
2602
  };
2603
2603
  const Oa = (n) => {
2604
2604
  var e, t, o, i, r, s, c, d, l;
2605
- const { t: u } = (0, y.useContext)(Z.TranslateContext), { init: h, hanko: g, initialComponentName: m, setLoadingAction: x, uiState: P, setUIState: A, stateHandler: S, hidePasskeyButtonOnLogin: O, lastLogin: j } = (0, y.useContext)(pe), [U, N] = (0, y.useState)(null), [ae, ke] = (0, y.useState)(P.username || P.email), { flowState: se } = Me(n.state), Se = ft.supported(), [M, H] = (0, y.useState)(void 0), [ye, Ue] = (0, y.useState)(null), [Ie, Ne] = (0, y.useState)(!1), le = (k) => {
2605
+ const { t: u } = (0, y.useContext)(Z.TranslateContext), { init: h, hanko: f, initialComponentName: m, setLoadingAction: x, uiState: P, setUIState: A, stateHandler: S, hidePasskeyButtonOnLogin: O, lastLogin: j } = (0, y.useContext)(pe), [U, N] = (0, y.useState)(null), [ae, ke] = (0, y.useState)(P.username || P.email), { flowState: se } = Me(n.state), Se = ft.supported(), [M, H] = (0, y.useState)(void 0), [ye, Ue] = (0, y.useState)(null), [Ie, Ne] = (0, y.useState)(!1), le = (k) => {
2606
2606
  if (k.preventDefault(), k.target instanceof HTMLInputElement) {
2607
2607
  const { value: p } = k.target;
2608
2608
  ke(p), ce(p);
@@ -2637,28 +2637,28 @@ const Oa = (n) => {
2637
2637
  }, []), a(C.Fragment, { children: [a(Oe, { children: [a(he, { children: u("headlines.signIn") }), a(Ee, { state: se, error: M }), De ? a(C.Fragment, { children: [a(oe, Object.assign({ onSubmit: (k) => Ot(void 0, void 0, void 0, function* () {
2638
2638
  k.preventDefault(), x("email-submit");
2639
2639
  const p = yield se.actions.continue_with_login_identifier({ [U]: ae }).run();
2640
- ce(ae), x(null), yield g.flow.run(p, S);
2640
+ ce(ae), x(null), yield f.flow.run(p, S);
2641
2641
  }), maxWidth: !0 }, { children: [De.email ? a(Ve, { type: "email", autoComplete: "username webauthn", autoCorrect: "off", flowInput: De.email, onInput: le, value: ae, placeholder: u("labels.email"), pattern: "^[^@]+@[^@]+\\.[^@]+$" }) : De.username ? a(Ve, { type: "text", autoComplete: "username webauthn", autoCorrect: "off", flowInput: De.username, onInput: le, value: ae, placeholder: u("labels.username") }) : a(Ve, { type: "text", autoComplete: "username webauthn", autoCorrect: "off", flowInput: De.identifier, onInput: le, value: ae, placeholder: u("labels.emailOrUsername") }), a(ne, Object.assign({ uiAction: "email-submit" }, { children: u("labels.continue") }))] })), a(_o, Object.assign({ hidden: !me }, { children: u("labels.or") }))] }) : null, !((i = (o = se.actions).webauthn_generate_request_options) === null || i === void 0) && i.call(o, null) && !O ? a(oe, Object.assign({ onSubmit: (k) => ((p) => Ot(void 0, void 0, void 0, function* () {
2642
2642
  p.preventDefault(), x("passkey-submit");
2643
2643
  const _ = yield se.actions.webauthn_generate_request_options(null).run();
2644
- yield g.flow.run(_, S);
2644
+ yield f.flow.run(_, S);
2645
2645
  }))(k) }, { children: a(ne, Object.assign({ uiAction: "passkey-submit", secondary: !0, title: Se ? null : u("labels.webauthnUnsupported"), disabled: !Se, icon: "passkey" }, { children: u("labels.signInPasskey") })) })) : null, !((s = (r = se.actions).thirdparty_oauth) === null || s === void 0) && s.call(r, null) ? (c = se.actions.thirdparty_oauth(null).inputs.provider.allowed_values) === null || c === void 0 ? void 0 : c.map((k) => a(oe, Object.assign({ onSubmit: (p) => ((_, L) => Ot(void 0, void 0, void 0, function* () {
2646
2646
  _.preventDefault(), Ue(L);
2647
2647
  const K = yield se.actions.thirdparty_oauth({ provider: L, redirect_to: window.location.toString() }).run();
2648
- K.error && Ue(null), yield g.flow.run(K, S);
2648
+ K.error && Ue(null), yield f.flow.run(K, S);
2649
2649
  }))(p, k.value) }, { children: a(ne, Object.assign({ isLoading: k.value == ye, secondary: !0, icon: k.value.startsWith("custom_") ? "customProvider" : k.value, showLastUsed: (j == null ? void 0 : j.login_method) == "third_party" && (j == null ? void 0 : j.third_party_provider) == k.value }, { children: u("labels.signInWith", { provider: k.name }) })) }), k.value)) : null, ((l = (d = se.actions).remember_me) === null || l === void 0 ? void 0 : l.call(d, null)) && a(C.Fragment, { children: [a(On, {}), a(bo, { required: !1, type: "checkbox", label: u("labels.staySignedIn"), checked: Ie, onChange: (k) => Ot(void 0, void 0, void 0, function* () {
2650
2650
  const p = yield se.actions.remember_me({ remember_me: !Ie }).run();
2651
- Ne((_) => !_), yield g.flow.run(p, S);
2651
+ Ne((_) => !_), yield f.flow.run(p, S);
2652
2652
  }) })] })] }), a(Re, Object.assign({ hidden: m !== "auth" }, { children: [a("span", { hidden: !0 }), a(te, Object.assign({ uiAction: "switch-flow", onClick: (k) => Ot(void 0, void 0, void 0, function* () {
2653
2653
  k.preventDefault(), h("registration");
2654
2654
  }), loadingSpinnerPosition: "left" }, { children: u("labels.dontHaveAnAccount") }))] }))] });
2655
2655
  }, Ea = (n) => {
2656
2656
  var { index: e, focus: t, digit: o = "" } = n, i = function(l, u) {
2657
2657
  var h = {};
2658
- for (var g in l) Object.prototype.hasOwnProperty.call(l, g) && u.indexOf(g) < 0 && (h[g] = l[g]);
2658
+ for (var f in l) Object.prototype.hasOwnProperty.call(l, f) && u.indexOf(f) < 0 && (h[f] = l[f]);
2659
2659
  if (l != null && typeof Object.getOwnPropertySymbols == "function") {
2660
2660
  var m = 0;
2661
- for (g = Object.getOwnPropertySymbols(l); m < g.length; m++) u.indexOf(g[m]) < 0 && Object.prototype.propertyIsEnumerable.call(l, g[m]) && (h[g[m]] = l[g[m]]);
2661
+ for (f = Object.getOwnPropertySymbols(l); m < f.length; m++) u.indexOf(f[m]) < 0 && Object.prototype.propertyIsEnumerable.call(l, f[m]) && (h[f[m]] = l[f[m]]);
2662
2662
  }
2663
2663
  return h;
2664
2664
  }(n, ["index", "focus", "digit"]);
@@ -2687,12 +2687,12 @@ const Oa = (n) => {
2687
2687
  r(A), t(P);
2688
2688
  }, h = (m) => {
2689
2689
  m.key === "Backspace" ? (m.preventDefault(), l(""), d()) : m.key === "Delete" ? (m.preventDefault(), l("")) : m.key === "ArrowLeft" ? (m.preventDefault(), d()) : m.key === "ArrowRight" ? (m.preventDefault(), c()) : m.key !== " " && m.key !== "Spacebar" && m.key !== "Space" || m.preventDefault();
2690
- }, g = (m) => {
2690
+ }, f = (m) => {
2691
2691
  m.target instanceof HTMLInputElement && l(m.target.value), c();
2692
2692
  };
2693
2693
  return (0, y.useEffect)(() => {
2694
2694
  n.length === 0 && r(0);
2695
- }, [n]), a("div", Object.assign({ className: Pe.passcodeInputWrapper }, { children: Array.from(Array(e)).map((m, x) => a(Ea, { name: "passcode", index: x, focus: i === x, digit: n[x], onKeyDown: h, onInput: g, onPaste: u, onFocus: () => ((P) => {
2695
+ }, [n]), a("div", Object.assign({ className: Pe.passcodeInputWrapper }, { children: Array.from(Array(e)).map((m, x) => a(Ea, { name: "passcode", index: x, focus: i === x, digit: n[x], onKeyDown: h, onInput: f, onPaste: u, onFocus: () => ((P) => {
2696
2696
  r(P);
2697
2697
  })(x), disabled: o }, x)) }));
2698
2698
  };
@@ -2728,7 +2728,7 @@ var Yt = function(n, e, t, o) {
2728
2728
  };
2729
2729
  const Da = (n) => {
2730
2730
  var e, t;
2731
- const { t: o } = (0, y.useContext)(Z.TranslateContext), { flowState: i } = Me(n.state), { hanko: r, uiState: s, setUIState: c, setLoadingAction: d, setSucceededAction: l, stateHandler: u } = (0, y.useContext)(pe), [h, g] = (0, y.useState)(), [m, x] = (0, y.useState)(i.payload.resend_after), [P, A] = (0, y.useState)([]), S = (0, y.useMemo)(() => {
2731
+ const { t: o } = (0, y.useContext)(Z.TranslateContext), { flowState: i } = Me(n.state), { hanko: r, uiState: s, setUIState: c, setLoadingAction: d, setSucceededAction: l, stateHandler: u } = (0, y.useContext)(pe), [h, f] = (0, y.useState)(), [m, x] = (0, y.useState)(i.payload.resend_after), [P, A] = (0, y.useState)([]), S = (0, y.useMemo)(() => {
2732
2732
  var j;
2733
2733
  return ((j = i.error) === null || j === void 0 ? void 0 : j.code) === "passcode_max_attempts_reached";
2734
2734
  }, [i]), O = (0, y.useCallback)((j) => Yt(void 0, void 0, void 0, function* () {
@@ -2741,7 +2741,7 @@ const Da = (n) => {
2741
2741
  }, [i, l]), (0, y.useEffect)(() => {
2742
2742
  h <= 0 && s.succeededAction;
2743
2743
  }, [s, h]), (0, y.useEffect)(() => {
2744
- const j = h > 0 && setInterval(() => g(h - 1), 1e3);
2744
+ const j = h > 0 && setInterval(() => f(h - 1), 1e3);
2745
2745
  return () => clearInterval(j);
2746
2746
  }, [h]), (0, y.useEffect)(() => {
2747
2747
  const j = m > 0 && setInterval(() => {
@@ -2795,19 +2795,19 @@ var qn = function(n, e, t, o) {
2795
2795
  };
2796
2796
  const ja = (n) => {
2797
2797
  var e, t, o, i, r, s, c, d;
2798
- const { t: l } = (0, y.useContext)(Z.TranslateContext), { hanko: u, setLoadingAction: h, stateHandler: g } = (0, y.useContext)(pe), { flowState: m } = Me(n.state);
2798
+ const { t: l } = (0, y.useContext)(Z.TranslateContext), { hanko: u, setLoadingAction: h, stateHandler: f } = (0, y.useContext)(pe), { flowState: m } = Me(n.state);
2799
2799
  return a(C.Fragment, { children: [a(Oe, { children: [a(he, { children: l("headlines.registerAuthenticator") }), a(Ee, { state: m }), a(W, { children: l("texts.setupPasskey") }), a(oe, Object.assign({ onSubmit: (x) => qn(void 0, void 0, void 0, function* () {
2800
2800
  x.preventDefault(), h("passkey-submit");
2801
2801
  const P = yield m.actions.webauthn_generate_creation_options(null).run();
2802
- yield u.flow.run(P, g);
2802
+ yield u.flow.run(P, f);
2803
2803
  }) }, { children: a(ne, Object.assign({ uiAction: "passkey-submit", autofocus: !0, icon: "passkey" }, { children: l("labels.registerAuthenticator") })) }))] }), a(Re, Object.assign({ hidden: !(!((t = (e = m.actions).skip) === null || t === void 0) && t.call(e, null)) && !(!((i = (o = m.actions).back) === null || i === void 0) && i.call(o, null)) }, { children: [a(te, Object.assign({ uiAction: "back", onClick: (x) => qn(void 0, void 0, void 0, function* () {
2804
2804
  x.preventDefault(), h("back");
2805
2805
  const P = yield m.actions.back(null).run();
2806
- h(null), yield u.flow.run(P, g);
2806
+ h(null), yield u.flow.run(P, f);
2807
2807
  }), loadingSpinnerPosition: "right", hidden: !(!((s = (r = m.actions).back) === null || s === void 0) && s.call(r, null)) }, { children: l("labels.back") })), a(te, Object.assign({ uiAction: "skip", onClick: (x) => qn(void 0, void 0, void 0, function* () {
2808
2808
  x.preventDefault(), h("skip");
2809
2809
  const P = yield m.actions.skip(null).run();
2810
- h(null), yield u.flow.run(P, g);
2810
+ h(null), yield u.flow.run(P, f);
2811
2811
  }), loadingSpinnerPosition: "left", hidden: !(!((d = (c = m.actions).skip) === null || d === void 0) && d.call(c, null)) }, { children: l("labels.skip") }))] }))] });
2812
2812
  };
2813
2813
  var It = function(n, e, t, o) {
@@ -2837,7 +2837,7 @@ var It = function(n, e, t, o) {
2837
2837
  };
2838
2838
  const $a = (n) => {
2839
2839
  var e, t, o, i;
2840
- const { t: r } = (0, y.useContext)(Z.TranslateContext), { hanko: s, stateHandler: c, setLoadingAction: d } = (0, y.useContext)(pe), { flowState: l } = Me(n.state), [u, h] = (0, y.useState)(), [g, m] = (0, y.useState)(), x = (O) => It(void 0, void 0, void 0, function* () {
2840
+ const { t: r } = (0, y.useContext)(Z.TranslateContext), { hanko: s, stateHandler: c, setLoadingAction: d } = (0, y.useContext)(pe), { flowState: l } = Me(n.state), [u, h] = (0, y.useState)(), [f, m] = (0, y.useState)(), x = (O) => It(void 0, void 0, void 0, function* () {
2841
2841
  O.preventDefault(), d("password-recovery");
2842
2842
  const j = yield l.actions.continue_to_passcode_confirmation_recovery(null).run();
2843
2843
  d(null), yield s.flow.run(j, c);
@@ -2850,15 +2850,15 @@ const $a = (n) => {
2850
2850
  return a(te, Object.assign({ hidden: !(!((j = (O = l.actions).continue_to_passcode_confirmation_recovery) === null || j === void 0) && j.call(O, null)), uiAction: "password-recovery", onClick: x, loadingSpinnerPosition: "left" }, { children: r("labels.forgotYourPassword") }));
2851
2851
  }, [x, r]), S = (0, y.useMemo)(() => a(te, Object.assign({ uiAction: "choose-login-method", onClick: P, loadingSpinnerPosition: "left" }, { children: "Choose another method" })), [P]);
2852
2852
  return (0, y.useEffect)(() => {
2853
- const O = g > 0 && setInterval(() => m(g - 1), 1e3);
2853
+ const O = f > 0 && setInterval(() => m(f - 1), 1e3);
2854
2854
  return () => clearInterval(O);
2855
- }, [g]), a(C.Fragment, { children: [a(Oe, { children: [a(he, { children: r("headlines.loginPassword") }), a(Ee, { state: l }), a(oe, Object.assign({ onSubmit: (O) => It(void 0, void 0, void 0, function* () {
2855
+ }, [f]), a(C.Fragment, { children: [a(Oe, { children: [a(he, { children: r("headlines.loginPassword") }), a(Ee, { state: l }), a(oe, Object.assign({ onSubmit: (O) => It(void 0, void 0, void 0, function* () {
2856
2856
  O.preventDefault(), d("password-submit");
2857
2857
  const j = yield l.actions.password_login({ password: u }).run();
2858
2858
  d(null), yield s.flow.run(j, c);
2859
2859
  }) }, { children: [a(Ve, { type: "password", flowInput: l.actions.password_login(null).inputs.password, autocomplete: "current-password", placeholder: r("labels.password"), onInput: (O) => It(void 0, void 0, void 0, function* () {
2860
2860
  O.target instanceof HTMLInputElement && h(O.target.value);
2861
- }), autofocus: !0 }), a(ne, Object.assign({ uiAction: "password-submit", disabled: g > 0 }, { children: g > 0 ? r("labels.passwordRetryAfter", { passwordRetryAfter: g }) : r("labels.signIn") }))] })), !((t = (e = l.actions).continue_to_login_method_chooser) === null || t === void 0) && t.call(e, null) ? A : null] }), a(Re, { children: [a(te, Object.assign({ uiAction: "back", onClick: (O) => It(void 0, void 0, void 0, function* () {
2861
+ }), autofocus: !0 }), a(ne, Object.assign({ uiAction: "password-submit", disabled: f > 0 }, { children: f > 0 ? r("labels.passwordRetryAfter", { passwordRetryAfter: f }) : r("labels.signIn") }))] })), !((t = (e = l.actions).continue_to_login_method_chooser) === null || t === void 0) && t.call(e, null) ? A : null] }), a(Re, { children: [a(te, Object.assign({ uiAction: "back", onClick: (O) => It(void 0, void 0, void 0, function* () {
2862
2862
  O.preventDefault(), d("back");
2863
2863
  const j = yield l.actions.back(null).run();
2864
2864
  d(null), yield s.flow.run(j, c);
@@ -2926,22 +2926,22 @@ var Qt = function(n, e, t, o) {
2926
2926
  };
2927
2927
  const Ta = (n) => {
2928
2928
  var e, t, o, i, r, s;
2929
- const { t: c } = (0, y.useContext)(Z.TranslateContext), { hanko: d, setLoadingAction: l, stateHandler: u, lastLogin: h } = (0, y.useContext)(pe), { flowState: g } = Me(n.state);
2930
- return a(C.Fragment, { children: [a(Oe, { children: [a(he, { children: c("headlines.selectLoginMethod") }), a(Ee, { flowError: g == null ? void 0 : g.error }), a(W, { children: c("texts.howDoYouWantToLogin") }), a(oe, Object.assign({ hidden: !(!((t = (e = g.actions).continue_to_passcode_confirmation) === null || t === void 0) && t.call(e, null)), onSubmit: (m) => Qt(void 0, void 0, void 0, function* () {
2929
+ const { t: c } = (0, y.useContext)(Z.TranslateContext), { hanko: d, setLoadingAction: l, stateHandler: u, lastLogin: h } = (0, y.useContext)(pe), { flowState: f } = Me(n.state);
2930
+ return a(C.Fragment, { children: [a(Oe, { children: [a(he, { children: c("headlines.selectLoginMethod") }), a(Ee, { flowError: f == null ? void 0 : f.error }), a(W, { children: c("texts.howDoYouWantToLogin") }), a(oe, Object.assign({ hidden: !(!((t = (e = f.actions).continue_to_passcode_confirmation) === null || t === void 0) && t.call(e, null)), onSubmit: (m) => Qt(void 0, void 0, void 0, function* () {
2931
2931
  m.preventDefault(), l("passcode-submit");
2932
- const x = yield g.actions.continue_to_passcode_confirmation(null).run();
2932
+ const x = yield f.actions.continue_to_passcode_confirmation(null).run();
2933
2933
  l(null), yield d.flow.run(x, u);
2934
- }) }, { children: a(ne, Object.assign({ secondary: !0, uiAction: "passcode-submit", icon: "mail" }, { children: c("labels.passcode") })) })), a(oe, Object.assign({ hidden: !(!((i = (o = g.actions).continue_to_password_login) === null || i === void 0) && i.call(o, null)), onSubmit: (m) => Qt(void 0, void 0, void 0, function* () {
2934
+ }) }, { children: a(ne, Object.assign({ secondary: !0, uiAction: "passcode-submit", icon: "mail" }, { children: c("labels.passcode") })) })), a(oe, Object.assign({ hidden: !(!((i = (o = f.actions).continue_to_password_login) === null || i === void 0) && i.call(o, null)), onSubmit: (m) => Qt(void 0, void 0, void 0, function* () {
2935
2935
  m.preventDefault(), l("password-submit");
2936
- const x = yield g.actions.continue_to_password_login(null).run();
2936
+ const x = yield f.actions.continue_to_password_login(null).run();
2937
2937
  l(null), yield d.flow.run(x, u);
2938
- }) }, { children: a(ne, Object.assign({ secondary: !0, uiAction: "password-submit", icon: "password" }, { children: c("labels.password") })) })), a(oe, Object.assign({ hidden: !(!((s = (r = g.actions).webauthn_generate_request_options) === null || s === void 0) && s.call(r, null)), onSubmit: (m) => Qt(void 0, void 0, void 0, function* () {
2938
+ }) }, { children: a(ne, Object.assign({ secondary: !0, uiAction: "password-submit", icon: "password" }, { children: c("labels.password") })) })), a(oe, Object.assign({ hidden: !(!((s = (r = f.actions).webauthn_generate_request_options) === null || s === void 0) && s.call(r, null)), onSubmit: (m) => Qt(void 0, void 0, void 0, function* () {
2939
2939
  m.preventDefault(), l("passkey-submit");
2940
- const x = yield g.actions.webauthn_generate_request_options(null).run();
2940
+ const x = yield f.actions.webauthn_generate_request_options(null).run();
2941
2941
  l(null), yield d.flow.run(x, u);
2942
2942
  }) }, { children: a(ne, Object.assign({ secondary: !0, uiAction: "passkey-submit", icon: "passkey" }, { children: c("labels.passkey") })) }))] }), a(Re, { children: a(te, Object.assign({ uiAction: "back", onClick: (m) => Qt(void 0, void 0, void 0, function* () {
2943
2943
  m.preventDefault(), l("back");
2944
- const x = yield g.actions.back(null).run();
2944
+ const x = yield f.actions.back(null).run();
2945
2945
  l(null), yield d.flow.run(x, u);
2946
2946
  }), loadingSpinnerPosition: "right" }, { children: c("labels.back") })) })] });
2947
2947
  };
@@ -2972,7 +2972,7 @@ var Gt = function(n, e, t, o) {
2972
2972
  };
2973
2973
  const Ua = (n) => {
2974
2974
  var e, t, o, i, r, s, c;
2975
- const { t: d } = (0, y.useContext)(Z.TranslateContext), { init: l, hanko: u, uiState: h, setUIState: g, stateHandler: m, setLoadingAction: x, initialComponentName: P } = (0, y.useContext)(pe), { flowState: A } = Me(n.state), S = (t = (e = A.actions).register_login_identifier) === null || t === void 0 ? void 0 : t.call(e, null).inputs, O = !(!(S != null && S.email) || !(S != null && S.username)), [j, U] = (0, y.useState)(void 0), [N, ae] = (0, y.useState)(null), [ke, se] = (0, y.useState)(!1), Se = (0, y.useMemo)(() => {
2975
+ const { t: d } = (0, y.useContext)(Z.TranslateContext), { init: l, hanko: u, uiState: h, setUIState: f, stateHandler: m, setLoadingAction: x, initialComponentName: P } = (0, y.useContext)(pe), { flowState: A } = Me(n.state), S = (t = (e = A.actions).register_login_identifier) === null || t === void 0 ? void 0 : t.call(e, null).inputs, O = !(!(S != null && S.email) || !(S != null && S.username)), [j, U] = (0, y.useState)(void 0), [N, ae] = (0, y.useState)(null), [ke, se] = (0, y.useState)(!1), Se = (0, y.useMemo)(() => {
2976
2976
  var M, H;
2977
2977
  return !!(!((H = (M = A.actions).thirdparty_oauth) === null || H === void 0) && H.call(M, null));
2978
2978
  }, [A.actions]);
@@ -2990,12 +2990,12 @@ const Ua = (n) => {
2990
2990
  }), maxWidth: !0 }, { children: [S.username ? a(Ve, { markOptional: O, markError: O, type: "text", autoComplete: "username", autoCorrect: "off", flowInput: S.username, onInput: (M) => {
2991
2991
  if (M.preventDefault(), M.target instanceof HTMLInputElement) {
2992
2992
  const { value: H } = M.target;
2993
- g((ye) => Object.assign(Object.assign({}, ye), { username: H }));
2993
+ f((ye) => Object.assign(Object.assign({}, ye), { username: H }));
2994
2994
  }
2995
2995
  }, value: h.username, placeholder: d("labels.username") }) : null, S.email ? a(Ve, { markOptional: O, markError: O, type: "email", autoComplete: "email", autoCorrect: "off", flowInput: S.email, onInput: (M) => {
2996
2996
  if (M.preventDefault(), M.target instanceof HTMLInputElement) {
2997
2997
  const { value: H } = M.target;
2998
- g((ye) => Object.assign(Object.assign({}, ye), { email: H }));
2998
+ f((ye) => Object.assign(Object.assign({}, ye), { email: H }));
2999
2999
  }
3000
3000
  }, value: h.email, placeholder: d("labels.email"), pattern: "^.*[^0-9]+$" }) : null, a(ne, Object.assign({ uiAction: "email-submit", autofocus: !0 }, { children: d("labels.continue") }))] })), a(_o, Object.assign({ hidden: !Se }, { children: d("labels.or") }))] }) : null, !((i = (o = A.actions).thirdparty_oauth) === null || i === void 0) && i.call(o, null) ? (r = A.actions.thirdparty_oauth(null).inputs.provider.allowed_values) === null || r === void 0 ? void 0 : r.map((M) => a(oe, Object.assign({ onSubmit: (H) => ((ye, Ue) => Gt(void 0, void 0, void 0, function* () {
3001
3001
  ye.preventDefault(), ae(Ue);
@@ -3035,21 +3035,21 @@ var Xt = function(n, e, t, o) {
3035
3035
  };
3036
3036
  const Na = (n) => {
3037
3037
  var e, t, o, i, r, s, c, d;
3038
- const { t: l } = (0, y.useContext)(Z.TranslateContext), { hanko: u, stateHandler: h, setLoadingAction: g } = (0, y.useContext)(pe), { flowState: m } = Me(n.state), [x, P] = (0, y.useState)();
3038
+ const { t: l } = (0, y.useContext)(Z.TranslateContext), { hanko: u, stateHandler: h, setLoadingAction: f } = (0, y.useContext)(pe), { flowState: m } = Me(n.state), [x, P] = (0, y.useState)();
3039
3039
  return a(C.Fragment, { children: [a(Oe, { children: [a(he, { children: l("headlines.registerPassword") }), a(Ee, { state: m }), a(W, { children: l("texts.passwordFormatHint", { minLength: m.actions.register_password(null).inputs.new_password.min_length, maxLength: 72 }) }), a(oe, Object.assign({ onSubmit: (A) => Xt(void 0, void 0, void 0, function* () {
3040
- A.preventDefault(), g("password-submit");
3040
+ A.preventDefault(), f("password-submit");
3041
3041
  const S = yield m.actions.register_password({ new_password: x }).run();
3042
- g(null), yield u.flow.run(S, h);
3042
+ f(null), yield u.flow.run(S, h);
3043
3043
  }) }, { children: [a(Ve, { type: "password", autocomplete: "new-password", flowInput: m.actions.register_password(null).inputs.new_password, placeholder: l("labels.newPassword"), onInput: (A) => Xt(void 0, void 0, void 0, function* () {
3044
3044
  A.target instanceof HTMLInputElement && P(A.target.value);
3045
3045
  }), autofocus: !0 }), a(ne, Object.assign({ uiAction: "password-submit" }, { children: l("labels.continue") }))] }))] }), a(Re, Object.assign({ hidden: !(!((t = (e = m.actions).back) === null || t === void 0) && t.call(e, null)) && !(!((i = (o = m.actions).skip) === null || i === void 0) && i.call(o, null)) }, { children: [a(te, Object.assign({ uiAction: "back", onClick: (A) => Xt(void 0, void 0, void 0, function* () {
3046
- A.preventDefault(), g("back");
3046
+ A.preventDefault(), f("back");
3047
3047
  const S = yield m.actions.back(null).run();
3048
- g(null), yield u.flow.run(S, h);
3048
+ f(null), yield u.flow.run(S, h);
3049
3049
  }), loadingSpinnerPosition: "right", hidden: !(!((s = (r = m.actions).back) === null || s === void 0) && s.call(r, null)) }, { children: l("labels.back") })), a(te, Object.assign({ uiAction: "skip", onClick: (A) => Xt(void 0, void 0, void 0, function* () {
3050
- A.preventDefault(), g("skip");
3050
+ A.preventDefault(), f("skip");
3051
3051
  const S = yield m.actions.skip(null).run();
3052
- g(null), yield u.flow.run(S, h);
3052
+ f(null), yield u.flow.run(S, h);
3053
3053
  }), loadingSpinnerPosition: "left", hidden: !(!((d = (c = m.actions).skip) === null || d === void 0) && d.call(c, null)) }, { children: l("labels.skip") }))] }))] });
3054
3054
  };
3055
3055
  var mn = X(21), Dt = {};
@@ -3059,8 +3059,8 @@ Dt.setAttributes = nt(), Dt.insert = (n) => {
3059
3059
  const Je = mn.A && mn.A.locals ? mn.A.locals : void 0, En = function({ name: n, columnSelector: e, contentSelector: t, data: o, checkedItemID: i, setCheckedItemID: r, dropdown: s = !1 }) {
3060
3060
  const c = (0, y.useCallback)((u) => `${n}-${u}`, [n]), d = (0, y.useCallback)((u) => c(u) === i, [i, c]), l = (u) => {
3061
3061
  if (!(u.target instanceof HTMLInputElement)) return;
3062
- const h = parseInt(u.target.value, 10), g = c(h);
3063
- r(g === i ? null : g);
3062
+ const h = parseInt(u.target.value, 10), f = c(h);
3063
+ r(f === i ? null : f);
3064
3064
  };
3065
3065
  return a("div", Object.assign({ className: Je.accordion }, { children: o.map((u, h) => a("div", Object.assign({ className: Je.accordionItem }, { children: [a("input", { type: "radio", className: Je.accordionInput, id: `${n}-${h}`, name: n, onClick: l, value: h, checked: d(h) }), a("label", Object.assign({ className: Q()(Je.label, s && Je.dropdown), for: `${n}-${h}` }, { children: a("span", Object.assign({ className: Je.labelText }, { children: e(u, h) })) })), a("div", Object.assign({ className: Q()(Je.accordionContent, s && Je.dropdownContent) }, { children: t(u, h) }))] }), h)) }));
3066
3066
  }, ze = ({ children: n }) => a("h2", Object.assign({ part: "headline2", className: Q()(bn.headline, bn.grade2) }, { children: n })), Ma = ({ onEmailDelete: n, onEmailSetPrimary: e, onEmailVerify: t, checkedItemID: o, setCheckedItemID: i, emails: r = [], deletableEmailIDs: s = [] }) => {
@@ -3075,19 +3075,19 @@ const Je = mn.A && mn.A.locals ? mn.A.locals : void 0, En = function({ name: n,
3075
3075
  }, Ra = ({ onCredentialNameSubmit: n, oldName: e, onBack: t, credential: o, credentialType: i }) => {
3076
3076
  const { t: r } = (0, y.useContext)(Z.TranslateContext), [s, c] = (0, y.useState)(e);
3077
3077
  return a(C.Fragment, { children: [a(Oe, { children: [a(he, { children: r(i === "security-key" ? "headlines.renameSecurityKey" : "headlines.renamePasskey") }), a(Ee, { flowError: null }), a(W, { children: r(i === "security-key" ? "texts.renameSecurityKey" : "texts.renamePasskey") }), a(oe, Object.assign({ onSubmit: (d) => n(d, o.id, s) }, { children: [a(Ve, { type: "text", name: i, value: s, minLength: 3, maxLength: 32, required: !0, placeholder: r(i === "security-key" ? "labels.newSecurityKeyName" : "labels.newPasskeyName"), onInput: (d) => {
3078
- return l = void 0, u = void 0, g = function* () {
3078
+ return l = void 0, u = void 0, f = function* () {
3079
3079
  d.target instanceof HTMLInputElement && c(d.target.value);
3080
3080
  }, new ((h = void 0) || (h = Promise))(function(m, x) {
3081
3081
  function P(O) {
3082
3082
  try {
3083
- S(g.next(O));
3083
+ S(f.next(O));
3084
3084
  } catch (j) {
3085
3085
  x(j);
3086
3086
  }
3087
3087
  }
3088
3088
  function A(O) {
3089
3089
  try {
3090
- S(g.throw(O));
3090
+ S(f.throw(O));
3091
3091
  } catch (j) {
3092
3092
  x(j);
3093
3093
  }
@@ -3098,19 +3098,19 @@ const Je = mn.A && mn.A.locals ? mn.A.locals : void 0, En = function({ name: n,
3098
3098
  U(j);
3099
3099
  })).then(P, A);
3100
3100
  }
3101
- S((g = g.apply(l, u || [])).next());
3101
+ S((f = f.apply(l, u || [])).next());
3102
3102
  });
3103
- var l, u, h, g;
3103
+ var l, u, h, f;
3104
3104
  }, autofocus: !0 }), a(ne, Object.assign({ uiAction: "webauthn-credential-rename" }, { children: r("labels.save") }))] }))] }), a(Re, { children: a(te, Object.assign({ onClick: t, loadingSpinnerPosition: "right" }, { children: r("labels.back") })) })] });
3105
3105
  }, Yo = ({ credentials: n = [], checkedItemID: e, setCheckedItemID: t, onBack: o, onCredentialNameSubmit: i, onCredentialDelete: r, allowCredentialDeletion: s, credentialType: c }) => {
3106
- const { t: d } = (0, y.useContext)(Z.TranslateContext), { setPage: l } = (0, y.useContext)(pe), u = (g) => {
3107
- if (g.name) return g.name;
3108
- const m = g.public_key.replace(/[\W_]/g, "");
3106
+ const { t: d } = (0, y.useContext)(Z.TranslateContext), { setPage: l } = (0, y.useContext)(pe), u = (f) => {
3107
+ if (f.name) return f.name;
3108
+ const m = f.public_key.replace(/[\W_]/g, "");
3109
3109
  return `${c === "security-key" ? "SecurityKey" : "Passkey"}-${m.substring(m.length - 7, m.length)}`;
3110
- }, h = (g) => new Date(g).toLocaleString();
3111
- return a(En, { name: c === "security-key" ? "security-key-edit-dropdown" : "passkey-edit-dropdown", columnSelector: (g) => u(g), data: n, contentSelector: (g) => a(C.Fragment, { children: [a(W, { children: [a(ze, { children: d(c === "security-key" ? "headlines.renameSecurityKey" : "headlines.renamePasskey") }), d(c === "security-key" ? "texts.renameSecurityKey" : "texts.renamePasskey"), a("br", {}), a(te, Object.assign({ onClick: (m) => ((x, P, A) => {
3110
+ }, h = (f) => new Date(f).toLocaleString();
3111
+ return a(En, { name: c === "security-key" ? "security-key-edit-dropdown" : "passkey-edit-dropdown", columnSelector: (f) => u(f), data: n, contentSelector: (f) => a(C.Fragment, { children: [a(W, { children: [a(ze, { children: d(c === "security-key" ? "headlines.renameSecurityKey" : "headlines.renamePasskey") }), d(c === "security-key" ? "texts.renameSecurityKey" : "texts.renamePasskey"), a("br", {}), a(te, Object.assign({ onClick: (m) => ((x, P, A) => {
3112
3112
  x.preventDefault(), l(a(Ra, { oldName: u(P), credential: P, credentialType: A, onBack: o, onCredentialNameSubmit: i }));
3113
- })(m, g, c), loadingSpinnerPosition: "right" }, { children: d("labels.rename") }))] }), a(W, Object.assign({ hidden: !s }, { children: [a(ze, { children: d(c === "security-key" ? "headlines.deleteSecurityKey" : "headlines.deletePasskey") }), d(c === "security-key" ? "texts.deleteSecurityKey" : "texts.deletePasskey"), a("br", {}), a(te, Object.assign({ uiAction: "password-delete", dangerous: !0, onClick: (m) => r(m, g.id), loadingSpinnerPosition: "right" }, { children: d("labels.delete") }))] })), a(W, { children: [a(ze, { children: d("headlines.lastUsedAt") }), g.last_used_at ? h(g.last_used_at) : "-"] }), a(W, { children: [a(ze, { children: d("headlines.createdAt") }), h(g.created_at)] })] }), checkedItemID: e, setCheckedItemID: t });
3113
+ })(m, f, c), loadingSpinnerPosition: "right" }, { children: d("labels.rename") }))] }), a(W, Object.assign({ hidden: !s }, { children: [a(ze, { children: d(c === "security-key" ? "headlines.deleteSecurityKey" : "headlines.deletePasskey") }), d(c === "security-key" ? "texts.deleteSecurityKey" : "texts.deletePasskey"), a("br", {}), a(te, Object.assign({ uiAction: "password-delete", dangerous: !0, onClick: (m) => r(m, f.id), loadingSpinnerPosition: "right" }, { children: d("labels.delete") }))] })), a(W, { children: [a(ze, { children: d("headlines.lastUsedAt") }), f.last_used_at ? h(f.last_used_at) : "-"] }), a(W, { children: [a(ze, { children: d("headlines.createdAt") }), h(f.created_at)] })] }), checkedItemID: e, setCheckedItemID: t });
3114
3114
  }, Ft = ({ name: n, title: e, children: t, checkedItemID: o, setCheckedItemID: i }) => a(En, { dropdown: !0, name: n, columnSelector: () => e, contentSelector: () => a(C.Fragment, { children: t }), setCheckedItemID: i, checkedItemID: o, data: [{}] }), wo = ({ flowError: n }) => {
3115
3115
  const { t: e } = (0, y.useContext)(Z.TranslateContext);
3116
3116
  return a(C.Fragment, { children: n ? a("div", Object.assign({ className: Ri.errorMessage }, { children: e(`flowErrors.${n == null ? void 0 : n.code}`) })) : null });
@@ -3122,10 +3122,10 @@ const Je = mn.A && mn.A.locals ? mn.A.locals : void 0, En = function({ name: n,
3122
3122
  }, value: s, flowInput: n.email }), a(ne, Object.assign({ uiAction: "email-submit" }, { children: r("labels.save") }))] }))] }));
3123
3123
  }, Qo = ({ inputs: n, checkedItemID: e, setCheckedItemID: t, onPasswordSubmit: o, onPasswordDelete: i, allowPasswordDelete: r, passwordExists: s }) => {
3124
3124
  var c, d, l;
3125
- const { t: u } = (0, y.useContext)(Z.TranslateContext), [h, g] = (0, y.useState)("");
3126
- return a(Ft, Object.assign({ name: "password-edit-dropdown", title: u(s ? "labels.changePassword" : "labels.setPassword"), checkedItemID: e, setCheckedItemID: t }, { children: [a(W, { children: u("texts.passwordFormatHint", { minLength: (c = n.password.min_length) === null || c === void 0 ? void 0 : c.toString(10), maxLength: (d = n.password.max_length) === null || d === void 0 ? void 0 : d.toString(10) }) }), a(wo, { flowError: (l = n.password) === null || l === void 0 ? void 0 : l.error }), a(oe, Object.assign({ onSubmit: (m) => o(m, h).then(() => g("")) }, { children: [a(Ve, { markError: !0, autoComplete: "new-password", placeholder: u("labels.newPassword"), type: "password", onInput: (m) => {
3127
- m.preventDefault(), m.target instanceof HTMLInputElement && g(m.target.value);
3128
- }, value: h, flowInput: n.password }), a(ne, Object.assign({ uiAction: "password-submit" }, { children: u("labels.save") }))] })), a(te, Object.assign({ hidden: !r, uiAction: "password-delete", dangerous: !0, onClick: (m) => i(m).then(() => g("")), loadingSpinnerPosition: "right" }, { children: u("labels.delete") }))] }));
3125
+ const { t: u } = (0, y.useContext)(Z.TranslateContext), [h, f] = (0, y.useState)("");
3126
+ return a(Ft, Object.assign({ name: "password-edit-dropdown", title: u(s ? "labels.changePassword" : "labels.setPassword"), checkedItemID: e, setCheckedItemID: t }, { children: [a(W, { children: u("texts.passwordFormatHint", { minLength: (c = n.password.min_length) === null || c === void 0 ? void 0 : c.toString(10), maxLength: (d = n.password.max_length) === null || d === void 0 ? void 0 : d.toString(10) }) }), a(wo, { flowError: (l = n.password) === null || l === void 0 ? void 0 : l.error }), a(oe, Object.assign({ onSubmit: (m) => o(m, h).then(() => f("")) }, { children: [a(Ve, { markError: !0, autoComplete: "new-password", placeholder: u("labels.newPassword"), type: "password", onInput: (m) => {
3127
+ m.preventDefault(), m.target instanceof HTMLInputElement && f(m.target.value);
3128
+ }, value: h, flowInput: n.password }), a(ne, Object.assign({ uiAction: "password-submit" }, { children: u("labels.save") }))] })), a(te, Object.assign({ hidden: !r, uiAction: "password-delete", dangerous: !0, onClick: (m) => i(m).then(() => f("")), loadingSpinnerPosition: "right" }, { children: u("labels.delete") }))] }));
3129
3129
  }, Go = ({ checkedItemID: n, setCheckedItemID: e, onCredentialSubmit: t, credentialType: o }) => {
3130
3130
  const { t: i } = (0, y.useContext)(Z.TranslateContext), r = ft.supported();
3131
3131
  return a(Ft, Object.assign({ name: o === "security-key" ? "security-key-create-dropdown" : "passkey-create-dropdown", title: i(o === "security-key" ? "labels.createSecurityKey" : "labels.createPasskey"), checkedItemID: n, setCheckedItemID: e }, { children: [a(W, { children: i(o === "security-key" ? "texts.securityKeySetUp" : "texts.setupPasskey") }), a(oe, Object.assign({ onSubmit: t }, { children: a(ne, Object.assign({ uiAction: o === "security-key" ? "security-key-submit" : "passkey-submit", title: r ? null : i("labels.webauthnUnsupported") }, { children: i(o === "security-key" ? "labels.createSecurityKey" : "labels.createPasskey") })) }))] }));
@@ -3174,7 +3174,7 @@ var je = function(n, e, t, o) {
3174
3174
  });
3175
3175
  };
3176
3176
  const qi = (n) => {
3177
- var e, t, o, i, r, s, c, d, l, u, h, g, m, x, P, A, S, O, j, U, N, ae, ke, se, Se, M, H, ye, Ue, Ie, Ne, le, ce, me, De, k, p, _, L, K, fe, He, We, Fe, f, v, b, D, T, I, z, ee;
3177
+ var e, t, o, i, r, s, c, d, l, u, h, f, m, x, P, A, S, O, j, U, N, ae, ke, se, Se, M, H, ye, Ue, Ie, Ne, le, ce, me, De, k, p, _, L, K, fe, He, We, Fe, g, v, b, D, T, I, z, ee;
3178
3178
  const { t: G } = (0, y.useContext)(Z.TranslateContext), { hanko: be, setLoadingAction: w, stateHandler: we, setUIState: J, setPage: R } = (0, y.useContext)(pe), { flowState: E } = Me(n.state), [xe, V] = (0, y.useState)(""), F = (q, B, Qe) => je(void 0, void 0, void 0, function* () {
3179
3179
  q.preventDefault(), w(B);
3180
3180
  const In = yield Qe();
@@ -3190,7 +3190,7 @@ const qi = (n) => {
3190
3190
  }), rt = (q) => (q.preventDefault(), R(a(qi, { state: E, enablePasskeys: n.enablePasskeys })), Promise.resolve());
3191
3191
  return a(Oe, { children: [a(Ee, { state: ((e = E == null ? void 0 : E.error) === null || e === void 0 ? void 0 : e.code) !== "form_data_invalid_error" ? E : null }), !((o = (t = E.actions).username_create) === null || o === void 0) && o.call(t, null) || !((r = (i = E.actions).username_update) === null || r === void 0) && r.call(i, null) || !((c = (s = E.actions).username_delete) === null || c === void 0) && c.call(s, null) ? a(C.Fragment, { children: [a(he, { children: G("labels.username") }), E.payload.user.username ? a(W, { children: a("b", { children: E.payload.user.username.username }) }) : null, a(W, { children: [!((l = (d = E.actions).username_create) === null || l === void 0) && l.call(d, null) ? a(Xo, { inputs: E.actions.username_create(null).inputs, hasUsername: !!E.payload.user.username, allowUsernameDeletion: !!(!((h = (u = E.actions).username_delete) === null || h === void 0) && h.call(u, null)), onUsernameSubmit: (q, B) => je(void 0, void 0, void 0, function* () {
3192
3192
  return F(q, "username-set", E.actions.username_create({ username: B }).run);
3193
- }), onUsernameDelete: it, checkedItemID: xe, setCheckedItemID: V }) : null, !((m = (g = E.actions).username_update) === null || m === void 0) && m.call(g, null) ? a(Xo, { inputs: E.actions.username_update(null).inputs, hasUsername: !!E.payload.user.username, allowUsernameDeletion: !!(!((P = (x = E.actions).username_delete) === null || P === void 0) && P.call(x, null)), onUsernameSubmit: (q, B) => je(void 0, void 0, void 0, function* () {
3193
+ }), onUsernameDelete: it, checkedItemID: xe, setCheckedItemID: V }) : null, !((m = (f = E.actions).username_update) === null || m === void 0) && m.call(f, null) ? a(Xo, { inputs: E.actions.username_update(null).inputs, hasUsername: !!E.payload.user.username, allowUsernameDeletion: !!(!((P = (x = E.actions).username_delete) === null || P === void 0) && P.call(x, null)), onUsernameSubmit: (q, B) => je(void 0, void 0, void 0, function* () {
3194
3194
  return F(q, "username-set", E.actions.username_update({ username: B }).run);
3195
3195
  }), onUsernameDelete: it, checkedItemID: xe, setCheckedItemID: V }) : null] })] }) : null, !((S = (A = E.payload) === null || A === void 0 ? void 0 : A.user) === null || S === void 0) && S.emails || !((j = (O = E.actions).email_create) === null || j === void 0) && j.call(O, null) ? a(C.Fragment, { children: [a(he, { children: G("headlines.profileEmails") }), a(W, { children: [a(Ma, { emails: E.payload.user.emails, onEmailDelete: (q, B) => je(void 0, void 0, void 0, function* () {
3196
3196
  return F(q, "email-delete", E.actions.email_delete({ email_id: B }).run);
@@ -3216,7 +3216,7 @@ const qi = (n) => {
3216
3216
  return F(q, "auth-app-add", E.actions.continue_to_otp_secret_creation(null).run);
3217
3217
  }), onDelete: (q) => je(void 0, void 0, void 0, function* () {
3218
3218
  return F(q, "auth-app-remove", E.actions.otp_secret_delete(null).run);
3219
- }), allowDeletion: !!(!((v = (f = E.actions).otp_secret_delete) === null || v === void 0) && v.call(f, null)), authAppSetUp: (b = E.payload.user.mfa_config) === null || b === void 0 ? void 0 : b.auth_app_set_up, checkedItemID: xe, setCheckedItemID: V }) })] }) : null, E.payload.sessions ? a(C.Fragment, { children: [a(he, { children: G("headlines.profileSessions") }), a(W, { children: a(Ha, { sessions: E.payload.sessions, setError: null, checkedItemID: xe, setCheckedItemID: V, onSessionDelete: (q, B) => je(void 0, void 0, void 0, function* () {
3219
+ }), allowDeletion: !!(!((v = (g = E.actions).otp_secret_delete) === null || v === void 0) && v.call(g, null)), authAppSetUp: (b = E.payload.user.mfa_config) === null || b === void 0 ? void 0 : b.auth_app_set_up, checkedItemID: xe, setCheckedItemID: V }) })] }) : null, E.payload.sessions ? a(C.Fragment, { children: [a(he, { children: G("headlines.profileSessions") }), a(W, { children: a(Ha, { sessions: E.payload.sessions, setError: null, checkedItemID: xe, setCheckedItemID: V, onSessionDelete: (q, B) => je(void 0, void 0, void 0, function* () {
3220
3220
  return F(q, "session-delete", E.actions.session_delete({ session_id: B }).run);
3221
3221
  }), deletableSessionIDs: (I = (T = (D = E.actions).session_delete) === null || T === void 0 ? void 0 : T.call(D, null).inputs.session_id.allowed_values) === null || I === void 0 ? void 0 : I.map((q) => q.value) }) })] }) : null, !((ee = (z = E.actions).account_delete) === null || ee === void 0) && ee.call(z, null) ? a(C.Fragment, { children: [a(On, {}), a(W, { children: a(_o, {}) }), a(W, { children: a(oe, Object.assign({ onSubmit: (q) => (q.preventDefault(), R(a(za, { onBack: rt, onAccountDelete: Vt })), Promise.resolve()) }, { children: a(ne, Object.assign({ dangerous: !0 }, { children: G("headlines.deleteAccount") })) })) })] }) : null] });
3222
3222
  }, Fa = qi, ei = ({ state: n, error: e }) => {
@@ -3255,14 +3255,14 @@ var zn = function(n, e, t, o) {
3255
3255
  const Ka = (n) => {
3256
3256
  var e, t, o, i;
3257
3257
  const { t: r } = (0, y.useContext)(Z.TranslateContext), { hanko: s, stateHandler: c, setLoadingAction: d } = (0, y.useContext)(pe), { flowState: l } = Me(n.state), [u, h] = (0, y.useState)();
3258
- return a(C.Fragment, { children: [a(Oe, { children: [a(he, { children: r("headlines.createEmail") }), a(Ee, { state: l }), a(oe, Object.assign({ onSubmit: (g) => zn(void 0, void 0, void 0, function* () {
3259
- g.preventDefault(), d("email-submit");
3258
+ return a(C.Fragment, { children: [a(Oe, { children: [a(he, { children: r("headlines.createEmail") }), a(Ee, { state: l }), a(oe, Object.assign({ onSubmit: (f) => zn(void 0, void 0, void 0, function* () {
3259
+ f.preventDefault(), d("email-submit");
3260
3260
  const m = yield l.actions.email_address_set({ email: u }).run();
3261
3261
  d(null), yield s.flow.run(m, c);
3262
- }) }, { children: [a(Ve, { type: "email", autoComplete: "email", autoCorrect: "off", flowInput: (t = (e = l.actions).email_address_set) === null || t === void 0 ? void 0 : t.call(e, null).inputs.email, onInput: (g) => zn(void 0, void 0, void 0, function* () {
3263
- g.target instanceof HTMLInputElement && h(g.target.value);
3264
- }), placeholder: r("labels.email"), pattern: "^.*[^0-9]+$", value: u }), a(ne, Object.assign({ uiAction: "email-submit" }, { children: r("labels.continue") }))] }))] }), a(Re, Object.assign({ hidden: !(!((i = (o = l.actions).skip) === null || i === void 0) && i.call(o, null)) }, { children: [a("span", { hidden: !0 }), a(te, Object.assign({ uiAction: "skip", onClick: (g) => zn(void 0, void 0, void 0, function* () {
3265
- g.preventDefault(), d("skip");
3262
+ }) }, { children: [a(Ve, { type: "email", autoComplete: "email", autoCorrect: "off", flowInput: (t = (e = l.actions).email_address_set) === null || t === void 0 ? void 0 : t.call(e, null).inputs.email, onInput: (f) => zn(void 0, void 0, void 0, function* () {
3263
+ f.target instanceof HTMLInputElement && h(f.target.value);
3264
+ }), placeholder: r("labels.email"), pattern: "^.*[^0-9]+$", value: u }), a(ne, Object.assign({ uiAction: "email-submit" }, { children: r("labels.continue") }))] }))] }), a(Re, Object.assign({ hidden: !(!((i = (o = l.actions).skip) === null || i === void 0) && i.call(o, null)) }, { children: [a("span", { hidden: !0 }), a(te, Object.assign({ uiAction: "skip", onClick: (f) => zn(void 0, void 0, void 0, function* () {
3265
+ f.preventDefault(), d("skip");
3266
3266
  const m = yield l.actions.skip(null).run();
3267
3267
  d(null), yield s.flow.run(m, c);
3268
3268
  }), loadingSpinnerPosition: "left" }, { children: r("labels.skip") }))] }))] });
@@ -3295,14 +3295,14 @@ var Hn = function(n, e, t, o) {
3295
3295
  const Va = (n) => {
3296
3296
  var e, t, o, i;
3297
3297
  const { t: r } = (0, y.useContext)(Z.TranslateContext), { hanko: s, stateHandler: c, setLoadingAction: d } = (0, y.useContext)(pe), { flowState: l } = Me(n.state), [u, h] = (0, y.useState)();
3298
- return a(C.Fragment, { children: [a(Oe, { children: [a(he, { children: r("headlines.createUsername") }), a(Ee, { state: l }), a(oe, Object.assign({ onSubmit: (g) => Hn(void 0, void 0, void 0, function* () {
3299
- g.preventDefault(), d("username-set");
3298
+ return a(C.Fragment, { children: [a(Oe, { children: [a(he, { children: r("headlines.createUsername") }), a(Ee, { state: l }), a(oe, Object.assign({ onSubmit: (f) => Hn(void 0, void 0, void 0, function* () {
3299
+ f.preventDefault(), d("username-set");
3300
3300
  const m = yield l.actions.username_create({ username: u }).run();
3301
3301
  d(null), yield s.flow.run(m, c);
3302
- }) }, { children: [a(Ve, { type: "text", autoComplete: "username", autoCorrect: "off", flowInput: (t = (e = l.actions).username_create) === null || t === void 0 ? void 0 : t.call(e, null).inputs.username, onInput: (g) => Hn(void 0, void 0, void 0, function* () {
3303
- g.target instanceof HTMLInputElement && h(g.target.value);
3304
- }), value: u, placeholder: r("labels.username") }), a(ne, Object.assign({ uiAction: "username-set" }, { children: r("labels.continue") }))] }))] }), a(Re, Object.assign({ hidden: !(!((i = (o = l.actions).skip) === null || i === void 0) && i.call(o, null)) }, { children: [a("span", { hidden: !0 }), a(te, Object.assign({ uiAction: "skip", onClick: (g) => Hn(void 0, void 0, void 0, function* () {
3305
- g.preventDefault(), d("skip");
3302
+ }) }, { children: [a(Ve, { type: "text", autoComplete: "username", autoCorrect: "off", flowInput: (t = (e = l.actions).username_create) === null || t === void 0 ? void 0 : t.call(e, null).inputs.username, onInput: (f) => Hn(void 0, void 0, void 0, function* () {
3303
+ f.target instanceof HTMLInputElement && h(f.target.value);
3304
+ }), value: u, placeholder: r("labels.username") }), a(ne, Object.assign({ uiAction: "username-set" }, { children: r("labels.continue") }))] }))] }), a(Re, Object.assign({ hidden: !(!((i = (o = l.actions).skip) === null || i === void 0) && i.call(o, null)) }, { children: [a("span", { hidden: !0 }), a(te, Object.assign({ uiAction: "skip", onClick: (f) => Hn(void 0, void 0, void 0, function* () {
3305
+ f.preventDefault(), d("skip");
3306
3306
  const m = yield l.actions.skip(null).run();
3307
3307
  d(null), yield s.flow.run(m, c);
3308
3308
  }), loadingSpinnerPosition: "left" }, { children: r("labels.skip") }))] }))] });
@@ -3333,7 +3333,7 @@ var en = function(n, e, t, o) {
3333
3333
  });
3334
3334
  };
3335
3335
  const Ba = (n) => {
3336
- var e, t, o, i, r, s, c, d, l, u, h, g;
3336
+ var e, t, o, i, r, s, c, d, l, u, h, f;
3337
3337
  const { t: m } = (0, y.useContext)(Z.TranslateContext), { hanko: x, setLoadingAction: P, stateHandler: A } = (0, y.useContext)(pe), { flowState: S } = Me(n.state);
3338
3338
  return a(C.Fragment, { children: [a(Oe, { children: [a(he, { children: m("headlines.setupLoginMethod") }), a(Ee, { flowError: S == null ? void 0 : S.error }), a(W, { children: m("texts.selectLoginMethodForFutureLogins") }), a(oe, Object.assign({ hidden: !(!((t = (e = S.actions).continue_to_passkey_registration) === null || t === void 0) && t.call(e, null)), onSubmit: (O) => en(void 0, void 0, void 0, function* () {
3339
3339
  O.preventDefault(), P("passkey-submit");
@@ -3351,7 +3351,7 @@ const Ba = (n) => {
3351
3351
  O.preventDefault(), P("skip");
3352
3352
  const j = yield S.actions.skip(null).run();
3353
3353
  P(null), yield x.flow.run(j, A);
3354
- }), loadingSpinnerPosition: "left", hidden: !(!((g = (h = S.actions).skip) === null || g === void 0) && g.call(h, null)) }, { children: m("labels.skip") }))] }))] });
3354
+ }), loadingSpinnerPosition: "left", hidden: !(!((f = (h = S.actions).skip) === null || f === void 0) && f.call(h, null)) }, { children: m("labels.skip") }))] }))] });
3355
3355
  };
3356
3356
  var Wn = function(n, e, t, o) {
3357
3357
  return new (t || (t = Promise))(function(i, r) {
@@ -3380,7 +3380,7 @@ var Wn = function(n, e, t, o) {
3380
3380
  };
3381
3381
  const Za = (n) => {
3382
3382
  var e, t, o, i;
3383
- const { t: r } = (0, y.useContext)(Z.TranslateContext), { flowState: s } = Me(n.state), { hanko: c, setLoadingAction: d, stateHandler: l } = (0, y.useContext)(pe), [u, h] = (0, y.useState)([]), g = (0, y.useCallback)((m) => Wn(void 0, void 0, void 0, function* () {
3383
+ const { t: r } = (0, y.useContext)(Z.TranslateContext), { flowState: s } = Me(n.state), { hanko: c, setLoadingAction: d, stateHandler: l } = (0, y.useContext)(pe), [u, h] = (0, y.useState)([]), f = (0, y.useCallback)((m) => Wn(void 0, void 0, void 0, function* () {
3384
3384
  d("passcode-submit");
3385
3385
  const x = yield s.actions.otp_code_validate({ otp_code: m }).run();
3386
3386
  d(null), yield c.flow.run(x, l);
@@ -3389,9 +3389,9 @@ const Za = (n) => {
3389
3389
  var m;
3390
3390
  ((m = s.error) === null || m === void 0 ? void 0 : m.code) === "passcode_invalid" && h([]);
3391
3391
  }, [s]), a(C.Fragment, { children: [a(Oe, { children: [a(he, { children: r("headlines.otpLogin") }), a(Ee, { state: s }), a(W, { children: r("texts.otpLogin") }), a(oe, Object.assign({ onSubmit: (m) => Wn(void 0, void 0, void 0, function* () {
3392
- return m.preventDefault(), g(u.join(""));
3392
+ return m.preventDefault(), f(u.join(""));
3393
3393
  }) }, { children: [a(ko, { onInput: (m) => {
3394
- if (h(m), m.filter((x) => x !== "").length === 6) return g(m.join(""));
3394
+ if (h(m), m.filter((x) => x !== "").length === 6) return f(m.join(""));
3395
3395
  }, passcodeDigits: u, numberOfInputs: 6 }), a(ne, Object.assign({ uiAction: "passcode-submit" }, { children: r("labels.continue") }))] }))] }), a(Re, Object.assign({ hidden: !(!((t = (e = s.actions).continue_to_login_security_key) === null || t === void 0) && t.call(e, null)) }, { children: a(te, Object.assign({ uiAction: "skip", onClick: (m) => Wn(void 0, void 0, void 0, function* () {
3396
3396
  m.preventDefault(), d("skip");
3397
3397
  const x = yield s.actions.continue_to_login_security_key(null).run();
@@ -3463,14 +3463,14 @@ var tn = function(n, e, t, o) {
3463
3463
  };
3464
3464
  const Ya = (n) => {
3465
3465
  var e, t, o, i, r, s, c, d;
3466
- const { t: l } = (0, y.useContext)(Z.TranslateContext), { hanko: u, setLoadingAction: h, stateHandler: g } = (0, y.useContext)(pe), { flowState: m } = Me(n.state), x = (S) => tn(void 0, void 0, void 0, function* () {
3466
+ const { t: l } = (0, y.useContext)(Z.TranslateContext), { hanko: u, setLoadingAction: h, stateHandler: f } = (0, y.useContext)(pe), { flowState: m } = Me(n.state), x = (S) => tn(void 0, void 0, void 0, function* () {
3467
3467
  S.preventDefault(), h("passcode-submit");
3468
3468
  const O = yield m.actions.continue_to_security_key_creation(null).run();
3469
- h(null), yield u.flow.run(O, g);
3469
+ h(null), yield u.flow.run(O, f);
3470
3470
  }), P = (S) => tn(void 0, void 0, void 0, function* () {
3471
3471
  S.preventDefault(), h("password-submit");
3472
3472
  const O = yield m.actions.continue_to_otp_secret_creation(null).run();
3473
- h(null), yield u.flow.run(O, g);
3473
+ h(null), yield u.flow.run(O, f);
3474
3474
  }), A = (0, y.useMemo)(() => {
3475
3475
  const { actions: S } = m;
3476
3476
  return S.continue_to_security_key_creation && !S.continue_to_otp_secret_creation ? x : !S.continue_to_security_key_creation && S.continue_to_otp_secret_creation ? P : void 0;
@@ -3478,11 +3478,11 @@ const Ya = (n) => {
3478
3478
  return a(C.Fragment, { children: [a(Oe, { children: [a(he, { children: l("headlines.mfaSetUp") }), a(Ee, { flowError: m == null ? void 0 : m.error }), a(W, { children: l("texts.mfaSetUp") }), A ? a(oe, Object.assign({ onSubmit: A }, { children: a(ne, Object.assign({ uiAction: "passcode-submit" }, { children: l("labels.continue") })) })) : a(C.Fragment, { children: [a(oe, Object.assign({ hidden: !(!((t = (e = m.actions).continue_to_security_key_creation) === null || t === void 0) && t.call(e, null)), onSubmit: x }, { children: a(ne, Object.assign({ secondary: !0, uiAction: "passcode-submit", icon: "securityKey" }, { children: l("labels.securityKey") })) })), a(oe, Object.assign({ hidden: !(!((i = (o = m.actions).continue_to_otp_secret_creation) === null || i === void 0) && i.call(o, null)), onSubmit: P }, { children: a(ne, Object.assign({ secondary: !0, uiAction: "password-submit", icon: "qrCodeScanner" }, { children: l("labels.authenticatorApp") })) }))] })] }), a(Re, { children: [a(te, Object.assign({ uiAction: "back", onClick: (S) => tn(void 0, void 0, void 0, function* () {
3479
3479
  S.preventDefault(), h("back");
3480
3480
  const O = yield m.actions.back(null).run();
3481
- h(null), yield u.flow.run(O, g);
3481
+ h(null), yield u.flow.run(O, f);
3482
3482
  }), loadingSpinnerPosition: "right", hidden: !(!((s = (r = m.actions).back) === null || s === void 0) && s.call(r, null)) }, { children: l("labels.back") })), a(te, Object.assign({ uiAction: "skip", onClick: (S) => tn(void 0, void 0, void 0, function* () {
3483
3483
  S.preventDefault(), h("skip");
3484
3484
  const O = yield m.actions.skip(null).run();
3485
- h(null), yield u.flow.run(O, g);
3485
+ h(null), yield u.flow.run(O, f);
3486
3486
  }), loadingSpinnerPosition: "left", hidden: !(!((d = (c = m.actions).skip) === null || d === void 0) && d.call(c, null)) }, { children: l("labels.skip") }))] })] });
3487
3487
  };
3488
3488
  var fn = X(560), jt = {};
@@ -3500,7 +3500,7 @@ const Qa = fn.A && fn.A.locals ? fn.A.locals : void 0, Ga = ({ children: n, text
3500
3500
  console.error("Failed to copy: ", u);
3501
3501
  }
3502
3502
  }, new ((d = void 0) || (d = Promise))(function(u, h) {
3503
- function g(P) {
3503
+ function f(P) {
3504
3504
  try {
3505
3505
  x(l.next(P));
3506
3506
  } catch (A) {
@@ -3518,7 +3518,7 @@ const Qa = fn.A && fn.A.locals ? fn.A.locals : void 0, Ga = ({ children: n, text
3518
3518
  var A;
3519
3519
  P.done ? u(P.value) : (A = P.value, A instanceof d ? A : new d(function(S) {
3520
3520
  S(A);
3521
- })).then(g, m);
3521
+ })).then(f, m);
3522
3522
  }
3523
3523
  x((l = l.apply(s, c || [])).next());
3524
3524
  });
@@ -3687,7 +3687,7 @@ const nn = "flow-state", pe = (0, C.createContext)(null), os = (n) => {
3687
3687
  }
3688
3688
  return L;
3689
3689
  }(n, ["lang", "experimental", "prefilledEmail", "prefilledUsername", "globalOptions", "createWebauthnAbortSignal"]);
3690
- const { hanko: d, injectStyles: l, hidePasskeyButtonOnLogin: u, translations: h, translationsLocation: g, fallbackLanguage: m } = r;
3690
+ const { hanko: d, injectStyles: l, hidePasskeyButtonOnLogin: u, translations: h, translationsLocation: f, fallbackLanguage: m } = r;
3691
3691
  d.setLang((e == null ? void 0 : e.toString()) || m);
3692
3692
  const x = (0, y.useRef)(null), P = (0, y.useMemo)(() => `${r.storageKey}_last_login`, [r.storageKey]), [A, S] = (0, y.useState)(c.componentName), O = (0, y.useMemo)(() => t.split(" ").filter((p) => p.length).map((p) => p), [t]), j = (0, y.useMemo)(() => a(Ca, {}), []), [U, N] = (0, y.useState)(j), [, ae] = (0, y.useState)(d), [ke, se] = (0, y.useState)(), [Se, M] = (0, y.useState)({ email: o, username: i }), H = (0, y.useCallback)((p) => {
3693
3693
  M((_) => Object.assign(Object.assign({}, _), { loadingAction: p, succeededAction: null, error: null, lastAction: p || _.lastAction }));
@@ -3861,7 +3861,7 @@ const nn = "flow-state", pe = (0, C.createContext)(null), os = (n) => {
3861
3861
  ["auth", "login", "registration"].includes(A) ? (d.onUserLoggedOut(p), d.onSessionExpired(p), d.onUserDeleted(p)) : A === "profile" && d.onSessionCreated(p);
3862
3862
  }, []);
3863
3863
  const k = ft.supported();
3864
- return a(pe.Provider, Object.assign({ value: { init: De, initialComponentName: c.componentName, isDisabled: Ie, setUIState: M, setLoadingAction: H, setSucceededAction: ye, uiState: Se, hanko: d, setHanko: ae, lang: (e == null ? void 0 : e.toString()) || m, prefilledEmail: o, prefilledUsername: i, componentName: A, setComponentName: S, experimentalFeatures: O, hidePasskeyButtonOnLogin: u, page: U, setPage: N, stateHandler: ce, lastLogin: ke } }, { children: a(Z.TranslateProvider, Object.assign({ translations: h, fallbackLang: m, root: g }, { children: a(sa, Object.assign({ ref: x }, { children: A !== "events" ? a(C.Fragment, { children: [l ? a("style", { dangerouslySetInnerHTML: { __html: window._hankoStyle.innerHTML } }) : null, U] }) : null })) })) }));
3864
+ return a(pe.Provider, Object.assign({ value: { init: De, initialComponentName: c.componentName, isDisabled: Ie, setUIState: M, setLoadingAction: H, setSucceededAction: ye, uiState: Se, hanko: d, setHanko: ae, lang: (e == null ? void 0 : e.toString()) || m, prefilledEmail: o, prefilledUsername: i, componentName: A, setComponentName: S, experimentalFeatures: O, hidePasskeyButtonOnLogin: u, page: U, setPage: N, stateHandler: ce, lastLogin: ke } }, { children: a(Z.TranslateProvider, Object.assign({ translations: h, fallbackLang: m, root: f }, { children: a(sa, Object.assign({ ref: x }, { children: A !== "events" ? a(C.Fragment, { children: [l ? a("style", { dangerouslySetInnerHTML: { __html: window._hankoStyle.innerHTML } }) : null, U] }) : null })) })) }));
3865
3865
  }, is = { en: X(6).en };
3866
3866
  var zi = function(n, e, t, o) {
3867
3867
  return new (t || (t = Promise))(function(i, r) {
@@ -3898,8 +3898,8 @@ const ds = () => (on && on.abort(), on = new AbortController(), on.signal), $t =
3898
3898
  }
3899
3899
  (d.prototype = Object.create(HTMLElement.prototype)).constructor = d, d.prototype.connectedCallback = Sr, d.prototype.attributeChangedCallback = xr, d.prototype.disconnectedCallback = Ar, s = s || i.observedAttributes || Object.keys(i.propTypes || {}), d.observedAttributes = s, s.forEach(function(l) {
3900
3900
  Object.defineProperty(d.prototype, l, { get: function() {
3901
- var u, h, g, m;
3902
- return (u = (h = this._vdom) == null || (g = h.props) == null ? void 0 : g[l]) != null ? u : (m = this._props) == null ? void 0 : m[l];
3901
+ var u, h, f, m;
3902
+ return (u = (h = this._vdom) == null || (f = h.props) == null ? void 0 : f[l]) != null ? u : (m = this._props) == null ? void 0 : m[l];
3903
3903
  }, set: function(u) {
3904
3904
  this._vdom ? this.attributeChangedCallback(l, null, u) : (this._props || (this._props = {}), this._props[l] = u, this.connectedCallback());
3905
3905
  var h = typeof u;
@@ -5307,6 +5307,7 @@ let ie = class extends Mt {
5307
5307
  }
5308
5308
  }
5309
5309
  async checkSession() {
5310
+ var n, e, t, o, i;
5310
5311
  if (this.log("Checking for existing Hanko session..."), !this._hanko) {
5311
5312
  this.log("Hanko instance not initialized yet");
5312
5313
  return;
@@ -5314,7 +5315,7 @@ let ie = class extends Mt {
5314
5315
  try {
5315
5316
  this.log("Checking session validity via cookie...");
5316
5317
  try {
5317
- const n = await fetch(
5318
+ const r = await fetch(
5318
5319
  `${this.hankoUrl}/sessions/validate`,
5319
5320
  {
5320
5321
  method: "GET",
@@ -5325,9 +5326,9 @@ let ie = class extends Mt {
5325
5326
  }
5326
5327
  }
5327
5328
  );
5328
- if (n.ok) {
5329
- const e = await n.json();
5330
- if (e.is_valid === !1) {
5329
+ if (r.ok) {
5330
+ const s = await r.json();
5331
+ if (s.is_valid === !1) {
5331
5332
  this.log(
5332
5333
  "Session validation returned is_valid:false - no valid session"
5333
5334
  ), this.user && (this.user = null, this.profilePictureUrl = "", this.dispatchEvent(
@@ -5335,9 +5336,9 @@ let ie = class extends Mt {
5335
5336
  ));
5336
5337
  return;
5337
5338
  }
5338
- this.log("Valid Hanko session found via cookie"), this.log("Session data:", e);
5339
+ this.log("Valid Hanko session found via cookie"), this.log("Session data:", s);
5339
5340
  try {
5340
- const t = await fetch(`${this.hankoUrl}/me`, {
5341
+ const c = await fetch(`${this.hankoUrl}/me`, {
5341
5342
  method: "GET",
5342
5343
  credentials: "include",
5343
5344
  // Include httpOnly cookies
@@ -5345,40 +5346,40 @@ let ie = class extends Mt {
5345
5346
  "Content-Type": "application/json"
5346
5347
  }
5347
5348
  });
5348
- let o = !0;
5349
- if (t.ok) {
5350
- const i = await t.json();
5351
- this.log("User data retrieved from /me:", i), i.email ? (this.user = {
5352
- id: i.user_id || i.id,
5353
- email: i.email,
5354
- username: i.username || null,
5355
- emailVerified: i.email_verified || i.verified || !1
5356
- }, o = !1) : this.log("/me has no email, will use SDK fallback");
5349
+ let d = !0;
5350
+ if (c.ok) {
5351
+ const l = await c.json();
5352
+ this.log("User data retrieved from /me:", l), l.email ? (this.user = {
5353
+ id: l.user_id || l.id,
5354
+ email: l.email,
5355
+ username: l.username || null,
5356
+ emailVerified: l.email_verified || l.verified || !1
5357
+ }, d = !1) : this.log("/me has no email, will use SDK fallback");
5357
5358
  }
5358
- if (o) {
5359
+ if (d) {
5359
5360
  this.log("Using SDK to get user with email");
5360
- const i = await this._hanko.user.getCurrent();
5361
+ const l = await this._hanko.getCurrentUser();
5361
5362
  this.user = {
5362
- id: i.id,
5363
- email: i.email,
5364
- username: i.username,
5365
- emailVerified: i.email_verified || !1
5363
+ id: l.user_id,
5364
+ email: ((e = (n = l.emails) == null ? void 0 : n[0]) == null ? void 0 : e.address) || null,
5365
+ username: ((t = l.username) == null ? void 0 : t.username) || null,
5366
+ emailVerified: ((i = (o = l.emails) == null ? void 0 : o[0]) == null ? void 0 : i.is_verified) || !1
5366
5367
  };
5367
5368
  }
5368
- } catch (t) {
5369
- this.log("Failed to get user data:", t), e.user_id && (this.user = {
5370
- id: e.user_id,
5371
- email: e.email || null,
5369
+ } catch (c) {
5370
+ this.log("Failed to get user data:", c), s.user_id && (this.user = {
5371
+ id: s.user_id,
5372
+ email: s.email || null,
5372
5373
  username: null,
5373
5374
  emailVerified: !1
5374
5375
  });
5375
5376
  }
5376
5377
  if (this.user) {
5377
- const t = li(window.location.hostname), o = sessionStorage.getItem(t);
5378
- if (this.verifySession && this.redirectAfterLogin && !o) {
5378
+ const c = li(window.location.hostname), d = sessionStorage.getItem(c);
5379
+ if (this.verifySession && this.redirectAfterLogin && !d) {
5379
5380
  this.log(
5380
5381
  "verify-session enabled, redirecting to callback for app verification..."
5381
- ), sessionStorage.setItem(t, "true"), window.location.href = this.redirectAfterLogin;
5382
+ ), sessionStorage.setItem(c, "true"), window.location.href = this.redirectAfterLogin;
5382
5383
  return;
5383
5384
  }
5384
5385
  if (!await this.checkAppMapping())
@@ -5398,11 +5399,11 @@ let ie = class extends Mt {
5398
5399
  }
5399
5400
  } else
5400
5401
  this.log("No valid session cookie found - user needs to login");
5401
- } catch (n) {
5402
- this.log("Session validation failed:", n), this.log("No valid session - user needs to login");
5402
+ } catch (r) {
5403
+ this.log("Session validation failed:", r), this.log("No valid session - user needs to login");
5403
5404
  }
5404
- } catch (n) {
5405
- this.log("Session check error:", n), this.log("No existing session - user needs to login");
5405
+ } catch (r) {
5406
+ this.log("Session check error:", r), this.log("No existing session - user needs to login");
5406
5407
  } finally {
5407
5408
  this._isPrimary && this._broadcastState();
5408
5409
  }
@@ -5527,72 +5528,72 @@ let ie = class extends Mt {
5527
5528
  });
5528
5529
  }
5529
5530
  async handleHankoSuccess(n) {
5530
- var o;
5531
+ var o, i, r, s, c, d;
5531
5532
  if (this.log("Hanko auth success:", n.detail), !this._hanko) {
5532
5533
  this.logError("Hanko instance not initialized");
5533
5534
  return;
5534
5535
  }
5535
5536
  let e = !1;
5536
5537
  try {
5537
- const i = new AbortController(), r = setTimeout(() => i.abort(), 5e3), s = await fetch(`${this.hankoUrl}/me`, {
5538
+ const l = new AbortController(), u = setTimeout(() => l.abort(), 5e3), h = await fetch(`${this.hankoUrl}/me`, {
5538
5539
  method: "GET",
5539
5540
  credentials: "include",
5540
5541
  // Include httpOnly cookies
5541
5542
  headers: {
5542
5543
  "Content-Type": "application/json"
5543
5544
  },
5544
- signal: i.signal
5545
+ signal: l.signal
5545
5546
  });
5546
- if (clearTimeout(r), s.ok) {
5547
- const c = await s.json();
5548
- this.log("User data retrieved from /me:", c), c.email ? (this.user = {
5549
- id: c.user_id || c.id,
5550
- email: c.email,
5551
- username: c.username || null,
5552
- emailVerified: c.email_verified || c.verified || !1
5547
+ if (clearTimeout(u), h.ok) {
5548
+ const f = await h.json();
5549
+ this.log("User data retrieved from /me:", f), f.email ? (this.user = {
5550
+ id: f.user_id || f.id,
5551
+ email: f.email,
5552
+ username: f.username || null,
5553
+ emailVerified: f.email_verified || f.verified || !1
5553
5554
  }, e = !0) : this.log("/me has no email, will try SDK fallback");
5554
5555
  } else
5555
5556
  this.log("/me endpoint returned non-OK status, will try SDK fallback");
5556
- } catch (i) {
5557
+ } catch (l) {
5557
5558
  this.log(
5558
5559
  "/me endpoint fetch failed (timeout or cross-origin TLS issue):",
5559
- i
5560
+ l
5560
5561
  );
5561
5562
  }
5562
5563
  if (!e)
5563
5564
  try {
5564
5565
  this.log("Trying SDK fallback for user info...");
5565
- const i = new Promise(
5566
- (s, c) => setTimeout(() => c(new Error("SDK timeout")), 5e3)
5567
- ), r = await Promise.race([
5568
- this._hanko.user.getCurrent(),
5569
- i
5566
+ const l = new Promise(
5567
+ (h, f) => setTimeout(() => f(new Error("SDK timeout")), 5e3)
5568
+ ), u = await Promise.race([
5569
+ this._hanko.getCurrentUser(),
5570
+ l
5570
5571
  ]);
5571
5572
  this.user = {
5572
- id: r.id,
5573
- email: r.email,
5574
- username: r.username,
5575
- emailVerified: r.email_verified || !1
5573
+ id: u.user_id,
5574
+ email: ((i = (o = u.emails) == null ? void 0 : o[0]) == null ? void 0 : i.address) || null,
5575
+ username: ((r = u.username) == null ? void 0 : r.username) || null,
5576
+ emailVerified: ((c = (s = u.emails) == null ? void 0 : s[0]) == null ? void 0 : c.is_verified) || !1
5576
5577
  }, e = !0, this.log("User info retrieved via SDK fallback");
5577
- } catch (i) {
5578
- this.log("SDK fallback failed, trying JWT claims:", i);
5578
+ } catch (l) {
5579
+ this.log("SDK fallback failed, trying JWT claims:", l);
5579
5580
  try {
5580
- const r = (o = n.detail) == null ? void 0 : o.claims;
5581
- if (r != null && r.sub)
5581
+ const u = (d = n.detail) == null ? void 0 : d.claims;
5582
+ if (u != null && u.sub)
5582
5583
  this.user = {
5583
- id: r.sub,
5584
- email: r.email || null,
5584
+ id: u.sub,
5585
+ email: u.email || null,
5585
5586
  username: null,
5586
- emailVerified: r.email_verified || !1
5587
+ emailVerified: u.email_verified || !1
5587
5588
  }, e = !0, this.log("User info extracted from JWT claims");
5588
5589
  else {
5589
5590
  this.logError("No user claims available in event"), this.user = null;
5590
5591
  return;
5591
5592
  }
5592
- } catch (r) {
5593
+ } catch (u) {
5593
5594
  this.logError(
5594
5595
  "Failed to extract user info from claims:",
5595
- r
5596
+ u
5596
5597
  ), this.user = null;
5597
5598
  return;
5598
5599
  }
@@ -5668,7 +5669,7 @@ let ie = class extends Mt {
5668
5669
  }
5669
5670
  if (this._hanko)
5670
5671
  try {
5671
- await this._hanko.user.logout(), this.log("Hanko logout successful");
5672
+ await this._hanko.logout(), this.log("Hanko logout successful");
5672
5673
  } catch (n) {
5673
5674
  this.logError("Hanko logout failed:", n);
5674
5675
  }