@slashid/jump-page 0.0.11 → 0.0.12-next.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.
Files changed (42) hide show
  1. package/dist/_astro/app.54413f1a.js +101 -0
  2. package/dist/_astro/{client.4b122317.js → client.4ae44ca9.js} +1 -1
  3. package/dist/_astro/{index.84f66b8c.js → index.8afb8bf6.js} +6 -6
  4. package/dist/_astro/sdk.af0af458.css +1 -0
  5. package/dist/_astro/sdk.ebaca456.css +1 -0
  6. package/dist/sdk.html +1 -1
  7. package/package.json +3 -3
  8. package/dist/_astro/app.3cf9efaf.js +0 -101
  9. package/dist/_astro/sdk.3adb1b28.css +0 -1
  10. package/dist/_astro/sdk.be45a93b.css +0 -1
  11. package/package/astro.config.d.mts +0 -2
  12. package/package/dist/_astro/app.3cf9efaf.d.ts +0 -2
  13. package/package/dist/_astro/client.4b122317.d.ts +0 -7
  14. package/package/dist/_astro/index.84f66b8c.d.ts +0 -5
  15. package/package/favicon.png +0 -0
  16. package/package/main.js +0 -2733
  17. package/package/main.js.map +0 -1
  18. package/package/src/components/app/app.component.d.ts +0 -1
  19. package/package/src/components/app/app.context.d.ts +0 -22
  20. package/package/src/components/app/app.css.d.ts +0 -1
  21. package/package/src/components/app/index.d.ts +0 -1
  22. package/package/src/components/card/card.component.d.ts +0 -10
  23. package/package/src/components/card/card.css.d.ts +0 -4
  24. package/package/src/components/card/index.d.ts +0 -1
  25. package/package/src/components/flow/flow.component.d.ts +0 -1
  26. package/package/src/components/flow/flow.css.d.ts +0 -3
  27. package/package/src/components/flow/flow.error.d.ts +0 -5
  28. package/package/src/components/flow/flow.loading.d.ts +0 -1
  29. package/package/src/components/flow/flow.progress.d.ts +0 -11
  30. package/package/src/components/flow/flow.recover.d.ts +0 -1
  31. package/package/src/components/flow/flow.success.d.ts +0 -3
  32. package/package/src/components/flow/flow.types.d.ts +0 -37
  33. package/package/src/components/flow/index.d.ts +0 -3
  34. package/package/src/components/text/index.d.ts +0 -1
  35. package/package/src/components/text/text.component.d.ts +0 -6
  36. package/package/src/components/text/use-i18n.d.ts +0 -1
  37. package/package/src/config.d.ts +0 -4
  38. package/package/src/domain/errors.d.ts +0 -1
  39. package/package/src/domain/i18n.d.ts +0 -43
  40. package/package/src/main.d.ts +0 -8
  41. package/package/style.css +0 -1
  42. package/package/vite.config.d.ts +0 -2
