@slashid/jump-page 0.0.18 → 0.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package/main.js CHANGED
@@ -1,5 +1,5 @@
1
- import ye, { useLayoutEffect as ft, forwardRef as gr, useCallback as xr, useState as se, createContext as St, useMemo as jt, useContext as vr, useEffect as $e } from "react";
2
- import { Errors as mr, errors as Cr } from "@slashid/slashid";
1
+ import we, { useLayoutEffect as ft, forwardRef as xr, useCallback as vr, useState as se, createContext as St, useMemo as jt, useContext as mr, useEffect as $e } from "react";
2
+ import { Errors as Cr } from "@slashid/slashid";
3
3
  var Fe = { exports: {} }, le = {};
4
4
  /**
5
5
  * @license React
@@ -11,20 +11,20 @@ var Fe = { exports: {} }, le = {};
11
11
  * LICENSE file in the root directory of this source tree.
12
12
  */
13
13
  var ht;
14
- function wr() {
14
+ function yr() {
15
15
  if (ht)
16
16
  return le;
17
17
  ht = 1;
18
- var t = ye, e = Symbol.for("react.element"), r = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, n = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
18
+ var t = we, e = Symbol.for("react.element"), r = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, n = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
19
19
  function u(f, d, b) {
20
- var x, y = {}, O = null, S = null;
20
+ var x, w = {}, O = null, S = null;
21
21
  b !== void 0 && (O = "" + b), d.key !== void 0 && (O = "" + d.key), d.ref !== void 0 && (S = d.ref);
22
22
  for (x in d)
23
- s.call(d, x) && !l.hasOwnProperty(x) && (y[x] = d[x]);
23
+ s.call(d, x) && !l.hasOwnProperty(x) && (w[x] = d[x]);
24
24
  if (f && f.defaultProps)
25
25
  for (x in d = f.defaultProps, d)
26
- y[x] === void 0 && (y[x] = d[x]);
27
- return { $$typeof: e, type: f, key: O, ref: S, props: y, _owner: n.current };
26
+ w[x] === void 0 && (w[x] = d[x]);
27
+ return { $$typeof: e, type: f, key: O, ref: S, props: w, _owner: n.current };
28
28
  }
29
29
  return le.Fragment = r, le.jsx = u, le.jsxs = u, le;
30
30
  }
@@ -39,9 +39,9 @@ var ce = {};
39
39
  * LICENSE file in the root directory of this source tree.
40
40
  */
41
41
  var _t;
42
- function yr() {
42
+ function wr() {
43
43
  return _t || (_t = 1, process.env.NODE_ENV !== "production" && function() {
44
- var t = ye, e = Symbol.for("react.element"), r = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), f = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), x = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), q = Symbol.iterator, Re = "@@iterator";
44
+ var t = we, e = Symbol.for("react.element"), r = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), f = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), x = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), q = Symbol.iterator, Re = "@@iterator";
45
45
  function ae(a) {
46
46
  if (a === null || typeof a != "object")
47
47
  return null;
@@ -66,10 +66,10 @@ function yr() {
66
66
  v.unshift("Warning: " + i), Function.prototype.apply.call(console[a], console, v);
67
67
  }
68
68
  }
69
- var Te = !1, Ze = !1, w = !1, C = !1, K = !1, Z;
69
+ var Te = !1, Ze = !1, y = !1, C = !1, K = !1, Z;
70
70
  Z = Symbol.for("react.module.reference");