package/package/main.js DELETED
@@ -1,2733 +0,0 @@
1
- var gs = Object.defineProperty;
2
- var xs = (t, e, s) => e in t ? gs(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
3
- var ct = (t, e, s) => (xs(t, typeof e != "symbol" ? e + "" : e, s), s);
4
- import we, { useLayoutEffect as dt, forwardRef as vs, useCallback as ms, useState as ue, createContext as Et, useMemo as St, useContext as Cs, useEffect as jt } from "react";
5
- var Ae = { exports: {} }, ie = {};
6
- /**
7
- * @license React
8
- * react-jsx-runtime.production.min.js
9
- *
10
- * Copyright (c) Facebook, Inc. and its affiliates.
11
- *
12
- * This source code is licensed under the MIT license found in the
13
- * LICENSE file in the root directory of this source tree.
14
- */
15
- var ft;
16
- function ws() {
17
- if (ft)
18
- return ie;
19
- ft = 1;
20
- var t = we, e = Symbol.for("react.element"), s = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, n = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
21
- function c(f, d, b) {
22
- var x, w = {}, O = null, S = null;
23
- b !== void 0 && (O = "" + b), d.key !== void 0 && (O = "" + d.key), d.ref !== void 0 && (S = d.ref);
24
- for (x in d)
25
- r.call(d, x) && !u.hasOwnProperty(x) && (w[x] = d[x]);
26
- if (f && f.defaultProps)
27
- for (x in d = f.defaultProps, d)
28
- w[x] === void 0 && (w[x] = d[x]);
29
- return { $$typeof: e, type: f, key: O, ref: S, props: w, _owner: n.current };
30
- }
31
- return ie.Fragment = s, ie.jsx = c, ie.jsxs = c, ie;
32
- }
33
- var le = {};
34
- /**
35
- * @license React
36
- * react-jsx-runtime.development.js
37
- *
38
- * Copyright (c) Facebook, Inc. and its affiliates.
39
- *
40
- * This source code is licensed under the MIT license found in the
41
- * LICENSE file in the root directory of this source tree.
42
- */
43
- var ht;
44
- function ys() {
45
- return ht || (ht = 1, process.env.NODE_ENV !== "production" && function() {
46
- var t = we, e = Symbol.for("react.element"), s = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), c = 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"), B = Symbol.iterator, Se = "@@iterator";
47
- function re(a) {
48
- if (a === null || typeof a != "object")
49
- return null;
50
- var i = B && a[B] || a[Se];
51
- return typeof i == "function" ? i : null;
52
- }
53
- var A = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
54
- function j(a) {
55
- {
56
- for (var i = arguments.length, l = new Array(i > 1 ? i - 1 : 0), h = 1; h < i; h++)
57
- l[h - 1] = arguments[h];
58
- M("error", a, l);
59
- }
60
- }
61
- function M(a, i, l) {
62
- {
63
- var h = A.ReactDebugCurrentFrame, g = h.getStackAddendum();
64
- g !== "" && (i += "%s", l = l.concat([g]));
65
- var v = l.map(function(p) {
66
- return String(p);
67
- });
68
- v.unshift("Warning: " + i), Function.prototype.apply.call(console[a], console, v);
69
- }
70
- }
71
- var je = !1, Je = !1, C = !1, m = !1, K = !1, Z;
72
- Z = Symbol.for("react.module.reference");
73
- function ce(a) {
74
- return !!(typeof a == "string" || typeof a == "function" || a === r || a === u || K || a === n || a === b || a === x || m || a === S || je || Je || C || typeof a == "object" && a !== null && (a.$$typeof === O || a.$$typeof === w || a.$$typeof === c || a.$$typeof === f || a.$$typeof === d || // This needs to include all possible module reference object
75
- // types supported by any Flight configuration anywhere since
76
- // we don't know which Flight build this will end up being used
77
- // with.
78
- a.$$typeof === Z || a.getModuleId !== void 0));
79
- }
80
- function ae(a, i, l) {
81
- var h = a.displayName;
82
- if (h)
83
- return h;
84
- var g = i.displayName || i.name || "";
85
- return g !== "" ? l + "(" + g + ")" : l;
86
- }
87
- function Q(a) {
88
- return a.displayName || "Context";
89
- }
90
- function R(a) {
91
- if (a == null)
92
- return null;
93
- if (typeof a.tag == "number" && j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof a == "function")
94
- return a.displayName || a.name || null;
95
- if (typeof a == "string")
96
- return a;
97
- switch (a) {
98
- case r:
99
- return "Fragment";
100
- case s:
101
- return "Portal";
102
- case u:
103
- return "Profiler";
104
- case n:
105
- return "StrictMode";
106
- case b:
107
- return "Suspense";
108
- case x:
109
- return "SuspenseList";
110
- }
111
- if (typeof a == "object")
112
- switch (a.$$typeof) {
113
- case f:
114
- var i = a;
115
- return Q(i) + ".Consumer";
116
- case c:
117
- var l = a;
118
- return Q(l._context) + ".Provider";
119
- case d:
120
- return ae(a, a.render, "ForwardRef");
121
- case w:
122
- var h = a.displayName || null;
123
- return h !== null ? h : R(a.type) || "Memo";
124
- case O: {
125
- var g = a, v = g._payload, p = g._init;
126
- try {
127
- return R(p(v));
128
- } catch {
129
- return null;
130
- }
131
- }
132
- }
133
- return null;
134
- }
135
- var P = Object.assign, V = 0, ne, X, Y, de, I, F, ee;
136
- function fe() {
137
- }
138
- fe.__reactDisabledLog = !0;
139
- function Ht() {
140
- {
141
- if (V === 0) {
142
- ne = console.log, X = console.info, Y = console.warn, de = console.error, I = console.group, F = console.groupCollapsed, ee = console.groupEnd;
143
- var a = {
144
- configurable: !0,
145
- enumerable: !0,
146
- value: fe,
147
- writable: !0
148
- };
149
- Object.defineProperties(console, {
150
- info: a,
151
- log: a,
152
- warn: a,
153
- error: a,
154
- group: a,
155
- groupCollapsed: a,
156
- groupEnd: a
157
- });
158
- }
159
- V++;
160
- }
161
- }
162
- function Gt() {
163
- {
164
- if (V--, V === 0) {
165
- var a = {
166
- configurable: !0,
167
- enumerable: !0,
168
- writable: !0
169
- };
170
- Object.defineProperties(console, {
171
- log: P({}, a, {
172
- value: ne
173
- }),
174
- info: P({}, a, {
175
- value: X
176
- }),
177
- warn: P({}, a, {
178
- value: Y
179
- }),
180
- error: P({}, a, {
181
- value: de
182
- }),
183
- group: P({}, a, {
184
- value: I
185
- }),
186
- groupCollapsed: P({}, a, {
187
- value: F
188
- }),
189
- groupEnd: P({}, a, {
190
- value: ee
191
- })
192
- });
193
- }
194
- V < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
195
- }
196
- }
197
- var Re = A.ReactCurrentDispatcher, Te;
198
- function he(a, i, l) {
199
- {
200
- if (Te === void 0)
201
- try {
202
- throw Error();
203
- } catch (g) {
204
- var h = g.stack.trim().match(/\n( *(at )?)/);
205
- Te = h && h[1] || "";
206
- }
207
- return `
208
- ` + Te + a;
209
- }
210
- }
211
- var Oe = !1, _e;
212
- {
213
- var Wt = typeof WeakMap == "function" ? WeakMap : Map;
214
- _e = new Wt();
215
- }
216
- function Ke(a, i) {
217
- if (!a || Oe)
218
- return "";
219
- {
220
- var l = _e.get(a);
221
- if (l !== void 0)
222
- return l;
223
- }
224
- var h;
225
- Oe = !0;
226
- var g = Error.prepareStackTrace;
227
- Error.prepareStackTrace = void 0;
228
- var v;
229
- v = Re.current, Re.current = null, Ht();
230
- try {
231
- if (i) {
232
- var p = function() {
233
- throw Error();
234
- };
235
- if (Object.defineProperty(p.prototype, "props", {
236
- set: function() {
237
- throw Error();
238
- }
239
- }), typeof Reflect == "object" && Reflect.construct) {
240
- try {
241
- Reflect.construct(p, []);
242
- } catch (U) {
243
- h = U;
244
- }
245
- Reflect.construct(a, [], p);
246
- } else {
247
- try {
248
- p.call();
249
- } catch (U) {
250
- h = U;
251
- }
252
- a.call(p.prototype);
253
- }
254
- } else {
255
- try {
256
- throw Error();
257
- } catch (U) {
258
- h = U;
259
- }
260
- a();
261
- }
262
- } catch (U) {
263
- if (U && h && typeof U.stack == "string") {
264
- for (var _ = U.stack.split(`
265
- `), T = h.stack.split(`
266
- `), y = _.length - 1, E = T.length - 1; y >= 1 && E >= 0 && _[y] !== T[E]; )
267
- E--;
268
- for (; y >= 1 && E >= 0; y--, E--)
269
- if (_[y] !== T[E]) {
270
- if (y !== 1 || E !== 1)
271
- do
272
- if (y--, E--, E < 0 || _[y] !== T[E]) {
273
- var k = `
274
- ` + _[y].replace(" at new ", " at ");
275
- return a.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", a.displayName)), typeof a == "function" && _e.set(a, k), k;
276
- }
277
- while (y >= 1 && E >= 0);
278
- break;
279
- }
280
- }
281
- } finally {
282
- Oe = !1, Re.current = v, Gt(), Error.prepareStackTrace = g;
283
- }
284
- var se = a ? a.displayName || a.name : "", ut = se ? he(se) : "";
285
- return typeof a == "function" && _e.set(a, ut), ut;
286
- }
287
- function Jt(a, i, l) {
288
- return Ke(a, !1);
289
- }
290
- function Kt(a) {
291
- var i = a.prototype;
292
- return !!(i && i.isReactComponent);
293
- }
294
- function pe(a, i, l) {
295
- if (a == null)
296
- return "";
297
- if (typeof a == "function")
298
- return Ke(a, Kt(a));
299
- if (typeof a == "string")
300
- return he(a);
301
- switch (a) {
302
- case b:
303
- return he("Suspense");
304
- case x:
305
- return he("SuspenseList");
306
- }
307
- if (typeof a == "object")
308
- switch (a.$$typeof) {
309
- case d:
310
- return Jt(a.render);
311
- case w:
312
- return pe(a.type, i, l);
313
- case O: {
314
- var h = a, g = h._payload, v = h._init;
315
- try {
316
- return pe(v(g), i, l);
317
- } catch {
318
- }
319
- }
320
- }
321
- return "";
322
- }
323
- var be = Object.prototype.hasOwnProperty, Ze = {}, Qe = A.ReactDebugCurrentFrame;
324
- function ge(a) {
325
- if (a) {
326
- var i = a._owner, l = pe(a.type, a._source, i ? i.type : null);
327
- Qe.setExtraStackFrame(l);
328
- } else
329
- Qe.setExtraStackFrame(null);
330
- }
331
- function Zt(a, i, l, h, g) {
332
- {
333
- var v = Function.call.bind(be);
334
- for (var p in a)
335
- if (v(a, p)) {
336
- var _ = void 0;
337
- try {
338
- if (typeof a[p] != "function") {
339
- var T = Error((h || "React class") + ": " + l + " type `" + p + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[p] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
340
- throw T.name = "Invariant Violation", T;
341
- }
342
- _ = a[p](i, p, h, l, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
343
- } catch (y) {
344
- _ = y;
345
- }
346
- _ && !(_ instanceof Error) && (ge(g), j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", h || "React class", l, p, typeof _), ge(null)), _ instanceof Error && !(_.message in Ze) && (Ze[_.message] = !0, ge(g), j("Failed %s type: %s", l, _.message), ge(null));
347
- }
348
- }
349
- }
350
- var Qt = Array.isArray;
351
- function Me(a) {
352
- return Qt(a);
353
- }
354
- function Xt(a) {
355
- {
356
- var i = typeof Symbol == "function" && Symbol.toStringTag, l = i && a[Symbol.toStringTag] || a.constructor.name || "Object";
357
- return l;
358
- }
359
- }
360
- function es(a) {
361
- try {
362
- return Xe(a), !1;
363
- } catch {
364
- return !0;
365
- }
366
- }
367
- function Xe(a) {
368
- return "" + a;
369
- }
370
- function et(a) {
371
- if (es(a))
372
- 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)), Xe(a);
373
- }
374
- var oe = A.ReactCurrentOwner, ts = {
375
- key: !0,
376
- ref: !0,
377
- __self: !0,
378
- __source: !0
379
- }, tt, st, ke;
380
- ke = {};
381
- function ss(a) {
382
- if (be.call(a, "ref")) {
383
- var i = Object.getOwnPropertyDescriptor(a, "ref").get;
384
- if (i && i.isReactWarning)
385
- return !1;
386
- }
387
- return a.ref !== void 0;
388
- }
389
- function rs(a) {
390
- if (be.call(a, "key")) {
391
- var i = Object.getOwnPropertyDescriptor(a, "key").get;
392
- if (i && i.isReactWarning)
393
- return !1;
394
- }
395
- return a.key !== void 0;
396
- }
397
- function as(a, i) {
398
- if (typeof a.ref == "string" && oe.current && i && oe.current.stateNode !== i) {
399
- var l = R(oe.current.type);
400
- ke[l] || (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(oe.current.type), a.ref), ke[l] = !0);
401
- }
402
- }
403
- function ns(a, i) {
404
- {
405
- var l = function() {
406
- tt || (tt = !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));
407
- };
408
- l.isReactWarning = !0, Object.defineProperty(a, "key", {
409
- get: l,
410
- configurable: !0
411
- });
412
- }
413
- }
414
- function os(a, i) {
415
- {
416
- var l = function() {
417
- st || (st = !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));
418
- };
419
- l.isReactWarning = !0, Object.defineProperty(a, "ref", {
420
- get: l,
421
- configurable: !0
422
- });
423
- }
424
- }
425
- var is = function(a, i, l, h, g, v, p) {
426
- var _ = {
427
- // This tag allows us to uniquely identify this as a React Element
428
- $$typeof: e,
429
- // Built-in properties that belong on the element
430
- type: a,
431
- key: i,
432
- ref: l,
433
- props: p,
434
- // Record the component responsible for creating this element.
435
- _owner: v
436
- };
437
- return _._store = {}, Object.defineProperty(_._store, "validated", {
438
- configurable: !1,
439
- enumerable: !1,
440
- writable: !0,
441
- value: !1
442
- }), Object.defineProperty(_, "_self", {
443
- configurable: !1,
444
- enumerable: !1,
445
- writable: !1,
446
- value: h
447
- }), Object.defineProperty(_, "_source", {
448
- configurable: !1,
449
- enumerable: !1,
450
- writable: !1,
451
- value: g
452
- }), Object.freeze && (Object.freeze(_.props), Object.freeze(_)), _;
453
- };
454
- function ls(a, i, l, h, g) {
455
- {
456
- var v, p = {}, _ = null, T = null;
457
- l !== void 0 && (et(l), _ = "" + l), rs(i) && (et(i.key), _ = "" + i.key), ss(i) && (T = i.ref, as(i, g));
458
- for (v in i)
459
- be.call(i, v) && !ts.hasOwnProperty(v) && (p[v] = i[v]);
460
- if (a && a.defaultProps) {
461
- var y = a.defaultProps;
462
- for (v in y)
463
- p[v] === void 0 && (p[v] = y[v]);
464
- }
465
- if (_ || T) {
466
- var E = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
467
- _ && ns(p, E), T && os(p, E);
468
- }
469
- return is(a, _, T, g, h, oe.current, p);
470
- }
471
- }
472
- var Pe = A.ReactCurrentOwner, rt = A.ReactDebugCurrentFrame;
473
- function te(a) {
474
- if (a) {
475
- var i = a._owner, l = pe(a.type, a._source, i ? i.type : null);
476
- rt.setExtraStackFrame(l);
477
- } else
478
- rt.setExtraStackFrame(null);
479
- }
480
- var Ne;
481
- Ne = !1;
482
- function De(a) {
483
- return typeof a == "object" && a !== null && a.$$typeof === e;
484
- }
485
- function at() {
486
- {
487
- if (Pe.current) {
488
- var a = R(Pe.current.type);
489
- if (a)
490
- return `
491
-
492
- Check the render method of \`` + a + "`.";
493
- }
494
- return "";
495
- }
496
- }
497
- function us(a) {
498
- {
499
- if (a !== void 0) {
500
- var i = a.fileName.replace(/^.*[\\\/]/, ""), l = a.lineNumber;
501
- return `
502
-
503
- Check your code at ` + i + ":" + l + ".";
504
- }
505
- return "";
506
- }
507
- }
508
- var nt = {};
509
- function cs(a) {
510
- {
511
- var i = at();
512
- if (!i) {
513
- var l = typeof a == "string" ? a : a.displayName || a.name;
514
- l && (i = `
515
-
516
- Check the top-level render call using <` + l + ">.");
517
- }
518
- return i;
519
- }
520
- }
521
- function ot(a, i) {
522
- {
523
- if (!a._store || a._store.validated || a.key != null)
524
- return;
525
- a._store.validated = !0;
526
- var l = cs(i);
527
- if (nt[l])
528
- return;
529
- nt[l] = !0;
530
- var h = "";
531
- a && a._owner && a._owner !== Pe.current && (h = " It was passed a child from " + R(a._owner.type) + "."), te(a), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', l, h), te(null);
532
- }
533
- }
534
- function it(a, i) {
535
- {
536
- if (typeof a != "object")
537
- return;
538
- if (Me(a))
539
- for (var l = 0; l < a.length; l++) {
540
- var h = a[l];
541
- De(h) && ot(h, i);
542
- }
543
- else if (De(a))
544
- a._store && (a._store.validated = !0);
545
- else if (a) {
546
- var g = re(a);
547
- if (typeof g == "function" && g !== a.entries)
548
- for (var v = g.call(a), p; !(p = v.next()).done; )
549
- De(p.value) && ot(p.value, i);
550
- }
551
- }
552
- }
553
- function ds(a) {
554
- {
555
- var i = a.type;
556
- if (i == null || typeof i == "string")
557
- return;
558
- var l;
559
- if (typeof i == "function")
560
- l = i.propTypes;
561
- else if (typeof i == "object" && (i.$$typeof === d || // Note: Memo only checks outer props here.
562
- // Inner props are checked in the reconciler.
563
- i.$$typeof === w))
564
- l = i.propTypes;
565
- else
566
- return;
567
- if (l) {
568
- var h = R(i);
569
- Zt(l, a.props, "prop", h, a);
570
- } else if (i.PropTypes !== void 0 && !Ne) {
571
- Ne = !0;
572
- var g = R(i);
573
- j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", g || "Unknown");
574
- }
575
- typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
576
- }
577
- }
578
- function fs(a) {
579
- {
580
- for (var i = Object.keys(a.props), l = 0; l < i.length; l++) {
581
- var h = i[l];
582
- if (h !== "children" && h !== "key") {
583
- te(a), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", h), te(null);
584
- break;
585
- }
586
- }
587
- a.ref !== null && (te(a), j("Invalid attribute `ref` supplied to `React.Fragment`."), te(null));
588
- }
589
- }
590
- function lt(a, i, l, h, g, v) {
591
- {
592
- var p = ce(a);
593
- if (!p) {
594
- var _ = "";
595
- (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.");
596
- var T = us(g);
597
- T ? _ += T : _ += at();
598
- var y;
599
- a === null ? y = "null" : Me(a) ? y = "array" : a !== void 0 && a.$$typeof === e ? (y = "<" + (R(a.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : y = 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", y, _);
600
- }
601
- var E = ls(a, i, l, g, v);
602
- if (E == null)
603
- return E;
604
- if (p) {
605
- var k = i.children;
606
- if (k !== void 0)
607
- if (h)
608
- if (Me(k)) {
609
- for (var se = 0; se < k.length; se++)
610
- it(k[se], a);
611
- Object.freeze && Object.freeze(k);
612
- } else
613
- j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
614
- else
615
- it(k, a);
616
- }
617
- return a === r ? fs(E) : ds(E), E;
618
- }
619
- }
620
- function hs(a, i, l) {
621
- return lt(a, i, l, !0);
622
- }
623
- function _s(a, i, l) {
624
- return lt(a, i, l, !1);
625
- }
626
- var ps = _s, bs = hs;
627
- le.Fragment = r, le.jsx = ps, le.jsxs = bs;
628
- }()), le;
629
- }
630
- process.env.NODE_ENV === "production" ? Ae.exports = ws() : Ae.exports = ys();
631
- var o = Ae.exports;
632
- function Rt(t) {
633
- var e, s, r = "";
634
- if (typeof t == "string" || typeof t == "number")
635
- r += t;
636
- else if (typeof t == "object")
637
- if (Array.isArray(t)) {
638
- var n = t.length;
639
- for (e = 0; e < n; e++)
640
- t[e] && (s = Rt(t[e])) && (r && (r += " "), r += s);
641
- } else
642
- for (s in t)
643
- t[s] && (r && (r += " "), r += s);
644
- return r;
645
- }
646
- function N() {
647
- for (var t, e, s = 0, r = "", n = arguments.length; s < n; s++)
648
- (t = arguments[s]) && (e = Rt(t)) && (r && (r += " "), r += e);
649
- return r;
650
- }
651
- var zs = "y2413r0", Es = "y2413r1", Ss = "y2413r2", js = "y2413r3", _t = "sid-theme-root";
652
- function Rs() {
653
- return typeof window < "u" && globalThis === window;
654
- }
655
- function Tt({ theme: t, className: e }) {
656
- return N(
657
- _t,
658
- `${_t}__${t}`,
659
- js,
660
- {
661
- [zs]: t === "dark",
662
- [Ss]: t === "auto",
663
- [Es]: t === "light"
664
- },
665
- e
666
- );
667
- }
668
- function Ts({ theme: t, className: e }) {
669
- const s = Tt({ theme: t, className: e });
670
- document.body.classList.add(...s.split(" "));
671
- }
672
- const Ot = ({ children: t }) => /* @__PURE__ */ o.jsx("div", { className: Tt({ theme: "light" }), children: t }), Os = ({ children: t, theme: e = "light", className: s }) => {
673
- const [r, n] = we.useState(!1);
674
- return dt(() => {
675
- r || n(!0);
676
- }, [s, r, e]), dt(() => {
677
- r && Ts({ theme: e, className: s });
678
- }, [s, r, e]), r ? /* @__PURE__ */ o.jsx(o.Fragment, { children: t }) : /* @__PURE__ */ o.jsx(Ot, { children: t });
679
- };
680
- function va({ children: t, theme: e = "light", className: s }) {
681
- return Rs() ? /* @__PURE__ */ o.jsx(Os, { theme: e, className: s, children: t }) : /* @__PURE__ */ o.jsx(Ot, { children: t });
682
- }
683
- var Ms = { default: "_92y0ua2 _92y0ua1", short: "_92y0ua3 _92y0ua1" };
684
- const Mt = ({ className: t, variant: e = "default" }) => /* @__PURE__ */ o.jsx("div", { className: N(Ms[e], t) });
685
- var ks = { primary: "eccmw2 eccmw0", secondary: "eccmw3 eccmw0", secondaryMd: "eccmw4 eccmw0 eccmw1", neutral: "eccmw5 eccmw0", neutralMd: "eccmw6 eccmw0 eccmw1", ghost: "eccmw7 eccmw0", ghostMd: "eccmw8 eccmw0 eccmw1" }, Ps = "eccmw9", Ns = "eccmwa", Ds = { primary: "eccmwb", secondary: "eccmwc", secondaryMd: "eccmwd", neutral: "eccmwe", neutralMd: "eccmwf", ghost: "eccmwg", ghostMd: "eccmwh" };
686
- const kt = vs(
687
- ({
688
- children: t,
689
- onClick: e,
690
- className: s,
691
- type: r = "button",
692
- variant: n = "primary",
693
- testId: u,
694
- icon: c,
695
- disabled: f,
696
- loading: d = !1,
697
- style: b
698
- }, x) => /* @__PURE__ */ o.jsx(
699
- "button",
700
- {
701
- style: b,
702
- ref: x,
703
- "data-testid": u,
704
- type: r,
705
- disabled: f,
706
- className: N(
707
- "sid-button",
708
- `sid-button--${n}`,
709
- ks[n],
710
- { [Ps]: f },
711
- s
712
- ),
713
- onClick: e,
714
- children: d ? /* @__PURE__ */ o.jsx(Mt, { variant: "short", className: Ds[n] }) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
715
- c ? /* @__PURE__ */ o.jsx("i", { className: Ns, children: c }) : null,
716
- t
717
- ] })
718
- }
719
- )
720
- );
721
- kt.displayName = "Button";
722
- var Is = "_1doytsg0", Ls = "_1doytsg3", As = "_1doytsg4", Fs = { text: "_1doytsg6 _1doytsg5", email: "_1doytsg7 _1doytsg5", password: "_1doytsg8 _1doytsg5", tel: "_1doytsg9 _1doytsg5" }, Us = "_1doytsga", qs = "_1doytsgc";
723
- const Bs = ({
724
- id: t,
725
- name: e,
726
- label: s,
727
- placeholder: r = "",
728
- autoComplete: n = "",
729
- value: u,
730
- onChange: c,
731
- type: f = "text",
732
- style: d
733
- }) => {
734
- const b = ms(
735
- (x) => {
736
- c(x);
737
- },
738
- [c]
739
- );
740
- return /* @__PURE__ */ o.jsxs("div", { className: Fs[f], children: [
741
- /* @__PURE__ */ o.jsx("label", { htmlFor: t, className: Us, children: s }),
742
- /* @__PURE__ */ o.jsx(
743
- "input",
744
- {
745
- style: d,
746
- type: f,
747
- id: t,
748
- name: e,
749
- className: Is,
750
- placeholder: r,
751
- value: u,
752
- onChange: b,
753
- autoComplete: n
754
- }
755
- )
756
- ] });
757
- }, Ve = `
758
- @media (prefers-color-scheme: dark) {
759
- .sid-theme-root__auto path { fill: white; }
760
- }
761
-
762
- .sid-theme-root__dark path { fill: white; }
763
- `;
764
- function pt() {
765
- return /* @__PURE__ */ o.jsxs(
766
- "svg",
767
- {
768
- width: "5",
769
- height: "20",
770
- viewBox: "0 0 5 20",
771
- fill: "none",
772
- xmlns: "http://www.w3.org/2000/svg",
773
- children: [
774
- /* @__PURE__ */ o.jsx(
775
- "path",
776
- {
777
- fillRule: "evenodd",
778
- clipRule: "evenodd",
779
- d: "M2.5 0C3.32843 1.19209e-07 4 0.671573 4 1.5L4 11.5C4 12.3284 3.32843 13 2.5 13C1.67157 13 1 12.3284 1 11.5L1 1.5C1 0.671573 1.67157 -1.19209e-07 2.5 0Z",
780
- fill: "white"
781
- }
782
- ),
783
- /* @__PURE__ */ o.jsx(
784
- "path",
785
- {
786
- d: "M4.5 18C4.5 19.1046 3.60457 20 2.5 20C1.39543 20 0.5 19.1046 0.5 18C0.5 16.8954 1.39543 16 2.5 16C3.60457 16 4.5 16.8954 4.5 18Z",
787
- fill: "white"
788
- }
789
- )
790
- ]
791
- }
792
- );
793
- }
794
- const Vs = () => /* @__PURE__ */ o.jsxs(
795
- "svg",
796
- {
797
- width: "16",
798
- height: "16",
799
- viewBox: "0 0 16 16",
800
- fill: "none",
801
- xmlns: "http://www.w3.org/2000/svg",
802
- children: [
803
- /* @__PURE__ */ o.jsx("style", { children: Ve }),
804
- /* @__PURE__ */ o.jsx("g", { clipPath: "url(#clip0_2610_9920)", children: /* @__PURE__ */ o.jsx(
805
- "path",
806
- {
807
- fillRule: "evenodd",
808
- clipRule: "evenodd",
809
- d: "M0.220551 7.4C1.00905 5.8258 3.50342 2 8.00001 2C12.4966 2 14.991 5.8258 15.7796 7.4C16.0733 7.98635 16.0737 8.0153 15.7796 8.60228C14.99 10.1778 12.4949 14 8.00001 14C3.50298 14 1.00762 10.1738 0.219399 8.6C-0.0739824 8.01422 -0.0726647 7.98539 0.220551 7.4ZM8 12C10.2091 12 12 10.2091 12 8C12 5.79086 10.2091 4 8 4C5.79086 4 4 5.79086 4 8C4 10.2091 5.79086 12 8 12ZM9.5 8C9.5 8.82843 8.82843 9.5 8 9.5C7.17157 9.5 6.5 8.82843 6.5 8C6.5 7.17157 7.17157 6.5 8 6.5C8.82843 6.5 9.5 7.17157 9.5 8Z",
810
- fill: "#142049"
811
- }
812
- ) }),
813
- /* @__PURE__ */ o.jsx("defs", { children: /* @__PURE__ */ o.jsx("clipPath", { id: "clip0_2610_9920", children: /* @__PURE__ */ o.jsx("rect", { width: "16", height: "16", fill: "white" }) }) })
814
- ]
815
- }
816
- ), Ys = () => /* @__PURE__ */ o.jsxs(
817
- "svg",
818
- {
819
- width: "16",
820
- height: "16",
821
- viewBox: "0 0 16 16",
822
- fill: "none",
823
- xmlns: "http://www.w3.org/2000/svg",
824
- children: [
825
- /* @__PURE__ */ o.jsx("style", { children: Ve }),
826
- /* @__PURE__ */ o.jsxs("g", { clipPath: "url(#clip0_2610_9933)", children: [
827
- /* @__PURE__ */ o.jsx(
828
- "path",
829
- {
830
- fillRule: "evenodd",
831
- clipRule: "evenodd",
832
- d: "M0.220551 7.4C1.00905 5.8258 3.50342 2 8.00001 2C12.4966 2 14.991 5.8258 15.7796 7.4C16.0733 7.98635 16.0737 8.0153 15.7796 8.60228C14.99 10.1778 12.4949 14 8.00001 14C3.50298 14 1.00762 10.1738 0.219399 8.6C-0.0739824 8.01422 -0.0726647 7.98539 0.220551 7.4ZM8 12C10.2091 12 12 10.2091 12 8C12 5.79086 10.2091 4 8 4C5.79086 4 4 5.79086 4 8C4 10.2091 5.79086 12 8 12ZM9.5 8C9.5 8.82843 8.82843 9.5 8 9.5C7.17157 9.5 6.5 8.82843 6.5 8C6.5 7.17157 7.17157 6.5 8 6.5C8.82843 6.5 9.5 7.17157 9.5 8Z",
833
- fill: "#142049"
834
- }
835
- ),
836
- /* @__PURE__ */ o.jsx(
837
- "path",
838
- {
839
- d: "M2.34314 2.34315L13.6568 13.6569",
840
- stroke: "#142049",
841
- strokeWidth: "1.5",
842
- strokeLinecap: "round"
843
- }
844
- )
845
- ] }),
846
- /* @__PURE__ */ o.jsx("defs", { children: /* @__PURE__ */ o.jsx("clipPath", { id: "clip0_2610_9933", children: /* @__PURE__ */ o.jsx("rect", { width: "16", height: "16", fill: "white" }) }) })
847
- ]
848
- }
849
- ), $s = () => /* @__PURE__ */ o.jsxs(
850
- "svg",
851
- {
852
- width: "40",
853
- height: "40",
854
- viewBox: "0 0 40 40",
855
- fill: "none",
856
- xmlns: "http://www.w3.org/2000/svg",
857
- children: [
858
- /* @__PURE__ */ o.jsx("style", { children: Ve }),
859
- /* @__PURE__ */ o.jsx("path", { d: "M12.686 10L2 30.228H5.198L15.884 10H12.686Z", fill: "#2A6AFF" }),
860
- /* @__PURE__ */ o.jsx(
861
- "path",
862
- {
863
- d: "M19.7923 15.694C20.9373 15.694 21.8723 14.732 21.8723 13.588C21.8723 12.444 20.9373 11.482 19.7923 11.482C18.6223 11.482 17.6873 12.444 17.6873 13.588C17.6873 14.732 18.6233 15.694 19.7933 15.694H19.7923ZM18.0773 17.514V30.228H21.4573V17.514H18.0773ZM34.1883 10V18.502C33.172 17.6398 31.8809 17.1695 30.5483 17.176C26.8563 17.176 24.0743 20.14 24.0743 23.884C24.0743 27.628 26.8563 30.592 30.5483 30.592C32.0823 30.592 33.4343 30.02 34.4483 29.032V30.228H37.5683V10H34.1883ZM30.9383 27.42C28.9883 27.42 27.5583 25.912 27.5583 23.884C27.5583 21.856 28.9883 20.348 30.9383 20.348C32.8883 20.348 34.3183 21.856 34.3183 23.884C34.3183 25.912 32.8883 27.42 30.9383 27.42Z",
864
- fill: "#142049"
865
- }
866
- )
867
- ]
868
- }
869
- ), bt = (t) => {
870
- const [e, s] = ue(!1);
871
- return /* @__PURE__ */ o.jsxs(
872
- "div",
873
- {
874
- className: N(
875
- "sid-input",
876
- "sid-input--password",
877
- Ls,
878
- t.error && As,
879
- t.className
880
- ),
881
- style: t.style,
882
- children: [
883
- /* @__PURE__ */ o.jsx(Bs, { ...t, type: e ? "text" : "password" }),
884
- /* @__PURE__ */ o.jsx(
885
- "button",
886
- {
887
- tabIndex: -1,
888
- className: qs,
889
- type: "button",
890
- onClick: () => s(!e),
891
- children: e ? /* @__PURE__ */ o.jsx(Ys, {}) : /* @__PURE__ */ o.jsx(Vs, {})
892
- }
893
- )
894
- ]
895
- }
896
- );
897
- };
898
- var Hs = "_1rf2mux3", Gs = "_1rf2mux5", Ws = { blue: "_1rf2mux6 _1rf2mux4", red: "_1rf2mux7 _1rf2mux4", primary: "_1rf2mux8 _1rf2mux4" }, Js = "_1rf2muxa", Ks = { blue: "_1rf2muxb _1rf2mux9", red: "_1rf2muxc _1rf2mux9", primary: "_1rf2muxd _1rf2mux9" }, Zs = "_1rf2muxf", Qs = { blue: "_1rf2muxg _1rf2muxe", red: "_1rf2muxh _1rf2muxe", primary: "_1rf2muxi _1rf2muxe" }, Xs = "_1rf2muxj";
899
- const me = ({
900
- children: t,
901
- className: e,
902
- variant: s = "blue",
903
- shouldAnimate: r = !0
904
- }) => /* @__PURE__ */ o.jsxs("div", { className: N(Hs, e), children: [
905
- /* @__PURE__ */ o.jsx(
906
- "div",
907
- {
908
- className: N(Ws[s], {
909
- [Gs]: r
910
- })
911
- }
912
- ),
913
- /* @__PURE__ */ o.jsx(
914
- "div",
915
- {
916
- className: N(Ks[s], {
917
- [Js]: r
918
- })
919
- }
920
- ),
921
- /* @__PURE__ */ o.jsx(
922
- "div",
923
- {
924
- className: N(Qs[s], {
925
- [Zs]: r
926
- })
927
- }
928
- ),
929
- /* @__PURE__ */ o.jsx("div", { className: Xs, children: t })
930
- ] });
931
- function er(t, e, s) {
932
- return e in t ? Object.defineProperty(t, e, {
933
- value: s,
934
- enumerable: !0,
935
- configurable: !0,
936
- writable: !0
937
- }) : t[e] = s, t;
938
- }
939
- function gt(t, e) {
940
- var s = Object.keys(t);
941
- if (Object.getOwnPropertySymbols) {
942
- var r = Object.getOwnPropertySymbols(t);
943
- e && (r = r.filter(function(n) {
944
- return Object.getOwnPropertyDescriptor(t, n).enumerable;
945
- })), s.push.apply(s, r);
946
- }
947
- return s;
948
- }
949
- function xt(t) {
950
- for (var e = 1; e < arguments.length; e++) {
951
- var s = arguments[e] != null ? arguments[e] : {};
952
- e % 2 ? gt(Object(s), !0).forEach(function(r) {
953
- er(t, r, s[r]);
954
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(s)) : gt(Object(s)).forEach(function(r) {
955
- Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(s, r));
956
- });
957
- }
958
- return t;
959
- }
960
- var tr = (t, e, s) => {
961
- for (var r of Object.keys(t)) {
962
- var n;
963
- if (t[r] !== ((n = e[r]) !== null && n !== void 0 ? n : s[r]))
964
- return !1;
965
- }
966
- return !0;
967
- }, Pt = (t) => (e) => {
968
- var s = t.defaultClassName, r = xt(xt({}, t.defaultVariants), e);
969
- for (var n in r) {
970
- var u, c = (u = r[n]) !== null && u !== void 0 ? u : t.defaultVariants[n];
971
- if (c != null) {
972
- var f = c;
973
- typeof f == "boolean" && (f = f === !0 ? "true" : "false");
974
- var d = (
975
- // @ts-expect-error
976
- t.variantClassNames[n][f]
977
- );
978
- d && (s += " " + d);
979
- }
980
- }
981
- for (var [b, x] of t.compoundVariants)
982
- tr(b, r, t.defaultVariants) && (s += " " + x);
983
- return s;
984
- }, sr = Pt({ defaultClassName: "s3l9sv0", variantClassNames: { direction: { vertical: "s3l9sv1", horizontal: "s3l9sv2" }, space: { between: "s3l9sv3", evenly: "s3l9sv4" } }, defaultVariants: { direction: "vertical" }, compoundVariants: [] });
985
- function rr(t, e) {
986
- if (typeof t != "object" || t === null)
987
- return t;
988
- var s = t[Symbol.toPrimitive];
989
- if (s !== void 0) {
990
- var r = s.call(t, e || "default");
991
- if (typeof r != "object")
992
- return r;
993
- throw new TypeError("@@toPrimitive must return a primitive value.");
994
- }
995
- return (e === "string" ? String : Number)(t);
996
- }
997
- function ar(t) {
998
- var e = rr(t, "string");
999
- return typeof e == "symbol" ? e : String(e);
1000
- }
1001
- function nr(t, e, s) {
1002
- return e = ar(e), e in t ? Object.defineProperty(t, e, {
1003
- value: s,
1004
- enumerable: !0,
1005
- configurable: !0,
1006
- writable: !0
1007
- }) : t[e] = s, t;
1008
- }
1009
- function vt(t, e) {
1010
- var s = Object.keys(t);
1011
- if (Object.getOwnPropertySymbols) {
1012
- var r = Object.getOwnPropertySymbols(t);
1013
- e && (r = r.filter(function(n) {
1014
- return Object.getOwnPropertyDescriptor(t, n).enumerable;
1015
- })), s.push.apply(s, r);
1016
- }
1017
- return s;
1018
- }
1019
- function Ie(t) {
1020
- for (var e = 1; e < arguments.length; e++) {
1021
- var s = arguments[e] != null ? arguments[e] : {};
1022
- e % 2 ? vt(Object(s), !0).forEach(function(r) {
1023
- nr(t, r, s[r]);
1024
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(s)) : vt(Object(s)).forEach(function(r) {
1025
- Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(s, r));
1026
- });
1027
- }
1028
- return t;
1029
- }
1030
- var or = (t) => function() {
1031
- for (var e = arguments.length, s = new Array(e), r = 0; r < e; r++)
1032
- s[r] = arguments[r];
1033
- var n = Object.assign({}, ...s.map((d) => d.styles)), u = Object.keys(n), c = u.filter((d) => "mappings" in n[d]), f = (d) => {
1034
- var b = [], x = {}, w = Ie({}, d), O = !1;
1035
- for (var S of c) {
1036
- var B = d[S];
1037
- if (B != null) {
1038
- var Se = n[S];
1039
- O = !0;
1040
- for (var re of Se.mappings)
1041
- x[re] = B, w[re] == null && delete w[re];
1042
- }
1043
- }
1044
- var A = O ? Ie(Ie({}, x), w) : d, j = function() {
1045
- var C = A[M], m = n[M];
1046
- try {
1047
- if (m.mappings)
1048
- return "continue";
1049
- if (typeof C == "string" || typeof C == "number") {
1050
- if (process.env.NODE_ENV !== "production" && !m.values[C].defaultClass)
1051
- throw new Error();
1052
- b.push(m.values[C].defaultClass);
1053
- } else if (Array.isArray(C))
1054
- for (var K = 0; K < C.length; K++) {
1055
- var Z = C[K];
1056
- if (Z != null) {
1057
- var ce = m.responsiveArray[K];
1058
- if (process.env.NODE_ENV !== "production" && !m.values[Z].conditions[ce])
1059
- throw new Error();
1060
- b.push(m.values[Z].conditions[ce]);
1061
- }
1062
- }
1063
- else
1064
- for (var ae in C) {
1065
- var Q = C[ae];
1066
- if (Q != null) {
1067
- if (process.env.NODE_ENV !== "production" && !m.values[Q].conditions[ae])
1068
- throw new Error();
1069
- b.push(m.values[Q].conditions[ae]);
1070
- }
1071
- }
1072
- } catch (de) {
1073
- if (process.env.NODE_ENV !== "production") {
1074
- class I extends Error {
1075
- constructor(ee) {
1076
- super(ee), this.name = "SprinklesError";
1077
- }
1078
- }
1079
- var R = (F) => typeof F == "string" ? '"'.concat(F, '"') : F, P = (F, ee, fe) => {
1080
- throw new I('"'.concat(F, '" has no value ').concat(R(ee), ". Possible values are ").concat(Object.keys(fe).map(R).join(", ")));
1081
- };
1082
- if (!m)
1083
- throw new I('"'.concat(M, '" is not a valid sprinkle'));
1084
- if ((typeof C == "string" || typeof C == "number") && (C in m.values || P(M, C, m.values), !m.values[C].defaultClass))
1085
- throw new I('"'.concat(M, '" has no default condition. You must specify which conditions to target explicitly. Possible options are ').concat(Object.keys(m.values[C].conditions).map(R).join(", ")));
1086
- if (typeof C == "object") {
1087
- if (!("conditions" in m.values[Object.keys(m.values)[0]]))
1088
- throw new I('"'.concat(M, '" is not a conditional property'));
1089
- if (Array.isArray(C)) {
1090
- if (!("responsiveArray" in m))
1091
- throw new I('"'.concat(M, '" does not support responsive arrays'));
1092
- var V = m.responsiveArray.length;
1093
- if (V < C.length)
1094
- throw new I('"'.concat(M, '" only supports up to ').concat(V, " breakpoints. You passed ").concat(C.length));
1095
- for (var ne of C)
1096
- m.values[ne] || P(M, ne, m.values);
1097
- } else
1098
- for (var X in C) {
1099
- var Y = C[X];
1100
- if (Y != null && (m.values[Y] || P(M, Y, m.values), !m.values[Y].conditions[X]))
1101
- throw new I('"'.concat(M, '" has no condition named ').concat(R(X), ". Possible values are ").concat(Object.keys(m.values[Y].conditions).map(R).join(", ")));
1102
- }
1103
- }
1104
- }
1105
- throw de;
1106
- }
1107
- };
1108
- for (var M in A)
1109
- var je = j();
1110
- return t(b.join(" "));
1111
- };
1112
- return Object.assign(f, {
1113
- properties: new Set(u)
1114
- });
1115
- }, ir = (t) => t, lr = function() {
1116
- return or(ir)(...arguments);
1117
- }, Nt = lr({ conditions: { defaultCondition: "lightMode", conditionNames: ["lightMode", "darkMode"], responsiveArray: void 0 }, styles: { color: { values: { background: { conditions: { lightMode: "_1hbz9ox0", darkMode: "_1hbz9ox1" }, defaultClass: "_1hbz9ox0" }, mute: { conditions: { lightMode: "_1hbz9ox2", darkMode: "_1hbz9ox3" }, defaultClass: "_1hbz9ox2" }, panel: { conditions: { lightMode: "_1hbz9ox4", darkMode: "_1hbz9ox5" }, defaultClass: "_1hbz9ox4" }, foreground: { conditions: { lightMode: "_1hbz9ox6", darkMode: "_1hbz9ox7" }, defaultClass: "_1hbz9ox6" }, contrast: { conditions: { lightMode: "_1hbz9ox8", darkMode: "_1hbz9ox9" }, defaultClass: "_1hbz9ox8" }, secondary: { conditions: { lightMode: "_1hbz9oxa", darkMode: "_1hbz9oxb" }, defaultClass: "_1hbz9oxa" }, tertiary: { conditions: { lightMode: "_1hbz9oxc", darkMode: "_1hbz9oxd" }, defaultClass: "_1hbz9oxc" }, placeholder: { conditions: { lightMode: "_1hbz9oxe", darkMode: "_1hbz9oxf" }, defaultClass: "_1hbz9oxe" }, smooth: { conditions: { lightMode: "_1hbz9oxg", darkMode: "_1hbz9oxh" }, defaultClass: "_1hbz9oxg" }, subtle: { conditions: { lightMode: "_1hbz9oxi", darkMode: "_1hbz9oxj" }, defaultClass: "_1hbz9oxi" }, soft: { conditions: { lightMode: "_1hbz9oxk", darkMode: "_1hbz9oxl" }, defaultClass: "_1hbz9oxk" }, offset: { conditions: { lightMode: "_1hbz9oxm", darkMode: "_1hbz9oxn" }, defaultClass: "_1hbz9oxm" }, primary: { conditions: { lightMode: "_1hbz9oxo", darkMode: "_1hbz9oxp" }, defaultClass: "_1hbz9oxo" }, primaryHover: { conditions: { lightMode: "_1hbz9oxq", darkMode: "_1hbz9oxr" }, defaultClass: "_1hbz9oxq" }, transparent: { conditions: { lightMode: "_1hbz9oxs", darkMode: "_1hbz9oxt" }, defaultClass: "_1hbz9oxs" }, error: { conditions: { lightMode: "_1hbz9oxu", darkMode: "_1hbz9oxv" }, defaultClass: "_1hbz9oxu" }, auxiliary: { conditions: { lightMode: "_1hbz9oxw", darkMode: "_1hbz9oxx" }, defaultClass: "_1hbz9oxw" }, success: { conditions: { lightMode: "_1hbz9oxy", darkMode: "_1hbz9oxz" }, defaultClass: "_1hbz9oxy" }, foregroundSuccess: { conditions: { lightMode: "_1hbz9ox10", darkMode: "_1hbz9ox11" }, defaultClass: "_1hbz9ox10" }, backgroundSuccess: { conditions: { lightMode: "_1hbz9ox12", darkMode: "_1hbz9ox13" }, defaultClass: "_1hbz9ox12" }, failure: { conditions: { lightMode: "_1hbz9ox14", darkMode: "_1hbz9ox15" }, defaultClass: "_1hbz9ox14" }, foregroundFailure: { conditions: { lightMode: "_1hbz9ox16", darkMode: "_1hbz9ox17" }, defaultClass: "_1hbz9ox16" }, backgroundFailure: { conditions: { lightMode: "_1hbz9ox18", darkMode: "_1hbz9ox19" }, defaultClass: "_1hbz9ox18" } } }, backgroundColor: { values: { background: { conditions: { lightMode: "_1hbz9ox1a", darkMode: "_1hbz9ox1b" }, defaultClass: "_1hbz9ox1a" }, mute: { conditions: { lightMode: "_1hbz9ox1c", darkMode: "_1hbz9ox1d" }, defaultClass: "_1hbz9ox1c" }, panel: { conditions: { lightMode: "_1hbz9ox1e", darkMode: "_1hbz9ox1f" }, defaultClass: "_1hbz9ox1e" }, foreground: { conditions: { lightMode: "_1hbz9ox1g", darkMode: "_1hbz9ox1h" }, defaultClass: "_1hbz9ox1g" }, contrast: { conditions: { lightMode: "_1hbz9ox1i", darkMode: "_1hbz9ox1j" }, defaultClass: "_1hbz9ox1i" }, secondary: { conditions: { lightMode: "_1hbz9ox1k", darkMode: "_1hbz9ox1l" }, defaultClass: "_1hbz9ox1k" }, tertiary: { conditions: { lightMode: "_1hbz9ox1m", darkMode: "_1hbz9ox1n" }, defaultClass: "_1hbz9ox1m" }, placeholder: { conditions: { lightMode: "_1hbz9ox1o", darkMode: "_1hbz9ox1p" }, defaultClass: "_1hbz9ox1o" }, smooth: { conditions: { lightMode: "_1hbz9ox1q", darkMode: "_1hbz9ox1r" }, defaultClass: "_1hbz9ox1q" }, subtle: { conditions: { lightMode: "_1hbz9ox1s", darkMode: "_1hbz9ox1t" }, defaultClass: "_1hbz9ox1s" }, soft: { conditions: { lightMode: "_1hbz9ox1u", darkMode: "_1hbz9ox1v" }, defaultClass: "_1hbz9ox1u" }, offset: { conditions: { lightMode: "_1hbz9ox1w", darkMode: "_1hbz9ox1x" }, defaultClass: "_1hbz9ox1w" }, primary: { conditions: { lightMode: "_1hbz9ox1y", darkMode: "_1hbz9ox1z" }, defaultClass: "_1hbz9ox1y" }, primaryHover: { conditions: { lightMode: "_1hbz9ox20", darkMode: "_1hbz9ox21" }, defaultClass: "_1hbz9ox20" }, transparent: { conditions: { lightMode: "_1hbz9ox22", darkMode: "_1hbz9ox23" }, defaultClass: "_1hbz9ox22" }, error: { conditions: { lightMode: "_1hbz9ox24", darkMode: "_1hbz9ox25" }, defaultClass: "_1hbz9ox24" }, auxiliary: { conditions: { lightMode: "_1hbz9ox26", darkMode: "_1hbz9ox27" }, defaultClass: "_1hbz9ox26" }, success: { conditions: { lightMode: "_1hbz9ox28", darkMode: "_1hbz9ox29" }, defaultClass: "_1hbz9ox28" }, foregroundSuccess: { conditions: { lightMode: "_1hbz9ox2a", darkMode: "_1hbz9ox2b" }, defaultClass: "_1hbz9ox2a" }, backgroundSuccess: { conditions: { lightMode: "_1hbz9ox2c", darkMode: "_1hbz9ox2d" }, defaultClass: "_1hbz9ox2c" }, failure: { conditions: { lightMode: "_1hbz9ox2e", darkMode: "_1hbz9ox2f" }, defaultClass: "_1hbz9ox2e" }, foregroundFailure: { conditions: { lightMode: "_1hbz9ox2g", darkMode: "_1hbz9ox2h" }, defaultClass: "_1hbz9ox2g" }, backgroundFailure: { conditions: { lightMode: "_1hbz9ox2i", darkMode: "_1hbz9ox2j" }, defaultClass: "_1hbz9ox2i" } } } } }, { conditions: void 0, styles: { marginY: { mappings: ["marginTop", "marginBottom"] }, marginX: { mappings: ["marginLeft", "marginRight"] }, gap: { values: { 0: { defaultClass: "_1hbz9ox2k" }, 1: { defaultClass: "_1hbz9ox2l" }, 2: { defaultClass: "_1hbz9ox2m" }, 3: { defaultClass: "_1hbz9ox2n" }, 4: { defaultClass: "_1hbz9ox2o" }, 5: { defaultClass: "_1hbz9ox2p" }, 6: { defaultClass: "_1hbz9ox2q" }, 7: { defaultClass: "_1hbz9ox2r" }, 8: { defaultClass: "_1hbz9ox2s" }, 9: { defaultClass: "_1hbz9ox2t" }, 10: { defaultClass: "_1hbz9ox2u" }, 11: { defaultClass: "_1hbz9ox2v" }, 12: { defaultClass: "_1hbz9ox2w" }, 13: { defaultClass: "_1hbz9ox2x" }, 14: { defaultClass: "_1hbz9ox2y" }, 15: { defaultClass: "_1hbz9ox2z" }, 16: { defaultClass: "_1hbz9ox30" }, 20: { defaultClass: "_1hbz9ox31" }, 24: { defaultClass: "_1hbz9ox32" }, 28: { defaultClass: "_1hbz9ox33" }, 32: { defaultClass: "_1hbz9ox34" }, 36: { defaultClass: "_1hbz9ox35" }, 40: { defaultClass: "_1hbz9ox36" }, 44: { defaultClass: "_1hbz9ox37" }, 48: { defaultClass: "_1hbz9ox38" }, 52: { defaultClass: "_1hbz9ox39" }, 56: { defaultClass: "_1hbz9ox3a" }, 60: { defaultClass: "_1hbz9ox3b" }, 64: { defaultClass: "_1hbz9ox3c" }, 68: { defaultClass: "_1hbz9ox3d" }, 72: { defaultClass: "_1hbz9ox3e" }, 76: { defaultClass: "_1hbz9ox3f" }, 80: { defaultClass: "_1hbz9ox3g" }, 96: { defaultClass: "_1hbz9ox3h" }, px: { defaultClass: "_1hbz9ox3i" }, "0.25": { defaultClass: "_1hbz9ox3j" }, "0.5": { defaultClass: "_1hbz9ox3k" }, "0.75": { defaultClass: "_1hbz9ox3l" }, "1.5": { defaultClass: "_1hbz9ox3m" }, "2.5": { defaultClass: "_1hbz9ox3n" }, "3.5": { defaultClass: "_1hbz9ox3o" } } }, marginTop: { values: { 0: { defaultClass: "_1hbz9ox3p" }, 1: { defaultClass: "_1hbz9ox3q" }, 2: { defaultClass: "_1hbz9ox3r" }, 3: { defaultClass: "_1hbz9ox3s" }, 4: { defaultClass: "_1hbz9ox3t" }, 5: { defaultClass: "_1hbz9ox3u" }, 6: { defaultClass: "_1hbz9ox3v" }, 7: { defaultClass: "_1hbz9ox3w" }, 8: { defaultClass: "_1hbz9ox3x" }, 9: { defaultClass: "_1hbz9ox3y" }, 10: { defaultClass: "_1hbz9ox3z" }, 11: { defaultClass: "_1hbz9ox40" }, 12: { defaultClass: "_1hbz9ox41" }, 13: { defaultClass: "_1hbz9ox42" }, 14: { defaultClass: "_1hbz9ox43" }, 15: { defaultClass: "_1hbz9ox44" }, 16: { defaultClass: "_1hbz9ox45" }, 20: { defaultClass: "_1hbz9ox46" }, 24: { defaultClass: "_1hbz9ox47" }, 28: { defaultClass: "_1hbz9ox48" }, 32: { defaultClass: "_1hbz9ox49" }, 36: { defaultClass: "_1hbz9ox4a" }, 40: { defaultClass: "_1hbz9ox4b" }, 44: { defaultClass: "_1hbz9ox4c" }, 48: { defaultClass: "_1hbz9ox4d" }, 52: { defaultClass: "_1hbz9ox4e" }, 56: { defaultClass: "_1hbz9ox4f" }, 60: { defaultClass: "_1hbz9ox4g" }, 64: { defaultClass: "_1hbz9ox4h" }, 68: { defaultClass: "_1hbz9ox4i" }, 72: { defaultClass: "_1hbz9ox4j" }, 76: { defaultClass: "_1hbz9ox4k" }, 80: { defaultClass: "_1hbz9ox4l" }, 96: { defaultClass: "_1hbz9ox4m" }, px: { defaultClass: "_1hbz9ox4n" }, "0.25": { defaultClass: "_1hbz9ox4o" }, "0.5": { defaultClass: "_1hbz9ox4p" }, "0.75": { defaultClass: "_1hbz9ox4q" }, "1.5": { defaultClass: "_1hbz9ox4r" }, "2.5": { defaultClass: "_1hbz9ox4s" }, "3.5": { defaultClass: "_1hbz9ox4t" } } }, marginBottom: { values: { 0: { defaultClass: "_1hbz9ox4u" }, 1: { defaultClass: "_1hbz9ox4v" }, 2: { defaultClass: "_1hbz9ox4w" }, 3: { defaultClass: "_1hbz9ox4x" }, 4: { defaultClass: "_1hbz9ox4y" }, 5: { defaultClass: "_1hbz9ox4z" }, 6: { defaultClass: "_1hbz9ox50" }, 7: { defaultClass: "_1hbz9ox51" }, 8: { defaultClass: "_1hbz9ox52" }, 9: { defaultClass: "_1hbz9ox53" }, 10: { defaultClass: "_1hbz9ox54" }, 11: { defaultClass: "_1hbz9ox55" }, 12: { defaultClass: "_1hbz9ox56" }, 13: { defaultClass: "_1hbz9ox57" }, 14: { defaultClass: "_1hbz9ox58" }, 15: { defaultClass: "_1hbz9ox59" }, 16: { defaultClass: "_1hbz9ox5a" }, 20: { defaultClass: "_1hbz9ox5b" }, 24: { defaultClass: "_1hbz9ox5c" }, 28: { defaultClass: "_1hbz9ox5d" }, 32: { defaultClass: "_1hbz9ox5e" }, 36: { defaultClass: "_1hbz9ox5f" }, 40: { defaultClass: "_1hbz9ox5g" }, 44: { defaultClass: "_1hbz9ox5h" }, 48: { defaultClass: "_1hbz9ox5i" }, 52: { defaultClass: "_1hbz9ox5j" }, 56: { defaultClass: "_1hbz9ox5k" }, 60: { defaultClass: "_1hbz9ox5l" }, 64: { defaultClass: "_1hbz9ox5m" }, 68: { defaultClass: "_1hbz9ox5n" }, 72: { defaultClass: "_1hbz9ox5o" }, 76: { defaultClass: "_1hbz9ox5p" }, 80: { defaultClass: "_1hbz9ox5q" }, 96: { defaultClass: "_1hbz9ox5r" }, px: { defaultClass: "_1hbz9ox5s" }, "0.25": { defaultClass: "_1hbz9ox5t" }, "0.5": { defaultClass: "_1hbz9ox5u" }, "0.75": { defaultClass: "_1hbz9ox5v" }, "1.5": { defaultClass: "_1hbz9ox5w" }, "2.5": { defaultClass: "_1hbz9ox5x" }, "3.5": { defaultClass: "_1hbz9ox5y" } } }, marginLeft: { values: { 0: { defaultClass: "_1hbz9ox5z" }, 1: { defaultClass: "_1hbz9ox60" }, 2: { defaultClass: "_1hbz9ox61" }, 3: { defaultClass: "_1hbz9ox62" }, 4: { defaultClass: "_1hbz9ox63" }, 5: { defaultClass: "_1hbz9ox64" }, 6: { defaultClass: "_1hbz9ox65" }, 7: { defaultClass: "_1hbz9ox66" }, 8: { defaultClass: "_1hbz9ox67" }, 9: { defaultClass: "_1hbz9ox68" }, 10: { defaultClass: "_1hbz9ox69" }, 11: { defaultClass: "_1hbz9ox6a" }, 12: { defaultClass: "_1hbz9ox6b" }, 13: { defaultClass: "_1hbz9ox6c" }, 14: { defaultClass: "_1hbz9ox6d" }, 15: { defaultClass: "_1hbz9ox6e" }, 16: { defaultClass: "_1hbz9ox6f" }, 20: { defaultClass: "_1hbz9ox6g" }, 24: { defaultClass: "_1hbz9ox6h" }, 28: { defaultClass: "_1hbz9ox6i" }, 32: { defaultClass: "_1hbz9ox6j" }, 36: { defaultClass: "_1hbz9ox6k" }, 40: { defaultClass: "_1hbz9ox6l" }, 44: { defaultClass: "_1hbz9ox6m" }, 48: { defaultClass: "_1hbz9ox6n" }, 52: { defaultClass: "_1hbz9ox6o" }, 56: { defaultClass: "_1hbz9ox6p" }, 60: { defaultClass: "_1hbz9ox6q" }, 64: { defaultClass: "_1hbz9ox6r" }, 68: { defaultClass: "_1hbz9ox6s" }, 72: { defaultClass: "_1hbz9ox6t" }, 76: { defaultClass: "_1hbz9ox6u" }, 80: { defaultClass: "_1hbz9ox6v" }, 96: { defaultClass: "_1hbz9ox6w" }, px: { defaultClass: "_1hbz9ox6x" }, "0.25": { defaultClass: "_1hbz9ox6y" }, "0.5": { defaultClass: "_1hbz9ox6z" }, "0.75": { defaultClass: "_1hbz9ox70" }, "1.5": { defaultClass: "_1hbz9ox71" }, "2.5": { defaultClass: "_1hbz9ox72" }, "3.5": { defaultClass: "_1hbz9ox73" } } }, marginRight: { values: { 0: { defaultClass: "_1hbz9ox74" }, 1: { defaultClass: "_1hbz9ox75" }, 2: { defaultClass: "_1hbz9ox76" }, 3: { defaultClass: "_1hbz9ox77" }, 4: { defaultClass: "_1hbz9ox78" }, 5: { defaultClass: "_1hbz9ox79" }, 6: { defaultClass: "_1hbz9ox7a" }, 7: { defaultClass: "_1hbz9ox7b" }, 8: { defaultClass: "_1hbz9ox7c" }, 9: { defaultClass: "_1hbz9ox7d" }, 10: { defaultClass: "_1hbz9ox7e" }, 11: { defaultClass: "_1hbz9ox7f" }, 12: { defaultClass: "_1hbz9ox7g" }, 13: { defaultClass: "_1hbz9ox7h" }, 14: { defaultClass: "_1hbz9ox7i" }, 15: { defaultClass: "_1hbz9ox7j" }, 16: { defaultClass: "_1hbz9ox7k" }, 20: { defaultClass: "_1hbz9ox7l" }, 24: { defaultClass: "_1hbz9ox7m" }, 28: { defaultClass: "_1hbz9ox7n" }, 32: { defaultClass: "_1hbz9ox7o" }, 36: { defaultClass: "_1hbz9ox7p" }, 40: { defaultClass: "_1hbz9ox7q" }, 44: { defaultClass: "_1hbz9ox7r" }, 48: { defaultClass: "_1hbz9ox7s" }, 52: { defaultClass: "_1hbz9ox7t" }, 56: { defaultClass: "_1hbz9ox7u" }, 60: { defaultClass: "_1hbz9ox7v" }, 64: { defaultClass: "_1hbz9ox7w" }, 68: { defaultClass: "_1hbz9ox7x" }, 72: { defaultClass: "_1hbz9ox7y" }, 76: { defaultClass: "_1hbz9ox7z" }, 80: { defaultClass: "_1hbz9ox80" }, 96: { defaultClass: "_1hbz9ox81" }, px: { defaultClass: "_1hbz9ox82" }, "0.25": { defaultClass: "_1hbz9ox83" }, "0.5": { defaultClass: "_1hbz9ox84" }, "0.75": { defaultClass: "_1hbz9ox85" }, "1.5": { defaultClass: "_1hbz9ox86" }, "2.5": { defaultClass: "_1hbz9ox87" }, "3.5": { defaultClass: "_1hbz9ox88" } } } } });
1118
- const Ye = (t) => /* @__PURE__ */ o.jsx(
1119
- "div",
1120
- {
1121
- className: N(
1122
- "sid-stack",
1123
- sr(t.variant),
1124
- Nt({ gap: t.space || "2" }),
1125
- t.className
1126
- ),
1127
- style: t.style,
1128
- children: t.children
1129
- }
1130
- );
1131
- var ur = Pt({ defaultClassName: "_1wn0ypy0", variantClassNames: { size: { xs: "_1wn0ypy1", sm: "_1wn0ypy2", base: "_1wn0ypy3", xl: "_1wn0ypy4", "2xl-title": "_1wn0ypy5" }, weight: { medium: "_1wn0ypy6", semibold: "_1wn0ypy7", bold: "_1wn0ypy8" }, color: { contrast: "_1wn0ypy9", tertiary: "_1wn0ypya", placeholder: "_1wn0ypyb", white: "_1wn0ypyc", success: "_1wn0ypyd", failure: "_1wn0ypye" } }, defaultVariants: { size: "base", weight: "medium" }, compoundVariants: [] });
1132
- const cr = {
1133
- text: {}
1134
- }, $e = Et(cr);
1135
- $e.displayName = "SlashIDTextContext";
1136
- const ma = ({ text: t, children: e }) => {
1137
- const s = St(() => ({
1138
- text: t
1139
- }), [t]);
1140
- return /* @__PURE__ */ o.jsx($e.Provider, { value: s, children: e });
1141
- };
1142
- function dr() {
1143
- const { text: t } = we.useContext($e);
1144
- return t;
1145
- }
1146
- const Le = {
1147
- opening: "{{",
1148
- closing: "}}"
1149
- };
1150
- function Dt(t, e) {
1151
- return t.includes(Le.opening) ? Object.keys(e).reduce(
1152
- (r, n) => r.replace(
1153
- `${Le.opening}${n}${Le.closing}`,
1154
- e[n]
1155
- ),
1156
- t
1157
- ) : t;
1158
- }
1159
- const Fe = ({
1160
- as: t,
1161
- t: e,
1162
- tokens: s,
1163
- variant: r,
1164
- className: n,
1165
- children: u
1166
- }) => {
1167
- const c = dr(), f = t || "p";
1168
- return /* @__PURE__ */ o.jsxs(
1169
- f,
1170
- {
1171
- className: N(
1172
- "sid-text",
1173
- `sid-text--${t}`,
1174
- ur(r),
1175
- n
1176
- ),
1177
- children: [
1178
- s ? Dt(c[e], s) : c[e],
1179
- u || null
1180
- ]
1181
- }
1182
- );
1183
- }, z = {
1184
- "footer.text": "Top-tier security by SlashID",
1185
- "initial.title": "Logging you in...",
1186
- "initial.details": "Please follow the on-screen instructions.",
1187
- "recover.password.title": "Reset password",
1188
- "recover.password.details": "Enter your new password.",
1189
- "recover.password.input.password.label": "Password",
1190
- "recover.password.input.confirmPassword.label": "Confirm password",
1191
- "recover.password.input.placeholder": "Type your new password",
1192
- "recover.password.submit": "Reset password",
1193
- "recover.password.validation.passwordsDoNotMatch": "Passwords do not match",
1194
- "recover.password.validation.length": "8-256 characters required",
1195
- "recover.password.validation.password_variants": "Contains word 'password'",
1196
- "recover.password.validation.admin_variants": "Contains word 'admin'",
1197
- "recover.password.validation.user_variants": "Contains word 'user'",
1198
- "recover.password.validation.alphanumeric_sequences_1": "Illegal sequence: {{ILLEGAL_SEQUENCE}}",
1199
- "recover.password.validation.alphanumeric_sequences_2": "Illegal sequence: {{ILLEGAL_SEQUENCE}}",
1200
- "recover.password.validation.numeric_sequences_ascending": "Illegal sequence: {{ILLEGAL_SEQUENCE}}",
1201
- "recover.password.validation.numeric_subsequences_ascending": "Illegal sequence: {{ILLEGAL_SEQUENCE}}",
1202
- "recover.password.validation.numeric_sequences_descending": "Illegal sequence: {{ILLEGAL_SEQUENCE}}",
1203
- "recover.password.validation.numeric_subsequences_descending": "Illegal sequence: {{ILLEGAL_SEQUENCE}}",
1204
- "recover.password.validation.common_password_xkcd": "Common password",
1205
- "success.title": "All done!",
1206
- "success.details": "Please return to the website.",
1207
- "error.title": "Something went wrong...",
1208
- "error.detail": "Please log in again."
1209
- }, fr = {
1210
- en: z,
1211
- ja: {
1212
- "footer.text": z["footer.text"],
1213
- "initial.title": "ログイン処理を行っています。",
1214
- "initial.details": "処理完了後、画面は自動で切り替わります。",
1215
- "success.title": "認証が完了しました!",
1216
- "success.details": "このページを閉じて、元のページへ戻ってください。",
1217
- "recover.password.title": z["recover.password.title"],
1218
- "recover.password.details": z["recover.password.details"],
1219
- "recover.password.input.password.label": z["recover.password.input.password.label"],
1220
- "recover.password.input.confirmPassword.label": z["recover.password.input.confirmPassword.label"],
1221
- "recover.password.input.placeholder": z["recover.password.input.placeholder"],
1222
- "recover.password.submit": z["recover.password.submit"],
1223
- "recover.password.validation.passwordsDoNotMatch": z["recover.password.validation.passwordsDoNotMatch"],
1224
- "recover.password.validation.length": z["recover.password.validation.length"],
1225
- "recover.password.validation.password_variants": z["recover.password.validation.password_variants"],
1226
- "recover.password.validation.admin_variants": z["recover.password.validation.admin_variants"],
1227
- "recover.password.validation.user_variants": z["recover.password.validation.user_variants"],
1228
- "recover.password.validation.alphanumeric_sequences_1": z["recover.password.validation.alphanumeric_sequences_1"],
1229
- "recover.password.validation.alphanumeric_sequences_2": z["recover.password.validation.alphanumeric_sequences_2"],
1230
- "recover.password.validation.numeric_sequences_ascending": z["recover.password.validation.numeric_sequences_ascending"],
1231
- "recover.password.validation.numeric_subsequences_ascending": z["recover.password.validation.numeric_subsequences_ascending"],
1232
- "recover.password.validation.numeric_sequences_descending": z["recover.password.validation.numeric_sequences_descending"],
1233
- "recover.password.validation.numeric_subsequences_descending": z["recover.password.validation.numeric_subsequences_descending"],
1234
- "recover.password.validation.common_password_xkcd": z["recover.password.validation.common_password_xkcd"],
1235
- "error.title": z["error.title"],
1236
- "error.detail": "再度ログインをしてください。"
1237
- }
1238
- }, hr = (t) => (e) => fr[t][e], _r = {
1239
- logo: /* @__PURE__ */ o.jsx($s, {}),
1240
- language: "en",
1241
- state: "initial",
1242
- sdk: void 0,
1243
- setLogo: () => {
1244
- }
1245
- }, pr = Et(_r), ye = () => Cs(pr), J = (t) => /* @__PURE__ */ o.jsx(Fe, { ...t });
1246
- var br = "_1vg0oop0", gr = "_1vg0oop1", xr = "_1vg0oop2", mt = "_1vg0oop3";
1247
- function vr() {
1248
- const { logo: t } = ye();
1249
- return /* @__PURE__ */ o.jsx("div", { className: mt, children: typeof t == "string" ? /* @__PURE__ */ o.jsx("img", { src: t, alt: "logo", className: mt }) : t });
1250
- }
1251
- function mr() {
1252
- return /* @__PURE__ */ o.jsx(
1253
- J,
1254
- {
1255
- t: "footer.text",
1256
- variant: {
1257
- size: "xs",
1258
- weight: "semibold",
1259
- color: "placeholder"
1260
- }
1261
- }
1262
- );
1263
- }
1264
- function Ca({ children: t, className: e, header: s = /* @__PURE__ */ o.jsx(vr, {}), footer: r = /* @__PURE__ */ o.jsx(mr, {}), style: n }) {
1265
- return /* @__PURE__ */ o.jsxs("article", { style: n, className: N(br, e), children: [
1266
- s && /* @__PURE__ */ o.jsx("header", { className: gr, children: s }),
1267
- /* @__PURE__ */ o.jsx("div", { children: t }),
1268
- r && /* @__PURE__ */ o.jsx("footer", { className: xr, children: r })
1269
- ] });
1270
- }
1271
- const Cr = { "--sid-color-primary": "#DCDDE5" };
1272
- function wr({ type: t }) {
1273
- return t === "neutral" ? /* @__PURE__ */ o.jsx("div", { style: Cr, children: /* @__PURE__ */ o.jsx(me, { variant: "primary", shouldAnimate: !1, children: /* @__PURE__ */ o.jsx(pt, {}) }) }) : /* @__PURE__ */ o.jsx(me, { variant: t === "warning" ? "blue" : "red", shouldAnimate: !1, children: /* @__PURE__ */ o.jsx(pt, {}) });
1274
- }
1275
- function wa({ type: t, redirectUri: e }) {
1276
- return e && window.location.replace(e), /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
1277
- /* @__PURE__ */ o.jsxs(Ye, { space: "0.25", children: [
1278
- /* @__PURE__ */ o.jsx(J, { as: "h1", variant: { size: "2xl-title", weight: "bold" }, t: "error.title" }),
1279
- /* @__PURE__ */ o.jsx(J, { as: "h2", t: "error.detail", variant: { color: "contrast", weight: "semibold" } })
1280
- ] }),
1281
- /* @__PURE__ */ o.jsx(wr, { type: t })
1282
- ] });
1283
- }
1284
- const yr = () => /* @__PURE__ */ o.jsx(me, { 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(
1285
- "path",
1286
- {
1287
- fillRule: "evenodd",
1288
- clipRule: "evenodd",
1289
- d: "M19.8505 0.705985C20.6342 1.38283 20.7209 2.56684 20.044 3.35055L8.16908 17.1005C7.80192 17.5256 7.2635 17.7637 6.70195 17.7493C6.1404 17.7349 5.61489 17.4695 5.27002 17.0261L0.895049 11.4011C0.259296 10.5837 0.406547 9.4057 1.22394 8.76995C2.04134 8.13419 3.21935 8.28145 3.8551 9.09884L6.82592 12.9185L17.2059 0.89949C17.8828 0.115778 19.0668 0.0291434 19.8505 0.705985Z",
1290
- fill: "white"
1291
- }
1292
- ) }) });
1293
- function ya({ redirectUri: t } = {}) {
1294
- return t && window.location.replace(t), /* @__PURE__ */ o.jsxs("article", { "data-testid": "sid-form-success-state", children: [
1295
- /* @__PURE__ */ o.jsx(J, { as: "h1", t: "success.title", variant: { size: "2xl-title", weight: "bold" } }),
1296
- /* @__PURE__ */ o.jsx(J, { as: "h2", t: "success.details", variant: { color: "contrast", weight: "semibold" } }),
1297
- /* @__PURE__ */ o.jsx(yr, {})
1298
- ] });
1299
- }
1300
- var zr = "_8vopmj0", Er = "_8vopmj2";
1301
- function Sr() {
1302
- const { language: t } = ye();
1303
- return St(() => hr(t), [t]);
1304
- }
1305
- function jr(t) {
1306
- return `recover.password.validation.${t.failedRules[0].name}`;
1307
- }
1308
- function Rr({
1309
- errorEvent: t,
1310
- password: e
1311
- }) {
1312
- const s = t.failedRules[0];
1313
- let r = "";
1314
- if (s.matchType === "must_not_match") {
1315
- const n = s.regexp.exec(e);
1316
- r = n !== null ? n[0] : "";
1317
- }
1318
- return r ? {
1319
- ILLEGAL_SEQUENCE: r
1320
- } : {};
1321
- }
1322
- function Tr({ message: t }) {
1323
- return /* @__PURE__ */ o.jsx("span", { className: Er, children: t });
1324
- }
1325
- function Or() {
1326
- const t = Sr(), { sdk: e } = ye(), [s, r] = ue(""), [n, u] = ue(""), [c, f] = ue(null), [d, b] = ue("initial");
1327
- jt(() => {
1328
- const S = (B) => {
1329
- f(
1330
- Dt(
1331
- t(jr(B)),
1332
- Rr({ errorEvent: B, password: s })
1333
- )
1334
- ), b("initial");
1335
- };
1336
- return e == null || e.subscribe("invalidPasswordSubmitted", S), () => {
1337
- e == null || e.unsubscribe("invalidPasswordSubmitted", S);
1338
- };
1339
- }, [t, e, s, f]);
1340
- const x = (S) => {
1341
- if (S.preventDefault(), !!e) {
1342
- if (!s || s !== n) {
1343
- f(t("recover.password.validation.passwordsDoNotMatch"));
1344
- return;
1345
- }
1346
- e.publish("passwordSubmitted", s), b("submitting");
1347
- }
1348
- }, w = (S) => {
1349
- r(S.target.value), f(null);
1350
- }, O = (S) => {
1351
- u(S.target.value), f(null);
1352
- };
1353
- return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
1354
- /* @__PURE__ */ o.jsxs(Ye, { space: "0.25", children: [
1355
- /* @__PURE__ */ o.jsx(Fe, { as: "h1", variant: { size: "2xl-title", weight: "bold" }, t: "recover.password.title" }),
1356
- /* @__PURE__ */ o.jsx(Fe, { variant: { color: "contrast", weight: "semibold" }, as: "h2", t: "recover.password.details" })
1357
- ] }),
1358
- /* @__PURE__ */ o.jsxs("form", { onSubmit: x, children: [
1359
- /* @__PURE__ */ o.jsxs("div", { className: zr, children: [
1360
- /* @__PURE__ */ o.jsx(
1361
- bt,
1362
- {
1363
- id: "password-input",
1364
- label: t("recover.password.input.password.label"),
1365
- placeholder: t("recover.password.input.placeholder"),
1366
- name: "password",
1367
- value: s ?? "",
1368
- onChange: w,
1369
- error: !!c,
1370
- autoComplete: "new-password"
1371
- }
1372
- ),
1373
- /* @__PURE__ */ o.jsx(
1374
- bt,
1375
- {
1376
- id: "password-input-confirm",
1377
- label: t("recover.password.input.confirmPassword.label"),
1378
- placeholder: t("recover.password.input.placeholder"),
1379
- name: "passwordConfirm",
1380
- value: n ?? "",
1381
- onChange: O,
1382
- className: Nt({ marginTop: "4" }),
1383
- error: !!c,
1384
- autoComplete: "new-password"
1385
- }
1386
- ),
1387
- c && /* @__PURE__ */ o.jsx(Tr, { message: c })
1388
- ] }),
1389
- /* @__PURE__ */ o.jsx(
1390
- kt,
1391
- {
1392
- type: "submit",
1393
- variant: "primary",
1394
- testId: "sid-form-initial-submit-button",
1395
- disabled: d === "submitting",
1396
- loading: d === "submitting",
1397
- children: t("recover.password.submit")
1398
- }
1399
- )
1400
- ] })
1401
- ] });
1402
- }
1403
- const Mr = Object.prototype.toString;
1404
- function kr(t, e) {
1405
- return Mr.call(t) === `[object ${e}]`;
1406
- }
1407
- function It(t) {
1408
- return kr(t, "Object");
1409
- }
1410
- function He(t) {
1411
- return !!(t && t.then && typeof t.then == "function");
1412
- }
1413
- function xe(t) {
1414
- return t && t.Math == Math ? t : void 0;
1415
- }
1416
- const D = typeof globalThis == "object" && xe(globalThis) || // eslint-disable-next-line no-restricted-globals
1417
- typeof window == "object" && xe(window) || typeof self == "object" && xe(self) || typeof global == "object" && xe(global) || /* @__PURE__ */ function() {
1418
- return this;
1419
- }() || {};
1420
- function Lt(t, e, s) {
1421
- const r = s || D, n = r.__SENTRY__ = r.__SENTRY__ || {};
1422
- return n[t] || (n[t] = e());
1423
- }
1424
- const Pr = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, Nr = "Sentry Logger ", Ct = [
1425
- "debug",
1426
- "info",
1427
- "warn",
1428
- "error",
1429
- "log",
1430
- "assert",
1431
- "trace"
1432
- ], wt = {};
1433
- function At(t) {
1434
- if (!("console" in D))
1435
- return t();
1436
- const e = D.console, s = {}, r = Object.keys(wt);
1437
- r.forEach((n) => {
1438
- const u = wt[n];
1439
- s[n] = e[n], e[n] = u;
1440
- });
1441
- try {
1442
- return t();
1443
- } finally {
1444
- r.forEach((n) => {
1445
- e[n] = s[n];
1446
- });
1447
- }
1448
- }
1449
- function Dr() {
1450
- let t = !1;
1451
- const e = {
1452
- enable: () => {
1453
- t = !0;
1454
- },
1455
- disable: () => {
1456
- t = !1;
1457
- },
1458
- isEnabled: () => t
1459
- };
1460
- return Pr ? Ct.forEach((s) => {
1461
- e[s] = (...r) => {
1462
- t && At(() => {
1463
- D.console[s](`${Nr}[${s}]:`, ...r);
1464
- });
1465
- };
1466
- }) : Ct.forEach((s) => {
1467
- e[s] = () => {
1468
- };
1469
- }), e;
1470
- }
1471
- const H = Dr();
1472
- function G(t) {
1473
- return Ue(t, /* @__PURE__ */ new Map());
1474
- }
1475
- function Ue(t, e) {
1476
- if (Ir(t)) {
1477
- const s = e.get(t);
1478
- if (s !== void 0)
1479
- return s;
1480
- const r = {};
1481
- e.set(t, r);
1482
- for (const n of Object.keys(t))
1483
- typeof t[n] < "u" && (r[n] = Ue(t[n], e));
1484
- return r;
1485
- }
1486
- if (Array.isArray(t)) {
1487
- const s = e.get(t);
1488
- if (s !== void 0)
1489
- return s;
1490
- const r = [];
1491
- return e.set(t, r), t.forEach((n) => {
1492
- r.push(Ue(n, e));
1493
- }), r;
1494
- }
1495
- return t;
1496
- }
1497
- function Ir(t) {
1498
- if (!It(t))
1499
- return !1;
1500
- try {
1501
- const e = Object.getPrototypeOf(t).constructor.name;
1502
- return !e || e === "Object";
1503
- } catch {
1504
- return !0;
1505
- }
1506
- }
1507
- function L() {
1508
- const t = D, e = t.crypto || t.msCrypto;
1509
- let s = () => Math.random() * 16;
1510
- try {
1511
- if (e && e.randomUUID)
1512
- return e.randomUUID().replace(/-/g, "");
1513
- e && e.getRandomValues && (s = () => {
1514
- const r = new Uint8Array(1);
1515
- return e.getRandomValues(r), r[0];
1516
- });
1517
- } catch {
1518
- }
1519
- return ("10000000100040008000" + 1e11).replace(
1520
- /[018]/g,
1521
- (r) => (
1522
- // eslint-disable-next-line no-bitwise
1523
- (r ^ (s() & 15) >> r / 4).toString(16)
1524
- )
1525
- );
1526
- }
1527
- function Lr(t) {
1528
- return Array.isArray(t) ? t : [t];
1529
- }
1530
- var q;
1531
- (function(t) {
1532
- t[t.PENDING = 0] = "PENDING";
1533
- const s = 1;
1534
- t[t.RESOLVED = s] = "RESOLVED";
1535
- const r = 2;
1536
- t[t.REJECTED = r] = "REJECTED";
1537
- })(q || (q = {}));
1538
- class $ {
1539
- constructor(e) {
1540
- $.prototype.__init.call(this), $.prototype.__init2.call(this), $.prototype.__init3.call(this), $.prototype.__init4.call(this), this._state = q.PENDING, this._handlers = [];
1541
- try {
1542
- e(this._resolve, this._reject);
1543
- } catch (s) {
1544
- this._reject(s);
1545
- }
1546
- }
1547
- /** JSDoc */
1548
- then(e, s) {
1549
- return new $((r, n) => {
1550
- this._handlers.push([
1551
- !1,
1552
- (u) => {
1553
- if (!e)
1554
- r(u);
1555
- else
1556
- try {
1557
- r(e(u));
1558
- } catch (c) {
1559
- n(c);
1560
- }
1561
- },
1562
- (u) => {
1563
- if (!s)
1564
- n(u);
1565
- else
1566
- try {
1567
- r(s(u));
1568
- } catch (c) {
1569
- n(c);
1570
- }
1571
- }
1572
- ]), this._executeHandlers();
1573
- });
1574
- }
1575
- /** JSDoc */
1576
- catch(e) {
1577
- return this.then((s) => s, e);
1578
- }
1579
- /** JSDoc */
1580
- finally(e) {
1581
- return new $((s, r) => {
1582
- let n, u;
1583
- return this.then(
1584
- (c) => {
1585
- u = !1, n = c, e && e();
1586
- },
1587
- (c) => {
1588
- u = !0, n = c, e && e();
1589
- }
1590
- ).then(() => {
1591
- if (u) {
1592
- r(n);
1593
- return;
1594
- }
1595
- s(n);
1596
- });
1597
- });
1598
- }
1599
- /** JSDoc */
1600
- __init() {
1601
- this._resolve = (e) => {
1602
- this._setResult(q.RESOLVED, e);
1603
- };
1604
- }
1605
- /** JSDoc */
1606
- __init2() {
1607
- this._reject = (e) => {
1608
- this._setResult(q.REJECTED, e);
1609
- };
1610
- }
1611
- /** JSDoc */
1612
- __init3() {
1613
- this._setResult = (e, s) => {
1614
- if (this._state === q.PENDING) {
1615
- if (He(s)) {
1616
- s.then(this._resolve, this._reject);
1617
- return;
1618
- }
1619
- this._state = e, this._value = s, this._executeHandlers();
1620
- }
1621
- };
1622
- }
1623
- /** JSDoc */
1624
- __init4() {
1625
- this._executeHandlers = () => {
1626
- if (this._state === q.PENDING)
1627
- return;
1628
- const e = this._handlers.slice();
1629
- this._handlers = [], e.forEach((s) => {
1630
- s[0] || (this._state === q.RESOLVED && s[1](this._value), this._state === q.REJECTED && s[2](this._value), s[0] = !0);
1631
- });
1632
- };
1633
- }
1634
- }
1635
- const Ft = 1e3;
1636
- function Ge() {
1637
- return Date.now() / Ft;
1638
- }
1639
- function Ar() {
1640
- const { performance: t } = D;
1641
- if (!t || !t.now)
1642
- return Ge;
1643
- const e = Date.now() - t.now(), s = t.timeOrigin == null ? e : t.timeOrigin;
1644
- return () => (s + t.now()) / Ft;
1645
- }
1646
- const Ut = Ar();
1647
- (() => {
1648
- const { performance: t } = D;
1649
- if (!t || !t.now)
1650
- return;
1651
- const e = 3600 * 1e3, s = t.now(), r = Date.now(), n = t.timeOrigin ? Math.abs(t.timeOrigin + s - r) : e, u = n < e, c = t.timing && t.timing.navigationStart, d = typeof c == "number" ? Math.abs(c + s - r) : e, b = d < e;
1652
- return u || b ? n <= d ? t.timeOrigin : c : r;
1653
- })();
1654
- const ve = typeof __SENTRY_DEBUG__ > "u" || __SENTRY_DEBUG__, qt = "production";
1655
- function Fr() {
1656
- return Lt("globalEventProcessors", () => []);
1657
- }
1658
- function qe(t, e, s, r = 0) {
1659
- return new $((n, u) => {
1660
- const c = t[r];
1661
- if (e === null || typeof c != "function")
1662
- n(e);
1663
- else {
1664
- const f = c({ ...e }, s);
1665
- ve && c.id && f === null && H.log(`Event processor "${c.id}" dropped event`), He(f) ? f.then((d) => qe(t, d, s, r + 1).then(n)).then(null, u) : qe(t, f, s, r + 1).then(n).then(null, u);
1666
- }
1667
- });
1668
- }
1669
- function Ur(t) {
1670
- const e = Ut(), s = {
1671
- sid: L(),
1672
- init: !0,
1673
- timestamp: e,
1674
- started: e,
1675
- duration: 0,
1676
- status: "ok",
1677
- errors: 0,
1678
- ignoreDuration: !1,
1679
- toJSON: () => Br(s)
1680
- };
1681
- return t && ze(s, t), s;
1682
- }
1683
- function ze(t, e = {}) {
1684
- if (e.user && (!t.ipAddress && e.user.ip_address && (t.ipAddress = e.user.ip_address), !t.did && !e.did && (t.did = e.user.id || e.user.email || e.user.username)), t.timestamp = e.timestamp || Ut(), e.abnormal_mechanism && (t.abnormal_mechanism = e.abnormal_mechanism), e.ignoreDuration && (t.ignoreDuration = e.ignoreDuration), e.sid && (t.sid = e.sid.length === 32 ? e.sid : L()), e.init !== void 0 && (t.init = e.init), !t.did && e.did && (t.did = `${e.did}`), typeof e.started == "number" && (t.started = e.started), t.ignoreDuration)
1685
- t.duration = void 0;
1686
- else if (typeof e.duration == "number")
1687
- t.duration = e.duration;
1688
- else {
1689
- const s = t.timestamp - t.started;
1690
- t.duration = s >= 0 ? s : 0;
1691
- }
1692
- e.release && (t.release = e.release), e.environment && (t.environment = e.environment), !t.ipAddress && e.ipAddress && (t.ipAddress = e.ipAddress), !t.userAgent && e.userAgent && (t.userAgent = e.userAgent), typeof e.errors == "number" && (t.errors = e.errors), e.status && (t.status = e.status);
1693
- }
1694
- function qr(t, e) {
1695
- let s = {};
1696
- e ? s = { status: e } : t.status === "ok" && (s = { status: "exited" }), ze(t, s);
1697
- }
1698
- function Br(t) {
1699
- return G({
1700
- sid: `${t.sid}`,
1701
- init: t.init,
1702
- // Make sure that sec is converted to ms for date constructor
1703
- started: new Date(t.started * 1e3).toISOString(),
1704
- timestamp: new Date(t.timestamp * 1e3).toISOString(),
1705
- status: t.status,
1706
- errors: t.errors,
1707
- did: typeof t.did == "number" || typeof t.did == "string" ? `${t.did}` : void 0,
1708
- duration: t.duration,
1709
- abnormal_mechanism: t.abnormal_mechanism,
1710
- attrs: {
1711
- release: t.release,
1712
- environment: t.environment,
1713
- ip_address: t.ipAddress,
1714
- user_agent: t.userAgent
1715
- }
1716
- });
1717
- }
1718
- const Vr = 1;
1719
- function Yr(t) {
1720
- const { spanId: e, traceId: s } = t.spanContext(), { data: r, op: n, parent_span_id: u, status: c, tags: f, origin: d } = Ce(t);
1721
- return G({
1722
- data: r,
1723
- op: n,
1724
- parent_span_id: u,
1725
- span_id: e,
1726
- status: c,
1727
- tags: f,
1728
- trace_id: s,
1729
- origin: d
1730
- });
1731
- }
1732
- function Ce(t) {
1733
- return $r(t) ? t.getSpanJSON() : typeof t.toJSON == "function" ? t.toJSON() : {};
1734
- }
1735
- function $r(t) {
1736
- return typeof t.getSpanJSON == "function";
1737
- }
1738
- function Hr(t) {
1739
- const { traceFlags: e } = t.spanContext();
1740
- return !!(e & Vr);
1741
- }
1742
- function Gr(t) {
1743
- if (t)
1744
- return Wr(t) ? { captureContext: t } : Kr(t) ? {
1745
- captureContext: t
1746
- } : t;
1747
- }
1748
- function Wr(t) {
1749
- return t instanceof W || typeof t == "function";
1750
- }
1751
- const Jr = [
1752
- "user",
1753
- "level",
1754
- "extra",
1755
- "contexts",
1756
- "tags",
1757
- "fingerprint",
1758
- "requestSession",
1759
- "propagationContext"
1760
- ];
1761
- function Kr(t) {
1762
- return Object.keys(t).some((e) => Jr.includes(e));
1763
- }
1764
- function Zr(t, e) {
1765
- return We().captureException(t, Gr(e));
1766
- }
1767
- function Qr() {
1768
- return We().getClient();
1769
- }
1770
- function Xr() {
1771
- return We().getScope();
1772
- }
1773
- function Bt(t) {
1774
- return t.transaction;
1775
- }
1776
- function ea(t, e, s) {
1777
- const r = e.getOptions(), { publicKey: n } = e.getDsn() || {}, { segment: u } = s && s.getUser() || {}, c = G({
1778
- environment: r.environment || qt,
1779
- release: r.release,
1780
- user_segment: u,
1781
- public_key: n,
1782
- trace_id: t
1783
- });
1784
- return e.emit && e.emit("createDsc", c), c;
1785
- }
1786
- function ta(t) {
1787
- const e = Qr();
1788
- if (!e)
1789
- return {};
1790
- const s = ea(Ce(t).trace_id || "", e, Xr()), r = Bt(t);
1791
- if (!r)
1792
- return s;
1793
- const n = r && r._frozenDynamicSamplingContext;
1794
- if (n)
1795
- return n;
1796
- const { sampleRate: u, source: c } = r.metadata;
1797
- u != null && (s.sample_rate = `${u}`);
1798
- const f = Ce(r);
1799
- return c && c !== "url" && (s.transaction = f.description), s.sampled = String(Hr(r)), e.emit && e.emit("createDsc", s), s;
1800
- }
1801
- function sa(t, e) {
1802
- const { fingerprint: s, span: r, breadcrumbs: n, sdkProcessingMetadata: u } = e;
1803
- ra(t, e), r && oa(t, r), ia(t, s), aa(t, n), na(t, u);
1804
- }
1805
- function ra(t, e) {
1806
- const {
1807
- extra: s,
1808
- tags: r,
1809
- user: n,
1810
- contexts: u,
1811
- level: c,
1812
- // eslint-disable-next-line deprecation/deprecation
1813
- transactionName: f
1814
- } = e, d = G(s);
1815
- d && Object.keys(d).length && (t.extra = { ...d, ...t.extra });
1816
- const b = G(r);
1817
- b && Object.keys(b).length && (t.tags = { ...b, ...t.tags });
1818
- const x = G(n);
1819
- x && Object.keys(x).length && (t.user = { ...x, ...t.user });
1820
- const w = G(u);
1821
- w && Object.keys(w).length && (t.contexts = { ...w, ...t.contexts }), c && (t.level = c), f && (t.transaction = f);
1822
- }
1823
- function aa(t, e) {
1824
- const s = [...t.breadcrumbs || [], ...e];
1825
- t.breadcrumbs = s.length ? s : void 0;
1826
- }
1827
- function na(t, e) {
1828
- t.sdkProcessingMetadata = {
1829
- ...t.sdkProcessingMetadata,
1830
- ...e
1831
- };
1832
- }
1833
- function oa(t, e) {
1834
- t.contexts = { trace: Yr(e), ...t.contexts };
1835
- const s = Bt(e);
1836
- if (s) {
1837
- t.sdkProcessingMetadata = {
1838
- dynamicSamplingContext: ta(e),
1839
- ...t.sdkProcessingMetadata
1840
- };
1841
- const r = Ce(s).description;
1842
- r && (t.tags = { transaction: r, ...t.tags });
1843
- }
1844
- }
1845
- function ia(t, e) {
1846
- t.fingerprint = t.fingerprint ? Lr(t.fingerprint) : [], e && (t.fingerprint = t.fingerprint.concat(e)), t.fingerprint && !t.fingerprint.length && delete t.fingerprint;
1847
- }
1848
- const la = 100;
1849
- class W {
1850
- /** Flag if notifying is happening. */
1851
- /** Callback for client to receive scope changes. */
1852
- /** Callback list that will be called after {@link applyToEvent}. */
1853
- /** Array of breadcrumbs. */
1854
- /** User */
1855
- /** Tags */
1856
- /** Extra */
1857
- /** Contexts */
1858
- /** Attachments */
1859
- /** Propagation Context for distributed tracing */
1860
- /**
1861
- * A place to stash data which is needed at some point in the SDK's event processing pipeline but which shouldn't get
1862
- * sent to Sentry
1863
- */
1864
- /** Fingerprint */
1865
- /** Severity */
1866
- // eslint-disable-next-line deprecation/deprecation
1867
- /**
1868
- * Transaction Name
1869
- */
1870
- /** Span */
1871
- /** Session */
1872
- /** Request Mode Session Status */
1873
- /** The client on this scope */
1874
- // NOTE: Any field which gets added here should get added not only to the constructor but also to the `clone` method.
1875
- constructor() {
1876
- this._notifyingListeners = !1, this._scopeListeners = [], this._eventProcessors = [], this._breadcrumbs = [], this._attachments = [], this._user = {}, this._tags = {}, this._extra = {}, this._contexts = {}, this._sdkProcessingMetadata = {}, this._propagationContext = yt();
1877
- }
1878
- /**
1879
- * Inherit values from the parent scope.
1880
- * @deprecated Use `scope.clone()` and `new Scope()` instead.
1881
- */
1882
- static clone(e) {
1883
- return e ? e.clone() : new W();
1884
- }
1885
- /**
1886
- * Clone this scope instance.
1887
- */
1888
- clone() {
1889
- const e = new W();
1890
- return e._breadcrumbs = [...this._breadcrumbs], e._tags = { ...this._tags }, e._extra = { ...this._extra }, e._contexts = { ...this._contexts }, e._user = this._user, e._level = this._level, e._span = this._span, e._session = this._session, e._transactionName = this._transactionName, e._fingerprint = this._fingerprint, e._eventProcessors = [...this._eventProcessors], e._requestSession = this._requestSession, e._attachments = [...this._attachments], e._sdkProcessingMetadata = { ...this._sdkProcessingMetadata }, e._propagationContext = { ...this._propagationContext }, e._client = this._client, e;
1891
- }
1892
- /** Update the client on the scope. */
1893
- setClient(e) {
1894
- this._client = e;
1895
- }
1896
- /**
1897
- * Get the client assigned to this scope.
1898
- *
1899
- * It is generally recommended to use the global function `Sentry.getClient()` instead, unless you know what you are doing.
1900
- */
1901
- getClient() {
1902
- return this._client;
1903
- }
1904
- /**
1905
- * Add internal on change listener. Used for sub SDKs that need to store the scope.
1906
- * @hidden
1907
- */
1908
- addScopeListener(e) {
1909
- this._scopeListeners.push(e);
1910
- }
1911
- /**
1912
- * @inheritDoc
1913
- */
1914
- addEventProcessor(e) {
1915
- return this._eventProcessors.push(e), this;
1916
- }
1917
- /**
1918
- * @inheritDoc
1919
- */
1920
- setUser(e) {
1921
- return this._user = e || {
1922
- email: void 0,
1923
- id: void 0,
1924
- ip_address: void 0,
1925
- segment: void 0,
1926
- username: void 0
1927
- }, this._session && ze(this._session, { user: e }), this._notifyScopeListeners(), this;
1928
- }
1929
- /**
1930
- * @inheritDoc
1931
- */
1932
- getUser() {
1933
- return this._user;
1934
- }
1935
- /**
1936
- * @inheritDoc
1937
- */
1938
- getRequestSession() {
1939
- return this._requestSession;
1940
- }
1941
- /**
1942
- * @inheritDoc
1943
- */
1944
- setRequestSession(e) {
1945
- return this._requestSession = e, this;
1946
- }
1947
- /**
1948
- * @inheritDoc
1949
- */
1950
- setTags(e) {
1951
- return this._tags = {
1952
- ...this._tags,
1953
- ...e
1954
- }, this._notifyScopeListeners(), this;
1955
- }
1956
- /**
1957
- * @inheritDoc
1958
- */
1959
- setTag(e, s) {
1960
- return this._tags = { ...this._tags, [e]: s }, this._notifyScopeListeners(), this;
1961
- }
1962
- /**
1963
- * @inheritDoc
1964
- */
1965
- setExtras(e) {
1966
- return this._extra = {
1967
- ...this._extra,
1968
- ...e
1969
- }, this._notifyScopeListeners(), this;
1970
- }
1971
- /**
1972
- * @inheritDoc
1973
- */
1974
- setExtra(e, s) {
1975
- return this._extra = { ...this._extra, [e]: s }, this._notifyScopeListeners(), this;
1976
- }
1977
- /**
1978
- * @inheritDoc
1979
- */
1980
- setFingerprint(e) {
1981
- return this._fingerprint = e, this._notifyScopeListeners(), this;
1982
- }
1983
- /**
1984
- * @inheritDoc
1985
- */
1986
- setLevel(e) {
1987
- return this._level = e, this._notifyScopeListeners(), this;
1988
- }
1989
- /**
1990
- * Sets the transaction name on the scope for future events.
1991
- */
1992
- setTransactionName(e) {
1993
- return this._transactionName = e, this._notifyScopeListeners(), this;
1994
- }
1995
- /**
1996
- * @inheritDoc
1997
- */
1998
- setContext(e, s) {
1999
- return s === null ? delete this._contexts[e] : this._contexts[e] = s, this._notifyScopeListeners(), this;
2000
- }
2001
- /**
2002
- * Sets the Span on the scope.
2003
- * @param span Span
2004
- * @deprecated Instead of setting a span on a scope, use `startSpan()`/`startSpanManual()` instead.
2005
- */
2006
- setSpan(e) {
2007
- return this._span = e, this._notifyScopeListeners(), this;
2008
- }
2009
- /**
2010
- * Returns the `Span` if there is one.
2011
- * @deprecated Use `getActiveSpan()` instead.
2012
- */
2013
- getSpan() {
2014
- return this._span;
2015
- }
2016
- /**
2017
- * Returns the `Transaction` attached to the scope (if there is one).
2018
- * @deprecated You should not rely on the transaction, but just use `startSpan()` APIs instead.
2019
- */
2020
- getTransaction() {
2021
- const e = this._span;
2022
- return e && e.transaction;
2023
- }
2024
- /**
2025
- * @inheritDoc
2026
- */
2027
- setSession(e) {
2028
- return e ? this._session = e : delete this._session, this._notifyScopeListeners(), this;
2029
- }
2030
- /**
2031
- * @inheritDoc
2032
- */
2033
- getSession() {
2034
- return this._session;
2035
- }
2036
- /**
2037
- * @inheritDoc
2038
- */
2039
- update(e) {
2040
- if (!e)
2041
- return this;
2042
- const s = typeof e == "function" ? e(this) : e;
2043
- if (s instanceof W) {
2044
- const r = s.getScopeData();
2045
- this._tags = { ...this._tags, ...r.tags }, this._extra = { ...this._extra, ...r.extra }, this._contexts = { ...this._contexts, ...r.contexts }, r.user && Object.keys(r.user).length && (this._user = r.user), r.level && (this._level = r.level), r.fingerprint.length && (this._fingerprint = r.fingerprint), s.getRequestSession() && (this._requestSession = s.getRequestSession()), r.propagationContext && (this._propagationContext = r.propagationContext);
2046
- } else if (It(s)) {
2047
- const r = e;
2048
- this._tags = { ...this._tags, ...r.tags }, this._extra = { ...this._extra, ...r.extra }, this._contexts = { ...this._contexts, ...r.contexts }, r.user && (this._user = r.user), r.level && (this._level = r.level), r.fingerprint && (this._fingerprint = r.fingerprint), r.requestSession && (this._requestSession = r.requestSession), r.propagationContext && (this._propagationContext = r.propagationContext);
2049
- }
2050
- return this;
2051
- }
2052
- /**
2053
- * @inheritDoc
2054
- */
2055
- clear() {
2056
- return this._breadcrumbs = [], this._tags = {}, this._extra = {}, this._user = {}, this._contexts = {}, this._level = void 0, this._transactionName = void 0, this._fingerprint = void 0, this._requestSession = void 0, this._span = void 0, this._session = void 0, this._notifyScopeListeners(), this._attachments = [], this._propagationContext = yt(), this;
2057
- }
2058
- /**
2059
- * @inheritDoc
2060
- */
2061
- addBreadcrumb(e, s) {
2062
- const r = typeof s == "number" ? s : la;
2063
- if (r <= 0)
2064
- return this;
2065
- const n = {
2066
- timestamp: Ge(),
2067
- ...e
2068
- }, u = this._breadcrumbs;
2069
- return u.push(n), this._breadcrumbs = u.length > r ? u.slice(-r) : u, this._notifyScopeListeners(), this;
2070
- }
2071
- /**
2072
- * @inheritDoc
2073
- */
2074
- getLastBreadcrumb() {
2075
- return this._breadcrumbs[this._breadcrumbs.length - 1];
2076
- }
2077
- /**
2078
- * @inheritDoc
2079
- */
2080
- clearBreadcrumbs() {
2081
- return this._breadcrumbs = [], this._notifyScopeListeners(), this;
2082
- }
2083
- /**
2084
- * @inheritDoc
2085
- */
2086
- addAttachment(e) {
2087
- return this._attachments.push(e), this;
2088
- }
2089
- /**
2090
- * @inheritDoc
2091
- * @deprecated Use `getScopeData()` instead.
2092
- */
2093
- getAttachments() {
2094
- return this.getScopeData().attachments;
2095
- }
2096
- /**
2097
- * @inheritDoc
2098
- */
2099
- clearAttachments() {
2100
- return this._attachments = [], this;
2101
- }
2102
- /** @inheritDoc */
2103
- getScopeData() {
2104
- const {
2105
- _breadcrumbs: e,
2106
- _attachments: s,
2107
- _contexts: r,
2108
- _tags: n,
2109
- _extra: u,
2110
- _user: c,
2111
- _level: f,
2112
- _fingerprint: d,
2113
- _eventProcessors: b,
2114
- _propagationContext: x,
2115
- _sdkProcessingMetadata: w,
2116
- _transactionName: O,
2117
- _span: S
2118
- } = this;
2119
- return {
2120
- breadcrumbs: e,
2121
- attachments: s,
2122
- contexts: r,
2123
- tags: n,
2124
- extra: u,
2125
- user: c,
2126
- level: f,
2127
- fingerprint: d || [],
2128
- eventProcessors: b,
2129
- propagationContext: x,
2130
- sdkProcessingMetadata: w,
2131
- transactionName: O,
2132
- span: S
2133
- };
2134
- }
2135
- /**
2136
- * Applies data from the scope to the event and runs all event processors on it.
2137
- *
2138
- * @param event Event
2139
- * @param hint Object containing additional information about the original exception, for use by the event processors.
2140
- * @hidden
2141
- * @deprecated Use `applyScopeDataToEvent()` directly
2142
- */
2143
- applyToEvent(e, s = {}, r = []) {
2144
- sa(e, this.getScopeData());
2145
- const n = [
2146
- ...r,
2147
- // eslint-disable-next-line deprecation/deprecation
2148
- ...Fr(),
2149
- ...this._eventProcessors
2150
- ];
2151
- return qe(n, e, s);
2152
- }
2153
- /**
2154
- * Add data which will be accessible during event processing but won't get sent to Sentry
2155
- */
2156
- setSDKProcessingMetadata(e) {
2157
- return this._sdkProcessingMetadata = { ...this._sdkProcessingMetadata, ...e }, this;
2158
- }
2159
- /**
2160
- * @inheritDoc
2161
- */
2162
- setPropagationContext(e) {
2163
- return this._propagationContext = e, this;
2164
- }
2165
- /**
2166
- * @inheritDoc
2167
- */
2168
- getPropagationContext() {
2169
- return this._propagationContext;
2170
- }
2171
- /**
2172
- * Capture an exception for this scope.
2173
- *
2174
- * @param exception The exception to capture.
2175
- * @param hint Optinal additional data to attach to the Sentry event.
2176
- * @returns the id of the captured Sentry event.
2177
- */
2178
- captureException(e, s) {
2179
- const r = s && s.event_id ? s.event_id : L();
2180
- if (!this._client)
2181
- return H.warn("No client configured on scope - will not capture exception!"), r;
2182
- const n = new Error("Sentry syntheticException");
2183
- return this._client.captureException(
2184
- e,
2185
- {
2186
- originalException: e,
2187
- syntheticException: n,
2188
- ...s,
2189
- event_id: r
2190
- },
2191
- this
2192
- ), r;
2193
- }
2194
- /**
2195
- * Capture a message for this scope.
2196
- *
2197
- * @param message The message to capture.
2198
- * @param level An optional severity level to report the message with.
2199
- * @param hint Optional additional data to attach to the Sentry event.
2200
- * @returns the id of the captured message.
2201
- */
2202
- captureMessage(e, s, r) {
2203
- const n = r && r.event_id ? r.event_id : L();
2204
- if (!this._client)
2205
- return H.warn("No client configured on scope - will not capture message!"), n;
2206
- const u = new Error(e);
2207
- return this._client.captureMessage(
2208
- e,
2209
- s,
2210
- {
2211
- originalException: e,
2212
- syntheticException: u,
2213
- ...r,
2214
- event_id: n
2215
- },
2216
- this
2217
- ), n;
2218
- }
2219
- /**
2220
- * Captures a manually created event for this scope and sends it to Sentry.
2221
- *
2222
- * @param exception The event to capture.
2223
- * @param hint Optional additional data to attach to the Sentry event.
2224
- * @returns the id of the captured event.
2225
- */
2226
- captureEvent(e, s) {
2227
- const r = s && s.event_id ? s.event_id : L();
2228
- return this._client ? (this._client.captureEvent(e, { ...s, event_id: r }, this), r) : (H.warn("No client configured on scope - will not capture event!"), r);
2229
- }
2230
- /**
2231
- * This will be called on every set call.
2232
- */
2233
- _notifyScopeListeners() {
2234
- this._notifyingListeners || (this._notifyingListeners = !0, this._scopeListeners.forEach((e) => {
2235
- e(this);
2236
- }), this._notifyingListeners = !1);
2237
- }
2238
- }
2239
- function yt() {
2240
- return {
2241
- traceId: L(),
2242
- spanId: L().substring(16)
2243
- };
2244
- }
2245
- const ua = "7.108.0", Vt = parseFloat(ua), ca = 100;
2246
- class Yt {
2247
- /** Is a {@link Layer}[] containing the client and scope */
2248
- /** Contains the last event id of a captured event. */
2249
- /**
2250
- * Creates a new instance of the hub, will push one {@link Layer} into the
2251
- * internal stack on creation.
2252
- *
2253
- * @param client bound to the hub.
2254
- * @param scope bound to the hub.
2255
- * @param version number, higher number means higher priority.
2256
- *
2257
- * @deprecated Instantiation of Hub objects is deprecated and the constructor will be removed in version 8 of the SDK.
2258
- *
2259
- * If you are currently using the Hub for multi-client use like so:
2260
- *
2261
- * ```
2262
- * // OLD
2263
- * const hub = new Hub();
2264
- * hub.bindClient(client);
2265
- * makeMain(hub)
2266
- * ```
2267
- *
2268
- * instead initialize the client as follows:
2269
- *
2270
- * ```
2271
- * // NEW
2272
- * Sentry.withIsolationScope(() => {
2273
- * Sentry.setCurrentClient(client);
2274
- * client.init();
2275
- * });
2276
- * ```
2277
- *
2278
- * If you are using the Hub to capture events like so:
2279
- *
2280
- * ```
2281
- * // OLD
2282
- * const client = new Client();
2283
- * const hub = new Hub(client);
2284
- * hub.captureException()
2285
- * ```
2286
- *
2287
- * instead capture isolated events as follows:
2288
- *
2289
- * ```
2290
- * // NEW
2291
- * const client = new Client();
2292
- * const scope = new Scope();
2293
- * scope.setClient(client);
2294
- * scope.captureException();
2295
- * ```
2296
- */
2297
- constructor(e, s, r, n = Vt) {
2298
- this._version = n;
2299
- let u;
2300
- s ? u = s : (u = new W(), u.setClient(e));
2301
- let c;
2302
- r ? c = r : (c = new W(), c.setClient(e)), this._stack = [{ scope: u }], e && this.bindClient(e), this._isolationScope = c;
2303
- }
2304
- /**
2305
- * Checks if this hub's version is older than the given version.
2306
- *
2307
- * @param version A version number to compare to.
2308
- * @return True if the given version is newer; otherwise false.
2309
- *
2310
- * @deprecated This will be removed in v8.
2311
- */
2312
- isOlderThan(e) {
2313
- return this._version < e;
2314
- }
2315
- /**
2316
- * This binds the given client to the current scope.
2317
- * @param client An SDK client (client) instance.
2318
- *
2319
- * @deprecated Use `initAndBind()` directly, or `setCurrentClient()` and/or `client.init()` instead.
2320
- */
2321
- bindClient(e) {
2322
- const s = this.getStackTop();
2323
- s.client = e, s.scope.setClient(e), e && e.setupIntegrations && e.setupIntegrations();
2324
- }
2325
- /**
2326
- * @inheritDoc
2327
- *
2328
- * @deprecated Use `withScope` instead.
2329
- */
2330
- pushScope() {
2331
- const e = this.getScope().clone();
2332
- return this.getStack().push({
2333
- // eslint-disable-next-line deprecation/deprecation
2334
- client: this.getClient(),
2335
- scope: e
2336
- }), e;
2337
- }
2338
- /**
2339
- * @inheritDoc
2340
- *
2341
- * @deprecated Use `withScope` instead.
2342
- */
2343
- popScope() {
2344
- return this.getStack().length <= 1 ? !1 : !!this.getStack().pop();
2345
- }
2346
- /**
2347
- * @inheritDoc
2348
- *
2349
- * @deprecated Use `Sentry.withScope()` instead.
2350
- */
2351
- withScope(e) {
2352
- const s = this.pushScope();
2353
- let r;
2354
- try {
2355
- r = e(s);
2356
- } catch (n) {
2357
- throw this.popScope(), n;
2358
- }
2359
- return He(r) ? r.then(
2360
- (n) => (this.popScope(), n),
2361
- (n) => {
2362
- throw this.popScope(), n;
2363
- }
2364
- ) : (this.popScope(), r);
2365
- }
2366
- /**
2367
- * @inheritDoc
2368
- *
2369
- * @deprecated Use `Sentry.getClient()` instead.
2370
- */
2371
- getClient() {
2372
- return this.getStackTop().client;
2373
- }
2374
- /**
2375
- * Returns the scope of the top stack.
2376
- *
2377
- * @deprecated Use `Sentry.getCurrentScope()` instead.
2378
- */
2379
- getScope() {
2380
- return this.getStackTop().scope;
2381
- }
2382
- /**
2383
- * @deprecated Use `Sentry.getIsolationScope()` instead.
2384
- */
2385
- getIsolationScope() {
2386
- return this._isolationScope;
2387
- }
2388
- /**
2389
- * Returns the scope stack for domains or the process.
2390
- * @deprecated This will be removed in v8.
2391
- */
2392
- getStack() {
2393
- return this._stack;
2394
- }
2395
- /**
2396
- * Returns the topmost scope layer in the order domain > local > process.
2397
- * @deprecated This will be removed in v8.
2398
- */
2399
- getStackTop() {
2400
- return this._stack[this._stack.length - 1];
2401
- }
2402
- /**
2403
- * @inheritDoc
2404
- *
2405
- * @deprecated Use `Sentry.captureException()` instead.
2406
- */
2407
- captureException(e, s) {
2408
- const r = this._lastEventId = s && s.event_id ? s.event_id : L(), n = new Error("Sentry syntheticException");
2409
- return this.getScope().captureException(e, {
2410
- originalException: e,
2411
- syntheticException: n,
2412
- ...s,
2413
- event_id: r
2414
- }), r;
2415
- }
2416
- /**
2417
- * @inheritDoc
2418
- *
2419
- * @deprecated Use `Sentry.captureMessage()` instead.
2420
- */
2421
- captureMessage(e, s, r) {
2422
- const n = this._lastEventId = r && r.event_id ? r.event_id : L(), u = new Error(e);
2423
- return this.getScope().captureMessage(e, s, {
2424
- originalException: e,
2425
- syntheticException: u,
2426
- ...r,
2427
- event_id: n
2428
- }), n;
2429
- }
2430
- /**
2431
- * @inheritDoc
2432
- *
2433
- * @deprecated Use `Sentry.captureEvent()` instead.
2434
- */
2435
- captureEvent(e, s) {
2436
- const r = s && s.event_id ? s.event_id : L();
2437
- return e.type || (this._lastEventId = r), this.getScope().captureEvent(e, { ...s, event_id: r }), r;
2438
- }
2439
- /**
2440
- * @inheritDoc
2441
- *
2442
- * @deprecated This will be removed in v8.
2443
- */
2444
- lastEventId() {
2445
- return this._lastEventId;
2446
- }
2447
- /**
2448
- * @inheritDoc
2449
- *
2450
- * @deprecated Use `Sentry.addBreadcrumb()` instead.
2451
- */
2452
- addBreadcrumb(e, s) {
2453
- const { scope: r, client: n } = this.getStackTop();
2454
- if (!n)
2455
- return;
2456
- const { beforeBreadcrumb: u = null, maxBreadcrumbs: c = ca } = n.getOptions && n.getOptions() || {};
2457
- if (c <= 0)
2458
- return;
2459
- const d = { timestamp: Ge(), ...e }, b = u ? At(() => u(d, s)) : d;
2460
- b !== null && (n.emit && n.emit("beforeAddBreadcrumb", b, s), r.addBreadcrumb(b, c));
2461
- }
2462
- /**
2463
- * @inheritDoc
2464
- * @deprecated Use `Sentry.setUser()` instead.
2465
- */
2466
- setUser(e) {
2467
- this.getScope().setUser(e), this.getIsolationScope().setUser(e);
2468
- }
2469
- /**
2470
- * @inheritDoc
2471
- * @deprecated Use `Sentry.setTags()` instead.
2472
- */
2473
- setTags(e) {
2474
- this.getScope().setTags(e), this.getIsolationScope().setTags(e);
2475
- }
2476
- /**
2477
- * @inheritDoc
2478
- * @deprecated Use `Sentry.setExtras()` instead.
2479
- */
2480
- setExtras(e) {
2481
- this.getScope().setExtras(e), this.getIsolationScope().setExtras(e);
2482
- }
2483
- /**
2484
- * @inheritDoc
2485
- * @deprecated Use `Sentry.setTag()` instead.
2486
- */
2487
- setTag(e, s) {
2488
- this.getScope().setTag(e, s), this.getIsolationScope().setTag(e, s);
2489
- }
2490
- /**
2491
- * @inheritDoc
2492
- * @deprecated Use `Sentry.setExtra()` instead.
2493
- */
2494
- setExtra(e, s) {
2495
- this.getScope().setExtra(e, s), this.getIsolationScope().setExtra(e, s);
2496
- }
2497
- /**
2498
- * @inheritDoc
2499
- * @deprecated Use `Sentry.setContext()` instead.
2500
- */
2501
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
2502
- setContext(e, s) {
2503
- this.getScope().setContext(e, s), this.getIsolationScope().setContext(e, s);
2504
- }
2505
- /**
2506
- * @inheritDoc
2507
- *
2508
- * @deprecated Use `getScope()` directly.
2509
- */
2510
- configureScope(e) {
2511
- const { scope: s, client: r } = this.getStackTop();
2512
- r && e(s);
2513
- }
2514
- /**
2515
- * @inheritDoc
2516
- */
2517
- run(e) {
2518
- const s = zt(this);
2519
- try {
2520
- e(this);
2521
- } finally {
2522
- zt(s);
2523
- }
2524
- }
2525
- /**
2526
- * @inheritDoc
2527
- * @deprecated Use `Sentry.getClient().getIntegrationByName()` instead.
2528
- */
2529
- getIntegration(e) {
2530
- const s = this.getClient();
2531
- if (!s)
2532
- return null;
2533
- try {
2534
- return s.getIntegration(e);
2535
- } catch {
2536
- return ve && H.warn(`Cannot retrieve integration ${e.id} from the current Hub`), null;
2537
- }
2538
- }
2539
- /**
2540
- * Starts a new `Transaction` and returns it. This is the entry point to manual tracing instrumentation.
2541
- *
2542
- * A tree structure can be built by adding child spans to the transaction, and child spans to other spans. To start a
2543
- * new child span within the transaction or any span, call the respective `.startChild()` method.
2544
- *
2545
- * Every child span must be finished before the transaction is finished, otherwise the unfinished spans are discarded.
2546
- *
2547
- * The transaction must be finished with a call to its `.end()` method, at which point the transaction with all its
2548
- * finished child spans will be sent to Sentry.
2549
- *
2550
- * @param context Properties of the new `Transaction`.
2551
- * @param customSamplingContext Information given to the transaction sampling function (along with context-dependent
2552
- * default values). See {@link Options.tracesSampler}.
2553
- *
2554
- * @returns The transaction which was just started
2555
- *
2556
- * @deprecated Use `startSpan()`, `startSpanManual()` or `startInactiveSpan()` instead.
2557
- */
2558
- startTransaction(e, s) {
2559
- const r = this._callExtensionMethod("startTransaction", e, s);
2560
- return ve && !r && (this.getClient() ? H.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
2561
- Sentry.addTracingExtensions();
2562
- Sentry.init({...});
2563
- `) : H.warn(
2564
- "Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'"
2565
- )), r;
2566
- }
2567
- /**
2568
- * @inheritDoc
2569
- * @deprecated Use `spanToTraceHeader()` instead.
2570
- */
2571
- traceHeaders() {
2572
- return this._callExtensionMethod("traceHeaders");
2573
- }
2574
- /**
2575
- * @inheritDoc
2576
- *
2577
- * @deprecated Use top level `captureSession` instead.
2578
- */
2579
- captureSession(e = !1) {
2580
- if (e)
2581
- return this.endSession();
2582
- this._sendSessionUpdate();
2583
- }
2584
- /**
2585
- * @inheritDoc
2586
- * @deprecated Use top level `endSession` instead.
2587
- */
2588
- endSession() {
2589
- const s = this.getStackTop().scope, r = s.getSession();
2590
- r && qr(r), this._sendSessionUpdate(), s.setSession();
2591
- }
2592
- /**
2593
- * @inheritDoc
2594
- * @deprecated Use top level `startSession` instead.
2595
- */
2596
- startSession(e) {
2597
- const { scope: s, client: r } = this.getStackTop(), { release: n, environment: u = qt } = r && r.getOptions() || {}, { userAgent: c } = D.navigator || {}, f = Ur({
2598
- release: n,
2599
- environment: u,
2600
- user: s.getUser(),
2601
- ...c && { userAgent: c },
2602
- ...e
2603
- }), d = s.getSession && s.getSession();
2604
- return d && d.status === "ok" && ze(d, { status: "exited" }), this.endSession(), s.setSession(f), f;
2605
- }
2606
- /**
2607
- * Returns if default PII should be sent to Sentry and propagated in ourgoing requests
2608
- * when Tracing is used.
2609
- *
2610
- * @deprecated Use top-level `getClient().getOptions().sendDefaultPii` instead. This function
2611
- * only unnecessarily increased API surface but only wrapped accessing the option.
2612
- */
2613
- shouldSendDefaultPii() {
2614
- const e = this.getClient(), s = e && e.getOptions();
2615
- return !!(s && s.sendDefaultPii);
2616
- }
2617
- /**
2618
- * Sends the current Session on the scope
2619
- */
2620
- _sendSessionUpdate() {
2621
- const { scope: e, client: s } = this.getStackTop(), r = e.getSession();
2622
- r && s && s.captureSession && s.captureSession(r);
2623
- }
2624
- /**
2625
- * Calls global extension method and binding current instance to the function call
2626
- */
2627
- // @ts-expect-error Function lacks ending return statement and return type does not include 'undefined'. ts(2366)
2628
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
2629
- _callExtensionMethod(e, ...s) {
2630
- const n = Ee().__SENTRY__;
2631
- if (n && n.extensions && typeof n.extensions[e] == "function")
2632
- return n.extensions[e].apply(this, s);
2633
- ve && H.warn(`Extension method ${e} couldn't be found, doing nothing.`);
2634
- }
2635
- }
2636
- function Ee() {
2637
- return D.__SENTRY__ = D.__SENTRY__ || {
2638
- extensions: {},
2639
- hub: void 0
2640
- }, D;
2641
- }
2642
- function zt(t) {
2643
- const e = Ee(), s = Be(e);
2644
- return $t(e, t), s;
2645
- }
2646
- function We() {
2647
- const t = Ee();
2648
- if (t.__SENTRY__ && t.__SENTRY__.acs) {
2649
- const e = t.__SENTRY__.acs.getCurrentHub();
2650
- if (e)
2651
- return e;
2652
- }
2653
- return da(t);
2654
- }
2655
- function da(t = Ee()) {
2656
- return (!fa(t) || // eslint-disable-next-line deprecation/deprecation
2657
- Be(t).isOlderThan(Vt)) && $t(t, new Yt()), Be(t);
2658
- }
2659
- function fa(t) {
2660
- return !!(t && t.__SENTRY__ && t.__SENTRY__.hub);
2661
- }
2662
- function Be(t) {
2663
- return Lt("hub", () => new Yt(), t);
2664
- }
2665
- function $t(t, e) {
2666
- if (!t)
2667
- return !1;
2668
- const s = t.__SENTRY__ = t.__SENTRY__ || {};
2669
- return s.hub = e, !0;
2670
- }
2671
- class ha extends Error {
2672
- constructor(s) {
2673
- super(s.length > 0 ? s[0].message : "Unknown SlashID error");
2674
- ct(this, "errors");
2675
- this.errors = s;
2676
- }
2677
- }
2678
- function _a(t) {
2679
- return !!(typeof t == "object" && t !== null && "errors" in t && Array.isArray(t.errors));
2680
- }
2681
- function pa(t) {
2682
- if (t instanceof Error)
2683
- return t;
2684
- if (_a(t))
2685
- return new ha(t.errors);
2686
- let e = "[Unable to stringify the thrown value]";
2687
- try {
2688
- e = JSON.stringify(t);
2689
- } catch {
2690
- }
2691
- return new Error(
2692
- `This value was thrown as is, not through an Error: ${e}`
2693
- );
2694
- }
2695
- function ba() {
2696
- return /* @__PURE__ */ o.jsx(me, { variant: "primary", children: /* @__PURE__ */ o.jsx(Mt, {}) });
2697
- }
2698
- function za({ onSuccess: t, onError: e, flowType: s, onRedirectDiscovered: r }) {
2699
- const { sdk: n } = ye();
2700
- return jt(() => {
2701
- if (!n)
2702
- return;
2703
- r && (n == null || n.subscribe("redirectUriDiscovered", r));
2704
- async function u() {
2705
- try {
2706
- await (n == null ? void 0 : n.getUserFromURL()), t();
2707
- } catch (c) {
2708
- const f = pa(c);
2709
- Zr(f), e({ error: f });
2710
- }
2711
- }
2712
- return u(), () => {
2713
- r && n.unsubscribe("redirectUriDiscovered", r);
2714
- };
2715
- }, [s, e, t, n]), s === "password-recovery" ? /* @__PURE__ */ o.jsx(Or, {}) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2716
- /* @__PURE__ */ o.jsxs(Ye, { space: "0.25", children: [
2717
- /* @__PURE__ */ o.jsx(J, { as: "h1", variant: { size: "2xl-title", weight: "bold" }, t: "initial.title" }),
2718
- /* @__PURE__ */ o.jsx(J, { variant: { color: "contrast", weight: "semibold" }, as: "h2", t: "initial.details" })
2719
- ] }),
2720
- /* @__PURE__ */ o.jsx(ba, {})
2721
- ] });
2722
- }
2723
- export {
2724
- Ca as Card,
2725
- wa as Error,
2726
- fr as I18N,
2727
- za as Progress,
2728
- Or as Recover,
2729
- ya as Success,
2730
- ma as TextProvider,
2731
- va as ThemeRoot
2732
- };
2733
- //# sourceMappingURL=main.js.map