71
71
  function de(a) {
72
- return !!(typeof a == "string" || typeof a == "function" || a === s || a === l || K || a === n || a === b || a === x || C || a === S || Te || Ze || w || typeof a == "object" && a !== null && (a.$$typeof === O || a.$$typeof === y || a.$$typeof === u || a.$$typeof === f || a.$$typeof === d || // This needs to include all possible module reference object
72
+ return !!(typeof a == "string" || typeof a == "function" || a === s || a === l || K || a === n || a === b || a === x || C || a === S || Te || Ze || y || typeof a == "object" && a !== null && (a.$$typeof === O || a.$$typeof === w || a.$$typeof === u || a.$$typeof === f || a.$$typeof === d || // This needs to include all possible module reference object
73
73
  // types supported by any Flight configuration anywhere since
74
74
  // we don't know which Flight build this will end up being used
75
75
  // with.
@@ -116,7 +116,7 @@ function yr() {
116
116
  return Q(c._context) + ".Provider";
117
117
  case d:
118
118
  return ne(a, a.render, "ForwardRef");
119
- case y:
119
+ case w:
120
120
  var h = a.displayName || null;
121
121
  return h !== null ? h : R(a.type) || "Memo";
122
122
  case O: {
@@ -134,7 +134,7 @@ function yr() {
134
134
  function he() {
135
135
  }
136
136
  he.__reactDisabledLog = !0;
137
- function Gt() {
137
+ function Ht() {
138
138
  {
139
139
  if (V === 0) {
140
140
  oe = console.log, X = console.info, Y = console.warn, fe = console.error, I = console.group, U = console.groupCollapsed, ee = console.groupEnd;
@@ -157,7 +157,7 @@ function yr() {
157
157
  V++;
158
158
  }
159
159
  }
160
- function Ht() {
160
+ function Wt() {
161
161
  {
162
162
  if (V--, V === 0) {
163
163
  var a = {
@@ -208,8 +208,8 @@ function yr() {
208
208
  }
209
209
  var ke = !1, pe;
210
210
  {
211
- var Wt = typeof WeakMap == "function" ? WeakMap : Map;
212
- pe = new Wt();
211
+ var Jt = typeof WeakMap == "function" ? WeakMap : Map;
212
+ pe = new Jt();
213
213
  }
214
214
  function Qe(a, i) {
215
215
  if (!a || ke)
@@ -224,7 +224,7 @@ function yr() {
224
224
  var g = Error.prepareStackTrace;
225
225
  Error.prepareStackTrace = void 0;
226
226
  var v;
227
- v = Oe.current, Oe.current = null, Gt();
227
+ v = Oe.current, Oe.current = null, Ht();
228
228
  try {
229
229
  if (i) {
230
230
  var p = function() {
@@ -277,15 +277,15 @@ function yr() {
277
277
  }
278
278
  }
279
279
  } finally {
280
- ke = !1, Oe.current = v, Ht(), Error.prepareStackTrace = g;
280
+ ke = !1, Oe.current = v, Wt(), Error.prepareStackTrace = g;
281
281
  }
282
282
  var re = a ? a.displayName || a.name : "", dt = re ? _e(re) : "";
283
283
  return typeof a == "function" && pe.set(a, dt), dt;
284
284
  }
285
- function Jt(a, i, c) {
285
+ function Kt(a, i, c) {
286
286
  return Qe(a, !1);
287
287
  }
288
- function Kt(a) {
288
+ function Zt(a) {
289
289
  var i = a.prototype;
290
290
  return !!(i && i.isReactComponent);
291
291
  }
@@ -293,7 +293,7 @@ function yr() {
293
293
  if (a == null)
294
294
  return "";
295
295
  if (typeof a == "function")
296
- return Qe(a, Kt(a));
296
+ return Qe(a, Zt(a));
297
297
  if (typeof a == "string")
298
298
  return _e(a);
299
299
  switch (a) {
@@ -305,8 +305,8 @@ function yr() {
305
305
  if (typeof a == "object")
306
306
  switch (a.$$typeof) {
307
307
  case d:
308
- return Jt(a.render);
309
- case y:
308
+ return Kt(a.render);
309
+ case w:
310
310
  return be(a.type, i, c);
311
311
  case O: {
312
312
  var h = a, g = h._payload, v = h._init;
@@ -326,7 +326,7 @@ function yr() {
326
326
  } else
327
327
  et.setExtraStackFrame(null);
328
328
  }
329
- function Zt(a, i, c, h, g) {
329
+ function Qt(a, i, c, h, g) {
330
330
  {
331
331
  var v = Function.call.bind(ge);
332
332
  for (var p in a)
@@ -345,17 +345,17 @@ function yr() {
345
345
  }
346
346
  }
347
347
  }
348
- var Qt = Array.isArray;
348
+ var Xt = Array.isArray;
349
349
  function Pe(a) {
350
- return Qt(a);
350
+ return Xt(a);
351
351
  }
352
- function Xt(a) {
352
+ function er(a) {
353
353
  {
354
354
  var i = typeof Symbol == "function" && Symbol.toStringTag, c = i && a[Symbol.toStringTag] || a.constructor.name || "Object";
355
355
  return c;
356
356
  }
357
357
  }
358
- function er(a) {
358
+ function tr(a) {
359
359
  try {
360
360
  return tt(a), !1;
361
361
  } catch {
@@ -366,17 +366,17 @@ function yr() {
366
366
  return "" + a;
367
367
  }
368
368
  function rt(a) {
369
- if (er(a))
370
- return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Xt(a)), tt(a);
369
+ if (tr(a))
370
+ return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", er(a)), tt(a);
371
371
  }
372
- var ie = A.ReactCurrentOwner, tr = {
372
+ var ie = A.ReactCurrentOwner, rr = {
373
373
  key: !0,
374
374
  ref: !0,
375
375
  __self: !0,
376
376
  __source: !0
377
377
  }, st, at, Ne;
378
378
  Ne = {};
379
- function rr(a) {
379
+ function sr(a) {
380
380
  if (ge.call(a, "ref")) {
381
381
  var i = Object.getOwnPropertyDescriptor(a, "ref").get;
382
382
  if (i && i.isReactWarning)
@@ -384,7 +384,7 @@ function yr() {
384
384
  }
385
385
  return a.ref !== void 0;
386
386
  }
387
- function sr(a) {
387
+ function ar(a) {
388
388
  if (ge.call(a, "key")) {
389
389
  var i = Object.getOwnPropertyDescriptor(a, "key").get;
390
390
  if (i && i.isReactWarning)
@@ -392,13 +392,13 @@ function yr() {
392
392
  }
393
393
  return a.key !== void 0;
394
394
  }
395
- function ar(a, i) {
395
+ function nr(a, i) {
396
396
  if (typeof a.ref == "string" && ie.current && i && ie.current.stateNode !== i) {
397
397
  var c = R(ie.current.type);
398
398
  Ne[c] || (j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', R(ie.current.type), a.ref), Ne[c] = !0);
399
399
  }
400
400
  }
401
- function nr(a, i) {
401
+ function or(a, i) {
402
402
  {
403
403
  var c = function() {
404
404
  st || (st = !0, j("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", i));
@@ -409,7 +409,7 @@ function yr() {
409
409
  });
410
410
  }
411
411
  }
412
- function or(a, i) {
412
+ function ir(a, i) {
413
413
  {
414
414
  var c = function() {
415
415
  at || (at = !0, j("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", i));
@@ -420,7 +420,7 @@ function yr() {
420
420
  });
421
421
  }
422
422
  }
423
- var ir = function(a, i, c, h, g, v, p) {
423
+ var lr = function(a, i, c, h, g, v, p) {
424
424
  var _ = {
425
425
  // This tag allows us to uniquely identify this as a React Element
426
426
  $$typeof: e,
@@ -449,12 +449,12 @@ function yr() {
449
449
  value: g
450
450
  }), Object.freeze && (Object.freeze(_.props), Object.freeze(_)), _;
451
451
  };
452
- function lr(a, i, c, h, g) {
452
+ function cr(a, i, c, h, g) {
453
453
  {
454
454
  var v, p = {}, _ = null, T = null;
455
- c !== void 0 && (rt(c), _ = "" + c), sr(i) && (rt(i.key), _ = "" + i.key), rr(i) && (T = i.ref, ar(i, g));
455
+ c !== void 0 && (rt(c), _ = "" + c), ar(i) && (rt(i.key), _ = "" + i.key), sr(i) && (T = i.ref, nr(i, g));
456
456
  for (v in i)
457
- ge.call(i, v) && !tr.hasOwnProperty(v) && (p[v] = i[v]);
457
+ ge.call(i, v) && !rr.hasOwnProperty(v) && (p[v] = i[v]);
458
458
  if (a && a.defaultProps) {
459
459
  var z = a.defaultProps;
460
460
  for (v in z)
@@ -462,9 +462,9 @@ function yr() {
462
462
  }
463
463
  if (_ || T) {
464
464
  var E = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
465
- _ && nr(p, E), T && or(p, E);
465
+ _ && or(p, E), T && ir(p, E);
466
466
  }
467
- return ir(a, _, T, g, h, ie.current, p);
467
+ return lr(a, _, T, g, h, ie.current, p);
468
468
  }
469
469
  }
470
470
  var De = A.ReactCurrentOwner, nt = A.ReactDebugCurrentFrame;
@@ -492,7 +492,7 @@ Check the render method of \`` + a + "`.";
492
492
  return "";
493
493
  }
494
494
  }
495
- function cr(a) {
495
+ function ur(a) {
496
496
  {
497
497
  if (a !== void 0) {
498
498
  var i = a.fileName.replace(/^.*[\\\/]/, ""), c = a.lineNumber;
@@ -504,7 +504,7 @@ Check your code at ` + i + ":" + c + ".";
504
504
  }
505
505
  }
506
506
  var it = {};
507
- function ur(a) {
507
+ function dr(a) {
508
508
  {
509
509
  var i = ot();
510
510
  if (!i) {
@@ -521,7 +521,7 @@ Check the top-level render call using <` + c + ">.");
521
521
  if (!a._store || a._store.validated || a.key != null)
522
522
  return;
523
523
  a._store.validated = !0;
524
- var c = ur(i);
524
+ var c = dr(i);
525
525
  if (it[c])
526
526
  return;
527
527
  it[c] = !0;
@@ -548,7 +548,7 @@ Check the top-level render call using <` + c + ">.");
548
548
  }
549
549
  }
550
550
  }
551
- function dr(a) {
551
+ function fr(a) {
552
552
  {
553
553
  var i = a.type;
554
554
  if (i == null || typeof i == "string")
@@ -558,13 +558,13 @@ Check the top-level render call using <` + c + ">.");
558
558
  c = i.propTypes;
559
559
  else if (typeof i == "object" && (i.$$typeof === d || // Note: Memo only checks outer props here.
560
560
  // Inner props are checked in the reconciler.
561
- i.$$typeof === y))
561
+ i.$$typeof === w))
562
562
  c = i.propTypes;
563
563
  else
564
564
  return;
565
565
  if (c) {
566
566
  var h = R(i);
567
- Zt(c, a.props, "prop", h, a);
567
+ Qt(c, a.props, "prop", h, a);
568
568
  } else if (i.PropTypes !== void 0 && !Ie) {
569
569
  Ie = !0;
570
570
  var g = R(i);
@@ -573,7 +573,7 @@ Check the top-level render call using <` + c + ">.");
573
573
  typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
574
574
  }
575
575
  }
576
- function fr(a) {
576
+ function hr(a) {
577
577
  {
578
578
  for (var i = Object.keys(a.props), c = 0; c < i.length; c++) {
579
579
  var h = i[c];
@@ -591,12 +591,12 @@ Check the top-level render call using <` + c + ">.");
591
591
  if (!p) {
592
592
  var _ = "";
593
593
  (a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && (_ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
594
- var T = cr(g);
594
+ var T = ur(g);
595
595
  T ? _ += T : _ += ot();
596
596
  var z;
597
597
  a === null ? z = "null" : Pe(a) ? z = "array" : a !== void 0 && a.$$typeof === e ? (z = "<" + (R(a.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : z = typeof a, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", z, _);
598
598
  }
599
- var E = lr(a, i, c, g, v);
599
+ var E = cr(a, i, c, g, v);
600
600
  if (E == null)
601
601
  return E;
602
602
  if (p) {
@@ -612,20 +612,20 @@ Check the top-level render call using <` + c + ">.");
612
612
  else
613
613
  ct(k, a);
614
614
  }
615
- return a === s ? fr(E) : dr(E), E;
615
+ return a === s ? hr(E) : fr(E), E;
616
616
  }
617
617
  }
618
- function hr(a, i, c) {
618
+ function _r(a, i, c) {
619
619
  return ut(a, i, c, !0);
620
620
  }
621
- function _r(a, i, c) {
621
+ function pr(a, i, c) {
622
622
  return ut(a, i, c, !1);
623
623
  }
624
- var pr = _r, br = hr;
625
- ce.Fragment = s, ce.jsx = pr, ce.jsxs = br;
624
+ var br = pr, gr = _r;
625
+ ce.Fragment = s, ce.jsx = br, ce.jsxs = gr;
626
626
  }()), ce;
627
627
  }
628
- process.env.NODE_ENV === "production" ? Fe.exports = wr() : Fe.exports = yr();
628
+ process.env.NODE_ENV === "production" ? Fe.exports = yr() : Fe.exports = wr();
629
629
  var o = Fe.exports;
630
630
  function Rt(t) {
631
631
  var e, r, s = "";
@@ -668,20 +668,20 @@ function Tr({ theme: t, className: e }) {
668
668
  document.body.classList.add(...r.split(" "));
669
669
  }
670
670
  const Ot = ({ children: t }) => /* @__PURE__ */ o.jsx("div", { className: Tt({ theme: "light" }), children: t }), Or = ({ children: t, theme: e = "light", className: r }) => {
671
- const [s, n] = ye.useState(!1);
671
+ const [s, n] = we.useState(!1);
672
672
  return ft(() => {
673
673
  s || n(!0);
674
674
  }, [r, s, e]), ft(() => {
675
675
  s && Tr({ theme: e, className: r });
676
676
  }, [r, s, e]), s ? /* @__PURE__ */ o.jsx(o.Fragment, { children: t }) : /* @__PURE__ */ o.jsx(Ot, { children: t });
677
677
  };
678
- function wa({ children: t, theme: e = "light", className: r }) {
678
+ function ya({ children: t, theme: e = "light", className: r }) {
679
679
  return Rr() ? /* @__PURE__ */ o.jsx(Or, { theme: e, className: r, children: t }) : /* @__PURE__ */ o.jsx(Ot, { children: t });
680
680
  }
681
681
  var Mr = { default: "_92y0ua2 _92y0ua1", short: "_92y0ua3 _92y0ua1" };
682
682
  const Mt = ({ className: t, variant: e = "default" }) => /* @__PURE__ */ o.jsx("div", { className: N(Mr[e], t) });
683
683
  var kr = { primary: "eccmw2 eccmw0", secondary: "eccmw3 eccmw0", secondaryMd: "eccmw4 eccmw0 eccmw1", neutral: "eccmw5 eccmw0", neutralMd: "eccmw6 eccmw0 eccmw1", ghost: "eccmw7 eccmw0", ghostMd: "eccmw8 eccmw0 eccmw1" }, Pr = "eccmw9", Nr = "eccmwa", Dr = { primary: "eccmwb", secondary: "eccmwc", secondaryMd: "eccmwd", neutral: "eccmwe", neutralMd: "eccmwf", ghost: "eccmwg", ghostMd: "eccmwh" };
684
- const kt = gr(
684
+ const kt = xr(
685
685
  ({
686
686
  children: t,
687
687
  onClick: e,
@@ -729,7 +729,7 @@ const qr = ({
729
729
  type: f = "text",
730
730
  style: d
731
731
  }) => {
732
- const b = xr(
732
+ const b = vr(
733
733
  (x) => {
734
734
  u(x);
735
735
  },
@@ -1029,28 +1029,28 @@ var os = (t) => function() {
1029
1029
  for (var e = arguments.length, r = new Array(e), s = 0; s < e; s++)
1030
1030
  r[s] = arguments[s];
1031
1031
  var n = Object.assign({}, ...r.map((d) => d.styles)), l = Object.keys(n), u = l.filter((d) => "mappings" in n[d]), f = (d) => {
1032
- var b = [], x = {}, y = Ae({}, d), O = !1;
1032
+ var b = [], x = {}, w = Ae({}, d), O = !1;
1033
1033
  for (var S of u) {
1034
1034
  var q = d[S];
1035
1035
  if (q != null) {
1036
1036
  var Re = n[S];
1037
1037
  O = !0;
1038
1038
  for (var ae of Re.mappings)
1039
- x[ae] = q, y[ae] == null && delete y[ae];
1039
+ x[ae] = q, w[ae] == null && delete w[ae];
1040
1040
  }
1041
1041
  }
1042
- var A = O ? Ae(Ae({}, x), y) : d, j = function() {
1043
- var w = A[M], C = n[M];
1042
+ var A = O ? Ae(Ae({}, x), w) : d, j = function() {
1043
+ var y = A[M], C = n[M];
1044
1044
  try {
1045
1045
  if (C.mappings)
1046
1046
  return "continue";
1047
- if (typeof w == "string" || typeof w == "number") {
1048
- if (process.env.NODE_ENV !== "production" && !C.values[w].defaultClass)
1047
+ if (typeof y == "string" || typeof y == "number") {
1048
+ if (process.env.NODE_ENV !== "production" && !C.values[y].defaultClass)
1049
1049
  throw new Error();
1050
- b.push(C.values[w].defaultClass);
1051
- } else if (Array.isArray(w))
1052
- for (var K = 0; K < w.length; K++) {
1053
- var Z = w[K];
1050
+ b.push(C.values[y].defaultClass);
1051
+ } else if (Array.isArray(y))
1052
+ for (var K = 0; K < y.length; K++) {
1053
+ var Z = y[K];
1054
1054
  if (Z != null) {
1055
1055
  var de = C.responsiveArray[K];
1056
1056
  if (process.env.NODE_ENV !== "production" && !C.values[Z].conditions[de])
@@ -1059,8 +1059,8 @@ var os = (t) => function() {
1059
1059
  }
1060
1060
  }
1061
1061
  else
1062
- for (var ne in w) {
1063
- var Q = w[ne];
1062
+ for (var ne in y) {
1063
+ var Q = y[ne];
1064
1064
  if (Q != null) {
1065
1065
  if (process.env.NODE_ENV !== "production" && !C.values[Q].conditions[ne])
1066
1066
  throw new Error();
@@ -1079,22 +1079,22 @@ var os = (t) => function() {
1079
1079
  };
1080
1080
  if (!C)
1081
1081
  throw new I('"'.concat(M, '" is not a valid sprinkle'));
1082
- if ((typeof w == "string" || typeof w == "number") && (w in C.values || P(M, w, C.values), !C.values[w].defaultClass))
1083
- throw new I('"'.concat(M, '" has no default condition. You must specify which conditions to target explicitly. Possible options are ').concat(Object.keys(C.values[w].conditions).map(R).join(", ")));
1084
- if (typeof w == "object") {
1082
+ if ((typeof y == "string" || typeof y == "number") && (y in C.values || P(M, y, C.values), !C.values[y].defaultClass))
1083
+ throw new I('"'.concat(M, '" has no default condition. You must specify which conditions to target explicitly. Possible options are ').concat(Object.keys(C.values[y].conditions).map(R).join(", ")));
1084
+ if (typeof y == "object") {
1085
1085
  if (!("conditions" in C.values[Object.keys(C.values)[0]]))
1086
1086
  throw new I('"'.concat(M, '" is not a conditional property'));
1087
- if (Array.isArray(w)) {
1087
+ if (Array.isArray(y)) {
1088
1088
  if (!("responsiveArray" in C))
1089
1089
  throw new I('"'.concat(M, '" does not support responsive arrays'));
1090
1090
  var V = C.responsiveArray.length;
1091
- if (V < w.length)
1092
- throw new I('"'.concat(M, '" only supports up to ').concat(V, " breakpoints. You passed ").concat(w.length));
1093
- for (var oe of w)
1091
+ if (V < y.length)
1092
+ throw new I('"'.concat(M, '" only supports up to ').concat(V, " breakpoints. You passed ").concat(y.length));
1093
+ for (var oe of y)
1094
1094
  C.values[oe] || P(M, oe, C.values);
1095
1095
  } else
1096
- for (var X in w) {
1097
- var Y = w[X];
1096
+ for (var X in y) {
1097
+ var Y = y[X];
1098
1098
  if (Y != null && (C.values[Y] || P(M, Y, C.values), !C.values[Y].conditions[X]))
1099
1099
  throw new I('"'.concat(M, '" has no condition named ').concat(R(X), ". Possible values are ").concat(Object.keys(C.values[Y].conditions).map(R).join(", ")));
1100
1100
  }
@@ -1131,14 +1131,14 @@ const us = {
1131
1131
  text: {}
1132
1132
  }, We = St(us);
1133
1133
  We.displayName = "SlashIDTextContext";
1134
- const ya = ({ text: t, children: e }) => {
1134
+ const wa = ({ text: t, children: e }) => {
1135
1135
  const r = jt(() => ({
1136
1136
  text: t
1137
1137
  }), [t]);
1138
1138
  return /* @__PURE__ */ o.jsx(We.Provider, { value: r, children: e });
1139
1139
  };
1140
1140
  function ds() {
1141
- const { text: t } = ye.useContext(We);
1141
+ const { text: t } = we.useContext(We);
1142
1142
  return t;
1143
1143
  }
1144
1144
  const Ue = {
@@ -1250,7 +1250,7 @@ const Be = ({
1250
1250
  sdk: void 0,
1251
1251
  setLogo: () => {
1252
1252
  }
1253
- }, ps = St(_s), ze = () => vr(ps), J = (t) => /* @__PURE__ */ o.jsx(Be, { ...t });
1253
+ }, ps = St(_s), ze = () => mr(ps), J = (t) => /* @__PURE__ */ o.jsx(Be, { ...t });
1254
1254
  var bs = "_1vg0oop0", gs = "_1vg0oop1", xs = "_1vg0oop2", Ct = "_1vg0oop3";
1255
1255
  function vs() {
1256
1256
  const { logo: t } = ze();
@@ -1277,10 +1277,10 @@ function za({ children: t, className: e, header: r = /* @__PURE__ */ o.jsx(vs, {
1277
1277
  ] });
1278
1278
  }
1279
1279
  const Cs = { "--sid-color-primary": "#DCDDE5" };
1280
- function ws({ type: t }) {
1280
+ function ys({ type: t }) {
1281
1281
  return t === "neutral" ? /* @__PURE__ */ o.jsx("div", { style: Cs, children: /* @__PURE__ */ o.jsx(Ce, { variant: "primary", shouldAnimate: !1, children: /* @__PURE__ */ o.jsx(bt, {}) }) }) : /* @__PURE__ */ o.jsx(Ce, { variant: t === "warning" ? "blue" : "red", shouldAnimate: !1, children: /* @__PURE__ */ o.jsx(bt, {}) });
1282
1282
  }
1283
- const ys = (t) => {
1283
+ const ws = (t) => {
1284
1284
  switch (t) {
1285
1285
  case "authentication_expired":
1286
1286
  return "error.title.authentication_expired";
@@ -1299,13 +1299,13 @@ const ys = (t) => {
1299
1299
  };
1300
1300
  function Ea({ errorCode: t, type: e, redirectUri: r }) {
1301
1301
  r && window.location.replace(r);
1302
- const s = ys(t), n = zs(t);
1302
+ const s = ws(t), n = zs(t);
1303
1303
  return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
1304
1304
  /* @__PURE__ */ o.jsxs(He, { space: "0.25", children: [
1305
1305
  /* @__PURE__ */ o.jsx(J, { as: "h1", t: s, variant: { size: "2xl-title", weight: "bold" } }),
1306
1306
  /* @__PURE__ */ o.jsx(J, { as: "h2", t: n, variant: { color: "contrast", weight: "semibold" } })
1307
1307
  ] }),
1308
- /* @__PURE__ */ o.jsx(ws, { type: e })
1308
+ /* @__PURE__ */ o.jsx(ys, { type: e })
1309
1309
  ] });
1310
1310
  }
1311
1311
  const Es = () => /* @__PURE__ */ o.jsx(Ce, { variant: "primary", children: /* @__PURE__ */ o.jsx("svg", { width: "21", height: "18", viewBox: "0 0 21 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ o.jsx(
@@ -1394,7 +1394,7 @@ function Ps() {
1394
1394
  }
1395
1395
  e.publish("passwordSubmitted", r), b("submitting");
1396
1396
  }
1397
- }, y = (S) => {
1397
+ }, w = (S) => {
1398
1398
  s(S.target.value), f(null);
1399
1399
  }, O = (S) => {
1400
1400
  l(S.target.value), f(null);
@@ -1414,7 +1414,7 @@ function Ps() {
1414
1414
  placeholder: t("recover.password.input.placeholder"),
1415
1415
  name: "password",
1416
1416
  value: r ?? "",
1417
- onChange: y,
1417
+ onChange: w,
1418
1418
  error: !!u,
1419
1419
  autoComplete: "new-password"
1420
1420
  }
@@ -1470,7 +1470,7 @@ function Lt(t, e, r) {
1470
1470
  const s = r || D, n = s.__SENTRY__ = s.__SENTRY__ || {};
1471
1471
  return n[t] || (n[t] = e());
1472
1472
  }
1473
- const Is = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, Ls = "Sentry Logger ", wt = [
1473
+ const Is = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, Ls = "Sentry Logger ", yt = [
1474
1474
  "debug",
1475
1475
  "info",
1476
1476
  "warn",
@@ -1478,13 +1478,13 @@ const Is = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, Ls = "Sentry Logge
1478
1478
  "log",
1479
1479
  "assert",
1480
1480
  "trace"
1481
- ], yt = {};
1481
+ ], wt = {};
1482
1482
  function At(t) {
1483
1483
  if (!("console" in D))
1484
1484
  return t();
1485
- const e = D.console, r = {}, s = Object.keys(yt);
1485
+ const e = D.console, r = {}, s = Object.keys(wt);
1486
1486
  s.forEach((n) => {
1487
- const l = yt[n];
1487
+ const l = wt[n];
1488
1488
  r[n] = e[n], e[n] = l;
1489
1489
  });
1490
1490
  try {
@@ -1506,13 +1506,13 @@ function As() {
1506
1506
  },
1507
1507
  isEnabled: () => t
1508
1508
  };
1509
- return Is ? wt.forEach((r) => {
1509
+ return Is ? yt.forEach((r) => {
1510
1510
  e[r] = (...s) => {
1511
1511
  t && At(() => {
1512
1512
  D.console[r](`${Ls}[${r}]:`, ...s);
1513
1513
  });
1514
1514
  };
1515
- }) : wt.forEach((r) => {
1515
+ }) : yt.forEach((r) => {
1516
1516
  e[r] = () => {
1517
1517
  };
1518
1518
  }), e;
@@ -1766,7 +1766,7 @@ function $s(t) {
1766
1766
  }
1767
1767
  const Gs = 1;
1768
1768
  function Hs(t) {
1769
- const { spanId: e, traceId: r } = t.spanContext(), { data: s, op: n, parent_span_id: l, status: u, tags: f, origin: d } = we(t);
1769
+ const { spanId: e, traceId: r } = t.spanContext(), { data: s, op: n, parent_span_id: l, status: u, tags: f, origin: d } = ye(t);
1770
1770
  return H({
1771
1771
  data: s,
1772
1772
  op: n,
@@ -1778,7 +1778,7 @@ function Hs(t) {
1778
1778
  origin: d
1779
1779
  });
1780
1780
  }
1781
- function we(t) {
1781
+ function ye(t) {
1782
1782
  return Ws(t) ? t.getSpanJSON() : typeof t.toJSON == "function" ? t.toJSON() : {};
1783
1783
  }
1784
1784
  function Ws(t) {
@@ -1844,7 +1844,7 @@ function na(t) {
1844
1844
  const e = ra();
1845
1845
  if (!e)
1846
1846
  return {};
1847
- const r = aa(we(t).trace_id || "", e, sa()), s = qt(t);
1847
+ const r = aa(ye(t).trace_id || "", e, sa()), s = qt(t);
1848
1848
  if (!s)
1849
1849
  return r;
1850
1850
  const n = s && s._frozenDynamicSamplingContext;
@@ -1852,7 +1852,7 @@ function na(t) {
1852
1852
  return n;
1853
1853
  const { sampleRate: l, source: u } = s.metadata;
1854
1854
  l != null && (r.sample_rate = `${l}`);
1855
- const f = we(s);
1855
+ const f = ye(s);
1856
1856
  return u && u !== "url" && (r.transaction = f.description), r.sampled = String(Js(s)), e.emit && e.emit("createDsc", r), r;
1857
1857
  }
1858
1858
  function oa(t, e) {
@@ -1874,8 +1874,8 @@ function ia(t, e) {
1874
1874
  b && Object.keys(b).length && (t.tags = { ...b, ...t.tags });
1875
1875
  const x = H(n);
1876
1876
  x && Object.keys(x).length && (t.user = { ...x, ...t.user });
1877
- const y = H(l);
1878
- y && Object.keys(y).length && (t.contexts = { ...y, ...t.contexts }), u && (t.level = u), f && (t.transaction = f);
1877
+ const w = H(l);
1878
+ w && Object.keys(w).length && (t.contexts = { ...w, ...t.contexts }), u && (t.level = u), f && (t.transaction = f);
1879
1879
  }
1880
1880
  function la(t, e) {
1881
1881
  const r = [...t.breadcrumbs || [], ...e];
@@ -1895,7 +1895,7 @@ function ua(t, e) {
1895
1895
  dynamicSamplingContext: na(e),
1896
1896
  ...t.sdkProcessingMetadata
1897
1897
  };
1898
- const s = we(r).description;
1898
+ const s = ye(r).description;
1899
1899
  s && (t.tags = { transaction: s, ...t.tags });
1900
1900
  }
1901
1901
  }
@@ -2169,7 +2169,7 @@ class W {
2169
2169
  _fingerprint: d,
2170
2170
  _eventProcessors: b,
2171
2171
  _propagationContext: x,
2172
- _sdkProcessingMetadata: y,
2172
+ _sdkProcessingMetadata: w,
2173
2173
  _transactionName: O,
2174
2174
  _span: S
2175
2175
  } = this;
@@ -2184,7 +2184,7 @@ class W {
2184
2184
  fingerprint: d || [],
2185
2185
  eventProcessors: b,
2186
2186
  propagationContext: x,
2187
- sdkProcessingMetadata: y,
2187
+ sdkProcessingMetadata: w,
2188
2188
  transactionName: O,
2189
2189
  span: S
2190
2190
  };
@@ -2735,18 +2735,25 @@ const ga = {
2735
2735
  sentryEnabled: ue.PUBLIC_SID_ENVIRONMENT !== "local"
2736
2736
  };
2737
2737
  async function xa(t, e) {
2738
- const r = await mr.toSlashIDError(t);
2738
+ const r = Gt(t);
2739
2739
  if (!ga.sentryEnabled) {
2740
2740
  console.error(r), e && console.log(`Error context: ${JSON.stringify(e)}`);
2741
2741
  return;
2742
2742
  }
2743
2743
  ta((s) => {
2744
- s.setExtras({
2745
- ...e,
2746
- ...r.context
2747
- }), ea(r);
2744
+ s.setExtras({ ...e, message: r.message, ...Cr.isSlashIDError(r) && { ...r.context } }), ea(r);
2748
2745
  });
2749
2746
  }
2747
+ function Gt(t) {
2748
+ if (t instanceof Error)
2749
+ return t;
2750
+ let e = "[Unable to stringify the thrown value]";
2751
+ try {
2752
+ e = JSON.stringify(t);
2753
+ } catch {
2754
+ }
2755
+ return new Error(`This value was thrown as is, not through an Error: ${e}`);
2756
+ }
2750
2757
  function va() {
2751
2758
  return /* @__PURE__ */ o.jsx(Ce, { variant: "primary", children: /* @__PURE__ */ o.jsx(Mt, {}) });
2752
2759
  }
@@ -2761,7 +2768,7 @@ function ja({ onSuccess: t, onError: e, flowType: r, onRedirectDiscovered: s })
2761
2768
  await (n == null ? void 0 : n.getUserFromURL()), t();
2762
2769
  } catch (u) {
2763
2770
  await xa(u);
2764
- const f = await Cr.toSlashIDError(u);
2771
+ const f = Gt(u);
2765
2772
  e({ error: f });
2766
2773
  }
2767
2774
  }
@@ -2783,7 +2790,7 @@ export {
2783
2790
  ja as Progress,
2784
2791
  Ps as Recover,
2785
2792
  Sa as Success,
2786
- ya as TextProvider,
2787
- wa as ThemeRoot
2793
+ wa as TextProvider,
2794
+ ya as ThemeRoot
2788
2795
  };
2789
2796
  //# sourceMappingURL=main.js.map